"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
var g,aaa=function(a){if(a!==aa)throw Error("r");},ba=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ba);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b);this.reportErrorToServer=!0},ca=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");ba.call(this,c+a[d])},ea=function(){var a=da.navigator;return a&&(a=a.userAgent)?a:""},ia=function(a){return fa(ea(),a)},baa=function(){return ia("Trident")||
ia("MSIE")},ja=function(){return ia("Firefox")||ia("FxiOS")},caa=function(){return ia("Safari")&&!(la()||ia("Coast")||ia("Opera")||ia("Edge")||ia("Edg/")||ia("OPR")||ja()||ia("Silk")||ia("Android"))},la=function(){return(ia("Chrome")||ia("CriOS"))&&!ia("Edge")||ia("Silk")},daa=function(){return ia("Android")&&!(la()||ja()||ia("Opera")||ia("Silk"))},eaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}},faa=function(a){var b=
ea();if("Internet Explorer"===a){if(baa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);b=eaa(c);switch(a){case "Opera":if(ia("Opera"))return b(["Version",
"Opera"]);if(ia("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(ia("Edge"))return b(["Edge"]);if(ia("Edg/"))return b(["Edg"]);break;case "Chromium":if(la())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&ja()||"Safari"===a&&caa()||"Android Browser"===a&&daa()||"Silk"===a&&ia("Silk")?(b=c[2])&&b[1]||"":""},ma=function(a){a=faa(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])},na=function(){return ia("iPhone")&&!ia("iPod")&&!ia("iPad")},oa=function(){return na()||
ia("iPad")||ia("iPod")},gaa=function(){var a=ea(),b="";ia("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):oa()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):ia("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):pa(ea(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):ia("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):ia("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&
a[1]);return 0<=qa(b||"",12)},sa=function(a){return a[a.length-1]},haa=function(a,b){var c=0;ta(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},jaa=function(a){for(var b=iaa,c="string"===typeof a?a.split(""):a,d=a.length-1;0<=d;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},wa=function(a,b){return 0<=ua(a,b)},xa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},za=function(a,b){b=ua(a,b);var c;(c=0<=b)&&ya(a,b);return c},ya=function(a,b){Array.prototype.splice.call(a,
b,1)},Aa=function(a,b){a:{for(var c=a.length,d="string"===typeof a?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}0<=b&&ya(a,b)},Ea=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},kaa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}},maa=function(a,b,c,d){return Array.prototype.splice.apply(a,laa(arguments,
1))},laa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ka=function(a,b,c){b=b||a;var d=function(q){return Ga(q)?"o"+Ha(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Ma=function(a,b){a.sort(b||naa)},oaa=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||naa;Ma(c,function(f,h){return e(f.value,
h.value)||f.index-h.index});for(b=0;b<a.length;b++)a[b]=c[b].value},naa=function(a,b){return a>b?1:a<b?-1:0},paa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},qaa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},saa=function(a){if(null==a||Na(a))return a;if("string"===typeof a)return raa(a);Oa(a);return null},Na=function(a){return Pa&&null!=a&&a instanceof Uint8Array},taa=function(a){if(a!==Qa)throw Error("u");},uaa=function(a,b){Object.isFrozen(a)||
(Ra?a[Ra]|=b:void 0!==a.internalArrayState?a.internalArrayState|=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}}))},vaa=function(a){var b;Ra?b=a[Ra]:b=a.internalArrayState;return null==b?0:b},waa=function(a){return Array.isArray(a)?!!(vaa(a)&1):!1},Ta=function(a){uaa(a,1);return a},Ua=function(a){return Array.isArray(a)?!!(vaa(a)&2):!1},Wa=function(a){if(!Array.isArray(a))throw Error("w");uaa(a,2)},Za=function(a){return Ua(a.internalArray_)},xaa=
function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},cb=function(a){if(null==a)return ab();if(a.constructor===bb)return a;if("string"===typeof a)return a?new bb(a,Qa):ab();if(Na(a))return a.length?new bb(new Uint8Array(a),Qa):ab();Oa(a);return ab()},yaa=function(a){a instanceof bb&&(taa(Qa),a=a.value_||"");return a},zaa=function(a){return Array.isArray(a)&&waa(a)&&!a.length},Aaa=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}},db=function(a){da.setTimeout(function(){throw a;
},0)},Baa=function(a,b,c){c=void 0===c?!1:c;if(Array.isArray(a))return new b(a);if(c)return new b},Daa=function(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(var e in b)c[e]=0;for(var f in c)if(!Caa(a,f,a[f],b,f,b[f]))return!1;return!0},Eaa=function(a){return a&&"object"===typeof a?a.internalArray_||a:a},Gaa=function(a,b){return null!=b&&Faa(a.toArrayInternal(),b.toArrayInternal())},Haa=function(a,b,c,d){if(null==d)d=[];else if(!Array.isArray(d))return null;return b[c]=new gb(d,a.valueCtor)},
Caa=function(a,b,c,d,e,f){c=yaa(c);f=yaa(f);c=Eaa(c);f=Eaa(f);if(c==f)return!0;if(Pa){var h=Na(c),k=Na(f);if(h||k){if(h)a=c;else if("string"===typeof c)a=saa(c);else return!1;if(!k)if("string"===typeof f)f=saa(f);else return!1;if(a.length!==f.length)return!1;for(k=0;k<a.length;k++)if(a[k]!==f[k])return!1;return!0}}if(c instanceof gb)return Gaa(c,f instanceof gb?f:Haa(c,d,e,f));if(f instanceof gb)return Gaa(f,Haa(f,a,b,c));if(null==c&&zaa(f)||null==f&&zaa(c))return!0;if(!Ga(c)||!Ga(f))return"number"===
typeof c&&isNaN(c)||"number"===typeof f&&isNaN(f)?String(c)==String(f):!1;if(c.constructor!=f.constructor)return!1;if(c.constructor===Array){k=c;b=a=void 0;c=Math.max(k.length,f.length);for(d=0;d<c;d++)if(e=k[d],h=f[d],e&&e.constructor==Object&&(a=e,e=void 0),h&&h.constructor==Object&&(b=h,h=void 0),!Caa(k,d,e,f,d,h))return!1;return a||b?(a=a||{},b=b||{},Daa(a,b)):!0}if(c.constructor===Object)return Daa(c,f);throw Error("z");},Faa=function(a,b){return Caa(void 0,void 0,a,void 0,void 0,b)},Iaa=function(a){switch(typeof a){case "number":return isFinite(a)?
a:String(a);case "object":if(a&&!Array.isArray(a)){if(Na(a))return ib(a);if(a instanceof bb)return jb(a);if(a instanceof gb)return a.toArrayInternal()}}return a},kb=function(a,b){b=void 0===b?Jaa:b;return Kaa(a,b)},Laa=function(a,b){if(null!=a){if(Array.isArray(a))a=Kaa(a,b);else if(xaa(a)){var c={},d;for(d in a)c[d]=Laa(a[d],b);a=c}else a=b(a);return a}},Kaa=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Laa(c[d],b);waa(a)&&Ta(c);return c},Maa=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();
a=Iaa(a);return Array.isArray(a)?kb(a,Maa):a},Naa=function(a){return a.clone()},Jaa=function(a){return Na(a)?new Uint8Array(a):a instanceof gb?Oaa(a,Naa):a},mb=function(a,b,c){var d=lb(a,b,!1);if(d.length&&!(vaa(d)&4)){Object.isFrozen(d)&&(d=Ta(d.slice()),l(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);uaa(d,5)}Za(a)&&Object.freeze(d);return d},pb=function(a,b,c,d){nb(a);c!==d?l(a,b,c):ob(a,b);return a},qb=function(a,b,c,d){nb(a);b=lb(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a},sb=
function(a,b,c){return rb(a,b)===c?c:-1},Paa=function(a,b){return Iaa(b)},Qaa=function(a,b){b.internalUnknownFields_&&(a.internalUnknownFields_=b.internalUnknownFields_.slice());var c=b.internalWrappers_;if(c){b=b.internalSparseObject_;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=tb(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Qaa(f[h],e[h])}else(f=m(a,e.constructor,h,void 0,f))&&Qaa(f,e)}}}},Saa=function(a){if("string"===typeof a)return{buffer:raa(a),
isImmutable:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===bb)return{buffer:Raa(a)||ub||(ub=new Uint8Array(0)),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("K");},Taa=function(a,b){return 4294967296*b+(a>>>0)},Uaa=function(a,
b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=Taa(a,b);return c?-a:a},Vaa=function(a,b,c){return a[wb]||(a[wb]=function(d,e){return b(d,e,c)})},Yaa=function(a){var b=a[wb];if(!b){var c=Waa(a);b=function(d,e){return Xaa(d,e,c)};a[wb]=b}return b},Zaa=function(a){var b=a.binaryFieldsInitializer;if(b)return Yaa(b);if(b=a.messageSetReaderFn)return Vaa(a.fieldInfo.ctor,b,a.messageSetExtensions)},$aa=function(a){var b=Zaa(a),c=a.fieldInfo,d=a.readerWriterSelector.reader;return b?function(e,
f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}},bba=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(xb in c||aba in c||0<c.length&&"function"==typeof c[0])?c:void 0},cba=function(a,b){a[0]=b},dba=function(a,b,c,d){var e=c.reader;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},eba=function(a,b,c,d,e){var f=c.reader,h=Yaa(d),k=Waa(d).ctor;a[b]=function(q,u,y){return f(q,u,y,k,h,e)}},fba=function(a,b,c,d,e,f,h){var k=c.reader,q=Vaa(d,e,f);a[b]=
function(u,y,D){return k(u,y,D,d,q,h)}},Waa=function(a){var b=a[xb];if(b)return b;b=a[xb]={};var c=cba,d=dba,e=eba,f=fba;b.ctor=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var k=a[h++];c(b,k)}for(;h<a.length;){c=a[h++];for(var q=h+1;q<a.length&&"number"!==typeof a[q];)q++;k=a[h++];q-=h;switch(q){case 0:d(b,c,k);break;case 1:(q=bba(a,h))?(h++,e(b,c,k,q)):d(b,c,k,a[h++]);break;case 2:q=b;var u=h++;u=bba(a,u);e(q,c,k,u,a[h++]);break;case 3:f(b,c,k,a[h++],a[h++],a[h++]);break;case 4:f(b,c,k,a[h++],
a[h++],a[h++],a[h++]);break;default:throw Error("M`"+q);}}xb in a&&aba in a&&(a.length=0);return b},Xaa=function(a,b,c){for(;gba(b)&&4!=b.nextWireType_;){var d=b.nextField_,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=$aa(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.fieldCursor_,yb(f),!f.discardUnknownFields){var h=f.decoder_.getCursor()-d;f.decoder_.cursor_=d;d=f.decoder_.readByteString(h);(f=e.internalUnknownFields_)?f.push(d):e.internalUnknownFields_=[d]}}return a},Ab=function(a,b){return{reader:a,writer:b}},
Bb=function(a,b,c,d){return new hba(a,b,c,d)},iba=function(a){var b=this.ctor,c=this.fieldIndex;return this.isRepeated?tb(a,b,c,!0):m(a,b,c,void 0,!0)},jba=function(a,b){var c=this.fieldIndex;return this.isRepeated?Cb(a,c,b,!0):Db(a,c,b,!0)},lba=function(a,b,c,d,e,f){(a=a.internalWrappers_&&a.internalWrappers_[c])?Array.isArray(a)?(e=f.copyRepeatedFields?Ta(a.slice()):a,Cb(b,c,e)):Db(b,c,a):(Pa&&d instanceof Uint8Array?e=d.length?new bb(new Uint8Array(d),Qa):ab():d instanceof gb?e=Oaa(d,kba):(Array.isArray(d)&&
(e?Wa(d):waa(d)&&f.copyRepeatedFields&&(d=d.slice())),e=d),l(b,c,e))},Eb=function(a,b,c){for(var d=[],e=0;e<a.length;e++)d.push(b(c,a[e]));return d},Fb=function(a,b,c,d){for(var e in c){var f=c[e],h=a.getExtension(f);if(null!=h){var k=void 0;for(k in f.fieldName)if(f.fieldName.hasOwnProperty(k))break;var q=f.toObjectFn;b[k]=q?f.isRepeated?Eb(h,q,d):q(d,h):h}}},mba=function(a){a instanceof bb&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},Gb=function(a,b,c){var d=[];a.forEach(function(e,
f){d.push([f,c?c(b,e):e])});return d},n=function(a){return null===a?void 0:a},Hb=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return jb(b)}):jb(a)},nba=function(a){a=p(a,2);if(null==a)return"";if("string"===typeof a)return a;if(Na(a))return ib(a);if(Array.isArray(a))return kb(a);if(a instanceof bb)return jb(a);throw Error("O`"+a);},oba=function(a,b){return Zone.current.wrap(a,b)},pba=function(a,b){for(var c=a.length-1;0<=c;c--)"function"===typeof a[c]&&(a[c]=oba(a[c],b+"_"+
c));return a},rba=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={$jscomp$loop$prop$name$1624:d.$jscomp$loop$prop$name$1624},e++){d.$jscomp$loop$prop$name$1624=b[e];var f=a[d.$jscomp$loop$prop$name$1624];if(f){var h=Jb(a,d.$jscomp$loop$prop$name$1624);qba(h)&&(a[d.$jscomp$loop$prop$name$1624]=function(k){return function(q){var u=function(){return q.apply(this,pba(arguments,c+"."+k.$jscomp$loop$prop$name$1624))};Kb(u,q);return u}}(d)(f))}}},
qba=function(a){return a?!1===a.writable?!1:!("function"===typeof a.get&&"undefined"===typeof a.set):!0},uba=function(a,b,c){var d=Jb(a,b);!d&&c&&Jb(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=Lb("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,h=b.slice(2),k=Mb[h];k||(k=Mb[h]=Lb("ON_PROPERTY"+h));d.set=function(q){var u=this;u||a!==Nb||(u=Nb);u&&("function"===typeof u[k]&&u.removeEventListener(h,sba),f&&f.call(u,null),u[k]=
q,"function"===typeof q&&u.addEventListener(h,sba,!1))};d.get=function(){var q=this;q||a!==Nb||(q=Nb);if(!q)return null;var u=q[k];return u?u:e&&(u=e.call(this))?(d.set.call(this,u),"function"===typeof q.removeAttribute&&q.removeAttribute(b),u):null};tba(a,b,d);a[c]=!0}},vba=function(a,b,c){if(b)for(var d=0;d<b.length;d++)uba(a,"on"+b[d],c);else{b=[];for(d in a)"on"==d.slice(0,2)&&b.push(d);for(d=0;d<b.length;d++)uba(a,b[d],c)}},Pb=function(a){var b=Nb[a];if(b){Nb[Lb(a)]=b;Nb[a]=function(){var e=
pba(arguments,a);switch(e.length){case 0:this[Ob]=new b;break;case 1:this[Ob]=new b(e[0]);break;case 2:this[Ob]=new b(e[0],e[1]);break;case 3:this[Ob]=new b(e[0],e[1],e[2]);break;case 4:this[Ob]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("da");}};Kb(Nb[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?Nb[a].prototype[e]=function(){return this[Ob][e].apply(this[Ob],arguments)}:tba(Nb[a].prototype,e,{set:function(f){"function"===
typeof f?(this[Ob][e]=oba(f,a+"."+e),Kb(this[Ob][e],f)):this[Ob][e]=f},get:function(){return this[Ob][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(Nb[a][d]=b[d])}},Qb=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=wba(d);!d&&a[b]&&(d=a);a=Lb(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&Jb(d,b);if(qba(f)){var h=c(e,a,b);d[b]=function(){return h(this,arguments)};Kb(d[b],e)}}return e},xba=function(a,b,c){function d(f){var h=f.data;h.args[h.cbIdx]=
function(){f.invoke.apply(this,arguments)};e.apply(h.target,h.args);return f}var e=null;e=Qb(a,b,function(f){return function(h,k){var q=c(h,k);return 0<=q.cbIdx&&"function"===typeof k[q.cbIdx]?Zone.current.scheduleMacroTask(q.name,k[q.cbIdx],q,d):f.apply(h,k)}})},Kb=function(a,b){a[Lb("OriginalDelegate")]=b},Aba=function(){if(yba)return zba;yba=!0;try{var a=Rb.navigator.userAgent;if(-1!==a.indexOf("MSIE ")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/"))zba=!0}catch(b){}return zba},Bba=function(a,
b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=Sb+c;b=Sb+b;Ub[a]={};Ub[a]["false"]=c;Ub[a]["true"]=b},Hba=function(a,b,c,d){function e(ka,ha,ra){if(ha=ha||a.event){ka=ka||ha.target||a;var Da=ka[Ub[ha.type][ra?"true":"false"]];if(Da){ra=[];if(1===Da.length)(ha=I(Da[0],ka,ha))&&ra.push(ha);else{Da=Da.slice();for(var Ja=0;Ja<Da.length&&(!ha||!0!==ha[Cba]);Ja++){var Ba=I(Da[Ja],ka,ha);Ba&&ra.push(Ba)}}if(1===ra.length)throw ra[0];ha={};for(ka=0;ka<ra.length;ha={$jscomp$loop$prop$err$1210$1626:ha.$jscomp$loop$prop$err$1210$1626},
ka++)ha.$jscomp$loop$prop$err$1210$1626=ra[ka],b.nativeScheduleMicroTask(function(La){return function(){throw La.$jscomp$loop$prop$err$1210$1626;}}(ha))}}}function f(ka,ha){if(!ka)return!1;var ra=!0;ha&&void 0!==ha.useG&&(ra=ha.useG);var Da=ha&&ha.vh,Ja=!0;ha&&void 0!==ha.chkDup&&(Ja=ha.chkDup);var Ba=!1;ha&&void 0!==ha.rt&&(Ba=ha.rt);for(var La=ka;La&&!La.hasOwnProperty(h);)La=wba(La);!La&&ka[h]&&(La=ka);if(!La||La[y])return!1;var hb=ha&&ha.eventNameToString,fb={},Tb=La[y]=La[h],va=La[Lb(k)]=La[k];
ka=La[Lb(q)]=La[q];var Ca=La[Lb(u)]=La[u],Ia;ha&&ha.prepend&&(Ia=La[Lb(ha.prepend)]=La[ha.prepend]);var Xa=function(eb){if(!eb.isRemoved){var zb=Ub[eb.eventName],Ib;zb&&(Ib=zb[eb.capture?"true":"false"]);if(zb=Ib&&eb.target[Ib])for(var ec=0;ec<zb.length;ec++)if(zb[ec]===eb){zb.splice(ec,1);eb.isRemoved=!0;0===zb.length&&(eb.allRemoved=!0,eb.target[Ib]=null);break}}if(eb.allRemoved)return va.call(eb.target,eb.eventName,eb.capture?L:N,eb.options)},$a=function(eb){return Tb.call(fb.target,fb.eventName,
eb.invoke,fb.options)},jc=function(eb){return Ia.call(fb.target,fb.eventName,eb.invoke,fb.options)},Va=function(eb){return va.call(eb.target,eb.eventName,eb.invoke,eb.options)};$a=ra?function(){if(!fb.isExisting)return Tb.call(fb.target,fb.eventName,fb.capture?L:N,fb.options)}:$a;Xa=ra?Xa:Va;Va=function(eb,zb){var Ib=typeof zb;return"function"===Ib&&eb.callback===zb||"object"===Ib&&eb.originalDelegate===zb};var Ya=ha&&ha.diff?ha.diff:Va,Sa=Zone[Lb("UNPATCHED_EVENTS")],vb=a[Lb("PASSIVE_EVENTS")];Va=
function(eb,zb,Ib,ec,Ac,se){Ac=void 0===Ac?!1:Ac;se=void 0===se?!1:se;return function(){var jd=this||a,Ed=arguments[0];ha&&ha.transferEventName&&(Ed=ha.transferEventName(Ed));var eh=arguments[1];if(!eh||Vb&&"uncaughtException"===Ed)return eb.apply(this,arguments);var GK=!1;if("function"!==typeof eh){if(!eh.handleEvent)return eb.apply(this,arguments);GK=!0}if(!Da||Da(eb,eh,jd,arguments)){var Yl=Wb&&!!vb&&-1!==vb.indexOf(Ed);var kc=arguments[2];kc=!Wb&&"object"===typeof kc&&kc?!!kc.capture:Wb&&Yl?"boolean"===
typeof kc?{capture:kc,passive:!0}:kc?"object"===typeof kc&&!1!==kc.passive?Object.assign({},kc,{passive:!0}):kc:{passive:!0}:kc;if(Sa)for(var fc=0;fc<Sa.length;fc++)if(Ed===Sa[fc])return Yl?eb.call(jd,Ed,eh,kc):eb.apply(this,arguments);Yl=kc?"boolean"===typeof kc?!0:kc.capture:!1;fc=kc&&"object"===typeof kc?kc.once:!1;var te=Zone.current,Ki=Ub[Ed];Ki||(Bba(Ed,hb),Ki=Ub[Ed]);var Kn=Ki[Yl?"true":"false"];Ki=jd[Kn];var Sp=!1;if(Ki){if(Sp=!0,Ja)for(Kn=0;Kn<Ki.length;Kn++)if(Ya(Ki[Kn],eh))return}else Ki=
jd[Kn]=[];var Ok;Kn=jd.constructor.name;var jAa=Dba[Kn];jAa&&(Ok=jAa[Ed]);Ok||(Ok=Kn+zb+(hb?hb(Ed):Ed));fb.options=kc;fc&&(fb.options.once=!1);fb.target=jd;fb.capture=Yl;fb.eventName=Ed;fb.isExisting=Sp;if(Sp=ra?Eba:void 0)Sp.taskData=fb;Ok=te.scheduleEventTask(Ok,eh,Sp,Ib,ec);fb.target=null;Sp&&(Sp.taskData=null);fc&&(kc.once=!0);if(Wb||"boolean"!==typeof Ok.options)Ok.options=kc;Ok.target=jd;Ok.capture=Yl;Ok.eventName=Ed;GK&&(Ok.originalDelegate=eh);se?Ki.unshift(Ok):Ki.push(Ok);if(Ac)return jd}}};
La[h]=Va(Tb,D,$a,Xa,Ba);Ia&&(La.prependListener=Va(Ia,".prependListener:",jc,Xa,Ba,!0));La[k]=function(){var eb=this||a,zb=arguments[0];ha&&ha.transferEventName&&(zb=ha.transferEventName(zb));var Ib=arguments[2],ec=Ib?"boolean"===typeof Ib?!0:Ib.capture:!1;Ib=arguments[1];if(!Ib)return va.apply(this,arguments);if(!Da||Da(va,Ib,eb,arguments)){var Ac=Ub[zb],se;Ac&&(se=Ac[ec?"true":"false"]);if(ec=se&&eb[se])for(Ac=0;Ac<ec.length;Ac++){var jd=ec[Ac];if(Ya(jd,Ib)){ec.splice(Ac,1);jd.isRemoved=!0;0===
ec.length&&(jd.allRemoved=!0,eb[se]=null,"string"===typeof zb&&(eb[Sb+"ON_PROPERTY"+zb]=null));jd.zone.cancelTask(jd);if(Ba)return eb;return}}return va.apply(this,arguments)}};La[q]=function(eb){var zb=this||a,Ib=eb;ha&&ha.transferEventName&&(Ib=ha.transferEventName(Ib));eb=[];zb=Fba(zb,hb?hb(Ib):Ib);for(Ib=0;Ib<zb.length;Ib++){var ec=zb[Ib];eb.push(ec.originalDelegate?ec.originalDelegate:ec.callback)}return eb};La[u]=function(eb){var zb=this||a;if(eb){ha&&ha.transferEventName&&(eb=ha.transferEventName(eb));
var Ib=Ub[eb];if(Ib){var ec=zb[Ib["false"]];zb=zb[Ib["true"]];if(ec)for(ec=ec.slice(),Ib=0;Ib<ec.length;Ib++){var Ac=ec[Ib];this[k].call(this,eb,Ac.originalDelegate?Ac.originalDelegate:Ac.callback,Ac.options)}if(zb)for(zb=zb.slice(),ec=0;ec<zb.length;ec++)Ib=zb[ec],this[k].call(this,eb,Ib.originalDelegate?Ib.originalDelegate:Ib.callback,Ib.options)}}else{eb=Object.keys(zb);for(zb=0;zb<eb.length;zb++)(ec=(ec=Gba.exec(eb[zb]))&&ec[1])&&"removeListener"!==ec&&this[u].call(this,ec);this[u].call(this,
"removeListener")}if(Ba)return this};Kb(La[h],Tb);Kb(La[k],va);Ca&&Kb(La[u],Ca);ka&&Kb(La[q],ka);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",u=d&&d.rmAll||"removeAllListeners",y=Lb(h),D="."+h+":",I=function(ka,ha,ra){if(!ka.isRemoved){var Da=ka.callback;"object"===typeof Da&&Da.handleEvent&&(ka.callback=function(La){return Da.handleEvent(La)},ka.originalDelegate=Da);try{ka.invoke(ka,ha,[ra])}catch(La){var Ja=La}var Ba=ka.options;
Ba&&"object"===typeof Ba&&Ba.once&&ha[k].call(ha,ra.type,ka.originalDelegate?ka.originalDelegate:ka.callback,Ba);return Ja}},N=function(ka){return e(this,ka,!1)},L=function(ka){return e(this,ka,!0)},S=[],X=0;X<c.length;X++)S[X]=f(c[X],d);return S},Fba=function(a,b){if(!b){var c=[],d;for(d in a){var e=Gba.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=Ub[b];c||(Bba(b),c=Ub[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():
[]},Iba=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[Cba]=!0;c&&c.apply(d,e)}})},Yb=function(a,b,c,d){function e(u){var y=u.data;y.args[0]=function(){return u.invoke.apply(this,arguments)};y.handleId=h.apply(a,y.args);return u}function f(u){return k.call(a,u.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=Qb(a,b,function(u){return function(y,D){if("function"===typeof D[0]){var I={isPeriodic:"Interval"===d,delay:"Timeout"===
d||"Interval"===d?D[1]||0:void 0,args:D},N=D[0];D[0]=function(){try{return N.apply(this,arguments)}finally{I.isPeriodic||("number"===typeof I.handleId?delete q[I.handleId]:I.handleId&&(I.handleId[Xb]=null))}};y=Zone.current.scheduleMacroTask(b,D[0],I,e,f);if(!y)return y;D=y.data.handleId;"number"===typeof D?q[D]=y:D&&(D[Xb]=y);D&&D.ref&&D.unref&&"function"===typeof D.ref&&"function"===typeof D.unref&&(y.ref=D.ref.bind(D),y.unref=D.unref.bind(D));return"number"===typeof D||D?D:y}return u.apply(a,D)}});
k=Qb(a,c,function(u){return function(y,D){y=D[0];if("number"===typeof y)var I=q[y];else(I=y&&y[Xb])||(I=y);I&&"string"===typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"===typeof y?delete q[y]:y&&(y[Xb]=null),I.zone.cancelTask(I)):u.apply(a,D)}})},Jba=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,u){q&&q.prototype&&e.forEach(function(y){var D=c+"."+d+"::"+y,I=q.prototype;try{if(I.hasOwnProperty(y)){var N=
a.ObjectGetOwnPropertyDescriptor(I,y);N&&N.value?(N.value=a.wrapWithCurrentZone(N.value,D),a._redefineProperty(q.prototype,y,N)):I[y]&&(I[y]=a.wrapWithCurrentZone(I[y],D))}else I[y]&&(I[y]=a.wrapWithCurrentZone(I[y],D))}catch(L){}});return h.call(b,k,q,u)};a.attachOriginToPatched(b[d],h)}},Kba=function(a,b,c){if(!c||0===c.length)return b;c=c.filter(function(e){return e.target===a});if(!c||0===c.length)return b;var d=c[0].ignoreProperties;return b.filter(function(e){return-1===d.indexOf(e)})},Lba=
function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&2<b.length}).map(function(b){return b.substring(2)})},Qba=function(){Zb=Zone.__symbol__;$b=Object[Zb("defineProperty")]=Object.defineProperty;Mba=Object[Zb("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;Nba=Object.create;ac=Zb("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[ac]&&a[ac][b])throw new TypeError("ha`"+b+"`"+a);var d=c.configurable;"prototype"!==b&&(c=Oba(a,b,c));
return Pba(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=r(Object.getOwnPropertySymbols(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;(null==(e=Object.getOwnPropertyDescriptor(b,d))?0:e.enumerable)&&Object.defineProperty(a,d,b[d])}return a};Object.create=function(a,b){"object"!==typeof b||Object.isFrozen(b)||Object.keys(b).forEach(function(c){b[c]=Oba(a,c,b[c])});return Nba(a,b)};Object.getOwnPropertyDescriptor=
function(a,b){var c=Mba(a,b);c&&a&&a[ac]&&a[ac][b]&&(c.configurable=!1);return c}},Rba=function(a,b,c){var d=c.configurable;c=Oba(a,b,c);return Pba(a,b,c,d)},Oba=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[ac]||Object.isFrozen(a)||$b(a,ac,{writable:!0,value:{}}),a[ac]&&(a[ac][b]=!0));return c},Pba=function(a,b,c,d){try{return $b(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return $b(a,b,c)}catch(f){d=!1;if("createdCallback"===
b||"attachedCallback"===b||"detachedCallback"===b||"attributeChangedCallback"===b)d=!0;if(!d)throw f;d=null;try{d=JSON.stringify(c)}catch(h){d=c.toString()}console.log("Attempting to configure '"+b+"' with descriptor '"+d+"' on object '"+a+"' and got error, giving up: "+f)}}else throw e;}},Sba=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,u="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var y="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=y.map(function(ha){return"HTML"+ha+"Element"}).concat(u):
a.EventTarget?c.push("EventTarget"):c=u;var D=a.__Zone_disable_IE_check||!1,I=a.__Zone_enable_cross_context_check||!1,N=b.isIEOrEdge(),L={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(u=0;u<d.length;u++){var S=d[u],X=q+(S+k),ka=q+(S+h);f[S]={};f[S][k]=X;f[S][h]=ka}for(f=0;f<y.length;f++)for(h=
y[f],k=e[h]={},q=0;q<d.length;q++)u=d[q],k[u]=h+".addEventListener:"+u;d=[];for(e=0;e<c.length;e++)y=a[c[e]],d.push(y&&y.prototype);b.patchEventTarget(a,b,d,{vh:function(ha,ra,Da,Ja){if(!D&&N)if(I)try{var Ba=ra.toString();if("[object FunctionWrapper]"===Ba||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Ba)return ha.apply(Da,Ja),!1}catch(La){return ha.apply(Da,Ja),!1}else{if(ra=ra.toString(),"[object FunctionWrapper]"===ra||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
ra)return ha.apply(Da,Ja),!1}else if(I)try{ra.toString()}catch(La){return ha.apply(Da,Ja),!1}return!0},transferEventName:function(ha){return L[ha]||ha}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},Tba=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var u=1<arguments.length?new f(k,q):new f(k),y=a.ObjectGetOwnPropertyDescriptor(u,"onmessage");if(y&&
!1===y.configurable){var D=a.ObjectCreate(u);var I=u;[d,e,"send","close"].forEach(function(N){D[N]=function(){var L=a.ArraySlice.call(arguments);if(N===d||N===e){var S=0<L.length?L[0]:void 0;S&&(S=Zone.__symbol__("ON_PROPERTY"+S),u[S]=D[S])}return u[N].apply(u,L)}})}else D=u;a.patchOnProperties(D,["close","error","message","open"],I);return D};c=b.WebSocket;for(var h in f)c[h]=f[h]},Uba=function(a,b){var c=a.getGlobalObjects(),d=c.isMix;if((c.isBrowser||d)&&!a.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,
"onclick")&&"undefined"!==typeof Element){if((c=a.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick"))&&!c.configurable)return!1;if(c)return a.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}}),d=!!document.createElement("div").onclick,a.ObjectDefineProperty(Element.prototype,"onclick",c),d}var e=b.XMLHttpRequest;if(!e)return!1;c=e.prototype;if(d=a.ObjectGetOwnPropertyDescriptor(c,"onreadystatechange"))return a.ObjectDefineProperty(c,
"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),e=!!(new e).onreadystatechange,a.ObjectDefineProperty(c,"onreadystatechange",d||{}),e;var f=a.symbol("fake");a.ObjectDefineProperty(c,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[f]},set:function(h){this[f]=h}});a=new e;c=function(){};a.onreadystatechange=c;c=a[f]===c;a.onreadystatechange=null;return c},Wba=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<Vba.length;c={$jscomp$loop$prop$onproperty$1633:c.$jscomp$loop$prop$onproperty$1633},
d++){var e=Vba[d];c.$jscomp$loop$prop$onproperty$1633="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.$jscomp$loop$prop$onproperty$1633:"unknown."+f.$jscomp$loop$prop$onproperty$1633;h;){if(h[f.$jscomp$loop$prop$onproperty$1633]&&!h[f.$jscomp$loop$prop$onproperty$1633][b]){var q=a.wrapWithCurrentZone(h[f.$jscomp$loop$prop$onproperty$1633],k);q[b]=h[f.$jscomp$loop$prop$onproperty$1633];h[f.$jscomp$loop$prop$onproperty$1633]=q}h=h.parentElement}}}(c),
!0)}},bc=function(a){for(var b in a)if(a[b]===bc)return b;throw Error("ia");},Xba=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},cc=function(a){if("string"===typeof a)return a;if(Array.isArray(a))return"["+a.map(cc).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return""+a.overriddenName;if(a.name)return""+a.name;a=a.toString();if(null==a)return""+a;var b=a.indexOf("\n");return-1===b?a:a.substring(0,b)},Yba=function(a,b){return null==a||""===a?null===
b?"":b:null==b||""===b?a:a+" "+b},dc=function(a){a.__forward_ref__=dc;a.toString=function(){return cc(this())};return a},gc=function(a){return Zba(a)?a():a},Zba=function(a){return"function"===typeof a&&a.hasOwnProperty($ba)&&a.__forward_ref__===dc},hc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},ic=function(a){return{providers:a.providers||[],imports:a.imports||[]}},cca=function(a){var b;(b=a.hasOwnProperty(aca)?a[aca]:null)||(b=a.hasOwnProperty(bca)?
a[bca]:null);return b},dca=function(a){var b=a&&(a[aca]||a[bca]);return b?(a.hasOwnProperty("name")?a=a.name:(a=(""+a).match(/^function\s*([^\s(]+)/),a=null===a?"":a[1]),console.warn('DEPRECATED: DI is instantiating a token "'+a+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "'+(a+'" class.')),b):null},gca=function(a){return a&&(a.hasOwnProperty(eca)||a.hasOwnProperty(fca))?a[eca]:
null},lc=function(a){return"string"===typeof a?a:null==a?"":String(a)},nc=function(){throw new mc(-201,!1);},oc=function(a){var b=hca;hca=a;return b},ica=function(a,b,c){var d=cca(a);if(d&&"root"==d.providedIn)return void 0===d.value?d.value=d.factory():d.value;if(c&8)return null;if(void 0!==b)return b;nc(cc(a))},qc=function(a){var b=pc;pc=a;return b},jca=function(a,b){b=void 0===b?0:b;if(void 0===pc)throw new mc(203,"");return null===pc?ica(a,void 0,b):pc.get(a,b&8?null:void 0,b)},t=function(a,b){b=
void 0===b?0:b;return(hca||jca)(gc(a),b)},kca=function(a){for(var b=[],c=0;c<a.length;c++){var d=gc(a[c]);if(Array.isArray(d)){if(0===d.length)throw new mc(900,"");for(var e=void 0,f=0,h=0;h<d.length;h++){var k=d[h],q=k.__NG_DI_FLAG__;"number"===typeof q?-1===q?e=k.token:f|=q:e=k}b.push(t(e,f))}else b.push(t(d))}return b},rc=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},sc=function(a){return{toString:a}.toString()},lca=function(a){return function(){var b=tc.apply(0,arguments);
if(a){b=a.apply(null,v(b));for(var c in b)this[c]=b[c]}}},uc=function(a){return sc(function(){function b(){function d(h,k,q){for(k=h.hasOwnProperty("__parameters__")?h.__parameters__:Object.defineProperty(h,"__parameters__",{value:[]}).__parameters__;k.length<=q;)k.push(null);(k[q]=k[q]||[]).push(f);return h}var e=tc.apply(0,arguments);if(this instanceof b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(v(e))));d.annotation=f;return d}var c=lca(a);return b})},
w=function(a){return sc(function(){var b=!0===a.standalone,c={},d={type:a.type,providersResolver:null,decls:a.decls,vars:a.vars,factory:null,template:a.template||null,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:c,inputs:null,outputs:null,exportAs:a.exportAs||null,onPush:0===a.changeDetection,directiveDefs:null,pipeDefs:null,standalone:b,dependencies:b&&
a.dependencies||null,getStandaloneInjector:null,selectors:a.selectors||vc,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||0,id:"c",styles:a.styles||vc,_:null,setInput:null,schemas:a.schemas||null,tView:null},e=a.dependencies;b=a.features;d.id+=mca++;d.inputs=nca(a.inputs,c);d.outputs=nca(a.outputs);b&&b.forEach(function(f){return f(d)});d.directiveDefs=e?function(){return("function"===typeof e?e():e).map(oca).filter(pca)}:null;d.pipeDefs=e?function(){return("function"===
typeof e?e():e).map(qca).filter(pca)}:null;return d})},rca=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=function(){return b.map(oca)};a.pipeDefs=function(){return c.map(qca)}},oca=function(a){return a[wc]||a[sca]||null},pca=function(a){return null!==a},xc=function(a){return sc(function(){return{type:a.type,bootstrap:a.bootstrap||vc,declarations:a.declarations||vc,imports:a.imports||vc,exports:a.exports||vc,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},nca=function(a,b){if(null==
a)return yc;var c={},d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d],f=e;Array.isArray(e)&&(f=e[1],e=e[0]);c[e]=d;b&&(b[e]=f)}return c},zc=function(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}},qca=function(a){return a[tca]||null},Bc=function(a){return Array.isArray(a)&&"object"===typeof a[1]},Cc=function(a){return Array.isArray(a)&&!0===a[1]},Ec=function(a){return a.hasOwnProperty(Dc)?a[Dc]:null},Fc=function(){return uca},
uca=function(a){a.type.prototype.ngOnChanges&&(a.setInput=vca);return wca},wca=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===yc)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},vca=function(a,b,c,d){var e;(e=a.__ngSimpleChanges__||null)||(e=a.__ngSimpleChanges__={previous:yc,current:null});var f=e;e=f.current||(f.current={});f=f.previous;c=this.declaredInputs[c];var h=f[c];e[c]=new xca(h&&h.currentValue,b,f===
yc);a[d]=b},zca=function(){if(void 0!==yca)return yca;if("undefined"!==typeof document)return document},Gc=function(a){for(;Array.isArray(a);)a=a[0];return a},Hc=function(a,b){return Gc(b[a.index])},Ic=function(a,b){a=b[a];return Bc(a)?a:a[0]},Jc=function(a,b){return null===b||void 0===b?null:a[b]},Aca=function(a,b){a[5]+=b;var c=a;for(a=a[3];null!==a&&(1===b&&1===c[5]||-1===b&&0===c[5]);)a[5]+=b,c=a,a=a[3]},x=function(){return Kc.lView},z=function(a){Kc.contextLView=a;return a[8]},A=function(a){Kc.contextLView=
null;return a},Lc=function(){for(var a=Kc.currentTNode;null!==a&&64===a.type;)a=a.parent;return a},Mc=function(a,b){var c=Kc;c.currentTNode=a;c.isParent=b},Nc=function(){var a=Kc,b=a.bindingRootIndex;-1===b&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},Oc=function(a){var b=Kc,c=b.bindingIndex;b.bindingIndex+=a;return c},Bca=function(a){var b=Kc.currentDirectiveIndex;return-1===b?null:a[b]},Dca=function(a,b,c){if(c&4){for(;!(b=b.parent,null!==b||c&1);){b=a[1];b=2===b.type?b.declTNode:
1===b.type?a[6]:null;if(null===b)break;a=a[15];if(b.type&10)break}if(null===b)return!1}c=Kc=Cca();c.currentTNode=b;c.lView=a;return!0},Eca=function(a){var b=Cca(),c=a[1];Kc=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},Cca=function(){var a=Kc,b=null===a?null:a.child;return null===b?Fca(a):b},Fca=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};null!==a&&(a.child=b);return b},Gca=function(){var a=Kc;Kc=a.parent;a.currentTNode=null;a.lView=null;return a},Hca=function(){var a=Gca();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},Pc=function(){var a=Kc;return a.tView.data[a.selectedIndex]},
Qc=function(){Kc.currentNamespace="svg"},Rc=function(){Kc.currentNamespace=null},Sc=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,h=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;e&&(a.contentHooks||(a.contentHooks=[])).push(-c,e);f&&((a.contentHooks||(a.contentHooks=[])).push(c,f),(a.contentCheckHooks||(a.contentCheckHooks=[])).push(c,f));h&&(a.viewHooks||(a.viewHooks=[])).push(-c,h);k&&
((a.viewHooks||(a.viewHooks=[])).push(c,k),(a.viewCheckHooks||(a.viewCheckHooks=[])).push(c,k));null!=d&&(a.destroyHooks||(a.destroyHooks=[])).push(c,d)}},Uc=function(a,b,c,d){(a[2]&3)===c&&Tc(a,b,c,d)},Ica=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&2047)+1)},Tc=function(a,b,c,d){for(var e=null!=d?d:-1,f=b.length-1,h=0,k=void 0!==d?a[18]&65535:0;k<f;k++)if("number"===typeof b[k+1]){if(h=b[k],null!=d&&h>=d)break}else{0>b[k]&&(a[18]+=65536);if(h<e||-1==e){var q=0>b[k],u=b[k+1],y=a[q?-b[k]:b[k]];q?
a[2]>>11<a[18]>>16&&(a[2]&3)===c&&(a[2]+=2048,u.call(y)):u.call(y);a[18]=(a[18]&4294901760)+k+2}k++}},Vc=function(a,b,c){for(var d=!!a.listen,e=0;e<c.length;){var f=c[e];if("number"===typeof f){if(0!==f)break;e++;f=c[e++];var h=c[e++],k=c[e++];d?a.setAttribute(b,h,k,f):b.setAttributeNS(f,h,k)}else h=c[++e],64===f.charCodeAt(0)?d&&a.setProperty(b,f,h):d?a.setAttribute(b,f,h):b.setAttribute(f,h),e++}},Wc=function(a,b){if(null!==b&&0!==b.length)if(null===a||0===a.length)a=b.slice();else for(var c=-1,
d=0;d<b.length;d++){var e=b[d];"number"===typeof e?c=e:0!==c&&(-1===c||2===c?Jca(a,c,e,b[++d]):Jca(a,c,e,null))}return a},Jca=function(a,b,c,d){var e=0,f=a.length;if(-1===b)f=-1;else for(;e<a.length;){var h=a[e++];if("number"===typeof h)if(h===b){f=-1;break}else if(h>b){f=e-1;break}}for(;e<a.length;){h=a[e];if("number"===typeof h)break;else if(h===c){null!==d&&(a[e+1]=d);return}e++;null!==d&&e++}-1!==f&&(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);null!==d&&a.splice(e++,0,d)},Xc=function(a,b){for(a>>=
16;0<a;)b=b[15],a--;return b},Yc=function(a){var b=Kca;Kca=a;return b},$c=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(Zc)&&(d=c[Zc]);null==d&&(d=c[Zc]=Lca++);c=d&255;b.data[a+(c>>5)]|=1<<c},ad=function(a,b){var c=Mca(a,b);if(-1!==c)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Nca(c.data,a),Nca(b,null),Nca(c.blueprint,null));c=Oca(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&32767,e=Xc(c,b),f=e[1].data,h=0;8>h;h++)b[a+h]=e[d+h]|f[d+h];b[a+8]=c;return a},
Nca=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Mca=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},Oca=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;a=0;for(var c=b;null!==c;){b=Pca(c);if(null===b)break;a++;c=c[15];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},bd=function(a){var b=Lc();if("class"===a)return b.classes;if("style"===a)return b.styles;if(b=
b.attrs)for(var c=b.length,d=0;d<c;){var e=b[d];if(3===e||4===e||6===e)break;if(0===e)d+=2;else if("number"===typeof e)for(d++;d<c&&"string"===typeof b[d];)d++;else{if(e===a)return b[d+1];d+=2}}return null},Qca=function(a,b,c,d){c&8&&void 0===d&&(d=null);if(0===(c&3)){a=a[9];var e=oc();try{return a?a.get(b,d,c&8):ica(b,d,c&8)}finally{oc(e)}}c&8?b=d:(nc(),b=void 0);return b},Sca=function(a,b,c,d,e){d=void 0===d?0:d;if(null!==a){if(b[2]&1024){a:{var f=d;for(var h=cd,k=a,q=b;null!==k&&null!==q&&q[2]&
1024&&!(q[2]&256);){var u=Rca(k,q,c,f|2);if(u!==cd){f=u;break a}k=k.parent;if(!k){if(k=q[21])if(k=k.get(c,cd,f),k!==cd){f=k;break a}k=Pca(q);q=q[15]}}f=h}if(f!==cd)return f}a=Rca(a,b,c,d);if(a!==cd)return a}return Qca(b,c,d,e)},Rca=function(a,b,c,d){var e=cd;if("string"===typeof c)var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(Zc)?c[Zc]:void 0,f="number"===typeof f?0<=f?f&255:Tca:f;if("function"===typeof f){if(!Dca(b,a,d))return d&1?d&8?b=e:(nc(),b=void 0):b=Qca(b,c,d,e),b;try{var h=f(d);if(null!=
h||d&8)return h;nc()}finally{Gca()}}else if("number"===typeof f){h=null;var k=Mca(a,b),q=d&1?b[16][6]:null;if(-1===k||d&4){var u=-1===k?Oca(a,b):b[k+8];-1===u||d&2?k=-1:(h=b[1],k=u&32767,b=Xc(u,b))}for(;-1!==k;){a=b[1];if(a.data[k+(f>>5)]&1<<f){u=b[1];var y=u.data[k+8],D=dd(y,u,c,null==h?2===(y.flags&2)&&Kca:h!=u&&0!==(y.type&3),d&1&&q===y);u=null!==D?ed(b,u,D,y):cd;if(u!==cd)return u}u=b[k+8];-1!==u&&!(d&2||d&1&&b[1].data[k+8]===q)&&b[k+(f>>5)]&1<<f?(h=a,k=u&32767,b=Xc(u,b)):k=-1}}return e},dd=function(a,
b,c,d,e){var f=a.providerIndexes,h=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var q=f>>20;f=e?k+q:a;for(d=d?k:k+q;d<f;d++)if(k=h[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=h[b])&&null!==e.template&&e.type===c?b:null},ed=function(a,b,c,d){var e=a[c],f=b.data;if(e instanceof fd){var h=e;if(h.resolving)throw a=f[c],new mc(-200,"Circular dependency in DI detected for "+("function"===typeof a?a.name||a.toString():"object"===typeof a&&null!=a&&"function"===typeof a.type?a.type.name||
a.type.toString():lc(a)));var k=Yc(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?oc(h.injectImpl):null;Dca(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var u=f[c],y=u.type.prototype,D=y.ngOnInit,I=y.ngDoCheck;if(y.ngOnChanges){var N=uca(u);(b.preOrderHooks||(b.preOrderHooks=[])).push(c,N);(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,N)}D&&(b.preOrderHooks||(b.preOrderHooks=[])).push(-c,D);I&&((b.preOrderHooks||(b.preOrderHooks=[])).push(c,
I),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,I))}}finally{null!==q&&oc(q),Yc(k),h.resolving=!1,Gca()}}return e},Tca=function(){return new gd(Lc(),x())},hd=function(a){return sc(function(){var b=a.prototype.constructor;b=b[Dc]||Uca(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[Dc]||Uca(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Uca=function(a){return Zba(a)?function(){var b=Uca(gc(a));return b&&
b()}:Ec(a)},Pca=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},Vca=function(a,b){void 0===b&&(b=a);for(var c=0;c<a.length;c++){var d=a[c];Array.isArray(d)?(b===a&&(b=a.slice(0,c)),Vca(d,b)):b!==a&&b.push(d)}return b},id=function(a,b){a.forEach(function(c){return Array.isArray(c)?id(c,b):b(c)})},kd=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Wca=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);return c},md=function(a,b,c){var d=ld(a,b);if(0<=d)a[d|1]=c;else{d=
~d;var e=a.length;if(e==d)a.push(b,c);else if(1===e)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}}},Xca=function(a,b){b=ld(a,b);if(0<=b)return a[b|1]},ld=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)},Zca=function(){return{"\u0275providers":Yca(!0,tc.apply(0,arguments))}},Yca=function(a){var b=[],c=new Set,d;id(tc.apply(1,arguments),function(e){$ca(e,b,[],c)&&(d||(d=[]),d.push(e))});
void 0!==d&&ada(d,b);return b},ada=function(a,b){for(var c={},d=0;d<a.length;c={$jscomp$loop$prop$providers$1635:c.$jscomp$loop$prop$providers$1635,$jscomp$loop$prop$ngModule$1636:c.$jscomp$loop$prop$ngModule$1636},d++){var e=a[d];c.$jscomp$loop$prop$ngModule$1636=e.ngModule;c.$jscomp$loop$prop$providers$1635=e.providers;id(c.$jscomp$loop$prop$providers$1635,function(){return function(f){b.push(f)}}(c))}},$ca=function(a,b,c,d){a=gc(a);if(!a)return!1;var e=null,f=gca(a),h=!f&&(a[wc]||null);if(f||h){if(h&&
!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=gca(k))e=k;else return!1}k=d.has(e);if(h){if(k)return!1;d.add(e);if(h.dependencies)for(f="function"===typeof h.dependencies?h.dependencies():h.dependencies,f=r(f),k=f.next();!k.done;k=f.next())$ca(k.value,b,c,d)}else if(f){if(null!=f.imports&&!k){d.add(e);var q;id(f.imports,function(u){$ca(u,b,c,d)&&(q||(q=[]),q.push(u))});void 0!==q&&ada(q,b)}k||(h=Ec(e)||function(){return new e},b.push({provide:e,useFactory:h,deps:vc},{provide:bda,useValue:e,
multi:!0},{provide:cda,useValue:function(){return t(e)},multi:!0}));f=f.providers;null==f||k||id(f,function(u){b.push(u)})}else return!1;return e!==a&&void 0!==a.providers},eda=function(a){return null!==a&&"object"==typeof a&&dda in a},nd=function(a){return"function"===typeof a},hda=function(){void 0===fda&&(fda=new gda);return fda},jda=function(a){var b=cca(a);b=null!==b?b.factory:Ec(a);if(null!==b)return b;if(a instanceof od)throw new mc(204,!1);if(a instanceof Function)return ida(a);throw new mc(204,
!1);},ida=function(a){var b=a.length;if(0<b)throw Wca(b,"?"),new mc(204,!1);var c=dca(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},lda=function(a){if(eda(a))return pd(void 0,a.useValue);a=kda(a);return pd(a,qd)},kda=function(a){var b=void 0;if(nd(a))return b=gc(a),Ec(b)||jda(b);if(eda(a))b=function(){return gc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,v(kca(a.deps||[])))};else if(a&&a.useExisting)b=function(){return t(gc(a.useExisting))};
else{var c=gc(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(v(kca(a.deps)))))};else return Ec(c)||jda(c)}return b},pd=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},mda=function(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?mda(c,b):c.\u0275providers?mda(c.\u0275providers,b):b(c)},pda=function(a,b,c,d){a=nda(a,void 0===b?null:b,void 0===c?null:c,d);oda(a);return a},nda=function(a,
b,c,d,e){b=void 0===b?null:b;e=void 0===e?new Set:e;c=[(void 0===c?null:c)||vc,Zca(a)];d=d||("object"===typeof a?void 0:cc(a));return new rd(c,b||hda(),d||null,e)},qda=function(a){a.error.apply(a,v(tc.apply(1,arguments)))},td=function(a,b){return new sd(Hc(a,b))},rda=function(a){return a instanceof sd?a.nativeElement:a},ud=function(a,b){Bc(b)?(a.__ngContext__=b[20],sda.set(b[20],b)):a.__ngContext__=b},tda=function(a){a=a.__ngContext__;return(a="number"===typeof a?sda.get(a)||null:a||null)?Bc(a)?a:
a.lView:null},vd=function(a){return a.ownerDocument.defaultView},uda=function(a){return a.ownerDocument},B=function(a){vda(Kc.tView,x(),Kc.selectedIndex+a)},vda=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&Tc(b,a,3,c)):(a=a.preOrderHooks,null!==a&&Uc(b,a,0,c));Kc.selectedIndex=c},C=function(a,b){b=void 0===b?0:b;var c=x();return null===c?t(a,b):Sca(Lc(),c,gc(a),b)},wd=function(){throw Error("na");},wda=function(){if(void 0===xd&&(xd=null,yd.trustedTypes))try{xd=yd.trustedTypes.createPolicy("angular",
{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return xd},zd=function(a){var b;return(null==(b=wda())?void 0:b.createHTML(a))||a},xda=function(a){a=a[3];return Cc(a)?a[3]:a},Ad=function(a){for(;null!==a&&!Cc(a);)a=a[4];return a},Cd=function(a,b,c,d,e){if(null!=d){var f=!1;if(Cc(d))var h=d;else Bc(d)&&(f=!0,d=d[0]);d=Gc(d);if(0===a&&null!==c)null==e?yda(b,c,d):Bd(b,c,d,e||null,!0);else if(1===a&&null!==c)Bd(b,c,d,e||null,!0);else if(2===
a){var k=zda(b,d);k&&(b.listen?b.removeChild(k,d,f):k.removeChild(d))}else 3===a&&b.destroyNode(d);if(null!=h)for(d=h[7],f=Gc(h),d!==f&&Cd(a,b,c,d,e),e=10;e<h.length;e++)f=h[e],Dd(b,a,f[1].firstChild,f,c,d,!1)}},Ada=function(a,b,c){if(a.listen)return a.createElement(b,c);null!==c?(c=c.toLowerCase(),c="svg"===c?"http://www.w3.org/2000/svg":"math"===c?"http://www.w3.org/1998/MathML/":null):c=null;return null===c?a.createElement(b):a.createElementNS(c,b)},Bda=function(a,b){a=a[9];var c=a.indexOf(b),
d=b[3];b[2]&512&&(b[2]&=-513,Aca(d,-1));a.splice(c,1)},Cda=function(a,b){if(!(10>=a.length)){var c=10+b,d=a[c];if(d){var e=d[17];null!==e&&e!==a&&Bda(e,d);0<b&&(a[c-1][4]=d[4]);a=kd(a,10+b);Dd(d[11],2,d[1].firstChild,d,null,null,!1);d[0]=null;d[6]=null;b=a[19];null!==b&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-65}return d}},Eda=function(a,b){if(!(b[2]&128)){var c=b[11];c.listen&&c.destroyNode&&Dd(c,3,a.firstChild,b,null,null,!1);if(a=b[13])for(;a;){c=null;if(Bc(a))c=a[13];else{var d=a[10];d&&
(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)Bc(a)&&Dda(a[1],a),a=a[3];null===a&&(a=b);Bc(a)&&Dda(a[1],a);c=a&&a[4]}a=c}else Dda(b[1],b)}},Dda=function(a,b){if(!(b[2]&128)){b[2]&=-65;b[2]|=128;var c;if(null!=a&&null!=(c=a.destroyHooks))for(var d=0;d<c.length;d+=2){var e=b[c[d]];if(!(e instanceof fd)){var f=c[d+1];if(Array.isArray(f))for(var h=0;h<f.length;h+=2)f[h+1].call(e[f[h]]);else f.call(e)}}d=a.cleanup;c=b[7];f=-1;if(null!==d)for(e=0;e<d.length-1;e+=2)if("string"===typeof d[e]){f=d[e+1];h="function"===
typeof f?f(b):Gc(b[f]);var k=c[f=d[e+2]],q=d[e+3];if("boolean"===typeof q)h.removeEventListener(d[e],k,q);else if(0<=q)c[f=q]();else c[f=-q].unsubscribe();e+=2}else h=c[f=d[e+1]],d[e].call(h);if(null!==c){for(d=f+1;d<c.length;d++)(0,c[d])();b[7]=null}1===b[1].type&&b[11].listen&&b[11].destroy();c=b[17];null!==c&&Cc(b[3])&&(c!==b[3]&&Bda(c,b),c=b[19],null!==c&&c.detachView(a));sda.delete(b[20])}},Fda=function(a,b,c){for(;null!==b&&b.type&40;)b=b.parent;return null===b?c[0]:b.flags&2&&(a=a.data[b.directiveStart].encapsulation,
2===a||0===a)?null:Hc(b,c)},Bd=function(a,b,c,d,e){a.listen?a.insertBefore(b,c,d,e):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).insertBefore(c,d,e)},yda=function(a,b,c){a.listen?a.appendChild(b,c):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).appendChild(c)},zda=function(a,b){return a.listen?a.parentNode(b):b.parentNode},Fd=function(a,b,c,d){a=Fda(a,d.parent,b);var e=b[11];d=d.parent||b[6];b=d.type&40?Hc(d,b):null;if(null!=a)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=
c[d];null!==b?Bd(e,a,f,b,!1):yda(e,a,f)}else null!==b?Bd(e,a,c,b,!1):yda(e,a,c)},Gd=function(a,b){if(null!==b){var c=b.type;if(c&3)return Hc(b,a);if(c&4)return Gda(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return Gd(a,c);a=a[b.index];return Cc(a)?Gda(-1,a):Gc(a)}if(c&32)return(void 0)(b,a)()||Gc(a[b.index]);c=null!==b?a[16][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];a=xda(a[16]);return Gd(a,c)}return Gd(a,b.next)}return null},Gda=function(a,b){a+=11;if(a<b.length){a=
b[a];var c=a[1].firstChild;if(null!==c)return Gd(a,c)}return b[7]},Dd=function(a,b,c,d,e,f,h){for(;null!=c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&ud(Gc(k),d),c.flags|=4);if(64!==(c.flags&64))if(q&8)Dd(a,b,c.child,d,e,f,!1),Cd(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var u;u=q();)Cd(b,a,e,u,f);Cd(b,a,e,k,f)}else q&16?Hda(a,b,d,c,e,f):Cd(b,a,e,k,f);c=h?c.projectionNext:c.next}},Hda=function(a,b,c,d,e,f){c=c[16];d=c[6].projection[d.projection];if(Array.isArray(d))for(c=0;c<d.length;c++)Cd(b,a,
e,d[c],f);else Dd(a,b,d,c[3],e,f,!0)},Ida=function(a,b,c){a.listen?""===c?a.removeAttribute(b,"class"):a.setAttribute(b,"class",c):b.className=c},Jda=function(a,b){for(var c=0,d=a.length;;){c=a.indexOf(b,c);if(-1===c)return c;if(0===c||32>=a.charCodeAt(c-1)){var e=b.length;if(c+e===d||32>=a.charCodeAt(c+e))return c}c+=1}},Kda=function(a,b,c){var d=4,e=a.attrs||[],f;a:{for(f=0;f<e.length;f++){var h=e[f];if(3===h||4===h||6===h)break a}f=e.length}h=!1;for(var k=0;k<b.length;k++){var q=b[k];if("number"===
typeof q){if(!h&&0!==(d&1)&&0!==(q&1))return!1;h&&0===(q&1)||(h=!1,d=q|d&1)}else if(!h)if(d&4){if(d=2|d&1,""!==q&&q!==(4!==a.type||c?a.value:"ng-template")||""===q&&1===b.length){if(0===(d&1))return!1;h=!0}}else{var u=d&8?q:b[++k];if(d&8&&null!==a.attrs){a:{q=a.attrs;for(var y=c,D=0;D<q.length;){var I=q[D++];if(y&&"class"===I){if(I=q[D],-1!==Jda(I.toLowerCase(),u)){u=!0;break a}}else if(1===I){for(;D<q.length&&"string"==typeof(I=q[D++]);)if(I.toLowerCase()===u){u=!0;break a}break}}u=!1}if(!u){if(0===
(d&1))return!1;h=!0}}else{a:if(q=d&8?"class":q,null===e)q=-1;else if(y=0,c||4!==a.type||"ng-template"===a.value){for(D=!1;y<e.length;){I=e[y];if(I===q){q=y;break a}if(3===I||6===I)D=!0;else if(1===I||2===I){for(I=e[++y];"string"===typeof I;)I=e[++y];continue}else if(4===I)break;else if(0===I){y+=4;continue}y+=D?1:2}q=-1}else b:{y=e.indexOf(4);if(-1<y)for(y++;y<e.length;){D=e[y];if("number"===typeof D)break;if(D===q){q=y;break b}y++}q=-1}if(-1===q){if(0===(d&1))return!1;h=!0}else if(""!==u&&(q=q>f?
"":e[q+1].toLowerCase(),(y=d&8?q:null)&&-1!==Jda(y,u)||d&2&&u!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},Lda=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(Kda(a,b[d],c))return!0;return!1},Mda=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if("string"===typeof h)if(d&2){var k=a[++c];e+="["+h+(0<k.length?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);else""!==e&&0!==(h&1)&&(b+=f?":not("+e.trim()+")":e,e=""),d=h,f=f||0!==(d&1);c++}""!==e&&(b+=
f?":not("+e.trim()+")":e);return b},Id=function(a){return a instanceof Hd?a.changingThisBreaksApplicationSecurity:a},Jd=function(a,b){a=a instanceof Hd&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("oa`"+b+"`"+a);}return a===b},Kd=function(a){a=String(a);return a.match(Nda)||a.match(Oda)?a:"unsafe:"+a},Pda=function(a){a=String(a);return a.split(",").map(function(b){return Kd(b.trim())}).join(", ")},Ld=function(a){var b={};a=r(a.split(","));for(var c=
a.next();!c.done;c=a.next())b[c.value]=!0;return b},Md=function(){for(var a={},b=r(tc.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},Sda=function(a){return a.replace(/&/g,"&amp;").replace(Qda,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Rda,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},bea=function(a,b){var c=null;try{var d;if(!(d=Nd)){var e=
new Tda(a);try{var f=!!(new window.DOMParser).parseFromString(zd(""),"text/html")}catch(X){f=!1}d=f?new Uda(e):e}Nd=d;var h=b?String(b):"";c=Nd.getInertBodyElement(h);a=5;b=h;do{if(0===a)throw Error("qa");a--;h=b;b=c.innerHTML;c=Nd.getInertBodyElement(h)}while(h!==b);var k=new Vda,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c).firstChild;for(h=!0;q;){if(q.nodeType===Node.ELEMENT_NODE){a=k;b=q;var u=b.nodeName.toLowerCase();if(Wda.hasOwnProperty(u)){a.buf.push("<");
a.buf.push(u);var y=b.attributes;for(b=0;b<y.length;b++){var D=y.item(b),I=D.name,N=I.toLowerCase();if(Xda.hasOwnProperty(N)){var L=D.value;Yda[N]&&(L=Kd(L));Zda[N]&&(L=Pda(L));a.buf.push(" ",I,'="',Sda(L),'"')}}a.buf.push(">");h=!0}else h=!$da.hasOwnProperty(u)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Sda(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var S=aea(q,q.nextSibling);if(S){q=S;break}q=aea(q,q.parentNode)}}return zd(k.buf.join(""))}finally{if(c)for(c=
("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c;c.firstChild;)c.removeChild(c.firstChild)}},cea=function(){if(void 0===Od&&(Od=null,yd.trustedTypes))try{Od=yd.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Od},dea=function(a){var b;return(null==(b=cea())?void 0:b.createHTML(a))||a},eea=function(a){var b;return(null==(b=cea())?void 0:
b.createScriptURL(a))||a},Pd=function(a){var b=fea();return b?dea(b.sanitize(1,a)||""):Jd(a,"HTML")?dea(Id(a)):bea(zca(),lc(a))},Qd=function(a){var b=fea();return b?b.sanitize(4,a)||"":Jd(a,"URL")?Id(a):Kd(lc(a))},gea=function(a){var b=fea();if(b)return eea(b.sanitize(5,a)||"");if(Jd(a,"ResourceURL"))return eea(Id(a));throw new mc(904,"");},fea=function(){var a=x();return a&&a[12]},hea=function(a,b){var c=a.contentQueries;if(null!==c)for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1];if(-1!==f){var h=
a.data[f];Kc.currentQueryIndex=e;h.contentQueries(2,b[f],f)}}},Rd=function(a,b,c,d,e,f,h,k,q,u,y){var D=b.blueprint.slice();D[0]=e;D[2]=d|76;if(null!==y||a&&a[2]&1024)D[2]|=1024;D[18]=0;D[3]=D[15]=a;D[8]=c;D[10]=h||a&&a[10];D[11]=k||a&&a[11];D[12]=q||a&&a[12]||null;D[9]=u||a&&a[9]||null;D[6]=f;D[20]=iea++;D[21]=y;D[16]=2==b.type?a[16]:D;return D},Sd=function(a,b,c,d,e){var f=a.data[b];if(null===f){f=Kc.currentTNode;var h=Kc.isParent,k=h?f:f&&f.parent;b=a.data[b]={type:c,index:b,insertBeforeIndex:null,
injectorIndex:k?k.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:k,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};null===a.firstChild&&(a.firstChild=b);
null!==f&&(h?null==f.child&&null!==b.parent&&(f.child=b):null===f.next&&(f.next=b));f=b;Kc.inI18n&&(f.flags|=64)}else f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Kc,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=null===a?-1:a.injectorIndex);Mc(f,!0);return f},jea=function(a,b,c,d){if(0===c)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},Td=function(a,b,c){Eca(b);try{var d=a.viewQuery;null!==d&&(Kc.currentQueryIndex=0,d(1,c));var e=a.template;
null!==e&&kea(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);a.staticContentQueries&&hea(a,b);if(a.staticViewQueries){var f=a.viewQuery;Kc.currentQueryIndex=0;f(2,c)}var h=a.components;if(null!==h)for(c=0;c<h.length;c++){for(var k=Ic(h[c],b),q=k[1],u=k.length;u<q.blueprint.length;u++)k.push(q.blueprint[u]);Td(q,k,k[8])}}catch(y){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),y;}finally{b[2]&=-5,Hca()}},Ud=function(a,b,c,d){var e=b[2];if(128!==(e&128)){Eca(b);try{b[18]=
0;Kc.bindingIndex=a.bindingStartIndex;null!==c&&kea(a,b,c,2,d);if(c=3===(e&3)){var f=a.preOrderCheckHooks;null!==f&&Tc(b,f,3,null)}else{var h=a.preOrderHooks;null!==h&&Uc(b,h,0,null);Ica(b,0)}for(var k=Ad(b[13]);null!==k;k=Ad(k[4]))if(k[2]){var q=k[9];for(f=0;f<q.length;f++){var u=q[f],y=u[3];0===(u[2]&512)&&Aca(y,1);u[2]|=512}}for(var D=Ad(b[13]);null!==D;D=Ad(D[4]))for(k=10;k<D.length;k++){var I=D[k],N=I[1];64===(I[2]&64)&&Ud(N,I,N.template,I[8])}null!==a.contentQueries&&hea(a,b);if(c){var L=a.contentCheckHooks;
null!==L&&Tc(b,L,3)}else{var S=a.contentHooks;null!==S&&Uc(b,S,1);Ica(b,1)}var X=a.hostBindingOpCodes;if(null!==X)try{for(D=0;D<X.length;D++){var ka=X[D];if(0>ka)Kc.selectedIndex=~ka;else{I=ka;var ha=X[++D],ra=X[++D];N=Kc;N.bindingIndex=N.bindingRootIndex=ha;Kc.currentDirectiveIndex=I;ra(2,b[I])}}}finally{Kc.selectedIndex=-1}var Da=a.components;if(null!==Da)for(X=0;X<Da.length;X++){var Ja=Ic(Da[X],b);if(64===(Ja[2]&64)){var Ba=Ja[1];Ja[2]&48?Ud(Ba,Ja,Ba.template,Ja[8]):0<Ja[5]&&lea(Ja)}}var La=a.viewQuery;
null!==La&&(Kc.currentQueryIndex=0,La(2,d));if(c){var hb=a.viewCheckHooks;null!==hb&&Tc(b,hb,3)}else{var fb=a.viewHooks;null!==fb&&Uc(b,fb,2);Ica(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-41;b[2]&512&&(b[2]&=-513,Aca(b[3],-1))}finally{Hca()}}},kea=function(a,b,c,d,e){var f=Kc.selectedIndex;try{Kc.selectedIndex=-1,d&2&&22<b.length&&vda(a,b,22),c(d,e)}finally{Kc.selectedIndex=f}},mea=function(a,b,c){if(0!==(b.flags&8)){var d=b.directiveEnd;for(b=b.directiveStart;b<d;b++){var e=a.data[b];
e.contentQueries&&e.contentQueries(1,c[b],b)}}},oea=function(a,b,c){var d=Hc(c,b),e=c.directiveStart,f=c.directiveEnd;a.firstCreatePass||ad(c,b);ud(d,b);d=c.initialInputs;for(var h=e;h<f;h++){var k=a.data[h],q=null!==k.template;if(q){var u=b,y=c,D=Hc(y,u),I=nea(k),N=u[10];D=Vd(u,Rd(u,I,null,k.onPush?32:16,D,y,N,N.createRenderer(D,k),null,null,null));u[y.index]=D}u=ed(b,a,h,c);ud(u,b);if(null!==d&&(y=d[h-e],null!==y))for(D=k.setInput,I=0;I<y.length;){N=y[I++];var L=y[I++],S=y[I++];null!==D?k.setInput(u,
S,N,L):u[L]=S}q&&(Ic(c.index,b)[8]=u)}if(128===(c.flags&128)){f=c.directiveStart;e=c.directiveEnd;d=c.index;c=Kc.currentDirectiveIndex;try{for(Kc.selectedIndex=d;f<e;f++){var X=a.data[f],ka=b[f];Kc.currentDirectiveIndex=f;null===X.hostBindings&&0===X.hostVars&&null===X.hostAttrs||null===X.hostBindings||X.hostBindings(1,ka)}}finally{Kc.selectedIndex=-1,Kc.currentDirectiveIndex=c}}},pea=function(a,b,c){c=void 0===c?Hc:c;var d=b.localNames;if(null!==d)for(var e=b.index+1,f=0;f<d.length;f+=2){var h=d[f+
1];h=-1===h?c(b,a):a[h];a[e++]=h}},nea=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=qea(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):b},qea=function(a,b,c,d,e,f,h,k,q,u){d=22+d;e=d+e;for(var y=[],D=0;D<e;D++)y.push(D<d?null:Wd);u="function"===typeof u?u():u;return y[1]={type:a,blueprint:y,template:c,queries:null,viewQuery:k,declTNode:b,data:y.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:"function"===typeof f?f():f,pipeRegistry:"function"===typeof h?h():h,firstChild:null,schemas:q,consts:u,incompleteFirstPass:!1}},rea=function(a,b,c,d){b=b[7]||(b[7]=[]);null===c?b.push(d):(b.push(c),a.firstCreatePass&&
(a.cleanup||(a.cleanup=[])).push(d,b.length-1))},sea=function(a,b,c){for(var d in a)if(a.hasOwnProperty(d)){c=null===c?{}:c;var e=a[d];c.hasOwnProperty(d)?c[d].push(b,e):c[d]=[b,e]}return c},Xd=function(a,b,c,d,e,f,h,k){var q=Hc(b,c),u=b.inputs,y;!k&&null!=u&&(y=u[d])?(tea(a,c,y,d,e),2===(b.flags&2)&&(a=Ic(b.index,c),a[2]&16||(a[2]|=32))):b.type&3&&(d="class"===d?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":
d,e=null!=h?h(e,b.value||"",d):e,f.listen?f.setProperty(q,d,e):64===d.charCodeAt(0)||(q.setProperty?q.setProperty(d,e):q[d]=e))},vea=function(a,b,c){var d=Lc();if(a.firstCreatePass){c.providersResolver&&c.providersResolver(c);var e=jea(a,b,1,null);uea(a,d,b,e,c)}a=ed(b,a,d.directiveStart,d);ud(a,b);(d=Hc(d,b))&&ud(d,b);return a},xea=function(a,b,c,d){var e=a.directiveRegistry;var f=null;if(e)for(var h=0;h<e.length;h++){var k=e[h];if(Lda(c,k.selectors,!1)){f||(f=[]);var q=ad(c,b);$c(q,a,k.type);null!==
k.template?(wea(a,c),f.unshift(k)):f.push(k)}}e=null===d?null:{"":-1};if(null!==f){h=a.data.length;k=f.length;c.flags|=1;c.directiveStart=h;c.directiveEnd=h+k;c.providerIndexes=h;for(h=0;h<f.length;h++)k=f[h],k.providersResolver&&k.providersResolver(k);k=h=!1;q=jea(a,b,f.length,null);for(var u=0;u<f.length;u++){var y=f[u];c.mergedAttrs=Wc(c.mergedAttrs,y.hostAttrs);uea(a,c,b,q,y);var D=q;if(e){if(y.exportAs)for(var I=0;I<y.exportAs.length;I++)e[y.exportAs[I]]=D;null!==y.template&&(e[""]=D)}null!==
y.contentQueries&&(c.flags|=8);if(null!==y.hostBindings||null!==y.hostAttrs||0!==y.hostVars)c.flags|=128;y=y.type.prototype;!h&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((a.preOrderHooks||(a.preOrderHooks=[])).push(c.index),h=!0);k||!y.ngOnChanges&&!y.ngDoCheck||((a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(c.index),k=!0);q++}b=c.directiveEnd;a=a.data;f=c.attrs;h=[];q=k=null;for(u=c.directiveStart;u<b;u++){y=a[u];D=y.inputs;if(null===f||4===c.type&&"ng-template"!==c.value)I=null;else{I=
null;for(var N=0;N<f.length;){var L=f[N];if(0===L)N+=4;else{if(5!==L){if("number"===typeof L)break;D.hasOwnProperty(L)&&(null===I&&(I=[]),I.push(L,D[L],f[N+1]))}N+=2}}}h.push(I);k=sea(D,u,k);q=sea(y.outputs,u,q)}null!==k&&(k.hasOwnProperty("class")&&(c.flags|=16),k.hasOwnProperty("style")&&(c.flags|=32));c.initialInputs=h;c.inputs=k;c.outputs=q}if(e&&d)for(a=c.localNames=[],b=0;b<d.length;b+=2){f=e[d[b+1]];if(null==f)throw new mc(-301,!1);a.push(d[b],f)}c.mergedAttrs=Wc(c.mergedAttrs,c.attrs)},yea=
function(a,b,c,d,e){if(e=e.hostBindings){var f=a.hostBindingOpCodes;null===f&&(f=a.hostBindingOpCodes=[]);a=~b.index;a:{for(b=f.length;0<b;){var h=f[--b];if("number"===typeof h&&0>h){b=h;break a}}b=0}b!=a&&f.push(a);f.push(c,d,e)}},wea=function(a,b){b.flags|=2;(a.components||(a.components=[])).push(b.index)},uea=function(a,b,c,d,e){a.data[d]=e;var f=e.factory||(e.factory=Ec(e.type));f=new fd(f,null!==e.template);a.blueprint[d]=f;c[d]=f;yea(a,b,d,jea(a,c,e.hostVars,Wd),e)},Yd=function(a,b,c,d,e,f){var h=
Hc(a,b);b=b[11];a=a.value;null==d?b.listen?b.removeAttribute(h,c,f):h.removeAttribute(c):(d=null==e?lc(d):e(d,a||"",c),b.listen?b.setAttribute(h,c,d,f):f?h.setAttributeNS(f,c,d):h.setAttribute(c,d))},lea=function(a){for(var b=Ad(a[13]);null!==b;b=Ad(b[4]))for(var c=10;c<b.length;c++){var d=b[c];if(d[2]&512){var e=d[1];Ud(e,d,e.template,d[8])}else 0<d[5]&&lea(d)}b=a[1].components;if(null!==b)for(c=0;c<b.length;c++)d=Ic(b[c],a),64===(d[2]&64)&&0<d[5]&&lea(d)},Vd=function(a,b){a[13]?a[14][4]=b:a[13]=
b;return a[14]=b},zea=function(a){for(;a;){a[2]|=32;var b=xda(a);if(0!==(a[2]&256)&&!b)break;a=b}},Aea=function(a,b,c){if(null===a||null!==a.template)a:{for(a=c[b.index];Array.isArray(a);){if("object"===typeof a[1]){c=a;break a}a=a[0]}c=null}return c[11]},Bea=function(a,b){(a=(a=a[9])?a.get(Zd,null):null)&&a.handleError(b)},tea=function(a,b,c,d,e){for(var f=0;f<c.length;){var h=c[f++],k=c[f++],q=b[h];h=a.data[h];null!==h.setInput?h.setInput(q,e,d,k):q[k]=e}},Cea=function(a,b){var c=Gc(a[Kc.selectedIndex]);
a=a[11];a.listen?a.setValue(c,b):c.textContent=b},$d=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(null!==b)for(var h=0;h<b.length;h++){var k=b[h];if("number"===typeof k)f=k;else if(1==f)e=Yba(e,k);else if(2==f){var q=b[++h];d=Yba(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Eea=function(a,b,c,d){var e=[Dea],f=c[1],h=vea(f,c,b);d.components.push(h);a[8]=h;e&&e.forEach(function(k){return k(h,b)});b.contentQueries&&b.contentQueries(1,h,
Lc().directiveStart);a=Lc();!f.firstCreatePass||null===b.hostBindings&&null===b.hostAttrs||(Kc.selectedIndex=a.index,yea(c[1],a,a.directiveStart,a.directiveEnd,b),null!==b.hostBindings&&b.hostBindings(1,h));return h},Dea=function(a){a=tda(a)[1];Sc(a,Lc())},ae=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(Gc(f));if(Cc(f))for(var h=10;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==q&&ae(k[1],k,q,d)}f=c.type;if(f&8)ae(a,b,c.child,d);else if(f&32)for(f=(void 0)(c,
b);h=f();)d.push(h);else f&16&&(f=null!==c?b[16][6].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,v(f)):(h=xda(b[16]),ae(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},Fea=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push({propName:a[c],templateName:c});return b},Gea=function(a,b,c){return(new be(a,void 0===b?null:b,void 0===c?null:c)).injector},ce=function(a){return!!a&&"function"===typeof a.then},Hea=function(a){return!!a&&"function"===typeof a.subscribe},Iea=
function(){},Kea=function(){return Jea()+Jea()+Jea()},Jea=function(){return String.fromCharCode(97+Math.floor(25*Math.random()))},de=function(a){var b=a.toLowerCase().replace(/_/g,"-"),c=Lea(b);if(c)return c;b=b.split("-")[0];if(c=Lea(b))return c;if("en"===b)return Mea;throw Error("ra`"+a);},Lea=function(a){a in Nea||(Nea[a]=yd.ng&&yd.ng.common&&yd.ng.common.locales&&yd.ng.common.locales[a]);return Nea[a]},ee=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,c=!0,d=[a];b;){if(null!==
a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new mc(903,"");e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Oea(a.inputs);f.declaredInputs=Oea(a.declaredInputs);f.outputs=Oea(a.outputs);(f=e.hostBindings)&&Pea(a,f);f=e.viewQuery;var h=e.contentQueries;f&&Qea(a,f);h&&Rea(a,h);Xba(a.inputs,e.inputs);Xba(a.declaredInputs,e.declaredInputs);Xba(a.outputs,e.outputs);null!==e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=
0;f<e.length;f++)(h=e[f])&&h.ngInherit&&h(a),h===ee&&(c=!1)}b=Object.getPrototypeOf(b)}a=0;b=null;for(c=d.length-1;0<=c;c--)e=d[c],e.hostVars=a+=e.hostVars,e.hostAttrs=Wc(e.hostAttrs,b=Wc(b,e.hostAttrs))},Oea=function(a){return a===yc?{}:a===vc?[]:a},Qea=function(a,b){var c=a.viewQuery;c?a.viewQuery=function(d,e){b(d,e);c(d,e)}:a.viewQuery=b},Rea=function(a,b){var c=a.contentQueries;c?a.contentQueries=function(d,e,f){b(d,e,f);c(d,e,f)}:a.contentQueries=b},Pea=function(a,b){var c=a.hostBindings;c?
a.hostBindings=function(d,e){b(d,e);c(d,e)}:a.hostBindings=b},ge=function(){if(!fe){var a=yd.Symbol;if(a&&a.iterator)fe=a.iterator;else{a=Object.getOwnPropertyNames(Map.prototype);for(var b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(fe=c)}}}return fe},Tea=function(a){return Sea(a)?Array.isArray(a)||!(a instanceof Map)&&ge()in a:!1},Uea=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[ge()]();!(c=a.next()).done;)b(c.value)},
Sea=function(a){return null!==a&&("function"===typeof a||"object"===typeof a)},he=function(a,b,c){return a[b]=c},ie=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},je=function(a,b,c,d){c=ie(a,b,c);return ie(a,b+1,d)||c},Vea=function(a,b,c,d,e){c=je(a,b,c,d);return ie(a,b+2,e)||c},ke=function(a,b,c,d){var e=x(),f=Kc.bindingIndex++;ie(e,f,b)&&(f=Pc(),Yd(f,e,a,b,c,d));return ke},le=function(a,b,c,d){return ie(a,Kc.bindingIndex++,c)?b+lc(c)+d:Wd},Wea=function(a,b,c,d,e,f){a=je(a,Kc.bindingIndex,
c,e);Oc(2);return a?b+lc(c)+d+lc(e)+f:Wd},me=function(a,b,c,d,e,f){var h=x();b=le(h,b,c,d);b!==Wd&&(c=Pc(),Yd(c,h,a,b,e,f));return me},ne=function(a,b,c,d,e,f,h,k){var q=x();b=Wea(q,b,c,d,e,f);b!==Wd&&(c=Pc(),Yd(c,q,a,b,h,k));return ne},Xea=function(a,b,c,d,e,f,h,k,q,u){var y=x(),D=Vea(y,Kc.bindingIndex,c,e,h);Oc(3);b=D?b+lc(c)+d+lc(e)+f+lc(h)+k:Wd;b!==Wd&&(c=Pc(),Yd(c,y,a,b,q,u));return Xea},E=function(a,b,c){var d=x(),e=Kc.bindingIndex++;if(ie(d,e,b)){e=Kc.tView;var f=Pc();Xd(e,f,d,a,b,d[11],c,
!1)}return E},Yea=function(a,b,c,d,e){e=e?"class":"style";tea(a,c,b.inputs[e],e,d)},Zea=function(a,b,c,d){for(var e=a[c+1],f=null===b,h=d?e>>17&32767:(e&131068)>>2,k=!1;0!==h&&(!1===k||f);){var q=a[h+1],u=a[h],y=b;if(null===u||null==y||(Array.isArray(u)?u[1]:u)===y||Array.isArray(u)&&"string"===typeof y&&0<=ld(u,y))k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},dfa=function(a,b){var c=$ea;if(c===b)return-1;for(b=afa=b;b<c&&32<a.charCodeAt(b);)b++;b=bfa=b;return cfa(a,b,
c)},cfa=function(a,b,c){for(;b<c&&32>=a.charCodeAt(b);)b++;return b},oe=function(a,b,c){efa(a,b,c,!1);return oe},pe=function(a,b){efa(a,b,null,!0);return pe},efa=function(a,b,c,d){var e=x(),f=Kc.tView,h=Oc(2);f.firstUpdatePass&&ffa(f,a,h,d);if(b!==Wd&&ie(e,h,b)){var k=f.data[Kc.selectedIndex],q=e[11];null!=b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=cc(Id(b))));gfa(f,k,e,q,a,e[h+1]=b,d,h)}},qe=function(a){var b=Kc.tView,c=Oc(2);b.firstUpdatePass&&ffa(b,null,c,!0);var d=x();if(a!==Wd&&ie(d,
c,a)){var e=b.data[Kc.selectedIndex];if(0===(e.flags&16)||c>=b.expandoStartIndex){var f=d[11],h=d[c+1];if(null==a||""===a)var k=vc;else if(k=[],a=Id(a),Array.isArray(a))for(var q=0;q<a.length;q++)md(k,a[q],!0);else if("object"===typeof a)for(q in a)a.hasOwnProperty(q)&&md(k,q,a[q]);else if("string"===typeof a)for(bfa=afa=0,$ea=a.length,q=dfa(a,cfa(a,0,$ea));0<=q;q=dfa(a,q))md(k,a.substring(afa,bfa),!0);k=d[c+1]=k;h===Wd&&(h=vc);q=a=0;for(var u=0<h.length?h[0]:null,y=0<k.length?k[0]:null;null!==u||
null!==y;){var D=a<h.length?h[a+1]:void 0,I=q<k.length?k[q+1]:void 0,N=null,L=void 0;u===y?(a+=2,q+=2,D!==I&&(N=y,L=I)):null===y||null!==u&&u<y?(a+=2,N=u):(q+=2,N=y,L=I);null!==N&&gfa(b,e,d,f,N,L,!0,c);u=a<h.length?h[a]:null;y=q<k.length?k[q]:null}}else c=e.classesWithoutHost,null!==c&&(a=Yba(c,a?a:"")),Yea(b,e,d,a,!0)}},ffa=function(a,b,c,d){var e=a.data;if(null===e[c+1]){var f=e[Kc.selectedIndex];a=c>=a.expandoStartIndex;0!==(f.flags&(d?16:32))&&null===b&&!a&&(b=!1);var h=Bca(e),k=d?f.residualClasses:
f.residualStyles;if(null===h)0===(d?f.classBindings:f.styleBindings)&&(b=hfa(null,e,f,b,d),b=re(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===q||e[q]!==h)if(b=hfa(h,e,f,b,d),null===k)h=d?f.classBindings:f.styleBindings,h=0!==(h&131068)>>2?e[h>>17&32767]:void 0,void 0!==h&&Array.isArray(h)&&(h=hfa(null,e,f,h[1],d),h=re(h,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=h);else{k=void 0;h=f.directiveEnd;for(q=1+f.directiveStylingLast;q<h;q++)k=re(k,e[q].hostAttrs,d);k=re(k,
f.attrs,d)}}void 0!==k&&(d?f.residualClasses=k:f.residualStyles=k);q=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=q;var u=!1;if(Array.isArray(q)){if(h=q[1],null===h||0<ld(q,h))u=!0}else h=q;a?0!==k?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,0!==a&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,0!==b&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,0===b?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);u&&(e[c+1]=e[c+1]|2);Zea(e,h,c,!0);Zea(e,h,c,!1);a=d?f.residualClasses:
f.residualStyles;null!=a&&"string"==typeof h&&0<=ld(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},hfa=function(a,b,c,d,e){var f=c.directiveEnd,h=c.directiveStylingLast;for(-1===h?h=c.directiveStart:h++;h<f;){var k=b[h];d=re(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},re=function(a,b,c){var d=c?1:2,e=-1;if(null!==b)for(var f=0;f<b.length;f++){var h=b[f];"number"===typeof h?e=h:e===d&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),md(a,
h,c?!0:b[++f]))}return void 0===a?null:a},gfa=function(a,b,c,d,e,f,h,k){if(b.type&3){a=a.data;var q=a[k+1];if(void 0===(1===(q&1)?ifa(a,b,c,e,(q&131068)>>2,h):void 0))if(void 0!==f||2==(q&2)&&(f=ifa(a,null,c,e,k,h)),b=Gc(c[Kc.selectedIndex]),c=!!d.listen,h)f?c?d.addClass(b,e):b.classList.add(e):c?d.removeClass(b,e):b.classList.remove(e);else if(h=-1===e.indexOf("-")?void 0:2,null==f)c?d.removeStyle(b,e,h):b.style.removeProperty(e);else{if(k="string"===typeof f?f.endsWith("!important"):!1)f=f.slice(0,
-10),h|=1;c?d.setStyle(b,e,f,h):b.style.setProperty(e,f,k?"important":"")}}},ifa=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],u=Array.isArray(q),y=u?q[1]:q,D=null===y,I=c[e+1];I===Wd&&(I=D?vc:void 0);y=D?Xca(I,d):y===d?I:void 0;u&&void 0===y&&(y=Xca(q,d));if(void 0!==y&&(k=y,h))return k;e=a[e+1];e=h?e>>17&32767:(e&131068)>>2}null!==b&&(a=f?b.residualClasses:b.residualStyles,null!=a&&(k=Xca(a,d)));return k},ue=function(a,b,c){a=le(x(),a,b,c);qe(a)},F=function(a,b,c,d){var e=x(),
f=Kc.tView,h=22+a;a=e[11];var k=e[h]=Ada(a,b,Kc.currentNamespace);if(f.firstCreatePass){var q=f.consts;c=Jc(q,c);b=Sd(f,h,2,b,c);xea(f,e,b,Jc(q,d));null!==b.attrs&&$d(b,b.attrs,!1);null!==b.mergedAttrs&&$d(b,b.mergedAttrs,!0);null!==f.queries&&f.queries.elementStart(f,b)}else b=f.data[h];Mc(b,!0);q=b.mergedAttrs;null!==q&&Vc(a,k,q);q=b.classes;null!==q&&Ida(a,k,q);q=b.styles;null!==q&&(a.listen?a.setAttribute(k,"style",q):k.style.cssText=q);64!==(b.flags&64)&&Fd(f,e,k,b);0===Kc.elementDepthCount&&
ud(k,e);Kc.elementDepthCount++;1===(b.flags&1)&&(oea(f,e,b),mea(f,b,e));null!==d&&pea(e,b);return F},G=function(){var a=Lc();Kc.isParent?Kc.isParent=!1:(a=a.parent,Mc(a,!1));var b=a;Kc.elementDepthCount--;var c=Kc.tView;c.firstCreatePass&&(Sc(c,a),0!==(a.flags&8)&&c.queries.elementEnd(a));null!=b.classesWithoutHost&&0!==(b.flags&16)&&Yea(c,b,x(),b.classesWithoutHost,!0);null!=b.stylesWithoutHost&&0!==(b.flags&32)&&Yea(c,b,x(),b.stylesWithoutHost,!1);return G},H=function(a,b,c,d){F(a,b,c,d);G();return H},
ve=function(a,b,c){var d=x(),e=Kc.tView;a+=22;if(e.firstCreatePass){var f=e.consts;var h=Jc(f,b);b=Sd(e,a,8,"ng-container",h);null!==h&&$d(b,h,!0);f=Jc(f,c);xea(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];Mc(f,!0);a=d[a]=d[11].createComment("");Fd(e,d,a,f);ud(a,d);1===(f.flags&1)&&(oea(e,d,f),mea(e,f,d));null!=c&&pea(d,f);return ve},we=function(){var a=Lc(),b=Kc.tView;Kc.isParent?Kc.isParent=!1:(a=a.parent,Mc(a,!1));b.firstCreatePass&&(Sc(b,a),0!==(a.flags&8)&&b.queries.elementEnd(a));
return we},xe=function(a,b,c){ve(a,b,c);we();return xe},ye=function(a,b,c){var d=x(),e=Kc.bindingIndex++;if(ie(d,e,b)){e=Kc.tView;var f=Pc();Xd(e,f,d,a,b,d[11],c,!0)}return ye},ze=function(a,b,c){var d=x(),e=Kc.bindingIndex++;if(ie(d,e,b)){e=Kc.tView;var f=Pc(),h=Aea(Bca(e.data),f,d);Xd(e,f,d,a,b,h,c,!0)}return ze},J=function(a,b,c,d){var e=x();jfa(Kc.tView,e,e[11],Lc(),a,b,!!c,d);return J},kfa=function(a,b){var c=Lc(),d=x(),e=Kc.tView,f=Aea(Bca(e.data),c,d);jfa(e,d,f,c,a,b,!1);return kfa},lfa=function(a,
b,c,d){a=a.cleanup;if(null!=a)for(var e=0;e<a.length-1;e+=2){var f=a[e];if(f===c&&a[e+1]===d)return b=b[7],c=a[e+2],b.length>c?b[c]:null;"string"===typeof f&&(e+=2)}return null},jfa=function(a,b,c,d,e,f,h,k){var q=1===(d.flags&1),u=a.firstCreatePass&&(a.cleanup||(a.cleanup=[])),y=b[7]||(b[7]=[]),D=!0;if(d.type&3||k){var I=Hc(d,b),N=k?k(I):I;I=y.length;var L=k?function(X){return k(Gc(X[d.index]))}:d.index;c.listen?(h=null,!k&&q&&(h=lfa(a,b,e,d.index)),null!==h?((h.__ngLastListenerFn__||h).__ngNextListenerFn__=
f,h.__ngLastListenerFn__=f,D=!1):(f=mfa(d,b,f,!1),a=c.listen(N,e,f),y.push(f,a),u&&u.push(e,L,I,I+1))):(f=mfa(d,b,f,!0),N.addEventListener(e,f,h),y.push(f),u&&u.push(e,L,I,h))}else f=mfa(d,b,f,!1);a=d.outputs;var S;if(D&&null!==a&&(S=a[e])&&(D=S.length))for(a=0;a<D;a+=2)c=b[S[a]][S[a+1]].subscribe(f),q=y.length,y.push(f,c),u&&u.push(e,d.index,q,-(q+1))},nfa=function(a,b,c){try{return!1!==b(c)}catch(d){return Bea(a,d),!1}finally{}},mfa=function(a,b,c,d){return function h(f){if(f===Function)return c;
var k=a.flags&2?Ic(a.index,b):b;zea(k);k=nfa(b,c,f);for(var q=h.__ngNextListenerFn__;q;)k=nfa(b,q,f)&&k,q=q.__ngNextListenerFn__;d&&!1===k&&(f.preventDefault(),f.returnValue=!1);return k}},K=function(a){var b=Kc;a=void 0===a?1:a;for(var c=Kc.contextLView;0<a;)c=c[15],a--;return(b.contextLView=c)[8]},Ae=function(a){var b=x()[16][6];if(!b.projection){var c=b.projection=Wca(a?a.length:1,null),d=c.slice();for(b=b.child;null!==b;){if(a)a:{var e=b;var f=a,h=null;b:{var k=e.attrs;if(null!=k){var q=k.indexOf(5);
if(0===(q&1)){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var u=f[q];if("*"===u)h=q;else{if(null===k)u=Lda(e,u,!0);else b:{var y=0;c:for(;y<u.length;y++){var D=u[y];if(k.length===D.length){for(var I=0;I<k.length;I++)if(k[I]!==D[I])continue c;u=!0;break b}}u=!1}if(u){e=q;break a}}}e=h}else e=0;null!==e&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b);b=b.next}}},Be=function(a,b,c){b=void 0===b?0:b;var d=x(),e=Kc.tView;a=Sd(e,22+a,16,null,c||null);null===a.projection&&(a.projection=b);Kc.isParent=!1;
64!==(a.flags&64)&&(b=d[11],e=Fda(e,a.parent,d),c=a.parent||d[6],c=c.type&40?Hc(c,d):null,Hda(b,0,d,a,e,c))},De=function(a,b,c){Ce(a,"",b,"",c);return De},Ce=function(a,b,c,d,e){var f=x();b=le(f,b,c,d);b!==Wd&&(c=Kc.tView,d=Pc(),Xd(c,d,f,a,b,f[11],e,!1));return Ce},Ee=function(a,b,c,d,e,f,h){var k=x();b=Wea(k,b,c,d,e,f);b!==Wd&&(c=Kc.tView,d=Pc(),Xd(c,d,k,a,b,k[11],h,!1));return Ee},Fe=function(a){return Kc.contextLView[22+a]},M=function(a,b,c,d,e,f,h,k){var q=x(),u=Kc.tView;a+=22;if(u.firstCreatePass){var y=
u.consts;e=Sd(u,a,4,e||null,Jc(y,f));xea(u,q,e,Jc(y,h));Sc(u,e);b=e.tViews=qea(2,e,b,c,d,u.directiveRegistry,u.pipeRegistry,null,u.schemas,y);null!==u.queries&&(u.queries.template(u,e),b.queries=u.queries.embeddedTView(e));b=e}else b=u.data[a];Mc(b,!1);c=q[11].createComment("");Fd(u,q,c,b);ud(c,q);Vd(q,q[a]=[c,!0,!1,q,null,0,b,c,null,null]);1===(b.flags&1)&&oea(u,q,b);null!=h&&pea(q,b,k)},O=function(a,b){b=void 0===b?"":b;var c=x(),d=Kc.tView,e=a+22;a=d.firstCreatePass?Sd(d,e,1,b,null):d.data[e];
var f=c[11];b=c[e]=f.listen?f.createText(b):f.createTextNode(b);Fd(d,c,b,a);Mc(a,!1)},He=function(a){Ge("",a,"");return He},Ge=function(a,b,c){var d=x();a=le(d,a,b,c);a!==Wd&&Cea(d,a);return Ge},Ie=function(a,b,c,d,e){var f=x();a=Wea(f,a,b,c,d,e);a!==Wd&&Cea(f,a);return Ie},ofa=function(a,b,c,d,e,f,h){var k=x(),q=Vea(k,Kc.bindingIndex,b,d,f);Oc(3);a=q?a+lc(b)+c+lc(d)+e+lc(f)+h:Wd;a!==Wd&&Cea(k,a);return ofa},pfa=function(a,b,c,d,e){a=gc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)pfa(a[f],b,
c,d,e);else{f=Kc.tView;var h=x(),k=nd(a)?a:gc(a.provide),q=kda(a),u=Lc(),y=u.providerIndexes&1048575,D=u.directiveStart,I=u.providerIndexes>>20;if(nd(a)||!a.multi)d=new fd(q,e),q=qfa(k,b,e?y:y+I,D),-1===q?(q=ad(u,h),$c(q,f,k),rfa(f,a,b.length),b.push(k),u.directiveStart++,u.directiveEnd++,e&&(u.providerIndexes+=1048576),c.push(d),h.push(d)):(c[q]=d,h[q]=d);else{D=qfa(k,b,y+I,D);y=qfa(k,b,y,y+I);var N=0<=D&&c[D];I=0<=y&&c[y];e&&!I||!e&&!N?(D=ad(u,h),$c(D,f,k),D=c.length,N=new fd(e?sfa:tfa,e),N.multi=
[],N.index=D,N.componentProviders=0,d&&!e&&N.componentProviders++,N.multi.push(q),!e&&I&&(c[y].providerFactory=N),rfa(f,a,b.length,0),b.push(k),u.directiveStart++,u.directiveEnd++,e&&(u.providerIndexes+=1048576),c.push(N),h.push(N)):(b=c[e?y:D],!e&&d&&b.componentProviders++,b=b.multi.push(q)-1,rfa(f,a,-1<D?D:y,b));!e&&d&&I&&c[y].componentProviders++}}},rfa=function(a,b,c,d){var e=nd(b),f=!!b.useClass;if(e||f)if(f=(f?gc(b.useClass):b).prototype.ngOnDestroy)a=a.destroyHooks||(a.destroyHooks=[]),!e&&
b.multi?(b=a.indexOf(c),-1===b?a.push(c,[d,f]):a[b+1].push(d,f)):a.push(c,f)},qfa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},tfa=function(){return ufa(this.multi,[])},sfa=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;d=ed(c,c[1],this.providerFactory.index,d);c=d.slice(0,e);ufa(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],ufa(b,c);return c},ufa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Je=function(a){var b=
void 0===b?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Kc.tView;f.firstCreatePass&&(d=null!==d.template,pfa(b,f.data,f.blueprint,d,!0),pfa(e,f.data,f.blueprint,d,!1))}}},Ke=function(a,b){a=Nc()+a;var c=x();return c[a]===Wd?he(c,a,b()):c[a]},Le=function(a,b,c){return vfa(x(),Nc(),a,b,c)},Me=function(a,b,c,d){return wfa(x(),Nc(),a,b,c,d)},Ne=function(a,b,c,d){return xfa(x(),Nc(),2,a,b,c,d)},zfa=function(a,b,c,d,e,f){var h=yfa,k=Nc()+8,q=x();var u=je(q,k,a,b);u=je(q,k+
2,c,d)||u;return je(q,k+4,e,f)||u?he(q,k+6,h(a,b,c,d,e,f)):q[k+6]},Oe=function(a,b){a=a[b];return a===Wd?void 0:a},vfa=function(a,b,c,d,e,f){b+=c;return ie(a,b,e)?he(a,b+1,f?d.call(f,e):d(e)):Oe(a,b+1)},wfa=function(a,b,c,d,e,f,h){b+=c;return je(a,b,e,f)?he(a,b+2,h?d.call(h,e,f):d(e,f)):Oe(a,b+2)},xfa=function(a,b,c,d,e,f,h,k){b+=c;return Vea(a,b,e,f,h)?he(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):Oe(a,b+3)},P=function(a,b){var c=Kc.tView;a+=22;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=
d.length-1;0<=e;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;b.onDestroy&&(c.destroyHooks||(c.destroyHooks=[])).push(a,b.onDestroy)}else b=c.data[a];b=b.factory||(b.factory=Ec(b.type));d=oc(C);try{var h=Yc(!1),k=b();Yc(h);var q=x();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);q[a]=k}finally{oc(d)}},Q=function(a,b,c){a+=22;var d=x(),e=d[a];return d[1].data[a].pure?vfa(d,Nc(),b,e.transform,c,e):e.transform(c)},Pe=function(a,b,c,d){a+=22;var e=x(),f=e[a];return e[1].data[a].pure?
wfa(e,Nc(),b,f.transform,c,d,f):f.transform(c,d)},Qe=function(a){setTimeout(function(){throw a;},0)},Re=function(a){return"function"===typeof a},Se=function(a){return null!==a&&"object"===typeof a},Afa=function(a){return a instanceof Te||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},Bfa=function(a){return a.reduce(function(b,c){return b.concat(c instanceof Ue?c.errors:c)},[])},Cfa=function(a){for(;a;){var b=a,c=b.destination,d=b.isStopped;
if(b.closed||d)return!1;c&&c instanceof Ve?a=c:a=null}return!0},We=function(a){return a},Dfa=function(a){return 0===a.length?We:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},Efa=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===typeof a.complete},Ffa=function(a){a||(a=Xe.Promise||Promise);if(!a)throw Error("ua");return a},Gfa=function(a){return new Ye(function(b){return a.schedule(function(){return b.complete()})})},Hfa=function(a,
b){return new Ye(function(c){var d=new Te,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},Ze=function(a,b){return b?Hfa(a,b):new Ye(Ifa(a))},$e=function(a){return a&&"function"===typeof a.schedule},Jfa=function(){var a=tc.apply(0,arguments),b=a[a.length-1];return $e(b)?(a.pop(),Hfa(a,b)):Ze(a)},Kfa=function(a){a.subscriber.error(a.error)},af=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("va");
},bf=function(){return function(a){return af(a,new Lfa)}},R=function(a){return function(b){if("function"!==typeof a)throw new TypeError("wa");return af(b,new Mfa(a))}},Nfa=function(a,b,c){if(b)if($e(b))c=b;else return function(){return Nfa(a,c).apply(null,v(tc.apply(0,arguments))).pipe(R(function(d){return cf(d)?b.apply(null,v(d)):b(d)}))};return function(){var d=tc.apply(0,arguments),e=this,f,h={context:e,subject:void 0,callbackFunc:a,scheduler:c};return new Ye(function(k){if(c)return c.schedule(Ofa,
0,{args:d,subscriber:k,params:h});if(!f){f=new df;var q=function(){var u=tc.apply(0,arguments);f.next(1>=u.length?u[0]:u);f.complete()};try{a.apply(e,[].concat(v(d),[q]))}catch(u){Cfa(f)?f.error(u):console.warn(u)}}return f.subscribe(k)})}},Ofa=function(a){var b=this,c=a.args,d=a.subscriber,e=a.params;a=e.callbackFunc;var f=e.context,h=e.scheduler,k=e.subject;if(!k){k=e.subject=new df;e=function(){var q=tc.apply(0,arguments);b.add(h.schedule(Pfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{a.apply(f,
[].concat(v(c),[e]))}catch(q){k.error(q)}}this.add(k.subscribe(d))},Pfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Qfa=function(a,b,c){if(b)if($e(b))c=b;else return function(){return Qfa(a,c).apply(null,v(tc.apply(0,arguments))).pipe(R(function(d){return cf(d)?b.apply(null,v(d)):b(d)}))};return function(){var d=tc.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,context:this};return new Ye(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(Rfa,0,{params:e,
subscriber:f,context:h});if(!k){k=e.subject=new df;var q=function(){var u=tc.apply(0,arguments),y=u.shift();y?k.error(y):(k.next(1>=u.length?u[0]:u),k.complete())};try{a.apply(h,[].concat(v(d),[q]))}catch(u){Cfa(k)?k.error(u):console.warn(u)}}return k.subscribe(f)})}},Rfa=function(a){var b=this,c=a.params,d=a.subscriber;a=a.context;var e=c.callbackFunc,f=c.args,h=c.scheduler,k=c.subject;if(!k){k=c.subject=new df;c=function(){var q=tc.apply(0,arguments),u=q.shift();u?b.add(h.schedule(Sfa,0,{err:u,
subject:k})):b.add(h.schedule(Tfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{e.apply(a,[].concat(v(f),[c]))}catch(q){this.add(h.schedule(Sfa,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},Tfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Sfa=function(a){a.subject.error(a.err)},Ufa=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},Wfa=function(a){return function(b){Vfa(a,b).catch(function(c){return b.error(c)})}},Vfa=function(a,b){var c,d,e;return ef(function(f){switch(f.nextAddress){case 1:var h=
a[Symbol.asyncIterator];c=void 0!==h?h.call(a):new Xfa(r(a));case 2:return ff(f,c.next(),5);case 5:d=f.yieldResult;if(d.done){f.jumpTo(4);break}e=d.value;b.next(e);f.jumpTo(2);break;case 4:b.complete(),gf(f)}})},jf=function(a,b){if(!b.closed)return a instanceof Ye?a.subscribe(b):hf(a)(b)},Yfa=function(a,b){if(!a)throw Error("za");return new Ye(function(c){var d=new Te;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(h){h.done?
c.complete():(c.next(h.value),f.schedule())})}))}));return d})},Zfa=function(a,b){if(!a)throw Error("za");return new Ye(function(c){var d=new Te,e;d.add(function(){e&&"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[kf]();d.add(b.schedule(function(){if(!c.closed){try{var f=e.next();var h=f.value;var k=f.done}catch(q){c.error(q);return}k?c.complete():(c.next(h),this.schedule())}}))}));return d})},$fa=function(a,b){return new Ye(function(c){var d=new Te;d.add(b.schedule(function(){var e=
a[lf]();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})},aga=function(a,b){return new Ye(function(c){var d=new Te;d.add(b.schedule(function(){return a.then(function(e){d.add(b.schedule(function(){c.next(e);d.add(b.schedule(function(){return c.complete()}))}))},function(e){d.add(b.schedule(function(){return c.error(e)}))})}));
return d})},cga=function(a,b){if(null!=a){if(a&&"function"===typeof a[lf])return $fa(a,b);if(Ufa(a))return aga(a,b);if(bga(a))return Hfa(a,b);if(a&&"function"===typeof a[kf]||"string"===typeof a)return Zfa(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return Yfa(a,b)}throw new TypeError("Aa`"+(null!==a&&typeof a||a));},mf=function(a,b){return b?cga(a,b):a instanceof Ye?a:new Ye(hf(a))},nf=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(nf(function(e,
f){return mf(a(e,f)).pipe(R(function(h,k){return b(e,h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return af(d,new dga(a,c))}},of=function(a){a=void 0===a?Infinity:a;return nf(We,a)},pf=function(){return of(1)(Jfa.apply(null,v(tc.apply(0,arguments))))},ega=function(a){return new Ye(function(b){try{var c=a()}catch(d){b.error(d);return}return mf(c).subscribe(b)})},hga=function(a){return new Ye(function(b){var c=a||fga,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-
d});b.closed||(f=gga(e))};var f=gga(e);return function(){return f.unsubscribe()}})},qf=function(a,b){return new Ye(function(c){var d=a.length;if(0===d)c.complete();else for(var e=Array(d),f=0,h=0,k={$jscomp$loop$prop$i$1641:0};k.$jscomp$loop$prop$i$1641<d;k={$jscomp$loop$prop$hasValue$1642:k.$jscomp$loop$prop$hasValue$1642,$jscomp$loop$prop$i$1641:k.$jscomp$loop$prop$i$1641},k.$jscomp$loop$prop$i$1641++){var q=mf(a[k.$jscomp$loop$prop$i$1641]);k.$jscomp$loop$prop$hasValue$1642=!1;c.add(q.subscribe({next:function(u){return function(y){u.$jscomp$loop$prop$hasValue$1642||
(u.$jscomp$loop$prop$hasValue$1642=!0,h++);e[u.$jscomp$loop$prop$i$1641]=y}}(k),error:function(u){return c.error(u)},complete:function(u){return function(){f++;f!==d&&u.$jscomp$loop$prop$hasValue$1642||(h===d&&c.next(b?b.reduce(function(y,D,I){return y[D]=e[I],y},{}):e),c.complete())}}(k)}))}})},iga=function(a,b,c,d){Re(c)&&(d=c,c=void 0);return d?iga(a,b,c).pipe(R(function(e){return cf(e)?d.apply(null,v(e)):d(e)})):new Ye(function(e){jga(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):
e.next(f)},e,c)})},jga=function(a,b,c,d,e){if(a&&"function"===typeof a.addEventListener&&"function"===typeof a.removeEventListener){a.addEventListener(b,c,e);var f=function(){return a.removeEventListener(b,c,e)}}else if(a&&"function"===typeof a.on&&"function"===typeof a.off)a.on(b,c),f=function(){return a.off(b,c)};else if(a&&"function"===typeof a.addListener&&"function"===typeof a.removeListener)a.addListener(b,c),f=function(){return a.removeListener(b,c)};else if(a&&a.length)for(var h=0,k=a.length;h<
k;h++)jga(a[h],b,c,d,e);else throw new TypeError("Ba");d.add(f)},kga=function(a,b,c){return c?kga(a,b).pipe(R(function(d){return cf(d)?c.apply(null,v(d)):c(d)})):new Ye(function(d){var e=function(){var h=tc.apply(0,arguments);return d.next(1===h.length?h[0]:h)};try{var f=a(e)}catch(h){d.error(h);return}if(Re(b))return function(){return b(e,f)}})},lga=function(a){var b=a.subscriber,c=a.condition;if(!b.closed){if(a.needIterate)try{a.state=a.iterate(a.state)}catch(f){b.error(f);return}else a.needIterate=
!0;if(c){try{var d=c(a.state)}catch(f){b.error(f);return}if(!d){b.complete();return}if(b.closed)return}try{var e=a.resultSelector(a.state)}catch(f){b.error(f);return}if(!b.closed&&(b.next(e),!b.closed))return this.schedule(a)}},mga=function(a){return!cf(a)&&0<=a-parseFloat(a)+1},nga=function(a){var b=a.subscriber,c=a.counter;a=a.period;b.next(c);this.schedule({subscriber:b,counter:c+1,period:a},a)},rf=function(){},oga=function(){var a=tc.apply(0,arguments);if(0===a.length)return sf;var b=r(a),c=b.next().value,
d=tf(b);return 1===a.length&&cf(c)?oga.apply(null,v(c)):new Ye(function(e){var f=function(){return e.add(oga.apply(null,v(d)).subscribe(e))};return mf(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},pga=function(a){var b=a.keys,c=a.index,d=a.subscriber,e=a.subscription;a=a.obj;if(!d.closed)if(c<b.length){var f=b[c];d.next([f,a[f]]);e.add(this.schedule({keys:b,index:c+1,subscriber:d,subscription:e,obj:a}))}else d.complete()},uf=function(a,b){return function(c){return af(c,new qga(a,
b))}},rga=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}c.pred=a;c.thisArg=b;return c},sga=function(a){var b=a.start,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b),d.closed||(a.index=c+1,a.start=b+1,this.schedule(a)))},tga=function(a){return a instanceof Date&&!isNaN(a)},vga=function(a,b,c){a=void 0===a?0:a;var d=-1;null!=b&&($e(b)?c=b:d=b);$e(c)||(c=vf);return new Ye(function(e){var f=Math.max(0,tga(a)?+a-c.now():a);return c.schedule(uga,f,{counter:0,period:d,subscriber:e})})},
uga=function(a){var b=a.period,c=a.subscriber,d=a.counter++;c.next(d);if(!c.closed){if(0>b)return c.complete();this.schedule(a,b)}},wf=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:vf;if(tga(a))var k=a;else if("number"===typeof a)d=a;else{k=a.first;d=a.each;e=a.with;b=a.scheduler||vf;var q;f=null!=(q=a.meta)?q:null}var u;e=null!=(u=e)?u:wga;if(null==k&&null==d)throw new TypeError("Da");return af(c,new xga(k,d,e,b,f))}},wga=function(a){throw new yga(a);},Aga=function(a){return a in
zga?(delete zga[a],!0):!1},Bga=function(a){return function(b){setTimeout(a,void 0,b)}},Cga=function(){return this._results[ge()]()},Dga=function(){return xf(Lc(),x())},xf=function(a,b){return a.type&4?new yf(b,a,td(a,b)):null},Fga=function(){return Ega(Lc(),x())},Gga=function(a){return a[8]||(a[8]=[])},Ega=function(a,b){var c=b[a.index];if(!Cc(c)){if(a.type&8)var d=Gc(c);else{var e=b[11];d=e.createComment("");var f=Hc(a,b),h=zda(e,f);Bd(e,h,d,e.listen?e.nextSibling(f):f.nextSibling,!1)}b[a.index]=
c=[c,!0,!1,b,null,0,a,d,null,null];Vd(b,c)}return new zf(c,a,b)},Hga=function(a,b,c,d){d=b[19].queries[d];if(null===d.matches){a=a.data;for(var e=c.matches,f=[],h=0;h<e.length;h+=2){var k=e[h];if(0>k)f.push(null);else{var q=f,u=q.push,y=b,D=a[k],I=e[h+1];k=c.metadata.read;-1===I?(k=D,y=k.type&11?td(k,y):k.type&4?xf(k,y):null):-2===I?y=k===sd?td(D,y):k===Af?xf(D,y):k===Bf?Ega(D,y):void 0:y=ed(y,y[1],I,D);u.call(q,y)}}d.matches=f}return d.matches},Iga=function(a,b,c,d){var e=a.queries.queries[c],f=
e.matches;if(null!==f)for(a=Hga(a,b,e,c),c=0;c<f.length;c+=2){var h=f[c];if(0<h)d.push(a[c/2]);else{e=f[c+1];h=b[-h];for(var k=10;k<h.length;k++){var q=h[k];q[17]===q[3]&&Iga(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],Iga(q[1],q,e,d)}}return d},Df=function(a){var b=x(),c=Kc.tView,d=Kc.currentQueryIndex;Kc.currentQueryIndex=d+1;var e=c.queries.queries[d];return a.dirty&&4===(b[2]&4)===(2===(e.metadata.flags&2))?(null===e.matches?a.reset([]):(b=e.crossesNgTemplate?Iga(c,b,d,[]):
Hga(c,b,e,d),a.reset(b,rda),Cf(a)),!0):!1},Ef=function(a,b,c){var d=Kc.tView;d.firstCreatePass&&(Jga(d,new Kga(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));Lga(d,b)},Ff=function(a,b,c,d){var e=Kc.tView;e.firstCreatePass&&(Jga(e,new Kga(b,c,d),Lc().index),b=e.contentQueries||(e.contentQueries=[]),a!==(b.length?b[b.length-1]:-1)&&b.push(e.queries.length-1,a),2===(c&2)&&(e.staticContentQueries=!0));Lga(e,c)},Gf=function(){return x()[19].queries[Kc.currentQueryIndex].queryList},Lga=function(a,b){var c=
x();b=new Hf(4===(b&4));rea(a,c,b,b.destroy);null===c[19]&&(c[19]=new If);c[19].queries.push(new Jf(b))},Jga=function(a,b,c){null===a.queries&&(a.queries=new Kf);a.queries.track(new Lf(b,c))},Mf=function(a,b){return xf(a,b)},Nga=function(a){"undefined"===typeof Zone?Mga.then(function(){a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)},Nf=function(a){if(0==a._nesting&&!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}}},Pga=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(yd,function(){a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;Oga(a);a.isCheckStableRunning=!0;Nf(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));
a.fakeTopEventTask.invoke()}),Oga(a))},Rga=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,h){try{return Qga(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&Pga(a),a._nesting--,Nf(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return Qga(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&Pga(a),a._nesting--,Nf(a)}},onHasTask:function(b,c,d,
e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,Oga(a),Nf(a)):"macroTask"==e.change&&(a.hasPendingMacrotasks=e.macroTask))},onHandleError:function(b,c,d,e){b.handleError(d,e);a.runOutsideAngular(function(){return a.onError.emit(e)});return!1}})},Oga=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},Qga=function(a){a._nesting++;a.isStable&&
(a.isStable=!1,a.onUnstable.emit(null))},Tga=function(a){return function(b){return af(b,new Sga(a))}},Of=function(a,b){b=void 0===b?vf:b;return Tga(function(){return vga(a,b)})},Vga=function(a){return function(b){return af(b,new Uga(a))}},Pf=function(a){return function(b){var c=new Wga(a);b=af(b,c);return c.caught=b}},Xga=function(){var a=tc.apply(0,arguments);return function(b){var c=pf.apply(null,[b].concat(v(a)));if(b&&"function"===typeof b.lift)b=b.lift.call(c);else throw new TypeError("va");
return b}},Zga=function(a){return function(b){return af(b,new Yga(a))}},Qf=function(a,b){b=void 0===b?vf:b;return function(c){return af(c,new $ga(a,b))}},bha=function(a){aha(a)},dha=function(a){a=void 0===a?null:a;return function(b){return af(b,new cha(a))}},Rf=function(a,b){b=void 0===b?vf:b;var c=tga(a)?+a-b.now():Math.abs(a);return function(d){return af(d,new eha(c,b))}},Sf=function(a){return function(b){return af(b,new fha(a))}},Tf=function(){if(isNaN(1))throw new TypeError("Ia");return function(a){return af(a,
new gha)}},jha=function(a){a=void 0===a?hha:a;return function(b){return af(b,new iha(a))}},hha=function(){return new Uf},Vf=function(a){return function(b){return af(b,new kha(a))}},Wf=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?uf(function(e,f){return a(e,f,d)}):We,Tf(),c?dha(b):jha(function(){return new Uf}))}},mha=function(){return function(a){return af(a,new lha)}},oha=function(){if(isNaN(1))throw new TypeError("Ia");return function(a){return af(a,new nha)}},pha=
function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?uf(function(e,f){return a(e,f,d)}):We,oha(),c?dha(b):jha(function(){return new Uf}))}},Xf=function(a){return function(b){return af(b,new qha(a))}},Yf=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return af(d,new rha(a,b,c))}},tha=function(a){return function(b){var c;"function"===typeof a?c=a:c=function(){return a};var d=Object.create(b,sha);d.source=b;d.subjectFactory=c;return d}},uha=function(){var a=
new Zf(1,void 0,void 0);return function(b){return tha(function(){return a})(b)}},vha=function(){return new $f},ag=function(){return function(a){return bf()(tha(vha)(a))}},bg=function(a){var b;a&&"object"===typeof a?b=a:b={bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0};return function(c){return af(c,wha(b))}},wha=function(a){var b=void 0===a.bufferSize?Infinity:a.bufferSize,c=void 0===a.windowTime?Infinity:a.windowTime,d=a.refCount,e=a.scheduler,f,h=0,k;return function(q){h++;if(f)var u=
f.subscribe(this);else f=new Zf(b,c,e),u=f.subscribe(this),k=q.subscribe({next:function(y){f.next(y)},error:function(y){var D=f;f=k=void 0;D.error(y)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);this.add(function(){h--;u.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},cg=function(a){return function(b){return af(b,new xha(a))}},dg=function(){var a=tc.apply(0,arguments),b=a[a.length-1];return $e(b)?(a.pop(),function(c){return pf(a,c,b)}):function(c){return pf(a,c)}},
eg=function(a){return function(b){return af(b,new yha(a))}},zha=function(a){return eg(function(){return a})},fg=function(a){return function(b){return af(b,new Aha(a))}},Cha=function(a){var b=void 0===b?!1:b;return function(c){return af(c,new Bha(a,b))}},gg=function(a,b){return function(c){return af(c,new Dha(a,b))}},Gha=function(a){var b=void 0===b?Eha:b;return function(c){return af(c,new Fha(a,!!b.leading,!!b.trailing))}},hg=function(){var a=tc.apply(0,arguments);return function(b){var c;"function"===
typeof a[a.length-1]&&(c=a.pop());return af(b,new Hha(a,c))}},Jha=function(a){(a=a.get(Iha,null))&&a.forEach(function(b){return b()})},Nha=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new od(d);return function(f){f=void 0===f?[]:f;var h=Kha();if(!h||h.injector.get(Lha,!1))if(f=[].concat(v(c),v(f),[{provide:e,useValue:!0}]),a)a(f);else{f=Mha(f,d);if(ig&&!ig.get(Lha,!1))throw new mc(400,"");ig=f;f.get(jg);Jha(f)}f=Kha();if(!f)throw new mc(401,"");return f}},Mha=function(a,b){a=void 0===
a?[]:a;return kg({name:b,providers:[{provide:Oha,useValue:"platform"},{provide:Pha,useValue:function(){return ig=null}}].concat(v(a))})},Kha=function(){var a,b;return null!=(b=null==(a=ig)?void 0:a.get(jg))?b:null},Qha=function(a,b){var c;"noop"===a?c=new lg:c=("zone.js"===a?void 0:a)||new mg(b);return c},Rha=function(a,b,c){try{var d=c();return ce(d)?d.catch(function(e){b.runOutsideAngular(function(){return a.handleError(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a.handleError(e)}),
e;}},Sha=function(a,b){Array.isArray(b)?a=b.reduce(Sha,a):a=Object.assign({},a,b);return a},ng=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},Tha=function(a){var b=Lc(),c=x();2===(b.flags&2)&&16!==(a&16)?(a=Ic(b.index,c),a=new og(a,a)):a=b.type&47?new og(c[16],c):null;return a},Uha=function(a,b,c){a=a.previousIndex;if(null===a)return a;var d=0;c&&a<c.length&&(d=c[a]);return a+b+d},pg=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},Vha=function(a,b){if(b&&!b.createEmbeddedView)throw Error("Ja`"+
a+"`"+cc(b));},Wha=function(a,b,c){a=de(a);b=qg([a[1],a[2]],b);return qg(b,c)},Xha=function(a,b,c){a=de(a);b=qg([a[3],a[4]],b);return qg(b,c)},Yha=function(a,b,c){a=de(a);b=qg([a[5],a[6]],b);return qg(b,c)},Zha=function(a,b){a=de(a)[7];return qg(a,b)},rg=function(a,b){a=de(a);return qg(a[10],b)},sg=function(a,b){a=de(a);return qg(a[11],b)},tg=function(a,b){a=de(a)[12];return qg(a,b)},ug=function(a,b){a=de(a);var c=a[13][b];if("undefined"===typeof c){if(12===b)return a[13][0];if(13===b)return a[13][1]}return c},
$ha=function(a){if(!a[21])throw Error("La`"+a[0]);},bia=function(a){a=de(a);$ha(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?aia(b):[aia(b[0]),aia(b[1])]})},cia=function(a,b,c){a=de(a);$ha(a);b=qg([a[21][0],a[21][1]],b)||[];return qg(b,c)||[]},qg=function(a,b){for(;-1<b;b--)if("undefined"!==typeof a[b])return a[b];throw Error("Ma");},aia=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},vg=function(){return new mc(2100,"")},jia=function(a,
b,c,d){var e=dia(a);b=wg(c,b)||b;a=[];for(var f;b;)if(f=eia.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var h=e.getTimezoneOffset();d&&(h=fia(d,h),e=gia(e,d));var k="";a.forEach(function(q){a:if(hia[q])var u=hia[q];else{switch(q){case "G":case "GG":case "GGG":u=xg(3,1);break;case "GGGG":u=xg(3,2);break;case "GGGGG":u=xg(3,0);break;case "y":u=yg(0,1,0,!1,!0);break;case "yy":u=yg(0,2,0,!0,!0);break;case "yyy":u=yg(0,3,0,!1,!0);break;case "yyyy":u=yg(0,4,0,!1,!0);break;
case "Y":u=zg(1);break;case "YY":u=zg(2,!0);break;case "YYY":u=zg(3);break;case "YYYY":u=zg(4);break;case "M":case "L":u=yg(1,1,1);break;case "MM":case "LL":u=yg(1,2,1);break;case "MMM":u=xg(2,1);break;case "MMMM":u=xg(2,2);break;case "MMMMM":u=xg(2,0);break;case "LLL":u=xg(2,1,1);break;case "LLLL":u=xg(2,2,1);break;case "LLLLL":u=xg(2,0,1);break;case "w":u=iia(1);break;case "ww":u=iia(2);break;case "W":u=iia(1,!0);break;case "d":u=yg(2,1);break;case "dd":u=yg(2,2);break;case "c":case "cc":u=yg(7,
1);break;case "ccc":u=xg(1,1,1);break;case "cccc":u=xg(1,2,1);break;case "ccccc":u=xg(1,0,1);break;case "cccccc":u=xg(1,3,1);break;case "E":case "EE":case "EEE":u=xg(1,1);break;case "EEEE":u=xg(1,2);break;case "EEEEE":u=xg(1,0);break;case "EEEEEE":u=xg(1,3);break;case "a":case "aa":case "aaa":u=xg(0,1);break;case "aaaa":u=xg(0,2);break;case "aaaaa":u=xg(0,0);break;case "b":case "bb":case "bbb":u=xg(0,1,1,!0);break;case "bbbb":u=xg(0,2,1,!0);break;case "bbbbb":u=xg(0,0,1,!0);break;case "B":case "BB":case "BBB":u=
xg(0,1,0,!0);break;case "BBBB":u=xg(0,2,0,!0);break;case "BBBBB":u=xg(0,0,0,!0);break;case "h":u=yg(3,1,-12);break;case "hh":u=yg(3,2,-12);break;case "H":u=yg(3,1);break;case "HH":u=yg(3,2);break;case "m":u=yg(4,1);break;case "mm":u=yg(4,2);break;case "s":u=yg(5,1);break;case "ss":u=yg(5,2);break;case "S":u=yg(6,1);break;case "SS":u=yg(6,2);break;case "SSS":u=yg(6,3);break;case "Z":case "ZZ":case "ZZZ":u=Ag(0);break;case "ZZZZZ":u=Ag(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":u=
Ag(1);break;case "OOOO":case "ZZZZ":case "zzzz":u=Ag(2);break;default:u=null;break a}hia[q]=u}k+=u?u(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},Bg=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},wg=function(a,b){var c=de(a)[0];Cg[c]=Cg[c]||{};if(Cg[c][b])return Cg[c][b];var d="";switch(b){case "shortDate":d=rg(a,0);break;case "mediumDate":d=rg(a,1);break;case "longDate":d=rg(a,2);break;case "fullDate":d=rg(a,3);break;case "shortTime":d=
sg(a,0);break;case "mediumTime":d=sg(a,1);break;case "longTime":d=sg(a,2);break;case "fullTime":d=sg(a,3);break;case "short":d=wg(a,"shortTime");var e=wg(a,"shortDate");d=Dg(tg(a,0),[d,e]);break;case "medium":d=wg(a,"mediumTime");e=wg(a,"mediumDate");d=Dg(tg(a,1),[d,e]);break;case "long":d=wg(a,"longTime");e=wg(a,"longDate");d=Dg(tg(a,2),[d,e]);break;case "full":d=wg(a,"fullTime"),e=wg(a,"fullDate"),d=Dg(tg(a,3),[d,e])}d&&(Cg[c][b]=d);return d},Dg=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,
d){return null!=b&&d in b?b[d]:c}));return a},Eg=function(a,b,c,d,e){var f="";if(0>a||e&&0>=a)e?a=-a+1:(a=-a,f=void 0===c?"-":c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+a},yg=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return function(f,h){f=kia(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return Eg(f,3).substring(0,b);h=ug(h,5);return Eg(f,b,h,d,e)}},kia=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 Error("Na`"+a);}},xg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,f){return lia(e,f,a,b,c,d)}},lia=function(a,b,c,d,e,f){switch(c){case 2:return Yha(b,e,d)[a.getMonth()];case 1:return Xha(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=bia(b),a=cia(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var u=
r(q);q=u.next().value;u=u.next().value;var y=h>=q.hours&&k>=q.minutes,D=h<u.hours||h===u.hours&&k<u.minutes;if(q.hours<u.hours){if(y&&D)return!0}else if(y||D)return!0}else if(q.hours===h&&q.minutes===k)return!0;return!1}),-1!==c)?a[c]:Wha(b,e,d)[12>h?0:1];case 3:return Zha(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Oa`"+c);}},Ag=function(a){return function(b,c,d){b=-1*d;c=ug(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+Eg(e,2,c)+Eg(Math.abs(b%60),2,c);
case 1:return"GMT"+(0<=b?"+":"")+Eg(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+Eg(e,2,c)+":"+Eg(Math.abs(b%60),2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+Eg(e,2,c)+":"+Eg(Math.abs(b%60),2,c);default:throw Error("Pa`"+a);}}},mia=function(a){return Bg(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))},iia=function(a,b){b=void 0===b?!1:b;return function(c,d){if(b){var e=(new Date(c.getFullYear(),c.getMonth(),1)).getDay()-1;c=c.getDate();e=1+Math.floor((c+e)/7)}else{e=mia(c);c=e.getFullYear();var f=
Bg(c,0,1).getDay();c=Bg(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return Eg(e,a,ug(d,5))}},zg=function(a,b){b=void 0===b?!1:b;return function(c,d){c=mia(c).getFullYear();return Eg(c,a,ug(d,5),b)}},fia=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},gia=function(a,b){var c=a.getTimezoneOffset();b=fia(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},dia=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;
if("number"===typeof a&&!isNaN(a))return new Date(a);if("string"===typeof a){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=r(a.split("-").map(function(d){return+d}));a=b.next().value;var c=b.next().value;c=void 0===c?1:c;b=b.next().value;return Bg(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(nia))return oia(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Qa`"+a);return b},oia=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(1E3*parseFloat("0."+(a[7]||0))));return b},pia=function(a,b){a=a.key;b=b.key;if(a===b)return 0;if(void 0===a)return 1;if(void 0===b)return-1;if(null===a)return 1;if(null===b)return-1;if("string"==typeof a&&"string"==typeof b)return a<b?-1:1;if("number"==typeof a&&
"number"==typeof b)return a-b;if("boolean"==typeof a&&"boolean"==typeof b)return a<b?-1:1;a=String(a);b=String(b);return a==b?0:a<b?-1:1},via=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=qia(a);e&&(h=ria(h));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(sia);if(null===q)throw Error("Ra`"+d);d=q[1];var u=q[3];q=q[5];null!=d&&(f=tia(d));null!=u&&(e=tia(u));null!=q?k=tia(q):null!=u&&e>k&&(k=e)}uia(h,e,k);d=h.digits;q=h.integerLen;e=h.exponent;k=[];for(h=d.every(function(y){return!y});q<
f;q++)d.unshift(0);for(;0>q;q++)d.unshift(0);0<q?k=d.splice(q,d.length):(k=d,d=[0]);f=[];for(d.length>=b.lgSize&&f.unshift(d.splice(-b.lgSize,d.length).join(""));d.length>b.gSize;)f.unshift(d.splice(-b.gSize,d.length).join(""));d.length&&f.unshift(d.join(""));f=f.join(ug(c,1));k.length&&(f+=ug(c,0)+k.join(""));e&&(f+=ug(c,6)+"+"+e)}else f=ug(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},ria=function(a){if(0===a.digits[0])return a;var b=a.digits.length-a.integerLen;a.exponent?a.exponent+=
2:(0===b?a.digits.push(0,0):1===b&&a.digits.push(0),a.integerLen+=2);return a},qia=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;-1<(c=a.indexOf("."))&&(a=a.replace(".",""));0<(d=a.search(/e/i))?(0>c&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):0>c&&(c=a.length);for(d=0;"0"===a.charAt(d);d++);if(d===(f=a.length)){var h=[0];c=1}else{for(f--;"0"===a.charAt(f);)f--;c-=d;h=[];for(e=0;d<=f;d++,e++)h[e]=Number(a.charAt(d))}22<c&&(h=h.splice(0,21),b=c-1,c=1);return{digits:h,exponent:b,integerLen:c}},uia=function(a,
b,c){if(b>c)throw Error("Sa`"+b+"`"+c);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,h=d[f];if(0<f){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(5<=h)if(0>f-1){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=0!==c,u=b+a.integerLen;if(b=d.reduceRight(function(y,
D,I,N){D+=y;N[I]=10>D?D:D-10;q&&(0===N[I]&&I>=u?N.pop():q=!1);return 10<=D?1:0},0))d.unshift(b),a.integerLen++},tia=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Ta`"+a);return b},wia=function(a,b){if(0==a.length)return b;if(0==b.length)return a;var c=0;a.endsWith("/")&&c++;b.startsWith("/")&&c++;return 2==c?a+b.substring(1):1==c?a+b:a+"/"+b},xia=function(a){var b=a.match(/#|\?|$/);b=b&&b.index||a.length;return a.slice(0,b-("/"===a[b-1]?1:0))+a.slice(b)},Fg=function(a){return a&&"?"!==a[0]?
"?"+a:a},Gg=function(a){return null==a||("string"===typeof a||Array.isArray(a))&&0===a.length},yia=function(a){return function(b){if(Gg(b.value)||Gg(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},zia=function(a){return Gg(a.value)?{required:!0}:null},Aia=function(a){return function(b){var c=b.value;return null!=c&&"number"===typeof c.length&&b.value.length>a?{maxlength:{requiredLength:a,actualLength:b.value.length}}:null}},Cia=function(a){if(!a)return Bia;
if("string"===typeof a){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(Gg(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},Bia=function(){return null},Dia=function(a){return null!=a},Eia=function(a){return ce(a)?(0,T.from)(a):a},Fia=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},
Gia=function(a,b){return b.map(function(c){return c(a)})},Hia=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Iia=function(a){if(!a)return null;var b=a.filter(Dia);return 0==b.length?null:function(c){return Fia(Gia(c,b))}},Jia=function(a){return null!=a?Iia(Hia(a)):null},Kia=function(a){if(!a)return null;var b=a.filter(Dia);return 0==b.length?null:function(c){c=Gia(c,b).map(Eia);return(0,T.forkJoin)(c).pipe(R(Fia))}},Lia=function(a){return null!=a?Kia(Hia(a)):
null},Mia=function(a,b){return null===a?[b]:Array.isArray(a)?[].concat(v(a),[b]):[a,b]},Nia=function(a,b){return[].concat(v(b.path),[a])},Hg=function(a,b){Oia(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled){var c,d;null==(d=(c=b.valueAccessor).setDisabledState)||d.call(c,!0)}Pia(a,b);Qia(a,b);Ria(a,b);Sia(a,b)},Jg=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Ig(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},
Kg=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Sia=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)})}},Oia=function(a,b){var c=a._rawValidators;null!==b.validator?Tia(a,Mia(c,b.validator)):"function"===typeof c&&Tia(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?Uia(a,Mia(c,b.asyncValidator)):
"function"===typeof c&&Uia(a,[c]);c=function(){return Lg(a)};Kg(b._rawValidators,c);Kg(b._rawAsyncValidators,c)},Ig=function(a,b){var c=!1;if(null!==a){if(null!==b.validator){var d=a._rawValidators;if(Array.isArray(d)&&0<d.length){var e=d.filter(function(f){return f!==b.validator});e.length!==d.length&&(c=!0,Tia(a,e))}}null!==b.asyncValidator&&(d=a._rawAsyncValidators,Array.isArray(d)&&0<d.length&&(e=d.filter(function(f){return f!==b.asyncValidator}),e.length!==d.length&&(c=!0,Uia(a,e))))}a=function(){};
Kg(b._rawValidators,a);Kg(b._rawAsyncValidators,a);return c},Pia=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&Via(a,b)})},Ria=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&Via(a,b);"submit"!==a.updateOn&&Wia(a)})},Via=function(a,b){a._pendingDirty&&Xia(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);
a._pendingChange=!1},Qia=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)})},Yia=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},Zia=function(a,b){a._syncPendingControls();b.forEach(function(c){var d=c.control;"submit"===d.updateOn&&d._pendingChange&&(c.viewToModelUpdate(d._pendingValue),d._pendingChange=!1)})},
$ia=function(a){if(!a)return null;Array.isArray(a);var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Mg?b=e:Object.getPrototypeOf(e.constructor)===Ng?c=e:d=e});return d?d:c?c:b?b:null},aja=function(a){return(Og(a)?a.validators:a)||null},bja=function(a){return Array.isArray(a)?Jia(a):a||null},cja=function(a){return Array.isArray(a)?Lia(a):a||null},Og=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},dja=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new mc(1002,
"");})},eja=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a},gja=function(){if(Pg)return Pg;if("object"!==typeof document||!document)return Pg=new Set(fja);var a=document.createElement("input");return Pg=new Set(fja.filter(function(b){a.setAttribute("type",b);return a.type===b}))},hja=function(){if(null==Qg&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Qg=!0}}))}finally{Qg=
Qg||!1}return Qg},Rg=function(a){return hja()?a:!!a.capture},ija=function(){if(null==Sg){if("object"!==typeof document||!document||"function"!==typeof Element||!Element)return Sg=!1;if("scrollBehavior"in document.documentElement.style)Sg=!0;else{var a=Element.prototype.scrollTo;Sg=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return Sg},jja=function(){if("object"!==typeof document||!document)return 0;if(null==Tg){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);Tg=0;0===a.scrollLeft&&(a.scrollLeft=1,Tg=0===a.scrollLeft?1:2);a.remove()}return Tg},Ug=function(a){if(null==kja){var b="undefined"!==typeof document?document.head:null;kja=!(!b||!b.createShadowRoot&&!b.attachShadow)}return kja&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&
a instanceof ShadowRoot)?a:null},Vg=function(){for(var a="undefined"!==typeof document&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;else a=b}return a},Wg=function(a){return a.composedPath?a.composedPath()[0]:a.target},lja=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},mja=function(a){if(!a.hasAttribute("tabindex")||
void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},nja=function(a){if(!mja(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},Xg=function(a){return Array.isArray(a)?a:[a]},Yg=function(a){return null!=a&&"false"!==""+a},Zg=function(a){return null==a?"":"string"===typeof a?a:a+"px"},$g=function(a){return a instanceof sd?a.nativeElement:a},ah=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},
oja=function(a){var b=void 0===b?/\s+/:b;var c=[];if(null!=a)for(a=Array.isArray(a)?a:(""+a).split(b),a=r(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);return c},bh=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ch=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},pja=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},qja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},rja=function(a){var b=
[],c=0,d;for(d in a)b[c++]=a[d];return b},sja=function(a,b){return null!==a&&b in a},tja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},uja=function(a,b){return(b=tja(a,b))&&a[b]},dh=function(a){for(var b in a)return!1;return!0},vja=function(a){for(var b in a)delete a[b]},fh=function(a,b){b in a&&delete a[b]},wja=function(a,b,c){if(null!==a&&b in a)throw Error("Xa`"+b);a[b]=c},xja=function(a,b){return null!==a&&b in a?a[b]:void 0},gh=function(a){var b={},c;for(c in a)b[c]=a[c];
return b},zja=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<yja.length;f++)c=yja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Aja=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return Aja.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Hja=function(a){if(a instanceof hh)return'url("'+ih(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof jh)a=kh(a);else{a=
String(a);var b=a.replace(Bja,"$1").replace(Bja,"$1").replace(Cja,"url");if(Dja.test(b)){if(b=!Eja.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Fja(a)}a=b?Gja(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new ca("Value does not allow [{;}], got: %s.",[a]);return a},Fja=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&
!c.test(e))return!1}return b},Gja=function(a){return a.replace(Cja,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});b=(Ija(d)||lh).getTypedStringValue();return c+f+b+f+e})},Lja=function(a){var b,c=null==(b=Jja())?void 0:b.createScriptURL(a);return new mh(null!=c?c:a,Kja)},Mja=function(a){if(a instanceof mh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Za");},Nja=function(a){a=Mja(a);var b="undefined"!==typeof window?window.trustedTypes:void 0;
b=null!=b?b:null;return(null==b?0:b.isScriptURL(a))?TrustedScriptURL.prototype.toString.apply(a):a},oh=function(a){var b=void 0===b?{}:b;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");b.preserveSpaces&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));b.preserveNewlines&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));b.preserveTabs&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));return nh(a,null)},ph=function(a,b){throw Error(void 0===
b?"unexpected value "+a+"!":b);},rh=function(a){if(a instanceof qh)return a.privateDoNotAccessOrElseWrappedUrl;throw Error("Za");},uh=function(a){return a instanceof sh?th(a):th(a)},wh=function(a){return a instanceof vh?rh(a):ih(a)},Oja=function(a){return a instanceof xh?Mja(a).toString():yh(a)},Pja=function(a,b){a.src=Oja(b)},zh=function(a,b){b=b instanceof xh?Mja(b):Qja(b);a.src=b;var c,d;(c=(b=null==(d=(c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:d.call(c,
"script[nonce]"))?b.nonce||b.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",c)},Ah=function(a){return new Rja(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},Bh=function(a){var b=void 0===b?Sja:b;a:{b=void 0===b?Sja:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Rja&&d.isValid(a)){a=new qh(a,Kja);break a}}a=void 0}return a||Tja},Ch=function(a){var b=tc.apply(1,arguments);if(0===b.length)return Lja(a[0]);for(var c=[a[0]],d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),
c.push(a[d+1]);return Lja(c.join(""))},Uja=function(a){Dh.remove(a)},Eh=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];Array.isArray(e)?Eh(a,e,c):(e=e.replace(Vja,a),c.push(e))}return c},Wja=function(a){return function(b){if("__ngUnwrap__"===b)return a;!1===a(b)&&(b.preventDefault(),b.returnValue=!1)}},Zja=function(a){var b=a.key;if(null==b){b=a.keyIdentifier;if(null==b)return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),3===a.location&&Xja.hasOwnProperty(b)&&
(b=Xja[b]))}return Yja[b]||b},bka=function(a,b){var c=[];"string"==typeof a?a.split(/\s*,\s*/).forEach(function(d){a:{if(":"==d[0]&&(d=$ja(d,b),"function"==typeof d)){c.push(d);d=void 0;break a}var e=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==e||4>e.length)b.push(new mc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(aka(d,e));"<"!=f[0]||"*"==d&&"*"==e||c.push(aka(e,d));d=void 0}}return d}):c.push(a);return c},$ja=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 mc(3016,!1)),"* => *"}},aka=function(a,b){var c=Fh.has(a)||Gh.has(a),d=Fh.has(b)||Gh.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==f;!h&&c&&"boolean"===typeof e&&(h=e?Fh.has(a):Gh.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Fh.has(b):Gh.has(b));return h&&k}},Hh=function(a,b){return{type:7,name:a,definitions:b,options:{}}},
Ih=function(a,b){return{type:4,styles:void 0===b?null:b,timings:a}},Jh=function(a){return{type:6,styles:a,offset:null}},Kh=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Lh=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},Mh=function(){return{type:9,options:null}},Nh=function(a,b){var c={optional:!0};return{type:11,selector:a,animation:b,options:void 0===c?null:c}},cka=function(){return"undefined"!==typeof process&&"[object process]"==={}.toString.call(process)},
Ph=function(a){switch(a.length){case 0:return new Oh;case 1:return a[0];default:return new dka(a)}},fka=function(a,b,c){b=void 0===b?new Map:b;c=void 0===c?new Map:c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),u=q==f,y=u&&h||new Map;k.forEach(function(D,I){var N=I;if("offset"!==I)switch(N=Qh(N),D){case "!":D=b.get(I);break;case "*":D=c.get(I);break;default:D=eka(N,D,d)}y.set(N,D)});u||e.push(y);h=y;f=q});if(d.length)throw new mc(3502,!1);return e},hka=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&
gka(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&gka(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&gka(c,"destroy",a))})}},gka=function(a,b,c){var d=c.totalTime;b=ika(a.element,a.triggerName,a.fromState,a.toState,b||a.phaseName,void 0==d?a.totalTime:d,c.disabled?!0:!1);a=a._data;null!=a&&(b._data=a);return b},ika=function(a,b,c,d,e,f,h){return{element:a,triggerName:b,fromState:c,toState:d,phaseName:void 0===e?"":e,totalTime:void 0===f?0:f,disabled:!!h}},
Rh=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},jka=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},lka=function(a){a=a.parentNode||a.host;return a===kka?null:a},Sh=function(a){if("number"==typeof a)return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||2>a.length?0:mka(parseFloat(a[1]),a[2])},mka=function(a,b){switch(b){case "s":return 1E3*a;default:return a}},Th=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,
e=0,f="";if("string"===typeof a){d=a.match(d);if(null===d){b.push(new mc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=mka(parseFloat(d[1]),d[2]);var h=d[3];null!=h&&(e=mka(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,0>a&&(b.push(new mc(3100,!1)),c=!0),0>e&&(b.push(new mc(3101,!1)),c=!0),c&&b.splice(d,0,new mc(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},Uh=function(a){var b=void 0===b?{}:b;Object.keys(a).forEach(function(c){b[c]=a[c]});return b},nka=function(a){var b=new Map;
Object.keys(a).forEach(function(c){b.set(c,a[c])});return b},oka=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return nka(b)}):[]},Vh=function(a,b,c){b=void 0===b?new Map:b;if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.set(d,e)}}a=r(a);for(c=a.next();!c.done;c=a.next())d=r(c.value),c=d.next().value,d=d.next().value,b.set(c,d);return b},pka=function(a){for(var b="",c=0;c<a.style.length;c++){var d=a.style.item(c),e=a.style.getPropertyValue(d);
b+=e?d+":"+e+";":""}for(var f in a.style)a.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c=f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d=a.style[f],b+=d?c+":"+d+";":"");a.setAttribute("style",b)},Wh=function(a,b,c){a.style&&(b.forEach(function(d,e){var f=Qh(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d}),cka()&&pka(a))},Xh=function(a,b){a.style&&(b.forEach(function(c,d){d=Qh(d);a.style[d]=""}),cka()&&pka(a))},Yh=function(a){return Array.isArray(a)?1==a.length?a[0]:{type:2,steps:a,options:null}:
a},rka=function(a,b,c){var d=b.params||{};a=qka(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new mc(3001,!1))})},qka=function(a){var b=[];if("string"===typeof a){for(var c;c=ska.exec(a);)b.push(c[1]);ska.lastIndex=0}return b},Zh=function(a,b,c){var d=a.toString(),e=d.replace(ska,function(f,h){h=b[h];null==h&&(c.push(new mc(3003,!1)),h="");return h.toString()});return e==d?a:e},$h=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},Qh=function(a){return a.replace(tka,
function(){return tc.apply(0,arguments)[1].toUpperCase()})},uka=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(h,k){d.has(k)||e.push(k);d.set(k,h)});if(e.length){c={};for(var f=1;f<b.length;c={$jscomp$loop$prop$kf$1647:c.$jscomp$loop$prop$kf$1647},f++)c.$jscomp$loop$prop$kf$1647=b[f],e.forEach(function(h){return function(k){var q=h.$jscomp$loop$prop$kf$1647,u=q.set;var y=window.getComputedStyle(a)[k];return u.call(q,k,y)}}(c))}}return b},ai=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 mc(3004,!1);}},wka=function(a){var b=a.split(/\s*,\s*/).find(function(c){return":self"==
c})?!0:!1;b&&(a=a.replace(vka,""));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]},xka=function(a){if("string"==typeof a)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},yka=function(a,b){if(a.hasOwnProperty("duration"))return a;
if("number"==typeof a)return{duration:Th(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=Th(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},bi=function(a){if(a){if(a=Uh(a),a.params){var b=a;var c=(c=a.params)?Uh(c):null;b.params=c}}else a={};return a},zka=function(a,b,c,d,e,f,h,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,
delay:f,totalTime:e+f,easing:void 0===h?null:h,subTimeline:void 0===k?!1:k}},Bka=function(a,b,c,d,e,f,h,k,q,u){f=void 0===f?new Map:f;h=void 0===h?new Map:h;u=void 0===u?[]:u;return(new Aka).buildKeyframes(a,b,c,d,e,f,h,k,q,u)},Cka=function(a){var b=Math.pow(10,2);return Math.round(a*b)/b},Dka=function(a,b){var c=new Map,d;a.forEach(function(e){if("*"===e){d=d||b.keys();e=r(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else Vh(e,c)});return c},Eka=function(a,b,c,d,e,f,h,k,q,u,y,D,I){return{type:0,
element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:u,postStyleProps:y,totalTime:D,errors:I}},Fka=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},Gka=function(a,b){b=Uh(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},Hka=function(a,b){return new ci(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},
Ika=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))},di=function(a){return a&&1===a.nodeType},Jka=function(a,b){var c=a.style.display;a.style.display=null!=b?b:"none";return c},Lka=function(a,b,c,d,e){var f=[];c.forEach(function(q){return f.push(Jka(q))});var h=[];d.forEach(function(q,u){var y=new Map;q.forEach(function(D){var I=b.computeStyle(u,D,e);y.set(D,I);I&&0!=I.length||(u.__ng_removed=Kka,h.push(u))});a.set(u,y)});var k=0;c.forEach(function(q){return Jka(q,
f[k++])});return h},Mka=function(a,b){function c(h){if(!h)return 1;var k=f.get(h);if(k)return k;var q=h.parentNode;d.has(q)?k=q:e.has(q)?k=1:k=c(q);f.set(h,k);return k}var d=new Map;a.forEach(function(h){return d.set(h,[])});if(0==b.length)return d;var e=new Set(b),f=new Map;b.forEach(function(h){var k=c(h);1!==k&&d.get(k).push(h)});return d},ei=function(a,b){var c;null==(c=a.classList)||c.add(b)},fi=function(a,b){var c;null==(c=a.classList)||c.remove(b)},Nka=function(a,b,c){Ph(c).onDone(function(){return gi(a,
b)})},Pka=function(a){var b=[];Oka(a,b);return b},Oka=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof dka?Oka(d.players,b):b.push(d)}},Qka=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},Rka=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},Tka=function(a,b){var c=null,d=
null;Array.isArray(b)&&b.length?(c=Ska(b[0]),1<b.length&&(d=Ska(b[b.length-1]))):b instanceof Map&&(c=Ska(b));return c||d?new hi(a,c,d):null},Ska=function(a){var b=null;a.forEach(function(c,d){if("display"===d||"position"===d)b=b||new Map,b.set(d,c)});return b},Uka=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},Vka=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},ii=function(a){return 0===
a.buttons||0===a.offsetX&&0===a.offsetY},ji=function(a){a=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!!a&&-1===a.identifier&&(null==a.radiusX||1===a.radiusX)&&(null==a.radiusY||1===a.radiusY)},ki=function(a){var b=tc.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},Wka=function(){return null},Xka=function(a,b){var c=li(a);c.some(function(d){return d.trim()==b.trim()})||(c.push(b.trim()),a.setAttribute("aria-describedby",
c.join(" ")))},Yka=function(a,b){var c=li(a).filter(function(d){return d!=b.trim()});c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby")},li=function(a){return(a.getAttribute("aria-describedby")||"").match(/\S+/g)||[]},Zka=function(a,b){return"string"===typeof a?(b||"")+"/"+a:a},ala=function(a){a.id||(a.id="cdk-describedby-message-"+$ka++)},bla=function(){return t(mi)},cla=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})},dla=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})},ela=function(a){return a&&"function"===typeof a.connect},ni=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},gla=function(a){if("number"!==typeof a&&null!=a){var b=r(a.split(fla));a=b.next().value;return(b=b.next().value)&&"px"!==b?null:parseFloat(a)}return a||null},hla=function(a){return{top:Math.floor(a.top),
right:Math.floor(a.right),bottom:Math.floor(a.bottom),left:Math.floor(a.left),width:Math.floor(a.width),height:Math.floor(a.height)}},pi=function(a,b){var c=function(){var d=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};U(c,a);oi.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},qi=function(a){var b=function(){var c=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;c._disableRipple=!1;return c};U(b,a);oi.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Yg(c)}}});return b},ri=function(a){var b=function(){var c=a.apply(this,[].concat(v(tc.apply(0,arguments))))||
this;c._disabled=!1;return c};U(b,a);oi.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=Yg(c)}}});return b},ila=function(a){var b=function(){var c=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;c.errorState=!1;return c};U(b,a);b.prototype.updateErrorState=function(){var c=this.ngControl?this.ngControl.control:null;var d=this._parentFormGroup||this._parentForm;c=!!(c&&c.invalid&&(c.touched||d&&
d.submitted));c!==this.errorState&&(this.errorState=c,this.stateChanges.next())};return b},jla=function(a){var b=function(){var c=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new T.Observable(function(d){c._isInitialized?c._notifySubscriber(d):c._pendingSubscribers.push(d)});return c};U(b,a);b.prototype._markInitialized=function(){this._isInitialized=!0;this._pendingSubscribers.forEach(this._notifySubscriber);this._pendingSubscribers=
null};b.prototype._notifySubscriber=function(c){c.next();c.complete()};return b},si=function(a){var b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};U(c,a);oi.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=null!=d?ah(d):this.defaultTabIndex}}});return c},kla=function(){return t(ti)},lla=function(a,
b){for(var c=Array(a),d=0;d<a;d++)c[d]=b(d);return c},mla=function(a,b){var c=void 0===c?"mat":c;a.changes.pipe(dg(a)).subscribe(function(d){d=d.length;b.nativeElement.classList.toggle(c+"-2-line",!1);b.nativeElement.classList.toggle(c+"-3-line",!1);b.nativeElement.classList.toggle(c+"-multi-line",!1);2===d||3===d?b.nativeElement.classList.toggle(c+"-"+d+"-line",!0):3<d&&b.nativeElement.classList.toggle(c+"-multi-line",!0)})},nla=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)},ola=function(a){a&1&&H(0,"mat-pseudo-checkbox",4);a&2&&(a=K(),E("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},pla=function(a){a&1&&(F(0,"span",5),O(1),G());a&2&&(a=K(),B(1),Ge("(",a.group.label,")"))},qla=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},rla=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):
c},sla=function(a){a&1&&(F(0,"tr",2)(1,"td",3),O(2),G()());a&2&&(a=K(),B(1),oe("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ke("colspan",a.numCols),B(1),Ge(" ",a.label," "))},tla=function(a){a&1&&(F(0,"td",3),O(1),G());a&2&&(a=K(2),oe("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ke("colspan",a._firstRowOffset),B(1),Ge(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},ula=function(a,b){if(a&1){var c=x();F(0,"td",7)(1,"button",8);J("click",function(f){var h=
z(c).$implicit,k=K(2);return A(k._cellClicked(h,f))})("focus",function(f){var h=z(c).$implicit,k=K(2);return A(k._emitActiveDateChange(h,f))});F(2,"div",9);O(3);G();H(4,"div",10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K().index,e=K();oe("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);ke("data-mat-row",d)("data-mat-col",b);B(1);pe("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));E("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);ke("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",e.todayValue===a.compareValue?"date":null);B(1);pe("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(1);Ge(" ",a.displayValue," ")}},vla=function(a,b){a&1&&(F(0,"tr",4),M(1,tla,2,6,"td",5),M(2,ula,5,47,"td",6),G());if(a&2){a=b.$implicit;b=b.index;var c=K();B(1);E("ngIf",0===b&&c._firstRowOffset);B(1);E("ngForOf",a)}},wla=function(a,b,c){return null!==c&&b!==c&&a<c&&a===b},xla=function(a,b,c){return null!==b&&b!==c&&a>=b&&a===c},yla=function(a,b,c,d){return d&&null!==b&&null!==c&&b!==c&&a>=b&&a<=c},
zla=function(a,b){a&1&&(F(0,"th",5)(1,"span",6),O(2),G(),F(3,"span",7),O(4),G()());a&2&&(a=b.$implicit,B(2),He(a.long),B(2),He(a.narrow))},Bla=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=Ala(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},ui=function(a,b,c,d){return((a.getYear(b)-Ala(a,c,d))%24+24)%24},Ala=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},Cla=function(){},Dla=function(a){if(a&1){var b=x();F(0,"mat-month-view",5);J("activeDateChange",function(c){z(b);
var d=K();return A(d.activeDate=c)})("_userSelection",function(c){z(b);var d=K();return A(d._dateSelected(c))});G()}a&2&&(a=K(),E("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd))},Ela=function(a){if(a&1){var b=x();F(0,"mat-year-view",6);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("monthSelected",function(c){z(b);
var d=K();return A(d._monthSelectedInYearView(c))})("selectedChange",function(c){z(b);var d=K();return A(d._goToDateInView(c,"month"))});G()}a&2&&(a=K(),E("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Fla=function(a){if(a&1){var b=x();F(0,"mat-multi-year-view",7);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("yearSelected",function(c){z(b);var d=K();return A(d._yearSelectedInMultiYearView(c))})("selectedChange",
function(c){z(b);var d=K();return A(d._goToDateInView(c,"year"))});G()}a&2&&(a=K(),E("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Gla=function(){},Hla=function(a,b){for(var c=a.length;c--;)b(a[c])},Ila=function(){},Jla=function(a,b){for(var c=a.nativeElement.parentElement;c&&!c.classList.contains("mat-dialog-container");)c=c.parentElement;return c?b.find(function(d){return d.id===c.id}):null},Kla=
function(a){a&1&&(ve(0),F(1,"div",14),H(2,"div",15)(3,"div",16)(4,"div",17),G(),F(5,"div",18),H(6,"div",15)(7,"div",16)(8,"div",17),G(),we())},Lla=function(a){if(a&1){var b=x();F(0,"div",19);J("cdkObserveContent",function(){z(b);var c=K();return A(vi(c))});Be(1,1);G()}a&2&&(a=K(),E("cdkObserveContentDisabled","outline"!=a.appearance))},Mla=function(a){a&1&&(ve(0),Be(1,2),F(2,"span"),O(3),G(),we());a&2&&(a=K(2),B(3),He(a._control.placeholder))},Nla=function(a){a&1&&Be(0,3,["*ngSwitchCase","true"])},
Ola=function(a){a&1&&(F(0,"span",23),O(1," *"),G())},Pla=function(a){if(a&1){var b=x();F(0,"label",20,21);J("cdkObserveContent",function(){z(b);var c=K();return A(vi(c))});M(2,Mla,4,1,"ng-container",12);M(3,Nla,1,0,"ng-content",12);M(4,Ola,2,0,"span",22);G()}a&2&&(a=K(),pe("mat-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-form-field-empty",a._control.empty&&!a._shouldAlwaysFloat())("mat-accent","accent"==a.color)("mat-warn","warn"==a.color),E("cdkObserveContentDisabled","outline"!=a.appearance)("id",
a._labelId)("ngSwitch",a._hasLabel()),ke("for",a._control.id)("aria-owns",a._control.id),B(2),E("ngSwitchCase",!1),B(1),E("ngSwitchCase",!0),B(1),E("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Qla=function(a){a&1&&(F(0,"div",24),Be(1,4),G())},Rla=function(a){a&1&&(F(0,"div",25),H(1,"span",26),G());a&2&&(a=K(),B(1),pe("mat-accent","accent"==a.color)("mat-warn","warn"==a.color))},Sla=function(a){a&1&&(F(0,"div"),Be(1,5),G());a&2&&(a=K(),E("@transitionMessages",a._subscriptAnimationState))},
Tla=function(a){a&1&&(F(0,"div",30),O(1),G());a&2&&(a=K(2),E("id",a._hintLabelId),B(1),He(a.hintLabel))},Ula=function(a){a&1&&(F(0,"div",27),M(1,Tla,2,2,"div",28),Be(2,6),H(3,"div",29),Be(4,7),G());a&2&&(a=K(),E("@transitionMessages",a._subscriptAnimationState),B(1),E("ngIf",a.hintLabel))},Vla=function(a){a&1&&H(0,"input",8);a&2&&(a=K(),E("formControl",a.timeFormControl))},Wla=function(a){a&1&&(F(0,"mat-error",9),O(1),G());a&2&&(a=K(),B(1),He(a.formErrorMessage))},Xla=function(a,b){return a.open(wi,
{data:b,width:"450px",height:"auto"})},Zla=function(a,b){b-=a;if(2592E6<=b)return Yla(a);if(1728E5<=b)a=Math.floor(b/864E5),b="days";else if(864E5<=b)a=1,b="day";else if(72E5<=b)a=Math.floor(b/36E5),b="hours";else if(36E5<=b)a=1,b="hour";else if(12E4<=b)a=Math.floor(b/6E4),b="minutes";else if(6E4<=b)a=1,b="minute";else{if(0<=b)return"just now";if(2592E6<=-b)return Yla(a);if(1728E5<=-b)a=-Math.floor(-b/864E5),b="days";else if(864E5<=-b)a=-1,b="day";else if(72E5<=-b)a=-Math.floor(-b/36E5),b="hours";
else if(36E5<=-b)a=-1,b="hour";else if(12E4<=-b)a=-Math.floor(-b/6E4),b="minutes";else if(6E4<=-b)a=-1,b="minute";else return"now"}b=Math.abs(a)+" "+b;0<=a?b+=" ago":0>a&&(b="in "+b);return b},Yla=function(a){a=new Date(a);return(new xi("y-MM-dd")).format(a)},$la=function(a){if(a&1){var b=x();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.action.emit())});O(1);G()}a&2&&(a=K(),B(1),Ge(" ",a.actionBtnText," "))},ama=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip-body",1);
J("action",function(){z(b);var c=K();return A(c.action.emit())})("dismiss",function(){z(b);var c=K();c.hideFeatureTooltip();c.dismiss.emit();return A()});Be(1);G()}a&2&&(a=K(),E("actionBtnText",a.actionBtnText)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},yi=function(a){a&&"function"==typeof a.dispose&&a.dispose()},bma=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Fa(d)?bma.apply(null,d):yi(d)}},cma=function(){function a(){e[0]=1732584193;
e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;y=u=0}function b(D){for(var I=h,N=0;64>N;N+=4)I[N/4]=D[N]<<24|D[N+1]<<16|D[N+2]<<8|D[N+3];for(N=16;80>N;N++)D=I[N-3]^I[N-8]^I[N-14]^I[N-16],I[N]=(D<<1|D>>>31)&4294967295;D=e[0];var L=e[1],S=e[2],X=e[3],ka=e[4];for(N=0;80>N;N++){if(40>N)if(20>N){var ha=X^L&(S^X);var ra=1518500249}else ha=L^S^X,ra=1859775393;else 60>N?(ha=L&S|X&(L|S),ra=2400959708):(ha=L^S^X,ra=3395469782);ha=((D<<5|D>>>27)&4294967295)+ha+ka+ra+I[N]&4294967295;ka=X;X=S;
S=(L<<30|L>>>2)&4294967295;L=D;D=ha}e[0]=e[0]+D&4294967295;e[1]=e[1]+L&4294967295;e[2]=e[2]+S&4294967295;e[3]=e[3]+X&4294967295;e[4]=e[4]+ka&4294967295}function c(D,I){if("string"===typeof D){D=unescape(encodeURIComponent(D));for(var N=[],L=0,S=D.length;L<S;++L)N.push(D.charCodeAt(L));D=N}I||(I=D.length);N=0;if(0==u)for(;N+64<I;)b(D.slice(N,N+64)),N+=64,y+=64;for(;N<I;)if(f[u++]=D[N++],y++,64==u)for(u=0,b(f);N+64<I;)b(D.slice(N,N+64)),N+=64,y+=64}function d(){var D=[],I=8*y;56>u?c(k,56-u):c(k,64-
(u-56));for(var N=63;56<=N;N--)f[N]=I&255,I>>>=8;b(f);for(N=I=0;5>N;N++)for(var L=24;0<=L;L-=8)D[I++]=e[N]>>L&255;return D}for(var e=[],f=[],h=[],k=[128],q=1;64>q;++q)k[q]=0;var u,y;a();return{reset:a,update:c,digest:d,digestString:function(){for(var D=d(),I="",N=0;N<D.length;N++)I+="0123456789ABCDEF".charAt(Math.floor(D[N]/16))+"0123456789ABCDEF".charAt(D[N]%16);return I}}},dma=function(a,b,c){zi(a.url,function(d){d=d.target;d.isSuccess()?b(d.getResponseText()):c(d.getStatus())},a.requestType,a.body,
a.requestHeaders,a.timeoutMillis,a.withCredentials)},ema=function(a){this.logSource_=a;this.sessionIndex_="0";this.destinationUrl_="https://play.google.com/log?format=json&hasfast=true";this.enableServiceWorkerScope_=!1;this.networkIOSend_=dma;this.componentId_="";this.useGetRequestForFinalFlush_=this.useSendBeaconForFinalFlush_=!1},fma=function(a){var b=new Map;0<a.length&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=r(-1==d?[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},ima=function(a){return encodeURIComponent(a).replace(gma,function(b,c){var d;return null!=(d=hma[c])?d:b})},jma=function(a){return""+a},kma=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},lma=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},mma=function(a){return"undefined"!==typeof FormData&&a instanceof FormData},nma=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}},oma=function(){if(void 0===Ai&&(Ai=null,"undefined"!==typeof window)){var a=window;void 0!==a.trustedTypes&&(Ai=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return Ai},pma=function(a){var b;return(null==(b=oma())?void 0:b.createHTML(a))||a},qma=function(){var a=t(mi),b=a?a.location:
null;return{getPathname:function(){return b?b.pathname+b.search:""}}},rma=function(a){a&1&&(Qc(),F(0,"svg",2),H(1,"polygon",3),G())},sma=function(a){if(a&1){var b=x();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d._handleKeydown(c))})("click",function(){z(b);var c=K();return A(c.closed.emit("click"))})("@transformMenu.start",function(c){z(b);var d=K();return A(d._onAnimationStart(c))})("@transformMenu.done",function(c){z(b);var d=K();return A(d._onAnimationDone(c))});F(1,"div",1);
Be(2);G()()}a&2&&(a=K(),E("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),ke("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},tma=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},uma=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},removeListener:function(){}}},vma=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,
c){return b.concat(c)}).map(function(b){return b.trim()})},wma=function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}},xma=function(a){a&1&&H(0,"mat-icon",22)},yma=function(a){a&1&&(ve(0),F(1,"mat-icon",22)(2,"span",23),O(3),G()(),we());a&2&&(a=K(),B(3),He(a.pinnedTasksCount))},zma=function(a){a&1&&(ve(0),F(1,"mat-icon",22),H(2,"mat-icon",24),G(),we());a&2&&(a=K(),B(2),E("ngClass",a.subscriptIconStyleClass)("svgIcon",a.subscriptIcon))},Ama=function(a){if(a&1){var b=x();F(0,"span",39);J("click",
function(c){z(b);var d=K(2);return A(d.stopPropagation(c))});O(1);P(2,"date");G()}a&2&&(a=K(2),E("disableRipple",!0),B(1),Ge(" Until ",Pe(2,2,a.snoozeUntilMsInternal,"EEE, MMM d, h:mm a")," "))},Bma=function(a){if(a&1){var b=x();F(0,"button",40);J("click",function(){z(b);K(2).addTaskByUrl.emit();return A()});H(1,"mat-icon",41);G()}},Cma=function(a){a&1&&H(0,"mat-icon",42)},Dma=function(a){a&1&&H(0,"mat-icon",43)},Ema=function(a){a&1&&H(0,"mat-icon",44)},Fma=function(a){a&1&&H(0,"mat-icon",45)},Gma=
function(a){a&1&&H(0,"mat-icon",46)},Hma=function(a){a&1&&H(0,"mat-icon",47)},Ima=function(a){if(a&1){var b=x();ve(0);M(1,Ama,3,5,"span",25);F(2,"div",26);M(3,Bma,2,0,"button",27);F(4,"button",28);J("click",function(){z(b);var c=K();return A(Bi(c,c.taskStatusInternal===c.TaskStatus.PINNED?c.TaskStatus.INCOMING:c.TaskStatus.PINNED))});M(5,Cma,1,0,"mat-icon",29);M(6,Dma,1,0,"mat-icon",30);G();F(7,"button",31);J("click",function(){z(b);var c=K();try{c.widgetMenuTrigger.closeMenu(),Ci(c.snoozeMenuTrigger)}catch(d){}return A()});
H(8,"mat-icon",32);G();F(9,"button",33);J("click",function(){z(b);var c=K();return A(Bi(c,c.taskStatusInternal===c.TaskStatus.ARCHIVED?c.TaskStatus.INCOMING:c.TaskStatus.ARCHIVED))});M(10,Ema,1,0,"mat-icon",34);M(11,Fma,1,0,"mat-icon",35);G();F(12,"button",36);J("click",function(){z(b);var c=K();return A(Bi(c,c.taskStatusInternal===c.TaskStatus.MUTED?c.TaskStatus.INCOMING:c.TaskStatus.MUTED))});M(13,Gma,1,0,"mat-icon",37);M(14,Hma,1,0,"mat-icon",38);G()();we()}a&2&&(a=K(),B(1),E("ngIf",a.taskStatusInternal===
a.TaskStatus.SNOOZED),B(2),E("ngIf",a.shouldShowAddToG3cButton),B(1),E("matTooltip",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),ke("aria-label",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),B(1),E("ngIf",a.taskStatusInternal!==a.TaskStatus.PINNED),B(1),E("ngIf",a.taskStatusInternal===a.TaskStatus.PINNED),B(1),E("matTooltip",a.taskStatusInternal===a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),ke("aria-label",a.taskStatusInternal===
a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),B(1),pe("orange",a.taskStatusInternal===a.TaskStatus.SNOOZED),B(1),E("matTooltip",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),ke("aria-label",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),B(1),E("ngIf",a.taskStatusInternal!==a.TaskStatus.ARCHIVED),B(1),E("ngIf",a.taskStatusInternal===a.TaskStatus.ARCHIVED),B(1),E("matTooltip",a.taskStatusInternal===a.TaskStatus.MUTED?
"Unmute this task":"Mute this task"),ke("aria-label",a.taskStatusInternal===a.TaskStatus.MUTED?"Unmute this task":"Mute this task"),B(1),E("ngIf",a.taskStatusInternal!==a.TaskStatus.MUTED),B(1),E("ngIf",a.taskStatusInternal===a.TaskStatus.MUTED))},Jma=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K();Di(c,c.laterThisWeek);return A()});O(1," Later this week ");F(2,"span",17);O(3);P(4,"date");G()()}a&2&&(a=K(),B(3),He(Pe(4,1,a.laterThisWeek,"EEE, MMM d, h:mm a")))},
Kma=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K();Bi(c,6);return A()});H(1,"mat-icon",48);O(2,"Unsnooze now ");G()}},Lma=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);O(2,"G3 Console");G();O(3," Navigate to the G3 Console to see all of your tasks. ");G()}a&2&&(a=K(2),E("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS))},Mma=function(a){if(a&1){var b=x();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);O(2,"G3 Console");G();O(3," Pin, snooze, archive or mute this task. ");G()}a&2&&(a=K(2),E("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS))},Nma=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller"),M(1,Lma,4,1,"onedev-feature-tooltip",49),M(2,Mma,4,1,"onedev-feature-tooltip",49),G());a&2&&(a=K(),B(1),E("ngIf",a.skipTasksActions),B(1),E("ngIf",!a.skipTasksActions))},Oma=function(a){if(a&1){var b=x();ve(0);F(1,"g3c-widget",1);J("updateTaskStatus",function(c){z(b);
var d=K();return A(d.updateTaskStatus(c))})("addTaskByUrl",function(){z(b);var c=K();return A(c.addTaskByUrl())})("widgetMenuOpen",function(){z(b);var c=K();return A(c.emitWidgetMenuOpen())})("openInG3cClicked",function(){z(b);var c=K();return A(c.emitOpenInG3cClicked())})("featureTooltipActioned",function(c){z(b);K().userActionPerformed.emit(c);return A()});P(2,"async");P(3,"async");G();we()}a&2&&(a=K(),B(1),E("task",Q(2,6,a.task$))("pinnedTasksCount",Q(3,8,a.pinnedTasksCount$))("menuXPosition",
a.menuXPosition)("skipTasksActions",a.skipTasksActionsInternal)("featureHighlightingEnabled",a.featureHighlightingEnabled)("customWidgetClass",a.customWidgetClass))},Qma=function(a){var b=a.xhr_?a.xhr_.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new Ei:new Pma;if(b.startsWith("application/x-protobuf")){a=a.xhr_?a.xhr_.getResponseHeader("Content-Transfer-Encoding"):null;if(!a)return new Fi;
if("base64"==a.toLowerCase())return new Gi}return null},Rma=function(a){return"nonprod"===a.environment?"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com":"https://devopsconsole-pa-googleapis.corp.google.com"},Hi=function(a,b){if(a===b)return!0;if(null==a||null==b)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(!Hi(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("object"===typeof a){if("object"!==typeof b)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(!Sma.call(b,f)||!Hi(a[f],b[f]))return!1}return!0}return!1},Tma=function(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=r(b),f=e.next();!f.done;f=e.next())if(Hi(c,f.value)){d=!0;break}d||b.push(c)}return b},Uma=function(a,
b){for(var c=a.length-1;0<=c;c--)Hi(a[c],b)&&a.splice(c,1)},Vma=function(a,b,c){c=void 0===c?Infinity:c;if(a===b)return!0;if((null==a||null==b)&&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]&&("object"!==typeof a[f]||"object"!==typeof b[f]))return!1}return!0},Xma=function(a){return Object.assign.apply(Object,[{}].concat(v(Wma.map(function(b){var c={};return c[b]=a[b],c}))))},Ii=function(a){if(null!==
a&&void 0!==a&&-1===["boolean","function","number","string"].indexOf(typeof a))if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(Ii(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof Map){b=new Map;a=r(a);for(c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.set(Ii(c),Ii(d))}a=b}else{b={};c=r(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b[d]=
Ii(e)}b.__proto__=a.__proto__;a=b}return a},Ji=function(a){return"number"===typeof a},Li=function(a){return"string"===typeof a},Yma=function(a){return Ji(a)||Li(a)},Zma=function(a){return Array.isArray(a)&&a.every(Li)},$ma=function(a){return Array.isArray(a)&&a.every(Ji)},ana=function(a){return null==a?!1:"function"===typeof a.then},bna=function(a){if(null==a)return!1;a=String(a).trim();if(2>=a.length)return!1;var b=Number(a);return isNaN(b)?!1:String(b).length===a.length},Mi=function(a){return a.toLowerCase().replace(/_([a-z])/g,
function(b,c){return c.toUpperCase()})},Pi=function(a){if(a){if(Ji(a)){var b=new Date(a);47E3<b.getFullYear()&&(b=new Date(a/1E3));return new Ni(b)}b=a.split("/");if(3===b.length)return a=Oi(b[2]),50>a?a+=2E3:100>a&&(a+=1900),new Ni(a,Oi(b[0])-1,Oi(b[1]));if(1===b.length)return Pi(Number(a))}return new Ni},cna=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},dna=function(a){return!(!a||!Qi(a,"text/")&&!Qi(a,"image/")&&"application/pdf"!==a)},Ri=function(a,b){return a.map(function(c){return c[b]})},
Si=function(a,b){return a.filter(function(c){return!b.has(c)})},ena=function(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=r(b);for(d=b.next();!d.done;d=b.next())if(!a.has(d.value))return!1;return!0},Ti=function(a,b){return Si(a,new Set(b))},Vi=function(a,b){var c=/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(Ui).filter(function(d){return!!d})},Xi=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Wi({type:String(a).replace(/([A-Z])/g,
"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new Wi({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},fna=function(a){a=Yi(a);if(Zi(a))return null;var b=a.split(":");if(2!==b.length||Zi(b[1]))return null;a="asc"===b[1].toLowerCase()?"ASCENDING":"DESCENDING";return(b=Xi(b[0]))&&a?new $i(b,a):null},aj=function(){if(null==gna){var a=void 0===a?hna.buganizerSessionJspb:a;a=gna=new ina(a)}else a=gna;return a},cj=function(a){var b=void 0===b?aj():b;var c,
d;return null==(d=null==(c=b.getConfig())?void 0:bj(c,4))?void 0:d.get(a)},jna=function(a){a=void 0===a?aj():a;return V(a,4)||"INTERNAL"},dj=function(a){a=void 0===a?aj():a;return"INTERNAL"===jna(a)},kna=function(){var a=void 0===a?aj():a;return!dj(a)},lna=function(){var a=void 0===a?aj():a;return"PUBLIC"===jna(a)},mna=function(){var a=void 0===a?aj():a;return a.getUser()||void 0},nna=function(a){if(null==a)return 0;switch(ej[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},
ona=function(a){switch(a){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){return b.showStatusIcons},set:function(b,c){b.showStatusIcons=c}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},
set:function(b,c){b.rtlComponentPath=c}};default:throw Error("ec`"+a);}},fj=function(a){if(kna())return!1;var b;return!0===(null==a?void 0:null==(b=a.newIssueDetailsPagePreferences)?void 0:b.newIdpOptOut)?!1:!0},xna=function(a){var b={};gj(a,1)&&(b.showFullHistory=W(a,1));gj(a,2)&&(b.useCodefont=W(a,2));gj(a,5)&&(b.resultsPerPage=hj(a,5));gj(a,26)&&(b.showRecentEventsFirst=W(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(pna)});if(c=a.getSortColumns())b.sortColumns=
{column:c.getColumnList().map(qna)};gj(a,7)&&(b.bannerMessageId=V(a,7));if(c=m(a,ij,3)){var d={};gj(c,1)&&(d.reportedPriority=jj[Y(c,1,0)]);gj(c,2)&&(d.assignedPriority=jj[Y(c,2,0)]);gj(c,3)&&(d.verifiedPriority=jj[Y(c,3,0)]);gj(c,4)&&(d.ccdPriority=jj[Y(c,4,0)]);gj(c,5)&&(d.starredPriority=jj[Y(c,5,0)]);gj(c,6)&&(d.excludeChangesByMe=W(c,6));gj(c,7)&&(d.unsubscribeFromAll=W(c,7));gj(c,8)&&(d.enableV2Prefs=W(c,8));b.notificationPreferences=d}if(c=m(a,kj,9))d={},gj(c,1)&&(d.showHotlists=W(c,1)),gj(c,
4)&&(d.showStatusIcons=W(c,4)),gj(c,3)&&(d.wrapComponents=W(c,3)),gj(c,2)&&(d.wrapTitles=W(c,2)),gj(c,5)&&(d.rtlComponentPath=W(c,5)),b.listViewPreferences=d;if(c=a.getLayoutPreferences())d={},gj(c,1)&&(d.leftSidebarWidth=hj(c,1)),gj(c,2)&&(d.expandIssueSlo=W(c,2)),gj(c,3)&&(d.rightSidebarWidth=hj(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},gj(c,1)&&(d.calendarFormat=V(c,1)),gj(c,2)&&(d.timeFormat=V(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),gj(c,7)&&(d.sloEtaViewAs=
rna[Y(c,7,0)]),b.dateTimePreferences=d;if(c=m(a,lj,8))d={},gj(c,1)&&(d.density=sna[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=tna(c.getResourceType())),c.hasResourceId()&&(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=m(a,mj,17))d={},gj(c,1)&&(d.enableAllHotkeys=W(c,1,!0)),b.keyboardPreferences=d;gj(a,16)&&(b.newFeaturesAcknowledgedMillis=nj(a,16));gj(a,18)&&(b.autoCcOnComment=W(a,18));oj(a,20)&&(d=m(a,pj,20),c=d.getCommentDisplayOverride(),
d=Y(d,1,0),b.textDisplayPreferences={commentDisplayOverride:una(c),lastPublishMode:una(d)});oj(a,21)&&(c=m(a,qj,21),d={},gj(c,2)&&(d.announcementDismissed=W(c,2)),gj(c,1)&&(d.enableBugScreensaver=W(c,1)),b.bugScreensaverPreferences=d);oj(a,24)&&(c=m(a,rj,24),d={},gj(c,1)&&(d.announcementDismissedMillis=hj(c,1)),b.g3nPreferences=d);oj(a,22)&&(c=m(a,sj,22),d={},gj(c,1)&&(d.enableNewIssueDetailsPage=W(c,1)),gj(c,3)&&(d.newIdpOptOut=W(c,3)),gj(c,2)&&(d.onboardingDialogAcknowledgedMillis=hj(c,2)),b.newIssueDetailsPagePreferences=
d);if(c=m(a,tj,23))b.teamWarningPreferences={componentTeamWarnings:tb(c,uj,1).map(vna)};c=bj(a,25,vj);c.size&&(b.dismissalTimestamps=wna(c));a=bj(a,27);a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},pna=function(a){var b={};a.hasType()&&(b.type=yna[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId());return b},qna=function(a){var b={};if(gj(a,2)){a:{var c=Y(a,2,1);switch(c){case 1:c="ASCENDING";break a;case 2:c="DESCENDING";break a;default:c=ph(c,"Unknown sortOrder: "+
c)}}b.order=c}if(a=a.getColumn())b.column=pna(a);return b},una=function(a){if(0!==a)return ej[a]},tna=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";default:return ph(a,"Unknown resourceType: "+a)}},vna=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId());gj(a,2)&&(b.dismissMillis=hj(a,2));return b},wna=function(a){a=Array.from(a.entries()).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});
return Object.fromEntries(a)},Gna=function(a){var b=new wj;null!=a.showFullHistory&&l(b,1,a.showFullHistory);null!=a.useCodefont&&l(b,2,a.useCodefont);null!=a.resultsPerPage&&l(b,5,a.resultsPerPage);if(null!=a.displayColumns){var c=zna(a.displayColumns);Db(b,4,c)}null!=a.sortColumns&&(c=Ana(a.sortColumns),Db(b,6,c));null!=a.bannerMessageId&&l(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new ij;d=l(d,1,xj[c.reportedPriority]);d=l(d,2,xj[c.assignedPriority]);
d=l(d,3,xj[c.verifiedPriority]);d=l(d,4,xj[c.ccdPriority]);d=l(d,5,xj[c.starredPriority]);d=l(d,6,c.excludeChangesByMe);d=l(d,7,c.unsubscribeFromAll);c=l(d,8,c.unsubscribeFromAll);Db(b,3,c)}null!=a.listViewPreferences&&(c=a.listViewPreferences,d=new kj,d=l(d,1,c.showHotlists),d=l(d,2,c.wrapTitles),d=l(d,3,c.wrapComponents),d=l(d,4,c.showStatusIcons),c=l(d,5,c.rtlComponentPath),Db(b,9,c));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new yj,null!=c.leftSidebarWidth&&l(d,1,c.leftSidebarWidth),
null!=c.expandIssueSlo&&l(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&l(d,3,c.rightSidebarWidth),Db(b,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,d=new zj,d=l(d,1,c.calendarFormat),d=l(d,2,c.timeFormat).setTimeZone(c.timeZone),c=l(d,7,Bna[c.sloEtaViewAs]),Db(b,11,c));null!=a.themePreferences&&(c=a.themePreferences,c=(new lj).setDensity(Cna[c.density]),Db(b,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new Aj,null!=c.resourceType&&d.setResourceType(Dna(c.resourceType)),
null!=c.resourceId&&d.setResourceId(c.resourceId),Db(b,13,d));null!=a.keyboardPreferences&&(c=a.keyboardPreferences,d=new mj,c=l(d,1,c.enableAllHotkeys),Db(b,17,c));null!=a.newFeaturesAcknowledgedMillis&&l(b,16,a.newFeaturesAcknowledgedMillis);null!=a.autoCcOnComment&&l(b,18,a.autoCcOnComment);null!=a.textDisplayPreferences&&(c=a.textDisplayPreferences,d=new pj,c.commentDisplayOverride&&d.setCommentDisplayOverride(Ena(c.commentDisplayOverride)),c.lastPublishMode&&l(d,1,Ena(c.lastPublishMode)),Db(b,
20,d));null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,d=new qj,null!=c.enableBugScreensaver&&l(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&l(d,2,c.announcementDismissed),Db(b,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new rj,null!=c.announcementDismissedMillis&&l(d,1,c.announcementDismissedMillis),Db(b,24,d));null!=a.newIssueDetailsPagePreferences&&(c=a.newIssueDetailsPagePreferences,d=new sj,null!=c.enableNewIssueDetailsPage&&l(d,1,c.enableNewIssueDetailsPage),
null!=c.newIdpOptOut&&l(d,3,c.newIdpOptOut),null!=c.onboardingDialogAcknowledgedMillis&&l(d,2,c.onboardingDialogAcknowledgedMillis),Db(b,22,d));null!=a.teamWarningPreferences&&(c=Fna(a.teamWarningPreferences),Db(b,23,c));if(null!=a.dismissalTimestamps){c=bj(b,25,vj);d=r(Object.entries(a.dismissalTimestamps));for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set,q=new vj;h=h.getTime();q.setSeconds(Math.floor(h/1E3)).setNanos(h%1E3*1E6);k.call(f,
e,q)}}if(null!=a.collapsed)for(c=bj(b,27),d=r(Object.entries(a.collapsed)),e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,c.set(e,f);null!=a.showRecentEventsFirst&&l(b,26,a.showRecentEventsFirst);return b},zna=function(a){return(new Bj).setColumnList(a.column.map(function(b){return Hna(b)}))},Hna=function(a){var b=new Cj,c=b.setType,d=a.type;if(!Dj.hasOwnProperty(d))throw Error("fc`"+d);b=c.call(b,Ina[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},
Ana=function(a){return(new Ej).setColumnList(a.column.map(function(b){var c=(new Fj).setColumn(Hna(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=ph(b,"Unknown sortOrder: "+b)}return l(c,2,b)}))},Dna=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;default:return ph(a,"Unknown resourceType: "+a)}},Ena=function(a){switch(ej[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},
Fna=function(a){var b=new tj;null!=a.componentTeamWarnings&&Jna(b,a.componentTeamWarnings.map(function(c){var d=new uj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&l(d,2,c.dismissMillis);return d}));return b},Gj=function(a){return a},Hj=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},Ij=function(a,b){for(var c=Math.max(a.length,b.length),d=[],e=0;e<c;e++)d.push([a[e],b[e]]);return d},Kna=function(a){a=void 0===a?[]:a;return a.filter(function(b){return"number"===
typeof b}).filter(function(b){return 0!==b})},Lna=function(a,b){if(a.length!==b.length)return!1;a=[].concat(v(a)).sort();b=[].concat(v(b)).sort();return a.every(function(c,d){return c===b[d]})},Mna=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)})}},Jj=function(a){a=void 0===a?{}:a;return Kna(Object.values(a)).sort(function(b,c){return b-c})},Nna=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=
z(c).$implicit,e=K();return A(e.quickBulkEdit("PRIORITY",d))});O(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Ge(" ",b.constants.protoIssuePrioritiesDisplayNames.get(a)," "))},Ona=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("SEVERITY",d))});O(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Ge(" ",b.constants.protoIssueSeveritiesDisplayNames.get(a)," "))},Pna=function(a,b){if(a&1){var c=x();F(0,"button",4);J("click",function(){var d=z(c).$implicit,
e=K();return A(e.quickBulkEdit("STATUS",d))});O(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Ge(" ",b.constants.protoIssueStatusesDisplayNames.get(a)," "))},Qna=function(a,b){if(a&1){var c=x();F(0,"button",17);J("click",function(){var e=z(c).$implicit,f=K();return A(f.quickBulkEdit("TYPE",e))});O(1);G()}if(a&2){a=b.$implicit;b=K();var d;E("matTooltip",null!==(d=b.constants.protoIssueTypesShortDescriptions.get(a))&&void 0!==d?d:"");B(1);Ge(" ",b.constants.protoIssueTypesDisplayNames.get(a)," ")}},Rna=function(a){if(a&
1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!0))});O(1,"Add Parent");G()}},Sna=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!1))});O(1,"Remove Parent");G()}},Tna=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(){z(b);var c=K(2);return A(c.exportCsvClicked.emit())});O(1,"Export issues to CSV ");G()}},Una=function(a){if(a&1){var b=x();F(0,"button",
5);J("click",function(){z(b);var c=K(2);return A(c.flagAsSpamClicked.emit())});O(1,"Flag issues as spam ");G()}},Vna=function(a){a&1&&(ve(0),F(1,"button",1)(2,"span"),O(3,"More"),G(),H(4,"b-icon",2),G(),F(5,"mat-menu",null,3),M(7,Tna,2,0,"button",4),M(8,Una,2,0,"button",4),G(),we());if(a&2){var b=Fe(6);a=K();B(1);E("disabled",a.isAnonymous)("matMenuTriggerFor",b);B(6);E("ngIf",a.showExportCsv);B(1);E("ngIf",a.showFlagIssuesAsSpam)}},Wna=function(a){a&1&&(ve(0),O(1," Network connection has been interrupted. "),
we())},Xna=function(a){a&1&&O(0," Network connection has been interrupted or login credentials may have expired. ")},$na=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(c){z(b);K(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=Ija("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||lh;var f=void 0!==self.crossOriginIsolated,h=
"strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var k="unsafe-url"===h;h=d.noreferrer;if(f&&h){if(k)throw Error("gc");h=!1}f=d.target||"/refreshSso".target;k=[];for(var q in d)switch(q){case "width":case "height":case "top":case "left":k.push(q+"="+d[q]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(q+"="+(d[q]?1:0))}q=k.join(",");oa()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Kj(document,"A"),e=e instanceof hh?e:Lj(e),
d.href=ih(e),d.target=f,h&&(d.rel="noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):h?(c=Yna("",c,f,q),e=ih(e),c&&(Zna&&fa(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=nh('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Mj(e)+'">',null),(c=c.document)&&c.write&&(c.write(th(e)),c.close()))):(c=Yna(e,c,f,q))&&d.noopener&&(c.opener=null);return A()});O(1," Log in again ");
G()}},aoa=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),M(2,Wna,2,0,"ng-container",2),M(3,Xna,1,0,"ng-template",null,3,Mf),G(),F(5,"b-callout-actions"),M(6,$na,2,0,"button",4),G()());if(a&2){var b=Fe(4);a=K();E("messageType","error");B(2);E("ngIf",a.isAnonymous)("ngIfElse",b);B(4);E("ngIf",!a.isAnonymous)}},Nj=function(){return new boa},coa=function(a){var b={};a=r(bj(a,1,Oj).entries());for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:Y(d,
1,0),detailedUserType:Y(d,2,0)}}return b},doa=function(a,b){return a.map(function(c){return b[c]||null})},eoa=function(a){if(a)return a;a=new Oj;l(a,1,1);l(a,2,0);return a},foa=function(a){return null===a?function(){}:function(b){a:{if(Array.isArray(b)&&1===b.length&&(b=b[0],Array.isArray(b))){b=new a(b);break a}b=void 0}if(void 0!==b)return b;throw Error("lc");}},goa=function(a){a&1&&(F(0,"a",1),O(1," Hiring!\n"),G())},hoa=function(a){return a instanceof Pj?a:new Pj(a,{})},Qj=function(a){a=hoa(a);
return new Pj(a.char,Object.assign({},a.modifiers,{shift:!0}))},ioa=function(a){a=hoa(a);return new Pj(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},joa=function(){var a=Qj("f");a=hoa(a);return new Pj(a.char,Object.assign({},a.modifiers,{alt:!0}))},loa=function(a){if(a instanceof Pj){var b=koa(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(loa).join(" "):koa(a)},Rj=function(){return tc.apply(0,arguments)},
koa=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 ph(a)}},moa=function(a){a=Error("mc`"+a);a.ngNavigationCancelingError=!0;return a},noa=function(a,b,c){var d=c.path.split("/");if(d.length>a.length||"full"===c.pathMatch&&(b.hasChildren()||d.length<a.length))return null;b={};for(c=0;c<d.length;c++){var e=d[c],f=a[c];if(e.startsWith(":"))b[e.substring(1)]=f;else if(e!==f.path)return null}return{consumed:a.slice(0,d.length),posParams:b}},
Sj=function(a,b){var c=a?Object.keys(a):void 0,d=b?Object.keys(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!ooa(a[d],b[d]))return!1;return!0},ooa=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(v(a)).sort();var c=[].concat(v(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Tj=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},Uj=function(a){return Hea(a)?a:ce(a)?(0,T.from)(Promise.resolve(a)):
(0,T.of)(a)},roa=function(a,b,c){return poa[c.paths](a.root,b.root,c.matrixParams)&&qoa[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},soa=function(a,b){return Sj(a,b)},toa=function(a,b,c){if(!Vj(a.segments,b.segments)||!Wj(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!toa(a.children[d],b.children[d],c))return!1;return!0},uoa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&
Object.keys(b).every(function(c){return ooa(a[c],b[c])})},woa=function(a,b,c){return voa(a,b,b.segments,c)},voa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Vj(a,c)&&!b.hasChildren()&&Wj(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Vj(a.segments,c)||!Wj(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!woa(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 Vj(a.segments,
e)&&Wj(a.segments,e,d)&&a.children.primary?voa(a.children.primary,b,c,d):!1},Wj=function(a,b,c){return b.every(function(d,e){return qoa[c](a[e].parameters,d.parameters)})},xoa=function(a,b){return Vj(a,b)&&a.every(function(c,d){return Sj(c.parameters,b[d].parameters)})},Vj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},yoa=function(a,b){var c=[];Tj(a.children,function(d,e){"primary"===e&&(c=c.concat(b(d,e)))});Tj(a.children,function(d,e){"primary"!==
e&&(c=c.concat(b(d,e)))});return c},Yj=function(a){return a.segments.map(function(b){return Xj(b.path)+zoa(b.parameters)}).join("/")},Zj=function(a,b){if(!a.hasChildren())return Yj(a);if(b){b=a.children.primary?Zj(a.children.primary,!1):"";var c=[];Tj(a.children,function(d,e){"primary"!==e&&c.push(e+":"+Zj(d,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=yoa(a,function(d,e){return"primary"===e?[Zj(a.children.primary,!1)]:[e+":"+Zj(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?
Yj(a)+"/"+b[0]:Yj(a)+"/("+b.join("//")+")"},Aoa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},ak=function(a){return Aoa(a).replace(/%3B/gi,";")},Xj=function(a){return Aoa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},zoa=function(a){return Object.keys(a).map(function(b){return";"+Xj(b)+"="+Xj(a[b])}).join("")},Boa=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return ak(c)+
"="+ak(e)}).join("&"):ak(c)+"="+ak(d)}).filter(function(c){return!!c});return b.length?"?"+b.join("&"):""},bk=function(a){return(a=a.match(Coa))?a[0]:""},Doa=function(a,b){if(a===b.value)return b;b=r(b.children);for(var c=b.next();!c.done;c=b.next())if(c=Doa(a,c.value))return c;return null},Eoa=function(a,b){if(a===b.value)return[b];for(var c=r(b.children),d=c.next();!d.done;d=c.next())if(d=Eoa(a,d.value),d.length)return d.unshift(b),d;return[]},ck=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=
c});return b},Foa=function(a,b){a=new dk("",new ek(new fk([],{},{},"",{},"primary",b,null,a.root,-1,{}),[]));b=new gk(new T.BehaviorSubject([new hk("",{})]),new T.BehaviorSubject({}),new T.BehaviorSubject({}),new T.BehaviorSubject(""),new T.BehaviorSubject({}),"primary",b,a.root);b.snapshot=a.root;return new ik(new ek(b,[]),a)},Hoa=function(a,b){a=a.pathFromRoot;var c=0;if("always"!==(void 0===b?"emptyOnly":b))for(c=a.length-1;1<=c;){b=a[c];var d=a[c-1];if(b.routeConfig&&""===b.routeConfig.path)c--;
else if(d.component)break;else c--}return Goa(a.slice(c))},Goa=function(a){return a.reduce(function(b,c){var d=Object.assign({},b.params,c.params),e=Object.assign({},b.data,c.data),f;b=Object.assign({},c.data,b.resolve,null==(f=c.routeConfig)?void 0:f.data,c._resolvedData);return{params:d,data:e,resolve:b}},{params:{},data:{},resolve:{}})},Ioa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Ioa(a,c)})},Joa=function(a){var b=0<a.children.length?" { "+a.children.map(Joa).join(", ")+
" } ":"";return""+a.value+b},Koa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Sj(b.queryParams,c.queryParams)||a.queryParams.next(c.queryParams);b.fragment!==c.fragment&&a.fragment.next(c.fragment);Sj(b.params,c.params)||a.params.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(!Sj(d[f],e[f])){d=!1;break a}d=!0}}d||a.url.next(c.url);Sj(b.data,c.data)||a.data.next(c.data)}else a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data)},
Loa=function(a,b){var c=Sj(a.params,b.params)&&xoa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Loa(a.parent,b.parent))},jk=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=Moa(a,b,c);return new ek(d,b)}if(a.shouldAttach()&&(d=a.retrieve(),null!==d))return d=d.route,d.value._futureSnapshot=b.value,d.children=b.children.map(function(e){return jk(a,e)}),d;d=Noa(b.value);b=b.children.map(function(e){return jk(a,e)});return new ek(d,
b)},Moa=function(a,b,c){return b.children.map(function(d){for(var e=r(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return jk(a,d,f);return jk(a,d)})},Noa=function(a){return new gk(new T.BehaviorSubject(a.url),new T.BehaviorSubject(a.params),new T.BehaviorSubject(a.queryParams),new T.BehaviorSubject(a.fragment),new T.BehaviorSubject(a.data),a.outlet,a.component,a)},kk=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},
lk=function(a){return"object"===typeof a&&null!=a&&a.outlets},Poa=function(a,b,c,d,e){var f={};d&&Tj(d,function(h,k){f[k]=Array.isArray(h)?h.map(function(q){return""+q}):""+h});if(a===b)return new mk(c,f,e);a=Ooa(a,b,c);return new mk(a,f,e)},Ooa=function(a,b,c){var d={};Tj(a.children,function(e,f){d[f]=e===b?c:Ooa(e,b,c)});return new nk(a.segments,d)},Roa=function(a){if("string"===typeof a[0]&&1===a.length&&"/"===a[0])return new Qoa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if("object"===typeof e&&
null!=e){if(e.outlets){var h={};Tj(e.outlets,function(k,q){h[q]="string"===typeof k?k.split("/"):k});return[].concat(v(d),[{outlets:h}])}if(e.segmentPath)return[].concat(v(d),[e.segmentPath])}return"string"!==typeof e?[].concat(v(d),[e]):0===f?(e.split("/").forEach(function(k,q){if(0!=q||"."!==k)0==q&&""===k?c=!0:".."===k?b++:""!=k&&d.push(k)}),d):[].concat(v(d),[e])},[]);return new Qoa(c,b,a)},Soa=function(a){if(lk(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Uoa=function(a,b,c){a||(a=
new nk([],{}));if(0===a.segments.length&&a.hasChildren())return ok(a,b,c);a:{var d=a;for(var e=0,f=b,h={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=h;break a}var k=d.segments[f],q=c[e];if(lk(q))break;q=""+q;var u=e<c.length-1?c[e+1]:null;if(0<f&&void 0===q)break;if(q&&u&&"object"===typeof u&&void 0===u.outlets){if(q!=k.path||!Sj(u,k.parameters)){d=h;break a}e+=2}else{u={};if(q!=k.path||!Sj(u,k.parameters)){d=h;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=
c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new nk(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new nk(a.segments.slice(d.pathIndex),a.children),ok(b,0,e)):d.match&&0===e.length?new nk(a.segments,{}):d.match&&!a.hasChildren()?Toa(a,b,c):d.match?ok(a,0,e):Toa(a,b,c)},ok=function(a,b,c){if(0===c.length)return new nk(a.segments,{});var d=Soa(c),e={};Tj(d,function(f,h){"string"===typeof f&&(f=[f]);null!==f&&(e[h]=Uoa(a.children[h],b,f))});Tj(a.children,function(f,
h){void 0===d[h]&&(e[h]=f)});return new nk(a.segments,e)},Toa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(lk(f))return a=Voa(f.outlets),new nk(d,a);if(0===e&&kk(c[0]))d.push(new hk(a.segments[b].path,Woa(c[0]))),e++;else{f=lk(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&kk(h)?(d.push(new hk(f,Woa(h))),e+=2):(d.push(new hk(f,{})),e++)}}return new nk(d,{})},Voa=function(a){var b={};Tj(a,function(c,d){"string"===typeof c&&(c=[c]);null!==c&&(b[d]=Toa(new nk([],
{}),0,c))});return b},Woa=function(a){var b={};Tj(a,function(c,d){return b[d]=""+c});return b},Xoa=function(a,b){a.providers&&!a._injector&&(a._injector=Gea(a.providers,b,"Route: "+a.path));var c;return null!=(c=a._injector)?c:b},pk=function(a){var b=a.children&&a.children.map(pk);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||"primary"===a.outlet||(a.component=qk);return a},rk=function(a){return a.outlet||"primary"},Yoa=function(a,
b){var c=a.filter(function(d){return rk(d)===b});c.push.apply(c,v(a.filter(function(d){return rk(d)!==b})));return c},Zoa=function(a){if(!a)return null;var b;if(null==(b=a.routeConfig)?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=a.parent){b=a.routeConfig;var c=void 0;if(null==(c=b)?0:c._loadedInjector)return b._loadedInjector;c=void 0;if(null==(c=b)?0:c._injector)return b._injector}return null},sk=function(a){return"function"===typeof a},tk=function(a){return a instanceof mk},
vk=function(){return eg(function(a){return(0,T.combineLatest)(a.map(function(b){return b.pipe(Tf(),dg(uk))})).pipe(Yf(function(b,c){var d=!1;return c.reduce(function(e,f,h){if(e!==uk)return e;f===uk&&(d=!0);if(!d){if(!1===f)return f;if(h===c.length-1||tk(f))return f}return e},b)},uk),uf(function(b){return b!==uk}),R(function(b){return tk(b)?b:!0===b}),Tf())})},wk=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},$oa):{matched:!0,consumedSegments:[],
remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||noa)(c,a,b);if(!a)return Object.assign({},$oa);var d={};Tj(a.posParams,function(f,h){d[h]=f.path});b=0<a.consumed.length?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var e;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:b,positionalParamSegments:null!=(e=a.posParams)?e:{}}},yk=function(a,b,c,d,e){e=void 0===e?"corrected":e;if(0<c.length&&apa(a,c,d)){var f=
new nk(c,a.children);c={};c.primary=f;f._sourceSegment=a;f._segmentIndexShift=b.length;f=r(d);for(var h=f.next();!h.done;h=f.next())h=h.value,""===h.path&&"primary"!==rk(h)&&(e=new nk([],{}),e._sourceSegment=a,e._segmentIndexShift=b.length,c[rk(h)]=e);c=new nk(b,c);c._sourceSegment=a;c._segmentIndexShift=b.length;return{segmentGroup:c,slicedSegments:[]}}if(0===c.length&&bpa(a,c,d)){f=a.segments;h=a.children;var k={};d=r(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,xk(a,c,q)&&!h[rk(q)]){var u=
new nk([],{});u._sourceSegment=a;u._segmentIndexShift="legacy"===e?a.segments.length:b.length;k[rk(q)]=u}h=Object.assign({},h,k);f=new nk(f,h);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}}f=new nk(a.segments,a.children);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}},apa=function(a,b,c){return c.some(function(d){return xk(a,b,d)&&"primary"!==rk(d)})},bpa=function(a,b,c){return c.some(function(d){return xk(a,b,d)})},
xk=function(a,b,c){return(a.hasChildren()||0<b.length)&&"full"===c.pathMatch?!1:""===c.path},cpa=function(a,b,c,d){return rk(a)===d||"primary"!==d&&xk(b,c,a)?"**"===a.path?!0:wk(b,a,c).matched:!1},Ak=function(a){return(0,T.throwError)(new zk(a))},dpa=function(a){for(var b={},c=r(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=dpa(a.children[d]);if(0<e.segments.length||e.hasChildren())b[d]=e}a=new nk(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,
a=new nk(a.segments.concat(b.segments),b.children));return a},epa=function(a,b,c,d){return eg(function(e){return(new Bk(a,b,c,e.extractedUrl,d)).apply().pipe(R(function(f){return Object.assign({},e,{urlAfterRedirects:f})}))})},Ck=function(a,b,c){var d;return(null!=(d=Zoa(b))?d:c).get(a)},Dk=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=ck(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),u=e;u=void 0===u?{canDeactivateChecks:[],
canActivateChecks:[]}:u;var y=h.value,D=k?k.value:null,I=c?c.getContext(h.value.outlet):null;if(D&&y.routeConfig===D.routeConfig){var N=fpa(D,y,y.routeConfig.runGuardsAndResolvers);N?u.canActivateChecks.push(new gpa(q)):(y.data=D.data,y._resolvedData=D._resolvedData);y.component?Dk(h,k,I?I.children:null,q,u):Dk(h,k,c,q,u);N&&I&&I.outlet&&I.outlet.isActivated&&u.canDeactivateChecks.push(new Ek(I.outlet.component,D))}else D&&Fk(k,I,u),u.canActivateChecks.push(new gpa(q)),y.component?Dk(h,null,I?I.children:
null,q,u):Dk(h,null,c,q,u);delete f[h.value.outlet]});Tj(f,function(h,k){return Fk(h,c.getContext(k),e)});return e},fpa=function(a,b,c){if("function"===typeof c)return c(a,b);switch(c){case "pathParamsChange":return!Vj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Vj(a.url,b.url)||!Sj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Loa(a,b)||!Sj(a.queryParams,b.queryParams);default:return!Loa(a,b)}},Fk=function(a,b,c){var d=ck(a),e=a.value;Tj(d,
function(f,h){e.component?b?Fk(f,b.children.getContext(h),c):Fk(f,null,c):Fk(f,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new Ek(b.outlet.component,e)):c.canDeactivateChecks.push(new Ek(null,e)):c.canDeactivateChecks.push(new Ek(null,e))},jpa=function(a,b){return nf(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,h=f.canActivateChecks;f=f.canDeactivateChecks;return 0===f.length&&0===h.length?(0,T.of)(Object.assign({},c,{guardsResult:!0})):hpa(f,
d,e,a).pipe(nf(function(k){return k&&"boolean"===typeof k?ipa(d,h,a,b):(0,T.of)(k)}),R(function(k){return Object.assign({},c,{guardsResult:k})}))})},hpa=function(a,b,c,d){return(0,T.from)(a).pipe(nf(function(e){return kpa(e.component,e.route,c,b,d)}),Wf(function(e){return!0!==e},!0))},ipa=function(a,b,c,d){return(0,T.from)(b).pipe(nf(function(e){var f=T.concat;var h=e.route.parent;null!==h&&d&&d(new lpa(h));h=(0,T.of)(!0);var k=e.route;null!==k&&d&&d(new Gk(k));k=(0,T.of)(!0);return f.call(T,h,k,
mpa(a,e.path,c),npa(a,e.route,c))},1),Wf(function(e){return!0!==e},!0))},npa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||0===d.length)return(0,T.of)(!0);d=d.map(function(e){return(0,T.defer)(function(){var f=Ck(e,b,c);if(f&&sk(f.canActivate))f=Uj(f.canActivate(b,a));else if(sk(f))f=Uj(f(b,a));else throw Error("Ac");return f.pipe(Wf())})});return(0,T.of)(d).pipe(vk())},mpa=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&&0!==f.length?{node:e,guards:f}:null}).filter(function(e){return null!==e}).map(function(e){return(0,T.defer)(function(){var f=e.guards.map(function(h){if((h=Ck(h,e.node,c))&&sk(h.canActivateChild))h=Uj(h.canActivateChild(d,a));else if(sk(h))h=Uj(h(d,a));else throw Error("Bc");return h.pipe(Wf())});return(0,T.of)(f).pipe(vk())})});return(0,T.of)(b).pipe(vk())},kpa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,T.of)(!0);
f=f.map(function(h){if((h=Ck(h,b,e))&&sk(h.canDeactivate))h=Uj(h.canDeactivate(a,b,c,d));else if(sk(h))h=Uj(h(a,b,c,d));else throw Error("Cc");return h.pipe(Wf())});return(0,T.of)(f).pipe(vk())},opa=function(a){return new T.Observable(function(b){return b.error(a)})},rpa=function(a,b,c,d,e,f){try{var h=(new ppa(a,b,c,d,void 0===e?"emptyOnly":e,void 0===f?"legacy":f)).recognize();return null===h?opa(new qpa):(0,T.of)(h)}catch(k){return opa(k)}},spa=function(a){a.sort(function(b,c){return"primary"===
b.value.outlet?-1:"primary"===c.value.outlet?1:b.value.outlet.localeCompare(c.value.outlet)})},tpa=function(a){return(a=a.value.routeConfig)&&""===a.path&&void 0===a.redirectTo},upa=function(a){var b=[],c=new Set,d={};a=r(a);for(var e=a.next();!e.done;d={$jscomp$loop$prop$node$1662:d.$jscomp$loop$prop$node$1662},e=a.next())d.$jscomp$loop$prop$node$1662=e.value,tpa(d.$jscomp$loop$prop$node$1662)?(e=b.find(function(f){return function(h){return f.$jscomp$loop$prop$node$1662.value.routeConfig===h.value.routeConfig}}(d)),
void 0!==e?(e.children.push.apply(e.children,v(d.$jscomp$loop$prop$node$1662.children)),c.add(e)):b.push(d.$jscomp$loop$prop$node$1662)):b.push(d.$jscomp$loop$prop$node$1662);d=r(c);for(a=d.next();!a.done;a=d.next())a=a.value,e=upa(a.children),b.push(new ek(a.value,e));return b.filter(function(f){return!c.has(f)})},vpa=function(a){for(;a._sourceSegment;)a=a._sourceSegment;return a},wpa=function(a){for(var b,c=null!=(b=a._segmentIndexShift)?b:0;a._sourceSegment;)a=a._sourceSegment,b=void 0,c+=null!=
(b=a._segmentIndexShift)?b:0;return c-1},xpa=function(a,b,c,d,e){return nf(function(f){return rpa(a,b,f.urlAfterRedirects,c(f.urlAfterRedirects),d,e).pipe(R(function(h){return Object.assign({},f,{targetSnapshot:h})}))})},zpa=function(a,b){return nf(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,T.of)(c);var f=0;return(0,T.from)(e).pipe(nf(function(h){return ypa(h.route,d,a,b)},1),gg(function(){return f++}),oha(),nf(function(){return f===e.length?(0,T.of)(c):
T.EMPTY}))})},ypa=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;void 0!==(null==e?void 0:e.title)&&"string"!==typeof e.title&&null!==e.title&&(f[Apa]=e.title);return Bpa(f,a,b,d).pipe(R(function(h){a._resolvedData=h;a.data=Hoa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[Apa]=e.title);return null}))},Bpa=function(a,b,c,d){var e=Cpa(a);if(0===e.length)return(0,T.of)({});var f={};return(0,T.from)(e).pipe(nf(function(h){return Dpa(a[h],b,c,d).pipe(Wf(),gg(function(k){f[h]=
k}))}),oha(),Xf(f),Pf(function(h){return h instanceof T.EmptyError?T.EMPTY:(0,T.throwError)(h)}))},Cpa=function(a){return[].concat(v(Object.keys(a)),v(Object.getOwnPropertySymbols(a)))},Dpa=function(a,b,c,d){a=Ck(a,b,d);return a.resolve?Uj(a.resolve(b,c)):Uj(a(b,c))},Hk=function(a){return eg(function(b){var c=a(b);return c?(0,T.from)(c).pipe(R(function(){return b})):(0,T.of)(b)})},Epa=function(a){throw a;},Fpa=function(a,b){return b.parse("/")},Gpa=function(){return(0,T.of)(null)},Hpa=function(a,
b,c,d,e,f,h,k,q,u,y){h=void 0===h?{}:h;a=new Ik(null,a,b,c,d,e,Array.prototype.concat.apply([],f));u&&(a.urlHandlingStrategy=u);y&&(a.routeReuseStrategy=y);a.titleStrategy=null!=q?q:k;h.errorHandler&&(a.errorHandler=h.errorHandler);h.malformedUriErrorHandler&&(a.malformedUriErrorHandler=h.malformedUriErrorHandler);h.onSameUrlNavigation&&(a.onSameUrlNavigation=h.onSameUrlNavigation);h.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=h.paramsInheritanceStrategy);h.relativeLinkResolution&&(a.relativeLinkResolution=
h.relativeLinkResolution);h.urlUpdateStrategy&&(a.urlUpdateStrategy=h.urlUpdateStrategy);h.canceledNavigationResolution&&(a.canceledNavigationResolution=h.canceledNavigationResolution);return a},Ipa=function(a){return a.routerState.root},Jpa=function(a){var b=200,c=500;b=void 0===b?200:b;c=void 0===c?500:c;var d=a.length;return(0,T.concat)((0,T.of)(b),(0,T.timer)(c,c).pipe(Yf(function(e){return e+b},b),Cha(function(e){return e<d})),(0,T.of)(a.length)).pipe(Sf()).pipe(R(function(e){return a.slice(0,
Math.min(e,d))}))},Jk=function(a,b){b=new T.BehaviorSubject(b);a.subscribe(b);return b},Kk=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Lk=function(){return Sf(function(a,b){return Hi(a,b)})},Kpa=function(){return function(a){return a.pipe(R(function(b){return{event:b,timestamp:Date.now()}}),Vga(a.pipe(Qf(1E4,T.asapScheduler))))}},Lpa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},Mpa=function(a,b){a&1&&(F(0,"tr")(1,"td",5),O(2),G(),F(3,"td"),O(4,
":"),G(),F(5,"td",6),O(6),G()());a&2&&(a=b.$implicit,B(2),He(a.displayAs),B(4),He(a.description))},Npa=function(a,b){a&1&&(F(0,"thead")(1,"tr"),H(2,"th",3),F(3,"th",4),O(4),G()(),M(5,Mpa,7,2,"tr",1),G());a&2&&(a=b.$implicit,B(4),He(a.title),B(1),E("ngForOf",a.hotkeys))},Mk=function(a){return void 0!==a.user},Nk=function(a){return void 0!==a.group},Opa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return Pk(a.replace(/_/g,
" ").toLowerCase())}},Qk=function(a){return new Ni(a.year,a.month-1,a.day)},Rk=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Ppa=function(a){return!(!a||null==a.day||null==a.month||null==a.year)},Rpa=function(a){if(a)return{accessLevel:Qpa[a.getAccessLevel()]}},Tpa=function(a){a=Spa[a.accessLevel];var b=new Sk;b.setAccessLevel(a);return b},Tk=function(a){return null==console?!1:"function"===typeof console[a]},Uk=function(){Tk("debug")&&console.debug.apply(console,
tc.apply(0,arguments))},Upa=function(){Tk("info")&&console.info.apply(console,tc.apply(0,arguments))},Vpa=function(){Tk("log")&&console.log.apply(console,tc.apply(0,arguments))},Vk=function(){Tk("warn")&&console.warn.apply(console,tc.apply(0,arguments))},Wpa=function(){Tk("error")&&console.error.apply(console,tc.apply(0,arguments))},Xpa=function(a){if(null!=a){var b=a.toObject();a=b.year;var c=b.day;b=b.month;if(null==a)Vk("No year. dateToJs");else if(null==c)Vk("No day. dateToJs");else if(null==
b)Vk("No month. dateToJs");else return{year:a,day:c,month:b}}},Ypa=function(a){var b=new Wk;Xk(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},Yk=function(a){if(null!=a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},Zk=function(a){var b=new vj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Zpa=function(a){if(null!=a)return Number(a.toDate())},$k=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},al=function(a){if(null!=a)return String(a)},
bl=function(a){return null==a?void 0:a},cl=function(a){return null==a?null:a},dl=function(a){return function(b){return null==b?a:b}},el=function(a){return null!=a},fl=function(a,b){return null==a?b[0]:b[a]},gl=function(a,b){if(null!=a)return b[a]},hl=function(a){return String(a)},il=function(a){a=$k(a);return void 0===a?NaN:a},aqa=function(a){if(null!=a)return a=a.toObject(),{customFieldId:bl(a.customFieldId),standardField:fl(a.standardField,$pa)}},cqa=function(a){var b=new jl;a.customFieldId?b.setCustomFieldId(a.customFieldId):
a.standardField&&b.setStandardField(bqa[a.standardField]);return b},eqa=function(a){if(a&&(a=dqa(a)))return kl(a)},dqa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.description,e=b.required,f=b.enabledOnIssues,h=$k(b.customFieldId),k=$k(b.componentId),q=bl(b.allowedValueList);a=fqa(a.getTypedDefaultValue());if(null==c)Vk("No name. customFieldToJs");else if(null==h)Vk("No customFieldId. customFieldToJs");else if(null==b.type)Vk("No type. customFieldToJs");else{var u=b.type,y=dl(0)(b.stateOnIssues);
b=dl(0)(b.fieldSignificance);return{name:c,description:bl(d),required:bl(e),enabledOnIssues:!!f,type:gqa[u],customFieldId:h,componentId:k,allowedValue:q,stateOnIssues:hqa[y],fieldSignificance:iqa[b],typedDefaultValue:a}}}},fqa=function(a){if(null!=a){var b=a.toObject(),c=$k(b.customFieldId),d=bl(b.displayValuesList),e;var f=(e=null==(f=b.repeatedTextValue)?void 0:f.valuesList)?{values:e}:void 0;var h=(e=null==(h=b.repeatedEnumValue)?void 0:h.valuesList)?{values:e}:void 0;var k=(e=null==(k=b.repeatedNumericValue)?
void 0:k.valuesList)?{values:e}:void 0;var q,u,y;e=(e=null==(q=a.getRepeatedDateValue())?void 0:null==(u=q.getValuesList())?void 0:null==(y=u.map(Xpa))?void 0:y.filter(el))?{values:e}:void 0;a=Xpa(a.getDateValue());if(null==c)Vk("No customFieldId. customFieldValueToJs");else return{customFieldId:c,displayValues:d,textValue:bl(b.textValue),enumValue:bl(b.enumValue),numericValue:bl(b.numericValue),dateValue:a,repeatedTextValue:f,repeatedEnumValue:h,repeatedNumericValue:k,repeatedDateValue:e}}},jqa=
function(a){var b=new ll;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));a.displayValues&&ml(b,12,a.displayValues);if(void 0!==a.textValue)b.setTextValue(a.textValue);else if(void 0!==a.enumValue)b.setEnumValue(a.enumValue);else if(void 0!==a.numericValue)b.setNumericValue(a.numericValue);else if(void 0!==a.dateValue)b.setDateValue(Ypa(a.dateValue));else if(void 0!==a.repeatedTextValue){var c=new nl;c.setValuesList(a.repeatedTextValue.values);b.setRepeatedTextValue(c)}else void 0!==a.repeatedEnumValue?
(c=new nl,c.setValuesList(a.repeatedEnumValue.values),b.setRepeatedEnumValue(c)):void 0!==a.repeatedNumericValue?(c=new ol,c.setValuesList(a.repeatedNumericValue.values),b.setRepeatedNumericValue(c)):void 0!==a.repeatedDateValue&&(c=new pl,c.setValuesList(a.repeatedDateValue.values.map(Ypa)),b.setRepeatedDateValue(c));return b},kqa=function(a){return eqa(a.getCustomField())},nqa=function(a){var b=new ql;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));
b.setType(lqa[a.type]);b.setRequired(a.required);b.setName(a.name);b.setDescription(a.description);a.typedDefaultValue&&b.setTypedDefaultValue(jqa(a.typedDefaultValue));a.allowedValue&&ml(b,8,a.allowedValue);b.setFieldSignificance(mqa[a.fieldSignificance]);b.setStateOnIssues(a.stateOnIssues);b.setEnabledOnIssues(a.enabledOnIssues);return b},wl=function(a){var b=new rl;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&&oqa(b,pqa(new sl,a.numericSpec.multiplier));if(a.enumSpec){var c;qqa(b,(new tl).setOptionsList((null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new ul).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}vl(b,6,a)}return b},rqa=function(a){var b=new xl;a.specId&&Xk(b,1,a.specId);a.estimate&&yl(b,2,a.estimate);a.averageDays&&pb(b,3,a.averageDays,0);a.totalOpen&&pb(b,4,a.totalOpen,
0);a.totalComplete&&pb(b,5,a.totalComplete,0);return b},sqa=function(a){var b=a.getInherit(),c=a.getId(),d=a.getName();a:switch(Y(a,6,0)){case 2:var e="MAX";break a;case 1:e="SUM";break a;default:e="AGGREGATION_TYPE_UNSPECIFIED"}b={inherit:b,id:c,name:d,aggregationType:e,customFieldId:a.getCustomFieldId()};if(zl(a,4,Al)){var f=Bl(a,sl,4,Al);f&&(b.numericSpec={multiplier:Cl(f,1)})}else if(zl(a,5,Al)&&(a=Dl(a),b.enumSpec={options:[]},a&&0<(null==a?void 0:null==(f=a.getOptionsList())?void 0:f.length)))for(f=
r(a.getOptionsList()),a=f.next();!a.done;a=f.next())a=a.value,d=c=void 0,null==(c=b.enumSpec)||null==(d=c.options)||d.push({label:a.getLabel(),value:a.getValue()});return b},El=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return ph(a,"Unexpected pii severity")}},Fl=function(a){switch(a){case "PII":return 2;case "SPII":return 3;case "NONE_DETECTED":return 1;case "PII_SEVERITY_UNSPECIFIED":return 0;default:return ph(a,"Unexpected pii severity")}},
Gl=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},Hl=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},tqa=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},uqa=function(a){var b=gj(a,1)?nj(a,1):void 0,c=a.hasResourcePath()?a.getResourcePath():void 0,d=El(a.getSeverity()),e=a.getJudgementReason();a=V(a,5);return{contentJudgementId:b,resourcePath:c,severity:d,
judgementReason:e,contentJudge:a}},vqa=function(a){var b=new Il;b.setJudgementReason(a.judgementReason);b.setSeverity(Fl(a.severity));return b},xqa=function(a){var b=new Jl;l(b,1,wqa[a.retentionSelection]);null!==a.retentionPeriodDays&&l(b,2,a.retentionPeriodDays);l(b,3,wqa[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&l(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&l(b,5,a.spiiRetentionPeriodDays);return b},Kl=function(a){if(null!=a){var b=cl(Yk(a.getRetentionPeriod()));
a=cl(Yk(a.getScheduledDeletionTime()));return{retentionPeriod:b,scheduledDeletionTime:a}}},Ml=function(a){if(null!=a){a:{a=m(a,Ll,1);if(null!=a)if(a=a.toObject(),null==a.severity)Vk("No severity. piiVerdictToJs");else{a={severity:yqa[a.severity]};break a}a=void 0}return{piiVerdict:a}}},zqa=function(a){if(null!=a)return{startTime:Yk(a.getStartTime()),endTime:Yk(a.getEndTime()),targetTime:Yk(a.getTargetTime())}},Aqa=function(a){var b=new Nl;a.startTime&&b.setStartTime(Zk(a.startTime));a.endTime&&b.setEndTime(Zk(a.endTime));
a.targetTime&&b.setTargetTime(Zk(a.targetTime));return b},Cqa=function(a){var b=new Ol;b.setInherit(a.inherit);b.setSource(Bqa[a.source]);b.setId(a.id);b.setComment(a.comment);l(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},Dqa=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:Y(b,2,0))},Eqa=function(a){var b;return 1===(null==(b=m(a,Pl,1))?void 0:b.getEffectiveSloEditPolicy())},Fqa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||
"UNSPECIFIED"===a},Rl=function(a){return a?a.map(Ql):[]},Gqa=function(a){a=Rl(a);a.sort();return a},Ql=function(a){return a&&a.getUserGaiaStatus?Hqa(Sl(a)):Hqa(a)},Hqa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":Fqa(a)?Iqa(a)||"[No Data]":"[No Data]":""},Tl=function(a){return a&&a.getUserGaiaStatus?Iqa(Sl(a)):Iqa(a)},Iqa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Sl=function(a){if(null!=a){var b=
{},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=a.getObfuscatedEmailAddress())b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=Jqa[c];(c=a.getAliasesList())&&0<c.length&&(b.aliases=c);return b}},Ul=function(a){if(!a)return null;var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Sl(c.value))&&b.push(c);return b},Wl=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Vl;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);
d&&e.setAliasesList(d);a&&e.setUserGaiaStatus(Kqa[a]);return e},Xl=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},Lqa=function(a){if(null!=a)return{tag:a.getTag(),text:V(a,2)}},Rqa=function(a){if(null!=a){var b=a.toObject(),c,d,e,f,h,k,q,u,y,D;return{title:b.title||"",comment:cl(b.comment),snapshotNumber:cl(b.snapshotNumber),version:cl(b.version),createdTimeMicros:cl(b.createdTimeMicros),isArchived:!!b.isArchived,inProd:!!b.inProd,isDeleted:cl(b.isDeleted),changelist:cl(b.changelistList),
postmortems:cl(b.postmortemsList),foundInVersion:cl(b.foundInVersionList),targetedToVersion:cl(b.targetedToVersionList),verifiedInVersion:cl(b.verifiedInVersionList),componentId:cl($k(b.componentId)),duplicateOfIssueId:cl($k(b.duplicateOfIssueId)),attachmentId:cl(null==(c=b.attachmentIdList)?void 0:c.map($k).filter(el)),blockedByIssueId:cl(null==(d=b.blockedByIssueIdList)?void 0:d.map($k).filter(el)),blockingIssueId:cl(null==(e=b.blockingIssueIdList)?void 0:e.map($k).filter(el)),hotlistId:cl(null==
(f=b.hotlistIdList)?void 0:f.map($k).filter(el)),duplicateIssueId:cl(null==(h=b.duplicateIssueIdList)?void 0:h.map($k).filter(el)),sloSnoozeUntil:a.getSloSnoozeUntil(),authorUser:cl(Sl(m(a,Vl,36))),reporterUser:cl(Sl(m(a,Vl,37))),assigneeUser:cl(Sl(m(a,Vl,38))),verifierUser:cl(Sl(m(a,Vl,39))),ccUsers:cl(Ul(tb(a,Vl,40))),commentContentVerdict:Ml(a.getCommentContentVerdict()),customField:tb(a,ll,24).map(fqa).filter(el),retention:fl(b.retention,Zl),significanceOverride:fl(b.significanceOverride,iqa),
deletionReason:fl(b.deletionReason,Mqa),type:null!=(k=gl(b.type,Nqa))?k:null,priority:null!=(q=gl(b.priority,Oqa))?q:null,severity:null!=(u=gl(b.severity,Pqa))?u:null,status:null!=(y=gl(b.status,Qqa))?y:null,effort:null!=(D=a.getEffort())?D:void 0}}},Yqa=function(a){var b=new $l;if(a.authorUser){var c=Wl(a.authorUser);Db(b,36,c)}a.createdTimeMicros&&b.setCreatedTimeMicros(a.createdTimeMicros);a.componentId&&b.setComponentId(String(a.componentId));a.version&&b.setVersion(a.version);a.type&&b.setType(Sqa[a.type]);
a.status&&b.setStatus(am[a.status]);a.priority&&b.setPriority(Tqa[a.priority]);a.severity&&b.setSeverity(Uqa[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Wl(a.reporterUser),Db(b,37,c));a.assigneeUser&&(c=Wl(a.assigneeUser),Db(b,38,c));a.verifierUser&&(c=Wl(a.verifierUser),Db(b,39,c));a.ccUsers&&(c=a.ccUsers.map(Wl),Cb(b,40,c));a.attachmentId&&(c=a.attachmentId.map(hl),ml(b,14,c));a.duplicateOfIssueId&&l(b,15,String(a.duplicateOfIssueId));a.blockedByIssueId&&(c=a.blockedByIssueId.map(hl),
ml(b,16,c));a.blockingIssueId&&(c=a.blockingIssueId.map(hl),ml(b,17,c));a.changelist&&ml(b,18,a.changelist);a.postmortems&&b.setPostmortemsList(a.postmortems);a.foundInVersion&&ml(b,19,a.foundInVersion);a.targetedToVersion&&ml(b,20,a.targetedToVersion);a.verifiedInVersion&&ml(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(hl));a.customField&&(c=a.customField.map(jqa),Cb(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode(bm[a.formattingMode]);
if(a.commentContentVerdict){c=b.setCommentContentVerdict;var d=a.commentContentVerdict,e=new cm;if(d.piiVerdict){d=d.piiVerdict;var f=new Ll;f.setSeverity(Vqa[d.severity]);Db(e,1,f)}c.call(b,e)}a.snapshotNumber&&l(b,26,a.snapshotNumber);a.retention&&b.setRetention(Wqa[a.retention]);a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason(Xqa[a.deletionReason]);a.significanceOverride&&b.setSignificanceOverride(mqa[a.significanceOverride]);a.duplicateIssueId&&(c=a.duplicateIssueId.map(hl),
ml(b,30,c));void 0!==a.inProd&&b.setInProd(a.inProd);void 0!==a.isArchived&&b.setIsArchived(a.isArchived);a.sloSnoozeUntil&&b.setSloSnoozeUntil(a.sloSnoozeUntil);a.effort&&b.setEffort(a.effort);return b},Zqa=function(a){var b={targetIssueId:String(hj(a,1))};if(a=hj(a,2))b.afterIssueId=al(a);return b},$qa=function(a){var b=new dm;b.setIssueId(String(a));return b},bra=function(a){var b=new ara;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},dra=function(a){var b=new cra;
b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},era=function(a){return{issueId:Number(a.getIssueId()),status:Qqa[a.getStatus()],title:a.getTitle()}},hra=function(a){var b=new em;fra(b,a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(gra[a.actionType]);a.customFieldValue&&b.setCustomFieldValue(jqa(a.customFieldValue));return b},ira=function(a){var b=new fm;b.setIssueId(String(a.issueId));b.setActionsList(a.actions.map(hra));return b},lra=function(a){var b=
new gm;b.setAddHotlistIdsList(a.addHotlistIds.map(String));b.setRemoveHotlistIdsList(a.removeHotlistIds.map(String));var c=a.hotlistIssue;a=new hm;a.setIssueId(String(c.issueId));c.position&&a.setPosition(c.position);var d=a.setIssue;c=c.issue;var e=new im;e.setIssueId(String(c.issueId));var f,h=(null!=(f=c.snapshot)?f:[]).map(Yqa);Cb(e,2,h);if(c.userData){f=e.setUserData;h=c.userData;var k=new jm;h.voted&&k.setVoted(h.voted);h.starred&&k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(jra[h.notificationSubscription]);
void 0!==h.lastViewedTimeMicros&&l(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(c.aggregatedData){h=c.aggregatedData;f=new km;f.setVoteCount(h.voteCount);f.setCreatedTimeMicros(h.createdTimeMicros);l(f,4,h.resolvedTimeMicros);l(f,5,h.verifiedTimeMicros);f.setModifiedTimeMicros(h.modifiedTimeMicros);f.setSloId(String(h.sloId));f.setTeamId(String(h.teamId));if(h.retentionState){k=f.setRetentionState;var q=h.retentionState,u=new lm;if(q.retentionPeriod){var y=u.setRetentionPeriod,D=q.retentionPeriod,I=
new mm;I.setSeconds(D.seconds);I.setNanos(D.nanos);y.call(u,I)}q.scheduledDeletionTime&&u.setScheduledDeletionTime(Zk(q.scheduledDeletionTime));k.call(f,u)}h.sloStatus&&(k=f.setSloStatus,h=h.sloStatus,q=new nm,h.assignmentBounds&&q.setAssignmentBounds(Aqa(h.assignmentBounds)),h.responseBounds&&q.setResponseBounds(Aqa(h.responseBounds)),h.closureBounds&&q.setClosureBounds(Aqa(h.closureBounds)),k.call(f,q));Db(e,4,f)}c.accessLimit&&e.setAccessLimit(Tpa(c.accessLimit));var N;e.setVisibleFieldsList((null!=
(N=c.visibleFields)?N:[]).map(cqa));l(e,7,c.majorModifiedTimeMicros);e.setParentIssueIdsList(c.parentIssueIds);if(c.ancestors)for(N=e.getAncestorsMap(),f=r(c.ancestors.entries()),h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=N,u=q.set,y=new om,y.setSourceIssueIdsList(k.sourceIssueIds),u.call(q,h,y);e.setChildIssueCount(c.childIssueCount);e.setIsArchived(c.isArchived);d.call(a,e);kra(b,a);return b},mra=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?
b:[]).map(era),numTotalResults:a.getNumTotalResults()}},ora=function(a){var b=new pm;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);ml(b,2,c);b.setRelation(nra[a.relation]);b.setActionType(gra[a.actionType]);a.commentDisplayOverride&&b.setCommentDisplayOverride(bm[a.commentDisplayOverride]);return b},qra=function(a){var b=new pra;b.setIssueId(String(a.issueId));b.setRetention(Wqa[a.retention]);a.significanceOverride&&b.setSignificanceOverride(mqa[a.significanceOverride]);a.commentDisplayOverride&&
b.setCommentDisplayOverride(bm[a.commentDisplayOverride]);return b},rra=function(a){return{issueId:Number(a.getIssueId())}},sra=function(a){return{teamId:a.getTeamId(),score:Cl(a,2)}},tra=function(a){var b=new qm;b.setTeamId(a.teamId);pb(b,2,a.score,0);return b},ura=function(a){var b=new rm;b.setInherit(a.inherit);b.setId(String(a.id));return b},tm=function(a){if(a.hasRetentionSettings()){var b=a.getRetentionSettings();b={retentionSelection:vra[Y(b,1,0)],retentionPeriodDays:hj(b,2),piiRetentionSelection:vra[Y(b,
3,0)],piiRetentionPeriodDays:hj(b,4),spiiRetentionPeriodDays:hj(b,5)}}else b=void 0;if(oj(a,10)){var c=m(a,sm,10),d,e;var f=(null!=(d=lb(c,1))?d:[]).map(il);d=lb(c,2);var h=tb(c,ql,4);if(h){c=[];h=r(h);for(var k=h.next();!k.done;k=h.next())(k=eqa(k.value))&&c.push(k)}else c=void 0;f={componentPathId:f,componentPathName:d,allCustomField:null!=(e=c)?e:[]}}else f=void 0;e=f;a.hasSlo()?(f=a.getSlo(),f={inherit:f.getInherit(),source:wra[f.getSource()],id:f.getId(),sourceComponentId:nj(f,6),sourceTeamId:f.getSourceTeamId(),
comment:f.getComment()}):f=void 0;d=oj(a,24)?sqa(a.getEffortSpec()):void 0;a.hasTeam()?(c=a.getTeam(),c={inherit:c.getInherit(),id:c.getId()}):c=void 0;var q,u;h=il(a.getComponentId());k=il(nj(a,2));var y=a.getName(),D=a.getDescription(),I=a.getArchived(),N=(null!=(q=lb(a,7))?q:[]).map(il);q=Rpa(a.getAccessLimit());var L=V(a,13),S=W(a,14);var X=1===Y(a,15,0)?"ENABLED":"DISABLED";return{componentId:h,parentComponentId:k,name:y,description:D,archived:I,customFieldId:N,componentPathInfo:e,accessLimit:q,
emailAlias:L,userHasEditAccess:S,commentEditState:X,slo:f,bugscopeSloId:nj(a,20),retentionSettings:b,fieldOrdering:xra[Y(a,23,0)],effortSpec:d,team:c,teamSuggestions:(null!=(u=a.getTeamSuggestionsList())?u:[]).map(sra)}},yra=function(a){var b=new um;l(b,2,String(a.parentComponentId));b.setName(a.name);b.setDescription(a.description);a.commentEditState&&b.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.retentionSettings&&b.setRetentionSettings(xqa(a.retentionSettings));return b},zra=function(a){var b;
return(null!=(b=tb(a,um,1))?b:[]).map(tm)},Ara=function(a){return{warningHeader:V(a,1),warning:V(a,2),isAllowed:W(a,3),isExternalMove:W(a,4)}},Bra=function(a){return{templateId:a.getTemplateId(),componentId:il(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),snapshot:Rqa(a.getSnapshot())}},Cra=function(a){var b=new vm;b.setTemplateId(a.templateId);b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);
b.setSnapshot(Yqa(a.snapshot));return b},Dra=function(a){var b={},c=bj(a,2,ql).entries();c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;(e=eqa(e))&&(b[il(d)]=e)}return{snapshot:Rqa(a.getSnapshot()),customFieldMap:b}},Era=function(a){a=Ii(a);a.componentPathInfo&&(a.componentPathInfo.allCustomField=null);return a},wm=function(a){var b=Ii(a);b.componentPathInfo&&a.componentPathInfo&&(b.componentPathInfo.allCustomField=(a.componentPathInfo.allCustomField||
[]).map(function(c){return kl(c)}));a.slo&&(b.slo.id=String(a.slo.id),b.slo.sourceComponentId=String(a.slo.sourceComponentId),b.slo.sourceTeamId=String(a.slo.sourceTeamId));if(a.bugscopeSloId||0==a.bugscopeSloId)b.bugscopeSloId=String(a.bugscopeSloId);a.team&&(b.team.id=String(a.team.id));return b},Fra=function(a){var b;return(null!=(b=tb(a,um,1))?b:[]).map(tm)},xm=function(a){return null==a||null==a.componentId?!1:!0},ym=function(a){if(xm(a))return a;Vk("This object doesn't appear to be a 'Component'",
a)},Gra=function(a){var b=ym(a);if(null==b)throw Error("Fc`"+JSON.stringify(a,null,2));return b},Hra=function(a){var b,c=Object.fromEntries(Object.entries(null!=(b=a.params)?b:{}).filter(function(e){e=r(e);e.next();return null!=e.next().value}));b=new zm({fromObject:c});var d;return new Am(a.method,a.url,null!=(d=a.data)?d:null,{params:b,headers:new Bm(a.headers)})},Ira=function(a){return function(b){return void 0===b?Object.fromEntries(a.keys().map(function(c){return[c,a.get(c)]})):a.get(b)}},Cm=
function(a){return 0<Object.values(a).length},Jra=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},Dm=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},Kra=function(a,b){var c=a.getValue(),d={};c=r(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=r(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},Em=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=
[].concat(v(a)).sort());return JSON.stringify(b)},Lra=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},Mra=function(a){a=void 0===a?{}:a;return Xma(a)},Nra=function(a){var b=new T.Subject,c=a.subscribe(b);a=(0,T.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},Ora=function(a){return null==a?new Promise(function(){}):Promise.resolve(a)},Qra=function(){var a;return Pra[(null==(a=aj().getConfig()||void 0)?void 0:a.getEnvironmentType())||""]},Rra=function(a){if(!a||!a.seconds&&
!a.nanos)return null;var b=new mm;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Fm=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new vj;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Sra=function(a){if(a.snapshot){a=r(a.snapshot);for(var b=a.next();!b.done;b=a.next())b=b.value,b.sloSnoozeUntil&&(b.sloSnoozeUntil=Fm(b.sloSnoozeUntil))}},Gm=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,"+")},Tra=function(a,b){b=void 0===b?{}:b;for(var c=[],d=[],e=[],f=function(){var q=e.join("");e=[];if(q.startsWith(":")){q=q.slice(1);c.push(q);var u=b;q=(null==u?0:u.hasOwnProperty(q))?u[q]:void 0;(q=null===q||void 0===q?"":q.toString())&&d.push(Gm(q))}else d.push(q)},h=0;h<a.length;h++)"/"===a[h]?(f(),"/"!==d[d.length-1]&&d.push("/")):e.push(a[h]);f();"/"===d[d.length-
1]&&d.pop();a={};if(b)for(f=r(Object.entries(b)),h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;-1===c.indexOf(h)&&(a[h]=k)}return[d.join(""),a]},Ura=function(a){return!!a.data&&void 0!==a.data.message},Vra=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},Hm=function(a){return!!a&&Ga(a)&&(Ura(a)||Vra(a))},Im=function(a){return Ura(a)&&a.data&&a.data.message?a.data.message:Vra(a)&&a.error&&a.error.message?a.error.message:""},Wra=function(a){var b,
c=null==(b=a.transformRequest)?void 0:b.call(a,a.data);return Object.assign({},a,{data:null!=c?c:a.data})},Xra=function(a){return Bra(m(a,vm,1))},Yra=function(a){return(tb(a,vm,1)||[]).map(Bra)},Zra=function(a){return{encryptedMedia:jb(Jm(a,1)),errorMessage:a.getErrorMessage()}},$ra=function(a){var b=new Km;l(b,1,a.attachment);void 0!==a.contentJudgement&&b.setContentJudgement(vqa(a.contentJudgement));return b},asa=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?b:[]).map(Lm)}},
Lm=function(a){if(null!=a){var b=a.toObject(),c=$k(b.attachmentId),d=bl(b.filecompUrl),e=bl(b.etag),f=bl(b.contentType),h=bl(b.description),k=bl(b.filename),q=bl(b.length);b=Zl[dl(0)(b.piiRetention)];var u=Kl(a.getPiiRetentionState()),y=bsa(a.getEntityStatus()),D=Ml(a.getContentVerdict());a=m(a,Mm,3);null!=a?(a=a.toObject(),a={filename:bl(a.filename),length:bl(a.length),contentType:bl(a.contentType)}):a=void 0;return{attachmentId:c,filecompUrl:d,etag:e,contentType:f,description:h,filename:k,length:q,
piiRetention:b,piiRetentionState:u,entityStatus:y,contentVerdict:D,media:a}}},bsa=function(a){if(null!=a){var b=a.toObject();a=dl(0)(b.reason);b=dl(0)(b.status);return{reason:csa[a],status:dsa[b]}}},gsa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.displayName,e=b.important;if(null==c)Vk("No name. eventDiffToJs");else{d=bl(d);e=!!e;var f=dl(0)(b.type);c={name:c,displayName:d,timestamp:Zpa(a.getTimestamp()),important:e,type:esa[f]};if(zl(a,6,Nm)){var h=Bl(a,Om,6,Nm);zl(h,1,Pm)&&(a=Bl(h,Qm,
1,Pm),c.isUser=!0,c.oldValue=dl("<none>")(Tl(null==a?void 0:m(a,Vl,1))),c.newValue=dl("<none>")(Tl(null==a?void 0:m(a,Vl,2))));if(zl(h,2,Pm)){var k,q;c.oldValue=bl(null==(k=b.singleValueDiff)?void 0:null==(q=k.stringDiff)?void 0:q.oldValue);var u,y;c.newValue=bl(null==(u=b.singleValueDiff)?void 0:null==(y=u.stringDiff)?void 0:y.newValue)}}else if(zl(a,9,Nm)){var D;c.customFieldId=bl(null==(D=b.customFieldDiff)?void 0:D.customFieldId);var I;c.oldValue=bl(null==(I=b.customFieldDiff)?void 0:I.oldValue);
var N;c.newValue=bl(null==(N=b.customFieldDiff)?void 0:N.newValue)}else if(zl(a,10,Nm))k=Bl(a,Rm,10,Nm),c.isUser=!0,b=(null==k?void 0:k.getAddedList())||[],k=(null==k?void 0:k.getRemovedList())||[],c.added=b.map(function(ka){return Tl(ka)}).map(dl("<none>")),c.removed=k.map(function(ka){return Tl(ka)}).map(dl("<none>"));else if(zl(a,7,Nm)){var L;c.added=(null==(L=b.collectionDiff)?void 0:L.addedList)||[];var S;c.removed=(null==(S=b.collectionDiff)?void 0:S.removedList)||[]}else if(zl(a,8,Nm)){var X;
b=(null==(X=Bl(a,Sm,8,Nm))?void 0:X.getAddedList())||[];k=(null==(h=Bl(a,Sm,8,Nm))?void 0:h.getRemovedList())||[];c.added=b.map(fsa).filter(el);c.removed=k.map(fsa).filter(el)}return c}}},fsa=function(a){if(null!=a){var b=a.toObject();a=b.value;b=b.href;if(null==a)Vk("No value. linkedItemToJs");else if(null==b)Vk("No href. linkedItemToJs");else return{value:a,href:b}}},hsa=function(a){a=uh(a).toString();var b=new Tm;l(b,2,a);return b},Um=function(a){if(null!=a){var b=a.toObject();b=$k(b.issueId);
if(null==b)Vk("No issueId. issueToJs");else{for(var c=new Map,d=r(a.getAncestorsMap().entries()),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.set(e,{sourceIssueIds:f.getSourceIssueIdsList()})}var h,k,q,u;d=a.getUserData();if(null!=d){d=d.toObject();var y;d={voted:cl(d.voted),starred:cl(d.starred),notificationSubscription:fl(d.notificationSubscription,isa),lastViewedTimeMicros:null!=(y=d.lastViewedTimeMicros)?y:0}}else d=void 0;y=Rpa(a.getAccessLimit());e=tb(a,
$l,2).map(Rqa).filter(el);f=a.getVisibleFieldsList().map(aqa).filter(el);var D;var I=m(a,km,4);if(null!=I){var N=I.toObject(),L=N.createdTimeMicros,S=N.resolvedTimeMicros,X=N.verifiedTimeMicros,ka=N.modifiedTimeMicros,ha=null!=(D=N.voteCount)?D:0;D=$k(N.sloId);N=$k(N.teamId);var ra=Kl(I.getRetentionState());I=I.getSloStatus();I=null!=I?{assignmentBounds:zqa(I.getAssignmentBounds()),responseBounds:zqa(I.getResponseBounds()),closureBounds:zqa(I.getClosureBounds())}:void 0;D={voteCount:ha,createdTimeMicros:null!=
L?L:0,resolvedTimeMicros:null!=S?S:0,verifiedTimeMicros:null!=X?X:0,modifiedTimeMicros:null!=ka?ka:0,sloId:D,teamId:N,retentionState:ra,sloStatus:I}}else D=void 0;return{issueId:b,userData:d,accessLimit:y,snapshot:e,visibleFields:f,aggregatedData:D,majorModifiedTimeMicros:null!=(h=hj(a,7))?h:0,parentIssueIds:null!=(k=a.getParentIssueIdsList())?k:[],ancestors:c,childIssueCount:null!=(q=a.getChildIssueCount())?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(u=a.getRelatedLinksList())?u:[]).map(jsa)}}}},
ksa=function(a){if(null!=a){var b=a.toObject(),c=Zpa(m(a,vj,4)),d=!!b.isMajorEvent,e=b.addedAttachmentIdsList||[],f,h=null!=(f=Vm(a.getComment()))?f:{},k;f=null==(k=tb(a,Wm,2))?void 0:k.map(gsa).filter(el);var q;k=null==(q=tb(a,Wm,3))?void 0:q.map(gsa).filter(el);var u;q=null==(u=tb(a,Xm,9))?void 0:u.map(Lqa).filter(el);u=a.getAttachmentsList().map(Lm).filter(el);var y=Tl(m(a,Vl,5));y=dl("<none>")(y);a=Sl(m(a,Vl,5));if(null==c)Vk("No modifiedDate. issueEventToJs");else return Object.assign({},h,{attachments:u,
version:b.version,modifiedDate:c,preDiffs:f,postDiffs:k,isMajorEvent:d,addedAttachmentIds:e,taggedSummary:q,userPerformingAction:y,userPerformingActionUser:a})}},Vm=function(a){if(null==a)return{};var b=a.toObject(),c=cl(gl(b.piiRetention,Zl)),d=gl(b.formattingMode,Ym),e,f=gl(null==(e=b.entityStatus)?void 0:e.status,dsa);e=b.lastModified;return{version:b.version,unlinkifiedComment:b.unlinkifiedComment,commentNumber:b.commentId,commentVersion:b.version,commentLastModifiedAtDate:null!=e?e/1E3:void 0,
commentRedacted:bl(b.redacted),commentContentVerdict:Ml(a.getCommentContentVerdict()),commentRetentionState:Kl(a.getPiiRetentionState()),commentDeletionStatus:f,commentRetention:c,lastCommentEditorUser:Sl(m(a,Vl,8)),formattingMode:d,formattedComment:bl(a.getFormattedComment()),commentEtag:b.etag}},an=function(a){if(null!=a){var b=Um(a.getIssue());if(null==b)Vk("No issue. issueFetchResponseToJs");else{var c={},d=bj(a,4,Zm).entries();d=r(d);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=
f.next().value;f=f.next().value;(f=Lm(f))&&(c[e]=f)}d=ksa(m(a,$m,5));return{issue:b,events:tb(a,$m,2).map(ksa).filter(el),customFields:a.getCustomFieldsList().map(dqa).filter(el),attachmentMap:c,firstEvent:d}}}},lsa=function(a){var b=[];a=r(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.getIssueRelationshipsList().map(Zqa),totalChildCount:d.getTotalSize()})}return b},msa=function(a){var b=new bn;b.setIssueIdsList(a.issueIds.map(String));
b.setActionsList(a.actions.map(hra));return b},nsa=function(a){return{issueId:Number(a.getIssueId()),message:a.getMessage()}},osa=function(a){for(var b={},c=r(bj(a,1,im).entries()),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=Um(e)}c={};d=r(bj(a,3,um).entries());for(e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c[Number(e)]=tm(f)}var h;a=(null!=(h=tb(a,cn,2))?h:[]).map(nsa);return{affectedIssues:b,componentMap:c,
errors:a}},psa=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Vm)},jsa=function(a){var b=rb(a,dn);switch(b){case 2:return a=Bl(a,en,2,dn),0!==a.getCommentNumber()?{type:"issueReference",issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber()}:{type:"issueReference",issueId:String(a.getIssueId())};case 1:return{type:"hyperlink",href:Bl(a,fn,1,dn).getHref()};case 0:throw Error("Rc");default:return ph(b)}},qsa=function(a){return a?"string"!==typeof a?a:bm[a]:0},rsa=function(a){return{readTimestamp:hj(a,
1)}},ssa=function(a){var b=a.getIssueState();b={componentId:b.getComponentId(),type:Nqa[b.getType()],status:Qqa[b.getStatus()],priority:Oqa[b.getPriority()],severity:Pqa[b.getSeverity()]};return{issueId:a.getIssueId(),issueState:b,modifiedTime:Yk(a.getModifiedTime()),teamId:a.getTeamId()}},tsa=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;case "LITERAL":return 3;case void 0:case "UNSPECIFIED_FORMATTING_MODE":return 0;default:return ph(a,"Unexpected formatting mode")}},usa=function(a){var b=
void 0;a.hasCommentContentVerdict()&&(b=Ml(a.getCommentContentVerdict()));return{issueId:a.getIssueId(),commentNumber:a.getCommentId(),comment:a.getComment(),commentContentVerdict:b,formattingMode:Ym[a.getFormattingMode()],lastEditorUser:Sl(m(a,Vl,8)),lastModified:String(a.getLastModified()),version:a.getVersion(),unlinkifiedComment:V(a,7),entityStatus:bsa(a.getEntityStatus()),piiRetentionState:Kl(a.getPiiRetentionState()),piiRetention:Zl[a.getPiiRetention()],etag:a.getEtag()}},vsa=function(a){var b;
return(null!=(b=a.getIssueCommentsList())?b:[]).map(usa)},wsa=function(a){var b=new gn,c=new hn;c.setContent(hsa(oh(a)));b.setLiteralFormat(c);return b},xsa=function(a){var b=a.getIssuesList();if(b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&(d=Um(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=bj(a,3,um);d={};e=r(e.entries());for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d[Number(f)]=tm(h)}f=bj(a,4);if(void 0!==f)for(e={},
f=r(f.entries()),h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e[Number(h)]=k}else e=void 0;return{issues:c,numTotalResults:b,componentMap:d,positionMap:e,nextPageToken:a.getNextPageToken()}},ysa=function(a){var b={};if(null==a)return b;a=r(tb(a,jn,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={id:d,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},zsa=function(a){switch(a){case 1:return"admin";case 2:return"writer";case 3:return"appender";case 4:return"reader"}},Asa=function(a){var b={};a=r(tb(a,jn,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=zsa(c.getRelation());if(d){var e=void 0,f=null!=(e=b[c.getResource()])?e:{};f[d]=!0;b[c.getResource()]=f}}return b},Bsa=function(a,b){return a.map(function(c){var d=c.resourceName;c=c.relation;return void 0!==b[d]&&void 0!==b[d][c]?
b[d][c]:!1})},Csa=function(){},Dsa=function(a){if(a&1){var b=x();F(0,"div",2)(1,"button",3);J("click",function(){z(b);var c=K();return A(c.action())});O(2);G()()}a&2&&(a=K(),B(2),He(a.data.action))},Esa=function(){return new kn},Fsa=function(a){a&1&&(F(0,"span",6),O(1),G());a&2&&(a=K(),B(1),He(a.data.message))},Gsa=function(a){a&1&&H(0,"span",7);a&2&&(a=K(),E("innerHtml",a.data.htmlMessage,Pd))},Isa=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(Hsa(c.snackBarRef))});
O(1);G()}a&2&&(a=K(),B(1),Ge(" ",a.data.actionLabel," "))},Jsa=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});O(1);G()}a&2&&(a=K(),B(1),Ge(" ",a.data.dismissLabel," "))},Ksa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});H(1,"mat-icon",10);G()}},Msa=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=tb(new Lsa(a),ln,1))&&1===a.length)return an(a[0])},
nn=function(a,b){return mn("issues/:issueId",{id:a,params:b})},pn=function(a){return on("issues",{params:a})},Nsa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Osa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Psa=function(a,b){return mn("components/:componentId/manage",{id:a,tab:b})},Qsa=function(a){return a?on("settings/:settingsTab?",{id:a,token:":settingsTab?"}):on("settings")},mn=function(a,b){b=void 0===
b?{}:b;return null==b.id?"":on(a,b)},on=function(a,b){var c=b=void 0===b?{}:b;b=c.id;var d=c.params,e=c.tab;c=c.token;var f=a;null!=b&&(f=a.replace(c?c:/:\w+/,b.toString()));d&&(f=Rsa(f,d));e&&(f=f+"#"+e);return f},qn=function(a,b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},rn=function(a,b){b=void 0===b?{}:b;b=void 0===b?{}: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},Ssa=function(a){return{path:"/components/"+a}},Tsa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},sn=function(a){return{path:"/slos/"+a+"/edit"}},Usa=function(a){for(var b={},c=r(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);b[d]=1<e.length?e:e[0]}return b},Wsa=function(a){if(!a.getType())throw Error("Wc");return{type:Vsa[a.getType()],customFieldId:$k(a.getCustomFieldId()),customFieldName:bl(a.getCustomFieldName())}},Ysa=function(a){var b=
new tn;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.customFieldName&&l(b,3,a.customFieldName);void 0!==a.type&&b.setType(Xsa[a.type]);return b},Zsa=function(a){var b=a.getField();if(!b)throw Error("Xc");if(!a.getDirection())throw Error("Yc");return{field:Wsa(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},$sa=function(a){var b=new un;b.setField(Ysa(a.field));b.setDirection("ASCENDING"===a.direction?1:2);return b},ata=function(a){var b=new vn;b.setHotlistId(""+
a.hotlistId);b.setName(a.name);b.setDescription(a.description);b.setArchived(a.archived);b.setCreatedTimeMicros(a.createdTimeMicros);b.setModifiedTimeMicros(a.modifiedTimeMicros);var c;b.setDisplayColumnList((null!=(c=a.displayColumn)?c:[]).map(Ysa));var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map($sa));void 0!==a.etag&&b.setEtag(a.etag);null!==a.ownerUser&&b.setOwnerUser(Wl(a.ownerUser));var e;b.setAdminUsersList((null!=(e=a.adminUsers)?e:[]).map(Wl));return b},wn=function(a){if(!a.getHotlistId())throw Error("Zc");
if(!a.getName())throw Error("$c");if(!a.getCreatedTimeMicros())throw Error("ad");if(!a.getModifiedTimeMicros())throw Error("bd");var b,c,d,e;return{hotlistId:Number(a.getHotlistId()),name:a.getName(),description:null!=(b=a.getDescription())?b:"",archived:null!=(c=a.getArchived())?c:!1,createdTimeMicros:a.getCreatedTimeMicros(),modifiedTimeMicros:a.getModifiedTimeMicros(),displayColumn:(null!=(d=a.getDisplayColumnList())?d:[]).map(Wsa),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(Zsa),etag:a.getEtag(),
ownerUser:Sl(a.getOwnerUser())||null,adminUsers:Ul(a.getAdminUsersList())}},bta=function(a){var b;return(null!=(b=a.getHotlistsList())?b:[]).map(wn)},cta=function(a){var b;return(null!=(b=tb(a,vn,1))?b:[]).map(wn)},eta=function(a){a=a.getFavorite();return{user:Sl(a.getUser()),resourceType:dta[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},fta=function(a){var b,c;return{searchId:Number(nj(a,1)),ownerUser:Sl(a.getOwnerUser()),name:a.getName(),description:a.getDescription(),
query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(Zsa),displayColumn:(null!=(c=a.getDisplayColumnList())?c:[]).map(Wsa),adminUsers:Ul(a.getAdminUsersList())}},gta=function(a){var b;return(null!=(b=tb(a,xn,1))?b:[]).map(fta)},hta=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Sl(a.getOwnerUser()))?b:null,starred:a.getStarred(),resourceType:a.getResourceType()}},ita=function(a){var b;return{id:a.getId(),name:a.getName(),
description:a.getDescription(),ownerUser:Sl(a.getOwnerUser()),starred:a.getStarred(),sublinks:(null!=(b=tb(a,yn,6))?b:[]).map(hta)}},jta=function(a){var b,c,d,e;return{hotlists:(null!=(b=a.getHotlistsList())?b:[]).map(hta),bookmarkGroups:(null!=(c=a.getBookmarkGroupsList())?c:[]).map(ita),archivedHotlists:(null!=(d=tb(a,yn,3))?d:[]).map(hta),archivedBookmarkGroups:(null!=(e=tb(a,zn,4))?e:[]).map(ita)}},kta=function(a){return null==a.searchId||null==a.name||null==a.query?!1:!0},An=function(a){a=void 0===
a?{}:a;return{headers:a.headers||{},params:Object.assign({},a.params,lta)}},mta=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:String(a.issueId)})},nta=function(a,b){var c;a=null==(c=a.componentPathInfo)?void 0:c.allCustomField;if(!a)return!0;c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$customField$1674:c.$jscomp$loop$prop$customField$1674},d=a.next())if(c.$jscomp$loop$prop$customField$1674=d.value,c.$jscomp$loop$prop$customField$1674.required){d=
!!c.$jscomp$loop$prop$customField$1674.typedDefaultValue;var e=void 0,f=void 0,h=null==(e=b)?void 0:null==(f=e.snapshot.customField)?void 0:f.some(function(k){return function(q){return q.customFieldId===k.$jscomp$loop$prop$customField$1674.customFieldId}}(c));if(!d&&!h)return!1}return!0},ota=function(a){return"component"===(null==a?void 0:a.name)},qta=function(a){return null==a?!1:pta.has(a.name)},rta=function(a){return"hotlist"===(null==a?void 0:a.name)},sta=function(a){return null==a?!1:null!=a.href&&
null!=a.value},tta=function(a){return Array.isArray(a)?a.every(sta):!1},uta=function(a){var b=new Set;if(null==a||!rta(a))return b;a=[].concat(v(a.added||[]),v(a.removed||[]));a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,sta(c)&&b.add(String(c.value));return b},Bn=function(a,b){return function(c,d){return vta(c,a,b,d)}},vta=function(a,b,c,d){d=void 0===d?"":d;return""===d?a:[].concat(v(a)).sort(function(e,f){var h="asc"===d?1:-1;return c(b(e),b(f))*h})},wta=function(a,b){return null==a||
null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:isNaN(a)&&isNaN(b)?0:isNaN(a)?1:isNaN(b)?-1:a>b?1:a<b?-1:0},xta=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},Cn=function(a){return!(null==a||!a.commentNumber)},yta=function(a){var b;return 0<(null==(b=a.attachments)?void 0:b.length)},zta=function(a){var b=new Set;if(!Array.isArray(a)||0===a.length)return b;var c=function(e){null!=e&&0<Number(e)&&b.add(e)};a=a.flatMap(function(e){return[].concat(v((null==
e?void 0:e.preDiffs)||[]),v((null==e?void 0:e.postDiffs)||[]))}).filter(ota);a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c(d.oldValue),c(d.newValue);return b},Ata=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===b}),e=a[d];if(null==e)return a;c=Object.assign({},e,c);return[].concat(v(a.slice(0,d)),[c],v(a.slice(d+1)))},Bta=function(a){var b=new Set;if(null==a)return b;a=a.map(function(e){return[].concat(v(e.preDiffs||[]),v(e.postDiffs||[]))}).reduce(function(e,f){return e.concat(f)},
[]).map(uta);a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},Cta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==(d=c.snapshot)?void 0:d[0];if(null==a)return b;c=r(a.hotlistId||[]);for(d=c.next();!d.done;d=c.next())b.add(String(d.value));return b},Dta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==(d=c.snapshot)?void 0:d[0];if(null==a||null==a.componentId)return b;
b.add(String(a.componentId));return b},Dn=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Eta=function(a){if(null==a)return"";var b,c,d,e,f=a.etag,h=a.piiRetention;var k=a.piiRetentionState;k=null==k?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,h,k,null==(b=a.entityStatus)?void 0:b.reason,null==(c=a.entityStatus)?void 0:c.status,null==(d=a.contentVerdict)?void 0:null==(e=d.piiVerdict)?void 0:
e.severity].join("-")},Fta=function(a){if(null==a)return"";var b=a.attachments.map(Eta).join("-"),c,d;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,null==(c=a.commentContentVerdict)?void 0:null==(d=c.piiVerdict)?void 0:d.severity,a.commentDeletionStatus,a.commentRetention].join("-")},En=function(a){return a.map(function(b){return b.commentNumber}).filter(el).reduce(function(b,c){return Math.max(b,c)},1)},Gta=function(a,b){if(a===b)return!0;if(null==
a||null==b||a.length!==b.length)return!1;for(var c=a.length-1;0<=c;c--){var d=a[c],e=b[c];if(d!==e&&(null==d||null==e||Fta(d)!==Fta(e)))return!1}return!0},Gn=function(a){if(null==a?0:a.isArchived)return!1;var b,c;a=null==a?void 0:null==(b=a.snapshot)?void 0:null==(c=b[0])?void 0:c.status;if(null==a)return!1;var d,e;return null!=(e=null==(d=Fn[a])?void 0:d.open)?e:!1},Hn=function(a){return null==a.isArchived?!1:!a.isArchived},Ita=function(a){return Bn(function(b){var c,d;return null!=(d=Hta[am[null==
(c=a(b))?void 0:c.snapshot[0].status]])?d:0},wta)},Jta=function(a){return Bn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},xta)},Kta=function(a){return Bn(function(b){var c;return null==(c=a(b))?void 0:c.snapshot[0].type},xta)},Lta=function(a){return Bn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},xta)},Mta=function(a){return Bn(function(b){var c,d,e;return null!=(e=null==
(c=a(b))?void 0:null==(d=c.aggregatedData)?void 0:d.createdTimeMicros)?e:0},wta)},Nta=function(a){var b=a.map(function(c){return Y(c,2,0)});return b.includes(4)?3:b.includes(3)?0:b.includes(2)?4:a.map(function(c){return Y(c,1,0)}).includes(3)?1:b.includes(1)?5:2},Ota=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"}},Pta=function(a){var b=a.newEditors,c=a.newImplicitUsers,
d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=Nta(a.userPrincipals);return{title:"Allow "+(1===a?"members of the group to ":Ota(a,d)+" to ")+(0===b.length?"comment?":"edit?"),content:"Adding "+c.join(", ")+" will allow "+(1===a?"all members of the group":"them")+" to "+(0===b.length?"comment on ":"edit ")+(e===f?"issue "+f:"canonical issue "+f)+"."}},Qta=function(a){return{noAccessEmails:lb(a,1),unknownEmails:lb(a,2)}},Rta=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=Sl(c);if(c=
a.getGroup())b.group=Sl(c);if(c=a.getAlias())b.alias=c;return b}},Jn=function(a){var b=new In;if(Mk(a))return b.setUser(Wl(a.user)),b;if(Nk(a))return b.setGroup(Wl(a.group)),b;void 0!==a.alias&&b.setAlias(a.alias);return b},Mn=function(a){var b=Sta[a.getInheritance()],c=Tta[a.getImplicitAccess()],d,e,f,h,k,q,u,y,D,I;return{inheritance:b,admins:Ln(null!=(d=a.getAdminsList())?d:[]),appenders:Ln(null!=(e=a.getAppendersList())?e:[]),editors:Ln(null!=(f=a.getEditorsList())?f:[]),readers:Ln(null!=(h=a.getReadersList())?
h:[]),restrictedReaders:Ln(null!=(k=a.getRestrictedReadersList())?k:[]),restrictedPlusReaders:Ln(null!=(q=a.getRestrictedPlusReadersList())?q:[]),inheritedAdmins:Ln(null!=(u=a.getInheritedAdminsList())?u:[]),implicitAppenders:Ln(null!=(y=a.getImplicitAppendersList())?y:[]),implicitEditors:Ln(null!=(D=a.getImplicitEditorsList())?D:[]),implicitReaders:Ln(null!=(I=a.getImplicitReadersList())?I:[]),implicitAccess:c}},Wta=function(a){var b=new Nn,c=a.inheritance;b.setInheritance(Uta[null!=c?c:"INHERITANCE_UNSPECIFIED"]);
var d;b.setAdminsList((null!=(d=a.admins)?d:[]).map(Jn));var e;b.setAppendersList((null!=(e=a.appenders)?e:[]).map(Jn));var f;b.setEditorsList((null!=(f=a.editors)?f:[]).map(Jn));var h;b.setReadersList((null!=(h=a.readers)?h:[]).map(Jn));var k;b.setRestrictedReadersList((null!=(k=a.restrictedReaders)?k:[]).map(Jn));var q;b.setRestrictedPlusReadersList((null!=(q=a.restrictedPlusReaders)?q:[]).map(Jn));a.implicitAccess&&b.setImplicitAccess(Vta[a.implicitAccess]);return b},Ln=function(a){return a.map(Rta).filter(el)},
On=function(a){if(null==a)return"";var b=a.user,c=a.group,d=a.alias;if(null!=b){var e=2;var f=b.emailAddress||b.obfuscatedEmailAddress||void 0}else null!=c?(e=3,f=c.emailAddress||c.obfuscatedEmailAddress||void 0):null!=d&&(e=4,f=d);return null==e||null==f?(Wpa("Invalid principal: ",a),""):e+":"+f},Xta=function(a){return(null!=a?a:[]).map(On)},Zta=function(a){return(null!=a?a:[]).map(Yta)},Yta=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("cd`"+b);switch(Number(a)){case 2:return{user:{emailAddress:b}};
case 3:return{group:{emailAddress:b}};case 4:return{alias:b};default:throw Error("dd`"+b);}},$ta=function(a){var b=1E3;b=void 0===b?150:b;var c,d=[];return function(e){d.push(e);c&&clearTimeout(c);c=setTimeout(function(){a(d);d=[];c=void 0},b)}},aua=function(a){function b(){var e,f,h,k;return ef(function(q){if(1==q.nextAddress){if(d||0===c.length)return q.return();d=!0;e=[].concat(v(c));c=[];f=r(e);h=f.next()}if(3!=q.nextAddress){if(h.done)return d=!1,ff(q,b(),0);k=h.value;return ff(q,a.apply(null,
v(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}h=f.next();return q.jumpTo(2)})}var c=[],d=!1;return function(){var e=tc.apply(0,arguments),f=new boa;c.push({args:e,returnValue:f});b();return f.promise}},bua=function(a){var b=!1;return function(){var c=tc.apply(0,arguments);if(!b)return b=!0,a.apply(null,v(c))}},cua=function(a){return!(null==a||!a.relatedChildren.length)},eua=function(a,b){var c=[].concat(v(a));a=new Set(a.map(function(h){return h.targetIssueId}));var d={};b=
r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$newItem$1680:d.$jscomp$loop$prop$newItem$1680},e=b.next())if(d.$jscomp$loop$prop$newItem$1680=e.value,!a.has(d.$jscomp$loop$prop$newItem$1680.targetIssueId)){e=c.findIndex(function(h){return function(k){return k.targetIssueId===h.$jscomp$loop$prop$newItem$1680.afterIssueId}}(d));var f=void 0;f=d.$jscomp$loop$prop$newItem$1680.afterIssueId?-1===e?c.length:e+1:0;c.splice(f,0,d.$jscomp$loop$prop$newItem$1680);a.add(d.$jscomp$loop$prop$newItem$1680.targetIssueId)}return dua(c)},
fua=function(a,b){return dua(a.filter(function(c){return c.targetIssueId!==b}))},dua=function(a){for(var b=[],c=r(a.entries()),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:null==(e=a[d-1])?void 0:e.targetIssueId});null==d.afterIssueId&&delete d.afterIssueId;b.push(d)}return b},gua=function(a){var b=new Map,c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$previousOperation$1682:c.$jscomp$loop$prop$previousOperation$1682},
d=a.next()){var e=d.value;d=e.issues.map(function(f){return f.issueId}).join(",");c.$jscomp$loop$prop$previousOperation$1682=b.get(d);c.$jscomp$loop$prop$previousOperation$1682?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:c.$jscomp$loop$prop$previousOperation$1682.issues,eventTimestamps:[].concat(v(c.$jscomp$loop$prop$previousOperation$1682.eventTimestamps),v(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(c.$jscomp$loop$prop$previousOperation$1682.done.resolve).catch(function(f){return function(h){f.$jscomp$loop$prop$previousOperation$1682.done.reject(h);
throw h;}}(c)),b.set(d,e)):b.set(d,e)}b=[].concat(v(b.values()));c={};a=r(b);for(d=a.next();!d.done;c={$jscomp$loop$prop$operation$1447$1684:c.$jscomp$loop$prop$operation$1447$1684},d=a.next())c.$jscomp$loop$prop$operation$1447$1684=d.value,c.$jscomp$loop$prop$operation$1447$1684.newRelations=c.$jscomp$loop$prop$operation$1447$1684.newRelations.map(function(f){return function(h){return f.$jscomp$loop$prop$operation$1447$1684.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===h.targetIssueId})}}(c));
return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,v(f.issues.map(function(u){return k.findIndex(function(y){return y.targetIssueId===u.issueId})})));h=Math.min.apply(Math,v(h.issues.map(function(u){return q.findIndex(function(y){return y.targetIssueId===u.issueId})})));return f===h?0:f<h?-1:1})},Qn=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=lb(a,4);a=m(a,Pn,5);a=null!=a?{logoUrl:a.getLogoUrl(),theme:hua[a.getTheme()]}:
void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:null!=a?a:null}},iua=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(Qn)},jua=function(a){return{trackers:a.getTrackersList().map(Qn),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},kua=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},lua=function(a){var b;return null!=(b=$k(a))?b:null},Rn=function(a){return!!a&&mua.test(a)&&!nua.test(a)},Sn=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||
a.endsWith("-robots@google.com")||oua(a)},oua=function(a){return pua.some(function(b){return a.endsWith(b)})},qua=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}},rua=function(a){return a?Pk(a.replace(/_/g," ").toLowerCase()):""},sua=function(a){return a?a.join(", "):""},tua=function(a,b){if(!a)return Tn("");
if(!b)return Tn(a);b=b.split(" ").map(cna);b=b.filter(function(h){return!!h});b=b.map(Un);if(0===b.length)return Tn(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(Vn("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Wn(c)},uua=function(a){return a?"Yes":"No"},vua=function(a){var b;a?b=Array.isArray(a)&&a.every(Yma)?a.join(" > "):a.componentPathInfo&&a.componentPathInfo.componentPathName?
a.componentPathInfo.componentPathName.join(" > "):"":b="";return b},wua=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},xua=function(a){var b;return(null==(b=Fn[a])?void 0:b.displayValue)||""},yua=function(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.resolved||!c.status||void 0===c.archived)return;var d=void 0;(null==(d=Fn[c.status])?0:d.open)&&!c.archived&&b++}return b},zua=function(a){return null!=a?a:"-"},Aua=function(a){if(1073741824<=a){a/=1073741824;
var b="GB"}else 1048576<=a?(a/=1048576,b="MB"):1024<=a?(a/=1024,b="KB"):b="B";a=10>a?Math.round(10*a)/10:Math.round(a);return a+" "+b},Bua=function(a){switch(a){case "EXTERNAL_PARTNER":return"Visible to Partners";case "EXTERNAL_PUBLIC":return"Visible to Public";default:return""}},Cua=function(a){if(a&&Rn(a))return a},Xn=function(a){return null==a?"":String(a)},Dua=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},Eua=function(a){var b=a.name;
if(null!=b&&(a=Math.round(a.duration),!isNaN(a))){var c=r(b.split(" -> ")),d=c.next().value;c=c.next().value;if(null==d||null==c)console.warn("can't parse 'from' and 'to' in PerformanceEntry: "+b);else return{from:d,to:c,duration:a}}},Gua=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(Fua);if(null!=b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},Kua=function(){var a=window.performance.getEntries(),b=Gua(a);if(null==b)return[];var c=
b.startTime;return a.filter(Hua).filter(Iua).filter(Jua).filter(function(d){return d.startTime<=c})},Fua=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},Hua=function(a){return 0!==a.name.indexOf("Zone")},Jua=function(a){return"resource"===a.entryType},Lua=function(a){return"xmlhttprequest"===a.initiatorType},Iua=function(a){return null==a.name.match(/\.html$/)},Mua=function(a,b){var c=b.transferSize||0,d=a.count+1,e=a.cacheHits+(0===c?1:0);return{count:d,duration:a.duration+
b.duration,transferSize:a.transferSize+c,cacheHits:e,cacheHitRate:e/d}},Nua=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},Qua=function(){if(!Oua){var a=Kua(),b=a.filter(function(c){return!Lua(c)}).reduce(Mua,Pua());Yn("r-until-cf","asset","count",b.count);Yn("r-until-cf","asset","transferSize",b.transferSize);Yn("r-until-cf","asset","duration",b.duration);Yn("r-until-cf","asset","cacheHitRate",b.cacheHitRate);
a=a.filter(Lua).reduce(Mua,Pua());Yn("r-until-cf","xhr","count",a.count);Yn("r-until-cf","xhr","transferSize",a.transferSize);Yn("r-until-cf","xhr","duration",a.duration);Oua=!0}},Zn=function(a,b){Rua({hitType:"event",eventCategory:a,eventAction:b})},Yn=function(a,b,c,d){Rua({hitType:"event",eventCategory:a,eventAction:b,eventLabel:c,eventValue:d})},Rua=function(a){null!=a&&("function"===typeof $n.ga?$n.ga("send",a):Sua&&Upa("[stub ga.ts] ga('send')",a))},ao=function(a,b){"function"===typeof $n.ga?
$n.ga("set",a,b):Sua&&Upa("[stub ga.ts] ga('set', '"+a+"', "+b+")")},Tua=function(a,b){if(a&1){var c=x();F(0,"a",8);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.clickSegment.emit(d.name||d.path))});O(1);G()}a&2&&(a=b.$implicit,E("href",a.path,Qd),B(1),Ge(" ",a.name||a.path," "))},Uua=function(a){a&1&&(ve(0),F(1,"button",4),H(2,"mat-icon",5),G(),F(3,"mat-menu",null,6),M(5,Tua,2,2,"a",7),G(),we());if(a&2){var b=Fe(4);a=K();B(1);E("matMenuTriggerFor",b);B(4);E("ngForOf",a.segments)}},
Vua=function(a,b){if(a&1){var c=x();ve(0);F(1,"b-fab-segmented",1);J("clickMain",function(f){z(c);var h=K(3);return A(h.trackClick(f))})("clickSegment",function(f){z(c);var h=K(3);return A(h.trackClick(f))});G();we()}if(a&2){a=b.ngIf;b=K().ngIf;var d=K().ngIf,e=K();B(1);E("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},Wua=function(a){a&1&&(ve(0),M(1,Vua,2,4,"ng-container",0),P(2,"async"),we());a&2&&(a=K(2),B(1),E("ngIf",Q(2,1,a.buttonIcon$)))},Xua=function(a){a&1&&(ve(0),M(1,Wua,3,
3,"ng-container",0),P(2,"async"),we());a&2&&(a=K(),B(1),E("ngIf",Q(2,1,a.buttonLabel$)))},bva=function(){var a=void 0===a?Zn:a;var b=Date.now(),c=bo(b);bo(Yua())!==c?a("retention","first-visit"):(c=bo(b),bo(Yua())===c&&1===Zua()&&a("retention","second-visit"));a=bo(b);bo(Yua())!==a?$ua(1):(a=Zua()||0,$ua(a+1));ava(b)},bo=function(a){if(null!=a)return(new Date(a)).toLocaleDateString()},cva=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},dva=function(a){if(!a)return null;var b=new Nl;a.startTime&&b.setStartTime(Fm(a.startTime));a.targetTime&&b.setTargetTime(Fm(a.targetTime));a.endTime&&b.setEndTime(Fm(a.endTime));return b},eva=function(a){if(!a)return null;var b=new nm;a.assignmentBounds&&b.setAssignmentBounds(dva(a.assignmentBounds));a.responseBounds&&b.setResponseBounds(dva(a.responseBounds));a.closureBounds&&b.setClosureBounds(dva(a.closureBounds));return b},co=function(a){for(var b=r(a.item||[]),c=b.next();!c.done;c=
b.next())c=c.value,"hotlistId"in c?c.resourceType="HOTLIST":"savedSearchId"in c&&(c.resourceType="SAVED_SEARCH");return a},fva=function(a){return a.map(co)},gva=function(a){var b={name:a.getName(),description:a.getDescription()};1===rb(a,eo)?b.hotlistId=Number(a.getHotlistId()):4===rb(a,eo)&&(b.savedSearchId=Number(nj(a,sb(a,eo,4))));return b},fo=function(a){var b,c;return{bookmarkGroupId:Number(a.getBookmarkGroupId()),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Sl(a.getOwnerUser()))?
b:null,archived:a.getArchived(),item:(null!=(c=a.getItemList())?c:[]).map(gva),adminUsers:Ul(a.getAdminUsersList())}},hva=function(a){var b=new go;b.setName(a.name);void 0!==a.description&&b.setDescription(a.description);void 0!==a.hotlistId?b.setHotlistId(String(a.hotlistId)):void 0!==a.savedSearchId&&ho(b,4,eo,String(a.savedSearchId));return b},iva=function(a){var b;return(null!=(b=a.getBookmarkGroupsList())?b:[]).map(fo)},jva=function(a){if(a&1){var b=x();F(0,"button",5);J("click",function(){z(b);
var c=K();return A(c.dialogRef.close(!1))});O(1);G()}a&2&&(a=K(),B(1),Ge(" ",a.cancelButtonText," "))},kva=function(a){a&1&&xe(0)},lva=function(a){a&1&&xe(0)},mva=function(a){a&1&&(ve(0),M(1,lva,1,0,"ng-container",1),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.content))},nva=function(a){a&1&&O(0," Archived ")},ova=function(a){a&1&&(F(0,"button",15),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",16),G());if(a&2){K();var b=Fe(5);E("matMenuTriggerFor",b)}},pva=function(a){if(a&1){var b=
x();F(0,"button",17);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},qva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unarchive())});O(1," Unarchive ");G()}},rva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});O(1," Open ");G();F(2,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupDashboard(c.id))});
O(3," Dashboard ");G();F(4,"button",17);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.openEditBookmarkGroup(c.id))});O(5," Settings ");G();M(6,pva,2,0,"button",18);M(7,qva,2,0,"button",18)}a&2&&(a=K(2).$implicit,B(6),E("ngIf",a.isUnstarable()),B(1),E("ngIf",a.isEditable()))},sva=function(a){a&1&&(F(0,"div",10)(1,"span",11),O(2),G(),M(3,ova,2,1,"button",12),F(4,"mat-menu",null,13),M(6,rva,8,2,"ng-template",14),G()());a&2&&(a=K().$implicit,me("id","bv2-user-archived-bookmarkgroup-item-",
a.id,""),B(2),He(a.name),B(1),E("ngIf",a))},tva=function(a,b){if(a&1){var c=x();F(0,"li",21)(1,"a",22);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",11);O(3);G()()()}a&2&&(a=b.$implicit,b=K(2).$implicit,pe("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),Xea("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),E("title",a.name),B(1),E("href",
a.href,Qd),B(2),Ge(" ",a.name," "))},uva=function(a){a&1&&(F(0,"ul",19),M(1,tva,4,12,"li",20),G());a&2&&(a=K().$implicit,B(1),E("ngForOf",a.items))},vva=function(a,b){a&1&&(F(0,"li",7)(1,"sidebar-zippy",1),M(2,sva,7,3,"ng-template",null,8,Mf),M(4,uva,2,1,"ng-template",null,9,Mf),G()());if(a&2){a=b.$implicit;var c=Fe(3),d=Fe(5);E("title",a.name);B(1);E("header",c)("content",d)}},wva=function(a){a&1&&(F(0,"button",27),H(1,"mat-icon",16),G());if(a&2){K();var b=Fe(6);E("matMenuTriggerFor",b)}},xva=function(a){if(a&
1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},yva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unarchive())});O(1," Unarchive ");G()}},zva=function(a){if(a&1){var b=x();F(0,"button",17);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditHotlist(c.id))});O(1," Settings ");G();M(2,xva,2,0,"button",18);M(3,yva,2,0,"button",18)}a&2&&(a=K().$implicit,
B(2),E("ngIf",a.isUnstarable()),B(1),E("ngIf",a.isEditable()))},Ava=function(a,b){if(a&1){var c=x();F(0,"li",23)(1,"a",24);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",11);O(3);G()();M(4,wva,2,1,"button",25);F(5,"mat-menu",null,26);M(7,zva,4,2,"ng-template",14);G()()}a&2&&(a=b.$implicit,pe("selected",a.isSelected()),Ce("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),E("title",a.name),B(1),E("href",a.href,Qd),B(2),He(a.name),B(1),E("ngIf",
a))},Bva=function(a){a&1&&(F(0,"ul",4),M(1,vva,6,3,"li",5),M(2,Ava,8,7,"li",6),G());a&2&&(a=K(2),B(1),E("ngForOf",a.bookmarkGroups),B(1),E("ngForOf",a.hotlists))},Cva=function(a){a&1&&(F(0,"div"),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,nva,1,0,"ng-template",null,2,Mf),M(5,Bva,3,2,"ng-template",null,3,Mf),G()());if(a&2){var b=Fe(4),c=Fe(6);B(2);E("header",b)("content",c)}},Dva=function(a){a&1&&(Qc(),H(0,"circle",4));if(a&2){a=K();var b=Fe(1);oe("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));ke("r",a._getCircleRadius())}},Eva=function(a){a&1&&(Qc(),H(0,"circle",4));if(a&2){a=K();var b=Fe(1);oe("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));ke("r",a._getCircleRadius())}},
Fva=function(){return{diameter:100}},Gva=function(a){a&1&&H(0,"mat-spinner",2);a&2&&E("diameter",36)},Hva=function(a){a&1&&H(0,"mat-spinner",3);a&2&&E("diameter",16)("strokeWidth",2)},Jva=function(a){if(null==Iva){var b="undefined"!==typeof document?document.head:null;Iva=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Iva&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Kva=function(a){if(a&1){var b=x();F(0,"div",0);J("clickOutside",
function(){z(b);var c=K();return A(c.closeHovercard$.next())})("mouseenter",function(){z(b);K().isOnHover$.next(!0);return A()})("mouseleave",function(){z(b);K().isOnHover$.next(!1);return A()});Be(1);G()}a&2&&(a=K(),qe(a.className),E("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},Lva=function(a,b){a&1&&(F(0,"div",0,1),Be(2),G());a&2&&(a=b.id,b=K(),E("id",b.id)("ngClass",b._classList),ke("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},Mva=function(){return{autoActiveFirstOption:!1,
autoSelectActiveOption:!1}},Nva=function(a){a&1&&H(0,"b-spinner")},Ova=function(a){if(a&1){var b=x();F(0,"b-star-toggle",15);J("starClicked",function(){z(b);var c=K().$implicit,d=K();return A(d.toggleStar(c))});G()}a&2&&(a=K().$implicit,E("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},Pva=function(a){a&1&&H(0,"b-hotlist-card",16);a&2&&(a=K().$implicit,E("hotlist",a))},Qva=function(a){a&1&&H(0,"b-bookmark-group-card",17);a&2&&(a=K().$implicit,E("bookmarkGroup",
a))},Rva=function(a,b){a&1&&(F(0,"mat-option",8)(1,"div",9),M(2,Ova,1,3,"b-star-toggle",10),F(3,"onedev-hovercard",null,11),M(5,Pva,1,1,"b-hotlist-card",12),M(6,Qva,1,1,"b-bookmark-group-card",13),G(),F(7,"span",14),O(8),G()()());if(a&2){a=b.$implicit;var c=Fe(4);b=K();E("value",a);B(1);pe("bv2-bookmark-group",b.showHotlists&&a.isGroup);B(1);E("ngIf",b.shouldShowStar(a));B(3);E("ngIf",!a.isGroup);B(1);E("ngIf",!!a.isGroup);B(1);E("onedevHovercardTrigger",c);B(1);He(a.name)}},Sva=function(){return Zga(function(){return(0,T.from)(Promise.resolve(void 0))})},
Tva=function(a){a&1&&H(0,"a",1)},Uva=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);J("itemSelect",function(c){z(b);var d=K();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return A()});G()()()}a&2&&(a=K(),B(2),E("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},Vva=function(a){if(a&1){var b=x();F(0,"span");O(1,"Bookmark groups");G();F(2,"b-hotlist-search-popup",
4);J("itemSelect",function(c){z(b);var d=K();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return A()});G()}a&2&&(B(2),E("showHotlists",!1))},Wva=function(a){a&1&&(F(0,"button",17),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",18),G());if(a&2){K();var b=Fe(5);E("matMenuTriggerFor",b)}},Xva=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},Yva=function(a){if(a&1){var b=x();F(0,"button",
19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.archive())});O(1," Archive ");G()}},Zva=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},$va=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});O(1," Open ");G();F(2,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);
return A(d.handleBookmarkGroupDashboard(c.id))});O(3," Dashboard ");G();F(4,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.editBookmarkGroup(c.id))});O(5," Settings ");G();M(6,Xva,2,0,"button",20);M(7,Yva,2,0,"button",20);M(8,Zva,2,0,"button",20)}a&2&&(a=K(2).$implicit,B(6),E("ngIf",a.isUnstarable()),B(1),E("ngIf",a.isEditable()),B(1),E("ngIf",!a.isPreferredHomepage()))},awa=function(a){a&1&&(F(0,"div",12)(1,"span",13),O(2),G(),M(3,Wva,2,1,"button",14),F(4,"mat-menu",
null,15),M(6,$va,9,3,"ng-template",16),G()());a&2&&(a=K().$implicit,me("id","bv2-user-bookmarkgroup-item-",a.id,""),B(2),He(a.name),B(1),E("ngIf",a))},bwa=function(a){a&1&&(F(0,"button",27),H(1,"mat-icon",18),G());if(a&2){K();var b=Fe(6);E("matMenuTriggerFor",b)}},cwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},dwa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;
return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},ewa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var c=K().$implicit,d=K(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));return A()});O(1," Settings ");G();M(2,cwa,2,0,"button",20);M(3,dwa,2,0,"button",20)}a&2&&(a=K().$implicit,B(2),E("ngIf",a.isUnstarable()),B(1),E("ngIf",!a.isPreferredHomepage()))},fwa=function(a,b){if(a&1){var c=x();F(0,
"li",23)(1,"a",24);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",13);O(3);G()();M(4,bwa,2,1,"button",25);F(5,"mat-menu",null,26);M(7,ewa,4,2,"ng-template",16);G()()}a&2&&(a=b.$implicit,b=K(2).$implicit,pe("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),Xea("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),E("title",a.name),B(1),E("href",
a.href,Qd),B(2),Ge(" ",a.name," "),B(1),E("ngIf",b))},gwa=function(a){a&1&&(F(0,"ul",21),M(1,fwa,8,13,"li",22),G());a&2&&(a=K().$implicit,B(1),E("ngForOf",a.items))},hwa=function(a,b){a&1&&(F(0,"li",8)(1,"sidebar-zippy",9),M(2,awa,7,3,"ng-template",null,10,Mf),M(4,gwa,2,1,"ng-template",null,11,Mf),G()());if(a&2){a=b.$implicit;var c=Fe(3),d=Fe(5);E("title",a.name);B(1);E("header",c)("content",d)}},iwa=function(a){a&1&&(F(0,"ul",6),M(1,hwa,6,3,"li",7),G());a&2&&(a=K(2),B(1),E("ngForOf",a.bookmarkGroups))},
jwa=function(a){a&1&&M(0,iwa,2,1,"ul",5);a&2&&(a=K(),E("ngIf",a.bookmarkGroups))},kwa=function(a){if(a&1){var b=x();F(0,"span");O(1,"Hotlists");G();F(2,"b-hotlist-search-popup",4);J("itemSelect",function(c){z(b);var d=K();io(d.analytics,"hotlistSearch","goToHotlist");d.location.url(c.href);return A()});G()}a&2&&(B(2),E("showGroups",!1))},lwa=function(a){a&1&&(F(0,"button",14),H(1,"mat-icon",15),G());if(a&2){K();var b=Fe(6);E("matMenuTriggerFor",b)}},mwa=function(a){if(a&1){var b=x();F(0,"button",
16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});O(1," Unstar ");G()}},nwa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},owa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditHotlist(c.id))});O(1," Settings ");G();M(2,mwa,2,0,"button",17);M(3,nwa,2,0,"button",17)}a&2&&(a=K().$implicit,B(2),
E("ngIf",a.isUnstarable()),B(1),E("ngIf",!a.isPreferredHomepage()))},pwa=function(a,b){if(a&1){var c=x();F(0,"li",8)(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",10);O(3);G()();M(4,lwa,2,1,"button",11);F(5,"mat-menu",null,12);M(7,owa,4,2,"ng-template",13);G()()}a&2&&(a=b.$implicit,pe("selected",a.isSelected()),Ce("id","bv2-user-hotlists-hotlist-item-",a.id,""),E("title",a.name),B(1),E("href",a.href,Qd),B(2),He(a.name),B(1),E("ngIf",a))},
qwa=function(a){a&1&&(F(0,"ul",6),M(1,pwa,8,7,"li",7),G());a&2&&(a=K(2),B(1),E("ngForOf",a.hotlists))},rwa=function(a){a&1&&M(0,qwa,2,1,"ul",5);a&2&&(a=K(),E("ngIf",a.hotlists))},swa=function(a){return fta(a.getSearch())},twa=function(a){a&1&&(F(0,"span"),O(1,"Saved searches"),G())},uwa=function(a){if(a&1){var b=x();F(0,"button",14);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});O(1," Set as homepage ");G()}},wwa=function(a){if(a&1){var b=x();F(0,"button",14);
J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditSavedSearch(c.id))});O(1," Settings ");G();M(2,uwa,2,0,"button",15);F(3,"button",14);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(vwa(d,c))});O(4," Delete ");G()}a&2&&(a=K().$implicit,B(2),E("ngIf",!a.isPreferredHomepage()))},xwa=function(a,b){if(a&1){var c=x();F(0,"li",7)(1,"a",8);J("click",function(e){var f=z(c).$implicit,h=K(3);return A(h.onAnchorClick(f.href,e))});F(2,"span",9);O(3);G()();F(4,"button",10);
H(5,"mat-icon",11);G();F(6,"mat-menu",null,12);M(8,wwa,5,1,"ng-template",13);G()()}if(a&2){a=b.$implicit;var d=Fe(7);pe("selected",a.isSelected());me("id","bv2-saved-searches-search-item-",a.id,"");E("title",a.name);B(1);E("href",a.href,Qd);B(2);He(a.name);B(1);E("matMenuTriggerFor",d)}},ywa=function(a){a&1&&(F(0,"ul",5),M(1,xwa,9,7,"li",6),G());a&2&&(a=K(2),B(1),E("ngForOf",a.searches))},zwa=function(a){a&1&&M(0,ywa,2,1,"ul",4);a&2&&(a=K(),E("ngIf",a.searches))},Awa=function(a,b){for(a.has(b)&&a.delete(b);25<=
a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},Bwa=function(a,b){var c;b=null!=(c=null==b?void 0:b.split(","))?c:[];a.clear();c=r(b);for(b=c.next();!b.done;b=c.next())a.set(b.value,void 0)},Cwa=function(a){a&1&&(ve(0),F(1,"button",21),H(2,"mat-icon",22),G(),we());if(a&2){K();var b=Fe(12);B(1);E("matMenuTriggerFor",b)}},Ewa=function(a){if(a&1){var b=x();F(0,"button",23);J("click",function(){z(b);var c=K();return A(Dwa(c))});O(1," Set as homepage ");G()}},Gwa=function(a){if(a&1){var b=x();
F(0,"li")(1,"a",5);J("click",function(c){z(b);var d=K();return A(d.onAnchorClick(d.votedPath,c))});H(2,"mat-icon",24);O(3," Upvoted by me ");G()()}a&2&&(a=K(),pe("selected",Fwa(a.currentSearch)),B(1),E("href",a.votedPath,Qd))},Hwa=function(a,b){if(a&1){var c=x();F(0,"li")(1,"a",5);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.onAnchorClick(e,d))});H(2,"mat-icon",25);O(3," Recently Viewed ");G()()}a&2&&(a=b.$implicit,b=K(),pe("selected",!!b.location.path().match(/^\/recent\b/)),B(1),
E("href",a,Qd))},ko=function(a,b){switch(a){case "HOTLIST":return jo(b);case "BOOKMARK_GROUP":return"bookmarkGroups/"+b;case "SAVED_SEARCH":return"savedSearches/"+b;case "COMPONENT":return"components/"+b;case "ISSUE":return"issues/"+b;case "ISSUE_DEFAULTS":return"components/"+b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;default:throw Error("hd`"+a);}},Iwa=function(a){var b=new qm;a.teamId&&b.setTeamId(a.teamId);a.score&&pb(b,2,a.score,0);return b},lo=function(a){var b,
c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},Jwa=function(a){var b;return null==a?void 0:null==(b=a.snapshot)?void 0:b[0]},Kwa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.starred)||!1},Lwa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.lastViewedTimeMicros)||0},Mwa=function(a){var b;return null==(b=lo(a))?void 0:b.title},Nwa=function(a){var b,c;return null!=
(c=null==(b=lo(a))?void 0:b.status)?c:void 0},Owa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.priority)?c:void 0},Pwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.assigneeUser)?c:void 0},Qwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.reporterUser)?c:void 0},Rwa=function(a){var b,c;a=null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.teamId;return al(a)},Swa=function(a){var b;a=null==(b=lo(a))?void 0:b.componentId;return al(a)},
Twa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.ccUsers)?c:[]},Uwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.type)?c:void 0},Vwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.foundInVersion)?c:[]},Wwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.targetedToVersion)?c:[]},Xwa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.changelist)?c:[]},Ywa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.postmortems)?c:
[]},Zwa=function(a){var b;return(null==(b=lo(a))?void 0:b.inProd)||!1},$wa=function(a){var b;return null==(b=lo(a))?void 0:b.effort},axa=function(a){var b;return null!=(b=null==a?void 0:a.customFields)?b:[]},bxa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.customField)?c:[]},cxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.issue)?void 0:b.visibleFields)?c:[]},dxa=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},
exa=function(a){var b;return null!=(b=null==a?void 0:a.attachmentMap)?b:{}},fxa=function(a){var b,c;return(null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.userData)?void 0:c.voted)||!1},hxa=function(a){return gxa(null==a?void 0:a.issue)},gxa=function(a){var b,c;return null!=(c=null==(b=Jwa(a))?void 0:b.isDeleted)?c:!1},jxa=function(a){return ixa(null==a?void 0:a.issue)},ixa=function(a){var b;return null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},kxa=function(a){var b;return(a=null==
a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},mxa=function(a){return lxa(null==a?void 0:a.issue)},lxa=function(a){var b,c;return null!=(c=null==(b=Jwa(a))?void 0:b.retention)?c:void 0},nxa=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.duplicateOfIssueId)?c:void 0},pxa=function(a){return oxa(null==a?void 0:a.issue)},oxa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},qxa=function(a){var b,
c;return null!=(c=eva(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloStatus))?c:void 0},rxa=function(a){var b;return al(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloId)},sxa=function(a){var b;return null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.createdTimeMicros},txa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.teamSuggestions)?void 0:b.map(Iwa))?c:[]},uxa=function(a){return(null==a?void 0:a.effortSpec)&&wl(a.effortSpec)},vxa=function(a){a=uxa(a);
return!(!a||!a.getName()&&!a.getInherit())},wxa=function(a){return null==a?void 0:a.componentPathInfo},xxa=function(a){a=a.filter(function(b){return null!=b.customFieldId}).map(function(b){return String(b.customFieldId)});return new Set(a)},yxa=function(a){if(!a)return{};var b,c=r(null!=(b=a.match(RegExp("comment([0-9]+)")))?b:[]);c.next();b=c.next().value;var d;a=r(null!=(d=a.match(RegExp("comment[0-9]+version([0-9]+)")))?d:[]);a.next();d=a.next().value;return{commentNumber:$k(b),commentVersion:$k(d)}},
zxa=function(a){a&1&&H(0,"bug-screensaver")},Axa=function(a){a&1&&Be(0)},Bxa=function(a){a&1&&xe(0)},Cxa=function(a){if(a&1){var b=x();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Bxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Fe(1),d;E("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",
null!==(d=a.tooltip)&&void 0!==d?d:"");ke("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);E("ngTemplateOutlet",c)}},Dxa=function(a){a&1&&xe(0)},Exa=function(a){if(a&1){var b=x();F(0,"button",10,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Dxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Fe(1),d;E("color",
a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ke("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);E("ngTemplateOutlet",c)}},Fxa=function(a){a&1&&xe(0)},Gxa=function(a){if(a&1){var b=x();F(0,"button",11,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,
Fxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Fe(1),d;E("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ke("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);E("ngTemplateOutlet",c)}},Hxa=function(a){a&1&&xe(0)},Ixa=function(a){if(a&1){var b=x();F(0,"button",12,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",
function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Hxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Fe(1),d;E("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ke("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);E("ngTemplateOutlet",c)}},Jxa=function(a){a&1&&xe(0)},Kxa=function(a){if(a&1){var b=x();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);
K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});M(2,Jxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=Fe(1),d;E("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");ke("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);E("ngTemplateOutlet",c)}},Lxa=function(a){if(a&1){var b=x();F(0,"b-callout",1)(1,"b-callout-body");O(2," You can now enable real time notifications in ");
F(3,"a",2);J("click",function(){z(b);var c=K();io(c.analytics,mo.G3N,"linkout","announcement");return A()});O(4,"G3N");G();O(5," settings. ");G();F(6,"b-callout-actions")(7,"button",3);J("click",function(){z(b);var c=K();return A(c.dismiss())});O(8,"Dismiss");G()()()}},Mxa=function(){return{color:"accent",clickAction:"check-indeterminate"}},Nxa=function(a,b){if(a&1){var c=x();ve(0);F(1,"iframe",6);J("load",function(){z(c);var d=K();return A(d.contentLoaded=!0)});G();we()}a&2&&(a=b.$implicit,b=K(),
B(1),pe("loading",!b.contentLoaded),E("src",a,gea))},Oxa=function(a){a&1&&H(0,"mat-spinner",7)},Pxa=function(a){var b;return null==(b=a.formContent)?void 0:b.locale},Sxa=function(a){var b=Pxa(a);b=(b&&Qxa.includes(b)?Pxa(a):"en").replaceAll("-","_").toLowerCase();var c;a=(null==(c=a.initializationData)?0:c.useNightlyRelease)?"nightly":"live";return Ch(Rxa,a,b)},Uxa=function(a,b,c){if(Txa)return Txa;var d=Sxa(a);return Txa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(e,
f){var h=c.createElement("script");zh(h,d);h.onload=function(){b.feedbackV2GlobalObject?e(b.feedbackV2GlobalObject):f("feedbackV2GlobalObject not found on window.")};h.onerror=function(){f("Feedback binary script tag failed to load: "+d.toString())};c.body.appendChild(h)})},Vxa=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,u;return ef(function(y){switch(y.nextAddress){case 1:return f=Date.now(),ff(y,Uxa(a,c,d),2);case 2:h=y.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||
(null==(u=a.initializationData)?0:u.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);y.jumpTo(3);break}return ff(y,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=y.yieldResult;case 3:return k.initiateAloha(),y.return(k)}})},Wxa=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k;ef(function(q){f=e=c||da;if(f.isFormOpened)throw h=Error("id"),h.name="DuplicateFormError",h;f.isFormOpened=!0;a.callbacks=a.callbacks||{};k=a.callbacks.onClose||function(){};a.callbacks.onClose=function(u){f.isFormOpened=
!1;k(u)};try{return q.return(Vxa(a,b,f,e.document,d))}catch(u){throw f.isFormOpened=!1,u;}})},Yxa=function(a,b){return ef(function(c){return c.return(new Promise(function(d){var e=Xxa(null!=b?b:"")+"/aloha_form_properties?productId="+a;zi(e,function(f){f=f.target;var h=null;try{h=no(oo,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new oo,h=new po,h=qo(h,5,!1),h=qo(h,2,!1),h=qo(h,4,!1),h=qo(h,7,!1),h=Db(f,1,h)}d(h)},"GET","",{},2E3,!0)}))})},Xxa=function(a){return Zxa.includes(a)?a:"https://www.google.com/tools/feedback"},
aya=function(){var a=Object.values(ro),b=a.map(function(c){return c-1}).reduce($xa,0);a=a.reduce($xa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},bya=function(a){a=void 0===a?!1:a;var b=aya(),c=b.total,d=b.redundancyRatio;Yn("after-60s","xhr","redundant",b.redundant);Yn("after-60s","xhr","total",c);Yn("after-60s","xhr","redundancyRatio",d);if(a){a=console;c=a.table;d={};for(var e=r(Object.entries(ro)),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;
1<h&&(d[f]=h)}c.call(a,d);console.log(b)}},cya=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.toggle())});H(1,"mat-icon",5);G()}a&2&&(a=K(),pe("isClosed",a.isClosed),E("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),ke("aria-label",a.toggleButtonLabel),B(1),E("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},dya=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},eya=function(a){a=a.getBoundingClientRect();
return 0<a.bottom&&a.top<window.innerHeight},fya=function(a,b,c,d){var e=(d=void 0===d?!1:d)?function(f){return c.partially(f)}:function(f){return c.fully(f)};return(new T.Observable(function(f){f.next(e(a));var h=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});h.observe(a);return function(){h.unobserve(a)}})).pipe(Sf())},gya=function(a,b,c){var d=(void 0===c?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return(0,T.merge)((0,T.of)(void 0),(0,T.fromEvent)(window,
"scroll").pipe(Qf(500))).pipe(R(function(){return d(a)}),Sf())},hya=function(a){a=void 0===a?"":a;var b=void 0===b?48:b;var c=void 0===c?"...":c;var d=[].concat(v(a));if(d.length<=b)return a;a=b-[].concat(v(c)).length;d=d.slice(0,a).join("");null!=String.prototype.trimEnd&&(d=d.trimEnd());return d+c},iya=function(a){a=void 0===a?"":a;var b=new Set([].concat(v('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(v(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return 0===a.length?[]:
a.split(/[\s]+/g)},jya=function(a){return a.split("").every(function(b){return 1===b.length&&0<=b.charCodeAt(0)&&255>=b.charCodeAt(0)})},kya=function(a){a&1&&(ve(0),H(1,"img",3),P(2,"async"),we());if(a&2){a=K(2);var b;B(1);E("src",Q(2,2,a.srcRedirected$),Qd);ke("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},lya=function(a){a&1&&(ve(0),M(1,kya,3,4,"ng-container",0),P(2,"async"),we());if(a&2){a=K();var b=Fe(3);B(1);E("ngIf",Q(2,2,a.showImage$))("ngIfElse",b)}},mya=function(a){if(a&1){var b=
x();F(0,"a",4);J("click",function(c){z(b);var d=K();return A(d.trigger(c))})("keydown.enter",function(c){z(b);var d=K();return A(d.trigger(c))});P(1,"async");P(2,"async");F(3,"b-glue");H(4,"mat-icon",5);G();ve(5);O(6);P(7,"async");we();G()}a&2&&(a=K(),E("href",Q(1,3,a.src$),Qd)("title",Q(2,5,a.src$)),B(6),He(Q(7,7,a.srcTruncated$)))},nya=function(a){a&1&&(H(0,"mat-icon",6),P(1,"async"));a&2&&(a=K(),Ce("matTooltip","Unable to load image ",Q(1,1,a.srcTruncated$),""))},pya=function(a){if(a&1){var b=
x();F(0,"a",9);J("keydown.enter",function(){z(b);var c=K(2);return A(oya(c))})("keydown.space",function(){z(b);var c=K(2);return A(oya(c))})("click",function(){z(b);var c=K(2);return A(oya(c))});O(1," Dismiss");G()}},qya=function(a){a&1&&(F(0,"div",5)(1,"div",6),H(2,"span",7),M(3,pya,2,0,"a",8),G()());a&2&&(a=K(),B(2),E("innerHtml",a.announcement.message,Pd),B(1),E("ngIf",a.announcement.dismissible))},rya=function(a){if(a&1){var b=x();F(0,"b-callout",10)(1,"b-callout-body");O(2," This version of the Issue Details page will be turned down in May 2022 (");
F(3,"a",11);O(4,"info");G();O(5,"). Please ");F(6,"a",12);J("click",function(){z(b);var c=K();return A(c.toggleNewIssueDetailsPage(!0))});O(7,"switch to the new version");G();O(8,".");H(9,"br");O(10," If there are issues preventing you from switching, please let us know by filing feedback. ");G();F(11,"b-callout-actions")(12,"button",13);J("click",function(){z(b);var c=K();return A(c.startFeedback())});O(13,"Send Feedback");G();F(14,"button",14);J("click",function(){z(b);var c=K();window.sessionStorage.setItem("idpDeprecationDismissTime",
String(new Date));c.showIdpDeprecationBanner=!1;return A()});H(15,"mat-icon",15);G()()()}},tya=function(a){if(a&1){var b=x();F(0,"b-resizable-sidebar",16);J("widthChanged",function(c){z(b);var d=K();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,sya(d,c));return A()});H(1,"b-sidebar");G()}a&2&&(a=K(),E("size",a.matSidebarWidth)("disableToggleBtn",!0))},uya=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},
vya=function(a){a&1&&(F(0,"div",2),O(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. "),F(2,"a",13),O(3," Learn more "),G()());a&2&&(a=K(2),B(2),E("href",a.getRestrictedAccessHelpLink(),Qd))},xya=function(a){a&1&&(ve(0),M(1,vya,4,1,"div",8),we());a&2&&(a=K(),B(1),E("ngIf",wya(a)))},yya=function(a){a&1&&(F(0,"div",2)(1,"span",14),O(2," You do not have access to view this attachment. "),
G()())},zya=function(a){a&1&&H(0,"mat-spinner",15)},Aya=function(a){return so({id:a.getId(),std_offset:p(a,3),names:lb(a,2),transitions:lb(a,4)||[]})},Bya=function(a,b){b=void 0===b?!1:b;var c=new Ni,d=new Ni;d.setTime(a);if(d.getTime()<c.getTime())return"Expired";a=12*(d.getFullYear()-c.getFullYear())+(d.getMonth()-c.getMonth());var e=d.getDate()-c.getDate();0>e&&(a--,c=c.clone(),c.add(new to("m",a)),e=Math.floor((d.getTime()-c.getTime())/864E5));d=new to(Math.floor(a/12),a%12,e);if(1<=d.years)return c=
1<d.years?"s":"",0===d.months&&0===d.days?b?d.years+" year"+c:d.years+"Y":b?d.years+" year"+c+" +":d.years+"Y+";if(1<=d.months)return c=1<d.months?"s":"",0===d.days?b?d.months+" month"+c:d.months+"M":b?d.months+" month"+c+" +":d.months+"M+";c=1<d.days?"s":"";return b?d.days+" day"+c:d.days+"D"},Cya=function(a,b){a&1&&(ve(0),F(1,"time",1),P(2,"async"),O(3),G(),we());a&2&&(a=b.ngIf,b=K(),B(1),E("title",a.title),ke("datetime",Q(2,3,b.timestampIso$)),B(2),He(a.formatted))},uo=function(a){if(!a)return 0;
if(a instanceof vj){var b=a.getSeconds();a=a.getNanos()||0}else b=a.seconds,a=a.nanos;return 1E3*b+a/1E6},vo=function(a){var b=a+" day"+(1<a?"s":"");if(365>a)return b;a=Math.round(a/365*10)/10;return b+" (~"+(a+" year"+(1<a?"s":""))+")"},Eya=function(a){if(a&1){var b=x();F(0,"button",10);J("click",function(){z(b);var c=K(2),d=new Ni;c.date=d;c.dateSelectionChange.emit(d);Dya(c);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});O(1,"Today");G()}},Fya=function(a){if(a&1){var b=x();F(0,"button",
11);J("click",function(){z(b);var c=K(2);c.date=void 0;c.dateSelectionChange.emit(void 0);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});O(1,"None");G()}},Gya=function(a){a&1&&(F(0,"div",7),M(1,Eya,2,0,"button",8),M(2,Fya,2,0,"button",9),H(3,"mat-divider"),G());a&2&&(a=K(),B(1),E("ngIf",a.todayButtonEnabled),B(1),E("ngIf",a.noneButtonEnabled&&!a.required))},Hya=function(a){a&1&&H(0,"b-formatted-date-time",4);a&2&&(a=K(),E("date",a.value))},Iya=function(a){a&1&&(ve(0),O(1,"---"),we())},
Jya=function(a){a&1&&H(0,"mat-pseudo-checkbox",5);a&2&&(a=K(),E("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Kya=function(a,b){if(a&1){var c=x();F(0,"div",8)(1,"mat-checkbox",9);J("change",function(){var d=z(c).$implicit,e=K();e.focusFilterBox();var f=e.valueMap.get(d);f?e.valueMap.set(d,!1):!1===f?(f=null===e.originalValueMap.get(d),e.valueMap.set(d,f?null:!0)):e.valueMap.set(d,!0);e.onSave.emit({valueMap:e.valueMap,valueChanged:e.valueChanged()});return A()})("click",function(d){return d.stopPropagation()});
O(2);G()()}a&2&&(a=b.$implicit,b=K(),E("title",b.getDisplayString(a)),B(1),E("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),B(1),Ge(" ",b.getDisplayString(a)," "))},Mya=function(a){if(a&1){var b=x();F(0,"input",10,11);J("keydown",function(c){z(b);var d=K();"Enter"===c.key&&(Lya(d)&&d.addValue(),c.preventDefault());return A()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){z(b);var d=K();return A(d.filterValue=c)});G()}a&2&&(a=K(),E("type","REPEATED_NUMERIC"===
a.type?"number":"text")("ngModel",a.filterValue)("placeholder","REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},Nya=function(a){a&1&&H(0,"mat-divider")},Oya=function(a){if(a&1){var b=x();F(0,"div",12);J("click",function(c){z(b);var d=K();c.stopPropagation();return A(d.addValue())});O(1," Add ");G()}},Pya=function(a){if(a&1){var b=x();F(0,"div")(1,"b-date-time-input",13);J("valueChange",function(c){z(b);var d=K();return A(d.currentSelectedDate=c)});G();F(2,"div",14);J("click",function(c){z(b);
var d=K();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return A()});O(3," Add ");G()()}a&2&&(a=K(),B(1),E("value",a.currentSelectedDate))},Qya=function(a){if(a&1){var b=x();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});Be(1);G()}a&2&&(a=K(),ke("id",a.id))},Rya=function(a){a&1&&xe(0)},Tya=function(a){if(a&1){var b=x();F(0,"div",3);J("click",function(){z(b);
var d=K();return A(d.select(void 0))});M(1,Rya,1,0,"ng-container",4);G()}if(a&2){a=K();var c=Fe(3);E("option",void 0);ke("aria-selected",a.isSelected(void 0));B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Ke(4,Sya))}},Uya=function(a){a&1&&xe(0)},Wya=function(a){if(a&1){var b=x();F(0,"div",3);J("click",function(){z(b);var e=K().$implicit,f=K();return A(f.select(e))});M(1,Uya,1,0,"ng-container",4);G()}if(a&2){a=K().$implicit;var c=K(),d=Fe(3);E("option",a);ke("aria-selected",c.isSelected(a));
B(1);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Le(4,Vya,a))}},Xya=function(a,b){a&1&&(ve(0),M(1,Wya,2,6,"div",0),we());a&2&&(a=b.$implicit,B(1),E("ngIf",a))},Yya=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K(2).$implicit,B(1),Ge(" ",a," "))},Zya=function(a){a&1&&(F(0,"span",8),O(1,"--"),G())},$ya=function(a){a&1&&(ve(0),M(1,Yya,2,1,"ng-container",5),M(2,Zya,2,0,"ng-template",null,7,Mf),we());if(a&2){var b=Fe(3);a=K().$implicit;B(1);E("ngIf",null!=a)("ngIfElse",b)}},aza=function(a){a&1&&xe(0)},
bza=function(a){a&1&&M(0,aza,1,0,"ng-container",4);if(a&2){a=K().$implicit;var b=K();E("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Le(2,Vya,a))}},cza=function(a){a&1&&(M(0,$ya,4,2,"ng-container",5),M(1,bza,1,4,"ng-template",null,6,Mf));if(a&2){var b=Fe(2);a=K();E("ngIf",!a.optionTemplate)("ngIfElse",b)}},dza=function(a){a&1&&xe(0)},fza=function(a){a&1&&(ve(0),M(1,dza,1,0,"ng-container",10),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Le(2,
eza,a.value)))},gza=function(a){a&1&&xe(0)},hza=function(a){a&1&&(ve(0),M(1,gza,1,0,"ng-container",10),we());a&2&&(a=K(2),B(1),E("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Le(2,eza,a.value)))},iza=function(a){a&1&&M(0,hza,2,4,"ng-container",3);if(a&2){a=K();var b=Fe(8);E("ngIf",a.optionTemplate)("ngIfElse",b)}},jza=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K(2),B(1),Ge(" ",a.value," "))},kza=function(a){a&1&&(F(0,"span",12),O(1,"--"),G())},lza=function(a){a&1&&(M(0,jza,2,1,"ng-container",
3),M(1,kza,2,0,"ng-template",null,11,Mf));if(a&2){var b=Fe(2);a=K();E("ngIf",null!=a.value)("ngIfElse",b)}},mza=function(a){a&1&&(Qc(),F(0,"svg",13),H(1,"path",14),G())},nza=function(a){a&1&&(F(0,"div"),O(1," The selected issues have no custom fields in common. "),G())},oza=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},pza=function(a){if(a&1){var b=x();F(0,"input",16);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;return A(d.textValue=c)});G()}a&2&&(a=K(2).$implicit,K(),E("ngModel",a.textValue),
ke("aria-labelledby",wo(a)))},qza=function(a){if(a&1){var b=x();F(0,"input",17);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;return A(d.numericValue=c)});G()}a&2&&(a=K(2).$implicit,K(),E("ngModel",a.numericValue),ke("aria-labelledby",wo(a)))},sza=function(a){if(a&1){var b=x();F(0,"div")(1,"b-date-time-input",18);J("valueChange",function(e){z(b);var f=K(2).$implicit;K();return A(f.dateValue=e?Rk(e):void 0)});G()()}if(a&2){a=K(2).$implicit;var c=K(),d;B(1);E("value",null!==(d=rza(a.dateValue))&&
void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",wo(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},uza=function(a){if(a&1){var b=x();F(0,"onedev-single-select",19);J("valueChange",function(d){z(b);var e=K(2).$implicit;return A(e.enumValue=d)});G()}if(a&2){a=K(2).$implicit;K();var c;E("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:Ke(3,tza));ke("aria-labelledby",wo(a))}},wza=function(a){if(a&1){var b=x();F(0,"b-bulk-repeated-field-picker",
20);J("onSave",function(e){z(b);var f=K(2).$implicit,h=K();return A(vza(h,f.customFieldId,e))});G()}if(a&2){a=K(2).$implicit;var c=K(),d;E("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&void 0!==d?d:Ke(3,tza))}},xza=function(a){a&1&&(ve(0,10),M(1,pza,1,2,"input",11),M(2,qza,1,2,"input",12),M(3,sza,2,4,"div",13),M(4,uza,1,4,"onedev-single-select",14),M(5,wza,1,4,"b-bulk-repeated-field-picker",15),we());if(a&
2){a=K().$implicit;var b=K();E("ngSwitch",b.getCustomFieldType(a));B(1);E("ngSwitchCase","TEXT");B(1);E("ngSwitchCase","NUMERIC");B(1);E("ngSwitchCase","DATE");B(1);E("ngSwitchCase","ENUM")}},yza=function(a){if(a&1){var b=x();F(0,"span");O(1," Multiple values ");G();F(2,"a",21);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.clearCustomFieldValue(c))});O(3,"X");G()}},zza=function(a,b){a&1&&(F(0,"div",5)(1,"div",6)(2,"label",7),O(3),M(4,oza,2,0,"span",1),G()(),M(5,xza,6,5,"ng-template",
8),M(6,yza,4,0,"ng-template",null,9,Mf),G());if(a&2){a=b.$implicit;var c=Fe(7);K();B(2);E("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]");ke("id",wo(a));B(1);Ge(" ",a.name," ");B(1);E("ngIf",a.required);B(1);E("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},Aza=function(a){a&1&&H(0,"img",9);a&2&&(a=K(),E("src",a.person.imageUrl,Qd)("alt",a.person.name+"'s profile picture"))},Bza=function(a){a&1&&(F(0,"div",10),O(1),G());a&2&&(a=K(),B(1),Ge(" ",a.person.email," "))},Cza=function(a){a&1&&
(F(0,"div",11)(1,"onedev-chip",12),H(2,"mat-icon",13),O(3),G()());a&2&&(a=K(),B(3),Ge("",a.outOfOfficeDescription," "))},Dza=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(2),B(1),He(a.person.title))},Eza=function(a){a&1&&H(0,"li",18)},Fza=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(2),B(1),He(a.person.department))},Gza=function(a){a&1&&(ve(0),H(1,"mat-icon",14),F(2,"div",15)(3,"ul",16),M(4,Dza,2,1,"li",8),M(5,Eza,1,0,"li",17),M(6,Fza,2,1,"li",8),G()(),we());a&2&&(a=K(),B(4),E("ngIf",a.person.title),
B(1),E("ngIf",a.person.title&&a.person.department),B(1),E("ngIf",a.person.department))},Hza=function(a){a&1&&(ve(0),H(1,"mat-icon",19),F(2,"div",15),O(3),G(),we());a&2&&(a=K(),B(3),He(a.person.location))},Iza=function(a){a&1&&(ve(0),H(1,"mat-icon",20),F(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),O(6,"Teams"),G()(),H(7,"li",18),F(8,"li")(9,"a",21),O(10,"Calendar"),G()(),H(11,"li",18),F(12,"li")(13,"a",21),O(14,"CLs"),G()(),H(15,"li",18),F(16,"li")(17,"a",21),O(18,"Readability"),G()()()(),we());a&2&&
(a=K(),B(5),E("href","https://teams.googleplex.com/"+a.person.ldap,Qd),B(4),E("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Qd),B(4),E("href","https://critique.corp.google.com/"+a.person.ldap,Qd),B(4),E("href","https://icanread.corp.google.com/s/"+a.person.ldap,Qd))},Jza=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},Kza=function(a){if(null!=a.queryParams){var b={},c;for(c in a.queryParams)void 0!==a.queryParams[c]&&
(b[c]=a.queryParams[c]);a.queryParams=b}},Lza=function(a,b,c){c=void 0===c?{}:c;b=r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},Mza=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},Nza=function(a,b){return xo(b,a)},Oza=function(a,b,c){b[a]=c},Pza=function(){return{}},Tza=function(a,b){var c=new a;return null==b?c:yo(b,Qza,
Rza,Sza,a)},Qza=function(a,b){return b[a]},Rza=function(a,b,c){b.Serializable$values[a]=c},Sza=function(a){if(null==a)throw Error("Dd");return new a},yo=function(a,b,c,d,e){e=d(e);for(var f=Uza(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},u={},y=r(f.keys||[]),D=y.next();!D.done;u={$jscomp$loop$prop$mapMetadata$1689:u.$jscomp$loop$prop$mapMetadata$1689},D=y.next()){D=D.value;var I=b(D,a);if(null!=I){var N=void 0;if(h.hasOwnProperty(D)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=zo(I,
b,c,d,!0,!0,h[D])}else if(k.hasOwnProperty(D))N=zo(I,b,c,d,!1,!0,k[D]);else if(q.hasOwnProperty(D))u.$jscomp$loop$prop$mapMetadata$1689=q[D],N=u.$jscomp$loop$prop$mapMetadata$1689.isPropertyArray?I.map(function(L){return function(S){return Vza(S,L.$jscomp$loop$prop$mapMetadata$1689,b,c,d)}}(u)):Vza(I,u.$jscomp$loop$prop$mapMetadata$1689,b,c,d);else if(Array.isArray(I)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=zo(I,b,c,d,!0,!1)}else N=I;c(D,e,N)}}return e},Vza=function(a,b,c,d,e){for(var f=
{},h=r(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];null!=q&&(f[k]=zo(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},zo=function(a,b,c,d,e,f,h){if(f&&null==h)throw Error("Ed");if(null==a)return a;var k;e&&f?k=a.map(function(q){return yo(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?yo(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):a;return k},Uza=function(a,b){if(b instanceof Ao)a=Mza(b.getPartialClassMetadata());else if(a instanceof Ao)a=
Mza(a.getPartialClassMetadata());else throw Error("Fd");return a},Xza=function(a){return a&&Wza.test(a)?a.split("@")[0]:""},Yza=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},Zza=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},$za=function(a,b){a&1&&(F(0,"onedev-person-hovercard-body",1),P(1,"async"),Be(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),
Be(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),G());a&2&&(a=b.ngIf,b=K(),E("person",a)("outOfOfficeDescription",Q(1,2,b.outOfOfficeDescription$)))},aAa=function(a){a&1&&(F(0,"onedev-person-hovercard",1,2),Be(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),G());if(a&2){var b=Fe(1);a=K();E("email",a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},bAa=function(a){a&1&&xe(0)},cAa=function(a){a&1&&(ve(0),F(1,"span",2),
M(2,bAa,1,0,"ng-container",3),G(),F(3,"onedev-hovercard",null,4),H(5,"b-person-card",5),G(),we());if(a&2){var b=Fe(4);a=K();var c=Fe(2);B(1);E("onedevHovercardTrigger",b)("onedevHovercardActive",!!a.email);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.email)}},dAa=function(a){a&1&&Be(0)},eAa=function(a,b){a&1&&(F(0,"div",1),Qc(),F(1,"svg",2)(2,"g"),H(3,"path",3),G()(),Rc(),F(4,"span",4),O(5),G()());a&2&&(a=b.ngIf,ke("aria-label",a)("title",a),B(5),He(a))},fAa=function(a){a&1&&H(0,"waldo-availability-chip",
1);a&2&&(a=K(),E("user",a.user),ke("coinonly",a.coinonly))},gAa=function(a){return a.retentionPeriod&&(a=Rra(a.retentionPeriod))?vo(Math.floor(1E3*a.getSeconds()/864E5)):"indefinite"},Bo=function(a){return"number"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},hAa=function(a,b){a&1&&(F(0,"li"),O(1),G());a&2&&(a=b.$implicit,B(1),He(a))},iAa=function(a,b,c,d){c&&c.hasTargetTime()&&(c.hasEndTime()?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},kAa=function(a,
b){a=a.sloBounds.getTargetTime().getSeconds();b=b.sloBounds.getTargetTime().getSeconds();return a-b},Co=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},lAa=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0}},Do=function(a){return a?fa(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},Eo=function(a){return a.customFieldValue?String(a.customFieldValue.customFieldId):a.fieldName},oAa=function(a){if(a&1){var b=x();ve(0,3);F(1,"onedev-hovercard-action",
4);J("onAction",function(){z(b);var e=K();return A(mAa(e))});P(2,"async");F(3,"span");O(4);G()();F(5,"onedev-hovercard-action",4);J("onAction",function(){z(b);var e=K();return A(nAa(e))});P(6,"async");F(7,"span");O(8);G()();we()}if(a&2){a=K();var c,d;B(1);E("disabled",null!==(c=Q(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);B(3);He(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B(1);E("disabled",null!==(d=Q(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);B(3);He(a.currentCc.includes(a.email)?
"Remove from CCs":"Add to CCs")}},pAa=function(a){a&1&&(ve(0),H(1,"b-availability-chip",3),we());a&2&&(a=K(2).ngIf,B(1),E("user",a.email))},qAa=function(a){a&1&&(ve(0),O(1),we(),M(2,pAa,2,1,"ng-container",0));if(a&2){a=K().ngIf;var b=K();B(1);He(a.content);B(1);E("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},rAa=function(a){a&1&&xe(0)},sAa=function(a){a&1&&(ve(0),F(1,"span",4),M(2,rAa,1,0,"ng-container",5),G(),F(3,"onedev-hovercard",null,6),H(5,"b-issue-person-card",7),G(),we());
if(a&2){var b=Fe(4);a=K().ngIf;var c=Fe(2),d=K();B(1);E("onedevHovercardTrigger",b);ke("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.email)}},tAa=function(a,b){a&1&&(ve(0),M(1,qAa,3,2,"ng-template",null,1,Mf),M(3,sAa,6,4,"ng-container",2),we());if(a&2){a=b.ngIf;var c=Fe(2);b=K();B(3);E("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},uAa=function(a){a&1&&H(0,"b-user-display-name",2);a&2&&(a=K(),E("email",a.getEmailAddress())("hovercardEnabled",
!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},vAa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),He(a.getDisplayString()))},wAa=function(a){a&1&&xe(0)},xAa=function(a){a&1&&(ve(0),F(1,"span",3),M(2,wAa,1,0,"ng-container",4),G(),F(3,"onedev-hovercard",null,5),H(5,"b-issue-person-card",6),G(),we());if(a&2){var b=Fe(4);a=K().ngIf;var c=Fe(3);B(1);E("onedevHovercardTrigger",b);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.email)}},
yAa=function(a){a&1&&H(0,"img",9);a&2&&(a=K(2).ngIf,E("src",a.src,Qd)("srcset",a.srcset,Qd))},zAa=function(a){a&1&&(F(0,"span",7),M(1,yAa,1,2,"img",8),G());a&2&&(a=K().ngIf,pe("anonymous",!a.showImage),B(1),E("ngIf",a.showImage))},AAa=function(a,b){a&1&&(ve(0),M(1,xAa,6,3,"ng-container",1),M(2,zAa,2,3,"ng-template",null,2,Mf),we());if(a&2){a=b.ngIf;var c=Fe(3);b=K();B(1);E("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},BAa=function(a){a&1&&(F(0,"div",8),H(1,"b-spinner"),G())},CAa=function(a){a&
1&&H(0,"code",22);a&2&&(a=K(2).$implicit,K(2),E("innerHtml",th(a.formattingModeDiff),Pd))},DAa=function(a){a&1&&(F(0,"code",23),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ge(" ",a.formattingMode," "))},EAa=function(a){a&1&&(F(0,"p",19),O(1," Formatting: "),M(2,CAa,1,1,"code",20),M(3,DAa,2,1,"code",21),G());a&2&&(a=K(3),B(2),E("ngIf",a.diffView),B(1),E("ngIf",!a.diffView))},FAa=function(a){if(a&1){var b=x();F(0,"div")(1,"span",24)(2,"b-person-hovercard",25);P(3,"omitObfuscatedEmail");O(4);P(5,"appendDomain");
G()();F(6,"a",26);J("click",function(c){z(b);var d=K().$implicit,e=K(2);d=d.version;c.stopPropagation();c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return A()});O(7);G()()}a&2&&(a=K().$implicit,K(2),B(2),E("email",Q(3,5,Tl(a.lastEditorUser))),B(2),Ge(" <",Q(5,7,Tl(a.lastEditorUser)),"> "),B(2),me("aria-label","Comment version ",a.version,""),Ce("id","bv2-edit-issue-comment-",a.version,""),B(1),Ge(" #",a.version,""))},GAa=function(a){a&1&&(F(0,
"div",30),O(1),G());a&2&&(a=K(2).$implicit,B(1),He(a.preview))},HAa=function(a){a&1&&(F(0,"div",31),O(1,"Comment deleted."),G())},IAa=function(a){a&1&&(F(0,"div",32),O(1,"Comment history restricted."),G())},JAa=function(a){a&1&&(ve(0),M(1,GAa,2,1,"div",27),M(2,HAa,2,0,"div",28),M(3,IAa,2,0,"div",29),we());a&2&&(a=K().$implicit,B(1),E("ngIf",!a.restricted&&!a.deleted),B(1),E("ngIf",!a.restricted&&a.deleted),B(1),E("ngIf",a.restricted))},KAa=function(a){a&1&&(F(0,"div",35),O(1,"Comment deleted."),G())},
LAa=function(a){a&1&&(F(0,"div",36),P(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);pe("codefont",Q(1,3,b.codefont.codefont$));E("innerHtml",a.comment,Pd)}},MAa=function(a){a&1&&(F(0,"div",36),P(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);pe("codefont",Q(1,3,b.codefont.codefont$));E("innerHtml",th(a.diff),Pd)}},NAa=function(a){a&1&&(F(0,"div",32),O(1," This comment is not available due to present or past restrictions on the comment. "),G())},OAa=function(a){a&1&&(ve(0),M(1,KAa,2,0,"div",
33),M(2,LAa,2,5,"div",34),M(3,MAa,2,5,"div",34),M(4,NAa,2,0,"div",29),we());if(a&2){a=K().$implicit;var b=K(2);B(1);E("ngIf",!a.restricted&&a.deleted);B(1);E("ngIf",!b.diffView&&!a.restricted&&!a.deleted);B(1);E("ngIf",b.diffView&&!a.restricted&&!a.deleted);B(1);E("ngIf",a.restricted)}},PAa=function(a,b){if(a&1){var c=x();F(0,"li",11)(1,"div",12);H(2,"b-user-image",13);G();F(3,"div",14);J("click",function(){var d=z(c).$implicit;return A(d.open=!d.open)});H(4,"b-user-display",15)(5,"b-formatted-date-time",
16);M(6,EAa,4,2,"p",17);M(7,FAa,8,9,"div",18);M(8,JAa,4,3,"ng-container",18);G();M(9,OAa,5,4,"ng-container",18);G()}a&2&&(a=b.$implicit,K(2),pe("comment-version-open",a.open),B(2),E("email",Tl(a.lastEditorUser)),B(2),E("model",a.lastEditorUser),B(1),E("timestamp",a.lastModified),B(1),E("ngIf",!a.deleted),B(1),E("ngIf",a.open),B(1),E("ngIf",!a.open),B(1),E("ngIf",a.open))},QAa=function(a){a&1&&(F(0,"ul",9),M(1,PAa,10,9,"li",10),G());a&2&&(a=K(),B(1),E("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},
RAa=function(){},UAa=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=SAa?SAa:SAa=TAa(a)},VAa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},TAa=function(a){a=void 0===a?{}:a;var b;return ef(function(c){if(1==c.nextAddress)return(b=window.gapi)&&b.client&&b.client.load?c.return(b):ff(c,WAa(Fo(Go("https://apis.google.com/js/api.js")),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("Jd");return b.client&&b.client.load?c.jumpTo(3):
ff(c,VAa(),3)}return c.return(b)})},XAa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},YAa=function(a,b){b=void 0===b?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(Ho.has(a))return Ho.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){Ho.delete(a)});Ho.set(a,b);return b}return Promise.resolve()},ZAa=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:null!=(c=b.fetchBasicProfile)?c:!0})},$Aa=function(a){a&1&&H(0,"b-user-image",5);a&2&&(a=K(),E("email",a.email))},aBa=function(a){a&1&&xe(0)},bBa=function(a){a&1&&(ve(0),F(1,"span",6),M(2,aBa,1,0,"ng-container",7),G(),F(3,"onedev-hovercard",null,8),H(5,"b-issue-person-card",9),G(),we());if(a&2){var b=Fe(4);a=K();var c=Fe(4);B(1);E("onedevHovercardTrigger",b);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.email)}},cBa=function(a){a&1&&(F(0,"span"),O(1),
G());a&2&&(a=K(),B(1),He(a.email))},dBa=function(a){a&1&&(F(0,"span",10),H(1,"b-availability-chip",11),G());a&2&&(a=K(),B(1),E("user",a.email))},eBa=function(a){a&1&&H(0,"b-user-image",6);a&2&&(a=K(),E("email",a.email))},fBa=function(a){a&1&&H(0,"b-user-display-name",7);a&2&&(a=K(),E("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},gBa=function(a){a&1&&xe(0)},hBa=function(a){a&1&&(ve(0),F(1,"span",10),M(2,gBa,1,0,"ng-container",11),G(),F(3,"onedev-hovercard",null,12),H(5,
"b-issue-person-card",13),G(),we());if(a&2){var b=Fe(4);K();var c=Fe(2);a=K();B(1);E("onedevHovercardTrigger",b);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.email)}},iBa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(2),B(1),He(a.email))},jBa=function(a){a&1&&(M(0,hBa,6,3,"ng-container",8),M(1,iBa,2,1,"ng-template",null,9,Mf));if(a&2){var b=Fe(2);a=K();E("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},kBa=function(a){a&1&&(H(0,"mat-icon",15),P(1,"async"),P(2,"async"));if(a&2){a=K();
var b,c;E("svgIcon",null!==(b=Q(1,2,a.iconName$))&&void 0!==b?b:"")("matTooltip",null!==(c=Q(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},lBa=function(a){a&1&&(ve(0),H(1,"b-availability-chip",16),we());a&2&&(a=K(),B(1),E("user",a.email))},oBa=function(a,b){var c=new mBa;a=Io(c,a,b);nBa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Vn("SPAN",{"class":"diff-removed"},d);case 1:return Vn("SPAN",{"class":"diff-added"},d);case 0:return Vn("SPAN",{"class":null},d);default:throw Error("Ld`"+
e);}});return Wn(c)},pBa=function(a){var b;return"DELETED"===(null==(b=a.entityStatus)?void 0:b.status)},qBa=function(a){a&1&&xe(0)},rBa=function(a){if(a&1){var b=x();F(0,"div",3);J("mouseenter",function(){z(b);var c=K();return A(c.toggle(!0))})("mouseleave",function(){z(b);var c=K();return A(c.toggle(!1))})("mousemove",function(){z(b);K().activity.next();return A()});M(1,qBa,1,0,"ng-container",4);G()}a&2&&(a=K(),E("ngClass",a.bubbleStyle)("@fade",void 0),B(1),E("ngTemplateOutlet",a.panelTemplate))},
sBa=function(a){a&1&&(ve(0),F(1,"span",3),O(2),P(3,"toAccessLevelLabel"),G(),we());a&2&&(a=K(2),B(1),pe("compact-chip",a.compactMode),E("ngClass",a.chipClass),B(1),Ge(" ",Pe(3,4,a.accessLevel,a.compactMode)," "))},tBa=function(a){a&1&&(F(0,"div",6),O(1),F(2,"a",7),O(3," Learn more"),G()());a&2&&(a=K(3),B(1),Ge(" ",a.bubbleText," "),B(1),E("href",Jo(a.documentationLinks),Qd))},uBa=function(a){a&1&&(F(0,"xap-bubble",4)(1,"span",3),O(2),P(3,"toAccessLevelLabel"),G(),M(4,tBa,4,2,"ng-template",null,5,
Mf),G());if(a&2){var b=Fe(5);a=K(2);E("panelTemplate",b);B(1);pe("compact-chip",a.compactMode);E("ngClass",a.chipClass);B(1);Ge(" ",Pe(3,5,a.accessLevel,a.compactMode)," ")}},vBa=function(a){a&1&&(ve(0),M(1,sBa,4,7,"ng-container",1),M(2,uBa,6,8,"ng-template",null,2,Mf),we());if(a&2){var b=Fe(3);a=K();B(1);E("ngIf",a.labelOnlyMode)("ngIfElse",b)}},wBa=function(a){a&1&&(F(0,"li")(1,"a",4),O(2," Create an issue in this component"),G()());a&2&&(a=K(2),B(1),E("href",a.createIssueUrl,Qd))},xBa=function(a,
b){a&1&&(ve(0),F(1,"h3"),O(2),G(),F(3,"p"),O(4),G(),H(5,"b-access-level-indicator",3),F(6,"p"),O(7),G(),F(8,"ul")(9,"li")(10,"a",4),O(11," View recent open issues"),G()(),M(12,wBa,3,1,"li",2),F(13,"li")(14,"a",4),O(15," View component"),G()()(),we());a&2&&(a=b.ngIf,b=K(),B(2),He(a.name),B(2),Ge("ID: ",b.componentId,""),B(1),E("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),He(a.description),B(3),E("href",b.recentIssuesUrl,Qd),B(2),E("ngIf",!b.isAnonymous),
B(2),E("href",b.viewComponentUrl,Qd))},yBa=function(a){a&1&&(F(0,"span",8),O(1),G());a&2&&(a=K(),B(1),He(a.placeholder))},zBa=function(a){a&1&&(F(0,"span",12),O(1),G());a&2&&(a=K(2),B(1),He(a.triggerValue))},ABa=function(a){a&1&&Be(0,0,["*ngSwitchCase","true"])},BBa=function(a){a&1&&(F(0,"span",9),M(1,zBa,2,1,"span",10),M(2,ABa,1,0,"ng-content",11),G());a&2&&(a=K(),E("ngSwitch",!!a.customTrigger),B(2),E("ngSwitchCase",!0))},CBa=function(a){if(a&1){var b=x();F(0,"div",13)(1,"div",14,15);J("@transformPanel.done",
function(c){z(b);var d=K();return A(d._panelDoneAnimatingStream.next(c.toState))})("keydown",function(c){z(b);var d=K();return A(d._handleKeydown(c))});Be(3,1);G()()}a&2&&(a=K(),E("@transformPanelWrap",void 0),B(1),ue("mat-select-panel ",a._getPanelTheme(),""),oe("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),E("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":"showing"),ke("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||
null)("aria-labelledby",a._getPanelAriaLabelledby()))},DBa=function(a,b){a&1&&(F(0,"mat-option",19),O(1),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",a," "))},EBa=function(a){if(a&1){var b=x();F(0,"mat-form-field",16)(1,"mat-select",17);J("selectionChange",function(c){z(b);var d=K(2);return A(d._changePageSize(c.value))});M(2,DBa,2,2,"mat-option",18);G()()}a&2&&(a=K(2),E("appearance",a._formFieldAppearance)("color",a.color),B(1),E("value",a.pageSize)("disabled",a.disabled)("panelClass",a.selectConfig.panelClass||
"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",a._intl.itemsPerPageLabel),B(1),E("ngForOf",a._displayedPageSizeOptions))},FBa=function(a){a&1&&(F(0,"div",20),O(1),G());a&2&&(a=K(2),B(1),He(a.pageSize))},GBa=function(a){a&1&&(F(0,"div",12)(1,"div",13),O(2),G(),M(3,EBa,3,8,"mat-form-field",14),M(4,FBa,2,1,"div",15),G());a&2&&(a=K(),B(2),Ge(" ",a._intl.itemsPerPageLabel," "),B(1),E("ngIf",1<a._displayedPageSizeOptions.length),B(1),E("ngIf",1>=a._displayedPageSizeOptions.length))},
HBa=function(a){if(a&1){var b=x();F(0,"button",21);J("click",function(){z(b);var c=K();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return A()});Qc();F(1,"svg",7);H(2,"path",22);G()()}a&2&&(a=K(),E("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),ke("aria-label",a._intl.firstPageLabel))},IBa=function(a){if(a&1){var b=x();Qc();Rc();F(0,"button",23);J("click",
function(){z(b);var c=K();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return A()});Qc();F(1,"svg",7);H(2,"path",24);G()()}a&2&&(a=K(),E("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),ke("aria-label",a._intl.lastPageLabel))},JBa=function(a){if(a&1){var b=x();F(0,"mat-paginator",3);J("page",function(c){z(b);var d=K(),e=c.pageIndex*
c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return A()});G()}a&2&&(a=K(),E("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},KBa=function(a,b){if(a&1){var c=x();F(0,"li")(1,"a",4);J("click",function(){var e=z(c).$implicit,f=K();return A(f.onVisit.emit(e))});O(2);G();F(3,"onedev-hovercard",null,5);H(5,"b-component-card",6);G()()}if(a&2){a=b.$implicit;var d=Fe(4);b=K();B(1);E("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId),
Qd);B(1);Ge(" ",a.name," ");B(3);E("componentId",a.componentId.toString())}},LBa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),pe("muted",a.isGreyedOut),B(1),Ge(" ",a.displayName,""))},MBa=function(a){if(a&1){var b=x();F(0,"a",2);J("click",function(c){z(b);var d=K();return A(d.handleClick(c))});O(1);G()}a&2&&(a=K(),E("href",a.linkUrl,Qd),B(1),Ge(" ",a.displayName,""))},NBa=function(a){if(a&1){var b=x();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.onClickCopyIssueShortLinks.emit())});
O(1);G()}a&2&&(a=K(),B(1),Ge(" Copy '",a.shortLinkPrefix,"'' links "))},OBa=function(a,b){a&1&&(F(0,"span",5)(1,"a",6),O(2),G(),F(3,"onedev-hovercard",null,7),H(5,"b-component-card",8),G()());if(a&2){a=b.$implicit;var c=Fe(4);B(1);E("onedevHovercardTrigger",c)("routerLinkObj",a.route);B(1);He(a.name);B(3);E("componentId",a.id.toString())}},PBa=function(a){a&1&&(F(0,"span",9),O(1,"[Archived]"),G())},Ko=function(a,b){b=void 0===b?rn:b;var c,d=null!=(c=null==a?void 0:a.componentPathId)?c:[],e,f=null!=
(e=null==a?void 0:a.componentPathName)?e:[];return d.map(function(h,k){var q;k=null!=(q=f[k])?q:String(h);q=b(h);return{id:h,name:k,route:q}})},QBa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),He(a.text))},RBa=function(a){a&1&&(F(0,"span"),H(1,"b-access-level-indicator",2),G());a&2&&(a=K().$implicit,B(1),E("accessLevel",a.accessLevel))},SBa=function(a,b){a&1&&(F(0,"span"),M(1,QBa,2,1,"span",1),M(2,RBa,2,1,"span",1),G());a&2&&(a=b.$implicit,b=K(),B(1),E("ngIf",b.isText(a)),B(1),
E("ngIf",!b.isText(a)))},TBa=function(a){if(a&1){var b=x();F(0,"div");H(1,"br");F(2,"mat-checkbox",8);J("ngModelChange",function(c){z(b);var d=K();return A(d.acknowledged=c)});G();F(3,"span");O(4,"All information in this issue is suitable for external sharing.");G()()}a&2&&(a=K(),B(2),E("ngModel",a.acknowledged))},UBa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.allow())});O(1," Move Issue ");G()}a&2&&(a=K(),E("disabled",!a.acknowledged))},Lo=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]]}))})},Mo=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},VBa=function(a){if(a&1){var b=x();F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},WBa=function(a){if(a&1){var b=x();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,
"mat-icon",20);G()}},YBa=function(a){a&1&&(F(0,"a",21),O(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;var b=K();E("href",b.paths.listIssues(Le(1,XBa,"status:open componentid:"+a.componentId)),Qd)}},ZBa=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),G())},$Ba=function(a){a&1&&(F(0,"a",22),O(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();E("href",b.paths.createIssue()+"?component="+a.componentId,Qd)}},aCa=function(a){a&1&&(F(0,"div",27),O(1," No child components found. "),G())},
bCa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},cCa=function(a){if(a&1){var b=x();F(0,"component-subtree-list",29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();E("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},dCa=function(a){a&1&&(F(0,"div",23),M(1,aCa,2,0,"div",24),M(2,bCa,2,0,"div",25),M(3,cCa,1,4,"component-subtree-list",26),G());a&2&&(a=
K().$implicit,B(1),E("ngIf",a.noChildren),B(1),E("ngIf",!(a.noChildren||a.children)),B(1),E("ngIf",a.children))},eCa=function(a,b){if(a&1){var c=x();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",3);H(2,"div",4);F(3,"div",5);M(4,VBa,2,0,"a",6);M(5,WBa,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);O(9);G();M(10,YBa,2,3,"a",10);M(11,ZBa,2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);O(14);G()();F(15,"div",14);
M(16,$Ba,2,1,"a",15);G()();M(17,dCa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),Ce("id","component-",a.componentId,""),B(4),E("ngIf",!a.showChildren),B(1),E("ngIf",a.showChildren),B(3),E("href",b.paths.viewComponent(a.componentId),Qd),B(1),Ge(" ",a.name," "),B(1),E("ngIf",!a.archived),B(1),E("ngIf",a.archived),B(1),E("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),He(a.description),B(2),E("ngIf",!a.archived),B(1),E("ngIf",a.showChildren))},fCa=function(a){if(a&1){var b=x();
F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},gCa=function(a){if(a&1){var b=x();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,"mat-icon",20);G()}},iCa=function(a){a&1&&(F(0,"a",21),O(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;var b=K();E("href",b.paths.listIssues(Le(1,hCa,"status:open componentid:"+a.componentId)),Qd)}},jCa=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),
G())},kCa=function(a){a&1&&(F(0,"a",22),O(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();E("href",b.paths.createIssue()+"?component="+a.componentId,Qd)}},lCa=function(a){a&1&&(F(0,"div",27),O(1," No child components found. "),G())},mCa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},nCa=function(a){if(a&1){var b=x();F(0,"component-subtree-list",29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();E("components",
a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},oCa=function(a){a&1&&(F(0,"div",23),M(1,lCa,2,0,"div",24),M(2,mCa,2,0,"div",25),M(3,nCa,1,4,"component-subtree-list",26),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.noChildren),B(1),E("ngIf",!(a.noChildren||a.children)),B(1),E("ngIf",a.children))},pCa=function(a,b){if(a&1){var c=x();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",
3);H(2,"div",4);F(3,"div",5);M(4,fCa,2,0,"a",6);M(5,gCa,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);O(9);G();M(10,iCa,2,3,"a",10);M(11,jCa,2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);O(14);G()();F(15,"div",14);M(16,kCa,2,1,"a",15);G()();M(17,oCa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),E("id","component-"+a.componentId),B(4),E("ngIf",!a.showChildren),B(1),E("ngIf",a.showChildren),B(3),E("href",b.paths.viewComponent(a.componentId),Qd),B(1),Ge(" ",a.name," "),B(1),E("ngIf",
!a.archived),B(1),E("ngIf",a.archived),B(1),E("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),He(a.description),B(2),E("ngIf",!a.archived),B(1),E("ngIf",a.showChildren))},No=function(a){return(null!=a?a:[]).map(On)},qCa=function(a){return Yta(a)},Oo=function(a){return(null!=a?a:[]).map(qCa)},Po=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},Ro=function(){var a=Qo("gapi.config.get");if((a=Po(a&&a("googleapis.config/sessionIndex")))||
(a=Po(da.__X_GOOG_AUTHUSER))||(a=Po(Qo("google.authuser"))))return a;var b=da.location.href||"",c=rCa.exec(b);try{a=Po(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=sCa.exec(b);try{a=Po(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=tCa.exec(b);return(a=Po(a&&a[1]))?a:""},uCa=function(){var a=Qo("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Qo("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}},vCa=function(a){a=void 0===a?"":a;var b;if(!(b=uCa())){b=a;var c=void 0===c?Ro():c;a={};var d=So([]);d&&(a.Authorization=d);b||(b=(b=Qo("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},wCa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=Qo("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&(0<c.indexOf("staging")||0<c.indexOf("test"))?2:
1:0,c=2===c;c&&(b=7);switch(b){case 7:b="dev-";c="-googleapis.corp";break;case 1:b="autopush-";c="-googleapis.sandbox";break;case 2:b="staging-";c="-googleapis.sandbox";break;default:b="",c=".clients6"}a="https://"+b+a+c+".google.com";(b=(b=Qo("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},yCa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return da.setTimeout(c,b)})).then(function(){return xCa(a-1,2*b)})},xCa=function(a,
b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=da;try{do var d=c.gapi;while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return yCa(a,b);da.gapi||(da.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},zCa=function(){var a=void 0===a?"":a;var b=void 0===b?Ro():b;var c=Qo("gapi.config.update");c("googleapis.config/auth/useFirstPartyAuth",!0);c("googleapis.config/auth/useFirstPartyAuthV2",!0);b&&c("googleapis.config/sessionIndex",
b);a&&c("client/apiKey",a)},ACa=function(a){return(new To).setEventType(2).setRpcType(2).setLookupType(a)},BCa=function(a){a=Math.round(1E3*a);return isFinite(a)?a:null},Wo=function(a,b,c,d){Uo.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;CCa(this.transport_,this.id_);d&&Vo(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},DCa=function(a){var b={};if(a){a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.containerType;d=d.id||"";c&&
d&&(b[c]=b[c]||d)}}return b},FCa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return ECa(b.name,b.email)}).join(", "):""},ICa=function(a,b,c){var d=[];a&&(GCa("name",a.name,b,d,c),GCa("phone",a.phone,b,d,c),GCa("photo",a.photo,b,d,c));return d.map(function(e){return new HCa(e)})},GCa=function(a,b,c,d,e){if(b){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,"CONTACT"!==Qo("metadata.containerType",f)){var h=c,k=d,q=
e,u=Qo("metadata.encodedContainerId",f),y=Qo("metadata.containerType",f);if(h.contains(u,y))var D=h.get(u,y)||0;else D=k.length,h.set(u,y,D),k.push({}),q.push(u);D=k[D];D[a]=D[a]||[];D[a].push(f)}}},KCa=function(a,b){if(a){a=JCa(a);for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},LCa=function(a,b){if(a){a=a.getPhoto();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasUrl()&&(!b||b(d.getMetaData())))return d.getUrl()}}return null},
MCa=function(a){this.query_=a;this.error_=0},TCa=function(a){var b=a.getClientInfo(),c=Xo(b,10)||W(a.getExperiments(),5,!0),d=c?new Yo(void 0,NCa(a)):new Zo(void 0,NCa(a)),e=$o(new OCa(a,1)),f=a.getUserInfo().getEnvType()||1;var h=PCa.get(f)||4;h=wCa("people-pa",void 0===h?0:h);f=4===f?p(a.getClientInfo(),2)||"":p(a.getClientInfo(),1)||"";var k=p(a.getClientInfo(),4),q=p(a.getClientInfo(),5),u=p(a.getClientInfo(),6)||"",y=a.getClientInfo().getAffinityType()||"",D=a.getUserInfo().getDelegatorId(),
I=a.getAuthErrorHandler(),N=hj(a.getClientInfo(),8,3E4),L=W(a.getClientInfo(),17,!1);e=new QCa(e,h,f,k,q,u,y,D,N,I,hj(a.getClientInfo(),13,15),hj(a.getClientInfo(),14,500),V(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),V(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),a.getExperiments(),L);a=new ap(e,RCa(a));e=new SCa(a);e.configure(null,"Personal Contacts");d.addAddressBook(e,!0);c&&(b=new bp(a,
null,!!Xo(b,11)),b.configure(null,"Domain Contacts"),d.addAddressBook(b,!0));return d},ep=function(a,b){b=a(b||UCa,void 0);a=cp().createElement("DIV");b=VCa(b);dp(a,b);1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},VCa=function(a){if(Ga(a))if(a instanceof fp){if(a.contentKind!==gp)throw Error("Qd");a=nh(a.toString(),null)}else a=Tn("zSoyz");else a=Tn(String(a));return a},ip=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?new hp(a):a;this.useApiary_=!!c;this.apiaryClientDeferred_=
d;this.onAuthError_=e;this.testGaia_=!!f;this.contactStoreConfig_=h;this.commonAcParams_={};this.acWrappers_={};this.onAcCompleteListeners_={};this.inputToAcWrapper_={};this.focusedElement_=null},WCa=function(a){a=a.getEmail();if(!a)return!1;for(var b=r(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(0<=a.indexOf(c.value))return!0;return!1},$Ca=function(a,b,c,d){a=a.filter(XCa());if(!d)return a;d=d.map(function(e){return{contact:e,toString:function(){return e.text}}});
b=YCa(new ZCa(d),b,d.length);return a.concat(b.map(function(e){return e.contact}))},aDa=function(a){a&1&&(H(0,"div"),P(1,"lowercase"));a&2&&(a=K(3),ue("bv2-edit-icon ",Q(1,3,a.type),""))},bDa=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,aDa,2,5,"div",10),G());a&2&&(a=K(2),ue("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),Ge(" ",a.title," "),B(1),E("ngIf",!a.readonly&&!a.disabled))},cDa=function(a){a&1&&xe(0)},dDa=function(a){if(a&1){var b=x();F(0,"div",14);J("menuClosed",
function(){z(b);var e=K(2);return A(jp(e,null,!1,!0))});M(1,cDa,1,0,"ng-container",15);G()}if(a&2){K();var c=Fe(6);K();var d=Fe(7);E("matMenuTriggerFor",d);B(1);E("ngTemplateOutlet",c)}},eDa=function(a){a&1&&xe(0)},fDa=function(a){a&1&&(F(0,"div",16),M(1,eDa,1,0,"ng-container",15),G());if(a&2){K();var b=Fe(6);B(1);E("ngTemplateOutlet",b)}},gDa=function(a){a&1&&H(0,"b-user-membership-chip",26);a&2&&(a=K(4),E("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},hDa=function(a){a&
1&&H(0,"b-user-image",27);a&2&&(a=K(4),E("email",a.value))},iDa=function(a){a&1&&(F(0,"span",28)(1,"b-person-hovercard",29),O(2),G()());a&2&&(a=K(4),B(1),E("email",a.value),B(1),Ge(" ",a.getDisplayValue("--")," "))},jDa=function(a){a&1&&(F(0,"div")(1,"div",22),M(2,gDa,1,4,"b-user-membership-chip",23),M(3,hDa,1,1,"b-user-image",24),M(4,iDa,3,2,"span",25),G()());a&2&&(a=K(3),B(2),E("ngIf",a.enableTeamAnnotations&&!!a.value),B(1),E("ngIf",!a.enableTeamAnnotations&&!!a.value),B(1),E("ngIf",!a.enableTeamAnnotations))},
kDa=function(a){a&1&&H(0,"b-truncated-span",33);a&2&&(a=K(4),E("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},lDa=function(a){a&1&&H(0,"b-truncated-span",34);a&2&&(a=K(4),E("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},mDa=function(a){a&1&&H(0,"div",35)},nDa=function(a){a&1&&(F(0,"div"),M(1,kDa,1,3,"b-truncated-span",30),M(2,lDa,1,4,"b-truncated-span",31),M(3,mDa,1,0,"div",32),G());a&2&&(a=K(3),B(1),
E("ngIf","Priority"!==a.title),B(1),E("ngIf","Priority"===a.title),B(1),E("ngIf",!a.title&&!a.readonly&&!a.disabled))},oDa=function(a){a&1&&(F(0,"div",36),H(1,"mat-icon",37),G())},pDa=function(a){a&1&&(F(0,"div",38),H(1,"mat-icon",39),G())},rDa=function(a){if(a&1){var b=x();F(0,"div",17,18);J("keydown",function(c){z(b);var d=K(2);return A(qDa(d,c))})("click",function(c){z(b);var d=K(2);return A(jp(d,c,!0,!1))});M(2,jDa,5,3,"div",19);M(3,nDa,4,3,"div",19);M(4,oDa,2,0,"div",20);M(5,pDa,2,0,"div",21);
G()}a&2&&(a=K(2),pe("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),B(2),E("ngIf",a.isUser),B(1),E("ngIf",!a.isUser),B(1),E("ngIf","ENUM"!=a.type),B(1),E("ngIf","ENUM"==a.type))},sDa=function(a){if(a&1){var b=x();F(0,"div",8,9);J("click",function(c){z(b);var d=K();return A(jp(d,c,!0,!1))})("keydown",function(c){z(b);var d=K();return A(qDa(d,c))});M(2,bDa,4,5,"div",10);M(3,dDa,2,2,"div",11);M(4,fDa,2,1,"div",12);M(5,rDa,6,8,"ng-template",null,13,Mf);G()}a&2&&(a=K(),ue("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",
a.name,""),pe("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),ne("aria-label","",a.title," value is ",a.getDisplayValue("empty"),""),E("matTooltip",a.getTooltip()),ke("aria-disabled",!1),B(2),E("ngIf",a.title),B(1),E("ngIf","ENUM"===a.type),B(1),E("ngIf","ENUM"!==a.type))},tDa=function(a){if(a&1){var b=x();F(0,"div",43);J("click",function(){z(b);var c=K(2);return A(c.setFieldValue(!c.value))});F(1,"label");O(2);G()()}a&2&&(a=K(2),ue("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),
B(2),He(a.title))},vDa=function(a){if(a&1){var b=x();F(0,"div",40);M(1,tDa,3,4,"div",41);F(2,"b-slide-toggle",42);J("modelChange",function(){z(b);var d=K();return A(d.setFieldValue(!d.value))});G()()}if(a&2){a=K();var c;ue("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");E("ngClass",Me(10,uDa,a.disabled,a.readonly))("matTooltip",a.getTooltip());ke("aria-disabled",!1);B(1);E("ngIf",a.title);B(1);E("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&
void 0!==c?c:void 0)}},wDa=function(a){a&1&&H(0,"b-availability-chip",44);a&2&&(a=K(),E("user",a.value))},xDa=function(a){if(a&1){var b=x();F(0,"button",47);J("click",function(){z(b);var c=K(2);return A(c.clearFieldValue())});F(1,"span",48);H(2,"mat-icon",49);G();O(3," \u00a0 ");G()}a&2&&(a=K(2),pe("b-menu-item-checked",null==a.value),E("disabled",null==a.value))},yDa=function(a,b){if(a&1){var c=x();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldValue(d.value))});
F(1,"span",48);H(2,"mat-icon",49);G();O(3);G()}a&2&&(a=b.$implicit,b=K(2),pe("b-menu-item-checked",b.value==a.value),E("disabled",b.value==a.value)("matTooltip",a.altText||""),ke("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),B(3),Ge(" ",a.displayText," "))},zDa=function(a){a&1&&(M(0,xDa,4,3,"button",45),M(1,yDa,4,7,"button",46));a&2&&(a=K(),E("ngIf",a.clearable),B(1),E("ngForOf",a.choices))},ADa=function(a){a&1&&xe(0)},BDa=function(a){a&1&&xe(0)},CDa=function(a){if(a&
1){var b=x();F(0,"div",43);J("click",function(d){return d.stopPropagation()});F(1,"b-date-time-picker-content",56);J("dateSelectionChange",function(d){z(b);var e=K(2);return A(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){z(b);var d=K(2);return A(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){z(b);var d=K(2);return A(jp(d,null,!1,!1))});G()()}if(a&2){a=K(2);var c;B(1);E("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==
c?c:void 0)}},EDa=function(a){if(a&1){var b=x();F(0,"textarea",65);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(DDa(d,c))});G()}a&2&&(a=K(4),E("ngModel",a.textBuffer),ke("aria-label",a.title))},GDa=function(a){if(a&1){var b=x();F(0,"input",66);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(FDa(d,c))});G()}a&2&&(a=K(4),E("ngModel",a.textBuffer),ke("type",
"NUMERIC"===a.type?"number":"text")("aria-label",a.title))},HDa=function(a){a&1&&(F(0,"div"),M(1,EDa,1,2,"textarea",63),M(2,GDa,1,3,"input",64),G());a&2&&(a=K(3),B(1),E("ngIf",a.multiline),B(1),E("ngIf",!a.multiline))},IDa=function(a){if(a&1){var b=x();F(0,"textarea",69);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(DDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),
E("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),ke("aria-label",a.title))},JDa=function(a){if(a&1){var b=x();F(0,"input",70);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(FDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),E("ngModel",a.textBuffer)("bContactAutocomplete","SINGLE"),ke("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},KDa=
function(a){a&1&&(F(0,"div"),M(1,IDa,1,3,"textarea",67),M(2,JDa,1,4,"input",68),G());a&2&&(a=K(3),B(1),E("ngIf",a.multiline),B(1),E("ngIf",!a.multiline))},MDa=function(a){if(a&1){var b=x();F(0,"div",57);J("click",function(c){return c.stopPropagation()});M(1,HDa,3,2,"div",19);M(2,KDa,3,2,"div",19);F(3,"div",58)(4,"button",59);J("click",function(){z(b);var c=K(2);return A(LDa(c))});H(5,"mat-icon",60);G();F(6,"button",61);J("click",function(c){z(b);var d=K(2);return A(jp(d,c,!1,!0))});H(7,"mat-icon",
62);G()();F(8,"div",36);H(9,"mat-icon",37);G()()}a&2&&(a=K(2),B(1),E("ngIf",!a.isUser),B(1),E("ngIf",a.isUser),B(2),me("aria-label","Apply change to ",a.title,""),Ce("matTooltip","Apply change to ",a.title,""),E("disabled",a.value==a.textBuffer),B(2),me("aria-label","Discard change to ",a.title,""),Ce("matTooltip","Discard change to ",a.title,""))},NDa=function(a){a&1&&(F(0,"div",51,52),M(2,ADa,1,0,"ng-container",53),M(3,BDa,1,0,"ng-container",53),M(4,CDa,2,2,"div",54),M(5,MDa,10,7,"div",55),G());
a&2&&(a=K(),ue("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),E("ngSwitch",a.type),B(2),E("ngSwitchCase","ENUM"),B(1),E("ngSwitchCase","BOOL"),B(1),E("ngSwitchCase","DATE"))},ODa=function(a){var b;return{changelistNumbers:null!=(b=lb(a,1))?b:[]}},PDa=function(a){var b;return{author:a.getAuthor(),description:a.getDescription(),pending:W(a,3),timestamp:a.getTimestamp(),affectedFiles:null!=(b=lb(a,5))?b:[]}},QDa=function(a,b){a&1&&(F(0,"span",9),O(1," by "),H(2,"b-user-display-name",
10),G());a&2&&(a=b.ngIf,B(2),E("email",a)("hovercardEnabled",!1))},RDa=function(a,b){a&1&&(F(0,"div")(1,"span"),O(2),G(),H(3,"b-formatted-date-time",11),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),He(b.pending?"Created on: ":"Submitted on: "),B(1),E("timestamp",a))},SDa=function(a,b){a&1&&(ve(0),H(1,"br"),O(2),we());a&2&&(a=b.$implicit,B(2),Ge("",a," "))},TDa=function(a,b){a&1&&(ve(0),F(1,"div",3)(2,"a",4),O(3," CL "),F(4,"span"),O(5),G()(),M(6,QDa,3,2,"span",5),H(7,"br")(8,"br"),M(9,RDa,4,2,"div",2),F(10,
"div",6),H(11,"div",7)(12,"br"),F(13,"div"),O(14," Affected files: "),M(15,SDa,3,1,"ng-container",8),G()()(),we());a&2&&(a=b.ngIf,b=K(),B(2),E("href","http://critique.corp.google.com/"+b.changelistId,Qd),B(3),He(b.changelistId),B(1),E("ngIf",a.author),B(3),E("ngIf",a.timestamp),B(2),E("innerHTML",a.description,Pd),B(4),E("ngForOf",a.affectedFiles))},UDa=function(a){a&1&&H(0,"b-changelist-card",3,4);if(a&2){var b=Fe(1);a=K();E("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},VDa=function(a){if(a&
1){var b=x();F(0,"a",15);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});F(1,"button",11);O(2,"View team association on component");G()()}a&2&&(a=K(),E("href",a.manageComponentLink(),Qd))},WDa=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var d=K(2);return A(d.trackClick("viewTeamInMoma"))});F(1,"span");O(2);H(3,"mat-icon",7);G()()}if(a&2){a=K(2);var c=Fe(3);Ce("href","https://moma.corp.google.com/team/",a.teamId,"",Qd);E("onedevHovercardTrigger",
c);ke("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B(1);ke("id",a.teamLinkId);B(1);Ge("",a.teamName?a.teamName:a.teamId," ")}},XDa=function(a){a&1&&(F(0,"span",8),O(1),G());if(a&2){a=K(2);var b=Fe(3);E("onedevHovercardTrigger",b);B(1);He(a.teamName?a.teamName:a.teamId)}},YDa=function(a){a&1&&(ve(0),M(1,WDa,4,6,"a",4),M(2,XDa,2,2,"span",5),we());a&2&&(a=K(),B(1),E("ngIf",a.anchorLinkEnabled),B(1),E("ngIf",!a.anchorLinkEnabled))},
ZDa=function(a){a&1&&H(0,"span",11)},$Da=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(2),B(1),He(a.teamNotAssignedMessage))},aEa=function(a){a&1&&(M(0,ZDa,1,0,"span",9),M(1,$Da,2,1,"span",10));a&2&&(a=K(),E("ngIf","0"!=a.teamId),B(1),E("ngIf","0"==a.teamId))},bEa=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}},cEa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},
kp=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},dEa=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,h=.05*a.width,k=.05*a.height;return c>a.top-k&&c<e+k&&b>f-h&&b<d+h},hEa=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");"canvas"===d?eEa(a,b):("input"===d||"select"===d||"textarea"===d)&&fEa(a,b);gEa("canvas",a,b,eEa);gEa("input, textarea, select",
a,b,fEa);return b},gEa=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])},fEa=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+iEa++)},eEa=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},jEa=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,(null==(f=c)?0:f.has(d))?"important":"")}else a.removeProperty(d)}},
lp=function(a,b){var c=b?"":"none";jEa(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})},lEa=function(a,b){jEa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},kEa)},mp=function(a,b){return b&&"none"!=b?a+" "+b:a},mEa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},oEa=function(a){a=getComputedStyle(a);
var b=nEa(a,"transition-property"),c=b.find(function(d){return"transform"===d||"all"===d});if(!c)return 0;b=b.indexOf(c);c=nEa(a,"transition-duration");a=nEa(a,"transition-delay");return mEa(c[b])+mEa(a[b])},nEa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},np=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},op=function(a){return"t"===a.type[0]},pEa=function(a,b){a=a.rootNodes;if(1===a.length&&a[0].nodeType===b.ELEMENT_NODE)return a[0];
var c=b.createElement("div");a.forEach(function(d){return c.appendChild(d)});return c},qEa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=np(b.left,b.top)},pp=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}},rEa=function(a,b){var c=a.top,d=a.bottom;a=.05*a.height;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},sEa=function(a,b){var c=a.left,d=a.right;a=
.05*a.width;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},tEa=function(a){a&1&&(F(0,"label",15),O(1),G());a&2&&(a=K(),ke("aria-label",a.title),B(1),Ge(" ",a.title," "))},uEa=function(a){a&1&&(F(0,"div"),H(1,"b-changelist-link",27),G());if(a&2){a=K(2).$implicit;var b=K();B(1);E("changelistId",b.asNumber(a))}},vEa=function(a){a&1&&(F(0,"div")(1,"a",28),O(2),G()());if(a&2){a=K(3).$implicit;var b=K();B(1);switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";
break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}E("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId,Qd);ke("aria-label","Workspace"+a.workspaceId);B(1);Ge(" ",a.workspaceName," ")}},wEa=function(a){a&1&&M(0,vEa,3,3,"div",20);if(a&2){K();var b=Fe(6);K();a=K();E("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},xEa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",29),G());a&2&&(a=K(3).$implicit,B(1),E("teamId",a.teamId)("componentId",a.componentId))},yEa=function(a){a&1&&M(0,
xEa,2,2,"div",20);if(a&2){K();var b=Fe(8);K();a=K();E("ngIf","TEAM"===a.type)("ngIfElse",b)}},zEa=function(a){if(a&1){var b=x();F(0,"div")(1,"a",30);J("click",function(){z(b);var c=K(4);return A(c.trackClick("postmortem"))});O(2);G()()}a&2&&(a=K(3).$implicit,B(1),Ce("href","https://pm.corp.google.com/",a,"",Qd),me("aria-label","Postmortem ",a,""),B(1),Ge(" ",a," "))},AEa=function(a){a&1&&M(0,zEa,3,3,"div",20);if(a&2){K();var b=Fe(10);K();a=K();E("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},BEa=
function(a){a&1&&(F(0,"div"),H(1,"b-truncated-span",32),G());if(a&2){a=K(3).$implicit;var b=K();B(1);E("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},CEa=function(a){a&1&&H(0,"b-user-membership-chip",36);if(a&2){a=K(4).$implicit;var b=K();E("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)}},DEa=function(a){a&1&&(F(0,"b-person-hovercard",37),O(1),G());a&2&&(a=K(4).$implicit,E("email",a),B(1),Ge(" ",a," "))},EEa=function(a){a&1&&(F(0,"div",33),M(1,CEa,1,4,"b-user-membership-chip",
34),M(2,DEa,2,2,"b-person-hovercard",35),G());a&2&&(a=K(4),B(1),E("ngIf",a.enableTeamAnnotations),B(1),E("ngIf",!a.enableTeamAnnotations))},FEa=function(a){a&1&&(M(0,BEa,2,3,"div",7),M(1,EEa,3,2,"div",31));if(a&2){a=K(2).$implicit;var b=K();E("ngIf",!b.isUser&&b.isString(a));B(1);E("ngIf",b.isUser&&b.isString(a))}},GEa=function(a){if(a&1){var b=x();F(0,"button",38,39);J("click",function(){z(b);var d=K(2).index,e=K();return A(e.removeItem(d))});G()}if(a&2){a=K(2).$implicit;var c=K();ne("aria-label",
"Remove ",a," from ",c.title,"");E("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},HEa=function(a){a&1&&(F(0,"div",18)(1,"div",19),M(2,uEa,2,1,"div",20),M(3,wEa,1,2,"ng-template",null,21,Mf),M(5,yEa,1,2,"ng-template",null,22,Mf),M(7,AEa,1,2,"ng-template",null,23,Mf),M(9,FEa,2,2,"ng-template",null,24,Mf),G(),M(11,GEa,2,4,"button",25),H(12,"div",26),G());if(a&2){var b=Fe(4);K();a=K();B(2);E("ngIf","CHANGELISTS"===a.type)("ngIfElse",b);B(9);E("ngIf",!a.readonly&&"REPEATED_ENUM"!==a.type)}},
IEa=function(a,b){a&1&&(F(0,"div",16),M(1,HEa,13,3,"div",17),G());a&2&&(a=b.index,b=K(),B(1),E("ngIf",b.showingAll||a<b.defaultLineCount||!!b.values&&b.values.length===b.defaultLineCount+1))},JEa=function(a){if(a&1){var b=x();F(0,"div",40,41);J("click",function(c){z(b);var d=K();return A(qp(d,!1,c))})("keydown.enter",function(c){z(b);var d=K();return A(qp(d,!1,c))})("keydown.space",function(c){z(b);var d=K();return A(qp(d,!1,c))});O(2," (show fewer) ");G()}a&2&&(a=K(),ne("aria-label","Show at most ",
a.defaultLineCount," ",a.title," items"),Ce("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},KEa=function(a){if(a&1){var b=x();F(0,"div")(1,"div",42);O(2);F(3,"span",43,44);J("click",function(c){z(b);var d=K();return A(qp(d,!0,c))})("keydown.enter",function(c){z(b);var d=K();return A(qp(d,!0,c))})("keydown.space",function(c){z(b);var d=K();return A(qp(d,!0,c))});O(5," (show all) ");G()()()}a&2&&(a=K(),B(2),Ge(" ... and ",a.values.length-a.defaultLineCount," more "),
B(1),ne("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),Ce("matTooltip","Show all ",null==a.values?null:a.values.length," items in the list"))},LEa=function(a){a&1&&(F(0,"div"),O(1,"--"),G())},OEa=function(a){if(a&1){var b=x();F(0,"button",49);J("menuOpened",function(){z(b);var d=K(2);MEa(d);d.enumPendingValues=new Set(d.values||[]);return A()})("menuClosed",function(){z(b);var d=K(2);return A(NEa(d))});O(1,"Edit ");G()}if(a&2){a=K(2);var c=Fe(15);me("aria-label",
"Add item to ",a.title,"");E("matMenuTriggerFor",c)}},PEa=function(a){a&1&&(F(0,"button",50),O(1,"Add "),G());if(a&2){a=K(2);var b=Fe(20);me("aria-label","Add item to ",a.title,"");E("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},QEa=function(a){a&1&&(F(0,"button",51),O(1,"Add "),G());if(a&2){a=K(2);var b=Fe(18);me("aria-label","Add item to ",a.title,"");E("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},REa=function(a){a&1&&(ve(0,45),M(1,OEa,2,2,"button",
46),M(2,PEa,2,3,"button",47),M(3,QEa,2,3,"button",48),we());a&2&&(a=K(),E("ngSwitch",a.type),B(1),E("ngSwitchCase","REPEATED_ENUM"),B(1),E("ngSwitchCase","REPEATED_DATE"))},SEa=function(a){a&1&&Be(0,1,["*ngIf","!readonly"])},TEa=function(a,b){if(a&1){var c=x();F(0,"button",53);J("click",function(d){var e=z(c).$implicit,f=K(2);e=e.value;f.enumPendingValues.has(e)?f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return A()});F(1,"span",54);H(2,"mat-icon",55);G();
O(3);G()}a&2&&(a=b.$implicit,b=K(2),pe("b-menu-item-checked",b.enumPendingValues.has(a.value)),E("disabled",b.listFieldDisabled),ke("aria-label",a.displayText),B(3),Ge(" ",a.displayText," "))},UEa=function(a){a&1&&M(0,TEa,4,5,"button",52);a&2&&(a=K(),E("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},VEa=function(a){a&1&&H(0,"input",65);a&2&&(a=K(2),me("aria-label","Addition to ",a.title,""),E("bContactAutocomplete","MULTI"))},WEa=function(a){a&1&&H(0,"input",66);a&2&&(a=K(2),me("aria-label",
"Addition to ",a.title,""),E("type","REPEATED_NUMERIC"===a.type?"number":"text"))},YEa=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",56,57);J("ngSubmit",function(){z(b);var d=Fe(3),e=Fe(4),f=K();if(d.valid){var h=d.value.input;null==d||d.reset();var k;null==(k=e.querySelector("input"))||k.focus();f.addItems(h)}return A()});M(5,VEa,1,2,"input",58);M(6,WEa,1,2,"input",59);F(7,"div",60)(8,"button",61);H(9,"mat-icon",62);G();F(10,"button",63);J("click",
function(){z(b);var d=K();return A(XEa(d,!0))});H(11,"mat-icon",64);G()()()()()}if(a&2){var c=Fe(3);a=K();B(5);E("ngIf",a.isUser);B(1);E("ngIf",!a.isUser);B(2);me("aria-label","Apply addition to ",a.title,"");E("disabled",!c.valid||a.listFieldDisabled);B(2);me("aria-label","Discard addition to ",a.title,"")}},ZEa=function(a){if(a&1){var b=x();F(0,"b-date-time-picker-content",67);J("dateChange",function(c){z(b);var d=K();return A(c&&d.addItems(c))})("cancelClicked",function(){z(b);var c=K();return A(XEa(c,
!1))});G()}a&2&&E("required",!0)("renderPanel",!1)},rp=function(a,b){return{originX:a,originY:b}},sp=function(a,b){return{overlayX:a,overlayY:b}},bFa=function(a){if(a&1){var b=x();F(0,"b-edit-field",3);J("valueChange",function(e){z(b);var f=K(2);return A(f.save.emit(e))});G()}if(a&2){a=K().ngIf;var c=K(),d;E("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",$Ea(c))("displayValueOverride",
c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:Ke(11,aFa))("showEnumTitle",!0)("disabled",c.disabled)}},dFa=function(a){if(a&1){var b=x();F(0,"b-list-field",4);J("valuesChange",function(d){z(b);var e=K(2);return A(e.save.emit(d.values))});G()}if(a&2){a=K().ngIf;var c=K();E("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("values",cFa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",
c.disabled)}},eFa=function(a,b){a&1&&(ve(0),M(1,bFa,1,12,"b-edit-field",1),M(2,dFa,1,9,"b-list-field",2),we());a&2&&(a=b.ngIf,B(1),E("ngIf",!a.isRepeated()),B(1),E("ngIf",a.isRepeated()))},fFa=function(a){a&1&&(ve(0),H(1,"mat-icon",9),we())},gFa=function(a){if(a&1){var b=x();ve(0);F(1,"button",10);J("mousedown",function(c){z(b);var d=K();return A(d.back(c))});H(2,"mat-icon",11);G();we()}},hFa=function(a){if(a&1){var b=x();ve(0);F(1,"button",12);J("mousedown",function(c){z(b);var d=K();return A(d.expand(d.componentOption,
c))});H(2,"mat-icon",13);G();we()}a&2&&(a=K(),B(1),E("matTooltip","View child components of "+a.componentOption.name),ke("aria-label","View child components of "+a.componentOption.name))},iFa=function(a){if(a&1){var b=x();ve(0);F(1,"a",17);J("mousedown",function(d){z(b);var e=K().$implicit;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});P(2,"boldPrefixMatches");P(3,"toString");G();we()}if(a&2){a=K().$implicit;var c=K(2);B(1);E("innerHtml",Pe(2,1,Q(3,4,a.name),
c.query),Pd)}},jFa=function(a){a&1&&O(0);a&2&&(a=K().$implicit,Ge(" ",a.name," "))},kFa=function(a){a&1&&(ve(0),O(1,"\u00a0>\u00a0"),we())},lFa=function(a,b){a&1&&(ve(0),M(1,iFa,4,6,"ng-container",5),M(2,jFa,1,1,"ng-template",null,15,Mf),M(4,kFa,2,0,"ng-container",16),we());if(a&2){a=b.$implicit;b=b.last;var c=Fe(3);B(1);E("ngIf",a.name!=a.id)("ngIfElse",c);B(3);E("ngIf",!b)}},mFa=function(a){a&1&&(ve(0),M(1,lFa,5,3,"ng-container",14),we());a&2&&(a=K(),B(1),E("ngForOf",a.componentOption.componentPath))},
nFa=function(a,b){if(a&1){var c=x();ve(0);F(1,"a",18);J("mousedown",function(d){var e=z(c).ngIf;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});O(2);G();we()}a&2&&(a=b.ngIf,B(2),Ge(" ",a.name," "))},oFa=function(a){a&1&&M(0,nFa,3,1,"ng-container",16);a&2&&(a=K(),E("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-1]))},pFa=function(a){a&1&&(F(0,"span",19),O(1," [Archived] "),G())},qFa=function(a){a&1&&H(0,"img",5);a&2&&(a=K(),ke("src",
a.getLogoUrl(),Qd))},rFa=function(a){a&1&&(F(0,"span",9),O(1,"no components"),G())},sFa=function(a){a&1&&(F(0,"div",6),H(1,"div",7),P(2,"boldPrefixMatches"),M(3,rFa,2,0,"span",8),G());a&2&&(a=K(),B(1),E("innerHtml",Pe(2,2,a.teamOption.name,a.query),Pd),B(2),E("ngIf",a.hasNoComponent))},tFa=function(a){if(a&1){var b=x();ve(0);F(1,"a",15);J("mousedown",function(c){z(b);var d=K(2).index,e=K(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);
return A()});O(2);G();we()}a&2&&(a=K(2).$implicit,B(2),He(a))},uFa=function(a){a&1&&O(0);a&2&&(a=K(2).$implicit,He(a))},vFa=function(a){a&1&&(ve(0),M(1,tFa,3,1,"ng-container",12),M(2,uFa,1,1,"ng-template",null,14,Mf),ve(4),O(5," \u00b7 "),we()());if(a&2){var b=Fe(3);a=K(3);B(1);E("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},wFa=function(a){a&1&&(ve(0),F(1,"strong",17),O(2),G(),we());a&2&&(a=K(2).$implicit,B(2),He(a))},xFa=function(a){a&1&&O(0);a&2&&(a=K(2).$implicit,He(a))},yFa=function(a){a&1&&
(M(0,wFa,3,1,"ng-container",12),M(1,xFa,1,1,"ng-template",null,16,Mf));if(a&2){var b=Fe(2);a=K(3);E("ngIf",a.compact)("ngIfElse",b)}},zFa=function(a,b){a&1&&(ve(0),M(1,vFa,6,2,"ng-container",12),M(2,yFa,3,2,"ng-template",null,13,Mf),we());if(a&2){a=b.last;var c=Fe(3);B(1);E("ngIf",!a)("ngIfElse",c)}},AFa=function(a){a&1&&(F(0,"div",10),M(1,zFa,4,2,"ng-container",11),G());a&2&&(a=K(),B(1),E("ngForOf",a.teamOption.pathNames))},BFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),
pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList(),expanded:!1}},CFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),expanded:!1}},tp=function(a){var b,c,d=null!=(c=null==(b=a.componentPathInfo)?void 0:b.componentPathId)?c:[],e,f,h=null!=(f=null==(e=a.componentPathInfo)?void 0:e.componentPathName)?f:[];b=d.map(function(k,q){return{id:k,name:h[q],pathText:h.slice(0,q+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,
accessLimit:a.accessLimit,archived:a.archived,componentPath:b}},DFa=function(a){return new Map([].concat(v(a.entries())).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return[b,c.map(CFa)]}))},EFa=function(){var a=t(mi),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},FFa=function(a){if(a&1){var b=x();F(0,"button",9);J("mousedown",function(c){z(b);K().clearQuery();return A(up(c))});H(1,"mat-icon",10);G()}},GFa=function(a){a&1&&(F(0,"div",13),O(1," Checking for admin access... "),
G())},HFa=function(a){a&1&&(F(0,"div",15),O(1," You do not have admin access to this component. "),F(2,"a",16),O(3,"View component admins"),G()());a&2&&(a=K(3),B(2),E("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),Qd))},IFa=function(a){a&1&&M(0,HFa,4,1,"div",14);a&2&&(a=K(2),E("ngIf",!a.hasAccess&&a.selectedComponent))},JFa=function(a){a&1&&(F(0,"div"),M(1,GFa,2,0,"div",11),M(2,IFa,1,1,"ng-template",null,12,Mf),G());if(a&2){var b=Fe(3);a=K();B(1);E("ngIf",a.checkingAccess)("ngIfElse",
b)}},KFa=function(a){a&1&&H(0,"mat-progress-bar",24)},LFa=function(a){a&1&&(ve(0),O(1,"s"),we())},NFa=function(a,b){if(a&1){var c=x();ve(0);F(1,"div",30);J("mousedown",function(e){var f=z(c).$implicit,h=K(5);MFa(h.searchState,f);return A(up(e))});F(2,"team-row",31);J("selectTeamId",function(e){z(c);var f=K(5);return A(vp(f.searchState,e))});G()();we()}if(a&2){a=b.$implicit;b=K(5);var d=Fe(3);B(1);E("data",a);B(1);E("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},
OFa=function(a){a&1&&(F(0,"div",27)(1,"div",28),O(2," Filter components by my teams "),F(3,"span"),O(4),M(5,LFa,2,0,"ng-container",5),G()(),M(6,NFa,3,4,"ng-container",29),H(7,"mat-divider"),G());a&2&&(a=K().ngIf,B(4),Ge("",a.length," team"),B(1),E("ngIf",1<a.length),B(1),E("ngForOf",a))},PFa=function(a,b){a&1&&(ve(0),M(1,OFa,8,3,"div",26),we());a&2&&(a=b.ngIf,B(1),E("ngIf",a.length))},QFa=function(a){a&1&&xe(0)},SFa=function(a){a&1&&(ve(0),M(1,PFa,2,1,"ng-container",5),P(2,"async"),M(3,QFa,1,0,"ng-container",
25),we());if(a&2){a=K(2);var b=Fe(12);B(1);E("ngIf",Q(2,3,a.searchState.myTeams$));B(2);E("ngTemplateOutlet",b)("ngTemplateOutletContext",Le(5,RFa,a.searchState.recentComponents))}},TFa=function(a){a&1&&(ve(0),O(1,"s"),we())},UFa=function(a){a&1&&xe(0)},XFa=function(a,b){a&1&&(ve(0),M(1,UFa,1,0,"ng-container",25),we());if(a&2){a=b.$implicit;b=b.index;K(5);var c=Fe(10);B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Me(4,VFa,a,Le(2,WFa,b)))}},YFa=function(a){if(a&1){var b=x();F(0,"button",33);
J("mousedown",function(){z(b);var c=K(5);return A(c.searchState.showAllTeams$.next(!0))});H(1,"mat-icon",34);O(2," Show all teams ");G()}},ZFa=function(a,b){a&1&&(F(0,"div",27)(1,"div",28),O(2," Filter components by teams "),F(3,"span"),O(4),M(5,TFa,2,0,"ng-container",5),G()(),M(6,XFa,2,7,"ng-container",29),P(7,"async"),M(8,YFa,3,0,"button",32),P(9,"async"),H(10,"mat-divider"),G());a&2&&(a=b.ngIf,b=K(4),B(4),Ge("",a," team"),B(1),E("ngIf",1<a),B(1),E("ngForOf",Q(7,4,b.searchState.filteredTeamOptions$)),
B(2),E("ngIf",Q(9,6,b.searchState.hasHiddenTeams$)))},$Fa=function(a,b){a&1&&(ve(0),M(1,ZFa,11,8,"div",26),we());a&2&&(a=b.ngIf,B(1),E("ngIf",a.length))},aGa=function(a){a&1&&xe(0)},cGa=function(a){a&1&&(ve(0),M(1,$Fa,2,1,"ng-container",5),P(2,"async"),M(3,aGa,1,0,"ng-container",25),we());if(a&2){a=K(2);var b=Fe(12);B(1);E("ngIf",Q(2,3,a.searchState.teamOptions$));B(2);E("ngTemplateOutlet",b)("ngTemplateOutletContext",Le(5,bGa,a.searchState.componentOptions))}},dGa=function(a){a&1&&xe(0)},fGa=function(a,
b){a&1&&(ve(0),M(1,dGa,1,0,"ng-container",25),we());if(a&2){a=b.$implicit;b=b.index;K(7);var c=Fe(10);B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Me(4,VFa,a,Le(2,eGa,b)))}},gGa=function(a){a&1&&(F(0,"div",42),M(1,fGa,2,7,"ng-container",29),G());a&2&&(a=K(2).ngIf,B(1),E("ngForOf",a))},jGa=function(a){if(a&1){var b=x();ve(0);M(1,gGa,2,1,"div",41);F(2,"button",33);J("mousedown",function(c){z(b);var d=K(5),e=d.searchState.teamScope$.value;e.expanded?hGa(d.searchState,e):iGa(d.searchState,e);
return A(up(c))});H(3,"mat-icon",34);O(4);G();we()}a&2&&(a=K(5),B(1),E("ngIf",a.searchState.teamScope$.value.expanded),B(2),pe("expanded",a.searchState.teamScope$.value.expanded),B(1),Ge(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},kGa=function(a,b){a&1&&(ve(0),M(1,jGa,5,4,"ng-container",5),we());a&2&&(a=b.ngIf,B(1),E("ngIf",a.length))},mGa=function(a){if(a&1){var b=x();F(0,"div",36)(1,"div",28);O(2," Filtering by team: ");G();F(3,"div",37)(4,"team-row",38);J("selectTeamId",
function(d){z(b);var e=K(3);return A(vp(e.searchState,d))});G();F(5,"button",39);J("mousedown",function(d){z(b);var e=K(3);wp(e.searchState);return A(up(d))});H(6,"mat-icon",40);G()();M(7,kGa,2,1,"ng-container",5);G()}if(a&2){a=K(3);var c=Fe(3);B(3);E("data",a.searchState.teamScope$.value)("listOrder",Ke(7,lGa));B(1);E("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);B(3);E("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},
nGa=function(a){a&1&&xe(0)},pGa=function(a){a&1&&(ve(0),M(1,mGa,8,8,"div",35),M(2,nGa,1,0,"ng-container",25),we());if(a&2){a=K(2);var b=Fe(12);B(1);E("ngIf",a.searchState.teamScope$.value);B(1);E("ngTemplateOutlet",b)("ngTemplateOutletContext",Me(3,oGa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},sGa=function(a){if(a&1){var b=x();F(0,"div",44)(1,"div",45);O(2,"Component Tree Browser");G();F(3,"component-row",46);J("goBack",function(){z(b);var c=K(3);return A(qGa(c.searchState))})("selectComponentId",
function(c){z(b);var d=K(3);return A(rGa(d.searchState,c))});G()()}a&2&&(a=K(3),B(3),E("componentOption",a.searchState.componentScope))},tGa=function(a){a&1&&xe(0)},vGa=function(a){a&1&&(ve(0),M(1,sGa,4,1,"div",43),M(2,tGa,1,0,"ng-container",25),we());if(a&2){a=K(2);var b=Fe(12);B(1);E("ngIf",a.searchState.componentScope);B(1);E("ngTemplateOutlet",b)("ngTemplateOutletContext",Le(3,uGa,a.searchState.componentOptions))}},wGa=function(a){if(a&1){var b=x();F(0,"div",17,18);J("mousedown",function(c){z(b);
K();return A(up(c))});F(2,"div",19);M(3,KFa,1,0,"mat-progress-bar",20);G();F(4,"div",21);ve(5,22);P(6,"async");M(7,SFa,4,7,"ng-container",23);M(8,cGa,4,7,"ng-container",23);M(9,pGa,3,6,"ng-container",23);M(10,vGa,3,5,"ng-container",23);we();G()()}a&2&&(a=K(),B(3),E("ngIf",a.isLoading()),B(2),E("ngSwitch",Q(6,6,a.searchState.state$)),B(2),E("ngSwitchCase","default"),B(1),E("ngSwitchCase","global"),B(1),E("ngSwitchCase","team_scope"),B(1),E("ngSwitchCase","component_scope"))},xGa=function(a){if(a&1){var b=
x();F(0,"button",50);J("mousedown",function(c){z(b);var d=K().team,e=K();d.expanded?hGa(e.searchState,d):iGa(e.searchState,d);return A(up(c))});H(1,"mat-icon",51);G()}a&2&&(a=K().team,B(1),pe("expanded",a.expanded))},yGa=function(a){a&1&&xe(0)},AGa=function(a,b){a&1&&(ve(0),M(1,yGa,1,0,"ng-container",25),we());if(a&2){a=b.$implicit;b=b.index;var c=K(2),d=c.level;c=c.order;K();var e=Fe(10);B(1);E("ngTemplateOutlet",e)("ngTemplateOutletContext",Ne(zGa,a,d+1,c.concat(b)))}},BGa=function(a){a&1&&(ve(0),
M(1,AGa,2,6,"ng-container",29),we());if(a&2){a=K().team;var b=K();B(1);E("ngForOf",b.searchState.getChildTeams(a.id))}},CGa=function(a,b){if(a&1){var c=x();F(0,"div",47);J("mousedown",function(h){var k=z(c).team,q=K();MFa(q.searchState,k);return A(up(h))});F(1,"div",48);M(2,xGa,2,2,"button",49);F(3,"team-row",31);J("selectTeamId",function(h){z(c);var k=K();return A(vp(k.searchState,h))});G()()();M(4,BGa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=K(),f=Fe(3);E("listOrder",
b)("data",a);B(1);oe("margin-left",28*d,"px");B(1);E("ngIf",e.searchState.getChildTeams(a.id).length);B(1);pe("indent",!e.searchState.getChildTeams(a.id).length);E("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B(1);E("ngIf",a.expanded)}},DGa=function(a){a&1&&(ve(0),O(1,"s"),we())},FGa=function(a,b){if(a&1){var c=x();F(0,"div",56);J("mousedown",function(e){var f=z(c).$implicit,h=K(3);EGa(h.searchState,f.id);return A(up(e))});F(1,"component-row",57);J("selectComponentId",
function(e){z(c);var f=K(3);return A(EGa(f.searchState,e))})("expandComponent",function(e){z(c);var f=K(3);return A(f.searchState.expandComponent(e))});G()()}if(a&2){a=b.$implicit;b=K(2).mode;K();var d=Fe(3);E("data",a);B(1);E("componentOption",a)("query",d.value)("mode",b)}},GGa=function(a,b){a&1&&(F(0,"div",54)(1,"div",28),O(2),F(3,"span"),O(4),M(5,DGa,2,0,"ng-container",5),G()(),M(6,FGa,2,4,"div",55),G());if(a&2){a=b.ngIf;var c=K();b=c.mode;c=c.$implicit;B(2);Ge(" ","recent"===b?"Select recent component":
"Select component"," ");B(2);Ge("",a," component");B(1);E("ngIf",1<a);B(1);E("ngForOf",c)}},HGa=function(a){a&1&&(ve(0),O(1," No recent components "),we())},IGa=function(a){a&1&&(ve(0),O(1," No child components "),we())},JGa=function(a){a&1&&(ve(0),O(1),H(2,"mat-icon",61),O(3," above ("),F(4,"a",62),O(5,"learn more "),H(6,"mat-icon",63),G(),O(7," about team associations)"),we());a&2&&(a=K(4).teamScope,B(1),Ge(" for ",a.name,". Remove the team filter by clicking on the "))},KGa=function(a){a&1&&(ve(0),
O(1," No components found "),M(2,JGa,8,1,"ng-container",5),we());a&2&&(a=K(3).teamScope,B(2),E("ngIf",a))},LGa=function(a){a&1&&(F(0,"div",59),ve(1,22),M(2,HGa,2,0,"ng-container",23),M(3,IGa,2,0,"ng-container",23),M(4,KGa,3,1,"ng-container",60),we(),G());a&2&&(a=K(2).mode,B(1),E("ngSwitch",a),B(1),E("ngSwitchCase","recent"),B(1),E("ngSwitchCase","leaf"))},MGa=function(a){a&1&&M(0,LGa,5,3,"div",58);a&2&&(a=K(2),E("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},NGa=function(a,b){a&
1&&(M(0,GGa,7,4,"div",52),M(1,MGa,1,1,"ng-template",null,53,Mf));if(a&2){a=b.$implicit;var c=Fe(2);E("ngIf",a.length)("ngIfElse",c)}},OGa=function(a,b){b=r([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},PGa=function(a){a&1&&(F(0,"div"),O(1," Loading custom fields... "),G())},QGa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2),B(1),Ge(" There are no custom fields in component ",
a.selectedComponent.name,". "))},RGa=function(a,b){a&1&&(F(0,"mat-option",9),O(1),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",a.name," "))},SGa=function(a){if(a&1){var b=x();F(0,"div")(1,"mat-form-field",6)(2,"mat-label");O(3,"Custom field");G();F(4,"mat-select",7);J("selectionChange",function(c){z(b);var d=K(2);return A(d.fieldSelected.emit(c.value))});M(5,RGa,2,2,"mat-option",8);G()()()}a&2&&(a=K(2),B(5),E("ngForOf",a.customFields))},TGa=function(a){a&1&&(F(0,"div",4),M(1,PGa,2,0,"div",5),
M(2,QGa,2,1,"div",5),M(3,SGa,6,1,"div",5),G());a&2&&(a=K(),B(1),E("ngIf",null==a.customFields),B(1),E("ngIf",a.customFields&&!a.customFields.length),B(1),E("ngIf",null==a.customFields?null:a.customFields.length))},UGa=function(a){a&1&&xe(0)},VGa=function(){},WGa=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().value,B(1),He(a.textValue))},XGa=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",5),we());if(a&2){a=K().value;var b=K();B(1);E("date",b.toDate(a.dateValue))}},YGa=function(a){a&1&&(ve(0),
O(1),we());a&2&&(a=K().value,B(1),He(a.enumValue))},ZGa=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().value,B(1),He(a.numericValue))},$Ga=function(a,b){a&1&&(ve(0),O(1),we());a&2&&(a=b.$implicit,b=b.last,B(1),Ie("",a,"",b?"":", ",""))},aHa=function(a){a&1&&(ve(0),M(1,$Ga,2,2,"ng-container",6),we());a&2&&(a=K().value,B(1),E("ngForOf",a.repeatedTextValue.values))},bHa=function(a,b){a&1&&(ve(0),H(1,"b-formatted-date-time",5),O(2),we());if(a&2){a=b.$implicit;b=b.last;var c=K(3);B(1);E("date",c.toDate(a));
B(1);He(b?"":", ")}},cHa=function(a){a&1&&(ve(0),M(1,bHa,3,2,"ng-container",6),we());a&2&&(a=K().value,B(1),E("ngForOf",a.repeatedDateValue.values))},dHa=function(a,b){a&1&&(ve(0),O(1),we());a&2&&(a=b.$implicit,b=b.last,B(1),Ie("",a,"",b?"":", ",""))},eHa=function(a){a&1&&(ve(0),M(1,dHa,2,2,"ng-container",6),we());a&2&&(a=K().value,B(1),E("ngForOf",a.repeatedEnumValue.values))},fHa=function(a,b){a&1&&(ve(0),O(1),we());a&2&&(a=b.$implicit,b=b.last,B(1),Ie("",a,"",b?"":", ",""))},gHa=function(a){a&
1&&(ve(0),M(1,fHa,2,2,"ng-container",6),we());a&2&&(a=K().value,B(1),E("ngForOf",a.repeatedNumericValue.values))},hHa=function(a,b){a&1&&(M(0,WGa,2,1,"ng-container",4),M(1,XGa,2,1,"ng-container",4),M(2,YGa,2,1,"ng-container",4),M(3,ZGa,2,1,"ng-container",4),M(4,aHa,2,1,"ng-container",4),M(5,cHa,2,1,"ng-container",4),M(6,eHa,2,1,"ng-container",4),M(7,gHa,2,1,"ng-container",4));a&2&&(a=b.value,b=K(),E("ngIf",null!=a.textValue),B(1),E("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),B(1),E("ngIf",null!=
a.enumValue),B(1),E("ngIf",null!=a.numericValue),B(1),E("ngIf",null!=a.repeatedTextValue),B(1),E("ngIf",null!=a.repeatedDateValue),B(1),E("ngIf",null!=a.repeatedEnumValue),B(1),E("ngIf",null!=a.repeatedNumericValue))},xp=function(a){var b=void 0===b?iHa:b;var c=Ha(a),d=function(f){f=r(f);f.next();f=tf(f);return b(c,f)},e=function(f){var h=r(f);f=h.next().value;h=tf(h);return a.apply(f,h)};return function(){var f=tc.apply(0,arguments),h=this||da,k=jHa.get(h);k||(k={},jHa.set(h,k));return kHa(k,[this].concat(v(f)),
e,d)}},yp=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(":");0>e||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b},zp=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},lHa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},nHa=function(a){a=gh(a);for(var b=0;b<mHa.length;++b){var c=mHa[b],d=zp(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,lHa(a,c))}return a},oHa=function(a){a=
gh(a);lHa(a,"X-Goog-Upload-Status");return a},pHa=function(a){a&1&&(F(0,"span"),O(1),P(2,"humanFileSize"),P(3,"humanFileSize"),G());if(a&2){a=K().$implicit;var b;B(1);Ie(" ",Q(2,2,a.transferredBytes)," of ",Q(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},qHa=function(a){a&1&&(F(0,"span",11),O(1),G());a&2&&(a=K().$implicit,B(1),Ge(" ",a.errorMessage," "))},rHa=function(a){a&1&&(F(0,"span",11),O(1),P(2,"humanFileSize"),G());if(a&2){a=K().$implicit;var b;B(1);Ge(" ",Q(2,1,null!==(b=a.size)&&void 0!==
b?b:0)," ")}},tHa=function(a,b){if(a&1){var c=x();F(0,"div",3)(1,"div",4);H(2,"mat-icon",5);F(3,"span",6);O(4);G();F(5,"span",7);M(6,pHa,4,6,"span",8);M(7,qHa,2,1,"span",9);M(8,rHa,3,3,"span",9);G()();F(9,"button",10);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.cancel(d))});G()()}a&2&&(a=b.$implicit,b=K(2),E("ngClass",Le(8,sHa,a.state===b.uploadStates.ERROR)),B(3),E("matTooltip",a.name),B(1),He(a.name),B(2),E("ngIf",a.state===b.uploadStates.UPLOADING),B(1),E("ngIf",a.state===b.uploadStates.ERROR),
B(1),E("ngIf",a.state===b.uploadStates.COMPLETE),B(1),E("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),ke("aria-label","Remove attachment"+a.name))},uHa=function(a){a&1&&(F(0,"div",1),M(1,tHa,10,10,"div",2),G());a&2&&(a=K(),B(1),E("ngForOf",a.uploads))},Ap=function(a){this.action=a;this.wfv=!1},wHa=function(){var a=new Bp,b=new Cp;b.setParentId("root");var c=vHa();Db(b,3,c);vl(b,4,1);Db(a,3,b);a.setSourceId(2);a.setName("My Drive");return a},xHa=function(){var a=
new Bp,b=new Cp;qo(b,5,!0);var c=vHa();c.setType(7);c.setDirection(2);Db(b,3,c);vl(b,4,1);Db(a,3,b);a.setSourceId(2);a.setName("Shared with me");return a},yHa=function(){var a=new Bp,b=new Cp,c=new Dp;c.setType(10);c.setDirection(2);Db(b,3,c);vl(b,4,1);Db(a,3,b);a.setSourceId(2);a.setName("Recent");return a},zHa=function(){var a=new Bp,b=new Cp;b.setStarred(!0);var c=vHa();Db(b,3,c);vl(b,4,1);Db(a,3,b);a.setSourceId(2);a.setName("Starred");return a},AHa=function(){var a=new Bp,b=new Cp;qo(b,11,!0);
Db(a,3,b);a.setSourceId(2);a.setName("Shared drives");return a},vHa=function(){var a=new Dp;a.setType(4);a.setDirection(1);return a},DHa=function(){var a=new Ep;a.addSource(BHa());a.addSource(CHa());return a},BHa=function(){var a=new Bp,b=new Fp;b.setViewMode(1);vl(b,2,1);qo(b,5,!0);qo(b,6,!1);Db(a,6,b);a.setSourceId(3);a.setName("Photos");return a},CHa=function(){var a=new Bp,b=new Fp;b.setViewMode(2);qo(b,5,!0);qo(b,6,!1);Db(a,6,b);a.setSourceId(3);a.setName("Albums");return a},EHa=function(){var a=
new Bp,b=new Fp;b.setViewMode(1);vl(b,2,1);qo(b,5,!1);qo(b,6,!0);Db(a,6,b);a.setSourceId(3);a.setName("Videos");return a},FHa=function(a,b){Ap.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},GHa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},HHa=function(a,b){var c=b&&b.getWindow()||window;if(GHa(b))a();else if(Gp)Gp.push(a);else var d=Gp=[a],e=c.setInterval(function(){if(GHa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();Gp=null}},100)},JHa=function(a,
b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=Hp(c,"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!IHa(a,c)||c.scrollHeight==c.clientHeight||0<b.deltaY&&1>=Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))||0>b.deltaY&&0==c.scrollTop)&&b.stopPropagation()},Ip=function(a,b){if(b)if(b?(b=p(b,2),b=null===b||void 0===b?null:nh(b,null)):b=null,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("$a");if("style"===a.tagName.toLowerCase())throw Error("ab");
}a.innerHTML=uh(b)}else KHa(a);else KHa(a)},KHa=function(a){for(;a.lastChild;)a.lastChild.remove()},Jp=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},LHa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},MHa=function(a){if(a&1){var b=x();F(0,"div",5);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});O(1);F(2,"button",6);J("click",function(){z(b);var c=K();return A(c.copyToClipboard())});H(3,"mat-icon",7);G()()}a&2&&(a=K(),B(1),
Ge(" Link may be malformed: ",a.originalHref," "))},NHa=function(a){a&1&&(F(0,"b-glue"),H(1,"mat-icon",5),G())},RHa=function(a){if(a&1){var b=x();F(0,"div",6);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});F(1,"span",7)(2,"a",8);J("click",function(c){z(b);var d=K();return A(OHa(d,c))})("keydown",function(c){z(b);var d=K();return A(PHa(d,c))});O(3);G()();F(4,"button",9);J("keydown.Tab",function(c){z(b);var d=K();return A(QHa(d,c))})("click",function(){z(b);var c=K();return A(c.copyToClipboard())});
H(5,"mat-icon",10);G()()}a&2&&(a=K(),B(2),E("href",a.originalHref,Qd),B(1),He(a.originalHref))},SHa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},THa=function(a,b){a&1&&(ve(0),H(1,"b-plain-format-section",2),we());a&2&&(a=b.$implicit,B(1),E("section",a))},UHa=function(a){a&1&&H(0,"b-plain-format-quoted-section",1);a&2&&(a=K(),E("section",a.section))},VHa=function(a){a&1&&H(0,"b-plain-format-unquoted-section",1);a&2&&(a=K(),E("section",a.section))},XHa=function(a){if(a&1){var b=x();F(0,
"a",4);J("click",function(){z(b);var c=K();c.showQuote=!0;WHa(c);return A()});O(1," - Show quoted text - ");G()}a&2&&(a=K(),ke("aria-controls",a.childId))},YHa=function(a){if(a&1){var b=x();F(0,"a",5);J("click",function(){z(b);var c=K();c.showQuote=!1;WHa(c);return A()});O(1," - Hide quoted text - ");G()}a&2&&(a=K(),ke("aria-controls",a.childId))},ZHa=function(a,b){a&1&&(ve(0),H(1,"b-literal-format-presenter",1),we());a&2&&(a=b.ngIf,B(1),E("content",a))},$Ha=function(a,b){a&1&&(ve(0),H(1,"b-markdown-format-presenter",
1),we());a&2&&(a=b.ngIf,B(1),E("content",a))},aIa=function(a,b){a&1&&(ve(0),H(1,"b-plain-format-presenter",1),we());a&2&&(a=b.ngIf,B(1),E("content",a))},bIa=function(a){switch(a.formattingMode){case 3:return(0,T.of)(wsa(a.comment));case 2:var b=new gn,c=new Kp,d=hsa(oh(""));c.setContent(d);b.setMarkdownFormat(c);return(0,T.of)(b);case void 0:case 1:case 0:return b=new gn,c=new Lp,d=new Mp,a=hsa(oh(a.comment)),d.setContent(a),c.addPlainSection(d),b.setPlainFormat(c),(0,T.of)(b);default:return ph(a.formattingMode,
"Unknown formatting mode: "+a.formattingMode)}},cIa=function(a,b){a&1&&(ve(0),F(1,"div",1),H(2,"b-formatted-comment-presenter",2),G(),we());a&2&&(a=b.$implicit,b=K(),B(1),pe("invisible",""===(b.comment||"").trim())("error",a.isFallback),B(1),E("formattedComment",a.formattedComment))},dIa=function(a){a&1&&(F(0,"a",2),H(1,"mat-icon",3),G());a&2&&(a=K(),E("href",a.mdHelpLink,Qd)("disableRipple",!0))},eIa=function(a){a&1&&H(0,"b-formatted-comment-presenter",4);a&2&&(a=K(),E("formattedComment",a.note.formattedComment))},
fIa=function(a){a&1&&H(0,"b-live-preview",5);a&2&&(a=K(),E("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode)("idPrefix",a.idPrefix))},gIa=function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}},hIa=function(){},iIa=function(a){a&1&&Be(0)},jIa=function(){},kIa=function(a){a&1&&M(0,jIa,0,0,"ng-template",10);a&2&&(a=K().$implicit,E("cdkPortalOutlet",a.templateLabel))},
lIa=function(a){a&1&&O(0);a&2&&(a=K().$implicit,He(a.textLabel))},mIa=function(a,b){if(a&1){var c=x();F(0,"div",6);J("click",function(){var f=z(c),h=f.$implicit;f=f.index;var k=K(),q=Fe(1);return A(k._handleClick(h,q,f))})("cdkFocusChange",function(f){var h=z(c).index,k=K();return A(k._tabFocusChanged(f,h))});F(1,"div",7);M(2,kIa,1,1,"ng-template",8);M(3,lIa,1,1,"ng-template",null,9,Mf);G()()}if(a&2){a=b.$implicit;b=b.index;var d=Fe(4),e=K();pe("mat-tab-label-active",e.selectedIndex===b);E("id",e._getTabLabelId(b))("ngClass",
a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);ke("tabIndex",e._getTabIndex(a,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(2);E("ngIf",a.templateLabel)("ngIfElse",d)}},nIa=function(a,b){if(a&1){var c=x();F(0,"mat-tab-body",11);J("_onCentered",function(){z(c);var e=K();
return A(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){z(c);var f=K();return A(f._setTabBodyWrapperHeight(e))});G()}if(a&2){a=b.$implicit;b=b.index;var d=K();pe("mat-tab-body-active",d.selectedIndex===b);E("id",d._getTabContentId(b))("ngClass",a.bodyClass)("content",a.content)("position",a.position)("origin",a.origin)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);ke("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",
d._getTabLabelId(b))}},pIa=function(a){if(a&1){var b=x();F(0,"input",7,8);J("change",function(){z(b);var c=K();if(Np(c)){var d=Op(c);Pp(c);oIa(c,!0);Op(c).focus();d.scrollTop=c.scrollPosition;d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return A()})("keyup",function(c){z(b);var d=K();document.activeElement===Qp(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,oIa(d,!0),Op(d).focus()):oIa(d));return A()});G()}a&
2&&(a=K(),E("value",a.autocompleteUserName))},qIa=function(a){a&1&&H(0,"div",9,10)},rIa=function(a){a&1&&xe(0)},sIa=function(a){a&1&&xe(0)},tIa=function(a){if(a&1){var b=x();ve(0);F(1,"button",13);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(2,"mat-icon",14);G();we()}a&2&&(a=K(2),B(1),E("disabled",a.attachmentsDisabled))},uIa=function(a){if(a&1){var b=x();F(0,"button",15);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(1,"mat-icon",14);O(2);G()}a&2&&
(a=K(2),B(2),Ge(" ",a.getRestrictedLabel()," "))},vIa=function(a){if(a&1){var b=x();F(0,"div",7);Be(1,0,["class","goog-inline-block"]);F(2,"b-attachment-selector",8);J("onSelect",function(d){z(b);var e=K();d=e.attachmentUploader.upload(d);e.comment&&e.comment.uploads.push(d);return A()});G();F(3,"b-drive-attachment",9);J("onPickDoc",function(d){z(b);var e=K();e.comment&&(e.comment.value+="\n\n"+d.url+" ("+d.name+")");return A()})("onCloneBlob",function(d){z(b);var e=K();e.comment&&e.comment.uploads.push(d);
return A()});G();F(4,"div",10);M(5,tIa,3,1,"ng-container",11);M(6,uIa,3,1,"ng-template",null,12,Mf);G()()}if(a&2){var c=Fe(7);a=K();B(2);E("disabled",a.attachmentsDisabled);B(1);E("disabled",a.attachmentsDisabled);B(2);E("ngIf",!a.isRestricted())("ngIfElse",c)}},wIa=function(a){a&1&&(F(0,"div"),H(1,"b-live-preview",16),G());a&2&&(a=K(),B(1),E("comment",a.comment.value)("issueId",a.issueId||0)("audience",a.audience)("formattingMode",a.comment.formattingMode))},yIa=function(a,b){if(a&1){var c=x();F(0,
"button",12);J("click",function(){var d=z(c).$implicit,e=K(3);return A(xIa(e.issueEditBuilder,d))});O(1);G()}a&2&&(a=b.$implicit,b=K(3),E("disabled",b.issueEditBuilder.issueState==a),B(1),Ge(" ",a.displayValue," "))},zIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2,"Multiple");G();F(3,"a",27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});O(4,"X");G()()}},AIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2,"Possibly multiple");G();F(3,"a",
27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});O(4,"X");G()()}},CIa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",28);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.issueEditBuilder.commonAssignee=c)})("ngModelChange",function(){z(b);var c=K(4);return A(BIa(c.issueEditBuilder))});G()()}a&2&&(a=K(4),B(1),E("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),ke("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},
DIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});O(4,"X");G()()}a&2&&(a=K(4),pe("bv2-invalid-multiple-user-chip",!Rp(a.issueEditBuilder)),B(2),Ge(" Multiple ",Rp(a.issueEditBuilder)?"":"(some unset)"," "))},EIa=function(a){if(a&1){var b=x();F(0,"div",26)(1,"span");O(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});O(4,"X");G()()}a&
2&&(a=K(4),pe("bv2-invalid-multiple-user-chip",!Rp(a.issueEditBuilder)),B(2),Ge(" Possibly multiple ",Rp(a.issueEditBuilder)?"":"(some unset)"," "))},FIa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",30);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.issueEditBuilder.commonVerifier=c)});G()()}a&2&&(a=K(4),B(1),E("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete",
"SINGLE"),ke("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},GIa=function(a){a&1&&(F(0,"div")(1,"div",20)(2,"label",21),O(3," Assignee "),G(),F(4,"div",14),M(5,zIa,5,0,"div",22),M(6,AIa,5,0,"div",22),M(7,CIa,2,3,"div",23),G()(),F(8,"div",20)(9,"label",24),O(10," Verifier "),G(),F(11,"div",14),M(12,DIa,5,3,"div",25),M(13,EIa,5,3,"div",25),M(14,FIa,2,4,"div",23),G()()());a&2&&(a=K(3),B(4),E("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),B(1),E("ngSwitchCase","MULTIPLE"),B(1),
E("ngSwitchCase","POSSIBLY_MULTIPLE"),B(5),E("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),B(1),E("ngSwitchCase","MULTIPLE"),B(1),E("ngSwitchCase","POSSIBLY_MULTIPLE"))},HIa=function(a){if(a&1){var b=x();F(0,"div",20)(1,"label",31);O(2," Issue ID ");G();F(3,"input",32);J("ngModelChange",function(c){z(b);var d=K(3);return A(d.issueEditBuilder.commonDuplicateOf=c.trim())});G()()}a&2&&(a=K(3),B(3),E("ngModel",a.issueEditBuilder.commonDuplicateOf),ke("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||
null))},IIa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",35),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.path," "),B(1),E("accessLevel",a.accessLevel))},JIa=function(a){a&1&&(F(0,"div",33)(1,"div")(2,"strong"),O(3,"You are editing issues in components that have external viewers:"),G()(),F(4,"ul"),M(5,IIa,3,2,"li",34),G()());a&2&&(a=K(3),B(5),E("ngForOf",a.externalWarnings))},KIa=function(a){if(a&1){var b=x();F(0,"div",8)(1,"button",9)(2,"span");O(3);G();H(4,"b-icon",10);G();F(5,"mat-menu",
null,11)(7,"button",12);J("click",function(){z(b);var d=K(2);return A(d.issueEditBuilder.issueState=void 0)});O(8,"No change ");G();M(9,yIa,2,2,"button",13);G();F(10,"div",14);M(11,GIa,15,6,"div",15);M(12,HIa,4,2,"div",16);G();F(13,"div")(14,"b-comment-box",17);J("onSubmit",function(){z(b);var d;null==(d=K(2).matDialogRef)||d.close(!0);return A()});G()();H(15,"div",18);M(16,JIa,6,1,"div",19);G()}if(a&2){var c=Fe(6);a=K(2);B(1);E("matMenuTriggerFor",c);B(2);He(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:
"No change");B(4);E("disabled",!a.issueEditBuilder.issueState);B(2);E("ngForOf",a.issueStates);B(1);E("ngSwitch",!a.issueEditBuilder.issueState||"DUPLICATE"!==a.issueEditBuilder.issueState.status);B(1);E("ngSwitchCase",!0);B(3);E("comment",a.comment)("showToolbar",!1);B(2);E("ngIf",0<a.externalWarnings.length)}},MIa=function(a){a&1&&(F(0,"form",null,1)(2,"h1",2),O(3,"Change issue status"),G(),F(4,"div",3)(5,"span"),O(6,"Enter updated issue status information below"),G(),M(7,KIa,17,9,"div",4),G(),
F(8,"div",5)(9,"button",6),O(10," Cancel "),G(),F(11,"button",7),O(12," Save "),G()()());if(a&2){var b=Fe(1);a=K();B(7);E("ngIf",a.issueEditBuilder);B(2);E("mat-dialog-close",!1);B(2);var c=E("mat-dialog-close",!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=LIa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!Rp(a.issueEditBuilder)&&!d.get("verifier");break a}}d=!1}c("disabled",d)}},NIa=function(a){a&1&&(F(0,"div")(1,
"p"),O(2),G()());a&2&&(a=K(),B(2),Ie(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},OIa=function(a,b){a&1&&(F(0,"li"),O(1),G());a&2&&(a=b.$implicit,B(1),Ie(" ",a.issueId," - ",a.title," "))},PIa=function(a){a&1&&(F(0,"div")(1,"p"),O(2),G(),F(3,"ul"),M(4,OIa,2,2,"li",8),G()());a&2&&(a=K(),B(2),Ge(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),E("ngForOf",
a.protectedIssues))},TIa=function(a,b){if(a&1){var c=x();F(0,"div",18,19);J("click",function(){var e=z(c).$implicit,f=K(2);Tp(f,e)||Up(f,e);return A()});F(2,"mat-pseudo-checkbox",20);J("click",function(e){var f=z(c).$implicit,h=K(2);e.stopPropagation();return A(QIa(h,f))});G();F(3,"span");O(4);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);oe("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");pe("focused",b===d.focusedRowIndex);De("title",a.name);ke("id","hotlist-item-"+a.hotlistId)("aria-checked",
RIa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Tp(d,a));B(2);E("state",SIa(d.selectedHotlistMap[a.hotlistId]))("disabled",Tp(d,a));B(2);Ge(" ",a.name," ")}},UIa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(2),B(1),Ge(" (",a.filterText,")"))},VIa=function(a){if(a&1){var b=x();F(0,"div",21,22);J("click",function(){z(b);var c=K(2);return A(c.loadHotlist())})("keydown.enter",function(){z(b);var c=K(2);return A(c.loadHotlist())});O(2,"Load hotlist from id ");F(3,"span");O(4);G()()}a&2&&(a=
K(2),pe("focused",a.focusedRowIndex===a.choices.length+1),ke("aria-label","Load hotlist from"+a.filterText),B(4),Ge("(",a.filterText,")"))},WIa=function(a){if(a&1){var b=x();F(0,"div",23,24);J("click",function(){z(b);var c=K(2);return A(Vp(c))})("keydown.enter",function(){z(b);var c=K(2);return A(Vp(c))});O(2,"Apply");G()}a&2&&(a=K(2),pe("focused",a.focusedRowIndex===a.choices.length+2))},XIa=function(a){if(a&1){var b=x();F(0,"div",5)(1,"div",10,11);M(3,TIa,5,11,"div",12);G()();H(4,"mat-divider");
F(5,"div",13,14);J("click",function(){z(b);var c=K();return A(c.createHotlist())})("keydown.enter",function(){z(b);var c=K();return A(c.createHotlist())});O(7,"Create new hotlist ");M(8,UIa,2,1,"span",15);G();M(9,VIa,5,4,"div",16);M(10,WIa,3,2,"div",17)}a&2&&(a=K(),B(3),E("ngForOf",a.choices),B(2),pe("focused",a.focusedRowIndex===a.choices.length),E("disabled",!a.canCreate),ke("aria-label","Create new hotlist"+a.filterText),B(3),E("ngIf",!!a.filterText),B(1),E("ngIf",a.canLoad),B(1),E("ngIf",a.pendingChanges))},
YIa=function(a){a&1&&(ve(0),O(1,"Un-"),we())},ZIa=function(a){a&1&&(H(0,"span",4),P(1,"async"));if(a&2){a=K();var b;E("ngClass",null!==(b=Q(1,1,a.colorClass$))&&void 0!==b?b:"")}},$Ia=function(a){a&1&&(H(0,"mat-icon",5),P(1,"async"));if(a&2){a=K();var b;E("svgIcon",null!==(b=Q(1,1,a.iconName$))&&void 0!==b?b:"")}},aJa=function(a){a&1&&(F(0,"span",6),O(1),P(2,"async"),G());a&2&&(a=K(),B(1),He(Q(2,1,a.statusText$)))},bJa=function(a){if(a&1){var b=x();F(0,"button",2);J("click",function(){z(b);var c=
K();return A(c.onClick())});O(1);G()}a&2&&(a=K(),pe("mat-flat-button",a.upvoted)("mat-stroked-button",!a.upvoted),E("matTooltip",a.tooltip)("disabled",a.disabled),ke("aria-pressed",a.upvoted)("aria-label",a.getAriaLabel()),B(1),Ge(" +1 (",a.voteCount,")\n"))},cJa=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onClick())});F(1,"span");O(2,"+1");G();F(3,"span",4);O(4);G()()}a&2&&(a=K(),pe("mat-flat-button",a.upvoted)("mat-button",!a.upvoted),E("matTooltip",
a.tooltip)("disabled",a.disabled),ke("aria-pressed",a.upvoted)("aria-label",a.getAriaLabel()),B(4),Ge("(",a.voteCount,")"))},dJa=function(a){a&1&&(F(0,"span"),O(1," Assigned to "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),E("model",a.assigneeUser)("hovercardEnabled",!1))},eJa=function(a){a&1&&(F(0,"span"),O(1," Accepted by "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),E("model",a.assigneeUser)("hovercardEnabled",!1))},fJa=function(a){a&1&&(F(0,"span"),O(1," Duplicate of "),F(2,
"a",4),O(3),G()());if(a&2){a=K(2).ngIf;var b=K(),c;B(2);me("aria-label","Go to issue ",a.duplicateOfIssueId,"");E("href",b.editIssue(null!==(c=a.duplicateOfIssueId)&&void 0!==c?c:void 0),Qd);B(1);Ge(" ",a.duplicateOfIssueId," ")}},gJa=function(a){a&1&&(F(0,"span"),H(1,"b-issue-status-display",18),G());a&2&&(a=K().ngIf,B(1),E("issueStatusJs",a))},hJa=function(a,b){a&1&&(ve(0,14),M(1,dJa,3,2,"span",15),M(2,eJa,3,2,"span",15),M(3,fJa,4,3,"span",15),M(4,gJa,2,1,"span",16),we());a&2&&(E("ngSwitch",b.ngIf),
B(1),E("ngSwitchCase","ASSIGNED"),B(1),E("ngSwitchCase","ACCEPTED"),B(1),E("ngSwitchCase","DUPLICATE"))},iJa=function(a,b){a&1&&(ve(0),H(1,"b-app-vote-button",19),we());if(a&2){a=b.ngIf;b=K().ngIf;var c=K(2),d;B(1);E("issueId",c.issueId)("voteCount",b.voteCount)("upvoted",null!==(d=a.voted)&&void 0!==d?d:!1)}},jJa=function(a){a&1&&(ve(0),M(1,iJa,2,3,"ng-container",1),we());a&2&&(a=K(2),B(1),E("ngIf",a.issue.userData))},lJa=function(a){if(a&1){var b=x();ve(0);F(1,"button",20);J("click",function(){z(b);
var c=K(2);return A(kJa(c,c.childContextId))});O(2," Unlink parent ");G();we()}},mJa=function(a,b){a&1&&(F(0,"li"),O(1," Last updated by "),H(2,"b-user-display",17),O(3," on: "),H(4,"b-formatted-date-time",21),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),E("model",a)("hovercardEnabled",!1),B(2),E("timestamp",b.modifiedTimeMicros/1E3))},nJa=function(a,b){a&1&&(ve(0),M(1,mJa,5,3,"li",1),F(2,"li"),O(3," Reported by "),H(4,"b-user-display",17),O(5," on: "),H(6,"b-formatted-date-time",21),G(),we());if(a&2){a=b.ngIf;
b=K().ngIf;var c=K();B(1);E("ngIf",c.events[c.events.length-1].userPerformingActionUser);B(3);E("model",b.reporterUser)("hovercardEnabled",!1);B(2);E("timestamp",a.createdTimeMicros/1E3)}},oJa=function(a){a&1&&(F(0,"li",22),H(1,"b-note-container",23),G());a&2&&(a=K(2),B(1),E("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",a.normalizeFormattingModeToJspb(a.events[0].formattingMode))("note",a.getNote()))},rJa=function(a,b){if(a&
1){var c=x();ve(0);F(1,"div",2)(2,"h3");H(3,"b-issue-status-display",3);F(4,"a",4);O(5);G();O(6," \u00a0 ");F(7,"span",5);O(8);G()();F(9,"ul")(10,"li",6);H(11,"b-access-level-indicator",7);G();F(12,"li",8)(13,"span",9);O(14);G();O(15," \u00a0 ");M(16,hJa,5,4,"ng-container",10);G()();F(17,"div",11)(18,"b-cc-button",12);J("onCc",function(e){z(c);var f=K();f.location&&e&&io(f.analytics,f.location+"_"+mo.ISSUE_CARD,"add","CC");return A()});G();M(19,jJa,2,1,"ng-container",1);M(20,lJa,3,0,"ng-container",
1);G();F(21,"ul");M(22,nJa,7,4,"ng-container",1);M(23,oJa,2,4,"li",13);G()();we()}if(a&2){a=b.ngIf;b=K();var d;B(3);E("issueStatusJs",a.status);B(1);me("aria-label","Go to issue ",b.issueId,"");E("href",b.editIssue(b.issueId),Qd);B(1);He(b.issueId);B(3);He(a.title);B(3);E("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);B(2);E("ngClass",b.priorityClass(a.priority));B(1);He(b.priority(a.priority));B(2);E("ngIf",a.status);B(2);E("issueId",b.issueId)("ccState",
pJa(b,null!==(d=a.ccUsers)&&void 0!==d?d:Ke(16,qJa)));B(1);E("ngIf",b.issue.aggregatedData);B(1);E("ngIf",b.childContextId);B(2);E("ngIf",b.issue.aggregatedData);B(1);E("ngIf",b.events[0].unlinkifiedComment)}},sJa=function(a){a&1&&(F(0,"div")(1,"div",9),O(2," An issue cannot reference itself. "),G()())},tJa=function(a){a&1&&(F(0,"mat-option",10)(1,"div",11),H(2,"b-spinner",12),G()());a&2&&(B(2),E("large",!0))},uJa=function(a){a&1&&(F(0,"mat-option",13),O(1," No issues found. "),G())},vJa=function(a){a&
1&&H(0,"b-issue-status-display",25);a&2&&(a=K().$implicit,E("issueStatusJs",a.status))},wJa=function(a){a&1&&H(0,"b-issue-card",26,27);if(a&2){var b=Fe(1);a=K().$implicit;E("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},yJa=function(a,b){a&1&&(F(0,"mat-option",14)(1,"div",15)(2,"div",16),M(3,vJa,1,1,"b-issue-status-display",17),F(4,"strong",18),O(5),G()(),F(6,"onedev-hovercard",null,19),M(8,wJa,2,2,"b-issue-card",20),G(),F(9,"a",21),J("click",function(d){return d.stopPropagation()}),H(10,
"mat-icon",22),G(),F(11,"span",23),O(12),G(),H(13,"div",24),P(14,"boldPrefixMatches"),G()());if(a&2){a=b.$implicit;var c=Fe(7);b=K();E("value",a);B(1);ke("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B(2);E("ngIf",a.status);B(1);De("title",a.resourceId);B(1);Ge(" ",a.resourceId," ");B(4);E("onedevHovercardTrigger",c)("href",b.getIssueLink(a),Qd);B(3);He(xJa(a));B(1);De("title",a.displayText);E("innerHTML",Pe(14,10,a.displayText,b.query),Pd)}},
zJa=function(a,b){a&1&&(F(0,"a",13),O(1),G());a&2&&(a=b.$implicit,b=b.last,Ce("href","issues/",a.resourceId,"",Qd),B(1),Ie(" ",a.resourceId,"",b?"":","," "))},AJa=function(a){a&1&&(F(0,"div",11),M(1,zJa,2,3,"a",12),G());a&2&&(a=K(),B(1),E("ngForOf",a.selectedIssues))},BJa=function(a){a&1&&(F(0,"div",11)(1,"a",14),O(2),G()());a&2&&(a=K(),B(1),Ce("href","issues/",a.selectedIssues[0].resourceId,"",Qd),B(1),Ge(" ",a.selectedIssues[0].displayText," "))},DJa=function(a){if(a&1){var b=x();F(0,"div",15)(1,
"div",16);J("click",function(){z(b);var c=K();return A(CJa(c))})("keyup.space",function(){z(b);var c=K();return A(CJa(c))});G()()}a&2&&(a=K(),B(1),E("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),ke("aria-checked",a.isQueryRestricted))},FJa=function(a){if(a&1){var b=x();F(0,"b-app-bar-bulk-edit-menus",6);J("onBulkEdit",function(c){z(b);var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",
function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),E("readStatePrompt",EJa(a)))},JJa=function(a){if(a&1){var b=x();F(0,"b-copy-issue-id-button",7);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(GJa(c.copyIssueIdService,Wp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=K();return A(HJa(c.copyIssueIdService,Wp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=
K();return A(IJa(c.copyIssueIdService,Wp(c)))});G()}a&2&&(a=K(),E("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},KJa=function(a){if(a&1){var b=x();F(0,"div",8)(1,"b-hotlist-picker",9);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&2&&
(a=K(),B(1),E("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},LJa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",17),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.path," "),B(1),E("accessLevel",a.accessLevel))},MJa=function(a){a&1&&(F(0,"div",15)(1,"div")(2,"strong"),O(3,"You are commenting on issues in components that have external viewers:"),G()(),F(4,"ul"),M(5,LJa,3,2,"li",16),G()());a&2&&(a=K(2),B(5),E("ngForOf",a.externalWarnings))},OJa=function(a){if(a&1){var b=
x();F(0,"h1",10);O(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",11);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(NJa(c))});G();M(4,MJa,6,1,"div",12);G();F(5,"mat-dialog-actions")(6,"button",13);O(7," Cancel ");G();F(8,"button",14);O(9," Save ");G()()}a&2&&(a=K(),B(3),E("comment",a.comment)("showToolbar",!1),B(1),E("ngIf",0<a.externalWarnings.length),B(2),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0))},
PJa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Yp=function(a,b){b=void 0===b?{}:b;return null==b.id?"":Xp(a,b)},Xp=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=Rsa(a,b));c&&(a=a+"#"+c);return a},QJa=function(a){if(a&1){var b=x();F(0,"button",7);J("click",function(){z(b);var c=K(2);return A(c.removeHotlist.emit())});H(1,"mat-icon",8);G()}a&2&&(a=K(2),pe("invisible",a.disabled),ke("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+
a.hotlist.name))},RJa=function(a){a&1&&(ve(0),F(1,"span",1)(2,"span",2)(3,"a",3),O(4),G()(),M(5,QJa,2,4,"button",4),G(),F(6,"onedev-hovercard",null,5),H(8,"b-hotlist-card",6),G(),we());if(a&2){var b=Fe(7);a=K();B(1);oe("padding-right",a.removable?0:"10px");pe("muted",a.disabled);E("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);B(2);E("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),Qd);ke("aria-label",a.getAriaLabel(a.hotlist));B(1);He(a.hotlist.name);B(1);E("ngIf",a.removable);
B(3);E("hotlist",a.hotlist)}},SJa=function(){return{color:"accent"}},TJa=function(a){a&1&&(F(0,"span"),O(1,"Edit"),G())},UJa=function(a){a&1&&(F(0,"span"),O(1,"Cancel"),G())},ZJa=function(a){if(a&1){var b=x();ve(0);F(1,"td")(2,"div")(3,"div",11);O(4);G();F(5,"div",12)(6,"a",13);O(7);G()()()();F(8,"td",3)(9,"mat-radio-button",14);J("change",function(d){z(b);var e=K(2);return A(VJa(e,d.value))});G()();F(10,"td",3)(11,"b-button",15);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A(WJa(e,
d))});M(12,TJa,2,0,"span",9);M(13,UJa,2,0,"span",9);G()();F(14,"td",3)(15,"b-button",16);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A(XJa(e,d))});O(16," Delete ");G()();we()}if(a&2){a=K().$implicit;var c=K();B(3);pe("selected",Zp(c,a));B(1);Ge(" ",a.name," ");B(2);E("href",YJa(c,a),Qd);ke("aria-label",a.name+"- Click to create a new issue");B(1);Ge(" ",YJa(c,a)," ");B(2);Ce("id","template-default-radio-",a.index,"");E("checked",c.defaultIndex===a.index)("aria-label","Make template "+
a.name+" as default template")("value",a.index);B(2);E("bAriaLabel",Zp(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B(1);E("ngIf",!Zp(c,a));B(1);E("ngIf",Zp(c,a));B(2);E("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},$Ja=function(a){a&1&&(F(0,"h2",64),O(1," Create Template "),G())},aKa=function(a){a&1&&(F(0,"h2",64),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ie(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},cKa=function(a,b){if(a&
1){var c=x();F(0,"button",65);J("click",function(){var e=z(c).$implicit,f=K(2).$implicit,h=K();f.issueType=e.value;return A(bKa(h))});O(1);G()}if(a&2){a=b.$implicit;b=K(2).$implicit;var d;E("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");B(1);Ge(" ",a.displayText," ")}},dKa=function(a,b){if(a&1){var c=x();F(0,"button",66);J("click",function(){var d=z(c).$implicit,e=K(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return A()});O(1);
G()}a&2&&(a=b.$implicit,b=K(2).$implicit,E("disabled",b.editableTemplate.priority===a.value),B(1),Ge(" ",a.displayText," "))},eKa=function(a,b){if(a&1){var c=x();F(0,"button",66);J("click",function(){var d=z(c).$implicit,e=K(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return A()});O(1);G()}a&2&&(a=b.$implicit,b=K(2).$implicit,E("disabled",b.editableTemplate.severity===a.value),B(1),Ge(" ",a.displayText," "))},fKa=function(a,b){if(a&1){var c=x();F(0,"div",67)(1,"b-hotlist-chip",
68);J("removeHotlist",function(){var d=z(c).$implicit,e=K(3);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),E("hotlist",a))},gKa=function(a){a&1&&(F(0,"h3"),O(1,"Custom issue fields"),G())},hKa=function(a){if(a&1){var b=x();F(0,"input",76);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].textValue=d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=
K().$implicit;var c=K(2).$implicit;me("id","template-cf-",a.id,"");E("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},iKa=function(a){if(a&1){var b=x();F(0,"input",77);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit;me("id","template-cf-",a.id,"");E("ngModel",
c.editableTemplate.customFieldValues[a.id].numericValue)}},kKa=function(a){if(a&1){var b=x();F(0,"b-edit-field",78);J("valueChange",function(h){z(b);var k=K().$implicit,q=K(2).$implicit,u=K();return A(u.setCustomField(q,k.id,h))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K(),e,f;me("id","template-cf-",a.id,"");E("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",null!==(e=null==c.editableTemplate.customFieldValues[a.id]?null:c.editableTemplate.customFieldValues[a.id].enumValue)&&
void 0!==e?e:null)("choices",null!==(f=a.enumFields)&&void 0!==f?f:Ke(6,jKa))}},lKa=function(a){if(a&1){var b=x();F(0,"bv2-input-date-picker",79);J("boundValueChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d;me("id","template-cf-",a.id,"");E("boundValue",null!==
(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},nKa=function(a){if(a&1){var b=x();F(0,"b-list-field",80);J("valuesChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(k.setCustomField(h,f.id,e.values))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K();me("id","template-cf-",a.id,"");E("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",mKa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",
!0)}},oKa=function(a,b){a&1&&(F(0,"div")(1,"div",21)(2,"label",69),O(3),G()(),F(4,"div",70),M(5,hKa,1,2,"input",71),M(6,iKa,1,2,"input",72),M(7,kKa,1,7,"b-edit-field",73),M(8,lKa,1,2,"bv2-input-date-picker",74),M(9,nKa,1,6,"b-list-field",75),G()());a&2&&(a=b.$implicit,ue("cell-",a.cellType,""),B(2),Ce("for","template-cf-",a.id,""),B(1),Ie("",a.name," (id=",a.id,")"),B(1),E("ngSwitch",a.type),B(1),E("ngSwitchCase","TEXT"),B(1),E("ngSwitchCase","NUMERIC"),B(1),E("ngSwitchCase","ENUM"),B(1),E("ngSwitchCase",
"DATE"))},rKa=function(a){if(a&1){var b=x();F(0,"td",17)(1,"div",18);M(2,$Ja,2,0,"h2",19);M(3,aKa,2,2,"h2",19);F(4,"div",20)(5,"div",21)(6,"label",22);O(7,"Template Name");G()();F(8,"input",23);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.name=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(9,"div",20)(10,"div",21)(11,"label",24);O(12,"Description of Template");G()();F(13,"input",25);J("ngModelChange",function(h){z(b);
var k=K().$implicit;return A(k.editableTemplate.description=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(14,"div",26)(15,"h3");O(16," Standard issue fields ");G();F(17,"div",20)(18,"div",21)(19,"label",27);O(20,"Title");G()();F(21,"input",28);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.title=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(22,"div",29)(23,"div",
21)(24,"label",30);O(25,"Type");G()();F(26,"button",31)(27,"span");O(28);G();H(29,"b-icon",32);G();F(30,"mat-menu",33,34);M(32,cKa,2,3,"button",35);G()();F(33,"div",29)(34,"div",21)(35,"label",36);O(36,"Priority");G()();F(37,"button",37)(38,"span");O(39);G();H(40,"b-icon",32);G();F(41,"mat-menu",33,38);M(43,dKa,2,2,"button",39);G()();F(44,"div",29)(45,"div",21)(46,"label",40);O(47,"Severity");G()();F(48,"button",41)(49,"span");O(50);G();H(51,"b-icon",32);G();F(52,"mat-menu",33,42);M(54,eKa,2,2,"button",
39);G()();F(55,"div",43)(56,"div",21)(57,"label",44);O(58,"Default Hotlists");G()();F(59,"b-hotlist-picker",45);J("onApply",function(h){z(b);var k=K(2);return A(k.handleHotlistPickerSave(h))})("onCreate",function(h){z(b);var k=K(2);return A(k.createHotlist(h))})("onLoad",function(h){z(b);var k=K(2);return A(k.loadHotlist(h))});G();M(60,fKa,2,1,"div",46);G();H(61,"div",47);F(62,"div",48)(63,"div",21)(64,"label",49);O(65,"Assignee");G()();F(66,"input",50);J("ngModelChange",function(h){z(b);var k=K().$implicit;
return A(k.editableTemplate.assignee=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(67,"div",48)(68,"div",21)(69,"label",51);O(70,"Verifier");G()();F(71,"input",52);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.verifier=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(72,"div",20)(73,"div",21)(74,"label",53);O(75,"CC");G()();F(76,"input",54);J("ngModelChange",function(h){z(b);
var k=K().$implicit;return A(pKa(k.editableTemplate,h))});G()();F(77,"div",20)(78,"div",21)(79,"label",55);O(80,"Initial Comment");G()();F(81,"textarea",56);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.comment=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});O(82,"              ");G()();F(83,"div",20)(84,"div",21)(85,"label",57);O(86,"In Prod");G()();F(87,"b-slide-toggle",58);J("modelChange",function(){z(b);var h=K().$implicit.editableTemplate;
h.inProd=!h.inProd;h.dirty=!0;return A()});G()()();F(88,"div",59);M(89,gKa,2,0,"h3",9);M(90,oKa,10,11,"div",60);G();F(91,"div",61)(92,"b-button",62);J("onAction",function(){z(b);var h=K(2);return A(qKa(h))});O(93," Save ");G();F(94,"b-button",63);J("onAction",function(){z(b);var h=K(2);return A($p(h))});O(95," Cancel ");G()()()()}if(a&2){var c=Fe(31),d=Fe(42),e=Fe(53);a=K().$implicit;var f=K();B(2);E("ngIf",a.editableTemplate.new_);B(1);E("ngIf",!a.editableTemplate.new_);B(5);E("ngModel",a.editableTemplate.name);
B(5);E("ngModel",a.editableTemplate.description);B(8);E("ngModel",a.editableTemplate.title);B(5);E("matMenuTriggerFor",c);B(2);He(a.issueType);B(2);E("overlapTrigger",!0);B(2);E("ngForOf",f.issueTypeChoices);B(5);E("matMenuTriggerFor",d);B(2);He(a.editableTemplate.priority);B(2);E("overlapTrigger",!0);B(2);E("ngForOf",f.priorityChoices);B(5);E("matMenuTriggerFor",e);B(2);He(a.editableTemplate.severity);B(2);E("overlapTrigger",!0);B(2);E("ngForOf",f.severityChoices);B(5);E("selectedHotlistIds",f.selectedHotlistIds)("choices",
f.hotlists);B(1);E("ngForOf",f.selectedHotlists);B(6);E("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.assignee);B(5);E("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);B(5);E("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));B(5);E("ngModel",a.editableTemplate.comment);B(6);E("model",a.editableTemplate.inProd);B(2);E("ngIf",0<f.customFieldRows.length);B(1);E("ngForOf",f.customFieldRows);B(2);E("disabled",!a.editableTemplate.isDirty())}},
sKa=function(a,b){a&1&&(F(0,"tr"),M(1,ZJa,17,15,"ng-container",9),M(2,rKa,96,31,"td",10),G());a&2&&(a=b.$implicit,B(1),E("ngIf",!a.editableTemplate),B(1),E("ngIf",!!a.editableTemplate))},tKa=function(a,b){a&1&&(F(0,"div",81),O(1),G(),F(2,"div",82)(3,"button",83),O(4," Cancel "),G(),F(5,"button",84),O(6," Confirm "),G()());a&2&&(a=b.$implicit,B(1),Ge(' Are you sure you want to delete the template "',a.name,'"? '),B(2),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0))},uKa=function(a,b){a&1&&
(F(0,"div",81),O(1),G(),F(2,"div",82)(3,"button",85),O(4," Cancel "),G(),F(5,"button",85),O(6," Don't Save "),G(),F(7,"button",86),O(8," Save "),G()());a&2&&(a=b.$implicit,B(1),Ge(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),E("mat-dialog-close",void 0),B(2),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0))},vKa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),Ge(" (",a.objectiveDisplayText," total) "))},wKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",
1),G());a&2&&(a=K(),B(1),E("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.assignmentSlo)("includeObjective",!0))},xKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",2),G());a&2&&(a=K(),B(1),E("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.responseSlo)("includeObjective",!0))},yKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",3),G());a&2&&(a=K(),B(1),E("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.closureSlo)("includeObjective",!0))},zKa=function(a){a&1&&(F(0,"div",8),H(1,
"b-slo-status-summary",9),G());a&2&&(a=K(),B(1),E("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric",a.onlyShowMetric))},AKa=function(a){a&1&&(ve(0),O(1," No applicable SLO rules "),we())},BKa=function(a){a&1&&(ve(0),O(1," No SLO set on issue component "),we())},CKa=function(a){a&1&&(F(0,"div",10),M(1,AKa,2,0,"ng-container",7),M(2,BKa,2,0,"ng-container",7),G());a&2&&(a=K(),B(1),E("ngIf",a.editSloLink),B(1),E("ngIf",!a.editSloLink))},DKa=function(a){if(a&1){var b=x();F(0,
"a",12);J("click",function(){z(b);var c=K(2);return A(c.trackOpenSlo())});O(1);G()}a&2&&(a=K(2),E("href",a.editSloLink,Qd),B(1),Ge(" ",a.sloName," "))},EKa=function(a){a&1&&(F(0,"span"),O(1," (private) "),G())},FKa=function(a){a&1&&(F(0,"span"),O(1," SLO definition: "),M(2,DKa,2,2,"a",11),M(3,EKa,2,0,"span",7),G());a&2&&(a=K(),B(2),E("ngIf",a.sloName),B(1),E("ngIf",!a.sloName))},aq=function(a,b){b=void 0===b?document.documentElement:b;return(0,T.concat)((0,T.defer)(function(){return(0,T.of)(b.querySelector(a))}),
GKa(b,{childList:!0,subtree:!0}).pipe(uf(function(c){return c.some(function(d){return 0<d.addedNodes.length})}),R(function(){return b.querySelector(a)}))).pipe(uf(el),Tf(),R(function(c){return c}))},GKa=function(a,b){return new T.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},bq=function(a,b){return function(c){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}},HKa=function(a,b){a&1&&H(0,"col");a&2&&ue("",
b.$implicit.name,"-col")},IKa=function(a){a&1&&xe(0)},KKa=function(a,b){a&1&&(ve(0),M(1,IKa,1,0,"ng-container",8),we());a&2&&(a=b.$implicit,b=K(),B(1),E("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Le(2,JKa,a)))},LKa=function(a){a&1&&xe(0)},NKa=function(a,b){a&1&&(ve(0),M(1,LKa,1,0,"ng-container",8),we());if(a&2){a=b.$implicit;b=b.index;var c=K(),d=c.$implicit;c=c.index;var e=K().ngIf;B(1);E("ngTemplateOutlet",e[b])("ngTemplateOutletContext",
Ne(MKa,d,a,c))}},OKa=function(a,b){if(a&1){var c=x();F(0,"tr",10,11);J("click",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()})("focus",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()});M(2,NKa,2,6,"ng-container",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);pe("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",
a.isClosed)("grid-focus",d.focusedRowIndex===b);ke("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);E("ngForOf",d.columns)}},PKa=function(a){a&1&&(ve(0),M(1,OKa,3,12,"tr",9),we());a&2&&(a=K(),B(1),E("ngForOf",a.list))},QKa=function(a,b){a&1&&(F(0,"th"),H(1,"pop-grid-default-th",12),G());a&2&&(a=b.column,B(1),E("column",a))},RKa=function(a,b){a&1&&(F(0,"td"),H(1,"pop-grid-default-cell",13),G());a&2&&(a=b.row,b=b.column,B(1),E("row",
a)("column",b))},SKa=function(a){if(a&1){var b=x();F(0,"b-sortable-header",3);J("sortChanged",function(c){z(b);var d=K();d.grid&&d.grid.sortChange.emit(c);return A()});G()}a&2&&(a=K(),E("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",null==a.grid?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},TKa=function(a){a&1&&(F(0,"div",4),O(1),G());a&2&&(a=K(),ke("aria-label",a.column.label),B(1),Ge(" ",a.column.label," "))},
UKa=function(a){if(a&1){var b=x();F(0,"div",13,14);J("menuOpened",function(){z(b);var d=K();return A(d.menuOpen=!0)})("menuClosed",function(){z(b);var d=K();return A(d.menuOpen=!1)})("keydown.enter",function(d){z(b);Ci(Fe(1));d.preventDefault();return A(d.stopPropagation())})("keydown.space",function(){z(b);var d=Fe(1);return A(Ci(d))});G()}if(a&2){a=K();var c=Fe(5);pe("columnpicker-button-active",a.menuOpen);me("aria-label","",a.column.fullLabel," column configuration");E("matMenuTriggerFor",c)}},
WKa=function(a,b){if(a&1){var c=x();F(0,"button",15);J("click",function(){var d=z(c).$implicit,e=K();return A(VKa(e,d.name))});H(1,"b-icon",16);F(2,"span",17);O(3);G()()}a&2&&(a=b.$implicit,b=K(),pe("b-menu-item-checked",ona(a.name).get(b.listViewPrefs)),B(3),Ge(" ",a.menuItem," "))},XKa=function(a){a&1&&H(0,"mat-divider")},YKa=function(a){if(a&1){var b=x();F(0,"button",22);J("click",function(){z(b);var c=K().$implicit,d=K().before,e=K();return A(e.add(c,d))});O(1);G()}a&2&&(a=K().$implicit,E("matTooltip",
a.tooltip),B(1),Ge(" ",a.fullLabel," "))},$Ka=function(a){a&1&&(F(0,"button",9)(1,"span"),O(2),G()());if(a&2){a=K().$implicit;var b=K().before;K();var c=Fe(18);E("matMenuTriggerFor",c)("matMenuTriggerData",Me(3,ZKa,a.columns,b));B(2);He(a.label)}},aLa=function(a,b){a&1&&(ve(0),M(1,YKa,2,2,"button",20),M(2,$Ka,3,6,"button",21),we());a&2&&(a=b.$implicit,b=K(2),B(1),E("ngIf",b.isIssueGridColumn(a)),B(1),E("ngIf",!b.isIssueGridColumn(a)))},cLa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",
function(){var c=z(b).before,d=K();return A(bLa(d,c))});O(1," Custom Field ");G();H(2,"mat-divider");M(3,aLa,3,2,"ng-container",19)}a&2&&(a=K(),B(3),E("ngForOf",a.currentAvailableItems))},dLa=function(a,b){if(a&1){var c=x();F(0,"button",18);J("click",function(){var d=z(c).$implicit,e=K().before,f=K();return A(f.add(d,e))});O(1);G()}a&2&&(a=b.$implicit,B(1),Ge(" ",a.fullLabel," "))},eLa=function(a,b){a&1&&M(0,dLa,2,1,"button",23);a&2&&E("ngForOf",b.columns)},fLa=function(a){a&1&&(ve(0),O(1," This issue has not been modified since "),
H(2,"b-formatted-date-time",1),O(3," and is scheduled for deletion on "),F(4,"strong"),H(5,"b-formatted-date-time",1),G(),O(6,". "),F(7,"a",2),O(8,"Learn more"),G(),we());a&2&&(a=K(),B(2),E("mode","date")("timestamp",a.modifiedTime),B(3),E("mode","date")("timestamp",a.retentionExpireTime),B(2),E("href",a.documentationLink,Qd))},gLa=function(a){a&1&&(F(0,"b-base-chip",1)(1,"div",2),H(2,"retention-text",3),G(),F(3,"div",4),H(4,"retention-help-text",5),G()());a&2&&(a=K(),E("compactMode",a.compactMode)("labelClass",
a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),B(2),E("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),E("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},hLa=function(a){var b=void 0===b?new Date:b;var c=uo(Fm(a.scheduledDeletionTime));b=b.getTime();a=(a=Rra(a.retentionPeriod))?1E3*a.getSeconds()+(a.getNanos()||0)/1E6:0;return b>=c-Math.max(12096E5,.2*a)},iLa=function(a,b){return a.size!==b.size?!1:[].concat(v(a)).every(function(c){return b.has(c)})},
jLa=function(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},kLa=function(a,b){if(!iLa(a,b)){var c=[].concat(v(b)).filter(function(e){return!a.has(e)}),d=[].concat(v(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},lLa=function(a){a&1&&xe(0)},mLa=function(a,b){a&1&&(F(0,"th",22),M(1,lLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",
b.isIssueGridColumn(a)))},nLa=function(a){a&1&&xe(0)},oLa=function(a,b){a&1&&(F(0,"th",24),M(1,nLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",b.isIssueGridColumn(a)))},sLa=function(a){if(a&1){var b=x();ve(0);F(1,"mat-pseudo-checkbox",26);J("click",function(c){z(b);var d=K(2);c.stopPropagation();return A(pLa(d))})("keydown.enter",function(c){z(b);var d=K(2);c.stopPropagation();return A(pLa(d))})("keydown.space",function(c){z(b);var d=K(2);
c.stopPropagation();return A(pLa(d))});G();we()}a&2&&(a=K(2),B(1),E("state",qLa(a)),ke("aria-checked",rLa(a)))},tLa=function(a,b){a&1&&(F(0,"th",25),M(1,sLa,2,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",b.isIssueGridColumn(a)))},uLa=function(a){a&1&&xe(0)},vLa=function(a,b){a&1&&(F(0,"th"),M(1,uLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",b.isIssueGridColumn(a)))},wLa=function(a){a&
1&&(ve(0),H(1,"pop-grid-default-th",27),we());a&2&&(a=K().column,B(1),E("column",a))},xLa=function(a,b){a&1&&(F(0,"th"),M(1,wLa,2,1,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",b.isIssueGridColumn(a)))},yLa=function(a){if(a&1){var b=x();F(0,"b-column-picker",30);J("selectedColumnsChange",function(d){z(b);var e=K(3);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return A()});G()}if(a&2){a=K(2).column;var c=K();E("column",a)("availableColumns",
c.availableColumns)("selectedColumns",c.columns)}},zLa=function(a){a&1&&H(0,"pop-grid-default-th",27);a&2&&(a=K(2).column,E("column",a))},ALa=function(a){a&1&&(ve(0),M(1,yLa,1,3,"b-column-picker",28),M(2,zLa,1,1,"pop-grid-default-th",29),we());a&2&&(a=K(2),B(1),E("ngIf",a.enableColumnSaving),B(1),E("ngIf",!a.enableColumnSaving))},BLa=function(a,b){a&1&&(F(0,"th"),M(1,ALa,3,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),ke("data-stable-column-name",a.name),B(1),E("ngIf",b.isIssueGridColumn(a)))},
CLa=function(a){a&1&&xe(0)},DLa=function(a){a&1&&(F(0,"td",22),M(1,CLa,1,0,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},ELa=function(a){a&1&&xe(0)},FLa=function(a){a&1&&(F(0,"td",31),M(1,ELa,1,0,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},GLa=function(a){if(a&1){var b=x();ve(0);F(1,"mat-pseudo-checkbox",32);J("click",function(c){z(b);var d=K(),e=d.index;d=d.row;var f=K();c.stopPropagation();if(c.shiftKey&&(c=d.selected,null!==f.lastCheckedIndex&&f.searchResults)){if(e<f.lastCheckedIndex){var h=
e+1;var k=f.lastCheckedIndex+1}else h=f.lastCheckedIndex,k=e;h=r(f.searchResults.issues.slice(h,k));for(k=h.next();!k.done;k=h.next())k.value.selected=!c;cq(f)}d.selected=!d.selected;f.lastCheckedIndex=e;cq(f);return A()});G();we()}a&2&&(a=K().row,B(1),E("state",a.selected?"checked":"unchecked"),ke("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},HLa=function(a){a&1&&(F(0,"td",25),M(1,GLa,2,3,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},ILa=function(a){if(a&1){var b=x();
ve(0);F(1,"b-star-toggle",34);J("starClicked",function(){z(b);var d=K().row,e=K();return A(e.toggleStar(d))});G();we()}if(a&2){a=K().row;var c=K();B(1);E("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},JLa=function(a){a&1&&(F(0,"td",33),M(1,ILa,2,4,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},KLa=function(a){a&1&&(ve(0),F(1,"span"),O(2),G(),we());a&2&&(a=K().row,B(1),ke("title",a.position),B(1),Ge(" ",a.position,
" "))},LLa=function(a){a&1&&(F(0,"td"),M(1,KLa,3,2,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},MLa=function(a){a&1&&(ve(0),F(1,"a",36),O(2),G(),we());if(a&2){a=K().row;var b=K();B(1);E("href",b.paths.editIssue(a.issueId),Qd);ke("title",a.title);B(1);Ge(" ",a.issueId," ")}},NLa=function(a){a&1&&(F(0,"td",35),M(1,MLa,3,3,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},OLa=function(a){a&1&&H(0,"archived-issue-indicator")},PLa=function(a,b){a&1&&H(0,"b-hotlist-chip-smart",46);a&2&&E("id",
b.$implicit)("removable",!1)},QLa=function(a){a&1&&(F(0,"div",44),M(1,PLa,1,2,"b-hotlist-chip-smart",45),G());a&2&&(a=K(2).row,B(1),E("ngForOf",a.hotlistId))},RLa=function(a){a&1&&(ve(0),F(1,"div",38),M(2,OLa,1,0,"archived-issue-indicator",23),H(3,"b-access-level-indicator",39)(4,"b-retention-chip",40),F(5,"div",41)(6,"a",42),O(7),G()(),M(8,QLa,2,1,"div",43),G(),we());if(a&2){a=K().row;var b=K();B(1);pe("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);B(1);E("ngIf",a.archived);
B(1);E("accessLevel",a.accessLevel)("compactMode",!0);B(1);E("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);E("href",b.paths.editIssue(a.issueId),Qd);ke("title",a.title);B(1);Ge(" ",a.title," ");B(1);E("ngIf",b.listViewPrefs&&b.listViewPrefs.showHotlists)}},SLa=function(a){a&1&&(F(0,"td",37),M(1,RLa,9,13,"ng-container",23),G());a&2&&(a=K(),pe("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),B(1),E("ngIf",
!0))},ULa=function(a){a&1&&(ve(0),F(1,"div",48),O(2),G(),we());a&2&&(a=K().row,K(),B(1),E("ngClass",Ne(TLa,2<=Number(a.priority),2>Number(a.priority),0===Number(a.priority))),B(1),Ge(" P",a.priority," "))},VLa=function(a){a&1&&(F(0,"td",47),M(1,ULa,3,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},WLa=function(a){a&1&&(ve(0),F(1,"div",48),O(2),G(),we());a&2&&(a=K().row,K(),B(1),E("ngClass",Ne(TLa,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),B(1),Ge(" S",a.severity," "))},
XLa=function(a){a&1&&(F(0,"td",49),M(1,WLa,3,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},YLa=function(a){a&1&&H(0,"b-issue-status-display",52);a&2&&(a=K(2).row,E("issueStatusJs",a.status)("displayMode","ICON"))},ZLa=function(a){a&1&&(F(0,"span"),O(1),P(2,"v2StatusToHuman"),G());a&2&&(a=K(2).row,B(1),Ge(" ",Q(2,1,a.status)," "))},$La=function(a){a&1&&(ve(0),M(1,YLa,1,2,"b-issue-status-display",51),M(2,ZLa,3,3,"span",23),we());if(a&2){a=K().row;var b=K();B(1);E("ngIf",b.listViewPrefs&&b.listViewPrefs.showStatusIcons&&
a.status);B(1);E("ngIf",b.listViewPrefs&&!b.listViewPrefs.showStatusIcons)}},aMa=function(a){a&1&&(F(0,"td",50),M(1,$La,3,2,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},bMa=function(a){a&1&&(ve(0),O(1),P(2,"enumToHuman"),we());a&2&&(a=K().row,B(1),Ge(" ",Q(2,1,a.type)," "))},cMa=function(a){a&1&&(F(0,"td",53),M(1,bMa,3,3,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},dMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&(a=K(2).row,E("email",
Q(1,2,a.reporter)),B(2),Ge(" ",a.reporter," "))},eMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},fMa=function(a){a&1&&(ve(0),M(1,dMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,eMa,2,0,"span",23),we());a&2&&(a=K().row,B(1),E("ngIf",Q(2,2,a.reporter)),B(2),E("ngIf",!a.reporter))},gMa=function(a){a&1&&(F(0,"td",54),M(1,fMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},hMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&(a=K(2).row,
E("email",Q(1,2,a.assignee)),B(2),Ge(" ",a.assignee," "))},iMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},jMa=function(a){a&1&&(ve(0),M(1,hMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,iMa,2,0,"span",23),we());a&2&&(a=K().row,B(1),E("ngIf",Q(2,2,a.assignee)),B(2),E("ngIf",!a.assignee))},kMa=function(a){a&1&&(F(0,"td",54),M(1,jMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},lMa=function(a){a&1&&(F(0,"b-person-hovercard",56),P(1,"omitObfuscatedEmail"),O(2),G());a&2&&
(a=K(2).row,E("email",Q(1,2,a.verifier)),B(2),Ge(" ",a.verifier," "))},mMa=function(a){a&1&&(F(0,"span"),O(1,"--"),G())},nMa=function(a){a&1&&(ve(0),M(1,lMa,3,4,"b-person-hovercard",55),P(2,"omitObfuscatedEmail"),M(3,mMa,2,0,"span",23),we());a&2&&(a=K().row,B(1),E("ngIf",Q(2,2,a.verifier)),B(2),E("ngIf",!a.verifier))},oMa=function(a){a&1&&(F(0,"td",54),M(1,nMa,4,4,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},pMa=function(a){a&1&&(ve(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),
G(),we());a&2&&(a=K().row,B(1),ke("title",Q(2,2,a.cc)),B(2),Ge(" ",Q(4,4,a.cc)," "))},qMa=function(a){a&1&&(F(0,"td",54),M(1,pMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},rMa=function(a){a&1&&(ve(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),we());a&2&&(a=K().row,B(1),ke("title",Q(2,2,a.changelist)),B(2),Ge(" ",Q(4,4,a.changelist)," "))},sMa=function(a){a&1&&(F(0,"td",54),M(1,rMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},tMa=function(a){a&1&&(ve(0),
F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),we());a&2&&(a=K().row,B(1),ke("title",Q(2,2,a.postmortem)),B(2),Ge(" ",Q(4,4,a.postmortem)," "))},uMa=function(a){a&1&&(F(0,"td",54),M(1,tMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},vMa=function(a){a&1&&xe(0)},wMa=function(a){a&1&&(F(0,"span"),O(1,", "),G())},yMa=function(a,b){a&1&&(ve(0),M(1,vMa,1,0,"ng-container",58),M(2,wMa,2,0,"span",23),we());if(a&2){a=b.$implicit;b=b.last;K(3);var c=Fe(48);B(1);E("ngTemplateOutlet",
c)("ngTemplateOutletContext",Le(3,xMa,a));B(1);E("ngIf",!b)}},zMa=function(a){a&1&&(ve(0),M(1,yMa,3,5,"ng-container",57),we());a&2&&(a=K().row,B(1),E("ngForOf",a.blockingIssueId))},AMa=function(a){a&1&&(F(0,"td",54),M(1,zMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},BMa=function(a){a&1&&xe(0)},CMa=function(a){a&1&&(F(0,"span"),O(1,", "),G())},DMa=function(a,b){a&1&&(ve(0),M(1,BMa,1,0,"ng-container",58),M(2,CMa,2,0,"span",23),we());if(a&2){a=b.$implicit;b=b.last;K(3);var c=Fe(48);B(1);
E("ngTemplateOutlet",c)("ngTemplateOutletContext",Le(3,xMa,a));B(1);E("ngIf",!b)}},EMa=function(a){a&1&&(ve(0),M(1,DMa,3,5,"ng-container",57),we());a&2&&(a=K().row,B(1),E("ngForOf",a.blockedByIssueId))},FMa=function(a){a&1&&(F(0,"td",54),M(1,EMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},GMa=function(a){a&1&&xe(0)},HMa=function(a){a&1&&(ve(0),M(1,GMa,1,0,"ng-container",58),we());if(a&2){a=K(2).row;K();var b=Fe(48);B(1);E("ngTemplateOutlet",b)("ngTemplateOutletContext",Le(2,xMa,a.duplicateOfIssueId))}},
IMa=function(a){a&1&&(ve(0),M(1,HMa,2,4,"ng-container",23),we());a&2&&(a=K().row,B(1),E("ngIf",a.duplicateOfIssueId))},JMa=function(a){a&1&&(F(0,"td",54),M(1,IMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},KMa=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",60),we());a&2&&(a=K().row,B(1),E("timestamp",a.createdTime))},LMa=function(a){a&1&&(F(0,"td",59),M(1,KMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},MMa=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",60),we());
a&2&&(a=K().row,B(1),E("timestamp",a.modifiedTime))},NMa=function(a){a&1&&(F(0,"td",59),M(1,MMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},OMa=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",60),we());a&2&&(a=K().row,B(1),E("timestamp",a.resolvedTime))},PMa=function(a){a&1&&(F(0,"td",59),M(1,OMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},QMa=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",60),we());a&2&&(a=K().row,B(1),E("timestamp",a.verifiedTime))},RMa=function(a){a&
1&&(F(0,"td",59),M(1,QMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},SMa=function(a){a&1&&(ve(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),we());a&2&&(a=K().row,B(1),ke("title",Q(2,2,a.foundInVersion)),B(2),Ge(" ",Q(4,4,a.foundInVersion)," "))},TMa=function(a){a&1&&(F(0,"td",54),M(1,SMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},UMa=function(a){a&1&&(ve(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),we());a&2&&(a=K().row,B(1),ke("title",
Q(2,2,a.targetedToVersion)),B(2),Ge(" ",Q(4,4,a.targetedToVersion)," "))},VMa=function(a){a&1&&(F(0,"td",54),M(1,UMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},WMa=function(a){a&1&&(ve(0),F(1,"span"),P(2,"arrayToHuman"),O(3),P(4,"arrayToHuman"),G(),we());a&2&&(a=K().row,B(1),ke("title",Q(2,2,a.verifiedInVersion)),B(2),Ge(" ",Q(4,4,a.verifiedInVersion)," "))},XMa=function(a){a&1&&(F(0,"td",54),M(1,WMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},YMa=function(a){a&1&&(ve(0),
O(1),P(2,"yesNo"),we());a&2&&(a=K().row,B(1),Ge(" ",Q(2,1,a.inProd)," "))},ZMa=function(a){a&1&&(F(0,"td",54),M(1,YMa,3,3,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},$Ma=function(a){a&1&&(ve(0),O(1),P(2,"yesNo"),we());a&2&&(a=K().row,B(1),Ge(" ",Q(2,1,a.archived)," "))},aNa=function(a){a&1&&(F(0,"td",54),M(1,$Ma,3,3,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},bNa=function(a){a&1&&(ve(0),F(1,"div",38)(2,"div",41)(3,"span"),P(4,"componentPath"),O(5),P(6,"componentPath"),G()()(),
we());a&2&&(a=K().row,B(3),ke("title",Q(4,2,a.componentPath)),B(2),He(Q(6,4,a.componentPath)))},dNa=function(a){a&1&&(F(0,"td",61),M(1,bNa,7,6,"ng-container",23),G());if(a&2){a=K();var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);E("ngClass",Me(2,cNa,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));B(1);E("ngIf",!0)}},eNa=function(a){a&1&&(F(0,"slo-status-card",64),H(1,"b-aggregated-slo-status-indicator",65),G());a&2&&(a=K(2).row,E("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",
a.sloSnoozeUntil),B(1),E("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil))},fNa=function(a){a&1&&(ve(0),M(1,eNa,2,5,"slo-status-card",63),we());a&2&&(a=K().row,B(1),E("ngIf",a.sloStatus))},gNa=function(a){a&1&&(F(0,"td",62),M(1,fNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},hNa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,E("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","RESPONSE"),
B(1),E("sloBounds",a.sloStatus.getResponseBounds()))},iNa=function(a){a&1&&(ve(0),M(1,hNa,2,5,"slo-status-card",66),we());a&2&&(a=K().row,B(1),E("ngIf",a.sloStatus))},jNa=function(a){a&1&&(F(0,"td",62),M(1,iNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},kNa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,E("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","ASSIGNMENT"),B(1),E("sloBounds",a.sloStatus.getAssignmentBounds()))},
lNa=function(a){a&1&&(ve(0),M(1,kNa,2,5,"slo-status-card",66),we());a&2&&(a=K().row,B(1),E("ngIf",a.sloStatus))},mNa=function(a){a&1&&(F(0,"td",62),M(1,lNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},nNa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,E("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","CLOSURE"),B(1),E("sloBounds",a.sloStatus.getClosureBounds()))},oNa=function(a){a&1&&(ve(0),
M(1,nNa,2,5,"slo-status-card",66),we());a&2&&(a=K().row,B(1),E("ngIf",a.sloStatus))},pNa=function(a){a&1&&(F(0,"td",62),M(1,oNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},qNa=function(a,b){a&1&&H(0,"b-formatted-date-time",70);a&2&&(a=b.$implicit,K(3),E("timestamp",1E3*a.seconds))},rNa=function(a){a&1&&(ve(0),M(1,qNa,1,1,"b-formatted-date-time",69),we());a&2&&(a=K().row,B(1),E("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},sNa=function(a){a&1&&(F(0,"td",
54),M(1,rNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},tNa=function(a){a&1&&H(0,"div",72)},uNa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",73),G());a&2&&(a=K(2).row,B(1),E("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},vNa=function(a){a&1&&(ve(0),M(1,tNa,1,0,"div",71),M(2,uNa,2,3,"div",23),we());a&2&&(a=K(2),B(1),E("ngIf",a.isLoadingTeams),B(1),E("ngIf",!a.isLoadingTeams))},wNa=function(a){a&1&&(F(0,"td",54),M(1,vNa,3,2,"ng-container",
23),G());a&2&&(K(),B(1),E("ngIf",!0))},xNa=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().row,B(1),Ge(" ",null==a.effort?null:V(a.effort,2)," "))},yNa=function(a){a&1&&(F(0,"td",54),M(1,xNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},zNa=function(a){a&1&&(ve(0),O(1),we());if(a&2){a=K().row;var b=K();B(1);Ge(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Cl(a.effort,4))||"":""," ")}},ANa=function(a){a&1&&(F(0,"td",54),M(1,zNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},
BNa=function(a){a&1&&(ve(0),O(1),we());if(a&2){a=K().row;var b=K();B(1);Ge(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Cl(a.effort,5))||"":""," ")}},CNa=function(a){a&1&&(F(0,"td",54),M(1,BNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),E("ngIf",!0))},DNa=function(a){a&1&&H(0,"b-issue-card",77,78);if(a&2){var b=Fe(1);a=K().id;E("onedevIsHovercardReady",b.init)("issueId",a)}},ENa=function(a,b){a&1&&(F(0,"onedev-hovercard",null,74),M(2,DNa,2,2,"b-issue-card",75),G(),F(3,"span",76),O(4),G());if(a&
2){a=b.id;var c=Fe(1);B(3);E("onedevHovercardTrigger",c);B(1);He(a)}},FNa=function(a){if(a&1){var b=x();F(0,"b-app-bar-bulk-edit-menus",10);J("onBulkEdit",function(c){z(b);var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),E("readStatePrompt",EJa(a)))},
GNa=function(a){if(a&1){var b=x();F(0,"b-copy-issue-id-button",11);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(GJa(c.copyIssueIdService,Wp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=K();return A(HJa(c.copyIssueIdService,Wp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=K();return A(IJa(c.copyIssueIdService,Wp(c)))});G()}a&2&&(a=K(),E("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},
HNa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"b-hotlist-picker",13);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&2&&(a=K(),B(1),E("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},INa=function(a){a&1&&H(0,"hotlist-archive-btn",16);a&2&&(a=K(2),E("hotlistId",a.currentHotlistId))},JNa=function(a){if(a&
1){var b=x();ve(0);F(1,"hotlist-add-issue-btn",14);J("issueAddedToHotlist",function(){z(b);var c=K();return A(c.refresh())});G();M(2,INa,1,1,"hotlist-archive-btn",15);we()}a&2&&(a=K(),B(1),E("hotlistId",a.currentHotlistId),B(1),E("ngIf",a.isHotlistAdmin))},KNa=function(a){a&1&&(F(0,"span",20),O(1,"Reporting"),G())},LNa=function(a){if(a&1){var b=x();F(0,"b-button",17);J("onAction",function(){z(b);var c=K();return A(c.openInEstado())});H(1,"b-icon",18);M(2,KNa,2,0,"span",19);G()}a&2&&(a=K(),E("size",
a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),E("ngIf",!a.hasSelectedIssues()))},MNa=function(a,b){a&1&&(F(0,"li"),O(1),H(2,"b-access-level-indicator",28),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.path," "),B(1),E("accessLevel",a.accessLevel))},NNa=function(a){a&1&&(F(0,"div",26)(1,"div")(2,"strong"),O(3,"You are commenting on issues in components that have external viewers:"),G()(),F(4,"ul"),M(5,MNa,3,2,"li",27),G()());a&2&&(a=K(2),B(5),E("ngForOf",a.externalWarnings))},
ONa=function(a){if(a&1){var b=x();F(0,"h1",21);O(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",22);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(NJa(c))});G();M(4,NNa,6,1,"div",23);G();F(5,"mat-dialog-actions")(6,"button",24);O(7," Cancel ");G();F(8,"button",25);O(9," Save ");G()()}a&2&&(a=K(),B(3),E("comment",a.comment)("showToolbar",!1),B(1),E("ngIf",0<a.externalWarnings.length),B(2),E("mat-dialog-close",!1),
B(2),E("mat-dialog-close",!0))},QNa=function(a,b){if(a&1){var c=x();F(0,"div",5)(1,"b-contact-chip",6);J("chipSelection",function(){var d=z(c).index,e=K();e.selectedChipIndex!==d&&dq(e,d)&&(PNa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return A()})("chipClear",function(){z(c);var d=K();return A(PNa(d))})("chipRemove",function(){var d=z(c).index,e=K();return A(e.removeItem(d))});G()()}a&2&&(a=b.$implicit,b=K(),B(1),E("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()))},TNa=function(a){if(a&1){var b=x();F(0,"input",7,8);J("autocompleteActive",function(){z(b);var c=K();return A(c.chipifyFn())})("ngModelChange",function(c){z(b);var d=K();return A(d.typedText=c)})("focus",function(){z(b);var c=K();return A(RNa(c))})("blur",function(){z(b);var c=K();SNa(c,c.typedText.split(",")[0].trim());
c.isFocused=!1;return A()});G()}a&2&&(a=K(),E("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn)("ngModel",a.typedText)("disabled",a.isWidgetDisabled()),ke("id",a.idForInputBox))},UNa=function(a){a&1&&(F(0,"span"),O(1," Groups cannot be granted Restricted+ reader permission. "),F(2,"a",9),O(3,"Learn more"),G()());a&2&&(a=K(),B(2),ke("href",Jo(a.documentationLinks)+"#components",Qd))},VNa=function(a){a&1&&(F(0,"span"),O(1," Invalid user(s). "),G())},WNa=function(a){a&
1&&(F(0,"span"),O(1,' "Public" or external users are not allowed for component designated as "internal access". '),G())},XNa=function(a){a&1&&(F(0,"span"),O(1,' "Public" is not allowed for components designated as "external partner access". '),G())},YNa=function(a){a&1&&(F(0,"span"),O(1," SLO lead can not be a group. "),G())},ZNa=function(a){a&1&&(F(0,"span"),O(1," SLO lead can only be a full-time Googler. "),G())},$Na=function(a){if(a&1){var b=x();F(0,"div",7)(1,"button",8);J("click",function(){z(b);
var c=K();return A(c.onPressSave())});O(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var c=K();return A(c.onPressRevert())});O(4," Revert changes ");G()()}a&2&&(a=K(),B(1),E("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),E("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},
aOa=function(a){if(a&1){var b=x();F(0,"div",7)(1,"button",8);J("click",function(){z(b);var d=K();return A(d.save())});O(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var d=K();return A(d.revert())});O(4," Revert changes ");G();H(5,"hotlist-archive-btn",10);P(6,"async");G()}if(a&2){a=K();var c;B(1);E("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);E("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?
"No changes":"Go back to the last saved state");B(2);E("hotlistId",null!==(c=Q(6,5,a.id$))&&void 0!==c?c:void 0)}},bOa=function(a,b){a&1&&(ve(0),O(1),we());a&2&&(a=b.$implicit,B(1),Ge(" ",a.name," "))},cOa=function(a){a&1&&(F(0,"strong",4),O(1,"(archived)"),G())},dOa=function(a){a&1&&H(0,"b-spinner")},eOa=function(a){if(!a)return{left:"0",width:"0"};if(a.classList.contains("mat-tab-link")){var b=window.getComputedStyle(a),c=b.paddingLeft?Number(b.paddingLeft.replace("px",""))||0:0;b=b.paddingRight?
Number(b.paddingRight.replace("px",""))||0:0;return{left:a.offsetLeft+c+2+"px",width:a.offsetWidth-c-b-4+"px"}}b=a.querySelector(".mat-tab-label-content");if(!b)return{left:a.offsetLeft+2+"px",width:a.offsetWidth-4+"px"};c=a.offsetWidth;b=Math.min(Math.max(b.offsetWidth-4,24),c-4);return{left:a.offsetLeft+c/2-b/2+"px",width:b+"px"}},fOa=function(a){a&1&&(F(0,"p",8),O(1," This hotlist cannot be edited because you are not an administrator of it. "),G())},gOa=function(a){a&1&&(ve(0),H(1,"b-edit-hotlist-toolbar",
1),F(2,"div",2),H(3,"b-edit-hotlist-header",1),F(4,"mat-tab-group",3)(5,"mat-tab",4),H(6,"b-edit-hotlist-basic",5),P(7,"async"),G(),F(8,"mat-tab",6),H(9,"b-edit-hotlist-acl",5),P(10,"async"),G()(),M(11,fOa,2,0,"p",7),P(12,"async"),G(),we());a&2&&(a=K(),B(1),E("hotlistId",a.id),B(2),E("hotlistId",a.id),B(1),E("selectedIndex",a.tabIndex),B(2),E("hotlistId",a.id)("isReadOnly",!1===Q(7,8,a.isAdmin$)),B(3),E("hotlistId",a.id)("isReadOnly",!1===Q(10,10,a.isAdmin$)),B(2),E("ngIf",!1===Q(12,12,a.isAdmin$)))},
hOa=function(a,b){a&1&&(ve(0),H(1,"empty-toolbar"),F(2,"div",9)(3,"h2"),O(4,"Error"),G(),F(5,"p"),O(6),G()(),we());a&2&&(a=b.$implicit,B(6),He(a))},iOa=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),O(2),G()());a&2&&(a=K(),B(2),He(a.error))},jOa=function(a){a&1&&xe(0)},kOa=function(a){a&1&&(F(0,"span"),O(1,"Details"),G())},lOa=function(a){a&1&&(F(0,"span"),O(1,"Members"),G())},nOa=function(a){a&1&&(F(0,"div",13)(1,"a",14),M(2,kOa,2,0,"span",15),M(3,lOa,2,0,"span",15),G()());if(a&2){a=K(2);
B(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=mOa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":oua(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}E("href",b,Qd);B(1);E("ngIf",mOa(a.email));B(1);E("ngIf",!mOa(a.email))}},oOa=function(a){a&1&&(ve(0),F(1,"span",2),M(2,jOa,1,0,"ng-container",3),G(),F(3,"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",
7)(8,"div",8)(9,"div",9)(10,"h3"),O(11),G()(),F(12,"div",10),H(13,"mat-icon",11),F(14,"span"),O(15),G()()(),M(16,nOa,4,3,"div",12),G()()()(),we());if(a&2){var b=Fe(4);a=K();var c=Fe(2);B(1);E("onedevHovercardTrigger",b);B(1);E("ngTemplateOutlet",c);B(9);He(a.getName());B(4);He(a.email);B(1);E("ngIf",!a.sessionIsExternal&&!!Rn(a.email))}},pOa=function(a){a&1&&Be(0)},qOa=function(a,b){a&1&&H(0,"mat-icon",8);a&2&&E("svgIcon",b.ngIf)},rOa=function(a){a&1&&(F(0,"b-person-hovercard",9),O(1),G());a&2&&(a=
K(),E("email",a.value),B(1),Ge(" ",a.displayText," "))},sOa=function(a){a&1&&(F(0,"b-group-email-card",9),O(1),G());a&2&&(a=K(),E("email",a.value),B(1),Ge(" ",a.displayText," "))},tOa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(),B(1),Ge(" ",a.displayText," "))},uOa=function(a){if(a&1){var b=x();F(0,"div",10);J("click",function(){z(b);var c=K();return A(c.chipRemove.emit())});H(1,"mat-icon",11);G()}a&2&&(a=K(),Ce("matTooltip","'Remove ",a.displayText,"'"),ke("aria-label","Remove "+a.displayText))},
vOa=function(a,b){a&1&&(F(0,"div",19),H(1,"b-contact-chip",20),G());a&2&&(a=b.$implicit,b=K(2),B(1),E("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},wOa=function(a){a&1&&(F(0,"div",12)(1,"div",13)(2,"div",14),M(3,vOa,2,5,"div",15),F(4,"div",16),H(5,"div",17)(6,"div",18),G()()()());a&2&&(a=K(),B(3),E("ngForOf",a.nestedChips))},xOa=function(a,b){if(a&1){var c=x();F(0,"tr",7);J("click",function(){var e=
z(c).$implicit,f=K();return A(f.editHotlist(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",9);J("click",function(e){return e.stopPropagation()});O(4);G()();F(5,"td",10);O(6);G();F(7,"td",11);O(8);G();F(9,"td",12);O(10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();pe("grid-focus",d.isFocused(b));ke("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);E("href",d.paths.editHotlist(a.hotlistId),Qd);B(1);Ge(" ",a.name,
" ");B(2);Ge(" ",a.description," ");B(2);Ge(" ",d.convertUserToString(a.ownerUser)," ");B(2);Ge(" ",a.hotlistId," ")}},yOa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});O(1," Move to top ");G()}},zOa=function(a){if(a&1){var b=x();F(0,"button",10);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});O(1," Move up ");G()}},AOa=function(a){if(a&1){var b=
x();F(0,"button",11);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});O(1," Move down ");G()}},BOa=function(a){if(a&1){var b=x();F(0,"button",12);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});O(1," Move to bottom ");G()}},COa=function(a){if(a&1){var b=x();M(0,yOa,2,0,"button",4);M(1,zOa,2,0,"button",5);M(2,AOa,2,0,"button",6);M(3,BOa,2,0,"button",7);F(4,"button",8);J("click",function(){z(b);
var c=K();return A(c.removePanel())});O(5," Remove ");G()}a&2&&(a=K(),E("ngIf",!a.first),B(1),E("ngIf",!a.first),B(1),E("ngIf",!a.last),B(1),E("ngIf",!a.last))},DOa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),ke("title",a.getValue()),B(1),Ge(" ",a.getValue(),"\n"))},EOa=function(a){a&1&&H(0,"b-custom-field-value-display",2);a&2&&(a=K(),E("customFieldValue",a.getCustomFieldValue()))},FOa=function(a){a&1&&(F(0,"button",5,6),H(2,"mat-icon",7),G());if(a&2){a=K();var b=Fe(2);E("matMenuTriggerFor",
b);ke("aria-label",a.buttonLabel);B(2);E("svgIcon",a.buttonIcon)}},GOa=function(a){a&1&&(F(0,"div",8),O(1),G());a&2&&(a=K(),B(1),He(a.header))},HOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,E("svgIcon",a.icon))},IOa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(2).$implicit,B(1),He(a.hintText))},JOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,E("svgIcon",a.icon))},KOa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(2).$implicit,B(1),He(a.hintText))},LOa=function(a){if(a&
1){var b=x();F(0,"button",17);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});M(1,JOa,1,1,"mat-icon",11);O(2);M(3,KOa,2,1,"span",12);G()}a&2&&(a=K().$implicit,E("disabled",a.disabled),ke("title",a.title),B(1),E("ngIf",a.icon),B(1),Ge(" ",a.label," "),B(1),E("ngIf",a.hintText))},MOa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,
d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();O(3);G()}a&2&&(a=K().$implicit,pe("b-menu-item-checked",a.selected),E("disabled",a.disabled),ke("title",a.title),B(3),Ge(" ",a.label," "))},NOa=function(a,b){a&1&&(ve(0),M(1,LOa,4,5,"button",15),M(2,MOa,4,5,"button",16),we());a&2&&(a=b.$implicit,B(1),E("ngIf","action"===a.type),B(1),E("ngIf","select"===a.type))},OOa=function(a){a&1&&(ve(0),F(1,"button",10),M(2,HOa,1,1,"mat-icon",
11),O(3),M(4,IOa,2,1,"span",12),G(),F(5,"mat-menu",null,13),M(7,NOa,3,2,"ng-container",4),G(),we());if(a&2){var b=Fe(6);a=K().$implicit;var c=K();B(1);E("matMenuTriggerFor",b);B(1);E("ngIf",a.icon);B(1);Ge(" ",a.label," ");B(1);E("ngIf",a.hintText);B(3);E("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},POa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(3).$implicit,E("svgIcon",a.icon))},QOa=function(a){a&1&&(F(0,"span",14),O(1),G());a&2&&(a=K(3).$implicit,B(1),He(a.hintText))},ROa=function(a){if(a&
1){var b=x();F(0,"button",17);J("click",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});M(1,POa,1,1,"mat-icon",11);O(2);M(3,QOa,2,1,"span",12);G()}a&2&&(a=K(2).$implicit,E("disabled",a.disabled),ke("title",a.title),B(1),E("ngIf",a.icon),B(1),Ge(" ",a.label," "),B(1),E("ngIf",a.hintText))},SOa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",function(c){z(b);var d=K(2).$implicit,e=K();
return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();O(3);G()}a&2&&(a=K(2).$implicit,pe("b-menu-item-checked",a.selected),E("disabled",a.disabled),ke("title",a.title),B(3),Ge(" ",a.label," "))},TOa=function(a){a&1&&(ve(0),M(1,ROa,4,5,"button",15),M(2,SOa,4,5,"button",16),we());a&2&&(a=K().$implicit,B(1),E("ngIf","action"===a.type),B(1),E("ngIf","select"===a.type))},UOa=function(a,b){a&1&&(ve(0),M(1,OOa,
8,6,"ng-container",9),M(2,TOa,3,2,"ng-container",9),we());a&2&&(a=b.$implicit,B(1),E("ngIf","submenu"===a.type),B(1),E("ngIf","submenu"!==a.type))},VOa=function(a){a&1&&H(0,"b-actions-menu",7);a&2&&(a=K(),E("menuItems",a.menuItems))},WOa=function(a){a&1&&(F(0,"span",8)(1,"strong"),O(2),G(),O(3,"\u00a0of\u00a0"),F(4,"strong"),O(5),G()());a&2&&(a=K(),B(2),Ie("",null==a.searchResults?null:a.searchResults.startIndex,"\u00a0-\u00a0",null==a.searchResults?null:a.searchResults.endIndex,""),B(3),He(null==
a.searchResults?null:a.searchResults.totalText))},XOa=function(a){a&1&&(F(0,"div"),O(1," Hotlist not found. "),G())},YOa=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},ZOa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),E("panelId",a.panel.panelId))},$Oa=function(a){a&1&&(F(0,"span",12),O(1," \u00a0(changed) "),G())},aPa=function(a){a&1&&(F(0,"div"),M(1,ZOa,1,1,"b-panel-controls",6),F(2,"span",7),O(3," Hotlist: "),F(4,"a",8)(5,"span",9),O(6),G()()(),M(7,$Oa,2,0,"span",10),
G());a&2&&(a=K(),B(1),E("ngIf",a.isDashboardEditable),B(3),E("href",a.paths.viewHotlist(a.hotlistId),Qd),B(1),De("matTooltip",a.resource.description),B(1),He(a.resource.name),B(1),E("ngIf",a.hasParamChanges()))},bPa=function(a){if(a&1){var b=x();F(0,"div",13)(1,"button",14);J("click",function(){z(b);var c=K();return A(c.save())});O(2,"Save ");G();F(3,"button",15);J("click",function(){z(b);var c=K();return A(c.discardChanges())});O(4," Discard changes ");G()()}},cPa=function(a){a&1&&(F(0,"span"),O(1),
G());a&2&&(a=K(3),B(1),Ge(" Searching for ",a.searchParams.query," ..."))},dPa=function(a){a&1&&(F(0,"div",19),H(1,"b-spinner",20),M(2,cPa,2,1,"span",3),G());a&2&&(a=K(2),B(1),E("large",!1),B(1),E("ngIf",a.searchParams&&(null==a.searchParams?null:a.searchParams.query)))},ePa=function(a){a&1&&(F(0,"div",21),O(1," No issues in hotlist. "),G())},gPa=function(a){if(a&1){var b=x();F(0,"div",22)(1,"b-issues-grid",23);J("init",function(c){z(b);var d=K(2);return A(fPa(d,c))})("focusedRowIndexChange",function(c){z(b);
var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){z(b);var d=K(2);return A(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page-
1))});G()()}a&2&&(a=K(2),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},hPa=function(a){a&1&&(F(0,"div"),M(1,dPa,3,2,"div",16),M(2,ePa,2,0,"div",17),M(3,gPa,2,5,"div",18),G());a&2&&(a=K(),B(1),E("ngIf",a.isLoading),B(1),E("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),B(1),E("ngIf",!a.isLoading&&(null==a.searchResults?
null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},iPa=function(a){a&1&&(Qc(),Rc(),xe(0))},kPa=function(a,b){a&1&&(ve(0),F(1,"div",11)(2,"span",12),Qc(),F(3,"svg",13),H(4,"path",14),G()(),M(5,iPa,1,0,"ng-container",15),G(),we());if(a&2){a=b.$implicit;b=b.index;var c=K(3),d=Fe(6);B(2);pe("invisible",c.disabled);B(3);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Me(4,jPa,a,b))}},lPa=function(a){a&1&&(ve(0),M(1,kPa,6,7,"ng-container",10),we());a&2&&(a=K(2),B(1),E("ngForOf",
a.items))},mPa=function(a){if(a&1){var b=x();ve(0);F(1,"div",8)(2,"div",9);J("cdkDropListDropped",function(d){z(b);var e=K();return A(e.onDrop(d))});M(3,lPa,2,1,"ng-container",2);G()();we()}if(a&2){a=K();var c=Fe(12);B(3);E("ngIf",a.items.length)("ngIfElse",c)}},nPa=function(a){a&1&&xe(0)},oPa=function(a,b){a&1&&(ve(0),F(1,"div",17),M(2,nPa,1,0,"ng-container",15),G(),we());if(a&2){a=b.$implicit;b=b.index;K(3);var c=Fe(6);B(2);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Me(2,jPa,a,b))}},pPa=
function(a){a&1&&(ve(0),M(1,oPa,3,5,"ng-container",10),we());a&2&&(a=K(2),B(1),E("ngForOf",a.items))},qPa=function(a){a&1&&(F(0,"div",16),M(1,pPa,2,1,"ng-container",2),G());if(a&2){a=K();var b=Fe(12);B(1);E("ngIf",a.items.length)("ngIfElse",b)}},rPa=function(a){a&1&&xe(0)},sPa=function(a){if(a&1){var b=x();F(0,"button",19);J("click",function(){z(b);var d=K().index,e=K();return A(e.removeAtIndex(d))});Qc();F(1,"svg",13);H(2,"path",20);G()()}if(a&2){a=K().$implicit;var c=K();E("matTooltip","Remove "+
(c.valueToTextFunc?c.valueToTextFunc(a):String(a)));ke("aria-label","Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)))}},tPa=function(a,b){a&1&&(M(0,rPa,1,0,"ng-container",15),M(1,sPa,3,2,"button",18));if(a&2){a=b.$implicit;b=b.index;var c=K(),d=Fe(10),e=Fe(8);E("ngTemplateOutlet",c.listItemTemplate?d:e)("ngTemplateOutletContext",Me(3,jPa,a,b));B(1);E("ngIf",!c.disabled&&c.removable)}},uPa=function(a,b){a&1&&(F(0,"span",21),O(1),G());a&2&&(a=b.$implicit,B(1),He(a))},vPa=function(a,b){a&
1&&xe(0,22);if(a&2){a=b.$implicit;var c=b.index,d=K();b=E("ngTemplateOutlet",d.listItemTemplate);var e=d.disabled;d=d.removable;var f=x(),h=Nc()+2,k=je(f,h,a,c);a=je(f,h+2,e,d)||k?he(f,h+4,{$implicit:a,index:c,disabled:e,removable:d}):Oe(f,h+4);b("ngTemplateOutletContext",a)}},wPa=function(a){a&1&&(F(0,"div",23),Be(1),G())},xPa=function(a){a&1&&H(0,"b-issue-status-display",9);a&2&&(a=K().$implicit,E("issueStatusJs",a.status)("displayMode","ICON"))},yPa=function(a){a&1&&H(0,"b-issue-card",10,11);if(a&
2){var b=Fe(1);a=K().$implicit;E("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},zPa=function(a){a&1&&(F(0,"a",12),O(1),G());if(a&2){a=K().$implicit;var b=K();E("href",b.getLink(a),Qd);B(1);Ge(" ",a.title," ")}},APa=function(a){a&1&&(F(0,"span"),O(1," Loading details... "),G())},BPa=function(a){a&1&&(F(0,"span"),O(1," [Details unavailable] "),G())},CPa=function(a,b){a&1&&(F(0,"span",2),M(1,xPa,1,2,"b-issue-status-display",3),F(2,"span")(3,"onedev-hovercard",null,4),M(5,yPa,2,2,"b-issue-card",
5),G(),F(6,"a",6),O(7),G()(),M(8,zPa,2,2,"a",7),M(9,APa,2,0,"span",8),M(10,BPa,2,0,"span",8),G());if(a&2){a=b.$implicit;var c=Fe(4);b=K();E("ngClass",b.getStatusTextStyle(a));B(1);E("ngIf",a.status);B(5);me("aria-label","Open issue ID ",a.issueId,"");E("href",b.getLink(a),Qd)("onedevHovercardTrigger",c);B(1);Ge(" ",a.issueId," ");B(1);E("ngIf",a.resolved&&a.title);B(1);E("ngIf",!a.resolved);B(1);E("ngIf",a.resolved&&!a.title)}},DPa=function(a){if(a&1){var b=x();F(0,"b-rel-issues-list",6);J("itemsChange",
function(c){z(b);var d=K(2);return A(d.itemsChange.emit(c))})("itemChange",function(c){z(b);var d=K(2);return A(d.itemChange.emit(c))})("itemMove",function(c){z(b);var d=K(2);return A(d.itemMove.emit(c))});G()}a&2&&(a=K(2),E("items",a.items)("orderByFn",a.orderByFn)("disabled",a.disabled)("reorderable",a.reorderable))},EPa=function(a){a&1&&(F(0,"div"),M(1,DPa,1,4,"b-rel-issues-list",5),G());a&2&&(a=K(),B(1),E("ngIf",a.items.length))},FPa=function(a){a&1&&H(0,"b-issue-status-display",18);a&2&&(a=K().$implicit,
E("issueStatusJs",a.status))},GPa=function(a){a&1&&H(0,"b-issue-card",19,20);if(a&2){var b=Fe(1);a=K().$implicit;E("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},HPa=function(a){a&1&&(F(0,"span",10),O(1," Loading details... "),G())},IPa=function(a){a&1&&(F(0,"span",21),O(1),G());a&2&&(a=K().$implicit,B(1),Ge(" ",a.title," "))},JPa=function(a){a&1&&(F(0,"span"),O(1," [Details unavailable.] "),G())},KPa=function(a){if(a&1){var b=x();F(0,"button",22);J("click",function(){z(b);var d=K().$implicit,
e=K(2);return A(e.removeItem(d.issueId))});G()}if(a&2){a=K().$implicit;var c=K(2);E("disabled",c.disabled)("matTooltip",c.removeButtonTitle||"Remove issue");ke("aria-label",c.removeButtonTitle?c.removeButtonTitle+" ID "+a.issueId:"Remove issue ID "+a.issueId)}},LPa=function(a,b){a&1&&(F(0,"div",8),M(1,FPa,1,1,"b-issue-status-display",9),F(2,"span",10)(3,"onedev-hovercard",null,11),M(5,GPa,2,2,"b-issue-card",12),G(),F(6,"a",13),O(7),G()(),F(8,"a",14),M(9,HPa,2,0,"span",15),M(10,IPa,2,1,"span",16),
M(11,JPa,2,0,"span",3),G(),M(12,KPa,1,3,"button",17),G());if(a&2){a=b.$implicit;var c=Fe(4);b=K(2);E("ngClass",!b.hideStatus&&b.getStatusTextStyle(a)||"");B(1);E("ngIf",!b.hideStatus&&a.resolved&&a.status);B(5);me("aria-label","Open issue ID ",a.issueId,"");E("href",b.getLink(a),Qd)("onedevHovercardTrigger",c);B(1);Ge(" ",a.issueId," ");B(1);E("href",b.getLink(a),Qd);B(1);E("ngIf",!a.resolved);B(1);E("ngIf",a.resolved&&a.title);B(1);E("ngIf",a.resolved&&!a.title);B(1);E("ngIf",b.removeButtonTitle)}},
MPa=function(a){a&1&&(F(0,"div"),M(1,LPa,13,11,"div",7),G());a&2&&(a=K(),B(1),E("ngForOf",a.items))},NPa=function(a){a&1&&(F(0,"div"),O(1,"--"),G())},OPa=function(a){a&1&&(F(0,"div",26)(1,"a",14),O(2,"View in issue list"),G()());a&2&&(a=K(2),B(1),E("href",a.searchLink,Qd))},QPa=function(a){if(a&1){var b=x();F(0,"div",23)(1,"button",24);J("click",function(){z(b);var c=K();return A(PPa(c))});O(2);G();M(3,OPa,3,1,"div",25);Be(4);G()}a&2&&(a=K(),B(1),E("disabled",a.disabled),B(1),Ge(" ",a.addButtonTitle||
"Add issue"," "),B(1),E("ngIf",a.searchLink))},RPa=function(a){a&1&&(F(0,"div"),O(1," Saved search not found. "),G())},SPa=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},TPa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),E("panelId",a.panel.panelId))},UPa=function(a){a&1&&(F(0,"span",12),O(1," \u00a0(changed) "),G())},VPa=function(a){a&1&&(F(0,"div",6),M(1,TPa,1,1,"b-panel-controls",7),F(2,"span",6),O(3," Saved search: "),F(4,"a",8)(5,"span",9),O(6),G()()(),M(7,UPa,2,0,"span",
10),G());a&2&&(a=K(),B(1),E("ngIf",a.isDashboardEditable),B(3),E("href",a.paths.viewSavedSearch(a.savedSearchId),Qd),B(1),De("matTooltip",a.resource.description),B(1),He(a.resource.name),B(1),E("ngIf",a.hasParamChanges()))},WPa=function(a,b){a&1&&(F(0,"span"),O(1),G());a&2&&(a=b.ngIf,B(1),Ge("Searching for ",a,"..."))},XPa=function(a){a&1&&(F(0,"div",16),H(1,"b-spinner",17),M(2,WPa,2,1,"span",3),G());a&2&&(a=K(2),B(1),E("large",!1),B(1),E("ngIf",null==a.searchParams?null:a.searchParams.query))},YPa=
function(a){a&1&&(F(0,"div",18),O(1," No issues in saved search. "),G())},ZPa=function(a){if(a&1){var b=x();F(0,"div",19)(1,"b-issues-grid",20);J("init",function(c){z(b);var d=K(2);return A(fPa(d,c))})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.columnsChange(c))})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page-1))});G()()}a&2&&(a=K(2),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},$Pa=function(a){a&1&&(F(0,"div"),M(1,XPa,3,2,"div",13),M(2,YPa,2,0,"div",14),M(3,ZPa,2,5,"div",15),G());a&2&&(a=K(),B(1),E("ngIf",a.isLoading),B(1),
E("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),B(1),E("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},aQa=function(a,b){a&1&&(F(0,"span",3)(1,"a",4),O(2),G()());a&2&&(a=b.$implicit,B(1),Ce("routerLink","/teams/",a.id,"/edit"),E("preserveFragment",!0),B(1),He(a.name))},bQa=function(a){a&1&&(F(0,"p")(1,"span",6),O(2,"NOTE:"),G(),O(3),F(4,"a",7),O(5,"Learn more"),G()());a&2&&(a=K(),B(3),Ge(" ",a.data.noteText," "),B(1),E("href",a.getDisablingFieldsHelpLink(),
Qd))},cQa=function(a){a&1&&(F(0,"span",15)(1,"strong"),O(2),G(),O(3," of "),F(4,"strong"),O(5),G()());a&2&&(a=K(5),B(2),Ie("",a.startIndex,"\u2013",a.endIndex,""),B(3),He(a.totalText))},dQa=function(a){if(a&1){var b=x();F(0,"div",9);M(1,cQa,6,3,"span",10);F(2,"b-button",11);J("onAction",function(){z(b);var c=K(4);return A(c.fetchIssues(c.page-1))});H(3,"b-icon",12);G();F(4,"b-button",13);J("onAction",function(){z(b);var c=K(4);return A(c.fetchIssues(c.page+1))});H(5,"b-icon",14);G()()}a&2&&(a=K(4),
B(1),E("ngIf",!a.isLoadingAsyncResults()),B(1),E("disabled",1>=a.page),B(2),E("disabled",a.page>=a.numPages))},fQa=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){z(b);var c=K(4),d={},e={};c.enableDupSearchControl&&(d.experimentIds=["44573608"]);c.enableDupSearchA&&(d.experimentIds=["44573610"]);c.enableDupSearchB&&(d.experimentIds=["44573612"]);c.enableDupSearchC&&(d.experimentIds=["44573614"]);e.groupName=c.getGroupName();d.customData=e;eQa(c.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",
d).pipe(fg(c.destroyed$)).subscribe();return A()});H(1,"mat-icon",17);G()}},hQa=function(a){a&1&&(F(0,"li")(1,"h3"),O(2),G(),M(3,dQa,6,3,"div",7),M(4,fQa,2,0,"button",8),G());a&2&&(a=K(3),B(2),He(gQa(a)),B(1),E("ngIf",!a.enableSimilarIssues),B(1),E("ngIf",a.showSuggestedDupes))},iQa=function(a){a&1&&(F(0,"div",18),O(1,"There may already be issues opened on this topic. Please consider +1 to the canonical issue if that is the case."),G())},jQa=function(a){if(a&1){var b=x();F(0,"b-issue-card",24,25);
J("init",function(){z(b);var e=K(5);io(e.analytics,mo.MAGIC_BOX,"titleHoverOver",e.getGroupName());return A()});G()}if(a&2){var c=Fe(1);a=K().$implicit;var d=K(4);E("onedevIsHovercardReady",c.init)("issueId",a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},kQa=function(a,b){if(a&1){var c=x();F(0,"li",20)(1,"onedev-hovercard",null,21);M(3,jQa,2,3,"b-issue-card",22);G();F(4,"a",23);J("click",function(){z(c);var e=K(4);io(e.analytics,mo.MAGIC_BOX,"titleClick",e.getGroupName());return A()});
O(5);G()()}if(a&2){a=b.$implicit;var d=Fe(2);b=K(4);E("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");B(4);Ce("href","issues/",a.id,"",Qd);E("onedevHovercardTrigger",d);B(1);Ge(" ",a.title," ")}},lQa=function(a){a&1&&(ve(0),M(1,kQa,6,4,"li",19),we());a&2&&(a=K(3),B(1),E("ngForOf",a.magicBoxIssues))},mQa=function(a){a&1&&(F(0,"li"),O(1),G());a&2&&(a=K(3),B(1),Ge(" No ",gQa(a).toLowerCase()," found. "))},nQa=function(a){a&1&&(F(0,"li",26)(1,"a",27),O(2," View All Issues \u2192 "),
G()());a&2&&(a=K(3),B(1),De("href",a.viewAllHref,Qd))},oQa=function(a){if(a&1){var b=x();F(0,"li",28)(1,"button",29);J("click",function(){z(b);var c=K(3);c.fetchIssues(c.page+1);io(c.analytics,mo.MAGIC_BOX,"loadMore");return A()});H(2,"mat-icon",30);O(3," Load more ");G()()}},pQa=function(a){if(a&1){var b=x();F(0,"li",31)(1,"a",27)(2,"button",32);J("click",function(){z(b);var c=K(3);io(c.analytics,mo.MAGIC_BOX,"viewAll");return A()});O(3,"View all ");H(4,"mat-icon",33);G()()()}a&2&&(a=K(3),B(1),De("href",
a.viewAllHref,Qd))},qQa=function(a){a&1&&(F(0,"li"),H(1,"b-spinner"),F(2,"span"),O(3,"Loading..."),G()())},rQa=function(a){a&1&&(F(0,"ul"),M(1,hQa,5,3,"li",2),M(2,iQa,2,0,"div",3),M(3,lQa,2,1,"ng-container",2),M(4,mQa,2,1,"li",2),M(5,nQa,3,1,"li",4),M(6,oQa,4,0,"li",5),M(7,pQa,5,1,"li",6),M(8,qQa,4,0,"li",2),G());a&2&&(a=K(2),B(1),E("ngIf",!a.hideHeader),B(1),E("ngIf",a.showSuggestedDupes),B(1),E("ngIf",!a.isLoadingAsyncResults()),B(1),E("ngIf",0==a.magicBoxIssues.length&&!a.isLoadingAsyncResults()),
B(1),E("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&!a.enableSimilarIssues),B(1),E("ngIf",!a.isLoadingAsyncResults()&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),B(1),E("ngIf",!a.isLoadingAsyncResults()&&1<a.numPages&&a.enableSimilarIssues),B(1),E("ngIf",a.isLoadingAsyncResults()))},sQa=function(a){a&1&&(F(0,"div"),H(1,"b-spinner"),F(2,"span"),O(3,"Loading..."),G()())},tQa=function(a){a&1&&(F(0,"div",1),M(1,rQa,9,8,"ul",2),M(2,sQa,4,0,"div",2),G());a&2&&(a=K(),B(1),E("ngIf",!a.magicBoxLoading),
B(1),E("ngIf",a.magicBoxLoading))},uQa=function(a){a&1&&(ve(0),H(1,"span",26)(2,"b-icon",27),we());a&2&&(a=K(),B(1),E("innerHTML",a.menuLabel,Pd))},vQa=function(a){a&1&&(F(0,"div",28),O(1," This includes emails about major updates and: "),F(2,"ul",29)(3,"li"),O(4,"All title, hotlist, and status changes."),G(),F(5,"li"),O(6,"Blocking, Blocked By, or Duplicate changes."),G(),F(7,"li"),O(8,"Changes to Reporter, Verifier, and CCs."),G(),F(9,"li"),O(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),
G(),F(11,"li"),O(12,"Changes to custom fields marked as minor."),G()()())},wQa=function(a){a&1&&(F(0,"div",30),O(1," This includes emails about: "),F(2,"ul",29)(3,"li"),O(4,"New comments."),G(),F(5,"li"),O(6,"Priority or Severity changes."),G(),F(7,"li"),O(8,"Assignee changes."),G(),F(9,"li"),O(10,"Component changes."),G(),F(11,"li"),O(12,"Issue closure or reopening."),G(),F(13,"li"),O(14,"Changes to custom fields marked as major."),G()()())},xQa=function(a,b){a&1&&(F(0,"mat-option",6),O(1),G());
a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",a.getName()," "))},yQa=function(a){a&1&&(F(0,"span",11),O(1," (must be between 30 days and 10 years) "),G())},zQa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"b-duration-picker",13);J("durationDaysChange",function(c){z(b);var d=K();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);eq(d);return A()});G();F(2,"div",14);O(3);G()()}a&2&&(a=K(),B(1),E("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),
B(2),Ge(" Issues will be marked for deletion when they have not been modified for ",fq(a.model.retentionPeriodDays),". "))},AQa=function(a){a&1&&(F(0,"div",15)(1,"p"),O(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),F(3,"b"),O(4,"one or more"),G(),O(5," of the following is true:"),G(),F(6,"ol")(7,"li"),O(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),G(),F(9,"li"),O(10,
"You have a process in place to manually delete this data within an approved period of time."),G(),F(11,"li"),O(12,"Legal and Privacy have approved this non-standard retention period."),G()()())},BQa=function(a){a&1&&(F(0,"span",11),O(1," (Issue Retention is shorter than default Restricted Retention) "),G())},DQa=function(a){a&1&&(F(0,"span",11),O(1),G());a&2&&(a=K(),B(1),Ge(" ",CQa(a)," "))},EQa=function(a){a&1&&(F(0,"div",21)(1,"p"),O(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."),
G()())},GQa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"div")(2,"span",16);O(3,"Restricted retention:");G();F(4,"b-duration-picker",17);J("durationDaysChange",function(c){z(b);var d=K();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);eq(d);return A()});G()();F(5,"div",18)(6,"p");O(7);G()();F(8,"div")(9,"span",16);O(10,"Restricted+ retention:");G();F(11,"b-duration-picker",19);J("durationDaysChange",function(c){z(b);var d=K();d.model.spiiRetentionPeriodDays=
null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);eq(d);return A()});G()();F(12,"div",18)(13,"p");O(14);G()();M(15,EQa,3,0,"div",20);G()}a&2&&(a=K(),B(4),E("disabled",!gq(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),Ge(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",fq(a.model.piiRetentionPeriodDays),". "),B(4),E("disabled",!gq(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),Ge(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
fq(a.model.spiiRetentionPeriodDays),". "),B(1),E("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&FQa(a)))},HQa=function(a){a&1&&(F(0,"div",22)(1,"p"),O(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."),G()())},hq=function(a,b,c,
d){var e=IQa(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}},IQa=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;null!=(c=b.exec(a));)d=c,d.index=b.lastIndex;return d},iq=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},JQa=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},jq=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=
b.val.toLowerCase();a=a.filter(function(q){q=q.name.toLowerCase();return q!==e||d?c?Qi(q,e):fa(q,e):!1});b=b.idx;for(var f=b+e.length,h=r(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},kq=function(a,b,c,d){return{trackId:b+":"+a,name:a,id:a,label:c,completionCfg:{enableShadowPlaceholder:!0,completionValue:a,type:d}}},MQa=function(a,b){if(a&1){var c=x();F(0,"div",9)(1,"div",10);J("click",function(d){var e=z(c).$implicit,f=K();e=e.key;if(d=
void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;KQa(f);LQa(f);f.optionsChange.emit(f.options);return A()});F(2,"b-checkbox",11);J("change",function(d){var e=z(c).$implicit,f=K();e.value.value=d;KQa(f);LQa(f);f.optionsChange.emit(f.options);return A()})("click",function(d){return d.stopPropagation()});G()()()}a&2&&(a=b.$implicit,ke("aria-checked",a.value.value),B(2),E("checked",a.value.value)("label",a.value.displayString))},NQa=function(a){a&
1&&(F(0,"div",12),O(1),G());a&2&&(a=K(),B(1),Ge(" ",a.errorString," "))},PQa=function(a){if(a&1){var b=x();F(0,"span",4)(1,"input",5);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.businessDayString=c)})("ngModelChange",function(){z(b);var c=K(2);return A(OQa(c))});G();F(2,"span",8);O(3,"days,");G()()}a&2&&(a=K(2),B(1),pe("ng-invalid",!!a.errorString),E("ngModel",a.businessDayString))},RQa=function(a,b){a&1&&(F(0,"mat-option",9),O(1),G());a&2&&(a=b.$implicit,b=K(2),E("value",a),B(1),Ge(" ",
QQa(b,a)," "))},UQa=function(a){if(a&1){var b=x();F(0,"span",2);M(1,PQa,4,3,"span",3);F(2,"span",4)(3,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalString=c)})("ngModelChange",function(){z(b);var c=K();return A(OQa(c))});G();F(4,"mat-select",6);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalUnit=c)})("selectionChange",function(){z(b);var c=K();SQa(c);TQa(c);return A()});M(5,RQa,2,2,"mat-option",7);G()()()}a&2&&(a=K(),B(1),E("ngIf",2==a.dayType),B(2),pe("invalid",
!!a.errorString),E("ngModel",a.intervalString),B(1),E("ngModel",a.intervalUnit),B(1),E("ngForOf",2==a.dayType?[lq,mq]:[lq,mq,nq]))},VQa=function(a){a&1&&(F(0,"span",13),O(1),G());a&2&&(a=K(2),B(1),Ie(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},WQa=function(a){a&1&&(F(0,"span"),O(1,", "),G())},XQa=function(a){a&1&&(F(0,"span"),M(1,WQa,2,0,"span",12),F(2,"span"),O(3),G()());a&2&&(a=K(2),B(1),E("ngIf",a.objectiveBusinessDays),B(2),Ie("",a.intervalString," ",QQa(a,a.intervalUnit),
""))},YQa=function(a){a&1&&(F(0,"span",10),M(1,VQa,2,2,"span",11),M(2,XQa,4,3,"span",12),G());a&2&&(a=K(),B(1),E("ngIf",a.objectiveBusinessDays),B(1),E("ngIf",a.intervalString&&"0"!=a.intervalString))},$Qa=function(a){if(a&1){var b=x();F(0,"b-icon",22);J("click",function(){z(b);var c=K(2);return A(ZQa(c,0))});G()}a&2&&E("name","add")("size","small")},bRa=function(a){if(a&1){var b=x();F(0,"span",17)(1,"span",18)(2,"span",19);M(3,$Qa,1,2,"b-icon",20);G();F(4,"span",19)(5,"b-icon",21);J("click",function(c){z(b);
var d=K();return A(aRa(d,c))});G()()()()}a&2&&(a=K(),B(3),E("ngIf",a.canPerformActions),B(2),E("name","delete")("size","small"))},cRa=function(a){a&1&&H(0,"td",42)},dRa=function(a){if(a&1){var b=x();F(0,"td",43)(1,"slo-element-property-picker",44);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.typePickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),E("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},eRa=function(a){if(a&1){var b=x();F(0,
"td",45)(1,"slo-element-property-picker",46);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.priorityPickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),E("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},fRa=function(a){if(a&1){var b=x();F(0,"td",47)(1,"slo-element-property-picker",48);J("optionsChange",function(d){z(b);var e=K().$implicit;return A(e.postmortemPickerValues=d)});G()()}if(a&2){a=K().$implicit;var c=K(2);B(1);
E("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},hRa=function(a,b){a&1&&(F(0,"mat-option",53),O(1),G());a&2&&(a=b.$implicit,K(4),E("value",a),B(1),Ge(" ",0===a?" - ":gRa.get(a)," "))},iRa=function(a){if(a&1){var b=x();F(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedMetric=d)});M(3,hRa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=
K(2);B(2);E("ngModel",a.selectedMetric)("customValidators",a.metricValidators);B(1);E("ngForOf",c.metricChoices)}},jRa=function(a){if(a&1){var b=x();F(0,"td",54)(1,"slo-objective-selector",55);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),E("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",
a.selectedObjectiveBusinessDays)("validator",a.validateObjective))},lRa=function(a,b){a&1&&(F(0,"mat-option",53),O(1),G());a&2&&(a=b.$implicit,K(4),E("value",a),B(1),Ge(" ",kRa.get(a||1)," "))},mRa=function(a){if(a&1){var b=x();F(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedDayType=d)})("selectionChange",function(){z(b);var d=K().$implicit;2===d.selectedDayType?0===d.selectedObjectiveDuration.getSeconds()%86400&&(d.selectedObjectiveBusinessDays=
d.selectedObjectiveDuration.getSeconds()/86400,d.selectedObjectiveDuration.setSeconds(0)):(0===d.selectedObjectiveDuration.getSeconds()&&d.selectedObjectiveDuration.setSeconds(86400*d.selectedObjectiveBusinessDays),d.selectedObjectiveBusinessDays=0);return A()});M(3,lRa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=K(2);B(2);E("ngModel",a.selectedDayType);B(1);E("ngForOf",c.dayTypes)}},pRa=function(a){if(a&1){var b=x();F(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);J("click",function(){z(b);
var c=K(3);if(c.openRow)if(c.openRow.isValid())nRa(c.openRow.typePickerValues)&&nRa(c.openRow.priorityPickerValues)&&nRa(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Tn("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}):oq(c);else{var d=c.openRow;(2!=d.selectedDayType?
0<d.selectedObjectiveDuration.getSeconds():0<d.selectedObjectiveDuration.getSeconds()||0<d.selectedObjectiveBusinessDays)||c.confirmationDialogService.open({title:"SLO validation error",content:Tn('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 A()});G()();F(4,"span",19)(5,"b-icon",61);J("click",
function(){z(b);var c=K().$implicit,d=K(2);return A(oRa(d,c))});G()()()()}a&2&&(B(3),E("name","done")("size","small"),B(2),E("name","delete")("size","small"))},qRa=function(a){a&1&&H(0,"td",62)},rRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ge("ERROR: ",a.parseResult.error,""))},sRa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),He(a))},uRa=function(a){a&1&&(F(0,"span",66),M(1,sRa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(1);if(0===
a.parseResult.types.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(tRa(a.controllerReference,d));a=b}E("ngForOf",a)}},vRa=function(a){a&1&&(F(0,"td",63),M(1,rRa,2,1,"div",64),M(2,uRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.parseResult.error),B(1),E("ngIf",!a.parseResult.error))},wRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),
Ge("ERROR: ",a.parseResult.error,""))},xRa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),He(a))},zRa=function(a){a&1&&(F(0,"span",66),M(1,xRa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(1);if(0===a.parseResult.priorities.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(yRa(a.controllerReference,d));a=b}E("ngForOf",a)}},
ARa=function(a){a&1&&(F(0,"td",70),M(1,wRa,2,1,"div",64),M(2,zRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.parseResult.error),B(1),E("ngIf",!a.parseResult.error))},BRa=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K(2).$implicit,B(1),Ge("ERROR: ",a.parseResult.error,""))},CRa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),O(2),G()());a&2&&(a=b.$implicit,B(2),He(a))},DRa=function(a){a&1&&(F(0,"span",66),M(1,CRa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(1);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])];E("ngForOf",a)}},ERa=function(a){a&1&&(F(0,"td",71),M(1,BRa,2,1,"div",64),M(2,DRa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.parseResult.error),B(1),E("ngIf",!a.parseResult.error))},FRa=function(a){a&1&&(F(0,"td",72),O(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=a.sloElement.getMetric(),a=0===a?" - ":gRa.get(a),Ge(" ",a," "))},GRa=function(a){if(a&
1){var b=x();F(0,"td",73)(1,"slo-objective-selector",74);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),E("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",!a.isEditing_))},HRa=function(a){a&1&&(F(0,
"td",75),O(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=Y(a.sloElement,4,0),a=kRa.get(a||1),Ge(" ",a," "))},JRa=function(a){if(a&1){var b=x();F(0,"b-icon",85);J("click",function(c){z(b);var d=K(2).$implicit,e=K(2);return A(IRa(e,d,c))});G()}a&2&&E("name","edit")("size","small")},KRa=function(a){a&1&&H(0,"b-icon",86);if(a&2){K();var b=Fe(8);E("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},MRa=function(a){if(a&1){var b=x();F(0,"button",87);J("click",function(){z(b);var c=K(2).$implicit,
d=K(2);return A(LRa(d,c,1))});O(1," Move row down ");G()}},NRa=function(a){if(a&1){var b=x();F(0,"button",88);J("click",function(){z(b);var c=K(2).$implicit,d=K(2);return A(LRa(d,c,-1))});O(1," Move row up ");G()}},PRa=function(a){if(a&1){var b=x();F(0,"td",76)(1,"span",18)(2,"span",19);M(3,JRa,1,2,"b-icon",77);G();F(4,"span",19)(5,"span");M(6,KRa,1,3,"b-icon",78);G();F(7,"mat-menu",null,79);M(9,MRa,2,0,"button",80);M(10,NRa,2,0,"button",81);F(11,"button",82);J("click",function(){z(b);var d=K().$implicit,
e=K(2);ZQa(e,e.collection.indexOf(d)+1);return A()});O(12," Add row below ");G();F(13,"button",83);J("click",function(){z(b);var d=K().$implicit,e=K(2);ZQa(e,e.collection.indexOf(d));return A()});O(14," Add row above ");G();F(15,"button",84);J("click",function(){z(b);var d=K().$implicit,e=K(2);return A(oRa(e,d))});O(16," Remove ");G()()()()()}if(a&2){a=K().$implicit;var c=K(2);B(3);E("ngIf",a.canEdit);B(3);E("ngIf",a.canEdit);B(3);E("ngIf",ORa(c,a,1).valid);B(1);E("ngIf",ORa(c,a,-1).valid)}},QRa=
function(a,b){a&1&&(F(0,"tr",25),M(1,cRa,1,0,"td",26),M(2,dRa,2,3,"td",27),M(3,eRa,2,3,"td",28),M(4,fRa,2,3,"td",29),M(5,iRa,4,3,"td",30),M(6,jRa,2,4,"td",31),M(7,mRa,4,2,"td",32),M(8,pRa,6,4,"td",33),M(9,qRa,1,0,"td",34),M(10,vRa,3,2,"td",35),M(11,ARa,3,2,"td",36),M(12,ERa,3,2,"td",37),M(13,FRa,2,1,"td",38),M(14,GRa,2,4,"td",39),M(15,HRa,2,1,"td",40),M(16,PRa,17,4,"td",41),G());a&2&&(a=b.$implicit,b=K(2),pe("draggable",!b.isDisabled&&null==b.openRow),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),
B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_),B(1),E("ngIf",!a.isEditing_))},RRa=function(a){if(a&1){var b=x();F(0,"tbody",23);J("cdkDropListDropped",function(c){z(b);var d=K();
return A(d.onDrop(c))});M(1,QRa,17,18,"tr",24);G()}a&2&&(a=K(),E("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),B(1),E("ngForOf",a.collection))},SRa=function(a){a&1&&(F(0,"div",89),O(1," There are currently no rules for this SLO "),G())},TRa=function(a,b){if(a&1){var c=x();F(0,"tr",7);J("click",function(){var e=z(c).$implicit,f=K();return A(f.editSlo(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",
9);J("click",function(e){return e.stopPropagation()});O(4);G()();F(5,"td",10);O(6);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();pe("grid-focus",d.isFocused(b));ke("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);E("href",d.paths.editSlo(a.getSloId()),Qd);B(1);Ge(" ",a.getName()," ");B(2);Ge(" ",a.getDescription()," ")}},URa=function(a){if(a&1){var b=x();F(0,"div")(1,"div",1);J("clickOutside",function(){z(b);K().isPickerVisible=!1;return A()});F(2,"b-date-time-picker-content",
2);J("dateSelectionChange",function(c){z(b);var d=K();return A(d.setDate(c))})("saveClicked",function(){z(b);var c=K();c.isPickerVisible=!1;c.snoozeUntilCommit.emit();return A()})("cancelClicked",function(){z(b);K().isPickerVisible=!1;return A()});G()()()}a&2&&(a=K(),B(2),E("date",a.currentPickerDate))},VRa=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Xl(a))},pq=function(a,b){return cj("enableJspb")?a:b},qq=function(a,b,c){b=[b,c].map(function(d){return null!=d?d:""}).join(";");a.setAttribute("pkd-ac-state",
String(oh(b)))},WRa=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(oh(b)))},XRa=function(a,b){a.setAttribute("pkd-ps-state",String(oh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(oh("2")))},function(){a.setAttribute("pkd-ps-state",String(oh("3")))})},YRa=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},rq=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},ZRa=function(a){var b=new Image;b.src=
a;a=b.complete;b.src="";return a},tq=function(a,b,c,d,e){e=void 0===e?new sq:e;b=ep($Ra,{imageUrls:b.map(function(f){return f||"https://lh3.googleusercontent.com/a/default-user"}),backupUrl:"https://lh3.googleusercontent.com/a/default-user",size:c,preloadSize:d,pixelRatio:aSa()});e=new bSa(b,e);a.appendChild(b);return e},uq=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Ae`"+a);}},vq=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";
case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ae`"+a);}},dSa=function(a,b){var c="",d=0;b=r(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 cSa(cSa(Mj(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},eSa=function(a){var b=a.getDisplayName();
return b?dSa(b,a.getMatchInfo().getDisplayNameMatches()):""},fSa=function(a){var b=a.getDisplayValue();return b?dSa(b,a.getMatchInfo().getDisplayValueMatches()):""},gSa=function(a){var b=eSa(a),c=fSa(a);b=b||c;c=c||a.getDescription();var d=a.getPrimaryTarget();return{hovercardId:1===d.getTargetType()||6===d.getTargetType()?a.getDisplayValue():d.getProfileId(),label:b,sublabel:c,photos:[a.getPhotoUrl()]}},wq=function(){var a=void 0===a?10:a;var b="";if(1>a)return b;for(;b.length<a;)b+=Math.random().toString(36).substring(2);
return b.length>a?b.substring(0,a):b},hSa=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},iSa=function(a){var b=new xq;if(a instanceof yq)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.")}else b.setErrorType(5),
b.setErrorMessage(a.message);return b},Bq=function(a){a=void 0===a?null:a;var b=(new zq).setExperimentFlags(new Aq).setSource(3);a&&b.setError(iSa(a));return b},qSa=function(a){var b=void 0===b?new jSa:b;if(kSa)return kSa;var c=new lSa(a),d=new mSa(a);b=b.isAvailable()?new Cq(a,b):new Dq(a);b.clean();c=new nSa(new oSa(b,c),d);return kSa=new pSa(a,c)},sSa=function(a,b,c){var d=gSa(a);return rSa(a,d,b,c)},rSa=function(a,b,c,d){var e=[];W(Eq.getExperiments(),3,!1)&&c.getWarnForExternalSelections()&&
2===a.getPrimaryTarget().getOrgState()&&e.push({iconUrl:"https://www.gstatic.com/people/peoplekit/icons/light_theme/domain_disabled_grey900.svg",altText:"External",style:1});var f=!1;c.getShouldHideSuggestionSublabels()&&(f=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:Fq(tSa),hovercardId:b.hovercardId,label:b.label,sublabel:f?"":b.sublabel,photos:b.photos,densityClass:d,tags:e}},wSa=function(a,b,c){var d="",e=a.getDescription(),f=!1,h=a.getMemberList().length;
if(1<h||a.getDisplayName())d=a.getMemberList().map(function(k){var q="";if(k.getPrimaryTarget().getName()){var u,y;(q=(q=null==(u=k.getPrimaryTarget())?void 0:null==(y=u.getName())?void 0:y.getGivenName())?dSa(q,k.getMatchInfo().getGivenNameMatches()):"")||(q=eSa(k))}q||(q=fSa(k));return q}),b&&(d=d.reverse()),d=eSa(a)||uSa({memberNames:d}),e||c||null===a.getTotalMemberCount()||(e=vSa({memberCount:Number(a.getTotalMemberCount())}),f=!0);else if(1===h)return e=a.getMemberList()[0],f=gSa(e),Object.assign({},
f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});b=a.getPhotoUrl();b=a.getDisplayName()&&b?[b]:a.getMemberList().map(function(k){return k.getPhotoUrl()});return{hovercardId:"",label:d,sublabel:e,type:a.getPrimaryTarget().getTargetType(),photos:b,allowSublabelTranslation:f}},ySa=function(a,b,c,d,e){c=wSa(a,c,d);if(c.flatResult)return Object.assign({},rSa(c.flatResult,c,b,e),{type:c.type,allowSublabelTranslation:!1});d=!1;b.getShouldHideSuggestionSublabels()&&
(d=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:Fq(xSa),hovercardId:c.hovercardId,label:c.label,sublabel:d?"":c.sublabel,type:c.type,photos:c.photos,densityClass:e,tags:[],allowSublabelTranslation:c.allowSublabelTranslation}},Gq=function(a,b,c,d,e,f){return new zSa(a,b,c,d,e,f)},Iq=function(a,b,c){return new Hq(new ASa(void 0===a?0:a,null!=b?b:[],null!=c?c:null))},CSa=function(a,b,c,d,e,f){var h=a.getPrimaryTarget().getId();e=Jq(h)||Kq(h)?ySa(a,c,
f,W(e.internal,6,!1),vq(d.getDensity())):sSa(a,c,vq(d.getDensity()));f=Object;h=f.assign;a:switch(b){case 1:b=Lq('<div class="'+Mq("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Mq(". Already selected")+'">'+Lq('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Mq("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>'))+
"</div>");break a;case 2:b=Lq("");break a;default:b='<div class="'+Mq("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=Lq(b+"DISABLED</div>")}b=ep(BSa,h.call(f,{},e,{disableReason:b}));f=rq(b,"d6MZcd");h=uq(d.getDensity());d=tq(f,e.photos,h,h,d);return new Nq(b,a,c,e.tags,d)},DSa=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");b.initEvent(a,!0,!0);return b},FSa=function(a,b){return new ESa(a,void 0===b?"":b)},Oq=function(a){if(a=a.getAttribute("pk-log")){var b=r(a.split(";"));
a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;return{id:a,veid:Number(c),action:d.split(","),pairs:b.split(",")}}return null},Pq=function(a,b,c,d){d=void 0===d?[]:d;d=void 0===d?[]:d;b=[Fq(GSa),b,c.join(","),d.join(",")].join(";");b=oh(b);a.setAttribute("pk-log",String(b))},HSa=function(a){var b=-1;(a=Qq(a))&&gj(a,2)&&(b=hj(a,2,0));return"index:"+b},NSa=function(a,b,c,d,e,f,h){h=ep(ISa,{header:h||""});a.appendChild(h);a=rq(h,"tjneg");h=ep(JSa,{id:Fq(KSa)});a.appendChild(h);
a=new LSa(h);return{resultList:new MSa(a,b,c,d,e,f),list:a}},OSa=function(a,b,c,d,e,f,h,k,q){a=NSa(a,b,c,d,e,k,q);b=a.resultList;b=new Rq(b,a.list,h);return new Sq(b,f)},TSa=function(a,b,c,d,e){var f=PSa(c),h=Tq(a),k=Uq(a);k&&h.intersection(QSa(k));RSa(h,cp(a),cp(c));a=Vq(a,b);b=h.left;a&4&&(b+=h.width);h=new Wq(b,h.top+(a&1?h.height:0));h=Xq(h,f);a=Vq(c,d);h=SSa(h,Yq(c),a).rect;c=Uq(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;f=h;f.left<c.left?f.left=c.left:f.left+f.width>c.right&&(f.left=
c.right-f.width);h=f;e&&(e=h,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),h=e);return h},WSa=function(a,b){Zq(a,new Wq(b.left,b.top));b=b.getSize();USa(Yq(a),b)||VSa(a,b)},XSa=function(a,b,c){return new $q(a,b,c)},ZSa=function(a,b){return new YSa(a,b)},$Sa=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},ar=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
br=function(a,b,c,d){d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e(a,b,c)},aTa=function(a,b,c,d,e){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},bTa=function(a){var b=document.createElement("div"),c=a.action,d=a.pairs;if(b){var e="";c&&c.length&&(e="; track:"+c.join(",").trim());c="";d&&d.length&&(c="; "+d.join("; ").trim());b.setAttribute("jslog",a.veid+e+c);b.__ve=void 0}return b},cTa=function(a){return Array.from(a).filter(function(b){return b instanceof Element}).flatMap(function(b){var c=
Array.from(b.querySelectorAll("[pk-log]"));b.hasAttribute("pk-log")&&c.push(b);return c})},eTa=function(a){if(dTa.has(a))return dTa.get(a);throw Error("Je`"+a);},gTa=function(a){if(fTa.has(a))return fTa.get(a);throw Error("Ke`"+a);},hTa=function(a){var b=new Map,c;for(c in a)b.set(a[c].string,a[c].googRequiredXid);return b},jTa=function(a){return a?a.__owner?a.__owner:a.parentNode&&11===a.parentNode.nodeType?a.parentNode.host:iTa(a):null},kTa=function(a,b){for(a=jTa(a);a&&!b(a);)a=jTa(a)},mTa=function(a,
b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new cr);return lTa(a,b,c,h,d,e,f)},lTa=function(a,b,c,d,e,f,h){f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=f.internal,q=e.getEnvironmentConfig(),u=q.experimentsConfig_.getProfileId();if(u)if(k.getExperiments().getIsEnabled()){var y=no(dr,'[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]');y=new er(y,7)}else y=new fr;else y=new fr;k=k.getExperiments();q=y.loadExperiments(k.getApplication(),
(new gr).setPeopleApiEnv(q.apiEnv_),u);Eq=new hr(k,q);q=e.getTheme();u=r(["peoplekitThemeLight","peoplekitThemeDark"]);for(k=u.next();!k.done;k=u.next())a.classList.remove(k.value);(q=nTa.get(q))&&a.classList.add(q);Pq(a,64611,["impression"]);q=new ir;u=e.getEntryPoint();u=new oTa(d,q,u);k=f.internal.getClearcut();y=new pTa(k);y=$o(y);k=k.getInterfaceType();k=new qTa(new rTa(y,k));var D=new sTa(h.intelligence);h=ep(tTa);a.appendChild(h);y=ep(uTa);Pq(y,85843,["impression"]);h.appendChild(y);var I=
rq(y,"tjneg");a:{var N=e.getAutocompleteHeader();switch(e.getAutocompleteGroupingType()){case 1:D=OSa(I,e,e,f,q,u,new jr(e.getAutocompleteGroupingLabel()),D,N);break a;case 2:D=OSa(I,e,e,f,q,u,new kr(e.getAutocompleteGroupingLabel()),D,N);break a;case 3:var L=e.getAutocompleteCustomGrouping();L?D=OSa(I,e,e,f,q,u,L,D,N):(D=NSa(I,e,e,f,q,D,N),D=new Sq(D.resultList,u));break a;default:D=NSa(I,e,e,f,q,D,N),D=new Sq(D.resultList,u)}}I=rq(I,"rymPhb");b.setAttribute("aria-owns",I.id);b.setAttribute("aria-controls",
I.id);I.setAttribute("aria-labelledby",b.id);if(N=e.getNoResultsMessage())I=ep(vTa),N=ep(wTa,N),I.append(N),y.append(I);d=new xTa(y,b,D,d,k,e);b=new yTa(h,b,d,q,e);XRa(b.getRoot(),c);c=f.internal.getClearcut();f=e.getEntryPoint();d=Eq.getExperiments();W(d,2,!1)||W(c,6,!0)?(d=new lr,h=Ro(),f=(new zTa).setClientId(c.getClientId()).setApplication(c.getSocialApplication()).setEntryPoint(f).setVersionName("1.0").setBaselineCl(449361830),f=new ATa(d,1394,h,void 0,void 0,void 0,new BTa(f)),f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||
!1),c=new mr,d=Eq.getExperimentIds(),c=ml(c,3,d),f.clearcut_&&f.clearcut_.setClearExperimentIds(c),a.hasAttribute("pk-log")?(c=new CTa(new nr(a),f),a=new DTa(a,c),a=new ETa(a)):a=new or):a=new or;a.start();return new FTa(b,q,u,a,e)},GTa=function(a){var b=[],c=a.indexOf("@");0>c?c=a.length-1:1<a.length-c&&(b.push(a.substring(c)),a=a.substring(0,c+1));if("@"===a)return b;b.push(a);pr.lastIndex=0;for(var d=pr.exec(a);d&&d.index<c;d=pr.exec(a))b.push(a.substring(Number(pr.lastIndex)));return b},rr=function(a){return qr(HTa(a)).replace(ITa,
"").toUpperCase().toLowerCase()},KTa=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(JTa)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=rr(c.value);c=r(GTa(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})},MTa=function(a){var b;return LTa(function(c){1==c.nextAddress&&(b=0);if(3!=c.nextAddress)return b<
a?ff(c,b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},NTa=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Jq(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},QTa=function(a,b,c){if(Jq(a.id)||Jq(b.id)){var d=OTa.has(a.id.getType()),e=OTa.has(b.id.getType());if(d!==e)return d?-1:1;if(Jq(a.id)&&Jq(b.id))return PTa(a,b,c,!1)}d=NTa(a,c);c=NTa(b,c);(c=d!==c?d>c?-1:1:0)||(c=1===a.dataSource,c=c!==(1===b.dataSource)?c?-1:1:0);c||(a=!!a.isPrimary,c=a!==!!b.isPrimary?
a?-1:1:0);return c},PTa=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?QTa(a,b,c):0},STa=function(a){return a?RTa.get(a)||0:0},TTa=function(a){switch(a.getValueCase()){case 2:return new sr(1,a.getEmail().getValue()||"");case 3:return a=a.getPhone(),new sr(2,p(a,2)||a.getDisplayValue()||"");case 4:a=Bl(a,tr,4,ur);if(a.hasProfileId())return new sr(8,a.getProfileId()||"");switch(rb(a,vr)){case 2:return new sr(6,
a.getEmail()||"");case 3:return new sr(7,a.getPhone()||"")}}return wr},UTa=function(a){return tb(a,xr,5).map(function(b){switch(b.getIdCase()){case 1:return new sr(3,b.getProfileId()||"");default:return null}}).filter(Boolean)},VTa=function(a,b){return oj(a,3)&&m(a,yr,3).getIsPlaceholder()?3:Xo(b,8)?1:0},zr=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},WTa=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},XTa=function(a){return!!a&&
!!a.getPrimary()},ZTa=function(a){if(!a.hasEmail()||!a.getEmail().getValue())return null;var b=void 0;m(a,Ar,9)&&(b=Br(new Cr,YTa,m(a,Ar,9)));a={id:new sr(1,a.getEmail().getValue()),containerIds:UTa(a),contactMethod:a,provenance:8,isMe:!1,dataSource:1,isPrimary:XTa(a.getDisplayInfo()),itemAffinity:-Infinity,fieldAffinity:zr(a.getDisplayInfo())};b&&(a.targetExtendedData=b);return a},aUa=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"+$Ta(a):""},dUa=function(a,b,c){c=void 0===c?!1:c;var d=[],e=void 0,f=void 0;m(a,yr,3)&&(e=e?e:new Cr,Br(e,bUa,m(a,yr,3)));m(a,Dr,5)&&(e=e?e:new Cr,Br(e,cUa,m(a,Dr,5)));for(var h=[],k=r(tb(a,Er,1)),q=k.next();!q.done;q=k.next()){q=q.value;var u=TTa(q);if(u.equals(wr)){if(!c)continue;u=aUa(q);if(!u)continue;u=new sr(18,u)}h.push(String(u));
m(q,Ar,9)&&(f=f?f:new Cr,Br(f,YTa,m(q,Ar,9)));q={id:u,containerIds:UTa(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:VTa(a,q),provenance:b,isPrimary:XTa(q.getDisplayInfo()),itemAffinity:WTa(a),fieldAffinity:zr(q.getDisplayInfo()),contactMethod:q,person:a};oj(a,3)&&m(a,yr,3).hasContactId()&&q.containerIds.push(new sr(4,String(m(a,yr,3).getContactId())));e&&(q.resultExtendedData=e);f&&(q.targetExtendedData=f);d.push(q)}d.length&&d.every(function(y){return!y.isPrimary})&&(d[0].isPrimary=!0);return d},
fUa=function(a,b){var c=eUa(STa(p(a,5)),a.getGroupId()||""),d=a.getMembersList().map(function(h){return dUa(h,8,!0)}),e=d.filter(function(h){return h&&h.length}).map(function(h){return String(h[0].id)}),f;c=[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:null!=(f=p(a,3))?f:void 0,provenance:b,isPrimary:!0,itemAffinity:zr(a.getDisplayInfo()),fieldAffinity:-Infinity,group:a}];a=r(d);for(b=a.next();!b.done;b=a.next())c.push.apply(c,v(b.value));return c},gUa=function(a,b){var c=new sr(9,a.getLabelId()||
""),d=a.getMembersList().map(ZTa).filter(Boolean),e=d.map(function(f){return String(f.id)});return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:zr(a.getDisplayInfo()),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(v(d))},hUa=function(a,b){switch(rb(a,Fr)){case 1:return dUa(Bl(a,Gr,1,Fr),b);case 2:return fUa(a.getGroup(),b);case 3:return gUa(Bl(a,Hr,3,Fr),b);default:return[]}},iUa=function(a,b){return tb(a,Ir,1).flatMap(function(c){return hUa(c,
b)})},kUa=function(a){var b=new Jr,c=a?2:1;jUa(b.setEventType(4),c).setToken(a);return b},mUa=function(a,b){var c=new Kr;c=(new Jr).setLookupInfo(c);Lr(c.setEventType(6),9).setItemCount(a.length).setQueryScope(lUa.get(b)||0);return c},nUa=function(){var a=new Jr;Lr(a.setEventType(6),11);return a},oUa=function(){var a=new Jr;Lr(a.setEventType(6),10);return a},pUa=function(a,b){var c=new Jr;Lr(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(lUa.get(b)||0);return c},qUa=function(a){var b=
new Jr;Lr(b.setEventType(6),5).setQueryScope(lUa.get(a)||0);return b},rUa=function(a,b){switch(a){case 8:case 3:case 17:return(new Mr).setProfileId(b);case 1:case 6:return(new Mr).setEmail(b);case 7:case 2:return(new Mr).setPhone(b);default:return null}},tUa=function(a){return((a=tb(a,Nr,2).find(function(b){return 1===p(b,1)}))?sUa.get(a.getState()):0)||0},xUa=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(uUa(mba(p(b.getAffinity(),1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new vUa).setDisplayName(c.getValue()).setGivenName(c.getGivenName()).setFamilyName(c.getFamilyName()),
f=e.setSourceType;a:switch(c.getSourceType()){case 1:c=3;break a;case 2:c=4;break a;default:c=0}d.call(a,f.call(e,c))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new Or).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(wUa.get(b.getType())||0)))},yUa=function(a,b){if(b.hasProfileId())switch(rb(b,vr)){case 2:var c=b.getEmail()||"";return Pr(Qr(a.id).setValue(b.getProfileId()||""),(new Rr).setType(1).setValue(c));case 3:return c=b.getPhone()||"",Pr(Qr(a.id).setValue(b.getProfileId()||""),(new Rr).setType(2).setValue(c));
default:return b=b.getProfileId()||"",Qr(a.id).setValue(b)}switch(rb(b,vr)){case 2:return b=b.getEmail()||"",Pr(Qr(a.id).setValue(b),(new Rr).setType(1).setValue(b));case 3:return b=b.getPhone()||"",Pr(Qr(a.id).setValue(b),(new Rr).setType(2).setValue(b));default:return b=b.getProfileId()||"",Qr(a.id).setValue(b)}},AUa=function(a,b){var c=zUa(Qr(a.id),!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&xUa(c,b);a.group&&((b=tb(a.group,Sr,6).find(function(d){return 1===rb(d,Tr)}))?c.setValue(Ur(b,
1,Tr)||""):a.group.hasGroupId()&&c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);a.target=c},CUa=function(){return BUa},EUa=function(a){return new DUa(a)},HUa=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=FUa.get(b)))return b}return(b=GUa.get(a.getTargetType()))?b:Jq(a.getId())?8:0},JUa=function(a,b,c){var d=new Vr,e=new Wr;Db(d,2,e);e.setProvenance(b);b=new Xr;Db(d,1,b);l(b,9,1===c);b.setProfileId(a.getProfileId()||
null);b.setContactId(a.getContactId()||null);c=8===HUa(a)?8:a.getIsPersonalResult()?4:3;l(b,8,c);c=null;8===a.getTargetType()&&(e=a.getOriginatingField())&&FUa.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Jq(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=HUa(a);l(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(3===a.getDataSource());8===b.getFieldType()&&b.setGroupId(a.getId().getValue());
return new IUa(a,d)},LUa=function(a){a=KUa.indexOf(a.provenance);return 0>a?KUa.length:a},MUa=function(a){return a.containerIds&&a.containerIds.some(function(b){return 3===b.getType()})},NUa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new Hq(new Yr(a,d))},PUa=function(a,b){b.useOriginalDisplayValue_&&(a=new Map(Array.from(a,function(c){var d=r(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.originalValue_!==
d.getDisplayValue()&&d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.originalValue_,f=d.getPrimaryTarget();d=NUa(d,new OUa(f,e))}return[c,d]})));return a},QUa=function(){return new Zr(tc.apply(0,arguments))},$r=function(){var a=tc.apply(0,arguments);return 1===a.length?a[0]:new RUa(a)},TUa=function(a,b,c,d){b=SUa(a,b).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new as(e,f)});c=SUa(a,c).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new as(e,
f)});a=SUa(a,d).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new as(e,f)});return new bs(b,c,a)},UUa=function(a){switch(a.getType()){case 1:case 6:return 1;case 2:case 7:return 2;case 17:case 3:case 8:return 3;default:return 0}},VUa=function(a){return a.reduce(function(b,c){var d=UUa(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},WUa=function(a,b){b=void 0===b?new cs:b;var c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;
for(var e=r(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}},XUa=function(a){return!a||a instanceof ds?a:new ds(a)},ZUa=function(a){return YUa.get(a)||0},$Ua=function(a,b){var c=es(fs(new gs,"PeopleStore").setLogSource(Y(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1002").setBaselineCl(449361830).setEnableClearcut(a.getEnableClearcut()),[].concat(v(b.getExperiments().getExperimentIdsList()),
v(hs?hs.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=tb(a,is,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(p(a,4));return c},aVa=function(a){return(oj(a,12)?m(m(a,js,12),is,2):a.getSources())||new is},bVa=function(a){return(oj(a,12)?m(m(a,js,12),is,3):a.getSources())||new is},ks=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)},cVa=function(a){if(!a.hasSessionState())return"";
a=a.getSessionState();return hj(a,3,0)+":"+hj(a,4,0)+":"+hj(a,5,0)+":"+a.getInstanceId()},dVa=function(a){return oj(a,2)?Qq(a).getContext()||0:0},eVa=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?hj(d,3,0)+"-"+hj(d,4,0)+"-"+hj(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},ms=function(a,b,c,d){d=void 0===d?!1:d;a=a.filter(function(h){return!W(h,4,!1)});if(d){d=r(a);for(var e=d.next();!e.done;e=
d.next())l(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=r(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=eVa(a);c=[];a=r(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new ls;f.setSessionState(e);f.setEventType(b);Cb(f,3,d);fVa(f,e.getSources());c.push(f)}return c},gVa=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&
(b=a.getSource()));return b||new ns},hVa=function(a){a&1&&H(0,"div",2)},iVa=function(a){a&1&&(ve(0),Be(1),we())},jVa=function(a){a&1&&(F(0,"a",3),O(1),P(2,"async"),G());if(a&2){a=K();var b;E("href",a.manageComponentLink,Qd);B(1);He(null==(b=Q(2,2,a.component$))?null:b.name)}},kVa=function(a){a&1&&(F(0,"output"),O(1),G());a&2&&(a=K(),B(1),He(a.componentId))},lVa=function(a){a&1&&(F(0,"li")(1,"label"),O(2,"Component"),G(),H(3,"b-async-component",6),G());a&2&&(a=K(2),B(3),E("componentId",a.issueComponentId))},
mVa=function(a){a&1&&(F(0,"li")(1,"label"),O(2,"Team"),G(),H(3,"b-team-display",7),G());a&2&&(a=K(2),B(3),E("teamId",a.issueTeamId))},nVa=function(a){a&1&&(F(0,"ol",3)(1,"li")(2,"label"),O(3,"ID"),G(),F(4,"output"),O(5),G()(),F(6,"li")(7,"label"),O(8,"Type"),G(),F(9,"output"),O(10),G()(),F(11,"li")(12,"label"),O(13,"Priority"),G(),H(14,"b-issue-priority-display",4),G(),F(15,"li")(16,"label"),O(17,"Severity"),G(),F(18,"output"),O(19),G()(),F(20,"li")(21,"label"),O(22,"Status"),G(),F(23,"output"),O(24),
G()(),F(25,"li")(26,"label"),O(27,"Last modified"),G(),F(28,"output"),O(29),P(30,"date"),G()(),M(31,lVa,4,1,"li",5),M(32,mVa,4,1,"li",5),G());a&2&&(a=K(),B(5),He(a.issueId),B(5),He(a.issueType),B(4),E("issuePriority",a.issuePriority),B(5),He(a.issueSeverity),B(5),He(a.issueStatus),B(5),He(Pe(30,8,a.issueLastModified,"medium")),B(2),E("ngIf",a.issueComponentId),B(1),E("ngIf",a.issueTeamId))},pVa=function(a){if(a.customField)var b="DATE"===a.customField.type?new os(a):"ENUM"===a.customField.type?new ps(a):
"NUMERIC"===a.customField.type?new qs(a):new rs(a);else b=a.label.field,b=oVa()[b],b=new (b&&b.ruleCtor||ss)(a);b[ts](a);return b},qVa=function(a,b){return pVa({label:{field:a,customFieldId:b&&b.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:b})},rVa=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},oVa=function(){if(!dj())return sVa;sVa.MENTION={ruleCtor:us};return sVa},tVa=function(a){a.label||
(a=Ii(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},vVa=function(a){return{type:uVa[a.getType()],value:a.getValue()}},xVa=function(a){var b,c;return{type:wVa[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(xVa),simpleValues:(null!=(c=tb(a,vs,3))?c:[]).map(vVa)}},BVa=function(a){var b,c=yVa[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(xVa);b=W(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:zVa[e.getField()],customFieldId:Number(e.getCustomFieldId())}}else e=void 0;
return{type:c,values:d,negated:b,label:e,operator:AVa[Y(a,5,0)]}},DVa=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:V(Bl(a,ws,2,xs),1)},queryBuilderResponse:void 0};case 1:a=Bl(a,ys,1,xs);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:CVa[a.getType()],expressions:(null!=(b=tb(a,zs,2))?b:[]).map(BVa)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},EVa=function(a){a&1&&(F(0,"span",11),O(1," > "),G())},FVa=function(a,
b){if(a&1){var c=x();F(0,"span")(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(2);e=new As(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();Bs(f.autocompleteTrigger);return A()});O(2);G();M(3,EVa,2,0,"span",10);G()}a&2&&(a=b.$implicit,b=b.last,B(1),E("matTooltip",a.pathNameText),B(1),He(a.name),B(1),E("ngIf",!b))},GVa=function(a,b){a&1&&(F(0,"mat-option",6)(1,"div"),M(2,FVa,4,3,"span",7),G(),F(3,"span",8),O(4),P(5,"slice"),G()());if(a&2){a=b.$implicit;
E("value",a);B(2);E("ngForOf",a.teamPath);B(1);E("matTooltip",a.description);B(1);a=a.description;b=x();var c=b[27];a=b[1].data[27].pure?xfa(b,Nc(),4,c.transform,a,0,100,c):c.transform(a,0,100);Ge("",a," ")}},HVa=function(a){return a.getTeamSuggestionsList().map(function(b){return new As(b.getPathIdsList(),b.getPathNamesList(),b.getDescription())})},IVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,E("value",a.key),B(1),Ge(" ",a.value," "))},JVa=function(a){if(a&1){var b=
x();F(0,"mat-form-field",9)(1,"mat-select",10);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.expressionType=c)});M(2,IVa,2,2,"mat-option",11);P(3,"keyvalue");G()()}a&2&&(a=K(2),B(1),E("ngModel",a.expressionType),B(1),E("ngForOf",Q(3,2,a.globalTypeLabels)))},KVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,E("value",a[0]),B(1),Ge(" ",a[1]," "))},LVa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());if(a&2){a=b.$implicit;b=K(2).$implicit;var c=K(2);E("value",a);
B(1);Ge(" ",c.getTypeLabel(b,a)," ")}},MVa=function(a){if(a&1){var b=x();F(0,"mat-form-field",9)(1,"mat-select",20);J("ngModelChange",function(c){z(b);var d=K().$implicit;return A(d.type=c)});M(2,LVa,2,2,"mat-option",11);G()()}a&2&&(a=K().$implicit,B(1),E("ngModel",a.type),B(1),E("ngForOf",a.getLegalTypes()))},NVa=function(a,b){if(a&1){var c=x();F(0,"div",27)(1,"b-checkbox",28);J("change",function(d){var e=z(c).$implicit,f=K(3).$implicit;return A(f.enumValues[e.id]=d)});G()()}a&2&&(a=b.$implicit,
b=K(3).$implicit,B(1),E("checked",b.enumValues[a.id])("label",a.label||a.id))},OVa=function(a){a&1&&(F(0,"div",25),M(1,NVa,2,2,"div",26),G());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",a.getOptions()))},PVa=function(a){if(a&1){var b=x();F(0,"div")(1,"input",29);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),E("ngModel",a.csv)("bContactAutocomplete","MULTI"))},QVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",30);J("ngModelChange",
function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),E("ngModel",a.csv))},RVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",31);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),E("ngModel",a.csv))},SVa=function(a){if(a&1){var b=x();F(0,"div",21)(1,"input",32);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),E("ngModel",a.csv))},TVa=
function(a){a&1&&(F(0,"div"),M(1,PVa,2,2,"div",23),M(2,QVa,2,1,"div",17),M(3,RVa,2,1,"div",17),M(4,SVa,2,1,"div",17),G());a&2&&(a=K(2).$implicit,B(1),E("ngIf","user"==a.getWidgetType()),B(1),E("ngIf","csv"==a.getWidgetType()),B(1),E("ngIf","id"==a.getWidgetType()),B(1),E("ngIf","number"==a.getWidgetType()))},UVa=function(a,b){if(a&1){var c=x();F(0,"div",36)(1,"div",37)(2,"input",32);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.value=d)});G()();F(3,"button",38);J("click",function(){var d=
z(c).$implicit,e=K(3).$implicit,f=K(2);return A(Cs(f,e,d))});G()()}a&2&&(a=b.$implicit,B(2),E("ngModel",a.value))},VVa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(Ds(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),Ge(" + ","OR"==a.type||"NOR"==a.type?"OR":"AND",""))},WVa=function(a){a&1&&(F(0,"div",33),M(1,UVa,4,1,"div",34),M(2,VVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",a.values),B(1),E("ngIf",a.type))},YVa=function(a){if(a&
1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(XVa(e,d))});P(1,"componentPath");F(2,"span",49);O(3);P(4,"componentPath");G()()}if(a&2){a=K(2).$implicit;var c=K(5);E("title",Q(1,2,c.components[a.value]));B(3);Ge(" ",Q(4,4,c.components[a.value])," ")}},ZVa=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-component-picker",50);J("selectedComponentChange",function(c){z(b);var d=K(7);d.componentUnderEdit=null!==c&&void 0!==c?c:null;d.componentUnderEdit&&
(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;Es(d);return A()});G()()}a&2&&(a=K(7),B(1),E("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},$Va=function(a){if(a&1){var b=x();F(0,"div",42);M(1,YVa,5,6,"div",43);M(2,ZVa,2,3,"div",44);F(3,"button",45);J("click",function(){z(b);var d=K().$implicit;K(5);d.includeSubs=!d.includeSubs;return A()});H(4,"mat-icon",
46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(Cs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);E("ngIf",c.chipUnderEdit!==a);B(1);E("ngIf",c.chipUnderEdit===a);B(1);E("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");ke("aria-checked",a.includeSubs);B(1);E("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},aWa=function(a,b){a&1&&(ve(0),M(1,$Va,6,5,"div",41),we());a&2&&
(a=b.$implicit,b=K(5),B(1),E("ngIf",b.chipUnderEdit===a||a.value))},bWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(Ds(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),Ge(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},cWa=function(a){a&1&&(F(0,"div",33),M(1,aWa,2,1,"ng-container",40),M(2,bWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",a.values),B(1),E("ngIf",a.type))},eWa=function(a){if(a&1){var b=x();F(0,"div",48);
J("click",function(){z(b);var d=K(2).$implicit,e=K(6);return A(dWa(e,d))});P(1,"teamPath");F(2,"span",49);O(3);P(4,"teamPath");G()()}if(a&2){a=K(2).$implicit;var c=K(6);E("title",Q(1,2,c.teams[a.value]));B(3);Ge(" ",Q(4,4,c.teams[a.value])," ")}},gWa=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-picker",54);J("onTeamSelect",function(c){z(b);var d=K(8);return A(fWa(d,c))});G()()}a&2&&(a=K(8),B(1),E("teamSelected",a.teamUnderEdit))},hWa=function(a){if(a&1){var b=x();F(0,"div",52);M(1,eWa,5,
6,"div",43);M(2,gWa,2,1,"div",44);F(3,"button",53);J("click",function(){z(b);var d=K().$implicit;K(6);d.includeSubs=!d.includeSubs;return A()});H(4,"mat-icon",46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(4).$implicit,f=K(2);return A(Cs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(6);B(1);E("ngIf",c.chipUnderEdit!==a);B(1);E("ngIf",c.chipUnderEdit===a);B(1);E("title",a.includeSubs?"Subteams are included":"Subteams are not included");ke("aria-checked",a.includeSubs);
B(1);E("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},iWa=function(a,b){a&1&&(ve(0),M(1,hWa,6,5,"div",51),we());a&2&&(a=b.$implicit,b=K(6),B(1),E("ngIf",b.chipUnderEdit===a||a.value))},jWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(4).$implicit,d=K(2);return A(Ds(d,c))});O(1);G()}a&2&&(a=K(4).$implicit,B(1),Ge(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},kWa=function(a){a&1&&(ve(0),M(1,iWa,2,1,"ng-container",40),M(2,jWa,2,1,"button",
35),we());a&2&&(a=K(3).$implicit,B(1),E("ngForOf",a.values),B(1),E("ngIf",a.type))},lWa=function(a){a&1&&(F(0,"div",33),M(1,kWa,3,2,"ng-container",23),G());a&2&&(a=K(4),B(1),E("ngIf",a.sessionIsInternal))},nWa=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=mWa(c);return A()});G();O(2," and ");F(3,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateTo=mWa(c);return A()});G()()}a&2&&
(a=K(3).$implicit,B(1),E("boundValue",a.dateFrom)("isRequired",!0),B(2),E("boundValue",a.dateTo)("isRequired",!0))},oWa=function(a){if(a&1){var b=x();F(0,"div");O(1," the last ");F(2,"input",56);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.duration=c)});G();O(3," days. ");G()}a&2&&(a=K(3).$implicit,B(2),E("ngModel",a.duration))},pWa=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=mWa(c);return A()});
G()()}a&2&&(a=K(3).$implicit,B(1),E("boundValue",a.dateFrom)("isRequired",!0))},qWa=function(a){a&1&&(F(0,"div"),M(1,nWa,4,4,"div",23),M(2,oWa,4,1,"div",23),M(3,pWa,2,2,"div",23),G());a&2&&(a=K(2).$implicit,B(1),E("ngIf","RANGE"==a.type||"NRANGE"==a.type),B(1),E("ngIf","DURATION"==a.type||"NDURATION"==a.type),B(1),E("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},rWa=function(a){if(a&1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(Fs(e,
d))});F(1,"span",49);O(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);E("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);B(2);Ge(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},sWa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,E("value",a.hotlistId),B(1),Ge(" ",a.name," "))},tWa=function(a){if(a&1){var b=x();F(0,"mat-form-field",60)(1,"mat-select",61);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;return A(e.value=
d)})("selectionChange",function(){z(b);var d=K(7);return A(Es(d))});M(2,sWa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);E("ngModel",a.value);B(1);E("ngForOf",c.userHotlists)}},uWa=function(a){if(a&1){var b=x();F(0,"div",58);M(1,rWa,3,2,"div",43);M(2,tWa,3,2,"mat-form-field",59);F(3,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(Cs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);E("ngIf",c.chipUnderEdit!==a);B(1);E("ngIf",
c.chipUnderEdit===a)}},vWa=function(a,b){a&1&&(ve(0),M(1,uWa,4,2,"div",57),we());a&2&&(a=b.$implicit,b=K(5),B(1),E("ngIf",b.chipUnderEdit===a||a.value))},wWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(Ds(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),Ge(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},xWa=function(a){a&1&&(F(0,"div",33),M(1,vWa,2,1,"ng-container",40),M(2,wWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",
a.values),B(1),E("ngIf",a.type))},yWa=function(a){if(a&1){var b=x();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(Fs(e,d))});F(1,"span",49);O(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);E("title",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value);B(2);Ge(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},zWa=function(a,b){a&1&&(F(0,"mat-option",12),O(1),G());a&2&&(a=b.$implicit,E("value",a.searchId),B(1),
Ge(" ",a.name," "))},AWa=function(a){if(a&1){var b=x();F(0,"mat-form-field",60)(1,"mat-select",63);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;return A(e.value=d)})("selectionChange",function(){z(b);var d=K(7);return A(Es(d))});M(2,zWa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);E("ngModel",a.value);B(1);E("ngForOf",c.userSavedSearches)}},BWa=function(a){if(a&1){var b=x();F(0,"div",58);M(1,yWa,3,2,"div",62);M(2,AWa,3,2,"mat-form-field",59);F(3,"button",47);J("click",
function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(Cs(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);E("ngIf",c.chipUnderEdit!==a);B(1);E("ngIf",c.chipUnderEdit===a)}},CWa=function(a,b){a&1&&(ve(0),M(1,BWa,4,2,"div",57),we());a&2&&(a=b.$implicit,b=K(5),B(1),E("ngIf",b.chipUnderEdit===a||a.value))},DWa=function(a){if(a&1){var b=x();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(Ds(d,c))});O(1);G()}a&2&&(a=K(3).$implicit,B(1),Ge(" + ","OR"==
a.type||"NAND"==a.type?"OR":"AND",""))},EWa=function(a){a&1&&(F(0,"div",33),M(1,CWa,2,1,"ng-container",40),M(2,DWa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",a.values),B(1),E("ngIf",a.type))},FWa=function(a){a&1&&(F(0,"div",21),M(1,OVa,2,1,"div",22),M(2,TVa,5,4,"div",23),M(3,WVa,3,2,"div",24),M(4,cWa,3,2,"div",24),M(5,lWa,2,1,"div",24),M(6,qWa,4,3,"div",23),M(7,xWa,3,2,"div",24),M(8,EWa,3,2,"div",24),G());a&2&&(a=K().$implicit,K(2),B(1),E("ngIf","enum"===a.getWidgetType()),B(1),
E("ngIf",a instanceof Gs),B(1),E("ngIf","text"==a.getWidgetType()),B(1),E("ngIf","component"==a.getWidgetType()),B(1),E("ngIf","team"==a.getWidgetType()),B(1),E("ngIf","date"===a.getWidgetType()),B(1),E("ngIf","hotlist"==a.getWidgetType()),B(1),E("ngIf","savedsearch"==a.getWidgetType()))},GWa=function(a){a&1&&(F(0,"div",64),O(1),G());if(a&2){a=K().$implicit;var b=K(2);B(1);Ge(" ",b.getCustomFieldName(a)," ")}},IWa=function(a){if(a&1){var b=x();F(0,"div",65)(1,"b-custom-field-picker",66);J("fieldSelected",
function(c){z(b);var d=K().index,e=K(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=qVa("CUSTOM_FIELD",e.customFields[f]);HWa(e,e.expressions[d]);return A()});G()()}},KWa=function(a,b){if(a&1){var c=x();F(0,"div",13)(1,"div",14)(2,"mat-form-field",9)(3,"mat-select",15);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.label.field=d)})("selectionChange",function(){var d=z(c).index,e=K(2);return A(JWa(e,d))});M(4,KVa,2,2,"mat-option",11);G()();M(5,MVa,3,2,"mat-form-field",2);
G();F(6,"button",16);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.removeExpression(d))});G();M(7,FWa,9,8,"div",17);M(8,GWa,2,1,"div",18);M(9,IWa,2,0,"div",19);G()}a&2&&(a=b.$implicit,b=K(2),B(3),E("ngModel",a.label.field),B(1),E("ngForOf",b.availableLabels),B(1),E("ngIf",!a.isPendingCustomField),B(2),E("ngIf",!a.isPendingCustomField),B(1),E("ngIf",a.label.customFieldId),B(1),E("ngIf",a.isPendingCustomField))},LWa=function(a,b){if(a&1){var c=x();F(0,"button",67);J("click",function(){var d=
z(c).$implicit,e=K(2);e.expressions.push({label:{field:d[0]}});JWa(e,e.expressions.length-1);return A()});O(1);G()}a&2&&(a=b.$implicit,B(1),Ge(" ",a[1]," "))},MWa=function(a){a&1&&(F(0,"div",1),M(1,JVa,4,4,"mat-form-field",2),M(2,KWa,10,6,"div",3),F(3,"div",4)(4,"button",5),O(5),G(),F(6,"mat-menu",6,7),M(8,LWa,2,1,"button",8),G()()());if(a&2){var b=Fe(7);a=K();B(1);E("ngIf",a.expressions.length);B(1);E("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);B(2);E("matMenuTriggerFor",b);B(1);Ge(" ",
a.expressionType," ... ");B(3);E("ngForOf",a.availableLabels)}},NWa=function(a){a&1&&H(0,"div",3)},OWa=function(a){a&1&&H(0,"div",4)},QWa=function(a){if(a&1){var b=x();F(0,"button",2);J("click",function(){z(b);var c=K();return A(PWa(c))});H(1,"mat-icon",3);O(2);G()}a&2&&(a=K(),E("matTooltip","Open release notes"),B(1),E("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(1),Ge(" ",a.buttonLabel," "))},RWa=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(){z(b);var c=
K();return A(PWa(c))});O(1);G()}a&2&&(a=K(),B(1),Ge(" ",a.buttonLabel," "))},SWa=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(c){z(b);var d=K();return A(d.manageSlos(c))});O(1,"Manage SLOs");G()}},TWa=function(a){a&1&&(F(0,"a",13),O(1,"Early Access "),H(2,"b-feature-stage-label",14),G())},UWa=function(a){a&1&&(ve(0),H(1,"mat-divider")(2,"b-whats-new-button",15),we());a&2&&(B(2),E("menuMode",!0))},VWa=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var c=K(2);
return A(c.toggleNewIssueDetailsPage(!0))});O(1,"Try new version");G()}},WWa=function(a){if(a&1){var b=x();F(0,"a",6);J("click",function(){z(b);var c=K(2);return A(c.toggleNewIssueDetailsPage(!1))});O(1,"Back to legacy version");G()}},XWa=function(a){a&1&&(ve(0),M(1,VWa,2,0,"a",5),M(2,WWa,2,0,"a",5),we());a&2&&(a=K(),B(1),E("ngIf",!a.isNewVersion),B(1),E("ngIf",a.isNewVersion))},YWa=function(a){a&1&&H(0,"b-whats-new-button",7);a&2&&(a=K(),E("alertMode",a.majorReleaseNotesUpdated))},ZWa=function(a){if(a&
1){var b=x();F(0,"button",8);J("click",function(){z(b);K().userFeedback.startFeedback();return A()});H(1,"mat-icon",9);G()}},$Wa=function(a,b){if(a&1){var c=x();F(0,"button",6);J("click",function(){var d=z(c).$implicit;K().currentTracker.setTrackerId(d.trackerId);return A()});H(1,"img",7);F(2,"span",8);O(3);G()()}a&2&&(a=b.$implicit,E("value",a.trackerId),ke("title",a.name),B(1),E("src",null==a.branding?null:a.branding.logoUrl,Qd),B(2),He(a.name))},aXa=function(a){if(a&1){var b=x();F(0,"button",5);
J("click",function(){z(b);var c=K();return A(c.clickMenu.emit())});H(1,"mat-icon",6);G()}},dXa=function(a,b){a&1&&(F(0,"output",7),O(1),G());a&2&&(a=b.$implicit,E("ngClass",a.color?Le(2,bXa,a.color):Ke(4,cXa)),B(1),He(a.name))},eXa=function(a){a&1&&H(0,"tracker-switcher",2);a&2&&(a=K(),E("associatedTrackers",a.associatedTrackers))},fXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected hotlist: "),F(2,"strong"),O(3),G()());a&2&&(a=K(3),B(3),He(a.header.hotlist.name))},gXa=function(a){a&1&&O(0,
" Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},hXa=function(a){a&1&&(ve(0),M(1,fXa,4,1,"span",5),M(2,gXa,1,0,"ng-template",null,6,Mf),we());if(a&2){var b=Fe(3);a=K(2);B(1);E("ngIf",a.header.hotlist)("ngIfElse",b)}},iXa=function(a){a&1&&(F(0,"span"),O(1,"Currently selected saved search: "),F(2,"strong"),O(3),G()());a&2&&(a=K(3),B(3),He(a.header.savedSearch.name))},jXa=function(a){a&1&&O(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
kXa=function(a){a&1&&(ve(0),M(1,iXa,4,1,"span",5),M(2,jXa,1,0,"ng-template",null,7,Mf),we());if(a&2){var b=Fe(3);a=K(2);B(1);E("ngIf",a.header.savedSearch)("ngIfElse",b)}},lXa=function(a){a&1&&(F(0,"span"),O(1," and "),F(2,"strong"),O(3,"subcomponents"),G()())},mXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected component: "),F(2,"strong"),O(3),G(),H(4,"b-access-level-indicator",9),M(5,lXa,4,0,"span",4),G());if(a&2){a=K(3);B(3);var b=a.header.component;He(b.componentPathInfo&&b.componentPathInfo.componentPathName?
b.componentPathInfo.componentPathName.join(" > "):b.name);B(1);E("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);B(1);E("ngIf",a.header.includeChildren)}},nXa=function(a){a&1&&O(0," Start typing a component name or ID to see auto-complete suggestions. ")},oXa=function(a){a&1&&(ve(0),M(1,mXa,6,3,"span",5),M(2,nXa,1,0,"ng-template",null,8,Mf),we());if(a&2){var b=Fe(3);a=K(2);B(1);E("ngIf",a.header.component)("ngIfElse",b)}},pXa=function(a){a&1&&(F(0,
"span"),O(1," and "),F(2,"strong"),O(3,"subteams"),G()())},qXa=function(a){a&1&&(F(0,"span"),O(1," Currently selected team: "),F(2,"strong"),O(3),G(),M(4,pXa,4,0,"span",4),G());a&2&&(a=K(3),B(3),He(a.header.team.name),B(1),E("ngIf",a.header.includeChildren))},rXa=function(a){a&1&&O(0," Start typing a team name or ID to see auto-complete suggestions. ")},sXa=function(a){a&1&&(ve(0),M(1,qXa,5,2,"span",5),M(2,rXa,1,0,"ng-template",null,10,Mf),we());if(a&2){var b=Fe(3);a=K(2);B(1);E("ngIf",a.header.team)("ngIfElse",
b)}},tXa=function(a,b){a&1&&(F(0,"span"),O(1," Currently selected custom field: "),F(2,"strong"),O(3),G(),O(4," of type "),F(5,"strong"),O(6),P(7,"lowercase"),G(),O(8,". "),G());a&2&&(a=b.$implicit,B(3),He(a.name),B(3),He(Q(7,2,a.type)))},uXa=function(a){a&1&&O(0," customfield[id]: [value] ")},vXa=function(a){a&1&&(ve(0),M(1,tXa,9,4,"span",5),M(2,uXa,1,0,"ng-template",null,11,Mf),we());if(a&2){var b=Fe(3);a=K(2);B(1);E("ngIf",a.header.customField)("ngIfElse",b)}},wXa=function(a){a&1&&(F(0,"div",3),
M(1,hXa,4,2,"ng-container",4),M(2,kXa,4,2,"ng-container",4),M(3,oXa,4,2,"ng-container",4),M(4,sXa,4,2,"ng-container",4),M(5,vXa,4,2,"ng-container",4),G());a&2&&(a=K(),B(1),E("ngIf","hotlist"===a.header.type),B(1),E("ngIf","savedsearch"===a.header.type),B(1),E("ngIf","component"===a.header.type),B(1),E("ngIf","team"===a.header.type),B(1),E("ngIf","customfield"===a.header.type))},xXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ie(" ",a.id,": ",a.name," "))},yXa=function(a){a&
1&&(F(0,"span"),O(1),F(2,"span"),O(3),G()());a&2&&(a=K().$implicit,B(1),Ge(" Hotlist ",a.hotlistId,": "),B(2),He(a.name))},zXa=function(a){a&1&&(F(0,"span"),O(1),F(2,"span"),O(3),G(),H(4,"br"),F(5,"span",13),O(6),G()());a&2&&(a=K().$implicit,B(1),Ge(" Saved search ",a.searchId,": "),B(2),He(a.name),B(3),He(a.query))},AXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ge(" ",a.name," "))},BXa=function(a){a&1&&(F(0,"span"),O(1," > "),G())},DXa=function(a,b){if(a&1){var c=x();ve(0);
F(1,"span",16);J("click",function(d){var e=z(c).$implicit;CXa(e);return A(d.stopPropagation())});O(2);G();M(3,BXa,2,0,"span",4);we()}a&2&&(a=b.$implicit,b=b.last,B(1),Ee("title","",a.id,": ",a.name,""),B(1),He(a.name),B(1),E("ngIf",!b))},EXa=function(a){a&1&&(F(0,"span"),O(1," Component "),F(2,"strong"),O(3),G(),H(4,"b-access-level-indicator",9),F(5,"span",14),M(6,DXa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,B(3),He(a.componentId),B(1),E("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),
B(2),E("ngForOf",a.componentPath))},FXa=function(a){a&1&&(F(0,"span"),O(1," > "),G())},GXa=function(a,b){if(a&1){var c=x();ve(0);F(1,"span",16);J("click",function(d){var e=z(c).$implicit;CXa(e);return A(d.stopPropagation())});O(2);G();M(3,FXa,2,0,"span",4);we()}a&2&&(a=b.$implicit,b=b.last,B(1),Ee("title","",a.id,": ",a.name,""),B(1),He(a.name),B(1),E("ngIf",!b))},HXa=function(a){a&1&&(F(0,"span"),O(1," Team "),F(2,"strong"),O(3),G(),F(4,"span",14),M(5,GXa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,
B(3),He(a.id),B(2),E("ngForOf",a.teamPath))},IXa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ie(" ",a.label,": ",a.name," "))},KXa=function(a,b){if(a&1){var c=x();F(0,"b-app-search-auto-complete-option",12);J("optionClicked",function(e){z(c);var f=K();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&JXa(e),f.itemSelected.emit(e));return A()});M(1,xXa,2,2,"span",4);M(2,yXa,4,2,"span",4);M(3,zXa,7,3,"span",4);M(4,AXa,2,1,"span",4);M(5,EXa,7,3,"span",4);M(6,HXa,6,2,
"span",4);M(7,IXa,2,2,"span",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K();me("id","b-app-search-option-",b,"");E("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);B(1);E("ngIf","issue"===a.completionCfg.type);B(1);E("ngIf","hotlist"===a.completionCfg.type);B(1);E("ngIf","savedsearch"===a.completionCfg.type);B(1);E("ngIf","atom"===a.completionCfg.type);B(1);E("ngIf","component"===a.completionCfg.type);B(1);E("ngIf","team"===a.completionCfg.type);B(1);E("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},
LXa=function(a){a&1&&(ve(0),F(1,"span",10),O(2),G(),we());a&2&&(a=K(),B(1),pe("muted",a.disabled),B(1),He(a.cardTitle))},MXa=function(a){a&1&&H(0,"mat-icon",11)},NXa=function(a){a&1&&H(0,"mat-icon",12)},OXa=function(a){a&1&&(F(0,"mat-select-trigger"),H(1,"mat-icon",20),F(2,"span"),O(3),G()());a&2&&(a=K(3),B(1),E("svgIcon",a.selectedOption.icon),B(2),He(a.selectedOption.displayText))},PXa=function(a){a&1&&H(0,"mat-icon",20);a&2&&(a=K().$implicit,E("svgIcon",a.icon))},QXa=function(a,b){a&1&&(F(0,"mat-option",
21),M(1,PXa,1,1,"mat-icon",22),O(2),G());a&2&&(a=b.$implicit,E("value",a),B(1),E("ngIf",a.icon),B(1),Ge("",a.displayText," "))},RXa=function(a){if(a&1){var b=x();F(0,"mat-form-field",16)(1,"mat-label");O(2," Choose type... ");G();F(3,"mat-select",17);J("valueChange",function(c){z(b);var d=K(2);return A(d.selectedOption=c)})("selectionChange",function(c){z(b);K(2).dropdownSelectionChanged.emit(c.value);return A()});M(4,OXa,4,2,"mat-select-trigger",18);M(5,QXa,3,3,"mat-option",19);G()()}a&2&&(a=K(2),
B(3),E("disabled",a.disabled)("value",a.selectedOption),B(1),E("ngIf",a.selectedOption&&a.selectedOption.icon),B(1),E("ngForOf",a.dropdownOptions))},SXa=function(a){if(a&1){var b=x();F(0,"mat-form-field",13)(1,"input",14);J("ngModelChange",function(c){z(b);var d=K();return A(d.cardTitleChange.emit(c))});G()();M(2,RXa,6,4,"mat-form-field",15)}a&2&&(a=K(),B(1),pe("muted",a.disabled||!a.selected),E("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),ke("aria-label",
a.ariaLabelForCardTitle),B(1),E("ngIf",a.dropdownOptions.length))},TXa=function(a){a&1&&(F(0,"div",23),Be(1),G())},UXa=function(a){a&1&&(F(0,"button",31),H(1,"mat-icon",32),G());a&2&&(a=K(2),E("disabled",a.disabled))},VXa=function(a){a&1&&H(0,"mat-divider",33);a&2&&E("vertical",!0)},WXa=function(a){a&1&&(F(0,"mat-slide-toggle",34),O(1," Required "),G());a&2&&(a=K(2),E("disabled",a.disabled))},XXa=function(a){if(a&1){var b=x();F(0,"mat-slide-toggle",35);J("change",function(c){z(b);var d=K(2);return A(d.isInheritedChange.emit(c))});
O(1," Inherited ");G()}a&2&&(a=K(2),E("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},YXa=function(a){if(a&1){var b=x();F(0,"div",24)(1,"button",25);J("click",function(){z(b);var c=K();return A(c.onSave())});O(2," Save ");G();F(3,"button",26);J("click",function(){z(b);var c=K();c.collapse();c.onCancelButtonClicked.emit();return A()});O(4," Cancel ");G();M(5,UXa,2,1,"button",27);M(6,VXa,1,1,"mat-divider",
28);M(7,WXa,2,1,"mat-slide-toggle",29);M(8,XXa,2,4,"mat-slide-toggle",30);G()}a&2&&(a=K(),B(1),E("disabled",a.isSaveButtonDisabled),B(2),E("disabled",a.disabled),B(2),E("ngIf",a.showDeleteButton),B(1),E("ngIf",a.showDeleteButton&&a.showRequiredToggle),B(1),E("ngIf",a.showRequiredToggle),B(1),E("ngIf",a.showInheritedToggle))},ZXa=function(a){a&1&&(F(0,"h3"),O(1),G());a&2&&(a=K(2),B(1),Ge(" Edit Custom Field ",a.editableField.customFieldId," "))},$Xa=function(a){a&1&&(F(0,"h3"),O(1," Create Custom Field "),
G())},aYa=function(a){a&1&&(F(0,"div",40),O(1),G());a&2&&(a=K(2),B(1),Ge(" ",a.serverError," "))},cYa=function(a,b){a&1&&(F(0,"button",41),O(1),P(2,"enumToHuman"),G());if(a&2){a=b.$implicit;K();var c=Fe(32);E("matMenuTriggerFor",c)("matMenuTriggerData",Le(5,bYa,a));B(1);Ge(" ",Q(2,3,a)," ")}},dYa=function(a,b){if(a&1){var c=x();F(0,"button",43);J("click",function(){var d=z(c).$implicit,e=K().type,f=K(2);return A(f.setType(e,"Multiple"===d))});O(1);G()}a&2&&(a=b.$implicit,B(1),Ge(" ",a," "))},eYa=
function(a){a&1&&M(0,dYa,2,1,"button",42);a&2&&(a=K(2),E("ngForOf",a.secondaryTypes))},gYa=function(a){if(a&1){var b=x();F(0,"td",7)(1,"label",44);O(2," Allowed Values: ");G();F(3,"b-list-field",45);J("valuesChange",function(c){z(b);var d=K(2);return A(fYa(d,c.values))});G()()}a&2&&(a=K(2),B(3),E("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},
hYa=function(a){a&1&&(F(0,"label",46),O(1," Default Value: "),G())},kYa=function(a,b){if(a&1){var c=x();F(0,"b-edit-field",47);J("valueChange",function(d){z(c);var e=K(2);iYa(e,d);return A()});G()}a&2&&(a=b.ngIf,b=K(2),E("name","Default")("type",a)("tooltip","Set default value")("value",jYa(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},lYa=function(a){a&1&&(F(0,"label",48),O(1," Default Values: "),G())},mYa=function(a,b){if(a&1){var c=x();
F(0,"b-list-field",49);J("valuesChange",function(d){z(c);var e=K(2);iYa(e,d.values);return A()});G()}a&2&&(a=b.ngIf,b=K(2),E("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},nYa=function(a,b){if(a&1){var c=x();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldSignificance(d))});O(1);P(2,"enumToHuman");G()}a&
2&&(a=b.$implicit,B(1),Ge(" ",Q(2,1,a)," "))},oYa=function(a){if(a&1){var b=x();F(0,"div",4);M(1,ZXa,2,1,"h3",3);M(2,$Xa,2,0,"h3",3);M(3,aYa,2,1,"div",5);F(4,"form",6)(5,"div",7)(6,"label",8);O(7,"Name:");G();F(8,"input",9);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.name=h)});G()();F(9,"div",7)(10,"label",10);O(11,"Description:");G();F(12,"textarea",11);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.description=h)});G()();F(13,"table",12)(14,"tr")(15,
"td",7)(16,"div",13)(17,"label",14);O(18," Type: ");G();F(19,"onedev-hovercard",null,15)(21,"div",16)(22,"div",17);O(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. ");G()()()();F(24,"button",18);O(25);P(26,"enumToHuman");H(27,"b-icon",19);G();F(28,"mat-menu",null,20);M(30,cYa,3,7,"button",21);G();F(31,"mat-menu",null,22);M(33,eYa,1,1,"ng-template",23);G()();M(34,gYa,4,7,"td",24);F(35,"td",7);M(36,hYa,2,0,"label",
25);M(37,kYa,1,9,"b-edit-field",26);M(38,lYa,2,0,"label",27);M(39,mYa,1,8,"b-list-field",28);G();F(40,"td",7)(41,"label",29);O(42," Required: ");G();F(43,"b-edit-field",30);J("valueChange",function(h){z(b);var k=K();return A(k.editableField.required=!!h)});G()();F(44,"td",7)(45,"div",13)(46,"label",31);O(47," Field Significance: ");G();F(48,"onedev-hovercard",null,32)(50,"div",33)(51,"div",17);O(52," This affects whether users will receive notifications when changes are made to this field. ");H(53,
"br");O(54," See\u00a0 ");F(55,"a",34);O(56,"Email Settings ");G()()()()();F(57,"button",35);O(58);P(59,"enumToHuman");H(60,"b-icon",19);G();F(61,"mat-menu",null,36);M(63,nYa,3,3,"button",37);G()()()();F(64,"b-button",38);J("onAction",function(){z(b);var h=K();return A(h.save())});O(65," Save ");G();F(66,"b-button",39);J("onAction",function(){z(b);var h=K();return A(h.cancel())});O(67," Cancel ");G()()()}if(a&2){var c=Fe(20),d=Fe(29),e=Fe(49),f=Fe(62);a=K();B(1);E("ngIf",!!a.editableField.customFieldId);
B(1);E("ngIf",!a.editableField.customFieldId);B(1);E("ngIf",a.serverError);B(5);E("bFocus",a.editableField&&!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);B(4);E("ngModel",a.editableField.description)("disabled",a.isSaving);B(5);E("onedevHovercardTrigger",c);B(7);E("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);B(1);Ge(" ",Q(26,28,a.editableField.type)," ");B(5);E("ngForOf",a.typeChoices);B(4);E("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));
B(2);E("ngIf",!a.editableField.isRepeated());B(1);E("ngIf",a.getSingleEditFieldType(a.editableField));B(1);E("ngIf",a.editableField.isRepeated());B(1);E("ngIf",a.getListFieldType(a.editableField));B(4);E("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",a.editableField.required);B(3);E("onedevHovercardTrigger",e);B(9);E("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Qd);B(2);E("matMenuTriggerFor",f);B(1);Ge(" ",Q(59,30,a.editableField.fieldSignificance),
" ");B(5);E("ngForOf",a.significanceChoices);B(1);E("disabled",!a.hasUnsavedChanges()||!a.editableField.name)}},pYa=function(a){a&1&&(F(0,"div",51),H(1,"b-spinner",52),G());a&2&&(B(1),E("large",!0))},qYa=function(a){a&1&&(F(0,"th"),O(1,"Actions"),G())},sYa=function(a){if(a&1){var b=x();F(0,"td",59)(1,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(d.editField(c))});O(2,"Edit");G();F(3,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(rYa(d,c))});O(4,
"Delete");G()()}},tYa=function(a,b){a&1&&(F(0,"tr",56)(1,"td"),O(2),G(),F(3,"td"),O(4),G(),F(5,"td"),O(6),P(7,"enumToHuman"),G(),F(8,"td"),O(9),G(),F(10,"td"),O(11),P(12,"yesNo"),G(),F(13,"td"),H(14,"b-custom-field-value-display",57),G(),F(15,"td"),O(16),P(17,"arrayToHuman"),G(),F(18,"td"),O(19),P(20,"enumToHuman"),G(),M(21,sYa,5,0,"td",58),G());a&2&&(a=b.$implicit,b=K(2),E("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),B(2),He(a.name),B(2),He(a.customFieldId),B(2),He(Q(7,10,a.type)),
B(3),He(a.description),B(2),He(Q(12,12,a.required)),B(3),E("customFieldValue",a.typedDefaultValue),B(2),He(Q(17,14,a.allowedValue)),B(3),He(Q(20,16,a.fieldSignificance)),B(2),E("ngIf",b.editMode))},uYa=function(a){a&1&&(F(0,"tr")(1,"td",61),O(2," There are no custom fields defined on this component. "),G()())},vYa=function(a){a&1&&(F(0,"tr")(1,"td",62)(2,"strong"),O(3,"Fields inherited from parent components"),G()()())},wYa=function(a){a&1&&(ve(0),H(1,"b-component-card",69,70),we());if(a&2){var b=
Fe(2);a=K().$implicit;B(1);E("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},yYa=function(a){if(a&1){var b=x();F(0,"b-field-state-menu",71,72);J("fieldStateChange",function(d){z(b);var e=K(),f=e.$implicit;e=e.index;var h=K(3);return A(h.updateCustomFieldState(f,d,e))});G()}if(a&2){a=K().$implicit;var c=K(3);E("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",xYa(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);ke("aria-label",
c.msgFieldStateTip)}},zYa=function(a,b){if(a&1){var c=x();F(0,"tr",56)(1,"td");O(2);G();F(3,"td");O(4);G();F(5,"td");O(6);P(7,"enumToHuman");G();F(8,"td");O(9);G();F(10,"td");O(11);P(12,"yesNo");G();F(13,"td");H(14,"b-custom-field-value-display",57);G();F(15,"td");O(16);P(17,"arrayToHuman");G();F(18,"td");O(19);P(20,"enumToHuman");G();F(21,"td",59)(22,"div",63)(23,"div",64);O(24,"Inherited From");G();F(25,"a",65);J("click",function(){z(c);var e=K(3);return A(e.trackClick("parentCustomFields"))});
O(26);G();F(27,"onedev-hovercard",null,66);M(29,wYa,3,2,"ng-container",67);G()();M(30,yYa,2,6,"b-field-state-menu",68);G()()}if(a&2){a=b.$implicit;var d=Fe(28);b=K(3);E("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");B(2);He(a.name);B(2);He(a.customFieldId);B(2);He(Q(7,13,a.type));B(3);He(a.description);B(2);He(Q(12,15,a.required));B(3);E("customFieldValue",a.typedDefaultValue);B(2);He(Q(17,17,a.allowedValue));B(3);He(Q(20,19,a.fieldSignificance));B(6);E("onedevHovercardTrigger",d)("href",
b.paths.manageComponent(a.componentId,"customFields"),Qd);B(1);Ge(" ",b.componentIdsToNames[a.componentId]," ");B(4);E("ngIf",b.editMode)}},AYa=function(a){a&1&&(ve(0),M(1,zYa,31,21,"tr",54),we());a&2&&(a=K(2),B(1),E("ngForOf",a.inheritedCustomFields))},BYa=function(a){a&1&&(F(0,"tfoot")(1,"tr")(2,"td",62),O(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),F(4,"a",73),O(5,"Field Ordering"),G(),O(6," tab."),H(7,"br"),O(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
G()()())},CYa=function(a){if(a&1){var b=x();F(0,"div",74)(1,"b-button",75);J("onAction",function(){z(b);var c=K(2);c.editableField=new Hs;c.originalEditableFieldValue_=Ii(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return A()});O(2," Add a Custom Field ");G()()}},DYa=function(a){a&1&&(F(0,"div")(1,"table",53)(2,"tr")(3,"th"),O(4,"Name"),G(),F(5,"th"),O(6,"ID"),G(),F(7,"th"),O(8,"Type"),G(),F(9,"th"),O(10,"Description"),G(),F(11,"th"),O(12,"Required?"),G(),F(13,"th"),O(14,
"Default Value"),G(),F(15,"th"),O(16,"Allowed Values"),G(),F(17,"th"),O(18,"Field Significance"),G(),M(19,qYa,2,0,"th",3),G(),M(20,tYa,22,18,"tr",54),M(21,uYa,3,0,"tr",3),M(22,vYa,4,0,"tr",3),M(23,AYa,2,1,"ng-container",3),M(24,BYa,9,0,"tfoot",3),G(),M(25,CYa,3,0,"div",55),G());a&2&&(a=K(),B(19),E("ngIf",a.editMode),B(1),E("ngForOf",a.customFields),B(1),E("ngIf",!a.customFields.length),B(1),E("ngIf",a.inheritedCustomFields.length),B(1),E("ngIf",a.inheritedCustomFields.length),B(1),E("ngIf",a.customFields.length),
B(1),E("ngIf",a.editMode))},EYa=function(a){if(a&1){var b=x();F(0,"button",18);J("click",function(){z(b);var c=K().index,d=K();return A(d.removeAtIndex.emit(c))});H(1,"mat-icon",19);G()}a&2&&(a=K().$implicit,ke("aria-label","Delete row "+a.label))},FYa=function(a,b){if(a&1){var c=x();F(0,"div",9)(1,"div",10);H(2,"mat-icon",11);F(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);J("change",function(f){var h=z(c).index,k=K();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return A()});
G()()();F(7,"div",1)(8,"mat-form-field",12)(9,"input",15,16);J("change",function(f){var h=z(c).index,k=K();return A(k.valueChange(f,h))});G()()();M(11,EYa,2,1,"button",17);G()()}if(a&2){a=b.$implicit;var d=Fe(6),e=Fe(10);b=K();B(4);E("appearance",d.focused||e.focused?"standard":"none");B(1);pe("muted",b.disabled);E("value",a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);B(3);E("appearance",d.focused||e.focused?"standard":"none");B(1);pe("muted",b.disabled);E("value",
a.value)("placeholder",null==a.value?"Average days":"")("disabled",b.disabled);B(2);E("ngIf",!b.disabled)}},GYa=function(a){if(a&1){var b=x();F(0,"button",20);J("click",function(){z(b);var c=K();return A(c.addRow.emit())});O(1," Add row\n");G()}},HYa=function(a){a&1&&xe(0)},IYa=function(a){a&1&&(ve(0),M(1,HYa,1,0,"ng-container",5),we());if(a&2){K();var b=Fe(7);B(1);E("ngTemplateOutlet",b)}},JYa=function(a){if(a&1){var b=x();ve(0);F(1,"b-numeric-config",6);J("valueChange",function(c){z(b);var d=K();
return A(d.numericSpecMultiplier=c)});G();we()}a&2&&(a=K(),B(1),E("disabled",a.disabled)("value",a.numericSpecMultiplier))},KYa=function(a){a&1&&xe(0)},LYa=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Aggregation Rule");G();F(3,"a",9);H(4,"mat-icon",10);G();H(5,"br");F(6,"mat-form-field",11)(7,"mat-select",12);J("valueChange",function(c){z(b);var d=K();return A(d.selectedAggregationRule=c)});F(8,"mat-select-trigger");O(9);P(10,"aggregationRuleText");G();F(11,"mat-option",13)(12,"div",
14);O(13);P(14,"aggregationRuleText");G();F(15,"div",15);O(16,"All parents and children are added to the total");G()();F(17,"mat-option",13)(18,"div",14);O(19);P(20,"aggregationRuleText");G();F(21,"div",15);O(22,"Take the assigned estimate if larger than total of all immediate children");G()()()()()}a&2&&(a=K(),B(7),E("value",a.selectedAggregationRule)("disabled",a.disabled),B(2),Ge(" ",Q(10,7,a.selectedAggregationRule)," "),B(2),E("value",a.aggregationRules.SUM),B(2),He(Q(14,9,a.aggregationRules.SUM)),
B(4),E("value",a.aggregationRules.MAX),B(2),He(Q(20,11,a.aggregationRules.MAX)))},MYa=function(a){if(a&1){var b=x();F(0,"b-config-grid",16);J("optionsChange",function(c){z(b);var d=K();return A(d.enumSpecOptions=c)})("addRow",function(){z(b);var c=K();return A(c.addRow())})("removeAtIndex",function(c){z(b);K().enumSpecOptions.splice(c,1);return A()});G()}a&2&&(a=K(),E("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},NYa=function(a){return a&&"0"!==a.getTeamId()?a.getDeleted()?"DELETED":
"VALID":"MISSING"},OYa=function(a){if(a&1){var b=x();F(0,"div",6);O(1," Select a team from the suggestions below, or edit in ");F(2,"a",7);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});O(3,"component settings");G();O(4,".\n");G()}a&2&&(a=K(),B(2),E("href",a.componentSetting,Qd))},PYa=function(a){a&1&&(F(0,"div",6),O(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),F(2,"a",
8),O(3,"component settings"),G(),O(4,".\n"),G());a&2&&(a=K(),B(2),E("href",a.componentSetting,Qd))},QYa=function(a){if(a&1){var b=x();F(0,"mat-radio-group",9);J("ngModelChange",function(c){z(b);var d=K();return A(d.teamAction=c)});F(1,"p")(2,"mat-radio-button",10);O(3," Don't make any changes ");G()();F(4,"p")(5,"mat-radio-button",11);O(6," Map component to selected team ");G()()()}a&2&&(a=K(),E("ngModel",a.teamAction))},RYa=function(a){a&1&&(ve(0),F(1,"span",19),O(2),G(),we());a&2&&(a=K().$implicit,
B(2),He(a.teamPath))},SYa=function(a){a&1&&O(0," -- ")},TYa=function(a,b){a&1&&(M(0,RYa,3,1,"ng-container",17),M(1,SYa,1,0,"ng-template",null,18,Mf));if(a&2){a=b.$implicit;var c=Fe(2);E("ngIf",a)("ngIfElse",c)}},UYa=function(a){if(a&1){var b=x();F(0,"div",12)(1,"onedev-single-select",13);J("valueChange",function(d){z(b);var e=K();return A(e.selectedTeam=d)})("valueChange",function(d){z(b);var e=K();return A(e.selectOption(d))});G();M(2,TYa,3,2,"ng-template",null,14,Mf);F(4,"a",15);J("click",function(){z(b);
var d=K();return A(d.trackClick("viewTeamInMoma"))});H(5,"mat-icon",16);G()()}if(a&2){var c=Fe(3);a=K();B(1);E("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);B(3);ke("href",a.getMomaTeamLink(),Qd)}},VYa=function(a){if(a&1){var b=x();F(0,"b-callout-actions")(1,"b-button",2);J("click",function(){z(b);var c=K();return A(c.openDialog())});O(2);G()()}a&2&&(a=K(),B(2),He(a.buttonName))},WYa=function(a){a&1&&(F(0,"div",8),H(1,
"b-team-warning",9),G());a&2&&(a=K().ngIf,B(1),E("warningType",a)("messageOnly",!0))},XYa=function(a,b){a&1&&(ve(0),M(1,WYa,2,2,"div",7),we());a&2&&(a=b.ngIf,b=K(),B(1),E("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},YYa=function(a){if(a&1){var b=x();F(0,"div",10)(1,"mat-checkbox",11);J("change",function(c){z(b);var d=K();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 A()});O(2," Inherit team from parent component ");G()()}a&2&&(a=K(),B(1),E("disabled",!a.isAdmin)("checked",a.inherit))},ZYa=function(a){if(a&1){var b=x();F(0,"a",13);J("click",function(){z(b);K(2);Yn(mo.MANAGE_COMPONENT,"navigate","to-internal-team-page");return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),E("routerLink",Is(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},$Ya=function(a){a&1&&(ve(0),M(1,ZYa,2,2,"a",12),we());a&2&&(a=K(),B(1),E("ngIf",Is(a)))},aZa=function(a){if(a&
1){var b=x();F(0,"a",16);J("click",function(){z(b);var c=K(2);Yn(mo.MANAGE_COMPONENT,"linkout-moma","team",Number(c.model.id));return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),ke("href",a.getMomaTeamLink(),Qd))},bZa=function(a){a&1&&M(0,aZa,2,1,"a",15);a&2&&(a=K(),E("ngIf",Is(a)))},cZa=function(){var a;return(a=void 0===a?dj():a)?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},dZa=function(a){a&1&&(F(0,"span"),O(1),G());
a&2&&(a=K().$implicit,B(1),Ge("(",a.disabledReason,")"))},eZa=function(a,b){a&1&&(F(0,"mat-radio-button",8),O(1),M(2,dZa,2,1,"span",9),G());a&2&&(a=b.$implicit,E("value",a)("disabled",!a.enabled),B(1),Ge(" ",a.displayText," "),B(1),E("ngIf",!a.enabled))},fZa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),Ge("(",a.disabledReason,")"))},gZa=function(a,b){a&1&&(F(0,"mat-radio-button",8),O(1),M(2,fZa,2,1,"span",9),G());a&2&&(a=b.$implicit,E("value",a)("disabled",!a.enabled),B(1),Ge(" ",
a.displayText," "),B(1),E("ngIf",!a.enabled))},jZa=function(a,b){if(a&1){var c=x();F(0,"li",11);J("keydown",function(e){var f=z(c).index,h=K();return A(h.onKeyDown(e,f))})("focus",function(){var e=z(c).index,f=K();return A(f.onFocus(e))});H(1,"mat-icon",12);F(2,"span");O(3);G();F(4,"div",13)(5,"button",14);J("click",function(){var e=z(c).index,f=K();return A(hZa(f,e))});H(6,"mat-icon",15);G();F(7,"button",16);J("click",function(){var e=z(c).index,f=K();return A(iZa(f,e))});H(8,"mat-icon",17);G()()()}if(a&
2){a=b.$implicit;b=b.index;var d=K();ke("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);B(3);He(a.name);B(2);pe("invisible",0===b);B(2);pe("invisible",b===d.fields.length-1)}},kZa=function(a){var b=function(){var c=a.apply(this,[].concat(v(tc.apply(0,arguments))))||this;c._sticky=!1;c._hasStickyChanged=!1;return c};U(b,a);b.prototype.hasStickyChanged=function(){var c=this._hasStickyChanged;this._hasStickyChanged=!1;return c};b.prototype.resetStickyChanged=function(){this._hasStickyChanged=
!1};oi.Object.defineProperties(b.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=Yg(c);this._hasStickyChanged=d!==this._sticky}}});return b},Js=function(a,b){return a.concat(Array.from(b))},lZa=function(a){a&1&&(F(0,"th",14),O(1," Order"),G())},mZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.index,B(1),Ge(" ",a+1," "))},nZa=function(a){a&1&&(F(0,"th",14),O(1," Name"),G())},oZa=function(a,b){a&1&&(F(0,"td",
15),O(1),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.name," "))},pZa=function(a){a&1&&(F(0,"th",14),O(1," Type"),G())},qZa=function(a,b){a&1&&(F(0,"td",15),O(1),P(2,"toCustomFieldTypeDisplayValue"),G());a&2&&(a=b.$implicit,B(1),Ge(" ",Q(2,1,a.type)," "))},rZa=function(a){a&1&&(F(0,"th",14),O(1," Required"),G())},sZa=function(a,b){a&1&&(F(0,"td",15),O(1),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.required?"Yes":"No"," "))},tZa=function(a){a&1&&(F(0,"th",14),O(1," ID"),G())},uZa=function(a,b){a&1&&(F(0,"td",
15),O(1),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a.customFieldId," "))},vZa=function(a){a&1&&H(0,"tr",16)},wZa=function(a){a&1&&H(0,"tr",17)},xZa=function(a){a&1&&(F(0,"div",18),O(1," There are no custom fields defined on this component. "),G())},AZa=function(a){if(a&1){var b=x();F(0,"div",19)(1,"div")(2,"button",20);J("click",function(){z(b);var c=K();return A(yZa(c))});O(3," Reorder fields ");G();F(4,"button",20);J("click",function(){z(b);var c=K();return A(zZa(c))});O(5," Reset ordering ");G()()()}a&
2&&(a=K(),B(2),E("disabled",0===a.fields.length),B(2),E("disabled","CUSTOMIZED"!==a.fieldOrdering))},BZa=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),a=a.lineNumbers.length,Ge(" (",a+(1==a?" TODO":" TODOs"),") "))},DZa=function(a,b){if(a&1){var c=x();F(0,"li",5)(1,"a",6);J("click",function(){z(c);var d=K(2);return A(d.trackClick("lineNumber"))});O(2);G()()}a&2&&(a=b.$implicit,b=K(2),B(1),E("href",CZa(b,a),Qd),B(1),He(a))},EZa=function(a){a&1&&(F(0,"span"),O(1," ("),F(2,"ul",3),M(3,DZa,
3,2,"li",4),G(),O(4,") "),G());a&2&&(a=K(),B(3),E("ngForOf",a.lineNumbers))},FZa=function(a){a&1&&H(0,"div",2)},GZa=function(a){a&1&&(ve(0),Be(1),we())},HZa=function(a){a&1&&(Qc(),F(0,"svg",1),H(1,"path",2),G());a&2&&(a=K(),E("matTooltip",a.warning))},IZa=function(a){a&1&&xe(0)},LZa=function(a){if(a&1){var b=x();F(0,"div",1);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});F(1,"div",2);M(2,IZa,1,0,"ng-container",3);G();F(3,"div",4)(4,"button",5);J("click",function(){z(b);var c=
K();return A(JZa(c))});O(5,"Save");G();F(6,"button",6);J("click",function(){z(b);var c=K();return A(KZa(c))});O(7,"Cancel");G()()()}a&2&&(a=K(),E("cdkTrapFocusAutoCapture",!0),B(2),E("ngTemplateOutlet",a.editorTemplate))},MZa=function(a){a&1&&xe(0)},OZa=function(a){a&1&&(ve(0),M(1,MZa,1,0,"ng-container",8),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Le(2,NZa,a.value)))},PZa=function(a){a&1&&O(0);a&2&&(a=K(),He(null!=a.value?a.value:"--"))},QZa=function(a){a&
1&&(Qc(),F(0,"svg",9),H(1,"path",10),G())},RZa=function(a){if(a&1){var b=x();F(0,"input",11);J("ngModelChange",function(c){z(b);var d=K();return A(d.editingValue=c)});G()}a&2&&(a=K(),E("ngModel",a.editingValue))},SZa=function(a){return null!=a?Number(a):void 0},TZa=function(a){if(a&1){var b=x();ve(0);F(1,"onedev-numeric-field",7);J("valueChange",function(d){z(b);var e=K(2);e.selectedNumericEstimate=d;if(null==d)e.effortChange.emit(void 0);else{e=e.effortChange;var f=e.emit,h=new xl;d=yl(h,2,String(d));
f.call(e,d)}return A()});G();we()}if(a&2){a=K(2);var c=Fe(2);B(1);E("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},UZa=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().$implicit,B(1),Ge(" ",a.getLabel()," "))},VZa=function(a){a&1&&O(0," -- ")},WZa=function(a,b){a&1&&(M(0,UZa,2,1,"ng-container",10),M(1,VZa,1,0,"ng-template",null,11,Mf));if(a&2){a=b.$implicit;var c=Fe(2);E("ngIf",a)("ngIfElse",c)}},YZa=function(a){if(a&1){var b=x();ve(0);
F(1,"onedev-single-select",8);J("valueChange",function(e){z(b);var f=K(2);return A(f.selectOption(e))});G();M(2,WZa,3,2,"ng-template",null,9,Mf);we()}if(a&2){var c=Fe(3);a=K(2);var d;B(1);E("value",a.selectedOption)("options",null!==(d=null==(d=Dl(a.effortSpec))?null:d.getOptionsList())&&void 0!==d?d:Ke(6,XZa))("includeEmptyOption",!0)("optionTemplate",c)("disabled",a.disabled)("displayArrowIcon",!a.disabled)}},ZZa=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K(2),B(1),Ge(" ",null==a.effort?null:V(a.effort,
2)," "))},$Za=function(a){a&1&&(F(0,"onedev-edit-field")(1,"onedev-field-label",2),O(2),G(),F(3,"onedev-field-value",3),ve(4,4),M(5,TZa,2,4,"ng-container",5),M(6,YZa,4,7,"ng-container",5),M(7,ZZa,2,1,"ng-container",6),we(),G()());a&2&&(a=K(),B(1),E("thinking",a.thinking)("warning",a.isCompatibleValue?"":"Update estimate to resolve this warning")("labelTooltip",a.fieldName),B(1),Ge(" ",a.fieldName," "),B(1),E("thinking",a.thinking),B(1),E("ngSwitch",a.fieldType),B(1),E("ngSwitchCase","NUMERIC"),B(1),
E("ngSwitchCase","DROPDOWN"))},a_a=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K(2),B(1),Ge(" ",null==a.effort?null:V(a.effort,2)," "))},b_a=function(a){a&1&&O(0);a&2&&(a=K().$implicit,Ge(" ",null!=a?a:"--"," "))},c_a=function(a,b){a&1&&(M(0,a_a,2,1,"ng-container",10),M(1,b_a,1,1,"ng-template",null,12,Mf));if(a&2){a=b.$implicit;var c=Fe(2);b=K();E("ngIf",b.isNaN(a))("ngIfElse",c)}},d_a=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Issue shortlink");G();F(3,"input",20,21);J("focus",function(){z(b);
var d=Fe(4);return A(d.select())});G();F(5,"button",22);J("click",function(){z(b);var d=Fe(4),e=K();return A(Ks(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Fe(4);a=K();B(1);E("htmlFor",c.id);B(2);ke("value",Ls(a.activeSession).replace(/^.*?:\/\//,"")+a.issueId)}},e_a=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Issue email");G();F(3,"input",23,24);J("focus",function(){z(b);var d=Fe(4);return A(d.select())});G();F(5,"button",25);J("click",function(){z(b);var d=Fe(4),e=K();return A(Ks(e,
d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Fe(4);a=K();B(1);E("htmlFor",c.id);B(2);ke("value",a.getIssueEmail())}},f_a=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"TODO comment");G();F(3,"input",26,27);J("focus",function(){z(b);var d=Fe(4);return A(d.select())});G();F(5,"button",28);J("click",function(){z(b);var d=Fe(4),e=K();return A(Ks(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Fe(4);a=K();B(1);E("htmlFor",c.id);B(2);ke("value",a.getTodoComment())}},g_a=function(a){a&1&&(F(0,
"span"),H(1,"b-formatted-date-time",18),G());a&2&&(a=K(2),B(1),E("timestamp",a.sloSnoozeUntil))},h_a=function(a){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",18),G());a&2&&(a=K(2),B(1),E("timestamp",a.issueCreationTimestamp/1E3))},j_a=function(a){if(a&1){var b=x();F(0,"div",12);O(1," SLO starts on: ");F(2,"div",14)(3,"a",15);J("click",function(){z(b);var c=K().snoozeDateTimePicker;i_a(c);c.isPickerVisible=!0;c.cdr.detectChanges();return A()});M(4,g_a,2,1,"span",16);M(5,h_a,2,1,"span",16);G();F(6,
"a",17);H(7,"b-icon",3);G()()()}a&2&&(a=K(),B(4),E("ngIf",a.sloSnoozeUntil),B(1),E("ngIf",!a.sloSnoozeUntil),B(2),E("name","help-outline")("size","small"))},k_a=function(a,b){if(a&1){var c=x();F(0,"a",20);J("click",function(){z(c);var d=K(2);return A(d.trackOpenSlo())});O(1);G()}a&2&&(a=b.ngIf,b=K(2),ke("href",b.editSloLink,Qd),B(1),Ge(" ",a.getName()," "))},l_a=function(a){a&1&&(F(0,"div",12),O(1," SLO definition: "),M(2,k_a,2,2,"a",19),P(3,"async"),G());a&2&&(a=K(),B(2),E("ngIf",Q(3,1,a.slo$)))},
m_a=function(a){if(a&1){var b=x();F(0,"a",21);J("click",function(){z(b);K();Yn(mo.MANAGE_COMPONENT,"open","fromIssueSloBox");return A()});O(1,"Select an SLO");G()}a&2&&(a=K(),ke("href",a.componentSloLink,Qd))},n_a=function(a){a&1&&(F(0,"a",10),O(1," Create Component "),G());a&2&&(a=K(),E("href",a.createComponentPath,Qd))},o_a=function(a){if(a&1){var b=x();F(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);J("selectedComponentChange",function(c){z(b);var d=K();
return A(d.viewComponent(null!==c&&void 0!==c?c:null,"openFromSearch"))});G()()()}a&2&&(a=K(),B(2),E("includeArchived",a.includeArchived)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1))},r_a=function(a){if(a&1){var b=x();F(0,"div",13)(1,"b-slide-toggle",14);J("modelChange",function(c){z(b);var d=K();d.includeArchived=c;c=p_a(d);var e=d.componentTree;e=e.focusedController?e.focusedController.selectedId?e.focusedController.selectedId:-1:e.rootController.selectedId?
e.rootController.selectedId:-1;0<e&&q_a(d,e,c);return A()});G()()}a&2&&(a=K(),B(1),E("model",a.includeArchived)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components."))},s_a=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner",16),G())},t_a=function(a){a&1&&(F(0,"p",3),O(1),G());a&2&&(a=K(),B(1),He(a.packageMentionSet.packageName))},u_a=function(a,b){a&1&&(F(0,"li"),H(1,"b-file-mention",4),G());a&2&&(a=b.$implicit,b=K(),B(1),E("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",
a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},x_a=function(a){a&1&&(F(0,"span")(1,"b"),O(2,"Retention:"),G(),O(3),F(4,"b"),O(5),G(),O(6),F(7,"b"),O(8),G(),O(9," on "),F(10,"b"),O(11),P(12,"date"),G(),O(13,". "),G());a&2&&(a=K(3),B(3),Ge(" This ",a.contentType," has a retention period of "),B(2),He(a.getRetentionPeriod()),B(1),Ge(" from the last modification of the issue. Currently, the ",a.contentType," is scheduled for deletion in "),B(2),He(v_a(w_a(a).getTime())),B(3),
He(Pe(12,5,w_a(a),"longDate")))},y_a=function(a){a&1&&(O(0),F(1,"b"),O(2,"overridden"),G(),O(3," retention period set to match the issue retention period. "));a&2&&(a=K(3),Ge(" The ",a.contentType," has an "))},z_a=function(a){a&1&&(F(0,"p",8),M(1,x_a,14,8,"span",9),M(2,y_a,4,1,"ng-template",10),G());if(a&2){a=K(2);var b=Fe(7);E("ngSwitch",a.retention);B(1);E("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);B(1);E("ngSwitchCase",a.retentionModel.INDEFINITE)}},A_a=
function(a){a&1&&(F(0,"div",5)(1,"p")(2,"b"),O(3,"Restricted Access:"),G(),O(4),F(5,"a",6),O(6," Learn More "),G()(),M(7,z_a,3,4,"p",7),G());a&2&&(a=K(),B(4),Ge(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(1),ke("href",a.documentationLinks.getRestrictedAccessHelpLink(),Qd),B(2),E("ngIf",a.retentionState))},B_a=function(a){a&1&&(F(0,"b"),O(1,"Retention:"),G(),O(2));a&2&&(a=K(),B(2),Ge(" This ",a.contentType," has an indefinite retention period. "))},C_a=
function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(),B(1),Ge("Retain ",a.resource," as long as issue?"))},D_a=function(a){a&1&&(F(0,"span"),O(1,"Apply component retention settings?"),G())},E_a=function(a){a&1&&(F(0,"span")(1,"p"),O(2),G(),F(3,"p")(4,"b"),O(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."),G(),H(6,"br"),O(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),
G()());a&2&&(a=K(),B(2),Ge("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},F_a=function(a){a&1&&(F(0,"span")(1,"p"),O(2),G()());a&2&&(a=K(),B(2),Ie("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."))},G_a=function(a){if(a&1){var b=x();F(0,"mat-checkbox",9);J("ngModelChange",function(c){z(b);
var d=K();return A(d.acknowledgeToMatchIssueRetention=c)});O(1," I acknowledge ");G()}a&2&&(a=K(),E("ngModel",a.acknowledgeToMatchIssueRetention))},H_a=function(a){a&1&&(F(0,"div",3),H(1,"b-spinner"),F(2,"span"),O(3,"Initializing query builder..."),G()())},I_a=function(a){a&1&&(F(0,"div",7),H(1,"mat-icon",8),F(2,"p"),O(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),G()())},J_a=function(a){a&1&&(F(0,"div"),O(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),
G())},K_a=function(a){a&1&&(F(0,"div",4),M(1,I_a,4,0,"div",5),M(2,J_a,2,0,"div",6),G());a&2&&(a=K(),B(1),E("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),B(1),E("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},L_a=function(a){a&1&&(F(0,"div",4),O(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),G())},M_a=function(a){a&1&&(F(0,"span"),
O(1),H(2,"span",16),G());a&2&&(a=K(2).$implicit,B(1),Ge(" ",a.diff.oldValue," "))},N_a=function(a){a&1&&(F(0,"span")(1,"label"),O(2),G(),M(3,M_a,3,1,"span",15),O(4),G());a&2&&(a=K().$implicit,B(2),Ge("",a.fieldName,":"),B(1),E("ngIf",a.diff.oldValue),B(1),Ge(" ",a.diff.newValue," "))},O_a=function(a,b){a&1&&(F(0,"div")(1,"label"),O(2),G(),O(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),Ge("-",b.fieldName,":"),B(1),Ge(" ",a," "))},P_a=function(a){a&1&&(ve(0),M(1,O_a,4,2,"div",17),we());a&2&&(a=
K(2).$implicit,B(1),E("ngForOf",a.diff.removed))},Q_a=function(a,b){a&1&&(F(0,"div")(1,"label"),O(2),G(),O(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),Ge("+",b.fieldName,":"),B(1),Ge(" ",a," "))},R_a=function(a){a&1&&(ve(0),M(1,Q_a,4,2,"div",17),we());a&2&&(a=K(2).$implicit,B(1),E("ngForOf",a.diff.added))},S_a=function(a){a&1&&(F(0,"div"),M(1,P_a,2,1,"ng-container",15),M(2,R_a,2,1,"ng-container",15),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.diff.removed),B(1),E("ngIf",a.diff.added))},T_a=function(a,
b){a&1&&(F(0,"div",14),M(1,N_a,5,3,"span",15),M(2,S_a,3,2,"div",15),G());a&2&&(a=b.$implicit,B(1),E("ngIf","SINGLE_VALUE"==a.diffType),B(1),E("ngIf","COLLECTION"==a.diffType))},U_a=function(a,b){a&1&&(F(0,"li",5)(1,"div",6),H(2,"b-user-image",7),G(),F(3,"div",8)(4,"h4"),H(5,"b-user-display-name",9),F(6,"span",10),H(7,"b-formatted-date-time",11),G()(),F(8,"div",12),M(9,T_a,3,2,"div",13),G()()());a&2&&(a=b.$implicit,b=K(),B(2),E("email",b.userToDisplay(a.author)),B(3),E("email",b.userToDisplay(a.author)),
B(2),E("timestamp",a.timestamp),B(2),E("ngForOf",a.diffs))},V_a=function(){var a=window.homepagePreferences;if(null==a||!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"}},X_a=function(a){a&1&&(F(0,"a",25),O(1," Learn more "),G());a&2&&(K(),E("href",W_a(),Qd))},Y_a=function(a){a&1&&xe(0)},$_a=function(a){a&1&&(ve(0),
M(1,Y_a,1,0,"ng-container",8),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Le(2,Z_a,a.value)))},a0a=function(a){a&1&&O(0);a&2&&(a=K(),He(a.value||"--"))},b0a=function(a){a&1&&(Qc(),F(0,"svg",9),H(1,"path",10),G());a&2&&(a=K(),pe("centered",a.centerEditIcon))},c0a=function(a){if(a&1){var b=x();F(0,"textarea",14);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),E("ngModel",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},
d0a=function(a){if(a&1){var b=x();F(0,"input",15);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),E("ngModel",a.editingValue))},e0a=function(a){a&1&&(F(0,"div",11),M(1,c0a,1,2,"textarea",12),M(2,d0a,1,1,"ng-template",null,13,Mf),G());if(a&2){var b=Fe(3);a=K();B(1);E("ngIf",a.allowMultipleLines)("ngIfElse",b)}},f0a=function(){},g0a=function(a){a&1&&H(0,"span",2);a&2&&(a=K(),E("@indicatorRotate",a._getExpandedState()))},h0a=function(a){if(a&1){var b=x();F(0,
"b-hotlist-picker",24);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onLoad",function(c){z(b);var d=K();return A(d.loadHotlist(c))})("onCreate",function(c){z(b);var d=K();return A(d.createHotlist(c))});G()}a&2&&(a=K(),E("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},k0a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),O(3),G(),F(4,"a",27),O(5,"View access settings"),G()());a&2&&(a=K(),E("ngClass",Me(5,i0a,Ms(a),Ns(a))),B(1),E("name",
"alert")("size","small"),B(2),Ge("",j0a(a),"\u00a0"),B(1),E("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Qd))},n0a=function(a){a&1&&(F(0,"div",30),O(1),G());a&2&&(a=K(2),B(1),Ge(" Error: The following required field(s) have not been filled: ",l0a(a).concat(m0a(a)).join(", ")," "))},o0a=function(a){a&1&&(F(0,"div",30),O(1),G());if(a&2){a=K(2);B(1);var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');
a.isParentIssueIdsValid||b.push('"Parents"');Ge(" Error: The following field(s) have invalid values: ",b?b.join(" & ")+" must be"+((1>=b.length?" a":"")+" comma separated list")+((1<b.length?"s":"")+" of issue IDs"):""," ")}},p0a=function(a){a&1&&(F(0,"div",30),O(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),G())},q0a=function(a){a&1&&(F(0,"div",28),M(1,n0a,2,1,"div",29),M(2,o0a,2,1,"div",29),M(3,p0a,2,0,"div",29),G());a&2&&(a=K(),B(1),E("ngIf",0!==
l0a(a).length||0!==m0a(a).length),B(1),E("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),B(1),E("ngIf",Os(a.comment)))},r0a=function(a,b){if(a&1){var c=x();F(0,"div",33)(1,"b-hotlist-chip",34);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),E("hotlist",a))},s0a=function(a){a&1&&(F(0,"div",31),M(1,r0a,2,1,"div",32),G());a&2&&(a=K(),B(1),E("ngForOf",a.selectedHotlists))},t0a=function(a,
b){if(a&1){var c=x();F(0,"button",43);J("click",function(){var d=z(c).$implicit,e=K(2);e.selectedTemplate=d;e.getIssueTemplate();return A()});O(1);G()}a&2&&(a=b.$implicit,B(1),He(a.name))},u0a=function(a){if(a&1){var b=x();F(0,"button",43);J("click",function(){z(b);var c=K(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return A()});O(1);G()}a&2&&(a=K(2),B(1),He(a.availableExistingIssueTemplate.name))},v0a=function(a){a&1&&(F(0,"div",35)(1,"div",14)(2,"label",36),O(3,"Template"),
G()(),F(4,"button",37),O(5),H(6,"b-icon",38),G(),F(7,"mat-menu",39,40),M(9,t0a,2,1,"button",41),M(10,u0a,2,1,"button",42),G()());if(a&2){var b=Fe(8);a=K();var c;B(4);E("matMenuTriggerFor",b);B(1);He(null!==(c=null==a.selectedTemplate?null:a.selectedTemplate.name)&&void 0!==c?c:"");B(2);E("overlapTrigger",!0);B(2);E("ngForOf",a.availablePredefinedTemplates);B(1);E("ngIf",a.availableExistingIssueTemplate)}},w0a=function(a){a&1&&(F(0,"div",44)(1,"div",30),O(2," You do not have permission to create issues in this component. "),
G()())},x0a=function(a){if(a&1){var b=x();F(0,"div",66)(1,"b-magic-box",67);J("headerChange",function(c){z(b);var d=K(3);return A(d.magicBoxHeader=c)});G()()}a&2&&(a=K(3),B(1),E("componentId",a.issue.componentId)("hideHeader",!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},z0a=function(a){if(a&1){var b=x();F(0,"div",62)(1,"div",63)(2,"a",64);J("click",function(){z(b);var c=K(2);return A(y0a(c))})("keydown.enter",function(){z(b);
var c=K(2);return A(y0a(c))})("keydown.space",function(){z(b);var c=K(2);return A(y0a(c))});O(3);G()();M(4,x0a,2,6,"div",65);G()}a&2&&(a=K(2),B(3),Ie(" ",a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase()," "),B(1),E("ngIf",!a.showRecentIssuesInline&&a.issue.componentId))},A0a=function(a,b){if(a&1){var c=x();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.setPriority(d.value))});O(1);G()}a&2&&(a=b.$implicit,B(1),He(a.displayText))},B0a=function(a){if(a&
1){var b=x();F(0,"div",35)(1,"div",14)(2,"label",68);O(3,"Priority");G()();F(4,"button",69);O(5);H(6,"b-icon",38);G();F(7,"mat-menu",39,70)(9,"button",71);J("click",function(){z(b);var d=K(2);return A(d.setPriority())});O(10,"--");G();M(11,A0a,2,1,"button",72);G()()}if(a&2){var c=Fe(8);a=K(2);B(4);E("matMenuTriggerFor",c);ke("aria-label","Priority, required"+(a.issue.priority?", "+a.issue.priority:""));B(1);Ge("",a.issue.priority?a.issue.priority:"--"," ");B(2);E("overlapTrigger",!0);B(4);E("ngForOf",
a.priorityChoices)}},D0a=function(a,b){if(a&1){var c=x();F(0,"button",76);J("click",function(){var d=z(c).$implicit,e=K(3);return A(C0a(e,d.value))});O(1);G()}a&2&&(a=b.$implicit,De("title",a.altText||""),B(1),He(a.displayText))},E0a=function(a){if(a&1){var b=x();F(0,"div",35)(1,"div",14)(2,"label",73);O(3,"Type");G()();F(4,"button",69);P(5,"enumToHuman");O(6);P(7,"enumToHuman");H(8,"b-icon",38);G();F(9,"mat-menu",39,74)(11,"button",71);J("click",function(){z(b);var d=K(2);return A(C0a(d))});O(12,
"--");G();M(13,D0a,2,2,"button",75);G()()}if(a&2){var c=Fe(10);a=K(2);B(4);E("matMenuTriggerFor",c);ke("aria-label","Type, required"+(a.issue.type?Q(5,5,", "+a.issue.type):""));B(2);Ge("",Q(7,7,a.issue.type||"--")," ");B(3);E("overlapTrigger",!0);B(4);E("ngForOf",a.issueTypeChoices)}},F0a=function(a){if(a&1){var b=x();F(0,"div",77)(1,"div",14)(2,"label",78);O(3,"Assignee");G()();F(4,"div",79)(5,"input",80);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.assigneeText=c)});G()()()}a&2&&(a=
K(2),B(5),E("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},H0a=function(a){if(a&1){var b=x();F(0,"div",81)(1,"div",14)(2,"label",82);O(3,"CC");G()();F(4,"div",79)(5,"input",83);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.ccsText=G0a(c))});G()()()}a&2&&(a=K(2),B(5),E("ngModel",Ps(a.ccsText))("bContactAutocomplete","MULTI"))},I0a=function(a,b){if(a&1){var c=x();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.issue.severity=e.toIssueSeverity(d.value))});
O(1);G()}a&2&&(a=b.$implicit,B(1),He(a.displayText))},J0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},K0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},L0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},M0a=function(a){if(a&1){var b=x();F(0,"div",91)(1,"div",14)(2,"label",109);O(3," Parents ");M(4,L0a,2,0,"span",20);G()();F(5,"input",110);J("ngModelChange",function(c){z(b);var d=K(3);d.parentIssueIds=Qs(d,c).map(Xn);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Ps(d.parentIssueIds));return A()});
G()()}a&2&&(a=K(3),B(4),E("ngIf",!a.isParentIssueIdsValid),B(1),E("ngModel",Ps(a.parentIssueIds)))},N0a=function(a){a&1&&(F(0,"span"),O(1,"*"),G())},O0a=function(a){if(a&1){var b=x();F(0,"div",91)(1,"div",14)(2,"label",111);O(3," Children ");M(4,N0a,2,0,"span",20);G()();F(5,"input",112);J("ngModelChange",function(c){z(b);var d=K(3);d.childrenIssueIds=Qs(d,c).map(Xn);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Ps(d.childrenIssueIds));return A()});G()()}a&2&&(a=K(3),B(4),E("ngIf",!a.isChildIssueIdsValid),
B(1),E("ngModel",Ps(a.childrenIssueIds)))},P0a=function(a){if(a&1){var b=x();F(0,"onedev-text-field",116);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);Ce("id","bv2-custom-field-",a.customFieldId,"");E("value",a.textValue);ke("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Q0a=function(a){if(a&1){var b=x();F(0,"onedev-numeric-field",116);J("valueChange",
function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);Ce("id","bv2-custom-field-",a.customFieldId,"");E("value",a.numericValue);ke("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},R0a=function(a){if(a&1){var b=x();F(0,"div")(1,"bv2-input-date-picker",117);J("boundValueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()()}if(a&2){a=
K(2).$implicit;var c=K(3);B(1);De("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");E("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},S0a=function(a){if(a&1){var b=x();F(0,"onedev-single-select",118);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);E("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",
!0);ke("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},T0a=function(a,b){a&1&&(F(0,"div"),M(1,P0a,1,4,"onedev-text-field",114),M(2,Q0a,1,4,"onedev-numeric-field",114),M(3,R0a,2,4,"div",20),M(4,S0a,1,4,"onedev-single-select",115),G());a&2&&(a=b.ngIf,b=K(4),B(1),E("ngIf",a===b.FieldType.TEXT),B(1),E("ngIf",a===b.FieldType.NUMERIC),B(1),E("ngIf",a===b.FieldType.DATE),B(1),E("ngIf",a===b.FieldType.ENUM))},U0a=function(a,b){if(a&1){var c=x();F(0,"div")(1,"b-list-field",119);J("valuesChange",
function(e){z(c);var f=K().$implicit,h=K(3);return A(h.setCustomFieldValue(f,e.values))});G()()}if(a&2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);E("defaultLineCount",2)("type",a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);ke("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},W0a=function(a,b){a&1&&(F(0,"div",91)(1,"div",14)(2,"label",113),O(3),G()(),M(4,T0a,5,4,"div",20),M(5,U0a,2,6,"div",20),G());if(a&2){a=b.$implicit;
b=K(3);B(2);Ce("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];De("title",(c&&c.description?c.description:"Custom Field")+" [ID: "+a.customFieldId+"]");E("ngClass",Le(7,V0a,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");ke("aria-label",d);B(1);Ge(" ",b.getCustomFieldName(a)," ");B(1);E("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));
B(1);E("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},X0a=function(a){if(a&1){var b=x();F(0,"mat-expansion-panel",84)(1,"mat-expansion-panel-header")(2,"mat-panel-title");O(3," Advanced fields (Required fields marked with");F(4,"span",85);O(5,"*");G();O(6,") ");G()();F(7,"div",86)(8,"div",87)(9,"div",14)(10,"label",88);O(11," Severity ");G()();F(12,"button",89);O(13);H(14,"b-icon",38);G();F(15,"mat-menu",39,90);M(17,I0a,2,1,"button",72);G()();F(18,"div",91)(19,"div",14)(20,"label",
92);O(21," Found in ");G()();F(22,"input",93);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.foundInVersion=G0a(d))});G()();F(23,"div",94)(24,"div",14)(25,"label",95);O(26," In prod ");G()();F(27,"mat-slide-toggle",96);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.inProd=d)});G()();H(28,"div",55);F(29,"div",91)(30,"div",14)(31,"label",97);O(32," Reporter ");G()();F(33,"input",98);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.reporterText=d)});G()();F(34,
"div",91)(35,"div",14)(36,"label",99);O(37," Verifier ");G()();F(38,"input",100);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.verifierText=d)});G()();F(39,"div",91)(40,"div",14)(41,"label",101);O(42," Targeted to ");G()();F(43,"input",102);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.targetedToVersion=G0a(d))});G()();H(44,"div",55);F(45,"div",91)(46,"div",14)(47,"label",103);O(48," Blocked by ");M(49,J0a,2,0,"span",20);G()();F(50,"input",104);J("ngModelChange",function(d){z(b);
var e=K(2);e.issue.blockedByIssueId=Qs(e,d);e.isBlockedByIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Ps(e.issue.blockedByIssueId));return A()});G()();F(51,"div",91)(52,"div",14)(53,"label",105);O(54," Blocking ");M(55,K0a,2,0,"span",20);G()();F(56,"input",106);J("ngModelChange",function(d){z(b);var e=K(2);e.issue.blockingIssueId=Qs(e,d);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Ps(e.issue.blockingIssueId));return A()});G()();M(57,M0a,6,2,"div",107);M(58,O0a,6,2,"div",107);H(59,"div",55);
M(60,W0a,6,9,"div",108);G()()}if(a&2){var c=Fe(16);a=K(2);B(12);E("matMenuTriggerFor",c);ke("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:""));B(1);He(a.issue.severity);B(2);E("overlapTrigger",!0);B(2);E("ngForOf",a.severityChoices);B(5);E("ngModel",Ps(a.originalIssueCopy.foundInVersion));B(5);E("ngModel",a.issue.inProd);B(6);E("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");B(5);E("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");B(5);E("ngModel",Ps(a.originalIssueCopy.targetedToVersion));
B(6);E("ngIf",!a.isBlockedByIssueIdValid);B(1);E("ngModel",Ps(a.issue.blockedByIssueId));B(5);E("ngIf",!a.isBlockingIssueIdValid);B(1);E("ngModel",Ps(a.issue.blockingIssueId));B(1);E("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(1);E("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(2);E("ngForOf",a.issue.customField)}},Y0a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),O(3),G(),F(4,"a",27),O(5,"View access settings"),G()());a&2&&(a=K(2),E("ngClass",Me(5,i0a,Ms(a),Ns(a))),B(1),E("name",
"alert")("size","small"),B(2),Ge("",j0a(a),"\u00a0"),B(1),E("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Qd))},a1a=function(a){if(a&1){var b=x();F(0,"div");M(1,z0a,5,3,"div",45);F(2,"div",12)(3,"div",13)(4,"div",14)(5,"label",46);O(6,"Title");G()();F(7,"div",47)(8,"input",48);J("ngModelChange",function(c){z(b);var d=K();return A(d.setTitle(c))});G()()();M(9,B0a,12,5,"div",18);M(10,E0a,14,9,"div",18);G();F(11,"div",12);M(12,F0a,6,2,"div",49);M(13,
H0a,6,2,"div",50);G();F(14,"div",51)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",52);O(19,"Description");G()();F(20,"b-comment-box",53);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onChange",function(){z(b);var c=K();return A(c.saveCommentDraft())})("onSubmit",function(c){z(b);var d=K();return A(Z0a(d,!c))})("onRestrict",function(){z(b);var c=K();return A(c.showNewContentJudgementDialog())});H(21,"b-markdown-toggle",54);G()()();H(22,"div",55);F(23,"div",56);M(24,X0a,
61,19,"mat-expansion-panel",57);G();M(25,Y0a,6,8,"div",9);F(26,"div",58)(27,"b-button",59);J("onAction",function(){z(b);var c=K();return A(Z0a(c,!0))});O(28," Create ");G();F(29,"b-button",60);J("onAction",function(){z(b);var c=K();return A(Z0a(c,!1))});O(30," Create & Start Another ");G();F(31,"b-button",61);J("onAction",function(){z(b);var c=K();c.draftStore.$window.sessionStorage.removeItem(Bo(0));c.$route.reload();return A()});O(32," Discard ");G()()()()}a&2&&(a=K(),B(1),E("ngIf",a.selectedComponent),
B(7),E("ngModel",a.issue.title)("bFocus",a.newIssueStarted),B(1),E("ngIf",a.canEditIssuesInComponent),B(1),E("ngIf",a.canEditIssuesInComponent),B(2),E("ngIf",a.canEditIssuesInComponent),B(1),E("ngIf",a.canEditIssuesInComponent),B(7),E("supportsPreview",!0)("comment",a.comment)("loadFormatFromPrefs",!a.isFormatInRoute)("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("componentId",null==a.selectedComponent?null:a.selectedComponent.componentId)("placeholder",a.piiWarningMessage)("idForAriaLabel",
a.descriptionBoxId)("audience",a.audience)("ngClass",Le(23,$0a,Os(a.comment))),B(1),E("initialValue",a.comment.formattingMode),B(3),E("ngIf",a.canEditIssuesInComponent),B(1),E("ngIf",Ms(a)||Ns(a)),B(2),E("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),E("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),E("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent))},b1a=function(a,b){a&1&&(F(0,"h2",120),O(1,"This component has a default description"),
G(),F(2,"mat-dialog-content"),O(3," You have already entered a description, but the component you chose has a default description: "),F(4,"div",121),O(5),G()(),F(6,"mat-dialog-actions")(7,"button",122),O(8,"Use component description"),G(),F(9,"button",123),O(10,"Keep my description"),G()());a&2&&(a=b.$implicit,B(5),He(a),B(2),E("mat-dialog-close",!0))},c1a=function(a,b){b.assigneeText=Ql(a.assigneeUser);b.reporterText=Ql(a.reporterUser);b.verifierText=Ql(a.verifierUser);b.ccsText=Rl(a.ccUsers)},d1a=
function(a,b){var c=a.assigneeText;null===c?c=null:(c=c.trim(),c=c.endsWith(",")?c.slice(0,c.length-1):c);a.assigneeText=c;null!=a.assigneeText&&(b.assigneeUser=Xl(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Xl(a.reporterText));null!=a.verifierText&&(b.verifierUser=Xl(a.verifierText));if(a.ccsText){c=[];a=r(a.ccsText);for(var d=a.next();!d.done;d=a.next())(d=Xl(d.value))&&c.push(d);c&&(b.ccUsers=c)}},e1a=function(a){a=Object.assign({},a);return delete a.hotlistId,a},f1a=function(a){if(a&
1){var b=x();F(0,"b-star-toggle",12);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())});G()}a&2&&(a=K(2),E("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},g1a=function(a){a&1&&H(0,"b-star-toggle",13);a&2&&E("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},h1a=function(a){if(a&
1){var b=x();F(0,"div")(1,"div",7);M(2,f1a,1,3,"b-star-toggle",8);M(3,g1a,1,4,"b-star-toggle",9);F(4,"span",10);O(5);F(6,"span")(7,"button",11);J("click",function(){z(b);var c=K();return A(c.editBookmarkGroup())});G()()()()()}a&2&&(a=K(),B(2),E("ngIf",!a.isAdmin),B(1),E("ngIf",a.isAdmin),B(2),Ge("",a.bookmarkGroup.name," "))},k1a=function(a){if(a&1){var b=x();F(0,"b-saved-search-panel",17);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(i1a(k,h,f))})("selectionChange",
function(f){z(b);var h=K(2);return A(j1a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;c=c.last;var e=K();E("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},l1a=function(a){if(a&1){var b=x();F(0,"b-hotlist-panel",18);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(i1a(k,h,f))})("selectionChange",function(f){z(b);
var h=K(2);return A(j1a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;c=c.last;var e=K();E("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},m1a=function(a,b){a&1&&(F(0,"div",14),M(1,k1a,1,6,"b-saved-search-panel",15),M(2,l1a,1,6,"b-hotlist-panel",16),G());a&2&&(E("ngSwitch",b.$implicit.type),B(1),E("ngSwitchCase","SAVED_SEARCH"),B(1),
E("ngSwitchCase","HOTLIST"))},n1a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.archive())});O(1," Archive bookmark group ");G()}a&2&&(a=K(),E("disabled",a.hasUnsavedChanges()||a.isSaving()))},o1a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.unarchive())});O(1," Unarchive bookmark group ");G()}a&2&&(a=K(),E("disabled",a.hasUnsavedChanges()||a.isSaving()))},p1a=function(a){a&1&&(F(0,"span",32),O(1," (archived) "),
G())},r1a=function(a,b){if(a&1){var c=x();F(0,"div")(1,"b-hotlist-chip-smart",48);J("removeHotlist",function(){var d=z(c).ngIf,e=K(4);return A(q1a(e,d))});G()()}a&2&&(a=b.ngIf,B(1),E("id",a))},t1a=function(a,b){if(a&1){var c=x();F(0,"div",49)(1,"a",50);O(2);G();F(3,"span",51);J("click",function(){var e=z(c).ngIf,f=K(4);return A(s1a(f,e))})("keydown.enter",function(){var e=z(c).ngIf,f=K(4);return A(s1a(f,e))})("keydown.space",function(){var e=z(c).ngIf,f=K(4);return A(s1a(f,e))});O(4," \u00d7 ");G()()}if(a&
2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);E("href",d.paths.viewSavedSearch(a),Qd)("matTooltip","Go to saved search: "+d.getDisplayName(b));B(1);Ge(" S: ",d.getDisplayName(b)," ");B(1);E("matTooltip","Remove item: "+d.getDisplayName(b));ke("aria-label","Remove item: "+d.getDisplayName(b))}},u1a=function(a){a&1&&(F(0,"span",52),O(1,"<None>"),G())},v1a=function(a,b){a&1&&(F(0,"div",45),M(1,r1a,2,1,"div",7),M(2,t1a,5,5,"div",46),M(3,u1a,2,0,"span",47),G());if(a&2){a=b.$implicit;b=K(3);B(1);var c;var d=
"HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;E("ngIf",d);B(1);E("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);B(1);E("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},x1a=function(a,b){if(a&1){var c=x();F(0,"button",61);J("click",function(){var d=z(c).$implicit,e=K(5);return A(w1a(e,d))});O(1);G()}a&2&&(a=b.$implicit,B(1),Ge("",a.name," "))},y1a=function(a){a&1&&M(0,x1a,2,1,"button",60);a&2&&(a=K(4),E("ngForOf",
a.savedSearchChoices))},z1a=function(a){a&1&&(F(0,"div",53)(1,"label",54),O(2,"Add from saved searches:"),G(),F(3,"button",55)(4,"span",56),O(5,"Select"),G(),H(6,"mat-icon",57),G(),F(7,"mat-menu",null,58),M(9,y1a,1,1,"ng-template",59),G()());if(a&2){var b=Fe(8);B(3);E("matMenuTriggerFor",b)}},E1a=function(a){if(a&1){var b=x();ve(0);F(1,"div",30)(2,"label",33)(3,"span",18);O(4,"Selected items");G()();F(5,"div",34,35);M(7,v1a,4,3,"div",36);G()();F(8,"div",37)(9,"div",38)(10,"label",39);O(11,"Add hotlist from favorites:");
G();F(12,"b-hotlist-picker",40);J("onApply",function(c){z(b);var d=K(2);return A(A1a(d,c))})("onCreate",function(c){z(b);var d=K(2);return A(B1a(d,c))})("onLoad",function(c){z(b);var d=K(2);return A(C1a(d,c))});G()();F(13,"div",41)(14,"label",42);O(15,"Add hotlist by query:");G();F(16,"b-hotlist-search",43);J("itemSelect",function(c){z(b);var d=K(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(D1a(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",
hotlistId:c.hotlistId}));return A()});G()();M(17,z1a,10,1,"div",44);G();we()}a&2&&(a=K(2),B(7),E("ngForOf",a.bookmarkGroupUnderEdit.item),B(5),E("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),E("showGroups",!1)("allowStarring",!1),B(1),E("ngIf",0<a.savedSearchChoices.length))},G1a=function(a){a&1&&(F(0,"span"),O(1),F(2,"a",65),O(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);Ge(" Hotlist ",a.hotlistId,": ");B(1);E("href",F1a(b,a),Qd);B(1);Ge(" ",a.name||
"(name not available)"," ")}},H1a=function(a){a&1&&(F(0,"span"),O(1),F(2,"a",65),O(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);Ge(" Saved search ",a.savedSearchId,": ");B(1);E("href",F1a(b,a),Qd);B(1);Ge(" ",a.name||"(name not available)"," ")}},I1a=function(a,b){a&1&&(F(0,"li"),M(1,G1a,4,3,"span",7),M(2,H1a,4,3,"span",7),G());a&2&&(a=b.$implicit,B(1),E("ngIf","HOTLIST"===a.resourceType),B(1),E("ngIf","SAVED_SEARCH"===a.resourceType))},J1a=function(a){a&1&&(F(0,"div",62)(1,"label")(2,"span",
18),O(3,"Items"),G()(),F(4,"div",63)(5,"ul"),M(6,I1a,3,2,"li",64),G()()());a&2&&(a=K(2),B(6),E("ngForOf",a.bookmarkGroup.item))},K1a=function(a){if(a&1){var b=x();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});O(2," Update ");G();F(3,"button",68);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),E("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},L1a=function(a){if(a&1){var b=
x();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});O(2," Update ");G();F(3,"button",68);J("click",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),E("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},O1a=function(a){if(a&1){var b=x();ve(0);F(1,"div",9)(2,"h2");O(3);G();M(4,p1a,2,0,"span",10);F(5,"a",11);O(6," (View Dashboard)");
G()();F(7,"mat-tab-group",12);J("selectedIndexChange",function(d){z(b);var e=K();return A(e.selectedTabIndex=d)})("selectedIndexChange",function(d){z(b);var e=K();return A(e.tabChange(d))});F(8,"mat-tab",13)(9,"div",14);H(10,"b-error-banner",15);F(11,"div",16)(12,"label",17)(13,"span",18);O(14,"Name");G()();F(15,"input",19,20);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.name=d)});G()();F(17,"div",16)(18,"label",21)(19,"span",18);O(20,"Description");G()();F(21,"textarea",
22);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.description=d)});G()();M(22,E1a,18,7,"ng-container",23);M(23,J1a,7,1,"ng-template",null,24,Mf);M(25,K1a,5,1,"div",25);G()();F(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);O(31,"Admins");G();F(32,"p",27);O(33," Edit access controls, edit name and description, reorder items, add/remove items ");G()();F(34,"b-multi-user-input",28);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.admins=
d)})("isValid",function(d){z(b);var e=K();return A(e.isAdminsFieldValid=d)});G()();F(35,"div",16)(36,"label")(37,"span",18);O(38,"View only");G();F(39,"p",27);O(40," View the bookmark group ");G();F(41,"b-multi-user-input",29);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){z(b);var e=K();return A(e.isReaderFieldValid=d)});G()()();F(42,"div",30);O(43," See ");F(44,"a",31);O(45,"access control documentation");G();O(46," for an explanation of the settings. ");
G();M(47,L1a,5,1,"div",25);G()()();we()}if(a&2){var c=Fe(24);a=K();B(3);Ie(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," ");B(1);E("ngIf",a.isArchived());B(1);E("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Qd);B(2);E("selectedIndex",a.selectedTabIndex);B(3);E("error",a.error);B(1);E("ngClass",Le(28,Rs,a.isEditDisabled()));B(4);E("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",a.isEditDisabled());B(2);E("ngClass",Le(30,Rs,a.isEditDisabled()));B(4);
E("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());B(1);E("ngIf",a.isAdmin)("ngIfElse",c);B(3);E("ngIf",a.isAdmin);B(3);E("ngClass",Le(32,Rs,a.isEditDisabled()));B(6);pe("disabled",a.isEditDisabled());E("users",a.accessPolicyUnderEdit.admins);B(1);E("ngClass",Le(34,Rs,a.isEditDisabled()));B(6);pe("disabled",a.isEditDisabled());E("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Le(38,M1a,Le(36,N1a,a.accessPolicyUnderEdit.admins)));
B(3);E("href",Jo(a.documentationLinks)+"#bookmark-groups",Qd);B(3);E("ngIf",a.isAdmin)}},P1a=function(a,b){if(a&&a.length)return a.map(b)},Q1a=function(a){return{filename:a.getFilename(),lineNumber:lb(a,2),changeNumber:hj(a,3)}},R1a=function(a){return{packageName:V(a,1),fileMentionSet:P1a(tb(a,Ss,2),Q1a)}},S1a=function(a){return{totalMentions:hj(a,1),truncated:W(a,2),packageMentionSet:P1a(tb(a,Ts,3),R1a)}},T1a=function(a){a&1&&H(0,"b-live-preview",10);a&2&&(a=K(),E("comment",a.newComment.text)("issueId",
a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},U1a=function(a){var b=[],c=new Map;a=r(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(v(e.relations),v(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},V1a=function(a){if(a&1){var b=x();F(0,"b-insights-graph-menu",28);J("openSidebar",function(c){z(b);K(4).issueInsightsSidebarService.openSidebar(c.panel);
return A()});G()}a&2&&(a=K().ngIf,E("availablePanels",a))},W1a=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",29)(2,"p",30),O(3,"Incident Context"),G(),O(4," Check incident context to learn more about this alert. "),G()());a&2&&(a=K(4),B(1),E("customPositions",a.insightsFeatureTooltipPositions))},X1a=function(a,b){a&1&&(ve(0),M(1,V1a,1,1,"b-insights-graph-menu",27),P(2,"async"),M(3,W1a,5,1,"onedev-feature-tooltip-controller",12),we());a&2&&(a=b.ngIf,b=K(3),B(1),
E("ngIf",Q(2,2,b.issueInsightsSidebarService.shouldShowInsightsGraphMenu$)),B(2),E("ngIf",a.has("incidents")))},Y1a=function(a){if(a&1){var b=x();F(0,"g3c-widget-entry",31);J("userActionPerformed",function(c){z(b);var d=K(3);io(d.analytics,mo.G3C_WIDGET,c);return A()});G()}a&2&&(a=K(3),E("customWidgetClass","gmat-button medium")("taskId","b/"+a.issueId)("featureHighlightingEnabled",a.enableG3cFeatureHighlighting))},$1a=function(a){if(a&1){var b=x();F(0,"div",17)(1,"button",18);J("onHotkey",function(){z(b);
K(2).refreshMonitor.refreshRequest.next();return A()})("click",function(){z(b);K(2).refreshMonitor.refreshRequest.next();return A()});H(2,"mat-icon",19);G();H(3,"span",20);F(4,"div",21)(5,"edit-issue-controls",22);J("onHotkey",function(){z(b);var f=K(2);f.savingState.get("status")||(f.issue.duplicateOfIssueId?f.clearCanonicalIssue():Z1a(f.issueMarkAsDuplicateDialogService,f.issueId));return A()})("onVote",function(){z(b);var f=K(2);return A(f.onVote())})("quickAction",function(f){z(b);var h=K(2);
return A(h.performQuickAction("appbar",f))})("markAsDuplicate",function(){z(b);var f=K(2);return A(Z1a(f.issueMarkAsDuplicateDialogService,f.issueId))})("clearCanonical",function(){z(b);var f=K(2);return A(f.clearCanonicalIssue())});P(6,"async");P(7,"async");P(8,"async");P(9,"async");G()();F(10,"b-hotlist-picker",23,24);J("onHotkey",function(){z(b);var f=Fe(11);return A(f.open())})("onApply",function(f){z(b);var h=K(2);return A(h.handleHotlistPickerSave(f))})("onCreate",function(f){z(b);var h=K(2);
return A(h.createHotlist(f))})("onLoad",function(f){z(b);var h=K(2);return A(h.loadHotlist(f))});G();F(12,"b-notification-menu",25);J("subscriptionChange",function(f){z(b);var h=K(2);return A(h.updateSubscription(f))})("showNotificationSettings",function(f){z(b);var h=K(2);return A(h.showNotificationSettings(f))});G();M(13,X1a,4,4,"ng-container",12);P(14,"async");M(15,Y1a,1,3,"g3c-widget-entry",26);G()}if(a&2){a=K(2);var c,d,e;B(1);E("hotkey",a.HOTKEYS.REFRESH);B(4);E("issueId",a.issueId)("hasAclToEdit",
!!Q(6,18,a.issuePermissionService.hasAclToEdit$))("hasAclToComment",!!Q(7,20,a.issuePermissionService.hasAclToComment$))("issueStatusQuickAction",null!==(c=Q(8,22,a.issueStatusQuickAction$))&&void 0!==c?c:void 0)("statusIsSaving",!!Q(9,24,Us(a.savingState.propertiesBeingSaved,Xn("status"))))("isDuplicate",!!a.issue.duplicateOfIssueId)("upvoted",null!==(d=null==a.userData?null:a.userData.voted)&&void 0!==d?d:!1)("voteCount",a.voteCount)("hotkey",a.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(5);E("choices",
a.hotlists)("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER)("selectedHotlistIds",a.selectedHotlistIds);B(2);E("subscription",null!==(e=null==a.userData?null:a.userData.notificationSubscription)&&void 0!==e?e:a.UNKNOWN_SUBSCRIPTION)("issueId",a.issueId)("matTooltip","Notification menu");B(1);E("ngIf",Q(14,26,a.issueInsightsSidebarService.availablePanels$));B(2);E("ngIf",a.enableG3cWidgetIntegration&&a.frontendIsInternal)}},a2a=function(a){a&1&&(F(0,"span",33)(1,"strong"),O(2),G(),O(3,"\u00a0of\u00a0"),F(4,
"strong"),O(5),P(6,"async"),G()());if(a&2){a=K().ngIf;var b=K(2);B(2);He(a);B(3);He(Q(6,2,b.currentSearchResults.totalText$))}},b2a=function(a,b){a&1&&(ve(0),M(1,a2a,7,4,"span",32),we());a&2&&(a=b.ngIf,B(1),E("ngIf",-1!==a))},c2a=function(a){if(a&1){var b=x();F(0,"div",5)(1,"div",6)(2,"div",7)(3,"button",8);J("onHotkey",function(){z(b);var d=K();return A(Vs(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Vs(d.currentSearchResults))});P(4,"async");P(5,"async");H(6,"mat-icon",
9);G();M(7,$1a,16,28,"div",10);G();F(8,"div",11);M(9,b2a,2,1,"ng-container",12);P(10,"async");F(11,"button",13);J("onHotkey",function(){z(b);var d=K();return A(Ws(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Ws(d.currentSearchResults))});P(12,"async");H(13,"mat-icon",14);G();F(14,"button",15);J("onHotkey",function(){z(b);var d=K();return A(Xs(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Xs(d.currentSearchResults))});P(15,"async");H(16,"mat-icon",16);
G()()()()}if(a&2){a=K();var c;B(3);E("hotkey",a.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(c=Q(4,9,a.currentSearchResults.backNavigationLabel$))&&void 0!==c?c:"");ke("aria-label",Q(5,11,a.currentSearchResults.backNavigationLabel$));B(4);E("ngIf",a.issue);B(2);E("ngIf",Q(10,13,a.currentSearchResults.issueIndex$));B(2);E("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!Q(12,15,a.currentSearchResults.hasPreviousIssue$));B(3);E("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!Q(15,17,a.currentSearchResults.hasNextIssue$))}},
d2a=function(a){a&1&&(F(0,"div",34),H(1,"b-access-denied-metadata",35),G());a&2&&(a=K(),B(1),E("issueMetadata",a.issueMetadata))},e2a=function(a){a&1&&(F(0,"a",63),O(1,"Learn more"),G())},f2a=function(a){if(a&1){var b=x();F(0,"b-button",64);J("onAction",function(){z(b);var c=K(3);return A(c.editIssueService.unarchive(c.issueIdString))});O(1,"Unarchive");G()}},g2a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),O(2," This issue has been archived. "),M(3,e2a,2,0,"a",61),G(),F(4,"b-callout-actions"),
M(5,f2a,2,0,"b-button",62),P(6,"async"),G()());a&2&&(a=K(2),E("format","app")("iconOverride","archive_24px"),B(3),E("ngIf",a.frontendIsInternal),B(2),E("ngIf",Q(6,4,a.issuePermissionService.hasAclToEdit$)))},h2a=function(a){a&1&&(F(0,"a",66),O(1,"Learn more"),G())},i2a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),O(2," This issue is in an archived component. "),M(3,h2a,2,0,"a",65),G()());a&2&&(a=K(2),E("format","app")("iconOverride","archive_24px"),B(3),E("ngIf",a.frontendIsInternal))},
j2a=function(a){a&1&&H(0,"b-issue-card",74,75);if(a&2){var b=Fe(1);a=K().ngIf;E("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},k2a=function(a,b){a&1&&(F(0,"div",70),O(1," Duplicate of "),F(2,"a",71),O(3),P(4,"v2StatusToHuman"),G(),F(5,"onedev-hovercard",null,72),M(7,j2a,2,2,"b-issue-card",73),G()());if(a&2){a=b.ngIf;var c=Fe(6);b=K(3);B(2);E("href",b.paths.editIssue(a.issueId),Qd)("onedevHovercardTrigger",c);B(1);ofa(" Issue ",a.issueId," [",Q(4,5,null==a.snapshot[0]?null:a.snapshot[0].status),
"] (",null==a.snapshot[0]?null:a.snapshot[0].title,") ")}},l2a=function(a){a&1&&(F(0,"div",70),O(1," Duplicate of "),F(2,"a",76),O(3),G(),O(4,". "),G());if(a&2){a=K().ngIf;var b=K(2);B(2);E("href",b.paths.editIssue(a),Qd);B(1);Ge(" Issue ",a,"")}},m2a=function(a){a&1&&(F(0,"div",67),M(1,k2a,8,7,"div",68),P(2,"async"),M(3,l2a,5,2,"ng-template",null,69,Mf),G());if(a&2){var b=Fe(4);a=K(2);B(1);E("ngIf",Q(2,2,a.canonicalIssue$))("ngIfElse",b)}},n2a=function(a){if(a&1){var b=x();F(0,"div",77);J("click",
function(){z(b);var c=K(2);return A(Ys(c,"PARENTS"))})("keydown.enter",function(){z(b);var c=K(2);return A(Ys(c,"PARENTS"))})("keydown.space",function(){z(b);var c=K(2);return A(Ys(c,"PARENTS"))});F(1,"span",47);O(2);G();H(3,"mat-icon",44);G()}a&2&&(a=K(2),pe("expanded","PARENTS"==a.relatedIssuesTrayOpen),E("matTooltip","Parent issues"),ke("aria-expanded","PARENTS"==a.relatedIssuesTrayOpen)("aria-selected","PARENTS"==a.relatedIssuesTrayOpen),B(2),Ge("Parents (",Zs(a.parentIssues),")"))},o2a=function(a){if(a&
1){var b=x();F(0,"div",78);J("click",function(){z(b);var d=K(2);return A(Ys(d,"CHILDREN"))})("keydown.enter",function(){z(b);var d=K(2);return A(Ys(d,"CHILDREN"))})("keydown.space",function(){z(b);var d=K(2);return A(Ys(d,"CHILDREN"))});F(1,"span",47);O(2);P(3,"async");G();H(4,"mat-icon",44);G()}if(a&2){a=K(2);var c;pe("expanded","CHILDREN"==a.relatedIssuesTrayOpen);E("matTooltip","Child issues");ke("aria-expanded","CHILDREN"==a.relatedIssuesTrayOpen)("aria-selected","CHILDREN"==a.relatedIssuesTrayOpen);
B(2);Ge("Children (",null!==(c=Q(3,6,a.childIssuesCount$))&&void 0!==c?c:0,")")}},p2a=function(a,b){if(a&1){var c=x();F(0,"div",80);J("click",function(){z(c);var d=K(3);return A(Ys(d,"MENTIONS"))})("keydown.enter",function(){z(c);var d=K(3);return A(Ys(d,"MENTIONS"))})("keydown.space",function(){z(c);var d=K(3);return A(Ys(d,"MENTIONS"))});F(1,"span",47);O(2);G();H(3,"mat-icon",44);G()}a&2&&(a=b.ngIf,b=K(3),pe("expanded","MENTIONS"==b.relatedIssuesTrayOpen),E("matTooltip",b.mentionsLoadingStateTooltipText(a)),
ke("aria-expanded","MENTIONS"==b.relatedIssuesTrayOpen)("aria-selected","MENTIONS"==b.relatedIssuesTrayOpen),B(2),Ge("TODOs (","OK"===a.loadingState&&a.mentions?a.mentions.totalMentions:"?",")"))},q2a=function(a){a&1&&(ve(0),M(1,p2a,4,6,"div",79),P(2,"async"),we());a&2&&(a=K(2),B(1),E("ngIf",Q(2,1,a.codeMentionsState$)))},u2a=function(a){if(a&1){var b=x();F(0,"div",36);P(1,"async");M(2,g2a,7,6,"b-callout",37);M(3,i2a,4,3,"b-callout",37);M(4,m2a,5,4,"div",38);P(5,"async");F(6,"div",39)(7,"div",40)(8,
"div",41)(9,"div",42);J("click",function(){z(b);var c=K();return A(Ys(c,"BLOCKED"))})("keydown.enter",function(){z(b);var c=K();return A(Ys(c,"BLOCKED"))})("keydown.space",function(){z(b);var c=K();return A(Ys(c,"BLOCKED"))});F(10,"span",43);P(11,"formatNumberOrUndef");P(12,"countOpenIssues");O(13);P(14,"formatNumberOrUndef");P(15,"countOpenIssues");G();H(16,"mat-icon",44);G();F(17,"div",45);J("click",function(){z(b);var c=K();return A(Ys(c,"BLOCKING"))})("keydown.enter",function(){z(b);var c=K();
return A(Ys(c,"BLOCKING"))})("keydown.space",function(){z(b);var c=K();return A(Ys(c,"BLOCKING"))});F(18,"span",43);P(19,"formatNumberOrUndef");P(20,"countOpenIssues");O(21);P(22,"formatNumberOrUndef");P(23,"countOpenIssues");G();H(24,"mat-icon",44);G();F(25,"div",46);J("click",function(){z(b);var c=K();return A(Ys(c,"DUPLICATES"))})("keydown.enter",function(){z(b);var c=K();return A(Ys(c,"DUPLICATES"))})("keydown.space",function(){z(b);var c=K();return A(Ys(c,"DUPLICATES"))});F(26,"span",47);O(27);
G();H(28,"mat-icon",44);G();M(29,n2a,4,6,"div",48);M(30,o2a,5,8,"div",49);M(31,q2a,3,3,"ng-container",12);G();F(32,"div",50)(33,"div",51)(34,"b-slide-toggle",52);J("modelChange",function(c){z(b);var d=K();return A(d.preferences.showFullHistory=c)})("modelChange",function(){z(b);var c=K();return A(r2a(c))});G()()()()();F(35,"div",53)(36,"div",54);H(37,"edit-issue-main-content",55);G();F(38,"h3",0);O(39,"Issue metadata");G();F(40,"b-resizable-sidebar",56);J("widthChanged",function(c){z(b);var d=K();
return A(s2a(d,c))});F(41,"div",57)(42,"div",58);H(43,"edit-issue-metadata",59);P(44,"toString");G()()()()()}a&2&&(a=K(),E("ngClass",Me(59,t2a,Q(1,37,a.canonicalIssueId$),a.issue.isArchived||a.inArchivedComponent)),B(2),E("ngIf",a.issue.isArchived),B(1),E("ngIf",!a.issue.isArchived&&a.inArchivedComponent),B(1),E("ngIf",Q(5,39,a.canonicalIssueId$)),B(5),pe("expanded","BLOCKED"==a.relatedIssuesTrayOpen),ke("aria-expanded","BLOCKED"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKED"==a.relatedIssuesTrayOpen),
B(1),Ee("matTooltip","This issue is blocked by ",Q(11,41,Q(12,43,a.blockedByIssues))," open issue(s) (",a.blockedByIssues.length," total)"),B(3),Ie(" Blocked by ",Q(14,45,Q(15,47,a.blockedByIssues)),"/",Zs(a.blockedByIssues)," "),B(4),pe("expanded","BLOCKING"==a.relatedIssuesTrayOpen),ke("aria-expanded","BLOCKING"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKING"==a.relatedIssuesTrayOpen),B(1),Ee("matTooltip","This issue is blocking ",Q(19,49,Q(20,51,a.blockingIssues))," open issue(s) (",a.blockingIssues.length,
" total)"),B(3),Ie(" Blocking ",Q(22,53,Q(23,55,a.blockingIssues)),"/",Zs(a.blockingIssues),""),B(4),pe("expanded","DUPLICATES"==a.relatedIssuesTrayOpen),Ce("matTooltip","This issue has ",a.duplicateIssues.length," duplicate(s)"),ke("aria-expanded","DUPLICATES"==a.relatedIssuesTrayOpen)("aria-selected","DUPLICATES"==a.relatedIssuesTrayOpen),B(2),Ge("Duplicates (",Zs(a.duplicateIssues),")"),B(2),E("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),E("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),
B(1),E("ngIf",a.codeMentionsEnabled),B(3),E("model",a.preferences.showFullHistory)("tooltip",a.preferences.showFullHistory?"Show abridged history (major events only)":"Show full history"),B(3),E("parent",a),B(3),E("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",a.rightSidebarMinWidth)("size",a.rightSidebarWidth),B(3),E("issueId",Q(44,57,a.issueId)))},v2a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.delete())});O(1," Delete saved search ");
G()}a&2&&(a=K(),E("disabled",a.hasUnsavedChanges()||a.isSaving()))},w2a=function(a){a&1&&(ve(0),F(1,"div",9)(2,"h2"),O(3," Saved search not found "),G()(),we())},x2a=function(a){if(a&1){var b=x();F(0,"div",34)(1,"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});O(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),E("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},
y2a=function(a){if(a&1){var b=x();F(0,"div",34)(1,"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});O(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),E("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},B2a=function(a){if(a&1){var b=x();ve(0);F(1,"div",9)(2,"h2");O(3);G();F(4,"a",10);O(5," (View Issues)");
G()();F(6,"mat-tab-group",11);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});F(7,"mat-tab",12)(8,"div",13);H(9,"b-error-banner",14);F(10,"div",15)(11,"label",16)(12,"span",17);O(13,"Name");G()();F(14,"input",18,19);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.name=c)});G()();F(16,"div",15)(17,"label",20)(18,"span",17);O(19,"Description");G()();F(20,"textarea",
21);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.description=c)});O(21,"            ");G()();F(22,"div",22)(23,"label",23)(24,"span",17);O(25,"Query");G();F(26,"p",24);O(27," To modify query and display preferences, run the saved search and modify its parameters ");G();F(28,"div",25);O(29);G()()();M(30,x2a,5,1,"div",26);G()();F(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);O(36,"Admins");G();F(37,"p",24);O(38," Edit access controls, edit name and description, edit query ");
G()();F(39,"b-multi-user-input",29);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){z(b);var d=K();return A(d.isAdminsFieldValid=c)});G()();F(40,"div",15)(41,"label",30)(42,"span",17);O(43,"View and execute search");G()();F(44,"b-multi-user-input",31);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){z(b);var d=K();return A(d.isReaderFieldValid=c)});G()();F(45,"div",32);O(46,
" See ");F(47,"a",33);O(48,"access control documentation");G();O(49," for an explanation of the settings. ");G();M(50,y2a,5,1,"div",26);G()()();we()}a&2&&(a=K(),B(3),Ie(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(1),E("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Qd),B(2),E("selectedIndex",a.selectedTabIndex),B(3),E("error",a.error),B(1),E("ngClass",Le(26,$s,a.isEditDisabled())),B(4),E("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),B(2),E("ngClass",
Le(28,$s,a.isEditDisabled())),B(4),E("ngModel",a.savedSearchUnderEdit.description)("disabled",a.isEditDisabled()),B(9),Ge(" ",a.savedSearch.query," "),B(1),E("ngIf",a.isAdmin),B(3),E("ngClass",Le(30,$s,a.isEditDisabled())),B(6),pe("disabled",a.isEditDisabled()),E("users",a.accessPolicyUnderEdit.admins),B(1),E("ngClass",Le(32,$s,a.isEditDisabled())),B(4),pe("disabled",a.isEditDisabled()),E("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Le(36,
z2a,Le(34,A2a,a.accessPolicyUnderEdit.admins))),B(3),E("href",Jo(a.documentationLinks)+"#saved-searches",Qd),B(3),E("ngIf",a.isAdmin))},C2a=function(a){a&1&&(F(0,"div",7),H(1,"b-spinner"),G())},D2a=function(a){if(a&1){var b=x();F(0,"div",39)(1,"span",40)(2,"b-checkbox",41);J("change",function(c){z(b);var d=K(2);return A(d.alertState.setValue(c))});G()();F(3,"div")(4,"strong",42);O(5,"SLO Notifications");G();F(6,"div",43);O(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");
G()()()}a&2&&(a=K(2),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(2),E("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},E2a=function(a){a&1&&(F(0,"div",44),O(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),F(2,"a",45),O(3," Learn more "),G()())},G2a=function(a){if(a&1){var b=x();F(0,"b-button",50);J("onAction",function(){z(b);var c=K(3);return A(F2a(c,!0))});O(1," Archive ");G()}a&2&&(a=K(3),E("disabled",a.hasUnsavedMetadataChanges()||
a.isSaving()))},H2a=function(a){if(a&1){var b=x();F(0,"b-button",51);J("onAction",function(){z(b);var c=K(3);return A(F2a(c,!1))});O(1," Unarchive ");G()}a&2&&(a=K(3),E("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},I2a=function(a){if(a&1){var b=x();F(0,"div",26)(1,"b-button",46);J("onAction",function(){z(b);var d=K(2);return A(d.saveMetadata())});O(2," Update ");G();F(3,"b-button",47);J("onAction",function(){z(b);var d=K(2);return A(d.revertMetadataChanges())});O(4," Revert changes ");
G();M(5,G2a,2,1,"b-button",48);M(6,H2a,2,1,"b-button",49);G()}if(a&2){K();var c=Fe(9);a=K();B(1);E("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);B(2);E("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);B(2);E("ngIf",a.slo&&!a.slo.getIsArchived());B(1);E("ngIf",a.slo&&a.slo.getIsArchived())}},J2a=function(a){if(a&1){var b=x();F(0,"div",25)(1,"b-button",52);J("onAction",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});
O(2," Update ");G();F(3,"b-button",53);J("onAction",function(){z(b);var c=K(2);return A(c.revertAccessPolicyChanges())});O(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),E("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},K2a=function(a){if(a&1){var b=x();F(0,"div")(1,"div",8)(2,"h2")(3,"span",9);O(4);G()()();F(5,"mat-tab-group",10);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});
F(6,"mat-tab",11)(7,"div",12)(8,"form",13,14)(10,"div",15)(11,"label",16)(12,"span",17);O(13,"Name");G()();F(14,"input",18);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setName(c))});G()();F(15,"div",15)(16,"label",19)(17,"span",17);O(18,"Description");G()();F(19,"textarea",20);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setDescription(c))});O(20,"              ");G()();M(21,D2a,8,4,"div",21);G();M(22,E2a,4,0,"div",22);F(23,"div",15)(24,"slo-elements-picker",
23);J("onCollectionUpdate",function(c){z(b);var d=K();return A(d.updateCollection(c))})("onValidation",function(c){z(b);var d=K();return A(d.elementPickerIsValid=c)});G()();F(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);J("onAction",function(){z(b);var c=K();return A(c.showUpdateHistoryModal())});O(29," View history ");G()()();F(30,"div",25);M(31,I2a,7,4,"div",28);G()()()();F(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);O(38,"Admins");G();F(39,
"p",33);O(40," Edit name, description and metrics ");G()();F(41,"b-multi-user-input",34);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.admins=c)})("isValid",function(c){z(b);var d=K();return A(d.validity.admins=c)});G()();F(42,"div",15)(43,"label",35)(44,"span",17);O(45,"Readers");G();F(46,"p",33);O(47," View the SLO definition (this is not required to see an issue's SLO status) ");G()();F(48,"b-multi-user-input",36);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.readers=
c)})("isValid",function(c){z(b);var d=K();return A(d.validity.readers=c)});G()()();F(49,"div",15);O(50," See ");F(51,"a",37);O(52,"access control documentation");G();O(53," for an explanation of the settings. ");G();M(54,J2a,5,1,"div",38);G()()()()}a&2&&(a=K(),B(4),Ie(" SLO ",a.slo.getSloId(),": ",a.slo.getName()," "),B(1),E("selectedIndex",a.selectedTabIndex),B(5),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),E("required",!0)("ngModel",a.editableCopy.getName())("disabled",a.isEditDisabled()),
B(1),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),E("ngModel",a.editableCopy.getDescription())("disabled",a.isEditDisabled()),B(2),E("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),B(1),E("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),B(1),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(1),E("isDisabled",a.isEditDisabled())("collection",at(a.editableCopy)),B(7),E("ngIf",a.isAdmin()),B(4),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),E("users",a.editableAccessPolicy.admins),
ke("disabled",a.isEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),E("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),ke("disabled",a.isEditDisabled()?!0:null),B(3),Ce("href","",Jo(a.documentationLinks),"#slos",Qd),B(3),E("ngIf",a.isAdmin()))},L2a=function(a){a&1&&(F(0,"b-person-hovercard",3),O(1),G());a&2&&(a=K(),E("email",a.assignee),B(1),Ge(" ",a.assignee," "))},M2a=function(a){a&1&&O(0,"--")},N2a=function(a){a&1&&H(0,"b-formatted-date-time",
3);a&2&&(a=K(),E("timestamp",a.createdTime))},O2a=function(a){a&1&&O(0,"--")},P2a=function(a){a&1&&(F(0,"b-person-hovercard",3),O(1),G());a&2&&(a=K(),E("email",a.reporter),B(1),Ge(" ",a.reporter," "))},Q2a=function(a){a&1&&O(0,"--")},R2a=function(a,b){a&1&&(F(0,"div",3),O(1),G());a&2&&(a=b.$implicit,b=K(),ue("b-chip xs squared status status",a,""),E("title",b.STATUS_FULL_TEXT[a]),B(1),Ge(" ",b.STATUS_TERSE[a]," "))},S2a=function(a){a&1&&O(0,"--")},T2a=function(a){a&1&&H(0,"b-team-display",3);a&2&&
(a=K(),E("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},U2a=function(a){a&1&&O(0,"--")},V2a=function(a){a&1&&(ve(0),O(1),P(2,"enumToHuman"),we());a&2&&(a=K(),B(1),He(Q(2,1,a.type)))},W2a=function(a){a&1&&O(0,"--")},X2a=function(a){if(a&1){var b=x();F(0,"div",3);J("@arrowPosition.start",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!1)});H(1,"div",4);F(2,"div",5);
H(3,"div",6)(4,"div",7)(5,"div",8);G()()}a&2&&(a=K(),E("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),B(2),E("@indicator",a._getArrowDirectionState()),B(1),E("@leftPointer",a._getArrowDirectionState()),B(1),E("@rightPointer",a._getArrowDirectionState()))},Y2a=function(a){a&1&&H(0,"th",21)},Z2a=function(a){a&1&&H(0,"td",22)},$2a=function(a){a&1&&(F(0,"th",21),O(1," Id "),G())},a3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-id-cell",
24),G());a&2&&(a=b.$implicit,B(1),E("id",a.id))},b3a=function(a){a&1&&(F(0,"th",21),O(1," Title "),G())},c3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-title-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},d3a=function(a){a&1&&(F(0,"th",26),O(1," Type "),G())},e3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-type-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},f3a=function(a){a&1&&(F(0,"th",27),O(1," Assignee "),G())},g3a=function(a,
b){a&1&&(F(0,"td",23),H(1,"b-issue-assignee-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},h3a=function(a){a&1&&(F(0,"th",28),O(1," Reporter "),G())},i3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-reporter-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},j3a=function(a){a&1&&(F(0,"th",29),O(1," Status "),G())},k3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-status-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",
Q(2,1,a.issue$)))},l3a=function(a){a&1&&(F(0,"th",21),O(1," Team "),G())},m3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-team-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},n3a=function(a){a&1&&(F(0,"th",30),O(1," Created "),G())},o3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-created-time-cell",25),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},p3a=function(a){a&1&&H(0,"th",21)},q3a=function(a,b){a&1&&(F(0,"td",23)(1,"b-actions-menu",
31),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),E("menuItems",b.getMenuItems(a.id)))},r3a=function(a){a&1&&H(0,"tr",32)},s3a=function(a,b){if(a&1){var c=x();F(0,"tr",33);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("focusin",function(){var d=z(c).$implicit,e=K();return A(bt(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,
f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&E("row",b.$implicit)},t3a=function(a,b){return(null==a?void 0:a.id)===(null==b?void 0:b.id)},v3a=function(a){if(a&1){var b=x();F(0,"div",5);H(1,"img",6)(2,"img",7);F(3,"p",8);O(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");G();F(5,"p",9);O(6,' If this issue blocked another, it would mean that it should be resolved first, and it would show up in the "Blockers" list for that issue. ');F(7,"a",10);O(8,"Learn more");G()();F(9,"button",11);
J("click",function(){z(b);var c=K(2);return A(u3a(c))});O(10," Add ");G()()}a&2&&(a=K(2),B(1),E("src",a.TEA_LIGHT,Qd),B(1),E("src",a.TEA_DARK,Qd))},w3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),E("issueIds",a)("menuItemFactory",b.getMenuItems))},x3a=function(a){a&1&&(ve(0),M(1,w3a,1,2,"b-issues-table",17),P(2,"async"),we());a&2&&(a=K(5),B(1),E("ngIf",Q(2,1,a.blockedAndOpenIds$)))},y3a=function(a){a&1&&(F(0,"p",19),O(1,"Not blocking any open issues \ud83e\udd73"),G())},z3a=
function(a,b){a&1&&(ve(0),F(1,"h4",15),O(2),G(),M(3,x3a,3,3,"ng-container",12),M(4,y3a,2,0,"ng-template",null,16,Mf),we());if(a&2){a=b.$implicit;var c=Fe(5);B(2);Ge("Open (",a.length,")");B(1);E("ngIf",0<a.length)("ngIfElse",c)}},A3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),E("issueIds",a)("menuItemFactory",b.getMenuItems))},B3a=function(a){a&1&&(ve(0),F(1,"h4",15),O(2),G(),M(3,A3a,1,2,"b-issues-table",17),P(4,"async"),we());if(a&2){a=K().$implicit;var b=K(4);B(2);Ge("Closed (",
a.length,")");B(1);E("ngIf",Q(4,2,b.blockedAndClosedIds$))}},C3a=function(a,b){a&1&&(ve(0),M(1,B3a,5,4,"ng-container",1),we());a&2&&(a=b.$implicit,B(1),E("ngIf",0<a.length))},D3a=function(a){a&1&&(ve(0),M(1,z3a,6,3,"ng-container",1),P(2,"async"),M(3,C3a,2,1,"ng-container",1),P(4,"async"),we());a&2&&(a=K(3),B(1),E("ngIf",Q(2,2,a.blockedAndOpen$)),B(2),E("ngIf",Q(4,4,a.blockedAndClosed$)))},E3a=function(a,b){a&1&&(F(0,"li")(1,"a",22)(2,"span",9),O(3),G(),F(4,"aside",23),H(5,"button",24),G()()());a&
2&&(a=b.$implicit,B(1),Ce("routerLink","/issues/",a,""),me("aria-label","Issue ",a,""),B(2),Ge("b/",a,""))},F3a=function(a){a&1&&(F(0,"h4",15),O(1,"Loading..."),G(),F(2,"ol",20),M(3,E3a,6,3,"li",21),G());a&2&&(a=K(2).$implicit,B(3),E("ngForOf",a))},G3a=function(a,b){a&1&&(ve(0),F(1,"a",25),O(2," View as search results "),G(),we());a&2&&(a=b.ngIf,B(1),E("routerLink",a.path)("queryParams",a.params))},H3a=function(a){if(a&1){var b=x();M(0,D3a,5,6,"ng-container",12);P(1,"async");M(2,F3a,4,1,"ng-template",
null,13,Mf);F(4,"aside",14)(5,"button",11);J("click",function(){z(b);var d=K(2);return A(u3a(d))});O(6," Add ");G();M(7,G3a,3,2,"ng-container",1);P(8,"async");G()}if(a&2){var c=Fe(3);a=K(2);E("ngIf",Q(1,3,a.issuesBeingBlocked$))("ngIfElse",c);B(7);E("ngIf",Q(8,5,a.searchUrl$))}},I3a=function(a,b){a&1&&(ve(0),M(1,v3a,11,2,"div",3),M(2,H3a,9,7,"ng-template",null,4,Mf),we());if(a&2){a=b.$implicit;var c=Fe(3);B(1);E("ngIf",0===a.length)("ngIfElse",c)}},J3a=function(a){a&1&&(F(0,"aside",26),H(1,"b-spinner"),
G())},K3a=function(a){if(a&1){var b=x();F(0,"button",4);J("click",function(c){z(b);K().expansionChange.emit();c.stopPropagation();return A()});H(1,"b-icon",5);G()}a&2&&(a=K(),pe("collapsed",!a.expanded),ke("aria-label",a.expanded?"Collapse children":"Expand children"))},L3a=function(a){a&1&&H(0,"div",6)},M3a=function(a){a&1&&(F(0,"p",7),O(1,"none"),G())},N3a=function(a){a&1&&H(0,"b-issue-card",11,12);if(a&2){var b=Fe(1);a=K().$implicit;var c=K(2);E("onedevIsHovercardReady",b.init)("issueId",a)("childContextId",
c.issueId)}},O3a=function(a,b){a&1&&(ve(0),F(1,"a",8),O(2),G(),O(3),F(4,"onedev-hovercard",null,9),M(6,N3a,2,3,"b-issue-card",10),G(),we());if(a&2){a=b.$implicit;b=b.last;var c=Fe(5),d=K().$implicit,e=K();B(1);me("aria-label","Open issue ",a,"");E("routerLink",e.issueDetailsRoute(a).path)("onedevHovercardTrigger",c);B(1);He(d[1][a]||a);B(1);Ge("",b?"":", "," ")}},P3a=function(a,b){a&1&&(F(0,"section",4),M(1,M3a,2,0,"p",5),M(2,O3a,7,5,"ng-container",6),G());a&2&&(a=b.$implicit,B(1),E("ngIf",0===a[0].length),
B(1),E("ngForOf",a[0]))},Q3a=function(a){a&1&&(F(0,"section",13),O(1,"loading..."),G())},R3a=function(a){var b=1<a.length,c={};a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value;if(null!=e){d=e.issueId;var f=void 0;e=null==(f=e.snapshot[0])?void 0:f.title;c[d]=b?hya(e):e}}return c},S3a=function(a,b){a&1&&(ve(0),H(1,"b-issues-table",1),we());a&2&&(a=b.ngIf,b=K(),B(1),E("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("initialSort",b.initialSort))},ct=function(a,
b){return a===b?!0:(null==a?void 0:a.type)===(null==b?void 0:b.type)&&!(null==a||!a.ancestorChain.equals(null==b?void 0:b.ancestorChain))},T3a=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:ph(a)}},U3a=function(a,b){var c=function(){return{position:d,rowElement:b}};if(b.classList.contains("dragging")||b.classList.contains("nodrop")||b.classList.contains("mat-header-row")){var d=
"none";return c()}var e=dt(b),f=b.nextElementSibling&&dt(b.nextElementSibling),h=b.previousElementSibling&&dt(b.previousElementSibling);if("top"===a){var k;if((null==(k=b.previousElementSibling)?0:k.classList.contains("dragging"))&&h===e)return d="none",c();d="before";return c()}if("bottom"===a){if(null!=f&&e<f){var q;if(null==(q=b.nextElementSibling)?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var u;if((null==(u=b.nextElementSibling)?0:u.classList.contains("dragging"))&&
e===f)return d="none",c();d="after";return c()}d="current";return c()},dt=function(a){return Number(a.dataset.level)},ft=function(a){var b;return et(null!=(b=a.dataset.ancestorchain)?b:"")},V3a=function(a){a&1&&H(0,"th",27)},W3a=function(a){if(a&1){var b=x();F(0,"td",28,29);J("click",function(c){z(b);Fe(1).focus();return A(c.stopPropagation())});G()}},X3a=function(a){a&1&&H(0,"th",27)},Y3a=function(a){if(a&1){var b=x();F(0,"td",30,31);J("click",function(c){z(b);Fe(1).focus();return A(c.stopPropagation())})("dragstart",
function(c){z(b);var d=K();return A(d.handleDragStart(c))});H(2,"mat-icon",32);G()}},Z3a=function(a){a&1&&(F(0,"th",27),O(1," Id "),G())},$3a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-id-cell",34),G());a&2&&(a=b.$implicit,B(1),E("id",a.id))},a4a=function(a){a&1&&(F(0,"th",27),O(1," Id "),G())},b4a=function(a){a&1&&(F(0,"td",33),O(1,"--"),G())},c4a=function(a){a&1&&(F(0,"th",27),O(1," Title "),G())},d4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-expandable-issue-title-cell",35);J("expansionChange",
function(){var d=z(c).$implicit,e=K();return A(e.toggleExpansion(d))});P(2,"async");P(3,"async");G()()}a&2&&(a=b.$implicit,B(1),E("issue",Q(2,4,a.issue$))("expandable",Q(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},e4a=function(a){a&1&&(F(0,"th",27),O(1," Type "),G())},f4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-type-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},g4a=function(a){a&1&&(F(0,"th",27),O(1," Assignee "),G())},h4a=function(a,
b){a&1&&(F(0,"td",33),H(1,"b-issue-assignee-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},i4a=function(a){a&1&&(F(0,"th",27),O(1," Status "),G())},j4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-status-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,a.issue$)))},k4a=function(a){a&1&&(F(0,"th",27),O(1," Team "),G())},l4a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-team-cell",36),P(2,"async"),G());a&2&&(a=b.$implicit,B(1),E("issue",Q(2,1,
a.issue$)))},m4a=function(a){a&1&&H(0,"th",27)},n4a=function(a,b){a&1&&(F(0,"td",33)(1,"b-actions-menu",37),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),E("menuItems",b.getMenuItems(a)))},o4a=function(a){a&1&&H(0,"th",27)},p4a=function(a){if(a&1){var b=x();F(0,"button",41);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.saveDraft(c))});H(1,"mat-icon",42);G()}a&2&&E("matTooltip","Save issue (Enter)")},q4a=function(a){a&1&&H(0,"b-spinner")},
r4a=function(a,b){a&1&&(F(0,"td",38),M(1,p4a,2,1,"button",39),M(2,q4a,1,0,"ng-template",null,40,Mf),G());if(a&2){a=b.$implicit;var c=Fe(3);B(1);E("ngIf",!a.saving)("ngIfElse",c)}},t4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-async-data-placeholder",43);P(2,"async");F(3,"b-button",44);J("onAction",function(){var d=z(c).$implicit,e=K();return A(s4a(e,d))});F(4,"span",45);O(5);G()()()()}a&2&&(a=b.$implicit,b=K(),oe("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),ke("colspan",b.tableColumns.length),
B(1),E("isReady",!!Q(2,5,a.parentIssue$)),B(4),Ge("Display ",a.truncatedSiblingCount," more"))},u4a=function(a){a&1&&(F(0,"th",27),O(1," Title "),G())},v4a=function(a,b){if(a&1){var c=x();F(0,"td",33)(1,"b-text-input-cell",46);J("valueChange",function(d){var e=z(c).$implicit;return A(e.title=d)})("commit",function(){var d=z(c).$implicit,e=K();return A(e.saveDraft(d))});G()()}a&2&&(a=b.$implicit,oe("padding-left",24*(a.level+1),"px"),B(1),E("value",a.title)("readonly",a.saving))},w4a=function(a){a&
1&&H(0,"tr",47)},y4a=function(a,b){if(a&1){var c=x();F(0,"tr",48);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("focusin",function(){var d=z(c).$implicit,e=K();return A(bt(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});P(1,"async");G()}a&2&&(a=b.$implicit,b=K(),pe("selected",Q(1,6,x4a(b.selectionModel,a.ancestorChain))),E("row",
a),ke("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},z4a=function(a,b){if(a&1){var c=x();F(0,"tr",49);J("focusin",function(){var d=z(c).$implicit,e=K();return A(bt(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&(a=b.$implicit,E("row",a),ke("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},B4a=function(a,b){if(a&1){var c=x();F(0,"tr",50);J("keydown",function(d){var e=
z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=z(c).$implicit,e=K();return A(A4a(e,d))})("componentBlur",function(){var d=z(c).$implicit,e=K();return A(A4a(e,d))})("focusin",function(){var d=z(c).$implicit,e=K();return A(bt(e.focusManager,d))});G()}a&2&&(a=b.$implicit,E("row",a),ke("data-type",a.type))},gt=function(a){var b=C4a(a.open);a=C4a(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},C4a=function(a){var b=a.count;a=a.exact;return 0===b||a?""+b:b+"+"},
ht=function(a){return"("+C4a(a)+")"},it=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},D4a=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";default:ph(b)}},E4a=function(a){a&1&&H(0,"b-spinner")},F4a=function(a){a&1&&xe(0)},G4a=function(a){a&1&&(ve(0),M(1,F4a,1,0,"ng-container",20),we());if(a&2){K();var b=Fe(43);B(1);E("ngTemplateOutlet",
b)}},H4a=function(a){a&1&&(H(0,"b-blockers-table",22),P(1,"async"));if(a&2){a=K().ngIf;var b=K();E("issueId",a)("blockerIds",Q(1,2,b.blockerIds$))}},I4a=function(a){a&1&&(ve(0),M(1,H4a,2,4,"b-blockers-table",21),P(2,"async"),we());if(a&2){a=K();var b=Fe(24);B(1);E("ngIf",Q(2,2,a.blockersCount$))("ngIfElse",b)}},J4a=function(a){a&1&&xe(0)},K4a=function(a){a&1&&(F(0,"div")(1,"span",23),O(2,"This issue is not blocked "),F(3,"span",24),O(4,"\ud83c\udf89"),G()(),M(5,J4a,1,0,"ng-container",20),G());if(a&
2){K();var b=Fe(43);B(5);E("ngTemplateOutlet",b)}},L4a=function(a){a&1&&xe(0)},M4a=function(a){a&1&&(ve(0),M(1,L4a,1,0,"ng-container",20),we());if(a&2){K();var b=Fe(45);B(1);E("ngTemplateOutlet",b)}},N4a=function(a){a&1&&(F(0,"div",25)(1,"section",26)(2,"div",27),O(3," Progress: "),G(),F(4,"div",27),O(5),P(6,"number"),P(7,"async"),P(8,"number"),P(9,"async"),G(),F(10,"div",28),P(11,"async"),F(12,"div",29)(13,"div",30),P(14,"async"),G(),F(15,"onedev-hovercard",null,31)(17,"div",32)(18,"div",33),O(19),
P(20,"async"),G()()()()(),H(21,"mat-icon",34),F(22,"onedev-hovercard",null,35)(24,"div",32)(25,"div",36)(26,"p"),O(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. "),G()()()()()());if(a&2){var b=Fe(16),c=Fe(23);a=K();B(5);Ie(" ",Pe(6,8,Q(7,11,a.totalDaysComplete$),"1.0-2")," of ",Pe(8,13,Q(9,16,a.totalDaysCount$),"1.0-2"),
" days complete ");B(5);me("aria-label","",Q(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");B(2);E("onedevHovercardTrigger",b);B(1);oe("width",Q(14,20,a.totalDaysDisplayPercent$),"%");B(6);Ge(" ",Q(20,22,a.progressHovercardContent$)," ");B(2);E("onedevHovercardTrigger",c)}},O4a=function(a,b){a&1&&(H(0,"b-issue-relations-table",37),P(1,"async"));if(a&2){a=b.ngIf;b=K();var c;pe("hidden",0===((null==(c=Q(1,3,null==b.table?null:b.table.rows$))?null:c.length)||0));E("rootIssueId",
a)}},P4a=function(a){a&1&&xe(0)},Q4a=function(a){a&1&&(ve(0),F(1,"span",23),O(2,"This issue has no children"),G(),M(3,P4a,1,0,"ng-container",20),we());if(a&2){K(2);var b=Fe(45);B(3);E("ngTemplateOutlet",b)}},R4a=function(a){a&1&&(ve(0),M(1,Q4a,4,1,"ng-container",5),P(2,"async"),P(3,"async"),we());if(a&2){a=K();var b;B(1);E("ngIf",0===Q(2,1,a.unarchivedChildIssueCount$)&&0===((null==(b=Q(3,3,null==a.table?null:a.table.rows$))?null:b.length)||0))}},T4a=function(a){if(a&1){var b=x();F(0,"b-button",38);
J("onAction",function(){z(b);var c=K();return A(S4a(c))});P(1,"async");O(2," Add ");G()}a&2&&(a=K(),E("disabled",!Q(1,1,a.canEdit$)))},U4a=function(a){if(a&1){var b=x();F(0,"b-button",39);J("onAction",function(){z(b);var c=K();return A(c.createChild())});P(1,"async");O(2," Create ");G();F(3,"b-button",40);J("onAction",function(){z(b);var c=K();return A(c.addChild())});P(4,"async");O(5," Add ");G()}a&2&&(a=K(),E("disabled",!Q(1,2,a.canEdit$)),B(3),E("disabled",!Q(4,4,a.canEdit$)))},V4a=function(a,
b){return(0,T.combineLatest)([a,b]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return 0===d?0:Math.round(100*c/d*100)/100}))},W4a=function(a){return 1===a?a+" day":a+" days"},X4a=function(a){a&1&&(Qc(),Rc(),ve(0),O(1),we());a&2&&(a=K(),B(1),Ge("Insights (",a.availablePanels.size,")"))},Y4a=function(a,b){if(a&1){var c=x();F(0,"button",19);J("click",function(){var d=z(c).$implicit;K().openSidebar.emit({panel:d.panel});return A()});O(1);G()}a&2&&(a=b.$implicit,b=K(),E("disabled",
!b.availablePanels.has(a.panel)),B(1),Ge(" ",a.label," "))},Z4a=function(a){if(a&1){var b=x();F(0,"b-insights-graph-menu",2);J("openSidebar",function(d){z(b);var e=K(2);return A(e.openSidebar(d.panel))});G()}if(a&2){a=K().ngIf;var c=K();E("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},$4a=function(a){a&1&&(ve(0),M(1,Z4a,1,3,"b-insights-graph-menu",1),P(2,"async"),we());a&2&&(a=K(),B(1),E("ngIf",Q(2,1,a.shouldShowInsightsGraphMenu$)))},b5a=function(a,b){if(a&1){var c=
x();F(0,"button",1);J("click",function(){z(c);var d=K();return A(a5a(d))});P(1,"async");O(2);G()}a&2&&(a=b.ngIf,b=K(),E("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!1===Q(1,3,b.canEdit$))("title",a.isDupe?b.TOOLTIP_UNMARK_DUPE:b.TOOLTIP_MARK_DUPE),B(2),Ge(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},c5a=function(a){a&1&&xe(0)},d5a=function(a){a&1&&(ve(0),M(1,c5a,1,0,"ng-container",5),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.content))},e5a=function(a,b){if(a&1){var c=
x();F(0,"button",12);J("click",function(e){var f=z(c).$implicit;return A(f.action(e))});H(1,"mat-icon",13);O(2);G()}if(a&2){a=b.$implicit;var d;E("disabled",a.disabled)("title",a.title);ke("aria-label",a.title);B(1);E("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");B(1);Ge(" ",a.label," ")}},f5a=function(a){if(a&1){var b=x();ve(0);F(1,"button",14);J("click",function(d){z(b);var e=K(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();return A()});H(2,"mat-icon",15);O(3,
" Retention: ");H(4,"retention-text",16);O(5," \u00a0 ");H(6,"help-hover",17);G();we()}if(a&2){a=K().ngIf;var c=Fe(13);B(4);E("retentionState",a.retentionState);B(2);E("content",c)}},g5a=function(a){a&1&&(ve(0),H(1,"retention-help-text",18),we());a&2&&(a=K(2).ngIf,B(1),E("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},h5a=function(a){a&1&&M(0,g5a,2,2,"ng-container",0);a&2&&(a=K().ngIf,E("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},i5a=function(a,b){if(a&1){var c=
x();ve(0);H(1,"b-app-vote-button",1);F(2,"smart-dupe-btn",2,3);J("onHotkey",function(){z(c);var e=Fe(3);return A(a5a(e))});G();F(4,"b-notification-menu",4);J("subscriptionChange",function(e){z(c);var f=K();return A(f.updateSubscription(e))})("showNotificationSettings",function(e){z(c);var f=K();return A(f.showNotificationSettings(e))});G();H(5,"insights-graph-menu-smart",5);F(6,"button",6);H(7,"mat-icon",7);G();F(8,"mat-menu",8,9);M(10,e5a,3,5,"button",10);M(11,f5a,7,2,"ng-container",0);G();M(12,
h5a,1,1,"ng-template",null,11,Mf);we()}if(a&2){a=b.ngIf;var d=Fe(9);b=K();B(1);E("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted)("isNewVoteButton",!0);B(1);E("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);E("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);B(1);E("iconOnly",!0);B(1);E("matMenuTriggerFor",d);B(4);E("ngForOf",a.menuItems);B(1);E("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime)}},j5a=function(a){a&
1&&(F(0,"div",3),H(1,"mat-icon",4),F(2,"span",5),O(3),P(4,"async"),G()());if(a&2){a=K();var b;B(3);Ge("",null==(b=Q(4,1,a.issues$))?null:b.length," parent issues")}},k5a=function(a){a&1&&(F(0,"div",3),H(1,"mat-icon",6),F(2,"span",5),O(3),P(4,"async"),G()());if(a&2){a=K();var b;B(3);Ge("Blocked by ",null==(b=Q(4,1,a.issues$))?null:b.length," issues")}},l5a=function(a,b){a&1&&(ve(0),F(1,"div"),O(2),G(),we());a&2&&(a=b.$implicit,b=K(4),B(1),ue("b-chip xs squared status status",a,""),B(1),He(b.STATUS_TERSE[a]))},
m5a=function(a){a&1&&(ve(0),F(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),O(5),G(),F(6,"div",12),O(7),G()(),F(8,"div",10)(9,"div",13),O(10),G(),M(11,l5a,3,4,"ng-container",2),G()()(),we());if(a&2){var b=K();a=b.$implicit;b=b.last;var c=K(2);B(1);Ce("routerLink","/issues/",a.issueId,"");B(1);pe("border-bottom",!b);B(3);He(a.issueId);B(2);He(a.snapshot[0].title);B(2);E("ngClass",c.priorityClass(a.snapshot[0].priority));B(1);He(a.snapshot[0].priority);B(1);E("ngIf",c.IssueStatus_strToTag[a.snapshot[0].status])}},
n5a=function(a,b){a&1&&(ve(0),M(1,m5a,12,8,"ng-container",2),we());a&2&&(a=b.index,B(1),E("ngIf",5>a))},p5a=function(a){if(a&1){var b=x();ve(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2);return A(o5a(c))});O(3,"View all parent issues");G()();we()}},q5a=function(a){if(a&1){var b=x();ve(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();jt(c.router,"/issues/"+c.currentIssueId+"/dependencies");return A()});
O(3,"View all blockers");G()();we()}},r5a=function(a,b){a&1&&(F(0,"div"),M(1,n5a,2,1,"ng-container",7),M(2,p5a,4,0,"ng-container",2),M(3,q5a,4,0,"ng-container",2),G());a&2&&(a=b.$implicit,b=K(),B(1),E("ngForOf",a),B(1),E("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),E("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},s5a=function(a){a&1&&H(0,"mat-icon",7)},t5a=function(a){a&1&&(ve(0),H(1,"b-list-issues-card",8,9),we());if(a&2){var b=Fe(2);K();var c=
Fe(5);a=K();B(1);E("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},u5a=function(a){a&1&&(ve(0),F(1,"a",3),O(2),G(),M(3,s5a,1,0,"mat-icon",4),F(4,"onedev-hovercard",null,5),M(6,t5a,3,5,"ng-container",6),G(),we());if(a&2){var b=Fe(5);a=K();B(1);Ce("title","",a.multiParentIds.length," parents at this position");E("onedevHovercardTrigger",b);B(1);Ge("",a.multiParentIds.length," Parents\u2026");
B(1);E("ngIf",1<a.multiParentIds.length)}},v5a=function(a){a&1&&H(0,"b-issue-card",13,9);if(a&2){var b=Fe(1);a=K().$implicit;E("onedevIsHovercardReady",b.init)("issueId",a)}},w5a=function(a,b){a&1&&(ve(0),F(1,"onedev-hovercard",null,10),M(3,v5a,2,2,"b-issue-card",11),G(),F(4,"b-issue-reference-widget",12),O(5),G(),H(6,"mat-icon",7),we());if(a&2){a=b.$implicit;b=b.last;var c=Fe(2),d=K();B(4);E("href",d.getIssueLink(a))("issueId",a)("onedevHovercardTrigger",c);B(1);d.issueIdToTitle.has(a)?(a=d.issueIdToTitle.get(a),
a=hya(a)):a=String(a);He(a);B(1);pe("last",b)}},x5a=function(a){a&1&&(ve(0),O(1," > "),we())},y5a=function(a,b){a&1&&(ve(0),F(1,"a",7),O(2),G(),M(3,x5a,2,0,"ng-container",3),we());a&2&&(a=b.$implicit,b=b.last,B(1),me("aria-label","View recent issues in ",a.name,""),E("routerLinkObj",a.route),B(1),He(a.name),B(1),E("ngIf",!b))},z5a=function(a){a&1&&(F(0,"span"),O(1," [Archived]"),G())},A5a=function(a){a&1&&(F(0,"div",5),M(1,y5a,4,4,"ng-container",6),P(2,"async"),M(3,z5a,2,0,"span",3),P(4,"async"),
G());a&2&&(a=K(),B(1),E("ngForOf",Q(2,2,a.componentPath$)),B(2),E("ngIf",Q(4,4,a.isArchived$)))},B5a=function(a,b){a&1&&(ve(0),F(1,"div",8),H(2,"mat-icon",9),F(3,"div",10),O(4),G()(),F(5,"p",11),O(6),G(),F(7,"p",10),O(8),G(),we());a&2&&(a=b.$implicit,B(4),He(a.name),B(2),Ge("Component ID: ",a.componentId,""),B(2),He(a.description))},C5a=function(a,b){a&1&&(F(0,"div",12)(1,"a",13),O(2,"View recent open issues"),G(),F(3,"a",14),O(4,"View component settings"),G(),F(5,"a",15),O(6,"Create issue in this component"),
G()());a&2&&(a=b.$implicit,B(1),E("routerLinkObj",a.recentIssues),B(2),E("routerLinkObj",a.componentSettings),B(2),E("routerLinkObj",a.createIssue))},D5a=function(a){a&1&&(ve(0),O(1,"\u2026 >"),we())},E5a=function(a){a&1&&(ve(0),O(1,"\u2026"),we())},F5a=function(a){if(a&1){var b=x();F(0,"a",15);J("click",function(){z(b);var c=K(4);return A(c.compactMode$.next(!1))});M(1,D5a,2,0,"ng-container",6);M(2,E5a,2,0,"ng-container",6);G()}a&2&&(a=K().$implicit,B(1),E("ngIf",a.isSpliced),B(1),E("ngIf",a.isTruncated))},
G5a=function(a){a&1&&(ve(0),O(1," > "),we())},H5a=function(a){a&1&&(ve(0),H(1,"b-component-path-card",16,17),we());if(a&2){var b=Fe(2);a=K().$implicit;B(1);E("onedevIsHovercardReady",b.init)("componentId",a.id)}},I5a=function(a,b){a&1&&(ve(0),M(1,F5a,3,2,"a",11),F(2,"a",12),O(3),G(),M(4,G5a,2,0,"ng-container",6),F(5,"onedev-hovercard",null,13),M(7,H5a,3,2,"ng-container",14),G(),we());if(a&2){a=b.$implicit;b=b.last;var c=Fe(6);B(1);E("ngIf",a.isSpliced||a.isTruncated);B(1);pe("muted",a.name==a.id);
E("routerLinkObj",a.route)("onedevHovercardTrigger",c);B(1);He(a.name);B(1);E("ngIf",!b)}},J5a=function(a,b){a&1&&(F(0,"span",9),M(1,I5a,8,7,"ng-container",10),G());a&2&&(a=b.$implicit,B(1),E("ngForOf",a))},K5a=function(a){a&1&&(F(0,"span"),O(1,"[Archived]"),G())},L5a=function(a){if(a&1){var b=x();F(0,"b-async-data-placeholder",2);P(1,"async");F(2,"div",3);H(3,"mat-icon",4);M(4,J5a,2,1,"span",5);P(5,"async");M(6,K5a,2,0,"span",6);P(7,"async");F(8,"button",7);J("click",function(){z(b);K().editing=
!0;return A()});H(9,"mat-icon",8);G()()()}a&2&&(a=K(),E("isReady",Q(1,3,a.isReady$)),B(4),E("ngIf",Q(5,5,a.componentPath$)),B(2),E("ngIf",Q(7,7,a.isArchived$)))},N5a=function(a){if(a&1){var b=x();F(0,"b-team-component-picker",18);J("selectedComponentChange",function(c){z(b);var d=K();d.editing=!1;c&&M5a(d.issueEditComponentService,d.issueId,c);return A()})("dropdownClosed",function(){z(b);K().editing=!1;return A()});P(1,"async");G()}a&2&&(a=K(),E("selectedComponent",Q(1,3,a.component$))("isRequired",
!0)("shouldFocus",!0))},O5a=function(a){a&1&&(F(0,"h3",3,4),O(2),G());a&2&&(a=K(),ke("title",(null==a.title?0:200<=a.title.length)?a.title:""),B(2),Ge(" ",a.title,"\n"))},R5a=function(a){if(a&1){var b=x();F(0,"mat-form-field",5)(1,"input",6,7);J("keyup",function(c){z(b);var d=K();return A(P5a(d,c))})("blur",function(){z(b);var c=K();return A(P5a(c,null))});G()()}a&2&&(a=K(),E("ngStyle",Le(2,Q5a,a.editModeWidth)),B(1),E("value",a.title))},T5a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",
function(){z(b);var c=K();return A(S5a(c))});H(1,"mat-icon",9);G()}a&2&&(a=K(),E("disabled",a.disabled))},U5a=function(a){a&1&&(F(0,"div",4),H(1,"mat-icon",5),O(2),P(3,"async"),G());if(a&2){a=K();var b=Fe(4);E("onedevHovercardTrigger",b);B(2);Ge("",Q(3,2,a.teamName$)," ")}},V5a=function(a){a&1&&xe(0)},W5a=function(a){a&1&&(ve(0),M(1,V5a,1,0,"ng-container",14),we());if(a&2){K();var b=Fe(21);B(1);E("ngTemplateOutlet",b)}},X5a=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().$implicit,B(1),Ge(" ",a," "))},
Y5a=function(a,b){a&1&&(F(0,"div",15),H(1,"mat-icon",16),M(2,X5a,2,1,"ng-container",17),G());if(a&2){a=b.$implicit;K();var c=Fe(18);E("onedevHovercardTrigger",c);B(2);E("ngIf",2<=a)}},Z5a=function(a){a&1&&(ve(0),H(1,"b-list-issues-card",18,19),P(3,"async"),we());if(a&2){var b=Fe(2);a=K();var c=Fe(18);B(1);E("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",Q(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},$5a=function(a,b){a&
1&&H(0,"ancestors-breadcrumbs",25);a&2&&(a=b.ngIf,b=K(3),E("ancestors",a)("issueId",b.issueId))},a6a=function(a){a&1&&(ve(0),H(1,"b-component-breadcrumb-chip",21),P(2,"async"),F(3,"div",22),M(4,$5a,1,2,"ancestors-breadcrumbs",23),P(5,"async"),H(6,"b-issue-id-picker",24),P(7,"async"),P(8,"async"),P(9,"async"),G(),we());a&2&&(a=K(2),B(1),E("componentId",Q(2,8,a.componentId$))("compactMode",!0)("issueId",a.issueId),B(3),E("ngIf",Q(5,10,a.ancestors$)),B(2),E("issueId",a.issueId)("componentId",Q(7,12,
a.componentId$))("issueTitle",Q(8,14,a.issueTitle$))("isExternalIssue",!!Q(9,16,a.isWithinExternalComponent$)))},b6a=function(a){if(a&1){var b=x();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});P(1,"async");P(2,"async");G();M(3,a6a,10,18,"ng-container",17)}a&2&&(a=K(),E("componentId",Q(1,3,a.componentId$))("teamId",Q(2,5,a.teamId$)),B(3),E("ngIf",a.isTeamLoaded))},c6a=function(a){a&1&&(ve(0),H(1,"b-component-breadcrumb-chip",26),P(2,"async"),F(3,"div",
27),H(4,"b-issue-id-picker",28),P(5,"async"),P(6,"async"),P(7,"async"),G(),we());a&2&&(a=K(2),B(1),E("componentId",Q(2,6,a.componentId$))("issueId",a.issueId),B(3),E("issueId",a.issueId)("componentId",Q(5,8,a.componentId$))("issueTitle",Q(6,10,a.issueTitle$))("isExternalIssue",!!Q(7,12,a.isWithinExternalComponent$)))},d6a=function(a){if(a&1){var b=x();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});P(1,"async");P(2,"async");G();M(3,c6a,8,14,"ng-container",
17)}a&2&&(a=K(),E("componentId",Q(1,3,a.componentId$))("teamId",Q(2,5,a.teamId$)),B(3),E("ngIf",a.isTeamLoaded))},e6a=function(a){return 1===a?"Blocked":"Blocked by "+a+" issues"},f6a=function(a){if(0!==a.length)return 1===a.length?kt.ISSUE(a[0]):kt.ISSUE_LIST},g6a=function(a){a&1&&(F(0,"output"),O(1),P(2,"async"),G());if(a&2){a=K().ngIf;var b=K();B(1);Ie(" ",a," of ",Q(2,2,b.currentSearchResults.totalText$)," ")}},i6a=function(a,b){if(a&1){var c=x();ve(0);M(1,g6a,3,4,"output",0);F(2,"span",1)(3,
"button",2);J("onHotkey",function(){z(c);var d=K();return A(Ws(d.currentSearchResults))})("click",function(){z(c);var d=K();return A(Ws(d.currentSearchResults))});P(4,"async");H(5,"mat-icon",3);G();F(6,"button",4);J("onHotkey",function(){z(c);var d=K();return A(Xs(d.currentSearchResults))})("click",function(){z(c);var d=K();return A(Xs(d.currentSearchResults))});P(7,"async");H(8,"mat-icon",5);G()();we()}a&2&&(a=b.ngIf,b=K(),B(1),E("ngIf",-1!==a),B(1),E("ngClass",Le(10,h6a,-1===a)),B(1),E("hotkey",
b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!Q(4,6,b.currentSearchResults.hasPreviousIssue$)),B(3),E("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!Q(7,8,b.currentSearchResults.hasNextIssue$)))},j6a=function(a){a&1&&H(0,"b-access-level-indicator",5);a&2&&(a=K(2).$implicit,E("accessLevel",a.accessLevel))},k6a=function(a){a&1&&H(0,"b-retention-chip",6);a&2&&(a=K(2).$implicit,E("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},l6a=function(a){a&1&&(F(0,"div",2),M(1,
j6a,1,1,"b-access-level-indicator",3),M(2,k6a,1,3,"b-retention-chip",4),G());a&2&&(a=K().$implicit,B(1),E("ngIf",a.isShowingPublicPartner),B(1),E("ngIf",a.isShowingRetention))},m6a=function(a,b){a&1&&(ve(0),M(1,l6a,3,2,"div",1),we());a&2&&(a=b.$implicit,B(1),E("ngIf",a.isShowingPublicPartner||a.isShowingRetention))},n6a=function(a,b){b&&(null!=b.autocompleteGroupingType&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),null!=b.autocompleteGroupingLabel&&a.setAutocompleteGroupingLabel(b.autocompleteGroupingLabel),
null!=b.autocompleteHeader&&a.setAutocompleteHeader(b.autocompleteHeader),null!=b.autocompleteMaxResultsBeforeScroll&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),null!=b.density&&a.setDensity(b.density),null!=b.moveAutocompleteAboveAnchorIfOffscreen&&a.setMoveAutocompleteAboveAnchorIfOffscreen(b.moveAutocompleteAboveAnchorIfOffscreen),null!=b.autoActivateFirstSuggestion&&a.setAutoActivateFirstSuggestion(b.autoActivateFirstSuggestion),null!=b.showSuggestions&&a.setShowSuggestions(b.showSuggestions))},
o6a=function(a){if(a&1){var b=x();F(0,"input",3,4);J("peoplekitAutocompleteSelectionChange",function(c){z(b);var d=K();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return A()})("ngModelChange",function(c){z(b);var d=K();return A(d.inputValue=c)});G()}a&2&&(a=K(),E("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("ngModel",a.inputValue))},p6a=function(a){a&1&&xe(0)},r6a=function(a){a&1&&(ve(0),M(1,p6a,1,0,"ng-container",
6),we());a&2&&(a=K(),B(1),E("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Le(2,q6a,a.email)))},s6a=function(a){a&1&&O(0);a&2&&(a=K(),Ge(" ",a.email," "))},t6a=function(a){a&1&&(Qc(),F(0,"svg",7),H(1,"path",8),G())},u6a=function(a){a&1&&H(0,"b-user-membership-chip",4);if(a&2){a=K().$implicit;var b=K(),c;E("email",a)("teamId",null!==(c=b.teamId)&&void 0!==c?c:"")("enableSmallChip",!0)}},v6a=function(a,b){a&1&&M(0,u6a,1,3,"b-user-membership-chip",3);a&2&&E("ngIf",b.$implicit)},
w6a=function(a){return function(b){return tb(b,lt,1).map(function(c){return{workspaceId:c.getWorkspaceId(),workspaceName:c.getName(),issueId:a}})}},x6a=function(a){a&1&&xe(0)},y6a=function(a){a&1&&(ve(0),M(1,x6a,1,0,"ng-container",33),we());if(a&2){K();var b=Fe(67);B(1);E("ngTemplateOutlet",b)}},A6a=function(a,b){a&1&&H(0,"b-list-field",35);a&2&&(a=b.ngIf,b=K(3),E("readonly",!0)("defaultLineCount",3)("title","Team")("type",b.ListFieldType.TEAM)("values",Le(5,z6a,a)))},B6a=function(a){a&1&&(ve(0),
M(1,A6a,1,7,"b-list-field",34),P(2,"async"),we());a&2&&(a=K(2),B(1),E("ngIf",Q(2,1,a.teamHovercardInputs$)))},D6a=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-team-warning",38);J("updateTeam",function(){z(b);var h=K(3);mt(h.issueFridge,h.issueId);return A()});P(2,"async");P(3,"async");G()()}if(a&2){a=K().ngIf;var c=K().ngIf,d=K(),e,f;B(1);E("warningType",a)("componentId",c.componentId)("parentComponentId",(null==(e=Q(2,4,d.component$))?null:e.parentComponentId)||0)("teamSuggestions",null!==(f=
Q(3,6,d.teamSuggestions$))&&void 0!==f?f:Ke(8,C6a))}},E6a=function(a){a&1&&(ve(0),M(1,D6a,4,9,"div",36),P(2,"async"),we());a&2&&(a=K(2),B(1),E("ngIf",Q(2,1,a.shouldDisplayTeamSuggestions$)))},G6a=function(a){if(a&1){var b=x();ve(0);F(1,"b-edit-field",39,40);J("valueChange",function(f){z(b);var h=Fe(2),k=K(2);return A(F6a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();we()}if(a&2){a=K().ngIf;var c=K(),d,e;B(1);E("name","reporter")("title","Reporter")("type",c.FieldType.TEXT)("value",
a.reporter)("user",null!==(d=a.reporterUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!Q(3,10,c.hasAclToEdit$))("disabled",!!Q(4,12,c.isSaving$("reporter")))("showAvailability",!0)("teamId",null!==(e=Q(5,14,c.teamId$))&&void 0!==e?e:"")}},I6a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Reporter");G();F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",42);J("emailChange",function(e){z(b);var f=K(2);return A(H6a(f.editIssueService,f.issueId,e))});
P(6,"async");P(7,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);E("thinking",!!Q(4,4,c.isSaving$("reporter")));B(2);E("user",a.reporterUser)("teamId",null!==(d=Q(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!Q(7,8,c.hasAclToEdit$))}},J6a=function(a){a&1&&xe(0)},K6a=function(a){a&1&&(ve(0),M(1,J6a,1,0,"ng-container",33),we());if(a&2){K();var b=Fe(69);B(1);E("ngTemplateOutlet",b)}},L6a=function(a,b){if(a&1){var c=x();F(0,"div",44);H(1,"div",45);F(2,"span",46);J("click",function(){var d=z(c).ngIf,
e=K(3);return A(nt(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;nt(K(3),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;nt(K(3),e);d.stopPropagation();return A(d.preventDefault())});P(3,"async");P(4,"async");O(5);G()()}a&2&&(a=b.ngIf,b=K(3),B(2),pe("disabled",!!Q(3,6,b.isSaving$("status"))),E("matTooltip",a.description||""),ke("aria-disabled",!!Q(4,8,b.isSaving$("status")))("aria-label",a.displayText||null),B(3),Ge(" ",a.displayText," "))},
M6a=function(a){a&1&&(ve(0),M(1,L6a,6,10,"div",43),P(2,"async"),we());a&2&&(a=K(2),B(1),E("ngIf",Q(2,1,a.issueStatusQuickAction$)))},N6a=function(a){a&1&&(H(0,"b-issue-card",47,48),P(2,"async"));if(a&2){var b=Fe(1);a=K(2);E("onedevIsHovercardReady",b.init)("issueId",Q(2,2,a.canonicalIssueId$))}},P6a=function(a){if(a&1){var b=x();F(0,"b-estimated-effort-row",49);J("effortChange",function(e){z(b);var f=K(2);return A(O6a(f.editIssueService,f.issueId,e))});P(1,"async");P(2,"async");P(3,"async");G()}if(a&
2){a=K(2);var c,d;E("effort",null!==(c=Q(1,3,a.effort$))&&void 0!==c?c:void 0)("effortSpec",null!==(d=Q(2,5,a.effortSpec$))&&void 0!==d?d:void 0)("disabled",!Q(3,7,a.hasAclToEdit$))}},R6a=function(a){a&1&&(F(0,"div"),O(1," Expanded access is turned on for this component. Assignees and verifiers can edit issues in this component, and CC'd users can comment on them. "),F(2,"a",55),O(3,"Learn more"),G()());a&2&&(a=K(3),B(2),E("href",Q6a(a.documentationLinks),Qd))},S6a=function(a){a&1&&(F(0,"div",50)(1,
"span",51),O(2,"Expanded Access"),G(),F(3,"xap-bubble",52)(4,"xap-icon-trigger"),H(5,"mat-icon",53),G(),M(6,R6a,4,1,"ng-template",null,54,Mf),G()());if(a&2){var b=Fe(7);B(3);E("panelTemplate",b)}},T6a=function(a){a&1&&(F(0,"span",61),P(1,"async"),O(2),G());if(a&2){a=K().ngIf;var b=K(4);pe("disabled",!!Q(1,3,b.isSaving$("assignee")));B(2);Ge(" ",a.displayText," ")}},U6a=function(a,b){if(a&1){var c=x();F(0,"div",59);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(nt(e,d))})("click",function(){var d=
z(c).ngIf,e=K(4);return A(nt(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;nt(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;nt(K(4),e);d.stopPropagation();return A(d.preventDefault())});P(1,"async");H(2,"div",45);M(3,T6a,3,5,"span",60);P(4,"async");G()}a&2&&(a=b.ngIf,b=K(4),E("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),ke("aria-disabled",!!Q(1,5,b.isSaving$("assignee")))("aria-label",a.description),
B(3),E("ngIf",Q(4,7,b.hasAclToEdit$)))},V6a=function(a){a&1&&(ve(0),M(1,U6a,5,9,"div",58),P(2,"async"),we());a&2&&(a=K(3),B(1),E("ngIf",Q(2,1,a.issueAssigneeQuickAction$)))},X6a=function(a){if(a&1){var b=x();ve(0);F(1,"b-edit-field",56,57);J("onHotkey",function(){z(b);var f=Fe(2);return A(jp(f,null,!0,!1))})("valueChange",function(f){z(b);var h=Fe(2),k=K(2);return A(W6a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();M(6,V6a,3,3,"ng-container",0);we()}if(a&2){a=K().ngIf;
var c=K(),d,e;B(1);E("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("name","assignee")("title","Assignee")("type",c.FieldType.TEXT)("value",a.assignee)("user",null!==(d=a.assigneeUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!Q(3,12,c.hasAclToEdit$))("disabled",!!Q(4,14,c.isSaving$("assignee")))("showAvailability",!0)("teamId",null!==(e=Q(5,16,c.teamId$))&&void 0!==e?e:"");B(5);E("ngIf",c.defaultAssigneeQuickActionEnabled)}},Y6a=function(a){if(a&1){var b=x();F(0,"div",66);J("click",function(){z(b);var c=
K(3);return A(ot(c.editIssueService,c.issueId,""))});O(1," Un-assign ");G()}},Z6a=function(a,b){if(a&1){var c=x();F(0,"div",68);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(nt(e,d))})("click",function(){var d=z(c).ngIf,e=K(4);return A(nt(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;nt(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;nt(K(4),e);d.stopPropagation();return A(d.preventDefault())});P(1,"async");P(2,"async");O(3);G()}a&
2&&(a=b.ngIf,b=K(4),pe("disabled",!!Q(1,7,b.isSaving$("assignee"))),E("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),ke("aria-disabled",!!Q(2,9,b.isSaving$("assignee")))("aria-label",a.description),B(3),Ge(" ",a.displayText," "))},$6a=function(a){a&1&&(ve(0),M(1,Z6a,4,11,"div",67),P(2,"async"),we());a&2&&(a=K(3),B(1),E("ngIf",Q(2,1,a.issueAssigneeQuickAction$)))},a7a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Assignee");G();
F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",62,63);J("onHotkey",function(){z(b);var e=Fe(6);return A(e.openPopOver())})("emailChange",function(e){z(b);var f=K(2);return A(ot(f.editIssueService,f.issueId,e))});P(7,"async");P(8,"async");G();F(9,"div",64);M(10,Y6a,2,0,"div",65);P(11,"async");M(12,$6a,3,3,"ng-container",0);P(13,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);E("thinking",!!Q(4,7,c.isSaving$("assignee")));B(2);E("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("user",a.assigneeUser)("teamId",
null!==(d=Q(7,9,c.teamId$))&&void 0!==d?d:"")("disabled",!Q(8,11,c.hasAclToEdit$));B(5);E("ngIf",a.assigneeUser&&Q(11,13,c.hasAclToEdit$));B(2);E("ngIf",c.defaultAssigneeQuickActionEnabled&&Q(13,15,c.hasAclToEdit$))}},c7a=function(a){if(a&1){var b=x();ve(0);F(1,"b-edit-field",69,70);J("valueChange",function(f){z(b);var h=Fe(2),k=K(2);return A(b7a(k,h,null!==f&&void 0!==f?f:""))});P(3,"async");P(4,"async");P(5,"async");G();we()}if(a&2){a=K().ngIf;var c=K(),d,e;B(1);E("name","verifier")("title","Verifier")("type",
c.FieldType.TEXT)("value",a.verifier)("user",null!==(d=a.verifierUser)&&void 0!==d?d:void 0)("isUser",!0)("readonly",!Q(3,10,c.hasAclToEdit$))("disabled",!!Q(4,12,c.isSaving$("verifier")))("showAvailability",!0)("teamId",null!==(e=Q(5,14,c.teamId$))&&void 0!==e?e:"")}},e7a=function(a){if(a&1){var b=x();F(0,"onedev-edit-field")(1,"onedev-field-label");O(2,"Verifier");G();F(3,"onedev-field-value",41);P(4,"async");F(5,"b-user-picker",42);J("emailChange",function(e){z(b);var f=K(2);return A(d7a(f.editIssueService,
f.issueId,e))});P(6,"async");P(7,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);E("thinking",!!Q(4,4,c.isSaving$("verifier")));B(2);E("user",a.verifierUser)("teamId",null!==(d=Q(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!Q(7,8,c.hasAclToEdit$))}},f7a=function(a){a&1&&(F(0,"span"),O(1," Un-CC me "),G())},g7a=function(a){a&1&&(F(0,"span"),O(1," CC me "),G())},i7a=function(a){if(a&1){var b=x();F(0,"div",71);J("click",function(){z(b);var c=K(2);return A(h7a(c))})("keydown.enter",function(c){z(b);
h7a(K(2));c.stopPropagation();return A(c.preventDefault())})("keydown.space",function(c){z(b);h7a(K(2));c.stopPropagation();return A(c.preventDefault())});P(1,"async");P(2,"async");P(3,"async");P(4,"async");M(5,f7a,2,0,"span",0);P(6,"async");M(7,g7a,2,0,"span",0);P(8,"async");P(9,"async");G()}a&2&&(a=K(2),pe("disabled",!!Q(1,7,a.isSaving$("ccs"))),E("matTooltip",Q(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),ke("aria-disabled",!!Q(2,9,a.isSaving$("ccs")))("aria-label",
Q(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),B(5),E("ngIf",Q(6,15,a.isCurrentUserCCd$)),B(2),E("ngIf",!Q(8,17,a.isCurrentUserCCd$)&&Q(9,19,a.isAllowedToEditCC$)))},j7a=function(a){a&1&&xe(0)},k7a=function(a){a&1&&(ve(0),M(1,j7a,1,0,"ng-container",33),we());if(a&2){K();var b=Fe(71);B(1);E("ngTemplateOutlet",b)}},l7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K(2);E("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",
a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},m7a=function(a,b){a&1&&(ve(0),M(1,l7a,1,6,"b-list-field",20),P(2,"async"),we());a&2&&(a=b.ngIf,b=K(2),B(1),E("ngIf",Q(2,1,b.shouldDisplayWtdmUi$)&&a.length))},n7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K();E("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},p7a=function(a,
b){a&1&&(F(0,"div"),xe(1,73),G());if(a&2){a=b.$implicit;K();var c=Fe(83);B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Le(2,o7a,a))}},q7a=function(a){a&1&&xe(0)},r7a=function(a){a&1&&(ve(0),M(1,q7a,1,0,"ng-container",33),we());if(a&2){K();var b=Fe(81);B(1);E("ngTemplateOutlet",b)}},s7a=function(a){a&1&&H(0,"hr",74)},t7a=function(a){a&1&&xe(0)},u7a=function(a){a&1&&(ve(0),M(1,t7a,1,0,"ng-container",33),we());if(a&2){K(2);var b=Fe(67);B(1);E("ngTemplateOutlet",b)}},v7a=function(a){a&1&&xe(0)},
w7a=function(a){a&1&&(ve(0),M(1,v7a,1,0,"ng-container",33),we());if(a&2){K(2);var b=Fe(69);B(1);E("ngTemplateOutlet",b)}},x7a=function(a){a&1&&xe(0)},y7a=function(a){a&1&&(ve(0),M(1,x7a,1,0,"ng-container",33),we());if(a&2){K(2);var b=Fe(71);B(1);E("ngTemplateOutlet",b)}},z7a=function(a,b){a&1&&(F(0,"div"),xe(1,73),G());if(a&2){a=b.$implicit;K(2);var c=Fe(83);B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Le(2,o7a,a))}},A7a=function(a){a&1&&xe(0)},B7a=function(a){a&1&&(ve(0),M(1,A7a,1,0,"ng-container",
33),we());if(a&2){K(2);var b=Fe(81);B(1);E("ngTemplateOutlet",b)}},C7a=function(a){a&1&&(F(0,"collapsible-panel",75),P(1,"async"),M(2,u7a,2,1,"ng-container",0),P(3,"async"),M(4,w7a,2,1,"ng-container",0),P(5,"async"),M(6,y7a,2,1,"ng-container",0),P(7,"async"),M(8,z7a,2,4,"div",21),P(9,"async"),M(10,B7a,2,1,"ng-container",0),P(11,"async"),G());if(a&2){a=K(2);var b;E("titleWhenCollapsed",null!==(b=Q(1,8,a.showHiddenFieldsLabel$))&&void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");B(2);E("ngIf",
a.showSloStatus&&!Q(3,10,a.isSloStatusPrimary$));B(2);E("ngIf",!Q(5,12,a.isSeverityPrimary$));B(2);E("ngIf",a.showChangelists&&!Q(7,14,a.isChangelistPrimary$));B(2);E("ngForOf",Q(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);B(2);E("ngIf",!Q(11,18,a.isForgottenFourPrimary$))}},E7a=function(a){if(a&1){var b=x();F(0,"b-issue-slo-box",77);J("onSnoozeChange",function(h){z(b);var k=K(3);return A(D7a(k.editIssueService,k.issueId,h))});P(1,"async");P(2,"async");P(3,"async");P(4,"async");
G()}if(a&2){a=K(2).ngIf;var c=K(),d,e,f;E("sloStatus",null!==(d=Q(1,6,c.sloStatus$))&&void 0!==d?d:void 0)("sloSnoozeUntil",a.sloSnoozeUntil)("sloId",null!==(e=Q(2,8,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!Q(3,10,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=Q(4,12,c.createdTimeMicros$))&&void 0!==f?f:0)}},F7a=function(a){a&1&&M(0,E7a,5,14,"ng-template",76);a&2&&(a=K(2),E("refreshable",a.refreshMonitor.getObservable()))},H7a=function(a){if(a&1){var b=x();
F(0,"b-edit-field",78);J("valueChange",function(d){z(b);var e=K(2);return A(G7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"async");P(2,"async");G()}if(a&2){a=K().ngIf;var c=K();E("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",!Q(1,8,c.hasAclToEdit$))("disabled",!!Q(2,10,c.isSaving$("severity")))}},I7a=function(a){if(a&
1){var b=x();F(0,"insights-graph-btn",82);J("pressed",function(){z(b);var c=K(3).issueInsightsSidebarService;io(c.analytics,mo.SIDEBAR,"ingress-click");c.openSidebar("deployments");return A()});G()}},K7a=function(a){if(a&1){var b=x();F(0,"b-list-field",79);J("valuesChange",function(h){z(b);var k=K(2);return A(J7a(k.editIssueService,k.issueId,h.values))});P(1,"async");P(2,"async");F(3,"div",80);M(4,I7a,1,0,"insights-graph-btn",81);P(5,"async");G()();H(6,"b-list-field",72);P(7,"async");P(8,"async");
P(9,"async")}if(a&2){a=K().ngIf;var c=K(),d,e,f;E("readonly",!Q(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!Q(2,17,c.isSaving$("changelists")));B(4);E("ngIf",Q(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));B(2);pe("bv2-issue-metadata-error",null==(d=Q(7,21,c.pendingChangelists$))?null:d.hasError);E("readonly",!0)("defaultLineCount",3)("title","Pending Changelists")("type",
c.ListFieldType.CHANGELISTS)("values",null!==(e=null==(e=Q(8,23,c.pendingChangelists$))?null:e.cls)&&void 0!==e?e:Ke(27,C6a))("tooltip",(null==(f=Q(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},M7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=K(2);return A(L7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");P(3,"async");G()}if(a&2){a=K().ngIf;var c=
K();E("name","foundInVersion")("title","Found In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product affected by this issue (comma-separated list)")("value",Q(1,8,a.foundInVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("foundInVersion")))}},O7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",84);J("valueChange",function(d){z(b);var e=K(2);return A(N7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");
P(3,"async");G()}if(a&2){a=K().ngIf;var c=K();E("name","targetedToVersion")("title","Targeted To")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)")("value",Q(1,8,a.targetedToVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("targetedToVersion")))}},Q7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=K(2);return A(P7a(e.editIssueService,
e.issueId,null!==d&&void 0!==d?d:""))});P(1,"csv");P(2,"async");P(3,"async");G()}if(a&2){a=K().ngIf;var c=K();E("name","verifiedInVersion")("title","Verified In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue fix was verified (comma-separated list)")("value",Q(1,8,a.verifiedInVersion))("readonly",!Q(2,10,c.hasAclToEdit$))("disabled",!!Q(3,12,c.isSaving$("verifiedInVersion")))}},S7a=function(a){if(a&1){var b=x();F(0,"b-edit-field",85);J("valueChange",
function(d){z(b);var e=K(2);return A(R7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:!1))});P(1,"async");P(2,"async");G()}if(a&2){a=K().ngIf;var c=K();E("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!Q(1,7,c.hasAclToEdit$))("disabled",!!Q(2,9,c.isSaving$("inProd")))}},T7a=function(a){a&1&&xe(0)},U7a=function(a){a&1&&xe(0)},V7a=function(a){a&1&&xe(0)},W7a=function(a){a&1&&xe(0)},X7a=function(a){a&
1&&(F(0,"div",4),M(1,T7a,1,0,"ng-container",33),M(2,U7a,1,0,"ng-container",33),M(3,V7a,1,0,"ng-container",33),M(4,W7a,1,0,"ng-container",33),G());if(a&2){K();var b=Fe(73),c=Fe(75),d=Fe(77),e=Fe(79);B(1);E("ngTemplateOutlet",b);B(1);E("ngTemplateOutlet",c);B(1);E("ngTemplateOutlet",d);B(1);E("ngTemplateOutlet",e)}},Z7a=function(a,b){if(a&1){var c=x();F(0,"b-custom-field-editor",86);J("save",function(e){var f=z(c).$implicit,h=K(2);return A(Y7a(h.editIssueService,h.issueId,f.customFieldId,e))});P(1,
"async");P(2,"async");G()}if(a&2){a=b.$implicit;b=K().ngIf;var d=K();E("issue",b)("field",a)("readonly",!Q(1,4,d.hasAclToEdit$))("disabled",!!Q(2,6,d.isSaving$(a.customFieldId)))}},e8a=function(a,b){if(a&1){var c=x();ve(0);M(1,y6a,2,1,"ng-container",0);P(2,"async");M(3,B6a,3,3,"ng-container",0);M(4,E6a,3,3,"ng-container",0);P(5,"async");M(6,G6a,6,16,"ng-container",1);M(7,I6a,8,10,"ng-template",null,2,Mf);F(9,"b-edit-field",3);J("valueChange",function(u){z(c);var y=K();return A($7a(y.editIssueService,
y.issueId,null!==u&&void 0!==u?u:""))});P(10,"async");P(11,"async");G();F(12,"div",4)(13,"b-edit-field",5);J("onHotkey",function(u){z(c);var y=K();(u=a8a("P"+u))&&b8a(y.editIssueService,y.issueId,u);return A()})("valueChange",function(u){z(c);var y=K();return A(b8a(y.editIssueService,y.issueId,null!==u&&void 0!==u?u:""))});P(14,"async");P(15,"async");G();M(16,K6a,2,1,"ng-container",0);P(17,"async");G();F(18,"div",6)(19,"b-edit-field",7);J("valueChange",function(u){z(c);var y=K();return A(c8a(y,null!==
u&&void 0!==u?u:""))});P(20,"async");P(21,"async");P(22,"async");P(23,"async");G();M(24,M6a,3,3,"ng-container",0);P(25,"async");G();F(26,"onedev-hovercard",null,8);M(28,N6a,3,4,"b-issue-card",9);G();M(29,P6a,4,9,"b-estimated-effort-row",10);P(30,"async");P(31,"async");F(32,"div",11);P(33,"async");M(34,S6a,8,1,"div",12);P(35,"async");F(36,"div",13);M(37,X6a,7,18,"ng-container",1);M(38,a7a,14,17,"ng-template",null,14,Mf);G();M(40,c7a,6,16,"ng-container",1);M(41,e7a,8,10,"ng-template",null,15,Mf);F(43,
"b-list-field",16,17);J("valuesChange",function(u){z(c);var y=Fe(44),D=K();return A(d8a(D,y,u.values))});P(45,"async");P(46,"async");P(47,"async");F(48,"div",18);M(49,i7a,10,21,"div",19);P(50,"async");P(51,"async");P(52,"async");G()()();M(53,k7a,2,1,"ng-container",0);P(54,"async");M(55,m7a,3,3,"ng-container",0);P(56,"async");M(57,n7a,1,6,"b-list-field",20);M(58,p7a,2,4,"div",21);P(59,"async");M(60,r7a,2,1,"ng-container",0);P(61,"async");M(62,s7a,1,0,"hr",22);P(63,"async");M(64,C7a,12,20,"collapsible-panel",
23);P(65,"async");M(66,F7a,1,1,"ng-template",null,24,Mf);M(68,H7a,3,12,"ng-template",null,25,Mf);M(70,K7a,10,28,"ng-template",null,26,Mf);M(72,M7a,4,14,"ng-template",null,27,Mf);M(74,O7a,4,14,"ng-template",null,28,Mf);M(76,Q7a,4,14,"ng-template",null,29,Mf);M(78,S7a,3,11,"ng-template",null,30,Mf);M(80,X7a,5,4,"ng-template",null,31,Mf);M(82,Z7a,3,8,"ng-template",null,32,Mf);we()}if(a&2){a=b.ngIf;var d=Fe(8),e=Fe(27),f=Fe(39),h=Fe(42);b=K();var k,q;B(1);E("ngIf",b.showSloStatus&&Q(2,58,b.isSloStatusPrimary$));
B(2);E("ngIf",b.sessionIsInternal);B(1);E("ngIf",Q(5,60,b.teamWarningType$));B(2);E("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);B(3);E("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!Q(10,62,b.hasAclToEdit$))("disabled",!!Q(11,64,b.isSaving$("type")));B(4);E("name","priority")("title","Priority")("type",b.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",a.priority)("choices",b.priorityChoices)("hotkey",
b.HOTKEYS.CHANGE_ISSUE_PRIORITY)("readonly",!Q(14,66,b.hasAclToEdit$))("disabled",!!Q(15,68,b.isSaving$("priority")));B(3);E("ngIf",Q(17,70,b.isSeverityPrimary$));B(3);E("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(k=Q(20,72,b.statusChoices$))&&void 0!==k?k:Ke(114,C6a))("readonly",!Q(21,74,b.hasAclToEdit$))("disabled",!!Q(22,76,b.isSaving$("status")))("onedevHovercardActive",!!Q(23,78,b.canonicalIssueId$))("onedevHovercardTrigger",e);B(5);E("ngIf",
Q(25,80,b.hasAclToEdit$));B(5);E("ngIf",b.sessionIsInternal&&Q(30,82,b.isEffortEnabled$)&&!Q(31,84,b.isWithinExternalComponent$));B(3);pe("implicit-access-box",Q(33,86,b.showImplicitAccessIndicator$));B(2);E("ngIf",Q(35,88,b.showImplicitAccessIndicator$));B(3);E("ngIf",!b.enablePeoplekitAc)("ngIfElse",f);B(3);E("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);B(3);E("defaultLineCount",5)("readonly",!Q(45,90,b.isAllowedToEditCC$))("title","CC")("type",b.ListFieldType.CCS)("isUser",!0)("values",a.cc)("users",
a.ccUsers)("listFieldDisabled",!!Q(46,92,b.isSaving$("ccs")))("teamId",null!==(q=Q(47,94,b.teamId$))&&void 0!==q?q:"");B(6);E("ngIf",Q(50,96,b.isCurrentUserCCd$)||!Q(51,98,b.isCurrentUserCCd$)&&Q(52,100,b.isAllowedToEditCC$));B(4);E("ngIf",b.showChangelists&&Q(54,102,b.isChangelistPrimary$));B(2);E("ngIf",Q(56,104,b.workspaces$));B(2);E("ngIf",!b.sessionIsExternal&&(null==a.postmortems?null:a.postmortems.length));B(1);E("ngForOf",Q(59,106,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);
B(2);E("ngIf",Q(61,108,b.isForgottenFourPrimary$));B(2);E("ngIf",Q(63,110,b.hasHiddenFields$));B(2);E("ngIf",Q(65,112,b.hasHiddenFields$))}},f8a=function(a){a&1&&H(0,"edit-issue-metadata",5);a&2&&(a=K(),E("issueId",a.issueId))},g8a=function(a,b){a&1&&(F(0,"h2",3),O(1),G());a&2&&(a=b.ngIf,B(1),Ge("Issue ",a,""))},h8a=function(a){a&1&&(F(0,"a",15),O(1,"Learn more"),G())},i8a=function(a){if(a&1){var b=x();F(0,"button",16);J("click",function(){var c=z(b).ngIf,d=K(3);return A(d.editIssueService.unarchive(c))});
O(1," Unarchive ");G()}},j8a=function(a){a&1&&(F(0,"b-callout",12)(1,"b-callout-body"),O(2,"This issue has been archived. "),M(3,h8a,2,0,"a",13),G(),F(4,"b-callout-actions"),M(5,i8a,2,0,"button",14),P(6,"async"),G()());a&2&&(a=K(2),E("messageType","caution")("format","app")("iconOverride","archive_24px"),B(3),E("ngIf",a.activeSession.isInternalSession()),B(2),E("ngIf",Q(6,5,a.id$)))},k8a=function(a){a&1&&(F(0,"a",19),O(1,"Learn more"),G())},l8a=function(a){a&1&&(F(0,"b-callout",17)(1,"b-callout-body"),
O(2," This issue is in an archived component. "),M(3,k8a,2,0,"a",18),G()());a&2&&(a=K(2),E("format","app")("iconOverride","archive_24px"),B(3),E("ngIf",a.activeSession.isInternalSession()))},m8a=function(a,b){a&1&&(ve(0),O(1," Reason: "),F(2,"code"),O(3),G(),O(4,". "),we());a&2&&(a=b.$implicit,B(3),He(a))},n8a=function(a){a&1&&(F(0,"a",24),O(1,"Learn more"),G())},p8a=function(a){if(a&1){var b=x();F(0,"button",25);J("click",function(){var d=z(b).ngIf,e=K(3);return A(o8a(e.editIssueService,d))});P(1,
"async");P(2,"async");O(3," Undelete ");G()}if(a&2){a=K(3);var c;E("matTooltip",null!==(c=Q(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!Q(2,4,a.permissions.canUndeleteIssue$))}},q8a=function(a){a&1&&(F(0,"b-callout",20)(1,"b-callout-body"),O(2," This issue has been deleted. "),M(3,m8a,5,1,"ng-container",21),P(4,"async"),M(5,n8a,2,0,"a",22),G(),F(6,"b-callout-actions"),M(7,p8a,4,6,"button",23),P(8,"async"),G()());if(a&2){a=K(2);var b;B(3);E("ngIf",null==(b=Q(4,3,a.snapshot$))?null:
b.deletionReason);B(2);E("ngIf",a.activeSession.isInternalSession());B(2);E("ngIf",Q(8,5,a.id$))}},r8a=function(a,b){a&1&&(F(0,"output",37),O(1),G());a&2&&(a=b.$implicit,B(1),Ge(" ",a," "))},t8a=function(a,b){a&1&&(F(0,"a",34,35),O(2),M(3,r8a,2,1,"output",36),P(4,"async"),G());if(a&2){a=b.$implicit;var c=Fe(1);E("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",Ke(7,s8a));B(2);Ge(" ",a.title," ");B(1);E("ngIf",Q(4,5,a.count$))}},u8a=function(a,b){a&1&&(F(0,"header",26),H(1,"aside",
27),P(2,"async"),P(3,"async"),F(4,"div",28),P(5,"async"),P(6,"async"),P(7,"async"),H(8,"issue-banner",29),F(9,"aside",30)(10,"div",31),H(11,"chip-indicators")(12,"b-pagination-one-issue"),G(),H(13,"issue-actions",29),G()(),F(14,"nav",32),M(15,t8a,5,8,"a",33),G()());a&2&&(a=b.$implicit,b=K(2),B(1),Ee("title","[",Q(2,10,b.prettyStatus$),"] ",Q(3,12,b.title$),""),B(3),pe("overline",b.STATUS_IS_FEATURED[Q(5,14,b.status$)])("color-field",b.STATUS_IS_FEATURED[Q(6,16,b.status$)]),Ce("ngClass","status",Q(7,
18,b.status$),""),B(4),E("issueId",a),B(5),E("issueId",a),B(2),E("ngForOf",b.tabs))},v8a=function(a,b){a&1&&H(0,"issue-metadata-sidebar",29);a&2&&E("issueId",b.ngIf)},w8a=function(a){a&1&&(F(0,"div",4),P(1,"async"),M(2,j8a,7,7,"b-callout",5),P(3,"async"),M(4,l8a,4,3,"b-callout",6),P(5,"async"),M(6,q8a,9,7,"b-callout",7),P(7,"async"),M(8,u8a,16,20,"header",8),P(9,"async"),F(10,"div",9)(11,"article",10),H(12,"router-outlet"),G(),M(13,v8a,1,1,"issue-metadata-sidebar",11),P(14,"async"),G()());a&2&&(a=
K(),pe("issue-editor-false",!Q(1,7,a.permissions.hasAclToEdit$)),B(2),E("ngIf",Q(3,9,a.archived$)),B(2),E("ngIf",Q(5,11,a.inArchivedComponent$)),B(2),E("ngIf",Q(7,13,a.deleted$)),B(2),E("ngIf",Q(9,15,a.id$)),B(5),E("ngIf",Q(14,17,a.id$)))},x8a=function(a){a&1&&(F(0,"div",38),H(1,"b-access-denied-metadata",39),P(2,"async"),G());a&2&&(a=K(),B(1),E("issueMetadata",Q(2,1,a.issueMetadata$)))},y8a=function(a,b){a&1&&(ve(0),H(1,"b-issues-table",1),we());a&2&&(a=b.ngIf,b=K(),B(1),E("issueIds",a)("menuItemFactory",
b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},A8a=function(a){if(a&1){var b=x();F(0,"div",5);H(1,"img",6);F(2,"p",7);O(3," This issue has no duplicates ");G();F(4,"p",8);O(5,' A duplicate is an issue with similar content. Marking an issue as a duplicate closes it and lists it as a duplicate of the original issue (sometimes called the "canonical issue"). ');F(6,"a",9);O(7,"Learn more");G()();F(8,"button",10);J("click",function(){z(b);var c=K(2);return A(z8a(c))});O(9,
" Add ");G()()}a&2&&(a=K(2),B(1),E("src",a.ROBOT_SLEEPING,Qd))},B8a=function(a){a&1&&H(0,"b-duplicates-table",15);if(a&2){a=K(2).$implicit;var b=K();E("issueId",b.lastKnownId)("duplicateIds",a)}},C8a=function(a,b){a&1&&(ve(0),F(1,"a",16),O(2," View as search results "),G(),we());a&2&&(a=b.ngIf,B(1),E("routerLink",a.path)("queryParams",a.params))},D8a=function(a){if(a&1){var b=x();F(0,"h4",11);O(1,"Duplicates ");F(2,"button",12);J("click",function(){z(b);var c=K(2);return A(z8a(c))});O(3," Add ");
G()();M(4,B8a,1,2,"b-duplicates-table",13);F(5,"aside",14);M(6,C8a,3,2,"ng-container",1);P(7,"async");G()}a&2&&(a=K(2),B(4),E("ngIf",a.lastKnownId),B(2),E("ngIf",Q(7,2,a.dupeUrl$)))},E8a=function(a,b){a&1&&(ve(0),M(1,A8a,10,1,"div",3),M(2,D8a,8,4,"ng-template",null,4,Mf),we());if(a&2){a=b.$implicit;var c=Fe(3);B(1);E("ngIf",0===a.length)("ngIfElse",c)}},F8a=function(a){a&1&&(F(0,"aside",17),H(1,"b-spinner"),G())},G8a=function(a){a&1&&(ve(0),H(1,"mat-icon",4),O(2,"Oldest first"),we())},H8a=function(a){a&
1&&(ve(0),H(1,"mat-icon",5),O(2,"Newest first"),we())},I8a=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:return ph(a,"Unexpected retention model")}},J8a=function(a){var b=a.hasRetentionPeriod()?{seconds:a.getRetentionPeriod().getSeconds(),nanos:a.getRetentionPeriod().getNanos()}:null;a=a.hasScheduledDeletionTime()?{seconds:a.getScheduledDeletionTime().getSeconds(),nanos:a.getScheduledDeletionTime().getNanos()}:null;return{retentionPeriod:b,
scheduledDeletionTime:a}},K8a=function(a){a&1&&H(0,"b-restricted-chip",10);a&2&&(a=K(),E("label",a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},L8a=function(a){a&1&&(F(0,"span",11),H(1,"b-actions-menu",12),G());a&2&&(a=K(),B(1),E("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},O8a=function(a){if(a&1){var b=x();F(0,"span")(1,"b-conditional-link",13);J("customHandler",
function(){z(b);var c=K();c.isRestricted()?M8a(c,!1):c.domSafe.openInNewTab(pt(c,!1));return A()});G()()}a&2&&(a=K(),ue("bv2-issue-attachment-link ",N8a(a),""),B(1),E("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",pt(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},P8a=function(a){if(a&1){var b=x();F(0,"span")(1,"b-conditional-link",13);J("customHandler",function(){z(b);var c=K();c.isRestricted()?M8a(c,!0):c.domSafe.openInNewTab(pt(c,!0));return A()});G()()}a&2&&(a=K(),ue("bv2-issue-attachment-link ",
N8a(a),""),B(1),E("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",pt(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},Q8a=function(a){a&1&&(F(0,"span",14)(1,"a",15),H(2,"mat-icon",16),G()());a&2&&(a=K(),B(1),E("href",a.documentationLinks.getRestrictedAccessHelpLink(),Qd)("disableRipple",!0),B(1),E("svgIcon","help-outline"))},R8a=function(a){a&1&&(F(0,"div",17),O(1," You do not have access to this restricted attachment. "),F(2,"a",18),O(3,"Learn more"),G()());a&2&&(a=K(),B(2),
E("href",a.documentationLinks.getRestrictedAccessHelpLink(),Qd))},T8a=function(a){if(a&1){var b=x();F(0,"button",18,19);J("click",function(){z(b);var c=K(2);return A(S8a(c))});H(2,"mat-icon",20);G()}},U8a=function(a){a&1&&(ve(0),O(1," on behalf of "),H(2,"b-user-display",6),P(3,"async"),F(4,"onedev-hovercard",null,21),H(6,"b-issue-person-card",8),P(7,"async"),G(),we());if(a&2){var b=Fe(5);a=K(2);B(2);E("onedevHovercardTrigger",b)("model",Q(3,3,a.reporterUser$));B(4);E("email",Q(7,5,a.reporterUserEmailAddress$))}},
V8a=function(a,b){if(a&1){var c=x();F(0,"a",22);J("click",function(d){var e=z(c).$implicit;K(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return A()});O(1);G()}a&2&&(a=b.$implicit,b=K().$implicit,K(),E("routerLinkObj",qn(a,{comment:1})),ke("aria-label","Comment number"+b.commentNumber),B(1),Ge(" #",b.commentNumber,""))},X8a=function(a){a&1&&(ve(0),F(1,"span",23),O(2," \u2022 Edited"),G(),we());if(a&2){a=K().$implicit;var b=K();B(1);E("matTooltip",W8a(b,a))}},Y8a=function(a){a&
1&&(ve(0),F(1,"p",24),O(2," Comment has been deleted. "),G(),we())},Z8a=function(a){if(a&1){var b=x();F(0,"b-restricted-comment-placeholder",27);J("onConfirm",function(){z(b);var c=K().ngIf,d=K(3).$implicit,e=K();return A(e.loadRestrictedComment(c,d))});P(1,"async");G()}a&2&&(a=K(5),E("disabled",!Q(1,1,a.mayReadPii$)))},$8a=function(a){a&1&&(ve(0),M(1,Z8a,2,3,"b-restricted-comment-placeholder",26),P(2,"async"),we());a&2&&(a=K(4),B(1),E("ngIf",Q(2,1,a.shouldShowRestrictedPlaceholder$)))},a9a=function(a){a&
1&&(ve(0),M(1,$8a,3,3,"ng-container",9),P(2,"async"),we());a&2&&(a=K(3),B(1),E("ngIf",Q(2,1,a.id$)))},b9a=function(a,b){a&1&&(H(0,"b-note-container",30),P(1,"async"),P(2,"async"));if(a&2){a=b.$implicit;b=K(4);var c;E("issueId",null!==(c=Q(1,4,b.idAsNumber$))&&void 0!==c?c:0)("issueAccessLevel",Q(2,6,b.accessLevel$))("note",a)("formattingMode",b.formattingMode)}},c9a=function(a){if(a&1){var b=x();F(0,"div",31)(1,"div",32);O(2,"This issue has no description, click the update button to add one.");G();
F(3,"button",33);J("click",function(){z(b);var c=K(4);return A(S8a(c))});H(4,"mat-icon",34);O(5,"Update");G()()}},d9a=function(a){a&1&&(M(0,b9a,3,8,"b-note-container",28),P(1,"async"),M(2,c9a,6,0,"div",29));if(a&2){a=K(2).$implicit;var b=K();E("ngIf",""!==a.unlinkifiedComment&&Q(1,2,b.firstNote$));B(2);E("ngIf",""===a.unlinkifiedComment)}},e9a=function(a){a&1&&(M(0,a9a,3,3,"ng-container",15),P(1,"async"),M(2,d9a,3,4,"ng-template",null,25,Mf));if(a&2){var b=Fe(3);a=K(2);E("ngIf",Q(1,2,a.isRedacted$))("ngIfElse",
b)}},f9a=function(a,b){a&1&&(F(0,"div",37),H(1,"b-attachment-viewer",38),P(2,"async"),G());if(a&2){a=b.$implicit;b=K(3);var c;Ce("id","attachment",a.attachmentId,"");B(1);E("issueId",null!==(c=Q(2,4,b.idAsNumber$))&&void 0!==c?c:0)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable())}},g9a=function(a){a&1&&(F(0,"div",35),M(1,f9a,3,6,"div",36),G());a&2&&(a=K().$implicit,B(1),E("ngForOf",a.attachments))},i9a=function(a,b){a&1&&(F(0,"div",1)(1,"h4",2)(2,"div",3)(3,"span",4),O(4,"Description"),
G(),M(5,T8a,3,0,"button",5),H(6,"b-user-display",6),F(7,"onedev-hovercard",null,7),H(9,"b-issue-person-card",8),G(),O(10," created issue "),M(11,U8a,8,7,"ng-container",9),P(12,"async"),P(13,"async"),M(14,V8a,2,3,"a",10),P(15,"async"),M(16,X8a,3,1,"ng-container",9),P(17,"async"),G(),F(18,"div",11),H(19,"b-formatted-date-time",12)(20,"b-actions-menu",13,14),P(22,"async"),G()(),M(23,Y8a,3,0,"ng-container",15),P(24,"async"),M(25,e9a,4,4,"ng-template",null,16,Mf),M(27,g9a,2,1,"div",17),G());if(a&2){a=
b.$implicit;var c=Fe(8),d=Fe(26);b=K();var e;B(5);E("ngIf",b.canEditComment());B(1);E("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);B(3);E("email",b.getUserEmailIfAvailable());B(2);E("ngIf",Q(12,13,b.reporterUser$)&&Q(13,15,b.isAuthorNotReporter$));B(3);E("ngIf",a.commentNumber&&Q(15,17,b.idAsNumber$));B(2);E("ngIf",Q(17,19,b.isShowCommentHistoryActionInMenu$));B(3);E("timestamp",a.modifiedDate);B(1);E("buttonLabel","Description actions")("menuItems",null!==(e=Q(22,21,b.commentActionMenuItems$))&&
void 0!==e?e:Ke(25,h9a));B(3);E("ngIf",Q(24,23,b.isDeleted$))("ngIfElse",d);B(4);E("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},j9a=function(a){a&1&&H(0,"mat-icon",3)},k9a=function(a){a&1&&H(0,"b-spinner")},l9a=function(a){a&1&&xe(0)},m9a=function(a){a&1&&(ve(0),M(1,l9a,1,0,"ng-container",7),we());if(a&2){K();var b=Fe(14);B(1);E("ngTemplateOutlet",b)}},n9a=function(a){a&1&&xe(0)},o9a=function(a){a&1&&(ve(0),M(1,n9a,1,0,"ng-container",7),we());if(a&2){K();var b=Fe(6);B(1);E("ngTemplateOutlet",
b)}},r9a=function(a){if(a&1){var b=x();F(0,"button",8);J("click",function(){z(b);var c=K();return A(p9a(c))});O(1," Create ");G()}a&2&&(a=K(),E("disabled",!(0<q9a(a).length)))},s9a=function(a){if(a&1){var b=x();F(0,"button",9);J("click",function(){z(b);var c=K();return A(qt(c))});O(1);G()}a&2&&(a=K(),E("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),ke("aria-label",a.saveBtnTooltip),B(1),Ge(" ",a.saveBtnLabel," "))},u9a=function(a,b){if(a&1){var c=x();ve(0);F(1,"div",
26,27);P(3,"async");F(4,"mat-list-option",28);J("focus",function(){z(c);var h=Fe(2);return A(h.show())})("blur",function(){z(c);var h=Fe(2);return A(h.hide())});P(5,"async");xe(6,29);G()();we()}if(a&2){a=b.$implicit;b=K(5);var d=Fe(12),e,f;B(1);E("matTooltip",!1===(null==(e=Q(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:"");B(3);oe("height",b.compactHotlistItemHeight,"px");E("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=Q(5,10,a.permissions$))?null:f.appender))("value",
a.hotlistId);B(2);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Le(12,t9a,a))}},v9a=function(a,b){a&1&&(ve(0),F(1,"div",24),P(2,"async"),M(3,u9a,7,14,"ng-container",25),G(),we());a&2&&(a=b.$implicit,b=K(4),B(1),oe("overflow","auto")("height",Q(2,6,b.hotlistViewportContainerHeight$),"px"),B(2),E("ngForOf",a)("ngForTrackBy",b.trackByHotlistId))},w9a=function(a){a&1&&(ve(0),M(1,v9a,4,8,"ng-container",19),P(2,"async"),P(3,"stagedHotlistSlice"),we());a&2&&(a=K().$implicit,B(1),E("ngIf",Q(2,1,Q(3,3,
a))))},y9a=function(a,b){if(a&1){var c=x();ve(0);F(1,"div",26,27);P(3,"async");F(4,"mat-list-option",28);J("focus",function(){z(c);var h=Fe(2);return A(h.show())})("blur",function(){z(c);var h=Fe(2);return A(h.hide())});P(5,"async");xe(6,29);G()();we()}if(a&2){a=b.$implicit;b=K(4);var d=Fe(12),e,f;B(1);E("matTooltip",!1===(null==(e=Q(3,8,a.permissions$))?null:e.appender)?b.NO_ACCESS_MESSAGE:"");B(3);oe("height","auto");E("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(f=
Q(5,10,a.permissions$))?null:f.appender))("value",a.hotlistId);B(2);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Le(12,x9a,a))}},z9a=function(a){a&1&&M(0,y9a,7,14,"ng-container",25);if(a&2){a=K().$implicit;var b=K(2);E("ngForOf",a)("ngForTrackBy",b.trackByHotlistId)}},A9a=function(a){a&1&&(ve(0),M(1,w9a,4,5,"ng-container",0),P(2,"async"),M(3,z9a,1,2,"ng-template",null,23,Mf),we());if(a&2){var b=Fe(4);a=K(2);B(1);E("ngIf",Q(2,2,a.isCompactMode$))("ngIfElse",b)}},B9a=function(a){a&1&&(F(0,"div",
30),O(1," (The number of hotlists is large: presenting in compact form.) "),G())},D9a=function(a){if(a&1){var b=x();F(0,"button",31);J("click",function(){z(b);var c=K(2),d=Oi(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),qt(c)):C9a(c,d);return A()});O(1);P(2,"async");F(3,"span",32);O(4,"(add hotlist by ID)");G()()}a&2&&(a=K(2),B(1),Ge(" ",Q(2,1,a.query$)," "))},E9a=function(a){if(a&1){var b=x();F(0,"button",33);J("click",function(){z(b);K(2).showCreateNewPane=!0;return A()});
O(1);P(2,"async");F(3,"span",32);O(4,"(create new)");G()()}a&2&&(a=K(2),B(1),Ge(" ",Q(2,1,a.query$)," "))},G9a=function(a){if(a&1){var b=x();F(0,"header",10)(1,"h2");O(2,"Search for Hotlists");G();F(3,"div",11);H(4,"mat-icon",12);F(5,"input",13,14);J("input",function(){z(b);var c=Fe(6);K().query$.next(c.value);return A()});G()()();F(7,"section",15,16)(9,"mat-selection-list",17,18);J("selectionChange",function(c){z(b);var d=K();return A(F9a(d,c))});M(11,A9a,5,4,"ng-container",19);P(12,"async");G();
M(13,B9a,2,0,"div",20);P(14,"async");M(15,D9a,5,3,"button",21);P(16,"async");M(17,E9a,5,3,"button",22);P(18,"async");G()}a&2&&(a=K(),B(11),E("ngIf",Q(12,4,a.visibleHotlists$)),B(2),E("ngIf",Q(14,6,a.isCompactMode$)),B(2),E("ngIf",Q(16,8,a.showLoadById$)),B(2),E("ngIf",Q(18,10,a.showCreateNew$)))},H9a=function(a){if(a&1){var b=x();F(0,"b-star-toggle",41);J("starClicked",function(){z(b);var d=K(2).hotlist,e=K();return A(e.toggleStar(d.hotlistId))});P(1,"async");P(2,"async");G()}if(a&2){a=K(2).hotlist;
var c=K();E("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!Q(1,4,Us(c.isSavingStar,a.hotlistId)))("starred",Q(2,6,Us(c.starredHotlists,a.hotlistId)))}},I9a=function(a){a&1&&(F(0,"p",42),O(1),G());a&2&&(a=K(2).hotlist,B(1),Ge(" ",a.description," "))},J9a=function(a){a&1&&(ve(0),F(1,"div",34)(2,"label",35),O(3),G(),F(4,"span",36),M(5,H9a,3,8,"b-star-toggle",37),F(6,"a",38),J("click",function(d){return d.stopPropagation()})("keydown.enter",function(d){return d.stopPropagation()}),
H(7,"mat-icon",39),G()()(),M(8,I9a,2,1,"p",40),we());if(a&2){var b=K();a=b.hotlist;b=b.isCompact;var c=K();B(3);Ge(" ",a.name," ");B(2);E("ngIf",c.shouldShowStar(a));B(1);E("routerLink",c.paths.viewHotlist(a.hotlistId));B(2);E("ngIf",!b&&a.description)}},K9a=function(a){a&1&&M(0,J9a,9,4,"ng-container",19);a&2&&(K(),E("ngIf",!0))},L9a=function(a){a&1&&(F(0,"header",10)(1,"h2"),O(2,"Create new hotlist"),G()(),F(3,"section",43)(4,"div",44)(5,"form",45)(6,"label",46),O(7,"Name"),G(),H(8,"input",47),F(9,
"label",48),O(10,"Description"),G(),H(11,"textarea",49),F(12,"p",32),O(13," Note: Access controls can be adjusted after the hotlist is created. "),G()()()());a&2&&(a=K(),B(5),E("formGroup",a.hotlistUnderEdit))},M9a=function(a,b){return a.name.localeCompare(b.name)},N9a=function(a,b){if(null==a||""===a.trim())return!1;b=b.map(function(c){var d;return null==(d=c.name)?void 0:d.toLowerCase()});a=a.toLowerCase();return!b.includes(a)},O9a=function(a){var b,c=null!=(b=null==a?void 0:a.added.length)?b:0,
d;b=null!=(d=null==a?void 0:a.removed.length)?d:0;return a?0<c&&0===b?["Add ("+c+")","Add "+c+" hotlist(s)"]:0===c&&0<b?["Remove ("+b+")","Remove "+b+" hotlist(s)"]:["Save","Save all changes ("+c+" added, "+b+" removed)"]:["Save","(No changes)"]},P9a=function(a,b){a&1&&(F(0,"span",11),O(1," of "),F(2,"a",12),O(3),G()());if(a&2){a=b.$implicit;K(2);var c=Fe(13);B(2);Ce("routerLink","/issues/",a,"");E("onedevHovercardTrigger",c);B(1);Ge(" ",a," ")}},Q9a=function(a,b){a&1&&(F(0,"div")(1,"div",9),O(2),
G(),M(3,P9a,4,3,"span",10),P(4,"async"),G());a&2&&(a=b.$implicit,b=K(),B(1),ue("b-chip xs squared status status",a,""),E("title",b.STATUS_FULL_TEXT[a]),B(1),Ge(" ",b.STATUS_TERSE[a]," "),B(1),E("ngIf",Q(4,6,b.canonicalId$)))},R9a=function(a,b){a&1&&(F(0,"span"),O(1),G());a&2&&(a=b.$implicit,b=K(),ue("b-chip squared issue-type-",a,""),B(1),Ge(" ",b.ISSUE_TYPE_TEXT.get(a)," "))},T9a=function(a,b){if(a&1){var c=x();F(0,"b-hotlist-chip-smart",17);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);
return A(S9a(e,d))});G()}a&2&&E("id",b.$implicit)},V9a=function(a,b){if(a&1){var c=x();F(0,"div",13)(1,"button",14);J("onHotkey",function(){z(c);var d=K();return A(U9a(d))})("click",function(){z(c);var d=K();return A(U9a(d))});H(2,"mat-icon",15);O(3);P(4,"async");G();M(5,T9a,1,1,"b-hotlist-chip-smart",16);G()}a&2&&(a=b.$implicit,b=K(),B(1),E("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),B(2),Ge(" ",Q(4,3,b.textOfHotlistBtn$)," "),B(2),E("ngForOf",a))},W9a=function(a){a&1&&(H(0,"b-issue-card",18,19),P(2,
"async"));if(a&2){var b=Fe(1);a=K();E("onedevIsHovercardReady",b.init)("issueId",Q(2,2,a.canonicalId$))}},X9a=function(a){return null==a?void 0:a.snapshot[0].hotlistId},Y9a=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K(2),B(1),Ge(" by ",Ql(a.event.lastCommentEditorUser),""))},Z9a=function(a){a&1&&(ve(0)(1),O(2,"Message last modified"),we(),M(3,Y9a,2,1,"ng-container",0),ve(4),O(5," on "),H(6,"b-formatted-date-time",1),we()());a&2&&(a=K(),B(3),E("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),
B(3),E("timestamp",a.event.commentLastModifiedAtDate))},$9a=function(a){a&1&&H(0,"b-user-email",5);a&2&&(a=K().$implicit,E("email",a.text)("withProfile",!0))},a$a=function(a){a&1&&(F(0,"b-issue-reference-widget",6),ve(1),O(2),we(),G());if(a&2){a=K().$implicit;var b=K();E("href",nn(a.text))("issueId",b.getIssueId(a));B(2);He(a.text)}},b$a=function(a){a&1&&(ve(0),O(1),we());a&2&&(a=K().$implicit,B(1),He(a.text))},c$a=function(a,b){a&1&&(ve(0)(1,1),M(2,$9a,1,2,"b-user-email",2),M(3,a$a,3,3,"b-issue-reference-widget",
3),M(4,b$a,2,1,"ng-container",4),we()());a&2&&(a=b.$implicit,B(1),E("ngSwitch",a.tag),B(1),E("ngSwitchCase","user"),B(1),E("ngSwitchCase","bug"))},d$a=function(a){a&1&&(ve(0),H(1,"b-component-card",3,4),we());if(a&2){var b=Fe(2);a=K();B(1);E("onedevIsHovercardReady",b.init)("componentId",a.id)}},e$a=function(a){a&1&&(F(0,"span"),O(1),G());if(a&2){a=K(5);var b;B(1);He(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},f$a=function(a){a&1&&(F(0,"label"),M(1,e$a,2,1,"span",9),O(2,":\u200b "),
G());if(a&2){a=K(4);var b=Fe(5);B(1);E("ngIf",a.effortEnabled)("ngIfElse",b)}},g$a=function(a){a&1&&(F(0,"label"),O(1),G());a&2&&(a=K(3).$implicit,B(1),Ge("",a.displayName,":\u200b"))},h$a=function(a){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),G());a&2&&(a=K().$implicit,B(1),E("email",a)("showEmail",!0))},i$a=function(a){a&1&&(ve(0),H(1,"plain-component-path",13),we());a&2&&(a=K(4).$implicit,B(1),E("id",a.oldValue))},j$a=function(a){a&1&&H(0,"b-formatted-date-time",15);if(a&2){a=K(2).$implicit;
var b=K(4);E("timestamp",1E3*b.asNumber(a))}},k$a=function(a){a&1&&(F(0,"span"),O(1,"[Issue creation date]"),G())},l$a=function(a){a&1&&(F(0,"span"),M(1,j$a,1,1,"b-formatted-date-time",14),M(2,k$a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),E("ngIf","<none>"!==a),B(1),E("ngIf","<none>"===a))},m$a=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),He(a))},n$a=function(a){a&1&&(ve(0),M(1,h$a,2,2,"span",5),M(2,i$a,2,1,"ng-container",5),M(3,l$a,3,2,"span",5),M(4,m$a,2,1,"span",5),O(5,
" \u00a0 "),H(6,"span",11),O(7," \u00a0 "),we());a&2&&(a=K(3).$implicit,B(1),E("ngIf",a.isUser),B(1),E("ngIf","component"===a.name),B(1),E("ngIf","sloSnoozeUntil"==a.name),B(1),E("ngIf",!a.isUser&&"component"!==a.name&&"sloSnoozeUntil"!==a.name))},o$a=function(a){a&1&&H(0,"b-user-display-name",12);a&2&&(a=K().$implicit,E("email",a)("showEmail",!0))},p$a=function(a){a&1&&(F(0,"span"),H(1,"plain-component-path",13),G());a&2&&(a=K(4).$implicit,B(1),E("id",a.newValue))},q$a=function(a){a&1&&H(0,"b-formatted-date-time",
15);if(a&2){a=K(2).$implicit;var b=K(4);E("timestamp",1E3*b.asNumber(a))}},r$a=function(a){a&1&&(F(0,"span"),O(1,"[Issue creation date]"),G())},s$a=function(a){a&1&&(F(0,"span"),M(1,q$a,1,1,"b-formatted-date-time",14),M(2,r$a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),E("ngIf","<none>"!==a),B(1),E("ngIf","<none>"===a))},u$a=function(a){a&1&&(F(0,"span",18),O(1),G());if(a&2){a=K().$implicit;var b=K(3).$implicit;E("ngClass",Le(2,t$a,b.oldValue&&"title"==b.name));B(1);He(a)}},v$a=function(a){a&1&&
(ve(0),M(1,o$a,1,2,"b-user-display-name",16),M(2,p$a,2,1,"span",5),M(3,s$a,3,2,"span",5),M(4,u$a,2,4,"span",17),we());a&2&&(a=K(3).$implicit,B(1),E("ngIf",a.isUser),B(1),E("ngIf","component"===a.name),B(1),E("ngIf","sloSnoozeUntil"===a.name),B(1),E("ngIf",!a.isUser&&"component"!=a.name&&"sloSnoozeUntil"!=a.name))},w$a=function(a){a&1&&(F(0,"div",8),M(1,f$a,3,2,"label",9),M(2,g$a,2,1,"ng-template",null,10,Mf),M(4,n$a,8,4,"ng-container",5),M(5,v$a,5,4,"ng-container",5),G());if(a&2){var b=Fe(3);a=K(2).$implicit;
B(1);E("ngIf","effort"===a.name)("ngIfElse",b);B(3);E("ngIf",a.oldValue);B(1);E("ngIf",a.newValue)}},x$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},y$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),M(2,x$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),E("email",a)("showEmail",!0),B(1),E("ngIf",!b))},z$a=function(a){a&1&&(F(0,"span"),M(1,y$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),E("ngForOf",a.added))},A$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},B$a=function(a,
b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,A$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),He(a),B(1),E("ngIf",!b))},C$a=function(a){a&1&&(F(0,"span"),M(1,B$a,4,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),E("ngForOf",a.added))},D$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,z$a,2,1,"span",5),M(4,C$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),Ge("+",a.displayName,":\u200b"),B(1),E("ngIf",a.isUser),B(1),E("ngIf",!a.isUser))},E$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},
F$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),M(2,E$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),E("email",a)("showEmail",!0),B(1),E("ngIf",!b))},G$a=function(a){a&1&&(F(0,"span"),M(1,F$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),E("ngForOf",a.removed))},H$a=function(a){a&1&&(F(0,"span"),O(1,", "),G())},I$a=function(a,b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,H$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),He(a),B(1),E("ngIf",!b))},J$a=function(a){a&
1&&(F(0,"span"),M(1,I$a,4,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),E("ngForOf",a.removed))},K$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,G$a,2,1,"span",5),M(4,J$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),Ge("-",a.displayName,":\u200b"),B(1),E("ngIf",a.isUser),B(1),E("ngIf",!a.isUser))},L$a=function(a){a&1&&(F(0,"div",8),M(1,D$a,5,3,"div",5),M(2,K$a,5,3,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);E("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));B(1);E("ngIf",
a.removed&&a.removed.length&&b.isStringArray(a.removed))}},M$a=function(a){a&1&&xe(0)},O$a=function(a,b){a&1&&(F(0,"span"),M(1,M$a,1,0,"ng-container",20),G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=Fe(3);B(1);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Ne(N$a,c,a,b))}},P$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,O$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),Ge("+",a.displayName,":\u200b"),B(1),E("ngForOf",a.added))},Q$a=function(a){a&1&&xe(0)},R$a=function(a,
b){a&1&&(F(0,"span"),M(1,Q$a,1,0,"ng-container",20),G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=Fe(3);B(1);E("ngTemplateOutlet",d)("ngTemplateOutletContext",Ne(N$a,c,a,b))}},S$a=function(a){a&1&&(F(0,"div")(1,"label"),O(2),G(),M(3,R$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),Ge("-",a.displayName,":\u200b"),B(1),E("ngForOf",a.removed))},T$a=function(a){a&1&&(F(0,"div",8),M(1,P$a,4,2,"div",5),M(2,S$a,4,2,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);E("ngIf",a.added&&
a.added.length&&b.isLinkedItemArray(a.added));B(1);E("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},U$a=function(a){a&1&&H(0,"b-formatted-date-time",15);a&2&&(a=K().$implicit,E("timestamp",a))},V$a=function(a){a&1&&(F(0,"span"),O(1," - "),G())},W$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",15),M(2,V$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),E("timestamp",a),B(1),E("ngIf",!b))},X$a=function(a){a&1&&(F(0,"span"),M(1,W$a,3,2,"span",19),G());a&2&&
(a=K(4).$implicit,B(1),E("ngForOf",a.oldValue.split(", ")))},Y$a=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),He(a))},Z$a=function(a){a&1&&(ve(0),M(1,U$a,1,1,"b-formatted-date-time",14),M(2,X$a,2,1,"span",5),M(3,Y$a,2,1,"span",5),O(4," \u00a0 "),H(5,"span",11),O(6," \u00a0 "),we());if(a&2){a=K(3).$implicit;var b=K();B(1);E("ngIf",rt(b,a,"oldValue"));B(1);E("ngIf",st(b,a,"oldValue"));B(1);E("ngIf",!rt(b,a,"oldValue")&&!st(b,a,"oldValue"))}},$$a=function(a){a&1&&H(0,"b-formatted-date-time",
15);a&2&&(a=K().$implicit,E("timestamp",a))},aab=function(a){a&1&&(F(0,"span"),O(1," - "),G())},bab=function(a,b){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",15),M(2,aab,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),E("timestamp",a),B(1),E("ngIf",!b))},cab=function(a){a&1&&(F(0,"span"),M(1,bab,3,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),E("ngForOf",a.newValue.split(", ")))},dab=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K().$implicit,B(1),He(a))},eab=function(a){a&1&&(ve(0),M(1,
$$a,1,1,"b-formatted-date-time",14),M(2,cab,2,1,"span",5),M(3,dab,2,1,"span",5),we());if(a&2){a=K(3).$implicit;var b=K();B(1);E("ngIf",rt(b,a,"newValue"));B(1);E("ngIf",st(b,a,"newValue"));B(1);E("ngIf",!rt(b,a,"newValue")&&!st(b,a,"newValue"))}},fab=function(a){a&1&&(F(0,"div",8)(1,"label"),O(2),G(),M(3,Z$a,7,3,"ng-container",5),M(4,eab,4,3,"ng-container",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);ke("title",b.customFieldName(a));B(1);Ge("",b.customFieldName(a),":\u200b");B(1);E("ngIf",a.oldValue);
B(1);E("ngIf",a.newValue)}},gab=function(a){a&1&&(ve(0),H(1,"b-formatted-date-time",6),M(2,w$a,6,4,"div",7),M(3,L$a,3,2,"div",7),M(4,T$a,3,2,"div",7),M(5,fab,5,4,"div",7),we());a&2&&(a=K().$implicit,B(1),E("timestamp",a.timestamp),B(1),E("ngIf","SINGLE_VALUE"===a.type),B(1),E("ngIf","COLLECTION"===a.type||"USER_COLLECTION"===a.type),B(1),E("ngIf","LINKED_COLLECTION"===a.type),B(1),E("ngIf","CUSTOM_FIELD"===a.type))},hab=function(a,b){a&1&&(F(0,"div",4),M(1,gab,6,5,"ng-container",5),G());a&2&&(a=b.$implicit,
b=K(),B(1),E("ngIf","sloSnoozeUntil"===(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},iab=function(a){a&1&&H(0,"b-issue-card",25,26);if(a&2){var b=Fe(1);a=K(2).$implicit;var c=K(2);E("onedevIsHovercardReady",b.init)("issueId",c.asNumber(a))}},jab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},kab=function(a){a&1&&(F(0,"span")(1,"onedev-hovercard",null,22),M(3,iab,2,2,"b-issue-card",23),G(),F(4,"b-issue-reference-widget",24),O(5),G(),M(6,jab,2,0,"span",5),G());if(a&2){var b=Fe(2);
a=K().$implicit;var c=K(),d=c.change;c=c.isLast;var e=K();B(4);E("href",d.href)("onedevHovercardTrigger",b)("issueId",e.asNumber(a));B(1);He(a);B(1);E("ngIf",!c)}},lab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},mab=function(a){a&1&&(ve(0),H(1,"hotlist-link",13),M(2,lab,2,0,"span",5),we());if(a&2){a=K(2).$implicit;var b=K().isLast;B(1);E("id",a);B(1);E("ngIf",!b)}},nab=function(a){a&1&&(F(0,"span"),O(1,", "),G())},oab=function(a){a&1&&(F(0,"a",28),O(1),G(),M(2,nab,2,0,"span",5));if(a&2){a=K(2).$implicit;
var b=K(),c=b.isLast;E("href",b.change.href,Qd);B(1);He(a);B(1);E("ngIf",!c)}},pab=function(a){a&1&&(M(0,mab,3,2,"ng-container",9),M(1,oab,3,3,"ng-template",null,27,Mf));if(a&2){var b=Fe(2);a=K(2).diff;var c=K();E("ngIf",c.isHotlistDiff(a))("ngIfElse",b)}},qab=function(a){a&1&&(ve(0),M(1,kab,7,5,"span",9),M(2,pab,3,2,"ng-template",null,21,Mf),we());if(a&2){var b=Fe(3);a=K().diff;var c=K();B(1);E("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},rab=function(a,b){a&1&&M(0,qab,4,2,"ng-container",5);a&2&&E("ngIf",
b.change.value)},sab=function(a){a&1&&(F(0,"span"),O(1,"Estimated Effort (disabled)"),G())},tab=function(a,b){a&1&&(H(0,"b-user-membership-chip",24),P(1,"async"));if(a&2){a=b.ngIf;b=K(2);var c;E("user",b.event.userPerformingActionUser)("email",a)("teamId",null!==(c=Q(1,3,b.teamId$))&&void 0!==c?c:"")}},uab=function(a){a&1&&H(0,"b-user-display",25);a&2&&(a=K(2),E("model",a.event.userPerformingActionUser))},vab=function(a){a&1&&xe(0)},wab=function(a){a&1&&(ve(0),F(1,"span",26),M(2,vab,1,0,"ng-container",
27),G(),F(3,"onedev-hovercard",null,28),H(5,"b-issue-person-card",29),G(),we());if(a&2){var b=Fe(4);K();var c=Fe(11);a=K();B(1);E("onedevHovercardTrigger",b);B(1);E("ngTemplateOutlet",c);B(3);E("email",a.getUserEmailIfAvailable())}},xab=function(a){a&1&&(F(0,"span",30),O(1),G());a&2&&(a=K(2),B(1),Ge(" <",Ql(a.event.userPerformingActionUser),"> "))},yab=function(a){if(a&1){var b=x();F(0,"span")(1,"a",31);J("click",function(c){z(b);var d=K(2);d.issueReferenceResolver.visit({issueId:d.issueId,elementId:"comment"+
d.event.commentNumber,event:c});return A()});O(2);G()()}a&2&&(a=K(2),B(1),E("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),ke("aria-label","Comment number"+a.event.commentNumber),B(1),Ge(" #",a.event.commentNumber,""))},zab=function(a){if(a&1){var b=x();F(0,"button",32);J("click",function(){z(b);var c=K(2);return A(tt(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});G()}},Aab=function(a){a&1&&H(0,"b-restricted-chip",33);if(a&2){a=K(2);var b,c;E("label",a.getRestrictedLabel())("retention",
null!==(b=a.event.commentRetention)&&void 0!==b?b:void 0)("retentionState",null!==(c=a.event.commentRetentionState)&&void 0!==c?c:void 0)}},Cab=function(a){a&1&&(H(0,"b-actions-menu",34,35),P(2,"async"));if(a&2){a=K(2);var b;E("buttonLabel","Comment actions")("menuItems",null!==(b=Q(2,2,a.commentActionMenuItems$))&&void 0!==b?b:Ke(4,Bab))}},Dab=function(a){a&1&&(F(0,"div",36),H(1,"b-tagged-text",37),G());a&2&&(a=K(2),B(1),E("texts",a.event.taggedSummary))},Eab=function(a){a&1&&(H(0,"b-issue-event-details",
38),P(1,"async"),P(2,"async"),P(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;E("diffs",null!==(c=Q(1,4,b.preEventDiffs$))&&void 0!==c?c:Ke(10,Bab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=Q(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!Q(3,8,b.isEffortEnabled$))}},Fab=function(a){a&1&&H(0,"b-formatted-date-time",39);a&2&&(a=K(2),E("timestamp",a.event.modifiedDate))},Gab=function(a){a&1&&(F(0,"div",40),O(1," Comment has been deleted. "),G())},Hab=function(a){if(a&1){var b=
x();F(0,"b-restricted-comment-placeholder",41);J("onConfirm",function(){z(b);var c=K(2);return A(c.loadRestrictedComment())});P(1,"async");G()}a&2&&(a=K(2),E("disabled",!Q(1,1,a.mayReadPii$)))},Iab=function(a){a&1&&H(0,"b-note-container",42);a&2&&(a=K(2),E("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},Jab=function(a){if(a&1){var b=x();F(0,"a",46);J("click",function(){z(b);var c=K(3);return A(c.showCommentHistoryDialog(c.event.commentNumber))});
O(1," Show History ");G()}},Kab=function(a){a&1&&(F(0,"div",43),H(1,"b-comment-edit-timestamp-message",44),M(2,Jab,2,0,"a",45),G());a&2&&(a=K(2),B(1),E("event",a.event),B(1),E("ngIf",a.commentHistoryEnabled))},Lab=function(a){a&1&&(H(0,"b-issue-event-details",38),P(1,"async"),P(2,"async"),P(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;E("diffs",null!==(c=Q(1,4,b.postEventDiffs$))&&void 0!==c?c:Ke(10,Bab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=Q(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",
!!Q(3,8,b.isEffortEnabled$))}},Mab=function(a,b){a&1&&(F(0,"div",49),H(1,"b-attachment-viewer",50),G());a&2&&(a=b.$implicit,b=K(3),Ce("id","attachment",a.attachmentId,""),B(1),E("issueId",b.issueId)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable()))},Nab=function(a){a&1&&(F(0,"div",47),M(1,Mab,2,4,"div",48),G());a&2&&(a=K(2),B(1),E("ngForOf",a.event.attachments))},Oab=function(a){a&1&&(ve(0),F(1,"div",1),H(2,"b-user-image",2),G(),F(3,"div",3)(4,"h4",4),P(5,"async"),M(6,tab,2,5,"b-user-membership-chip",
5),M(7,uab,1,1,"ng-template",null,6,Mf),M(9,wab,6,3,"ng-container",7),M(10,xab,2,1,"ng-template",null,8,Mf),M(12,yab,3,3,"span",0),M(13,zab,1,0,"button",9),P(14,"async"),F(15,"span",10),M(16,Aab,1,3,"b-restricted-chip",11),H(17,"b-formatted-date-time",12),M(18,Cab,3,5,"b-actions-menu",13),G()(),H(19,"div",14),M(20,Dab,2,1,"div",15),M(21,Eab,4,11,"b-issue-event-details",16),P(22,"async"),H(23,"div",14),F(24,"div",17)(25,"div"),M(26,Fab,1,1,"b-formatted-date-time",18),P(27,"async"),M(28,Gab,2,0,"div",
19),M(29,Hab,2,3,"b-restricted-comment-placeholder",20),M(30,Iab,1,4,"b-note-container",21),G(),M(31,Kab,3,2,"div",22),G(),M(32,Lab,4,11,"b-issue-event-details",16),P(33,"async"),H(34,"div",14),M(35,Nab,2,1,"div",23),H(36,"div",14),G(),we());if(a&2){var b=Fe(8),c=Fe(11);a=K();B(2);E("email",a.getUserEmailIfAvailable());B(2);ke("aria-label",Q(5,20,a.ariaLabelHeading$));B(2);E("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);B(3);E("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",
c);B(3);E("ngIf",a.isCommentEvent(a.event));B(1);E("ngIf",Q(14,22,a.canEditComment$)&&!ut(a));B(3);E("ngIf",a.isRestricted());B(1);E("timestamp",a.event.modifiedDate);B(1);E("ngIf",a.isCommentEvent(a.event));B(2);E("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);B(1);E("ngIf",Q(22,24,a.showFullHistory$));B(5);E("ngIf",Q(27,26,a.isShowingCommentTimestamp$));B(2);E("ngIf",a.isDeleted());B(1);E("ngIf",ut(a)&&!a.isDeleted());B(1);E("ngIf",Cn(a.event)&&!!a.event.unlinkifiedComment&&!ut(a)&&
!a.isDeleted());B(1);E("ngIf",a.isCommentEvent(a.event)&&0<(a.event.commentVersion||0)&&!ut(a));B(1);E("ngIf",Q(33,28,a.showFullHistory$));B(3);E("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},Pab=function(a){a&1&&(F(0,"aside",3),H(1,"b-spinner"),G())},Qab=function(a){a&1&&(F(0,"div",5),H(1,"b-history-event",6),G());if(a&2){a=K().$implicit;var b=K();B(1);E("issueId",b.internalIssueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Rab=function(a,b){a&1&&
(ve(0),M(1,Qab,2,3,"div",4),we());a&2&&(a=b.$implicit,b=K(),B(1),E("ngIf",b.internalIssueId&&b.showEvent(a)))},Sab=function(a){a&1&&(F(0,"aside",3),H(1,"b-spinner"),G())},Uab=function(a){a&1&&(F(0,"div",3),H(1,"b-history-event",4),G());if(a&2){a=K().$implicit;var b=K();B(1);E("issueId",b.issueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Vab=function(a,b){a&1&&(ve(0),M(1,Uab,2,3,"div",2),we());a&2&&(a=b.$implicit,b=K(),B(1),E("ngIf",b.issueId&&b.showEvent(a)))},Xab=function(a,b){a&1&&(H(0,
"b-history-event-stream",4),P(1,"async"),P(2,"async"),P(3,"async"));a&2&&(a=b.$implicit,b=K(),E("events",Le(10,Wab,a))("issueId",Q(1,4,b.idNumber$))("issueAccessLevel",Q(2,6,b.accessLevel$))("showFullHistory",Q(3,8,b.preferences.showFullHistory$)))},Yab=function(a){a&1&&(H(0,"b-event-stream",5),P(1,"async"),P(2,"async"),P(3,"async"),P(4,"async"));a&2&&(a=K(),E("issueId",Q(1,4,a.idNumber$))("events",Q(2,6,a.events$))("issueAccessLevel",Q(3,8,a.accessLevel$))("showFullHistory",Q(4,10,a.preferences.showFullHistory$)))},
Zab=function(a){a&1&&(H(0,"b-history-event-stream",6),P(1,"async"),P(2,"async"),P(3,"slice"),P(4,"async"),P(5,"async"));a&2&&(a=K(),E("issueId",Q(1,4,a.idNumber$))("issueAccessLevel",Q(2,6,a.accessLevel$))("events",Pe(3,8,Q(4,11,a.events$),1))("showFullHistory",Q(5,13,a.preferences.showFullHistory$)))},$ab=function(a){a&1&&(F(0,"aside",7),H(1,"b-spinner"),G())},abb=function(a){if(a&1){var b=x();F(0,"span")(1,"b-checkbox",9);J("change",function(){z(b);var c=K(3);return A(c.toggleAutoCcOnComment())});
P(2,"async");P(3,"async");G()()}a&2&&(a=K(3),B(1),E("checked",!!Q(2,2,a.autoCcOnComment$))("disabled",!!Q(3,4,a.isCurrentUserCCd$)))},bbb=function(a){a&1&&(H(0,"b-checkbox",12),P(1,"async"));a&2&&(a=K(4),E("checked",!0)("disabled",!0)("tooltip",Q(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},cbb=function(a){a&1&&(F(0,"span",10),M(1,bbb,2,5,"b-checkbox",11),P(2,"async"),G());a&2&&(a=K(3),B(1),E("ngIf",Q(2,1,a.isCurrentUserCCd$)))},dbb=function(a){a&1&&H(0,"b-markdown-toggle")},gbb=
function(a){if(a&1){var b=x();ve(0);F(1,"h3",1);O(2,"Add comment");G();F(3,"div",2);P(4,"async");F(5,"b-comment-box",3,4);J("onHotkey",function(){z(b);var h=Fe(6);return A(ebb(h,"editpage-hotkey"))})("onChange",function(){z(b);var h=K(2);return A(h.saveCommentDraft())})("onFocusEvent",function(){z(b);var h=K(2);return A(h.wasFocused=!0)})("onSubmit",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("onRestrict",function(){z(b);var h=K(2);return A(h.showNewContentJudgementDialog())});P(7,
"async");P(8,"async");P(9,"async");P(10,"async");P(11,"async");F(12,"div",5)(13,"b-button",6);J("onAction",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("click",function(){z(b);var h=K(2);return A(h.submitCommentBox())});P(14,"async");O(15," Comment ");G();F(16,"div",5);M(17,abb,4,6,"span",0);P(18,"async");P(19,"async");M(20,cbb,3,3,"span",7);P(21,"async");P(22,"async");M(23,dbb,1,0,"b-markdown-toggle",0);P(24,"async");G();H(25,"b-access-level-indicator",8);P(26,"async");G()()();we()}if(a&
2){a=K().ngIf;var c=K(),d,e,f;B(3);E("ngClass",Me(41,fbb,Q(4,15,c.empty$),!c.wasFocused));B(2);E("hotkey",c.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",Q(7,17,c.comment$))("componentId",a.componentId)("placeholder",null!==(d=Q(8,19,c.commentPlaceholderText$))&&void 0!==d?d:void 0)("judgementForNewContent",null!==(e=Q(9,21,c.judgementForNewContent$))&&void 0!==e?e:void 0)("audience",null!==(f=Q(10,23,c.audience$))&&void 0!==f?f:void 0)("disabled",!1===Q(11,25,c.commentBoxEnabled$));
B(8);E("disabled",!1===Q(14,27,c.commentButtonEnabled$));B(4);E("ngIf",!Q(18,29,c.isCurrentUserCCd$)&&Q(19,31,c.hasAclToEdit$));B(3);E("ngIf",Q(21,33,c.isCurrentUserCCd$)||!Q(22,35,c.hasAclToEdit$));B(3);E("ngIf",Q(24,37,c.hasAclToComment$));B(2);E("accessLevel",Q(26,39,c.accessLevel$))}},hbb=function(a,b){a&1&&(ve(0),M(1,gbb,27,44,"ng-container",0),we());a&2&&(a=b.ngIf,B(1),E("ngIf",!a.isDeleted))},ibb=function(a){a&1&&(F(0,"mat-icon"),O(1,"done"),G())},jbb=function(a){a&1&&(F(0,"mat-icon"),O(1),
G());a&2&&(a=K(),B(1),He(a.icon))},kbb=function(a){if(a&1){var b=x();F(0,"issue-summary-chip",3);J("isSelectedChange",function(d){z(b);var e=K();return A(e.imageSection.isSelected=d)});O(1);P(2,"async");G()}if(a&2){a=K();var c;E("isSelected",a.imageSection.isSelected);B(1);Ge(" Screenshots (",null!==(c=null==(c=Q(2,2,a.images$))?null:c.length)&&void 0!==c?c:0,") ")}},lbb=function(a,b){a&1&&(F(0,"div",2),H(1,"issue-description-area",3)(2,"b-issue-description",4),G());a&2&&(a=b.$implicit,B(1),E("id",
a),B(1),E("id",a))},mbb=function(a){a&1&&(F(0,"div",2),H(1,"issue-summary-card"),G())},nbb=function(a){a&1&&H(0,"issue-description-area",3);a&2&&(a=K().$implicit,E("id",a))},obb=function(a){a&1&&(ve(0),H(1,"b-event-stream-header"),we())},pbb=function(a){a&1&&H(0,"issue-event-list",4);a&2&&(a=K().$implicit,E("id",a))},qbb=function(a){a&1&&H(0,"issue-event-list",4);a&2&&(a=K().$implicit,E("id",a))},rbb=function(a,b){a&1&&(F(0,"div",5),M(1,nbb,1,1,"issue-description-area",6),M(2,obb,2,0,"ng-container",
7),M(3,pbb,1,1,"issue-event-list",8),H(4,"b-post-comment",9),M(5,qbb,1,1,"issue-event-list",8),G());a&2&&(a=b.$implicit,b=K(),pe("recent-first",b.showRecentEventsFirst),E("bFocus",!0),B(1),E("ngIf",!b.enableEnhancedCommentThread),B(1),E("ngIf",b.enableEnhancedCommentThread),B(1),E("ngIf",!b.enableEnhancedCommentThread||!b.showRecentEventsFirst),B(1),E("issueId",a),B(1),E("ngIf",b.enableEnhancedCommentThread&&b.showRecentEventsFirst))},sbb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),O(3,
" This issue has no mentioned resources "),G(),F(4,"p",7),O(5," If there were any links or bugs mentioned in the comments or description of the issue, they would appear here. "),F(6,"a",8),O(7,"Learn more"),G()()());a&2&&(a=K(2),B(1),E("src",a.ROBOT_SLEEPING,Qd))},tbb=function(a){a&1&&(ve(0),F(1,"h2"),O(2),G(),H(3,"b-issues-table",13),we());a&2&&(a=K(2).ngIf,B(2),Ge("Mentioned issues (",a.ids.length,")"),B(1),E("issueIds",a.ids))},ubb=function(a){a&1&&(F(0,"h2"),O(1),G());a&2&&(a=K(2).ngIf,B(1),Ge("Other linked resources (",
a.urls.length,")"))},vbb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,"b-external-hyperlink-widget",14),O(3),G()()());a&2&&(a=b.$implicit,B(2),E("href",a)("originalHref",a),B(1),He(a))},wbb=function(a){a&1&&(F(0,"div",9),M(1,tbb,4,2,"ng-container",1),H(2,"br"),M(3,ubb,2,1,"h2",1),M(4,vbb,4,3,"ul",10),H(5,"br")(6,"hr",11),F(7,"p",7),H(8,"mat-icon",12),O(9," This page shows links or bugs mentioned in the comments or description of the issue. "),F(10,"a",8),O(11,"Learn more"),G()()());a&2&&(a=K().ngIf,B(1),
E("ngIf",0<a.ids.length),B(2),E("ngIf",0<a.urls.length),B(1),E("ngForOf",a.urls))},xbb=function(a,b){a&1&&(ve(0),M(1,sbb,8,1,"div",2),M(2,wbb,12,3,"ng-template",null,3,Mf),we());if(a&2){a=b.ngIf;var c=Fe(3);B(1);E("ngIf",a.hasNoResults)("ngIfElse",c)}},ybb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),O(3," This issue has no TODOs "),G(),F(4,"p",7),O(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),F(6,"a",8),O(7,"Learn more"),G()()());a&2&&
(a=K(3),B(1),E("src",a.ROBOT_SLEEPING,Qd))},zbb=function(a,b){a&1&&H(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=K(3).ngIf;var c=K().ngIf,d=K();E("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},Abb=function(a){if(a&1){var b=x();ve(0);M(1,zbb,1,3,"b-package-mentions-listing",9);F(2,"p",10)(3,"a",11);J("click",function(){z(b);var c=K(4);return A(c.trackSqueegeeClick())});O(4,"View in Squeegee");G()();we()}a&2&&(a=K(2).ngIf,B(1),E("ngForOf",a.mentions.packageMentionSet),
B(2),E("href",a.link,Qd))},Bbb=function(a){a&1&&M(0,Abb,5,2,"ng-container",1);a&2&&(a=K().ngIf,E("ngIf",a.mentions))},Cbb=function(a,b){a&1&&(ve(0),M(1,ybb,8,1,"div",2),M(2,Bbb,1,1,"ng-template",null,3,Mf),we());if(a&2){a=b.ngIf;var c=Fe(3);K(2);B(1);E("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},Dbb=function(a){a&1&&(ve(0),M(1,Cbb,4,2,"ng-container",1),P(2,"async"),we());a&2&&(a=K(),B(1),E("ngIf",Q(2,1,a.codeMentionsState$)))},Ebb=function(a){a&1&&H(0,"b-spinner",6);a&2&&E("large",
!0)},Fbb=function(a){a&1&&H(0,"b-hotlist-grid",7);a&2&&(a=K(),E("hotlists",a.hotlists))},Gbb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),F(2,"span"),O(3),G()());a&2&&(a=K(),B(3),Ge(" Searching",a.query?" for "+a.query:"","..."))},Hbb=function(a){a&1&&(ve(0),O(1," No issues matched your search. "),we())},Ibb=function(a){a&1&&O(0," Use search box to find issues. ")},Jbb=function(a){a&1&&(F(0,"div",10),M(1,Hbb,2,0,"ng-container",11),M(2,Ibb,1,0,"ng-template",null,12,Mf),G());if(a&2){var b=Fe(3);
a=K();E("bFocus",!0);B(1);E("ngIf",a.query)("ngIfElse",b)}},Lbb=function(a){if(a&1){var b=x();F(0,"div",13)(1,"b-issues-grid",14);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("columnsChange",function(){z(b);K();Kbb();return A()})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",
function(){z(b);var c=K();return A(vt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(vt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Mbb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),O(2," Loading recent issues... "),G())},Nbb=function(a){a&1&&(F(0,"div",10),O(1," No recent issues found. "),G())},Obb=function(a){if(a&1){var b=
x();F(0,"div",11)(1,"b-issues-grid",12);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){z(b);var c=K(),d;return A(c.goToPage((null!==
(d=c.page)&&void 0!==d?d:0)-1))});G()()}a&2&&(a=K(),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Pbb=function(a,b){return b.map(function(c){var d=a.indexOf(String(c.id));return[a.length-d,c]}).sort(function(c,d){var e=r(c);c=e.next().value;e.next();d=r(d);e=d.next().value;d.next();return c-e}).map(function(c){c=r(c);c.next();return c.next().value})},Qbb=function(a){a&1&&(F(0,
"div",6)(1,"h2"),O(2,"Manage SLOs"),G(),F(3,"p",7),O(4,"You have admin rights for all SLOs listed below."),G()())},Rbb=function(a){a&1&&H(0,"b-spinner",8);a&2&&E("large",!0)},Sbb=function(a){a&1&&(F(0,"div",11),O(1,"You have no Active SLOs"),G())},Tbb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(2),E("slos",a.activeSlos))},Ubb=function(a){a&1&&(ve(0),M(1,Sbb,2,0,"div",9),M(2,Tbb,1,1,"b-slo-grid",10),we());a&2&&(a=K(),B(1),E("ngIf",!a.activeSlos.length),B(1),E("ngIf",a.activeSlos.length))},Vbb=
function(a){a&1&&(F(0,"p",19),O(1," You have no archived SLOs. "),G())},Wbb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(3),E("slos",a.archivedSlos))},Xbb=function(a){a&1&&(F(0,"div",17),M(1,Vbb,2,0,"p",18),M(2,Wbb,1,1,"b-slo-grid",10),G());a&2&&(a=K(2),B(1),E("ngIf",!a.archivedSlos.length),B(1),E("ngIf",a.archivedSlos.length))},Ybb=function(a){if(a&1){var b=x();ve(0);F(1,"button",13);J("click",function(){z(b);var c=K();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return A()});F(2,"h4",
14);H(3,"mat-icon",15);O(4);G()();M(5,Xbb,3,2,"div",16);we()}a&2&&(a=K(),B(3),pe("rotate-180",a.areArchivedSlosExpanded),E("svgIcon","arrow-dropdown"),B(1),Ge(" Archived SLOs (",a.archivedSlos.length,") "),B(1),E("ngIf",a.areArchivedSlosExpanded))},Zbb=function(a){var b={};a=r(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},bcb=function(a){return{approximateSize:hj(a,2),groupEmail:V(a,1),sizeCategory:$bb[Y(a,3,0)],permissionCategory:acb[Y(a,5,0)]}},ccb=
function(a){var b;return{groupMetadata:(null!=(b=tb(a,wt,1))?b:[]).map(bcb)}},dcb=function(a){a&1&&(ve(0),F(1,"p"),O(2,"Team inheritance path:"),G(),H(3,"b-team-breadcrumb",1),we());a&2&&(a=K(),B(3),E("teamPath",a.teamPath))},ecb=function(a){a&1&&(ve(0),F(1,"p"),O(2,"Component inheritance path:"),G(),H(3,"b-component-breadcrumb",2),we());a&2&&(a=K(),B(3),E("componentPathInfo",a.componentPath))},gcb=function(a,b){var c=[];if(!b||!a)return c;for(var d=r(fcb),e=d.next();!e.done;e=d.next()){e=e.value;
var f=Ti(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},icb=function(a,b){if(!a.appenders||!b||Hi(b.appenders,a.appenders))return!1;a=r(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,hcb.has(c)&&!b.appenders.includes(c))return!0;return!1},jcb=function(a){var b=new Map;a=r(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},kcb=function(a,
b){return 0!==a&&0!==b?"Adding large and open groups to a public component":0!==a?1===a?"Adding a large group to a public component":"Adding large groups to a public component":1===b?"Adding an open group to a public component":"Adding open groups to a public component"},lcb=function(a){if(0===a.size)return xt;for(var b=1===a.size?Vn("P",{},"The following large group is added: "):Vn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=
a.get(e).approximateSize;c.push(Vn("P",{},Wn(Vn("B",{},e)," has approximately ",Vn("B",{},f)," Googlers.")))}return Wn(b,c)},mcb=function(a){if(0===a.size)return xt;var b=1===a.size?Vn("P",{},"The following open group is added: "):Vn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Vn("P",{},Vn("B",{},d.value)));return Wn(b,c)},ncb=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,"OPEN_TO_JOIN"===c.permissionCategory&&
b.set(c.groupEmail,c);return b},ocb=function(a,b){var c=b.restrictedPlusReaders;return 0<a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("3:")}).length},pcb=function(a,b,c){a="2:"+a;b=b.admins.concat(b.inheritedAdmins);var d=c.admins.concat(c.inheritedAdmins);c=b.filter(function(f){return!d.includes(f)});b=c.filter(function(f){return f.startsWith("3:")});var e=c.filter(function(f){return f.startsWith("2:")});return d.includes(a)||0===c.length?
!1:e.includes(a)?!0:b.length?!0:!1},yt=function(a){var b=a.split(":");a=Number(b[0]);return 4===a?(b=b[1],{value:b,displayText:Opa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},qcb=function(a,b){a&1&&H(0,"b-contact-chip",6);a&2&&(a=b.$implicit,b=K(2),E("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},rcb=function(a,b){a&1&&(ve(0),F(1,
"tr",3)(2,"th",4),O(3),G(),F(4,"td"),M(5,qcb,1,5,"b-contact-chip",5),G()(),we());a&2&&(a=b.$implicit,B(3),He(a.permission),B(2),E("ngForOf",a.principals))},Dcb=function(a){return[scb,tcb,ucb,vcb,wcb,xcb,ycb,zcb,Acb,Bcb,Ccb].reduce(function(b,c){return c(b)},a).permissionsFromRoles},scb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.editors),v(b.editor),v(b.componentAdmin))))).sort(),d=[].concat(v(new Set([].concat(v(a.issuesPermissions.appenders),
v(b.editor),v(b.componentAdmin))))).sort(),e=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),v(b.editor),v(b.componentAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{admins:[].concat(v(new Set([].concat(v(b.componentAdmin),v(b.componentAdminOnly))))).sort()}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,readers:e})})}},tcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;
var c=[].concat(v(new Set([].concat(v(a.componentPermissions.inheritedAdmins),v(b.inheritedComponentAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{inheritedAdmins:c})})}},ucb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.admins),v(b.issueAdmin))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},
a.issuesPermissions,{admins:c})})}},vcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.componentPermissions.appenders),v(b.editor))))).sort(),d=[].concat(v(new Set([].concat(v(a.issuesPermissions.editors),v(b.editor))))).sort(),e=[].concat(v(new Set([].concat(v(a.issuesPermissions.appenders),v(b.editor))))).sort(),f=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),v(b.editor))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},
a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:d,appenders:e,readers:f})})}},wcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.componentPermissions.appenders),v(b.contributor))))).sort(),d=[].concat(v(new Set([].concat(v(a.issuesPermissions.appenders),v(b.contributor))))).sort(),e=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),v(b.contributor))))).sort();
return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:d,readers:e})})}},xcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),v(b.viewer))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{readers:c})})}},ycb=
function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.editors),v(b.editExistingIssuesOnly))))).sort(),d=[].concat(v(new Set([].concat(v(a.issuesPermissions.appenders),v(b.editExistingIssuesOnly))))).sort(),e=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),v(b.editExistingIssuesOnly))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,
readers:e})})}},zcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.componentPermissions.appenders),v(b.createIssuesOnly))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c})})}},Acb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.appenders),v(b.commentOnly))))).sort(),d=[].concat(v(new Set([].concat(v(a.issuesPermissions.readers),
v(b.commentOnly))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:c,readers:d})})}},Bcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.restrictedReaders),v(b.viewRestricted))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{restrictedReaders:c})})}},Ccb=function(a){var b=a.rolesMap;
a=a.permissionsFromRoles;var c=[].concat(v(new Set([].concat(v(a.issuesPermissions.restrictedPlusReaders),v(b.viewRestrictedPlus))))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{restrictedPlusReaders:c})})}},Ecb=function(a,b){return b.reduce(function(c,d){return d(c)},a).rolesMap},zt=function(a){return[].concat(v(a.componentAdmin),v(a.componentAdminOnly),v(a.issueAdmin))},At=function(a){var b=new Set(a);return function(c){return!b.has(c)}},
Fcb=function(){var a=tc.apply(0,arguments).map(function(b){return new Set(b)}).reduce(function(b,c){for(var d=r(c),e=d.next();!e.done;e=d.next())e=e.value,b.has(e)||c.delete(e);return c});return[].concat(v(a)).sort()},Gcb=function(a,b){var c=new Set(b);a=a.reduce(function(d,e){return c.has(e)?Object.assign({},d,{componentAdminsWithIssuesPermissions:[].concat(v(d.componentAdminsWithIssuesPermissions),[e])}):Object.assign({},d,{componentAdminOnlyUsers:[].concat(v(d.componentAdminOnlyUsers),[e])})},
{componentAdminOnlyUsers:[],componentAdminsWithIssuesPermissions:[]});b=a.componentAdminsWithIssuesPermissions;return{componentAdminOnlyUsers:a.componentAdminOnlyUsers.sort(),componentAdminsWithIssuesPermissions:b.sort()}},Hcb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return[].concat(v(new Set([].concat(v(b?[].concat(v(b.inheritedAdmins||[]),v(b.admins||[]),v(b.appenders||[])):[]),v(a?[].concat(v(a.admins||[]),v(a.editors||[]),v(a.appenders||[]),v(a.readers||[]),v(a.restrictedReaders||
[]),v(a.restrictedPlusReaders||[])):[]))))).sort()},Icb=function(a){return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:a.componentAccessPolicy.admins.sort()})})},Jcb=function(a){var b=a.issueAccessPolicy;b=[].concat(v(b.admins),v(b.editors),v(b.appenders),v(b.readers),v(b.restrictedReaders),v(b.restrictedPlusReaders));b=Gcb(a.rolesMap.componentAdmin,b);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:b.componentAdminsWithIssuesPermissions,
componentAdminOnly:b.componentAdminOnlyUsers})})},Kcb=function(a){var b=a.componentAccessPolicy.inheritedAdmins.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdmin:b})})},Lcb=function(a){var b=new Set(a.rolesMap.componentAdmin),c=new Set(a.rolesMap.componentAdminOnly),d=a.rolesMap.inheritedComponentAdmin.filter(function(e){return!b.has(e)&&!c.has(e)}).sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdminOnly:d})})},
Mcb=function(a){var b=[].concat(v(new Set([].concat(v(a.issueAccessPolicy.admins))))).sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{issueAdmin:b})})},Ncb=function(a){var b=Fcb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.editors),c=zt(a.rolesMap);b=b.filter(At(c));return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editor:b})})},Ocb=function(a){var b=Fcb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.appenders),c=zt(a.rolesMap);c=At([].concat(v(c),
v(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{contributor:b})})},Pcb=function(a){var b=a.issueAccessPolicy.readers,c=zt(a.rolesMap);c=At([].concat(v(c),v(a.issueAccessPolicy.editors),v(a.issueAccessPolicy.appenders)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewer:b})})},Qcb=function(a){var b=a.issueAccessPolicy.editors,c=zt(a.rolesMap);c=At([].concat(v(c),v(a.componentAccessPolicy.appenders)));
b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editExistingIssuesOnly:b})})},Rcb=function(a){var b=a.componentAccessPolicy.appenders,c=zt(a.rolesMap);c=At([].concat(v(c),v(a.issueAccessPolicy.editors),v(a.issueAccessPolicy.readers)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{createIssuesOnly:b})})},Scb=function(a){var b=a.issueAccessPolicy.appenders,c=zt(a.rolesMap);c=At([].concat(v(c),v(a.componentAccessPolicy.appenders),v(a.issueAccessPolicy.editors)));
b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{commentOnly:b})})},Tcb=function(a){var b=a.issueAccessPolicy.restrictedReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestricted:b})})},Ucb=function(a){var b=a.issueAccessPolicy.restrictedPlusReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestrictedPlus:b})})},Bt=function(a,b){var c;(c=!b)||(c=!(!Hi(b.admins,a.admins)||!Hi(b.appenders,a.appenders)||
!Hi(b.implicitAccess,a.implicitAccess)));return!c},Vcb=function(a,b){return b&&a?!Hi(a.admins,b.admins)||!Hi(a.editors,b.editors)||!Hi(a.appenders,b.appenders)||!Hi(a.readers,b.readers)||!Hi(a.restrictedReaders,b.restrictedReaders)||!Hi(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Wcb=function(a,b){var c=Object.keys(a);c=r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!Lna(a[d],b[d]))return!0;return!1},Xcb=function(a){if(a&1){var b=x();F(0,"input",17);J("ngModelChange",function(c){z(b);
var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),E("disabled",!a.rolesEditor.isAdmin)("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Ycb=function(a){if(a&1){var b=x();F(0,"input",18);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),E("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Zcb=function(a){if(a&
1){var b=x();F(0,"input",19);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),E("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},adb=function(a){a&1&&(F(0,"div",3)(1,"div",4)(2,"span",5),O(3,"Component visibility: "),G()(),F(4,"div",6)(5,"div",7),M(6,Xcb,1,2,"input",8),F(7,"label",9),O(8),G()(),F(9,"div",7),M(10,Ycb,1,2,"input",10),F(11,"label",11),O(12),
G()(),F(13,"div",12),M(14,Zcb,1,2,"input",13),F(15,"label",14),O(16),G()()(),F(17,"p",15)(18,"a",16),O(19," Learn more "),G()()());a&2&&(a=K(),B(6),E("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),E("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),E("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),
B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),B(2),E("href",$cb(a.documentationLinks),Qd))},fdb=function(a,b){if(a&1){var c=x();ve(0);F(1,"tr")(2,"td")(3,"div",2)(4,"div",3)(5,"label",4);O(6);G();F(7,"button",5);H(8,"mat-icon",6);G()();F(9,"b-multi-user-input",7);J("usersChange",function(e){var f=z(c).$implicit,h=K();return A(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=z(c).$implicit,h=K();h.aclFormValidity.set(f.roleType,e);e=[].concat(v(h.aclFormValidity.values())).every(Boolean);
h.formIsValid.emit(e);return A()});G()()();F(10,"td");H(11,"b-icon",8);G();F(12,"td");H(13,"b-icon",8);G();F(14,"td");H(15,"b-icon",8);G();F(16,"td");H(17,"b-icon",8);G();F(18,"td");H(19,"b-icon",8);G();F(20,"td");H(21,"b-icon",8);G();F(22,"td");H(23,"b-icon",8);G();F(24,"td");H(25,"b-icon",8);G()();we()}if(a&2){a=b.$implicit;b=K();var d;B(3);pe("bv2-edit-resource-readonly",b.canEdit);B(2);E("htmlFor",a.roleType);B(1);He(a.label);B(1);E("matTooltip",a.tooltip);B(2);E("idForInputBox",a.roleType)("users",
a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",null!==(d=a.customValidators)&&void 0!==d?d:Ke(22,bdb))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?Le(26,cdb,Me(23,ddb,a.chips.displayText,a.chips.values)):Ke(28,edb));ke("disabled",b.canEdit?null:!0);B(2);E("name",b.getIconName(a,"componentAdmin"));B(2);E("name",b.getIconName(a,"createIssues"));B(2);E("name",
b.getIconName(a,"issueAdmin"));B(2);E("name",b.getIconName(a,"issueEditor"));B(2);E("name",b.getIconName(a,"issueCommenter"));B(2);E("name",b.getIconName(a,"issueReader"));B(2);E("name",b.getIconName(a,"restrictedReader"));B(2);E("name",b.getIconName(a,"restrictedPlusReader"))}},gdb=function(a){a&1&&(F(0,"div",1)(1,"p"),O(2," Your component is only using advanced roles. Simplify your component\u2019s role assignment by moving some users to standard roles. "),F(3,"a",2),O(4,"Learn more"),G()()());
a&2&&(a=K(),B(3),Ce("href","",Jo(a.documentationLinks),"#role-based-permissions",Qd))},hdb=function(a){a&1&&(F(0,"div",2),H(1,"b-spinner"),G())},jdb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);J("saveRolesMap",function(c){z(b);var d=K();idb(d.rolesEditor,c);return A()});G()();F(5,"mat-tab",6);H(6,"permissions-view",7);G()()()()}a&2&&(a=K(),B(4),E("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",
a.rolesEditor),B(2),E("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",null==a.rolesEditor.component?null:null==a.rolesEditor.component.accessLimit?null:a.rolesEditor.component.accessLimit.accessLevel))},ldb=function(a){if(a&1){var b=x();F(0,"b-button",12,13);J("onAction",function(){z(b);var c=K(2);return A(kdb(c))});O(2);G()}a&2&&(a=K(2),E("disabled",
a.isSaving()),B(2),Ge(" ",a.archiveAction," Component "))},mdb=function(a){if(a&1){var b=x();F(0,"b-button",14);J("onAction",function(){z(b);var c=K(2);return A(c.createIssue())});O(1," Create Issue ");G()}a&2&&(a=K(2),E("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},ndb=function(a){a&1&&(ve(0),F(1,"a",9),O(2," Browse Components "),G(),M(3,ldb,3,2,"b-button",10),M(4,mdb,2,2,"b-button",11),we());a&2&&(a=K(),B(1),E("routerLinkObj",a.componentListRoute(a.component.componentId)),
B(2),E("ngIf",a.isAdmin()),B(1),E("ngIf",!a.isAnonymous))},odb=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner"),G())},pdb=function(a){a&1&&(F(0,"span",35),O(1," (archived) "),G())},qdb=function(a){a&1&&xe(0)},rdb=function(a){a&1&&xe(0)},sdb=function(a){a&1&&xe(0)},tdb=function(a){a&1&&xe(0)},udb=function(a){a&1&&xe(0)},vdb=function(a){if(a&1){var b=x();F(0,"div",74)(1,"div",45)(2,"label",75)(3,"span",42);O(4,"Parent Component");G()();F(5,"span",47)(6,"div",76)(7,"strong");O(8,"Careful!");G();O(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. ");F(10,"div",49);H(11,"div",50)(12,"div",51);G()()()();F(13,"b-team-component-picker",77);J("selectedComponentChange",function(c){z(b);var d=K(3);return A(d.parentComponent=null!==c&&void 0!==c?c:null)});G()()}a&2&&(a=K(3),B(2),pe("required",a.isParentComponentRequired),
B(11),E("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired))},wdb=function(a){a&1&&(F(0,"a",78),O(1," Learn more "),G());a&2&&(K(3),E("href",W_a(),Qd))},xdb=function(a){if(a&1){var b=x();F(0,"div",79)(1,"label",80)(2,"span",42);O(3,"Retention Settings");G()();F(4,"div",81)(5,"p");O(6,"Please choose a period of time to retain the data stored in this component.");H(7,"br");F(8,"a",82);O(9," Learn more ");G()()();F(10,"div",83)(11,"b-retention-settings-form",
84);J("modelChange",function(c){z(b);var d=K(3);return A(d.component.retentionSettings=c)})("validChange",function(c){z(b);K(3).retentionIsValid=c;return A()});G()()()}a&2&&(a=K(3),pe("bv2-edit-resource-readonly",!a.isAdmin()),B(8),E("href",Ct(),Qd),B(3),E("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",a.component.retentionSettings))},zdb=function(a){if(a&1){var b=x();F(0,"div",88)(1,"b-component-team-picker",89);J("modelChange",function(c){z(b);var d=
K(4);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&ydb(d);return A()});G()()}a&2&&(a=K(4),B(1),De("anchorTarget",a.hasUnsavedChanges()?"_blank":"_self"),E("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",null==a.parentComponent?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},Adb=function(a){a&1&&(F(0,"div",85)(1,"label",86)(2,"span",42),O(3,"Team Configuration"),G()(),M(4,zdb,2,6,"div",87),G());a&2&&
(a=K(3),pe("bv2-edit-resource-readonly",!a.isAdmin()),B(4),E("ngIf",a.component.team))},Bdb=function(a){a&1&&(F(0,"a",101),O(1),G());if(a&2){a=K().ngIf;var b=K(4),c;E("routerLinkObj",b.getSloManagementLink(a.id));B(1);Ge(" ",null!==(c=null==a.slo?null:a.slo.getName())&&void 0!==c?c:a.id," ")}},Cdb=function(a){a&1&&O(0," None ")},Ddb=function(a,b){a&1&&(F(0,"div",98),O(1," Inherited SLO Policy: "),M(2,Bdb,2,2,"a",99),M(3,Cdb,1,0,"ng-template",null,100,Mf),G());if(a&2){a=b.ngIf;var c=Fe(4);B(2);E("ngIf",
"0"!==a.id)("ngIfElse",c)}},Edb=function(a){a&1&&(F(0,"a",106),O(1),P(2,"titlecase"),G());a&2&&(a=K().ngIf,E("routerLinkObj",a.link),B(1),Ie(" (",Q(2,3,a.type),") ",a.name," "))},Fdb=function(a){a&1&&O(0," None ")},Gdb=function(a){a&1&&(F(0,"div",108),H(1,"slo-inheritance-breadcrumbs",109),G());a&2&&(a=K().ngIf,B(1),E("componentPath",a.componentPath)("teamPath",a.teamPath))},Hdb=function(a){a&1&&(ve(0),M(1,Gdb,2,2,"div",107),we());a&2&&(a=K(5),B(1),E("ngIf",a.showSloInheritancePath))},Idb=function(a,
b){if(a&1){var c=x();F(0,"div",102);O(1," Policy Source: ");M(2,Edb,3,5,"a",103);M(3,Fdb,1,0,"ng-template",null,104,Mf);F(5,"button",105);J("click",function(){z(c);var e=K(4);return A(e.showSloInheritancePath=!e.showSloInheritancePath)});O(6);G();M(7,Hdb,2,1,"ng-container",5);P(8,"async");G()}if(a&2){a=b.ngIf;var d=Fe(4);b=K(4);B(2);E("ngIf",a.link)("ngIfElse",d);B(3);ke("aria-expanded",b.showSloInheritancePath);B(1);Ge(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");B(1);E("ngIf",Q(8,5,
b.policySourcePath$))}},Jdb=function(a){a&1&&(ve(0),H(1,"mat-icon",112),O(2," on "),we())},Kdb=function(a){a&1&&(H(0,"mat-icon",113),O(1," off "))},Ldb=function(a){a&1&&(ve(0),O(1," Lock: "),M(2,Jdb,3,0,"ng-container",110),P(3,"async"),M(4,Kdb,2,0,"ng-template",null,111,Mf),we());if(a&2){var b=Fe(5);a=K(4);B(2);E("ngIf",Q(3,2,a.sloLocked$))("ngIfElse",b)}},Ndb=function(a){if(a&1){var b=x();F(0,"div",114)(1,"mat-checkbox",115);J("change",function(c){z(b);var d=K(4);c=c.checked;d.component.slo.inherit=
!c;c||ydb(d);return A()});F(2,"span");O(3,"Override the inherited SLO policy");G()()()}a&2&&(a=K(4),B(1),E("checked",!a.component.slo.inherit)("disabled",!Mdb(a)))},Odb=function(a){if(a&1){var b=x();F(0,"div",122)(1,"label",123);O(2," Justification ");G();H(3,"mat-icon",124);F(4,"textarea",125);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.slo.comment=c)});G()()}a&2&&(a=K(5),B(4),E("ngModel",a.component.slo.comment))},Pdb=function(a){a&1&&(F(0,"a",126),H(1,"mat-icon",127),G());
a&2&&(a=K(5),De("target",a.hasUnsavedChanges()?"_blank":"_self"),E("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},Tdb=function(a){if(a&1){var b=x();ve(0);M(1,Odb,5,1,"div",116);F(2,"mat-slide-toggle",117);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.isEnableSloChecked=c)})("change",function(c){z(b);var d=K(4);c=c.checked;d.isEnableSloChecked=c;c||(d.component.slo.id="0");return A()});O(3," Enable SLO ");G();F(4,"div",118)(5,"label",119);O(6,"SLO policy");G();F(7,"slo-picker",
120);J("onSloSelect",function(c){z(b);var d=K(4);return A(d.onSloChange(c))});G();M(8,Pdb,2,2,"a",121);G();we()}a&2&&(a=K(4),B(1),E("ngIf",Qdb(a)),B(1),pe("indented",Rdb(a)),E("ngModel",a.isEnableSloChecked)("disabled",!Sdb(a)),B(5),E("bv2Disabled",!a.isEnableSloChecked||!Sdb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&Sdb(a)?"Type to search for an SLO":"SLO disabled"),B(1),E("ngIf",a.component.slo.id&&"0"!==a.component.slo.id))},Udb=function(a){a&1&&(F(0,"div",90)(1,
"div",45)(2,"label",91)(3,"span",42),O(4,"SLO Configuration"),G()(),F(5,"span",47)(6,"div",92)(7,"strong"),O(8,"Careful!"),G(),O(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. "),F(10,"div",49),H(11,"div",50)(12,"div",51),G()()()(),F(13,"div",93),M(14,Ddb,5,2,"div",94),P(15,"async"),M(16,Idb,9,7,"div",95),P(17,"async"),F(18,"div",96),M(19,Ldb,6,4,"ng-container",5),G()(),M(20,Ndb,4,2,
"div",97),M(21,Tdb,9,9,"ng-container",5),G());if(a&2){a=K(3);pe("bv2-edit-resource-readonly",!a.isAdmin());B(14);E("ngIf",Q(15,7,a.inheritedSlo$));B(2);E("ngIf",Q(17,9,a.sloPolicySource$));B(3);E("ngIf",a.enableSloLockingUi);B(1);E("ngIf",Rdb(a));B(1);if(a.component&&a.component.slo){var b=!!a.component.team&&"0"!==a.component.team.id,c=!a.component.slo.inherit;a=0===a.component.parentComponentId&&!b||c}else a=!1;E("ngIf",a)}},Vdb=function(a){if(a&1){var b=x();F(0,"div",70)(1,"b-button",128);J("onAction",
function(){z(b);var c=K(3);return A(c.saveMetadata())});O(2," Update ");G();F(3,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.revertMetadataChanges())});O(4," Revert Changes ");G();F(5,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.createChild())});O(6," Create Child Component ");G()()}a&2&&(a=K(3),B(1),E("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),E("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),E("disabled",a.hasUnsavedMetadataChanges()))},
Wdb=function(a){if(a&1){var b=x();F(0,"b-button",130);J("onAction",function(){z(b);var c=K(3);return A(c.showUpdateHistoryModal())});O(1," View History ");G()}},Xdb=function(a){a&1&&H(0,"b-spinner")},Ydb=function(a){if(a&1){var b=x();F(0,"b-component-children-list",131);J("onVisit",function(){z(b);var c=K(3);return A(c.trackClick("openChildComponent"))});G()}a&2&&(a=K(3),E("children",a.childComponents))},Zdb=function(a){a&1&&(F(0,"span"),O(1," No child components. "),G())},$db=function(a){if(a&1){var b=
x();F(0,"div",36)(1,"form",37,38);H(3,"b-error-banner",39);F(4,"div",40)(5,"label",41)(6,"span",42);O(7,"Name");G()();F(8,"input",43);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.name=c)});G()();F(9,"div",44)(10,"div",45)(11,"label",46)(12,"span",42);O(13,"Description");G()();F(14,"span",47)(15,"div",48);O(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. ");F(17,"div",49);
H(18,"div",50)(19,"div",51);G()()()();F(20,"textarea",52);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.description=c)});O(21,"            ");G()();M(22,vdb,14,5,"div",53);F(23,"div",54)(24,"div",55)(25,"b-checkbox",56);J("change",function(c){z(b);var d=K(2);d.commentEditsEnabled=c;return A(d.setCommentEditState())});G()();F(26,"div")(27,"strong",57);O(28,"Editable Comments");G();F(29,"div",58);O(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
H(31,"br");M(32,wdb,2,1,"a",59);G()()();M(33,xdb,12,6,"div",60);M(34,Adb,5,3,"div",61);M(35,Udb,22,11,"div",62);F(36,"div",63)(37,"div",45)(38,"label",64)(39,"span",42);O(40,"Component Alias");G()();F(41,"span",47)(42,"div",65);O(43," You can create a new issue in this component by sending an email to this alias. ");H(44,"br");F(45,"a",66);O(46," Learn more ");G();F(47,"div",49);H(48,"div",50)(49,"div",51);G()()()();F(50,"div")(51,"a",67);O(52);G()()();F(53,"div",68);M(54,Vdb,7,3,"div",69);F(55,"div",
70);M(56,Wdb,2,0,"b-button",71);G()();F(57,"div",72)(58,"label")(59,"span",42);O(60,"Child Components");G()();M(61,Xdb,1,0,"b-spinner",5);M(62,Ydb,1,1,"b-component-children-list",73);M(63,Zdb,2,0,"span",5);G()()()}a&2&&(a=K(2),B(1),pe("show-errors",a.error),B(2),E("error",a.error),B(1),pe("bv2-edit-resource-readonly",Dt(a)),B(4),E("ngModel",a.component.name)("disabled",Dt(a)),B(1),pe("bv2-edit-resource-readonly",Dt(a)),B(11),E("ngModel",a.component.description)("disabled",Dt(a)),B(2),E("ngIf",a.isAdmin()),
B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),E("checked",a.commentEditsEnabled)("disabled",Dt(a)),B(7),E("ngIf",!a.sessionIsExternal),B(1),E("ngIf",!a.sessionIsExternal),B(1),E("ngIf",a.sessionIsInternal),B(1),E("ngIf",a.component.slo&&a.sessionIsInternal),B(10),E("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",Qd),B(6),Ce("href","mailto:",a.component.emailAlias,"",Qd),ke("aria-label","Component Alias -"+a.component.emailAlias),B(1),He(a.component.emailAlias),
B(2),E("ngIf",a.isEditor_),B(2),E("ngIf",a.componentHistoryUiEnabled),B(5),E("ngIf",void 0===a.childComponents),B(1),E("ngIf",a.childComponents&&0<a.childComponents.length),B(1),E("ngIf",a.childComponents&&0===a.childComponents.length))},aeb=function(a){a&1&&(F(0,"div",136),O(1," Standard Fields "),G())},ceb=function(a){if(a&1){var b=x();F(0,"b-component-standard-fields",137);J("updateComponent",function(c){z(b);var d=K(3);return A(beb(d,c))});G()}a&2&&(a=K(3),E("effortSpec",null==a.component?null:
a.component.effortSpec)("parentEffortSpec",null==a.parentComponent?null:a.parentComponent.effortSpec)("disabled",!a.isEditor_))},deb=function(a){a&1&&(F(0,"div",138),O(1," Custom Fields "),G())},eeb=function(a){a&1&&(M(0,aeb,2,0,"div",132),M(1,ceb,1,3,"b-component-standard-fields",133),M(2,deb,2,0,"div",134),H(3,"b-component-custom-fields",135));a&2&&(a=K(2),E("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),E("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),E("ngIf",a.sessionIsInternal&&!a.isExternal()),
B(1),E("editMode",a.isEditor_)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},geb=function(a){a&1&&(F(0,"a",142),O(1," Learn more "),G());a&2&&(K(3),E("href",feb(),Qd))},ieb=function(a){if(a&1){var b=x();F(0,"div",36)(1,"div",139);O(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");M(3,geb,2,1,"a",140);G();F(4,"b-field-reorder",141);J("onReload",function(){z(b);var c=K(2);
return A(heb(c))});G()()}a&2&&(a=K(2),B(3),E("ngIf",a.sessionIsInternal),B(1),E("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},jeb=function(a){a&1&&H(0,"b-edit-templates",144);a&2&&(a=K(3),E("componentId",a.componentId)("supportCustomFields",!0))},keb=function(a){a&1&&(F(0,"div"),O(1),G());a&2&&(a=K().$implicit,B(1),He(a.description))},leb=function(a,b){a&1&&(F(0,"div",146)(1,"label"),O(2),G(),M(3,keb,2,1,"div",5),
F(4,"div")(5,"a",67),O(6),G()()());a&2&&(a=b.$implicit,B(2),He(a.name),B(1),E("ngIf",a.description),B(2),E("href",a.url,Qd),ke("aria-label","Click to open the template "+a.name),B(1),He(a.url))},meb=function(a){a&1&&(ve(0),M(1,leb,7,5,"div",145),we());a&2&&(a=K(3),B(1),E("ngForOf",a.templates))},neb=function(a){a&1&&(F(0,"div",36),M(1,jeb,1,2,"b-edit-templates",143),M(2,meb,2,1,"ng-container",5),G());a&2&&(a=K(2),B(1),E("ngIf",a.isEditor_),B(1),E("ngIf",!a.isEditor_))},oeb=function(a){a&1&&H(0,"role-based-permissions")},
peb=function(a){if(a&1){var b=x();F(0,"input",201);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),E("disabled",!a.isAdmin())("ngModel",a.component.accessLimit.accessLevel))},qeb=function(a){if(a&1){var b=x();F(0,"input",202);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),E("disabled",!a.isAdmin()||!a.isParentPartner())("ngModel",a.component.accessLimit.accessLevel))},
reb=function(a){if(a&1){var b=x();F(0,"input",203);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),E("disabled",!a.isAdmin()||!a.isParentPublic())("ngModel",a.component.accessLimit.accessLevel))},seb=function(a){a&1&&(F(0,"div",187)(1,"div",188)(2,"span",189),O(3,"Component visibility: "),G()(),F(4,"div",190)(5,"div",191),M(6,peb,1,2,"input",192),F(7,"label",193),O(8),G()(),F(9,"div",191),M(10,qeb,1,2,"input",194),F(11,"label",195),
O(12),G()(),F(13,"div",196),M(14,reb,1,2,"input",197),F(15,"label",198),O(16),G()()(),F(17,"p",199)(18,"a",200),O(19," Learn more "),G()()());a&2&&(a=K(4),B(6),E("ngIf",a.component&&a.component.accessLimit),B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),E("ngIf",a.component&&a.component.accessLimit),B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),E("ngIf",a.component&&a.component.accessLimit),B(2),Ge(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC),
" "),B(2),E("href",$cb(a.documentationLinks),Qd))},teb=function(a){a&1&&(F(0,"a",204),O(1," Learn more "),G());a&2&&(a=K(4),E("href",a.documentationLinks.getRestrictedAccessHelpLink(),Qd))},ueb=function(a){a&1&&(F(0,"span",47)(1,"div",48),O(2,' Only individuals or group aliases may be granted issue edit permission for components designated as "Visible to Public". '),F(3,"div",49),H(4,"div",50)(5,"div",51),G()()())},veb=function(a){a&1&&(F(0,"a",205),O(1," Learn more "),G());a&2&&(a=K(4),E("href",
a.documentationLinks.getRestrictedAccessHelpLink(),Qd))},web=function(a){a&1&&(F(0,"a",206),O(1," Learn more "),G());a&2&&(a=K(4),E("href",a.documentationLinks.getRestrictedAccessHelpLink(),Qd))},xeb=function(a){if(a&1){var b=x();F(0,"b-button",207);J("onAction",function(){z(b);var c=K(4);return A(c.revertAccessPolicyChanges())});O(1," Revert Changes ");G()}},Deb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",36);M(2,seb,20,7,"div",147);F(3,"div",139);O(4," Access to issues is granted per component using the settings below. All settings provide access to view the component. ");
F(5,"a",148);O(6,"Learn more");G()();F(7,"form",149)(8,"div",150)(9,"label",151)(10,"span",42);O(11,"Component Admins");G();F(12,"p",152);O(13," View component, edit component details and access controls, create issues (does not imply permission to view issues). ");G()();F(14,"b-multi-user-input",153);J("usersChange",function(c){z(b);var d=K(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{admins:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-admins"]=
c)});G()();F(15,"div",154)(16,"label",155)(17,"span",42);O(18,"Create issues");G();F(19,"p",152);O(20," View component, create issues (does not imply permission to view issues). ");G()();F(21,"b-multi-user-input",156);J("usersChange",function(c){z(b);var d=K(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{appenders:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-appenders"]=c)});G()();F(22,"div",157)(23,"label",158)(24,
"span",42);O(25,"Issue Admins");G();F(26,"p",152);O(27," View component, view issues, add comments and attachments, edit all issue data,");H(28,"br");O(29," mark issues as spam, delete and undelete issues, change restriction level of content. ");M(30,teb,2,1,"a",159);G()();F(31,"b-multi-user-input",160);J("usersChange",function(c){z(b);var d=K(3);return A(Et(d,{admins:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-admins"]=c)});G()();F(32,"div",161)(33,"label",162)(34,
"div")(35,"span",42);O(36,"Edit issues");G();M(37,ueb,6,0,"span",163);G();F(38,"p",152);O(39," View component, view issues, add comments and attachments, edit all issue data. ");G()();F(40,"b-multi-user-input",164);J("usersChange",function(c){z(b);var d=K(3);return A(Et(d,{editors:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-editors"]=c)});G()();F(41,"div",165)(42,"label",166)(43,"span",42);O(44,"Comment on issues");G();F(45,"p",152);O(46," View component, view issues, add comments and attachments. ");
G()();F(47,"b-multi-user-input",167);J("usersChange",function(c){z(b);var d=K(3);return A(Et(d,{appenders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-appenders"]=c)});G()();F(48,"div",168)(49,"label",169)(50,"span",42);O(51,"View restricted+ content");G();F(52,"p",152);O(53," View component, view issues, view restricted content, view restricted+ content. This ACL does not accept groups. ");M(54,veb,2,1,"a",170);G()();F(55,"b-multi-user-input",171);J("usersChange",
function(c){z(b);var d=K(3);return A(Et(d,{restrictedPlusReaders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-plus-readers"]=c)});G()();F(56,"div",172)(57,"label",173)(58,"span",42);O(59,"View restricted content");G();F(60,"p",152);O(61," View component, view issues, view restricted content. This ACL accepts groups. ");M(62,web,2,1,"a",174);G()();F(63,"b-multi-user-input",175);J("usersChange",function(c){z(b);var d=K(3);return A(Et(d,{restrictedReaders:c}))})("isValid",
function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-readers"]=c)});G()();F(64,"div",176)(65,"label",177)(66,"span",42);O(67,"View issues");G();F(68,"p",152);O(69," View component, view issues. ");G()();F(70,"b-multi-user-input",178);J("usersChange",function(c){z(b);var d=K(3);return A(Et(d,{readers:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-readers"]=c)});G()();F(71,"div",179)(72,"label",180)(73,"span",42);O(74,"View Component (Auto-populated)");
G();F(75,"p",152);O(76," View component (view all settings for this component, view custom fields for this and all parent components). ");H(77,"br");O(78," This field is auto-populated with all users and groups listed in the above settings. ");G()();F(79,"b-multi-user-input",181);J("usersChange",function(c){z(b);var d=K(3);return A(d.componentReaders=c)})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-readers"]=c)});G()();F(80,"div",182)(81,"span",55)(82,"b-checkbox",
183);J("change",function(c){z(b);var d=K(3);return A(d.implicitAccess.setValue(c))});G()();F(83,"div")(84,"strong",184);O(85,"Expanded access");G();F(86,"div",58);O(87," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. ");F(88,"a",185);O(89,"Learn more");G()()()()();F(90,"div",68)(91,"b-button",128);J("onAction",function(){z(b);var c=K(3);return A(c.saveAccessPolicy())});O(92," Update ");G();M(93,xeb,2,0,"b-button",186);G()()()}a&2&&(a=K(3),
B(2),E("ngIf",a.shouldShowAccessLimitChangeUi()),B(3),Ce("href","",Jo(a.documentationLinks),"#components",Qd),B(3),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("users",a.componentAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel())("containerChips",Le(72,Ft,Le(70,yeb,a.componentAccessPolicyUnderEdit.inheritedAdmins))),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("users",a.componentAccessPolicyUnderEdit.appenders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Le(76,Ft,Le(74,zeb,a.componentAdmins)))("includeAliases",!0),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(8),E("ngIf",!a.sessionIsExternal),B(1),E("users",a.issueDefaultAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel()),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),pe("field-label-with-help",a.isPublic()),
B(3),E("ngIf",a.isPublic()),B(3),E("users",a.issueDefaultAccessPolicyUnderEdit.editors)("accessLevel",a.getComponentAccessLevel())("containerChips",Le(80,Ft,Le(78,Aeb,a.issueDefaultAccessPolicyUnderEdit.admins)))("includeAliases",!a.isPublic()),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("users",a.issueDefaultAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",Le(84,Ft,Le(82,Beb,a.issueCommenters)))("includeAliases",
!0),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("ngIf",!a.sessionIsExternal),B(1),E("users",a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders)("accessLevel",a.getComponentAccessLevel())("customValidators",a.restrictedPlusReadersValidators),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("ngIf",!a.sessionIsExternal),B(1),E("users",a.issueDefaultAccessPolicyUnderEdit.restrictedReaders)("accessLevel",
a.getComponentAccessLevel())("containerChips",Le(88,Ft,Le(86,Ceb,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders))),ke("disabled",a.isAccessEditDisabled()?!0:null),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),E("users",a.issueDefaultAccessPolicyUnderEdit.readers)("accessLevel",a.getComponentAccessLevel())("containerChips",a.issueViewersChip)("includeAliases",!0)("includeViewAliases",!0),ke("disabled",a.isAccessEditDisabled()?!0:null),B(9),E("users",a.componentReaders)("accessLevel",
a.getComponentAccessLevel()),ke("disabled",!0),B(1),pe("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),E("checked",a.implicitAccess.getValue())("disabled",a.isAccessEditDisabled()),B(6),E("href",Jo(a.documentationLinks),Qd),B(3),E("disabled",!(Gt(a)||Ht(a))||a.isSaving()||a.aclFormIsInvalid()),B(2),E("ngIf",a.isAdmin()))},Eeb=function(a){a&1&&(M(0,oeb,1,0,"role-based-permissions",5),M(1,Deb,94,90,"div",5));a&2&&(a=K(2),E("ngIf",a.enableRoleBasedPermissions),B(1),E("ngIf",!a.enableRoleBasedPermissions))},
Feb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",16)(2,"h2");O(3);G();M(4,pdb,2,0,"span",17);F(5,"a",18);J("click",function(){z(b);var k=K();return A(k.trackClick("recentIssues"))});O(6," (Recent Issues)");G();H(7,"b-access-level-indicator",19);G();F(8,"div",20);H(9,"b-component-breadcrumb",21)(10,"div",22);G();F(11,"mat-tab-group",23);J("selectedIndexChange",function(k){z(b);var q=K();return A(q.tabChange(k))});F(12,"mat-tab",24);M(13,qdb,1,0,"ng-container",25);G();F(14,"mat-tab",26);M(15,rdb,
1,0,"ng-container",25);G();F(16,"mat-tab",27);M(17,sdb,1,0,"ng-container",25);G();F(18,"mat-tab",28);M(19,tdb,1,0,"ng-container",25);G();F(20,"mat-tab",29);M(21,udb,1,0,"ng-container",25);G()();M(22,$db,64,29,"ng-template",null,30,Mf);M(24,eeb,4,7,"ng-template",null,31,Mf);M(26,ieb,5,5,"ng-template",null,32,Mf);M(28,neb,3,2,"ng-template",null,33,Mf);M(30,Eeb,2,2,"ng-template",null,34,Mf);G()}if(a&2){var c=Fe(23),d=Fe(25),e=Fe(27),f=Fe(29),h=Fe(31);a=K();B(3);Ie(" Component ",a.component.componentId,
": ",a.currentName," ");B(1);E("ngIf",a.isArchived());B(1);E("routerLinkObj",a.getRecentIssuesLink());B(2);E("accessLevel",a.getComponentAccessLevel());B(2);E("componentPathInfo",a.component.componentPathInfo)("isArchived",a.isArchived())("label","Parent Component");B(2);E("selectedIndex",a.selectedTabIndex);B(1);E("id",a.Tab.BASIC);B(1);E("ngTemplateOutlet",c);B(1);E("id",a.Tab.CUSTOM_FIELDS)("label",a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");B(1);E("ngTemplateOutlet",d);B(1);
E("id",a.Tab.FIELD_ORDERING);B(1);E("ngTemplateOutlet",e);B(1);E("id",a.Tab.TEMPLATES);B(1);E("ngTemplateOutlet",f);B(1);E("id",a.Tab.ACCESS);B(1);E("ngTemplateOutlet",h)}},Geb=function(a){a&1&&(F(0,"span")(1,"p"),O(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),H(3,"br"),F(4,"a",213),O(5," Learn more "),G()(),F(6,"p"),O(7," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),
H(8,"br"),O(9," so they can be scheduled for deletion. "),F(10,"a",214),O(11," Learn more "),G()()());a&2&&(K(2),B(4),E("href","http://go/archived-components",Qd),B(6),E("href",Ct(),Qd))},Heb=function(a){a&1&&(F(0,"span"),O(1," : "),F(2,"b"),O(3),G()());if(a&2){a=K().$implicit;var b=K(2),c;pe("b-archive-warning-indef",!(null==(c=a.getRetentionSettings())?0:hj(c,2)));B(3);He(b.getRetentionPeriod(a))}},Ieb=function(a,b){a&1&&(F(0,"span")(1,"span"),O(2),G(),M(3,Heb,4,3,"span",215),H(4,"br"),G());a&2&&
(a=b.$implicit,b=K(2),B(2),He(V(a,1)),B(1),E("ngIf","Archive"===b.archiveAction))},Jeb=function(a){if(a&1){var b=x();F(0,"h2",208);O(1);G();F(2,"mat-dialog-content");M(3,Geb,12,2,"span",5);F(4,"p");O(5," The following components will be affected: ");G();F(6,"div",209);M(7,Ieb,5,2,"span",210);G()();F(8,"mat-dialog-actions")(9,"button",211);J("click",function(){z(b);var c=K();c.archive();c.isArchiving_=!1;return A()});O(10," Yes ");G();F(11,"button",212);J("click",function(){z(b);K().isArchiving_=!1;
return A()});O(12," No ");G()()}a&2&&(a=K(),B(1),He(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),B(2),E("ngIf","Archive"===a.archiveAction),B(4),E("ngForOf",a.descendants))},Keb=function(a){var b=null;if(a instanceof It)var c=a.getSourceTeamId();else c=a.sourceTeamId,b=a.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},Leb=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:null==c?void 0:c.slice(d)}},Meb=function(a,b,c,d){(null==c?0:c.inherit)||"0"!==(null==c?void 0:c.id)||!d||(a=d);if(!a)return null;c=a.getPathNamesList();a=a.getPathIdsList();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},Neb=function(a,b){a&1&&(F(0,"div",39),H(1,"b-team-breadcrumb",40),G());a&2&&(a=b.ngIf,B(1),E("teamPath",a))},Oeb=function(a,
b){a&1&&(ve(0),O(1),we());a&2&&(a=b.ngIf,B(1),He(a.trim()))},Peb=function(a){a&1&&O(0," No description ")},Qeb=function(a,b){a&1&&(ve(0),H(1,"b-multi-user-input",41),we());a&2&&(a=b.ngIf,B(1),E("users",a),ke("disabled",!0))},Reb=function(a){a&1&&(ve(0),F(1,"p"),O(2,"No child teams"),G(),we())},Seb=function(a,b){a&1&&(ve(0),H(1,"br"),F(2,"a",44),O(3),G(),we());a&2&&(a=b.$implicit,B(2),Ce("routerLink","/teams/",a.getId(),"/edit"),B(1),He(a.getName()))},Teb=function(a){a&1&&M(0,Seb,4,2,"ng-container",
43);a&2&&(a=K().ngIf,E("ngForOf",a))},Ueb=function(a,b){a&1&&(ve(0),M(1,Reb,3,0,"ng-container",18),M(2,Teb,1,1,"ng-template",null,42,Mf),we());if(a&2){a=b.ngIf;var c=Fe(3);B(1);E("ngIf",0===a.length)("ngIfElse",c)}},Veb=function(a){a&1&&(F(0,"a",48),O(1),G());if(a&2){a=K().ngIf;var b;E("routerLinkObj",a.link);B(1);Ge(" ",null!==(b=null==a.slo?null:a.slo.getName())&&void 0!==b?b:a.id," ")}},Web=function(a){a&1&&O(0," None ")},Xeb=function(a,b){a&1&&(F(0,"div",45),O(1," Inherited SLO Policy: "),M(2,
Veb,2,2,"a",46),M(3,Web,1,0,"ng-template",null,47,Mf),G());if(a&2){a=b.ngIf;var c=Fe(4);B(2);E("ngIf",a.link)("ngIfElse",c)}},Yeb=function(a,b){a&1&&(F(0,"a",49),O(1),G());a&2&&(a=b.ngIf,E("routerLinkObj",a.link),B(1),Ge(" ",a.name," "))},Zeb=function(a){a&1&&O(0," None ")},$eb=function(a){a&1&&(ve(0),H(1,"mat-icon",51),O(2," on "),we())},afb=function(a){a&1&&(H(0,"mat-icon",52),O(1," off "))},bfb=function(a){a&1&&(ve(0),O(1," Lock: "),M(2,$eb,3,0,"ng-container",18),M(3,afb,2,0,"ng-template",null,
50,Mf),we());if(a&2){var b=Fe(4);a=K(2);B(2);E("ngIf",a.originalSloLock)("ngIfElse",b)}},cfb=function(a){if(a&1){var b=x();F(0,"div",54)(1,"mat-checkbox",55);J("change",function(c){z(b);var d=K(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.getSlo().getSloId());return A()});F(2,"span");O(3,"Override the inherited SLO");G()()()}a&2&&(a=K(3),B(1),E("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},dfb=function(a){if(a&1){var b=x();F(0,"div",60)(1,"label",
61);O(2," Justification to override the org SLO ");G();H(3,"mat-icon",62);F(4,"textarea",63);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.sloJustification$.next(c))});P(5,"async");G()()}a&2&&(a=K(4),B(3),E("matTooltip",a.justificationRequiredText),ke("aria-label",a.justificationRequiredText),B(1),E("ngModel",Q(5,4,a.sloJustification$))("disabled",!a.hasEditAccess))},efb=function(a,b){a&1&&(F(0,"a",64),P(1,"async"),H(2,"mat-icon",9),G());a&2&&(a=b.ngIf,b=K(4),De("target",Q(1,2,b.hasUnsavedChanges$)?
"_blank":"_self"),E("routerLinkObj",a))},ffb=function(a){if(a&1){var b=x();ve(0);M(1,dfb,6,6,"div",56);F(2,"div",14)(3,"mat-slide-toggle",57);J("ngModelChange",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d)})("change",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d.checked)});O(4," Enable SLO ");G();F(5,"slo-picker",58);J("onSloSelect",function(d){z(b);var e=K(3);return A(e.onSloChange(d))});G();M(6,efb,3,4,"a",59);P(7,"async");G();we()}if(a&2){a=K().ngIf;var c=K(2);B(1);E("ngIf",
!a.value);B(2);pe("indented",!a.value);E("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);B(2);E("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");B(1);E("ngIf",Q(7,9,c.sloPickerLink$))}},gfb=function(a,b){a&1&&(ve(0),M(1,cfb,4,2,"div",53),M(2,ffb,8,11,"ng-container",6),we());a&2&&(a=b.ngIf,b=K(2),B(1),E("ngIf",!a.value),B(1),E("ngIf",!b.isSloInheritEnabled))},hfb=
function(a){if(a&1){var b=x();F(0,"div",14)(1,"mat-checkbox",65);J("change",function(c){z(b);var d=K(2);return A(d.sloLocked=c.checked)});F(2,"span");O(3,"Lock for all child teams");G()()()}a&2&&(a=K(2),B(1),E("checked",a.sloLocked)("disabled",!a.canEditSloLock))},kfb=function(a){if(a&1){var b=x();F(0,"div",14)(1,"div",20)(2,"label",21)(3,"span",16);O(4," SLO lead ");G()();F(5,"span",22)(6,"div",23);O(7," Single team lead receiving SLO reports of unassigned issues. ");F(8,"div",24);H(9,"div",25)(10,
"div",26);G()()()();F(11,"div");ve(12);F(13,"b-multi-user-input",66);J("usersChange",function(c){z(b);var d=K(2);1<c.length||(d.sloLead=1===c.length?c[0]:"");return A()})("isValid",function(c){z(b);var d=K(2);return A(d.isSloLeadValid=c)});G();we();G()()}a&2&&(a=K(2),B(13),E("users",a.sloLead?Le(5,ifb,a.sloLead):Ke(7,jfb))("customValidators",a.sloLeadUserValidators)("detailedUserValidators",a.sloLeadGooglerValidators)("maxUserAllowed",1),ke("disabled",a.hasEditAccess?null:!0))},nfb=function(a){if(a&
1){var b=x();F(0,"div",67)(1,"div",68)(2,"button",69);J("click",function(){z(b);var c=K().ngIf,d=K();return A(lfb(d,c))});P(3,"async");O(4," Update ");G();F(5,"button",70);J("click",function(){z(b);var c=K(2);return A(mfb(c))});P(6,"async");O(7," Revert changes ");G()()()}a&2&&(a=K(2),B(2),E("disabled",!Q(3,2,a.hasUnsavedChanges$)),B(3),E("disabled",!Q(6,4,a.hasUnsavedChanges$)))},ofb=function(a){a&1&&(ve(0),F(1,"p"),O(2,"No mapped components"),G(),we())},pfb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,
"a",44),O(3),G()()());a&2&&(a=b.$implicit,B(2),Ce("routerLink","/components/",a.componentId,"/manage"),B(1),Ge(" ",a.name," "))},qfb=function(a){a&1&&(M(0,pfb,4,2,"ul",43),P(1,"async"));a&2&&(a=K(3),E("ngForOf",Q(1,1,a.associatedComponents$)))},rfb=function(a,b){a&1&&(ve(0),M(1,ofb,3,0,"ng-container",18),M(2,qfb,2,3,"ng-template",null,71,Mf),we());if(a&2){a=b.ngIf;var c=Fe(3);B(1);E("ngIf",0===a.length)("ngIfElse",c)}},tfb=function(a,b){if(a&1){var c=x();ve(0);F(1,"div",7)(2,"h2");O(3);F(4,"a",8);
O(5);H(6,"mat-icon",9);G()()();M(7,Neb,2,1,"div",10);P(8,"async");F(9,"mat-tab-group",11);J("selectedIndexChange",function(f){z(c);var h=K();return A(h.selectedTabIndex=f)})("selectedIndexChange",function(f){z(c);var h=K();return A(h.tabChange(f))});F(10,"mat-tab",12)(11,"div",13);O(12," Team information on this page comes from ");F(13,"a",8);O(14," Team Graph ");H(15,"mat-icon",9);G();O(16," and is view only. ");F(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);O(21,"Description");G()();F(22,
"div",17);M(23,Oeb,2,1,"ng-container",18);M(24,Peb,1,0,"ng-template",null,19,Mf);G()()();F(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);O(30," Team admins ");G();F(31,"span",22)(32,"div",23);O(33," Team admins are either team editors or team leads from Team Graph. ");F(34,"div",24);H(35,"div",25)(36,"div",26);G()()()();M(37,Qeb,2,2,"ng-container",6);P(38,"async");G()();F(39,"div",14)(40,"div",15)(41,"label")(42,"span",16);O(43,"Child team(s)");G()();M(44,Ueb,4,2,"ng-container",6);P(45,"async");
G()()()();F(46,"mat-tab",27)(47,"div",13)(48,"div",20)(49,"label",21)(50,"span",16);O(51,"SLO configuration");G()();F(52,"span",22)(53,"div",28)(54,"strong");O(55,"Careful!");G();O(56," 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. ");F(57,"div",24);H(58,"div",25)(59,"div",26);G()()()();F(60,"div",29);M(61,Xeb,5,2,"div",30);P(62,"async");F(63,"div",31);O(64," Policy Source: ");M(65,Yeb,2,2,"a",
32);P(66,"async");M(67,Zeb,1,0,"ng-template",null,33,Mf);G();F(69,"div",34);M(70,bfb,5,2,"ng-container",6);G()();H(71,"b-error-banner",35);M(72,gfb,3,2,"ng-container",6);P(73,"async");M(74,hfb,4,2,"div",36);M(75,kfb,14,8,"div",36);M(76,nfb,8,6,"div",37);G()();F(77,"mat-tab",38)(78,"div",13)(79,"div",14)(80,"div",15)(81,"label")(82,"span",16);O(83," Component(s) that have mapped to this team ");G()()();M(84,rfb,4,2,"ng-container",6);P(85,"async");G()()()();we()}if(a&2){a=b.ngIf;var d=Fe(25),e=Fe(68);
b=K();B(3);Ge(" Team ",a.getTeamId(),": ");B(1);Ce("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Qd);B(1);Ge(" ",a.getName()," ");B(2);E("ngIf",Q(8,23,b.teamPath$));B(2);E("selectedIndex",b.selectedTabIndex);B(1);E("id",b.Tab.BASIC);B(3);Ce("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Qd);B(10);E("ngIf",a.getDescription())("ngIfElse",d);B(14);E("ngIf",Q(38,25,b.adminsAndLeads$));B(7);E("ngIf",Q(45,27,b.childTeams$));B(2);E("id",b.Tab.SLO);B(15);E("ngIf",Q(62,29,b.inheritedSlo$));
B(4);E("ngIf",Q(66,31,b.sloPolicySource$))("ngIfElse",e);B(5);E("ngIf",b.enableSloLockingUi);B(1);E("error",b.error);B(1);E("ngIf",Le(37,sfb,Q(73,33,b.isRootTeam$)));B(2);E("ngIf",b.enableSloLockingUi);B(1);E("ngIf",b.enableSloLead);B(1);E("ngIf",b.hasEditAccess);B(1);E("id",b.Tab.MAPPINGS);B(7);E("ngIf",Q(85,35,b.associatedComponents$))}},ufb=function(a){a&1&&xe(0)},wfb=function(a,b){a&1&&(ve(0),M(1,ufb,1,0,"ng-container",7),we());if(a&2){a=b.$implicit;K(3);var c=Fe(5);B(1);E("ngTemplateOutlet",
c)("ngTemplateOutletContext",Le(2,vfb,a))}},xfb=function(a){a&1&&(F(0,"div",4)(1,"div",5),O(2,"TEAMFOOD"),G(),M(3,wfb,2,4,"ng-container",6),P(4,"async"),G());a&2&&(a=K(2),B(3),E("ngForOf",Q(4,1,a.beapFeaturesTF$)))},yfb=function(a){a&1&&xe(0)},zfb=function(a,b){a&1&&(ve(0),M(1,yfb,1,0,"ng-container",7),we());if(a&2){a=b.$implicit;K(3);var c=Fe(5);B(1);E("ngTemplateOutlet",c)("ngTemplateOutletContext",Le(2,vfb,a))}},Afb=function(a){a&1&&(F(0,"div",4)(1,"div",5),O(2,"EARLY ACCESS"),G(),M(3,zfb,2,4,
"ng-container",6),P(4,"async"),G());a&2&&(a=K(2),B(3),E("ngForOf",Q(4,1,a.beapFeaturesEA$)))},Bfb=function(a){a&1&&(ve(0),M(1,xfb,5,3,"div",3),P(2,"async"),M(3,Afb,5,3,"div",3),P(4,"async"),we());a&2&&(a=K(),B(1),E("ngIf",Q(2,2,a.hasFeaturesTF$)),B(2),E("ngIf",Q(4,4,a.hasFeaturesEA$)))},Cfb=function(a){a&1&&(F(0,"div",8),O(1,"No available experiments"),G())},Dfb=function(a){a&1&&(F(0,"a",23),O(1," Learn more"),G());a&2&&(a=K().feature,ke("href",V(a,6),Qd))},Efb=function(a){a&1&&(F(0,"b-callout",24)(1,
"b-callout-body"),O(2," Reload page to see changes. "),G()())},Gfb=function(a,b){if(a&1){var c=x();F(0,"div",9)(1,"div",10)(2,"div",11);H(3,"mat-slide-toggle",12);P(4,"featureState");P(5,"featureState");G();F(6,"div",13)(7,"div",14);O(8);G();F(9,"span",15);O(10);M(11,Dfb,2,1,"a",16);G();F(12,"div",17)(13,"a",18);J("click",function(){var d=z(c).feature,e=K();d=d.getExperimentId();e.linkClicked[d]=!0;return A()});H(14,"mat-icon",19);O(15);P(16,"featureState");G()();M(17,Efb,3,0,"b-callout",20);G();
F(18,"div",21);H(19,"b-app-beap-state-indicator",22);G()()()}a&2&&(a=b.feature,b=K(),B(3),E("checked",Q(4,10,a.getState()))("matTooltip",Q(5,12,a.getState())?"Opted in":"Opted out")("disabled",!0),B(5),Ge(" ",a.getTitle()," "),B(2),Ge("",a.getDescription()," "),B(1),E("ngIf",V(a,6)),B(2),ke("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+a.getExperimentId(),Qd),B(2),Ge(" ",Q(16,14,a.getState())?"Opt out":"Opt in"," "),B(2),E("ngIf",Ffb(b,a.getExperimentId())),B(2),E("experimentId",
a.getExperimentId()))},Hfb=function(a){a&1&&(F(0,"mat-option",28),O(1),G());a&2&&(a=K().$implicit,E("value",a),B(1),Ge(" ",a.name," "))},Ifb=function(a,b){a&1&&(ve(0),M(1,Hfb,2,2,"mat-option",27),we());a&2&&(a=b.$implicit,B(1),E("ngIf",a.shouldDisplay()))},Jfb=function(a,b){a&1&&(F(0,"mat-option",31),O(1),G());a&2&&(a=b.$implicit,E("value",a.id),B(1),Ge(" ",a.name," "))},Lfb=function(a){if(a&1){var b=x();F(0,"mat-form-field",8)(1,"mat-select",29);J("ngModelChange",function(c){z(b);var d=K();return A(d.preferredHomepage.selectedOptionId=
c)})("selectionChange",function(){z(b);var c=K();return A(Kfb(c.preferredHomepage))});M(2,Jfb,2,2,"mat-option",30);G()()}a&2&&(a=K(),B(1),E("ngModel",a.preferredHomepage.selectedOptionId),B(1),E("ngForOf",a.preferredHomepage.selectedMainOption.options))},Mfb=function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,E("value",a.value),B(1),Ge(" ",a.label," "))},Nfb=function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,E("value",a.value),B(1),Ge(" ",a.label," "))},Ofb=
function(a,b){a&1&&(F(0,"mat-option",32),O(1),G());a&2&&(a=b.$implicit,E("value",a.value),B(1),Ge(" ",a.label," "))},Pfb=function(a){if(a&1){var b=x();F(0,"div");H(1,"hr");F(2,"div",1)(3,"div",2);O(4," Other ");G();F(5,"div",5)(6,"div",6)(7,"label",33);O(8," Enable bug screensaver? ");G();F(9,"b-slide-toggle",34);J("modelChange",function(c){z(b);var d=K();return A(d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c)})("modelChange",function(){z(b);var c=K(),d=c.userPreferences.bugScreensaverPreferences.enableBugScreensaver;
return A(c.save("saveBugScreensaverPreferences",void 0===d?"undefined":d.toString()))});G()()()()()}a&2&&(a=K(),B(9),E("model",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},Qfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",Q(2,2,a)," "))},Rfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",Q(2,2,a)," "))},Sfb=function(a,b){a&
1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",Q(2,2,a)," "))},Tfb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",Q(2,2,a)," "))},Ufb=function(a,b){a&1&&(F(0,"mat-option",20),O(1),P(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,E("value",a),B(1),Ge(" ",Q(2,2,a)," "))},Vfb=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onBack.emit())});
H(1,"mat-icon",4);G()}a&2&&(a=K(),E("matTooltip",a.backLabel))},Wfb=function(a){if(a&1){var b=x();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onRefresh.emit())});H(1,"mat-icon",5);G()}a&2&&(a=K(),E("matTooltip",a.refreshLabel))},Xfb=function(a){a&1&&(F(0,"h2"),O(1),G());a&2&&(a=K(),B(1),He(a.title))},Yfb=function(a){a&1&&(F(0,"mat-tab",6)(1,"div",3),H(2,"b-beap-settings"),G()())},Zfb=function(a){if(a&1){var b=x();F(0,"b-star-toggle",13);J("starClicked",function(){z(b);var c=K(2);
return A(c.toggleStar())});G()}a&2&&(a=K(2),E("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},$fb=function(a){a&1&&H(0,"b-star-toggle",14);a&2&&E("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},agb=function(a,b){a&1&&(F(0,"li")(1,"a",15),O(2),G()());a&2&&(a=b.$implicit,b=K(2),B(1),
E("href",b.getUrl(a),Qd)("title",a.description),B(1),Ge(" ",b.getDisplayName(a)," "))},bgb=function(a){if(a&1){var b=x();F(0,"div")(1,"div",4)(2,"div",5);M(3,Zfb,1,3,"b-star-toggle",6);M(4,$fb,1,4,"b-star-toggle",7);F(5,"span",8);O(6);G();F(7,"button",9);J("click",function(){z(b);var c=K();return A(c.openEditBookmarkGroup())});G()();F(8,"div",10);O(9);G()();F(10,"ul",11);M(11,agb,3,3,"li",12);G()()}a&2&&(a=K(),B(3),E("ngIf",!a.userIsOwner),B(1),E("ngIf",a.userIsOwner),B(2),Ge("Bookmark Group: ",a.bookmarkGroup.name,
" "),B(3),He(a.bookmarkGroup.description),B(2),E("ngForOf",a.bookmarkGroup.item))},cgb=function(a){if(a&1){var b=x();F(0,"b-star-toggle",16);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});G()}a&2&&(a=K(2),E("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},dgb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&E("starMessage",
"You are the owner of this hotlist, and cannot star/unstar it.")("unStarMessage","You are the owner of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},egb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&E("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},fgb=function(a){a&1&&(F(0,"div",18),O(1," Hotlist not found. "),G());a&2&&E("bFocus",!0)},ggb=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},igb=function(a){a&1&&(F(0,"span",25),O(1," (archived) "),
G())},jgb=function(a){a&1&&(F(0,"span",26),O(1," \u00a0(changed) "),G())},kgb=function(a){if(a&1){var b=x();F(0,"div")(1,"span",19);O(2," Hotlist: ");F(3,"span",20);O(4);G()();M(5,igb,2,0,"span",21);F(6,"div",22)(7,"button",23);J("click",function(){z(b);var c=K(2);return A(c.openEditHotlist())});G()();M(8,jgb,2,0,"span",24);G()}a&2&&(a=K(2),B(3),E("matTooltip",a.hotlist.description),B(1),Ge(" ",a.hotlist.name," "),B(1),E("ngIf",a.hotlist.archived),B(3),E("ngIf",a.hasParamChanges()))},lgb=function(a){if(a&
1){var b=x();F(0,"div",27)(1,"button",28);J("click",function(){z(b);var c=K(2);return A(c.save())});O(2,"Save ");G();F(3,"button",29);J("click",function(){z(b);var c=K(2);return A(c.discardChanges())});O(4,"Discard changes ");G()()}},mgb=function(a){a&1&&(F(0,"div",9),M(1,cgb,1,3,"b-star-toggle",10),M(2,dgb,1,4,"b-star-toggle",11),M(3,egb,1,4,"b-star-toggle",11),F(4,"div",12),M(5,fgb,2,1,"div",13),M(6,ggb,2,0,"div",14),M(7,kgb,9,4,"div",14),G(),M(8,lgb,5,0,"div",15),G());a&2&&(a=K(),B(1),E("ngIf",
!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),E("ngIf",a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),E("ngIf",!a.hotlist),B(2),E("ngIf",!a.hotlist&&!a.hotlistLoading),B(1),E("ngIf",a.hotlistLoading),B(1),E("ngIf",a.hotlist&&!a.hotlistLoading),B(1),E("ngIf",a.hasParamChanges()))},ngb=function(a){a&1&&(F(0,"div",30),H(1,"b-spinner"),F(2,"span"),O(3),G()());a&2&&(a=K(),B(3),Ge(" Loading hotlist: ",a.hotlistId,""))},ogb=function(a){a&1&&(F(0,"div",31),O(1),G());a&2&&(a=K(),E("bFocus",
!0),B(1),Ge(" No issues in hotlist ",a.hotlistId,". "))},pgb=function(a){if(a&1){var b=x();F(0,"div",32)(1,"b-issues-grid",33);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K();return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,
c.event))})("onRowDragDrop",function(c){z(b);var d=K();return A(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){z(b);var c=K();return A(vt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(vt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},qgb=function(a){a&1&&(F(0,"div"),O(1," Loading details... "),G())},rgb=
function(a){a&1&&(F(0,"div"),O(1," Saved search not found. "),G())},sgb=function(a){a&1&&(F(0,"span",15),O(1," \u00a0(changed) "),G())},tgb=function(a){if(a&1){var b=x();F(0,"div",11);O(1," Saved search: ");F(2,"span",12);O(3);G();F(4,"button",13);J("click",function(){z(b);var c=K(2);return A(c.openEditSavedSearch())});G();M(5,sgb,2,0,"span",14);G()}a&2&&(a=K(2),B(2),E("matTooltip",a.savedSearch.description),B(1),Ge(" ",a.savedSearch.name," "),B(2),E("ngIf",a.hasParamChanges()))},ugb=function(a){a&
1&&(F(0,"div",9),M(1,qgb,2,0,"div",8),M(2,rgb,2,0,"div",8),M(3,tgb,6,3,"div",10),G());a&2&&(a=K(),B(1),E("ngIf",!a.savedSearch&&a.isLoading),B(1),E("ngIf",!a.savedSearch&&!a.isLoading),B(1),E("ngIf",a.savedSearch))},vgb=function(a){if(a&1){var b=x();F(0,"div",16)(1,"button",17);J("click",function(){z(b);var c=K();return A(c.save())});O(2,"Save ");G();F(3,"button",18);J("click",function(){z(b);var c=K();return A(c.discardChanges())});O(4,"Discard changes ");G();F(5,"span",19)(6,"a",20);J("click",function(){z(b);
var c=K();io(c.analytics,c.ANALYTICS_CATEGORY,"backToNormalSearch");return A()});O(7," Back to normal search");G()()()}a&2&&(a=K(),B(6),E("href",a.exitLink,Qd))},wgb=function(a){a&1&&(F(0,"span"),O(1),G());a&2&&(a=K(3),B(1),Ge(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},xgb=function(a){a&1&&(F(0,"div",24),H(1,"b-spinner"),M(2,wgb,2,1,"span",8),G());a&2&&(a=K(2),B(2),E("ngIf",a.searchParams))},ygb=function(a){a&1&&(F(0,"div",25),O(1," No issues in saved search. "),G());
a&2&&E("bFocus",!0)},zgb=function(a){if(a&1){var b=x();F(0,"div",26)(1,"b-issues-grid",27);J("init",function(c){z(b);var d=K(2);return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);
var c=K(2);return A(vt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K(2);return A(vt(c,c.page,-1))});G()()}a&2&&(a=K(2),B(1),E("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Agb=function(a){a&1&&(F(0,"div"),M(1,xgb,3,1,"div",21),M(2,ygb,2,1,"div",22),M(3,zgb,2,5,"div",23),G());a&2&&(a=K(),B(1),E("ngIf",a.isLoading),B(1),E("ngIf",!a.isLoading&&!a.hasResults()),B(1),E("ngIf",!a.isLoading&&
a.hasResults()))},Bgb=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"Issue email");G();F(3,"input",20,21);J("focus",function(){z(b);var d=Fe(4);return A(d.select())});G();F(5,"button",22);J("click",function(){z(b);var d=Fe(4),e=K();return A(Jt(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Fe(4);a=K();B(1);E("htmlFor",c.id);B(2);ke("value",a.getIssueEmail())}},Cgb=function(a){if(a&1){var b=x();F(0,"div",7)(1,"label",8);O(2,"TODO comment");G();F(3,"input",23,24);J("focus",function(){z(b);
var d=Fe(4);return A(d.select())});G();F(5,"button",25);J("click",function(){z(b);var d=Fe(4),e=K();return A(Jt(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=Fe(4);a=K();B(1);E("htmlFor",c.id);B(2);ke("value",a.getTodoComment())}},Dgb=function(a){if(a&1){var b=x();F(0,"b-button",6);J("onAction",function(){z(b);var c=K();return A(c.markAsDuplicate.emit())});F(1,"span");O(2,"Mark as Duplicate");G()()}a&2&&(a=K(),E("disabled",!a.hasAclToEdit||a.statusIsSaving))},Egb=function(a){if(a&1){var b=x();F(0,
"b-button",7);J("onAction",function(){z(b);var c=K();return A(c.clearCanonical.emit())});F(1,"span");O(2,"Unmark as Duplicate");G()()}a&2&&(a=K(),E("disabled",!a.hasAclToEdit||a.statusIsSaving))},Fgb=function(a){if(a&1){var b=x();F(0,"b-app-vote-button",8);J("onVote",function(){z(b);var c=K();return A(c.onVote.emit())});G()}a&2&&(a=K(),E("issueId",a.issueId)("upvoted",a.upvoted)("voteCount",a.voteCount))},Ggb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",8),P(1,"async"));a&2&&(a=K(),E("issueId",
a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!Q(1,4,a.isWithinExternalComponent$)))},Hgb=function(a){if(a&1){var b=x();F(0,"span",9);J("click",function(){z(b);var c=K();return A(Kt(c.parent))})("keydown.enter",function(){z(b);var c=K();return A(Kt(c.parent))});P(1,"async");P(2,"async");P(3,"async");P(4,"async");G()}a&2&&(a=K(),pe("bv2-disabled",!Q(1,5,a.hasAclToEdit$)||!!Q(2,7,
a.isSaving$(a.IssueSavingKey.TITLE))),E("matTooltip",Lt(a.parent)),ke("aria-label",Lt(a.parent))("aria-disabled",!Q(3,9,a.hasAclToEdit$)||!!Q(4,11,a.isSaving$(a.IssueSavingKey.TITLE))))},Jgb=function(a){if(a&1){var b=x();F(0,"div",37)(1,"b-rel-issues-picker",38);J("itemsChange",function(c){z(b);var d=K(2);return A(Igb(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");G()()}a&2&&(a=K(2),ke("aria-hidden","BLOCKED"!=a.parent.relatedIssuesTrayOpen),B(1),E("disabled",!!Q(2,8,a.isSaving$("blockedByIssueId"))||
!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove blocking issue":"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add blocking issue":"")("items",a.parent.blockedByIssues)("searchLink",a.parent.blockingIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},Lgb=function(a){if(a&1){var b=x();F(0,"div",39)(1,"b-rel-issues-picker",40);J("itemsChange",function(c){z(b);var d=K(2);return A(Kgb(d.parent,c))});P(2,"async");P(3,"async");
P(4,"async");P(5,"async");G()()}a&2&&(a=K(2),ke("aria-hidden","BLOCKING"!=a.parent.relatedIssuesTrayOpen),B(1),E("disabled",!!Q(2,8,a.isSaving$("blockingIssueId"))||!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove blocked issue":"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add blocked issue":"")("items",a.parent.blockingIssues)("searchLink",a.parent.blockedIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},Mgb=function(a){a&
1&&(F(0,"div",41),H(1,"b-rel-issues-picker",42),G());a&2&&(a=K(2),ke("aria-hidden","DUPLICATES"!=a.parent.relatedIssuesTrayOpen),B(1),E("disabled",!0)("hideStatus",!0)("items",a.parent.duplicateIssues))},Ngb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",46)},Pgb=function(a){if(a&1){var b=x();F(0,"div",43)(1,"b-rel-issues-picker",44);J("itemChange",function(c){z(b);var d=K(2);return A(Ogb(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");M(6,Ngb,1,0,"b-wtdm-info-hovercard",45);G()()}a&
2&&(a=K(2),ke("aria-hidden","PARENTS"!=a.parent.relatedIssuesTrayOpen),B(1),E("disabled",!!Q(2,8,a.isSaving$(a.IssueSavingKey.PARENT_ISSUES))||!Q(3,10,a.hasAclToEdit$))("removeButtonTitle",Q(4,12,a.hasAclToEdit$)?"Remove parent issue":"")("addButtonTitle",Q(5,14,a.hasAclToEdit$)?"Add parent issue":"")("items",a.parent.parentIssues)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId),B(5),E("ngIf",!a.parent.sessionIsExternal))},Qgb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",
46)},Tgb=function(a){if(a&1){var b=x();F(0,"div",47)(1,"b-rel-issues-picker",48);J("itemChange",function(d){z(b);var e=K(2);return A(Rgb(e.parent,d))})("itemMove",function(d){z(b);var e=K(2);return A(Rgb(e.parent,d))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");P(6,"async");M(7,Qgb,1,0,"b-wtdm-info-hovercard",45);G()()}if(a&2){a=K(2);var c;ke("aria-hidden","CHILDREN"!=a.parent.relatedIssuesTrayOpen);B(1);E("disabled",!!Q(2,10,a.isSaving$("childIssues"))||!Q(3,12,a.hasAclToEdit$))("removeButtonTitle",
Q(4,14,a.hasAclToEdit$)?"Remove child issue":"")("addButtonTitle",Q(5,16,a.hasAclToEdit$)?"Add child issue":"")("items",null!==(c=Q(6,18,a.parent.childIssues$))&&void 0!==c?c:Ke(20,Sgb))("searchLink",a.parent.childIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId)("reorderable",!0);B(6);E("ngIf",!a.parent.sessionIsExternal)}},Ugb=function(a,b){a&1&&H(0,"b-package-mentions-listing",53);if(a&2){a=b.$implicit;b=K(2).ngIf;var c=K(3);E("issueId",""+c.parent.issueId)("packageMentionSet",
a)("displayPackageName",c.parent.displayPackageNames(b))}},Vgb=function(a){a&1&&(ve(0),M(1,Ugb,1,3,"b-package-mentions-listing",52),we());a&2&&(a=K().ngIf,B(1),E("ngForOf",a.mentions.packageMentionSet))},Wgb=function(a,b){if(a&1){var c=x();ve(0);M(1,Vgb,2,1,"ng-container",36);F(2,"div",50)(3,"a",51);J("click",function(){z(c);var d=K(3);return A(d.parent.trackSqueegeeClick())});O(4,"View in Squeegee");G()();we()}a&2&&(a=b.ngIf,B(1),E("ngIf",a.mentions),B(2),E("href",a.link,Qd))},Xgb=function(a){a&
1&&(F(0,"div",49),M(1,Wgb,5,2,"ng-container",36),P(2,"async"),G());a&2&&(a=K(2),ke("aria-hidden","MENTIONS"!=a.parent.relatedIssuesTrayOpen),B(1),E("ngIf",Q(2,2,a.parent.codeMentionsState$)))},Ygb=function(a){if(a&1){var b=x();F(0,"b-callout",54)(1,"b-callout-body");O(2," This issue is leveraging a new work tracking data model. Help us improve it by joining the early access group and reloading the page. ");F(3,"a",55);O(4,"Learn more");G()();F(5,"b-callout-actions")(6,"b-button",56);J("onAction",
function(){z(b);var c=K(2).wtdmEa;c.dismissalService.dismiss("wtdm-ea-announcement").pipe(fg(c.destroyed$)).subscribe();return A()});O(7,"Dismiss");G();F(8,"a",57)(9,"b-button",58);O(10,"Opt in");G()()()()}a&2&&E("messageType","info")("format","app")},Zgb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",59),P(1,"async"));a&2&&(a=K(2),E("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",
!!Q(1,4,a.isWithinExternalComponent$)))},$gb=function(a){if(a&1){var b=x();F(0,"span",60,61);J("click",function(){z(b);var c=K(2);return A(Kt(c.parent))})("keydown",function(c){z(b);var d=K(2);return A(Kt(d.parent,c))});P(2,"async");P(3,"async");P(4,"async");P(5,"async");G()}a&2&&(a=K(2),pe("bv2-disabled",!Q(2,5,a.hasAclToEdit$)||!!Q(3,7,a.isSaving$(a.IssueSavingKey.TITLE))),E("matTooltip",Lt(a.parent)),ke("aria-label",Lt(a.parent))("aria-disabled",!Q(4,9,a.hasAclToEdit$)||!!Q(5,11,a.isSaving$(a.IssueSavingKey.TITLE))))},
ahb=function(a){a&1&&(F(0,"div"),O(1," You must have "),F(2,"strong"),O(3,"issue admin"),G(),O(4," access. "),G())},bhb=function(a){a&1&&(F(0,"div"),O(1," You can change admin settings in the "),F(2,"a",66),O(3,"component management page"),G(),O(4,". "),G());a&2&&(a=K(4),B(2),E("href",a.paths.manageComponentAcl(a.parent.issue.componentId),Qd))},chb=function(a){a&1&&(F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),O(2," Flag this issue as spam. "),M(3,ahb,5,0,"div",36),P(4,"async"),M(5,bhb,
5,1,"div",36),P(6,"async"),P(7,"async"),G()());a&2&&(a=K(3),B(3),E("ngIf",!Q(4,2,a.canDeleteIssue$)),B(2),E("ngIf",!Q(6,4,a.canDeleteIssue$)&&Q(7,6,a.userIsComponentAdmin$)))},dhb=function(a){if(a&1){var b=x();F(0,"div",62)(1,"b-button",63);J("onAction",function(){z(b);var d=K(2);return A(d.parent.showFlagAsSpamDialog())});P(2,"async");H(3,"b-icon",64);G();M(4,chb,8,8,"ng-template",null,65,Mf);G()}if(a&2){var c=Fe(5);a=K(2);E("xapInlineDialog",c);B(1);E("disabled",!Q(2,2,a.canDeleteIssue$))}},fhb=
function(a,b){if(a&1){var c=x();F(0,"b-hotlist-chip-smart",67);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(ehb(e,d))});G()}a&2&&E("id",""+b.$implicit)},ghb=function(a){a&1&&(F(0,"div",68)(1,"span"),O(2),G()());a&2&&(a=K(2),B(2),Ie("",a.parent.voteCount," ",1==a.parent.voteCount?"person has":"people have"," starred this issue."))},hhb=function(a){if(a&1){var b=x();F(0,"a",72);J("click",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();
c.stopPropagation();return A()})("keydown.enter",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()});G()}a&2&&E("matTooltip","Change component")},ihb=function(a){a&1&&(F(0,"div",69)(1,"b-async-data-placeholder",18),P(2,"async"),H(3,"b-component-breadcrumb",70),P(4,"async"),M(5,hhb,1,1,"a",71),P(6,"async"),G()());if(a&2){a=K(2);var b;B(1);E("isReady",!!Q(2,4,a.parent.componentPathInfo$));B(2);E("componentPathInfo",
Q(4,6,a.parent.componentPathInfo$))("isArchived",null!==(b=null==a.parent.currentComponent?null:a.parent.currentComponent.archived)&&void 0!==b?b:!1);B(2);E("ngIf",Q(6,8,a.hasAclToEdit$))}},jhb=function(a){if(a&1){var b=x();F(0,"b-team-component-picker",73);J("selectedComponentChange",function(c){z(b);var d=K(2);return A(M5a(d.issueEditComponentService,d.parent.issueId,null!==c&&void 0!==c?c:null))})("dropdownClosed",function(){z(b);var c=K(2).parent;c.editComponent=!1;c.hotkeys.unpause();return A()});
G()}a&2&&(a=K(2),E("selectedComponent",a.parent.newComponent)("placeholder","Choose Component")("isRequired",!0)("shouldFocus",!0))},nhb=function(a){a&1&&H(0,"b-actions-menu",74);if(a&2){a=K(2).parent;var b={permissions:a.issuePermissionService.issuePermissions(),accessLevel:a.issuePermissionService.accessLevel(),isDeleted:a.issue.isDeleted,isArchived:a.issue.isArchived,isInternal:a.activeSession.isInternalSession(),isComponentAdmin:a.issuePermissionService.userIsComponentAdmin(),retentionOverride:a.issueDetailsBrain.retention(),
retentionState:a.issueDetailsBrain.retentionState()};a=[khb(a,b),lhb(a,b),mhb(a,b)].filter(el);E("menuItems",a)("buttonLabel","Issue actions")("matTooltip","Issue actions")}},ohb=function(a){if(a&1){var b=x();F(0,"div",75)(1,"p");O(2);G();F(3,"b-button",76);J("onAction",function(){z(b);var c=K(2);return A(c.parent.undelete())});P(4,"async");P(5,"async");O(6," Undelete Issue ");G()()}a&2&&(a=K(2),B(2),Ge(" This issue has been marked for deletion for reason '",a.parent.issue.deletionReason,"'. Some changes can still be made to the issue but it will not appear in regular search results. "),
B(1),E("tooltip",Q(4,3,a.undeleteButtonTooltip$)||"")("disabled",!Q(5,5,a.canUndeleteIssue$)))},qhb=function(a){a&1&&(H(0,"b-history-event-stream",77),P(1,"async"));a&2&&(a=K(2),E("issueId",a.parent.issueId)("issueAccessLevel",Q(1,3,a.accessLevel$))("events",Le(5,phb,a.parent.firstEvent)))},rhb=function(a){a&1&&(H(0,"b-history-event-stream",78),P(1,"async"));a&2&&(a=K(2),E("issueId",a.parent.issueId)("issueAccessLevel",Q(1,4,a.accessLevel$))("events",a.parent.events)("showFullHistory",a.parent.preferences.showFullHistory))},
shb=function(a){a&1&&(F(0,"div",79)(1,"div",80)(2,"p",81),H(3,"b-spinner"),O(4," Loading history and comments... "),G()()())},thb=function(a){if(a&1){var b=x();F(0,"span")(1,"b-checkbox",89);J("change",function(){z(b);var d=K(3);return A(d.parent.toggleAutoCcOnComment())});P(2,"async");G()()}if(a&2){a=K(3);var c;B(1);E("checked",null!==(c=a.parent.preferences.autoCcOnComment)&&void 0!==c?c:!1)("disabled",!!Q(2,2,a.isCurrentUserCCd$))}},uhb=function(a){a&1&&(H(0,"b-checkbox",92),P(1,"async"));a&2&&
(a=K(4),E("checked",!0)("disabled",!0)("tooltip",Q(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},vhb=function(a){a&1&&(F(0,"span",90),M(1,uhb,2,5,"b-checkbox",91),P(2,"async"),G());a&2&&(a=K(3),B(1),E("ngIf",Q(2,1,a.isCurrentUserCCd$)))},whb=function(a){a&1&&H(0,"b-markdown-toggle")},Ahb=function(a){if(a&1){var b=x();F(0,"div")(1,"h3",82);O(2,"Add comment");G();F(3,"div",83)(4,"b-comment-box",84,85);J("onHotkey",function(){z(b);var d=Fe(5);return A(ebb(d,"editpage-hotkey"))})("onChange",
function(){z(b);var d=K(2);return A(d.parent.saveCommentDraft())})("onSubmit",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())})("onRestrict",function(){z(b);var d=K(2);return A(d.parent.showNewContentJudgementDialog())});P(6,"async");P(7,"async");F(8,"div",86)(9,"b-button",87);J("onAction",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())});O(10," Comment ");G();F(11,"div",86);M(12,thb,3,4,"span",36);P(13,"async");P(14,"async");M(15,vhb,3,3,"span",88);P(16,"async");
P(17,"async");M(18,whb,1,0,"b-markdown-toggle",36);P(19,"async");G();H(20,"b-access-level-indicator",16);P(21,"async");G()()()()}if(a&2){a=K(2);var c;B(4);E("hotkey",a.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.parent.issueId)("comment",a.parent.comment)("componentId",a.parent.issue.componentId)("placeholder",xhb(a.parent))("judgementForNewContent",a.parent.judgementForNewContent)("audience",null!==(c=Q(6,15,a.audience$))&&void 0!==c?c:void 0)("disabled",!yhb(a.parent))("attachmentsDisabled",
!Q(7,17,a.hasAclToComment$));B(5);E("disabled",!zhb(a.parent));B(3);E("ngIf",!Q(13,19,a.isCurrentUserCCd$)&&Q(14,21,a.hasAclToEdit$));B(3);E("ngIf",Q(16,23,a.isCurrentUserCCd$)||!Q(17,25,a.hasAclToEdit$));B(3);E("ngIf",Q(19,27,a.hasAclToComment$));B(2);E("accessLevel",Q(21,29,a.accessLevel$))}},Dhb=function(a){if(a&1){var b=x();F(0,"div",1)(1,"div",2);M(2,Jgb,6,16,"div",3);M(3,Lgb,6,16,"div",4);M(4,Mgb,2,4,"div",5);M(5,Pgb,7,16,"div",6);M(6,Tgb,8,21,"div",7);M(7,Xgb,3,4,"div",8);G();M(8,Ygb,11,2,
"b-callout",9);P(9,"async");P(10,"async");F(11,"div",10)(12,"edit-issue-scroll-eclipse",11);J("eclipsing",function(e){z(b);var f=K();return A(f.scrollEclipseShowing=e)});G();F(13,"div",12)(14,"div",13)(15,"b-star-toggle",14);J("onHotkey",function(){z(b);var e=K();return A(e.parent.toggleStarDebounced())})("starClicked",function(){z(b);var e=K();return A(e.parent.toggleStar())});P(16,"async");G();M(17,Zgb,2,6,"b-issue-id-picker-legacy",15);H(18,"b-access-level-indicator",16);P(19,"async");F(20,"h3",
17)(21,"b-async-data-placeholder",18)(22,"span",19)(23,"span",19);O(24);G();M(25,$gb,6,13,"span",20);P(26,"async");G()()();M(27,dhb,6,4,"div",21);F(28,"span");M(29,fhb,1,1,"b-hotlist-chip-smart",22);G()();H(30,"div",23);M(31,ghb,3,2,"div",24);F(32,"div",25)(33,"div",26);M(34,ihb,7,10,"div",27);M(35,jhb,1,4,"b-team-component-picker",28);G();F(36,"span",29);H(37,"b-retention-chip",30);P(38,"async");P(39,"async");G();M(40,nhb,1,3,"b-actions-menu",31);G()();M(41,ohb,7,7,"div",32);M(42,qhb,2,7,"b-history-event-stream",
33);M(43,rhb,2,6,"b-history-event-stream",34);M(44,shb,5,0,"div",35);M(45,Ahb,22,31,"div",36);G()()}if(a&2){a=K();var c,d;B(2);E("ngIf","BLOCKED"==a.parent.relatedIssuesTrayOpen);B(1);E("ngIf","BLOCKING"==a.parent.relatedIssuesTrayOpen);B(1);E("ngIf","DUPLICATES"==a.parent.relatedIssuesTrayOpen);B(1);E("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"PARENTS"==a.parent.relatedIssuesTrayOpen);B(1);E("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"CHILDREN"==a.parent.relatedIssuesTrayOpen);
B(1);E("ngIf",!a.parent.sessionIsExternal&&"MENTIONS"==a.parent.relatedIssuesTrayOpen);B(1);E("ngIf",Bhb(a.parent)&&!Q(9,35,a.isWithinExternalComponent$)&&Q(10,37,a.wtdmEa.shouldEnableEaCallout$));B(3);E("bFocus",!a.parent.isLoading);ke("aria-label",a.parent.issue.title);B(1);E("parent",a.parent);B(3);E("starMessage",a.parent.starTooltip)("unStarMessage",a.parent.unStarTooltip)("starred",null==a.parent.userData?null:a.parent.userData.starred)("hotkey",a.HOTKEYS.TOGGLE_STAR)("disabled",!!Q(16,39,a.isSaving$("star")));
B(2);E("ngIf",!a.scrollEclipseShowing);B(1);E("accessLevel",Q(19,41,a.accessLevel$));B(3);E("isReady",!!a.parent.issue.title);B(1);ke("aria-label",a.parent.ariaIssueTitle);B(2);He(a.parent.issue.title);B(1);E("ngIf",Q(26,43,a.hasAclToEdit$));B(2);E("ngIf",Chb(a));B(2);E("ngForOf",a.parent.issue.hotlistId);B(2);E("ngIf",!a.parent.frontendIsInternalOrPartner);B(3);E("ngIf",!a.parent.editComponent);B(1);E("ngIf",a.parent.editComponent);B(2);E("retentionState",null!==(c=Q(38,45,a.retentionState$))&&void 0!==
c?c:void 0)("compactMode",!1)("modifiedTime",null!==(d=Q(39,47,a.modifiedTime$))&&void 0!==d?d:void 0);B(3);E("ngIf",!a.parent.issue.isDeleted);B(1);E("ngIf",a.parent.issue.isDeleted);B(1);E("ngIf",a.parent.firstEvent);B(1);E("ngIf",!a.parent.areEventsLoading);B(1);E("ngIf",a.parent.areEventsLoading);B(1);E("ngIf",!a.parent.issue.isDeleted)}},Ehb=function(a){a&1&&(F(0,"output",1),O(1),G());a&2&&(a=K(),oe("background-color",a.entity.color)("color",a.entity.textColor||"inherit"),pe("smallType",a.isMultiCharShortName())("uncoloredMultichar",
a.isMultiCharShortName()&&null==a.entity.color)("noShortName",!a.entity.shortName),E("title",a.getTooltip(a.entity)),B(1),Ge(" ",a.entity.shortName," "))},Fhb=function(a){return null==a?!1:1<Array.from(a.shortName||"").length},Ghb=function(a){if(null!=a){var b=a.title,c=a.shortName;a=a.color;var d="";null!=c&&(d="["+c+"] ");c="";null!=a&&(c=" (color: "+a+")");return d+b+c}},Hhb=function(a){if(a&1){var b=x();ve(0);F(1,"mat-form-field",1)(2,"input",2);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.color=
c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();F(3,"mat-hint");O(4,"The main color that represents this item");G()();F(5,"mat-form-field",3)(6,"input",4);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.shortName=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();H(7,"mat-hint");G();F(8,"mat-form-field",1)(9,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.textColor=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});
G();F(10,"mat-hint");O(11,"Only needed if you choose a dark color");G()();we()}a&2&&(a=K(),B(2),E("ngModel",a.entity.color),B(4),E("ngModel",a.entity.shortName),B(3),E("ngModel",a.entity.textColor))},Ihb=function(){return new Mt(new Nt("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s"))},Jhb=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},Ot="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==
Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},Khb=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");},oi=Khb(this),Pt=function(a,b){if(b)a:{var c=oi;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&Ot(c,a,{configurable:!0,
writable:!0,value:b})}};Pt("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Ot(this,"description",{configurable:!0,writable:!0,value:h})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("b");return new b(c+(f||"")+"_"+d++,f)};return e});
Pt("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=oi[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&Ot(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Lhb(Jhb(this))}})}return a});Pt("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var Lhb=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Qt=function(a){return a.raw=a},r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Jhb(a)}},tf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},v=function(a){return a instanceof Array?a:tf(r(a))},Rt=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Mhb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=
1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Rt(d,e)&&(a[e]=d[e])}return a};Pt("Object.assign",function(a){return a||Mhb});var Nhb="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Ohb;
if("function"==typeof Object.setPrototypeOf)Ohb=Object.setPrototypeOf;else{var Phb;a:{var Qhb={a:!0},Rhb={};try{Rhb.__proto__=Qhb;Phb=Rhb.a;break a}catch(a){}Phb=!1}Ohb=Phb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var St=Ohb,U=function(a,b){a.prototype=Nhb(b.prototype);a.prototype.constructor=a;if(St)St(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},Tt=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
Tt.prototype.start_=function(){if(this.isRunning_)throw new TypeError("g");this.isRunning_=!0};Tt.prototype.next_=function(a){this.yieldResult=a};Tt.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Tt.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var ff=function(a,b,c){a.nextAddress=c;return{value:b}};Tt.prototype.jumpTo=function(a){this.nextAddress=a};
var gf=function(a){a.nextAddress=0},Ut=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},Vt=function(a,b){a.nextAddress=b;a.catchAddress_=0},Wt=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Xt=function(a){a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=0;a.finallyAddress_=0},Yt=function(a,b){var c=a.finallyContexts_.splice(0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||
a.finallyAddress_:void 0!=c.jumpTo&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b},Zt=function(a){this.context_=new Tt;this.program_=a};Zt.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Shb(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return $t(this)};
var Thb=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Shb(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return $t(a)};Zt.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Shb(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return $t(this)};
var Shb=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("f`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(h){return a.context_.yieldAllIterator_=null,a.context_.throw_(h),$t(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return $t(a)},$t=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}},Uhb=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Thb(a,b)};this[Symbol.iterator]=function(){return this}},LTa=function(a){var b=MTa;a=new Uhb(new Zt(a));St&&b.prototype&&St(a,
b.prototype);return a},Vhb=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}f(a.next())})},ef=function(a){return Vhb(new Uhb(new Zt(a)))},Xfa=function(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};void 0!==a["throw"]&&(this["throw"]=function(b){return Promise.resolve(a["throw"](b))});
void 0!==a["return"]&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},tc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Pt("Reflect.setPrototypeOf",function(a){return a?a:St?function(b,c){try{return St(b,c),!0}catch(d){return!1}}:null});
Pt("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof e?h:new e(function(k){k(h)})}if(a)return a;b.prototype.asyncExecute=function(h){if(null==this.batch_){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)};var d=oi.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(u){return function(y){q||(q=!0,u.call(k,y))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("h"));else if(h instanceof e)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k=null!=h;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};e.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(q){this.reject_(q);return}"function"==typeof k?this.settleSameAsThenable_(k,h):this.fulfill_(h)};e.prototype.reject_=
function(h){this.settle_(2,h)};e.prototype.fulfill_=function(h){this.settle_(1,h)};e.prototype.settle_=function(h,k){if(0!=this.state_)throw Error("i`"+h+"`"+k+"`"+this.state_);this.state_=h;this.result_=k;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=oi.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=oi.CustomEvent,k=oi.Event,q=oi.dispatchEvent;if("undefined"===typeof q)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof k?h=new k("unhandledrejection",{cancelable:!0}):(h=oi.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(u){q.reject(u)}};e.prototype.then=function(h,k){function q(I,N){return"function"==typeof I?function(L){try{u(I(L))}catch(S){y(S)}}:
N}var u,y,D=new e(function(I,N){u=I;y=N});this.callWhenSettled_(q(h,u),q(k,y));return D};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(u.state_){case 1:h(u.result_);break;case 2:k(u.result_);break;default:throw Error("j`"+u.state_);}}var u=this;null==this.onSettledCallbacks_?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var u=r(h),y=u.next();!y.done;y=u.next())c(y.value).callWhenSettled_(k,q)})};e.all=function(h){var k=r(h),q=k.next();return q.done?c([]):new e(function(u,y){function D(L){return function(S){I[L]=S;N--;0==N&&u(I)}}var I=[],N=0;do I.push(void 0),N++,c(q.value).callWhenSettled_(D(I.length-1),y),q=k.next();while(!q.done)})};return e});var au=function(a,b,c){if(null==a)throw new TypeError("k`"+c);if(b instanceof RegExp)throw new TypeError("l`"+c);return a+""};
Pt("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=au(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});var Whb=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}};Pt("Array.prototype.find",function(a){return a?a:function(b,c){return Whb(this,b,c).v}});
Pt("WeakMap",function(a){function b(){}function c(q){var u=typeof q;return"object"===u&&null!==q||"function"===u}function d(q){if(!Rt(q,f)){var u=new b;Ot(q,f,{value:u})}}function e(q){var u=Object[q];u&&(Object[q]=function(y){if(y instanceof b)return y;Object.isExtensible(y)&&d(y);return u(y)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),u=Object.seal({}),y=new a([[q,2],[u,3]]);if(2!=y.get(q)||3!=y.get(u))return!1;y.delete(q);y.set(u,4);return!y.has(q)&&4==y.get(u)}catch(D){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var h=0,k=function(q){this.id_=(h+=Math.random()+1).toString();if(q){q=r(q);for(var u;!(u=q.next()).done;)u=u.value,this.set(u[0],u[1])}};k.prototype.set=function(q,u){if(!c(q))throw Error("m");d(q);if(!Rt(q,f))throw Error("n`"+q);q[f][this.id_]=u;return this};k.prototype.get=function(q){return c(q)&&Rt(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&Rt(q,f)&&Rt(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&Rt(q,f)&&Rt(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Pt("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),q=new a(r([[k,"s"]]));if("s"!=q.get(k)||1!=q.size||q.get({x:4})||q.set({x:4},"t")!=q||2!=q.size)return!1;var u=q.entries(),y=u.next();if(y.done||y.value[0]!=k||"s"!=y.value[1])return!1;y=u.next();return y.done||4!=y.value[0].x||"t"!=y.value[1]||!u.next().done?!1:!0}catch(D){return!1}}())return a;var b=new WeakMap,c=function(k){this.data_={};this.head_=
f();this.size=0;if(k){k=r(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=0===k?0:k;var u=d(this,k);u.list||(u.list=this.data_[u.id]=[]);u.entry?u.entry.value=q:(u.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:k,value:q},u.list.push(u.entry),this.head_.previous.next=u.entry,this.head_.previous=u.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||
delete this.data_[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.data_={};this.head_=this.head_.previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=
function(){return e(this,function(k){return k.value})};c.prototype.forEach=function(k,q){for(var u=this.entries(),y;!(y=u.next()).done;)y=y.value,k.call(q,y[1],y[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var u=q&&typeof q;"object"==u||"function"==u?b.has(q)?u=b.get(q):(u=""+ ++h,b.set(q,u)):u="p_"+q;var y=k.data_[u];if(y&&Rt(k.data_,u))for(k=0;k<y.length;k++){var D=y[k];if(q!==q&&D.key!==D.key||q===D.key)return{id:u,list:y,index:k,entry:D}}return{id:u,list:y,index:-1,
entry:void 0}},e=function(k,q){var u=k.head_;return Lhb(function(){if(u){for(;u.head!=k.head_;)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:q(u)};u=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Pt("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Pt("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});var Xhb=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};Pt("Array.prototype.entries",function(a){return a?a:function(){return Xhb(this,function(b,c){return[b,c]})}});
Pt("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});Pt("Object.setPrototypeOf",function(a){return a||St});Pt("Array.prototype.keys",function(a){return a?a:function(){return Xhb(this,function(b){return b})}});Pt("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
Pt("Set",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)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||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=0===c?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});Pt("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
Pt("Array.prototype.values",function(a){return a?a:function(){return Xhb(this,function(b,c){return c})}});Pt("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=au(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
Pt("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});var bu=function(a){return a?a:Array.prototype.fill};Pt("Int8Array.prototype.fill",bu);Pt("Uint8Array.prototype.fill",bu);Pt("Uint8ClampedArray.prototype.fill",bu);Pt("Int16Array.prototype.fill",bu);Pt("Uint16Array.prototype.fill",bu);Pt("Int32Array.prototype.fill",bu);
Pt("Uint32Array.prototype.fill",bu);Pt("Float32Array.prototype.fill",bu);Pt("Float64Array.prototype.fill",bu);Pt("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});Pt("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Whb(this,b,c).i}});Pt("Array.prototype.flatMap",function(a){return a?a:function(b,c){for(var d=[],e=0;e<this.length;e++){var f=b.call(c,this[e],e,this);Array.isArray(f)?d.push.apply(d,f):d.push(f)}return d}});
Pt("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(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});Pt("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==au(this,b,"includes").indexOf(b,c||0)}});Pt("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Rt(b,d)&&c.push([d,b[d]]);return c}});
Pt("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("o`"+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("p");c[d[0]]=d[1]}return c}});Pt("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Rt(b,d)&&c.push(b[d]);return c}});
Pt("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;})})}});Pt("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
Pt("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)}});
Pt("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("q");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
Pt("String.prototype.codePointAt",function(a){return a?a:function(b){var c=au(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(0<=b&&b<d){b|=0;var e=c.charCodeAt(b);if(55296>e||56319<e||b+1===d)return e;b=c.charCodeAt(b+1);return 56320>b||57343<b?e:1024*(e-55296)+b+9216}}});
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var cu=cu||{},da=this||self,Qo=function(a,b){a=a.split(".");b=b||da;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Oa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Fa=function(a){var b=Oa(a);return"array"==b||"object"==b&&"number"==typeof a.length},Ga=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ha=function(a){return Object.prototype.hasOwnProperty.call(a,Yhb)&&a[Yhb]||(a[Yhb]=++Zhb)},Yhb="closure_uid_"+(1E9*Math.random()>>>
0),Zhb=0,$hb=function(a,b,c){return a.call.apply(a.bind,arguments)},aib=function(a,b,c){if(!a)throw Error();if(2<arguments.length){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)}},du=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?du=$hb:du=aib;return du.apply(null,arguments)},eu=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)}},fu=function(){return Date.now()},bib=function(a){(0,eval)(a)},gu=function(a,b){a=a.split(".");var c=da;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},hu=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;
a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}},cib=function(a){return a};
var aa={};
hu(ba,Error);ba.prototype.name="CustomError";
var dib;
hu(ca,ba);ca.prototype.name="AssertionError";
var Qi=function(a,b){return 0==a.lastIndexOf(b,0)},iu=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},mOa=function(a){return 0==ju("@ldap.google.com",a.slice(a.length-16))},Zi=function(a){return/^[\s\xa0]*$/.test(a)},Ui=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ju=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},lib=function(a){if(!eib.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(fib,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(gib,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(hib,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(iib,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(jib,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(kib,"&#0;"));return a},fib=/&/g,gib=/</g,hib=/>/g,iib=/"/g,jib=/'/g,kib=/\x00/g,eib=/[\x00&<>"']/,fa=function(a,b){return-1!=a.indexOf(b)},pa=function(a,b){return fa(a.toLowerCase(),b.toLowerCase())},qa=function(a,b){var c=0;a=Ui(String(a)).split(".");
b=Ui(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=mib(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||mib(0==f[2].length,0==h[2].length)||mib(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},mib=function(a,b){return a<b?-1:a>b?1:0};
var ua=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},nib=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,k=0;k<d;k++)if(k in h){var q=h[k];b.call(c,q,k,a)&&(e[f++]=q)}return e},ku=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="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},oib=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=
"string"===typeof a?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 pib=function(a){pib[" "](a);return a};pib[" "]=function(){};var qib=function(a,b){try{return pib(a[b]),!0}catch(c){}return!1},kHa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
var rib=ia("Opera"),lu=baa(),mu=ia("Edge"),Zna=mu||lu,nu=ia("Gecko")&&!(pa(ea(),"WebKit")&&!ia("Edge"))&&!(ia("Trident")||ia("MSIE"))&&!ia("Edge"),ou=pa(ea(),"WebKit")&&!ia("Edge"),sib=ou&&ia("Mobile"),pu=ia("Macintosh"),tib=ia("Windows"),uib=ia("Linux")||ia("CrOS"),vib=da.navigator||null;vib&&fa(vib.appVersion||"","X11");var wib=ia("Android"),xib=na(),yib=ia("iPad"),zib=ia("iPod"),Aib=oa();pa(ea(),"KaiOS");var Bib=function(){var a=da.document;return a?a.documentMode:void 0},Cib;
a:{var Dib="",Eib=function(){var a=ea();if(nu)return/rv:([^\);]+)(\)|;)/.exec(a);if(mu)return/Edge\/([\d\.]+)/.exec(a);if(lu)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ou)return/WebKit\/(\S+)/.exec(a);if(rib)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Eib&&(Dib=Eib?Eib[1]:"");if(lu){var Fib=Bib();if(null!=Fib&&Fib>parseFloat(Dib)){Cib=String(Fib);break a}}Cib=Dib}var qu=Cib,Gib={},ru=function(a){return kHa(Gib,a,function(){return 0<=qa(qu,a)})},Hib;
if(da.document&&lu){var Iib=Bib();Hib=Iib?Iib:parseInt(qu,10)||void 0}else Hib=void 0;var su=Hib;
var Jib=ja(),Kib=na()||ia("iPod"),Lib=ia("iPad"),Mib=daa(),Nib=la(),Oib=caa()&&!oa();
var Pib={},tu=null,Qib=nu||ou||!Oib&&!lu&&"function"==typeof da.atob,ib=function(a,b){void 0===b&&(b=0);Rib();b=Pib[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],u=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=u+h+k+q}u=0;q=d;switch(a.length-e){case 2:u=a[e+1],q=b[(u&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|u>>4]+q+d}return c.join("")},uUa=function(a){if(Qib)return da.atob(a);var b="";Sib(a,function(c){b+=String.fromCharCode(c)});
return b},Tib=function(a){var b=[];Sib(a,function(c){b.push(c)});return b},raa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):fa("=.",a[b-1])&&(c=fa("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Sib(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Sib=function(a,b){function c(q){for(;d<a.length;){var u=a.charAt(d++),y=tu[u];if(null!=y)return y;if(!Zi(u))throw Error("t`"+u);}return q}Rib();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=
h&&(b(f<<4&240|h>>2),64!=k&&b(h<<6&192|k))}},Rib=function(){if(!tu){tu={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Pib[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===tu[f]&&(tu[f]=e)}}}};
var Pa="undefined"!==typeof Uint8Array,ub,Qa={};
var Uib,bb=function(a,b){taa(b);this.value_=a;if(null!==a&&0===a.length)throw Error("v");},ab=function(){return Uib||(Uib=new bb(null,Qa))},jb=function(a){var b=a.value_;null!=b&&"string"!==typeof b&&(Pa&&b instanceof Uint8Array?b=ib(b):(Oa(b),b=null));return(a.value_=b)||""};bb.prototype.isEmpty=function(){return null==this.value_};bb.prototype.sizeBytes=function(){var a=Raa(this);return a?a.length:0};var Raa=function(a){taa(Qa);return a.value_=saa(a.value_)};
var Ra="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;
var Vib,uu=Object.freeze(Ta([])),nb=function(a){if(Za(a))throw Error("x");},Wib="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;
var gb=function(a,b){this.arr_=a;this.valueCtor=b;this.map={};this.arrClean=!1;for(a=this.size=0;a<this.arr_.length;a++){b=this.arr_[a];var c=b[0].toString(),d=this.map[c];this.map[c]=b;void 0===d&&this.size++}},Xib=function(a){if(Ua(a.arr_))throw Error("y");};gb.prototype.toArrayInternal=function(){if(!this.arrClean){var a=vu(this);a.sort();for(var b=0;b<a.length;b++)this.arr_[b]=this.map[a[b]];a.length<this.arr_.length&&(this.arr_.length=a.length);this.arrClean=!0;this.size=this.arr_.length}return this.arr_};
var Oaa=function(a,b){var c=a.valueCtor,d=new gb(Ta([]),c),e;for(e in a.map){var f=a.map[e];c?d.set(f[0],b(wu(a,f))):d.set(f[0],f[1])}return d};g=gb.prototype;g.clear=function(){Xib(this);this.map={};this.size=this.arr_.length=0;this.arrClean=!0};g.delete=function(a){Xib(this);a=a.toString();return this.map.hasOwnProperty(a)?(delete this.map[a],this.size--,this.arrClean=!1,!0):!1};g.del=function(a){return this.delete(a)};
g.entries=function(){var a=[],b=vu(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d[0],wu(this,d)])}return new xu(a)};g.keys=function(){var a=[],b=vu(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]][0]);return new xu(a)};g.values=function(){var a=[],b=vu(this);b.sort();for(var c=0;c<b.length;c++)a.push(wu(this,this.map[b[c]]));return new xu(a)};
g.forEach=function(a,b){var c=vu(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,wu(this,e),e[0],this)}};g.set=function(a,b){Xib(this);var c=a.toString(),d=this.map[c];d?d[1]=b:(a=[a,b],this.map[c]=a,this.arr_.push(a),this.arrClean=!1,this.size++);return this};
var wu=function(a,b){var c=b[1],d=a.valueCtor;if(d){var e=!1,f;if(f=null!=c&&"object"===typeof c&&!(e=Array.isArray(c)))f=Array.isArray(c.internalArray_)&&c.constructor!==Object;d=f?c:e?new d(c):new d;d!==c&&(b[1]=d,Ua(a.arr_)&&Wa(d.internalArray_));return d}return c};gb.prototype.get=function(a){if(a=this.map[a.toString()])return wu(this,a)};gb.prototype.has=function(a){return a.toString()in this.map};
var vu=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};gb.prototype[Symbol.iterator]=function(){return this.entries()};var xu=function(a){this.idx_=0;this.arr_=a};xu.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};xu.prototype[Symbol.iterator]=function(){return this};
var Yib=function(a){return a.internalSparseObject_||(a.internalSparseObject_=a.internalArray_[a.pivot_+a.arrayIndexOffset]={})},p=function(a,b,c){return-1===b?null:b>=a.pivot_?a.internalSparseObject_?a.internalSparseObject_[b]:void 0:(void 0===c?0:c)&&a.internalSparseObject_&&(c=a.internalSparseObject_[b],null!=c)?c:a.internalArray_[b+a.arrayIndexOffset]},l=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||nb(a);b<a.pivot_&&!d?a.internalArray_[b+a.arrayIndexOffset]=c:Yib(a)[b]=c;return a},gj=
function(a,b){return null!=p(a,b)},oj=function(a,b){return Array.isArray(p(a,b))},zl=function(a,b,c){return Array.isArray(p(a,sb(a,c,b)))},lb=function(a,b,c,d){c=void 0===c?!0:c;var e=p(a,b,d);null==e&&(e=uu);if(Za(a))c&&(Wa(e),Object.freeze(e));else if(e===uu||Ua(e))e=Ta(e.slice()),l(a,b,e,d);return e},yu=function(a,b){a=p(a,b);return null==a?a:+a},Xo=function(a,b){a=p(a,b);return null==a?a:!!a},zu=function(a,b){var c=p(a,b);if(null==c)return null;if(c instanceof bb)return c;c=cb(c);l(a,b,c,void 0,
!0);return c},Y=function(a,b,c){a=p(a,b);return null==a?c:a},W=function(a,b,c){c=void 0===c?!1:c;a=Xo(a,b);return null==a?c:a},Cl=function(a,b,c){c=void 0===c?0:c;a=yu(a,b);return null==a?c:a},Jm=function(a,b){var c=void 0===c?"":c;a=zu(a,b);return null==a?c?new bb(c,Qa):ab():a},bj=function(a,b,c){a:{var d=p(a,b);if(null==d)d=[];else if(d.constructor===gb){a=d;break a}var e=Za(a),f=Ua(d);if(!e&&f){for(var h=d.slice(),k=0;k<d.length;k++)if(Array.isArray(h[k])){var q=h[k].slice();h[k]=q;c&&1<q.length&&
Array.isArray(q[1])&&Wa(q[1])}d=h}c=new gb(d,c);e&&!f&&Wa(c.arr_);l(a,b,c,!1,!0);a=c}return a},ml=function(a,b,c){return l(a,b,null==c?Ta([]):Array.isArray(c)?Ta(c):c)},ob=function(a,b,c){return l(a,b,void 0,!1,c)},Au=function(a,b,c){nb(a);null==c||(c instanceof bb?c.isEmpty():0===c.length)?ob(a,b):l(a,b,c);return a},ho=function(a,b,c,d){nb(a);(c=rb(a,c))&&c!==b&&null!=d&&(a.internalWrappers_&&c in a.internalWrappers_&&(a.internalWrappers_[c]=void 0),l(a,c));return l(a,b,d)},rb=function(a,b){for(var c=
0,d=0;d<b.length;d++){var e=b[d];null!=p(a,e)&&(0!==c&&ob(a,c,!0),c=e)}return c},Bu=function(a,b,c){nb(a);a.internalWrappers_||(a.internalWrappers_={});var d=a.internalWrappers_[c];if(d)return b=d.toMutable(aa),b!==d&&(l(a,c,b.toArrayInternal()),a.internalWrappers_[c]=b),b;d=p(a,c);b=Baa(d,b,!0).toMutable(aa);d!==b.toArrayInternal()&&l(a,c,b.toArrayInternal());return a.internalWrappers_[c]=b},m=function(a,b,c,d,e){e=void 0===e?!1:e;var f=e;if(-1===c)d=null;else{a.internalWrappers_||(a.internalWrappers_=
{});var h=a.internalWrappers_[c];if(h)d=h;else{var k=p(a,c,f);b=Baa(k,b,d);void 0==b?d=h:(d&&b.toArrayInternal()!==k&&l(a,c,b.toArrayInternal(),f,!0),a.internalWrappers_[c]=b,Za(a)&&Wa(b.internalArray_),d=b)}}if(null==d)return d;Za(d)&&!Za(a)&&(d=d.toMutable(aa),l(a,c,d.toArrayInternal(),e),a.internalWrappers_[c]=d);return d},Zib=function(a,b,c,d){a.internalWrappers_||(a.internalWrappers_={});var e=Za(a),f=a.internalWrappers_[c];if(!f){d=lb(a,c,!0,d);f=[];e=e||Ua(d);for(var h=0;h<d.length;h++){var k=
Baa(d[h],b);void 0!==k&&(f.push(k),e&&Wa(k.internalArray_))}e&&(Wa(f),Object.freeze(f));a.internalWrappers_[c]=f}return f},tb=function(a,b,c,d){d=void 0===d?!1:d;b=Zib(a,b,c,d);var e=Za(a);a=p(a,c,d);for(c=0;c<b.length;c++)(d=b[c])&&Za(d)&&!e&&(b[c]=b[c].toMutable(aa),a[c]=b[c].toArrayInternal());return b},Db=function(a,b,c,d){nb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=c?c.toArrayInternal():c;a.internalWrappers_[b]=c;return l(a,b,e,d)},Cu=function(a,b,c,d){nb(a);a.internalWrappers_||
(a.internalWrappers_={});var e=null!=d?d.toArrayInternal():d;a.internalWrappers_[b]=d;return ho(a,b,c,e)},Cb=function(a,b,c,d){nb(a);if(c){var e=Ta([]);for(var f=0;f<c.length;f++)e[f]=c[f].toArrayInternal();a.internalWrappers_||(a.internalWrappers_={});a.internalWrappers_[b]=c}else a.internalWrappers_&&(a.internalWrappers_[b]=void 0),e=uu;return l(a,b,e,d)},Du=function(a,b,c,d,e){nb(a);var f=Zib(a,c,b);c=null!=d?d:new c;b=lb(a,b);void 0!=e?(f.splice(e,0,c),b.splice(e,0,c.toArrayInternal())):(f.push(c),
b.push(c.toArrayInternal()));return a},hj=function(a,b,c){return Y(a,b,void 0===c?0:c)},nj=function(a,b,c){return Y(a,b,void 0===c?"0":c)},V=function(a,b,c){return Y(a,b,void 0===c?"":c)},Ur=function(a,b,c){return p(a,sb(a,c,b))},Bl=function(a,b,c,d){return m(a,b,sb(a,d,c))},qo=function(a,b,c){return pb(a,b,c,!1)},Xk=function(a,b,c){return pb(a,b,c,0)},yl=function(a,b,c){return pb(a,b,c,"")},vl=function(a,b,c){return pb(a,b,c,0)};
var Fu=function(a,b,c){a||(a=Eu);Eu=null;var d=this.constructor.messageId;a||(a=d?[d]:[]);this.arrayIndexOffset=(d?0:-1)-(this.constructor.internalGroupNumberDoNotUse||0);this.internalWrappers_=void 0;this.internalArray_=a;a:{d=this.internalArray_.length;a=d-1;if(d&&(d=this.internalArray_[a],xaa(d))){this.pivot_=a-this.arrayIndexOffset;this.internalSparseObject_=d;break a}void 0!==b&&-1<b?(this.pivot_=Math.max(b,a+1-this.arrayIndexOffset),this.internalSparseObject_=void 0):this.pivot_=Number.MAX_VALUE}if(c)for(b=
0;b<c.length;b++)if(a=c[b],a<this.pivot_)a+=this.arrayIndexOffset,(d=this.internalArray_[a])?Array.isArray(d)&&Ta(d):this.internalArray_[a]=uu;else{d=Yib(this);var e=d[a];e?Array.isArray(e)&&Ta(e):d[a]=uu}};Fu.prototype.toArray=function(){return this.toJSON()};Fu.prototype.toJSON=function(){var a=this.toArrayInternal();return Vib?a:kb(a,Maa)};Fu.prototype.toArrayInternal=function(){return this.internalArray_};
Fu.prototype.serialize=function(){Vib=!0;try{return JSON.stringify(this.toJSON(),Paa)}finally{Vib=!1}};var no=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("B`"+Oa(b)+"`"+b);Eu=b;a=new a(b);Eu=null;return a};g=Fu.prototype;g.getExtension=function(a){return a.getExtensionFn(this)};g.hasExtension=function(a){return gj(this,a.fieldIndex)};g.clone=function(){var a=kb(this.toArrayInternal());Eu=a;a=new this.constructor(a);Eu=null;Qaa(a,this);return a};
g.isMutable=function(){aaa();return!Za(this)};g.isImmutable=function(a){aaa(a);return Za(this)};g.toString=function(){return this.toArrayInternal().toString()};var Eu;
var $ib="function"===typeof Uint8Array.prototype.slice;
var Gu=function(a){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,void 0,void 0,void 0)};g=Gu.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=Saa(a),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=void 0!==c?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};g.free=function(){this.clear();100>Hu.length&&Hu.push(this)};
g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};g.getEnd=function(){return this.end_};g.setEnd=function(a){this.end_=a};g.reset=function(){this.cursor_=this.start_};g.getCursor=function(){return this.cursor_};g.advance=function(a){Iu(this,this.cursor_+a)};
g.readSplitVarint64=function(a){var b=0,c=0,d=0,e=this.bytes_,f=this.cursor_;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Iu(this,f);if(128>h)return a(b>>>0,c>>>0);throw Error("H");};var Iu=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("I`"+b+"`"+a.end_);};g=Gu.prototype;
g.readSignedVarint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b++],d=c&127;if(c&128&&(c=a[b++],d|=(c&127)<<7,c&128&&(c=a[b++],d|=(c&127)<<14,c&128&&(c=a[b++],d|=(c&127)<<21,c&128&&(c=a[b++],d|=c<<28,c&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128&&a[b++]&128)))))throw Error("H");Iu(this,b);return d};g.readUint32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return(c<<0|d<<8|e<<16|a<<24)>>>0};
g.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return Taa(a,b)};g.readInt32=function(){var a=this.bytes_,b=this.cursor_,c=a[b],d=a[b+1],e=a[b+2];a=a[b+3];this.advance(4);return c<<0|d<<8|e<<16|a<<24};g.readInt64=function(){var a=this.readUint32(),b=this.readUint32();return Uaa(a,b)};g.readBool=function(){for(var a=0,b=this.cursor_,c=b+10,d=this.bytes_;b<c;){var e=d[b++];a|=e;if(0===(e&128))return Iu(this,b),!!(a&127)}throw Error("H");};
g.readByteString=function(a){if(0==a)return ab();if(0>a)throw Error("J`"+a);var b=this.cursor_,c=b+a;if(c>this.end_)throw Error("I`"+(this.end_-b)+"`"+a);this.cursor_=c;this.aliasBytesFields&&this.bytesAreImmutable_?b=this.bytes_.subarray(b,b+a):(c=this.bytes_,a=b+a,b=b===a?ub||(ub=new Uint8Array(0)):$ib?c.slice(b,a):new Uint8Array(c.subarray(b,a)));return 0==b.length?ab():new bb(b,Qa)};var Hu=[];
var ajb=function(a){if(Hu.length){var b=Hu.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new Gu(a);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions()};g=ajb.prototype;g.setOptions=function(){var a={};this.discardUnknownFields=void 0===a.discardUnknownFields?!1:a.discardUnknownFields};g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;100>Ju.length&&Ju.push(this)};g.getCursor=function(){return this.decoder_.getCursor()};
g.getTag=function(){return this.nextTag_};g.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};g.advance=function(a){this.decoder_.advance(a)};
var gba=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=a.decoder_.readSignedVarint32()>>>0;var c=b>>>3,d=b&7;if(!(0<=d&&5>=d))throw Error("D`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("E`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},yb=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?yb(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)yb(a);else{var b=a.decoder_.readSignedVarint32()>>>
0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);break;case 3:b=a.nextField_;do{if(!gba(a))throw Error("F");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("G");break}yb(a)}while(1);break;default:throw Error("D`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=ajb.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(Uaa)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64=function(){return this.decoder_.readSplitVarint64(Taa)};g.readBool=function(){return this.decoder_.readBool()};g.readByteString=function(){var a=this.decoder_.readSignedVarint32()>>>0;return this.decoder_.readByteString(a)};g.readSplitVarint64=function(a){return this.decoder_.readSplitVarint64(a)};var Ju=[];
var Ku=function(){Fu.apply(this,arguments)};U(Ku,Fu);var Br=function(a,b,c){return b.setExtensionFn(a,c)};Ku.prototype.toMutable=function(){return this};if(Wib){var bjb={};Object.defineProperties(Ku,(bjb[Symbol.hasInstance]=Aaa(function(){throw Error("L");}),bjb))}
;var wb=Symbol(),aba=Symbol(),xb=Symbol(),cjb=Ab(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt64());return!0},function(a,b,c){a.writeInt64(c,p(b,c))}),Lu=Ab(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt32());return!0},function(a,b,c){a.writeInt32(c,p(b,c))}),djb=Ab(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=lb(b,c);if(2==a.nextWireType_){c=Gu.prototype.readSignedVarint32;var d=a.decoder_.readSignedVarint32()>>>0;for(d=a.decoder_.getCursor()+
d;a.decoder_.getCursor()<d;)b.push(c.call(a.decoder_))}else b.push(a.readInt32());return!0},function(a,b,c){a.writeRepeatedInt32(c,lb(b,c))}),ejb=Ab(function(a,b,c){if(1!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint64());return!0},function(a,b,c){a.writeFixed64(c,p(b,c))}),fjb=Ab(function(a,b,c){if(5!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint32());return!0},function(a,b,c){a.writeFixed32(c,p(b,c))}),gjb=Ab(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readBool());return!0},
function(a,b,c){a.writeBool(c,p(b,c))}),hjb=Ab(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;b=Bu(b,d,c);c=a.decoder_.getEnd();d=a.decoder_.readSignedVarint32()>>>0;var f=a.decoder_.getCursor()+d,h=f-c;0>=h&&(a.decoder_.setEnd(f),e(b,a,void 0,void 0,void 0),h=f-a.decoder_.getCursor());if(h)throw Error("C`"+d+"`"+(d-h));a.decoder_.cursor_=f;a.decoder_.setEnd(c);return!0},function(a,b,c,d,e){a.writeMessage(c,m(b,d,c),e)});
var hba=function(a,b,c,d){var e=iba,f=jba;this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=0;this.getExtensionFn=e;this.setExtensionFn=f};
var kba=function(a){return a};
var Z=function(){Ku.apply(this,arguments)};U(Z,Ku);
Z.prototype.toMutable=function(a){aaa(a);if(Za(this)){a={copyRepeatedFields:!0};var b=Za(this);if(b&&!a.copyRepeatedFields)throw Error("N");var c=new this.constructor;this.internalUnknownFields_&&(c.internalUnknownFields_=this.internalUnknownFields_.slice());for(var d=this.toArrayInternal(),e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&xaa(f))for(k in f){var h=+k;Number.isNaN(h)?Yib(c)[k]=f[k]:lba(this,c,h,f[k],b,a)}else lba(this,c,e-this.arrayIndexOffset,f,b,a)}var k=c}else k=this;return k};
if(Wib){var ijb={};Object.defineProperties(Z,(ijb[Symbol.hasInstance]=Aaa(Object[Symbol.hasInstance]),ijb))}
;var Mu=function(a){Z.call(this,a)};U(Mu,Z);Mu.prototype.getResourceKey=function(){return p(this,2)};Mu.prototype.toObject=function(){return jjb(void 0,this)};var jjb=function(a,b){if(null!=b){var c={resourceKey:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Nu=function(a){Z.call(this,a)};U(Nu,Z);Nu.prototype.getCustomerId=function(){return p(this,1)};Nu.prototype.toObject=function(){return kjb(void 0,this)};var kjb=function(a,b){if(null!=b){var c={customerId:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var ljb=function(a){Z.call(this,a)};U(ljb,Z);var mjb=function(a){Z.call(this,a)};U(mjb,Z);var Ou=function(a){Z.call(this,a)};U(Ou,Z);Ou.prototype.getCustomerId=function(){return m(this,Nu,1)};var njb=[1,2];ljb.prototype.toObject=function(){return ojb(void 0,this)};var ojb=function(a,b){if(null!=b){var c={consumerInfo:pjb(a,Bl(b,mjb,1,njb)),customerInfo:qjb(a,Bl(b,Ou,2,njb))};a&&(c.$jspbMessageInstance=b);return c}};mjb.prototype.toObject=function(){return pjb(void 0,this)};
var pjb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};Ou.prototype.toObject=function(){return qjb(void 0,this)};var qjb=function(a,b){if(null!=b){var c={customerId:kjb(a,b.getCustomerId())};a&&(c.$jspbMessageInstance=b);return c}};
var Pu=function(a){Z.call(this,a)};U(Pu,Z);Pu.prototype.getIndex=function(){return hj(this,1)};Pu.prototype.setIndex=function(a){Xk(this,1,a)};Pu.prototype.toObject=function(){return rjb(void 0,this)};var rjb=function(a,b){if(null!=b){var c={index:hj(b,1),dataSourceIndex:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Qu=function(a){Z.call(this,a)};U(Qu,Z);g=Qu.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return yl(this,1,a)};g.getSourceId=function(){return Y(this,2,0)};g.setSourceId=function(a){return vl(this,2,a)};g.toObject=function(){return sjb(void 0,this)};var sjb=function(a,b){if(null!=b){var c={id:V(b,1),sourceId:Y(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Ru=function(a){Z.call(this,a)};U(Ru,Z);g=Ru.prototype;g.getUrl=function(){return V(this,1)};g.setUrl=function(a){return yl(this,1,a)};g.getHeight=function(){return hj(this,2)};g.setHeight=function(a){return Xk(this,2,a)};g.getWidth=function(){return hj(this,3)};g.setWidth=function(a){return Xk(this,3,a)};g.toObject=function(){return Su(void 0,this)};var Su=function(a,b){if(null!=b){var c={url:V(b,1),height:hj(b,2),width:hj(b,3),rotation:hj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var mm=function(a){Z.call(this,a)};U(mm,Z);g=mm.prototype;g.getSeconds=function(){return hj(this,1)};g.setSeconds=function(a){return Xk(this,1,a)};g.getNanos=function(){return hj(this,2)};g.setNanos=function(a){Xk(this,2,a)};g.toObject=function(){return Tu(void 0,this)};var Tu=function(a,b){if(null!=b){var c={seconds:hj(b,1),nanos:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Uu=function(a){Z.call(this,a)};U(Uu,Z);Uu.prototype.getDuration=function(){return m(this,mm,2)};Uu.prototype.toObject=function(){return tjb(void 0,this)};var tjb=function(a,b){if(null!=b){var c={aspectRatio:Cl(b,1),duration:Tu(a,b.getDuration())};a&&(c.$jspbMessageInstance=b);return c}};
var ujb=function(a){Z.call(this,a)};U(ujb,Z);ujb.prototype.toObject=function(){return vjb(void 0,this)};var vjb=function(a,b){if(null!=b){var c={left:Cl(b,1),top:Cl(b,2),right:Cl(b,3),bottom:Cl(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Vu=function(a){Z.call(this,a)};U(Vu,Z);Vu.prototype.getRotate=function(){return hj(this,2)};Vu.prototype.setRotate=function(a){return Xk(this,2,a)};Vu.prototype.toObject=function(){return wjb(void 0,this)};var wjb=function(a,b){if(null!=b){var c={cropCoordinates:vjb(a,m(b,ujb,1)),rotate:hj(b,2),caption:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var xjb=function(a){Z.call(this,a)};U(xjb,Z);g=xjb.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return yl(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return yl(this,2,a)};g.getDisplayName=function(){return V(this,3)};g.setDisplayName=function(a){return yl(this,3,a)};g.toObject=function(){return yjb(void 0,this)};
var yjb=function(a,b){if(null!=b){var c={email:V(b,1),name:V(b,2),displayName:V(b,3),templateProfilePhotoUrl:V(b,4),profilePhoto:Su(a,m(b,Ru,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Wu=function(a){Z.call(this,a)};U(Wu,Z);Wu.prototype.getBackgroundColor=function(){return V(this,2)};Wu.prototype.setBackgroundColor=function(a){yl(this,2,a)};Wu.prototype.setSelected=function(a){return qo(this,5,a)};Wu.prototype.toObject=function(){return zjb(void 0,this)};var zjb=function(a,b){if(null!=b){var c={accessRole:Y(b,1,0),backgroundColor:V(b,2),foregroundColor:V(b,3),hidden:W(b,4),selected:W(b,5),profileMetadata:yjb(a,m(b,xjb,6))};a&&(c.$jspbMessageInstance=b);return c}};
var Ajb=function(a){Z.call(this,a)};U(Ajb,Z);Ajb.prototype.toObject=function(){return Bjb(void 0,this)};var Bjb=function(a,b){if(null!=b){var c={rawBytes:Hb(Jm(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Xu=function(a){Z.call(this,a,-1,Cjb)};U(Xu,Z);var Cjb=[1,2];Xu.prototype.toObject=function(){return Djb(void 0,this)};var Djb=function(a,b){if(null!=b){var c={emailList:n(lb(b,1)),groupIdList:n(lb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Yu=function(a){Z.call(this,a)};U(Yu,Z);Yu.prototype.getCategory=function(){return Y(this,1,0)};Yu.prototype.setCategory=function(a){vl(this,1,a)};Yu.prototype.toObject=function(){return Ejb(void 0,this)};var Ejb=function(a,b){if(null!=b){var c={category:Y(b,1,0),categoryLabel:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var vj=function(a){Z.call(this,a)};U(vj,Z);g=vj.prototype;g.getSeconds=function(){return hj(this,1)};g.setSeconds=function(a){return Xk(this,1,a)};g.getNanos=function(){return hj(this,2)};g.setNanos=function(a){Xk(this,2,a)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};g.toObject=function(){return Zu(void 0,this)};var Zu=function(a,b){if(null!=b){var c={seconds:hj(b,1),nanos:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var $u=function(a){Z.call(this,a)};U($u,Z);$u.prototype.getTotalItems=function(){return hj(this,1)};$u.prototype.setTotalItems=function(a){return Xk(this,1,a)};$u.prototype.toObject=function(){return Fjb(void 0,this)};var Fjb=function(a,b){if(null!=b){var c={totalItems:hj(b,1),startTimestamp:Zu(a,m(b,vj,2)),endTimestamp:Zu(a,m(b,vj,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Gjb=function(a){Z.call(this,a)};U(Gjb,Z);Gjb.prototype.toObject=function(){return Hjb(void 0,this)};var Hjb=function(a,b){if(null!=b){var c={albumMetadata:Fjb(a,m(b,$u,1)),dedupKey:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Ijb=function(a){Z.call(this,a)};U(Ijb,Z);Ijb.prototype.toObject=function(){return Jjb(void 0,this)};var Jjb=function(a,b){if(null!=b){var c={dataUrl:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var av=function(a){Z.call(this,a)};U(av,Z);av.prototype.getCategory=function(){return V(this,1)};av.prototype.setCategory=function(a){yl(this,1,a)};av.prototype.toObject=function(){return Kjb(void 0,this)};var Kjb=function(a,b){if(null!=b){var c={category:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var bv=function(a){Z.call(this,a)};U(bv,Z);g=bv.prototype;g.getWidth=function(){return hj(this,1)};g.setWidth=function(a){return Xk(this,1,a)};g.getHeight=function(){return hj(this,2)};g.setHeight=function(a){return Xk(this,2,a)};g.toObject=function(){return Ljb(void 0,this)};var Ljb=function(a,b){if(null!=b){var c={width:hj(b,1),height:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Mjb=function(a){Z.call(this,a)};U(Mjb,Z);Mjb.prototype.toObject=function(){return Njb(void 0,this)};var Njb=function(a,b){if(null!=b){var c={imageSize:Ljb(a,m(b,bv,1))};a&&(c.$jspbMessageInstance=b);return c}};
var cv=function(a){Z.call(this,a)};U(cv,Z);cv.prototype.toObject=function(){return Ojb(void 0,this)};var Ojb=function(a,b){if(null!=b){var c={originalImage:Su(a,m(b,Ru,1)),referrerUrl:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var dv=function(a){Z.call(this,a)};U(dv,Z);dv.prototype.getVideoMetadata=function(){return m(this,Uu,1)};dv.prototype.toObject=function(){return Pjb(void 0,this)};var Pjb=function(a,b){if(null!=b){var c={videoMetadata:tjb(a,b.getVideoMetadata()),channelName:V(b,2),channelId:V(b,3),viewCount:hj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Qjb=function(a){Z.call(this,a)};U(Qjb,Z);Qjb.prototype.toObject=function(){return Rjb(void 0,this)};var Rjb=function(a,b){if(null!=b){var c={youtubeVideoMetadata:Pjb(a,m(b,dv,1))};a&&(c.$jspbMessageInstance=b);return c}};
var ev=function(a){Z.call(this,a)};U(ev,Z);ev.prototype.getVideoMetadata=function(){return m(this,Uu,3)};ev.prototype.getResourceKey=function(){return V(this,11)};var fv=function(a){Z.call(this,a,-1,Sjb)};U(fv,Z);g=fv.prototype;g.getId=function(){return m(this,Qu,1)};g.setId=function(a){return Db(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return yl(this,2,a)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return yl(this,3,a)};
g.getParentId=function(){return V(this,4)};g.setParentId=function(a){yl(this,4,a)};g.getType=function(){return Y(this,6,0)};g.setType=function(a){return vl(this,6,a)};g.getMimeType=function(){return V(this,7)};g.setMimeType=function(a){yl(this,7,a)};g.getUrl=function(){return V(this,8)};g.setUrl=function(a){return yl(this,8,a)};g.getIconUrl=function(){return V(this,11)};var gv=function(a){return tb(a,Ru,10)};fv.prototype.getLastModifiedTimestamp=function(){return m(this,vj,12)};
var Tjb=function(a){Z.call(this,a)};U(Tjb,Z);ev.prototype.toObject=function(){return Ujb(void 0,this)};var Ujb=function(a,b){if(null!=b){var c={shared:W(b,1),hasPrimarySyncParent:W(b,2),videoMetadata:tjb(a,b.getVideoMetadata()),recencyTimestamp:Zu(a,m(b,vj,4)),recencyReason:hj(b,5),sharedDriveId:V(b,6),hasOwnPermissions:W(b,7),shortcutDetails:Vjb(a,m(b,Tjb,8)),copyable:W(b,9),downloadUrl:V(b,10),resourceKey:V(b,11),isRecentUpload:W(b,12)};a&&(c.$jspbMessageInstance=b);return c}},Sjb=[5,10,22];
fv.prototype.toObject=function(){return hv(void 0,this)};
var hv=function(a,b){if(null!=b){var c={id:sjb(a,b.getId()),name:V(b,2),description:V(b,3),parentId:V(b,4),allParentIdList:n(lb(b,5)),type:Y(b,6,0),mimeType:V(b,7),url:V(b,8),templateThumbUrl:V(b,9),iconUrl:V(b,11),embedUrl:V(b,13),previewUrl:V(b,20),thumbnailList:Eb(gv(b),Su,a),internalThumbnailList:Eb(tb(b,Ru,22),Su,a),lastModifiedTimestamp:Zu(a,b.getLastModifiedTimestamp()),creationTimestampMs:Zu(a,m(b,vj,16)),calendarMetadata:zjb(a,m(b,Wu,14)),webMetadata:Ojb(a,m(b,cv,15)),photosMetadata:Hjb(a,
m(b,Gjb,18)),themesMetadata:Kjb(a,m(b,av,19)),driveMetadata:Ujb(a,m(b,ev,21)),youtubeMetadata:Rjb(a,m(b,Qjb,24)),cameraMetadata:Bjb(a,m(b,Ajb,26)),contactsMetadata:Djb(a,m(b,Xu,27)),partyMetadata:Ejb(a,m(b,Yu,28)),urlMetadata:Njb(a,m(b,Mjb,29)),uploadMetadata:Jjb(a,m(b,Ijb,30)),cropPhotoMetadata:wjb(a,m(b,Vu,32)),bucketId:V(b,17),sizeBytes:hj(b,23),itemDiagnosticsInfo:rjb(a,m(b,Pu,25)),isAttachment:W(b,31)};a&&(c.$jspbMessageInstance=b);return c}};
Tjb.prototype.toObject=function(){return Vjb(void 0,this)};var Vjb=function(a,b){if(null!=b){var c={targetId:V(b,1),targetMimeType:V(b,2),targetItem:hv(a,m(b,fv,3)),targetLookupStatus:Y(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var iv=function(a){Z.call(this,a)};U(iv,Z);iv.prototype.setGmailDelegatorId=function(a){return yl(this,1,a)};iv.prototype.toObject=function(){return Wjb(this)};var Wjb=function(a){if(null!=a)return{gmailDelegatorId:V(a,1)}};
var jv=function(a){Z.call(this,a)};U(jv,Z);g=jv.prototype;g.getOrigin=function(){return V(this,1)};g.setOrigin=function(a){return yl(this,1,a)};g.getInstanceId=function(){return V(this,2)};g.setInstanceId=function(a){return yl(this,2,a)};g.getWidgetType=function(){return Y(this,3,0)};g.getContainerType=function(){return Y(this,4,0)};g.toObject=function(){return Xjb(this)};
var Xjb=function(a){if(null!=a)return{origin:V(a,1),instanceId:V(a,2),widgetType:Y(a,3,0),containerType:Y(a,4,0),iframeLoadStartTime:Zu(void 0,m(a,vj,5)),gapiLoadStartTimestamp:Zu(void 0,m(a,vj,6)),gapiLoadEndTimestamp:Zu(void 0,m(a,vj,7))}};
var kv=function(a){Z.call(this,a)};U(kv,Z);g=kv.prototype;g.getAuthUser=function(){return hj(this,1)};g.setAuthUser=function(a){return Xk(this,1,a)};g.getEmail=function(){return V(this,2)};g.setEmail=function(a){return yl(this,2,a)};g.toObject=function(){return Yjb(this)};var Yjb=function(a){if(null!=a)return{authUser:hj(a,1),email:V(a,2),gaiaId:V(a,3)}};
var Zjb=function(a){Z.call(this,a)};U(Zjb,Z);Zjb.prototype.toObject=function(){return $jb(this)};var $jb=function(a){if(null!=a)return{top:Cl(a,1),right:Cl(a,2),bottom:Cl(a,3),left:Cl(a,4)}};
var akb=function(a){Z.call(this,a)};U(akb,Z);akb.prototype.toObject=function(){return bkb(this)};var bkb=function(a){if(null!=a)return{contentPadding:$jb(m(a,Zjb,1)),gridElementHeight:Cl(a,2)}};
var ckb=function(a){Z.call(this,a)};U(ckb,Z);ckb.prototype.toObject=function(){return dkb(this)};var dkb=function(a){if(null!=a)return{chromeMode:Y(a,1,0),modeSettings:bkb(m(a,akb,4)),deprecatedWidgetType:Y(a,2,0),deprecatedContainerType:Y(a,3,0)}};
var ekb=function(a){Z.call(this,a)};U(ekb,Z);ekb.prototype.toObject=function(){return fkb(this)};var fkb=function(a){if(null!=a)return{jsDebug:V(a,1),forceDisableDriveIvdp:W(a,2),enableLiveImpressions:W(a,3)}};
var lv=function(a){Z.call(this,a)};U(lv,Z);g=lv.prototype;g.getWidth=function(){return hj(this,1)};g.setWidth=function(a){return Xk(this,1,a)};g.getHeight=function(){return hj(this,2)};g.setHeight=function(a){return Xk(this,2,a)};g.toObject=function(){return gkb(this)};var gkb=function(a){if(null!=a)return{width:hj(a,1),height:hj(a,2)}};
var mv=function(a){Z.call(this,a,-1,hkb)};U(mv,Z);var ikb=function(a,b){return ml(a,1,b)},nv=function(a,b){qb(a,1,b)};mv.prototype.getMaxSize=function(){return m(this,bv,5)};mv.prototype.setMaxSize=function(a){Db(this,5,a)};var hkb=[1,2,3,4];mv.prototype.toObject=function(){return jkb(this)};var jkb=function(a){if(null!=a)return{typeList:n(lb(a,1)),mimetypeList:n(lb(a,2)),excludeTypeList:n(lb(a,3)),excludeMimetypeList:n(lb(a,4)),maxSize:Ljb(void 0,a.getMaxSize()),maxSizeBytes:hj(a,6)}};
var kkb=function(a){Z.call(this,a)};U(kkb,Z);kkb.prototype.toObject=function(){return lkb(this)};var lkb=function(a){if(null!=a)return{noDataFoundLabel:V(a,1),noDataFoundDescription:V(a,2)}};
var ov=function(a){Z.call(this,a)};U(ov,Z);ov.prototype.toObject=function(){return mkb(void 0,this)};var mkb=function(a,b){if(null!=b){var c={copyToTemporaryAlbum:W(b,1),hasCaption:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var nkb=function(a){Z.call(this,a)};U(nkb,Z);nkb.prototype.toObject=function(){return okb(void 0,this)};var okb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var pkb=function(a){Z.call(this,a)};U(pkb,Z);pkb.prototype.toObject=function(){return qkb(void 0,this)};var qkb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var pv=function(a){Z.call(this,a)};U(pv,Z);pv.prototype.getId=function(){return Y(this,1,0)};pv.prototype.setId=function(a){return vl(this,1,a)};var qv=[2,3,4];pv.prototype.toObject=function(){return rkb(void 0,this)};var rkb=function(a,b){if(null!=b){var c={id:Y(b,1,0),profilePhotoOptions:qkb(a,Bl(b,pkb,2,qv)),cropPhotoOptions:mkb(a,Bl(b,ov,3,qv)),photoSharingOptions:okb(a,Bl(b,nkb,4,qv))};a&&(c.$jspbMessageInstance=b);return c}};
var skb=function(a){Z.call(this,a)};U(skb,Z);skb.prototype.toObject=function(){return tkb(this)};var tkb=function(a){if(null!=a)return{previewMode:Y(a,1,0)}};
var rv=function(a){Z.call(this,a)};U(rv,Z);rv.prototype.toObject=function(){return ukb(this)};var ukb=function(a){if(null!=a)return{selectionMode:Y(a,1,0),allowCollectionSelection:W(a,2)}};
var sv=function(a){Z.call(this,a,-1,vkb)};U(sv,Z);g=sv.prototype;g.setHost=function(a){return vl(this,23,a)};g.getItemType=function(){return m(this,mv,2)};g.setItemType=function(a){Db(this,2,a)};g.getAuthUser=function(){return m(this,kv,6)};g.setAuthUser=function(a){return Db(this,6,a)};g.getBaseUrl=function(){return V(this,8)};var wkb=function(a,b){return yl(a,8,b)};g=sv.prototype;g.getTitle=function(){return V(this,9)};g.setTitle=function(a){return yl(this,9,a)};
g.getLocale=function(){return V(this,10)};g.setLocale=function(a){return yl(this,10,a)};g.setSecretToken=function(a){return yl(this,12,a)};var xkb=function(a){var b=new jv;var c=b.setOrigin,d=window.location.origin;d||(d=tv(uv(new hp,window.location.protocol),window.location.host).toString());b=c.call(b,d);b=vl(b,3,2);return Db(a,20,b)};g=sv.prototype;g.addPostProcessor=function(a){Du(this,28,pv,a)};g.setBuildLabel=function(a){yl(this,31,a)};g.setMinSize=function(a){Db(this,32,a)};
g.getMaxSize=function(){return m(this,lv,33)};g.setMaxSize=function(a){Db(this,33,a)};g.setInitialView=function(a){vl(this,35,a)};var vkb=[18,28];sv.prototype.toObject=function(){return ykb(this)};
var ykb=function(a){if(null!=a)return{host:Y(a,23,0),hostUsecase:V(a,24),itemType:jkb(a.getItemType()),selectionStrategy:ukb(m(a,rv,3)),maxItemsToSelect:hj(a,5),previewStrategy:tkb(m(a,skb,21)),authUser:Yjb(a.getAuthUser()),oauth:V(a,7),baseUrl:V(a,8),topOrigin:V(a,27),title:V(a,9),locale:V(a,10),containerSpec:dkb(m(a,ckb,11)),secretToken:V(a,12),debugSpec:fkb(m(a,ekb,14)),clientEnabledExperimentsList:n(lb(a,18)),selectButtonLabel:V(a,19),additionalInfo:Xjb(m(a,jv,20)),messageTextOverrides:lkb(m(a,
kkb,22)),enableDragDrop:W(a,25),preloaded:W(a,26),postProcessorList:Eb(tb(a,pv,28),rkb),accountDelegation:Wjb(m(a,iv,29)),initialViewLayout:Y(a,30,0),buildLabel:V(a,31),minSize:gkb(m(a,lv,32)),maxSize:gkb(a.getMaxSize()),enableInsertAttachment:W(a,34),initialView:Y(a,35,0),deprecatedIsMultiselectAllowed:W(a,4),deprecatedOrigin:V(a,13),deprecatedInstanceId:V(a,15),deprecatedEnablePreview:W(a,17),deprecatedUseRefreshedUi:W(a,16),deprecatedRpcTargetId:V(a,36)}};
var vv=function(a){Z.call(this,a)};U(vv,Z);vv.prototype.getEventType=function(){return Y(this,1,0)};vv.prototype.setEventType=function(a){return vl(this,1,a)};vv.prototype.toObject=function(){return zkb(this)};var zkb=function(a){if(null!=a)return{eventType:Y(a,1,0)}};
var wv=function(a){Z.call(this,a,-1,Akb)};U(wv,Z);wv.prototype.getItemList=function(){return tb(this,fv,1)};wv.prototype.setItemList=function(a){Cb(this,1,a)};wv.prototype.addItem=function(a,b){return Du(this,1,fv,a,b)};var Akb=[1];wv.prototype.toObject=function(){return Bkb(this)};var Bkb=function(a){if(null!=a)return{itemList:Eb(a.getItemList(),hv),currentItem:hv(void 0,m(a,fv,2)),currentItemIndex:hj(a,3)}};
var xv=function(a){Z.call(this,a,-1,Ckb)};U(xv,Z);g=xv.prototype;g.getStatus=function(){return Y(this,1,0)};g.setStatus=function(a){return vl(this,1,a)};g.getItemList=function(){return tb(this,fv,2)};g.setItemList=function(a){Cb(this,2,a)};g.addItem=function(a,b){return Du(this,2,fv,a,b)};g.getErrorCode=function(){return Y(this,4,0)};var Ckb=[2];xv.prototype.toObject=function(){return Dkb(this)};
var Dkb=function(a){if(null!=a)return{status:Y(a,1,0),itemList:Eb(a.getItemList(),hv),action:Y(a,3,0),errorCode:Y(a,4,0)}};
var yv=function(a){Z.call(this,a)};U(yv,Z);yv.prototype.getQuery=function(){return V(this,1)};yv.prototype.setQuery=function(a){return yl(this,1,a)};yv.prototype.toObject=function(){return Ekb(void 0,this)};var Ekb=function(a,b){if(null!=b){var c={query:V(b,1),minAccessRole:Y(b,2,0),showHidden:W(b,3),fetchProfile:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var zv=function(a){Z.call(this,a)};U(zv,Z);zv.prototype.getUploadUrl=function(){return V(this,1)};zv.prototype.toObject=function(){return Fkb(void 0,this)};var Fkb=function(a,b){if(null!=b){var c={uploadUrl:V(b,1),metadataMap:Gb(bj(b,2),a),agentId:Y(b,3,0),configurationId:Y(b,4,0),sendDataUrl:W(b,5)};a&&(c.$jspbMessageInstance=b);return c}};
var Av=function(a){Z.call(this,a)};U(Av,Z);Av.prototype.getUploadSourceOptions=function(){return m(this,zv,2)};Av.prototype.setUploadSourceOptions=function(a){return Db(this,2,a)};Av.prototype.toObject=function(){return Gkb(void 0,this)};var Gkb=function(a,b){if(null!=b){var c={uploadMode:Y(b,1,0),uploadSourceOptions:Fkb(a,b.getUploadSourceOptions())};a&&(c.$jspbMessageInstance=b);return c}};
var Bv=function(a){Z.call(this,a)};U(Bv,Z);Bv.prototype.getQuery=function(){return V(this,1)};Bv.prototype.setQuery=function(a){return yl(this,1,a)};Bv.prototype.toObject=function(){return Hkb(void 0,this)};var Hkb=function(a,b){if(null!=b){var c={query:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Cv=function(a){Z.call(this,a,-1,Ikb)};U(Cv,Z);var Ikb=[1,3];Cv.prototype.toObject=function(){return Jkb(void 0,this)};var Jkb=function(a,b){if(null!=b){var c={parentList:n(lb(b,1)),embeddingParent:V(b,2),fileExtensionsList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Dp=function(a){Z.call(this,a)};U(Dp,Z);g=Dp.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return vl(this,1,a)};g.getDirection=function(){return Y(this,2,0)};g.setDirection=function(a){return vl(this,2,a)};g.toObject=function(){return Kkb(void 0,this)};var Kkb=function(a,b){if(null!=b){var c={type:Y(b,1,0),direction:Y(b,2,0),foldersFirst:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var Cp=function(a){Z.call(this,a)};U(Cp,Z);g=Cp.prototype;g.getParentId=function(){return V(this,1)};g.setParentId=function(a){yl(this,1,a)};g.getQuery=function(){return V(this,2)};g.setQuery=function(a){return yl(this,2,a)};g.getStarred=function(){return W(this,7)};g.setStarred=function(a){qo(this,7,a)};g.setViewMode=function(a){vl(this,8,a)};g.getLastModified=function(){return m(this,vj,9)};g.toObject=function(){return Lkb(void 0,this)};
var Lkb=function(a,b){if(null!=b){var c={parentId:V(b,1),query:V(b,2),sortBy:Kkb(a,m(b,Dp,3)),ownedBy:Y(b,4,0),sharedWithMe:W(b,5),starred:W(b,7),viewMode:Y(b,8,0),lastModified:Zu(a,b.getLastModified()),disableInstantUpdates:W(b,10),inSharedDrive:W(b,11),inComputers:W(b,12),permissions:Y(b,13,0),itemSuggest:W(b,14),driveUploadOptions:Jkb(a,m(b,Cv,15)),encryptedOnlyMode:W(b,16),includeEncryptedItems:W(b,17)};a&&(c.$jspbMessageInstance=b);return c}};
var Dv=function(a){Z.call(this,a)};U(Dv,Z);Dv.prototype.getCategory=function(){return Y(this,2,0)};Dv.prototype.setCategory=function(a){vl(this,2,a)};Dv.prototype.toObject=function(){return Mkb(void 0,this)};var Mkb=function(a,b){if(null!=b){var c={category:Y(b,2,0),deprecatedCategory:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Fp=function(a){Z.call(this,a,-1,Nkb)};U(Fp,Z);Fp.prototype.setViewMode=function(a){vl(this,3,a)};var Nkb=[8];Fp.prototype.toObject=function(){return Okb(void 0,this)};var Okb=function(a,b){if(null!=b){var c={parentAlbumKey:V(b,1),bucketBy:Y(b,2,0),viewMode:Y(b,3,0),queryText:V(b,4),includePhotos:W(b,5),includeVideos:W(b,6),viewType:Y(b,7,0),associationOriginList:n(lb(b,8))};a&&(c.$jspbMessageInstance=b);return c}};
var Pkb=function(a){Z.call(this,a)};U(Pkb,Z);Pkb.prototype.toObject=function(){return Qkb(void 0,this)};var Qkb=function(a,b){if(null!=b){var c={themeSourceId:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Ev=function(a){Z.call(this,a)};U(Ev,Z);Ev.prototype.setMode=function(a){return vl(this,1,a)};Ev.prototype.toObject=function(){return Rkb(void 0,this)};var Rkb=function(a,b){if(null!=b){var c={mode:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Fv=function(a){Z.call(this,a)};U(Fv,Z);Fv.prototype.getQuery=function(){return V(this,1)};Fv.prototype.setQuery=function(a){return yl(this,1,a)};Fv.prototype.setViewMode=function(a){vl(this,4,a)};Fv.prototype.toObject=function(){return Skb(void 0,this)};var Skb=function(a,b){if(null!=b){var c={query:V(b,1),usageRights:Y(b,2,0),disableSafeSearchMode:W(b,3),viewMode:Y(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Gv=function(a){Z.call(this,a)};U(Gv,Z);Gv.prototype.setViewMode=function(a){vl(this,1,a)};Gv.prototype.getQuery=function(){return V(this,2)};Gv.prototype.setQuery=function(a){return yl(this,2,a)};Gv.prototype.toObject=function(){return Tkb(void 0,this)};var Tkb=function(a,b){if(null!=b){var c={viewMode:Y(b,1,0),query:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Bp=function(a){Z.call(this,a,-1,Ukb)};U(Bp,Z);g=Bp.prototype;g.getSourceId=function(){return Y(this,1,0)};g.setSourceId=function(a){return vl(this,1,a)};g.getName=function(){return V(this,8)};g.setName=function(a){return yl(this,8,a)};g.getUploadSourceOptions=function(){return m(this,zv,10)};g.setUploadSourceOptions=function(a){return Db(this,10,a)};var Ukb=[14];Bp.prototype.toObject=function(){return Hv(void 0,this)};
var Hv=function(a,b){if(null!=b){var c={sourceId:Y(b,1,0),name:V(b,8),driveSourceOptions:Lkb(a,m(b,Cp,3)),calendarSourceOptions:Ekb(a,m(b,yv,4)),webSourceOptions:Skb(a,m(b,Fv,5)),photosSourceOptions:Okb(a,m(b,Fp,6)),themesSourceOptions:Qkb(a,m(b,Pkb,7)),youtubeSourceOptions:Tkb(a,m(b,Gv,9)),uploadSourceOptions:Fkb(a,b.getUploadSourceOptions()),contactsSourceOptions:Hkb(a,m(b,Bv,12)),partySourceOptions:Mkb(a,m(b,Dv,13)),urlSourceOptions:Rkb(a,m(b,Ev,15)),cameraSourceOptions:Gkb(a,m(b,Av,16)),childSourceList:Eb(tb(b,
Bp,14),Hv,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Ep=function(a){Z.call(this,a,-1,Vkb)};U(Ep,Z);Ep.prototype.getSourceList=function(){return tb(this,Bp,1)};Ep.prototype.setSourceList=function(a){return Cb(this,1,a)};Ep.prototype.addSource=function(a){Du(this,1,Bp,a)};var Vkb=[1];Ep.prototype.toObject=function(){var a=null!=this?{sourceList:Eb(this.getSourceList(),Hv)}:void 0;return a};
var Iv=function(a){Z.call(this,a,-1,Wkb)};U(Iv,Z);g=Iv.prototype;g.getCommand=function(){return Y(this,1,0)};g.setCommand=function(a){return vl(this,1,a)};g.getSource=function(){return m(this,Bp,2)};g.setSource=function(a){return Db(this,2,a)};g.hasSource=function(){return oj(this,2)};g.setVisible=function(a){return qo(this,5,a)};g.getItemList=function(){return tb(this,fv,7)};g.setItemList=function(a){Cb(this,7,a)};g.addItem=function(a,b){return Du(this,7,fv,a,b)};var Wkb=[3,7];
Iv.prototype.toObject=function(){var a=null!=this?{command:Y(this,1,0),source:Hv(void 0,this.getSource()),itemIdList:Eb(tb(this,Qu,3),sjb),correlationId:V(this,4),visible:W(this,5),cssVisibilityChanged:W(this,6),itemList:Eb(this.getItemList(),hv)}:void 0;return a};
var Jv=function(a){Z.call(this,a,-1,Xkb)};U(Jv,Z);g=Jv.prototype;g.getCommand=function(){return Y(this,1,0)};g.setCommand=function(a){return vl(this,1,a)};g.getItemList=function(){return tb(this,fv,4)};g.setItemList=function(a){Cb(this,4,a)};g.addItem=function(a,b){return Du(this,4,fv,a,b)};var Xkb=[4];
Jv.prototype.toObject=function(){var a=null!=this?{command:Y(this,1,0),pickerResult:Dkb(m(this,xv,2)),correlationId:V(this,3),itemList:Eb(this.getItemList(),hv),previewData:Bkb(m(this,wv,5)),latencyData:zkb(m(this,vv,6))}:void 0;return a};
var Kv=function(a){Z.call(this,a,-1,Ykb)};U(Kv,Z);g=Kv.prototype;g.getConfig=function(){return m(this,sv,1)};g.setConfig=function(a){return Db(this,1,a)};g.getSourceList=function(){return tb(this,Bp,2)};g.setSourceList=function(a){return Cb(this,2,a)};g.addSource=function(a){Du(this,2,Bp,a)};var Ykb=[2];Kv.prototype.toObject=function(){var a=null!=this?{config:ykb(this.getConfig()),sourceList:Eb(this.getSourceList(),Hv)}:void 0;return a};Kv.messageId="ireq";
var Wk=function(a){Z.call(this,a)};U(Wk,Z);g=Wk.prototype;g.getYear=function(){return hj(this,1)};g.setYear=function(a){return Xk(this,1,a)};g.getMonth=function(){return hj(this,2)};g.setMonth=function(a){return Xk(this,2,a)};g.getDay=function(){return hj(this,3)};g.toObject=function(){return Lv(void 0,this)};var Lv=function(a,b){if(null!=b){var c={year:hj(b,1),month:hj(b,2),day:hj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var Mv=function(a){Z.call(this,a)};U(Mv,Z);Mv.prototype.getGroupId=function(){return V(this,1)};Mv.prototype.setGroupId=function(a){yl(this,1,a)};var Nv=function(a){Z.call(this,a)};U(Nv,Z);Nv.prototype.getResourceKey=function(){return m(this,Mu,2)};Mv.prototype.toObject=function(){return Zkb(void 0,this)};var Zkb=function(a,b){if(null!=b){var c={groupId:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};Nv.prototype.toObject=function(){return $kb(void 0,this)};
var $kb=function(a,b){if(null!=b){var c={documentId:V(b,1),resourceKey:jjb(a,b.getResourceKey())};a&&(c.$jspbMessageInstance=b);return c}};
/*

 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
*/
(function(a){function b(va){q&&q.mark&&q.mark(va)}function c(va,Ca){q&&q.measure&&q.measure(va,Ca)}function d(va){return u+va}function e(va){Da||a[X]&&(Da=a[X].resolve(0));if(Da){var Ca=Da[ka];Ca||(Ca=Da.then);Ca.call(Da,va)}else a[S](va,0)}function f(va){0===Tb&&0===ha.length&&e(h);va&&ha.push(va)}function h(){if(!ra){for(ra=!0;ha.length;){var va=ha;ha=[];for(var Ca=0;Ca<va.length;Ca++){var Ia=va[Ca];try{Ia.zone.runTask(Ia,null,null)}catch(Xa){La.onUnhandledError(Xa)}}}La.microtaskDrainDone();ra=
!1}}function k(){}var q=a.performance;b("Zone");var u=a.__Zone_symbol_prefix||"__zone_symbol__",y=!0===a[d("forceDuplicateZoneCheck")];if(a.Zone){if(y||"function"!==typeof a.Zone.__symbol__)throw Error("R");return a.Zone}var D=function(va,Ca){this._parent=va;this._name=Ca?Ca.name||"unnamed":"<root>";this._properties=Ca&&Ca.properties||{};this._zoneDelegate=new N(this,this._parent&&this._parent._zoneDelegate,Ca)};D.assertZonePatched=function(){if(a.Promise!==Ba.ZoneAwarePromise)throw Error("S");};
D.__load_patch=function(va,Ca,Ia){Ia=void 0===Ia?!1:Ia;if(Ba.hasOwnProperty(va)){if(!Ia&&y)throw Error("T`"+va);}else a["__Zone_disable_"+va]||(Ia="Zone:"+va,b(Ia),Ba[va]=Ca(a,D,La),c(Ia,Ia))};D.prototype.get=function(va){var Ca=this.getZoneWith(va);if(Ca)return Ca._properties[va]};D.prototype.getZoneWith=function(va){for(var Ca=this;Ca;){if(Ca._properties.hasOwnProperty(va))return Ca;Ca=Ca._parent}return null};D.prototype.fork=function(va){if(!va)throw Error("U");return this._zoneDelegate.fork(this,
va)};D.prototype.wrap=function(va,Ca){if("function"!==typeof va)throw Error("V`"+va);var Ia=this._zoneDelegate.intercept(this,va,Ca),Xa=this;return function(){return Xa.runGuarded(Ia,this,arguments,Ca)}};D.prototype.run=function(va,Ca,Ia,Xa){hb={parent:hb,zone:this};try{return this._zoneDelegate.invoke(this,va,Ca,Ia,Xa)}finally{hb=hb.parent}};D.prototype.runGuarded=function(va,Ca,Ia,Xa){hb={parent:hb,zone:this};try{try{return this._zoneDelegate.invoke(this,va,void 0===Ca?null:Ca,Ia,Xa)}catch($a){if(this._zoneDelegate.handleError(this,
$a))throw $a;}}finally{hb=hb.parent}};D.prototype.runTask=function(va,Ca,Ia){if(va.zone!=this)throw Error("W`"+(va.zone||Ja).name+"`"+this.name);if("notScheduled"!==va.state||"eventTask"!==va.type&&"macroTask"!==va.type){var Xa="running"!=va.state;Xa&&va._transitionTo("running","scheduled");va.runCount++;var $a=fb;fb=va;hb={parent:hb,zone:this};try{"macroTask"==va.type&&va.data&&!va.data.isPeriodic&&(va.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,va,Ca,Ia)}catch(jc){if(this._zoneDelegate.handleError(this,
jc))throw jc;}}finally{"notScheduled"!==va.state&&"unknown"!==va.state&&("eventTask"==va.type||va.data&&va.data.isPeriodic?Xa&&va._transitionTo("scheduled","running"):(va.runCount=0,this._updateTaskCount(va,-1),Xa&&va._transitionTo("notScheduled","running","notScheduled"))),hb=hb.parent,fb=$a}}};D.prototype.scheduleTask=function(va){if(va.zone&&va.zone!==this)for(var Ca=this;Ca;){if(Ca===va.zone)throw Error("X`"+this.name+"`"+va.zone.name);Ca=Ca.parent}va._transitionTo("scheduling","notScheduled");
Ca=[];va._zoneDelegates=Ca;va._zone=this;try{va=this._zoneDelegate.scheduleTask(this,va)}catch(Ia){throw va._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ia),Ia;}va._zoneDelegates===Ca&&this._updateTaskCount(va,1);"scheduling"==va.state&&va._transitionTo("scheduled","scheduling");return va};D.prototype.scheduleMicroTask=function(va,Ca,Ia,Xa){return this.scheduleTask(new L("microTask",va,Ca,Ia,Xa,void 0))};D.prototype.scheduleMacroTask=function(va,Ca,Ia,Xa,
$a){return this.scheduleTask(new L("macroTask",va,Ca,Ia,Xa,$a))};D.prototype.scheduleEventTask=function(va,Ca,Ia,Xa,$a){return this.scheduleTask(new L("eventTask",va,Ca,Ia,Xa,$a))};D.prototype.cancelTask=function(va){if(va.zone!=this)throw Error("Y`"+(va.zone||Ja).name+"`"+this.name);va._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,va)}catch(Ca){throw va._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Ca),Ca;}this._updateTaskCount(va,
-1);va._transitionTo("notScheduled","canceling");va.runCount=0;return va};D.prototype._updateTaskCount=function(va,Ca){var Ia=va._zoneDelegates;-1==Ca&&(va._zoneDelegates=null);for(var Xa=0;Xa<Ia.length;Xa++)Ia[Xa]._updateTaskCount(va.type,Ca)};oi.Object.defineProperties(D.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});oi.Object.defineProperties(D,{root:{configurable:!0,enumerable:!0,get:function(){for(var va=
D.current;va.parent;)va=va.parent;return va}},current:{configurable:!0,enumerable:!0,get:function(){return hb.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return fb}}});D.__symbol__=d;var I={name:"",onHasTask:function(va,Ca,Ia,Xa){return va.hasTask(Ia,Xa)},onScheduleTask:function(va,Ca,Ia,Xa){return va.scheduleTask(Ia,Xa)},onInvokeTask:function(va,Ca,Ia,Xa,$a,jc){return va.invokeTask(Ia,Xa,$a,jc)},onCancelTask:function(va,Ca,Ia,Xa){return va.cancelTask(Ia,Xa)}},N=function(va,Ca,
Ia){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=va;this._parentDelegate=Ca;this._forkZS=Ia&&(Ia&&Ia.onFork?Ia:Ca._forkZS);this._forkDlgt=Ia&&(Ia.onFork?Ca:Ca._forkDlgt);this._forkCurrZone=Ia&&(Ia.onFork?this.zone:Ca._forkCurrZone);this._interceptZS=Ia&&(Ia.onIntercept?Ia:Ca._interceptZS);this._interceptDlgt=Ia&&(Ia.onIntercept?Ca:Ca._interceptDlgt);this._interceptCurrZone=Ia&&(Ia.onIntercept?this.zone:Ca._interceptCurrZone);this._invokeZS=Ia&&(Ia.onInvoke?Ia:Ca._invokeZS);this._invokeDlgt=
Ia&&(Ia.onInvoke?Ca:Ca._invokeDlgt);this._invokeCurrZone=Ia&&(Ia.onInvoke?this.zone:Ca._invokeCurrZone);this._handleErrorZS=Ia&&(Ia.onHandleError?Ia:Ca._handleErrorZS);this._handleErrorDlgt=Ia&&(Ia.onHandleError?Ca:Ca._handleErrorDlgt);this._handleErrorCurrZone=Ia&&(Ia.onHandleError?this.zone:Ca._handleErrorCurrZone);this._scheduleTaskZS=Ia&&(Ia.onScheduleTask?Ia:Ca._scheduleTaskZS);this._scheduleTaskDlgt=Ia&&(Ia.onScheduleTask?Ca:Ca._scheduleTaskDlgt);this._scheduleTaskCurrZone=Ia&&(Ia.onScheduleTask?
this.zone:Ca._scheduleTaskCurrZone);this._invokeTaskZS=Ia&&(Ia.onInvokeTask?Ia:Ca._invokeTaskZS);this._invokeTaskDlgt=Ia&&(Ia.onInvokeTask?Ca:Ca._invokeTaskDlgt);this._invokeTaskCurrZone=Ia&&(Ia.onInvokeTask?this.zone:Ca._invokeTaskCurrZone);this._cancelTaskZS=Ia&&(Ia.onCancelTask?Ia:Ca._cancelTaskZS);this._cancelTaskDlgt=Ia&&(Ia.onCancelTask?Ca:Ca._cancelTaskDlgt);this._cancelTaskCurrZone=Ia&&(Ia.onCancelTask?this.zone:Ca._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=
this._hasTaskZS=null;var Xa=Ia&&Ia.onHasTask,$a=Ca&&Ca._hasTaskZS;if(Xa||$a)this._hasTaskZS=Xa?Ia:I,this._hasTaskDlgt=Ca,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=va,Ia.onScheduleTask||(this._scheduleTaskZS=I,this._scheduleTaskDlgt=Ca,this._scheduleTaskCurrZone=this.zone),Ia.onInvokeTask||(this._invokeTaskZS=I,this._invokeTaskDlgt=Ca,this._invokeTaskCurrZone=this.zone),Ia.onCancelTask||(this._cancelTaskZS=I,this._cancelTaskDlgt=Ca,this._cancelTaskCurrZone=this.zone)};N.prototype.fork=function(va,
Ca){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,va,Ca):new D(va,Ca)};N.prototype.intercept=function(va,Ca,Ia){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,va,Ca,Ia):Ca};N.prototype.invoke=function(va,Ca,Ia,Xa,$a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,va,Ca,Ia,Xa,$a):Ca.apply(Ia,Xa)};N.prototype.handleError=function(va,Ca){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,va,Ca):!0};N.prototype.scheduleTask=function(va,Ca){var Ia=Ca;if(this._scheduleTaskZS)this._hasTaskZS&&Ia._zoneDelegates.push(this._hasTaskDlgtOwner),(Ia=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,va,Ca))||(Ia=Ca);else if(Ca.scheduleFn)Ca.scheduleFn(Ca);else if("microTask"==Ca.type)f(Ca);else throw Error("Z");return Ia};N.prototype.invokeTask=function(va,Ca,Ia,Xa){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,va,Ca,Ia,Xa):Ca.callback.apply(Ia,Xa)};N.prototype.cancelTask=function(va,Ca){if(this._cancelTaskZS)va=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,va,Ca);else{if(!Ca.cancelFn)throw Error("$");va=Ca.cancelFn(Ca)}return va};N.prototype.hasTask=function(va,Ca){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,va,Ca)}catch(Ia){this.handleError(va,Ia)}};N.prototype._updateTaskCount=function(va,Ca){var Ia=this._taskCounts,
Xa=Ia[va];Ca=Ia[va]=Xa+Ca;if(0>Ca)throw Error("aa");0!=Xa&&0!=Ca||this.hasTask(this.zone,{microTask:0<Ia.microTask,macroTask:0<Ia.macroTask,eventTask:0<Ia.eventTask,change:va})};var L=function(va,Ca,Ia,Xa,$a,jc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=va;this.source=Ca;this.data=Xa;this.scheduleFn=$a;this.cancelFn=jc;if(!Ia)throw Error("ba");this.callback=Ia;var Va=this;"eventTask"===va&&Xa&&Xa.useG?this.invoke=L.invokeTask:this.invoke=function(){return L.invokeTask.call(a,
Va,this,arguments)}};L.invokeTask=function(va,Ca,Ia){va||(va=this);Tb++;try{return va.runCount++,va.zone.runTask(va,Ca,Ia)}finally{1==Tb&&h(),Tb--}};L.prototype._transitionTo=function(va,Ca,Ia){if(this._state===Ca||this._state===Ia)this._state=va,"notScheduled"==va&&(this._zoneDelegates=null);else throw Error("ca`"+this.type+"`"+this.source+"`"+va+"`"+Ca+"`"+(Ia?" or '"+Ia+"'":"")+"`"+this._state);};L.prototype.toString=function(){return this.data&&"undefined"!==typeof this.data.handleId?this.data.handleId.toString():
Object.prototype.toString.call(this)};L.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};oi.Object.defineProperties(L.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var S=d("setTimeout"),X=d("Promise"),ka=d("then"),ha=[],ra=!1,Da,Ja={name:"NO ZONE"},Ba={},La={symbol:d,currentZoneFrame:function(){return hb},onUnhandledError:k,
microtaskDrainDone:k,scheduleMicroTask:f,showUncaughtError:function(){return!D[d("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:k,patchMethod:function(){return k},bindArguments:function(){return[]},patchThen:function(){return k},patchMacroTask:function(){return k},patchEventPrototype:function(){return k},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return k},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},
ArraySlice:function(){return[]},patchClass:function(){return k},wrapWithCurrentZone:function(){return k},filterProperties:function(){return[]},attachOriginToPatched:function(){return k},_redefineProperty:function(){return k},patchCallbacks:function(){return k},nativeScheduleMicroTask:e},hb={parent:null,zone:new D(null,null)},fb=null,Tb=0;c("Zone","Zone");return a.Zone=D})("undefined"!==typeof window&&window||"undefined"!==typeof self&&self||global);
Zone.__load_patch("Error",function(a,b,c){function d(ha){for(var ra={zoneName:ha.zone.name},Da=ra;ha.parent;){ha=ha.parent;var Ja={zoneName:ha.zone.name};ra=ra.parent=Ja}return Da}function e(ha,ra,Da){Da=void 0===Da?!0:Da;ha=ha.split("\n");for(var Ja=0;ha[Ja]!==u&&ha[Ja]!==y&&ha[Ja]!==D&&ha[Ja]!==I&&ha[Ja]!==N&&Ja<ha.length;)Ja++;for(;Ja<ha.length&&ra;Ja++){var Ba=ha[Ja];if(Ba.trim())switch(q[Ba]){case 0:ha.splice(Ja,1);Ja--;break;case 1:ra.parent?ra=ra.parent:ra=null;ha.splice(Ja,1);Ja--;break;default:ha[Ja]+=
Da?" ["+ra.zone.name+"]":" ["+ra.zoneName+"]"}}return ha.join("\n")}function f(){var ha=this,ra=k.apply(this,arguments),Da=ra.originalStack=ra.stack;if(f.stackRewrite&&Da){var Ja=c.currentZoneFrame();if("lazy"===L)ra[c.symbol("zoneFrameNames")]=d(Ja);else if("default"===L)try{ra.stack=ra.zoneAwareStack=e(Da,Ja)}catch(Ba){}}return this instanceof k&&this.constructor!=k?(Object.keys(ra).concat("stack","message").forEach(function(Ba){var La=ra[Ba];if(void 0!==La)try{ha[Ba]=La}catch(hb){}}),this):ra}
var h=c.symbol("zoneJsInternalStackFrames"),k=a[c.symbol("Error")]=a.Error,q={},u,y,D,I,N;a.Error=f;var L=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=k.prototype;f[h]=q;f.stackRewrite=!1;var S=c.symbol("zoneAwareStack");"lazy"===L&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[S]||(this[S]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[S]},set:function(ha){this.originalStack=
ha;this[S]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var X=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(k))&&a.forEach(function(ha){0===X.filter(function(ra){return ra===ha}).length&&Object.defineProperty(f,ha,{get:function(){return k[ha]},set:function(ra){k[ha]=ra}})});k.hasOwnProperty("stackTraceLimit")&&(k.stackTraceLimit=Math.max(k.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return k.stackTraceLimit},set:function(ha){return k.stackTraceLimit=
ha}}));k.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(ha,ra){k.captureStackTrace(ha,ra)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(ha){return ha&&"function"===typeof ha?k.prepareStackTrace=function(ra,Da){if(Da)for(var Ja=0;Ja<Da.length;Ja++)if("zoneCaptureStackTrace"===Da[Ja].getFunctionName()){Da.splice(Ja,1);break}return ha.call(this,ra,Da)}:k.prepareStackTrace=ha}});if("disable"!==
L){var ka=b.current.fork({name:"detect",onHandleError:function(ha,ra,Da,Ja){if(Ja.originalStack&&Error===f)for(ha=Ja.originalStack.split(/\n/),Ja=Da=ra=!1;ha.length;){var Ba=ha.shift();if(/:\d+:\d+/.test(Ba)||"ZoneAwareError"===Ba){var La=Ba.split("(")[0].split("@")[0],hb=1;-1!==La.indexOf("ZoneAwareError")&&(-1!==La.indexOf("new ZoneAwareError")?(u=Ba,y=Ba.replace("new ZoneAwareError","new Error.ZoneAwareError")):(D=Ba,I=Ba.replace("Error.",""),-1===Ba.indexOf("Error.ZoneAwareError")&&(N=Ba.replace("ZoneAwareError",
"Error.ZoneAwareError"))),q[y]=0);-1!==La.indexOf("runGuarded")?Da=!0:-1!==La.indexOf("runTask")?Ja=!0:-1!==La.indexOf("run")?ra=!0:hb=0;q[Ba]=hb;if(ra&&Da&&Ja){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(ha,ra,Da,Ja){return ha.scheduleTask(Da,Ja)},onInvokeTask:function(ha,ra,Da,Ja,Ba,La){return ha.invokeTask(Da,Ja,Ba,La)},onCancelTask:function(ha,ra,Da,Ja){return ha.cancelTask(Da,Ja)},onInvoke:function(ha,ra,Da,Ja,Ba,La,hb){return ha.invoke(Da,Ja,Ba,La,hb)}});
b=Error.stackTraceLimit;Error.stackTraceLimit=100;ka.run(function(){ka.runGuarded(function(){var ha=function(){};ka.scheduleEventTask(h,function(){ka.scheduleMacroTask(h,function(){ka.scheduleMicroTask(h,function(){throw Error();},void 0,function(ra){ra._transitionTo=ha;ra.invoke()});ka.scheduleMicroTask(h,function(){throw Error();},void 0,function(ra){ra._transitionTo=ha;ra.invoke()})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},function(){})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},
function(){})})});Error.stackTraceLimit=b}});
var Jb=Object.getOwnPropertyDescriptor,tba=Object.defineProperty,wba=Object.getPrototypeOf,alb=Object.create,blb=Array.prototype.slice,clb=Zone.__symbol__("addEventListener"),dlb=Zone.__symbol__("removeEventListener"),Sb=Zone.__symbol__(""),Lb=Zone.__symbol__,Ov="undefined"!==typeof window,Rb=Ov?window:void 0,Nb=Ov&&Rb||"object"===typeof self&&self||global,elb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Vb=!("nw"in Nb)&&"undefined"!==typeof Nb.process&&"[object process]"===
{}.toString.call(Nb.process),flb=!Vb&&!elb&&!(!Ov||!Rb.HTMLElement),glb="undefined"!==typeof Nb.process&&"[object process]"==={}.toString.call(Nb.process)&&!elb&&!(!Ov||!Rb.HTMLElement),Mb={},sba=function(a){if(a=a||Nb.event){var b=Mb[a.type];b||(b=Mb[a.type]=Lb("ON_PROPERTY"+a.type));var c=this||a.target||Nb;b=c[b];flb&&c===Rb&&"error"===a.type?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),!0===c&&a.preventDefault()):(c=b&&b.apply(this,arguments),void 0==c||c||a.preventDefault());
return c}},Ob=Lb("originalInstance"),yba=!1,zba=!1;
var Wb=!1;if("undefined"!==typeof window)try{var Pv=Object.defineProperty({},"passive",{get:function(){Wb=!0}});window.addEventListener("test",Pv,Pv);window.removeEventListener("test",Pv,Pv)}catch(a){Wb=!1}var Eba={useG:!0},Ub={},Dba={},Gba=new RegExp("^"+Sb+"(\\w+)(true|false)$"),Cba=Lb("propagationStopped");
Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Va){if(Va&&Va.toString===Object.prototype.toString){var Ya=Va.constructor&&Va.constructor.name;return(Ya?Ya:"")+": "+JSON.stringify(Va)}return Va?Va.toString():Object.prototype.toString.call(Va)}function e(Va){c.onUnhandledError(Va);try{var Ya=b[Da];"function"===typeof Ya&&Ya.call(this,Va)}catch(Sa){}}function f(Va){return Va}function h(Va){return $a.reject(Va)}function k(Va,Ya){return function(Sa){try{q(Va,Ya,Sa)}catch(vb){q(Va,!1,vb)}}}
function q(Va,Ya,Sa){var vb=Tb();if(Va===Sa)throw new TypeError("ea");if(null===Va[Ja]){var eb=null;try{if("object"===typeof Sa||"function"===typeof Sa)eb=Sa&&Sa.then}catch(zb){return vb(function(){q(Va,!1,zb)})(),Va}if(!1!==Ya&&Sa instanceof $a&&Sa.hasOwnProperty(Ja)&&Sa.hasOwnProperty(Ba)&&null!==Sa[Ja])u(Sa),q(Va,Sa[Ja],Sa[Ba]);else if(!1!==Ya&&"function"===typeof eb)try{eb.call(Sa,vb(k(Va,Ya)),vb(k(Va,!1)))}catch(zb){vb(function(){q(Va,!1,zb)})()}else{Va[Ja]=Ya;vb=Va[Ba];Va[Ba]=Sa;Va[La]===La&&
!0===Ya&&(Va[Ja]=Va[fb],Va[Ba]=Va[hb]);!1===Ya&&Sa instanceof Error&&(eb=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&L(Sa,va,{configurable:!0,enumerable:!1,writable:!0,value:eb});for(eb=0;eb<vb.length;)y(Va,vb[eb++],vb[eb++],vb[eb++],vb[eb++]);if(0==vb.length&&0==Ya){Va[Ja]=0;Ya=Sa;try{throw Error("fa`"+d(Sa)+"`"+(Sa&&Sa.stack?"\n"+Sa.stack:""));}catch(zb){Ya=zb}ka&&(Ya.throwOriginal=!0);Ya.rejection=Sa;Ya.promise=Va;Ya.zone=b.current;Ya.task=b.currentTask;X.push(Ya);
c.scheduleMicroTask()}}}return Va}function u(Va){if(0===Va[Ja]){try{var Ya=b[Ca];Ya&&"function"===typeof Ya&&Ya.call(this,{rejection:Va[Ba],promise:Va})}catch(Sa){}Va[Ja]=!1;for(Ya=0;Ya<X.length;Ya++)Va===X[Ya].promise&&X.splice(Ya,1)}}function y(Va,Ya,Sa,vb,eb){u(Va);var zb=Va[Ja],Ib=zb?"function"===typeof vb?vb:f:"function"===typeof eb?eb:h;Ya.scheduleMicroTask("Promise.then",function(){try{var ec=Va[Ba],Ac=!!Sa&&La===Sa[La];Ac&&(Sa[hb]=ec,Sa[fb]=zb);var se=Ya.run(Ib,void 0,Ac&&Ib!==h&&Ib!==f?[]:
[ec]);q(Sa,!0,se)}catch(jd){q(Sa,!1,jd)}},Sa)}function D(Va){var Ya=Va.prototype,Sa=N(Ya,"then");if(!Sa||!1!==Sa.writable&&Sa.configurable){var vb=Ya.then;Ya[ra]=vb;Va.prototype.then=function(eb,zb){var Ib=this;return(new $a(function(ec,Ac){vb.call(Ib,ec,Ac)})).then(eb,zb)};Va[jc]=!0}}function I(Va){return function(Ya,Sa){Ya=Va.apply(Ya,Sa);if(Ya instanceof $a)return Ya;Sa=Ya.constructor;Sa[jc]||D(Sa);return Ya}}var N=Object.getOwnPropertyDescriptor,L=Object.defineProperty,S=c.symbol,X=[],ka=!0===
a[S("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ha=S("Promise"),ra=S("then");c.onUnhandledError=function(Va){if(c.showUncaughtError()){var Ya=Va&&Va.rejection;Ya?console.error("Unhandled Promise rejection:",Ya instanceof Error?Ya.message:Ya,"; Zone:",Va.zone.name,"; Task:",Va.task&&Va.task.source,"; Value:",Ya,Ya instanceof Error?Ya.stack:void 0):console.error(Va)}};c.microtaskDrainDone=function(){for(var Va={};X.length;){Va.$jscomp$loop$prop$uncaughtPromiseError$1628=X.shift();try{Va.$jscomp$loop$prop$uncaughtPromiseError$1628.zone.runGuarded(function(Ya){return function(){if(Ya.$jscomp$loop$prop$uncaughtPromiseError$1628.throwOriginal)throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1628.rejection;
throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1628;}}(Va))}catch(Ya){e(Ya)}Va={$jscomp$loop$prop$uncaughtPromiseError$1628:Va.$jscomp$loop$prop$uncaughtPromiseError$1628}}};var Da=S("unhandledPromiseRejectionHandler"),Ja=S("state"),Ba=S("value"),La=S("finally"),hb=S("parentPromiseValue"),fb=S("parentPromiseState"),Tb=function(){var Va=!1;return function(Ya){return function(){Va||(Va=!0,Ya.apply(null,arguments))}}},va=S("currentTaskTrace"),Ca=S("rejectionHandledHandler"),Ia=function(){},Xa=a.AggregateError,
$a=function(Va){if(!(this instanceof $a))throw Error("ga");this[Ja]=null;this[Ba]=[];try{var Ya=Tb();Va&&Va(Ya(k(this,!0)),Ya(k(this,!1)))}catch(Sa){q(this,!1,Sa)}};$a.toString=function(){return"function ZoneAwarePromise() { [native code] }"};$a.resolve=function(Va){return q(new this(null),!0,Va)};$a.reject=function(Va){return q(new this(null),!1,Va)};$a.any=function(Va){if(!Va||"function"!==typeof Va[Symbol.iterator])return Promise.reject(new Xa([],"All promises were rejected"));var Ya=[],Sa=0;try{for(var vb=
r(Va),eb=vb.next();!eb.done;eb=vb.next()){var zb=eb.value;Sa++;Ya.push($a.resolve(zb))}}catch(Ac){return Promise.reject(new Xa([],"All promises were rejected"))}if(0===Sa)return Promise.reject(new Xa([],"All promises were rejected"));var Ib=!1,ec=[];return new $a(function(Ac,se){for(var jd=0;jd<Ya.length;jd++)Ya[jd].then(function(Ed){Ib||(Ib=!0,Ac(Ed))},function(Ed){ec.push(Ed);Sa--;0===Sa&&(Ib=!0,se(new Xa(ec,"All promises were rejected")))})})};$a.race=function(Va){function Ya(ec){vb(ec)}function Sa(ec){eb(ec)}
var vb,eb,zb=new this(function(ec,Ac){vb=ec;eb=Ac});Va=r(Va);for(var Ib=Va.next();!Ib.done;Ib=Va.next())(Ib=Ib.value)&&Ib.then||(Ib=this.resolve(Ib)),Ib.then(Ya,Sa);return zb};$a.all=function(Va){return $a.allWithCallback(Va)};$a.allSettled=function(Va){return(this&&this.prototype instanceof $a?this:$a).allWithCallback(Va,{thenCallback:function(Ya){return{status:"fulfilled",value:Ya}},errorCallback:function(Ya){return{status:"rejected",reason:Ya}}})};$a.allWithCallback=function(Va,Ya){var Sa,vb,eb=
new this(function(jd,Ed){Sa=jd;vb=Ed}),zb=2,Ib=0,ec=[],Ac={};Va=r(Va);for(var se=Va.next();!se.done;Ac={$jscomp$loop$prop$curValueIndex$1631:Ac.$jscomp$loop$prop$curValueIndex$1631},se=Va.next()){(se=se.value)&&se.then||(se=this.resolve(se));Ac.$jscomp$loop$prop$curValueIndex$1631=Ib;try{se.then(function(jd){return function(Ed){ec[jd.$jscomp$loop$prop$curValueIndex$1631]=Ya?Ya.thenCallback(Ed):Ed;zb--;0===zb&&Sa(ec)}}(Ac),function(jd){return function(Ed){Ya?(ec[jd.$jscomp$loop$prop$curValueIndex$1631]=
Ya.errorCallback(Ed),zb--,0===zb&&Sa(ec)):vb(Ed)}}(Ac))}catch(jd){vb(jd)}zb++;Ib++}zb-=2;0===zb&&Sa(ec);return eb};oi.Object.defineProperty($a.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});oi.Object.defineProperty($a.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return $a}});$a.prototype.then=function(Va,Ya){var Sa,vb=null==(Sa=this.constructor)?void 0:Sa[Symbol.species];vb&&"function"===typeof vb||(vb=this.constructor||$a);
Sa=new vb(Ia);vb=b.current;null==this[Ja]?this[Ba].push(vb,Sa,Va,Ya):y(this,vb,Sa,Va,Ya);return Sa};$a.prototype.catch=function(Va){return this.then(null,Va)};$a.prototype.finally=function(Va){var Ya,Sa=null==(Ya=this.constructor)?void 0:Ya[Symbol.species];Sa&&"function"===typeof Sa||(Sa=$a);Ya=new Sa(Ia);Ya[La]=La;Sa=b.current;null==this[Ja]?this[Ba].push(Sa,Ya,Va,Va):y(this,Sa,Ya,Va,Va);return Ya};$a.resolve=$a.resolve;$a.reject=$a.reject;$a.race=$a.race;$a.all=$a.all;ha=a[ha]=a.Promise;a.Promise=
$a;var jc=S("thenPatched");c.patchThen=D;ha&&(D(ha),Qb(a,"fetch",function(Va){return I(Va)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=X;return $a});
var Xb=Lb("zoneTask");
Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=Lb("OriginalDelegate"),d=Lb("Promise"),e=Lb("Error"),f=function(){if("function"===typeof this){var k=this[c];if(k)return"function"===typeof k?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var h=Object.prototype.toString;Object.prototype.toString=function(){return"function"===typeof Promise&&this instanceof
Promise?"[object Promise]":h.call(this)}});
/*

 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
 @param {!_ZonePrivate} api
 @param {?} target
 @param {string} targetName
 @param {string} method
 @param {!Array<string>} callbacks
 @return {void}
*/
Zone.__load_patch("util",function(a,b,c){var d=Lba(a);c.patchOnProperties=vba;c.patchMethod=Qb;c.bindArguments=pba;c.patchMacroTask=xba;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=Iba;c.patchEventTarget=Hba;c.isIEOrEdge=Aba;c.ObjectDefineProperty=tba;c.ObjectGetOwnPropertyDescriptor=Jb;c.ObjectCreate=alb;c.ArraySlice=blb;c.patchClass=Pb;c.wrapWithCurrentZone=oba;c.filterProperties=Kba;c.attachOriginToPatched=
Kb;c._redefineProperty=Object.defineProperty;c.patchCallbacks=Jba;c.getGlobalObjects=function(){return{globalSources:Dba,zoneSymbolEventNames:Ub,eventNames:d,isBrowser:flb,isMix:glb,isNode:Vb,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:Sb,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});
var Zb,$b,Mba,Nba,ac;
var Vba=[].concat(v("abort animationcancel animationend animationiteration auxclick beforeinput blur cancel canplay canplaythrough change compositionstart compositionupdate compositionend cuechange click close contextmenu curechange dblclick drag dragend dragenter dragexit dragleave dragover drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadstart loadeddata loadedmetadata lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup mousewheel orientationchange pause play playing pointercancel pointerdown pointerenter pointerleave pointerlockchange mozpointerlockchange webkitpointerlockerchange pointerlockerror mozpointerlockerror webkitpointerlockerror pointermove pointout pointerover pointerup progress ratechange reset resize scroll seeked seeking select selectionchange selectstart show sort stalled submit suspend timeupdate volumechange touchcancel touchmove touchstart touchend transitioncancel transitionend waiting wheel".split(" ")),
v(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),v(["autocomplete","autocompleteerror"]),v(["toggle"]),v("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),v("absolutedeviceorientation afterinput afterprint appinstalled beforeinstallprompt beforeprint beforeunload devicelight devicemotion deviceorientation deviceorientationabsolute deviceproximity hashchange languagechange message mozbeforepaint offline online paint pageshow pagehide popstate rejectionhandled storage unhandledrejection unload userproximity vrdisplayconnected vrdisplaydisconnected vrdisplaypresentchange".split(" ")),
v("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),v("activate afterupdate ariarequest beforeactivate beforedeactivate beforeeditfocus beforeupdate cellchange controlselect dataavailable datasetchanged datasetcomplete errorupdate filterchange layoutcomplete losecapture move moveend movestart propertychange resizeend resizestart rowenter rowexit rowsdelete rowsinserted command compassneedscalibration deactivate help mscontentzoom msmanipulationstatechanged msgesturechange msgesturedoubletap msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup pointerout mssitemodejumplistitemremoved msthumbnailclick stop storagecommit".split(" ")));
(function(a){a[(a.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var b=a.Zone;b.__load_patch("defineProperty",function(c,d,e){e._redefineProperty=Rba;Qba()});b.__load_patch("registerElement",function(c,d,e){d=e.getGlobalObjects();var f=d.isMix;(d.isBrowser||f)&&"registerElement"in c.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])});b.__load_patch("EventTargetLegacy",function(c,
d,e){Sba(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||Uba(e,c)||(d="undefined"!==typeof WebSocket,Wba(e),e.patchClass("XMLHttpRequest"),d&&Tba(e,c),Zone[e.symbol("patchEvents")]=!0)})}})("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{});
Zone.__load_patch("legacy",function(a){(a=a[Zone.__symbol__("legacyPatch")])&&a()});Zone.__load_patch("queueMicrotask",function(a,b,c){c.patchMethod(a,"queueMicrotask",function(){return function(d,e){b.current.scheduleMicroTask("queueMicrotask",e[0])}})});Zone.__load_patch("timers",function(a){Yb(a,"set","clear","Timeout");Yb(a,"set","clear","Interval");Yb(a,"set","clear","Immediate")});
Zone.__load_patch("requestAnimationFrame",function(a){Yb(a,"request","cancel","AnimationFrame");Yb(a,"mozRequest","mozCancel","AnimationFrame");Yb(a,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",function(a,b){for(var c=["alert","prompt","confirm"],d=0;d<c.length;d++)Qb(a,c[d],function(e,f,h){return function(k,q){return b.current.run(e,a,q,h)}})});
Zone.__load_patch("EventTarget",function(a,b,c){c.patchEventPrototype(a,c);if(!Zone[c.symbol("patchEventTarget")]){var d=c.getGlobalObjects();b=d.eventNames;var e=d.zoneSymbolEventNames,f=d.TRUE_STR,h=d.FALSE_STR;d=d.ZONE_SYMBOL_PREFIX;for(var k=0;k<b.length;k++){var q=b[k],u=d+(q+h),y=d+(q+f);e[q]={};e[q][h]=u;e[q][f]=y}(b=a.EventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b&&b.prototype])}(b=a.XMLHttpRequestEventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b.prototype])});
Zone.__load_patch("MutationObserver",function(){Pb("MutationObserver");Pb("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",function(){Pb("IntersectionObserver")});Zone.__load_patch("FileReader",function(){Pb("FileReader")});
Zone.__load_patch("on_property",function(a,b,c){if((!Vb||glb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(flb){var d=window;c=c.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var e=Rb.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")){var f=!0;break a}}catch(k){}f=!1}e=f?[{target:d,ignoreProperties:["error"]}]:
[];f=Lba(d);var h=b?b.concat(e):b;e=wba(d);d&&(f=Kba(d,f,h),vba(d,f,e))}c=c.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(d=0;d<c.length;d++)(e=a[c[d]])&&e.prototype&&(f=e.prototype,e=Lba(e.prototype),f&&(e=Kba(f,e,b),vba(f,e,void 0)))}});
Zone.__load_patch("customElements",function(a,b,c){b=c.getGlobalObjects();var d=b.isMix;(b.isBrowser||d)&&a.customElements&&"customElements"in a&&c.patchCallbacks(c,a.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])});
Zone.__load_patch("XHR",function(a,b){(function(q){function u(Da){var Ja=Da.data,Ba=Ja.target;Ba[f]=!1;Ba[k]=!1;var La=Ba[e];N||(N=Ba[clb],L=Ba[dlb]);La&&L.call(Ba,"readystatechange",La);La=Ba[e]=function(){if(Ba.readyState===Ba.DONE)if(!Ja.aborted&&Ba[f]&&"scheduled"===Da.state){var hb=Ba[b.__symbol__("loadfalse")];if(0!==Ba.status&&hb&&0<hb.length){var fb=Da.invoke;Da.invoke=function(){for(var Tb=Ba[b.__symbol__("loadfalse")],va=0;va<Tb.length;va++)Tb[va]===Da&&Tb.splice(va,1);Ja.aborted||"scheduled"!==
Da.state||fb.call(Da)};hb.push(Da)}else Da.invoke()}else Ja.aborted||!1!==Ba[f]||(Ba[k]=!0)};N.call(Ba,"readystatechange",La);Ba[c]||(Ba[c]=Da);ha.apply(Ba,Ja.args);Ba[f]=!0;return Da}function y(){}function D(Da){Da=Da.data;Da.aborted=!0;return ra.apply(Da.target,Da.args)}var I=q.XMLHttpRequest;if(I){I=I.prototype;var N=I[clb],L=I[dlb];!N&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,N=q[clb],L=q[dlb]);var S=Qb(I,"open",function(){return function(Da,Ja){Da[d]=0==Ja[2];Da[h]=Ja[1];return S.apply(Da,
Ja)}}),X=Lb("fetchTaskAborting"),ka=Lb("fetchTaskScheduling"),ha=Qb(I,"send",function(){return function(Da,Ja){if(!0===b.current[ka]||Da[d])return ha.apply(Da,Ja);Ja={target:Da,url:Da[h],isPeriodic:!1,args:Ja,aborted:!1};var Ba=Zone.current.scheduleMacroTask("XMLHttpRequest.send",y,Ja,u,D);Da&&!0===Da[k]&&!Ja.aborted&&"scheduled"===Ba.state&&Ba.invoke()}}),ra=Qb(I,"abort",function(){return function(Da,Ja){var Ba=Da[c];if(Ba&&"string"==typeof Ba.type)null==Ba.cancelFn||Ba.data&&Ba.data.aborted||Ba.zone.cancelTask(Ba);
else if(!0===b.current[X])return ra.apply(Da,Ja)}})}})(a);var c=Lb("xhrTask"),d=Lb("xhrSync"),e=Lb("xhrListener"),f=Lb("xhrScheduled"),h=Lb("xhrURL"),k=Lb("xhrErrorBeforeScheduled")});Zone.__load_patch("geolocation",function(a){a.navigator&&a.navigator.geolocation&&rba(a.navigator.geolocation)});
Zone.__load_patch("PromiseRejectionEvent",function(a,b){function c(d){return function(e){Fba(a,d).forEach(function(f){var h=a.PromiseRejectionEvent;h&&(h=new h(d,{promise:e.promise,reason:e.rejection}),f.invoke(h))})}}a.PromiseRejectionEvent&&(b[Lb("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[Lb("rejectionHandledHandler")]=c("rejectionhandled"))});
Zone.__load_patch("canvas",function(a,b,c){a=a.HTMLCanvasElement;"undefined"!==typeof a&&a.prototype&&a.prototype.toBlob&&c.patchMacroTask(a.prototype,"toBlob",function(d,e){return{name:"HTMLCanvasElement.toBlob",target:d,cbIdx:0,args:e}})});
var $ba=bc({__forward_ref__:bc});
var aca=bc({"\u0275prov":bc}),eca=bc({"\u0275inj":bc}),bca=bc({ngInjectableDef:bc}),fca=bc({ngInjectorDef:bc});
var od=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=hc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};od.prototype.toString=function(){return"InjectionToken "+this._desc};oi.Object.defineProperties(od.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});
var cda=new od("ENVIRONMENT_INITIALIZER");
var yd="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof global&&global||"undefined"!==typeof window&&window||"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
var mc=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b:""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};U(mc,Error);
var hca;
/*

 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.
*/
var Qv={},hlb=/\n/gm,pc=void 0;
var ilb=rc(uc(function(a){return{token:a}}),-1),Rv=rc(uc(),8);rc(uc(),2);var Sv=rc(uc(),4);rc(uc(),1);
var wc=bc({"\u0275cmp":bc}),sca=bc({"\u0275dir":bc}),tca=bc({"\u0275pipe":bc}),jlb=bc({"\u0275mod":bc}),Dc=bc({"\u0275fac":bc}),Zc=bc({__NG_ELEMENT_ID__:bc});
var yc={},vc=[];
var mca=0;
var xca=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};xca.prototype.isFirstChange=function(){return this.firstChange};
Fc.ngInherit=!0;
var yca=void 0;
var klb={createRenderer:function(){return zca()}};
var Kc=Fca(null);
var fd=function(a,b){var c=C;this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};
var Kca=!0,Lca=0,cd={},gd=function(a,b){this._tNode=a;this._lView=b};gd.prototype.get=function(a,b,c){return Sca(this._tNode,this._lView,a,c,b)};
bc({provide:String,useValue:bc});
var bda=new od("INJECTOR_DEF_TYPES");
var dda=bc({provide:String,useValue:bc});
var llb=new od("INJECTOR",-1);
var gda=function(){};gda.prototype.get=function(a,b){b=void 0===b?Qv:b;if(b===Qv)throw a=Error("la`"+cc(a)),a.name="NullInjectorError",a;return b};
var Oha=new od("Set Injector scope.");
var qd={},mlb={},fda=void 0,Tv=function(){},rd=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;mda(a,function(f){return nlb(e,f)});this.records.set(llb,pd(void 0,this));d.has("environment")&&this.records.set(Tv,pd(void 0,this));a=this.records.get(Oha);null!=a&&"string"===typeof a.value&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(bda.multi,vc,2))};U(rd,Tv);
rd.prototype.destroy=function(){if(this._destroyed)throw new mc(205,!1);this._destroyed=!0;try{for(var a=r(this._ngOnDestroyHooks),b=a.next();!b.done;b=a.next())b.value.ngOnDestroy();for(var c=r(this._onDestroyHooks),d=c.next();!d.done;d=c.next()){var e=d.value;e()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}};rd.prototype.onDestroy=function(a){this._onDestroyHooks.push(a)};
rd.prototype.get=function(a,b,c){b=void 0===b?Qv:b;c=void 0===c?0:c;if(this._destroyed)throw new mc(205,!1);var d=qc(this),e=oc();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof od)&&cca(a),k;if(k=h)if(h.providedIn){var q=gc(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=pd(jda(a),qd):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===qd&&(b.value=mlb,b.value=b.factory());
var u;if(u="object"===typeof b.value&&b.value){var y=b.value;u=null!==y&&"object"===typeof y&&"function"===typeof y.ngOnDestroy}u&&this._ngOnDestroyHooks.add(b.value);return b.value}}var D=c&2?hda():this.parent;b=c&8&&b===Qv?null:b;return D.get(a,b)}catch(ra){if("NullInjectorError"===ra.name){(ra.ngTempTokenPath=ra.ngTempTokenPath||[]).unshift(cc(a));if(d)throw ra;u=ra;var I=this.source,N=u.ngTempTokenPath;a.__source&&N.unshift(a.__source);var L="\n"+u.message;a=I;a=void 0===a?null:a;L=L&&"\n"===
L.charAt(0)&&"\u0275"==L.charAt(1)?L.slice(2):L;var S=cc(N);if(Array.isArray(N))S=N.map(cc).join(" -> ");else if("object"===typeof N){I=[];for(var X in N)if(N.hasOwnProperty(X)){var ka=N[X];I.push(X+":"+("string"===typeof ka?JSON.stringify(ka):cc(ka)))}S="{"+I.join(", ")+"}"}var ha="R3InjectorError"+(a?"("+a+")":"")+"["+S+"]: "+L.replace(hlb,"\n  ");u.message=ha;u.ngTokenPath=N;u.ngTempTokenPath=null;throw u;}throw ra;}finally{oc(e),qc(d)}};
var oda=function(a){var b=qc(a),c=oc();try{for(var d=a.get(cda.multi,vc,2),e=r(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{qc(b),oc(c)}};rd.prototype.toString=function(){for(var a=[],b=r(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(cc(c.value));return"R3Injector["+a.join(", ")+"]"};
var nlb=function(a,b){b=gc(b);var c=nd(b)?b:gc(b&&b.provide),d=lda(b);if(nd(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=pd(void 0,qd,!0),e.factory=function(){return kca(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};oi.Object.defineProperties(rd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
var Uv=function(){},kg=function(a){if(Array.isArray(a))return pda({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return pda({name:c},a.parent,a.providers,c)},olb=new gda;Uv.\u0275prov=hc({token:Uv,providedIn:"any",factory:function(){return t(llb)}});Uv.__NG_ELEMENT_ID__=-1;
var Vv=function(a,b){this.token=a;this.id=b;if(!a)throw Error("ma");this.displayName=cc(this.token)};oi.Object.defineProperties(Vv,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return plb.numberOfKeys}}});var qlb=function(){this._allKeys=new Map};qlb.prototype.get=function(a){if(a instanceof Vv)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Vv(a,Vv.numberOfKeys);this._allKeys.set(a,b);return b};
oi.Object.defineProperties(qlb.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});var plb=new qlb;
plb.get(gc(Uv));
var Wv=function(){};
var Xv=function(){},rlb=function(){};
var slb=function(){},tlb=function(){};
var sd=function(a){this.nativeElement=a};sd.__NG_ELEMENT_ID__=function(){return td(Lc(),x())};
new od("Renderer2Interceptor");var Yv=function(){},Zv=function(){};Zv.__NG_ELEMENT_ID__=function(){var a=x(),b=Ic(Lc().index,a);return(Bc(b)?b:a)[11]};
var sda=new Map,iea=0;
var Zd=function(){this._console=console};Zd.prototype.handleError=function(a){var b=this._findOriginalError(a),c=a&&a.ngErrorLogger||qda;c(this._console,"ERROR",a);b&&c(this._console,"ORIGINAL ERROR",b)};Zd.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};
var ulb=("undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(yd);
var xd;
var Wd={};
var Hd=function(a){this.changingThisBreaksApplicationSecurity=a};Hd.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var vlb=function(){Hd.apply(this,arguments)};U(vlb,Hd);vlb.prototype.getTypeName=function(){return"HTML"};var wlb=function(){Hd.apply(this,arguments)};U(wlb,Hd);wlb.prototype.getTypeName=function(){return"URL"};var xlb=function(){Hd.apply(this,arguments)};U(xlb,Hd);
xlb.prototype.getTypeName=function(){return"ResourceURL"};
var Uda=function(a){this.inertDocumentHelper=a};Uda.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(zd(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};
var Tda=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");if(null==this.inertDocument.body){a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);var b=this.inertDocument.createElement("body");a.appendChild(b)}};
Tda.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=zd(a),b;b=this.inertDocument.createElement("body");b.innerHTML=zd(a);this.defaultDoc.documentMode&&ylb(this,b);return b};var ylb=function(a,b){for(var c=b.attributes,d=c.length-1;0<d;d--){var e=c.item(d).name;"xmlns:ns1"!==e&&0!==e.indexOf("ns1:")||b.removeAttribute(e)}for(b=b.firstChild;b;)b.nodeType===Node.ELEMENT_NODE&&ylb(a,b),b=b.nextSibling};
var Nda=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Oda=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
var zlb=Ld("area,br,col,hr,img,wbr"),Alb=Ld("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Blb=Ld("rp,rt"),Clb=Md(Blb,Alb),Dlb=Md(Alb,Ld("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")),Elb=Md(Blb,Ld("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")),
Wda=Md(zlb,Dlb,Elb,Clb),Yda=Ld("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zda=Ld("srcset"),Flb=Ld("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
Glb=Ld("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"),
Xda=Md(Yda,Zda,Flb,Glb),$da=Ld("script,style,template"),Vda=function(){this.buf=[]};Vda.prototype.endElement=function(a){a=a.nodeName.toLowerCase();Wda.hasOwnProperty(a)&&!zlb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var aea=function(a,b){if(b&&(a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("pa`"+a.outerHTML);return b},Qda=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rda=/([^#-~ |!])/g,Nd;
var Hlb={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 Od;
var Ilb=Promise.resolve(null);
var og=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=og.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(Cc(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(Cda(a,c),kd(b,c))}this._attachedToViewContainer=!1}Eda(this._lView[1],this._lView)};g.onDestroy=function(a){rea(this._lView[1],this._lView,null,a)};
g.markForCheck=function(){zea(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-65};g.detectChanges=function(){var a=this._lView[1],b=this._lView,c=this.context,d=b[10];d.begin&&d.begin();try{Ud(a,b,a.template,c)}catch(e){throw Bea(b,e),e;}finally{d.end&&d.end()}};
oi.Object.defineProperties(og.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return ae(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 128===(this._lView[2]&128)}}});var $v=function(a){og.call(this,a);this._view=a};U($v,og);
$v.prototype.detectChanges=function(){for(var a=this._view[8],b=0;b<a.components.length;b++){var c=a.components[b],d=tda(c);if(null!==d){var e=d[1],f=e.template,h=d[10],k=4===(d[2]&4);try{k||!h.begin||h.begin(),k&&Td(e,d,c),Ud(e,d,f,c)}finally{k||!h.end||h.end()}}}};oi.Object.defineProperties($v.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});
var aw=function(){};aw.\u0275prov=hc({token:aw,providedIn:"root",factory:function(){return null}});
var Jlb=new function(a){this.full=a;this.major=a.split(".")[0];this.minor=a.split(".")[1];this.patch=a.split(".").slice(2).join(".")}("0.0.0-PLACEHOLDER");
var Klb={};
var bw=function(a){this.ngModule=a};U(bw,Wv);bw.prototype.resolveComponentFactory=function(a){return new cw(a[wc]||null,this.ngModule)};var Llb=function(a,b){this.injector=a;this.parentInjector=b};Llb.prototype.get=function(a,b,c){var d=this.injector.get(a,Klb,c);return d!==Klb||b===Klb?d:this.parentInjector.get(a,b,c)};
var cw=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(Mda).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};U(cw,tlb);
cw.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e;(d=d instanceof Tv?d:null==(e=d)?void 0:e.injector)&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);var f=d?new Llb(a,d):a;e=f.get(Yv,klb);var h=f.get(aw,null);a=e.createRenderer(null,this.componentDef);d=this.componentDef.selectors[0][0]||"div";if(c)a.listen?d=a.selectRootElement(c,3===this.componentDef.encapsulation):(d="string"===typeof c?a.querySelector(c):c,d.textContent="");else{var k=
e.createRenderer(null,this.componentDef),q=d.toLowerCase();d=Ada(k,d,"svg"===q?"svg":"math"===q?"math":null)}q=d;var u=this.componentDef.onPush?288:272;d={components:[],scheduler:ulb,clean:Ilb,playerHandler:null,flags:0};k=qea(0,null,null,1,0,null,null,null,null,null);f=Rd(null,k,d,u,null,null,e,a,h,f,null);Eca(f);try{var y=this.componentDef,D=f[1];f[22]=q;var I=Sd(D,22,2,"#host",null),N=I.mergedAttrs=y.hostAttrs;if(null!==N&&($d(I,N,!0),null!==q&&(Vc(a,q,N),null!==I.classes&&Ida(a,q,I.classes),null!==
I.styles))){var L=I.styles;a.listen?a.setAttribute(q,"style",L):q.style.cssText=L}var S=e.createRenderer(q,y),X=Rd(f,nea(y),null,y.onPush?32:16,f[22],I,e,S,null,null,null);if(D.firstCreatePass){var ka=ad(I,f);$c(ka,D,y.type);wea(D,I);var ha=f.length;I.flags|=1;I.directiveStart=ha;I.directiveEnd=ha+1;I.providerIndexes=ha}Vd(f,X);var ra=f[22]=X;if(q)if(c)Vc(a,q,["ng-version",Jlb.full]);else{var Da=this.componentDef.selectors[0];c=[];y=[];D=1;for(I=2;D<Da.length;){var Ja=Da[D];if("string"===typeof Ja)2===
I?""!==Ja&&c.push(Ja,Da[++D]):8===I&&y.push(Ja);else{if(0!==(I&1))break;I=Ja}D++}c&&Vc(a,q,c);y&&0<y.length&&Ida(a,q,y.join(" "))}var Ba=k.data[22];if(void 0!==b){var La=Ba.projection=[];for(Da=0;Da<this.ngContentSelectors.length;Da++){var hb=b[Da];La.push(null!=hb?Array.from(hb):null)}}var fb=Eea(ra,this.componentDef,f,d);Td(k,f,null)}finally{Hca()}return new dw(this.componentType,fb,td(Ba,f),f,Ba)};
oi.Object.defineProperties(cw.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){return Fea(this.componentDef.inputs)}},outputs:{configurable:!0,enumerable:!0,get:function(){return Fea(this.componentDef.outputs)}}});var dw=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.instance=b;this.hostView=this.changeDetectorRef=new $v(d);this.componentType=a};U(dw,slb);dw.prototype.destroy=function(){this.hostView.destroy()};dw.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
oi.Object.defineProperties(dw.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new gd(this._tNode,this._rootLView)}}});
var ew=function(a,b){this._parent=b;this._bootstrapComponents=[];this.injector=this;this.destroyCbs=[];this.componentFactoryResolver=new bw(this);var c=(a[jlb]||null).bootstrap;this._bootstrapComponents=c instanceof Function?c():c;this._r3Injector=nda(a,b,[{provide:Xv,useValue:this},{provide:Wv,useValue:this.componentFactoryResolver}],cc(a),new Set(["environment"]));oda(this._r3Injector);this.instance=this.get(a)};U(ew,Xv);
ew.prototype.get=function(a,b,c){b=void 0===b?Qv:b;return a===Uv||a===Xv||a===llb?this:this._r3Injector.get(a,b,void 0===c?0:c)};ew.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};ew.prototype.onDestroy=function(a){this.destroyCbs.push(a)};var fw=function(a){this.moduleType=a};U(fw,rlb);fw.prototype.create=function(a){return new ew(this.moduleType,a)};
var be=function(a,b,c){this.componentFactoryResolver=new bw(this);this.instance=null;this.injector=a=new rd([].concat(v(a),[{provide:Xv,useValue:this},{provide:Wv,useValue:this.componentFactoryResolver}]),b||hda(),c,new Set(["environment"]));oda(a)};U(be,Xv);be.prototype.destroy=function(){this.injector.destroy()};be.prototype.onDestroy=function(a){this.injector.onDestroy(a)};
var Mlb=new od("Application Initializer"),gw=function(a){var b=this;this.appInits=a;this.reject=this.resolve=Iea;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){b.resolve=c;b.reject=d})},Nlb=function(a){if(!a.initialized){var b=[];if(a.appInits)for(var c={},d=0;d<a.appInits.length;c={$jscomp$loop$prop$initResult$1638:c.$jscomp$loop$prop$initResult$1638},d++)if(c.$jscomp$loop$prop$initResult$1638=a.appInits[d](),ce(c.$jscomp$loop$prop$initResult$1638))b.push(c.$jscomp$loop$prop$initResult$1638);
else if(Hea(c.$jscomp$loop$prop$initResult$1638)){var e=new Promise(function(f){return function(h,k){f.$jscomp$loop$prop$initResult$1638.subscribe({complete:h,error:k})}}(c));b.push(e)}Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});0===b.length&&(a.done=!0,a.resolve());a.initialized=!0}};gw.\u0275fac=function(a){return new (a||gw)(t(Mlb,8))};gw.\u0275prov=hc({token:gw,factory:gw.\u0275fac,providedIn:"root"});
var Olb=new od("AppId",{providedIn:"root",factory:Kea}),Iha=new od("Platform Initializer"),hw=new od("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),Plb=new od("appBootstrapListener");new od("Application Packages Root URL");var iw=new od("AnimationModuleType");
var jw=function(){};jw.prototype.log=function(a){console.log(a)};jw.prototype.warn=function(a){console.warn(a)};jw.\u0275fac=function(a){return new (a||jw)};jw.\u0275prov=hc({token:jw,factory:jw.\u0275fac,providedIn:"platform"});
var Mea=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,
0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return 1===Math.floor(Math.abs(a))&&0===b?1:5}];
var Nea={};
var ti=new od("LocaleId",{providedIn:"root",factory:function(){return t(ti,12)||("undefined"!==typeof cu?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new od("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new od("Translations");new od("TranslationsFormat");
var kw=function(){};kw.prototype.getModuleId=function(){};kw.\u0275fac=function(a){return new (a||kw)};kw.\u0275prov=hc({token:kw,factory:kw.\u0275fac,providedIn:"root"});new od("compilerOptions");
var fe=null;
var $ea=0,afa=0,bfa=0;
/*


 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.
*/
var Qlb=!1,Xe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(a){a?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):Qlb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Qlb=a},get useDeprecatedSynchronousErrorHandling(){return Qlb}};
var lf="function"===typeof Symbol&&Symbol.observable||"@@observable";
var lw={closed:!0,next:function(){},error:function(a){if(Xe.useDeprecatedSynchronousErrorHandling)throw a;Qe(a)},complete:function(){}};
var Ue=function(){function a(b){this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"";this.name="UnsubscriptionError";this.errors=b;return this}a.prototype=Object.create(Error.prototype);return a}();
var cf=Array.isArray||function(a){return a&&"number"===typeof a.length};
var Te=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
Te.prototype.unsubscribe=function(){if(!this.closed){var a=this._parentOrParents,b=this._ctorUnsubscribe,c=this._unsubscribe,d=this._subscriptions;this.closed=!0;this._subscriptions=this._parentOrParents=null;if(a instanceof Te)a.remove(this);else if(null!==a)for(var e=0;e<a.length;++e)a[e].remove(this);if(Re(c)){b&&(this._unsubscribe=void 0);try{c.call(this)}catch(q){var f=q instanceof Ue?Bfa(q.errors):[q]}}if(cf(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if(Se(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof Ue?f=f.concat(Bfa(q.errors)):f.push(q)}}}if(f)throw new Ue(f);}};
Te.prototype.add=function(a){var b=a;if(!a)return Te.EMPTY;switch(typeof a){case "function":b=new Te(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof Te||(a=b,b=new Te,b._subscriptions=[a]);break;default:throw Error("sa`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof Te){if(c===this)return b;b._parentOrParents=[c,this]}else if(-1===c.indexOf(this))c.push(this);else return b;
a=this._subscriptions;null===a?this._subscriptions=[b]:a.push(b);return b};Te.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var Rlb=new Te;Rlb.closed=!0;Te.EMPTY=Rlb;
var Ve=function(a,b,c){Te.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=lw;break;case 1:if(!a){this.destination=lw;break}if("object"===typeof a){a instanceof Ve?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new mw(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new mw(this,a,b,c)}};U(Ve,Te);Ve.EMPTY=Te.EMPTY;
Ve.create=function(a,b,c){a=new Ve(a,b,c);a.syncErrorThrowable=!1;return a};g=Ve.prototype;g.next=function(a){this.isStopped||this._next(a)};g.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};g.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};g.unsubscribe=function(){this.closed||(this.isStopped=!0,Te.prototype.unsubscribe.call(this))};g._next=function(a){this.destination.next(a)};g._error=function(a){this.destination.error(a);this.unsubscribe()};
g._complete=function(){this.destination.complete();this.unsubscribe()};g._unsubscribeAndRecycle=function(){var a=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parentOrParents=a;return this};
var mw=function(a,b,c,d){Ve.call(this);this._parentSubscriber=a;var e=this;if(Re(b))var f=b;else b&&(f=b.next,c=b.error,d=b.complete,b!==lw&&(e=Object.create(b),Afa(b)&&b.add(this.unsubscribe.bind(this)),e.unsubscribe=this.unsubscribe.bind(this)));this._context=e;this._next=f;this._error=c;this._complete=d};U(mw,Ve);mw.EMPTY=Ve.EMPTY;mw.create=Ve.create;g=mw.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;Xe.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};
g.error=function(a){if(!this.isStopped){var b=this._parentSubscriber,c=Xe.useDeprecatedSynchronousErrorHandling;if(this._error)c&&b.syncErrorThrowable?this.__tryOrSetError(b,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(b.syncErrorThrowable)c?(b.syncErrorValue=a,b.syncErrorThrown=!0):Qe(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;Qe(a)}}};
g.complete=function(){var a=this;if(!this.isStopped){var b=this._parentSubscriber;if(this._complete){var c=function(){return a._complete.call(a._context)};Xe.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable?this.__tryOrSetError(b,c):this.__tryOrUnsub(c)}this.unsubscribe()}};g.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){this.unsubscribe();if(Xe.useDeprecatedSynchronousErrorHandling)throw c;Qe(c)}};
g.__tryOrSetError=function(a,b,c){if(!Xe.useDeprecatedSynchronousErrorHandling)throw Error("ta");try{b.call(this._context,c)}catch(d){return Xe.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):Qe(d),!0}return!1};g._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};
var nw=function(a){Ve.call(this);this.destination=a};U(nw,Ve);nw.EMPTY=Ve.EMPTY;nw.create=Ve.create;
var Ye=function(a){a&&(this._subscribe=a)};g=Ye.prototype;g.lift=function(a){var b=new Ye;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof Ve||Efa(a)&&Afa(a))break a;if(Efa(a)){a=new nw(a);break a}}a=a||b||c?new Ve(a,b,c):new Ve(lw)}d?a.add(d.call(a,this.source)):a.add(this.source||Xe.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(Xe.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){Xe.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),Cfa(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=Ffa(b);return new b(function(d,e){var f=c.subscribe(function(h){try{a(h)}catch(k){e(k),f&&f.unsubscribe()}},e,d)})};g._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)};Ye.prototype[lf]=function(){return this};
Ye.prototype.pipe=function(){var a=tc.apply(0,arguments);return 0===a.length?this:Dfa(a)(this)};Ye.create=function(a){return new Ye(a)};
var ow=function(a,b){Te.call(this);this.subject=a;this.subscriber=b;this.closed=!1};U(ow,Te);ow.EMPTY=Te.EMPTY;ow.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,b=a.observers;this.subject=null;!b||0===b.length||a.isStopped||a.closed||(a=b.indexOf(this.subscriber),-1!==a&&b.splice(a,1))}};
var pw=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();
var $f=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};U($f,Ye);g=$f.prototype;g.lift=function(a){var b=new qw(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new pw;if(!this.isStopped){var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].next(a)}};
g.error=function(a){if(this.closed)throw new pw;this.hasError=!0;this.thrownError=a;this.isStopped=!0;var b=this.observers,c=b.length;b=b.slice();for(var d=0;d<c;d++)b[d].error(a);this.observers.length=0};g.complete=function(){if(this.closed)throw new pw;this.isStopped=!0;var a=this.observers,b=a.length;a=a.slice();for(var c=0;c<b;c++)a[c].complete();this.observers.length=0};g.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};
g._trySubscribe=function(a){if(this.closed)throw new pw;return Ye.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new pw;if(this.hasError)return a.error(this.thrownError),Te.EMPTY;if(this.isStopped)return a.complete(),Te.EMPTY;this.observers.push(a);return new ow(this,a)};var Slb=function(a){var b=new Ye;b.source=a;return b};
oi.Object.defineProperties($f.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});$f.create=function(a,b){return new qw(a,b)};var qw=function(a,b){$f.call(this);this.destination=a;this.source=b};U(qw,$f);qw.create=$f.create;qw.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};qw.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
qw.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};qw.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):Te.EMPTY};
var df=function(){$f.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};U(df,$f);df.create=$f.create;df.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),Te.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),Te.EMPTY):$f.prototype._subscribe.call(this,a)};df.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};df.prototype.error=function(a){this.hasCompleted||$f.prototype.error.call(this,a)};
df.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&$f.prototype.next.call(this,this.value);$f.prototype.complete.call(this)};
var rw=function(a){$f.call(this);this._value=a};U(rw,$f);rw.create=$f.create;rw.prototype._subscribe=function(a){var b=$f.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};rw.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pw;return this._value};rw.prototype.next=function(a){$f.prototype.next.call(this,this._value=a)};oi.Object.defineProperties(rw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});
var sf=new Ye(function(a){return a.complete()});
var Ifa=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};
var Tlb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};Tlb.prototype.observe=function(a){switch(this.kind){case "N":var b;null==(b=a.next)||b.call(a,this.value);break;case "E":var c;null==(c=a.error)||c.call(a,this.error);break;case "C":var d;null==(d=a.complete)||d.call(a)}};
Tlb.prototype.accept=function(a,b,c){if(a&&"function"===typeof a.next)a=this.observe(a);else{switch(this.kind){case "N":null==a||a(this.value);break;case "E":null==b||b(this.error);break;case "C":null==c||c()}a=void 0}return a};
var sw={now:function(){return(sw.delegate||Date).now()},delegate:void 0};
var Zf=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?sw:c;$f.call(this);this.timestampProvider=c;this._events=[];this._infiniteTimeWindow=!1;this._bufferSize=1>a?1:a;this._windowTime=1>b?1:b;Infinity===b?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow};U(Zf,$f);Zf.create=$f.create;g=Zf.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();$f.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();$f.prototype.next.call(this,a)};
g._subscribe=function(a){var b=this._infiniteTimeWindow,c=b?this._events:this._trimBufferThenGetEvents(),d=c.length;if(this.closed)throw new pw;if(this.isStopped||this.hasError)var e=Te.EMPTY;else this.observers.push(a),e=new ow(this,a);if(b)for(var f=0;f<d&&!a.closed;f++)a.next(c[f]);else for(f=0;f<d&&!a.closed;f++)a.next(c[f].value);this.hasError?a.error(this.thrownError):this.isStopped&&a.complete();return e};g._getNow=function(){var a=this.timestampProvider;return a?a.now():sw.now()};
g._trimBufferThenGetEvents=function(){for(var a=this._getNow(),b=this._bufferSize,c=this._windowTime,d=this._events,e=d.length,f=0;f<e&&!(a-d[f].time<c);)f++;e>b&&(f=Math.max(f,e-b));0<f&&d.splice(0,f);return d};
var tw=function(a,b){b=void 0===b?Ulb:b;this.SchedulerAction=a;this.now=b};tw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var Ulb=sw.now;
var Uf=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Lfa=function(){};Lfa.prototype.call=function(a,b){b._refCount++;a=new uw(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var uw=function(a,b){Ve.call(this,a);this.connectable=b;this.connection=null};U(uw,Ve);uw.EMPTY=Ve.EMPTY;uw.create=Ve.create;
uw.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};
var vw=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};U(vw,Ye);vw.create=Ye.create;vw.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};vw.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
vw.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new Te,a.add(this.source.subscribe(new ww(this.getSubject(),this))),a.closed&&(this._connection=null,a=Te.EMPTY));return a};vw.prototype.refCount=function(){return bf()(this)};var sha,xw=vw.prototype;
sha={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:xw._subscribe},_isComplete:{value:xw._isComplete,writable:!0},getSubject:{value:xw.getSubject},connect:{value:xw.connect},refCount:{value:xw.refCount}};var ww=function(a,b){Ve.call(this);this.destination=a;this.connectable=b};U(ww,Ve);ww.EMPTY=Ve.EMPTY;ww.create=Ve.create;
ww.prototype._error=function(a){this._unsubscribe();Ve.prototype._error.call(this,a)};ww.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();Ve.prototype._complete.call(this)};ww.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};
var Mfa=function(a){this.project=a;this.thisArg=void 0};Mfa.prototype.call=function(a,b){return b.subscribe(new yw(a,this.project,this.thisArg))};var yw=function(a,b,c){Ve.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};U(yw,Ve);yw.EMPTY=Ve.EMPTY;yw.create=Ve.create;yw.prototype._next=function(a){try{var b=this.project.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var kf="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
var bga=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};
var Vlb=function(a){return function(b){var c=a[kf]();do{var d=void 0;try{d=c.next()}catch(e){b.error(e);return}if(d.done){b.complete();break}b.next(d.value);if(b.closed)break}while(1);"function"===typeof c.return&&b.add(function(){c.return&&c.return()});return b}};
var Wlb=function(a){return function(b){var c=a[lf]();if("function"!==typeof c.subscribe)throw new TypeError("xa");return c.subscribe(b)}};
var Xlb=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,Qe);return b}};
var hf=function(a){if(a&&"function"===typeof a[lf])return Wlb(a);if(bga(a))return Ifa(a);if(Ufa(a))return Xlb(a);if(a&&"function"===typeof a[kf])return Vlb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return Wfa(a);throw new TypeError("ya`"+(Se(a)?"an invalid object":"'"+a+"'"));};
var zw=function(a){Ve.call(this);this.parent=a};U(zw,Ve);zw.EMPTY=Ve.EMPTY;zw.create=Ve.create;zw.prototype._next=function(a){this.parent.notifyNext(a)};zw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};zw.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var Aw=function(a,b,c){Ve.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};U(Aw,Ve);Aw.EMPTY=Ve.EMPTY;Aw.create=Ve.create;
Aw.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};Aw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};Aw.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var Bw=function(){Ve.apply(this,arguments)};U(Bw,Ve);Bw.EMPTY=Ve.EMPTY;Bw.create=Ve.create;Bw.prototype.notifyNext=function(a){this.destination.next(a)};Bw.prototype.notifyError=function(a){this.destination.error(a)};
Bw.prototype.notifyComplete=function(){this.destination.complete()};var Cw=function(){Ve.apply(this,arguments)};U(Cw,Ve);Cw.EMPTY=Ve.EMPTY;Cw.create=Ve.create;Cw.prototype.notifyNext=function(a,b){this.destination.next(b)};Cw.prototype.notifyError=function(a){this.destination.error(a)};Cw.prototype.notifyComplete=function(){this.destination.complete()};
var Ylb={},Zlb=function(a,b){this.resultSelector=a;this.keys=b};Zlb.prototype.call=function(a,b){return b.subscribe(new Dw(a,this.resultSelector,this.keys))};var Dw=function(a,b,c){Cw.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};U(Dw,Cw);Dw.EMPTY=Cw.EMPTY;Dw.create=Cw.create;g=Dw.prototype;g._next=function(a){this.values.push(Ylb);this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{this.toRespond=this.active=b;for(var c=0;c<b;c++)this.add(jf(a[c],new Aw(this,null,c)))}};g.notifyComplete=function(){0===--this.active&&this.destination.complete()};
g.notifyNext=function(a,b,c){var d=this.values,e=d[c];e=this.toRespond?e===Ylb?--this.toRespond:this.toRespond:0;d[c]=b;0===e&&(this.resultSelector?this._tryResultSelector(d):this.destination.next(this.keys?this.keys.reduce(function(f,h,k){return f[h]=d[k],f},{}):d.slice()))};g._tryResultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var dga=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};dga.prototype.call=function(a,b){return b.subscribe(new Ew(a,this.project,this.concurrent))};var Ew=function(a,b,c){c=void 0===c?Infinity:c;Bw.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};U(Ew,Bw);Ew.EMPTY=Bw.EMPTY;Ew.create=Bw.create;
Ew.prototype._next=function(a){if(this.active<this.concurrent){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}this.active++;a=new zw(this);this.destination.add(a);jf(c,a)}else this.buffer.push(a)};Ew.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};Ew.prototype.notifyNext=function(a){this.destination.next(a)};
Ew.prototype.notifyComplete=function(){var a=this.buffer;this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};
var fga={now:function(){return(fga.delegate||performance).now()},delegate:void 0};
var gga=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;$lb&&(b=$lb.requestAnimationFrame,c=$lb.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new Te(function(){var e;return null==(e=c)?void 0:e(d)})},$lb=void 0;
var amb=hga();
var Fw=function(){Te.call(this)};U(Fw,Te);Fw.EMPTY=Te.EMPTY;Fw.prototype.schedule=function(){return this};
var Gw=function(a,b){Te.call(this);this.scheduler=a;this.work=b;this.pending=!1};U(Gw,Fw);Gw.EMPTY=Fw.EMPTY;g=Gw.prototype;g.schedule=function(a,b){b=void 0===b?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;null!=a&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};g.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return setInterval(a.flush.bind(a,this),c)};
g.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&this.delay===c&&!1===this.pending)return b;clearInterval(b)};g.execute=function(a,b){if(this.closed)return Error("Ca");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};g._execute=function(a){var b=!1,c=void 0;try{this.work(a)}catch(d){b=!0,c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
g._unsubscribe=function(){var a=this.id,b=this.scheduler,c=b.actions,d=c.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==d&&c.splice(d,1);null!=a&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null};
var Hw=function(a,b){b=void 0===b?Ulb:b;tw.call(this,a,function(){return Hw.delegate&&Hw.delegate!==c?Hw.delegate.now():b()});var c=this;this.actions=[];this.active=!1;this.scheduled=void 0};U(Hw,tw);Hw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return Hw.delegate&&Hw.delegate!==this?Hw.delegate.schedule(a,b,c):tw.prototype.schedule.call(this,a,b,c)};
Hw.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 vf=new Hw(Gw);
var bmb=new Ye(rf);
var qga=function(a,b){this.predicate=a;this.thisArg=b};qga.prototype.call=function(a,b){return b.subscribe(new Iw(a,this.predicate,this.thisArg))};var Iw=function(a,b,c){Ve.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};U(Iw,Ve);Iw.EMPTY=Ve.EMPTY;Iw.create=Ve.create;Iw.prototype._next=function(a){try{var b=this.predicate.call(this.thisArg,a,this.count++)}catch(c){this.destination.error(c);return}b&&this.destination.next(a)};
var cmb=function(){};cmb.prototype.call=function(a,b){return b.subscribe(new Jw(a))};var Jw=function(a){Cw.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};U(Jw,Cw);Jw.EMPTY=Cw.EMPTY;Jw.create=Cw.create;g=Jw.prototype;g._next=function(a){this.observables.push(a)};
g._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{for(var c=0;c<b&&!this.hasFirst;c++){var d=jf(a[c],new Aw(this,null,c));this.subscriptions&&this.subscriptions.push(d);this.add(d)}this.observables=null}};g.notifyNext=function(a,b,c){if(!this.hasFirst){this.hasFirst=!0;for(var d=0;d<this.subscriptions.length;d++)if(d!==c){var e=this.subscriptions[d];e.unsubscribe();this.remove(e)}this.subscriptions=null}this.destination.next(b)};
g.notifyComplete=function(a){this.hasFirst=!0;Cw.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;Cw.prototype.notifyError.call(this,a)};
var dmb=function(a){this.resultSelector=a};dmb.prototype.call=function(a,b){return b.subscribe(new Kw(a,this.resultSelector))};var Kw=function(a,b,c){void 0===c&&Object.create(null);Ve.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};U(Kw,Ve);Kw.EMPTY=Ve.EMPTY;Kw.create=Ve.create;Kw.prototype._next=function(a){var b=this.iterators;cf(a)?b.push(new Lw(a)):"function"===typeof a[kf]?b.push(new Mw(a[kf]())):b.push(new Nw(this.destination,this,a))};
Kw.prototype._complete=function(){var a=this.iterators,b=a.length;this.unsubscribe();if(0===b)this.destination.complete();else{this.active=b;for(var c=0;c<b;c++){var d=a[c];d.stillUnsubscribed?this.destination.add(d.subscribe()):this.active--}}};Kw.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var Mw=function(a){this.iterator=a;this.nextResult=a.next()};Mw.prototype.hasValue=function(){return!0};
Mw.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};Mw.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var Lw=function(a){this.array=a;this.length=this.index=0;this.length=a.length};Lw.prototype[kf]=function(){return this};Lw.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};Lw.prototype.hasValue=function(){return this.array.length>this.index};
Lw.prototype.hasCompleted=function(){return this.array.length===this.index};var Nw=function(a,b,c){Bw.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};U(Nw,Bw);Nw.EMPTY=Bw.EMPTY;Nw.create=Bw.create;Nw.prototype[kf]=function(){return this};g=Nw.prototype;g.next=function(){var a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}};g.hasValue=function(){return 0<this.buffer.length};
g.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};g.notifyComplete=function(){if(0<this.buffer.length){this.isComplete=!0;var a=this.parent;a.active--;0===a.active&&a.destination.complete()}else this.destination.complete()};
g.notifyNext=function(a){this.buffer.push(a);a:{a=this.parent;for(var b=a.iterators,c=b.length,d=a.destination,e=0;e<c;e++){var f=b[e];if("function"===typeof f.hasValue&&!f.hasValue())break a}e=!1;f=[];for(var h=0;h<c;h++){var k=b[h],q=k.next();k.hasCompleted()&&(e=!0);if(q.done){d.complete();break a}f.push(q.value)}a.resultSelector?a._tryresultSelector(f):d.next(f);e&&d.complete()}};g.subscribe=function(){return jf(this.observable,new zw(this))};
var Ow=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};U(Ow,Ye);Ow.create=Ye.create;Ow.prototype._subscribe=function(a){var b=new Te,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new Pw(c));b.add(d.subscribe(a));return b};var Pw=function(a){Te.call(this);this.parent=a;a.count++};U(Pw,Te);Pw.EMPTY=Te.EMPTY;
Pw.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(Te.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};
var yga=function(){function a(b){this.message="Timeout has occurred";this.name="TimeoutError";this.info=void 0===b?null:b;return this}a.prototype=Object.create(Error.prototype);return a}(),xga=function(a,b,c,d,e){this.first=a;this.each=b;this._with=c;this.scheduler=d;this.meta=e};xga.prototype.call=function(a,b){return b.subscribe(new Qw(a,this.first,this.each,this._with,this.scheduler,this.meta))};
var Qw=function(a,b,c,d,e,f){Bw.call(this,a);this.each=c;this._with=d;this.scheduler=e;this.meta=f;this.seen=0;a=null!=b?"number"===typeof b?b:+b-e.now():c;emb(this,a)};U(Qw,Bw);Qw.EMPTY=Bw.EMPTY;Qw.create=Bw.create;var emb=function(a,b){a._timerSubscription=a.scheduler.schedule(function(){var c=a.meta,d=a.seen,e=void 0===a.lastValue?null:a.lastValue;try{var f=a._with({meta:c,seen:d,lastValue:e})}catch(h){a.destination.error(h);return}a._unsubscribeAndRecycle();a.add(jf(f,new zw(a)))},b);a.add(a._timerSubscription)};
Qw.prototype._next=function(a){var b=this.each,c;null==(c=this._timerSubscription)||c.unsubscribe();this.seen++;this.lastValue=a;null!=b&&emb(this,b);Bw.prototype._next.call(this,a)};
var fmb=function(a,b){a=void 0===a?Rw:a;b=void 0===b?Infinity:b;Hw.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};U(fmb,Hw);fmb.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,c,d;(d=a[0])&&d.delay<=b&&!(a.shift(),this.frame=d.delay,c=d.execute(d.state,d.delay)););if(c){for(;d=a.shift();)d.unsubscribe();throw c;}};
var Rw=function(a,b,c){c=void 0===c?a.index+=1:c;Gw.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};U(Rw,Gw);Rw.EMPTY=Gw.EMPTY;Rw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return Gw.prototype.schedule.call(this,a,b);this.active=!1;var c=new Rw(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return Te.EMPTY};
Rw.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(gmb);return!0};Rw.prototype.recycleAsyncId=function(){};Rw.prototype._execute=function(a,b){if(!0===this.active)return Gw.prototype._execute.call(this,a,b)};var gmb=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};
var Sw=function(a,b){Gw.call(this,a,b);this.scheduler=a;this.work=b};U(Sw,Gw);Sw.EMPTY=Gw.EMPTY;Sw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Gw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=requestAnimationFrame(function(){return a.flush(void 0)}))};
Sw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Gw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(cancelAnimationFrame(b),a.scheduled=void 0)};
var hmb=function(){Hw.apply(this,arguments)};U(hmb,Hw);hmb.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 imb=new hmb(Sw);
var jmb=1,kmb,zga={},lmb=function(a){var b=jmb++;zga[b]=!0;kmb||(kmb=Promise.resolve());kmb.then(function(){return Aga(b)&&a()});return b};
var Tw=function(a,b){Gw.call(this,a,b);this.scheduler=a;this.work=b};U(Tw,Gw);Tw.EMPTY=Gw.EMPTY;Tw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return Gw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=lmb(a.flush.bind(a,void 0)))};
Tw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return Gw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(Aga(b),a.scheduled=void 0)};
var mmb=function(){Hw.apply(this,arguments)};U(mmb,Hw);mmb.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 nmb=new mmb(Tw);
var Uw=function(a,b){Gw.call(this,a,b);this.scheduler=a;this.work=b};U(Uw,Gw);Uw.EMPTY=Gw.EMPTY;Uw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return Gw.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Uw.prototype.execute=function(a,b){return 0<b||this.closed?Gw.prototype.execute.call(this,a,b):this._execute(a,b)};
Uw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?Gw.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};
var omb=function(){Hw.apply(this,arguments)};U(omb,Hw);
var pmb=new omb(Uw);
var qmb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();
var rmb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();
var smb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();
var T={};T.Observable=Ye;T.ConnectableObservable=vw;T.GroupedObservable=Ow;T.observable=lf;T.animationFrames=function(a){return a?hga(a):amb};T.Subject=$f;T.BehaviorSubject=rw;T.ReplaySubject=Zf;T.AsyncSubject=df;T.asap=nmb;T.asapScheduler=nmb;T.async=vf;T.asyncScheduler=vf;T.queue=pmb;T.queueScheduler=pmb;T.animationFrame=imb;T.animationFrameScheduler=imb;T.VirtualTimeScheduler=fmb;T.VirtualAction=Rw;T.Scheduler=tw;T.Subscription=Te;T.Subscriber=Ve;T.Notification=Tlb;
T.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};T.pipe=function(){return Dfa(tc.apply(0,arguments))};T.noop=rf;T.identity=We;T.isObservable=function(a){return!!a&&(a instanceof Ye||"function"===typeof a.lift&&"function"===typeof a.subscribe)};T.lastValueFrom=function(a){return new Promise(function(b,c){var d=!1,e;a.subscribe({next:function(f){e=f;d=!0},error:c,complete:function(){d?b(e):c(new Uf)}})})};
T.firstValueFrom=function(a){return new Promise(function(b,c){var d=new Te;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Uf)}}))})};T.ArgumentOutOfRangeError=qmb;T.EmptyError=Uf;T.NotFoundError=rmb;T.ObjectUnsubscribedError=pw;T.SequenceError=smb;T.TimeoutError=yga;T.UnsubscriptionError=Ue;T.bindCallback=Nfa;T.bindNodeCallback=Qfa;
T.combineLatest=function(){var a=tc.apply(0,arguments),b=void 0,c=void 0,d=void 0;$e(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];cf(e)&&(a=e);Se(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return af(Ze(a,c),new Zlb(b,d))};T.concat=pf;T.defer=ega;T.empty=function(a){return a?Gfa(a):sf};
T.forkJoin=function(){var a=tc.apply(0,arguments);if(1===a.length){var b=a[0];if(cf(b))return qf(b,null);if(Se(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),qf(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&cf(a[0])?a[0]:a;return qf(a,null).pipe(R(function(d){return c.apply(null,v(d))}))}return qf(a,null)};T.from=mf;T.fromEvent=iga;T.fromEventPattern=kga;
T.generate=function(a,b,c,d,e){if(1==arguments.length){var f=a.initialState;b=a.condition;c=a.iterate;var h=a.resultSelector||We;e=a.scheduler}else void 0===d||$e(d)?(f=a,h=We,e=d):(f=a,h=d);return new Ye(function(k){var q=f;if(e)return e.schedule(lga,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var u=void 0;try{u=b(q)}catch(y){k.error(y);break}if(!u){k.complete();break}}u=void 0;try{u=h(q)}catch(y){k.error(y);break}k.next(u);if(k.closed)break;try{q=c(q)}catch(y){k.error(y);
break}}while(1)})};T.iif=function(a,b){var c=(0,T.of)(!1);b=void 0===b?sf:b;c=void 0===c?sf:c;return ega(function(){return a()?b:c})};T.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?vf:b;if(!mga(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=vf);return new Ye(function(c){c.add(b.schedule(nga,a,{subscriber:c,counter:0,period:a}));return c})};
T.merge=function(){var a=tc.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];$e(d)?(c=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof d&&(b=a.pop());return!c&&1===a.length&&a[0]instanceof Ye?a[0]:of(b)(Ze(a,c))};T.never=function(){return bmb};T.of=Jfa;T.onErrorResumeNext=oga;
T.pairs=function(a,b){return b?new Ye(function(c){var d=Object.keys(a),e=new Te;e.add(b.schedule(pga,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new Ye(function(c){for(var d=Object.keys(a),e=0;e<d.length&&!c.closed;e++){var f=d[e];a.hasOwnProperty(f)&&c.next([f,a[f]])}c.complete()})};T.partition=function(a,b,c){return[uf(b,c)(new Ye(hf(a))),uf(rga(b,c))(new Ye(hf(a)))]};
T.race=function(){var a=tc.apply(0,arguments);if(1===a.length)if(cf(a[0]))a=a[0];else return mf(a[0]);return af(Ze(a),new cmb)};T.range=function(a,b,c){a=void 0===a?0:a;return new Ye(function(d){void 0===b&&(b=a,a=0);var e=0,f=a;if(c)return c.schedule(sga,0,{index:e,count:b,start:a,subscriber:d});do{if(e++>=b){d.complete();break}d.next(f++);if(d.closed)break}while(1)})};T.throwError=function(a,b){return b?new Ye(function(c){return b.schedule(Kfa,0,{error:a,subscriber:c})}):new Ye(function(c){return c.error(a)})};
T.timer=vga;T.using=function(a,b){return new Ye(function(c){try{var d=a()}catch(h){c.error(h);return}try{var e=b(d)}catch(h){c.error(h);return}var f=(e?mf(e):sf).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};T.zip=function(){var a=tc.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return af(Ze(a),new dmb(b))};T.scheduled=cga;T.EMPTY=sf;T.NEVER=bmb;T.config=Xe;
var Vw=function(a){a=void 0===a?!1:a;T.Subject.call(this);this.__isAsync=a};U(Vw,T.Subject);Vw.create=T.Subject.create;Vw.prototype.emit=function(a){T.Subject.prototype.next.call(this,a)};
Vw.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&"object"===typeof a){var e;d=null==(e=a.next)?void 0:e.bind(a);var f;b=null==(f=a.error)?void 0:f.bind(a);var h;c=null==(h=a.complete)?void 0:h.bind(a)}this.__isAsync&&(b=Bga(b),d&&(d=Bga(d)),c&&(c=Bga(c)));d=T.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof T.Subscription&&a.add(d);return d};
var Hf=function(a){this._emitDistinctChangesOnly=a=void 0===a?!1:a;this.dirty=!0;this._results=[];this._changesDetected=!1;this._changes=null;this.length=0;this.last=this.first=void 0;var b=ge(),c=Hf.prototype;c[b]||(c[b]=Cga)};g=Hf.prototype;g.get=function(a){return this._results[a]};g.map=function(a){return this._results.map(a)};g.filter=function(a){return this._results.filter(a)};g.find=function(a){return this._results.find(a)};g.reduce=function(a,b){return this._results.reduce(a,b)};
g.forEach=function(a){this._results.forEach(a)};g.some=function(a){return this._results.some(a)};g.toArray=function(){return this._results.slice()};g.toString=function(){return this._results.toString()};
g.reset=function(a,b){this.dirty=!1;a=Vca(a);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 Cf=function(a){!a._changes||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.emit(a)};Hf.prototype.setDirty=function(){this.dirty=!0};
Hf.prototype.destroy=function(){this.changes.complete();this.changes.unsubscribe()};oi.Object.defineProperties(Hf.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new Vw)}}});Symbol.iterator;
var Af=function(){};Af.__NG_ELEMENT_ID__=Dga;var yf=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};U(yf,Af);yf.__NG_ELEMENT_ID__=Af.__NG_ELEMENT_ID__;
yf.prototype.createEmbeddedView=function(a,b){var c=this._declarationTContainer.tViews;b=Rd(this._declarationLView,c,a,16,null,c.declTNode,null,null,null,null,b||null);b[17]=this._declarationLView[this._declarationTContainer.index];var d=this._declarationLView[19];null!==d&&(b[19]=d.createEmbeddedView(c));Td(c,b,a);return new og(b)};
var Bf=function(){};Bf.__NG_ELEMENT_ID__=Fga;var zf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};U(zf,Bf);zf.__NG_ELEMENT_ID__=Bf.__NG_ELEMENT_ID__;g=zf.prototype;g.clear=function(){for(;0<this.length;)this.remove(this.length-1)};g.get=function(a){var b=this._lContainer[8];return null!==b&&b[a]||null};g.createEmbeddedView=function(a,b,c){if("number"===typeof c)var d=c;else if(null!=c){d=c.index;var e=c.injector}a=a.createEmbeddedView(b||{},e);this.insert(a,d);return a};
g.createComponent=function(a,b,c){var d=a&&"function"!==typeof a;if(!d){var e=b||{};b=e.index;c=e.injector;var f=e.projectableNodes;e=e.environmentInjector||e.ngModuleRef}a=d?a:new cw(a[wc]||null);c=c||this.parentInjector;e||null!=a.ngModule||(d=(d?c:this.parentInjector).get(Tv,null))&&(e=d);f=a.create(c,f,void 0,e);this.insert(f.hostView,b);return f};
g.insert=function(a,b){var c=a._lView,d=c[1];if(Cc(c[3])){var e=this.indexOf(a);-1!==e?this.detach(e):(e=c[3],e=new zf(e,e[6],e[3]),e.detach(e.indexOf(a)))}b=this._adjustIndex(b);e=this._lContainer;var f=10+b,h=e.length;0<b&&(e[f-1][4]=c);b<h-10?(c[4]=e[f],f=10+b,f>=e.length?e.push(c):e.splice(f,0,c)):(e.push(c),c[4]=null);c[3]=e;f=c[17];null!==f&&e!==f&&(h=f[9],c[16]!==c[3][3][16]&&(f[2]=!0),null===h?f[9]=[c]:h.push(c));f=c[19];null!==f&&tmb(f,d);c[2]|=64;f=Gda(b,e);h=c[11];var k=zda(h,e[7]);if(null!==
k){var q=e[6];c[0]=k;c[6]=q;Dd(h,1,d.firstChild,c,k,f,!1)}if(a._appRef)throw new mc(902,"");a._attachedToViewContainer=!0;c=Gga(e);b>=c.length?c.push(a):c.splice(b,0,a);return a};g.move=function(a,b){return this.insert(a,b)};g.indexOf=function(a){var b=this._lContainer[8];return null!==b?b.indexOf(a):-1};g.remove=function(a){a=this._adjustIndex(a,-1);var b=Cda(this._lContainer,a);b&&(kd(Gga(this._lContainer),a),Eda(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=Cda(this._lContainer,a);return b&&null!=kd(Gga(this._lContainer),a)?new og(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
oi.Object.defineProperties(zf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return td(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=Oca(this._hostTNode,this._hostLView);if(-1!==a){var b=Xc(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 Jf=function(a){this.queryList=a;this.matches=null};Jf.prototype.clone=function(){return new Jf(this.queryList)};Jf.prototype.setDirty=function(){this.queryList.setDirty()};var If=function(a){this.queries=a=void 0===a?[]:a};If.prototype.createEmbeddedView=function(a){var b=a.queries;if(null!==b){a=null!==a.contentQueries?a.contentQueries[0]:b.length;for(var c=[],d=0;d<a;d++)c.push(this.queries[b.queries[d].indexInDeclarationView].clone());return new If(c)}return null};
If.prototype.detachView=function(a){tmb(this,a)};var tmb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},Kga=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},Kf=function(a){this.queries=a=void 0===a?[]:a};g=Kf.prototype;g.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};g.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
g.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,null!==b?b.length:0);d&&(d.indexInDeclarationView=c,null!==b?b.push(d):b=[d])}return null!==b?new Kf(b):null};g.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};g.track=function(a){this.queries.push(a)};oi.Object.defineProperties(Kf.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var Lf=function(a,b){this.metadata=a;this.matches=null;this.indexInDeclarationView=-1;this.crossesNgTemplate=!1;this._appliesToNextNode=!0;this._declarationNodeIndex=void 0===b?-1:b};
Lf.prototype.elementStart=function(a,b){if(umb(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(null!==f)for(var h=0;h<f.length;h+=2)if(f[h]===e){f=f[h+1];break a}f=null}Ww(this,a,b,f);Ww(this,a,b,dd(b,a,e,!1,!1))}else c===Af?b.type&4&&Ww(this,a,b,-1):Ww(this,a,b,dd(b,a,c,!1,!1))}};Lf.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
Lf.prototype.template=function(a,b){this.elementStart(a,b)};Lf.prototype.embeddedTView=function(a,b){return umb(this,a)?(this.crossesNgTemplate=!0,Xw(this,-a.index,b),new Lf(this.metadata)):null};
var umb=function(a,b){if(a._appliesToNextNode&&1!==(a.metadata.flags&1)){a=a._declarationNodeIndex;for(b=b.parent;null!==b&&b.type&8&&b.index!==a;)b=b.parent;return a===(null!==b?b.index:-1)}return a._appliesToNextNode},Ww=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===sd||e===Bf||e===Af&&c.type&4?Xw(a,c.index,-2):(b=dd(c,b,e,!1,!1),null!==b&&Xw(a,c.index,b)):Xw(a,c.index,d)}},Xw=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};
var Mga=Promise.resolve(0);
var mg=function(a){var b=void 0===a.enableLongStackTrace?!1:a.enableLongStackTrace,c=void 0===a.shouldCoalesceEventChangeDetection?!1:a.shouldCoalesceEventChangeDetection;a=void 0===a.shouldCoalesceRunChangeDetection?!1:a.shouldCoalesceRunChangeDetection;this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new Vw(!1);this.onMicrotaskEmpty=new Vw(!1);this.onStable=new Vw(!1);this.onError=new Vw(!1);if("undefined"==typeof Zone)throw Error("Ea");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=!a&&c;this.shouldCoalesceRunChangeDetection=a;this.lastRequestAnimationFrameId=-1;b=yd.requestAnimationFrame;c=yd.cancelAnimationFrame;"undefined"!==typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));
this.nativeRequestAnimationFrame=b;Rga(this)},Yw=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")};mg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};mg.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,vmb,Iea,Iea);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};mg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};mg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var vmb={},lg=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Vw;this.onMicrotaskEmpty=new Vw;this.onStable=new Vw;this.onError=new Vw};lg.prototype.run=function(a,b,c){return a.apply(b,c)};lg.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};lg.prototype.runOutsideAngular=function(a){return a()};lg.prototype.runTask=function(a,b,c){return a.apply(b,c)};
var wmb=new od(""),Zw=new od(""),$w=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._pendingCount=0;this._isZoneStable=!0;this._didWork=!1;this._callbacks=[];this.taskTrackingZone=null;xmb||(xmb=c,ymb(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
$w.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._didWork=!0;a._isZoneStable=!1}});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){if(Yw())throw Error("Ga");Nga(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};$w.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
$w.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())Nga(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=zmb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var zmb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=$w.prototype;g.addCallback=function(a,b,c){var d=this,e=-1;b&&0<b&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a(d._didWork,zmb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Ha");this.addCallback(a,b,c);this._runCallbacksIfReady()};g.registerApplication=function(a){this.registry.registerApplication(a,this)};g.unregisterApplication=function(a){this.registry.unregisterApplication(a)};g.findProviders=function(){return[]};$w.\u0275fac=function(a){return new (a||$w)(t(mg),t(ax),t(Zw))};$w.\u0275prov=hc({token:$w,factory:$w.\u0275fac});var ax=function(){this._applications=new Map};
ax.prototype.registerApplication=function(a,b){this._applications.set(a,b)};ax.prototype.unregisterApplication=function(a){this._applications.delete(a)};ax.prototype.findTestabilityInTree=function(a,b){var c,d;return null!=(d=null==(c=xmb)?void 0:c.findTestabilityInTree(this,a,void 0===b?!0:b))?d:null};ax.\u0275fac=function(a){return new (a||ax)};ax.\u0275prov=hc({token:ax,factory:ax.\u0275fac,providedIn:"platform"});var xmb;
var Sga=function(a){this.durationSelector=a};Sga.prototype.call=function(a,b){return b.subscribe(new bx(a,this.durationSelector))};var bx=function(a,b){Bw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};U(bx,Bw);bx.EMPTY=Bw.EMPTY;bx.create=Bw.create;
bx.prototype._next=function(a){this.value=a;this.hasValue=!0;if(!this.throttled){try{var b=this.durationSelector;var c=b(a)}catch(d){return this.destination.error(d)}a=jf(c,new zw(this));!a||a.closed?Amb(this):this.add(this.throttled=a)}};var Amb=function(a){var b=a.value,c=a.hasValue,d=a.throttled;d&&(a.remove(d),a.throttled=null,d.unsubscribe());c&&(a.value=null,a.hasValue=!1,a.destination.next(b))};bx.prototype.notifyNext=function(){Amb(this)};bx.prototype.notifyComplete=function(){Amb(this)};
var Uga=function(a){this.closingNotifier=a};Uga.prototype.call=function(a,b){return b.subscribe(new cx(a,this.closingNotifier))};var cx=function(a,b){Bw.call(this,a);this.buffer=[];this.add(jf(b,new zw(this)))};U(cx,Bw);cx.EMPTY=Bw.EMPTY;cx.create=Bw.create;cx.prototype._next=function(a){this.buffer.push(a)};cx.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};
var Wga=function(a){this.selector=a};Wga.prototype.call=function(a,b){return b.subscribe(new dx(a,this.selector,this.caught))};var dx=function(a,b,c){Bw.call(this,a);this.selector=b;this.caught=c};U(dx,Bw);dx.EMPTY=Bw.EMPTY;dx.create=Bw.create;dx.prototype.error=function(a){if(!this.isStopped){try{var b=this.selector(a,this.caught)}catch(c){Bw.prototype.error.call(this,c);return}this._unsubscribeAndRecycle();a=new zw(this);this.add(a);jf(b,a)}};
var Yga=function(a){this.durationSelector=a};Yga.prototype.call=function(a,b){return b.subscribe(new ex(a,this.durationSelector))};var ex=function(a,b){Bw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};U(ex,Bw);ex.EMPTY=Bw.EMPTY;ex.create=Bw.create;g=ex.prototype;g._next=function(a){try{var b=this.durationSelector.call(this,a);b&&this._tryNext(a,b)}catch(c){this.destination.error(c)}};g._complete=function(){Bmb(this);this.destination.complete()};
g._tryNext=function(a,b){var c=this.durationSubscription;this.value=a;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));(c=jf(b,new zw(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){Bmb(this)};g.notifyComplete=function(){Bmb(this)};var Bmb=function(a){if(a.hasValue){var b=a.value,c=a.durationSubscription;c&&(a.durationSubscription=null,c.unsubscribe(),a.remove(c));a.value=null;a.hasValue=!1;Bw.prototype._next.call(a,b)}};
var $ga=function(a,b){this.dueTime=a;this.scheduler=b};$ga.prototype.call=function(a,b){return b.subscribe(new fx(a,this.dueTime,this.scheduler))};var fx=function(a,b,c){Ve.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};U(fx,Ve);fx.EMPTY=Ve.EMPTY;fx.create=Ve.create;fx.prototype._next=function(a){Cmb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(bha,this.dueTime,this))};
fx.prototype._complete=function(){aha(this);this.destination.complete()};var aha=function(a){Cmb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},Cmb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};
var cha=function(a){this.defaultValue=a};cha.prototype.call=function(a,b){return b.subscribe(new gx(a,this.defaultValue))};var gx=function(a,b){Ve.call(this,a);this.defaultValue=b;this.isEmpty=!0};U(gx,Ve);gx.EMPTY=Ve.EMPTY;gx.create=Ve.create;gx.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};gx.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};
var eha=function(a,b){this.delay=a;this.scheduler=b};eha.prototype.call=function(a,b){return b.subscribe(new hx(a,this.delay,this.scheduler))};var hx=function(a,b,c){Ve.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};U(hx,Ve);hx.EMPTY=Ve.EMPTY;hx.create=Ve.create;
var Dmb=function(a){for(var b=a.source,c=b.queue,d=a.scheduler,e=a.destination;0<c.length&&0>=c[0].time-d.now();)e.next(c.shift().value);0<c.length?(b=Math.max(0,c[0].time-d.now()),this.schedule(a,b)):(b.isStopped?b.destination.complete():this.unsubscribe(),b.active=!1)};hx.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule(Dmb,this.delay,{source:this,destination:b,scheduler:a}))};
hx.prototype._next=function(a){var b=this.scheduler;a=new Emb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};hx.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};hx.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var Emb=function(a,b){this.time=a;this.value=b};
var fha=function(a){this.compare=a;this.keySelector=void 0};fha.prototype.call=function(a,b){return b.subscribe(new ix(a,this.compare,this.keySelector))};var ix=function(a,b,c){Ve.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};U(ix,Ve);ix.EMPTY=Ve.EMPTY;ix.create=Ve.create;ix.prototype.compare=function(a,b){return a===b};
ix.prototype._next=function(a){try{var b=this.keySelector;var c=b?b(a):a}catch(e){return this.destination.error(e)}b=!1;if(this.hasKey)try{var d=this.compare;b=d(this.key,c)}catch(e){return this.destination.error(e)}else this.hasKey=!0;b||(this.key=c,this.destination.next(a))};
var gha=function(){this.count=1};gha.prototype.call=function(a,b){return b.subscribe(new jx(a,this.count))};var jx=function(a,b){Ve.call(this,a);this.count=b;this._valueCount=0};U(jx,Ve);jx.EMPTY=Ve.EMPTY;jx.create=Ve.create;jx.prototype._next=function(a){var b=this.count,c=++this._valueCount;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};
var iha=function(a){this.errorFactory=a};iha.prototype.call=function(a,b){return b.subscribe(new kx(a,this.errorFactory))};var kx=function(a,b){Ve.call(this,a);this.errorFactory=b;this.hasValue=!1};U(kx,Ve);kx.EMPTY=Ve.EMPTY;kx.create=Ve.create;kx.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};kx.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
var kha=function(a){this.callback=a};kha.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};
var lha=function(){};lha.prototype.call=function(a,b){return b.subscribe(new lx(a))};var lx=function(){Ve.apply(this,arguments)};U(lx,Ve);lx.EMPTY=Ve.EMPTY;lx.create=Ve.create;lx.prototype._next=function(){};
var nha=function(){this.total=1};nha.prototype.call=function(a,b){return b.subscribe(new mx(a,this.total))};var mx=function(a,b){Ve.call(this,a);this.total=b;this.ring=[];this.count=0};U(mx,Ve);mx.EMPTY=Ve.EMPTY;mx.create=Ve.create;mx.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
mx.prototype._complete=function(){var a=this.destination,b=this.count;if(0<b)for(var c=this.count>=this.total?this.total:this.count,d=this.ring,e=0;e<c;e++){var f=b++%c;a.next(d[f])}a.complete()};
var qha=function(a){this.value=a};qha.prototype.call=function(a,b){return b.subscribe(new nx(a,this.value))};var nx=function(a,b){Ve.call(this,a);this.value=b};U(nx,Ve);nx.EMPTY=Ve.EMPTY;nx.create=Ve.create;nx.prototype._next=function(){this.destination.next(this.value)};
var rha=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};rha.prototype.call=function(a,b){return b.subscribe(new ox(a,this.accumulator,this.seed,this.hasSeed))};var ox=function(a,b,c,d){Ve.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};U(ox,Ve);ox.EMPTY=Ve.EMPTY;ox.create=Ve.create;
ox.prototype._next=function(a){var b=this.destination;if(this._hasState){var c=this.index++;try{var d=this.accumulator(this._state,a,c)}catch(e){b.error(e);return}this._state=d;b.next(d)}else this._state=a,this._hasState=!0,b.next(a)};
var xha=function(a){this.total=a};xha.prototype.call=function(a,b){return b.subscribe(new px(a,this.total))};var px=function(a,b){Ve.call(this,a);this.total=b;this.count=0};U(px,Ve);px.EMPTY=Ve.EMPTY;px.create=Ve.create;px.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};
var yha=function(a){this.project=a};yha.prototype.call=function(a,b){return b.subscribe(new qx(a,this.project))};var qx=function(a,b){Bw.call(this,a);this.destination=a;this.project=b;this.index=0};U(qx,Bw);qx.EMPTY=Bw.EMPTY;qx.create=Bw.create;g=qx.prototype;g._next=function(a){var b=this.index++;try{var c=this.project(a,b)}catch(d){this.destination.error(d);return}(a=this.innerSubscription)&&a.unsubscribe();a=new zw(this);this.destination.add(a);this.innerSubscription=a;jf(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||Bw.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&Bw.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};
var Aha=function(a){this.notifier=a};Aha.prototype.call=function(a,b){a=new rx(a);var c=jf(this.notifier,new zw(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var rx=function(a){Bw.call(this,a);this.notifierHasNotified=!1};U(rx,Bw);rx.EMPTY=Bw.EMPTY;rx.create=Bw.create;rx.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};rx.prototype.notifyComplete=function(){};
var Bha=function(a,b){this.predicate=a;this.inclusive=b};Bha.prototype.call=function(a,b){return b.subscribe(new sx(a,this.predicate,this.inclusive))};var sx=function(a,b,c){Ve.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};U(sx,Ve);sx.EMPTY=Ve.EMPTY;sx.create=Ve.create;sx.prototype._next=function(a){var b=this.destination;try{var c=this.predicate(a,this.index++)}catch(d){b.error(d);return}b=this.destination;c?b.next(a):(this.inclusive&&b.next(a),b.complete())};
var Dha=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};Dha.prototype.call=function(a,b){return b.subscribe(new tx(a,this.nextOrObserver,this.error,this.complete))};var tx=function(a,b,c,d){Ve.call(this,a);this._tapComplete=this._tapError=this._tapNext=rf;this._tapError=c||rf;this._tapComplete=d||rf;Re(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||rf,this._tapError=b.error||rf,this._tapComplete=b.complete||rf)};U(tx,Ve);tx.EMPTY=Ve.EMPTY;
tx.create=Ve.create;tx.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};tx.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};tx.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};
var Eha={leading:!0,trailing:!1},Fha=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};Fha.prototype.call=function(a,b){return b.subscribe(new ux(a,this.durationSelector,this.leading,this.trailing))};var ux=function(a,b,c,d){Bw.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};U(ux,Bw);ux.EMPTY=Bw.EMPTY;ux.create=Bw.create;
ux.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():Fmb(this,a))};ux.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),Fmb(this,a));this._hasValue=!1;this._sendValue=null};var Fmb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=jf(c,new zw(a)))},Gmb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
ux.prototype.notifyNext=function(){Gmb(this)};ux.prototype.notifyComplete=function(){Gmb(this)};
var Hha=function(a,b){this.observables=a;this.project=b};Hha.prototype.call=function(a,b){return b.subscribe(new vx(a,this.observables,this.project))};var vx=function(a,b,c){Cw.call(this,a);this.project=c;this.toRespond=[];a=b.length;this.values=Array(a);for(c=0;c<a;c++)this.toRespond.push(c);for(c=0;c<a;c++)this.add(jf(b[c],new Aw(this,void 0,c)))};U(vx,Cw);vx.EMPTY=Cw.EMPTY;vx.create=Cw.create;
vx.prototype.notifyNext=function(a,b,c){this.values[c]=b;b=this.toRespond;0<b.length&&(c=b.indexOf(c),-1!==c&&b.splice(c,1))};vx.prototype.notifyComplete=function(){};vx.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(v(this.values)),this.project?this._tryProject(a):this.destination.next(a))};vx.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var ig=null,Lha=new od("AllowMultipleToken"),Pha=new od("PlatformOnDestroy"),Hmb=function(a,b){this.name=a;this.token=b},jg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},Imb=function(a,b,c){var d=Qha(null==c?void 0:c.ngZone,{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}),e=[{provide:mg,useValue:d}];return d.run(function(){var f=kg({providers:e,
parent:a.injector,name:b.moduleType.name}),h=b.create(f),k=h.injector.get(Zd,null);if(!k)throw new mc(402,"");d.runOutsideAngular(function(){var q=d.onError.subscribe({next:function(u){k.handleError(u)}});h.onDestroy(function(){ng(a._modules,h);q.unsubscribe()})});return Rha(k,d,function(){var q=h.injector.get(gw);Nlb(q);return q.donePromise.then(function(){var u=h.injector.get(ti,"en-US")||"en-US";if(null==u)throw Error("ja`Expected localeId to be defined` [Expected=> null != "+(u+" <=Actual]"));
a._moduleDoBootstrap(h);return h})})})},Kmb=function(){var a=Jmb(),b=wx;var c=void 0===c?[]:c;var d=Sha({},c);Promise.resolve(new fw(b)).then(function(e){return Imb(a,e,d)})};jg.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(xx);if(0<a._bootstrapComponents.length)a._bootstrapComponents.forEach(function(c){return b.bootstrap(c)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(b);else throw new mc(403,"");this._modules.push(a)};jg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
jg.prototype.destroy=function(){if(this._destroyed)throw new mc(404,"");this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a;null==(a=this._injector.get(Pha,null))||a();this._destroyed=!0};oi.Object.defineProperties(jg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
jg.\u0275fac=function(a){return new (a||jg)(t(Uv))};jg.\u0275prov=hc({token:jg,factory:jg.\u0275fac,providedIn:"platform"});
var xx=function(a,b,c,d){var e=this;this._zone=a;this._injector=b;this._exceptionHandler=c;this._initStatus=d;this._bootstrapListeners=[];this._views=[];this._runningTick=!1;this._stable=!0;this._destroyed=!1;this._destroyListeners=[];this.componentTypes=[];this.components=[];this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){e._zone.run(function(){Lmb(e)})}});this.isStable=(0,T.merge)(new T.Observable(function(f){e._stable=e._zone.isStable&&!e._zone.hasPendingMacrotasks&&
!e._zone.hasPendingMicrotasks;e._zone.runOutsideAngular(function(){f.next(e._stable);f.complete()})}),(new T.Observable(function(f){var h;e._zone.runOutsideAngular(function(){h=e._zone.onStable.subscribe(function(){if(Yw())throw Error("Ga");Nga(function(){e._stable||e._zone.hasPendingMacrotasks||e._zone.hasPendingMicrotasks||(e._stable=!0,f.next(!0))})})});var k=e._zone.onUnstable.subscribe(function(){if(!Yw())throw Error("Fa");e._stable&&(e._stable=!1,e._zone.runOutsideAngular(function(){f.next(!1)}))});
return function(){h.unsubscribe();k.unsubscribe()}})).pipe(ag()))};
xx.prototype.bootstrap=function(a,b){var c=this,d=a instanceof tlb;if(!this._initStatus.done)throw new mc(405,!1);var e;d?e=a:e=this._injector.get(Wv).resolveComponentFactory(a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(Xv);var f=e.create(olb,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get(wmb,null);null==k||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);ng(c.components,f);null==k||k.unregisterApplication(h)});
this._loadComponent(f);return f};var Lmb=function(a){if(a._runningTick)throw new mc(101,"");try{a._runningTick=!0;for(var b=r(a._views),c=b.next();!c.done;c=b.next())c.value.detectChanges()}catch(d){a._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(d)})}finally{a._runningTick=!1}},Mmb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new mc(902,"");b._appRef=a};g=xx.prototype;
g.detachView=function(a){ng(this._views,a);a._appRef=null;var b=a._lView;Dd(b[11],2,a._lView[1].firstChild,b,null,null,!1)};g._loadComponent=function(a){Mmb(this,a.hostView);Lmb(this);this.components.push(a);this._injector.get(Plb,[]).concat(this._bootstrapListeners).forEach(function(b){return b(a)})};
g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}};g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return ng(b._destroyListeners,a)}};
g.destroy=function(){if(this._destroyed)throw new mc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};oi.Object.defineProperties(xx.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,get:function(){return this._views.length}}});xx.\u0275fac=function(a){return new (a||xx)(t(mg),t(Uv),t(Zd),t(gw))};
xx.\u0275prov=hc({token:xx,factory:xx.\u0275fac,providedIn:"root"});
var Nmb=new od("AnalyzeForEntryComponents");
var yx=function(){};yx.\u0275fac=function(a){return new (a||yx)(t(xx))};yx.\u0275mod=xc({type:yx});yx.\u0275inj=ic({});
var zx=function(){};zx.__NG_ELEMENT_ID__=Tha;
var Omb=function(){};Omb.prototype.supports=function(a){return Tea(a)};Omb.prototype.create=function(a){return new Ax(a)};var Pmb=function(a,b){return b},Ax=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||Pmb};
Ax.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var Qmb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Uha(a,d,e)?c:a,h=Uha(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,null==f.previousIndex)d++;else{e||(e=[]);var q=h-d,u=k-d;if(q!=u){for(var y=0;y<q;y++){var D=y<e.length?e[y]:e[y]=0,I=D+y;u<=I&&I<q&&(e[y]=D+1)}e[f.previousIndex]=u-q}}h!==k&&b(f,h,k)}};
Ax.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};Ax.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var Rmb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=Ax.prototype;g.diff=function(a){null==a&&(a=[]);if(!Tea(a))throw new mc(900,"");return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var h=this._trackByFn(e,f);null!==c&&Object.is(c.trackById,h)?(d&&(c=this._verifyReinsertion(c,f,h,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,h,e),d=!0);c=c._next}}else{var k=0;Uea(a,function(q){h=b._trackByFn(k,q);null!==c&&Object.is(c.trackById,h)?(d&&(c=b._verifyReinsertion(c,q,h,k)),Object.is(c.item,q)||b._addIdentityChange(c,
q)):(c=b._mismatch(c,q,h,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
g._mismatch=function(a,b,c,d){if(null===a)var e=this._itTail;else e=a._prev,this._remove(a);a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new Smb(b,c),e,d));return a};
g._verifyReinsertion=function(a,b,c,d){b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);null!==b?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
g._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear();null!==this._additionsTail&&(this._additionsTail._nextAdded=null);null!==this._movesTail&&(this._movesTail._nextMoved=null);null!==this._itTail&&(this._itTail._next=null);null!==this._removalsTail&&(this._removalsTail._nextRemoved=null);null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)};
g._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;null===d?this._removalsHead=e:d._nextRemoved=e;null===e?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};g._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
g._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};g._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;a._next=d;a._prev=b;null===d?this._itTail=a:d._prev=a;null===b?this._itHead=a:b._next=a;null===this._linkedRecords&&(this._linkedRecords=new Bx);this._linkedRecords.put(a);a.currentIndex=c;return a};g._remove=function(a){return this._addToRemovals(this._unlink(a))};
g._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;null===b?this._itHead=c:b._next=c;null===c?this._itTail=b:c._prev=b;return a};g._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a;return a};
g._addToRemovals=function(a){null===this._unlinkedRecords&&(this._unlinkedRecords=new Bx);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
g._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};oi.Object.defineProperties(Ax.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var Smb=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},Cx=function(){this._tail=this._head=null};Cx.prototype.add=function(a){null===this._head?(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)};
Cx.prototype.get=function(a,b){var c;for(c=this._head;null!==c;c=c._nextDup)if((null===b||b<=c.currentIndex)&&Object.is(c.trackById,a))return c;return null};Cx.prototype.remove=function(a){var b=a._prevDup;a=a._nextDup;null===b?this._head=a:b._nextDup=a;null===a?this._tail=b:a._prevDup=b;return null===this._head};var Bx=function(){this.map=new Map};Bx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new Cx,this.map.set(b,c));c.add(a)};
Bx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};Bx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};Bx.prototype.clear=function(){this.map.clear()};oi.Object.defineProperties(Bx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});
var Tmb=function(){};Tmb.prototype.supports=function(a){return a instanceof Map||Sea(a)};Tmb.prototype.create=function(){return new Dx};var Dx=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};Dx.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var Umb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=Dx.prototype;g.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};g.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};g.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||Sea(a)))throw new mc(900,"");return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};g._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
g._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new Vmb(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
g._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};g._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};g._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
g._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};oi.Object.defineProperties(Dx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var Vmb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};
var Ex=function(a){this.factories=a};Ex.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new mc(901,"");};Ex.\u0275prov=hc({token:Ex,providedIn:"root",factory:function(){return new Ex([new Omb])}});
var Fx=function(a){this.factories=a};Fx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new mc(901,"");};Fx.\u0275prov=hc({token:Fx,providedIn:"root",factory:function(){return new Fx([new Tmb])}});
var Wmb=function(){};
var Xmb=Nha(null,"core",[]);
var Gx=function(a,b){this._viewContainer=a;this._context=new Ymb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Gx.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)))};
oi.Object.defineProperties(Gx.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){Vha("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Vha("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Gx.\u0275fac=function(a){return new (a||Gx)(C(Bf),C(Af))};
Gx.\u0275dir=w({type:Gx,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Ymb=function(){this.ngIf=this.$implicit=null};
var Hx=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};Hx.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};Hx.prototype.registerOnTouched=function(a){this.onTouched=a};Hx.prototype.registerOnChange=function(a){this.onChange=a};Hx.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};Hx.\u0275fac=function(a){return new (a||Hx)(C(Zv),C(sd))};Hx.\u0275dir=w({type:Hx});
var Ng=function(){Hx.apply(this,arguments)};U(Ng,Hx);Ng.\u0275fac=function(){var a;return function(b){return(a||(a=hd(Ng)))(b||Ng)}}();Ng.\u0275dir=w({type:Ng,features:[ee]});var Ix=new od("NgValueAccessor");
var Jx=function(a,b,c,d){this._iterableDiffers=a;this._keyValueDiffers=b;this._ngEl=c;this._renderer=d;this._keyValueDiffer=this._iterableDiffer=null;this._initialClasses=[];this._rawClass=null};g=Jx.prototype;g.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else this._keyValueDiffer&&(a=this._keyValueDiffer.diff(this._rawClass))&&this._applyKeyValueChanges(a)};
g._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(c){return b._toggleClass(c.key,c.currentValue)});Umb(a,function(c){return b._toggleClass(c.key,c.currentValue)});a.forEachRemovedItem(function(c){c.previousValue&&b._toggleClass(c.key,!1)})};g._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(c){if("string"===typeof c.item)b._toggleClass(c.item,!0);else throw Error("Ka`"+cc(c.item));});a.forEachRemovedItem(function(c){return b._toggleClass(c.item,!1)})};
g._applyClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!0)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!!a[c])}))};g._removeClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!1)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!1)}))};
g._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};
oi.Object.defineProperties(Jx.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._initialClasses);this._initialClasses="string"===typeof a?a.split(/\s+/):[];this._applyClasses(this._initialClasses);this._applyClasses(this._rawClass)}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._rawClass);this._applyClasses(this._initialClasses);this._keyValueDiffer=this._iterableDiffer=null;if(this._rawClass="string"===typeof a?a.split(/\s+/):
a)Tea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create()}}});Jx.\u0275fac=function(a){return new (a||Jx)(C(Ex),C(Fx),C(sd),C(Zv))};Jx.\u0275dir=w({type:Jx,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});
var Zmb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};oi.Object.defineProperties(Zmb.prototype,{first:{configurable:!0,enumerable:!0,get:function(){return 0===this.index}},last:{configurable:!0,enumerable:!0,get:function(){return this.index===this.count-1}},even:{configurable:!0,enumerable:!0,get:function(){return 0===this.index%2}},odd:{configurable:!0,enumerable:!0,get:function(){return!this.even}}});
var Kx=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Kx.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)};
Kx.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;Qmb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new Zmb(h.item,b._ngForOf,-1,-1),null===q?void 0:q):null==q?c.remove(null===k?void 0:k):null!==k&&(k=c.get(k),c.move(k,q),k.context.$implicit=h.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}Rmb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
oi.Object.defineProperties(Kx.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)}}});Kx.\u0275fac=function(a){return new (a||Kx)(C(Bf),C(Af),C(Ex))};
Kx.\u0275dir=w({type:Kx,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});
var Lx=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};Lx.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};Lx.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Mx=function(){this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Mx.prototype._addCase=function(){return this._caseCount++};
Mx.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]);this._defaultViews.push(a)};Mx.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};
Mx.prototype._updateDefaultCases=function(a){if(this._defaultViews&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=0;b<this._defaultViews.length;b++){var c=this._defaultViews[b],d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};oi.Object.defineProperties(Mx.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});Mx.\u0275fac=function(a){return new (a||Mx)};
Mx.\u0275dir=w({type:Mx,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var Nx=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new Lx(a,b)};Nx.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Nx.\u0275fac=function(a){return new (a||Nx)(C(Bf),C(Af),C(Mx,9))};Nx.\u0275dir=w({type:Nx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Ox=function(a,b,c){c._addDefault(new Lx(a,b))};Ox.\u0275fac=function(a){return new (a||Ox)(C(Bf),C(Af),C(Mx,9))};Ox.\u0275dir=w({type:Ox,selectors:[["","ngSwitchDefault",""]]});
var Px=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Px.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Px.prototype._setStyle=function(a,b){var c=r(a.split("."));a=c.next().value;c=c.next().value;b=null!=b&&c?""+b+c:b;null!=b?this._renderer.setStyle(this._ngEl.nativeElement,a,b):this._renderer.removeStyle(this._ngEl.nativeElement,a)};
Px.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)});Umb(a,function(c){return b._setStyle(c.key,c.currentValue)})};oi.Object.defineProperties(Px.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Px.\u0275fac=function(a){return new (a||Px)(C(sd),C(Fx),C(Zv))};
Px.\u0275dir=w({type:Px,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});
var Qx=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
Qx.prototype.ngOnChanges=function(a){if(a.ngTemplateOutlet||a.ngTemplateOutletInjector)if(a=this._viewContainerRef,this._viewRef&&a.remove(a.indexOf(this._viewRef)),this.ngTemplateOutlet){var b=this.ngTemplateOutletInjector;this._viewRef=a.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext,b?{injector:b}:void 0)}else this._viewRef=null;else this._viewRef&&a.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)};
Qx.\u0275fac=function(a){return new (a||Qx)(C(Bf))};Qx.\u0275dir=w({type:Qx,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Fc]});
var Rx=function(){};Rx.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(c){throw c;}})};Rx.prototype.dispose=function(a){a.unsubscribe()};Rx.prototype.onDestroy=function(a){a.unsubscribe()};var Sx=function(){};Sx.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};Sx.prototype.dispose=function(){};Sx.prototype.onDestroy=function(){};
var $mb=new Sx,anb=new Rx,Tx=function(a){this._ref=a;this._strategy=this._obj=this._subscription=this._latestValue=null};g=Tx.prototype;g.ngOnDestroy=function(){this._subscription&&this._dispose()};g.transform=function(a){return this._obj?a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue:(a&&this._subscribe(a),this._latestValue)};
g._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})};g._selectStrategy=function(a){if(ce(a))return $mb;if(Hea(a))return anb;throw vg();};g._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};g._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())};
Tx.\u0275fac=function(a){return new (a||Tx)(C(zx,16))};Tx.\u0275pipe=zc({name:"async",type:Tx,pure:!1});
var Ux=function(){};Ux.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw vg();return a.toLowerCase()};Ux.\u0275fac=function(a){return new (a||Ux)};Ux.\u0275pipe=zc({name:"lowercase",type:Ux,pure:!0});
var bnb=/(?:[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,Vx=
function(){};Vx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw vg();return a.replace(bnb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275pipe=zc({name:"titlecase",type:Vx,pure:!0});
var nia=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cg={},eia=/((?:[^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]*)/,hia={};
var cnb=new od("DATE_PIPE_DEFAULT_TIMEZONE"),Wx=function(a,b){this.locale=a;this.defaultTimezone=b};Wx.prototype.transform=function(a,b,c,d){if(null==a||""===a||a!==a)return null;try{var e;return jia(a,void 0===b?"mediumDate":b,d||this.locale,null!=(e=null!=c?c:this.defaultTimezone)?e:void 0)}catch(f){throw vg();}};Wx.\u0275fac=function(a){return new (a||Wx)(C(ti,16),C(cnb,24))};Wx.\u0275pipe=zc({name:"date",type:Wx,pure:!0});
var Xx=function(a){this.differs=a;this.keyValues=[];this.compareFn=pia};Xx.prototype.transform=function(a,b){var c=this;b=void 0===b?pia:b;if(!a||!(a instanceof Map)&&"object"!==typeof a)return null;this.differ||(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)this.keyValues.sort(b),this.compareFn=b;return this.keyValues};
Xx.\u0275fac=function(a){return new (a||Xx)(C(Fx,16))};Xx.\u0275pipe=zc({name:"keyvalue",type:Xx,pure:!1});
var sia=/^(\d+)?\.((\d+)(-(\d+))?)?$/;
var Yx=function(a){this._locale=a};
Yx.prototype.transform=function(a,b,c){if(null==a||""===a||a!==a)return null;c=c||this._locale;try{if("string"!==typeof a||isNaN(Number(a)-parseFloat(a))){if("number"!==typeof a)throw Error("Ua`"+a);var d=a}else d=Number(a);a=d;var e=de(c)[14][0],f=ug(c,5);f=void 0===f?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],u=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],y=u[0],D=u[1]||"";d.posPre=y.substring(0,y.indexOf("#"));for(e=0;e<D.length;e++){var I=D.charAt(e);"0"===I?d.minFrac=d.maxFrac=e+1:"#"===I?d.maxFrac=e+1:d.posSuf+=I}var N=y.split(",");d.gSize=N[1]?N[1].length:0;d.lgSize=N[2]||N[1]?(N[2]||N[1]).length:0;if(q){var L=k.length-d.posPre.length-d.posSuf.length,S=q.indexOf("#");d.negPre=q.substring(0,S).replace(/'/g,"");d.negSuf=q.slice(S+L).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return via(a,d,c,b)}catch(X){throw vg();}};
Yx.\u0275fac=function(a){return new (a||Yx)(C(ti,16))};Yx.\u0275pipe=zc({name:"number",type:Yx,pure:!0});
var Zx=function(){};Zx.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw vg();return a.slice(b,c)};Zx.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};Zx.\u0275fac=function(a){return new (a||Zx)};Zx.\u0275pipe=zc({name:"slice",type:Zx,pure:!1});
var ay=function(){};ay.\u0275fac=function(a){return new (a||ay)};ay.\u0275mod=xc({type:ay});ay.\u0275inj=ic({});
var mi=new od("DocumentToken");
var Dh=null,dnb=function(){};
var by=function(){};by.prototype.historyGo=function(){throw Error("Va");};by.\u0275fac=function(a){return new (a||by)};by.\u0275prov=hc({token:by,factory:function(){return t(cy)},providedIn:"platform"});var enb=new od("Location Initialized"),cy=function(a){this._doc=a;this._init()};U(cy,by);cy.prototype._init=function(){this.location=window.location;this._history=window.history};
cy.prototype.onPopState=function(a){var b=fnb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var gnb=function(a,b){var c=fnb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=cy.prototype;g.pushState=function(a,b,c){window.history.pushState?this._history.pushState(a,b,c):this.location.hash=c};
g.replaceState=function(a,b,c){window.history.pushState?this._history.replaceState(a,b,c):this.location.hash=c};g.forward=function(){this._history.forward()};g.back=function(){this._history.back()};g.historyGo=function(a){this._history.go(void 0===a?0:a)};g.getState=function(){return this._history.state};
oi.Object.defineProperties(cy.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}}});cy.\u0275fac=function(a){return new (a||cy)(t(mi))};cy.\u0275prov=hc({token:cy,factory:function(){return new cy(t(mi))},providedIn:"platform"});
var dy=function(){};dy.prototype.historyGo=function(){throw Error("Va");};dy.\u0275fac=function(a){return new (a||dy)};dy.\u0275prov=hc({token:dy,factory:function(){var a=t(mi).location;return new ey(t(by),a&&a.origin||"")},providedIn:"root"});var fy=new od("appBaseHref"),ey=function(a,b){this._platformLocation=a;this._removeListenerFns=[];null==b&&(b=Dh.getBaseHref());if(null==b)throw Error("Wa");this._baseHref=b};U(ey,dy);g=ey.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),gnb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return wia(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+Fg(this._platformLocation.search),c=this._platformLocation.hash;return c&&(void 0===a?0:a)?b+c:b};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+Fg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+Fg(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};ey.\u0275fac=function(a){return new (a||ey)(t(by),t(fy,8))};ey.\u0275prov=hc({token:ey,factory:ey.\u0275fac});
var gy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};U(gy,dy);g=gy.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),gnb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};
g.path=function(){var a=this._platformLocation.hash;null==a&&(a="#");return 0<a.length?a.substring(1):a};g.prepareExternalUrl=function(a){a=wia(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+Fg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.pushState(a,b,c)};
g.replaceState=function(a,b,c,d){c=this.prepareExternalUrl(c+Fg(d));0==c.length&&(c=this._platformLocation.pathname);this._platformLocation.replaceState(a,b,c)};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;null==(c=(b=this._platformLocation).historyGo)||c.call(b,void 0===a?0:a)};gy.\u0275fac=function(a){return new (a||gy)(t(by),t(fy,8))};
gy.\u0275prov=hc({token:gy,factory:gy.\u0275fac});
var hy=function(a){var b=this;this._subject=new Vw;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._baseHref=xia(a.replace(/\/index.html$/,""));this._locationStrategy.onPopState(function(c){b._subject.emit({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};g=hy.prototype;g.ngOnDestroy=function(){var a;null==(a=this._urlChangeSubscription)||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._locationStrategy.path(void 0===a?!1:a))};g.getState=function(){return this._locationStrategy.getState()};g.normalize=function(a){var b=this._baseHref;a=a.replace(/\/index.html$/,"");return xia(b&&a.startsWith(b)?a.substring(b.length):a)};g.prepareExternalUrl=function(a){a&&"/"!==a[0]&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Fg(b)),c)};g.replaceState=function(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+Fg(b)),c)};g.forward=function(){this._locationStrategy.forward()};g.back=function(){this._locationStrategy.back()};
g.historyGo=function(a){var b,c;null==(c=(b=this._locationStrategy).historyGo)||c.call(b,void 0===a?0:a)};g._notifyUrlChangeListeners=function(a,b){a=void 0===a?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};g.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b,complete:c})};hy.\u0275fac=function(a){return new (a||hy)(t(dy))};hy.\u0275prov=hc({token:hy,factory:function(){return new hy(t(dy))},providedIn:"root"});
var hnb=function(){};hnb.\u0275prov=hc({token:hnb,providedIn:"root",factory:function(){return new inb}});var inb=function(){var a=t(mi),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};inb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};inb.prototype.getScrollPosition=function(){return iy(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var jnb=function(a,b){iy(a)&&a.window.scrollTo(b[0],b[1])},iy=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};
var knb=function(){};
var lnb={provide:Ix,useExisting:dc(function(){return Mg}),multi:!0},mnb=new od("CompositionEventMode"),Mg=function(a,b,c){Hx.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((Dh?window.navigator.userAgent:"").toLowerCase()))};U(Mg,Hx);Mg.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Mg.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Mg.prototype._compositionStart=function(){this._composing=!0};Mg.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Mg.\u0275fac=function(a){return new (a||Mg)(C(Zv),C(sd),C(mnb,8))};
Mg.\u0275dir=w({type:Mg,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&&J("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)})},features:[Je([lnb]),ee]});
var jy=new od("NgValidators"),ky=new od("NgAsyncValidators"),ly=function(a){return zia(a)};
var my=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=my.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Jia(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Lia(this._rawAsyncValidators)};g._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
g._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};g.reset=function(a){this.control&&this.control.reset(a)};g.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};g.getError=function(a,b){return this.control?this.control.getError(a,b):null};
oi.Object.defineProperties(my.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 ny=function(){my.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};U(ny,my);
var oy=function(){my.apply(this,arguments)};U(oy,my);oi.Object.defineProperties(oy.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});
var nnb=function(a){this._cd=a};
oi.Object.defineProperties(nnb.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==
(a=this._cd)?0:null==(b=a.control)?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(null==(a=this._cd)?0:null==(b=a.control)?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a;return!(null==
(a=this._cd)||!a.submitted)}}});Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},{"[class.ng-submitted]":"isSubmitted"});var py=function(a){this._cd=a};U(py,nnb);py.\u0275fac=function(a){return new (a||py)(C(ny,2))};
py.\u0275dir=w({type:py,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&pe("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)},features:[ee]});var qy=function(a){this._cd=a};U(qy,nnb);qy.\u0275fac=function(a){return new (a||qy)(C(oy,10))};
qy.\u0275dir=w({type:qy,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&pe("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)},features:[ee]});
var ry=function(a,b){this._pendingTouched=this._hasOwnPendingAsyncValidator=this._pendingDirty=!1;this._onCollectionChange=function(){};this._parent=null;this.pristine=!0;this.touched=!1;this._onDisabledChange=[];this._rawValidators=a;this._rawAsyncValidators=b;this._composedValidatorFn=bja(this._rawValidators);this._composedAsyncValidatorFn=cja(this._rawAsyncValidators)},Tia=function(a,b){a._rawValidators=b;a._composedValidatorFn=bja(b)},Uia=function(a,b){a._rawAsyncValidators=b;a._composedAsyncValidatorFn=
cja(b)},onb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(ly):a===ly},Wia=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&!b.onlySelf&&Wia(a._parent,b)},pnb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){pnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},Xia=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&Xia(a._parent,b)},qnb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=
!1;a._forEachChild(function(c){qnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=ry.prototype;g.disable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(c){c.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!0)})};
g.enable=function(a){a=void 0===a?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});Lg(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}));this._onDisabledChange.forEach(function(c){return c(!1)})};g._updateAncestors=function(a){this._parent&&!a.onlySelf&&(Lg(this._parent,a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())};
g.setParent=function(a){this._parent=a};g.getRawValue=function(){return this.value};var Lg=function(a,b){b=void 0===b?{}:b;a._setInitialStatus();a._updateValue();a.enabled&&(a._cancelExistingSubscription(),a.errors=a._runValidator(),a.status=a._calculateStatus(),"VALID"!==a.status&&"PENDING"!==a.status||a._runAsyncValidator(b.emitEvent));!1!==b.emitEvent&&(a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Lg(a._parent,b)};g=ry.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Lg(this,{onlySelf:!0,emitEvent:a.emitEvent})};g._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};g._runValidator=function(){return this.validator?this.validator(this):null};
g._runAsyncValidator=function(a){var b=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator=!0,this._asyncValidationSubscription=Eia(this.asyncValidator(this)).subscribe(function(c){b._hasOwnPendingAsyncValidator=!1;var d={emitEvent:a};d=void 0===d?{}:d;b.errors=c;b._updateControlsErrors(!1!==d.emitEvent)}))};g._cancelExistingSubscription=function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)};
g.get=function(a){if(null==a)return null;Array.isArray(a)||(a=a.split("."));return 0===a.length?null:a.reduce(function(b,c){return b&&b._find(c)},this)};g.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};g.hasError=function(a,b){return!!this.getError(a,b)};g._updateControlsErrors=function(a){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);this._parent&&this._parent._updateControlsErrors(a)};
g._initObservables=function(){this.valueChanges=new Vw;this.statusChanges=new Vw};g._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};g._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};g._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};
g._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};g._updatePristine=function(a){a=void 0===a?{}:a;this.pristine=!this._anyControlsDirty();this._parent&&!a.onlySelf&&this._parent._updatePristine(a)};g._updateTouched=function(a){a=void 0===a?{}:a;this.touched=this._anyControlsTouched();this._parent&&!a.onlySelf&&this._parent._updateTouched(a)};g._registerOnCollectionChange=function(a){this._onCollectionChange=a};
g._setUpdateStrategy=function(a){Og(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)};g._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};g._find=function(){return null};
oi.Object.defineProperties(ry.prototype,{validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn},set:function(a){this._rawValidators=this._composedValidatorFn=a}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn},set:function(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}},parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},valid:{configurable:!0,enumerable:!0,get:function(){return"VALID"===
this.status}},invalid:{configurable:!0,enumerable:!0,get:function(){return"INVALID"===this.status}},pending:{configurable:!0,enumerable:!0,get:function(){return"PENDING"==this.status}},disabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"===this.status}},enabled:{configurable:!0,enumerable:!0,get:function(){return"DISABLED"!==this.status}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},untouched:{configurable:!0,enumerable:!0,get:function(){return!this.touched}},
updateOn:{configurable:!0,enumerable:!0,get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},root:{configurable:!0,enumerable:!0,get:function(){for(var a=this;a._parent;)a=a._parent;return a}}});
var sy=function(a,b,c){var d=ry.call,e=aja(b);c=(Og(b)?b.asyncValidators:c)||null;d.call(ry,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Lg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};U(sy,ry);var rnb=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};g=sy.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;rnb(this,a);Lg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.removeControl=function(a){var b=void 0===b?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];Lg(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;dja(this,a);Object.keys(a).forEach(function(d){var e=c.controls;if(!Object.keys(e).length)throw new mc(1E3,"");if(!e[d])throw new mc(1001,"");c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Lg(this,b)};g.reset=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;this._forEachChild(function(c,d){c.reset(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b);this._updateTouched(b);Lg(this,b)};
g.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};g._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&Lg(this,{onlySelf:!0});return a};g._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};
g._updateValue=function(){this.value=this._reduceValue()};g._anyControls=function(a){for(var b=r(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};g._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};g._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
g._allControlsDisabled=function(){for(var a=r(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return 0<Object.keys(this.controls).length||this.disabled};g._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};
var snb={provide:oy,useExisting:dc(function(){return ty})},tnb=Promise.resolve(null),ty=function(a,b){oy.call(this);this.submitted=!1;this._directives=new Set;this.ngSubmit=new Vw;this.form=new sy({},Jia(a),Lia(b))};U(ty,oy);g=ty.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};g.addControl=function(a){var b=this;tnb.then(function(){var c=b._findContainer(a.path);a.control=rnb(c,a.name,a.control);Hg(a.control,a);Lg(a.control,{emitEvent:!1});b._directives.add(a)})};
g.removeControl=function(a){var b=this;tnb.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};g.updateModel=function(a,b){var c=this;tnb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};g.onSubmit=function(a){this.submitted=!0;Zia(this.form,this._directives);this.ngSubmit.emit(a);return!1};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};
g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)};g._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};oi.Object.defineProperties(ty.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},controls:{configurable:!0,enumerable:!0,get:function(){return this.form.controls}}});
ty.\u0275fac=function(a){return new (a||ty)(C(jy,10),C(ky,10))};ty.\u0275dir=w({type:ty,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([snb]),ee]});
var uy=function(a,b,c){a=void 0===a?null:a;var d=ry.call,e=aja(b);c=(Og(b)?b.asyncValidators:c)||null;d.call(ry,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Lg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Og(b)&&b.initialValueIsDefault&&(eja(a)?this.defaultValue=a.value:this.defaultValue=a)};U(uy,ry);g=uy.prototype;
g.setValue=function(a,b){var c=this;b=void 0===b?{}:b;this.value=this._pendingValue=a;this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(function(d){return d(c.value,!1!==b.emitViewToModelChange)});Lg(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);qnb(this,b);pnb(this,b);this.setValue(this.value,b);this._pendingChange=!1};g._updateValue=function(){};g._anyControls=function(){return!1};g._allControlsDisabled=function(){return this.disabled};
g.registerOnChange=function(a){this._onChange.push(a)};g._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);-1<a&&b.splice(a,1)};g._forEachChild=function(){};
g._syncPendingControls=function(){return"submit"===this.updateOn&&(this._pendingDirty&&Xia(this),this._pendingTouched&&Wia(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){eja(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 unb={provide:ny,useExisting:dc(function(){return vy})},vnb=Promise.resolve(null),vy=function(a,b,c,d,e){ny.call(this);this._changeDetectorRef=e;this.control=new uy;this._registered=!1;this.update=new Vw;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=$ia(d)};U(vy,ny);g=vy.prototype;
g.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);Yia(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};g._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)};g._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
g._setUpStandalone=function(){Hg(this.control,this);Lg(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._isStandalone()||this._checkParentType();this._checkName()};g._checkParentType=function(){};g._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};g._updateValue=function(a){var b=this;vnb.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;null==(c=b._changeDetectorRef)||c.markForCheck()})};
g._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=0!==a&&pg(a);vnb.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;null==(d=b._changeDetectorRef)||d.markForCheck()})};g._getPath=function(a){return this._parent?Nia(a,this._parent):[a]};
oi.Object.defineProperties(vy.prototype,{path:{configurable:!0,enumerable:!0,get:function(){return this._getPath(this.name)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});vy.\u0275fac=function(a){return new (a||vy)(C(oy,9),C(jy,10),C(ky,10),C(Ix,10),C(zx,8))};
vy.\u0275dir=w({type:vy,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Je([unb]),ee,Fc]});
var wy=function(){};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275dir=w({type:wy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});
var wnb={provide:Ix,useExisting:dc(function(){return xy}),multi:!0},xy=function(){Ng.apply(this,arguments)};U(xy,Ng);xy.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};xy.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};xy.\u0275fac=function(){var a;return function(b){return(a||(a=hd(xy)))(b||xy)}}();
xy.\u0275dir=w({type:xy,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&J("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[Je([wnb]),ee]});
var xnb={provide:Ix,useExisting:dc(function(){return yy}),multi:!0},zy=function(){};zy.\u0275fac=function(a){return new (a||zy)};zy.\u0275mod=xc({type:zy});zy.\u0275inj=ic({});var Ay=function(){this._accessors=[]};Ay.prototype.add=function(a,b){this._accessors.push([a,b])};Ay.prototype.remove=function(a){for(var b=this._accessors.length-1;0<=b;--b)if(this._accessors[b][1]===a){this._accessors.splice(b,1);break}};
Ay.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};Ay.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275prov=hc({token:Ay,factory:Ay.\u0275fac,providedIn:zy});var yy=function(a,b,c,d){Ng.call(this,a,b);this._registry=c;this._injector=d;this.onChange=function(){}};U(yy,Ng);g=yy.prototype;
g.ngOnInit=function(){this._control=this._injector.get(ny);this._checkName();this._registry.add(this._control,this)};g.ngOnDestroy=function(){this._registry.remove(this)};g.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};g.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};g._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};
yy.\u0275fac=function(a){return new (a||yy)(C(Zv),C(sd),C(Ay),C(Uv))};yy.\u0275dir=w({type:yy,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&J("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Je([xnb]),ee]});
var ynb=new od("NgModelWithFormControlWarning"),znb={provide:ny,useExisting:dc(function(){return By})},By=function(a,b,c,d){ny.call(this);this._ngModelWarningConfig=d;this.update=new Vw;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=$ia(c)};U(By,ny);
By.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Jg(b,this);Hg(this.form,this);Lg(this.form,{emitEvent:!1})}Yia(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};By.prototype.ngOnDestroy=function(){this.form&&Jg(this.form,this)};By.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};By.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
oi.Object.defineProperties(By.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}}});By.\u0275fac=function(a){return new (a||By)(C(jy,10),C(ky,10),C(Ix,10),C(ynb,8))};
By.\u0275dir=w({type:By,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Je([znb]),ee,Fc]});
var Anb={provide:oy,useExisting:dc(function(){return Cy})},Cy=function(a,b){oy.call(this);var c=this;this.validators=a;this.asyncValidators=b;this.submitted=!1;this._onCollectionChange=function(){return c._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new Vw;this._setValidators(a);this._setAsyncValidators(b)};U(Cy,oy);g=Cy.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(Ig(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Hg(b,a);Lg(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){Jg(a.control||null,a);var b=this.directives;a=b.indexOf(a);-1<a&&b.splice(a,1)};g.updateModel=function(a,b){this.form.get(a.path).setValue(b)};
g.onSubmit=function(a){this.submitted=!0;Zia(this.form,this.directives);this.ngSubmit.emit(a);return!1};g.onReset=function(){this.resetForm()};g.resetForm=function(){this.form.reset(void 0);this.submitted=!1};g._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Jg(c||null,b),d instanceof uy&&(Hg(d,b),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Oia(b,a);Lg(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Ig(b,a)&&Lg(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Oia(this.form,this);this._oldForm&&Ig(this._oldForm,this)};g._checkFormPresent=function(){};
oi.Object.defineProperties(Cy.prototype,{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[]}}});Cy.\u0275fac=function(a){return new (a||Cy)(C(jy,10),C(ky,10))};
Cy.\u0275dir=w({type:Cy,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Je([Anb]),ee,Fc]});
var Bnb={provide:ny,useExisting:dc(function(){return Dy})},Dy=function(a,b,c,d,e){ny.call(this);this._ngModelWarningConfig=e;this._added=!1;this.update=new Vw;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=$ia(d)};U(Dy,ny);g=Dy.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();Yia(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._checkParentType=function(){};g._setUpControl=function(){this._checkParentType();this.control=this.formDirective.addControl(this);this._added=!0};
oi.Object.defineProperties(Dy.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Nia(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});Dy.\u0275fac=function(a){return new (a||Dy)(C(oy,13),C(jy,10),C(ky,10),C(Ix,10),C(ynb,8))};
Dy.\u0275dir=w({type:Dy,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Je([Bnb]),ee,Fc]});
var Ey=function(){this._validator=Bia};Ey.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):Bia,this._onChange&&this._onChange())};Ey.prototype.validate=function(a){return this._validator(a)};Ey.prototype.registerOnValidatorChange=function(a){this._onChange=a};Ey.prototype.enabled=function(a){return null!=a};Ey.\u0275fac=function(a){return new (a||Ey)};
Ey.\u0275dir=w({type:Ey,features:[Fc]});var Cnb={provide:jy,useExisting:dc(function(){return Fy}),multi:!0},Fy=function(){Ey.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return yia(a)}};U(Fy,Ey);Fy.\u0275fac=function(){var a;return function(b){return(a||(a=hd(Fy)))(b||Fy)}}();
Fy.\u0275dir=w({type:Fy,selectors:["input type number min  formControlName ".split(" "),"input type number min  formControl ".split(" "),"input type number min  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&ke("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[Je([Cnb]),ee]});var Dnb={provide:jy,useExisting:dc(function(){return Gy}),multi:!0},Gy=function(){Ey.apply(this,arguments);this.inputName="required";this.normalizeInput=pg;this.createValidator=function(){return zia}};
U(Gy,Ey);Gy.prototype.enabled=function(a){return a};Gy.\u0275fac=function(){var a;return function(b){return(a||(a=hd(Gy)))(b||Gy)}}();Gy.\u0275dir=w({type:Gy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&ke("required",b._enabled?"":null)},inputs:{required:"required"},features:[Je([Dnb]),ee]});
var Enb={provide:jy,useExisting:dc(function(){return Hy}),multi:!0},Hy=function(){Ey.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return Aia(a)}};U(Hy,Ey);Hy.\u0275fac=function(){var a;return function(b){return(a||(a=hd(Hy)))(b||Hy)}}();
Hy.\u0275dir=w({type:Hy,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ke("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Je([Enb]),ee]});var Fnb={provide:jy,useExisting:dc(function(){return Iy}),multi:!0},Iy=function(){Ey.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Cia(a)}};
U(Iy,Ey);Iy.\u0275fac=function(){var a;return function(b){return(a||(a=hd(Iy)))(b||Iy)}}();Iy.\u0275dir=w({type:Iy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ke("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[Je([Fnb]),ee]});
var Jy=function(){};Jy.\u0275fac=function(a){return new (a||Jy)};Jy.\u0275mod=xc({type:Jy});Jy.\u0275inj=ic({imports:[zy]});
var Ky=function(){};Ky.\u0275fac=function(a){return new (a||Ky)};Ky.\u0275mod=xc({type:Ky});Ky.\u0275inj=ic({imports:[Jy]});var Ly=function(){};Ly.\u0275fac=function(a){return new (a||Ly)};Ly.\u0275mod=xc({type:Ly});Ly.\u0275inj=ic({imports:[Jy]});
var Pg,fja="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 Qg;
var Tg,Sg;
var kja;
var Gnb;try{Gnb="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){Gnb=!1}
var My=function(a){this.EDGE=(this.isBrowser=(this._platformId=a)?"browser"===this._platformId:"object"===typeof document&&!!document)&&/(edge)/i.test(navigator.userAgent);this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);this.BLINK=this.isBrowser&&!(!window.chrome&&!Gnb)&&"undefined"!==typeof CSS&&!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};My.\u0275fac=function(a){return new (a||My)(t(hw))};My.\u0275prov=hc({token:My,factory:My.\u0275fac,providedIn:"root"});
var Ny=function(a){this._platform=a};Ny.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};Ny.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var Hnb=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(h){c=null}if(c&&(-1===nja(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=nja(b);if(b.hasAttribute("contenteditable"))a=-1!==d;else{var e;if(!(e="iframe"===c||"object"===c)&&(e=a._platform.WEBKIT&&a._platform.IOS)){e=b.nodeName.toLowerCase();var f="input"===e&&b.type;e=!("text"===f||"password"===f||"select"===e||"textarea"===e)}a=e?!1:"audio"===
c?b.hasAttribute("controls")?-1!==d:!1:"video"===c?-1===d?!1:null!==d?!0:a._platform.FIREFOX||b.hasAttribute("controls"):0<=b.tabIndex}return a};Ny.prototype.isFocusable=function(a){if("input"==a.nodeName.toLowerCase()&&"hidden"==a.type)var b=!1;else b=a.nodeName.toLowerCase(),b="input"===b||"select"===b||"button"===b||"textarea"===b||"a"==a.nodeName.toLowerCase()&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||mja(a);return b&&!this.isDisabled(a)&&this.isVisible(a)};
Ny.\u0275fac=function(a){return new (a||Ny)(t(My))};Ny.\u0275prov=hc({token:Ny,factory:Ny.\u0275fac,providedIn:"root"});
var Qy=function(a,b,c,d,e){var f=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._hasAttached=!1;this.startAnchorListener=function(){return Inb(f)};this.endAnchorListener=function(){return Oy(f)};this._enabled=!0;(void 0===e?0:e)||Py(this)};
Qy.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 Py=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))},Ry=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(Jnb(a))})})};
Qy.prototype._getRegionBoundary=function(a){var b=this._element.querySelectorAll("[cdk-focus-region-"+a+"], [cdkFocusRegion"+(a+"], [cdk-focus-")+(a+"]"));return"start"==a?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)};
var Jnb=function(a){var b=a._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!a._checker.isFocusable(b))return a=a._getFirstTabbableElement(b),null==a||a.focus(void 0),!!a;b.focus(void 0);return!0}return Oy(a)},Oy=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},Inb=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=Qy.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&Hnb(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};g._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&Hnb(this._checker,a))return a;a=a.children;for(var b=a.length-1;0<=b;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
g._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};g._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var Knb=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Qy.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(Tf()).subscribe(a)};oi.Object.defineProperties(Qy.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 Sy=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
Sy.prototype.create=function(a,b){return new Qy(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};Sy.\u0275fac=function(a){return new (a||Sy)(t(Ny),t(mg),t(mi))};Sy.\u0275prov=hc({token:Sy,factory:Sy.\u0275fac,providedIn:"root"});var Ty=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=Ty.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){Py(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||Py(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=Vg();Ry(this.focusTrap)};oi.Object.defineProperties(Ty.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=Yg(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=Yg(a)}}});Ty.\u0275fac=function(a){return new (a||Ty)(C(sd),C(Sy),C(mi))};
Ty.\u0275dir=w({type:Ty,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Fc]});
/*

 SPDX-License-Identifier: Apache-2.0
*/
var Kja={};
var yja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
var Lnb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};
var Uy,Jja=function(){if(void 0===Uy){var a=null,b=da.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:cib,createScript:cib,createScriptURL:cib})}catch(c){da.console&&da.console.error(c.message)}Uy=a}else Uy=a}return Uy};
var jh=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Mnb&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Nnb};jh.prototype.implementsGoogStringTypedString=!0;jh.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var kh=function(a){return a instanceof jh&&a.constructor===jh&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Nnb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Go=function(a){return new jh(Mnb,a)},Nnb={},Mnb={};
var Vy=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===Onb?a:""};g=Vy.prototype;g.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""};g.implementsGoogStringTypedString=!0;g.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};g.implementsGoogI18nBidiDirectionalString=!0;g.getDirection=function(){return 1};
var yh=function(a){return Qja(a).toString()},Qja=function(a){if(a instanceof Vy&&a.constructor===Vy)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;Oa(a);return"type_error:TrustedResourceUrl"},Fo=function(a){return Pnb(kh(a))},Onb={},Pnb=function(a){var b=Jja();a=b?b.createScriptURL(a):a;return new Vy(a,Onb)};
var hh=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===Qnb?a:""};g=hh.prototype;g.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};g.implementsGoogStringTypedString=!0;g.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};g.implementsGoogI18nBidiDirectionalString=!0;g.getDirection=function(){return 1};
var ih=function(a){if(a instanceof hh&&a.constructor===hh)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;Oa(a);return"type_error:SafeUrl"},Rnb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Snb=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Rnb)?Wy(a):null},Tnb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ija=function(a){if(a instanceof hh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return Tnb.test(a)?Wy(a):Snb(a)},Lj=
function(a,b){if(a instanceof hh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=Snb(a)||lh,b.getTypedStringValue()==a))return b;Tnb.test(a)||(a="about:invalid#zClosurez");return Wy(a)},Qnb={},Wy=function(a){return new hh(a,Qnb)},lh=Wy("about:invalid#zClosurez");
var Unb={},Xy=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===Unb?a:"";this.implementsGoogStringTypedString=!0};Xy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};Xy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var Vnb=function(a){if(a instanceof Xy&&a.constructor===Xy)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;Oa(a);return"type_error:SafeStyle"},Wnb=new Xy("",Unb),Dja=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Cja=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Bja=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)",
"g"),Eja=/\/\*/;
var Xnb={},Yy=function(a,b){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=b===Xnb?a:"";this.implementsGoogStringTypedString=!0};Yy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};Yy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};
var Ynb={},sh=function(a,b,c){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=c===Ynb?a:"";this.dir_=b;this.implementsGoogStringTypedString=this.implementsGoogI18nBidiDirectionalString=!0};sh.prototype.getDirection=function(){return this.dir_};sh.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};sh.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var Zy=function(a){return th(a).toString()},th=function(a){if(a instanceof sh&&a.constructor===sh)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;Oa(a);return"type_error:SafeHtml"},Tn=function(a){if(a instanceof sh)return a;var b="object"==typeof a,c=null;b&&a.implementsGoogI18nBidiDirectionalString&&(c=a.getDirection());return nh(lib(b&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)),c)},$y=function(a){if(a instanceof sh)return a;a=Tn(a);var b=Zy(a).replace(/(\r\n|\r|\n)/g,
"<br>");return nh(b,a.getDirection())},Vn=function(a,b,c){var d=String(a);if(!Znb.test(d))throw Error("Za");if(d.toUpperCase()in $nb)throw Error("Za");a=String(a);d=c;c=null;var e="<"+a,f="";if(b)for(D in b)if(Object.prototype.hasOwnProperty.call(b,D)){if(!Znb.test(D))throw Error("Za");var h=b[D];if(null!=h){var k=D;var q=h;if(q instanceof jh)q=kh(q);else if("style"==k.toLowerCase()){h=void 0;if(!Ga(q))throw Error("Za");if(!(q instanceof Xy)){var u="";for(h in q)if(Object.prototype.hasOwnProperty.call(q,
h)){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("Ya`"+h);var y=q[h];null!=y&&(y=Array.isArray(y)?y.map(Hja).join(" "):Hja(y),u+=h+":"+y+";")}q=u?new Xy(u,Unb):Wnb}q=Vnb(q)}else{if(/^on/i.test(k))throw Error("Za");if(k.toLowerCase()in aob)if(q instanceof Vy)q=yh(q);else if(q instanceof hh)q=ih(q);else if("string"===typeof q)q=(Ija(q)||lh).getTypedStringValue();else throw Error("Za");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+lib(String(q))+'"';f+=" "+k}}var D=e+f;null==
d?d=[]:Array.isArray(d)||(d=[d]);!0===Lnb[a.toLowerCase()]?D+=">":(c=Wn(d),D+=">"+Zy(c)+"</"+a+">",c=c.getDirection());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);return nh(D,c)},bob=function(a){var b=Tn(xt),c=b.getDirection(),d=[],e=function(f){Array.isArray(f)?f.forEach(e):(f=Tn(f),d.push(Zy(f)),f=f.getDirection(),0==c?c=f:0!=f&&c!=f&&(c=null))};a.forEach(e);return nh(d.join(Zy(b)),c)},Wn=function(a){return bob(Array.prototype.slice.call(arguments))},nh=function(a,b){var c=Jja();a=c?
c.createHTML(a):a;return new sh(a,b,Ynb)},Znb=/^[a-zA-Z0-9-]+$/,aob={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},$nb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},xt=new sh(da.trustedTypes&&da.trustedTypes.emptyHTML||"",0,Ynb);
var xh=function(){},mh=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};U(mh,xh);mh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl.toString()};
var vh=function(){},qh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};U(qh,vh);qh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Tja=new qh("about:invalid#zTSz",Kja);
var cob="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
var Rja=function(a){this.isValid=a},Sja=[Ah("data"),Ah("http"),Ah("https"),Ah("mailto"),Ah("ftp"),new Rja(function(a){return/^[^:]*([/?#]|$)/.test(a)})];
var dob=function(){};U(dob,dnb);
var az=function(){};U(az,dob);var eob=function(a,b,c){a.addEventListener(b,c,!1);return function(){a.removeEventListener(b,c,!1)}};az.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};az.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};az.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var fnb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
az.prototype.getBaseHref=function(){var a=(fob=fob||document.querySelector("base"))?fob.getAttribute("href"):null;null==a?a=null:(bz=bz||document.createElement("a"),bz.setAttribute("href",a),a=bz.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var fob=null,bz;
new od("TRANSITION_ID");
var gob=function(){},ymb=function(a){yd.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw Error("cb");return b};yd.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};yd.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};yd.frameworkStabilizers||(yd.frameworkStabilizers=[]);yd.frameworkStabilizers.push(function(b){var c=yd.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||h;d--;
0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};gob.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a._applications.get(b)||null;if(null!=d)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 cz=function(){};cz.prototype.build=function(){return new XMLHttpRequest};cz.\u0275fac=function(a){return new (a||cz)};cz.\u0275prov=hc({token:cz,factory:cz.\u0275fac});
var dz=new od("EventManagerPlugins"),ez=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){return d.manager=c});this._plugins=a.slice().reverse()};ez.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};ez.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)};
ez.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins;for(var c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return this._eventNameToPlugin.set(a,d),d}throw Error("db`"+a);};ez.\u0275fac=function(a){return new (a||ez)(t(dz),t(mg))};ez.\u0275prov=hc({token:ez,factory:ez.\u0275fac});var hob=function(a){this._doc=a};
hob.prototype.addGlobalEventListener=function(a,b,c){a=fnb(this._doc,a);if(!a)throw Error("eb`"+a+"`"+b);return this.addEventListener(a,b,c)};
var fz=function(){this._stylesSet=new Set},iob=function(a,b){var c=new Set;b.forEach(function(d){a._stylesSet.has(d)||(a._stylesSet.add(d),c.add(d))});a.onStylesAdded(c)};fz.prototype.onStylesAdded=function(){};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275prov=hc({token:fz,factory:fz.\u0275fac});var gz=function(a){this._stylesSet=new Set;this._doc=a;this._hostNodes=new Map;this._hostNodes.set(a.head,[])};U(gz,fz);
gz.prototype._addStylesToHost=function(a,b,c){var d=this;a.forEach(function(e){var f=d._doc.createElement("style");f.textContent=e;c.push(b.appendChild(f))})};gz.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c,d){b._addStylesToHost(a,d,c)})};gz.prototype.ngOnDestroy=function(){this._hostNodes.forEach(function(a){return a.forEach(Uja)})};gz.\u0275fac=function(a){return new (a||gz)(t(mi))};gz.\u0275prov=hc({token:gz,factory:gz.\u0275fac});
var job={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/MathML/"},Vja=/%COMP%/g,iz=function(a,b,c){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.rendererByCompId=new Map;this.defaultRenderer=new hz(a)};
iz.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;switch(b.encapsulation){case 0:var c=this.rendererByCompId.get(b.id);c||(c=new kob(this.eventManager,this.sharedStylesHost,b,this.appId),this.rendererByCompId.set(b.id,c));hz.prototype.setAttribute.call(c,a,c.hostAttr,"");return c;case 1:case 3:return new lob(this.eventManager,this.sharedStylesHost,a,b);default:return this.rendererByCompId.has(b.id)||(a=Eh(b.id,b.styles,[]),iob(this.sharedStylesHost,a),this.rendererByCompId.set(b.id,
this.defaultRenderer)),this.defaultRenderer}};iz.prototype.begin=function(){};iz.prototype.end=function(){};iz.\u0275fac=function(a){return new (a||iz)(t(ez),t(gz),t(Olb))};iz.\u0275prov=hc({token:iz,factory:iz.\u0275fac});var hz=function(a){this.eventManager=a;this.data=Object.create(null);this.destroyNode=null};g=hz.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?document.createElementNS(job[b]||b,a):document.createElement(a)};g.createComment=function(a){return document.createComment(a)};
g.createText=function(a){return document.createTextNode(a)};g.appendChild=function(a,b){("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).appendChild(b)};g.insertBefore=function(a,b,c){a&&("TEMPLATE"===a.tagName&&void 0!==a.content?a.content:a).insertBefore(b,c)};g.removeChild=function(a,b){a&&a.removeChild(b)};g.selectRootElement=function(a,b){var c="string"===typeof a?document.querySelector(a):a;if(!c)throw Error("fb`"+a);b||(c.textContent="");return c};g.parentNode=function(a){return a.parentNode};
g.nextSibling=function(a){return a.nextSibling};g.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=job[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=job[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};g.addClass=function(a,b){a.classList.add(b)};g.removeClass=function(a,b){a.classList.remove(b)};g.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
g.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};g.setProperty=function(a,b,c){a[b]=c};g.setValue=function(a,b){a.nodeValue=b};g.listen=function(a,b,c){return"string"===typeof a?this.eventManager.addGlobalEventListener(a,b,Wja(c)):this.eventManager.addEventListener(a,b,Wja(c))};
var kob=function(a,b,c,d){hz.call(this,a);this.component=c;a=Eh(d+"-"+c.id,c.styles,[]);iob(b,a);this.contentAttr="_ngcontent-%COMP%".replace(Vja,d+"-"+c.id);this.hostAttr="_nghost-%COMP%".replace(Vja,d+"-"+c.id)};U(kob,hz);kob.prototype.createElement=function(a,b){a=hz.prototype.createElement.call(this,a,b);hz.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};
var lob=function(a,b,c,d){hz.call(this,a);this.sharedStylesHost=b;this.hostEl=c;this.shadowRoot=c.attachShadow({mode:"open"});a=this.sharedStylesHost;b=this.shadowRoot;c=[];a._addStylesToHost(a._stylesSet,b,c);a._hostNodes.set(b,c);d=Eh(d.id,d.styles,[]);for(a=0;a<d.length;a++)b=document.createElement("style"),b.textContent=d[a],this.shadowRoot.appendChild(b)};U(lob,hz);var jz=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=lob.prototype;
g.destroy=function(){var a=this.sharedStylesHost,b=this.shadowRoot,c=a._hostNodes.get(b);c&&c.forEach(Uja);a._hostNodes.delete(b)};g.appendChild=function(a,b){return hz.prototype.appendChild.call(this,jz(this,a),b)};g.insertBefore=function(a,b,c){return hz.prototype.insertBefore.call(this,jz(this,a),b,c)};g.removeChild=function(a,b){return hz.prototype.removeChild.call(this,jz(this,a),b)};g.parentNode=function(a){return jz(this,hz.prototype.parentNode.call(this,jz(this,a)))};
var kz=function(a){this._doc=a};U(kz,hob);kz.prototype.supports=function(){return!0};kz.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};kz.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};kz.\u0275fac=function(a){return new (a||kz)(t(mi))};kz.\u0275prov=hc({token:kz,factory:kz.\u0275fac});
var mob=["alt","control","meta","shift"],Yja={"\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"},Xja={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\u0090":"NumLock"},nob={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},
lz=function(a){this._doc=a};U(lz,hob);lz.prototype.supports=function(a){return null!=oob(a)};lz.prototype.addEventListener=function(a,b,c){var d=oob(b),e=pob(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return eob(a,d.domEventName,e)})};
var oob=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=qob(b.pop()),d="";mob.forEach(function(e){var f=b.indexOf(e);-1<f&&(b.splice(f,1),d+=e+".")});d+=c;if(0!=b.length||0===c.length)return null;a={domEventName:a};a.fullKey=d;return a},rob=function(a){var b="",c=Zja(a);c=c.toLowerCase();" "===c?c="space":"."===c&&(c="dot");mob.forEach(function(d){d!=c&&(0,nob[d])(a)&&(b+=d+".")});return b+=c},pob=function(a,b,c){return function(d){rob(d)===
a&&c.runGuarded(function(){return b(d)})}},qob=function(a){switch(a){case "esc":return"escape";default:return a}};lz.\u0275fac=function(a){return new (a||lz)(t(mi))};lz.\u0275prov=hc({token:lz,factory:lz.\u0275fac});
var Jmb=Nha(Xmb,"browser",[{provide:hw,useValue:"browser"},{provide:Iha,useValue:function(){var a=new az;Dh||(Dh=a)},multi:!0},{provide:mi,useFactory:function(){return yca=document},deps:[]}]),sob=new od(""),tob=[{provide:Zw,useClass:gob,deps:[]},{provide:wmb,useClass:$w,deps:[mg,ax,Zw]},{provide:$w,useClass:$w,deps:[mg,ax,Zw]}],uob=[{provide:Oha,useValue:"root"},{provide:Zd,useFactory:function(){return new Zd},deps:[]},{provide:dz,useClass:kz,multi:!0,deps:[mi,mg,hw]},{provide:dz,useClass:lz,multi:!0,
deps:[mi]},{provide:iz,useClass:iz,deps:[ez,gz,Olb]},{provide:Yv,useExisting:iz},{provide:fz,useExisting:gz},{provide:gz,useClass:gz,deps:[mi]},{provide:ez,useClass:ez,deps:[dz,mg]},{provide:knb,useClass:cz,deps:[]},[]],mz=function(){};[].concat(v(uob),v(tob));mz.\u0275fac=function(a){return new (a||mz)(t(sob,12))};mz.\u0275mod=xc({type:mz});mz.\u0275inj=ic({providers:[].concat(v(uob),v(tob)),imports:[ay,yx]});
var nz=function(a){this._doc=a};nz.prototype.getTitle=function(){return this._doc.title};nz.prototype.setTitle=function(a){this._doc.title=a||""};nz.\u0275fac=function(a){return new (a||nz)(t(mi))};nz.\u0275prov=hc({token:nz,factory:function(a){var b=null;a?b=new a:b=new nz(t(mi));return b},providedIn:"root"});
new od("HammerGestureConfig");new od("HammerLoader");new Rv;new Rv;
var oz=function(){};oz.\u0275fac=function(a){return new (a||oz)};oz.\u0275prov=hc({token:oz,factory:function(a){return a?new (a||oz):t(pz)},providedIn:"root"});var pz=function(a){this._doc=a};U(pz,oz);
pz.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return Jd(b,"HTML")?Id(b):bea(this._doc,String(b)).toString();case 2:return Jd(b,"Style")?Id(b):b;case 3:if(Jd(b,"Script"))return Id(b);throw Error("gb");case 4:return b instanceof Hd&&b.getTypeName(),Jd(b,"URL")?Id(b):Kd(String(b));case 5:if(Jd(b,"ResourceURL"))return Id(b);throw Error("hb");default:throw Error("ib`"+a);}};pz.prototype.bypassSecurityTrustHtml=function(a){return new vlb(a)};
pz.prototype.bypassSecurityTrustUrl=function(a){return new wlb(a)};pz.prototype.bypassSecurityTrustResourceUrl=function(a){return new xlb(a)};pz.\u0275fac=function(a){return new (a||pz)(t(mi))};pz.\u0275prov=hc({token:pz,factory:function(a){a?a=new a:(a=t(Uv),a=new pz(a.get(mi)));return a},providedIn:"root"});
var qz=function(a){this.decorated=new pz(a)};U(qz,oz);qz.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof xh||b instanceof vh||b instanceof sh){if(vob(b,a))return this.decorated.sanitize(a,wob(this,b));throw Error("jb`"+Hlb[a]+"`"+b);}return this.decorated.sanitize(a,b)};qz.prototype.bypassSecurityTrustHtml=function(){throw Error("kb");};qz.prototype.bypassSecurityTrustUrl=function(){throw Error("kb");};
qz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("kb");};var wob=function(a,b){if(null!=b){if(b instanceof sh)return a.decorated.bypassSecurityTrustHtml(Zy(b));if(b instanceof vh)return a.decorated.bypassSecurityTrustUrl(rh(b));if(b instanceof xh)return a.decorated.bypassSecurityTrustResourceUrl(Nja(b))}return null},vob=function(a,b){switch(b){case 1:return a instanceof sh;case 4:return a instanceof vh||a instanceof xh;case 5:return a instanceof xh;case 3:return!1;default:return!1}};
qz.\u0275fac=function(a){return new (a||qz)(t(mi))};qz.\u0275prov=hc({token:qz,factory:qz.\u0275fac});
var rz=function(){};rz.\u0275fac=function(a){return new (a||rz)};rz.\u0275mod=xc({type:rz});rz.\u0275inj=ic({providers:[{provide:aw,useExisting:oz},{provide:oz,useClass:qz}],imports:[mz]});
var Fh=new Set(["true","1"]),Gh=new Set(["false","0"]);
var xob=function(){},yob=function(){};
/*

 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
 @param {function(): ?} cb
 @return {void}
*/
var Oh=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(void 0===a?0:a)+(void 0===b?0:b)};g=Oh.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._onStartFns.push(a)};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.init=function(){};g.play=function(){this.hasStarted()||(this._onStart(),zob(this));this._started=!0};var zob=function(a){Promise.resolve(null).then(function(){return a._onFinish()})};g=Oh.prototype;g._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};g.pause=function(){};g.restart=function(){};g.finish=function(){this._onFinish()};
g.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this._started=!1};g.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};g.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
var dka=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;0==f?Promise.resolve(null).then(function(){return b._onFinish()}):this.players.forEach(function(h){h.onDone(function(){++c==f&&b._onFinish()});h.onDestroy(function(){++d==f&&b._onDestroy()});h.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(h,
k){return Math.max(h,k.totalTime)},0)};g=dka.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this.players.forEach(function(a){return a.init()})};g.onStart=function(a){this._onStartFns.push(a)};g._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};g.pause=function(){this.players.forEach(function(a){return a.pause()})};g.restart=function(){this.players.forEach(function(a){return a.restart()})};g.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};g.destroy=function(){this._onDestroy()};
g._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};g.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
g.getPosition=function(){var a=this.players.reduce(function(b,c){return null===b||c.totalTime>b.totalTime?c:b},null);return null!=a?a.getPosition():0};g.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};g.triggerCallback=function(a){a="start"==a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
var sz=function(){return!1},Aob=function(){return[]},kka=null;if(cka()||"undefined"!==typeof Element)"undefined"!==typeof window&&"undefined"!==typeof window.document?(kka=document.documentElement,sz=function(a,b){for(;b;){if(b===a)return!0;b=lka(b)}return!1}):sz=function(a,b){return a.contains(b)},Aob=function(a,b,c){return c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[]};
var ska=RegExp("{{\\s*(.+?)\\s*}}","g"),tka=/-+([a-z0-9])/g;
var vka=RegExp("s*:selfs*,?","g"),Bob=function(a){this._driver=a};g=Bob.prototype;g.build=function(a,b){b=new Cob(b);this._resetContextStyleTimingState(b);return ai(this,Yh(a),b)};g._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
g.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],h=[];"@"==a.name.charAt(0)&&b.errors.push(new mc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(0==k.type){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(u){k.name=u;f.push(c.visitState(k,b))});k.name=q}else 1==k.type?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new mc(3007,!1))});return{type:7,name:a.name,states:f,transitions:h,queryCount:d,
depCount:e,options:null}};g.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(h){h instanceof Map&&h.forEach(function(k){qka(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&($h(e.values()),b.errors.push(new mc(3008,!1)))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
g.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=ai(this,Yh(a.animation),b);return{type:1,matchers:bka(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:bi(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return ai(c,d,b)}),options:bi(a.options)}};
g.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(h){b.currentTime=d;h=ai(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:bi(a.options)}};
g.visitAnimate=function(a,b){var c=yka(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Jh({});if(5==d.type)a=this.visitKeyframes(d,b);else{d=a.styles;a=!1;d||(a=!0,d={},c.easing&&(d.easing=c.easing),d=Jh(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};g.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
g._makeStyleAst=function(a,b){var c=[],d=Array.isArray(a.styles)?a.styles:[a.styles];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,"string"===typeof e?"*"===e?c.push(e):b.errors.push(new mc(3002,!1)):c.push(nka(e));var f=!1,h=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(h=k.get("easing"),k.delete("easing")),!f)){k=r(k.values());for(var q=k.next();!q.done;q=k.next())if(0<=q.value.toString().indexOf("{{")){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&0<e&&(e-=c.duration+c.delay);a.styles.forEach(function(f){"string"!==typeof f&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),u=q.get(k),y=!0;u&&(e!=d&&e>=u.startTime&&d<=u.endTime&&(b.errors.push(new mc(3010,!1)),y=!1),e=u.startTime);y&&q.set(k,{startTime:e,endTime:d});b.options&&rka(h,b.options,b.errors)})})};
g.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new mc(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,u=a.steps.map(function(S){S=c._makeStyleAst(S,b);var X=null!=S.offset?S.offset:xka(S.styles),ka=0;null!=X&&(e++,ka=S.offset=X);k=k||0>ka||1<ka;h=h||ka<q;q=ka;f.push(ka);return S});k&&b.errors.push(new mc(3012,!1));h&&b.errors.push(new mc(3200,!1));a=a.steps.length;var y=0;0<e&&e<a?b.errors.push(new mc(3202,!1)):0==e&&(y=1/(a-1));
var D=a-1,I=b.currentTime,N=b.currentAnimateTimings,L=N.duration;u.forEach(function(S,X){X=0<y?X==D?1:y*X:f[X];var ka=X*L;b.currentTime=I+N.delay+ka;N.duration=ka;c._validateStyleAst(S,b);S.offset=X;d.styles.push(S)});return d};g.visitReference=function(a,b){return{type:8,animation:ai(this,Yh(a.animation),b),options:bi(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:bi(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:bi(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=r(wka(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Rh(b.collectedStyles,b.currentQuerySelector,new Map);var h=ai(this,Yh(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:h,originalSelector:a.selector,options:bi(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new mc(3013,!1));var c="full"===a.timings?{duration:0,delay:0,easing:"full"}:Th(a.timings,b.errors,!0);return{type:12,animation:ai(this,Yh(a.animation),b),timings:c,options:null}};var Cob=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};
var tz=function(){this._map=new Map};tz.prototype.get=function(a){return this._map.get(a)||[]};tz.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,v(b))};tz.prototype.has=function(a){return this._map.has(a)};tz.prototype.clear=function(){this._map.clear()};
var Dob=RegExp(":enter","g"),Eob=RegExp(":leave","g"),Aka=function(){};g=Aka.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,u){u=void 0===u?[]:u;q=q||new tz;a=new uz(a,b,q,d,e,u,[]);a.options=k;d=k.delay?Sh(k.delay):0;a.currentTimeline.delayNextStep(d);vz(a.currentTimeline,[f],null,a.errors,k);ai(this,c,a);c=a.timelines.filter(function(D){return D.containsAnimation()});if(c.length&&h.size){for(f=c.length-1;0<=f;f--)if(e=c[f],e.element===b){var y=e;break}y&&y._currentEmptyStepKeyframe===y._currentKeyframe&&vz(y,[h],null,a.errors,k)}return c.length?c.map(function(D){return D.buildKeyframes()}):
[zka(b,[],[],[],0,d,"",!1)]};g.visitTrigger=function(){};g.visitState=function(){};g.visitTransition=function(){};g.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=wz(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&xz(b,c)}b.previousNode=a};g.visitAnimateRef=function(a,b){var c=wz(b,a.options);xz(c);this.visitReference(a.animation,c);xz(b,c.currentTimeline.currentTime);b.previousNode=a};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=null!=c.duration?Sh(c.duration):null,f=null!=c.delay?Sh(c.delay):null;0!==e&&a.forEach(function(h){var k={duration:null!=e?e:h.duration,delay:b.currentTimeline.currentTime+(null!=f?f:0)+h.delay,easing:""};h=new yz(b._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,k,h.stretchStartingKeyframe);b.timelines.push(h);d=Math.max(d,k.duration+k.delay)});return d};
g.visitReference=function(a,b){Fob(b,a.options,!0);ai(this,a.animation,b);b.previousNode=a};g.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=wz(b,f),xz(e),null!=f.delay&&(6==e.previousNode.type&&(zz(e.currentTimeline),e.previousNode=Az),e.delayNextStep(Sh(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return ai(c,h,e)}),Bz(e.currentTimeline),e.subContextCount>d&&xz(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Sh(a.options.delay):0;a.steps.forEach(function(h){var k=wz(b,a.options);f&&k.delayNextStep(f);ai(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return Gob(b.currentTimeline,h)});xz(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?Zh(a,b.params,b.errors):a,Th(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
g.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(Cz(b.currentTimeline,b.currentTimeline.duration+c.delay),zz(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(Cz(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),Bz(d));b.currentAnimateTimings=null;b.previousNode=a};
g.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&0<c._currentKeyframe.size&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=r(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else vz(c,a.styles,d,b.errors,b.options);b.previousNode=
a};g.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=wz(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){Cz(f,(h.offset||0)*e);vz(f,h.styles,h.easing,b.errors,b.options);Bz(f)});Gob(b.currentTimeline,f);xz(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Sh(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(zz(b.currentTimeline),b.previousNode=Az);var h=d;d=Hob(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,u){b.currentQueryIndex=u;u=wz(b,a.options,q);f&&u.delayNextStep(f);q===b.element&&(k=u.currentTimeline);ai(c,a.animation,u);Bz(u.currentTimeline);
h=Math.max(h,u.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;xz(b,h);k&&(Gob(b.currentTimeline,k),zz(b.currentTimeline));b.previousNode=a};
g.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),h=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(0>e.duration?"reverse":e.easing){case "reverse":f=h-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;ai(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var Az={},uz=function(a,b,c,d,e,f,h,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=h;this.currentAnimateTimings=this.parentContext=null;this.previousNode=Az;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new Dz(this._driver,b,0);h.push(this.currentTimeline)},Fob=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Sh(b.duration));null!=b.delay&&(d.delay=Sh(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(h){c&&f.hasOwnProperty(h)||(f[h]=Zh(e[h],f,a.errors))})}}};uz.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 wz=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new uz(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();Fob(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},xz=function(a,b){a.previousNode=Az;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};uz.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var Hob=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(Dob,"."+a._enterClassName),b=b.replace(Eob,"."+a._leaveClassName),a=a._driver.query(a.element,b,1!=c),0!==c&&(a=0>c?a.slice(a.length+c,a.length):a.slice(0,c)),h.push.apply(h,v(a)));e||0!=h.length||f.push(new mc(3014,!1));return h};
oi.Object.defineProperties(uz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var Dz=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;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()};Dz.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};Dz.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(Cz(this,this.currentTime+a),b&&zz(this)):this.startTime+=a};
Dz.prototype.fork=function(a,b){Bz(this);return new Dz(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};Dz.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 Cz=function(a,b){Bz(a);a.duration=b;a._loadKeyframe()};
Dz.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
var vz=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=Dka(b,a._globalTimelineStyles);b=r(b);for(e=b.next();!e.done;e=b.next()){var f=r(e.value);e=f.next().value;f=f.next().value;f=Zh(f,c,d);a._pendingStyles.set(e,f);a._localTimelineStyles.has(e)||a._backFill.set(e,a._globalTimelineStyles.get(e)||"*");a._updateStyle(e,f)}},Bz=function(a){0!=a._pendingStyles.size&&(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)}))},zz=function(a){for(var b=r(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},Gob=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)})};
Dz.prototype.buildKeyframes=function(){var a=this;Bz(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(u,y){u=Vh(u,new Map,a._backFill);u.forEach(function(D,I){"!"===D?b.add(I):"*"===D&&c.add(I)});d||u.set("offset",y/a.duration);e.push(u)});var f=b.size?$h(b.values()):[],h=c.size?$h(c.values()):[];if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return zka(this.element,e,f,h,this.duration,this.startTime,this.easing,
!1)};oi.Object.defineProperties(Dz.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 yz=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;Dz.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=h;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
U(yz,Dz);yz.prototype.containsAnimation=function(){return 1<this.keyframes.length};
yz.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,h=Vh(a[0]);h.set("offset",0);b.push(h);h=Vh(a[0]);h.set("offset",Cka(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Vh(a[h]),q=k.get("offset");k.set("offset",Cka((c+q*d)/e));b.push(k)}d=e;c=0;e="";a=b}return zka(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};
var Iob=function(){};
var Job=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(" ")),Kob=function(){};U(Kob,Iob);
var eka=function(a,b,c){var d="",e=b.toString().trim();Job.has(a)&&0!==b&&"0"!==b&&("number"===typeof b?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&0==a[1].length&&c.push(new mc(3005,!1)));return e+d};
var Ez=function(){};g=Ez.prototype;g.containsElement=function(a,b){return sz(a,b)};g.getParentElement=function(a){return lka(a)};g.query=function(a,b,c){return Aob(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new Oh(c,d)};Ez.\u0275fac=function(a){return new (a||Ez)};Ez.\u0275prov=hc({token:Ez,factory:Ez.\u0275fac});var Lob=function(){};
var Mob={},ci=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};ci.prototype.match=function(a,b,c,d){return Fka(this.ast.matchers,a,b,c,d)};ci.prototype.buildStyles=function(a,b,c){var d=this._stateStyles.get("*");void 0!==a&&(d=this._stateStyles.get(null==a?void 0:a.toString())||d);return d?d.buildStyles(b,c):new Map};
ci.prototype.build=function(a,b,c,d,e,f,h,k,q,u){var y=[],D=this.ast.options&&this.ast.options.params||Mob;h=this.buildStyles(c,h&&h.params||Mob,y);var I=k&&k.params||Mob;k=this.buildStyles(d,I,y);var N=new Set,L=new Map,S=new Map,X="void"===d,ka;D={params:Gka(I,D),delay:null==(ka=this.ast.options)?void 0:ka.delay};a=u?[]:Bka(a,b,this.ast.animation,e,f,h,k,D,q,y);var ha=0;a.forEach(function(ra){ha=Math.max(ra.duration+ra.delay,ha)});if(y.length)return Eka(b,this._triggerName,c,d,X,h,k,[],[],L,S,ha,
y);a.forEach(function(ra){var Da=ra.element,Ja=Rh(L,Da,new Set);ra.preStyleProps.forEach(function(La){return Ja.add(La)});var Ba=Rh(S,Da,new Set);ra.postStyleProps.forEach(function(La){return Ba.add(La)});Da!==b&&N.add(Da)});y=$h(N.values());return Eka(b,this._triggerName,c,d,X,h,k,a,y,L,S,ha)};var Nob=function(a,b){this.styles=a;this.defaultParams=b};
Nob.prototype.buildStyles=function(a,b){var c=new Map,d=Uh(this.defaultParams);Object.keys(a).forEach(function(e){var f=a[e];null!==f&&(d[e]=f)});this.styles.styles.forEach(function(e){"string"!==typeof e&&e.forEach(function(f,h){f&&(f=Zh(f,d,b));h=Qh(h);f=eka(h,f,b);c.set(h,f)})});return c};
var Oob=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 Nob(e.style,e.options&&e.options.params||{}))});Ika(this.states,"true","1");Ika(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new ci(a,e,d.states))});this.fallbackTransition=Hka(a,this.states)},Pob=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};
var Qob=new tz,Rob=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=Rob.prototype;g.register=function(a,b){var c=[];b=(new Bob(this._driver)).build(b,c,[]);if(c.length)throw new mc(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=fka(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
g.create=function(a,b,c){var d=this;c=void 0===c?{}:c;var e=[],f=this._animations.get(a),h=new Map;f?(b=Bka(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,Qob,e),b.forEach(function(k){var q=Rh(h,k.element,new Map);k.postStyleProps.forEach(function(u){return q.set(u,null)})})):(e.push(new mc(3300,!1)),b=[]);if(e.length)throw new mc(3504,!1);h.forEach(function(k,q){k.forEach(function(u,y){k.set(y,d._driver.computeStyle(q,y,"*"))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,
new Map,q)});e=Ph(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};g.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);0<=a&&this.players.splice(a,1)};g._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new mc(3301,!1);return a};g.listen=function(a,b,c,d){b=ika(b,"","","");hka(this._getPlayer(a),c,b,d);return function(){}};
g.command=function(a,b,c,d){if("register"==c)this.register(a,d[0]);else if("create"==c)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 Sob=[],Tob={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Kka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fz=function(a,b){this.namespaceId=void 0===b?"":b;var c=(b=a&&a.hasOwnProperty("value"))?a.value:a;this.value=null!=c?c:null;b?(a=Uh(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},Uob=function(a,b){var c=b.params;if(c){var d=a.options.params;Object.keys(c).forEach(function(e){null==
d[e]&&(d[e]=c[e])})}};oi.Object.defineProperties(Fz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var Vob=new Fz("void"),Gz=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;ei(b,this._hostClassName)};g=Gz.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new mc(3302,!1);if(null==c||0==c.length)throw new mc(3303,!1);if("start"!=c&&"done"!=c)throw new mc(3400,!1);var f=Rh(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=Rh(this._engine.statesByElement,a,new Map);k.has(b)||(ei(a,"ng-trigger"),ei(a,"ng-trigger-"+b),k.set(b,Vob));return function(){Hz(e._engine,function(){var q=f.indexOf(h);0<=q&&f.splice(q,1);e._triggers.has(b)||k.delete(b)})}};
g.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};g._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new mc(3401,!1);return a};
g.trigger=function(a,b,c,d){var e=this;d=void 0===d?!0:d;var f=this._getTrigger(b),h=new Iz(this.id,b,a),k=this._engine.statesByElement.get(a);k||(ei(a,"ng-trigger"),ei(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),u=new Fz(c,this.id);c&&c.hasOwnProperty("value")||!q||Uob(u,q.options);k.set(b,u);q||(q=Vob);if("void"!==u.value&&q.value===u.value){if(!Qka(q.params,u.params)){d=[];var y=f.fallbackTransition.buildStyles(q.value,q.params,d),D=f.fallbackTransition.buildStyles(u.value,
u.params,d);d.length?this._engine.reportError(d):Hz(this._engine,function(){Xh(a,y);Wh(a,D)})}}else{c=Rh(this._engine.playersByElement,a,[]);c.forEach(function(N){N.namespaceId==e.id&&N.triggerName==b&&N.queued&&N.destroy()});k=Pob(f,q.value,u.value,a,u.params);var I=!1;if(!k){if(!d)return;k=f.fallbackTransition;I=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:u,player:h,isFallbackTransition:I});I||(ei(a,"ng-animate-queued"),h.onStart(function(){fi(a,
"ng-animate-queued")}));h.onDone(function(){var N=e.players.indexOf(h);0<=N&&e.players.splice(N,1);if(N=e._engine.playersByElement.get(a)){var L=N.indexOf(h);0<=L&&N.splice(L,1)}});this.players.push(h);c.push(h);return h}};g.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var Jz=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))};
Gz.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=Wob(c._engine,e);f.size?f.forEach(function(h){return Xob(h,e,b,!1,!0)}):Jz(c,e)}});Yob(this._engine,function(){return d.forEach(function(e){return Jz(c,e)})})};
var Xob=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,u){h.set(u,q.value);a._triggers.has(u)&&(q=a.trigger(b,u,"void",e))&&k.push(q)});if(k.length){Zob(a._engine,a.id,b,!0,c,h);if(d)Ph(k).onDone(function(){return gi(a._engine,b)});return!0}}return!1},$ob=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var h=a._triggers.get(f).fallbackTransition,
k=d.get(f)||Vob,q=new Fz("void"),u=new Iz(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:u,isFallbackTransition:!0})}})}};
Gz.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!Xob(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}}$ob(this,a);e?Zob(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==Tob||(Hz(d,function(){return Jz(c,a)}),apb(d,a),d._onRemovalComplete(a,b)))}};
Gz.prototype.insertNode=function(a){ei(a,this._hostClassName)};
var bpb=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,h=a._elementListeners.get(f);h&&h.forEach(function(k){if(k.name==d.triggerName){var q=ika(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;hka(d.player,k.phase,q,k.callback)}});e.markedForDestroy?Hz(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,h=e.transition.ast.depCount;return 0==f||0==h?f-h:a._engine.driver.containsElement(d.element,
e.element)?1:-1})};Gz.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var Kz=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
g=Kz.prototype;g._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};g._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(0<=c.length-1){for(var e=!1,f=this.driver.getParentElement(b);f;){var h=d.get(f);if(h){e=c.indexOf(h);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
g.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new Gz(a,b,this),this.bodyNode&&this.driver.containsElement(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};g.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
g.destroy=function(a,b){var c=this;if(a){var d=this._fetchNamespace(a);Hz(this,function(){c.namespacesByHostElement.delete(d.hostElement);delete c._namespaceLookup[a];var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1)});Yob(this,function(){return d.destroy(b)})}};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var Wob=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=r(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};Kz.prototype.trigger=function(a,b,c,d){return di(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
Kz.prototype.insertNode=function(a,b,c,d){if(di(b)){var e=b.__ng_removed;e&&e.setForRemoval&&(e.setForRemoval=!1,e.setForMove=!0,e=this.collectedLeaveElements.indexOf(b),0<=e&&this.collectedLeaveElements.splice(e,1));a&&(a=this._fetchNamespace(a))&&a.insertNode(b,c);d&&this.collectedEnterElements.push(b)}};var cpb=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),ei(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),fi(b,"ng-animate-disabled"))};
Kz.prototype.removeNode=function(a,b,c,d){if(di(b)){var e=a?this._fetchNamespace(a):null;e?e.removeNode(b,d):Zob(this,a,b,!1,d);c&&(c=this.namespacesByHostElement.get(b))&&c.id!==a&&c.removeNode(b,d)}else this._onRemovalComplete(b,d)};var Zob=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};
Kz.prototype.listen=function(a,b,c,d,e){return di(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};Kz.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 apb=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return dpb(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return epb(a,d)}))},dpb=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},epb=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},gi=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
Tob;if(c.namespaceId){apb(a,b);var d=a._fetchNamespace(c.namespaceId);d&&Jz(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&cpb(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){cpb(a,f,!1)})};
Kz.prototype.flush=function(a){var b=this;a=void 0===a?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,h){return b._balanceNamespaceList(f,h)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)ei(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++)gi(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)Ph(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
Kz.prototype.reportError=function(){throw new mc(3402,!1);};
Kz.prototype._flushAnimations=function(a,b){var c=this,d=new tz,e=[],f=new Map,h=[],k=new Map,q=new Map,u=new Map,y=new Set;this.disabledNodes.forEach(function(Sa){y.add(Sa);Sa=c.driver.query(Sa,".ng-animate-queued",!0);for(var vb=0;vb<Sa.length;vb++)y.add(Sa[vb])});var D=this.bodyNode,I=Array.from(this.statesByElement.keys()),N=Mka(I,this.collectedEnterElements),L=new Map,S=0;N.forEach(function(Sa,vb){var eb="ng-enter"+S++;L.set(vb,eb);Sa.forEach(function(zb){return ei(zb,eb)})});for(var X=[],ka=
new Set,ha=new Set,ra=0;ra<this.collectedLeaveElements.length;ra++){var Da=this.collectedLeaveElements[ra],Ja=Da.__ng_removed;Ja&&Ja.setForRemoval&&(X.push(Da),ka.add(Da),Ja.hasAnimation?this.driver.query(Da,".ng-star-inserted",!0).forEach(function(Sa){return ka.add(Sa)}):ha.add(Da))}var Ba=new Map,La=Mka(I,Array.from(ka));La.forEach(function(Sa,vb){var eb="ng-leave"+S++;Ba.set(vb,eb);Sa.forEach(function(zb){return ei(zb,eb)})});a.push(function(){N.forEach(function(Sa,vb){var eb=L.get(vb);Sa.forEach(function(zb){return fi(zb,
eb)})});La.forEach(function(Sa,vb){var eb=Ba.get(vb);Sa.forEach(function(zb){return fi(zb,eb)})});X.forEach(function(Sa){gi(c,Sa)})});var hb=[],fb=[];for(a=this._namespaceList.length-1;0<=a;a--)bpb(this._namespaceList[a],b).forEach(function(Sa){var vb=Sa.player,eb=Sa.element;hb.push(vb);if(c.collectedEnterElements.length){var zb=eb.__ng_removed;if(zb&&zb.setForMove){if(zb.previousTriggersValues&&zb.previousTriggersValues.has(Sa.triggerName)){zb=zb.previousTriggersValues.get(Sa.triggerName);var Ib=
c.statesByElement.get(Sa.element);if(Ib&&Ib.has(Sa.triggerName)){var ec=Ib.get(Sa.triggerName);ec.value=zb;Ib.set(Sa.triggerName,ec)}}vb.destroy();return}}zb=!D||!c.driver.containsElement(D,eb);Ib=Ba.get(eb);ec=L.get(eb);var Ac=c._buildInstruction(Sa,d,ec,Ib,zb);if(Ac.errors&&Ac.errors.length)fb.push(Ac);else if(zb)vb.onStart(function(){return Xh(eb,Ac.fromStyles)}),vb.onDestroy(function(){return Wh(eb,Ac.toStyles)}),e.push(vb);else if(Sa.isFallbackTransition)vb.onStart(function(){return Xh(eb,Ac.fromStyles)}),
vb.onDestroy(function(){return Wh(eb,Ac.toStyles)}),e.push(vb);else{var se=[];Ac.timelines.forEach(function(jd){jd.stretchStartingKeyframe=!0;c.disabledNodes.has(jd.element)||se.push(jd)});Ac.timelines=se;d.append(eb,Ac.timelines);h.push({instruction:Ac,player:vb,element:eb});Ac.queriedElements.forEach(function(jd){return Rh(k,jd,[]).push(vb)});Ac.preStyleProps.forEach(function(jd,Ed){if(jd.size){var eh=q.get(Ed);eh||q.set(Ed,eh=new Set);jd.forEach(function(GK,Yl){return eh.add(Yl)})}});Ac.postStyleProps.forEach(function(jd,
Ed){var eh=u.get(Ed);eh||u.set(Ed,eh=new Set);jd.forEach(function(GK,Yl){return eh.add(Yl)})})}});if(fb.length){var Tb=[];fb.forEach(function(){Tb.push(new mc(3505,!1))});hb.forEach(function(Sa){return Sa.destroy()});this.reportError(Tb)}var va=new Map,Ca=new Map;h.forEach(function(Sa){var vb=Sa.element;d.has(vb)&&(Ca.set(vb,vb),c._beforeAnimationBuild(Sa.player.namespaceId,Sa.instruction,va))});e.forEach(function(Sa){var vb=Sa.element;c._getPreviousPlayers(vb,!1,Sa.namespaceId,Sa.triggerName,null).forEach(function(eb){Rh(va,
vb,[]).push(eb);eb.destroy()})});var Ia=X.filter(function(Sa){return Rka(Sa,q,u)}),Xa=new Map;Lka(Xa,this.driver,ha,u,"*").forEach(function(Sa){Rka(Sa,q,u)&&Ia.push(Sa)});var $a=new Map;N.forEach(function(Sa){Lka($a,c.driver,new Set(Sa),q,"!")});Ia.forEach(function(Sa){var vb=Xa.get(Sa),eb=$a.get(Sa),zb,Ib;Xa.set(Sa,new Map([].concat(v(Array.from(null!=(zb=null==vb?void 0:vb.entries())?zb:[])),v(Array.from(null!=(Ib=null==eb?void 0:eb.entries())?Ib:[])))))});var jc=[],Va=[],Ya={};h.forEach(function(Sa){var vb=
Sa.element,eb=Sa.player,zb=Sa.instruction;if(d.has(vb))if(y.has(vb))eb.onDestroy(function(){return Wh(vb,zb.toStyles)}),eb.disabled=!0,eb.totalTime=zb.totalTime,e.push(eb);else{var Ib=Ya;if(1<Ca.size){Sa=vb;for(var ec=[];Sa=Sa.parentNode;){var Ac=Ca.get(Sa);if(Ac){Ib=Ac;break}ec.push(Sa)}ec.forEach(function(se){return Ca.set(se,Ib)})}Sa=c._buildAnimation(eb.namespaceId,zb,va,f,$a,Xa);fpb(eb,Sa);Ib===Ya?jc.push(eb):((Sa=c.playersByElement.get(Ib))&&Sa.length&&(eb.parentPlayer=Ph(Sa)),e.push(eb))}else Xh(vb,
zb.fromStyles),eb.onDestroy(function(){return Wh(vb,zb.toStyles)}),Va.push(eb),y.has(vb)&&e.push(eb)});Va.forEach(function(Sa){var vb=f.get(Sa.element);vb&&vb.length&&(vb=Ph(vb),fpb(Sa,vb))});e.forEach(function(Sa){Sa.parentPlayer?gpb(Sa,Sa.parentPlayer):Sa.destroy()});for(b=0;b<X.length;b++)if(ha=X[b],a=ha.__ng_removed,fi(ha,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((I=k.get(ha))&&I.length&&a.push.apply(a,v(I)),I=this.driver.query(ha,".ng-animating",!0),ra=0;ra<I.length;ra++)(Da=k.get(I[ra]))&&
Da.length&&a.push.apply(a,v(Da));a=a.filter(function(Sa){return!Sa.destroyed});a.length?Nka(this,ha,a):gi(this,ha)}X.length=0;jc.forEach(function(Sa){c.players.push(Sa);Sa.onDone(function(){Sa.destroy();var vb=c.players.indexOf(Sa);c.players.splice(vb,1)});Sa.play()});return jc};var Hz=function(a,b){a._flushFns.push(b)},Yob=function(a,b){a._whenQuietFns.push(b)};
Kz.prototype._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var h=!e||"void"==e;a.forEach(function(k){k.queued||(h||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
Kz.prototype._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={},h=r(b.timelines),k=h.next();!k.done;f={$jscomp$loop$prop$players$1649:f.$jscomp$loop$prop$players$1649},k=h.next()){k=k.value.element;var q=k!==e;f.$jscomp$loop$prop$players$1649=Rh(c,k,[]);this._getPreviousPlayers(k,q,a,d,b.toState).forEach(function(u){return function(y){var D=y._player;D.beforeDestroy&&D.beforeDestroy();y.destroy();u.$jscomp$loop$prop$players$1649.push(y)}}(f))}Xh(e,
b.fromStyles)};
Kz.prototype._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,u=[],y=new Set,D=new Set,I=b.timelines.map(function(L){var S=L.element;y.add(S);var X=S.__ng_removed;if(X&&X.removedBeforeQueried)return new Oh(L.duration,L.delay);X=S!==q;var ka=Pka((c.get(S)||Sob).map(function(Da){return Da._player})).filter(function(Da){return Da.element?Da.element===S:!1}),ha=e.get(S),ra=f.get(S);ha=fka(L.keyframes,ha,ra);ka=h._buildPlayer(L,ha,ka);L.subTimeline&&d&&D.add(S);X&&(L=new Iz(a,
k,S),fpb(L,ka),u.push(L));return ka});u.forEach(function(L){Rh(h.playersByQueriedElement,L.element,[]).push(L);L.onDone(function(){var S=h.playersByQueriedElement,X=L.element,ka=S.get(X);if(ka){if(ka.length){var ha=ka.indexOf(L);ka.splice(ha,1)}0==ka.length&&S.delete(X)}return ka})});y.forEach(function(L){return ei(L,"ng-animating")});var N=Ph(I);N.onDestroy(function(){y.forEach(function(L){return fi(L,"ng-animating")});Wh(q,b.toStyles)});D.forEach(function(L){Rh(d,L,[]).push(N)});return N};
Kz.prototype._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Oh(a.duration,a.delay)};
var Iz=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Oh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.disabled=this.markedForDestroy=this.destroyed=!1;this.queued=!0;this.totalTime=0},fpb=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return hka(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},gpb=function(a,b){var c=
a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};g=Iz.prototype;g._queueEvent=function(a,b){Rh(this._queuedCallbacks,a,[]).push(b)};g.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};g.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};g.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};
g.init=function(){this._player.init()};g.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};g.play=function(){!this.queued&&this._player.play()};g.pause=function(){!this.queued&&this._player.pause()};g.restart=function(){!this.queued&&this._player.restart()};g.finish=function(){this._player.finish()};g.destroy=function(){this.destroyed=!0;this._player.destroy()};g.reset=function(){!this.queued&&this._player.reset()};g.setPosition=function(a){this.queued||this._player.setPosition(a)};
g.getPosition=function(){return this.queued?0:this._player.getPosition()};g.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};
var Lz=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new Kz(a,b,c);this._timelineEngine=new Rob(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=Lz.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new Bob(this._driver)).build(e,c,[]);if(c.length)throw new mc(3404,!1);c=new Oob(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};g.register=function(a,b){this._transitionEngine.register(a,b)};g.destroy=function(a,b){this._transitionEngine.destroy(a,b)};g.disableAnimations=function(a,b){cpb(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){"@"==c.charAt(0)?(c=r(jka(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};g.listen=function(a,b,c,d,e){return"@"==c.charAt(0)?(c=r(jka(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};g.flush=function(a){this._transitionEngine.flush(void 0===a?-1:a)};oi.Object.defineProperties(Lz.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}});
var hi=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=hpb.get(a);d||hpb.set(a,d=new Map);this._initialStyles=d};hi.prototype.start=function(){1>this._state&&(this._startStyles&&Wh(this._element,this._startStyles,this._initialStyles),this._state=1)};hi.prototype.finish=function(){this.start();2>this._state&&(Wh(this._element,this._initialStyles),this._endStyles&&(Wh(this._element,this._endStyles),this._endStyles=null),this._state=1)};
hi.prototype.destroy=function(){this.finish();3>this._state&&(hpb.delete(this._element),this._startStyles&&(Xh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xh(this._element,this._endStyles),this._endStyles=null),Wh(this._element,this._initialStyles),this._state=3)};var hpb=new WeakMap;
var Mz=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.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};g=Mz.prototype;
g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this._buildPlayer();this._preparePlayerBeforeStart()};g._buildPlayer=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options);this._finalKeyframe=b.length?b[b.length-1]:new Map;this.domPlayer.addEventListener("finish",function(){return a._onFinish()})}};
g._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};g._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};g._triggerWebAnimation=function(a,b,c){return a.animate(this._convertKeyframesToObject(b),c)};g.onStart=function(a){this._onStartFns.push(a)};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.play=function(){this._buildPlayer();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start());this.domPlayer.play()};g.pause=function(){this.init();this.domPlayer.pause()};g.finish=function(){this.init();this._specialStyles&&this._specialStyles.finish();this._onFinish();this.domPlayer.finish()};g.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1};
g._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()};g.restart=function(){this.reset();this.play()};g.hasStarted=function(){return this._started};g.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.setPosition=function(a){void 0===this.domPlayer&&this.init();this.domPlayer.currentTime=a*this.time};
g.getPosition=function(){return this.domPlayer.currentTime/this.time};g.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){if("offset"!==d){var e=b.set,f;a._finished?f=c:f=window.getComputedStyle(a.element)[d];e.call(b,d,f)}});this.currentSnapshot=b};g.triggerCallback=function(a){a="start"===a?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};
oi.Object.defineProperties(Mz.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});
var ipb=function(){};g=ipb.prototype;g.containsElement=function(a,b){return sz(a,b)};g.getParentElement=function(a){return lka(a)};g.query=function(a,b,c){return Aob(a,b,c)};g.computeStyle=function(a,b){return window.getComputedStyle(a)[b]};
g.animate=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h={duration:c,delay:d,fill:0==d?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(u){return u instanceof Mz});0!==c&&0!==d||e.forEach(function(u){u.currentSnapshot.forEach(function(y,D){return k.set(D,y)})});var q=oka(b).map(function(u){return Vh(u)});q=uka(a,q,k);b=Tka(a,q);return new Mz(a,q,h,b)};
var Nz=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};U(Nz,xob);Nz.prototype.build=function(a){var b=this._nextAnimationId.toString();this._nextAnimationId++;a=[Array.isArray(a)?{type:2,steps:a,options:null}:a];this._renderer.setProperty(null,"@@"+b+":register",a);return new jpb(b,this._renderer)};Nz.\u0275fac=function(a){return new (a||Nz)(t(Yv),t(mi))};Nz.\u0275prov=hc({token:Nz,factory:Nz.\u0275fac});
var jpb=function(a,b){this._id=a;this._renderer=b};U(jpb,yob);jpb.prototype.create=function(a,b){return new kpb(this._id,a,b||{},this._renderer)};var kpb=function(a,b,c,d){this.id=a;this.element=b;this._renderer=d;this.parentPlayer=null;this._started=!1;this.totalTime=0;this._command("create",c)};g=kpb.prototype;g._listen=function(a,b){return this._renderer.listen(this.element,"@@"+this.id+":"+a,b)};
g._command=function(a){return this._renderer.setProperty(this.element,"@@"+this.id+":"+a,tc.apply(1,arguments))};g.onDone=function(a){this._listen("done",a)};g.onStart=function(a){this._listen("start",a)};g.onDestroy=function(a){this._listen("destroy",a)};g.init=function(){this._command("init")};g.hasStarted=function(){return this._started};g.play=function(){this._command("play");this._started=!0};g.pause=function(){this._command("pause")};g.restart=function(){this._command("restart")};g.finish=function(){this._command("finish")};
g.destroy=function(){this._command("destroy")};g.reset=function(){this._command("reset");this._started=!1};g.setPosition=function(a){this._command("setPosition",a)};g.getPosition=function(){var a,b;return null!=(b=null==(a=this._renderer.engine.players[+this.id])?void 0:a.getPosition())?b:0};
var Oz=function(a,b,c){this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;this.promise=Promise.resolve(0);b.onRemovalComplete=function(d,e){var f=null==e?void 0:e.parentNode(d);f&&e.removeChild(f,d)}};
Oz.prototype.createRenderer=function(a,b){var c=this,d=this.delegate.createRenderer(a,b);if(!(a&&b&&b.data&&b.data.animation))return b=this._rendererCache.get(d),b||(b=new Pz("",d,this.engine),this._rendererCache.set(d,b)),b;var e=b.id,f=b.id+"-"+this._currentId;this._currentId++;this.engine.register(f,a);var h=function(k){Array.isArray(k)?k.forEach(h):c.engine.registerTrigger(e,f,a,k.name,k)};b.data.animation.forEach(h);return new Qz(this,f,d,this.engine)};
Oz.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};Oz.prototype._scheduleCountTask=function(){var a=this;this.promise.then(function(){a._microtaskId++})};
var lpb=function(a,b,c,d){0<=b&&b<a._microtaskId?a._zone.run(function(){return c(d)}):(0==a._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(e){var f=r(e);e=f.next().value;f=f.next().value;e(f)});a._animationCallbacksBuffer=[]})}),a._animationCallbacksBuffer.push([c,d]))};
Oz.prototype.end=function(){var a=this;this._cdRecurDepth--;0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){a._scheduleCountTask();a.engine.flush(a._microtaskId)});this.delegate.end&&this.delegate.end()};Oz.\u0275fac=function(a){return new (a||Oz)(t(Yv),t(Lz),t(mg))};Oz.\u0275prov=hc({token:Oz,factory:Oz.\u0275fac});var Pz=function(a,b,c){this.namespaceId=a;this.delegate=b;this.engine=c;this.destroyNode=this.delegate.destroyNode?function(d){return b.destroyNode(d)}:null};g=Pz.prototype;
g.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate);this.delegate.destroy()};g.createElement=function(a,b){return this.delegate.createElement(a,b)};g.createComment=function(a){return this.delegate.createComment(a)};g.createText=function(a){return this.delegate.createText(a)};g.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};
g.insertBefore=function(a,b,c,d){d=void 0===d?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};g.removeChild=function(a,b,c){this.engine._transitionEngine.removeNode(this.namespaceId,b,c||!1,this.delegate)};g.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};g.parentNode=function(a){return this.delegate.parentNode(a)};g.nextSibling=function(a){return this.delegate.nextSibling(a)};
g.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};g.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};g.addClass=function(a,b){this.delegate.addClass(a,b)};g.removeClass=function(a,b){this.delegate.removeClass(a,b)};g.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};g.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};
g.setProperty=function(a,b,c){"@"==b.charAt(0)&&"@.disabled"==b?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};g.setValue=function(a,b){this.delegate.setValue(a,b)};g.listen=function(a,b,c){return this.delegate.listen(a,b,c)};g.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};oi.Object.defineProperties(Pz.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var Qz=function(a,b,c,d){Pz.call(this,b,c,d);this.factory=a;this.namespaceId=b};U(Qz,Pz);Qz.prototype.setProperty=function(a,b,c){"@"==b.charAt(0)?"."==b.charAt(1)&&"@.disabled"==b?this.disableAnimations(a,void 0===c?!0:!!c):this.engine.process(this.namespaceId,a,b.slice(1),c):this.delegate.setProperty(a,b,c)};
Qz.prototype.listen=function(a,b,c){var d=this;if("@"==b.charAt(0)){a=Uka(a);b=b.slice(1);var e="";"@"!=b.charAt(0)&&(e=r(Vka(b)),b=e.next().value,e=e.next().value);return this.engine.listen(this.namespaceId,a,b,e,function(f){lpb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};
var Rz=function(a,b,c){Lz.call(this,a.body,b,c)};U(Rz,Lz);Rz.prototype.ngOnDestroy=function(){this.flush()};Rz.\u0275fac=function(a){return new (a||Rz)(t(mi),t(Lob),t(Iob))};Rz.\u0275prov=hc({token:Rz,factory:Rz.\u0275fac});var mpb=[{provide:xob,useClass:Nz},{provide:Iob,useFactory:function(){return new Kob}},{provide:Lz,useClass:Rz},{provide:Yv,useFactory:function(a,b,c){return new Oz(a,b,c)},deps:[iz,Lz,mg]}],npb=[{provide:Lob,useFactory:function(){return new ipb}},{provide:iw,useValue:"BrowserAnimations"}].concat(v(mpb));
[{provide:Lob,useClass:Ez},{provide:iw,useValue:"NoopAnimations"}].concat(v(mpb));
var Sz=function(){};Sz.\u0275fac=function(a){return new (a||Sz)};Sz.\u0275mod=xc({type:Sz});Sz.\u0275inj=ic({providers:npb,imports:[rz]});
var opb=new od("cdk-input-modality-detector-options"),ppb={ignoreKeys:[18,17,224,91,16]},Tz=Rg({passive:!0,capture:!0}),Uz=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new T.BehaviorSubject(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;(null==(h=e._options)?0:null==(k=h.ignoreKeys)?0:k.some(function(q){return q===f.keyCode}))||(e._modality.next("keyboard"),e._mostRecentTarget=Wg(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(ii(f)?"keyboard":"mouse"),e._mostRecentTarget=Wg(f))};this._onTouchstart=function(f){ji(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=Wg(f))};this._options=Object.assign({},ppb,d);this.modalityDetected=this._modality.pipe(cg(1));this.modalityDetected.pipe(Sf());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,Tz);c.addEventListener("mousedown",e._onMousedown,Tz);c.addEventListener("touchstart",
e._onTouchstart,Tz)})};Uz.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tz),document.removeEventListener("mousedown",this._onMousedown,Tz),document.removeEventListener("touchstart",this._onTouchstart,Tz))};Uz.\u0275fac=function(a){return new (a||Uz)(t(My),t(mg),t(mi),t(opb,8))};Uz.\u0275prov=hc({token:Uz,factory:Uz.\u0275fac,providedIn:"root"});
var qpb=new od("cdk-focus-monitor-default-options"),Vz=Rg({passive:!0,capture:!0}),Wz=function(a,b,c,d,e){var f=this;this._ngZone=a;this._platform=b;this._inputModalityDetector=c;this._origin=null;this._originFromTouchInteraction=this._windowFocused=!1;this._elementInfo=new Map;this._monitoredElementCount=0;this._rootNodeFocusListenerCount=new Map;this._windowFocusListener=function(){f._windowFocused=!0;f._windowFocusTimeoutId=window.setTimeout(function(){return f._windowFocused=!1})};this._stopInputModalityDetector=
new T.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=Wg(h),q="focus"===h.type?f._onFocus:f._onBlur;k;k=k.parentElement)q.call(f,h,k)};this._document=d;this._detectionMode=(null==e?void 0:e.detectionMode)||0};
Wz.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=$g(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,T.of)(null);var c=Ug(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new T.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
Wz.prototype.stopMonitoring=function(a){a=$g(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var Xz=function(a,b,c,d){b=$g(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=r(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),"function"===typeof b.focus&&b.focus(d))};g=Wz.prototype;
g.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};g._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"};
g._shouldBeAttributedToTouch=function(a){return 1===this._detectionMode||!(null==a||!a.contains(this._inputModalityDetector._mostRecentTarget))};g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused","touch"===b);a.classList.toggle("cdk-keyboard-focused","keyboard"===b);a.classList.toggle("cdk-mouse-focused","mouse"===b);a.classList.toggle("cdk-program-focused","program"===b)};
g._setOrigin=function(a,b){var c=this;b=void 0===b?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction="touch"===a&&b;0===c._detectionMode&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=Wg(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,Vz);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,Vz)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(fg(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
g._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);1<b?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vz),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vz),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};g._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};g._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};Wz.\u0275fac=function(a){return new (a||Wz)(t(mg),t(My),t(Uz),t(mi,8),t(qpb,8))};Wz.\u0275prov=hc({token:Wz,factory:Wz.\u0275fac,providedIn:"root"});
var Yz=function(a,b){this._elementRef=a;this._focusMonitor=b;this.cdkFocusChange=new Vw};Yz.prototype.ngAfterViewInit=function(){var a=this,b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,1===b.nodeType&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return a.cdkFocusChange.emit(c)})};Yz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
Yz.\u0275fac=function(a){return new (a||Yz)(C(sd),C(Wz))};Yz.\u0275dir=w({type:Yz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});
var Zz=function(a,b){this._platform=a;this._document=b},rpb=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)":return 2;case "rgb(255,255,255)":return 1}return 0};
Zz.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=rpb(this);1===b?a.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):2===b&&a.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}};
Zz.\u0275fac=function(a){return new (a||Zz)(t(My),t(mi))};Zz.\u0275prov=hc({token:Zz,factory:Zz.\u0275fac,providedIn:"root"});
var spb=new od("liveAnnouncerElement",{providedIn:"root",factory:Wka}),tpb=new od("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
var $z=function(){};$z.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};$z.\u0275fac=function(a){return new (a||$z)};$z.\u0275prov=hc({token:$z,factory:$z.\u0275fac,providedIn:"root"});var aA=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=aA.prototype;g.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
g.observe=function(a){var b=this,c=$g(a);return new T.Observable(function(d){var e=b._observeElement(c).subscribe(d);return function(){e.unsubscribe();b._unobserveElement(c)}})};g._observeElement=function(a){if(this._observedElements.has(a))this._observedElements.get(a).count++;else{var b=new T.Subject,c=this._mutationObserverFactory.create(function(d){return b.next(d)});c&&c.observe(a,{characterData:!0,childList:!0,subtree:!0});this._observedElements.set(a,{observer:c,stream:b,count:1})}return this._observedElements.get(a).stream};
g._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};g._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};aA.\u0275fac=function(a){return new (a||aA)(t($z))};aA.\u0275prov=hc({token:aA,factory:aA.\u0275fac,providedIn:"root"});
var bA=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new Vw;this._disabled=!1;this._currentSubscription=null};bA.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};bA.prototype.ngOnDestroy=function(){this._unsubscribe()};
bA.prototype._subscribe=function(){var a=this;this._unsubscribe();var b=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){a._currentSubscription=(a.debounce?b.pipe(Qf(a.debounce)):b).subscribe(a.event)})};bA.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
oi.Object.defineProperties(bA.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Yg(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=ah(a);this._subscribe()}}});bA.\u0275fac=function(a){return new (a||bA)(C(aA),C(sd),C(mg))};
bA.\u0275dir=w({type:bA,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var cA=function(){};cA.\u0275fac=function(a){return new (a||cA)};cA.\u0275mod=xc({type:cA});cA.\u0275inj=ic({providers:[$z]});
var dA=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};
dA.prototype.announce=function(a){var b=tc.apply(1,arguments),c=this,d=this._defaultOptions;if(1===b.length&&"number"===typeof b[0])var e=b[0];else{b=r(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");null==e&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=new Promise(function(h){return c._currentResolve=h}));
clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;"number"===typeof e&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));c._currentResolve();c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};dA.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
dA.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;null==(a=this._liveElement)||a.remove();this._liveElement=null;var b;null==(b=this._currentResolve)||b.call(this);this._currentPromise=this._currentResolve=void 0};
dA.prototype._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");this._document.body.appendChild(b);return b};dA.\u0275fac=function(a){return new (a||dA)(t(spb,8),t(mg),t(mi),t(tpb,8))};
dA.\u0275prov=hc({token:dA,factory:dA.\u0275fac,providedIn:"root"});
var eA=function(a){a._applyBodyHighContrastModeCssClasses()};eA.\u0275fac=function(a){return new (a||eA)(t(Zz))};eA.\u0275mod=xc({type:eA});eA.\u0275inj=ic({imports:[cA]});
var $ka=0,fA=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+$ka++;this._document=a},upb=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=Zka(c,d);"string"!==typeof c?(ala(c),a._messageRegistry.set(e,{messageElement:c,referenceCount:0})):a._messageRegistry.has(e)||a._createMessageElement(c,d);a._isElementDescribedByMessage(b,e)||a._addMessageReference(b,e)}},vpb=function(a,b,c,d){if(c&&a._isElementNode(b)){d=Zka(c,d);a._isElementDescribedByMessage(b,
d)&&a._removeMessageReference(b,d);"string"===typeof c&&(b=a._messageRegistry.get(d))&&0===b.referenceCount&&a._deleteMessageElement(d);var e;0===(null==(e=a._messagesContainer)?void 0:e.childNodes.length)&&(a._messagesContainer.remove(),a._messagesContainer=null)}};g=fA.prototype;
g.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;null==(c=this._messagesContainer)||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
g._createMessageElement=function(a,b){var c=this._document.createElement("div");ala(c);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(Zka(a,b),{messageElement:c,referenceCount:0})};g._deleteMessageElement=function(a){var b,c;null==(b=this._messageRegistry.get(a))||null==(c=b.messageElement)||c.remove();this._messageRegistry.delete(a)};
g._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform&&!this._platform.isBrowser&&a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
g._removeCdkDescribedByReferenceIds=function(a){var b=li(a).filter(function(c){return 0!=c.indexOf("cdk-describedby-message")});a.setAttribute("aria-describedby",b.join(" "))};g._addMessageReference=function(a,b){b=this._messageRegistry.get(b);Xka(a,b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Yka(a,b.messageElement.id);a.removeAttribute("cdk-describedby-host")};
g._isElementDescribedByMessage=function(a,b){a=li(a);b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&-1!=a.indexOf(b)};g._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&"object"===typeof b)return!0;b=null==b?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};g._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};fA.\u0275fac=function(a){return new (a||fA)(t(mi),t(My))};
fA.\u0275prov=hc({token:fA,factory:fA.\u0275fac,providedIn:"root"});
var gA=function(a,b,c,d,e,f,h){Qy.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};U(gA,Qy);gA.prototype.destroy=function(){this._focusTrapManager.deregister(this);Qy.prototype.destroy.call(this)};gA.prototype._enable=function(){this._inertStrategy.preventFocus(this);Knb(this,!0)};gA.prototype._disable=function(){this._inertStrategy.allowFocus(this);Knb(this,!1)};
oi.Object.defineProperties(gA.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 hA=function(){this._listener=null};hA.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)})};hA.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
hA.prototype._trapFocus=function(a,b){b=b.target;var c=a._element,d;!b||c.contains(b)||(null==(d=b.closest)?0:d.call(b,"div.cdk-overlay-pane"))||setTimeout(function(){a.enabled&&!c.contains(a._document.activeElement)&&Oy(a)})};
var wpb=new od("FOCUS_TRAP_INERT_STRATEGY");
var iA=function(){this._focusTrapStack=[]};iA.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()};iA.prototype.deregister=function(a){a._disable();var b=this._focusTrapStack;a=b.indexOf(a);-1!==a&&(b.splice(a,1),b.length&&b[b.length-1]._enable())};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275prov=hc({token:iA,factory:iA.\u0275fac,providedIn:"root"});
var jA=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new hA};jA.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new gA(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};jA.\u0275fac=function(a){return new (a||jA)(t(Ny),t(mg),t(iA),t(mi),t(wpb,8))};jA.\u0275prov=hc({token:jA,factory:jA.\u0275fac,providedIn:"root"});
var kA=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new T.Subject;this._typeaheadSubscription=T.Subscription.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._skipPredicateFn=function(c){return c.disabled};this._pressedLetters=[];this.tabOut=new T.Subject;this.change=new T.Subject;a instanceof Hf&&a.changes.subscribe(function(c){b._activeItem&&(c=c.toArray().indexOf(b._activeItem),-1<c&&c!==b._activeItemIndex&&
(b._activeItemIndex=c))})},xpb=function(a,b){a._skipPredicateFn=b;return a},lA=function(a){a._wrap=!0;return a},mA=function(a){a._vertical=!0;return a},nA=function(a,b){a._horizontal=b;return a},ypb=function(a){a._allowedModifierKeys=["shiftKey"];return a},oA=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(gg(function(c){return a._pressedLetters.push(c)}),Qf(b),uf(function(){return 0<a._pressedLetters.length}),R(function(){return a._pressedLetters.join("")})).subscribe(function(c){for(var d=
a._getItemsArray(),e=1;e<d.length+1;e++){var f=(a._activeItemIndex+e)%d.length,h=d[f];if(!a._skipPredicateFn(h)&&0===h.getLabel().toUpperCase().trim().indexOf(c)){a.setActiveItem(f);break}}a._pressedLetters=[]});return a},pA=function(a){a._homeAndEnd=!0;return a};kA.prototype.setActiveItem=function(a){var b=this._activeItem;qA(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
kA.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(e){return!a[e]||-1<b._allowedModifierKeys.indexOf(e)});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){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){rA(this);break}else return;case 35:if(this._homeAndEnd&&d){sA(this);break}else return;default:if(d||ki(a,"shiftKey"))a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(65<=c&&90>=c||48<=c&&57>=c)&&this._letterKeyStream.next(String.fromCharCode(c));return}this._pressedLetters=[];a.preventDefault()};
var rA=function(a){a._setActiveItemByIndex(0,1)},sA=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};kA.prototype.setNextItemActive=function(){0>this._activeItemIndex?rA(this):this._setActiveItemByDelta(1)};kA.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?sA(this):this._setActiveItemByDelta(-1)};var qA=function(a,b){var c=a._getItemsArray();b="number"===typeof b?b:c.indexOf(b);c=c[b];a._activeItem=null==c?null:c;a._activeItemIndex=b};g=kA.prototype;
g._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};g._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};g._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)};
g._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};g._getItemsArray=function(){return this._items instanceof Hf?this._items.toArray():this._items};oi.Object.defineProperties(kA.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});
var tA=function(){kA.apply(this,arguments)};U(tA,kA);tA.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();kA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};
var uA=function(){kA.apply(this,arguments);this._origin="program"};U(uA,kA);uA.prototype.setActiveItem=function(a){kA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};
var zpb=new od("cdk-dir-doc",{providedIn:"root",factory:bla});
var Apb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,vA=function(a){this.value="ltr";this.change=new Vw;if(a){var b=a.documentElement?a.documentElement.dir:null;b=(a.body?a.body.dir:null)||b||"ltr";b=(null==b?void 0:b.toLowerCase())||"";var c;this.value="auto"===b&&"undefined"!==typeof navigator&&(null==(c=navigator)?0:c.language)?Apb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};vA.prototype.ngOnDestroy=function(){this.change.complete()};
vA.\u0275fac=function(a){return new (a||vA)(t(zpb,8))};vA.\u0275prov=hc({token:vA,factory:vA.\u0275fac,providedIn:"root"});
var wA=function(){};wA.\u0275fac=function(a){return new (a||wA)};wA.\u0275mod=xc({type:wA});wA.\u0275inj=ic({});
var xA=function(a){this._attachedOverlays=[];this._document=a};xA.prototype.ngOnDestroy=function(){this.detach()};xA.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};xA.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};xA.\u0275fac=function(a){return new (a||xA)(t(mi))};xA.\u0275prov=hc({token:xA,factory:xA.\u0275fac,providedIn:"root"});
var yA=function(a,b){xA.call(this,a);var c=this;this._ngZone=b;this._keydownListener=function(d){for(var e=c._attachedOverlays,f={},h=e.length-1;-1<h;f={$jscomp$loop$prop$keydownEvents$1651:f.$jscomp$loop$prop$keydownEvents$1651},h--)if(0<e[h]._keydownEvents.observers.length){f.$jscomp$loop$prop$keydownEvents$1651=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.$jscomp$loop$prop$keydownEvents$1651.next(d)}}(f)):f.$jscomp$loop$prop$keydownEvents$1651.next(d);break}}};
U(yA,xA);yA.prototype.add=function(a){var b=this;xA.prototype.add.call(this,a);this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return b._document.body.addEventListener("keydown",b._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)};yA.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
yA.\u0275fac=function(a){return new (a||yA)(t(mi),t(mg,8))};yA.\u0275prov=hc({token:yA,factory:yA.\u0275fac,providedIn:"root"});
var zA=function(a,b,c){xA.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=Wg(e)};this._clickListener=function(e){var f=Wg(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},u=k.length-1;-1<u;q={$jscomp$loop$prop$outsidePointerEvents$1653:q.$jscomp$loop$prop$outsidePointerEvents$1653},u--){var y=k[u];if(!(1>
y._outsidePointerEvents.observers.length)&&y.hasAttached()){if(y.overlayElement.contains(f)||y.overlayElement.contains(h))break;q.$jscomp$loop$prop$outsidePointerEvents$1653=y._outsidePointerEvents;d._ngZone?d._ngZone.run(function(D){return function(){return D.$jscomp$loop$prop$outsidePointerEvents$1653.next(e)}}(q)):q.$jscomp$loop$prop$outsidePointerEvents$1653.next(e)}}}};U(zA,xA);
zA.prototype.add=function(a){var b=this;xA.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return b._addEventListeners(c)}):this._addEventListeners(c);this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0);this._isAttached=!0}};
zA.prototype.detach=function(){if(this._isAttached){var a=this._document.body;a.removeEventListener("pointerdown",this._pointerDownListener,!0);a.removeEventListener("click",this._clickListener,!0);a.removeEventListener("auxclick",this._clickListener,!0);a.removeEventListener("contextmenu",this._clickListener,!0);this._platform.IOS&&this._cursorStyleIsSet&&(a.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1);this._isAttached=!1}};
zA.prototype._addEventListeners=function(a){a.addEventListener("pointerdown",this._pointerDownListener,!0);a.addEventListener("click",this._clickListener,!0);a.addEventListener("auxclick",this._clickListener,!0);a.addEventListener("contextmenu",this._clickListener,!0)};zA.\u0275fac=function(a){return new (a||zA)(t(mi),t(My),t(mg,8))};zA.\u0275prov=hc({token:zA,factory:zA.\u0275fac,providedIn:"root"});
var AA=function(a,b){this._platform=b;this._document=a};AA.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var BA=function(a){a._containerElement||a._createContainer();return a._containerElement};
AA.prototype._createContainer=function(){if(this._platform.isBrowser||lja())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");lja()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
AA.\u0275fac=function(a){return new (a||AA)(t(mi),t(My))};AA.\u0275prov=hc({token:AA,factory:AA.\u0275fac,providedIn:"root"});
var Bpb=ija(),CA=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};CA.prototype.attach=function(){};
CA.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=Zg(-this._previousScrollPosition.left);a.style.top=Zg(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
CA.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");Bpb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);Bpb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
CA.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.body,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};
var DA=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()})}};DA.prototype.attach=function(a){this._overlayRef=a};
DA.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&1<this._config.threshold?(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)}};
DA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};DA.prototype.detach=function(){this.disable();this._overlayRef=null};
var EA=function(){};EA.prototype.enable=function(){};EA.prototype.disable=function(){};EA.prototype.attach=function(){};
var FA=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};FA.prototype.attach=function(a){this._overlayRef=a};
FA.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;cla(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
FA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};FA.prototype.detach=function(){this.disable();this._overlayRef=null};
new od("VIRTUAL_SCROLL_STRATEGY");
var GA=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new T.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};GA.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};GA.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
GA.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new T.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(Of(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,T.of)()};
GA.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var Cpb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};GA.prototype._getWindow=function(){return this._document.defaultView||window};
GA.prototype._scrollableContainsElement=function(a,b){b=$g(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};GA.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,T.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
GA.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};GA.\u0275fac=function(a){return new (a||GA)(t(mg),t(My),t(mi,8))};GA.\u0275prov=hc({token:GA,factory:GA.\u0275fac,providedIn:"root"});
var HA=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new T.Subject;this._elementScrolled=new T.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,T.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(fg(e._destroyed)).subscribe(f)})})};HA.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};HA.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
HA.prototype.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&"rtl"==this.dir.value;null==a.left&&(a.left=c?a.end:a.start);null==a.right&&(a.right=c?a.start:a.end);null!=a.bottom&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&0!=jja()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==jja()?a.left=a.right:1==jja()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
HA.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;ija()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};HA.\u0275fac=function(a){return new (a||HA)(C(sd),C(GA),C(mg),C(vA,8))};HA.\u0275dir=w({type:HA,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});
var Dpb=function(){},Epb=function(a,b,c,d){Qmb(a,function(e,f,h){if(null==e.previousIndex){var k=c(e,f,h);k=b.createEmbeddedView(k.templateRef,k.context,k.index);f=1}else null==h?(b.remove(f),f=3):(k=b.get(f),b.move(k,h),f=2);if(d){var q;d({context:null==(q=k)?void 0:q.context,operation:f,record:e})}})};Dpb.prototype.detach=function(){};
var IA=function(a,b,c){var d=this;a=void 0===a?!1:a;c=void 0===c?!0:c;this._multiple=a;this._emitChanges=c;this._selection=new Set;this._deselectedToEmit=[];this._selectedToEmit=[];this.changed=new T.Subject;b&&b.length&&(a?b.forEach(function(e){return d._markSelected(e)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=IA.prototype;g.select=function(){var a=this;tc.apply(0,arguments).forEach(function(b){return a._markSelected(b)});this._emitChangeEvent()};
g.deselect=function(){var a=this;tc.apply(0,arguments).forEach(function(b){return a._unmarkSelected(b)});this._emitChangeEvent()};g.toggle=function(a){this.isSelected(a)?this.deselect(a):this.select(a)};g.clear=function(){this._unmarkAll();this._emitChangeEvent()};g.isSelected=function(a){return this._selection.has(a)};g.isEmpty=function(){return 0===this._selection.size};g.hasValue=function(){return!this.isEmpty()};g.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
g._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};g._markSelected=function(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};g._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};g._verifyValueAssignment=function(){};oi.Object.defineProperties(IA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});
var JA=function(){this._listeners=[]};JA.prototype.notify=function(a,b){for(var c=r(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};JA.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};JA.prototype.ngOnDestroy=function(){this._listeners=[]};JA.\u0275fac=function(a){return new (a||JA)};JA.\u0275prov=hc({token:JA,factory:JA.\u0275fac,providedIn:"root"});
var Fpb=new od("_ViewRepeater");
var KA=function(a,b,c){var d=this;this._platform=a;this._change=new T.Subject;this._changeListener=function(e){d._change.next(e)};this._document=c;b.runOutsideAngular(function(){if(a.isBrowser){var e=d._getWindow();e.addEventListener("resize",d._changeListener);e.addEventListener("orientationchange",d._changeListener)}d.change().subscribe(function(){return d._viewportSize=null})})};g=KA.prototype;
g.ngOnDestroy=function(){if(this._platform.isBrowser){var a=this._getWindow();a.removeEventListener("resize",this._changeListener);a.removeEventListener("orientationchange",this._changeListener)}this._change.complete()};g.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
g.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};g.change=function(a){a=void 0===a?20:a;return 0<a?this._change.pipe(Of(a)):this._change};g._getWindow=function(){return this._document.defaultView||window};
g._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};KA.\u0275fac=function(a){return new (a||KA)(t(My),t(mg),t(mi,8))};KA.\u0275prov=hc({token:KA,factory:KA.\u0275fac,providedIn:"root"});
var LA=function(){};LA.\u0275fac=function(a){return new (a||LA)};LA.\u0275mod=xc({type:LA});LA.\u0275inj=ic({});var MA=function(){};MA.\u0275fac=function(a){return new (a||MA)};MA.\u0275mod=xc({type:MA});MA.\u0275inj=ic({imports:[wA,LA,wA,LA]});
var NA=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new EA};this.close=function(f){return new DA(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new CA(e._viewportRuler,e._document)};this.reposition=function(f){return new FA(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};NA.\u0275fac=function(a){return new (a||NA)(t(GA),t(KA),t(mg),t(mi))};
NA.\u0275prov=hc({token:NA,factory:NA.\u0275fac,providedIn:"root"});
var OA=function(a){this.scrollStrategy=new EA;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,void 0!==a[c]&&(this[c]=a[c])}};
var PA=function(a,b,c,d,e,f,h,k,q,u){var y=this;u=void 0===u?!1:u;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=u;this._backdropElement=null;this._backdropClick=new T.Subject;this._attachments=new T.Subject;this._detachments=new T.Subject;this._locationChanges=T.Subscription.EMPTY;this._backdropClickHandler=function(D){return y._backdropClick.next(D)};
this._backdropTransitionendHandler=function(D){y._disposeBackdrop(D.target)};this._keydownEvents=new T.Subject;this._outsidePointerEvents=new T.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=PA.prototype;
g.attach=function(a){var b=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);a=this._portalOutlet.attach(a);this._positionStrategy&&this._positionStrategy.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();this._ngZone.onStable.pipe(Tf()).subscribe(function(){b.hasAttached()&&b.updatePosition()});this._togglePointerEvents(!0);this._config.hasBackdrop&&
this._attachBackdrop();this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0);this._attachments.next();this._keyboardDispatcher.add(this);this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);return a};
g.detach=function(){if(this.hasAttached()){Gpb(this);this._togglePointerEvents(!1);this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach();this._scrollStrategy&&this._scrollStrategy.disable();var a=this._portalOutlet.detach();this._detachments.next();this._keyboardDispatcher.remove(this);this._detachContentWhenStable();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
g.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();this._disposeBackdrop(this._backdropElement);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 b;null==(b=this._host)||b.remove();this._previousHostParent=
this._pane=this._host=null;a&&this._detachments.next();this._detachments.complete()};g.hasAttached=function(){return this._portalOutlet.hasAttached()};g.backdropClick=function(){return this._backdropClick};g.attachments=function(){return this._attachments};g.keydownEvents=function(){return this._keydownEvents};g.outsidePointerEvents=function(){return this._outsidePointerEvents};g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};
var Hpb=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};g=PA.prototype;g.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};g.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};g.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};
g.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};g.getDirection=function(){var a=this._config.direction;return a?"string"===typeof a?a:a.value:"ltr"};g._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())};
g._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Zg(this._config.width);a.height=Zg(this._config.height);a.minWidth=Zg(this._config.minWidth);a.minHeight=Zg(this._config.minHeight);a.maxWidth=Zg(this._config.maxWidth);a.maxHeight=Zg(this._config.maxHeight)}};g._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
g._attachBackdrop=function(){var a=this;this._backdropElement=this._document.createElement("div");this._backdropElement.classList.add("cdk-overlay-backdrop");this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0);this._host.parentElement.insertBefore(this._backdropElement,this._host);this._backdropElement.addEventListener("click",this._backdropClickHandler);
this._animationsDisabled||"undefined"===typeof requestAnimationFrame?this._backdropElement.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a._backdropElement&&a._backdropElement.classList.add("cdk-overlay-backdrop-showing")})})};g._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var Gpb=function(a){var b=a._backdropElement;b&&(a._animationsDisabled?a._disposeBackdrop(b):(b.classList.remove("cdk-overlay-backdrop-showing"),a._ngZone.runOutsideAngular(function(){b.addEventListener("transitionend",a._backdropTransitionendHandler)}),b.style.pointerEvents="none",a._backdropTimeout=a._ngZone.runOutsideAngular(function(){return setTimeout(function(){a._disposeBackdrop(b)},500)})))};
PA.prototype._toggleClasses=function(a,b,c){b=Xg(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,v(b)):a.classList.remove.apply(a.classList,v(b)))};
PA.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(fg((0,T.merge)(a._attachments,a._detachments))).subscribe(function(){a._pane&&a._host&&0!==a._pane.children.length||(a._pane&&a._config.panelClass&&a._toggleClasses(a._pane,a._config.panelClass,!1),a._host&&a._host.parentElement&&(a._previousHostParent=a._host.parentElement,a._host.remove()),b.unsubscribe())})})};
PA.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};PA.prototype._disposeBackdrop=function(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null));this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)};
oi.Object.defineProperties(PA.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});
var Ipb=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};
var fla=/([A-Za-z%]+)$/,QA=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 T.Subject;this._resizeSubscription=T.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};QA.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()})};
QA.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)Jpb(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=BA(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=r(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),u=this._getOverlayPoint(q,b,k),y=this._getOverlayFit(u,b,c,k);if(y.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(y,u,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<y.visibleArea)f={overlayFit:y,
overlayPoint:u,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=r(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)}};QA.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
QA.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ni(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 Jpb=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=BA(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},Kpb=function(a,b){a._scrollables=b;return a},RA=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},SA=function(a,b){a._viewportMargin=b;return a},TA=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},Lpb=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},UA=function(a,b){a._canPush=void 0===b?!0:b;return a},VA=function(a,b){a._positionLocked=void 0===b?!0:b;return a};QA.prototype.setOrigin=function(a){this._origin=a;return this};var Mpb=function(a,b){a._transformOriginSelector=b;return a};g=QA.prototype;
g._getOriginPoint=function(a,b,c){if("center"==c.originX)var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d="start"==c.originX?d:e}0>b.left&&(d-=b.left);a="center"==c.originY?a.top+a.height/2:"top"==c.originY?a.top:a.bottom;0>b.top&&(a-=b.top);return{x:d,y:a}};
g._getOverlayPoint=function(a,b,c){var d="center"==c.overlayX?-b.width/2:"start"===c.overlayX?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+("center"==c.overlayY?-b.height/2:"top"==c.overlayY?0:-b.height)}};
g._getOverlayFit=function(a,b,c,d){b=hla(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
g._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=gla(this._overlayRef.getConfig().minHeight);var e=gla(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||null!=e&&e<=c;return(a.fitsInViewportVertically||null!=b&&b<=d)&&c}return!1};
g._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=hla(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),h=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._viewportMargin?d.left-c.left-a.x:0;c=b.height<=d.height?h||-f:a.y<this._viewportMargin?d.top-c.top-a.y:0;this._previousPushAmount={x:e,y:c};
return{x:a.x+e,y:a.y+c}};g._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);this._lastPosition=a;this._positionChanges.observers.length&&(b=this._getScrollVisibility(),this._positionChanges.next(new Ipb(a,b)));this._isInitialRender=!1};
g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a="center"===a.overlayX?"center":this._isRtl()?"start"===a.overlayX?"right":"left":"start"===a.overlayX?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if("top"===b.overlayY){var e=a.y;var f=c.height-e+this._viewportMargin}else if("bottom"===b.overlayY){var h=c.height-a.y+2*this._viewportMargin;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=2*e;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k="start"===b.overlayX&&!d||"end"===b.overlayX&&d;if("end"===b.overlayX&&!d||"start"===
b.overlayX&&d){var q=c.width-a.x+this._viewportMargin;b=a.x-this._viewportMargin}else if(k){var u=a.x;b=c.right-a.x}else u=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*u,u=a.x-u,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-c/2);return{top:e,left:u,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=Zg(a.height);c.top=Zg(a.top);c.bottom=Zg(a.bottom);
c.width=Zg(a.width);c.left=Zg(a.left);c.right=Zg(a.right);c.alignItems="center"===b.overlayX?"center":"end"===b.overlayX?"flex-end":"flex-start";c.justifyContent="center"===b.overlayY?"center":"bottom"===b.overlayY?"flex-end":"flex-start";d&&(c.maxHeight=Zg(d));e&&(c.maxWidth=Zg(e))}this._lastBoundingBoxSize=a;ni(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){ni(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){ni(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
g._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var h=this._viewportRuler.getViewportScrollPosition();ni(c,this._getExactOverlayY(b,a,h));ni(c,this._getExactOverlayX(b,a,h))}else c.position="static";a="";h=this._getOffset(b,"x");b=this._getOffset(b,"y");h&&(a+="translateX("+h+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Zg(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Zg(f.maxWidth):e&&(c.maxWidth=""));ni(this._pane.style,c)};g._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"bottom"===a.overlayY?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=Zg(b.y);return d};
g._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));"right"===(this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left")?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=Zg(b.x);return d};
g._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:dla(a,c),isOriginOutsideView:cla(a,c),isOverlayClipped:dla(b,c),isOverlayOutsideView:cla(b,c)}};g._subtractOverflows=function(a){return tc.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
g._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+a-this._viewportMargin,bottom:c.top+b-this._viewportMargin,width:a-2*this._viewportMargin,height:b-2*this._viewportMargin}};g._isRtl=function(){return"rtl"===this._overlayRef.getDirection()};
g._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};g._getOffset=function(a,b){return"x"===b?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY};g._validatePositions=function(){};g._addPanelClasses=function(a){var b=this;this._pane&&Xg(a).forEach(function(c){""!==c&&-1===b._appliedPanelClasses.indexOf(c)&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
g._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};g._getOriginRect=function(){var a=this._origin;if(a instanceof sd)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}};
oi.Object.defineProperties(QA.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});
var WA=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=WA.prototype;g.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
g.top=function(a){this._bottomOffset="";this._topOffset=void 0===a?"":a;this._alignItems="flex-start";return this};g.left=function(a){this._xOffset=void 0===a?"":a;this._xPosition="left";return this};g.bottom=function(a){this._topOffset="";this._bottomOffset=void 0===a?"":a;this._alignItems="flex-end";return this};g.right=function(a){this._xOffset=void 0===a?"":a;this._xPosition="right";return this};g.start=function(a){this._xOffset=void 0===a?"":a;this._xPosition="start";return this};
g.end=function(a){this._xOffset=void 0===a?"":a;this._xPosition="end";return this};g.width=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};g.height=function(a){a=void 0===a?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var XA=function(a){a.left("");a._xPosition="center";return a},Npb=function(a){a.top("");a._alignItems="center";return a};
WA.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=("100%"===d||"100vw"===d)&&(!f||"100%"===f||"100vw"===f);e=("100%"===e||"100vh"===e)&&(!c||"100%"===c||"100vh"===c);f=this._xPosition;c=this._xOffset;var h="rtl"===this._overlayRef.getConfig().direction,k="",q="",u="";if(d)u="flex-start";else if("center"===
f)u="center",h?q=c:k=c;else if(h)if("left"===f||"end"===f)u="flex-end",k=c;else{if("right"===f||"start"===f)u="flex-start",q=c}else if("left"===f||"start"===f)u="flex-start",k=c;else if("right"===f||"end"===f)u="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=u;b.alignItems=e?"flex-start":this._alignItems}};
WA.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 YA=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};YA.prototype.global=function(){return new WA};var ZA=function(a,b){return new QA(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};YA.\u0275fac=function(a){return new (a||YA)(t(KA),t(mi),t(My),t(AA))};YA.\u0275prov=hc({token:YA,factory:YA.\u0275fac,providedIn:"root"});
var $A=function(){};$A.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};$A.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};oi.Object.defineProperties($A.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var aB=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d};U(aB,$A);
var bB=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};U(bB,$A);bB.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return $A.prototype.attach.call(this,a)};bB.prototype.detach=function(){this.context=void 0;return $A.prototype.detach.call(this)};oi.Object.defineProperties(bB.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var cB=function(){this._isDisposed=!1};g=cB.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof aB)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof bB)return this._attachedPortal=a,this.attachTemplatePortal(a)};g.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};g.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
g.setDisposeFn=function(a){this._disposeFn=a};g._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};
var dB=function(a,b,c,d,e){this._isDisposed=!1;this.outletElement=a;this._componentFactoryResolver=b;this._appRef=c;this._defaultInjector=d;this._document=e};U(dB,cB);
dB.prototype.attachComponentPortal=function(a){var b=this,c=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);if(a.viewContainerRef){var d=a.viewContainerRef.createComponent(c,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector);this.setDisposeFn(function(){return d.destroy()})}else d=c.create(a.injector||this._defaultInjector||olb),Mmb(this._appRef,d.hostView),this.setDisposeFn(function(){0<b._appRef.viewCount&&b._appRef.detachView(d.hostView);
d.destroy()});this.outletElement.appendChild(this._getComponentRootNode(d));this._attachedPortal=a;return d};dB.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);-1!==e&&c.remove(e)});this._attachedPortal=a;return d};
dB.prototype.dispose=function(){cB.prototype.dispose.call(this);this.outletElement.remove()};dB.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};
var eB=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new Vw;this._document=c};U(eB,cB);g=eB.prototype;g.ngOnInit=function(){this._isInitialized=!0};g.ngOnDestroy=function(){cB.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
g.attachComponentPortal=function(a){a._attachedHost=this;var b=null!=a.viewContainerRef?a.viewContainerRef:this._viewContainerRef,c=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component),d=b.createComponent(c,b.length,a.injector||b.injector);b!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]);cB.prototype.setDisposeFn.call(this,function(){return d.destroy()});this._attachedPortal=a;this._attachedRef=d;this.attached.emit(d);
return d};g.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});cB.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};g._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
oi.Object.defineProperties(eB.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&cB.prototype.detach.call(this),a&&cB.prototype.attach.call(this,a),this._attachedPortal=a||null}}});eB.\u0275fac=function(a){return new (a||eB)(C(Wv),C(Bf),C(mi))};
eB.\u0275dir=w({type:eB,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ee]});var fB=function(){};fB.\u0275fac=function(a){return new (a||fB)};fB.\u0275mod=xc({type:fB});fB.\u0275inj=ic({});
var Opb=0,gB=function(a,b,c,d,e,f,h,k,q,u,y,D){this.scrollStrategies=a;this._overlayContainer=b;this._componentFactoryResolver=c;this._positionBuilder=d;this._keyboardDispatcher=e;this._injector=f;this._ngZone=h;this._document=k;this._directionality=q;this._location=u;this._outsideClickDispatcher=y;this._animationsModuleType=D};g=gB.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new OA(a);a.direction=a.direction||this._directionality.value;return new PA(d,b,c,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)};g.position=function(){return this._positionBuilder};
g._createPaneElement=function(a){var b=this._document.createElement("div");b.id="cdk-overlay-"+Opb++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");BA(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(xx));return new dB(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
gB.\u0275fac=function(a){return new (a||gB)(t(NA),t(AA),t(Wv),t(YA),t(yA),t(Uv),t(mg),t(mi),t(vA),t(hy),t(zA),t(iw,8))};gB.\u0275prov=hc({token:gB,factory:gB.\u0275fac});
var Ppb=[{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"}],Qpb=new od("cdk-connected-overlay-scroll-strategy"),hB=function(a){this.elementRef=a};hB.\u0275fac=function(a){return new (a||hB)(C(sd))};
hB.\u0275dir=w({type:hB,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var iB=function(a,b,c,d,e){this._overlay=a;this._dir=e;this._push=this._flexibleDimensions=this._growAfterOpen=this._lockPosition=this._hasBackdrop=!1;this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=T.Subscription.EMPTY;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new Vw;this.positionChange=new Vw;this.attach=new Vw;this.detach=new Vw;this.overlayKeydown=new Vw;this.overlayOutsideClick=new Vw;this._templatePortal=new bB(b,
c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=iB.prototype;g.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();this._overlayRef&&this._overlayRef.dispose()};
g.ngOnChanges=function(a){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),a.origin&&this.open&&this._position.apply());a.open&&(this.open?this._attachOverlay():this._detachOverlay())};
g._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=Ppb);var b=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=b.attachments().subscribe(function(){return a.attach.emit()});this._detachSubscription=b._detachments.subscribe(function(){return a.detach.emit()});b.keydownEvents().subscribe(function(c){a.overlayKeydown.next(c);27!==c.keyCode||a.disableClose||ki(c)||(c.preventDefault(),a._detachOverlay())});this._overlayRef.outsidePointerEvents().subscribe(function(c){a.overlayOutsideClick.next(c)})};
g._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new OA({direction:this._dir,positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});if(this.width||0===this.width)a.width=this.width;if(this.height||0===this.height)a.height=this.height;if(this.minWidth||0===this.minWidth)a.minWidth=this.minWidth;if(this.minHeight||0===this.minHeight)a.minHeight=this.minHeight;this.backdropClass&&(a.backdropClass=this.backdropClass);
this.panelClass&&(a.panelClass=this.panelClass);return a};
g._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return Mpb(VA(SA(Lpb(UA(TA(RA(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=ZA(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof hB?this.origin.elementRef:this.origin};
g._attachOverlay=function(){var a=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay();this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal);this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(b){a.backdropClick.emit(b)}):this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();0<this.positionChange.observers.length&&(this._positionSubscription=this._position.positionChanges.pipe(Cha(function(){return 0<
a.positionChange.observers.length})).subscribe(function(b){a.positionChange.emit(b);0===a.positionChange.observers.length&&a._positionSubscription.unsubscribe()}))};g._detachOverlay=function(){this._overlayRef&&this._overlayRef.detach();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe()};
oi.Object.defineProperties(iB.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)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=
Yg(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=Yg(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=Yg(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=Yg(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
Yg(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"}}});iB.\u0275fac=function(a){return new (a||iB)(C(gB),C(Af),C(Bf),C(Qpb),C(vA,8))};
iB.\u0275dir=w({type:iB,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth",
"minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],
hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],
features:[Fc]});var Rpb={provide:Qpb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};
var jB=function(){};jB.\u0275fac=function(a){return new (a||jB)};jB.\u0275mod=xc({type:jB});jB.\u0275inj=ic({providers:[gB,Rpb],imports:[wA,fB,MA,MA]});
var Spb=new od("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),kB=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};kB.prototype._checkIsEnabled=function(a){return lja()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};kB.\u0275fac=function(a){return new (a||kB)(t(Zz),t(Spb,8),t(mi))};kB.\u0275mod=xc({type:kB});
kB.\u0275inj=ic({imports:[wA,wA]});
var Tpb=new od("MAT_DATE_LOCALE",{providedIn:"root",factory:kla}),lB=function(){this.localeChanges=this._localeChanges=new T.Subject},mB=function(a,b){return a.isDateInstance(b)&&a.isValid(b)?b:null};lB.prototype.deserialize=function(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()};lB.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var nB=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
lB.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!nB(this,a,b):c==d}return a==b};var oB=function(a,b,c,d){return c&&0>nB(a,b,c)?c:d&&0<nB(a,b,d)?d:b};
var pB=new od("mat-date-formats");
var Upb=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,qB=function(a){lB.call(this);lB.prototype.setLocale.call(this,a)};U(qB,lB);g=qB.prototype;g.getYear=function(a){return a.getFullYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};
g.getMonthNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{month:a,timeZone:"utc"});return lla(12,function(d){return b._format(c,new Date(2017,d,1))})};g.getDateNames=function(){var a=this,b=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lla(31,function(c){return a._format(b,new Date(2017,0,c+1))})};
g.getDayOfWeekNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{weekday:a,timeZone:"utc"});return lla(7,function(d){return b._format(c,new Date(2017,0,d+1))})};g.getYearName=function(a){var b=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(b,a)};g.getFirstDayOfWeek=function(){return 0};g.getNumDaysInMonth=function(a){return this.getDate(this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+1,0))};g.clone=function(a){return new Date(a.getTime())};
g.createDate=function(a,b,c){a=this._createDateWithOverflow(a,b,c);a.getMonth();return a};g.today=function(){return new Date};g.parse=function(a){return"number"==typeof a?new Date(a):a?new Date(Date.parse(a)):null};g.format=function(a,b){if(!this.isValid(a))throw Error("lb");b=new Intl.DateTimeFormat(this.locale,Object.assign({},b,{timeZone:"utc"}));return this._format(b,a)};g.addCalendarYears=function(a,b){return this.addCalendarMonths(a,12*b)};
g.addCalendarMonths=function(a,b){var c=this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+b,this.getDate(a));this.getMonth(c)!=((this.getMonth(a)+b)%12+12)%12&&(c=this._createDateWithOverflow(this.getYear(c),this.getMonth(c),0));return c};g.addCalendarDays=function(a,b){return this._createDateWithOverflow(this.getYear(a),this.getMonth(a),this.getDate(a)+b)};
g.deserialize=function(a){if("string"===typeof a){if(!a)return null;if(Upb.test(a)){var b=new Date(a);if(this.isValid(b))return b}}return lB.prototype.deserialize.call(this,a)};g.isDateInstance=function(a){return a instanceof Date};g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new Date(NaN)};g._createDateWithOverflow=function(a,b,c){var d=new Date;d.setFullYear(a,b,c);d.setHours(0,0,0,0);return d};g._2digit=function(a){return("00"+a).slice(-2)};
g._format=function(a,b){var c=new Date;c.setUTCFullYear(b.getFullYear(),b.getMonth(),b.getDate());c.setUTCHours(b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds());return a.format(c)};qB.\u0275fac=function(a){return new (a||qB)(t(Tpb,8),t(My))};qB.\u0275prov=hc({token:qB,factory:qB.\u0275fac});
var rB=function(){};rB.\u0275fac=function(a){return new (a||rB)};rB.\u0275mod=xc({type:rB});rB.\u0275inj=ic({providers:[{provide:lB,useClass:qB}]});var sB=function(){};sB.\u0275fac=function(a){return new (a||sB)};sB.\u0275mod=xc({type:sB});
sB.\u0275inj=ic({providers:[{provide:pB,useValue:{parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}}}],imports:[rB]});
var tB=function(){};tB.\u0275fac=function(a){return new (a||tB)};tB.\u0275prov=hc({token:tB,factory:tB.\u0275fac,providedIn:"root"});
new od("MAT_HAMMER_OPTIONS");
var uB=function(){};uB.\u0275fac=function(a){return new (a||uB)};uB.\u0275dir=w({type:uB,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var vB=function(){};vB.\u0275fac=function(a){return new (a||vB)};vB.\u0275mod=xc({type:vB});vB.\u0275inj=ic({imports:[kB,kB]});
var Vpb=new od("MAT_OPTION_PARENT_COMPONENT");
ri(function(){});var Wpb=new od("MatOptgroup");
var Xpb=function(a,b,c,d){d=void 0===d?!1:d;this._renderer=a;this.element=b;this.config=c;this._animationForciblyDisabledThroughCss=d;this.state=3};
var Ypb={enterDuration:225,exitDuration:150},Zpb=Rg({passive:!0}),$pb=["mousedown","touchstart"],aqb=["mouseup","mouseleave","touchend","touchcancel"],wB=function(a,b,c,d){this._target=a;this._ngZone=b;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=$g(c))},xB=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},Ypb,d.animation);d.centered&&
(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||nla(b,c,e);b-=e.left;e=c-e.top;c=f.enterDuration;var k=document.createElement("div");k.classList.add("mat-ripple-element");k.style.left=b-h+"px";k.style.top=e-h+"px";k.style.height=2*h+"px";k.style.width=2*h+"px";null!=d.color&&(k.style.backgroundColor=d.color);k.style.transitionDuration=c+"ms";a._containerElement.appendChild(k);h=window.getComputedStyle(k);b=h.transitionDuration;h="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b;var q=
new Xpb(a,k,d,h);k.style.transform="scale3d(1, 1, 1)";q.state=0;d.persistent||(a._mostRecentTransientRipple=q);var u=null;h||!c&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var y=function(){return a._finishRippleTransition(q)},D=function(){return a._destroyRipple(q)};k.addEventListener("transitionend",y);k.addEventListener("transitioncancel",D);u={onTransitionEnd:y,onTransitionCancel:D}});a._activeRipples.set(q,u);!h&&c||a._finishRippleTransition(q);return q},bqb=function(a,b){if(2!==
b.state&&3!==b.state){var c=b.element,d=Object.assign({},Ypb,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};wB.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||bqb(a._renderer,a)})};var cqb=function(a,b){(b=$g(b))&&b!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=b,a._registerEvents($pb))};
g=wB.prototype;g.handleEvent=function(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._registerEvents(aqb),this._pointerUpEventsRegistered=!0)};g._finishRippleTransition=function(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)};
g._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||bqb(a._renderer,a)};
g._destroyRipple=function(a){var b,c=null!=(b=this._activeRipples.get(a))?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;null!==c&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel));a.element.remove()};
g._onMousedown=function(a){var b=ii(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,xB(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!ji(a)){this._lastTouchStartEvent=Date.now();this._isPointerDown=!0;a=a.changedTouches;for(var b=0;b<a.length;b++)xB(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)}};
g._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=1===a.state||a.config.terminateOnPointerUp&&0===a.state;!a.config.persistent&&b&&bqb(a._renderer,a)}))};g._registerEvents=function(a){var b=this;this._ngZone.runOutsideAngular(function(){a.forEach(function(c){b._triggerElement.addEventListener(c,b,Zpb)})})};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this;this._triggerElement&&($pb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Zpb)}),this._pointerUpEventsRegistered&&aqb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Zpb)}))};
var dqb=new od("mat-ripple-global-options"),yB=function(a,b,c,d,e){this._elementRef=a;this._animationMode=e;this.radius=0;this._isInitialized=this._disabled=!1;this._globalOptions=d||{};this._rippleRenderer=new wB(this,b,a,c)};g=yB.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};g.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};g.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
g._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&cqb(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?xB(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):xB(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
oi.Object.defineProperties(yB.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,"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||!!this._globalOptions.disabled}}});yB.\u0275fac=function(a){return new (a||yB)(C(sd),C(mg),C(My),C(dqb,8),C(iw,8))};
yB.\u0275dir=w({type:yB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&pe("mat-ripple-unbounded",b.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});
var zB=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1};zB.\u0275fac=function(a){return new (a||zB)(C(iw,8))};
zB.\u0275cmp=w({type:zB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(a,b){a&2&&pe("mat-pseudo-checkbox-indeterminate","indeterminate"===b.state)("mat-pseudo-checkbox-checked","checked"===b.state)("mat-pseudo-checkbox-disabled",b.disabled)("_mat-animation-noopable","NoopAnimations"===b._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],
encapsulation:2,changeDetection:0});
var eqb=0,fqb=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},AB=function(a,b,c,d){this._element=a;this._changeDetectorRef=b;this._parent=c;this.group=d;this._disabled=this._active=this._selected=!1;this._mostRecentViewValue="";this.id="mat-option-"+eqb++;this.onSelectionChange=new Vw;this._stateChanges=new T.Subject};g=AB.prototype;g.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())};
g.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())};g.focus=function(a,b){var c=this._getHostElement();"function"===typeof c.focus&&c.focus(b)};g.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};g.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};g.getLabel=function(){return this.viewValue};
g._handleKeydown=function(a){13!==a.keyCode&&32!==a.keyCode||ki(a)||(this._selectViaInteraction(),a.preventDefault())};g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getAriaSelected=function(){return this.selected||(this.multiple?!1:null)};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._element.nativeElement};
g.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue=a,this._stateChanges.next())}};g.ngOnDestroy=function(){this._stateChanges.complete()};g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new fqb(this,void 0===a?!1:a))};
oi.Object.defineProperties(AB.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=Yg(a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.disableRipple)}},active:{configurable:!0,
enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){return(this._getHostElement().textContent||"").trim()}}});AB.\u0275fac=function(){wd()};AB.\u0275dir=w({type:AB,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var BB=function(a,b,c,d){AB.call(this,a,b,c,d)};U(BB,AB);BB.\u0275dir=AB.\u0275dir;BB.\u0275fac=function(a){return new (a||BB)(C(sd),C(zx),C(Vpb,8),C(Wpb,8))};
BB.\u0275cmp=w({type:BB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(a,b){a&1&&J("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ye("id",b.id),ke("tabindex",b._getTabIndex())("aria-selected",b._getAriaSelected())("aria-disabled",b.disabled.toString()),pe("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[ee],ngContentSelectors:["*"],decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(a,b){a&1&&(Ae(),M(0,ola,1,2,"mat-pseudo-checkbox",0),F(1,"span",1),Be(2),G(),M(3,pla,2,1,"span",
2),H(4,"div",3));a&2&&(E("ngIf",b.multiple),B(3),E("ngIf",b.group&&b.group._inert),B(1),E("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[yB,Gx,zB],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],
encapsulation:2,changeDetection:0});
var CB=function(){};CB.\u0275fac=function(a){return new (a||CB)};CB.\u0275mod=xc({type:CB});CB.\u0275inj=ic({imports:[kB,kB]});
var DB=function(){};DB.\u0275fac=function(a){return new (a||DB)};DB.\u0275mod=xc({type:DB});DB.\u0275inj=ic({imports:[kB]});
var EB=function(){};EB.\u0275fac=function(a){return new (a||EB)};EB.\u0275mod=xc({type:EB});EB.\u0275inj=ic({imports:[CB,ay,kB,DB]});
/*

 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
*/
var gqb=["mat-button",""],hqb=["*"],iqb=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:transparent;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:transparent;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:transparent;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:transparent;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}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"},
jqb="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),kqb=pi(ri(qi(function(a){this._elementRef=a}))),FB=function(a,b,c){var d=kqb.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=r(jqb),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};U(FB,kqb);g=FB.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?Xz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};g._getHostElement=function(){return this._elementRef.nativeElement};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};
g._hasHostAttributes=function(){var a=this;return tc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};FB.\u0275fac=function(a){return new (a||FB)(C(sd),C(Wz),C(iw,8))};
FB.\u0275cmp=w({type:FB,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&&Ef(yB,5);if(a&2){var c;Df(c=Gf())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(a,b){a&2&&(ke("disabled",b.disabled||null),pe("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ee],attrs:gqb,ngContentSelectors:hqb,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&&(Ae(),F(0,"span",0),Be(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),pe("mat-button-ripple-round",b.isRoundButton||b.isIconButton),E("matRippleDisabled",
b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[yB],styles:[iqb()],encapsulation:2,changeDetection:0});var GB=function(a,b,c,d){var e=FB.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};U(GB,FB);
GB.prototype.ngAfterViewInit=function(){var a=this;FB.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};GB.prototype.ngOnDestroy=function(){FB.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
GB.\u0275fac=function(a){return new (a||GB)(C(Wz),C(sd),C(iw,8),C(mg,8))};
GB.\u0275cmp=w({type:GB,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:7,hostBindings:function(a,b){a&2&&(ke("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString()),pe("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ee],attrs:gqb,ngContentSelectors:hqb,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&&(Ae(),F(0,"span",0),Be(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),pe("mat-button-ripple-round",b.isRoundButton||b.isIconButton),
E("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[yB],styles:[iqb()],encapsulation:2,changeDetection:0});
var HB=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new T.Subject;this.selection=a};HB.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};HB.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};HB.prototype._isValidDateInstance=function(a){return this._adapter.isDateInstance(a)&&this._adapter.isValid(a)};HB.\u0275fac=function(){wd()};
HB.\u0275prov=hc({token:HB,factory:HB.\u0275fac});var IB=function(a){HB.call(this,null,a)};U(IB,HB);IB.prototype.add=function(a){HB.prototype.updateSelection.call(this,a,this)};IB.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};IB.prototype.isComplete=function(){return null!=this.selection};IB.prototype.clone=function(){var a=new IB(this._adapter);a.updateSelection(this.selection,this);return a};IB.\u0275fac=function(a){return new (a||IB)(t(lB))};
IB.\u0275prov=hc({token:IB,factory:IB.\u0275fac});var lqb={provide:HB,deps:[[new Rv,new Sv,HB],lB],useFactory:function(a,b){return a||new IB(b)}};new Rv;new Sv;
var JB=function(){this.changes=new T.Subject};JB.\u0275fac=function(a){return new (a||JB)};JB.\u0275prov=hc({token:JB,factory:JB.\u0275fac,providedIn:"root"});
var mqb=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=void 0===f?a:f;this.rawValue=h},KB=function(a,b){var c=this;this._elementRef=a;this._ngZone=b;this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new Vw;this.previewChange=new Vw;this.activeDateChange=new Vw;this._enterHandler=
function(d){if(c._skipNextFocus&&"focus"===d.type)c._skipNextFocus=!1;else if(d.target&&c.isRange){var e=c._getCellFromElement(d.target);e&&c._ngZone.run(function(){return c.previewChange.emit({value:e.enabled?e:null,event:d})})}};this._leaveHandler=function(d){null!==c.previewEnd&&c.isRange&&d.target&&c._getCellFromElement(d.target)&&c._ngZone.run(function(){return c.previewChange.emit({value:null,event:d})})};b.runOutsideAngular(function(){var d=a.nativeElement;d.addEventListener("mouseenter",c._enterHandler,
!0);d.addEventListener("focus",c._enterHandler,!0);d.addEventListener("mouseleave",c._leaveHandler,!0);d.addEventListener("blur",c._leaveHandler,!0)})};g=KB.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};g._cellClicked=function(a,b){a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};g._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
g._isSelected=function(a){return this.startValue===a||this.endValue===a};g.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;a.removeEventListener("mouseenter",this._enterHandler,!0);a.removeEventListener("focus",this._enterHandler,!0);a.removeEventListener("mouseleave",this._leaveHandler,!0);a.removeEventListener("blur",this._leaveHandler,!0)};g._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};
g._focusActiveCell=function(a){var b=this;a=void 0===a?!0:a;this._ngZone.runOutsideAngular(function(){b._ngZone.onStable.pipe(Tf()).subscribe(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})})})};g._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};g._isRangeStart=function(a){return wla(a,this.startValue,this.endValue)};
g._isRangeEnd=function(a){return xla(a,this.startValue,this.endValue)};g._isInRange=function(a){return yla(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return wla(a,this.comparisonStart,this.comparisonEnd)};g._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};
g._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};g._isComparisonEnd=function(a){return xla(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return yla(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};
g._isPreviewStart=function(a){return wla(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return xla(a,this.previewStart,this.previewEnd)};g._isInPreview=function(a){return yla(a,this.previewStart,this.previewEnd,this.isRange)};g._getCellFromElement=function(a){if("TD"===a.nodeName)var b=a;else"TD"===a.parentNode.nodeName&&(b=a.parentNode);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};
KB.\u0275fac=function(a){return new (a||KB)(C(sd),C(mg))};
KB.\u0275cmp=w({type:KB,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"},outputs:{selectedValueChange:"selectedValueChange",
previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[Fc],attrs:["mat-calendar-body",""],decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role",
"gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,b){a&1&&(M(0,sla,3,6,"tr",0),M(1,vla,3,2,"tr",1));a&2&&(E("ngIf",b._firstRowOffset<b.labelMinRequiredCells),B(1),E("ngForOf",b.rows))},dependencies:[Jx,Kx,Gx],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin: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;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 .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}.cdk-high-contrast-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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],
encapsulation:2,changeDetection:0});
var nqb=new od("MAT_DATE_RANGE_SELECTION_STRATEGY");new Rv;new Sv;
var LB=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Vw;this._userSelection=new Vw;this.activeDateChange=new Vw;this._activeDate=this._dateAdapter.today()};g=LB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(dg(null)).subscribe(function(){return a._init()})};
g.ngOnChanges=function(a){(a=a.comparisonStart||a.comparisonEnd)&&!a.firstChange&&this._setRanges(this.selected)};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};g._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._previewStart=this._previewEnd=null;this._changeDetectorRef.markForCheck()};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);nB(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,
1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,
1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:null==this._previewEnd||ki(a)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a}),a.preventDefault(),a.stopPropagation());return;default:return}nB(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){this._setRanges(this.selected);this._todayDate=this._getCellCompareValue(this._dateAdapter.today());this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=
(7+this._dateAdapter.getDayOfWeek(a)-this._dateAdapter.getFirstDayOfWeek())%7;this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._previewChanged=function(a){var b=a.event;a=a.value;this._rangeStrategy&&(b=this._rangeStrategy.createPreview(a?a.rawValue:null,this.selected,b),this._previewStart=this._getCellCompareValue(b.start),this._previewEnd=this._getCellCompareValue(b.end),this._changeDetectorRef.detectChanges())};g._getDateFromDayOfMonth=function(a){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=this._dateAdapter.getDayOfWeekNames("narrow"),c=this._dateAdapter.getDayOfWeekNames("long").map(function(d,e){return{long:d,narrow:b[e]}});this._weekdays=c.slice(a).concat(c.slice(0,a))};
g._createWeekCells=function(){var a=this._dateAdapter.getNumDaysInMonth(this.activeDate),b=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){7==d&&(this._weeks.push([]),d=0);var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),c+1),f=this._shouldEnableDate(e),h=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),k=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-
1].push(new mqb(c+1,b[c],h,f,k,this._getCellCompareValue(e),e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=nB(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=nB(this._dateAdapter,a,this.maxDate))&&(!this.dateFilter||this.dateFilter(a))};g._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};
g._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};g._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);a=this._dateAdapter.getDate(a);return(new Date(b,c,a)).getTime()}return null};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};
g._setRanges=function(a){this._rangeStart=this._rangeEnd=this._getCellCompareValue(a);this._isRange=!1;this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart);this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)};g._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};
oi.Object.defineProperties(LB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=mB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=oB(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=mB(this._dateAdapter,
this._dateAdapter.deserialize(a));this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});LB.\u0275fac=function(a){return new (a||LB)(C(zx),C(pB,8),C(lB,8),C(vA,8),C(nqb,8))};
LB.\u0275cmp=w({type:LB,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&Ef(KB,5);if(a&2){var c;Df(c=Gf())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Fc],decls:7,
vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],
["aria-hidden","true"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead",1)(2,"tr"),M(3,zla,5,2,"th",2),G(),F(4,"tr"),H(5,"th",3),G()(),F(6,"tbody",4),J("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),G()());a&2&&(B(3),E("ngForOf",b._weekdays),
B(3),E("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))},dependencies:[Kx,KB],encapsulation:2,changeDetection:0});
var MB=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Vw;this.yearSelected=new Vw;this.activeDateChange=new Vw;this._activeDate=this._dateAdapter.today()};g=MB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(dg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var b=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var c=0,d=[];24>c;c++)d.push(b+c),4==d.length&&(this._years.push(d.map(function(e){return a._createCellForYear(e)})),d=[]);this._changeDetectorRef.markForCheck()};
g._yearSelected=function(a){var b=a.value;a=this._dateAdapter.createDate(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);nB(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,
-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}nB(this._dateAdapter,
b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};g._getActiveCell=function(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};g._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate),c=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(a,b,1));return this._dateAdapter.createDate(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};
g._createCellForYear=function(a){var b=this._dateAdapter.createDate(a,0,1),c=this._dateAdapter.getYearName(b);b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new mqb(a,c,c,this._shouldEnableYear(a),b)};
g._shouldEnableYear=function(a){if(void 0===a||null===a||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=this._dateAdapter.createDate(a,0,1);this._dateAdapter.getYear(b)==a;b=this._dateAdapter.addCalendarDays(b,1))if(this.dateFilter(b))return!0;return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};
g._setSelectedYear=function(a){this._selectedYear=null;a&&(this._selectedYear=this._dateAdapter.getYear(a))};
oi.Object.defineProperties(MB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=mB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=oB(this._dateAdapter,a,this.minDate,this.maxDate);Bla(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=
mB(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});MB.\u0275fac=function(a){return new (a||MB)(C(zx),C(lB,8),C(vA,8))};
MB.\u0275cmp=w({type:MB,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&Ef(KB,5);if(a&2){var c;Df(c=Gf())&&(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,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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)}),G()());a&2&&(B(4),E("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[KB],encapsulation:2,changeDetection:0});
var NB=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=T.Subscription.EMPTY;this.selectedChange=new Vw;this.monthSelected=new Vw;this.activeDateChange=new Vw;this._activeDate=this._dateAdapter.today()};g=NB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(dg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);nB(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,
-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}nB(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),
this._focusActiveCellAfterViewChecked());a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(32===a.keyCode||13===a.keyCode)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today());this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var b=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})});this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};g._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};
g._getDateFromMonth=function(a){var b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);b=this._dateAdapter.getNumDaysInMonth(b);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=this._dateAdapter.createDate(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 mqb(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
g._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(void 0===a||null===a||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=this._dateAdapter.createDate(b,a,1);this._dateAdapter.getMonth(b)==a;b=this._dateAdapter.addCalendarDays(b,1))if(this.dateFilter(b))return!0;return!1};
g._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};g._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};g._isRtl=function(){return this._dir&&"rtl"===this._dir.value};g._setSelectedMonth=function(a){this._selectedMonth=this._getMonthInCurrentYear(a)};
oi.Object.defineProperties(NB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=mB(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=oB(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=
mB(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}}});NB.\u0275fac=function(a){return new (a||NB)(C(zx),C(pB,8),C(lB,8),C(vA,8))};
NB.\u0275cmp=w({type:NB,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&Ef(KB,5);if(a&2){var c;Df(c=Gf())&&(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,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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)}),G()());a&2&&(B(4),E("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:[KB],encapsulation:2,changeDetection:0});
var oqb=0,OB=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._buttonDescriptionId="mat-calendar-button-"+oqb++;this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
OB.prototype._isSameView=function(a,b){return"month"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(a)==this._dateAdapter.getMonth(b):"year"==this.calendar.currentView?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b):Bla(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
oi.Object.defineProperties(OB.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var a=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),
b=a+24-1;a=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1));b=this._dateAdapter.getYearName(this._dateAdapter.createDate(b,0,1));return a+" \u2013 "+b}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return"month"==this.calendar.currentView?"Choose month and year":"Choose date"}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Previous month",year:"Previous year","multi-year":"Previous 24 years"}[this.calendar.currentView]}},nextButtonLabel:{configurable:!0,
enumerable:!0,get:function(){return{month:"Next month",year:"Next year","multi-year":"Next 24 years"}[this.calendar.currentView]}}});OB.\u0275fac=function(a){return new (a||OB)(C(JB),C(dc(function(){return PB})),C(lB,8),C(pB,8),C(zx))};
OB.\u0275cmp=w({type:OB,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],
["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),F(3,"span"),O(4),G(),Qc(),F(5,"svg",3),H(6,"polygon",4),G()(),Rc(),H(7,"div",5),Be(8),F(9,"button",6),J("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,-1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,
"year"==b.calendar.currentView?-1:-24)}),G(),F(10,"button",7),J("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,"year"==b.calendar.currentView?1:24)}),G()()());a&2&&(B(2),ke("aria-label",b.periodButtonLabel)("aria-describedby",b._buttonDescriptionId),B(1),ke("id",b._buttonDescriptionId),B(1),He(b.periodButtonText),B(1),pe("mat-calendar-invert","month"!==b.calendar.currentView),
B(4),E("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),ke("aria-label",b.prevButtonLabel),B(1),E("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),ke("aria-label",b.nextButtonLabel))},dependencies:[FB],encapsulation:2,changeDetection:0});
var PB=function(a,b,c,d){var e=this;this._dateAdapter=b;this._dateFormats=c;this._changeDetectorRef=d;this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new Vw;this.yearSelected=new Vw;this.monthSelected=new Vw;this.viewChanged=new Vw(!0);this._userSelection=new Vw;this.stateChanges=new T.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=PB.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new aB(this.headerComponent||OB);this.activeDate=this.startAt||this._dateAdapter.today();this._currentView=this.startView};g.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};g.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
g.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
g._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};g._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};g._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};g._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};g._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
oi.Object.defineProperties(PB.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=mB(this._dateAdapter,this._dateAdapter.deserialize(a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=oB(this._dateAdapter,a,this.minDate,this.maxDate);this.stateChanges.next();this._changeDetectorRef.markForCheck()}},currentView:{configurable:!0,enumerable:!0,get:function(){return this._currentView},set:function(a){var b=
this._currentView!==a?a:null;this._currentView=a;this._moveFocusOnNextTick=!0;this._changeDetectorRef.markForCheck();b&&this.viewChanged.emit(b)}}});PB.\u0275fac=function(a){return new (a||PB)(C(JB),C(lB,8),C(pB,8),C(zx))};
PB.\u0275cmp=w({type:PB,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(Ef(LB,5),Ef(NB,5),Ef(MB,5));if(a&2){var c;Df(c=Gf())&&(b.monthView=c.first);Df(c=Gf())&&(b.yearView=c.first);Df(c=Gf())&&(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"},
outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Je([lqb]),Fc],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate",
"selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange",
"monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(a,b){a&1&&(M(0,Cla,0,0,"ng-template",0),F(1,"div",1),M(2,Dla,1,8,"mat-month-view",2),M(3,Ela,1,6,"mat-year-view",3),M(4,Fla,1,6,"mat-multi-year-view",4),G());a&2&&(E("cdkPortalOutlet",b._calendarHeaderPortal),B(1),E("ngSwitch",b.currentView),B(1),E("ngSwitchCase","month"),B(1),E("ngSwitchCase","year"),B(1),E("ngSwitchCase",
"multi-year"))},dependencies:[Mx,Nx,Yz,eB,LB,NB,MB],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.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}\n'],
encapsulation:2,changeDetection:0});
var QB=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new T.Subject;this._beforeClosed=new T.Subject;this._state=0;this.disableClose=b.disableClose;this.id=a.id;c._animationStateChanged.pipe(uf(function(e){return"opened"===e.state}),Tf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(uf(function(e){return"closed"===e.state}),Tf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});
a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});(0,T.merge)(this.backdropClick(),this.keydownEvents().pipe(uf(function(e){return 27===e.keyCode&&!d.disableClose&&!ki(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType="keydown"===e.type?"keyboard":"mouse",d.close(void 0))})};
QB.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(uf(function(c){return"closing"===c.state}),Tf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();Gpb(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};QB.prototype.afterOpened=function(){return this._afterOpened};var RB=function(a){return a._ref.closed};
g=QB.prototype;g.backdropClick=function(){return this._ref.backdropClick};g.keydownEvents=function(){return this._ref.keydownEvents};g.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):XA(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):Npb(b);this._ref.updatePosition()};g.updateSize=function(a,b){this._ref.updateSize(void 0===a?"":a,void 0===b?"":b)};g.addPanelClass=function(a){this._ref.addPanelClass(a)};
g.removePanelClass=function(a){this._ref.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};
var SB=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=!0;this.autoFocus="first-tabbable";this.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0};
var TB=function(a,b,c,d,e,f,h,k){this._isDisposed=!1;this._elementRef=a;this._focusTrapFactory=b;this._config=d;this._interactivityChecker=e;this._ngZone=f;this._overlayRef=h;this._focusMonitor=k;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=null;this._ariaLabelledBy=this._config.ariaLabelledBy||null;this._document=c};U(TB,cB);g=TB.prototype;g._contentAttached=function(){this._initializeFocusTrap();this._handleBackdropClicks();this._captureInitialFocus()};
g._captureInitialFocus=function(){this._trapFocus()};g.ngOnDestroy=function(){this._restoreFocus()};g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};g._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
g._forceFocus=function(a,b){this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var c=function(){a.removeEventListener("blur",c);a.removeEventListener("mousedown",c);a.removeAttribute("tabindex")};a.addEventListener("blur",c);a.addEventListener("mousedown",c)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._trapFocus=function(){var a=this,b=this._elementRef.nativeElement;switch(this._config.autoFocus){case !1:case "dialog":this._containsFocus()||b.focus();break;case !0:case "first-tabbable":Ry(this._focusTrap).then(function(c){c||a._focusDialogContainer()});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}};
g._restoreFocus=function(){var a=this._config.restoreFocus,b=null;"string"===typeof a?b=this._document.querySelector(a):"boolean"===typeof a?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&"function"===typeof b.focus){a=Vg();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Xz(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
g._focusDialogContainer=function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=Vg();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=Vg())};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};TB.\u0275fac=function(a){return new (a||TB)(C(sd),C(Sy),C(mi,8),C(SB),C(Ny),C(mg),C(PA),C(Wz))};
TB.\u0275cmp=w({type:TB,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&Ef(eB,7);if(a&2){var c;Df(c=Gf())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&ke("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},features:[ee],decls:1,
vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&M(0,Gla,0,0,"ng-template",0)},dependencies:[eB],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});
var pqb=new od("DialogScrollStrategy"),qqb=new od("DialogData"),rqb=new od("DefaultDialogConfig"),sqb={provide:pqb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}};
var UB=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new T.Subject;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){27!==d.keyCode||c.disableClose||ki(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})})};
g=UB.prototype;g.close=function(a,b){if(this.containerInstance){var c=this.closed;this.containerInstance._closeInteractionType=(null==b?void 0:b.focusOrigin)||"program";this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};g.updatePosition=function(){this.overlayRef.updatePosition()};g.updateSize=function(a,b){this.overlayRef.updateSize({width:void 0===a?"":a,height:void 0===b?"":b})};g.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};
g.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};
var tqb=0,VB=function(a,b,c,d,e,f){var h=this;this._overlay=a;this._injector=b;this._defaultOptions=c;this._parentDialog=d;this._overlayContainer=e;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new T.Subject;this._afterOpenedAtThisLevel=new T.Subject;this._ariaHiddenElements=new Map;(0,T.defer)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(dg(void 0))});this._scrollStrategy=f};g=VB.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new SB,b);b.id=b.id||"cdk-dialog-"+tqb++;b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new UB(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;this._attachDialogContent(a,e,d,b);this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology();this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);
return e};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){var a=this;Hla(this._openDialogsAtThisLevel,function(b){!1===b.config.closeOnDestroy&&a._removeOpenDialog(b,!1)});Hla(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new OA({positionStrategy:a.positionStrategy||Npb(XA(this._overlay.position().global())),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachContainer=function(a,b,c){var d,e,f=null!=(e=c.injector)?e:null==(d=c.viewContainerRef)?void 0:d.injector;b=[{provide:SB,useValue:c},{provide:UB,useValue:b},{provide:PA,useValue:a}];c.container?"function"===typeof c.container?d=c.container:(d=c.container.type,b.push.apply(b,v(c.container.providers(c)))):d=TB;c=new aB(d,c.viewContainerRef,kg({parent:f||this._injector,providers:b}),c.componentFactoryResolver);return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){var e=this._createInjector(d,b,c);a instanceof Af?(b={$implicit:d.data,dialogRef:b},d.templateContext&&(b=Object.assign({},b,"function"===typeof d.templateContext?d.templateContext():d.templateContext)),c.attachTemplatePortal(new bB(a,null,b,e))):(a=c.attachComponentPortal(new aB(a,d.viewContainerRef,e,d.componentFactoryResolver)),b.componentInstance=a.instance)};
g._createInjector=function(a,b,c){var d=a&&a.viewContainerRef&&a.viewContainerRef.injector,e=[{provide:qqb,useValue:a.data},{provide:UB,useValue:b}];a.providers&&("function"===typeof a.providers?e.push.apply(e,v(a.providers(b,a,c))):e.push.apply(e,v(a.providers)));!a.direction||d&&d.get(vA,null,8)||e.push({provide:vA,useValue:{value:a.direction,change:(0,T.of)()}});return kg({parent:d||this._injector,providers:e})};
g._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);-1<a&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(){var a=BA(this._overlayContainer);if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;-1<c;c--){var d=b[c];d===a||"SCRIPT"===d.nodeName||"STYLE"===d.nodeName||d.hasAttribute("aria-live")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
oi.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)(t(gB),t(Uv),t(rqb,8),t(VB,12),t(AA),t(pqb))};VB.\u0275prov=hc({token:VB,factory:VB.\u0275fac});
var WB=function(){};WB.\u0275fac=function(a){return new (a||WB)};WB.\u0275mod=xc({type:WB});WB.\u0275inj=ic({providers:[VB,sqb],imports:[jB,fB,eA,fB]});
var XB={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},uqb=Hh("dialogContainer",[Kh("void, exit",Jh({opacity:0,transform:"scale(0.7)"})),Kh("enter",Jh({transform:"none"})),Lh("* => enter",{type:3,steps:[Ih("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Jh({transform:"none",opacity:1})),Nh("@*",Mh())],options:null},XB),Lh("* => void, * => exit",{type:3,steps:[Ih("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Jh({opacity:0})),Nh("@*",Mh())],options:null},
XB)]);
var YB=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.maxWidth="80vw";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0;this.enterAnimationDuration=XB.params.enterAnimationDuration;this.exitAnimationDuration=XB.params.exitAnimationDuration};
var ZB=function(a,b,c,d,e,f,h,k){TB.call(this,a,b,c,d,e,f,h,k);this._animationStateChanged=new Vw};U(ZB,TB);ZB.prototype._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};ZB.prototype._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};ZB.\u0275fac=function(a){return new (a||ZB)(C(sd),C(Sy),C(mi,8),C(YB),C(Ny),C(mg),C(PA),C(Wz))};
ZB.\u0275cmp=w({type:ZB,selectors:[["ng-component"]],features:[ee],decls:0,vars:0,template:function(){},encapsulation:2});var $B=function(a,b,c,d,e,f,h,k,q){ZB.call(this,a,b,c,d,e,f,h,q);this._changeDetectorRef=k;this._state="enter"};U($B,ZB);$B.prototype._onAnimationDone=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._openAnimationDone(a):"exit"===b&&this._animationStateChanged.next({state:"closed",totalTime:a})};
$B.prototype._onAnimationStart=function(a){var b=a.toState;a=a.totalTime;"enter"===b?this._animationStateChanged.next({state:"opening",totalTime:a}):("exit"===b||"void"===b)&&this._animationStateChanged.next({state:"closing",totalTime:a})};$B.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
$B.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||XB.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||XB.params.exitAnimationDuration}}};$B.\u0275fac=function(a){return new (a||$B)(C(sd),C(Sy),C(mi,8),C(YB),C(Ny),C(mg),C(PA),C(zx),C(Wz))};
$B.\u0275cmp=w({type:$B,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(a,b){a&1&&kfa("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(ye("id",b._config.id),ke("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||
null),ze("@dialogContainer",b._getAnimationState()))},features:[ee],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&M(0,Ila,0,0,"ng-template",0)},dependencies:[eB],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],
encapsulation:2,data:{animation:[uqb]}});
var aC=new od("MatDialogData"),vqb=new od("mat-dialog-default-options"),wqb=new od("mat-dialog-scroll-strategy"),xqb={provide:wqb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},yqb=0,bC=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._defaultOptions=c;this._parentDialog=d;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new T.Subject;this._afterOpenedAtThisLevel=
new T.Subject;this._idPrefix="mat-dialog-";(0,T.defer)(function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe(dg(void 0))});this._scrollStrategy=f;this._dialog=b.get(VB)};g=bC.prototype;g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
g.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new YB,b);b.id=b.id||"mat-dialog-"+yqb++;b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();a=this._dialog.open(a,Object.assign({},b,{positionStrategy:Npb(XA(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:YB,useValue:b},{provide:SB,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(e,f,
h){d=new c._dialogRefConstructor(e,b,h);var k;d.updatePosition(null==(k=b)?void 0:k.position);return[{provide:c._dialogContainerType,useValue:h},{provide:c._dialogDataToken,useValue:f.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);RB(d).subscribe(function(){var e=c.openDialogs.indexOf(d);-1<e&&(c.openDialogs.splice(e,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};
g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
oi.Object.defineProperties(bC.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}}});bC.\u0275fac=function(){wd()};bC.\u0275prov=hc({token:bC,factory:bC.\u0275fac});var cC=function(a,b,c,d,e,f,h,k){bC.call(this,a,b,d,f,h,e,QB,$B,aC,k)};U(cC,bC);
cC.\u0275fac=function(a){return new (a||cC)(t(gB),t(Uv),t(hy,8),t(vqb,8),t(wqb),t(cC,12),t(AA),t(iw,8))};cC.\u0275prov=hc({token:cC,factory:cC.\u0275fac});
var zqb=0,dC=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};dC.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Jla(this._elementRef,this._dialog.openDialogs))};dC.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};dC.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=0===a.screenX&&0===a.screenY?"keyboard":"mouse";b.close(c)};
dC.\u0275fac=function(a){return new (a||dC)(C(QB,8),C(sd),C(cC))};dC.\u0275dir=w({type:dC,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b._onButtonClick(c)});a&2&&ke("aria-label",b.ariaLabel||null)("type",b.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Fc]});
var eC=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+zqb++};eC.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Jla(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){var b=a._dialogRef._containerInstance;b&&!b._ariaLabelledBy&&(b._ariaLabelledBy=a.id)})};eC.\u0275fac=function(a){return new (a||eC)(C(QB,8),C(sd),C(cC))};
eC.\u0275dir=w({type:eC,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&ye("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var fC=function(){};fC.\u0275fac=function(a){return new (a||fC)};fC.\u0275dir=w({type:fC,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var gC=function(){this.align="start"};
gC.\u0275fac=function(a){return new (a||gC)};gC.\u0275dir=w({type:gC,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&pe("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});
var hC=function(){};hC.\u0275fac=function(a){return new (a||hC)};hC.\u0275mod=xc({type:hC});hC.\u0275inj=ic({providers:[cC,xqb],imports:[WB,jB,fB,kB,kB]});
var Aqb=Rg({passive:!0}),iC=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
iC.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return T.EMPTY;var c=$g(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new T.Subject,e=function(f){"cdk-text-field-autofill-start"!==f.animationName||c.classList.contains("cdk-text-field-autofilled")?"cdk-text-field-autofill-end"===f.animationName&&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})}))};this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",e,Aqb);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,Aqb)}});return d};
iC.prototype.stopMonitoring=function(a){a=$g(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))};iC.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};iC.\u0275fac=function(a){return new (a||iC)(t(My),t(mg))};iC.\u0275prov=hc({token:iC,factory:iC.\u0275fac,providedIn:"root"});
var jC=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new T.Subject;this._enabled=!0;this._previousMinRows=-1;this._isViewInited=!1;this._handleFocusEvent=function(f){e._hasFocus="focus"===f.type};this._document=d;this._textareaElement=this._elementRef.nativeElement};g=jC.prototype;g._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};
g._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,kC(this),this._ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a._getWindow(),"resize").pipe(Of(16),fg(a._destroyed)).subscribe(function(){return kC(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,kC(this,!0))};
g.ngOnDestroy=function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent);this._textareaElement.removeEventListener("blur",this._handleFocusEvent);this._destroyed.next();this._destroyed.complete()};
g._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1);a.rows=1;a.style.position="absolute";a.style.visibility="hidden";a.style.border="none";a.style.padding="0";a.style.height="";a.style.minHeight="";a.style.maxHeight="";a.style.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
g._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
g._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&void 0==this._cachedPlaceholderHeight)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};g.ngDoCheck=function(){this._platform.isBrowser&&kC(this)};
var kC=function(a,b){b=void 0===b?!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(){"undefined"!==typeof requestAnimationFrame?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):setTimeout(function(){return a._scrollToCaretPosition(c)})}),
a._previousValue=d,a._previousMinRows=a._minRows}};g=jC.prototype;g.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)};g._noopInputHandler=function(){};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};g._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
oi.Object.defineProperties(jC.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=ah(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=ah(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=Yg(a);this._enabled!==a&&((this._enabled=a)?kC(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()}}});jC.\u0275fac=function(a){return new (a||jC)(C(sd),C(My),C(mg),C(mi,8))};
jC.\u0275dir=w({type:jC,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&J("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});
var lC=function(){};lC.\u0275fac=function(a){return new (a||lC)};lC.\u0275mod=xc({type:lC});lC.\u0275inj=ic({});
var Bqb=0,Cqb=new od("MatError"),mC=function(a,b){this.id="mat-error-"+Bqb++;a||b.nativeElement.setAttribute("aria-live","polite")};mC.\u0275fac=function(a){return new (a||mC)(bd("aria-live"),C(sd))};mC.\u0275dir=w({type:mC,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&ke("id",b.id)},inputs:{id:"id"},features:[Je([{provide:Cqb,useExisting:mC}])]});
var Dqb=Hh("transitionMessages",[Kh("enter",Jh({opacity:1,transform:"translateY(0%)"})),Lh("void => enter",[Jh({opacity:0,transform:"translateY(-5px)"}),Ih("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var nC=function(){};nC.\u0275fac=function(a){return new (a||nC)};nC.\u0275dir=w({type:nC});
var Eqb=0,Fqb=new od("MatHint"),oC=function(){this.align="start";this.id="mat-hint-"+Eqb++};oC.\u0275fac=function(a){return new (a||oC)};oC.\u0275dir=w({type:oC,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(a,b){a&2&&(ke("id",b.id)("align",null),pe("mat-form-field-hint-end","end"===b.align))},inputs:{align:"align",id:"id"},features:[Je([{provide:Fqb,useExisting:oC}])]});
var pC=function(){};pC.\u0275fac=function(a){return new (a||pC)};pC.\u0275dir=w({type:pC,selectors:[["mat-label"]]});
var qC=function(){};qC.\u0275fac=function(a){return new (a||qC)};qC.\u0275dir=w({type:qC,selectors:[["mat-placeholder"]]});
var Gqb=new od("MatPrefix");
var Hqb=new od("MatSuffix");
var Iqb=["connectionContainer"],Jqb=["inputContainer"],Kqb=["label"],Lqb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Mqb=0,Nqb=pi(function(a){this._elementRef=a},"primary"),Oqb=new od("MAT_FORM_FIELD_DEFAULT_OPTIONS"),rC=new od("MatFormField"),sC=function(a,b,c,d,e,f,h){a=Nqb.call(this,a)||this;a._changeDetectorRef=b;a._dir=c;a._defaults=d;a._platform=e;a._ngZone=f;a._outlineGapCalculationNeededImmediately=
!1;a._outlineGapCalculationNeededOnStable=!1;a._destroyed=new T.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+Mqb++;a._labelId="mat-form-field-label-"+Mqb++;a.floatLabel=a._getDefaultFloatLabelState();a._animationsEnabled="NoopAnimations"!==h;a.appearance=(null==d?void 0:d.appearance)||"legacy";d&&(a._hideRequiredMarker=!!d.hideRequiredMarker,d.color&&(a.color=a.defaultColor=d.color));return a};U(sC,Nqb);g=sC.prototype;
g._shouldAlwaysFloat=function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate};g._canLabelFloat=function(){return"never"!==this.floatLabel};g.getLabelId=function(){return this._hasFloatingLabel()?this._labelId:null};
g.ngAfterContentInit=function(){var a=this,b=this._control;b.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+b.controlType);b.stateChanges.pipe(dg(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(fg(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(fg(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
vi(a)})});(0,T.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(dg(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(dg(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(fg(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return vi(a)})}):vi(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&vi(this)};g.ngAfterViewInit=function(){this._subscriptAnimationState="enter";this._changeDetectorRef.detectChanges()};g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};g._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};
g._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)};g._hasLabel=function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)};g._shouldLabelFloat=function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())};g._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()};
g._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()};g._getDisplayedMessages=function(){return this._errorChildren&&0<this._errorChildren.length&&this._control.errorState?"error":"hint"};
g._animateAndLockLabel=function(){var a=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,T.fromEvent)(this._label.nativeElement,"transitionend").pipe(Tf()).subscribe(function(){a._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())};g._validatePlaceholders=function(){};g._processHints=function(){this._syncDescribedByIds()};g._validateHints=function(){};
g._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||"auto"};
g._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&"string"===typeof this._control.userAriaDescribedBy&&a.push.apply(a,v(this._control.userAriaDescribedBy.split(" ")));if("hint"===this._getDisplayedMessages()){var b=this._hintChildren?this._hintChildren.find(function(d){return"start"===d.align}):null,c=this._hintChildren?this._hintChildren.find(function(d){return"end"===d.align}):null;b?a.push(b.id):this._hintLabel&&a.push(this._hintLabelId);c&&a.push(c.id)}else this._errorChildren&&
a.push.apply(a,v(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};g._validateControlChild=function(){};
var vi=function(a){var b=a._label?a._label.nativeElement:null,c=a._connectionContainerRef.nativeElement;if("outline"===a.appearance&&a._platform.isBrowser)if(b&&b.children.length&&b.textContent.trim())if(a._isAttachedToDOM()){var d=0,e=0,f=c.querySelectorAll(".mat-form-field-outline-start"),h=c.querySelectorAll(".mat-form-field-outline-gap");if(a._label&&a._label.nativeElement.children.length){d=c.getBoundingClientRect();if(0===d.width&&0===d.height){a._outlineGapCalculationNeededOnStable=!0;a._outlineGapCalculationNeededImmediately=
!1;return}d=a._getStartEnd(d);e=b.children;c=a._getStartEnd(e[0].getBoundingClientRect());for(var k=b=0;k<e.length;k++)b+=e[k].offsetWidth;d=Math.abs(c-d)-5;e=0<b?.75*b+10:0}for(b=0;b<f.length;b++)f[b].style.width=d+"px";for(f=0;f<h.length;f++)h[f].style.width=e+"px";a._outlineGapCalculationNeededOnStable=a._outlineGapCalculationNeededImmediately=!1}else a._outlineGapCalculationNeededImmediately=!0;else for(a=c.querySelectorAll(".mat-form-field-outline-start, .mat-form-field-outline-gap"),h=0;h<a.length;h++)a[h].style.width=
"0"};sC.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};sC.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
oi.Object.defineProperties(sC.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b=this._appearance,c;this._appearance=a||(null==(c=this._defaults)?void 0:c.appearance)||"legacy";"outline"===this._appearance&&b!==a&&(this._outlineGapCalculationNeededOnStable=!0)}},hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Yg(a)}},hintLabel:{configurable:!0,
enumerable:!0,get:function(){return this._hintLabel},set:function(a){this._hintLabel=a;this._processHints()}},floatLabel:{configurable:!0,enumerable:!0,get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(a){a!==this._floatLabel&&(this._floatLabel=a||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},_control:{configurable:!0,enumerable:!0,get:function(){return this._explicitFormFieldControl||this._controlNonStatic||
this._controlStatic},set:function(a){this._explicitFormFieldControl=a}}});sC.\u0275fac=function(a){return new (a||sC)(C(sd),C(zx),C(vA,8),C(Oqb,8),C(My),C(mg),C(iw,8))};
sC.\u0275cmp=w({type:sC,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Ff(c,nC,5),Ff(c,nC,7),Ff(c,pC,5),Ff(c,pC,7),Ff(c,qC,5),Ff(c,Cqb,5),Ff(c,Fqb,5),Ff(c,Gqb,5),Ff(c,Hqb,5));if(a&2){var d;Df(d=Gf())&&(b._controlNonStatic=d.first);Df(d=Gf())&&(b._controlStatic=d.first);Df(d=Gf())&&(b._labelChildNonStatic=d.first);Df(d=Gf())&&(b._labelChildStatic=d.first);Df(d=Gf())&&(b._placeholderChild=d.first);Df(d=Gf())&&(b._errorChildren=d);Df(d=Gf())&&(b._hintChildren=d);Df(d=Gf())&&(b._prefixChildren=
d);Df(d=Gf())&&(b._suffixChildren=d)}},viewQuery:function(a,b){a&1&&(Ef(Iqb,7),Ef(Jqb,5),Ef(Kqb,5));if(a&2){var c;Df(c=Gf())&&(b._connectionContainerRef=c.first);Df(c=Gf())&&(b._inputContainerRef=c.first);Df(c=Gf())&&(b._label=c.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&pe("mat-form-field-appearance-standard","standard"==b.appearance)("mat-form-field-appearance-fill","fill"==b.appearance)("mat-form-field-appearance-outline","outline"==b.appearance)("mat-form-field-appearance-legacy",
"legacy"==b.appearance)("mat-form-field-invalid",b._control.errorState)("mat-form-field-can-float",b._canLabelFloat())("mat-form-field-should-float",b._shouldLabelFloat())("mat-form-field-has-label",b._hasFloatingLabel())("mat-form-field-hide-placeholder",b._hideControlPlaceholder())("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-focused",b._control.focused)("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"))("_mat-animation-noopable",!b._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[Je([{provide:rC,useExisting:sC}]),ee],ngContentSelectors:"* [matPrefix] mat-placeholder mat-label [matSuffix] mat-error mat-hint:not([align='end']) mat-hint[align='end']".split(" "),
decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",
4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled",
"id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(a,b){a&1&&(Ae(Lqb),F(0,"div",0)(1,"div",
1,2),J("click",function(c){return b._control.onContainerClick&&b._control.onContainerClick(c)}),M(3,Kla,9,0,"ng-container",3),M(4,Lla,2,1,"div",4),F(5,"div",5,6),Be(7),F(8,"span",7),M(9,Pla,5,16,"label",8),G()(),M(10,Qla,2,0,"div",9),G(),M(11,Rla,2,4,"div",10),F(12,"div",11),M(13,Sla,2,1,"div",12),M(14,Ula,5,2,"div",13),G()());a&2&&(B(3),E("ngIf","outline"==b.appearance),B(1),E("ngIf",b._prefixChildren.length),B(5),E("ngIf",b._hasFloatingLabel()),B(1),E("ngIf",b._suffixChildren.length),B(1),E("ngIf",
"outline"!=b.appearance),B(1),E("ngSwitch",b._getDisplayedMessages()),B(1),E("ngSwitchCase","error"),B(1),E("ngSwitchCase","hint"))},dependencies:[Gx,Mx,Nx,bA],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",
'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n',
'.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',
".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",
".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",
".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],
encapsulation:2,data:{animation:[Dqb]},changeDetection:0});
var tC=function(){};tC.\u0275fac=function(a){return new (a||tC)};tC.\u0275mod=xc({type:tC});tC.\u0275inj=ic({imports:[ay,kB,cA,kB]});
var Pqb=new od("MAT_INPUT_VALUE_ACCESSOR");
var Qqb="button checkbox file hidden image radio range reset submit".split(" "),Rqb=0,Sqb=ila(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new T.Subject}),uC=function(a,b,c,d,e,f,h,k,q,u){var y=Sqb.call(this,f,d,e,c)||this;y._elementRef=a;y._platform=b;y._autofillMonitor=k;y._formField=u;y._uid="mat-input-"+Rqb++;y.focused=!1;y.stateChanges=new T.Subject;y.controlType="mat-input";y.autofilled=!1;y._disabled=!1;y._type=
"text";y._readonly=!1;y._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(I){return gja().has(I)});y._iOSKeyupListener=function(I){I=I.target;I.value||0!==I.selectionStart||0!==I.selectionEnd||(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};c=y._elementRef.nativeElement;var D=c.nodeName.toLowerCase();y._inputValueAccessor=h||c;y._previousNativeValue=y.value;y.id=y.id;b.IOS&&q.runOutsideAngular(function(){a.nativeElement.addEventListener("keyup",y._iOSKeyupListener)});
y._isServer=!y._platform.isBrowser;y._isNativeSelect="select"===D;y._isTextarea="textarea"===D;y._isInFormField=!!u;y._isNativeSelect&&(y.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return y};U(uC,Sqb);g=uC.prototype;g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};g.ngOnChanges=function(){this.stateChanges.next()};
g.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)};g.ngDoCheck=function(){this.ngControl&&this.updateErrorState();this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};g.focus=function(a){this._elementRef.nativeElement.focus(a)};g._focusChanged=function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())};
g._onInput=function(){};g._dirtyCheckPlaceholder=function(){var a=this._formField,b,c=!a||"legacy"!==a.appearance||(null==(b=a._hasLabel)?0:b.call(a))?this.placeholder:null;c!==this._previousPlaceholder&&(a=this._elementRef.nativeElement,(this._previousPlaceholder=c)?a.setAttribute("placeholder",c):a.removeAttribute("placeholder"))};g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};
g._validateType=function(){Qqb.indexOf(this._type)};g._isNeverEmpty=function(){return-1<this._neverEmptyInputTypes.indexOf(this._type)};g._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focused||this.focus()};
g._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||1<a.size)};
oi.Object.defineProperties(uC.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=Yg(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 null!=(d=null!=(c=this._required)?c:
null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:onb(b))?d:!1},set:function(a){this._required=Yg(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&gja().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},value:{configurable:!0,enumerable:!0,get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},
readonly:{configurable:!0,enumerable:!0,get:function(){return this._readonly},set:function(a){this._readonly=Yg(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||!!(-1<a.selectedIndex&&b&&b.label)}return this.focused||
!this.empty}}});uC.\u0275fac=function(a){return new (a||uC)(C(sd),C(My),C(ny,10),C(ty,8),C(Cy,8),C(tB),C(Pqb,10),C(iC),C(mg),C(rC,8))};
uC.\u0275dir=w({type:uC,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(a,b){a&1&&J("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(ye("disabled",b.disabled)("required",b.required),ke("id",b.id)("data-placeholder",
b.placeholder)("name",b.name||null)("readonly",b.readonly&&!b._isNativeSelect||null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required),pe("mat-input-server",b._isServer)("mat-native-select-inline",b._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],
features:[Je([{provide:nC,useExisting:uC}]),ee,Fc]});
var vC=function(){};vC.\u0275fac=function(a){return new (a||vC)};vC.\u0275mod=xc({type:vC});vC.\u0275inj=ic({providers:[tB],imports:[lC,tC,kB,lC,tC]});
var Tqb={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 a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},wC=Tqb;wC=Tqb;
var xC=function(a){return function(){return a}},yC=function(){},iaa=function(a){return a},XCa=function(){var a=WCa;return function(){return!a.apply(this,arguments)}},zC=function(a,b){var c=0;return function(d){da.clearTimeout(c);var e=arguments;c=da.setTimeout(function(){a.apply(void 0,e)},b)}},Uqb=function(a){var b=0,c=!1,d=[],e=function(){b=0;c&&(c=!1,f())},f=function(){b=da.setTimeout(e,10);var h=d;d=[];a.apply(void 0,h)};return function(h){d=arguments;b?c=!0:f()}};
var Vqb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=th(xt);return!b.parentElement}),dp=function(a,b){if(Vqb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=th(b)},Wqb=function(a,b){b=b instanceof hh?b:Lj(b);a.action=ih(b)},Yqb=function(a,b){var c=Xqb(a.ownerDocument&&a.ownerDocument.defaultView);
c&&a.setAttribute("nonce",c);a.src=Qja(b)},Yna=function(a,b,c,d){a=a instanceof hh?a:Lj(a);b=b||da;c=c instanceof jh?kh(c):c||"";return void 0!==d?b.open(ih(a),c,d):b.open(ih(a),c)},Zqb=/^[\w+/_-]+[=]{0,2}$/,Xqb=function(a){a=(a||da).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Zqb.test(a)?a:"":""};
var $qb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},AC=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Mj=function(a){return a=lib(a)},arb=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},cSa=function(a,b,c){return a.replace(new RegExp(Un(b),"g"),c.replace(/\$/g,
"$$$$"))},Un=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},BC=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},CC=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");-1===c&&(c=a.length);var d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+BC("0",Math.max(0,b-c))+a},Yi=function(a){return null==a?"":String(a)},DC=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^fu()).toString(36)},EC=function(a){var b=Number(a);return 0==b&&Zi(a)?NaN:b},Pk=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Oi=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},brb=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
var crb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),drb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,erb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,frb=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31},grb=function(a){var b=new Date(fu()),c;if(c=a.getDate()==b.getDate())if(b=b||new Date(fu()),c=a.getMonth()==b.getMonth())b=b||new Date(fu()),c=a.getFullYear()==b.getFullYear();
return c},hrb=function(a,b,c,d,e){a=new Date(a,b,c);d=void 0!==d?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)},to=function(a,b,c,d,e,f){"string"===typeof a?(this.years="y"==a?b:0,this.months="m"==a?b:0,this.days="d"==a?b:0,this.hours="h"==a?b:0,this.minutes="n"==a?b:0,this.seconds="s"==a?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)};
to.prototype.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(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&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("")};to.prototype.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};to.prototype.clone=function(){return new to(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
to.prototype.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 Ni=function(a,b,c){"number"===typeof a?(this.date=irb(a,b||0,c||1),FC(this,c||1)):Ga(a)?(this.date=irb(a.getFullYear(),a.getMonth(),a.getDate()),FC(this,a.getDate())):(this.date=new Date(fu()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),FC(this,a))},irb=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};g=Ni.prototype;g.firstDayOfWeek_=wC.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=wC.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new Ni(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getYear=function(){return this.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};
g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};g.getUTCDay=function(){return this.date.getDay()};g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.setFullYear=function(a){this.date.setFullYear(a)};g.setYear=function(a){this.setFullYear(a)};g.setMonth=function(a){this.date.setMonth(a)};g.setDate=function(a){this.date.setDate(a)};g.setTime=function(a){this.date.setTime(a)};g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};g.setUTCMonth=function(a){this.date.setUTCMonth(a)};g.setUTCDate=function(a){this.date.setUTCDate(a)};
g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+12*a.years,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(frb(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),FC(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+CC(Math.abs(b),c?6:4),CC(this.getMonth()+1,2),CC(this.getDate(),2)].join(a?"-":"")};g.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.toIsoString()};var FC=function(a,b){a.getDate()!=b&&(b=a.getDate()<b?1:-1,a.date.setUTCHours(a.date.getUTCHours()+b))};Ni.prototype.valueOf=function(){return this.date.valueOf()};
var GC=function(a,b,c,d,e,f,h){this.date="number"===typeof a?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a&&a.getTime?a.getTime():fu())};hu(GC,Ni);g=GC.prototype;g.getHours=function(){return this.date.getHours()};g.getMinutes=function(){return this.date.getMinutes()};g.getSeconds=function(){return this.date.getSeconds()};g.getMilliseconds=function(){return this.date.getMilliseconds()};g.getUTCDay=function(){return this.date.getUTCDay()};g.getUTCHours=function(){return this.date.getUTCHours()};
g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getUTCSeconds=function(){return this.date.getUTCSeconds()};g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};g.setHours=function(a){this.date.setHours(a)};g.setMinutes=function(a){this.date.setMinutes(a)};g.setSeconds=function(a){this.date.setSeconds(a)};g.setMilliseconds=function(a){this.date.setMilliseconds(a)};g.setUTCHours=function(a){this.date.setUTCHours(a)};g.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
g.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};g.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};g.add=function(a){Ni.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
g.toIsoString=function(a){var b=Ni.prototype.toIsoString.call(this,a);return a?b+"T"+CC(this.getHours(),2)+":"+CC(this.getMinutes(),2)+":"+CC(this.getSeconds(),2):b+"T"+CC(this.getHours(),2)+CC(this.getMinutes(),2)+CC(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new GC(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
var jrb=function(){},so=function(a){if("number"==typeof a){var b=new jrb;b.standardOffset_=a;var c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",CC(c,2));c=d.join("")}b.timeZoneId_=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=krb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new jrb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},krb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(CC(Math.floor(a/60)%100,2),":",CC(a%60,2));return b.join("")},HC=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 0==c?0:a.transitions_[c-1]};
jrb.prototype.getOffset=function(a){a=this.standardOffset_-HC(this,a);return-1440===a?0:a};
var xi=function(a){this.patternParts_=[];this.dateTimeSymbols_=wC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},lrb=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEabBhKHcLQdmsvVwzZ]+/],IC=function(a){return a.getHours?a.getHours():0};
xi.prototype.applyPattern_=function(a){for(mrb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<lrb.length;++c){var d=a.match(lrb[c]);if(d){var e=d[0];a=a.substring(e.length);0==c&&("''"==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("mb`"+a);}};
xi.prototype.format=function(a,b){if(!a)throw Error("nb");var c=b?6E4*(a.getTimezoneOffset()-b.getOffset(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var h=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(nrb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
xi.prototype.applyStandardPattern_=function(a){if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else if(8>a)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(12>a)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{this.applyStandardPattern_(10);return}this.applyPattern_(b)};
var KC=function(a,b){return JC(b,a.dateTimeSymbols_)},mrb=!1,JC=function(a,b){a=String(a);b=b||wC;if(void 0===b.ZERODIGIT)return a;for(var c=[],d=0;d<a.length;d++){var e=a.charCodeAt(d);c.push(48<=e&&57>=e?String.fromCharCode(b.ZERODIGIT+e-48):a.charAt(d))}return c.join("")},LC=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("ob");},nrb=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=h?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];
case "y":return c=d.getFullYear(),0>c&&(c=-c),2==h&&(c%=100),KC(a,CC(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=hrb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),KC(a,CC(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:a=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:a=a.dateTimeSymbols_.MONTHS[c];break a;case 3:a=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:a=KC(a,CC(c+1,h))}return a;
case "k":return LC(e),KC(a,CC(IC(e)||24,h));case "S":return KC(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?CC(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return LC(e),h=IC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "b":return LC(e),h=IC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "B":return LC(e),h=IC(e),a.dateTimeSymbols_.AMPMS[12<=h&&24>h?1:0];case "h":return LC(e),KC(a,CC(IC(e)%12||12,
h));case "K":return LC(e),KC(a,CC(IC(e)%12,h));case "H":return LC(e),KC(a,CC(IC(e),h));case "c":a:switch(c=d.getDay(),h){case 5:a=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:a=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:a=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:a=KC(a,CC(c,1))}return a;case "L":a:switch(c=d.getMonth(),h){case 5:a=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:a=a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:a=
a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:a=KC(a,CC(c+1,h))}return a;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return KC(a,CC(d.getDate(),h));case "m":return LC(e),KC(a,CC(e.getMinutes(),h));case "s":return LC(e),KC(a,CC(e.getSeconds(),h));case "v":return(f||so(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||so(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<HC(a,c)?void 0!==a.tzNamesExt_.DST_GENERIC_LOCATION?
a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:void 0!==a.tzNamesExt_.STD_GENERIC_LOCATION?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=e.getMonth(),d=e.getDate(),c=hrb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),KC(a,CC(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||so(c.getTimezoneOffset()),4>h?a.tzNames_[0<HC(a,
c)?2:0]:a.tzNames_[0<HC(a,c)?3:1];case "Z":return d=f||so(c.getTimezoneOffset()),4>h?(a=-d.getOffset(c),h=[0>a?"-":"+"],a=Math.abs(a),h.push(CC(Math.floor(a/60)%100,2),CC(a%60,2)),a=h.join("")):a=KC(a,krb(d.getOffset(c))),a;default:return""}};
var wi=function(a,b,c){this.dialogRef=a;this.dateAdapter=c;this.minDate=this.getDate(b.minDate);this.inputDate=this.getDate(b.initialDate);this.initialTime=b.initialTime;this.hideTimePicker=!!b.hideTimePicker;this.timeFormControl=new uy(b.initialTime,{validators:[ly,this.dateTimeMustBeInTheFuture.bind(this)]});this.dateAdapter.setLocale(navigator.languages&&navigator.languages[0]||"en-US")};wi.prototype.onSaveClick=function(){var a=orb(this.inputDate,this.timeFormControl.value).getTime();this.dialogRef.close(a)};
wi.prototype.dateTimeMustBeInTheFuture=function(a){var b=new Date;return orb(this.inputDate,a.value)<=b?(a={},a.dateTimeMustBeInTheFuture=!0,a):null};var orb=function(a,b){var c=r(b.split(":"));b=c.next().value;c=c.next().value;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))};wi.prototype.getDate=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getMilliseconds())};
oi.Object.defineProperties(wi.prototype,{hasRequiredError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("required")}},hasDatetimeNotInTheFutureError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("dateTimeMustBeInTheFuture")}},hasFormError:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError||this.hasDatetimeNotInTheFutureError}},formErrorMessage:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError?
"Time is required":this.hasDatetimeNotInTheFutureError?"Time must be in the future":""}}});wi.\u0275fac=function(a){return new (a||wi)(C(QB),C(aC),C(lB))};
wi.\u0275cmp=w({type:wi,selectors:[["datetime-picker-dialog"]],decls:12,vars:7,consts:[["cdkTrapFocus","",1,"dialog_container"],["mat-dialog-title","",1,"title"],[1,"calendar",3,"startAt","selected","minDate","selectedChange"],["cdkFocusInitial","","type","time","matInput","","class","time-input gmat-body-2","required","",3,"formControl",4,"ngIf"],["class","time-error gmat-body2",4,"ngIf"],[1,"dialog-buttons"],["mat-button","",1,"cancel-button","gmat-button",3,"click"],["mat-button","",1,"save-button",
"gmat-button",3,"disabled","click"],["cdkFocusInitial","","type","time","matInput","","required","",1,"time-input","gmat-body-2",3,"formControl"],[1,"time-error","gmat-body2"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"h4",1),O(2),G(),F(3,"mat-dialog-content")(4,"mat-calendar",2),J("selectedChange",function(c){return b.inputDate=c})("selectedChange",function(){if(!b.hideTimePicker){var c=new Date;!grb(b.inputDate)&&b.timeFormControl.pristine&&b.timeFormControl.setValue(b.initialTime);if(grb(b.inputDate)&&
orb(b.inputDate,b.timeFormControl.value)<=c){23===c.getHours()?c.setMinutes(59):c.setHours(c.getHours()+1);var d=new xi("HH:mm");b.timeFormControl.setValue(d.format(c))}}Lg(b.timeFormControl)}),G(),M(5,Vla,1,1,"input",3),M(6,Wla,2,1,"mat-error",4),G(),F(7,"mat-dialog-actions",5)(8,"button",6),J("click",function(){b.dialogRef.close()}),O(9,"Cancel"),G(),F(10,"button",7),J("click",function(){return b.onSaveClick()}),O(11," Save "),G()()());a&2&&(B(2),He(b.hideTimePicker?"Pick date":"Pick date & time"),
B(2),E("startAt",b.inputDate)("selected",b.inputDate)("minDate",b.minDate),B(1),E("ngIf",!b.hideTimePicker),B(1),E("ngIf",b.hasFormError),B(4),E("disabled",b.hasFormError))},dependencies:[Gx,Mg,py,Gy,FB,PB,eC,fC,gC,mC,uC,By,Ty],styles:[".dark-mode,   :root{--g3c-shared-default-surface:var(--default-surface,#fff);--g3c-shared-hairline:var(--hairline,#dadce0);--g3c-shared-default-text:var(--default-text,#202124);--g3c-shared-primary-default:var(--primary-default,#1a73e8)}  .dark-mode{--g3c-shared-default-surface:var(--default-surface,#28292c);--g3c-shared-hairline:var(--hairline,#5f6368);--g3c-shared-default-text:var(--default-text,#e8eaed);--g3c-shared-primary-default:var(--primary-default,#8ab4f8)}.calendar[_ngcontent-%COMP%]{height:460px}.time-input[_ngcontent-%COMP%]{background:var(--g3c-shared-default-surface);border:1px solid var(--g3c-shared-hairline);border-radius:4px;box-sizing:border-box;color:var(--g3c-shared-default-text);font-size:14px;height:36px;padding:8px;width:120px}.time-input[_ngcontent-%COMP%]:focus{border:2px solid var(--g3c-shared-primary-default);outline:none}input[type=time][_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.time-error[_ngcontent-%COMP%]{margin-left:6px}.dialog-buttons[_ngcontent-%COMP%]{align-content:center;align-items:center;justify-content:flex-end}.time-input[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;pointer-events:none}"],
changeDetection:0});
var prb={TASK_STATUS_UNSPECIFIED:0,PINNED:1,SNOOZED:2,ARCHIVED:3,MUTED:5,INCOMING:6,0:"TASK_STATUS_UNSPECIFIED",1:"PINNED",2:"SNOOZED",3:"ARCHIVED",5:"MUTED",6:"INCOMING"},qrb={G3C_WIDGET_LOADED:"loaded",G3C_WIDGET_MENU_OPENED:"menuOpened",G3C_WIDGET_TASK_ADDED_TO_G3C:"taskAddedToG3c",G3C_WIDGET_TASK_PINNED:"taskPinned",G3C_WIDGET_TASK_SNOOZED:"taskSnoozed",G3C_WIDGET_TASK_ARCHIVED:"taskArchived",G3C_WIDGET_TASK_MUTED:"taskMuted",G3C_WIDGET_TASK_MOVED_TO_INBOX:"taskMovedToInbox",G3C_WIDGET_OPEN_IN_G3C_CLICKED:"openInG3cClicked",
G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN:"featureTooltipWithoutTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED:"featureTooltipWithoutTaskActionsAcked",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN:"featureTooltipWithTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED:"featureTooltipWithTaskActionsAcked"},rrb={G3C_WIDGET_WITHOUT_TASK_ACTIONS:"g3cWidgetWithoutTaskActions",G3C_WIDGET_WITH_TASK_ACTIONS:"g3cWidgetWithTaskActions"};
var srb={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 MC=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Vw;this.action=new Vw;this.pointerPosition=2;this.color="blue";this.actionBtnText="";this.Position=srb;this.width=272;this.previouslyFocusedElement=null;this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.dismissIfEscape=function(e){"Escape"===e.key&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;null!=e&&
e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=d.document.activeElement)};this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};MC.prototype.ngAfterContentInit=function(){Py(this.focusTrap);this.setPreviouslyFocusedElement();Ry(this.focusTrap)};
MC.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
MC.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)};oi.Object.defineProperties(MC.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+64*a}}});
MC.\u0275fac=function(a){return new (a||MC)(C(mi),C(jA),C(sd))};
MC.\u0275cmp=w({type:MC,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&pe("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"},outputs:{dismiss:"dismiss",action:"action"},features:[Je([{provide:wpb,useValue:{preventFocus:function(){},allowFocus:function(){}}},jA])],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,"color","click"],["mat-button","",1,"action-button",3,"click"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1),H(2,"div",2),G(),Be(3),F(4,"div",3),M(5,$la,2,1,"button",4),F(6,"button",5),J("click",function(){return b.dismissTooltip()}),O(7," Got it "),G()()());a&2&&(oe("width",b.width,
"px"),E("ngClass",b.color),B(5),E("ngIf",b.actionBtnText),B(1),E("color","white"===b.color?"primary":""))},dependencies:[Ty,Jx,Gx,FB],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,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,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(2*var(--pointer-edge-offset) + 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 .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 NC=function(){};NC.\u0275fac=function(a){return new (a||NC)};NC.\u0275mod=xc({type:NC});NC.\u0275inj=ic({});
var OC=function(){this.anchorMap=new Map},PC=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new T.ReplaySubject(1),destroyed$:new T.Subject,dismissTooltip$:new T.Subject};a.anchorMap.set(b,c);return c},trb=function(a,b,c){PC(a,b).created$.next(c)},urb=function(a,b){PC(a,b).destroyed$.next();PC(a,b).created$.next(void 0)};OC.prototype.dismissTooltip=function(a){PC(this,a).dismissTooltip$.next()};OC.\u0275fac=function(a){return new (a||OC)};
OC.\u0275prov=hc({token:OC,factory:OC.\u0275fac,providedIn:NC});
var vrb={pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},wrb=[{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},{pointerPosition:1,connectedPosition:{originX:"center",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}}],xrb=[{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:12}},vrb,{pointerPosition:1,connectedPosition:{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}],yrb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",
overlayY:"top",offsetY:-33}},{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}}],zrb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetY:-12}},{pointerPosition:7,
connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetY:12}}];
var QC=function(){};QC.\u0275fac=function(a){return new (a||QC)};QC.\u0275mod=xc({type:QC});QC.\u0275inj=ic({});
var RC=function(){},Brb=function(a,b){return Arb(a,b).map(function(c){return c.connectedPosition})},Crb=function(a,b,c){a=Arb(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("pb`"+JSON.stringify(c));return a.pointerPosition},Arb=function(a,b){b=Drb(b).filter(function(c){return!a.includes(c)});return a.concat(b)},Drb=function(a){var b,c=null==a?void 0:null==(b=a.nativeElement)?void 0:b.clientWidth,d;a=null==a?void 0:null==(d=a.nativeElement)?void 0:d.clientHeight;return(void 0!==
c&&60>c?wrb:xrb).concat(void 0!==a&&60>a?yrb:zrb)};RC.\u0275fac=function(a){return new (a||RC)};RC.\u0275prov=hc({token:RC,factory:RC.\u0275fac,providedIn:QC});
var SC={};SC.AssertionError=ca;SC.ENABLE_ASSERTS=!1;SC.assert=function(a){return a};SC.assertArray=function(a){return a};SC.assertBoolean=function(a){return a};SC.assertElement=function(a){return a};SC.assertExists=function(a){return a};SC.assertFinite=function(a){return a};SC.assertFunction=function(a){return a};SC.assertInstanceof=function(a){return a};SC.assertNumber=function(a){return a};SC.assertObject=function(a){return a};SC.assertString=function(a){return a};SC.fail=function(){};
var Erb=["template"],TC=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 T.Subject;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnText="";this.dismiss=new Vw;this.beforeShown=new Vw;this.action=new Vw;this.pointerPosition=0;this.destroyed$=new T.ReplaySubject;this.init$=new T.ReplaySubject;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=
function(){f.overlayRef&&f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var h;null==(h=f.overlayRef)||h.dispose();f.overlayRef=void 0}};TC.prototype.ngOnChanges=function(a){if(a.customPositions){var b;null==(b=this.overlayRef)||Hpb(b,Frb(this))}};
TC.prototype.ngOnInit=function(){var a=PC(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;Grb(this,a.created$);b.pipe(fg(this.destroyed$)).subscribe(this.hideFeatureTooltip);Hrb(this,c)};TC.prototype.ngAfterViewInit=function(){this.init$.next()};TC.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var Grb=function(a,b){a.open$.pipe(zha(a.init$),gg(function(){a.beforeShown.emit()}),eg(function(){return b.pipe(fg(a.dismiss))}),fg(a.destroyed$),uf(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.anchor=c;c=c.nativeElement;if(a.hasBackdrop){var d=c.style,e=d.position;a.savedAnchorStyles={zIndex:d.zIndex,position:e};if("static"===e||""===e)c.style.position="relative";c.style.zIndex="1001"}a.overlayRef=a.overlay.create({positionStrategy:Frb(a),scrollStrategy:a.getScrollStrategy(),
minWidth:"fit-content",hasBackdrop:a.hasBackdrop});var f;null==(f=a.overlayRef)||f.attach(new bB(a.templateRef,a.containerRef))})},Hrb=function(a,b){b.pipe(fg(a.destroyed$),uf(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};TC.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};
TC.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("qb");return RA(ZA(this.overlay.position(),this.anchor),Brb(this.customPositions,this.anchor))};var Frb=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=Crb(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};TC.prototype.isVisible=function(){return!!this.overlayRef};
TC.\u0275fac=function(a){return new (a||TC)(C(OC),C(gB),C(Bf),C(mg),C(zx),C(RC))};
TC.\u0275cmp=w({type:TC,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&Ef(Erb,5);if(a&2){var c;Df(c=Gf())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},features:[Fc],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",""],[3,"actionBtnText","color",
"pointerPosition","widthOffset","action","dismiss"]],template:function(a){a&1&&(Ae(),M(0,ama,2,4,"ng-template",null,0,Mf))},dependencies:[MC],encapsulation:2,changeDetection:0});
var UC=function(){};UC.\u0275fac=function(a){return new (a||UC)};UC.\u0275mod=xc({type:UC});UC.\u0275inj=ic({});
var VC=function(){};VC.\u0275fac=function(a){return new (a||VC)};VC.\u0275mod=xc({type:VC});VC.\u0275inj=ic({imports:[UC]});
var WC=function(){};WC.prototype.getValue=function(a){a=window.localStorage.getItem(a);return(0,T.of)(a?JSON.parse(a):null)};WC.prototype.getValues=function(a){return(0,T.of)(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))};WC.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return(0,T.of)(void 0)};WC.\u0275fac=function(a){return new (a||WC)};
WC.\u0275prov=hc({token:WC,factory:WC.\u0275fac,providedIn:UC});
var Irb=function(a){this.cellValue_=a};
var XC=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=XC.prototype;g.addCell=function(a){var b=tc.apply(1,arguments),c=this.getCells(b);c?c.push(new Irb(a)):this.setCell(a,b)};g.setCell=function(a){this.cellMap_.set(this.getKey_(tc.apply(1,arguments)),[new Irb(a)])};g.getCells=function(){var a=this.getKey_(tc.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(tc.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=tc.apply(0,arguments);return a?a.join(","):"key"};
var YC=function(a,b){XC.call(this,a,3,b)};U(YC,XC);YC.prototype.incrementCounter=function(){this.incrementCounterBy(1,tc.apply(0,arguments))};YC.prototype.incrementCounterBy=function(a){var b=tc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};
var ZC=function(a,b){XC.call(this,a,2,b)};U(ZC,XC);ZC.prototype.record=function(a){this.addCell(a,tc.apply(1,arguments))};
var $C=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};$C.prototype.disposed_=!1;$C.prototype.isDisposed=function(){return this.disposed_};$C.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var aD=function(a,b){b=eu(yi,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};$C.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var bD=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};bD.prototype.stopPropagation=function(){this.propagationStopped_=!0};bD.prototype.preventDefault=function(){this.defaultPrevented=!0};
var cD=[],dD=[],Jrb=!1,eD=function(a){cD[cD.length]=a;if(Jrb)for(var b=0;b<dD.length;b++)a(du(dD[b].wrap,dD[b]))};
var Krb=function(a){var b=da.onerror;da.onerror=function(c,d,e,f,h){b&&b(c,d,e,f,h);a({message:c,fileName:d,line:e,lineNumber:e,col:f,error:h});return!1}},Mrb=function(a){var b=Qo("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||
a.sourceURL||da.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Lrb(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,fD[c])c=fD[c];else{c=String(c);if(!fD[c]){var f=/function\s+([^\(]+)/m.exec(c);fD[c]=f?f[1]:"[Anonymous]"}c=fD[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&
Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}},Lrb=function(a,b){b||(b={});b[Nrb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Nrb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Lrb(a,b));return c},Nrb=function(a){var b="";
"function"===typeof a.toString&&(b=""+a);return b+a.stack},fD={};
var Orb=function(){if(!da.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{da.addEventListener("test",function(){},b),da.removeEventListener("test",function(){},b)}catch(c){}return a}();
var gD=function(a,b){bD.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.pointerId=0;this.pointerType="";this.event_=null;a&&this.init(a,b)};hu(gD,bD);var Prb={2:"touch",3:"pen",4:"mouse"};
gD.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)?nu&&(qib(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=ou||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=ou||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?
a.pointerType:Prb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&gD.superClass_.preventDefault.call(this)};gD.prototype.stopPropagation=function(){gD.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};gD.prototype.preventDefault=function(){gD.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};
var Qrb="closure_listenable_"+(1E6*Math.random()|0),hD=function(a){return!(!a||!a[Qrb])};
var Rrb=0;
var Srb=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=++Rrb;this.removed=this.callOnce=!1},iD=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};
var jD=function(a){this.src=a;this.listeners={};this.typeCount_=0};jD.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=Trb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new Srb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
jD.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Trb(e,b,c,d);return-1<b?(iD(e[b]),ya(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var Urb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=za(a.listeners[c],b);d&&(iD(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
jD.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,iD(d[e]);delete this.listeners[c];this.typeCount_--}return b};jD.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Trb(a,b,c,d));return-1<e?a[e]:null};
jD.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return qja(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var Trb=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 Vrb="closure_lm_"+(1E6*Math.random()|0),Wrb={},Xrb=0,Vo=function(a,b,c,d,e){if(d&&d.once)return kD(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Vo(a,b[f],c,d,e);return null}c=lD(c);return hD(a)?a.listen(b,c,Ga(d)?!!d.capture:!!d,e):Yrb(a,b,c,!1,d,e)},Yrb=function(a,b,c,d,e,f){if(!b)throw Error("rb");var h=Ga(e)?!!e.capture:!!e,k=mD(a);k||(a[Vrb]=k=new jD(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=Zrb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Orb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($rb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("sb");Xrb++;return c},Zrb=function(){var a=asb,b=function(c){return a.call(b.src,b.listener,c)};return b},kD=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)kD(a,b[f],c,d,e);return null}c=lD(c);return hD(a)?a.listenOnce(b,c,Ga(d)?!!d.capture:!!d,e):Yrb(a,b,c,!0,d,e)},nD=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)nD(a,b[f],c,d,e);else d=Ga(d)?!!d.capture:!!d,c=lD(c),hD(a)?a.unlisten(b,c,d,e):a&&(a=mD(a))&&(b=a.getListener(b,c,d,e))&&oD(b)},oD=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(hD(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent($rb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Xrb--;(c=mD(b))?(Urb(c,a),0==c.typeCount_&&(c.src=null,b[Vrb]=null)):iD(a);
return!0},$rb=function(a){return a in Wrb?Wrb[a]:Wrb[a]="on"+a},asb=function(a,b){if(a.removed)a=!0;else{b=new gD(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&oD(a);a=c.call(d,b)}return a},mD=function(a){a=a[Vrb];return a instanceof jD?a:null},bsb="__closure_events_fn_"+(1E9*Math.random()>>>0),lD=function(a){if("function"===typeof a)return a;a[bsb]||(a[bsb]=function(b){return a.handleEvent(b)});return a[bsb]};eD(function(a){asb=a(asb)});
var Uo=function(){$C.call(this);this.eventTargetListeners_=new jD(this);this.actualEventTarget_=this;this.parentEventTarget_=null};hu(Uo,$C);Uo.prototype[Qrb]=!0;g=Uo.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Vo(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){nD(this,a,b,c,d)};
g.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if("string"===typeof a)a=new bD(a,c);else if(a instanceof bD)a.target=a.target||c;else{var e=a;a=new bD(d,c);zja(a,e)}e=!0;if(b)for(var f=b.length-1;!a.propagationStopped_&&0<=f;f--){var h=a.currentTarget=b[f];e=h.fireListeners(d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=h.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=h.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)h=a.currentTarget=b[f],e=h.fireListeners(d,!1,a)&&e;return e};g.disposeInternal=function(){Uo.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};g.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};g.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
g.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};g.unlistenByKey=function(a){return Urb(this.eventTargetListeners_,a)};g.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
g.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=!1!==h.call(k,c)&&d}}return d&&!c.defaultPrevented};g.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
g.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(void 0!==a?String(a):void 0,b)};
var pD=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};pD.prototype.get=function(){if(0<this.occupants_){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};pD.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};
try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var csb=lu||ou;
var dsb=function(a,b){return a+Math.random()*(b-a)};
var Wq=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};Wq.prototype.clone=function(){return new Wq(this.x,this.y)};Wq.prototype.equals=function(a){return a instanceof Wq&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Xq=function(a,b){return new Wq(a.x-b.x,a.y-b.y)};g=Wq.prototype;g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.translate=function(a,b){a instanceof Wq?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),"number"===typeof b&&(this.y+=b));return this};g.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};
var qD=function(a,b){this.width=a;this.height=b},USa=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=qD.prototype;g.clone=function(){return new qD(this.width,this.height)};g.area=function(){return this.width*this.height};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!this.area()};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};
var cp=function(a){return a?new rD(sD(a)):dib||(dib=new rD)},tD=function(a,b){return"string"===typeof b?a.getElementById(b):b},uD=function(a,b){return(b||document).getElementsByTagName(String(a))},fsb=function(a,b){bh(b,function(c,d){c&&"object"==typeof c&&c.implementsGoogStringTypedString&&(c=c.getTypedStringValue());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:esb.hasOwnProperty(d)?a.setAttribute(esb[d],c):Qi(d,"aria-")||Qi(d,"data-")?a.setAttribute(d,c):a[d]=c})},
esb={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"},wD=function(a){a=(a||window).document;a=vD(a)?a.documentElement:a.body;return new qD(a.clientWidth,a.clientHeight)},yD=function(a){var b=xD(a);a=a.parentWindow||a.defaultView;return lu&&ru("10")&&a.pageYOffset!=b.scrollTop?new Wq(b.scrollLeft,b.scrollTop):new Wq(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},xD=function(a){return a.scrollingElement?a.scrollingElement:!ou&&vD(a)?a.documentElement:a.body||a.documentElement},zD=function(a){return a?a.parentWindow||a.defaultView:window},hsb=function(a,b,c){return gsb(document,arguments)},gsb=function(a,b){var c=b[1],d=Kj(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):fsb(d,c));2<b.length&&isb(a,d,b,2);return d},isb=function(a,b,c,d){function e(k){k&&b.appendChild("string"===
typeof k?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!Fa(f)||Ga(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(Ga(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}ta(h?Ea(f):f,e)}}},Kj=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},vD=function(a){return"CSS1Compat"==a.compatMode},jsb=function(a,b){isb(sD(a),a,arguments,
1)},AD=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},BD=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},CD=function(a){return Ga(a)&&1==a.nodeType},iTa=function(a){var b;if(csb&&!(lu&&ru("9")&&!ru("10")&&da.SVGElement&&a instanceof da.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return CD(b)?b:null},IHa=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&
16);for(;b&&a!=b;)b=b.parentNode;return b==a},sD=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},DD=function(a){return a.contentDocument||a.contentWindow.document},ED=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else AD(a),a.appendChild(sD(a).createTextNode(String(b)))},ksb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,
OBJECT:1},lsb={IMG:" ",BR:"\n"},msb=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},nsb=function(a,b,c){if(!(a.nodeName in ksb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in lsb)b.push(lsb[a.nodeName]);else for(a=a.firstChild;a;)nsb(a,b,c),a=a.nextSibling},aSa=function(){var a=zD();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?FD(3)||FD(2)||FD(1.5)||FD(1)||.75:1},FD=function(a){return zD().matchMedia("(min-resolution: "+
a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},rD=function(a){this.document_=a||da.document||document};g=rD.prototype;g.getDomHelper=cp;g.getElement=function(a){return tD(this.document_,a)};g.$=rD.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
g.getElementsByTagNameAndClass=function(a,b,c){c=c||this.document_;a=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))b=c.querySelectorAll(a+(b?"."+b:""));else if(b&&c.getElementsByClassName)if(c=c.getElementsByClassName(b),a){for(var d={},e=0,f=0,h;h=c[f];f++)a==h.nodeName&&(d[e++]=h);d.length=e;b=d}else b=c;else if(c=c.getElementsByTagName(a||"*"),b){d={};for(f=e=0;h=c[f];f++)a=h.className,"function"==typeof a.split&&wa(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=rD.prototype.getElementsByTagNameAndClass;g.setProperties=fsb;g.getViewportSize=function(){return wD(this.getWindow())};g.createDom=function(a,b,c){return gsb(this.document_,arguments)};g.createElement=function(a){return Kj(this.document_,a)};g.createTextNode=function(a){return this.document_.createTextNode(String(a))};g.getWindow=function(){var a=this.document_;return a.parentWindow||a.defaultView};g.appendChild=function(a,b){a.appendChild(b)};g.append=jsb;
g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};g.removeChildren=AD;g.removeNode=BD;
g.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};g.isElement=CD;g.getParentElement=iTa;g.contains=IHa;
g.isFocusable=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!a.hasAttribute("tabindex")||msb(a)):b=a.hasAttribute("tabindex")&&msb(a);if(b&&lu){var c;"function"!==typeof a.getBoundingClientRect||lu&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
var osb,psb=function(){var a=da.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ia("Presto")&&(a=function(){var e=Kj(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=du(function(q){if(("*"==k||q.origin==k)&&q.data==h)this.port1.onmessage()},
this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,k)}}});if("undefined"!==typeof a&&!baa()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){da.setTimeout(e,0)}},qsb=iaa;eD(function(a){qsb=a});
var rsb=function(){this.workTail_=this.workHead_=null};rsb.prototype.add=function(a,b){var c=ssb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};rsb.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 ssb=new pD(function(){return new tsb},function(a){return a.reset()}),tsb=function(){this.next=this.scope=this.fn=null};
tsb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};tsb.prototype.reset=function(){this.next=this.scope=this.fn=null};
var GD,usb=!1,vsb=new rsb,HD=function(a,b){GD||wsb();usb||(GD(),usb=!0);vsb.add(a,b)},wsb=function(){if(da.Promise&&da.Promise.resolve){var a=da.Promise.resolve(void 0);GD=function(){a.then(xsb)}}else GD=function(){var b=xsb;b=qsb(b);"function"!==typeof da.setImmediate||da.Window&&da.Window.prototype&&!ia("Edge")&&da.Window.prototype.setImmediate==da.setImmediate?(osb||(osb=psb()),osb(b)):da.setImmediate(b)}},xsb=function(){for(var a;a=vsb.remove();){try{a.fn.call(a.scope)}catch(b){db(b)}ssb.put(a)}usb=
!1};
var ysb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var JD=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=yC)try{var b=this;a.call(void 0,function(c){ID(b,2,c)},function(c){ID(b,3,c)})}catch(c){ID(this,3,c)}},zsb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};zsb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var Asb=new pD(function(){return new zsb},function(a){a.reset()}),Bsb=function(a,b,c){var d=Asb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},KD=function(a){if(a instanceof JD)return a;var b=new JD(yC);ID(b,2,a);return b},Csb=function(a){return new JD(function(b,c){c(a)})},Esb=function(a,b,c){Dsb(a,b,c,null)||HD(eu(b,a))},Fsb=function(a){return new JD(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Esb(e,b,c)})},Gsb=function(a){return new JD(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(u,y){d--;e[u]=y;0==d&&b(e)},h=function(u){c(u)},k=0,q;k<a.length;k++)q=a[k],Esb(q,eu(f,k),h);else b(e)})},Hsb=function(a){return new JD(function(b,c){var d=a.length,e=[];if(d)for(var f=function(u){b(u)},h=function(u,y){d--;e[u]=y;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],Esb(q,f,eu(h,k));else b(void 0)})},Jsb=function(){var a,b,c=new JD(function(d,e){a=d;b=e});return new Isb(c,a,b)};
JD.prototype.then=function(a,b,c){return Ksb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};JD.prototype.$goog_Thenable=!0;var Msb=function(a,b){b=Bsb(b,b);b.always=!0;Lsb(a,b);return a};JD.prototype.thenCatch=function(a,b){return Ksb(this,null,a,b)};JD.prototype.catch=JD.prototype.thenCatch;JD.prototype.cancel=function(a){if(0==this.state_){var b=new LD(a);HD(function(){Nsb(this,b)},this)}};
var Nsb=function(a,b){if(0==a.state_)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,h=c.callbackEntries_;h&&(h.always||(d++,h.child==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.state_&&1==d?Nsb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Osb(c),Psb(c,e,3,b)))}a.parent_=null}else ID(a,3,b)},Lsb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||Qsb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},Ksb=function(a,b,c,d){var e=Bsb(null,null,null);e.child=new JD(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(u){h(u)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof LD?h(k):f(q)}catch(u){h(u)}}:h});e.child.parent_=a;Lsb(a,e);return e.child};JD.prototype.unblockAndFulfill_=function(a){this.state_=0;ID(this,2,a)};JD.prototype.unblockAndReject_=function(a){this.state_=0;ID(this,3,a)};
var ID=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("tb")),a.state_=1,Dsb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,Qsb(a),3!=b||c instanceof LD||Rsb(a,c)))},Dsb=function(a,b,c,d){if(a instanceof JD)return Lsb(a,Bsb(b||yC,c||null,d)),!0;if(ysb(a))return a.then(b,c,d),!0;if(Ga(a))try{var e=a.then;if("function"===typeof e)return Ssb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Ssb=function(a,b,c,d,e){var f=!1,h=function(q){f||(f=!0,
c.call(e,q))},k=function(q){f||(f=!0,d.call(e,q))};try{b.call(a,h,k)}catch(q){k(q)}},Qsb=function(a){a.executing_||(a.executing_=!0,HD(a.executeCallbacks_,a))},Osb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};JD.prototype.executeCallbacks_=function(){for(var a;a=Osb(this);)Psb(this,a,this.state_,this.result_);this.executing_=!1};
var Psb=function(a,b,c,d){if(3==c&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,Tsb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):Tsb(b,c,d)}catch(e){Usb.call(null,e)}Asb.put(b)},Tsb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},Rsb=function(a,b){a.hadUnhandledRejection_=!0;HD(function(){a.hadUnhandledRejection_&&Usb.call(null,b)})},Usb=db,LD=function(a){ba.call(this,
a);this.reportErrorToServer=!1};hu(LD,ba);LD.prototype.name="cancel";var Isb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
var MD=function(a,b){Uo.call(this);this.interval_=a||1;this.timerObject_=b||da;this.boundTick_=du(this.tick_,this);this.last_=fu()};hu(MD,Uo);g=MD.prototype;g.enabled=!1;g.timer_=null;g.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
g.tick_=function(){if(this.enabled){var a=fu()-this.last_;0<a&&a<.8*this.interval_?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};g.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=fu())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){MD.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var ND=function(a,b,c){if("function"===typeof a)c&&(a=du(a,c));else if(a&&"function"==typeof a.handleEvent)a=du(a.handleEvent,a);else throw Error("ub");return 2147483647<Number(b)?-1:da.setTimeout(a,b||0)},OD=function(a){da.clearTimeout(a)},Vsb=function(a,b){var c=null;return(new JD(function(d,e){c=ND(function(){d(b)},a);-1==c&&e(Error("vb"))})).thenCatch(function(d){OD(c);throw d;})};
var Wsb=function(a){this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new MD(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)},Xsb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=Wsb.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(v(a)).filter(function(b){return b.cellMap_.size});a.length&&this.streamzLogger_.flush(a,!1);Ysb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=tc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new YC(a,b))};g.addNewEventMetric=function(a){var b=tc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new ZC(a,b))};
g.getMetric=function(a){return this.disabledMetrics_.has(a)?void 0:this.metricMap.get(a)};g.incrementCounter=function(a){this.incrementCounterBy.apply(this,[a,1].concat(v(tc.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=tc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof YC&&(d.incrementCounterBy(b,c),Xsb(this))};g.record=function(a,b){var c=tc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof ZC&&(d.record(b,c),Xsb(this))};var Ysb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
var Zsb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/usage";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"name"},{field_type:3,field_name:"source"},{field_type:1,field_name:"state"})};Zsb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Zsb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var $sb=function(a){this.metricName_="/client_streamz/one_developer_workflow/events/performance";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"name"})};$sb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};$sb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var atb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/request_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"})};atb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};atb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var btb=function(a){this.metricName_="/client_streamz/one_developer_workflow/rpc/error_count";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"source"},{field_type:3,field_name:"method_id"},{field_type:2,field_name:"code"})};btb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};btb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var dtb=function(a){Z.call(this,a,-1,ctb)};U(dtb,Z);var PD=function(a){Z.call(this,a)};U(PD,Z);PD.prototype.getCount=function(){return p(this,2)};PD.prototype.setCount=function(a){l(this,2,a)};var ctb=[1];dtb.prototype.toObject=function(){return etb(void 0,this)};var etb=function(a,b){if(null!=b){var c={entryList:Eb(tb(b,PD,1),ftb,a)};a&&(c.$jspbMessageInstance=b);return c}};PD.prototype.toObject=function(){return ftb(void 0,this)};
var ftb=function(a,b){if(null!=b){var c={valueOrBucket:n(yu(b,1)),count:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var QD=function(a){Z.call(this,a,-1,gtb)};U(QD,Z);var RD=function(a){Z.call(this,a)};U(RD,Z);RD.prototype.getMobile=function(){return Bl(this,SD,1,htb)};var SD=function(a){Z.call(this,a)};U(SD,Z);SD.prototype.getAppName=function(){return p(this,1)};var TD=function(a){Z.call(this,a)};U(TD,Z);TD.prototype.getAppName=function(){return p(this,1)};TD.prototype.getExperimentId=function(){return p(this,3)};var UD=function(a){Z.call(this,a,-1,itb)};U(UD,Z);var VD=function(a){Z.call(this,a)};U(VD,Z);
VD.prototype.getValueCase=function(){return rb(this,WD)};var XD=function(a){Z.call(this,a)};U(XD,Z);XD.prototype.getValueCase=function(){return rb(this,YD)};var gtb=[3,6,4];QD.prototype.toObject=function(){return jtb(void 0,this)};var jtb=function(a,b){if(null!=b){var c={streamzName:n(p(b,1)),hashedStreamzName:n(p(b,5)),rootSpec:ktb(a,m(b,RD,2)),fieldNameList:n(lb(b,3)),hashedFieldNameList:n(lb(b,6)),incList:Eb(tb(b,UD,4),ltb,a)};a&&(c.$jspbMessageInstance=b);return c}},htb=[1,2];
RD.prototype.toObject=function(){return ktb(void 0,this)};var ktb=function(a,b){if(null!=b){var c={mobile:mtb(a,b.getMobile()),mobileExp:ntb(a,Bl(b,TD,2,htb))};a&&(c.$jspbMessageInstance=b);return c}};SD.prototype.toObject=function(){return mtb(void 0,this)};var mtb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),useMobilespec:n(Xo(b,3))};a&&(c.$jspbMessageInstance=b);return c}};TD.prototype.toObject=function(){return ntb(void 0,this)};
var ntb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),experimentId:n(p(b,3)),useMobilespec:n(Xo(b,4))};a&&(c.$jspbMessageInstance=b);return c}},itb=[1];UD.prototype.toObject=function(){return ltb(void 0,this)};var ltb=function(a,b){if(null!=b){var c={fieldList:Eb(tb(b,VD,1),otb,a),incBy:ptb(a,m(b,XD,2))};a&&(c.$jspbMessageInstance=b);return c}},WD=[1,2,3];VD.prototype.toObject=function(){return otb(void 0,this)};
var otb=function(a,b){if(null!=b){var c={strVal:n(Ur(b,1,WD)),intVal:n(Ur(b,2,WD)),boolVal:n(Xo(b,sb(b,WD,3)))};a&&(c.$jspbMessageInstance=b);return c}},YD=[1,2,3];XD.prototype.toObject=function(){return ptb(void 0,this)};var ptb=function(a,b){if(null!=b){var c={int64Val:n(Ur(b,1,YD)),doubleVal:n(yu(b,sb(b,YD,2))),histogramVal:etb(a,Bl(b,dtb,3,YD))};a&&(c.$jspbMessageInstance=b);return c}};
var ZD=function(a){Z.call(this,a)};U(ZD,Z);ZD.prototype.getKey=function(){return p(this,1)};ZD.prototype.hasKey=function(){return gj(this,1)};ZD.prototype.toObject=function(){return qtb(this)};var qtb=function(a){if(null!=a)return{key:n(p(a,1))}};
var stb=function(a){Z.call(this,a,-1,rtb)};U(stb,Z);var rtb=[1];stb.prototype.toObject=function(){var a=null!=this?{batchList:Eb(tb(this,QD,1),jtb),slicerMetadata:qtb(m(this,ZD,2))}:void 0;return a};
var ttb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("wb`"+a);if("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"!==c)throw Error("xb`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
var vtb=function(a,b,c){var d=String(da.location.href);return d&&a&&b?[b,utb(ttb(d),a,c||null)].join(" "):null},utb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],ta(d,function(k){e.push(k)}),wtb(e.join(" "));var f=[],h=[];ta(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];ta(d,function(k){e.push(k)});a=wtb(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},wtb=function(a){var b=
cma();b.update(a);return b.digestString().toLowerCase()};
var xtb={};
var $D=function(){this.document_=document||{cookie:""}};g=$D.prototype;g.isEnabled=function(){if(!da.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("yb`"+a);if(/[;\r\n]/.test(b))throw Error("zb`"+b);void 0===k&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=0>k?"":0==k?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*k)).toUTCString();this.document_.cookie=a+"="+b+c+h+k+d+(null!=e?";samesite="+e:"")};
g.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Ui(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};g.getKeys=function(){return aE(this).keys};g.getValues=function(){return aE(this).values};g.isEmpty=function(){return!this.document_.cookie};
g.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};g.containsKey=function(a){return void 0!==this.get(a)};g.containsValue=function(a){for(var b=aE(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=aE(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var aE=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ui(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
var ytb=function(a){return!!xtb.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},ztb=function(a,b,c,d){(a=da[a])||(a=(new $D).get(b));return a?vtb(a,c,d):null},So=function(a,b){b=void 0===b?!1:b;var c=ttb(String(da.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=da.__SAPISID||da.__APISID||da.__3PSAPISID||da.__OVERRIDE_SID;ytb(e)&&(f=f||da.__1PSAPISID);if(f)e=!0;else{var h=new $D;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");ytb(e)&&(f=f||h.get("__Secure-1PAPISID"));
e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?da.__SAPISID:da.__APISID,e||(e=new $D,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?vtb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&ytb(b)&&((b=ztb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ztb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
var bE=function(a){Z.call(this,a,-1,Atb)};U(bE,Z);var Atb=[2];bE.prototype.toObject=function(){return Btb(void 0,this)};var Btb=function(a,b){if(null!=b){var c={clearBlob:Hb(zu(b,1)),clearBlobJs:n(p(b,4)),encryptedBlobList:Hb(mb(b,2,cb)),usersMatch:n(Xo(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var cE=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};cE.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};cE.prototype.getValue=function(){return this.currValue_};
var Ctb=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\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,""))},Dtb=function(a){try{return da.JSON.parse(a)}catch(b){}a=String(a);if(Ctb(a))try{return eval("("+a+")")}catch(b){}throw Error("Ab`"+a);},dE=function(a,b){return(new Etb(b)).serialize(a)},Etb=function(a){this.replacer_=
a};Etb.prototype.serialize=function(a){var b=[];Ftb(this,a,b);return b.join("")};
var Ftb=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){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],Ftb(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],"function"!=typeof e&&(c.push(f),Gtb(d,c),c.push(":"),Ftb(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Gtb(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("Bb`"+typeof b);}}},Htb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Itb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Gtb=function(a,b){b.push('"',a.replace(Itb,
function(c){var d=Htb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Htb[c]=d);return d}),'"')};
var Jtb=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 eE=function(){};eE.prototype.cachedOptions_=null;eE.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};
var Ktb,fE=function(){};hu(fE,eE);fE.prototype.createInstance=function(){var a=Ltb(this);return a?new ActiveXObject(a):new XMLHttpRequest};fE.prototype.internalGetOptions=function(){var a={};Ltb(this)&&(a[0]=!0,a[1]=!0);return a};
var Ltb=function(a){if(!a.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.ieProgId_=d}catch(e){}}throw Error("Cb");}return a.ieProgId_};Ktb=new fE;
var Mtb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ntb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}},Otb=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||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]},Ptb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Ptb(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},Qtb=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Ptb(a[b],a[b+1],c);return c.join("&")},Rtb=function(a){var b=[],c;for(c in a)Ptb(c,a[c],b);return b.join("&")},gE=function(a,b){var c=2==arguments.length?Qtb(arguments[1],0):Qtb(arguments,
1);return Otb(a,c)},Rsa=function(a,b){b=Rtb(b);return Otb(a,b)},hE=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return Otb(a,b+c)},Stb=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1},Ttb=/#|$/,Utb=function(a,b){var c=a.search(Ttb),d=Stb(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,
-1!==e?e:0).replace(/\+/g," "))},Vtb=/[?&]($|#)/;
var iE=function(a){Uo.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=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.useXhr2Timeout_=this.withCredentials_=!1;this.trustToken_=null};hu(iE,Uo);
var Wtb=/^https?$/i,Xtb=["POST","PUT"],Ytb=[],zi=function(a,b,c,d,e,f,h){var k=new iE;Ytb.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));h&&(k.withCredentials_=h);k.send(a,c,d,e);return k};iE.prototype.cleanupSend_=function(){this.dispose();za(Ytb,this)};iE.prototype.setTrustToken=function(a){this.trustToken_=a};
iE.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Db`"+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.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():Ktb.getOptions();this.xhr_.onreadystatechange=du(this.onReadyStateChange_,this);try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(h){this.error_(5,h);return}a=c||"";c=
new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Eb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=da.FormData&&a instanceof da.FormData;!wa(Xtb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=r(c);for(d=
b.next();!d.done;d=b.next())c=r(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(h){}try{Ztb(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=$tb(this.xhr_))?(this.xhr_.timeout=
this.timeoutInterval_,this.xhr_.ontimeout=du(this.timeout_,this)):this.timeoutId_=ND(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var $tb=function(a){return lu&&ru(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};iE.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():Ktb.createInstance()};
iE.prototype.timeout_=function(){"undefined"!=typeof cu&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};iE.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;aub(this);jE(this)};var aub=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
iE.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"),jE(this))};iE.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),jE(this,!0));iE.superClass_.disposeInternal.call(this)};
iE.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)bub(this);else this.onReadyStateChangeEntryPoint_()};iE.prototype.onReadyStateChangeEntryPoint_=function(){bub(this)};
var bub=function(a){if(a.active_&&"undefined"!=typeof cu&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())ND(a.onReadyStateChange_,0,a);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=2<a.getReadyState()?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";aub(a)}}finally{jE(a)}}},jE=function(a,b){if(a.xhr_){Ztb(a);
var c=a.xhr_,d=a.xhrOptions_[0]?function(){}:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}},Ztb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(OD(a.timeoutId_),a.timeoutId_=null)};g=iE.prototype;g.isActive=function(){return!!this.xhr_};g.isComplete=function(){return 4==this.getReadyState()};
g.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=0===a)a=String(this.lastUri_).match(Mtb)[1]||null,!a&&da.self&&da.self.location&&(a=da.self.location.protocol.slice(0,-1)),a=!Wtb.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));a:{a=b;if(da.JSON)try{var c=da.JSON.parse(a);break a}catch(d){}c=Dtb(a)}return c}};
var cub=function(a){try{if(!a.xhr_)return null;if("response"in a.xhr_)return a.xhr_.response;switch(a.responseType_){case "":case "text":return a.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.xhr_)return a.xhr_.mozResponseArrayBuffer}return null}catch(b){return null}};g=iE.prototype;g.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),null===a?void 0:a};
g.getAllResponseHeaders=function(){return this.xhr_&&2<=this.getReadyState()?this.xhr_.getAllResponseHeaders()||"":""};g.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Zi(b[c])){var d=brb(b[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=a[e]||[];a[e]=f;f.push(d)}}return pja(a,function(h){return h.join(", ")})};g.getLastErrorCode=function(){return this.lastErrorCode_};
g.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};eD(function(a){iE.prototype.onReadyStateChangeEntryPoint_=a(iE.prototype.onReadyStateChangeEntryPoint_)});
var kE=function(a){Z.call(this,a)};U(kE,Z);kE.prototype.getLocale=function(){return p(this,5)};kE.prototype.setLocale=function(a){return l(this,5,a)};kE.prototype.setBuildLabel=function(a){l(this,7,a)};var lE=function(a){Z.call(this,a,-1,dub)};U(lE,Z);lE.prototype.getMobile=function(){return Xo(this,2)};var mE=function(a){Z.call(this,a)};U(mE,Z);mE.prototype.getVersion=function(){return p(this,2)};mE.prototype.setVersion=function(a){return l(this,2,a)};kE.prototype.toObject=function(){return eub(this)};
var eub=function(a){if(null!=a)return{os:n(p(a,1)),osVersion:n(p(a,2)),deviceType:n(p(a,3)),country:n(p(a,4)),locale:n(p(a,5)),osType:n(p(a,6)),buildLabel:n(p(a,7)),continent:n(p(a,8)),clientHints:fub(m(a,lE,9))}},dub=[1];lE.prototype.toObject=function(){return fub(this)};var fub=function(a){if(null!=a)return{uaListList:Eb(tb(a,mE,1),gub),mobile:n(Xo(a,2)),platform:n(p(a,3)),platformVersion:n(p(a,4)),architecture:n(p(a,5)),model:n(p(a,6)),uaFullVersion:n(p(a,7)),bitness:n(p(a,8))}};
mE.prototype.toObject=function(){return gub(void 0,this)};var gub=function(a,b){if(null!=b){var c={brand:n(p(b,1)),version:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var hub=["platform","platformVersion","architecture","model","uaFullVersion"];new lE;
var nE=function(a){Z.call(this,a)};U(nE,Z);var iub=function(a){Z.call(this,a)};U(iub,Z);nE.prototype.toObject=function(){return jub(this)};var jub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),buildType:n(p(a,4)),omahaChannel:n(p(a,5)),battlestarClientType:n(p(a,2)),graphicsCapabilities:kub(m(a,iub,3)),battlestarMachineTier:n(p(a,6))}};iub.prototype.toObject=function(){return kub(this)};var kub=function(a){if(null!=a)return{guestAngle:n(Xo(a,1))}};
var oE=function(a){Z.call(this,a)};U(oE,Z);oE.prototype.getClientType=function(){return p(this,1)};oE.prototype.setClientType=function(a){return l(this,1,a)};oE.prototype.setBuildLabel=function(a){l(this,2,a)};oE.prototype.toObject=function(){return lub(this)};var lub=function(a){if(null!=a)return{clientType:n(p(a,1)),buildLabel:n(p(a,2)),birdsongBuildLabel:n(p(a,3))}};
var pE=function(a){Z.call(this,a)};U(pE,Z);pE.prototype.getLocale=function(){return p(this,1)};pE.prototype.setLocale=function(a){return l(this,1,a)};pE.prototype.toObject=function(){return mub(this)};var mub=function(a){if(null!=a)return{locale:n(p(a,1)),browser:n(p(a,2)),browserVersion:n(p(a,3)),flashVersion:n(p(a,4))}};
var nub=function(a){Z.call(this,a)};U(nub,Z);g=nub.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,2)};g.setLoggingId=function(a){l(this,2,a)};g.toObject=function(){return oub(this)};
var oub=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,2)),os:n(p(a,3)),osMajorVersion:n(p(a,4)),osFullVersion:n(p(a,5)),applicationBuild:n(p(a,6)),country:n(p(a,7)),applicationBuildCl:n(p(a,8)),clearcutVersion:n(p(a,9))}};
var qE=function(a){Z.call(this,a)};U(qE,Z);qE.prototype.toObject=function(){return pub(this)};var pub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),driveDesktopClientType:n(p(a,2))}};
var rE=function(a){Z.call(this,a)};U(rE,Z);rE.prototype.toObject=function(){return qub(this)};var qub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),g1DesktopClientType:n(p(a,2))}};
var sE=function(a){Z.call(this,a)};U(sE,Z);sE.prototype.getLocale=function(){return p(this,11)};sE.prototype.setLocale=function(a){return l(this,11,a)};sE.prototype.toObject=function(){return rub(this)};
var rub=function(a){if(null!=a)return{deviceId:n(p(a,9)),deviceModel:n(p(a,1)),appVersion:n(p(a,2)),acpVersion:n(p(a,16)),opalVersion:n(p(a,18)),virtualReleaseChannel:n(p(a,17)),manufacturer:n(p(a,3)),productName:n(p(a,4)),factoryCountry:n(p(a,5)),buildType:n(p(a,6)),systemBuild:n(p(a,7)),backendType:n(p(a,8)),locale:n(p(a,11)),onDeviceAssistantEnabled:n(Xo(a,12)),surfaceType:n(p(a,13)),osType:n(p(a,14)),optedInMetricsLogging:n(Xo(a,15))}};
var tE=function(a){Z.call(this,a)};U(tE,Z);tE.prototype.getLocale=function(){return p(this,5)};tE.prototype.setLocale=function(a){return l(this,5,a)};tE.prototype.toObject=function(){return sub(this)};var sub=function(a){if(null!=a)return{appVersion:n(p(a,1)),coreAppVersion:n(p(a,3)),deviceModel:n(p(a,2)),mccMnc:n(p(a,4)),locale:n(p(a,5))}};
var tub=function(a){Z.call(this,a)};U(tub,Z);tub.prototype.toObject=function(){return uub(this)};var uub=function(a){if(null!=a)return{osMajorVersion:n(p(a,1)),osFullVersion:n(p(a,2)),applicationBuild:n(p(a,3)),country:n(p(a,4)),applicationBuildCl:n(p(a,5)),clearcutVersion:n(p(a,6)),applicationBundleId:n(p(a,7))}};
var uE=function(a){Z.call(this,a)};U(uE,Z);uE.prototype.getAppId=function(){return p(this,3)};uE.prototype.setAppId=function(a){l(this,3,a)};uE.prototype.toObject=function(){return vub(this)};var vub=function(a){if(null!=a)return{deviceId:n(p(a,1)),os:n(p(a,2)),appId:n(p(a,3)),appVersion:n(p(a,4)),mccMnc:n(p(a,5))}};
var wub=function(a){Z.call(this,a)};U(wub,Z);g=wub.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,7)};g.setLoggingId=function(a){l(this,7,a)};g.toObject=function(){return xub(this)};var xub=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,7)),make:n(p(a,3)),model:n(p(a,4)),applicationBuild:n(p(a,5)),platformVersion:n(p(a,6)),country:n(p(a,8))}};
var vE=function(a){Z.call(this,a)};U(vE,Z);vE.prototype.getBattlestarClientInfo=function(){return Bl(this,nE,1,yub)};vE.prototype.getDriveDesktopClientInfo=function(){return Bl(this,qE,2,yub)};vE.prototype.getG1DesktopClientInfo=function(){return Bl(this,rE,3,yub)};var yub=[1,2,3];vE.prototype.toObject=function(){return zub(this)};var zub=function(a){if(null!=a)return{battlestarClientInfo:jub(a.getBattlestarClientInfo()),driveDesktopClientInfo:pub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:qub(a.getG1DesktopClientInfo())}};
var Aub=function(a){Z.call(this,a)};U(Aub,Z);Aub.prototype.toObject=function(){return Bub(this)};var Bub=function(a){if(null!=a)return{machineClass:n(p(a,1))}};
var Cub=function(a){Z.call(this,a)};U(Cub,Z);Cub.prototype.toObject=function(){return Dub(this)};var Dub=function(a){if(null!=a)return{vrClientType:n(p(a,1)),sdkVersion:n(p(a,2)),fingerprint:n(p(a,3)),gvrVersion:n(p(a,4)),manufacturer:n(p(a,5)),model:n(p(a,6)),language:n(p(a,7)),country:n(p(a,8)),unityVersion:n(p(a,9)),unitySdkVersion:n(p(a,10))}};
var wE=function(a){Z.call(this,a)};U(wE,Z);wE.prototype.setBuildLabel=function(a){l(this,1,a)};wE.prototype.getEnvironment=function(){return p(this,3)};wE.prototype.setEnvironment=function(a){return l(this,3,a)};wE.prototype.toObject=function(){return Eub(this)};
var Eub=function(a){if(null!=a)return{buildLabel:n(p(a,1)),deploymentType:n(p(a,2)),environment:n(p(a,3)),location:n(p(a,4)),machine:n(p(a,5)),gameletId:n(p(a,6)),machineShape:n(p(a,7)),metro:n(p(a,8)),vmPurpose:n(p(a,9)),releaseStage:n(p(a,10))}};
var xE=function(a){Z.call(this,a)};U(xE,Z);g=xE.prototype;g.getClientType=function(){return p(this,1)};g.setClientType=function(a){return l(this,1,a)};g.getBattlestarClientInfo=function(){return m(this,nE,22)};g.getDriveDesktopClientInfo=function(){return m(this,qE,24)};g.getG1DesktopClientInfo=function(){return m(this,rE,25)};g.getMutableJsClientInfo=function(){return Bu(this,kE,11)};g.toObject=function(){return Fub(this)};
var Fub=function(a){if(null!=a)return{clientType:n(p(a,1)),remoteHost:n(p(a,6)),remoteHost6:n(p(a,7)),battlestarClientInfo:jub(a.getBattlestarClientInfo()),birdsongClientInfo:lub(m(a,oE,14)),desktopClientInfo:oub(m(a,nub,3)),driveDesktopClientInfo:pub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:qub(a.getG1DesktopClientInfo()),googleHomeClientInfo:rub(m(a,sE,16)),jsClientInfo:eub(m(a,kE,11)),kaiosClientInfo:sub(m(a,tE,20)),macClientInfo:uub(m(a,tub,13)),pancettaClientInfo:vub(m(a,uE,10)),playCeClientInfo:xub(m(a,
wub,5)),portablePhenotypeLibraryClientInfo:zub(m(a,vE,23)),sparklightClientInfo:Bub(m(a,Aub,18)),vrClientInfo:Dub(m(a,Cub,8)),yetiClientInfo:Eub(m(a,wE,15)),browserInfo:mub(m(a,pE,9)),heterodyneConfigVersion:n(p(a,12))}};
var Hub=function(a){Z.call(this,a,-1,Gub)};U(Hub,Z);var Gub=[1,2,3,4,5];Hub.prototype.toObject=function(){return Iub(void 0,this)};var Iub=function(a,b){if(null!=b){var c={clientAlteringExperimentList:n(lb(b,1)),otherExperimentList:n(lb(b,2)),gwsExperimentList:n(lb(b,3)),playExperimentList:n(lb(b,4)),unsupportedPlayExperimentList:n(lb(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var yE=function(a){Z.call(this,a)};U(yE,Z);yE.prototype.getVersion=function(){return p(this,3)};yE.prototype.setVersion=function(a){return l(this,3,a)};yE.prototype.toObject=function(){return Jub(void 0,this)};var Jub=function(a,b){if(null!=b){var c={appType:n(p(b,1)),androidPackageName:n(p(b,2)),version:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var zE=function(a){Z.call(this,a)};U(zE,Z);g=zE.prototype;g.getKey=function(){return p(this,1)};g.hasKey=function(){return gj(this,1)};g.getValue=function(){return p(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.toObject=function(){return Kub(void 0,this)};var Kub=function(a,b){if(null!=b){var c={key:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Lub=function(a){Z.call(this,a)};U(Lub,Z);Lub.prototype.toObject=function(){return Mub(void 0,this)};var Mub=function(a,b){if(null!=b){var c={networkType:Y(b,1,-1),mobileSubtype:Y(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var AE=function(a){Z.call(this,a,31,Nub)};U(AE,Z);g=AE.prototype;g.getTag=function(){return p(this,2)};g.getComponentId=function(){return p(this,26)};g.setComponentId=function(a){return l(this,26,a)};g.hasComponentId=function(){return gj(this,26)};g.addValue=function(){return Du(this,3,zE)};var BE=function(a,b){return l(a,8,b)};AE.prototype.getExperimentIds=function(){return m(this,bE,16)};var CE=function(a,b){l(a,24,b)},Oub={},Nub=[3,20,27];AE.prototype.toObject=function(){return Pub(void 0,this)};
var Pub=function(a,b){if(null!=b){var c={eventTimeMs:n(p(b,1)),eventUptimeMs:n(p(b,17)),sequencePosition:n(p(b,21)),tag:n(p(b,2)),eventCode:n(p(b,11)),componentId:n(p(b,26)),eventFlowId:n(p(b,12)),isUserInitiated:n(Xo(b,10)),valueList:Eb(tb(b,zE,3),Kub,a),store:Hb(zu(b,4)),appUsage1p:Jub(a,m(b,yE,9)),sourceExtension:Hb(zu(b,6)),sourceExtensionJs:n(p(b,8)),sourceExtensionJson:n(p(b,13)),sourceExtensionJsonProto3:n(p(b,29)),exp:Iub(a,m(b,Hub,7)),testId:n(p(b,14)),timezoneOffsetSeconds:hj(b,15,18E4),
experimentIds:Btb(a,b.getExperimentIds()),clientVe:Hb(zu(b,18)),clientVeJs:n(p(b,24)),internalEvent:n(p(b,19)),testCodeList:n(lb(b,20)),genericDimensionsList:n(lb(b,27)),bootCount:n(p(b,22)),networkConnectionInfo:Mub(a,m(b,Lub,23)),inDirectBootMode:n(Xo(b,25)),zwiebackCookieOverride:n(p(b,28)),appliedSamplingRate:n(yu(b,30))};Fb(b,c,Oub,a);a&&(c.$jspbMessageInstance=b);return c}};
var Qub=function(a){Z.call(this,a)};U(Qub,Z);Qub.prototype.toObject=function(){return Rub(this)};var Rub=function(a){if(null!=a)return{collectStartMs:n(p(a,3)),collectUntilMs:n(p(a,1)),skipPersistentLogStorage:n(Xo(a,2))}};
var Sub=function(a){Z.call(this,a)};U(Sub,Z);Sub.prototype.toObject=function(){return Tub(this)};var Tub=function(a){if(null!=a)return{isUnmetered:n(Xo(a,1)),isCharging:n(Xo(a,2)),autoTimeStatus:n(p(a,3)),isGooglerDevice:n(Xo(a,4))}};
var DE=function(a){Z.call(this,a)};U(DE,Z);DE.prototype.getSource=function(){return p(this,3)};DE.prototype.setSource=function(a){return l(this,3,a)};DE.prototype.hasSource=function(){return gj(this,3)};DE.prototype.toObject=function(){return Uub(this)};var Uub=function(a){if(null!=a)return{timeMs:n(p(a,1)),uptimeMs:n(p(a,2)),source:n(p(a,3))}};
var EE=function(a){Z.call(this,a,17,Vub)};U(EE,Z);g=EE.prototype;g.getClientInfo=function(){return m(this,xE,1)};g.getMutableClientInfo=function(){return Bu(this,xE,1)};g.setClientInfo=function(a){Db(this,1,a)};g.getLogSource=function(){return Y(this,2,-1)};g.setLogSource=function(a){return l(this,2,a)};g.getQosTier=function(){return Y(this,9,0)};var Wub={},Vub=[3,5];
EE.prototype.toObject=function(){if(null!=this){var a={requestTimeMs:n(p(this,4)),requestUptimeMs:n(p(this,8)),clientInfo:Fub(this.getClientInfo()),logSource:Y(this,2,-1),logSourceName:n(p(this,6)),zwiebackCookie:n(p(this,7)),logEventList:Eb(tb(this,AE,3),Pub),serializedLogEventsList:Hb(mb(this,5,cb)),logEventDroppedCount:n(p(this,14)),qosTier:Y(this,9,0),scheduler:n(p(this,10)),deviceStatus:Tub(m(this,Sub,11)),externalTimestamp:Uub(m(this,DE,12)),collectForDebug:Rub(m(this,Qub,13)),appMobilespecId:n(p(this,
16))};Fb(this,a,Wub)}else a=void 0;return a};
var Yub=function(a){Z.call(this,a,-1,Xub)};U(Yub,Z);var Xub=[1];Yub.prototype.toObject=function(){return Zub(this)};var Zub=function(a){if(null!=a)return{idList:n(lb(a,1))}};
var $ub=function(a){Z.call(this,a)};U($ub,Z);$ub.prototype.toObject=function(){return avb(void 0,this)};var avb=function(a,b){if(null!=b){var c={logRequestIndex:n(p(b,1)),responseAction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var cvb=function(a){Z.call(this,a,-1,bvb)};U(cvb,Z);var bvb=[1];cvb.prototype.toObject=function(){return dvb(this)};var dvb=function(a){if(null!=a)return{logSourceNameList:n(lb(a,1))}};
var FE=function(a){Z.call(this,a)};U(FE,Z);FE.prototype.getQosTier=function(){return p(this,2)};FE.prototype.getLogSource=function(){return Y(this,3,-1)};FE.prototype.setLogSource=function(a){return l(this,3,a)};FE.prototype.toObject=function(){return evb(void 0,this)};var evb=function(a,b){if(null!=b){var c={logSourceName:n(p(b,1)),qosTier:n(p(b,2)),logSource:Y(b,3,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var gvb=function(a){Z.call(this,a,-1,fvb)};U(gvb,Z);var fvb=[1];gvb.prototype.toObject=function(){return hvb(this)};var hvb=function(a){if(null!=a)return{qosTierConfigurationList:Eb(tb(a,FE,1),evb),qosTierFingerprint:n(p(a,2))}};
var GE=function(a){Z.call(this,a,6,ivb)};U(GE,Z);GE.prototype.getExperiments=function(){return m(this,Yub,2)};GE.prototype.setExperiments=function(a){Db(this,2,a)};GE.prototype.hasExperiments=function(){return oj(this,2)};GE.prototype.getQosTier=function(){return m(this,gvb,3)};var jvb={},ivb=[5];
GE.prototype.toObject=function(){if(null!=this){var a={nextRequestWaitMillis:nj(this,1,"-1"),experiments:Zub(this.getExperiments()),qosTier:hvb(this.getQosTier()),logSourceBatchingBlacklist:dvb(m(this,cvb,4)),logResponseDetailsList:Eb(tb(this,$ub,5),avb)};Fb(this,a,jvb)}else a=void 0;return a};
var kvb=function(a){Z.call(this,a)};U(kvb,Z);kvb.prototype.toObject=function(){return lvb(void 0,this)};var lvb=function(a,b){if(null!=b){var c={suggestedFlushIntervalMillis:hj(b,1,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var mvb=Bb(175237375,{jsExtension:0},kvb,lvb);jvb[175237375]=mvb;
var IE=function(a,b,c,d,e,f,h,k,q,u,y){Uo.call(this);var D=this;this.componentId_="";this.pendingEvents_=[];this.lastFailedAuth_="";this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment_=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.clientSpecifiedFlushInterval=!1;this.gzipCompressor_=this.experimentIds_=null;this.numLogsDroppedSinceLastFlush=0;this.sequencePosition_=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;Uo.call(this);this.logSource_=
a;this.getAuthHeaderValue=b||function(){};this.logRequestBuilder=new HE(a,f);this.networkIOSend_=d;this.network_=y;this.bufferSize=1E3;this.uniformRandomFunction=eu(dsb,0,1);this.clearcutUrl_=e||null;this.sessionIndex_=c||null;this.disableAutomaticFlush=h||!1;this.pageId=q||null;this.logger=null;this.withCredentials=!k;this.isServiceWorkerScope=f||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&(65<=ma("Chromium")||45<=ma("Firefox")||12<=ma("Safari")||oa()&&gaa())&&!!zD()&&!!zD().navigator&&
!!zD().navigator.sendBeacon;a=(new xE).setClientType(1);this.logRequestBuilder.setClientInfo(a);this.flushBackoff=new cE(1E4);this.flushTimer=new MD(this.flushBackoff.getValue());aD(this,this.flushTimer);u=nvb(this,u);Vo(this.flushTimer,"tick",u,!1,this);this.backupTimer=new MD(6E5);aD(this,this.backupTimer);Vo(this.backupTimer,"tick",u,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(Vo(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
D.finalFlush()}),Vo(document,"pagehide",this.finalFlush,!1,this))};U(IE,Uo);var nvb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};IE.prototype.disposeInternal=function(){this.finalFlush();Uo.prototype.disposeInternal.call(this)};IE.prototype.setClearcutUrl=function(a){this.clearcutUrl_=a};
var ovb=function(a){a.clearcutUrl_||(a.clearcutUrl_=.01>a.uniformRandomFunction()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.clearcutUrl_};g=IE.prototype;g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId_=a};g.setOpaqueExperimentIds=function(a){this.experimentIds_||(this.experimentIds_=new bE);ml(this.experimentIds_,2,a)};
g.setClearExperimentIds=function(a){a?(this.experimentIds_||(this.experimentIds_=new bE),a=a.serialize(),l(this.experimentIds_,4,a)):this.experimentIds_&&ob(this.experimentIds_,4)};g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment_=a};g.setGzipCompressor=function(a){this.gzipCompressor_=a};var pvb=function(a,b){a.useSendBeaconForFinalFlush=b&&a.isSendBeaconSupported};IE.prototype.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};
IE.prototype.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;qvb(this,a)};var qvb=function(a,b){a.flushBackoff=new cE(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
IE.prototype.log=function(a){a=a.clone();var b=this.sequencePosition_++;l(a,21,b);this.componentId_&&a.setComponentId(this.componentId_);if(!p(a,1)){b=a;var c=Date.now().toString();l(b,1,c)}gj(a,15)||l(a,15,60*(new Date).getTimezoneOffset());this.experimentIds_&&(b=this.experimentIds_.clone(),Db(a,16,b));for(;this.pendingEvents_.length>=this.bufferSize;)this.pendingEvents_.shift(),++this.numLogsDroppedSinceLastFlush;this.pendingEvents_.push(a);this.dispatchEvent(new rvb(a));this.disableAutomaticFlush||
this.flushTimer.enabled||this.flushTimer.start()};
IE.prototype.flush=function(a,b){var c=this;if(0===this.pendingEvents_.length)a&&a();else if(this.sendBeaconApiEnabled)svb(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{var e=this.logRequestBuilder.build(this.pendingEvents_,this.numLogsDroppedSinceLastFlush);d={};var f=this.getAuthHeaderValue();f&&(d.Authorization=f);var h=ovb(this);this.sessionIndex_&&(d["X-Goog-AuthUser"]=this.sessionIndex_,h=hE(h,"authuser",this.sessionIndex_));this.pageId&&
(d["X-Goog-PageId"]=this.pageId,h=hE(h,"pageId",this.pageId));if(f&&this.lastFailedAuth_===f)b&&b("stale-auth-token");else if(this.pendingEvents_=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment_)a&&a();else{var k=e.serialize(),q;this.gzipCompressor_&&this.gzipCompressor_.getHiddenPropertyName_()&&(q=this.gzipCompressor_.compress(k));var u={url:h,body:k,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,
timeoutMillis:this.timeoutMillis},y=function(N){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(N){var L=null;try{var S=JSON.parse(N.replace(")]}'\n",""));L=new GE(S)}catch(X){}L&&(N=Number(nj(L,1,"-1")),0<N&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+N),L=L.getExtension(mvb))&&(L=hj(L,1,-1),-1!=L&&(c.clientSpecifiedFlushInterval||qvb(c,L)))}a&&a()},D=function(N,L){var S=tb(e,AE,3),X=c.flushBackoff;X.currBaseValue_=Math.min(3E5,2*X.currBaseValue_);
X.currValue_=Math.min(3E5,X.currBaseValue_+Math.round(.2*(Math.random()-.5)*X.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());401===N&&f&&(c.lastFailedAuth_=f);void 0===L&&(L=500<=N&&600>N||401===N||0===N);L&&(c.pendingEvents_=S.concat(c.pendingEvents_),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",N)},I=function(){c.network_?c.network_.send(u,y,D):c.networkIOSend_(u,y,D)};q?q.then(function(N){u.requestHeaders["Content-Encoding"]=
"gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=N;u.bodyType=2;I()},function(){I()}):I()}}}};IE.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment_||(this.useSendBeaconForFinalFlush&&svb(this),this.useGetRequestForFinalFlush&&tvb(this),this.flush())};
var svb=function(a){uvb(a,32,10,function(b,c){b=hE(b,"format","json");b=zD().navigator.sendBeacon(b,c.serialize());a.sendBeaconApiEnabled&&!b&&(a.sendBeaconApiEnabled=!1);return b})},tvb=function(a){uvb(a,6,5,function(b,c){c=c.serialize();for(var d=[],e=0,f=0;f<c.length;f++){var h=c.charCodeAt(f);255<h&&(d[e++]=h&255,h>>=8);d[e++]=h}c=ib(d,3);c=gE(b,"format","base64json","p",c);if(15360<c.length)return!1;b=new Image;c=c instanceof hh?c:Lj(c,/^data:image\//i.test(c));b.src=ih(c);return!0})},uvb=function(a,
b,c,d){if(0!==a.pendingEvents_.length){var e=ovb(a);for(var f=e.search(Ttb),h=0,k,q=[];0<=(k=Stb(e,h,"format",f));)q.push(e.substring(h,k)),h=Math.min(e.indexOf("&",k)+1||f,f);q.push(e.slice(h));e=q.join("").replace(Vtb,"$1");e=gE(e,"auth",a.getAuthHeaderValue(),"authuser",a.sessionIndex_||"0");for(f=0;f<c&&a.pendingEvents_.length;++f){h=a.pendingEvents_.slice(0,b);k=a.logRequestBuilder.build(h,a.numLogsDroppedSinceLastFlush);if(!d(e,k))break;a.numLogsDroppedSinceLastFlush=0;a.pendingEvents_=a.pendingEvents_.slice(h.length)}a.flushTimer.enabled&&
a.flushTimer.stop()}},rvb=function(){bD.call(this,"event-logged",void 0)};U(rvb,bD);var HE=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new EE;this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new xE)};HE.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
HE.prototype.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType(1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),m(a,lE,9)||Db(a,9,this.uach))};HE.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};HE.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var vvb=function(a,b){var c=void 0===c?hub:c;b(zD(),c).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();Db(d,9,a.uach);return!0}).catch(function(){return!1})};HE.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=m(a,kE,11);b||(b=new kE,Db(a,11,b));return b};HE.prototype.build=function(a,b){b=void 0===b?0:b;var c=this.logRequest.clone();var d=Date.now().toString();c=l(c,4,d);a=Cb(c,3,a);b&&l(a,14,b);return a};
g=ema.prototype;g.setBuildLabel=function(a){this.buildLabel_=a};g.setGzipCompressor=function(a){this.gzipCompressor_=a};g.setComponentId=function(a){this.componentId_=a;return this};g.setClearExperimentIds=function(a){this.clearExperimentIds_=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds_=a};g.setClearcutClientInfo=function(a){this.clearcutClientInfo_=a};g.useSendBeaconForFinalFlush=function(){this.useSendBeaconForFinalFlush_=!0;return this};
g.useGetRequestForFinalFlush=function(){this.useGetRequestForFinalFlush_=!0;return this};g.setFlushIntervalMs=function(a){this.flushIntervalMs_=Math.max(a,5E3)};
g.build=function(){var a=new IE(this.logSource_,this.getAuthHeaderValue_?this.getAuthHeaderValue_:So,this.sessionIndex_,this.networkIOSend_,this.destinationUrl_,this.enableServiceWorkerScope_,!1,this.disableWithCredentials_,void 0,void 0,this.network_?this.network_:void 0);this.clearcutClientInfo_&&a.setClearcutClientInfo(this.clearcutClientInfo_);this.buildLabel_&&a.setBuildLabel(this.buildLabel_);this.gzipCompressor_&&a.setGzipCompressor(this.gzipCompressor_);this.componentId_&&a.setComponentId(this.componentId_);
this.clearExperimentIds_&&a.setClearExperimentIds(this.clearExperimentIds_);this.opaqueExperimentIds_&&a.setOpaqueExperimentIds(this.opaqueExperimentIds_);this.useSendBeaconForFinalFlush_&&pvb(a,this.useSendBeaconForFinalFlush_);this.useGetRequestForFinalFlush_&&(a.useGetRequestForFinalFlush=this.useGetRequestForFinalFlush_);this.flushIntervalMs_&&a.setFlushIntervalMs(this.flushIntervalMs_);this.userAgentClientHintsProvider_&&vvb(a.logRequestBuilder,this.userAgentClientHintsProvider_);return a};
var JE=function(a){a=void 0===a?-1:a;var b=void 0===b?"":b;var c=void 0===c?"":c;var d=void 0===d?!1:d;var e=void 0===e?"":e;var f=(new ema(a)).setComponentId(b);""!=c&&(f.destinationUrl_=c);d&&(f.enableServiceWorkerScope_=!0);e&&f.setBuildLabel(e);c=f.build();this.logSource_=a;this.componentId_=b;this.transport_=c};JE.prototype.getLogSource=function(){return this.logSource_};JE.prototype.getComponentId=function(){return this.componentId_};
JE.prototype.flush=function(a){var b=a||[];if(b.length){a=new stb;for(var c=[],d=0;d<b.length;d++){var e=b[d],f=e;var h=new QD;h=l(h,1,f.metricName_);for(var k=f,q=[],u=0;u<k.fields_.length;u++)q.push(k.fields_[u].field_name);h=ml(h,3,q);k=[];q=[];u=r(f.cellMap_.keys());for(var y=u.next();!y.done;y=u.next())q.push(y.value.split(","));for(u=0;u<q.length;u++){y=q[u];var D=f.cellType_;for(var I=f.getCells(y)||[],N=[],L=0;L<I.length;L++){var S=I[L];S=S&&S.cellValue_;var X=new XD;switch(D){case 3:ho(X,
1,YD,Number(S));break;case 2:ho(X,2,YD,Number(S))}N.push(X)}D=N;for(I=0;I<D.length;I++){N=D[I];L=new UD;N=Db(L,2,N);L=y;S=[];X=f;for(var ka=[],ha=0;ha<X.fields_.length;ha++)ka.push(X.fields_[ha].field_type);X=ka;for(ka=0;ka<X.length;ka++){ha=X[ka];var ra=L[ka],Da=new VD;switch(ha){case 3:ho(Da,1,WD,String(ra));break;case 2:ho(Da,2,WD,Number(ra));break;case 1:ho(Da,3,WD,"true"==ra)}S.push(Da)}Cb(N,1,S);k.push(N)}}Cb(h,4,k);c.push(h);e.clear()}Cb(a,1,c);b=this.transport_;a instanceof AE?b.log(a):(a=
BE(new AE,a.serialize()),b.log(a));this.transport_.flush()}};
var wvb=new od("PRODUCTION_WHITELIST",{factory:function(){return"g3g-sidebar-source g3g-sidebar-b g3g-sidebar-critique-ng mdkmkbpoljeogkhbjlehikpbpdmfaopg dcdkpimnclfoiknojhlfjhinjmiclmeo devfuse.corp.google.com g3c.corp.google.com taskflow.corp.google.com partnerdash.google.com fusion2.corp.google.com b.corp.google.com critique-ng.corp.google.com critique.corp.google.com source.corp.google.com coreiq.corp.google.com perfgate.googleplex.com bugobserver.corp.google.com launch.corp.google.com prod.google.com analog-ng.corp.google.com".split(" ")}}),
xvb=new od("STREAMZ_PRODUCT_IDENTIFIER"),yvb=new od("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return t(mg).runOutsideAngular(function(){var a=new JE(1503);a=new Wsb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);return a})}}),KE=function(a,b,c,d){this.streamzService=a;this.zone=b;this.productionWhitelist=c;this.oneDeveloperWorkflowUsageMetrics=new Zsb(this.streamzService);new $sb(this.streamzService);new atb(this.streamzService);new btb(this.streamzService);
this.productIdentifier=d||window.location.hostname},LE=function(a,b,c){a.zone.runOutsideAngular(function(){zvb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,c)})},zvb=function(a){return a.productionWhitelist.some(function(b){return a.productIdentifier.includes(b)})};KE.\u0275fac=function(a){return new (a||KE)(t(yvb),t(mg),t(wvb),t(xvb,8))};KE.\u0275prov=hc({token:KE,factory:KE.\u0275fac,providedIn:"root"});
var Avb=new od("Feature Tooltip Controller Config"),ME=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(KE):void 0;this.lastTooltipKey="onedev.lastTooltipTime."+this.config.productName;var d;this.config.shownMetricName=null!=(d=this.config.shownMetricName)?d:"tooltipShown";var e;this.config.hiddenMetricName=null!=(e=this.config.hiddenMetricName)?e:"tooltipHidden"},Bvb=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(R(function(b){return null===
b?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))},Cvb=function(a,b){a.keyValueStore.getValue(NE(a,b)).pipe(uf(function(c){return"SHOWING"!==c})).subscribe(function(){a.keyValueStore.setValue(NE(a,b),"HIDDEN")})},Evb=function(a,b,c){var d=c.map(function(e){return NE(a,e)});return a.keyValueStore.getValues(d).pipe(R(function(e){return Dvb(a,b,c,e)}))},Dvb=function(a,b,c,d){return c.filter(function(e){e=d.get(NE(a,e));return e===b||"UNSEEN"===b&&null===e})},NE=function(a,b){return"onedev.tooltips."+
a.config.productName+"."+b};ME.\u0275fac=function(a){return new (a||ME)(t(Avb),t(WC),t(Uv))};ME.\u0275prov=hc({token:ME,factory:ME.\u0275fac,providedIn:VC});
var OE=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=(0,T.of)(void 0);this.destroyed$=new T.ReplaySubject;this.getCurrentlyShowingTooltips=function(){return Evb(b.featureTooltipService,"SHOWING",Fvb(b))}};
OE.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(eg(this.getCurrentlyShowingTooltips),eg(function(c){return 0<c.length?(0,T.of)(c[0]):(0,T.of)(void 0).pipe(Gvb(a),Hvb(a))}),R(function(c){return Ivb(a,c)}),uf(function(c){return!!c}),R(function(c){return c}),bg({bufferSize:1,refCount:!0}));Jvb(this,b);b.pipe(fg(this.destroyed$)).subscribe(function(c){c.open$.next();var d=a.featureTooltipService;c=c.tooltipId;var e;null==(e=d.clientStreamzService)||LE(e,d.config.shownMetricName,
!0);(0,T.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,(new Date).getTime()),d.keyValueStore.setValue(NE(d,c),"SHOWING")]).pipe(Xf())})};OE.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Gvb=function(a){return(0,T.pipe)(eg(function(){return Bvb(a.featureTooltipService)}),uf(T.identity))},Hvb=function(a){return(0,T.pipe)(eg(function(){return Evb(a.featureTooltipService,"UNSEEN",Fvb(a))}),uf(function(b){return 0<b.length}),R(function(b){return b[0]}))},Jvb=function(a,b){b.pipe(eg(function(c){return c.dismiss.pipe(Xf(c.tooltipId))}),fg(a.destroyed$)).subscribe(function(c){var d=a.featureTooltipService,e;null==(e=d.clientStreamzService)||LE(e,d.config.hiddenMetricName,!0);(0,T.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,
(new Date).getTime()),d.keyValueStore.setValue(NE(d,c),"HIDDEN")]).pipe(Xf())})},Fvb=function(a){return a.tooltips.map(function(b){return b.tooltipId})},Ivb=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===b})};OE.\u0275fac=function(a){return new (a||OE)(C(ME))};
OE.\u0275cmp=w({type:OE,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&Ff(c,TC,4);if(a&2){var d;Df(d=Gf())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var PE=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};PE.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){r(b).next().value.isIntersecting?trb(a.anchorService,a.tooltipId,a.element):urb(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):trb(this.anchorService,this.tooltipId,this.element)};
PE.prototype.ngOnDestroy=function(){urb(this.anchorService,this.tooltipId);var a;null==(a=this.intersectionObserver)||a.disconnect()};PE.\u0275fac=function(a){return new (a||PE)(C(OC),C(sd))};PE.\u0275dir=w({type:PE,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:["onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"}});
var QE=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){Cvb(d.featureTooltipService,d.tooltipId)}};QE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};QE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};
oi.Object.defineProperties(QE.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;null==(b=this.unsubscribeFromEvent)||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});QE.\u0275fac=function(a){return new (a||QE)(C(ME),C(Zv),C(sd))};QE.\u0275dir=w({type:QE,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:["onedevTooltipPreventer","tooltipId"],event:["onedevPreventTooltipOn","event"]}});
var Kvb=new od("TooltipAnchor"),Lvb=new od("TooltipPeventer"),RE=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)};RE.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
RE.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};oi.Object.defineProperties(RE.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}}});
RE.\u0275fac=function(a){return new (a||RE)(C(ME),C(OC),C(sd),C(Zv),C(Kvb),C(Lvb))};RE.\u0275dir=w({type:RE,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:["onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:["onedevPreventTooltipOn","event"]},features:[Je([{provide:Kvb,useValue:PE},{provide:Lvb,useValue:QE}])]});
var SE=function(a,b,c){this.anchorService=a;this.renderer=b;this.elementRef=c};SE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};SE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};oi.Object.defineProperties(SE.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b=this,c;null==(c=this.unsubscribeFromEvent)||c.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,function(){b.anchorService.dismissTooltip(b.tooltipId)})}}});
SE.\u0275fac=function(a){return new (a||SE)(C(OC),C(Zv),C(sd))};SE.\u0275dir=w({type:SE,selectors:[["","onedevTooltipDismisser",""]],inputs:{tooltipId:["onedevTooltipDismisser","tooltipId"],event:["onedevDismissOn","event"]}});
var TE=function(){this.className="gmat-subtitle-1 tooltip-title"};TE.\u0275fac=function(a){return new (a||TE)};TE.\u0275dir=w({type:TE,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&qe(b.className)}});
var Mvb=function(){},Nvb=function(){};
var Bm=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?this.lazyInit="string"===typeof a?function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");if(0<d){var e=c.slice(0,d),f=e.toLowerCase();c=c.slice(d+1).trim();Ovb(b,e,f);b.headers.has(f)?b.headers.get(f).push(c):b.headers.set(f,[c])}})}:function(){b.headers=new Map;Object.keys(a).forEach(function(c){var d=a[c],e=c.toLowerCase();"string"===typeof d&&(d=[d]);0<d.length&&(b.headers.set(e,d),Ovb(b,
c,e))})}:this.headers=new Map};g=Bm.prototype;g.has=function(a){this.init();return this.headers.has(a.toLowerCase())};g.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&0<a.length?a[0]:null};g.keys=function(){this.init();return Array.from(this.normalizedNames.values())};g.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};g.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
g.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var Ovb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};Bm.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof Bm?Pvb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return Qvb(a,b)}),this.lazyUpdate=null))};
var Pvb=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))})};Bm.prototype.clone=function(a){var b=new Bm;b.lazyInit=this.lazyInit&&this.lazyInit instanceof Bm?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var Qvb=function(a,b){var c=b.name.toLowerCase();switch(b.op){case "a":case "s":var d=b.value;"string"===typeof d&&(d=[d]);if(0===d.length)break;Ovb(a,b.name,c);b=("a"===b.op?a.headers.get(c):void 0)||[];b.push.apply(b,v(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-1===e.indexOf(f)}),0===d.length?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}};
Bm.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 Rvb=function(){},gma=/%(\d[a-f0-9])/gi,hma={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},zm=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new Rvb;if(a.fromString){if(a.fromObject)throw Error("Fb");this.map=fma(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(jma):[""+d];b.map.set(c,d)})):this.map=null};g=zm.prototype;
g.has=function(a){this.init();return this.map.has(a)};g.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};g.getAll=function(a){this.init();return this.map.get(a)||null};g.keys=function(){this.init();return Array.from(this.map.keys())};g.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
g.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=ima(b);return a.map.get(b).map(function(d){return c+"="+ima(d)}).join("&")}).filter(function(b){return""!==b}).join("&")};g.clone=function(a){var b=new zm({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
g.init=function(){var a=this;null===this.map&&(this.map=new Map);null!==this.cloneFrom&&(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=("a"===b.op?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(void 0!==b.value){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);-1!==d&&c.splice(d,1);0<c.length?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};
var Svb=function(){this.map=new Map};g=Svb.prototype;g.set=function(a,b){this.map.set(a,b);return this};g.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};g.delete=function(a){this.map.delete(a);return this};g.has=function(a){return this.map.has(a)};g.keys=function(){return this.map.keys()};
var Am=function(a,b,c,d){this.url=b;this.body=null;this.withCredentials=this.reportProgress=!1;this.responseType="json";this.method=a.toUpperCase();a:switch(this.method){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":a=!1;break a;default:a=!0}if(a||d)this.body=void 0!==c?c:null,c=d;c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),
c.params&&(this.params=c.params));this.headers||(this.headers=new Bm);this.context||(this.context=new Svb);this.params?(c=this.params.toString(),0===c.length?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(-1===d?"?":d<b.length-1?"&":"")+c)):(this.params=new zm,this.urlWithParams=b)},Tvb=function(a){return null===a.body?null:kma(a.body)||lma(a.body)||mma(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
zm?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
Am.prototype.clone=function(a){a=void 0===a?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e=void 0!==a.body?a.body:this.body,f=void 0!==a.withCredentials?a.withCredentials:this.withCredentials,h=void 0!==a.reportProgress?a.reportProgress:this.reportProgress,k=a.headers||this.headers,q=a.params||this.params,u,y=null!=(u=a.context)?u:this.context;void 0!==a.setHeaders&&(k=Object.keys(a.setHeaders).reduce(function(D,I){return D.set(I,a.setHeaders[I])},k));a.setParams&&
(q=Object.keys(a.setParams).reduce(function(D,I){return D.set(I,a.setParams[I])},q));return new Am(b,c,e,{params:q,headers:k,context:y,reportProgress:h,responseType:d,withCredentials:f})};
var UE=function(a,b,c){this.headers=a.headers||new Bm;this.status=void 0!==a.status?a.status:void 0===b?200:b;this.statusText=a.statusText||(void 0===c?"OK":c);this.url=a.url||null;this.ok=200<=this.status&&300>this.status},VE=function(a){a=void 0===a?{}:a;UE.call(this,a);this.type=2};U(VE,UE);VE.prototype.clone=function(a){a=void 0===a?{}:a;return new VE({headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var WE=function(a){a=void 0===a?{}:a;UE.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};U(WE,UE);WE.prototype.clone=function(a){a=void 0===a?{}:a;return new WE({body:void 0!==a.body?a.body:this.body,headers:a.headers||this.headers,status:void 0!==a.status?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var Uvb=function(a){UE.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=200<=this.status&&300>this.status?"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};U(Uvb,UE);
var XE=function(a){this.handler=a};g=XE.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof Am)b=a;else{var e=void 0;e=c.headers instanceof Bm?c.headers:new Bm(c.headers);var f=void 0;c.params&&(f=c.params instanceof zm?c.params:new zm({fromObject:c.params}));b=new Am(a,b,void 0!==c.body?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials})}e=(0,T.of)(b).pipe(nf(function(h){return d.handler.handle(h)},1));if(a instanceof
Am||"events"===c.observe)return e;a=e.pipe(uf(function(h){return h instanceof WE}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(R(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("Gb");return h.body}));case "blob":return a.pipe(R(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("Hb");return h.body}));case "text":return a.pipe(R(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("Ib");return h.body}));
default:return a.pipe(R(function(h){return h.body}))}case "response":return a;default:throw Error("Jb`"+c.observe);}};g.delete=function(a,b){b=void 0===b?{}:b;return this.request("DELETE",a,b)};g.get=function(a,b){b=void 0===b?{}:b;return this.request("GET",a,b)};g.head=function(a,b){b=void 0===b?{}:b;return this.request("HEAD",a,b)};g.jsonp=function(a,b){return this.request("JSONP",a,{params:(new zm).append(b,"JSONP_CALLBACK"),observe:"body",responseType:"json"})};
g.options=function(a,b){b=void 0===b?{}:b;return this.request("OPTIONS",a,b)};g.patch=function(a,b,c){c=void 0===c?{}:c;return this.request("PATCH",a,nma(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,nma(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,nma(c,b))};XE.\u0275fac=function(a){return new (a||XE)(t(Mvb))};XE.\u0275prov=hc({token:XE,factory:XE.\u0275fac});
var Vvb=function(a,b){this.next=a;this.interceptor=b};Vvb.prototype.handle=function(a){return this.interceptor.intercept(a,this.next)};var YE=new od("HTTP_INTERCEPTORS");
var Wvb=/^\)\]\}',?\n/,ZE=function(a){this.xhrFactory=a};
ZE.prototype.handle=function(a){var b=this;if("JSONP"===a.method)throw Error("Kb");return new T.Observable(function(c){var d=b.xhrFactory.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(N,L){return d.setRequestHeader(N,L.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=null===a.body||mma(a.body)?null:lma(a.body)?a.body.type||null:kma(a.body)?
null:"string"===typeof a.body?"text/plain":a.body instanceof zm?"application/x-www-form-urlencoded;charset=UTF-8":"object"===typeof a.body||"number"===typeof a.body||"boolean"===typeof a.body?"application/json":null;null!==e&&d.setRequestHeader("Content-Type",e)}a.responseType&&(e=a.responseType.toLowerCase(),d.responseType="json"!==e?e:"text");var f=Tvb(a),h=null,k=function(){if(null!==h)return h;var N=d.statusText||"OK",L=new Bm(d.getAllResponseHeaders()),S=("responseURL"in d&&d.responseURL?d.responseURL:
/^X-Request-URL:/m.test(d.getAllResponseHeaders())?d.getResponseHeader("X-Request-URL"):null)||a.url;return h=new VE({headers:L,status:d.status,statusText:N,url:S})},q=function(){var N=k(),L=N.headers,S=N.status,X=N.statusText;N=N.url;var ka=null;204!==S&&(ka="undefined"===typeof d.response?d.responseText:d.response);0===S&&(S=ka?200:0);var ha=200<=S&&300>S;if("json"===a.responseType&&"string"===typeof ka){var ra=ka;ka=ka.replace(Wvb,"");try{ka=""!==ka?JSON.parse(ka):null}catch(Da){ka=ra,ha&&(ha=
!1,ka={error:Da,text:ka})}}ha?(c.next(new WE({body:ka,headers:L,status:S,statusText:X,url:N||void 0})),c.complete()):c.error(new Uvb({error:ka,headers:L,status:S,statusText:X,url:N||void 0}))},u=function(N){var L=k().url;c.error(new Uvb({error:N,status:d.status||0,statusText:d.statusText||"Unknown Error",url:L||void 0}))},y=!1,D=function(N){y||(c.next(k()),y=!0);var L={type:3,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);"text"===a.responseType&&d.responseText&&(L.partialText=d.responseText);
c.next(L)},I=function(N){var L={type:1,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);c.next(L)};d.addEventListener("load",q);d.addEventListener("error",u);d.addEventListener("timeout",u);d.addEventListener("abort",u);a.reportProgress&&(d.addEventListener("progress",D),null!==f&&d.upload&&d.upload.addEventListener("progress",I));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",u);d.removeEventListener("abort",u);d.removeEventListener("load",q);d.removeEventListener("timeout",
u);a.reportProgress&&(d.removeEventListener("progress",D),null!==f&&d.upload&&d.upload.removeEventListener("progress",I));d.readyState!==d.DONE&&d.abort()}})};ZE.\u0275fac=function(a){return new (a||ZE)(t(knb))};ZE.\u0275prov=hc({token:ZE,factory:ZE.\u0275fac});
var Xvb=new od("XSRF_COOKIE_NAME"),Yvb=new od("XSRF_HEADER_NAME"),Zvb=function(){},$E=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
$E.prototype.getToken=function(){if("server"===this.platform)return null;var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=r(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=r(-1==e?[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};
$E.\u0275fac=function(a){return new (a||$E)(t(mi),t(hw),t(Xvb))};$E.\u0275prov=hc({token:$E,factory:$E.\u0275fac});var aF=function(a,b){this.tokenService=a;this.headerName=b};aF.prototype.intercept=function(a,b){var c=a.url.toLowerCase();if("GET"===a.method||"HEAD"===a.method||c.startsWith("http://")||c.startsWith("https://"))return b.handle(a);c=this.tokenService.getToken();null===c||a.headers.has(this.headerName)||(a=a.clone({headers:a.headers.set(this.headerName,c)}));return b.handle(a)};
aF.\u0275fac=function(a){return new (a||aF)(t(Zvb),t(Yvb))};aF.\u0275prov=hc({token:aF,factory:aF.\u0275fac});
var bF=function(a,b){this.backend=a;this.injector=b;this.chain=null};bF.prototype.handle=function(a){null===this.chain&&(this.chain=this.injector.get(YE,[]).reduceRight(function(b,c){return new Vvb(b,c)},this.backend));return this.chain.handle(a)};bF.\u0275fac=function(a){return new (a||bF)(t(Nvb),t(Uv))};bF.\u0275prov=hc({token:bF,factory:bF.\u0275fac});var cF=function(){};cF.\u0275fac=function(a){return new (a||cF)};cF.\u0275mod=xc({type:cF});
cF.\u0275inj=ic({providers:[aF,{provide:YE,useExisting:aF,multi:!0},{provide:Zvb,useClass:$E},{provide:Xvb,useValue:"XSRF-TOKEN"},{provide:Yvb,useValue:"X-XSRF-TOKEN"}]});var dF=function(){};dF.\u0275fac=function(a){return new (a||dF)};dF.\u0275mod=xc({type:dF});var eF={cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"};eF=void 0===eF?{}:eF;
dF.\u0275inj=ic({providers:[XE,{provide:Mvb,useClass:bF},ZE,{provide:Nvb,useExisting:ZE}],imports:[{ngModule:cF,providers:[eF.cookieName?{provide:Xvb,useValue:eF.cookieName}:[],eF.headerName?{provide:Yvb,useValue:eF.headerName}:[]]}]});
var Ai;
var fF=function(a,b){this.url=a;this.svgText=null;this.options=b},gF=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"];this._document=c},$vb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},awb=function(a,b,c){c=void 0===c?"":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):(0,T.throwError)(Error("Lb`"+d))};g=gF.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?(0,T.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(R(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,T.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(Pf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,T.of)(null)}))});return(0,T.forkJoin)(d).pipe(R(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Lb`"+a);return e}))};
g._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;0<=c;c--){var d=b[c];if(d.svgText&&-1<d.svgText.toString().indexOf(a)){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};g._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(gg(function(c){return a.svgText=c}),R(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,T.of)(null):this._fetchIcon(a).pipe(gg(function(b){return a.svgText=b}))};
g._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if("svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,c);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(pma("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
g._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("Ob");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(pma("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;"id"!==f&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
g._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
g._fetchIcon=function(a){var b=this,c=a.url,d,e;a=null!=(e=null==(d=a.options)?void 0:d.withCredentials)?e:!1;if(!this._httpClient)throw Error("Mb");if(null==c)throw Error("Pb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Nb`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(R(function(h){return pma(h)}),Vf(function(){return b._inProgressUrlFetches.delete(f)}),ag());this._inProgressUrlFetches.set(f,c);return c};
g._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};g._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};g._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
g._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new fF(d.url,d.options):new fF(d)}};gF.\u0275fac=function(a){return new (a||gF)(t(XE,8),t(oz),t(mi,8),t(Zd))};gF.\u0275prov=hc({token:gF,factory:gF.\u0275fac,providedIn:"root"});new Rv;new Sv;new Rv;new Rv;
var bwb=pi(function(a){this._elementRef=a}),cwb=new od("MAT_ICON_DEFAULT_OPTIONS"),dwb=new od("mat-icon-location",{providedIn:"root",factory:qma}),ewb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),fwb=ewb.map(function(a){return"["+a+"]"}).join(", "),gwb=/^url\(['"]?#(.*?)['"]?\)$/,hF=function(a,b,c,d,e,f){var h=bwb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
T.Subscription.EMPTY;f&&(f.color&&(h.color=h.defaultColor=f.color),f.fontSet&&(h.fontSet=f.fontSet));c||a.nativeElement.setAttribute("aria-hidden","true");return h};U(hF,bwb);g=hF.prototype;g._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("Qb`"+a);}};g.ngOnInit=function(){this._updateFontIconClasses()};
g.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};g.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};g._usingFontIcon=function(){return!this.svgIcon};
g._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};g._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];1===c.nodeType&&"svg"!==c.nodeName.toLowerCase()||c.remove()}};
g._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?[$vb(this._iconRegistry,this.fontSet)]:this._iconRegistry._defaultFontSetClass).filter(function(c){return 0<c.length});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&&(this._previousFontIconClass&&a.classList.remove(this._previousFontIconClass),
this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};g._cleanupFontValue=function(a){return"string"===typeof a?a.trim().split(" ")[0]:a};g._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
g._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(fwb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={$jscomp$loop$prop$i$1655:0};a.$jscomp$loop$prop$i$1655<b.length;a={$jscomp$loop$prop$i$1655:a.$jscomp$loop$prop$i$1655},a.$jscomp$loop$prop$i$1655++)ewb.forEach(function(d){return function(e){var f=b[d.$jscomp$loop$prop$i$1655],h=f.getAttribute(e);if(h=h?h.match(gwb):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:h[1]})}}}(a))};
g._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=r(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=awb(this._iconRegistry,d,c).pipe(Tf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Rb`"+c+"`"+d+"`"+e.message))})}};
oi.Object.defineProperties(hF.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=Yg(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())}}});hF.\u0275fac=function(a){return new (a||hF)(C(sd),C(gF),bd("aria-hidden"),C(dwb),C(Zd),C(cwb,8))};
hF.\u0275cmp=w({type:hF,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(a,b){a&2&&(ke("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet),pe("mat-icon-inline",b.inline)("mat-icon-no-color","primary"!==b.color&&"accent"!==b.color&&"warn"!==b.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},
exportAs:["matIcon"],features:[ee],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ae(),Be(0))},styles:[".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}[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 hwb=Hh("transformMenu",[Kh("void",Jh({opacity:0,transform:"scale(0.8)"})),Lh("void => enter",Ih("120ms cubic-bezier(0, 0, 0.2, 1)",Jh({opacity:1,transform:"scale(1)"}))),Lh("* => void",Ih("100ms 25ms linear",Jh({opacity:0})))]),iwb=Hh("fadeInItems",[Kh("showing",Jh({opacity:1})),Lh("void => *",[Jh({opacity:0}),Ih("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var jwb=new od("MatMenuContent"),iF=function(a,b,c,d,e,f,h){this._template=a;this._componentFactoryResolver=b;this._appRef=c;this._injector=d;this._viewContainerRef=e;this._document=f;this._changeDetectorRef=h;this._attached=new T.Subject};
iF.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new bB(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new dB(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var b=this._template.elementRef.nativeElement;b.parentNode.insertBefore(this._outlet.outletElement,b);var c;null==(c=this._changeDetectorRef)||c.markForCheck();this._portal.attach(this._outlet,a);this._attached.next()};
iF.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};iF.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};iF.\u0275fac=function(a){return new (a||iF)(C(Af),C(Wv),C(xx),C(Uv),C(Bf),C(mi),C(zx))};iF.\u0275dir=w({type:iF});var jF=function(){iF.apply(this,arguments)};U(jF,iF);jF.\u0275fac=function(){var a;return function(b){return(a||(a=hd(jF)))(b||jF)}}();
jF.\u0275dir=w({type:jF,selectors:[["ng-template","matMenuContent",""]],features:[Je([{provide:jwb,useExisting:jF}]),ee]});
var kwb=new od("MAT_MENU_PANEL");
var lwb=qi(ri(function(){})),kF=function(a,b,c,d,e){var f=lwb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new T.Subject;f._focused=new T.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};U(kF,lwb);g=kF.prototype;g.focus=function(a,b){this._focusMonitor&&a?Xz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};
g.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};g.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._elementRef.nativeElement};
g._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};g._handleMouseEnter=function(){this._hovered.next(this)};g.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return(null==(d=a.textContent)?void 0:d.trim())||""};g._setHighlighted=function(a){this._highlighted=a;var b;null==(b=this._changeDetectorRef)||b.markForCheck()};
g._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};kF.\u0275fac=function(a){return new (a||kF)(C(sd),C(mi),C(Wz),C(kwb,8),C(zx))};
kF.\u0275cmp=w({type:kF,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(a,b){a&1&&J("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(ke("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null),pe("mat-menu-item",!0)("mat-menu-item-highlighted",b._highlighted)("mat-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ee],attrs:["mat-menu-item",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(Ae(),Be(0),H(1,"div",0),M(2,rma,2,0,"svg",1));a&2&&(B(1),
E("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(1),E("ngIf",b._triggersSubmenu))},dependencies:[Gx,yB],encapsulation:2,changeDetection:0});
var mwb=new od("mat-menu-default-options",{providedIn:"root",factory:tma}),nwb=0,lF=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._defaultOptions=c;this._changeDetectorRef=d;this._xPosition=this._defaultOptions.xPosition;this._yPosition=this._defaultOptions.yPosition;this._directDescendantItems=new Hf;this._tabSubscription=T.Subscription.EMPTY;this._classList={};this._panelAnimationState="void";this._animationDone=new T.Subject;this.overlayPanelClass=this._defaultOptions.overlayPanelClass||
"";this.backdropClass=this._defaultOptions.backdropClass;this._overlapTrigger=this._defaultOptions.overlapTrigger;this._hasBackdrop=this._defaultOptions.hasBackdrop;this.close=this.closed=new Vw;this.panelId="mat-menu-panel-"+nwb++};g=lF.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=pA(oA(lA(new uA(this._directDescendantItems))));this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(dg(this._directDescendantItems),eg(function(b){return T.merge.apply(null,v(b.map(function(c){return c._focused})))})).subscribe(function(b){return qA(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=
a._keyManager,d;"enter"===a._panelAnimationState&&(null==(d=c.activeItem)?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};g.ngOnDestroy=function(){this._directDescendantItems.destroy();this._tabSubscription.unsubscribe();this.closed.complete()};g._hovered=function(){return this._directDescendantItems.changes.pipe(dg(this._directDescendantItems),eg(function(a){return T.merge.apply(null,v(a.map(function(b){return b._hovered})))}))};
g.addItem=function(){};g.removeItem=function(){};g._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:ki(a)||(a.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:if(38===b||40===b)c._origin="keyboard";c.onKeydown(a);return}a.stopPropagation()};
var owb=function(a,b){b=void 0===b?"program":b;a._ngZone.onStable.pipe(Tf()).subscribe(function(){var c=null;a._directDescendantItems.length&&(c=a._directDescendantItems.first._getHostElement().closest('[role="menu"]'));if(!c||!c.contains(document.activeElement)){var d=a._keyManager;d._origin=b;rA(d);!d.activeItem&&c&&c.focus()}})};g=lF.prototype;
g.setElevation=function(a){var b=this;a=this._elevationPrefix+Math.min(this._baseElevation+a,24);var c=Object.keys(this._classList).find(function(d){return d.startsWith(b._elevationPrefix)});c&&c!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)};
g.setPositionClasses=function(a,b){a=void 0===a?this.xPosition:a;b=void 0===b?this.yPosition:b;var c=this._classList;c["mat-menu-before"]="before"===a;c["mat-menu-after"]="after"===a;c["mat-menu-above"]="above"===b;c["mat-menu-below"]="below"===b;var d;null==(d=this._changeDetectorRef)||d.markForCheck()};g._startAnimation=function(){this._panelAnimationState="enter"};g._resetAnimation=function(){this._panelAnimationState="void"};
g._onAnimationDone=function(a){this._animationDone.next(a);this._isAnimating=!1};g._onAnimationStart=function(a){this._isAnimating=!0;"enter"===a.toState&&0===this._keyManager.activeItemIndex&&(a.element.scrollTop=0)};g._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(dg(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));Cf(a._directDescendantItems)})};
oi.Object.defineProperties(lF.prototype,{xPosition:{configurable:!0,enumerable:!0,get:function(){return this._xPosition},set:function(a){this._xPosition=a;this.setPositionClasses()}},yPosition:{configurable:!0,enumerable:!0,get:function(){return this._yPosition},set:function(a){this._yPosition=a;this.setPositionClasses()}},overlapTrigger:{configurable:!0,enumerable:!0,get:function(){return this._overlapTrigger},set:function(a){this._overlapTrigger=Yg(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=Yg(a)}},panelClass:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(function(d){b._classList[d]=!1});(this._previousPanelClass=a)&&a.length&&(a.split(" ").forEach(function(d){b._classList[d]=!0}),this._elementRef.nativeElement.className="")}},classList:{configurable:!0,enumerable:!0,get:function(){return this.panelClass},set:function(a){this.panelClass=a}}});
lF.\u0275fac=function(a){return new (a||lF)(C(sd),C(mg),C(mwb),C(zx))};
lF.\u0275dir=w({type:lF,contentQueries:function(a,b,c){a&1&&(Ff(c,jwb,5),Ff(c,kF,5),Ff(c,kF,4));if(a&2){var d;Df(d=Gf())&&(b.lazyContent=d.first);Df(d=Gf())&&(b._allItems=d);Df(d=Gf())&&(b.items=d)}},viewQuery:function(a,b){a&1&&Ef(Af,5);if(a&2){var c;Df(c=Gf())&&(b.templateRef=c.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",
overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var mF=function(a,b,c,d){lF.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};U(mF,lF);mF.\u0275dir=lF.\u0275dir;mF.\u0275fac=function(a){return new (a||mF)(C(sd),C(mg),C(mwb),C(zx))};
mF.\u0275cmp=w({type:mF,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(a){a&2&&ke("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Je([{provide:kwb,useExisting:mF}]),ee],ngContentSelectors:["*"],decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(a){a&1&&(Ae(),M(0,sma,3,6,"ng-template"))},dependencies:[Jx],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,data:{animation:[hwb,iwb]},changeDetection:0});
var pwb=new od("mat-menu-scroll-strategy"),qwb={provide:pwb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},rwb=Rg({passive:!0}),oF=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._element=b;this._viewContainerRef=c;this._menuItemInstance=f;this._dir=h;this._focusMonitor=k;this._ngZone=q;this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._hoverSubscription=this._closingActionsSubscription=T.Subscription.EMPTY;this._handleTouchStart=
function(y){ji(y)||(u._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Vw;this.onMenuClose=this.menuClosed=new Vw;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof lF?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,rwb);f&&(f._triggersSubmenu=nF(this))};oF.prototype.ngAfterContentInit=function(){this._handleHover()};
oF.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,rwb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};
var nF=function(a){return!(!a._menuItemInstance||!a._parentMaterialMenu)},Ci=function(a){var b=a.menu;if(!a._menuOpen&&b){var c=a._createOverlay(b),d=c.getConfig(),e=d.positionStrategy;a._setPosition(b,e);d.hasBackdrop=null==b.hasBackdrop?!nF(a):b.hasBackdrop;c.attach(a._getPortal(b));b.lazyContent&&b.lazyContent.attach(a.menuData);a._closingActionsSubscription=a._menuClosingActions().subscribe(function(){return a.closeMenu()});a._initMenu(b);b instanceof lF&&(b._startAnimation(),b._directDescendantItems.changes.pipe(fg(b.close)).subscribe(function(){Jpb(VA(e,
!1));VA(e,!0)}))}};g=oF.prototype;g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?Xz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.updatePosition=function(){var a;null==(a=this._overlayRef)||a.updatePosition()};
g._destroyMenu=function(a){var b=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe();this._overlayRef.detach();!this.restoreFocus||"keydown"!==a&&this._openedBy&&nF(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof lF)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(uf(function(e){return"void"===e.toState}),Tf(),fg(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return b._setIsMenuOpen(!1)}}):
this._setIsMenuOpen(!1);else{this._setIsMenuOpen(!1);var d;null==c||null==(d=c.lazyContent)||d.detach()}}};g._initMenu=function(a){a.parentMenu=nF(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);owb(a,this._openedBy||"program");this._setIsMenuOpen(!0)};g._setMenuElevation=function(a){if(a.setElevation){for(var b=0,c=a.parentMenu;c;)b++,c=c.parentMenu;a.setElevation(b)}};
g._setIsMenuOpen=function(a){(this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit();nF(this)&&this._menuItemInstance._setHighlighted(a)};g._createOverlay=function(a){if(!this._overlayRef){var b=this._getOverlayConfig(a);this._subscribeToPositions(a,b.positionStrategy);this._overlayRef=this._overlay.create(b);this._overlayRef.keydownEvents().subscribe()}return this._overlayRef};
g._getOverlayConfig=function(a){return new OA({positionStrategy:Mpb(Lpb(VA(ZA(this._overlay.position(),this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})};
g._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){var e="start"===d.connectionPair.overlayX?"after":"before",f="top"===d.connectionPair.overlayY?"below":"above";c._ngZone?c._ngZone.run(function(){return a.setPositionClasses(e,f)}):a.setPositionClasses(e,f)})};
g._setPosition=function(a,b){var c=r("before"===a.xPosition?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=r("above"===a.yPosition?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=r([f,e]),k=h.next().value;h=h.next().value;var q=r([d,c]),u=q.next().value;q=q.next().value;var y=0;nF(this)?(q=d="before"===a.xPosition?"start":"end",c=u="end"===d?"start":"end",this._parentMaterialMenu&&(null==this._parentInnerPadding&&(this._parentInnerPadding=(a=this._parentMaterialMenu.items.first)?
a._getHostElement().offsetTop:0),y="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k="top"===f?"bottom":"top",h="top"===e?"bottom":"top");RA(b,[{originX:d,originY:k,overlayX:u,overlayY:f,offsetY:y},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:y},{originX:d,originY:h,overlayX:u,overlayY:e,offsetY:-y},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-y}])};
g._menuClosingActions=function(){var a=this,b=this._overlayRef.backdropClick(),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(uf(function(f){return f!==a._menuItemInstance}),uf(function(){return a._menuOpen})):(0,T.of)();return(0,T.merge)(b,d,e,c)};g._handleMousedown=function(a){ii(a)||(this._openedBy=0===a.button?"mouse":void 0,nF(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";nF(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",Ci(this))};g._handleClick=function(a){nF(this)?(a.stopPropagation(),Ci(this)):this._menuOpen?this.closeMenu():Ci(this)};
g._handleHover=function(){var a=this;nF(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(uf(function(b){return b===a._menuItemInstance&&!b.disabled}),Rf(0,T.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof lF&&a.menu._isAnimating?a.menu._animationDone.pipe(Tf(),Rf(0,T.asapScheduler),fg(a._parentMaterialMenu._hovered())).subscribe(function(){return Ci(a)}):Ci(a)}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new bB(a.templateRef,this._viewContainerRef));return this._portal};
oi.Object.defineProperties(oF.prototype,{_deprecatedMatMenuTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.menu},set:function(a){this.menu=a}},menu:{configurable:!0,enumerable:!0,get:function(){return this._menu},set:function(a){var b=this;a!==this._menu&&(this._menu=a,this._menuCloseSubscription.unsubscribe(),a&&(this._menuCloseSubscription=a.close.subscribe(function(c){b._destroyMenu(c);"click"!==c&&"tab"!==c||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(c)})))}},
menuOpen:{configurable:!0,enumerable:!0,get:function(){return this._menuOpen}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}});oF.\u0275fac=function(a){return new (a||oF)(C(gB),C(sd),C(Bf),C(pwb),C(kwb,8),C(kF,10),C(vA,8),C(Wz),C(mg))};
oF.\u0275dir=w({type:oF,hostVars:3,hostBindings:function(a,b){a&1&&J("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&ke("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen||null)("aria-controls",b.menuOpen?b.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData",
"menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var pF=function(){oF.apply(this,arguments)};U(pF,oF);pF.\u0275fac=function(){var a;return function(b){return(a||(a=hd(pF)))(b||pF)}}();pF.\u0275dir=w({type:pF,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ee]});
var qF=function(){};qF.\u0275fac=function(a){return new (a||qF)};qF.\u0275mod=xc({type:qF});qF.\u0275inj=ic({providers:[qwb],imports:[ay,kB,CB,jB,LA,kB]});
var swb=new Set,rF,sF=function(a){this._platform=a;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):uma};sF.prototype.matchMedia=function(a){if((this._platform.WEBKIT||this._platform.BLINK)&&!swb.has(a))try{rF||(rF=document.createElement("style"),rF.setAttribute("type","text/css"),document.head.appendChild(rF)),rF.sheet&&(rF.sheet.insertRule("@media "+a+" {body{ }}",0),swb.add(a))}catch(b){console.error(b)}return this._matchMedia(a)};
sF.\u0275fac=function(a){return new (a||sF)(t(My))};sF.\u0275prov=hc({token:sF,factory:sF.\u0275fac,providedIn:"root"});
var tF=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new T.Subject};tF.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
tF.prototype.observe=function(a){var b=this;a=vma(Xg(a)).map(function(c){return b._registerQuery(c).observable});a=(0,T.combineLatest)(a);a=(0,T.concat)(a.pipe(Tf()),a.pipe(cg(1),Qf(0)));return a.pipe(R(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}))};
tF.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 T.Observable(function(e){var f=function(h){return b._zone.run(function(){return e.next(h)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(dg(c),R(function(e){return{query:a,matches:e.matches}}),fg(this._destroySubject)),mql:c};this._queries.set(a,d);return d};tF.\u0275fac=function(a){return new (a||tF)(t(sF),t(mg))};
tF.\u0275prov=hc({token:tF,factory:tF.\u0275fac,providedIn:"root"});
/*

 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
 @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 twb=["tooltip"],uwb=Rg({passive:!0}),vwb=new od("mat-tooltip-scroll-strategy"),wwb={provide:vwb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},xwb=new od("mat-tooltip-default-options",{providedIn:"root",factory:wma}),uF=function(a,b,c,d,e,f,h,k,q,u,y,D){var I=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=
u;this._defaultOptions=y;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=!1;this._viewportMargin=8;this._cssClassPrefix="mat";this._showDelay=this._defaultOptions.showDelay;this._hideDelay=this._defaultOptions.hideDelay;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new T.Subject;this._scrollStrategy=q;this._document=D;y&&(y.position&&(this.position=y.position),y.touchGestures&&(this.touchGestures=y.touchGestures));
u.change.pipe(fg(this._destroyed)).subscribe(function(){I._overlayRef&&I._updatePosition(I._overlayRef)})};g=uF.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(fg(this._destroyed)).subscribe(function(b){b?"keyboard"===b&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=r(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,uwb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();vpb(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a){var b=this;a=void 0===a?this.showDelay:a;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach();this._portal=this._portal||new aB(this._tooltipComponent,this._viewContainerRef);c=this._tooltipInstance=c.attach(this._portal).instance;c._triggerElement=this._elementRef.nativeElement;c._mouseLeaveHideDelay=this._hideDelay;c._onHide.pipe(fg(this._destroyed)).subscribe(function(){return b._detach()});
this._setTooltipClass(this._tooltipClass);this._updateTooltipMessage();c.show(a)}};g.hide=function(a){a=void 0===a?this.hideDelay:a;this._tooltipInstance&&this._tooltipInstance.hide(a)};g.toggle=function(){this._isTooltipVisible()?this.hide():this.show()};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(){var a=this;if(this._overlayRef)return this._overlayRef;var b=Cpb(this._scrollDispatcher,this._elementRef);b=Kpb(SA(TA(Mpb(ZA(this._overlay.position(),this._elementRef),".mat-tooltip"),!1),this._viewportMargin),b);b.positionChanges.pipe(fg(this._destroyed)).subscribe(function(d){a._updateCurrentPositionClass(d.connectionPair);a._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&a._tooltipInstance.isVisible()&&a._ngZone.run(function(){return a.hide(0)})});this._overlayRef=
this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(fg(this._destroyed)).subscribe(function(){return a._detach()});this._overlayRef.outsidePointerEvents().pipe(fg(this._destroyed)).subscribe(function(){var d;return null==(d=a._tooltipInstance)?void 0:d._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(fg(this._destroyed)).subscribe(function(d){a._isTooltipVisible()&&
27===d.keyCode&&!ki(d)&&(d.preventDefault(),d.stopPropagation(),a._ngZone.run(function(){return a.hide(0)}))});var c;(null==(c=this._defaultOptions)?0:c.disableTooltipInteractivity)&&this._overlayRef.addPanelClass("mat-tooltip-panel-non-interactive");return this._overlayRef};g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();RA(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){return a};
g._getOrigin=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b||"below"==b)var c={originX:"center",originY:"above"==b?"top":"bottom"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={originX:"start",originY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||"ltr"==this._dir.value,b=this.position;if("above"==b)var c={overlayX:"center",overlayY:"bottom"};else if("below"==b)c={overlayX:"center",overlayY:"top"};else if("before"==b||"left"==b&&a||"right"==b&&!a)c={overlayX:"end",overlayY:"center"};else if("after"==b||"right"==b&&a||"left"==b&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Tf(),fg(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===a?a="start":"start"===a&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b="center"===b?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===b&&"top"===a?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)c.removePanelClass("mat-tooltip-panel-"+this._currentPosition),c.addPanelClass("mat-tooltip-panel-"+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){a._setupPointerExitEventsIfNeeded();a.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show()},
500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&(null==(e=a._overlayRef)?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if("off"!==this.touchGestures){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,v(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=r(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,uwb)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if("off"!==a){var b=this._elementRef.nativeElement,c=b.style;if("on"===a||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";"on"!==a&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
oi.Object.defineProperties(uF.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;null==(b=this._tooltipInstance)||b.show(0);this._overlayRef.updatePosition()}}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Yg(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,
enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=ah(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=ah(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this;vpb(this._ariaDescriber,this._elementRef.nativeElement,this._message,"tooltip");this._message=null!=a?
String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){upb(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)}}});
uF.\u0275fac=function(){wd()};uF.\u0275dir=w({type:uF,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var wF=function(a,b,c,d,e,f,h,k,q,u,y,D){uF.call(this,a,b,c,d,e,f,h,k,q,u,y,D);this._tooltipComponent=vF};U(wF,uF);
wF.\u0275fac=function(a){return new (a||wF)(C(gB),C(sd),C(GA),C(Bf),C(mg),C(My),C(fA),C(Wz),C(vwb),C(vA,8),C(xwb,8),C(mi))};wF.\u0275dir=w({type:wF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ee]});var xF=function(a,b){this._changeDetectorRef=a;this._visibility="initial";this._isVisible=this._closeOnInteraction=!1;this._onHide=new T.Subject;this._animationsDisabled="NoopAnimations"===b};g=xF.prototype;
g.show=function(a){var b=this;clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};g.hide=function(a){var b=this;clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.isVisible=function(){return this._isVisible};
g.ngOnDestroy=function(){clearTimeout(this._showTimeoutId);clearTimeout(this._hideTimeoutId);this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||this.hide(this._mouseLeaveHideDelay)};g._onShow=function(){};
g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&"function"===typeof getComputedStyle&&(c=getComputedStyle(b),"0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0);this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
xF.\u0275fac=function(a){return new (a||xF)(C(zx),C(iw,8))};xF.\u0275dir=w({type:xF});var vF=function(a,b,c){xF.call(this,a,c);this._breakpointObserver=b;this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)");this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide"};U(vF,xF);vF.\u0275dir=xF.\u0275dir;vF.\u0275fac=function(a){return new (a||vF)(C(zx),C(tF),C(iw,8))};
vF.\u0275cmp=w({type:vF,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Ef(twb,7);if(a&2){var c;Df(c=Gf())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,b){a&1&&J("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&oe("zoom",b.isVisible()?1:null)},features:[ee],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("animationend",function(d){return b._handleAnimationEnd(d)}),
P(2,"async"),O(3),G());if(a&2){var c;pe("mat-tooltip-handset",null==(c=Q(2,4,b._isHandset))?null:c.matches);E("ngClass",b.tooltipClass);B(3);He(b.message)}},dependencies:[Jx,Tx],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],
encapsulation:2,changeDetection:0});
var ywb=["widgetMenuTrigger"],zwb=["snoozeMenuTrigger"],Awb=new Map([[0,{svgIcon:"g3c-widget-add",styleClass:"blue"}],[1,{svgIcon:"g3c-widget-pin-outlined",styleClass:"blue"}],[2,{svgIcon:"g3c-widget-schedule-outlined",styleClass:"orange"}],[3,{svgIcon:"g3c-widget-archive-outlined",styleClass:"red"}],[5,{svgIcon:"g3c-widget-notifications-off-outlined",styleClass:"purple"}]]),yF=function(a){this.dialog=a;this.destroyed$=new T.Subject;this.TaskStatus=prb;this.G3cWidgetFeatureTooltips=rrb;this.G3cWidgetUserActionType=
qrb;this.snoozeUntilMsInternal=0;this.shouldShowAddToG3cButton=!1;this.pinnedTasksCount=0;this.menuXPosition="before";this.featureHighlightingEnabled=this.skipTasksActions=!1;this.customWidgetClass="";this.updateTaskStatus=new Vw;this.addTaskByUrl=new Vw;this.widgetMenuOpen=new Vw;this.openInG3cClicked=new Vw;this.featureTooltipActioned=new Vw};yF.prototype.ngOnDestroy=function(){this.destroyed$.complete()};yF.prototype.stopPropagation=function(a){a.stopPropagation()};
var Bi=function(a,b,c){a.updateTaskStatus.emit({taskStatus:b,snoozeUntilMs:void 0===c?0:c})};yF.prototype.emitWidgetMenuOpen=function(){this.widgetMenuOpen.emit()};yF.prototype.emitOpenInG3cClicked=function(){this.openInG3cClicked.emit()};
var Di=function(a,b){if(isNaN(b.getTime()))throw Error("Sb");Bi(a,2,b.getTime())},Bwb=function(a){try{a.snoozeMenuTrigger.closeMenu();var b=new GC,c=new GC;c.add(new to("d",1));var d=Xla(a.dialog,{minDate:b,initialDate:c,initialTime:"08:00"});RB(d).pipe(Wf(),fg(a.destroyed$)).subscribe(function(e){e&&Bi(a,2,e)});d.keydownEvents().pipe(fg(a.destroyed$)).subscribe(function(e){e.stopPropagation()})}catch(e){}},zF=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
oi.Object.defineProperties(yF.prototype,{task:{configurable:!0,enumerable:!0,set:function(a){a?(this.taskStatusInternal=a.taskStatus,this.shouldShowAddToG3cButton=0===a.taskStatus,this.snoozeUntilMsInternal=a.snoozeUntilMs):this.taskStatusInternal=void 0}},tooltipDescription:{configurable:!0,enumerable:!0,get:function(){try{return 2===this.taskStatusInternal?0===this.snoozeUntilMsInternal?"":(2592E6<=this.snoozeUntilMsInternal-Date.now()?"Unsnooze on":"Unsnooze")+" "+Zla(this.snoozeUntilMsInternal,
this.now.getTime()):this.pinnedTasksCount+" pinned tasks"}catch(a){return""}}},subscriptIconStyleClass:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return Awb.get(this.taskStatusInternal).styleClass}catch(a){return""}}},subscriptIcon:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return Awb.get(this.taskStatusInternal).svgIcon}catch(a){return""}}},now:{configurable:!0,enumerable:!0,get:function(){return new GC}},laterToday:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;12<=a.getHours()?a.add(new to("h",3)):zF(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new to("d",1));zF(a,8);return a}},laterThisWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;if(3<a.getDay())return this.nextWeek;a.add(new to("d",2));zF(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);zF(a,8);return a}},aMonthFromNow:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new to("d",30));zF(a,8);return a}}});yF.\u0275fac=function(a){return new (a||yF)(C(cC))};
yF.\u0275cmp=w({type:yF,selectors:[["g3c-widget"]],viewQuery:function(a,b){a&1&&(Ef(ywb,5,pF),Ef(zwb,5,pF));if(a&2){var c;Df(c=Gf())&&(b.widgetMenuTrigger=c.first);Df(c=Gf())&&(b.snoozeMenuTrigger=c.first)}},inputs:{pinnedTasksCount:"pinnedTasksCount",task:"task",menuXPosition:"menuXPosition",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{updateTaskStatus:"updateTaskStatus",addTaskByUrl:"addTaskByUrl",widgetMenuOpen:"widgetMenuOpen",
openInG3cClicked:"openInG3cClicked",featureTooltipActioned:"featureTooltipActioned"},decls:49,vars:33,consts:[["mat-button","","color","primary",1,"widget-menu-trigger",3,"ngClass","matMenuTriggerFor","matTooltip","onedevFeatureTooltip","onedevTooltipDismisser","click"],["widgetMenuTrigger",""],["class","logo","svgIcon","g3c-console-logo-outlined",4,"ngIf"],[4,"ngIf"],[1,"logo-title"],["svgIcon","g3c-widget-arrow-drop-down",1,"g3c-widget-arrow-drop-down"],["mat-button","","aria-hidden","true",1,"invisible-trigger",
3,"matMenuTriggerFor"],["snoozeMenuTrigger",""],[1,"widget-menu",3,"xPosition"],["widgetMenu","matMenu"],["mat-menu-item","","href","https://g3c.corp.google.com/","target","_blank",1,"g3c-link",3,"click"],["svgIcon","g3c-widget-open-in-new",1,"open-g3c-in-new"],[1,"snooze-menu",3,"xPosition"],["snoozeMenu","matMenu"],["mat-menu-item","",1,"snooze-title",3,"disableRipple","click"],[1,"snooze-list"],["mat-menu-item","",3,"click"],[1,"snooze-date"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"snooze-bottom"],
["mat-menu-item","",1,"datetime-picker-button",3,"click"],["svgIcon","g3c-widget-schedule",1,"schedule-icon"],["svgIcon","g3c-console-logo-outlined",1,"logo"],[1,"subscript-badge"],[1,"subscript-icon",3,"ngClass","svgIcon"],["mat-menu-item","","class","snooze-until-indicator",3,"disableRipple","click",4,"ngIf"],[1,"action-button-list"],["class","action-button add-to-inbox-button","mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",3,"click",4,"ngIf"],["mat-menu-item","",1,"action-button",
"pin-button",3,"matTooltip","click"],["svgIcon","g3c-widget-keep",4,"ngIf"],["class","blue","svgIcon","g3c-widget-keep-off",4,"ngIf"],["mat-menu-item","",1,"action-button","snooze-button",3,"matTooltip","click"],["svgIcon","g3c-widget-schedule"],["mat-menu-item","",1,"action-button","archive-button",3,"matTooltip","click"],["svgIcon","g3c-widget-archive",4,"ngIf"],["class","red","svgIcon","g3c-widget-unarchive",4,"ngIf"],["mat-menu-item","",1,"action-button","mute-button",3,"matTooltip","click"],
["svgIcon","g3c-widget-notifications",4,"ngIf"],["class","purple","svgIcon","g3c-widget-notifications-off",4,"ngIf"],["mat-menu-item","",1,"snooze-until-indicator",3,"disableRipple","click"],["mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",1,"action-button","add-to-inbox-button",3,"click"],["svgIcon","g3c-widget-add"],["svgIcon","g3c-widget-keep"],["svgIcon","g3c-widget-keep-off",1,"blue"],["svgIcon","g3c-widget-archive"],["svgIcon","g3c-widget-unarchive",1,"red"],["svgIcon",
"g3c-widget-notifications"],["svgIcon","g3c-widget-notifications-off",1,"purple"],["svgIcon","g3c-widget-highlight-off"],[3,"tooltipId","beforeShown","dismiss",4,"ngIf"],[3,"tooltipId","beforeShown","dismiss"],["onedevTooltipTitle",""]],template:function(a,b){a&1&&(F(0,"button",0,1),J("click",function(){return b.emitWidgetMenuOpen()}),M(2,xma,1,0,"mat-icon",2),M(3,yma,4,1,"ng-container",3),M(4,zma,3,2,"ng-container",3),F(5,"span",4),O(6,"G3C"),G(),H(7,"mat-icon",5),G(),H(8,"button",6,7),F(10,"mat-menu",
8,9),M(12,Ima,15,18,"ng-container",3),F(13,"a",10),J("click",function(){return b.emitOpenInG3cClicked()}),O(14," Open G3 Console "),H(15,"mat-icon",11),G()(),F(16,"mat-menu",12,13)(18,"span",14),J("click",function(e){return b.stopPropagation(e)}),O(19," Snooze until... "),G(),F(20,"div",15)(21,"button",16),J("click",function(){Di(b,b.laterToday)}),O(22," Later today "),F(23,"span",17),O(24),P(25,"date"),G()(),F(26,"button",16),J("click",function(){Di(b,b.tomorrow)}),O(27," Tomorrow "),F(28,"span",
17),O(29),P(30,"date"),G()(),M(31,Jma,5,4,"button",18),F(32,"button",16),J("click",function(){Di(b,b.nextWeek)}),O(33," Next week "),F(34,"span",17),O(35),P(36,"date"),G()(),F(37,"button",16),J("click",function(){Di(b,b.aMonthFromNow)}),O(38," A month from now "),F(39,"span",17),O(40),P(41,"date"),G()()(),F(42,"div",19),M(43,Kma,3,0,"button",18),F(44,"button",20),J("click",function(){return Bwb(b)}),H(45,"mat-icon",21),F(46,"span"),O(47,"Pick date & time"),G()()()(),M(48,Nma,3,2,"onedev-feature-tooltip-controller",
3));if(a&2){var c=Fe(11),d=Fe(17);E("ngClass",b.customWidgetClass)("matMenuTriggerFor",c)("matTooltip",b.tooltipDescription)("onedevFeatureTooltip",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS)("onedevTooltipDismisser",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS);ke("aria-label",b.pinnedTasksCount+" pinned tasks");B(2);E("ngIf",
!b.skipTasksActions&&void 0===b.taskStatusInternal);B(1);E("ngIf",b.skipTasksActions||b.taskStatusInternal===b.TaskStatus.INCOMING||b.taskStatusInternal===b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(1);E("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal&&b.taskStatusInternal!==b.TaskStatus.INCOMING&&b.taskStatusInternal!==b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(4);E("matMenuTriggerFor",d);B(2);E("xPosition",b.menuXPosition);B(2);E("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal);B(4);
E("xPosition",b.menuXPosition);B(2);E("disableRipple",!0);B(6);He(Pe(25,21,b.laterToday,"EEE, MMM d, h:mm a"));B(5);He(Pe(30,24,b.tomorrow,"EEE, MMM d, h:mm a"));B(2);E("ngIf",b.laterThisWeek.getTime()!==b.nextWeek.getTime());B(4);He(Pe(36,27,b.nextWeek,"EEE, MMM d, h:mm a"));B(5);He(Pe(41,30,b.aMonthFromNow,"EEE, MMM d, h:mm a"));B(3);E("ngIf",b.taskStatusInternal===b.TaskStatus.SNOOZED);B(5);E("ngIf",b.featureHighlightingEnabled)}},dependencies:[Jx,Gx,TC,OE,RE,SE,TE,FB,hF,mF,kF,pF,wF,Wx],styles:["[_nghost-%COMP%]{position:relative}  .snooze-menu.mat-menu-panel{max-width:295px;width:295px}.widget-menu-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo[_ngcontent-%COMP%]{position:relative}.logo[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo-title[_ngcontent-%COMP%]{margin-left:5px}.subscript-badge[_ngcontent-%COMP%], .subscript-icon[_ngcontent-%COMP%]{bottom:-35%;position:absolute;right:-35%}.subscript-badge[_ngcontent-%COMP%]{background-color:#dadce0;border-radius:50%;color:#202124;font-size:12px;z-index:1}.action-button-list[_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}.action-button[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 48px;-moz-box-flex:1;-ms-flex:1 1 48px;flex:1 1 48px;height:48px;max-width:48px;min-width:48px;padding:0;text-align:center}.action-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:0}.g3c-link[_ngcontent-%COMP%]{text-align:center}.invisible-trigger[_ngcontent-%COMP%]{bottom:0;left:0;position:absolute;visibility:hidden}.blue[_ngcontent-%COMP%]{color:#1a73e8}.orange[_ngcontent-%COMP%]{color:#e8710a}.red[_ngcontent-%COMP%]{color:#d93025}.purple[_ngcontent-%COMP%]{color:#9334e6}.snooze-title[_ngcontent-%COMP%], .snooze-until-indicator[_ngcontent-%COMP%]{color:#5f6368;cursor:default;display:block;font-weight:500}.snooze-list[_ngcontent-%COMP%]{border-bottom:1px solid #dadce0}.snooze-date[_ngcontent-%COMP%]{color:#5f6368;float:right;font-weight:500}.datetime-picker-button[_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}.datetime-picker-button[_ngcontent-%COMP%]   .schedule-icon[_ngcontent-%COMP%]{margin-right:8px}"],
changeDetection:0});
var AF=function(){};AF.\u0275fac=function(a){return new (a||AF)};AF.\u0275mod=xc({type:AF});AF.\u0275inj=ic({imports:[kB,kB]});
var Cwb=Qt(["https://ssl.gstatic.com/devopsconsole/images/tasks/g3c_logo_outlined.svg"]),Dwb=Qt(["https://www.gstatic.com/images/icons/material/system_gm/svg/","_24px.svg"]),Ewb=Qt(["https://www.gstatic.com/images/icons/material/system/svg/","_24px.svg"]),Fwb=Qt(["https://ssl.gstatic.com/devopsconsole/images/tasks/",".svg"]),Gwb="add arrow_drop_down highlight_off keep keep_off notifications_off open_in_new schedule".split(" "),Hwb=["archive","notifications","unarchive"],Iwb=["archive_outlined","pin_outlined",
"notifications_off_outlined","schedule_outlined"],BF=function(a){this.iconRegistry=a;this.isMatIconRegistered=!1};BF.\u0275fac=function(a){return new (a||BF)(t(gF))};BF.\u0275prov=hc({token:BF,factory:BF.\u0275fac,providedIn:"root"});
var Jwb=new od("g3cWidgetTaskManagementServicePromiseClient"),Kwb=new od("g3cWidgetUserPrefsServicePromiseClient"),CF=new od("g3cWidgetServiceConfig");
var DF=function(a){Z.call(this,a)};U(DF,Z);DF.prototype.getDueDate=function(){return Bl(this,Wk,1,Lwb)};var Lwb=[1,2];DF.prototype.toObject=function(){return Mwb(void 0,this)};var Mwb=function(a,b){if(null!=b){var c={dueDate:Lv(a,b.getDueDate()),dueTimeMs:n(Ur(b,2,Lwb)),dueType:Y(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var EF=function(a){Z.call(this,a)};U(EF,Z);EF.prototype.getTaskStatus=function(){return Y(this,1,0)};EF.prototype.setTaskStatus=function(a){return vl(this,1,a)};EF.prototype.toObject=function(){return Nwb(void 0,this)};var Nwb=function(a,b){if(null!=b){var c={taskStatus:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Owb=function(a){Z.call(this,a)};U(Owb,Z);g=Owb.prototype;g.getId=function(){return hj(this,1)};g.setId=function(a){return Xk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return yl(this,2,a)};g.toObject=function(){return Pwb(void 0,this)};var Pwb=function(a,b){if(null!=b){var c={id:hj(b,1),label:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Qwb=function(a){Z.call(this,a)};U(Qwb,Z);g=Qwb.prototype;g.getId=function(){return hj(this,2)};g.setId=function(a){return Xk(this,2,a)};g.getLabel=function(){return V(this,3)};g.setLabel=function(a){return yl(this,3,a)};g.toObject=function(){return Rwb(void 0,this)};var Rwb=function(a,b){if(null!=b){var c={deprecated:W(b,1),id:hj(b,2),label:V(b,3),helpText:V(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Swb=function(a){Z.call(this,a)};U(Swb,Z);g=Swb.prototype;g.getId=function(){return nj(this,1)};g.setId=function(a){nb(this);null!=a&&0!==+a?l(this,1,a):ob(this,1);return this};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return yl(this,2,a)};g.getTeamId=function(){return hj(this,3)};g.setTeamId=function(a){return Xk(this,3,a)};g.toObject=function(){return Twb(void 0,this)};
var Twb=function(a,b){if(null!=b){var c={id:nj(b,1),label:V(b,2),teamId:hj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var FF=function(a){Z.call(this,a,-1,Uwb)};U(FF,Z);g=FF.prototype;g.getId=function(){return hj(this,1)};g.setId=function(a){return Xk(this,1,a)};g.getLabel=function(){return V(this,2)};g.setLabel=function(a){return yl(this,2,a)};g.getType=function(){return Y(this,3,0)};g.setType=function(a){return vl(this,3,a)};g.getOwner=function(){return W(this,9)};g.setOwner=function(a){return qo(this,9,a)};g.getOptionsList=function(){return tb(this,Qwb,16)};g.setOptionsList=function(a){return Cb(this,16,a)};
var Uwb=[16],Vwb=[5,6];FF.prototype.toObject=function(){return Wwb(void 0,this)};
var Wwb=function(a,b){if(null!=b){var c={id:hj(b,1),label:V(b,2),type:Y(b,3,0),helpText:V(b,4),productArea:Twb(a,Bl(b,Swb,5,Vwb)),approverDefinition:Pwb(a,Bl(b,Owb,6,Vwb)),doNotCopy:W(b,7),pdaRelated:W(b,8),owner:W(b,9),mcrRelated:W(b,10),eventsRelated:W(b,11),brandingRelated:W(b,12),securityRelated:W(b,13),marketingPdaRelated:W(b,14),alwaysEditable:W(b,15),onlyConfigurableByAdmins:W(b,17),isConfigurationAttribute:W(b,18),emptySetNotValid:W(b,19),optionsList:Eb(b.getOptionsList(),Rwb,a)};a&&(c.$jspbMessageInstance=
b);return c}};
var GF=function(a){Z.call(this,a)};U(GF,Z);GF.prototype.getYear=function(){return hj(this,1)};GF.prototype.setYear=function(a){return Xk(this,1,a)};GF.prototype.toObject=function(){return Xwb(void 0,this)};var Xwb=function(a,b){if(null!=b){var c={year:hj(b,1),number:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Ywb=function(a){Z.call(this,a)};U(Ywb,Z);var Zwb=[1,2,3];Ywb.prototype.toObject=function(){return $wb(void 0,this)};var $wb=function(a,b){if(null!=b){var c={specificDate:Lv(a,Bl(b,Wk,1,Zwb)),quarter:Xwb(a,Bl(b,GF,2,Zwb)),toBeDetermined:n(Xo(b,sb(b,Zwb,3)))};a&&(c.$jspbMessageInstance=b);return c}};
var HF=function(a){Z.call(this,a)};U(HF,Z);HF.prototype.getTypeName=function(){return V(this,1).split("/").pop()};HF.prototype.getValue=function(){if(Array.isArray(p(this,2)))throw Error("P");return Jm(this,2)};HF.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=l(this,2,kb(a));else if("string"===typeof a||a instanceof bb||Na(a))a=Au(this,2,a);else throw Error("Q`"+a);return a};HF.prototype.toObject=function(){return axb(void 0,this)};
var axb=function(a,b){if(null!=b){var c={typeUrl:V(b,1),value:nba(b)};a&&(c.$jspbMessageInstance=b);return c}};
var IF=function(a){Z.call(this,a,-1,bxb)};U(IF,Z);g=IF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return yl(this,1,a)};g.getStatus=function(){return Y(this,3,0)};g.setStatus=function(a){return vl(this,3,a)};g.getVersion=function(){return hj(this,5)};g.setVersion=function(a){return Xk(this,5,a)};g.setOwnedByMe=function(a){return qo(this,7,a)};var JF=function(a){Z.call(this,a,-1,cxb)};U(JF,Z);JF.prototype.getLabel=function(){return V(this,1)};
JF.prototype.setLabel=function(a){return yl(this,1,a)};var KF=function(a){Z.call(this,a)};U(KF,Z);KF.prototype.getValue=function(){return m(this,HF,2)};KF.prototype.setValue=function(a){return Db(this,2,a)};KF.prototype.hasValue=function(){return oj(this,2)};var bxb=[4,6];IF.prototype.toObject=function(){return dxb(void 0,this)};
var dxb=function(a,b){if(null!=b){var c={description:V(b,1),launchDate:$wb(a,m(b,Ywb,2)),status:Y(b,3,0),approversList:Eb(tb(b,JF,4),exb,a),version:hj(b,5),attributesList:Eb(tb(b,KF,6),fxb,a),ownedByMe:W(b,7),needBitApprovalFromMe:W(b,8),creatorEmail:V(b,9)};a&&(c.$jspbMessageInstance=b);return c}},cxb=[3];JF.prototype.toObject=function(){return exb(void 0,this)};var exb=function(a,b){if(null!=b){var c={label:V(b,1),approvalStatus:Y(b,2,0),ownersList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
KF.prototype.toObject=function(){return fxb(void 0,this)};var fxb=function(a,b){if(null!=b){var c={definition:Wwb(a,m(b,FF,1)),value:axb(a,b.getValue())};a&&(c.$jspbMessageInstance=b);return c}};
var LF=function(a){Z.call(this,a)};U(LF,Z);LF.prototype.getAccessLevel=function(){return Y(this,1,0)};LF.prototype.setAccessLevel=function(a){vl(this,1,a)};LF.prototype.toObject=function(){return gxb(void 0,this)};var gxb=function(a,b){if(null!=b){var c={accessLevel:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var MF=function(a){Z.call(this,a,-1,hxb)};U(MF,Z);g=MF.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return vl(this,1,a)};g.getPriority=function(){return Y(this,2,0)};g.setPriority=function(a){return vl(this,2,a)};g.getSeverity=function(){return Y(this,3,0)};g.setSeverity=function(a){return vl(this,3,a)};g.getStatus=function(){return Y(this,4,0)};g.setStatus=function(a){return vl(this,4,a)};g.getSloStatus=function(){return m(this,NF,20)};
g.setSloStatus=function(a){Db(this,20,a)};g.getComponentId=function(){return hj(this,11)};g.setComponentId=function(a){return Xk(this,11,a)};g.getVersion=function(){return hj(this,16)};g.setVersion=function(a){return Xk(this,16,a)};g.getAccessLimit=function(){return m(this,LF,21)};g.setAccessLimit=function(a){return Db(this,21,a)};g.getCommentsList=function(){return tb(this,OF,10)};var OF=function(a){Z.call(this,a)};U(OF,Z);g=OF.prototype;g.getContent=function(){return V(this,1)};
g.setContent=function(a){yl(this,1,a)};g.getCommentNumber=function(){return hj(this,4)};g.setCommentNumber=function(a){return Xk(this,4,a)};g.getFormattingMode=function(){return Y(this,5,0)};g.setFormattingMode=function(a){return vl(this,5,a)};var NF=function(a){Z.call(this,a)};U(NF,Z);g=NF.prototype;g.getAssignmentBounds=function(){return m(this,PF,1)};g.setAssignmentBounds=function(a){Db(this,1,a)};g.hasAssignmentBounds=function(){return oj(this,1)};
g.getResponseBounds=function(){return m(this,PF,2)};g.setResponseBounds=function(a){Db(this,2,a)};g.hasResponseBounds=function(){return oj(this,2)};g.getClosureBounds=function(){return m(this,PF,3)};g.setClosureBounds=function(a){Db(this,3,a)};g.hasClosureBounds=function(){return oj(this,3)};var PF=function(a){Z.call(this,a)};U(PF,Z);var hxb=[7,10];MF.prototype.toObject=function(){return ixb(void 0,this)};
var ixb=function(a,b){if(null!=b){var c={type:Y(b,1,0),priority:Y(b,2,0),severity:Y(b,3,0),status:Y(b,4,0),sloStatus:jxb(a,b.getSloStatus()),reporterEmail:V(b,5),assigneeEmail:V(b,6),verifierEmail:V(b,14),ccEmailsList:n(lb(b,7)),isStarred:W(b,8),lastModifiedByUserEmail:V(b,9),componentId:hj(b,11),canonicalIssueId:hj(b,18),version:hj(b,16),majorModifiedTimestampMs:hj(b,19),reportedByMe:W(b,12),assignedToMe:W(b,13),ccIncludesMe:W(b,17),bugjugglerInCcList:W(b,15),accessLimit:gxb(a,b.getAccessLimit()),
commentsList:Eb(b.getCommentsList(),kxb,a)};a&&(c.$jspbMessageInstance=b);return c}};OF.prototype.toObject=function(){return kxb(void 0,this)};var kxb=function(a,b){if(null!=b){var c={content:V(b,1),authorEmail:V(b,2),modifiedTimestamp:hj(b,3),commentNumber:hj(b,4),formattingMode:Y(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};NF.prototype.toObject=function(){return jxb(void 0,this)};
var jxb=function(a,b){if(null!=b){var c={assignmentBounds:QF(a,b.getAssignmentBounds()),responseBounds:QF(a,b.getResponseBounds()),closureBounds:QF(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};PF.prototype.toObject=function(){return QF(void 0,this)};var QF=function(a,b){if(null!=b){var c={startTimeMs:hj(b,1),endTimeMs:hj(b,2),targetTimeMs:hj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var RF=function(a){Z.call(this,a,-1,lxb)};U(RF,Z);g=RF.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return yl(this,1,a)};g.getCategory=function(){return Y(this,2,0)};g.setCategory=function(a){vl(this,2,a)};g.getStatus=function(){return Y(this,3,0)};g.setStatus=function(a){return vl(this,3,a)};g.getCommentsList=function(){return tb(this,SF,7)};var TF=function(a){Z.call(this,a,-1,mxb)};U(TF,Z);TF.prototype.getType=function(){return Y(this,1,0)};
TF.prototype.setType=function(a){return vl(this,1,a)};TF.prototype.getState=function(){return Y(this,5,0)};var SF=function(a){Z.call(this,a,-1,nxb)};U(SF,Z);SF.prototype.getContent=function(){return V(this,3)};SF.prototype.setContent=function(a){yl(this,3,a)};SF.prototype.getRepliesList=function(){return tb(this,UF,5)};var UF=function(a){Z.call(this,a)};U(UF,Z);UF.prototype.getContent=function(){return V(this,4)};UF.prototype.setContent=function(a){yl(this,4,a)};var lxb=[5,6,7,11,17,13,14];
RF.prototype.toObject=function(){return oxb(void 0,this)};
var oxb=function(a,b){if(null!=b){var c={description:V(b,1),descriptionUsesMarkdown:W(b,16),category:Y(b,2,0),status:Y(b,3,0),isStarred:W(b,4),approvalStatesList:Eb(tb(b,TF,5),pxb,a),reviewerEmailsList:n(lb(b,6)),commentsList:Eb(b.getCommentsList(),qxb,a),externalLinkToCider:V(b,8),needsAttentionFromReviewer:W(b,9),authorEmail:V(b,10),ccEmailsList:n(lb(b,11)),needsAttention:W(b,12),attentionSetUsersList:n(lb(b,17)),bugsList:n(lb(b,13)),fixedBugsList:n(lb(b,14)),workspaceName:V(b,15),changeSize:Y(b,
18,0)};a&&(c.$jspbMessageInstance=b);return c}},mxb=[3];TF.prototype.toObject=function(){return pxb(void 0,this)};var pxb=function(a,b){if(null!=b){var c={type:Y(b,1,0),approverEmailsList:n(lb(b,3)),reasonMessage:V(b,4),state:Y(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}},nxb=[5];SF.prototype.toObject=function(){return qxb(void 0,this)};
var qxb=function(a,b){if(null!=b){var c={publishTimestamp:hj(b,1),authorEmail:V(b,2),content:V(b,3),resolved:W(b,4),repliesList:Eb(b.getRepliesList(),rxb,a),externalLink:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};UF.prototype.toObject=function(){return rxb(void 0,this)};var rxb=function(a,b){if(null!=b){var c={publishTimestamp:hj(b,2),authorEmail:V(b,3),content:V(b,4),resolved:W(b,8)};a&&(c.$jspbMessageInstance=b);return c}};
var VF=function(a){Z.call(this,a,-1,sxb)};U(VF,Z);VF.prototype.setOwnedByMe=function(a){return qo(this,3,a)};VF.prototype.getMimeType=function(){return V(this,15)};VF.prototype.setMimeType=function(a){yl(this,15,a)};VF.prototype.getCommentsList=function(){return tb(this,WF,6)};var WF=function(a){Z.call(this,a,-1,txb)};U(WF,Z);g=WF.prototype;g.getCommentId=function(){return V(this,1)};g.getContent=function(){return V(this,8)};g.setContent=function(a){yl(this,8,a)};
g.getRepliesList=function(){return tb(this,XF,14)};g.getDueDate=function(){return m(this,Wk,18)};var XF=function(a){Z.call(this,a)};U(XF,Z);XF.prototype.getContent=function(){return V(this,3)};XF.prototype.setContent=function(a){yl(this,3,a)};var sxb=[17,6];VF.prototype.toObject=function(){return uxb(void 0,this)};
var uxb=function(a,b){if(null!=b){var c={createdTimestamp:hj(b,1),createdByMe:W(b,2),ownedByMe:W(b,3),recentlySharedWithMe:W(b,8),sharedWithMeTimestamp:hj(b,4),sharedToMe:W(b,14),sharedToMyGroups:W(b,18),sharedToMyTeamDrive:W(b,19),actionItemsChecksum:V(b,5),mimeType:V(b,15),teamDriveId:V(b,16),parentIdsList:n(lb(b,17)),openCommentsCount:hj(b,21),commentsAssignedToMeCount:hj(b,22),commentsMentioningMeCount:hj(b,23),suggestionsCount:hj(b,24),isDocwrapIncoming:W(b,25),isDocwrapOutgoing:W(b,26),commentsList:Eb(b.getCommentsList(),
vxb,a),lastCommentedTimestamp:hj(b,7),lastCommentedByGaiaId:hj(b,20),isStarred:W(b,9),ownerEmail:V(b,10),creatorEmail:V(b,11),lastModifiedByUserEmail:V(b,12),lastCommentedByUserDisplayName:V(b,13)};a&&(c.$jspbMessageInstance=b);return c}},txb=[14];WF.prototype.toObject=function(){return vxb(void 0,this)};
var vxb=function(a,b){if(null!=b){var c={commentId:V(b,1),assignedToMe:W(b,2),mentioningMe:W(b,3),isSuggestion:W(b,4),commentStatus:Y(b,5,0),authorDisplayName:V(b,6),authorPhotoLink:V(b,7),content:V(b,8),prependQuotedContent:V(b,9),quotedContent:V(b,10),appendQuotedContent:V(b,11),externalLink:V(b,12),modifiedTimestamp:hj(b,13),repliesList:Eb(b.getRepliesList(),wxb,a),isDocwrapComment:W(b,15),assignedToMeTimestampMs:hj(b,16),mentioningMeTimestampMs:hj(b,17),dueDate:Lv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=
b);return c}};XF.prototype.toObject=function(){return wxb(void 0,this)};var wxb=function(a,b){if(null!=b){var c={authorDisplayName:V(b,1),authorPhotoLink:V(b,2),content:V(b,3),externalLink:V(b,4),modifiedTimestamp:hj(b,5),action:Y(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};
var yxb=function(a){Z.call(this,a,-1,xxb)};U(yxb,Z);var YF=function(a){Z.call(this,a)};U(YF,Z);YF.prototype.getTitle=function(){return V(this,2)};YF.prototype.setTitle=function(a){return yl(this,2,a)};var ZF=function(a){Z.call(this,a)};U(ZF,Z);ZF.prototype.getId=function(){return V(this,1)};ZF.prototype.setId=function(a){return yl(this,1,a)};ZF.prototype.getTitle=function(){return V(this,2)};ZF.prototype.setTitle=function(a){return yl(this,2,a)};var xxb=[5],zxb=[9,10];
yxb.prototype.toObject=function(){return Axb(void 0,this)};var Axb=function(a,b){if(null!=b){var c={isCompleted:W(b,4),details:V(b,1),dueDateTimestamp:hj(b,2),emailLink:V(b,3),subtasksList:Eb(tb(b,YF,5),Bxb,a),isNewTask:W(b,7),taskList:Cxb(a,m(b,ZF,8)),sourceGroup:Zkb(a,Bl(b,Mv,9,zxb)),sourceDocument:$kb(a,Bl(b,Nv,10,zxb))};a&&(c.$jspbMessageInstance=b);return c}};YF.prototype.toObject=function(){return Bxb(void 0,this)};
var Bxb=function(a,b){if(null!=b){var c={gtaskId:V(b,1),title:V(b,2),isCompleted:W(b,3),details:V(b,4),dueDateTimestamp:hj(b,5)};a&&(c.$jspbMessageInstance=b);return c}};ZF.prototype.toObject=function(){return Cxb(void 0,this)};var Cxb=function(a,b){if(null!=b){var c={id:V(b,1),title:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var $F=function(a){Z.call(this,a)};U($F,Z);$F.prototype.getMembership=function(){return Bl(this,aG,2,Dxb)};var bG=function(a){Z.call(this,a,-1,Exb)};U(bG,Z);bG.prototype.getOriginal=function(){return m(this,cG,2)};bG.prototype.getState=function(){return Y(this,6,0)};var dG=function(a){Z.call(this,a)};U(dG,Z);dG.prototype.getState=function(){return Y(this,1,0)};var aG=function(a){Z.call(this,a)};U(aG,Z);aG.prototype.getParentId=function(){return hj(this,11)};
aG.prototype.setParentId=function(a){Xk(this,11,a)};var cG=function(a){Z.call(this,a)};U(cG,Z);cG.prototype.getMembership=function(){return Bl(this,aG,1,Fxb)};var Dxb=[1,2];$F.prototype.toObject=function(){return Gxb(void 0,this)};var Gxb=function(a,b){if(null!=b){var c={proposal:Hxb(a,Bl(b,bG,1,Dxb)),membership:Ixb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}},Exb=[7];bG.prototype.toObject=function(){return Hxb(void 0,this)};
var Hxb=function(a,b){if(null!=b){var c={upsert:Jxb(a,m(b,cG,1)),original:Jxb(a,b.getOriginal()),changeType:Y(b,3,0),createTimeMs:hj(b,4),state:Y(b,6,0),proposalUpdatesList:Eb(tb(b,dG,7),Kxb,a)};a&&(c.$jspbMessageInstance=b);return c}};dG.prototype.toObject=function(){return Kxb(void 0,this)};var Kxb=function(a,b){if(null!=b){var c={state:Y(b,1,0),updaterId:hj(b,2),updaterName:V(b,3),updaterEmail:V(b,4),updateTimeMs:hj(b,5),updateReason:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
aG.prototype.toObject=function(){return Ixb(void 0,this)};var Ixb=function(a,b){if(null!=b){var c={membershipId:hj(b,1),childId:hj(b,10),childName:V(b,2),childEmail:V(b,3),parentId:hj(b,11),parentName:V(b,4),parentEmail:V(b,5),createTimeMs:hj(b,6),expireTimeMs:hj(b,7),membershipType:Y(b,8,0),getEmail:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}},Fxb=[1];cG.prototype.toObject=function(){return Jxb(void 0,this)};
var Jxb=function(a,b){if(null!=b){var c={membership:Ixb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}};
var eG=function(a){Z.call(this,a,-1,Lxb)};U(eG,Z);g=eG.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return yl(this,1,a)};g.getCategory=function(){return Y(this,15,0)};g.setCategory=function(a){vl(this,15,a)};g.setHost=function(a){return yl(this,8,a)};g.getCommentsList=function(){return tb(this,fG,14)};var Nxb=function(a){Z.call(this,a,-1,Mxb)};U(Nxb,Z);var gG=function(a){Z.call(this,a)};U(gG,Z);gG.prototype.getValue=function(){return hj(this,1)};
gG.prototype.setValue=function(a){return Xk(this,1,a)};var fG=function(a){Z.call(this,a)};U(fG,Z);fG.prototype.getCommentId=function(){return V(this,1)};fG.prototype.getMessage=function(){return V(this,2)};var Lxb=[3,6,7,17,12,14];eG.prototype.toObject=function(){return Oxb(void 0,this)};
var Oxb=function(a,b){if(null!=b){var c={description:V(b,1),category:Y(b,15,0),ownerEmail:V(b,2),statusesList:n(lb(b,3)),submittable:W(b,4),assigneeEmail:V(b,5),reviewerEmailsList:n(lb(b,6)),ccEmailsList:n(lb(b,7)),attentionSetEmailsList:n(lb(b,17)),needsAttention:W(b,18),host:V(b,8),project:V(b,9),branch:V(b,10),changeSize:Y(b,11,0),labelApprovalStatesList:Eb(tb(b,Nxb,12),Pxb,a),isStarred:W(b,13),commentsList:Eb(b.getCommentsList(),Qxb,a),hostRepoBranchLink:V(b,16)};a&&(c.$jspbMessageInstance=b);
return c}},Mxb=[2];Nxb.prototype.toObject=function(){return Pxb(void 0,this)};var Pxb=function(a,b){if(null!=b){var c={labelName:V(b,1),votesList:Eb(tb(b,gG,2),Rxb,a),minVoteValue:hj(b,3),maxVoteValue:hj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};gG.prototype.toObject=function(){return Rxb(void 0,this)};var Rxb=function(a,b){if(null!=b){var c={value:hj(b,1),voterEmail:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};fG.prototype.toObject=function(){return Qxb(void 0,this)};
var Qxb=function(a,b){if(null!=b){var c={commentId:V(b,1),message:V(b,2),authorEmail:V(b,3),updatedTimeMs:hj(b,4),unresolved:W(b,5),inReplyTo:V(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
var hG=function(a){Z.call(this,a,-1,Sxb)};U(hG,Z);g=hG.prototype;g.getDescription=function(){return V(this,1)};g.setDescription=function(a){return yl(this,1,a)};g.getStatus=function(){return Y(this,2,0)};g.setStatus=function(a){return vl(this,2,a)};g.getPriority=function(){return Y(this,3,0)};g.setPriority=function(a){return vl(this,3,a)};g.getDueDate=function(){return m(this,Wk,13)};var Uxb=function(a){Z.call(this,a,-1,Txb)};U(Uxb,Z);var iG=function(a){Z.call(this,a)};U(iG,Z);
iG.prototype.getDescription=function(){return V(this,3)};iG.prototype.setDescription=function(a){return yl(this,3,a)};var Sxb=[6];hG.prototype.toObject=function(){return Vxb(void 0,this)};
var Vxb=function(a,b){if(null!=b){var c={description:V(b,1),status:Y(b,2,0),priority:Y(b,3,0),assigneeEmail:V(b,4),requesterEmail:V(b,5),ccEmailsList:n(lb(b,6)),ticketType:V(b,7),worklog:Wxb(a,m(b,Uxb,8)),requestedByMe:W(b,9),assignedToMe:W(b,10),myApprovalNeeded:W(b,11),ccIncludesMe:W(b,12),dueDate:Lv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=b);return c}},Txb=[1];Uxb.prototype.toObject=function(){return Wxb(void 0,this)};
var Wxb=function(a,b){if(null!=b){var c={entriesList:Eb(tb(b,iG,1),Xxb,a)};a&&(c.$jspbMessageInstance=b);return c}};iG.prototype.toObject=function(){return Xxb(void 0,this)};var Xxb=function(a,b){if(null!=b){var c={eventLogTimestamp:Zu(a,m(b,vj,1)),updaterEmail:V(b,2),description:V(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var jG=function(a){Z.call(this,a,-1,Yxb)};U(jG,Z);jG.prototype.getTaskStatus=function(){return Y(this,3,0)};jG.prototype.setTaskStatus=function(a){return vl(this,3,a)};var kG=function(a){Z.call(this,a,-1,Zxb)};U(kG,Z);g=kG.prototype;g.getStatus=function(){return Y(this,3,0)};g.setStatus=function(a){return vl(this,3,a)};g.getPriority=function(){return Y(this,4,0)};g.setPriority=function(a){return vl(this,4,a)};g.getDescription=function(){return V(this,10)};
g.setDescription=function(a){return yl(this,10,a)};var Yxb=[2],$xb=[101];jG.prototype.toObject=function(){return ayb(void 0,this)};var ayb=function(a,b){if(null!=b){var c={ownerEmail:V(b,1),attentionSetList:n(lb(b,2)),taskStatus:Y(b,3,0),referenceName:V(b,4),needsAttention:W(b,5),trackable:byb(a,Bl(b,kG,101,$xb))};a&&(c.$jspbMessageInstance=b);return c}},Zxb=[7,8,11];kG.prototype.toObject=function(){return byb(void 0,this)};
var byb=function(a,b){if(null!=b){var c={productName:V(b,1),productLink:V(b,2),status:Y(b,3,0),priority:Y(b,4,0),resolveDeadline:Zu(a,m(b,vj,5)),creatorEmail:V(b,6),productEmailsList:n(lb(b,7)),privacyEmailsList:n(lb(b,8)),autoCreated:W(b,9),description:V(b,10),descriptionUsesMarkdown:W(b,13),participantEmailsList:n(lb(b,11)),bugId:hj(b,12)};a&&(c.$jspbMessageInstance=b);return c}};
var cyb=function(a){Z.call(this,a)};U(cyb,Z);g=cyb.prototype;g.getResourceId=function(){return V(this,17)};g.setResourceId=function(a){yl(this,17,a)};g.getTitle=function(){return V(this,2)};g.setTitle=function(a){return yl(this,2,a)};g.getLastModifiedTimestamp=function(){return hj(this,3)};g.getIconName=function(){return V(this,10)};g.setIsDeleted=function(a){qo(this,19,a)};var lG=[5,6,7,8,9,18,22,23,24];cyb.prototype.toObject=function(){return dyb(void 0,this)};
var dyb=function(a,b){if(null!=b){var c={resourceId:V(b,17),taskSource:V(b,1),title:V(b,2),lastModifiedTimestamp:hj(b,3),fingerprint:V(b,4),iconName:V(b,10),itemTypeName:V(b,11),statusDescription:V(b,12),latestAction:V(b,13),latestActionTimestamp:hj(b,14),latestActionByUserEmail:V(b,20),hasDetails:W(b,15),externalLink:V(b,16),isDeleted:W(b,19),driveResource:uxb(a,Bl(b,VF,5,lG)),buganizerResource:ixb(a,Bl(b,MF,6,lG)),gtasksResource:Axb(a,Bl(b,yxb,7,lG)),critiqueResource:oxb(a,Bl(b,RF,8,lG)),arianeResource:dxb(a,
Bl(b,IF,9,lG)),gerritResource:Oxb(a,Bl(b,eG,18,lG)),ganpatiResource:Gxb(a,Bl(b,$F,22,lG)),gutsResource:Vxb(a,Bl(b,hG,23,lG)),privacyResource:ayb(a,Bl(b,jG,24,lG))};a&&(c.$jspbMessageInstance=b);return c}};
var eyb=function(a){Z.call(this,a)};U(eyb,Z);g=eyb.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return yl(this,1,a)};g.getContent=function(){return V(this,2)};g.setContent=function(a){yl(this,2,a)};g.toObject=function(){return fyb(void 0,this)};var fyb=function(a,b){if(null!=b){var c={name:V(b,1),content:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var mG=function(a){Z.call(this,a)};U(mG,Z);g=mG.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return yl(this,1,a)};g.getTaskStatus=function(){return Y(this,3,0)};g.setTaskStatus=function(a){return vl(this,3,a)};g.getResource=function(){return m(this,cyb,6)};var gyb=function(a,b){return Xk(a,12,b)};mG.prototype.getNote=function(){return m(this,eyb,22)};mG.prototype.hasNote=function(){return oj(this,22)};mG.prototype.toObject=function(){return nG(void 0,this)};
var nG=function(a,b){if(null!=b){var c={taskId:V(b,1),gaiaId:hj(b,2),taskStatus:Y(b,3,0),naturallyCompleted:W(b,4),hasNoActionItems:W(b,24),naturallyCompletedDescription:V(b,11),priorityOrder:Cl(b,5),priorityOrderReservedUpper:Cl(b,9),priorityOrderResetTimestampMs:hj(b,16),currentStatusSince:hj(b,10),currentStatusAutoUpdated:W(b,17),resource:dyb(a,b.getResource()),snoozeUntilMs:hj(b,12),autoUnsnoozeOnUpdate:W(b,18),prevStatusState:Nwb(a,m(b,EF,13)),note:fyb(a,b.getNote()),readTimestampMs:hj(b,15),
createdTimestamp:hj(b,7),updatedTimestamp:hj(b,8),manuallyAdded:W(b,19),hasNote:W(b,20),dueInfo:Mwb(a,m(b,DF,23)),taskStatusRequiresAck:W(b,25),taskStatusRequiresAckReason:V(b,26)};a&&(c.$jspbMessageInstance=b);return c}};
var hyb=function(a){Z.call(this,a)};U(hyb,Z);hyb.prototype.getWorkingHours=function(){return W(this,1)};hyb.prototype.toObject=function(){return iyb(void 0,this)};var iyb=function(a,b){if(null!=b){var c={workingHours:W(b,1),workingHoursStart:hj(b,2),workingHoursEnd:hj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var oG=function(a){Z.call(this,a)};U(oG,Z);oG.prototype.getAttention=function(){return W(this,2)};oG.prototype.getWorkingHours=function(){return m(this,hyb,8)};oG.prototype.toObject=function(){return jyb(void 0,this)};
var jyb=function(a,b){if(null!=b){var c={failedMail:W(b,1),attention:W(b,2),ownerAttention:W(b,3),ownerRosieAttention:W(b,4),readyToSubmit:W(b,5),monitoredUserAttention:W(b,6),autoDismiss:W(b,7),workingHours:iyb(a,b.getWorkingHours()),ignoreArchived:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}};
var lyb=function(a){Z.call(this,a,-1,kyb)};U(lyb,Z);var kyb=[1];lyb.prototype.toObject=function(){return myb(this)};var myb=function(a){if(null!=a)return{critiquePrefsList:Eb(tb(a,oG,1),jyb)}};
var nyb=function(a){Z.call(this,a)};U(nyb,Z);nyb.prototype.toObject=function(){return oyb(this)};var oyb=function(a){if(null!=a)return{autoArchiveInactive:Y(a,1,0),launchDateAsDueDate:Y(a,2,0)}};
var pyb=function(a){Z.call(this,a)};U(pyb,Z);pyb.prototype.toObject=function(){return qyb(this)};var qyb=function(a){if(null!=a)return{autoArchiveClosed:Y(a,1,0),sloAsDueDate:Y(a,2,0)}};
var ryb=function(a){Z.call(this,a)};U(ryb,Z);ryb.prototype.toObject=function(){return syb(this)};var syb=function(a){if(null!=a)return{autoArchiveSubmitted:Y(a,1,0),dueAfterReceivingDays:hj(a,2),dueDateEnabled:Y(a,3,0)}};
var tyb=function(a){Z.call(this,a)};U(tyb,Z);tyb.prototype.toObject=function(){return uyb(this)};var uyb=function(a){if(null!=a)return{invitationUserAction:Y(a,2,0),autoArchiveSelfOwnedAllResolved:Y(a,3,0),autoArchiveOthersOwnedAllResolved:Y(a,4,0),dueAfterMentionReceivingDays:hj(a,5),dueAfterAssignmentReceivingDays:hj(a,6),mentionDueDateEnabled:Y(a,7,0),assignmentDueDateEnabled:Y(a,8,0),dueAfterReceivingDays:hj(a,9),dueDateEnabled:Y(a,10,0)}};
var vyb=function(a){Z.call(this,a)};U(vyb,Z);vyb.prototype.toObject=function(){return wyb(this)};var wyb=function(a){if(null!=a)return{invitationUserAction:Y(a,1,0),unsnoozedTasks:Y(a,2,0)}};
var yyb=function(a){Z.call(this,a,-1,xyb)};U(yyb,Z);var xyb=[4];yyb.prototype.toObject=function(){return zyb(this)};var zyb=function(a){if(null!=a)return{invitationUserAction:Y(a,1,0),autoArchiveCompleted:Y(a,2,0),completeOnArchiveOrMute:Y(a,3,0),gtaskTaskListIdsList:n(lb(a,4))}};
var Ayb=function(a){Z.call(this,a)};U(Ayb,Z);Ayb.prototype.toObject=function(){return Byb(this)};var Byb=function(a){if(null!=a)return{expirationAsDue:Y(a,4,0),autoArchiveResolved:Y(a,3,0)}};
var Dyb=function(a){Z.call(this,a,-1,Cyb)};U(Dyb,Z);var Cyb=[1];Dyb.prototype.toObject=function(){return Eyb(this)};var Eyb=function(a){if(null!=a)return{gerritHostsList:n(lb(a,1)),autoArchiveSubmitted:Y(a,2,0),invitationUserAction:Y(a,3,0),dueAfterReceivingDays:hj(a,4),dueDateEnabled:Y(a,5,0)}};
var Fyb=function(a){Z.call(this,a)};U(Fyb,Z);Fyb.prototype.toObject=function(){return Gyb(this)};var Gyb=function(a){if(null!=a)return{invitationUserAction:Y(a,1,0),autoArchiveClosed:Y(a,2,0),dueDateEnabled:Y(a,3,0)}};
var Hyb=function(a){Z.call(this,a)};U(Hyb,Z);Hyb.prototype.toObject=function(){return Iyb(void 0,this)};var Iyb=function(a,b){if(null!=b){var c={orderingOption:Y(b,1,0),pinOverdueTasks:Y(b,2,0),pinTasksDueInFiveDays:Y(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Jyb=function(a){Z.call(this,a)};U(Jyb,Z);Jyb.prototype.toObject=function(){return Kyb(this)};var Kyb=function(a){if(null!=a)return{autoArchiveClosed:Y(a,1,0),trackableDueDateEnabled:Y(a,2,0)}};
var Lyb=function(a){Z.call(this,a)};U(Lyb,Z);Lyb.prototype.toObject=function(){return Myb(this)};var Myb=function(a){if(null!=a)return{filterEnabled:W(a,1),arianeLaunches:Y(a,2,0),arianeReviews:Y(a,3,0)}};
var Nyb=function(a){Z.call(this,a)};U(Nyb,Z);Nyb.prototype.toObject=function(){return Oyb(this)};var Oyb=function(a){if(null!=a)return{filterEnabled:W(a,1),assignedToMe:W(a,2),reportedByMe:W(a,3),ccIncludesMe:W(a,6),bugjugglerInCcList:Y(a,4,0),other:Y(a,5,0)}};
var Pyb=function(a){Z.call(this,a)};U(Pyb,Z);Pyb.prototype.toObject=function(){return Qyb(this)};var Qyb=function(a){if(null!=a)return{filterEnabled:W(a,1),outgoingReviews:W(a,2),incomingReviews:W(a,3),ccedReviews:W(a,4),inAttentionSet:Y(a,5,0),inPending:Y(a,7,0),other:Y(a,6,0)}};
var Ryb=function(a){Z.call(this,a)};U(Ryb,Z);Ryb.prototype.toObject=function(){return Syb(this)};
var Syb=function(a){if(null!=a)return{filterEnabled:W(a,1),includeDocs:W(a,2),includeSlides:W(a,3),includeSheets:W(a,4),includeOtherTypes:W(a,5),commentsWithMentions:W(a,6),commentsWithAssignments:W(a,7),commentsWithSuggestions:W(a,8),filterBySharingAge:W(a,9),maxSharingAgeInDays:hj(a,10),openComments:W(a,11),sharedToMe:Y(a,12,0),sharedToMyGroups:Y(a,13,0),sharedToMyTeamDrive:Y(a,14,0),other:Y(a,15,0),incomingDesignReview:Y(a,16,0),outgoingDesignReview:Y(a,17,0)}};
var Tyb=function(a){Z.call(this,a)};U(Tyb,Z);Tyb.prototype.toObject=function(){return Uyb(this)};var Uyb=function(a){if(null!=a)return{filterEnabled:W(a,1)}};
var Vyb=function(a){Z.call(this,a)};U(Vyb,Z);Vyb.prototype.toObject=function(){return Wyb(this)};var Wyb=function(a){if(null!=a)return{filterEnabled:Y(a,1,0)}};
var Xyb=function(a){Z.call(this,a)};U(Xyb,Z);Xyb.prototype.toObject=function(){return Yyb(this)};var Yyb=function(a){if(null!=a)return{filterEnabled:W(a,1),outgoingReviews:Y(a,2,0),incomingReviews:Y(a,3,0),ccedReviews:Y(a,4,0),inAttentionSet:Y(a,5,0),other:Y(a,6,0)}};
var Zyb=function(a){Z.call(this,a)};U(Zyb,Z);Zyb.prototype.toObject=function(){return $yb(this)};var $yb=function(a){if(null!=a)return{filterEnabled:Y(a,1,0)}};
var azb=function(a){Z.call(this,a)};U(azb,Z);azb.prototype.toObject=function(){return bzb(this)};var bzb=function(a){if(null!=a)return{filterEnabled:Y(a,1,0),inAttentionSet:Y(a,2,0),other:Y(a,3,0)}};
var pG=function(a){Z.call(this,a)};U(pG,Z);pG.prototype.toObject=function(){return qG(this)};var qG=function(a){if(null!=a)return{critiqueFilter:Qyb(m(a,Pyb,1)),driveFilter:Syb(m(a,Ryb,2)),buganizerFilter:Oyb(m(a,Nyb,3)),arianeFilter:Myb(m(a,Lyb,4)),gtasksFilter:Uyb(m(a,Tyb,5)),gerritFilter:Yyb(m(a,Xyb,7)),ganpatiFilter:Wyb(m(a,Vyb,8)),gutsFilter:$yb(m(a,Zyb,10)),privacyFilter:bzb(m(a,azb,11)),taskAgeInDays:hj(a,6),showPrivateNoteOnly:Y(a,9,0)}};
var czb=function(a){Z.call(this,a)};U(czb,Z);czb.prototype.toObject=function(){return dzb(this)};
var dzb=function(a){if(null!=a){var b=V(a,1),c=oyb(m(a,nyb,15)),d=qyb(m(a,pyb,16)),e=syb(m(a,ryb,17)),f=uyb(m(a,tyb,3)),h=Byb(m(a,Ayb,27)),k=Eyb(m(a,Dyb,23)),q=zyb(m(a,yyb,4)),u=Gyb(m(a,Fyb,29)),y=Kyb(m(a,Jyb,32)),D=W(a,5),I=W(a,6),N=W(a,7),L=W(a,8),S=W(a,24),X=Y(a,28,0),ka=W(a,22),ha=W(a,9),ra=W(a,30),Da=Y(a,31,0),Ja=qG(m(a,pG,10)),Ba=qG(m(a,pG,11)),La=qG(m(a,pG,12)),hb=qG(m(a,pG,13)),fb=qG(m(a,pG,14)),Tb=V(a,19),va=hj(a,20),Ca=hj(a,21);var Ia=bj(a,25,Hyb);return{mostRecentWorkspaceId:b,arianeTaskPrefs:c,
buganizerTaskPrefs:d,critiqueTaskPrefs:e,driveTaskPrefs:f,ganpatiTaskPrefs:h,gerritTaskPrefs:k,gtasksTaskPrefs:q,gutsTaskPrefs:u,privacyTaskPrefs:y,arianeEnabled:D,buganizerEnabled:I,critiqueEnabled:N,driveEnabled:L,ganpatiEnabledDeprecated:S,ganpatiEnabled:X,gerritEnabled:ka,gtasksEnabled:ha,gutsEnabled:ra,privacyEnabled:Da,pinnedTaskFilter:Ja,inboxFilter:Ba,snoozedTaskFilter:La,completedTaskFilter:hb,dismissedTaskFilter:fb,viewedLaunchVersion:Tb,hiringChipDismissedTimestampMs:va,latestVisitTimestampMs:Ca,
taskOrderingPrefsMap:Gb(Ia,void 0,Iyb),g3NotificationsPrefs:wyb(m(a,vyb,26))}}};
var ezb=function(a){Z.call(this,a)};U(ezb,Z);var fzb=[2,6];ezb.prototype.toObject=function(){return gzb(this)};var gzb=function(a){if(null!=a)return{prefsId:V(a,1),taskManagementPrefs:dzb(Bl(a,czb,2,fzb)),notificationsPrefs:myb(Bl(a,lyb,6,fzb)),initialized:W(a,5),createdTimestamp:hj(a,3),updatedTimestamp:hj(a,4)}};
var hzb=function(a){Z.call(this,a)};U(hzb,Z);g=hzb.prototype;g.getTaskId=function(){return V(this,1)};g.setTaskId=function(a){return yl(this,1,a)};g.getClientId=function(){return hj(this,2)};g.setClientId=function(a){return Xk(this,2,a)};g.getWorkspaceId=function(){return V(this,3)};g.toObject=function(){var a=null!=this?{taskId:V(this,1),clientId:hj(this,2),workspaceId:V(this,3)}:void 0;return a};
var jzb=function(a){Z.call(this,a,-1,izb)};U(jzb,Z);var kzb=function(a,b){return ml(a,1,b)},izb=[1];jzb.prototype.toObject=function(){var a=null!=this?{taskIdsList:n(lb(this,1))}:void 0;return a};
var mzb=function(a){Z.call(this,a,-1,lzb)};U(mzb,Z);var nzb=function(){var a=new mzb;return ml(a,1,[1])},lzb=[1];mzb.prototype.toObject=function(){var a=null!=this?{taskStatusesList:n(lb(this,1))}:void 0;return a};
var ozb=function(a){Z.call(this,a)};U(ozb,Z);g=ozb.prototype;g.getId=function(){return V(this,1)};g.setId=function(a){return yl(this,1,a)};g.getVersion=function(){return V(this,2)};g.setVersion=function(a){return yl(this,2,a)};g.toObject=function(){return pzb(void 0,this)};var pzb=function(a,b){if(null!=b){var c={id:V(b,1),version:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var qzb=function(a){Z.call(this,a)};U(qzb,Z);g=qzb.prototype;g.getTask=function(){return m(this,mG,8)};g.setTask=function(a){return Db(this,8,a)};g.hasTask=function(){return oj(this,8)};g.setUndoToken=function(a){return yl(this,7,a)};g.getClientId=function(){return hj(this,9)};g.setClientId=function(a){return Xk(this,9,a)};
g.toObject=function(){var a=null!=this?{task:nG(void 0,this.getTask()),belowTaskId:V(this,3),undoToken:V(this,7),clientId:hj(this,9),clientTimeZone:pzb(void 0,m(this,ozb,10))}:void 0;return a};
var rG=function(a){Z.call(this,a)};U(rG,Z);rG.prototype.getName=function(){return V(this,1)};rG.prototype.setName=function(a){return yl(this,1,a)};rG.prototype.toObject=function(){var a=null!=this?{name:V(this,1)}:void 0;return a};
var tG=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.taskManagementApiPromiseClient=b;this.config=c;this.isActiveG3cUser$=(0,T.defer)(function(){var e=(new rG).setName("keys/2");return(0,T.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,sG(d)))}).pipe(R(function(e){return(e=Bl(e.getUserPrefs()||new ezb,czb,2,fzb))?12096E5>=Date.now()-hj(e,21):!1}),bg(1))},szb=function(a){var b=nzb();return(0,T.defer)(function(){var c=T.from;var d=a.taskManagementApiPromiseClient;var e=sG(a);d=
uG(d.client_,d.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",b,e||{},rzb);return c.call(T,d)}).pipe(R(function(c){return c.getTasksList().length}))};
tG.prototype.getTask=function(a){var b=this,c=kzb(new jzb,[a]);return(0,T.defer)(function(){var d=T.from;var e=b.taskManagementApiPromiseClient;var f=sG(b);e=uG(e.client_,e.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",c,f||{},tzb);return d.call(T,e)}).pipe(R(function(d){return(d=d.getTasksList())&&0!==d.length?{taskId:a,taskStatus:uzb(d[0].getTaskStatus()),snoozeUntilMs:Number(hj(d[0],12)||"")}:{taskId:a,taskStatus:0,snoozeUntilMs:0}}))};
tG.prototype.updateTaskStatus=function(a,b,c){var d=this;c=void 0===c?0:c;var e=(new qzb).setTask(gyb((new mG).setTaskStatus(a).setTaskId(b),c||0)).setUndoToken("");return(0,T.defer)(function(){return(0,T.from)(d.taskManagementApiPromiseClient.updateTaskStatus(e,sG(d)))}).pipe(R(function(f){f=f.getTask();return{taskId:f.getTaskId(),taskStatus:uzb(f.getTaskStatus()),snoozeUntilMs:Number(hj(f,12)||0)}}))};
tG.prototype.addTaskByUrl=function(a){var b=this,c=(new hzb).setTaskId(a);return(0,T.defer)(function(){return(0,T.from)(b.taskManagementApiPromiseClient.addTaskByUrl(c,sG(b)))}).pipe(R(function(d){return!V(d,2)}))};
var sG=function(a){return{"X-Goog-Api-Key":a.config?a.config.apikey?a.config.apikey:"nonprod"===a.config.environment?"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA":"AIzaSyBIugcexIJggeGpV_dVry6fkIO6bKH_nHk":"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA",Authorization:So([])||"","X-Goog-AuthUser":"0"}},uzb=function(a){switch(a){case 0:case 6:case 2:case 3:case 5:case 1:return a;default:ph(a)}};tG.\u0275fac=function(a){return new (a||tG)(t(Kwb),t(Jwb),t(CF,8))};
tG.\u0275prov=hc({token:tG,factory:tG.\u0275fac,providedIn:"root"});
var vG=function(a,b){var c=this;this.g3cWidgetService=a;this.g3cWidgetIconRegistry=b;this.destroyed$=new T.Subject;this.taskId$=new T.ReplaySubject;this.forceLoadTaskData$=new T.BehaviorSubject(void 0);this.isActiveG3cUser$=this.g3cWidgetService.isActiveG3cUser$.pipe(Pf(function(){return(0,T.of)(!1)}),uf(function(d){return d}),gg(function(){var d=c.g3cWidgetIconRegistry;if(!d.isMatIconRegistered){var e=Ch(Cwb);d.iconRegistry._addSvgIconConfig("","g3c-console-logo-outlined",new fF(e));e=r(Gwb);for(var f=
e.next();!f.done;f=e.next()){var h=f.value;f="g3c-widget-"+h.replace(/_/g,"-");h=Ch(Dwb,h);d.iconRegistry._addSvgIconConfig("",f,new fF(h))}e=r(Hwb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=Ch(Ewb,h),d.iconRegistry._addSvgIconConfig("",f,new fF(h));e=r(Iwb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=Ch(Fwb,h),d.iconRegistry._addSvgIconConfig("",f,new fF(h));d.isMatIconRegistered=!0}c.userActionPerformed.emit("loaded")}),
fg(this.destroyed$));this.task$=(0,T.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(eg(function(d){d=r(d).next().value;return c.g3cWidgetService.getTask(d).pipe(Pf(function(){return(0,T.of)(void 0)}))}),fg(this.destroyed$));this.pinnedTasksCount$=(0,T.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(eg(function(){return szb(c.g3cWidgetService).pipe(Pf(function(){return(0,T.of)(0)}))}),fg(this.destroyed$));this.taskIdInternal="";this.skipTasksActionsInternal=!1;this.menuXPosition=
"before";this.featureHighlightingEnabled=!1;this.customWidgetClass="";this.userActionPerformed=new Vw};g=vG.prototype;
g.updateTaskStatus=function(a){var b=this;this.g3cWidgetService.updateTaskStatus(a.taskStatus,this.taskIdInternal,a.snoozeUntilMs).pipe(R(function(){return!0}),Pf(function(){return(0,T.of)(!1)}),fg(this.destroyed$)).subscribe(function(c){if(c){c=a.taskStatus;if(0!==c)switch(c){case 1:b.userActionPerformed.emit("taskPinned");break;case 2:b.userActionPerformed.emit("taskSnoozed");break;case 3:b.userActionPerformed.emit("taskArchived");break;case 5:b.userActionPerformed.emit("taskMuted");break;case 6:b.userActionPerformed.emit("taskMovedToInbox");
break;default:ph(c)}b.forceLoadTaskData$.next()}})};g.addTaskByUrl=function(){var a=this;this.g3cWidgetService.addTaskByUrl(this.taskIdInternal).pipe(Pf(function(){return(0,T.of)(!1)}),fg(this.destroyed$)).subscribe(function(b){b&&(a.userActionPerformed.emit("taskAddedToG3c"),a.forceLoadTaskData$.next())})};g.emitWidgetMenuOpen=function(){this.userActionPerformed.emit("menuOpened")};g.emitOpenInG3cClicked=function(){this.userActionPerformed.emit("openInG3cClicked")};
g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};oi.Object.defineProperties(vG.prototype,{taskId:{configurable:!0,enumerable:!0,set:function(a){this.taskIdInternal=a;this.taskId$.next(a)}},skipTasksActions:{configurable:!0,enumerable:!0,set:function(a){if(this.skipTasksActionsInternal=a)this.taskId$.next(""),this.forceLoadTaskData$.next()}}});vG.\u0275fac=function(a){return new (a||vG)(C(tG),C(BF))};
vG.\u0275cmp=w({type:vG,selectors:[["g3c-widget-entry"]],inputs:{menuXPosition:"menuXPosition",taskId:"taskId",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{userActionPerformed:"userActionPerformed"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"task","pinnedTasksCount","menuXPosition","skipTasksActions","featureHighlightingEnabled","customWidgetClass","updateTaskStatus","addTaskByUrl","widgetMenuOpen","openInG3cClicked",
"featureTooltipActioned"]],template:function(a,b){a&1&&(M(0,Oma,4,10,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.isActiveG3cUser$))},dependencies:[Gx,yF,Tx],encapsulation:2});
var wG=function(){};wG.\u0275fac=function(a){return new (a||wG)};wG.\u0275mod=xc({type:wG});wG.\u0275inj=ic({imports:[CB,kB,kB]});
var xG=function(){};xG.\u0275fac=function(a){return new (a||xG)};xG.\u0275mod=xc({type:xG});xG.\u0275inj=ic({imports:[eA,NC,ay,VC,wG,jB,QC]});
var vzb=function(a){Z.call(this,a)};U(vzb,Z);vzb.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var wzb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};wzb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};wzb.prototype.getMetadata=function(){return this.metadata_};
var xzb=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};xzb.prototype.getMetadata=function(){return this.metadata_};xzb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};xzb.prototype.getStatus=function(){return this.status_};
var yG=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},yzb=function(a,b,c){c=void 0===c?{}:c;return new wzb(b,a,c)};yG.prototype.getName=function(){return this.name};
var zG=function(a){Z.call(this,a)};U(zG,Z);zG.prototype.getTask=function(){return m(this,mG,1)};zG.prototype.setTask=function(a){return Db(this,1,a)};zG.prototype.hasTask=function(){return oj(this,1)};zG.prototype.toObject=function(){var a=null!=this?{task:nG(void 0,this.getTask()),addTaskFailureReason:V(this,2)}:void 0;return a};
var zzb=new yG("/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",hzb,zG,function(a){return a.serialize()},function(a){return no(zG,a)});
var AG=function(a){Z.call(this,a,-1,Azb)};U(AG,Z);AG.prototype.getTasksList=function(){return tb(this,mG,1)};var Azb=[1];AG.prototype.toObject=function(){var a=null!=this?{tasksList:Eb(this.getTasksList(),nG)}:void 0;return a};
var tzb=new yG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",jzb,AG,function(a){return a.serialize()},function(a){return no(AG,a)});
var BG=function(a){Z.call(this,a,-1,Bzb)};U(BG,Z);BG.prototype.getTasksList=function(){return tb(this,mG,1)};var Bzb=[1];BG.prototype.toObject=function(){var a=null!=this?{tasksList:Eb(this.getTasksList(),nG)}:void 0;return a};
var rzb=new yG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",mzb,BG,function(a){return a.serialize()},function(a){return no(BG,a)});
var Czb=function(a){Z.call(this,a)};U(Czb,Z);g=Czb.prototype;g.getTask=function(){return m(this,mG,1)};g.setTask=function(a){return Db(this,1,a)};g.hasTask=function(){return oj(this,1)};g.setUndoToken=function(a){return yl(this,4,a)};g.toObject=function(){var a=null!=this?{task:nG(void 0,this.getTask()),undoToken:V(this,4)}:void 0;return a};
var Dzb=new yG("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",qzb,Czb,function(a){return a.serialize()},function(a){return no(Czb,a)});
var Ezb=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}};
var CG=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};U(CG,Error);CG.prototype.name="RpcError";
var Fzb=Promise;
var DG=function(a){Z.call(this,a,-1,Gzb)};U(DG,Z);DG.prototype.getCode=function(){return hj(this,1)};DG.prototype.setCode=function(a){return Xk(this,1,a)};DG.prototype.getMessage=function(){return V(this,2)};var Gzb=[3];DG.prototype.toObject=function(){var a=null!=this?{code:hj(this,1),message:V(this,2),detailsList:Eb(tb(this,HF,3),axb)}:void 0;return a};
var EG=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Hzb(this)},Mzb=function(a,b){Vo(a.xhr_,"complete",function(){if(a.xhr_.isSuccess()){var c=a.xhr_.getResponseText();if(b&&"text/plain"===a.xhr_.getResponseHeader("Content-Type")){if(!atob)throw Error("Tb");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_(c)}catch(f){FG(a,new CG(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Ezb(a.xhr_.getStatus());Izb(a,Jzb(a));0==c?Kzb(a,d):FG(a,new CG(c,"Xhr succeeded but the status code is not 200"))}else{d=a.xhr_.getResponseText();var e={};d?(e=Lzb(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+a.xhr_.getLastErrorCode()+", error: "+a.xhr_.getLastError());Izb(a,Jzb(a));FG(a,new CG(d,c,e))}})},Hzb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){FG(a,new CG(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Kzb(a,d)}if("2"in b)for(b=Lzb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){Izb(a,Jzb(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});a.xhrNodeReadableStream_.on("error",function(){if(0!=a.onErrorCallbacks_.length){var b=a.xhr_.getLastErrorCode();
0!==b||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=Ezb(c);break;default:d=14}Izb(a,Jzb(a));b=Jtb(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);FG(a,new CG(d,b))}})},Jzb=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},Lzb=function(a,b){var c=2,d={};try{var e=no(DG,b);c=e.getCode();var f=e.getMessage();tb(e,HF,3).length&&(d["grpc-web-status-details-bin"]=
b)}catch(h){a.xhr_&&404===a.xhr_.getStatus()?(c=5,f="Not Found: "+a.xhr_.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};EG.prototype.on=function(a,b){"data"==a?this.onDataCallbacks_.push(b):"metadata"==a?this.onMetadataCallbacks_.push(b):"status"==a?this.onStatusCallbacks_.push(b):"end"==a?this.onEndCallbacks_.push(b):"error"==a&&this.onErrorCallbacks_.push(b);return this};var GG=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
EG.prototype.removeListener=function(a,b){"data"==a?GG(this.onDataCallbacks_,b):"metadata"==a?GG(this.onMetadataCallbacks_,b):"status"==a?GG(this.onStatusCallbacks_,b):"end"==a?GG(this.onEndCallbacks_,b):"error"==a&&GG(this.onErrorCallbacks_,b);return this};EG.prototype.cancel=function(){this.xhr_.abort()};
var Kzb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},Izb=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},FG=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};EG.prototype.cancel=EG.prototype.cancel;EG.prototype.removeListener=EG.prototype.removeListener;EG.prototype.on=EG.prototype.on;
var HG=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};hu(HG,eE);HG.prototype.createInstance=function(){var a=new IG(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};HG.prototype.internalGetOptions=xC({});HG.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
HG.prototype.setCacheMode=function(a){this.cacheMode_=a};var IG=function(a,b){Uo.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null};
hu(IG,Uo);IG.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Ub");this.method_=a;this.url_=b;this.readyState=1;JG(this)};IG.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Vb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||da).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
IG.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});1<=this.readyState&&this.inProgress_&&4!=this.readyState&&(this.inProgress_=!1,KG(this));this.readyState=0};
IG.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,JG(this)),this.inProgress_&&(this.readyState=3,JG(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof da.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Wb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;Nzb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var Nzb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
IG.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?KG(this):JG(this);3==this.readyState&&Nzb(this)}};IG.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,KG(this))};
IG.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,KG(this))};IG.prototype.handleSendFailure_=function(){this.inProgress_&&KG(this)};var KG=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;JG(a)};g=IG.prototype;g.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};g.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
g.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};g.setCredentialsMode=function(a){this.credentialsMode_=a};g.setCacheMode=function(a){this.cacheMode_=a};var JG=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(IG.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});
var Ozb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Fa(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},LG=function(a){if(a.getValues&&"function"==typeof a.getValues)return a.getValues();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return rja(a)},Pzb=
function(a){if(a.getKeys&&"function"==typeof a.getKeys)return a.getKeys();if(!a.getValues||"function"!=typeof a.getValues){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(Fa(a)||"string"===typeof a){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}}},Qzb=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Fa(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=Pzb(a),e=LG(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},Rzb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Fa(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=Pzb(a),e=LG(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};
var hp=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof hp?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,uv(this,a.scheme_),this.setUserInfo(a.getUserInfo()),tv(this,a.getDomain()),Szb(this,a.port_),this.setPath(a.getPath()),MG(this,a.queryData_.clone()),NG(this,a.fragment_)):a&&(c=String(a).match(Mtb))?(this.ignoreCase_=!!b,uv(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),tv(this,c[3]||"",!0),Szb(this,c[4]),
this.setPath(c[5]||"",!0),MG(this,c[6]||"",!0),NG(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new OG(null,this.ignoreCase_))};
hp.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(PG(b,Tzb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(PG(b,Tzb,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,null!=c&&a.push(":",String(c));if(c=this.getPath())this.domain_&&"/"!=c.charAt(0)&&a.push("/"),a.push(PG(c,"/"==c.charAt(0)?Uzb:Vzb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",PG(c,Wzb));return a.join("")};
hp.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?uv(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?tv(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)Szb(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("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(fa(e,"./")||fa(e,"/.")){d=Qi(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var k=
e[h++];"."==k?d&&h==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?MG(b,a.queryData_.clone()):c=!!a.fragment_;c&&NG(b,a.fragment_);return b};hp.prototype.clone=function(){return new hp(this)};var uv=function(a,b,c){a.scheme_=c?QG(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};hp.prototype.getUserInfo=function(){return this.userInfo_};
hp.prototype.setUserInfo=function(a,b){this.userInfo_=b?QG(a):a;return this};hp.prototype.hasUserInfo=function(){return!!this.userInfo_};hp.prototype.getDomain=function(){return this.domain_};var tv=function(a,b,c){a.domain_=c?QG(b,!0):b;return a},Szb=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Xb`"+b);a.port_=b}else a.port_=null;return a};hp.prototype.getPath=function(){return this.path_};hp.prototype.setPath=function(a,b){this.path_=b?QG(a,!0):a;return this};
hp.prototype.hasPath=function(){return!!this.path_};hp.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var MG=function(a,b,c){b instanceof OG?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=PG(b,Xzb)),a.queryData_=new OG(b,a.ignoreCase_));return a};hp.prototype.setQuery=function(a){return MG(this,a)};hp.prototype.getQuery=function(){return this.queryData_.toString()};
var RG=function(a,b,c){a.queryData_.set(b,c);return a},SG=function(a,b){return a.queryData_.get(b)},NG=function(a,b,c){a.fragment_=c?QG(b):b;return a};hp.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};hp.prototype.isReadOnly=function(){return!1};hp.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var TG=function(a,b){return a instanceof hp?a.clone():new hp(a,b)},QG=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},PG=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Yzb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Yzb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Tzb=/[#\/\?@]/g,Vzb=/[#\?:]/g,Uzb=/[#\?]/g,Xzb=/[#\?@]/g,Wzb=/#/g,OG=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=
a||null;this.ignoreCase_=!!b},UG=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Ntb(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=OG.prototype;g.getCount=function(){UG(this);return this.count_};g.add=function(a,b){UG(this);this.encodedQuery_=null;a=VG(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};
g.remove=function(a){UG(this);a=VG(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};g.isEmpty=function(){UG(this);return 0==this.count_};g.containsKey=function(a){UG(this);a=VG(this,a);return this.keyMap_.has(a)};g.containsValue=function(a){var b=this.getValues();return wa(b,a)};
g.forEach=function(a,b){UG(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){UG(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.getValues=function(a){UG(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get(VG(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};g.set=function(a,b){UG(this);this.encodedQuery_=null;a=VG(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};g.get=function(a,b){if(!a)return b;a=this.getValues(a);return 0<a.length?String(a[0]):b};
g.setValues=function(a,b){this.remove(a);0<b.length&&(this.encodedQuery_=null,this.keyMap_.set(VG(this,a),Ea(b)),this.count_+=b.length)};g.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.getValues(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}}return this.encodedQuery_=a.join("&")};
g.clone=function(){var a=new OG;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var VG=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};OG.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(UG(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};
OG.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Qzb(arguments[b],function(c,d){this.add(d,c)},this)};
var Zzb=function(a){var b="";bh(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b};
var WG=function(a){$C.call(this);this.handler_=a;this.keys_={}};hu(WG,$C);var $zb=[];WG.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&($zb[0]=b.toString()),b=$zb);for(var e=0;e<b.length;e++){var f=Vo(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};WG.prototype.listenOnce=function(a,b,c,d){return aAb(this,a,b,c,d)};
var aAb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)aAb(a,b,c[h],d,e,f);else{b=kD(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
WG.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=Ga(d)?!!d.capture:!!d,e=e||this.handler_||this,c=lD(c),d=!!d,b=hD(a)?a.getListener(b,c,d,e):a?(a=mD(a))?a.getListener(b,c,d,e):null:null,b&&(oD(b),delete this.keys_[b.key]);return this};WG.prototype.removeAll=function(){bh(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&oD(a)},this);this.keys_={}};
WG.prototype.disposeInternal=function(){WG.superClass_.disposeInternal.call(this);this.removeAll()};WG.prototype.handleEvent=function(){throw Error("Zb");};
var bAb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};bAb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("$b`"+this.streamPos_+"`"+b+"`"+a);};
bAb.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(0==a)return null;try{var b=Tib(this.leftoverInput_.slice(0,4*a))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=4*a;this.leftoverInput_=this.leftoverInput_.slice(4*a);return b};
var Fi=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};Fi.prototype.getErrorMessage=function(){return this.errorMessage_};Fi.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_);};Fi.prototype.acceptsBinaryInput=function(){return!0};
Fi.prototype.parse=function(a){function b(q){q&128&&f.error_(h,k,"invalid tag");2!=(q&7)&&f.error_(h,k,"invalid wire type");f.tag_=q>>>3;1!=f.tag_&&2!=f.tag_&&15!=f.tag_&&f.error_(h,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(q){f.countLengthBytes_++;5==f.countLengthBytes_&&q&240&&f.error_(h,k,"message length too long");f.length_|=(q&127)<<7*(f.countLengthBytes_-1);q&128||(f.state_=2,f.countMessageBytes_=0,"undefined"!==typeof Uint8Array?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),0==f.length_&&e())}function d(q){f.messageBuffer_[f.countMessageBytes_++]=q;f.countMessageBytes_==f.length_&&e()}function e(){if(15>f.tag_){var q={};q[f.tag_]=f.messageBuffer_;f.result_.push(q)}f.state_=0}for(var f=this,h=a instanceof Array?a:new Uint8Array(a),k=0;k<h.length;){switch(f.state_){case 3:f.error_(h,k,"stream already broken");break;case 0:b(h[k]);break;case 1:c(h[k]);break;case 2:d(h[k]);break;default:throw Error("ac`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return 0<a.length?a:null};
var Gi=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new bAb;this.pbParser_=new Fi};Gi.prototype.getErrorMessage=function(){return this.errorMessage_};Gi.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Gi.prototype.acceptsBinaryInput=function(){return!1};
Gi.prototype.parse=function(a){null!==this.errorMessage_&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=null===c?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};
var XG=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
var Pma=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)},cAb={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,
NUM_DIGIT:20};g=Pma.prototype;g.getErrorMessage=function(){return this.errorMessage_};g.done=function(){return 2===this.streamState_};g.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){function b(){for(;I<a.length;)if(XG(a[I]))I++,f.pos_++;else break;return I<u}function c(){for(var L;;){L=a[I++];if(!L)break;f.pos_++;switch(f.state_){case q.INIT:"{"===L?f.state_=q.OBJECT_OPEN:"["===L?f.state_=q.ARRAY_OPEN:XG(L)||f.error_(a,I);continue;case q.KEY_START:case q.OBJECT_OPEN:if(XG(L))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if("}"===L){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);'"'===L?f.state_=q.STRING:f.error_(a,I);continue;case q.KEY_END:case q.OBJECT_END:if(XG(L))continue;
":"===L?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):"}"===L?(f.depth_--,e(),f.state_=d()):","===L?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,I);continue;case q.ARRAY_OPEN:case q.VALUE:if(XG(L))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,"]"===L){f.depth_--;if(0===f.depth_){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);'"'===L?f.state_=q.STRING:"{"===L?f.state_=q.OBJECT_OPEN:
"["===L?f.state_=q.ARRAY_OPEN:"t"===L?f.state_=q.TRUE1:"f"===L?f.state_=q.FALSE1:"n"===L?f.state_=q.NULL1:"-"!==L&&(-1!=="0123456789".indexOf(L)?f.state_=q.NUM_DIGIT:f.error_(a,I));continue;case q.ARRAY_END:if(","===L)h.push(q.ARRAY_END),f.state_=q.VALUE,1===f.depth_&&(D=I);else if("]"===L){f.depth_--;if(0===f.depth_)return;e();f.state_=d()}else if(XG(L))continue;else f.error_(a,I);continue;case q.STRING:var S=I;a:for(;;){for(;0<f.unicodeCount_;)if(L=a[I++],4===f.unicodeCount_?f.unicodeCount_=0:f.unicodeCount_++,
!L)break a;if('"'===L&&!f.slashed_){f.state_=d();break}if("\\"===L&&!f.slashed_&&(f.slashed_=!0,L=a[I++],!L))break;if(f.slashed_)if(f.slashed_=!1,"u"===L&&(f.unicodeCount_=1),L=a[I++])continue;else break;k.lastIndex=I;L=k.exec(a);if(!L){I=a.length+1;break}I=L.index+1;L=a[L.index];if(!L)break}f.pos_+=I-S;continue;case q.TRUE1:if(!L)continue;"r"===L?f.state_=q.TRUE2:f.error_(a,I);continue;case q.TRUE2:if(!L)continue;"u"===L?f.state_=q.TRUE3:f.error_(a,I);continue;case q.TRUE3:if(!L)continue;"e"===L?
f.state_=d():f.error_(a,I);continue;case q.FALSE1:if(!L)continue;"a"===L?f.state_=q.FALSE2:f.error_(a,I);continue;case q.FALSE2:if(!L)continue;"l"===L?f.state_=q.FALSE3:f.error_(a,I);continue;case q.FALSE3:if(!L)continue;"s"===L?f.state_=q.FALSE4:f.error_(a,I);continue;case q.FALSE4:if(!L)continue;"e"===L?f.state_=d():f.error_(a,I);continue;case q.NULL1:if(!L)continue;"u"===L?f.state_=q.NULL2:f.error_(a,I);continue;case q.NULL2:if(!L)continue;"l"===L?f.state_=q.NULL3:f.error_(a,I);continue;case q.NULL3:if(!L)continue;
"l"===L?f.state_=d():f.error_(a,I);continue;case q.NUM_DECIMAL_POINT:"."===L?f.state_=q.NUM_DIGIT:f.error_(a,I);continue;case q.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(L))continue;else I--,f.pos_--,f.state_=d();continue;default:f.error_(a,I)}}}function d(){var L=h.pop();return null!=L?L:q.VALUE}function e(L){1<f.depth_||(L||(L=-1===D?f.buffer_+a.substring(y,I):a.substring(D,I)),f.deliverMessageAsRawString_?f.result_.push(L):f.result_.push(JSON.parse(L)),D=I)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=cAb,u=a.length,y=0,D=-1,I=0;I<u;)switch(f.streamState_){case 3:return f.error_(a,I),null;case 2:return b()&&f.error_(a,I),null;case 0:if(b()){var N=a[I++];f.pos_++;if("["===N){f.streamState_=1;y=I;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,I)}return null;case 1:return c(),0===f.depth_&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(I)):f.buffer_=-1===D?f.buffer_+a.substring(y):a.substring(D),0<f.result_.length?(N=f.result_,f.result_=[],N):null}return null};
var Ei=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Ei.prototype.getErrorMessage=function(){return this.errorMessage_};Ei.prototype.acceptsBinaryInput=function(){return!1};
Ei.prototype.parse=function(a){function b(q){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+h+". Error: "+q+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new Pma({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var u=0;u<q.length;u++){var y={};y[1]=q[u];f.result_.push(y)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var u={};u[2]=q[0];f.result_.push(u)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!XG(a[h])){k=!0;break a}h++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.state_=1,h++,f.streamPos_++):b("unexpected input token");break;case 1:"["===a[h]?(f.state_=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.state_=3:"]"===a[h]?(f.state_=5,h++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(h));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.state_=4,c(),f.jsonStreamParser_.parse("["),h+=","===a[h]?1:5,f.streamPos_++):"]"===a[h]&&(f.state_=5,h++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(h));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);
break;case 5:b("extra input after stream end")}}return 0<f.result_.length?(a=f.result_,f.result_=[],a):null};
var dAb=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 WG(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)},YG=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},ZG=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};dAb.prototype.getStatus=function(){return this.status_};
dAb.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(cub(this.xhr_)instanceof Array){var f=cub(this.xhr_);0<f.length&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?YG(this,7):7==c?YG(this,8):d||YG(this,3)),this.parser_||(this.parser_=Qma(this.xhr_),null==this.parser_&&
YG(this,5)),2<this.status_)ZG(this);else{if(a.length>this.pos_){var h=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<h;k++){var q=this.parser_.parse(Array.from(a[k]));q&&(c=c.concat(q))}else{q="";if(!this.textDecoder_){if("undefined"===typeof TextDecoder)throw Error("bc");this.textDecoder_=new TextDecoder}for(k=0;k<h;k++)q+=this.textDecoder_.decode(a[k],{stream:4==b&&k==h-1});c=this.parser_.parse(q)}a.splice(0,h);c&&this.dataHandler_(c)}catch(y){YG(this,5);ZG(this);break a}}else if(e.length>
this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var u=this.parser_.parse(k);null!=u&&this.dataHandler_&&this.dataHandler_(u)}catch(y){YG(this,5);ZG(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?YG(this,2):YG(this,4),ZG(this)):YG(this,1)}}}catch(y){YG(this,6),ZG(this)}};
var eAb=function(a){this.xhrReader_=a;a=du(this.onData_,this);this.xhrReader_.dataHandler_=a;a=du(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=eAb.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&za(c,b);(a=this.callbackOnceMap_[a])&&za(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&fAb(this,a,b);(b=this.callbackOnceMap_.data)&&fAb(this,a,b);this.callbackOnceMap_.data=[]};
var fAb=function(a,b,c){for(var d={},e=0;e<b.length;d={$jscomp$loop$prop$message$1657:d.$jscomp$loop$prop$message$1657},e++)d.$jscomp$loop$prop$message$1657=b[e],c.forEach(function(f){return function(h){try{h(f.$jscomp$loop$prop$message$1657)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};
eAb.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:gAb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gAb(this,"error");break;case 8:gAb(this,"close");break;case 2:gAb(this,"end")}};var gAb=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]=[]};eAb.prototype.handleError_=function(){};
var $G=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Qo("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Qo("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},jAb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return hAb(function(h){return new Fzb(function(k,q){var u=
{},y=iAb(a,h,f);y.on("error",function(D){return q(D)});y.on("metadata",function(D){u=D});y.on("data",function(D){var I=u;I=void 0===I?{}:I;k(new xzb(D,h.getMethodDescriptor(),I))})})},a.unaryInterceptors_).call(a,yzb(e,c,d)).then(function(h){return h.responseMessage_})},uG=function(a,b,c,d,e){return jAb(a,b,c,d,e)};
$G.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return hAb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),u=kAb(e,!1);q=lAb(e,q,u,f+k.getName());var y=mAb(u,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);u.send(q,"POST",h);return y},this.streamInterceptors_).call(this,yzb(d,b,c))};
var iAb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=kAb(a,!0);a=lAb(a,e,f,c+d.getName());c=mAb(f,d.responseDeserializeFn,!1);Mzb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},kAb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new iE(new HG({worker:a.workerScope_,streamBinaryChunks:b})):new iE},lAb=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]=
"grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.withCredentials_)c.withCredentials_=!0;if(a.suppressCorsPreflight_)a=d,dh(b)?d=a:(b=Zzb(b),"string"===typeof a?d=hE(a,encodeURIComponent("$httpHeaders"),b):(RG(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d},mAb=function(a,b,c){if(c)if(!lu||10<=Number(su)){c=new dAb(a);var d=new eAb(c)}else d=null;return new EG({xhr:a,nodeReadableStream:d},
b)},hAb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});return c};
var nAb=function(a){this.client_=new $G({format:"jspb"});this.hostname_=a};nAb.prototype.updateTaskStatus=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",a,b||{},Dzb)};nAb.prototype.addTaskByUrl=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",a,b||{},zzb)};
var aH=function(a){Z.call(this,a)};U(aH,Z);aH.prototype.getUserPrefs=function(){return m(this,ezb,1)};aH.prototype.toObject=function(){var a=null!=this?{userPrefs:gzb(this.getUserPrefs())}:void 0;return a};
var oAb=new yG("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",rG,aH,function(a){return a.serialize()},function(a){return no(aH,a)});
var bH=function(a){Z.call(this,a,-1,pAb)};U(bH,Z);var pAb=[1];bH.prototype.toObject=function(){return cH(void 0,this)};var cH=function(a,b){if(null!=b){var c={pathsList:n(lb(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var qAb=function(a){this.client_=new $G({format:"jspb"});this.hostname_=a};qAb.prototype.getUserPrefs=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},oAb)};
var rAb=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},dH=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new Vw;this.dateInput=new Vw;this.stateChanges=new T.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=T.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=mB(d._dateAdapter,d._dateAdapter.deserialize(e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=mB(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.min;return!f||!e||0>=nB(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=mB(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.max;return!f||!e||0<=nB(d._dateAdapter,f,e)?null:
{matDatepickerMax:{max:f,actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=dH.prototype;g._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
g._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new rAb(b,b._elementRef.nativeElement)),b.dateChange.emit(new rAb(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(b.isDateInstance(d)&&b.isDateInstance(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.validate=function(a){return this._validator?this._validator(a):null};g.writeValue=function(a){this._assignValueProgrammatically(a)};g.registerOnChange=function(a){this._cvaOnChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g._onKeydown=function(a){a.altKey&&40===a.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
g._onInput=function(a){var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=mB(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 rAb(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new rAb(this,this._elementRef.nativeElement))};
g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=null!=a?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};g._parentDisabled=function(){return!1};
g._assignValueProgrammatically=function(a){a=this._dateAdapter.deserialize(a);this._lastValueValid=this._isValidValue(a);a=mB(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
oi.Object.defineProperties(dH.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||this._parentDisabled()},set:function(a){a=Yg(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
dH.\u0275fac=function(a){return new (a||dH)(C(sd),C(lB,8),C(pB,8))};dH.\u0275dir=w({type:dH,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Fc]});
var sAb=new od("MAT_DATE_RANGE_INPUT_PARENT"),eH=function(a,b,c,d,e,f,h,k){dH.call(this,b,h,k);this._rangeInput=a;this._defaultErrorStateMatcher=c;this._injector=d;this._parentForm=e;this._parentFormGroup=f};U(eH,dH);g=eH.prototype;g.ngOnInit=function(){var a=this._injector.get(ny,null,10);a&&(this.ngControl=a)};g.ngDoCheck=function(){this.ngControl&&this.updateErrorState()};g.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length};g._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder};
g.focus=function(){this._elementRef.nativeElement.focus()};g._onInput=function(a){dH.prototype._onInput.call(this,a);this._rangeInput._handleChildValueChange()};g._openPopup=function(){this._rangeInput._openDatepicker()};g._getMinDate=function(){return this._rangeInput.min};g._getMaxDate=function(){return this._rangeInput.max};g._getDateFilter=function(){return this._rangeInput.dateFilter};g._parentDisabled=function(){return this._rangeInput._groupDisabled};
g._shouldHandleChangeEvent=function(a){a=a.source;return a!==this._rangeInput._startInput&&a!==this._rangeInput._endInput};g._assignValueProgrammatically=function(a){dH.prototype._assignValueProgrammatically.call(this,a);var b;null==(b=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)||b._validatorOnChange()};eH.\u0275fac=function(a){return new (a||eH)(C(sAb),C(sd),C(tB),C(Uv),C(ty,8),C(Cy,8),C(lB,8),C(pB,8))};eH.\u0275dir=w({type:eH,features:[ee]});ila(eH);
var tAb={provide:new od("mat-datepicker-scroll-strategy"),deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};pi(function(a){this._elementRef=a});
var fH=function(){};fH.\u0275fac=function(a){return new (a||fH)};fH.\u0275mod=xc({type:fH});fH.\u0275inj=ic({providers:[JB,tAb],imports:[ay,wG,jB,eA,fB,kB,LA]});
var gH=function(){};gH.\u0275fac=function(a){return new (a||gH)};gH.\u0275mod=xc({type:gH});gH.\u0275inj=ic({providers:[wwb],imports:[eA,ay,jB,kB,kB,LA]});
var hH=function(){};hH.\u0275fac=function(a){return new (a||hH)};hH.\u0275mod=xc({type:hH});hH.\u0275inj=ic({providers:[{provide:Kwb,useFactory:function(a){return new qAb(Rma(a))},deps:[CF]},{provide:Jwb,useFactory:function(a){return new nAb(Rma(a))},deps:[CF]},tG],imports:[ay,xG,wG,fH,hC,AF,vC,qF,gH]});
var uAb=function(a){this.metricName_="/client_streamz/buganizer/load_time";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};uAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};uAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var vAb=function(a){this.metricName_="/client_streamz/buganizer/user_action_counts";this.streamzService_=a;this.streamzService_.addNewCounter(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};vAb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};vAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var wAb=function(a){this.metricName_="/client_streamz/buganizer/user_latency";this.streamzService_=a;this.streamzService_.addNewEventMetric(this.metricName_,{field_type:3,field_name:"action"},{field_type:3,field_name:"frontend_access_mode"},{field_type:3,field_name:"environment_type"})};wAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};wAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var xAb=function(a){this.servicePromise_=a;a.then(du(function(){},this),function(){},this)},yAb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("cc`"+b);return e.apply(d,c)})},AAb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=zAb(a,b).then(function(f){return f.apply(null,d)});return new xAb(e)},BAb={},zAb=function(a,b){var c=BAb[b];if(c)return c;c=(c=Qo(b))?KD(c):(new JD(function(d,e){var f=(new rD(document)).createElement("SCRIPT");
f.async=!0;zh(f,Fo(a));f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||d()};f.onerror=e;(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=Qo(b);if(!d)throw Error("dc`"+b+"`"+a);return d});return BAb[b]=c};
var CAb=function(a){this.loader_=a};CAb.prototype.startFeedback=function(a){yAb(this.loader_,"startFeedback",arguments)};CAb.prototype.requestSurvey=function(a){yAb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};CAb.prototype.presentSurvey=function(a){yAb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var DAb=Go("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");zAb(DAb,"help.service.Lazy.create").thenCatch(function(){});
var iH=function(){this.roundCorners=this.showDividers=!1};iH.\u0275fac=function(a){return new (a||iH)};
iH.\u0275cmp=w({type:iH,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&pe("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ae(),Be(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap}.show-dividers[_nghost-%COMP%]     button.gmat-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-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-button:not(:last-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:last-child) button.gmat-button{margin-right:-1px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:not(:first-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:first-child) button.gmat-button{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:hover{z-index:2}[_nghost-%COMP%]:not(.round-corners)     button.gmat-button:focus{z-index:3}\n/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});
var EAb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Qpa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Spa={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},gra={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},FAb={TEXT:"TEXT",DATE:"DATE",ENUM:"ENUM",NUMERIC:"NUMERIC",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",
REPEATED_NUMERIC:"REPEATED_NUMERIC"},gqa={1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},lqa={TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},Mqa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},Xqa={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,ABUSE:2,PII:3,RETENTION:4},sna={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Cna={COMFORTABLE:1,COZY:2,COMPACT:3},
esa={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD"},iqa={0:"UNKNOWN",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},mqa={UNKNOWN:0,SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},jj={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},xj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},rna={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Bna={DEFAULT:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},zVa=
{0:"ISSUE_LABEL_FIELD_UNSPECIFIED",1:"ID",2:"BLOCKING_ID",3:"BLOCKED_BY_ID",4:"CANONICAL_ID",5:"PARENT_ID",6:"INCOMING_DEPENDENCY_ID",7:"LINKED_ID",8:"HOTLIST_ID",9:"SAVED_SEARCH_ID",10:"COMPONENT_ID",11:"TEAM_ID",12:"REPORTER",13:"ASSIGNEE",14:"CC",15:"VERIFIER",16:"MODIFIER",17:"LAST_MODIFIER",18:"COMMENTER",19:"LAST_COMMENTER",20:"PRIORITY",21:"SEVERITY",22:"TYPE",23:"STATUS",24:"DELETION_REASON",25:"TITLE",26:"COMMENT",27:"ATTACHMENT",28:"CL",29:"POSTMORTEM",30:"FOUND_IN",31:"TARGETED_TO",32:"VERIFIED_IN",
33:"CREATED",34:"MODIFIED",35:"RESOLVED",36:"VERIFIED",37:"DELETION_TIME",38:"IN_PROD",39:"STAR",40:"MUTE",41:"IS_DELETED",42:"CUSTOM_FIELD",43:"DUPLICATE_COUNT",44:"VOTE_COUNT",45:"COMMENT_COUNT",46:"CC_COUNT",47:"ARCHIVED",48:"MIN_SLO_TARGET",49:"EFFORT_LABEL",50:"EFFORT_VALUE",51:"MENTION",52:"VOTE",53:"EFFORT_TOTAL_OPEN",54:"EFFORT_TOTAL_COMPLETE",55:"COLLABORATOR",56:"COLLABORATOR_COUNT",57:"TRACKER_ID"},xra={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},GAb={FIELD_ORDERING_UNSPECIFIED:0,
INHERITED:1,CUSTOMIZED:2},hqa={0:"UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},Ym={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},bm={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},Tta={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},Vta={IMPLICIT_ACCESS_UNSPECIFIED:0,ALLOW:1,DENY:2},Sta={0:"INHERITANCE_UNSPECIFIED",1:"INHERIT_ALL",2:"INHERIT_ADMINS",3:"INHERIT_NOTHING"},Uta={INHERITANCE_UNSPECIFIED:0,INHERIT_ALL:1,INHERIT_ADMINS:2,INHERIT_NOTHING:3},Dj=
{ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",
FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",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"},yna={1:Dj.ISSUE_ID,2:Dj.COMPONENT_PATH,3:Dj.TYPE,4:Dj.STATUS,5:Dj.PRIORITY,6:Dj.SEVERITY,7:Dj.REPORTER,8:Dj.ASSIGNEE,9:Dj.VERIFIER,10:Dj.CC,43:Dj.COLLABORATOR,11:Dj.CHANGELIST,32:Dj.POSTMORTEM,12:Dj.BLOCKING_ISSUE_ID,13:Dj.BLOCKED_BY_ISSUE_ID,14:Dj.CREATED_TIME,15:Dj.MODIFIED_TIME,16:Dj.RESOLVED_TIME,17:Dj.VERIFIED_TIME,38:Dj.DELETION_TIME,18:Dj.TITLE,19:Dj.FOUND_IN_VERSION,
20:Dj.TARGETED_TO_VERSION,21:Dj.VERIFIED_IN_VERSION,22:Dj.IN_PROD,23:Dj.CANONICAL_ISSUE_ID,24:Dj.CUSTOM_FIELD,25:Dj.POSITION,26:Dj.VOTE_COUNT,27:Dj.DUPLICATE_COUNT,28:Dj.CC_COUNT,44:Dj.COLLABORATOR_COUNT,29:Dj.MODIFIED_BY,30:Dj.LAST_MODIFIER,31:Dj.ARCHIVED,33:Dj.MIN_SLO,35:Dj.ASSIGNMENT_SLO,36:Dj.RESPONSE_SLO,37:Dj.CLOSURE_SLO,39:Dj.TEAM,40:Dj.ESTIMATE,41:Dj.ESTIMATE_TOTAL_OPEN,42:Dj.ESTIMATE_TOTAL_COMPLETE},Ina={ISSUE_ID:1,COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,
VERIFIER:9,CC:10,COLLABORATOR:43,CHANGELIST:11,POSTMORTEM:32,BLOCKING_ISSUE_ID:12,BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,CANONICAL_ISSUE_ID:23,CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,COLLABORATOR_COUNT:44,MODIFIED_BY:29,LAST_MODIFIER:30,ARCHIVED:31,MIN_SLO:33,ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,
ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42},nra={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},Nqa={0:"TYPE_UNSPECIFIED",1:"BUG",2:"FEATURE_REQUEST",3:"CUSTOMER_ISSUE",4:"INTERNAL_CLEANUP",5:"PROCESS",6:"VULNERABILITY",7:"PRIVACY_ISSUE",8:"PROJECT",9:"FEATURE",10:"MILESTONE",11:"EPIC",12:"STORY",13:"TASK"},Sqa={TYPE_UNSPECIFIED:0,BUG:1,FEATURE_REQUEST:2,CUSTOMER_ISSUE:3,INTERNAL_CLEANUP:4,PROCESS:5,VULNERABILITY:6,PRIVACY_ISSUE:7,PROJECT:8,FEATURE:9,
MILESTONE:10,EPIC:11,STORY:12,TASK:13},yVa={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},HAb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},isa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},jra={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,
SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},AVa={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},acb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},yqa={0:"PII_SEVERITY_UNSPECIFIED",1:"NONE_DETECTED",2:"PII",3:"SPII"},Vqa={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3},Oqa={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Tqa={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},csa={0:"UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},
dta={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},IAb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},JAb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},Zl={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Wqa={RETENTION_UNSPECIFIED:0,COMPONENT_DEFAULT:1,INDEFINITE:2},KAb={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},
vra={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},wqa={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},Pqa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Uqa={SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5},uVa={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"},
$bb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},wra={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Bqa={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},$pa={0:"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"},bqa={UNSPECIFIED:0,REPORTER:1,ASSIGNEE:2,VERIFIER:3,CC:4,TYPE:5,STATUS:6,
PRIORITY:7,SEVERITY:8,CHANGELISTS:9,PENDING_CHANGELISTS:10,POSTMORTEMS:11,FOUND_IN:12,TARGETED_TO:13,VERIFIED_IN:14,IN_PRODUCTION:15,SLO_STATUS:16,TEAM:17},Qqa={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"},am={STATUS_UNSPECIFIED:0,NEW:1,ASSIGNED:2,ACCEPTED:3,FIXED:4,VERIFIED:5,NOT_REPRODUCIBLE:6,INTENDED_BEHAVIOR:7,OBSOLETE:8,INFEASIBLE:9,DUPLICATE:10},dsa={0:"ACTIVE",1:"DELETED",
2:"PURGED"},hua={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Vsa={0:"UNKNOWN",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",33:"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:"DUPLICATE_OF_ISSUE_ID",
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",32:"CANONICAL_ISSUE_ID",34:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE"},Xsa={UNKNOWN:0,ISSUE_ID:1,COMPONENT_PATH:2,TYPE:3,STATUS:4,PRIORITY:5,SEVERITY:6,REPORTER:7,ASSIGNEE:8,VERIFIER:9,CC:10,COLLABORATOR:43,CHANGELIST:11,POSTMORTEM:33,BLOCKING_ISSUE_ID:12,
BLOCKED_BY_ISSUE_ID:13,CREATED_TIME:14,MODIFIED_TIME:15,RESOLVED_TIME:16,VERIFIED_TIME:17,DELETION_TIME:38,TITLE:18,FOUND_IN_VERSION:19,TARGETED_TO_VERSION:20,VERIFIED_IN_VERSION:21,IN_PROD:22,DUPLICATE_OF_ISSUE_ID:23,CUSTOM_FIELD:24,POSITION:25,VOTE_COUNT:26,DUPLICATE_COUNT:27,CC_COUNT:28,COLLABORATOR_COUNT:44,MODIFIED_BY:29,LAST_MODIFIER:30,ARCHIVED:31,CANONICAL_ISSUE_ID:32,MIN_SLO:34,ASSIGNMENT_SLO:35,RESPONSE_SLO:36,CLOSURE_SLO:37,TEAM:39,ESTIMATE:40,ESTIMATE_TOTAL_OPEN:41,ESTIMATE_TOTAL_COMPLETE:42},
CVa={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Jqa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Kqa={UNSPECIFIED:0,ACTIVE:1,DELETED:2,UNAVAILABLE:3},wVa={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"};
var Sma=Object.prototype.hasOwnProperty,LAb=function(a){return["google","corp","devops","tools"].reduce(function(b,c){b=void 0===b?{}:b;return null==b[c]?void 0:b[c]},a)},MAb=function(){var a=void 0===a?window:a;var b=void 0===b?5E3:b;var c=100;return new Promise(function(d,e){function f(){var h=LAb(a);null!=h?d(h):(setTimeout(f,c),c*=2)}f();setTimeout(function(){var h=LAb(a);null!=h?d(h):e("timeout: "+b)},b)})};
var Wi=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Wi.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};Wi.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Wi.prototype.toString=function(){return this.toApiUrlParam()};
var $i=function(a,b){this.fieldId=a;this.direction=b};$i.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};$i.prototype.toString=function(){return this.toApiUrlParam()};
var qj=function(a){Z.call(this,a)};U(qj,Z);qj.prototype.toObject=function(){return NAb(this)};var NAb=function(a){if(null!=a)return{announcementDismissed:n(Xo(a,2)),enableBugScreensaver:n(Xo(a,1))}};
var PAb=function(a){Z.call(this,a,-1,OAb)};U(PAb,Z);var OAb=[1];PAb.prototype.toObject=function(){return QAb(this)};var QAb=function(a){if(null!=a)return{recentComponentIdList:n(lb(a,1))}};
var zj=function(a){Z.call(this,a)};U(zj,Z);zj.prototype.getTimeZone=function(){return V(this,5)};zj.prototype.setTimeZone=function(a){return l(this,5,a)};zj.prototype.hasTimeZone=function(){return gj(this,5)};zj.prototype.toObject=function(){return RAb(this)};var RAb=function(a){if(null!=a)return{calendarFormat:n(p(a,1)),timeFormat:n(p(a,2)),calendarTimeFormat:n(p(a,3)),fullCalendarTimeFormat:n(p(a,4)),timeZone:n(p(a,5)),timeZoneOffset:n(p(a,6)),sloEtaViewAs:n(p(a,7))}};
var Cj=function(a){Z.call(this,a)};U(Cj,Z);g=Cj.prototype;g.getType=function(){return Y(this,1,1)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getCustomFieldId=function(){return hj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return gj(this,2)};g.toObject=function(){return SAb(void 0,this)};var SAb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Bj=function(a){Z.call(this,a,-1,TAb)};U(Bj,Z);Bj.prototype.getColumnList=function(){return tb(this,Cj,1)};Bj.prototype.setColumnList=function(a){return Cb(this,1,a)};var TAb=[1];Bj.prototype.toObject=function(){return UAb(this)};var UAb=function(a){if(null!=a)return{columnList:Eb(a.getColumnList(),SAb)}};
var yj=function(a){Z.call(this,a)};U(yj,Z);yj.prototype.toObject=function(){return VAb(this)};var VAb=function(a){if(null!=a)return{leftSidebarWidth:n(p(a,1)),expandIssueSlo:n(Xo(a,2)),rightSidebarWidth:n(p(a,3))}};
var kj=function(a){Z.call(this,a)};U(kj,Z);kj.prototype.toObject=function(){return WAb(this)};var WAb=function(a){if(null!=a)return{showHotlists:n(Xo(a,1)),wrapTitles:n(Xo(a,2)),wrapComponents:n(Xo(a,3)),showStatusIcons:n(Xo(a,4)),rtlComponentPath:n(Xo(a,5))}};
var Fj=function(a){Z.call(this,a)};U(Fj,Z);Fj.prototype.getColumn=function(){return m(this,Cj,1)};Fj.prototype.setColumn=function(a){return Db(this,1,a)};Fj.prototype.toObject=function(){return XAb(void 0,this)};var XAb=function(a,b){if(null!=b){var c={column:SAb(a,b.getColumn()),order:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Ej=function(a){Z.call(this,a,-1,YAb)};U(Ej,Z);Ej.prototype.getColumnList=function(){return tb(this,Fj,1)};Ej.prototype.setColumnList=function(a){return Cb(this,1,a)};var YAb=[1];Ej.prototype.toObject=function(){return ZAb(this)};var ZAb=function(a){if(null!=a)return{columnList:Eb(a.getColumnList(),XAb)}};
var lj=function(a){Z.call(this,a)};U(lj,Z);lj.prototype.getDensity=function(){return Y(this,1,1)};lj.prototype.setDensity=function(a){return l(this,1,a)};lj.prototype.toObject=function(){return $Ab(this)};var $Ab=function(a){if(null!=a)return{density:n(p(a,1))}};
var rj=function(a){Z.call(this,a)};U(rj,Z);rj.prototype.toObject=function(){return aBb(this)};var aBb=function(a){if(null!=a)return{announcementDismissedMillis:n(p(a,1))}};
var Aj=function(a){Z.call(this,a)};U(Aj,Z);g=Aj.prototype;g.getResourceType=function(){return Y(this,1,1)};g.setResourceType=function(a){l(this,1,a)};g.hasResourceType=function(){return gj(this,1)};g.getResourceId=function(){return nj(this,2)};g.setResourceId=function(a){l(this,2,a)};g.hasResourceId=function(){return gj(this,2)};g.toObject=function(){return bBb(this)};var bBb=function(a){if(null!=a)return{resourceType:n(p(a,1)),resourceId:n(p(a,2))}};
var mj=function(a){Z.call(this,a)};U(mj,Z);mj.prototype.toObject=function(){return cBb(this)};var cBb=function(a){if(null!=a)return{enableAllHotkeys:W(a,1,!0)}};
var sj=function(a){Z.call(this,a)};U(sj,Z);sj.prototype.toObject=function(){return dBb(this)};var dBb=function(a){if(null!=a)return{enableNewIssueDetailsPage:n(Xo(a,1)),onboardingDialogAcknowledgedMillis:n(p(a,2)),newIdpOptOut:n(Xo(a,3))}};
var ij=function(a){Z.call(this,a)};U(ij,Z);ij.prototype.toObject=function(){return eBb(this)};var eBb=function(a){if(null!=a)return{reportedPriority:n(p(a,1)),assignedPriority:n(p(a,2)),verifiedPriority:n(p(a,3)),ccdPriority:n(p(a,4)),starredPriority:n(p(a,5)),excludeChangesByMe:n(Xo(a,6)),unsubscribeFromAll:n(Xo(a,7)),enableV2Prefs:n(Xo(a,8))}};
var gBb=function(a){Z.call(this,a,-1,fBb)};U(gBb,Z);var fBb=[1];gBb.prototype.toObject=function(){return hBb(this)};var hBb=function(a){if(null!=a)return{hiddenSavedSearchList:n(lb(a,1))}};
var uj=function(a){Z.call(this,a)};U(uj,Z);uj.prototype.getComponentId=function(){return hj(this,1)};uj.prototype.setComponentId=function(a){return l(this,1,a)};uj.prototype.hasComponentId=function(){return gj(this,1)};uj.prototype.toObject=function(){return iBb(void 0,this)};var iBb=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),dismissMillis:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var tj=function(a){Z.call(this,a,-1,jBb)};U(tj,Z);var Jna=function(a,b){Cb(a,1,b)},jBb=[1];tj.prototype.toObject=function(){return kBb(this)};var kBb=function(a){if(null!=a)return{componentTeamWarningsList:Eb(tb(a,uj,1),iBb)}};
var pj=function(a){Z.call(this,a)};U(pj,Z);pj.prototype.getCommentDisplayOverride=function(){return Y(this,2,0)};pj.prototype.setCommentDisplayOverride=function(a){l(this,2,a)};pj.prototype.toObject=function(){return lBb(this)};var lBb=function(a){if(null!=a)return{lastPublishMode:n(p(a,1)),commentDisplayOverride:n(p(a,2))}};
var jH=function(a){Z.call(this,a)};U(jH,Z);jH.prototype.getValue=function(){return W(this,1)};jH.prototype.setValue=function(a){return qo(this,1,a)};jH.prototype.toObject=function(){return mBb(this)};var mBb=function(a){if(null!=a)return{value:W(a,1)}};
var wj=function(a){Z.call(this,a)};U(wj,Z);g=wj.prototype;g.getDisplayColumns=function(){return m(this,Bj,4)};g.getSortColumns=function(){return m(this,Ej,6)};g.getLayoutPreferences=function(){return m(this,yj,10)};g.getDateTimePreferences=function(){return m(this,zj,11)};g.getHomepagePreferences=function(){return m(this,Aj,13)};g.clearHomepagePreferences=function(){return Db(this,13)};g.toObject=function(){return nBb(this)};
var nBb=function(a){if(null!=a)return{showFullHistory:n(Xo(a,1)),useCodefont:n(Xo(a,2)),notificationPreferences:eBb(m(a,ij,3)),displayColumns:UAb(a.getDisplayColumns()),resultsPerPage:n(p(a,5)),sortColumns:ZAb(a.getSortColumns()),bannerMessageId:n(p(a,7)),themePreferences:$Ab(m(a,lj,8)),listViewPreferences:WAb(m(a,kj,9)),layoutPreferences:VAb(a.getLayoutPreferences()),dateTimePreferences:RAb(a.getDateTimePreferences()),sidebarPreferences:hBb(m(a,gBb,12)),homepagePreferences:bBb(a.getHomepagePreferences()),
componentPreferences:QAb(m(a,PAb,14)),keyboardPreferences:cBb(m(a,mj,17)),termsAcknowledgedMillis:n(p(a,15)),newFeaturesAcknowledgedMillis:n(p(a,16)),autoCcOnComment:n(Xo(a,18)),enableMaterialStyles:mBb(m(a,jH,19)),textDisplayPreferences:lBb(m(a,pj,20)),bugScreensaverPreferences:NAb(m(a,qj,21)),newIssueDetailsPagePreferences:dBb(m(a,sj,22)),teamWarningPreferences:kBb(m(a,tj,23)),g3nPreferences:aBb(m(a,rj,24)),dismissalTimestampsMap:Gb(bj(a,25,vj),void 0,Zu),showRecentEventsFirst:n(Xo(a,26)),collapsedMap:Gb(bj(a,
27))}};
var kH=function(a){Z.call(this,a,-1,oBb)};U(kH,Z);g=kH.prototype;g.getAppName=function(){return V(this,2)};g.getDocumentationBaseUrl=function(){return V(this,3)};g.getEnvironmentType=function(){return V(this,5)};g.getMaxAccurateSearchResults=function(){return hj(this,6)};g.getOnePickUrl=function(){return V(this,7)};g.getOnePickSecretToken=function(){return V(this,12)};g.getCommentNumberLimit=function(){return hj(this,8)};g.getCreateComponentRedirectDelay=function(){return Cl(this,9)};
var oBb=[10,13,14,15];kH.prototype.toObject=function(){return pBb(this)};
var pBb=function(a){if(null!=a)return{analyticsId:n(p(a,1)),appName:n(p(a,2)),documentationBaseUrl:n(p(a,3)),enabledFlagsMap:Gb(bj(a,4)),environmentType:n(p(a,5)),maxAccurateSearchResults:n(p(a,6)),onePickUrl:n(p(a,7)),onePickSecretToken:n(p(a,12)),commentNumberLimit:n(p(a,8)),createComponentRedirectDelay:n(yu(a,9)),whitelistedWhitelistDomainPartnerComponentIdsList:n(lb(a,10)),isDogfooder:n(Xo(a,11)),createRestrictedSubresourcesComponentWhitelistList:n(lb(a,13)),componentAllowlistList:n(lb(a,14)),
componentDenylistList:n(lb(a,15))}};
var qBb=function(a){Z.call(this,a)};U(qBb,Z);g=qBb.prototype;g.getEmail=function(){return V(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return gj(this,1)};g.getSessionIdentifier=function(){return V(this,3)};g.toObject=function(){return rBb(this)};var rBb=function(a){if(null!=a)return{anonymous:n(Xo(a,4)),email:n(p(a,1)),sessionIdentifier:n(p(a,3))}};
var lH=function(a){Z.call(this,a,-1,sBb)};U(lH,Z);lH.prototype.getId=function(){return p(this,1)};lH.prototype.setId=function(a){return l(this,1,a)};var sBb=[2,4];lH.prototype.toObject=function(){return tBb(void 0,this)};var tBb=function(a,b){if(null!=b){var c={id:n(p(b,1)),namesList:n(lb(b,2)),stdOffset:n(p(b,3)),transitionsList:n(lb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};lH.messageId="b.TimeZoneData";
var mH=function(a){Z.call(this,a,-1,uBb)};U(mH,Z);mH.prototype.getMessage=function(){return V(this,1)};var uBb=[4];mH.prototype.toObject=function(){return vBb(this)};var vBb=function(a){if(null!=a)return{message:n(p(a,1)),messageId:n(p(a,2)),dismissible:n(Xo(a,3)),tagsList:n(lb(a,4))}};mH.messageId="b.Announcement";
var nH=function(a){Z.call(this,a,-1,wBb)};U(nH,Z);var wBb=[1];nH.prototype.toObject=function(){return xBb(this)};var xBb=function(a){if(null!=a)return{timezonesList:Eb(tb(a,lH,1),tBb),announcement:vBb(m(a,mH,2))}};
var Pn=function(a){Z.call(this,a)};U(Pn,Z);Pn.prototype.getLogoUrl=function(){return V(this,1)};Pn.prototype.getTheme=function(){return Y(this,2,0)};Pn.prototype.setTheme=function(a){return l(this,2,a)};Pn.prototype.toObject=function(){return yBb(void 0,this)};var yBb=function(a,b){if(null!=b){var c={logoUrl:n(p(b,1)),theme:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};Pn.messageId="b.Branding";
var oH=function(a){Z.call(this,a,-1,zBb)};U(oH,Z);g=oH.prototype;g.getTrackerId=function(){return nj(this,1)};g.setTrackerId=function(a){l(this,1,a)};g.getComponentId=function(){return nj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return gj(this,2)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};var zBb=[4];oH.prototype.toObject=function(){return ABb(void 0,this)};
var ABb=function(a,b){if(null!=b){var c={trackerId:n(p(b,1)),componentId:n(p(b,2)),name:n(p(b,3)),associatedTrackerIdsList:n(lb(b,4)),branding:yBb(a,m(b,Pn,5))};a&&(c.$jspbMessageInstance=b);return c}};oH.messageId="b.Tracker";
var ina=function(a){Z.call(this,a)};U(ina,Z);g=ina.prototype;g.getUser=function(){return m(this,qBb,1)};g.setUser=function(a){Db(this,1,a)};g.getConfig=function(){return m(this,kH,2)};g.setConfig=function(a){return Db(this,2,a)};g.getXsrfToken=function(){return V(this,3)};g.getCspNonce=function(){return V(this,8)};g.getUserPreferences=function(){return m(this,wj,7)};
g.toObject=function(){var a=null!=this?{user:rBb(this.getUser()),config:pBb(this.getConfig()),xsrfToken:n(p(this,3)),cspNonce:n(p(this,8)),frontendAccessMode:n(p(this,4)),mustAcknowledgeTerms:n(Xo(this,5)),showNewFeaturesDialog:n(Xo(this,6)),userPreferences:nBb(this.getUserPreferences()),preload:xBb(m(this,nH,9)),appBaseHref:n(p(this,10)),tracker:ABb(void 0,m(this,oH,11))}:void 0;return a};
var hna=window,gna;
var ej={COMMENT_FORMATTING_MODE_UNSPECIFIED:0,PLAIN_FORMATTING_MODE:1,MARKDOWN_FORMATTING_MODE:2,LITERAL_FORMATTING_MODE:3,0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},BBb={},CBb=(BBb[3]="LITERAL_FORMATTING_MODE",BBb[1]="PLAIN_FORMATTING_MODE",BBb[2]="MARKDOWN_FORMATTING_MODE",BBb),DBb=CBb[2],EBb=CBb[1],pH={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:void 0,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",
assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,
resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},textDisplayPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},newIssueDetailsPagePreferences:{enableNewIssueDetailsPage:!1},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1};
var qH=function(){this.session=aj();this.user=this.session.getUser()||new qBb;this.config=this.session.getConfig()||new kH;this.userPreferences=xna(aj().getUserPreferences()||new wj);this.frontendAccessMode=V(this.session,4)||"INTERNAL";this.mustAcknowledgeTerms=W(this.session,5);this.showNewFeaturesDialog=W(this.session,6);this.appBaseHref=V(this.session,10)};qH.prototype.isExternalSession=function(){return"INTERNAL"!==this.frontendAccessMode};
qH.prototype.isInternalSession=function(){return"INTERNAL"===this.frontendAccessMode};var rH=function(a){return"PARTNER"===a.frontendAccessMode},sH=function(a,b){return!!bj(a.config,4).get(b)};qH.prototype.isAnonymous=function(){return W(this.user,4)||!1};qH.prototype.getUserEmail=function(){return this.user.getEmail()||""};qH.prototype.getSessionIdentifier=function(){return this.user.getSessionIdentifier()||"0"};
qH.prototype.getEnvironmentType=function(){return this.config.getEnvironmentType()||"QA"};var FBb=function(a){a=a.getEnvironmentType();switch(a){case "QA":return!1;case "NIGHTLY":case "PROD":return!0;default:ph(a,"Unknown environment type.")}},Ls=function(a,b){return(void 0===b?0:b)||!a.isInternalSession()?FBb(a)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":FBb(a)?"http://b/":"http://b-qa/"};g=qH.prototype;
g.getOnePickUrl=function(){return this.config.getOnePickUrl()||""};g.getAppName=function(){return this.config.getAppName()||""};g.getCommentNumberLimit=function(){return this.config.getCommentNumberLimit()};g.getCreateComponentRedirectDelay=function(){return this.config.getCreateComponentRedirectDelay()};g.getDocumentationBaseUrl=function(){return this.config.getDocumentationBaseUrl()};g.getMaxAccurateSearchResults=function(){return this.config.getMaxAccurateSearchResults()};
g.getUserPreferences=function(){return this.userPreferences};g.getXsrfToken=function(){return this.session.getXsrfToken()};g.getOnePickSecretToken=function(){return this.config.getOnePickSecretToken()};g.getCspNonce=function(){return this.session.getCspNonce()};qH.\u0275fac=function(a){return new (a||qH)};qH.\u0275prov=hc({token:qH,factory:qH.\u0275fac,providedIn:"root"});
var GBb=function(a,b){return[a,b]},tH=function(){this.size=this.name=""};tH.prototype.ngOnInit=function(){};tH.\u0275fac=function(a){return new (a||tH)};
tH.\u0275cmp=w({type:tH,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&H(0,"mat-icon",0);a&2&&E("svgIcon",b.name)("ngClass",Me(2,GBb,b.name,b.size))},dependencies:[Jx,hF],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%]{height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});
var a8a=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},HBb=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":return a;default:return null}},IBb=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},
JBb=function(a){switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "DUPLICATE":return a;default:return null}},KBb=function(a){return Pk(a.replace(/_/g," ").toLowerCase())};
var LBb=function(a){return function(b){return Hj(b,a)}};
var MBb=function(a){Z.call(this,a)};U(MBb,Z);MBb.prototype.getBlobRef=function(){return Jm(this,2)};MBb.prototype.toObject=function(){return NBb(void 0,this)};var NBb=function(a,b){if(null!=b){var c={resourceName:V(b,1),blobRef:Hb(b.getBlobRef())};a&&(c.$jspbMessageInstance=b);return c}};
var uH=function(a){Z.call(this,a)};U(uH,Z);uH.prototype.getSeverity=function(){return Y(this,1,0)};uH.prototype.setSeverity=function(a){return vl(this,1,a)};uH.prototype.toObject=function(){return OBb(void 0,this)};var OBb=function(a,b){if(null!=b){var c={severity:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var PBb=function(a){Z.call(this,a)};U(PBb,Z);PBb.prototype.toObject=function(){return QBb(void 0,this)};var QBb=function(a,b){if(null!=b){var c={restrictionVerdict:OBb(a,m(b,uH,1))};a&&(c.$jspbMessageInstance=b);return c}};
var vH=function(a){Z.call(this,a)};U(vH,Z);vH.prototype.getStatus=function(){return Y(this,1,0)};vH.prototype.setStatus=function(a){return vl(this,1,a)};vH.prototype.setReason=function(a){vl(this,2,a)};vH.prototype.toObject=function(){return RBb(void 0,this)};var RBb=function(a,b){if(null!=b){var c={status:Y(b,1,0),reason:Y(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var wH=function(a){Z.call(this,a)};U(wH,Z);g=wH.prototype;g.getRetentionPeriod=function(){return m(this,mm,1)};g.setRetentionPeriod=function(a){Db(this,1,a)};g.hasRetentionPeriod=function(){return oj(this,1)};g.getScheduledDeletionTime=function(){return m(this,vj,2)};g.setScheduledDeletionTime=function(a){Db(this,2,a)};g.hasScheduledDeletionTime=function(){return oj(this,2)};g.toObject=function(){return SBb(void 0,this)};
var SBb=function(a,b){if(null!=b){var c={retentionPeriod:Tu(a,b.getRetentionPeriod()),scheduledDeletionTime:Zu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};
var TBb=function(a){Z.call(this,a)};U(TBb,Z);g=TBb.prototype;g.getAttachmentId=function(){return hj(this,1)};g.setAttachmentId=function(a){Xk(this,1,a)};g.getFilename=function(){return V(this,4)};g.setFilename=function(a){yl(this,4,a)};g.getEntityStatus=function(){return m(this,vH,6)};g.getEtag=function(){return Jm(this,7)};g.setEtag=function(a){Au(this,7,a)};g.getContentVerdict=function(){return m(this,PBb,10)};g.getRestrictedRetentionState=function(){return m(this,wH,11)};
g.toObject=function(){return UBb(void 0,this)};var UBb=function(a,b){if(null!=b){var c={attachmentId:hj(b,1),contentType:V(b,2),length:hj(b,3),filename:V(b,4),attachmentDataRef:NBb(a,m(b,MBb,5)),entityStatus:RBb(a,b.getEntityStatus()),etag:Hb(b.getEtag()),contentVerdict:QBb(a,b.getContentVerdict()),restrictedRetentionState:SBb(a,b.getRestrictedRetentionState()),restrictedRetention:Y(b,12,0)};a&&(c.$jspbMessageInstance=b);return c}};
var xH=function(a){Z.call(this,a)};U(xH,Z);g=xH.prototype;g.getValueCase=function(){return rb(this,yH)};g.getCustomFieldId=function(){return hj(this,1)};g.setCustomFieldId=function(a){return Xk(this,1,a)};g.setTextValue=function(a){ho(this,2,yH,a)};g.getDateValue=function(){return Bl(this,Wk,3,yH)};g.setDateValue=function(a){Cu(this,3,yH,a)};g.setEnumValue=function(a){ho(this,4,yH,a)};g.setNumericValue=function(a){ho(this,5,yH,a)};g.getRepeatedTextValue=function(){return Bl(this,zH,6,yH)};
g.setRepeatedTextValue=function(a){Cu(this,6,yH,a)};g.getRepeatedDateValue=function(){return Bl(this,AH,7,yH)};g.setRepeatedDateValue=function(a){Cu(this,7,yH,a)};g.getRepeatedEnumValue=function(){return Bl(this,zH,8,yH)};g.setRepeatedEnumValue=function(a){Cu(this,8,yH,a)};g.getRepeatedNumericValue=function(){return Bl(this,BH,9,yH)};g.setRepeatedNumericValue=function(a){Cu(this,9,yH,a)};g.getDisplayString=function(){return V(this,10)};var zH=function(a){Z.call(this,a,-1,VBb)};U(zH,Z);
zH.prototype.getValuesList=function(){return lb(this,1)};zH.prototype.setValuesList=function(a){ml(this,1,a)};var AH=function(a){Z.call(this,a,-1,WBb)};U(AH,Z);AH.prototype.getValuesList=function(){return tb(this,Wk,1)};AH.prototype.setValuesList=function(a){Cb(this,1,a)};var BH=function(a){Z.call(this,a,-1,XBb)};U(BH,Z);BH.prototype.getValuesList=function(){return mb(this,1,Number)};BH.prototype.setValuesList=function(a){ml(this,1,a)};var yH=[2,3,4,5,6,7,8,9];
xH.prototype.toObject=function(){return YBb(void 0,this)};
var YBb=function(a,b){if(null!=b){var c={customFieldId:hj(b,1),textValue:n(Ur(b,2,yH)),dateValue:Lv(a,b.getDateValue()),enumValue:n(Ur(b,4,yH)),numericValue:n(yu(b,sb(b,yH,5))),repeatedTextValue:ZBb(a,b.getRepeatedTextValue()),repeatedDateValue:$Bb(a,b.getRepeatedDateValue()),repeatedEnumValue:ZBb(a,b.getRepeatedEnumValue()),repeatedNumericValue:aCb(a,b.getRepeatedNumericValue()),displayString:V(b,10)};a&&(c.$jspbMessageInstance=b);return c}},VBb=[1];
zH.prototype.toObject=function(){return ZBb(void 0,this)};var ZBb=function(a,b){if(null!=b){var c={valuesList:n(lb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},WBb=[1];AH.prototype.toObject=function(){return $Bb(void 0,this)};var $Bb=function(a,b){if(null!=b){var c={valuesList:Eb(b.getValuesList(),Lv,a)};a&&(c.$jspbMessageInstance=b);return c}},XBb=[1];BH.prototype.toObject=function(){return aCb(void 0,this)};
var aCb=function(a,b){if(null!=b){var c={valuesList:n(mb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var cCb=function(a){Z.call(this,a,-1,bCb)};U(cCb,Z);g=cCb.prototype;g.getCustomFieldId=function(){return hj(this,1)};g.setCustomFieldId=function(a){return Xk(this,1,a)};g.getComponentId=function(){return hj(this,2)};g.setComponentId=function(a){return Xk(this,2,a)};g.getType=function(){return Y(this,3,0)};g.setType=function(a){return vl(this,3,a)};g.setRequired=function(a){qo(this,4,a)};g.getName=function(){return V(this,5)};g.setName=function(a){return yl(this,5,a)};
g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return yl(this,6,a)};g.getTypedDefaultValue=function(){return m(this,xH,10)};g.setTypedDefaultValue=function(a){Db(this,10,a)};g.setFieldSignificance=function(a){return vl(this,9,a)};var bCb=[8];cCb.prototype.toObject=function(){return dCb(void 0,this)};
var dCb=function(a,b){if(null!=b){var c={customFieldId:hj(b,1),componentId:hj(b,2),type:Y(b,3,0),required:W(b,4),name:V(b,5),description:V(b,6),defaultValue:V(b,7),typedDefaultValue:YBb(a,b.getTypedDefaultValue()),enumValuesList:n(lb(b,8)),fieldSignificance:Y(b,9,0)};a&&(c.$jspbMessageInstance=b);return c}};
var CH=function(a){Z.call(this,a)};U(CH,Z);CH.prototype.getCustomFieldId=function(){return hj(this,sb(this,DH,1))};CH.prototype.setCustomFieldId=function(a){return ho(this,1,DH,a)};CH.prototype.hasCustomFieldId=function(){return 1===rb(this,DH)};CH.prototype.setStandardField=function(a){ho(this,2,DH,a)};var DH=[1,2];CH.prototype.toObject=function(){return eCb(void 0,this)};
var eCb=function(a,b){if(null!=b){var c={customFieldId:n(Ur(b,1,DH)),standardField:n(Ur(b,2,DH))};a&&(c.$jspbMessageInstance=b);return c}};
var Tm=function(a){Z.call(this,a)};U(Tm,Z);Tm.prototype.toObject=function(){return EH(void 0,this)};var EH=function(a,b){if(null!=b){var c={privateDoNotAccessOrElseSafeHtmlWrappedValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var FH=function(a){Z.call(this,a)};U(FH,Z);FH.prototype.getContent=function(){return m(this,Tm,1)};FH.prototype.setContent=function(a){Db(this,1,a)};FH.prototype.hasContent=function(){return oj(this,1)};FH.prototype.toObject=function(){return fCb(void 0,this)};var fCb=function(a,b){if(null!=b){var c={content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var GH=function(a){Z.call(this,a)};U(GH,Z);GH.prototype.getContent=function(){return m(this,Tm,1)};GH.prototype.setContent=function(a){Db(this,1,a)};GH.prototype.hasContent=function(){return oj(this,1)};GH.prototype.toObject=function(){return gCb(void 0,this)};var gCb=function(a,b){if(null!=b){var c={content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var hCb=function(a){Z.call(this,a)};U(hCb,Z);g=hCb.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Tm,2)};g.setContent=function(a){Db(this,2,a)};g.hasContent=function(){return oj(this,2)};g.toObject=function(){return iCb(void 0,this)};var iCb=function(a,b){if(null!=b){var c={isQuoted:W(b,1),content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var HH=function(a){Z.call(this,a,-1,jCb)};U(HH,Z);HH.prototype.getPlainSectionList=function(){return tb(this,hCb,1)};HH.prototype.addPlainSection=function(a){Du(this,1,hCb,a)};var jCb=[1];HH.prototype.toObject=function(){return kCb(void 0,this)};var kCb=function(a,b){if(null!=b){var c={plainSectionList:Eb(b.getPlainSectionList(),iCb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var lCb=function(a){Z.call(this,a)};U(lCb,Z);g=lCb.prototype;g.getKindCase=function(){return rb(this,IH)};g.getPlainFormat=function(){return Bl(this,HH,1,IH)};g.setPlainFormat=function(a){Cu(this,1,IH,a)};g.hasPlainFormat=function(){return zl(this,1,IH)};g.getMarkdownFormat=function(){return Bl(this,GH,2,IH)};g.setMarkdownFormat=function(a){Cu(this,2,IH,a)};g.hasMarkdownFormat=function(){return zl(this,2,IH)};g.getLiteralFormat=function(){return Bl(this,FH,3,IH)};
g.setLiteralFormat=function(a){Cu(this,3,IH,a)};g.hasLiteralFormat=function(){return zl(this,3,IH)};var IH=[1,2,3];lCb.prototype.toObject=function(){return mCb(void 0,this)};var mCb=function(a,b){if(null!=b){var c={plainFormat:kCb(a,b.getPlainFormat()),markdownFormat:gCb(a,b.getMarkdownFormat()),literalFormat:fCb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var JH=function(a){Z.call(this,a,-1,nCb)};U(JH,Z);g=JH.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){return yl(this,1,a)};g.getObfuscatedEmailAddress=function(){return V(this,2)};g.setObfuscatedEmailAddress=function(a){yl(this,2,a)};g.getUserGaiaStatus=function(){return Y(this,3,0)};g.setUserGaiaStatus=function(a){vl(this,3,a)};g.getAliasesList=function(){return lb(this,4)};g.setAliasesList=function(a){ml(this,4,a)};var nCb=[4];
JH.prototype.toObject=function(){return KH(void 0,this)};var KH=function(a,b){if(null!=b){var c={emailAddress:V(b,1),obfuscatedEmailAddress:V(b,2),userGaiaStatus:Y(b,3,0),aliasesList:n(lb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var LH=function(a){Z.call(this,a,-1,oCb)};U(LH,Z);LH.prototype.getMentionedUser=function(){return m(this,JH,1)};LH.prototype.getState=function(){return Y(this,2,0)};var oCb=[3];LH.prototype.toObject=function(){return pCb(void 0,this)};var pCb=function(a,b){if(null!=b){var c={mentionedUser:KH(a,b.getMentionedUser()),state:Y(b,2,0),displayEmailList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var rCb=function(a){Z.call(this,a,-1,qCb)};U(rCb,Z);g=rCb.prototype;g.getIssueId=function(){return hj(this,6)};g.setIssueId=function(a){return Xk(this,6,a)};g.getCommentNumber=function(){return hj(this,7)};g.setCommentNumber=function(a){return Xk(this,7,a)};g.getComment=function(){return V(this,1)};g.setComment=function(a){return yl(this,1,a)};g.getFormattedComment=function(){return m(this,lCb,16)};g.getMentionsList=function(){return tb(this,LH,14)};
g.getFormattingMode=function(){return Y(this,9,0)};g.setFormattingMode=function(a){return vl(this,9,a)};g.getAttachmentsList=function(){return tb(this,TBb,2)};g.setAttachmentsList=function(a){Cb(this,2,a)};g.getModifiedTime=function(){return m(this,vj,4)};g.getEntityStatus=function(){return m(this,vH,5)};g.getVersion=function(){return hj(this,8)};g.setVersion=function(a){return Xk(this,8,a)};g.getContentVerdict=function(){return m(this,PBb,10)};
g.getRestrictedRetentionState=function(){return m(this,wH,11)};g.getEtag=function(){return Jm(this,15)};g.setEtag=function(a){Au(this,15,a)};var qCb=[14,2];rCb.prototype.toObject=function(){return sCb(void 0,this)};
var sCb=function(a,b){if(null!=b){var c={issueId:hj(b,6),commentNumber:hj(b,7),comment:V(b,1),formattedComment:mCb(a,b.getFormattedComment()),mentionsList:Eb(b.getMentionsList(),pCb,a),formattingMode:Y(b,9,0),attachmentsList:Eb(b.getAttachmentsList(),UBb,a),lastEditor:KH(a,m(b,JH,3)),modifiedTime:Zu(a,b.getModifiedTime()),entityStatus:RBb(a,b.getEntityStatus()),version:hj(b,8),contentVerdict:QBb(a,b.getContentVerdict()),restrictedRetentionState:SBb(a,b.getRestrictedRetentionState()),restrictedRetention:Y(b,
12,0),redacted:W(b,13),etag:Hb(b.getEtag())};a&&(c.$jspbMessageInstance=b);return c}};
var uCb=function(a){Z.call(this,a,-1,tCb)};U(uCb,Z);uCb.prototype.setNotificationSubscription=function(a){return vl(this,4,a)};var tCb=[3];uCb.prototype.toObject=function(){return vCb(void 0,this)};var vCb=function(a,b){if(null!=b){var c={hasStarred:W(b,1),hasUpvoted:W(b,2),editableCommentNumbersList:n(lb(b,3)),notificationSubscription:Y(b,4,0),lastViewedTime:Zu(a,m(b,vj,5))};a&&(c.$jspbMessageInstance=b);return c}};
var fn=function(a){Z.call(this,a)};U(fn,Z);fn.prototype.getHref=function(){return V(this,1)};fn.prototype.toObject=function(){return wCb(void 0,this)};var wCb=function(a,b){if(null!=b){var c={href:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var en=function(a){Z.call(this,a)};U(en,Z);g=en.prototype;g.getIssueId=function(){return hj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return hj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.toObject=function(){return xCb(void 0,this)};var xCb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentNumber:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var yCb=function(a){Z.call(this,a)};U(yCb,Z);var dn=[1,2];yCb.prototype.toObject=function(){return zCb(void 0,this)};var zCb=function(a,b){if(null!=b){var c={hyperlink:wCb(a,Bl(b,fn,1,dn)),issueReference:xCb(a,Bl(b,en,2,dn))};a&&(c.$jspbMessageInstance=b);return c}};
var BCb=function(a){Z.call(this,a,-1,ACb)};U(BCb,Z);g=BCb.prototype;g.getIssueId=function(){return hj(this,2)};g.setIssueId=function(a){return Xk(this,2,a)};g.getIssueState=function(){return m(this,CCb,3)};g.getAttachmentsList=function(){return tb(this,TBb,18)};g.setAttachmentsList=function(a){Cb(this,18,a)};g.getCreatedTime=function(){return m(this,vj,5)};g.getModifiedTime=function(){return m(this,vj,6)};g.getResolvedTime=function(){return m(this,vj,7)};
g.getVerifiedTime=function(){return m(this,vj,8)};g.getUserData=function(){return m(this,uCb,9)};g.setUserData=function(a){Db(this,9,a)};g.setVoteCount=function(a){Xk(this,10,a)};g.getParentIssueIdsList=function(){return lb(this,37)};g.setParentIssueIdsList=function(a){ml(this,37,a)};g.getAccessLimit=function(){return m(this,LF,11)};g.setAccessLimit=function(a){return Db(this,11,a)};g.getVersion=function(){return hj(this,12)};g.setVersion=function(a){return Xk(this,12,a)};
g.getEtag=function(){return Jm(this,13)};g.setEtag=function(a){Au(this,13,a)};g.getCustomFieldsList=function(){return tb(this,cCb,15)};g.getVisibleFieldsList=function(){return tb(this,CH,34)};g.setVisibleFieldsList=function(a){Cb(this,34,a)};g.getSloStatus=function(){return m(this,DCb,16)};g.setSloStatus=function(a){Db(this,16,a)};g.getSloId=function(){return hj(this,17)};g.setSloId=function(a){return Xk(this,17,a)};g.getTeamId=function(){return hj(this,33)};
g.setTeamId=function(a){return Xk(this,33,a)};g.getRetentionState=function(){return m(this,wH,29)};g.setRetentionState=function(a){Db(this,29,a)};g.getAncestorsMap=function(){return bj(this,38,om)};g.getChildIssueCount=function(){return hj(this,39)};g.setChildIssueCount=function(a){Xk(this,39,a)};g.getIsArchived=function(){return W(this,40)};g.setIsArchived=function(a){qo(this,40,a)};g.getRelatedLinksList=function(){return tb(this,yCb,41)};var DCb=function(a){Z.call(this,a)};U(DCb,Z);g=DCb.prototype;
g.getAssignmentBounds=function(){return m(this,MH,1)};g.setAssignmentBounds=function(a){Db(this,1,a)};g.hasAssignmentBounds=function(){return oj(this,1)};g.getResponseBounds=function(){return m(this,MH,2)};g.setResponseBounds=function(a){Db(this,2,a)};g.hasResponseBounds=function(){return oj(this,2)};g.getClosureBounds=function(){return m(this,MH,3)};g.setClosureBounds=function(a){Db(this,3,a)};g.hasClosureBounds=function(){return oj(this,3)};var MH=function(a){Z.call(this,a)};U(MH,Z);g=MH.prototype;
g.getStartTime=function(){return m(this,vj,1)};g.setStartTime=function(a){Db(this,1,a)};g.getEndTime=function(){return m(this,vj,2)};g.setEndTime=function(a){Db(this,2,a)};g.hasEndTime=function(){return oj(this,2)};g.getTargetTime=function(){return m(this,vj,3)};g.setTargetTime=function(a){Db(this,3,a)};g.hasTargetTime=function(){return oj(this,3)};var xl=function(a){Z.call(this,a)};U(xl,Z);var om=function(a){Z.call(this,a,-1,ECb)};U(om,Z);
om.prototype.getSourceIssueIdsList=function(){return lb(this,1)};om.prototype.setSourceIssueIdsList=function(a){return ml(this,1,a)};var CCb=function(a){Z.call(this,a,-1,FCb)};U(CCb,Z);g=CCb.prototype;g.getComponentId=function(){return hj(this,1)};g.setComponentId=function(a){return Xk(this,1,a)};g.getType=function(){return Y(this,2,0)};g.setType=function(a){return vl(this,2,a)};g.getStatus=function(){return Y(this,3,0)};g.setStatus=function(a){return vl(this,3,a)};
g.getPriority=function(){return Y(this,4,0)};g.setPriority=function(a){return vl(this,4,a)};g.getSeverity=function(){return Y(this,5,0)};g.setSeverity=function(a){return vl(this,5,a)};g.getTitle=function(){return V(this,6)};g.setTitle=function(a){return yl(this,6,a)};g.getReporter=function(){return m(this,JH,7)};g.setReporter=function(a){Db(this,7,a)};g.getAssignee=function(){return m(this,JH,8)};g.setAssignee=function(a){Db(this,8,a)};g.clearAssignee=function(){return Db(this,8)};
g.getVerifier=function(){return m(this,JH,9)};g.setVerifier=function(a){Db(this,9,a)};g.clearVerifier=function(){return Db(this,9)};g.getCcsList=function(){return tb(this,JH,10)};g.addHotlistIds=function(a,b){return qb(this,14,a,b)};g.getCustomFieldsList=function(){return tb(this,xH,15)};g.setInProd=function(a){qo(this,20,a)};g.getIsArchived=function(){return W(this,21)};g.setIsArchived=function(a){qo(this,21,a)};g.setIsDeleted=function(a){qo(this,23,a)};
g.setDeletionReason=function(a){vl(this,24,a)};g.getEntityStatus=function(){return m(this,vH,25)};g.getSloSnoozeUntil=function(){return m(this,vj,26)};g.setSloSnoozeUntil=function(a){Db(this,26,a)};g.setPostmortemsList=function(a){ml(this,27,a)};g.getRetention=function(){return Y(this,28,0)};g.setRetention=function(a){vl(this,28,a)};g.getEffort=function(){return m(this,xl,29)};g.setEffort=function(a){Db(this,29,a)};var ACb=[18,37,31,15,34,41];BCb.prototype.toObject=function(){return GCb(void 0,this)};
var GCb=function(a,b){if(null!=b){var c={issueId:hj(b,2),issueState:HCb(a,b.getIssueState()),issueComment:sCb(a,m(b,rCb,4)),attachmentsList:Eb(b.getAttachmentsList(),UBb,a),createdTime:Zu(a,b.getCreatedTime()),modifiedTime:Zu(a,b.getModifiedTime()),majorModifiedTime:Zu(a,m(b,vj,35)),minorModifiedTime:Zu(a,m(b,vj,36)),lastModifier:KH(a,m(b,JH,14)),resolvedTime:Zu(a,b.getResolvedTime()),verifiedTime:Zu(a,b.getVerifiedTime()),userData:vCb(a,b.getUserData()),voteCount:hj(b,10),parentIssueId:hj(b,30),
parentIssueIdsList:n(lb(b,37)),incomingDependencyIdsList:n(lb(b,31)),accessLimit:gxb(a,b.getAccessLimit()),version:hj(b,12),etag:Hb(b.getEtag()),customFieldsList:Eb(b.getCustomFieldsList(),dCb,a),visibleFieldsList:Eb(b.getVisibleFieldsList(),eCb,a),sloStatus:ICb(a,b.getSloStatus()),sloId:hj(b,17),teamId:hj(b,33),retentionState:SBb(a,b.getRetentionState()),ancestorsMap:Gb(b.getAncestorsMap(),a,JCb),childIssueCount:hj(b,39),isArchived:W(b,40),relatedLinksList:Eb(b.getRelatedLinksList(),zCb,a)};a&&(c.$jspbMessageInstance=
b);return c}};DCb.prototype.toObject=function(){return ICb(void 0,this)};var ICb=function(a,b){if(null!=b){var c={assignmentBounds:KCb(a,b.getAssignmentBounds()),responseBounds:KCb(a,b.getResponseBounds()),closureBounds:KCb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};MH.prototype.toObject=function(){return KCb(void 0,this)};
var KCb=function(a,b){if(null!=b){var c={startTime:Zu(a,b.getStartTime()),endTime:Zu(a,b.getEndTime()),targetTime:Zu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};xl.prototype.toObject=function(){return LCb(void 0,this)};var LCb=function(a,b){if(null!=b){var c={specId:hj(b,1),estimate:V(b,2),averageDays:Cl(b,3),totalOpen:Cl(b,4),totalComplete:Cl(b,5)};a&&(c.$jspbMessageInstance=b);return c}},ECb=[1];om.prototype.toObject=function(){return JCb(void 0,this)};
var JCb=function(a,b){if(null!=b){var c={sourceIssueIdsList:n(lb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},FCb=[10,12,13,14,15,16,17,18,19,22,27];CCb.prototype.toObject=function(){return HCb(void 0,this)};
var HCb=function(a,b){if(null!=b){var c={componentId:hj(b,1),type:Y(b,2,0),status:Y(b,3,0),priority:Y(b,4,0),severity:Y(b,5,0),title:V(b,6),reporter:KH(a,b.getReporter()),assignee:KH(a,b.getAssignee()),verifier:KH(a,b.getVerifier()),ccsList:Eb(b.getCcsList(),KH,a),canonicalIssueId:hj(b,11),blockedByIssueIdsList:n(lb(b,12)),blockingIssueIdsList:n(lb(b,13)),hotlistIdsList:n(lb(b,14)),customFieldsList:Eb(b.getCustomFieldsList(),YBb,a),codeChangesList:n(lb(b,16)),foundInVersionsList:n(lb(b,17)),targetedToVersionsList:n(lb(b,
18)),verifiedInVersionsList:n(lb(b,19)),inProd:W(b,20),isArchived:W(b,21),duplicateIssueIdsList:n(lb(b,22)),isDeleted:W(b,23),deletionReason:Y(b,24,0),entityStatus:RBb(a,b.getEntityStatus()),sloSnoozeUntil:Zu(a,b.getSloSnoozeUntil()),postmortemsList:n(lb(b,27)),retention:Y(b,28,0),effort:LCb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var MCb="TYPE_UNSPECIFIED BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),NCb=Jj({PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5}),OCb=Jj({SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5}),PCb=Jj({STATUS_UNSPECIFIED:0,NEW:1,ASSIGNED:2,ACCEPTED:3,FIXED:4,VERIFIED:5,NOT_REPRODUCIBLE:6,INTENDED_BEHAVIOR:7,OBSOLETE:8,INFEASIBLE:9,DUPLICATE:10}),QCb=Jj({TYPE_UNSPECIFIED:0,BUG:1,FEATURE_REQUEST:2,CUSTOMER_ISSUE:3,
INTERNAL_CLEANUP:4,PROCESS:5,VULNERABILITY:6,PRIVACY_ISSUE:7,PROJECT:8,FEATURE:9,MILESTONE:10,EPIC:11,STORY:12,TASK:13}),RCb=QCb.slice(0,7),SCb="PRIORITY_UNSPECIFIED P0 P1 P2 P3 P4".split(" ").slice(1),TCb="SEVERITY_UNSPECIFIED S0 S1 S2 S3 S4".split(" ").slice(1),UCb="STATUS_UNSPECIFIED NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" ").slice(1),VCb=MCb.slice(1),WCb=MCb.slice(1,8),NH={},XCb=(NH.PRIORITY_UNSPECIFIED="(Unspecified Priority)",
NH.P0="P0",NH.P1="P1",NH.P2="P2",NH.P3="P3",NH.P4="P4",NH),OH={},YCb=(OH.SEVERITY_UNSPECIFIED="(Unspecified Severity)",OH.S0="S0",OH.S1="S1",OH.S2="S2",OH.S3="S3",OH.S4="S4",OH),PH={},ZCb=(PH.TYPE_UNSPECIFIED="(Unspecified Issue Type)",PH.BUG="Bug",PH.FEATURE_REQUEST="Feature Request",PH.CUSTOMER_ISSUE="Customer Issue",PH.INTERNAL_CLEANUP="Internal Cleanup",PH.PROCESS="Process",PH.VULNERABILITY="Vulnerability",PH.PRIVACY_ISSUE="Privacy Issue",PH.PROJECT="Project",PH.FEATURE="Feature",PH.MILESTONE=
"Milestone",PH.EPIC="Epic",PH.STORY="Story",PH.TASK="Task",PH),QH={},$Cb=(QH.STATUS_UNSPECIFIED="(Unspecified Status)",QH.NEW="New",QH.ASSIGNED="Assigned",QH.ACCEPTED="Accepted",QH.FIXED="Fixed",QH.DUPLICATE="Duplicate",QH.VERIFIED="Fixed (Verified)",QH.NOT_REPRODUCIBLE="Won't Fix (Not reproducible)",QH.INTENDED_BEHAVIOR="Won't Fix (Intended behavior)",QH.OBSOLETE="Won't Fix (Obsolete)",QH.INFEASIBLE="Won't Fix (Infeasible)",QH),aDb=SCb.map(function(a){return XCb[a]}),bDb=TCb.map(function(a){return YCb[a]}),
cDb=VCb.map(function(a){return ZCb[a]}),dDb=UCb.map(function(a){return $Cb[a]}),eDb=new Map([[1,"Unintended behavior"],[2,"Request for new functionality"],[3,"Issue affecting a 3rd party"],[4,"Maintenance work"],[5,"Miscellaneous non-feature work"],[6,"A security concern"],[7,"A privacy concern"],[8,"Goal-driven effort"],[9,"A collection of work"],[10,"An important achievement"],[11,"A large collection of work"],[12,"A small collection of work"],[13,"A small unit of work"]]),fDb=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"],["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"]]);
var gDb=new Map(Ij(NCb,aDb)),hDb=new Map(Ij(OCb,bDb)),iDb=new Map(Ij(PCb,dDb)),jDb=new Map(Ij(QCb,cDb)),kDb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),lDb=cj("enableWtdmMvpUi")?VCb:WCb,mDb=lDb.map(function(a){return{value:a,displayText:KBb(a),altText:fDb.get(a)}}),RH=function(){this.protoPriorities=NCb;this.protoSeverities=OCb;this.protoStatuses=PCb;this.protoIssueTypes=cj("enableWtdmMvpUi")?QCb:RCb;this.protoIssuePrioritiesEnumStrings=new Map(Ij(NCb,SCb));this.protoIssueSeveritiesEnumStrings=
new Map(Ij(OCb,TCb));this.protoIssueTypesEnumStrings=new Map(Ij(QCb,VCb));this.protoIssueStatusesEnumStrings=new Map(Ij(PCb,UCb));this.priorities=SCb;this.severities=TCb;this.issueTypes=WCb;this.editIssueTypes=lDb;this.editIssueTypeChoices=mDb;Ij(VCb,cDb);this.protoIssuePrioritiesDisplayNames=gDb;this.protoIssueSeveritiesDisplayNames=hDb;this.protoIssueStatusesDisplayNames=iDb;this.protoIssueTypesDisplayNames=jDb;this.protoIssueTypesShortDescriptions=eDb;this.issueTypesShortDescriptions=fDb;this.supportedTimeZones=
[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};RH.\u0275fac=function(a){return new (a||RH)};RH.\u0275prov=hc({token:RH,factory:RH.\u0275fac,providedIn:"root"});
var SH=function(){this._inset=this._vertical=!1};oi.Object.defineProperties(SH.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Yg(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Yg(a)}}});SH.\u0275fac=function(a){return new (a||SH)};
SH.\u0275cmp=w({type:SH,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(ke("aria-orientation",b.vertical?"vertical":"horizontal"),pe("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-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.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 TH=function(a,b){this.constants=a;this.activeSession=b;this.onBulkEdit=new Vw;this.onQuickBulkEdit=new Vw;this.onBulkEditIssueRelation=new Vw;this.onBulkMarkIssueRead=new Vw;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditParentChildRelationship=sH(this.activeSession,"enableBulkEditParentChildRelationship")};TH.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};TH.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};
TH.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};TH.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};TH.\u0275fac=function(a){return new (a||TH)(C(RH),C(qH))};
TH.\u0275cmp=w({type:TH,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:96,vars:20,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-button","",1,"gmat-button","medium",3,"disabled","click"],["editMenu","matMenu"],["mat-menu-item",
"",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["prioritySubmenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["severitySubmenu","matMenu"],["statusSubmenu","matMenu"],["typeSubmenu","matMenu"],["mat-menu-item","",3,"matTooltip","click",4,"ngFor","ngForOf"],["ArchiveSubmenu","matMenu"],["inProdSubmenu","matMenu"],["linkMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["emailMenu","matMenu"],["mat-menu-item","",3,"matTooltip","click"]],template:function(a,b){a&1&&
(F(0,"b-button-group")(1,"button",0)(2,"span"),O(3,"Edit"),G(),H(4,"b-icon",1),G(),F(5,"button",2),J("click",function(){return b.bulkMarkIssueRead()}),O(6),G(),F(7,"button",0)(8,"span"),O(9,"Link"),G(),H(10,"b-icon",1),G(),F(11,"button",0)(12,"span"),O(13,"Email"),G(),H(14,"b-icon",1),G()(),F(15,"mat-menu",null,3)(17,"button",4),J("click",function(){return b.bulkEdit("ASSIGNEE")}),O(18,"Assignee"),G(),F(19,"button",4),J("click",function(){return b.bulkEdit("COMPONENT")}),O(20,"Component"),G(),F(21,
"button",5),O(22,"Priority"),G(),F(23,"button",5),O(24,"Severity"),G(),F(25,"button",5),O(26,"Status"),G(),F(27,"button",5),O(28,"Type"),G(),F(29,"button",4),J("click",function(){return b.bulkEdit("VERIFIER")}),O(30,"Verifier"),G(),F(31,"button",4),J("click",function(){return b.bulkEdit("REPORTER")}),O(32,"Reporter"),G(),F(33,"button",4),J("click",function(){return b.bulkEdit("CHANGELIST")}),O(34,"Changelist"),G(),F(35,"button",4),J("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),O(36,"Custom Fields"),
G(),F(37,"button",5),O(38," Archival state "),G(),F(39,"button",4),J("click",function(){return b.bulkEdit("FOUND_IN")}),O(40,"Found In"),G(),F(41,"button",4),J("click",function(){return b.bulkEdit("VERIFIED_IN")}),O(42,"Verified In"),G(),F(43,"button",4),J("click",function(){return b.bulkEdit("TARGETED_TO")}),O(44,"Targeted To"),G(),F(45,"button",5),O(46,"In Prod"),G(),H(47,"mat-divider"),F(48,"button",4),J("click",function(){return b.bulkEdit("COMMENT")}),O(49,"Add Comment"),G()(),F(50,"mat-menu",
null,6),M(52,Nna,2,1,"button",7),G(),F(53,"mat-menu",null,8),M(55,Ona,2,1,"button",7),G(),F(56,"mat-menu",null,9),M(58,Pna,2,1,"button",7),G(),F(59,"mat-menu",null,10),M(61,Qna,2,2,"button",11),G(),F(62,"mat-menu",null,12)(64,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),O(65,"Archive"),G(),F(66,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!1)}),O(67,"Unarchive"),G()(),F(68,"mat-menu",null,13)(70,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",
!0)}),O(71,"In Prod"),G(),F(72,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),O(73,"Not in Prod"),G()(),F(74,"mat-menu",null,14)(76,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),O(77,"Mark as Blocked By"),G(),F(78,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),O(79,"Mark as Blocking"),G(),M(80,Rna,2,0,"button",15),F(81,"button",4),J("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),O(82,
"Duplicate"),G(),F(83,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),O(84,"Unmark as Blocked By"),G(),F(85,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),O(86,"Unmark as Blocking"),G(),M(87,Sna,2,0,"button",15),G(),F(88,"mat-menu",null,16)(90,"button",4),J("click",function(){return b.quickBulkEdit("CC",!0)}),O(91,"CC me"),G(),F(92,"button",4),J("click",function(){return b.quickBulkEdit("CC",!1)}),O(93,"Un-CC me"),G(),F(94,"button",
4),J("click",function(){return b.bulkEdit("CC")}),O(95,"Edit CC"),G()());if(a&2){var c=Fe(16),d=Fe(51),e=Fe(54),f=Fe(57),h=Fe(60),k=Fe(63),q=Fe(69),u=Fe(75),y=Fe(89);B(1);E("disabled",b.isAnonymous)("matMenuTriggerFor",c);B(4);E("disabled",b.isAnonymous);B(1);Ge(" ",b.readStatePrompt," ");B(1);E("disabled",b.isAnonymous)("matMenuTriggerFor",u);B(4);E("disabled",b.isAnonymous)("matMenuTriggerFor",y);B(10);E("matMenuTriggerFor",d);B(2);E("matMenuTriggerFor",e);B(2);E("matMenuTriggerFor",f);B(2);E("matMenuTriggerFor",
h);B(10);E("matMenuTriggerFor",k);B(8);E("matMenuTriggerFor",q);B(7);E("ngForOf",b.constants.protoPriorities);B(3);E("ngForOf",b.constants.protoSeverities);B(3);E("ngForOf",b.constants.protoStatuses);B(3);E("ngForOf",b.constants.protoIssueTypes);B(19);E("ngIf",b.enableBulkEditParentChildRelationship);B(7);E("ngIf",b.enableBulkEditParentChildRelationship)}},dependencies:[mF,kF,pF,Kx,Gx,tH,iH,FB,SH,wF],encapsulation:2,changeDetection:0});
var UH=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new Vw;this.flagAsSpamClicked=new Vw;this.isAnonymous=this.activeSession.isAnonymous()};UH.\u0275fac=function(a){return new (a||UH)(C(qH))};
UH.\u0275cmp=w({type:UH,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["moreMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&
M(0,Vna,9,4,"ng-container",0);a&2&&E("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[mF,kF,pF,Gx,tH,FB],encapsulation:2,changeDetection:0});
var VH=function(){};VH.\u0275fac=function(a){return new (a||VH)};VH.\u0275mod=xc({type:VH});VH.\u0275inj=ic({imports:[ay]});
var WH=function(){};WH.\u0275fac=function(a){return new (a||WH)};WH.\u0275mod=xc({type:WH});WH.\u0275inj=ic({imports:[ay,AF]});
var XH=function(){};XH.\u0275fac=function(a){return new (a||XH)};XH.\u0275mod=xc({type:XH});XH.\u0275inj=ic({imports:[kB,kB]});
var YH=function(){};YH.\u0275fac=function(a){return new (a||YH)};YH.\u0275mod=xc({type:YH});YH.\u0275inj=ic({imports:[qF,ay,WH,VH,wG,XH,gH]});
var ZH=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new T.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e),h=new T.ReplaySubject(1);d.watchForRestoredConnection$.pipe(fg(h)).subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){h.next();f.unsubscribe()}});this.watchForRestoredConnection$=(0,T.fromEvent)(window,
"focus").pipe(eg(function(){return d.connectionChecker.ok$}),uf(function(e){return e}),Tf(),R(function(){}),ag())};ZH.prototype.intercept=function(a,b){return sH(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?nDb(this,b,a):b.handle(a)};
var nDb=function(a,b,c){return new T.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){oDb(a,b,c,h).pipe(fg(f)).subscribe(d)}}),f=new T.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},oDb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,T.throwError)(d):a.connectionChecker.ok$.pipe(eg(function(e){return e?(0,T.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(eg(function(){return b.handle(c)}))}))};
ZH.\u0275fac=function(a){return new (a||ZH)(t(qH),t($H),t(aI))};ZH.\u0275prov=hc({token:ZH,factory:ZH.\u0275fac,providedIn:"root"});var aI=function(){this.showRefreshSso$=new T.BehaviorSubject(!1)};aI.\u0275fac=function(a){return new (a||aI)};aI.\u0275prov=hc({token:aI,factory:aI.\u0275fac,providedIn:"root"});
var $H=function(a){var b=this;this.ngZone=a;this.ok$=new T.Observable(function(c){var d=zi("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};$H.\u0275fac=function(a){return new (a||$H)(t(mg))};$H.\u0275prov=hc({token:$H,factory:$H.\u0275fac,providedIn:"root"});var pDb={provide:YE,useClass:ZH,multi:!0};
var qDb=function(a,b){return[a,b]},rDb=[[["b-callout-body"]],[["b-callout-actions"]]],bI=function(){this.messageType="info";this.format="default"};bI.prototype.getIconName=function(){if(null!=this.iconOverride)return this.iconOverride;switch(this.messageType){case "caution":return"warning";case "success":return"success";case "error":return"alert";default:return"info"}};bI.\u0275fac=function(a){return new (a||bI)};
bI.\u0275cmp=w({type:bI,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&qe(Me(2,qDb,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],[3,"svgIcon"],["role","alert",1,"content"],[1,"actions"]],template:function(a,b){a&1&&(Ae(rDb),F(0,"div",0),H(1,"mat-icon",1),F(2,"div",2),Be(3),G(),F(4,"div",3),Be(5,1),G()());a&2&&(B(1),
E("svgIcon",b.getIconName()))},dependencies:[hF],styles:["[_nghost-%COMP%]{display:block;border-radius:8px;color:#3c4043;color:var(--c800);padding:4px}[_nghost-%COMP%]     .mat-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%]{flex-grow:1}mat-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:4px}.callout[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:36px}.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%]    .mat-stroked-button, .info[_nghost-%COMP%]    .mat-icon-button{color:#1a73e8;color:var(--link)}.info[_nghost-%COMP%]    .mat-flat-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%]    .mat-stroked-button, .archived[_nghost-%COMP%]    .mat-icon-button, .caution[_nghost-%COMP%]    .mat-button, .caution[_nghost-%COMP%]    .mat-stroked-button, .caution[_nghost-%COMP%]    .mat-icon-button{color:rgba(0,0,0,.7);color:var(--text-warn)}.archived[_nghost-%COMP%]    .mat-flat-button, .archived[_nghost-%COMP%]    .mat-raised-button, .caution[_nghost-%COMP%]    .mat-flat-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:#fef4f3;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%]    .mat-stroked-button, .error[_nghost-%COMP%]    .mat-icon-button{color:#c5221f;color:var(--bad-link)}.error[_nghost-%COMP%]    .mat-flat-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%]    .mat-stroked-button, .success[_nghost-%COMP%]    .mat-icon-button{color:#1e8e3e;color:var(--good-link)}.success[_nghost-%COMP%]    .mat-flat-button, .success[_nghost-%COMP%]    .mat-raised-button{background-color:#34a853;background-color:var(--good);color:#fff;color:var(--text-inverse)}\n/*# sourceMappingURL=callout.css.map */"]});
var cI=function(){};cI.\u0275fac=function(a){return new (a||cI)};cI.\u0275dir=w({type:cI,selectors:[["b-callout-body"],["b-callout-actions"]]});
var dI=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};dI.\u0275fac=function(a){return new (a||dI)(C(qH),C(aI))};
dI.\u0275cmp=w({type:dI,selectors:[["b-sso-expired-callout-outlet"]],decls:2,vars:3,consts:[["format","app",3,"messageType",4,"ngIf"],["format","app",3,"messageType"],[4,"ngIf","ngIfElse"],["signedInMessage",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(M(0,aoa,7,4,"b-callout",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.showRefreshSsoMessage$))},dependencies:[Gx,bI,cI,FB,Tx],encapsulation:2,changeDetection:0});
var boa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var sDb=Symbol("hc"),tDb=Symbol("ic"),eI=Symbol("jc"),fI=function(){};fI.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=Nj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[eI]=!0;return}c.resolve(e);d[eI]=!0},b);d[sDb]=b;d[tDb]=c.reject;d[eI]=!1;return c.promise};fI.prototype.cancel=function(a){var b=a[sDb];if(null==b||a[eI])return!1;clearTimeout(b);var c;null==(c=a[tDb])||c.call(a,Error("kc"));return a[eI]=!0};fI.\u0275fac=function(a){return new (a||fI)};
fI.\u0275prov=hc({token:fI,factory:fI.\u0275fac,providedIn:"root"});
var gI=function(a){this.timeout=a};gI.prototype.adapt=function(a){return new uDb(this.timeout,a)};gI.\u0275fac=function(a){return new (a||gI)(t(fI))};gI.\u0275prov=hc({token:gI,factory:gI.\u0275fac,providedIn:"root"});var uDb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
uDb.prototype.get=function(a){var b=Nj(),c=this.batchedInputs[this.batchedInputs.length-1],d=this.batchedDeferreds[this.batchedDeferreds.length-1];100>c.length?(c.push(a),d.push(b)):(this.batchedInputs.push([a]),this.batchedDeferreds.push([b]));this.isBatchScheduled||vDb(this);return b.promise};
var vDb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={$jscomp$loop$prop$batchedDeferred$1660:b.$jscomp$loop$prop$batchedDeferred$1660},c++){var d=a.batchedInputs[c];b.$jscomp$loop$prop$batchedDeferred$1660=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.$jscomp$loop$prop$batchedDeferred$1660.length;h++)e.$jscomp$loop$prop$batchedDeferred$1660[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=
r(e.$jscomp$loop$prop$batchedDeferred$1660),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];a.isBatchScheduled=!1})};
var Oj=function(a){Z.call(this,a)};U(Oj,Z);Oj.prototype.toObject=function(){return wDb(void 0,this)};var wDb=function(a,b){if(null!=b){var c={principalType:n(p(b,1)),detailedUserType:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var hI=function(a){this.http=a};g=hI.prototype;g.get=function(a){return this.request("get",a)};g.delete=function(a){return this.request("delete",a)};g.post=function(a){return this.request("post",a,a.body)};g.put=function(a){return this.request("put",a,a.body)};
g.request=function(a,b,c){var d=b.options;d=void 0===d?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params,{enable_jspb:"true"})};var e;c=null!=(e=null==c?void 0:c.toJSON())?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(R(foa(b.responseConstructor)))};hI.\u0275fac=function(a){return new (a||hI)(t(XE))};hI.\u0275prov=hc({token:hI,factory:hI.\u0275fac,providedIn:"root"});var iI=function(a){this.jspbExecutor=a};iI.prototype.get=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.get(a))};
iI.prototype.delete=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.delete(a))};iI.prototype.post=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.post(a))};iI.prototype.put=function(a){return(0,T.firstValueFrom)(this.jspbExecutor.put(a))};iI.\u0275fac=function(a){return new (a||iI)(t(hI))};iI.\u0275prov=hc({token:iI,factory:iI.\u0275fac,providedIn:"root"});
var kt={COMPONENT_CREATE:"/components/new",HOTLIST_SEARCH:function(a){return"/issues?q=hotlistid:"+a},HOTLIST_VIEW:function(a){return"/hotlists/"+(void 0===a?"":a)},ISSUE:function(a){return"/issues/"+a},ISSUE_LIST:"/issues",ISSUE_CREATE:"/issues/new"},xDb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"},jo=function(a){return"hotlists/"+a};
var yDb=function(a){Z.call(this,a)};U(yDb,Z);yDb.prototype.toObject=function(){var a=null!=this?{principalTypeInfoMap:Gb(bj(this,1,Oj),void 0,wDb)}:void 0;return a};yDb.messageId="b.PrincipalTypeInfoBatchResponse";
var jI=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(zDb(this,!1));this.principalTypeWithDetailGetter=b.adapt(zDb(this,!0))},zDb=function(a,b){return function(c){return ADb(a.principalResources,c,b).then(function(d){return doa(c,d)})}};jI.prototype.get=function(a){return kI(this,a,!1)};var kI=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(eoa)};jI.\u0275fac=function(a){return new (a||jI)(t(lI),t(gI))};
jI.\u0275prov=hc({token:jI,factory:jI.\u0275fac,providedIn:"root"});var lI=function(a){this.executor=a},ADb=function(a,b,c){var d={};d.email=Hj(b,Gj);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:yDb}).then(coa).then(function(e){for(var f={},h=r(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=e[k];if(q){var u=new Oj;u=l(u,1,q.principalType);q=l(u,2,q.detailedUserType)}else q=null;f[k]=q}return f})};
lI.\u0275fac=function(a){return new (a||lI)(t(iI))};lI.\u0275prov=hc({token:lI,factory:lI.\u0275fac,providedIn:"root"});
var mI=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};mI.prototype.ngOnDestroy=function(){this.destroyed=!0};mI.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};mI.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};mI.\u0275fac=function(a){return new (a||mI)(t(zx),t(mg))};mI.\u0275prov=hc({token:mI,factory:mI.\u0275fac});
var nI=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;sH(this.session,"weAreHiring")&&kI(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner=1===Y(e,2,0);d.cdr.detectChanges()}).catch(function(){})};nI.\u0275fac=function(a){return new (a||nI)(C(qH),C(jI),C(mI,2))};
nI.\u0275cmp=w({type:nI,selectors:[["b-hiring-banner"]],features:[Je([mI])],decls:1,vars:1,consts:[["class","hiring-banner","title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",4,"ngIf"],["title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",1,"hiring-banner"]],template:function(a,b){a&1&&M(0,goa,2,0,"a",0);a&2&&E("ngIf",b.showHiringBanner)},dependencies:[Gx],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:-85px;-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 oI=function(){};oI.\u0275fac=function(a){return new (a||oI)};oI.\u0275mod=xc({type:oI});oI.\u0275inj=ic({imports:[ay]});
var Pj=function(a,b){this.char=a;this.modifiers=b};
var BDb={category:"Edit Issue Page",keys:[Qj("r")],displayAs:"Shift + r",description:"Refresh"},pI={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Qj("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:{category:"Edit Issue Page",keys:[Rj("p","0"),Rj("p","1"),Rj("p","2"),Rj("p","3"),Rj("p","4")],displayAs:"p <n>",
description:"Mark issue as priority [0-4]"},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"],displayAs:"i",description:"Highlight issue ID"},OPEN_HOTLIST_PICKER:{category:"Edit Issue Page",keys:["h"],displayAs:"h",description:"Edit hotlists"},REFRESH:BDb,TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},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(L,S,X){L.addEventListener?L.addEventListener(S,X,!1):L.attachEvent("on"+S,X)}function e(L){if("keypress"==L.type){var S=String.fromCharCode(L.which);L.shiftKey||(S=S.toLowerCase());return S}return u[L.which]?u[L.which]:y[L.which]?y[L.which]:String.fromCharCode(L.which).toLowerCase()}function f(L){return"shift"==L||"ctrl"==L||"alt"==L||"meta"==L}function h(L,S){var X,ka=[];"+"===L?L=["+"]:(L=L.replace(/\+{2}/g,"+plus"),L=L.split("+"));for(X=0;X<L.length;++X){var ha=L[X];
I[ha]&&(ha=I[ha]);S&&"keypress"!=S&&D[ha]&&(ha=D[ha],ka.push("shift"));f(ha)&&ka.push(ha)}L=ha;X=S;if(!X){if(!N){N={};for(var ra in u)95<ra&&112>ra||u.hasOwnProperty(ra)&&(N[u[ra]]=ra)}X=N[L]?"keydown":"keypress"}"keypress"==X&&ka.length&&(X="keydown");return{key:ha,modifiers:ka,action:X}}function k(L,S){return null===L||L===b?!1:L===S?!0:k(L.parentNode,S)}function q(L){function S(va){va=va||{};var Ca=!1,Ia;for(Ia in Ba)va[Ia]?Ca=!0:Ba[Ia]=0;Ca||(Tb=!1)}function X(va,Ca,Ia,Xa,$a,jc){var Va,Ya,Sa=
[],vb=Ia.type;if(!Ja._callbacks[va])return[];"keyup"==vb&&f(va)&&(Ca=[va]);for(Va=0;Va<Ja._callbacks[va].length;++Va)if(Ya=Ja._callbacks[va][Va],(Xa||!Ya.seq||Ba[Ya.seq]==Ya.level)&&vb==Ya.action){var eb;(eb="keypress"==vb&&!Ia.metaKey&&!Ia.ctrlKey)||(eb=Ya.modifiers,eb=Ca.sort().join(",")===eb.sort().join(","));eb&&(eb=Xa&&Ya.seq==Xa&&Ya.level==jc,(!Xa&&Ya.combo==$a||eb)&&Ja._callbacks[va].splice(Va,1),Sa.push(Ya))}return Sa}function ka(va,Ca,Ia,Xa){Ja.stopCallback(Ca,Ca.target||Ca.srcElement,Ia,
Xa)||!1!==va(Ca,Ia)||(Ca.preventDefault?Ca.preventDefault():Ca.returnValue=!1,Ca.stopPropagation?Ca.stopPropagation():Ca.cancelBubble=!0)}function ha(va){"number"!==typeof va.which&&(va.which=va.keyCode);var Ca=e(va);if(Ca)if("keyup"==va.type&&hb===Ca)hb=!1;else{var Ia=Ja,Xa=Ia.handleKey,$a=[];va.shiftKey&&$a.push("shift");va.altKey&&$a.push("alt");va.ctrlKey&&$a.push("ctrl");va.metaKey&&$a.push("meta");Xa.call(Ia,Ca,$a,va)}}function ra(va,Ca,Ia,Xa){function $a(Sa){return function(){Tb=Sa;++Ba[va];
clearTimeout(La);La=setTimeout(S,1E3)}}function jc(Sa){ka(Ia,Sa,va);"keyup"!==Xa&&(hb=e(Sa));setTimeout(S,10)}for(var Va=Ba[va]=0;Va<Ca.length;++Va){var Ya=Va+1===Ca.length?jc:$a(Xa||h(Ca[Va+1]).action);Da(Ca[Va],Ya,Xa,va,Va)}}function Da(va,Ca,Ia,Xa,$a){Ja._directMap[va+":"+Ia]=Ca;va=va.replace(/\s+/g," ");var jc=va.split(" ");1<jc.length?ra(va,jc,Ca,Ia):(Ia=h(va,Ia),Ja._callbacks[Ia.key]=Ja._callbacks[Ia.key]||[],X(Ia.key,Ia.modifiers,{type:Ia.action},Xa,va,$a),Ja._callbacks[Ia.key][Xa?"unshift":
"push"]({callback:Ca,modifiers:Ia.modifiers,action:Ia.action,seq:Xa,level:$a,combo:va}))}var Ja=this;L=L||b;if(!(Ja instanceof q))return new q(L);Ja.target=L;Ja._callbacks={};Ja._directMap={};var Ba={},La,hb=!1,fb=!1,Tb=!1;Ja._handleKey=function(va,Ca,Ia){var Xa=X(va,Ca,Ia),$a;Ca={};var jc=0,Va=!1;for($a=0;$a<Xa.length;++$a)Xa[$a].seq&&(jc=Math.max(jc,Xa[$a].level));for($a=0;$a<Xa.length;++$a)Xa[$a].seq?Xa[$a].level==jc&&(Va=!0,Ca[Xa[$a].seq]=1,ka(Xa[$a].callback,Ia,Xa[$a].combo,Xa[$a].seq)):Va||
ka(Xa[$a].callback,Ia,Xa[$a].combo);Xa="keypress"==Ia.type&&fb;Ia.type!=Tb||f(va)||Xa||S(Ca);fb=Va&&"keydown"==Ia.type};Ja._bindMultiple=function(va,Ca,Ia){for(var Xa=0;Xa<va.length;++Xa)Da(va[Xa],Ca,Ia)};d(L,"keypress",ha);d(L,"keydown",ha);d(L,"keyup",ha)}if(a){var u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},
y={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},D={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},I={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},N;for(c=1;20>c;++c)u[111+c]="f"+c;for(c=0;9>=c;++c)u[c+96]=c;q.prototype.bind=
function(L,S,X){L=L instanceof Array?L:[L];this._bindMultiple.call(this,L,S,X);return this};q.prototype.unbind=function(L,S){return this.bind.call(this,L,function(){},S)};q.prototype.trigger=function(L,S){if(this._directMap[L+":"+S])this._directMap[L+":"+S]({},L);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(L,S){return-1<(" "+S.className+" ").indexOf(" mousetrap ")||k(S,this.target)?!1:"INPUT"==S.tagName||"SELECT"==
S.tagName||"TEXTAREA"==S.tagName||S.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(L){for(var S in L)L.hasOwnProperty(S)&&(u[S]=L[S]);N=null};q.init=function(){var L=q(b),S;for(S in L)"_"!==S.charAt(0)&&(q[S]=function(X){return function(){return L[X].apply(L,arguments)}}(S))};q.init();a.Mousetrap=q;"undefined"!==typeof module&&module.exports&&(module.exports=q);"function"===typeof define&&define.amd&&define(function(){return q})}})("undefined"!==
typeof window?window:null,"undefined"!==typeof window?document:null);
var qI=function(){this.destroyed$=new T.ReplaySubject(1);this.subscriptions=new T.Subscription};qI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};qI.\u0275fac=function(a){return new (a||qI)};qI.\u0275dir=w({type:qI});
var rI=function(a,b){this.id=a;this.url=b},sI=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;rI.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};U(sI,rI);sI.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var tI=function(a,b,c){rI.call(this,a,b);this.urlAfterRedirects=c;this.type=1};U(tI,rI);
tI.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var uI=function(a,b,c){rI.call(this,a,b);this.reason=c;this.type=2};U(uI,rI);uI.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var CDb=function(a,b,c){rI.call(this,a,b);this.error=c;this.type=3};U(CDb,rI);
CDb.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var DDb=function(a,b,c,d){rI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};U(DDb,rI);DDb.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var EDb=function(a,b,c,d){rI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};U(EDb,rI);
EDb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var FDb=function(a,b,c,d,e){rI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};U(FDb,rI);
FDb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var GDb=function(a,b,c,d){rI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};U(GDb,rI);GDb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var HDb=function(a,b,c,d){rI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};U(HDb,rI);HDb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var IDb=function(a){this.route=a;this.type=9};IDb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var JDb=function(a){this.route=a;this.type=10};
JDb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var lpa=function(a){this.snapshot=a;this.type=11};lpa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var KDb=function(a){this.snapshot=a;this.type=12};KDb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Gk=function(a){this.snapshot=a;this.type=13};Gk.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var LDb=function(a){this.snapshot=a;this.type=14};LDb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var MDb=function(a,b){this.position=a;this.anchor=b;this.type=15};
MDb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};
var vI=function(a){this.params=a||{}};vI.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};vI.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};vI.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};oi.Object.defineProperties(vI.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});
var poa={exact:toa,subset:woa},qoa={exact:soa,subset:uoa,ignored:function(){return!0}},mk=function(a,b,c){this.root=a;this.queryParams=b;this.fragment=c};mk.prototype.toString=function(){return NDb.serialize(this)};oi.Object.defineProperties(mk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new vI(this.queryParams));return this._queryParamMap}}});
var nk=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Tj(b,function(d){return d.parent=c})};nk.prototype.hasChildren=function(){return 0<this.numberOfChildren};nk.prototype.toString=function(){return Yj(this)};oi.Object.defineProperties(nk.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var hk=function(a,b){this.path=a;this.parameters=b};hk.prototype.toString=function(){return Xj(this.path)+zoa(this.parameters)};
var ODb=function(){},PDb=function(){};PDb.prototype.parse=function(a){a=new QDb(a);wI(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new nk([],{}):new nk([],RDb(a));return new mk(b,a.parseQueryParams(),wI(a,"#")?decodeURIComponent(a.remaining):null)};PDb.prototype.serialize=function(a){var b="/"+Zj(a.root,!0),c=Boa(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};
var NDb=new PDb,Coa=/^[^\/()?;=#]+/,SDb=/^[^=?&#]+/,TDb=/^[^&#]+/,QDb=function(a){this.remaining=this.url=a};
QDb.prototype.parseQueryParams=function(){var a={};if(wI(this,"?")){do{var b,c=this.remaining.match(SDb);if(b=c?c[0]:""){this.capture(b);c="";if(wI(this,"=")){var d;if(d=(d=this.remaining.match(TDb))?d[0]:"")c=d,this.capture(c)}b=decodeURIComponent(b.replace(/\+/g,"%20"));c=decodeURIComponent(c.replace(/\+/g,"%20"));a.hasOwnProperty(b)?(d=a[b],Array.isArray(d)||(d=[d],a[b]=d),d.push(c)):a[b]=c}}while(wI(this,"&"))}return a};
var RDb=function(a){if(""===a.remaining)return{};wI(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(UDb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(UDb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=VDb(a,!0));var d={};a.remaining.startsWith("(")&&(d=VDb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new nk(b,c);return d},UDb=function(a){var b=bk(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw Error("nc`"+
a.remaining);a.capture(b);b=decodeURIComponent(b);for(var c={};wI(a,";");){var d=a,e=bk(d.remaining);if(e){d.capture(e);var f="";if(wI(d,"=")){var h=bk(d.remaining);h&&(f=h,d.capture(f))}c[decodeURIComponent(e)]=decodeURIComponent(f)}}return new hk(b,c)},VDb=function(a,b){var c={};for(a.capture("(");!wI(a,")")&&0<a.remaining.length;){var d=bk(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw Error("oc`"+a.url);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),a.capture(e),
a.capture(":")):b&&(e="primary");d=RDb(a);c[e]=1===Object.keys(d).length?d.primary:new nk([],d);wI(a,"//")}return c},wI=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};QDb.prototype.capture=function(a){if(!wI(this,a))throw Error("pc`"+a);};
var xI=function(a){this._root=a};xI.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};xI.prototype.children=function(a){return(a=Doa(a,this._root))?a.children.map(function(b){return b.value}):[]};xI.prototype.firstChild=function(a){return(a=Doa(a,this._root))&&0<a.children.length?a.children[0].value:null};xI.prototype.pathFromRoot=function(a){return Eoa(a,this._root).map(function(b){return b.value})};
oi.Object.defineProperties(xI.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var ek=function(a,b){this.value=a;this.children=b};ek.prototype.toString=function(){return"TreeNode("+this.value+")"};
var ik=function(a,b){this._root=a;this.snapshot=b;Ioa(this,a)};U(ik,xI);ik.prototype.toString=function(){return this.snapshot.toString()};var gk=function(a,b,c,d,e,f,h,k){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this._futureSnapshot=k};gk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
oi.Object.defineProperties(gk.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||(this._paramMap=this.params.pipe(R(function(a){return new vI(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(function(a){return new vI(a)})));return this._queryParamMap}}});
var fk=function(a,b,c,d,e,f,h,k,q,u,y,D){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this.routeConfig=k;this._urlSegment=q;this._lastPathIndex=u;this._correctedLastPathIndex=null!=D?D:u;this._resolve=y};fk.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
oi.Object.defineProperties(fk.prototype,{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||(this._paramMap=new vI(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new vI(this.queryParams));return this._queryParamMap}}});var dk=function(a,b){this._root=b;this.url=a;Ioa(this,b)};U(dk,xI);dk.prototype.toString=function(){return Joa(this._root)};
var Qoa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&kk(c[0]))throw Error("qc");if((a=c.find(lk))&&a!==(0<c.length?c[c.length-1]:null))throw Error("rc");},WDb=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};
var XDb=function(){this.injector=this.resolver=this.route=this.outlet=null;this.children=new yI;this.attachRef=null},yI=function(){this.contexts=new Map},YDb=function(a){var b=a.contexts;a.contexts=new Map;return b},ZDb=function(a,b){var c=a.getContext(b);c||(c=new XDb,a.contexts.set(b,c));return c};yI.prototype.getContext=function(a){return this.contexts.get(a)||null};
var zI=function(a,b,c,d,e){this.parentContexts=a;this.location=b;this.changeDetector=d;this.environmentInjector=e;this._activatedRoute=this.activated=null;this.activateEvents=new Vw;this.deactivateEvents=new Vw;this.attachEvents=new Vw;this.detachEvents=new Vw;b=this.name=c||"primary";c=ZDb(a,b);c.outlet=this;a.contexts.set(b,c)};g=zI.prototype;g.ngOnDestroy=function(){var a=this.parentContexts.getContext(this.name);a&&(a.outlet=null,a.attachRef=null)};
g.ngOnInit=function(){if(!this.activated){var a=this.parentContexts.getContext(this.name);a&&a.route&&(a.attachRef?this.attach(a.attachRef,a.route):$Db(this,a.route,a.injector))}};g.detach=function(){if(!this.activated)throw Error("tc");this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};g.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);this.attachEvents.emit(a.instance)};
g.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var $Db=function(a,b,c){if(a.isActivated)throw Error("uc");a._activatedRoute=b;var d=a.location,e=b._futureSnapshot.component,f=ZDb(a.parentContexts,a.name).children;b=new aEb(b,f,d.injector);c&&c.resolveComponentFactory?(c=c.resolveComponentFactory(e),a.activated=d.createComponent(c,d.length,b)):a.activated=d.createComponent(e,{index:d.length,injector:b,environmentInjector:null!=c?c:a.environmentInjector});a.changeDetector.markForCheck();a.activateEvents.emit(a.activated.instance)};
oi.Object.defineProperties(zI.prototype,{isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("tc");return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("tc");return this._activatedRoute}}});zI.\u0275fac=function(a){return new (a||zI)(C(yI),C(Bf),bd("name"),C(zx),C(Tv))};
zI.\u0275dir=w({type:zI,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var aEb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};aEb.prototype.get=function(a,b){return a===gk?this.route:a===yI?this.childContexts:this.parent.get(a,b)};
var qk=function(){};qk.\u0275fac=function(a){return new (a||qk)};qk.\u0275cmp=w({type:qk,selectors:[["ng-component"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[zI],encapsulation:2});
var cEb=function(a,b,c){return R(function(d){(new bEb(b,d.targetRouterState,d.currentRouterState,c)).activate(a);return d})},bEb=function(a,b,c,d){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d};bEb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;dEb(this,b,c,a);Koa(this.futureState.root);AI(this,b,c,a)};
var dEb=function(a,b,c,d){var e=ck(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,u=k?k.value:null;q===u?q.component?(q=d.getContext(q.outlet))&&dEb(a,f,k,q.children):dEb(a,f,k,d):u&&eEb(a,k,d);delete e[h]});Tj(e,function(f){eEb(a,f,d)})},eEb=function(a,b,c){if(b.value.component&&a.routeReuseStrategy.shouldDetach()){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;for(var e=ck(b),f=r(Object.keys(e)),h=f.next();!h.done;h=f.next())eEb(a,e[h.value],c);d&&
d.outlet&&(c=d.outlet.detach(),d=YDb(d.children),a.routeReuseStrategy.store(b.value.snapshot,{componentRef:c,route:b,contexts:d}))}else{c=(d=c.getContext(b.value.outlet))&&b.value.component?d.children:c;b=ck(b);e=r(Object.keys(b));for(f=e.next();!f.done;f=e.next())eEb(a,b[f.value],c);d&&d.outlet&&(d.outlet.deactivate(),YDb(d.children),d.attachRef=null,d.resolver=null,d.route=null)}},AI=function(a,b,c,d){var e=ck(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;
Koa(k);if(k===q)k.component?(k=ZDb(d,k.outlet),AI(a,f,h,k.children)):AI(a,f,h,d);else if(k.component){h=ZDb(d,k.outlet);if(a.routeReuseStrategy.shouldAttach()){var u=a.routeReuseStrategy.retrieve();a.routeReuseStrategy.store(k.snapshot,null);h.children.contexts=u.contexts;h.attachRef=u.componentRef;h.route=u.route.value;h.outlet&&h.outlet.attach(u.componentRef,u.route.value);Koa(u.route.value)}else{q=Zoa(k.snapshot);var y=null!=(u=null==q?void 0:q.get(Wv))?u:null;h.attachRef=null;h.route=k;h.resolver=
y;h.injector=q;h.outlet&&$Db(h.outlet,k,h.injector)}AI(a,f,null,h.children)}else AI(a,f,null,d);a.forwardEvent(new LDb(f.value.snapshot))});b.children.length&&a.forwardEvent(new KDb(b.value.snapshot))};
var uk=Symbol("vc");
var $oa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
var zk=function(a){this.segmentGroup=a||null},fEb=function(a){this.urlTree=a},Bk=function(a,b,c,d,e){this.injector=a;this.configLoader=b;this.urlSerializer=c;this.urlTree=d;this.config=e;this.allowRedirects=!0};
Bk.prototype.apply=function(){var a=this,b=yk(this.urlTree.root,[],[],this.config).segmentGroup;b=new nk(b.segments,b.children);return gEb(this,this.injector,this.config,b,"primary").pipe(R(function(c){return a.createUrlTree(dpa(c),a.urlTree.queryParams,a.urlTree.fragment)})).pipe(Pf(function(c){if(c instanceof fEb)return a.allowRedirects=!1,a.match(c.urlTree);if(c instanceof zk)throw Error("xc`"+c.segmentGroup);throw c;}))};
Bk.prototype.match=function(a){var b=this;return gEb(this,this.injector,this.config,a.root,"primary").pipe(R(function(c){return b.createUrlTree(dpa(c),a.queryParams,a.fragment)})).pipe(Pf(function(c){if(c instanceof zk)throw Error("xc`"+c.segmentGroup);throw c;}))};Bk.prototype.createUrlTree=function(a,b,c){var d={};a=0<a.segments.length?new nk([],(d.primary=a,d)):a;return new mk(a,b,c)};
var gEb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?hEb(a,b,c,d).pipe(R(function(f){return new nk([],f)})):iEb(a,b,d,c,d.segments,e,!0)},hEb=function(a,b,c,d){for(var e=[],f=r(Object.keys(d.children)),h=f.next();!h.done;h=f.next())h=h.value,"primary"===h?e.unshift(h):e.push(h);return(0,T.from)(e).pipe(nf(function(k){var q=d.children[k],u=Yoa(c,k);return gEb(a,b,u,q,k).pipe(R(function(y){return{segment:y,outlet:k}}))},1),Yf(function(k,q){k[q.outlet]=q.segment;return k},{}),pha())},
iEb=function(a,b,c,d,e,f,h){return(0,T.from)(d).pipe(nf(function(k){return jEb(a,b,c,d,k,e,f,h).pipe(Pf(function(q){if(q instanceof zk)return(0,T.of)(null);throw q;}))},1),Wf(function(k){return!!k}),Pf(function(k){if(k instanceof T.EmptyError||"EmptyError"===k.name)return 0!==e.length||c.children[f]?Ak(c):(0,T.of)(new nk([],{}));throw k;}))},jEb=function(a,b,c,d,e,f,h,k){if(cpa(e,c,f,h))if(void 0===e.redirectTo)a=kEb(a,b,c,e,f,h);else{var q;k&&a.allowRedirects?q="**"===e.path?lEb(a,b,d,e,h):mEb(a,
b,c,d,e,f,h):q=Ak(c);a=q}else a=Ak(c);return a},lEb=function(a,b,c,d,e){var f=nEb(a,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,T.throwError)(new fEb(f)):oEb(d,f).pipe(nf(function(h){var k=new nk(h,{});return iEb(a,b,k,c,h,e,!1)}))},mEb=function(a,b,c,d,e,f,h){f=wk(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,u=f.positionalParamSegments;if(!f.matched)return Ak(c);f=nEb(a,k,e.redirectTo,u);return e.redirectTo.startsWith("/")?(0,T.throwError)(new fEb(f)):oEb(e,f).pipe(nf(function(y){return iEb(a,
b,c,d,y.concat(q),h,!1)}))},kEb=function(a,b,c,d,e,f){if("**"===d.path)return b=Xoa(d,b),d.loadChildren?(d._loadedRoutes?(0,T.of)({routes:d._loadedRoutes,injector:d._loadedInjector}):a.configLoader.loadChildren(b,d)).pipe(R(function(u){d._loadedRoutes=u.routes;d._loadedInjector=u.injector;return new nk(e,{})})):(0,T.of)(new nk(e,{}));var h=wk(c,d,e),k=h.consumedSegments,q=h.remainingSegments;if(!h.matched)return Ak(c);b=Xoa(d,b);return pEb(a,b,d,e).pipe(nf(function(u){var y,D=null!=(y=u.injector)?
y:b;u=u.routes;var I=yk(c,k,q,u);y=I.segmentGroup;I=I.slicedSegments;y=new nk(y.segments,y.children);return 0===I.length&&y.hasChildren()?hEb(a,D,u,y).pipe(R(function(N){return new nk(k,N)})):0===u.length&&0===I.length?(0,T.of)(new nk(k,{})):iEb(a,D,y,u,I,rk(d)===f?"primary":f,!0).pipe(R(function(N){return new nk(k.concat(N.segments),N.children)}))}))},pEb=function(a,b,c,d){return c.children?(0,T.of)({routes:c.children,injector:b}):c.loadChildren?void 0!==c._loadedRoutes?(0,T.of)({routes:c._loadedRoutes,
injector:c._loadedInjector}):qEb(a,b,c,d).pipe(nf(function(e){return e?a.configLoader.loadChildren(b,c).pipe(gg(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):(0,T.throwError)(moa("Cannot load children because the guard of the route \"path: '"+c.path+"'\" returned false"))})):(0,T.of)({routes:[],injector:b})},qEb=function(a,b,c,d){var e=c.canLoad;if(!e||0===e.length)return(0,T.of)(!0);e=e.map(function(f){if((f=b.get(f))&&sk(f.canLoad))f=f.canLoad(c,d);else if(sk(f))f=f(c,d);
else throw Error("yc");return Uj(f)});return(0,T.of)(e).pipe(vk(),gg(function(f){if(tk(f)){var h=moa('Redirecting to "'+a.urlSerializer.serialize(f)+'"');h.url=f;throw h;}}),R(function(f){return!0===f}))},oEb=function(a,b){var c=[];for(b=b.root;;){c=c.concat(b.segments);if(0===b.numberOfChildren)return(0,T.of)(c);if(1<b.numberOfChildren||!b.children.primary)return(0,T.throwError)(Error("wc`"+a.redirectTo));b=b.children.primary}},nEb=function(a,b,c,d){var e=a.urlSerializer.parse(c);b=rEb(a,c,e.root,
b,d);return new mk(b,sEb(e.queryParams,a.urlTree.queryParams),e.fragment)},sEb=function(a,b){var c={};Tj(a,function(d,e){c[e]="string"===typeof d&&d.startsWith(":")?b[d.substring(1)]:d});return c},rEb=function(a,b,c,d,e){var f=tEb(b,c.segments,d,e),h={};Tj(c.children,function(k,q){h[q]=rEb(a,b,k,d,e)});return new nk(f,h)},tEb=function(a,b,c,d){return b.map(function(e){if(e.path.startsWith(":")){var f=d[e.path.substring(1)];if(!f)throw Error("zc`"+a+"`"+e.path);e=f}else a:{f=0;for(var h=r(c),k=h.next();!k.done;k=
h.next()){k=k.value;if(k.path===e.path){c.splice(f);e=k;break a}f++}}return e})};
var gpa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Ek=function(a,b){this.component=a;this.route=b};
var qpa=function(){},ppa=function(a,b,c,d,e,f){this.rootComponentType=a;this.config=b;this.urlTree=c;this.url=d;this.paramsInheritanceStrategy=e;this.relativeLinkResolution=f};
ppa.prototype.recognize=function(){var a=yk(this.urlTree.root,[],[],this.config.filter(function(c){return void 0===c.redirectTo}),this.relativeLinkResolution).segmentGroup;a=uEb(this,this.config,a,"primary");if(null===a)return null;var b=new fk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{});a=new dk(this.url,new ek(b,a));vEb(this,a._root);return a};
var vEb=function(a,b){var c=b.value,d=Hoa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return vEb(a,e)})},uEb=function(a,b,c,d){return 0===c.segments.length&&c.hasChildren()?a.processChildren(b,c):wEb(a,b,c,c.segments,d)};
ppa.prototype.processChildren=function(a,b){for(var c=[],d=r(Object.keys(b.children)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.children[e],h=Yoa(a,e);e=uEb(this,h,f,e);if(null===e)return null;c.push.apply(c,v(e))}a=upa(c);spa(a);return a};
var wEb=function(a,b,c,d,e){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=xEb(a,f.value,c,d,e),null!==f)return f;return 0!==d.length||c.children[e]?null:[]},xEb=function(a,b,c,d,e){if(b.redirectTo||!cpa(b,c,d,e))return null;var f=[],h=[];if("**"===b.path){var k=wpa(c)+d.length,q,u;d=new fk(d,0<d.length?(0<d.length?d[d.length-1]:null).parameters:{},Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,b.data||{},rk(b),null!=(u=null!=(q=b.component)?q:b._loadedComponent)?u:null,
b,vpa(c),k,b.resolve||{},k)}else{d=wk(c,b,d);if(!d.matched)return null;f=d.consumedSegments;h=d.remainingSegments;q=wpa(c)+f.length;var y;d=new fk(f,d.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,b.data||{},rk(b),null!=(y=null!=(k=b.component)?k:b._loadedComponent)?y:null,b,vpa(c),q,b.resolve||{},q)}k=b.children?b.children:b.loadChildren?b._loadedRoutes:[];f=yk(c,f,h,k.filter(function(D){return void 0===D.redirectTo}),a.relativeLinkResolution);c=f.segmentGroup;
f=f.slicedSegments;if(0===f.length&&c.hasChildren())return a=a.processChildren(k,c),null===a?null:[new ek(d,a)];if(0===k.length&&0===f.length)return[new ek(d,[])];a=wEb(a,k,c,f,rk(b)===e?"primary":e);return null===a?null:[new ek(d,a)]};
var Apa=Symbol("Dc");
var yEb=function(){},zEb=function(){};g=zEb.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var AEb=function(){};U(AEb,zEb);
var BEb=new od("ROUTES"),BI=function(a){this.injector=a;this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap};
BI.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,T.of)(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=Uj(a.loadComponent()).pipe(gg(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),Vf(function(){b.componentLoaders.delete(a)}));c=(new T.ConnectableObservable(c,function(){return new T.Subject})).pipe(bf());this.componentLoaders.set(a,
c);return c};
BI.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return(0,T.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=CEb(this,b.loadChildren).pipe(R(function(e){if(c.onLoadEndListener)c.onLoadEndListener(b);if(!Array.isArray(e)){var f=e.create(a).injector;e=Array.prototype.concat.apply([],f.get(BEb,[],10))}return{routes:e.map(pk),injector:f}}),Vf(function(){c.childrenLoaders.delete(b)}));
d=(new T.ConnectableObservable(d,function(){return new T.Subject})).pipe(bf());this.childrenLoaders.set(b,d);return d};var CEb=function(a,b){return"string"===typeof b?(0,T.from)(a.injector.get(Wmb).load(b)):Uj(b()).pipe(nf(function(c){return c instanceof rlb||Array.isArray(c)?(0,T.of)(c):(0,T.from)(Promise.resolve(new fw(c)))}))};BI.\u0275fac=function(a){return new (a||BI)(t(Uv),t(kw))};BI.\u0275prov=hc({token:BI,factory:BI.\u0275fac});
var DEb=function(){};DEb.prototype.extract=function(a){return a};DEb.prototype.merge=function(a){return a};
var EEb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FEb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ik=function(a,b,c,d,e,f,h){var k=this;this.rootComponentType=a;this.urlSerializer=b;this.rootContexts=c;this.location=d;this.config=h;this.currentNavigation=this.lastSuccessfulNavigation=null;this.disposed=!1;this.currentPageId=this.navigationId=0;this.events=new T.Subject;this.errorHandler=Epa;this.malformedUriErrorHandler=Fpa;this.navigated=
!1;this.lastSuccessfulId=-1;this.hooks={beforePreactivation:Gpa,afterPreactivation:Gpa};this.urlHandlingStrategy=new DEb;this.routeReuseStrategy=new AEb;this.onSameUrlNavigation="ignore";this.paramsInheritanceStrategy="emptyOnly";this.urlUpdateStrategy="deferred";this.relativeLinkResolution="corrected";this.canceledNavigationResolution="replace";this.configLoader=e.get(BI);this.configLoader.onLoadEndListener=function(q){k.events.next(new JDb(q))};this.configLoader.onLoadStartListener=function(q){k.events.next(new IDb(q))};
this.ngModule=e.get(Xv);this.console=e.get(jw);e.get(mg)instanceof mg&&Yw();this.config=h.map(pk);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new mk(new nk([],{}),{},null);this.routerState=Foa(this.currentUrlTree,this.rootComponentType);this.transitions=new T.BehaviorSubject({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),
rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null});this.navigations=GEb(this,this.transitions);HEb(this)},GEb=function(a,b){var c=a.events;return b.pipe(uf(function(d){return 0!==d.id}),R(function(d){return Object.assign({},d,{extractedUrl:a.urlHandlingStrategy.extract(d.rawUrl)})}),
eg(function(d){var e=!1,f=!1;return(0,T.of)(d).pipe(gg(function(h){a.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:a.lastSuccessfulNavigation?Object.assign({},a.lastSuccessfulNavigation,{previousNavigation:null}):null}}),eg(function(h){var k=a.browserUrlTree.toString();k=!a.navigated||h.extractedUrl.toString()!==k||k!==a.currentUrlTree.toString();if("reload"===a.onSameUrlNavigation||k)return"imperative"!==h.source&&(a.browserUrlTree=
h.extractedUrl),(0,T.of)(h).pipe(eg(function(D){var I=a.transitions.getValue();c.next(new sI(D.id,CI(a,D.extractedUrl),D.source,D.restoredState));return I!==a.transitions.getValue()?T.EMPTY:Promise.resolve(D)}),epa(a.ngModule.injector,a.configLoader,a.urlSerializer,a.config),gg(function(D){a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:D.urlAfterRedirects})}),xpa(a.rootComponentType,a.config,function(D){return CI(a,D)},a.paramsInheritanceStrategy,a.relativeLinkResolution),gg(function(D){if("eager"===
a.urlUpdateStrategy){if(!D.extras.skipLocationChange){var I=a.urlHandlingStrategy.merge(D.urlAfterRedirects,D.rawUrl);IEb(a,I,D)}a.browserUrlTree=D.urlAfterRedirects}D=new DDb(D.id,CI(a,D.extractedUrl),CI(a,D.urlAfterRedirects),D.targetSnapshot);c.next(D)}));if(k&&a.rawUrlTree){k=h.extractedUrl;var q=h.source,u=h.restoredState,y=h.extras;q=new sI(h.id,CI(a,k),q,u);c.next(q);q=Foa(k,a.rootComponentType).snapshot;return(0,T.of)(Object.assign({},h,{targetSnapshot:q,urlAfterRedirects:k,extras:Object.assign({},
y,{skipLocationChange:!1,replaceUrl:!1})}))}a.rawUrlTree=h.rawUrl;h.resolve(null);return T.EMPTY}),Hk(function(h){var k=h.extras;return a.hooks.beforePreactivation(h.targetSnapshot,{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!k.skipLocationChange,replaceUrl:!!k.replaceUrl})}),gg(function(h){h=new EDb(h.id,CI(a,h.extractedUrl),CI(a,h.urlAfterRedirects),h.targetSnapshot);a.events.next(h)}),R(function(h){var k=Object,q=k.assign;var u=h.currentSnapshot;var y=
h.targetSnapshot._root;u=Dk(y,u?u._root:null,a.rootContexts,[y.value]);return q.call(k,{},h,{guards:u})}),jpa(a.ngModule.injector,function(h){a.events.next(h)}),gg(function(h){if(tk(h.guardsResult)){var k=moa('Redirecting to "'+CI(a,h.guardsResult)+'"');k.url=h.guardsResult;throw k;}h=new FDb(h.id,CI(a,h.extractedUrl),CI(a,h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);a.events.next(h)}),uf(function(h){return h.guardsResult?!0:(JEb(a,h),KEb(a,h,""),!1)}),Hk(function(h){if(h.guards.canActivateChecks.length)return(0,T.of)(h).pipe(gg(function(k){k=
new GDb(k.id,CI(a,k.extractedUrl),CI(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}),eg(function(k){var q=!1;return(0,T.of)(k).pipe(zpa(a.paramsInheritanceStrategy,a.ngModule.injector),gg({next:function(){return q=!0},complete:function(){q||(JEb(a,k),KEb(a,k,"At least one route resolver didn't emit any value."))}}))}),gg(function(k){k=new HDb(k.id,CI(a,k.extractedUrl),CI(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}))}),Hk(function(h){var k=h.extras;return a.hooks.afterPreactivation(h.targetSnapshot,
{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!k.skipLocationChange,replaceUrl:!!k.replaceUrl})}),Hk(function(h){var k=function(q){var u=[],y;(null==(y=q.routeConfig)?0:y.loadComponent)&&!q.routeConfig._loadedComponent&&u.push(a.configLoader.loadComponent(q.routeConfig).pipe(gg(function(I){q.component=I}),R(function(){})));y=r(q.children);for(var D=y.next();!D.done;D=y.next())u.push.apply(u,v(k(D.value)));return u};return(0,T.combineLatest)(k(h.targetSnapshot.root)).pipe(dha(),
Tf())}),R(function(h){var k=h.targetSnapshot;var q=h.currentRouterState;q=jk(a.routeReuseStrategy,k._root,q?q._root:void 0);k=new ik(q,k);return Object.assign({},h,{targetRouterState:k})}),gg(function(h){a.currentUrlTree=h.urlAfterRedirects;a.rawUrlTree=a.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);a.routerState=h.targetRouterState;"deferred"===a.urlUpdateStrategy&&(h.extras.skipLocationChange||IEb(a,a.rawUrlTree,h),a.browserUrlTree=h.urlAfterRedirects)}),cEb(a.rootContexts,a.routeReuseStrategy,
function(h){a.events.next(h)}),gg({next:function(){e=!0},complete:function(){e=!0}}),Vf(function(){e||f||KEb(a,d,"Navigation ID "+d.id+" is not equal to the current navigation id "+a.navigationId);var h;(null==(h=a.currentNavigation)?void 0:h.id)===d.id&&(a.currentNavigation=null)}),Pf(function(h){f=!0;if(h&&h.ngNavigationCancelingError){var k=tk(h.url);k||(a.navigated=!0,JEb(a,d,!0));var q=new uI(d.id,CI(a,d.extractedUrl),h.message);c.next(q);k?(h=a.urlHandlingStrategy.merge(h.url,a.rawUrlTree),
LEb(a,h,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})):d.resolve(!1)}else{JEb(a,d,!0);k=new CDb(d.id,CI(a,d.extractedUrl),h);c.next(k);try{d.resolve(a.errorHandler(h))}catch(u){d.reject(u)}}return T.EMPTY}))}))};Ik.prototype.setTransition=function(a){this.transitions.next(Object.assign({},this.transitions.value,a))};
Ik.prototype.initialNavigation=function(){MEb(this);0===this.navigationId&&jt(this,this.location.path(!0),{replaceUrl:!0})};
var MEb=function(a){a.locationSubscription||(a.locationSubscription=a.location.subscribe(function(b){var c="popstate"===b.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){var d={replaceUrl:!0},e,f=(null==(e=b.state)?0:e.navigationId)?b.state:null;f&&(e=Object.assign({},f),delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(d.state=e));e=NEb(a,b.url);LEb(a,e,c,f,d)},0)}))};Ik.prototype.ngOnDestroy=function(){this.dispose()};
Ik.prototype.dispose=function(){this.transitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0};
Ik.prototype.createUrlTree=function(a,b){b=void 0===b?{}:b;var c=b.queryParams,d=b.fragment,e=b.relativeTo||this.routerState.root;d=b.preserveFragment?this.currentUrlTree.fragment:d;switch(b.queryParamsHandling){case "merge":c=Object.assign({},this.currentUrlTree.queryParams,c);break;case "preserve":c=this.currentUrlTree.queryParams;break;default:c=c||null}null!==c&&(c=OEb(c));b=this.currentUrlTree;d=null!=d?d:null;if(0===a.length)b=Poa(b.root,b.root,b.root,c,d);else if(a=Roa(a),a.isAbsolute&&1===
a.commands.length&&"/"==a.commands[0])b=Poa(b.root,b.root,new nk([],{}),c,d);else{var f,h=null==(f=e.snapshot)?void 0:f._lastPathIndex,k;f=null==(k=e.snapshot)?void 0:k._urlSegment;if(a.isAbsolute)k=new WDb(b.root,!0,0);else if(-1===h)k=new WDb(f,f===b.root,0);else{k=f;f=h+(kk(a.commands[0])?0:1);for(e=a.numberOfDoubleDots;e>f;){e-=f;k=k.parent;if(!k)throw Error("sc");f=k.segments.length}k=new WDb(k,!1,f-e)}a=k.processChildren?ok(k.segmentGroup,k.index,a.commands):Uoa(k.segmentGroup,k.index,a.commands);
b=Poa(b.root,k.segmentGroup,a,c,d)}return b};var jt=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=tk(b)?b:NEb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return LEb(a,b,"imperative",null,c)};Ik.prototype.navigate=function(a,b){b=void 0===b?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++){var d=a[c];if(null==d)throw Error("Ec`"+d+"`"+c);}return jt(this,this.createUrlTree(a,b),b)};
var CI=function(a,b){return a.urlSerializer.serialize(b)},NEb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};Ik.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},EEb):!1===b?c=Object.assign({},FEb):c=b;if(tk(a))return roa(this.currentUrlTree,a,c);a=NEb(this,a);return roa(this.currentUrlTree,a,c)};
var OEb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},HEb=function(a){a.navigations.subscribe(function(b){a.navigated=!0;a.lastSuccessfulId=b.id;a.currentPageId=b.targetPageId;a.events.next(new tI(b.id,CI(a,b.extractedUrl),CI(a,a.currentUrlTree)));a.lastSuccessfulNavigation=a.currentNavigation;var c;null==(c=a.titleStrategy)||c.updateTitle(a.routerState.snapshot);b.resolve(!0)},function(b){a.console.warn("Unhandled Navigation Error: "+
b)})},LEb=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var h=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(I,N){h=I;k=N});var q=++a.navigationId;if("computed"===a.canceledNavigationResolution)if(0===a.currentPageId&&(d=a.location.getState()),d&&d.\u0275routerPageId)var u=d.\u0275routerPageId;else if(e.replaceUrl||e.skipLocationChange){var y;u=null!=(y=a.browserPageId)?y:0}else{var D;u=(null!=(D=a.browserPageId)?D:0)+1}else u=0;a.setTransition({id:q,targetPageId:u,
source:c,restoredState:d,currentUrlTree:a.currentUrlTree,currentRawUrl:a.rawUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(I){return Promise.reject(I)})},IEb=function(a,b,c){b=a.urlSerializer.serialize(b);var d=Object.assign({},c.extras.state,PEb(a,c.id,c.targetPageId)),e=a.location;var f=void 0===f?"":f;e.path()==e.normalize(b+Fg(f))||c.extras.replaceUrl?a.location.replaceState(b,"",d):a.location.go(b,
"",d)},JEb=function(a,b,c){c=void 0===c?!1:c;if("computed"===a.canceledNavigationResolution){c=a.currentPageId-b.targetPageId;var d;if("popstate"!==b.source&&"eager"!==a.urlUpdateStrategy&&a.currentUrlTree!==(null==(d=a.currentNavigation)?void 0:d.finalUrl)||0===c){var e;a.currentUrlTree===(null==(e=a.currentNavigation)?void 0:e.finalUrl)&&0===c&&(a.resetState(b),a.browserUrlTree=b.currentUrlTree,QEb(a))}else a.location.historyGo(c)}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),
QEb(a))};Ik.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};
var QEb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",PEb(a,a.lastSuccessfulId,a.currentPageId))},KEb=function(a,b,c){c=new uI(b.id,CI(a,b.extractedUrl),c);a.events.next(c);b.resolve(!1)},PEb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
oi.Object.defineProperties(Ik.prototype,{browserPageId:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.location.getState())?void 0:a.\u0275routerPageId}},url:{configurable:!0,enumerable:!0,get:function(){return CI(this,this.currentUrlTree)}}});Ik.\u0275fac=function(){wd()};Ik.\u0275prov=hc({token:Ik,factory:Ik.\u0275fac});
var DI=function(a,b,c,d,e){this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.commands=null;this.onChanges=new T.Subject;REb(this,"0")},REb=function(a,b){if(null==a.tabIndexAttribute){var c=a.renderer;a=a.el.nativeElement;null!==b?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};DI.prototype.ngOnChanges=function(){this.onChanges.next(this)};
DI.prototype.onClick=function(){if(null===this.urlTree)return!0;jt(this.router,this.urlTree,{skipLocationChange:pg(this.skipLocationChange),replaceUrl:pg(this.replaceUrl),state:this.state});return!0};
oi.Object.defineProperties(DI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?(this.commands=Array.isArray(a)?a:[a],REb(this,"0")):(this.commands=null,REb(this,null))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:pg(this.preserveFragment)})}}});
DI.\u0275fac=function(a){return new (a||DI)(C(Ik),C(gk),bd("tabindex"),C(Zv),C(sd))};DI.\u0275dir=w({type:DI,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Fc]});
var EI=function(a,b,c){var d=this;this.router=a;this.route=b;this.locationStrategy=c;this.href=this.commands=null;this.onChanges=new T.Subject;this.subscription=a.events.subscribe(function(e){e instanceof tI&&SEb(d)})};EI.prototype.ngOnChanges=function(){SEb(this);this.onChanges.next(this)};EI.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
EI.prototype.onClick=function(a,b,c,d,e){if(0!==a||b||c||d||e||"string"===typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;jt(this.router,this.urlTree,{skipLocationChange:pg(this.skipLocationChange),replaceUrl:pg(this.replaceUrl),state:this.state});return!1};var SEb=function(a){a.href=null!==a.urlTree?a.locationStrategy.prepareExternalUrl(CI(a.router,a.urlTree)):null};
oi.Object.defineProperties(EI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?this.commands=Array.isArray(a)?a:[a]:this.commands=null}},urlTree:{configurable:!0,enumerable:!0,get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:pg(this.preserveFragment)})}}});
EI.\u0275fac=function(a){return new (a||EI)(C(Ik),C(gk),C(dy))};
EI.\u0275dir=w({type:EI,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&ke("target",b.target)("href",b.href,Qd)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",
routerLink:"routerLink"},features:[Fc]});
var FI=function(a,b,c,d,e,f){var h=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.linkWithHref=f;this.classes=[];this.isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new Vw;this.routerEventsSubscription=a.events.subscribe(function(k){k instanceof tI&&h.update()})};FI.prototype.ngAfterContentInit=function(){var a=this;(0,T.of)(this.links.changes,this.linksWithHrefs.changes,(0,T.of)(null)).pipe(of()).subscribe(function(){a.update();TEb(a)})};
var TEb=function(a){var b;null==(b=a.linkInputChangesSubscription)||b.unsubscribe();b=[].concat(v(a.links.toArray()),v(a.linksWithHrefs.toArray()),[a.link,a.linkWithHref]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=(0,T.from)(b).pipe(of()).subscribe(function(c){a.isActive!==UEb(a,a.router)(c)&&a.update()})};FI.prototype.ngOnChanges=function(){this.update()};
FI.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};
FI.prototype.update=function(){var a=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var b=VEb(a);a.isActive!==b&&(a.isActive=b,a.cdr.markForCheck(),a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)}),b&&void 0!==a.ariaCurrentWhenActive?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,
"aria-current"),a.isActiveChange.emit(b))})};var UEb=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return d.urlTree?b.isActive(d.urlTree,c):!1}},VEb=function(a){var b=UEb(a,a.router);return a.link&&b(a.link)||a.linkWithHref&&b(a.linkWithHref)||a.links.some(b)||a.linksWithHrefs.some(b)};
oi.Object.defineProperties(FI.prototype,{routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});FI.\u0275fac=function(a){return new (a||FI)(C(Ik),C(sd),C(Zv),C(zx),C(DI,8),C(EI,8))};
FI.\u0275dir=w({type:FI,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&(Ff(c,DI,5),Ff(c,EI,5));if(a&2){var d;Df(d=Gf())&&(b.links=d);Df(d=Gf())&&(b.linksWithHrefs=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Fc]});
var WEb=function(){},XEb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[Apa])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c},GI=function(a){this.title=a};U(GI,WEb);GI.prototype.updateTitle=function(a){a=XEb(a);void 0!==a&&this.title.setTitle(a)};GI.\u0275fac=function(a){return new (a||GI)(t(nz))};GI.\u0275prov=hc({token:GI,factory:GI.\u0275fac,providedIn:"root"});
var YEb=function(){},ZEb=function(){};ZEb.prototype.preload=function(a,b){return b().pipe(Pf(function(){return(0,T.of)(null)}))};var $Eb=function(){};$Eb.prototype.preload=function(){return(0,T.of)(null)};var HI=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},aFb=function(a){a.subscription=a.router.events.pipe(uf(function(b){return b instanceof tI}),nf(function(){return a.preload()},1)).subscribe(function(){})};
HI.prototype.preload=function(){return bFb(this,this.injector,this.router.config)};HI.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var bFb=function(a,b,c){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Gea(e.providers,b,"Route: "+e.path));var f=void 0,h=null!=(f=e._injector)?f:b,k=void 0;f=null!=(k=e._loadedInjector)?k:h;if(e.loadChildren&&!e._loadedRoutes||e.loadComponent&&!e._loadedComponent)d.push(cFb(a,h,e));else if(e.children||e._loadedRoutes)h=void 0,d.push(bFb(a,f,null!=(h=e.children)?h:e._loadedRoutes))}return(0,T.from)(d).pipe(of())},cFb=function(a,b,c){return a.preloadingStrategy.preload(c,
function(){var d=(c.loadChildren&&void 0===c.canLoad?a.loader.loadChildren(b,c):(0,T.of)(null)).pipe(nf(function(f){if(null===f)return(0,T.of)(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return bFb(a,null!=(h=f.injector)?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return(0,T.from)([d,e]).pipe(of())}return d})};HI.\u0275fac=function(a){return new (a||HI)(t(Ik),t(kw),t(Tv),t(YEb),t(BI))};HI.\u0275prov=hc({token:HI,factory:HI.\u0275fac});
var II=function(a,b,c){c=void 0===c?{}:c;this.router=a;this.viewportScroller=b;this.options=c;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled";c.anchorScrolling=c.anchorScrolling||"disabled"};
II.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;try{if(iy(a)){var b=Object.getOwnPropertyDescriptor(a.window.history,"scrollRestoration")||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a.window.history),"scrollRestoration");var c=!!b&&!(!b.writable&&!b.set)}else c=!1}catch(d){c=!1}c&&(a=a.window.history)&&a.scrollRestoration&&(a.scrollRestoration="manual")}this.routerEventsSubscription=dFb(this);this.scrollEventsSubscription=
eFb(this)};
var dFb=function(a){return a.router.events.subscribe(function(b){b instanceof sI?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof tI&&(a.lastId=b.id,b=NEb(a.router,b.urlAfterRedirects).fragment,a.router.events.next(new MDb("popstate"===a.lastSource?a.store[a.restoredId]:null,b)))})},eFb=function(a){return a.router.events.subscribe(function(b){if(b instanceof MDb)if(b.position)"top"===a.options.scrollPositionRestoration?
jnb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&jnb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(iy(c)){a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if("function"===typeof d.createTreeWalker&&d.body&&(d.body.createShadowRoot||d.body.attachShadow))for(d=d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),e=d.currentNode;e;){if(e=e.shadowRoot)if(e=
e.getElementById(b)||e.querySelector('[name="'+b+'"]')){b=e;break a}e=d.nextNode()}b=null}}if(b){e=b.getBoundingClientRect();d=e.left+c.window.pageXOffset;e=e.top+c.window.pageYOffset;var f=c.offset();c.window.scrollTo(d-f[0],e-f[1]);b.focus()}}}else"disabled"!==a.options.scrollPositionRestoration&&jnb(a.viewportScroller,[0,0])})};II.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe();this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()};
II.\u0275fac=function(){wd()};II.\u0275prov=hc({token:II,factory:II.\u0275fac});
var JI=new od("ROUTER_CONFIGURATION"),fFb=new od("ROUTER_FORROOT_GUARD"),gFb=[hy,{provide:ODb,useClass:PDb},{provide:Ik,useFactory:Hpa,deps:[ODb,yI,hy,Uv,kw,BEb,JI,GI,[WEb,new Rv],[function(){},new Rv],[yEb,new Rv]]},yI,{provide:gk,useFactory:Ipa,deps:[Ik]},HI,$Eb,ZEb,{provide:JI,useValue:{enableTracing:!1}},BI],KI=function(){};KI.\u0275fac=function(a){return new (a||KI)(t(fFb,8),t(Ik,8))};KI.\u0275mod=xc({type:KI});KI.\u0275inj=ic({});
var LI=function(a){this.injector=a;this.destroyed=this.initNavigation=!1;this.resultOfPreactivationDone=new T.Subject};
LI.prototype.appInitializer=function(){var a=this;return this.injector.get(enb,Promise.resolve(null)).then(function(){if(a.destroyed)return Promise.resolve(!0);var b=null,c=new Promise(function(f){return b=f}),d=a.injector.get(Ik),e=a.injector.get(JI);"disabled"===e.initialNavigation?(MEb(d),b(!0)):"enabledBlocking"===e.initialNavigation?(d.hooks.afterPreactivation=function(){if(a.initNavigation)return(0,T.of)(null);a.initNavigation=!0;b(!0);return a.resultOfPreactivationDone},d.initialNavigation()):
b(!0);return c})};LI.prototype.bootstrapListener=function(a){var b=this.injector.get(JI),c=this.injector.get(HI),d=this.injector.get(II),e=this.injector.get(Ik),f=this.injector.get(xx);a===f.components[0]&&("enabledNonBlocking"!==b.initialNavigation&&void 0!==b.initialNavigation||e.initialNavigation(),aFb(c),d.init(),e.rootComponentType=f.componentTypes[0],e.routerState.root.component=e.rootComponentType,this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())};
LI.prototype.ngOnDestroy=function(){this.destroyed=!0};LI.\u0275fac=function(a){return new (a||LI)(t(Uv))};LI.\u0275prov=hc({token:LI,factory:LI.\u0275fac});var hFb=new od("Router Initializer");
var iFb=[tI,CDb,uI],NI=function(a,b){qI.call(this);var c=this;this.router=a;this.activatedRoute=b;this.routeChangeStart=new T.Subject;this.routeChangeSuccess=new T.Subject;this.locationChangeStart=new T.Subject;this.locationChangeSuccess=new T.Subject;this.routeUpdate=new T.Subject;this.viewContentLoaded=new T.Subject;MI(this,Gk).subscribe(function(d){c.routeChangeStart.next({params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)})});a=this.router.events.pipe(uf(function(d){return iFb.some(function(e){return d instanceof
e})}),fg(this.destroyed$));b=MI(this,LDb);(0,T.merge)(a.pipe(Xf(T.NEVER)),this.routeChangeStart.pipe(Xf(b))).pipe(eg(We),fg(this.destroyed$),uf(function(d){return d.snapshot.routeConfig.isRootRoute}),R(function(d){return{params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});MI(this,sI).pipe(R(function(d){return d.url}),Sf()).subscribe(function(){c.locationChangeStart.next()});MI(this,tI).pipe(R(function(d){return d.url}),Sf()).subscribe(function(){c.locationChangeSuccess.next()});
b=this.activatedRoute.queryParams.pipe(hg(MI(this,DDb)));(0,T.merge)(this.routeChangeStart.pipe(Xf(T.NEVER)),a.pipe(Xf(b))).pipe(eg(We),fg(this.destroyed$)).subscribe(function(d){d=r(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params})});MI(this,tI).subscribe(function(){c.viewContentLoaded.next()})};U(NI,qI);NI.\u0275dir=qI.\u0275dir;var MI=function(a,b){return a.router.events.pipe(uf(function(c){return c instanceof b}),R(function(c){return c}),fg(a.destroyed$))};
NI.\u0275fac=function(a){return new (a||NI)(t(Ik),t(gk))};NI.\u0275prov=hc({token:NI,factory:NI.\u0275fac,providedIn:"root"});
var OI=function(a){this.executor=a},jFb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:wj,body:Gna(b)}).pipe(R(function(c){return xna(c)}))};OI.\u0275fac=function(a){return new (a||OI)(t(hI))};OI.\u0275prov=hc({token:OI,factory:OI.\u0275fac,providedIn:"root"});
var PI=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new T.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(R(Ii));this.textDisplayPreferences$=this.preferences$.pipe(R(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=Jk(this.textDisplayPreferences$.pipe(fg(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(R(function(b){return b.lastPublishMode}),
Sf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(R(nna));this.themePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.themePreferences)?c:Ii(pH.themePreferences)}),Lk());this.listViewPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.listViewPreferences)?c:Ii(pH.listViewPreferences)}),Lk());this.layoutPreferences$=this.preferences$.pipe(R(this.getLayoutPreferences),Lk());this.dateTimePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:Ii(pH.dateTimePreferences)}),Lk());this.homepagePreferences$=this.preferences$.pipe(R(this.getHomepagePreferences),Lk());this.keyboardPrefs$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.keyboardPreferences)?c:Ii(pH.keyboardPreferences)}),Lk());this.displayColumnsPreferences$=this.preferences$.pipe(R(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),Lk());this.sortColumnsPreferences$=this.preferences$.pipe(R(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),Lk());this.bugScreensaverPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:Ii(pH.bugScreensaverPreferences)}),Lk());this.bugScreensaverSubject$=Jk(this.bugScreensaverPreferences$.pipe(fg(this.destroyed$)),pH.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.g3nPreferences)?c:Ii(pH.g3nPreferences)}),Lk());this.g3nSubject$=
Jk(this.g3nPreferences$.pipe(fg(this.destroyed$)),pH.g3nPreferences);this.newIssueDetailsPagePreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.newIssueDetailsPagePreferences)?c:Ii(pH.newIssueDetailsPagePreferences)}),Lk());this.newIssueDetailsPagePreferencesSubject$=Jk(this.newIssueDetailsPagePreferences$.pipe(fg(this.destroyed$)),pH.newIssueDetailsPagePreferences);this.teamWarningPreferences$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.teamWarningPreferences)?
c:Ii(pH.teamWarningPreferences)}),Lk());this.teamWarningPreferencesSubject$=Jk(this.teamWarningPreferences$.pipe(fg(this.destroyed$)),pH.teamWarningPreferences);this.codeFont$=this.preferences$.pipe(R(function(b){return!!b.useCodefont}),Sf());this.autoCcOnComment$=this.preferences$.pipe(R(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),Sf());this.showFullHistory$=this.preferences$.pipe(R(function(b){return!!b.showFullHistory}),Sf());this.showRecentEventsFirst$=this.preferences$.pipe(R(function(b){return!!b.showRecentEventsFirst}),
Sf())};PI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};PI.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};var kFb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(R(a.getLayoutPreferences))},lFb=function(a,b){return a.save({homepagePreferences:b}).pipe(R(a.getHomepagePreferences))};
PI.prototype.getDateTimePreferences=function(){var a;return null!=(a=(void 0).dateTimePreferences)?a:Ii(pH.dateTimePreferences)};PI.prototype.clearHomepagePreferences=function(){return lFb(this,{})};var mFb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(R(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};
PI.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(R(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var nFb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(R(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:Ii(pH.teamWarningPreferences)}))};PI.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:Ii(pH.layoutPreferences)};
PI.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:Ii(pH.homepagePreferences)};PI.\u0275fac=function(a){return new (a||PI)(t(QI))};PI.\u0275prov=hc({token:PI,factory:PI.\u0275fac,providedIn:"root"});var QI=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new T.BehaviorSubject(Ii(pH));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),oFb(a);this.preferences$.next(a)};
QI.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,T.of)(pFb(this,a)):jFb(this.userPreferencesResources,a).pipe(R(function(){return pFb(b,a)}))};
var pFb=function(a,b){var c=Ii(a.preferences$.value);c=Object.assign({},c,b);oFb(c);a.preferences$.next(c);return c},oFb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=pH.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=pH.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=pH.dateTimePreferences.sloEtaViewAs))};
QI.\u0275fac=function(a){return new (a||QI)(t(qH),t(OI))};QI.\u0275prov=hc({token:QI,factory:QI.\u0275fac,providedIn:"root"});
/*

 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 qFb=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||""};
oi.Object.defineProperties(qFb.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++)"mod"===e[f]&&(window.navigator&&0<=window.navigator.platform.indexOf("Mac")?e[f]="command":e[f]="ctrl"),e[f]=d[e[f]]||e[f];a[c]=e.join(" + ")}this._formatted=
a}return this._formatted}}});
var rFb=new od("HotkeyOptions");
var RI=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new T.Subject;this.preventIn=["INPUT","SELECT","TEXTAREA"];Mousetrap.prototype.stopCallback=function(b,c){return-1<(" "+c.className+" ").indexOf(" mousetrap ")?!1:c.contentEditable&&"true"===c.contentEditable};this.mousetrap=new Mousetrap;this.options.disableCheatSheet||this.add(new qFb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new qFb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=RI.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=r(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var u=h.target,y=u.nodeName.toUpperCase();-1<(" "+u.className+" ").indexOf(" mousetrap ")?q=!0:-1<c.preventIn.indexOf(y)&&-1===a.allowIn.map(function(D){return D.toUpperCase()}).indexOf(y)&&(q=!1)}if(q)return a.callback.apply(c,[h,k])},b);return a};
g.remove=function(a){var b=[];if(!a){var c=r(this.hotkeys);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}if(Array.isArray(a)){c=r(a);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}b=this.hotkeys.indexOf(a);return-1<b?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
g.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=r(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(-1<this.hotkeys[b].combo.indexOf(a))return this.hotkeys[b];return null};g.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
g.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return-1<b?(this.add(a),this.pausedHotkeys.splice(b,1)):null};g.reset=function(){this.mousetrap.reset()};RI.\u0275fac=function(a){return new (a||RI)(t(rFb))};RI.\u0275prov=hc({token:RI,factory:RI.\u0275fac});
var SI=function(){};SI.\u0275fac=function(a){return new (a||SI)};SI.\u0275mod=xc({type:SI});SI.\u0275inj=ic({imports:[ay]});
var sFb;
Aja("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var tFb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),TI=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},UI=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(sFb||(c={},sFb=(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=sFb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},VI=function(a,b){var c="";b&&(c=b.id);UI(a,"activedescendant",c)};
var WI=function(a,b,c,d){qI.call(this);var e=this;this.rawHotkeysService=c;this.ngZone=d;this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;this.stopCallback=function(f,h){if(!e.enabled||e.paused)h=!0;else if(-1<(" "+h.className+" ").indexOf(" mousetrap "))h=!1;else{if(f=h.getAttribute)f=h.getAttribute("role")||null,f=wa(tFb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||uFb(h)?!0:!1}return h};b.keyboardPrefs$.pipe(fg(this.destroyed$)).subscribe(function(f){f&&
(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(fg(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){vFb(e)})};U(WI,qI);WI.\u0275dir=qI.\u0275dir;WI.prototype.isEnabled=function(){return this.enabled};
var XI=function(a,b){var c=b.title,d=b.hotkeys,e;b=null!=(e=a.hotkeyGroups.get(c))?e:[];a.hotkeyGroups.set(c,[].concat(v(b),v(d)));wFb(a);return function(){var f=new Set(d.map(function(q){return q.onPress})),h,k=(null!=(h=a.hotkeyGroups.get(c))?h:[]).filter(function(q){return!f.has(q.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);wFb(a)}},vFb=function(a){var b=[].concat(v(a.rawHotkeysService.hotkeys));b=r(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},wFb=function(a){vFb(a);for(var b=r(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){var d=xFb(a,c.value);c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$binding$1664:c.$jscomp$loop$prop$binding$1664},e=d.next())c.$jscomp$loop$prop$binding$1664=e.value,e=new qFb(loa(c.$jscomp$loop$prop$binding$1664.key),function(f){return function(h){a.ngZone.run(function(){f.$jscomp$loop$prop$binding$1664.command()});h.stopPropagation();return!1}}(c)),a.rawHotkeysService.add(e)}},
uFb=function(a){return[].concat(v(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return"static"===b.style.position}).some(function(b){return b.contains(a)})},xFb=function(a,b){var c=[],d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$hotkeySpec$1666:d.$jscomp$loop$prop$hotkeySpec$1666},e=b.next()){d.$jscomp$loop$prop$hotkeySpec$1666=e.value;e={};for(var f=r(d.$jscomp$loop$prop$hotkeySpec$1666.keys.entries()),h=f.next();!h.done;e={$jscomp$loop$prop$index$1668:e.$jscomp$loop$prop$index$1668},
h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$index$1668=h;c.push(new yFb(k,function(q,u){return function(){a.ngZone.run(function(){q.$jscomp$loop$prop$hotkeySpec$1666.onPress(u.$jscomp$loop$prop$index$1668)})}}(d,e)))}}oaa(c,function(q,u){return q.strokeLength>u.strokeLength?-1:q.strokeLength<u.strokeLength?1:0});return c};WI.prototype.pause=function(){this.paused=!0};WI.prototype.unpause=function(){this.paused=!1};
var zFb=function(a){return[].concat(v(a.hotkeyGroups.entries())).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Hj(c,Lpa)}})};WI.\u0275fac=function(a){return new (a||WI)(t(NI),t(PI),t(RI),t(mg))};WI.\u0275prov=hc({token:WI,factory:WI.\u0275fac,providedIn:"root"});var yFb=function(a,b){this.key=a;this.command=b;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};
var YI=function(a,b){qI.call(this);this.hotkeys=a;this.tooltip=b;this.onHotkey=new Vw};U(YI,qI);YI.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip){var b;a=null!=(b=this.hotkey.displayAs)?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};YI.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(XI(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};
YI.\u0275fac=function(a){return new (a||YI)(C(WI),C(wF,8))};YI.\u0275dir=w({type:YI,selectors:[["","hotkey",""]],inputs:{hotkey:"hotkey",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[ee,Fc]});
var ZI=function(){};ZI.\u0275fac=function(a){return new (a||ZI)};ZI.\u0275mod=xc({type:ZI});ZI.\u0275inj=ic({providers:[]});
var $I=function(a){this.hotkeys=a};$I.prototype.ngOnInit=function(){this.hotkeys.pause()};$I.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};$I.\u0275fac=function(a){return new (a||$I)(C(WI))};
$I.\u0275cmp=w({type:$I,selectors:[["b-hotkeys-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",1,"gmat-button","medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Keyboard shortcuts"),G(),F(2,"mat-dialog-content")(3,"table"),M(4,Npa,6,2,"thead",1),G()(),F(5,"mat-dialog-actions")(6,"button",2),O(7,"Close"),G()());
a&2&&(B(4),E("ngForOf",zFb(b.hotkeys)))},dependencies:[Kx,FB,dC,eC,fC,gC],encapsulation:2});var aJ=function(){};aJ.\u0275fac=function(a){return new (a||aJ)};aJ.\u0275mod=xc({type:aJ});aJ.\u0275inj=ic({imports:[ay,wG,hC]});
var hcb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"4:"+a.alias}));
var bJ=function(){};bJ.prototype.adapt=function(a){var b,c=new AFb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};bJ.\u0275fac=function(a){return new (a||bJ)};bJ.\u0275prov=hc({token:bJ,factory:bJ.\u0275fac,providedIn:"root"});
var AFb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new T.Subject;this.inputs$=this.inputSubject.pipe(Vga(this.inputSubject.pipe(Of(this.bufferTimeMs,T.asapScheduler))));this.removeDuplicates=R(function(f){return[].concat(v(new Set(f)))});this.limitInputSize=R(function(f){for(var h=r(f.slice(e.maxBatchSize)),k=h.next();!k.done;k=h.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=
(0,T.pipe)(nf(function(f){try{return e.batchCall(f).pipe(Tf(),R(function(h){return{inputs:f,batchResponse:h,error:void 0}}),Pf(function(h){return(0,T.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,T.of)({inputs:f,batchResponse:void 0,error:h})}}),ag());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
AFb.prototype.get=function(a){var b=this;return new T.Observable(function(c){c=b.batchResults$.pipe(uf(function(d){return d.inputs.has(a)}),Tf(),R(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw new BFb(d.error,d.inputs);})).subscribe(c);b.inputSubject.next(a);return c})};var BFb=function(a,b){var c=Error.call(this,"Error in batch call");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.err=a;this.inputs=b;Object.setPrototypeOf(this,BFb.prototype)};
U(BFb,Error);
var cJ=function(a){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};
cJ.prototype.getValue=function(){return 0===this.numericValue?this.numericValue:this.textValue||this.dateValue||this.enumValue||this.numericValue||this.repeatedTextValue||this.repeatedDateValue||this.repeatedEnumValue||this.repeatedNumericValue||null};cJ.prototype.isEmpty=function(){var a=this.getValue();return null==a?!0:"string"===typeof a?""===a:"number"===typeof a?!1:null!=a.values?0===a.values.length:!a||!a.day||!a.month||!a.year};
var CFb=function(a){return a?Rk(Pi(a)):null},DFb=function(a){return a?(a=EC(a),isNaN(a)?null:a):null};
var jl=function(a){Z.call(this,a)};U(jl,Z);jl.prototype.getCustomFieldId=function(){return hj(this,sb(this,dJ,1))};jl.prototype.setCustomFieldId=function(a){return ho(this,1,dJ,a)};jl.prototype.hasCustomFieldId=function(){return 1===rb(this,dJ)};jl.prototype.setStandardField=function(a){ho(this,2,dJ,a)};var dJ=[1,2];jl.prototype.toObject=function(){return eJ(void 0,this)};
var eJ=function(a,b){if(null!=b){var c={customFieldId:n(Ur(b,1,dJ)),standardField:n(Ur(b,2,dJ))};a&&(c.$jspbMessageInstance=b);return c}};jl.messageId="b.FieldId";
var fJ=function(a){Z.call(this,a)};U(fJ,Z);fJ.prototype.setStateOnIssues=function(a){l(this,2,a)};fJ.prototype.setEnabledOnIssues=function(a){l(this,3,a)};fJ.prototype.toObject=function(){var a=null!=this?{fieldId:eJ(void 0,m(this,jl,1)),stateOnIssues:n(p(this,2)),enabledOnIssues:n(Xo(this,3))}:void 0;return a};var EFb={UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3};fJ.messageId="b.FieldConfig";
var Hs=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues=1;this.type="TEXT";this.fieldSignificance="MINOR"};Hs.prototype.isDate=function(){return"DATE"===this.type};Hs.prototype.isText=function(){return"TEXT"===this.type};Hs.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var kl=function(a){var b=new Hs;b.customFieldId=a.customFieldId;b.componentId=a.componentId;b.name=a.name;b.type=a.type;b.description=a.description||"";a.typedDefaultValue&&(b.typedDefaultValue=new cJ(a.typedDefaultValue));b.required=!!a.required;b.fieldSignificance=a.fieldSignificance||"MINOR";b.allowedValue=a.allowedValue||null;b.stateOnIssues=EFb[a.stateOnIssues]||1;a=a.enabledOnIssues;b.enabledOnIssues=null==a?!0:a;return b};
var Sk=function(a){Z.call(this,a)};U(Sk,Z);Sk.prototype.getAccessLevel=function(){return Y(this,1,0)};Sk.prototype.setAccessLevel=function(a){l(this,1,a)};Sk.prototype.toObject=function(){return FFb(void 0,this)};var FFb=function(a,b){if(null!=b){var c={accessLevel:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};Sk.messageId="b.AccessLimit";
var ll=function(a){Z.call(this,a,-1,GFb)};U(ll,Z);g=ll.prototype;g.getCustomFieldId=function(){return nj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return gj(this,1)};g.setTextValue=function(a){ho(this,4,gJ,a)};g.getDateValue=function(){return Bl(this,Wk,5,gJ)};g.setDateValue=function(a){Cu(this,5,gJ,a)};g.setEnumValue=function(a){ho(this,6,gJ,a)};g.setNumericValue=function(a){ho(this,7,gJ,a)};g.getRepeatedTextValue=function(){return Bl(this,nl,8,gJ)};
g.setRepeatedTextValue=function(a){Cu(this,8,gJ,a)};g.getRepeatedDateValue=function(){return Bl(this,pl,9,gJ)};g.setRepeatedDateValue=function(a){Cu(this,9,gJ,a)};g.getRepeatedEnumValue=function(){return Bl(this,nl,10,gJ)};g.setRepeatedEnumValue=function(a){Cu(this,10,gJ,a)};g.getRepeatedNumericValue=function(){return Bl(this,ol,11,gJ)};g.setRepeatedNumericValue=function(a){Cu(this,11,gJ,a)};var nl=function(a){Z.call(this,a,-1,HFb)};U(nl,Z);nl.prototype.getValuesList=function(){return lb(this,1)};
nl.prototype.setValuesList=function(a){ml(this,1,a)};var pl=function(a){Z.call(this,a,-1,IFb)};U(pl,Z);pl.prototype.getValuesList=function(){return tb(this,Wk,1)};pl.prototype.setValuesList=function(a){Cb(this,1,a)};var ol=function(a){Z.call(this,a,-1,JFb)};U(ol,Z);ol.prototype.getValuesList=function(){return mb(this,1,Number)};ol.prototype.setValuesList=function(a){ml(this,1,a)};var GFb=[12],gJ=[4,5,6,7,8,9,10,11];ll.prototype.toObject=function(){return KFb(void 0,this)};
var KFb=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),displayValuesList:n(lb(b,12)),textValue:n(Ur(b,4,gJ)),dateValue:Lv(a,b.getDateValue()),enumValue:n(Ur(b,6,gJ)),numericValue:n(yu(b,sb(b,gJ,7))),repeatedTextValue:LFb(a,b.getRepeatedTextValue()),repeatedDateValue:MFb(a,b.getRepeatedDateValue()),repeatedEnumValue:LFb(a,b.getRepeatedEnumValue()),repeatedNumericValue:NFb(a,b.getRepeatedNumericValue())};a&&(c.$jspbMessageInstance=b);return c}},HFb=[1];
nl.prototype.toObject=function(){return LFb(void 0,this)};var LFb=function(a,b){if(null!=b){var c={valuesList:n(lb(b,1))};a&&(c.$jspbMessageInstance=b);return c}},IFb=[1];pl.prototype.toObject=function(){return MFb(void 0,this)};var MFb=function(a,b){if(null!=b){var c={valuesList:Eb(b.getValuesList(),Lv,a)};a&&(c.$jspbMessageInstance=b);return c}},JFb=[1];ol.prototype.toObject=function(){return NFb(void 0,this)};
var NFb=function(a,b){if(null!=b){var c={valuesList:n(mb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var ql=function(a){Z.call(this,a,-1,OFb)};U(ql,Z);g=ql.prototype;g.getCustomFieldId=function(){return nj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return gj(this,1)};g.getComponentId=function(){return nj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return gj(this,2)};g.getType=function(){return Y(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return gj(this,3)};
g.setRequired=function(a){l(this,4,a)};g.getName=function(){return V(this,5)};g.setName=function(a){return l(this,5,a)};g.hasName=function(){return gj(this,5)};g.getDescription=function(){return V(this,6)};g.setDescription=function(a){return l(this,6,a)};g.getTypedDefaultValue=function(){return m(this,ll,10)};g.setTypedDefaultValue=function(a){Db(this,10,a)};g.setFieldSignificance=function(a){return l(this,9,a)};g.setStateOnIssues=function(a){l(this,11,a)};
g.setEnabledOnIssues=function(a){l(this,12,a)};var OFb=[8];ql.prototype.toObject=function(){return hJ(void 0,this)};var hJ=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),componentId:n(p(b,2)),type:n(p(b,3)),required:n(Xo(b,4)),name:n(p(b,5)),description:n(p(b,6)),typedDefaultValue:KFb(a,b.getTypedDefaultValue()),allowedValueList:n(lb(b,8)),fieldSignificance:n(p(b,9)),stateOnIssues:n(p(b,11)),enabledOnIssues:n(Xo(b,12))};a&&(c.$jspbMessageInstance=b);return c}};
var rl=function(a){Z.call(this,a)};U(rl,Z);g=rl.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return qo(this,1,a)};g.getId=function(){return hj(this,2)};g.setId=function(a){return Xk(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return yl(this,3,a)};var oqa=function(a,b){Cu(a,4,Al,b)},Dl=function(a){return Bl(a,tl,5,Al)},qqa=function(a,b){Cu(a,5,Al,b)};rl.prototype.getCustomFieldId=function(){return hj(this,100)};
rl.prototype.setCustomFieldId=function(a){return Xk(this,100,a)};var sl=function(a){Z.call(this,a)};U(sl,Z);var pqa=function(a,b){return pb(a,1,b,0)},tl=function(a){Z.call(this,a,-1,PFb)};U(tl,Z);tl.prototype.getOptionsList=function(){return tb(this,ul,1)};tl.prototype.setOptionsList=function(a){return Cb(this,1,a)};var ul=function(a){Z.call(this,a)};U(ul,Z);ul.prototype.getLabel=function(){return V(this,1)};ul.prototype.setLabel=function(a){return yl(this,1,a)};
ul.prototype.getValue=function(){return Cl(this,2)};ul.prototype.setValue=function(a){return pb(this,2,a,0)};var Al=[4,5];rl.prototype.toObject=function(){return QFb(void 0,this)};var QFb=function(a,b){if(null!=b){var c={inherit:W(b,1),id:hj(b,2),name:V(b,3),numericSpec:RFb(a,Bl(b,sl,4,Al)),enumSpec:SFb(a,Dl(b)),aggregationType:Y(b,6,0),customFieldId:hj(b,100)};a&&(c.$jspbMessageInstance=b);return c}},TFb={AGGREGATION_TYPE_UNSPECIFIED:0,SUM:1,MAX:2};
sl.prototype.toObject=function(){return RFb(void 0,this)};var RFb=function(a,b){if(null!=b){var c={multiplier:Cl(b,1)};a&&(c.$jspbMessageInstance=b);return c}},PFb=[1];tl.prototype.toObject=function(){return SFb(void 0,this)};var SFb=function(a,b){if(null!=b){var c={optionsList:Eb(b.getOptionsList(),UFb,a)};a&&(c.$jspbMessageInstance=b);return c}};ul.prototype.toObject=function(){return UFb(void 0,this)};
var UFb=function(a,b){if(null!=b){var c={label:V(b,1),value:Cl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Il=function(a){Z.call(this,a)};U(Il,Z);g=Il.prototype;g.getResourcePath=function(){return V(this,2)};g.setResourcePath=function(a){return l(this,2,a)};g.hasResourcePath=function(){return gj(this,2)};g.getSeverity=function(){return Y(this,3,0)};g.setSeverity=function(a){return l(this,3,a)};g.getJudgementReason=function(){return V(this,4)};g.setJudgementReason=function(a){return l(this,4,a)};g.toObject=function(){return iJ(void 0,this)};
var iJ=function(a,b){if(null!=b){var c={contentJudgementId:n(p(b,1)),resourcePath:n(p(b,2)),severity:n(p(b,3)),judgementReason:n(p(b,4)),contentJudge:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};Il.messageId="b.ContentJudgement";
var VFb={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3};
var Ll=function(a){Z.call(this,a)};U(Ll,Z);Ll.prototype.getSeverity=function(){return Y(this,1,0)};Ll.prototype.setSeverity=function(a){return l(this,1,a)};Ll.prototype.toObject=function(){return WFb(void 0,this)};var WFb=function(a,b){if(null!=b){var c={severity:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var cm=function(a){Z.call(this,a)};U(cm,Z);cm.prototype.toObject=function(){return XFb(void 0,this)};var XFb=function(a,b){if(null!=b){var c={piiVerdict:WFb(a,m(b,Ll,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Jl=function(a){Z.call(this,a)};U(Jl,Z);Jl.prototype.hasRetentionSelection=function(){return gj(this,1)};Jl.prototype.toObject=function(){return YFb(void 0,this)};var YFb=function(a,b){if(null!=b){var c={retentionSelection:n(p(b,1)),retentionPeriodDays:n(p(b,2)),piiRetentionSelection:n(p(b,3)),piiRetentionPeriodDays:n(p(b,4)),spiiRetentionPeriodDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var lm=function(a){Z.call(this,a)};U(lm,Z);g=lm.prototype;g.getRetentionPeriod=function(){return m(this,mm,1)};g.setRetentionPeriod=function(a){Db(this,1,a)};g.hasRetentionPeriod=function(){return oj(this,1)};g.getScheduledDeletionTime=function(){return m(this,vj,2)};g.setScheduledDeletionTime=function(a){Db(this,2,a)};g.hasScheduledDeletionTime=function(){return oj(this,2)};g.toObject=function(){return jJ(void 0,this)};
var jJ=function(a,b){if(null!=b){var c={retentionPeriod:Tu(a,b.getRetentionPeriod()),scheduledDeletionTime:Zu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};lm.messageId="b.RetentionState";
var kJ=function(a){Z.call(this,a)};U(kJ,Z);kJ.prototype.getTeamId=function(){return hj(this,1)};kJ.prototype.setTeamId=function(a){return Xk(this,1,a)};kJ.prototype.getEffectiveSloEditPolicy=function(){return Y(this,3,0)};kJ.prototype.toObject=function(){return ZFb(this)};var ZFb=function(a){if(null!=a)return{teamId:hj(a,1),sloEditPolicy:Y(a,2,0),effectiveSloEditPolicy:Y(a,3,0)}};
var Ol=function(a){Z.call(this,a)};U(Ol,Z);g=Ol.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSource=function(){return Y(this,2,0)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return gj(this,2)};g.getId=function(){return nj(this,3)};g.setId=function(a){return l(this,3,a)};g.getSourceTeamId=function(){return nj(this,5)};g.setSourceTeamId=function(a){l(this,5,a)};g.getComment=function(){return V(this,4)};
g.setComment=function(a){return l(this,4,a)};g.toObject=function(){return $Fb(void 0,this)};var $Fb=function(a,b){if(null!=b){var c={inherit:n(Xo(b,1)),source:n(p(b,2)),id:n(p(b,3)),sourceTeamId:n(p(b,5)),sourceComponentId:n(p(b,6)),comment:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Nl=function(a){Z.call(this,a)};U(Nl,Z);g=Nl.prototype;g.getStartTime=function(){return m(this,vj,1)};g.setStartTime=function(a){Db(this,1,a)};g.getEndTime=function(){return m(this,vj,2)};g.setEndTime=function(a){Db(this,2,a)};g.hasEndTime=function(){return oj(this,2)};g.getTargetTime=function(){return m(this,vj,3)};g.setTargetTime=function(a){Db(this,3,a)};g.hasTargetTime=function(){return oj(this,3)};g.toObject=function(){return aGb(void 0,this)};
var aGb=function(a,b){if(null!=b){var c={startTime:Zu(a,b.getStartTime()),endTime:Zu(a,b.getEndTime()),targetTime:Zu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};
var nm=function(a){Z.call(this,a)};U(nm,Z);g=nm.prototype;g.getAssignmentBounds=function(){return m(this,Nl,1)};g.setAssignmentBounds=function(a){Db(this,1,a)};g.hasAssignmentBounds=function(){return oj(this,1)};g.getResponseBounds=function(){return m(this,Nl,2)};g.setResponseBounds=function(a){Db(this,2,a)};g.hasResponseBounds=function(){return oj(this,2)};g.getClosureBounds=function(){return m(this,Nl,3)};g.setClosureBounds=function(a){Db(this,3,a)};
g.hasClosureBounds=function(){return oj(this,3)};g.toObject=function(){return bGb(void 0,this)};var bGb=function(a,b){if(null!=b){var c={assignmentBounds:aGb(a,b.getAssignmentBounds()),responseBounds:aGb(a,b.getResponseBounds()),closureBounds:aGb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};
var Vl=function(a){Z.call(this,a,-1,cGb)};U(Vl,Z);g=Vl.prototype;g.getEmailAddress=function(){return V(this,1)};g.setEmailAddress=function(a){return l(this,1,a)};g.getObfuscatedEmailAddress=function(){return V(this,2)};g.setObfuscatedEmailAddress=function(a){l(this,2,a)};g.getUserGaiaStatus=function(){return Y(this,3,0)};g.setUserGaiaStatus=function(a){l(this,3,a)};g.getAliasesList=function(){return lb(this,4)};g.setAliasesList=function(a){ml(this,4,a)};var cGb=[4];
Vl.prototype.toObject=function(){return lJ(void 0,this)};var lJ=function(a,b){if(null!=b){var c={emailAddress:n(p(b,1)),obfuscatedEmailAddress:n(p(b,2)),userGaiaStatus:n(p(b,3)),aliasesList:n(lb(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var mJ=function(a){Z.call(this,a)};U(mJ,Z);mJ.prototype.getIssueId=function(){return nj(this,1)};mJ.prototype.setIssueId=function(a){return l(this,1,a)};mJ.prototype.setReason=function(a){l(this,2,a)};mJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),reason:n(p(this,2))}:void 0;return a};mJ.messageId="b.DeleteIssueRequest";
var em=function(a){Z.call(this,a)};U(em,Z);em.prototype.getFieldName=function(){return V(this,1)};var fra=function(a,b){return l(a,1,b)};g=em.prototype;g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.getActionType=function(){return Y(this,3,0)};g.setActionType=function(a){l(this,3,a)};g.getCustomFieldValue=function(){return m(this,ll,5)};g.setCustomFieldValue=function(a){return Db(this,5,a)};
g.clearCustomFieldValue=function(){return Db(this,5)};g.hasCustomFieldValue=function(){return oj(this,5)};g.toObject=function(){return dGb(void 0,this)};var dGb=function(a,b){if(null!=b){var c={fieldName:n(p(b,1)),value:n(p(b,2)),actionType:n(p(b,3)),customFieldValue:KFb(a,b.getCustomFieldValue())};a&&(c.$jspbMessageInstance=b);return c}};
var km=function(a){Z.call(this,a)};U(km,Z);g=km.prototype;g.setVoteCount=function(a){l(this,1,a)};g.getCreatedTimeMicros=function(){return hj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getModifiedTimeMicros=function(){return hj(this,3)};g.setModifiedTimeMicros=function(a){l(this,3,a)};g.getSloStatus=function(){return m(this,nm,6)};g.setSloStatus=function(a){Db(this,6,a)};g.getSloId=function(){return nj(this,7)};g.setSloId=function(a){return l(this,7,a)};
g.getTeamId=function(){return nj(this,9)};g.setTeamId=function(a){return l(this,9,a)};g.getRetentionState=function(){return m(this,lm,8)};g.setRetentionState=function(a){Db(this,8,a)};g.toObject=function(){return eGb(void 0,this)};
var eGb=function(a,b){if(null!=b){var c={voteCount:n(p(b,1)),createdTimeMicros:n(p(b,2)),modifiedTimeMicros:n(p(b,3)),resolvedTimeMicros:n(p(b,4)),verifiedTimeMicros:n(p(b,5)),sloStatus:bGb(a,b.getSloStatus()),sloId:n(p(b,7)),teamId:n(p(b,9)),retentionState:jJ(a,b.getRetentionState())};a&&(c.$jspbMessageInstance=b);return c}};
var $l=function(a){Z.call(this,a,-1,fGb)};U($l,Z);g=$l.prototype;g.getCreatedTimeMicros=function(){return hj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getComponentId=function(){return nj(this,3)};g.setComponentId=function(a){return l(this,3,a)};g.hasComponentId=function(){return gj(this,3)};g.getVersion=function(){return hj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getType=function(){return Y(this,5,0)};g.setType=function(a){return l(this,5,a)};
g.hasType=function(){return gj(this,5)};g.getStatus=function(){return Y(this,6,0)};g.setStatus=function(a){return l(this,6,a)};g.hasStatus=function(){return gj(this,6)};g.getPriority=function(){return Y(this,7,0)};g.setPriority=function(a){return l(this,7,a)};g.getSeverity=function(){return Y(this,8,0)};g.setSeverity=function(a){return l(this,8,a)};g.getTitle=function(){return V(this,9)};g.setTitle=function(a){return l(this,9,a)};g.setPostmortemsList=function(a){ml(this,35,a)};
g.setInProd=function(a){l(this,22,a)};g.setHotlistIdList=function(a){ml(this,23,a)};g.getRetention=function(){return Y(this,42,0)};g.setRetention=function(a){l(this,42,a)};g.setIsDeleted=function(a){l(this,27,a)};g.setDeletionReason=function(a){l(this,28,a)};g.setSignificanceOverride=function(a){l(this,29,a)};g.getIsArchived=function(){return W(this,31)};g.setIsArchived=function(a){l(this,31,a)};g.getComment=function(){return V(this,25)};g.setComment=function(a){return l(this,25,a)};
g.getFormattingMode=function(){return Y(this,45,0)};g.setFormattingMode=function(a){return l(this,45,a)};g.getCommentContentVerdict=function(){return m(this,cm,46)};g.setCommentContentVerdict=function(a){Db(this,46,a)};g.hasCommentContentVerdict=function(){return oj(this,46)};g.getSloSnoozeUntil=function(){return m(this,vj,34)};g.setSloSnoozeUntil=function(a){Db(this,34,a)};g.getEffort=function(){return m(this,xl,50)};g.setEffort=function(a){Db(this,50,a)};
var fGb=[40,51,14,16,17,18,35,19,20,21,23,24,30];$l.prototype.toObject=function(){return nJ(void 0,this)};
var nJ=function(a,b){if(null!=b){var c={authorUser:lJ(a,m(b,Vl,36)),createdTimeMicros:n(p(b,2)),componentId:n(p(b,3)),version:n(p(b,4)),type:n(p(b,5)),status:n(p(b,6)),priority:n(p(b,7)),severity:n(p(b,8)),title:n(p(b,9)),reporterUser:lJ(a,m(b,Vl,37)),assigneeUser:lJ(a,m(b,Vl,38)),verifierUser:lJ(a,m(b,Vl,39)),ccUsersList:Eb(tb(b,Vl,40),lJ,a),collaboratorUsersList:Eb(tb(b,Vl,51),lJ,a),attachmentIdList:n(lb(b,14)),duplicateOfIssueId:n(p(b,15)),blockedByIssueIdList:n(lb(b,16)),blockingIssueIdList:n(lb(b,
17)),changelistList:n(lb(b,18)),postmortemsList:n(lb(b,35)),foundInVersionList:n(lb(b,19)),targetedToVersionList:n(lb(b,20)),verifiedInVersionList:n(lb(b,21)),inProd:n(Xo(b,22)),hotlistIdList:n(lb(b,23)),customFieldList:Eb(tb(b,ll,24),KFb,a),retention:n(p(b,42)),isDeleted:n(Xo(b,27)),deletionReason:n(p(b,28)),significanceOverride:n(p(b,29)),duplicateIssueIdList:n(lb(b,30)),isArchived:n(Xo(b,31)),comment:n(p(b,25)),formattingMode:n(p(b,45)),commentRedacted:n(Xo(b,49)),snapshotNumber:n(p(b,26)),lastCommentEditorUser:lJ(a,
m(b,Vl,41)),commentLastModifiedAtMicros:n(p(b,33)),commentVersion:n(p(b,43)),commentDeletionStatus:n(p(b,44)),commentContentVerdict:XFb(a,b.getCommentContentVerdict()),commentRetention:n(p(b,47)),commentRetentionState:jJ(a,m(b,lm,48)),sloSnoozeUntil:Zu(a,b.getSloSnoozeUntil()),effort:LCb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var jm=function(a){Z.call(this,a)};U(jm,Z);g=jm.prototype;g.getStarred=function(){return W(this,1)};g.setStarred=function(a){l(this,1,a)};g.hasStarred=function(){return gj(this,1)};g.getVoted=function(){return W(this,2)};g.setVoted=function(a){return l(this,2,a)};g.setNotificationSubscription=function(a){return l(this,4,a)};g.toObject=function(){return gGb(void 0,this)};
var gGb=function(a,b){if(null!=b){var c={starred:n(Xo(b,1)),voted:n(Xo(b,2)),notificationSubscription:n(p(b,4)),lastViewedTimeMicros:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};jm.messageId="b.IssueUserData";
var im=function(a){Z.call(this,a,-1,hGb)};U(im,Z);g=im.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getUserData=function(){return m(this,jm,3)};g.setUserData=function(a){Db(this,3,a)};g.getParentIssueIdsList=function(){return lb(this,8)};g.setParentIssueIdsList=function(a){ml(this,8,a)};g.getAccessLimit=function(){return m(this,Sk,5)};g.setAccessLimit=function(a){return Db(this,5,a)};g.getVisibleFieldsList=function(){return tb(this,jl,6)};
g.setVisibleFieldsList=function(a){Cb(this,6,a)};g.getAncestorsMap=function(){return bj(this,9,om)};g.getChildIssueCount=function(){return hj(this,10)};g.setChildIssueCount=function(a){l(this,10,a)};g.getIsArchived=function(){return W(this,11)};g.setIsArchived=function(a){l(this,11,a)};g.getRelatedLinksList=function(){return tb(this,yCb,12)};var hGb=[2,8,6,12];im.prototype.toObject=function(){return oJ(void 0,this)};
var oJ=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),snapshotList:Eb(tb(b,$l,2),nJ,a),userData:gGb(a,b.getUserData()),aggregatedData:eGb(a,m(b,km,4)),parentIssueIdsList:n(lb(b,8)),accessLimit:FFb(a,b.getAccessLimit()),visibleFieldsList:Eb(b.getVisibleFieldsList(),eJ,a),majorModifiedTimeMicros:n(p(b,7)),ancestorsMap:Gb(b.getAncestorsMap(),a,JCb),childIssueCount:n(p(b,10)),isArchived:n(Xo(b,11)),relatedLinksList:Eb(b.getRelatedLinksList(),zCb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var hm=function(a){Z.call(this,a)};U(hm,Z);g=hm.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getPosition=function(){return hj(this,2)};g.setPosition=function(a){return l(this,2,a)};g.getIssue=function(){return m(this,im,3)};g.setIssue=function(a){Db(this,3,a)};g.toObject=function(){return iGb(this)};var iGb=function(a){if(null!=a)return{issueId:n(p(a,1)),position:n(p(a,2)),issue:oJ(void 0,a.getIssue())}};hm.messageId="b.HotlistIssue";
var kGb=function(a){Z.call(this,a,-1,jGb)};U(kGb,Z);g=kGb.prototype;g.getSnapshot=function(){return m(this,$l,1)};g.setSnapshot=function(a){Db(this,1,a)};g.getAttachmentsList=function(){return mb(this,2,cb)};g.setAttachmentsList=function(a){ml(this,2,a)};g.getTemplateId=function(){return nj(this,4)};g.setTemplateId=function(a){l(this,4,a)};g.getContentJudgement=function(){return m(this,Il,5)};g.setContentJudgement=function(a){return Db(this,5,a)};var jGb=[2,3];
kGb.prototype.toObject=function(){var a=null!=this?{snapshot:nJ(void 0,this.getSnapshot()),attachmentsList:Hb(this.getAttachmentsList()),attachmentStringsList:n(lb(this,3)),templateId:n(p(this,4)),contentJudgement:iJ(void 0,this.getContentJudgement())}:void 0;return a};
var fm=function(a){Z.call(this,a,-1,lGb)};U(fm,Z);g=fm.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getActionsList=function(){return tb(this,em,2)};g.setActionsList=function(a){Cb(this,2,a)};g.getAttachmentsList=function(){return mb(this,3,cb)};g.setAttachmentsList=function(a){ml(this,3,a)};g.setSignificanceOverride=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return Y(this,6,0)};
g.setCommentDisplayOverride=function(a){l(this,6,a)};var lGb=[2,3,5];fm.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),actionsList:Eb(this.getActionsList(),dGb),attachmentsList:Hb(this.getAttachmentsList()),significanceOverride:n(p(this,4)),attachmentStringsList:n(lb(this,5)),commentDisplayOverride:n(p(this,6))}:void 0;return a};
var pJ=function(a){Z.call(this,a)};U(pJ,Z);pJ.prototype.getCount=function(){return hj(this,2)};pJ.prototype.setCount=function(a){l(this,2,a)};pJ.prototype.getNextPageToken=function(){return V(this,5)};pJ.prototype.toObject=function(){var a=null!=this?{q:n(p(this,1)),count:n(p(this,2)),s:n(p(this,3)),p:n(p(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};
var cra=function(a){Z.call(this,a)};U(cra,Z);g=cra.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return nj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return gj(this,2)};g.getCommentDisplayOverride=function(){return Y(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var ara=function(a){Z.call(this,a)};U(ara,Z);g=ara.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return nj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return gj(this,2)};g.getCommentDisplayOverride=function(){return Y(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var pm=function(a){Z.call(this,a,-1,mGb)};U(pm,Z);g=pm.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRelation=function(){return Y(this,3,0)};g.setRelation=function(a){l(this,3,a)};g.getActionType=function(){return Y(this,4,0)};g.setActionType=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return Y(this,5,0)};g.setCommentDisplayOverride=function(a){l(this,5,a)};var mGb=[2];
pm.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),targetIdsList:n(lb(this,2)),relation:n(p(this,3)),actionType:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var dm=function(a){Z.call(this,a)};U(dm,Z);g=dm.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentDisplayOverride=function(){return Y(this,2,0)};g.setCommentDisplayOverride=function(a){l(this,2,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentDisplayOverride:n(p(this,2))}:void 0;return a};dm.messageId="b.UnCcUserActionRequest";
var qJ=function(a){Z.call(this,a)};U(qJ,Z);qJ.prototype.getIssueId=function(){return nj(this,1)};qJ.prototype.setIssueId=function(a){return l(this,1,a)};qJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};qJ.messageId="b.UndeleteIssueRequest";
var gm=function(a){Z.call(this,a,-1,nGb)};U(gm,Z);gm.prototype.setAddHotlistIdsList=function(a){ml(this,1,a)};gm.prototype.setRemoveHotlistIdsList=function(a){ml(this,2,a)};var kra=function(a,b){Db(a,3,b)};gm.prototype.setSignificanceOverride=function(a){l(this,4,a)};gm.prototype.getCommentDisplayOverride=function(){return Y(this,5,0)};gm.prototype.setCommentDisplayOverride=function(a){l(this,5,a)};var nGb=[1,2];
gm.prototype.toObject=function(){var a=null!=this?{addHotlistIdsList:n(lb(this,1)),removeHotlistIdsList:n(lb(this,2)),hotlistIssue:iGb(m(this,hm,3)),significanceOverride:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var pra=function(a){Z.call(this,a)};U(pra,Z);g=pra.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRetention=function(){return Y(this,2,0)};g.setRetention=function(a){l(this,2,a)};g.setSignificanceOverride=function(a){l(this,3,a)};g.getCommentDisplayOverride=function(){return Y(this,4,0)};g.setCommentDisplayOverride=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),retention:n(p(this,2)),significanceOverride:n(p(this,3)),commentDisplayOverride:n(p(this,4))}:void 0;return a};
var qm=function(a){Z.call(this,a)};U(qm,Z);qm.prototype.getTeamId=function(){return hj(this,1)};qm.prototype.setTeamId=function(a){return Xk(this,1,a)};qm.prototype.toObject=function(){return oGb(void 0,this)};var oGb=function(a,b){if(null!=b){var c={teamId:hj(b,1),score:Cl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var rm=function(a){Z.call(this,a)};U(rm,Z);g=rm.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getId=function(){return nj(this,2)};g.setId=function(a){return l(this,2,a)};g.toObject=function(){return pGb(void 0,this)};var pGb=function(a,b){if(null!=b){var c={inherit:n(Xo(b,1)),id:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var sm=function(a){Z.call(this,a,-1,qGb)};U(sm,Z);var qGb=[1,2,4];sm.prototype.toObject=function(){return rGb(void 0,this)};var rGb=function(a,b){if(null!=b){var c={componentPathIdList:n(lb(b,1)),componentPathNameList:n(lb(b,2)),allCustomFieldList:Eb(tb(b,ql,4),hJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var um=function(a){Z.call(this,a,-1,sGb)};U(um,Z);g=um.prototype;g.getComponentId=function(){return nj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return gj(this,1)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return W(this,5)};
g.setArchived=function(a){l(this,5,a)};g.setHotlistIdList=function(a){ml(this,8,a)};g.getAccessLimit=function(){return m(this,Sk,12)};g.setAccessLimit=function(a){return Db(this,12,a)};g.setCommentEditState=function(a){return l(this,15,a)};g.getSloId=function(){return nj(this,16)};g.setSloId=function(a){return l(this,16,a)};g.getSlo=function(){return m(this,Ol,19)};g.setSlo=function(a){Db(this,19,a)};g.hasSlo=function(){return oj(this,19)};g.getRetentionSettings=function(){return m(this,Jl,21)};
g.setRetentionSettings=function(a){Db(this,21,a)};g.hasRetentionSettings=function(){return oj(this,21)};g.getTeam=function(){return m(this,rm,22)};g.setTeam=function(a){Db(this,22,a)};g.hasTeam=function(){return oj(this,22)};g.getEffortSpec=function(){return m(this,rl,24)};g.getTeamSuggestionsList=function(){return tb(this,qm,25)};g.setTeamSuggestionsList=function(a){Cb(this,25,a)};var sGb=[6,7,8,9,25];um.prototype.toObject=function(){return rJ(void 0,this)};
var rJ=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),parentComponentId:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),archived:n(Xo(b,5)),codenameList:n(lb(b,6)),customFieldIdList:n(lb(b,7)),hotlistIdList:n(lb(b,8)),templateIdList:n(lb(b,9)),componentPathInfo:rGb(a,m(b,sm,10)),accessLimit:FFb(a,b.getAccessLimit()),emailAlias:n(p(b,13)),userHasEditAccess:n(Xo(b,14)),commentEditState:n(p(b,15)),sloId:n(p(b,16)),effectiveSloId:n(p(b,17)),defaultTemplateId:n(p(b,18)),slo:$Fb(a,b.getSlo()),bugscopeSloId:n(p(b,
20)),retentionSettings:YFb(a,b.getRetentionSettings()),team:pGb(a,b.getTeam()),fieldOrdering:n(p(b,23)),effortSpec:QFb(a,b.getEffortSpec()),teamSuggestionsList:Eb(b.getTeamSuggestionsList(),oGb,a)};a&&(c.$jspbMessageInstance=b);return c}};um.messageId="b.Component";
var vm=function(a){Z.call(this,a)};U(vm,Z);g=vm.prototype;g.getTemplateId=function(){return hj(this,1)};g.setTemplateId=function(a){l(this,1,a)};g.getComponentId=function(){return nj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return gj(this,2)};g.getDefault=function(){return W(this,6)};g.setDefault=function(a){l(this,6,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};
g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getSnapshot=function(){return m(this,$l,5)};g.setSnapshot=function(a){Db(this,5,a)};g.toObject=function(){return tGb(void 0,this)};var tGb=function(a,b){if(null!=b){var c={templateId:n(p(b,1)),componentId:n(p(b,2)),pb_default:n(Xo(b,6)),name:n(p(b,3)),description:n(p(b,4)),snapshot:nJ(a,b.getSnapshot())};a&&(c.$jspbMessageInstance=b);return c}};
var sJ=function(a){Z.call(this,a)};U(sJ,Z);sJ.prototype.getSlo=function(){return m(this,Ol,1)};sJ.prototype.setSlo=function(a){Db(this,1,a)};sJ.prototype.hasSlo=function(){return oj(this,1)};sJ.prototype.toObject=function(){var a=null!=this?{slo:$Fb(void 0,this.getSlo())}:void 0;return a};sJ.messageId="b.UpdateComponentSloRequest";
var tJ=function(a){Z.call(this,a)};U(tJ,Z);tJ.prototype.getTeam=function(){return m(this,rm,1)};tJ.prototype.setTeam=function(a){Db(this,1,a)};tJ.prototype.hasTeam=function(){return oj(this,1)};tJ.prototype.toObject=function(){var a=null!=this?{team:pGb(void 0,this.getTeam())}:void 0;return a};tJ.messageId="b.UpdateComponentTeamRequest";
var uGb=function(){};uGb.prototype.get=function(a,b){return this.request(Object.assign({},b||{},{method:"get",url:a}))};uGb.prototype.delete=function(a,b){return this.request(Object.assign({},b||{},{method:"delete",url:a}))};uGb.prototype.post=function(a,b,c){return this.request(Object.assign({},c||{},{method:"post",url:a,data:b}))};var uJ=function(a){this.http=a};U(uJ,uGb);
uJ.prototype.request=function(a){a=Hra(a);a=this.http.request(a).pipe(uf(function(b){return 4===b.type}),R(function(b){return b}));return(0,T.firstValueFrom)(a).then(function(b){return{data:null!==b.body?b.body:void 0,headers:Ira(b.headers),status:b.status,statusText:b.statusText}},function(b){return Promise.reject({data:null!==b.error?b.error:void 0,headers:Ira(b.headers),status:b.status,statusText:b.statusText})})};uJ.\u0275fac=function(a){return new (a||uJ)(t(XE))};
uJ.\u0275prov=hc({token:uJ,factory:uJ.\u0275fac,providedIn:"root"});
var vGb=function(a){Z.call(this,a)};U(vGb,Z);vGb.prototype.toObject=function(){var a=null!=this?{component:rJ(void 0,m(this,um,1))}:void 0;return a};vGb.messageId="b.CreateComponentResponse";
var xGb=function(a){Z.call(this,a,-1,wGb)};U(xGb,Z);var wGb=[1];xGb.prototype.toObject=function(){var a=null!=this?{componentList:Eb(tb(this,um,1),rJ)}:void 0;return a};xGb.messageId="b.ListComponentsResponse";
var yGb=function(){},zGb=function(){},vJ=function(a){this.http=a};U(vJ,zGb);vJ.prototype.fetchComponent=function(a,b){b=void 0===b?{}:b;if(b.checkEditAccess)throw Error("Gc");return this.http.get("action/components/"+a).pipe(R(Gra))};
vJ.prototype.query=function(a){if(a.id)return a="action/components?"+a.id.map(function(c){return"id="+c}).join("&"),this.http.get(a).pipe(R(function(c){return Array.isArray(c)?c.map(ym).filter(xm):[]}));if(a.query){var b={params:{query:a.query}};a.includearchived&&(b.params.includearchived=!0);return this.http.get("action/components",b).pipe(R(function(c){return Array.isArray(c)?c.map(ym).filter(xm):[]}))}return(0,T.of)([])};vJ.\u0275fac=function(a){return new (a||vJ)(t(XE))};
vJ.\u0275prov=hc({token:vJ,factory:vJ.\u0275fac,providedIn:"root"});var wJ=function(a){this.$http=a};U(wJ,yGb);g=wJ.prototype;g.get=function(a){return this.query({id:[a]}).then(function(b){return b.length?b[0]:null})};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.fetchComponent=function(a,b){return this.$http.get("action/components/"+a,{params:b}).then(function(c){return wm(c.data)})};
g.query=function(a){return this.$http.get("action/components",{params:a}).then(function(b){return b.data.map(wm)})};g.create=function(a){return this.$http.post("action/components",a).then(function(b){return wm(b.data)})};g.update=function(a){var b=Era(a);return this.$http.post("action/components/"+a.componentId,b).then(function(c){return wm(c.data)})};g.move=function(a,b){return this.$http.post("action/components/"+a+"/move",{},{params:{parentId:b}}).then(function(c){return wm(c.data)})};
g.updateSlo=function(a,b){return this.$http.post("action/components/"+a+"/updateSlo",{slo:b}).then(function(c){return wm(c.data)})};g.updateTeam=function(a,b){return this.$http.post("action/components/"+a+"/updateTeam",{team:b}).then(function(c){return wm(c.data)})};wJ.\u0275fac=function(a){return new (a||wJ)(t(uJ))};wJ.\u0275prov=hc({token:wJ,factory:wJ.\u0275fac,providedIn:"root"});var xJ=function(a){this.executor=a};U(xJ,zGb);g=xJ.prototype;
g.get=function(a){return this.query({id:[a]}).pipe(R(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.fetchComponent=function(a,b){var c={};b.checkEditAccess&&(c.checkEditAccess="true");return this.executor.get({url:"action/components/"+a,options:{params:c},responseConstructor:um}).pipe(R(tm))};
g.query=function(a){var b={};a.id&&(b.id=a.id.map(String));a.parentId&&(b.parentId=String(a.parentId));a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");return this.executor.get({url:"action/components",options:{params:b},responseConstructor:xGb}).pipe(R(Fra))};g.create=function(a){a=yra(a);return this.executor.post({url:"action/components",body:a,responseConstructor:vGb}).pipe(R(function(b){return tm(m(b,um,1))}))};
g.update=function(a){var b=a.componentId,c=new um;c.setComponentId(String(a.componentId));l(c,2,String(a.parentComponentId));c.setName(a.name);c.setDescription(a.description);c.setArchived(a.archived);if(a.customFieldId){var d=a.customFieldId.map(String);ml(c,7,d)}if(a.componentPathInfo){var e=a.componentPathInfo;d=new sm;if(e.componentPathId){var f=e.componentPathId.map(String);ml(d,1,f)}e.componentPathName&&(f=e.componentPathName.map(String),ml(d,2,f));e.allCustomField&&(e=e.allCustomField.map(nqa),
Cb(d,4,e));Db(c,10,d)}a.accessLimit&&c.setAccessLimit(Tpa(a.accessLimit));l(c,13,a.emailAlias);a.userHasEditAccess&&l(c,14,a.userHasEditAccess);a.commentEditState&&c.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.slo&&c.setSlo(Cqa(a.slo));l(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(xqa(a.retentionSettings));a.fieldOrdering&&l(c,23,GAb[a.fieldOrdering]);a.effortSpec&&(d=wl(a.effortSpec),Db(c,24,d));a.team&&c.setTeam(ura(a.team));var h;c.setTeamSuggestionsList((null!=
(h=a.teamSuggestions)?h:[]).map(tra));return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:um}).pipe(R(tm))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:um}).pipe(R(tm))};g.updateSlo=function(a,b){var c=new sJ;c.setSlo(Cqa(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:um}).pipe(R(tm))};
g.updateTeam=function(a,b){var c=new tJ;c.setTeam(ura(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:um}).pipe(R(tm))};xJ.\u0275fac=function(a){return new (a||xJ)(t(hI))};xJ.\u0275prov=hc({token:xJ,factory:xJ.\u0275fac,providedIn:"root"});var yJ=function(a){this.observableApi=a};U(yJ,yGb);g=yJ.prototype;g.get=function(a){return(0,T.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b))};g.fetchComponent=function(a,b){return(0,T.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,T.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,T.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,T.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,T.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateTeam(a,b))};yJ.\u0275fac=function(a){return new (a||yJ)(t(xJ))};yJ.\u0275prov=hc({token:yJ,factory:yJ.\u0275fac,providedIn:"root"});
var zJ=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()},AJ=function(a){return Date.now()-a.lastValidated};zJ.prototype.isFresh=function(){return AJ(this)<this.cfg.freshUntil};zJ.prototype.isAncient=function(){return AJ(this)>this.cfg.ancientAfter};zJ.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};zJ.prototype.toString=function(){var a=String(this.data);return Math.ceil(AJ(this)/1E3)+"s old -- "+a};
var AGb=function(a){this.cfg=a;this.cache=new Map},BGb=function(a,b){a=BJ(a,b);return null==a?Infinity:a},BJ=function(a,b){return(a=a.get(b,!0))?AJ(a):void 0};AGb.prototype.isFresh=function(a){return BGb(this,a)<this.cfg.freshUntil};var CGb=function(a,b){return BGb(a,b)<=a.cfg.ancientAfter};g=AGb.prototype;g.isAncient=function(a){return AJ(a)>this.cfg.ancientAfter};g.getStatus=function(a){a=this.get(a,!0);if(null!=a)return a.getStatus()};
g.get=function(a,b){b=void 0===b?!1:b;var c=this.cache.get(a);if(null!=c)return this.isAncient(c)&&!b&&this.cache.delete(a),this.cache.get(a)};g.getData=function(a,b){return(a=this.get(a,void 0===b?!1:b))?a.data:void 0};g.set=function(a,b){this.cache.set(a,new zJ(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new zJ(b.data,this.cfg))};g.validate=function(a,b,c){return(a=this.get(a))?c(a.data,b):!1};
g.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};g.toString=function(){return Array.from(this.cache,function(a){a=r(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 DGb=function(){},EGb={trustMemory:!0},FGb=function(){},Wma=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],GGb=function(a){this.ids=[];Object.assign(this,a)};U(GGb,FGb);GGb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var HGb={freshUntil:1E4,ancientAfter:792E5},DJ=function(a){var b=this;a=void 0===a?{}:a;this.error$=new T.Subject;this.defaultQuery={};this.idKey="id";this.idForRecord=function(c){var d=c[b.idKey];if("string"===typeof d)return d;if("number"===typeof d)return String(d);c=JSON.stringify(c).slice(0,128);if(null==d)throw Error("Hc`"+b.idKey+"`"+c);throw Error("Ic`"+c);};this.vals$ById=new Map;this.collections$ById=new Map;this.sets$ByLabel=new Map;this.inFlightGets$=new T.BehaviorSubject(Object.freeze({}));
this.inFlightSaves$=new T.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(R(Cm));this.saving$=this.inFlightSaves$.pipe(R(Cm));this.thinking$=(0,T.combineLatest)(this.getting$,this.saving$).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Sf());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?DGb:CJ({label:c,value:BJ(b.memory,c)});if(b.memory.validate(c,d,b.isEqual))e("one-isSame"),b.memory.touch(c);else{b.memory.set(c,
d);var f=b.vals$ById.get(c);e("one-isChanged");f?f.next(d):Uk("gotOne("+c+"). !isEqual but nobody's listening")}}};this.gotSet=function(c){return function(d){for(var e=r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=b.idForRecord(f);b.gotOne(h)(f,{doNotTrack:!0})}(e=IGb(b,c))?e.next(d):Vk("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){for(var e=CJ({label:c,value:BJ(b.collectiveMemory,c)}),f=r(d.results),h=f.next();!h.done;h=f.next()){h=h.value;var k=b.idForRecord(h);
b.gotOne(k)(h,{doNotTrack:!0})}f=b.normalize(d);b.collectiveMemory.validate(c,f,Vma);b.collectiveMemory.set(c,f);e("all-isChanged");(e=b.collections$ById.get(c))?(d=JGb(b,f,d.results),e.next(d)):Vpa(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});null==e&&Vk("Couldn't find a record for id "+d);return e}};this.debug=function(){return{recordType:b.recordType,
isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets).map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves).map(function(c){var d=r(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((void 0===c.message?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};
this.canSave=this.implementsFn();this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return null==c?Cm(b.inFlightSaves):!!b.inFlightSaves[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(R(function(d){return!!d[c]}),Sf())};this.isGetting=function(c){return null==c?Cm(b.inFlightGets):!!b.inFlightGets[c]};this.watchOne=this.watch;this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("Jc");c=b.doSave(c).pipe(Rf(0,T.asapScheduler),uha(),
bf());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),KGb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};Jra(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Dm(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};Jra(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){Dm(b.inFlightGets$,c)};this.announce=function(c,d){d=void 0===d?{}:d;if(null!=c){var e=b.idForRecord(c);if(null==e)throw Error("Kc");b.gotOne(e)(c,Object.assign({},
{doNotTrack:!0},d))}};this.memory=new AGb(Object.assign({},HGb,a));this.collectiveMemory=new AGb(Object.assign({},HGb,a))};g=DJ.prototype;g.fetchOne=function(){throw Error("Lc");};g.fetchAll=function(){throw Error("Mc");};g.fetchSet=function(){throw Error("Nc");};g.doSave=function(){throw Error("Oc");};g.copy=function(){throw Error("Pc");};g.isEqual=function(a,b){return Vma(a,b,100)};
var MGb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=CJ({label:b,value:BJ(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&CGb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Ora(c);if(a.inFlightGets[b])return c("one-inFlight"),c=LGb(a,b),Nra(c).then(Ora);c("one-fetch");var f=a.fetchOne(b).pipe(Rf(0,T.asapScheduler));a.setIsGetting(b);return new Promise(function(h,k){f.subscribe(function(q){a.gotOne(b)(q);h(q)},function(q){a.gotErr(b,a.inFlightGets$)(q);
k(q)},KGb(b,a.inFlightGets$))})},PGb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d=[].concat(v(b)).sort().join("-"),e=CJ({label:d});if(c&&NGb(a,b))e("set-trustMemory");else if(OGb(a,b))e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(Rf(0,T.asapScheduler));e={};e=(e[d]=!0,e);for(var f=r(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;Jra(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){Kra(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){Kra(a.inFlightGets$,[d].concat(v(b)))})}},
NGb=function(a,b){if(!b.every(function(d){return a.memory.isFresh(d)}))return!1;var c=QGb(a,b);if(c.length!==b.length)return Vk("broadcastFresh("+b+"): cached records ("+c.length+") !== ids ("+b.length+")"),!1;IGb(a,b).next(c);return!0},OGb=function(a,b){if(!b.every(function(d){return!!a.inFlightGets[d]}))return!1;var c=b.map(function(d){return LGb(a,d)});if(c.length!==b.length)return Vk("broadcastSetIfInFlight("+b+"): single-record channels ("+c.length+") !== ids ("+b.length+")"),!1;(0,T.combineLatest)(c).pipe(Tf()).subscribe(function(d){IGb(a,
b).next(d.filter(el))});return!0};
DJ.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=Em(a);var d=CJ({label:b,value:BJ(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=QGb(this,a.ids),a=JGb(this,a,b),Promise.resolve(a);if(this.inFlightGets[b])return d("all-inFlight"),a=RGb(this,a),Nra(a);d("all-fetch");c=this.fetchAll(a).pipe(Rf(0,T.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,this.inFlightGets$),
KGb(b,this.inFlightGets$));a=RGb(this,a);return Nra(a)};DJ.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);Wpa(a+" gotErr()",d);Dm(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var KGb=function(a,b){return function(){Dm(b,a)}};DJ.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new GGb(Object.assign({},Mra(a),{ids:b}))};
var JGb=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},Mra(b),{results:a})},QGb=function(a,b){return b.map(function(c){return a.memory.getData(c)}).filter(el)},RGb=function(a,b){b=Em(b);return Lra(a.collections$ById,b,new T.ReplaySubject(1))},IGb=function(a,b){b=[].concat(v(b)).sort().join("-");return Lra(a.sets$ByLabel,b,new T.ReplaySubject(1))},LGb=function(a,b,c){var d=new T.ReplaySubject(1);null!=c&&d.next(c);return Lra(a.vals$ById,b,d)};
DJ.prototype.watch=function(a,b){b=void 0===b?EGb:b;if(null==a)return(0,T.of)();"number"===typeof a&&(a=String(a));var c=LGb(this,a,this.memory.getData(a));MGb(this,a,b).catch(function(){});return Slb(c)};
var EJ=function(a,b){var c=void 0===c?EGb:c;if(0===b.length)return(0,T.of)([]);b=b.map(function(e){return"number"===typeof e?String(e):e});var d=IGb(a,b);PGb(a,b,c);return d},SGb=function(a,b){var c=void 0===c?EGb:c;b=Object.assign({},a.defaultQuery,b);var d=RGb(a,b);a.getAll(b,c);return Slb(d)},mt=function(a,b){return null==b?TGb():MGb(a,String(b))},FJ=function(a,b){return null==b?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},UGb=function(a,b){return["string",
"number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(Em(b))};DJ.prototype.invalidate=function(a){null==a?(this.memory.cache.clear(),this.collectiveMemory.cache.clear()):["string","number"].includes(typeof a)?this.memory.cache.delete(String(a)):this.collectiveMemory.cache.delete(Em(a))};var GJ=function(a,b,c,d){d=void 0===d?{}:d;if(void 0!==d.evenWhenInFlight&&d.evenWhenInFlight||!a.inFlightGets[b])if(b=a.copy(a.memory.getData(String(b))))c(b),a.announce(b)};
oi.Object.defineProperties(DJ.prototype,{inFlightGets:{configurable:!0,enumerable:!0,get:function(){return this.inFlightGets$.getValue()}},inFlightSaves:{configurable:!0,enumerable:!0,get:function(){return this.inFlightSaves$.getValue()}}});var CJ=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,null==a[c]&&delete a[c];return function(){}},TGb=function(){return new Promise(function(){})};
var HJ=function(a){DJ.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=a;this.recordType="component";this.idKey="componentId"};U(HJ,DJ);HJ.prototype.fetchOne=function(a){return this.batchedComponentApi.get(a)};HJ.prototype.fetchSet=function(a){var b=this;return(0,T.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(el)}))};HJ.\u0275fac=function(a){return new (a||HJ)(t(IJ))};HJ.\u0275prov=hc({token:HJ,factory:HJ.\u0275fac,providedIn:"root"});
var Pra={QA:124156,NIGHTLY:190923,PROD:190923},IJ=function(a,b){var c=this;this.observableComponentApi=a;this.batchApiAdapter=b;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};
IJ.prototype.call=function(a){return 1===a.size?this.observableComponentApi.fetchComponent([].concat(v(a))[0],{}).pipe(R(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(v(a))}).pipe(R(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};IJ.prototype.splitBatch=function(a,b){return b.get(Number(a))};IJ.\u0275fac=function(a){return new (a||IJ)(t(zGb),t(bJ))};IJ.\u0275prov=hc({token:IJ,factory:IJ.\u0275fac,providedIn:"root"});
var VGb=function(a,b,c){if(!(200<=c&&299>=c)||void 0===a.customFieldMap)return a;a=Ii(a);b={};c=r(Object.keys(a.customFieldMap));for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=kl(a.customFieldMap[d]);a.customFieldMap=b;return a},WGb=function(a,b,c){if(!(200<=c&&299>=c&&a.issue&&a.issue.snapshot))return a;Sra(a.issue);return a},XGb=function(a,b,c){if(!(200<=c&&299>=c&&a.issues))return a;b=r(a.issues);for(c=b.next();!c.done;c=b.next())Sra(c.value);return a},YGb=function(a,b,c){b=a.affectedIssues;
if(!(200<=c&&299>=c&&b))return a;c=r(Object.keys(b).map(Number));for(var d=c.next();!d.done;d=c.next())Sra(b[d.value]);return a},ZGb=function(a){var b=a.stateOnIssues;return Object.assign({},a,{stateOnIssues:b?hqa[b]:null})};
var aHb=function(a,b,c){var d=this;this.http=a;this.path=b;this.actions=c;a={};c=r(Object.keys(c));for(b=c.next();!b.done;a={$jscomp$loop$prop$k$1670:a.$jscomp$loop$prop$k$1670},b=c.next())a.$jscomp$loop$prop$k$1670=b.value,this[a.$jscomp$loop$prop$k$1670]=function(e){return function(f,h){return $Gb(d,e.$jscomp$loop$prop$k$1670,f,h)}}(a)},bHb=function(a,b,c,d){b=a.actions[b];var e,f=null!=(e=b.url)?e:a.path;c=r(Tra(f,c));a=c.next().value;c=c.next().value;var h;return{method:null!=(h=b.method)?h:"GET",
url:a,params:c,data:d,transformRequest:b.transformRequest,transformResponse:b.transformResponse}},$Gb=function(a,b,c,d){var e=bHb(a,b,c,d);return a.http.request(Wra(e)).then(function(f){var h,k=null==(h=e.transformResponse)?void 0:h.call(e,f.data,f.headers,f.status);return Object.assign({},f,{data:null!=k?k:f.data})}).then(function(f){return f.data})};
var cHb=function(a,b){this.http=a;this.path=b;this.actions={}};cHb.prototype.with=function(a,b){if(Object.keys(this.actions).includes(a))throw Error("Qc`"+a);this.actions[a]=b;return this};
var JJ=function(a,b){b=void 0===b?{}:b;return a.with("get",Object.assign({},{method:"GET"},b))},dHb=function(a){var b=void 0===b?{}:b;return a.with("query",Object.assign({},{method:"GET"},b))},eHb=function(a,b){b=void 0===b?{}:b;return a.with("save",Object.assign({},{method:"POST"},b))},fHb=function(a,b){b=void 0===b?{}:b;return a.with("update",Object.assign({},{method:"POST"},b))},gHb=function(a){var b=void 0===b?{}:b;return a.with("delete",Object.assign({},{method:"DELETE"},b))},hHb=function(a,
b){b=void 0===b?{}:b;return a.with("create",Object.assign({},{method:"POST"},b))};cHb.prototype.build=function(){return new aHb(this.http,this.path,this.actions)};var KJ=function(a){this.http=a},LJ=function(a,b){return new cHb(a.http,b)},MJ=function(a,b,c){return eHb(LJ(a,b),c).build()};KJ.prototype.only=function(a,b,c){return LJ(this,a).with(b,c).build()};KJ.\u0275fac=function(a){return new (a||KJ)(t(uJ))};KJ.\u0275prov=hc({token:KJ,factory:KJ.\u0275fac,providedIn:"root"});
var NJ=function(a){Z.call(this,a)};U(NJ,Z);NJ.prototype.getSnapshot=function(){return m(this,$l,1)};NJ.prototype.setSnapshot=function(a){Db(this,1,a)};NJ.prototype.toObject=function(){var a=null!=this?{snapshot:nJ(void 0,this.getSnapshot()),customFieldMapMap:Gb(bj(this,2,ql),void 0,hJ)}:void 0;return a};NJ.messageId="b.IssueTemplateResponse";
var jHb=function(a){Z.call(this,a,-1,iHb)};U(jHb,Z);var iHb=[1];jHb.prototype.toObject=function(){var a=null!=this?{templatesList:Eb(tb(this,vm,1),tGb)}:void 0;return a};jHb.messageId="b.ListTemplatesResponse";
var OJ=function(a){Z.call(this,a)};U(OJ,Z);OJ.prototype.toObject=function(){var a=null!=this?{template:tGb(void 0,m(this,vm,1))}:void 0;return a};OJ.messageId="b.TemplateResponse";
var PJ=function(){},QJ=function(a){this.apiResourceFactory=a;this.templateApi=gHb(fHb(hHb(dHb(JJ(LJ(this.apiResourceFactory,"action/components/:componentId/templates/:templateId")))))).build();this.issueTemplateApi=JJ(LJ(this.apiResourceFactory,"action/components/:componentId/issue_template"),{transformResponse:VGb}).build()};U(QJ,PJ);g=QJ.prototype;g.get=function(a,b){return this.templateApi.get({componentId:a,templateId:b})};g.query=function(a,b){return this.templateApi.query({componentId:a,templateId:b})};
g.create=function(a,b){return this.templateApi.create({componentId:a},b)};g.update=function(a,b,c){return this.templateApi.update({componentId:a,templateId:b},c)};g.delete=function(a,b){return this.templateApi.delete({componentId:a,templateId:b}).then(function(){})};g.getIssueTemplate=function(a,b){return this.issueTemplateApi.get({componentId:a,templateId:b})};QJ.\u0275fac=function(a){return new (a||QJ)(t(KJ))};QJ.\u0275prov=hc({token:QJ,factory:QJ.\u0275fac,providedIn:"root"});
var RJ=function(a){this.executor=a};g=RJ.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:OJ}).pipe(R(Xra))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:jHb}).pipe(R(Yra))};g.create=function(a,b){b=Cra(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:OJ,body:b}).pipe(R(Xra))};
g.update=function(a,b,c){c=Cra(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:OJ,body:c}).pipe(R(Xra))};g.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};g.getIssueTemplate=function(a,b){return this.executor.get({url:"action/components/"+a+"/issue_template",responseConstructor:NJ,options:{params:{templateId:String(b)}}}).pipe(R(Dra))};RJ.\u0275fac=function(a){return new (a||RJ)(t(hI))};
RJ.\u0275prov=hc({token:RJ,factory:RJ.\u0275fac,providedIn:"root"});var SJ=function(a){this.observableApi=a};U(SJ,PJ);g=SJ.prototype;g.get=function(a,b){return(0,T.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,T.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,T.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,T.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};SJ.\u0275fac=function(a){return new (a||SJ)(t(RJ))};SJ.\u0275prov=hc({token:SJ,factory:SJ.\u0275fac,providedIn:"root"});
var TJ=function(a){Z.call(this,a,-1,kHb)};U(TJ,Z);TJ.prototype.getIssueId=function(){return nj(this,1)};TJ.prototype.setIssueId=function(a){return l(this,1,a)};TJ.prototype.getAttachmentsList=function(){return mb(this,2,cb)};TJ.prototype.setAttachmentsList=function(a){ml(this,2,a)};var Km=function(a){Z.call(this,a)};U(Km,Z);Km.prototype.getContentJudgement=function(){return m(this,Il,2)};Km.prototype.setContentJudgement=function(a){return Db(this,2,a)};var kHb=[2,3];
TJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentsList:Hb(this.getAttachmentsList()),attachmentsWithJudgementsList:Eb(tb(this,Km,3),lHb)}:void 0;return a};Km.prototype.toObject=function(){return lHb(void 0,this)};var lHb=function(a,b){if(null!=b){var c={attachment:Hb(Jm(b,1)),contentJudgement:iJ(a,b.getContentJudgement())};a&&(c.$jspbMessageInstance=b);return c}};
var mHb=function(a){Z.call(this,a)};U(mHb,Z);g=mHb.prototype;g.getFilename=function(){return V(this,1)};g.setFilename=function(a){l(this,1,a)};g.getMimeType=function(){return V(this,2)};g.setMimeType=function(a){l(this,2,a)};g.getSize=function(){return hj(this,5)};g.setSize=function(a){return l(this,5,a)};g.toObject=function(){var a=null!=this?{filename:n(p(this,1)),mimeType:n(p(this,2)),encryptedBlobId:n(p(this,3)),docId:n(p(this,4)),size:n(p(this,5))}:void 0;return a};
var oHb=function(a){Z.call(this,a,-1,nHb)};U(oHb,Z);g=oHb.prototype;g.setSignificanceOverride=function(a){l(this,3,a)};g.setIssueIdsList=function(a){ml(this,1,a)};g.addIssueIds=function(a){qb(this,1,a)};g.getActionsList=function(){return tb(this,em,2)};g.setActionsList=function(a){Cb(this,2,a)};var bn=function(a){Z.call(this,a,-1,pHb)};U(bn,Z);bn.prototype.getActionsList=function(){return tb(this,em,1)};bn.prototype.setActionsList=function(a){Cb(this,1,a)};
bn.prototype.setIssueIdsList=function(a){ml(this,2,a)};bn.prototype.addIssueIds=function(a){qb(this,2,a)};var nHb=[4,1,2];oHb.prototype.toObject=function(){var a=null!=this?{bulkEditOpsList:Eb(tb(this,bn,4),qHb),significanceOverride:n(p(this,3)),issueIdsList:n(lb(this,1)),actionsList:Eb(this.getActionsList(),dGb)}:void 0;return a};var pHb=[1,2];bn.prototype.toObject=function(){return qHb(void 0,this)};
var qHb=function(a,b){if(null!=b){var c={actionsList:Eb(b.getActionsList(),dGb,a),issueIdsList:n(lb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var hn=function(a){Z.call(this,a)};U(hn,Z);hn.prototype.getContent=function(){return m(this,Tm,1)};hn.prototype.setContent=function(a){Db(this,1,a)};hn.prototype.hasContent=function(){return oj(this,1)};hn.prototype.toObject=function(){return rHb(void 0,this)};var rHb=function(a,b){if(null!=b){var c={content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Kp=function(a){Z.call(this,a)};U(Kp,Z);Kp.prototype.getContent=function(){return m(this,Tm,1)};Kp.prototype.setContent=function(a){Db(this,1,a)};Kp.prototype.hasContent=function(){return oj(this,1)};Kp.prototype.toObject=function(){return sHb(void 0,this)};var sHb=function(a,b){if(null!=b){var c={content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Mp=function(a){Z.call(this,a)};U(Mp,Z);g=Mp.prototype;g.getIsQuoted=function(){return W(this,1)};g.getContent=function(){return m(this,Tm,2)};g.setContent=function(a){Db(this,2,a)};g.hasContent=function(){return oj(this,2)};g.toObject=function(){return tHb(void 0,this)};var tHb=function(a,b){if(null!=b){var c={isQuoted:n(Xo(b,1)),content:EH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Lp=function(a){Z.call(this,a,-1,uHb)};U(Lp,Z);Lp.prototype.getPlainSectionList=function(){return tb(this,Mp,1)};Lp.prototype.addPlainSection=function(a){Du(this,1,Mp,a)};var uHb=[1];Lp.prototype.toObject=function(){return vHb(void 0,this)};var vHb=function(a,b){if(null!=b){var c={plainSectionList:Eb(b.getPlainSectionList(),tHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var gn=function(a){Z.call(this,a)};U(gn,Z);g=gn.prototype;g.getKindCase=function(){return rb(this,UJ)};g.getPlainFormat=function(){return Bl(this,Lp,1,UJ)};g.setPlainFormat=function(a){Cu(this,1,UJ,a)};g.hasPlainFormat=function(){return zl(this,1,UJ)};g.getMarkdownFormat=function(){return Bl(this,Kp,2,UJ)};g.setMarkdownFormat=function(a){Cu(this,2,UJ,a)};g.hasMarkdownFormat=function(){return zl(this,2,UJ)};g.getLiteralFormat=function(){return Bl(this,hn,3,UJ)};
g.setLiteralFormat=function(a){Cu(this,3,UJ,a)};g.hasLiteralFormat=function(){return zl(this,3,UJ)};var UJ=[1,2,3];gn.prototype.toObject=function(){return wHb(void 0,this)};var wHb=function(a,b){if(null!=b){var c={plainFormat:vHb(a,b.getPlainFormat()),markdownFormat:sHb(a,b.getMarkdownFormat()),literalFormat:rHb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var cn=function(a){Z.call(this,a)};U(cn,Z);cn.prototype.getIssueId=function(){return nj(this,1)};cn.prototype.setIssueId=function(a){return l(this,1,a)};cn.prototype.getMessage=function(){return V(this,2)};cn.prototype.toObject=function(){return xHb(void 0,this)};var xHb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),message:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var zHb=function(a){Z.call(this,a,-1,yHb)};U(zHb,Z);var yHb=[2];zHb.prototype.toObject=function(){var a=null!=this?{affectedIssuesMap:Gb(bj(this,1,im),void 0,oJ),errorsList:Eb(tb(this,cn,2),xHb),componentMapMap:Gb(bj(this,3,um),void 0,rJ)}:void 0;return a};zHb.messageId="b.BulkEditResponse";
var VJ=function(a){Z.call(this,a)};U(VJ,Z);VJ.prototype.getIssueId=function(){return nj(this,1)};VJ.prototype.setIssueId=function(a){return l(this,1,a)};VJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};VJ.messageId="b.IssueCreateResponse";
var AHb=function(a){Z.call(this,a)};U(AHb,Z);AHb.prototype.toObject=function(){return BHb(void 0,this)};var BHb=function(a,b){if(null!=b){var c={blobId:n(p(b,1)),blobGeneration:n(p(b,5)),readToken:n(p(b,2)),uploadMetadataContainer:Hb(zu(b,3)),downloadReadHandle:Hb(zu(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var CHb=function(a){Z.call(this,a)};U(CHb,Z);CHb.prototype.toObject=function(){return DHb(void 0,this)};var DHb=function(a,b){if(null!=b){var c={bucketName:n(p(b,1)),objectName:n(p(b,2)),generation:n(p(b,7))};a&&(c.$jspbMessageInstance=b);return c}};
var WJ=function(a){Z.call(this,a)};U(WJ,Z);g=WJ.prototype;g.getPath=function(){return p(this,3)};g.setPath=function(a){return l(this,3,a)};g.hasPath=function(){return gj(this,3)};g.getBlobRef=function(){return zu(this,4)};g.getInline=function(){return zu(this,5)};g.getObjectId=function(){return m(this,CHb,6)};g.setObjectId=function(a){Db(this,6,a)};g.getBlobstore2Info=function(){return m(this,AHb,7)};g.getCosmoBinaryReference=function(){return zu(this,8)};g.getMd5Hash=function(){return zu(this,10)};
g.getSha1Hash=function(){return zu(this,11)};g.toObject=function(){return XJ(void 0,this)};var XJ=function(a,b){if(null!=b){var c={length:n(p(b,1)),referenceType:n(p(b,2)),path:n(p(b,3)),blobRef:Hb(b.getBlobRef()),inline:Hb(b.getInline()),objectId:DHb(a,b.getObjectId()),blobstore2Info:BHb(a,b.getBlobstore2Info()),cosmoBinaryReference:Hb(b.getCosmoBinaryReference()),crc32cHash:n(p(b,9)),md5Hash:Hb(b.getMd5Hash()),sha1Hash:Hb(b.getSha1Hash())};a&&(c.$jspbMessageInstance=b);return c}};
var EHb=function(a){Z.call(this,a)};U(EHb,Z);EHb.prototype.toObject=function(){return FHb(void 0,this)};var FHb=function(a,b){if(null!=b){var c={bestGuess:n(p(b,1)),fromHeader:n(p(b,2)),fromFileName:n(p(b,3)),fromUrlPath:n(p(b,4)),fromBytes:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var GHb=function(a){Z.call(this,a)};U(GHb,Z);GHb.prototype.getObjectLocation=function(){return m(this,WJ,5)};GHb.prototype.toObject=function(){return HHb(void 0,this)};var HHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2)),chunkSizeBytes:n(p(b,3)),checksumsLocation:XJ(a,m(b,WJ,4)),objectLocation:XJ(a,b.getObjectLocation())};a&&(c.$jspbMessageInstance=b);return c}};
var IHb=function(a){Z.call(this,a)};U(IHb,Z);IHb.prototype.getObjectLocation=function(){return m(this,WJ,1,1)};IHb.prototype.toObject=function(){return JHb(void 0,this)};var JHb=function(a,b){if(null!=b){var c={objectLocation:XJ(a,m(b,WJ,1))};a&&(c.$jspbMessageInstance=b);return c}};
var KHb=function(a){Z.call(this,a)};U(KHb,Z);KHb.prototype.toObject=function(){return LHb(void 0,this)};var LHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectInfo:XJ(a,m(b,WJ,2)),checksumsInfo:XJ(a,m(b,WJ,3))};a&&(c.$jspbMessageInstance=b);return c}};
var MHb=function(a){Z.call(this,a)};U(MHb,Z);MHb.prototype.toObject=function(){return NHb(void 0,this)};var NHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),originalObject:XJ(a,m(b,WJ,2))};a&&(c.$jspbMessageInstance=b);return c}};
var OHb=function(a){Z.call(this,a)};U(OHb,Z);OHb.prototype.toObject=function(){return PHb(void 0,this)};var PHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var QHb=function(a){Z.call(this,a)};U(QHb,Z);QHb.prototype.toObject=function(){return RHb(void 0,this)};var RHb=function(a,b){if(null!=b){var c={allowGzipCompression:n(Xo(b,1)),ignoreRange:n(Xo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Mm=function(a){Z.call(this,a,-1,SHb)};U(Mm,Z);g=Mm.prototype;g.getTimestamp=function(){return p(this,2)};g.setTimestamp=function(a){return l(this,2,a)};g.hasTimestamp=function(){return gj(this,2)};g.getToken=function(){return p(this,3)};g.setToken=function(a){return l(this,3,a)};g.getFilename=function(){return p(this,5)};g.setFilename=function(a){l(this,5,a)};g.getPath=function(){return p(this,7)};g.setPath=function(a){return l(this,7,a)};g.hasPath=function(){return gj(this,7)};
g.getBlobRef=function(){return zu(this,8)};g.getInline=function(){return zu(this,9)};g.getHash=function(){return p(this,11)};g.setHash=function(a){return l(this,11,a)};g.getObjectId=function(){return m(this,CHb,15)};g.setObjectId=function(a){Db(this,15,a)};g.getBlobstore2Info=function(){return m(this,AHb,16)};g.getMd5Hash=function(){return zu(this,25)};g.getSha1Hash=function(){return zu(this,26)};g.getCosmoBinaryReference=function(){return zu(this,28)};var SHb=[13];
Mm.prototype.toObject=function(){return THb(void 0,this)};
var THb=function(a,b){if(null!=b){var c={contentType:n(p(b,1)),timestamp:n(p(b,2)),token:n(p(b,3)),length:n(p(b,4)),filename:n(p(b,5)),referenceType:n(p(b,6)),path:n(p(b,7)),blobRef:Hb(b.getBlobRef()),inline:Hb(b.getInline()),mediaId:Hb(zu(b,10)),hash:n(p(b,11)),algorithm:n(p(b,12)),compositeMediaList:Eb(tb(b,WJ,13),XJ,a),bigstoreObjectRef:Hb(zu(b,14)),objectId:DHb(a,b.getObjectId()),blobstore2Info:BHb(a,b.getBlobstore2Info()),diffVersionResponse:PHb(a,m(b,OHb,17)),diffChecksumsResponse:HHb(a,m(b,
GHb,18)),diffDownloadResponse:JHb(a,m(b,IHb,19)),diffUploadRequest:LHb(a,m(b,KHb,20)),diffUploadResponse:NHb(a,m(b,MHb,21)),contentTypeInfo:FHb(a,m(b,EHb,22)),downloadParameters:RHb(a,m(b,QHb,23)),crc32cHash:n(p(b,24)),md5Hash:Hb(b.getMd5Hash()),sha1Hash:Hb(b.getSha1Hash()),sha256Hash:Hb(zu(b,30)),isPotentialRetry:W(b,27,!0),cosmoBinaryReference:Hb(b.getCosmoBinaryReference()),hashVerified:n(Xo(b,29))};a&&(c.$jspbMessageInstance=b);return c}};
var YJ=function(a){Z.call(this,a)};U(YJ,Z);g=YJ.prototype;g.getStatus=function(){return Y(this,1,0)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return gj(this,1)};g.setReason=function(a){l(this,2,a)};g.toObject=function(){return UHb(void 0,this)};var UHb=function(a,b){if(null!=b){var c={status:n(p(b,1)),reason:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Zm=function(a){Z.call(this,a)};U(Zm,Z);g=Zm.prototype;g.getAttachmentId=function(){return nj(this,1)};g.setAttachmentId=function(a){l(this,1,a)};g.getDescription=function(){return V(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getFilename=function(){return V(this,5)};g.setFilename=function(a){l(this,5,a)};g.getEtag=function(){return V(this,8)};g.setEtag=function(a){l(this,8,a)};g.hasEtag=function(){return gj(this,8)};g.getContentVerdict=function(){return m(this,cm,9)};
g.getEntityStatus=function(){return m(this,YJ,10)};g.getPiiRetentionState=function(){return m(this,lm,12)};g.hasPiiRetentionState=function(){return oj(this,12)};g.getPiiRetention=function(){return Y(this,13,0)};g.setPiiRetention=function(a){return l(this,13,a)};g.toObject=function(){return VHb(void 0,this)};
var VHb=function(a,b){if(null!=b){var c={attachmentId:n(p(b,1)),description:n(p(b,2)),media:THb(a,m(b,Mm,3)),contentType:n(p(b,4)),filename:n(p(b,5)),length:n(p(b,6)),filecompUrl:n(p(b,7)),etag:n(p(b,8)),contentVerdict:XFb(a,b.getContentVerdict()),entityStatus:UHb(a,b.getEntityStatus()),piiRetentionState:jJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,13))};a&&(c.$jspbMessageInstance=b);return c}};Zm.messageId="b.Attachment";
var ZJ=function(a){Z.call(this,a)};U(ZJ,Z);ZJ.prototype.getCustomFieldId=function(){return hj(this,3)};ZJ.prototype.setCustomFieldId=function(a){return l(this,3,a)};ZJ.prototype.hasCustomFieldId=function(){return gj(this,3)};ZJ.prototype.toObject=function(){return WHb(void 0,this)};var WHb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2)),customFieldId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var XHb=function(a){Z.call(this,a)};U(XHb,Z);g=XHb.prototype;g.getHref=function(){return V(this,1)};g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.toObject=function(){return YHb(void 0,this)};var YHb=function(a,b){if(null!=b){var c={href:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Sm=function(a){Z.call(this,a,-1,ZHb)};U(Sm,Z);Sm.prototype.getAddedList=function(){return tb(this,XHb,1)};Sm.prototype.getRemovedList=function(){return tb(this,XHb,2)};var ZHb=[1,2];Sm.prototype.toObject=function(){return $Hb(void 0,this)};var $Hb=function(a,b){if(null!=b){var c={addedList:Eb(b.getAddedList(),YHb,a),removedList:Eb(b.getRemovedList(),YHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var aIb=function(a){Z.call(this,a)};U(aIb,Z);aIb.prototype.toObject=function(){return bIb(void 0,this)};var bIb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Qm=function(a){Z.call(this,a)};U(Qm,Z);Qm.prototype.toObject=function(){return cIb(void 0,this)};var cIb=function(a,b){if(null!=b){var c={oldUser:lJ(a,m(b,Vl,1)),newUser:lJ(a,m(b,Vl,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Om=function(a){Z.call(this,a)};U(Om,Z);var Pm=[1,2];Om.prototype.toObject=function(){return dIb(void 0,this)};var dIb=function(a,b){if(null!=b){var c={userDiff:cIb(a,Bl(b,Qm,1,Pm)),stringDiff:bIb(a,Bl(b,aIb,2,Pm))};a&&(c.$jspbMessageInstance=b);return c}};
var $J=function(a){Z.call(this,a,-1,eIb)};U($J,Z);$J.prototype.getAddedList=function(){return lb(this,1)};$J.prototype.getRemovedList=function(){return lb(this,2)};var eIb=[1,2];$J.prototype.toObject=function(){return fIb(void 0,this)};var fIb=function(a,b){if(null!=b){var c={addedList:n(lb(b,1)),removedList:n(lb(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Rm=function(a){Z.call(this,a,-1,gIb)};U(Rm,Z);Rm.prototype.getAddedList=function(){return tb(this,Vl,1)};Rm.prototype.getRemovedList=function(){return tb(this,Vl,2)};var gIb=[1,2];Rm.prototype.toObject=function(){return hIb(void 0,this)};var hIb=function(a,b){if(null!=b){var c={addedList:Eb(b.getAddedList(),lJ,a),removedList:Eb(b.getRemovedList(),lJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Wm=function(a){Z.call(this,a)};U(Wm,Z);g=Wm.prototype;g.getName=function(){return V(this,1)};g.setName=function(a){return l(this,1,a)};g.hasName=function(){return gj(this,1)};g.getDisplayName=function(){return V(this,2)};g.setDisplayName=function(a){return l(this,2,a)};g.getType=function(){return Y(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return gj(this,3)};g.getTimestamp=function(){return m(this,vj,4)};g.setTimestamp=function(a){return Db(this,4,a)};
g.hasTimestamp=function(){return oj(this,4)};var Nm=[6,7,8,9,10];Wm.prototype.toObject=function(){return iIb(void 0,this)};var iIb=function(a,b){if(null!=b){var c={name:n(p(b,1)),displayName:n(p(b,2)),type:n(p(b,3)),timestamp:Zu(a,b.getTimestamp()),important:n(Xo(b,5)),singleValueDiff:dIb(a,Bl(b,Om,6,Nm)),collectionDiff:fIb(a,Bl(b,$J,7,Nm)),linkedCollectionDiff:$Hb(a,Bl(b,Sm,8,Nm)),customFieldDiff:WHb(a,Bl(b,ZJ,9,Nm)),userCollectionDiff:hIb(a,Bl(b,Rm,10,Nm))};a&&(c.$jspbMessageInstance=b);return c}};
Wm.messageId="b.EventDiff";
var aK=function(a){Z.call(this,a,-1,jIb)};U(aK,Z);aK.prototype.getMentionedUser=function(){return m(this,Vl,1)};aK.prototype.getState=function(){return Y(this,2,0)};var jIb=[3];aK.prototype.toObject=function(){return kIb(void 0,this)};var kIb=function(a,b){if(null!=b){var c={mentionedUser:lJ(a,b.getMentionedUser()),state:n(p(b,2)),displayEmailList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var bK=function(a){Z.call(this,a,-1,lIb)};U(bK,Z);g=bK.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentId=function(){return hj(this,2)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getMentionsList=function(){return tb(this,aK,16)};g.getCommentContentVerdict=function(){return m(this,cm,14)};g.setCommentContentVerdict=function(a){Db(this,14,a)};
g.hasCommentContentVerdict=function(){return oj(this,14)};g.getLastModified=function(){return hj(this,5)};g.getVersion=function(){return hj(this,6)};g.setVersion=function(a){return l(this,6,a)};g.getEntityStatus=function(){return m(this,YJ,9)};g.getFormattingMode=function(){return Y(this,10,0)};g.setFormattingMode=function(a){return l(this,10,a)};g.getFormattedComment=function(){return m(this,gn,13)};g.getPiiRetentionState=function(){return m(this,lm,11)};
g.hasPiiRetentionState=function(){return oj(this,11)};g.getPiiRetention=function(){return Y(this,12,0)};g.setPiiRetention=function(a){return l(this,12,a)};g.getEtag=function(){return V(this,17)};g.setEtag=function(a){l(this,17,a)};g.hasEtag=function(){return gj(this,17)};var lIb=[16];bK.prototype.toObject=function(){return mIb(void 0,this)};
var mIb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentId:n(p(b,2)),comment:n(p(b,3)),mentionsList:Eb(b.getMentionsList(),kIb,a),commentContentVerdict:XFb(a,b.getCommentContentVerdict()),lastEditorUser:lJ(a,m(b,Vl,8)),lastModified:n(p(b,5)),version:n(p(b,6)),unlinkifiedComment:n(p(b,7)),entityStatus:UHb(a,b.getEntityStatus()),formattingMode:n(p(b,10)),formattedComment:wHb(a,b.getFormattedComment()),piiRetentionState:jJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,12)),redacted:n(Xo(b,
15)),etag:n(p(b,17))};a&&(c.$jspbMessageInstance=b);return c}};bK.messageId="b.IssueComment";
var Xm=function(a){Z.call(this,a)};U(Xm,Z);Xm.prototype.getTag=function(){return V(this,1)};Xm.prototype.toObject=function(){return nIb(void 0,this)};var nIb=function(a,b){if(null!=b){var c={tag:n(p(b,1)),text:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var $m=function(a){Z.call(this,a,-1,oIb)};U($m,Z);g=$m.prototype;g.getComment=function(){return m(this,bK,6)};g.setComment=function(a){return Db(this,6,a)};g.getAttachmentsList=function(){return tb(this,Zm,10)};g.setAttachmentsList=function(a){Cb(this,10,a)};g.getVersion=function(){return hj(this,7)};g.setVersion=function(a){return l(this,7,a)};var oIb=[1,2,3,10,9];$m.prototype.toObject=function(){return pIb(void 0,this)};
var pIb=function(a,b){if(null!=b){var c={addedAttachmentIdsList:n(lb(b,1)),preDiffsList:Eb(tb(b,Wm,2),iIb,a),postDiffsList:Eb(tb(b,Wm,3),iIb,a),modifiedDate:Zu(a,m(b,vj,4)),userPerformingAction:lJ(a,m(b,Vl,5)),isHumanAuthor:n(Xo(b,11)),isCollaboratorAuthor:n(Xo(b,12)),comment:mIb(a,b.getComment()),attachmentsList:Eb(b.getAttachmentsList(),VHb,a),version:n(p(b,7)),isMajorEvent:n(Xo(b,8)),taggedSummaryList:Eb(tb(b,Xm,9),nIb,a)};a&&(c.$jspbMessageInstance=b);return c}};$m.messageId="b.IssueEvent";
var ln=function(a){Z.call(this,a,-1,qIb)};U(ln,Z);ln.prototype.getIssue=function(){return m(this,im,1)};ln.prototype.setIssue=function(a){Db(this,1,a)};ln.prototype.getCustomFieldsList=function(){return tb(this,ql,3)};var qIb=[2,3];ln.prototype.toObject=function(){return rIb(void 0,this)};
var rIb=function(a,b){if(null!=b){var c={issue:oJ(a,b.getIssue()),eventsList:Eb(tb(b,$m,2),pIb,a),firstEvent:pIb(a,m(b,$m,5)),customFieldsList:Eb(b.getCustomFieldsList(),hJ,a),attachmentMapMap:Gb(bj(b,4,Zm),a,VHb)};a&&(c.$jspbMessageInstance=b);return c}};ln.messageId="b.IssueFetchResponse";
var cK=function(a){Z.call(this,a,-1,sIb)};U(cK,Z);cK.prototype.getIssuesList=function(){return tb(this,im,1)};cK.prototype.getNumTotalResults=function(){return hj(this,2)};cK.prototype.getNextPageToken=function(){return V(this,5)};var sIb=[1];cK.prototype.toObject=function(){var a=null!=this?{issuesList:Eb(this.getIssuesList(),oJ),numTotalResults:n(p(this,2)),componentsMap:Gb(bj(this,3,um),void 0,rJ),positionsMap:Gb(bj(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};cK.messageId="b.IssueSearchResponse";
var dK=function(a){Z.call(this,a)};U(dK,Z);g=dK.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getStatus=function(){return Y(this,2,0)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return gj(this,2)};g.getTitle=function(){return V(this,3)};g.setTitle=function(a){return l(this,3,a)};g.getVersion=function(){return hj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getIsArchived=function(){return W(this,5)};
g.setIsArchived=function(a){l(this,5,a)};g.toObject=function(){return tIb(void 0,this)};var tIb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),status:n(p(b,2)),title:n(p(b,3)),version:n(p(b,4)),isArchived:n(Xo(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var eK=function(a){Z.call(this,a,-1,uIb)};U(eK,Z);eK.prototype.getIssueDigestsList=function(){return tb(this,dK,1)};eK.prototype.getNumTotalResults=function(){return hj(this,2)};var uIb=[1];eK.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Eb(this.getIssueDigestsList(),tIb),numTotalResults:n(p(this,2))}:void 0;return a};eK.messageId="b.RelatedIssuesResponse";
var fK=function(){},hK=function(a){this.apiResourceFactory=a;this.issueResource=fHb(hHb(JJ(LJ(this.apiResourceFactory,"action/issues/:issueId"),{transformResponse:WGb})),{transformResponse:WGb}).build();this.issueExternalMoveResource=gK(this,"action/issues/:issueId/external_move");this.moveIssueResource=gK(this,"action/issues/:issueId/move");this.unCcUserResource=gK(this,"action/issues/:issueId/unccuser");this.relateIssueResource=gK(this,"action/issues/:issueId/relate");this.updateIssueHotlistsResource=
gK(this,"action/issues/:issueId/hotlists");this.updateIssueRetentionResource=gK(this,"action/issues/:issueId/update_retention");this.issueListResource=this.apiResourceFactory.only("action/issues/list","get",{method:"POST",transformResponse:XGb});this.issueBulkEditResource=MJ(this.apiResourceFactory,"action/issues/bulk_edit",{transformResponse:YGb});this.relatedIssuesResource=JJ(LJ(this.apiResourceFactory,"action/related/:resourceType/:resourceId")).build()};U(hK,fK);
var gK=function(a,b){return MJ(a.apiResourceFactory,b,{transformResponse:WGb})};g=hK.prototype;g.createIssue=function(a){return this.issueResource.create({},a)};g.getIssue=function(a,b){a={issueId:a};if(void 0===b?0:b)a.omitLegacyComment=1;return this.issueResource.get(a)};g.updateIssue=function(a,b){return this.issueResource.update({issueId:a},b)};g.moveIssueExternal=function(a,b){return this.issueExternalMoveResource.save({issueId:a},b)};
g.moveIssue=function(a,b){return this.moveIssueResource.save({issueId:a},b)};g.unCcUser=function(a){return this.unCcUserResource.save({issueId:a},{issueId:a})};g.relateIssue=function(a,b){return this.relateIssueResource.save({issueId:a},b)};g.updateIssueHotlists=function(a,b){return this.updateIssueHotlistsResource.save({issueId:a},b)};g.updateIssueRetention=function(a,b){return this.updateIssueRetentionResource.save({issueId:a},b)};
g.listIssues=function(a,b){b=void 0===b?{}:b;return this.issueListResource.get({},Object.assign({},b,{q:a}))};g.issueBulkEdit=function(a){return this.issueBulkEditResource.save({},a)};g.getRelatedIssues=function(a){return this.relatedIssuesResource.get(Object.assign({},a))};hK.\u0275fac=function(a){return new (a||hK)(t(KJ))};hK.\u0275prov=hc({token:hK,factory:hK.\u0275fac,providedIn:"root"});var iK=function(a){this.executor=a};g=iK.prototype;
g.createIssue=function(a){var b=new kGb;b.setSnapshot(Yqa(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(vqa(a.contentJudgement));return this.executor.post({url:"action/issues",body:b,responseConstructor:VJ}).pipe(R(rra))};g.getIssue=function(a,b){var c={};(void 0===b?0:b)&&(c.omitLegacyComment="1");return this.executor.get({url:"action/issues/"+a,options:{params:c},responseConstructor:ln}).pipe(R(function(d){return an(d)}))};
g.updateIssue=function(a,b){b=ira(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};g.moveIssueExternal=function(a,b){b=dra(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};g.moveIssue=function(a,b){b=bra(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};
g.unCcUser=function(a){var b=$qa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};g.relateIssue=function(a,b){b=ora(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};g.updateIssueHotlists=function(a,b){b=lra(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};
g.updateIssueRetention=function(a,b){b=qra(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:ln}).pipe(R(function(c){return an(c)}))};g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new pJ;l(c,1,a);b.count&&c.setCount(b.count);b.s&&l(c,3,b.s);b.p&&l(c,4,b.p);return this.executor.post({url:"action/issues/list",body:c,responseConstructor:cK}).pipe(R(xsa))};
g.issueBulkEdit=function(a){var b=new oHb;if(void 0!==a.actions)b.setIssueIdsList(a.issueIds.map(String)),b.setActionsList(a.actions.map(hra));else{var c=a.bulkEditOps.map(msa);Cb(b,4,c);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride)}return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:zHb}).pipe(R(osa))};
g.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));var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:eK}).pipe(R(mra))};iK.\u0275fac=function(a){return new (a||iK)(t(hI))};iK.\u0275prov=hc({token:iK,factory:iK.\u0275fac,providedIn:"root"});var jK=function(a){this.observableApi=a};U(jK,fK);g=jK.prototype;
g.createIssue=function(a){return(0,T.firstValueFrom)(this.observableApi.createIssue(a))};g.getIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getIssue(a,void 0===b?!1:b))};g.updateIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,T.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,T.firstValueFrom)(this.observableApi.unCcUser(a))};
g.relateIssue=function(a,b){return(0,T.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,T.firstValueFrom)(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a){return(0,T.firstValueFrom)(this.observableApi.issueBulkEdit(a))};
g.getRelatedIssues=function(a){return(0,T.firstValueFrom)(this.observableApi.getRelatedIssues(a))};jK.\u0275fac=function(a){return new (a||jK)(t(iK))};jK.\u0275prov=hc({token:jK,factory:jK.\u0275fac,providedIn:"root"});
var jn=function(a){Z.call(this,a)};U(jn,Z);jn.prototype.getResource=function(){return V(this,1)};jn.prototype.getRelation=function(){return Y(this,2,0)};jn.prototype.setRelation=function(a){l(this,2,a)};jn.prototype.toObject=function(){return vIb(void 0,this)};var vIb=function(a,b){if(null!=b){var c={resource:n(p(b,1)),relation:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};jn.messageId="b.ResourceRelation";
var kK=function(a){Z.call(this,a,-1,wIb)};U(kK,Z);var wIb=[1];kK.prototype.toObject=function(){var a=null!=this?{grantedList:Eb(tb(this,jn,1),vIb)}:void 0;return a};kK.messageId="b.UserAccessBatchResponse";
var lK=function(a,b){var c=this;this.userAccess=a;this.accesses={};this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$");this.accessGetter=b.adapt(function(d){return xIb(c,d)})},xIb=function(a,b){return yIb(a,b).then(function(c){return Bsa(b,c)})},mK=function(a,b,c){return a.resourceNamePattern.test(c)?zIb(a,b,c):Promise.reject("invalid resource name: "+
c)},yIb=function(a,b){var c=[],d=[];b=r(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return a.userAccess.bulkGetUserAccess(c,d)},zIb=function(a,b,c){var d=b+"/"+c;a.accesses[d]||(a.accesses[d]=a.accessGetter.get({relation:b,resourceName:c}).then(function(e){return null==e?!1:e}),a.accesses[d].then(function(){delete a.accesses[d]}));return a.accesses[d]};lK.\u0275fac=function(a){return new (a||lK)(t(nK),t(gI))};
lK.\u0275prov=hc({token:lK,factory:lK.\u0275fac,providedIn:"root"});var oK=function(a){this.executor=a};oK.prototype.bulkGetUserAccess=function(a,b){return this.executor.get({url:"action/user_access",options:{params:{relations:a.join(","),resourceNames:b.join(",")}},responseConstructor:kK}).pipe(R(Asa))};oK.\u0275fac=function(a){return new (a||oK)(t(hI))};oK.\u0275prov=hc({token:oK,factory:oK.\u0275fac,providedIn:"root"});var nK=function(a){this.observableApi=a};
nK.prototype.bulkGetUserAccess=function(a,b){return(0,T.firstValueFrom)(this.observableApi.bulkGetUserAccess(a,b))};nK.\u0275fac=function(a){return new (a||nK)(t(oK))};nK.\u0275prov=hc({token:nK,factory:nK.\u0275fac,providedIn:"root"});
var AIb=new od("MatSnackBarData"),kn=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};
var BIb=Hh("state",[Kh("void, hidden",Jh({transform:"scale(0.8)",opacity:0})),Kh("visible",Jh({transform:"scale(1)",opacity:1})),Lh("* => visible",Ih("150ms cubic-bezier(0, 0, 0.2, 1)")),Lh("* => void, * => hidden",Ih("75ms cubic-bezier(0.4, 0.0, 1, 1)",Jh({opacity:0})))]);
var pK=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._announceDelay=150;this._destroyed=!1;this._onAnnounce=new T.Subject;this._onExit=new T.Subject;this._onEnter=new T.Subject;this._animationState="void";this._live="assertive"!==e.politeness||e.announcementMessage?"off"===e.politeness?"off":"polite":"assertive";this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&
(this._role="alert"))};U(pK,cB);pK.prototype.attachComponentPortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachComponentPortal(a)};pK.prototype.attachTemplatePortal=function(a){this._applySnackBarClasses();return this._portalOutlet.attachTemplatePortal(a)};var CIb=function(a,b){var c=b.fromState;b=b.toState;("void"===b&&"void"!==c||"hidden"===b)&&a._completeExit();if("visible"===b){var d=a._onEnter;a._ngZone.run(function(){d.next();d.complete()})}};g=pK.prototype;
g.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};g.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)})};g.ngOnDestroy=function(){this._destroyed=!0;this._completeExit()};
g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Tf()).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
g._applySnackBarClasses=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));"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center");"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;null==(e=d)||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},150)})};pK.\u0275fac=function(a){return new (a||pK)(C(mg),C(sd),C(zx),C(My),C(kn))};
pK.\u0275cmp=w({type:pK,selectors:[["snack-bar-container"]],viewQuery:function(a,b){a&1&&Ef(eB,7);if(a&2){var c;Df(c=Gf())&&(b._portalOutlet=c.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,b){a&1&&kfa("@state.done",function(c){return CIb(b,c)});a&2&&ze("@state",b._animationState)},features:[ee],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(F(0,"div",0),M(1,Csa,0,0,"ng-template",1),G(),H(2,"div"));a&2&&(B(2),
ke("aria-live",b._live)("role",b._role))},dependencies:[eB],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}.cdk-high-contrast-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:[BIb]}});
var DIb=Math.pow(2,31)-1,qK=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new T.Subject;this._afterOpened=new T.Subject;this._onAction=new T.Subject;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};qK.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var Hsa=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete(),a.dismiss());clearTimeout(a._durationTimeoutId)};g=qK.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,DIb))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};
var rK=function(a,b){this.snackBarRef=a;this.data=b};rK.prototype.action=function(){Hsa(this.snackBarRef)};oi.Object.defineProperties(rK.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});rK.\u0275fac=function(a){return new (a||rK)(C(qK),C(AIb))};
rK.\u0275cmp=w({type:rK,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],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&&(F(0,"span",0),O(1),G(),M(2,Dsa,3,1,"div",1));a&2&&(B(1),He(b.data.message),B(1),E("ngIf",b.hasAction))},dependencies:[Gx,FB],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 sK=function(){};sK.\u0275fac=function(a){return new (a||sK)};sK.\u0275mod=xc({type:sK});sK.\u0275inj=ic({imports:[jB,fB,ay,wG,kB,kB]});
var EIb=new od("mat-snack-bar-default-options",{providedIn:"root",factory:Esa}),tK=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};g=tK.prototype;g.open=function(a,b,c){b=void 0===b?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this._attach(this.simpleSnackBarComponent,d)};
g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};g._attachSnackBarContainer=function(a,b){var c=kg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:kn,useValue:b}]});a=a.attach(new aB(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new kn,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new qK(b,e);if(a instanceof Af)f.instance=b.attachTemplatePortal(new bB(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new aB(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(fg(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a._afterDismissed.subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef._afterDismissed.subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&0<b.duration&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
g._createOverlay=function(a){var b=new OA;b.direction=a.direction;var c=this._overlay.position().global(),d="rtl"===a.direction;d="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!d||"end"===a.horizontalPosition&&d;var e=!d&&"center"!==a.horizontalPosition;d?c.left("0"):e?c.right("0"):XA(c);"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return kg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:qK,useValue:b},{provide:AIb,useValue:a.data}]})};oi.Object.defineProperties(tK.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}}});
tK.\u0275fac=function(a){return new (a||tK)(t(gB),t(dA),t(Uv),t(tF),t(tK,12),t(EIb))};tK.\u0275prov=hc({token:tK,factory:tK.\u0275fac});var uK=function(a,b,c,d,e,f){tK.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=rK;this.snackBarContainerComponent=pK;this.handsetCssClass="mat-snack-bar-handset"};U(uK,tK);uK.\u0275fac=function(a){return new (a||uK)(t(gB),t(dA),t(Uv),t(tF),t(uK,12),t(EIb))};uK.\u0275prov=hc({token:uK,factory:uK.\u0275fac,providedIn:sK});
var vK=function(a){this.snackBar=a};vK.prototype.open=function(a){var b=a.message,c=a.duration,d=a.snackbarType;a={dismissLabel:a.dismissLabel,actionLabel:a.actionLabel,snackbarType:d};"string"===typeof b?a.message=b:a.htmlMessage=nh(uh(b).toString(),null);switch(d){case "ERROR":b="error";break;default:b=void 0}b={data:a,panelClass:b};c&&(b.duration=c);return this.snackBar._attach(wK,b)};vK.\u0275fac=function(a){return new (a||vK)(t(uK))};vK.\u0275prov=hc({token:vK,factory:vK.\u0275fac,providedIn:"root"});
var wK=function(a,b){this.data=a;this.snackBarRef=b};wK.\u0275fac=function(a){return new (a||wK)(C(AIb),C(qK))};
wK.\u0275cmp=w({type:wK,selectors:[["ng-component"]],decls:7,vars:5,consts:[[1,"snackbar-content"],["class","message",4,"ngIf"],["class","message",3,"innerHtml",4,"ngIf"],[1,"actions"],["mat-button","",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss",3,"click",4,"ngIf"],[1,"message"],[1,"message",3,"innerHtml"],["mat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,Fsa,2,1,"span",1),M(2,
Gsa,1,1,"span",2),F(3,"div",3),M(4,Isa,2,1,"button",4),M(5,Jsa,2,1,"button",4),M(6,Ksa,2,0,"button",5),G()());a&2&&(B(1),E("ngIf",!b.data.htmlMessage),B(1),E("ngIf",b.data.htmlMessage),B(2),E("ngIf",b.data.actionLabel),B(1),E("ngIf",b.data.dismissLabel),B(1),E("ngIf",!b.data.dismissLabel))},dependencies:[Gx,FB,hF],styles:[".snackbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;word-break:break-word}button[_ngcontent-%COMP%]:not(.mat-icon-button){height:24px;line-height:24px;padding:0 10px}.mat-icon-button[_ngcontent-%COMP%]{line-height:24px}.actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-left:5px;align-items:center}\n/*# sourceMappingURL=snackbar_content.css.map */"]});
var xK=function(a){this.snackbar=a};xK.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var yK=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},FIb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},zK=function(a,b,c){a.open({message:b,duration:void 0===c?0:c,snackbarType:"ERROR"})};xK.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};xK.\u0275fac=function(a){return new (a||xK)(t(vK))};
xK.\u0275prov=hc({token:xK,factory:xK.\u0275fac,providedIn:"root"});
var AK=function(){};g=AK.prototype;g.debug=function(){Uk.apply(null,v(tc.apply(0,arguments)))};g.error=function(){Wpa.apply(null,v(tc.apply(0,arguments)))};g.info=function(){Upa.apply(null,v(tc.apply(0,arguments)))};g.log=function(){Vpa.apply(null,v(tc.apply(0,arguments)))};g.warn=function(){Vk.apply(null,v(tc.apply(0,arguments)))};AK.\u0275fac=function(a){return new (a||AK)};AK.\u0275prov=hc({token:AK,factory:AK.\u0275fac,providedIn:"root"});
var BK=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
BK.prototype.errorHandler=function(a,b){var c=this,d=!1;-1===b.status&&(a=Ura(b)&&b.config&&b.config.timeout&&ana(b.config.timeout)?b.config.timeout:void 0,a&&a.then(function(){d=!0}));this.timeout.schedule(function(){if(!d){var e=403===b.status?"Access denied for: "+c.activeSession.getUserEmail():429===b.status?"Request throttled for: "+c.activeSession.getUserEmail()+". Please wait a few seconds and try again.":Im(b)?Im(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";
c.$log.error(e,b);zK(c.butterBar,e)}})};var CK=function(a,b){a.$log.warn(b);zK(a.butterBar,b)},DK=function(a,b){if(Hm(b))a.errorHandler(null,b);else throw b;};BK.\u0275fac=function(a){return new (a||BK)(t(xK),t(qH),t(AK),t(fI))};BK.\u0275prov=hc({token:BK,factory:BK.\u0275fac,providedIn:"root"});
var EK=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},HIb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=sa(c.issue.snapshot);c=c.events[0].unlinkifiedComment;d.comment=c?c.trim():"";d.status="NEW";delete d.createdTimeMicros;delete d.version;delete d.changelist;delete d.significanceOverride;delete d.duplicateIssueId;delete d.duplicateOfIssueId;return{snapshot:d,customFieldMap:{}}}).then(function(c){return GIb(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,
c)});return b},GIb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return mK(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,h){return e[h]});return b})};EK.\u0275fac=function(a){return new (a||EK)(t(fK),t(PJ),t(BK),t(lK))};EK.\u0275prov=hc({token:EK,factory:EK.\u0275fac,providedIn:"root"});
var FK=function(){this.bookmarkGroupModified=new T.Subject;this.commentSubmitted=new T.Subject;this.commentRendered=new T.Subject;this.componentModified=new T.Subject;this.contactChipsRevertChanges=new T.Subject;this.customFieldsModified=new T.Subject;this.dashboardPanels={moveDown:new T.Subject,moveUp:new T.Subject,moveToTop:new T.Subject,moveToBottom:new T.Subject,remove:new T.Subject};this.favoritesModified=new T.Subject;this.hotlistCreated=new T.Subject;this.onClickAppMenuIcon=new T.Subject;this.openEditField=
new T.Subject;this.sidebarWidthChanged=new T.Subject;this.hotlistChanged=new T.Subject;this.savedSearchModified=new T.Subject;this.sidebarUpdated=new T.Subject;this.topBarEvents={browseComponents:new T.Subject,manageHotlists:new T.Subject,manageSlos:new T.Subject,setDensity:new T.Subject,openSettings:new T.Subject};this.templateModified=new T.Subject;this.issueViewed=new T.Subject;this.issueEdited=new T.Subject;this.focusCommentBox=new T.Subject;this.scrollToCommentBox=new T.Subject};
FK.\u0275fac=function(a){return new (a||FK)};FK.\u0275prov=hc({token:FK,factory:FK.\u0275fac,providedIn:"root"});
var HK=function(a,b){DJ.call(this,{freshUntil:3E5,ancientAfter:6048E5});var c=this;this.template=a;this.appEvents=b;this.recordType="componentTemplates";this.idKey="componentId";this.defaultTemplate$=function(d){return c.watch(d).pipe(uf(el),R(function(e){return e.templates}),R(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(uf(function(d){return!!d&&"0"!==d})).subscribe(function(d){mt(c,d)})};U(HK,DJ);
HK.prototype.fetchOne=function(a){return(0,T.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};HK.\u0275fac=function(a){return new (a||HK)(t(EK),t(FK))};HK.\u0275prov=hc({token:HK,factory:HK.\u0275fac,providedIn:"root"});
var Lsa=function(a){Z.call(this,a,-1,IIb)};U(Lsa,Z);var IIb=[1];Lsa.prototype.toObject=function(){var a=null!=this?{issueDetailsList:Eb(tb(this,ln,1),rIb)}:void 0;return a};
var JIb=!1;
var LIb=function(a){Z.call(this,a,-1,KIb)};U(LIb,Z);g=LIb.prototype;g.getComponentId=function(){return hj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return gj(this,1)};g.getType=function(){return Y(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return gj(this,2)};g.getPriority=function(){return Y(this,3,0)};g.setPriority=function(a){return l(this,3,a)};g.getSeverity=function(){return Y(this,4,0)};
g.setSeverity=function(a){return l(this,4,a)};g.getStatus=function(){return Y(this,5,0)};g.setStatus=function(a){return l(this,5,a)};g.hasStatus=function(){return gj(this,5)};g.getReporter=function(){return m(this,Vl,6)};g.setReporter=function(a){Db(this,6,a)};g.getAssignee=function(){return m(this,Vl,7)};g.setAssignee=function(a){Db(this,7,a)};g.clearAssignee=function(){return Db(this,7)};g.getVerifier=function(){return m(this,Vl,8)};g.setVerifier=function(a){Db(this,8,a)};
g.clearVerifier=function(){return Db(this,8)};g.getCcsList=function(){return tb(this,Vl,9)};g.addHotlistIds=function(a,b){return qb(this,10,a,b)};g.setInProd=function(a){l(this,15,a)};g.getSloSnoozeUntil=function(){return m(this,vj,16)};g.setSloSnoozeUntil=function(a){Db(this,16,a)};g.getRetention=function(){return Y(this,17,0)};g.setRetention=function(a){l(this,17,a)};g.getEntityStatus=function(){return m(this,YJ,18)};g.getIsArchived=function(){return W(this,19)};
g.setIsArchived=function(a){l(this,19,a)};var KIb=[9,10,11,12,14];LIb.prototype.toObject=function(){return MIb(this)};
var MIb=function(a){if(null!=a)return{componentId:n(p(a,1)),type:n(p(a,2)),priority:n(p(a,3)),severity:n(p(a,4)),status:n(p(a,5)),reporter:lJ(void 0,a.getReporter()),assignee:lJ(void 0,a.getAssignee()),verifier:lJ(void 0,a.getVerifier()),ccsList:Eb(a.getCcsList(),lJ),hotlistIdsList:n(lb(a,10)),blockedByIssueIdsList:n(lb(a,11)),blockingIssueIdsList:n(lb(a,12)),canonicalIssueId:n(p(a,13)),duplicateIssueIdsList:n(lb(a,14)),inProd:n(Xo(a,15)),sloSnoozeUntil:Zu(void 0,a.getSloSnoozeUntil()),retention:n(p(a,
17)),entityStatus:UHb(void 0,a.getEntityStatus()),isArchived:n(Xo(a,19))}};
var NIb=function(a){Z.call(this,a)};U(NIb,Z);g=NIb.prototype;g.getIssueId=function(){return hj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getIssueState=function(){return m(this,LIb,2)};g.getVersion=function(){return hj(this,3)};g.setVersion=function(a){return l(this,3,a)};g.getCreatedTime=function(){return m(this,vj,4)};g.getModifiedTime=function(){return m(this,vj,5)};g.getResolvedTime=function(){return m(this,vj,6)};g.getVerifiedTime=function(){return m(this,vj,7)};
g.getSloId=function(){return hj(this,9)};g.setSloId=function(a){return l(this,9,a)};g.getSloStatus=function(){return m(this,nm,10)};g.setSloStatus=function(a){Db(this,10,a)};g.getRetentionState=function(){return m(this,lm,11)};g.setRetentionState=function(a){Db(this,11,a)};g.getAccessLimit=function(){return m(this,Sk,12)};g.setAccessLimit=function(a){return Db(this,12,a)};g.getTeamId=function(){return hj(this,13)};g.setTeamId=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),issueState:MIb(this.getIssueState()),version:n(p(this,3)),createdTime:Zu(void 0,this.getCreatedTime()),modifiedTime:Zu(void 0,this.getModifiedTime()),resolvedTime:Zu(void 0,this.getResolvedTime()),verifiedTime:Zu(void 0,this.getVerifiedTime()),sloId:n(p(this,9)),sloStatus:bGb(void 0,this.getSloStatus()),retentionState:jJ(void 0,this.getRetentionState()),accessLimit:FFb(void 0,this.getAccessLimit()),teamId:n(p(this,13))}:void 0;return a};
NIb.messageId="b.IssueMetadata";
var IK=function(a){Z.call(this,a,-1,OIb)};U(IK,Z);IK.prototype.setIssueIdsList=function(a){ml(this,1,a)};IK.prototype.addIssueIds=function(a){qb(this,1,a)};var OIb=[1];IK.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(lb(this,1)),read:n(Xo(this,2))}:void 0;return a};
var PIb=function(a){Z.call(this,a)};U(PIb,Z);PIb.prototype.toObject=function(){var a=null!=this?{readTimestamp:n(p(this,1))}:void 0;return a};PIb.messageId="b.UpdateIssueReadTimestampResponse";
var JK=function(a){this.executor=a};JK.prototype.delete=function(a,b){var c=new mJ;c.setIssueId(String(a));c.setReason(Xqa[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};JK.prototype.undelete=function(a){var b=new qJ;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};JK.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:NIb}).then(ssa)};
JK.prototype.markRead=function(a,b){b=void 0===b?!0:b;var c=new IK;c.setIssueIdsList(a.map(Number));l(c,2,b);return this.executor.post({url:"action/issues/read_timestamp",body:c,responseConstructor:PIb}).then(rsa)};JK.\u0275fac=function(a){return new (a||JK)(t(iI))};JK.\u0275prov=hc({token:JK,factory:JK.\u0275fac,providedIn:"root"});
var QIb=function(a){this.allowExecution=a;this.queue=[]};QIb.prototype.addTask=function(a){this.queue.push(a);RIb(this)};var RIb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=r(a.queue),c=b.next().value;a.queue=tf(b);c();RIb(a)}else setTimeout(function(){RIb(a)},0)};
var KK=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new QIb(function(){return!e.router.currentNavigation})};g=KK.prototype;g.absUrl=function(){return this.platformLocation.href};g.hash=function(a,b){return"undefined"===typeof a?this.getHash():this.setHash(null!=a?a:"",b)};g.getHash=function(){var a;return null!=(a=this.activatedRoute.snapshot.fragment)?a:""};
g.setHash=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([],{fragment:a,replaceUrl:b})});return this};g.path=function(a,b){return"undefined"===typeof a?this.getPath():this.setPath(a,b)};var SIb=function(a,b){a.path(b,!0)};g=KK.prototype;g.getPath=function(){var a=r(this.location.path().split("?")).next().value;return r(a.split("#")).next().value};
g.setPath=function(a,b){var c=this;a=void 0===a?"":a;b=void 0===b?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};g.search=function(a,b,c){if("undefined"===typeof a)return this.getSearch();this.setSearch(a,b,c);return this};g.getSearch=function(){return Usa(this.activatedRoute.snapshot.queryParamMap)};
g.setSearch=function(a,b,c){var d=this;c=void 0===c?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};g.url=function(a,b){return"undefined"===typeof a?this.getUrl():this.setUrl(a,b)};g.replaceUrl=function(a){return this.url(a,!0)};g.setUrl=function(a,b){var c=this;b=void 0===b?!1:b;return new Promise(function(d,e){c.addTask(function(){jt(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};
g.getUrl=function(){return this.location.path(!0)};g.addTask=function(a){this.scheduler.addTask(a)};KK.\u0275fac=function(a){return new (a||KK)(t(hy),t(by),t(gk),t(Ik))};KK.\u0275prov=hc({token:KK,factory:KK.\u0275fac,providedIn:"root"});
var LK=function(a){this.bLocation=a};LK.prototype.createIssue=function(a){return on("issues/new",{params:a})};LK.prototype.editIssue=function(a,b){return nn(a,b)};LK.prototype.listIssues=function(a){return pn(a)};LK.prototype.viewSavedSearch=function(a){return mn("savedsearches/:savedSearchId",{id:a,params:void 0})};
var TIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;return a.bLocation.path()===b},UIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new hp(a);b=new hp(b);return a.getPath()===b.getPath()&&QG(a.queryData_.toString())===QG(b.queryData_.toString())};g=LK.prototype;g.viewHotlist=function(a){return mn("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return on("hotlists/:hotlistId/edit",{id:a,tab:void 0})};g.createHotlist=function(){return"hotlists/new"};g.createBookmarkGroup=function(){return"bookmark-groups/new"};
g.viewBookmarkGroup=function(a){return mn("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return on("bookmark-groups/:groupId/edit",{id:a})};g.editSavedSearch=function(a){return on("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return on("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d){b=Nsa(b);c=Osa(c);return gE("action/issues/csv","q",a,"s",b,"c",c,"h",d)};
g.hotlistIssuesCsvAction=function(a,b,c,d){a="action/hotlists/"+a+"/issues/csv";b=Nsa(b);(c=Osa(c))&&(c="position,"+c);return gE(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return Nsa(a)};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return on("components",{params:void 0})};g.viewComponent=function(a,b){return mn("components/:componentId",{id:a,tab:b})};g.manageComponent=function(a,b){return Psa(a,b)};
g.manageComponentAcl=function(a){return mn("components/:componentId/manage#access",{id:a,tab:void 0})};g.createComponent=function(a){return on("components/new",{params:a})};g.editComponent=function(a,b){return on("components/:componentId/edit",{id:a,tab:b})};g.createSlo=function(){return on("slos/new",{params:void 0})};g.editSlo=function(a){return sn(a).path};g.listSlos=function(){return on("slos",{params:void 0})};
g.getBaseUrl=function(){var a=this.bLocation.absUrl();a=a.slice(0,a.length-this.bLocation.url().length);"/"===a.charAt(a.length-1)&&(a=a.slice(0,a.length-1));return a};g.listHotlists=function(){return"hotlists"};LK.\u0275fac=function(a){return new (a||LK)(t(KK))};LK.\u0275prov=hc({token:LK,factory:LK.\u0275fac,providedIn:"root"});
var VIb=function(a,b){this.childIterator_=a[da.Symbol.iterator]();this.mapFn_=b};VIb.prototype[Symbol.iterator]=function(){return this};VIb.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 WIb=function(a,b){return new VIb(a,b)};
var MK=function(){};MK.prototype.next=function(){return XIb};var XIb={done:!0,value:void 0};MK.prototype.__iterator__=function(){return this};
var YIb=function(a){if(a instanceof NK||a instanceof OK||a instanceof PK)return a;if("function"==typeof a.next)return new NK(function(){return a});if("function"==typeof a[Symbol.iterator])return new NK(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new NK(function(){return a.__iterator__()});throw Error("Sc");},NK=function(a){this.func_=a};NK.prototype.__iterator__=function(){return new OK(this.func_())};NK.prototype[Symbol.iterator]=function(){return new PK(this.func_())};
NK.prototype.toEs6=function(){return new PK(this.func_())};var OK=function(a){this.iter_=a};U(OK,MK);OK.prototype.next=function(){return this.iter_.next()};OK.prototype[Symbol.iterator]=function(){return new PK(this.iter_)};OK.prototype.toEs6=function(){return new PK(this.iter_)};var PK=function(a){NK.call(this,function(){return a});this.iter_=a};U(PK,NK);PK.prototype.next=function(){return this.iter_.next()};
var QK=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Tc");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=QK.prototype;g.getCount=function(){return this.size};g.getValues=function(){RK(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){RK(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return SK(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(SK(this.map_,c)&&this.map_[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||ZIb;RK(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var ZIb=function(a,b){return a===b};QK.prototype.isEmpty=function(){return 0==this.size};
QK.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};QK.prototype.remove=function(a){return this.delete(a)};QK.prototype.delete=function(a){return SK(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&RK(this),!0):!1};
var RK=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];SK(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.size!=a.keys_.length){var e={};for(c=b=0;b<a.keys_.length;)d=a.keys_[b],SK(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=QK.prototype;g.get=function(a,b){return SK(this.map_,a)?this.map_[a]:b};g.set=function(a,b){SK(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};
g.addAll=function(a){if(a instanceof QK)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};g.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new QK(this)};g.toObject=function(){RK(this);for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};g.keys=function(){return YIb(this.__iterator__(!0)).toEs6()};g.values=function(){return YIb(this.__iterator__(!1)).toEs6()};
g.entries=function(){var a=this;return WIb(this.keys(),function(b){return[b,a.get(b)]})};g.__iterator__=function(a){RK(this);var b=0,c=this.version_,d=this,e=new MK;e.next=function(){if(c!=d.version_)throw Error("Uc");if(b>=d.keys_.length)return XIb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var SK=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var TK=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new QK;this.head_=new $Ib("");this.head_.next=this.head_.prev=this.head_},bJb=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),aJb(a,b));return b};TK.prototype.get=function(a,b){return(a=bJb(this,a))?a.value:b};var cJb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=TK.prototype;g.set=function(a,b){var c=bJb(this,a);c?c.value=b:(c=new $Ib(a,b),this.map_.set(a,c),aJb(this,c))};
g.shift=function(){return dJb(this,this.head_.next)};g.pop=function(){return dJb(this,this.head_.prev)};g.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};g.removeNode=function(a){a.remove();this.map_.remove(a.key)};g.getCount=function(){return this.map_.getCount()};g.isEmpty=function(){return this.map_.isEmpty()};g.getKeys=function(){return this.map(function(a,b){return b})};g.getValues=function(){return this.map(function(a){return a})};
g.contains=function(a){return this.some(function(b){return b==a})};g.containsKey=function(a){return this.map_.containsKey(a)};g.clear=function(){eJb(this,0)};g.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};g.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};g.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
g.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var aJb=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);null!=a.maxCount_&&eJb(a,a.maxCount_)},eJb=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)}},dJb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},$Ib=function(a,b){this.key=a;this.value=b};
$Ib.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var UK=function(){this.caches=new Map};UK.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Vc`"+a);b=new VK(null==b?void 0:b.capacity);this.caches.set(a,b);return b};UK.prototype.get=function(a){return this.caches.get(a)};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275prov=hc({token:UK,factory:UK.\u0275fac,providedIn:"root"});var VK=function(a){this.lruCache=new TK(a,!0)};VK.prototype.get=function(a){return this.lruCache.get(a)};
VK.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};VK.prototype.remove=function(a){this.lruCache.remove(a)};VK.prototype.removeAll=function(){this.lruCache.clear()};
var tn=function(a){Z.call(this,a)};U(tn,Z);g=tn.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getCustomFieldId=function(){return nj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return gj(this,2)};g.getCustomFieldName=function(){return V(this,3)};g.toObject=function(){return fJb(void 0,this)};
var fJb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2)),customFieldName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var un=function(a){Z.call(this,a)};U(un,Z);g=un.prototype;g.getField=function(){return m(this,tn,1)};g.setField=function(a){Db(this,1,a)};g.getDirection=function(){return Y(this,2,0)};g.setDirection=function(a){return l(this,2,a)};g.toObject=function(){return gJb(void 0,this)};var gJb=function(a,b){if(null!=b){var c={field:fJb(a,b.getField()),direction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var vn=function(a){Z.call(this,a,-1,hJb)};U(vn,Z);g=vn.prototype;g.getHotlistId=function(){return nj(this,1)};g.setHotlistId=function(a){l(this,1,a)};g.getOwnerUser=function(){return m(this,Vl,13)};g.setOwnerUser=function(a){Db(this,13,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return W(this,6)};
g.setArchived=function(a){l(this,6,a)};g.getDisplayColumnList=function(){return tb(this,tn,8)};g.setDisplayColumnList=function(a){Cb(this,8,a)};g.getSortOrderList=function(){return tb(this,un,9)};g.setSortOrderList=function(a){Cb(this,9,a)};g.getCreatedTimeMicros=function(){return hj(this,10)};g.setCreatedTimeMicros=function(a){l(this,10,a)};g.getModifiedTimeMicros=function(){return hj(this,11)};g.setModifiedTimeMicros=function(a){l(this,11,a)};g.getAdminUsersList=function(){return tb(this,Vl,14)};
g.setAdminUsersList=function(a){Cb(this,14,a)};g.getEtag=function(){return V(this,15)};g.setEtag=function(a){l(this,15,a)};g.hasEtag=function(){return gj(this,15)};var hJb=[8,9,14];vn.prototype.toObject=function(){return iJb(void 0,this)};
var iJb=function(a,b){if(null!=b){var c={hotlistId:n(p(b,1)),ownerUser:lJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),archived:n(Xo(b,6)),displayColumnList:Eb(b.getDisplayColumnList(),fJb,a),sortOrderList:Eb(b.getSortOrderList(),gJb,a),createdTimeMicros:n(p(b,10)),modifiedTimeMicros:n(p(b,11)),adminUsersList:Eb(b.getAdminUsersList(),lJ,a),etag:n(p(b,15))};a&&(c.$jspbMessageInstance=b);return c}};vn.messageId="b.Hotlist";
var WK=function(a){Z.call(this,a,-1,jJb)};U(WK,Z);WK.prototype.getHotlistsList=function(){return tb(this,vn,1)};var jJb=[1];WK.prototype.toObject=function(){var a=null!=this?{hotlistsList:Eb(this.getHotlistsList(),iJb)}:void 0;return a};WK.messageId="b.ListHotlistsResponse";
var XK=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:250})};XK.prototype.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};XK.prototype.bulkLoad=function(a){var b=this;a=a.filter(function(d){return!b.hotlistCache.get(String(d))});if(!a.length)return Promise.resolve(void 0);var c=this.hotlistApi.bulkLoad(a);kJb(this,a,c);return c};
var kJb=function(a,b,c){c=c.then(function(f){if(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,h[k.hotlistId]=k;return h}});var d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$id$1672:d.$jscomp$loop$prop$id$1672},e=b.next())d.$jscomp$loop$prop$id$1672=e.value,a.hotlistCache.put(String(d.$jscomp$loop$prop$id$1672),c.then(function(f){return function(h){return h&&h[f.$jscomp$loop$prop$id$1672]?h[f.$jscomp$loop$prop$id$1672]:Promise.reject({data:{message:"Could not load hotlist "+
f.$jscomp$loop$prop$id$1672}})}}(d)))};g=XK.prototype;g.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};g.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};g.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};g.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};g.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};
g.getPagedHotlistContent=function(a,b,c,d){return this.hotlistApi.getPagedHotlistContent(a,b,c,d)};XK.\u0275fac=function(a){return new (a||XK)(t(UK),t(YK))};XK.\u0275prov=hc({token:XK,factory:XK.\u0275fac,providedIn:"root"});var ZK=function(a,b){this.paths=a;this.executor=b};g=ZK.prototype;g.get=function(a){return this.executor.get({url:"action/hotlists/"+a,responseConstructor:vn}).pipe(R(wn))};g.bulkLoad=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:WK,options:{params:{id:a.map(String)}}}).pipe(R(bta))};
g.repositionHotlistIssue=function(a,b,c){var d=new hm;d.setIssueId(String(Number(b)));d.setPosition(c);return this.executor.put({url:"action/hotlists/"+a+"/issues",body:d,responseConstructor:null})};g.createHotlist=function(a,b){var c=new vn;c.setName(a);b&&c.setDescription(b);return this.executor.post({url:"action/hotlists",body:c,responseConstructor:vn}).pipe(R(wn))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:WK,options:{params:{q:a}}}).pipe(R(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(wn)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:ata(b),responseConstructor:vn}).pipe(R(wn))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:ata(b),options:{headers:c},responseConstructor:vn}).pipe(R(wn))};g.getPagedHotlistContent=function(a,b,c,d){b={p:String(b),count:String(c)};(d=this.paths.toApiSortParamValue(d))&&(b.s=d);return this.executor.get({url:"action/hotlists/"+a+"/issues",options:{params:b},responseConstructor:cK}).pipe(R(xsa))};ZK.\u0275fac=function(a){return new (a||ZK)(t(LK),t(hI))};
ZK.\u0275prov=hc({token:ZK,factory:ZK.\u0275fac,providedIn:"root"});var YK=function(a){this.observableApi=a};g=YK.prototype;g.get=function(a){return(0,T.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,T.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return(0,T.firstValueFrom)(this.observableApi.createHotlist(a,b))};
g.queryHotlists=function(a){return(0,T.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,T.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,T.firstValueFrom)(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d){return(0,T.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d))};YK.\u0275fac=function(a){return new (a||YK)(t(ZK))};
YK.\u0275prov=hc({token:YK,factory:YK.\u0275fac,providedIn:"root"});
var lJb=function(a){Z.call(this,a)};U(lJb,Z);g=lJb.prototype;g.getUser=function(){return m(this,Vl,5)};g.setUser=function(a){Db(this,5,a)};g.getResourceType=function(){return Y(this,2,0)};g.setResourceType=function(a){l(this,2,a)};g.hasResourceType=function(){return gj(this,2)};g.getResourceId=function(){return nj(this,3)};g.setResourceId=function(a){l(this,3,a)};g.hasResourceId=function(){return gj(this,3)};g.getName=function(){return V(this,4)};g.setName=function(a){return l(this,4,a)};
g.hasName=function(){return gj(this,4)};g.toObject=function(){return mJb(this)};var mJb=function(a){if(null!=a)return{user:lJ(void 0,a.getUser()),resourceType:n(p(a,2)),resourceId:n(p(a,3)),name:n(p(a,4))}};
var xn=function(a){Z.call(this,a,-1,nJb)};U(xn,Z);g=xn.prototype;g.getOwnerUser=function(){return m(this,Vl,10)};g.setOwnerUser=function(a){Db(this,10,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getQuery=function(){return V(this,7)};g.setQuery=function(a){return l(this,7,a)};g.clearQuery=function(){ob(this,7)};
g.hasQuery=function(){return gj(this,7)};g.getSortOrderList=function(){return tb(this,un,8)};g.setSortOrderList=function(a){Cb(this,8,a)};g.getDisplayColumnList=function(){return tb(this,tn,6)};g.setDisplayColumnList=function(a){Cb(this,6,a)};g.getAdminUsersList=function(){return tb(this,Vl,11)};g.setAdminUsersList=function(a){Cb(this,11,a)};var nJb=[8,6,11];xn.prototype.toObject=function(){return oJb(void 0,this)};
var oJb=function(a,b){if(null!=b){var c={searchId:n(p(b,1)),ownerUser:lJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),query:n(p(b,7)),sortOrderList:Eb(b.getSortOrderList(),gJb,a),displayColumnList:Eb(b.getDisplayColumnList(),fJb,a),adminUsersList:Eb(b.getAdminUsersList(),lJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var $K=function(a){Z.call(this,a)};U($K,Z);$K.prototype.getFavorite=function(){return m(this,lJb,1)};$K.prototype.toObject=function(){var a=null!=this?{favorite:mJb(this.getFavorite())}:void 0;return a};$K.messageId="b.Favorite";
var aL=function(a){Z.call(this,a,-1,pJb)};U(aL,Z);aL.prototype.addHotlist=function(a){Du(this,1,vn,a)};var pJb=[1];aL.prototype.toObject=function(){var a=null!=this?{hotlistList:Eb(tb(this,vn,1),iJb)}:void 0;return a};aL.messageId="b.HotlistBatchResponse";
var yn=function(a){Z.call(this,a)};U(yn,Z);g=yn.prototype;g.getId=function(){return nj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return gj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Vl,7)};g.setOwnerUser=function(a){Db(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return gj(this,5)};g.getResourceType=function(){return V(this,6)};g.setResourceType=function(a){l(this,6,a)};g.hasResourceType=function(){return gj(this,6)};g.toObject=function(){return qJb(void 0,this)};var qJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:lJ(a,b.getOwnerUser()),starred:n(Xo(b,5)),resourceType:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var zn=function(a){Z.call(this,a,-1,rJb)};U(zn,Z);g=zn.prototype;g.getId=function(){return nj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return gj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Vl,7)};g.setOwnerUser=function(a){Db(this,7,a)};g.getStarred=function(){return W(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return gj(this,5)};var rJb=[6];zn.prototype.toObject=function(){return sJb(void 0,this)};var sJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:lJ(a,b.getOwnerUser()),starred:n(Xo(b,5)),sublinksList:Eb(tb(b,yn,6),qJb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var bL=function(a){Z.call(this,a,-1,tJb)};U(bL,Z);bL.prototype.getHotlistsList=function(){return tb(this,yn,1)};bL.prototype.getBookmarkGroupsList=function(){return tb(this,zn,2)};var tJb=[1,2,3,4];bL.prototype.toObject=function(){var a=null!=this?{hotlistsList:Eb(this.getHotlistsList(),qJb),bookmarkGroupsList:Eb(this.getBookmarkGroupsList(),sJb),archivedHotlistsList:Eb(tb(this,yn,3),qJb),archivedBookmarkGroupsList:Eb(tb(this,zn,4),sJb)}:void 0;return a};bL.messageId="b.SidebarInfo";
var vJb=function(a){Z.call(this,a,-1,uJb)};U(vJb,Z);var uJb=[1];vJb.prototype.toObject=function(){var a=null!=this?{componentsList:Eb(tb(this,um,1),rJ)}:void 0;return a};vJb.messageId="b.UserRecentComponentResponse";
var xJb=function(a){Z.call(this,a,-1,wJb)};U(xJb,Z);var wJb=[1];xJb.prototype.toObject=function(){var a=null!=this?{searchesList:Eb(tb(this,xn,1),oJb)}:void 0;return a};xJb.messageId="b.UserSavedSearchesResponse";
var cL=function(){},dL=function(a){this.apiResourceFactory=a;this.userHotlistsResource=dHb(LJ(this.apiResourceFactory,"action/current_user/hotlists")).build();this.userSidebarResource=JJ(LJ(this.apiResourceFactory,"action/current_user/sidebar")).build();this.recentComponentsResource=dHb(LJ(this.apiResourceFactory,"action/current_user/recent_components")).build();this.userSavedSearchesResource=dHb(LJ(this.apiResourceFactory,"action/current_user/searches")).build();this.favoritesResource=gHb(eHb(JJ(LJ(this.apiResourceFactory,
"action/favorites/:resourceType/:resourceId")))).build()};U(dL,cL);g=dL.prototype;g.getUserHotlists=function(){return this.userHotlistsResource.query({})};g.getUserSidebar=function(){return this.userSidebarResource.get({})};g.getRecentComponents=function(){return this.recentComponentsResource.query({})};g.getUserSavedSearches=function(){return this.userSavedSearchesResource.query({})};g.getFavorite=function(a,b){return this.favoritesResource.get({resourceType:a,resourceId:b})};
g.saveFavorite=function(a){return this.favoritesResource.save({},a)};g.deleteFavorite=function(a){return this.favoritesResource.delete({resourceType:a.resourceType,resourceId:a.resourceId}).then(function(){})};dL.\u0275fac=function(a){return new (a||dL)(t(KJ))};dL.\u0275prov=hc({token:dL,factory:dL.\u0275fac,providedIn:"root"});var eL=function(){};eL.\u0275fac=function(a){return new (a||eL)};eL.\u0275prov=hc({token:eL,factory:eL.\u0275fac,providedIn:"root"});var fL=function(a){this.http=a};U(fL,eL);
fL.prototype.getRecentComponents=function(){return this.http.get("action/current_user/recent_components").pipe(R(function(a){return Array.isArray(a)?a.map(ym).filter(xm):[]}))};fL.prototype.getUserSavedSearches=function(){return this.http.get("action/current_user/searches",{}).pipe(R(function(a){return Array.isArray(a)?a.filter(kta):[]}))};fL.\u0275fac=function(a){return new (a||fL)(t(XE))};fL.\u0275prov=hc({token:fL,factory:fL.\u0275fac,providedIn:"root"});var gL=function(a){this.executor=a};
U(gL,eL);g=gL.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:aL}).pipe(R(cta))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:bL}).pipe(R(jta))};g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:vJb}).pipe(R(zra))};
g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:xJb}).pipe(R(gta))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:$K}).pipe(R(eta))};g.saveFavorite=function(a){var b=new lJb;b.setResourceType(IAb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:$K}).pipe(R(eta))};
g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};gL.\u0275fac=function(a){return new (a||gL)(t(hI))};gL.\u0275prov=hc({token:gL,factory:gL.\u0275fac,providedIn:"root"});var hL=function(a){this.observableApi=a};U(hL,cL);g=hL.prototype;g.getUserHotlists=function(){return(0,T.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,T.firstValueFrom)(this.observableApi.getUserSidebar())};
g.getRecentComponents=function(){return(0,T.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,T.firstValueFrom)(this.observableApi.getUserSavedSearches())};g.getFavorite=function(a,b){return(0,T.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,T.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,T.firstValueFrom)(this.observableApi.deleteFavorite(a))};
hL.\u0275fac=function(a){return new (a||hL)(t(gL))};hL.\u0275prov=hc({token:hL,factory:hL.\u0275fac,providedIn:"root"});
var yJb={parent:"me"},iL=function(a,b,c){DJ.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,T.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){FJ(d,yJb)})};U(iL,DJ);
iL.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(Pf(function(b){return 403===b.status?(0,T.of)(void 0):(0,T.throwError)(b)}))};iL.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(R(function(b){return{results:b}}));Vk("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,T.of)({results:[]})};
iL.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(R(function(b){return(null!=b?b:[]).filter(el)}))};iL.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};var zJb=function(a){return SGb(a,yJb).pipe(R(function(b){return b.results}))};iL.\u0275fac=function(a){return new (a||iL)(t(ZK),t(gL),t(FK))};iL.\u0275prov=hc({token:iL,factory:iL.\u0275fac,providedIn:"root"});
var lta={enable_jspb:"true"},jL=function(a){this.http=a};jL.prototype.get=function(a,b){return this.http.get(a,An(b.httpOptions||{})).pipe(R(function(c){if(b.responseCtor)return new b.responseCtor(c[0])}))};jL.prototype.post=function(a,b){return this.http.post(a,b.request?b.request.toJSON():void 0,An(b.httpOptions)).pipe(R(function(c){if(b.responseCtor)return no(b.responseCtor,JSON.stringify(c[0]))}))};
jL.prototype.put=function(a,b){return this.http.put(a,b.request?b.request.toJSON():void 0,An(b.httpOptions)).pipe(R(function(c){if(b.responseCtor)return no(b.responseCtor,JSON.stringify(c[0]))}))};jL.prototype.delete=function(a,b){b=void 0===b?{}:b;return this.http.delete(a,An(b))};jL.\u0275fac=function(a){return new (a||jL)(t(XE))};jL.\u0275prov=hc({token:jL,factory:jL.\u0275fac,providedIn:"root"});
var kL=function(){this.refreshRequest=new T.Subject};kL.prototype.getObservable=function(){return this.refreshRequest};var AJb=function(a,b){return a.getObservable().pipe(dg(void 0)).pipe(eg(function(){return b}))};kL.\u0275fac=function(a){return new (a||kL)};kL.\u0275prov=hc({token:kL,factory:kL.\u0275fac,providedIn:"root"});
var lL=function(a){Z.call(this,a)};U(lL,Z);lL.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};lL.messageId="f.mt";
var mL=function(a){Z.call(this,a,-1,BJb)};U(mL,Z);mL.prototype.setIssueIdsList=function(a){ml(this,1,a)};mL.prototype.addIssueIds=function(a){qb(this,1,a)};var BJb=[1];mL.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(lb(this,1))}:void 0;return a};mL.messageId="b.BatchGetIssuesRequest";
var nL=function(a){Z.call(this,a,-1,CJb)};U(nL,Z);nL.prototype.getIssuesList=function(){return tb(this,im,1)};var CJb=[1];nL.prototype.toObject=function(){var a=null!=this?{issuesList:Eb(this.getIssuesList(),oJ)}:void 0;return a};nL.messageId="b.BatchGetIssuesResponse";
var oL=function(a,b,c,d,e,f){DJ.call(this);var h=this;this.batchApiAdapter=a;this.jspbClient=b;this.refreshMonitor=c;this.issueService=d;this.activeSession=e;this.hotlistFridge=f;this.recordType="issue";this.idForRecord=function(k){return String(k.issueId)};this.isEqual=Hi;this.issueFetchResponse$=new T.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(k){return h.call(k)},split:function(k,q){return h.splitBatch(k,q)}});this.refreshMonitor.getObservable().subscribe(function(){h.invalidate()})};
U(oL,DJ);oL.prototype.fetchOne=function(a){return this.get(Number(a)).pipe(R(Um),Pf(function(){return(0,T.of)(void 0)}))};oL.prototype.fetchSet=function(a){var b=this;return(0,T.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(el)}))};oL.prototype.copy=function(a){return a&&Ii(a)};
var DJb=function(a,b,c){var d={id:b,star:String(c)};lna()&&(d.vote=String(c));return a.jspbClient.post("action/current_user/issue_data",{responseCtor:lL,httpOptions:{params:d}}).pipe(gg(function(){GJ(a,b,function(e){e.userData&&(e.userData.starred=c,lna()&&(e.userData.voted=c))})}))};
oL.prototype.setVoted=function(a,b){var c=this;return this.jspbClient.post("action/current_user/issue_data",{responseCtor:lL,httpOptions:{params:{id:a,vote:String(b)}}}).pipe(gg(function(){GJ(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
oL.prototype.setNotificationSubscription=function(a,b){var c=this;return ef(function(d){if(1==d.nextAddress)return ff(d,(0,T.firstValueFrom)(c.jspbClient.post("action/current_user/issue_data",{responseCtor:lL,httpOptions:{params:{id:a,subscription:b}}})),2);GJ(c,a,function(e){e.userData&&(e.userData.notificationSubscription=b)});gf(d)})};
var EJb=function(a,b,c){var d=new fm,e=fra(new em,"title").setValue(c);d.setIssueId(b);d.setActionsList([e]);GJ(a,b,function(f){f.snapshot[0].title=c});return a.jspbClient.post("action/issues/"+b,{request:d,responseCtor:ln}).pipe(R(an),gg(function(f){f&&a.announce(f.issue)}))},FJb=function(a,b,c,d){var e,f,h,k,q,u,y,D,I;return ef(function(N){if(1==N.nextAddress){e="action/issues/"+b+"/hotlists";f=new gm;f.setRemoveHotlistIdsList(d);f.setAddHotlistIdsList(c);kra(f,(new hm).setIssueId(b));h=r([].concat(v(c),
v(d)));for(k=h.next();!k.done;k=h.next())q=k.value,a.hotlistFridge.setIsSaving(q);Ut(N,2);return ff(N,(0,T.firstValueFrom)(a.jspbClient.post(e,{request:f,responseCtor:ln})).finally(function(){for(var L=r([].concat(v(c),v(d))),S=L.next();!S.done;S=L.next())a.hotlistFridge.clearIsSaving(S.value)}),4)}if(2!=N.nextAddress)return u=N.yieldResult,(y=an(u))&&a.announce(y.issue),N.return(null==(D=y)?void 0:D.issue);I=Wt(N);mt(a,b);throw I;})},GJb=function(a,b,c){"number"===typeof b&&(b=String(b));return pL(a,
1,3,c,[b]).then(function(){return mt(a,b)})};oL.prototype.removeDuplicate=function(a,b){var c=this;"number"===typeof a&&(a=String(a));return pL(this,2,3,b,[a]).then(function(){return mt(c,a)})};
var pL=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);d=String(d);var f=new pm;f.setActionType(b);f.setRelation(c);f.setIssueId(d);ml(f,2,e);HJb(a,f);var h=[d].concat(v(e));b=r(h);for(c=b.next();!c.done;c=b.next())a.setIsSaving(c.value);return(0,T.firstValueFrom)(a.jspbClient.post("action/issues/"+d+"/relate",{request:f,responseCtor:ln})).then(an).then(function(k){k&&a.announce(k.issue)}).catch(function(k){mt(a,d);throw k;}).finally(function(){for(var k=r(h),q=k.next();!q.done;q=
k.next())a.clearIsSaving(q.value)})},qL=function(a,b,c){c=void 0===c?{}:c;var d=void 0===c.markRead?!0:c.markRead,e=void 0===c.eagerUpdate?!0:c.eagerUpdate,f,h,k,q;return ef(function(u){if(1==u.nextAddress)return a.activeSession.isAnonymous()?u.return():ff(u,a.issueService.markRead(b.map(Number),d),2);f=u.yieldResult;if(e)for(h=r(b),k=h.next();!k.done;k=h.next())q=k.value,GJ(a,String(q),function(y){y.userData&&(y.userData.lastViewedTimeMicros=f.readTimestamp)});return u.return(f.readTimestamp?Math.round(f.readTimestamp/
1E3):void 0)})},HJb=function(a,b){GJ(a,b.getIssueId(),function(c){switch(b.getRelation()){case 2:if(1===b.getActionType()){var d;c.snapshot[0].blockedByIssueId=[].concat(v(null!=(d=c.snapshot[0].blockedByIssueId)?d:[]),v(lb(b,2).map(Number)))}else if(2===b.getActionType()){var e,f;c.snapshot[0].blockedByIssueId=null!=(f=null==(e=c.snapshot[0].blockedByIssueId)?void 0:e.filter(function(h){return!lb(b,2).includes(String(h))}))?f:[]}}})};
oL.prototype.call=function(a){var b=this;if(1===a.size){var c=[].concat(v(a))[0];return this.jspbClient.get("action/issues/"+String(c),{responseCtor:ln,httpOptions:{params:{excludeEvents:"1"}}}).pipe(gg(function(f){b.issueFetchResponse$.next(f)}),R(function(f){return new Map([[c,f.getIssue()]])}))}var d=new mL;a=r(a);for(var e=a.next();!e.done;e=a.next())d.addIssueIds(e.value);return this.jspbClient.post("action/issues/batch",{responseCtor:nL,request:d}).pipe(R(function(f){return new Map(f.getIssuesList().map(function(h){return[Number(h.getIssueId()),
h]}))}))};oL.prototype.splitBatch=function(a,b){return b.get(a)};oL.\u0275fac=function(a){return new (a||oL)(t(bJ),t(jL),t(kL),t(JK),t(qH),t(iL))};oL.\u0275prov=hc({token:oL,factory:oL.\u0275fac,providedIn:"root"});
var rL=function(a,b){DJ.call(this);this.jspb=a;this.issueFridge=b;this.recordType="issue-fr";this.idForRecord=function(c){return c.issueId};this.isEqual=Hi;this.destroyed$=new T.ReplaySubject(1);JIb?a=void 0:(JIb=!0,a=Msa());a&&IJb(this,a);this.issueFridge.issueFetchResponse$.pipe(R(an),uf(el),R(mta),fg(this.destroyed$)).subscribe(this.announce)};U(rL,DJ);
var sL=function(a,b){return a.watch(b).pipe(eg(function(c){return a.issueFridge.watch(b).pipe(R(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},tL=function(a,b){return mt(a,b).then(function(){return(0,T.firstValueFrom)(sL(a,b))})},IJb=function(a,b){var c=Object.assign({},b);b=b.issue;c=(delete c.issue,c);a.announce(Object.assign({},c,{issueId:String(b.issueId)}));a.issueFridge.announce(b)};
rL.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.jspb.get("action/issues/"+a,{responseCtor:ln,httpOptions:{params:{excludeEvents:"1"}}}).pipe(R(an),gg(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),R(function(c){return c&&mta(c)}),Pf(function(c){b.issueFridge.clearIsGetting(a);return(0,T.throwError)(c)}))};rL.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
rL.prototype.copy=function(a){return a&&Object.assign({},a)};rL.\u0275fac=function(a){return new (a||rL)(t(jL),t(oL))};rL.\u0275prov=hc({token:rL,factory:rL.\u0275fac,providedIn:"root"});
var pta=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);
var uL=function(a,b,c,d,e){this.status=a;this.displayValue=b;this.open=c;this.assigneeRequirement=d;this.sortOrder=e},vL={},Fn=(vL.NEW=new uL("NEW","New",!0,"FORBIDDEN",10),vL.ASSIGNED=new uL("ASSIGNED","Assigned",!0,"REQUIRED",20),vL.ACCEPTED=new uL("ACCEPTED","Accepted",!0,"REQUIRED",30),vL.FIXED=new uL("FIXED","Fixed",!1,"REQUIRED",40),vL.VERIFIED=new uL("VERIFIED","Fixed (Verified)",!1,"REQUIRED",50),vL.DUPLICATE=new uL("DUPLICATE","Duplicate",!1,"ALLOWED",60),vL.INFEASIBLE=new uL("INFEASIBLE",
"Won't Fix (Infeasible)",!1,"ALLOWED",70),vL.NOT_REPRODUCIBLE=new uL("NOT_REPRODUCIBLE","Won't Fix (Not reproducible)",!1,"ALLOWED",80),vL.OBSOLETE=new uL("OBSOLETE","Won't Fix (Obsolete)",!1,"ALLOWED",90),vL.INTENDED_BEHAVIOR=new uL("INTENDED_BEHAVIOR","Won't Fix (Intended behavior)",!1,"ALLOWED",100),vL),JJb=[Fn.NEW,Fn.ASSIGNED,Fn.ACCEPTED,Fn.FIXED,Fn.VERIFIED,Fn.NOT_REPRODUCIBLE,Fn.INTENDED_BEHAVIOR,Fn.OBSOLETE,Fn.INFEASIBLE,Fn.DUPLICATE],KJb=JJb.map(function(a){return{value:a.status,displayText:a.displayValue}}),
LJb=new Set(Object.values(ch(Fn,function(a){return"REQUIRED"===a.assigneeRequirement})));
var wL={},xL=(wL[0]="",wL[1]="New",wL[2]="Assigned",wL[3]="In Progress",wL[4]="Fixed",wL[5]="Verified",wL[10]="Duplicate",wL[9]="Infeasible",wL[6]="Can't Repro",wL[8]="Obsolete",wL[7]="WAI",wL[901]="Blocked",wL[902]="Archived",wL),yL={},Hta=(yL[0]=0,yL[1]=10,yL[2]=20,yL[3]=30,yL[4]=40,yL[5]=50,yL[10]=60,yL[9]=70,yL[6]=80,yL[8]=90,yL[7]=100,yL[901]=35,yL[902]=110,yL),zL={},MJb=(zL[4]=!0,zL[5]=!0,zL[10]=!0,zL[9]=!0,zL[6]=!0,zL[8]=!0,zL[7]=!0,zL[901]=!0,zL[902]=!0,zL),AL={},BL=Object.assign({},xL,(AL[3]=
"Accepted (In Progress)",AL[5]="Fixed (Verified)",AL[9]="Won't fix (Infeasible)",AL[6]="Won't fix (Not reproducible)",AL[8]="Won't fix (Obsolete)",AL[7]="Won't fix (Intended behavior)",AL)),NJb=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"],[0,"--"]]),OJb=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"],["PRIORITY_UNSPECIFIED","--"]]),PJb=new Map([["S0","S0"],["S1","S1"],["S2","S2"],["S3","S3"],["S4","S4"],["SEVERITY_UNSPECIFIED","--"]]),QJb=new Map([[1,"Bug"],[2,"Feature Request"],
[3,"Customer Issue"],[4,"Internal Cleanup"],[5,"Process"],[6,"Vulnerability"],[7,"Privacy Issue"],[8,"Project"],[9,"Feature"],[10,"Milestone"],[11,"Epic"],[12,"Story"],[13,"Task"]]);
var RJb=function(a){Z.call(this,a)};U(RJb,Z);g=RJb.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComment=function(){return V(this,2)};g.setComment=function(a){return l(this,2,a)};g.getFormattingMode=function(){return Y(this,3,0)};g.setFormattingMode=function(a){return l(this,3,a)};g.getContentJudgement=function(){return m(this,Il,4)};g.setContentJudgement=function(a){return Db(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),comment:n(p(this,2)),formattingMode:n(p(this,3)),contentJudgement:iJ(void 0,this.getContentJudgement())}:void 0;return a};
var CL=function(a){Z.call(this,a,-1,SJb)};U(CL,Z);var SJb=[1];CL.prototype.toObject=function(){var a=null!=this?{issueEventsList:Eb(tb(this,$m,1),pIb)}:void 0;return a};CL.messageId="b.ListIssueEventsResponse";
var TJb=function(a){return function(b){b=tb(b,$m,1).map(ksa).filter(el);return{id:a,events:b}}},DL=function(a,b){DJ.call(this);this.jspb=a;this.issueFetchResponseFridge=b;this.recordType="eventsForIssue"};U(DL,DJ);DL.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:Gta(null==a?void 0:a.events,null==b?void 0:b.events)};DL.prototype.copy=function(a){return a&&Ii(a)};DL.prototype.fetchOne=function(a){return this.jspb.get("action/issues/"+a+"/events",{responseCtor:CL}).pipe(R(TJb(a)))};
DL.\u0275fac=function(a){return new (a||DL)(t(jL),t(rL))};DL.\u0275prov=hc({token:DL,factory:DL.\u0275fac,providedIn:"root"});
var EL=function(a){Z.call(this,a,-1,UJb)};U(EL,Z);EL.prototype.getIssueId=function(){return hj(this,1)};EL.prototype.setIssueId=function(a){return l(this,1,a)};var UJb=[2];EL.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumbersList:n(lb(this,2))}:void 0;return a};EL.messageId="b.BatchGetIssueCommentsRequest";
var FL=function(a){Z.call(this,a,-1,VJb)};U(FL,Z);FL.prototype.getIssueCommentsList=function(){return tb(this,bK,1)};var VJb=[1];FL.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Eb(this.getIssueCommentsList(),mIb)}:void 0;return a};FL.messageId="b.BatchGetIssueCommentsResponse";
var GL=function(a){this.jspbExecutor=a};GL.prototype.batchGet=function(a,b){a=(new EL).setIssueId(a);b=ml(a,2,b);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:FL,body:b}).pipe(R(psa))};GL.\u0275fac=function(a){return new (a||GL)(t(hI))};GL.\u0275prov=hc({token:GL,factory:GL.\u0275fac,providedIn:"root"});
var HL=function(a,b){DJ.call(this);var c=this;this.issueCommentsBatchApi=a;this.batchApiAdapter=b;this.recordType="formattedCommentsForIssue";this.idForRecord=function(d){return d.id.issueId+"-"+d.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(d){return c.call(d)},split:function(d,e){return c.splitBatch(d,e)}})};U(HL,DJ);
HL.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return(0,T.combineLatest)(a.map(function(d){return b.get(d)})).pipe(R(function(d){var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:Number(c),commentId:null!=(h=f.commentNumber)?h:0};e.push({id:k,formattedComment:f})}return e}))};
HL.prototype.call=function(a){var b="",c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=r(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(Number(b),c).pipe(R(function(f){var h=b,k=new Map;f=r(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var u=void 0,y=Number(h)+"-"+(null!=(u=q.commentNumber)?u:0);k.set(y,q)}return k}))};HL.prototype.splitBatch=function(a,b){return b.get(a)};
HL.\u0275fac=function(a){return new (a||HL)(t(GL),t(bJ))};HL.\u0275prov=hc({token:HL,factory:HL.\u0275fac,providedIn:"root"});
var In=function(a){Z.call(this,a)};U(In,Z);g=In.prototype;g.getUser=function(){return Bl(this,Vl,1,IL)};g.setUser=function(a){Cu(this,1,IL,a)};g.getGroup=function(){return Bl(this,Vl,2,IL)};g.setGroup=function(a){Cu(this,2,IL,a)};g.getAlias=function(){return V(this,sb(this,IL,3))};g.setAlias=function(a){ho(this,3,IL,a)};var IL=[1,2,3];In.prototype.toObject=function(){return JL(void 0,this)};
var JL=function(a,b){if(null!=b){var c={user:lJ(a,b.getUser()),group:lJ(a,b.getGroup()),alias:n(Ur(b,3,IL))};a&&(c.$jspbMessageInstance=b);return c}};
var Nn=function(a){Z.call(this,a,-1,WJb)};U(Nn,Z);g=Nn.prototype;g.getInheritance=function(){return Y(this,1,0)};g.setInheritance=function(a){l(this,1,a)};g.getAdminsList=function(){return tb(this,In,2)};g.setAdminsList=function(a){Cb(this,2,a)};g.getInheritedAdminsList=function(){return tb(this,In,3)};g.getEditorsList=function(){return tb(this,In,4)};g.setEditorsList=function(a){Cb(this,4,a)};g.getImplicitEditorsList=function(){return tb(this,In,5)};
g.getAppendersList=function(){return tb(this,In,6)};g.setAppendersList=function(a){Cb(this,6,a)};g.getImplicitAppendersList=function(){return tb(this,In,7)};g.getReadersList=function(){return tb(this,In,8)};g.setReadersList=function(a){Cb(this,8,a)};g.getImplicitReadersList=function(){return tb(this,In,9)};g.getRestrictedReadersList=function(){return tb(this,In,11)};g.setRestrictedReadersList=function(a){Cb(this,11,a)};g.getRestrictedPlusReadersList=function(){return tb(this,In,12)};
g.setRestrictedPlusReadersList=function(a){Cb(this,12,a)};g.getImplicitAccess=function(){return Y(this,10,0)};g.setImplicitAccess=function(a){return l(this,10,a)};var WJb=[2,3,4,5,6,7,8,9,11,12];
Nn.prototype.toObject=function(){var a=null!=this?{inheritance:n(p(this,1)),adminsList:Eb(this.getAdminsList(),JL),inheritedAdminsList:Eb(this.getInheritedAdminsList(),JL),editorsList:Eb(this.getEditorsList(),JL),implicitEditorsList:Eb(this.getImplicitEditorsList(),JL),appendersList:Eb(this.getAppendersList(),JL),implicitAppendersList:Eb(this.getImplicitAppendersList(),JL),readersList:Eb(this.getReadersList(),JL),implicitReadersList:Eb(this.getImplicitReadersList(),JL),restrictedReadersList:Eb(this.getRestrictedReadersList(),
JL),restrictedPlusReadersList:Eb(this.getRestrictedPlusReadersList(),JL),implicitAccess:n(p(this,10))}:void 0;return a};Nn.messageId="b.AccessPolicy";
var KL=function(a){DJ.call(this);this.jspb=a;this.recordType="hotlistAccessPolicy";this.isEqual=Hi};U(KL,DJ);KL.prototype.fetchOne=function(a){return this.jspb.get("action/access_policies/"+encodeURIComponent(jo(a)),{responseCtor:Nn}).pipe(R(Mn),R(function(b){return Object.assign({},{id:a},b)}))};
KL.prototype.doSave=function(a){var b=a.id;a=Wta(a);return this.jspb.post("action/access_policies/"+encodeURIComponent(jo(b)),{request:a,responseCtor:Nn}).pipe(R(Mn),R(function(c){return Object.assign({},{id:b},c)}))};KL.\u0275fac=function(a){return new (a||KL)(t(jL))};KL.\u0275prov=hc({token:KL,factory:KL.\u0275fac,providedIn:"root"});
var LL=function(a){Z.call(this,a)};U(LL,Z);var ML=function(a,b){return Xk(a,1,b)},XJb=function(a,b){return Xk(a,2,b)};LL.prototype.toObject=function(){return NL(void 0,this)};var NL=function(a,b){if(null!=b){var c={targetIssueId:hj(b,1),afterIssueId:hj(b,2),targetIssue:GCb(a,m(b,BCb,3))};a&&(c.$jspbMessageInstance=b);return c}};
var OL=function(a){Z.call(this,a,-1,YJb)};U(OL,Z);OL.prototype.getSourceIssueIdsList=function(){return lb(this,1)};OL.prototype.setSourceIssueIdsList=function(a){return ml(this,1,a)};OL.prototype.setRelationshipType=function(a){return l(this,2,a)};OL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var YJb=[1];OL.prototype.toObject=function(){var a=null!=this?{sourceIssueIdsList:n(lb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Xo(this,3))}:void 0;return a};OL.messageId="b.BatchGetIssueRelationshipsRequest";
var PL=function(a){Z.call(this,a,-1,ZJb)};U(PL,Z);PL.prototype.getIssueRelationshipsList=function(){return tb(this,LL,1)};PL.prototype.getTotalSize=function(){return hj(this,2)};var ZJb=[1];PL.prototype.toObject=function(){return $Jb(void 0,this)};var $Jb=function(a,b){if(null!=b){var c={sourceIssueId:hj(b,3),issueRelationshipsList:Eb(b.getIssueRelationshipsList(),NL,a),totalSize:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var bKb=function(a){Z.call(this,a,-1,aKb)};U(bKb,Z);var aKb=[1];bKb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesList:Eb(tb(this,PL,1),$Jb)}:void 0;return a};bKb.messageId="b.BatchGetIssueRelationshipsResponse";
var QL=function(a){Z.call(this,a)};U(QL,Z);QL.prototype.getIssueRelationship=function(){return m(this,LL,1)};QL.prototype.toObject=function(){var a=null!=this?{issueRelationship:NL(void 0,this.getIssueRelationship())}:void 0;return a};QL.messageId="b.CreateIssueRelationshipResponse";
var RL=function(a){Z.call(this,a,-1,cKb)};U(RL,Z);var dKb=function(a,b){return ml(a,1,b)};RL.prototype.setRelationshipType=function(a){return l(this,2,a)};RL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var eKb=function(a,b){return l(a,4,b)},fKb=function(a,b){return l(a,5,b)},cKb=[1];
RL.prototype.toObject=function(){var a=null!=this?{rootIssueIdsList:n(lb(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Xo(this,3)),depthLimit:n(p(this,4)),prefixSizeLimit:n(p(this,5))}:void 0;return a};RL.messageId="b.GetIssueDescendantsRequest";
var gKb=function(a){Z.call(this,a)};U(gKb,Z);gKb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesMap:Gb(bj(this,1,PL),void 0,$Jb)}:void 0;return a};gKb.messageId="b.GetIssueDescendantsResponse";
var SL=function(a){Z.call(this,a,-1,hKb)};U(SL,Z);SL.prototype.getIssueRelationshipsList=function(){return tb(this,LL,1)};var hKb=[1];SL.prototype.toObject=function(){var a=null!=this?{issueRelationshipsList:Eb(this.getIssueRelationshipsList(),NL)}:void 0;return a};SL.messageId="b.ListIssueRelationshipsResponse";
var TL=function(a){Z.call(this,a)};U(TL,Z);TL.prototype.getIssueRelationship=function(){return m(this,LL,1)};TL.prototype.toObject=function(){var a=null!=this?{issueRelationship:NL(void 0,this.getIssueRelationship())}:void 0;return a};TL.messageId="b.UpdateIssueRelationshipResponse";
var UL=function(a){this.executor=a};g=UL.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+b,responseConstructor:SL}).pipe(R(function(c){return c.getIssueRelationshipsList()}))};g.create=function(a,b,c){return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:QL}).pipe(R(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new LL}))};
g.update=function(a,b,c){return this.executor.put({url:"action/issues/"+a+"/relationships/"+hj(c,1)+"?relationshipType="+b,body:c,responseConstructor:TL}).pipe(R(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new LL}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+b,responseConstructor:null})};
g.batchGet=function(a,b){a=(new OL).setSourceIssueIdsList(a).setRelationshipType(b).setIncludeArchived();return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:bKb}).pipe(R(function(c){return tb(c,PL,1)}))};
g.getDescendants=function(a){var b=a.issueIds,c=a.relationshipType,d=a.includeArchived,e=a.depthLimit;a=a.prefixSizeLimit;b=fKb(eKb(dKb(new RL,b).setRelationshipType(c).setIncludeArchived(d),e),a);return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:gKb}).pipe(R(function(f){var h=new Map;f=r(bj(f,1,PL).entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(String(k),q)}return h}))};
UL.\u0275fac=function(a){return new (a||UL)(t(hI))};UL.\u0275prov=hc({token:UL,factory:UL.\u0275fac,providedIn:"root"});
var VL=function(a,b,c){DJ.call(this,{freshUntil:6E4,ancientAfter:792E5});var d=this;this.issueRelationshipService=a;this.issueFridge=b;this.refreshMonitor=c;this.recordType="issueRelationships";this.idForRecord=function(e){return e.issueId};this.isEqual=Hi;this.activeMoveOperation$=new T.BehaviorSubject(new Set);this.assignParentToIssues=aua(function(e,f){return iKb(d,e,f)});this.assignParentToOneIssue=function(e,f){return iKb(d,String(e),[{issueId:String(f)}])};this.moveChildrenInAPI=$ta(function(e){return d.moveChildrenInAPISequentially(e)});
this.moveChildrenInAPISequentially=aua(function(e){var f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa;return ef(function($a){switch($a.nextAddress){case 1:h=gua(e);if(0===h.length)return $a.return();k=h.map(function(jc){return jc.issues.map(function(Va){return Va.parentId})}).flat();q=h.map(function(jc){return jc.newParentId});u=Hj([].concat(v(k),v(q)),Gj);y=r(u);for(D=y.next();!D.done;D=y.next())I=D.value,d.setIsSaving(I);Ut($a,2);N=r(h);L=N.next();case 4:if(L.done){Vt($a,3);break}S=
L.value;X={};ka=r(S.newRelations);ha=ka.next();case 7:if(ha.done){L=N.next();$a.jumpTo(4);break}X.$jscomp$loop$prop$newRelation$1676=ha.value;ra=S.issues.find(function(jc){return function(Va){return Va.issueId===jc.$jscomp$loop$prop$newRelation$1676.targetIssueId}}(X)).parentId;if(S.newParentId===ra)return Ja=void 0,ff($a,(0,T.firstValueFrom)(d.issueRelationshipService.update(S.newParentId,1,ML(XJb(new LL,null!=(Ja=$k(X.$jscomp$loop$prop$newRelation$1676.afterIssueId))?Ja:0),Number(X.$jscomp$loop$prop$newRelation$1676.targetIssueId)))),
8);Da=void 0;return ff($a,(0,T.firstValueFrom)(d.issueRelationshipService.create(S.newParentId,1,ML(XJb(new LL,null!=(Da=$k(X.$jscomp$loop$prop$newRelation$1676.afterIssueId))?Da:0),Number(X.$jscomp$loop$prop$newRelation$1676.targetIssueId)))).catch(function(jc){var Va,Ya;if(!(null==jc?0:null==(Va=jc.error)?0:null==(Ya=Va.details)?0:Ya.includes("ALREADY_EXISTS")))throw jc;}),12);case 12:return ff($a,(0,T.firstValueFrom)(d.issueRelationshipService.delete(ra,1,X.$jscomp$loop$prop$newRelation$1676.targetIssueId)),
8);case 8:X={$jscomp$loop$prop$newRelation$1676:X.$jscomp$loop$prop$newRelation$1676};ha=ka.next();$a.jumpTo(7);break;case 2:f=Ba=Wt($a);case 3:La=d.activeMoveOperation$.value;hb=r(e.map(function(jc){return jc.eventTimestamps}).flat());for(fb=hb.next();!fb.done;fb=hb.next())Tb=fb.value,La.delete(Tb);d.activeMoveOperation$.next(La);va=r(u);for(D=va.next();!D.done;D=va.next())Ca=D.value,d.clearIsSaving(Ca);Promise.all(u.map(function(jc){return mt(d,jc)}));Ia=r(h);for(L=Ia.next();!L.done;L=Ia.next())Xa=
L.value,f&&Xa.done.reject(f),Xa.done.resolve();gf($a)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};U(VL,DJ);VL.prototype.fetchOne=function(a){var b=this;return jKb(this,function(){return b.issueRelationshipService.list(a,1).pipe(R(function(c){return{issueId:a,relatedChildren:c.map(Zqa),totalChildCount:c.length}}))})};
VL.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(v(null!=(c=a.ids)?c:[]));return 0===d.length?(0,T.of)({results:[]}):jKb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:1,includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(R(lsa),R(function(e){return{results:e}}))});default:ph(a.type)}};VL.prototype.copy=function(a){return a&&Ii(a)};
var jKb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(uf(function(d){return 0===d.size}),eg(function(){return b()}),eg(function(d){return 0===a.activeMoveOperation$.value.size?(0,T.of)(d):c()}),Tf())};return c()},kKb=function(a,b){return a.watch(b).pipe(eg(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,T.of)(c):a.watch(b,{trustMemory:!1})}))},lKb=function(a,b,c){return SGb(a,{type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
VL.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return ef(function(f){switch(f.nextAddress){case 1:GJ(d.issueFridge,b,function(h){--h.childIssueCount});GJ(d,b,function(h){var k=h.relatedChildren;h.relatedChildren=fua(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();Ut(f,2);return ff(f,(0,T.firstValueFrom)(d.issueRelationshipService.delete(b,1,a)),4);case 4:Vt(f,0);break;case 2:return e=Wt(f),ff(f,mt(d,b),5);case 5:throw e;}})};
var iKb=function(a,b,c){var d,e,f,h,k,q,u,y,D,I;return ef(function(N){switch(N.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return N.return({added:d,notAdded:e});h=mKb(a,b);k=c.map(function(L,S){var X="-1"===L.afterIssueId?h:L.afterIssueId;return{targetIssueId:L.issueId,afterIssueId:S?c[S-1].issueId:X}});nKb(a,b,k);q=r(k);u=q.next();case 2:if(u.done){N.jumpTo(4);break}y=u.value;Ut(N,5);D=void 0;return ff(N,(0,T.firstValueFrom)(a.issueRelationshipService.create(b,1,ML(XJb(new LL,null!=(D=$k(y.afterIssueId))?
D:0),Number(y.targetIssueId)))),7);case 7:d.push(y.targetIssueId);Vt(N,3);break;case 5:I=Wt(N);if(!Hm(I))throw I;f.push(I);e.push(y.targetIssueId);case 3:u=q.next();N.jumpTo(2);break;case 4:return Promise.all([mt(a,b),mt(a.issueFridge,b)]),N.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},nKb=function(a,b,c){var d=0;GJ(a,b,function(e){var f=eua(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});GJ(a.issueFridge,
b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},oKb=function(a,b,c){var d,e,f,h,k,q,u,y,D,I,N,L;return ef(function(S){if(1==S.nextAddress)return d=[],e=[],f=[],0===c.length?S.return({added:d,notAdded:e}):ff(S,Promise.allSettled(c.map(function(X){return(0,T.firstValueFrom)(a.issueRelationshipService.create(X,1,ML(XJb(new LL,Number(mKb(a,X))),Number(b))))})),2);h=S.yieldResult;k=r(h.entries());for(q=k.next();!q.done;q=k.next())u=q.value,y=r(u),D=y.next().value,I=y.next().value,N=D,L=I,"fulfilled"===
L.status&&d.push(c[N]),"rejected"===L.status&&(e.push(c[N]),f.push(L.reason));Promise.all(c.map(function(X){return mt(a,X)}));return S.return({added:d,notAdded:e,errors:f})})},pKb=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f={},h=r(c),k=h.next();!k.done;f={$jscomp$loop$prop$issue$1678:f.$jscomp$loop$prop$issue$1678},k=h.next())f.$jscomp$loop$prop$issue$1678=k.value,GJ(a,f.$jscomp$loop$prop$issue$1678.parentId,function(ka){return function(ha){ha.relatedChildren=
fua(ha.relatedChildren,ka.$jscomp$loop$prop$issue$1678.issueId);--ha.totalChildCount}}(f));var q=void 0,u;if(null==(u=b.position)?0:u.issueId){var y;if("after"===(null==(y=b.position)?void 0:y.position))q=b.position.issueId;else{var D;if("before"===(null==(D=b.position)?void 0:D.position)){var I,N;f=null!=(N=null==(I=a.memory.getData(d))?void 0:I.relatedChildren)?N:[];I=r(f.entries());for(N=I.next();!N.done;N=I.next())if(h=r(N.value),N=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=
void 0;q=null==(b=f[N-1])?void 0:b.targetIssueId;break}}}}var L=c.map(function(ka,ha){return{targetIssueId:ka.issueId,afterIssueId:ha?c[ha-1].issueId:q}});void 0!==UGb(a,d)?GJ(a,d,function(ka){ka.relatedChildren=eua(ka.relatedChildren,L);ka.totalChildCount+=L.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:eua([],L),totalChildCount:L.length});b=new boa;var S,X;a.moveChildrenInAPI({newParentId:d,newRelations:L,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(X=null==
(S=a.memory.getData(d))?void 0:S.relatedChildren)?X:[],done:b});return b.promise},mKb=function(a,b){var c;a=null==(c=a.memory.getData(b))?void 0:c.relatedChildren;var d,e;return null!=(e=null==a?void 0:null==(d=a[(null==a?NaN:a.length)-1])?void 0:d.targetIssueId)?e:"0"};VL.\u0275fac=function(a){return new (a||VL)(t(UL),t(oL),t(kL))};VL.\u0275prov=hc({token:VL,factory:VL.\u0275fac,providedIn:"root"});
var qKb=Object.values({ADMIN:"admin",EDITOR:"writer",APPENDER:"appender",READER:"reader"}),WL=function(a){DJ.call(this);this.jspb=a;this.recordType="permissions"};U(WL,DJ);WL.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(R(function(b){return r(b).next().value}))};
WL.prototype.fetchSet=function(a){var b=a.map(function(c){return encodeURIComponent(c)});b={params:{relations:b.flatMap(function(){return qKb}).join(","),resourceNames:b.flatMap(function(c){return qKb.map(function(){return c})}).join(",")}};return this.jspb.get("action/user_access",{responseCtor:kK,httpOptions:b}).pipe(R(ysa),R(function(c){return a.map(function(d){return c[d]})}))};WL.\u0275fac=function(a){return new (a||WL)(t(jL))};WL.\u0275prov=hc({token:WL,factory:WL.\u0275fac,providedIn:"root"});
var rKb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new TK(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};rKb.prototype.get=function(a){var b=this;return new T.Observable(function(c){var d=b.lruCache.get(a);d||(d=sKb(b,a));return d.obs$.subscribe(c)})};
var sKb=function(a,b){var c=a.rawGet(b).pipe(bg({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 tKb(c,d);a.lruCache.set(b,c);return c},tKb=function(a,b){this.obs$=a;this.subscription=b};
var vKb=function(a){Z.call(this,a,-1,uKb)};U(vKb,Z);var wKb=function(a,b){return ml(a,1,b)},uKb=[1];vKb.prototype.toObject=function(){var a=null!=this?{teamIdsList:n(lb(this,1))}:void 0;return a};vKb.messageId="b.BatchChildTeamsRequest";
var xKb=function(a){Z.call(this,a)};U(xKb,Z);g=xKb.prototype;g.getId=function(){return nj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return gj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.toObject=function(){return yKb(void 0,this)};
var yKb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var AKb=function(a){Z.call(this,a,-1,zKb)};U(AKb,Z);var zKb=[1];AKb.prototype.toObject=function(){return BKb(void 0,this)};var BKb=function(a,b){if(null!=b){var c={teamSummariesList:Eb(tb(b,xKb,1),yKb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var CKb=function(a){Z.call(this,a)};U(CKb,Z);CKb.prototype.toObject=function(){var a=null!=this?{childTeamsMap:Gb(bj(this,1,AKb),void 0,BKb)}:void 0;return a};CKb.messageId="b.BatchChildTeamsResponse";
var XL=function(a){Z.call(this,a)};U(XL,Z);XL.prototype.getUser=function(){return m(this,Vl,1)};XL.prototype.setUser=function(a){Db(this,1,a)};XL.prototype.toObject=function(){return DKb(void 0,this)};var DKb=function(a,b){if(null!=b){var c={user:lJ(a,b.getUser()),isLead:n(Xo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var It=function(a){Z.call(this,a)};U(It,Z);g=It.prototype;g.getInherit=function(){return W(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSloId=function(){return nj(this,2)};g.setSloId=function(a){return l(this,2,a)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getSourceTeamId=function(){return nj(this,4)};g.setSourceTeamId=function(a){l(this,4,a)};g.toObject=function(){return EKb(void 0,this)};
var EKb=function(a,b){if(null!=b){var c={inherit:n(Xo(b,1)),sloId:n(p(b,2)),comment:n(p(b,3)),sourceTeamId:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var YL=function(a){Z.call(this,a,-1,FKb)};U(YL,Z);g=YL.prototype;g.getTeamId=function(){return nj(this,1)};g.setTeamId=function(a){return l(this,1,a)};g.getVersion=function(){return hj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getPathNamesList=function(){return lb(this,5)};
g.getPathIdsList=function(){return lb(this,10)};g.getMembersList=function(){return tb(this,XL,7)};g.getDeleted=function(){return W(this,8)};g.getSlo=function(){return m(this,It,11)};g.setSlo=function(a){Db(this,11,a)};g.hasSlo=function(){return oj(this,11)};var FKb=[5,10,6,7];YL.prototype.toObject=function(){return GKb(void 0,this)};
var GKb=function(a,b){if(null!=b){var c={teamId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),pathNamesList:n(lb(b,5)),pathIdsList:n(lb(b,10)),collapsedPathNamesList:n(lb(b,6)),membersList:Eb(b.getMembersList(),DKb,a),deleted:n(Xo(b,8)),estimatedComponentCount:n(p(b,9)),slo:EKb(a,b.getSlo()),sloLead:lJ(a,m(b,Vl,12)),defaultSloLead:lJ(a,m(b,Vl,13))};a&&(c.$jspbMessageInstance=b);return c}};YL.messageId="b.TeamState";
var ZL=function(a){Z.call(this,a)};U(ZL,Z);ZL.prototype.toObject=function(){var a=null!=this?{teamsMap:Gb(bj(this,1,YL),void 0,GKb)}:void 0;return a};ZL.messageId="b.BatchGetTeamsResponse";
var IKb=function(a){Z.call(this,a,-1,HKb)};U(IKb,Z);g=IKb.prototype;g.getPathIdsList=function(){return lb(this,1)};g.getPathNamesList=function(){return lb(this,2)};g.getId=function(){return nj(this,3)};g.setId=function(a){return l(this,3,a)};g.getName=function(){return V(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return gj(this,4)};g.getDescription=function(){return V(this,5)};g.setDescription=function(a){return l(this,5,a)};var HKb=[1,2];
IKb.prototype.toObject=function(){return JKb(void 0,this)};var JKb=function(a,b){if(null!=b){var c={pathIdsList:n(lb(b,1)),pathNamesList:n(lb(b,2)),id:n(p(b,3)),name:n(p(b,4)),description:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var $L=function(a){Z.call(this,a,-1,KKb)};U($L,Z);$L.prototype.getTeamSuggestionsList=function(){return tb(this,IKb,1)};$L.prototype.setTeamSuggestionsList=function(a){Cb(this,1,a)};var KKb=[1];$L.prototype.toObject=function(){var a=null!=this?{teamSuggestionsList:Eb(this.getTeamSuggestionsList(),JKb)}:void 0;return a};$L.messageId="b.TeamSuggestionResult";
var aM=function(a){Z.call(this,a)};U(aM,Z);aM.prototype.getTeamId=function(){return nj(this,1)};aM.prototype.setTeamId=function(a){return l(this,1,a)};aM.prototype.toObject=function(){var a=null!=this?{teamId:n(p(this,1)),sloMetadata:EKb(void 0,m(this,It,2))}:void 0;return a};aM.messageId="b.UpdateTeamSloRequest";
var bM=function(a,b,c){var d=this;this.executor=a;this.teamsBatchApiConfig=b;this.batchApiAdapter=c;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new rKb(function(e){return d.batchAdaptedGet(e)},100)};bM.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:YL})};bM.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var LKb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,T.forkJoin)(b).pipe(R(function(c){var d=new ZL;c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,bj(d,1,YL).set(e.getTeamId(),e);return d}))};
bM.prototype.getChildTeams=function(a){a=wKb(new vKb,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:CKb}).pipe(R(function(b){b=[].concat(v(bj(b,1,AKb).entries()));return new Map(b.map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return[c,tb(d,xKb,1)]}))}))};
var cM=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:$L})},MKb=function(a,b,c){return"0"===b?(0,T.of)(!1):a.memoizingTeamStateMap.get(b).pipe(R(function(d){return void 0!==d.getMembersList().find(function(e){return e&&Tl(e.getUser())===c})}))},NKb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),view:"full"}},responseConstructor:ZL}).pipe(Pf(function(){return(0,T.of)(new ZL)}),R(function(c){return new Map(Array.from(bj(c,
1,YL).entries()).map(function(d){var e=r(d);d=e.next().value;e=e.next().value;return[d,hj(e,9)]}))}))};bM.prototype.updateTeam=function(a){return this.executor.post({url:"action/teams/"+a.getTeamId(),body:a,responseConstructor:YL})};bM.\u0275fac=function(a){return new (a||bM)(t(hI),t(dM),t(bJ))};bM.\u0275prov=hc({token:bM,factory:bM.\u0275fac,providedIn:"root"});var dM=function(a){this.executor=a};
dM.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(v(a)).join(",")}},responseConstructor:ZL}).pipe(Pf(function(){return(0,T.of)(new ZL)}))};dM.prototype.split=function(a,b){return bj(b,1,YL).get(a)||new YL};dM.\u0275fac=function(a){return new (a||dM)(t(hI))};dM.\u0275prov=hc({token:dM,factory:dM.\u0275fac,providedIn:"root"});
var eM=function(a){DJ.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.getTeamId()}};U(eM,DJ);eM.prototype.fetchOne=function(a){return"0"===a?(0,T.of)(void 0):this.teamsApi.getTeam(a).pipe(Pf(function(){return(0,T.of)(void 0)}))};eM.prototype.fetchSet=function(a){var b=this;return(0,T.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(R(function(c){return c.filter(el)}))};eM.\u0275fac=function(a){return new (a||eM)(t(bM))};
eM.\u0275prov=hc({token:eM,factory:eM.\u0275fac,providedIn:"root"});
var fM=function(a){Z.call(this,a,-1,OKb)};U(fM,Z);fM.prototype.getTrackersList=function(){return tb(this,oH,1)};var OKb=[1];fM.prototype.toObject=function(){var a=null!=this?{trackersList:Eb(this.getTrackersList(),ABb)}:void 0;return a};fM.messageId="b.BatchGetTrackersResponse";
var gM=function(a){Z.call(this,a,-1,PKb)};U(gM,Z);gM.prototype.getTrackersList=function(){return tb(this,oH,1)};gM.prototype.getNextPageToken=function(){return V(this,2)};gM.prototype.getTotalSize=function(){return hj(this,3)};var PKb=[1];gM.prototype.toObject=function(){var a=null!=this?{trackersList:Eb(this.getTrackersList(),ABb),nextPageToken:n(p(this,2)),totalSize:n(p(this,3))}:void 0;return a};gM.messageId="b.ListTrackersResponse";
var hM=function(a){this.jspbExecutor=a};hM.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:oH}).pipe(R(Qn))};hM.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:fM,options:{params:{trackerIds:a}}}).pipe(R(iua))};
hM.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:gM,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(R(jua))};hM.\u0275fac=function(a){return new (a||hM)(t(hI))};hM.\u0275prov=hc({token:hM,factory:hM.\u0275fac,providedIn:"root"});
var iM=function(a){DJ.call(this);this.trackerApi=a;this.recordType="tracker";this.idKey="trackerId";if(a=m(aj(),oH,11))a=Qn(a),this.announce(a)};U(iM,DJ);iM.prototype.fetchOne=function(a){return this.trackerApi.get(a)};iM.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};iM.\u0275fac=function(a){return new (a||iM)(t(hM))};iM.\u0275prov=hc({token:iM,factory:iM.\u0275fac,providedIn:"root"});
var jM=function(a,b){qI.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new T.BehaviorSubject({})};U(jM,qI);jM.\u0275dir=qI.\u0275dir;
var RKb=function(a){a.activatedRoute.queryParams.pipe(fg(a.destroyed$)).subscribe(function(b){QKb(a,a.routeParams$.value,b)});a.router.events.pipe(uf(function(b){return b instanceof Gk}),R(function(b){return b}),fg(a.destroyed$)).subscribe(function(b){b=b.snapshot;var c={},d=b;do c=Object.assign({},d.params,c),d=d.parent;while(d&&d!==d.root);QKb(a,c,b.queryParams)})},kM=function(a,b){return a.routeParams$.pipe(R(function(c){return c[b]}))},QKb=function(a,b,c){for(var d=r(Object.keys(a.params)),e=
d.next();!e.done;e=d.next())delete a.params[kua(e.value)];a.routeParams$.next(b);c=r(Object.entries(c));for(d=c.next();!d.done;d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.params[kua(d)]=e;b=r(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,a.params[kua(c)]=d};jM.\u0275fac=function(a){return new (a||jM)(t(Ik),t(gk))};jM.\u0275prov=hc({token:jM,factory:jM.\u0275fac,providedIn:"root"});
var lM=function(a,b,c){qI.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new T.BehaviorSubject(null);this.hotlistIdOverride$=new T.BehaviorSubject(null);this.routeIssueId$=kM(this.paramsService,"issueId").pipe(Sf());this.routeComponentId$=kM(this.paramsService,"componentId").pipe(Sf());this.routeHotlistId$=kM(this.paramsService,"hotlistId").pipe(Sf());this.issueId$=this.routeIssueId$.pipe(R(lua),bg({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=
this.issueId$.pipe(eg(function(e){return e?sL(d.issueFetchResponseFridge,e):(0,T.of)(void 0)}),R(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,T.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(R(function(e){var f=r(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),R(lua),Sf(),bg({refCount:!0,bufferSize:1}));this.hotlistId$=(0,T.combineLatest)([this.hotlistIdOverride$,
this.routeHotlistId$]).pipe(R(function(e){var f=r(e);e=f.next().value;f=f.next().value;return e||f}),R(lua),Sf(),bg({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null)}))};U(lM,qI);lM.\u0275dir=qI.\u0275dir;lM.prototype.getComponentId=function(){return this.componentId$};lM.prototype.getIssueId=function(){return this.issueId$};lM.prototype.getHotlistId=function(){return this.hotlistId$};
lM.\u0275fac=function(a){return new (a||lM)(t(NI),t(jM),t(rL))};lM.\u0275prov=hc({token:lM,factory:lM.\u0275fac,providedIn:"root"});
var mM=new od("buganizerWindow",{factory:function(){return window}});
var nM=function(a,b,c,d){qI.call(this);var e=this;this.$window=a;this.activeSession=b;this.trackerFridge=c;this.errorHandler=d;this.handleTrackerError=function(f){e.errorHandler.errorHandler(null,f)};this.trackerId$=new T.BehaviorSubject(this.$window.sessionStorage.getItem("buganizer.current_tracker_id")||"");this.enableTrackers=sH(this.activeSession,"enableTrackers");this.tracker$=this.trackerId$.pipe(eg(function(f){return""===f?(0,T.of)(void 0):e.trackerFridge.watch(f).pipe(dg(void 0))}));this.associatedTrackers$=
this.tracker$.pipe(eg(function(f){var h;return EJ(e.trackerFridge,null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[])}));this.enableTrackers&&SKb(this);this.trackerFridge.error$.pipe(fg(this.destroyed$)).subscribe(this.handleTrackerError)};U(nM,qI);nM.\u0275dir=qI.\u0275dir;nM.prototype.getTrackerId=function(){return this.trackerId$};var SKb=function(a){var b=(new URLSearchParams(a.$window.location.search)).get("tracker");b&&a.setTrackerId(b)};
nM.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};nM.\u0275fac=function(a){return new (a||nM)(t(mM),t(qH),t(iM),t(BK))};nM.\u0275prov=hc({token:nM,factory:nM.\u0275fac,providedIn:"root"});
var nua=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),mua=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])?$"),pua=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];
var oM=function(){this.transform=qua};oM.\u0275fac=function(a){return new (a||oM)};oM.\u0275pipe=zc({name:"toNewEmailPreference",type:oM,pure:!0});var pM=function(){this.transform=rua};pM.\u0275fac=function(a){return new (a||pM)};pM.\u0275pipe=zc({name:"enumToHuman",type:pM,pure:!0});var qM=function(){this.transform=sua};qM.\u0275fac=function(a){return new (a||qM)};qM.\u0275pipe=zc({name:"arrayToHuman",type:qM,pure:!0});var rM=function(){};rM.prototype.transform=function(a,b){return Zy(tua(a,b))};
rM.\u0275fac=function(a){return new (a||rM)};rM.\u0275pipe=zc({name:"boldPrefixMatches",type:rM,pure:!0});var sM=function(){this.transform=uua};sM.\u0275fac=function(a){return new (a||sM)};sM.\u0275pipe=zc({name:"yesNo",type:sM,pure:!0});var tM=function(){this.transform=vua};tM.\u0275fac=function(a){return new (a||tM)};tM.\u0275pipe=zc({name:"componentPath",type:tM,pure:!0});var uM=function(){this.transform=wua};uM.\u0275fac=function(a){return new (a||uM)};
uM.\u0275pipe=zc({name:"teamPath",type:uM,pure:!0});var vM=function(){this.transform=xua};vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275pipe=zc({name:"v2StatusToHuman",type:vM,pure:!0});var wM=function(){this.transform=yua};wM.\u0275fac=function(a){return new (a||wM)};wM.\u0275pipe=zc({name:"countOpenIssues",type:wM,pure:!0});var xM=function(){this.transform=zua};xM.\u0275fac=function(a){return new (a||xM)};xM.\u0275pipe=zc({name:"formatNumberOrUndef",type:xM,pure:!0});
var yM=function(){this.transform=Aua};yM.\u0275fac=function(a){return new (a||yM)};yM.\u0275pipe=zc({name:"humanFileSize",type:yM,pure:!0});var TKb=6E4*(420-(new Ni).getTimezoneOffset()),zM=function(){this.transform=Cua};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275pipe=zc({name:"omitObfuscatedEmail",type:zM,pure:!0});var AM=function(){this.transform=Xn};AM.\u0275fac=function(a){return new (a||AM)};AM.\u0275pipe=zc({name:"toString",type:AM,pure:!0});var BM=function(){this.transform=Dua};
BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275pipe=zc({name:"csv",type:BM,pure:!0});var CM=function(){};CM.\u0275fac=function(a){return new (a||CM)};CM.\u0275mod=xc({type:CM});CM.\u0275inj=ic({});
var UKb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},DM=window.localStorage||UKb,EM={getNumberAt:function(a){return function(){var b=DM.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},setNumberAt:function(a){return function(b){null==b?DM.removeItem(a):DM.setItem(a,String(b))}},getStringAt:function(a){return function(){var b=DM.getItem(a);if(null!=b)return String(b)}},setStringAt:function(a){return function(b){null==b?DM.removeItem(a):DM.setItem(a,
b)}},getBooleanAt:function(a){return function(){var b=DM.getItem(a);return null==b?!1:!!JSON.parse(b)}},setBooleanAt:function(a){return function(b){!0===b?DM.setItem(a,"1"):DM.removeItem(a)}},clear:function(){DM.clear()}};
var VKb=window,FM=function(){return VKb.performance&&VKb.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure},Pua=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},WKb=function(a){if(FM())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};
var Sua=EM.getBooleanAt("debug-logging")(),$n=window,XKb,YKb=function(a){a=a.getEntries().map(Eua).map(Nua);a=r(a);for(var b=a.next();!b.done;b=a.next())Rua(b.value);setTimeout(Qua,100)},Oua=!1;
var GM=function(){this.segments=[];this.clickMain=new Vw;this.clickSegment=new Vw};GM.prototype.ngOnInit=function(){};oi.Object.defineProperties(GM.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});GM.\u0275fac=function(a){return new (a||GM)};
GM.\u0275cmp=w({type:GM,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},decls:5,vars:6,consts:[[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],[4,"ngIf"],["mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],["createMenu","matMenu"],["mat-menu-item","",
3,"href","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"href","click"]],template:function(a,b){a&1&&(F(0,"span",0)(1,"a",1),J("click",function(){return b.clickMain.emit(b.label)}),H(2,"mat-icon",2),O(3),G(),M(4,Uua,6,2,"ng-container",3),G());a&2&&(B(1),pe("square-right",b.showMoreButton),ke("href",b.href||void 0,Qd),B(1),E("svgIcon",b.icon),B(1),Ge(" ",b.label," "),B(1),E("ngIf",b.showMoreButton))},dependencies:[Kx,Gx,FB,GB,mF,kF,pF,hF],styles:['[mat-button][_ngcontent-%COMP%]{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;transition:box-shadow .2s ease-in-out;background-color:#fff;background-color:var(--fab-button-bg);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 1px 3px 1px rgba(0, 0, 0, 0.15)}.shrink-wrap[_ngcontent-%COMP%]:hover{box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.3),0px 4px 8px 3px rgba(0, 0, 0, 0.15)}.mat-button[_ngcontent-%COMP%]{border-radius:24px}.main[_ngcontent-%COMP%]{padding-left:10px;padding-right:24px}.main.square-right[_ngcontent-%COMP%]{padding-right:8px}.more[_ngcontent-%COMP%]{padding-right:10px;padding-left:4px;min-width:0;color:#80868b;color:var(--gfx-muted)}.more[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px}.more[_ngcontent-%COMP%]:hover, .more[_ngcontent-%COMP%]:focus{color:#202124;color:var(--text-default)}.more[_ngcontent-%COMP%]{transition:border .2s ease-in-out;border-left:1px solid transparent}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}\n/*# sourceMappingURL=fab_segmented.css.map */']});
var HM=function(a,b,c,d){var e=this;this.paths=a;this.context=b;this.currentTracker=c;this.componentFridge=d;this.createIssuePath=this.paths.createIssue();this.visibleOptions$=(0,T.combineLatest)([this.context.getComponentId().pipe(eg(function(f){return f?e.componentFridge.watch(f):(0,T.of)(null)}),R(function(f){return f&&!f.archived?f.componentId:null})),this.context.getIssueId(),this.context.getHotlistId()]).pipe(Rf(0),R(function(f){var h=r(f);f=h.next().value;var k=h.next().value;h=h.next().value;
return ZKb(e,f,k,h)}));this.buttonLabel$=this.visibleOptions$.pipe(R(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(R(function(f){var h;return"OPEN_SOURCE"===(null==f?void 0:null==(h=f.branding)?void 0:h.theme)?"create-open-source-36px":"create-color-36px"}))};HM.prototype.ngOnInit=function(){};HM.prototype.trackClick=function(a){Yn("create","click",a)};
var ZKb=function(a,b,c,d){var e=new Map;null!==d&&e.set("in_same_hotlist",a.paths.createIssue({hotlistIds:d}));null!==b&&e.set("in_same_component",a.paths.createIssue({component:b}));null!==c&&(e.set("similar_to_current_issue",a.paths.createIssue({template_issue:c})),e.set("blocked_by_current_issue",a.paths.createIssue({blockedByIssueIds:c,component:b})),e.set("blocking_current_issue",a.paths.createIssue({blockingIssueIds:c,component:b})),e.set("parent_of_current_issue",a.paths.createIssue({childrenIssueIds:c,
component:b})),e.set("child_of_current_issue",a.paths.createIssue({parentIssueId:c,component:b})));return[].concat(v(e.entries())).map(function(f){var h=r(f);f=h.next().value;h=h.next().value;return{name:rua(f),path:h}})};HM.\u0275fac=function(a){return new (a||HM)(C(LK),C(lM),C(nM),C(HJ))};
HM.\u0275cmp=w({type:HM,selectors:[["b-create-issue-button"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"label","icon","href","segments","clickMain","clickSegment"]],template:function(a,b){a&1&&(M(0,Xua,3,3,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.visibleOptions$))},dependencies:[Gx,GM,Tx],encapsulation:2,changeDetection:0});
var mo={ADD_USER_WITHOUT_ACCESS:"addUserWithoutAccess",COMPONENT_PICKER:"componentPicker",CREATE_ISSUE:"createIssue",EDIT_ISSUE:"editIssue",EDIT_SLO:"editSlo",FIELD_ORDERING:"fieldOrdering",G3C_WIDGET:"g3cWidget",G3N:"g3n",ISSUE_CARD:"issueCard",ISSUE_EVENT_DETAIL:"issueEventDetail",ISSUE_PICKER:"issuePicker",ISSUE_SLO:"issueSlo",LINK_FIELD:"linkField",LIST_ISSUES:"listIssues",MAGIC_BOX:"magicBox",MANAGE_COMPONENT:"component",PERSON_CARD:"personCard",RESTRICTED_CONTENT:"restrictedContent",ROLE_BASED_PERMISSIONS:"roleBasedPermissions",
SEARCH:"search",SIDEBAR:"sidebar",TEAM_CARD:"teamCard",TEAM_WARNING:"teamWarning",UPDATE_HISTORY_MODAL:"updateHistoryModal",WHATS_NEW:"whatsNew"};
var Yua=EM.getNumberAt("last-visit"),Zua=EM.getNumberAt("last-visit-count"),ava=EM.setNumberAt("last-visit"),$ua=EM.setNumberAt("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});
var $Kb=EM.getBooleanAt("debug-logging")(),aLb=EM.getBooleanAt("onedev-darkmode"),bLb=EM.getBooleanAt("hasClickedCommentSortBtn"),IM=function(a,b,c,d,e){qI.call(this);var f=this;this.$log=c;this.ga=null;this.preapply=function(){var q=cLb;return function(u){return function(y,D){io(f,q,u,y,D)}}};bva();c=d.getUserPreferences();ao("dimension7",aLb()?"dark":"default");var h;ao("dimension3",null==(h=c.themePreferences)?void 0:h.density);ao("dimension4",fj(c));ao("dimension6",cj("readUnreadOptOut"));ao("dimension8",
cj("enableEnhancedCommentThread"));ao("dimension9",bLb());ao("dimension2",c.showFullHistory?"fh":"comments");ao("dimension5",c.showRecentEventsFirst?"newestFirst":"oldestFirst");if(a.ga){var k=a.ga;this.subscriptions.add(b.viewContentLoaded.subscribe(function(){setTimeout(function(){for(var q=[],u=e.snapshot;u;){var y=void 0,D=void 0;q.push(null!=(D=null==(y=u.routeConfig)?void 0:y.path)?D:"");u=u.children[0]}k("send","pageview",q.join("/"))},0)}));this.ga=k}};U(IM,qI);IM.\u0275dir=qI.\u0275dir;
var io=function(a,b,c,d,e){var f="boolean"===typeof e?e?1:0:e;a.ga?d?void 0!==e?a.ga("send","event",b,c,d,f):a.ga("send","event",b,c,d):a.ga("send","event",b,c):$Kb&&a.$log.debug("[stub analytics.ts] ga('send', 'event')",b,c,d,f)},dLb=function(a,b,c,d){a.ga?d?a.ga("send","timing","userAction",b,c,d):a.ga("send","timing","userAction",b,c):$Kb&&a.$log.debug("[stub analytics.ts] ga('send', 'timing')","userAction",b,c,d)},eLb=function(a,b,c){io(a,mo.ISSUE_PICKER,c+" duration","<"+Math.min(2*Math.ceil(b/
2E3),600)+"s",b)};IM.\u0275fac=function(a){return new (a||IM)(t(mM),t(NI),t(AK),t(qH),t(gk))};IM.\u0275prov=hc({token:IM,factory:IM.\u0275fac,providedIn:"root"});
var fLb=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.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.hotlists=[];this.lastModifier=
this.ccCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.sloSnoozeUntil=this.sloStatus=this.position=this.effort=null},gLb=function(a){if(!a.aggregatedData)return 0;a=a.aggregatedData;var b=Date.now()-a.modifiedTimeMicros/1E3;return Math.pow(.5,b/6048E5)+1-Math.pow(.5,a.voteCount/50)},iLb=function(a,b){var c=new fLb;hLb(c,a,b);return c},hLb=function(a,b,c){var d=sa(b.snapshot),e=b.aggregatedData;var f=b&&b.accessLimit?b.accessLimit.accessLevel:void 0;a.accessLevel=
f;a.id=b.issueId;a.issueId=b.issueId;d.componentId&&(a.componentId=d.componentId);a.componentPath=c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?c.componentPathInfo.componentPathName.map(function(k){return String(k)}):[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var h;a.isClosed=!(null==(h=Fn[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Ql(d.reporterUser);a.assignee=Ql(d.assigneeUser);
a.assigneeEmail=Tl(d.assigneeUser);a.verifier=Ql(d.verifierUser);a.verifierEmail=Tl(d.verifierUser);a.cc=Rl(d.ccUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:0;a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=
e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=
b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.magic=gLb(b);a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.lastModifier=Ql(d.authorUser);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(b=r(c.componentPathInfo.allCustomField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldMap[String(c.customFieldId)]=c,a.customFieldNameToIdMap[c.name.toLowerCase()]=
c.customFieldId;if(d.customField)for(b=r(d.customField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldValueMap[String(c.customFieldId)]=c;a.hotlists=[];a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?eva(e.sloStatus)||null:null;a.sloSnoozeUntil=d.sloSnoozeUntil;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort instanceof xl?d.effort:rqa(d.effort))};
var JM=function(a,b){this.params=a;this.searchResponse=b;this.internalIssues=[];var c=b.positionMap||{};this.internalIssues=b.issues.map(function(d){var e=iLb(d,b.componentMap[sa(d.snapshot).componentId||0]);c&&c[d.issueId]&&(e.position=c[d.issueId]);return e});this.numPages=Math.ceil(b.numTotalResults/a.resultsPerPage);this.startIndex=(a.page-1)*a.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+a.resultsPerPage-1,b.numTotalResults);this.isPreSort=jLb(a.sortColumns);this.totalText=this.getTotalText(b.numTotalResults,
a.page,a.resultsPerPage,this.isPreSort);this.numResults=b.numTotalResults;this.changed$=new T.BehaviorSubject(this)};JM.prototype.hasPreviousPage=function(){return 1<this.params.page};JM.prototype.hasNextPage=function(){return this.params.page<this.numPages};var KM=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};
JM.prototype.getIssueIdFromIndex=function(a){return a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length)?this.issues[a].issueId:-1};
var kLb=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=KM(a,c.issueId);-1!==e&&(e-=a.startIndex,hLb(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},lLb=function(a,b,c,d){b=KM(a,b);-1!==b&&(b-=a.startIndex,void 0!==d&&(a.issues[b].lastViewedTime=null!=d?d:null),void 0!==c&&(a.issues[b].isRead=c),void 0===c&&void 0===d&&(a.issues[b].isRead=!!a.issues[b].lastViewedTime&&a.issues[b].lastViewedTime>=a.issues[b].majorModifiedTime));
a.changed$.next(a)};JM.prototype.clone=function(){var a=new JM(this.params,this.searchResponse);a.issues=this.internalIssues;a.numPages=this.numPages;a.startIndex=this.startIndex;a.endIndex=this.endIndex;a.isPreSort=this.isPreSort;a.totalText=this.totalText;a.numResults=this.numResults;a.changed$.next(a);return a};
var jLb=function(a){var b;!(b=0===a.length)&&(b=1===a.length)&&(a=a[0],b="ISSUE_ID"===a.fieldId.type&&"DESCENDING"===a.direction?!0:"CREATED_TIME"===a.fieldId.type?!0:"MODIFIED_TIME"===a.fieldId.type?!0:"POSITION"===a.fieldId.type?!0:!1);return b};JM.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};
oi.Object.defineProperties(JM.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});
var mLb=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise_=this.searchResultsPage_=null};
mLb.prototype.fetchIssues=function(){var a=this;if(1>this.params.page)return Promise.reject("Invalid page requested.");if(!this.resultPromise_)if(this.params.hotlistId)this.resultPromise_=this.hotlistApi.getPagedHotlistContent(this.params.hotlistId,this.params.page,this.params.resultsPerPage,this.params.sortColumns);else{var b={p:this.params.page,count:this.params.resultsPerPage},c=this.paths.toApiSortParamValue(this.params.sortColumns);c&&(b.s=c);var d;this.resultPromise_=this.issueApi.listIssues(null!=
(d=this.params.query)?d:"",b)}return this.resultPromise_.then(function(e){a.searchResultsPage_||(a.searchResultsPage_=new JM(a.params,e));return a.searchResultsPage_},function(e){return Promise.reject(e)})};var nLb=function(a){return a.searchResultsPage_?a.searchResultsPage_.hasNextPage():!0};
var LM=function(a,b,c,d){this.$window=a;this.issueApi=b;this.hotlistApi=c;this.paths=d;this.previousResultsFetcher_=this.nextResultsFetcher_=this.currentResultsFetcher_=null;this.focusedIssueIndex_=-1},qLb=function(a,b){var c=Nj();oLb(b.page)?(pLb(a,b),a.currentResultsFetcher_.fetchIssues().then(function(d){d.getIssueIdFromIndex&&(d.numPages&&b.page>d.numPages?c.reject(d.numPages):c.resolve(d))},function(d){c.reject(d)})):c.reject(1);return c.promise},sLb=function(a){var b=Nj(),c=null;a.currentResultsFetcher_?
c=a.currentResultsFetcher_.params:c=rLb(a);c?(pLb(a,c),a.currentResultsFetcher_.fetchIssues().then(function(d){d.getIssueIdFromIndex?b.resolve(d):b.reject(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},MM=function(a){a.currentResultsFetcher_=null;a.nextResultsFetcher_=null;a.previousResultsFetcher_=null;a.focusedIssueIndex_=-1},tLb=function(a,b){var c=Nj();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(1<Math.abs(d-a.currentResultsFetcher_.params.page))return c.reject("Requested index is out of range."),c.promise;var e=Ii(a.currentResultsFetcher_.params);e.page=d;pLb(a,e);a.currentResultsFetcher_.fetchIssues().then(function(f){f.getIssueIdFromIndex&&(f=f.getIssueIdFromIndex(b),-1!=f?(a.focusedIssueIndex_=b,c.resolve(f)):c.reject("No issue available at index "+b))},function(f){c.reject(f)});return c.promise},uLb=
function(a){a.currentResultsFetcher_?a.currentResultsFetcher_.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex_=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){Vk("unexpected error fetching:",b)}):a.focusedIssueIndex_=-1},rLb=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 $i(new Wi(b.fieldId),
b.direction)}));return a}return null},vLb=function(a,b,c){b=Ii(b);b.page=c;return new mLb(a.issueApi,a.hotlistApi,a.paths,b)},wLb=function(a,b){a.currentResultsFetcher_||(a.currentResultsFetcher_=vLb(a,b,b.page),a.currentResultsFetcher_.fetchIssues().catch(function(c){Vk("unexpected error fetching:",c)}));!a.previousResultsFetcher_&&1<b.page&&(a.previousResultsFetcher_=vLb(a,b,b.page-1),a.previousResultsFetcher_.fetchIssues().catch(function(c){Vk("unexpected error fetching:",c)}));!a.nextResultsFetcher_&&
nLb(a.currentResultsFetcher_)&&(a.nextResultsFetcher_=vLb(a,b,b.page+1),a.nextResultsFetcher_.fetchIssues().catch(function(c){Vk("unexpected error fetching:",c)}))},pLb=function(a,b){b.page=Oi(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("ed");a.previousResultsFetcher_&&b.page==a.previousResultsFetcher_.params.page?(a.nextResultsFetcher_=a.currentResultsFetcher_,a.currentResultsFetcher_=a.previousResultsFetcher_,a.previousResultsFetcher_=null):a.nextResultsFetcher_&&b.page==a.nextResultsFetcher_.params.page&&
(a.previousResultsFetcher_=a.currentResultsFetcher_,a.currentResultsFetcher_=a.nextResultsFetcher_,a.nextResultsFetcher_=null);if(a.currentResultsFetcher_){var c=a.currentResultsFetcher_.params;b.page==c.page&&b.query==c.query&&Hi(b.sortColumns,c.sortColumns)&&b.resultsPerPage==c.resultsPerPage?a.currentResultsFetcher_.params.returnUrl=b.returnUrl:MM(a)}wLb(a,b);b=JSON.stringify(a.currentResultsFetcher_.params);a.$window.sessionStorage.setItem("buganizer.searchParams",b)},oLb=function(a){var b=Oi(""+
a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};LM.\u0275fac=function(a){return new (a||LM)(t(mM),t(fK),t(XK),t(LK))};LM.\u0275prov=hc({token:LM,factory:LM.\u0275fac,providedIn:"root"});
var go=function(a){Z.call(this,a)};U(go,Z);g=go.prototype;g.getHotlistId=function(){return nj(this,sb(this,eo,1))};g.setHotlistId=function(a){ho(this,1,eo,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return gj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};var eo=[1,4];go.prototype.toObject=function(){return xLb(void 0,this)};
var xLb=function(a,b){if(null!=b){var c={hotlistId:n(Ur(b,1,eo)),savedSearchId:n(Ur(b,4,eo)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var NM=function(a){Z.call(this,a,-1,yLb)};U(NM,Z);g=NM.prototype;g.getBookmarkGroupId=function(){return nj(this,1)};g.setBookmarkGroupId=function(a){l(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return gj(this,2)};g.getDescription=function(){return V(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Vl,8)};g.setOwnerUser=function(a){Db(this,8,a)};
g.getArchived=function(){return W(this,5)};g.setArchived=function(a){l(this,5,a)};g.getItemList=function(){return tb(this,go,6)};g.setItemList=function(a){Cb(this,6,a)};g.addItem=function(a,b){return Du(this,6,go,a,b)};g.getAdminUsersList=function(){return tb(this,Vl,9)};g.setAdminUsersList=function(a){Cb(this,9,a)};var yLb=[6,9];NM.prototype.toObject=function(){return zLb(void 0,this)};
var zLb=function(a,b){if(null!=b){var c={bookmarkGroupId:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:lJ(a,b.getOwnerUser()),archived:n(Xo(b,5)),itemList:Eb(b.getItemList(),xLb,a),adminUsersList:Eb(b.getAdminUsersList(),lJ,a)};a&&(c.$jspbMessageInstance=b);return c}};NM.messageId="b.BookmarkGroup";
var OM=function(a){Z.call(this,a,-1,ALb)};U(OM,Z);OM.prototype.getBookmarkGroupsList=function(){return tb(this,NM,1)};var ALb=[1];OM.prototype.toObject=function(){var a=null!=this?{bookmarkGroupsList:Eb(this.getBookmarkGroupsList(),zLb)}:void 0;return a};OM.messageId="b.BookmarkGroupListResponse";
var PM=function(a){this.executor=a};PM.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:NM}).then(fo).then(co)};PM.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:OM}).then(iva).then(fva)};PM.prototype.create=function(a){var b=new NM;b.setName(a.name);a.description&&b.setDescription(a.description);return this.executor.post({url:"action/bookmark_groups",body:b,responseConstructor:NM}).then(fo).then(co)};
PM.prototype.update=function(a){var b=new NM;b.setBookmarkGroupId(String(a.bookmarkGroupId));b.setName(a.name);a.description&&b.setDescription(a.description);a.ownerUser&&b.setOwnerUser(Wl(a.ownerUser));b.setArchived(a.archived);var c;b.setItemList((null!=(c=a.item)?c:[]).map(hva));var d;b.setAdminUsersList((null!=(d=a.adminUsers)?d:[]).map(Wl));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:NM}).then(fo).then(co)};
PM.\u0275fac=function(a){return new (a||PM)(t(iI))};PM.\u0275prov=hc({token:PM,factory:PM.\u0275fac,providedIn:"root"});
var QM=function(a,b){this.dialogRef=a;this.data=b;this.confirmButtonTheme=b.isDestructive?"warn":"primary";var c;this.cancelButtonText=null!=(c=b.cancelButtonText)?c:"Cancel";var d;this.confirmButtonText=null!=(d=b.confirmButtonText)?d:"Confirm";var e;this.showCancelButton=null!=(e=b.showCancelButton)?e:!0};QM.\u0275fac=function(a){return new (a||QM)(C(QB),C(aC))};
QM.\u0275cmp=w({type:QM,selectors:[["b-confirmation-dialog"]],decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["mat-button","","class","gmat-button medium",3,"click",4,"ngIf"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium",3,"color","click"],["mat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),H(2,"div",1),F(3,"div",2),M(4,jva,2,1,"button",3),F(5,"button",4),J("click",
function(){return b.dialogRef.close(!0)}),O(6),G()());a&2&&(B(1),He(b.data.title),B(1),E("innerHTML",b.data.content,Pd),B(2),E("ngIf",b.showCancelButton),B(1),E("color",b.confirmButtonTheme),B(1),Ge(" ",b.confirmButtonText," "))},dependencies:[Gx,FB,eC,fC,gC],encapsulation:2});var RM=function(a){this.dialog=a},BLb=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
RM.prototype.open=function(a){var b=a.title,c=a.onConfirm,d=a.onDismiss,e=a.isDestructive,f=a.cancelButtonText,h=a.confirmButtonText,k=a.showCancelButton;a=nh(uh(a.content).toString(),null);RB(this.dialog.open(QM,{data:{title:b,content:a,isDestructive:e,cancelButtonText:f,confirmButtonText:h,showCancelButton:k},maxWidth:"500px"})).subscribe(function(q){q?null==c||c():null==d||d()})};RM.\u0275fac=function(a){return new (a||RM)(t(cC))};RM.\u0275prov=hc({token:RM,factory:RM.\u0275fac,providedIn:"root"});
var CLb=function(){};
var SM=function(a,b){this.router=a;this.location=b};U(SM,CLb);SM.prototype.reload=function(){var a=this,b=this.location.url();jt(this.router,"/",{skipLocationChange:!0}).then(function(){return jt(a.router,b,{skipLocationChange:!0})})};SM.\u0275fac=function(a){return new (a||SM)(t(Ik),t(KK))};SM.\u0275prov=hc({token:SM,factory:SM.\u0275fac,providedIn:"root"});
var DLb=new od("Route",{factory:function(){return t(SM)}});
var TM=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);var y=this;this.$route=a;this.activeSession=b;this.userApi=c;this.errorHandler=d;this.bLocation=e;this.paths=f;this.issuePagination=h;this.sidebarItemFactory=k;this.appEvents=q;this.analytics=u;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches_=[];this.userHotlists_=[];ELb(this);FLb(this);this.fetchUserHotlists();a=function(){ELb(y)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));
this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(a));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){FLb(y)}));a=function(){y.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};U(TM,qI);TM.\u0275dir=qI.\u0275dir;
var ELb=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=GLb(a,b.hotlists);a.sidebarData.bookmarkGroups=HLb(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=GLb(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=HLb(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},FLb=function(a){a.userApi.getUserSavedSearches().then(function(b){b=ILb(a,b);a.sidebarData.userSearches=b;xa(a.userSavedSearches_);
kaa(a.userSavedSearches_,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};TM.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){JLb(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var GLb=function(a,b){return(b||[]).map(function(c){return KLb(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},HLb=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new LLb(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},ILb=function(a,b){return b.map(function(c){return{id:c.searchId,name:c.name,ownerUser:c.ownerUser,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return MLb(a.sidebarItemFactory,c)})},JLb=function(a,b){b=b.map(function(c){c={id:c.hotlistId,name:c.name,description:c.description,ownerUser:c.ownerUser,starred:a.activeSession.getUserEmail()!==Ql(c.ownerUser),resourceType:"HOTLIST"};return KLb(a.sidebarItemFactory,c)});xa(a.userHotlists_);kaa(a.userHotlists_,b)};
TM.prototype.onAnchorClick=function(a,b){var c,d,e=null!=(d=null==(c=b.target)?void 0:c.innerText)?d:"";io(this.analytics,"nav","click",e.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(MM(this.issuePagination),UIb(this.paths,a)&&this.$route.reload(),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};TM.\u0275fac=function(a){return new (a||TM)(t(DLb),t(qH),t(cL),t(BK),t(KK),t(LK),t(LM),t(UM),t(FK),t(IM))};TM.\u0275prov=hc({token:TM,factory:TM.\u0275fac,providedIn:"root"});
var VM=function(a,b,c,d,e,f,h,k){this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=h;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.ownerUser=a.ownerUser;this.starred=a.starred;this.userEmail=b.getUserEmail()};VM.prototype.isEditable=function(){return!!this.ownerUser&&Ql(this.ownerUser)===this.userEmail};VM.prototype.isSelected=function(){return TIb(this.paths,this.href)};
VM.prototype.isUnstarable=function(){return!(this.ownerUser&&Ql(this.ownerUser)===this.userEmail)&&this.starred};
var NLb=function(a,b){var c=Ii(a.userPreferencesManager.preferencesSubject$.getValue()).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},OLb=function(a,b){yK(a.butterBar,"Updating homepage...",0);lFb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(Tf()).subscribe(function(){yK(a.butterBar,"Homepage updated")})},PLb=function(a,b,c,d,e,f,h,k,q,u,y,D){VM.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=f;this.errorHandler=u;this.confirmationDialogService=
y;this.appEvents=D;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};U(PLb,VM);g=PLb.prototype;g.isPreferredHomepage=function(){return NLb(this,"HOTLIST")};g.setAsPreferredHomepage=function(){OLb(this,"HOTLIST")};
g.archive=function(){var a=this;yK(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});yK(a.butterBar,'Archived hotlist "'+a.name+'".');io(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;yK(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});yK(a.butterBar,'Unarchived hotlist "'+a.name+'".');io(a.analytics,"sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Tn("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar_()}})};
g.doUnstar_=function(){var a=this;yK(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){yK(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var WM=function(a,b,c,d,e,f,h,k){VM.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};U(WM,VM);WM.prototype.isUnstarable=function(){return!1};
WM.prototype.unstar=function(){};WM.prototype.isPreferredHomepage=function(){return NLb(this,"SAVED_SEARCH")};WM.prototype.setAsPreferredHomepage=function(){OLb(this,"SAVED_SEARCH")};
var LLb=function(a,b,c,d,e,f,h,k,q,u,y,D){VM.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=u;this.confirmationDialogService=y;this.appEvents=D;this.items=[];a=r(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(KLb(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(MLb(this.sidebarItemFactory,b))}this.items.sort(function(I,N){return I.name.localeCompare(N.name)})};U(LLb,VM);g=LLb.prototype;
g.isPreferredHomepage=function(){return NLb(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){OLb(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;yK(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});yK(a.butterBar,'Archived bookmark group "'+a.name+'".');io(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;yK(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});yK(a.butterBar,'Unarchived bookmark group "'+a.name+'".');io(a.analytics,"sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Tn("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar_()}})};
g.doUnstar_=function(){var a=this;yK(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){yK(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var UM=function(a,b,c,d,e,f,h,k,q,u,y){this.activeSession=a;this.userApi=b;this.bookmarkGroupsApi=c;this.hotlistApi=d;this.errorHandler=e;this.paths=f;this.analytics=h;this.butterBar=k;this.userPreferencesManager=q;this.confirmationDialogService=u;this.appEvents=y},KLb=function(a,b){return new PLb(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},MLb=function(a,b){return new WM(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};UM.\u0275fac=function(a){return new (a||UM)(t(qH),t(cL),t(PM),t(XK),t(BK),t(LK),t(IM),t(xK),t(PI),t(RM),t(FK))};UM.\u0275prov=hc({token:UM,factory:UM.\u0275fac,providedIn:"root"});
var XM=function(){this.expanded=!1;this.content=this.header=null};XM.\u0275fac=function(a){return new (a||XM)};
XM.\u0275cmp=w({type:XM,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content"},decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"],[4,"ngIf"]],template:function(a,b){a&1&&(F(0,"div",0),J("click",function(){return b.expanded=!b.expanded})("keydown.enter",function(c){b.expanded=!b.expanded;return c.stopPropagation()})("keydown.space",function(c){b.expanded=!b.expanded;
return c.preventDefault()}),M(1,kva,1,0,"ng-container",1),G(),M(2,mva,2,1,"ng-container",2));a&2&&(pe("opened",b.expanded)("closed",!b.expanded),ke("aria-expanded",b.expanded),B(1),E("ngTemplateOutlet",b.header),B(1),E("ngIf",b.expanded))},dependencies:[Gx,Qx],encapsulation:2});
var YM=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=YM.prototype;g.handleBookmarkGroupOpen=function(a){io(this.analytics,"sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){io(this.analytics,"sidebarArchived","dashboard");this.location.url(this.paths.dashboard(a))};g.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};
g.openEditBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};g.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};YM.\u0275fac=function(a){return new (a||YM)(C(KK),C(IM),C(LK),C(TM))};
YM.\u0275cmp=w({type:YM,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"header","content"],["zippyHeader",""],["zippyContent",""],[1,"archived-list"],[3,"title",4,"ngFor","ngForOf"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[3,"title"],["bgZippyHeader",""],["bgZippyContent",""],[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,"bv2-nav-item-text"],["mat-icon-button",
"","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["groupMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-hotlists-edit-menuitem",
3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions","class","bv2-nav-item-menubutton keep-focus-ring",
3,"matMenuTriggerFor",4,"ngIf"],["hotlistMenu",""],["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&&M(0,Cva,7,2,"div",0);a&2&&E("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[Kx,Gx,hF,FB,mF,kF,pF,jF,XM],encapsulation:2});
var ZM=function(){this.admins=[]};ZM.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Rl(this.bookmarkGroup.adminUsers)};ZM.\u0275fac=function(a){return new (a||ZM)};
ZM.\u0275cmp=w({type:ZM,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},decls:14,vars:6,consts:[["role","dialog","aria-label","Bookmark group hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bookmark-group-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),O(5),G()(),F(6,"ul")(7,"li"),O(8),G(),F(9,"li"),O(10),G()(),F(11,"div")(12,"p"),O(13),G()()()()());a&2&&(B(4),E("href",b.url,
Qd),B(1),He(b.bookmarkGroup.name),B(3),Ge("ID: ",b.bookmarkGroup.bookmarkGroupId,""),B(2),Ie("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),He(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 $M=function(){this.admins=[]};$M.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Rl(this.hotlist.adminUsers)};$M.\u0275fac=function(a){return new (a||$M)};
$M.\u0275cmp=w({type:$M,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},decls:14,vars:6,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hotlist-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),O(5),G()(),F(6,"ul")(7,"li"),O(8),G(),F(9,"li"),O(10),G()(),F(11,"div")(12,"p"),O(13),G()()()()());a&2&&(B(4),E("href",b.url,Qd),B(1),He(b.hotlist.name),B(3),Ge("ID: ",b.hotlist.hotlistId,""),B(2),Ie("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),He(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 aN=function(a,b){this.activeSession=a;this.cdr=b;this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new Vw;this.isAnonymous=this.activeSession.isAnonymous()};g=aN.prototype;g.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.detectChanges())};g.onEnter=function(a){this.onClick(a)};g.isDisabled=function(){return this.isAnonymous||this.disabled};
g.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};g.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};aN.\u0275fac=function(a){return new (a||aN)(C(qH),C(mI))};
aN.\u0275cmp=w({type:aN,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[Je([mI])],decls:4,vars:7,consts:[[1,"inline-block",3,"matTooltip"],["tooltip","matTooltip"],["mat-icon-button","","role","checkbox",1,"small",3,"disabled","keydown.enter","click","focus","blur"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&1){var c=x();F(0,"div",
0,1)(2,"button",2);J("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){z(c);var d=Fe(1);return A(d.show())})("blur",function(){z(c);var d=Fe(1);return A(d.hide())});H(3,"mat-icon",3);G()()}a&2&&(E("matTooltip",b.getLabel()),B(2),pe("starred",b.starred),E("disabled",b.isDisabled()),ke("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(1),E("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[FB,hF,wF],styles:["[_nghost-%COMP%]{opacity:.9;text-align:center}[_nghost-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}[_nghost-%COMP%]   button.mat-icon-button.starred[_ngcontent-%COMP%]{color:#e37400;color:var(--favorite-star)}[_nghost-%COMP%]   button.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:initial}"],
changeDetection:0});
var QLb=pi(function(a){this._elementRef=a},"primary"),RLb=new od("mat-progress-spinner-default-options",{providedIn:"root",factory:Fva}),bN=function(a,b,c,d,e,f,h,k){var q=QLb.call(this,a)||this;q._document=c;q._diameter=100;q._value=0;q._resizeSubscription=T.Subscription.EMPTY;q.mode="determinate";q._spinnerAnimationLabel=q._getSpinnerAnimationLabel();SLb.has(c.head)||SLb.set(c.head,new Set([100]));q._noopAnimations="NoopAnimations"===d&&!!e&&!e._forceAnimations;"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&
(q.mode="indeterminate");e&&(e.color&&(q.color=q.defaultColor=e.color),e.diameter&&(q.diameter=e.diameter),e.strokeWidth&&(q.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&h&&f&&k&&(q._resizeSubscription=h.change(150).subscribe(function(){"indeterminate"===q.mode&&k.run(function(){return f.markForCheck()})}));return q};U(bN,QLb);g=bN.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Ug(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
g.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};g._getCircleRadius=function(){return(this.diameter-10)/2};g._getViewBox=function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 "+a+" "+a};g._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};g._getStrokeDashOffset=function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null};g._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
g._getCircleTransformOrigin=function(a){var b;a=50*(null!=(b=a.currentScale)?b:1);return a+"% "+a+"%"};g._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=SLb.get(a);if(!c||!c.has(b)){var d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);d.textContent=this._getAnimationText();a.appendChild(d);c||(c=new Set,SLb.set(a,c));c.add(b)}};
g._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)};g._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
oi.Object.defineProperties(bN.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=ah(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=ah(a)}},value:{configurable:!0,enumerable:!0,get:function(){return"determinate"===this.mode?this._value:0},
set:function(a){this._value=Math.max(0,Math.min(100,ah(a)))}}});var SLb=new WeakMap;bN.\u0275fac=function(a){return new (a||bN)(C(sd),C(My),C(mi,8),C(iw,8),C(RLb),C(zx),C(KA),C(mg))};
bN.\u0275cmp=w({type:bN,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,b){a&2&&(ke("aria-valuemin","determinate"===b.mode?0:null)("aria-valuemax","determinate"===b.mode?100:null)("aria-valuenow","determinate"===b.mode?b.value:null)("mode",b.mode),oe("width",b.diameter,"px")("height",b.diameter,"px"),pe("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",
diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ee],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["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&&(Qc(),F(0,"svg",0,1),M(2,Dva,1,11,"circle",2),M(3,Eva,1,9,"circle",3),G());a&2&&(oe("width",b.diameter,"px")("height",b.diameter,"px"),E("ngSwitch","indeterminate"===b.mode),ke("viewBox",b._getViewBox()),B(2),E("ngSwitchCase",!0),B(1),E("ngSwitchCase",!1))},dependencies:[Mx,Nx],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:transparent;transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-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 cN=function(){};cN.\u0275fac=function(a){return new (a||cN)};cN.\u0275cmp=w({type:cN,selectors:[["b-spinner"]],inputs:{large:"large"},decls:2,vars:2,consts:[["class","large",3,"diameter",4,"ngIf"],["class","small",3,"diameter","strokeWidth",4,"ngIf"],[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(M(0,Gva,1,1,"mat-spinner",0),M(1,Hva,1,2,"mat-spinner",1));a&2&&(E("ngIf",b.large),B(1),E("ngIf",!b.large))},dependencies:[Gx,bN],styles:[".muted[_nghost-%COMP%]     .mat-progress-spinner circle, .muted[_nghost-%COMP%]     .mat-spinner circle{stroke:rgba(0,0,0,.4)}[_nghost-%COMP%]     .mat-progress-spinner circle, [_nghost-%COMP%]     .mat-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: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 fade-in{0%{opacity:0}100%{opacity:1}}\n/*# sourceMappingURL=spinner.css.map */"]});
var Iva;
var dN=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Vw;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};dN.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};dN.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
dN.prototype.getRoot=function(){var a;return null!=(a=Jva(this.elementRef.nativeElement))?a:document};dN.\u0275fac=function(a){return new (a||dN)(C(sd))};dN.\u0275dir=w({type:dN,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var eN=function(){};eN.\u0275fac=function(a){return new (a||eN)};eN.\u0275mod=xc({type:eN});eN.\u0275inj=ic({});
var TLb,ULb=Symbol("fd"),VLb=Symbol("gd"),fN=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Vw;this[TLb]=new T.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new T.BehaviorSubject(!1);this.closeHovercard$=new T.Subject};fN.prototype.ngOnInit=function(){};var WLb=function(a){var b=a[VLb];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[ULb].pipe(Rf(0))):(0,T.of)(void 0)};TLb=ULb;
fN.\u0275fac=function(a){return new (a||fN)(C(Bf))};
fN.\u0275cmp=w({type:fN,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&Ef(Af,7);if(a&2){var c;Df(c=Gf())&&(b.templateRef=c.first)}},inputs:{className:"className"},outputs:{onHide:"onHide"},exportAs:["onedevHovercard"],ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","",3,"cdkTrapFocusAutoCapture","clickOutside","mouseenter","mouseleave"]],template:function(a){a&1&&(Ae(),M(0,Kva,2,3,"ng-template"))},dependencies:[Ty,dN],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 gN=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[VLb]=this};gN.\u0275fac=function(a){return new (a||gN)(C(Af),C(Bf),C(zx),C(fN))};gN.\u0275dir=w({type:gN,selectors:[["","onedevHovercardLazyBody",""]]});var hN=function(a){this.hovercard=a;this.destroyed$=new T.ReplaySubject(1)};hN.prototype.ngOnDestroy=function(){this.destroyed$.next()};hN.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(fg(this.destroyed$)).subscribe(this.hovercard[ULb])};
hN.\u0275fac=function(a){return new (a||hN)(C(fN))};hN.\u0275dir=w({type:hN,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});
var XLb=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},{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 YLb=function(){this.delay=600;this.position=XLb},iN=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new YLb;this.active=!1;this.hovercardShown$=new T.ReplaySubject(1);this.hide$=new T.Subject;this.hovercard$=new T.BehaviorSubject(null);this.isHovered$=new T.BehaviorSubject(!1);this.isKeyboardActivated$=new T.BehaviorSubject(!1);this.destroyed$=new T.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(ZLb(c),d.stopPropagation(),
d.preventDefault())};$Lb(this);aMb(this)},$Lb=function(a){bMb(a).pipe(fg(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})},aMb=function(a){a.hovercard$.pipe(eg(function(b){return(null==b?void 0:b.closeHovercard$)||T.NEVER}),fg(a.destroyed$)).subscribe(function(){ZLb(a)})};iN.prototype.dispose=function(){cMb(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
iN.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};iN.prototype.toggle=function(a){this.isHovered$.next(a)};var ZLb=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
iN.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,WLb(this.hovercard$.getValue()).pipe(Tf(),fg(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};iN.prototype.hide=function(){cMb(this);this.hide$.next()};
var cMb=function(a){if(a.overlayRef&&a.overlayRef.hasAttached()){document.removeEventListener("keydown",a.onDocumentKeyDown);var b;null!=(b=a.hovercard$.getValue())&&b.onHide.emit();a.overlayRef.detach()}};iN.prototype.getPositionStrategy=function(){return RA(SA(TA(ZA(this.overlay.position(),this.origin)),8),this.config.position)};
var bMb=function(a){return(0,T.combineLatest)([dMb(a).pipe(dg(!1)),a.isKeyboardActivated$]).pipe(cg(1),R(function(b){var c=r(b);b=c.next().value;c=c.next().value;return b||c}),eg(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(Xf(b)))||(0,T.of)(b)}))},dMb=function(a){return a.hovercard$.pipe(eg(function(b){return(0,T.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,T.of)(!1)]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Qf(a.config.delay),
fg(a.destroyed$))}))};
var eMb=new od("onedevHovercardLoggingOn"),jN=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new YLb;this.destroyed$=new T.ReplaySubject(1);this.triggerControl=new iN(a,b);this.triggerControl.hovercardShown$.pipe(hg(d||(0,T.of)(!1)),fg(this.destroyed$)).subscribe(function(h){h=r(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(KE)),LE(f.clientStreamzService,"hovercardShown",!0))})};g=jN.prototype;
g.ngOnChanges=function(a){if(a.hovercard){var b;a=null==(b=a.hovercard)?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 bB(a.templateRef,c);b.hovercard$.next(a)}}};g.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
g.isExpanded=function(){return this.triggerControl.isExpanded()};g.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};oi.Object.defineProperties(jN.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});jN.\u0275fac=function(a){return new (a||jN)(C(gB),C(sd),C(Bf),C(eMb,8),C(Uv))};
jN.\u0275dir=w({type:jN,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("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)});a&2&&ke("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger","hovercard"],enabled:["onedevHovercardActive",
"enabled"],config:["onedevHovercardConfig","config"]},features:[Fc]});
var fMb=["panel"],gMb=0,hMb=function(a,b){this.source=a;this.option=b},iMb=qi(function(){}),jMb=new od("mat-autocomplete-default-options",{providedIn:"root",factory:Mva}),kN=function(a,b,c,d){var e=iMb.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._activeOptionChanges=T.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new Vw;e.opened=new Vw;e.closed=new Vw;e.optionActivated=new Vw;e._classList={};e.id="mat-autocomplete-"+gMb++;e.inertGroups=(null==d?void 0:
d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;e._autoSelectActiveOption=!!c.autoSelectActiveOption;return e};U(kN,iMb);g=kN.prototype;g.ngAfterContentInit=function(){var a=this;this._keyManager=lA(new tA(this.options));this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};g.ngOnDestroy=function(){this._activeOptionChanges.unsubscribe()};
g._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};g._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};g._setVisibility=function(){this.showPanel=!!this.options.length;this._setVisibilityClasses(this._classList);this._changeDetectorRef.markForCheck()};g._emitSelectEvent=function(a){this.optionSelected.emit(new hMb(this,a))};
g._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};g._setVisibilityClasses=function(a){a[this._visibleClass]=this.showPanel;a[this._hiddenClass]=!this.showPanel};
oi.Object.defineProperties(kN.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this._isOpen&&this.showPanel}},autoActiveFirstOption:{configurable:!0,enumerable:!0,get:function(){return this._autoActiveFirstOption},set:function(a){this._autoActiveFirstOption=Yg(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=Yg(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&
a.length?this._classList=oja(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._elementRef.nativeElement.className=""}}});kN.\u0275fac=function(a){return new (a||kN)(C(zx),C(sd),C(jMb),C(My))};
kN.\u0275dir=w({type:kN,viewQuery:function(a,b){a&1&&(Ef(Af,7),Ef(fMb,5));if(a&2){var c;Df(c=Gf())&&(b.template=c.first);Df(c=Gf())&&(b.panel=c.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
features:[ee]});var lN=function(){var a=kN.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";return a};U(lN,kN);lN.\u0275dir=kN.\u0275dir;lN.\u0275fac=function(){var a;return function(b){return(a||(a=hd(lN)))(b||lN)}}();
lN.\u0275cmp=w({type:lN,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(Ff(c,Wpb,5),Ff(c,BB,5));if(a&2){var d;Df(d=Gf())&&(b.optionGroups=d);Df(d=Gf())&&(b.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Je([{provide:Vpb,useExisting:lN}]),ee],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(Ae(),M(0,
Lva,3,4,"ng-template"))},dependencies:[Jx],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],
encapsulation:2,changeDetection:0});
var kMb=new od("mat-autocomplete-scroll-strategy"),lMb={provide:kMb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},mMb={provide:Ix,useExisting:dc(function(){return mN}),multi:!0},nN=function(a,b,c,d,e,f,h,k,q,u,y){var D=this;this._element=a;this._overlay=b;this._viewContainerRef=c;this._zone=d;this._changeDetectorRef=e;this._dir=h;this._formField=k;this._document=q;this._viewportRuler=u;this._defaults=y;this._manuallyFloatingLabel=this._autocompleteDisabled=
this._componentDestroyed=!1;this._viewportSubscription=T.Subscription.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new T.Subject;this._windowBlurHandler=function(){D._canOpenOnNextFocus=D._document.activeElement!==D._element.nativeElement||D.panelOpen};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._overlayAttached=!1;this.optionSelections=(0,T.defer)(function(){var I=D.autocomplete?D.autocomplete.options:null;return I?
I.changes.pipe(dg(I),eg(function(){return T.merge.apply(null,v(I.map(function(N){return N.onSelectionChange})))})):D._zone.onStable.pipe(Tf(),eg(function(){return D.optionSelections}))});this._scrollStrategy=f};nN.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};
nN.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};nN.prototype.ngOnDestroy=function(){var a=this._getWindow();"undefined"!==typeof a&&a.removeEventListener("blur",this._windowBlurHandler);this._viewportSubscription.unsubscribe();this._componentDestroyed=!0;this._destroyPanel();this._closeKeyEventStream.complete()};
var Bs=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a._zone.run(function(){a.autocomplete.closed.emit()}),a.autocomplete._isOpen=a._overlayAttached=!1,a._pendingAutoselectedOption=null,a._overlayRef&&a._overlayRef.hasAttached()&&(a._overlayRef.detach(),a._closingActionsSubscription.unsubscribe()),a._componentDestroyed||a._changeDetectorRef.detectChanges())};g=nN.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,T.merge)((0,T.fromEvent)(this._document,"click"),(0,T.fromEvent)(this._document,"auxclick"),(0,T.fromEvent)(this._document,"touchend")).pipe(uf(function(b){b=Wg(b);var c=a._formField?a._formField._elementRef.nativeElement:null,d=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;return a._overlayAttached&&b!==a._element.nativeElement&&a._document.activeElement!==a._element.nativeElement&&(!c||!c.contains(b))&&(!d||!d.contains(b))&&!!a._overlayRef&&
!a._overlayRef.overlayElement.contains(b)}))};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=ki(a);27!==b||c||a.preventDefault();if(this.activeOption&&13===b&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=38===b||40===b;if(9===b||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&(this._attachOverlay(),this._floatLabel());if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||
0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
g._handleInput=function(a){var b=a.target,c=b.value;"number"===b.type&&(c=""==c?null:parseFloat(c));this._previousValue!==c&&(this._previousValue=c,this._pendingAutoselectedOption=null,this._onChange(c),this._canOpen()&&this._document.activeElement===a.target&&(this._attachOverlay(),this._floatLabel()))};g._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};
g._handleClick=function(){this._canOpen()&&!this.panelOpen&&(this._attachOverlay(),this._floatLabel())};g._floatLabel=function(a){this._formField&&"auto"===this._formField.floatLabel&&((void 0===a?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};g._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=this._zone.onStable.pipe(Tf()),c=this.autocomplete.options.changes.pipe(gg(function(){return Jpb(a._positionStrategy)}),Rf(0));return(0,T.merge)(b,c).pipe(eg(function(){a._zone.run(function(){var d=a.panelOpen;a._resetActiveItem();a.autocomplete._setVisibility();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();d!==a.panelOpen&&(a.panelOpen?a.autocomplete.opened.emit():a.autocomplete.closed.emit())});return a.panelClosingActions}),
Tf()).subscribe(function(d){return a._setValueAndClose(d)})};g._destroyPanel=function(){this._overlayRef&&(Bs(this),this._overlayRef.dispose(),this._overlayRef=null)};g._assignOptionValue=function(a){a=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(a):a;this._updateNativeInputValue(null!=a?a:"")};g._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
g._setValueAndClose=function(a){if(a=a?a.source:this._pendingAutoselectedOption)this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),this.autocomplete._emitSelectEvent(a),this._element.nativeElement.focus();Bs(this)};g._clearPreviousSelectedOption=function(a){this.autocomplete.options.forEach(function(b){b!==a&&b.selected&&b.deselect()})};
g._attachOverlay=function(){var a=this,b=this._overlayRef;if(b)this._positionStrategy.setOrigin(this._getConnectedElement()),b.updateSize({width:this._getPanelWidth()});else{var c;this._portal=new bB(this.autocomplete.template,this._viewContainerRef,{id:null==(c=this._formField)?void 0:c.getLabelId()});this._overlayRef=b=this._overlay.create(this._getOverlayConfig());this._handleOverlayEvents(b);this._viewportSubscription=this._viewportRuler.change().subscribe(function(){a.panelOpen&&b&&b.updateSize({width:a._getPanelWidth()})})}b&&
!b.hasAttached()&&(b.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());c=this.panelOpen;this.autocomplete._setVisibility();this.autocomplete._isOpen=this._overlayAttached=!0;this.panelOpen&&c!==this.panelOpen&&this.autocomplete.opened.emit()};
g._getOverlayConfig=function(){var a;return new OA({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null==(a=this._defaults)?void 0:a.overlayPanelClass})};g._getOverlayPosition=function(){var a=UA(TA(ZA(this._overlay.position(),this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
g._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass;c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];b="above"===this.position?c:"below"===this.position?b:[].concat(v(b),v(c));RA(a,b)};
g._getConnectedElement=function(){if(this.connectedTo)var a=this.connectedTo.elementRef;else this._formField?(a=this._formField,a=a._connectionContainerRef||a._elementRef):a=this._element;return a};g._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};g._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};g._resetActiveItem=function(){var a=this.autocomplete;a.autoActiveFirstOption?rA(a._keyManager):a._keyManager.setActiveItem(-1)};
g._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this._autocompleteDisabled};g._getWindow=function(){var a;return(null==(a=this._document)?void 0:a.defaultView)||window};g._scrollToOption=function(a){var b=this.autocomplete,c=qla(a,b.options,b.optionGroups);0===a&&1===c?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(rla(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._handleOverlayEvents=function(a){var b=this;a.keydownEvents().subscribe(function(c){if(27===c.keyCode&&!ki(c)||38===c.keyCode&&ki(c,"altKey")){if(b._pendingAutoselectedOption){var d;b._updateNativeInputValue(null!=(d=b._valueBeforeAutoSelection)?d:"");b._pendingAutoselectedOption=null}b._closeKeyEventStream.next();b._resetActiveItem();c.stopPropagation();c.preventDefault()}})};
oi.Object.defineProperties(nN.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=Yg(a)}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},panelClosingActions:{configurable:!0,enumerable:!0,get:function(){var a=this;return(0,T.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(uf(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(uf(function(){return a._overlayAttached})):(0,T.of)()).pipe(R(function(b){return b instanceof fqb?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});nN.\u0275fac=function(a){return new (a||nN)(C(sd),C(gB),C(Bf),C(mg),C(zx),C(kMb),C(vA,8),C(rC,9),C(mi,8),C(KA),C(jMb,8))};
nN.\u0275dir=w({type:nN,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Fc]});var mN=function(){nN.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};U(mN,nN);
mN.\u0275fac=function(){var a;return function(b){return(a||(a=hd(mN)))(b||mN)}}();
mN.\u0275dir=w({type:mN,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&J("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&&ke("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-owns",b.autocompleteDisabled||!b.panelOpen?null:null==b.autocomplete?null:b.autocomplete.id)("aria-haspopup",b.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Je([mMb]),ee]});
var oN=function(){};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275mod=xc({type:oN});oN.\u0275inj=ic({providers:[lMb],imports:[jB,EB,kB,ay,LA,EB,kB]});
var nMb=["searchBox"],pN=function(a,b,c,d,e,f,h,k,q){this.cdr=a;this.userApi=c;this.bookmarkGroupsApi=d;this.hotlistApi=e;this.paths=f;this.analytics=h;this.errorHandler=k;this.appEvents=q;this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new Vw;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
pN.prototype.ngOnInit=function(){this.allowStarring&&oMb(this)};
var oMb=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();a.userApi.getUserSidebar().then(function(b){if(a.showGroups){var c,d=r(null!=(c=b.bookmarkGroups)?c:[]);for(c=d.next();!c.done;c=d.next()){c=c.value;c.starred&&a.favoriteBookmarkGroups.add(c.id);var e=void 0;c=r(null!=(e=c.sublinks)?e:[]);for(e=c.next();!e.done;e=c.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}}if(a.showHotlists){var f;b=r(null!=(f=b.hotlists)?f:[]);for(e=b.next();!e.done;e=b.next())f=e.value,
f.starred&&a.favoriteHotlists.add(f.id)}a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g=pN.prototype;g.reset=function(){this.query="";this.matches=[]};g.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};g.onQueryChange=function(){this.matches=[];this.query&&"string"!==typeof this.query&&(this.query="");this.search()};
g.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=r(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=r(e),k=h.next();!k.done;k=h.next()){k=k.value;var q=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(q);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(q)}h=
r(f);for(k=h.next();!k.done;k=h.next())k=k.value,q=k.hotlistId,k.href=a.paths.viewHotlist(q),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(q);a.matches=[].concat(v(e),v(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!Rl(a.adminUsers).includes(this.currentUserEmail)};
g.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();oMb(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(io(this.analytics,"hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(io(this.analytics,"hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
pN.\u0275fac=function(a){return new (a||pN)(C(mI,2),C(qH),C(cL),C(PM),C(XK),C(LK),C(IM),C(BK),C(FK))};
pN.\u0275cmp=w({type:pN,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(Ef(nMb,5),Ef(mN,5));if(a&2){var c;Df(c=Gf())&&(b.searchBoxEl=c.first);Df(c=Gf())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[Je([mI])],decls:13,vars:6,consts:[[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder",
"Enter query","role","combobox",3,"ngModel","matAutocomplete","ngModelChange","keydown.space"],["searchBox",""],[4,"ngIf"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],["auto","matAutocomplete"],["class","bv2-hotlist-search-dropdown-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-hotlist-search-subtext"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],["itemHovercard","onedevHovercard"],
[3,"hotlist",4,"ngIf"],[3,"bookmarkGroup",4,"ngIf"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"hotlist"],[3,"bookmarkGroup"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"input",1,2),J("ngModelChange",function(d){return b.query=d})("ngModelChange",function(){return b.onQueryChange()})("keydown.space",function(d){var e;if(null==(e=b.autocomplete)?0:e.activeOption)b.toggleStar(b.autocomplete.activeOption.value),d.preventDefault(),
d.stopPropagation()}),G(),M(3,Nva,1,0,"b-spinner",3),F(4,"mat-autocomplete",4,5),J("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),M(6,Rva,9,8,"mat-option",6),G(),F(7,"div",7),O(8,' e.g., "foo bar admin:user@google.com" '),H(9,"br"),O(10,' or "foo bar admin:group@google.com" '),H(11,"br"),O(12," Only identities directly listed as Admins can be searched. "),G()());if(a&2){var c=Fe(5);B(1);E("ngModel",b.query)("matAutocomplete",c);ke("autofocus",b.focusOnInit)("aria-label","Add query for searching "+
(b.showGroups?"bookmark groups":"hotlists"));B(2);E("ngIf",b.isLoading());B(3);E("ngForOf",b.matches)}},dependencies:[Kx,Gx,ZM,$M,fN,jN,cN,aN,Mg,py,vy,lN,mN,BB],encapsulation:2});
var pMb=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],qN=function(){};qN.\u0275fac=function(a){return new (a||qN)};qN.\u0275dir=w({type:qN,selectors:[["xap-dialog-layout-subtitle"]]});var rN=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new T.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
rN.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){qMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});rMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};rN.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var qMb=function(a){if(!window.ResizeObserver)return(0,T.of)(sMb(a.el.nativeElement));var b;return(0,T.fromEventPattern)(function(c){b=new ResizeObserver(function(){c(sMb(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(Sf(),fg(a.destroyed))},rMb=function(a){return(0,T.fromEvent)(a.el.nativeElement,"scroll").pipe(Sva(),R(function(){return a.getScrollPosition(a.el.nativeElement)}),Sf(),fg(a.destroyed))},sMb=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
rN.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};oi.Object.defineProperties(rN.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});rN.\u0275fac=function(a){return new (a||rN)(C(sd),C(zx),C(mg))};
rN.\u0275dir=w({type:rN,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&pe("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke","bottom"!==b.scrollPosition)("xap-dialog-layout-top-scroll-stroke","top"!==b.scrollPosition)}});var sN=function(){};sN.\u0275fac=function(a){return new (a||sN)};
sN.\u0275cmp=w({type:sN,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&Ff(c,qN,4);if(a&2){var d;Df(d=Gf())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&pe("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&&(Ae(pMb),
F(0,"header",0),Be(1),Be(2,1),G(),Be(3,2),Be(4,3))},styles:[".xap-dialog-layout{display:block;padding:24px 24px 8px;overflow-x:hidden}xap-dialog-layout-title{display:block;padding:0}xap-dialog-layout-subtitle{display:block;padding:0 0 16px}xap-dialog-layout-content{display:block;padding:0 0 16px}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 tMb=Jh({opacity:0}),uMb=Jh({opacity:1}),vMb=Hh("dialogContainer",[Kh("void, hidden",tMb),Kh("visible",uMb),Lh("void => *, * => visible",Ih("200ms cubic-bezier(0.0,0.0,0.2,1)",uMb)),Lh("* => void, * => hidden",Ih("200ms cubic-bezier(0.4,0.0,0.2,1)",tMb))]);
var wMb=new od("XAP_IDCO"),tN=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};U(tN,cB);tN.prototype.ngAfterViewInit=function(){};tN.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};tN.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};tN.\u0275fac=function(a){return new (a||tN)(C(wMb))};
tN.\u0275cmp=w({type:tN,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&Ef(eB,7);if(a&2){var c;Df(c=Gf())&&(b.portalOutlet=c.first)}},hostAttrs:["role","dialog","tabindex","-1",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:2,hostBindings:function(a,b){a&2&&(ke("aria-label",b.options.dialogLabel),ze("@dialogContainer",b.animationState))},features:[ee],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(F(0,
"div"),M(1,Tva,1,0,"ng-template",0),G())},dependencies:[eB],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:[vMb]},changeDetection:0});
var xMb=[{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}],yMb={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},uN=function(a,b,c,d,e,f,h,k){var q=this;this.ngZone=a;this.overlay=b;this.elementRef=c;this.viewContainerRef=d;this.document=e;this.focusTrapFactory=
f;this.ariaDescriber=h;this.injector=k;this.disabledInternal=!1;this.dialogLabel=null;this.triggerDescription="Press space for more information.";this.beforeOpened=new Vw;this.opened=new Vw;this.closed=new Vw;this.destroyed=new T.ReplaySubject;this.openStatusChange=new T.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(uf(function(u){return u&&!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;zMb(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);
AMb(this,c.nativeElement)};uN.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||upb(this.ariaDescriber,a,this.triggerDescription)};uN.prototype.ngOnDestroy=function(){vN(this);this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var zMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(b,"keydown").pipe(fg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();break;case 32:c.preventDefault()}});(0,T.fromEvent)(b,"keyup").pipe(fg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},AMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(b,"focus").pipe(uf(function(){return 0<a.beforeOpened.observers.length}),fg(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
uN.prototype.openDialog=function(){var a=this;if(!this.disabled){var b;if(null==(b=this.overlayRef)||!b.hasAttached()){var c=this.portal;null!=c&&this.ngZone.run(function(){a.dialogContainerRef=BMb(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);a.dialogContainerRef.instance.animationState="visible";a.opened.observers.length&&setTimeout(function(){a.opened.emit()},200)})}}};
var vN=function(a){var b;null!=(b=a.overlayRef)&&b.hasAttached()&&(a.dialogContainerRef.instance.animationState="hidden",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))};
uN.prototype.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;b&&b===c&&(this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),Py(this.focusTrap),Ry(this.focusTrap))};
uN.prototype.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&"function"===typeof a.focus){var b=this.dialogContainerRef.location.nativeElement,c=this.document.activeElement;c&&b.contains(c)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};uN.prototype.createPositionStrategy=function(a){return RA(ZA(this.overlay.position(),this.elementRef),a).setOrigin(this.elementRef)};
var BMb=function(a){var b=kg({parent:a.injector,providers:[{provide:wMb,useValue:{dialogLabel:a.dialogLabel}}]});b=new aB(tN,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(xMb)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&0<a.overlayPositions.length&&Hpb(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
oi.Object.defineProperties(uN.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof Af?new bB(a,this.viewContainerRef):new aB(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&vN(this)},get:function(){return this.disabledInternal}},panelClass:{configurable:!0,enumerable:!0,set:function(a){if(this.panelClassInternal!==a){if(this.panelClassInternal){var b;null==(b=this.overlayRef)||b.removePanelClass(this.panelClassInternal)}if(a){var c;
null==(c=this.overlayRef)||c.addPanelClass(a)}this.panelClassInternal=a}}}});uN.\u0275fac=function(a){return new (a||uN)(C(mg),C(gB),C(sd),C(Bf),C(Document),C(jA),C(fA),C(Uv))};uN.\u0275dir=w({type:uN,hostVars:1,hostBindings:function(a,b){a&2&&ke("data-disabled",b.disabled)},inputs:{dialogLabel:"dialogLabel",overlaySize:"overlaySize",overlayPositions:"overlayPositions",triggerDescription:"triggerDescription",panelClass:"panelClass"},outputs:{beforeOpened:"beforeOpened",opened:"opened",closed:"closed"}});
var wN=function(a,b,c,d,e,f,h,k){uN.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};U(wN,uN);g=wN.prototype;g.ngOnInit=function(){uN.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(fg(this.destroyed)).subscribe(function(b){b?a.openDialog():vN(a)});this.openings.pipe(uf(function(b){return b&&0<a.beforeOpened.observers.length}),Gha(function(){return a.openStatusChange.pipe(uf(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"mouseenter").pipe(fg(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,T.fromEvent)(a,"click").pipe(fg(b.destroyed)).subscribe(function(d){d.target.closest("[xapInlineDialogClose]")&&b.openStatusChange.value?b.closingDialog():(b.openingDialog(),d.stopPropagation())});var c;null==(c=b.overlayRef)||c.backdropClick().pipe(fg(b.destroyed)).subscribe(function(){b.openStatusChange.value&&
b.closingDialog()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"keyup").pipe(fg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:vN(b);break;case 13:case 32:d.closest("[xapInlineDialogClose]")&&vN(b)}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};
g.createOverlayConfig=function(a){return new OA(Object.assign({},yMb,{positionStrategy:uN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};wN.\u0275fac=function(a){return new (a||wN)(C(mg),C(gB),C(sd),C(Bf),C(mi),C(jA),C(fA),C(Uv))};
wN.\u0275dir=w({type:wN,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[ee]});
var CMb=["*"],DMb=function(){return".xap-icon-trigger,.xap-text-trigger{pointer-events:auto}.xap-text-trigger{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under;text-underline-offset:1px;text-underline-thickness:1px}"},xN=function(){this.disabled=!1};xN.\u0275fac=function(a){return new (a||xN)};
xN.\u0275cmp=w({type:xN,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(ke("tabindex",b.disabled?-1:0),pe("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:CMb,decls:1,vars:0,template:function(a){a&1&&(Ae(),Be(0))},styles:[DMb()],encapsulation:2});var yN=function(){this.disabled=!1};yN.\u0275fac=function(a){return new (a||yN)};
yN.\u0275cmp=w({type:yN,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:CMb,decls:1,vars:0,template:function(a){a&1&&(Ae(),Be(0))},styles:[DMb()],encapsulation:2});
var zN=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new Vw};zN.\u0275fac=function(a){return new (a||zN)};
zN.\u0275cmp=w({type:zN,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&Ef(wN,5);if(a&2){var c;Df(c=Gf())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:["aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},decls:4,vars:2,consts:[[3,"xapInlineDialogClick"],["matTooltip","Search","svgIcon","search"],["popup",""],[3,"showGroups","showHotlists","allowStarring","focusOnInit","itemSelect"]],template:function(a,
b){a&1&&(F(0,"xap-icon-trigger",0),H(1,"mat-icon",1),G(),M(2,Uva,3,4,"ng-template",null,2,Mf));if(a&2){var c=Fe(3);E("xapInlineDialogClick",c);ke("aria-label",b.ariaLabel)}},dependencies:[sN,rN,wF,hF,wN,yN,pN],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});
var AN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};AN.prototype.handleBookmarkGroupOpen=function(a){io(this.analytics,"sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};AN.prototype.handleBookmarkGroupDashboard=function(a){io(this.analytics,"sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};AN.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
AN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};AN.\u0275fac=function(a){return new (a||AN)(C(KK),C(IM),C(LK),C(TM))};
AN.\u0275cmp=w({type:AN,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},decls:7,vars:3,consts:[[1,"bv2-nav-section"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for bookmark groups",3,"showHotlists","itemSelect"],["class","bookmark-group-list",4,"ngIf"],[1,"bookmark-group-list"],[3,"title",4,"ngFor","ngForOf"],[3,"title"],[3,"header","content"],["bgZippyHeader",""],["bgZippyContent",""],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions","class","bv2-nav-item-menubutton keep-focus-ring",3,"matMenuTriggerFor","click",4,"ngIf"],["topMenu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor","click"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item",
"","class","bv2-user-hotlists-edit-menuitem",3,"click",4,"ngIf"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],["class","bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"href","click"],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["innerMenu",
""],["mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&1&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,Vva,3,1,"ng-template",null,2,Mf),M(5,jwa,1,1,"ng-template",null,3,Mf),G()());if(a&2){var b=Fe(4),c=Fe(6);B(2);E("header",b)("content",c)("expanded",!0)}},dependencies:[Kx,Gx,zN,hF,FB,mF,kF,pF,jF,XM],encapsulation:2});
var BN=function(a,b,c,d,e){this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail()};BN.prototype.getUserEmail=function(){return this.userEmail};BN.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};BN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};BN.\u0275fac=function(a){return new (a||BN)(C(KK),C(qH),C(IM),C(TM),C(LK))};
BN.\u0275cmp=w({type:BN,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},decls:7,vars:3,consts:[[1,"bv2-nav-section"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["aria-label","Search for hotlists",3,"showGroups","itemSelect"],["class","hotlist-list",4,"ngIf"],[1,"hotlist-list"],["class","bv2-nav-item bv2-user-hotlists-hotlist-item",3,"selected","id","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"href",
"click"],[1,"bv2-nav-item-text"],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring","class","bv2-nav-item-menubutton",3,"matMenuTriggerFor",4,"ngIf"],["menu",""],["matMenuContent",""],["mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-hotlists-edit-menuitem",
3,"click",4,"ngIf"]],template:function(a){a&1&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,kwa,3,1,"ng-template",null,2,Mf),M(5,rwa,1,1,"ng-template",null,3,Mf),G()());if(a&2){var b=Fe(4),c=Fe(6);B(2);E("header",b)("content",c)("expanded",!0)}},dependencies:[Kx,Gx,zN,hF,FB,mF,kF,pF,jF,XM],encapsulation:2});
var CN=function(a){Z.call(this,a)};U(CN,Z);CN.prototype.getSearch=function(){return m(this,xn,1)};CN.prototype.setSearch=function(a){Db(this,1,a)};CN.prototype.toObject=function(){var a=null!=this?{search:oJb(void 0,this.getSearch())}:void 0;return a};CN.messageId="b.SearchResponse";
var DN=function(a){this.jspbExecutor=a};DN.prototype.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:CN}).pipe(R(swa))};DN.prototype.create=function(a,b){var c=new xn;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:CN}).pipe(R(swa))};
DN.prototype.update=function(a,b){var c=new xn;l(c,1,String(b.searchId));c.setOwnerUser(Wl(b.ownerUser));c.setName(b.name);c.setDescription(b.description);c.setQuery(b.query);var d;c.setSortOrderList((null!=(d=b.sortOrder)?d:[]).map($sa));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(Ysa));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Wl));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:CN}).pipe(R(swa))};
DN.prototype.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};DN.\u0275fac=function(a){return new (a||DN)(t(hI))};DN.\u0275prov=hc({token:DN,factory:DN.\u0275fac,providedIn:"root"});var EN=function(a){this.observableResources=a};EN.prototype.get=function(a){return(0,T.firstValueFrom)(this.observableResources.get(a))};EN.prototype.create=function(a,b){return(0,T.firstValueFrom)(this.observableResources.create(a,b))};
EN.prototype.update=function(a,b){return(0,T.firstValueFrom)(this.observableResources.update(a,b))};EN.prototype.delete=function(a){return(0,T.firstValueFrom)(this.observableResources.delete(a))};EN.\u0275fac=function(a){return new (a||EN)(t(DN))};EN.\u0275prov=hc({token:EN,factory:EN.\u0275fac,providedIn:"root"});
var FN=function(a,b,c,d,e,f,h,k,q,u){this.cdr=a;this.location=b;this.savedSearchApi=c;this.paths=d;this.butterBar=e;this.analytics=f;this.sidebar=h;this.errorHandler=k;this.confirmationDialogService=q;this.appEvents=u;this.searches=[]};FN.prototype.isSelected=function(a){return TIb(this.paths,a.href)};FN.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var vwa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Tn("Are you sure you want to delete this search?"),onConfirm:function(){EMb(a,b)}})},EMb=function(a,b){var c=b.id;yK(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});yK(a.butterBar,'Deleted saved search "'+b.name+'".');io(a.analytics,"sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};FN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};FN.\u0275fac=function(a){return new (a||FN)(C(mI,2),C(KK),C(EN),C(LK),C(xK),C(IM),C(TM),C(BK),C(RM),C(FK))};
FN.\u0275cmp=w({type:FN,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[Je([mI])],decls:7,vars:3,consts:[[1,"bv2-nav-section","bv2-nav-section-savedsearches"],[3,"header","content","expanded"],["zippyHeader",""],["zippyContent",""],["class","saved-search-list",4,"ngIf"],[1,"saved-search-list"],["class","bv2-nav-item",3,"selected","title",4,"ngFor","ngForOf"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"href","click"],[1,"bv2-nav-item-text"],["mat-icon-button",
"","disableRipple","true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["menu",""],["matMenuContent",""],["mat-menu-item","",1,"bv2-user-saved-searches-edit-menuitem",3,"click"],["mat-menu-item","","class","bv2-user-saved-searches-edit-menuitem",3,"click",4,"ngIf"]],template:function(a){a&1&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),M(3,twa,2,0,"ng-template",null,2,Mf),M(5,zwa,1,1,"ng-template",null,3,Mf),G()());if(a&
2){var b=Fe(4),c=Fe(6);B(2);E("header",b)("content",c)("expanded",!0)}},dependencies:[Kx,Gx,hF,FB,mF,kF,pF,jF,XM],encapsulation:2});
var FMb=/^\s*hotlistid:(\d+)\s*$/i,GN=function(a,b){this.$log=a;this.contextSensitiveRegistry=b;this.currentSearch="";this.searchTextChange$=new T.Subject;this.searchHandlerStack=[]},GMb=function(a,b){return a.searchTextChange$.subscribe(b)};GN.prototype.clear=function(){HN(this,"")};
var HN=function(a,b){a.currentSearch=b;(b=a.currentSearch.match(/(?:\s|^)componentid:(\d+)\s*/i))?a.contextSensitiveRegistry.componentIdOverride$.next(Oi(b[1])):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentSearch.match(FMb))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Oi(b[1])):a.contextSensitiveRegistry.hotlistIdOverride$.next(null);a.searchTextChange$.next(a.currentSearch)},HMb=function(a){return"assignee:"+a+" status:open"};GN.prototype.getStarred=function(){return"star:true"};
GN.prototype.isStarred=function(){return this.currentSearch===this.getStarred()};GN.prototype.getVoted=function(){return"vote:true"};
var Fwa=function(a){return a.currentSearch===a.getVoted()},IMb=function(a){return"verifier:"+a+" status:open | status:fixed"},JMb=function(a){return(a=a.currentSearch.match(FMb))?Oi(a[1]):0},KMb=function(a){return(a=a.currentSearch.match(/^\s*savedsearchid:(\d+)\s*$/i))?Oi(a[1]):0},LMb=function(a,b){a.searchHandlerStack.push(b);return function(){za(a.searchHandlerStack,b)}};GN.\u0275fac=function(a){return new (a||GN)(t(AK),t(lM))};GN.\u0275prov=hc({token:GN,factory:GN.\u0275fac,providedIn:"root"});
var MMb=EM.setStringAt("edited-ids"),NMb=EM.getStringAt("edited-ids"),OMb=EM.setStringAt("viewed-ids"),PMb=EM.getStringAt("viewed-ids"),IN=function(a){var b=this;this.appEvents=a;this.stop$=new T.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){Awa(b.viewed,c);OMb(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){Awa(b.edited,c);MMb(Array.from(b.edited.keys()).join(","))}};IN.\u0275fac=function(a){return new (a||IN)(t(FK))};
IN.\u0275prov=hc({token:IN,factory:IN.\u0275fac,providedIn:"root"});
var JN=function(a,b,c,d,e,f,h,k,q){this.cdr=a;this.activeSession=b;this.butterBar=c;this.currentSearch=d;this.paths=e;this.userPreferencesManager=f;this.sidebar=h;this.location=k;this.issueLru=q;this.enabledVotedNav=sH(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();this.votedPath=this.paths.listIssues({q:this.currentSearch.getVoted()});this.recentlyViewedPath=QMb(this)?"recent":void 0;this.destroyed$=new Vw;this.hasPreferredHomepage$=this.userPreferencesManager.preferences$.pipe(R(function(u){u=
(u||pH).homepagePreferences;return!(!u||!u.resourceType)}),Sf());this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.assignedPath=e.listIssues({q:HMb(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:IMb(this.userEmail)});this.reportedPath=e.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=e.listComponents();this.createHotlistPath=
e.createHotlist();this.createBookmarkGroupPath=e.createBookmarkGroup();this.sidebarData=this.sidebar.sidebarData};JN.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(fg(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};JN.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Dwa=function(a){yK(a.butterBar,"Updating homepage...",0);a.userPreferencesManager.clearHomepagePreferences().pipe(fg(a.destroyed$)).subscribe(function(){yK(a.butterBar,"Homepage updated")})};JN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var QMb=function(a){var b=sH(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};JN.\u0275fac=function(a){return new (a||JN)(C(mI,2),C(qH),C(xK),C(GN),C(LK),C(PI),C(TM),C(hy),C(IN))};
JN.\u0275cmp=w({type:JN,selectors:[["b-sidebar"]],features:[Je([mI])],decls:46,vars:28,consts:[[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","canned-searches-assign",1,"bv2-nav-item"],[3,"href","click"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],[4,"ngIf"],["menu",""],["matMenuContent",""],["svgIcon","star-filled",1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon",
"user-attributes",1,"canned-search-icon"],[3,"selected",4,"ngIf"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["mat-icon-button","","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["svgIcon","exposure_plus_1_24px",
1,"canned-search-icon"],["svgIcon","time-24px",1,"canned-search-icon"]],template:function(a,b){a&1&&(F(0,"div",0),H(1,"b-create-issue-button"),G(),F(2,"div",1)(3,"div",2)(4,"ul",3)(5,"li",4)(6,"a",5),J("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),H(7,"mat-icon",6),O(8," Assigned to me "),G(),M(9,Cwa,3,1,"ng-container",7),P(10,"async"),F(11,"mat-menu",null,8),M(13,Ewa,2,0,"ng-template",9),G()(),F(14,"li")(15,"a",5),J("click",function(c){return b.onAnchorClick(b.starredPath,c)}),H(16,
"mat-icon",10),O(17," Starred by me "),G()(),F(18,"li")(19,"a",5),J("click",function(c){return b.onAnchorClick(b.ccdPath,c)}),H(20,"mat-icon",11),O(21," CC'd to me "),G()(),F(22,"li")(23,"a",5),J("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),H(24,"mat-icon",12),O(25," Reported by me "),G()(),M(26,Gwa,4,3,"li",13),F(27,"li")(28,"a",5),J("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),H(29,"mat-icon",14),O(30," To be verified "),G()(),M(31,Hwa,4,3,"li",13),G(),H(32,"sidebar-bookmark-groups",
15)(33,"sidebar-saved-searches",16)(34,"sidebar-hotlists",17)(35,"sidebar-archived",18)(36,"hr"),F(37,"div",19)(38,"a",20),O(39," Create hotlist "),G()(),F(40,"div",19)(41,"a",20),O(42," Create bookmark group "),G()(),F(43,"div",19)(44,"a",20),O(45," Browse components "),G()()()());a&2&&(B(5),pe("selected",b.currentSearch.currentSearch===HMb(b.userEmail)),B(1),E("href",b.assignedPath,Qd),B(3),E("ngIf",Q(10,26,b.hasPreferredHomepage$)),B(5),pe("selected",b.currentSearch.isStarred()),B(1),E("href",
b.starredPath,Qd),B(3),pe("selected",b.currentSearch.currentSearch==="cc:"+b.userEmail),B(1),E("href",b.ccdPath,Qd),B(3),pe("selected",b.currentSearch.currentSearch==="reporter:"+b.userEmail),B(1),E("href",b.reportedPath,Qd),B(3),E("ngIf",b.enabledVotedNav),B(1),pe("selected",b.currentSearch.currentSearch===IMb(b.userEmail)),B(1),E("href",b.verifiedPath,Qd),B(3),E("ngIf",b.recentlyViewedPath),B(1),E("bookmarkGroups",b.sidebarData.bookmarkGroups),B(1),E("searches",b.sidebarData.userSearches),B(1),
E("hotlists",b.sidebarData.hotlists),B(1),E("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),E("href",b.createHotlistPath,Qd),B(3),E("href",b.createBookmarkGroupPath,Qd),B(3),E("href",b.componentsPath,Qd))},dependencies:[HM,Gx,hF,FB,mF,kF,pF,jF,YM,AN,BN,FN,Tx],encapsulation:2});
var KN=function(){};KN.\u0275fac=function(a){return new (a||KN)};KN.\u0275mod=xc({type:KN});KN.\u0275inj=ic({imports:[ay]});
var LN=function(){};LN.\u0275fac=function(a){return new (a||LN)};LN.\u0275mod=xc({type:LN});LN.\u0275inj=ic({imports:[ay]});
var MN=function(){};MN.\u0275fac=function(a){return new (a||MN)};MN.\u0275mod=xc({type:MN});MN.\u0275inj=ic({imports:[ay,WH,wG,AF,gH]});
var NN=function(){};NN.\u0275fac=function(a){return new (a||NN)};NN.\u0275mod=xc({type:NN});NN.\u0275inj=ic({imports:[kB,ay,kB]});
var ON=function(){};ON.\u0275fac=function(a){return new (a||ON)};ON.\u0275mod=xc({type:ON});ON.\u0275inj=ic({imports:[ay,NN]});
var PN=function(){this.onAction=new Vw;this.disabled=!1};PN.prototype.handleClick=function(){this.onAction.emit()};PN.\u0275fac=function(a){return new (a||PN)};
PN.\u0275cmp=w({type:PN,selectors:[["onedev-hovercard-action"]],inputs:{disabled:"disabled"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:2,vars:1,consts:[["mat-button","","color","primary",1,"onedev-hovercard-action",3,"disabled","click"]],template:function(a,b){a&1&&(Ae(),F(0,"button",0),J("click",function(){return b.handleClick()}),Be(1),G());a&2&&E("disabled",b.disabled)},dependencies:[FB],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;padding:0 20px;text-align:left;width:100%}"]});
var QN=function(){};QN.\u0275fac=function(a){return new (a||QN)};QN.\u0275mod=xc({type:QN});QN.\u0275inj=ic({imports:[eA,eN,ay,wG,jB]});
var RN=function(){};RN.\u0275fac=function(a){return new (a||RN)};RN.\u0275mod=xc({type:RN});RN.\u0275inj=ic({imports:[ay]});
var SN=function(a,b,c,d,e,f,h,k){uN.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new T.Subject;this.attachMouseEventListeners(c.nativeElement)};U(SN,uN);g=SN.prototype;g.ngOnInit=function(){uN.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Tga(function(){return b.activity.pipe(Qf(a))}));c.pipe(fg(this.destroyed)).subscribe(function(d){d?b.openDialog():vN(b)});this.openings.pipe(uf(function(d){return d&&0<b.beforeOpened.observers.length}),Gha(function(){return c.pipe(uf(function(d){return!d}))}),fg(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"mouseenter").pipe(fg(b.destroyed)).subscribe(function(){b.openingDialog()});(0,T.fromEvent)(a,"click").pipe(fg(b.destroyed)).subscribe(function(){b.openingDialog();b.openDialog()});(0,T.fromEvent)(a,"mouseleave").pipe(fg(b.destroyed)).subscribe(function(){b.closingDialog()});(0,T.fromEvent)(a,"mousemove").pipe(fg(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(a,"keydown").pipe(fg(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;(null==(d=b.overlayRef)?0:d.hasAttached())&&c.stopPropagation();vN(b)}})})};g.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};g.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};
g.createOverlayConfig=function(a){return new OA(Object.assign({},yMb,{positionStrategy:uN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),panelClass:this.panelClassInternal}))};SN.\u0275fac=function(a){return new (a||SN)(C(mg),C(gB),C(sd),C(Bf),C(mi),C(jA),C(fA),C(Uv))};
SN.\u0275dir=w({type:SN,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[ee]});
[].concat(v([SN,wN,yN,xN]),[tN]);var TN=function(){};TN.\u0275fac=function(a){return new (a||TN)};TN.\u0275mod=xc({type:TN});TN.\u0275inj=ic({imports:[eA,ay,jB,fB]});
var UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275mod=xc({type:UN});UN.\u0275inj=ic({imports:[ay,KN,LN,QN,ON,MN,RN,gH,AF,Ky,TN,oN]});
var RMb=[GM],VN=function(){};[].concat(v(RMb));[].concat(v(RMb));VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275mod=xc({type:VN});VN.\u0275inj=ic({imports:[ay,wG,qF,AF,gH]});
var WN=function(){};WN.\u0275fac=function(a){return new (a||WN)};WN.\u0275mod=xc({type:WN});WN.\u0275inj=ic({imports:[ay,VN]});
var XN=function(){};XN.\u0275fac=function(a){return new (a||XN)};XN.\u0275mod=xc({type:XN});XN.\u0275inj=ic({imports:[WN,ay,UN,AF,wG,qF]});
var YN=function(a,b){this.$window=a;this.activeSession=b};YN.prototype.setTitle=function(a){this.$window.document.title=a?a+" - "+this.activeSession.getAppName():this.activeSession.getAppName()};YN.\u0275fac=function(a){return new (a||YN)(t(mM),t(qH))};YN.\u0275prov=hc({token:YN,factory:YN.\u0275fac,providedIn:"root"});
var TMb=function(a){Z.call(this,a,-1,SMb)};U(TMb,Z);var SMb=[1,2];TMb.prototype.toObject=function(){var a=null!=this?{noAccessEmailsList:n(lb(this,1)),unknownEmailsList:n(lb(this,2))}:void 0;return a};TMb.messageId="b.CheckPermissionResponse";
var ZN=function(){},$N=function(a){this.apiResourceFactory=a;this.accessPolicyResources=eHb(JJ(LJ(this.apiResourceFactory,"action/access_policies/:resourceName"))).build();this.checkAccessResource=JJ(LJ(this.apiResourceFactory,"action/check_permission/:emails/:relation/:resourceName")).build();this.accessLimitResource=MJ(this.apiResourceFactory,"action/access_limits/:resourceName")};U($N,ZN);g=$N.prototype;g.get=function(a,b){a=ko(a,b);return this.accessPolicyResources.get({resourceName:a})};
g.update=function(a,b,c){a=ko(a,b);return this.accessPolicyResources.save({resourceName:a},c)};g.checkPermission=function(a,b,c,d){c=ko(c,d);return this.checkAccessResource.get({emails:a,relation:b,resourceName:c})};g.setAccessLimit=function(a,b,c){a=ko(a,b);return this.accessLimitResource.save({resourceName:a},c)};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).then(function(b){return"ALLOW"===b.implicitAccess})};$N.\u0275fac=function(a){return new (a||$N)(t(KJ))};
$N.\u0275prov=hc({token:$N,factory:$N.\u0275fac,providedIn:"root"});var aO=function(a){this.executor=a};g=aO.prototype;g.get=function(a,b){a=Gm(ko(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:Nn}).pipe(R(Mn))};g.update=function(a,b,c){a=Gm(ko(a,b));c=Wta(c);return this.executor.post({url:"action/access_policies/"+a,body:c,responseConstructor:Nn}).pipe(R(Mn))};
g.checkPermission=function(a,b,c,d){a=Gm(a.join(","));b=Gm(b);c=Gm(ko(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:TMb}).pipe(R(Qta))};g.setAccessLimit=function(a,b,c){a=Gm(ko(a,b));c=Tpa(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:Sk}).pipe(R(Rpa))};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(R(function(b){return"ALLOW"===b.implicitAccess}))};
aO.\u0275fac=function(a){return new (a||aO)(t(hI))};aO.\u0275prov=hc({token:aO,factory:aO.\u0275fac,providedIn:"root"});var bO=function(a){this.observableApi=a};U(bO,ZN);g=bO.prototype;g.get=function(a,b){return(0,T.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.update(a,b,c))};g.checkPermission=function(a,b,c,d){return(0,T.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};
g.setAccessLimit=function(a,b,c){return(0,T.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,T.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};bO.\u0275fac=function(a){return new (a||bO)(t(aO))};bO.\u0275prov=hc({token:bO,factory:bO.\u0275fac,providedIn:"root"});
var cO=function(a,b,c,d,e,f,h){var k=this;this.issueFetchResponseFridge=a;this.issueFridge=b;this.teamFridge=c;this.componentFridge=d;this.eventsForIssue=e;this.paramsService=f;this.activatedRoute=h;this.id$=kM(this.paramsService,"issueId").pipe(Sf());this.urlComment$=this.activatedRoute.fragment.pipe(R(yxa),bg({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(eg(function(q){return sL(k.issueFetchResponseFridge,q)}),bg({refCount:!0,bufferSize:1}));this.issueJs$.pipe(R(function(q){return null==
q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(eg(function(q){return k.eventsForIssue.watch(q)}),R(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.starred$=this.issueJs$.pipe(R(Kwa));this.lastViewedTimeMicros$=this.issueJs$.pipe(R(Lwa));this.lastViewedTimeMicros$.pipe(R(function(q){return!q}));this.title$=this.issueJs$.pipe(R(Mwa));this.issueJs$.pipe(R(dxa));(0,T.merge)(this.issueJs$.pipe(R(function(q){return null==q?void 0:q.firstEvent}),uf(el),R(function(q){return[q]})),
this.eventsJs$).pipe(Yf(function(q,u){u=u.flatMap(function(D){return D.attachments});u=r(u);for(var y=u.next();!y.done;y=u.next())y=y.value,null!=y.attachmentId&&(q[y.attachmentId]=y);return q},{}));this.issueJs$.pipe(R(exa));this.issueJs$.pipe(R(fxa));this.status$=this.issueJs$.pipe(R(Nwa));this.priority$=this.issueJs$.pipe(R(Owa));this.assignee$=this.issueJs$.pipe(R(Pwa));this.issueJs$.pipe(R(Qwa));this.teamId$=this.issueJs$.pipe(R(Rwa));this.team$=this.teamId$.pipe(eg(function(q){return k.teamFridge.watch(q)}),
bg({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(R(Twa));this.issueJs$.pipe(R(function(q){var u,y;return null!=(y=null==(u=lo(q))?void 0:u.severity)?y:void 0}));this.type$=this.issueJs$.pipe(R(Uwa));this.issueJs$.pipe(R(Vwa));this.issueJs$.pipe(R(Wwa));this.issueJs$.pipe(R(Xwa));this.postmortems$=this.issueJs$.pipe(R(Ywa));this.postmortems$.pipe(R(function(q){return 0<q.length}));this.issueJs$.pipe(R(Zwa));this.effort$=this.issueJs$.pipe(R($wa));this.isDeleted$=this.issueJs$.pipe(R(hxa));
this.accessLevel$=this.issueJs$.pipe(R(jxa));this.customFieldDefs$=this.issueJs$.pipe(R(axa));this.customFieldValues$=this.issueJs$.pipe(R(bxa));this.modifiedTime$=this.issueJs$.pipe(R(kxa));this.retention$=this.issueJs$.pipe(R(mxa));this.retention=function(){return Kk(k.retention$)};this.retentionState$=this.issueJs$.pipe(R(pxa));this.retentionState=function(){return Kk(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(R(nxa));this.canonicalIssue$=this.canonicalIssueId$.pipe(eg(function(q){return k.issueFridge.watch(q)}));
this.sloStatus$=this.issueJs$.pipe(R(qxa));this.sloId$=this.issueJs$.pipe(R(rxa));this.createdTimeMicros$=this.issueJs$.pipe(R(sxa));this.visibleFields$=this.issueJs$.pipe(R(cxa));this.visibleCustomFieldIds$=this.visibleFields$.pipe(R(xxa));this.customFieldEntries$=(0,T.combineLatest)([this.customFieldDefs$,this.customFieldValues$]).pipe(R(function(q){var u=r(q);q=u.next().value;u=u.next().value;var y=new Map(u.map(function(D){return[D.customFieldId,D]}));return q.map(function(D){var I=D.customFieldId,
N={customFieldId:I},L;I=null!=(L=y.get(I))?L:N;return{def:D,value:I}})}));(0,T.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(R(function(q){q=r(q);var u=q.next().value,y=q.next().value;return u.filter(function(D){return y.has(String(D.def.customFieldId))})}));(0,T.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(R(function(q){q=r(q);var u=q.next().value,y=q.next().value;return u.filter(function(D){return!y.has(String(D.def.customFieldId))})}));
this.componentId$=this.issueJs$.pipe(R(Swa));this.component$=this.componentId$.pipe(eg(function(q){return k.componentFridge.watch(q)}));this.teamSuggestions$=this.component$.pipe(R(txa));this.effortSpec$=this.component$.pipe(R(uxa));this.isEffortEnabled$=this.component$.pipe(R(vxa));this.componentPathInfo$=this.component$.pipe(R(wxa));this.thinking$=this.issueFetchResponseFridge.thinking$};cO.\u0275fac=function(a){return new (a||cO)(t(rL),t(oL),t(eM),t(HJ),t(DL),t(jM),t(gk))};
cO.\u0275prov=hc({token:cO,factory:cO.\u0275fac,providedIn:"root"});
var UMb={id:"[loading]",admin:!1,writer:!0,appender:!0,reader:!0},eO=function(a,b,c,d,e,f){var h=this;this.issueDetailsBrain=a;this.permissionsFridge=b;this.activeSession=c;this.accessPolicyApi=d;this.errorHandler=e;this.userAccess=f;this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+Un(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(eg(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,T.of)(void 0)}),R(function(k){return null!=k?k:UMb}),dg(UMb),bg({bufferSize:1,refCount:!1}));this.issuePermissions=function(){return Kk(h.issuePermissions$)};this.hasAclToEdit$=this.issuePermissions$.pipe(R(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!Kk(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(R(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!Kk(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(R(function(k){return!!k.admin}));
this.hasAclToAdmin=function(){return!!Kk(h.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(R(function(k){return k.some(function(q){return dO(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Kk(h.isCurrentUserCCd$)};this.isAllowedToEditCC$=this.hasAclToEdit$;this.addMeToCcDisabledReason$=(0,T.combineLatest)([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k?q?"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(Sf(),eg(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,T.of)(!1)}),Pf(function(k){if(403===k.status)return(0,T.of)(!0);h.errorHandler.errorHandler(null,k);return(0,T.of)(!1)}),bg({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!Kk(h.isImplicitAccessEnabled$)};this.showImplicitAccessIndicator$=(0,T.combineLatest)([this.hasAclToEdit$,
this.isImplicitAccessEnabled$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.showImplicitAccessIndicator=function(){return!!Kk(h.showImplicitAccessIndicator$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,T.combineLatest)([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(Sf(),eg(function(k){return k?
mK(h.userAccess,"admin","components/"+k):(0,T.of)(!1)}),Pf(function(k){h.errorHandler.errorHandler(null,k);return(0,T.of)(!1)}),bg({bufferSize:1,refCount:!1}));this.userIsComponentAdmin=function(){return!!Kk(h.userIsComponentAdmin$)};this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return Kk(h.accessLevel$)};this.isWithinExternalComponent$=this.accessLevel$.pipe(R(function(k){return!(!k||"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(R(function(k){return k?
2:1}));this.audience=function(){return Kk(h.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return Kk(h.canChangeCommentRetention$)}},dO=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},VMb=function(a,b){return Cn(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||Ql(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},WMb=function(a,b){return Cn(b)&&"ACTIVE"===b.commentDeletionStatus?
Tl(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
eO.prototype.canEditComment$=function(a){var b=this;return(0,T.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(R(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return"ENABLED"===(null==c?void 0:c.commentEditState)&&"DELETED"!==a.commentDeletionStatus&&"PURGED"!==a.commentDeletionStatus&&a.commentNumber?1===a.commentNumber&&e?!0:d&&Tl(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
eO.\u0275fac=function(a){return new (a||eO)(t(cO),t(WL),t(qH),t(ZN),t(BK),t(lK))};eO.\u0275prov=hc({token:eO,factory:eO.\u0275fac,providedIn:"root"});
var fO=function(a,b,c,d){qI.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(Sf(Hi),eg(function(f){return f.issueId?XMb(e,f.issueId):(0,T.of)()}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=bua(this.init)};U(fO,qI);fO.\u0275dir=qI.\u0275dir;
var XMb=function(a,b){return(0,T.combineLatest)([sL(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(dg([]),R(function(c){c=r(c);var d=c.next().value;c=c.next().value;var e;(d=null==(e=null==d?void 0:d.issue)?void 0:e.snapshot[0].title)?(e=d+" ["+b+"]",c&&(c=Bua(c))&&(e=e+" - "+c),a.pageTitle.setTitle(e)):a.pageTitle.setTitle("View issue")}))};fO.\u0275fac=function(a){return new (a||fO)(t(jM),t(rL),t(YN),t(eO))};fO.\u0275prov=hc({token:fO,factory:fO.\u0275fac,providedIn:"root"});
var gO=function(a){Z.call(this,a,-1,YMb)};U(gO,Z);gO.prototype.getIssueCommentsList=function(){return tb(this,bK,1)};var YMb=[1];gO.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Eb(this.getIssueCommentsList(),mIb)}:void 0;return a};gO.messageId="b.ListIssueCommentHistoryResponse";
var ZMb=function(a){Z.call(this,a)};U(ZMb,Z);g=ZMb.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return hj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getComment=function(){return V(this,3)};g.setComment=function(a){return l(this,3,a)};g.getFormattingMode=function(){return Y(this,4,0)};g.setFormattingMode=function(a){return l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),comment:n(p(this,3)),formattingMode:n(p(this,4))}:void 0;return a};
var hO=function(){};hO.\u0275fac=function(a){return new (a||hO)};hO.\u0275prov=hc({token:hO,factory:hO.\u0275fac,providedIn:"root"});var iO=function(a){this.$http=a};U(iO,hO);g=iO.prototype;g.get=function(a,b,c){return this.$http.get("action/issues/"+a+"/comment/"+b,{headers:c?{"X-Restricted-Content-Limit":String(Hl(c))}:{}}).then(function(d){return d.data})};
g.create=function(a,b,c,d){var e="action/issues/"+a+"/comment?enable_jspb=true";a=(new RJb).setIssueId(a).setComment(b).setFormattingMode(c).setContentJudgement(d);return this.$http.post(e,a.toJSON()).then(function(){})};g.update=function(a,b,c,d){var e="action/issues/"+a+"/updateComment?enable_jspb=true";a=(new ZMb).setIssueId(a).setCommentNumber(b).setComment(c).setFormattingMode(d);return this.$http.post(e,a.toJSON()).then(function(){})};
g.delete=function(a,b,c,d){var e={};c={params:{reason:c},headers:(e["If-Match"]=d,e)};return this.$http.delete("action/issues/"+a+"/comment/"+b,c).then(function(){})};g.undelete=function(a,b){return this.$http.post("action/issues/"+a+"/comment/"+b+"/undelete",{},{params:{comment_version:void 0}}).then(function(c){return c.data})};g.listHistory=function(a,b){return this.$http.get("action/issues/"+a+"/comment/"+b+"/history").then(function(c){return c.data})};
iO.\u0275fac=function(a){return new (a||iO)(t(uJ))};iO.\u0275prov=hc({token:iO,factory:iO.\u0275fac,providedIn:"root"});var jO=function(a){this.executor=a};U(jO,hO);g=jO.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(Hl(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:bK}).then(usa)};
g.create=function(a,b,c,d){var e=new RJb;e.setIssueId(a);e.setComment(b);e.setFormattingMode(c);e.setContentJudgement(d);return this.executor.post({url:"action/issues/"+a+"/comment",body:e,responseConstructor:null})};g.update=function(a,b,c,d){var e=new ZMb;e.setIssueId(a);e.setCommentNumber(b);e.setComment(c);e.setFormattingMode(d);return this.executor.post({url:"action/issues/"+a+"/updateComment",body:e,responseConstructor:null})};
g.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};g.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:{}},responseConstructor:bK}).then(usa)};g.listHistory=function(a,b){return this.executor.get({url:"action/issues/"+a+"/comment/"+b+"/history",responseConstructor:gO}).then(vsa)};
jO.\u0275fac=function(a){return new (a||jO)(t(iI))};jO.\u0275prov=hc({token:jO,factory:jO.\u0275fac,providedIn:"root"});
var kO=function(a){var b=this;this.parentElement=a;this.lastTimestamp=this.state=this.y=this.x=0;this.animate=function(c){3!==b.state&&requestAnimationFrame(b.animate);if(!(30>c-b.lastTimestamp)){b.lastTimestamp=c;if(2===b.state){if($Mb(b),-50>b.x||b.x>document.documentElement.clientWidth+50||-50>b.y||b.y>document.documentElement.clientHeight+50)b.element.remove(),b.state=3}else{b.moveFlipCounter--;0>=b.moveFlipCounter&&(0===b.state?b.state=1:1===b.state&&(b.state=0),b.moveFlipCounter=50+100*Math.random(),
aNb(b));if(1===b.state)return;b.turnCounter--;0>=b.turnCounter&&(b.direction=360*Math.random(),b.turnCounter=40*Math.random());0>b.x&&90<b.direction&&270>b.direction&&(b.direction=(180-b.direction)%360);b.x>document.documentElement.clientWidth&&(90>b.direction||270<b.direction)&&(b.direction=(180-b.direction)%360);0>b.y&&180<b.direction&&(b.direction=360-b.direction);b.y>document.documentElement.clientHeight&&180>b.direction&&(b.direction=360-b.direction);$Mb(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();aNb(this);bNb(this)};kO.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
kO.prototype.stop=function(){this.state=2;aNb(this);this.direction=180*Math.atan2(this.y-document.documentElement.clientHeight/2,this.x-document.documentElement.clientWidth/2)/Math.PI+90*(Math.random()-.5);this.speed=15+10*Math.random()};
var bNb=function(a){var b=Math.floor(4*Math.random());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)}};
kO.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 aNb=function(a){a.element.src=1===a.state?"https://www.gstatic.com/buganizer/img/v0/logo.svg":"https://www.gstatic.com/buganizer/img/v0/bug-move.svg"},$Mb=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};kO.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};
var cNb=function(a){this.element=a;this.bugs=[]};cNb.prototype.start=function(){for(var a=this,b=0;3>b;b++)dNb(this);this.intervalSubscription=(0,T.interval)(1E4).subscribe(function(){dNb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};cNb.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=r(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};
var dNb=function(a){var b=new kO(a.element);b.start();a.bugs.push(b)};
var lO=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new T.ReplaySubject(1);this.active$=new T.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new cNb(d.nativeElement);this.active$.pipe(fg(this.destroyed$),Sf()).subscribe(function(f){f?eNb(e):fNb(e)})};lO.prototype.ngOnInit=function(){"visible"===document.visibilityState&&gNb(this)};lO.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var gNb=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)},mO=function(a){var b=Date.now();b<a.lastTimeoutResetTimestamp+1E4||(a.lastTimeoutResetTimestamp=b,a.active$.next(!0),clearTimeout(a.timeoutId),gNb(a))},fNb=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){var b=Object.assign({},a.userPreferencesManager.bugScreensaverSubject$.value,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:b}).subscribe()});
a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},eNb=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};lO.\u0275fac=function(a){return new (a||lO)(C(mg),C(PI),C(uK),C(sd))};
lO.\u0275cmp=w({type:lO,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&J("click",function(){return mO(b)},!1,vd)("keydown",function(){return mO(b)},!1,vd)("mousemove",function(){return mO(b)},!1,vd)("wheel",function(){return mO(b)},!1,vd)("touchstart",function(){return mO(b)},!1,vd)("focus",function(){return mO(b)},!1,vd)("visibilitychange",function(){mO(b);switch(document.visibilityState){case "hidden":clearTimeout(b.timeoutId),b.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}},
!1,uda)},decls:0,vars:0,template:function(){},encapsulation:2});
var nO=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(R(function(d){return(d.enableBugScreensaver||!1)&&c}))};nO.\u0275fac=function(a){return new (a||nO)(C(PI),C(qH))};nO.\u0275cmp=w({type:nO,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(M(0,zxa,1,0,"bug-screensaver",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.isEnabled$))},dependencies:[Gx,lO,Tx],encapsulation:2});
var hNb=["button"],oO=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new Vw};oO.prototype.onClick=function(a){this.onAction.emit(a)};oO.prototype.focus=function(){this.nativeButton.focus()};oO.\u0275fac=function(a){return new (a||oO)};
oO.\u0275cmp=w({type:oO,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&Ef(hNb,5);if(a&2){var c;Df(c=Gf())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:8,vars:5,consts:[["buttonContent",""],[3,"ngSwitch"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip",
"click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-flat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-icon-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter",
"keydown.space",4,"ngSwitchCase"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchDefault"],["type","button","mat-stroked-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["button",""],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],
["type","button","mat-flat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["type","button","mat-icon-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(Ae(),M(0,Axa,1,0,"ng-template",null,0,Mf),ve(2,1),M(3,Cxa,3,7,"button",2),M(4,Exa,3,7,"button",3),M(5,Gxa,3,7,"button",4),M(6,Ixa,3,7,"button",5),M(7,Kxa,3,7,"button",6),we());a&2&&(B(2),E("ngSwitch",
b.format),B(1),E("ngSwitchCase","hairline"),B(1),E("ngSwitchCase","flat"),B(1),E("ngSwitchCase","fill"),B(1),E("ngSwitchCase","icon"))},dependencies:[FB,wF,Jx,Qx,Mx,Nx,Ox],encapsulation:2,changeDetection:0});
var pO=function(){};pO.\u0275fac=function(a){return new (a||pO)};pO.\u0275mod=xc({type:pO});pO.\u0275inj=ic({imports:[wG,gH,ay]});
var qO=function(){};qO.\u0275fac=function(a){return new (a||qO)};qO.\u0275mod=xc({type:qO});qO.\u0275inj=ic({imports:[ay,AF]});
var rO=function(){};rO.\u0275fac=function(a){return new (a||rO)};rO.\u0275mod=xc({type:rO});rO.\u0275inj=ic({imports:[ay,sK,pO,qO]});
var sO=function(a){this.activeSession=a;var b;a=(null==(b=m(this.activeSession.session,nH,9))?void 0:m(b,mH,2))||new mH;this.announcement={messageId:V(a,2),message:a.getMessage(),dismissible:W(a,3),tags:lb(a,4)}};sO.\u0275fac=function(a){return new (a||sO)(t(qH))};sO.\u0275prov=hc({token:sO,factory:sO.\u0275fac,providedIn:"root"});
var iNb={type:"g3n-connect-response",messageType:"query-state",mode:"none",version:""};
var jNb=function(){this.chromeApi=self.chrome};jNb.prototype.getState=function(){return this.post({type:"g3n-connect-request",messageType:"query-state"}).catch(function(){return iNb})};jNb.prototype.setMode=function(a){return"none"===a?Promise.reject():this.post({type:"g3n-connect-request",messageType:"enable-g3n-mode"}).then(function(){})};jNb.prototype.post=function(a){var b=this;return kNb(this,a,"mdkmkbpoljeogkhbjlehikpbpdmfaopg").catch(function(){return kNb(b,a,"dcdkpimnclfoiknojhlfjhinjmiclmeo")})};
var kNb=function(a,b,c){return new Promise(function(d,e){a.chromeApi.runtime.sendMessage(c,b,function(f){if("g3n-connect-response"===(null==f?void 0:f.type))d(f);else{var h;e(Error((null==(h=chrome.runtime.lastError)?void 0:h.message)||"Unrecognized response message"))}})})},lNb=new jNb;
var tO=function(a,b,c,d){qI.call(this);var e=this;this.activeSession=a;this.userPreferencesManager=b;this.announcements=c;this.analytics=d;this.shownAnalyticsTracked=!1;this.g3nInstalled$=new T.ReplaySubject(1);this.isEnabled$=(0,T.combineLatest)([this.g3nInstalled$,this.userPreferencesManager.g3nSubject$]).pipe(R(function(f){var h=r(f);f=h.next().value;h=h.next().value;return!f&&e.isEnabled(h)}));lNb.getState().then(function(f){e.g3nInstalled$.next("g3n"===f.mode)})};U(tO,qI);tO.\u0275dir=qI.\u0275dir;
tO.prototype.isEnabled=function(a){if(this.activeSession.isExternalSession()||!sH(this.activeSession,"enableG3nAnnouncement")||this.announcements.announcement.messageId||a.announcementDismissedMillis&&2592E6>Date.now()-a.announcementDismissedMillis)return!1;this.shownAnalyticsTracked||(this.shownAnalyticsTracked=!0,io(this.analytics,mo.G3N,"shown","announcement"));return!0};
tO.prototype.dismiss=function(){var a=this,b=Object.assign({},this.userPreferencesManager.g3nSubject$.value,{announcementDismissedMillis:Date.now()});this.userPreferencesManager.save({g3nPreferences:b}).pipe(fg(this.destroyed$)).subscribe(function(){io(a.analytics,mo.G3N,"dismiss","announcement")})};tO.\u0275fac=function(a){return new (a||tO)(C(qH),C(PI),C(sO),C(IM))};
tO.\u0275cmp=w({type:tO,selectors:[["g3n-announcement"]],features:[ee],decls:2,vars:3,consts:[["messageType","info","format","app",4,"ngIf"],["messageType","info","format","app"],["href","http://go/get-g3n","target","_blank",3,"click"],["mat-button","","format","flat",3,"click"]],template:function(a,b){a&1&&(M(0,Lxa,9,0,"b-callout",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.isEnabled$))},dependencies:[Gx,FB,bI,cI,Tx],encapsulation:2});
var uO=function(){};uO.\u0275fac=function(a){return new (a||uO)};uO.\u0275mod=xc({type:uO});uO.\u0275inj=ic({imports:[ay,wG,sK,qO]});
var vO=function(){};vO.\u0275fac=function(a){return new (a||vO)};vO.\u0275cmp=w({type:vO,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[zI],encapsulation:2});
var wO=function(){};wO.\u0275fac=function(a){return new (a||wO)};wO.\u0275cmp=w({type:wO,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"b-ng2-router-outlet")},dependencies:[vO],encapsulation:2});
var xO=function(){};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275mod=xc({type:xO});xO.\u0275inj=ic({imports:[ay,KI]});
var yO=function(){};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275prov=hc({token:yO,factory:yO.\u0275fac,providedIn:"root"});var zO=function(a){this.httpClient=a};U(zO,yO);zO.prototype.handleAck=function(){return this.httpClient.post("action/terms_ack",{})};zO.\u0275fac=function(a){return new (a||zO)(t(XE))};zO.\u0275prov=hc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var AO=function(a){this.executor=a};U(AO,yO);
AO.prototype.handleAck=function(){return this.executor.post({url:"action/terms_ack",body:null,responseConstructor:null})};AO.\u0275fac=function(a){return new (a||AO)(t(hI))};AO.\u0275prov=hc({token:AO,factory:AO.\u0275fac,providedIn:"root"});
var mNb=new od("mat-checkbox-default-options",{providedIn:"root",factory:Mxa});
var nNb=["input"],oNb=function(a){return{enterDuration:a}},pNb=0,qNb=Mxa(),rNb={provide:Ix,useExisting:dc(function(){return BO}),multi:!0},sNb=function(){},tNb=si(pi(qi(ri(function(a){this._elementRef=a})))),CO=function(a,b,c,d,e,f,h){b=tNb.call(this,b)||this;b._changeDetectorRef=c;b._ngZone=d;b._animationMode=f;b._options=h;b.ariaLabel="";b.ariaLabelledby=null;b.labelPosition="after";b.name=null;b.change=new Vw;b.indeterminateChange=new Vw;b._onTouched=function(){};b._currentAnimationClass="";b._currentCheckState=
0;b._controlValueAccessorChangeFn=function(){};b._checked=!1;b._disabled=!1;b._indeterminate=!1;b._options=b._options||qNb;b.color=b.defaultColor=b._options.color||qNb.color;b.tabIndex=parseInt(e)||0;b.id=b._uniqueId=a+ ++pNb;return b};U(CO,tNb);g=CO.prototype;g.ngAfterViewInit=function(){this._syncIndeterminate(this._indeterminate)};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"};
g._transitionCheckState=function(a){var b=this._currentCheckState,c=this._elementRef.nativeElement;if(b!==a&&c&&(0<this._currentAnimationClass.length&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,0<this._currentAnimationClass.length)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};g._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};g.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
g._handleInputClick=function(){var a=this,b,c=null==(b=this._options)?void 0:b.clickAction;this.disabled||"noop"===c?this.disabled||"noop"!==c||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==c&&Promise.resolve().then(function(){a._indeterminate=!1;a.indeterminateChange.emit(a._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())};
g._onInteractionEvent=function(a){a.stopPropagation()};g._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
g._getAnimationClassForCheckStateTransition=function(a,b){if("NoopAnimations"===this._animationMode)return"";switch(a){case 0:if(1===b)return this._animationClasses.uncheckedToChecked;if(3==b)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===b?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===b?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===b?this._animationClasses.indeterminateToChecked:
this._animationClasses.indeterminateToUnchecked}return""};g._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};
oi.Object.defineProperties(CO.prototype,{inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Yg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Yg(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=Yg(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=Yg(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});CO.\u0275fac=function(){wd()};
CO.\u0275dir=w({type:CO,viewQuery:function(a,b){a&1&&(Ef(nNb,5),Ef(yB,5));if(a&2){var c;Df(c=Gf())&&(b._inputElement=c.first);Df(c=Gf())&&(b.ripple=c.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},
features:[ee]});
var BO=function(a,b,c,d,e,f,h){a=CO.call(this,"mat-checkbox-",a,b,d,e,f,h)||this;a._focusMonitor=c;a._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"};return a};
U(BO,CO);BO.\u0275dir=CO.\u0275dir;g=BO.prototype;g._createChangeEvent=function(a){var b=new sNb;b.source=this;b.checked=a;return b};g._getAnimationTargetElement=function(){return this._elementRef.nativeElement};g.ngAfterViewInit=function(){var a=this;CO.prototype.ngAfterViewInit.call(this);this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b||a._onBlur()})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};
g._onInputClick=function(a){a.stopPropagation();CO.prototype._handleInputClick.call(this)};g.focus=function(a,b){a?Xz(this._focusMonitor,this._inputElement,a,b):this._inputElement.nativeElement.focus(b)};BO.\u0275fac=function(a){return new (a||BO)(C(sd),C(zx),C(Wz),C(mg),bd("tabindex"),C(iw,8),C(mNb,8))};
BO.\u0275cmp=w({type:BO,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(a,b){a&2&&(ye("id",b.id),ke("tabindex",null)("aria-label",null)("aria-labelledby",null),pe("mat-checkbox-indeterminate",b.indeterminate)("mat-checkbox-checked",b.checked)("mat-checkbox-disabled",b.disabled)("mat-checkbox-label-before","before"==b.labelPosition)("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},
exportAs:["matCheckbox"],features:[Je([rNb]),ee],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element",
"mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(a,b){a&1&&(Ae(),F(0,"label",0,1)(2,"span",2)(3,"input",3,4),J("change",
function(e){return b._onInteractionEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),F(5,"span",5),H(6,"span",6),G(),H(7,"span",7),F(8,"span",8),Qc(),F(9,"svg",9),H(10,"path",10),G(),Rc(),H(11,"span",11),G()(),F(12,"span",12,13),J("cdkObserveContent",function(){return b._onLabelTextChange()}),F(14,"span",14),O(15,"\u00a0"),G(),Be(16),G()());if(a&2){var c=Fe(1),d=Fe(13);ke("for",b.inputId);B(2);pe("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim());B(1);
E("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex);ke("value",b.value)("name",b.name)("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-checked",b._getAriaChecked())("aria-describedby",b.ariaDescribedby);B(2);E("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Le(19,oNb,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[yB,bA],
styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],
encapsulation:2,changeDetection:0});
var DO=function(a,b){qI.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};U(DO,qI);DO.\u0275dir=qI.\u0275dir;DO.prototype.accept=function(){var a=this;this.tosApi.handleAck().pipe(fg(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};DO.\u0275fac=function(a){return new (a||DO)(C(QB),C(yO))};
DO.\u0275cmp=w({type:DO,selectors:[["b-terms-of-service-dialog"]],features:[ee],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Google IssueTracker Terms of Service"),G(),F(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),J("ngModelChange",function(c){return b.ackChecked=c}),G(),F(5,"span"),O(6," I acknowledge and agree to the "),F(7,"a",3),O(8,"Google Terms of Service"),G(),O(9," and the "),F(10,"a",4),O(11,"Google IssueTracker Conduct Policy"),G(),O(12,". "),G()()(),F(13,"mat-dialog-actions")(14,"button",5),J("click",function(){return b.accept()}),O(15," OK "),G()());a&2&&(B(4),E("ngModel",b.ackChecked),B(10),E("disabled",!b.ackChecked))},dependencies:[py,vy,FB,BO,eC,fC,gC],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});
var EO=function(a,b){qI.call(this);this.activeSession=a;this.matDialogService=b};U(EO,qI);EO.\u0275dir=qI.\u0275dir;EO.prototype.ngOnInit=function(){this.activeSession.mustAcknowledgeTerms&&RB(this.matDialogService.open(DO,{width:"400px",disableClose:!0})).pipe(fg(this.destroyed$))};EO.\u0275fac=function(a){return new (a||EO)(C(qH),C(cC))};EO.\u0275cmp=w({type:EO,selectors:[["b-terms-of-service"]],features:[ee],decls:0,vars:0,template:function(){},encapsulation:2});
var FO=function(){};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275mod=xc({type:FO});FO.\u0275inj=ic({});var GO=function(){};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275mod=xc({type:GO});GO.\u0275inj=ic({imports:[CB,kB,cA,FO,kB,FO]});
var HO=function(){};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275mod=xc({type:HO});HO.\u0275inj=ic({imports:[Ky,ay,wG,GO,hC]});
var IO=function(){};IO.\u0275fac=function(a){return new (a||IO)};IO.\u0275mod=xc({type:IO});IO.\u0275inj=ic({imports:[ay,HO]});
var JO=function(a){this.transport=new JE(852);var b=this.streamzService=new Wsb(this.transport);b.flushInterval=3E3;b.flushTimer.setInterval(3E3);this.pageLoadTime=new uAb(this.streamzService);this.userLatency=new wAb(this.streamzService);new vAb(this.streamzService);this.frontendAccessMode=a.frontendAccessMode;this.environmentType=a.getEnvironmentType()};JO.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType)};
JO.\u0275fac=function(a){return new (a||JO)(t(qH))};JO.\u0275prov=hc({token:JO,factory:JO.\u0275fac,providedIn:"root"});
var KO=function(a){var b=this;this.clearcut=a;this.onMeasurement=function(c){c.getEntries().forEach(b.sendToClearcut)};this.sendToClearcut=function(c){var d=c.name;c=Math.round(c.duration);null!=d&&(isNaN(c)||(b.clearcut.timePageLoad?b.clearcut.timePageLoad(c,d):console.log("stub clearcut:",{name:d,latency:c})))}},uNb=function(a){FM()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new VKb.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
KO.\u0275fac=function(a){return new (a||KO)(t(JO))};KO.\u0275prov=hc({token:KO,factory:KO.\u0275fac,providedIn:"root"});
var LO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new T.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");vNb(b,b.localDarkmode);b.clientStreamzService&&LE(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")}};LO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(KE)};var vNb=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};LO.\u0275fac=function(a){return new (a||LO)(t(Uv))};LO.\u0275prov=hc({token:LO,factory:LO.\u0275fac});
var wNb=Qt(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),xNb=Qt(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),MO=function(a,b){this.dialogRef=a;this.darkmodeService=b;this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(R(function(c){return c?Ch(wNb):Ch(xNb)}))};MO.\u0275fac=function(a){return new (a||MO)(C(QB),C(LO))};
MO.\u0275cmp=w({type:MO,selectors:[["b-feedback-dialog"]],decls:9,vars:4,consts:[["mat-dialog-content",""],[4,"ngIf"],["diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"src","load"],["diameter","60"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,Nxa,2,3,"ng-container",1),P(2,"async"),M(3,Oxa,1,0,
"mat-spinner",2),G(),F(4,"div",3)(5,"button",4),J("click",function(){return b.dialogRef.close(!1)}),O(6," Cancel "),G(),F(7,"button",5),J("click",function(){return b.dialogRef.close(!0)}),O(8," File a new issue "),G()());a&2&&(B(1),E("ngIf",Q(2,2,b.docUrl$)),B(2),E("ngIf",!b.contentLoaded))},dependencies:[Gx,fC,gC,FB,bN,Tx],styles:["iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.loading[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-between}.mat-dialog-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;position:relative;justify-content:center;align-items:center}"],
changeDetection:0});
var po=function(a){Z.call(this,a)};U(po,Z);g=po.prototype;g.getEnableSsEngine=function(){return W(this,2)};g.getEnableAwr=function(){return W(this,3)};g.getEnableHelpSuggestions=function(){return W(this,4)};g.getAlohaAutoGaRollout=function(){return W(this,5)};g.getEnableConfigurator=function(){return W(this,6)};g.getEnableMweb=function(){return W(this,7)};g.toObject=function(){return yNb(this)};
var yNb=function(a){if(null!=a)return{alohaLaunch:W(a,1),enableSsEngine:W(a,2),enableAwr:W(a,3),enableHelpSuggestions:W(a,4),alohaAutoGaRollout:W(a,5),enableConfigurator:W(a,6),enableMweb:W(a,7)}};
var oo=function(a){Z.call(this,a)};U(oo,Z);oo.prototype.toObject=function(){var a=null!=this?{alohaFlags:yNb(m(this,po,1))}:void 0;return a};
var Zxa=["https://sandbox.google.com/tools/feedback"];
var Qxa="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 Rxa=Qt(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);
var Txa;
var zNb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||da,e=d.document,f=a.nonce||Xqb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=Qo("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=1200>=k.length)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,
b);else{d=c+"/load.js?";for(var q in a)b=a[q],null==b||Ga(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=cp(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=Pnb(d);zh(a,f);e.body.appendChild(a)}},ANb=function(a,b,c){try{"submit"===a.flow||"help"===a.flow||a.tinyNoPointer?zNb(a,b,c):Yxa(a.productId,a.serverUri).then(function(d){d=m(d,po,1);if(null==d||!d.getAlohaAutoGaRollout()||sib&&!d.getEnableMweb())zNb(a,b,c);else{var e=c||da,f="DEV"===a.serverEnvironment,h=c||da;h=a.nonce||
Xqb(h);f={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket},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},initializationData:{isLocalServer:f,nonce:h,useNightlyRelease:f,
feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.serverUri,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&&(h=new Map(Object.entries(b)),f.extraData.productSpecificData=h);Wxa(f,d,e)}},
function(d){d&&"DuplicateFormError"!==d.name&&zNb(a,b,c)})}catch(d){zNb(a,b,c)}};gu("userfeedback.api.startFeedback",ANb);
var NO=function(a,b){this.activeSession=a;this.matDialog=b};NO.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?RB(this.matDialog.open(MO,{width:"500px",maxHeight:"80vh",height:"640px",autoFocus:!1})).subscribe(function(b){b&&BNb(a)}):BNb(this)};
var BNb=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20220518.05_p0",bucket:"buganizer3-feedback"},c=[];fj(a.activeSession.getUserPreferences())&&c.push("didChooseNewIdp");var d=[];var e=d.concat;c=v(c);var f=[];a=bj(a.activeSession.config,4);for(var h=r(a.keys()),k=h.next();!k.done;k=h.next())k=k.value,a.get(k)&&f.push(k);d={flags:e.call(d,c,[f]).join(", ")};ANb(b,d)};NO.\u0275fac=function(a){return new (a||NO)(t(qH),t(cC))};
NO.\u0275prov=hc({token:NO,factory:NO.\u0275fac,providedIn:"root"});
var OO=function(a){this.delegate_=a};OO.prototype.getDelegate=function(){return this.delegate_};
var CNb=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};U(CNb,OO);CNb.prototype.getTarget=function(){if(this.target_)return this.target_;for(var a=[],b=this.getDelegate().xb;b instanceof gbar.I&&b!=this.currentTarget_.getDelegate();)a.push(b.ic()),b=b.zb();for(b=this.currentTarget_;0<a.length;)b=DNb(b,a.pop());return this.target_=b};CNb.prototype.getType=function(){return this.getDelegate().xa};
var ENb=function(a){this.delegate_=a};U(ENb,OO);g=ENb.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||da,new CNb(f,e))},c)};g.listenOnce=function(){throw Error("jd");};g.unlisten=function(){throw Error("jd");};g.unlistenByKey=function(){throw Error("jd");};g.dispatchEvent=function(){throw Error("jd");};g.removeAllListeners=function(){throw Error("jd");};g.getParentEventTarget=function(){throw Error("jd");};
g.fireListeners=function(){throw Error("jd");};g.getListener=function(){throw Error("jd");};g.hasListener=function(){throw Error("jd");};ENb.prototype[Qrb]=!0;
var PO=function(a){this.delegate_=a};U(PO,ENb);PO.prototype.getHeight=function(){return this.getDelegate().pa()};PO.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};PO.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};PO.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};
var FNb=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};U(FNb,OO);FNb.prototype.then=function(a,b,c){var d;a&&(d=GNb(this,a));this.getDelegate().aa(d,b,c)};var GNb=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};
var QO=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};U(QO,OO);QO.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new FNb(this.getDelegate().bh()));return this.gapiPromise_};QO.getInstance=function(){if(QO.instance_&&QO.hasOwnProperty("instance_"))var a=QO.instance_;else a=new QO,QO.instance_=a;return a};
var RO=function(a,b){qI.call(this);this.router=a;this.window=b};U(RO,qI);RO.\u0275dir=qI.\u0275dir;RO.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=QO.getInstance();d.barPromise_||(d.barPromise_=new FNb(d.getDelegate().bf(),PO));d.barPromise_.then(b,c)})).then(function(b){HNb(a,b)})};var HNb=function(a,b){a.router.events.pipe(uf(function(c){return c instanceof tI}),fg(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
RO.\u0275fac=function(a){return new (a||RO)(t(Ik),t(mM))};RO.\u0275prov=hc({token:RO,factory:RO.\u0275fac,providedIn:"root"});
var SO=function(a){qI.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(fg(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};U(SO,qI);SO.\u0275dir=qI.\u0275dir;SO.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)};SO.\u0275fac=function(a){return new (a||SO)(t(NI))};
SO.\u0275prov=hc({token:SO,factory:SO.\u0275fac,providedIn:"root"});
var ro={},$xa=function(a,b){return a+b};
var TO=function(){};TO.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};TO.\u0275fac=function(a){return new (a||TO)};
TO.\u0275cmp=w({type:TO,selectors:[["empty-toolbar"]],decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(F(0,"section",0)(1,"button",1),J("click",function(){return b.onPressBack()}),H(2,"mat-icon",2),G()())},dependencies:[FB,hF,wF],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var UO=function(){};UO.\u0275fac=function(a){return new (a||UO)};UO.\u0275cmp=w({type:UO,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(Ae(),F(0,"span",0),Be(1),G())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});
var VO=function(a){this.elementRef=a;this.componentBlur=new Vw};VO.\u0275fac=function(a){return new (a||VO)(C(sd))};VO.\u0275dir=w({type:VO,selectors:[["","componentBlur",""]],hostBindings:function(a,b){a&1&&J("focusout",function(c){var d;(null==(d=c.relatedTarget)?0:d.classList.contains("cdk-focus-trap-anchor"))||b.elementRef.nativeElement.contains(c.relatedTarget)||b.componentBlur.next(c)})},outputs:{componentBlur:"componentBlur"}});
var WO=function(a,b,c){qI.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};U(WO,qI);oi.Object.defineProperties(WO.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(fg(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});WO.\u0275fac=function(a){return new (a||WO)(C(Af),C(Bf),C(zx))};
WO.\u0275dir=w({type:WO,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[ee]});
var XO=function(a,b,c){var d=this;this.cdr=a;this.events=b;this.ngZone=c;this.lastOpenPosition=this.width=220;this.hideToggleBtnOnOpen=this.disableToggleBtn=!1;this.direction="ltr";this.widthChanged=new Vw;this.widthAtDragStart=this.width;this.startDragging=function(e){d.dragStart=e;d.widthAtDragStart=d.width};this.minSnapWidth=185;this.onMousemove=function(e){d.isDragging&&(d.setWidth(d.widthAtDragStart+(e.pageX-(d.dragStart||0))*(d.isLTR?1:-1)),d.cdr.detectChanges())};this.onMouseup=function(){d.dragStart=
void 0;d.cdr.detectChanges()};this.broadcastWidthChange=zC(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=zC(function(){Zn(mo.SIDEBAR,"resizeKeyboard")},2E3)};XO.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
XO.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var INb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};XO.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
XO.prototype.setWidth=function(a){var b=this.minSnapWidth;a=90>a?28:a<b?b:Math.min(a,700);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a)};
oi.Object.defineProperties(XO.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);"open"===a?b=this.lastOpenPosition:Number.isNaN(b)&&(b=220);this.setWidth(b)}},isLTR:{configurable:!0,enumerable:!0,get:function(){return"ltr"===this.direction}},isClosed:{configurable:!0,enumerable:!0,
get:function(){return this.width<this.minSnapWidth}},toggleButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this.isClosed?"Open Navigation":"Close Navigation"}},isDragging:{configurable:!0,enumerable:!0,get:function(){return null!=this.dragStart}}});XO.\u0275fac=function(a){return new (a||XO)(C(mI,2),C(FK),C(mg))};
XO.\u0275cmp=w({type:XO,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&qe(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[Je([mI])],ngContentSelectors:["*"],decls:5,vars:12,consts:[["cdkScrollable","",1,"inner",3,"ngClass"],[1,"content"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation",
"horizontal",1,"resizeHandle",3,"mousedown","keyup.arrowleft","keyup.arrowright","keyup.space","keyup.enter","dblclick"],["mat-icon-button","","class","toggleButton xs","matTooltipPosition","right",3,"ngClass","isClosed","matTooltip","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"toggleButton","xs",3,"ngClass","matTooltip","click"],[3,"svgIcon"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1),Be(2),G(),F(3,"div",2),J("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return INb(b,-10)})("keyup.arrowright",function(){return INb(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),G()(),M(4,cya,2,6,"button",3));a&2&&(oe("width",b.width+"px"),pe("isDragging",b.isDragging)("isClosed",b.isClosed),E("ngClass",b.direction),B(1),oe("width",b.lastOpenPosition+"px"),B(2),ke("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),B(1),E("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[Jx,Gx,FB,hF,wF,HA],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}.toggleButton[_ngcontent-%COMP%]{position:absolute;bottom:0;top:0;margin:auto}.toggleButton.ltr[_ngcontent-%COMP%]{right:2px}.toggleButton.rtl[_ngcontent-%COMP%]{left:2px}.toggleButton.isClosed[_ngcontent-%COMP%]{z-index:2}.toggleButton.isClosed.ltr[_ngcontent-%COMP%]{right:6px}.toggleButton.isClosed.rtl[_ngcontent-%COMP%]{left:6px}.toggleButton[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.toggleButton.isClosed[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isDragging[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%;background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}\n/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});
var JNb=new od("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),KNb=new od("isScrolledOnScreen",{factory:function(){return{fully:dya,partially:eya}}}),YO=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};YO.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?fya(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):gya(a,this.isScrolledOnScreen,b)};
YO.\u0275fac=function(a){return new (a||YO)(t(JNb),t(KNb))};YO.\u0275prov=hc({token:YO,factory:YO.\u0275fac,providedIn:"root"});
var ZO=function(a){Z.call(this,a)};U(ZO,Z);ZO.prototype.getUrl=function(){return V(this,1)};ZO.prototype.setUrl=function(a){return l(this,1,a)};ZO.prototype.hasUrl=function(){return gj(this,1)};ZO.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};ZO.messageId="b.ImageRedirectRequest";
var $O=function(a){Z.call(this,a)};U($O,Z);$O.prototype.getUrl=function(){return V(this,1)};$O.prototype.setUrl=function(a){return l(this,1,a)};$O.prototype.hasUrl=function(){return gj(this,1)};$O.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};$O.messageId="b.ImageRedirectResponse";
var aP=function(a){this.executor=a},LNb=function(a,b){var c=new ZO;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:$O}).pipe(R(function(d){return d.getUrl()}))};aP.\u0275fac=function(a){return new (a||aP)(t(hI))};aP.\u0275prov=hc({token:aP,factory:aP.\u0275fac,providedIn:"root"});
var bP=function(a){var b=this;this.imageRedirector=a;this.src$=new T.BehaviorSubject("");this.showImage$=new T.BehaviorSubject(!1);this.error$=new T.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(R(function(c){var d=c;d=void 0===d?"":d;var e=void 0===e?48:e;c=[].concat(v(d));if(c.length<=e)e=d;else{var f=Math.floor(e/2);d=c.slice(0,f-1).join("");e=c.slice(-(f-(0!==e%2?1:2))).join("");null!=String.prototype.trimEnd&&null!=String.prototype.trimStart&&(d=d.trimEnd(),e=e.trimStart());e=d+"..."+
e}return e}));this.srcRedirected$=(0,T.combineLatest)([this.src$,this.showImage$]).pipe(uf(function(c){c=r(c);c.next();return c.next().value}),eg(function(c){c=r(c);var d=c.next().value;c.next();return LNb(b.imageRedirector,d).pipe(Pf(function(){b.error$.next(!0);return d}))}))};bP.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
oi.Object.defineProperties(bP.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a);this.error$.next(!1)},get:function(){return this.src$.value}}});bP.\u0275fac=function(a){return new (a||bP)(C(aP))};
bP.\u0275cmp=w({type:bP,selectors:[["b-secure-image-widget"]],inputs:{src:"src",alt:"alt"},decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["widget",""],["error",""],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title","click","keydown.enter"],["svgIcon","image",1,"icon-s"],["svgIcon","broken-image",1,"icon-l",3,"matTooltip"]],template:function(a,b){a&1&&(M(0,lya,3,4,"ng-container",0),P(1,"async"),M(2,mya,8,9,"ng-template",null,1,Mf),M(4,nya,2,3,"ng-template",null,2,Mf));if(a&2){var c=Fe(5);E("ngIf",
!1===Q(1,2,b.error$))("ngIfElse",c)}},dependencies:[Gx,hF,wF,UO,Tx],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%}\n/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});
var cP=function(){};cP.prototype.onClick=function(a,b){MNb(b)&&a.preventDefault()};var MNb=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275dir=w({type:cP,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c,c.target)})}});
[].concat(v(RMb),[XO,UO]);var dP=function(){};dP.\u0275fac=function(a){return new (a||dP)};dP.\u0275mod=xc({type:dP});dP.\u0275inj=ic({imports:[ay,wG,AF,gH,LA,VN]});
var fP=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja){qI.call(this);var Ba=this;this.bLocation=a;this.$route=b;this.timeout=c;this.activeSession=d;this.analytics=e;this.hotkeys=f;this.paths=h;this.userPrefs=k;this.issuePagination=q;this.userFeedback=I;this.announcements=N;this.ngZone=L;this.matDialogService=S;this.renderer=ha;this.showIdpDeprecationBanner=NNb(this);this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();
this.sidebarDragSaver=this.sidebarDragOffset=null;uNb(D);this.subscriptions.add(y.onClickAppMenuIcon.subscribe(function(){Ba.matSidebarWidth=185>Ba.matSidebarWidth?"open":0}));k.homepagePreferences$.pipe(fg(this.destroyed$)).subscribe(function(La){X.homepagePreferences=La});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(fg(this.destroyed$)).subscribe(function(La){La=uya(La.density);La!==Ba.densityClass&&(Ba.renderer.addClass(document.body,
La),Ba.renderer.removeClass(document.body,Ba.densityClass),Ba.densityClass=La)});this.subscriptions.add(LMb(u,function(La){Ba.doSearch(La)}));this.createIssuePath=h.createIssue();this.assignedPath=h.listIssues({q:HMb(d.getUserEmail())});this.ccdPath=h.listIssues({q:"cc:"+d.getUserEmail()});this.verifiedPath=h.listIssues({q:IMb(d.getUserEmail())});this.reportedPath=h.listIssues({q:"reporter:"+d.getUserEmail()});this.starredPath=h.listIssues({q:u.getStarred()});this.votedPath=h.listIssues({q:u.getVoted()});
this.subscriptions.add(XI(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var La=document.querySelector(".search-box-container .search-box");null==La||La.focus();null==La||La.select()}},{keys:[Qj("2"),joa()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){return Ba.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Ba.createIssuePath)}},{keys:[Rj("g","a")],displayAs:"g then a",
description:'Go to "Assigned to me"',onPress:function(){a.url(Ba.assignedPath)}},{keys:[Rj("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url(Ba.ccdPath)}},{keys:[Rj("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(Ba.reportedPath)}},{keys:[Rj("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ba.starredPath)}},{keys:[Rj("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',
onPress:function(){a.url(Ba.votedPath)}},{keys:[Rj("g","v")],displayAs:"g then v",description:'Go to "To be verified"',onPress:function(){a.url(Ba.verifiedPath)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(La){if(0===La&&20<Ba.sidebarDragPosition||1===La&&!(20<Ba.sidebarDragPosition))20<Ba.sidebarDragPosition?eP(Ba,20,1):eP(Ba,Ba.lastOpenPosition,1);
Ba.matSidebarWidth=0===La?0:"open"}},{keys:["?",ioa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){Ba.matDialogService.open($I,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcements.announcement.tags.includes("JFK")||(this.announcement=this.announcements.announcement);this.userPrefs.preferences$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(La){Ba.dismissedMessageId=La.bannerMessageId||"";La=(La.layoutPreferences||
{}).leftSidebarWidth;Ba.matSidebarWidth=La||220;if(void 0===La)Ba.sidebarDragPosition=220;else if(90>La)Ba.sidebarDragPosition=20;else{if(220<La){var hb=ONb();La>hb&&(La=hb)}185>La&&(La=185);Ba.sidebarDragPosition=La}});(0,T.fromEvent)(document,"mouseup",{capture:!0}).pipe(fg(this.destroyed$)).subscribe(function(){Ba.sidebarDragOffset&&(Ba.sidebarDragOffset=null,eP(Ba,Ba.sidebarDragPosition,1))});(0,T.fromEvent)(X,"resize").pipe(fg(this.destroyed$)).subscribe(function(){if(220<Ba.sidebarDragPosition){var La=
ONb();Ba.sidebarDragPosition>La&&eP(Ba,La,3E3)}});this.ngZone.runOutsideAngular(function(){(0,T.fromEvent)(document,"mousemove").pipe(fg(Ba.destroyed$)).subscribe(function(La){if(Ba.sidebarDragOffset){La=La.pageX-Ba.sidebarDragOffset;if(90>La)La=20;else if(185>La)La=185;else{var hb=ONb();La>hb&&(La=hb)}eP(Ba,La,0)}})});ra.start();FM()&&(null!=XKb&&XKb.disconnect(),XKb=new $n.PerformanceObserver(YKb),XKb.observe({entryTypes:["measure"]}));setTimeout(bya,6E4);Da.start();Ja.initOnce();X.emergencyBugjugglerWorkaround=
{session:d,issueComments:ka}};U(fP,qI);fP.\u0275dir=qI.\u0275dir;var NNb=function(a){var b=a.activeSession.isInternalSession(),c=!window.sessionStorage.getItem("idpDeprecationDismissTime");a=!fj(a.activeSession.getUserPreferences());return b&&c&&a};fP.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};fP.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var ONb=function(){var a=window.innerWidth;return 1075<=a?a-855:220},sya=function(a,b){a.userPrefs.layoutPreferences$.pipe(eg(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(Tf(),fg(a.destroyed$)).subscribe()},eP=function(a,b,c){if(b!==a.sidebarDragPosition||c)185<=b&&(a.lastOpenPosition=b),a.sidebarDragPosition=b,c&&(a.sidebarDragSaver&&a.timeout.cancel(a.sidebarDragSaver),a.sidebarDragSaver=a.timeout.schedule(function(){sya(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};fP.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=UIb(this.paths,a);MM(this.issuePagination);b&&this.$route.reload();this.bLocation.url(a);io(this.analytics,"search","default-context")};var oya=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(Tf(),fg(a.destroyed$)).subscribe())};
fP.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return ef(function(e){if(1==e.nextAddress)return c=b.userPrefs.newIssueDetailsPagePreferencesSubject$.value,ff(e,(0,T.firstValueFrom)(b.userPrefs.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";io(b.analytics,"prefs","change",d);window.location.reload();gf(e)})};fP.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
fP.\u0275fac=function(a){return new (a||fP)(C(KK),C(DLb),C(fI),C(qH),C(IM),C(WI),C(LK),C(PI),C(LM),C(GN),C(FK),C(KO),C(NO),C(sO),C(mg),C(cC),C(mM),C(hO),C(Zv),C(RO),C(SO),C(fO))};
fP.\u0275cmp=w({type:fP,selectors:[["app-root"]],features:[ee],decls:11,vars:3,consts:[["class","bv2-announce-bar",4,"ngIf"],["messageType","caution","format","app",4,"ngIf"],[1,"bv2-content","flex-kids-x","border-top"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged",4,"ngIf"],[1,"flex","pos-rel"],[1,"bv2-announce-bar"],"aria-live polite role status aria-atomic true".split(" "),[3,"innerHtml"],["class","announce-dismiss","role","button","tabindex","0",3,"keydown.enter","keydown.space",
"click",4,"ngIf"],["role","button","tabindex","0",1,"announce-dismiss",3,"keydown.enter","keydown.space","click"],["messageType","caution","format","app"],["href","https://groups.google.com/a/google.com/g/buganizer-announce/c/lu-X-YckEGo","target","_blank"],["href","",3,"click"],["mat-flat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss the message",3,"click"],["svgIcon","close",1,"icon-s"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged"]],template:function(a,b){a&
1&&(H(0,"b-hiring-banner")(1,"b-terms-of-service"),M(2,qya,4,2,"div",0),H(3,"g3n-announcement"),M(4,rya,16,0,"b-callout",1),H(5,"b-sso-expired-callout-outlet"),F(6,"div",2),M(7,tya,2,2,"b-resizable-sidebar",3),F(8,"div",4),H(9,"b-router-outlet"),G()(),H(10,"bug-screensaver-manager"));a&2&&(B(2),E("ngIf",b.announcement&&(b.announcement&&b.announcement.message?b.announcement.dismissible?null===b.dismissedMessageId?!1:b.announcement.messageId!==b.dismissedMessageId:!0:!1)),B(2),E("ngIf",b.showIdpDeprecationBanner),
B(3),E("ngIf",!b.isAnonymous))},dependencies:function(){return[Gx,wO,XO,JN,EO,nI,nO,tO,bI,cI,FB,hF,dI]},encapsulation:2});var gP=function(){};gP.\u0275fac=function(a){return new (a||gP)};gP.\u0275mod=xc({type:gP});gP.\u0275inj=ic({imports:[ay,xO,dP,XN,IO,oI,rO,uO,qO,wG,AF,aJ]});
var hP=function(a){Z.call(this,a)};U(hP,Z);hP.prototype.getUrl=function(){return V(this,1)};hP.prototype.setUrl=function(a){return l(this,1,a)};hP.prototype.hasUrl=function(){return gj(this,1)};hP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};hP.messageId="b.AttachmentUrlResponse";
var iP=function(a){this.executor=a};iP.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject("Invalid resource ID.");var e={};d&&(e["X-Restricted-Content-Limit"]=String(Hl(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:hP}).then(function(f){return f.getUrl()})};iP.\u0275fac=function(a){return new (a||iP)(t(iI))};iP.\u0275prov=hc({token:iP,factory:iP.\u0275fac,providedIn:"root"});
var jP=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal="INTERNAL"===a.frontendAccessMode};jP.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};jP.\u0275fac=function(a){return new (a||jP)(C(qH),C(Af),C(Bf))};jP.\u0275dir=w({type:jP,selectors:[["","internalOnly",""]]});
var kP=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},Jo=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},lP=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/wtdm-home":""},PNb=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":
Jo(a)},$cb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access"},QNb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},RNb=function(a){return QNb(a)+"#recommended-access-settings"},Q6a=function(a){return Jo(a)+"#expanded-access-on-components"},W_a=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},
SNb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-dos-donts#creating-moving-issues"},Ct=function(){return"http://go/buganizer-retention"};kP.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 feb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};kP.prototype.getDisablingFieldsHelpLink=function(){return feb()+"#hiding-inherited-fields"};var TNb=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};kP.\u0275fac=function(a){return new (a||kP)(t(qH))};kP.\u0275prov=hc({token:kP,factory:kP.\u0275fac,providedIn:"root"});
var mP=function(a){this.window=a};mP.prototype.openInNewTab=function(a){a=Bh(a);this.window.open(wh(a),"_blank",void 0)};var nP=function(a,b){b=Bh(b);a.window.open(wh(b),void 0,void 0)},oP=function(a,b){b=Bh(b);a.window.location.href=wh(b)};mP.\u0275fac=function(a){return new (a||mP)(t(mM))};mP.\u0275prov=hc({token:mP,factory:mP.\u0275fac,providedIn:"root"});
var pP=function(a,b,c,d,e,f,h,k){this.dialogRef=b;this.userAccess=c;this.attachmentsUrl=d;this.butterBar=e;this.domSafe=f;this.documentationLinks=h;this.changeDetectorRef=k;this.isLoading=!0;this.download=this.hasViewAccess=!1;this.attachment=a.attachment;this.issueId=a.issueId;this.download=a.download};pP.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
pP.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;wya(this)?(this.hasViewAccess=!1,mK(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)};pP.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var wya=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},UNb=function(a){var b=a.download&&dna(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?oP(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){zK(a.butterBar,"Failed to load attachment. Please refresh and try again.");a.close()})};pP.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
pP.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};pP.\u0275fac=function(a){return new (a||pP)(C(aC),C(QB),C(lK),C(iP),C(xK),C(mP),C(kP),C(mI,2))};
pP.\u0275cmp=w({type:pP,selectors:[["b-attachment-download-dialog"]],features:[Je([mI])],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"],["class","gmat-body-2",4,"ngIf"],["class","centered-spinner","diameter","60",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button",
"",1,"gmat-button","dialog-primary-action",3,"disabled","click"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"],["diameter","60",1,"centered-spinner"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Access Attachment"),G(),F(2,"div",1)(3,"div",2),O(4," Are you sure you would like to access the following attachment? "),G(),H(5,"br"),F(6,"div",3)(7,"div",4),H(8,"mat-icon",5),G(),F(9,"div",6),O(10),G()(),H(11,"br"),M(12,xya,2,1,"ng-container",
7),M(13,yya,3,0,"div",8),G(),M(14,zya,1,0,"mat-spinner",9),F(15,"div",10)(16,"button",11),J("click",function(){return b.close()}),O(17," Cancel "),G(),F(18,"button",12),J("click",function(){return UNb(b)}),O(19," Continue "),G()());a&2&&(B(10),Ge(" ",b.attachment.filename," "),B(3),E("ngIf",!b.isLoading&&!b.hasViewAccess),B(1),E("ngIf",b.isLoading),B(4),E("disabled",!b.hasViewAccess))},dependencies:[Gx,eC,fC,gC,FB,hF,bN,jP],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 qP=function(){};qP.\u0275fac=function(a){return new (a||qP)};qP.\u0275mod=xc({type:qP});qP.\u0275inj=ic({imports:[ay]});
var VNb=Object.assign({},new YB,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),rP=function(){};rP.\u0275fac=function(a){return new (a||rP)};rP.\u0275mod=xc({type:rP});rP.\u0275inj=ic({providers:[{provide:vqb,useValue:VNb}],imports:[hC,hC]});
var sP=function(){};sP.\u0275fac=function(a){return new (a||sP)};sP.\u0275mod=xc({type:sP});sP.\u0275inj=ic({imports:[ay,rP,wG,hC,AF,NN,pO,VH,qP]});
var tP=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new rKb(function(d){var e;a:{if(e=m(c.activeSession.session,nH,9)){e=r(tb(e,lH,1));for(var f=e.next();!f.done;f=e.next())if(f=f.value,d===f.getId()){e=Aya(f);break a}}e=void 0}return e?(0,T.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:lH}).pipe(R(Aya))},10)};tP.prototype.get=function(a){return this.memoized.get(a)};tP.\u0275fac=function(a){return new (a||tP)(t(hI),t(qH))};
tP.\u0275prov=hc({token:tP,factory:tP.\u0275fac,providedIn:"root"});
var WNb={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"}}},uP=WNb;uP=WNb;
var XNb={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 YNb={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"},vP=YNb;vP=YNb;
var wP=function(){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=vP.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;this.pattern_=
"";this.applyStandardPattern_(1)};
wP.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=ZNb(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,u=!0;b[0]<q&&u;b[0]++)switch(a.charAt(b[0])){case "#":0<f?h++:e++;0<=k&&0>d&&k++;break;case "0":if(0<h)throw Error("td`"+a);f++;0<=k&&0>d&&k++;break;case ",":0<k&&this.groupingArray_.push(k);k=0;break;case ".":if(0<=d)throw Error("ud`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("vd`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<q&&"+"==a.charAt(b[0]+1)&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<q&&"0"==a.charAt(b[0]+1);)b[0]++,this.minExponentDigits_++;if(1>e+f||1>this.minExponentDigits_)throw Error("wd`"+a);u=!1;break;default:b[0]--,u=!1}0==f&&0<e&&0<=d&&(f=d,0==f&&f++,h=e-f,e=f-1,f=1);if(0>d&&0<h||0<=d&&(d<e||d>e+f)||0==k)throw Error("xd`"+a);h=e+f+h;this.maximumFractionDigits_=0<=d?h-d:0;0<=d&&(this.minimumFractionDigits_=e+f-d,0>this.minimumFractionDigits_&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(0<=d?d:h)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,0==this.maximumFractionDigits_&&0==this.minimumIntegerDigits_&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=0==d||d==h;c=b[0]-c;this.positiveSuffix_=ZNb(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=ZNb(this,a,b),b[0]+=c,
this.negativeSuffix_=ZNb(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
wP.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(vP.DECIMAL_PATTERN);break;case 2:this.applyPattern_(vP.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(vP.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=vP.CURRENCY_PATTERN;var c=["0"],d=XNb[vP.DEF_CURRENCY_CODE];if(d){d=d[0]&7;if(0<d){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:$Nb(this,1);break;case 6:$Nb(this,2);break;default:throw Error("nd");
}};var $Nb=function(a,b){a.compactStyle_=b;a.applyPattern_(vP.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("ld");a.significantDigits_=2};
wP.prototype.parse=function(a,b){b=b||[0];if(0!==this.compactStyle_)throw Error("od");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(vP.INFINITY,b[0])==b[0]){b[0]+=vP.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,u=1,y=vP.DECIMAL_SEP,D=vP.GROUP_SEP,I=vP.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("pd");D=D.replace(/\u202f/g,"\u00a0");for(var N="";b[0]<e.length;b[0]++){var L=e.charAt(b[0]),S=aOb(L);if(0<=S&&9>=S)N+=S,k=!0;else if(L==y.charAt(0)){if(f||h)break;N+=".";f=!0}else if(L==D.charAt(0)&&("\u00a0"!=D.charAt(0)||b[0]+1<e.length&&0<=aOb(e.charAt(b[0]+1)))){if(f||h)break}else if(L==I.charAt(0)){if(h)break;N+="E";h=!0;q=b[0]}else if("+"==L||"-"==L){if(k&&q!=b[0]-1)break;N+=
L}else if(1==this.multiplier_&&L==vP.PERCENT.charAt(0)){if(1!=u)break;u=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&L==vP.PERMILL.charAt(0)){if(1!=u)break;u=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(u=this.multiplier_);e=parseFloat(N)/u}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
wP.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("qd");if(isNaN(a))return vP.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=xP;else{c=Math.abs(c);var d=bOb(this,1>=c?0:cOb(c)).divisorBase;c=bOb(this,d+cOb(dOb(this,yP(c,-d)).intValue))}a=yP(a,-c.divisorBase);(d=0>a||0==a&&0>1/a)?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(0==e)eOb(this,e,this.minimumIntegerDigits_,b),fOb(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=yP(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=yP(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=yP(e,-1)):(f-=this.minimumIntegerDigits_-1,e=yP(e,this.minimumIntegerDigits_-
1));eOb(this,e,h,b);fOb(this,f,b)}}else eOb(this,a,this.minimumIntegerDigits_,b);else b.push(vP.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 dOb=function(a,b){var c=yP(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=gOb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(yP(c,-a.maximumFractionDigits_)),a=Math.floor(c-yP(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},eOb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("qd");d||(d=[]);b=dOb(a,b);var e=b.intValue,f=b.fracValue,h=0<a.minimumFractionDigits_||0<f||!1;b=a.minimumFractionDigits_;
h&&(b=a.minimumFractionDigits_);for(var k="",q=e;1E20<q;)k="0"+k,q=Math.round(yP(q,-1));k=q+k;var u=vP.DECIMAL_SEP;q=vP.ZERO_DIGIT.charCodeAt(0);var y=k.length,D=0;if(0<e||0<c){for(e=y;e<c;e++)d.push(String.fromCharCode(q));if(2<=a.groupingArray_.length)for(c=1;c<a.groupingArray_.length;c++)D+=a.groupingArray_[c];c=y-D;if(0<c){e=a.groupingArray_;D=y=0;for(var I,N=vP.GROUP_SEP,L=k.length,S=0;S<L;S++)if(d.push(String.fromCharCode(q+Number(k.charAt(S)))),1<L-S)if(I=e[D],S<c){var X=c-S;(1===I||0<I&&1===
X%I)&&d.push(N)}else D<e.length&&(S===c?D+=1:I===S-c-y+1&&(d.push(N),y+=I,D+=1))}else{c=k;k=a.groupingArray_;e=vP.GROUP_SEP;I=c.length;N=[];for(y=k.length-1;0<=y&&0<I;y--){D=k[y];for(L=0;L<D&&0<=I-L-1;L++)N.push(String.fromCharCode(q+Number(c.charAt(I-L-1))));I-=D;0<I&&N.push(e)}d.push.apply(d,N.reverse())}}else h||d.push(String.fromCharCode(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(u);f=String(f);h=f.split("e+");2==h.length&&(f=String(gOb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=BC("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+BC("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;"0"==f.charAt(a-1)&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCharCode(q+Number(f.charAt(b))))},fOb=function(a,b,c){c.push(vP.EXP_SYMBOL);0>b?(b=-b,c.push(vP.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(vP.PLUS_SIGN);b=""+b;for(var d=vP.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},aOb=function(a){a=a.charCodeAt(0);if(48<=
a&&58>a)return a-48;var b=vP.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},ZNb=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var h=b.charAt(c[0]);if("'"==h)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1)?(c[0]++,d+=vP.DEF_CURRENCY_CODE):(h=vP.DEF_CURRENCY_CODE,d+=h in XNb?XNb[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&1!=
a.multiplier_)throw Error("rd");if(a.negativePercentSignExpected_&&100!=a.multiplier_)throw Error("sd");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=vP.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&1!=a.multiplier_)throw Error("rd");if(a.negativePercentSignExpected_&&1E3!=a.multiplier_)throw Error("sd");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=vP.PERMILL;break;default:d+=h}}return d},xP={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
bOb=function(a,b){a=1==a.compactStyle_?uP.COMPACT_DECIMAL_SHORT_PATTERN:uP.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=uP.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return xP;b=Math.min(14,b);var c=a[yP(1,b)];for(--b;!c&&3<=b;)c=a[yP(1,b)],b--;if(!c)return xP;c=c.other;var d=a="",e=c.indexOf(";");0<=e&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],
suffix:c[3]}:xP:xP},cOb=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},yP=function(a,b){if(!a||!isFinite(a)||0==b)return a;a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},hOb=function(a,b){return a&&isFinite(a)?yP(Math.round(yP(a,b)),-b):a},gOb=function(a,b,c){if(!a)return a;b=b-cOb(a)-1;return b<-c?hOb(a,-c):hOb(a,b)};
var iOb=function(a){return 1==a%10&&11!=a%100?"one":2==a%10&&12!=a%100?"two":3==a%10&&13!=a%100?"few":"other"},jOb=iOb;jOb=iOb;
var kOb=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,-1===f?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return 1==c&&0==a.v?"one":"other"},lOb=kOb;lOb=kOb;
var zP=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=vP;var b=uP;if(mOb!==a||nOb!==b)mOb=a,nOb=b,oOb=new wP;this.numberFormatter_=oOb},mOb=null,nOb=null,oOb=null,pOb=RegExp("'([{}#].*?)'","g"),qOb=RegExp("''","g");zP.prototype.format=function(a){return this.format_(a,!1)};
zP.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=rOb(this,this.pattern_);this.parsedPattern_=sOb(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Ea(this.initialLiterals_);c=[];tOb(this,this.parsedPattern_,a,b,c);for(a=c.join("");0<this.literals_.length;)a=a.replace(this.buildPlaceholder_(this.literals_),this.literals_.pop());return a};
var tOb=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value,k=a,q=e,u=c[h];void 0===u?q.push("Undefined parameter - "+h):(k.literals_.push(u),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;u=d;var y=e,D=h.argumentIndex;void 0===q[D]?y.push("Undefined parameter - "+D):(D=h[q[D]],void 0===D&&(D=h.other),tOb(k,D,q,u,y));break;case 0:h=b[f].value;uOb(a,h,c,lOb,d,e);break;case 1:h=b[f].value,uOb(a,h,c,jOb,
d,e)}},uOb=function(a,b,c,d,e,f){var h=b.argumentIndex,k=b.argumentOffset,q=+c[h];isNaN(q)?f.push("Undefined or invalid parameter - "+h):(k=q-k,h=b[c[h]],void 0===h&&(d=d(Math.abs(k)),h=b[d],void 0===h&&(h=b.other)),b=[],tOb(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},rOb=function(a,b){var c=a.initialLiterals_,d=du(a.buildPlaceholder_,a);b=b.replace(qOb,function(){c.push("'");return d(c)});return b=b.replace(pOb,function(e,f){c.push(f);return d(c)})},
vOb=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var h=f.index;"}"==f[0]?(c.pop(),0==c.length&&(f={type:1},f.value=a.substring(b,h),d.push(f),b=h+1)):(0==c.length&&(b=a.substring(b,h),""!=b&&d.push({type:0,value:b}),b=h+1),c.push("{"))}b=a.substring(b);""!=b&&d.push({type:0,value:b});return d},wOb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,xOb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,yOb=/^\s*(\w+)\s*,\s*select\s*,/,sOb=function(a,b){var c=[];b=vOb(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(wOb.test(f)?0:xOb.test(f)?1:yOb.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=zOb(a,b[d].value);break;case 0:e.type=0;e.value=AOb(a,b[d].value);break;case 1:e.type=1;e.value=BOb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},zOb=function(a,b){var c="";b=b.replace(yOb,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=vOb(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=sOb(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},AOb=function(a,b){var c="",d=0;b=b.replace(wOb,function(q,u,y){c=u;y&&(d=parseInt(y,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=vOb(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=sOb(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},BOb=function(a,b){var c="";b=b.replace(xOb,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=vOb(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=sOb(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};zP.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};
var DOb=function(a){a=Math.abs(a);if(6E4>a)return"0 minutes";var b=Math.floor(a/864E5);a%=864E5;var c=Math.floor(a/36E5),d=Math.floor(a%36E5/6E4),e=JC(b),f=JC(c),h=JC(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=COb("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=COb("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=COb("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},COb=function(a,b,c){return(new zP(a)).format({COUNT:b,TEXT:c})};
var AP=function(a,b,c,d,e){qI.call(this);var f=this;this.errorHandler=e;this.formatPrefChange$=new T.Subject;this.userTimeZone_=null;this.timeZones_={};this.cachedFormatters=a.get("bv2-date-format-formatters")||a.create("bv2-date-format-formatters",{capacity:25});this.userPrefs=pH.dateTimePreferences;Promise.all(d.supportedTimeZones.map(function(h){if(""===h.id)return Promise.resolve({name:"",timeZone:null});var k=c.get(h.id).pipe(fg(f.destroyed$));return(0,T.firstValueFrom)(k).then(function(q){return{name:h.name,
timeZone:q}})})).then(function(h){h=r(h);for(var k=h.next();!k.done;k=h.next())k=k.value,f.timeZones_[k.name]=k.timeZone;b.preferences$.pipe(fg(f.destroyed$)).subscribe(function(q){q.dateTimePreferences&&(q=q.dateTimePreferences,f.userPrefs=q,f.userTimeZone_=f.timeZones_[q.timeZone],f.formatPrefChange$.next())})}).catch(function(h){f.errorHandler.errorHandler(null,h)})};U(AP,qI);AP.\u0275dir=qI.\u0275dir;
AP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new xi(a),this.cachedFormatters.put(a,d));return b?d.format(c,b):d.format(c)};var EOb=function(a,b){return a.formatPrefChange$.subscribe(b)};AP.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone_,a)};AP.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone_,a)};
AP.\u0275fac=function(a){return new (a||AP)(t(UK),t(PI),t(tP),t(RH),t(BK))};AP.\u0275prov=hc({token:AP,factory:AP.\u0275fac,providedIn:"root"});
var BP=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new TK(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(R(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(R(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(eg(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,T.of)(void 0)}))};
BP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new xi(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};BP.prototype.formatUserCalendar=function(a){var b=this;return(0,T.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
BP.prototype.formatUserTime=function(a){var b=this;return(0,T.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var FOb=function(a,b){return(0,T.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(R(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},GOb=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(R(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,T.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},v_a=function(a){var b=void 0,c=!0;b=void 0===b?0:b;c=void 0===c?!1:c;var d=new Ni;b&&d.setTime(b);b=new Ni;
b.setTime(a);if(b.getTime()<d.getTime())return"Expired";a=12*(b.getFullYear()-d.getFullYear())+(b.getMonth()-d.getMonth());var e=b.getDate()-d.getDate();0>e&&(a--,d=d.clone(),d.add(new to("m",a)),e=Math.floor((b.getTime()-d.getTime())/864E5));d=new to(Math.floor(a/12),a%12,e);if(1<=d.years)return b=1<d.years?"s":"",0===d.months&&0===d.days?c?d.years+" year"+b:d.years+"Y":c?d.years+" year"+b+" +":d.years+"Y+";if(1<=d.months)return b=1<d.months?"s":"",0===d.days?c?d.months+" month"+b:d.months+"M":c?
d.months+" month"+b+" +":d.months+"M+";b=1<d.days?"s":"";return c?d.days+" day"+b:d.days+"D"};BP.\u0275fac=function(a){return new (a||BP)(t(PI),t(tP))};BP.\u0275prov=hc({token:BP,factory:BP.\u0275fac,providedIn:"root"});
var HOb,IOb,JOb=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],KOb=Symbol("yd"),LOb=Symbol("yd"),CP=function(a){var b=this;this.dateFormatter=a;this.timestampMs$=new T.ReplaySubject(1);this.timestampIso$=this.timestampMs$.pipe(R(function(c){return c?(new Date(c)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(R(function(c){if(void 0!==c)return new Date(c)}));this[HOb]=this.timestampDate$.pipe(eg(function(c){if(void 0===c)return(0,T.of)("");switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);
case "time":return b.dateFormatter.formatUserTime(c);case "datetime":return FOb(b.dateFormatter,c);default:return ph(b.mode)}}));this[IOb]=this.timestampDate$.pipe(eg(function(c){return void 0===c?(0,T.of)(""):(0,T.combineLatest)(JOb.map(function(d){return GOb(b.dateFormatter,c,d.id).pipe(R(function(e){return{formatted:e,tzName:d.name}}))})).pipe(MOb)}));this.vars$=(0,T.combineLatest)([this[KOb],this[LOb]]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};
CP.prototype.ngOnInit=function(){};oi.Object.defineProperties(CP.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;b:{if(null!=a){if("number"===typeof a)break b;if("string"===typeof a){a=Date.parse(a);break b}if(a instanceof vj){a=1E3*a.getSeconds();break b}}a=void 0}a=null==a||isNaN(a)?void 0:a;c.call(b,a)}},date:{configurable:!0,enumerable:!0,set:function(a){a&&this.timestampMs$.next(a.valueOf())}}});HOb=KOb;IOb=LOb;
CP.\u0275fac=function(a){return new (a||CP)(C(BP))};CP.\u0275cmp=w({type:CP,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"title"]],template:function(a,b){a&1&&(M(0,Cya,4,5,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.vars$))},dependencies:[Gx,Tx],encapsulation:2,changeDetection:0});
var MOb=(0,T.pipe)(R(function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values()).map(function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));
var NOb=function(a,b,c,d){Qy.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new T.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};Py(this)};U(NOb,Qy);var DP=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};DP.prototype.create=function(a){return new NOb(a,this.checker,this.ngZone,this.document)};DP.\u0275fac=function(a){return new (a||DP)(t(Ny),t(mg),t(mi))};
DP.\u0275prov=hc({token:DP,factory:DP.\u0275fac,providedIn:"root"});
var OOb=["content"],EP=function(a){qI.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new Vw;this.cancelClicked=new Vw;this.saveClicked=new Vw;this.dateSelectionChange=new Vw;this.focusEscaped=new Vw};U(EP,qI);EP.\u0275dir=qI.\u0275dir;
EP.prototype.ngAfterViewInit=function(){var a=this;Dya(this);setTimeout(function(){Dya(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(fg(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||Inb(c)}else{var d;null==(d=a.focusEscapeNotifier)||Oy(d)}else a.focusEscaped.emit(b)})};
var Dya=function(a){var b;if(b=a.date){var c=new GC;c.setTime(b.getTime());b=c}else b=void 0;b&&(a.calendar.activeDate=b);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};EP.\u0275fac=function(a){return new (a||EP)(C(DP))};
EP.\u0275cmp=w({type:EP,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(Ef(PB,7),Ef(OOb,7));if(a&2){var c;Df(c=Gf())&&(b.calendar=c.first);Df(c=Gf())&&(b.content=c.first)}},inputs:{required:"required",date:"date",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel"},outputs:{dateChange:"dateChange",cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},
features:[ee],decls:10,vars:5,consts:[["content",""],[3,"selected","startAt","selectedChange"],[1,"actions"],["class","b-optional-calendar-button-row",4,"ngIf"],[1,"b-calendar-button-row"],["mat-button","",1,"cancel",3,"click"],["mat-button","",1,"save",3,"click"],[1,"b-optional-calendar-button-row"],["class","today","mat-button","",3,"click",4,"ngIf"],["class","none","mat-button","",3,"click",4,"ngIf"],["mat-button","",1,"today",3,"click"],["mat-button","",1,"none",3,"click"]],template:function(a,
b){a&1&&(F(0,"div",null,0)(2,"mat-calendar",1),J("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),G(),F(3,"div",2),M(4,Gya,4,2,"div",3),F(5,"div",4)(6,"button",5),J("click",function(){return b.cancelClicked.emit()}),O(7,"Cancel"),G(),F(8,"button",6),J("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),O(9,"Save"),G()()()());a&2&&(pe("container",b.renderPanel),B(2),E("selected",b.date)("startAt",b.date),B(2),E("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},
dependencies:[Gx,FB,PB,SH],styles:[".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}\n/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var POb=[{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"}],FP=function(a,b,c,d){qI.call(this);var e=this;this.overlay=a;this.element=b;this.ngZone=c;this.hostEl=d;this.openOnEnter=this.openOnClick=!0;this.required=this.focusTrapHost=!1;this.selectedChange=new Vw;this.dateSelectionChange=new Vw;
this.onClose=new Vw;this.opened=!1;this.destroyed$.subscribe(function(){var f;null==(f=e.overlayRef)||f.dispose()})};U(FP,qI);g=FP.prototype;g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(a){a=void 0===a?!1:a;if(this.opened){var b;null==(b=this.overlayRef)||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};g.attach=function(){var a=this,b=new aB(EP),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){QOb(a)})};
g.getPositionStrategy=function(){return RA(SA(TA(ZA(this.overlay.position(),this.element)),8),POb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var QOb=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,T.merge)(a.overlayRef._detachments,a.destroyed$);a.pickerContent.date=a.selected;a.pickerContent.required=a.required;a.pickerContent.trapFocus=!a.focusTrapHost;a.focusTrapHost&&a.pickerContent.focusEscaped.pipe(fg(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(fg(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(fg(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,T.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(uf(function(c){return"Escape"===c.code}))).pipe(fg(b)).subscribe(function(){a.close()})}};FP.\u0275fac=function(a){return new (a||FP)(C(gB),C(sd),C(mg),C(sd))};
FP.\u0275dir=w({type:FP,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&J("click",function(c){b.openOnClick&&b.open();c.preventDefault();c.stopPropagation()})("keydown.enter",function(c){b.openOnEnter&&b.open();c.preventDefault();c.stopPropagation()})("keydown.tab",function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Oy(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(Inb(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&ke("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:["bDateTimePickerToggleFocusTrapHost","focusTrapHost"],required:["bDateTimePickerToggleRequired","required"],selected:["bDateTimePickerToggleSelected","selected"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],features:[ee]});
var ROb=["pickerToggle"],GP=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new Vw;this.destroyed$=new T.ReplaySubject};GP.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};GP.\u0275fac=function(a){return new (a||GP)};
GP.\u0275cmp=w({type:GP,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&Ef(ROb,7);if(a&2){var c;Df(c=Gf())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],decls:4,vars:7,consts:[["mat-stroked-button","","type","button","bDateTimePickerToggle","",1,"gmat-button",3,"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected",
"bDateTimePickerToggleFocusTrapHost","bDateTimePickerToggleSelectedChange"],["pickerToggle","bDateTimePickerToggle"],["mode","date",3,"date",4,"ngIf"],[4,"ngIf"],["mode","date",3,"date"]],template:function(a,b){a&1&&(F(0,"button",0,1),J("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),M(2,Hya,1,1,"b-formatted-date-time",2),M(3,Iya,2,0,"ng-container",3),G());a&2&&(E("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),ke("aria-labelledby",b.customAriaLabelledBy),B(2),E("ngIf",b.value),B(1),E("ngIf",!b.value))},dependencies:[FP,CP,FB,Gx],styles:["\n/*# sourceMappingURL=date_time_input.css.map */"]});
ri(qi(function(){}));qi(function(){});new od("MatList");new od("MatNavList");var HP=function(){};HP.\u0275fac=function(a){return new (a||HP)};HP.\u0275dir=w({type:HP,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var IP=function(){};IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275dir=w({type:IP,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});
var SOb=["text"],TOb=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],UOb=qi(function(){}),VOb=qi(function(){}),WOb={provide:Ix,useExisting:dc(function(){return JP}),multi:!0},XOb=function(a,b){this.source=a;this.options=b},KP=function(a,b,c){var d=VOb.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new Vw;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
U(KP,VOb);g=KP.prototype;g.ngOnInit=function(){var a=this,b=this.selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetector.markForCheck()});this._inputsInitialized=!0};g.ngAfterContentInit=function(){mla(this._lines,this._element)};
g.ngOnDestroy=function(){var a=this;this.selected&&Promise.resolve().then(function(){a.selected=!1});var b=this._hasFocus,c=this.selectionList._removeOptionFromList(this);b&&c&&c.focus()};g.toggle=function(){this.selected=!this.selected};g.focus=function(){this._element.nativeElement.focus()};g.getLabel=function(){return this._text?this._text.nativeElement.textContent||"":""};g._isRippleDisabled=function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple};
g._handleClick=function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent([this]))};g._handleFocus=function(){this.selectionList._setFocusedOption(this);this._hasFocus=!0};g._handleBlur=function(){this.selectionList._onTouched();this._hasFocus=!1};g._getHostElement=function(){return this._element.nativeElement};
g._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetector.markForCheck();return!0};g._markForCheck=function(){this._changeDetector.markForCheck()};
oi.Object.defineProperties(KP.prototype,{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&&!this.selectionList.compareWith(a,this.value)&&this._inputsInitialized&&(this.selected=!1);this._value=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},
set:function(a){a=Yg(a);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},selected:{configurable:!0,enumerable:!0,get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(a){a=Yg(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});KP.\u0275fac=function(a){return new (a||KP)(C(sd),C(zx),C(dc(function(){return JP})))};
KP.\u0275cmp=w({type:KP,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(Ff(c,HP,5),Ff(c,IP,5),Ff(c,uB,5));if(a&2){var d;Df(d=Gf())&&(b._avatar=d.first);Df(d=Gf())&&(b._icon=d.first);Df(d=Gf())&&(b._lines=d)}},viewQuery:function(a,b){a&1&&Ef(SOb,5);if(a&2){var c;Df(c=Gf())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&J("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(ke("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1),pe("mat-list-item-disabled",b.disabled)("mat-list-item-with-avatar",b._avatar||b._icon)("mat-primary","primary"===b.color)("mat-accent","primary"!==b.color&&"warn"!==b.color)("mat-warn","warn"===b.color)("mat-list-single-selected-option",b.selected&&!b.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",
selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[ee],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(a,b){a&1&&(Ae(TOb),F(0,"div",0),H(1,"div",1),M(2,Jya,1,2,"mat-pseudo-checkbox",
2),F(3,"div",3,4),Be(5),G(),Be(6,1),G());a&2&&(pe("mat-list-item-content-reverse","after"==b.checkboxPosition),B(1),E("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),B(1),E("ngIf",b.selectionList.multiple))},dependencies:[yB,zB,Gx],encapsulation:2,changeDetection:0});
var JP=function(a,b,c){var d=UOb.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new Vw;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new IA(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new T.Subject;d._onTouched=function(){};return d};U(JP,UOb);g=JP.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=ypb(xpb(pA(oA(lA(new uA(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.pipe(fg(this._destroyed)).subscribe(function(){a._allowFocusEscape()});this.options.changes.pipe(dg(null),fg(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(fg(this._destroyed)).subscribe(function(b){if(b.added)for(var c=r(b.added),
d=c.next();!d.done;d=c.next())d.value.selected=!0;if(b.removed)for(b=r(b.removed),d=b.next();!d.done;d=b.next())d.value.selected=!1});this._focusMonitor.monitor(this._element).pipe(fg(this._destroyed)).subscribe(function(b){if("keyboard"===b||"program"===b){for(var c=b=0;c<a.options.length;c++){var d=void 0;if(null==(d=a.options.get(c))?0:d.selected){b=c;break}}a._keyManager.setActiveItem(b)}})};g.ngOnChanges=function(a){var b=a.disableRipple;a=a.color;(b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};
g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._element);this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};g.focus=function(a){this._element.nativeElement.focus(a)};g.selectAll=function(){this._setAllOptionsSelected(!0)};g.deselectAll=function(){return this._setAllOptionsSelected(!1)};g._setFocusedOption=function(a){qA(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?qA(this._keyManager,a-1):0===a&&1<this.options.length&&qA(this._keyManager,Math.min(a+1,this.options.length-1)));return this._keyManager.activeItem};
g._keydown=function(a){var b=a.keyCode,c=this._keyManager,d=c.activeItemIndex,e=ki(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!ki(a,"ctrlKey")||0<c._pressedLetters.length)c.onKeydown(a);else e=this.options.some(function(f){return!f.disabled&&!f.selected}),this._setAllOptionsSelected(e,!0,!0),a.preventDefault()}this.multiple&&(38===b||40===b)&&a.shiftKey&&c.activeItemIndex!==d&&this._toggleFocusedOption()};
g._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};g._emitChangeEvent=function(a){this.selectionChange.emit(new XOb(this,a))};g.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};g.setDisabledState=function(a){this.disabled=a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};
g._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};g._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};
g._toggleFocusedOption=function(){var a=this._keyManager.activeItemIndex;null!=a&&this._isValidIndex(a)&&(!(a=this.options.toArray()[a])||a.disabled||!this._multiple&&a.selected||(a.toggle(),this._emitChangeEvent([a])))};g._setAllOptionsSelected=function(a,b,c){var d=[];this.options.forEach(function(e){b&&e.disabled||!e._setSelected(a)||d.push(e)});d.length&&(this._reportValueChange(),c&&this._emitChangeEvent(d));return d};g._isValidIndex=function(a){return 0<=a&&a<this.options.length};
g._getOptionIndex=function(a){return this.options.toArray().indexOf(a)};g._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};g._allowFocusEscape=function(){var a=this;this._tabIndex=-1;setTimeout(function(){a._tabIndex=0;a._changeDetector.markForCheck()})};g._updateTabIndex=function(){this._tabIndex=0===this.options.length?-1:0};
oi.Object.defineProperties(JP.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Yg(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Yg(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new IA(this._multiple,this.selectedOptions.selected))}}});JP.\u0275fac=function(a){return new (a||JP)(C(sd),C(zx),C(Wz))};
JP.\u0275cmp=w({type:JP,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&Ff(c,KP,5);if(a&2){var d;Df(d=Gf())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._keydown(c)});a&2&&ke("aria-multiselectable",b.multiple)("aria-disabled",b.disabled.toString())("tabindex",b._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",
multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Je([WOb]),ee,Fc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ae(),Be(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],
encapsulation:2,changeDetection:0});
var LP=function(){};LP.\u0275fac=function(a){return new (a||LP)};LP.\u0275mod=xc({type:LP});LP.\u0275inj=ic({imports:[vB,CB,kB,DB,ay,vB,kB,DB,XH]});
var YOb=["filterInput"],MP=function(a){qI.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new Vw;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};U(MP,qI);MP.\u0275dir=qI.\u0275dir;g=MP.prototype;g.ngOnInit=function(){this.initValues()};g.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};g.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(eg(function(){return(0,T.timer)(0)}),fg(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){Ci(this.trigger)};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var ZOb=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
MP.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),$Ob(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};MP.prototype.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||void 0!==b?c!==b:!1})};
MP.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=r(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);$Ob(this)};
var $Ob=function(a){a.sortedValues=Array.from(a.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:!1===c?-1:0)-(b?1:!1===b?-1:0)})},Lya=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};MP.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(Pi(a)):a};MP.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
MP.\u0275fac=function(a){return new (a||MP)(C(AP))};
MP.\u0275cmp=w({type:MP,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(Ef(pF,5),Ef(YOb,5));if(a&2){var c;Df(c=Gf())&&(b.trigger=c.first);Df(c=Gf())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[ee,Fc],decls:13,vars:7,consts:[["mat-button","","type","button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["customFieldMenu",
"matMenu"],["class","multi-edit-menuitem","role","option",3,"title",4,"ngFor","ngForOf"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title"],[3,"checked","indeterminate","change","click"],["mat-input","","step","any",3,"type","ngModel","placeholder","keydown","click","ngModelChange"],["filterInput",""],["mat-menu-item","",3,"click"],
[3,"value","valueChange"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,b){a&1&&(F(0,"button",0)(1,"span"),O(2),G(),H(3,"b-icon",1),G(),F(4,"mat-menu",null,2),M(6,Kya,3,4,"div",3),H(7,"mat-divider"),F(8,"div",4),M(9,Mya,2,3,"input",5),G(),M(10,Nya,1,0,"mat-divider",6),M(11,Oya,2,0,"div",7),M(12,Pya,4,1,"div",6),G());if(a&2){var c=Fe(5);E("matMenuTriggerFor",c);B(2);He(b.getLabel());B(4);E("ngForOf",ZOb(b));B(3);E("ngIf","REPEATED_DATE"!==
b.type);B(1);E("ngIf",Lya(b));B(1);E("ngIf",Lya(b));B(1);E("ngIf","REPEATED_DATE"===b.type)}},dependencies:[Kx,Gx,mF,kF,pF,SH,tH,FB,BO,Mg,py,vy,GP],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}\n/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});
var NP=function(){this.relayOnly=!1;this.keydown$=new T.Subject};NP.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};oi.Object.defineProperties(NP.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});NP.\u0275fac=function(a){return new (a||NP)};
NP.\u0275dir=w({type:NP,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b.onKeydown(c)});a&2&&ke("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});
var aPb=0,OP=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+aPb;this.closePanel$=new T.ReplaySubject(1);aPb++};OP.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};OP.\u0275fac=function(a){return new (a||OP)(C(NP,8))};
OP.\u0275cmp=w({type:OP,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&Ef(Af,7);if(a&2){var c;Df(c=Gf())&&(b.templateRef=c.first)}},exportAs:["onedevPopupPanel"],ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(Ae(),M(0,Qya,2,1,"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 PP=function(a,b,c,d){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new Vw;this.closed=new Vw;this.isOpen=!1;this.destroyed$=new T.ReplaySubject(1);this.closingActionsSubscription=T.Subscription.EMPTY};PP.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
PP.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new bB(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=bPb(this).pipe(fg(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
PP.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var a;if(null==(a=this.overlayRef)?0:a.hasAttached())this.overlayRef.detach(),this.overlayRef.dispose();this.focusTrap&&this.focusTrap.destroy();this.closingActionsSubscription.unsubscribe();this.element.nativeElement.focus();this.closed.emit()}};PP.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 bPb=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,T.merge)(b,c,d):(0,T.merge)(c,d)};PP.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),Jnb(this.focusTrap))};
PP.prototype.getPositionStrategy=function(){return RA(SA(TA(ZA(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"}])};PP.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
oi.Object.defineProperties(PP.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});PP.\u0275fac=function(a){return new (a||PP)(C(gB),C(sd),C(Bf),C(jA))};
PP.\u0275dir=w({type:PP,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&ke("aria-disabled",b.disabled)("aria-expanded",b.isOpen||null)("aria-controls",b.isOpen?b.popupPanel.id:null)},inputs:{onedevPopupPanelTriggerFor:"onedevPopupPanelTriggerFor",disabled:["onedevPopupPanelTriggerDisabled","disabled"],closeOnBackdropClick:["onedevPopupPanelTriggerCloseOnBackdropClick","closeOnBackdropClick"]},outputs:{opened:"onedevPopupPanelTriggerOpened",
closed:"onedevPopupPanelTriggerClosed"},exportAs:["onedevPopupPanelTrigger"]});
var cPb=0,QP=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+cPb;cPb+=1};QP.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};QP.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};QP.\u0275fac=function(a){return new (a||QP)(C(zx))};
QP.\u0275dir=w({type:QP,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ye("id",b.id),pe("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var RP=function(){};RP.\u0275fac=function(a){return new (a||RP)};RP.\u0275mod=xc({type:RP});RP.\u0275inj=ic({});
var Sya=function(){return{$implicit:void 0}},Vya=function(a){return{$implicit:a}},SP=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new Vw;this.selected=new Vw;this.destroyed$=new T.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=SP.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=mA(new tA(this.viewOptions))};g.ngOnChanges=function(a){a.value&&dPb(this)};
g.isSelected=function(a){return this.value===a};g.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};var dPb=function(a){if(a.keyManager)if(a.includeEmptyOption&&a.isSelected(void 0))a.keyManager.setActiveItem(0);else{var b=a.options.findIndex(function(c){return a.isSelected(c)});-1!==b&&a.keyManager.setActiveItem(a.includeEmptyOption?b+1:b)}};SP.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
SP.prototype.handleKeydown=function(a){var b=this;a.pipe(fg(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;"ArrowUp"===d||"ArrowDown"===d?(c.preventDefault(),b.keyManager.onKeydown(c)):"Home"===d||"End"===d?(c.preventDefault(),"Home"===d?rA(b.keyManager):sA(b.keyManager)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};SP.\u0275fac=function(a){return new (a||SP)(C(NP,8))};
SP.\u0275cmp=w({type:SP,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&Ef(QP,5);if(a&2){var c;Df(c=Gf())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&J("focus",function(){return dPb(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,ke("aria-activedescendant",a)("aria-disabled",b.disabled)("aria-label",b.label))},inputs:{value:"value",options:"options",
optionTemplate:"optionTemplate",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label"},outputs:{valueChange:"valueChange",selected:"selected"},features:[Fc],decls:4,vars:2,consts:[["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["optionDisplay",""],["role","option","onedevListOption","",3,"option","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["customOptionDisplay",""],["emptyOption",""],["aria-label",
"empty"]],template:function(a,b){a&1&&(M(0,Tya,2,5,"div",0),M(1,Xya,2,1,"ng-container",1),M(2,cza,3,2,"ng-template",null,2,Mf));a&2&&(E("ngIf",b.includeEmptyOption),B(1),E("ngForOf",b.options))},dependencies:[Kx,Gx,Qx,QP],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)}"],
changeDetection:0});
var TP=function(){};
var ePb=["trigger"],eza=function(a){return{$implicit:a}},fPb=0,UP=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new Vw;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+fPb;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;fPb++};U(UP,TP);g=UP.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};g.writeValue=function(a){this.val=a};g.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};g.isActive=function(){return this.popupTrigger.isOpen||this.focused};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};var gPb=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};UP.prototype.setDisabledState=function(a){this.disabled=a};oi.Object.defineProperties(UP.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});UP.\u0275fac=function(a){return new (a||UP)(bd("required"))};
UP.\u0275cmp=w({type:UP,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&Ef(ePb,7);if(a&2){var c;Df(c=Gf())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",openPopupOnInit:"openPopupOnInit"},outputs:{valueChange:"valueChange"},features:[Je([{provide:Ix,useExisting:dc(function(){return UP}),
multi:!0},{provide:TP,useExisting:dc(function(){return UP}),multi:!0}]),ee],decls:13,vars:17,consts:[["onedevPopupPanelTrigger","",3,"onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor","focus","blur","click","closed"],["trigger","onedevPopupPanelTrigger"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["optionTemplateOrTextLabel",""],["textLabel",""],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],
["panel","onedevPopupPanel"],["tabindex","0",1,"single-select-panel",3,"value","includeEmptyOption","options","optionTemplate","label","valueChange","selected"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["emptyValue",""],["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=x();F(0,"button",0,1);J("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){z(c);var f=Fe(1);return A(f.open())})("closed",function(){b.onTouched()});F(2,"span",2);O(3);G();M(4,fza,2,4,"ng-container",3);M(5,iza,1,2,"ng-template",null,4,Mf);M(7,lza,3,2,"ng-template",null,5,Mf);M(9,mza,2,0,"svg",6);G();F(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);J("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){z(c);var f=Fe(1);return A(f.close())});G()()}if(a&2){var d=Fe(6),e=Fe(11);pe("active",b.isActive());E("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);ke("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);He(gPb(b));B(1);E("ngIf",b.valueTemplate)("ngIfElse",d);B(5);E("ngIf",b.displayArrowIcon);B(1);E("relayOnly",!0);B(2);E("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[Gx,Qx,NP,SP,OP,PP],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);-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;font-size:13px;padding:4px 4px 4px 6px;text-align:start}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.arrow-icon[_ngcontent-%COMP%]{margin-left:auto;width:18px;height:18px;color:var(--icon,#5f6368);fill:currentColor}.single-select-panel[_ngcontent-%COMP%]{display:block;min-width:85px;max-height:300px}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});
var tza=function(){return[]},VP=function(a,b){this.data=a;this.dialogRef=b;this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=[];this.bulkEditOps=[];this.issues=a};g=VP.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=r(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=r(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(Oi(h),e[h]||void 0)}f=r(b);for(h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;var q=d[h],u=e[h],y=void 0,D=null==(y=q)?void 0:y.type;if(q)if("REPEATED_DATE"===D||"REPEATED_ENUM"===D||"REPEATED_NUMERIC"===D||"REPEATED_TEXT"===
D){k=this.repeatedCustomFieldsMap.get(h)||new Map;q=0===k.size;u=hPb(u);y=Array.from(k.keys()).concat(u);y=r(y);for(D=y.next();!D.done;D=y.next())D=D.value,u.includes(D)?k.has(D)||k.set(D,q||null):k.set(D,null);this.repeatedCustomFieldsMap.set(h,k)}else(!u&&void 0!==k||u&&!Hi(u,k))&&b.set(h,null);else b.delete(h)}d=r(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Ii(f))}this.customFields=Array.from(b.keys()).map(function(I){return a.get(I)}).filter(function(I){return I});
this.customFields=this.customFields.map(function(I){var N=b.get(I.customFieldId);I.hasMultipleValues=null===N;N?I=Object.assign(N,I):I.hasMultipleValues||"ENUM"!==I.type||(I.enumValue="");return I});c=r(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Ii(d))};
g.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};g.getCustomFieldName=function(a){return a.name};g.isCustomFieldRequired=function(a){return a.required};g.getCustomFieldAllowedValues=function(a){return a.allowedValue};g.getCustomFieldType=function(a){return a.type};
var wo=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},hPb=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()}):[]},rza=function(a){return a?Qk(a):null},vza=function(a,b,c){for(var d=r(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(y){return y.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(y){return y.actions.length});if(c.valueChanged){d={};e=r(a.issues);for(var f=e.next();!f.done;d={$jscomp$loop$prop$issueValues$1686:d.$jscomp$loop$prop$issueValues$1686,$jscomp$loop$prop$action$1687:d.$jscomp$loop$prop$action$1687},f=e.next()){f=f.value;var h=uja(f.customFieldValueMap,function(y){return y.customFieldId===b});d.$jscomp$loop$prop$issueValues$1686=hPb(h);c.valueMap.forEach(function(y){return function(D,I){D&&!y.$jscomp$loop$prop$issueValues$1686.includes(I)?
y.$jscomp$loop$prop$issueValues$1686.push(I):!1===D&&(y.$jscomp$loop$prop$issueValues$1686=y.$jscomp$loop$prop$issueValues$1686.filter(function(N){return N!==I}))}}(d));h=a.originalCustomFields.get(b).type;var k=[],q=[];"REPEATED_DATE"==h?k=d.$jscomp$loop$prop$issueValues$1686.map(function(y){return Rk(Pi(y))}):"REPEATED_NUMERIC"==h&&(q=d.$jscomp$loop$prop$issueValues$1686.map(function(y){return Number(y)}));var u=new cJ({customFieldId:b});switch(h){case "REPEATED_TEXT":u.repeatedTextValue={values:d.$jscomp$loop$prop$issueValues$1686};
break;case "REPEATED_DATE":u.repeatedDateValue={values:k};break;case "REPEATED_ENUM":u.repeatedEnumValue={values:d.$jscomp$loop$prop$issueValues$1686};break;case "REPEATED_NUMERIC":u.repeatedNumericValue={values:q}}d.$jscomp$loop$prop$action$1687={fieldName:"customField",customFieldValue:u,actionType:u.isEmpty()?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(y){return function(D){return D.actions.some(function(I){return Hi(y.$jscomp$loop$prop$action$1687,I)})}}(d));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):
a.bulkEditOps.push({actions:[d.$jscomp$loop$prop$action$1687],issueIds:[f.issueId]})}}},iPb=function(a){var b=a.customFields.filter(function(h){return!h.type.includes("REPEATED")&&!Hi(h,a.originalCustomFields.get(h.customFieldId))}),c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=new cJ({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":d.numericValue=
e.numericValue||void 0}if(e=d.isEmpty())d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var f=a.issues.map(function(h){return h.issueId});b=a.bulkEditOps.findIndex(function(h){a:if(h=h.issueIds,Fa(f)&&Fa(h)&&f.length==h.length){for(var k=f.length,q=0;q<k;q++)if(f[q]!==h[q]){h=!1;break a}h=!0}else h=!1;return h});-1!==b?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:f})}};
VP.\u0275fac=function(a){return new (a||VP)(C(aC),C(QB))};
VP.\u0275cmp=w({type:VP,selectors:[["b-bulk-custom-field-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"click"],[1,"bv2-create-adv-field"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],[3,"ngIf","ngIfElse"],["multipleValues",
""],[3,"ngSwitch"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["step","any","name","customInput","type","number",3,"ngModel","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"value","options","valueChange",4,"ngSwitchCase"],[3,"type","originalValueMap","enumChoices","onSave",4,"ngSwitchDefault"],["name","customInput","placeholder","no value","type","text",3,"ngModel","ngModelChange"],["step","any","name","customInput","type","number",
3,"ngModel","ngModelChange"],[3,"value","required","customAriaLabelledBy","customFormId","valueChange"],[3,"value","options","valueChange"],[3,"type","originalValueMap","enumChoices","onSave"],["title","Clear values",3,"click"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Update custom fields"),G(),F(2,"mat-dialog-content"),M(3,nza,2,0,"div",1),M(4,zza,8,6,"div",2),G(),F(5,"mat-dialog-actions")(6,"button",3),J("class",function(){return b.dialogRef.close()}),O(7,"Cancel"),G(),F(8,"button",4),J("click",
function(){iPb(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),O(9," Save "),G()());a&2&&(B(3),E("ngIf",0===b.customFields.length),B(1),E("ngForOf",b.customFields))},dependencies:[Kx,Gx,Mx,Nx,Ox,dC,eC,fC,gC,UP,MP,Mg,xy,py,vy,GP,FB,wF],encapsulation:2});
var WP=function(){};WP.\u0275fac=function(a){return new (a||WP)};WP.\u0275mod=xc({type:WP});WP.\u0275inj=ic({imports:[ay]});
var XP=function(){};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275mod=xc({type:XP});XP.\u0275inj=ic({imports:[ay,AF,wG,fH,XH,eA]});
var jPb=function(a){this.patternParts_=[];this.dateTimeSymbols_=wC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
jPb.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(" "==e)for(0<c.length&&(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(0<="GyMdkHmsSEDabBhKzZvQL".indexOf(e)){0<c.length&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=
"");for(var f=a.charAt(d),h=d+1;h<a.length&&a.charAt(h)==f;)h++;f=h-d;0>=f?h=!1:(h="MydhHmsSDkK".indexOf(e),h=0<h||0==h&&3>f);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:h});d+=f-1}else"'"==e?d+1<a.length&&"'"==a.charAt(d+1)?(c+="'",d++):b=!0:c+=e}0<c.length&&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};jPb.prototype.applyStandardPattern_=function(a){11<a&&(a=10);if(4>a)var b=this.dateTimeSymbols_.DATEFORMATS[a];else 8>a?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)};
jPb.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(0<f.count&&(0>"ahHkKm".indexOf(f.text.charAt(0))||2<f.count||f.abutStart))throw Error("zd`"+f.text.charAt(0));}f=new kPb;c=[0];for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(0==this.patternParts_[h].count){a:{var k=a;var q=this.patternParts_[h],u=d;if(" "==q.text.charAt(0)){if(q=c[0],lPb(k,c),c[0]>q){k=!0;break a}}else{if(k.indexOf(q.text,
c[0])==c[0]){c[0]+=q.text.length;k=!0;break a}if(u&&0==q.text.indexOf(k.substring(c[0]))){c[0]+=k.length-c[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;u=h;var y=c[0],D=0;for(k=u;k<this.patternParts_.length;k++){var I=this.patternParts_[k],N=I.count;if(0===N)break;if(k==u&&(N-=D,D++,0==N)){k=0;break a}var L=k>u&&I.numeric,S=c[0];if(!mPb(this,q,c,I,N,f,!1)||L&&c[0]-S<N)k=u-1,c[0]=y}k-=u}if(0>=k)return 0;h+=k-1}else if(!mPb(this,a,c,this.patternParts_[h],0,
f,d))return 0}a:{a=e;if(null==b)throw Error("Ad");void 0!=f.era&&void 0!=f.year&&0==f.era&&0<f.year&&(f.year=-(f.year-1));void 0!=f.year&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);void 0!=f.month&&b.setMonth(f.month);void 0!=f.day?b.setDate(f.day):(e=frb(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));"function"===typeof b.setHours&&(void 0==f.hours&&(f.hours=b.getHours()),void 0!=f.ampm&&0<f.ampm&&12>f.hours&&(f.hours+=12),b.setHours(f.hours));"function"===typeof b.setMinutes&&void 0!=f.minutes&&
b.setMinutes(f.minutes);"function"===typeof b.setSeconds&&void 0!=f.seconds&&b.setSeconds(f.seconds);"function"===typeof b.setMilliseconds&&void 0!=f.milliseconds&&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&&24<=f.hours||f.minutes&&60<=f.minutes||f.seconds&&60<=f.seconds||f.milliseconds&&1E3<=f.milliseconds))b=!1;else{void 0!=f.tzOffset&&b.setTime(b.getTime()+6E4*(f.tzOffset-b.getTimezoneOffset()));f.ambiguousYear&&
(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(void 0!=f.dayOfWeek)if(void 0==f.day)f=(7+f.dayOfWeek-b.getDay())%7,3<f&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=a&&b.setDate(b.getDate()+(0<f?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var mPb=function(a,b,c,d,e,f,h){lPb(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return YP(b,c,[a.dateTimeSymbols_.ERAS],function(k){f.era=k}),!0;case "M":case "L":return nPb(a,b,c,e,d,f);case "E":return YP(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){f.dayOfWeek=k});case "B":case "b":case "a":return a=YP(b,c,[a.dateTimeSymbols_.AMPMS],function(k){f.ampm=k},h),h?a:!0;case "y":return oPb(a,b,c,d,e,f);case "Q":return YP(b,c,[a.dateTimeSymbols_.QUARTERS,
a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return ZP(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return pPb(a,b,c,e,f);case "h":case "K":case "H":case "k":return a=ZP(a,b,c,d,e,function(k){f.hours="h"===d.text.charAt(0)&&12===k?0:k},h),h?a:!0;case "m":return a=ZP(a,b,c,d,e,function(k){f.minutes=k},h),h?a:!0;case "s":return ZP(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return qPb(a,b,c,f);default:return!1}},oPb=function(a,b,c,d,e,f){var h=c[0];
e=$P(a,b,c,e);null===e&&(e=$P(a,b,c,0,!0));if(null===e)return!1;0<=e&&2==c[0]-h&&2==d.count?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=100*Math.floor(b/100)+(a<c?100:0),f.year=a):f.year=e;return!0},nPb=function(a,b,c,d,e,f){return e.numeric&&ZP(a,b,c,e,d,function(h){f.month=h-1})?!0:YP(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},pPb=function(a,b,c,d,e){var f=
c[0];a=$P(a,b,c,d);if(null===a)return!1;c=c[0]-f;e.milliseconds=3>c?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},qPb=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=$P(a,b,c,0,!0);if(null===f)return!1;if(c[0]<b.length&&":"==b.charAt(c[0])){var h=60*f;c[0]++;f=$P(a,b,c,0);if(null===f)return!1;h+=f}else h=f,h=24>h&&3>=c[0]-e?60*h:h%100+h/100*60;d.tzOffset=-h;return!0},ZP=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=$P(a,b,
c,e);if(null===a)return!1;if(h&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},YP=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,u=0,y=null,D=a.substring(f[0]).toLowerCase(),I=0;I<k.length;I++){var N=k[I].toLowerCase();if(q&&0==N.indexOf(D)){u=D.length;y=I;break}k[I].length>u&&0==D.indexOf(N)&&(u=k[I].length,y=I)}null!==y&&(f[0]+=u);f=y;if(null!==f)return d(f),!0}return!1},lPb=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&
(b[0]+=a[0].length)},$P=function(a,b,c,d,e){b=0<d?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var h=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=h&&9>=h?String.fromCharCode(h+48):b.charAt(f))}b=d.join("")}else b=b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},kPb=function(){};kPb.prototype.ambiguousYear=!1;
var rPb=Array(31).fill(0).map(function(a,b){return""+(b+1)}),aQ=function(){var a=lB.apply(this,arguments)||this;a.locale=wC;return a};U(aQ,lB);g=aQ.prototype;g.setLocale=function(){throw Error("Bd");};g.getYear=function(a){return a.getYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};g.getMonthNames=function(a){switch(a){case "long":return this.locale.MONTHS;case "narrow":return this.locale.NARROWMONTHS;default:return this.locale.SHORTMONTHS}};
g.getDateNames=function(){return rPb};g.getDayOfWeekNames=function(a){switch(a){case "long":return this.locale.WEEKDAYS;case "narrow":return this.locale.NARROWWEEKDAYS;default:return this.locale.SHORTWEEKDAYS}};g.getYearName=function(a){return""+a.getFullYear()};g.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};g.getNumDaysInMonth=function(a){return frb(a.getFullYear(),a.getMonth())};g.clone=function(a){return a.clone()};g.createDate=function(a,b,c){return new GC(a,b,c)};
g.today=function(){return new GC};g.parse=function(a,b){if(""===a)return null;b=new jPb(b);var c=new GC(new Date(a));b.parse(a,c);return c};g.format=function(a,b){if(!this.isValid(a))throw Error("Cd");return(new xi(b)).format(a)};g.addCalendarYears=function(a,b){a=a.clone();a.add(new to(b));return a};g.addCalendarMonths=function(a,b){a=a.clone();a.add(new to(0,b));return a};g.addCalendarDays=function(a,b){a=a.clone();a.add(new to(0,0,b));return a};g.isDateInstance=function(a){return a instanceof GC};
g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new GC(NaN)};g.sameDate=function(a,b){return a&&b?(new Ni(a)).equals(b):!1};aQ.\u0275fac=function(){var a;return function(b){return(a||(a=hd(aQ)))(b||aQ)}}();aQ.\u0275prov=hc({token:aQ,factory:aQ.\u0275fac});
var sPb={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 a zzzz"},bQ=sPb;bQ=sPb;
var cQ=wC.DATEFORMATS[3];cQ=cQ.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===cQ&&(cQ="MM/dd/yyyy");var tPb={parse:{dateInput:cQ},display:{dateInput:cQ,monthYearLabel:bQ.YEAR_MONTH_ABBR,dateA11yLabel:bQ.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:bQ.YEAR_MONTH_FULL}};
var dQ=function(){};dQ.\u0275fac=function(a){return new (a||dQ)};dQ.\u0275mod=xc({type:dQ});dQ.\u0275inj=ic({providers:[{provide:lB,useClass:aQ},{provide:pB,useValue:tPb}],imports:[XP,WP,AF,wG,ay]});
var eQ=function(){};eQ.\u0275fac=function(a){return new (a||eQ)};eQ.\u0275mod=xc({type:eQ});eQ.\u0275inj=ic({imports:[ay,qF,XH,LP,WH,wG,vC,GO,Ky,dQ]});
var fQ=function(){};fQ.\u0275fac=function(a){return new (a||fQ)};fQ.\u0275mod=xc({type:fQ});fQ.\u0275inj=ic({imports:[ay]});
var gQ=function(){};gQ.\u0275fac=function(a){return new (a||gQ)};gQ.\u0275mod=xc({type:gQ});gQ.\u0275inj=ic({imports:[ay,jB,fB,wG,gH,eA,eN]});
var hQ=function(){};hQ.\u0275fac=function(a){return new (a||hQ)};hQ.\u0275mod=xc({type:hQ});hQ.\u0275inj=ic({imports:[ay,wG,RP]});
var iQ=function(){};iQ.\u0275fac=function(a){return new (a||iQ)};iQ.\u0275mod=xc({type:iQ});iQ.\u0275inj=ic({imports:[ay,AF,wG,Ky,fQ,hQ,gQ]});
var jQ=function(){};jQ.\u0275fac=function(a){return new (a||jQ)};jQ.\u0275mod=xc({type:jQ});jQ.\u0275inj=ic({imports:[ay,hC,iQ,eQ,Ky,dQ,wG,gH]});
var uPb=new od("GMAT_CHECKBOX_OPTION");
var vPb=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),kQ=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};kQ.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,v(vPb.values())),this.elementRef.nativeElement.classList.add(vPb.get(this.color)))};
kQ.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};kQ.\u0275fac=function(a){return new (a||kQ)(C(sd),C(uPb,8))};kQ.\u0275dir=w({type:kQ,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&pe("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});
var lQ=function(){};lQ.\u0275fac=function(a){return new (a||lQ)};lQ.\u0275mod=xc({type:lQ});lQ.\u0275inj=ic({});
var mQ=function(){this.ariaLabelledby=this.ariaLabel="";this.indeterminate=this.disabled=this.checked=!1;this.label="";this.wrap=!1;this.labelPosition="after";this.tooltip="";this.change=new Vw;this.click=new Vw;this.labelClick=new Vw};mQ.prototype.onClick=function(a){this.click.emit(a)};mQ.\u0275fac=function(a){return new (a||mQ)};
mQ.\u0275cmp=w({type:mQ,selectors:[["b-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&pe("wrap",b.wrap)},inputs:{ariaLabel:"ariaLabel",ariaLabelledby:"ariaLabelledby",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",wrap:"wrap",labelPosition:"labelPosition",tooltip:"tooltip"},outputs:{change:"change",click:"click",labelClick:"labelClick"},decls:3,vars:8,consts:[["gmat-checkbox","",3,"aria-label","aria-labelledby","checked","disabled","indeterminate","labelPosition",
"matTooltip","click","change"],[3,"click"]],template:function(a,b){a&1&&(F(0,"mat-checkbox",0),J("click",function(c){return b.onClick(c)})("change",function(c){b.checked=c.checked;b.change.emit(c.checked)}),F(1,"span",1),J("click",function(c){b.labelClick.emit(c)}),O(2),G()());a&2&&(E("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("checked",b.checked)("disabled",b.disabled)("indeterminate",b.indeterminate)("labelPosition",b.labelPosition)("matTooltip",b.tooltip),B(2),He(b.label))},
dependencies:[kQ,BO,wF],styles:[".wrap[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-label[_ngcontent-%COMP%]{white-space:normal !important}mat-checkbox[_ngcontent-%COMP%]:focus-within   div.mat-checkbox-ripple[_ngcontent-%COMP%]{left:calc(50% - 15px);top:calc(50% - 15px);height:30px;width:30px;background-color:#dadce0;background-color:var(--c300);z-index:auto;border-radius:100%}"],changeDetection:0});var nQ=function(){};nQ.\u0275fac=function(a){return new (a||nQ)};
nQ.\u0275mod=xc({type:nQ});nQ.\u0275inj=ic({imports:[lQ,GO,gH]});
var oQ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Vw;this.clickHandler=function(c){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}};oQ.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};oQ.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};oQ.\u0275fac=function(a){return new (a||oQ)(C(sd))};
oQ.\u0275dir=w({type:oQ,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var pQ=function(){};pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275mod=xc({type:pQ});pQ.\u0275inj=ic({});
var qQ=function(a){this.codefont$=a.codeFont$};qQ.\u0275fac=function(a){return new (a||qQ)(t(PI))};qQ.\u0275prov=hc({token:qQ,factory:qQ.\u0275fac,providedIn:"root"});
var wPb=function(a){return["chip","gmat-caption",a]},rQ=function(){this.variant="grey";this.isTall=!1};rQ.\u0275fac=function(a){return new (a||rQ)};
rQ.\u0275cmp=w({type:rQ,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&pe("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1),Be(2),G()());a&2&&E("ngClass",Le(1,wPb,b.variant))},dependencies:[Jx],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)}"],
changeDetection:0});var sQ=function(a){this.chip=a};sQ.\u0275fac=function(a){return new (a||sQ)(C(rQ))};sQ.\u0275dir=w({type:sQ,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&oe("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")}});
var tQ=function(){};tQ.\u0275fac=function(a){return new (a||tQ)};tQ.\u0275cmp=w({type:tQ,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&ke("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&O(0,"\u00a0\u00b7\u00a0")},encapsulation:2});
var xPb=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],yPb=function(a){return{"with-avatar":a}},uQ=function(){};uQ.prototype.ngOnInit=function(){};uQ.\u0275fac=function(a){return new (a||uQ)};
uQ.\u0275cmp=w({type:uQ,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&&(Ae(xPb),F(0,"div",0)(1,"div",1)(2,"div",2),M(3,Aza,1,2,"img",3),F(4,"div",4),O(5),G(),M(6,Bza,2,1,"div",5),G(),M(7,Cza,4,1,"div",6),F(8,"div",7),M(9,Gza,7,3,"ng-container",8),M(10,Hza,4,1,"ng-container",8),M(11,Iza,19,4,"ng-container",8),Be(12),G()(),Be(13,1),G());a&2&&(B(2),E("ngClass",Le(8,yPb,b.person.imageUrl)),B(1),E("ngIf",b.person.imageUrl),B(2),Ge(" ",b.person.name||b.person.email," "),B(1),E("ngIf",b.person.name),B(1),E("ngIf",b.outOfOfficeDescription),B(2),E("ngIf",b.person.title||
b.person.department),B(1),E("ngIf",b.person.location),B(1),E("ngIf",b.person.ldap))},dependencies:[rQ,sQ,Jx,Gx,tQ,hF],styles:[".onedev-hovercard-content{--onedev-card-background:var(--surface-default,#fff);--onedev-card-title-text:var(--text-default,#202124);--onedev-card-icon:var(--icon,#5f6368);--onedev-card-secondary-text:var(--text-secondary,#5f6368);--onedev-card-link-color:var(--primary-default,#1a73e8)}.onedev-hovercard-content{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content .onedev-hovercard-body{padding:20px}.onedev-hovercard-content .onedev-hovercard-body a{color:var(--onedev-card-link-color)}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar{display:grid;grid-template-columns:48px auto;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar .avatar{grid-row:1/span 2}.onedev-hovercard-content .onedev-hovercard-body .contact-info .name{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content .onedev-hovercard-body .contact-info .email{grid-row:2;grid-column:2}.onedev-hovercard-content .onedev-hovercard-body .title{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content .onedev-hovercard-body .chips{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body mat-icon{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content .onedev-hovercard-body .content{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:12px 0 0}.onedev-hovercard-content .onedev-hovercard-body .content .detail{margin-top:2px}.onedev-hovercard-content .onedev-hovercard-body .content:empty{margin-top:0}.onedev-hovercard-content .onedev-hovercard-body .subcontent:not(:last-child){margin-bottom:8px}.onedev-hovercard-content .onedev-hovercard-body .label{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list li{display:inline}.avatar{border-radius:50%;object-fit:cover;height:48px;width:48px}"],
encapsulation:2,changeDetection:0});
var zPb=function(){};
var Ao=function(){this.Serializable$values={}},xo=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},vQ=function(a,b){return null!=a.Serializable$values[b]};
var APb=function(){};
var BPb=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};U(BPb,APb);
var CPb=function(a,b,c){var d=Jza(a.hookFactory,b);return null==d?c:T.EMPTY.pipe(gg({complete:function(){d.onBeforeSend()}}),Xga(c.pipe(gg(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},DPb=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof Ao?yo(b.body,Nza,Oza,Pza):b.body;return CPb(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 EPb=function(){};EPb.prototype.send=function(a,b){Kza(a);return this.makeRequest(a).pipe(R(function(c){return b?Tza(b,c):c}))};
var FPb=new od("API_VERSION"),GPb=new od("REQUEST_SERVICE"),wQ=function(){};wQ.\u0275fac=function(a){return new (a||wQ)};wQ.\u0275mod=xc({type:wQ});wQ.\u0275inj=ic({});
var HPb={$Xgafv:"$.xgafv",access_token:"access_token",affinityType:"affinity.type",alt:"alt",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",blockDirection:"blockDirection",callback:"callback",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",contactId:"contactId",contactListType:"contactListType",
contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",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",
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",
coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dedupeOption:"dedupeOption",
delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",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",existingSelectionsId:"existingSelections.id",existingSelectionsIdType:"existingSelections.idType",existingSelectionsQuery:"existingSelections.query",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",getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",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",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",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",
getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",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",
getPeopleRequestMergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"getPeopleRequest.mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",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",
getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskImageUrlType:"getPeopleRequest.requestMask.imageUrlType",getPeopleRequestRequestMaskIncludeContainer:"getPeopleRequest.requestMask.includeContainer",
getPeopleRequestRequestMaskIncludeField:"getPeopleRequest.requestMask.includeField",getPeopleRequestRequestMaskIncludePeopleInCommon:"getPeopleRequest.requestMask.includePeopleInCommon",getPeopleRequestRequestMaskPersonAttribute:"getPeopleRequest.requestMask.personAttribute",getPeopleRequestRequestMaskPhotoOptionsPrivateUrlFormat:"getPeopleRequest.requestMask.photoOptions.privateUrlFormat",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",key:"key",matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",
mergedPersonSourceOptionsConnectedSitesOptionsConnectedSiteType:"mergedPersonSourceOptions.connectedSitesOptions.connectedSiteType",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",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",photoOptionsMaxHeight:"photoOptions.maxHeight",photoOptionsMaxWidth:"photoOptions.maxWidth",placeParamsRequestPlaces:"placeParams.requestPlaces",postPhotoMutateReadOption:"postPhotoMutateReadOption",prefixQuery:"prefixQuery",prettyPrint:"prettyPrint",profileId:"profileId",profileLookupOptionsEmailLookupOption:"profileLookupOptions.emailLookupOption",profileLookupOptionsExcludeGaiaAccountTypes:"profileLookupOptions.excludeGaiaAccountTypes",profileLookupOptionsUseTrustedClientPhoneLookupQuota:"profileLookupOptions.useTrustedClientPhoneLookupQuota",
query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",
requestMaskPersonAttribute:"requestMask.personAttribute",requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",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"},xQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new BPb(b,c)};xQ.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return DPb(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:Lza(a,HPb,b)})};xQ.\u0275fac=function(a){return new (a||xQ)(t(FPb,8),t(GPb),t(zPb,8))};
xQ.\u0275prov=hc({token:xQ,factory:xQ.\u0275fac});var yQ=function(){};yQ.\u0275fac=function(a){return new (a||yQ)};yQ.\u0275prov=hc({token:yQ,factory:function(a){return xQ.\u0275fac(a)},providedIn:wQ});var zQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new BPb(b,c)};zQ.\u0275fac=function(a){return new (a||zQ)(t(FPb,8),t(GPb),t(zPb,8))};zQ.\u0275prov=hc({token:zQ,factory:zQ.\u0275fac});var AQ=function(){};AQ.\u0275fac=function(a){return new (a||AQ)};
AQ.\u0275prov=hc({token:AQ,factory:function(a){return zQ.\u0275fac(a)},providedIn:wQ});
var Wza=/.*@google.com/,IPb=new od("onedevPeopleServiceConfig"),JPb={},BQ=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new T.Subject;this.config=JPb;c&&c.pipe(gg(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),fg(this.destroy$)).subscribe({next:function(e){d.config=e}})},KPb=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","CONTACT","DOMAIN_CONTACT","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(R(function(c){var d;var e,f,h,k=null==c?void 0:null==(e=c.matches)?void 0:null==(f=e[0])?void 0:null==(h=f.personId)?void 0:h[0];if(k){var q;c=null==c?void 0:null==(q=c.people)?void 0:q[k];var u;k=null==(u=Zza(null==c?void 0:c.email))?void 0:u.value;var y,D;u=null==c?void 0:null==(y=c.name)?void 0:null==(D=y[0])?void 0:D.displayName;
var I;y=null==c?void 0:null==(d=c.photo)?void 0:null==(I=d[0])?void 0:I.url;D=Yza(null==c?void 0:c.organization);d=null==D?void 0:D.title;I=null==D?void 0:D.department;D=null==D?void 0:D.location;d={ldap:Xza(k),email:k||b||"",name:u||"",imageUrl:y,title:d,department:I,location:D}}else d={ldap:Xza(b),name:"",email:b};return d}))};BQ.prototype.ngOnDestroy=function(){this.destroy$.next()};BQ.\u0275fac=function(a){return new (a||BQ)(t(yQ),t(AQ),t(IPb,8))};BQ.\u0275prov=hc({token:BQ,factory:BQ.\u0275fac});
var LPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=null==a.dayOfWeek?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=null==a.periodStartMinutes?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=null==a.periodEndMinutes?null:a.periodEndMinutes};U(LPb,Ao);LPb.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
oi.Object.defineProperties(LPb.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"dayOfWeek")?xo(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"periodEndMinutes")?xo(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"periodStartMinutes")?xo(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var MPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userIds=null==a.userIds?null:a.userIds;this.Serializable$values.debugOptions=null==a.debugOptions?null:a.debugOptions};U(MPb,Ao);MPb.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:CQ},keys:["debugOptions","userIds"],objects:{debugOptions:DQ}}};
oi.Object.defineProperties(MPb.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"debugOptions")?xo(this,"debugOptions"):this.debugOptions=new DQ},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"userIds")?xo(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var NPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};U(NPb,Ao);NPb.prototype.getPartialClassMetadata=function(){return{arrays:{results:OPb},keys:["results"]}};
oi.Object.defineProperties(NPb.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"results")?xo(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var EQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(EQ,Ao);EQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","nextAvailable","occupiedUntil"]}};
oi.Object.defineProperties(EQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"eventSummary")?xo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"nextAvailable")?xo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"occupiedUntil")?xo(this,"occupiedUntil"):
""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var FQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location;this.Serializable$values.geoCoordinates=null==a.geoCoordinates?null:a.geoCoordinates};U(FQ,Ao);FQ.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","location"],objects:{geoCoordinates:GQ}}};
oi.Object.defineProperties(FQ.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"geoCoordinates")?xo(this,"geoCoordinates"):this.geoCoordinates=new GQ},set:function(a){this.Serializable$values.geoCoordinates=a}},location:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"location")?xo(this,"location"):""},set:function(a){this.Serializable$values.location=a}}});
var HQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(HQ,Ao);HQ.prototype.getPartialClassMetadata=function(){return{keys:["nextAvailable","occupiedUntil"]}};
oi.Object.defineProperties(HQ.prototype,{nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"nextAvailable")?xo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"occupiedUntil")?xo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var PPb=function(){this.Serializable$values={}};U(PPb,Ao);PPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var IQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=null==a.inMeetingsUntil?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};U(IQ,Ao);
IQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
oi.Object.defineProperties(IQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"eventSummary")?xo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"inMeetingsUntil")?xo(this,"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"nextAvailable")?xo(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"occupiedUntil")?xo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var QPb=function(){this.Serializable$values={}};U(QPb,Ao);QPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var GQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.latitude=null==a.latitude?null:a.latitude;this.Serializable$values.longitude=null==a.longitude?null:a.longitude};U(GQ,Ao);GQ.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
oi.Object.defineProperties(GQ.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"latitude")?xo(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"longitude")?xo(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var JQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};
U(JQ,Ao);JQ.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};oi.Object.defineProperties(JQ.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"timeZone")?xo(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var KQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=null==a.experimentalBuildingId?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=null==a.experimentalDeskId?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=null==a.experimentalFloorId?null:a.experimentalFloorId};U(KQ,Ao);KQ.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId"]}};
oi.Object.defineProperties(KQ.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"experimentalBuildingId")?xo(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"experimentalDeskId")?xo(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return vQ(this,"experimentalFloorId")?xo(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}}});var LQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime;this.Serializable$values.eventSummary=null==a.eventSummary?null:a.eventSummary};U(LQ,Ao);LQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","eventSummary"]}};
oi.Object.defineProperties(LQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"comeBackTime")?xo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"eventSummary")?xo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}}});
var MQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};U(MQ,Ao);MQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};oi.Object.defineProperties(MQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"comeBackTime")?xo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});
var NQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.code=null==a.code?null:a.code;this.Serializable$values.message=null==a.message?null:a.message;this.Serializable$values.details=null==a.details?null:a.details};U(NQ,Ao);NQ.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
oi.Object.defineProperties(NQ.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"code")?xo(this,"code"):0},set:function(a){this.Serializable$values.code=a}},hasDetails:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"details")}},details:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"details")?xo(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return vQ(this,
"message")?xo(this,"message"):""},set:function(a){this.Serializable$values.message=a}}});var OQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.startTime=null==a.startTime?null:a.startTime;this.Serializable$values.endTime=null==a.endTime?null:a.endTime};U(OQ,Ao);OQ.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
oi.Object.defineProperties(OQ.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"endTime")?xo(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"startTime")?xo(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var PQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=null==a.overrideCurrentTime?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=null==a.computationDuration?null:a.computationDuration};U(PQ,Ao);PQ.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
oi.Object.defineProperties(PQ.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"computationDuration")?xo(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"overrideCurrentTime")?xo(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var QQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};U(QQ,Ao);QQ.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:OQ}}};oi.Object.defineProperties(QQ.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"timeRange")?xo(this,"timeRange"):this.timeRange=new OQ},set:function(a){this.Serializable$values.timeRange=a}}});
var RQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=null==a.availabilities?null:a.availabilities;this.Serializable$values.workingHours=null==a.workingHours?null:a.workingHours;this.Serializable$values.nextPollTime=null==a.nextPollTime?null:a.nextPollTime};U(RQ,Ao);RQ.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:RPb},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:SQ}}};
oi.Object.defineProperties(RQ.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"availabilities")?xo(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"nextPollTime")?xo(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"workingHours")?
xo(this,"workingHours"):this.workingHours=new SQ},set:function(a){this.Serializable$values.workingHours=a}}});var DQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=null==a.forceEnableUserStatusCache?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=null==a.timeSettings?null:a.timeSettings};U(DQ,Ao);DQ.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:PQ}}};
oi.Object.defineProperties(DQ.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"forceEnableUserStatusCache")?xo(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"timeSettings")?xo(this,"timeSettings"):this.timeSettings=new PQ},set:function(a){this.Serializable$values.timeSettings=a}}});
var OPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.userId=null==a.userId?null:a.userId;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.userAvailabilities=null==a.userAvailabilities?null:a.userAvailabilities};U(OPb,Ao);OPb.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:NQ,userAvailabilities:RQ,userId:CQ}}};
oi.Object.defineProperties(OPb.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"status")?xo(this,"status"):this.status=new NQ},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"userAvailabilities")?
xo(this,"userAvailabilities"):this.userAvailabilities=new RQ},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"userId")?xo(this,"userId"):this.userId=new CQ},set:function(a){this.Serializable$values.userId=a}}});
var RPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange;this.Serializable$values.status=null==a.status?null:a.status;this.Serializable$values.contexts=null==a.contexts?null:a.contexts};U(RPb,Ao);RPb.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:TQ,status:UQ,timeRange:OQ}}};
oi.Object.defineProperties(RPb.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"contexts")?xo(this,"contexts"):this.contexts=new TQ},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"status")?xo(this,"status"):this.status=new UQ},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return vQ(this,"timeRange")?xo(this,"timeRange"):this.timeRange=new OQ},set:function(a){this.Serializable$values.timeRange=a}}});var TQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=null==a.workingElsewhere?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=null==a.upcomingOoo?null:a.upcomingOoo;this.Serializable$values.localTime=null==a.localTime?null:a.localTime};U(TQ,Ao);
TQ.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingOoo","workingElsewhere"],objects:{localTime:JQ,upcomingOoo:QQ,workingElsewhere:VQ}}};
oi.Object.defineProperties(TQ.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"localTime")?xo(this,"localTime"):this.localTime=new JQ},set:function(a){this.Serializable$values.localTime=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"upcomingOoo")?xo(this,"upcomingOoo"):this.upcomingOoo=new QQ},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"workingElsewhere")?
xo(this,"workingElsewhere"):this.workingElsewhere=new VQ},set:function(a){this.Serializable$values.workingElsewhere=a}}});var CQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=null==a.obfuscatedGaiaId?null:a.obfuscatedGaiaId;this.Serializable$values.email=null==a.email?null:a.email};U(CQ,Ao);CQ.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
oi.Object.defineProperties(CQ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"email")?xo(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"obfuscatedGaiaId")?xo(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var WQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=null==a.homeLocation?null:a.homeLocation;this.Serializable$values.customLocation=null==a.customLocation?null:a.customLocation;this.Serializable$values.officeLocation=null==a.officeLocation?null:a.officeLocation};U(WQ,Ao);WQ.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:FQ,homeLocation:PPb,officeLocation:KQ}}};
oi.Object.defineProperties(WQ.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"customLocation")?xo(this,"customLocation"):this.customLocation=new FQ},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"homeLocation")?xo(this,"homeLocation"):this.homeLocation=new PPb},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return vQ(this,
"officeLocation")?xo(this,"officeLocation"):this.officeLocation=new KQ},set:function(a){this.Serializable$values.officeLocation=a}}});
var UQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.inactive=null==a.inactive?null:a.inactive;this.Serializable$values.doNotDisturb=null==a.doNotDisturb?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=null==a.outsideWorkingHours?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=null==a.outOfOffice?null:a.outOfOffice;this.Serializable$values.inMeeting=null==a.inMeeting?null:a.inMeeting;this.Serializable$values.calendarBusy=null==
a.calendarBusy?null:a.calendarBusy};U(UQ,Ao);UQ.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:EQ,doNotDisturb:HQ,inMeeting:IQ,inactive:QPb,outOfOffice:LQ,outsideWorkingHours:MQ}}};
oi.Object.defineProperties(UQ.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"calendarBusy")?xo(this,"calendarBusy"):this.calendarBusy=new EQ},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"doNotDisturb")?xo(this,"doNotDisturb"):this.doNotDisturb=new HQ},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return vQ(this,
"inMeeting")?xo(this,"inMeeting"):this.inMeeting=new IQ},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"inactive")?xo(this,"inactive"):this.inactive=new QPb},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==xo(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"outOfOffice")?xo(this,"outOfOffice"):
this.outOfOffice=new LQ},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"outsideWorkingHours")?xo(this,"outsideWorkingHours"):this.outsideWorkingHours=new MQ},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var VQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};U(VQ,Ao);
VQ.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:WQ}}};oi.Object.defineProperties(VQ.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"location")?xo(this,"location"):this.location=new WQ},set:function(a){this.Serializable$values.location=a}}});var SQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};U(SQ,Ao);
SQ.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:LPb},keys:["availableTime"]}};oi.Object.defineProperties(SQ.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return vQ(this,"availableTime")?xo(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var SPb=new od("API_VERSION"),TPb=new od("REQUEST_SERVICE"),XQ=function(){};XQ.\u0275fac=function(a){return new (a||XQ)};XQ.\u0275mod=xc({type:XQ});
XQ.\u0275inj=ic({});var UPb={$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"},YQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new BPb(b,c)};YQ.\u0275fac=function(a){return new (a||YQ)(t(SPb,8),t(TPb),t(zPb,8))};YQ.\u0275prov=hc({token:YQ,factory:YQ.\u0275fac});var ZQ=function(){};
ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275prov=hc({token:ZQ,factory:function(a){return YQ.\u0275fac(a)},providedIn:XQ});
var $Q=function(a){var b=this;this.apiStub=a;this.result=new T.Subject;this.destroyed=new T.ReplaySubject(1);this.trigger=new T.Subject;this.batchedTrigger=this.trigger.pipe(Vga(this.trigger.pipe(Of(200))));this.responseHandler=function(c){if(c.hasResults){c=r(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){e=e.status.outOfOffice;
if(e.comeBackTime){var f=e=new Date(e.comeBackTime),h=new Date;e=h.getFullYear()===f.getFullYear()&&h.getMonth()===f.getMonth()&&h.getDate()===f.getDate()?"at "+e.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(e.getFullYear()!==(new Date).getFullYear()?e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):e.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));e=" - back "+e}else e="";e="Out of Office"+e}else e="";b.result.next({emailAddress:d,
availability:e})}else b.result.next({emailAddress:d,availability:""})}}};this.batchedTrigger.pipe(fg(this.destroyed)).subscribe(function(c){c=[].concat(v(new Set(c)));VPb(b,c.slice(0,100));c=r(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},VPb=function(a,b){var c,d;ef(function(e){for(var f=new MPb,h=[],k=r(b),q=k.next();!q.done;q=k.next()){q=q.value;var u=new CQ;u.email=q;h.push(u)}f.userIds=h;c=f;f=a.apiStub;var y=void 0===y?{}:y;var D=void 0===D?{}:D;d=DPb(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:Lza(y,UPb,D),responseCtor:NPb});d.pipe(fg(a.destroyed)).subscribe(a.responseHandler);gf(e)})},WPb=function(a,b){if(!b)return(0,T.of)("");a.trigger.next(b);return a.result.pipe(uf(function(c){return c.emailAddress===b})).pipe(R(function(c){return c.availability}))};$Q.prototype.ngOnDestroy=function(){this.destroyed.next()};
$Q.\u0275fac=function(a){return new (a||$Q)(t(ZQ))};$Q.\u0275prov=hc({token:$Q,factory:$Q.\u0275fac});
var XPb=function(a){Z.call(this,a)};U(XPb,Z);g=XPb.prototype;g.getSize=function(){return p(this,1)};g.setSize=function(a){return l(this,1,a)};g.getWidth=function(){return p(this,12)};g.setWidth=function(a){return l(this,12,a)};g.getHeight=function(){return p(this,13)};g.setHeight=function(a){return l(this,13,a)};g.setStretch=function(a){return l(this,33,a)};g.setCrop=function(a){return l(this,2,a)};g.setCircleCrop=function(a){return l(this,51,a)};g.setImageCrop=function(a){return l(this,32,a)};
g.setSmartCrop=function(a){return l(this,19,a)};g.setSmartCropNoClip=function(a){return l(this,52,a)};g.setSmartCropUseFace=function(a){return l(this,67,a)};g.setDetectFaces=function(a){l(this,80,a)};g.setCenterCrop=function(a){return l(this,20,a)};g.setPad=function(a){return l(this,60,a)};g.setDownload=function(a){l(this,3,a)};g.setHtml=function(a){l(this,4,a)};g.getObjectId=function(){return p(this,7)};g.setObjectId=function(a){l(this,7,a)};g.setLooseFaceCrop=function(a){return l(this,65,a)};
g.setFaceCropVersion=function(a){l(this,94,a)};g.setFrameId=function(a){l(this,29,a)};g.setTileX=function(a){l(this,9,a)};g.setTileY=function(a){l(this,10,a)};g.setTileZoom=function(a){l(this,11,a)};g.setTileGeneration=function(a){l(this,14,a)};g.setForceTileGeneration=function(a){l(this,34,a)};g.setTilePyramidAsProto=function(a){l(this,72,a)};g.setExpirationTime=function(a){l(this,15,a)};g.setImageFilter=function(a){return l(this,16,a)};g.setKillAnimation=function(a){return l(this,17,a)};
g.setUnfiltered=function(a){l(this,18,a)};g.setUnfilteredWithTransforms=function(a){l(this,45,a)};g.setIncludeMetadata=function(a){l(this,22,a)};g.setIncludePublicMetadata=function(a){l(this,54,a)};g.setStripGoogleData=function(a){l(this,82,a)};g.setPreserveGoogleData=function(a){l(this,83,a)};g.setStripMetadata=function(a){l(this,93,a)};g.setStripGeoinfo=function(a){l(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return l(this,21,a)};g.setBypassTakedown=function(a){l(this,23,a)};
g.getToken=function(){return p(this,24)};g.setToken=function(a){return l(this,24,a)};g.setVersionedToken=function(a){l(this,36,a)};g.setSkipRefererCheck=function(a){l(this,6,a)};g.getRotate=function(){return p(this,26)};g.setRotate=function(a){return l(this,26,a)};g.setHorizontalFlip=function(a){l(this,30,a)};g.setVerticalFlip=function(a){l(this,31,a)};g.getOverlay=function(){return Xo(this,27)};g.setOverlay=function(a){return l(this,27,a)};g.setQueryString=function(a){l(this,28,a)};
g.setRequestJpeg=function(a){return l(this,57,a)};g.setRequestPng=function(a){return l(this,58,a)};g.setRequestGif=function(a){l(this,59,a)};g.setRequestWebp=function(a){return l(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){l(this,41,a)};g.setRequestAnimatedWebp=function(a){l(this,64,a)};g.setNoWebp=function(a){l(this,48,a)};g.setRequestH264=function(a){return l(this,49,a)};g.setLossy=function(a){l(this,97,a)};g.setNoOverlay=function(a){return l(this,37,a)};
g.setBorderSize=function(a){l(this,38,a)};g.setBorderRadius=function(a){l(this,86,a)};g.setBorderColor=function(a){l(this,39,a)};g.getBackgroundColor=function(){return p(this,87)};g.setBackgroundColor=function(a){l(this,87,a)};g.setPadColor=function(a){l(this,88,a)};g.setSubstitutionColor=function(a){l(this,89,a)};g.setNoSilhouette=function(a){l(this,40,a)};g.setFocusBlur=function(a){l(this,42,a)};g.setFocalPlane=function(a){l(this,43,a)};g.setQualityLevel=function(a){return l(this,44,a)};
g.setQualityBucket=function(a){return l(this,62,a)};g.setNoUpscale=function(a){l(this,46,a)};g.setPreserveAspectRatio=function(a){l(this,61,a)};g.setForceTransformation=function(a){l(this,50,a)};g.setNoDefaultImage=function(a){l(this,53,a)};g.setNoCorrectExifOrientation=function(a){l(this,55,a)};g.setSelectFrameNumber=function(a){l(this,56,a)};g.setVideoFormat=function(a){l(this,63,a)};g.setVideoMultiFormat=function(a){l(this,81,a)};g.setVideoManifest=function(a){l(this,98,a)};
g.setDownloadVideo=function(a){l(this,90,a)};g.setVideoBegin=function(a){l(this,68,a)};g.setVideoLength=function(a){l(this,69,a)};g.setMatchVersion=function(a){l(this,66,a)};g.setImageDigest=function(a){l(this,70,a)};g.setInternalClient=function(a){l(this,71,a)};g.setMonogram=function(a){l(this,73,a)};g.setForceMonogram=function(a){return l(this,84,a)};g.setMonogramDogfood=function(a){l(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){l(this,96,a)};g.setAutoloop=function(a){l(this,74,a)};
g.getImageVersion=function(){return p(this,75)};g.setImageVersion=function(a){l(this,75,a)};g.setPitchDegrees=function(a){l(this,76,a)};g.setYawDegrees=function(a){l(this,77,a)};g.setRollDegrees=function(a){l(this,78,a)};g.setFovDegrees=function(a){l(this,79,a)};g.setBadge=function(a){l(this,85,a)};g.setColorProfile=function(a){l(this,92,a)};g.setDeepCrop=function(a){l(this,99,a)};g.setRequestVideoFast=function(a){l(this,100,a)};
g.toObject=function(){var a=null!=this?{size:n(p(this,1)),width:n(p(this,12)),height:n(p(this,13)),stretch:n(Xo(this,33)),crop:W(this,2,!1),circleCrop:n(Xo(this,51)),imageCrop:n(Xo(this,32)),smartCrop:W(this,19,!1),smartCropNoClip:W(this,52,!1),smartCropUseFace:W(this,67,!1),detectFaces:n(Xo(this,80)),centerCrop:W(this,20,!1),pad:n(Xo(this,60)),download:W(this,3,!1),html:W(this,4,!1),objectId:n(p(this,7)),looseFaceCrop:n(Xo(this,65)),faceCropVersion:n(p(this,94)),frameId:n(p(this,29)),imageUrlDomain:hj(this,
8,0),tileX:n(p(this,9)),tileY:n(p(this,10)),tileZoom:n(p(this,11)),tileGeneration:W(this,14,!1),forceTileGeneration:W(this,34,!1),tilePyramidAsProto:W(this,72,!1),expirationTime:n(p(this,15)),imageFilter:n(p(this,16)),killAnimation:n(Xo(this,17)),unfiltered:n(Xo(this,18)),unfilteredWithTransforms:n(Xo(this,45)),includeMetadata:n(Xo(this,22)),includePublicMetadata:n(Xo(this,54)),stripGoogleData:n(Xo(this,82)),preserveGoogleData:n(Xo(this,83)),stripMetadata:n(Xo(this,93)),stripGeoinfo:n(Xo(this,95)),
esPortraitApprovedOnly:n(Xo(this,21)),bypassTakedown:W(this,23,!1),token:n(p(this,24)),versionedToken:n(p(this,36)),skipRefererCheck:W(this,6,!1),rotate:n(p(this,26)),horizontalFlip:n(Xo(this,30)),verticalFlip:n(Xo(this,31)),overlay:n(Xo(this,27)),queryString:n(p(this,28)),requestJpeg:n(Xo(this,57)),requestPng:n(Xo(this,58)),requestGif:n(Xo(this,59)),requestWebp:W(this,35,!1),requestWebpUnlessMaybeTransparent:W(this,41,!1),requestAnimatedWebp:W(this,64,!1),noWebp:W(this,48,!1),requestH264:W(this,
49,!1),lossy:n(Xo(this,97)),noOverlay:W(this,37,!1),borderSize:n(p(this,38)),borderRadius:n(p(this,86)),borderColor:n(p(this,39)),backgroundColor:n(p(this,87)),padColor:n(p(this,88)),substitutionColor:n(p(this,89)),noSilhouette:n(Xo(this,40)),focusBlur:n(p(this,42)),focalPlane:n(p(this,43)),qualityLevel:n(p(this,44)),qualityBucket:n(p(this,62)),noUpscale:n(Xo(this,46)),preserveAspectRatio:n(Xo(this,61)),forceTransformation:n(Xo(this,50)),noDefaultImage:n(Xo(this,53)),noCorrectExifOrientation:n(Xo(this,
55)),selectFrameNumber:n(p(this,56)),videoFormat:n(p(this,63)),videoMultiFormat:n(p(this,81)),videoManifest:n(Xo(this,98)),downloadVideo:n(Xo(this,90)),videoBegin:n(p(this,68)),videoLength:n(p(this,69)),matchVersion:n(Xo(this,66)),imageDigest:n(Xo(this,70)),internalClient:n(p(this,71)),monogram:n(Xo(this,73)),forceMonogram:n(Xo(this,84)),monogramDogfood:n(Xo(this,91)),ignoreLowResProfilePhoto:n(Xo(this,96)),autoloop:n(Xo(this,74)),imageVersion:n(p(this,75)),pitchDegrees:n(yu(this,76)),yawDegrees:n(yu(this,
77)),rollDegrees:n(yu(this,78)),fovDegrees:n(yu(this,79)),badge:n(p(this,85)),colorProfile:n(p(this,92)),deepCrop:n(p(this,99)),requestVideoFast:n(Xo(this,100))}:void 0;return a};
var aR=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};aR.prototype.set=function(a,b){YPb(this,a,b,!1)};aR.prototype.add=function(a,b){YPb(this,a,b,!0)};var YPb=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 aR);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("Gd`"+b);a.value_=c};aR.prototype.setAll=function(a){var b=Pzb(a);a=LG(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var ZPb=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};aR.prototype.get=function(a){return(a=ZPb(this,a))?a.value_:void 0};aR.prototype.getValues=function(){var a=[];$Pb(this,a);return a};var $Pb=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)$Pb(a.childNodes_[c],b)};
aR.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]}aQb(c,a,b)}else aQb(this,"",b);return b};var aQb=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)aQb(a.childNodes_[d],b+d,c)};g=aR.prototype;g.containsKey=function(a){return void 0!==this.get(a)};
g.containsValue=function(a){if(this.value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};g.clear=function(){this.childNodes_={};this.value_=void 0};g.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("Hd`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;0<c.length;)if(e=c.pop(),b=e[0],e=e[1],b.childNodes_[e].isEmpty())delete b.childNodes_[e];else break;return a};
g.clone=function(){return new aR(this)};g.getCount=function(){return Ozb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&dh(this.childNodes_)};
var dQb=function(){if(!bQb){var a=bQb=new aR,b;for(b in cQb)a.add(b,cQb[b])}},bQb,bR=function(a,b){this.types=a;this.setters=b},cQb={a:new bR([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new bR([3],[function(a,b){a.setAutoloop(b)}]),b:new bR([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new bR([0],[function(a,b){a.setBadge(b)}]),bc:new bR([0],[function(a,b){a.setBackgroundColor(b)}]),br:new bR([0],[function(a,
b){a.setBorderRadius(b)}]),c:new bR([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new bR([3],[function(a,b){a.setCircleCrop(b)}]),ci:new bR([3],[function(a,b){a.setImageCrop(b)}]),cp:new bR([0],[function(a,b){a.setColorProfile(b)}]),cv:new bR([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new bR([3],[function(a,b){a.setDownload(b)}]),dc:new bR([5],[function(a,b){a.setDeepCrop(b)}]),df:new bR([3],[function(a,b){a.setDetectFaces(b)}]),dv:new bR([3],[function(a,b){a.setDownloadVideo(b)}]),
e:new bR([0],[function(a,b){a.setExpirationTime(b)}]),f:new bR([4],[function(a,b){a.setImageFilter(b)}]),fg:new bR([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new bR([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new bR([3],[function(a,b){a.setForceMonogram(b)}]),fo:new bR([2],[function(a,b){a.setFovDegrees(b)}]),ft:new bR([3],[function(a,b){a.setForceTransformation(b)}]),fv:new bR([3],[function(a,b){a.setVerticalFlip(b)}]),g:new bR([3],[function(a,b){a.setTileGeneration(b)}]),gd:new bR([3],
[function(a,b){a.setPreserveGoogleData(b)}]),h:new bR([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new bR([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new bR([0],[function(a,b){a.setInternalClient(b)}]),id:new bR([3],[function(a,b){a.setImageDigest(b)}]),il:new bR([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new bR([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new bR([0],[function(a,b){a.setImageVersion(b)}]),j:new bR([1],[function(a,b){a.setFrameId(b)}]),
k:new bR([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new bR([0],[function(a,b){a.setQualityLevel(b)}]),lf:new bR([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new bR([3],[function(a,b){a.setLossy(b)}]),m:new bR([0],[function(a,b){a.setVideoFormat(b)}]),md:new bR([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new bR([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new bR([3],[function(a,b){a.setMonogram(b)}]),mv:new bR([3],[function(a,b){a.setMatchVersion(b)}]),
n:new bR([3],[function(a,b){a.setCenterCrop(b)}]),nc:new bR([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new bR([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new bR([3],[function(a,b){a.setStripGeoinfo(b)}]),no:new bR([3],[function(a,b){a.setNoOverlay(b)}]),ns:new bR([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new bR([4],[function(a,b){a.setVersionedToken(b)}]),nu:new bR([3],[function(a,b){a.setNoUpscale(b)}]),nw:new bR([3],[function(a,b){a.setNoWebp(b)}]),o:new bR([1,3],[function(a,
b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new bR([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new bR([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new bR([0],[function(a,b){a.setPadColor(b)}]),pd:new bR([3],[function(a,b){a.setPad(b)}]),pf:new bR([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new bR([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new bR([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new bR([3],[function(a,b){a.setSmartCropNoClip(b)}]),
q:new bR([4],[function(a,b){a.setQueryString(b)}]),r:new bR([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),rf:new bR([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new bR([3],[function(a,b){a.setRequestGif(b)}]),rh:new bR([3],[function(a,b){a.setRequestH264(b)}]),rj:new bR([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new bR([2],[function(a,b){a.setRollDegrees(b)}]),rp:new bR([3],[function(a,b){a.setRequestPng(b)}]),rw:new bR([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new bR([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new bR([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new bR([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new bR([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new bR([3],[function(a,b){a.setStripGoogleData(b)}]),sm:new bR([3],[function(a,b){a.setStripMetadata(b)}]),t:new bR([4],[function(a,b){a.setToken(b)}]),u:new bR([3],[function(a,b){a.setUnfiltered(b)}]),ut:new bR([3],[function(a,
b){a.setUnfilteredWithTransforms(b)}]),v:new bR([0],[function(a,b){a.setQualityBucket(b)}]),vb:new bR([0],[function(a,b){a.setVideoBegin(b)}]),vl:new bR([0],[function(a,b){a.setVideoLength(b)}]),vm:new bR([3],[function(a,b){a.setVideoManifest(b)}]),w:new bR([0],[function(a,b){a.setWidth(b)}]),x:new bR([0],[function(a,b){a.setTileX(b)}]),y:new bR([0],[function(a,b){a.setTileY(b)}]),ya:new bR([2],[function(a,b){a.setYawDegrees(b)}]),z:new bR([0],[function(a,b){a.setTileZoom(b)}])};
dQb.prototype.parse=function(a){var b=new XPb,c=new XPb;if(""==a)a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(0==f.length)d=!1;else{var h=f,k=!1;var q=h;var u=h.charAt(0);u!=u.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var y=bQb;for(u=1;u<=q.length;++u){var D=y,I=q.substring(0,u);if(0==I.length?D.isEmpty():!ZPb(D,I))break}q=1==u?null:(q=y.get(q.substring(0,u-1)))?{option:h.substring(0,u-1),value:h.substring(u-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];u=!1;for(y=0;y<q.attributes.types.length;y++){D=q.attributes.types[y];var N=q.value;I=e;if(q.signed&&1==D)for(var L=N.length;12>L&&I<a.length-1;)N+="-"+a[I+1],L=N.length,++I;else if(2==D)for(;I<a.length-1&&a[I+1].match(/^[\d\.]/);)N+="-"+a[I+1],++I;L=q.attributes.setters[y];N=eQb(this,D)(q.option,N,b,c,L);if(null===N){u=!0;e=I;break}else h.push(D),k.push(N)}if(!u)for(q=0;q<k.length;q++)y=h[q],N=k[q],fQb(this,y)(f,N);d=d&&u}else d=!1}}a=d}return new gQb(b,c,a)};
var hQb=function(a,b,c,d,e){e(c,b);a=a.charAt(0);e(d,a==a.toUpperCase())};g=dQb.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=Oi(b);if(isNaN(b))return 1;hQb(a,b,c,d,e);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=EC(b);if(isNaN(b))return 1;hQb(a,b,c,d,e);return null};g.logFloatParseError_=function(){};g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;hQb(a,!0,c,d,e);return null};
g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;hQb(a,b,c,d,e);return null};g.logStringParseError_=function(){};
var eQb=function(a,b){switch(b){case 0:return du(a.parseAndSetIntOption_,a);case 2:return du(a.parseAndSetFloatOption_,a);case 3:return du(a.parseAndSetBoolOption_,a);case 4:case 1:return du(a.parseAndSetStringOption_,a);default:return function(){}}},fQb=function(a,b){switch(b){case 0:return du(a.logIntParseError_,a);case 2:return du(a.logFloatParseError_,a);case 3:return du(a.logBoolParseError_,a);case 4:case 1:return du(a.logStringParseError_,a);default:return function(){}}},gQb=function(a,b,c){this.valueProto_=
a;this.signatureFlagProto_=b;this.valid_=c};gQb.prototype.isValid=function(){return this.valid_};
var iQb=function(a,b){null!=a&&this.append.apply(this,arguments)};g=iQb.prototype;g.buffer_="";g.set=function(a){this.buffer_=""+a};g.append=function(a,b,c){this.buffer_+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};g.clear=function(){this.buffer_=""};g.toString=function(){return this.buffer_};
var cR=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;jQb(this,a)};cR.prototype.getParsedOptions=function(){return this.parsedOptions_};var kQb=function(a){null==a.parser_&&(a.parser_=new dQb);return a.parser_},jQb=function(a,b){a.parsedOptions_=b?"string"===typeof b?kQb(a).parse(b):b:kQb(a).parse("")},dR=function(a,b){return a==b?!1:!0};g=cR.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,21),Xo(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,56),p(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,74),Xo(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,23,!1),W(b.signatureFlagProto_,23,!1))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,38),p(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,85),p(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,86),p(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,2,!1),W(b.signatureFlagProto_,2,!1))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,39),p(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,51),Xo(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,32),Xo(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,92),p(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,94),p(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,3,!1),W(b.signatureFlagProto_,3,!1))&&c.setDownload(a)};
g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,99),p(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,80),Xo(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,90),Xo(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};
g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,15),p(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,16),p(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,34,!1),W(b.signatureFlagProto_,34,!1))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,30),Xo(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,84),Xo(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,yu(c,79),yu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,50),Xo(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,31),Xo(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,14,!1),W(b.signatureFlagProto_,14,!1))&&c.setTileGeneration(a)};
g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,83),Xo(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,4,!1),W(b.signatureFlagProto_,4,!1))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};
g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,22),Xo(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,71),p(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,70),Xo(b.signatureFlagProto_,70))&&c.setImageDigest(a)};
g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,96),Xo(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,54),Xo(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};
g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,29),p(b.signatureFlagProto_,29))&&c.setFrameId(a)};g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,17),Xo(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,42),p(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};
g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,44),p(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,65),Xo(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,97),Xo(b.signatureFlagProto_,97))&&c.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,63),p(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,91),Xo(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,81),p(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};
g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,73),Xo(b.signatureFlagProto_,73))&&c.setMonogram(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,66),Xo(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,20,!1),W(b.signatureFlagProto_,20,!1))&&c.setCenterCrop(a);return this};
g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,55),Xo(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,53),Xo(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,95),Xo(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,37,!1),W(b.signatureFlagProto_,37,!1))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,40),Xo(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,36),p(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};
g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,46),Xo(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,48,!1),W(b.signatureFlagProto_,48,!1))&&c.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,19,!1),W(b.signatureFlagProto_,19,!1))&&c.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,43),p(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};
g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,61),Xo(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,88),p(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,60),Xo(b.signatureFlagProto_,60))&&c.setPad(a);return this};
g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,67,!1),W(b.signatureFlagProto_,67,!1))&&c.setSmartCropUseFace(a);return this};g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,72,!1),W(b.signatureFlagProto_,72,!1))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,yu(c,76),yu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};
g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,52,!1),W(b.signatureFlagProto_,52,!1))&&c.setSmartCropNoClip(a);return this};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,28),p(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,6,!1),W(b.signatureFlagProto_,6,!1))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getRotate(),b.signatureFlagProto_.getRotate())&&c.setRotate(a);return this};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,100),Xo(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,59),Xo(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,49,!1),W(b.signatureFlagProto_,49,!1))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,57),Xo(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,yu(c,78),yu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,58),Xo(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,35,!1),W(b.signatureFlagProto_,35,!1))&&c.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,64,!1),W(b.signatureFlagProto_,64,!1))&&c.setRequestAnimatedWebp(a)};
g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,W(c,41,!1),W(b.signatureFlagProto_,41,!1))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,33),Xo(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,89),p(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,82),Xo(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,93),Xo(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,18),Xo(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,45),Xo(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,62),p(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,68),p(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,69),p(b.signatureFlagProto_,69))&&c.setVideoLength(a)};
g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;dR(a,Xo(c,98),Xo(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,9),p(b.signatureFlagProto_,9))&&c.setTileX(a)};
g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,10),p(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,yu(c,77),yu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;dR(a,p(c,11),p(b.signatureFlagProto_,11))&&c.setTileZoom(a)};g.setOptions=function(){jQb(this)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;eR(this,"s",b.getSize(),a.getSize());eR(this,"w",b.getWidth(),a.getWidth());fR(this,"c",W(b,2,!1),W(a,2,!1));fR(this,"d",W(b,3,!1),W(a,3,!1));eR(this,"h",b.getHeight(),a.getHeight());fR(this,"s",Xo(b,33),Xo(a,33));fR(this,"h",W(b,4,!1),W(a,4,!1));fR(this,"p",W(b,19,!1),W(a,19,!1));fR(this,"pp",W(b,52,!1),W(a,52,!1));fR(this,"pf",W(b,67,!1),W(a,67,!1));fR(this,"n",W(b,20,!1),W(a,20,!1));eR(this,
"r",b.getRotate(),a.getRotate());fR(this,"r",W(b,6,!1),W(a,6,!1));fR(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();gR(this,"o",c,a.getObjectId());c=p(b,29);gR(this,"j",c,p(a,29));eR(this,"x",p(b,9),p(a,9));eR(this,"y",p(b,10),p(a,10));eR(this,"z",p(b,11),p(a,11));fR(this,"g",W(b,14,!1),W(a,14,!1));eR(this,"e",p(b,15),p(a,15));gR(this,"f",p(b,16),p(a,16));fR(this,"k",Xo(b,17),Xo(a,17));fR(this,"u",Xo(b,18),!0);fR(this,"ut",Xo(b,45),!0);fR(this,"i",Xo(b,22),!0);fR(this,"a",Xo(b,21),
Xo(a,21));fR(this,"b",W(b,23,!1),W(a,23,!1));eR(this,"b",p(b,38),p(a,38));eR(this,"c",p(b,39),p(a,39),16,8);gR(this,"q",p(b,28),p(a,28));fR(this,"fh",Xo(b,30),Xo(a,30));fR(this,"fv",Xo(b,31),Xo(a,31));fR(this,"fg",W(b,34,!1),W(a,34,!1));fR(this,"ci",Xo(b,32),Xo(a,32));gR(this,"t",b.getToken(),a.getToken());gR(this,"nt0",p(b,36),p(a,36));fR(this,"rw",W(b,35,!1),W(a,35,!1));fR(this,"rwu",W(b,41,!1),W(a,41,!1));fR(this,"rwa",W(b,64,!1),W(a,64,!1));fR(this,"nw",W(b,48,!1),W(a,48,!1));fR(this,"rh",W(b,
49,!1),W(a,49,!1));fR(this,"no",W(b,37,!1),W(a,37,!1));fR(this,"ns",Xo(b,40),Xo(a,40));eR(this,"k",p(b,42),p(a,42));eR(this,"p",p(b,43),p(a,43));eR(this,"l",p(b,44),p(a,44));eR(this,"v",p(b,62),p(a,62));fR(this,"nu",Xo(b,46),Xo(a,46));fR(this,"ft",Xo(b,50),Xo(a,50));fR(this,"cc",Xo(b,51),Xo(a,51));fR(this,"nd",Xo(b,53),Xo(a,53));fR(this,"ip",Xo(b,54),Xo(a,54));fR(this,"nc",Xo(b,55),Xo(a,55));eR(this,"a",p(b,56),p(a,56));fR(this,"rj",Xo(b,57),Xo(a,57));fR(this,"rp",Xo(b,58),Xo(a,58));fR(this,"rg",
Xo(b,59),Xo(a,59));fR(this,"pd",Xo(b,60),Xo(a,60));fR(this,"pa",Xo(b,61),Xo(a,61));eR(this,"m",p(b,63),p(a,63));eR(this,"vb",p(b,68),p(a,68));eR(this,"vl",p(b,69),p(a,69));fR(this,"lf",Xo(b,65),Xo(a,65));fR(this,"mv",Xo(b,66),Xo(a,66));fR(this,"id",Xo(b,70),Xo(a,70));eR(this,"ic",p(b,71),!0);fR(this,"pg",W(b,72,!1),W(a,72,!1));fR(this,"mo",Xo(b,73),Xo(a,73));fR(this,"al",Xo(b,74),Xo(a,74));eR(this,"iv",b.getImageVersion(),a.getImageVersion());eR(this,"pi",yu(b,76),yu(a,76));eR(this,"ya",yu(b,77),
yu(a,77));eR(this,"ro",yu(b,78),yu(a,78));eR(this,"fo",yu(b,79),yu(a,79));fR(this,"df",Xo(b,80),Xo(a,80));gR(this,"mm",p(b,81),p(a,81));fR(this,"sg",Xo(b,82),Xo(a,82));fR(this,"gd",Xo(b,83),Xo(a,83));fR(this,"fm",Xo(b,84),Xo(a,84));eR(this,"ba",p(b,85),p(a,85));eR(this,"br",p(b,86),p(a,86));eR(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);eR(this,"pc",p(b,88),p(a,88),16,8);eR(this,"sc",p(b,89),p(a,89),16,8);fR(this,"dv",Xo(b,90),Xo(a,90));fR(this,"md",Xo(b,91),Xo(a,91));eR(this,"cp",
p(b,92),p(a,92));fR(this,"sm",Xo(b,93),Xo(a,93));eR(this,"cv",p(b,94),p(a,94));fR(this,"ng",Xo(b,95),Xo(a,95));fR(this,"il",Xo(b,96),Xo(a,96));fR(this,"lo",Xo(b,97),Xo(a,97));fR(this,"vm",Xo(b,98),Xo(a,98));gR(this,"dc",p(b,99),p(a,99));fR(this,"rf",Xo(b,100),Xo(a,100));return this.components_.join("-")};
var eR=function(a,b,c,d,e,f){if(null!=c){var h=void 0==e||10!=e&&16!=e?10:e;c=c.toString(h);e=new iQb;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":BC("0",f));h.call(e,f);e.append(c);lQb(a,b,e.toString(),!!d)}},fR=function(a,b,c,d){c&&lQb(a,b,"",!!d)},gR=function(a,b,c,d){c&&lQb(a,b,c,!!d)},lQb=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};
var hR=function(a){cR.call(this,a)};hu(hR,cR);g=hR.prototype;g.setCrop=function(a){a&&iR(this);return hR.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return hR.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&iR(this);return hR.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return hR.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return hR.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&iR(this);return hR.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&iR(this);return hR.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){Ga(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return hR.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&iR(this);return hR.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&iR(this);return hR.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&iR(this);return hR.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&iR(this);return hR.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&iR(this);return hR.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return hR.superClass_.setWidth.call(this,a)};var iR=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
hR.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Xo(a,18)||Xo(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),iR(this)));return hR.superClass_.build.call(this)};
var mQb=/^[^\/]*\/\//,jR=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(mQb))&&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_=TG(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},nQb=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},kR=function(a){if(void 0==a.components_){var b=a.uri_.getPath().substring(1);
a.pathPrefix_=null;if(a.isFreeformUrl_){a.components_=[];if(1<(b.match(/=/g)||[]).length)return a.valid_=!1,a.components_;var c=b.indexOf("=");-1!=c?(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;2<b&&"u"==a.components_[0]&&(nQb(a,a.components_[0]+"/"+a.components_[1]),a.components_.shift(),a.components_.shift(),b-=2);if(0==b||4==b||7<b)return a.valid_=!1,a.components_;if(2==b)nQb(a,
a.components_[0]);else if("image"==a.components_[0])nQb(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(nQb(a,a.components_[1]),a.components_.shift(),--b);--b;c=a.components_[b];var d=c.indexOf("=");-1!=d&&(a.components_[b]=c.substr(0,d),a.components_.push(c.substr(d+1)))}}return a.components_};jR.prototype.isValid=function(){kR(this);return this.valid_};var oQb=function(a){kR(a);return a.obfuscated_},pQb=function(a){kR(a);return a.isFreeformUrl_};
jR.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};jR.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var lR=function(a){kR(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};jR.prototype.hasOptions=function(){switch(kR(this).length){case 7:return!0;case 6:return null==lR(this);case 5:return!1;case 3:return!0;case 2:return null==lR(this);case 1:return!1;default:return!1}};
var mR=function(a,b){if(pQb(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=kR(a)[b]}else if(oQb(a))a:{var c=null!=lR(a)?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=kR(a)[b]}else a:{c=null!=lR(a)?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=kR(a)[b]}return a};g=jR.prototype;g.getOriginal=function(){return this.original_};g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=mR(this,0));return this.obfuscatedGaiaId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=mR(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=mR(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=mR(this,5));return this.filename_};
var qQb=function(){};qQb.prototype.parse=function(a,b){return new rQb(a,void 0===b?!1:b)};var rQb=function(a,b){jR.call(this,a,void 0===b?!1:b)};U(rQb,jR);rQb.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new dQb).parse(a)}return this.parsedOptions_};
var nR=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof rQb||(void 0==sQb&&(sQb=new qQb),a=sQb.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();cR.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},sQb;hu(nR,hR);nR.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
nR.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.getOriginal();var a=nR.superClass_.build.call(this),b=[];null!=lR(this.parsedImageUrl_)&&b.push(lR(this.parsedImageUrl_));var c=pQb(this.parsedImageUrl_);if(oQb(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=mR(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=mR(e,7));
d.call(b,e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),d=b.push,e=this.parsedImageUrl_,void 0==e.photoId_&&(e.photoId_=mR(e,1)),d.call(b,e.photoId_),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,void 0==e.signature_&&(e.signature_=mR(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=TG(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();
a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));return a};
var tQb=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],oR=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new T.ReplaySubject(1);this.person$=this.providedEmail$.pipe(eg(function(d){return KPb(c.peopleService,d)}),R(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new nR(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),bg(1));this.outOfOfficeDescription$=
new T.ReplaySubject;this.init=new T.ReplaySubject(1);this.destroyed$=new T.ReplaySubject(1)};oR.prototype.ngOnInit=function(){var a=this;this.person$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&uQb(this)};var uQb=function(a){a.waldoService&&a.person$.pipe(eg(function(b){return b?WPb(a.waldoService,b.email):(0,T.of)("")}),fg(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
oi.Object.defineProperties(oR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});oR.\u0275fac=function(a){return new (a||oR)(C(BQ),C($Q,8))};
oR.\u0275cmp=w({type:oR,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&&(Ae(tQb),M(0,$za,4,4,"onedev-person-hovercard-body",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.person$))},dependencies:[Gx,uQ,Tx],encapsulation:2,changeDetection:0});
var vQb=[[["onedev-hovercard-action"],["",8,"actions"]]],pR=function(){};pR.prototype.ngOnInit=function(){};pR.\u0275fac=function(a){return new (a||pR)};
pR.\u0275cmp=w({type:pR,selectors:[["b-person-card"]],inputs:{email:"email"},ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"],["cardBody",""]],template:function(a){a&1&&(Ae(vQb),M(0,aAa,3,3,"onedev-person-hovercard",0))},dependencies:[oR,gN,hN],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 qR=function(){this.isNonObfuscatedEmail=Rn};qR.\u0275fac=function(a){return new (a||qR)};
qR.\u0275cmp=w({type:qR,selectors:[["b-person-hovercard"]],inputs:{email:"email",triggerClass:"triggerClass"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(Ae(),M(0,cAa,6,4,"ng-container",0),M(1,dAa,1,0,"ng-template",null,1,Mf));if(a&2){var c=Fe(2);E("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",c)}},dependencies:[Gx,
Qx,fN,jN,pR],encapsulation:2,changeDetection:0});
var rR=function(){};rR.prototype.transform=function(a){if(Rn(a))return a};rR.\u0275fac=function(a){return new (a||rR)};rR.\u0275pipe=zc({name:"omitObfuscatedEmail",type:rR,pure:!0});
var sR=function(a){Z.call(this,a)};U(sR,Z);sR.prototype.getDisplayName=function(){return V(this,1)};sR.prototype.setDisplayName=function(a){return l(this,1,a)};sR.prototype.getPhotoUrl=function(){return V(this,2)};sR.prototype.toObject=function(){return wQb(void 0,this)};var wQb=function(a,b){if(null!=b){var c={displayName:n(p(b,1)),photoUrl:n(p(b,2)),highResolutionPhotoUrl:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var tR=function(a){Z.call(this,a)};U(tR,Z);tR.prototype.toObject=function(){var a=null!=this?{userProfileMap:Gb(bj(this,1,sR),void 0,wQb)}:void 0;return a};tR.messageId="b.UserProfileBatchResponse";
var uR=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new rKb(function(d){return c.batchAdaptedGet(d)},100)};uR.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};uR.\u0275fac=function(a){return new (a||uR)(t(vR),t(bJ))};uR.\u0275prov=hc({token:uR,factory:uR.\u0275fac,providedIn:"root"});var vR=function(a){this.executor=a};
vR.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(v(a)).join(",")}},responseConstructor:tR}).pipe(Pf(function(){return(0,T.of)(new tR)}))};vR.prototype.split=function(a,b){return bj(b,1,sR).get(a)||new sR};vR.\u0275fac=function(a){return new (a||vR)(t(hI))};vR.\u0275prov=hc({token:vR,factory:vR.\u0275fac,providedIn:"root"});
var wR=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new T.ReplaySubject(1);this.availability=this.userSubject.pipe(eg(function(c){return WPb(b.waldoAvailabilityService,c)}))};wR.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};wR.\u0275fac=function(a){return new (a||wR)(C($Q))};
wR.\u0275cmp=w({type:wR,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[Fc],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&&(M(0,eAa,6,3,"div",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.availability))},dependencies:[Gx,Tx],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 xR=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};xR.\u0275fac=function(a){return new (a||xR)(C(kL))};xR.\u0275cmp=w({type:xR,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&M(0,fAa,1,2,"ng-template",0);a&2&&E("refreshable",b.refreshMonitor.getObservable())},dependencies:[wR,WO],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});
var yR=function(){this.issueId=0;this.customFieldMap={};this.currentUserEmail="";this.createdTimeMicros=this.authorUser=this.user=this.originalModelData=null;this.componentId=0;this.severity=this.priority=this.type=this.version=null;this.title="";this.verifierUser=this.verifier=this.assigneeUser=this.assignee=this.reporterUser=this.reporter=null;this.cc=[];this.ccUsers=[];this.hotlistId=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.postmortems=this.changelist=this.blockingIssueId=
this.blockedByIssueId=this.duplicateOfIssueId=this.attachmentId=null;this.customField=[];this.duplicateIssueId=this.significanceOverride=this.deletionReason=this.isDeleted=this.snapshotNumber=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeUntil=null;this.status="NEW"};
yR.prototype.setData=function(a,b,c){this.issueId=b;a=Ii(a);a.status=a.status||"NEW";a.blockingIssueId=a.blockingIssueId||[];a.componentId=a.componentId||0;a.changelist=a.changelist||[];a.postmortems=a.postmortems||[];a.blockedByIssueId=a.blockedByIssueId||[];a.foundInVersion=a.foundInVersion||[];a.hotlistId=a.hotlistId||[];a.targetedToVersion=a.targetedToVersion||[];a.verifiedInVersion=a.verifiedInVersion||[];a.customField=a.customField||[];a.deletionReason=a.deletionReason||null;a.duplicateOfIssueId=
a.duplicateOfIssueId||null;a.isDeleted=a.isDeleted||!1;this.originalModelData=Ii(a);this.assignee=Ql(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=Gqa(a.ccUsers)||[];this.ccUsers=a.ccUsers||[];this.changelist=a.changelist;this.componentId=a.componentId||0;this.createdTimeMicros=a.createdTimeMicros;this.deletionReason=a.deletionReason;this.duplicateIssueId=
a.duplicateIssueId;this.duplicateOfIssueId=a.duplicateOfIssueId;this.foundInVersion=a.foundInVersion;this.hotlistId=a.hotlistId;this.inProd=a.inProd;this.isArchived=a.isArchived;this.isDeleted=a.isDeleted;this.postmortems=a.postmortems;this.priority=a.priority;this.reporter=Ql(a.reporterUser);this.reporterUser=a.reporterUser;this.severity=a.severity;this.significanceOverride=a.significanceOverride;this.snapshotNumber=a.snapshotNumber;this.status=a.status||"NEW";this.targetedToVersion=a.targetedToVersion;
this.title=a.title;this.type=a.type;this.user=Ql(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=Ql(a.verifierUser);this.verifierUser=a.verifierUser;this.version=a.version;this.sloSnoozeUntil=a.sloSnoozeUntil;var d,e;this.effortEstimate=null!=(e=null==(d=a.effort)?void 0:V(d,2))?e:null;this.customField=[];a&&(this.customField=(a.customField||[]).filter(function(f){return f}).map(function(f){return new xQb(f)}));d={};c=r(c);for(e=c.next();!e.done;d={$jscomp$loop$prop$fieldResource$1694:d.$jscomp$loop$prop$fieldResource$1694},
e=c.next())d.$jscomp$loop$prop$fieldResource$1694=e.value,e=d.$jscomp$loop$prop$fieldResource$1694.allowedValue?d.$jscomp$loop$prop$fieldResource$1694.allowedValue.map(function(f){return{value:f,displayText:f}}):null,(a=this.customField.find(function(f){return function(h){return h.customFieldId===f.$jscomp$loop$prop$fieldResource$1694.customFieldId}}(d)))?(a.type=d.$jscomp$loop$prop$fieldResource$1694.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1694.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1694.customFieldId)]=
a):(a=new xQb({customFieldId:d.$jscomp$loop$prop$fieldResource$1694.customFieldId}),a.type=d.$jscomp$loop$prop$fieldResource$1694.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1694.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1694.customFieldId)]=a)};
var zQb=function(a){for(var b=[],c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=yQb(a,d.customFieldId);e=e?e.getValue():null;var f=d.getValue();if(!Hi(e,f)){if(e=d.isEmpty())d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalModelData){zR(Ql(a.originalModelData.assigneeUser),a.assignee,"assignee",b);zR(a.originalModelData.componentId,a.componentId,"componentId",b);zR(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);zR(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);zR(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);zR(a.originalModelData.inProd,a.inProd,"inProd",b);zR(a.originalModelData.isArchived,a.isArchived,"isArchived",b);zR(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);zR(a.originalModelData.priority,a.priority,"priority",b);zR(Ql(a.originalModelData.reporterUser),a.reporter,"reporter",b);
zR(a.originalModelData.severity,a.severity,"severity",b);zR(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);zR(a.originalModelData.snapshotNumber,a.snapshotNumber,"snapshotNumber",b);zR(a.originalModelData.status,a.status,"status",b);zR(a.originalModelData.title,a.title,"title",b);zR(a.originalModelData.type,a.type,"type",b);zR(Ql(a.originalModelData.authorUser),a.user,"user",b);zR(Ql(a.originalModelData.verifierUser),a.verifier,"verifier",b);zR(a.originalModelData.version,
a.version,"version",b);var h,k,q,u;zR(null!=(q=null==(h=a.originalModelData.sloSnoozeUntil)?void 0:h.getSeconds())?q:0,null!=(u=null==(k=a.sloSnoozeUntil)?void 0:k.getSeconds())?u:0,"sloSnoozeUntil",b);var y,D;zR(null!=(D=null==(y=a.originalModelData.effort)?void 0:V(y,2))?D:null,a.effortEstimate,"effortEstimate",b);AR(a.originalModelData.attachmentId,a.attachmentId,"attachmentId",b);AR(Gqa(a.originalModelData.ccUsers),a.cc,"ccs",b);AR(a.originalModelData.changelist,a.changelist,"changelists",b);
AR(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);AR(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);AR(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);AR(a.originalModelData.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);AR(a.originalModelData.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);AR(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return 0==b.length?null:{issueId:a.issueId,
actions:b}},zR=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},AR=function(a,b,c,d){var e=Si(b||[],new Set(a));a=Si(a||[],new Set(b));0==e.length||d.push({fieldName:c,value:e.join(","),actionType:"ADD"});0==a.length||d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})};g=yR.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){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:ph(c,"Unexpected custom field type: "+c)}}};g.setIsDeleted=function(a){this.isDeleted=a};g.setIsArchived=function(a){this.isArchived=a};g.setDeletionReason=function(a){this.deletionReason=a};g.setReporter=function(a){this.reporter=a};g.setType=function(a){this.type=a};g.setPriority=function(a){this.priority=a};
g.setSeverity=function(a){this.severity=a};g.setAssignee=function(a){this.assignee=a;a=Fn[this.status];!this.assignee&&this.originalModelData&&Ql(this.originalModelData.assigneeUser)&&"REQUIRED"===(null==a?void 0:a.assigneeRequirement)?this.status="NEW":this.assignee&&"FIXED"!==this.status&&"VERIFIED"!==this.status&&(this.status="ASSIGNED")};
g.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalModelData&&Ql(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=Fn[this.status];"FORBIDDEN"===(null==a?void 0:a.assigneeRequirement)&&this.assigneeUser?this.assignee="":"REQUIRED"!==(null==a?void 0:a.assigneeRequirement)||this.assigneeUser||(this.assignee=this.currentUserEmail);"VERIFIED"!==this.status||this.verifier||(this.verifier=this.currentUserEmail)};g.setInProd=function(a){this.inProd=a};var AQb=function(a,b){a.blockingIssueId=b},BQb=function(a,b){a.blockedByIssueId=b};
yR.prototype.setSloSnoozeUntil=function(a){this.sloSnoozeUntil=a};var yQb=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new cJ(a):null:null},xQb=function(a){cJ.call(this,a);this.choices=this.customFieldName=this.type=null};U(xQb,cJ);xQb.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var CQb=new Map([["assignee",function(a,b){a.assigneeUser=Xl(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Xl).filter(el)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Xl(b.reporter)}],["verifier",function(a,b){a.verifierUser=Xl(b.verifier)}],["componentId",function(a,b){a.componentId=b.componentId}],["createdTimeMicros",function(a,b){a.createdTimeMicros=b.createdTimeMicros}],["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}],["significanceOverride",function(a,b){a.significanceOverride=b.significanceOverride}],["snapshotNumber",function(a,b){a.snapshotNumber=
b.snapshotNumber}],["status",function(a,b){a.status=b.status}],["title",function(a,b){a.title=b.title}],["type",function(a,b){a.type=b.type}],["user",function(a,b){a.authorUser=b.authorUser}],["version",function(a,b){a.version=b.version}],["attachmentId",function(a,b){a.attachmentId=b.attachmentId}],["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 BR=function(a){this.$window=a};BR.\u0275fac=function(a){return new (a||BR)(t(mM))};BR.\u0275prov=hc({token:BR,factory:BR.\u0275fac,providedIn:"root"});
var CR=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},DQb=function(a,b){return new Promise(function(c){DR(a,b,function(){c(!0)},function(){c(!1)})})},DR=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Tn("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Wn($y('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'),
Vn("A",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more"));else if("PRIVACY_ISSUE"===b){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var h={};f=Wn($y('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. '),Vn("A",(b.href="http://goto.google.com/pib-slo",b.target="_blank",b),"Learn more"),$y(".\n\nDO NOT use this type to file "),
Vn("A",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),$y(". Incidents should be filed at "),Vn("A",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),$y(".\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."))}a.confirmationDialogService.open({title:e,
content:f,onConfirm:null!=c?c:function(){},onDismiss:null!=d?d:function(){}})}};CR.\u0275fac=function(a){return new (a||CR)(t(qH),t(kP),t(RM))};CR.\u0275prov=hc({token:CR,factory:CR.\u0275fac,providedIn:"root"});
var EQb=function(a){var b=[],c=[].concat.apply([],v(a.map(function(e){return e.actions})));a={};c=r(c);for(var d=c.next();!d.done;a={$jscomp$loop$prop$action$1696:a.$jscomp$loop$prop$action$1696},d=c.next())a.$jscomp$loop$prop$action$1696=d.value,b.some(function(e){return function(f){return Hi(e.$jscomp$loop$prop$action$1696,f)}}(a))||b.push(a.$jscomp$loop$prop$action$1696);return b},FQb=function(a){return Array.from(new Set([].concat.apply([],v(a.map(function(b){return b.issueIds})))))};
var ER=function(a){this.dateFormatter=a};
ER.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(Qk(a)):"";if(a.enumValue)return a.enumValue;if(a.numericValue||0===a.numericValue)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(Qk(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};ER.\u0275fac=function(a){return new (a||ER)(t(AP))};ER.\u0275prov=hc({token:ER,factory:ER.\u0275fac,providedIn:"root"});
var FR=function(a,b){this.customFieldFormatter=a;this.hotlistFridge=b;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",sloSnoozeUntil:"SLO Snooze Until",blockingIssueId:"Blocked Issues",ccs:"CCs",changelists:"Changelists",blockedByIssueId:"Blocking Issues",foundInVersion:"Found In",
hotlists:"Hotlists",targetedToVersion:"Targeted To",verifiedInVersion:"Verified In"};this.ENUM_FIELDS=["type","status"]},IQb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=FQb(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=EQb(b.bulkEditOps));b=GQb(f).map(function(h){return HQb(a,h,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?1==e.length?b+" on 1 issue.":b+(" on "+e.length+" issues."):b+"."},GQb=function(a){var b=
[],c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,"status"===d.fieldName?c.push(d):b.push(d);return b.concat(c)},HQb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=new cJ(b.customFieldValue),e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):e="effortEstimate"===b.fieldName&&d?d:a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName;"hotlists"===
b.fieldName?f=b.value.split(",").map(function(h){var k,q;return(k=null==(q=Kk(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?Pk(f.replace(/_/g," ").toLowerCase()):"");return"ADD"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):"REMOVE"===b.actionType&&"hotlists"===b.fieldName?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):"ADD"===b.actionType&&
"parentId"===b.fieldName?"Added child issue(s) to parent ["+f+"]":"REMOVE"===b.actionType&&"parentId"===b.fieldName?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||"status"!==b.fieldName?b.actionType||"comment"!==b.fieldName?b.actionType||"attachments"!==b.fieldName?b.actionType||"sloSnoozeUntil"!==b.fieldName?"ADD"!==b.actionType||b.customFieldValue?"REMOVE"!==b.actionType||b.customFieldValue?"isArchived"===b.fieldName?"true"===b.value?"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 snoozed":"SLO un-snoozed":"":"Comment added":'Status set to "'+Fn[b.value].displayValue+'"'};FR.\u0275fac=function(a){return new (a||FR)(t(ER),t(iL))};FR.\u0275prov=hc({token:FR,factory:FR.\u0275fac,providedIn:"root"});
var GR=function(a){Z.call(this,a,-1,JQb)};U(GR,Z);GR.prototype.getAttachmentsList=function(){return tb(this,Zm,1)};GR.prototype.setAttachmentsList=function(a){Cb(this,1,a)};var JQb=[1];GR.prototype.toObject=function(){var a=null!=this?{attachmentsList:Eb(this.getAttachmentsList(),VHb)}:void 0;return a};GR.messageId="b.CreateAttachmentsResponse";
var HR=function(a){Z.call(this,a)};U(HR,Z);HR.prototype.getErrorMessage=function(){return V(this,2)};HR.prototype.setErrorMessage=function(a){l(this,2,a)};HR.prototype.toObject=function(){var a=null!=this?{encryptedMedia:Hb(Jm(this,1)),errorMessage:n(p(this,2))}:void 0;return a};HR.messageId="b.EncryptedMediaResponse";
var IR=function(){},JR=function(a){this.apiResourceFactory=a;this.attachmentsResource=MJ(this.apiResourceFactory,"action/issues/:issueId/attachments");this.driveAttachmentResource=MJ(this.apiResourceFactory,"action/issues/drive_attachment")};U(JR,IR);JR.prototype.createAttachment=function(a){return this.attachmentsResource.save({issueId:a.issueId},a)};JR.prototype.createDriveAttachment=function(a){return this.driveAttachmentResource.save({},a)};JR.\u0275fac=function(a){return new (a||JR)(t(KJ))};
JR.\u0275prov=hc({token:JR,factory:JR.\u0275fac,providedIn:"root"});var KR=function(a){this.executor=a};U(KR,IR);KR.prototype.createAttachment=function(a){var b=new TJ;b.setIssueId(String(a.issueId));void 0!==a.attachments&&b.setAttachmentsList(a.attachments);if(void 0!==a.attachmentsWithJudgements){var c=a.attachmentsWithJudgements.map($ra);Cb(b,3,c)}return this.executor.post({url:"action/issues/"+a.issueId+"/attachments",body:b,responseConstructor:GR}).then(asa)};
KR.prototype.createDriveAttachment=function(a){var b=new mHb;b.setFilename(a.filename);b.setMimeType(a.mimeType);null!=a.encryptedBlobId&&l(b,3,a.encryptedBlobId);l(b,4,a.docId);null!=a.size&&b.setSize(a.size);return this.executor.post({url:"action/issues/drive_attachment",body:b,responseConstructor:HR}).then(Zra)};KR.\u0275fac=function(a){return new (a||KR)(t(iI))};KR.\u0275prov=hc({token:KR,factory:KR.\u0275fac,providedIn:"root"});
var LR=function(){};LR.\u0275fac=function(a){return new (a||LR)};LR.\u0275prov=hc({token:LR,factory:LR.\u0275fac,providedIn:"root"});var MR=function(a){this.$http=a};U(MR,LR);MR.prototype.delete=function(a,b,c){a="action/issues/"+a+"/attachments/"+b.attachmentId;var d={};b={params:{reason:c},headers:(d["If-Match"]=b.etag,d)};return this.$http.delete(a,b).then(function(){})};
MR.prototype.undelete=function(a,b){var c={};return this.$http.post("action/issues/"+a+"/attachments/"+b.attachmentId,{},{headers:(c["If-Match"]=b.etag,c)}).then(function(d){return d.data})};MR.\u0275fac=function(a){return new (a||MR)(t(uJ))};MR.\u0275prov=hc({token:MR,factory:MR.\u0275fac,providedIn:"root"});var NR=function(a){this.executor=a};U(NR,LR);
NR.prototype.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/attachments/"+b.attachmentId,options:{headers:{"If-Match":b.etag},params:{reason:c}},responseConstructor:null})};NR.prototype.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/attachments/"+b.attachmentId,body:null,options:{headers:{"If-Match":b.etag}},responseConstructor:Zm}).then(Lm)};NR.\u0275fac=function(a){return new (a||NR)(t(iI))};
NR.\u0275prov=hc({token:NR,factory:NR.\u0275fac,providedIn:"root"});
var OR=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};OR.prototype.close=function(a){this.dialogRef.close(a)};OR.\u0275fac=function(a){return new (a||OR)(C(QB),C(kP),C(aC))};
OR.\u0275cmp=w({type:OR,selectors:[["confirm-no-access-dialog"]],decls:18,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["mat-button","","color","primary",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"h1",1),O(2,"User may not have access"),G(),F(3,"section",2)(4,"p"),O(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
G(),F(6,"ul"),M(7,hAa,2,1,"li",3),G(),F(8,"section"),O(9,"Continue anyway?"),G()(),F(10,"footer",4)(11,"div",5)(12,"a",6),O(13,"Learn more"),G()(),F(14,"button",7),J("click",function(){return b.close(!0)}),O(15,"Continue"),G(),F(16,"button",8),J("click",function(){return b.close(!1)}),O(17,"Cancel"),G()()());a&2&&(B(7),E("ngForOf",b.userEmails),B(5),E("href",b.readMoreLink,Qd))},dependencies:[Kx,FB,eC,fC,gC],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});
var PR=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},LQb=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return ef(function(u){switch(u.nextAddress){case 1:if(d.every(function(y){return 0===y.length}))return u.return(!0);Ut(u,2);return ff(u,KQb(a,c,d,e),4);case 4:h=u.yieldResult;if(0===h.length)return u.return(!0);io(a.analytics,mo.ADD_USER_WITHOUT_ACCESS,"warn",f);return ff(u,a.confirm(h,
e),5);case 5:k=u.yieldResult;if(!k)return yK(a.butterBar,"Save cancelled.",4E3),io(a.analytics,mo.ADD_USER_WITHOUT_ACCESS,"cancel",f),u.return(!1);io(a.analytics,mo.ADD_USER_WITHOUT_ACCESS,"proceed",f);return u.return(!0);case 2:return q=Wt(u),a.logger.error(q),u.return(!1)}})},KQb=function(a,b,c,d){var e;return ef(function(f){if(1==f.nextAddress)return ff(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(v(e.noAccessEmails||[]),v(e.unknownEmails||
[])))})};PR.prototype.confirm=function(a,b){var c=this,d,e,f;return ef(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(OR,{width:"400px",data:d}),ff(h,(0,T.firstValueFrom)(RB(e)),2);f=h.yieldResult;return h.return(!!f)})};PR.\u0275fac=function(a){return new (a||PR)(t(cC),t(IM),t(xK),t(AK),t(ZN))};PR.\u0275prov=hc({token:PR,factory:PR.\u0275fac,providedIn:"root"});
var QR=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};QR.prototype.cancel=function(){this.state=4};var MQb={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};
var RR=function(a,b){this.initialComment=a=void 0===a?"":a;this.fromTemplate=void 0===b?!1:b;this.uploads=[];this.formattingMode=1;this.value=a};RR.prototype.reset=function(){this.value="";NQb(this)};
var NQb=function(a){for(var b=r(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},OQb=function(a){return a.fromTemplate&&a.initialComment===a.value},PQb=function(a){var b=[];a=r(a.uploads);for(var c=a.next();!c.done;c=a.next())c=c.value,2===c.state&&c.blobRef&&b.push(Ii(c.blobRef));return b};RR.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var QQb=function(a){return!a.isEmpty()&&!Os(a)};RR.prototype.isEmpty=function(){return!this.value&&!RQb(this)};
var Os=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},RQb=function(a){return a.uploads.some(function(b){return 2===b.state})};
var SR=new od("routeParams",{factory:function(){return t(jM).params}});
var TR=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};TR.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,T.of)(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Oi(this.routeParams.template_comment)||1;return(0,T.defer)(function(){return SQb(b,c,d,b.routeParams.do_attribution)})}return a?(0,T.of)(this.draftStore.$window.sessionStorage.getItem(Bo(EC(a)))||""):(0,T.of)("")};
var SQb=function(a,b,c,d){var e,f,h,k,q;return ef(function(u){if(1==u.nextAddress)return Ut(u,2),ff(u,a.issueComments.get(b,c),4);if(2!=u.nextAddress)return e=u.yieldResult,f=e.unlinkifiedComment||e.comment,h=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(k="> From issue "+b+" on "+h+":",u.return(k+"\n\n"+f)):u.return(f);q=Wt(u);DK(a.errorHandler,q);return u.return("")})};TR.\u0275fac=function(a){return new (a||TR)(t(SR),t(hO),t(BR),t(BK))};
TR.\u0275prov=hc({token:TR,factory:TR.\u0275fac,providedIn:"root"});
var TQb=function(a,b,c,d){var e=this;this.issueId=a;this.defaultCommentSource=b;this.issueFetchResponseFridge=c;this.activeSession=d;this.issueFr$=sL(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(R(function(f){return null==f?void 0:f.issue}));this.componentId$=this.issue$.pipe(R(function(f){return null==f?void 0:f.snapshot[0].componentId}),Sf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(R(function(f){return new RR(f)}),dg(new RR("")),bg({bufferSize:1,
refCount:!0}));this.comment=function(){return Kk(e.comment$)};this.createRestrictedResourcesComponentWhitelist=lb(this.activeSession.config,13);this.componentJudgementForNewContent$=this.componentId$.pipe(R(function(f){if(f&&e.createRestrictedResourcesComponentWhitelist.includes(f))return(new Il).setSeverity(2).setJudgementReason("None Specified")}),bg({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new T.BehaviorSubject(void 0);this.judgementForNewContent$=(0,T.combineLatest)([this.componentJudgementForNewContent$.pipe(dg(void 0)),
this.userDefinedJudgementForNewContent$]).pipe(R(function(f){var h=r(f);f=h.next().value;h=h.next().value;return null!=h?h:f}),bg({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return Kk(e.judgementForNewContent$)}},UQb=function(a){var b=a.comment(),c,d=1===(null==(c=a.judgementForNewContent())?void 0:c.getSeverity())?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=r(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,2===f.state&&f.blobRef&&(f=
Ii({attachment:f.blobRef}),d&&(f.contentJudgement={severity:El(d.getSeverity()),judgementReason:d.getJudgementReason()}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},VQb=function(a){var b=UQb(a),c=b.attachmentsWithJudgements;a={issueId:Number(a.issueId),actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});c.length&&a.actions.push({fieldName:"attachments"});return a},UR=function(a,b,c){this.defaultCommentSource=a;this.issueFetchResponseFridge=
b;this.activeSession=c};UR.prototype.create=function(a){return new TQb(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession)};UR.\u0275fac=function(a){return new (a||UR)(t(TR),t(rL),t(qH))};UR.\u0275prov=hc({token:UR,factory:UR.\u0275fac,providedIn:"root"});
var VR=function(){};VR.prototype.isSloSnoozed=function(a){return!!a&&a.getSeconds()>Date.now()/1E3};
var WR=function(a){return!!a&&a.hasTargetTime()&&0!==a.getTargetTime().getSeconds()},WQb=function(a){return WR(a.getAssignmentBounds())||WR(a.getResponseBounds())||WR(a.getClosureBounds())},XQb=function(a){if(!a)return null;var b=[],c=[];a.hasAssignmentBounds()&&iAa(b,c,a.getAssignmentBounds(),"ASSIGNMENT");a.hasResponseBounds()&&iAa(b,c,a.getResponseBounds(),"RESPONSE");a.hasClosureBounds()&&iAa(b,c,a.getClosureBounds(),"CLOSURE");return 0<b.length?(b.sort(kAa),b[0]):0<c.length?(c.sort(kAa),{sloBounds:c[0].sloBounds,
sloMetric:""}):null};VR.\u0275fac=function(a){return new (a||VR)};VR.\u0275prov=hc({token:VR,factory:VR.\u0275fac,providedIn:"root"});
var YQb=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFetchResponseFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableWtdmFieldPerTypeVisibility=cj("enableWtdmMvpUi")||!1;this.enableNonWtdmFieldPerTypeVisibility=cj("enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=sL(this.issueFetchResponseFridge,this.issueId);this.issue$=
this.issueFetchResponse$.pipe(R(function(h){return null==h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(R(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(R(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),R(eva),R(function(h){return!!h&&WQb(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(R(function(h){return null!=(null==h?void 0:h.type)&&kDb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(R(function(h){return h?
!f.enableWtdmFieldPerTypeVisibility:!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=(0,T.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(R(function(h){var k=r(h);h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(R(function(h){return!f.enableWtdmFieldPerTypeVisibility||!h}));this.isChangelistPrimary$=(0,T.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(R(function(h){var k=r(h);
h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||!h||"STORY"===(null==k?void 0:k.type)||"TASK"===(null==k?void 0:k.type)}));this.customFields$=this.issueFetchResponse$.pipe(R(function(h){var k;return null!=(k=null==h?void 0:h.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(R(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(R(function(h){return h.map(function(k){return k.customFieldId}).filter(el)}),
R(function(h){return new Set(h)}),bg({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,T.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(R(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),bg({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,T.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(R(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),
bg({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,T.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(R(function(h){var k=r(h);h=k.next().value;var q=k.next().value,u=k.next().value,y=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||u?0:1)+(!f.showChangelists||y?0:2)+k.length}),bg({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(R(function(h){return 0<
h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(R(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},YR=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=b;this.activeSession=c;this.sloStatusHelpersService=d};YR.prototype.create=function(a){return new YQb(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};YR.\u0275fac=function(a){return new (a||YR)(t(rL),t(RH),t(qH),t(VR))};
YR.\u0275prov=hc({token:YR,factory:YR.\u0275fac,providedIn:"root"});
var cLb=mo.EDIT_ISSUE,ZR=function(a,b){qI.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=Co(this.issueToTrackingState,lAa);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")};U(ZR,qI);ZR.\u0275dir=qI.\u0275dir;
var ZQb=function(a,b){a.resetState(b);a.getState(b)},$Qb=function(a,b){var c=a.getState(b);a.trackDestroy("edit-count",c.editCount);a.resetState(b)},$R=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=Date.now()-a.getState(b).startTime,a.trackFirstAction("time-to-action",b),a=a.clearcut,a.userLatency.record(b,"idp-time-to-action",a.frontendAccessMode,a.environmentType),d.firstActionSeen=!0)};ZR.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};
ZR.\u0275fac=function(a){return new (a||ZR)(t(IM),t(JO))};ZR.\u0275prov=hc({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});
var aRb={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},bRb={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},cRb={type:"START",displayText:"Start work",description:"Change issue status to 'Accepted'"},dRb={type:"FIX",displayText:"Mark fixed",description:"Change issue status to 'Fixed'"},eRb={type:"VERIFY",displayText:"Verify",description:"Change issue status to 'Verified'"},fRb={type:"REOPEN",displayText:"Re-open",
description:"Change issue status back to 'Assigned'"};
var hRb=function(a,b,c,d){var e=this;this.issueId=a;this.activeSession=b;this.issueFridge=c;this.componentTemplatesFridge=d;this.defaultAssigneeQuickActionEnabled=this.activeSession.isInternalSession();this.issue$=this.issueFridge.watch(this.issueId).pipe(bg({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(R(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(R(function(f){return(null==f?void 0:f.assigneeUser)&&Tl(f.assigneeUser)}),R(al));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(R(function(f){return null==f?void 0:f.componentId}),Sf(),eg(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,T.of)(void 0)}),R(function(f){return f&&Tl(f.snapshot.assigneeUser)}),bg({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return Kk(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,T.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(R(function(f){var h=
r(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?bRb:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(R(function(f){return f&&gRb(e,f)}))},gRb=function(a,b){var c=a.activeSession.getUserEmail();a=Tl(b.assigneeUser)===c;c=Tl(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return eRb;if(a)switch(b){case "ASSIGNED":return cRb;case "ACCEPTED":return dRb;default:return fRb}switch(b){case "NEW":return aRb;case "ASSIGNED":return aRb;case "ACCEPTED":return aRb;
default:return fRb}},aS=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};aS.prototype.create=function(a){return new hRb(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};aS.\u0275fac=function(a){return new (a||aS)(t(qH),t(oL),t(HK))};aS.\u0275prov=hc({token:aS,factory:aS.\u0275fac,providedIn:"root"});
var bS=function(a){a=void 0===a?[]:a;this.internalValue$=new T.BehaviorSubject(new Set);a=r(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};bS.prototype.add=function(a){this.value.add(a);this.internalValue$.next(this.value);return this};bS.prototype.clear=function(){this.value.clear();this.internalValue$.next(this.value)};bS.prototype.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};bS.prototype.has=function(a){return this.value.has(a)};
var Us=function(a,b){return a.internalValue$.pipe(R(function(c){return c.has(b)}),Sf())};bS.prototype[Symbol.iterator]=function(){return this.value.values()};bS.prototype.toString=function(){return"[ReactiveSet](["+[].concat(v(this.value.values())).join(", ")+"])"};bS.prototype.indexOf=function(a){return[].concat(v(this.value.values())).indexOf(a)};
oi.Object.defineProperties(bS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}}});
var iRb={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete",COMMENT:"comment",TITLE:"title",PARENT_ISSUES:"parentIssues"},jRb=function(){this.propertiesBeingSaved=new bS};jRb.prototype.get=function(a){return this.propertiesBeingSaved.has(Xn(a))};var cS=function(a,b){a.propertiesBeingSaved.add(Xn(b))},dS=function(a,b){a.propertiesBeingSaved.delete(Xn(b))};
jRb.prototype.properties=function(){return[].concat(v(this.propertiesBeingSaved))};
var eS=function(){};eS.prototype.transform=function(a){return Do(a)};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275pipe=zc({name:"appendDomain",type:eS,pure:!0});
var fS=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb){var va=this;this.issueFetchResponseFridge=a;this.activeSession=b;this.butterBar=c;this.issueInteractionsTracking=d;this.issueApi=e;this.componentFridge=f;this.permissionsFridge=h;this.eventsForIssueFridge=k;this.statusMessages=q;this.errorHandler=u;this.confirmationDialogService=y;this.principalTypes=D;this.issuePermissionService=I;this.accessPolicy=N;this.issueTypeDialog=L;this.logger=S;this.issueFridge=X;this.confirmNoAccessService=
ka;this.issueService=ha;this.attachmentsMember=ra;this.userPreferencesManager=Da;this.issueComments=Ja;this.draftStore=Ba;this.attachmentApi=La;this.issueFieldsFactory=hb;this.issueQuickActionsFactory=fb;this.issueCommentDraftFactory=Tb;this.isSavingMap=new Map;this.savingState=Co(this.isSavingMap,function(){return new jRb});this.issueFieldsMap=new Map;this.issueFields=Co(this.issueFieldsMap,function(Ca){return va.issueFieldsFactory.create(Ca)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
Co(this.issueQuickActionsMap,function(Ca){return va.issueQuickActionsFactory.create(Ca)});this.editableIssueMap=new Map;this.editableIssue$=Co(this.editableIssueMap,function(Ca){return kRb(va,Ca)});this.editableIssue=function(Ca){return va.editableIssue$(Ca).value};this.subscriptions=new Map;this.getSubscription=Co(this.subscriptions,function(){return new T.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=Co(this.issueCommentDraftMap,function(Ca){return va.issueCommentDraftFactory.create(Ca)});
this.LEGACY_EDIT_ISSUE={getRequestDataForUpdate:this.getRequestDataForUpdate.bind(this),updateIssue:this.updateIssue.bind(this),preUpdate:this.preUpdate.bind(this),postUpdate:this.postUpdate.bind(this)};this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};fS.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()};
fS.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return ef(function(u){if(1==u.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=d.getRequestDataForUpdate(e))&&f.actions&&f.actions.length?ff(u,d.getRetentionState(a),2):u.return();h=u.yieldResult;d.preUpdate(f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return u.return(d.postUpdate(q,f,{originalRetentionState:h}))})};
var H6a=function(a,b,c){var d;return ef(function(e){if(!c)return zK(a.butterBar,"Reporter can't be empty."),e.return();a.editableIssue(b).setReporter(c);return e.return(null!=(d=a.updateIssue(b))?d:Promise.resolve())})},$7a=function(a,b,c){var d,e,f,h;return ef(function(k){if(1==k.nextAddress){d=HBb(c);if(!d)return a.logger.warn("unknown issue type: "+c),k.return();e=a.editableIssue(b);return"VULNERABILITY"!==d&&"PRIVACY_ISSUE"!==d?k.jumpTo(2):ff(k,DQb(a.issueTypeDialog,d),3)}if(2!=k.nextAddress&&
(f=k.yieldResult,!f))return k.return();e.setType(d);return k.return(null!=(h=a.updateIssue(b))?h:Promise.resolve())})},b8a=function(a,b,c){var d,e,f;return ef(function(h){d=a8a(c);if(!d)return a.logger.warn("unknown priority: "+c),h.return();e=a.editableIssue(b);e.setPriority(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},mRb=function(a,b,c){var d,e,f;return ef(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=Number(c);d.status="DUPLICATE";e=a.getRequestDataForUpdate(d);
return e?(f=e.actions.find(function(k){return"duplicateOfIssueId"===k.fieldName&&!Zi(k.value||"")}))&&f.value?h.return(lRb(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})};
fS.prototype.clearCanonicalIssue=function(a){var b=this,c,d,e,f;return ef(function(h){c=b.editableIssue(a);if(!c.duplicateOfIssueId)return h.return();d={issueId:Number(a),targetIds:[c.duplicateOfIssueId],actionType:"REMOVE",relation:"DUPLICATE"};c.setStatus(c.assignee?"ASSIGNED":"NEW");e=b.getRequestDataForUpdate(c);if(!e||!e.actions)return h.return();b.preUpdate(e);f=b.issueApi.relateIssue(a,d);return h.return(b.postUpdate(f,e))})};
var nRb=function(a,b,c){var d,e;return ef(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})};
fS.prototype.performQuickAction=function(a,b){var c=this,d,e,f;return ef(function(h){if(!b)return h.return();d=c.editableIssue(a);e=c.issueQuickActions(a);switch(b.type){case "TAKE":"NEW"===d.status&&(d.status="ASSIGNED");d.assignee=e.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":var k=e.defaultAssigneeForComponent();k&&("NEW"===d.status&&(d.status="ASSIGNED"),d.assignee=k);break;case "START":d.status="ACCEPTED";break;case "FIX":d.status="FIXED";break;case "VERIFY":d.status="VERIFIED";
break;case "REOPEN":d.status=d.assignee?"ASSIGNED":"NEW";break;default:ph(b.type)}return h.return(null!=(f=c.updateIssue(a))?f:Promise.resolve())})};
var O6a=function(a,b,c){var d,e;return ef(function(f){d=a.editableIssue(b);var h;d.effortEstimate=null!=(h=null==c?void 0:V(c,2))?h:null;return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},L7a=function(a,b,c){var d,e,f;return ef(function(h){d=a.editableIssue(b);e=Vi(c,!1);d.foundInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},P7a=function(a,b,c){var d,e,f;return ef(function(h){d=a.editableIssue(b);e=Vi(c,!1);d.verifiedInVersion=e;return h.return(null!=
(f=a.updateIssue(b))?f:Promise.resolve())})},N7a=function(a,b,c){var d,e,f;return ef(function(h){d=a.editableIssue(b);e=Vi(c,!1);d.targetedToVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},R7a=function(a,b,c){var d,e;return ef(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},G7a=function(a,b,c){var d,e,f;return ef(function(h){d=IBb(c);if(!d)return a.logger.warn("unknown severity: "+c),h.return();e=a.editableIssue(b);
e.setSeverity(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},D7a=function(a,b,c){var d,e;return ef(function(f){d=a.editableIssue(b);d.setSloSnoozeUntil(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},J7a=function(a,b,c){var d,e,f;return ef(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},Y7a=function(a,b,c,d){var e,f;return ef(function(h){e=a.editableIssue(b);e.setCustomField(c,
d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},d7a=function(a,b,c){var d,e,f;return ef(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):ff(h,LQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setVerifier(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},
ot=function(a,b,c){var d,e,f;return ef(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):ff(h,LQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setAssignee(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},pRb=function(a,b,c){var d,e,f,h,k,q,u,y,D;return ef(function(I){switch(I.nextAddress){case 1:d=
a.editableIssue(b);e=Mna(d.cc,c);f=e.added;h=e.removed;if(a.issuePermissionService.isImplicitAccessEnabled()){q=d.cc.some(function(N){return dO(a.issuePermissionService,N)});u=h.some(function(N){return dO(a.issuePermissionService,N)});if(!q||!u){I.jumpTo(3);break}return ff(I,oRb(a,b,d.componentId),6)}return ff(I,LQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:k=I.yieldResult;if(!k)return I.return();I.jumpTo(3);break;
case 6:if(y=I.yieldResult,!y)return I.return();case 3:return d.cc=c,I.return(null!=(D=a.updateIssue(b))?D:Promise.resolve())}})};fS.prototype.unarchive=function(a){var b=this,c,d;return ef(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
fS.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return ef(function(h){switch(h.nextAddress){case 1:return d={issueId:Number(a),retention:b},e=c.savingState(a),cS(e,"retention"),Ut(h,2,3),ff(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return ff(h,mt(c.issueFridge,a),6);case 6:yK(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Xt(h);dS(e,"retention");Yt(h,0);break;case 2:f=Wt(h),DK(c.errorHandler,f),h.jumpTo(3)}})};
var qRb=function(a,b){var c,d,e;return ef(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.delete(Number(b),"ABUSE");return ff(f,a.postUpdate(e,d),0)})},o8a=function(a,b){var c,d,e;return ef(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.undelete(Number(b));
return ff(f,a.postUpdate(e,d),0)})};
fS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return ef(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),ff(q,(0,T.firstValueFrom)(c.issueFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=q.yieldResult;h=null==(f=e)?void 0:f.userData;if(null==h||d.get("subscribe"))return q.return();Ut(q,3,4);cS(d,"subscribe");return ff(q,c.issueFridge.setNotificationSubscription(a,b),4);case 4:Xt(q);dS(d,"subscribe");Yt(q,0);break;case 3:k=Wt(q),DK(c.errorHandler,k),q.jumpTo(4)}})};
var rRb=function(a,b,c){var d,e;ef(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Ut(f,2,3);yK(a.butterBar,"Restoring attachment...");cS(d,"undeleteAttachment");return ff(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:yK(a.butterBar,"Attachment restored."),tL(a.issueFetchResponseFridge,b),mt(a.eventsForIssueFridge,b);case 3:Xt(f);dS(d,"undeleteAttachment");Yt(f,0);break;case 2:e=Wt(f),DK(a.errorHandler,e),f.jumpTo(3)}})},
sRb=function(a,b,c,d){var e,f;return ef(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Ut(h,2,3);yK(a.butterBar,"Deleting attachment...");cS(e,"deleteAttachment");return ff(h,a.attachmentsMember.delete(b,c,d),5);case 5:yK(a.butterBar,"Attachment deleted."),tL(a.issueFetchResponseFridge,b),mt(a.eventsForIssueFridge,b);case 3:Xt(h);dS(e,"deleteAttachment");Yt(h,0);break;case 2:f=Wt(h),DK(a.errorHandler,f),h.jumpTo(3)}})};
fS.prototype.saveCommentDraft=function(a){var b=this,c=this.issueCommentDraft(a),d=c.comment(),e=UQb(c);if(!e.commentText&&!e.attachmentsWithJudgements.length)return Promise.resolve();var f=VQb(c);this.preUpdate(f);return this.postUpdate(function(){return ef(function(h){switch(h.nextAddress){case 1:return ff(h,tRb(b,a),2);case 2:if(!e.commentText){h.jumpTo(3);break}return ff(h,b.issueComments.create(String(a),e.commentText,e.formattingMode,e.judgementForNewContent),4);case 4:d.reset(),b.draftStore.$window.sessionStorage.removeItem(Bo(Number(a)));
case 3:if(!e.attachmentsWithJudgements.length){h.jumpTo(5);break}return ff(h,b.attachmentApi.createAttachment({issueId:a,attachmentsWithJudgements:e.attachmentsWithJudgements}),6);case 6:d.reset();case 5:return c.userDefinedJudgementForNewContent$.next(void 0),h.return(tL(b.issueFetchResponseFridge,a))}})}(),f)};
var tRb=function(a,b){var c,d;return ef(function(e){if(!Ii(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();c=a.editableIssue(b);var f=[].concat(v(c.cc),[a.activeSession.getUserEmail()]);c.cc=f;d={issueId:Number(b),actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return ff(e,a.issueApi.updateIssue(Number(b),d),0)})},kRb=function(a,b){var c=
sL(a.issueFetchResponseFridge,b).pipe(R(function(e){var f=new yR;if(e){var h=uRb(a,b,Ii(sa(e.issue.snapshot))),k=a.activeSession.getUserEmail();f.currentUserEmail=k;var q;f.setData(h,Number(b),null!=(q=e.customFields)?q:[])}return f})),d=new T.BehaviorSubject(new yR);a.getSubscription(b).add(c.subscribe(d));return d};
fS.prototype.updateIssue=function(a){var b=this.editableIssue(a),c=this.getRequestDataForUpdate(b);if(!c)return null;for(var d=!1,e=[],f=[],h=a,k=r(c.actions),q=k.next();!q.done;q=k.next()){q=q.value;var u=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=u.split(",").filter(Boolean);break;case "verifier":case "assignee":f=u.split(",").filter(Boolean);break;case "duplicateOfIssueId":Zi(u)||(e=b.cc,h=String(u),d=!0)}}b=1===c.actions.length&&"ccs"===c.actions[0].fieldName&&"REMOVE"===
c.actions[0].actionType&&this.activeSession.getUserEmail()===c.actions[0].value;return lRb(this,a,{actionIssueId:h,implicitAppenders:e,implicitEditors:f,isDeduping:d,isRemovingSelfFromCc:b,requestData:c})};
var lRb=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba;return ef(function(La){switch(La.nextAddress){case 1:return ff(La,Promise.all([vRb(a,e,"appender",d),vRb(a,f,"writer",d)]),2);case 2:u=La.yieldResult;y=r(u);D=y.next().value;I=y.next().value;N=D;L=I;S=N.noAccessEmails||[];X=L.noAccessEmails||[];ka=[].concat(v(S),v(X));if(0===ka.length)return La.return(wRb(a,q,h,k));Ut(La,
3);return ff(La,Promise.all(ka.map(function(hb){return xRb(a,hb)})),5);case 5:return ha=La.yieldResult,ra=Pta({userPrincipals:ha,newEditors:X,newImplicitUsers:ka,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Da=ra.title,Ja=ra.content,ff(La,BLb(a.confirmationDialogService,{title:Da,content:Tn(Ja),confirmButtonText:"Allow"}),6);case 6:if(Ba=La.yieldResult)return La.return(wRb(a,q,h,k));mt(a.permissionsFridge,"issues/"+b);tL(a.issueFetchResponseFridge,b);Vt(La,0);
break;case 3:Wt(La),zK(a.butterBar,"Could not determine email type."),gf(La)}})},wRb=function(a,b,c,d){a.preUpdate(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 a.postUpdate(e,b)},vRb=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?null:f;if(e&&!f)throw Error("Id");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e=
{noAccessEmails:[]};return 0!==b.length&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(Do),c,h,d):Promise.resolve(e)},uRb=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&Kk(a);if(!a||!d)return c;b=d.properties();d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$customFieldId$1698:d.$jscomp$loop$prop$customFieldId$1698},e=b.next())if(e=e.value,e.match(/^\d+$/)){d.$jscomp$loop$prop$customFieldId$1698=Oi(e);var f=(c.customField||
[]).find(function(h){return function(k){return k.customFieldId===h.$jscomp$loop$prop$customFieldId$1698}}(d));e=a.customFieldMap[e];f&&e&&(f.textValue=e.textValue,f.dateValue=e.dateValue,f.enumValue=e.enumValue,f.numericValue=e.numericValue)}else f=void 0,null==(f=CQb.get(e))||f(c,a);return c};
fS.prototype.getRequestDataForUpdate=function(a){var b=zQb(a);if(!b)return null;var c=this.isSavingMap.get(String(a.issueId));b.actions=b.actions.filter(function(d){return!(null==c?0:c.get(Eo(d)))});return b.actions.length?b:null};
fS.prototype.preUpdate=function(a){var b=String(a.issueId);yK(this.butterBar,"Saving...",0);var c=a.actions.map(function(d){return d.fieldName}).join(",");$R(this.issueInteractionsTracking,b,{label:c});b=this.savingState(b);a=r(a.actions);for(c=a.next();!c.done;c=a.next())cS(b,Eo(c.value))};
fS.prototype.postUpdate=function(a,b,c){var d=this,e,f;return ef(function(h){switch(h.nextAddress){case 1:return Ut(h,2),ff(h,a,4);case 4:return e=h.yieldResult,qL(d.issueFridge,[b.issueId],{eagerUpdate:!1}).then(function(){var k=String(b.issueId);tL(d.issueFetchResponseFridge,k);mt(d.eventsForIssueFridge,k)}),ff(h,yRb(d,b,e,c),5);case 5:Vt(h,0);break;case 2:f=Wt(h),zRb(d,b,f),gf(h)}})};
var yRb=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return ef(function(u){f=a.savingState(String(b.issueId));h=r(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,dS(f,Eo(q));return c?ff(u,ARb(a,b,e),0):u.jumpTo(0)})},zRb=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=r(b.actions);for(var f=b.next();!f.done;f=b.next())dS(e,Eo(f.value));mt(a.permissionsFridge,"issues/"+d);tL(a.issueFetchResponseFridge,d);Hm(c)&&403===c.status&&Im(c)?CK(a.errorHandler,
Im(c)):DK(a.errorHandler,c)},ARb=function(a,b,c){var d,e,f,h,k,q,u,y,D,I,N;return ef(function(L){switch(L.nextAddress){case 1:return ff(L,a.getEffortSpec(String(b.issueId)),2);case 2:d=L.yieldResult;e=a.editableIssue(String(b.issueId));k=IQb(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.getName())?h:"");if(!c){L.jumpTo(3);break}return ff(L,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=L.yieldResult;u=r(q);y=u.next().value;D=
u.next().value;I=y;N=D;var S=k;if("INDEFINITE"!==N&&c&&I){var X=gAa(c);var ka=gAa(I);X=X===ka?"":" Issue retention period changed from "+X+" to "+ka+"."}else X="";k=S+X;case 3:yK(a.butterBar,k),gf(L)}})},oRb=function(a,b,c){var d;return ef(function(e){if(1==e.nextAddress)return ff(e,vRb(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);d=e.yieldResult;return d.noAccessEmails&&0!==d.noAccessEmails.length?e.return(BLb(a.confirmationDialogService,{title:"Un-CC'ing yourself may revoke your access to the issue",
content:Tn("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 the CC list may also remove your ability to view the issue. Are you sure you would like to do this?")})):e.return(!0)})};fS.prototype.getRetentionState=function(a){return(0,T.firstValueFrom)(sL(this.issueFetchResponseFridge,a).pipe(R(pxa)))};fS.prototype.getRetention=function(a){return(0,T.firstValueFrom)(sL(this.issueFetchResponseFridge,a).pipe(R(mxa)))};
fS.prototype.getEffortSpec=function(a){var b=this;return(0,T.firstValueFrom)(sL(this.issueFetchResponseFridge,a).pipe(R(Swa),eg(function(c){return b.componentFridge.watch(c)}),R(uxa)))};var xRb=function(a,b){return ef(function(c){if(a.activeSession.isExternalSession()){var d=c.return;var e=new Oj;e=l(e,1,0);e=l(e,2,0);c=d.call(c,e)}else c=c.return(kI(a.principalTypes,b,!0));return c})};
fS.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=r(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};fS.\u0275fac=function(a){return new (a||fS)(t(rL),t(qH),t(xK),t(ZR),t(fK),t(HJ),t(WL),t(DL),t(FR),t(BK),t(RM),t(jI),t(eO),t(ZN),t(CR),t(AK),t(oL),t(PR),t(JK),t(LR),t(PI),t(hO),t(BR),t(IR),t(YR),t(aS),t(UR))};
fS.\u0275prov=hc({token:fS,factory:fS.\u0275fac,providedIn:"root"});
var gS=function(a,b,c){qI.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new T.ReplaySubject(1);this.ccInProgress$=new T.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(R(function(d){var e;return Ql(null==(e=Dn(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(R(function(d){var e;return Rl(null==(e=Dn(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(bg({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(bg({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};U(gS,qI);gS.\u0275dir=qI.\u0275dir;
var BRb=function(a,b){var c,d,e;return ef(function(f){switch(f.nextAddress){case 1:c=Kk(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;Ut(f,2,3);return ff(f,ot(a.editIssueService,c,d),5);case 5:return ff(f,(0,T.firstValueFrom)(a.assigneeUpdate$.pipe(uf(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),wf(6E4))),3);case 3:Xt(f);a.assigneeInProgress$.next(!1);Yt(f,0);break;case 2:throw e=Wt(f),e;}})},CRb=function(a,b){var c,d,e,f,h;return ef(function(k){switch(k.nextAddress){case 1:c=
Kk(a.id$);if(!c)return k.return();d=a.editIssueService.editableIssue(c);e=d.cc.includes(b.email);f=void 0;"set_user"!==b.action||e?"remove_user"===b.action&&e&&(f=pRb(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=pRb(a.editIssueService,c,[].concat(v(d.cc),[b.email]));if(!f)return k.return();Ut(k,2,3);a.ccInProgress$.next(!0);return ff(k,f,5);case 5:return ff(k,(0,T.firstValueFrom)(a.ccUpdate$.pipe(uf(function(q){q=q.includes(b.email);return"set_user"===b.action?q:!q}),wf(6E4))),
3);case 3:Xt(k);a.ccInProgress$.next(!1);Yt(k,0);break;case 2:throw h=Wt(k),h;}})};gS.\u0275fac=function(a){return new (a||gS)(t(cO),t(eO),t(fS))};gS.\u0275prov=hc({token:gS,factory:gS.\u0275fac});
var hS=function(a,b,c){qI.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};U(hS,qI);hS.\u0275dir=qI.\u0275dir;
hS.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(fg(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(fg(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var mAa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Yn(mo.PERSON_CARD,"assigneeAction",b);BRb(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},nAa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Yn(mo.PERSON_CARD,"ccAction",b);CRb(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};hS.\u0275fac=function(a){return new (a||hS)(C(mP),C(mI,2),C(gS,8))};
hS.\u0275cmp=w({type:hS,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[Je([mI]),ee],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"b-person-card",0),M(1,oAa,9,8,"ng-container",1),P(2,"async"),F(3,"onedev-hovercard-action",2),J("click",function(c){Zn(mo.PERSON_CARD,"showAssignedIssuesAction");var d=pn({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
oP(b.domSafe,d)}),F(4,"span"),O(5,"Show assigned issues"),G()()());a&2&&(E("email",b.email),B(1),E("ngIf",b.actionService&&Q(2,2,b.actionService.editAccess$)))},dependencies:[Gx,PN,pR,Tx],encapsulation:2,changeDetection:0});
var iS=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new T.ReplaySubject(1);this.showEmail$=new T.BehaviorSubject(!1);this.isNonObfuscatedEmail=Rn;this.userProfile$=this.email$.pipe(eg(function(d){return c.userProfiles.get(d)})).pipe(dg(new sR));this.content$=(0,T.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(R(function(d){var e=r(d);d=e.next().value;var f=e.next().value;
e=e.next().value;return(f=f.getDisplayName())?e?d+" ("+f+")":f:d}));this.vars$=(0,T.combineLatest)([this.email$,this.content$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=sH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};oi.Object.defineProperties(iS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.email$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});
iS.\u0275fac=function(a){return new (a||iS)(C(qH),C(uR))};
iS.\u0275cmp=w({type:iS,selectors:[["b-user-display-name"]],inputs:{availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled",email:"email",showEmail:"showEmail"},decls:2,vars:3,consts:[[4,"ngIf"],["displayName",""],[4,"ngIf","ngIfElse"],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(M(0,tAa,4,2,"ng-container",
0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.vars$))},dependencies:[Gx,Qx,xR,hS,fN,jN,Tx],encapsulation:2,changeDetection:0});
var jS=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};jS.prototype.getDisplayString=function(){return Ql(this.model)};var DRb=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?Fqa(Sl(b)):Fqa(b))&&!!a.getEmailAddress()};jS.prototype.getEmailAddress=function(){return Tl(this.model)||""};jS.\u0275fac=function(a){return new (a||jS)};
jS.\u0275cmp=w({type:jS,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},decls:3,vars:2,consts:[[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled",4,"ngIf"],[4,"ngIf"],[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(ve(0),M(1,uAa,1,4,"b-user-display-name",0),M(2,vAa,2,1,"span",
1),we());a&2&&(B(1),E("ngIf",DRb(b)),B(1),E("ngIf",!DRb(b)))},dependencies:[Gx,iS],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 kS=function(a){var b=this;this.userProfiles=a;this.email$=new T.ReplaySubject(1);this.isNonObfuscatedEmail=Rn;this.userProfile$=this.email$.pipe(eg(function(c){return c?b.userProfiles.get(c).pipe(dg(new sR)):(0,T.of)(void 0)}));this.vars$=(0,T.combineLatest)([this.email$,this.userProfile$]).pipe(R(function(c){var d=r(c);c=d.next().value;d=d.next().value;if(!d)return{email:c,showImage:!1,src:void 0,srcset:void 0};var e=!d.getPhotoUrl(),f=e?void 0:d.getPhotoUrl(),h;e?h=void 0:h=V(d,3)?V(d,3)+" 2x":
d.getPhotoUrl()+" 1x";return{email:c,showImage:!e,src:f,srcset:h}}))};oi.Object.defineProperties(kS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Rn(a)?this.email$.next(a):this.email$.next(void 0)}}});kS.\u0275fac=function(a){return new (a||kS)(C(uR))};
kS.\u0275cmp=w({type:kS,selectors:[["b-user-image"]],inputs:{email:"email"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["imageDisplay",""],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-avatar","material"],["alt","",3,"src","srcset",4,"ngIf"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(M(0,AAa,4,2,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.vars$))},dependencies:[Gx,Qx,hS,fN,jN,Tx],styles:['.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:18px;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center}.material.user-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .material.user-avatar.anonymous[_ngcontent-%COMP%]{border-radius:50%}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle}'],
changeDetection:0});
var lS=function(a,b,c,d,e,f,h){var k=this;this.cdr=a;this.codefont=b;this.location=e;this.paths=f;this.userFeedback=h;this.commentVersion=-1;this.history=[];this.diffView=this.isLoading=!0;this.issueId=c.issueId;this.commentNumber=c.commentNumber;this.commentVersion=c.commentVersion;c.commentHistory.then(function(q){k.history=q}).catch(function(q){d.errorHandler(null,q)}).finally(function(){k.isLoading=!1;k.cdr.detectChanges()})};lS.prototype.trackByIndex=function(a){return a};
lS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};lS.\u0275fac=function(a){return new (a||lS)(C(mI,2),C(qQ),C(aC),C(BK),C(hy),C(LK),C(NO))};
lS.\u0275cmp=w({type:lS,selectors:[["comment-history-dialog"]],features:[Je([mI])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],["label","Show Diff",3,"checked","change"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],["class","bv2-view-loading",4,"ngIf"],["class","comment-history-list",4,"ngIf"],["mat-button","","mat-dialog-close",""],[1,"bv2-view-loading"],[1,"comment-history-list"],["class","comment-version",3,"comment-version-open",4,"ngFor","ngForOf","ngForTrackBy"],
[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"],["class","muted float-right float-clear",4,"ngIf"],[4,"ngIf"],[1,"muted","float-right","float-clear"],["class","type-xs",3,"innerHtml",4,"ngIf"],["class","type-xs",4,"ngIf"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"id","click"],["class","comment-version-preview",
4,"ngIf"],["class","comment-version-preview deleted",4,"ngIf"],["class","comment-version-restricted",4,"ngIf"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],["class","comment-version-content deleted",4,"ngIf"],["class","comment-version-content",3,"codefont","innerHtml",4,"ngIf"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1),G(),F(2,"mat-dialog-content")(3,"div",
1)(4,"b-checkbox",2),J("change",function(c){return b.diffView=c}),G()(),F(5,"a",3),J("click",function(){return b.startFeedback()}),O(6,"Feedback"),G(),H(7,"br",4),M(8,BAa,2,0,"div",5),M(9,QAa,2,2,"ul",6),G(),F(10,"mat-dialog-actions")(11,"button",7),O(12,"Close"),G()());a&2&&(B(1),Ge("History for Comment #",b.commentNumber,""),B(3),E("checked",b.diffView),B(4),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading))},dependencies:[Kx,Gx,CP,mQ,FB,dC,eC,fC,gC,qR,cN,kS,jS,Tx,eS,rR],styles:[".comment-history-list[_ngcontent-%COMP%]{max-height:500px;overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);border-top:1px solid;border-color:#dadce0;border-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}\n/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});
var mS=function(){};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275mod=xc({type:mS});mS.\u0275inj=ic({imports:[ay]});
var nS=function(){};nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275mod=xc({type:nS});nS.\u0275inj=ic({});
var oS=function(){};oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275mod=xc({type:oS});oS.\u0275inj=ic({imports:[mS,ay,nS,AF]});
var pS=function(){};pS.\u0275fac=function(a){return new (a||pS)};pS.\u0275mod=xc({type:pS});pS.\u0275inj=ic({providers:[BQ],imports:[wQ]});
/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var qS=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};hu(qS,RAa);
qS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof qS&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,0>=b.branches_&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new rS(this))}};qS.prototype.continue_=function(a,b){this.blocked_=!1;ERb(this,a,b)};
var ERb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;FRb(a)},HRb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new GRb(a);a.silentlyCanceled_=!1}};qS.prototype.callback=function(a){HRb(this);ERb(this,!0,a)};qS.prototype.errback=function(a){HRb(this);ERb(this,!1,a)};qS.prototype.addCallback=function(a,b){return IRb(this,a,null,b)};var IRb=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&FRb(a);return a};
qS.prototype.then=function(a,b,c){var d,e,f=new JD(function(h,k){e=h;d=k});IRb(this,e,function(h){h instanceof rS?f.cancel():d(h)});return f.then(a,b,c)};qS.prototype.$goog_Thenable=!0;qS.prototype.branch=function(a){var b=new qS;IRb(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};qS.prototype.isError=function(a){return a instanceof Error};
var JRb=function(a){return oib(a.sequence_,function(b){return"function"===typeof b[1]})},FRb=function(a){if(a.unhandledErrorId_&&a.fired_&&JRb(a)){var b=a.unhandledErrorId_,c=KRb[b];c&&(da.clearTimeout(c.id_),delete KRb[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],h=e[1];e=e[2];if(f=a.hadError_?h:f)try{var k=f.call(e||a.defaultScope_,b);void 0!==k&&(a.hadError_=a.hadError_&&
(k==b||a.isError(k)),a.result_=b=k);if(ysb(b)||"function"===typeof da.Promise&&b instanceof da.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,JRb(a)||(c=!0)}}a.result_=b;d&&(k=du(a.continue_,a,!0),d=du(a.continue_,a,!1),b instanceof qS?(IRb(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new LRb(b),KRb[b.id_]=b,a.unhandledErrorId_=b.id_)},GRb=function(){ba.call(this)};hu(GRb,ba);GRb.prototype.message="Deferred has already fired";GRb.prototype.name="AlreadyCalledError";var rS=function(){ba.call(this)};
hu(rS,ba);rS.prototype.message="Deferred was canceled";rS.prototype.name="CanceledError";var LRb=function(a){this.id_=da.setTimeout(du(this.throwError,this),0);this.error_=a};LRb.prototype.throwError=function(){delete KRb[this.id_];throw this.error_;};var KRb={};
var WAa=function(a,b){var c=b||{};b=c.document||document;var d=yh(a),e=(new rD(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new qS(MRb,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){NRb(e,!0);h.errback(new ORb(1,"Timeout reached for loading script "+d))},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(NRb(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=function(){NRb(e,
!0,k);h.errback(new ORb(0,"Error while loading script "+d))};f=c.attributes||{};zja(f,{type:"text/javascript",charset:"UTF-8"});fsb(e,f);Yqb(e,a);PRb(b).appendChild(e);return h},PRb=function(a){var b=uD("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},MRb=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&NRb(a,!0,this.timeout_)}},NRb=function(a,b,c){null!=c&&da.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){BD(a)},
0)},ORb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ba.call(this,c);this.code=a};hu(ORb,ba);
var SAa=null,Ho=new WeakMap;
var sS=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;var e=this;this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c;this.gapiAuthParams=d;this.gapi=(0,T.defer)(function(){return UAa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return ZAa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};U(sS,EPb);
sS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(nf(function(c){var d=(0,T.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,T.from)(YAa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(nf(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}))}))}))};
sS.prototype.parseResponse=function(a){return new T.Observable(function(b){a.then(function(c){!1===c.result&&null!=c.body?b.next({data:c.body}):b.next(c.result);b.complete()},function(c){b.error(c.result)})})};sS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&XAa(a,b,this.gapiConfigUpdates[b])};
var QRb=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;sS.call(this,a,c,d,e);this.waldoApiKey=b};U(QRb,sS);QRb.prototype.makeRequest=function(a){var b=sS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};
var Mt=function(a){this.proxiedService=a};U(Mt,EPb);Mt.prototype.makeRequest=function(a){var b=this;return(0,T.defer)(function(){return b.proxiedService.makeRequest(a)})};
var RRb=new od("environment"),SRb={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},tS=function(){};tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275mod=xc({type:tS});tS.\u0275inj=ic({imports:[ay,XQ]});
var uS=function(){};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275mod=xc({type:uS});uS.\u0275inj=ic({imports:[ay,pS,oS,tS]});
var vS=function(){};vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275mod=xc({type:vS});vS.\u0275inj=ic({imports:[ay,uS,QN]});
var wS=function(){};wS.\u0275fac=function(a){return new (a||wS)};wS.\u0275mod=xc({type:wS});wS.\u0275inj=ic({imports:[tS,ay,dP]});
var xS=function(){};xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275mod=xc({type:xS});xS.\u0275inj=ic({imports:[ay,QN,vS]});
var yS=function(a){this.session=a;this.isNonObfuscatedEmail=Rn;this.email="";this.withProfile=!0;this.enableWaldoAvailability=sH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};yS.\u0275fac=function(a){return new (a||yS)(C(qH))};
yS.\u0275cmp=w({type:yS,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile"},decls:6,vars:4,consts:[[1,"bv2-email-with-profile-container"],["class","bv2-email-with-profile-avatar",3,"email",4,"ngIf"],[4,"ngIf","ngIfElse"],["emailDisplay",""],["class","bv2-email-with-profile-waldo",4,"ngIf"],[1,"bv2-email-with-profile-avatar",3,"email"],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-email-with-profile-waldo"],["coinonly","",3,"user"]],template:function(a,
b){a&1&&(F(0,"span",0),M(1,$Aa,1,1,"b-user-image",1),M(2,bBa,6,3,"ng-container",2),M(3,cBa,2,1,"ng-template",null,3,Mf),M(5,dBa,2,1,"span",4),G());if(a&2){var c=Fe(4);B(1);E("ngIf",b.withProfile);B(1);E("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);B(3);E("ngIf",b.enableWaldoAvailability)}},dependencies:[Gx,Qx,xR,hS,fN,jN,kS],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 TRb=0,zS=function(a,b){var c=this;this.teamsService=a;this.session=b;this.teamId="";this.enableSmallChip=!1;this.providedTeamId$=new T.ReplaySubject(1);this.providedUser$=new T.ReplaySubject(1);this.providedEmail$=new T.ReplaySubject(1);this.isNonObfuscatedEmail=Rn;this.fetchedTeam$=this.providedTeamId$.pipe(eg(function(d){return c.teamsService.getTeam(d)}),Pf(function(){return(0,T.of)((new YL).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.detailedUserType$=this.providedUser$.pipe(R(function(d){d=
d?d&&d.getUserGaiaStatus?d.getAliasesList():d.aliases||[]:[];return d.includes("googlers_unrestricted")?1:d.includes("google_domain")?2:d.includes("issue_creation_only_accounts")?5:d.includes("external_partners")?3:d.includes("public_non_google")?4:0}),dg(0));this.isTeamMember$=(0,T.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(eg(function(d){var e=r(d);d=e.next().value;e=e.next().value;return MKb(c.teamsService,d,e)}),dg(!1),Pf(function(){return(0,T.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(R(function(d){return"Member of "+
d.getName()}));this.groupMembershipType$=(0,T.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;if(c.enableExternalAnnotations){if(4===d)return"PUBLIC_USER";if(3===d)return"PARTNER_USER"}return e?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableExternalAnnotations=sH(this.session,"enableExternalAnnotations");this.enableWaldoAvailability=sH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();
this.userTypeClass$=this.groupMembershipType$.pipe(R(function(d){return c.enableSmallChip?"user-chip-small":d&&"INTERNAL_NON_TEAM_MEMBER"!==d?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(R(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"team-member-chip";if("PARTNER_USER"===d)return"partner-chip";if("PUBLIC_USER"===d)return"public-chip"}else return"internal-non-team-member-chip";return""}));this.shouldShowIcon$=this.groupMembershipType$.pipe(R(function(d){return d&&
"INTERNAL_NON_TEAM_MEMBER"!==d}));this.iconName$=this.groupMembershipType$.pipe(R(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"people-outline";if("PARTNER_USER"===d)return"enterprise";if("PUBLIC_USER"===d)return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(hg(this.teamUser$),R(function(d){var e=r(d);d=e.next().value;e=e.next().value;if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return e;if("PARTNER_USER"===d)return"Partner user";
if("PUBLIC_USER"===d)return"Public user"}return""}));TRb++};zS.prototype.ngOnInit=function(){};zS.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)};zS.\u0275fac=function(a){return new (a||zS)(C(bM),C(qH))};
zS.\u0275cmp=w({type:zS,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip"},features:[Fc],decls:11,vars:13,consts:[[3,"ngClass"],["class","bv2-profile-avatar",3,"email",4,"ngIf"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled",4,"ngIf","ngIfElse"],["smallChipContents",""],[3,"svgIcon","matTooltip",4,"ngIf"],[4,"ngIf"],[1,"bv2-profile-avatar",3,"email"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled"],
[4,"ngIf","ngIfElse"],["emailDisplay",""],["tabindex","0","role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-chip-name"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(F(0,"span",0),P(1,"async"),F(2,"span",0),P(3,"async"),M(4,eBa,1,1,"b-user-image",1),M(5,fBa,1,3,"b-user-display-name",2),M(6,jBa,3,2,"ng-template",null,3,Mf),M(8,kBa,3,6,"mat-icon",4),P(9,"async"),G()(),M(10,lBa,2,1,"ng-container",
5));if(a&2){var c=Fe(7),d,e;E("ngClass",null!==(d=Q(1,7,b.userTypeClass$))&&void 0!==d?d:"");B(2);E("ngClass",null!==(e=Q(3,9,b.userChipType$))&&void 0!==e?e:"");B(2);E("ngIf",b.enableSmallChip);B(1);E("ngIf",!b.enableSmallChip)("ngIfElse",c);B(3);E("ngIf",Q(9,11,b.shouldShowIcon$));B(2);E("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[Jx,Gx,Qx,xR,hF,wF,hS,fN,jN,kS,iS,Tx],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}.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%]     span.bv2-profile-avatar, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:12px;vertical-align:middle;width:12px}[_nghost-%COMP%]     span.bv2-profile-avatar img, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar img{background-color:#f1f3f4;background-color:var(--c100);height:12px;width:12px}"],
changeDetection:0});
var AS=function(){};AS.\u0275fac=function(a){return new (a||AS)};AS.\u0275mod=xc({type:AS});AS.\u0275inj=ic({imports:[ay,wS,AF,gH,vS,xS,QN]});
var BS=function(){};BS.prototype.transform=function(a,b){switch(a){case "EXTERNAL_PARTNER":return b?"Partners":"Visible to Partners";case "EXTERNAL_PUBLIC":return b?"Public":"Visible to Public";default:return""}};BS.\u0275fac=function(a){return new (a||BS)};BS.\u0275pipe=zc({name:"toAccessLevelLabel",type:BS,pure:!0});
var URb={TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},CS=function(){};CS.prototype.transform=function(a){return URb[a]};CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275pipe=zc({name:"toCustomFieldTypeDisplayValue",type:CS,pure:!0});
var DS=function(){};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275mod=xc({type:DS});DS.\u0275inj=ic({imports:[ay]});
var ES=function(){};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275mod=xc({type:ES});ES.\u0275inj=ic({imports:[ay,WP,nQ,wG,hC,vS,DS,ON,AS]});
var mBa=function(){},Io=function(a,b,c,d,e){"undefined"==typeof e&&(e=(new Date).getTime()+1E3);if(null==b||null==c)throw Error("Kd");if(b==c)return b?[[0,b]]:[];"undefined"==typeof d&&(d=!0);var f=VRb(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=WRb(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=XRb(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);YRb(a,b);return b},XRb=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,h=b.length>c.length?c:b,k=f.indexOf(h);if(-1!=k)return a=[[1,f.substring(0,k)],[0,h],[1,f.substring(k+h.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(1==h.length)return[[-1,b],[1,c]];if(f=ZRb(b,c))return c=f[1],h=f[3],b=f[4],f=Io(a,f[0],f[2],d,e),a=Io(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){b=$Rb(b,c);c=b.lineArray;b=Io(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];h=[];for(k=0;k<f.length;k++)h[k]=c[f.charCodeAt(k)];b[d][1]=h.join("")}nBa(a,
b);b.push([0,""]);f=d=c=0;for(k=h="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;h+=b[c][1];break;case 0:if(1<=d&&1<=f){b.splice(c-d-f,d+f);c=c-d-f;d=Io(a,h,k,!1,e);for(f=d.length-1;0<=f;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),u=Array(k),y=0;y<k;y++)q[y]=-1,u[y]=-1;q[h+1]=0;u[h+1]=0;y=d-f;for(var D=0!=y%2,I=0,N=0,L=0,S=0,X=0;X<h&&!((new Date).getTime()>e);X++){for(var ka=-X+
I;ka<=X-N;ka+=2){var ha=h+ka;var ra=ka==-X||ka!=X&&q[ha-1]<q[ha+1]?q[ha+1]:q[ha-1]+1;for(var Da=ra-ka;ra<d&&Da<f&&b.charAt(ra)==c.charAt(Da);)ra++,Da++;q[ha]=ra;if(ra>d)N+=2;else if(Da>f)I+=2;else if(D&&(ha=h+y-ka,0<=ha&&ha<k&&-1!=u[ha])){var Ja=d-u[ha];if(ra>=Ja){a=aSb(a,b,c,ra,Da,e);break a}}}for(ka=-X+L;ka<=X-S;ka+=2){ha=h+ka;Ja=ka==-X||ka!=X&&u[ha-1]<u[ha+1]?u[ha+1]:u[ha-1]+1;for(ra=Ja-ka;Ja<d&&ra<f&&b.charAt(d-Ja-1)==c.charAt(f-ra-1);)Ja++,ra++;u[ha]=Ja;if(Ja>d)S+=2;else if(ra>f)L+=2;else if(!D&&
(ha=h+y-ka,0<=ha&&ha<k&&-1!=q[ha]&&(ra=q[ha],Da=h+ra-ha,Ja=d-Ja,ra>=Ja))){a=aSb(a,b,c,ra,Da,e);break a}}}a=[[-1,b],[1,c]]}return a},aSb=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=Io(a,b.substring(0,d),c.substring(0,e),!1,f);a=Io(a,h,k,!1,f);return b.concat(a)},$Rb=function(a,b){function c(h){for(var k="",q=0,u=-1,y=d.length;u<h.length-1;){u=h.indexOf("\n",q);-1==u&&(u=h.length-1);var D=h.substring(q,u+1);(e.hasOwnProperty?e.hasOwnProperty(D):void 0!==e[D])?k+=String.fromCharCode(e[D]):
(y==f&&(D=h.substring(q),u=h.length),k+=String.fromCharCode(y),e[D]=y,d[y++]=D);q=u+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},VRb=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},WRb=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},bSb=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)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(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}},ZRb=function(a,b){function c(k,q,u){for(var y=k.substring(u,u+Math.floor(k.length/4)),D=-1,I="",
N,L,S,X;-1!=(D=q.indexOf(y,D+1));){var ka=VRb(k.substring(u),q.substring(D)),ha=WRb(k.substring(0,u),q.substring(0,D));I.length<ha+ka&&(I=q.substring(D-ha,D)+q.substring(D,D+ka),N=k.substring(0,u-ha),L=k.substring(u+ka),S=q.substring(0,D-ha),X=q.substring(D+ka))}return 2*I.length>=k.length?[N,L,S,X,I]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var h;if(f||d)d?h=f?f[4].length>
d[4].length?f:d:d:h=f;else return null;a.length>b.length?(a=h[0],b=h[1],f=h[2],d=h[3]):(f=h[0],d=h[1],a=h[2],b=h[3]);return[a,b,f,d,h[4]]},nBa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,u=0,y=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=u,q=y,y=u=0,f=b[h][1]):(1==b[h][0]?u+=b[h][1].length:y+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(u,y)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=0<e?d[e-1]:-1,y=u=q=k=0,f=null,c=!0)),h++;c&&YRb(a,b);cSb(b);for(h=1;h<b.length;){if(-1==
b[h-1][0]&&1==b[h][0]){a=b[h-1][1];c=b[h][1];d=bSb(a,c);e=bSb(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(h,0,[0,c.substring(0,d)]),b[h-1][1]=a.substring(0,a.length-d),b[h+1][1]=c.substring(d),h++}else if(e>=a.length/2||e>=c.length/2)b.splice(h,0,[0,a.substring(0,e)]),b[h-1][0]=1,b[h-1][1]=c.substring(0,c.length-e),b[h+1][0]=-1,b[h+1][1]=a.substring(e),h++;h++}h++}},cSb=function(a){function b(D,I){if(!D||!I)return 6;var N=D.charAt(D.length-1),L=I.charAt(0),S=N.match(dSb),X=L.match(dSb),
ka=S&&N.match(eSb),ha=X&&L.match(eSb);N=ka&&N.match(fSb);L=ha&&L.match(fSb);D=N&&D.match(gSb);I=L&&I.match(hSb);return D||I?5:N||L?4:S&&!ka&&ha?3:ka||ha?2:S||X?1:0}for(var c=1;c<a.length-1;){if(0==a[c-1][0]&&0==a[c+1][0]){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],h=WRb(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,u=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var y=
b(d,e)+b(e,f);y>=u&&(u=y,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},dSb=/[^a-zA-Z0-9]/,eSb=/\s/,fSb=/[\r\n]/,gSb=/\n\r?\n$/,hSb=/^\r?\n\r?\n/,YRb=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",h="",k;c<b.length;)switch(b[c][0]){case 1:e++;h+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:1<d+e?(0!==d&&0!==e&&(k=VRb(h,f),0!==k&&(0<c-d-e&&0==b[c-d-e-1][0]?b[c-d-e-1][1]+=h.substring(0,k):(b.splice(0,0,[0,h.substring(0,
k)]),c++),h=h.substring(k),f=f.substring(k)),k=WRb(h,f),0!==k&&(b[c][1]=h.substring(h.length-k)+b[c][1],h=h.substring(0,h.length-k),f=f.substring(0,f.length-k))),0===d?b.splice(c-e,d+e,[1,h]):0===e?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,h]),c=c-d-e+(d?1:0)+(e?1:0)+1):0!==c&&0==b[c-1][0]?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,h=f=""}""===b[b.length-1][1]&&b.pop();d=!1;for(c=1;c<b.length-1;)0==b[c-1][0]&&0==b[c+1][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&&YRb(a,b)};
var FS=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};FS.prototype.show=function(a,b,c){var d=this,e;return ef(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();io(d.analytics,"commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:iSb(d,a,b,c)};d.dialog=d.dialogManager.open(lS,{data:e,width:"50vw"});return f.return((0,T.firstValueFrom)(RB(d.dialog)))})};
var iSb=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=0<e.length?e[0].unlinkifiedComment:"",h=0<e.length?e[0].formattingMode:"",k=!1,q=[];e=r(e);for(var u=e.next();!u.done;u=e.next()){u=u.value;var y=pBa(u);y||k?(f=GS(u.unlinkifiedComment),h=GS(u.formattingMode)):(f=oBa(f,u.unlinkifiedComment),k=u.formattingMode,h=h===k?GS(k):Wn(GS(h,"diff-removed"),GS(k,"diff-added")));k=void 0===u.unlinkifiedComment?"":u.unlinkifiedComment;var D=u.version,I=u.commentContentVerdict;
q.push({comment:u.comment,unlinkifiedComment:k,lastEditorUser:u.lastEditorUser,version:D,formattingMode:u.formattingMode,formattingModeDiff:h,lastModified:Number(u.lastModified)/1E3,open:25>D,preview:48>=k.length?k:k.substring(0,45)+"...",diff:f,restricted:I&&I.piiVerdict&&"NONE_DETECTED"!==I.piiVerdict.severity||!1,deleted:pBa(u)});f=u.unlinkifiedComment;h=u.formattingMode;k=y}-1<d?q[d].open=!0:q[0].open=!0;return q})},GS=function(a,b){return Vn("SPAN",b?{"class":b}:null,a)};
FS.\u0275fac=function(a){return new (a||FS)(t(IM),t(hO),t(cC))};FS.\u0275prov=hc({token:FS,factory:FS.\u0275fac,providedIn:"root"});
var jSb=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"]]),kSb=new Map([[0,"Unknown"],[1,"Enabled"],[2,"Disabled"]]),lSb=new Map([[1,"Default (10 years)"],[2,"Custom Period"],[3,"Indefinite"]]),mSb=new Map([[1,"Default (60 days)"],[2,"Custom Period"],[3,"Match Issue Retention"]]);
var nSb=function(a){return a?new Set(lb(a,1).map(function(b){return Mi(b)})):new Set},HS=function(a,b,c){return a.has(b)?c:""},oSb=function(a,b,c){return a.has(b)?c:[]},IS=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}};
var JS=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};JS.\u0275fac=function(a){return new (a||JS)(t(AK),t(qH))};JS.\u0275prov=hc({token:JS,factory:JS.\u0275fac,providedIn:"root"});
var pSb=function(a){if(!a)return"";var b=lSb.get(Y(a,1,0)),c=hj(a,2),d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=mSb.get(Y(a,3,0));c=hj(a,4);a=hj(a,5);d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},rSb=function(a){if(!a)return"";var b=a.getInherit(),c=qSb.get(a.getSource()),d=a.getId();a=a.getComment();b="Inherit: "+b+", Source: "+c+", ID: "+d;return a?b+(", Justification: "+a):b},qSb=new Map([[0,"--"],[1,"User"],[2,"Bugscope"]]),
sSb=function(a){if(!a)return"";var b=a.getInherit();a=a.getId();return"Inherit: "+b+", ID: "+a};
var tSb=Jh({opacity:"0"}),uSb=uf(function(a){return a}),vSb=(0,T.pipe)(Sf(),uSb,Xf()),wSb=new od("xap-bubble UX style"),KS=function(a){var b=this;this.activity=new T.Subject;this.openedSubject=new T.BehaviorSubject(!1);this.destroy=new T.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Vw;this.onOpened=new Vw;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Tga(function(){return b.activity.pipe(Qf(b.hoverDelayMs))}));
a=fg(this.destroy);this.opened.pipe(vSb,a).subscribe(this.onOpened);this.openedSubject.pipe(uSb,Gha(function(){return b.opened.pipe(uf(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};KS.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};KS.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};KS.\u0275fac=function(a){return new (a||KS)(C(wSb,8))};
KS.\u0275cmp=w({type:KS,selectors:[["xap-bubble"]],inputs:{panelTemplate:"panelTemplate",overlayPositions:"overlayPositions",overlayPanelClass:"overlayPanelClass",hoverDelayMs:"hoverDelayMs"},outputs:{beforeOpened:"beforeOpened",beforeShow:"beforeShow",onOpened:"opened"},ngContentSelectors:["*"],decls:5,vars:7,consts:[["cdkOverlayOrigin","",1,"xap-bubble-trigger",3,"ngClass","mouseenter","mouseleave","mousemove"],["trigger","cdkOverlayOrigin"],["cdkConnectedOverlay","","cdkConnectedOverlayPush","true",
3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"xap-bubble-panel",3,"ngClass","mouseenter","mouseleave","mousemove"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(Ae(),F(0,"span",0,1),J("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),Be(2),G(),M(3,rBa,2,3,"ng-template",2),P(4,"async"));if(a&2){var c=Fe(1);E("ngClass",b.bubbleStyle);
B(3);E("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",Q(4,5,b.opened))}},dependencies:[Jx,Qx,iB,hB,Tx],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:[Hh("fade",[Lh(":enter",[tSb,Ih("225ms")]),Lh(":leave",[Ih("195ms",tSb)])])]}});
var LS=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
LS.prototype.ngOnChanges=function(){if(this.accessLevel)switch(this.accessLevel){case "EXTERNAL_PARTNER":this.chipClass="partner";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.bubbleText='Components and issues designated as "Visible to Public" can be \n              shared with any authenticated Google Account, such as someone with\n               an @gmail.com email address.';
break;default:this.bubbleText=this.chipClass=""}};LS.\u0275fac=function(a){return new (a||LS)(C(qH),C(kP))};
LS.\u0275cmp=w({type:LS,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Fc],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["withBubble",""],[1,"label",3,"ngClass"],[3,"panelTemplate"],["popup",""],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&M(0,vBa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?"EXTERNAL_PARTNER"===b.accessLevel||
"EXTERNAL_PUBLIC"===b.accessLevel:rH(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;E("ngIf",a)}},dependencies:[Jx,Gx,KS,BS],styles:[".label[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;color:#202124;color:var(--text-high-contrast)}.label.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)}.label.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)}.label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;box-shadow:none}.bubble[_ngcontent-%COMP%]{width:300px}"]});
var MS=function(a,b){qI.call(this);var c=this;this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new T.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(eg(function(d){return c.componentFridge.watch(d)}),bg({refCount:!0,bufferSize:1}));this.init=new T.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};U(MS,qI);MS.\u0275dir=qI.\u0275dir;
MS.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=pn({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=on("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=Psa(this.componentId,"basic");this.component$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(){a.init.next()})};MS.\u0275fac=function(a){return new (a||MS)(C(HJ),C(qH))};
MS.\u0275cmp=w({type:MS,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[ee],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),M(2,xBa,16,8,"ng-container",2),P(3,"async"),G()());a&2&&(B(2),E("ngIf",Q(3,1,b.component$)))},dependencies:[Gx,
LS,Tx],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});
var NS=function(){this.changes=new T.Subject;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(0==c||0==b)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}};NS.\u0275fac=function(a){return new (a||NS)};NS.\u0275prov=hc({token:NS,factory:NS.\u0275fac,providedIn:"root"});
var xSb={provide:NS,deps:[[new Rv,new Sv,NS]],useFactory:function(a){return a||new NS}};
var ySb=Hh("transformPanelWrap",[Lh("* => void",Nh("@transformPanel",[Mh()]))]),zSb=Hh("transformPanel",[Kh("void",Jh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Kh("showing",Jh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Kh("showing-multiple",Jh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Lh("void => *",Ih("120ms cubic-bezier(0, 0, 0.2, 1)")),Lh("* => void",Ih("100ms 25ms linear",Jh({opacity:0})))]);
var ASb=["trigger"],BSb=["panel"],CSb=[[["mat-select-trigger"]],"*"],DSb=0,ESb=new od("mat-select-scroll-strategy"),FSb=new od("MAT_SELECT_CONFIG"),GSb={provide:ESb,deps:[gB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},HSb=function(a,b){this.source=a;this.value=b},ISb=qi(si(ri(ila(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new T.Subject})))),JSb=new od("MatSelectTrigger"),
OS=function(){};OS.\u0275fac=function(a){return new (a||OS)};OS.\u0275dir=w({type:OS,selectors:[["mat-select-trigger"]],features:[Je([{provide:JSb,useExisting:OS}])]});
var PS=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){var L=ISb.call(this,e,d,h,k,u)||this;L._viewportRuler=a;L._changeDetectorRef=b;L._ngZone=c;L._dir=f;L._parentFormField=q;L._liveAnnouncer=I;L._defaultOptions=N;L._panelOpen=!1;L._compareWith=function(ha,ra){return ha===ra};L._uid="mat-select-"+DSb++;L._triggerAriaLabelledBy=null;L._destroy=new T.Subject;L._onChange=function(){};L._onTouched=function(){};L._valueId="mat-select-value-"+DSb++;L._panelDoneAnimatingStream=new T.Subject;var S;L._overlayPanelClass=
(null==(S=L._defaultOptions)?void 0:S.overlayPanelClass)||"";L._focused=!1;L.controlType="mat-select";L._multiple=!1;var X,ka;L._disableOptionCentering=null!=(ka=null==(X=L._defaultOptions)?void 0:X.disableOptionCentering)?ka:!1;L.ariaLabel="";L.optionSelectionChanges=(0,T.defer)(function(){var ha=L.options;return ha?ha.changes.pipe(dg(ha),eg(function(){return T.merge.apply(null,v(ha.map(function(ra){return ra.onSelectionChange})))})):L._ngZone.onStable.pipe(Tf(),eg(function(){return L.optionSelectionChanges}))});
L.openedChange=new Vw;L._openedStream=L.openedChange.pipe(uf(function(ha){return ha}),R(function(){}));L._closedStream=L.openedChange.pipe(uf(function(ha){return!ha}),R(function(){}));L.selectionChange=new Vw;L.valueChange=new Vw;L.ngControl&&(L.ngControl.valueAccessor=L);null!=(null==N?void 0:N.typeaheadDebounceInterval)&&(L._typeaheadDebounceInterval=N.typeaheadDebounceInterval);L._scrollStrategyFactory=D;L._scrollStrategy=L._scrollStrategyFactory();L.tabIndex=parseInt(y)||0;L.id=L.id;return L};
U(PS,ISb);g=PS.prototype;g.ngOnInit=function(){var a=this;this._selectionModel=new IA(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(Sf(),fg(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(fg(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(dg(null),fg(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
g.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
g.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&oA(this._keyManager,this._typeaheadDebounceInterval)};g.ngOnDestroy=function(){this._destroy.next();this._destroy.complete();this.stateChanges.complete()};g.toggle=function(){this.panelOpen?this.close():this.open()};g.open=function(){this._canOpen()&&(this._panelOpen=!0,nA(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};
g.close=function(){this._panelOpen&&(this._panelOpen=!1,nA(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())};g.writeValue=function(a){this._assignValue(a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};g._isRtl=function(){return this._dir?"rtl"===this._dir.value:!1};
g._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};g._handleClosedKeydown=function(a){var b=a.keyCode,c=40===b||38===b||37===b||39===b,d=this._keyManager;!(0<d._pressedLetters.length||13!==b&&32!==b||ki(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
g._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=40===c||38===c,e=0<b._pressedLetters.length;if(d&&a.altKey)a.preventDefault(),this.close();else if(e||13!==c&&32!==c||!b.activeItem||ki(a))if(!e&&this._multiple&&65===c&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(h){return!h.disabled&&!h.selected});this.options.forEach(function(h){h.disabled||(f?h.select():h.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};g._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};g._onBlur=function(){this._focused=!1;this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};g._onAttached=function(){var a=this;this._overlayDir.positionChange.pipe(Tf()).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()})};
g._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};g._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
g._setSelectionByValue=function(a){var b=this;this._selectionModel.selected.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(Array.isArray(a),a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?qA(this._keyManager,a):this.panelOpen||qA(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
g._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return null!=d.value&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};g._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
g._initKeyManager=function(){var a=this;this._keyManager=ypb(pA(nA(mA(oA(new tA(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")));this._keyManager.tabOut.pipe(fg(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.pipe(fg(this._destroy)).subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};g._resetOptions=function(){var a=this,b=(0,T.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fg(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});T.merge.apply(null,v(this.options.map(function(c){return c._stateChanges}))).pipe(fg(b)).subscribe(function(){a._changeDetectorRef.markForCheck();a.stateChanges.next()})};
g._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);null!=a.value||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(),null!=this.value&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
g._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};g._propagateChanges=function(a){var b=null;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
g._highlightCorrectOption=function(){this._keyManager&&(this.empty?rA(this._keyManager):this._keyManager.setActiveItem(this._selectionModel.selected[0]))};g._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&0<(null==(a=this.options)?void 0:a.length)};g.focus=function(a){this._elementRef.nativeElement.focus(a)};
g._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};g._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
g._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=null==(a=this._parentFormField)?void 0:a.getLabelId();a=(b?b+" ":"")+this._valueId;this.ariaLabelledby&&(a+=" "+this.ariaLabelledby);return a};g._panelDoneAnimating=function(a){this.openedChange.emit(a)};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};
g.onContainerClick=function(){this.focus();this.open()};
oi.Object.defineProperties(PS.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},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 null!=(d=null!=(c=this._required)?c:null==(a=this.ngControl)?void 0:null==(b=a.control)?void 0:onb(b))?d:!1},set:function(a){this._required=Yg(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=Yg(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=Yg(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)}},typeaheadDebounceInterval:{configurable:!0,enumerable:!0,get:function(){return this._typeaheadDebounceInterval},set:function(a){this._typeaheadDebounceInterval=ah(a)}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid;this.stateChanges.next()}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen}},selected:{configurable:!0,enumerable:!0,
get:function(){var a,b;return this.multiple?(null==(a=this._selectionModel)?void 0:a.selected)||[]:null==(b=this._selectionModel)?void 0:b.selected[0]}},triggerValue:{configurable:!0,enumerable:!0,get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(b){return b.viewValue});this._isRtl()&&a.reverse();return a.join(", ")}return this._selectionModel.selected[0].viewValue}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._selectionModel||
this._selectionModel.isEmpty()}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}});PS.\u0275fac=function(a){return new (a||PS)(C(KA),C(zx),C(mg),C(tB),C(sd),C(vA,8),C(ty,8),C(Cy,8),C(rC,8),C(ny,10),bd("tabindex"),C(ESb),C(dA),C(FSb,8))};
PS.\u0275dir=w({type:PS,viewQuery:function(a,b){a&1&&(Ef(ASb,5),Ef(BSb,5),Ef(iB,5));if(a&2){var c;Df(c=Gf())&&(b.trigger=c.first);Df(c=Gf())&&(b.panel=c.first);Df(c=Gf())&&(b._overlayDir=c.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby",
"ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ee,Fc]});
var QS=function(){var a=PS.apply(this,arguments)||this;a._scrollTop=0;a._triggerFontSize=0;a._transformOrigin="top";a._offsetY=0;a._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}];return a};U(QS,PS);QS.\u0275dir=PS.\u0275dir;g=QS.prototype;g._calculateOverlayScroll=function(a,b,c){var d=this._getItemHeight();return Math.min(Math.max(0,d*a-b+d/2),c)};
g.ngOnInit=function(){var a=this;PS.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(fg(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;PS.prototype._canOpen.call(this)&&(PS.prototype.open.call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Tf()).subscribe(function(){a._triggerFontSize&&a._overlayDir.overlayRef&&a._overlayDir.overlayRef.overlayElement&&(a._overlayDir.overlayRef.overlayElement.style.fontSize=a._triggerFontSize+
"px")}))};g._scrollOptionIntoView=function(a){var b=qla(a,this.options,this.optionGroups),c=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===b?0:rla((a+b)*c,c,this.panel.nativeElement.scrollTop,256)};g._positioningSettled=function(){this._calculateOverlayOffsetX();this.panel.nativeElement.scrollTop=this._scrollTop};
g._panelDoneAnimating=function(a){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck());PS.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new HSb(this,a)};
g._calculateOverlayOffsetX=function(){var a=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),b=this._viewportRuler.getViewportSize(),c=this._isRtl(),d=this.multiple?56:32;var e=this.multiple?40:this.disableOptionCentering?16:(e=this._selectionModel.selected[0]||this.options.first)&&e.group?32:16;c||(e*=-1);var f=-(a.left+e-(c?d:0));a=a.right+e-b.width+(c?0:d);0<f?e+=f+8:0<a&&(e-=a+8);this._overlayDir.offsetX=Math.round(e);this._overlayDir.overlayRef.updatePosition()};
g._calculateOverlayOffsetY=function(a,b,c){var d=this._getItemHeight(),e=(d-this._triggerRect.height)/2,f=Math.floor(256/d);return this.disableOptionCentering?0:Math.round(-1*(0===this._scrollTop?a*d:this._scrollTop===c?(a-(this._getItemCount()-f))*d+(d-(this._getItemCount()*d-256)%d):b-d/2)-e)};
g._checkOverlayWithinViewport=function(a){var b=this._getItemHeight(),c=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8;c=c.height-this._triggerRect.bottom-8;var e=Math.abs(this._offsetY);b=Math.min(this._getItemCount()*b,256)-e-this._triggerRect.height;b>c?this._adjustPanelUp(b,c):e>d?this._adjustPanelDown(e,d,a):this._transformOrigin=this._getOriginBasedOnOption()};
g._adjustPanelUp=function(a,b){a=Math.round(a-b);this._scrollTop-=a;this._offsetY-=a;this._transformOrigin=this._getOriginBasedOnOption();0>=this._scrollTop&&(this._offsetY=this._scrollTop=0,this._transformOrigin="50% bottom 0px")};g._adjustPanelDown=function(a,b,c){a=Math.round(a-b);this._scrollTop+=a;this._offsetY+=a;this._transformOrigin=this._getOriginBasedOnOption();this._scrollTop>=c&&(this._scrollTop=c,this._offsetY=0,this._transformOrigin="50% top 0px")};
g._calculateOverlayPosition=function(){var a=this._getItemHeight(),b=this._getItemCount(),c=Math.min(b*a,256);a=b*a-c;b=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0);b+=qla(b,this.options,this.optionGroups);c/=2;this._scrollTop=this._calculateOverlayScroll(b,c,a);this._offsetY=this._calculateOverlayOffsetY(b,c,a);this._checkOverlayWithinViewport(a)};
g._getOriginBasedOnOption=function(){var a=this._getItemHeight();return"50% "+(Math.abs(this._offsetY)-(a-this._triggerRect.height)/2+a/2)+"px 0px"};g._getItemHeight=function(){return 3*this._triggerFontSize};g._getItemCount=function(){return this.options.length+this.optionGroups.length};QS.\u0275fac=function(){var a;return function(b){return(a||(a=hd(QS)))(b||QS)}}();
QS.\u0275cmp=w({type:QS,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(Ff(c,JSb,5),Ff(c,BB,5),Ff(c,Wpb,5));if(a&2){var d;Df(d=Gf())&&(b.customTrigger=d.first);Df(d=Gf())&&(b.options=d);Df(d=Gf())&&(b.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(ke("id",b.id)("tabindex",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()),pe("mat-select-disabled",b.disabled)("mat-select-invalid",b.errorState)("mat-select-required",b.required)("mat-select-empty",b.empty)("mat-select-multiple",b.multiple))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Je([{provide:nC,useExisting:QS},{provide:Vpb,useExisting:QS}]),ee],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],
[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",
3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(a,b){a&1&&(Ae(CSb),F(0,"div",0,1),J("click",function(){return b.toggle()}),F(3,"div",2),M(4,yBa,2,1,"span",3),M(5,BBa,3,2,"span",4),G(),F(6,"div",5),H(7,"div",6),G()(),M(8,CBa,4,14,"ng-template",7),J("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",
function(){return b.close()}));if(a&2){var c=Fe(1);ke("aria-owns",b.panelOpen?b.id+"-panel":null);B(3);E("ngSwitch",b.empty);ke("id",b._valueId);B(1);E("ngSwitchCase",!0);B(1);E("ngSwitchCase",!1);B(3);E("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayMinWidth",null==b._triggerRect?null:b._triggerRect.width)("cdkConnectedOverlayOffsetY",
b._offsetY)}},dependencies:[Jx,Mx,Nx,Ox,iB,hB],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],
encapsulation:2,data:{animation:[ySb,zSb]},changeDetection:0});
var RS=function(){};RS.\u0275fac=function(a){return new (a||RS)};RS.\u0275mod=xc({type:RS});RS.\u0275inj=ic({providers:[GSb],imports:[ay,jB,EB,kB,LA,tC,EB,kB]});
var KSb=new od("MAT_PAGINATOR_DEFAULT_OPTIONS"),LSb=ri(jla(function(){})),SS=function(a,b,c){var d=LSb.call(this)||this;d._intl=a;d._changeDetectorRef=b;d._pageIndex=0;d._length=0;d._pageSizeOptions=[];d._hidePageSize=!1;d._showFirstLastButtons=!1;d.selectConfig={};d.page=new Vw;d._intlChanges=a.changes.subscribe(function(){return d._changeDetectorRef.markForCheck()});if(c){var e=c.pageSize,f=c.pageSizeOptions,h=c.hidePageSize;c=c.showFirstLastButtons;null!=e&&(d._pageSize=e);null!=f&&(d._pageSizeOptions=
f);null!=h&&(d._hidePageSize=h);null!=c&&(d._showFirstLastButtons=c)}return d};U(SS,LSb);g=SS.prototype;g.ngOnInit=function(){this._initialized=!0;this._updateDisplayedPageSizeOptions();this._markInitialized()};g.ngOnDestroy=function(){this._intlChanges.unsubscribe()};g.nextPage=function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex+=1;this._emitPageEvent(a)}};g.hasPreviousPage=function(){return 1<=this.pageIndex&&0!=this.pageSize};
g.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&0!=this.pageSize};g._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};g._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};g._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
g._updateDisplayedPageSizeOptions=function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
g._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};
oi.Object.defineProperties(SS.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(ah(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=ah(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(ah(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return ah(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=Yg(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=Yg(a)}}});
SS.\u0275fac=function(){wd()};SS.\u0275dir=w({type:SS,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[ee]});var TS=function(a,b,c){a=SS.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};U(TS,SS);TS.\u0275dir=SS.\u0275dir;
TS.\u0275fac=function(a){return new (a||TS)(C(NS),C(zx),C(KSb,8))};
TS.\u0275cmp=w({type:TS,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ee],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition",
"disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],
["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],
[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],
template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),M(2,GBa,5,3,"div",2),F(3,"div",3)(4,"div",4),O(5),G(),M(6,HBa,3,5,"button",5),F(7,"button",6),J("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),Qc(),F(8,"svg",7),H(9,"path",8),G()(),Rc(),F(10,"button",9),J("click",function(){return b.nextPage()}),Qc(),F(11,"svg",7),H(12,"path",10),G()(),M(13,IBa,3,5,"button",11),G()()());a&2&&(B(2),E("ngIf",!b.hidePageSize),B(3),Ge(" ",b._intl.getRangeLabel(b.pageIndex,
b.pageSize,b.length)," "),B(1),E("ngIf",b.showFirstLastButtons),B(1),E("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),ke("aria-label",b._intl.previousPageLabel),B(3),E("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),ke("aria-label",b._intl.nextPageLabel),B(3),E("ngIf",b.showFirstLastButtons))},
dependencies:[Kx,Gx,FB,sC,QS,BB,wF],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],
encapsulation:2,changeDetection:0});
var US=function(a){this.paths=a;this.children=[];this.onVisit=new Vw;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};US.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};US.\u0275fac=function(a){return new (a||US)(C(LK))};
US.\u0275cmp=w({type:US,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},decls:3,vars:2,consts:[[3,"length","pageSize","pageSizeOptions","page",4,"ngIf"],[1,"component-children"],[4,"ngFor","ngForOf"],[3,"length","pageSize","pageSizeOptions","page"],[1,"keep-underline","keep-focus-ring",3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[3,"componentId"]],template:function(a,b){a&1&&(M(0,JBa,1,3,"mat-paginator",0),F(1,"ul",1),M(2,
KBa,6,4,"li",2),G());a&2&&(E("ngIf",b.children.length>b.pageSize),B(2),E("ngForOf",b.childrenOnPage))},dependencies:[Kx,Gx,fN,jN,MS,TS],encapsulation:2});
var VS=function(){};VS.\u0275fac=function(a){return new (a||VS)};VS.\u0275mod=xc({type:VS});VS.\u0275inj=ic({imports:[ay,jB]});
var WS=function(){};WS.\u0275fac=function(a){return new (a||WS)};WS.\u0275mod=xc({type:WS});WS.\u0275inj=ic({imports:[ay,DS,VS]});
var XS=function(){};XS.\u0275fac=function(a){return new (a||XS)};XS.\u0275mod=xc({type:XS});XS.\u0275inj=ic({imports:[ay,WS]});
var YS=function(){};YS.\u0275fac=function(a){return new (a||YS)};YS.\u0275mod=xc({type:YS});YS.\u0275inj=ic({providers:[xSb],imports:[ay,wG,RS,gH,kB]});
var ZS=function(){};ZS.\u0275fac=function(a){return new (a||ZS)};ZS.\u0275mod=xc({type:ZS});ZS.\u0275inj=ic({imports:[ay,QN,XS,YS]});
var $S=function(){this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new Vw};$S.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};$S.\u0275fac=function(a){return new (a||$S)};
$S.\u0275cmp=w({type:$S,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},decls:2,vars:2,consts:[[3,"muted",4,"ngIf"],["class","normal-link","target","_blank",3,"href","click",4,"ngIf"],["target","_blank",1,"normal-link",3,"href","click"]],template:function(a,b){a&1&&(M(0,LBa,2,3,"span",0),M(1,MBa,2,2,"a",1));a&2&&(E("ngIf",b.isGreyedOut||
!b.linkEnabled),B(1),E("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[Gx],encapsulation:2,changeDetection:0});
var aT=function(){};aT.\u0275fac=function(a){return new (a||aT)};aT.\u0275mod=xc({type:aT});aT.\u0275inj=ic({imports:[ay]});
var bT=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new Vw;this.onClickCopyIssueShortLinks=new Vw;this.onClickCopyAsIssueSearch=new Vw};bT.\u0275fac=function(a){return new (a||bT)};
bT.\u0275cmp=w({type:bT,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},decls:10,vars:2,consts:[["mat-button","","aria-label","Copy selected issue IDs",1,"gmat-button","medium","icon-only",3,"click"],["name","copy","size","small"],["mat-button",
"","aria-label","More copy issue ID options",1,"gmat-button","medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["splitMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&(F(0,"b-button-group")(1,"button",0),J("click",function(){return b.onClickCopyIssueIds.emit()}),H(2,"b-icon",1),G(),F(3,"button",2),H(4,"b-icon",3),G(),F(5,"mat-menu",null,4),M(7,NBa,2,1,"button",5),F(8,"button",6),J("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
O(9," Copy as issue search "),G()()());if(a&2){var c=Fe(6);B(3);E("matMenuTriggerFor",c);B(4);E("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[Gx,mF,kF,pF,FB,iH,tH],encapsulation:2,changeDetection:0});
var MSb=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;this._document.body.appendChild(c)};MSb.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};
MSb.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};
var cT=function(a){this._document=a};cT.prototype.copy=function(a){a=new MSb(a,this._document);var b=a.copy();a.destroy();return b};cT.\u0275fac=function(a){return new (a||cT)(t(mi))};cT.\u0275prov=hc({token:cT,factory:cT.\u0275fac,providedIn:"root"});
new od("CDK_COPY_TO_CLIPBOARD_CONFIG");
new od("xap-clipboard-snackbar-options");
var dT=function(){};dT.\u0275fac=function(a){return new (a||dT)};dT.\u0275mod=xc({type:dT});dT.\u0275inj=ic({imports:[ay,wG,AF,sK]});
var eT=function(){};eT.\u0275fac=function(a){return new (a||eT)};eT.\u0275mod=xc({type:eT});eT.\u0275inj=ic({imports:[ay,qF,wG,VH,WH,dT]});
var fT=function(a,b,c,d,e){this.clipboard=a;this.analytics=c;this.butterBar=d;this.window=e;this.shortLinkPrefix="QA"!==b.getEnvironmentType()?"b/":"b-qa/"},GJa=function(a,b){a.clipboard.copy(b.join(", "));yK(a.butterBar,"Issue IDs copied.",2E3);io(a.analytics,mo.LIST_ISSUES,"copyIssueId","IDs")},HJa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));yK(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);io(a.analytics,mo.LIST_ISSUES,"copyIssueId","b/ links")},
IJa=function(a,b){b=pn({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);yK(a.butterBar,"Issue search link copied.",2E3);io(a.analytics,mo.LIST_ISSUES,"copyIssueId","Issue search link")};fT.\u0275fac=function(a){return new (a||fT)(t(cT),t(qH),t(IM),t(xK),t(mM))};fT.\u0275prov=hc({token:fT,factory:fT.\u0275fac,providedIn:"root"});
var gT=function(a){this.el=a;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)};gT.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
gT.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};gT.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"};gT.\u0275fac=function(a){return new (a||gT)(C(sd))};
gT.\u0275dir=w({type:gT,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var hT=function(){};hT.\u0275fac=function(a){return new (a||hT)};hT.\u0275mod=xc({type:hT});hT.\u0275inj=ic({});
var iT=function(){EI.apply(this,arguments)};U(iT,EI);oi.Object.defineProperties(iT.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});iT.\u0275fac=function(){var a;return function(b){return(a||(a=hd(iT)))(b||iT)}}();iT.\u0275dir=w({type:iT,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[ee]});var jT=function(){};
jT.\u0275fac=function(a){return new (a||jT)};jT.\u0275mod=xc({type:jT});jT.\u0275inj=ic({imports:[ay,KI]});
var kT=function(){this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};oi.Object.defineProperties(kT.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){this.componentPath="settings"===this.componentPathsLinkTo?Ko(a,Ssa):Ko(a)}}});kT.\u0275fac=function(a){return new (a||kT)};
kT.\u0275cmp=w({type:kT,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},decls:6,vars:3,consts:[["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],["class","breadcrumb-archived-indicator",4,"ngIf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"onedevHovercardTrigger",
"routerLinkObj"],["card","onedevHovercard"],[3,"componentId"],[1,"breadcrumb-archived-indicator"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"p",1),O(2),G(),F(3,"span",2),M(4,OBa,6,4,"span",3),M(5,PBa,2,0,"span",4),G()());a&2&&(B(2),Ge("",b.label,":"),B(2),E("ngForOf",b.componentPath),B(1),E("ngIf",b.isArchived))},dependencies:[Kx,Gx,fN,jN,MS,iT],encapsulation:2});
var lT=function(){};lT.\u0275fac=function(a){return new (a||lT)};lT.\u0275mod=xc({type:lT});lT.\u0275inj=ic({imports:[ay,QN,XS,jT]});
var mT=function(){this.warningChunks=[]};mT.prototype.ngOnInit=function(){var a=this.warningText,b=NSb(a,"EXTERNAL_PUBLIC")||NSb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};mT.prototype.isText=function(a){return void 0!==a.text};mT.\u0275fac=function(a){return new (a||mT)};
mT.\u0275cmp=w({type:mT,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"accessLevel"]],template:function(a,b){a&1&&(F(0,"div"),M(1,SBa,3,2,"span",0),G());a&2&&(B(1),E("ngForOf",b.warningChunks))},dependencies:[Kx,Gx,LS],encapsulation:2});
var OSb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]),NSb=function(a,b){var c=OSb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null};
var nT=function(a,b,c){this.data=a;this.documentationLinks=b;this.dialogRef=c;this.acknowledged=!0;this.warning=this.header="";this.isAllowed=this.isExternalMove=!1;this.callbacks={allow:function(){},cancel:function(){}};this.learnMore=SNb(b);this.header=a.response.warningHeader;this.warning=a.response.warning;if(this.isExternalMove=a.response.isExternalMove)this.acknowledged=!1;this.isAllowed=a.response.isAllowed;this.callbacks=a.callbacks};
nT.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};nT.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};nT.\u0275fac=function(a){return new (a||nT)(C(aC),C(kP),C(QB))};
nT.\u0275cmp=w({type:nT,selectors:[["b-component-move-warning"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],[4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","cdkFocusInitial","","class","gmat-button",3,"disabled","click",4,"ngIf"],["gmat-checkbox","",3,"ngModel","ngModelChange"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",
3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"div",2),H(4,"b-component-move-warning-content",3),G(),H(5,"br"),F(6,"a",4),O(7,"Learn more"),G(),M(8,TBa,5,1,"div",5),G(),F(9,"mat-dialog-actions")(10,"button",6),J("click",function(){return b.cancel()}),O(11," Cancel "),G(),M(12,UBa,2,1,"button",7),G());a&2&&(B(1),He(b.header),B(3),E("warningText",b.warning),B(2),ke("href",b.learnMore,Qd),B(2),E("ngIf",b.isExternalMove&&b.isAllowed),B(4),E("ngIf",b.isAllowed))},
dependencies:[Gx,py,vy,FB,BO,dC,eC,fC,gC,mT],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});
var oT=function(){};oT.\u0275fac=function(a){return new (a||oT)};oT.\u0275mod=xc({type:oT});oT.\u0275inj=ic({imports:[ay,Ky,wG,GO,hC,WS]});
var pT=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};pT.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;0==c.length&&(a.noChildren=!0);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var qT=function(a,b){a.selectedId&&PSb(a,a.selectedId);a.selectedId=b;if(a=QSb(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},rT=function(a){if(!a.selectedId||1>a.selectedId)return null;var b;return null!=(b=a.components.find(function(c){return c.componentId==a.selectedId}))?b:null},RSb=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},PSb=function(a,b){b&&(a=QSb(a.selectedId))&&a.setAttribute("aria-selected",
"false")},QSb=function(a){return a?document.getElementById("component-"+a):null},SSb=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};
new Promise(function(){});
var sT=function(a,b,c,d,e){qI.call(this);var f=this;this.componentApi=b;this.appEvents=e;this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(h){f.components.removeAll();d.invalidate(h)}));this.componentGetter=c.adapt(function(h){var k=Ea(h);Ka(k);return f.componentApi.query({id:k}).then(function(q){var u={};q=r(q);for(var y=q.next();!y.done;y=q.next())(y=y.value)&&
(u[y.componentId]=y);return h.map(function(D){return u[D]||null})})})};U(sT,qI);sT.\u0275dir=qI.\u0275dir;g=sT.prototype;g.get=function(a){var b=this.components.get(String(a));if(null!=b)return b;b=this.componentGetter.get(a).then(function(c){return null!=c?c:Promise.reject({data:{message:"Could not load details for component "+a}})});return this.components.put(String(a),b)};
g.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
g.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.getChildren=function(a,b){return this.componentApi.getChildren(a,void 0===b?!1:b)};
g.getUncached=function(a,b){b=void 0===b?!1:b;this.components.remove(String(a));var c={};b&&(c.checkEditAccess=!0);return this.componentApi.fetchComponent(a,c)};g.search=function(a,b){var c={query:a};if(void 0===b?0:b)c.includearchived=!0;return TSb(this,a,this.componentApi.query(c))};
var TSb=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=Qra();if(d)return Lo({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=r(e.rest);for(var h=e.next();!h.done;h=e.next())h=h.value,h.componentId!==d&&f.push(h);return f})}return c};
sT.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Ka(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});var d={};c=r(c);for(var e=c.next();!e.done;d={$jscomp$loop$prop$id$1700:d.$jscomp$loop$prop$id$1700},e=c.next())d.$jscomp$loop$prop$id$1700=e.value,this.components.put(String(d.$jscomp$loop$prop$id$1700),a.then(function(f){return function(h){return h[f.$jscomp$loop$prop$id$1700]?
h[f.$jscomp$loop$prop$id$1700]:Promise.reject({data:{message:"Could not load details for component "+f.$jscomp$loop$prop$id$1700}})}}(d)))}};sT.\u0275fac=function(a){return new (a||sT)(t(UK),t(yGb),t(gI),t(HJ),t(FK))};sT.\u0275prov=hc({token:sT,factory:sT.\u0275fac,providedIn:"root"});
var XBa=function(a){return{q:a}},tT=function(a,b,c,d){pT.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new Vw;this.selectedId=null};U(tT,pT);tT.prototype.ngOnInit=function(){};tT.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};tT.prototype.ngOnChanges=function(a){a.components&&USb(this)};tT.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;qT(this,a);this.rootController.selectionChanged(this,a)};
var USb=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){return a.selectNext()})};g=tT.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=RSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(PSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(qT(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else qT(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=RSb(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(qT(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=rT(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
g.showChildrenForSelectedId=function(){var a=rT(this);a&&this.showChildren(a)};g.setSelected=function(a,b){SSb(b)||(qT(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=rT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};tT.\u0275fac=function(a){return new (a||tT)(C(sT),C(LK),C(BK),C(mI,2))};
tT.\u0275cmp=w({type:tT,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[Je([mI]),ee,Fc],decls:2,vars:1,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Show child components",3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],["svgIcon",
"arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent",
"rootController","includeArchived","childClosed"]],template:function(a,b){a&1&&(F(0,"ol",0),M(1,eCa,18,11,"li",1),G());a&2&&(B(1),E("ngForOf",b.components))},dependencies:[Kx,Gx,wF,GB,hF,cN,LS,tT],encapsulation:2});
var hCa=function(a){return{q:a}},uT=function(a,b,c,d,e,f){pT.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new Vw;this.subscriptions=new T.Subscription;this.destroyed$=new T.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};U(uT,pT);g=uT.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,T.timer)(0).pipe(fg(this.destroyed$)).subscribe(function(){VSb(a)&&!a.selectedId&&qT(a,a.components[0].componentId)});this.init.emit(this)};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};g.ngOnChanges=function(a){a.components&&WSb(this)};g.onSubtreeChildClosed=function(a){var b=this;qT(this,a);this.focusedController=void 0;(0,T.timer)(0).pipe(fg(this.destroyed$)).subscribe(function(){vT(b)})};
g.fireSelectionEvent=function(a){var b=QSb(a);b&&b.click();vT(this,a)};var WSb=function(a){(0,T.timer)(0).pipe(fg(a.destroyed$)).subscribe(function(){VSb(a)&&!a.selectedId&&qT(a,a.components[0].componentId)})};g=uT.prototype;g.selectionChanged=function(a,b){b&&vT(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&PSb(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){SSb(b)||(qT(this,a),this.selectionChanged(null),vT(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(XI(a,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){b.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){b.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){b.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",description:"Close the components children",
onPress:function(){b.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){b.toggleChildrenForSelectedId()}}]}))};g.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=rT(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=rT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(rT(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=RSb(this);VSb(this)&&1<=a&&(qT(this,this.components[a-1].componentId),vT(this))}};
g.selectNext=function(){if(VSb(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=RSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(PSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(qT(this,this.components[a+1].componentId),vT(this))}else qT(this,this.components[0].componentId),vT(this)};
var vT=function(a,b){var c=XSb(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=QSb(b||a.selectedId)){b=XSb(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},XSb=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},VSb=function(a){return!!(a.components&&0<a.components.length)};uT.\u0275fac=function(a){return new (a||uT)(C(sT),C(LK),C(WI),C(BK),C(sd),C(mI,2))};
uT.\u0275cmp=w({type:uT,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[Je([mI]),ee,Fc],decls:2,vars:1,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click",4,"ngFor","ngForOf"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id","click"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Show child components",
3,"click",4,"ngIf"],["matTooltip","Hide child components",3,"click",4,"ngIf"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"accessLevel"],[1,"component-description"],[1,"component-buttons"],["class","gmat-button","mat-raised-button","",3,"href",4,"ngIf"],["class","child-component-list","role","group","aria-expanded","true",4,"ngIf"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],["matTooltip","Hide child components",
3,"click"],["svgIcon","arrow-dropdown"],[3,"href"],["mat-raised-button","",1,"gmat-button",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["class","component-no-children",4,"ngIf"],["class","bv2-view-loading",4,"ngIf"],[3,"components","parentComponent","rootController","includeArchived","childClosed",4,"ngIf"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived","childClosed"]],template:function(a,b){a&
1&&(F(0,"ol",0),M(1,pCa,18,11,"li",1),G());a&2&&(B(1),E("ngForOf",b.components))},dependencies:[Kx,Gx,wF,GB,hF,cN,LS,tT],encapsulation:2});
var wT=function(){};wT.\u0275fac=function(a){return new (a||wT)};wT.\u0275mod=xc({type:wT});wT.\u0275inj=ic({imports:[ay,gH,wG,AF,ON,WS]});
var YSb=new od("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
var ZSb=["input"],$Sb=function(a){return{enterDuration:a}},aTb=0,bTb={provide:Ix,useExisting:dc(function(){return xT}),multi:!0},cTb=function(a,b){this.source=a;this.checked=b},dTb=si(pi(qi(ri(function(a){this._elementRef=a})))),yT=function(a,b,c,d,e,f,h){a=dTb.call(this,a)||this;a._focusMonitor=b;a._changeDetectorRef=c;a.defaults=e;a._onChange=function(){};a._onTouched=function(){};a._required=!1;a._checked=!1;a.name=null;a.labelPosition="after";a.ariaLabel=null;a.ariaLabelledby=null;a.change=new Vw;
a.toggleChange=new Vw;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;a.id=a._uniqueId=h+ ++aTb;return a};U(yT,dTb);g=yT.prototype;g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){"keyboard"===b||"program"===b?a._focused=!0:b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};
g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};g.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};g._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
oi.Object.defineProperties(yT.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Yg(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=Yg(a);this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});yT.\u0275fac=function(){wd()};
yT.\u0275dir=w({type:yT,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[ee]});var xT=function(a,b,c,d,e,f){return yT.call(this,a,b,c,d,e,f,"mat-slide-toggle-")||this};U(xT,yT);xT.\u0275dir=yT.\u0275dir;g=xT.prototype;
g._createChangeEvent=function(a){return new cTb(this,a)};g._onChangeEvent=function(a){a.stopPropagation();this.toggleChange.emit();this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())};g._onInputClick=function(a){a.stopPropagation()};g.focus=function(a,b){b?Xz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
xT.\u0275fac=function(a){return new (a||xT)(C(sd),C(Wz),C(zx),bd("tabindex"),C(YSb),C(iw,8))};
xT.\u0275cmp=w({type:xT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&Ef(ZSb,5);if(a&2){var c;Df(c=Gf())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(ye("id",b.id),ke("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),pe("mat-checked",b.checked)("mat-disabled",b.disabled)("mat-slide-toggle-label-before","before"==b.labelPosition)("_mat-animation-noopable",b._noopAnimations))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[Je([bTb]),ee],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple",
"mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(a,b){a&1&&(Ae(),F(0,"label",0,1)(2,"span",2)(3,"input",3,4),J("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),F(5,"span",5),H(6,"span",6),F(7,"span",
7),H(8,"span",8),G()()(),F(9,"span",9,10),J("cdkObserveContent",function(){return b._onLabelTextChange()}),F(11,"span",11),O(12,"\u00a0"),G(),Be(13),G()());if(a&2){var c=Fe(1),d=Fe(10);ke("for",b.inputId);B(2);pe("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());B(1);E("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);ke("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",
b.ariaDescribedby);B(4);E("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Le(18,$Sb,b._noopAnimations?0:150))}},dependencies:[yB,bA],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],
encapsulation:2,changeDetection:0});
var zT=function(){};zT.\u0275fac=function(a){return new (a||zT)};zT.\u0275mod=xc({type:zT});zT.\u0275inj=ic({});var AT=function(){};AT.\u0275fac=function(a){return new (a||AT)};AT.\u0275mod=xc({type:AT});AT.\u0275inj=ic({imports:[zT,CB,kB,cA,zT,kB]});
var eTb=0,BT=function(){this.id="b-slide-toggle-"+ ++eTb;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new Vw};BT.\u0275fac=function(a){return new (a||BT)};
BT.\u0275cmp=w({type:BT,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:["aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},decls:2,vars:7,consts:[[3,"id","disabled","checked","aria-label","matTooltip","labelPosition","change"]],template:function(a,b){a&1&&(F(0,"mat-slide-toggle",0),J("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
O(1),G());if(a&2){var c;E("id",b.id)("disabled",b.disabled)("checked",b.model)("aria-label",b.ariaLabel||b.label)("matTooltip",null!==(c=b.tooltip)&&void 0!==c?c:"")("labelPosition",b.label?b.labelPosition:"after");B(1);He(b.label)}},dependencies:[xT,wF],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var CT=function(){};CT.\u0275fac=function(a){return new (a||CT)};CT.\u0275mod=xc({type:CT});CT.\u0275inj=ic({imports:[AT,gH]});
var DT=function(a){this.$log=a;this.accessPolicyPrincipalToString=On;this.stringToAccessPolicyPrincipal=qCa},ET=function(){return{inheritance:"INHERITANCE_UNSPECIFIED",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},FT=function(a){return{inheritance:a.inheritance||"INHERITANCE_UNSPECIFIED",admins:No(a.admins),editors:No(a.editors),appenders:No(a.appenders),readers:No(a.readers),restrictedReaders:No(a.restrictedReaders),
restrictedPlusReaders:No(a.restrictedPlusReaders),inheritedAdmins:No(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},GT=function(a){return{inheritance:a.inheritance,admins:Oo(a.admins),editors:Oo(a.editors),appenders:Oo(a.appenders),readers:Oo(a.readers),restrictedReaders:Oo(a.restrictedReaders),restrictedPlusReaders:Oo(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}};DT.\u0275fac=function(a){return new (a||DT)(t(AK))};DT.\u0275prov=hc({token:DT,factory:DT.\u0275fac,providedIn:"root"});
var fTb=new RegExp("4:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");
var HT=function(a){Z.call(this,a)};U(HT,Z);HT.prototype.getSocialApplication=function(){return p(this,3)};HT.prototype.getAffinityType=function(){return V(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};HT.prototype.setAffinityType=function(a){return l(this,12,a)};HT.prototype.toObject=function(){return gTb(this)};
var gTb=function(a){if(null!=a)return{gapiApiKey:n(p(a,1)),gapiApiKeyTest:n(p(a,2)),socialApplication:n(p(a,3)),papiClientId:n(p(a,4)),papiClientName:n(p(a,5)),papiClientVersion:n(p(a,6)),requestTimeoutMillis:hj(a,8,3E4),includeDomainAddressBook:n(Xo(a,10)),includeDomainGroups:n(Xo(a,11)),affinityType:V(a,12,"CONTACT_STORE_DEFAULT_AFFINITY"),autocompletePageSize:hj(a,13,15),rankedTargetsPageSize:hj(a,14,500),peopleContainerMask:V(a,15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),peopleFieldMask:V(a,
16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),includeOnlyNames:W(a,17,!1)}};
var IT=function(a){Z.call(this,a,-1,hTb)};U(IT,Z);IT.prototype.getExperimentIdsList=function(){return lb(this,4)};IT.prototype.setExperimentIdsList=function(a){return ml(this,4,a)};var hTb=[4];IT.prototype.toObject=function(){return iTb(this)};var iTb=function(a){if(null!=a)return{enablePapiClearcutLogging:W(a,1,!0),enableOzClearcutLogging:W(a,2,!0),enableApiClearcutLogging:W(a,3,!0),experimentIdsList:n(lb(a,4)),enablePapi:W(a,5,!0),enableCacheFiltering:W(a,6,!0)}};
var jTb=function(a){Z.call(this,a)};U(jTb,Z);g=jTb.prototype;g.getClientInfo=function(){return m(this,HT,1)};g.getMutableClientInfo=function(){return Bu(this,HT,1)};g.setClientInfo=function(a){Db(this,1,a)};g.getExperiments=function(){return m(this,IT,2)};g.setExperiments=function(a){Db(this,2,a)};g.hasExperiments=function(){return oj(this,2)};g.toObject=function(){var a=null!=this?{clientInfo:gTb(this.getClientInfo()),experiments:iTb(this.getExperiments())}:void 0;return a};
var kTb=function(a){Z.call(this,a)};U(kTb,Z);g=kTb.prototype;g.getDelegatorId=function(){return p(this,2)};g.getEnvType=function(){return p(this,5)};g.setEnvType=function(a){l(this,5,a)};g.getCacheSize=function(){return p(this,7)};g.setCacheSize=function(a){l(this,7,a)};g.hasCacheSize=function(){return gj(this,7)};g.toObject=function(){var a=null!=this?{delegatorId:n(p(this,2)),envType:n(p(this,5)),releaseEnvType:n(p(this,6)),cacheSize:n(p(this,7))}:void 0;return a};
var tCa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,rCa=/([#].*?&|[#])authuser=([^&#]*)\b/,sCa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;
var JT=function(a){this.config_=a;this.userInfo_=new kTb;this.onAuthError_=this.gapiClientThenable_=null};JT.prototype.getClientInfo=function(){return this.config_.getClientInfo()};JT.prototype.getExperiments=function(){return this.config_.getExperiments()};JT.prototype.getUserInfo=function(){return this.userInfo_};
var RCa=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=xCa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_},lTb=function(a,b){b&&(a.gapiClientThenable_=b.then(function(c){return c},function(){return xCa(10,5E3).then(function(c){return c.client})}))};JT.prototype.getAuthErrorHandler=function(){return this.onAuthError_};JT.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};
var mTb=function(){};
var KT=[];KT.push=function(){throw Error("Nd");};var LT={cancel:function(){},isPending:function(){return!1}};
var MT=function(a){this.response_=a||function(){};this.timer_=ND(this.onTimer_,0,this);this.addressBookId_=""};g=MT.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){OD(this.timer_);this.timer_=null};g.isPending=function(){return!!this.timer_};g.onTimer_=function(){this.timer_=null;this.response_()};g.setQuery=function(a){this.query_=a};g.getQuery=function(){return this.query_};
var nTb=new Map([["personal",2],["domain",4],["pcab",3]]);
var To=function(a){Z.call(this,a)};U(To,Z);g=To.prototype;g.getEventType=function(){return Y(this,1,0)};g.setEventType=function(a){return l(this,1,a)};g.getApiType=function(){return Y(this,2,0)};g.setApiType=function(a){return l(this,2,a)};g.getCacheStatus=function(){return Y(this,3,0)};g.setCacheStatus=function(a){return l(this,3,a)};g.getAddressBook=function(){return Y(this,4,0)};g.setAddressBook=function(a){return l(this,4,a)};g.getRpcType=function(){return Y(this,5,0)};
g.setRpcType=function(a){return l(this,5,a)};g.getLookupType=function(){return Y(this,6,0)};g.setLookupType=function(a){return l(this,6,a)};g.getToken=function(){return V(this,7,"")};g.setToken=function(a){return l(this,7,a)};g.toObject=function(){var a=null!=this?{eventType:Y(this,1,0),apiType:Y(this,2,0),cacheStatus:Y(this,3,0),addressBook:Y(this,4,0),rpcType:Y(this,5,0),lookupType:Y(this,6,0),token:V(this,7,""),isCountRecorded:W(this,8,!1),isStatusRecorded:W(this,9,!1)}:void 0;return a};
var NT=function(a){Z.call(this,a)};U(NT,Z);NT.prototype.setDevice=function(a){return l(this,1,a)};NT.prototype.getApplication=function(){return p(this,2)};NT.prototype.setApplication=function(a){return l(this,2,a)};NT.prototype.toObject=function(){return oTb(this)};var oTb=function(a){if(null!=a)return{device:n(p(a,1)),application:n(p(a,2)),platform:n(p(a,3)),trafficType:n(p(a,4))}};
var qTb=function(a){Z.call(this,a,-1,pTb)};U(qTb,Z);g=qTb.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getMetadata=function(){return m(this,OT,4)};g.setMetadata=function(a){Db(this,4,a)};g.getClientInterface=function(){return m(this,PT,5)};g.setClientInterface=function(a){return Db(this,5,a)};var QT=function(a){Z.call(this,a)};U(QT,Z);QT.prototype.getLoggingId=function(){return p(this,1)};QT.prototype.setLoggingId=function(a){l(this,1,a)};
QT.prototype.getMetadata=function(){return m(this,RT,3)};QT.prototype.setMetadata=function(a){Db(this,3,a)};var ST=function(a){Z.call(this,a)};U(ST,Z);g=ST.prototype;g.getType=function(){return p(this,5)};g.setType=function(a){return l(this,5,a)};g.hasType=function(){return gj(this,5)};g.getEmail=function(){return p(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return gj(this,1)};g.getPhone=function(){return p(this,2)};g.setPhone=function(a){return l(this,2,a)};
g.hasPhone=function(){return gj(this,2)};g.getObfuscatedGaiaId=function(){return p(this,3)};g.setObfuscatedGaiaId=function(a){l(this,3,a)};g.getContactId=function(){return p(this,4)};g.setContactId=function(a){l(this,4,a)};g.hasContactId=function(){return gj(this,4)};g.getGroupId=function(){return p(this,6)};g.setGroupId=function(a){l(this,6,a)};g.hasGroupId=function(){return gj(this,6)};var RT=function(a){Z.call(this,a,-1,rTb)};U(RT,Z);g=RT.prototype;g.getPosition=function(){return m(this,TT,1)};
g.setPosition=function(a){return Db(this,1,a)};g.getProfile=function(){return m(this,UT,2)};g.getIsPlaceholder=function(){return Xo(this,7)};g.setIsPlaceholder=function(a){l(this,7,a)};g.getIsSelf=function(){return Xo(this,11)};var TT=function(a){Z.call(this,a)};U(TT,Z);g=TT.prototype;g.getColumn=function(){return p(this,2)};g.setColumn=function(a){return l(this,2,a)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return gj(this,3)};
var UT=function(a){Z.call(this,a)};U(UT,Z);UT.prototype.getName=function(){return p(this,1)};UT.prototype.setName=function(a){return l(this,1,a)};UT.prototype.hasName=function(){return gj(this,1)};var sTb=function(a){Z.call(this,a)};U(sTb,Z);var OT=function(a){Z.call(this,a)};U(OT,Z);OT.prototype.getAffinityVersion=function(){return p(this,2)};OT.prototype.setAffinityVersion=function(a){l(this,2,a)};var VT=function(a){Z.call(this,a)};U(VT,Z);g=VT.prototype;
g.getQueryLength=function(){return p(this,1)};g.setQueryLength=function(a){return l(this,1,a)};g.hasQueryLength=function(){return gj(this,1)};g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){ob(this,2)};g.hasQuery=function(){return gj(this,2)};var WT=function(a){Z.call(this,a)};U(WT,Z);WT.prototype.setLatencyUsec=function(a){l(this,1,a)};var tTb=function(a){Z.call(this,a)};U(tTb,Z);var uTb=function(a){Z.call(this,a)};U(uTb,Z);
var XT=function(a){Z.call(this,a)};U(XT,Z);g=XT.prototype;g.getQueryId=function(){return p(this,1)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){ob(this,4)};g.hasInstanceId=function(){return gj(this,4)};g.getAffinityVersion=function(){return p(this,5)};g.setAffinityVersion=function(a){l(this,5,a)};var vTb=function(a){Z.call(this,a)};U(vTb,Z);var wTb=function(a){Z.call(this,a)};U(wTb,Z);var YT=function(a){Z.call(this,a)};
U(YT,Z);YT.prototype.getExistingSelectionsCount=function(){return p(this,1)};YT.prototype.setExistingSelectionsCount=function(a){l(this,1,a)};YT.prototype.getPosition=function(){return m(this,TT,2)};YT.prototype.setPosition=function(a){return Db(this,2,a)};var xTb=function(a){Z.call(this,a)};U(xTb,Z);var PT=function(a){Z.call(this,a,-1,yTb)};U(PT,Z);g=PT.prototype;g.getEventSource=function(){return p(this,2)};g.setEventSource=function(a){l(this,2,a)};
g.getSocialClient=function(){return m(this,NT,3)};g.setSocialClient=function(a){return Db(this,3,a)};g.setVersionName=function(a){return l(this,5,a)};g.getBaselineCl=function(){return p(this,7)};g.setBaselineCl=function(a){return l(this,7,a)};g.hasBaselineCl=function(){return gj(this,7)};g.getClientAgent=function(){return p(this,9)};g.setClientAgent=function(a){return l(this,9,a)};g.getPeoplekitEntryPoint=function(){return p(this,11)};g.setPeoplekitEntryPoint=function(a){return l(this,11,a)};
g.getEnvironment=function(){return p(this,13)};g.setEnvironment=function(a){return l(this,13,a)};var pTb=[2];qTb.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),entityList:Eb(tb(this,QT,2),zTb),scoringInfo:ATb(m(this,sTb,3)),metadata:BTb(this.getMetadata()),clientInterface:CTb(this.getClientInterface()),eventTimestampUsec:n(p(this,6))}:void 0;return a};QT.prototype.toObject=function(){return zTb(void 0,this)};
var zTb=function(a,b){if(null!=b){var c={loggingId:n(p(b,1)),entityId:DTb(a,m(b,ST,4)),metadata:ETb(a,b.getMetadata())};a&&(c.$jspbMessageInstance=b);return c}};ST.prototype.toObject=function(){return DTb(void 0,this)};var DTb=function(a,b){if(null!=b){var c={type:n(p(b,5)),email:n(p(b,1)),phone:n(p(b,2)),obfuscatedGaiaId:n(p(b,3)),contactId:n(p(b,4)),groupId:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}},rTb=[4,3];RT.prototype.toObject=function(){return ETb(void 0,this)};
var ETb=function(a,b){if(null!=b){var c={position:FTb(a,b.getPosition()),additionalPositionList:Eb(tb(b,TT,4),FTb,a),profile:GTb(a,b.getProfile()),provenanceList:n(lb(b,3)),hasAvatar:n(Xo(b,5)),isBoosted:n(Xo(b,6)),isPlaceholder:n(Xo(b,7)),smartAddressEntityMetadata:HTb(a,m(b,YT,8)),uiSurface:n(p(b,9)),isSelf:n(Xo(b,11))};a&&(c.$jspbMessageInstance=b);return c}};TT.prototype.toObject=function(){return FTb(void 0,this)};
var FTb=function(a,b){if(null!=b){var c={row:n(p(b,1)),column:n(p(b,2)),type:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};UT.prototype.toObject=function(){return GTb(void 0,this)};var GTb=function(a,b){if(null!=b){var c={name:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};sTb.prototype.toObject=function(){return ATb(this)};var ATb=function(a){if(null!=a)return{scoreVersion:n(p(a,1)),sessionId:n(p(a,2))}};OT.prototype.toObject=function(){return BTb(this)};
var BTb=function(a){if(null!=a)return{autocompleteMetadata:ITb(m(a,VT,1)),affinityVersion:n(p(a,2)),showMetadata:JTb(m(a,WT,6)),queryErrorMetadata:KTb(m(a,tTb,7)),autocompleteClientMetadata:LTb(m(a,uTb,3)),reactrMetadata:MTb(m(a,vTb,4)),apdlMetadata:NTb(m(a,wTb,5)),phoneRegionHints:OTb(m(a,xTb,8))}};VT.prototype.toObject=function(){return ITb(this)};var ITb=function(a){if(null!=a)return{queryLength:n(p(a,1)),query:n(p(a,2)),sessions:PTb(m(a,XT,3))}};WT.prototype.toObject=function(){return JTb(this)};
var JTb=function(a){if(null!=a)return{latencyUsec:n(p(a,1)),dataLatencyUsec:n(p(a,2))}};tTb.prototype.toObject=function(){return KTb(this)};var KTb=function(a){if(null!=a)return{canonicalCode:n(p(a,1))}};uTb.prototype.toObject=function(){return LTb(this)};var LTb=function(a){if(null!=a)return{hadValidCache:n(Xo(a,1)),timeSinceCacheRefreshUsec:n(p(a,2)),cacheRefreshUsec:n(p(a,3)),hadDeviceContactPermissions:n(Xo(a,4))}};XT.prototype.toObject=function(){return PTb(this)};
var PTb=function(a){if(null!=a)return{queryId:n(p(a,1)),selectionId:n(p(a,2)),submissionId:n(p(a,3)),instanceId:n(p(a,4)),affinityVersion:n(p(a,5))}};vTb.prototype.toObject=function(){return MTb(this)};var MTb=function(a){if(null!=a)return{attributedSharingEnabled:n(Xo(a,1)),sharePanelVersion:n(p(a,2))}};wTb.prototype.toObject=function(){return NTb(this)};var NTb=function(a){if(null!=a)return{applicationPackageName:n(p(a,1)),widgetName:n(p(a,2))}};
YT.prototype.toObject=function(){return HTb(void 0,this)};var HTb=function(a,b){if(null!=b){var c={existingSelectionsCount:n(p(b,1)),position:FTb(a,b.getPosition()),replacementOriginEmailAddress:n(p(b,3)),replacementDestinationEmailAddress:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};xTb.prototype.toObject=function(){return OTb(this)};var OTb=function(a){if(null!=a)return{mobileNetworkCountry:n(p(a,1)),simCountry:n(p(a,2)),localeCountry:n(p(a,3))}},yTb=[6];PT.prototype.toObject=function(){return CTb(this)};
var CTb=function(a){if(null!=a)return{eventSource:n(p(a,2)),socialClient:oTb(a.getSocialClient()),versionName:n(p(a,5)),applicationIdentifies:n(p(a,10)),baselineCl:n(p(a,7)),enabledExperimentsFlagsList:n(lb(a,6)),sendkitEntryPoint:n(p(a,8)),clientAgent:n(p(a,9)),peoplekitEntryPoint:n(p(a,11)),environment:n(p(a,13))}};
var QTb=function(a){Z.call(this,a)};U(QTb,Z);g=QTb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return gj(this,2)};g.toObject=function(){return RTb(this)};var RTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2))}};
var STb=function(a){Z.call(this,a)};U(STb,Z);g=STb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return gj(this,2)};g.getStatus=function(){return Y(this,4,2)};g.setStatus=function(a){return l(this,4,a)};g.hasStatus=function(){return gj(this,4)};g.setTotalUsec=function(a){return l(this,5,a)};
g.setBlockedUsec=function(a){return l(this,6,a)};g.setNetworkUsec=function(a){l(this,7,a)};g.getCacheStatus=function(){return p(this,8)};g.setCacheStatus=function(a){return l(this,8,a)};g.getAddressBook=function(){return p(this,9)};g.setAddressBook=function(a){return l(this,9,a)};g.toObject=function(){return TTb(this)};
var TTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2)),notFoundCount:n(p(a,3)),status:Y(a,4,2),totalUsec:n(p(a,5)),blockedUsec:n(p(a,6)),networkUsec:n(p(a,7)),cacheStatus:n(p(a,8)),addressBook:n(p(a,9))}};
var UTb=function(a){Z.call(this,a)};U(UTb,Z);g=UTb.prototype;g.getStatus=function(){return Y(this,1,2)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return gj(this,1)};g.setTotalUsec=function(a){return l(this,2,a)};g.toObject=function(){return VTb(this)};var VTb=function(a){if(null!=a)return{status:Y(a,1,2),totalUsec:n(p(a,2)),scriptLoadUsec:n(p(a,3)),papiLoadUsec:n(p(a,4)),transportType:n(p(a,5))}};
var WTb=function(a){Z.call(this,a)};U(WTb,Z);g=WTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.toObject=function(){return XTb(this)};var XTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2))}};
var YTb=function(a){Z.call(this,a)};U(YTb,Z);g=YTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.getStatus=function(){return Y(this,3,2)};g.setStatus=function(a){return l(this,3,a)};g.hasStatus=function(){return gj(this,3)};g.setTotalUsec=function(a){return l(this,4,a)};g.setBlockedUsec=function(a){return l(this,5,a)};
g.setNetworkUsec=function(a){l(this,6,a)};g.toObject=function(){return ZTb(this)};var ZTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2)),status:Y(a,3,2),totalUsec:n(p(a,4)),blockedUsec:n(p(a,5)),networkUsec:n(p(a,6))}};
var $Tb=function(a){Z.call(this,a)};U($Tb,Z);g=$Tb.prototype;g.getEnvType=function(){return p(this,1)};g.setEnvType=function(a){l(this,1,a)};g.getCacheSize=function(){return p(this,2)};g.setCacheSize=function(a){l(this,2,a)};g.hasCacheSize=function(){return gj(this,2)};g.toObject=function(){return aUb(this)};var aUb=function(a){if(null!=a)return{envType:n(p(a,1)),cacheSize:n(p(a,2)),cacheSizeBucket:n(p(a,3)),gmailDelegation:n(Xo(a,4))}};
var ZT=function(a){Z.call(this,a)};U(ZT,Z);g=ZT.prototype;g.getClientInterface=function(){return m(this,PT,1)};g.setClientInterface=function(a){return Db(this,1,a)};g.getSource=function(){return p(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return gj(this,2)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getRpcRequest=function(){return Bl(this,WTb,5,$T)};g.setRpcRequest=function(a){return Cu(this,5,$T,a)};
g.getRpcResponse=function(){return Bl(this,YTb,6,$T)};g.setRpcResponse=function(a){return Cu(this,6,$T,a)};g.getApiCall=function(){return Bl(this,QTb,7,$T)};g.setApiCall=function(a){return Cu(this,7,$T,a)};g.getApiResult=function(){return Bl(this,STb,8,$T)};g.setApiResult=function(a){return Cu(this,8,$T,a)};g.getUserInfo=function(){return m(this,$Tb,9)};g.setUserInfo=function(a){return Db(this,9,a)};g.hasUserInfo=function(){return oj(this,9)};var $T=[4,5,6,7,8];
ZT.prototype.toObject=function(){var a=null!=this?{clientInterface:CTb(this.getClientInterface()),source:n(p(this,2)),eventType:n(p(this,3)),gapiInit:VTb(Bl(this,UTb,4,$T)),rpcRequest:XTb(this.getRpcRequest()),rpcResponse:ZTb(this.getRpcResponse()),apiCall:RTb(this.getApiCall()),apiResult:TTb(this.getApiResult()),userInfo:aUb(this.getUserInfo())}:void 0;return a};
var bUb=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]]),cUb=new Map([[0,0],[1,11],[2,1],[3,3],[4,10],[5,8],[6,7],[7,2],[16,2],[8,6],[9,7],[10,11],[11,9],[12,5],[13,9],[14,4],[15,6]]),dUb=new Map([[0,0],[11,1],[1,2],[3,3],[10,4],[8,5],[2,16],[6,8],[7,9],[5,12],[9,13],[4,14]]),eUb=function(a){return cUb.has(a)?cUb.get(a):1},fUb=function(a){return dUb.has(a)?dUb.get(a):2};
var gUb=function(a){this.request_=a;this.errorCode_=0},hUb=function(a,b){b=new gUb(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=gUb.prototype;g.hasChanges=function(){return this.mutateResponse_&&this.mutateResponse_.getOperation()?this.mutateResponse_.getOperation().hasChanges():!1};g.getError=function(){return this.errorCode_};g.getErrorCode=function(){return this.errorCode_};g.getQuery=function(){return this.request_.getQuery()};g.getConfiguration=function(){return this.queryResponse_.getConfiguration()};
g.getUserData=function(){return this.queryResponse_?this.queryResponse_.getUserData():null};
var aU=function(a){this.map_=new QK;this.size=0;a&&this.addAll(a)},iUb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ha(a):b.charAt(0)+a};g=aU.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(iUb(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=LG(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};g.removeAll=function(a){a=LG(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};
g.delete=function(a){a=this.map_.remove(iUb(a));this.setSizeInternal_(this.map_.size);return a};g.remove=function(a){return this.delete(a)};g.clear=function(){this.map_.clear();this.setSizeInternal_(0)};g.isEmpty=function(){return 0===this.map_.size};g.has=function(a){return this.map_.containsKey(iUb(a))};g.contains=function(a){return this.map_.containsKey(iUb(a))};g.intersection=function(a){var b=new aU;a=LG(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};
g.getValues=function(){return this.map_.getValues()};g.values=function(){return this.map_.values()};g.clone=function(){return new aU(this)};g.equals=function(a){return this.getCount()==Ozb(a)&&jUb(this,a)};
var jUb=function(a,b){var c=Ozb(b);if(a.getCount()>c)return!1;!(b instanceof aU)&&5<c&&(b=new aU(b));return Rzb(a,function(d){var e=b;if(e.contains&&"function"==typeof e.contains)d=e.contains(d);else if(e.containsValue&&"function"==typeof e.containsValue)d=e.containsValue(d);else if(Fa(e)||"string"===typeof e)d=wa(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};aU.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};aU.prototype[Symbol.iterator]=function(){return this.values()};
aU.prototype.setSizeInternal_=function(a){this.size=a};
var bU=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new aU(c);this.extraFields_=[]};bU.prototype.toString=function(){var a=this.name_?"g"+this.name_:this.fields_.join(",");this.name_&&this.extraFields_.length&&(a+=","+this.extraFields_.join(","));return a};var kUb=function(a){a.fieldSet_||(a.fieldSet_=new aU(a.fields_));return a.fieldSet_};
bU.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new aU);if(this.doesntContain_.has(a))return!1;var b=kUb(this),c=kUb(a);if(Rzb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var lUb=new bU(["6","12"],"1"),mUb=new bU("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[lUb]);new bU("6 12 16 17 18 1a".split(" "),"3",[lUb]);
new bU("2 4 2a 5 6 9 b 1c d e f 11 12 29 13 14 15 1d 22 16 17 19 28 1e 1b".split(" "),"2",[lUb,mUb]);new bU([]);
var nUb={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};
var oUb=function(a,b,c){$C.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};U(oUb,$C);g=oUb.prototype;g.getGroup=function(){return this.group};g.setGroup=function(a){this.group=a};g.isSuccess=function(){return this.getState().isSuccess()};g.setSuccess=function(a){this.getState().setSuccess(a)};g.getMaxNumRetries=function(){this.getState().getMaxNumRetries()};g.setMaxNumRetries=function(a){this.getState().setMaxNumRetries(a)};g.reset=function(){this.getState().reset()};
g.getNumTriesLeft=function(){return this.getState().getNumTriesLeft()};g.setRunState=function(a){this.getState().setRunState(a)};g.setRunTime=function(a){this.getState().setRunTime(a)};g.setRunTimerId=function(a){this.getState().setRunTimerId(a)};g.incNumSuccesses=function(){this.getState().incNumSuccesses()};g.incNumFailures=function(){this.getState().incNumFailures()};g.incNumExecutions=function(){this.getState().incNumExecutions()};g.decNumTriesLeft=function(){this.getState().decNumTriesLeft()};
g.isPending=function(){return this.getState().isPending()};g.cancel=function(){this.scheduler.cancel(this.getState())};g.getState=function(){return this.scheduler.getState(this.group)};g.run=function(){this.incNumExecutions();this.runFunction_(this)};g.isDone=function(a){return this.scheduler.isDone(this,a)};
var pUb=function(a){$C.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};U(pUb,$C);g=pUb.prototype;g.reset=function(){this.numTriesLeft=this.maxNumRetries_;this.success=!1;this.runState=1;this.runTimerId=this.runTime=-1};g.isSuccess=function(){return this.success};g.setSuccess=function(a){this.success=a};g.getMaxNumRetries=function(){return this.maxNumRetries_};g.setRunState=function(a){this.runState=a};g.setRunTime=function(a){this.runTime=a};
g.setRunTimerId=function(a){this.runTimerId=a};g.setMaxNumRetries=function(a){this.maxNumRetries_=a};g.getNumTriesLeft=function(){return this.numTriesLeft};g.decNumTriesLeft=function(){--this.numTriesLeft};g.incNumSuccesses=function(){};g.incNumFailures=function(){};g.incNumExecutions=function(){};g.isPending=function(){return!(4==this.runState||5==this.runState)};g.disposeInternal=function(){$C.prototype.disposeInternal.call(this);this.scheduler=null};
var qUb=function(){$C.call(this);this.states={};this.currentGroup=1};U(qUb,$C);qUb.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new pUb(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();rUb(a,b,e);break;case 6:rUb(a,b,e);break;case 4:d&&(f.reset(),rUb(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),rUb(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var rUb=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(ND(a.run,b,a)))};g=qUb.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){$C.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);yi(b)}this.states={}};g.cancel=function(a){2==a.runState&&OD(a.runTimerId)};
g.isDone=function(a,b){b?a.incNumSuccesses():a.incNumFailures();a.setSuccess(b);a.decNumTriesLeft();if(!b&&0<a.getNumTriesLeft())return a.setRunState(6),this.schedule(a,Math.max(100,Math.round(45E3*Math.random()))),!1;a.setRunState(b?4:5);return!0};
var sUb={SOMETHING_CHANGED:"a",ERROR:"b"},tUb=function(a,b){bD.call(this,a&&a[0].getError()?"b":"a");this.source_=b||"d"};U(tUb,bD);tUb.prototype.getSource=function(){return this.source_};
var uUb=function(a,b){this.fn_=a;this.handler_=b};uUb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};uUb.prototype.abort=function(){this.handler_=this.fn_=null};eD(function(a){uUb.prototype.execute=a(uUb.prototype.execute)});
var vUb=[];
var cU=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];wUb(this,c)};cU.prototype.toString=function(){return this.serviceId_};cU.prototype.getModuleId=function(){return this.moduleId_};var wUb=function(a,b){var c=!1;c=void 0===c?!1:c;a.dependencies_=a.dependencies_.concat(b);if(c){if(!a.moduleId_)throw Error("Od`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){vUb.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};
new cU("rJmJrc","rJmJrc");
new cU("n73qwf","n73qwf");
new cU("MpJwZc","MpJwZc");
new cU("UUJqVe","UUJqVe");
new cU("Wt6vjf","Wt6vjf");
new cU("byfTOb","byfTOb");
new cU("LEikZe","LEikZe");
new cU("lsjVmc","lsjVmc");
new cU("pVbxBc");
new cU("tdUkaf");new cU("fJuxOc");new cU("ZtVrH");new cU("WSziFf");new cU("ZmXAm");new cU("BWETze");new cU("UBSgGf");new cU("zZa4xc");new cU("o1bZcd");new cU("WwG67d");new cU("z72MOc");new cU("JccZRe");new cU("amY3Td");new cU("ABma3e");new cU("GHAeAc","GHAeAc");new cU("gSshPb");new cU("klpyYe");new cU("OPbIxb");new cU("pg9hFd");new cU("yu4DA");new cU("vk3Wc");new cU("IykvEf");new cU("J5K1Ad");new cU("IW8Usd");new cU("IaqD3e");new cU("jbDgG");new cU("b8xKu");new cU("d0RAGb");new cU("AzG0ke");new cU("J4QWB");
new cU("TuDsZ");new cU("hdXIif");new cU("mITR5c");new cU("DFElXb");new cU("NGntwf");new cU("Bgf0ib");new cU("Xpw1of");new cU("v5BQle");new cU("ofuapc");new cU("FENZqe");new cU("tLnxq");
var dU=function(){$C.call(this);this.eventTarget_=new Uo;this.updateCacheEventTarget_=new Uo;this.mutationIdMap_=new TK};U(dU,$C);dU.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};dU.prototype.getEventTarget=function(){return this.eventTarget_};
dU.prototype.disposeInternal=function(){$C.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};
var gs=function(a){Z.call(this,a,-1,xUb)};U(gs,Z);var fs=function(a,b){return l(a,1,b)};g=gs.prototype;g.getLogSource=function(){return p(this,2)};g.setLogSource=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.getVersion=function(){return p(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return gj(this,5)};g.getEnableClearcut=function(){return Xo(this,6)};g.setEnableClearcut=function(a){return l(this,6,a)};var es=function(a,b){return ml(a,7,b)};g=gs.prototype;g.getClientAgent=function(){return p(this,8)};g.setClientAgent=function(a){return l(this,8,a)};g.getEventSource=function(){return p(this,9)};g.setEventSource=function(a){l(this,9,a)};g.getClearcutUrl=function(){return p(this,10)};g.setClearcutUrl=function(a){l(this,10,a)};
g.getEnvironment=function(){return p(this,11)};g.setEnvironment=function(a){return l(this,11,a)};g.getPeoplekitEntryPoint=function(){return p(this,12)};g.setPeoplekitEntryPoint=function(a){return l(this,12,a)};var xUb=[7];
gs.prototype.toObject=function(){var a=null!=this?{logName:n(p(this,1)),logSource:n(p(this,2)),application:n(p(this,3)),version:n(p(this,4)),baselineCl:n(p(this,5)),enableClearcut:n(Xo(this,6)),experimentIdList:n(lb(this,7)),clientAgent:n(p(this,8)),eventSource:n(p(this,9)),clearcutUrl:n(p(this,10)),environment:n(p(this,11)),peoplekitEntryPoint:n(p(this,12))}:void 0;return a};
var yUb=window&&window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return Date.now()};
var zUb=function(a){this.start_=a;this.end_=NaN};zUb.prototype.duration=function(){return this.end_-this.start_};zUb.prototype.stop=function(a){this.end_=a;return this.duration()};var eU=function(a){var b=void 0===b?yUb:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};eU.prototype.source=function(){return this.source_};var AUb=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};g=eU.prototype;
g.duration=function(a){a=AUb(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};g.durationUsec=function(a){return BCa(this.duration(void 0===a?"":a))};g.toString=function(a,b){b=void 0===b?1:b;return this.duration(void 0===a?"":a).toFixed(b)};g.start=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=AUb(this,a);this.durations_.set(a,new zUb(b));return this};
g.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=AUb(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};g.clear=function(){this.durations_.clear();return this};
var BUb=new Map([[1,4],[2,2],[3,1],[4,7]]),OCa=function(a,b){b=void 0===b?0:b;this.clientConfig_=a;this.transportType_=b;switch(b){case 1:b="ppl.store.peopleapi";var c=W(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=W(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=BUb.get(a.getUserInfo().getEnvType())||0;this.logContext_=qb(es(fs(new gs,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplication()).setEnvironment(d).setVersion("1012").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,20090307)};g=OCa.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=CUb(this);switch(b.getEventType()){case 2:case 3:return(new ZT).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new WTb).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new ZT).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new QTb).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=CUb(this);switch(d.getEventType()){case 1:d=(new ZT).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new UTb).setStatus(c);if(0==c||4==c)c=e.setTotalUsec(b.durationUsec("total")),b=b.durationUsec("blocked"),b=l(c,3,b),l(b,5,a);return Cu(d,4,$T,e);case 2:case 3:return a=(new ZT).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new YTb).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
0!=c&&4!=c||d.setTotalUsec(b.durationUsec("total")).setBlockedUsec(b.durationUsec("blocked")).setNetworkUsec(b.durationUsec("network")),e.call(a,d);case 4:case 5:a=(new ZT).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new STb;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);0!==c&&4!==c||f.setTotalUsec(b.durationUsec("total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};
g.createLatencyMetric=function(){return null};var CUb=function(a){a=a.clientConfig_.getUserInfo();var b=new $Tb;var c=!!a.getDelegatorId();b=l(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(p(a,6)||0);return b};
var mr=function(a){Z.call(this,a,-1,DUb)};U(mr,Z);var DUb=[1,2,3,4];mr.prototype.toObject=function(){var a=null!=this?{byGaiaList:n(lb(this,1)),byPseudonymousList:n(lb(this,2)),alwaysList:n(lb(this,3)),byOtherList:n(lb(this,4))}:void 0;return a};
var EUb=function(){return ia("iPad")||ia("Android")&&!ia("Mobile")||ia("Silk")};
var FUb=function(a,b,c,d,e,f,h){IE.call(this,a,So,b,dma,c,d,e,void 0,f,h)};U(FUb,IE);
var GUb=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=na()||ia("iPod")?4:ia("iPad")?5:ia("Android")?EUb()?3:2:!EUb()&&(ia("iPod")||ia("iPhone")||ia("Android")||ia("IEMobile"))||EUb()?0:1},HUb=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()&&(c=new FUb(b.getLogSource(),Ro(),b.getClearcutUrl()||void 0),(b=lb(b,7))&&b.length)){var d=new mr;ml(d,3,b);c.setClearExperimentIds(d)}return new GUb(c,a)},fU=function(a){var b=a.logContextFactory_.getLogContext(),c=
new NT;c.setApplication(b.getApplication());c.setDevice(a.device_);a=new PT;a.setSocialClient(c);a.setVersionName(b.getVersion());a.setClientAgent(b.getClientAgent());a.setEventSource(b.getEventSource());a.setEnvironment(b.getEnvironment());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPoint());b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),isFinite(b)&&a.setBaselineCl(b));return a},gU=function(a,b){var c=new AE;BE(c,b.serialize());a.clearcut_&&a.clearcut_.log(c)};
var IUb=function(a,b){this.clearcut_=a;this.logEventFactory_=b};IUb.prototype.logError=function(a){var b=fU(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&gU(this.clearcut_,a)};
var JUb=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 KUb=function(){this.logContext_=fs(new gs,"ppl.store")};g=KUb.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){return null};g.createStatusMetric=function(){return null};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};var LUb=function(a){this.clearcut_=a;this.log_=null},$o=function(a){a=new IUb(HUb(a),a);return new LUb(a)};g=LUb.prototype;g.start=function(a,b){a.start(b);return this};
g.stop=function(a,b){a.stop(b);return this};g.count=function(a,b){var c=this.clearcut_;b=void 0===b?1:b;var d=fU(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&gU(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=fU(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&gU(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=fU(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&gU(b.clearcut_,a);return this};
g.error=function(a){this.clearcut_.logError(a);return this};g.logError=function(){};
var Zo=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new qUb;this.eventHandler_=new WG(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new dU;(a=b)||(a=$o(new KUb));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};hu(Zo,$C);g=Zo.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,rja(sUb),du(this.forwardEvent_,this))};g.forwardEvent_=function(a){this.contactNotificationService_.dispatchEvent(a)};g.getEventTarget=function(){return this.contactNotificationService_.getEventTarget()};g.invalidate=function(){this.contactNotificationService_.dispatchEvent(new tUb(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new To).setEventType(4).setApiType(2),e=new eU(d);this.metrics.count(e);this.metrics.start(e,"total");return MUb(this,a,function(f){return f.loadContactRows},function(f,h,k,q,u){NUb(function(y,D,I,N){var L=D===LT||D instanceof MT?2:1;e.source().setCacheStatus(L);e.source().setAddressBook(I?nTb.get(I)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,fUb(u||0));b&&b(y,D,I,N,u)},f,h,k,q)})};
var MUb=function(a,b,c,d){var e=new OUb(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=PUb(a,h,c(h),b,d):f=c(h).call(h,b,d);f&&e.add(f)}else for(var k=0;k<a.addressBooks.length;k++)h=a.addressBooks[k],0<b.delayMillis||1<b.maxTries?f=PUb(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
Zo.prototype.execute=function(a){var b=this,c=(new To).setEventType(4).setApiType(1),d=new eU(c);this.metrics.count(d);this.metrics.start(d,"total");QUb(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?fUb(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?nTb.get(e)||1:1:0);b.metrics.stop(d,"total");b.metrics.status(d,f)});return this.cache_&&(c=a.executeFromCache(this.cache_,function(e){return RUb(b,e,d)}))?
c:RUb(this,a,d)};
var QUb=function(a,b){ta(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&QUb(a,b)},RUb=function(a,b,c){if(b.isMutate()){var d=b.getOperation();d&&(d=d.getMutationId())&&a.contactNotificationService_.mutationIdMap_.set(d,Date.now())}if(d=b.getAddressBookId())if(d=a.addressBookMap_[d])return d.execute(b);c=new OUb(void 0,a.metrics,c);c.setQuery(b);for(var e=0;e<a.addressBooks.length;e++)d=a.addressBooks[e],d.execute&&c.add(d.execute(b));return c},PUb=function(a,
b,c,d,e){b=du(a.runScheduledQuery_,a,b,c,d,e);b=new oUb(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new SUb(b)};Zo.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,u){e.isDone(!u)&&d&&d(f,h,k,q,u)})};
var NUb=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),TUb(b)),a(b||[],c,d,e))},TUb=function(a){if(0<a.length)for(var b=a[0].getPriority(),c=1;c<a.length;c++){var d=a[c],e=d.getPriority();e<b&&(d.flags|=1,b=e)}};
Zo.prototype.disposeInternal=function(){Zo.superClass_.disposeInternal.call(this);yi(this.scheduler_);this.scheduler_=null;ta(this.ownedAddressBooks_,yi);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;yi(this.eventHandler_);this.eventHandler_=null;ta(this.queryFilters_,function(a){a!=this.contactNotificationService_&&yi(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(yi(this.contactNotificationService_),this.contactNotificationService_=null)};
var NCa=function(a){var b=new OCa(a,0);fs(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(W(a.getExperiments(),3,!0));return $o(b)},OUb=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=OUb.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.add=function(a){this.requests_.push(a)};g.isEmpty=function(){return 0==this.requests_.length};
g.cancel=function(){this.isPending()&&this.metrics_&&this.state_&&this.metrics_.status(this.state_,1);for(var a=0;a<this.requests_.length;a++)this.requests_[a].cancel()};g.isPending=function(){for(var a=0;a<this.requests_.length;a++)if(this.requests_[a].isPending())return!0;return!1};g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};var SUb=function(a){this.op=a;this.request=null};SUb.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
SUb.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};
var UUb=function(a,b){this.text=a;this.specialRowHandler=b};hu(UUb,mTb);g=UUb.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};
var Yo=function(a,b){Zo.call(this,a,b)};U(Yo,Zo);Yo.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new VUb(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));Zo.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};Yo.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):Zo.prototype.loadContactRows.call(this,a,b)};
var VUb=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};VUb.prototype.addAddressBook=function(a){this.addrBooks_.push(new WUb(this,this.addrBooks_.length,a))};VUb.prototype.loadContactRows=function(a,b){a=new XUb(a,this.metrics_,b);YUb(this,a);return a};
var YUb=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),0==e&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],u=c.maxMatches,y=f.length;if(0==y)f=q.length>u?q.slice(0,u):q;else for(var D=0;D<q.length;D++){for(var I=null,N=0;N<y&&!(I=ZUb(f[N],q[D]));N++);if(I)I===q[D]&&(f[N]=I);else if(f.length==
y?f=f.concat(q[D]):f.push(q[D]),f.length==u)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(TUb(f),c=f):c=null;c&&b.handler&&a.addrBooks_[0]&&a.addrBooks_[0].madeCallback_&&b.handler(c,b,null,b.query);a.rowSets_=null},ZUb=function(a,b){if(a.specialRowHandler||b.specialRowHandler)return null;if(a.text==b.text)return a;if(a.getEmail()==b.getEmail()&&a.getType()==b.getType()){if(!b.getName())return a;if(!a.getName())return b}return null},$Ub=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:YUb(a,b,c,d)};
VUb.prototype.handleSpecialRow=function(){};var WUb=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
WUb.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,u){b.matchListener_(a,d,f,u)});a.activeRequests_[this.id_]=e;this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[aVb(this)])}c&&$Ub(this.combiner_,a,this.id_,c)};
var aVb=function(a){var b=a.addrBook_.title_;return new UUb(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
WUb.prototype.matchListener_=function(a,b,c,d){d=void 0===d?0:d;this.madeCallback_=!0;this.isSynchronous_||(this.lastAsyncLatency_=Date.now()-b);a.query.filter&&c&&(c=a.query.filter(c,a.query.token));b=this.id_;var e=this.addrBook_.getId();a.storedResults_[b]=c;a.storedErrorCodes_[b]=d;a.addressBooksToReport_[b]=e;$Ub(this.combiner_,a,this.id_,c)};WUb.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var XUb=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new eU((new To).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(u,y){var D=d.activeRequests_[y];D=D===LT||D instanceof MT?2:1;e.source().setCacheStatus(D);e.source().setAddressBook(u?nTb.get(u)||1:1);b.stop(e,"total");b.status(e,fUb(d.storedErrorCodes_[y]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};XUb.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};XUb.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};
var bVb={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},qr=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(192>e||382<e)e=null;else{var f=bVb[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-192],e="^"==f?null:f)}e&&(c!=d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}return 0<b.length?(b.push(a.substr(c)),b.join("")):
a};
var hU=function(a,b,c,d,e,f){Uo.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||cVb;this.cache_=new TK(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};hu(hU,Uo);hU.prototype.disposeInternal=function(){hU.superClass_.disposeInternal.call(this);this.cache_=null};hU.prototype.clear=function(){this.cache_.clear()};
var cVb=function(a){var b=Un(qr(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=qr(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},dVb=function(a,b){var c="^"+a.token.toLowerCase();b&&(a.includeContacts||(c="nc"+c),a.includeGroups||(c="ng"+c),a.includePhoneContacts||(c="np"+c),a.isContactAutoComplete||(c="na"+c));a.includeProfileAddresses&&(c="pa"+c);return c},eVb=function(a,b,c){a.cache_.set(dVb(b,a.cacheByType_),c);
if(a.cacheSize_&&(b=a.cache_.getCount(),b>a.cacheSize_)){c=Date.now()-a.cacheMinExpiryAge_;do{if(a.cache_.head_.prev.value.created>=c)break;a.cache_.pop()}while(--b>a.cacheSize_)}},fVb=function(a,b,c){c=c?a.cache_.get(b):cJb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},gVb=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=fVb(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},hVb=function(a,b){if(b.isContactAutoComplete)return null;var c=dVb(b,a.cacheByType_),
d=gVb(a,c,b.token);return d?d:a.cacheByType_&&!Qi(c,"^")?(c=dVb(b,!1),gVb(a,c,b.token)):null};hU.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};hU.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:cJb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var iU=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};iU.prototype.getMatches=function(a){a&&this.count++;return this.matches_};iU.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};
hu(Wo,Uo);g=Wo.prototype;g.configure=function(a,b){this.title_=b;this.initialized_||(this.initialized_=!0)};g.getId=function(){return this.id_};
g.loadContactRows=function(a,b){if(this.initialized_){var c=this.cache_;if(Zi(a.token)&&!c.allowEmptyQueries_)var d=KT;else{d=a.maxMatches;var e=fVb(c,dVb(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=hVb(c,a))&&0==d.getMatches().length?(eVb(c,a,new iU(a.token,KT)),d=KT):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=nib(d,c.rowMatchingFunction_(a),c),eVb(c,a,new iU(a.token,d))):d=null}d&&0<=a.maxMatches&&d.length>a.maxMatches&&(d=d.slice(0,a.maxMatches));
return(c=d)?(b&&b(c,LT,this.getId(),a),LT):this.transport_.loadContactRows(a,this.getId(),du(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(KT,LT,this.getId(),a,4);return LT};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||eVb(this.cache_,e,new iU(e.token,b,-1!=e.maxMatches&&b.length>=e.maxMatches));a&&(b&&0<=e.maxMatches&&b.length>e.maxMatches&&(b=b.slice(0,e.maxMatches)),a(b,c,d,e,f))};g.onContactsChange_=function(){this.cache_.clear()};
g.disposeInternal=function(){Wo.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;iVb(this.transport_,this.id_);this.transport_=null};
var kVb=function(a,b,c){hU.call(this,100,18E5,432E5,!0,0,c||jVb);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};U(kVb,hU);var jVb=function(a){return function(b){var c=b.getType(),d;if(d=lVb(a,c)){d=new RegExp("(^|\\W+)"+Un(qr(a.token)),"i");var e=qr(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+Un(qr(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},lVb=function(a,b){switch(b){case "ct":return a.includeContacts;case "cl":case "li":return a.includeGroups;case "pt":return a.includePhoneContacts}return!1};
var bp=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new kVb(!0,!1,mVb);Wo.call(this,a,b,"domain")};hu(bp,Wo);bp.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=gh(a),a.includeGroups=!1);return bp.superClass_.loadContactRows.call(this,a,b)};
var mVb=function(a){for(var b=AC(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=Un(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(lVb(a,k.getType())){for(var q=0;q<c.length;q++)if(!k.getName().match(c[q])&&!k.getEmail().match(d[q]))return!1;return!0}return!1}};bp.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};
var nVb=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},pVb=function(a){if(!a)return oVb;var b=DCa(Qo("metadata.identityInfo.sourceIds",a)),c=Qo("metadata.contactId",a);c&&c[0]?b.CONTACT=c[0]:b.CONTACT&&(c=parseInt(b.CONTACT,16),isFinite(c)&&(b.CONTACT=String(c)));return new nVb(a.personId||"",b)},oVb=new nVb("",{});
var qVb=function(a,b){this.isLocal_=a;this.edgeIndex_=b};qVb.prototype.toString=function(){return""};
var jU=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};jU.prototype.toString=function(){return""};var sVb=function(a){return rVb(a).some(function(b){return!b.isLocal_})};jU.prototype.getSource=function(a){return rVb(this)[a]};jU.prototype.hasSource=function(){return void 0<rVb(this).length};var rVb=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};jU.prototype.getCause=function(a){return tVb(this)[a]};
var tVb=function(a){return a.edgeCollection_?uVb(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};jU.prototype.getContainerType=function(){return this.metadata_.containerType};var vVb=new jU({},null);
var wVb=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=wVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new jU(this.email_.metadata,this.edgeCollection_):vVb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.email_};g.getValue=function(){return this.email_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.email_.metadata;return!(!a||!a.primary)};g.getDisplayName=function(){return""};var xVb=new wVb({},null);
var yVb=function(a,b){this.emails_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new wVb(c.value,b))};g=yVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||xVb};g.getFieldLength=function(){return this.emails_.length};var zVb=new yVb([],null);
var AVb=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=AVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new jU(this.name_.metadata,this.edgeCollection_));return this.metadata_};g.hasMetaData=function(){return!!this.getMetaData()};g.getValue=function(){return this.name_.displayName||this.name_.formattedName||this.name_.formattedValue||this.name_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getFamilyName=function(){return this.name_.familyName||""};g.hasFamilyName=function(){return!!this.getFamilyName()};g.getGivenName=function(){return this.name_.givenName||""};g.hasGivenName=function(){return!!this.getGivenName()};var BVb=new AVb({},null);
var CVb=function(a){this.field_=a};g=CVb.prototype;g.toString=function(){return""};g.getField=function(){return this.field_};g.getMetaData=function(){return this.field_.getMetaData()};g.hasMetaData=function(){return this.field_.hasMetaData()};g.getValue=function(){return this.field_.getValue()};g.hasValue=function(){return this.field_.hasValue()};g.getFamilyName=function(){return this.field_.getFamilyName()};g.hasFamilyName=function(){return this.field_.hasFamilyName()};g.getGivenName=function(){return this.field_.getGivenName()};
g.hasGivenName=function(){return this.field_.hasGivenName()};var DVb=new CVb(BVb);
var EVb=["CONTACT","PROFILE","DOMAIN_PROFILE"],FVb=function(a,b){this.names_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new AVb(c.value,b))};g=FVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||BVb};g.getFieldLength=function(){return this.names_.length};var GVb=new FVb([],null);
var HVb=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=HVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new jU(this.phone_.metadata,this.edgeCollection_):vVb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.phone_};g.getValue=function(){return this.phone_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.phone_.metadata;return!(!a||!a.primary)};var IVb=new HVb({},null);
var JVb=function(a,b){this.phones_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new HVb(c.value,b))};g=JVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||IVb};g.getFieldLength=function(){return this.phones_.length};var KVb=new JVb([],null);
var LVb=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=LVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new jU(this.photo_.metadata,this.edgeCollection_):vVb);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.photo_};g.getUrl=function(){return this.photo_.url||""};g.hasUrl=function(){return!!this.getUrl()};var MVb=new LVb({},null);
var NVb=function(a,b){this.photos_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new LVb(c,b))};g=NVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||MVb};g.getFieldLength=function(){return this.photos_.length};var OVb=new NVb([],null);
var kU=function(a,b,c,d,e){this.person_=a;this.googleGroup_=b;this.contactLabel_=c;this.edgeCollection_=d;this.email_=this.name_=this.nameRepeated_=this.text_=null;this.emailIndex_=void 0===e?0:e;this.photo_=this.phone_=null};
kU.prototype.toString=function(){if(null==this.text_){if(this.contactLabel_){var a=this.contactLabel_.extendedData&&this.contactLabel_.extendedData.contactPreferences?this.contactLabel_.extendedData.contactPreferences.length:0;a=1==a?"(1 contact)":"("+a+" contacts)";a=this.getName().getValue()+" "+a}else a=this.person_||this.googleGroup_?ECa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};kU.prototype.hasName=function(){return!!this.getName()};
kU.prototype.getName=function(){if(!this.name_){a:{var a=JCa(this);if(a.names_.length){for(var b=r(EVb),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=r(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new CVb(e);break a}}a=new CVb(a.names_[0])}else a=DVb}this.name_=a}return this.name_};
var JCa=function(a){if(!a.nameRepeated_){var b;a.person_?b=a.person_.name:a.googleGroup_?b=a.googleGroup_.names:a.contactLabel_&&(b=[a.contactLabel_.name]);a.nameRepeated_=b?new FVb(b,a.edgeCollection_):GVb}return a.nameRepeated_};g=kU.prototype;g.hasEmail=function(){return!!this.getEmail().getField(0).getValue()};
g.getEmail=function(){if(!this.email_){var a=null;this.person_?a=this.person_.email:this.googleGroup_?a=this.googleGroup_.emails:this.contactLabel_&&(a=[{value:FCa(this.contactLabel_)}]);this.email_=a?new yVb(a,this.edgeCollection_):zVb}return this.email_};g.hasPhone=function(){return!!this.getPhone().getField(0).getValue()};g.getPhone=function(){if(!this.phone_){var a;this.person_?a=this.person_.phone:this.googleGroup_&&(a=this.googleGroup_.phones);this.phone_=a?new JVb(a,this.edgeCollection_):KVb}return this.phone_};
g.hasPhoto=function(){return!!this.getPhoto().getField(0).getUrl()};g.getPhoto=function(){if(!this.photo_){var a;this.person_&&(a=this.person_.photo);this.photo_=a?new NVb(a,this.edgeCollection_):OVb}return this.photo_};g.getAddress=function(){return null};g.getStatus=function(){return null};g.hasStatus=function(){return!!this.getStatus()};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};g.getDisplayName=function(){return null};g.getRelation=function(){return null};
g.getEvent=function(){return null};var ECa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},PVb=new kU(null,null,null,null);
var lU=function(){this.keyToIndex_=new Map},QVb=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};lU.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};lU.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
lU.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};lU.prototype.getKey_=function(a,b){return a+"="+b};
var HCa=function(a){this.evergreenProfile_=a?new kU(a,null,null,null):PVb};HCa.prototype.toString=function(){return""};var RVb=new HCa(null);
var SVb=new qVb(!0,null),mU=function(a){this.edgeIndexResolver_=new lU;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=ICa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};mU.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||RVb};var uVb=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};mU.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
mU.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[SVb];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,QVb(this.edgeIndexResolver_,a,[b]).map(function(d){return new qVb(!1,d)}));return this.sourcesCache_.get(c)};var TVb=new mU(null);
var nU=function(a,b,c){a=void 0===a?null:a;b=void 0===b?0:b;c=void 0===c?!1:c;this.person_=a&&a.person||null;this.googleGroup_=a&&a.googleGroup||null;this.contactLabel_=a&&a.contactGroup||null;this.edgeCollection_=new mU(this.person_);this.emailIndex_=b;this.profile_=new kU(this.person_,this.googleGroup_,this.contactLabel_,this.edgeCollection_,this.emailIndex_);this.photoUrl_=this.phone_=this.name_=this.allIds_=null;this.text=c?this.getName()||"":this.profile_.toString()};U(nU,mTb);g=nU.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=pVb(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=DCa(a.sourceIds);a=new nVb(a.personId||"",b)}else a=oVb;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Qo("id.id",a)||"",a=new nVb("",b)):a=oVb:a=oVb;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=KCa(this.profile_,function(a){return!!a&&!sVb(a)}),null===this.name_&&(this.name_=UVb(this,KCa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};g.getType=function(){var a=this.profile_;return a.contactLabel_?"cl":a.googleGroup_?"li":!a.hasEmail()&&a.hasPhone()?"pt":"ct"};g.getPriority=function(){return 0};
g.getPhotoUrl=function(){null===this.photoUrl_&&(this.photoUrl_=LCa(this.profile_,function(a){return!!a&&!sVb(a)}),null===this.photoUrl_&&(this.photoUrl_=UVb(this,LCa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var UVb=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<tVb(c).length;d++){var e=c.getCause(d);e=a.edgeCollection_.get(e).evergreenProfile_;e=b(e);if(null!==e)return e}for(d=0;d<rVb(c).length;d++)if(e=c.getSource(d),null!==e.edgeIndex_&&(e=a.edgeCollection_.get(e.edgeIndex_||0).evergreenProfile_,e=b(e),null!==e))return e;return""},VVb=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new nU(q,void 0,!0)});b=new Set;var d=
[];a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=Qo("person.email",e)||Qo("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Qo("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new nU(e,h))}else d.push(new nU(e))}return d};
var QCa=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S){L=void 0===L?new IT:L;S=void 0===S?!1:S;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=u?u:function(){};this.autocompletePageSize=y;this.rankedTargetsPageSize=D;this.peopleContainerMask=I.split(/[\s,]+/).filter(function(X){return!!X});this.peopleFieldMask=N;this.experiments=L;this.includeOnlyNames=
S};QCa.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};
var oU=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};U(oU,Error);
var pU=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new eU(b);this.handler_=c;this.promise_=this.query_=null;this.state_=0;this.addressBookId_="";this.metrics_.start(this.metric_,"total");this.metrics_.start(this.metric_,"blocked")};g=pU.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.isPending=function(){return 1==this.state_};g.getQuery=function(){return this.query_};
g.setQuery=function(a){this.query_=a};g.cancel=function(){switch(this.state_){case 1:this.promise_.cancel();break;case 0:this.state_=2,this.promise_=Csb(new LD),WVb(this,null,11)}};
g.send=function(a){var b=this;if(0!==this.state_)return this.promise_;this.metrics_.count(this.metric_);this.metrics_.stop(this.metric_,"blocked");this.metrics_.start(this.metric_,"network");this.state_=1;var c=this.buildRequest();if(c&&c.path){var d=this.config.gapiApiKey||"";d&&!uCa()&&(c.params=c.params||{},c.params.key=d);c.headers=vCa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=Msb(Fsb([a,Vsb(this.timeoutMs_,"TIMEOUT")]),
function(){b.state_=2;b.metrics_.stop(b.metric_,"network")}).then(function(e){return b.onResponse_(e)},function(e){return b.onError_(e)})};g.onResponse_=function(a){if("TIMEOUT"===a)this.onError_(a);else{var b=a&&a.result;if(!b||"error"in b)this.onError_(a);else{try{var c=this.processResponse(b)}catch(d){this.onError_(d);return}try{WVb(this,c,0)}finally{this.metrics_.stop(this.metric_,"total"),this.metrics_.status(this.metric_,0)}}}};
g.onError_=function(a){var b=!1,c=2,d=1;try{if("TIMEOUT"===a)c=4,d=10;else if(a instanceof LD)c=1,d=11;else if(a instanceof oU)c=a.code,d=eUb(c);else if(a&&"object"===typeof a){var e=Qo("result.error.code",a)||a.status,f=e;f=Number(f);c=bUb.has(f)?bUb.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=eUb(c);b=401==e||403==e;2===c&&this.metrics_.logError("Bad status code (HTTP="+e+")",a)}else c=2,d=1}finally{this.metrics_.status(this.metric_,c),WVb(this,null,d,b)}};
var WVb=function(a,b,c,d){if(void 0===d?0:d)try{a.onAuthError_()}catch(e){throw a.metrics_.logError("AuthError handler: "+e,e),e;}try{a.handler_(b||[],c)}catch(e){throw a.metrics_.logError("Client handler: "+e,e),e;}};
var XVb=function(a,b,c){var d=(new To).setEventType(2).setRpcType(1).setToken(b);pU.call(this,a,d,c);this.clientId_=a.clientId;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.token_=b;this.pageSize_=a.autocompletePageSize};U(XVb,pU);
XVb.prototype.buildRequest=function(){var a={query:this.token_,client:this.clientId_,"clientVersion.clientAgent":"CONTACT_STORE","clientVersion.clientType":this.clientName_,"clientVersion.clientVersion":this.clientVersion_,pageSize:this.pageSize_};this.delegatorId_&&(a["authDelegationContext.delegationType"]="GMAIL",a["authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/autocomplete",params:a}};
XVb.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new oU(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new oU(8,"RequestThrottled");if(b.containsPartialResults)throw new oU(8,"ContainsPartialResults");}return VVb(a.results||[],this.config.includeOnlyNames)};
var YVb=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new kU(this.person_,null,null,this.edgeCollection_):PVb};g=YVb.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=pVb(this.person_));return this.allIds_};g.getId=function(){return this.getAllIds_().contactId||this.getAllIds_().profileId||this.getAllIds_().syntheticId};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};
g.getProfile=function(){return this.profile_};g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var ZVb=new YVb(null,TVb);
var $Vb=function(a){a=void 0===a?null:a;this.edgeCollection_=new mU(a);this.contact_=a?new YVb(a,this.edgeCollection_):ZVb};g=$Vb.prototype;g.toString=function(){return""};g.getId=function(){return this.contact_.getId()};g.getAttribute=function(a){return this.contact_.getAttribute(a)};g.hasAttribute=function(a){return this.contact_.hasAttribute(a)};g.getProfile=function(){return this.contact_.getProfile()};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};
g.getDeleted=function(){return this.contact_.getDeleted()};
var aWb=function(a,b,c){pU.call(this,a,(new To).setEventType(2).setRpcType(3).setLookupType(4),c);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.personIds_=b.filter(function(d){return!!d});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};U(aWb,pU);
aWb.prototype.buildRequest=function(){if(!this.personIds_.length)return{};var a={personId:this.personIds_,context:{clientVersion:{clientAgent:"CONTACT_STORE",clientType:this.clientName_,clientVersion:this.clientVersion_}},mergedPersonSourceOptions:{includedProfileStates:"CORE_ID",personModelParams:{personModel:"CONTACT_CENTRIC"}},requestMask:{imageUrlType:"FIFE_URL",includeContainer:this.peopleContainerMask_,includeField:this.peopleFieldMask_}};this.delegatorId_&&(a.context.authDelegationContext=
{delegationType:"GMAIL",obfuscatedOwnerId:this.delegatorId_});return{method:"POST",path:"v2/people:batchGet",body:a}};aWb.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new $Vb(b.person)})};
var qU=function(a,b,c,d){pU.call(this,a,ACa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=bWb(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};U(qU,pU);
qU.prototype.buildRequest=function(){if(!this.knownIds_.length||!this.lookupType_)return{};var a={"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,id:this.knownIds_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC","profileLookupOptions.emailLookupOption":"INCLUDE_EMAIL_LOOKUP_KEY","requestMask.includeContainer":this.peopleContainerMask_,
"requestMask.includeField":this.peopleFieldMask_,"requestMask.imageUrlType":"FIFE_URL",type:this.lookupType_};this.delegatorId_&&(a["context.authDelegationContext.delegationType"]="GMAIL",a["context.authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/lookup",params:a}};
qU.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=r(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new $Vb(f))});return d};var bWb=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};
var cWb=function(a,b){pU.call(this,a,(new To).setEventType(2).setRpcType(9),b);this.affinityType_=a.affinityType;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.pageSize_=a.rankedTargetsPageSize;this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask;this.peopleExtensionNames_=[];W(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};U(cWb,pU);
cWb.prototype.buildRequest=function(){var a={"affinity.type":this.affinityType_,"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,"pagingOptions.pageSize":this.pageSize_,"requestMask.includeContainer":this.peopleContainerMask_,"requestMask.includeField":this.peopleFieldMask_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC"};
this.peopleExtensionNames_.length&&(a["extensionSet.extensionNames"]=this.peopleExtensionNames_);return{method:"GET",path:"v2/people/rankedTargets",params:a}};cWb.prototype.processResponse=function(a){return VVb(a.rankedTarget||[],this.config.includeOnlyNames,!0)};
g=MCa.prototype;g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};g.getError=function(){return this.error_};g.setError=function(a){this.error_=a};g.getConfiguration=function(){return this.config_};g.setConfiguration=function(a){this.config_=a};g.getUserData=function(){return this.userData_};g.setUserData=function(a){this.userData_=a};
var PCa=new Map([[1,4],[2,2],[3,1],[4,7]]),ap=function(a,b){$C.call(this);var c=this;this.config_=a;this.queuedRequests_=new Map;this.gapiClient_=null;this.gapiFailed_=!1;this.metrics_=a.metrics;this.gapiMetric_=new eU((new To).setEventType(1));this.metrics_.start(this.gapiMetric_,"total");this.metrics_.start(this.gapiMetric_,"blocked");b.then(function(d){c.metrics_.stop(c.gapiMetric_,"blocked");d?dWb(c,d):eWb(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);eWb(c,5)})};
U(ap,$C);var dWb=function(a,b){b&&b.request?(zCa(),a.metrics_.stop(a.gapiMetric_,"total"),a.metrics_.status(a.gapiMetric_,0),a.gapiClient_=b,a.queuedRequests_.forEach(function(c,d){return c.forEach(function(e){return fWb(a,d,e)})})):eWb(a,9)};ap.prototype.disposeInternal=function(){for(var a=r(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())iVb(this,b.value)};
var eWb=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},iVb=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(gWb(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},hWb=function(a,b,c){a.gapiFailed_?c.cancel():(CCa(a,b).push(c),fWb(a,b,c))},fWb=function(a,b,c){a.gapiClient_&&Msb(c.send(a.gapiClient_),function(){var d=b;d=d||"";if(a.queuedRequests_.has(d)){d=a.queuedRequests_.get(d);var e=d.indexOf(c);0<=e&&d.splice(e,1)}})},CCa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},gWb=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};ap.prototype.loadContactRows=function(a,b,c){var d=a&&a.token||"",e=function(h,k){return c(h,f,b,a,k)},f=d?new XVb(this.config_,d,e):new cWb(this.config_,e);hWb(this,b,f);return f};
ap.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new eU((new To).setEventType(2).setRpcType(4)),12),iWb(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(y,D){D?(y=hUb(D,h),a.response_=y):(D=new MCa(b),D.contacts_=y,y=new gUb(h),y.queryResponse_=D,y.errorCode_=D.getError(),a.response_=y)},e=this.config_.setTimeout(jWb(a));try{var f=b.emailAddresses||[];if(f.length)var h=new qU(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new qU(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new aWb(this.config_,q,d);else{var u=b.syntheticIds||[];if(u.length)h=new qU(this.config_,5,u,d);else return this.metrics_.status(new eU((new To).setEventType(2)),12),iWb(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);hWb(this,c,h);return h};var iWb=function(a){var b=new MT(function(){var c=hUb(5,b);a.response_=c});b.setQuery(a);return b};
var rU=function(a,b,c,d){Wo.call(this,a,b,c,d)};U(rU,Wo);rU.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(du(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};rU.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new tUb([b.mutateResponse_],"c"),this.dispatchEvent(a)}};
var SCa=function(a,b,c){b=b||new kVb(!0,!0);Wo.call(this,a,b,"personal",c)};U(SCa,rU);SCa.prototype.configure=function(a,b){rU.prototype.configure.call(this,a,b)};
var kWb=function(a,b,c,d){a=new JT(no(jTb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",755,"MINIMAL_DOMAIN_GROUP","MISSED_LEGACY_INTEGRATION"],[]]'));a.setAuthErrorHandler(c||null);b&&lTb(a,b);a.getUserInfo().setEnvType(d?4:1);return TCa(a)};
var gp={},lWb={},mWb={},nWb={},fp=function(){throw Error("Pd");};fp.prototype.contentDir=null;fp.prototype.getContent=function(){return this.content};fp.prototype.toString=function(){return this.content};var oWb=function(){fp.call(this)};hu(oWb,fp);oWb.prototype.contentKind=gp;var pWb=function(){fp.call(this)};hu(pWb,fp);pWb.prototype.contentKind=lWb;pWb.prototype.contentDir=1;
var sU=function(a,b){return null!=a&&a.contentKind===b};
var qWb=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},tU=function(a){return sU(a,gp)?a:a instanceof sh?Lq(Zy(a),a.getDirection()):a instanceof sh?Lq(Zy(a)):Lq(String(String(a)).replace(rWb,sWb),qWb(a))},Lq=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.contentDir=d);return c}}(oWb),uU=function(a){if(null==a)throw Error("Rd");return a},tWb=function(a){return a instanceof
fp?!!a.getContent():!!a},vU=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=String(c);if(!c)return"";c=new b(c);void 0!==d&&(c.contentDir=d);return c}}(oWb),uWb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(pWb),xWb=function(a){return sU(a,gp)?a:Lq(vWb(a,wWb),qWb(a))},yWb=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),vWb=function(a,
b){if(!b)return String(a).replace(zWb,"").replace(AWb,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=a.replace(zWb,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",u="";if("/"!=f.charAt(1)){q="<";for(var y;y=BWb.exec(f);)if(y[1]&&"dir"==y[1].toLowerCase()){if(f=y[2]){if("'"==f.charAt(0)||'"'==f.charAt(0))f=f.substr(1,f.length-2);f=f.toLowerCase();if("ltr"==f||"rtl"==f||"auto"==f)u=' dir="'+f+'"'}break}BWb.lastIndex=0}c[k]=q+h+">";d[k]=u;return"["+
k+"]"}return""});a=String(a).replace(CWb,sWb);var e=DWb(c);a=a.replace(/\[(\d+)\]/g,function(f,h){return d[h]&&c[h]?c[h].substr(0,c[h].length-1)+d[h]+">":c[h]});return a+e},EWb=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},DWb=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];"/"==e.charAt(1)?(e=b.lastIndexOf(e),0>e?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):"<li>"==e&&0>b.lastIndexOf("</ol>")&&0>b.lastIndexOf("</ul>")?a[c]="":yWb.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Mq=function(a){return sU(a,gp)?String(vWb(a.getContent())).replace(CWb,sWb):String(a).replace(rWb,sWb)},IWb=function(a){sU(a,lWb)||sU(a,mWb)?a=wU(a):a instanceof hh?a=wU(ih(a)):a instanceof vh?a=wU(rh(a)):a instanceof Vy?a=wU(yh(a)):a instanceof xh?a=wU(Nja(a)):(a=String(a),a=FWb.test(a)?a.replace(GWb,HWb):"about:invalid#zSoyz");return a},xU=function(a){sU(a,nWb)?a=EWb(a.getContent()):null==a?a="":a instanceof Xy?a=EWb(Vnb(a)):a instanceof Yy?(a instanceof
Yy&&a.constructor===Yy?a=a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(Oa(a),a="type_error:SafeStyleSheet"),a=EWb(a)):(a=String(a),a=JWb.test(a)?a:"zSoyz");return a},KWb={"\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;"},sWb=function(a){return KWb[a]},LWb={"\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"},
HWb=function(a){return LWb[a]},rWb=/[\x00\x22\x26\x27\x3c\x3e]/g,CWb=/[\x00\x22\x27\x3c\x3e]/g,GWb=/[\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,JWb=/^(?!-*(?:expression|(?:moz-)?binding))(?:(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:rgb|rgba|hsl|hsla|calc)\([-\u0020\t,+.!#%_0-9a-zA-Z]+\)|[-+]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:e-?[0-9]+)?(?:[a-z]{1,4}|%)?|!important)(?:\s*[,\u0020]\s*|$))*$/i,
FWb=/^(?:(?:https?|mailto|ftp):|[^&:\/?#]*(?:[\/?#]|$))/i,MWb=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,wU=function(a){return String(a).replace(GWb,HWb)},zWb=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,AWb=/</g,wWb={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},BWb=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var UCa={};
var yU=function(a,b,c){Uo.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Vo(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};hu(yU,Uo);g=yU.prototype;g.maxMatches_=10;g.getMatcher=function(){return this.matcher_};g.setMatcher=function(a){this.matcher_=a};g.getToken=function(){return this.token_};
g.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case "hilite":this.hiliteId(a.row);break;case "select":var c=!1;if("number"===typeof a.row){a=a.row;var d=this.rows_[zU(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":NWb(this);break;case "dismiss":OWb(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,du(this.matchListener_,this)),NWb(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var PWb=function(a){for(var b=a.firstRowId_+a.rows_.length-1,c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>=a.firstRowId_&&c<b)c++;else if(-1==c)c=a.firstRowId_;else break;if(a.hiliteId(c))break}};
yU.prototype.hiliteId=function(a){var b=zU(this,a),c=this.rows_[b];return c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c)?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),-1!=b)};
yU.prototype.selectHilited=function(){var a=zU(this,this.hiliteId_);if(-1!=a){var b=this.rows_[a],c=this.selectionHandler_;if(c.activeElement_){var d=b.toString();if(c.multi_){var e=QWb(c,c.getValue(),c.getCursorPosition()),f=RWb(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||Zi(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(nu||lu)&&d.blur();d.value=f.join("");for(var h=0,k=0;k<=e;k++)h+=f[k].length;
d.focus();e=h;f=c.activeElement_;SWb(f)&&(f.selectionStart=e);f=c.activeElement_;SWb(f)&&(f.selectionEnd=e)}}else c.setValue(d);c.rowJustSelected_=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};
yU.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};var OWb=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(du(a.dismiss,a),100))};
yU.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var NWb=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(du(a.immediatelyCancelDelayedDismiss_,a),10)};yU.prototype.disposeInternal=function(){yU.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
yU.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
yU.prototype.renderRows=function(a,b){var c="object"==Oa(b)&&b;b=(c?c.getPreserveHilited():b)?zU(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[Ha(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&void 0!==c.getAutoHilite()&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||0<=b)&&0!=d.length&&
this.token_&&(0<=b?this.hiliteId(this.firstRowId_+b):PWb(this));this.dispatchEvent("suggestionsupdate")};var zU=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};yU.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};yU.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){fh(this.inputToAnchorMap_,Ha(c))},this)};yU.prototype.update=function(a){this.selectionHandler_.update(a)};
var TWb=function(a,b){var c=0,d=0;SWb(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},SWb=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};
var WWb=function(a,b,c,d,e,f){if(pu&&e)return UWb(a);if(e&&!d)return!1;if(!nu){"number"===typeof b&&(b=VWb(b));var h=17==b||18==b||pu&&91==b;if((!c||pu)&&h||pu&&16==b&&(d||f))return!1}if((ou||mu)&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(lu&&d&&b==a)return!1;switch(a){case 13:return nu?f||e?!1:!(c&&d):!0;case 27:return!(ou||mu||nu)}return nu&&(d||e||f)?!1:UWb(a)},UWb=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(ou||mu)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return nu;default:return!1}},VWb=function(a){if(nu)a=XWb(a);else if(pu&&ou)switch(a){case 93:a=91}return a},XWb=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};
var YWb=function(a,b,c,d){gD.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};hu(YWb,gD);
var AU=function(a,b){Uo.call(this);a&&this.attach(a,b)};hu(AU,Uo);g=AU.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var ZWb={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},$Wb={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},aXb=pu&&nu;g=AU.prototype;
g.handleKeyDown_=function(a){(ou||mu)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||pu&&91==this.lastKey_&&!a.metaKey)&&this.resetState();-1==this.lastKey_&&(a.ctrlKey&&17!=a.keyCode?this.lastKey_=17:a.altKey&&18!=a.keyCode?this.lastKey_=18:a.metaKey&&91!=a.keyCode&&(this.lastKey_=91));WWb(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=VWb(a.keyCode),aXb&&(this.altKey_=a.altKey)):this.handleEvent(a)};
g.resetState=function(){this.keyCode_=this.lastKey_=-1};g.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
g.handleEvent=function(a){var b=a.event_,c=b.altKey;if(lu&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(ou||mu)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&UWb(d)?b.charCode:0):("keypress"==a.type?(aXb&&(c=this.altKey_),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d=b.keyCode||this.keyCode_,e=b.charCode||0),pu&&63==e&&224==d&&(d=191));var f=d=VWb(d);d?63232<=
d&&d in ZWb?f=ZWb[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in $Wb&&(f=$Wb[b.keyIdentifier]);if(!nu||"keypress"!=a.type||WWb(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new YWb(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};g.getElement=function(){return this.element_};
g.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=Vo(this.element_,"keypress",this,b);this.keyDownKey_=Vo(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Vo(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(oD(this.keyPressKey_),oD(this.keyDownKey_),oD(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){AU.superClass_.disposeInternal.call(this);this.detach()};
var BU=function(a,b,c,d){$C.call(this);d=d||150;this.multi_=null!=c?c:!0;this.separators_=a||",;";this.defaultSeparator_=this.separators_.charAt(0);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$");this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=0<d?new MD(d):null;this.eh_=new WG(this);this.activateHandler_=new WG(this);this.keyHandler_=new AU;this.lastKeyCode_=-1};
hu(BU,$C);g=BU.prototype;g.activeElement_=null;g.lastValue_="";g.waitingForIme_=!1;g.rowJustSelected_=!1;g.getValue=function(){return this.activeElement_.value};g.setValue=function(a){this.activeElement_.value=a};g.getCursorPosition=function(){return TWb(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];CD(c)&&(TI(c,"combobox"),UI(c,"autocomplete","list"));this.eh_.listen(c,"focus",this.handleFocus);this.eh_.listen(c,"blur",this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(c,"keydown",this.onKeyDownOnInactiveElement_),CD(c))){var d=sD(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&bXb(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];CD(c)&&(c.removeAttribute("role"),c.removeAttribute("aria-autocomplete"));c==this.activeElement_&&this.handleBlur();this.eh_.unlisten(c,"focus",this.handleFocus);this.eh_.unlisten(c,"blur",this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(c,"keydown",this.onKeyDownOnInactiveElement_)}};
g.disposeInternal=function(){BU.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();yi(this.timer_)};
var dXb=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){PWb(a.ac_);b.preventDefault();return}if(!a.multi_){a.update(!0);b.preventDefault();return}break;case 38:if(a.ac_.isOpen()){a:{a=a.ac_;for(var c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>a.firstRowId_)c--;else break;if(a.hiliteId(c))break a}}b.preventDefault();return}break;case 9:if(!a.ac_.isOpen()||b.shiftKey)a.ac_.dismiss();else if(a.update(),a.ac_.selectHilited()&&a.preventDefaultOnTab_){b.preventDefault();return}break;case 13:if(a.ac_.isOpen()){if(a.update(),
a.ac_.selectHilited()){b.preventDefault();b.stopPropagation();return}}else a.ac_.dismiss();break;case 27:if(a.ac_.isOpen()){a.ac_.dismiss();b.preventDefault();b.stopPropagation();return}break;case 229:if(!a.waitingForIme_){a.waitingForIme_||(a.eh_.listen(a.activeElement_,"keyup",a.onKeyUp_),a.eh_.listen(a.activeElement_,"keypress",a.onKeyPress_),a.waitingForIme_=!0);return}}cXb(a,b)},cXb=function(a,b){var c=a.multi_&&b.charCode&&-1!=a.separators_.indexOf(String.fromCharCode(b.charCode));c&&a.update();
c&&a.ac_.selectHilited()&&b.preventDefault()};BU.prototype.handleKeyUp=function(){return!1};BU.prototype.handleFocus=function(a){bXb(this,a.target||null)};
var bXb=function(a,b){a.activateHandler_.removeAll();a.ac_&&NWb(a.ac_);b!=a.activeElement_&&(a.activeElement_=b,a.timer_&&(a.timer_.start(),a.eh_.listen(a.timer_,"tick",a.onTick_)),a.lastValue_=a.getValue(),a.keyHandler_.attach(a.activeElement_),a.eh_.listen(a.keyHandler_,"key",a.onKey_),a.eh_.listen(a.activeElement_,"mousedown",a.onMouseDown_),lu&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=BU.prototype;
g.handleBlur=function(){this.activeElement_&&(this.eh_.unlisten(this.keyHandler_,"key",this.onKey_),this.keyHandler_.detach(),this.eh_.unlisten(this.activeElement_,"keyup",this.handleKeyUp),this.eh_.unlisten(this.activeElement_,"mousedown",this.onMouseDown_),lu&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&eXb(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&OWb(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&dXb(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&eXb(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&eXb(this)};g.onMouseDown_=function(){};
var eXb=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};BU.prototype.onIeKeyPress_=function(a){cXb(this,a)};
BU.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=RWb(this,b)[QWb(this,b,a)];a=this.trimmer_?String(a).replace(this.trimmer_,""):a;this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()))}this.lastValue_=this.getValue()}this.rowJustSelected_=!1};
var QWb=function(a,b,c){a=RWb(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;d<a.length&&e<=c;d++)e+=a[d].length,b=d;return b},RWb=function(a,b){if(!a.multi_)return[b];b=String(b).split("");for(var c=[],d=[],e=0,f=!1;e<b.length;e++)a.literals_&&-1!=a.literals_.indexOf(b[e])?(f||(c.push(d.join("")),d.length=0),d.push(b[e]),f=!f):f||-1==a.separators_.indexOf(b[e])?d.push(b[e]):(d.push(b[e]),c.push(d.join("")),d.length=0);c.push(d.join(""));return c};
var fXb=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},gXb=function(a){return a.classList?a.classList:fXb(a).match(/\S+/g)||[]},hXb=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},iXb=function(a,b){return a.classList?a.classList.contains(b):wa(gXb(a),b)},jXb=function(a,b){if(a.classList)a.classList.add(b);else if(!iXb(a,b)){var c=fXb(a);hXb(a,c+(0<c.length?" "+b:b))}},CU=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){jXb(a,e)});else{var c={};Array.prototype.forEach.call(gXb(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=0<b.length?" "+d:d;hXb(a,b)}},kXb=function(a,b){a.classList?a.classList.remove(b):iXb(a,b)&&hXb(a,Array.prototype.filter.call(gXb(a),function(c){return c!=b}).join(" "))},lXb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){kXb(a,c)}):hXb(a,Array.prototype.filter.call(gXb(a),function(c){return!wa(b,c)}).join(" "))};
var mXb=function(a,b,c){$C.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=du(this.doAction_,this)};hu(mXb,$C);g=mXb.prototype;g.id_=0;g.disposeInternal=function(){mXb.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};g.start=function(a){this.stop();this.id_=ND(this.callback_,void 0!==a?a:this.interval_)};g.stop=function(){this.isActive()&&OD(this.id_);this.id_=0};g.isActive=function(){return 0!=this.id_};
g.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};
var nXb=function(a,b){if(b&&a in b)return a;var c=ou?"Webkit":nu?"Moz":lu?"ms":null;return c?(c=c.toLowerCase(),a=c+Pk(a),void 0===b||a in b?a:null):null};
var DU=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=DU.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new DU(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof DU?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.expand=function(a,b,c,d){Ga(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.translate=function(a,b){a instanceof Wq?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,"number"===typeof b&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};
var EU=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};EU.prototype.clone=function(){return new EU(this.left,this.top,this.width,this.height)};var QSa=function(a){return new EU(a.left,a.top,a.right-a.left,a.bottom-a.top)};
EU.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 oXb=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 EU(c,e,d-c,a-e)}return null};
g=EU.prototype;g.contains=function(a){return a instanceof Wq?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};g.getSize=function(){return new qD(this.width,this.height)};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.translate=function(a,b){a instanceof Wq?(this.left+=a.x,this.top+=a.y):(this.left+=a,"number"===typeof b&&(this.top+=b));return this};g.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};
var FU=function(a,b){var c=sD(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Hp=function(a,b){return FU(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Zq=function(a,b,c){if(b instanceof Wq){var d=b.x;b=b.y}else d=b,b=c;a.style.left=GU(d,!1);a.style.top=GU(b,!1)},pXb=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},qXb=function(a){if(lu&&!(8<=
Number(su)))return a.offsetParent;var b=sD(a),c=Hp(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Hp(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},Uq=function(a){for(var b=new DU(0,Infinity,Infinity,0),c=cp(a),d=c.document_.body,e=c.document_.documentElement,f=xD(c.document_);a=
qXb(a);)if(!(lu&&0==a.clientWidth||ou&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Hp(a,"overflow")){var h=HU(a),k=new Wq(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=
b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},tXb=function(a,b){b=b||xD(document);var c=b||xD(document);var d=HU(a),e=HU(c),f=rXb(c);if(c==xD(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;!lu||10<=Number(su)||(h+=f.left,d+=f.top)}else h=d.x-e.x-f.left,d=d.y-e.y-f.top;a=sXb(a);f=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-f,0));c=new Wq(e,k);b.scrollLeft=c.x;b.scrollTop=c.y},HU=function(a){var b=
sD(a),c=new Wq(0,0);var d=b?sD(b):document;d=!lu||9<=Number(su)||vD(cp(d).document_)?d.documentElement:d.body;if(a==d)return c;a=pXb(a);b=yD(cp(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},RSa=function(a,b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new Wq(0,0),f=zD(sD(d));if(qib(f,"parent")){var h=d;do{if(f==c)var k=HU(h);else k=pXb(h),k=new Wq(k.left,k.top);e.x+=k.x;e.y+=k.y}while(f&&f!=c&&f!=f.parent&&(h=f.frameElement)&&(f=f.parent))}d=Xq(e,HU(d));!lu||
9<=Number(su)||vD(b.document_)||(d=Xq(d,yD(b.document_)));a.left+=d.x;a.top+=d.y}},uXb=function(a,b,c){if(b instanceof qD)c=b.height,b=b.width;else if(void 0==c)throw Error("Ud");a.style.width=GU(b,!0);a.style.height=GU(c,!0)},GU=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Yq=function(a){var b=sXb;if("none"!=Hp(a,"display"))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},sXb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=ou&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=pXb(a),new qD(a.right-a.left,a.bottom-a.top)):new qD(b,c)},Tq=function(a){var b=HU(a);a=Yq(a);return new EU(b.x,b.y,a.width,a.height)},vXb=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="+100*Number(b)+")")},IU=function(a,b){a.style.display=b?"":"none"},wXb=function(a){return"rtl"==
Hp(a,"direction")},xXb=nu?"MozUserSelect":ou||mu?"WebkitUserSelect":null,yXb=function(a){var b=a.getElementsByTagName("*");if(xXb){var c="none";a.style&&(a.style[xXb]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&(d.style[xXb]=c)}}else if(lu&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},VSa=function(a,b){var c=vD(cp(sD(a)).document_);if(!lu||ru("10")||c){var d=a.style;nu?d.MozBoxSizing="border-box":ou?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";
d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else d=a.style,c?(c=zXb(a,"padding"),a=rXb(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)},AXb=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+b},BXb=function(a,
b){return(b=a.currentStyle?a.currentStyle[b]:null)?AXb(a,b):0},zXb=function(a,b){if(lu){var c=BXb(a,b+"Left"),d=BXb(a,b+"Right"),e=BXb(a,b+"Top");a=BXb(a,b+"Bottom");return new DU(e,d,a,c)}c=FU(a,b+"Left");d=FU(a,b+"Right");e=FU(a,b+"Top");a=FU(a,b+"Bottom");return new DU(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))},CXb={thin:2,medium:4,thick:6},DXb=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in
CXb?CXb[b]:AXb(a,b)},rXb=function(a){if(lu&&!(9<=Number(su))){var b=DXb(a,"borderLeft"),c=DXb(a,"borderRight"),d=DXb(a,"borderTop");a=DXb(a,"borderBottom");return new DU(d,c,a,b)}b=FU(a,"borderLeftWidth");c=FU(a,"borderRightWidth");d=FU(a,"borderTopWidth");a=FU(a,"borderBottomWidth");return new DU(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
var EXb=function(){if(tib){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(ea()))?a[1]:"0"}return pu?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(ea()))?a[0].replace(/_/g,"."):"10"):wib?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ea()))?a[1]:""):xib||yib||zib?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ea()))?a[1].replace(/_/g,"."):""):""}();
var JU=function(a){return(a=a.exec(ea()))?a[1]:""},FXb=function(){if(Jib)return JU(/Firefox\/([0-9.]+)/);if(lu||mu||rib)return qu;if(Nib){if(oa()||ia("Macintosh")){var a=JU(/CriOS\/([0-9.]+)/);if(a)return a}return JU(/Chrome\/([0-9.]+)/)}if(Oib&&!oa())return JU(/Version\/([0-9.]+)/);if(Kib||Lib){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ea()))return a[1]+"."+a[2]}else if(Mib)return(a=JU(/Android\s+([0-9.]+)/))?a:JU(/Version\/([0-9.]+)/);return""}();
var PSa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=Hp(a,"position")){var c=HU(a);if(!b){b=wXb(a);var d;if(d=b){d=Oib&&0<=qa(FXb,10);var e;if(e=Aib)e=0<=qa(EXb,10);var f=Nib&&0<=qa(FXb,85);d=nu||d||e||f}b=d?-a.scrollLeft:b&&!Zna&&"visible"!=Hp(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Xq(c,new Wq(b,a.scrollTop))}}}return c||new Wq},SSa=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var h=0;if(d||0!=c)c&4?a.x-=b.width+(d?
d.right:0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;c=b;d=0;65==(f&65)&&(h.x<e.left||h.x>=e.right)&&(f&=-2);132==(f&132)&&(h.y<e.top||h.y>=e.bottom)&&(f&=-5);h.x<e.left&&f&1&&(h.x=e.left,d|=1);if(f&16){var k=h.x;h.x<e.left&&(h.x=e.left,d|=4);h.x+c.width>e.right&&(c.width=Math.min(e.right-h.x,k+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}h.x+c.width>e.right&&f&1&&(h.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(h.x<e.left?16:0)|
(h.x+c.width>e.right?32:0));h.y<e.top&&f&4&&(h.y=e.top,d|=2);f&32&&(k=h.y,h.y<e.top&&(h.y=e.top,d|=8),h.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-h.y,k+c.height-e.top),c.height=Math.max(c.height,0),d|=8));h.y+c.height>e.bottom&&f&4&&(h.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(h.y<e.top?64:0)|(h.y+c.height>e.bottom?128:0));e=d}else e=256;h=e}e=new EU(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;e.height=b.height;return{rect:e,status:h}},Vq=function(a,b){return(b&8&&wXb(a)?b^4:b)&
-9};
var KU=function(){};KU.instance_=void 0;KU.getInstance=function(){return KU.instance_?KU.instance_:KU.instance_=new KU};KU.prototype.nextId_=0;KU.prototype.idPrefix_="";KU.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Fq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};
var LU=function(a,b,c,d){Uo.call(this);this.parent_=a||document.body;this.dom_=cp(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=null!=d?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};hu(LU,Uo);LU.prototype.getElement=function(){return this.element_};
LU.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=fu();this.target_=c;this.rowDivs_=[];GXb(this)};LU.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,HXb(this,!1),IU(this.element_,!1))};LU.prototype.show=function(){this.visible_||(this.visible_=!0,HXb(this,!0),IU(this.element_,!0))};
var HXb=function(a,b){a.target_&&(UI(a.target_,"haspopup",b),UI(a.element_,"expanded",b),UI(a.target_,"expanded",b),b?UI(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),VI(a.target_,null)))};LU.prototype.isVisible=function(){return this.visible_};
var IXb=function(a,b){var c=0<=b&&b<a.rows_.length?a.rows_[b]:void 0,d=0<=b&&b<a.rowDivs_.length?a.rowDivs_[b]:void 0;a.dispatchEvent({type:"rowhilite",rowNode:d,row:c?c.data:null})&&(0<=a.hilitedRow_&&lXb(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(CU(d,["ac-active","active"]),a.target_&&VI(a.target_,d),tXb(d,a.element_)))};LU.prototype.hiliteId=function(a){if(-1==a)IXb(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){IXb(this,b);break}};
var JXb=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;CU(b,Ui(a.className).split(" "));TI(b,"listbox");b.id=Fq(KU.getInstance());a.dom_.appendChild(a.parent_,b);Vo(b,"click",a.handleClick_,!1,a);Vo(b,"mousedown",a.handleMouseDown_,!1,a);Vo(b,"mouseover",a.handleMouseOver_,!1,a)}},GXb=function(a){JXb(a);a.widthProvider_&&(a.element_.style.minWidth=a.widthProvider_.clientWidth-0+"px");a.maxWidthProvider_&&(a.element_.style.maxWidth=a.maxWidthProvider_.clientWidth-
0+"px");a.rowDivs_.length=0;a.dom_.removeChildren(a.element_);a.customRenderer_&&a.customRenderer_.render?a.customRenderer_.render(a,a.element_,a.rows_,a.token_):a.rows_.forEach(function(b){var c=this.token_,d=this.dom_.createDom("DIV",{className:"ac-row",id:Fq(KU.getInstance())});TI(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):ED(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,KXb(this,d,c));jXb(d,
"ac-row");this.rowDivs_.push(d);b=d;this.dom_.appendChild(this.element_,b)},a);0==a.rows_.length?a.dismiss():(a.show(),a.reposition(),yXb(a.element_))};
LU.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_;var b=this.rightAlign_?5:1;var c=this.element_,d=b^1,e=PSa(c),f=Tq(a),h=Uq(a);h&&f.intersection(QSa(h));RSa(f,cp(a),cp(c));a=Vq(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Wq(b,f.top+(a&1?f.height:0));a=Xq(a,e);if(f=Uq(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=Vq(c,d);d=Yq(c);b=d.clone();e=SSa(e,b,a,null,f,65);e.status&496||(f=e.rect,Zq(c,new Wq(f.left,
f.top)),b=e.rect.getSize(),USa(d,b)||VSa(c,b))}};LU.prototype.getTarget=function(){return this.target_||null};LU.prototype.disposeInternal=function(){this.element_&&(nD(this.element_,"click",this.handleClick_,!1,this),nD(this.element_,"mousedown",this.handleMouseDown_,!1,this),nD(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);yi(this.animation_);this.parent_=null;LU.superClass_.disposeInternal.call(this)};
var KXb=function(a,b,c){if(a.highlightAllTokens_||!a.wasHighlightedAtLeastOnce_)if(3==b.nodeType){var d=null;Array.isArray(c)&&1<c.length&&!a.highlightAllTokens_&&(d=c.slice(1));c=LXb(a,c);if(0!=c.length){var e=b.nodeValue,f=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=f.exec(e),q=0;k;)q++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,f.lastIndex)),h=f.lastIndex,k=f.exec(e);c.push(e.substring(h));if(1<c.length){d=a.highlightAllTokens_?q:1;for(e=0;e<d;e++)f=2*e,b.nodeValue=c[f],h=
a.dom_.createElement("B"),h.className=a.highlightedClassName,a.dom_.appendChild(h,a.dom_.createTextNode(c[f+1])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.dom_.createTextNode(""),h.nextSibling),b=h.nextSibling;b.nodeValue=c.slice(2*d).join("");a.wasHighlightedAtLeastOnce_=!0}else d&&KXb(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,KXb(a,b,c),b=d},LXb=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Zi(Yi(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(Un).join("|"):(c=AC(b),c=Un(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?Un(b[0]):"":/^\W/.test(b)||(c=Un(b));return c},MXb=function(a,b){for(;b&&b!=a.element_&&!iXb(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};LU.prototype.handleClick_=function(a){var b=MXb(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};LU.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
LU.prototype.handleMouseOver_=function(a){a=MXb(this,a.target);0<=a&&!(300>fu()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};
var MU=function(a,b,c,d,e,f,h,k,q,u){f=f||new BU(",;",'"');h=new LU(h||null,q||this,u);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;yU.call(this,this,h,f);this.inputHandler_=this.selectionHandler_;this.inputHandler_.ac_=this;this.contactStore_=a;this.addressBookId_=c;this.filter_=d||null;this.maxMatches_=e||15;this.ownsContactStore_=!!k};hu(MU,yU);
var OXb=function(a,b,c,d,e,f,h,k,q,u){b=new MU(null,b,void 0,f,c,d,e,void 0,void 0,h);TG(a);NXb.call(null,b,kWb(0,k,q,u));return b},PXb=function(a,b,c,d,e,f,h){b=new MU(null,b,void 0,f,c,d,e,void 0,void 0,h);NXb(b,TCa(a));return b},NXb=function(a,b){b.loadContactRows(nUb,function(){});QXb(a,b)};MU.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&yi(this.contactStore_);MU.superClass_.disposeInternal.call(this)};
var QXb=function(a,b){a.contactStore_=b;a.ownsContactStore_=!0;a.savedQuery_&&a.savedHandler_&&(a.currentRequest_=a.contactStore_.loadContactRows(a.savedQuery_,a.savedHandler_),a.savedQuery_=null,a.savedHandler_=null)};g=MU.prototype;g.savedQuery_=null;g.savedHandler_=null;g.inputHandler_=null;g.includeGroups_=!0;g.isRowDisabled=function(a){return!!a.rowDisabled};
g.requestMatchingRows=function(a,b,c){a={token:a,maxMatches:b,includeContacts:!0,includeGroups:this.includeGroups_,matchType:1,matchFieldList:lUb,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=du(this.handleAutoCompleteContacts_,this,c);if(a.token&&""!=a.token)this.contactStore_?(this.currentRequest_&&(this.currentRequest_.cancel(),this.currentRequest_=null),this.currentRequest_=this.contactStore_.loadContactRows(a,
c)):(this.savedQuery_=a,this.savedHandler_=c);else{b=new MT;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.response_=eu(c,d,b,null,a)}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){MU.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){MU.superClass_.dismiss.call(this)};
g.renderRow=function(a,b,c){b=b={displayName:a.data.text,newSection:!!(a.data.flags&1)};a=b.displayName;b=b.newSection;a=Lq('<div class="'+Mq("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Mq("goog-contacts-ui-autocomplete-new-section"):"")+'">'+tU(a)+"</div>");a=VCa(a);dp(c,a)};g.selectHilited=function(){var a=zU(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):MU.superClass_.selectHilited.call(this)};g.fireSelectionEvent=function(a){this.dispatchEvent(new RXb(a))};
var RXb=function(a){bD.call(this,"g");this.row=a};hu(RXb,bD);gu("createAutoComplete",function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){d&&(b=b+d+"/");b=kWb(TG(b),D,I,N);f&&b.loadContactRows(nUb,function(){});c=new MU(b,c,void 0,q,e,k,u,!0);c.attachInputs(tD(document,a));return c});
var NU=function(){this.eventHandler_=new WG(this);NU.prototype.addInput=NU.prototype.addInput;NU.prototype.removeInput=NU.prototype.removeInput;NU.prototype.setTarget=NU.prototype.setTarget},SXb=function(a,b){var c=new NU;c.create(a,b);return c};g=NU.prototype;
g.create=function(a,b){a=tD(document,a);this.acWidget_=b.contactStoreConfig?PXb(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):OXb(b.serverBase,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign,b.acd,b.onAuthError,b.tg);"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var c=b.onComplete;"function"===typeof c&&this.eventHandler_.listen(this.acWidget_,"update",function(d){d.row&&
c.call(da,d.target.getTarget())});this.addInput(a)};g.dispose=function(){bma(this.acWidget_,this.eventHandler_)};g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};
g.acWidget_=null;da._EmailAc_create=SXb;
var TXb=function(a,b){return new ip("/",a,void 0,void 0,void 0,void 0,b)};ip.prototype.setLocale=function(){};var UXb=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};UXb.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
ip.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Wd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)VXb(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ha(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(b in this.acWrappers_){a=this.acWrappers_[b];a=[].concat(v(a.pendingInputs.values()));for(var c=1;c<a.length;c++)nD(a[c],"focus",this.onTargetFocus_,!1,this)}};
var VXb=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=du(a.onCompleteCallback_,a);c.ua=a.useApiary_;c.acd=a.apiaryClientDeferred_;c.onAuthError=a.onAuthError_;c.tg=a.testGaia_;c.contactStoreConfig=a.contactStoreConfig_;for(var d in a.commonAcParams_)c[d]=a.commonAcParams_[d];a=[].concat(v(b.pendingInputs.values()));b.emailac=SXb(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=ip.prototype;
g.attachAutocomplete=function(a,b,c){a=tD(document,a);var d=b||{};b=Ha(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new UXb(d),this.acWrappers_[c]=e);d=e;c=a;d.emailac?d.emailac.addInput(c):d.pendingInputs.add(c);this.inputToAcWrapper_[b]=e;e.emailac||(this.emailAcInitialized_?VXb(this,e):Vo(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[Ha(a)];b&&b(a)};g.detachAutocomplete=function(a){a=tD(document,a);nD(a,"focus",this.onTargetFocus_,!1,this);var b=Ha(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};gu("goog.NewContactTools",ip);
gu("goog.NewContactTools.create",TXb);ip.prototype.setLocale=ip.prototype.setLocale;ip.prototype.attachAutocompleteTo=ip.prototype.attachAutocompleteTo;ip.prototype.initAutocomplete=ip.prototype.initAutocomplete;ip.prototype.attachAutocomplete=ip.prototype.attachAutocomplete;ip.prototype.detachAutocomplete=ip.prototype.detachAutocomplete;
var ZCa=function(a){this.rows_=a||[]};ZCa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+Un(a),"i"),h=0;h<d.length&&e.length<b;h++){var k=d[h];String(k).match(f)&&e.push(k)}0==e.length&&(e=WXb(a,b,d));c(a,e)};
var YCa=function(a,b,c){return WXb(b,c,a.rows_)},WXb=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(-1!=k.indexOf(h))q=parseInt((k.indexOf(h)/4).toString(),10);else for(var u=h.split(""),y=-1,D=10,I=0,N;N=u[I];I++)N=k.indexOf(N),N>y?(y=N-y-1,y>D-5&&(y=D-5),q+=y,y=N):(q+=D,D+=5);q<6*h.length&&d.push({str:f,score:q,index:e})}d.sort(function(L,S){var X=L.score-S.score;return 0!=X?X:L.index-S.index});a=[];for(I=0;I<b&&I<d.length;I++)a.push(d[I].str);
return a};
var OU=function(a,b,c,d){var e=this;this.activeSession=c;this.contactTools_=null;this.subscription=new T.Subscription;this.acReadyDeferred_=Nj();if(a.gapi){var f=a.gapi;f.load("client",function(){f.config.update("googleapis.config/auth/useFirstPartyAuth",!0);f.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var h="QA"===e.activeSession.getEnvironmentType();h&&f.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");var k="0",q=/\/u\/(\d+)\//.exec(b.absUrl());
q&&(k=q[1]);f.config.update("googleapis.config/sessionIndex",k);e.acReadyDeferred_.resolve(void 0);e.contactTools_=d.create(h);e.contactTools_.initAutocomplete()})}};OU.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
OU.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return $Ca(h,k,d.activeSession.getUserEmail(),c)},f=new T.Subscription;this.acReadyDeferred_.promise.then(function(){d.contactTools_&&(d.contactTools_.attachAutocomplete(a,{ac2:!0,groups:!0,extendedInterface:!1,filter:e,cacheBusting:[c]},b),f.add(function(){var h;null==(h=d.contactTools_)||h.detachAutocomplete(a)}))});return f};OU.\u0275fac=function(a){return new (a||OU)(t(mM),t(KK),t(qH),t(PU))};
OU.\u0275prov=hc({token:OU,factory:OU.\u0275fac,providedIn:"root"});var PU=function(){};PU.prototype.create=function(a){var b=new JT(no(jTb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"MINIMAL_DOMAIN","BUGANIZER",null,null,null,null,true,true],[]]')),c=b.getUserInfo();l(c,6,a?5:1);a=b.getExperiments();a=l(a,5,!0);a=l(a,1,!0);a=l(a,3,!0);l(a,2,!0);return TXb("xapi",b)};PU.\u0275fac=function(a){return new (a||PU)};
PU.\u0275prov=hc({token:PU,factory:PU.\u0275fac,providedIn:"root"});
var QU=function(a,b,c,d){qI.call(this);this.element=a;this.accessPolicyConverter=b;this.focusContacts=c;this.activeSession=d;this.autocompleteActive=new Vw;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};U(QU,qI);
QU.prototype.ngOnInit=function(){var a=this;this.$element.setAttribute("autocomplete","contact-autocomplete-username");this.$element.setAttribute("spellcheck","off");this.$element.setAttribute("aria-autocomplete","list");this.$element.setAttribute("role","combobox");this.$element.setAttribute("name","ac-workaround-"+DC());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=XXb(YXb(a.$element.value));a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));
a.$element.dispatchEvent(new Event("input"))};else if("MULTI"===this.fieldType)b=function(){for(var d="",e=[],f=a.$element,h=r(f.value.split(",")),k=h.next();!k.done;k=h.next())d+=k.value.trim(),d.match(/^[a-z0-9@\-\._\+]+$/i)?(e.push(XXb(d)),d=""):fTb.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=XXb(YXb(d)),e.push(d),d="");f.value=e.join(", ")+", ";a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));a.$element.dispatchEvent(new Event("input"))};else throw Error("Xd`"+
this.fieldType);var c=this.additionalContactsCallback();c=ZXb(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var $Xb=function(a){(0,T.timer)(150).pipe(fg(a.destroyed$)).subscribe(function(){var b=document.querySelector(".ac-renderer"),c;b=!!b&&"none"!==(null==(c=window.getComputedStyle(b))?void 0:c.display);a.autocompleteActive.emit(b)})},ZXb=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},YXb=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},XXb=function(a){a=a.trim();
","===sa(a)&&(a=a.slice(0,-1));a=Do(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};QU.\u0275fac=function(a){return new (a||QU)(C(sd),C(DT),C(OU),C(qH))};
QU.\u0275dir=w({type:QU,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&J("keydown",function(){return $Xb(b)},!1,vd)("mousedown",function(){return $Xb(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[ee]});var RU=function(){};RU.\u0275fac=function(a){return new (a||RU)};RU.\u0275mod=xc({type:RU});RU.\u0275inj=ic({imports:[ay]});
var aYb=["spanElement"],SU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};SU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};SU.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)+"...")};
SU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};SU.\u0275fac=function(a){return new (a||SU)};
SU.\u0275cmp=w({type:SU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&Ef(aYb,5);if(a&2){var c;Df(c=Gf())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Fc],decls:2,vars:2,consts:[[3,"matTooltip","innerHtml"],["spanElement",""]],template:function(a,b){a&1&&H(0,"span",0,1);a&2&&E("matTooltip",b.getTooltip())("innerHtml",b.displayString,Pd)},dependencies:[wF],encapsulation:2});
var TU=function(){};TU.\u0275fac=function(a){return new (a||TU)};TU.\u0275mod=xc({type:TU});TU.\u0275inj=ic({imports:[gH]});
var bYb=["popupField"],cYb=["fieldContent"],dYb=["popupOverlay"],eYb=["overlayContent"],uDa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},fYb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],UU=function(a,b,c,d,e,f,h,k){qI.call(this);this.cdr=a;this.element=b;this.overlay=c;this.viewContainerRef=d;this.dateFormatter=e;this.activeSession=f;this.constants=h;this.appEvents=k;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=this.displayValue=null;
this.textBuffer="";this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.showEnumTitle=!1;this.valueChange=new Vw;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession()};U(UU,qI);UU.\u0275dir=qI.\u0275dir;g=UU.prototype;
g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=sH(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,gYb(a),a.cdr.detectChanges())}));this.subscriptions.add(EOb(this.dateFormatter,function(){hYb(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){gYb(a)})};
g.ngOnDestroy=function(){qI.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&hYb(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return RA(SA(TA(ZA(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),fYb)};
var gYb=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},FDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();LDa(a);break;case 27:b.stopPropagation(),jp(a,b,!1,!0)}},DDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),LDa(a);break;case 27:b.stopPropagation(),jp(a,b,!1,!0)}},qDa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();jp(a,
b,!0,!1);break;case 27:b.stopPropagation(),jp(a,b,!1,!0)}},jp=function(a,b,c,d){if((null==b?0:b.target)&&"nodeName"in b.target&&"A"===b.target.nodeName||"ENUM"===a.type&&0===a.choices.length)null==b||b.stopPropagation();else{if(!c||a.disabled||a.readonly){if(a.isActive=!1,gYb(a),d){var e;null==(e=a.popupField)||e.nativeElement.focus()}}else if(a.appEvents.openEditField.next(a),a.isActive=!0,a.textBuffer=null!=a.value?String(a.value):"","DATE"==a.type&&(c=a.value,a.googDateValue=c?Qk(c):null),"ENUM"===
a.type&&Ci(a.enumMenuTrigger),"ENUM"!==a.type){iYb(a);var f=a.element.nativeElement;(0,T.fromEvent)(document,"click").pipe(uf(function(h){return!f.contains(h.target)}),Tf(),fg(a.overlayRef._detachments),fg(a.destroyed$)).subscribe(function(){jp(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};UU.prototype.schedule=function(a){var b=T.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
UU.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var hYb=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&kDb.has(b)){a.displayValue=KBb(b);break}var c=a.choices.find(function(d){return d.value==b});c?(a.displayValue=c.displayText,a.readonlyTooltip=c.altText||""):(a.displayValue=null,a.readonlyTooltip=null);break;case "BOOL":a.displayValue=b?"Yes":"No";a.readonlyTooltip=null;break;case "DATE":b?a.displayValue=a.dateFormatter.formatUserCalendar(Qk(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};UU.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=Rk(a)),"NUMERIC"===this.type&&""===a&&(a=null),Hi(this.value,a)?"ENUM"===this.type&&jp(this,null,!1,!0):(jp(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var LDa=function(a){if(void 0===a.type)throw Error("Yd");a.isUser&&(a.textBuffer=a.textBuffer.replace(/^[\s,]+|[\s,]+$/g,""));"NUMERIC"===a.type&&(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("Zd");default:ph(a.type,"FieldType")}};
UU.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);jp(this,null,!1,!0)};var iYb=function(a){gYb(a);var b=a.overlayRef.attach(new bB(a.popupOverlay,a.viewContainerRef)).rootNodes[0];a.schedule(function(){if("TEXT"===a.type||"NUMERIC"===a.type){var c=b.querySelector("textarea, input");c.focus();c.select()}else"DATE"===a.type&&b.querySelector(".goog-date-picker").focus()})};
UU.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};UU.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};UU.\u0275fac=function(a){return new (a||UU)(C(mI,2),C(sd),C(gB),C(Bf),C(AP),C(qH),C(RH),C(FK))};
UU.\u0275cmp=w({type:UU,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(Ef(pF,5),Ef(bYb,5),Ef(cYb,5),Ef(dYb,5),Ef(eYb,5));if(a&2){var c;Df(c=Gf())&&(b.enumMenuTrigger=c.first);Df(c=Gf())&&(b.popupField=c.first);Df(c=Gf())&&(b.fieldContent=c.first);Df(c=Gf())&&(b.popupOverlay=c.first);Df(c=Gf())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",user:"user",displayValueOverride:"displayValueOverride",isUser:"isUser",teamId:"teamId",
clearable:"clearable",choices:"choices",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},features:[Je([mI]),ee,Fc],decls:11,vars:5,consts:[[1,"bv2-issue-metadata-field"],["class","keep-focus-ring","role","button","tabindex","0","aria-haspopup","true",3,"class","bv2-disabled","bv2-readonly","matTooltip","click","keydown",4,"ngIf"],[3,"class","ngClass","matTooltip",4,"ngIf"],
[3,"user",4,"ngIf"],[1,"bv2-issue-metadata-footer"],["enumMenu","matMenu"],["matMenuContent",""],["popupOverlay",""],["role","button","tabindex","0","aria-haspopup","true",1,"keep-focus-ring",3,"matTooltip","click","keydown"],["popupField",""],[3,"class",4,"ngIf"],["class","bv2-editable-value",3,"matMenuTriggerFor","menuClosed",4,"ngIf"],["class","bv2-editable-value",4,"ngIf"],["field",""],[1,"bv2-editable-value",3,"matMenuTriggerFor","menuClosed"],[4,"ngTemplateOutlet"],[1,"bv2-editable-value"],
[1,"bv2-editable-value",3,"keydown","click"],["fieldContent",""],[4,"ngIf"],["class","issue-metadata-field-edit-icon",4,"ngIf"],["class","issue-metadata-field-dropdown-icon",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],["class","bv2-editfield-avatar",3,"email",4,"ngIf"],["class","bv2-metadata-field-value",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[1,"bv2-editfield-avatar",3,"email"],[1,"bv2-metadata-field-value"],[3,"email"],
["class","bv2-metadata-field-value",3,"maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled",4,"ngIf"],["class","bv2-edit-button",4,"ngIf"],[1,"bv2-metadata-field-value",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],[1,"issue-metadata-field-dropdown-icon"],["svgIcon","arrow-dropdown"],
[3,"ngClass","matTooltip"],[3,"class","click",4,"ngIf"],[1,"keep-focus-ring",3,"disabled","aria-label","model","modelChange"],[3,"click"],[3,"user"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled","click",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","matTooltip","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"disabled","click"],[1,"b-menu-item-check-mark"],
["svgIcon","done",1,"icon-s"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","matTooltip","click"],[3,"ngSwitch"],["overlayContent",""],[4,"ngSwitchCase"],[3,"click",4,"ngSwitchCase"],["class","bv2-text-field-edit",3,"click",4,"ngSwitchDefault"],[3,"required","date","dateSelectionChange","saveClicked","cancelClicked"],[1,"bv2-text-field-edit",3,"click"],[1,"bv2-text-edit-dialog-buttons"],["mat-flat-button","","color","primary",1,"gmat-button","medium","field-popup-button",3,"disabled",
"matTooltip","click"],["svgIcon","done"],["mat-stroked-button","","color","primary",1,"gmat-button","medium","field-popup-button",3,"matTooltip","click"],["svgIcon","close"],["spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","ngModelChange","keydown",4,"ngIf"],["spellcheck","false",3,"ngModel","ngModelChange","keydown"],["step","any","spellcheck","false",3,"ngModel","ngModelChange","keydown"],["spellcheck","false",3,"ngModel","bContactAutocomplete",
"ngModelChange","keydown","autocompleteActive",4,"ngIf"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive",4,"ngIf"],["spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete","ngModelChange","keydown","autocompleteActive"]],template:function(a,b){a&1&&(F(0,"div")(1,"div",0),M(2,sDa,7,14,"div",1),M(3,vDa,3,13,"div",2),
M(4,wDa,1,1,"b-availability-chip",3),H(5,"div",4),G(),F(6,"mat-menu",null,5),M(8,zDa,2,2,"ng-template",6),G(),M(9,NDa,6,7,"ng-template",null,7,Mf),G());a&2&&(B(1),pe("active",b.isActive&&!b.readonly&&!b.disabled),B(1),E("ngIf","BOOL"!==b.type),B(1),E("ngIf","BOOL"===b.type),B(1),E("ngIf",b.isUser&&b.value&&b.enableWaldoAvailability))},dependencies:[xR,Jx,Kx,Gx,Qx,Mx,Nx,Ox,QU,EP,Mg,py,vy,FB,hF,mF,kF,pF,jF,wF,BT,qR,SU,kS,zS,Ux],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var jYb={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},kYb=function(a){switch(null==a?void 0:a.type){case "ENUM":return"ENUM";case "DATE":return"DATE";case "TEXT":return"TEXT";case "NUMERIC":return"NUMERIC";default:return null}},VU=function(){};VU.\u0275fac=function(a){return new (a||VU)};VU.\u0275mod=xc({type:VU});VU.\u0275inj=ic({imports:[wS,pO,ay,RU,XP,Ky,wG,AF,qF,gH,CT,vS,CM,TU,AS]});
var WU=function(a){Z.call(this,a,-1,lYb)};U(WU,Z);g=WU.prototype;g.getAuthor=function(){return V(this,1)};g.getDescription=function(){return V(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getTimestamp=function(){return hj(this,4)};g.setTimestamp=function(a){return l(this,4,a)};g.hasTimestamp=function(){return gj(this,4)};var lYb=[5];
WU.prototype.toObject=function(){var a=null!=this?{author:n(p(this,1)),description:n(p(this,2)),pending:n(Xo(this,3)),timestamp:n(p(this,4)),affectedFilesList:n(lb(this,5))}:void 0;return a};WU.messageId="b.ChangelistDetailsResponse";
var nYb=function(a){Z.call(this,a,-1,mYb)};U(nYb,Z);var mYb=[1];nYb.prototype.toObject=function(){var a=null!=this?{changelistNumbersList:n(lb(this,1))}:void 0;return a};nYb.messageId="b.PendingChangelistsResponse";
var XU=function(a){this.executor=a};XU.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:nYb}).pipe(R(ODa))};XU.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:WU}).pipe(R(PDa))};XU.\u0275fac=function(a){return new (a||XU)(t(hI))};XU.\u0275prov=hc({token:XU,factory:XU.\u0275fac,providedIn:"root"});
var YU=function(a){this.changelistResources=a};YU.prototype.getPendingChangelistsForIssue=function(a){return(0,T.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};YU.prototype.getChangelistDetails=function(a){return(0,T.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};YU.\u0275fac=function(a){return new (a||YU)(t(XU))};YU.\u0275prov=hc({token:YU,factory:YU.\u0275fac,providedIn:"root"});
var ZU=function(a){qI.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new T.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(eg(function(c){return b.changelistApi.getChangelistDetails(c)}),bg({refCount:!0,bufferSize:1}));this.init=new T.ReplaySubject(1)};U(ZU,qI);ZU.\u0275dir=qI.\u0275dir;ZU.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(){a.init.next()})};
ZU.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};ZU.\u0275fac=function(a){return new (a||ZU)(C(XU))};
ZU.\u0275cmp=w({type:ZU,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[ee,Fc],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],[1,"card"],[3,"href"],["class","author",4,"ngIf"],[1,"description"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"author"],[3,"email","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&
1&&(F(0,"div",0)(1,"div",1),M(2,TDa,16,6,"ng-container",2),P(3,"async"),G()());a&2&&(B(2),E("ngIf",Q(3,1,b.changelist$)))},dependencies:[Kx,Gx,iS,CP,Tx],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 $U=function(){this.config=Object.assign({},new YLb,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};$U.prototype.ngOnInit=function(){};$U.\u0275fac=function(a){return new (a||$U)};
$U.\u0275cmp=w({type:$U,selectors:[["b-changelist-link"]],inputs:{changelistId:"changelistId"},decls:5,vars:5,consts:[["target","_blank",1,"bv2-metadata-link",3,"href","onedevHovercardTrigger","onedevHovercardConfig"],["card","onedevHovercard"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"],["cardBody",""]],template:function(a,b){a&1&&(F(0,"a",0),O(1),G(),F(2,"onedev-hovercard",null,1),M(4,UDa,2,2,"b-changelist-card",2),G());if(a&
2){var c=Fe(3);E("href","http://critique.corp.google.com/"+b.changelistId,Qd)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);ke("aria-label","Changelist"+b.changelistId);B(1);Ge(" ",b.changelistId,"\n")}},dependencies:[fN,gN,jN,hN,ZU],encapsulation:2});
var aV=function(){};aV.\u0275fac=function(a){return new (a||aV)};aV.\u0275mod=xc({type:aV});aV.\u0275inj=ic({imports:[ay,AS,QN,WP]});
var oYb=0,bV=function(a,b){qI.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new Vw;this.linkBlurred=new Vw;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new T.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+oYb;this.fetchedTeam$=this.providedTeamId$.pipe(Sf(),uf(function(d){return"0"!==d}),eg(function(d){return c.teamsService.getTeam(d)}),R(function(d){return d.getTeamId()!==
c.teamId?(new YL).setTeamId(c.teamId).setName(c.teamId).setDescription(""):d}),Pf(function(){return(0,T.of)((new YL).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(R(function(){return!0}),dg(!1));this.fetchedTeam$.pipe(fg(this.destroyed$)).subscribe(function(d){c.teamName=d.getName();c.teamDescription=d.getDescription();c.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+d.getTeamId()});oYb++};U(bV,qI);bV.\u0275dir=qI.\u0275dir;
g=bV.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){Yn(mo.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return Psa(this.componentId,"basic")};g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};bV.\u0275fac=function(a){return new (a||bV)(C(qH),C(bM))};
bV.\u0275cmp=w({type:bV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[ee,Fc],decls:21,vars:7,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,"routerLink","click"],["mat-button","",1,"gmat-button","primary","hovercard-action"],["target","_blank","aria-label","View component settings",3,"href","click"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label","View team association on component",3,"href","click",4,"ngIf"],["aria-label","View team association on component",
3,"href","click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),H(3,"img",3),F(4,"div",4)(5,"div",5),H(6,"mat-icon",6),O(7),G(),F(8,"div",7),O(9),G()()(),F(10,"p",8),O(11),G(),F(12,"div",9)(13,"a",10),J("click",function(){return b.trackClick("viewTeamSettingsPage")}),F(14,"button",11),O(15,"View team settings"),G()(),F(16,"a",12),J("click",function(){return b.trackClick("viewTeamInMoma")}),F(17,"button",11),O(18,"View team in Moma "),H(19,"mat-icon",13),G()(),M(20,VDa,3,1,"a",14),
G()()());a&2&&(B(3),ke("src",b.teamLogoUrl,Qd),B(4),Ge(" Team: ",b.teamName," "),B(2),Ge("Team ID: ",b.teamId,""),B(2),He(b.teamDescription),B(2),Ce("routerLink","/teams/",b.teamId,"/edit"),B(3),Ce("href","https://moma.corp.google.com/team/",b.teamId,"",Qd),B(4),E("ngIf",b.componentId))},dependencies:[Gx,hF,EI,FB],styles:[".card-description[_ngcontent-%COMP%]{line-height:1.3em;margin-bottom:.5em;margin-top:.25em;max-height:13em;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}mat-icon[_ngcontent-%COMP%]{vertical-align:middle}img[_ngcontent-%COMP%]{flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.hovercard-action-container[_ngcontent-%COMP%]{align-items:flex-start}.hovercard-action-container[_ngcontent-%COMP%]   .hovercard-action[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});
var cV=function(){};cV.\u0275fac=function(a){return new (a||cV)};cV.\u0275mod=xc({type:cV});cV.\u0275inj=ic({imports:[ay,AF,KI,wG]});
var pYb=0,dV=function(a){qI.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new T.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+pYb;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(Sf(),uf(function(c){return"0"!==c}),eg(function(c){return b.teamsService.getTeam(c)}),R(function(c){return c.getTeamId()!==b.teamId?(new YL).setTeamId(b.teamId).setName(b.teamId).setDescription(""):c}),
Pf(function(){return(0,T.of)((new YL).setTeamId(b.teamId).setName(b.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(R(function(){return!0}),dg(!1));this.fetchedTeam$.pipe(fg(this.destroyed$)).subscribe(function(c){b.teamName=c.getName()});pYb++};U(dV,qI);dV.\u0275dir=qI.\u0275dir;dV.prototype.ngOnInit=function(){};dV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};dV.prototype.trackClick=function(a){Yn(mo.TEAM_CARD,"click",a,1)};
dV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};dV.\u0275fac=function(a){return new (a||dV)(C(bM))};
dV.\u0275cmp=w({type:dV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[ee,Fc],decls:8,vars:6,consts:[[4,"ngIf","ngIfElse"],["card","onedevHovercard"],[3,"componentId","teamId"],["loading",""],["target","_blank","class","card-anchor",3,"href","onedevHovercardTrigger","click",4,"ngIf"],[3,"onedevHovercardTrigger",4,"ngIf"],["target","_blank",
1,"card-anchor",3,"href","onedevHovercardTrigger","click"],["svgIcon","pop-out",1,"icon-xs"],[3,"onedevHovercardTrigger"],["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(M(0,YDa,3,2,"ng-container",0),P(1,"async"),F(2,"onedev-hovercard",null,1),ve(4),H(5,"b-team-card",2),we(),G(),M(6,aEa,2,2,"ng-template",null,3,Mf));if(a&2){var c=Fe(7),d;E("ngIf","0"!=b.teamId&&Q(1,4,b.isTeamFetched$))("ngIfElse",c);B(5);E("componentId",null==b.componentId?
null:b.componentId.toString())("teamId",null!==(d=null==b.teamId?null:b.teamId.toString())&&void 0!==d?d:"0")}},dependencies:[Gx,hF,fN,jN,bV,Tx]});
var eV=function(){};eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275mod=xc({type:eV});eV.\u0275inj=ic({imports:[ay,AF,QN,cV]});
var qYb=new od("CDK_DRAG_CONFIG");
var rYb=new od("CDK_DRAG_PARENT");
var sYb=new od("CdkDragHandle"),fV=function(a,b){this.element=a;this._stateChanges=new T.Subject;this._disabled=!1;this._parentDrag=b};fV.prototype.ngOnDestroy=function(){this._stateChanges.complete()};oi.Object.defineProperties(fV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Yg(a);this._stateChanges.next(this)}}});fV.\u0275fac=function(a){return new (a||fV)(C(sd),C(rYb,12))};
fV.\u0275dir=w({type:fV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Je([{provide:sYb,useExisting:fV}])]});
var tYb=new od("CdkDragPlaceholder");
var uYb=new od("CdkDragPreview");
var vYb=new od("CdkDropListGroup");
var wYb=Rg({passive:!1,capture:!0}),gV=function(a,b){var c=this;this._ngZone=a;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=[];this._globalListeners=new Map;this._draggingPredicate=function(d){return d.isDragging()};this.pointerMove=new T.Subject;this.pointerUp=new T.Subject;this.scroll=new T.Subject;this._preventDefaultWhileDragging=function(d){0<c._activeDragInstances.length&&d.preventDefault()};this._persistentTouchmoveListener=function(d){0<c._activeDragInstances.length&&
(c._activeDragInstances.some(c._draggingPredicate)&&d.preventDefault(),c.pointerMove.next(d))};this._document=b},xYb=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},yYb=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,wYb)})},AYb=function(a,b){a._dragInstances.delete(b);zYb(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
wYb)};
gV.prototype.startDragging=function(a,b){var c=this;-1<this._activeDragInstances.indexOf(a)||(this._activeDragInstances.push(a),1===this._activeDragInstances.length&&(a=b.type.startsWith("touch"),this._globalListeners.set(a?"touchend":"mouseup",{handler:function(d){return c.pointerUp.next(d)},options:!0}).set("scroll",{handler:function(d){return c.scroll.next(d)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:wYb}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:wYb}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var zYb=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};gV.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
gV.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new T.Observable(function(d){return b._ngZone.runOutsideAngular(function(){var e=function(f){b._activeDragInstances.length&&d.next(f)};a.addEventListener("scroll",e,!0);return function(){a.removeEventListener("scroll",e,!0)}})}));return T.merge.apply(null,v(c))};
gV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return AYb(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};gV.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};gV.\u0275fac=function(a){return new (a||gV)(t(mg),t(mi))};
gV.\u0275prov=hc({token:gV,factory:gV.\u0275fac,providedIn:"root"});
var iEa=0;
var hV=function(a){this._document=a;this.positions=new Map};hV.prototype.clear=function(){this.positions.clear()};hV.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:bEa(c)})})};
var BYb=function(a,b){var c=Wg(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,h=b.left-d;a.positions.forEach(function(k,q){k.clientRect&&c!==q&&c.contains(q)&&kp(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};hV.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};
var CYb=Rg({passive:!0}),DYb=Rg({passive:!1}),kEa=new Set(["position"]),iV=function(a,b,c,d,e,f){var h=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=!1;this._moveEvents=new T.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=T.Subscription.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=
!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.dragStartDelay=0;this._disabled=!1;this.beforeStarted=new T.Subject;this.started=new T.Subject;this.released=new T.Subject;this.ended=new T.Subject;this.entered=new T.Subject;this.exited=new T.Subject;this.dropped=new T.Subject;this.moved=this._moveEvents;this._pointerDown=function(k){h.beforeStarted.next();if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||h._initializeDragSequence(q,
k)}else h.disabled||h._initializeDragSequence(h._rootElement,k)};this._pointerMove=function(k){var q=h._getPointerPositionOnPage(k);if(h._hasStartedDragging){k.preventDefault();var u=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(u);h._dropContainer?h._updateActiveDropContainer(u,q):(q=h._activeTransform,q.x=u.x-h._pickupPositionOnPage.x+h._passiveTransform.x,q.y=u.y-h._pickupPositionOnPage.y+h._passiveTransform.y,h._applyRootElementTransform(q.x,
q.y));h._moveEvents.observers.length&&h._ngZone.run(function(){h._moveEvents.next({source:h,pointerPosition:u,event:k,distance:h._getDragDistance(u),delta:h._pointerDirectionDelta})})}else if(Math.abs(q.x-h._pickupPositionOnPage.x)+Math.abs(q.y-h._pickupPositionOnPage.y)>=h._config.dragStartThreshold){q=Date.now()>=h._dragStartTime+h._getDragStartDelay(k);var y=h._dropContainer;q?y&&(y.isDragging()||0<y._activeSiblings.size)||(k.preventDefault(),h._hasStartedDragging=!0,h._ngZone.run(function(){return h._startDragSequence(k)})):
h._endDragSequence(k)}};this._pointerUp=function(k){h._endDragSequence(k)};this._nativeDragStart=function(k){if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||k.preventDefault()}else h.disabled||k.preventDefault()};EYb(FYb(this,a),b.parentDragRef||null);this._parentPositions=new hV(c);yYb(f,this)};iV.prototype.getPlaceholderElement=function(){return this._placeholder};iV.prototype.getRootElement=function(){return this._rootElement};
var GYb=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},HYb=function(a,b){a._handles=b.map(function(d){return $g(d)});a._handles.forEach(function(d){return lp(d,a.disabled)});a._toggleNativeDragInteractions();var c=new Set;a._disabledHandles.forEach(function(d){-1<a._handles.indexOf(d)&&c.add(d)});a._disabledHandles=c},FYb=function(a,b){var c=$g(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,DYb);c.addEventListener("touchstart",a._pointerDown,CYb);c.addEventListener("dragstart",a._nativeDragStart,DYb)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},IYb=function(a,b){a._boundaryElement=b?$g(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},EYb=function(a,b){a._parentDragRef=b};g=iV.prototype;
g.dispose=function(){this._removeRootElementListeners(this._rootElement);if(this.isDragging()){var a;null==(a=this._rootElement)||a.remove()}var b;null==(b=this._anchor)||b.remove();this._destroyPreview();this._destroyPlaceholder();AYb(this._dragDropRegistry,this);this._removeSubscriptions();this.beforeStarted.complete();this.started.complete();this.released.complete();this.ended.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this._moveEvents.complete();this._handles=
[];this._disabledHandles.clear();this._dropContainer=void 0;this._resizeSubscription.unsubscribe();this._parentPositions.clear();this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null};g.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)};
g.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};g.withDirection=function(a){this._direction=a;return this};g._withDropContainer=function(a){this._dropContainer=a};g.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};
g._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};g._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe()};g._destroyPreview=function(){var a;null==(a=this._preview)||a.remove();var b;null==(b=this._previewRef)||b.destroy();this._preview=this._previewRef=null};
g._destroyPlaceholder=function(){var a;null==(a=this._placeholder)||a.remove();var b;null==(b=this._placeholderRef)||b.destroy();this._placeholder=this._placeholderRef=null};
g._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),zYb(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();
zYb(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();zYb(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){op(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var b=this._dropContainer;if(b){var c=this._rootElement,d=c.parentNode,e=this._placeholder=this._createPlaceholderElement(),f=this._anchor=this._anchor||this._document.createComment(""),h=this._getShadowRoot();d.insertBefore(f,c);this._initialTransform=c.style.transform||"";this._preview=this._createPreviewElement();lEa(c,!1);this._document.body.appendChild(d.replaceChild(e,c));this._getPreviewInsertionPoint(d,
h).appendChild(this._preview);this.started.next({source:this,event:a});b.start();this._initialContainer=b;this._initialIndex=JYb(b,this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(b?b._scrollableElements:[])};
g._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=op(b),f=!e&&0!==b.button,h=this._rootElement,k=Wg(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?ji(b):ii(b);k&&k.draggable&&"mousedown"===b.type&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=
!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(u){return c._updateOnScroll(u)}),this._boundaryElement&&(this._boundaryRect=bEa(this._boundaryElement)),this._pickupPositionInElement=(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,
y:0}:this._getPointerPositionInElement(a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
g._cleanupDragArtifacts=function(a){var b=this;lEa(this._rootElement,!0);this._anchor.parentNode.replaceChild(this._rootElement,this._anchor);this._destroyPreview();this._destroyPlaceholder();this._boundaryRect=this._previewRect=this._initialTransform=void 0;this._ngZone.run(function(){var c=b._dropContainer,d=JYb(c,b),e=b._getPointerPositionOnPage(a),f=b._getDragDistance(e),h=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,currentIndex:d,
previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:h,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,h,f,e);b._dropContainer=b._initialContainer})};
g._updateActiveDropContainer=function(a,b){var c=this,d=a.x,e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?c._initialIndex:
void 0);c.entered.next({item:c,container:f,currentIndex:JYb(f,c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
g._createPreviewElement=function(){var a=this._previewTemplate,b=this.previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._rootElement.getBoundingClientRect():null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=pEa(c,this._document);this._previewRef=c;a.matchSize?qEa(e,d):e.style.transform=np(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=this._rootElement,e=hEa(a),qEa(e,a.getBoundingClientRect()),this._initialTransform&&(e.style.transform=
this._initialTransform);jEa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},kEa);lp(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};
g._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=oEa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||Wg(h)===a._preview&&"transform"===h.propertyName){var k;null==(k=a._preview)||k.removeEventListener("transitionend",
e);d();clearTimeout(f)}},f=setTimeout(e,1.5*c);a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=pEa(this._placeholderRef,this._document)):a=hEa(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
g._getPointerPositionInElement=function(a,b){var c=this._rootElement.getBoundingClientRect();a=(a=a===this._rootElement?null:a)?a.getBoundingClientRect():c;b=op(b)?b.targetTouches[0]:b;var d=this._getViewportScrollPosition();return{x:a.left-c.left+(b.pageX-a.left-d.left),y:a.top-c.top+(b.pageY-a.top-d.top)}};
g._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=op(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
g._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this):a;a=c.x;c=c.y;if("x"===this.lockAxis||"x"===b)c=this._pickupPositionOnPage.y;else if("y"===this.lockAxis||"y"===b)a=this._pickupPositionOnPage.x;if(this._boundaryRect){var d=this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),h=d.top+e;e=d.bottom-(f.height-e);a=Math.max(d.left+b,Math.min(d.right-
(f.width-b),a));c=Math.max(h,Math.min(e,c))}return{x:a,y:c}};g._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
g._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=0<this._handles.length||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,lp(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,DYb);a.removeEventListener("touchstart",this._pointerDown,CYb);a.removeEventListener("dragstart",this._nativeDragStart,DYb)};
g._applyRootElementTransform=function(a,b){a=np(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=mp(a,this._initialTransform)};g._applyPreviewTransform=function(a,b){var c,d=(null==(c=this._previewTemplate)?0:c.template)?void 0:this._initialTransform;this._preview.style.transform=mp(np(a,b),d)};g._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};
g._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
g._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(0===b&&0===a||this.isDragging())&&this._boundaryElement){var c=this._boundaryElement.getBoundingClientRect(),d=this._rootElement.getBoundingClientRect();if(!(0===c.width&&0===c.height||0===d.width&&0===d.height)){var e=c.left-d.left,f=d.right-c.right,h=c.top-d.top,k=d.bottom-c.bottom;c.width>d.width?(0<e&&(b+=e),0<f&&(b-=f)):b=0;c.height>d.height?(0<h&&(a+=h),0<k&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return"number"===typeof b?b:op(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=BYb(this._parentPositions,a);b&&(a=Wg(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&kp(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
g._getViewportScrollPosition=function(){var a;return(null==(a=this._parentPositions.positions.get(this._document))?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};g._getShadowRoot=function(){void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Ug(this._rootElement));return this._cachedShadowRoot};
g._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return"parent"===c?a:"global"===c?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):$g(c)};g._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect());return this._previewRect};
g._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};oi.Object.defineProperties(iV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=Yg(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return lp(c,b)}))}}});
var jV=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.autoScrollDisabled=this.sortingDisabled=this.disabled=!1;this.autoScrollStep=2;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new T.Subject;this.entered=new T.Subject;this.exited=new T.Subject;this.dropped=new T.Subject;this.sorted=new T.Subject;this._isDragging=!1;this._itemPositions=[];this._previousSwap={drag:null,delta:0,overlaps:!1};this._draggables=
[];this._siblings=[];this._orientation="vertical";this._activeSiblings=new Set;this._direction="ltr";this._viewportScrollSubscription=T.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new T.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,T.interval)(0,T.animationFrameScheduler).pipe(fg(f._stopScrollTimers)).subscribe(function(){var h=f._scrollNode,k=f.autoScrollStep;1===f._verticalScrollDirection?
h.scrollBy(0,-k):2===f._verticalScrollDirection&&h.scrollBy(0,k);1===f._horizontalScrollDirection?h.scrollBy(-k,0):2===f._horizontalScrollDirection&&h.scrollBy(k,0)})};this.element=$g(a);this._document=c;KYb(this,[this.element]);xYb(b,this);this._parentPositions=new hV(c)};g=jV.prototype;
g.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};g.isDragging=function(){return this._isDragging};g.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};
g.enter=function(a,b,c,d){this._draggingStarted();null==d&&(d=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===d&&(d=this._getItemIndexFromPointerPosition(a,b,c)));var e=this._activeDraggables,f=e.indexOf(a),h=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(null==d||-1===d||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);-1<f&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(h,b),e.splice(d,0,a)):($g(this.element).appendChild(h),
e.push(a));h.style.transform="";this._cacheItemPositions();this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:JYb(this,a)})};g.exit=function(a){this._reset();this.exited.next({item:a,container:this})};g.drop=function(a,b,c,d,e,f,h){var k=void 0===k?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:h,event:k})};
var LYb=function(a,b){var c=a._draggables;a._draggables=b;b.forEach(function(d){return d._withDropContainer(a)});a.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return-1===b.indexOf(d)})?a._reset():a._cacheItems())};jV.prototype.withDirection=function(a){this._direction=a;return this};jV.prototype.connectedTo=function(a){this._siblings=a.slice();return this};
var MYb=function(a,b){a._orientation=b},KYb=function(a,b){var c=$g(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(v(b)):b.slice()},JYb=function(a,b){return a._isDragging?("horizontal"===a._orientation&&"rtl"===a._direction?a._itemPositions.slice().reverse():a._itemPositions).findIndex(function(c){return c.drag===b}):a._draggables.indexOf(b)};g=jV.prototype;
g._sortItem=function(a,b,c,d){if(!this.sortingDisabled&&this._clientRect&&dEa(this._clientRect,b,c)){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(!(-1===f&&0<e.length)){var h="horizontal"===this._orientation,k=e.findIndex(function(L){return L.drag===a}),q=e[f],u=q.clientRect,y=k>f?1:-1,D=this._getItemOffsetPx(e[k].clientRect,u,y),I=this._getSiblingOffsetPx(k,e,y),N=e.slice();pp(e,k,f);this.sorted.next({previousIndex:k,currentIndex:f,container:this,item:a});e.forEach(function(L,
S){if(N[S]!==L){var X=L.drag===a;S=X?D:I;X=X?a.getPlaceholderElement():L.drag.getRootElement();L.offset+=S;h?(X.style.transform=mp("translate3d("+Math.round(L.offset)+"px, 0, 0)",L.initialTransform),kp(L.clientRect,0,S)):(X.style.transform=mp("translate3d(0, "+Math.round(L.offset)+"px, 0)",L.initialTransform),kp(L.clientRect,S,0))}});this._previousSwap.overlaps=cEa(u,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y}}};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,u){if(u!==c._document&&q.clientRect&&!k&&dEa(q.clientRect,a,b)){var y=q.clientRect;q=rEa(y,b);y=sEa(y,a);var D=0,I=0;if(q){var N=u.scrollTop;1===q?0<N&&(D=1):u.scrollHeight-N>u.clientHeight&&(D=2)}y&&(q=u.scrollLeft,1===y?0<q&&(I=1):u.scrollWidth-q>u.clientWidth&&(I=2));q=r([D,I]);d=q.next().value;e=q.next().value;if(d||e)k=u}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),
h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=rEa(h,b);e=sEa(h,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};g._stopScrolling=function(){this._stopScrollTimers.next()};
g._draggingStarted=function(){var a=$g(this.element).style;this.beforeStarted.next();this._isDragging=!0;this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"";a.scrollSnapType=a.msScrollSnapType="none";this._cacheItems();this._viewportScrollSubscription.unsubscribe();this._listenToScrollEvents()};g._cacheParentPositions=function(){var a=$g(this.element);this._parentPositions.cache(this._scrollableElements);this._clientRect=this._parentPositions.positions.get(a).clientRect};
g._cacheItemPositions=function(){var a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(b){var c=GYb(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:bEa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};
g._reset=function(){var a=this;this._isDragging=!1;var b=$g(this.element).style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._activeDraggables.forEach(function(c){var d=c.getRootElement();if(d){var e,f=null==(e=a._itemPositions.find(function(h){return h.drag===c}))?void 0:e.initialTransform;d.style.transform=f||""}});this._siblings.forEach(function(c){return c._stopReceiving(a)});this._activeDraggables=[];this._itemPositions=[];this._previousSwap.drag=null;this._previousSwap.delta=
0;this._previousSwap.overlaps=!1;this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};g._getSiblingOffsetPx=function(a,b,c){var d="horizontal"===this._orientation,e=b[a].clientRect;a=b[a+-1*c];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=-1===c?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._getItemOffsetPx=function(a,b,c){var d="horizontal"===this._orientation,e=d?b.left-a.left:b.top-a.top;-1===c&&(e+=d?b.width-a.width:b.height-a.height);return e};g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d="horizontal"===this._orientation;if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f="horizontal"===this._orientation,h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var u=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&u===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return-1!==h&&this.sortPredicate(h,a,this)?h:-1};
g._cacheItems=function(){this._activeDraggables=this._draggables.slice();this._cacheItemPositions();this._cacheParentPositions()};g._isOverContainer=function(a,b){return null!=this._clientRect&&cEa(this._clientRect,a,b)};g._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};
g._canReceive=function(a,b,c){if(!this._clientRect||!cEa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=$g(this.element);return a===b||b.contains(a)};g._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||-1<c._draggables.indexOf(e)})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents())};
g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe()};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){if(a.isDragging()){var c=BYb(a._parentPositions,b);c&&(a._itemPositions.forEach(function(d){kp(d.clientRect,c.top,c.left)}),a._itemPositions.forEach(function(d){d=d.drag;a._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()}))}else 0<a._activeSiblings.size&&a._cacheParentPositions()})};
g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Ug($g(this.element))||this._document);return this._cachedShadowRoot};g._notifyReceivingSiblings=function(){var a=this,b=this._activeDraggables.filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};
var NYb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},kV=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d},OYb=function(a,b,c){c=void 0===c?NYb:c;return new iV(b,c,a._document,a._ngZone,a._viewportRuler,a._dragDropRegistry)};kV.\u0275fac=function(a){return new (a||kV)(t(mi),t(mg),t(KA),t(gV))};kV.\u0275prov=hc({token:kV,factory:kV.\u0275fac,providedIn:"root"});
var PYb=0,QYb=new od("CdkDropList"),lV=function(a,b,c,d,e,f,h){var k=this;this.element=a;this._changeDetectorRef=c;this._scrollDispatcher=d;this._dir=e;this._group=f;this._destroyed=new T.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+PYb++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Vw;this.entered=new Vw;this.exited=new Vw;this.sorted=new Vw;this._unsortedItems=new Set;this._dropListRef=new jV(a,b._dragDropRegistry,b._document,b._ngZone,
b._viewportRuler);this._dropListRef.data=this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,u){return k.enterPredicate(q.data,u.data)};this._dropListRef.sortPredicate=function(q,u,y){return k.sortPredicate(q,u.data,y.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);RYb.push(this);f&&f._items.add(this)};lV.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
lV.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var SYb=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return GYb(b._dragRef).compareDocumentPosition(GYb(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=lV.prototype;
g.ngOnDestroy=function(){var a=RYb.indexOf(this);-1<a&&RYb.splice(a,1);this._group&&this._group._items.delete(this);this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
g._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(dg(this._dir.value),fg(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Xg(b.connectedTo).map(function(e){return"string"===typeof e?RYb.find(function(f){return f.id===e}):e});b._group&&b._group._items.forEach(function(e){-1===c.indexOf(e)&&c.push(e)});if(!b._scrollableParentsResolved){var d=Cpb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
KYb(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=Yg(b.sortingDisabled);a.autoScrollDisabled=Yg(b.autoScrollDisabled);a.autoScrollStep=ah(b.autoScrollStep,2);MYb(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
g._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef();b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:b,item:c.item.data,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:b,item:c.item.data});b._changeDetectorRef.markForCheck()});a.sorted.subscribe(function(c){b.sorted.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,container:b,item:c.item.data})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,
currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,item:c.item.data,isPointerOverContainer:c.isPointerOverContainer,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=null==c?!1:c;this.sortingDisabled=null==d?!1:d;this.autoScrollDisabled=null==e?!1:e;this.orientation=a||"vertical";b&&(this.lockAxis=b)};g._syncItemsWithRef=function(){LYb(this._dropListRef,SYb(this).map(function(a){return a._dragRef}))};
oi.Object.defineProperties(lV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=Yg(a)}}});var RYb=[];lV.\u0275fac=function(a){return new (a||lV)(C(sd),C(kV),C(zx),C(GA),C(vA,8),C(vYb,12),C(qYb,8))};
lV.\u0275dir=w({type:lV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(ke("id",b.id),pe("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",0<b._dropListRef._activeSiblings.size))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis",
"lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},
exportAs:["cdkDropList"],features:[Je([{provide:vYb,useValue:void 0},{provide:QYb,useExisting:lV}])]});
var mV=function(a,b,c,d,e,f,h,k,q,u,y){var D=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=u;this._parentDrag=y;this._destroyed=new T.Subject;this.started=new Vw;this.released=new Vw;this.ended=new Vw;this.entered=new Vw;this.exited=new Vw;this.dropped=new Vw;this.moved=new T.Observable(function(I){var N=D._dragRef.moved.pipe(R(function(L){return{source:D,pointerPosition:L.pointerPosition,event:L.event,delta:L.delta,
distance:L.distance}})).subscribe(I);return function(){N.unsubscribe()}});this._dragRef=OYb(k,a,{dragStartThreshold:f&&null!=f.dragStartThreshold?f.dragStartThreshold:5,pointerDirectionChangeThreshold:f&&null!=f.pointerDirectionChangeThreshold?f.pointerDirectionChangeThreshold:5,zIndex:null==f?void 0:f.zIndex});this._dragRef.data=this;TYb.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};
g=mV.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};g.getRootElement=function(){return this._dragRef.getRootElement()};g.reset=function(){this._dragRef.reset()};g.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Tf(),fg(a._destroyed)).subscribe(function(){a._updateRootElement();a._setupHandlesListener();a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)})})};
g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);var b=TYb.indexOf(this);-1<b&&TYb.splice(b,1);this._ngZone.runOutsideAngular(function(){a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};
g._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=void 0!==a.closest?a.closest(this.rootElementSelector):null==(c=a.parentElement)?void 0:c.closest(this.rootElementSelector)}FYb(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):$g(a):null};
g._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.dragStartDelay=
"object"===typeof d&&d?d:ah(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=IYb(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(Tf()).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){if(c.classList.contains("cdk-drag")){var d=void 0;EYb(a,(null==(d=TYb.find(function(e){return e.element.nativeElement===
c}))?void 0:d._dragRef)||null);break}c=c.parentElement}})};
g._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,h=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=null==h?!1:h;this.dragStartDelay=c||0;b&&(this.lockAxis=b);d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
g._setupHandlesListener=function(){var a=this;this._handles.changes.pipe(dg(this._handles),gg(function(b){b=b.filter(function(c){return c._parentDrag===a}).map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);HYb(a._dragRef,b)}),eg(function(b){return T.merge.apply(null,v(b.map(function(c){return c._stateChanges.pipe(dg(c))})))}),fg(this._destroyed)).subscribe(function(b){var c=a._dragRef,d=b.element.nativeElement;b.disabled?!c._disabledHandles.has(d)&&-1<c._handles.indexOf(d)&&
(c._disabledHandles.add(d),lp(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),lp(d,c.disabled))})};oi.Object.defineProperties(mV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=Yg(a);this._dragRef.disabled=this._disabled}}});var TYb=[];mV.\u0275fac=function(a){return new (a||mV)(C(sd),C(QYb,12),C(mi),C(mg),C(Bf),C(qYb,8),C(vA,8),C(kV),C(zx),C(sYb,10),C(rYb,12))};
mV.\u0275dir=w({type:mV,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&(Ff(c,uYb,5),Ff(c,tYb,5),Ff(c,sYb,5));if(a&2){var d;Df(d=Gf())&&(b._previewTemplate=d.first);Df(d=Gf())&&(b._placeholderTemplate=d.first);Df(d=Gf())&&(b._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&pe("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement",
"rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",
entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Je([{provide:rYb,useExisting:mV}]),Fc]});
var nV=function(){};nV.\u0275fac=function(a){return new (a||nV)};nV.\u0275mod=xc({type:nV});nV.\u0275inj=ic({providers:[kV],imports:[LA]});
var UYb=["addLink"],VYb=["showFewer"],WYb=["showMore"],XYb=["removeButton"],YYb=[[["",8,"title-action"]],[["",8,"value-action"]]],ZYb=[Object.assign({},rp("start","bottom"),sp("start","top"),{offsetY:8}),Object.assign({},rp("center","bottom"),sp("center","top"),{offsetY:8}),Object.assign({},rp("end","bottom"),sp("end","top"),{offsetY:8}),Object.assign({},rp("start","top"),sp("start","bottom"),{offsetY:-8}),Object.assign({},rp("end","top"),sp("end","bottom"),{offsetY:-8})],oV=function(a,b,c,d){qI.call(this);
this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=ZYb;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.userMap=new Map;this.enumChoices=null;this.sortedEnumChoices=[];this.enumPendingValues=new Set;this.isUser=this.isActive=!1;this.valuesChange=new Vw;this.showingAll=this.listFieldDisabled=!1;this.tooltip=this.title="";this.truncate=!1;this.teamId="";this.isString=Li;this.enableTeamAnnotations=
d.isInternalSession();this.environmentType=d.getEnvironmentType()};U(oV,qI);oV.\u0275dir=qI.\u0275dir;oV.prototype.ngOnChanges=function(a){var b;if(null==(b=a.users)?0:b.currentValue)for(a=r(a.users.currentValue),b=a.next();!b.done;b=a.next()){b=b.value;var c=Tl(b);c&&this.userMap.set(c,Ii(b))}};oV.prototype.ngOnInit=function(){MEa(this)};
var MEa=function(a){a.sortedEnumChoices=[].concat(v(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=(null==(c=a.values)?0:c.includes(b))?1:0,e;return((null==(e=a.values)?0:e.includes(b))?1:0)-d})},NEa=function(a){var b=a.values||[],c=[].concat(v(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})};
oV.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
oV.prototype.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(null==(d=b.values)?0:d.length){d=Math.min(a,b.values.length-1);var e,f,h;null==(e=b.removeButtons)||null==(f=e.get(d))||null==(h=f.nativeElement)||h.focus()}else{var k,q;null==(k=b.addLinkEl)||null==(q=k.nativeElement)||q.focus()}})};
oV.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=Rk(a);this.preventDuplicates&&this.values.find(function(f){return Hi(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&$ma(this.values)&&$ma(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(Zma(this.values)&&Zma(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=r(a.split(/[,; ]/));
for(var d=a.next();!d.done;d=a.next()){var e=d=d.value;"CHANGELISTS"===this.type&&(e=$Yb(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||XEa(this,!0);0!==b.length&&(this.values=[].concat(v(this.values),v(b)),this.valuesChange.emit({values:this.values,added:b}))};
var $Yb=function(a){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 isNaN(Number(a))?null:a};oV.prototype.onDrop=function(a){pp(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var XEa=function(a,b){var c,d=r(null!=(c=a.menuTriggers)?c:[]);for(c=d.next();!c.done;c=d.next())c.value.closeMenu();var e;d=r(null!=(e=a.popupTriggers)?e:[]);for(c=d.next();!c.done;c=d.next())e=c.value,e.disabled||(e.disabled=!0,e.disabled=!1);b&&a.addLinkEl&&a.addLinkEl.nativeElement.focus()},qp=function(a,b,c){null==c||c.stopPropagation();null==c||c.preventDefault();a.showingAll=b;a.cdr.detectChanges();a.schedule(function(){var d,e,f;null==(d=null!=(f=a.showFewer)?f:a.showMore)||null==(e=d.nativeElement)||
e.focus()})},aZb=function(a){return a.values&&"REPEATED_DATE"===a.type?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Qk(b))}):a.values&&"TEAM"===a.type?a.values:a.values&&"WORKSPACES"===a.type?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return Li(b)?b:Ji(b)?""+b:a.dateFormatter.formatUserCalendar(Qk(b))})};g=oV.prototype;g.trackClick=function(a){io(this.analytics,mo.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};g.schedule=function(a){this.subscriptions.add(T.asyncScheduler.schedule(a))};
g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};oV.\u0275fac=function(a){return new (a||oV)(C(mI,2),C(AP),C(IM),C(qH))};
oV.\u0275cmp=w({type:oV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(Ef(UYb,5),Ef(VYb,5),Ef(WYb,5),Ef(XYb,5),Ef(pF,5),Ef(wN,5));if(a&2){var c;Df(c=Gf())&&(b.addLinkEl=c.first);Df(c=Gf())&&(b.showFewer=c.first);Df(c=Gf())&&(b.showMore=c.first);Df(c=Gf())&&(b.removeButtons=c);Df(c=Gf())&&(b.menuTriggers=c);Df(c=Gf())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",isDefaultOrAllowedValues:"isDefaultOrAllowedValues",
values:"values",users:"users",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",teamId:"teamId"},outputs:{valuesChange:"valuesChange"},features:[Je([mI]),ee,Fc],ngContentSelectors:[".title-action",".value-action"],decls:21,vars:21,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner",
3,"matTooltip","matTooltipPosition"],[1,"bv2-editable-title"],["tabindex","0",4,"ngIf"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDisabled","cdkDropListDropped"],["cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[4,"ngIf"],[1,"bv2-field-user-action-footer"],["addLink",""],[3,"ngSwitch",4,"ngIf"],["enumPopup","matMenu"],["matMenuContent",""],["textPopup",
""],["datePopup",""],["tabindex","0"],["cdkDrag",""],["class","flex-kids-x flex-cross-axis-centered flex-wrappable",4,"ngIf"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[4,"ngIf","ngIfElse"],["checkIfWorkspaces",""],["checkIfTeam",""],["checkIfPostMortems",""],["default",""],["class","bv2-remove-icon bv2-remove-item keep-focus-ring",3,"disabled","matTooltip","click",4,"ngIf"],[1,"float-clear"],[3,"changelistId"],["target","_blank",1,"bv2-metadata-link",
3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"href","click"],["class","list-field-user-container",4,"ngIf"],[3,"maxWidth","modelValue","disabled"],[1,"list-field-user-container"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],[3,"email",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[3,"email"],[1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip","click"],["removeButton",""],["tabindex","0","role","button",1,"bv2-metadata-tool",
"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showFewer",""],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["showMore",""],[3,"ngSwitch"],["mat-button","","aria-haspopup","true","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Select items in the list","tabindex","0",3,"matMenuTriggerFor","menuOpened","menuClosed",4,"ngSwitchCase"],["mat-button","","class",
"mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",4,"ngSwitchCase"],["mat-button","","panelClass","bv2-add-item-bubble","class","mat-primary bv2-metadata-tool bv2-metadata-link tiny","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",4,"ngSwitchDefault"],["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","menuOpened","menuClosed"],["mat-button","","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["mat-button","","panelClass","bv2-add-item-bubble","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],
["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked","click",4,"ngFor","ngForOf","ngForTrackBy"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["textPopupForm","ngForm","formEl",""],["type","text","name","input","ngModel","","required","","autofocus","",3,"bContactAutocomplete",4,"ngIf"],["name","input","ngModel","","required","","step","any",
"autofocus","",3,"type",4,"ngIf"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"gmat-button","medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"gmat-button","medium","field-popup-button",3,"click"],["svgIcon","close"],["type","text","name","input","ngModel","","required","","autofocus","",3,"bContactAutocomplete"],["name","input","ngModel","","required","","step","any","autofocus","",3,"type"],[3,"required",
"renderPanel","dateChange","cancelClicked"]],template:function(a,b){a&1&&(Ae(YYb),F(0,"div",0)(1,"div",1)(2,"div",2),M(3,tEa,2,2,"label",3),Be(4),G(),F(5,"div",4),J("cdkDropListDropped",function(c){return b.onDrop(c)}),M(6,IEa,2,1,"div",5),M(7,JEa,3,3,"div",6),M(8,KEa,6,4,"div",7),M(9,LEa,2,0,"div",7),F(10,"div",8,9),M(12,REa,4,3,"ng-container",10),M(13,SEa,1,0,"ng-content",7),G()()(),F(14,"mat-menu",null,11),M(16,UEa,1,2,"ng-template",12),G(),M(17,YEa,12,5,"ng-template",null,13,Mf),M(19,ZEa,1,2,
"ng-template",null,14,Mf),G());a&2&&(pe("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(1),pe("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),E("matTooltip",b.tooltip)("matTooltipPosition","left"),B(2),E("ngIf",b.title),B(2),pe("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),E("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(1),E("ngForOf",aZb(b))("ngForTrackBy",b.trackByIndex),
B(1),E("ngIf",b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),E("ngIf",!b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),E("ngIf",!(null==b.values?0:b.values.length)),B(3),E("ngIf",!b.readonly),B(1),E("ngIf",!b.readonly))},dependencies:[Kx,Gx,Mx,Nx,Ox,$U,EP,wy,Mg,py,qy,Gy,vy,ty,FB,wF,qR,SU,zS,lV,mV,sN,rN,wN,mF,kF,pF,jF,hF,QU,dV],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; }"]});
var bZb={CCS:"CCS",CHANGELISTS:"CHANGELISTS",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},cZb=function(a){switch(null==a?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}},pV=function(){};
pV.\u0275fac=function(a){return new (a||pV)};pV.\u0275mod=xc({type:pV});pV.\u0275inj=ic({imports:[pO,ay,aV,XP,Ky,wG,gH,vS,cV,TU,AS,nV,RN,TN,qF,AF,RU,TN,eV]});
var aFa=function(){return[]},qV=function(){this.disabled=this.readonly=!1;this.save=new Vw},dZb=function(a){return a.issue.customFieldMap[a.field.customFieldId]};qV.prototype.getDisplayValue=function(){var a,b;return null!=(b=null==(a=dZb(this).displayValues)?void 0:a[0])?b:null};qV.prototype.getTooltip=function(){var a;return(null!=(a=this.field.description)?a:"")+" [ID: "+this.field.customFieldId+"]"};
var $Ea=function(a){return(a=dZb(a).getValue())&&void 0===a.values?a:null},cFa=function(a){return(a=dZb(a).getValue())&&void 0!==a.values?a.values:null};qV.\u0275fac=function(a){return new (a||qV)};
qV.\u0275cmp=w({type:qV,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&Ef(UU,5);if(a&2){var c;Df(c=Gf())&&(b.editField=c.first)}},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","valueChange",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride",
"enumChoices","listFieldDisabled","valuesChange",4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","valueChange"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled","valuesChange"]],template:function(a,b){a&1&&M(0,eFa,3,2,"ng-container",0);a&2&&E("ngIf",dZb(b))},dependencies:[Gx,oV,UU],encapsulation:2});var rV=function(){};
rV.\u0275fac=function(a){return new (a||rV)};rV.\u0275mod=xc({type:rV});rV.\u0275inj=ic({imports:[ay,pV,VU]});
var sV=function(){this.mode="default";this.query="";this.selectComponentId=new Vw;this.expandComponent=new Vw;this.goBack=new Vw};sV.prototype.ngOnInit=function(){};sV.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};sV.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};sV.\u0275fac=function(a){return new (a||sV)};
sV.\u0275cmp=w({type:sV,selectors:[["component-row"]],inputs:{componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},decls:11,vars:8,consts:[[1,"container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"content"],[4,"ngIf","ngIfElse"],["leafOnly",""],["class","archived-indicator",4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["svgIcon","history"],["mat-icon-button","","aria-label","Return to search results",
"matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["mat-icon-button","",1,"expand-button",3,"matTooltip","mousedown"],["svgIcon","folder"],[4,"ngFor","ngForOf"],["noAccessComponent",""],[4,"ngIf"],[1,"subtle-link",3,"innerHtml","mousedown"],[1,"subtle-link",3,"mousedown"],[1,"archived-indicator"]],template:function(a,b){a&1&&(F(0,"div",0),ve(1,1),M(2,fFa,2,0,"ng-container",2),M(3,gFa,3,0,"ng-container",2),M(4,hFa,3,2,"ng-container",3),we(),F(5,"div",4),M(6,mFa,2,1,"ng-container",
5),M(7,oFa,1,1,"ng-template",null,6,Mf),M(9,pFa,2,0,"span",7),H(10,"b-access-level-indicator",8),G()());if(a&2){var c=Fe(8);B(1);E("ngSwitch",b.mode);B(1);E("ngSwitchCase","recent");B(1);E("ngSwitchCase","tree");B(3);E("ngIf","leaf"!==b.mode)("ngIfElse",c);B(3);E("ngIf",b.componentOption.archived);B(1);E("accessLevel",null==b.componentOption.accessLimit?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",!0)}},dependencies:[Kx,Gx,Mx,Nx,Ox,FB,hF,wF,LS,rM,AM],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-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:18px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:18px;width:18px;line-height:18px}.archived-indicator[_ngcontent-%COMP%]{margin-left:4px;color:#ea4335;color:var(--bad)}b-access-level-indicator[_ngcontent-%COMP%]{margin-left:4px}\n/*# sourceMappingURL=component_row.css.map */"]});
var eZb=0,tV=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+eZb;eZb+=1};tV.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};tV.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};tV.\u0275fac=function(a){return new (a||tV)(C(zx),C(sd))};
tV.\u0275dir=w({type:tV,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ye("id",b.id),pe("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});
var uV=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new Vw};uV.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};uV.prototype.ngOnInit=function(){};uV.\u0275fac=function(a){return new (a||uV)};
uV.\u0275cmp=w({type:uV,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},decls:5,vars:7,consts:[[1,"container"],["alt","Team logo",4,"ngIf"],[1,"content"],["class","name-row",4,"ngIf"],["class","path",4,"ngIf"],["alt","Team logo"],[1,"name-row"],[1,"team-name",3,"innerHtml"],["class","no-component-label",4,"ngIf"],[1,"no-component-label"],[1,
"path"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["lastSeg",""],["plainText",""],[1,"subtle-link",3,"mousedown"],["normal",""],[1,"team-name"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,qFa,1,1,"img",1),F(2,"div",2),M(3,sFa,4,5,"div",3),M(4,AFa,2,1,"div",4),G()());a&2&&(pe("no-component",b.hasNoComponent)("compact",b.compact),B(1),E("ngIf",!b.compact),B(2),E("ngIf",!b.compact),B(1),E("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[Kx,Gx,rM],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 fZb=["primaryValueBar"],gZb=pi(function(a){this._elementRef=a},"primary"),hZb=new od("mat-progress-bar-location",{providedIn:"root",factory:EFa}),iZb=new od("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),jZb=0,vV=function(a,b,c,d,e,f){a=gZb.call(this,a)||this;a._ngZone=b;a._animationMode=c;a._changeDetectorRef=f;a._isNoopAnimation=!1;a._value=0;a._bufferValue=0;a.animationEnd=new Vw;a._animationEndSubscription=T.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+jZb++;a._rectangleFillValue=
"url('"+(d?d.getPathname().split("#")[0]:"")+"#"+a.progressbarId+"')";a._isNoopAnimation="NoopAnimations"===c;e&&(e.color&&(a.color=a.defaultColor=e.color),a.mode=e.mode||a.mode);return a};U(vV,gZb);vV.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};vV.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
vV.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,T.fromEvent)(b,"transitionend").pipe(uf(function(c){return c.target===b})).subscribe(function(){0!==a.animationEnd.observers.length&&("determinate"!==a.mode&&"buffer"!==a.mode||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))})})};vV.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
oi.Object.defineProperties(vV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,ah(a)||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}},bufferValue:{configurable:!0,enumerable:!0,get:function(){return this._bufferValue},set:function(a){this._bufferValue=Math.max(0,Math.min(100,a||0));var b;null==(b=this._changeDetectorRef)||b.markForCheck()}}});
vV.\u0275fac=function(a){return new (a||vV)(C(sd),C(mg),C(iw,8),C(hZb,8),C(iZb,8),C(zx))};
vV.\u0275cmp=w({type:vV,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&Ef(fZb,5);if(a&2){var c;Df(c=Gf())&&(b._primaryValueBar=c.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(a,b){a&2&&(ke("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode),pe("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",
mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ee],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],"cx 2 cy 2 r 2".split(" "),["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill",
"mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(a,b){a&1&&(F(0,"div",0),Qc(),F(1,"svg",1)(2,"defs")(3,"pattern",2),H(4,"circle",3),G()(),H(5,"rect",4),G(),Rc(),H(6,"div",5)(7,"div",6,7)(9,"div",8),G());a&2&&(B(3),E("id",b.progressbarId),B(2),ke("fill",b._rectangleFillValue),B(1),E("ngStyle",b._bufferTransform()),B(1),E("ngStyle",b._primaryTransform()))},dependencies:[Px],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-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 mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],
encapsulation:2,changeDetection:0});
var kZb=["container"],lZb=["inputBox"],mZb=["dropdownTemplate"],nZb=["dropdown"],RFa=function(a){return{mode:"recent",$implicit:a}},WFa=function(a){return[a]},VFa=function(a,b){return{team:a,level:0,order:b}},bGa=function(a){return{mode:"default",$implicit:a}},eGa=function(a){return[0,a]},lGa=function(){return[0]},oGa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},uGa=function(a){return{mode:"leaf",$implicit:a}},zGa=function(a,b,c){return{team:a,level:b,order:c}},xV=function(a,b,c,
d,e,f,h,k,q,u){qI.call(this);this.overlay=a;this.viewContainerRef=b;this.userApi=c;this.componentActions=d;this.teamsService=e;this.userAccess=f;this.paths=h;this.analytics=k;this.activeSession=q;this.cdr=u;this.placeholder="";this.includeArchived=this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new Vw;this.shouldFocus=!1;this.touched=new Vw;this.selectedComponentChange=new Vw;this.dropdownClosed=new Vw;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();
this.searchState=new wV(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeArchived:this.includeArchived,includeTeamData:!this.isExternal});this.componentLoading=this.isDropdownOpen=!1};U(xV,qI);xV.\u0275dir=qI.\u0275dir;
xV.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(fg(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;oZb(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,T.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(fg(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
xV.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var oZb=function(a){if(a.selectedComponent){var b=tp(a.selectedComponent);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},pZb=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;a.dropdown.nativeElement.scrollTop=c<d?
c:c+b>d+e?Math.max(0,c-e+b):d}};g=xV.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(oZb(this),this.checkAdminAccess&&this.selectedComponent&&qZb(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();qI.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=lA(mA(new tA(this.listOptions)));this.searchState.listUpdated$.pipe(fg(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(fg(this.destroyed$)).subscribe(function(b){var c=b.toArray();b=c.filter(function(e){return null==e.listOrder});c=c.filter(function(e){return null!=e.listOrder}).sort(OGa);b=[].concat(v(c),v(b));a.listOptions.reset(b);var d;if(null==(d=a.keyManager)?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
-1<d&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};g.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
g.close=function(a){a=void 0===a?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),"team_scope"===this.searchState.state$.value&&wp(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),io(this.analytics,mo.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var rZb=function(a){var b,c,d;return null!=(d=null==(b=a.keyManager)?void 0:null==(c=b.activeItem)?void 0:c.id)?d:void 0};
xV.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),pZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||sA(d);pZb(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),pZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||rA(d);pZb(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?wp(this.searchState):this.searchState.selectOption(this.keyManager.activeItem.data),a.preventDefault());break;case "ArrowRight":if(this.keyManager.activeItem){var c=this.keyManager.activeItem.data;"team"===c.type?(a.preventDefault(),iGa(this.searchState,c)):"component"===c.type&&(a.preventDefault(),this.searchState.expandComponent(c))}break;case "ArrowLeft":this.keyManager.activeItem&&"team"===this.keyManager.activeItem.data.type&&
(a.preventDefault(),this.searchState.teamScope$.value!==this.keyManager.activeItem.data||this.searchState.teamScope$.value.expanded?hGa(this.searchState,this.keyManager.activeItem.data):sZb(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),qGa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(wp(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var up=function(a){a.preventDefault();a.stopPropagation()},qZb=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;mK(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=xV.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new OA({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:null==(c=this.container.nativeElement)?void 0:c.offsetWidth}))};g.attach=function(){var a=new bB(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return RA(UA(TA(ZA(this.overlay.position(),this.container),!1),!1),tZb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};g.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};xV.\u0275fac=function(a){return new (a||xV)(C(gB),C(Bf),C(cL),C(sT),C(bM),C(lK),C(LK),C(IM),C(qH),C(zx))};
xV.\u0275cmp=w({type:xV,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(Ef(kZb,7),Ef(lZb,7),Ef(mZb,7),Ef(nZb,5),Ef(tV,5));if(a&2){var c;Df(c=Gf())&&(b.container=c.first);Df(c=Gf())&&(b.inputBox=c.first);Df(c=Gf())&&(b.dropdownTemplateRef=c.first);Df(c=Gf())&&(b.dropdown=c.first);Df(c=Gf())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",includeArchived:"includeArchived",ariaLabel:"ariaLabel",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",
shouldFocus:"shouldFocus"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},features:[ee,Fc],decls:13,vars:10,consts:[[1,"container","pseudo-input"],["container",""],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-autocomplete","list",1,"override",3,"ngModel","placeholder","required","ngModelChange","keydown","click","focus","blur"],["inputBox",""],["mat-icon-button",
"","tabindex","-1","matTooltip","Clear query",3,"mousedown",4,"ngIf"],[4,"ngIf"],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["mat-icon-button","","tabindex","-1","matTooltip","Clear query",3,"mousedown"],["svgIcon","clear"],["class","bv2-picker-checking",4,"ngIf","ngIfElse"],["maybeShowNotAdmin",""],[1,"bv2-picker-checking"],["class","bv2-picker-error",4,"ngIf"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,"mousedown"],["dropdown",""],[1,"progress-bar-container"],
["mode","indeterminate",4,"ngIf"],[1,"dropdown-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mode","indeterminate"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tree",4,"ngIf"],["role","tree"],[1,"section-header"],[4,"ngFor","ngForOf"],["role","treeitem","listOption","",1,"list-option",3,"data","mousedown"],[3,"teamOption","query","hasNoComponent","selectTeamId"],["tabindex","-1","class","unstyled expand-team-line-button",3,"mousedown",4,"ngIf"],["tabindex","-1",1,"unstyled","expand-team-line-button",
3,"mousedown"],["svgIcon","arrow-down"],["class","team-scope-container",4,"ngIf"],[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"teamOption","query","compact","allowSegmentSelection","selectTeamId"],["tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"gmat-button","small","clear-filter",3,"mousedown"],["svgIcon","close"],["class","team-scope-child-teams",4,"ngIf"],[1,"team-scope-child-teams"],["class","component-scope-container",4,"ngIf"],
[1,"component-scope-container"],[1,"title"],["mode","tree",3,"componentOption","goBack","selectComponentId"],["role","treeitem","listOption","",1,"list-option",3,"listOrder","data","mousedown"],[1,"team-row-container"],["class","arrow-button","mat-icon-button","","aria-label","Show child teams",3,"mousedown",4,"ngIf"],["mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox",4,"ngIf","ngIfElse"],["emptyList",""],["role","listbox"],
["role","option","listOption","","class","list-option",3,"data","mousedown",4,"ngFor","ngForOf"],["role","option","listOption","",1,"list-option",3,"data","mousedown"],[3,"componentOption","query","mode","selectComponentId","expandComponent"],["class","empty-list muted",4,"ngIf"],[1,"empty-list","muted"],[4,"ngSwitchDefault"],["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){a&1&&(F(0,"div",0,1)(2,"input",2,3),J("ngModelChange",function(d){return b.searchState.searchQuery$.next(d)})("keydown",function(d){return b.handleKeydown(d)})("click",function(){b.open();return b.touched.emit()})("focus",function(){return b.open()})("blur",function(){return b.close()}),P(4,"async"),G(),M(5,FFa,2,0,"button",4),G(),M(6,JFa,4,2,"div",5),M(7,wGa,11,8,"ng-template",null,6,Mf),M(9,CGa,5,11,"ng-template",null,7,Mf),M(11,NGa,3,2,"ng-template",null,8,Mf));if(a&2){var c=Fe(3);B(2);E("ngModel",
Q(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);ke("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",rZb(b));B(3);E("ngIf",c.value);B(1);E("ngIf",b.checkAdminAccess)}},dependencies:[Kx,Gx,Qx,Mx,Nx,Ox,Mg,py,Gy,vy,FB,hF,SH,wF,vV,uV,sV,tV,Tx],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 #dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid #1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-button-focus-overlay{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-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:16px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;line-height:16px}.mat-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 tZb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],wV=function(a,b,c,d,e,f){var h=this;this.userApi=a;this.componentActions=b;this.teamsService=c;this.analytics=d;this.destroyed$=e;this.config=f;this.searchQuery$=new T.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(Qf(250));this.state$=new T.BehaviorSubject("default");this.listUpdated$=new T.Subject;this.componentsLoading=this.teamsLoading=
!1;this.teamScope$=new T.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new T.BehaviorSubject([]);this.showAllTeams$=new T.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(Sf());this.teamOptions$=new T.BehaviorSubject([]);this.filteredTeamOptions$=(0,T.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(R(function(k){k=r(k);var q=k.next().value;return k.next().value?
q:q.slice(0,5)}));this.hasHiddenTeams$=(0,T.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return 5<k.length&&!q}));this.newChildTeams$=new T.BehaviorSubject([]);this.teamsDisplayed$=(0,T.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(R(function(k){return k?[k]:[]}))).pipe(R(function(k){return k.map(function(q){return q.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(R(function(k){return k.filter(function(q){return!h.childTeamsMap.has(q)})}),
uf(function(k){return 0<k.length}),eg(function(k){return h.teamsService.getChildTeams(k)}),R(DFa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(R(function(k){return k.filter(function(q){return!h.componentCountMap.has(q)})}),uf(function(k){return 0<k.length}),eg(function(k){return NKb(h.teamsService,k)}));this.componentIdSelected$=new T.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
wV.prototype.init=function(a){var b=this;a=void 0===a?!1:a;uZb(this);(0,T.combineLatest)([this.debouncedSearchQuery$.pipe(cg(a?1:0)),this.state$]).pipe(fg(this.destroyed$)).subscribe(function(c){var d=r(c);c=d.next().value;d=d.next().value;b.showAllTeams$.next(!1);"default"===d?c?b.state$.next("global"):(b.componentOptions=[],b.teamOptions$.next([]),b.listUpdated$.next()):"global"===d?c?(b.config.includeTeamData&&vZb(b,c),wZb(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
wZb(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&xZb(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe(hg(this.state$),fg(this.destroyed$)).subscribe(function(c){c=r(c);var d=c.next().value;"component_scope"===c.next().value&&b.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(fg(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.childTeamsMap.set(d,
e)}});this.unseenTeamComponentCountMap$.pipe(fg(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.componentCountMap.set(d,e)}})};
var uZb=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.map(tp);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.config.includeTeamData&&(a.teamsLoading=!0,cM(a.teamsService,"").pipe(fg(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.getTeamSuggestionsList().map(BFa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
wV.prototype.selectOption=function(a){"component"===a.type?EGa(this,a.id):"team"===a.type?MFa(this,a):console.warn("invalid option selected")};
var EGa=function(a,b){var c=yZb(a);io(a.analytics,mo.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},yZb=function(a){if("default"===a.state$.value)return"recent-component";if("global"===a.state$.value)return"global-search";if("component_scope"===a.state$.value)return"component-scope";if("team_scope"===a.state$.value){var b,c=null==(b=a.teamScope$.value)?void 0:b.id;return a.myTeams$.value.some(function(d){return d.id===c})?"my-team":"team-scope"}return""};
wV.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var rGa=function(a,b){a.componentActions.get(b).then(function(c){a.componentScope=tp(c);a.state$.next("component_scope")})},qGa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},MFa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||vp(a,b.id)},vp=function(a,b){a.teamsLoading=!0;cM(a.teamsService,b).pipe(fg(a.destroyed$)).subscribe(function(c){c=c.getTeamSuggestionsList().map(BFa);
if(1===c.length){c=c[0];var d,e=c.id!==(null==(d=a.teamScope$.value)?void 0:d.id);a.teamScope$.next(c);a.teamsLoading=!1;e&&a.state$.next("team_scope")}},function(){a.teamsLoading=!1})},sZb=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;vp(a,b[b.length-2])}};wV.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
wV.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var hGa=function(a,b){b.expanded=!1;a.listUpdated$.next()},iGa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},wp=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},vZb=function(a,b){1<b.length&&(a.teamsLoading=!0,cM(a.teamsService,b).pipe(fg(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.getTeamSuggestionsList().map(BFa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},wZb=function(a,
b){if(1<b.length){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.config.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=d.map(tp));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},xZb=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=d.map(tp),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})};
var yV=function(){};yV.\u0275fac=function(a){return new (a||yV)};yV.\u0275mod=xc({type:yV});yV.\u0275inj=ic({imports:[ay,kB,kB]});
var zV=function(){};zV.\u0275fac=function(a){return new (a||zV)};zV.\u0275mod=xc({type:zV});zV.\u0275inj=ic({imports:[ay,Ky,wG,AF,XH,gH,yV,jB,fB,eA,CM,WS]});
var AV=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new Vw;this.filter=function(){return!0}};AV.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=((null==(c=a.componentPathInfo)?void 0:c.allCustomField)||[]).filter(function(d){return b.filter(d)}).sort(function(d,e){return d.name.localeCompare(e.name)})}else this.customFields=null};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275cmp=w({type:AV,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class","bv2-custom-field-picker-select-box",4,"ngIf"],[1,"bv2-custom-field-picker-select-box"],[4,"ngIf"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,
"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),O(2," First, select a component that contains the custom field. "),G(),F(3,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),G(),M(4,TGa,4,3,"div",3),G());a&2&&(B(3),E("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(1),E("ngIf",b.selectedComponent))},dependencies:[Kx,Gx,sC,pC,QS,BB,
xV],encapsulation:2});var BV=function(){};BV.\u0275fac=function(a){return new (a||BV)};BV.\u0275mod=xc({type:BV});BV.\u0275inj=ic({imports:[ay,RS,zV]});
var zZb=function(a){return{value:a}},CV=function(){this.isNonemptyJsonDateValue=Ppa};CV.prototype.toDate=function(a){return Qk(a)};CV.\u0275fac=function(a){return new (a||CV)};
CV.\u0275cmp=w({type:CV,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},decls:6,vars:4,consts:[[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["null",""],["nonNull",""],[4,"ngIf"],["mode","date",3,"date"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(F(0,"span",0),M(1,UGa,1,0,"ng-container",1),G(),M(2,VGa,0,0,"ng-template",null,2,Mf),M(4,hHa,8,8,"ng-template",null,3,Mf));if(a&2){var c=Fe(5);B(1);E("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",Le(2,zZb,b.customFieldValue))}},dependencies:[Kx,Gx,Qx,CP],encapsulation:2});var DV=function(){};DV.\u0275fac=function(a){return new (a||DV)};DV.\u0275mod=xc({type:DV});DV.\u0275inj=ic({imports:[ay,WP]});
var CZb=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.userEmail=a;this.origIssues=b;this.comment=new RR;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";AZb(this,b);BZb(this,b)},AZb=function(a,b){var c=b[0],d=Fn[c.status],e=c.duplicateOfIssueId;
if(d)for(b.every(function(f){return"DUPLICATE"===f.status&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e.toString(),a.origCommonDuplicateOf=e.toString()),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},DZb=function(a){if(1===a.length)return"IDENTICAL_EMAILS";var b=!a.every(function(c){return c===a[0]});return a.every(function(c){return void 0===c||Rn(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},BZb=function(a,b){var c=b.map(function(d){return d.assigneeEmail});
b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=DZb(c);a.selectedVerifiersStatus=DZb(b);"IDENTICAL_EMAILS"===a.selectedAssigneesStatus&&(a.commonAssignee=c[0],a.origCommonAssignee=c[0]);"IDENTICAL_EMAILS"===a.selectedVerifiersStatus&&(a.commonVerifier=b[0],a.origCommonVerifier=b[0])};CZb.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;BIa(this)};
CZb.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var Rp=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},xIa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?EZb(a.selectedAssigneesStatus)?a.clearAssignee():a.commonAssignee&&(a.lastCommonAssignee=a.commonAssignee,a.commonAssignee=""):"DUPLICATE"===b.status?(a.commonAssignee=a.origCommonAssignee,a.commonVerifier=a.origCommonVerifier):("REQUIRED"!==b.assigneeRequirement||a.commonAssignee||EZb(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),EZb(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},EZb=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},BIa=function(a){var b=Fn.NEW,c=Fn.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!LJb.has(a.issueState)||(a.issueState=b)},FZb=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},LIa=function(a){var b=new Map;b.set("assignee",a.overwriteAssignee||a.commonAssignee!==a.origCommonAssignee?a.commonAssignee:void 0);(a.overwriteVerifier||a.commonVerifier!==a.origCommonVerifier)&&b.set("verifier",a.commonVerifier);a.commonDuplicateOf!==a.origCommonDuplicateOf&&b.set("duplicateOfIssueId",a.commonDuplicateOf);FZb(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};
var GZb=function(a){this.uploadUrl_=a};GZb.prototype.getUploadUrl=function(){return this.uploadUrl_};
var HZb=function(){Uo.call(this)};hu(HZb,Uo);var EV=function(a){bD.call(this,a)};hu(EV,bD);var FV=function(a){bD.call(this,a)};hu(FV,bD);
var IZb=function(a,b){this.name_=a;this.inputElement_=b};IZb.prototype.getName=function(){return this.name_};
var JZb=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};
var GV=function(){Uo.call(this);this.name_="closure_frame"+KZb++;this.iframesForDisposal_=[];LZb[this.name_]=this},HV;hu(GV,Uo);var LZb={},KZb=0,MZb=function(a,b){var c=cp(a);Qzb(b,function(d,e){Array.isArray(d)||(d=[d]);ta(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=GV.prototype;g.form_=null;g.iframe_=null;g.iframeName_=null;g.nextIframeId_=0;g.active_=!1;g.complete_=!1;g.success_=!1;g.lastUri_=null;g.lastContent_=null;g.lastErrorCode_=0;
g.iframeDisposalTimer_=null;g.send=function(a,b,c,d){if(this.active_)throw Error("$d");this.lastUri_=a=new hp(a);b=b?b.toUpperCase():"GET";c&&RG(a,"zx",DC());HV||(HV=hsb("FORM"),HV.acceptCharset="utf-8",c=HV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(HV));this.form_=HV;"GET"==b&&MZb(this.form_,a.queryData_);d&&MZb(this.form_,d);Wqb(this.form_,Wy(a.toString()));this.form_.method=b;NZb(this);OZb(this)};
g.abort=function(a){if(this.active_){var b=IV(this);if(b)if(hD(b))b.removeAllListeners();else if(b=mD(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)oD(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");PZb(this)}};
g.disposeInternal=function(){this.active_&&this.abort();GV.superClass_.disposeInternal.call(this);this.iframe_&&QZb(this);OZb(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete LZb[this.name_]};g.isComplete=function(){return this.complete_};g.isSuccess=function(){return this.success_};g.isActive=function(){return this.active_};g.getResponseText=function(){return this.lastContent_};g.getResponseJson=function(){return Dtb(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return Jtb(this.lastErrorCode_)};
var NZb=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=cp(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});lu&&7>Number(qu)&&Wqb(a.iframe_,Wy(kh(Go('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";ou?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if(lu&&!ru("11")){a.form_.target=a.iframeName_||"";cp(a.form_).document_.body.appendChild(a.iframe_);
Vo(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a);try{a.errorHandled_=!1,a.form_.submit()}catch(I){nD(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a),a.handleError_(1)}}else{cp(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=DD(a.iframe_);if(document.baseURI){var d=Mj(b);d=nh('<head><base href="'+Mj(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>',null)}else d=Mj(b),d=nh('<body><iframe id="'+d+'" name="'+d+'"></iframe>',
null);c.write(th(d));Vo(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=uD("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];nsb(d[e],k,!1);k.join("")!=h&&(ED(d[e],h),d[e].value=h)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=uD("SELECT",a.form_);f=uD("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=uD("OPTION",e[h]),u=uD("OPTION",f[h]),y=0,D=q.length;y<D;y++)u[y].selected=q[y].selected;e=uD("INPUT",a.form_);f=uD("INPUT",d);h=0;
for(k=e.length;h<k;h++)if("file"==e[h].type&&e[h].value!=f[h].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),nu&&ND(a.testForFirefoxSilentError_,250,a)}catch(I){nD(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}}};
GV.prototype.onIeReadyStateChange_=function(){if("complete"==this.iframe_.readyState){nD(this.iframe_,"readystatechange",this.onIeReadyStateChange_,!1,this);try{var a=DD(this.iframe_);if(lu&&"about:blank"==a.location&&!navigator.onLine){this.handleError_(9);return}}catch(b){this.handleError_(1);return}RZb(this,a)}};GV.prototype.onIframeLoaded_=function(){nD(IV(this),"load",this.onIframeLoaded_,!1,this);try{RZb(this,this.iframe_?DD(IV(this)):null)}catch(a){this.handleError_(1)}};
var RZb=function(a,b){a.complete_=!0;a.active_=!1;try{var c=b.body;a.lastContent_=c.textContent||c.innerText}catch(e){var d=1}d||"function"!=typeof a.errorChecker_||(b=a.errorChecker_(b))&&(d=4);d?a.handleError_(d):(a.success_=!0,a.lastErrorCode_=0,a.dispatchEvent("complete"),a.dispatchEvent("success"),PZb(a))};
GV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),PZb(this),this.errorHandled_=!0)};
var PZb=function(a){QZb(a);OZb(a);a.form_=null;a.dispatchEvent("ready")},QZb=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(OD(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);nu?a.iframeDisposalTimer_=ND(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
GV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(OD(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();BD(a)}};var OZb=function(a){a.form_&&a.form_==HV&&AD(a.form_)},IV=function(a){return a.iframe_?lu&&!ru("11")?a.iframe_:DD(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
GV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?DD(IV(this)):null;a&&!qib(a,"documentUri")?(nD(IV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):ND(this.testForFirefoxSilentError_,250,this)}};
var SZb=function(a,b,c,d,e){Uo.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 hp(a);RG(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new GV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new WG(this);aD(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};U(SZb,HZb);g=SZb.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("$d");var c=new hp(this.url_||b.action);a.lastUri_=c;a.form_=b;Wqb(a.form_,c.toString());NZb(a)};g.getBytesTransferred=function(){return null};
g.getResponseCode=function(){return null};g.getResponseHeaders=function(){return null};g.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new EV("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new EV("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new EV("l"))};
var VZb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=TZb[a.name]):(this.code=a=a.code,this.name=UZb(a));ba.call(this,$qb("%s %s",this.name,b))};hu(VZb,ba);
var UZb=function(a){var b=tja(TZb,function(c){return a==c});if(void 0===b)throw Error("ae`"+a);return b},JV={},TZb=(JV.AbortError=3,JV.EncodingError=5,JV.InvalidModificationError=9,JV.InvalidStateError=7,JV.NotFoundError=1,JV.NotReadableError=4,JV.NoModificationAllowedError=6,JV.PathExistsError=12,JV.QuotaExceededError=10,JV.SecurityError=2,JV.SyntaxError=8,JV.TypeMismatchError=11,JV);
var WZb=function(a,b){bD.call(this,a.type,b);this.event_=a};hu(WZb,bD);
var XZb=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};
var jHa=new WeakMap,iHa=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};
xp(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0});var YZb=xp(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===XZb(b,0,1)?!1:!0});
var ZZb=function(){Uo.call(this);this.reader_=new FileReader;this.reader_.onloadstart=du(this.dispatchProgressEvent_,this);this.reader_.onprogress=du(this.dispatchProgressEvent_,this);this.reader_.onload=du(this.dispatchProgressEvent_,this);this.reader_.onabort=du(this.dispatchProgressEvent_,this);this.reader_.onerror=du(this.dispatchProgressEvent_,this);this.reader_.onloadend=du(this.dispatchProgressEvent_,this)};hu(ZZb,Uo);g=ZZb.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new VZb(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new VZb(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new WZb(a,this))};g.disposeInternal=function(){ZZb.superClass_.disposeInternal.call(this);delete this.reader_};g.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};g.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
g.readAsText=function(a,b){this.reader_.readAsText(a,b)};var $Zb=function(a){var b=new qS;a.listen("loadend",eu(function(c,d){var e=d.reader_.result,f=d.getError();null==e||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};
var KV=function(){iE.call(this)};U(KV,iE);KV.prototype.createXhr=function(){var a=iE.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=du(this.onProgress_,this));return a};KV.prototype.onProgress_=function(a){this.dispatchEvent(a)};
var a_b=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},c_b=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=ND(function(){a.delayCallId_=null;b()},b_b(a),a);a.attempt_=c;return!0};a_b.prototype.reset=function(){this.delayCallId_&&OD(this.delayCallId_);this.attempt_=-1};var b_b=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};
var mHa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];
var LV=function(a){Uo.call(this);a=a||new JZb;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new a_b;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new WG(this);aD(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};hu(LV,HZb);g=LV.prototype;g.run=function(){MV(this)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};g.getResponseHeaders=function(){return this.responseHeaders_};
g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};
g.cancel=function(){if("Response received"!=this.state_&&"Error"!=this.state_){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a="Paused"===this.state_?this.stateAfterUnpausing_:this.state_;if("Upload"===a||"Query"===a)a=this.createXhrRequest(),a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.getUploadUrl(),"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new EV("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,d_b(this))};
var MV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):c_b(a.retryIterator_,function(){return d_b(a)})||NV(a,"Transfer encountered too many consecutive failures.")},d_b=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.getUploadUrl(),c=a.blob_.size;if(YZb()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=XZb(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=a.createXhrRequest();
a.request_.withCredentials_=a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=du(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new FV("o"));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("be");
}},NV=function(a,b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new EV("l"))};g=LV.prototype;
g.start_=function(){this.request_=this.createXhrRequest();var a=gh(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=nHa(a);a["X-Goog-Upload-Protocol"]="resumable";a["X-Goog-Upload-Command"]="start";this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onStartComplete_);this.request_.withCredentials_=this.withCredentials_;this.request_.send(this.url_,this.method_,this.metadata_,a);this.lastCommandResponseCode_=null;this.dispatchEvent(new FV("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new FV("p"));e_b(b)?f_b(this,b):g_b(b)?(b=yp(a.target.getAllResponseHeaders()),this.dispatchEvent(new EV("k")),a=zp(b,"X-Goog-Upload-URL"),b=(b=zp(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,void 0===a||isNaN(b)||0>=b?NV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new GZb(a),this.dispatchEvent(new EV("n")),this.state_=
"Upload",this.retryIterator_.reset(),MV(this))):MV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new EV("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return ef(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new FV("p"));if(d.retryOnHttpClientErrorEnabled_?h_b(e)||404==e.getStatus():e_b(e))return d.bytesTransferred_=a,f_b(d,e),h.return();if(g_b(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return ff(h,i_b(d),4);case 4:f=h.yieldResult;case 3:if(f)return NV(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";MV(d);return h.return();case 2:if(b)return NV(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();MV(d);return h.return()}})};
g.query_=function(){this.request_=this.createXhrRequest();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_.getUploadUrl(),"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new FV("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new FV("p"));e_b(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),f_b(this,b)):g_b(b)?(a=yp(a.target.getAllResponseHeaders()),a=parseInt(zp(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?NV(this,"Server did not respond with current offset."):a<this.offset_?NV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?NV(this,"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",MV(this))):MV(this)};
var f_b=function(a,b){a.responseCode_=b.getStatus();var c=yp(b.getAllResponseHeaders());a.responseHeaders_=oHa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new EV("j"))},g_b=function(a){var b=a.getStatus();a=yp(a.getAllResponseHeaders());a=zp(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},h_b=function(a){a=yp(a.getAllResponseHeaders());return"final"===zp(a,"X-Goog-Upload-Status")},e_b=function(a){if(h_b(a))return!0;a=a.getStatus();return 400<=a&&500>
a},i_b=function(a){var b;return ef(function(c){if(1==c.nextAddress){if(!a.blob_||0>=a.originalBlobSize_)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);Ut(c,2);if(b=XZb(a.blob_,0,1)){var d=new ZZb,e=$Zb(d);d.readAsBinaryString(b);c=ff(c,e,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);Wt(c);return c.return(!0)})};LV.prototype.createXhrRequest=function(){return new KV};
var j_b=function(a,b,c,d,e,f){Uo.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 Ni;this.boundary_="scotty-"+DC()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new WG(this);aD(this,this.eventHandler_)};U(j_b,HZb);g=j_b.prototype;
g.run=function(){var a=gh(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=nHa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=this.createXhrRequest();this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=
this.transferRequest_,c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){"Complete"!=this.state_&&"Error"!=this.state_&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new EV("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new EV("i"))};g.onTransferComplete_=function(a){var b=a.target.getStatus();void 0===b||-1===b?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new EV("l"))):(this.responseCode_=b,a=a.target,b=yp(a.getAllResponseHeaders()),this.responseHeaders_=oHa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new EV("j")))};
g.createXhrRequest=function(){return new KV};
var k_b=function(){},l_b=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof IZb)return new SZb(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new j_b(a,"POST",b,c,d);var f=new LV(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 m_b=new od("ScottyUploaderConfigFactory"),n_b=new od("ScottyUploader",{factory:function(){return new k_b}}),OV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new T.Subject;this.transferStatus=Slb(this.internalTransferStatus)};
OV.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=l_b(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,T.merge)((0,T.fromEvent)(a,"k"),(0,T.fromEvent)(a,"i"),(0,T.fromEvent)(a,"n"),(0,T.fromEvent)(a,"l"),(0,T.fromEvent)(a,"j"),(0,T.fromEvent)(a,"m")).pipe(fg((0,T.fromEvent)(a,"j").pipe(Rf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};OV.\u0275fac=function(a){return new (a||OV)(t(n_b),t(m_b))};OV.\u0275prov=hc({token:OV,factory:OV.\u0275fac});
var o_b=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};o_b.prototype.getDirectory=function(a){return this.directoryMap_[a]};o_b.prototype.getName=function(){return this.name_};
var q_b=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;Uo.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Kj(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=p_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};U(q_b,Uo);
var p_b=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Vo(e,"change",a.onFilesSelected_,!1,a);"multiple_file"===c&&(e.multiple="true");"single_directory"===c&&(e.webkitdirectory="true");0<d.length&&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(null!=a.overlayTarget_)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),Zq(e,new Wq(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};q_b.prototype.click=function(){this.overlay_.click()};
q_b.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(u){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(ou||mu)){b=new o_b("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(var c=0;c<a.length;c++)for(var d=a[c],e=d.webkitRelativePath.split("/"),f=b,h=0;h<e.length;h++){var k=e[h];if(h==e.length-1){"."!=k&&f.files_.push(d);break}var q=f.getDirectory(k);void 0==q&&(k=q=new o_b(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new r_b(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new r_b([],[],new IZb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=p_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var s_b={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},r_b=function(a,b){bD.call(this,"s");this.files=a;this.directories=b};U(r_b,bD);
var PV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new T.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Vw;this.maxFileSize=null;this.fileSizeRejected=new Vw;this.fileSelected=new Vw};
PV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(eg(function(b){return(0,T.merge)((0,T.fromEvent)(b,"q"),(0,T.fromEvent)(b,"s"))}),fg(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=r(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(-1!==e?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=r(b.files),d=c.next();!d.done;d=
c.next())if(d.value.size>a.maxFileSize){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})})};PV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};PV.\u0275fac=function(a){return new (a||PV)(C(sd),C(mg))};PV.\u0275dir=w({type:PV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected"}});
var QV=function(a,b){PV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};U(QV,PV);
QV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,T.merge)((0,T.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,T.fromEvent)(a.elementRef.nativeElement,"focus")).pipe(Wf(),fg(a.destroyed),R(function(){a.fileSelectorOverlay=new q_b(a.elementRef.nativeElement,a.selectorType,t_b(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),bg(1))}));return this.overlay};
QV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var t_b=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};QV.\u0275fac=function(a){return new (a||QV)(C(sd),C(mg))};QV.\u0275dir=w({type:QV,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[ee]});var RV=function(a,b,c){QV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};U(RV,QV);
RV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(fg(this.destroyed),uf(function(){return!a.disableAutoUpload})).subscribe(function(b){b=r(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;null==(d=a.uploader)||d.upload(c)}})};oi.Object.defineProperties(RV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Yg(a)}}});
RV.\u0275fac=function(a){return new (a||RV)(C(sd),C(mg),C(OV,8))};RV.\u0275dir=w({type:RV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[ee]});
var SV=function(a){this.snackBar=a;this.SelectorType=s_b;this.disabled=!1;this.onSelect=new Vw};SV.\u0275fac=function(a){return new (a||SV)(C(uK))};
SV.\u0275cmp=w({type:SV,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled"},outputs:{onSelect:"onSelect"},decls:3,vars:3,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected"],["svgIcon","attachment"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"button",1),J("fileSelected",function(c){if(c=c.files){c=r(c);for(var d=
c.next();!d.done;d=c.next())d=d.value,null!=d&&d.name&&jya(d.name)?b.onSelect.emit(d):b.snackBar.open("Filename contains invalid characters!")}}),H(2,"mat-icon",2),G()());a&2&&(B(1),E("selectorType",b.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",b.disabled))},dependencies:[FB,hF,wF,RV],encapsulation:2});
var TV=function(a,b){QR.call(this,a.size,a.name);var c=this;this.destroyed$=new T.Subject;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "i":case "k":case "n":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "l":c.handleError(e);break;case "j":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&200!=d?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();
break;case "m":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(fg(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};U(TV,QR);TV.prototype.handleError=function(a){this.transferredBytes=a.getBytesTransferred()||0;this.state=3;if(a=a.getErrorDescription())this.errorMessage=a;this.errorMessage||(this.errorMessage="Error while uploading.")};
TV.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};TV.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};
var UV=function(a){this.activeSession=a};
UV.prototype.create=function(a){for(var b=a.name,c=[],d=0,e=0;e<b.length;e++){var f=b.charCodeAt(e);128>f?c[d++]=f:(2048>f?c[d++]=f>>6|192:(55296==(f&64512)&&e+1<b.length&&56320==(b.charCodeAt(e+1)&64512)?(f=65536+((f&1023)<<10)+(b.charCodeAt(++e)&1023),c[d++]=f>>18|240,c[d++]=f>>12&63|128):c[d++]=f>>12|224,c[d++]=f>>6&63|128),c[d++]=f&63|128)}b=ib(c);c=new hp(null);return{url:RG(c.setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a.name},withCredentials:!0}};UV.\u0275fac=function(a){return new (a||UV)(t(qH))};UV.\u0275prov=hc({token:UV,factory:UV.\u0275fac,providedIn:"root"});var VV=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};VV.prototype.create=function(){return new OV(this.uploader,this.uploaderConfigFactory)};VV.\u0275fac=function(a){return new (a||VV)(t(n_b),t(UV))};VV.\u0275prov=hc({token:VV,factory:VV.\u0275fac,providedIn:"root"});
var sHa=function(a){return{"attachment-error":a}},WV=function(a){this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new Vw;this.uploadStates=MQb};WV.prototype.ngOnDestroy=function(){for(var a=r(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};WV.prototype.upload=function(a){var b=this.scottyUploaderFactory.create();b.upload(a);return new TV(a,b.transferStatus)};WV.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};
WV.\u0275fac=function(a){return new (a||WV)(C(VV))};
WV.\u0275cmp=w({type:WV,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel"},decls:1,vars:1,consts:[["class","attachments",4,"ngIf"],[1,"attachments"],["class","attachment",3,"ngClass",4,"ngFor","ngForOf"],[1,"attachment",3,"ngClass"],[1,"attachment-title"],["svgIcon","file-present"],[1,"issue-attachment-filename",3,"matTooltip"],[1,"attachment-filesize"],[4,"ngIf"],["role","alert","aria-live","assertive",4,"ngIf"],[1,"bv2-remove-icon","keep-focus-ring",
"attachment-cancel-button",3,"matTooltip","click"],["role","alert","aria-live","assertive"]],template:function(a,b){a&1&&M(0,uHa,2,1,"div",0);a&2&&E("ngIf",0<b.uploads.length)},dependencies:[Jx,Kx,Gx,hF,wF,yM],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 u_b=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 v_b=function(a){QR.call(this,a.size,a.name);this.attachment=a};U(v_b,QR);
var w_b=function(a,b){a.attachment.encryptedBlobId?(a.state=1,b.createDriveAttachment({filename:a.attachment.name,mimeType:a.attachment.mimeType,encryptedBlobId:a.attachment.encryptedBlobId,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=Hm(c)?Im(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};
var XV=function(a){this.id_=a;this.opts={}};g=XV.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a};g.toArray=function(){var a=ch(this.opts,function(c){return null!==c});a=dh(a)?null:a;a=[this.id_,this.label_,a];var b=jaa(a);return a=a.slice(0,b+1)};g.toString=function(){var a=this.toArray();return"("+ku(a,function(b){return dE(b)}).join(",")+")"};g.getId=function(){return this.id_};
g.getLabel=function(){return this.label_};g.getOptions=function(){return gh(this.opts)};g.getQuery=function(){return this.opts.query};
var YV=function(a){XV.call(this,a||"all")};hu(YV,XV);var x_b=function(){var a=(new YV("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=YV.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){void 0!==a?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setStarred=function(a){this.opts.starred=a};g.setLabel=function(a){YV.superClass_.setLabel.call(this,a);return this};
g.setQuery=function(a){YV.superClass_.setQuery.call(this,a);return this};g.setParent=function(a){YV.superClass_.setParent.call(this,a)};
var G_b=function(a,b){switch(a[0].getId().getSourceId()){case 13:return y_b(a,b);case 3:return z_b(a,b);case 10:return A_b(a,b,"upload");case 12:return B_b(a,b);case 2:return C_b(a,b);case 5:return D_b(a,b);case 9:return E_b(a,b);case 1:return oj(a[0],26)?F_b(a,b):A_b(a,b,"webcam");default:return{}}},C_b=function(a,b){a=a.map(function(c){var d=void 0;W(m(c,ev,21),12)&&(d="success");return{id:c.getId().getId(),serviceId:"docs",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),lastEditedUtc:c.getLastModifiedTimestamp(),
url:c.getUrl(),sizeBytes:hj(c,23),description:c.getDescription(),iconUrl:c.getIconUrl(),thumbnails:ZV(gv(c)),isShared:W(m(c,ev,21),1),downloadUrl:V(m(c,ev,21),10),embedUrl:V(c,13),copyable:W(m(c,ev,21),9),resourceKey:m(c,ev,21).getResourceKey(),uploadState:d}});return{action:b,docs:a,viewToken:$V("all","",{}),view:"all"}},D_b=function(a,b){a=a.map(function(c){var d=m(m(c,cv,15),Ru,1);Du(c,10,Ru,d);return{id:c.getId().getId(),serviceId:"web",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),
url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ZV(gv(c))}});return{action:b,docs:a,viewToken:$V("image-search","Search",{}),view:"image-search"}},E_b=function(a,b){a=a.map(function(c){return{serviceId:"url",name:gv(c)[0].getUrl().split("/").pop(),type:"photo",mimeType:c.getMimeType(),url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ZV(gv(c))}});
return{action:b,docs:a,viewToken:$V("url","By URL",{}),view:"url"}},F_b=function(a,b){a=a.map(function(c){return{id:c.getId().getId(),serviceId:"picasa",name:c.getName(),type:c.getType(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ZV(gv(c))}});return{action:b,docs:a,viewToken:$V("webcam","",{}),view:"webcam"}},A_b=function(a,b,c){var d=a.map(function(e){return{id:e.getId().getId(),serviceId:"photo",mimeType:e.getMimeType(),
name:e.getName(),type:e.getType(),sizeBytes:hj(e,23),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ZV(gv(e))}});a=new Set(a.map(function(e){return e.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:d,viewToken:$V(c,"",a),view:c}},z_b=function(a,b){var c=a.map(function(d){return{id:d.getId().getId(),serviceId:"picasa",mimeType:d.getMimeType(),name:gv(d)[0].getUrl().split("/").pop(),type:d.getType(),lastEditedUtc:d.getLastModifiedTimestamp(),
url:d.getUrl(),sizeBytes:hj(d,23),description:d.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ZV(gv(d))}});a=new Set(a.map(function(d){return d.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:c,viewToken:$V("photos","",a),view:"photos"}},y_b=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:gv(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:ZV(gv(e),"etjpg")}}),d={category:m(a[0],Yu,28).getCategory()};a=$V("et",V(m(a[0],Yu,28),2),d);return{action:b,docs:c,viewToken:a,view:"et"}},B_b=function(a,b){a=a.map(function(c){var d=lb(m(c,Xu,27),1)[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"}},$V=function(a,b,c){return{0:a,1:b,2:c}},ZV=function(a,b){b=void 0===
b?"":b;if(!a.length)return null;"etjpg"==b&&(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}})};
var H_b=function(){XV.call(this,"image-search")};U(H_b,XV);g=H_b.prototype;g.setType=function(a){this.opts.type=a;return this};g.setSize=function(a){this.opts.imgsz=a;return this};g.setColor=function(a){this.opts.imgcolor=a;return this};g.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){XV.prototype.setParent.call(this,a)};
var I_b=function(){XV.call(this,"maps")};U(I_b,XV);g=I_b.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setZoom=function(a){this.opts.zoom=a;return this};g.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){XV.prototype.setParent.call(this,a)};
var J_b=function(){XV.call(this,"photos")};U(J_b,XV);g=J_b.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setType=function(a){this.opts.type=a;return this};g.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){XV.prototype.setParent.call(this,a)};g.removeDuplicates=function(){this.opts.rdv=!0;return this};
var aW=function(){XV.call(this,"url")};U(aW,XV);aW.prototype.setType=function(a){this.opts.type=a;return this};aW.prototype.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};aW.prototype.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};aW.prototype.setParent=function(a){XV.prototype.setParent.call(this,a)};
var bW=function(){XV.call(this,"video-search")};U(bW,XV);bW.prototype.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};bW.prototype.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};bW.prototype.setParent=function(a){XV.prototype.setParent.call(this,a)};
var cW=function(){XV.call(this,"web")};U(cW,XV);cW.prototype.setLabel=function(a){XV.prototype.setLabel.call(this,a);return this};cW.prototype.setQuery=function(a){XV.prototype.setQuery.call(this,a);return this};cW.prototype.setParent=function(a){XV.prototype.setParent.call(this,a)};
var dW=function(){this.root_=void 0;this.items_=[];this.opts={}},K_b=function(a){switch(a){case "image-search":return new H_b;case "maps":return new I_b;case "photos":return new J_b;case "url":return new aW;case "video-search":return new bW;case "web":return new cW}return new XV(a)};dW.prototype.addView=function(a){this.items_.push("string"===typeof a?K_b(a):a);return this};
var L_b=function(a){return"("+ku(a.items_,function(b){return b.toString()}).join(",")+")"},M_b=function(a){a=ch(a.opts,function(b){return null!==b});return(a=dh(a)?null:a)?dE(pja(a,function(b){return b.toString()})):""};dW.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",L_b(this)],b=M_b(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return L_b(this)};
dW.prototype.toObject=function(){var a=ku(this.items_,function(b){return b instanceof dW?b.toObject():b.toArray()});return this.root_?{root:this.root_.toArray(),items:a,options:this.getOptions()}:a};var N_b=function(a,b){b=void 0===b?[]:b;a.items_.forEach(function(c){c instanceof dW?N_b(c,b):b.push(c)});return b};dW.prototype.getOptions=function(){return gh(this.opts)};
var O_b=function(a){this.obj_=a};g=O_b.prototype;g.value=function(){return this.obj_};g.setWidth=function(a){this.obj_.width=a;return this};g.getWidth=function(){return this.obj_.width};g.setHeight=function(a){this.obj_.height=a;return this};g.getHeight=function(){return this.obj_.height};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};
var P_b=function(a){this.obj_=a||{}};g=P_b.prototype;g.value=function(){return this.obj_};g.setUrl=function(a){this.obj_.url=a;return this};g.getUrl=function(){return this.obj_.url};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};g.setId=function(a){this.obj_.id=a;return this};g.getId=function(){return this.obj_.id};g.getContext=function(){return this.obj_.context};
var Q_b=function(a){a.obj_.attributes=a.obj_.attributes||{};return new O_b(a.obj_.attributes)},jWb=function(a){return(a=a.obj_.timeout)?a:null};
var R_b=function(){P_b.apply(this,arguments)};U(R_b,P_b);
var S_b=Fo(Go("https://apis.google.com/js/api.js")),W_b=function(a,b){var c=!1,d=T_b(a,b).then(function(f){c=!0;return f}),e=Vsb(5E3).then(function(){return c?T_b(a,b):U_b(b).then(function(f){return V_b(f,a)})});return Hsb([d,e])},T_b=function(a,b){return X_b(b).then(function(c){return V_b(c,a)})},V_b=function(a,b){var c=Qi(b,"gapi.")?b.slice(5):b;return a[c]?KD(a[c]):new JD(function(d,e){var f=ND(function(){e(Error("ce"))},3E4);a.load(b,{callback:function(){OD(f);d(a[c])},onerror:function(h){OD(f);
e(h)}})})},X_b=function(a){return a.gapi&&a.gapi.load?KD(a.gapi):U_b(a)},U_b=function(a){return WAa(S_b,{document:a.document}).then(function(){return a.gapi})},Y_b=function(){};Y_b.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return W_b(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));})};
var Z_b=function(){$C.call(this);this.gapiLoader_=new Y_b;this.origin_=null;this.gapiPickerIframeResolver_=Jsb();this.gapiIframesResolver_=Jsb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};U(Z_b,$C);
var $_b=function(a,b){var c=Qo("gapi.iframes",b);return c?(a=Date.now(),KD({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},a0b=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;$_b(a,zD(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var u=k.resolve,y=h;y=void 0===y?!1:y;var D={};D["host-message-handler"]=c;a.hostMessageHandlerInternal_=D;var I=TG(d);I=TG(I);I=Szb(tv(uv(new hp,I.scheme_),I.getDomain()),
I.port_).toString();a.origin_=I;I=(new R_b).setUrl(d);I.obj_.where=b;I.obj_.allowPost=y;I.obj_.messageHandlers=D;y=Qo("makeWhiteListIframesFilter",q)([a.origin_]);I.obj_.messageHandlersFilter=y;null!=e&&I.setId(e);null!=f&&(I.obj_.rpctoken=f);Q_b(I).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");Q_b(I).value().allow="camera";q=q.getContext().openChild(I.value());u.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
b0b=function(a,b){return Gsb([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=r(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Qo("makeWhiteListIframesFilter",c)([a.origin_])):Csb(Error("de"))})};Z_b.prototype.disposeInternal=function(){c0b(this);$C.prototype.disposeInternal.call(this)};var c0b=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};
var d0b=function(){this.nextId_=0};
var e0b=new Map([["birthday",14],["children",1],["dinner",2],["featured",3],["holiday",4],["nightlife",5],["other",6],["party",7],["school",8],["seasonal",9],["sport",10],["stationery",11],["travel",12],["wedding",13]]),f0b=new Set("all docs-images docs-images-and-videos docs-videos documents drawings folders forms pdfs presentations scripts sites spreadsheets tables".split(" ")),i0b=function(a,b,c,d){var e=xkb(wkb((new sv).setHost(20),a));a=[];try{for(var f=0;f<d.length;f++){var h=d[f],k=h[0],q=
h[1];switch(k){case "cropphoto":for(var u=(new pv).setId(2),y=new ov,D=r(Object.entries(q||{})),I=D.next();!I.done;I=D.next()){var N=r(I.value),L=N.next().value;N.next();switch(L){case "ctta":break;default:throw Error("ee`"+L+"`"+k);}}Cu(u,3,qv,y);e.addPostProcessor(u);break;default:throw Error("fe`"+k);}}c.forEach(function(S,X){switch(X){case "hostId".toString():yl(e,24,S);break;case "origin".toString():yl(e,27,S);break;case "title".toString():e.setTitle(S);break;case "hl".toString():e.setLocale(S);
break;case "multiselectEnabled".toString():"true"==S&&(S=new rv,vl(S,1,1),Db(e,3,S));break;case "authuser".toString():S=parseInt(S,10);if(isNaN(S))throw Error("ge");e.setAuthUser((new kv).setAuthUser(S));break;case "maxItems".toString():Xk(e,5,parseInt(S,10));break;case "profilePhoto".toString():e.setTitle("Select Profile Photo");S=e.addPostProcessor;X=(new pv).setId(2);var ka=new ov;ka=qo(ka,2,!0);X=Cu(X,3,qv,ka);S.call(e,X);e.addPostProcessor((new pv).setId(1));break;case "gmailDelegatorId".toString():S=
(new iv).setGmailDelegatorId(S);Db(e,29,S);break;case "minSize".toString():e.setMinSize(g0b(S));break;case "maxSize".toString():e.setMaxSize(g0b(S));break;case "view".toString():S=/\("([^"]*)",.*\)/.exec(S);"upload"==(null!=S&&1<S.length?S[1]:"")?e.setInitialView(1):e.setInitialView(0);break;case "pp".toString():case "dff".toString():case "relayUrl".toString():case "parent".toString():case "navHidden".toString():case "nav".toString():case "protocol".toString():case "actions".toString():case "thumbs".toString():case "tt".toString():case "odv".toString():case "newDriveView".toString():case "cropMode".toString():case "maxSizeBytes".toString():case "selectButtonLabel".toString():case "grugl".toString():break;
default:throw Error("he`"+X);}});a=h0b(b,e)}catch(S){return null}return(new Kv).setConfig(e).setSourceList(a)},g0b=function(a){var b=a.split("x");a=b[0];b=b[1];return(new lv).setWidth(parseInt(a,10)).setHeight(parseInt(b,10))},j0b=function(a){var b=a.getConfig().getBaseUrl();iu(b,"/")||(b+="/");b=TG(b);b.setPath(b.getPath()+"home");RG(b,"req",a.serialize());return b.toString()},l0b=function(a,b){switch(a.action){case "select-contacts":a=k0b(a.contacts);break;case "visibility":a=a.visible;a=(new Iv).setCommand(7).setVisible(a);
var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?b0b(b,a):KD()},k0b=function(a){if(!a||0==a.length)return null;var b=new Iv;b.setCommand(11);var c=new d0b;a.forEach(function(d){if(d.email){var e=(new fv).setName(d.name?d.name:d.email);var f=new Xu;d=qb(f,1,d.email);e=Db(e,27,d).setId((new Qu).setId(":"+(c.nextId_++).toString(36)).setSourceId(12))}else e=null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a},h0b=function(a,b){var c=new Map,d=new mv;N_b(a).forEach(function(e){var f=
new Bp,h=e.getOptions(),k=e.getId();if(null!=k&&f0b.has(k)){switch(k){case "all":break;case "docs-images":nv(d,1);nv(d,6);break;case "docs-images-and-videos":nv(d,2);nv(d,1);nv(d,6);break;case "docs-videos":nv(d,2);nv(d,6);break;case "documents":nv(d,3);nv(d,6);break;case "drawings":nv(d,12);nv(d,6);break;case "folders":nv(d,6);break;case "forms":nv(d,7);nv(d,6);break;case "pdfs":nv(d,9);nv(d,6);break;case "presentations":nv(d,5);nv(d,6);break;case "scripts":nv(d,10);nv(d,6);break;case "sites":nv(d,
8);nv(d,6);break;case "spreadsheets":nv(d,4);nv(d,6);break;case "tables":nv(d,11);nv(d,6);break;default:throw Error("ne`"+k);}if(Object.keys(h).length)15==h.sortKey?(f=yHa(),c.set(f.serialize(),f)):h.starred?(f=zHa(),c.set(f.serialize(),f)):h.td||h.dr?(f=AHa(),c.set(f.serialize(),f)):h.ownedByMe?(f=wHa(),c.set(f.serialize(),f)):(f=xHa(),c.set(f.serialize(),f));else{var q=void 0===q?!1:q;var u=void 0===u?null:u;f=new Ep;f.addSource(yHa());q&&(h=f.addSource,e=new Bp,q=new Cp,qo(q,14,!0),vl(q,4,1),Db(e,
3,q),e.setSourceId(2),e.setName("Suggested"),h.call(f,e));null!=u&&f.addSource(u);f.addSource(wHa());f.addSource(AHa());f.addSource(xHa());f.addSource(zHa());u=f.addSource;h=new Bp;e=new Cp;qo(e,12,!0);Db(h,3,e);h.setSourceId(2);h.setName("Computers");u.call(f,h);c.set(f.serialize(),f)}}else switch(k){case "contacts":f.setSourceId(12);if(0!=Object.keys(h||{}).length)throw Error("ie");c.set(f.serialize(),f);break;case "photos":m0b(h,c,d);break;case "upload":"docs"==h.query?(e=(f=h.parent)?[f]:[],q=
[],q=void 0===q?[]:q,e=void 0===e?[]:e,f=new Bp,u=f.setSourceId(2).setName("Upload"),h=new Cp,k=new Cv,q=ml(k,3,q),e=ml(q,1,e),h=Db(h,15,e),Db(u,3,h)):(f.setSourceId(10),f.setUploadSourceOptions(n0b(h,d)));c.set(f.serialize(),f);break;case "url":f.setSourceId(9);e.getLabel()&&f.setName(e.getLabel());nv(d,1);c.set(f.serialize(),f);break;case "webcam":f.setSourceId(1);switch(h.query){case "forms":case "spreadsheets":case "presentation":u=f,e=new Av,h=vl(e,1,1).setUploadSourceOptions(n0b(h,d)),Db(u,
16,h)}nv(d,1);c.set(f.serialize(),f);break;case "image-search":f.setSourceId(5);nv(d,1);c.set(f.serialize(),f);break;case "et":f.setSourceId(13);e.getLabel()&&f.setName(e.getLabel());u=new Dv;h=r(Object.entries(e.getOptions()||{}));for(e=h.next();!e.done;e=h.next())switch(q=r(e.value),e=q.next().value,q=q.next().value,e){case "category":if(e0b.has(q))u.setCategory(e0b.get(q));else throw Error("je`"+q);break;default:throw Error("ke`"+e);}nv(d,1);Db(f,13,u);c.set(f.serialize(),f);break;case null:break;
default:throw Error("le`"+e.getId());}});b.setItemType(ikb(d,Array.from(new Set(lb(d,1)))));return Array.from(c.values())},n0b=function(a,b){var c=new zv;a=r(Object.entries(a||{}));for(var d=a.next();!d.done;d=a.next()){var e=r(d.value);d=e.next().value;e=e.next().value;switch(d){case "query":switch(e){case "profile":vl(c,4,2);nv(b,1);break;case "photo":vl(c,4,1);nv(b,1);break;case "forms":vl(c,4,6);nv(b,1);break;case "spreadsheets":vl(c,4,7);nv(b,1);break;case "presentation":vl(c,4,8);nv(b,1);break;
default:throw Error("me`"+e);}break;case "data":for(d=r(Object.entries(e||{})),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;bj(c,2).set(e,f)}}}return c},m0b=function(a,b,c){var d=new Ep;if(Object.keys(a).length){if(a.allowedItemTypes.includes("photo")&&(d.addSource(BHa()),nv(c,1)),a.allowedItemTypes.includes("album")&&(d.addSource(CHa()),nv(c,14)),"videos-uploaded"==a.type||"videos-camerasync"==a.type)d.addSource(EHa()),nv(c,2)}else d=DHa(),nv(c,1),nv(c,14);d.getSourceList().forEach(function(e){b.set(e.serialize(),
e)})};
var o0b=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new dW};g=o0b.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getAppId=function(){return this.appId_};g.getBaseUrl=function(){return this.basePickerUrl_};g.getDomHelper=function(){return this.domHelper_};g.setAppId=function(a){this.appId_=a};g.setCallback=function(a){this.callback_=a;return this};
var p0b=function(a){o0b.call(this,a)};hu(p0b,o0b);
var eW=function(a){Uo.call(this);this.dom_=a||cp();this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};hu(eW,Uo);g=eW.prototype;g.idGenerator_=KU.getInstance();g.getId=function(){return this.id_||(this.id_=Fq(this.idGenerator_))};g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(fh(this.parent_.childIndex_,this.id_),wja(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};
g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new WG(this));return this.googUiComponentHandler_};g.setParent=function(a){if(this==a)throw Error("oe");if(a&&this.parent_&&this.id_&&DNb(this.parent_,this.id_)&&this.parent_!=a)throw Error("oe");this.parent_=a;eW.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};
g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("pe");eW.superClass_.setParentEventTarget.call(this,a)};g.getDomHelper=function(){return this.dom_};g.createDom=function(){this.element_=this.dom_.createElement("DIV")};g.render=function(a){if(this.inDocument_)throw Error("qe");this.element_||this.createDom();a?a.insertBefore(this.element_,null):this.dom_.document_.body.appendChild(this.element_);this.parent_&&!this.parent_.inDocument_||this.enterDocument()};
g.enterDocument=function(){this.inDocument_=!0;q0b(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){q0b(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);q0b(this,function(a){a.dispose()});this.element_&&BD(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;eW.superClass_.disposeInternal.call(this)};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("qe");if(0>a||a>(this.children_?this.children_.length:0))throw Error("re");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;za(this.children_)}else wja(this.childIndex_,(void 0).getId());(void 0).setParent(this);maa(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&&1==(void 0).element_.parentNode.nodeType&&(void 0).enterDocument()};g.getContentElement=function(){return this.element_};
g.hasChildren=function(){return!!this.children_&&0!=this.children_.length};var DNb=function(a,b){return a.childIndex_&&b?xja(a.childIndex_,b)||null:null},q0b=function(a,b){a.children_&&a.children_.forEach(b,void 0)};eW.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=DNb(this,c);c&&a&&(fh(this.childIndex_,c),za(this.children_,a),b&&(a.exitDocument(),a.element_&&BD(a.element_)),a.setParent(null))}if(!a)throw Error("se");return a};
eW.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();){var c=b,d=c.push;var e=this.removeChild(this.children_?this.children_[0]||null:null,a);d.call(c,e)}return b};
hu(FHa,Ap);
var r0b=function(a){Ap.call(this,"visibility");this.visible=a};hu(r0b,Ap);
var s0b=Fo(Go("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),t0b=Fo(Go("//apis.google.com/js/rpc.js")),Gp=null;
var fW=function(a){Uo.call(this);this.element_=a;a=lu?"focusout":"blur";this.listenKeyIn_=Vo(this.element_,lu?"focusin":"focus",this,!lu);this.listenKeyOut_=Vo(this.element_,a,this,!lu)};hu(fW,Uo);fW.prototype.handleEvent=function(a){var b=new gD(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};fW.prototype.disposeInternal=function(){fW.superClass_.disposeInternal.call(this);oD(this.listenKeyIn_);oD(this.listenKeyOut_);delete this.element_};
var gW=function(a,b,c){Uo.call(this);this.target=a;this.handle=b||a;this.limits=c||new EU(NaN,NaN,NaN,NaN);this.document_=sD(a);this.eventHandler_=new WG(this);aD(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Vo(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=u0b};hu(gW,Uo);
var u0b=da.document&&da.document.documentElement&&!!da.document.documentElement.setCapture&&!!da.document.releaseCapture;g=gW.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){gW.superClass_.disposeInternal.call(this);nD(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
g.startDrag=function(a){var b="mousedown"==a.type;if(this.dragging_||b&&(0!=a.event_.button||pu&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new hW("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(zD(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=yD(cp(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new hW("end",this,a.clientX,a.clientY,a,v0b(this,this.deltaX),w0b(this,this.deltaY),b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel")};
g.handleMove_=function(a){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(0<d*d+e*e)if(this.dispatchEvent(new hW("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=x0b(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new hW("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(y0b(this,a,b,c),a.preventDefault())};var x0b=function(a,b,c){var d=yD(cp(a.document_).document_);b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Wq(v0b(a,a.deltaX),w0b(a,a.deltaY))};gW.prototype.onScroll_=function(a){var b=x0b(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;y0b(this,a,b.x,b.y)};
var y0b=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new hW("drag",a,b.clientX,b.clientY,b,c,d))},v0b=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))},w0b=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(null!=a?a+c:Infinity,Math.max(null!=a?a:-Infinity,b))};gW.prototype.isDragging=function(){return this.dragging_};
var hW=function(a,b,c,d,e,f,h){bD.call(this,a);this.clientX=c;this.clientY=d;this.left=void 0!==f?f:b.deltaX;this.top=void 0!==h?h:b.deltaY};hu(hW,bD);
var iW=function(a){this.map_=new Map;var b=arguments.length;if(1<b){if(b%2)throw Error("Tc");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=iW.prototype;g.getCount=function(){return this.map_.size};g.getValues=function(){return Array.from(this.map_.values())};g.getKeys=function(){return Array.from(this.map_.keys())};g.containsKey=function(a){return this.map_.has(a)};g.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
g.equals=function(a,b){var c=this;b=void 0===b?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})};g.isEmpty=function(){return 0==this.map_.size};g.clear=function(){this.map_.clear()};g.remove=function(a){return this.map_.delete(a)};g.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};g.set=function(a,b){this.map_.set(a,b);return this};
g.addAll=function(a){if(a instanceof iW){a=r(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=r(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=r(Object.entries(a)),b=a.next();!b.done;b=a.next())c=r(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};g.forEach=function(a,b){var c=this;b=void 0===b?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};g.clone=function(){return new iW(this)};
g.toObject=function(){for(var a={},b=r(this.map_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a[c]=d}return a};
(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!da.requestAnimationFrame;++c)da.requestAnimationFrame=da[b+"RequestAnimationFrame"],da.cancelAnimationFrame=da[b+"CancelAnimationFrame"]||da[b+"CancelRequestAnimationFrame"];if(!da.requestAnimationFrame){var d=0;da.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return da.setTimeout(function(){e(f+h)},h)};da.cancelAnimationFrame||(da.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var z0b=[[],[]],A0b=0,B0b=!1,C0b=0,E0b=function(a,b){var c=C0b++,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(){0<arguments.length?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&0!=d.args.length?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,z0b[A0b].push(d));B0b||(B0b=!0,window.requestAnimationFrame(D0b))}},D0b=
function(){B0b=!1;var a=z0b[A0b],b=a.length;A0b=(A0b+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};
var F0b=lu?Fo(Go('javascript:""')):Fo(Go("about:blank"));yh(F0b);var G0b=lu?Fo(Go('javascript:""')):Fo(Go("javascript:undefined"));yh(G0b);
var H0b=function(a,b){this.element_=a;this.dom_=b};
var jW=function(a,b){eW.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=E0b({mutate:this.resizeBackground_},this)};hu(jW,eW);g=jW.prototype;g.focusHandler_=null;g.visible_=!1;g.bgEl_=null;g.bgIframeEl_=null;g.tabCatcherElement_=null;g.backwardTabWrapInProgress_=!1;g.getCssClass=function(){return"goog-modalpopup"};g.getBackgroundElement=function(){return this.bgEl_};
g.createDom=function(){jW.superClass_.createDom.call(this);var a=this.getElement();CU(a,Ui(this.getCssClass()).split(" "));a.tabIndex=0;IU(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=yh(F0b),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",IU(this.bgIframeEl_,!1),vXb(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+"-bg"),
IU(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),IU(this.tabCatcherElement_,!1),this.tabCatcherElement_.tabIndex=0,this.tabCatcherElement_.style.position="absolute")};g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
g.enterDocument=function(){if(this.bgIframeEl_){var a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgIframeEl_,a)}a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.bgEl_,a);jW.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new fW(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);I0b(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);yi(this.focusHandler_);jW.superClass_.exitDocument.call(this);BD(this.bgIframeEl_);BD(this.bgEl_);BD(this.tabCatcherElement_)};
g.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&I0b(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.resizeBackground_();this.reposition();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);J0b(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)kD(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_)kD(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 I0b=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new H0b(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],e;if(e=d!=a.element_)e=d.getAttribute("aria-hidden"),e=!(null==e||void 0==e?0:String(e));e&&(UI(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(c=0;c<a.hiddenElements_.length;c++)a.hiddenElements_[c].removeAttribute("aria-hidden");
a.hiddenElements_=null}};jW.prototype.setTransition=function(a){this.popupShowTransition_=a;this.bgHideTransition_=this.bgShowTransition_=this.popupHideTransition_=void 0};var J0b=function(a,b){a.bgIframeEl_&&IU(a.bgIframeEl_,b);a.bgEl_&&IU(a.bgEl_,b);IU(a.getElement(),b);IU(a.tabCatcherElement_,b)};g=jW.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){J0b(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&IU(this.bgIframeEl_,!1);this.bgEl_&&IU(this.bgEl_,!1);var a=this.getDomHelper().document_,b=wD(zD(a)||window),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_&&(IU(this.bgIframeEl_,!0),uXb(this.bgIframeEl_,c,a));this.bgEl_&&(IU(this.bgEl_,!0),uXb(this.bgEl_,c,a))};
g.reposition=function(){var a=this.getDomHelper().document_,b=zD(a)||window;if("fixed"==Hp(this.getElement(),"position"))var c=a=0;else c=yD(this.getDomHelper().document_),a=c.x,c=c.y;var d=Yq(this.getElement());b=wD(b);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);Zq(this.getElement(),a,c);Zq(this.tabCatcherElement_,a,c)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&ND(this.focusElement_,0,this)};
g.focusElement_=function(){try{lu&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};g.disposeInternal=function(){yi(this.popupShowTransition_);this.popupShowTransition_=null;yi(this.popupHideTransition_);this.popupHideTransition_=null;yi(this.bgShowTransition_);this.bgShowTransition_=null;yi(this.bgHideTransition_);this.bgHideTransition_=null;jW.superClass_.disposeInternal.call(this)};
var mW=function(a,b,c){jW.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=kW(kW(new lW,K0b,!0),L0b,!1,!0)};hu(mW,jW);g=mW.prototype;g.escapeToCancel_=!0;g.hasTitleCloseButton_=!0;g.modal_=!0;g.backgroundElementOpacity_=.5;g.title_="";g.dragger_=null;g.disposeOnHide_=!1;g.titleEl_=null;g.titleTextEl_=null;g.titleTextId_=null;g.titleCloseEl_=null;g.contentEl_=null;g.buttonEl_=null;g.getCssClass=function(){return this.class_};
g.setTitle=function(a){this.title_=a;this.titleTextEl_&&ED(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var M0b=function(a){a.getElement()||a.render();return a.getElement()};mW.prototype.getBackgroundElement=function(){this.getElement()||this.render();return mW.superClass_.getBackgroundElement.call(this)};mW.prototype.handleDrag=function(){};
var N0b=function(a,b){var c=Ui(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?CU(a.titleEl_,c):lXb(a.titleEl_,c));b&&!a.dragger_?(b=new gW(a.getElement(),a.titleEl_),a.dragger_=b,CU(a.titleEl_,c),Vo(a.dragger_,"start",a.setDraggerLimits_,!1,a),Vo(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=mW.prototype;
g.createDom=function(){mW.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"));jsb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));TI(this.titleTextEl_,"heading");TI(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;UI(this.titleCloseEl_,"label","Close");TI(a,"dialog");UI(a,"labelledby",this.titleTextId_||"");IU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());IU(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&vXb(a,
this.backgroundElementOpacity_)};
g.enterDocument=function(){mW.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_);N0b(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();TI(a,"dialog");""!==this.titleTextEl_.id&&UI(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()&&I0b(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);N0b(this,!1);mW.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),mW.superClass_.setVisible.call(this,a))};g.onShow=function(){mW.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){mW.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=wD(zD(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Yq(this.getElement());"fixed"==Hp(this.getElement(),"position")?this.dragger_.limits=new EU(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new EU(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){O0b(this)};var O0b=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new nW(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},P0b=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&IU(a.titleCloseEl_,a.hasTitleCloseButton_)};mW.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};mW.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;mW.superClass_.disposeInternal.call(this)};
mW.prototype.onButtonClick_=function(a){a:{for(a=a.target;null!=a&&a!=this.buttonEl_;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new nW(a,b))&&this.setVisible(!1)}};
mW.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if("keydown"==a.type)if(this.escapeToCancel_&&27==a.keyCode){var f=d&&d.cancelButton_;e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new nW(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(y){}ND(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)O0b(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=uD("BUTTON",d.element_);for(var q=0,u;u=k[q];q++)if(u.name==h||u.id==h){k=u;break a}k=null}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||"A"==e.tagName)&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new nW(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||O0b(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var nW=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};hu(nW,bD);var lW=function(a){iW.call(this);this.dom_=a||cp();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};hu(lW,iW);lW.prototype.clear=function(){iW.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};lW.prototype.set=function(a,b,c,d){iW.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var kW=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=lW.prototype;g.render=function(){if(this.element_){dp(this.element_,xt);var a=cp(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)}};g.getElement=function(){return this.element_};g.getDomHelper=function(){return this.dom_};g.setDefault=function(a){this.defaultButton_=a};g.getDefault=function(){return this.defaultButton_};
var K0b={key:"ok",caption:"OK"},L0b={key:"cancel",caption:"Cancel"},Q0b={key:"yes",caption:"Yes"},R0b={key:"no",caption:"No"},S0b={key:"save",caption:"Save"},T0b={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(kW(new lW,K0b,!0,!0),kW(kW(new lW,K0b,!0),L0b,!1,!0),kW(kW(new lW,Q0b,!0),R0b,!1,!0),kW(kW(kW(new lW,Q0b),R0b,!0),L0b,!1,!0),kW(kW(kW(new lW,T0b),S0b),L0b,!0,!0));
var U0b=function(a,b,c){mW.call(this,a,b,c)};hu(U0b,mW);
var oW=function(a,b){Uo.call(this);this.element_=a;a=CD(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&wXb(a);this.listenKey_=Vo(this.element_,nu?"DOMMouseScroll":"mousewheel",this,b)};hu(oW,Uo);
oW.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=V0b(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=V0b(-d.wheelDeltaX),c=V0b(-d.wheelDeltaY)):c=a):(a=d.detail,100<a?a=3:-100>a&&(a=-3),void 0!==d.axis&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);"number"===typeof this.maxDeltaX_&&(b=Math.min(Math.max(b,-this.maxDeltaX_),this.maxDeltaX_));"number"===typeof this.maxDeltaY_&&(c=Math.min(Math.max(c,-this.maxDeltaY_),this.maxDeltaY_));this.isRtl_&&(b=-b);b=new W0b(a,d,b,c);this.dispatchEvent(b)};
var V0b=function(a){return ou&&(pu||uib)&&0!=a%40?a:a/40};oW.prototype.disposeInternal=function(){oW.superClass_.disposeInternal.call(this);oD(this.listenKey_);this.listenKey_=null};var W0b=function(a,b,c,d){gD.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};hu(W0b,gD);
var X0b;
var pW=function(a,b,c,d,e,f,h){mW.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);Utb(a,"protocol");this.iframeManager_=new Z_b;this.targetId_=DC();this.rpcToken_=DC();this.useGapi_=!1;this.setUrl(a);this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;void 0!==d||void 0!==e?c=!0:(c=SG(TG(a),"hostId"),X0b||(X0b=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!X0b.has(c));
this.autoSizeDialog_=c;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(SG(TG(a),"hostId"),b="true"==SG(TG(this.url_),"grugl")?t0b:s0b,h=this.gadgetsDomHelper_,GHa(h)||(h=h||cp(document),c=h.createElement("SCRIPT"),zh(c,b),c.type="text/javascript",h.document_.body.appendChild(c)));b=null;h=a.indexOf("/picker?");-1<h?b=a.substring(0,h+8-1):iu(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()):dp(this.buttonEl_,xt),IU(this.buttonEl_,!!this.buttons_))};hu(pW,U0b);g=pW.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){pW.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new oW(a);aD(b,c);b.listen(c,"mousewheel",du(JHa,void 0,a)).listen(a,"scroll",du(JHa,void 0,a))};
g.render=function(a){var b=this;pW.superClass_.render.call(this,a);this.useGapi_?$_b(this.iframeManager_,window).then(function(){return Y0b(b)}).then(null,function(c){return void b.handleError_(c)}):Z0b(this)};
var Y0b=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);IU(b,!1);a.getContentElement().appendChild(b);return a0b(a.iframeManager_,b,function(c){var d=no(Jv,c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;var e=m(d,xv,2);d="";switch(e.getStatus()){case 2:d="cancel";break;case 1:d="picked";break;case 3:d="error"}e=e.getItemList();d=0===e.length?{action:d}:G_b(e,d);c.call(a,d);a.setVisible(!1);break;case 4:P0b(a),a.callback_({action:"loaded"})}},
a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();$0b(a);IU(a.iframe_.parentElement,!0);jXb(a.getElement(),"picker-dialog");a1b(a);return c})},Z0b=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Pja(a.iframe_,b1b(a));jXb(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void $0b(a)});a.iframe_.src=a.url_;
a1b(a)},d1b=function(a){c1b(a,du(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},a1b=function(a){var b=SG(TG(a.url_),"title");b&&a.setTitle(b)},b1b=function(a){return 7<=ma("Internet Explorer")&&Qi(a.url_,"https")?Fo(Go("https://about:blank")):lu?Fo(Go('javascript:""')):Fo(Go("about:blank"))},$0b=function(a){d1b(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};
pW.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var c1b=function(a,b){var c=a.gadgetsDomHelper_;HHa(function(){b(c.getWindow().gadgets.rpc)},c)};pW.prototype.setUrl=function(a){a=RG(new hp(a),"rpcService",this.targetId_);this.useGapi_=void 0!==SG(a,"v2");RG(a,"rpctoken",this.rpcToken_);NG(a,"rpctoken="+this.rpcToken_);uv(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};
pW.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&e1b(this)};pW.prototype.setCallback=function(a){this.callback_=a;c1b(this,du(function(b){b.register(this.targetId_,du(this.handlePickerAction_,this))},this))};
pW.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new r0b(this.isVisible())),e1b(this),P0b(this),this.getHandler().unlisten(this.getDomHelper().getWindow(),"keydown",this.handleKeydown_),this.iframe_.tabIndex=0);"picked"!=b&&"cancel"!=b||this.setVisible(!1);this.callback_(a)};var e1b=function(a){a.appId_&&a.sendCommand(new FHa(a.appId_,window.location.protocol+"//"+window.location.host))};g=pW.prototype;
g.setRelayUrl=function(a){c1b(this,du(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&l0b(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});c1b(this,du(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=zD(a)||window;if("true"==SG(TG(this.url_),"ignoreLimits"))a=new qD(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==SG(TG(this.url_),"shadeDialog")){var b=zXb(M0b(this),"margin"),c=wD(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 qD(0<a?a:0,0<c?c:0)}else{b=this.preferredDialogWidth_;if(b){b=Math.max(320,Math.min(1051,b));c=this.preferredDialogHeight_;
c||(c=wD(a),c=.85*c.height);var d=Math.max(320,Math.min(650,c))}else c=wD(a),b=.618*c.width,d=b<c.height?Math.round(Math.max(320,Math.min(650,.85*b))):Math.round(Math.max(320,Math.min(650,.85*c.height))),b=Math.round(d/.618);c=wD(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,320));a=new qD(b,d)}uXb(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==SG(TG(this.url_),"shadeDialog")){var a=Yq(this.getElement()),b=wD(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=zXb(M0b(this),"margin")){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=0<a?a:0;b=yD(this.getDomHelper().document_).y;Zq(this.getElement(),a,b)}else pW.superClass_.reposition.call(this)};
g.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}pW.superClass_.setVisible.call(this,a);this.sendCommand(new r0b(a))};
g.focus=function(){pW.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};
var qW=function(a){o0b.call(this,a);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};hu(qW,p0b);qW.prototype.disposeOnHide_=!1;qW.prototype.addPostProcessor=function(a){this.postProcessors_.push([a,{}])};
qW.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(NG(MG(TG(window.location.href)),"").setPath("/favicon.ico").toString());if(this.urlParamMap_.get("minimal"))throw Error("te");var a=new pW(f1b(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_);a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var g1b=function(a,b){a.urlParamMap_.set(b,"true");return a};g=qW.prototype;
g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setAuthUser=function(a){this.urlParamMap_.set("authuser",a);return this};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setEventId=function(a){this.urlParamMap_.set("eventId",a)};g.setExperiments=function(a){this.urlParamMap_.set("e",a.join(","))};
g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};g.setGmailDelegatorId=function(a){this.urlParamMap_.set("gmailDelegatorId",a);return this};var h1b=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=qW.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setInitialView=function(a){a instanceof XV?this.urlParamMap_.set("view",a.toString()):this.urlParamMap_.set("view",a)};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};
g.setMaxSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("ue`"+a+"`undefined");this.urlParamMap_.set("maxSize",a+"xundefined")};g.setMinSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("ve`"+a+"`undefined");this.urlParamMap_.set("minSize",a+"xundefined")};g.setSecretToken=function(){return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};
g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};g.setUser=function(a){this.urlParamMap_.set("user",a)};
var f1b=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",dE(a.postProcessors_));a.urlParamMap_.set("nav",L_b(a.nav_));var b=new hp(a.getBaseUrl());a.urlParamMap_.forEach(function(e,f){RG(b,f,e)});var c=i0b(a.getBaseUrl(),a.nav_,a.urlParamMap_,a.postProcessors_);if(null!==c){RG(b,"amc","true");var d=!1;switch(a.urlParamMap_.get("hostId")){case "gmail-to":case "og":case "hangouts-profile-picture":case "testing":case "youtube-video-importer":case "ritz":case "punch":case "freebird-themes":case "freebird":case "atariImage":case "homeroom-doc-select":case "homeroom-doc-attach":d=!0}d&&
RG(b,"v2",j0b(c))}return b};
var rW=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new Vw;this.onCloneBlob=new Vw;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
rW.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=h1b(g1b(g1b(g1b(g1b((new qW(this.onePickUrl)).addView(x_b().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&"picked"===c.action)for(var d=r(c.docs),e=d.next();!e.done;e=d.next())e=new u_b(e.value),c.extraUserInputs.isAttachment&&e.encryptedBlobId?(e=new v_b(e),w_b(e,a.attachmentsApi),
a.onCloneBlob.emit(e)):a.onPickDoc.emit(e)}).setOrigin(b)).setSecretToken(this.onePickSecretToken).build()}this.drivePicker.setVisible(!0)};rW.\u0275fac=function(a){return new (a||rW)(C(qH),C(IR))};
rW.\u0275cmp=w({type:rW,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"disabled","click"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"button",1),J("click",function(){return b.showDialog()}),H(2,"mat-icon",2),G()());a&2&&(B(1),E("disabled",
b.disabled))},dependencies:[FB,hF,wF],encapsulation:2});
var sW=function(a,b,c){qI.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new Vw;this.el=a.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");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)};
U(sW,qI);sW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&i1b(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){i1b(a,2)}))};sW.prototype.onInput=function(){i1b(this,1)};
var i1b=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=r("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=Jp(d.getPropertyValue("border-top-width"))+Jp(d.getPropertyValue("padding-top"))+c.scrollHeight+Jp(d.getPropertyValue("padding-bottom"))+Jp(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=Jp(d.getPropertyValue("max-height")),d=Jp(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})))};sW.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);qI.prototype.ngOnDestroy.call(this)};sW.\u0275fac=function(a){return new (a||sW)(C(sd),C(mM),C(YO))};
sW.\u0275dir=w({type:sW,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[ee]});
var j1b=["el"],tW=function(a,b){this.clipboard=a;this.snackBar=b;this.opened=!1};tW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};tW.prototype.hide=function(){this.opened=!1};tW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};tW.\u0275fac=function(a){return new (a||tW)(C(cT),C(uK))};
tW.\u0275cmp=w({type:tW,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&Ef(j1b,7);if(a&2){var c;Df(c=Gf())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},ngContentSelectors:["*"],decls:8,vars:3,consts:[["cdkOverlayOrigin","","aria-haspopup","true",3,"click"],["trigger","cdkOverlayOrigin"],["svgIcon","link-off",1,"broken","icon-s"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],
[1,"b-bubble",3,"clickOutside"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"]],template:function(a,b){a&1&&(Ae(),F(0,"a",0,1),J("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),F(2,"b-glue"),H(3,"mat-icon",2),G(),F(4,"span",null,3),Be(6),G()(),M(7,MHa,4,1,"ng-template",4));if(a&2){var c=Fe(1);B(7);E("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},
dependencies:[iB,hB,oQ,UO,hF,FB,wF],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.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(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 uW=function(){this.checked=!1};uW.\u0275fac=function(a){return new (a||uW)};uW.\u0275cmp=w({type:uW,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked"},decls:1,vars:2,consts:[["gmat-checkbox","",3,"disabled","checked"]],template:function(a,b){a&1&&H(0,"mat-checkbox",0);a&2&&E("disabled",!0)("checked",b.checked)},dependencies:[BO],encapsulation:2,changeDetection:0});
var k1b=["el"],vW=function(a,b,c){this.domSafe=a;this.clipboard=b;this.snackBar=c;this.destroyed$=new T.ReplaySubject;this.opened=!1};vW.prototype.ngOnInit=function(){};vW.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(fg(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};vW.prototype.ngOnDestroy=function(){this.destroyed$.next()};vW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var l1b=function(a){var b=a.getNgContentParentEl(),c;a:{for(c=b.firstChild;c;){if(c.nodeType!==Node.TEXT_NODE){c=!1;break a}c=c.nextSibling}c=!0}return!c||b.textContent!==a.originalHref};vW.prototype.hide=function(){this.opened=!1};var OHa=function(a,b){LHa(b)||(b.preventDefault(),b.stopPropagation(),nP(a.domSafe,a.href))};vW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};
var QHa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},PHa=function(a,b){if(b.shiftKey&&"Tab"===b.key&&(b.preventDefault(),a=a.cdkConnectedOverlay.overlayRef.overlayElement)){var c=a.querySelector("button");c&&setTimeout(function(){c.focus()})}};vW.\u0275fac=function(a){return new (a||vW)(C(mP),C(cT),C(uK))};
vW.\u0275cmp=w({type:vW,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(Ef(k1b,7),Ef(iB,7));if(a&2){var c;Df(c=Gf())&&(b.el=c.first);Df(c=Gf())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},ngContentSelectors:["*"],decls:7,vars:7,consts:[["rel","noopener noreferrer nofollow","cdkOverlayOrigin","",1,"keep-focus-ring",3,"href","click"],["trigger","cdkOverlayOrigin"],[4,"ngIf"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass",
"tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["svgIcon","link",1,"icon-s"],[1,"b-bubble",3,"clickOutside"],[1,"gmat-caption"],["target","_blank","rel","noopener noreferrer nofollow",1,"keep-focus-ring",3,"href","click","keydown"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"keydown.Tab","click"],["svgIcon","copy"]],template:function(a,b){a&1&&(Ae(),F(0,"a",0,1),J("click",function(d){LHa(d)||
(d.preventDefault(),d.stopPropagation(),l1b(b)?b.opened=!b.opened:OHa(b,d))}),M(2,NHa,2,0,"b-glue",2),F(3,"span",null,3),Be(5),G()(),M(6,RHa,6,2,"ng-template",4));if(a&2){var c=Fe(1);pe("needs-user-confirm",l1b(b));E("href",b.originalHref,Qd);B(2);E("ngIf",l1b(b));B(4);E("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[Gx,iB,hB,oQ,UO,hF,FB,wF],styles:[".tooltip-panel{display:inline-block;margin:.1em}[_nghost-%COMP%] > a.needs-user-confirm[_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%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}"],
changeDetection:0});
var m1b=["child"],wW=function(a){this.codefont=a};wW.prototype.ngOnInit=function(){};wW.prototype.ngOnChanges=function(){Ip(this.child.nativeElement,this.content.getContent())};wW.\u0275fac=function(a){return new (a||wW)(C(qQ))};
wW.\u0275cmp=w({type:wW,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&Ef(m1b,7);if(a&2){var c;Df(c=Gf())&&(b.child=c.first)}},inputs:{content:"content"},features:[Fc],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),P(2,"async"),G());a&2&&pe("codefont",Q(2,2,b.codefont.codefont$))},dependencies:[Tx],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});
var xW=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(R(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),Sf());this.lastPublishedMarkdown$=this.textDisplayPreferences$.pipe(R(function(c){return c.lastPublishMode===DBb}),Sf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(R(function(c){return c.commentDisplayOverride}),Sf())};
xW.\u0275fac=function(a){return new (a||xW)(t(qH),t(PI))};xW.\u0275prov=hc({token:xW,factory:xW.\u0275fac,providedIn:"root"});
var yW=function(){};yW.prototype.visit=function(){};yW.\u0275fac=function(a){return new (a||yW)};yW.\u0275prov=hc({token:yW,factory:yW.\u0275fac,providedIn:"root"});
var n1b=["el"],zW=function(a){this.issueReferenceResolver=a};zW.prototype.ngOnInit=function(){};zW.prototype.visit=function(a){if(!LHa(a))if(this.commentNumber)this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+this.commentNumber,event:a});else{var b=this.href.indexOf("#");if(-1!==b&&(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})}};
zW.\u0275fac=function(a){return new (a||zW)(C(yW))};zW.\u0275cmp=w({type:zW,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&Ef(n1b,7);if(a&2){var c;Df(c=Gf())&&(b.el=c.first)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},ngContentSelectors:["*"],decls:3,vars:1,consts:[[3,"href","click"],["el",""]],template:function(a,b){a&1&&(Ae(),F(0,"a",0,1),J("click",function(c){return b.visit(c)}),Be(2),G());a&2&&E("href",b.href,Qd)},encapsulation:2,changeDetection:0});
var AW=function(){this.isMentioningMe=!1};AW.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};AW.\u0275fac=function(a){return new (a||AW)};
AW.\u0275cmp=w({type:AW,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},decls:6,vars:5,consts:[[1,"mention",3,"onedevHovercardTrigger"],["el",""],["card",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"span",0,1),O(2),G(),F(3,"onedev-hovercard",null,2),H(5,"b-issue-person-card",3),G());if(a&2){var c=Fe(4);pe("me",b.isMentioningMe);E("onedevHovercardTrigger",c);B(2);Ge("@",b.username,"");B(3);E("email",b.email)}},dependencies:[hS,fN,jN],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 o1b=Symbol(),p1b=Symbol(),q1b=Symbol(),r1b=Symbol(),s1b=Symbol(),t1b=Symbol(),BW=function(a,b,c,d){this.componentFactoryResolver=a;this.appRef=b;this.flags=c;this.session=d;this.outlets=[];this.secureImageRefs=[];this.mentionChipRefs=[];this.checkboxRefs=[];this.externalHyperlinkRefs=[];this.brokenLinkRefs=[];this.issueReferenceRefs=[]};BW.prototype.ngOnDestroy=function(){u1b(this)};
var v1b=function(a){a=a.querySelectorAll("*");for(var b=0;b<a.length;b++){var c=a[b],d=c.dataset.bId;d&&(c.id=d)}},x1b=function(a,b,c){b=b.querySelectorAll("*[data-b-widget]");for(var d=0;d<b.length;d++){var e=b[d];switch(e.dataset.bWidget){case "image":var f=a,h=c,k=e.dataset.bImgSrc,q=e.dataset.bImgRedirectedSrc;SHa(e);if(k){var u=e.dataset.bImgAlt;if(sH(f.flags.session,"enableMarkdownInlineImages"))e=new dB(e,f.componentFactoryResolver,f.appRef,h.injector),f.outlets.push(e),e=e.attach(new aB(bP,
h)),f.secureImageRefs.push(e),e=e.instance,e.src=k,u&&(e.alt=u);else{var y=document.createElement("a");u?y.appendChild(document.createTextNode(u)):y.appendChild(document.createTextNode(k));e.appendChild(y);w1b(f,y,k,q||k,h)}}break;case "checkbox":h=a;f=c;u=null!=e.dataset.bCheckboxChecked;SHa(e);e=new dB(e,h.componentFactoryResolver,h.appRef,f.injector);h.outlets.push(e);e=e.attach(new aB(uW,f));h.checkboxRefs.push(e);e.instance.checked=u;break;case "url":h=a;u=c;f=e.dataset.bOriginalHref;k=e.dataset.bRedirectedHref;
f&&k&&(e.removeAttribute("href"),w1b(h,e,f,k,u));break;case "broken-url":if(h=e.dataset.bOriginalHref)for(u=a,f=h,k=c,h=Array.from(e.childNodes),e=new dB(e,u.componentFactoryResolver,u.appRef,k.injector),u.outlets.push(e),e=e.attach(new aB(tW,k)),u.brokenLinkRefs.push(e),e=e.instance,e.originalHref=f,e=e.getNgContentParentEl(),h=r(h),u=h.next();!u.done;u=h.next())e.appendChild(u.value);break;case "mention":a.session.isInternalSession()&&(k=void 0,h=a,f=c,u="","@"===(null==(k=e.textContent)?void 0:
k[0])&&(u=e.textContent.slice(1)),SHa(e),e=new dB(e,h.componentFactoryResolver,h.appRef,f.injector),h.outlets.push(e),e=e.attach(new aB(AW,f)),h.mentionChipRefs.push(e),e=e.instance,e.email=u,e.isMentioningMe=h.session.getUserEmail()===u);break;case "issue-reference":if(u=e.href,f=e.dataset.bIssueId,k=e.dataset.bCommentNumber,u&&f){q=void 0;h=a;f=Number(f);y=Number(k);var D=c;k=Array.from(e.childNodes);var I=document.createElement("span");null==(q=e.parentNode)||q.insertBefore(I,e);q=new dB(I,h.componentFactoryResolver,
h.appRef,D.injector);h.outlets.push(q);q=q.attach(new aB(zW,D));h.issueReferenceRefs.push(q);h=q.instance;h.href=u;h.issueId=f;h.commentNumber=y;h=h.el.nativeElement;u=r(k);for(f=u.next();!f.done;f=u.next())h.appendChild(f.value);e.remove()}}}},w1b=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=new dB(b,a.componentFactoryResolver,a.appRef,e.injector);a.outlets.push(b);e=b.attach(new aB(vW,e));a.externalHyperlinkRefs.push(e);a=e.instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=
r(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)},y1b=function(a){a=a.querySelectorAll("a");for(var b=0;b<a.length;b++){var c=a[b];c.getAttribute("target")||c.setAttribute("target","_self")}},z1b=function(a){a=a.querySelectorAll("table");for(var b=0;b<a.length;b++){var c=a[b];if(c.parentNode){var d=document.createElement("div");d.classList.add("table-overflow");c.parentNode.insertBefore(d,c);d.appendChild(c)}}},u1b=function(a){for(var b=r(a.outlets),c=b.next();!c.done;c=b.next())c.value.dispose();
a.outlets=[];a.secureImageRefs=[];a.mentionChipRefs=[];a.checkboxRefs=[];a.externalHyperlinkRefs=[];a.brokenLinkRefs=[];a.issueReferenceRefs=[]};BW.prototype[o1b]=function(){return this.outlets.slice()};BW.prototype[p1b]=function(){return this.secureImageRefs.slice()};BW.prototype[q1b]=function(){return this.checkboxRefs.slice()};BW.prototype[r1b]=function(){return this.externalHyperlinkRefs.slice()};BW.prototype[s1b]=function(){return this.brokenLinkRefs.slice()};BW.prototype[t1b]=function(){return this.issueReferenceRefs.slice()};
BW.\u0275fac=function(a){return new (a||BW)(t(Wv),t(xx),t(xW),t(qH))};BW.\u0275prov=hc({token:BW,factory:BW.\u0275fac});
var A1b=["child"],B1b=Symbol(),CW=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};CW.prototype.ngOnInit=function(){};CW.prototype.ngOnChanges=function(){u1b(this.dynamicComponents);var a=this.child.nativeElement;Ip(a,this.content.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;v1b(a);x1b(b,a,c);y1b(a);z1b(a)};CW.prototype.ngOnDestroy=function(){u1b(this.dynamicComponents)};CW.prototype[B1b]=function(){return this.dynamicComponents};
CW.\u0275fac=function(a){return new (a||CW)(C(BW,2),C(qQ),C(Bf))};
CW.\u0275cmp=w({type:CW,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&Ef(A1b,7);if(a&2){var c;Df(c=Gf())&&(b.child=c.first)}},inputs:{content:"content"},features:[Je([{provide:BW,useClass:BW}]),Fc],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),P(2,"async"),G());a&2&&pe("codefont",Q(2,2,b.codefont.codefont$))},dependencies:[Tx],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}/*# sourceMappingURL=markdown_format_presenter.css.map */\n"],encapsulation:2,
changeDetection:0});
var C1b=["child"],D1b=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},DW=function(a){this.codefont=a};DW.prototype.ngOnInit=function(){};DW.\u0275fac=function(a){return new (a||DW)(C(qQ))};
DW.\u0275cmp=w({type:DW,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},decls:3,vars:5,consts:[[1,"type-m"],[4,"ngFor","ngForOf"],[3,"section"]],template:function(a,b){a&1&&(F(0,"div",0),P(1,"async"),M(2,THa,2,1,"ng-container",1),G());a&2&&(pe("codefont",Q(1,3,b.codefont.codefont$)),B(2),E("ngForOf",b.content.getPlainSectionList()))},dependencies:function(){return[Kx,EW,Tx]},styles:[D1b()],changeDetection:0});var EW=function(){};EW.prototype.ngOnInit=function(){};
EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275cmp=w({type:EW,selectors:[["b-plain-format-section"]],inputs:{section:"section"},decls:3,vars:2,consts:[[3,"section",4,"ngIf"],[3,"section"]],template:function(a,b){a&1&&(ve(0),M(1,UHa,1,1,"b-plain-format-quoted-section",0),M(2,VHa,1,1,"b-plain-format-unquoted-section",0),we());a&2&&(B(1),E("ngIf",b.section.getIsQuoted()),B(1),E("ngIf",!b.section.getIsQuoted()))},dependencies:function(){return[Gx,FW,GW]},encapsulation:2,changeDetection:0});
var FW=function(){this.showQuote=!1;E1b++;this.childId="plainFormatQuotedSection"+E1b};FW.prototype.ngOnInit=function(){};FW.prototype.ngOnChanges=function(){WHa(this)};var WHa=function(a){var b=a.child.nativeElement;a.showQuote?Ip(b,a.section.getContent()):KHa(b)};FW.\u0275fac=function(a){return new (a||FW)};
FW.\u0275cmp=w({type:FW,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&Ef(C1b,7);if(a&2){var c;Df(c=Gf())&&(b.child=c.first)}},inputs:{section:"section"},features:[Fc],decls:5,vars:3,consts:[["class","showhide muted","tabindex","0","role","button","aria-expanded","false",3,"click",4,"ngIf"],["class","showhide muted","tabindex","0","role","button","aria-expanded","true",3,"click",4,"ngIf"],[1,"child",3,"id"],["child",""],["tabindex","0","role","button","aria-expanded","false",
1,"showhide","muted",3,"click"],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted",3,"click"]],template:function(a,b){a&1&&(F(0,"div"),M(1,XHa,2,1,"a",0),M(2,YHa,2,1,"a",1),H(3,"div",2,3),G());a&2&&(B(1),E("ngIf",!b.showQuote),B(1),E("ngIf",b.showQuote),B(1),E("id",b.childId))},dependencies:[Gx],styles:[D1b()],changeDetection:0});var E1b=0,GW=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};GW.prototype.ngOnInit=function(){};
GW.prototype.ngOnChanges=function(){u1b(this.dynamicComponents);var a=this.child.nativeElement;Ip(a,this.section.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;v1b(a);x1b(b,a,c);y1b(a);z1b(a)};GW.\u0275fac=function(a){return new (a||GW)(C(BW,2),C(Bf))};
GW.\u0275cmp=w({type:GW,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&Ef(C1b,7);if(a&2){var c;Df(c=Gf())&&(b.child=c.first)}},inputs:{section:"section"},features:[Je([{provide:BW,useClass:BW}]),Fc],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&H(0,"div",0,1)},encapsulation:2,changeDetection:0});
var HW=function(){};HW.prototype.ngOnInit=function(){};HW.\u0275fac=function(a){return new (a||HW)};
HW.\u0275cmp=w({type:HW,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"content"]],template:function(a,b){a&1&&(M(0,ZHa,2,1,"ng-container",0),M(1,$Ha,2,1,"ng-container",0),M(2,aIa,2,1,"ng-container",0));a&2&&(E("ngIf",b.formattedComment.getLiteralFormat()),B(1),E("ngIf",b.formattedComment.getMarkdownFormat()),B(1),E("ngIf",b.formattedComment.getPlainFormat()))},dependencies:[Gx,wW,CW,DW],encapsulation:2,changeDetection:0});
var IW=function(a){Z.call(this,a)};U(IW,Z);g=IW.prototype;g.getFormattingMode=function(){return Y(this,1,0)};g.setFormattingMode=function(a){return l(this,1,a)};g.getSource=function(){return V(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return gj(this,2)};g.getIssueId=function(){return hj(this,3)};g.setIssueId=function(a){return l(this,3,a)};g.getIdPrefix=function(){return V(this,4)};g.setIdPrefix=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{formattingMode:n(p(this,1)),source:n(p(this,2)),issueId:n(p(this,3)),idPrefix:n(p(this,4)),audience:n(p(this,6))}:void 0;return a};IW.messageId="b.FormatCommentRequest";
var JW=function(a){Z.call(this,a,-1,F1b)};U(JW,Z);JW.prototype.getFormattedComment=function(){return m(this,gn,1)};JW.prototype.getMentionsList=function(){return tb(this,aK,2)};var F1b=[2];JW.prototype.toObject=function(){var a=null!=this?{formattedComment:wHb(void 0,this.getFormattedComment()),mentionsList:Eb(this.getMentionsList(),kIb)}:void 0;return a};JW.messageId="b.FormatCommentResponse";
var KW=function(a){this.executor=a};KW.prototype.format=function(a){return 3===a.formattingMode||""===a.comment.trim()?bIa(a):G1b(this,a).pipe(R(function(b){return b.getFormattedComment()||new gn}))};
var H1b=function(a,b){if(3===b.formattingMode||""===b.comment.trim())return(0,T.of)([]);var c=new IW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=$k(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);c.setIdPrefix(b.idPrefix);return G1b(a,b).pipe(R(function(e){return e.getMentionsList().map(function(f){return Tl(f.getMentionedUser())||""})}))},G1b=function(a,b){var c=new IW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=$k(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);
c.setIdPrefix(b.idPrefix);return a.executor.post({url:"action/formatComment",body:c,responseConstructor:JW})};KW.\u0275fac=function(a){return new (a||KW)(t(hI))};KW.\u0275prov=hc({token:KW,factory:KW.\u0275fac,providedIn:"root"});
var LW=function(a){qI.call(this);var b=this;this.formatter=a;this.issueId=0;this.audience=2;this.formattingMode=3;this.params$=new T.ReplaySubject(1);this.formattedResult$=this.params$.pipe(Qf(200),eg(function(c){return b.formatter.format(c).pipe(I1b,Pf(function(){var d=wsa(c.comment);return(0,T.of)({formattedComment:d,isFallback:!0})}))}))};U(LW,qI);LW.\u0275dir=qI.\u0275dir;
LW.prototype.ngOnInit=function(){var a=this;this.comment$&&this.subscriptions.add(this.comment$.subscribe(function(b){a.params$.next({comment:b,issueId:a.issueId,audience:null!=a.audience?a.audience:2,formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};LW.prototype.ngOnChanges=function(){null!=this.comment&&this.params$.next({comment:this.comment,issueId:this.issueId,audience:null!=this.audience?this.audience:2,formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
LW.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};LW.\u0275fac=function(a){return new (a||LW)(C(KW))};
LW.\u0275cmp=w({type:LW,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[ee,Fc],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(M(0,cIa,3,5,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.formattedResult$))},dependencies:[Gx,HW,Tx],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:#fce8e6;background-color:var(--bad-bg);box-shadow:inset 0 0 0 2px #ea4335}[_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:transparent}\n/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var I1b=R(function(a){return{formattedComment:a,isFallback:!1}});
var MW=function(a,b,c){qI.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new Vw;this.checkedSubject=new T.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(fg(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(fg(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};U(MW,qI);MW.\u0275dir=qI.\u0275dir;MW.prototype.ngOnInit=function(){null!=this.initialValue?this.checkedSubject.next(2===this.initialValue):this.flags.lastPublishedMarkdown$.pipe(fg(this.destroyed$)).subscribe(this.checkedSubject)};MW.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next(2===this.initialValue)};MW.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(fg(this.destroyed$)).subscribe()};
MW.\u0275fac=function(a){return new (a||MW)(C(PI),C(xW),C(kP))};
MW.\u0275cmp=w({type:MW,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[ee,Fc],decls:4,vars:4,consts:[["gmat-checkbox","","aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"checked","change"],["mat-icon-button","","matTooltip","Markdown Help","class","help small","aria-label","Markdown Help","target","_blank",3,"href","disableRipple",4,"ngIf"],["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&&(F(0,"mat-checkbox",0),J("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?DBb:e?e:EBb;b.save({lastPublishMode:d});b.change.emit(nna(d))}),P(1,"async"),O(2," Markdown "),G(),M(3,dIa,2,2,"a",1));if(a&2){var c;E("checked",null!==(c=Q(1,2,b.checkedSubject))&&void 0!==c?c:!1);B(3);E("ngIf",b.mdHelpLink)}},dependencies:[BO,Gx,hF,GB,wF,Tx],
encapsulation:2,changeDetection:0});
var NW=function(a,b){qI.call(this);var c=this;this.appEvents=b;this.init=new Vw;a.textDisplayPreferencesSubject$.pipe(fg(this.destroyed$)).subscribe(function(d){switch(d.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":c.formattingModeOverride=3;break;case "MARKDOWN_FORMATTING_MODE":c.formattingModeOverride=2;break;case "PLAIN_FORMATTING_MODE":c.formattingModeOverride=1;break;case void 0:c.formattingModeOverride=void 0;break;default:ph(d.commentDisplayOverride)}})};U(NW,qI);NW.\u0275dir=qI.\u0275dir;
NW.prototype.ngOnInit=function(){};NW.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?1:2;this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};NW.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};NW.\u0275fac=function(a){return new (a||NW)(C(PI),C(FK))};
NW.\u0275cmp=w({type:NW,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[ee,Fc],decls:5,vars:2,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment",4,"ngIf","ngIfElse"],["livePreview",""],[3,"formattedComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),M(2,
eIa,1,1,"b-formatted-comment-presenter",2),G()(),M(3,fIa,1,5,"ng-template",null,3,Mf));if(a&2){var c=Fe(4);B(2);if(a=b.note.formattedComment)a=b.note.formattedComment,a=!a||b.formattingModeOverride?!1:a.hasLiteralFormat()&&3===b.formattingMode||a.hasPlainFormat()&&1===b.formattingMode||a.hasMarkdownFormat()&&2===b.formattingMode?!0:!1;E("ngIf",a)("ngIfElse",c)}},dependencies:[Gx,HW,LW],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 J1b=new od("MatInkBarPositioner",{providedIn:"root",factory:gIa}),OW=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},K1b=function(a,b){a.show();a._ngZone.onStable.pipe(Tf()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})};OW.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};
OW.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};OW.\u0275fac=function(a){return new (a||OW)(C(sd),C(mg),C(J1b),C(iw,8))};OW.\u0275dir=w({type:OW,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&pe("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});
var L1b=Hh("translateTab",[Kh("center, void, left-origin-center, right-origin-center",Jh({transform:"none"})),Kh("left",Jh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Kh("right",Jh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Lh("* => left, * => right, left => center, right => center",Ih("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Lh("void => left-origin-center",[Jh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
Ih("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Lh("void => right-origin-center",[Jh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Ih("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);
var M1b=function(a){return{animationDuration:a}},N1b=function(a,b){return{value:a,params:b}},PW=function(a,b,c,d){eB.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=T.Subscription.EMPTY};U(PW,eB);
PW.prototype.ngOnInit=function(){var a=this;eB.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(dg(this._host._isCenterPosition(this._host._position))).subscribe(function(b){b&&!a.hasAttached()&&a.attach(a._host._content)});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a.detach()})};PW.prototype.ngOnDestroy=function(){eB.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
PW.\u0275fac=function(a){return new (a||PW)(C(Wv),C(Bf),C(dc(function(){return QW})),C(mi))};PW.\u0275dir=w({type:PW,selectors:[["","matTabBodyHost",""]],features:[ee]});
var RW=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=T.Subscription.EMPTY;this._translateTabComplete=new T.Subject;this._onCentering=new Vw;this._beforeCentering=new Vw;this._afterLeavingCenter=new Vw;this._onCentered=new Vw(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(Sf(function(e,f){return e.fromState===
f.fromState&&e.toState===f.toState})).subscribe(function(e){d._isCenterPosition(e.toState)&&d._isCenterPosition(d._position)&&d._onCentered.emit();d._isCenterPosition(e.fromState)&&!d._isCenterPosition(d._position)&&d._afterLeavingCenter.emit()})};g=RW.prototype;g.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))};g.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();this._translateTabComplete.complete()};
g._onTranslateTabStarted=function(a){a=this._isCenterPosition(a.toState);this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};g._isCenterPosition=function(a){return"center"==a||"left-origin-center"==a||"right-origin-center"==a};
g._computePositionAnimationState=function(a){a=void 0===a?this._getLayoutDirection():a;this._position=0>this._positionIndex?"ltr"==a?"left":"right":0<this._positionIndex?"ltr"==a?"right":"left":"center"};g._computePositionFromOrigin=function(a){var b=this._getLayoutDirection();return"ltr"==b&&0>=a||"rtl"==b&&0<a?"left-origin-center":"right-origin-center"};oi.Object.defineProperties(RW.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
RW.\u0275fac=function(a){return new (a||RW)(C(sd),C(vA,8),C(zx))};RW.\u0275dir=w({type:RW,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var QW=function(a,b,c){RW.call(this,a,b,c)};U(QW,RW);QW.\u0275dir=RW.\u0275dir;
QW.\u0275fac=function(a){return new (a||QW)(C(sd),C(vA,8),C(zx))};
QW.\u0275cmp=w({type:QW,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&Ef(eB,5);if(a&2){var c;Df(c=Gf())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],features:[ee],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),M(2,hIa,0,0,"ng-template",
2),G());a&2&&E("@translateTab",Me(3,N1b,b._position,Le(1,M1b,b.animationDuration)))},dependencies:[PW],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[L1b]}});
var O1b=new od("MAT_TABS_CONFIG");
var P1b=new od("MatTabContent");
var Q1b=Rg({passive:!0}),SW=function(a,b,c,d,e,f,h){var k=this;this._elementRef=a;this._changeDetectorRef=b;this._viewportRuler=c;this._dir=d;this._ngZone=e;this._platform=f;this._animationMode=h;this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new T.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new T.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new Vw;this.indexFocused=new Vw;
e.runOutsideAngular(function(){(0,T.fromEvent)(a.nativeElement,"mouseleave").pipe(fg(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=SW.prototype;g.ngAfterViewInit=function(){var a=this;(0,T.fromEvent)(this._previousPaginator.nativeElement,"touchstart",Q1b).pipe(fg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,T.fromEvent)(this._nextPaginator.nativeElement,"touchstart",Q1b).pipe(fg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,T.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=lA(pA(nA(new uA(this._items),this._getLayoutDirection())));qA(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(Tf()).subscribe(d);(0,T.merge)(b,c,this._items.changes,this._itemsResized()).pipe(fg(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});nA(a._keyManager,a._getLayoutDirection())});this._keyManager.change.pipe(fg(this._destroyed)).subscribe(function(e){a.indexFocused.emit(e);a._setTabFocus(e)})};
g._itemsResized=function(){var a=this;return"function"!==typeof ResizeObserver?T.EMPTY:this._items.changes.pipe(dg(this._items),eg(function(b){return new T.Observable(function(c){return a._ngZone.runOutsideAngular(function(){var d=new ResizeObserver(function(){c.next()});b.forEach(function(e){d.observe(e.elementRef.nativeElement)});return function(){d.disconnect()}})})}),cg(1))};
g.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck());this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck());this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())};
g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!ki(a))switch(a.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a));break;default:this._keyManager.onKeydown(a)}};
g._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};g.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};
g._isValidIndex=function(a){if(!this._items)return!0;a=this._items?this._items.toArray()[a]:null;return!!a&&!a.disabled};g._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft="ltr"==this._getLayoutDirection()?0:a.scrollWidth-a.offsetWidth)};g._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"};
g._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round("ltr"===this._getLayoutDirection()?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};g._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+("before"==a?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
g._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
g._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;"ltr"==this._getLayoutDirection()?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+60:c>a&&(this.scrollDistance+=c-a+60)}}};
g._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;a||(this.scrollDistance=0);a!==this._showPaginationControls&&this._changeDetectorRef.markForCheck();this._showPaginationControls=a}};
g._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};g._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
g._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?K1b(this._inkBar,a):this._inkBar.hide()};g._stopInterval=function(){this._stopScrolling.next()};
g._handlePaginatorPress=function(a,b){var c=this;b&&null!=b.button&&0!==b.button||(this._stopInterval(),(0,T.timer)(650,100).pipe(fg((0,T.merge)(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(0===d||d>=e)&&c._stopInterval()}))};
g._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
oi.Object.defineProperties(SW.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Yg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=ah(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&qA(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)}}});SW.\u0275fac=function(a){return new (a||SW)(C(sd),C(zx),C(KA),C(vA,8),C(mg),C(My),C(iw,8))};SW.\u0275dir=w({type:SW,inputs:{disablePagination:"disablePagination"}});
var R1b=ri(function(){}),TW=function(a){var b=R1b.call(this)||this;b.elementRef=a;return b};U(TW,R1b);TW.prototype.focus=function(){this.elementRef.nativeElement.focus()};TW.\u0275fac=function(a){return new (a||TW)(C(sd))};TW.\u0275dir=w({type:TW,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ke("aria-disabled",!!b.disabled),pe("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[ee]});
var S1b=["tabListContainer"],T1b=["tabList"],U1b=["tabListInner"],V1b=["nextPaginator"],W1b=["previousPaginator"],UW=function(a,b,c,d,e,f,h){SW.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};U(UW,SW);UW.prototype._itemSelected=function(a){a.preventDefault()};oi.Object.defineProperties(UW.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Yg(a)}}});
UW.\u0275fac=function(a){return new (a||UW)(C(sd),C(zx),C(KA),C(vA,8),C(mg),C(My),C(iw,8))};UW.\u0275dir=w({type:UW,inputs:{disableRipple:"disableRipple"},features:[ee]});var VW=function(a,b,c,d,e,f,h){UW.call(this,a,b,c,d,e,f,h)};U(VW,UW);VW.\u0275dir=UW.\u0275dir;VW.\u0275fac=function(a){return new (a||VW)(C(sd),C(zx),C(KA),C(vA,8),C(mg),C(My),C(iw,8))};
VW.\u0275cmp=w({type:VW,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&Ff(c,TW,4);if(a&2){var d;Df(d=Gf())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Ef(OW,7),Ef(S1b,7),Ef(T1b,7),Ef(U1b,7),Ef(V1b,5),Ef(W1b,5));if(a&2){var c;Df(c=Gf())&&(b._inkBar=c.first);Df(c=Gf())&&(b._tabListContainer=c.first);Df(c=Gf())&&(b._tabList=c.first);Df(c=Gf())&&(b._tabListInner=c.first);Df(c=Gf())&&(b._nextPaginator=c.first);Df(c=Gf())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-header"],
hostVars:4,hostBindings:function(a,b){a&2&&pe("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ee],ngContentSelectors:["*"],decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",
3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown",
"click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(Ae(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),F(7,"div",7,8),Be(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",
9,10),J("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(pe("mat-tab-header-pagination-disabled",b._disableScrollBefore),E("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),pe("_mat-animation-noopable","NoopAnimations"===b._animationMode),B(6),pe("mat-tab-header-pagination-disabled",b._disableScrollAfter),
E("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[yB,bA,OW],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],
encapsulation:2});
var X1b=new od("MatTabLabel"),Y1b=new od("MAT_TAB");
var Z1b=ri(function(){}),$1b=new od("MAT_TAB_GROUP"),WW=function(a,b){var c=Z1b.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new T.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};U(WW,Z1b);WW.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};WW.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
WW.prototype.ngOnInit=function(){this._contentPortal=new bB(this._explicitContent||this._implicitContent,this._viewContainerRef)};WW.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};oi.Object.defineProperties(WW.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}}});
WW.\u0275fac=function(a){return new (a||WW)(C(Bf),C($1b,8))};
WW.\u0275cmp=w({type:WW,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(Ff(c,X1b,5),Ff(c,P1b,7,Af));if(a&2){var d;Df(d=Gf())&&(b.templateLabel=d.first);Df(d=Gf())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&Ef(Af,7);if(a&2){var c;Df(c=Gf())&&(b._implicitContent=c.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],
features:[Je([{provide:Y1b,useExisting:WW}]),ee,Fc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ae(),M(0,iIa,1,0,"ng-template"))},encapsulation:2});
var a2b=["tabBodyWrapper"],b2b=["tabHeader"],c2b=0,d2b=function(){},e2b=pi(qi(function(a){this._elementRef=a}),"primary"),XW=function(a,b,c,d){a=e2b.call(this,a)||this;a._changeDetectorRef=b;a._animationMode=d;a._tabs=new Hf;a._indexToSelect=0;a._lastFocusedTabIndex=null;a._tabBodyWrapperHeight=0;a._tabsSubscription=T.Subscription.EMPTY;a._tabLabelSubscription=T.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=
new Vw;a.focusChange=new Vw;a.animationDone=new Vw;a.selectedTabChange=new Vw(!0);a._groupId=c2b++;a.animationDuration=c&&c.animationDuration?c.animationDuration:"500ms";a.disablePagination=c&&null!=c.disablePagination?c.disablePagination:!1;a.dynamicHeight=c&&null!=c.dynamicHeight?c.dynamicHeight:!1;var e;a.contentTabIndex=null!=(e=null==c?void 0:c.contentTabIndex)?e:null;a.preserveContent=!(null==c||!c.preserveContent);return a};U(XW,e2b);g=XW.prototype;
g.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=null==this._selectedIndex;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;null==a._selectedIndex||0!=e.position||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
g.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
g._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(dg(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));Cf(a._tabs)})};g.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe()};g.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};g._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};
g._createChangeEvent=function(a){var b=new d2b;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};g._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=T.merge.apply(null,v(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};g._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};
g._getTabLabelId=function(a){return"mat-tab-label-"+this._groupId+"-"+a};g._getTabContentId=function(a){return"mat-tab-content-"+this._groupId+"-"+a};g._setTabBodyWrapperHeight=function(a){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}};
g._removeTabBodyWrapperHeight=function(){var a=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=a.clientHeight;a.style.height="";this.animationDone.emit()};g._handleClick=function(a,b,c){a.disabled||(this.selectedIndex=b.focusIndex=c)};g._getTabIndex=function(a,b){if(a.disabled)return null;var c;a=null!=(c=this._lastFocusedTabIndex)?c:this.selectedIndex;return b===a?0:-1};g._tabFocusChanged=function(a,b){a&&"mouse"!==a&&"touch"!==a&&(this._tabHeader.focusIndex=b)};
oi.Object.defineProperties(XW.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=Yg(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=ah(a,null)}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a+"")?a+"ms":a}},contentTabIndex:{configurable:!0,
enumerable:!0,get:function(){return this._contentTabIndex},set:function(a){this._contentTabIndex=ah(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=Yg(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=Yg(a)}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=
this._elementRef.nativeElement;b.classList.remove("mat-background-"+this.backgroundColor);a&&b.classList.add("mat-background-"+a);this._backgroundColor=a}}});XW.\u0275fac=function(a){return new (a||XW)(C(sd),C(zx),C(O1b,8),C(iw,8))};
XW.\u0275dir=w({type:XW,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ee]});
var YW=function(a,b,c,d){return XW.call(this,a,b,c,d)||this};U(YW,XW);YW.\u0275dir=XW.\u0275dir;YW.\u0275fac=function(a){return new (a||YW)(C(sd),C(zx),C(O1b,8),C(iw,8))};
YW.\u0275cmp=w({type:YW,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&Ff(c,WW,5);if(a&2){var d;Df(d=Gf())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(Ef(a2b,5),Ef(b2b,5));if(a&2){var c;Df(c=Gf())&&(b._tabBodyWrapper=c.first);Df(c=Gf())&&(b._tabHeader=c.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(a,b){a&2&&pe("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===b.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},
exportAs:["matTabGroup"],features:[Je([{provide:$1b,useExisting:YW}]),ee],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role",
"tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content",
"position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(a,b){a&1&&(F(0,"mat-tab-header",0,1),J("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),M(2,mIa,5,15,"div",2),G(),F(3,"div",3,4),M(5,nIa,1,11,"mat-tab-body",5),G());a&2&&(E("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),B(2),E("ngForOf",b._tabs),B(1),pe("_mat-animation-noopable",
"NoopAnimations"===b._animationMode),B(2),E("ngForOf",b._tabs))},dependencies:[Jx,Kx,Gx,eB,yB,Yz,TW,QW,VW],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],
encapsulation:2});
var f2b=["tabListContainer"],g2b=["tabList"],h2b=["tabListInner"],i2b=["nextPaginator"],j2b=["previousPaginator"],k2b=0,ZW=function(a,b,c,d,e,f,h){SW.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};U(ZW,SW);ZW.prototype._itemSelected=function(){};ZW.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(dg(null),fg(this._destroyed)).subscribe(function(){l2b(a)});SW.prototype.ngAfterContentInit.call(this)};
var l2b=function(a){if(a._items){for(var b=a._items.toArray(),c=0;c<b.length;c++)if(b[c].active){a.selectedIndex=c;a._changeDetectorRef.markForCheck();a.tabPanel&&(a.tabPanel._activeTabId=b[c].id);return}a.selectedIndex=-1;a._inkBar.hide()}};ZW.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
oi.Object.defineProperties(ZW.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-background-"+this.backgroundColor);a&&b.add("mat-background-"+a);this._backgroundColor=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Yg(a)}}});
ZW.\u0275fac=function(a){return new (a||ZW)(C(sd),C(vA,8),C(mg),C(zx),C(KA),C(My),C(iw,8))};ZW.\u0275dir=w({type:ZW,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[ee]});var $W=function(a,b,c,d,e,f,h){ZW.call(this,a,b,c,d,e,f,h)};U($W,ZW);$W.\u0275dir=ZW.\u0275dir;$W.\u0275fac=function(a){return new (a||$W)(C(sd),C(vA,8),C(mg),C(zx),C(KA),C(My),C(iw,8))};
$W.\u0275cmp=w({type:$W,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&Ff(c,aX,5);if(a&2){var d;Df(d=Gf())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Ef(OW,7),Ef(f2b,7),Ef(g2b,7),Ef(h2b,7),Ef(i2b,5),Ef(j2b,5));if(a&2){var c;Df(c=Gf())&&(b._inkBar=c.first);Df(c=Gf())&&(b._tabListContainer=c.first);Df(c=Gf())&&(b._tabList=c.first);Df(c=Gf())&&(b._tabListInner=c.first);Df(c=Gf())&&(b._nextPaginator=c.first);Df(c=Gf())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-nav-bar",
"mat-tab-header"],hostVars:11,hostBindings:function(a,b){a&2&&(ke("role",b._getRole()),pe("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())("mat-primary","warn"!==b.color&&"accent"!==b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===b.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[ee],attrs:["mat-tab-nav-bar",""],ngContentSelectors:["*"],decls:14,vars:10,consts:[["aria-hidden","true",
"type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination",
"mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(a,b){a&1&&(Ae(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),
F(7,"div",7,8),Be(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",9,10),J("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(pe("mat-tab-header-pagination-disabled",b._disableScrollBefore),E("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),pe("_mat-animation-noopable","NoopAnimations"===b._animationMode),
B(6),pe("mat-tab-header-pagination-disabled",b._disableScrollAfter),E("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[yB,bA,OW],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],
encapsulation:2});var m2b=si(qi(ri(function(){}))),bX=function(a,b,c,d,e,f){var h=m2b.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+k2b++;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};U(bX,m2b);g=bX.prototype;g.focus=function(){this.elementRef.nativeElement.focus()};g.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};
g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this.elementRef)};g._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};g._handleKeydown=function(a){this._tabNavBar.tabPanel&&32===a.keyCode&&this.elementRef.nativeElement.click()};g._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?null==(a=this._tabNavBar.tabPanel)?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
g._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};g._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};g._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};g._getTabIndex=function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex};
oi.Object.defineProperties(bX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=Yg(a);a!==this._isActive&&(this._isActive=a,l2b(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});bX.\u0275fac=function(a){return new (a||bX)(C(ZW),C(sd),C(dqb,8),bd("tabindex"),C(Wz),C(iw,8))};
bX.\u0275dir=w({type:bX,inputs:{active:"active",id:"id"},features:[ee]});var aX=function(a,b,c,d,e,f,h,k){a=bX.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new wB(a,c,b,d);cqb(a._tabLinkRipple,b.nativeElement);return a};U(aX,bX);aX.prototype.ngOnDestroy=function(){bX.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};aX.\u0275fac=function(a){return new (a||aX)(C($W),C(sd),C(mg),C(My),C(dqb,8),bd("tabindex"),C(Wz),C(iw,8))};
aX.\u0275dir=w({type:aX,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&J("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ke("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._getTabIndex())("role",b._getRole()),pe("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[ee]});
var cX=function(){};cX.\u0275fac=function(a){return new (a||cX)};cX.\u0275mod=xc({type:cX});cX.\u0275inj=ic({imports:[ay,kB,fB,CB,cA,eA,kB]});
var dX=function(){};[].concat(v([MW,vW,wW,CW,HW,LW,DW,zW,uW,tW,AW,NW]),[EW,FW,GW]);dX.\u0275fac=function(a){return new (a||dX)};dX.\u0275mod=xc({type:dX});dX.\u0275inj=ic({imports:[GO,sK,ay,jB,pQ,dP,RS,cX,AF,wG,gH,vS,xS,QN]});
var n2b=["textarea"],o2b=["hiddenInput"],p2b=["autocompleteUnderlay"],q2b=Symbol(),eX=function(a,b,c){qI.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new Vw;this.focus=new Vw;this.blur=new Vw;this.autoResize=new Vw;this.manualResize$=new Vw;this.autocompleteUserName="";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.textAreaLastAtSymbolLocation=
this.textAreaLastCursorLocation=0};U(eX,qI);eX.\u0275dir=qI.\u0275dir;eX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?Op(a).classList.add("codefont"):Op(a).classList.remove("codefont")}))};eX.prototype.ngOnDestroy=function(){qI.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};eX.prototype.setValue=function(a){Op(this).value!==a&&(Op(this).value=a,this.manualResize$.next())};
eX.prototype.getValue=function(){return Op(this).value};var Op=function(a){return a.textareaRef.nativeElement},Qp=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},Np=function(a){return a.activeSession.isInternalSession()&&1===a.audience},r2b=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},s2b=function(a){var b=Op(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
eX.prototype.findWord=function(a,b){var c=a.slice(0,b).search(/(?!(.*\s))/);b+=a.slice(b).search(/(\s|$)/);return{wordStart:c,wordEnd:b,word:a.slice(c,b)}};
var t2b=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},u2b=function(a){var b=r2b(a);a=Op(a);b&&a&&(b.scrollTop=a.scrollTop)},Pp=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},oIa=function(a,b){b=void 0===b?!1:b;var c=Op(a),d=Op(a).value,e,f=null==(e=Qp(a))?void 0:e.value;e=null==f?void 0:f.length;s2b(a);var h=d.slice(0,a.textAreaLastAtSymbolLocation+1);d=a.wordInfo.word.slice(1)===f?d.slice(a.textAreaLastAtSymbolLocation+
f.length+1):d.slice(a.textAreaLastCursorLocation);e&&(a.textAreaLastCursorLocation=h.length+e);b?(b=h+f+" "+d,a.textAreaLastCursorLocation+=1):b=h+f+d;c.value=b};eX.prototype[q2b]=function(){return this.findWord};eX.\u0275fac=function(a){return new (a||eX)(C(qQ),C(qH),C(mM))};
eX.\u0275cmp=w({type:eX,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(Ef(n2b,7),Ef(o2b,5),Ef(p2b,5));if(a&2){var c;Df(c=Gf())&&(b.textareaRef=c.first);Df(c=Gf())&&(b.hiddenInputRef=c.first);Df(c=Gf())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&J("click",function(){Pp(b)},!1,uda)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(Pp(b),Op(b).focus())},!1,uda)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[ee],decls:7,vars:11,consts:[[1,"pos-rel","comment-box-container",3,"keydown"],["commentBoxContainer",""],["aria-label","Comment box","cdkFocusInitial","",3,"autoResize","ngClass","disabled","input","focus","blur","onAutoResize","keydown","keyup","scroll"],["textarea",""],[1,"autocomplete-input-container"],
["type","text","bContactAutocomplete","SINGLE","class","autocomplete-hidden-input","tabIndex","-1","aria-hidden","true",3,"value","change","keyup",4,"ngIf"],["class","autocomplete-underlay","contentEditable","true",4,"ngIf"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"value","change","keyup"],["hiddenInput",""],["contentEditable","true",1,"autocomplete-underlay"],["autocompleteUnderlay",""]],template:function(a,b){a&1&&(F(0,
"div",0,1),J("keydown",function(c){"Escape"===c.key&&(Pp(b),Op(b).focus())}),F(2,"textarea",2,3),J("input",function(){b.contentChange.emit(b.getValue())})("focus",function(c){return b.focus.emit(c)})("blur",function(c){return b.blur.emit(c)})("onAutoResize",function(c){return b.autoResize.emit(c)})("keydown",function(c){if(Np(b)&&t2b(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=Qp(b))||d.focus();d=c.code;var e=c.key,f=c.keyCode,h=c.which;c=new KeyboardEvent("keydown",{charCode:c.charCode,
metaKey:c.metaKey,type:c.type,code:"Enter"===e?"Tab":d,key:"Enter"===e?"Tab":e,keyCode:"Enter"===e?9:f,which:"Enter"===e?9:h});var k;null==(k=Qp(b))||k.dispatchEvent(c)}})("keyup",function(c){if(Np(b)){var d=Op(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!t2b(c)){c=c.target;b.scrollPosition=c.scrollTop;s2b(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=mua.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=r2b(b)){d.textContent=b.getValue();e=r2b(b);h=Op(b);f="height width font-family margin line-height padding border".split(" ");if(e&&h){h=b.window.getComputedStyle(h);f=r(f);for(var k=f.next();!k.done;k=f.next()){k=k.value;var q=h.getPropertyValue(k);e.style.setProperty(k,q)}}u2b(b)}d=null==d?void 0:d.firstChild;e=null==d?void 0:d.textContent;d&&e&&c&&(e=new Range,e.setStart(d,c),e.setEnd(d,c),
c=document.createElement("span"),e.deleteContents(),e.insertNode(c),d=c.getBoundingClientRect(),b.autocompleteTop=d.top,b.autocompleteLeft=d.left,c.remove())}b.taggingInProgress=!0}else b.taggingInProgress=!1;if(b.taggingInProgress){b.autocompleteUserName=b.wordInfo.word.slice(1);var u;null==(u=Qp(b))||u.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return u2b(b)}),G(),F(4,"span",4),M(5,pIa,2,1,"input",5),G(),M(6,qIa,2,0,"div",6),G());a&2&&(B(2),E("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),ke("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),oe("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),B(1),E("ngIf",b.taggingInProgress),B(1),E("ngIf",Np(b)))},dependencies:[Jx,Gx,QU,sW],encapsulation:2,changeDetection:0});
var v2b=function(a){return{"draft-markdown":a}},fX=function(a,b,c){qI.call(this);var d=this;this.cdr=a;this.ref=b;this.events=c;this.previewDisabled=!1;this.selectedIndex=0;this.onCommentSubmitted=function(){d.matTabGroup.selectedIndex=0};this.render=function(){var e=d.matTabGroup;e._tabHeader&&e._tabHeader._alignInkBarToSelectedTab();d.cdr.markForCheck()}};U(fX,qI);fX.\u0275dir=qI.\u0275dir;fX.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
fX.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};fX.\u0275fac=function(a){return new (a||fX)(C(mI,2),C(sd),C(FK))};
fX.\u0275cmp=w({type:fX,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&Ef(YW,7);if(a&2){var c;Df(c=Gf())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[Je([mI]),ee],decls:5,vars:5,consts:[[1,"small","no-border",3,"dynamicHeight","selectedIndex","animationDone","selectedIndexChange"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&(F(0,"mat-tab-group",
0),J("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),F(1,"mat-tab",1),M(2,rIa,1,0,"ng-container",2),G(),F(3,"mat-tab",3),M(4,sIa,1,0,"ng-container",2),G()());a&2&&(E("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),E("ngTemplateOutlet",b.editArea),B(1),E("disabled",b.previewDisabled),B(1),E("ngTemplateOutlet",b.previewArea))},dependencies:[Qx,YW,WW],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}\n/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var gX=function(a,b,c,d){qI.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(R(function(e){return e===DBb}));this.idPrefix="b-draft";this.content="";this.issueId=0;this.textareaClass=[];this.disabled=!1;this.audience=2;this.init=new Vw;this.contentChange=new Vw;this.focus=new Vw;this.blur=new Vw;this.autoResize=new Vw;this.onSubmit=new Vw};U(gX,qI);gX.\u0275dir=qI.\u0275dir;
gX.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
gX.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 w2b=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&Op(a.commentDraftTextarea).focus()})};gX.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};gX.\u0275fac=function(a){return new (a||gX)(C(qQ),C(mg),C(PI),C(WI))};
gX.\u0275cmp=w({type:gX,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(Ef(eX,5),Ef(fX,5));if(a&2){var c;Df(c=Gf())&&(b.commentDraftTextarea=c.first);Df(c=Gf())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",issueId:"issueId",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel"},outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},
features:[ee,Fc],decls:2,vars:10,consts:[[3,"textareaClass","ngClass","disabled","placeholder","idForAriaLabel","audience","autoResize","keydown.control.enter","keydown.meta.enter"]],template:function(a,b){a&1&&(F(0,"b-comment-draft-textarea",0),J("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()}),P(1,"async"),G());a&2&&E("textareaClass",b.textareaClass)("ngClass",
Le(8,v2b,Q(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[Jx,eX,Tx],styles:["body   [_nghost-%COMP%]     textarea{resize:none}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}\n/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});
var hX=function(){};[].concat(v([sW,gX,eX]),[fX]);hX.\u0275fac=function(a){return new (a||hX)};hX.\u0275mod=xc({type:hX});hX.\u0275inj=ic({imports:[GO,ay,RU,Ky,jB,pQ,dP,RS,cX,AF,wG,gH,nQ]});
var x2b=["commentBoxContainer"],y2b=function(a){return{focused:a}},z2b=function(){return[]},iX=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.userPreferencesManager=c;this.appEvents=e;this.MARKDOWN=2;this.commentChange=new Vw;this.supportsPreview=!1;this.loadFormatFromPrefs=!0;this.disabled=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.onChange=new Vw;this.onFocusEvent=new Vw;this.onSubmit=new Vw;this.onRestrict=new Vw;this.focused=!1;this.commentRebound$=new T.ReplaySubject(1);
this.destroyed$=new T.ReplaySubject(1);this.createRestrictedResourcesComponentWhitelist=lb(d.config,13)};g=iX.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||NQb(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;(0,T.merge)(this.userPreferencesManager.lastPublishModeProto$,this.commentRebound$).pipe(hg(this.userPreferencesManager.lastPublishModeProto$),fg(this.destroyed$)).subscribe(function(b){b=r(b);b.next();b=b.next().value;a.comment&&a.loadFormatFromPrefs&&(a.comment.formattingMode=b,a.commentChange.emit(a.comment))});this.appEvents.focusCommentBox.pipe(fg(this.destroyed$)).subscribe(function(b){ebb(a,b)});this.appEvents.scrollToCommentBox.pipe(fg(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};
g.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};g.getRestrictedLabel=function(){var a,b,c=null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1;return tqa(El(c))};g.isRestricted=function(){var a,b;return 1!==(null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1)};var ebb=function(a,b){(b=void 0===b?"":b)&&io(a.analytics,"commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||w2b(c)};
iX.prototype.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView()};iX.prototype.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};iX.prototype.onBlur=function(){this.focused=!1};iX.prototype.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a.shiftKey))};iX.\u0275fac=function(a){return new (a||iX)(C(IM),C(WI),C(PI),C(qH),C(FK))};
iX.\u0275cmp=w({type:iX,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(Ef(gX,5),Ef(x2b,5),Ef(WV,5));if(a&2){var c;Df(c=Gf())&&(b.commentDraftComponent=c.first);Df(c=Gf())&&(b.commentBoxContainer=c.first);Df(c=Gf())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",componentId:"componentId",loadFormatFromPrefs:"loadFormatFromPrefs",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",
disabled:"disabled",showToolbar:"showToolbar",idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled"},outputs:{commentChange:"commentChange",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[Fc],ngContentSelectors:["*"],decls:7,vars:14,consts:[[1,"bv2-comment-box-container",3,"ngClass"],["commentBoxContainer",""],[1,"bv2-comment-textarea-wrapper"],[3,"issueId","content","placeholder","disabled","textareaClass","audience","idForAriaLabel",
"contentChange","focus","blur","keydown","paste"],[3,"uploads","onUploadCancel"],["class","bv2-comment-toolbar",4,"ngIf"],[4,"ngIf"],[1,"bv2-comment-toolbar"],[3,"disabled","onSelect"],[3,"disabled","onPickDoc","onCloneBlob"],[1,"goog-inline-block","vertical-centered"],[4,"ngIf","ngIfElse"],["restrictedFlatButton",""],["mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"disabled","click"],["svgIcon","restricted"],["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){a&1&&(Ae(),F(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),J("contentChange",function(d){if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit())}})("focus",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("keydown",
function(d){return b.onKeydown(d)})("paste",function(d){if(d&&null!=d.clipboardData){var e=d.clipboardData;for(var f=!1,h=!1,k=0,q=0;q<e.types.length;q++)"text/plain"===e.types[q]?f=!0:"Files"===e.types[q]&&(h=!0,k=q);h&&e.items&&e.files?(h=e.files[0],k=e.items[k].type.replace(/^.*[/]/,""),f?(e=e.getData("text/plain"),e=e.replace(/^.*[\\\/]/,"")):e=(new Date).toString()+"."+k,e={file:h,filename:e}):e=void 0;e&&(d.preventDefault(),d=new File([e.file],e.filename,{type:e.file.type}),d=b.attachmentUploader.upload(d),
b.comment&&b.comment.uploads.push(d))}}),G()(),F(4,"b-attachment-uploader",4),J("onUploadCancel",function(d){b.comment&&za(b.comment.uploads,d)}),G(),M(5,vIa,8,4,"div",5),G(),M(6,wIa,2,4,"div",6));if(a&2){var c;E("ngClass",Le(11,y2b,b.focused));B(3);E("issueId",b.issueId||0)("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",b.disabled?"bv2-disabled":"")("audience",b.audience)("idForAriaLabel",b.idForAriaLabel);B(1);E("uploads",null!==(c=null==b.comment?
null:b.comment.uploads)&&void 0!==c?c:Ke(13,z2b));B(1);E("ngIf",b.showToolbar);B(1);E("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN)}},dependencies:[Jx,Gx,gX,wF,LW,rW,SV,WV,FB,hF],encapsulation:2});
var A2b=["dialog"],jX=function(a,b,c){qI.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.comment=new RR;this.save=new Vw;this.close=new Vw;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=B2b;this.issueStates=JJb};U(jX,qI);jX.\u0275dir=qI.\u0275dir;
jX.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new CZb(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&xIa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});RB(this.matDialogRef).pipe(fg(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};jX.\u0275fac=function(a){return new (a||jX)(C(cC),C(qH),C(WI))};
jX.\u0275cmp=w({type:jX,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&Ef(A2b,5);if(a&2){var c;Df(c=Gf())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[ee],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["mat-dialog-title",""],["mat-dialog-content",""],["class","bv2-modal-form",4,"ngIf"],["mat-dialog-actions",""],["type","button","mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["type","submit",
"color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close","disabled"],[1,"bv2-modal-form"],["type","button","mat-button","",1,"gmat-button","medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["statusMenu",""],["mat-menu-item","","type","button",3,"disabled","click"],["mat-menu-item","","type","button",3,"disabled","click",4,"ngFor","ngForOf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","bv2-modal-text-field",4,"ngSwitchDefault"],
["placeholder","Add a comment (optional)",3,"comment","showToolbar","onSubmit"],[1,"float-clear"],["class","bv2-external-component-modal-warning",4,"ngIf"],[1,"bv2-modal-text-field"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],["class","bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip",4,"ngSwitchCase"],[1,"bv2-multiple-user-chip"],["title","Clear assignees",
3,"click"],["type","text","name","assignee",3,"ngModel","bContactAutocomplete","ngModelChange"],["title","Clear verifiers",3,"click"],["type","text","name","verifier",3,"ngModel","required","bContactAutocomplete","ngModelChange"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModel","ngModelChange"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a){a&1&&M(0,MIa,13,4,"ng-template",null,0,Mf)},
dependencies:[Kx,Gx,Mx,Nx,Ox,dC,eC,fC,gC,LS,wy,Mg,py,qy,Gy,vy,ty,FB,tH,mF,kF,pF,QU,iX],encapsulation:2});var B2b={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};
var kX=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},C2b=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},lX=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},D2b=function(a,b){return a?a.join(" > "):String(b)},E2b=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""}};
var mX=function(a,b,c){this.userAccess=a;this.errorHandler=b;this.data=c;this.issuesToFlag=[];this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1;this.issuesToFlag=c.issuesToFlag};mX.prototype.ngOnInit=function(){F2b(this,this.issuesToFlag)};
var F2b=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:mK(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);F2b(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};mX.\u0275fac=function(a){return new (a||mX)(C(lK),C(BK),C(aC))};
mX.\u0275cmp=w({type:mX,selectors:[["b-bulk-flag-as-spam-dialog"]],decls:16,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],[1,"bv2-bulk-flag-as-spam-warning"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"disabled","mat-dialog-close"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Flag Issues as Spam"),
G(),F(2,"div",1)(3,"div",2)(4,"p"),O(5),G(),F(6,"p"),O(7," This operation cannot be undone in bulk. "),G()(),F(8,"div",3),M(9,NIa,3,2,"div",4),M(10,PIa,5,2,"div",4),G()(),F(11,"div",5)(12,"button",6),O(13," Close "),G(),F(14,"button",7),O(15," Flag as Spam "),G()());a&2&&(B(5),Ge(" Flagging these ",b.issuesToFlag.length," issues as spam will not cause them to be deleted, rather they will simply drop out of regular search results. They need to be kept around to train anti-abuse models. "),B(4),E("ngIf",
!b.permissionsCheckComplete),B(1),E("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),B(4),E("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[Kx,Gx,FB,dC,eC,fC,gC],encapsulation:2});
var nX=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};nX.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};nX.prototype.save=function(){this.dialogRef.close(this.component)};nX.prototype.cancel=function(){this.dialogRef.close()};nX.\u0275fac=function(a){return new (a||nX)(C(mI,2),C(QB))};
nX.\u0275cmp=w({type:nX,selectors:[["b-bulk-move-dialog"]],features:[Je([mI])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Change Component"),G(),F(2,"mat-dialog-content")(3,"p"),O(4,"Choose new component for these issues."),G(),F(5,"p",1),O(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. "),G(),F(7,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),G()(),F(8,"mat-dialog-actions")(9,"button",3),J("click",function(){return b.cancel()}),O(10," Cancel "),G(),F(11,"button",4),J("click",function(){return b.save()}),O(12," Save "),G()());a&2&&(B(7),E("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),E("disabled",null==b.component))},dependencies:[FB,eC,fC,gC,xV],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}[_nghost-%COMP%]     .bv2-component-picker{width:100%}"]});
var oX=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};oX.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};oX.prototype.close=function(){this.dialogRef.close()};oX.\u0275fac=function(a){return new (a||oX)(C(aC),C(QB))};
oX.\u0275cmp=w({type:oX,selectors:[["b-edit-item-modal"]],decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"mat-dialog-content")(3,"p"),O(4),G(),F(5,"div",1)(6,"mat-form-field")(7,"mat-label"),O(8),G(),F(9,"input",2),J("ngModelChange",function(c){return b.addItems=c}),G()(),
H(10,"br"),F(11,"mat-form-field")(12,"mat-label"),O(13),G(),F(14,"input",2),J("ngModelChange",function(c){return b.removeItems=c}),G()()()(),F(15,"mat-dialog-actions")(16,"button",3),J("click",function(){return b.close()}),O(17," Cancel "),G(),F(18,"button",4),J("click",function(){return b.save()}),O(19," Save "),G()());a&2&&(B(1),Ge("Edit ",b.fieldDisplayName,""),B(3),Ge("Enter ",b.fieldDisplayName," to add or remove"),B(4),Ge(" ",b.fieldDisplayName," to Add "),B(1),E("ngModel",b.addItems),B(4),
Ge(" ",b.fieldDisplayName," to Remove "),B(1),E("ngModel",b.removeItems))},dependencies:[Mg,py,vy,FB,sC,pC,uC,eC,fC,gC],encapsulation:2});
var G2b=["hotlistFilterInput"],H2b=["hotlistCreate"],I2b=["hotlistApply"],J2b=["hotlistLoad"],K2b=["menuitem"],pX=function(a,b,c,d,e,f){qI.call(this);this.liveAnnouncer=a;this.butterBar=b;this.userAccess=c;this.analytics=d;this.activeSession=e;this.cdr=f;this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new Vw;this.onApply=new Vw;this.onLoad=new Vw;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()};U(pX,qI);pX.\u0275dir=qI.\u0275dir;pX.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(fg(this.destroyed$)).subscribe(function(){(0,T.timer)(0).pipe(fg(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(fg(this.destroyed$)).subscribe(function(){L2b(a)})};
pX.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};pX.prototype.ngOnChanges=function(){M2b(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;qX(this)};
var M2b=function(a){var b={};vja(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=r(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=r(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=r(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=r(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Ma(a.choices,function(h,k){var q=b[h.hotlistId],u=b[k.hotlistId];return q>u?-1:q<u?1:ju(h.name,k.name)})}}};pX.prototype.open=function(){Ci(this.trigger);this.cdr.detectChanges()};pX.prototype.close=function(){this.trigger.closeMenu()};
pX.prototype.hasAclToEdit=function(a){var b=this;if(sja(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];mK(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Tp=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},Up=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;Vp(a);a.close()},Vp=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},qX=function(a){for(var b=a.filterText,c=!1,d=r(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=pa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=!/[^0-9]/.test(Ui(b))&&!!b&&!!a.onLoad},L2b=function(a){a.trigger.menuOpen||(M2b(a),a.filterText="",qX(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},N2b=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+haa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
pX.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",qX(this),this.onCreate.emit({name:b,successCallback:function(c){Up(a,c)},errorCallback:function(){zK(a.butterBar,"Failed to create hotlist "+b)}}))};
pX.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){io(this.analytics,"hotlistPicker","loadHotlist");yK(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";qX(this);for(var c=Oi(b),d=r(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){Up(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Up(a,f)},errorCallback:function(){zK(a.butterBar,"Failed to load hotlist "+b)}})}};
var QIa=function(a,b){Tp(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!Hi(a.oldSelectedHotlistMap,a.selectedHotlistMap))},T2b=function(a,b){b=void 0===b?0:b;var c=rX(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=ua(rX(a),b),O2b(a),P2b(a,b)):a.focusedRowIndex<d&&a.canCreate?Q2b(a,d):a.focusedRowIndex<
d+1&&a.canLoad?R2b(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&S2b(a,d)},rX=function(a){return a.menuItems.map(function(b){return b.nativeElement})},U2b=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)Q2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)R2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)Q2b(a,a.choices.length);else{var c=rX(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=ua(rX(a),b),O2b(a),P2b(a,b)):(a.focusedRowIndex=-1,P2b(a,null))}},P2b=function(a,b){a.filterElement&&VI(a.filterElement.nativeElement,b);a.focusFilterBox()},Q2b=function(a,b){a.focusedRowIndex=b;VI(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},R2b=function(a,b){a.focusedRowIndex=b+1;VI(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},S2b=function(a,b){a.focusedRowIndex=b+2;VI(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},O2b=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=rX(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},RIa=function(a){return null==
a?"mixed":a.toString()},SIa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};pX.\u0275fac=function(a){return new (a||pX)(C(dA),C(xK),C(lK),C(IM),C(qH),C(mI,2))};
pX.\u0275cmp=w({type:pX,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(Ef(pF,5),Ef(G2b,5),Ef(H2b,5),Ef(I2b,5),Ef(J2b,5),Ef(K2b,5));if(a&2){var c;Df(c=Gf())&&(b.trigger=c.first);Df(c=Gf())&&(b.filterElement=c.first);Df(c=Gf())&&(b.createElement=c.first);Df(c=Gf())&&(b.applyElement=c.first);Df(c=Gf())&&(b.loadElement=c.first);Df(c=Gf())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[Je([mI]),ee,Fc],decls:13,vars:4,consts:[["mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"gmat-button","medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],["hotlistMenu","matMenu"],[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 your starred hotlists","autocomplete","off",3,"ngModel","ngModelChange","mousedown","blur","click","keydown"],["hotlistFilterInput",""],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["hotlistChoices",""],["class","multi-edit-menuitem","role","option",3,"display","focused","title","click",4,"ngFor","ngForOf"],["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,"disabled","click","keydown.enter"],["hotlistCreate",""],[4,"ngIf"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused","click","keydown.enter",4,"ngIf"],["mat-menu-item","","class","hotlist-apply","id","hotlist-apply","aria-label","apply",3,"focused","click","keydown.enter",4,"ngIf"],["role","option",1,"multi-edit-menuitem",3,"title","click"],["menuitem",""],["role","checkbox",3,"state","disabled","click"],
["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["hotlistLoad",""],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"],["hotlistApply",""]],template:function(a,b){a&1&&(F(0,"button",0)(1,"span",1),O(2),G(),H(3,"b-icon",2),G(),F(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),J("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return qX(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return L2b(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(T2b(b),d.preventDefault()):"ArrowUp"===d.key?(U2b(b),d.preventDefault()):"PageUp"===d.key?U2b(b,11):"PageDown"===d.key?T2b(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(QIa(b,b.choices[b.focusedRowIndex]),d.preventDefault()):
"Enter"===d.key&&(b.focusedRowIndex===b.choices.length?b.createHotlist():b.focusedRowIndex===b.choices.length+1?b.loadHotlist():b.pendingChanges?(b.close(),Vp(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Up(b,b.choices[b.focusedRowIndex]))}),G()()(),H(11,"mat-divider"),M(12,XIa,11,8,"ng-template",9),G()());if(a&2){var c=Fe(5);E("matMenuTriggerFor",c)("disabled",b.isAnonymous);B(2);He(N2b(b));B(7);E("ngModel",b.filterText)}},dependencies:[Kx,
Gx,mF,kF,pF,jF,FB,Mg,py,Hy,vy,zB,wF,SH,tH],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-menu-item.focused[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg);border:0}\n/*# sourceMappingURL=hotlist_picker.css.map */"]});
var sX=function(a){this.issuesApi=a};sX.prototype.get=function(a,b,c,d,e,f,h){return this.issuesApi.getRelatedIssues({resourceType:void 0===b?null:b,resourceId:void 0===c?null:c,q:a,s:void 0===e?null:e,count:void 0===f?null:f,p:void 0===h?null:h})};sX.\u0275fac=function(a){return new (a||sX)(t(fK))};sX.\u0275prov=hc({token:sX,factory:sX.\u0275fac,providedIn:"root"});
var tX=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new Vw};tX.prototype.ngOnInit=function(){};
tX.prototype.toggle=function(){var a=this;io(this.analytics,"issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);if(this.ccState)this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(c){a.ccState=!0;a.errorHandler.errorHandler(null,c)});else{this.ccState=!0;var b={issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]};this.issueApi.updateIssue(this.issueId,b).then(function(){}).catch(function(c){a.ccState=
!1;a.errorHandler.errorHandler(null,c)})}};tX.\u0275fac=function(a){return new (a||tX)(C(qH),C(fK),C(IM),C(BK))};
tX.\u0275cmp=w({type:tX,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},decls:3,vars:1,consts:[["mat-button","",1,"gmat-button","medium",3,"click"],[4,"ngIf"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return b.toggle()}),M(1,YIa,2,0,"ng-container",1),O(2,"CC me\n"),G());a&2&&(B(1),E("ngIf",b.ccState))},dependencies:[Gx,FB],encapsulation:2});
var uX=function(){var a=this;this.displayMode="BOTH";this.colorStyle="NONE";this.issueStatusInternal$=new T.BehaviorSubject(0);this.iconName$=this.issueStatusInternal$.pipe(Sf(),R(function(b){return V2b.get(b)||""}));this.statusText$=this.issueStatusInternal$.pipe(Sf(),R(function(b){return BL[b]}));this.colorClass$=this.issueStatusInternal$.pipe(Sf(),R(function(b){return"bg-status"+b}));this.bgColorClass$=this.colorClass$.pipe(R(function(b){return"BACKGROUND"===a.colorStyle?"bg "+b:""}))};
uX.prototype.ngOnInit=function(){};uX.prototype.ngOnChanges=function(){this.issueStatus?this.issueStatusInternal$.next(this.issueStatus):this.issueStatusInternal$.next(am[this.issueStatusJs])};uX.\u0275fac=function(a){return new (a||uX)};
uX.\u0275cmp=w({type:uX,selectors:[["b-issue-status-display"]],inputs:{issueStatusJs:"issueStatusJs",issueStatus:"issueStatus",displayMode:"displayMode",colorStyle:"colorStyle"},features:[Fc],decls:5,vars:6,consts:[[1,"wrapper",3,"ngClass"],["class","swatch",3,"ngClass",4,"ngIf"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","text",4,"ngIf"],[1,"swatch",3,"ngClass"],[1,"icon-s",3,"svgIcon"],[1,"text"]],template:function(a,b){a&1&&(F(0,"span",0),P(1,"async"),M(2,ZIa,2,3,"span",1),M(3,$Ia,2,3,"mat-icon",
2),M(4,aJa,3,3,"span",3),G());if(a&2){var c;E("ngClass",null!==(c=Q(1,4,b.bgColorClass$))&&void 0!==c?c:"");B(2);E("ngIf","ASIDE"===b.colorStyle);B(1);E("ngIf","BOTH"===b.displayMode||"ICON"===b.displayMode);B(1);E("ngIf","BOTH"===b.displayMode||"TEXT"===b.displayMode)}},dependencies:[hF,Jx,Gx,Tx],styles:[".wrapper[_ngcontent-%COMP%]{display:inline-block;align-items:center}.wrapper.bg[_ngcontent-%COMP%]{color:#fff;padding:2px 4px;border-radius:4px}.mat-icon[_ngcontent-%COMP%]{margin-right:4px}.swatch[_ngcontent-%COMP%]{margin-right:8px}\n/*# sourceMappingURL=issue_status_display.css.map */"],
changeDetection:0});var V2b=new Map([[1,"issue-status-new"],[2,"issue-status-assigned"],[3,"issue-status-accepted"],[4,"issue-status-fixed"],[5,"issue-status-verified"],[10,"issue-status-duplicate"],[9,"issue-status-wont-fix"],[6,"issue-status-wont-fix"],[8,"issue-status-wont-fix"],[7,"issue-status-wont-fix"]]);
var vX=function(){this.upvoted=!1;this.voteCount=0;this.tooltip="";this.isNewVoteButton=this.disabled=!1;this.onAction=new Vw};vX.prototype.onClick=function(){this.onAction.emit(this.upvoted)};vX.prototype.getAriaLabel=function(){return"Vote count "+this.voteCount};vX.\u0275fac=function(a){return new (a||vX)};
vX.\u0275cmp=w({type:vX,selectors:[["b-vote-button"]],inputs:{upvoted:"upvoted",voteCount:"voteCount",tooltip:"tooltip",disabled:"disabled",isNewVoteButton:"isNewVoteButton"},outputs:{onAction:"onAction"},decls:2,vars:2,consts:[["mat-stroked-button","","class","gmat-button small new-vote-button",3,"mat-flat-button","mat-stroked-button","matTooltip","disabled","click",4,"ngIf"],["mat-button","","class","gmat-button medium",3,"mat-flat-button","mat-button","matTooltip","disabled","click",4,"ngIf"],
["mat-stroked-button","",1,"gmat-button","small","new-vote-button",3,"matTooltip","disabled","click"],["mat-button","",1,"gmat-button","medium",3,"matTooltip","disabled","click"],[1,"vote-count"]],template:function(a,b){a&1&&(M(0,bJa,2,9,"button",0),M(1,cJa,5,9,"button",1));a&2&&(E("ngIf",b.isNewVoteButton),B(1),E("ngIf",!b.isNewVoteButton))},dependencies:[FB,wF,Gx],styles:[".vote-count[_ngcontent-%COMP%]{margin-left:5px}.new-vote-button[_ngcontent-%COMP%]{min-width:48px;font-size:.8125rem}\n/*# sourceMappingURL=vote_button.css.map */"],
changeDetection:0});
var W2b=mo.EDIT_ISSUE,wX=function(a,b,c){qI.call(this);this.analytics=a;this.errorHandler=b;this.issueFridge=c;this.upvoted=!1;this.voteCount=0;this.isNewVoteButton=!1;this.onVote=new Vw};U(wX,qI);wX.\u0275dir=qI.\u0275dir;
var X2b=function(a){null!=a.issueId&&(a.upvoted=!a.upvoted,a.onVote.emit(a.upvoted),a.voteCount+=a.upvoted?1:-1,a.issueFridge.setVoted(String(a.issueId),a.upvoted).pipe(Tf(),fg(a.destroyed$)).subscribe(function(){},function(b){a.errorHandler.errorHandler(null,b)}),io(a.analytics,W2b,"light-ixn","vote",a.upvoted))};wX.\u0275fac=function(a){return new (a||wX)(C(IM),C(BK),C(oL))};
wX.\u0275cmp=w({type:wX,selectors:[["b-app-vote-button"]],inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount",isNewVoteButton:"isNewVoteButton"},outputs:{onVote:"onVote"},features:[ee],decls:1,vars:3,consts:[["tooltip","Indicate that you are affected by this issue",3,"upvoted","voteCount","isNewVoteButton","onAction"]],template:function(a,b){a&1&&(F(0,"b-vote-button",0),J("onAction",function(){return X2b(b)}),G());a&2&&E("upvoted",b.upvoted)("voteCount",b.voteCount)("isNewVoteButton",
b.isNewVoteButton)},dependencies:[vX],encapsulation:2});
var qJa=function(){return[]},xX=function(a,b,c,d,e,f,h){qI.call(this);var k=this;this.issuesApi=a;this.cdr=b;this.activeSession=c;this.analytics=d;this.relationshipService=e;this.issueFridge=f;this.butterBar=h;this.providedIssueId$=new T.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(eg(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=nn;this.normalizeFormattingModeToJspb=qsa;this.init=new T.ReplaySubject(1)};U(xX,qI);xX.\u0275dir=qI.\u0275dir;
xX.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(fg(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.events=b.events;a.cdr.markForCheck();a.init.next()})};xX.prototype.priority=function(a){return null==a?"--":OJb.get(a)};xX.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":case "P2":return"high";default:return"low"}};
xX.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:(null==(a=this.events[0])?void 0:a.unlinkifiedComment)||"",formattedComment:null==(b=this.events[0])?void 0:b.formattedComment}};
var pJa=function(a,b){return Rl(b).includes(a.activeSession.getUserEmail())},kJa=function(a,b){var c;return ef(function(d){if(1==d.nextAddress)return c=String(a.issueId),GJ(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Ut(d,2,3),ff(d,(0,T.firstValueFrom)(a.relationshipService.delete(c,1,b)),3);if(2!=d.nextAddress)return Xt(d),mt(a.issueFridge,b),Yt(d,0);Wt(d);zK(a.butterBar,"Error removing the parent issue.");return d.jumpTo(3)})};
xX.\u0275fac=function(a){return new (a||xX)(C(iK),C(mI,2),C(qH),C(IM),C(UL),C(oL),C(xK))};
xX.\u0275cmp=w({type:xX,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[Je([mI]),ee],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[4,"ngIf"],[1,"bv2-hovercard-wide"],["displayMode","ICON",3,"issueStatusJs"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"labelOnlyMode","accessLevel"],[1,"priority-status"],[1,"bv2-priority",3,"ngClass"],
[3,"ngSwitch",4,"ngIf"],[1,"issue-card-buttons","margin-y"],[3,"issueId","ccState","onCc"],["class","bv2-issue-card-comment",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"model","hovercardEnabled"],["displayMode","TEXT",3,"issueStatusJs"],[3,"issueId","voteCount","upvoted"],["mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"gmat-button","medium",3,"click"],["mode","date",1,"float-right",3,"timestamp"],[1,"bv2-issue-card-comment"],[3,"issueId",
"issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,rJa,24,17,"ng-container",1),G());a&2&&(B(1),E("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[Jx,Gx,Mx,Nx,Ox,LS,FB,wF,jS,uX,CP,NW,wX,tX],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 yX=function(){};yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275mod=xc({type:yX});yX.\u0275inj=ic({imports:[AF,ay]});
var zX=function(){};zX.\u0275fac=function(a){return new (a||zX)};zX.\u0275mod=xc({type:zX});zX.\u0275inj=ic({imports:[wG,gH,AF,ay]});
var AX=function(){};AX.\u0275fac=function(a){return new (a||AX)};AX.\u0275mod=xc({type:AX});AX.\u0275inj=ic({imports:[zX]});
var BX=function(){};BX.\u0275fac=function(a){return new (a||BX)};BX.\u0275mod=xc({type:BX});BX.\u0275inj=ic({imports:[ay,WS,wG,gH,AS,yX,WP,dX,AX]});
var CX=function(a,b,c,d,e,f,h){qI.call(this);var k=this;this.cdr=a;this.paths=b;this.issueFridge=c;this.relatedIssues=d;this.errorHandler=e;this.analytics=f;this.domSafe=h;this.currentResourceType=this.currentResourceId=null;this.entrySelect=new Vw;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new Vw;this.hasSentTrackingEventForSearchByQuery=this.hasSentTrackingEventForSearchById=
!1;this.getTextToPutInInputOnSelect=function(){return k.query}};U(CX,qI);CX.\u0275dir=qI.\u0275dir;CX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(Qf(250),fg(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};CX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(v(this.defaultChoices),v(this.asyncChoices)))};
var Z2b=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(Y2b(b))return b.map(Number);b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return/[^0-9]/.test(b)?[]:[Oi(b)]},Y2b=function(a){return!a.some(function(b){return!!/[^0-9]/.test(b)})};CX.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
CX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)$2b(this);else{var b=Z2b(a);1===b.length||1<b.length&&this.allowMultipleIds?a3b(this,b,a):this.searchAsync(a)}};
var $2b=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;b3b(a,[])},b3b=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||Bs(c)},a3b=function(a,b,c){"issue"===a.currentResourceType&&1===b.length&&b[0]===a.currentResourceId?(a.searchingForSelf=!0,$2b(a)):(a.hasSentTrackingEventForSearchById||(io(a.analytics,mo.ISSUE_PICKER,"search","id"),a.hasSentTrackingEventForSearchById=!0),a.choices=c3b(a,b),a.hasLoadedResults=!1,
EJ(a.issueFridge,b).pipe(Tf(),fg(a.destroyed$)).subscribe(function(d){if(a.currentQuery===c){var e=d.reduce(function(f,h){var k=sa(h.snapshot);return f.set(h.issueId,{resourceId:h.issueId,displayText:k.title,status:k.status,relations:[]})},new Map);Ka(b);d=b.map(function(f){return e.get(f)});d.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=d;a.choices=[].concat(v(a.choices),v(a.asyncChoices));b3b(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=
!0;a.cdr.detectChanges()}))};
CX.prototype.searchAsync=function(a){var b=this;this.choices=d3b(this,a);this.hasLoadedResults=!1;if(Zi(a))this.hasLoadedResults=!0;else{this.hasSentTrackingEventForSearchByQuery||(io(this.analytics,mo.ISSUE_PICKER,"search","query"),this.hasSentTrackingEventForSearchByQuery=!0);var c=e3b(a,this.defaultChoices);this.relatedIssues.get(c,this.currentResourceType,this.currentResourceId,!0).then(function(d){b.currentQuery===a&&(d=d.issueDigests.map(function(e){return{resourceId:e.issueId,displayText:e.title,
status:e.status,relations:[]}}),b.choices=[].concat(v(b.choices),v(d)),b.cdr.detectChanges())},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.hasLoadedResults=!0})}};var c3b=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0].toString())})},d3b=function(a,b){return Zi(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};
CX.prototype.isLoadingAsyncResults=function(){return!this.hasLoadedResults};CX.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};var xJa=function(a){return a.relations.map(function(b){return f3b.get(b)}).filter(function(b){return!!b}).join("/")},e3b=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};CX.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};
oi.Object.defineProperties(CX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});CX.\u0275fac=function(a){return new (a||CX)(C(mI,2),C(LK),C(oL),C(sX),C(BK),C(IM),C(mP))};
CX.\u0275cmp=w({type:CX,selectors:[["b-issue-picker"]],viewQuery:function(a,b){a&1&&Ef(mN,5);if(a&2){var c;Df(c=Gf())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",enableAsyncSearch:"enableAsyncSearch",currentResourceId:"currentResourceId",currentResourceType:"currentResourceType",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[Je([sX,mI]),ee,Fc],decls:9,vars:8,consts:[[1,"bv2-issue-picker"],[4,"ngIf"],[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,"ngModel","matAutocomplete","paste","ngModelChange","keydown.enter","keydown.alt.arrowright"],[1,"issue-picker","base-resource-picker",3,"displayWith","optionActivated","optionSelected"],["auto","matAutocomplete"],["disabled","",4,"ngIf"],["disabled","","class",
"bv2-resource-picker-message",4,"ngIf"],["class","bv2-resource-picker-item bv2-issue-picker-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-issue-picker-message"],["disabled",""],[1,"spinner-container"],[3,"large"],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item","bv2-issue-picker-item",3,"value"],["role","region","tabindex","0"],[1,"issue-picker-status-display-alignment"],["displayMode","ICON",3,"issueStatusJs",4,"ngIf"],[1,"bv2-issue-picker-issue-id",3,"title"],["issueHovercard",
"onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.","data-stable","issue-pop-out","target","_blank",1,"gmat-button","small","bv2-issue-picker-pop-out",3,"onedevHovercardTrigger","href","click"],["svgIcon","pop-out",1,"icon-s"],[1,"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],
template:function(a,b){a&1&&(F(0,"div",0),M(1,sJa,3,0,"div",1),F(2,"div",2)(3,"input",3),J("paste",function(d){var e,f;d=null!=(f=null==(e=d.clipboardData)?void 0:e.getData("text"))?f:"";0<Z2b(d).length&&""===b.query&&io(b.analytics,mo.ISSUE_PICKER,"search","pasteId")})("ngModelChange",function(d){return b.search(d)})("keydown.enter",function(d){return b.onEnter(d)})("keydown.alt.arrowright",function(){b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice))}),G(),F(4,"mat-autocomplete",
4,5),J("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){b3b(b,[null==d.option?null:d.option.value])}),M(6,tJa,3,1,"mat-option",6),M(7,uJa,2,0,"mat-option",7),M(8,yJa,15,13,"mat-option",8),G()()());if(a&2){var c=Fe(5);B(1);E("ngIf",b.searchingForSelf);B(2);E("ngModel",b.query)("matAutocomplete",c);ke("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");B(1);E("displayWith",b.getTextToPutInInputOnSelect);
B(2);E("ngIf",""!==b.query&&b.isLoadingAsyncResults());B(1);E("ngIf",""!==b.query&&!b.isLoadingAsyncResults()&&0===b.choices.length);B(1);E("ngForOf",b.choices)}},dependencies:[Kx,Gx,Mg,py,vy,hF,GB,lN,mN,BB,xX,uX,fN,gN,jN,hN,cN,rM],styles:["input[_ngcontent-%COMP%]{width:450px}.bv2-issue-picker-message[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}"]});
var f3b=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]),DX=function(){};DX.\u0275fac=function(a){return new (a||DX)};DX.\u0275mod=xc({type:DX});DX.\u0275inj=ic({imports:[ay,Ky,CM,AF,wG,oN,BX,yX,QN,ON]});
var EX=function(a,b){this.dialogRef=a;this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1,currentResourceId:null,currentResourceType:null};this.isQueryRestricted=!1;this.selectedIssues=[];this.data=Object.assign({},this.DEFAULTS,b);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":""},CJa=function(a){if(""!==a.queryRestriction){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Un(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};EX.prototype.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};EX.\u0275fac=function(a){return new (a||EX)(C(QB),C(aC))};
EX.\u0275cmp=w({type:EX,selectors:[["b-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&Ef(CX,5);if(a&2){var c;Df(c=Gf())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&J("keydown.escape",function(){b.dialogRef.close()})},decls:15,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],["class","bv2-rel-issue-preview-link",4,"ngIf"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],["class","bv2-rel-issue-narrow-to-component",4,"ngIf"],
[1,"bv2-rel-issue-issue-picker",3,"defaultChoices","enableAsyncSearch","currentResourceId","currentResourceType","allowMultipleIds","keydown.enter","entrySelect","queryChange"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],[1,"bv2-rel-issue-preview-link"],["target","_blank","class","bv2-rel-issue-id-link",3,"href",4,"ngFor","ngForOf"],["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-narrow-to-component"],["role","checkbox","tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn",3,"matTooltip","click","keyup.space"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"div",2),M(4,AJa,2,1,"div",3),M(5,BJa,3,2,"div",3),G(),F(6,"div",4)(7,"div",5),M(8,DJa,2,2,"div",6),F(9,"b-issue-picker",7),J("keydown.enter",function(){return b.selectedIssues.length&&
b.dialogRef.close(b.selectedIssues)})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),G()()()(),F(10,"div",8)(11,"button",9),J("click",function(){return b.dialogRef.close()}),O(12," Cancel "),G(),F(13,"button",10),J("click",function(){return b.dialogRef.close(b.selectedIssues)}),O(14," Confirm "),G()());a&2&&(B(1),He(b.data.title),B(3),E("ngIf",1<b.selectedIssues.length),B(1),E("ngIf",1===b.selectedIssues.length),B(3),E("ngIf",!!b.queryRestriction),
B(1),pe("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),E("defaultChoices",b.data.defaultChoices)("enableAsyncSearch",!0)("currentResourceId",b.data.currentResourceId)("currentResourceType",b.data.currentResourceType)("allowMultipleIds",b.data.allowMultipleIds),B(4),E("disabled",!b.selectedIssues.length))},dependencies:[Kx,Gx,CX,FB,eC,fC,gC,wF],encapsulation:2});var FX=function(a){this.dialog=a};
FX.prototype.open=function(a,b){RB(this.dialog.open(EX,{panelClass:"no-jitter",data:a})).subscribe(function(c){c=void 0===c?[]:c;c=c.map(function(d){return d.resourceId});b(c)})};FX.\u0275fac=function(a){return new (a||FX)(t(cC))};FX.\u0275prov=hc({token:FX,factory:FX.\u0275fac});var GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=xc({type:GX});GX.\u0275inj=ic({providers:[FX],imports:[ay,DX,wG,hC,gH]});
var HX=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};HX.prototype.keydown=function(a){"Enter"===a.key&&!this.autocompleteActive&&""!==this.reporter&&this.save()};HX.prototype.cancel=function(){this.dialogRef.close()};HX.prototype.save=function(){this.dialogRef.close(this.reporter)};HX.\u0275fac=function(a){return new (a||HX)(C(QB))};
HX.\u0275cmp=w({type:HX,selectors:[["b-reporter-picker-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["matInput","",3,"bContactAutocomplete","ngModel","ngModelChange","autocompleteActive","keydown"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","",1,"gmat-button",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Change Reporter"),G(),F(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),O(5," Reporter "),G(),F(6,"input",1),J("ngModelChange",function(c){return b.reporter=
c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"mat-dialog-actions")(8,"button",2),J("click",function(){return b.cancel()}),O(9," Cancel "),G(),F(10,"button",3),J("click",function(){return b.save()}),O(11," Save "),G()());a&2&&(B(6),E("bContactAutocomplete","SINGLE")("ngModel",b.reporter),B(4),E("disabled",""===b.reporter))},dependencies:[Mg,py,vy,FB,eC,fC,gC,sC,pC,uC,QU],encapsulation:2});
var g3b=["addCommentDialog"],IX=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);this.cdr=a;this.activeSession=b;this.analytics=c;this.hotkeys=d;this.constants=e;this.componentActions=f;this.issueTypeDialog=h;this.copyIssueIdService=k;this.matDialog=q;this.$log=u;this.currentUserEmail=this.activeSession.getUserEmail();this.comment=new RR;this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new Vw;this.onCreateHotlist=new Vw;this.onLoadHotlist=new Vw;this.externalWarnings=[];this.controllerName="baseControls"};
U(IX,qI);IX.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};var h3b=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},EJa=function(a){return h3b(a)?"Mark as read":"Mark as unread"},Wp=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
IX.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=r(a),c=b.next();!c.done;c=b.next())c=c.value,null!=c.hotlistId||(c.hotlistId=[]);this.hotlistIdMatrix=a.map(function(d){return d.hotlistId});this.cdr.detectChanges()};
var i3b=function(a){if("PUBLIC"!==a.activeSession.frontendAccessMode){a.externalWarnings=[];var b=new Set(a.getSelectedIssues().map(function(e){return e.componentId})),c={};b=r(b);for(var d=b.next();!d.done;c={$jscomp$loop$prop$id$1704:c.$jscomp$loop$prop$id$1704},d=b.next())c.$jscomp$loop$prop$id$1704=d.value,a.componentActions.get(c.$jscomp$loop$prop$id$1704).then(function(e){if(a.activeSession.isInternalSession()&&kX(e)||rH(a.activeSession)&&lX(e)){var f,h=D2b(null==(f=e.componentPathInfo)?void 0:
f.componentPathName,e.componentId);a.externalWarnings.push({path:h,accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.$jscomp$loop$prop$id$1704+".")}}(c))}};
IX.prototype.bulkEdit=function(a){switch(a){case "ASSIGNEE":JX(this,null,0);break;case "COMPONENT":j3b(this);break;case "VERIFIER":JX(this,null,1);break;case "REPORTER":k3b(this);break;case "CHANGELIST":KX(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":l3b(this);break;case "FOUND_IN":KX(this,"foundInVersion","Found In");break;case "VERIFIED_IN":KX(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":KX(this,"targetedToVersion","Targeted To");break;case "COMMENT":m3b(this);
break;case "CC":KX(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
IX.prototype.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=this.constants.protoIssuePrioritiesEnumStrings.get(a.newValue))&&LX(this,"priority",a);break;case "SEVERITY":(a=this.constants.protoIssueSeveritiesEnumStrings.get(a.newValue))&&LX(this,"severity",a);break;case "STATUS":(a=JBb(this.constants.protoIssueStatusesEnumStrings.get(a.newValue)))&&JX(this,Fn[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=this.constants.protoIssueTypesEnumStrings.get(a.newValue))&&LX(this,"type",a);
break;case "IS_ARCHIVED":LX(this,"isArchived",""+a.newValue);break;case "IN_PROD":LX(this,"inProd",""+a.newValue);break;case "CC":LX(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+a.field)}};
IX.prototype.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?MX(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:"}):MX(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:"});break;case "BLOCKING":a.isMarking?MX(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:"}):MX(this,{actionType:"REMOVE",fieldName:"blockingIssueId",
title:"Unmark all selected issues as blocking:"});break;case "PARENT":a.isMarking?MX(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:"}):MX(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:"});break;case "DUPLICATE":JX(this,Fn.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};IX.prototype.bulkMarkIssueRead=function(){var a=h3b(this);LX(this,"readState",a?"true":"")};
var LX=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=Wp(a),h=[e];"deletionReason"===b&&h.push({fieldName:"isDeleted",value:"true"});d=function(){a.onSave.emit({bulkEditOps:[{issueIds:f,actions:h}]})};"type"!==b||"VULNERABILITY"!==c&&"PRIVACY_ISSUE"!==c?d():("VULNERABILITY"===c&&DR(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&DR(a.issueTypeDialog,"PRIVACY_ISSUE",d,function(){}))},JX=function(a,b,c){a.hasSelectedIssues()&&(i3b(a),a.stateModal.showDialog(a.getSelectedIssues(),
b,c))},n3b=function(a){var b=a.onSave,c=b.emit,d=Wp(a),e=a.stateModal.issueEditBuilder;a=[];e.issueState||xIa(e);e=r(LIa(e));for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;void 0!==h&&a.push({fieldName:f,value:h})}c.call(b,{bulkEditOps:[{issueIds:d,actions:a}]})},k3b=function(a){a.hasSelectedIssues()&&(i3b(a),RB(a.matDialog.open(HX,{width:"400px"})).pipe(fg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&LX(a,"reporter",b)}),a.hotkeys.pause())},
KX=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(RB(a.matDialog.open(oX,{width:"400px",data:{fieldDisplayName:c}})).pipe(fg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&o3b(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},o3b=function(a,b,c,d,e){e=void 0===e?!1:e;c=Yi(c);d=Yi(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return Vi(q,h).map(function(u){return u.trim()})};Zi(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),
f.push.apply(f,v(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));Zi(d)||(d=k(d),f.push.apply(f,v(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Wp(a),actions:f}]})},j3b=function(a){a.hasSelectedIssues()&&(RB(a.matDialog.open(nX,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(fg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Wp(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),io(a.analytics,a.controllerName,"bulkMove"))}),a.hotkeys.pause())},p3b=function(a){a.hasSelectedIssues()&&(RB(a.matDialog.open(mX,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(fg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(io(a.analytics,a.controllerName,"bulkFlagAsSpam"),LX(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},m3b=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.addCommentDialogRef=
a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),RB(a.addCommentDialogRef).pipe(fg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&QQb(a.comment)&&LX(a,"comment",a.comment.value);a.comment.reset()}),a.hotkeys.pause(),i3b(a))},NJa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},l3b=function(a){a.hasSelectedIssues()&&RB(a.matDialog.open(VP,{data:a.getSelectedIssues(),width:"500px"})).pipe(fg(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),
io(a.analytics,a.controllerName,"bulkCustomField"))})};
IX.prototype.handleHotlistPickerSave=function(a){var b=a.oldSelectionMap,c=[],d=[],e=0;Object.entries(a.newSelectionMap).forEach(function(f){var h=r(f);f=h.next().value;h=h.next().value;h!==b[f]&&(h?c.push(f):d.push(f),e++)});a=[];c.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:c.join(",")});d.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:d.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:Wp(this),actions:a}]}),io(this.analytics,this.controllerName,"applyHotlists",
"numHotlists",e))};var MX=function(a,b){var c=b.actionType,d=b.fieldName;RB(a.matDialog.open(EX,{data:{title:b.title}})).pipe(fg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(null==e?0:e.length)e=e[0].resourceId,a.onSave.emit({bulkEditOps:[{issueIds:Wp(a),actions:[{fieldName:d,value:String(e),actionType:c}]}]})});a.hotkeys.pause()};IX.\u0275fac=function(a){return new (a||IX)(C(mI),C(qH),C(IM),C(WI),C(RH),C(sT),C(CR),C(fT),C(cC),C(AK))};
IX.\u0275dir=w({type:IX,viewQuery:function(a,b){a&1&&(Ef(g3b,5),Ef(pX,5),Ef(jX,5));if(a&2){var c;Df(c=Gf())&&(b.addCommentDialog=c.first);Df(c=Gf())&&(b.hotlistPicker=c.first);Df(c=Gf())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},features:[ee]});
var NX=function(){};NX.\u0275fac=function(a){return new (a||NX)};NX.\u0275mod=xc({type:NX});NX.\u0275inj=ic({providers:[{provide:n_b,useFactory:function(){return new k_b}}]});
var OX=function(){};OX.\u0275fac=function(a){return new (a||OX)};OX.\u0275mod=xc({type:OX});OX.\u0275inj=ic({imports:[ay,NX]});
var PX=function(){};PX.\u0275fac=function(a){return new (a||PX)};PX.\u0275mod=xc({type:PX});PX.\u0275inj=ic({providers:[{provide:m_b,useFactory:UV}],imports:[ay,wG,AF,gH,OX,CM]});
var QX=function(){};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275mod=xc({type:QX});QX.\u0275inj=ic({imports:[ay,hX,WH,gH,pO,dX,PX,wG,AF]});
var RX=function(){};RX.\u0275fac=function(a){return new (a||RX)};RX.\u0275mod=xc({type:RX});RX.\u0275inj=ic({imports:[ay,hC,WS,Ky,wG,WH,qF,RU,QX]});
var SX=function(){};SX.\u0275fac=function(a){return new (a||SX)};SX.\u0275mod=xc({type:SX});SX.\u0275inj=ic({imports:[ay,qF,wG,vC,Ky,DB,gH,XH,LP,WH]});
var TX=function(a,b,c,d,e,f,h,k,q,u){IX.call(this,a,b,c,d,e,f,h,k,q,u);this.panels=[];this.controllerName="dashboardControls"};U(TX,IX);TX.\u0275dir=IX.\u0275dir;TX.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};TX.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Ka(a,null,function(b){return b.issueId.toString()});return a};
TX.\u0275fac=function(a){return new (a||TX)(C(mI,2),C(qH),C(IM),C(WI),C(RH),C(sT),C(CR),C(fT),C(cC),C(AK))};
TX.\u0275cmp=w({type:TX,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[Je([mI]),ee,Fc],decls:7,vars:5,consts:[[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[1,"bv2-appbar-menu",3,"showFlagIssuesAsSpam","flagAsSpamClicked"],[3,
"externalWarnings","save","close"],["addCommentDialog",""],[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange","onSubmit"],["class","bv2-external-component-modal-warning",
4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(M(0,FJa,1,1,"b-app-bar-bulk-edit-menus",0),M(1,JJa,1,2,"b-copy-issue-id-button",1),M(2,KJa,2,2,"div",2),F(3,"b-app-bar-more-menu",3),J("flagAsSpamClicked",function(){return p3b(b)}),G(),F(4,"b-state-modal",4),J("save",
function(){return n3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),M(5,OJa,10,5,"ng-template",null,5,Mf));a&2&&(E("ngIf",b.hasSelectedIssues()),B(1),E("ngIf",b.hasSelectedIssues()),B(1),E("ngIf",b.hasSelectedIssues()),B(1),E("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),E("externalWarnings",b.externalWarnings))},dependencies:[UH,TH,iX,Kx,Gx,LS,bT,pX,FB,dC,eC,fC,gC,jX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var UX=function(){};
UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=xc({type:UX});UX.\u0275inj=ic({imports:[YH,pO,QX,ay,WS,eT,SX,WH,wG,hC,RX]});
var VX=function(a,b){this.index=a;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)},q3b=function(a,b){this.cellType=b;this.enumFields=null;this.id=a.customFieldId;this.name=a.name;this.type=a.type;if("ENUM"===this.type||"REPEATED_ENUM"===this.type)this.enumFields=(a.allowedValue||[]).map(function(c){return{displayText:c,value:c}});["REPEATED_TEXT","REPEATED_DATE",
"REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},r3b=function(a,b){this.dirty=!1;var c=b.snapshot||{};this.customFields=a;this.new_=null==b.templateId;this.name=b.name||"";this.description=b.description||"";this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=Tl(c.assigneeUser)||"";this.verifier=Tl(c.verifierUser)||"";this.cc=Gqa(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||
!1;this.customFieldValues=Object.create(null);a=r(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=new cJ(b);a=r(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=r(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=null!=c.typedDefaultValue?new cJ(c.typedDefaultValue):new cJ({customFieldId:b}))},t3b=function(a,b){b.name=a.name;b.description=a.description;
var c=b.snapshot||{};s3b(a.type)?delete c.type:c.type=a.type;s3b(a.priority)?delete c.priority:c.priority=a.priority;s3b(a.severity)?delete c.severity:c.severity=a.severity;c.assigneeUser=Xl(a.assignee);c.verifierUser=Xl(a.verifier);c.ccUsers=a.cc.map(function(f){return Xl(f)});c.comment=a.comment;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];for(var d=r(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!e.isEmpty()&&c.customField.push(e);
b.snapshot=c};
r3b.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){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:ph(c,"Unexpected custom field type: "+c)}}this.dirty=!0};r3b.prototype.isDirty=function(){return this.dirty};var s3b=function(a){return Zi(a)||"--"===a},pKa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()});a.dirty=!0},u3b={value:"--",displayText:"--"};
var v3b=new xi("M/d/yyyy"),WX=function(a){this.dateFormatter=a;this.boundValueChange=new Vw;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};WX.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if("string"===typeof this.boundValue)var a=Pi(this.boundValue);else{var b;a=null!=(b=Qk(this.boundValue))?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
WX.prototype.change=function(a,b){b=void 0===b?!1:b;var c=this.googDate;if((c&&a?!c.equals(a):c||a)&&!b){this.googDate=a;if(a)if("string"===typeof this.boundValue)a=v3b.format(a);else{var d;a=null!=(d=CFb(v3b.format(a)))?d:void 0}else a="string"===typeof this.boundValue?"":void 0;this.boundValue=a;this.boundValueChange.emit(this.boundValue);this.textValue=this.googDate?this.dateFormatter.formatUserCalendar(this.googDate):""}};WX.\u0275fac=function(a){return new (a||WX)(C(AP))};
WX.\u0275cmp=w({type:WX,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:["bv2Id","inputId"],ariaLabelledBy:["bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},decls:1,vars:4,consts:[[3,"required","value","customFormId","customAriaLabelledBy","valueChange"]],template:function(a,b){a&1&&(F(0,"b-date-time-input",0),J("valueChange",function(c){return b.change(c)}),G());a&2&&E("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[GP],encapsulation:2});
var w3b={CREATE_COMPONENT:"components/new",CREATE_ISSUE:"issues/new",DASHBOARD:function(a){return"dashboard/"+a},EDIT_COMPONENT:function(a){return"components/"+a+"/edit"},EDIT_ISSUE:function(a){return"issues/"+a},LIST_COMPONENTS:"components",LIST_ISSUES:"issues",CREATE_BOOKMARK_GROUP:"bookmark-groups/new",VIEW_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a},VIEW_COMPONENT:function(a){return"components/"+a},VIEW_HOTLIST:function(a){return"hotlists/"+a},EDIT_HOTLIST:function(a){return"hotlists/"+
a+"/edit"},CREATE_HOTLIST:"hotlists/new",LIST_HOTLISTS:"hotlists",CREATE_SLO:"slos/new",VIEW_SLO:function(a){return"slos/"+a},EDIT_SLO:function(a){return"slos/"+a+"/edit"},LIST_SLOS:"slos",VIEW_SAVEDSEARCH:function(a){return"savedsearches/"+a},EDIT_BOOKMARK_GROUP:function(a){return"bookmark-groups/"+a+"/edit"},MANAGE_COMPONENT:function(a){return"components/"+a+"/manage"},MANAGE_COMPONENT_ACL:function(a){return"components/"+a+"/manage#access"},EDIT_SAVED_SEARCH:function(a){return"savedsearches/"+a+
"/edit"},SETTINGS:"settings"},x3b=Object.assign({},w3b,{EDIT_ISSUE:function(a){return"ng2/issues/"+a}}),y3b=new od("routes",{providedIn:"root",factory:function(){return w3b}}),XX=function(a){this.routes=a};g=XX.prototype;g.createIssue=function(a){return Xp(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Yp(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return Xp(this.routes.LIST_ISSUES,{params:a})};
g.viewSavedSearch=function(a){return Yp(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};g.viewHotlist=function(a){return Yp(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return Xp(this.routes.EDIT_HOTLIST(a),{id:a,tab:void 0})};g.createHotlist=function(){return this.routes.CREATE_HOTLIST};g.createBookmarkGroup=function(){return this.routes.CREATE_BOOKMARK_GROUP};g.viewBookmarkGroup=function(a){return Yp(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};
g.editBookmarkGroup=function(a){return Xp(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};g.editSavedSearch=function(a){return Xp(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return Xp(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=PJa(c);return gE("action/issues/csv","q",a,"s",b,"c",c,"h",d)};
g.hotlistIssuesCsvAction=function(a,b,c,d){a="action/hotlists/"+a+"/issues/csv";b=this.toApiSortParamValue(b);(c=PJa(c))&&(c="position,"+c);return gE(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return Xp(this.routes.LIST_COMPONENTS,{params:void 0})};
g.viewComponent=function(a,b){return Yp(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Yp(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};g.manageComponentAcl=function(a){return Yp(this.routes.MANAGE_COMPONENT_ACL(a),{id:a,tab:void 0})};g.createComponent=function(a){return Xp(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return Xp(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return Xp(this.routes.CREATE_SLO,{params:void 0})};
g.editSlo=function(a){return Xp(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return Xp(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};XX.\u0275fac=function(a){return new (a||XX)(t(y3b))};XX.\u0275prov=hc({token:XX,factory:XX.\u0275fac,providedIn:"root"});
var YX=function(a){this.pathBuilder=a;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new Vw};YX.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};YX.\u0275fac=function(a){return new (a||YX)(C(XX))};
YX.\u0275cmp=w({type:YX,selectors:[["b-hotlist-chip"]],inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","",3,"invisible","click",4,"ngIf"],["card","onedevHovercard"],[3,"hotlist"],["mat-icon-button","",3,"click"],["svgIcon","close"]],template:function(a,
b){a&1&&M(0,RJa,9,11,"ng-container",0);a&2&&E("ngIf",b.hotlist)},dependencies:[Gx,fN,jN,$M,hF,FB],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}.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-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:50%}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});
var z3b=["input"],A3b=function(a){return{enterDuration:a}},B3b=new od("mat-radio-default-options",{providedIn:"root",factory:SJa}),C3b=0,D3b={provide:Ix,useExisting:dc(function(){return ZX}),multi:!0},E3b=function(a,b){this.source=a;this.value=b},F3b=new od("MatRadioGroup"),$X=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+C3b++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=
function(){};this.onTouched=function(){};this.change=new Vw};g=$X.prototype;g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};g.ngAfterContentInit=function(){this._isInitialized=!0};g._touch=function(){if(this.onTouched)this.onTouched()};g._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
g._updateSelectedRadioFromValue=function(){var a=this,b=null!==this._selected&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};g._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new E3b(this._selected,this._value))};g._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};g.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
oi.Object.defineProperties($X.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="before"===a?"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=Yg(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=Yg(a);this._markRadiosForCheck()}}});
$X.\u0275fac=function(a){return new (a||$X)(C(zx))};$X.\u0275dir=w({type:$X,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var ZX=function(){$X.apply(this,arguments)};U(ZX,$X);ZX.\u0275fac=function(){var a;return function(b){return(a||(a=hd(ZX)))(b||ZX)}}();
ZX.\u0275dir=w({type:ZX,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&Ff(c,aY,5);if(a&2){var d;Df(d=Gf())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Je([D3b,{provide:F3b,useExisting:ZX}]),ee]});
var G3b=qi(si(function(a){this._elementRef=a})),bY=function(a,b,c,d,e,f,h,k){var q=G3b.call(this,b)||this;q._changeDetector=c;q._focusMonitor=d;q._radioDispatcher=e;q._providerOverride=h;q._uniqueId="mat-radio-"+ ++C3b;q.id=q._uniqueId;q.change=new Vw;q._checked=!1;q._value=null;q._removeUniqueSelectionListener=function(){};q.radioGroup=a;q._noopAnimations="NoopAnimations"===f;k&&(q.tabIndex=ah(k,0));q._removeUniqueSelectionListener=e.listen(function(u,y){u!==q.id&&y===q.name&&(q.checked=!1)});return q};
U(bY,G3b);g=bY.prototype;g.focus=function(a,b){b?Xz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};g.ngOnInit=function(){if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}};g.ngDoCheck=function(){this._updateTabIndex()};
g.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};g._emitChangeEvent=function(){this.change.emit(new E3b(this,this._value))};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onInputClick=function(a){a.stopPropagation()};
g._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};g._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
g._updateTabIndex=function(){var a=this.radioGroup;a=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex;if(a!==this._previousTabIndex){var b,c=null==(b=this._inputElement)?void 0:b.nativeElement;c&&(c.setAttribute("tabindex",a+""),this._previousTabIndex=a)}};
oi.Object.defineProperties(bY.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=Yg(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,null!==this.radioGroup&&(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||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled(Yg(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=Yg(a)}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});bY.\u0275fac=function(){wd()};
bY.\u0275dir=w({type:bY,viewQuery:function(a,b){a&1&&Ef(z3b,5);if(a&2){var c;Df(c=Gf())&&(b._inputElement=c.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ee]});
var aY=function(a,b,c,d,e,f,h,k){return bY.call(this,a,b,c,d,e,f,h,k)||this};U(aY,bY);aY.\u0275dir=bY.\u0275dir;aY.\u0275fac=function(a){return new (a||aY)(C(F3b,8),C(sd),C(zx),C(Wz),C(JA),C(iw,8),C(B3b,8),bd("tabindex"))};
aY.\u0275cmp=w({type:aY,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(a,b){a&1&&J("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(ke("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),pe("mat-radio-checked",b.checked)("mat-radio-disabled",b.disabled)("_mat-animation-noopable",b._noopAnimations)("mat-primary","primary"===b.color)("mat-accent","accent"===b.color)("mat-warn","warn"===
b.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ee],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered",
"matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(a,b){a&1&&(Ae(),F(0,"label",0,1)(2,"span",2),H(3,"span",3)(4,"span",4),F(5,"input",5,6),J("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),G(),F(7,"span",7),H(8,"span",8),G()(),F(9,"span",9)(10,"span",10),O(11,"\u00a0"),G(),Be(12),G()());if(a&2){var c=Fe(1);ke("for",b.inputId);B(5);
E("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);ke("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(2);E("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Le(17,A3b,b._noopAnimations?0:150));B(2);pe("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[yB],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],
encapsulation:2,changeDetection:0});
var H3b=["saveBeforeClosingDialog"],I3b=["deleteDialog"],jKa=function(){return[]},cY=function(a,b,c,d,e,f,h,k,q,u,y,D,I){qI.call(this);this.matDialogService=a;this.cdr=b;this.userApi=c;this.templatesApi=d;this.hotlistApi=e;this.constants=f;this.paths=h;this.butterBar=k;this.analytics=q;this.issueTypeDialog=u;this.componentActions=y;this.documentationLinks=D;this.appEvents=I;this.defaultIndex=-1;this.componentId=0;this.supportCustomFields=!1;this.templates=[];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.hotlistPickerIndex=0;this.FieldType=jYb;this.customFieldIds=Object.create(null);this.issueTypeChoices=J3b(this);this.priorityChoices=K3b(this);this.severityChoices=L3b(this)};U(cY,qI);cY.\u0275dir=qI.\u0275dir;g=cY.prototype;
g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();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([M3b(this),N3b(this)]).finally(function(){O3b(a);a.cdr.detectChanges()})};
g.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Ma(this.selectedHotlists,function(c,d){return ju(c.name,d.name)})};g.removeHotlist=function(a){za(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;io(this.analytics,"editTemplate","createHotlist");yK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){yK(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap;bh(a.newSelectionMap,function(d,e){e=Oi(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],wa(d,e)||d.push(e)):!d&&f&&za(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this,c=a.successCallback,d=a.errorCallback;this.hotlistApi.get(a.hotlistId).then(function(e){b.addHotlist(e);c(e);b.cdr.detectChanges()}).catch(d)};g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var J3b=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:KBb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[u3b].concat(b)};cY.prototype.getDateValue=function(a){return a};cY.prototype.getListFieldType=function(a){return a};
var mKa=function(a){var b,c,d,e;return(null==(b=a.repeatedTextValue)?void 0:b.values)||(null==(c=a.repeatedDateValue)?void 0:c.values)||(null==(d=a.repeatedEnumValue)?void 0:d.values)||(null==(e=a.repeatedNumericValue)?void 0:e.values)||null},bKa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?DR(a.issueTypeDialog,"VULNERABILITY"===a.currentTemplateRow.issueType?"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)},K3b=function(a){return[u3b].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},L3b=function(a){return[u3b].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))};cY.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,null!==c?c:void 0)};
var $p=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;dY(a)},WJa=function(a,b){var c=a.currentIndex;P3b(a,function(){b.index==c?$p(a):a.openEditor(b.index)})},Q3b=function(a){a.templateHotlistIds.push([]);P3b(a,function(){a.openEditor()})},Zp=function(a,b){return 0<=b.index&&b.index==a.currentIndex},qKa=function(a){if(!a.currentTemplate)return Promise.resolve();if(0>a.currentIndex){var b="creating";var c={componentId:a.componentId,default:!1};var d=function(q){yK(a.butterBar,
q.name?'Template "'+q.name+'" created.':"Template created.");io(a.analytics,"template","create");a.templates.push(q);a.openEditor(a.templates.length-1)}}else{b="updating";var e=a.currentIndex;c=a.templates[e];d=function(q){yK(a.butterBar,q.name?'Template "'+q.name+'" updated.':"Template updated.");io(a.analytics,"template","update");a.templates[e]=q;$p(a)}}a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];t3b(a.currentTemplate,c);yK(a.butterBar,"Saving template...");var f=c,h=
f.componentId,k=f.templateId;c.snapshot&&c.snapshot.ccUsers&&(c.snapshot.ccUsers=c.snapshot.ccUsers.filter(function(q){return null!=q}));return(k&&"0"!==String(k)?a.templatesApi.update(h,k,f):a.templatesApi.create(h,f)).then(function(q){a.appEvents.templateModified.next(String(a.componentId));d(q);a.cdr.detectChanges()}).catch(function(q){q=Im(q);zK(a.butterBar,q?"Error "+b+" template: "+q:"There was an error "+b+" the template.",0)})},XJa=function(a,b){RB(a.matDialogService.open(a.deleteDialog,{data:b})).pipe(fg(a.destroyed$)).subscribe(function(c){c&&
R3b(a,b)})},R3b=function(a,b){var c=b.index;ya(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(yK(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));yK(a.butterBar,"Deleted template");io(a.analytics,"template","delete");a.templates.splice(c,1);a.currentIndex==c?$p(a):dY(a);a.cdr.detectChanges()}).catch(function(){zK(a.butterBar,"Error while deleting template")}))},T3b=function(a,
b){b?qKa(a).then(function(){S3b(a);a.cdr.detectChanges()}):S3b(a)},YJa=function(a,b){var c;b=(null==(c=b.template)?void 0:c.templateId)||0;return a.paths.getBaseUrl()+"/"+a.paths.createIssue()+"?component="+a.componentId+"&template="+b};
cY.prototype.openEditor=function(a){var b=this;this.currentIndex=void 0===a?-1:a;if(0>this.currentIndex){this.currentTemplate=U3b(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();dY(this);this.cdr.detectChanges();var c;null==(c=document.getElementById("template-name"))||c.focus()}else V3b(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=U3b(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
dY(b);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var V3b=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},P3b=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,W3b(a)):b()},W3b=function(a){RB(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(fg(a.destroyed$)).subscribe(function(b){void 0!==b&&T3b(a,b)})},S3b=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},U3b=function(a,b){return new r3b(a.customFieldIds,b)},M3b=function(a){a.customFieldRows=
[];a.customFieldIds={};return a.supportCustomFields?a.componentActions.get(a.componentId).then(function(b){b=r(b.componentPathInfo.allCustomField||[]);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.enabledOnIssues)return;a.customFieldIds[c.customFieldId.toString()]=c;a.customFieldRows.push(new q3b(c,"TEXT"==c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){zK(a.butterBar,"Unable to load custom fields")}):Promise.resolve()},N3b=function(a){a.templates=[];return a.templatesApi.query(a.componentId).then(function(b){a.templates=
b;b=r(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.cdr.detectChanges()}).catch(function(){zK(a.butterBar,"Unable to load templates")})},O3b=function(a){dY(a);a.defaultIndex=a.templates.findIndex(function(b){return b.default})},dY=function(a){if(0>a.currentIndex)a.templateRows=a.templates.map(function(e,f){return new VX(f,e)}),a.currentTemplate&&(a.currentTemplateRow=new VX(-1,a.currentTemplate),
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 VX(f,e)}));a.currentTemplate&&(a.currentTemplateRow=new VX(b,a.currentTemplate),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new VX(b+f+1,e)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},X3b=function(a,b,c){return V3b(a,b).then(function(d){c(d);return a.templatesApi.update(d.componentId,
d.templateId,d)}).then(function(d){a.appEvents.templateModified.next(String(a.componentId));return d})},VJa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],c=b.name,Zi(Yi(c))&&(c="(unnamed template)"),b.default||(b=X3b(a,b,function(d){d.default=!0}),yK(a.butterBar,"Changing default template..."),b.then(function(){yK(a.butterBar,"Changed default template to "+c)},function(d){zK(a.butterBar,"Error while changing default message"+(Hm(d)?": "+Im(d):
"."))}),io(a.analytics,"template","changeDefault")))}};cY.\u0275fac=function(a){return new (a||cY)(C(cC),C(mI,2),C(cL),C(PJ),C(XK),C(RH),C(LK),C(xK),C(IM),C(CR),C(sT),C(kP),C(FK))};
cY.\u0275cmp=w({type:cY,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(Ef(H3b,5),Ef(I3b,5));if(a&2){var c;Df(c=Gf())&&(b.saveBeforeClosingDialog=c.first);Df(c=Gf())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[Je([mI]),ee],decls:21,vars:2,consts:[[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[4,"ngFor",
"ngForOf"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["deleteDialog",""],["saveBeforeClosingDialog",""],[4,"ngIf"],["colspan","4",4,"ngIf"],["tabindex","-1",1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"id","checked","aria-label","value","change"],["format","hairline",3,"bAriaLabel","onAction"],["format","hairline",3,"bAriaLabel","disabled","onAction"],["colspan","4"],[1,"template-edit-pane",
"template-editor-within-table"],["class","form-header",4,"ngIf"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModel","ngModelChange"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModel","ngModelChange"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModel","ngModelChange"],
[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["typeMenu",""],["mat-menu-item","",3,"disabled","matTooltip","click",4,"ngFor","ngForOf"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["priorityMenu",""],["mat-menu-item",
"",3,"disabled","click",4,"ngFor","ngForOf"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["severityMenu",""],[1,"cell-1","bv2-edit-template-hotlists"],["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"float-clear"],[1,"cell-2"],["for",
"template-assignee"],["id","template-assignee","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-verifier"],["id","template-verifier","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-cc"],["id","template-cc","type","text",1,"template-field",3,"bContactAutocomplete","ngModel","ngModelChange"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModel","ngModelChange"],["for",
"template-in-prod"],["id","template-in-prod","aria-label","issue in prod",3,"model","modelChange"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class",4,"ngFor","ngForOf"],[1,"buttons-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"onAction"],[1,"form-header"],["mat-menu-item","",3,"disabled","matTooltip","click"],["mat-menu-item","",3,"disabled","click"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[3,"for"],[3,"ngSwitch"],["class","template-field",
"type","text",3,"ngModel","ngModelChange",4,"ngSwitchCase"],["class","template-field","type","number","step","any",3,"ngModel","ngModelChange",4,"ngSwitchCase"],[3,"type","name","clearable","value","choices","valueChange",4,"ngSwitchCase"],[3,"boundValue","boundValueChange",4,"ngSwitchCase"],[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange",4,"ngSwitchDefault"],["type","text",1,"template-field",3,"ngModel","ngModelChange"],["type","number","step","any",1,"template-field",
3,"ngModel","ngModelChange"],[3,"type","name","clearable","value","choices","valueChange"],[3,"boundValue","boundValueChange"],[3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["cdkFocusInitial",
"","color","primary","mat-flat-button","",1,"gmat-button","medium","confirm",3,"mat-dialog-close"]],template:function(a,b){a&1&&(F(0,"div")(1,"div",0),O(2," A template is a set of default values for new issues created in this component. "),F(3,"a",1),O(4,"Learn more"),G()(),F(5,"table",2)(6,"tr")(7,"th"),O(8,"TEMPLATE"),G(),F(9,"th",3),O(10,"DEFAULT"),G(),H(11,"th",3)(12,"th",3),G(),M(13,sKa,3,2,"tr",4),G(),F(14,"div",5)(15,"b-button",6),J("onAction",function(){return Q3b(b)}),O(16," Create New "),
G()(),M(17,tKa,7,3,"ng-template",null,7,Mf),M(19,uKa,9,4,"ng-template",null,8,Mf),G());a&2&&(B(3),E("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Qd),B(10),E("ngForOf",b.templateRows))},dependencies:[oO,Kx,Gx,Mx,Nx,Ox,UU,Mg,xy,py,vy,YX,pX,WX,oV,FB,dC,fC,gC,aY,BT,QU,wF,tH,mF,kF,pF],encapsulation:2});
var eY=function(){};eY.\u0275fac=function(a){return new (a||eY)};eY.\u0275mod=xc({type:eY});eY.\u0275inj=ic({imports:[ay,dQ]});
var fY=function(a,b){var c=this;this.hotlists=a;this.userAccess=b;this.id$=new T.ReplaySubject(1);this.removeHotlist=new Vw;this.removable=!0;this.hotlist$=this.id$.pipe(eg(function(d){return c.hotlists.watch(d)}));this.isDisabled$=(0,T.combineLatest)([this.id$,this.id$.pipe(eg(function(d){return c.hotlists.isSaving$(d)}))]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return null==d?!1:e?!0:!1}))};
fY.prototype.ngOnInit=function(){var a=this;this.removable$="check-acl"===this.removable?this.id$.pipe(eg(function(b){return mK(a.userAccess,"appender","hotlists/"+b)})):(0,T.of)(this.removable)};oi.Object.defineProperties(fY.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});fY.\u0275fac=function(a){return new (a||fY)(C(iL),C(lK))};
fY.\u0275cmp=w({type:fY,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},decls:4,vars:9,consts:[[3,"hotlist","disabled","removable","removeHotlist"]],template:function(a,b){a&1&&(F(0,"b-hotlist-chip",0),J("removeHotlist",function(){null==b.idInternal?Vk("Missing id"):b.removeHotlist.emit()}),P(1,"async"),P(2,"async"),P(3,"async"),G());if(a&2){var c;E("hotlist",Q(1,3,b.hotlist$))("disabled",!0===Q(2,5,b.isDisabled$))("removable",null!==
(c=Q(3,7,b.removable$))&&void 0!==c?c:!1)}},dependencies:[YX,Tx],encapsulation:2,changeDetection:0});
var gY=function(){};gY.\u0275fac=function(a){return new (a||gY)};gY.\u0275mod=xc({type:gY});gY.\u0275inj=ic({imports:[ay,QN,LN,AF,wG]});
var hY=function(){};hY.\u0275fac=function(a){return new (a||hY)};hY.\u0275mod=xc({type:hY});hY.\u0275inj=ic({imports:[CB,kB,kB]});
var iY=function(){};iY.\u0275fac=function(a){return new (a||iY)};iY.\u0275mod=xc({type:iY});iY.\u0275inj=ic({imports:[pO,ay,VU,Ky,gY,SX,eY,pV,wG,hC,hY,CT,CM,RU,RS,EB,gH,WH,qF]});
var jY=function(a,b,c,d){this.currentSearch=b;this.analytics=c;this.domSafe=d;this.enableEstado=sH(a,"enableEstado")};jY.prototype.openInEstado=function(){io(this.analytics,"listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.currentSearch.currentSearch))};jY.\u0275fac=function(a){return new (a||jY)(t(qH),t(GN),t(IM),t(mP))};jY.\u0275prov=hc({token:jY,factory:jY.\u0275fac,providedIn:"root"});
var kY=function(a){Z.call(this,a)};U(kY,Z);kY.prototype.getMetric=function(){return Y(this,1,0)};kY.prototype.getMatcher=function(){return V(this,2)};kY.prototype.setMatcher=function(a){l(this,2,a)};kY.prototype.toObject=function(){return Y3b(void 0,this)};var Y3b=function(a,b){if(null!=b){var c={metric:n(p(b,1)),matcher:n(p(b,2)),dayType:n(p(b,4)),objective:Tu(a,m(b,mm,3)),businessDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Z3b=[1,2,3],gRa=new Map([[1,"Assignment"],[2,"Response"],[3,"Closure"]]),$3b=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),kRa=new Map([[0,"Calendar"],[1,"Calendar"],[2,"Business"]]);
var Pl=function(a){Z.call(this,a)};U(Pl,Z);Pl.prototype.getComponentId=function(){return hj(this,1)};Pl.prototype.setComponentId=function(a){return Xk(this,1,a)};Pl.prototype.getEffectiveSloEditPolicy=function(){return Y(this,2,0)};Pl.prototype.toObject=function(){return a4b(this)};var a4b=function(a){if(null!=a)return{componentId:hj(a,1),effectiveSloEditPolicy:Y(a,2,0)}};
var b4b=function(a){Z.call(this,a)};U(b4b,Z);b4b.prototype.toObject=function(){var a=null!=this?{componentSloEditPolicy:a4b(m(this,Pl,1))}:void 0;return a};b4b.messageId="b.GetComponentSloEditPolicyResponse";
var lY=function(a){Z.call(this,a)};U(lY,Z);lY.prototype.getTeamSloEditPolicy=function(){return m(this,kJ,1)};lY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:ZFb(this.getTeamSloEditPolicy())}:void 0;return a};lY.messageId="b.GetTeamSloEditPolicyResponse";
var mY=function(a){Z.call(this,a,-1,c4b)};U(mY,Z);g=mY.prototype;g.getSloId=function(){return nj(this,1)};g.setSloId=function(a){return l(this,1,a)};g.getVersion=function(){return hj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return V(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return gj(this,3)};g.getDescription=function(){return V(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getParentId=function(){return nj(this,5)};
g.setParentId=function(a){l(this,5,a)};var at=function(a){return tb(a,kY,6)};mY.prototype.getIsArchived=function(){return W(this,8)};mY.prototype.setIsArchived=function(a){l(this,8,a)};var c4b=[6,7];mY.prototype.toObject=function(){return d4b(void 0,this)};
var d4b=function(a,b){if(null!=b){var c={sloId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),parentId:n(p(b,5)),elementsList:Eb(at(b),Y3b,a),effectiveElementsList:Eb(tb(b,kY,7),Y3b,a),isArchived:n(Xo(b,8)),alertState:n(p(b,9))};a&&(c.$jspbMessageInstance=b);return c}};mY.messageId="b.SloState";
var f4b=function(a){Z.call(this,a,-1,e4b)};U(f4b,Z);var e4b=[1];f4b.prototype.toObject=function(){var a=null!=this?{slosList:Eb(tb(this,mY,1),d4b)}:void 0;return a};f4b.messageId="b.SloSearchResponse";
var nY=function(a){Z.call(this,a)};U(nY,Z);nY.prototype.getTeamSloEditPolicy=function(){return m(this,kJ,1)};nY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:ZFb(this.getTeamSloEditPolicy())}:void 0;return a};nY.messageId="b.UpdateTeamSloEditPolicyResponse";
var oY=function(a,b){this.activeSession=a;this.executor=b};g=oY.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:mY})};g.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};g.search=function(a){return this.executor.get({url:"action/slos",options:{params:{query:a}},responseConstructor:f4b}).pipe(R(function(b){return tb(b,mY,1)}))};
g.create=function(a){return this.executor.post({url:"action/slos",body:a,responseConstructor:mY})};g.update=function(a){var b=a.getSloId();return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:mY})};oY.\u0275fac=function(a){return new (a||oY)(t(qH),t(hI))};oY.\u0275prov=hc({token:oY,factory:oY.\u0275fac,providedIn:"root"});var pY=function(a,b){this.observableSlosService=b;var c;this.slosCache=null!=(c=a.get("slos-second-level-cache"))?c:a.create("slos-second-level-cache",{capacity:25})};
g=pY.prototype;g.get=function(a){var b=this.slosCache.get(a);return void 0!==b?b:this.slosCache.put(String(a),(0,T.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,T.firstValueFrom)(this.observableSlosService.getOwnedSlos())};g.search=function(a){return(0,T.firstValueFrom)(this.observableSlosService.search(a))};g.create=function(a){return(0,T.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,T.firstValueFrom)(this.observableSlosService.update(a))};
pY.\u0275fac=function(a){return new (a||pY)(t(UK),t(oY))};pY.\u0275prov=hc({token:pY,factory:pY.\u0275fac,providedIn:"root"});
var qY=function(a,b){this.sloStatusHelpersService=a;this.dateFormatter=b;this.timeDisplayText="--";this.objectiveDisplayText=null;this.iconName="slo-status-no-data"};qY.prototype.getIconName=function(a){return g4b.has(a)?g4b.get(a):"slo-status-no-data"};
var h4b=function(a,b,c){a.iconName=a.getIconName(b);c=null!==c?DOb(1E3*c).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";switch(b){case "COMPLETED":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"Issue assigned":"RESPONSE"===a.sloMetricDescription?"Response recorded":"CLOSURE"===a.sloMetricDescription?"Issue closed":"fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" to assign":"RESPONSE"===a.sloMetricDescription?
c+" to respond":"CLOSURE"===a.sloMetricDescription?c+" to close":c+" left";break;case "OUT_OF_SLO":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" overdue for assignment":"RESPONSE"===a.sloMetricDescription?c+" overdue for response":"CLOSURE"===a.sloMetricDescription?c+" overdue for closure":c+" overdue";break;case "NO_DATA":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"No assignment SLO":"RESPONSE"===a.sloMetricDescription?"No response SLO":"CLOSURE"===a.sloMetricDescription?
"No closure SLO":"--";break;default:Vk("unknown status type: "+b)}};
qY.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&WR(this.sloBounds)){var b=this.sloBounds.getStartTime().getSeconds(),c=this.sloBounds.getTargetTime().getSeconds();(b=c-b)?this.objectiveDisplayText=DOb(1E3*b):this.objectiveDisplayText=null;b=this.sloBounds;WR(b)&&b.hasEndTime()&&0!==b.getEndTime().getSeconds()&&b.getEndTime().getSeconds()<=Date.now()/1E3?(c=this.sloBounds.getEndTime().getSeconds(),h4b(this,"COMPLETED",a-c)):c<a?h4b(this,"OUT_OF_SLO",a-c):(b=this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil),
a=c-a,h4b(this,259200<a?b?"SNOOZED_HEALTHY":"HEALTHY":b?"SNOOZED_NEAR":"NEAR",a))}else h4b(this,"NO_DATA",null),this.objectiveDisplayText=null};qY.\u0275fac=function(a){return new (a||qY)(C(VR),C(BP))};
qY.\u0275cmp=w({type:qY,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloSnoozeUntil:"sloSnoozeUntil",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Fc],decls:5,vars:5,consts:[[3,"ngClass","svgIcon"],[1,"slo-time-indicator-text"],[1,"slo-status-text"],[4,"ngIf"]],template:function(a,b){a&1&&(H(0,"mat-icon",0),F(1,"span",1)(2,"span",2),O(3),M(4,vKa,2,1,"span",3),G()());a&2&&(E("ngClass",b.iconName)("svgIcon",
b.iconName),ke("aria-label","--"===b.timeDisplayText?"No SLO data":""),B(3),Ge("",b.timeDisplayText," "),B(1),E("ngIf",b.includeObjective&&b.objectiveDisplayText))},dependencies:[Jx,Gx,hF],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}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}"],
changeDetection:0});var g4b=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 rY=function(a){this.sloStatusHelpersService=a;this.includeNoSlo=!1};rY.prototype.ngOnInit=function(){i4b(this);this.hasSlo=!!this.sloStatus&&WQb(this.sloStatus)};rY.prototype.ngOnChanges=function(){i4b(this)};var i4b=function(a){a.sloStatus&&(a.assignmentSlo=j4b(bl(a.sloStatus.getAssignmentBounds())),a.responseSlo=j4b(bl(a.sloStatus.getResponseBounds())),a.closureSlo=j4b(bl(a.sloStatus.getClosureBounds())))};rY.prototype.isSloSnoozed=function(){return this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil)};
var j4b=function(a){if(WR(a))return a};rY.\u0275fac=function(a){return new (a||rY)(C(VR))};
rY.\u0275cmp=w({type:rY,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Fc],decls:3,vars:3,consts:[[4,"ngIf"],["sloMetricDescription","ASSIGNMENT",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloSnoozeUntil","sloBounds","includeObjective"]],template:function(a,
b){a&1&&(M(0,wKa,2,3,"div",0),M(1,xKa,2,3,"div",0),M(2,yKa,2,3,"div",0));a&2&&(E("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),B(1),E("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),B(1),E("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[Gx,qY],encapsulation:2,changeDetection:0});
var sY=function(a,b,c,d){this.sloStatusHelpersService=a;this.paths=b;this.analytics=c;this.sloApi=d};sY.prototype.ngOnInit=function(){var a;if(a=!!this.sloStatus)a:switch(a=this.sloStatus,this.onlyShowMetric){case "ASSIGNMENT":a=WR(a.getAssignmentBounds());break a;case "RESPONSE":a=WR(a.getResponseBounds());break a;case "CLOSURE":a=WR(a.getClosureBounds());break a;default:a=WQb(a)}this.hasSlo=a;"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),k4b(this)):this.editSloLink=null};
sY.prototype.trackOpenSlo=function(){io(this.analytics,mo.EDIT_SLO,"open","fromSloStatusCard")};var k4b=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.getName()}).catch(function(){a.sloName=null})};sY.\u0275fac=function(a){return new (a||sY)(C(VR),C(LK),C(IM),C(pY))};
sY.\u0275cmp=w({type:sY,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",onlyShowMetric:"onlyShowMetric"},ngContentSelectors:["*"],decls:10,vars:4,consts:[[3,"onedevHovercardTrigger"],["card",""],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],["class","slo-indicators",4,"ngIf"],["class","no-slo-message",4,"ngIf"],[4,"ngIf"],[1,"slo-indicators"],[3,"sloStatus",
"sloSnoozeUntil","onlyShowMetric"],[1,"no-slo-message"],["class","slo-link",3,"href","click",4,"ngIf"],[1,"slo-link",3,"href","click"]],template:function(a,b){a&1&&(Ae(),F(0,"span",0),Be(1),G(),F(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),M(7,zKa,2,3,"div",5),M(8,CKa,3,2,"div",6),M(9,FKa,4,2,"span",7),G()()()());if(a&2){var c=Fe(3);E("onedevHovercardTrigger",c);B(7);E("ngIf",b.hasSlo);B(1);E("ngIf",!b.hasSlo);B(1);E("ngIf",b.editSloLink)}},dependencies:[Gx,fN,jN,rY],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}\n/*# sourceMappingURL=slo_status_card.css.map */"]});
var tY=function(a){var b=this;this.selectedCustomField=null;this.isLegalColumn=function(c){return void 0===b.columns.find(function(d){return d.name===String(c.customFieldId)})};this.column=a.column;this.columns=a.columns};tY.\u0275fac=function(a){return new (a||tY)(C(aC))};
tY.\u0275cmp=w({type:tY,selectors:[["b-column-picker-custom-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"filter","fieldSelected"],["mat-button","",1,"gmat-button","medium","cancel",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button","medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"mat-dialog-content")(3,"b-custom-field-picker",1),J("fieldSelected",function(c){return b.selectedCustomField=c}),
G()(),F(4,"mat-dialog-actions")(5,"button",2),O(6," Cancel "),G(),F(7,"button",3),O(8," Add "),G()());a&2&&(B(1),Ge("Insert custom field column next to ",b.column.fullLabel,""),B(2),E("filter",b.isLegalColumn),B(4),E("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[FB,dC,eC,fC,gC,AV],encapsulation:2});
var l4b="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".split(" ");
var uY=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)};uY.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var m4b={issueId:{defaultSortDirection:"DESC",label:"ID"},priority:{label:"P",fullLabel:"Priority"},severity:{label:"S",fullLabel:"Severity"},modifiedTime:{defaultSortDirection:"DESC",label:"LAST MODIFIED"},magic:{label:"MAGIC NUMBER"},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},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:"Show status icons"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC 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},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"}},o4b=function(a){if("CUSTOM_FIELD"===a.type)return new uY({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,
sortable:void 0!==a.customFieldId,tooltip:""});a=Mi(a.type);"canonicalIssueId"===a&&(a="duplicateOfIssueId");return l4b.includes(a)?n4b(a):null},q4b=function(a){return p4b(a.map(o4b).filter(function(b){return!!b}))},r4b=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:Oi(b.name),customFieldName:void 0}:(b=(b.name||"").replace(/([A-Z])/g,"_$1").toUpperCase(),"DUPLICATE_OF_ISSUE_ID"===b&&(b="CANONICAL_ISSUE_ID"),b={type:b,customFieldId:void 0,customFieldName:void 0});
return b})},p4b=function(a){return Hj(a,function(b){return b.name})},n4b=function(a){var b={name:a,label:a.toUpperCase()},c=m4b[a];c?Object.assign(b,c):l4b.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new uY(b)};
var vY=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};vY.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var s4b=function(){this.bindings=[]};s4b.prototype.off=function(){for(var a=r(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var t4b=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new s4b;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"),null!=b.dragIndex&&(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(null!=b.dragIndex)b.params.onDragDropColumn(b.dragIndex,d)})}c.stopPropagation();c.preventDefault()}};
t4b.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(){u4b(a,"dragstart",a.onDragTargetDragstart);u4b(a,"dragenter",a.onDragTargetDragenter);u4b(a,"dragend",a.onDragTargetDragend);u4b(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new vY(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new vY(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new vY(a.mask,"drop",a.onMaskDrop))})};var u4b=function(a,b,c){a.eventBindings.bindings.push(new vY(a.element,b,bq("th.drag-target",c)))};t4b.prototype.tearDown=function(){this.eventBindings.off()};
var v4b=["table"],w4b=["defaultHeaderCellTemplate"],x4b=["defaultViewCellTemplate"],y4b=["dataRows"],JKa=function(a){return{column:a}},MKa=function(a,b,c){return{row:a,column:b,index:c}},wY=function(a,b){var c=this;this.activeSession=a;this.ngZone=b;this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new Vw;this.rowClick=new Vw;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new Vw;this.focusedRowIndexChange=new Vw;this.afterViewInit=
new Vw;this.readUnreadOptOut=sH(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(d,e){var f=[].concat(v(c.columns));d=f.splice(d,1)[0];f.splice(e,0,d);c.columns=f;c.columnsChange.emit([].concat(v(c.columns)))};this.onTdClickableClick=bq("td.clickable",function(d,e){"mouseup"===d.type&&1!==d.button||MNb(e)||(e=e.closest("tr"))&&c.rowClick.emit({id:Number(e.dataset.rowId),isRead:!!e.dataset.isRead,event:d})})};
wY.prototype.ngOnInit=function(){var a=this;this.dragDropHeaderLogic=new t4b({nativeElement:this.tableElement.nativeElement,ngZone:this.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});this.dragDropHeaderLogic.setup();this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
wY.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;null!=b&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(dya(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};wY.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
wY.prototype.ngOnDestroy=function(){var a;null==(a=this.dragDropHeaderLogic)||a.tearDown();this.tableElement.nativeElement.removeEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.removeEventListener("mouseup",this.onTdClickableClick)};var z4b=function(a){return a.columns.map(function(b){b=b.name;return null!=b?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};wY.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
wY.prototype.focus=function(){if(null!=this.focusedRowIndex&&null!=this.dataRows){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};wY.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};wY.\u0275fac=function(a){return new (a||wY)(C(qH),C(mg))};
wY.\u0275cmp=w({type:wY,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(Ef(v4b,7),Ef(w4b,7),Ef(x4b,7),Ef(y4b,5,sd));if(a&2){var c;Df(c=Gf())&&(b.tableElement=c.first);Df(c=Gf())&&(b.defaultHeaderCellTemplate=c.first);Df(c=Gf())&&(b.defaultViewCellTemplate=c.first);Df(c=Gf())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer"},outputs:{columnsChange:"columnsChange",rowClick:"rowClick",
sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},features:[Fc],decls:13,vars:3,consts:[[1,"pop-grid",3,"mousedown"],["table",""],[3,"class",4,"ngFor","ngForOf"],[1,"header-row"],[4,"ngFor","ngForOf"],[4,"ngIf"],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",3,"click","focus"],
["dataRows",""],[3,"column"],[3,"row","column"]],template:function(a,b){a&1&&(F(0,"table",0,1),J("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),F(2,"colgroup"),M(3,HKa,1,3,"col",2),G(),F(4,"thead")(5,"tr",3),M(6,KKa,2,4,"ng-container",4),G()(),F(7,"tbody"),M(8,PKa,2,1,"ng-container",5),G()(),M(9,QKa,2,1,"ng-template",null,6,Mf),M(11,RKa,2,2,"ng-template",null,7,Mf));a&2&&(B(3),E("ngForOf",b.columns),B(3),E("ngForOf",b.columns),B(2),E("ngIf",z4b(b)))},encapsulation:2});
var xY=function(a,b){this.templateRef=a;this.popGrid=b};xY.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};xY.\u0275fac=function(a){return new (a||xY)(C(Af),C(wY))};xY.\u0275dir=w({type:xY,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var yY=function(a,b){this.templateRef=a;this.popGrid=b};yY.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};
yY.\u0275fac=function(a){return new (a||yY)(C(Af),C(wY))};yY.\u0275dir=w({type:yY,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var zY=function(a,b){this.templateRef=a;this.popGrid=b};zY.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};zY.\u0275fac=function(a){return new (a||zY)(C(Af),C(wY))};zY.\u0275dir=w({type:zY,selectors:[["","forHeaderCellDefault",""]]});
var AY=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new Vw};AY.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?"ASC"===this.sort.direction?a+", sorted ascending":a+", sorted descending":a};AY.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
AY.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a="ASC"===this.sort.direction?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};AY.\u0275fac=function(a){return new (a||AY)};
AY.\u0275cmp=w({type:AY,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},decls:3,vars:8,consts:[["role","button","tabindex","0",1,"keep-focus-ring","pop-grid-sort-header",3,"click","keydown.enter","keydown.space"],[1,"arrow"]],template:function(a,b){a&1&&(F(0,"div",0),J("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),H(1,"span",1),O(2),G());a&2&&(pe("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),ke("aria-label",b.ariaLabel()),B(2),Ge(" ",b.columnLabel," "))},encapsulation:2});
var BY=function(a,b){this.elementRef=a;this.grid=b};BY.prototype.ngAfterViewInit=function(){if(this.column){var a=this.column;if(a.draggable){var b;a:{for(b=this.elementRef.nativeElement;b.parentElement;){if("TH"===b.parentElement.tagName){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}}};BY.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
BY.\u0275fac=function(a){return new (a||BY)(C(sd),C(wY,8))};
BY.\u0275cmp=w({type:BY,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},decls:3,vars:2,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged",4,"ngIf"],["class","pop-grid-non-sort-header keep-focus-ring","tabindex","0",4,"ngIf"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip","sortChanged"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"]],template:function(a,b){a&1&&(F(0,"div",0),
M(1,SKa,1,5,"b-sortable-header",1),M(2,TKa,2,2,"div",2),G());a&2&&(B(1),E("ngIf",b.column.sortable),B(1),E("ngIf",!b.column.sortable))},dependencies:[Gx,wF,AY],encapsulation:2});
var ZKa=function(a,b){return{columns:a,before:b}},A4b=function(){return{before:!1}},B4b=function(){return{before:!0}},CY=function(a,b,c,d,e,f){qI.call(this);var h=this;this.matDialog=a;this.userPreferencesManager=b;this.butterBar=c;this.analytics=d;this.hotkeys=e;this.activeSession=f;this.selectedColumnsChange=new Vw;this.onAddTeamColumn=new Vw;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=pH.listViewPreferences;b.preferences$.pipe(fg(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||pH.listViewPreferences})};U(CY,qI);CY.\u0275dir=qI.\u0275dir;CY.prototype.ngOnChanges=function(a){a.selectedColumns&&C4b(this)};
var D4b=function(a){a.selectedColumnsChange.emit([].concat(v(a.selectedColumns)));C4b(a)},VKa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=ona(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||yK(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(Tf(),fg(a.destroyed$)).subscribe(function(){io(a.analytics,"preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||yK(a.butterBar,"Display preference saved.",
4E3)},function(){a.activeSession.isAnonymous()||zK(a.butterBar,"Display preference could not be saved.")})},bLa=function(a,b){a.hotkeys.pause();RB(a.matDialog.open(tY,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(fg(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},C4b=function(a){for(var b={},c=r(a.selectedColumns),d=c.next();!d.done;d=
c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!sja(b,f.name)});c=[].concat(v(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(h){return h.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(v(d),v(c));a.currentAvailableItems.sort(function(f,h){return ju(f instanceof uY?f.fullLabel:f.label,h instanceof uY?h.fullLabel:
h.label)});a.isRemovable=E4b(a)};CY.prototype.isIssueGridColumn=function(a){return a instanceof uY};CY.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,D4b(this),!0}return!1};
CY.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new uY({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;"TEAM"===a.label&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(-1===d)return!1;b=b?d:d+1;this.selectedColumns=[].concat(v(this.selectedColumns));this.selectedColumns.splice(b,0,a);D4b(this);return!0};
var E4b=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};CY.\u0275fac=function(a){return new (a||CY)(C(cC),C(PI),C(xK),C(IM),C(WI),C(qH))};
CY.\u0275cmp=w({type:CY,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&Ef(pF,5);if(a&2){var c;Df(c=Gf())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[ee,Fc],decls:20,vars:11,consts:[[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button","class",
"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active","menuOpened","menuClosed","keydown.enter","keydown.space",4,"ngIf"],[1,"columnpicker-menu"],["pickerMenu","matMenu"],["mat-menu-item","","class","checkbox-item",3,"b-menu-item-checked","click",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","click"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["addColumnMenu","matMenu"],["matMenuContent",""],["columnGroupMenu","matMenu"],["mat-button","",
"tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","menuOpened","menuClosed","keydown.enter","keydown.space"],["menuTrigger","matMenuTrigger"],["mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["mat-menu-item","",3,"click"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"matTooltip","click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngIf"],["mat-menu-item",
"",3,"matTooltip","click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),H(2,"pop-grid-default-th",2),G(),M(3,UKa,2,4,"div",3),F(4,"mat-menu",4,5),M(6,WKa,4,3,"button",6),M(7,XKa,1,0,"mat-divider",7),F(8,"button",8),J("click",function(){return b.remove()}),O(9," Remove column "),G(),F(10,"button",9),O(11," Add column right "),G(),F(12,"button",9),O(13," Add column left "),G()(),F(14,"mat-menu",null,10),M(16,cLa,4,1,"ng-template",11),G(),F(17,
"mat-menu",null,12),M(19,eLa,1,1,"ng-template",11),G()());if(a&2){var c=Fe(15);B(2);E("column",b.column);B(1);E("ngIf",!0);B(3);E("ngForOf",b.column.moreOptions);B(1);E("ngIf",b.column.moreOptions.length);B(1);E("disabled",!b.isRemovable);B(2);E("matMenuTriggerFor",c)("matMenuTriggerData",Ke(9,A4b));B(2);E("matMenuTriggerFor",c)("matMenuTriggerData",Ke(10,B4b))}},dependencies:[Kx,Gx,mF,kF,pF,jF,SH,wF,tH,BY],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;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}  .columnpicker-menu .mat-menu-content button.mat-menu-item{line-height:0px;padding:5px 32px 5px 16px;white-space:normal;font-family:Roboto,Arial,sans-serif}  .columnpicker-menu .mat-menu-content button.mat-menu-item.checkbox-item{padding-left:24px}  .columnpicker-menu .mat-menu-content button.mat-menu-item .b-menu-item-check-mark{top:50%;transform:translate(0, -50%)}\n/*# sourceMappingURL=column_picker.css.map */']});
var H4b=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=bq("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=bq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){F4b(b.dragTargetRow);b.dragTargetRow=d;b.draggedIssueIndex=b.params.rowFinder(Number(b.draggedRow.dataset.rowId));b.dragTargetIndex=b.params.rowFinder(Number(b.dragTargetRow.dataset.rowId));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("static"!==window.getComputedStyle(c).position)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=bq("tr",function(){b.draggedRow&&(F4b(b.draggedRow),F4b(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed","false"),b.draggedRow=b.dragTargetRow=
void 0)});this.onTrDragLeave=bq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=bq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=bq(".row-dropzone",function(c){F4b(b.dragTargetRow);G4b(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=bq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=bq(".row-dropzone",function(c){G4b(b);b.draggedIssueIndex!==b.dragTargetIndex&&
b.params.ngZone.run(function(){if(null!=b.draggedIssueIndex&&null!=b.dragTargetIndex)b.params.onRowDragDrop({srcIndex:b.draggedIssueIndex,destIndex:b.dragTargetIndex})});c.stopPropagation();c.preventDefault()})};
H4b.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");G4b(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)})};
H4b.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 F4b=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},G4b=function(a){a.dropzone.style.display="none"};
var DY=function(a){this.sloStatusHelpersService=a;this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};DY.prototype.ngOnInit=function(){I4b(this)};DY.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&I4b(this)};var I4b=function(a){var b=XQb(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
DY.\u0275fac=function(a){return new (a||DY)(C(VR))};
DY.\u0275cmp=w({type:DY,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Fc],decls:1,vars:4,consts:[[3,"sloBounds","sloMetricDescription","sloSnoozeUntil","includeObjective"]],template:function(a,b){a&1&&H(0,"b-slo-time-indicator",0);a&2&&E("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloSnoozeUntil",b.sloSnoozeUntil)("includeObjective",
b.includeObjective)},dependencies:[qY],encapsulation:2,changeDetection:0});
var EY=function(){};EY.\u0275fac=function(a){return new (a||EY)};EY.\u0275cmp=w({type:EY,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(F(0,"span"),H(1,"mat-icon",0),O(2,"Archived "),G())},dependencies:[hF],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(--status-archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var FY=function(){};FY.\u0275fac=function(a){return new (a||FY)};FY.\u0275mod=xc({type:FY});FY.\u0275inj=ic({imports:[ay,AF]});
var J4b=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],GY=function(){this.compactMode=this.labelOnlyMode=!1};GY.prototype.ngOnInit=function(){};GY.\u0275fac=function(a){return new (a||GY)};
GY.\u0275cmp=w({type:GY,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:6,consts:[[1,"bv2-chip"],["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"field-label-with-help",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"help-label",3,"ngClass"]],template:function(a,
b){a&1&&(Ae(J4b),F(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),Be(5),G()()(),F(6,"div",4)(7,"span",5),Be(8,1),G()()());if(a&2){var c=Fe(2),d;B(3);ke("aria-label",b.hovercardAriaLabel);B(3);E("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);B(1);pe("compact-chip",b.compactMode);E("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[Jx,fN,jN],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-issue-title-box[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%], .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 HY=function(a){this.documentationLinks=a;this.documentationLink=Ct()};HY.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=uo(Fm(this.retentionState.scheduledDeletionTime)):this.retentionExpireTime=void 0};HY.\u0275fac=function(a){return new (a||HY)(C(kP))};
HY.\u0275cmp=w({type:HY,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Fc],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mode","timestamp"],["target","_blank",3,"href"]],template:function(a,b){a&1&&M(0,fLa,9,5,"ng-container",0);a&2&&E("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[Gx,CP],encapsulation:2});
var IY=function(){this.compactMode=!1;this.text=""};IY.prototype.ngOnChanges=function(){var a;null!=(null==(a=this.retentionState)?void 0:a.scheduledDeletionTime)?(a=uo(Fm(this.retentionState.scheduledDeletionTime)),this.text=Bya(a,!this.compactMode)):this.text=""};IY.\u0275fac=function(a){return new (a||IY)};
IY.\u0275cmp=w({type:IY,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Fc],decls:1,vars:1,template:function(a,b){a&1&&O(0);a&2&&He(b.text)},encapsulation:2});
var JY=function(){this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};JY.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=hLa(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};JY.\u0275fac=function(a){return new (a||JY)(C(kP))};
JY.\u0275cmp=w({type:JY,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Fc],decls:1,vars:1,consts:[["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode",4,"ngIf"],["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&&M(0,gLa,5,7,"b-base-chip",0);a&2&&E("ngIf",b.showRetentionInfo)},dependencies:[Gx,GY,IY,HY],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 TLa=function(a,b,c){return{low:a,high:b,p0:c}},xMa=function(a){return{id:a}},cNa=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},K4b=function(){return[]},KY=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){var L=this;this.activeSession=a;this.cdr=b;this.elementRef=c;this.teamsService=d;this.ngZone=e;this.userPreferencesManager=f;this.hotlistFridge=h;this.issueFridge=k;this.bLocation=q;this.issuePagination=u;this.paths=y;this.errorHandler=D;this.$log=I;this.domSafe=N;this.lastCheckedIndex=
null;this.focusedRowIndexChange=new Vw;this.columns=[];this.columnsChange=new Vw;this.enableColumnSaving=!1;this.sort=null;this.sortChange=new Vw;this.rowClick=new Vw;this.init=new Vw;this.onRowDragDrop=new Vw;this.onNextPage=new Vw;this.onPrevPage=new Vw;this.selectionCallbacks=[];this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=sH(this.activeSession,"enableAggregationRules");this.destroyed$=new T.ReplaySubject(1);this.starInProgress={};this.readUnreadOptOut=sH(this.activeSession,"readUnreadOptOut");
b=Ea(l4b);a.isInternalSession()||(za(b,"minSlo"),za(b,"responseSlo"),za(b,"assignmentSlo"),za(b,"closureSlo"),za(b,"deletionTime"),za(b,"team"),za(b,"estimate"),za(b,"estimateTotalOpen"),za(b,"estimateTotalComplete"));this.availableColumns=b.map(n4b);this.dragDropLogic=new H4b({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(S){return L4b(L,S)},onRowDragDrop:function(S){L.onRowDragDrop.emit(S)}})};g=KY.prototype;
g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(fg(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=jLa((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(v(e.hotlistId||[])))}))||[]);EJ(this.hotlistFridge,[].concat(v(c)))}if(a.searchResults||a.columns)for(b=r(this.columns),c=b.next();!c.done;c=b.next())"TEAM"===c.value.label&&M4b(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set((null==(d=a.searchResults.previousValue)?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((null==b?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);ena(a,d)||cq(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=r(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}cq(this)};
var N4b=function(a){if(a.searchResults){for(var b=r(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}cq(a)};KY.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var rLa=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},O4b=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},qLa=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=r(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"};
KY.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};
var Q4b=function(a){if(P4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),cq(a))}},pLa=function(a){if(a.searchResults){for(var b=!O4b(a),c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();cq(a)}},R4b=function(a){null!=a.focusedRowIndex&&a.searchResults&&a.focusedRowIndex<a.searchResults.issues.length-1?(a.focusedRowIndex++,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasNextPage()&&tLb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},S4b=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&tLb(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
LY=function(a,b){b=void 0===b?{}:b;if(P4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var c=a.searchResults.issues[a.focusedRowIndex];c&&(b.openInNewTab?a.domSafe.openInNewTab(a.paths.editIssue(c.issueId)):a.bLocation.url(a.paths.editIssue(c.issueId)))}},T4b=function(a,b){a.selectionCallbacks.push(b);b()},cq=function(a){a=r(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},U4b=function(a){P4b(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},
V4b=function(a,b){b=void 0===b?!0:b;var c=a.getSelectedIssues();if(0!==c.length){for(var d=r(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();qL(a.issueFridge,c.map(function(f){return f.issueId}),{markRead:b}).then(function(f){for(var h=r(c),k=h.next();!k.done;k=h.next()){var q=void 0;k.value.lastViewedTime=null!=(q=f)?q:null}}).catch(function(){for(var f=r(c),h=f.next();!h.done;h=f.next())h=h.value,h.isRead=!!h.lastViewedTime&&h.lastViewedTime>=h.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
KY.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,DJb(this.issueFridge,String(a.issueId),a.starred).pipe(Tf(),fg(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()}))};
KY.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var P4b=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},L4b=function(a,b){return a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1},M4b=function(a){if(a.searchResults){for(var b=new Set,c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),"0"!==d&&b.add(d);0<b.size?(a.isLoadingTeams=!0,LKb(a.teamsService,[].concat(v(b))).pipe(fg(a.destroyed$)).subscribe(function(e){e=
bj(e,1,YL);if(a.searchResults)for(var f=r(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);"0"!==k&&e.has(k)&&(h.team=e.get(k).getName())}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};KY.prototype.isIssueGridColumn=function(){return!0};KY.\u0275fac=function(a){return new (a||KY)(C(qH),C(mI,2),C(sd),C(bM),C(mg),C(PI),C(iL),C(oL),C(KK),C(LM),C(LK),C(BK),C(AK),C(mP))};
KY.\u0275cmp=w({type:KY,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&Ef(wY,7);if(a&2){var c;Df(c=Gf())&&(b.grid=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},features:[Je([mI]),
Fc],decls:49,vars:51,consts:[[1,"keep-focus-ring",3,"list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer","columnsChange","focusedRowIndexChange","sortChange","rowClick"],["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",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],["class",
"clickable datetime-cell",4,"forViewCell"],["class","componentPath-cell clickable",3,"ngClass",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],["issueWithHovercard",""],[1,"focus-indicator"],[4,"ngIf"],[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","click","keydown.enter","keydown.space"],[3,"column"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange",
4,"ngIf"],[3,"column",4,"ngIf"],[3,"column","availableColumns","selectedColumns","selectedColumnsChange"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state","click"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage","starClicked"],["data-template","issueId",1,"clickable"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container"],[3,"accessLevel","compactMode"],[3,"retentionState","showOnlyInDangerZone",
"compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],["tabindex","-1",1,"row-issue-title",3,"href"],["class","bv2-hotlist-chips",4,"ngIf"],[1,"bv2-hotlist-chips"],[3,"id","removable",4,"ngFor","ngForOf"],[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"ngClass"],[1,"severity-cell","clickable"],["data-stable-cell","status",1,"clickable"],[3,"issueStatusJs","displayMode",4,"ngIf"],[3,"issueStatusJs","displayMode"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],
[3,"email",4,"ngIf"],[3,"email"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable",3,"ngClass"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloSnoozeUntil",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil"],[3,"sloStatus","sloSnoozeUntil"],[3,"sloId","sloStatus","sloSnoozeUntil","onlyShowMetric",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil","onlyShowMetric"],
[3,"sloBounds"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],["class","animated-loading-bar",4,"ngIf"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],template:function(a,b){a&1&&(F(0,"div")(1,"pop-grid",0),J("columnsChange",function(c){b.columns=
c;b.columnsChange.emit(c);b.cdr.detectChanges()})("focusedRowIndexChange",function(c){b.focusedRowIndex=c;return b.focusedRowIndexChange.emit(b.focusedRowIndex)})("sortChange",function(c){return b.sortChange.emit(c)})("rowClick",function(c){return b.rowClick.emit(c)}),M(2,mLa,2,2,"th",1),M(3,oLa,2,2,"th",2),M(4,tLa,2,2,"th",3),M(5,vLa,2,2,"th",4),M(6,xLa,2,2,"th",4),M(7,BLa,2,2,"th",5),M(8,DLa,2,1,"td",6),M(9,FLa,2,1,"td",7),M(10,HLa,2,1,"td",8),M(11,JLa,2,1,"td",9),M(12,LLa,2,1,"td",10),M(13,NLa,
2,1,"td",11),M(14,SLa,2,3,"td",12),M(15,VLa,2,1,"td",13),M(16,XLa,2,1,"td",14),M(17,aMa,2,1,"td",15),M(18,cMa,2,1,"td",16),M(19,gMa,2,1,"td",17),M(20,kMa,2,1,"td",17),M(21,oMa,2,1,"td",17),M(22,qMa,2,1,"td",17),M(23,sMa,2,1,"td",17),M(24,uMa,2,1,"td",17),M(25,AMa,2,1,"td",17),M(26,FMa,2,1,"td",17),M(27,JMa,2,1,"td",17),M(28,LMa,2,1,"td",18),M(29,NMa,2,1,"td",18),M(30,PMa,2,1,"td",18),M(31,RMa,2,1,"td",18),M(32,TMa,2,1,"td",17),M(33,VMa,2,1,"td",17),M(34,XMa,2,1,"td",17),M(35,ZMa,2,1,"td",17),M(36,
aNa,2,1,"td",17),M(37,dNa,2,5,"td",19),M(38,gNa,2,1,"td",20),M(39,jNa,2,1,"td",20),M(40,mNa,2,1,"td",20),M(41,pNa,2,1,"td",20),M(42,sNa,2,1,"td",17),M(43,wNa,2,1,"td",17),M(44,yNa,2,1,"td",17),M(45,ANa,2,1,"td",17),M(46,CNa,2,1,"td",17),G()(),M(47,ENa,5,2,"ng-template",null,21,Mf));a&2&&(B(1),E("list",(null==b.searchResults?null:b.searchResults.issues)||Ke(50,K4b))("columns",b.columns)("focusedRowIndex",b.focusedRowIndex)("scrollContainer",".bv2-view")("sort",b.sort)("rowLabelRenderer",b.issueDescription),
B(1),E("forHeaderCell","focused"),B(1),E("forHeaderCell","draghandle"),B(1),E("forHeaderCell","selected"),B(1),E("forHeaderCell","starred"),B(1),E("forHeaderCell","position"),B(2),E("forViewCell","focused"),B(1),E("forViewCell","draghandle"),B(1),E("forViewCell","selected"),B(1),E("forViewCell","starred"),B(1),E("forViewCell","position"),B(1),E("forViewCell","issueId"),B(1),E("forViewCell","title"),B(1),E("forViewCell","priority"),B(1),E("forViewCell","severity"),B(1),E("forViewCell","status"),B(1),
E("forViewCell","type"),B(1),E("forViewCell","reporter"),B(1),E("forViewCell","assignee"),B(1),E("forViewCell","verifier"),B(1),E("forViewCell","cc"),B(1),E("forViewCell","changelist"),B(1),E("forViewCell","postmortem"),B(1),E("forViewCell","blockingIssueId"),B(1),E("forViewCell","blockedByIssueId"),B(1),E("forViewCell","duplicateOfIssueId"),B(1),E("forViewCell","createdTime"),B(1),E("forViewCell","modifiedTime"),B(1),E("forViewCell","resolvedTime"),B(1),E("forViewCell","verifiedTime"),B(1),E("forViewCell",
"foundInVersion"),B(1),E("forViewCell","targetedToVersion"),B(1),E("forViewCell","verifiedInVersion"),B(1),E("forViewCell","inProd"),B(1),E("forViewCell","archived"),B(1),E("forViewCell","componentPath"),B(1),E("forViewCell","minSlo"),B(1),E("forViewCell","responseSlo"),B(1),E("forViewCell","assignmentSlo"),B(1),E("forViewCell","closureSlo"),B(1),E("forViewCell","deletionTime"),B(1),E("forViewCell","team"),B(1),E("forViewCell","estimate"),B(1),E("forViewCell","estimateTotalOpen"),B(1),E("forViewCell",
"estimateTotalComplete"))},dependencies:[EY,Jx,Kx,Gx,Qx,zB,wY,BY,xY,yY,zY,qY,sY,CP,DY,qR,uX,fY,JY,LS,aN,fN,gN,jN,hN,xX,dV,CY,pM,qM,sM,tM,vM,zM],encapsulation:2,changeDetection:0});
var MY=new uY({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),W4b=new uY({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),NY=new uY({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),OY=new uY({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),X4b=new uY({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});
var PY=function(a,b,c){qI.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new Vw;this.onCloseIssuePicker=function(e){e=void 0===e?[]:e;if(0!==e.length&&null!=d.id){var f=e.join(", ");d.snackBar.open(1===e.length?"Adding issue "+f+" to this hotlist":"Adding multiple issues to this hotlist: "+f,void 0,{duration:2500});d.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:d.id,actionType:"ADD"}],issueIds:e}]}).then(d.didSave,d.gotErr)}};
this.didSave=function(){d.issueAddedToHotlist.emit();d.snackBar.open("Successfully added to hotlist",void 0,{duration:2500})};this.gotErr=function(e){var f,h,k,q,u=null!=(q=null!=(k=null==e?void 0:null==(f=e.error)?void 0:f.message)?k:null==e?void 0:null==(h=e.data)?void 0:h.message)?q:"Error adding issues to the hotlist";d.snackBar.open(u,"close",{panelClass:"error"})}};U(PY,qI);PY.\u0275dir=qI.\u0275dir;PY.\u0275fac=function(a){return new (a||PY)(C(uK),C(FX),C(fK))};
PY.\u0275cmp=w({type:PY,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[ee],decls:2,vars:0,consts:[["mat-button","","matTooltip","Add issues to this hotlist",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),O(1," Add Issue(s) "),G())},dependencies:[FB,wF],encapsulation:2});
var QY=function(a,b,c,d){qI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(eg(function(f){return e.fridge.watchOne(f)}),bg({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(R(function(f){return!(null==f||!f.archived)}),Sf());this.archiveActionLabel$=this.archived$.pipe(R(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(R(function(f){return f?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(f){return function(){e.snackBar.open(f?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});e.events.hotlistChanged.next()}};this.gotErr=function(f){return function(h){var k=f?"archiving":"unarchiving";e.snackBar.open(Im(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(fg(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};U(QY,qI);QY.\u0275dir=qI.\u0275dir;
QY.prototype.isThinking=function(a){return this.fridge.isThinking(a)};QY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var Z4b=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Tn("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){Y4b(a,b)}}):Y4b(a,b)}},Y4b=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
QY.\u0275fac=function(a){return new (a||QY)(C(iL),C(uK),C(RM),C(FK))};
QY.\u0275cmp=w({type:QY,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[ee,Fc],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return Z4b(b)}),P(1,"async"),O(2),P(3,"async"),G());if(a&2){var c;E("disabled",b.isThinking(b.id))("matTooltip",null!==(c=Q(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");B(2);Ge(" ",Q(3,5,b.archiveActionLabel$)," ")}},dependencies:[FB,
wF,Tx],encapsulation:2});
var RY=function(a,b,c,d,e,f,h,k,q,u,y,D){IX.call(this,a,b,c,d,e,f,h,k,q,u);this.estadoService=y;this.refreshMonitor=D;this.init=new Vw;this.onRefresh=new Vw;this.isHotlistAdmin=!1;this.onExportCsv=new Vw;this.showHotlistButtons=!1;this.csvExportEnabled="PUBLIC"!==this.activeSession.frontendAccessMode;this.enableEstadoInAppBar=this.estadoService.enableEstado;this.controllerName="gridControls"};U(RY,IX);RY.\u0275dir=IX.\u0275dir;g=RY.prototype;g.ngOnInit=function(){this.init.emit(this)};
g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&T4b(this.grid,function(){b.onSelectionChange()})};g.getSelectedIssues=function(){var a,b;return null!=(b=null==(a=this.grid)?void 0:a.getSelectedIssues())?b:[]};g.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};g.openInEstado=function(){this.estadoService.openInEstado()};RY.\u0275fac=function(a){return new (a||RY)(C(mI,2),C(qH),C(IM),C(WI),C(RH),C(sT),C(CR),C(fT),C(cC),C(AK),C(jY),C(kL))};
RY.\u0275cmp=w({type:RY,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[Je([mI]),ee,Fc],decls:11,vars:8,consts:[["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation",
"onBulkMarkIssueRead",4,"ngIf"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch",4,"ngIf"],["class","bv2-grid-hotlist-picker",4,"ngIf"],[4,"ngIf"],["class","compact","tooltip","Reporting","aria-label","Reporting",3,"size","format","onAction",4,"ngIf"],[1,"bv2-appbar-menu",3,"showExportCsv","showFlagIssuesAsSpam","exportCsvClicked","flagAsSpamClicked"],[3,"externalWarnings","save","close"],["addCommentDialog",""],[3,
"readStatePrompt","onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks","onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch"],[1,"bv2-grid-hotlist-picker"],[3,"selectedHotlistIds","choices","onApply","onCreate","onLoad"],[3,"hotlistId","issueAddedToHotlist"],[3,"hotlistId",4,"ngIf"],[3,"hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format","onAction"],["name",
"bar-chart","size","large"],["class","bv2-estado-text",4,"ngIf"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","commentChange","onSubmit"],["class","bv2-external-component-modal-warning",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(F(0,
"b-button",0),J("onAction",function(){return b.refresh()}),H(1,"b-icon",1),G(),M(2,FNa,1,1,"b-app-bar-bulk-edit-menus",2),M(3,GNa,1,2,"b-copy-issue-id-button",3),M(4,HNa,2,2,"div",4),M(5,JNa,3,2,"ng-container",5),M(6,LNa,3,3,"b-button",6),F(7,"b-app-bar-more-menu",7),J("exportCsvClicked",function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return p3b(b)}),G(),F(8,"b-state-modal",8),J("save",function(){return n3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),M(9,ONa,10,
5,"ng-template",null,9,Mf));a&2&&(B(2),E("ngIf",b.hasSelectedIssues()),B(1),E("ngIf",b.hasSelectedIssues()),B(1),E("ngIf",b.hasSelectedIssues()),B(1),E("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),B(1),E("ngIf",b.enableEstadoInAppBar),B(1),E("showExportCsv",b.csvExportEnabled)("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),E("externalWarnings",b.externalWarnings))},dependencies:[UH,TH,oO,iX,Kx,Gx,LS,bT,QY,PY,pX,tH,FB,dC,eC,fC,gC,jX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});
var $4b=["multiUserInput"],SY=function(a,b,c,d,e,f){qI.call(this);var h=this;this.element=a;this.accessPolicyConverter=b;this.principalTypes=c;this.activeSession=d;this.documentationLinks=e;this.appEvents=f;this.usersChange=new Vw(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.ariaLabel="";this.isValid=new Vw;this.typedText="";this.items=[];this.chipifyFn=function(){a5b(h)};this.additionalContactsFn=function(){return b5b(h)};
this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){h.typedText=""}))};U(SY,qI);SY.\u0275dir=qI.\u0275dir;
SY.prototype.ngOnInit=function(){var a=this;this.validators=Object.assign({},{validateGaia:function(b,c){return c5b(c)},validateInternalAccessLevel:function(b,c){return d5b(a,c)},validateExternalAccessLevel:function(b,c){return e5b(a,c)}},this.customValidators)};SY.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=f5b(this,this.users),TY(this)};
var TY=function(a){var b=[].concat(v(a.items)),c=g5b(b),d=h5b(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Hi(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
SY.prototype.validate=function(a,b,c){for(var d=new Set,e=r(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=r(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=r(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return 0===this.violations.size};
var RNa=function(a){!a.isWidgetDisabled()&&i5b(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},PNa=function(a){dq(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};SY.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var i5b=function(a){var b,c;return 0>a.maxUserAllowed||(null!=(c=null==(b=a.users)?void 0:b.length)?c:0)<a.maxUserAllowed};
SY.prototype.removeItem=function(a){this.isWidgetDisabled()||!dq(this,a)||this.items[a].isReadonly||(PNa(this),this.items.splice(a,1),TY(this))};SY.prototype.setAccessLevel=function(a){this.accessLevel=a};
var b5b=function(a){return j5b(a).map(function(b){return{text:Opa(b),id:a.accessPolicyConverter.accessPolicyPrincipalToString({alias:b})}})},j5b=function(a){if(!a.includeAliases||"PUBLIC"===a.activeSession.frontendAccessMode)return[];var b=["googlers_unrestricted"];if(void 0===a.accessLevel||"EXTERNAL_PUBLIC"===a.accessLevel)b.push("public_non_google"),a.includeViewAliases&&b.push("public");return b},a5b=function(a){setTimeout(function(){a.typedText&&fa(a.typedText,",")&&SNa(a,a.typedText.split(",")[0].trim())})},
SNa=function(a,b){b&&(b=fTb.test(b)?k5b(a,b):l5b(a,b),a.items.push(b));a.typedText="";TY(a)},dq=function(a,b){return 0<=b&&b<a.items.length},k5b=function(a,b){var c=void 0===c?!1:c;var d=a.accessPolicyConverter.stringToAccessPolicyPrincipal(b);if(void 0===d.alias)throw Error("Md`"+b);b=d.alias;d=Opa(b);return new UY(4,b,d,null,c,a)},m5b=function(a,b){b=Do(b);var c=new UY(3,b,b,null,!1,a);kI(a.principalTypes,b,!0).then(function(d){c.detailedUserType=Y(d,2,0);TY(a)});return c},n5b=function(a,b){var c=
void 0===c?!1:c;b=Do(b);var d=new UY(2,b,b,null,c,a);kI(a.principalTypes,b,!0).then(function(e){d.detailedUserType=Y(e,2,0);TY(a)});return d},l5b=function(a,b){var c=void 0===c?!1:c;b=Do(b);var d=new UY(0,b,b,null,c,a);kI(a.principalTypes,b,!0).then(function(e){d.principalType=Y(e,1,0);d.detailedUserType=Y(e,2,0);TY(a)});return d},o5b=function(a,b,c){return new UY(0,"",b,c,!0,a)};SY.prototype.getAccessLevel=function(){return this.accessLevel};SY.prototype.getAppName=function(){return this.activeSession.getAppName()};
SY.prototype.onKeyDown=function(a){8===a.keyCode?dq(this,this.selectedChipIndex)?(dq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex),a.stopPropagation(),a.preventDefault()):""===this.typedText&&0<this.items.length&&this.removeItem(this.items.length-1):46===a.keyCode?dq(this,this.selectedChipIndex)&&dq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):RNa(this)};
var f5b=function(a,b){b=(b||[]).map(function(d){return p5b(a,d)});if(a.containerChips){var c=a.containerChips.filter(function(d){return void 0!==d.values&&Array.isArray(d.values)&&0<d.values.length}).map(function(d){return o5b(a,d.displayText,d.values.map(function(e){return p5b(a,e)}))});return[].concat(v(c),v(b))}return b},p5b=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("we`"+b);var d=Number(c[0]);if(2!==d&&3!==d&&4!==d)throw Error("we`"+b);return 4===d?k5b(a,b):2===d?n5b(a,c[1]):
m5b(a,c[1])},g5b=function(a){return(a||[]).filter(function(b){return 0!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},h5b=function(a){return(a||[]).filter(function(b){return 0!==b.detailedUserType}).map(function(b){return b.detailedUserType+":"+b.value})},c5b=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},d5b=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},e5b=function(a,b){return"EXTERNAL_PARTNER"!==
a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};SY.\u0275fac=function(a){return new (a||SY)(C(sd),C(DT),C(jI),C(qH),C(kP),C(FK))};
SY.\u0275cmp=w({type:SY,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&Ef($4b,5);if(a&2){var c;Df(c=Gf())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&J("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",customValidators:"customValidators",detailedUserValidators:"detailedUserValidators",
ariaLabel:"ariaLabel"},outputs:{usersChange:"usersChange",isValid:"isValid"},features:[ee,Fc],decls:11,vars:10,consts:[[1,"bv2-multi-user-input",3,"click"],["class","bv2-user-chip",4,"ngFor","ngForOf"],["class","bv2-multi-user-embedded-input","b-adaptive-width-input","","tabindex","0",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","autocompleteActive","ngModelChange","focus","blur",4,"ngIf"],["role","alert",1,"bv2-multi-user-errors"],[4,"ngIf"],[1,"bv2-user-chip"],[3,"isReadonly",
"isSelected","isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel","chipSelection","chipClear","chipRemove"],["b-adaptive-width-input","","tabindex","0",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","autocompleteActive","ngModelChange","focus","blur"],["multiUserInput",""],["target","_blank"]],template:function(a,b){a&1&&(F(0,"div",0),J("click",function(){return RNa(b)}),F(1,"div"),M(2,
QNa,2,9,"div",1),M(3,TNa,2,5,"input",2),G()(),F(4,"div",3),M(5,UNa,4,1,"span",4),M(6,VNa,2,0,"span",4),M(7,WNa,2,0,"span",4),M(8,XNa,2,0,"span",4),M(9,YNa,2,0,"span",4),M(10,ZNa,2,0,"span",4),G());a&2&&(pe("focused",b.isFocused),B(2),E("ngForOf",b.items),B(1),E("ngIf",i5b(b)),B(2),E("ngIf",b.violations.has("noRestrictedPlusGroups")),B(1),E("ngIf",b.violations.has("validateGaia")),B(1),E("ngIf",b.violations.has("validateInternalAccessLevel")),B(1),E("ngIf",b.violations.has("validateExternalAccessLevel")),
B(1),E("ngIf",b.violations.has("sloLeadNotUser")),B(1),E("ngIf",b.violations.has("sloLeadNotGoogler")))},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:transparent;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:auto;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}\n/*# sourceMappingURL=multi_user_input.css.map */"]});
var UY=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType=0;this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=UY.prototype;
g.getTooltip=function(){if(4!==this.principalType)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 logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("xe`"+this.value);}};
g.isGroupChip=function(){return 3===this.principalType};g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return 3===this.detailedUserType||4===this.detailedUserType||this.isPublicChip()};g.isNonGaiaChip=function(){return 1===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};
g.isInternalAccessViolated=function(){return"INTERNAL"===this.parentController.getAccessLevel()&&(this.isExternalChip()||this.isPublicChip())};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.parentController.getAccessLevel()&&this.isPublicChip()};g.isUserChip=function(){return 2===this.principalType};
var VY=function(){var a=this;this.checks=[];this.beforeUnloadEventHandler=function(b){if(a.checks.some(function(c){return c.dataChanged()}))return b.preventDefault(),b.returnValue="","You have unsaved changes in your form."};window.addEventListener("beforeunload",this.beforeUnloadEventHandler)};VY.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var WY=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new T.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};VY.prototype.canDeactivate=function(a,b,c,d){a:{a=TG(c.url).getPath()===TG(d.url).getPath();b=r(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?q5b()?(this.checks=[],!0):!1:!0};var q5b=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
VY.\u0275fac=function(a){return new (a||VY)};VY.\u0275prov=hc({token:VY,factory:VY.\u0275fac,providedIn:"root"});
var r5b=function(a){return{displayText:"Admins",values:a}},s5b=function(a){return[a]},t5b=function(a){return{displayText:"Appenders",values:a}},u5b=Tn("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?"),XY=function(a,b,c,d,e,f,h,k){qI.call(this);var q=this;this.hotlistAccessPolicyFridge=a;this.links=b;this.snackBar=
c;this.events=d;this.dialog=f;this.permissions=h;this.userApi=k;this.id$=new T.ReplaySubject(1);this.idSubject$=Jk(this.id$.pipe(fg(this.destroyed$)));this.acl$=this.id$.pipe(eg(function(u){return q.hotlistAccessPolicyFridge.watchOne(u)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=Jo(this.links);this.validity={};this.isValid=function(){return Object.values(q.validity).every(Boolean)};this.isInvalid=function(){return!q.isValid()};this.allAppenders=
[];this.onPressSave=function(){v5b(q)?q.dialog.open({title:"Change Hotlist Admins",content:u5b,isDestructive:!0,onConfirm:q.doSave}):q.doSave()};this.doSave=function(){var u=q.idSubject$.value;if(null!=u){var y=v5b(q);u={id:u,admins:Zta(q.admins),appenders:Zta(q.appenders),editors:null,readers:Zta(q.readers),inheritance:null,implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};q.hotlistAccessPolicyFridge.save(u).subscribe({next:q.didSave(y,
u.id),error:q.gotErr})}};this.didSave=function(u,y){return function(){q.snackBar.open("Access control saved",void 0,{duration:2500});q.events.hotlistChanged.next();mt(q.permissions,y);u&&q.doStar()}};this.gotErr=function(u){q.snackBar.open(Im(u)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var u=q.idSubject$.value;if(u){var y,D=null==(y=mna())?void 0:y.getEmail();q.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:u,userLogin:D}).then(function(){q.events.hotlistChanged.next()})}};
this.onPressRevert=function(){q.resetEdits()};this.gotAcl=function(u){q.latestPolicy=u;var y,D,I;q.latestCompactPolicy={admins:Xta(null==(y=q.latestPolicy)?void 0:y.admins),appenders:Xta(null==(D=q.latestPolicy)?void 0:D.appenders),readers:Xta(null==(I=q.latestPolicy)?void 0:I.readers)};q.resetEdits()};this.isChanged=function(){var u=q.latestCompactPolicy,y;if(!Hi(null!=(y=u.admins)?y:[],q.admins))return!0;var D;if(!Hi(null!=(D=u.appenders)?D:[],q.appenders))return!0;var I;return Hi(null!=(I=u.readers)?
I:[],q.readers)?!1:!0};this.hasNoChanges=function(){return!q.isChanged()};this.acl$.pipe(fg(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(WY(e,this.isChanged,!1))};U(XY,qI);XY.\u0275dir=qI.\u0275dir;var w5b=function(a){return[].concat(v(new Set([].concat(v(a.admins),v(a.appenders)))))};XY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
XY.prototype.resetEdits=function(){var a;this.admins=[].concat(v(null!=(a=this.latestCompactPolicy.admins)?a:[]));var b;this.appenders=[].concat(v(null!=(b=this.latestCompactPolicy.appenders)?b:[]));var c;this.readers=[].concat(v(null!=(c=this.latestCompactPolicy.readers)?c:[]));this.allAppenders=w5b(this)};
var v5b=function(a){var b=a.admins,c;a=null!=(c=a.latestCompactPolicy.admins)?c:[];var d;c=null==(d=mna())?void 0:d.getEmail();c=void 0===c?"":c;Lna(b,a)?b=!1:(d="2:"+c,a=a.includes(d),b=!b.includes(d),b=a&&b);return b};XY.\u0275fac=function(a){return new (a||XY)(C(KL),C(kP),C(uK),C(FK),C(VY),C(RM),C(WL),C(cL))};
XY.\u0275cmp=w({type:XY,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ee,Fc],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","containerChips","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["target","_blank",3,"href"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top",
"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(F(0,"form",0)(1,"label"),O(2,"Admins"),G(),F(3,"p",1),O(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),G(),F(5,"b-multi-user-input",2),J("usersChange",function(c){b.admins=c;b.allAppenders=w5b(b)})("isValid",
function(c){return b.validity.admins=c}),G(),F(6,"label"),O(7,"View and append"),G(),F(8,"p",1),O(9,"Reorder hotlist, add/remove issues"),G(),F(10,"b-multi-user-input",3),J("usersChange",function(c){b.appenders=c;b.allAppenders=w5b(b)})("isValid",function(c){return b.validity.appenders=c}),G(),F(11,"label"),O(12,"View only"),G(),F(13,"p",1),O(14,"View the hotlist"),G(),F(15,"b-multi-user-input",4),J("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),G()(),
F(16,"p"),O(17," See "),F(18,"a",5),O(19,"access control documentation"),G(),O(20," for an explanation of the settings.\n"),G(),M(21,$Na,5,4,"div",6));a&2&&(B(5),pe("disabled",b.isReadOnly),E("users",b.admins),B(5),pe("disabled",b.isReadOnly),E("users",b.appenders)("includeAliases",!0)("containerChips",Le(18,s5b,Le(16,r5b,b.admins))),B(5),pe("disabled",b.isReadOnly),E("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Le(22,s5b,Le(20,t5b,b.allAppenders))),B(3),E("href",
b.accessControlLink,Qd),B(3),E("ngIf",!b.isReadOnly))},dependencies:[Gx,wy,qy,ty,FB,wF,SY],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});
var x5b=["hotlistName"],YY=function(a,b,c,d){qI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(eg(function(f){return e.fridge.watchOne(f)}));this.isArchived=!1;this.localEdits={};this.gotHotlist=function(f){e.latestHotlist=f;var h;e.isArchived=null!=(h=null==f?void 0:f.archived)?h:!1;e.resetEdits(f)};this.gotErr=function(f){e.snackBar.open(Im(f)||"Error saving the hotlist","close",{panelClass:"error"})};
this.didSave=function(){e.snackBar.open("Hotlist saved",void 0,{duration:2500});e.events.hotlistChanged.next()};this.isChanged=function(){var f,h=null!=(f=e.latestHotlist)?f:{};return!Hi(h,e.localEdits)};this.hasNoChanges=function(){return!e.isChanged()};this.save=function(){e.fridge.save(e.localEdits).subscribe({next:e.didSave,error:e.gotErr})};this.revert=function(){e.resetEdits(e.latestHotlist)};this.hotlist$.pipe(fg(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(WY(d,
this.isChanged,!1))};U(YY,qI);YY.\u0275dir=qI.\u0275dir;YY.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};YY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};YY.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=Ii(a))?b:{}};YY.\u0275fac=function(a){return new (a||YY)(C(iL),C(uK),C(FK),C(VY))};
YY.\u0275cmp=w({type:YY,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&Ef(x5b,5);if(a&2){var c;Df(c=Gf())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ee,Fc],decls:10,vars:5,consts:[["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,"disabled","ngModel","ngModelChange"],["hotlistName",""],["for","hotlist-description",
1,"margin-top"],["id","hotlist-description","name","description",3,"disabled","ngModel","ngModelChange"],["class","margin-top flex-kids-x gap-s",4,"ngIf"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"gmat-button","medium",3,"disabled","matTooltip","click"],["mat-button","","type","button",1,"gmat-button","medium",3,"disabled","matTooltip","click"],[3,"hotlistId"]],template:function(a,b){a&1&&(F(0,"form",0)(1,"label",1),O(2,"Name"),G(),F(3,"input",
2,3),J("ngModelChange",function(c){return b.localEdits.name=c}),G(),F(5,"label",4),O(6,"Description"),G(),F(7,"textarea",5),J("ngModelChange",function(c){return b.localEdits.description=c}),O(8,"  "),G(),M(9,aOa,7,7,"div",6),G());a&2&&(B(3),E("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),B(4),E("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),B(2),E("ngIf",!b.isReadOnly))},dependencies:[Gx,wy,Mg,py,qy,Gy,vy,ty,FB,wF,QY,Tx],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-input-element){border:1px solid;border-color:#ea4335;border-color:var(--bad)}\n/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});
var ZY=function(a,b){qI.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new T.ReplaySubject(1);this.hotlist$=this.id$.pipe(eg(function(d){return c.hotlists.watchOne(d)}))};U(ZY,qI);ZY.\u0275dir=qI.\u0275dir;ZY.prototype.isThinking=function(a){var b=a?jo(a):void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};ZY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};ZY.\u0275fac=function(a){return new (a||ZY)(C(iL),C(KL))};
ZY.\u0275cmp=w({type:ZY,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[ee,Fc],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[4,"ngIf"],["class","color-bad-text",4,"ngIf"],[1,"color-bad-text"]],template:function(a,b){a&1&&(F(0,"header",0)(1,"h2")(2,"span",1),O(3),G(),M(4,bOa,2,1,"ng-container",2),P(5,"async"),G(),M(6,cOa,2,0,"strong",3),P(7,"async"),M(8,dOa,1,0,"b-spinner",2),G());if(a&2){var c;B(3);Ge(" Hotlist ",b.id,
": ");B(1);E("ngIf",Q(5,4,b.hotlist$));B(2);E("ngIf",null==(c=Q(7,6,b.hotlist$))?null:c.archived);B(2);E("ngIf",b.isThinking(b.id))}},dependencies:[Gx,cN,Tx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});
var $Y=function(){qI.call(this);this.URLS=kt;this.id$=new T.ReplaySubject(1)};U($Y,qI);$Y.\u0275dir=qI.\u0275dir;$Y.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};$Y.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};$Y.\u0275fac=function(a){return new (a||$Y)};
$Y.\u0275cmp=w({type:$Y,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[ee,Fc],decls:7,vars:4,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,"gmat-button","medium","no-visited-no-active",3,"href"],[3,"hotlistId"]],template:function(a,b){a&1&&(F(0,"section",0)(1,
"b-button",1),J("onAction",function(){return b.onPressBack()}),H(2,"b-icon",2),G(),F(3,"a",3),O(4," View Issues "),G(),H(5,"hotlist-add-issue-btn",4),P(6,"async"),G());if(a&2){var c;B(3);E("href",b.URLS.HOTLIST_VIEW(b.id),Qd);B(2);E("hotlistId",null!==(c=Q(6,2,b.id$))&&void 0!==c?c:void 0)}},dependencies:[GB,wF,oO,tH,PY,Tx],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var y5b=new od("GMAT_TABS_OPTION");
var aZ=function(a){this.inkBarPositioner=a};aZ.prototype.isEnabled=function(){return this.inkBarPositioner===eOa};new Sv;new Rv;aZ.\u0275fac=function(a){return new (a||aZ)(C(J1b))};
aZ.\u0275dir=w({type:aZ,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&pe("gmat-tabs",b.isEnabled())},features:[Je([{provide:J1b,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?eOa:b},deps:[sd,[new Sv,J1b],[new Rv,y5b]]}])]});
var z5b={403:"You do not have permission to view this Hotlist.",404:"This Hotlist does not exist."},bZ=function(a,b,c,d){this.routeParams=a;this.pageTitle=b;this.permissions=c;this.hotlists=d;this.id=this.routeParams.hotlistId;this.resourceId=jo(this.id);this.isAdmin$=this.permissions.watchOne(this.resourceId).pipe(R(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(R(function(e){var f;return null!=(f=e.status)?f:-1}),R(function(e){var f;return null!=(f=
z5b[e])?f:"unknown error"}),dg(void 0));this.tabIndex=0};bZ.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};bZ.\u0275fac=function(a){return new (a||bZ)(C(SR),C(YN),C(WL),C(iL))};
bZ.\u0275cmp=w({type:bZ,selectors:[["edit-hotlist"]],decls:4,vars:6,consts:[[4,"ngIf"],[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],["class","muted padded-x",4,"ngIf"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(M(0,gOa,13,14,"ng-container",0),P(1,"async"),M(2,hOa,7,1,"ng-container",0),P(3,"async"));a&2&&(E("ngIf",void 0===Q(1,2,b.hotlistErrorMsg$)),B(2),E("ngIf",Q(3,
4,b.hotlistErrorMsg$)))},dependencies:[Gx,YW,WW,aZ,TO,XY,YY,ZY,$Y,Tx],encapsulation:2});
var cZ=function(){};cZ.\u0275fac=function(a){return new (a||cZ)};cZ.\u0275cmp=w({type:cZ,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error",4,"ngIf"],["messageType","error"]],template:function(a,b){a&1&&M(0,iOa,3,1,"b-callout",0);a&2&&E("ngIf",b.error)},dependencies:[Gx,bI,cI],encapsulation:2});
var dZ=function(){};dZ.\u0275fac=function(a){return new (a||dZ)};dZ.\u0275mod=xc({type:dZ});dZ.\u0275inj=ic({imports:[ay,qO]});
var eZ=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};eZ.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};eZ.\u0275fac=function(a){return new (a||eZ)(C(qH))};
eZ.\u0275cmp=w({type:eZ,selectors:[["b-group-email-card"]],inputs:{email:"email"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],["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"],["class","bv2-group-email-card-links-container",4,"ngIf"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"],[4,"ngIf"]],template:function(a,b){a&1&&(Ae(),M(0,oOa,17,5,"ng-container",0),M(1,pOa,1,0,"ng-template",null,1,Mf));if(a&2){var c=Fe(2);E("ngIf",!!Rn(b.email))("ngIfElse",c)}},dependencies:[Gx,Qx,hF,fN,jN],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--onedev-card-title-text: var(--text-default, #202124);--onedev-card-icon: var(--icon, #5f6368);--onedev-card-secondary-text: var(--text-secondary, #5f6368);--onedev-card-link-color: var(--primary-default, #1a73e8)}.onedev-hovercard-content[_ngcontent-%COMP%]{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]{padding:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--onedev-card-link-color)}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px auto;column-gap:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{grid-row:1/span 2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{grid-row:2;grid-column:2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .chips[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{margin-top:2px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:empty{margin-top:0px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .subcontent[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline}.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-group-email-card[_ngcontent-%COMP%]{margin:-15px -20px -20px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]{padding:15px 60px 20px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;vertical-align:middle}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   .bv2-group-email-card-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);border-top:1px solid;border-color:#dadce0;border-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}\n/*# sourceMappingURL=group_email_card.css.map */"]});
var fZ=function(){};fZ.\u0275fac=function(a){return new (a||fZ)};fZ.\u0275mod=xc({type:fZ});fZ.\u0275inj=ic({imports:[ay,AF,QN]});
var yfa=function(a,b,c,d,e,f){return{"bv2-user-chip-external":a,"bv2-user-chip-non-gaia":b,"bv2-user-chip-not-accessible":c,"bv2-user-chip-container":d,selected:e,readonly:f}},gZ=function(a){qI.call(this);this.activeSession=a;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 Vw;this.chipClear=new Vw;this.chipRemove=new Vw};U(gZ,qI);
gZ.\u0275dir=qI.\u0275dir;g=gZ.prototype;g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isNonGaiaChip=function(){return 1===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};g.isUserChip=function(){return 2===this.principalType};g.isGroupChip=function(){return 3===this.principalType};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};
g.isExternalChip=function(){return 3===this.detailedUserType||4===this.detailedUserType||this.isPublicChip()};g.isExternalPartnerAccessViolated=function(){return"EXTERNAL_PARTNER"===this.accessLevel&&this.isPublicChip()};g.isInternalAccessViolated=function(){return"INTERNAL"===this.accessLevel&&(this.isExternalChip()||this.isPublicChip())};
g.getTooltip=function(){if(4!==this.principalType)return"";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 logged in users, excluding the google.com domain.";case "public":return"All logged in users.";default:throw Error("xe`"+this.value);}};
var A5b=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};gZ.\u0275fac=function(a){return new (a||gZ)(C(qH))};
gZ.\u0275cmp=w({type:gZ,selectors:[["b-contact-chip"]],inputs:{isReadonly:"isReadonly",isSelected:"isSelected",isWidgetDisabled:"isWidgetDisabled",principalType:"principalType",detailedUserType:"detailedUserType",nestedChips:"nestedChips",value:"value",displayText:"displayText",accessLevel:"accessLevel"},outputs:{chipSelection:"chipSelection",chipClear:"chipClear",chipRemove:"chipRemove"},features:[ee],decls:9,vars:15,consts:[[1,"bv2-user-chip-item",3,"ngClass","matTooltip","focus","blur"],[1,"alias-icon"],
[3,"svgIcon",4,"ngIf"],[1,"user-chip-name"],[3,"email",4,"ngIf"],[4,"ngIf"],["role","button","tabindex","-1","class","user-chip-x",3,"matTooltip","click",4,"ngIf"],["class","bv2-user-chip-nested-content-container",4,"ngIf"],[3,"svgIcon"],[3,"email"],["role","button","tabindex","-1",1,"user-chip-x",3,"matTooltip","click"],["svgIcon","close"],[1,"bv2-user-chip-nested-content-container"],[1,"bv2-user-chip-nested-content"],[1,"jfk-bubble"],["class","bv2-user-chip",4,"ngFor","ngForOf"],[1,"jfk-bubble-arrow",
"jfk-bubble-arrowup"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(F(0,"span",0),J("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),F(1,"span",1),M(2,qOa,1,1,"mat-icon",2),G(),F(3,"div",3),M(4,rOa,2,2,"b-person-hovercard",4),M(5,sOa,2,2,"b-group-email-card",4),M(6,tOa,2,1,"div",5),G(),M(7,uOa,2,2,"div",6),M(8,
wOa,7,1,"div",7),G());a&2&&(E("ngClass",zfa(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),B(2),E("ngIf",A5b(b)),B(2),E("ngIf",b.isUserChip()),B(1),E("ngIf",b.isGroupChip()),B(1),E("ngIf",!b.isUserChip()&&!b.isGroupChip()),B(1),E("ngIf",!b.isReadonly&&!b.isWidgetDisabled),B(1),E("ngIf",b.isContainerChip()))},dependencies:[Jx,Kx,Gx,wF,hF,qR,eZ,gZ],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[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%]{margin-top:10px;position:relative;white-space:normal}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%]{position:absolute;width:600px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%]{z-index:900 !important;padding:10px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .bv2-user-chip[_ngcontent-%COMP%] > span.bv2-user-chip-item[_ngcontent-%COMP%]:active{border-color:#3c4043;border-color:var(--gfx)}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplbefore[_ngcontent-%COMP%]{left:-1px}span.bv2-user-chip-item[_ngcontent-%COMP%]   .bv2-user-chip-nested-content-container[_ngcontent-%COMP%] > .bv2-user-chip-nested-content[_ngcontent-%COMP%] > .jfk-bubble[_ngcontent-%COMP%] > .jfk-bubble-arrow[_ngcontent-%COMP%] > .jfk-bubble-arrowimplafter[_ngcontent-%COMP%]{left:0}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-color:#dadce0;border-color:var(--divider);border-style:dashed;height:14px}\n/*# sourceMappingURL=contact_chip.css.map */"]});
var hZ=function(){};hZ.\u0275fac=function(a){return new (a||hZ)};hZ.\u0275mod=xc({type:hZ});hZ.\u0275inj=ic({imports:[ay,Ky,gH,AF,vS,fZ,CM,RU,hT]});rca(SY,[Kx,Gx,Mg,py,vy,QU,gT,gZ],[]);
var iZ=function(){};iZ.\u0275fac=function(a){return new (a||iZ)};iZ.\u0275mod=xc({type:iZ});iZ.\u0275inj=ic({imports:[ay,cX]});
var jZ=function(){};jZ.\u0275fac=function(a){return new (a||jZ)};jZ.\u0275mod=xc({type:jZ});jZ.\u0275inj=ic({providers:[{provide:y5b,useValue:{enabled:!0}}],imports:[ay,Ky,wG,AF,gH,cX,pO,sK,iZ,WH,ON,dZ,hZ,GX,dP]});
var kZ=function(){};kZ.\u0275fac=function(a){return new (a||kZ)};kZ.\u0275mod=xc({type:kZ});kZ.\u0275inj=ic({imports:[YH,pO,QX,ay,WS,eT,jZ,SX,WH,wG,hC,gH,RX]});
var lZ=function(a,b,c,d,e){qI.call(this);this.element=a;this.bLocation=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=Tl;this.hotlists=[];this.registerKeys()};U(lZ,qI);lZ.\u0275dir=qI.\u0275dir;g=lZ.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.registerKeys=function(){var a=this,b=XI(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.hotlists[a].name};g.editHotlist=function(a){this.bLocation.path(this.paths.editHotlist(a.hotlistId))};
lZ.\u0275fac=function(a){return new (a||lZ)(C(sd),C(KK),C(LK),C(WI),C(mI,2))};
lZ.\u0275cmp=w({type:lZ,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[Je([mI]),ee],decls:26,vars:1,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"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","hotlist-name","clickable"],
["tabindex","-1",1,"grid-link",3,"href","click"],[1,"bv2-resource-list-cell","hotlist-description","clickable"],[1,"bv2-resource-list-cell","clickable"],[1,"bv2-resource-list-cell","hotlist-id","clickable"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),O(8," Hotlist name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),O(13," Description "),G()()()(),F(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),O(18," Owner "),
G()()()(),F(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),O(23," ID "),G()()()()()(),F(24,"tbody"),M(25,xOa,11,9,"tr",6),G()());a&2&&(B(25),E("ngForOf",b.hotlists))},dependencies:[Kx],encapsulation:2});
var mZ=function(){};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275mod=xc({type:mZ});mZ.\u0275inj=ic({imports:[ay]});
var nZ=function(a,b){this.bLocation=a;this.butterBar=b},B5b=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(zK(a.butterBar,"Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};nZ.prototype.getCount=function(){var a=B5b(this,"c");return a?Oi(a):null};var C5b=function(a){return(a=B5b(a,"p"))?Oi(a):null};nZ.prototype.getQuery=function(){return B5b(this,"q")};
nZ.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Xi).filter(el):null};nZ.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(fna).filter(el):null};
var oZ=function(a,b,c){c=void 0===c?!1:c;var d=function(e,f){c?a.bLocation.search(e,f,!0):a.bLocation.search(e,f)};void 0!==b.displayColumns&&d("d",null==b.displayColumns?null:(b.displayColumns||[]).map(function(e){return D5b(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return D5b(e.fieldId)+":"+f}));void 0!==b.page&&d("p",b.page);void 0!==b.resultsPerPage&&d("c",b.resultsPerPage);void 0!==b.query&&d("q",
b.query)},D5b=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};nZ.\u0275fac=function(a){return new (a||nZ)(t(KK),t(xK))};nZ.\u0275prov=hc({token:nZ,factory:nZ.\u0275fac,providedIn:"root"});
var pZ=function(a){Z.call(this,a)};U(pZ,Z);pZ.prototype.getCustomField=function(){return m(this,ql,1)};pZ.prototype.setCustomField=function(a){return Db(this,1,a)};pZ.prototype.toObject=function(){var a=null!=this?{customField:hJ(void 0,this.getCustomField())}:void 0;return a};pZ.messageId="b.CustomFieldResponse";
var qZ=function(){},rZ=function(a){this.apiResourceFactory=a;this.customfieldsResource=gHb(fHb(hHb(JJ(LJ(this.apiResourceFactory,"action/custom_fields/:customFieldId"),{transformResponse:function(b,c,d){return 200<=d&&299>=d?kl(b):b}}),{transformRequest:ZGb}),{transformRequest:ZGb})).build()};U(rZ,qZ);rZ.prototype.get=function(a){return this.customfieldsResource.get({customFieldId:a})};rZ.prototype.create=function(a,b){return this.customfieldsResource.create({componentId:a},b)};
rZ.prototype.update=function(a,b,c){return this.customfieldsResource.update({componentId:a,customFieldId:b},c)};rZ.prototype.delete=function(a,b){return this.customfieldsResource.delete({componentId:a,customFieldId:b}).then(function(){})};rZ.\u0275fac=function(a){return new (a||rZ)(t(KJ))};rZ.\u0275prov=hc({token:rZ,factory:rZ.\u0275fac,providedIn:"root"});var sZ=function(a){this.executor=a};U(sZ,qZ);sZ.prototype.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:pZ}).then(kqa)};
sZ.prototype.create=function(a,b){b=nqa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:pZ}).then(kqa)};sZ.prototype.update=function(a,b,c){b=Number(b);c=nqa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:pZ}).then(kqa)};
sZ.prototype.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};sZ.\u0275fac=function(a){return new (a||sZ)(t(iI))};sZ.\u0275prov=hc({token:sZ,factory:sZ.\u0275fac,providedIn:"root"});
var tZ=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};tZ.prototype.fetch=function(a,b){a=E5b(this,a,void 0===b?null:b);return{searchPreferences:Lo({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
var E5b=function(a,b,c){var d=c?function(){return F5b(c)}:function(){return G5b(a)},e=c?function(){return H5b(c)}:function(){return I5b(a)};d=Promise.resolve(a.urlPreferences.getDisplayColumns()).then(function(k){return uZ(k)}).then(null,d).then(function(k){return uZ(k)}).then(null,xC(b.displayColumns)).then(function(k){return J5b(a,k)});e=Promise.resolve(a.urlPreferences.getSortColumns()).then(function(k){return uZ(k)}).then(null,e).then(function(k){return uZ(k)}).then(null,xC(b.sortColumns));var f=
Promise.resolve(a.urlPreferences.getCount()).then(function(k){return uZ(k)}).then(null,function(){return K5b(a)}).then(function(k){return uZ(k)}).then(null,xC(b.resultsPerPage)),h=Promise.resolve(a.urlPreferences.getQuery()).then(function(k){return uZ(k)}).then(null,function(){return L5b(c,function(k){return k.query})}).then(null,xC(b.query));b=C5b(a.urlPreferences)||b.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:b}},uZ=function(a){return null==a?Promise.reject(null):a},
F5b=function(a){return L5b(a,function(b){return b.displayColumn}).then(function(b){return M5b(b)})},H5b=function(a){return L5b(a,function(b){return b.sortOrder}).then(function(b){return N5b(b)})},I5b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return uZ(b)}).then(function(b){return N5b(b)})},G5b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return uZ(b)}).then(function(b){return M5b(b)})},
K5b=function(a){return(0,T.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(R(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return uZ(b)})},L5b=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},M5b=function(a){if(!a||!a.length)return null;a=Hj(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Wi({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},N5b=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new $i(new Wi(b.column),b.order):new $i(new Wi(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},J5b=function(a,b){if(!b)return Promise.resolve([]);for(var c={},d=[],e=r(b),f=e.next();!f.done;f=e.next())f=f.value,f.customFieldId&&f.isCustomField()&&(f.customFieldName?c[f.customFieldId]=
f.customFieldName:d.push(a.customFieldApi.get(f.customFieldId).then(function(h){c[h.customFieldId]=h.name})));a=function(){for(var h=r(b),k=h.next();!k.done;k=h.next())if(k=k.value,k.isCustomField()&&!k.customFieldName){var q=c[k.customFieldId];k.customFieldName=q?q:"Custom field "+k.customFieldId}return b};return Promise.all(d).then(a,a)};tZ.\u0275fac=function(a){return new (a||tZ)(t(nZ),t(PI),t(qZ))};tZ.\u0275prov=hc({token:tZ,factory:tZ.\u0275fac,providedIn:"root"});
var vZ=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){qI.call(this);var L=this;this.cdr=a;this.bLocation=b;this.$log=c;this.butterBar=e;this.analytics=f;this.issuePagination=h;this.gridPreferencesFetcher=k;this.paths=q;this.errorHandler=u;this.domSafe=y;this.timeout=D;this.hotkeys=I;this.ANALYTICS_CATEGORY="panel";this.resource=this.searchResults=this.initialSortPreferences=this.initialIssueColumns=this.displayColumns=null;this.isLoading=!1;this.page=1;this.issueColumnsInternal=[];this.sortPreferences=[];
this.last=this.first=this.isDashboardEditable=!1;this.focusedRowIndexInternal=null;this.focusedRowIndexChange=new Vw;this.resultsLoaded=new Vw;this.selectionChange=new Vw;this.isColumnSaveEnabled=!1;this.cachedSort=null;this.currentUserEmail=d.getUserEmail();this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||R4b(S)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",
onPress:function(){var S;null==(S=L.issuesGrid)||S4b(S)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var S;null==(S=L.issuesGrid)||Q4b(S)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var S;null==(S=L.issuesGrid)||U4b(S)}},{keys:[Qj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var S;null==(S=L.issuesGrid)||V4b(S,!0)}},{keys:[Qj("u")],displayAs:"Shift+u",description:"Mark as unread",
onPress:function(){var S;null==(S=L.issuesGrid)||V4b(S,!1)}},{keys:[Rj("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||S.selectAll()}},{keys:[Rj("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var S;null==(S=L.issuesGrid)||N4b(S)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(S){var X=N.document.activeElement;
if(1===S&&"A"===(null==X?void 0:X.tagName))if(X.href)S=L.paths.getBaseUrl(),Qi(X.href,S)?b.url(X.href.slice(S.length)):L.domSafe.openInNewTab(X.href);else{var ka;null==(ka=L.issuesGrid)||LY(ka)}else{var ha;null==(ha=L.issuesGrid)||LY(ha)}}}];this.destroyed$.subscribe(function(){var S;null==(S=L.unregisterHotkeys)||S.call(L)})};U(vZ,qI);vZ.prototype.columnsChange=function(a){this.issueColumns=a};vZ.prototype.ngOnInit=function(){this.getIssues();O5b(this)};
var O5b=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=XI(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},fPa=function(a,b){a.issuesGrid=b;T4b(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=vZ.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Xi(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new $i(d,"ASC"==b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return Hi(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Mi(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Hi(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(v(b),v(q4b(a)));this.initialIssueColumns=Ii(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(io(this.analytics,this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):this.bLocation.url(a))};g.goToPage=function(a){this.page=a;this.getIssues()};g.refreshResults=function(){MM(this.issuePagination);this.getIssues()};g.exportCsv=function(){oP(this.domSafe,this.getCsvUrl())};
g.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};g.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:null!=b.resource.query?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;return qLb(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):e&&b.errorHandler.errorHandler(null,
e)});return Lo({searchResultsPage:a,displayColumns:d.displayColumns}).then(function(e){var f=e.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initialSortPreferences||(b.initialSortPreferences=Ii(b.sortPreferences));d.displayColumns.then(function(h){b.initColumns(h,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);b.timeout.schedule(function(){var h=b.issuePagination.focusedIssueIndex_;-1!=h&&(b.focusedRowIndex=h-f.startIndex)})})};
g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:P5b,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=r4b(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):Q5b).length)).map(function(c){return new Wi(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;yK(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Ii(a.issueColumns);a.initialSortPreferences=Ii(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){io(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(v(this.initialIssueColumns||[]));this.initialSortPreferences&&!Hi(this.initialSortPreferences,this.sortPreferences)&&(xa(this.sortPreferences),eu(maa,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Hi(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Hi(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){return!!this.resource&&Ql(this.resource.ownerUser)===this.currentUserEmail};g.getMetaColumns=function(){return Q5b};
g.getSearchParams=function(a){a=Ii(a);a.resultsPerPage=10;a.page=this.page;0!=this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.url();return a};
oi.Object.defineProperties(vZ.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Hi(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,io(this.analytics,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&&O5b(this)},get:function(){return this.focusedRowIndexInternal}},
isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var Q5b=[MY,NY,OY],P5b="priority type title assignee status issueId modifiedTime".split(" ").map(Xi);vZ.\u0275fac=function(a){return new (a||vZ)(C(mI),C(KK),C(AK),C(qH),C(xK),C(IM),C(LM),C(tZ),C(LK),C(BK),C(mP),C(fI),C(WI),C(Window))};
vZ.\u0275dir=w({type:vZ,viewQuery:function(a,b){a&1&&Ef(KY,5);if(a&2){var c;Df(c=Gf())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},features:[ee]});
var wZ=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};wZ.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Tn("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)}})};wZ.\u0275fac=function(a){return new (a||wZ)(C(RM),C(FK))};
wZ.\u0275cmp=w({type:wZ,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},decls:6,vars:1,consts:[["mat-icon-button","","aria-label","Customize list view",1,"gmat-button","small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["menu",""],["matMenuContent",""],["mat-menu-item","","class","bv2-panel-move-to-top-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-up-menuitem",3,"click",4,"ngIf"],["mat-menu-item",
"","class","bv2-panel-move-down-menuitem",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-panel-move-to-bottom-menuitem",3,"click",4,"ngIf"],["mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",3,"click"]],template:function(a){a&1&&(F(0,
"div")(1,"button",0),H(2,"mat-icon",1),G(),F(3,"mat-menu",null,2),M(5,COa,6,4,"ng-template",3),G()());if(a&2){var b=Fe(4);B(1);E("matMenuTriggerFor",b)}},dependencies:[Gx,mF,kF,pF,jF,hF,FB],encapsulation:2});var xZ=function(){};xZ.\u0275fac=function(a){return new (a||xZ)};xZ.\u0275mod=xc({type:xZ});xZ.\u0275inj=ic({imports:[ay,qF,AF,wG]});
var yZ=function(){};yZ.\u0275fac=function(a){return new (a||yZ)};yZ.\u0275mod=xc({type:yZ});yZ.\u0275inj=ic({imports:[ay,AF]});
var zZ=function(){};zZ.\u0275fac=function(a){return new (a||zZ)};zZ.\u0275mod=xc({type:zZ});zZ.\u0275inj=ic({imports:[ay,yZ]});
var AZ=function(){};AZ.\u0275fac=function(a){return new (a||AZ)};AZ.\u0275mod=xc({type:AZ});AZ.\u0275inj=ic({imports:[ay,QN,zZ]});
var BZ=function(){};BZ.\u0275fac=function(a){return new (a||BZ)};BZ.\u0275mod=xc({type:BZ});BZ.\u0275inj=ic({imports:[ay,yZ]});
var CZ=function(){};CZ.prototype.getValue=function(){return this.row[this.column.name]||""};CZ.prototype.isCustomField=function(){return this.column.isCustomField};
CZ.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 null;a=new cJ(a);Hi(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};CZ.\u0275fac=function(a){return new (a||CZ)};
CZ.\u0275cmp=w({type:CZ,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"customFieldValue",4,"ngIf"],[3,"customFieldValue"]],template:function(a,b){a&1&&(M(0,DOa,2,2,"span",0),M(1,EOa,1,1,"b-custom-field-value-display",1));a&2&&(E("ngIf",!b.isCustomField()),B(1),E("ngIf",b.isCustomField()))},dependencies:[Gx,CV],encapsulation:2,changeDetection:0});
var DZ=function(){};DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275mod=xc({type:DZ});DZ.\u0275inj=ic({imports:[ay,gH,DV]});rca(wY,[Kx,Gx,Qx,BY,CZ],[]);
var EZ=function(){};EZ.\u0275fac=function(a){return new (a||EZ)};EZ.\u0275mod=xc({type:EZ});EZ.\u0275inj=ic({imports:[ay,QN]});
var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=xc({type:FZ});FZ.\u0275inj=ic({imports:[ay,EZ,WP]});
var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=xc({type:GZ});GZ.\u0275inj=ic({imports:[FY,ay,qF,XH,gH,wG,hC,DB,WH,DZ,yZ,AZ,WP,BZ,CM,vS,yX,gY,FZ,WS,MN,BV,QN,BX,eV]});
var HZ=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
HZ.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,u=b[c],y=b[d].position;qaa(b,c,d);null==f||f();yK(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,u.issueId,y).then(function(){for(var D=k,I=r(b),N=I.next();!N.done;N=I.next())N.value.position=D,D+=q?-1:1;null==f||f();yK(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
HZ.\u0275fac=function(a){return new (a||HZ)(t(XK),t(xK),t(FK))};HZ.\u0275prov=hc({token:HZ,factory:HZ.\u0275fac,providedIn:"root"});
var R5b=["actionsMenuIconButton"],IZ=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};IZ.prototype.trackByIndex=function(a){return a};IZ.prototype.onAction=function(a,b){return ef(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);gf(c)})};IZ.prototype.ngOnInit=function(){};IZ.\u0275fac=function(a){return new (a||IZ)};
IZ.\u0275cmp=w({type:IZ,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&Ef(R5b,5);if(a&2){var c;Df(c=Gf())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",header:"header"},decls:6,vars:4,consts:[["mat-icon-button","","class","gmat-button medium","aria-haspopup","true",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],[1,"b-actions-menu-panel"],["class","bv2-menu-header",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["mat-icon-button","","aria-haspopup","true",1,"gmat-button","medium",3,"matMenuTriggerFor"],["actionsMenuIconButton",""],[1,"icon-s",3,"svgIcon"],[1,"bv2-menu-header"],[4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","hint",4,"ngIf"],["submenu","matMenu"],[1,"hint"],["mat-menu-item","",3,"disabled","click","mouseup",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","click","mouseup",4,"ngIf"],["mat-menu-item",
"",3,"disabled","click","mouseup"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","click","mouseup"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(M(0,FOa,3,3,"button",0),F(1,"mat-menu",null,1)(3,"div",2),M(4,GOa,2,1,"div",3),M(5,UOa,3,2,"ng-container",4),G()());a&2&&(E("ngIf",0<b.menuItems.length),B(4),E("ngIf",b.header),B(1),E("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[mF,kF,pF,Kx,Gx,hF,FB],styles:["[_nghost-%COMP%]{display:inline-block}.mat-menu-item[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:8px}.mat-menu-item[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-left:auto;padding-left:16px}  .b-actions-menu-panel .mat-menu-item[disabled]{pointer-events:auto}\n/*# sourceMappingURL=actions_menu.css.map */"],
changeDetection:0});
var JZ=function(a){this.buttonRef=a;this.toRefocus=!1};JZ.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}))};JZ.\u0275fac=function(a){return new (a||JZ)(C(sd))};
JZ.\u0275dir=w({type:JZ,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Fc]});
var KZ=function(){this.pageChange=new Vw;this.resultsPerPageChange=new Vw;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};KZ.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var S5b=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
oi.Object.defineProperties(KZ.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}})}}});KZ.\u0275fac=function(a){return new (a||KZ)};
KZ.\u0275cmp=w({type:KZ,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems",4,"ngIf"],["aria-live","polite","role","alert","class","bv2-appbar-pagenums",4,"ngIf"],["mat-icon-button","","focusBack","","color","primary",
"mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-left",1,"large"],["mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"disabled","click","keydown.enter"],["svgIcon","arrow-right",1,"large"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live",
"polite","role","alert",1,"bv2-appbar-pagenums"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,VOa,1,1,"b-actions-menu",1),M(2,WOa,6,3,"span",2),F(3,"button",3),J("click",function(){return S5b(b)})("keydown.enter",function(c){S5b(b);return c.stopPropagation()}),H(4,"mat-icon",4),G(),F(5,"button",5),J("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),H(6,"mat-icon",6),G()());a&2&&(B(1),E("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),B(1),E("ngIf",b.searchResults&&0<b.searchResults.issues.length),B(1),E("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),B(2),E("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[Gx,FB,hF,IZ,JZ],encapsulation:2});
var LZ=function(){};LZ.\u0275fac=function(a){return new (a||LZ)};LZ.\u0275mod=xc({type:LZ});LZ.\u0275inj=ic({imports:[qF,ay,AF,wG,gH]});
var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=xc({type:MZ});MZ.\u0275inj=ic({});
var NZ=function(){};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275mod=xc({type:NZ});NZ.\u0275inj=ic({imports:[ay,wG,AF,LZ,MZ]});
var OZ=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X){vZ.call(this,c,e,f,h,k,q,u,y,D,d,I,L,S,X);this.hotlists=a;this.hotlistApi=b;this.appEvents=N;this.resource=null};U(OZ,vZ);OZ.\u0275dir=vZ.\u0275dir;g=OZ.prototype;g.ngOnInit=function(){vZ.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?vZ.prototype.setSort.call(this,a,b,!1):vZ.prototype.setSort.call(this,a,b)};
g.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
g.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});yK(a.butterBar,'Saved changes to hotlist "'+b.name+'".');io(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});zK(this.butterBar,"Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},vZ.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};g.getMetaColumns=function(a){a=a.params.sortColumns||[];return 0==a.length||1==a.length&&"POSITION"==a[0].fieldId.type?T5b:U5b};g.getSearchParams=function(a){a=vZ.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
g.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;io(c.analytics,c.ANALYTICS_CATEGORY,"issueDragDrop")})};OZ.\u0275fac=function(a){return new (a||OZ)(C(HZ),C(XK),C(mI,2),C(BK),C(KK),C(AK),C(qH),C(xK),C(IM),C(LM),C(tZ),C(LK),C(mP),C(FK),C(fI),C(WI),C(mM))};
OZ.\u0275cmp=w({type:OZ,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[Je([mI]),ee],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed",4,"ngIf"],
[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],["mat-flat-button","","type","button","color","primary","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0",4,"ngIf"],
["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),M(3,XOa,2,0,"div",3),M(4,YOa,2,0,"div",3),M(5,aPa,8,5,"div",3),G(),M(6,bPa,5,0,"div",4),F(7,"b-pagination",5),
J("pageChange",function(c){return b.goToPage(c.page)}),G()(),M(8,hPa,4,3,"div",3),G());a&2&&(ke("aria-busy",b.isLoading),B(3),E("ngIf",!b.resource&&!b.isLoading),B(1),E("ngIf",!b.resource&&b.isLoading),B(1),E("ngIf",b.resource),B(1),E("ngIf",b.hasParamChanges()),B(1),E("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),E("ngIf",b.resource))},dependencies:[Gx,KY,FB,wF,KZ,wZ,cN],encapsulation:2});var U5b=[MY,NY,OY,X4b],T5b=[MY,W4b,NY,OY,X4b],PZ=function(){};
PZ.\u0275fac=function(a){return new (a||PZ)};PZ.\u0275mod=xc({type:PZ});PZ.\u0275inj=ic({imports:[ay,GZ,wG,gH,NZ,xZ,ON]});
var QZ=function(a,b){this.checker=a;this.document=b},V5b=function(a,b,c){if((void 0===c||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?V5b(a,b[c]):null;if(d)return d}return null};QZ.\u0275fac=function(a){return new (a||QZ)(t(Ny),t(mi))};QZ.\u0275prov=hc({token:QZ,factory:QZ.\u0275fac,providedIn:"root"});
var RZ=function(a,b){this.elementRef=a;this.interactivityHelper=b;this.firstFocusableElement=null};RZ.prototype.focus=function(){this.firstFocusableElement||(this.firstFocusableElement=V5b(this.interactivityHelper,this.elementRef.nativeElement));var a;null==(a=this.firstFocusableElement)||a.focus()};oi.Object.defineProperties(RZ.prototype,{nativeElement:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});RZ.\u0275fac=function(a){return new (a||RZ)(C(sd),C(QZ))};
RZ.\u0275dir=w({type:RZ,selectors:[["","onedevFocusableListOption",""]]});var SZ=function(){};SZ.\u0275fac=function(a){return new (a||SZ)};SZ.\u0275mod=xc({type:SZ});SZ.\u0275inj=ic({});
var W5b=["listEl"],jPa=function(a,b){return{$implicit:a,index:b}},X5b=[[["","empty",""]]],TZ=function(){this.items=[];this.disabled=this.reorderable=this.removable=!1;this.itemsChange=new Vw;this.itemChange=new Vw;this.itemMove=new Vw;this.destroyed$=new T.ReplaySubject(1);this.isListFocused=!1};g=TZ.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){var a=this;this.keyManager=mA(lA(new uA(this.viewOptions)));this.keyManager.tabOut.pipe(fg(this.destroyed$)).subscribe(function(){var b;null==(b=a.keyManager)||b.setActiveItem(-1)})};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
g.removeAtIndex=function(a){var b=this.items.length-1;if(!(0>a||a>=this.items.length)){var c=[].concat(v(this.items.slice(0,a)),v(this.items.slice(a+1)));this.itemChange.emit({item:this.items[a],added:!1,items:c});this.itemsChange.emit(c);if(b===a)if(0===b)this.listEl.nativeElement.focus();else{var d;null==(d=this.keyManager)||d.setActiveItem(b-1)}else{var e;null==(e=this.keyManager)||e.setNextItemActive()}}};
g.handleKeydown=function(a){if(this.keyManager){var b=a.code;if("ArrowUp"===b||"ArrowDown"===b)a.preventDefault(),this.keyManager.onKeydown(a);else if("Tab"===b)this.keyManager.onKeydown(a);else if("Home"===b||"End"===b)a.preventDefault(),"Home"===b?rA(this.keyManager):sA(this.keyManager);else if("Delete"===b||"Backspace"===b){var c=this.keyManager.activeItemIndex;null!=c&&-1!==c&&this.removeAtIndex(c)}else"ArrowRight"===b?(c=this.keyManager.activeItemIndex,this.removable&&null!=c&&-1!==c&&(c=this.viewOptions.toArray()[c].nativeElement.querySelector(".delete-button"))&&
c.focus()):"ArrowLeft"===b&&(a=this.keyManager.activeItemIndex,this.removable&&null!=a&&-1!==a&&(null==(c=this.keyManager)||c.setActiveItem(a)))}};g.onDrop=function(a){var b=a.previousIndex;a=a.currentIndex;var c=[].concat(v(this.items));b===a||0>b||b>=c.length||0>a||a>=c.length||(pp(c,b,a),this.itemMove.emit({item:c[a],isNowAfter:0!==a?c[a-1]:void 0,items:c}),this.itemsChange.emit(c))};g.isActive=function(){return this.isListFocused||null!=this.keyManager&&-1!==this.keyManager.activeItemIndex};
TZ.\u0275fac=function(a){return new (a||TZ)};
TZ.\u0275cmp=w({type:TZ,selectors:[["onedev-editable-list"]],viewQuery:function(a,b){a&1&&(Ef(W5b,7),Ef(RZ,5));if(a&2){var c;Df(c=Gf())&&(b.listEl=c.first);Df(c=Gf())&&(b.viewOptions=c)}},hostVars:2,hostBindings:function(a,b){a&2&&pe("active",b.isActive())},inputs:{items:"items",listItemTemplate:"listItemTemplate",removable:"removable",reorderable:"reorderable",disabled:"disabled",labelledById:"labelledById",valueToTextFunc:"valueToTextFunc"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",
itemMove:"itemMove"},exportAs:["onedevEditableList"],ngContentSelectors:["[empty]"],decls:13,vars:5,consts:[[3,"keydown","focus","blur"],["listEl",""],[4,"ngIf","ngIfElse"],["nonReorderableList",""],["listItem",""],["defaultListItemDisplay",""],["customListItemDisplay",""],["emptyList",""],["cdkScrollable","",1,"list-container"],["cdkDropList","","cdkDropList","",1,"drop-list",3,"cdkDropListDropped"],[4,"ngFor","ngForOf"],"role listitem onedevFocusableListOption  cdkDrag  cdkDragLockAxis y cdkDragBoundary .drop-list".split(" "),
["cdkDragHandle","",1,"drag-handler"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-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-2zm6 4c1.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"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list-container"],["role","listitem","onedevFocusableListOption",
""],["tabindex","-1","mat-icon-button","","class","delete-button",3,"matTooltip","click",4,"ngIf"],["tabindex","-1","mat-icon-button","",1,"delete-button",3,"matTooltip","click"],["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 12 19 6.41z"],["tabindex","-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"empty-list"]],template:function(a,b){a&1&&(Ae(X5b),F(0,"section",0,1),J("keydown",function(d){return b.handleKeydown(d)})("focus",function(){return b.isListFocused=
!0})("blur",function(){return b.isListFocused=!1}),M(2,mPa,4,2,"ng-container",2),M(3,qPa,2,2,"ng-template",null,3,Mf),G(),M(5,tPa,2,6,"ng-template",null,4,Mf),M(7,uPa,2,1,"ng-template",null,5,Mf),M(9,vPa,1,7,"ng-template",null,6,Mf),M(11,wPa,2,0,"ng-template",null,7,Mf));if(a&2){var c=Fe(4);ke("role",b.items.length?"list":null)("tabindex",b.items.length?0:-1)("aria-labelledby",b.labelledById);B(2);E("ngIf",b.reorderable)("ngIfElse",c)}},dependencies:[Kx,Gx,Qx,FB,wF,HA,lV,mV,fV,RZ],styles:["[role=list][_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;font-size:13px;min-height:20px;overflow:hidden}[role=list][_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]{padding-left:4px}[role=listitem][_ngcontent-%COMP%]{padding:2px 0;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:16px}[role=listitem][_ngcontent-%COMP%]:focus, [role=listitem][_ngcontent-%COMP%]:focus-within{background-color:var(--option-active-bg,#e8f0fe)}[role=listitem][_ngcontent-%COMP%]:hover   .drag-handler[_ngcontent-%COMP%]{visibility:visible;cursor:move}.drag-handler[_ngcontent-%COMP%]{visibility:hidden}.delete-button[_ngcontent-%COMP%]{margin-left:auto;height:16px;width:16px;line-height:12px}.delete-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .drag-handler[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;line-height:12px;color:var(--icon,#5f6368);fill:currentColor}.cdk-drag-preview[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:var(--surface-secondary,#f8f9fa);font-family:Roboto,Arial,sans-serif;font-size:13px;box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drop-list-dragging[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-dragging[_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]   .drag-handler[_ngcontent-%COMP%]{visibility:hidden}.list-container[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%], section[_ngcontent-%COMP%]{height:inherit}"],
changeDetection:0});
var UZ=function(a){this.pathBuilder=a;this.disabled=this.reorderable=!1;this.itemsChange=new Vw;this.itemChange=new Vw;this.itemMove=new Vw;this.itemsInternal=[]};UZ.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};UZ.prototype.issueToText=function(a){return"Issue "+a.issueId};UZ.prototype.getLink=function(a){return this.pathBuilder.editIssue(a.issueId)};
UZ.prototype.getStatusTextStyle=function(a){return(a=a.status&&Fn[a.status])?a.open?"":"closed":""};oi.Object.defineProperties(UZ.prototype,{items:{configurable:!0,enumerable:!0,set:function(a){this.itemsInternal=a.filter(function(b){return!(b.resolved&&b.archived)})},get:function(){return this.itemsInternal}}});UZ.\u0275fac=function(a){return new (a||UZ)(C(XX))};
UZ.\u0275cmp=w({type:UZ,selectors:[["b-rel-issues-list"]],inputs:{items:"items",orderByFn:"orderByFn",reorderable:"reorderable",disabled:"disabled"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[Fc],decls:3,vars:6,consts:[[3,"removable","disabled","reorderable","items","listItemTemplate","valueToTextFunc","itemsChange","itemChange","itemMove"],["relIssueTemplate",""],[1,"row",3,"ngClass"],[3,"issueStatusJs","displayMode",4,"ngIf"],["issueHovercard","onedevHovercard"],
[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-id",3,"href","onedevHovercardTrigger"],["tabindex","-1","class","keep-focus-ring rel-issues-list-title",3,"href",4,"ngIf"],[4,"ngIf"],[3,"issueStatusJs","displayMode"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-title",3,"href"]],template:function(a,b){a&1&&(F(0,"onedev-editable-list",0),J("itemsChange",function(d){return b.itemsChange.emit(d)})("itemChange",
function(d){return b.itemChange.emit(d)})("itemMove",function(d){return b.itemMove.emit(d)}),G(),M(1,CPa,11,9,"ng-template",null,1,Mf));if(a&2){var c=Fe(2);E("removable",!0)("disabled",b.disabled)("reorderable",b.reorderable)("items",b.items)("listItemTemplate",c)("valueToTextFunc",b.issueToText)}},dependencies:[Jx,Gx,TZ,uX,fN,gN,jN,hN,xX],styles:["[_nghost-%COMP%]     [role=listitem]:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}[_nghost-%COMP%]     button.delete-button{margin-left:2px}.rel-issues-list-id[_ngcontent-%COMP%]{display:inline-block;min-width:60px;padding-left:5px;padding-right:5px}.row[_ngcontent-%COMP%]{display:flex;align-items:center}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#202124;color:var(--text-default)}.row.closed[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#5f6368;color:var(--text-muted)}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}\n/*# sourceMappingURL=rel_issues_list.css.map */"]});
var VZ=function(){};VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275mod=xc({type:VZ});VZ.\u0275inj=ic({imports:[ay,wG,gH,nV,eA,SZ]});
var WZ=function(){};WZ.\u0275fac=function(a){return new (a||WZ)};WZ.\u0275mod=xc({type:WZ});WZ.\u0275inj=ic({imports:[ay,VZ,yX,QN,BX]});
var Y5b=[[["","footer-items",""]]],XZ=function(a,b,c,d,e){qI.call(this);this.matDialog=a;this.paths=c;this.analytics=d;this.butterBar=e;this.items=[];this.itemsChange=new Vw;this.itemChange=new Vw;this.itemMove=new Vw;this.disabled=!1;this.addButtonTitle=this.removeButtonTitle="";this.hideStatus=!1;this.relDisplayMessage=this.currentResourceId=null;this.reorderable=!1;this.relation="blocked/blocking";this.startTimestamp=null;this.orderByFn=function(f,h){var k,q,u=f.status?null!=(q=null==(k=Fn[f.status])?
void 0:k.sortOrder)?q:0:0,y,D;k=h.status?null!=(D=null==(y=Fn[h.status])?void 0:y.sortOrder)?D:0:0;return u===k?f.issueId-h.issueId:u-k};this.enableWtdmMvpUi=sH(b,"enableWtdmMvpUi")};U(XZ,qI);XZ.\u0275dir=qI.\u0275dir;XZ.prototype.ngOnInit=function(){};XZ.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};
var PPa=function(a){RB(a.matDialog.open(EX,{data:{title:a.relDisplayMessage,componentId:a.componentId,defaultChoices:[],allowMultipleIds:!0,currentResourceId:a.currentResourceId,currentResourceType:"issue"}})).pipe(fg(a.destroyed$)).subscribe(function(b){(null==b?0:b.length)&&Z5b(a,b.map(function(c){return c.resourceId}))});io(a.analytics,mo.ISSUE_PICKER,"click",a.addButtonTitle);a.startTimestamp||(a.startTimestamp=new Date)};
XZ.prototype.removeItem=function(a){if(!this.disabled){var b=[].concat(v(this.items)),c=b.find(function(d){return d.issueId===a});c&&(za(b,c),this.itemChange.emit({item:c,added:!1,items:b}),this.itemsChange.emit(b))}};
var Z5b=function(a,b){var c=new Set(a.items.map(function(f){return f.issueId})),d=b.filter(function(f){return!c.has(f)});if(0===d.length)yK(a.butterBar,"Issue was already in the list.",0);else{b=[].concat(v(a.items));d=r(d);for(var e=d.next();!e.done;e=d.next())e={issueId:e.value},b.push(e),a.itemChange.emit({item:e,added:!0,items:b});a.itemsChange.emit(b);a.startTimestamp?(b=(new Date).getTime()-a.startTimestamp.getTime(),io(a.analytics,mo.ISSUE_PICKER,"apply",a.relation,b),eLb(a.analytics,b,a.relation),
a.startTimestamp=null):io(a.analytics,mo.ISSUE_PICKER,"apply",a.relation)}};XZ.prototype.getStatusTextStyle=function(a){return(a=a.status&&Fn[a.status])&&(a.open?"":"closed")||""};XZ.prototype.getLink=function(a){return this.paths.editIssue(a.issueId)};XZ.\u0275fac=function(a){return new (a||XZ)(C(cC),C(qH),C(LK),C(IM),C(xK))};
XZ.\u0275cmp=w({type:XZ,selectors:[["b-rel-issues-picker"]],inputs:{items:"items",disabled:"disabled",removeButtonTitle:"removeButtonTitle",addButtonTitle:"addButtonTitle",hideStatus:"hideStatus",searchLink:"searchLink",currentResourceId:"currentResourceId",relDisplayMessage:"relDisplayMessage",componentId:"componentId",reorderable:"reorderable",relation:"relation"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[ee,Fc],ngContentSelectors:["[footer-items]"],
decls:7,vars:6,consts:[[1,"bv2-rel-issues-picker"],[1,"bv2-rel-issues-picker-header"],[1,"bv2-rel-issues-picker-content"],[4,"ngIf"],["class","bv2-rel-issues-picker-footer",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove"],["class","bv2-rel-issues-picker-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"bv2-rel-issues-picker-item",3,"ngClass"],["displayMode","ICON",
3,"issueStatusJs",4,"ngIf"],[1,"bv2-rel-issues-picker-id"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"subtle-link",3,"href","onedevHovercardTrigger"],[3,"href"],["class","bv2-rel-issues-picker-id",4,"ngIf"],["class","bv2-rel-issues-picker-title",4,"ngIf"],["class","bv2-remove-icon keep-focus-ring bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click",4,"ngIf"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady",
"issueId"],["cardBody",""],[1,"bv2-rel-issues-picker-title"],[1,"bv2-remove-icon","keep-focus-ring","bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click"],[1,"bv2-rel-issues-picker-footer"],["mat-button","",1,"gmat-button","mat-stroked-button",3,"disabled","click"],["class","bv2-rel-issues-link",4,"ngIf"],[1,"bv2-rel-issues-link"]],template:function(a,b){a&1&&(Ae(Y5b),F(0,"div",0),H(1,"div",1),F(2,"div",2),M(3,EPa,2,1,"div",3),M(4,MPa,2,1,"div",3),M(5,NPa,2,0,"div",3),G(),M(6,QPa,
5,3,"div",4),G());a&2&&(B(2),pe("bv2-rel-issues-picker-content-without-footer",!b.addButtonTitle),B(1),E("ngIf",b.enableWtdmMvpUi),B(1),E("ngIf",!b.enableWtdmMvpUi),B(1),E("ngIf",!b.items.length),B(1),E("ngIf",b.addButtonTitle))},dependencies:[FB,wF,Jx,Kx,Gx,UZ,fN,gN,jN,hN,xX,uX],encapsulation:2});var YZ=function(){};YZ.\u0275fac=function(a){return new (a||YZ)};YZ.\u0275mod=xc({type:YZ});YZ.\u0275inj=ic({imports:[wG,gH,ay,GX,WZ,QN,BX,yX]});
var ZZ=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L){vZ.call(this,b,d,e,f,h,k,q,u,y,c,D,I,N,L);this.savedSearchApi=a;this.resource=null};U(ZZ,vZ);ZZ.\u0275dir=vZ.\u0275dir;ZZ.prototype.ngOnInit=function(){vZ.prototype.ngOnInit.call(this)};ZZ.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};ZZ.prototype.saveResource=function(){return Promise.resolve()};
ZZ.\u0275fac=function(a){return new (a||ZZ)(C(EN),C(mI,2),C(BK),C(KK),C(AK),C(qH),C(xK),C(IM),C(LM),C(tZ),C(LK),C(mP),C(fI),C(WI),C(mM))};
ZZ.\u0275cmp=w({type:ZZ,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[Je([mI]),ee],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[4,"ngIf"],["tabindex","0",4,"ngIf"],[3,"searchResults","resultsPerPageFixed","pageChange"],["tabindex","0"],["class","bv2-panel-controls",3,"panelId",4,"ngIf"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed",
4,"ngIf"],[1,"bv2-panel-controls",3,"panelId"],["matTooltip","Display preferences or search query have changed"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","0","role","region",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],[3,"large"],["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange",
"rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),M(3,RPa,2,0,"div",3),M(4,SPa,2,0,"div",3),M(5,VPa,8,5,"div",4),G(),F(6,"b-pagination",5),J("pageChange",function(c){return b.goToPage(c.page)}),G()(),M(7,$Pa,4,3,"div",3),G());a&2&&(ke("aria-busy",b.isLoading),B(3),E("ngIf",!b.resource&&!b.isLoading),B(1),E("ngIf",!b.resource&&b.isLoading),B(1),E("ngIf",b.resource),B(1),E("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),E("ngIf",b.resource))},
dependencies:[Gx,KY,wF,KZ,wZ,cN],encapsulation:2});var $Z=function(){};$Z.\u0275fac=function(a){return new (a||$Z)};$Z.\u0275mod=xc({type:$Z});$Z.\u0275inj=ic({imports:[ay,GZ,gH,NZ,xZ,ON]});
var a_=function(){};a_.\u0275fac=function(a){return new (a||a_)};a_.\u0275mod=xc({type:a_});a_.\u0275inj=ic({});
var b_=function(){this.label="Team"};b_.prototype.ngOnInit=function(){};b_.\u0275fac=function(a){return new (a||b_)};
b_.\u0275cmp=w({type:b_,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},decls:3,vars:2,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],["class","breadcrumb-item",4,"ngFor","ngForOf"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"span",1),M(2,aQa,3,3,"span",2),G()());a&2&&(ke("aria-label",b.label),B(2),E("ngForOf",b.teamPath))},dependencies:[Kx,EI],encapsulation:2});
var c_=function(){};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275mod=xc({type:c_});c_.\u0275inj=ic({imports:[ay,KI,cV]});
var d_=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};d_.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};d_.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};d_.\u0275fac=function(a){return new (a||d_)(C(sd))};d_.\u0275dir=w({type:d_,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Fc]});var e_=function(){};e_.\u0275fac=function(a){return new (a||e_)};e_.\u0275mod=xc({type:e_});e_.\u0275inj=ic({});
var $5b=["form"],a6b=["numberInput"],b6b=/^\d+\.?\d*$/,c6b={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},f_=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new Vw;this.displayUnits=0;this.timeUnitEnum=c6b};
f_.prototype.ngOnInit=function(){var a=this;this.durationDays&&(this.displayUnits=0===this.durationDays%365?1:0,this.displayNumber=1===this.displayUnits?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()})};f_.prototype.ngAfterViewInit=function(){};
f_.prototype.onValueChange=function(){if(void 0!==this.displayNumber){switch(this.displayUnits){case 1:var a=365*this.displayNumber;break;default:a=this.displayNumber}a=Math.ceil(a)}else a=void 0;a!==this.durationDays&&(this.durationDays=a,this.durationDaysChange.emit(this.durationDays))};f_.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};f_.\u0275fac=function(a){return new (a||f_)};
f_.\u0275cmp=w({type:f_,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(Ef($5b,7),Ef(a6b,7));if(a&2){var c;Df(c=Gf())&&(b.form=c.first);Df(c=Gf())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},decls:12,vars:7,consts:[["form","ngForm"],[1,"duration-picker-form"],["color","accent","appearance","outline"],["matInput","","type","number","step","1","min","0","name","numbers","placeholder",
"---",3,"ngModel","disabled","keydown","paste"],["numberInput",""],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){a&1&&(F(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"input",3,4),J("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");b6b.test(d)||c.preventDefault()}),G()(),F(6,"mat-form-field",2)(7,"mat-select",5)(8,"mat-option",6),O(9,"days"),G(),F(10,"mat-option",
6),O(11,"year(s)"),G()()()()());a&2&&(B(4),E("ngModel",b.displayNumber)("disabled",b.disabled),ke("aria-label",b.ariaLabel),B(3),E("ngModel",b.displayUnits)("disabled",b.disabled),B(1),E("value",b.timeUnitEnum.DAYS),B(2),E("value",b.timeUnitEnum.YEARS))},dependencies:[wy,Mg,xy,py,qy,Fy,vy,ty,sC,uC,QS,BB],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field{min-width:70px;padding-right:10px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field .mat-form-field-flex{cursor:default}[_nghost-%COMP%]     .duration-picker-form .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .duration-picker-form .mat-select-arrow-wrapper{transform:none}[_nghost-%COMP%]     .mat-form-field-infix{padding:1px 0 7px}"],
changeDetection:0});var g_=function(){};g_.\u0275fac=function(a){return new (a||g_)};g_.\u0275mod=xc({type:g_});g_.\u0275inj=ic({imports:[ay,Ky,vC,tC,RS,e_]});
var h_=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};h_.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};h_.prototype.onNoClick=function(){this.dialogRef.close(!1)};h_.\u0275fac=function(a){return new (a||h_)(C(QB),C(aC),C(kP))};
h_.\u0275cmp=w({type:h_,selectors:[["b-field-state-change-confirmation-dialog"]],decls:22,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"],[1,"notice"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"p"),O(4,
" The "),F(5,"strong"),O(6),G(),O(7," field will change state from "),F(8,"strong"),O(9),G(),O(10," to "),F(11,"strong"),O(12),G(),O(13,". "),G(),M(14,bQa,6,2,"p",2),F(15,"p"),O(16,"Are you sure?"),G()(),F(17,"div",3)(18,"button",4),J("click",function(){return b.onNoClick()}),O(19," Cancel "),G(),F(20,"button",5),O(21," Confirm "),G()());a&2&&(B(1),Ge("Field State Change for ",b.data.fieldName,""),B(5),He(b.data.fieldName),B(3),He(b.data.oldFieldState),B(3),He(b.data.newFieldState),B(2),E("ngIf",
b.data.noteText),B(6),E("mat-dialog-close",!0))},dependencies:[Gx,FB,dC,eC,fC,gC],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});
var d6b=["fieldStateMenuButton"],e6b=function(a){return{"mat-stroked-button":a}},i_=function(a){this.dialog=a;this.fieldName="";this.fieldState=1;this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new Vw;this.FieldStateProto=EFb;this.defaultLabel="Default";this.menuLabel="Error";this.msgs={visibleName:"Visible",hiddenName:"Hidden",visibleDescription:"the field will always be in the main field section",hiddenDescription:"the field will always be in the hidden field section",
inheritDescription:"allow the parent component to determine whether the field is visible or hidden",becomesHiddenWarning:"Hiding this field will not result in any loss of data, but the field value will no longer be visible by  default for issues in this component and its subcomponents.",becomesInheritedWarning:"If a parent component hides this field in the future, the field will no longer be visible by default for issues in this component and its subcomponents."}};i_.prototype.ngOnInit=function(){this.updateMenuButton()};
i_.prototype.ngOnChanges=function(){this.updateMenuButton()};
var g6b=function(a,b){b!==a.fieldState&&(a.confirmationDialog?f6b(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},f6b=function(a,b){var c=2===b||1===b&&!a.enabledOnParent,d=1!==a.fieldState&&1===b,e=void 0;2!==a.fieldState&&(1!==a.fieldState||a.enabledOnParent)&&c?e=a.msgs.becomesHiddenWarning:d&&(e=a.msgs.becomesInheritedWarning);RB(a.dialog.open(h_,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:h6b(a,a.fieldState),newFieldState:h6b(a,b),noteText:e}})).pipe(Tf()).subscribe(function(f){f?
(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};i_.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=h6b(this,this.fieldState)};var h6b=function(a,b){switch(b){case 1:return a.defaultLabel;case 2:return a.msgs.hiddenName;case 3:return a.msgs.visibleName;default:ph(b,"Unknown FieldState.")}};i_.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};
i_.\u0275fac=function(a){return new (a||i_)(C(cC))};
i_.\u0275cmp=w({type:i_,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&Ef(d6b,5,sd);if(a&2){var c;Df(c=Gf())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Fc],decls:33,vars:18,consts:[["mat-button","",1,"field-state-menu-button","gmat-button","medium",3,"ngClass","disabled","matMenuTriggerFor"],
["fieldStateMenuButton",""],[1,"field-state-menu-button-inner"],[1,"field-state-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"field-state-dropdown-icon"],["fieldStateMenu","matMenu"],[1,"field-state-menu"],[1,"menu-row-container","default-container"],["mat-menu-item","",1,"default-button","field-state-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],["mat-menu-item",
"",1,"field-state-option",3,"click"],[1,"menu-row-container"],[1,"state-info"]],template:function(a,b){a&1&&(F(0,"div")(1,"button",0,1)(3,"div",2),H(4,"span",3)(5,"b-icon",4),G()()(),F(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),J("click",function(){return g6b(b,b.FieldStateProto.INHERIT)}),H(11,"b-icon",9),F(12,"div",10),O(13),G(),F(14,"div",11),O(15),G()()(),H(16,"mat-divider"),F(17,"button",12),J("click",function(){return g6b(b,b.FieldStateProto.DISABLED)}),F(18,"div",13)(19,"div",
14),H(20,"b-icon",9),F(21,"div",10),O(22),G(),F(23,"div",11),O(24),G()()()(),F(25,"button",12),J("click",function(){return g6b(b,b.FieldStateProto.ENABLED)}),F(26,"div",13)(27,"div",14),H(28,"b-icon",9),F(29,"div",10),O(30),G(),F(31,"div",11),O(32),G()()()()()());if(a&2){var c=Fe(7);B(1);E("ngClass",Le(16,e6b,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);B(3);E("innerHTML",b.menuLabel,Pd);B(6);pe("b-menu-item-checked",b.fieldState===b.FieldStateProto.INHERIT);B(3);Ge(" ",b.defaultLabel,
" ");B(2);Ge(" ",b.msgs.inheritDescription," ");B(2);pe("b-menu-item-checked",b.fieldState===b.FieldStateProto.DISABLED);B(5);Ge(" ",b.msgs.hiddenName," ");B(2);Ge(" ",b.msgs.hiddenDescription," ");B(1);pe("b-menu-item-checked",b.fieldState===b.FieldStateProto.ENABLED);B(5);Ge(" ",b.msgs.visibleName," ");B(2);Ge(" ",b.msgs.visibleDescription," ")}},dependencies:[Jx,FB,SH,mF,kF,pF,tH],styles:[".field-state-menu[_ngcontent-%COMP%]{max-width:210px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.field-state-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.field-state-menu-button[disabled][_ngcontent-%COMP%]{border:none}.field-state-menu-button[disabled][_ngcontent-%COMP%]   .field-state-dropdown-icon[_ngcontent-%COMP%]{display:none}"]});
var j_=function(){};j_.\u0275fac=function(a){return new (a||j_)};j_.\u0275mod=xc({type:j_});j_.\u0275inj=ic({imports:[ay,wG,hC,XH,qF,WH,pO]});
var i6b=new od("XapHatsSurveyApiKey"),j6b=new od("XapHatsSurveyLocale"),k6b=new od("XapHatsSurveyWindow"),l6b=new od("XapHatsSurveyListnrProductId");
var m6b=new Map([[0,1],[1,2]]),k_=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=AAb(DAb,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,environment:h.environment||h.environment,helpCenterPath:h.helpCenterPath||h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,
window:h.window||h.window});return new CAb(h)};this.helpService=e?e.runOutsideAngular(f):f()},eQa=function(a,b,c){c=void 0===c?{}:c;var d=void 0===d?{}:d;var e=d.anonymous?void 0:d.authUser||0;return(new T.Observable(function(f){a.helpService.requestSurvey({triggerId:b,enableTestingMode:d.enableTestingMode,nonProd:d.nonProd,callback:function(h){null!=h.surveyData&&f.next(h.surveyData);f.complete()},authuser:e})})).pipe(eg(function(f){return new T.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?m6b.get(d.theme):1,authuser:e,customZIndex:null!=(k=d.zIndex)?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,listener:{surveyClosed:function(){h.complete()}}});h.next(f.surveyMetadata)})}))};k_.\u0275fac=function(a){return new (a||k_)(t(i6b),t(l6b),t(j6b,8),t(k6b,8),t(mg,8))};k_.\u0275prov=hc({token:k_,factory:k_.\u0275fac,providedIn:"any"});
var l_=function(a,b,c,d,e,f,h){qI.call(this);this.cdr=a;this.paths=b;this.errorHandler=c;this.relatedIssuesService=d;this.analytics=e;this.hatsService=f;this.refreshMagicBox=!1;this.refreshMagicBoxChange=new Vw;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new Vw;this.isRefreshing=this.showSuggestedDupes=!1;this.page=1;this.endIndex=this.startIndex=this.numPages=this.numTotalResults=0;this.magicBoxIssues=[];this.magicBoxLoading=
!0;this.refresh$=new T.Subject;this.CATEGORIES=mo;this.enableDupSearchControl=sH(h,"enableDupSearchControl");this.enableDupSearchA=sH(h,"enableDupSearchA");this.enableDupSearchB=sH(h,"enableDupSearchB");this.enableDupSearchC=sH(h,"enableDupSearchC");this.enableSimilarIssues=h.isInternalSession()&&(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC)};U(l_,qI);l_.\u0275dir=qI.\u0275dir;
l_.prototype.ngOnInit=function(){var a=this;this.fetchIssues();this.refresh$.pipe(Qf(750),fg(this.destroyed$)).subscribe(function(){a.refresh()})};l_.prototype.ngOnChanges=function(a){if(!Object.values(a).some(function(c){return c.isFirstChange()})){var b=!1;a.componentId&&(this.showInline&&(this.showInline=!1),b=!0);a.showInline&&(b=!0);this.enableSimilarIssues&&a.issue&&(this.showSuggestedDupes=n6b(this),this.headerChange.emit(gQa(this)),this.refresh$.next());b&&this.refresh()}};
var n6b=function(a){var b;return!!a.issue.title||!!a.issue.comment||!!a.issue.priority||!!a.issue.type||0<(null!=(b=a.issue.hotlistId)?b:[]).length||a.hasCustomFieldValue()};l_.prototype.hasCustomFieldValue=function(){return this.issue.customField?0<this.issue.customField.map(function(a){return new cJ(a)}).filter(function(a){return!a.isEmpty()}).length:!1};l_.prototype.refresh=function(){this.isRefreshing=!0;this.page=1;this.magicBoxIssues=[];this.fetchIssues()};
l_.prototype.isLoadingAsyncResults=function(){return this.isRefreshing};
l_.prototype.searchAsync=function(a){var b=this,c=this.page;this.relatedIssuesService.get(a,null,null,!0,"modified_time:desc",this.numIssues,c).then(function(d){if(d.issueDigests){var e=d.issueDigests.map(function(f){return{id:f.issueId,title:f.title,href:b.paths.editIssue(f.issueId)}});1===b.page&&(b.magicBoxIssues=[]);b.magicBoxIssues=b.enableSimilarIssues?[].concat(v(b.magicBoxIssues),v(e)):e;e=b.numIssues;b.numTotalResults=d.numTotalResults;b.numPages=Math.ceil(b.numTotalResults/e);b.startIndex=
0===b.numTotalResults?0:(c-1)*e+1;b.endIndex=Math.min(b.startIndex+e-1,b.numTotalResults);b.magicBoxLoading=!1;b.viewAllHref=b.paths.listIssues({q:a,s:"modified_time:desc"});b.totalText=b.getTotalText(b.numTotalResults,c,e,1===c);b.cdr.detectChanges()}else b.magicBoxIssues=[],b.numPages=0,b.page=0,b.numTotalResults=0,b.totalText="0",b.startIndex=0,b.endIndex=0,b.magicBoxLoading=!1},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.isRefreshing=!1})};
var gQa=function(a){return a.showSuggestedDupes?"Similar Issues":"Recent Issues"};l_.prototype.fetchIssues=function(a){a&&(this.page=a);this.componentId&&(this.isRefreshing=!0,a=this.showSuggestedDupes?o6b(this):"componentid:"+this.componentId+" status:open",this.searchAsync(a))};
var o6b=function(a){var b=bl(a.issue.componentId),c=a.issue.title;b=(b?"componentid:"+b:"")+" "+(c?"title:("+c+")":"");if(a.enableDupSearchControl)return b;c=bl(a.issue.comment);b=b+" "+(c?"comment:("+c+")":"");if(a.enableDupSearchA)return b;c=bl(a.issue.type);var d=bl(a.issue.priority);b=b+" "+(d?"priority:"+d:"")+" "+(c?"type:"+c:"");if(a.enableDupSearchB)return b;c=bl(a.issue.hotlistId);b=b+" "+(!c||1>(null==c?void 0:c.length)?"":"hotlistid:("+(c.join(" | ")+")"))+" "+p6b(a,bl(a.issue.customField));
return a.enableDupSearchC?b:""},p6b=function(a,b){return!b||1>(null==b?void 0:b.length)?"":b.map(function(c){return new cJ(c)}).filter(function(c){return!c.isEmpty()}).map(function(c){return q6b(a,c)}).join(" ")},q6b=function(a,b){if(b.isEmpty())return"";var c="customfield"+b.customFieldId+":";switch(a.getCustomFieldType(b)){case "TEXT":var d='"'+b.textValue+'"';break;case "DATE":d=r6b(b.dateValue);break;case "ENUM":d='"'+b.enumValue+'"';break;case "NUMERIC":d=""+b.numericValue;break;case "REPEATED_TEXT":d=
'("'+b.repeatedTextValue.values.join('" | "')+'")';break;case "REPEATED_DATE":d="("+b.repeatedDateValue.values.map(function(e){return r6b(e)}).join(" | ")+")";break;case "REPEATED_ENUM":d='("'+b.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":d="("+b.repeatedNumericValue.values.join(" | ")+")"}return d?c+d:""},r6b=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):""};
l_.prototype.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};l_.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};l_.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":"Control"};
l_.\u0275fac=function(a){return new (a||l_)(C(mI,2),C(LK),C(BK),C(sX),C(IM),C(k_),C(qH))};
l_.\u0275cmp=w({type:l_,selectors:[["b-magic-box"]],inputs:{componentId:"componentId",refreshMagicBox:"refreshMagicBox",showInline:"showInline",hideHeader:"hideHeader",issueTitle:"issueTitle",issue:"issue",customFieldMap:"customFieldMap",numIssues:"numIssues"},outputs:{refreshMagicBoxChange:"refreshMagicBoxChange",headerChange:"headerChange"},features:[Je([sX,mI]),ee,Fc],decls:1,vars:1,consts:[["class","bv2-magic-box",4,"ngIf"],[1,"bv2-magic-box"],[4,"ngIf"],["class","magic-box-text",4,"ngIf"],["class",
"magic-box-more",4,"ngIf"],["class","magic-box-load",4,"ngIf"],["class","magic-box-all",4,"ngIf"],["class","magic-box-pager",4,"ngIf"],["class","unstyled feedback-button","type","button","matTooltip","Send feedback for the suggested similar issues",3,"click",4,"ngIf"],[1,"magic-box-pager"],["class","magic-box-pagenums",4,"ngIf"],["format","icon","size","large","tooltip","Previous page","b-aria-label","Previous page",1,"left","compact",3,"disabled","onAction"],["name","arrow-left","size","large"],
["format","icon","size","large","tooltip","Next page","b-aria-label","Next page",1,"right","compact",3,"disabled","onAction"],["name","arrow-right","size","large"],[1,"magic-box-pagenums"],["type","button","matTooltip","Send feedback for the suggested similar issues",1,"unstyled","feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s","gfx-muted"],[1,"magic-box-text"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",
"location","init",4,"onedevHovercardLazyBody"],["target","_blank",1,"magic-box-title",3,"href","onedevHovercardTrigger","click"],[3,"onedevIsHovercardReady","issueId","location","init"],["cardBody",""],[1,"magic-box-more"],["target","_blank",3,"href"],[1,"magic-box-load"],["mat-button","",1,"gmat-button",3,"click"],["svgIcon","arrow-down"],[1,"magic-box-all"],["mat-button","",1,"gmat-button","primary","hovercard-action",3,"click"],["svgIcon","pop-out"]],template:function(a,b){a&1&&M(0,tQa,3,2,"div",
0);a&2&&E("ngIf",b.componentId)},dependencies:[oO,tH,cN,Jx,Kx,Gx,xX,fN,gN,jN,hN,FB,hF],styles:[".bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:28px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-clickable[_ngcontent-%COMP%]{cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item[_ngcontent-%COMP%]{padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-item-new[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:none}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]{position:absolute;right:10px;top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{float:left;margin-right:10px;margin-top:5px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{min-width:34px;padding:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]{position:absolute;right:10px;top:12px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .magic-box-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:15px}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-bottom:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-load[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding-left:0}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]{float:right}.bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-all[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:3px}.jfk-bubble[_ngcontent-%COMP%]{left:12px;margin:0;padding:15px 20px 15px 15px}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]{display:block}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:0}.jfk-bubble[_ngcontent-%COMP%]   .magic-box-dialog-content[_ngcontent-%COMP%]   .magic-box-scroll[_ngcontent-%COMP%]{max-height:200px;overflow-y:scroll}.d-cozy[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:24px}.d-compact[_ngcontent-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{line-height:20px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:disc}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .magic-box-pager[_ngcontent-%COMP%]   .magic-box-pagenums[_ngcontent-%COMP%]{margin-top:8px}.bv2-material[_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%], .bv2-material   [_nghost-%COMP%]   .bv2-magic-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.magic-box-more[_ngcontent-%COMP%]{border-top:1px solid;border-color:#dadce0;border-color:var(--divider);padding:0}\n/*# sourceMappingURL=magic-box.css.map */"]});
var m_=function(){};m_.\u0275fac=function(a){return new (a||m_)};m_.\u0275mod=xc({type:m_});m_.\u0275inj=ic({imports:[pO,WH,ON,ay,BX,QN,wG,AF]});
var n_=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};n_.prototype.close=function(){this.dialogRef.close(!1)};n_.\u0275fac=function(a){return new (a||n_)(C(aC),C(QB))};
n_.\u0275cmp=w({type:n_,selectors:[["b-unsubscribe-dialog"]],decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["mat-button","",1,"gmat-button",3,"click"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Unsubscribe From Issue"),G(),F(2,"mat-dialog-content")(3,"div",1),O(4," Are you sure you would like to unsubscribe from the following issue? "),
G(),H(5,"br"),F(6,"div",2)(7,"a",3)(8,"span"),O(9),G()(),O(10," - "),F(11,"span"),O(12),G()(),H(13,"br"),F(14,"div",1),O(15," By unsubscribing, you will no longer receive email updates about this issue. "),G()(),F(16,"mat-dialog-actions")(17,"button",4),J("click",function(){return b.close()}),O(18," Cancel "),G(),F(19,"button",5),J("click",function(){b.dialogRef.close(!0)}),O(20," Unsubscribe "),G()());a&2&&(B(7),Ce("href","/issues/",b.issueId,"",Qd),B(2),Ge("b/",b.issueId,""),B(3),He(b.issueTitle))},
dependencies:[eC,fC,gC,FB],encapsulation:2});
var s6b=function(a,b){return{small:a,medium:b}},t6b=function(a){return{black:a}},o_=function(a,b,c,d,e){this.activeSession=a;this.matDialogService=b;this.issueFridge=c;this.analytics=d;this.routeParams=e;this.iconOnly=!1;this.subscriptionChange=new Vw;this.showNotificationSettings=new Vw;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=HAb;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"}]])};o_.prototype.ngOnInit=function(){u6b(this)};o_.prototype.ngOnChanges=function(){this.updateMenuButton()};o_.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};o_.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var u6b=function(a){var b,c;ef(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():ff(d,(0,T.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress)return(b=d.yieldResult)?ff(d,(0,T.firstValueFrom)(RB(a.matDialogService.open(n_,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3):d.return();if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),io(a.analytics,mo.EDIT_ISSUE,"unsubscribeUsingDialog");
gf(d)})};oi.Object.defineProperties(o_.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});o_.\u0275fac=function(a){return new (a||o_)(C(qH),C(cC),C(oL),C(IM),C(SR))};
o_.\u0275cmp=w({type:o_,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Fc],decls:63,vars:29,consts:[["mat-button","",1,"notification-menu-button","gmat-button",3,"ngClass","matMenuTriggerFor","disabled"],[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name","ngClass"],[4,"ngIf"],["notificationMenu","matMenu"],
[1,"notification-menu"],[1,"menu-row-container","default-container"],["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"],["mat-menu-item","","aria-label","Settings",1,"default-settings",3,"click"],["name","settings-outline","size","small",1,"item-icon"],["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,"menu-row-container"],[1,"subscription-info"],[1,"subscription-help"],[3,"panelTemplate","overlayPositions"],["allUpdates",""],["name","help-outline","size","small",1,"subscription-help","item-icon"],["all",""],["mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby","major-updates-help",1,"notification-option",3,"click"],["majorUpdates",""],["major",""],["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){a&1&&(F(0,"div")(1,"button",0)(2,"div",1),H(3,"b-icon",2),M(4,uQa,3,1,"ng-container",3),G()()(),F(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)}),
H(10,"b-icon",8),F(11,"div",9),O(12," Default "),G(),F(13,"div",10),O(14," receive emails based on your default settings. "),G()(),H(15,"mat-divider",11),F(16,"button",12),J("click",function(f){return b.showNotificationSettings.emit(f)}),H(17,"b-icon",13),G()(),H(18,"mat-divider"),F(19,"button",14),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)}),F(20,"div",15)(21,"div",16),H(22,"b-icon",8),F(23,"div",9),O(24," All Updates "),G(),F(25,"div",10),
O(26," receive emails for major and minor updates. "),G()(),F(27,"div",17)(28,"xap-bubble",18,19),H(30,"b-icon",20),M(31,vQa,13,0,"ng-template",null,21,Mf),G()()()(),F(33,"button",22),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)}),F(34,"div",15)(35,"div",16),H(36,"b-icon",8),F(37,"div",9),O(38," Major Updates "),G(),F(39,"div",10),O(40," receive emails for major updates only. "),G()(),F(41,"div",17)(42,"xap-bubble",18,23),H(44,"b-icon",20),
M(45,wQa,15,0,"ng-template",null,24,Mf),G()()()(),F(47,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)}),F(48,"div",15)(49,"div",16),H(50,"b-icon",8),F(51,"div",9),O(52," Closure Only "),G(),F(53,"div",10),O(54," only receive emails when the issue is closed. "),G()()()(),F(55,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)}),F(56,"div",15)(57,"div",16),H(58,"b-icon",8),F(59,"div",
9),O(60," None "),G(),F(61,"div",10),O(62," unsubscribe from further email updates. "),G()()()()()());if(a&2){var c=Fe(6),d=Fe(32),e=Fe(46);B(1);pe("icon-only",b.iconOnly);E("ngClass",Me(24,s6b,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",c)("disabled",b.isAnonymous);ke("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);E("name",b.menuIcon)("ngClass",Le(27,t6b,"notifications-off"===b.menuIcon));B(1);E("ngIf",!b.iconOnly);
B(5);pe("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);E("vertical",!0);B(4);pe("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(9);E("panelTemplate",d)("overlayPositions",b.bubblePosition);B(5);pe("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(9);E("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);pe("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);pe("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Jx,Gx,FB,SH,mF,kF,pF,tH,KS],styles:[".notification-menu[_ngcontent-%COMP%]{max-width:210px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.notification-menu[_ngcontent-%COMP%]   button.mat-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-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;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}.notification-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.notification-menu-button-inner[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:3px}.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 p_=function(){};p_.\u0275fac=function(a){return new (a||p_)};p_.\u0275mod=xc({type:p_});p_.\u0275inj=ic({imports:[ay,wG,XH,qF,WH,pO,VS]});
var q_=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new Vw;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex_=-1;this.requestIndex_=0},v6b=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()};
q_.prototype.displayFn=function(a){return(null==a?void 0:a.getName())||(null==a?void 0:a.getSloId())||""};q_.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.getSloId();this.onSloSelect.emit(a);this.cdr.detectChanges()};
oi.Object.defineProperties(q_.prototype,{boundId:{configurable:!0,enumerable:!0,get:function(){return this.internalBoundId},set:function(a){var b=this;(this.internalBoundId=a)&&"0"!==this.internalBoundId?this.sloApi.get(this.internalBoundId).then(function(c){b.dropdownChoices=c?[c]:[];b.selectedSlo=c}).catch(function(){b.selectedSlo=(new mY).setSloId(b.internalBoundId)}):(this.dropdownChoices=[],this.selectedSlo=null)}}});q_.\u0275fac=function(a){return new (a||q_)(C(pY),C(mI,2))};
q_.\u0275cmp=w({type:q_,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[Je([mI])],decls:6,vars:6,consts:[[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"placeholder","ngModel","disabled","matAutocomplete","ngModelChange","click","input"],["searchInput",""],["panelWidth","574px",3,"displayWith","optionSelected"],
["auto","matAutocomplete"],["class","slo-search-result",3,"value",4,"ngFor","ngForOf"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=x();F(0,"div",0)(1,"input",1,2);J("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){z(c);var e=Fe(2);return A(v6b(b,e.value))})("input",function(){z(c);var e=Fe(2);return A(v6b(b,e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});M(5,xQa,2,2,"mat-option",5);
G()()}if(a&2){var d=Fe(4);B(1);E("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);B(2);E("displayWith",b.displayFn);B(2);E("ngForOf",b.dropdownChoices)}},dependencies:[Kx,lN,mN,BB,Mg,py,vy],encapsulation:2});
var r_=function(){};r_.\u0275fac=function(a){return new (a||r_)};r_.\u0275mod=xc({type:r_});r_.\u0275inj=ic({imports:[ay,oN,Ky]});
var w6b=function(a){return{"empty-list-field-indication":a}},s_=function(a){this.documentationLinks=a;this.issueRetentionDisabled=!1;this.modelChange=new Vw;this.validChange=new Vw;this.RetentionSelection=KAb};s_.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};eq(this)};
s_.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);eq(this)};var eq=function(a){var b=a.validChange,c=b.emit,d;if(d=gq(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!x6b(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||y6b(a));c.call(b,d)};
s_.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var gq=function(a){return a.hasRetentionSelection(a.model.retentionSelection)&&(a.model.retentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||!!a.model.retentionPeriodDays&&30<=a.model.retentionPeriodDays&&3650>=a.model.retentionPeriodDays)},fq=function(a){return a?vo(a):"[unset period]"},y6b=function(a){if(!a.model.piiRetentionPeriodDays||!a.model.spiiRetentionPeriodDays||30>a.model.piiRetentionPeriodDays||30>a.model.spiiRetentionPeriodDays)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&&3650<d||b===a.RetentionSelection.CUSTOM_PERIOD&&(null==c||d>c)?!1:!0},CQa=function(a){if(!gq(a)||y6b(a))return"";var b=a.model.retentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.spiiRetentionPeriodDays;if(!c||!d||30>c||30>d)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?30===e?"must be 30 days":"must be between 30 days and "+fq(e):"Restricted+ retention must not exceed Restricted retention."},x6b=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},FQa=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&&120<e);return b===a.RetentionSelection.CUSTOM_PERIOD&&!!c&&120<c||d};s_.\u0275fac=function(a){return new (a||s_)(C(kP))};
s_.\u0275cmp=w({type:s_,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled"},outputs:{modelChange:"modelChange",validChange:"validChange"},decls:30,vars:31,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],[3,"value"],["aria-label","Custom retention period, must be between 30 days and 10 years",3,"value"],["class","duration-error",
4,"ngIf"],["class","custom-duration",4,"ngIf"],[3,"disabled","value"],["class","warning-box","id","indefinite-retention-warning-box",4,"ngIf"],["aria-label","PII Retention settings form",1,"pii-retention-form",3,"ngClass","disabled","name","ngModel","ngModelChange"],["target","_blank","rel","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring"],[3,"aria-label","disabled","value"],["class","warning-box","id","indefinite-pii-retention-warning-box",
4,"ngIf"],[1,"duration-error"],[1,"custom-duration"],["ariaLabel","Custom duration",3,"disabled","durationDays","durationDaysChange"],[1,"duration-description"],["id","indefinite-retention-warning-box",1,"warning-box"],[1,"b-restricted-retention-duration-label"],["ariaLabel","Restricted retention duration",3,"disabled","durationDays","durationDaysChange"],[1,"warning-box"],["ariaLabel","Restricted+ retention duration",3,"disabled","durationDays","durationDaysChange"],["class","warning-box","id","custom-pii-retention-warning-box",
4,"ngIf"],["id","custom-pii-retention-warning-box",1,"warning-box"],["id","indefinite-pii-retention-warning-box",1,"warning-box"]],template:function(a,b){a&1&&(F(0,"mat-radio-group",0),J("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),F(1,"p")(2,"b"),O(3,"Issue Retention"),G()(),F(4,"mat-radio-button",1),O(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),G(),F(6,"mat-radio-button",2),O(7," Custom retention period "),M(8,yQa,2,0,"span",3),M(9,zQa,4,
3,"div",4),G(),F(10,"mat-radio-button",5),O(11),M(12,AQa,13,0,"div",6),G()(),F(13,"mat-radio-group",7),J("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);eq(b)}),F(14,"p"),H(15,"br"),F(16,"b"),O(17,"Restricted Comments/Attachments Retention "),G(),F(18,"a",8),O(19,"Learn more "),G()(),F(20,"mat-radio-button",1),O(21," Buganizer default retention period : 60 days "),M(22,BQa,2,0,"span",3),
G(),F(23,"mat-radio-button",9),O(24," Custom retention period "),M(25,DQa,2,1,"span",3),M(26,GQa,16,7,"div",4),G(),F(27,"mat-radio-button",5),O(28," Match Issue Retention "),M(29,HQa,3,0,"div",10),G()());a&2&&(E("ngClass",Le(27,w6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),E("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),E("value",b.RetentionSelection.CUSTOM_PERIOD),
B(2),E("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),B(1),E("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),E("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(1),Ge(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),B(1),E("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
B(1),E("ngClass",Le(29,w6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),ke("href",b.documentationLinks.getRestrictedAccessHelpLink(),Qd),B(2),E("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),E("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&x6b(b)),B(1),E("aria-label","Custom Retention Period,"+CQa(b))("disabled",!gq(b))("value",
b.RetentionSelection.CUSTOM_PERIOD),B(2),E("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!y6b(b)),B(1),E("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),E("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),E("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&FQa(b)))},dependencies:[Jx,Gx,py,vy,ZX,aY,f_],styles:[".mat-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}"],
changeDetection:0});
var t_=function(){};t_.\u0275fac=function(a){return new (a||t_)};t_.\u0275mod=xc({type:t_});t_.\u0275inj=ic({imports:[ay,Ky,hY,g_]});
var z6b=function(){this.type="component";this.includeChildren=!1},A6b=function(){this.type="team";this.includeChildren=!1},B6b=function(){this.type="hotlist"},C6b=function(){this.type="savedsearch"},D6b=function(){this.type="customfield"};
var E6b=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},F6b="componentid c hotlistid h savedsearchid teamid".split(" "),G6b=F6b.concat("archived assignee attachment blockedbyid blockingid canonicalid cc cccount cl comment commenter created customfield deleted deletionreason deletiontime duplicatecount effortlabel foundin inprod is lastcommenter lastmodifier mention modified modifier mute p parentid postmortem priority reporter resolved s severity star status t targetedto title type verified verifiedin verifier votecount nearestslo".split(" ")),
H6b="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),I6b="(?:\\s|^)(-?)(customfield\\d+|"+G6b.join("|")+")(:|>|<|>=|<=|=)";
var u_=function(a,b,c,d,e,f,h){qI.call(this);var k=this;this.userApi=a;this.customFieldsApi=b;this.hotlistApi=c;this.savedSearchApi=d;this.componentActions=e;this.teamsService=f;this.activeSession=h;this.query="";this.requestIndex=0;this.producers=[{match:function(q){return J6b(k,q)}},{updateHeader:function(q){return K6b(k,q)}},{updateHeader:function(q){return L6b(k,q)}},{updateHeader:function(q){return M6b(k,q)}},{updateHeader:function(q){return N6b(k,q)}},{updateHeader:function(q){return O6b(k,
q)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new T.Subject;this.refreshRequest$=new T.Subject;this.refreshRequest$.pipe(Qf(250),fg(this.destroyed$)).subscribe(function(q){P6b(k,q.currentRequestIndex,q.currentSearchContext)});this.sessionIsInternal=h.isInternalSession();a=new Set(G6b);cj("enableWtdmMvpUi")||a.delete("parentid");this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(b=r(H6b),c=b.next();!c.done;c=b.next())a.delete(c.value);
this.atoms=Object.freeze(a);this.atomsWithoutOp=Object.freeze(new Set(["customfield"]))};U(u_,qI);u_.\u0275dir=qI.\u0275dir;
var P6b=function(a,b,c){for(var d=!1,e=!1,f=[],h=r(a.producers),k=h.next();!k.done;k=h.next())k=k.value,k.match&&f.push(k.match(c).then(function(q){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,v(q))}).catch(function(q){return q})),k.updateHeader&&f.push(k.updateHeader(c).then(function(q){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=q)}).catch(function(q){return q}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},J6b=
function(a,b){if(!b.value.val){var c=b.value.idx;if(c<b.query.length&&-1===b.query.charAt(c).search("\\s"))return Promise.reject(null)}if(b.label){if(b.label.customFieldId)return Q6b(a,b);switch(b.label.val){case "archived":return Promise.resolve(jq(R6b,b.value,!0));case "componentid":case "c":return S6b(a,b);case "deleted":return T6b(b);case "deletionreason":return Promise.resolve(jq(U6b,b.value,!0));case "hotlistid":case "h":return V6b(a,b);case "savedsearchid":return W6b(a,b);case "status":case "is":return Promise.resolve(jq(X6b,
b.value,!0));case "teamid":return Y6b(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(jq(Z6b,b.value,!0));case "severity":case "s":return Promise.resolve(jq($6b,b.value,!0));case "inprod":case "star":case "mute":return T6b(b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=JQa(b.value.val),e=r(a.atoms),f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&Qi(f,d.token)){var h=b.value.idx+(d.negated?1:
0);h={type:"atom",startIdx:h,endIdx:h+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};h={trackId:"atom:"+f,name:f,completionCfg:h};"customfield"===f&&(h.name="customfield[id]:[value]");c.push(h)}c.sort(function(k,q){return ju(k.name,q.name)});return Promise.resolve(c)},Q6b=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if("ENUM"!==c.type||!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 jq(d,b.value,!1,!1)}):Promise.reject(null)};u_.prototype.matchType=function(a){return Promise.resolve(jq(a7b,a.value,!0))};
var T6b=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(jq([{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))},S6b=function(a,b){var c=b.value.val;return!c||iq(c,!0)?Promise.reject(null):a.componentActions.search(c).then(function(d){var e=
[],f={};d=r(d);for(var h=d.next();!h.done;f={$jscomp$loop$prop$component$1706:f.$jscomp$loop$prop$component$1706,$jscomp$loop$prop$startIdx$1707:f.$jscomp$loop$prop$startIdx$1707,$jscomp$loop$prop$endIdx$1708:f.$jscomp$loop$prop$endIdx$1708},h=d.next())f.$jscomp$loop$prop$component$1706=h.value,h=f.$jscomp$loop$prop$component$1706.componentId,f.$jscomp$loop$prop$startIdx$1707=b.value.idx,f.$jscomp$loop$prop$endIdx$1708=f.$jscomp$loop$prop$startIdx$1707+c.length,h={componentId:h,name:f.$jscomp$loop$prop$component$1706.name,
description:f.$jscomp$loop$prop$component$1706.description,trackId:"component:"+h,accessLimit:f.$jscomp$loop$prop$component$1706.accessLimit,completionCfg:{type:"component",startIdx:f.$jscomp$loop$prop$startIdx$1707,endIdx:f.$jscomp$loop$prop$endIdx$1708,completionValue:""+h,matchingString:c},componentPath:f.$jscomp$loop$prop$component$1706.componentPathInfo.componentPathId.map(function(k){return function(q,u){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.$jscomp$loop$prop$component$1706.componentPathInfo.componentPathName[u]),
completionCfg:{type:"component",completionValue:String(q),startIdx:k.$jscomp$loop$prop$startIdx$1707,endIdx:k.$jscomp$loop$prop$endIdx$1708}}}}(f))},e.push(h);return e})},Y6b=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||iq(c,!0))return Promise.reject(null);var d=Nj();cM(a.teamsService,c).pipe(fg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[],q={};e=r(e.getTeamSuggestionsList());for(var u=e.next();!u.done;q={$jscomp$loop$prop$pathNames$1710:q.$jscomp$loop$prop$pathNames$1710},
u=e.next())u=u.value,q.$jscomp$loop$prop$pathNames$1710=u.getPathNamesList(),u={trackId:"team:"+u.getId(),name:u.getName(),id:u.getId(),label:"Team "+u.getId(),pathIds:u.getPathIdsList(),pathNames:u.getPathNamesList(),description:u.getDescription(),completionCfg:{type:"team",startIdx:f,endIdx:h,completionValue:String(u.getId()),matchingString:c},teamPath:u.getPathIdsList().map(function(y){return function(D,I){return{trackId:"team:"+D,id:D,name:y.$jscomp$loop$prop$pathNames$1710[I],completionCfg:{type:"team",
completionValue:String(D),startIdx:f,endIdx:h}}}}(q))},k.push(u);d.resolve(k)},function(){d.reject()});return d.promise},K6b=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new z6b;b=b.value.val;return iq(b,!0)?(iu(b,"+")&&(b=b.slice(0,b.length-1),c.includeChildren=!0),a.componentActions.get(Number(b)).then(function(d){c.component=d;return c})):Promise.resolve(c)},O6b=function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);
var c=new A6b,d=Nj(),e=b.value.val;iq(e,!0)?(iu(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),cM(a.teamsService,e).pipe(fg(a.destroyed$)).subscribe(function(f){f=f.getTeamSuggestionsList();0<f.length?(f=f[0],c.team={pathNames:f.getPathNamesList(),name:f.getName(),description:f.getDescription()}):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},L6b=function(a,b){if(!b.label||"hotlistid"!==
b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new B6b;b=b.value.val;return iq(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},M6b=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new C6b;b=b.value.val;return iq(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},N6b=function(a,b){if(b.label&&b.label.customFieldId)var c=
b.label.customFieldId;else if(Qi(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),Zn("search-usage","customfield");else return Promise.reject(null);var d=new D6b;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},V6b=function(a,b){return iq(b.value.val)?Promise.reject(null):a.userApi.getUserHotlists().then(function(c){c=c.map(function(d){var e=d.hotlistId;return{hotlistId:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",
completionValue:""+e}}});return jq(c,b.value,!1,!0)})},W6b=function(a,b){return iq(b.value.val)?Promise.reject(null):a.userApi.getUserSavedSearches().then(function(c){c=c.map(function(d){var e=d.searchId;return{searchId:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:""+e}}});return jq(c,b.value,!1,!0)})};u_.\u0275fac=function(a){return new (a||u_)(t(cL),t(qZ),t(XK),t(EN),t(sT),t(bM),t(qH))};u_.\u0275prov=hc({token:u_,factory:u_.\u0275fac,providedIn:"root"});
var X6b="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return kq(a,"status","Status","status")}),a7b=cj("enableWtdmMvpUi")?"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return kq(a,"bugType","Type","type")}):"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue".split(" ").map(function(a){return kq(a,
"bugType","Type","type")}),Z6b=["p0","p1","p2","p3","p4"].map(function(a){return kq(a,"priority","Priority","priority")}),$6b=["s0","s1","s2","s3","s4"].map(function(a){return kq(a,"severity","Severity","severity")}),R6b=["all","true","false"].map(function(a){return kq(a,"archived","Archived","archived")}),U6b=["abuse","pii","user_request","retention"].map(function(a){return kq(a,"deletionReason","Deletion Reason","deletionreason")});
var v_=function(a){this.cdr=a;this.optionsChange=new Vw};v_.prototype.ngOnInit=function(){KQa(this)};
var KQa=function(a){var b=null,c;for(c in a.options.propertyValues){var d=a.options.propertyValues[c].value;if(null===b)b=d;else if(b!=d){a.selectAllValue=null;return}}a.selectAllValue=b},LQa=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},b7b=function(a,b){if(b=void 0===b?null:b)b.preventDefault(),b.stopPropagation();a.selectAllValue=null===a.selectAllValue?!0:!a.selectAllValue;a.options.setAll(a.selectAllValue);a.optionsChange.emit(a.options);LQa(a)},c7b=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(", ")};v_.\u0275fac=function(a){return new (a||v_)(C(mI,2))};
v_.\u0275cmp=w({type:v_,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[Je([mI])],decls:15,vars:12,consts:[["mat-stroked-button","",1,"gmat-button","bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["menu","matMenu"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-selectall",
"bv2-property-picker-option-row",3,"click"],[3,"checked","indeterminate","label","change"],["mat-menu-item","","class","bv2-property-picker-options","role","menuitemcheckbox",4,"ngFor","ngForOf"],["class","bv2-property-picker-error-message",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"checked","label","change","click"],[1,"bv2-property-picker-error-message"]],template:function(a,b){a&1&&
(F(0,"div")(1,"button",0)(2,"div",1)(3,"span",2),O(4),O(5," \u00a0 "),G(),H(6,"mat-icon",3),G()(),F(7,"mat-menu",null,4)(9,"div",5),J("click",function(d){return b7b(b,d)}),F(10,"b-checkbox",6),J("change",function(d){b.selectAllValue=d;return b7b(b)}),G()(),H(11,"mat-divider"),M(12,MQa,3,3,"div",7),P(13,"keyvalue"),G(),M(14,NQa,2,1,"div",8),G());if(a&2){var c=Fe(8);B(1);pe("ng-invalid",!!b.errorString);E("matMenuTriggerFor",c);B(3);Ge(" ",c7b(b)," ");B(5);ke("aria-checked",b.selectAllValue);B(1);E("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue)("label",b.selectAllText);B(2);E("ngForOf",Q(13,10,b.options.propertyValues));B(2);E("ngIf",!!b.errorString)}},dependencies:[Kx,Gx,mQ,mF,kF,pF,SH,FB,hF,Xx],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var d7b=function(a,b){this.displayString=a;this.value=b},e7b=function(a){this.propertyValues=a},f7b=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},nRa=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};e7b.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};
var w_=function(){};w_.\u0275fac=function(a){return new (a||w_)};w_.\u0275mod=xc({type:w_});w_.\u0275inj=ic({imports:[ay,nQ,qF,XH,wG,AF]});
var g7b=function(a,b){this.name=a;this.secondsPerUnit=b},lq=new g7b("minute",60),mq=new g7b("hour",3600),nq=new g7b("day",86400),x_=function(){this.errorString=null;this.objectiveDurationChange=new Vw;this.objectiveBusinessDaysChange=new Vw;this.intervalUnit=nq};x_.prototype.ngOnInit=function(){h7b(this)};x_.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&h7b(this)};
var QQa=function(a,b){b=b.name;1!==Oi(a.intervalString)&&(b+="s");return b},h7b=function(a){2!=a.dayType&&i7b(a,nq)||i7b(a,mq)||i7b(a,lq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},i7b=function(a,b){var c=a.objectiveDuration.getSeconds();return 0==c%b.secondsPerUnit?(c/=b.secondsPerUnit,0!=c||""!=a.intervalString?(a.intervalString=""+c,a.intervalUnit=b):(2==a.dayType?[lq,mq]:[lq,mq,nq]).includes(a.intervalUnit)||(a.intervalUnit=b),!0):!1},
OQa=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);SQa(a);TQa(a)},SQa=function(a){a.objectiveDuration.setSeconds(a.intervalUnit.secondsPerUnit*(Oi(a.intervalString)||0));a.objectiveDurationChange.emit(a.objectiveDuration)},TQa=function(a){a.objectiveBusinessDays=Oi(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};x_.\u0275fac=function(a){return new (a||x_)};
x_.\u0275cmp=w({type:x_,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Fc],decls:2,vars:2,consts:[["class","enabled bv2-slo-objective",4,"ngIf"],["class","disabled",4,"ngIf"],[1,"enabled","bv2-slo-objective"],["class","bv2-slo-objective-interval",
4,"ngIf"],[1,"bv2-slo-objective-interval"],["type","text",3,"ngModel","ngModelChange"],[1,"bv2-slo-objective-unit",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"bv2-slo-objective-unit"],[3,"value"],[1,"disabled"],["class","bv2-slo-objective-biz-day-text",4,"ngIf"],[4,"ngIf"],[1,"bv2-slo-objective-biz-day-text"]],template:function(a,b){a&1&&(M(0,UQa,6,6,"span",0),M(1,YQa,3,2,"span",1));a&2&&(E("ngIf",!b.isDisabled),B(1),E("ngIf",b.isDisabled))},dependencies:[Kx,
Gx,Mg,py,vy,QS,BB],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-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}\n/*# sourceMappingURL=slo_objective_selector.css.map */']});
var y_=function(a,b){this.typeStringToJSPB=new Map([["BUG",1],["FEATURE_REQUEST",2],["CUSTOMER_ISSUE",3],["INTERNAL_CLEANUP",4],["PROCESS",5],["VULNERABILITY",6],["PRIVACY_ISSUE",7]]);this.jspbTypeToString=new Map([[1,"BUG"],[2,"FEATURE_REQUEST"],[3,"CUSTOMER_ISSUE"],[4,"INTERNAL_CLEANUP"],[5,"PROCESS"],[6,"VULNERABILITY"],[7,"PRIVACY_ISSUE"]]);sH(b,"enableWtdmMvpUi")&&(this.typeStringToJSPB.set("PROJECT",8),this.jspbTypeToString.set(8,"PROJECT"),this.typeStringToJSPB.set("FEATURE",9),this.jspbTypeToString.set(9,
"FEATURE"),this.typeStringToJSPB.set("MILESTONE",10),this.jspbTypeToString.set(10,"MILESTONE"),this.typeStringToJSPB.set("EPIC",11),this.jspbTypeToString.set(11,"EPIC"),this.typeStringToJSPB.set("STORY",12),this.jspbTypeToString.set(12,"STORY"),this.typeStringToJSPB.set("TASK",13),this.jspbTypeToString.set(13,"TASK"));this.priorityStringToJSPB=new Map([["P0",1],["P1",2],["P2",3],["P3",4],["P4",5]]);this.jspbPriorityToString=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"]]);this.postmortemValuesToCanonical=
new Map([["TRUE","ANY"],["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},m7b=function(a,b){var c=new j7b,d=k7b(b,"type",function(f){var h=f.toUpperCase(),k=new l7b;a.typeStringToJSPB.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;var e=r(d.values);for(d=e.next();!d.done;d=e.next())c.types.push(a.typeStringToJSPB.get(d.value));d=k7b(b,"priority",function(f){var h=
f.toUpperCase(),k=new l7b;a.priorityStringToJSPB.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;e=r(d.values);for(d=e.next();!d.done;d=e.next())c.priorities.push(a.priorityStringToJSPB.get(d.value));b=k7b(b,"postmortem",function(f){var h=f.toUpperCase(),k=new l7b;a.postmortemValuesToCanonical.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=r(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},k7b=function(a,b,c){var d=new n7b;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};y_.\u0275fac=function(a){return new (a||y_)(t(RH),t(qH))};y_.\u0275prov=hc({token:y_,factory:y_.\u0275fac,providedIn:"root"});
var j7b=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},n7b=function(){this.values=[];this.error=""},l7b=function(){this.error=this.value=""};
var z_=function(){};z_.prototype.validate=function(a){for(var b={},c=r(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};z_.\u0275fac=function(a){return new (a||z_)};z_.\u0275dir=w({type:z_,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[Je([{provide:jy,useExisting:z_,multi:!0}])]});
var A_=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new Vw;this.onValidation=new Vw;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=[0].concat(Z3b);this.dayTypes=[1,2];Z3b.map(function(d,e){return[d,e]});this.selectedMetric=0;this.selectedDayType=1;this.selectedMetric=
this.metricChoices[0];this.selectedDayType=1;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=new Map([["ANY","Has postmortem"],["NONE","No postmortem"]]);this.canPerformActions=!0},IRa=function(a,b,c){oq(a);a=r(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},LRa=function(a,b,c){c=ORa(a,b,c);var d=c.newOffset;c.valid&&(oq(a),za(a.collection,b),za(a.boundCollection,b.sloElement),a.collection.splice(d,
0,b),a.boundCollection.splice(d,0,b.sloElement),o7b(a))},ORa=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},oq=function(a){a=r(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},p7b=function(a,b){var c=b.map(function(d){return new B_(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},tRa=function(a,b){return 0!==b&&a.constants.protoIssueTypesDisplayNames.has(b)?a.constants.protoIssueTypesDisplayNames.get(b):
" - "},yRa=function(a,b){return 0!==b&&a.constants.protoIssuePrioritiesDisplayNames.has(b)?a.constants.protoIssuePrioritiesDisplayNames.get(b):" - "},oRa=function(a,b){oq(a);za(a.collection,b);za(a.boundCollection,b.sloElement);o7b(a)},aRa=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Tn("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];
o7b(a)},onDismiss:function(){}});b.stopPropagation()},ZQa=function(a,b){var c=new B_(new kY,a,!0);IRa(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);o7b(a)};A_.prototype.onDrop=function(a){LRa(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var o7b=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
oi.Object.defineProperties(A_.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){p7b(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=r(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});A_.\u0275fac=function(a){return new (a||A_)(C(RH),C(y_),C(RM))};
A_.\u0275cmp=w({type:A_,selectors:[["slo-elements-picker"]],inputs:{collectionInput:["collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},decls:29,vars:5,consts:[[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"],["class","bv2-slo-elements-actionbar",4,"ngIf"],["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","cdkDropListDropped",4,"ngIf"],["class","bv2-slo-elements-table-empty-list-description",4,"ngIf"],[1,"bv2-slo-elements-actionbar"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["class","hoverable","matTooltip","Add a new rule",3,"name","size","click",4,"ngIf"],["matTooltip","Clear all rules",1,"hoverable",3,"name","size","click"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size","click"],["cdkDropList",
"",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped"],["class","bv2-slo-element-row","cdkDrag","",3,"draggable",4,"ngFor","ngForOf"],["cdkDrag","",1,"bv2-slo-element-row"],["class","bv2-slo-element-row-counter editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-type-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-priority-column bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-postmortem-column bv2-editable-slo-element editable-row",
4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-metric bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-objective bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-picker-column bv2-slo-element-daytype bv2-editable-slo-element editable-row",4,"ngIf"],["class","bv2-slo-element-action editable-row",4,"ngIf"],["class","bv2-slo-element-row-counter display-row",4,"ngIf"],["class","bv2-slo-element-type-column bv2-slo-element-picker-column display-row",
4,"ngIf"],["class","bv2-slo-element-priority-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-postmortem-column bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-metric bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-objective bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-daytype bv2-slo-element-picker-column display-row",4,"ngIf"],["class","bv2-slo-element-action display-row",
4,"ngIf"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-type-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-priority-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column",
"bv2-editable-slo-element","editable-row"],[1,"bv2-postmortem-property-picker",3,"selectAllText","validator","options","optionsChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],["appearance","outline"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModel","customValidators","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element",
"editable-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","validator","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],["color","accent","appearance","outline"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-slo-element-action","editable-row"],["matTooltip","Finish editing",1,"bv2-slo-element-action",
3,"name","size","click"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"name","size","click"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[4,"ngIf"],["class","bv2-property-display-chips",4,"ngIf"],[1,"bv2-property-display-chips"],["class","bv2-property-display-chip-container",4,"ngFor","ngForOf"],[1,"bv2-property-display-chip-container"],[1,"matcher-chip-content"],[1,"bv2-slo-element-priority-column","bv2-slo-element-picker-column",
"display-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],["required","",3,"dayType","objectiveDuration","objectiveBusinessDays","isDisabled","objectiveDurationChange","objectiveBusinessDaysChange"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-action","display-row"],
["class","hoverable bv2-slo-element-action-edit","matTooltip","Edit this rule",3,"name","size","click",4,"ngIf"],["class","hoverable bv2-slo-element-action-more-settings","matTooltip","More options",3,"name","size","matMenuTriggerFor",4,"ngIf"],["settingsMenu","matMenu"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-down",3,"click",4,"ngIf"],["mat-menu-item","","class","bv2-slo-element-action-more-settings-move-up",3,"click",4,"ngIf"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",
3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",3,"click"],["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,"name","size","click"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",3,"click"],["mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",
3,"click"],[1,"bv2-slo-elements-table-empty-list-description"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div")(2,"div")(3,"label",1),O(4,"Rules"),G(),F(5,"a",2),H(6,"b-icon",3),G(),M(7,bRa,6,3,"span",4),G(),F(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),O(12,"Order"),G(),F(13,"th",8),O(14,"Type"),G(),F(15,"th",9),O(16,"Priority"),G(),F(17,"th",10),O(18,"Postmortem"),G(),F(19,"th",11),O(20,"Metric"),G(),F(21,"th",12),O(22,"Objective"),G(),F(23,"th",13),O(24," Day Type "),G(),H(25,"th",14),G()(),
M(26,RRa,2,3,"tbody",15),G(),F(27,"div"),M(28,SRa,2,0,"div",16),G()()());a&2&&(B(6),E("name","help-outline")("size","small"),B(1),E("ngIf",!b.isDisabled),B(19),E("ngIf",b.collection&&0!=b.collection.length),B(2),E("ngIf",!b.collection||0==b.collection.length))},dependencies:[Kx,Gx,z_,lV,mV,py,Gy,vy,tH,sC,mF,kF,pF,QS,BB,wF,v_,x_],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-select-value-text, .cdk-drag-preview[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-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-color:#dadce0;border-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-color:#dadce0;border-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-color:#dadce0;border-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:128px}.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-top:3px;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%]   .bv2-enum-field.ng-invalid[_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.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.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-metric.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-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.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-top:3px;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 .bv2-enum-field.ng-invalid, .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.ng-invalid{padding-top:3px}.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-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-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-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{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-form-field-wrapper, .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-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .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-wrapper{padding:0}.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-select-arrow-wrapper, .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-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.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-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-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-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-form-field-infix{padding:1px 0 7px}.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-color:#dadce0;border-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-color:#dadce0;border-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:128px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field.ng-invalid[_ngcontent-%COMP%]{padding-top:3px}.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-metric.editable-row[_ngcontent-%COMP%]{padding-top:3px}.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-top:3px;padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field.ng-invalid{padding-top:3px}.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-form-field, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field{padding-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-wrapper{padding:0}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-select-arrow-wrapper, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-select-arrow-wrapper{transform:none}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-form-field-infix{padding:1px 0 7px}.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)}\n/*# sourceMappingURL=slo-elements-picker.css.map */']});
var B_=function(a,b,c){var d=this;this.sloElement=a;this.controllerReference=b;this.isNewElement=void 0===c?!1:c;this.metricSelectorValid=this.postmortemPickerValid=this.priorityPickerValid=this.typePickerValid=this.isEditing_=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=f7b(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=f7b(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=f7b(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=null===e;return e};this.validateObjective=function(e,f){if(2!=d.selectedDayType){if(!e.match(/^\d+$/)||"0"===e)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&&"0"!==e||""!==f&&"0"!==f))return d.objectiveValid=
!1,"A business day or time based duration must be specified."}d.objectiveValid=!0;return null};this.matcherText=a.getMatcher();this.selectedMetric=a.getMetric();this.selectedDayType=Y(a,4,0)||1;this.selectedObjectiveDuration=q7b(m(a,mm,3));this.selectedObjectiveBusinessDays=hj(a,5);this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return r7b(d,e)}};s7b(this);this.typePickerValues=t7b(this.controllerReference.sloParseService.jspbTypeToString.keys(),function(e){return 0===d.parseResult.types.length||
d.parseResult.types.includes(e)},function(e){return tRa(d.controllerReference,e)});this.priorityPickerValues=t7b(this.controllerReference.sloParseService.jspbPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return yRa(d.controllerReference,e)});this.postmortemPickerValues=t7b(this.controllerReference.anyNoneDisplayValues.keys(),function(e){return 0===d.parseResult.postmortemValues.length||d.parseResult.postmortemValues.includes(e)},
function(e){return d.controllerReference.anyNoneDisplayValues.get(e)});this.validateTypePicker();this.validatePriorityPicker();this.validatePostmortemPicker();r7b(this,this.selectedMetric)},q7b=function(a){return a?a:(new mm).setSeconds(86400)};B_.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var r7b=function(a,b){b=0!==b;return a.metricSelectorValid=b};
B_.prototype.stopEditing=function(){if(this.isEditing_&&(this.isValid()||this.isNewElement)){this.controllerReference.openRow=null;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.isEditing_=this.isNewElement=!1;this.canEdit=!0;u7b(this);l(this.sloElement,1,this.selectedMetric);l(this.sloElement,4,this.selectedDayType);Db(this.sloElement,3,this.selectedObjectiveDuration);l(this.sloElement,5,this.selectedObjectiveBusinessDays);s7b(this)}};
var u7b=function(a){var b=v7b(a.typePickerValues),c=v7b(a.priorityPickerValues),d=v7b(a.postmortemPickerValues);b=w7b(b,function(f){return a.controllerReference.sloParseService.jspbTypeToString.get(Oi(f))});c=w7b(c,function(f){return a.controllerReference.sloParseService.jspbPriorityToString.get(Oi(f))});d=w7b(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.setMatcher(a.matcherText)},v7b=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},w7b=function(a,b){if(0===a.length)return"";if(1===a.length)return b(a[0]);var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
B_.prototype.startEditing=function(){if(!this.isEditing_){this.controllerReference.canPerformActions=!1;this.controllerReference.openRow=this;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.canEdit=!1;this.isEditing_=!0;s7b(this)}};var s7b=function(a){a.parseResult=m7b(a.controllerReference.sloParseService,a.matcherText)},t7b=function(a,b,c){var d={};a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new d7b(h,f)}return new e7b(d)};
var C_=function(){};C_.\u0275fac=function(a){return new (a||C_)};C_.\u0275mod=xc({type:C_});C_.\u0275inj=ic({imports:[ay,Ky,RS]});
var D_=function(){};D_.\u0275fac=function(a){return new (a||D_)};D_.\u0275mod=xc({type:D_});D_.\u0275inj=ic({imports:[ay]});
var E_=function(){};E_.\u0275fac=function(a){return new (a||E_)};E_.\u0275mod=xc({type:E_});E_.\u0275inj=ic({providers:[],imports:[ay,D_,nV,Ky,WH,tC,qF,RS,gH,w_,C_]});
var F_=function(a,b,c,d,e){qI.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};U(F_,qI);F_.\u0275dir=qI.\u0275dir;g=F_.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};g.selectPrevious=function(){0>this.focusedIndex-1||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.ngOnInit=function(){var a=this,b=XI(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=null==(b=this.element.nativeElement.querySelector("table"))?void 0:null==(c=b.rows)?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.slos[a].getName()};g.editSlo=function(a){this.location.path(this.paths.editSlo(a.getSloId()))};
F_.\u0275fac=function(a){return new (a||F_)(C(sd),C(mI,2),C(KK),C(LK),C(WI))};
F_.\u0275cmp=w({type:F_,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[Je([mI]),ee],decls:16,vars:1,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"],["class","bv2-resource-list-row","tabindex","0",3,"grid-focus","click","focus",4,"ngFor","ngForOf"],["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","click"],[1,"bv2-resource-list-cell","slo-description","clickable"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),O(8," SLO name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),O(13," Description "),G()()()()()(),F(14,"tbody"),M(15,TRa,7,7,"tr",6),G()());a&2&&(B(15),E("ngForOf",b.slos))},dependencies:[Kx],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 G_=function(){};G_.\u0275fac=function(a){return new (a||G_)};G_.\u0275mod=xc({type:G_});G_.\u0275inj=ic({imports:[ay]});
var H_=function(a){this.log_=a},y7b=function(a,b){var c=nSb(b.getAddMask()),d=nSb(b.getRemoveMask()),e={author:b.getAuthor(),timestamp:b.getTimestamp(),diffs:[]},f=b.getAdd()||new mY;b=b.getRemove()||new mY;for(var h=r(new Set([].concat(v(c),v(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=$3b.get(q);if("name"===q){var u=HS(d,q,b.getName());q=HS(c,q,f.getName());e.diffs.push(IS(k,u,q))}else if("description"===q)u=HS(d,q,b.getDescription()),q=HS(c,q,f.getDescription()),e.diffs.push(IS(k,u,q));
else if("parentId"===q)u=HS(d,q,String(b.getParentId())),q=HS(c,q,String(f.getParentId())),e.diffs.push(IS(k,u,q));else if("elements"===q){var y=at(b);u=at(f);y=oSb(d,q,y.map(function(D){return x7b(D)}));q=oSb(c,q,u.map(function(D){return x7b(D)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:y,added:q}})}else a.log_.error("Unsupported diff field.")}return e},x7b=function(a){var b=a.getMatcher(),c=gRa.get(a.getMetric()),d=kRa.get(Y(a,4,0)),e=[];0<hj(a,5)&&e.push(hj(a,5)+" day"+(1<
hj(a,5)?"s":""));0<m(a,mm,3).getSeconds()&&e.push(DOb(1E3*m(a,mm,3).getSeconds()));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};H_.\u0275fac=function(a){return new (a||H_)(t(AK))};H_.\u0275prov=hc({token:H_,factory:H_.\u0275fac,providedIn:"root"});
var I_=function(a){this.cdr=a;this.snoozeUntilChange=new Vw;this.snoozeUntilCommit=new Vw;this.isPickerVisible=!1};I_.prototype.ngOnInit=function(){i_a(this)};var i_a=function(a){var b;var c=a.snoozeUntil;if(c){var d=new GC;d.setTime(1E3*c.getSeconds());c=new Ni;c.setTime(d.getTime()-TKb-864E5);d=c}else d=null;a.currentPickerDate=null!=(b=d)?b:void 0};
I_.prototype.setDate=function(a){if(a){var b=new GC;b.setTime(a.getTime()+TKb+864E5);a=new vj;a.setSeconds(b.getTime()/1E3);b=a}else b=null;this.snoozeUntil=b;this.snoozeUntilChange.emit(this.snoozeUntil)};I_.\u0275fac=function(a){return new (a||I_)(C(mI,2))};
I_.\u0275cmp=w({type:I_,selectors:[["snooze-date-time-picker"]],inputs:{snoozeUntil:"snoozeUntil"},outputs:{snoozeUntilChange:"snoozeUntilChange",snoozeUntilCommit:"snoozeUntilCommit"},features:[Je([mI])],decls:1,vars:1,consts:[[4,"ngIf"],[3,"clickOutside"],[3,"date","dateSelectionChange","saveClicked","cancelClicked"]],template:function(a,b){a&1&&M(0,URa,3,1,"div",0);a&2&&E("ngIf",b.isPickerVisible)},dependencies:[Gx,oQ,EP],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{position:absolute;right:10px;z-index:100}\n/*# sourceMappingURL=snooze_date_time_picker.css.map */"]});
var J_=function(){};J_.\u0275fac=function(a){return new (a||J_)};J_.\u0275mod=xc({type:J_});J_.\u0275inj=ic({imports:[ay,pQ,XP]});
var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=xc({type:K_});K_.\u0275inj=ic({imports:[ay,rP,wG,hC]});
var L_=function(a){this.documentationLinks=a};L_.\u0275fac=function(a){return new (a||L_)(C(kP))};
L_.\u0275cmp=w({type:L_,selectors:[["b-wtdm-info-hovercard"]],decls:25,vars:6,consts:[["mat-icon-button","","disableRipple","true","aria-label","Work tracking data model help","target","_blank",1,"help","small","info-link",3,"href","onedevHovercardTrigger"],["svgIcon","help-outline",1,"icon-xs"],["card",""],["role","dialog","aria-label","Work tracking data model help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,
"a",0),H(1,"mat-icon",1),G(),F(2,"onedev-hovercard",null,2)(4,"div",3)(5,"div",4),O(6," A new work tracking data model is now available, which includes a new "),F(7,"strong"),O(8,"Parent/Child"),G(),O(9," relationship with multi-parent support. "),F(10,"a",5),O(11,"Learn more..."),G(),H(12,"br")(13,"br"),O(14," The work tracking data model also includes "),F(15,"a",5),O(16,"new types"),G(),O(17," (available in type dropdown) and an "),F(18,"a",5),O(19,"estimated effort"),G(),O(20," field (with dev days, story points and t-shirt support)."),
H(21,"br")(22,"br"),F(23,"a",5),O(24,"go/wtdm-home"),G()()()());if(a&2){var c=Fe(3);E("href",lP(b.documentationLinks),Qd)("onedevHovercardTrigger",c);B(10);E("href",lP(b.documentationLinks)+"#parent-child-relationship",Qd);B(5);E("href",lP(b.documentationLinks)+"#types",Qd);B(3);E("href",lP(b.documentationLinks)+"#estimated-effort-field",Qd);B(5);E("href",lP(b.documentationLinks),Qd)}},dependencies:[hF,fN,jN],styles:["a.info-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:0 5px}\n/*# sourceMappingURL=wtdm_info_hovercard.css.map */"]});
var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=xc({type:M_});M_.\u0275inj=ic({imports:[ay,AF,QN]});
var B7b=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=r(z7b);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"string"===typeof f?Ui(f):""}):e="string"===typeof d?Ui(d):"";this.templateAttributes[c]=e}b=r(A7b);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=r(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),Zi(c)||(this.templateCustomFields[b[0]]=c)},D7b=function(a){return!dh(a.templateCustomFields)||C7b.some(function(b){return null!=a.templateAttributes[b]})},I7b=function(a,b,c){null!=c&&(E7b(a,c),F7b(a,b,c),G7b(b,c));c=r(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;var f=b,h=H7b[d];"function"===typeof h?h(f,e):f[h||d]=e}a.templateAttributes={};a.templateCustomFields={}},F7b=function(a,b,c){null==
b.customField&&(b.customField=[]);for(var d={},e=r(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e={};f=r(Object.entries(a.templateCustomFields));for(var h=f.next();!h.done;e={$jscomp$loop$prop$customFieldId$1712:e.$jscomp$loop$prop$customFieldId$1712},h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$customFieldId$1712=Oi(h);k={customFieldId:e.$jscomp$loop$prop$customFieldId$1712,value:k};h=a.getCustomFieldValue(k,c);null!=d[e.$jscomp$loop$prop$customFieldId$1712]?
(k=b.customField.findIndex(function(q){return function(u){return u.customFieldId===q.$jscomp$loop$prop$customFieldId$1712}}(e)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
B7b.prototype.getCustomFieldValue=function(a,b){var c=new cJ(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=CFb(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=DFb(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 CFb(e)}).filter(function(e){return null!==e});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 DFb(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};B7b.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var E7b=function(a,b){a.templateCustomFields=ch(a.templateCustomFields,function(c,d){return!!b[d]})},G7b=function(a,b){if(null!=a.customField){var c={};a=r(a.customField);for(var d=a.next();!d.done;c={$jscomp$loop$prop$allowedValues$1714:c.$jscomp$loop$prop$allowedValues$1714},d=a.next()){d=d.value;var e=b[d.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){c.$jscomp$loop$prop$allowedValues$1714=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(d.repeatedEnumValue=
d.repeatedEnumValue||{values:[]},d.repeatedEnumValue.values=d.repeatedEnumValue.values.filter(function(h){return function(k){return h.$jscomp$loop$prop$allowedValues$1714.includes(k)}}(c)),!d.repeatedEnumValue.values.length&&f&&(d.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):c.$jscomp$loop$prop$allowedValues$1714.includes(d.enumValue)||(d.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},J7b=function(a,b,c){c&&(c=Array.isArray(c)?c.map(function(d){return Oi(d)}):[Oi(c)],b[a]=c.filter(function(d){return!isNaN(d)}))},
K7b=function(a,b,c,d){d&&(b=b.find(function(e){return!ju(e,d)}))&&(c[a]=b)},L7b=new RH,M7b=L7b.priorities,N7b=L7b.severities,O7b=L7b.issueTypes,z7b="title type priority severity assignee verifier reporter cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),A7b=["inProd"],C7b="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),N_={},H7b=(N_.cc=function(a,b){if(b){b="string"===typeof b?b.split(","):b;a.ccUsers||(a.ccUsers=
[]);b=r(b);for(var c=b.next();!c.done;c=b.next())(c=c.value.trim())&&a.ccUsers.push(Xl(c));a.ccUsers=Tma(a.ccUsers)}else a.ccUsers=[]},N_.assignee=function(a,b){VRa(b,function(c){a.assigneeUser=c})},N_.reporter=function(a,b){VRa(b,function(c){a.reporterUser=c})},N_.verifier=function(a,b){VRa(b,function(c){a.verifierUser=c})},N_.hotlistIds=eu(J7b,"hotlistId"),N_.blockingIssueIds=eu(J7b,"blockingIssueId"),N_.blockedByIssueIds=eu(J7b,"blockedByIssueId"),N_.foundIn=function(a,b){"string"===typeof b&&
(a.foundInVersion=b.split(","))},N_.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},N_.inProd=function(a,b){a.inProd="true"===b},N_.priority=eu(K7b,"priority",M7b),N_.severity=eu(K7b,"severity",N7b),N_.type=eu(K7b,"type",O7b),N_);
var O_=function(a,b){qI.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};U(O_,qI);O_.\u0275dir=qI.\u0275dir;O_.prototype.install=function(){var a=this;this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.history.push(a.bLocation.url());21<a.history.length&&a.history.shift()}))};O_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};O_.prototype.hasPreviousPage=function(){return 1<this.history.length};
var P_=function(a){if(a.hasPreviousPage()){a.history.pop();var b=a.history.pop();b?a.bLocation.url(b):a.bLocation.url("/")}else a.bLocation.url("/")};O_.\u0275fac=function(a){return new (a||O_)(t(NI),t(KK))};O_.\u0275prov=hc({token:O_,factory:O_.\u0275fac,providedIn:"root"});
var Q_=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},P7b=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&iu(d,"id=")||iu(d,"bugId="))d+=c;oP(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};Q_.\u0275fac=function(a){return new (a||Q_)(t(KK),t(SR),t(mP))};Q_.\u0275prov=hc({token:Q_,factory:Q_.\u0275fac,providedIn:"root"});
var R_=function(a,b){qI.call(this);var c=this;this.routerEvents=a;this.documentVisibility=b;this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1;this.onNavStart=function(){c.ignoringNextNav||(WKb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(){c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++}};U(R_,qI);R_.\u0275dir=qI.\u0275dir;
R_.prototype.install=function(){var a=this;FM()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(this.onNavStart)),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(this.onNavSuccess)),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){a.onNavStart();a.onNavSuccess()})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(uf(function(b){return"visible"!==b}),Tf()).subscribe(function(){a.tabWasHidden=!0})))};
var Q7b=function(a,b){WKb(b);if(b!==a.mostRecentlyMeasured){var c=1>=a.validNavigations?void 0:"appNavStart",d=c?"appNavStart-to-CF":"browserStart-to-CF",e=d+" -> "+b;a.mostRecentlyMeasured=b;if(("browserStart-to-CF"!==d||!a.tabWasHidden)&&FM())if(null===b)console.warn("window.performance does not support endMark `null`");else try{window.performance.measure(e,c,b)}catch(f){console.warn("route_performance",f)}}};R_.\u0275fac=function(a){return new (a||R_)(t(NI),t(S_))};
R_.\u0275prov=hc({token:R_,factory:R_.\u0275fac,providedIn:"root"});var S_=function(a){var b=this;this.window=a;this.visibilityState$=(0,T.fromEvent)(this.window.document,"visibilityChange").pipe(dg(void 0),R(function(){return b.currentVisibility}))};oi.Object.defineProperties(S_.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});S_.\u0275fac=function(a){return new (a||S_)(t(mM))};
S_.\u0275prov=hc({token:S_,factory:S_.\u0275fac,providedIn:"root"});
var R7b=RegExp("action/issues/([0-9]+)/"),S7b=new od("ETAG_URL_TRANSFORMERS"),T_=function(a){this.transformers=a;this.etagStore={};this.IF_MATCH_METHODS=["POST","PUT","DELETE"]};T_.prototype.intercept=function(a,b){if(this.IF_MATCH_METHODS.includes(a.method)){var c=this.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}if(c=R7b.exec(a.url))this.issueId=c[1];return T7b(this,a,b)};
var T7b=function(a,b,c){return c.handle(b).pipe(gg(function(d){if(d instanceof WE){var e=d.headers;e.has("etag")&&a.setEtag(b,e.get("etag"));d=d.body;if(d instanceof CL&&a.issueId)for(d=r(tb(d,$m,1)),e=d.next();!e.done;e=d.next()){e=r(e.value.getAttachmentsList());for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.hasEtag()){var h=a.issueId,k=f.getAttachmentId();h=new Am("GET","action/issues/"+h+"/attachments/"+k);a.setEtag(h,f.getEtag())}}}}))};
T_.prototype.setEtag=function(a,b){null!=b&&(a=U7b(this,a),this.etagStore[a]=b)};T_.prototype.getEtag=function(a){a=U7b(this,a);return this.etagStore[a]};var U7b=function(a,b){b=b.url;var c;a=r(null!=(c=a.transformers)?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};T_.\u0275fac=function(a){return new (a||T_)(t(S7b,8))};T_.\u0275prov=hc({token:T_,factory:T_.\u0275fac,providedIn:"root"});var V7b={provide:YE,useClass:T_,multi:!0};
var W7b={provide:S7b,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},X7b={provide:S7b,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};
var U_=function(a){this.activeSession=a};U_.prototype.intercept=function(a,b){var c=a.method,d=c+" "+a.urlWithParams;ro[d]=~~ro[d]+1;return"POST"===c||"PUT"===c||"DELETE"===c?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};U_.\u0275fac=function(a){return new (a||U_)(t(qH))};U_.\u0275prov=hc({token:U_,factory:U_.\u0275fac,providedIn:"root"});var Y7b={provide:YE,useClass:U_,multi:!0};
var V_=function(){};V_.\u0275fac=function(a){return new (a||V_)};V_.\u0275mod=xc({type:V_});
V_.\u0275inj=ic({providers:[{provide:ZN,useFactory:pq,deps:[bO,$N]},{provide:IR,useFactory:pq,deps:[KR,JR]},{provide:LR,useFactory:pq,deps:[NR,MR]},{provide:yGb,useFactory:pq,deps:[yJ,wJ]},{provide:zGb,useFactory:pq,deps:[xJ,vJ]},{provide:PJ,useFactory:pq,deps:[SJ,QJ]},{provide:qZ,useFactory:pq,deps:[sZ,rZ]},{provide:hO,useFactory:pq,deps:[jO,iO]},{provide:fK,useFactory:pq,deps:[jK,hK]},{provide:yO,useFactory:pq,deps:[AO,zO]},{provide:cL,useFactory:pq,deps:[hL,dL]},{provide:eL,useFactory:pq,deps:[gL,
fL]}],imports:[ay]});
var Z7b=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=Z7b.prototype;g.getId=function(){return this.lookupId_};g.setDisplayName=function(a){this.displayName_=a;return this};g.getDisplayName=function(){return this.displayName_};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
g.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};
var is=function(a){Z.call(this,a)};U(is,Z);is.prototype.getEntryPoint=function(){return Y(this,5,0)};is.prototype.setEntryPoint=function(a){return l(this,5,a)};is.prototype.toObject=function(){return W_(void 0,this)};var W_=function(a,b){if(null!=b){var c={autocompleteField:n(p(b,1)),autocompletePerson:n(p(b,2)),suggestionField:n(p(b,3)),suggestionPerson:n(p(b,4)),entryPoint:Y(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};
var js=function(a){Z.call(this,a)};U(js,Z);js.prototype.getEntryPoint=function(){return Y(this,1,0)};js.prototype.setEntryPoint=function(a){return l(this,1,a)};js.prototype.toObject=function(){return $7b(void 0,this)};var $7b=function(a,b){if(null!=b){var c={entryPoint:Y(b,1,0),additionEventSources:W_(a,m(b,is,2)),replacementEventSources:W_(a,m(b,is,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Vr=function(a){Z.call(this,a)};U(Vr,Z);var Qq=function(a){return m(a,Wr,2)};Vr.prototype.getSessionState=function(){return m(this,X_,3)};Vr.prototype.setSessionState=function(a){Db(this,3,a)};Vr.prototype.hasSessionState=function(){return oj(this,3)};var Xr=function(a){Z.call(this,a)};U(Xr,Z);g=Xr.prototype;g.getPersonLoggingId=function(){return p(this,1)};g.setPersonLoggingId=function(a){l(this,1,a)};g.getFieldLoggingId=function(){return p(this,2)};g.setFieldLoggingId=function(a){l(this,2,a)};
g.setFieldValue=function(a){return l(this,3,a)};g.clearFieldValue=function(){return ob(this,3)};g.getName=function(){return p(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return gj(this,4)};g.getContactId=function(){return p(this,5)};g.setContactId=function(a){l(this,5,a)};g.hasContactId=function(){return gj(this,5)};g.getProfileId=function(){return p(this,6)};g.setProfileId=function(a){return l(this,6,a)};g.hasProfileId=function(){return gj(this,6)};
g.getFieldType=function(){return p(this,7)};g.getIsPlaceholder=function(){return W(this,10,!1)};g.setIsPlaceholder=function(a){l(this,10,a)};g.getGroupId=function(){return p(this,11)};g.setGroupId=function(a){l(this,11,a)};g.hasGroupId=function(){return gj(this,11)};var Wr=function(a){Z.call(this,a)};U(Wr,Z);g=Wr.prototype;g.getProvenance=function(){return Y(this,3,0)};g.setProvenance=function(a){return l(this,3,a)};g.getContext=function(){return Y(this,5,0)};
g.getExistingSelectionsCount=function(){return hj(this,6,0)};g.setExistingSelectionsCount=function(a){l(this,6,a)};var X_=function(a){Z.call(this,a)};U(X_,Z);X_.prototype.getQuery=function(){return V(this,1,"")};X_.prototype.setQuery=function(a){return l(this,1,a)};X_.prototype.clearQuery=function(){ob(this,1)};X_.prototype.hasQuery=function(){return gj(this,1)};var a8b=function(a,b){l(a,3,b)};X_.prototype.getAffinityVersion=function(){return p(this,7)};
X_.prototype.setAffinityVersion=function(a){l(this,7,a)};var b8b=function(a){var b=yUb();l(a,8,b)};g=X_.prototype;g.getSources=function(){return m(this,is,10)};g.getInstanceId=function(){return V(this,11,"")};g.setInstanceId=function(a){return l(this,11,a)};g.clearInstanceId=function(){ob(this,11)};g.hasInstanceId=function(){return gj(this,11)};Vr.prototype.toObject=function(){return c8b(void 0,this)};
var c8b=function(a,b){if(null!=b){var c={info:d8b(a,m(b,Xr,1)),targetState:e8b(a,Qq(b)),sessionState:f8b(a,b.getSessionState()),isClosed:W(b,4,!1)};a&&(c.$jspbMessageInstance=b);return c}};Xr.prototype.toObject=function(){return d8b(void 0,this)};
var d8b=function(a,b){if(null!=b){var c={personLoggingId:n(p(b,1)),fieldLoggingId:n(p(b,2)),fieldValue:n(p(b,3)),name:n(p(b,4)),contactId:n(p(b,5)),profileId:n(p(b,6)),fieldType:n(p(b,7)),personType:n(p(b,8)),isFlattened:W(b,9,!0),isPlaceholder:W(b,10,!1),groupId:n(p(b,11))};a&&(c.$jspbMessageInstance=b);return c}};Wr.prototype.toObject=function(){return e8b(void 0,this)};
var e8b=function(a,b){if(null!=b){var c={fieldPosition:hj(b,1,0),personPosition:hj(b,2,0),provenance:Y(b,3,0),valueOriginator:Y(b,4,0),context:Y(b,5,0),existingSelectionsCount:hj(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};X_.prototype.toObject=function(){return f8b(void 0,this)};
var f8b=function(a,b){if(null!=b){var c={query:V(b,1,""),querySessionId:hj(b,3,0),selectSessionId:hj(b,4,0),submitSessionId:hj(b,5,0),cacheUpdatedTimestamp:hj(b,6,0),affinityVersion:n(p(b,7)),callTimestampMs:Cl(b,8,0),resultTimestampMs:Cl(b,9,0),sources:W_(a,b.getSources()),instanceId:V(b,11,""),contextualSources:$7b(a,m(b,js,12))};a&&(c.$jspbMessageInstance=b);return c}};
var Y_=function(a,b){this.name_=b||"";this.address=a||""},g8b=/"/g,h8b=/\\"/g,i8b=/\\/g,j8b=/\\\\/g,k8b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),l8b=new RegExp("["+rja({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");Y_.prototype.getName=function(){return this.name_};Y_.prototype.getAddress=function(){return this.address};Y_.prototype.setName=function(a){this.name_=a};Y_.prototype.toString=function(){return m8b(this,'()<>@:\\".[],;')};
var m8b=function(a,b){var c=a.getName();c=c.replace(g8b,"");a:{for(var d=c,e=0;e<b.length;e++)if(fa(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(i8b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};Y_.prototype.isValid=function(){return k8b.test(this.address)};
var p8b=function(a){var b=n8b;a=a.replace(l8b,"");for(var c="",d="",e=0;e<a.length;){var f=a;var h=e,k=f.charAt(h),q='"<(['.indexOf(k);if(-1==q||o8b(f,h))f=k;else{q='">)]'.charAt(q);for(var u=f.indexOf(q,h+1);0<=u&&o8b(f,u);)u=f.indexOf(q,u+1);f=0<=u?f.substring(h,u+1):k}"<"==f.charAt(0)&&-1!=f.indexOf(">")?(d=f.indexOf(">"),d=f.substring(1,d)):""==d&&(c+=f);e+=f.length}""==d&&-1!=c.indexOf("@")&&(d=c,c="");c=AC(c);c=arb(c,"'");c=arb(c,'"');c=c.replace(h8b,'"');c=c.replace(j8b,"\\");d=AC(d);return new b(d,
c)},o8b=function(a,b){if('"'!=a.charAt(b))return!1;var c=0;for(--b;0<=b&&"\\"==a.charAt(b);b--)c++;return 0!=c%2};
var n8b=function(a,b){Y_.call(this,a,b)};hu(n8b,Y_);var q8b=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}$");n8b.prototype.isValid=function(){return Z_(this.address)};var Z_=function(a){return null==a?!1:q8b.test(a)};n8b.prototype.toString=function(){return m8b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};
var r8b=/[^a-z0-9]+/ig,s8b=[9,11,10,12,13,14,15,16,19],t8b=[9,19,11],u8b=[1,6],v8b=[2,7],w8b=[3,8],x8b=[1,2,6,7,8,9,11,10,12,13,14,15,16,19],y8b=[3,4,5,17,20],sr=function(a,b){this.originalValue_=(b||"").trim();switch(a){case 1:case 6:b=(b||"").trim().toLowerCase();break;case 2:case 7:b=(b||"").trim().toLowerCase().replace(r8b,"");break;case 3:case 8:case 5:b=(b||"").trim().toLowerCase();3===a&&"me"===b&&(a=17,b="me");break;case 4:case 9:b=(b||"").trim().toLowerCase();break;case 12:case 13:case 14:case 15:case 16:case 10:case 11:case 18:case 19:case 20:b=
(b||"").trim();break;case 17:b="me";break;default:a=0}this.type_=a;this.value_=b};sr.prototype.getType=function(){return this.type_};sr.prototype.getValue=function(){return this.value_};var Jq=function(a){return s8b.includes(a.getType())},Kq=function(a){return t8b.includes(a.getType())},eUa=function(a,b){return new sr(a,b)},z8b=function(a){var b=a.indexOf(":"),c=a.substring(b+1);return 0>=b?new sr(0,c):new sr(parseInt(a.substring(0,b),10),c)};
sr.prototype.toString=function(){return this.getType()+":"+this.getValue()};sr.prototype.equals=function(a){return a?this===a?!0:this.getType()===a.getType()&&this.getValue()===a.getValue():!1};var wr=eUa(0,"");new sr(17,"me");
var Cr=function(a){Z.call(this,a,2)};U(Cr,Z);var A8b={};Cr.prototype.toObject=function(){if(null!=this){var a={dataMap:Gb(bj(this,1))};Fb(this,a,A8b)}else a=void 0;return a};
var Rr=function(a){Z.call(this,a)};U(Rr,Z);g=Rr.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getValue=function(){return V(this,2,"")};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.toObject=function(){var a=null!=this?{type:Y(this,1,0),value:V(this,2,"")}:void 0;return a};
var B8b=function(a){Z.call(this,a)};U(B8b,Z);g=B8b.prototype;g.getEnableClearcut=function(){return W(this,1,!1)};g.setEnableClearcut=function(a){return l(this,1,a)};g.getClientId=function(){return Y(this,2,0)};g.setClientId=function(a){return l(this,2,a)};g.getSocialApplication=function(){return p(this,3)};g.getComponentFlow=function(){return Y(this,4,0)};g.setComponentFlow=function(a){return l(this,4,a)};g.getInterfaceType=function(){return Y(this,5,0)};
g.setInterfaceType=function(a){return l(this,5,a)};g.toObject=function(){return C8b(this)};var C8b=function(a){if(null!=a)return{enableClearcut:W(a,1,!1),clientId:Y(a,2,0),socialApplication:n(p(a,3)),componentFlow:Y(a,4,0),interfaceType:Y(a,5,0),enableVeTracking:W(a,6,!0)}};
var a0=function(a){Z.call(this,a)};U(a0,Z);a0.prototype.toObject=function(){return D8b(this)};var D8b=function(a){if(null!=a)return{enableDisambigForAdditionSuggestions:W(a,1,!1),enableSyntheticVe:W(a,2,!1),enableOodTag:W(a,3,!1),enableLegacyReplacementStyling:W(a,4,!0)}};
var b0=function(a){Z.call(this,a)};U(b0,Z);b0.prototype.getApplication=function(){return Y(this,1,0)};b0.prototype.setApplication=function(a){return l(this,1,a)};b0.prototype.getIsEnabled=function(){return W(this,2,!1)};b0.prototype.toObject=function(){return E8b(this)};var E8b=function(a){if(null!=a)return{application:Y(a,1,0),isEnabled:W(a,2,!1),overriddenExperiments:D8b(m(a,a0,3))}};
var F8b=function(a){Z.call(this,a)};U(F8b,Z);g=F8b.prototype;g.getClearcut=function(){return m(this,B8b,1)};g.setClearcut=function(a){Db(this,1,a)};g.hasClearcut=function(){return oj(this,1)};g.getExperiments=function(){return m(this,b0,2)};g.setExperiments=function(a){Db(this,2,a)};g.hasExperiments=function(){return oj(this,2)};
g.toObject=function(){var a=null!=this?{clearcut:C8b(this.getClearcut()),experiments:E8b(this.getExperiments()),maxUndoStackSize:hj(this,3,10),enableTargetedCopyOptions:W(this,4,!1),enableEmailEditing:W(this,5,!1),hideGroupResultMemberCount:W(this,6,!1)}:void 0;return a};
var G8b=function(){var a=no(F8b,"[[true,49,740,4]]");a.hasClearcut()||a.setClearcut(new B8b);a.hasExperiments()||a.setExperiments(new b0);this.internal=a};
var LSa=function(a){this.root=a;this.length=0};g=LSa.prototype;g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(0>a||a>this.length)throw new RangeError("ze");if(a===this.length)this.append(b);else{var c=Array.from(this.root.childNodes);this.root.insertBefore(b,c[a]);++this.length}};g.remove=function(a){if(0>a||a>=this.length)throw new RangeError("ze");var b=Array.from(this.root.childNodes);this.root.removeChild(b[a]);--this.length};
g.clear=function(){AD(this.root);this.length=0};g.getRoot=function(){return this.root};
var JSa=function(a){return Lq('<ul id="'+Mq(a.id)+'" peoplekit-id="'+Mq("rymPhb")+'" role="listbox" class="'+Mq("peoplekitComponentsListImplList")+'"></ul>')};
var KSa=KU.getInstance();
var H8b=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(v(a));this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=H8b.prototype;
g.remove=function(a,b){var c=-1;a=r(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());0<=c&&b&&(this.isActive=!1,this.goToIndex(c,0))};
g.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(v(b)));c?(I8b(this),J8b(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):0<=a&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};g.size=function(){return this.list.length};g.prev=function(a){var b=0===this.spotlightIndex&&1===a;!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=0<=b?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};
g.next=function(a){var b=this.spotlightIndex===this.list.length-1&&1===a;if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};g.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
g.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||void 0===a||0>a)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:I8b(this);K8b(this);break;case 3:K8b(this);break;case 1:a=YRa(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=YRa(this.multiActivateAnchorIndex,c,this.spotlightIndex);if(0<=c&&(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);J8b(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};g.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};g.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
g.getItem=function(a){for(var b=r(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};g.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();I8b(this);this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(v(this.secondaryEventTargets));b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;null==(d=c.value)||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};g.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var K8b=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},I8b=function(a){for(var b=r(a.activeItems),c=b.next();!c.done;c=b.next())c.value.deactivate();a.activeItems.clear()},J8b=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 L8b=function(a){this.delegate=a};g=L8b.prototype;g.prev=function(a){a=this.delegate.prev(a);M8b(this);return a};g.next=function(a){a=this.delegate.next(a);M8b(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);M8b(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);M8b(this);return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};
g.getItem=function(a){return this.delegate.getItem(a)};g.clear=function(){this.delegate.clear()};g.reset=function(){this.delegate.reset()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};g.remove=function(a,b){this.delegate.remove(a,b)};g.insert=function(a,b,c){this.delegate.insert(a,b,c)};
var M8b=function(a){if(a=a.delegate.getSpotlitItem())if(a=a.getRoot(),lu){var b=qXb(a);tXb(a,b)}else a.scrollIntoView({block:"nearest"})};
var N8b=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.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)|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|(photos\\-image\\-(dev|qa)(-auth)?\\.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)?))\\/",
"i"),O8b=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,P8b=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,Q8b=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;
var R8b=/\/\/lh[3-6]\./,S8b=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!(N8b.test(e)||O8b.test(e)||P8b.test(e)||Q8b.test(e)));if(e)return String(a||"");a=String(a);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(R8b,"//lh3.");return(new nR(a)).setSize(d?c:void 0).setWidth(d?void 0:b).setHeight(d?void 0:c).setCrop(!1).setKillAnimation(!1).setEsPortraitApprovedOnly(!1).setSmartCrop(!0).setCenterCrop().setOverlay(!1).setNoOverlay(!1).setRequestWebp(!1).setQualityBucket().setImageFilter().setLooseFaceCrop(!1).setForceMonogram(!1).setRequestPng(!1).setRequestJpeg(!1).setRequestH264(!1).setPad(!1).build()};
var $Ra=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=Lq;var h='<div class="'+Mq("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Mq(xU(d))+"px; height: "+Mq(xU(d))+'px"><div peoplekit-id="'+Mq("YLEF4c")+'" class="'+Mq("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Mq(xU(d))+"px; height: "+Mq(xU(d))+'px">';Array.isArray(b);1==uU(b).length?(Array.isArray(b),b=Lq('<div class="'+Mq("peoplekitComponentsAvatarImplContainer")+
'">'+c0(b[0],c,d,e,f)+"</div>")):2==uU(b).length?(Array.isArray(b),b=Lq('<div class="'+Mq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'">'+c0(b[0],c,d,e,f)+"</div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'">'+c0(b[1],c,d,e,f)+"</div></div>")):3==uU(b).length?(Array.isArray(b),b=Lq('<div class="'+Mq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'">'+c0(b[0],c,d,e,f)+
"</div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[1],c,Math.round(.5*d),e,f)+"</div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=Lq('<div class="'+Mq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[0],
c,Math.round(.5*d),e,f)+"</div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[1],c,Math.round(.5*d),e,f)+"</div>"+d0()+'<div class="'+Mq("peoplekitComponentsAvatarImplRow")+'">'+c0(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=Lq(b);return a(h+b+'</div><div peoplekit-id="'+Mq("Btuy5e")+'" class="'+
Mq("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Lq('<img class="'+Mq("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Mq("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},c0=function(a,b,c,d,e){var f="",h=IWb(S8b(a,c,c,e));h=uWb(h);a=IWb(S8b(a,d,d,e));a=uWb(a);b=IWb(S8b(b,c,c,e));b=uWb(b);f+='<div peoplekit-id="'+Mq("IHgMKc")+'" class="'+Mq("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Mq("HiaYvf")+'" class="'+Mq("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Mq(xU(c))+"px; height: "+Mq(xU(c))+'px;" data-preload-src="'+Mq(a)+'" data-src="'+Mq(h)+'" data-backup-src="'+Mq(b)+'" draggable="false" alt=""></div>';return Lq(f)},d0=function(){return Lq('<div class="'+Mq("peoplekitComponentsAvatarImplDivider")+'"></div>')};
var T8b=new Map([[0,"light_theme"],[1,"dark_theme"]]);
var U8b=!lu&&!caa(),V8b=function(a,b){if(/-[a-z]/.test(b))return null;if(U8b&&a.dataset){if(daa()&&!(b in a.dataset))return null;a=a.dataset[b];return void 0===a?null:a}return a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
var W8b=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),X8b=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),bSa=function(a,b){this.appearance=b;this.root=a;Y8b(this)};
bSa.prototype.setBadge=function(a){var b=rq(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=W8b.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(T8b.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=X8b.get(a.badgeType)||"";d=rq(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};
var Y8b=function(a){var b={};a=r(Array.from(a.root.querySelectorAll('[peoplekit-id="IHgMKc"]')));for(var c=a.next();!c.done;b={$jscomp$loop$prop$img$1722:b.$jscomp$loop$prop$img$1722,$jscomp$loop$prop$src$1720:b.$jscomp$loop$prop$src$1720,$jscomp$loop$prop$imageRoot$1721:b.$jscomp$loop$prop$imageRoot$1721,$jscomp$loop$prop$backupSrc$1723:b.$jscomp$loop$prop$backupSrc$1723},c=a.next())b.$jscomp$loop$prop$imageRoot$1721=c.value,b.$jscomp$loop$prop$img$1722=rq(b.$jscomp$loop$prop$imageRoot$1721,"HiaYvf"),
c=V8b(b.$jscomp$loop$prop$img$1722,"preloadSrc"),b.$jscomp$loop$prop$src$1720=V8b(b.$jscomp$loop$prop$img$1722,"src"),b.$jscomp$loop$prop$backupSrc$1723=V8b(b.$jscomp$loop$prop$img$1722,"backupSrc"),ZRa(b.$jscomp$loop$prop$src$1720)?b.$jscomp$loop$prop$img$1722.src=b.$jscomp$loop$prop$src$1720:ZRa(c)?(b.$jscomp$loop$prop$img$1722.src=c,ND(function(d){return function(){d.$jscomp$loop$prop$img$1722.src=d.$jscomp$loop$prop$src$1720}}(b),0)):(b.$jscomp$loop$prop$imageRoot$1721.classList.add("isLoading"),
b.$jscomp$loop$prop$img$1722.onload=function(d){return function(){d.$jscomp$loop$prop$imageRoot$1721.classList.remove("isLoading")}}(b),b.$jscomp$loop$prop$img$1722.onerror=function(d){return function(){d.$jscomp$loop$prop$img$1722.src=d.$jscomp$loop$prop$backupSrc$1723}}(b),b.$jscomp$loop$prop$img$1722.src=b.$jscomp$loop$prop$src$1720)};
var sq=function(){this.theme=this.density=0};sq.prototype.getDensity=function(){return this.density};sq.prototype.setDensity=function(a){this.density=a};sq.prototype.getTheme=function(){return this.theme};sq.prototype.setTheme=function(a){this.theme=a};
var vSa=function(a){a=a.memberCount;return(new zP("{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)},uSa=function(a){a=a.memberNames;Array.isArray(a);return uU(a).join(", ")};
var Z8b=function(a){Z.call(this,a)};U(Z8b,Z);Z8b.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var $8b=function(a){Z.call(this,a)};U($8b,Z);$8b.prototype.toObject=function(){return a9b(this)};var a9b=function(a){if(null!=a)return{exampleBooleanFlag:W(a,1,!1),exampleIntegerFlag:hj(a,2,42)}};
var b9b=function(a){Z.call(this,a)};U(b9b,Z);b9b.prototype.toObject=function(){return c9b(this)};var c9b=function(a){if(null!=a)return{enableTypescriptCodegenRefactor:W(a,3,!1),enableTestFeature:W(a,4,!1)}};
var d9b=function(a){Z.call(this,a)};U(d9b,Z);d9b.prototype.toObject=function(){return e9b(this)};var e9b=function(a){if(null!=a)return{enableProjectLean:W(a,1,!1),enableEmailAddressMatching:W(a,2,!1),enableFilterNonPrimarySignupEmail:W(a,3,!1),enableSmartaddressCounterfactualLogging:W(a,4,!1),enableExtensibleLookupcache:W(a,5,!1)}};
var f9b=function(a){Z.call(this,a)};U(f9b,Z);f9b.prototype.toObject=function(){return g9b(this)};var g9b=function(a){if(null!=a)return{enableProjectLean:W(a,1,!1)}};
var h9b=function(a){Z.call(this,a)};U(h9b,Z);h9b.prototype.toObject=function(){return i9b(this)};var i9b=function(a){if(null!=a)return{enablePopulousV2:W(a,1,!0)}};
var j9b=function(a){Z.call(this,a)};U(j9b,Z);j9b.prototype.getIsEnabled=function(){return W(this,1,!1)};j9b.prototype.toObject=function(){return k9b(this)};var k9b=function(a){if(null!=a)return{isEnabled:W(a,1,!1),answer:hj(a,2,42)}};
var Aq=function(a){Z.call(this,a)};U(Aq,Z);Aq.prototype.getRequestType=function(){return p(this,1)};Aq.prototype.setRequestType=function(a){return l(this,1,a)};Aq.prototype.toObject=function(){return l9b(this)};
var l9b=function(a){if(null!=a){var b=n(p(a,1)),c=k9b(m(a,j9b,101));var d=null!=m(a,Z8b,102)?{}:void 0;return{requestType:b,testExperimentFlags:c,hovercardExperimentsRoot:d,peopleIntelligenceExperimentsRoot:c9b(m(a,b9b,103)),populousExperimentsRoot:e9b(m(a,d9b,104)),sendkitExperimentsRoot:i9b(m(a,h9b,105)),integrationExampleFeature:a9b(m(a,$8b,106)),peoplekitExperimentsRoot:D8b(m(a,a0,107)),populousLeanExperimentFlags:g9b(m(a,f9b,108))}}};
var m9b=function(){var a=new Aq,b=new a0;this.experimentFlags_=Db(a,107,b)};m9b.prototype.getExperimentFlags=function(){return this.experimentFlags_};m9b.prototype.getExperimentIds=function(){return[]};
var hr=function(a,b){this.cache=b;this.overriddenExperiments=m(a,a0,3)||new a0};hr.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:m(a,a0,107))||new a0;a=this.overriddenExperiments;if(gj(a,3)){var c=W(a,3,!1);l(b,3,c)}gj(a,4)&&(a=W(a,4,!0),l(b,4,a));return b};hr.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};
var dr=function(a){Z.call(this,a)};U(dr,Z);g=dr.prototype;g.getCacheStaleSec=function(){return hj(this,4,14400)};g.getCacheExpiredSec=function(){return hj(this,5,1209600)};g.getRpcTimeoutSec=function(){return hj(this,7,60)};g.getApiKey=function(){return V(this,8,"")};g.getEnableClearcut=function(){return W(this,13,!0)};g.setEnableClearcut=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{minimumCacheRefreshSec:hj(this,3,1800),cacheStaleSec:hj(this,4,14400),cacheExpiredSec:hj(this,5,1209600),rpcTimeoutSec:hj(this,7,60),apiKey:V(this,8,""),apiRoot:n(p(this,10)),cacheRefreshRateSec:hj(this,11,14400),maxRefreshCount:hj(this,12,18),enableClearcut:W(this,13,!0)}:void 0;return a};
var n9b=function(){};n9b.prototype.getExperimentFlags=function(){return new Aq};n9b.prototype.getExperimentIds=function(){return[]};
var fr=function(){};fr.prototype.prefetch=function(){};fr.prototype.loadExperiments=function(){return new n9b};
var e0=function(a){Z.call(this,a)};U(e0,Z);e0.prototype.getVersion=function(){return p(this,1)};e0.prototype.setVersion=function(a){return l(this,1,a)};e0.prototype.toObject=function(){return o9b(this)};var o9b=function(a){if(null!=a)return{version:n(p(a,1))}};
var f0=function(a){Z.call(this,a)};U(f0,Z);g=f0.prototype;g.getApplication=function(){return p(this,1)};g.setApplication=function(a){return l(this,1,a)};g.getVersion=function(){return p(this,2)};g.setVersion=function(a){return l(this,2,a)};g.toObject=function(){return p9b(this)};var p9b=function(a){if(null!=a)return{application:n(p(a,1)),version:n(p(a,2))}};
var q9b=function(a){Z.call(this,a)};U(q9b,Z);g=q9b.prototype;g.getRequestType=function(){return Y(this,1,0)};g.setRequestType=function(a){return l(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return gj(this,2)};g.getCaller=function(){return m(this,e0,3)};g.setCaller=function(a){return Db(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};
g.clearInstanceId=function(){ob(this,4)};g.hasInstanceId=function(){return gj(this,4)};g.getClient=function(){return m(this,f0,5)};g.setClient=function(a){return Db(this,5,a)};g.hasClient=function(){return oj(this,5)};g.toObject=function(){var a=null!=this?{requestType:Y(this,1,0),profileId:n(p(this,2)),caller:o9b(this.getCaller()),instanceId:n(p(this,4)),client:p9b(this.getClient())}:void 0;return a};
var xq=function(a){Z.call(this,a)};U(xq,Z);g=xq.prototype;g.getErrorType=function(){return Y(this,2,1)};g.setErrorType=function(a){return l(this,2,a)};g.getErrorMessage=function(){return p(this,3)};g.setErrorMessage=function(a){l(this,3,a)};g.toObject=function(){return r9b(this)};var r9b=function(a){if(null!=a)return{errorType:Y(a,2,1),errorMessage:n(p(a,3))}};
var zq=function(a){Z.call(this,a,-1,s9b)};U(zq,Z);g=zq.prototype;g.getExperimentFlags=function(){return m(this,Aq,1)};g.setExperimentFlags=function(a){return Db(this,1,a)};g.hasExperimentFlags=function(){return oj(this,1)};g.getError=function(){return m(this,xq,2)};g.setError=function(a){Db(this,2,a)};g.hasError=function(){return oj(this,2)};g.getSource=function(){return p(this,3)};g.setSource=function(a){return l(this,3,a)};g.hasSource=function(){return gj(this,3)};
g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){ob(this,4)};g.hasInstanceId=function(){return gj(this,4)};g.getExperimentIdsList=function(){return lb(this,5)};g.setExperimentIdsList=function(a){return ml(this,5,a)};var s9b=[5];
zq.prototype.toObject=function(){var a=null!=this?{experimentFlags:l9b(this.getExperimentFlags()),error:r9b(this.getError()),source:n(p(this,3)),instanceId:n(p(this,4)),experimentIdsList:n(lb(this,5))}:void 0;return a};
var g0=function(a,b){this.client_=a;this.runtime_=b;wq();this.apiKey_=a.getApiKey();this.apiRoot_=p(this.client_,10)||wCa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};g0.prototype.getClient=function(){return this.client_};g0.prototype.getApiKey=function(){return this.apiKey_};
var h0=function(a){Z.call(this,a,-1,t9b)};U(h0,Z);g=h0.prototype;g.getExperimentFlags=function(){return m(this,Aq,1)};g.setExperimentFlags=function(a){return Db(this,1,a)};g.hasExperimentFlags=function(){return oj(this,1)};g.getObfuscatedGaiaId=function(){return p(this,2)};g.setObfuscatedGaiaId=function(a){l(this,2,a)};g.getExperimentIdsList=function(){return lb(this,3)};g.setExperimentIdsList=function(a){return ml(this,3,a)};var u9b=function(a){return no(h0,a)},t9b=[3];
h0.prototype.toObject=function(){var a=null!=this?{experimentFlags:l9b(this.getExperimentFlags()),obfuscatedGaiaId:n(p(this,2)),experimentIdsList:n(lb(this,3))}:void 0;return a};
var v9b=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},w9b=function(a,b,c){a=a.now_()-1E3*c;return b>a};v9b.prototype.getCacheState=function(a){var b=hj(this.clientConfig_.getClient(),3,1800);if(w9b(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(w9b(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return w9b(this,a,b)?3:4};
var yq=function(a,b){b=Error.call(this,void 0===b?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=a};U(yq,Error);
var x9b=function(a,b){b=void 0===b?null:b;var c=hSa(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},y9b=new yq(6);
var z9b=function(){};
var i0=function(){};hu(i0,z9b);i0.prototype.getCount=function(){for(var a=0,b=r(this),c=b.next();!c.done;c=b.next())a++;return a};i0.prototype[Symbol.iterator]=function(){return YIb(this.__iterator__(!0)).toEs6()};i0.prototype.clear=function(){var a=Array.from(this);a=r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};
var A9b=function(a){this.storage_=a};hu(A9b,i0);g=A9b.prototype;g.isAvailable=function(){if(!this.storage_)return!1;try{return this.storage_.setItem("__sak","1"),this.storage_.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.storage_.setItem(a,b)}catch(c){if(0==this.storage_.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.get=function(a){a=this.storage_.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.storage_.removeItem(a)};g.getCount=function(){return this.storage_.length};
g.__iterator__=function(a){var b=0,c=this.storage_,d=new MK;d.next=function(){if(b>=c.length)return XIb;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};g.clear=function(){this.storage_.clear()};g.key=function(a){return this.storage_.key(a)};
var jSa=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};hu(jSa,A9b);
var j0=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};hu(j0,i0);j0.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};j0.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};j0.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
j0.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new MK;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 Cq=function(a,b){var c=void 0,d=void 0;b=void 0===b?new jSa:b;c=void 0===c?dE:c;d=void 0===d?Ctb:d;this.clientConfig_=a;this.transformer_=new v9b(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new j0(this.localStorage_,this.prefix_)};
Cq.prototype.set=function(a,b){var c=x9b(a,b.getObfuscatedGaiaId());if(!c)throw y9b;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
Cq.prototype.get=function(a){a=x9b(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;if((a=a&&this.isValidJson_(a)?JSON.parse(a):null)&&4!==this.transformer_.getCacheState(a.lastUpdated)){var b=this.transformer_;a={keyPath:a.keyPath,experiments:u9b(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};Cq.prototype.delete=function(a){this.storage_.remove(a);return!0};
Cq.prototype.clean=function(){for(var a=this.localStorage_.getCount(),b=0;b<a;b++){var c=this.localStorage_.key(b);if(c&&c.includes(this.prefix_)){var d=(d=this.localStorage_.get(c))&&this.isValidJson_(d)?JSON.parse(d):null;d=this.transformer_.getCacheState(d.lastUpdated)}else d=0;4===d&&this.localStorage_.remove(c)}};
var Dq=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new v9b(this.clientConfig_);this.cache_=b};Dq.prototype.set=function(a,b){var c=x9b(a,b.getObfuscatedGaiaId());if(!c)throw y9b;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
Dq.prototype.get=function(a){a=x9b(a);if(!a)return null;a=this.cache_.get(a);if(!a)return null;var b=this.transformer_.getCacheState(a.lastUpdated.getTime());if(4===b)return null;a.state=b;return a};Dq.prototype.delete=function(a){this.cache_.delete(a);return!0};Dq.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};
var B9b=function(){};g=B9b.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};
var C9b=function(a){Z.call(this,a)};U(C9b,Z);g=C9b.prototype;g.getCaller=function(){return m(this,e0,1)};g.setCaller=function(a){return Db(this,1,a)};g.getClient=function(){return m(this,f0,2)};g.setClient=function(a){return Db(this,2,a)};g.hasClient=function(){return oj(this,2)};g.toObject=function(){return D9b(this)};var D9b=function(a){if(null!=a)return{caller:o9b(a.getCaller()),client:p9b(a.getClient())}};
var E9b=function(a){Z.call(this,a)};U(E9b,Z);g=E9b.prototype;g.getRequestType=function(){return p(this,1)};g.setRequestType=function(a){return l(this,1,a)};g.setProperties=function(a){return Db(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){ob(this,4)};g.hasInstanceId=function(){return gj(this,4)};
g.toObject=function(){var a=null!=this?{requestType:n(p(this,1)),properties:D9b(m(this,C9b,3)),instanceId:n(p(this,4))}:void 0;return a};
var F9b=new yG("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",E9b,h0,function(a){return a.serialize()},u9b);
var G9b=function(a){this.client_=new $G({format:"jspb"});this.hostname_=a};G9b.prototype.getExperimentFlags=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},F9b)};
var k0=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new B9b};k0.prototype.getMetric=function(){return this.metric_};k0.prototype.send=function(a){var b=this,c;return ef(function(d){var e=(new C9b).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new E9b).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceId()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
k0.prototype.close=function(){};k0.prototype.processResponse=function(a){return a};
var H9b=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var I9b=function(a,b){this.config_=a;this.request_=b;this.resolver_=new H9b;this.rpcPromise_=null;this.state_=0};g=I9b.prototype;g.isPending=function(){return 1===this.state_};g.cancel=function(){switch(this.state_){case 1:this.rpcPromise_.cancel();break;case 0:this.state_=2,this.rpcPromise_=Csb(new LD),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resolver_.promise;var b=vCa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=Msb(Fsb([b,Vsb(1E3*this.config_.timeoutSec,"TIMEOUT")]),function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resolver_.promise};
g.onResponse_=function(a){if(a&&"TIMEOUT"!==a){try{var b=this.request_.processResponse(a)}catch(c){this.onError_(c,2);return}this.resolver_.resolve(b);this.request_.close(0)}else this.onError_(a)};
g.onError_=function(a,b){b=void 0===b?0:b;if("TIMEOUT"===a)var c=4;else a instanceof LD?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=Qo("result.error.code",a)||a.status,c=Number(c),c=JUb.has(c)?JUb.get(c):200<=c&&300>c?0:400<=c&&500>c?9:500<=c&&600>c?13:2,2!==c||b||(b=(a.message||"").startsWith("Rpc failed due to xhr error.")?3:0))):c=2;!this.config_.authErrorHandler||16!==c&&7!==c||this.config_.authErrorHandler();this.resolver_.reject(c);this.request_.close(c,b)};
var J9b=Symbol("Be"),K9b=function(){};K9b.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[J9b]=d)}return c})};
var l0=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};l0.prototype.getMetric=function(){return this.metric_};l0.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
l0.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[J9b]||0}};l0.prototype.close=function(a,b){b=void 0===b?0:b;this.request_.close(a,b);this.metric_.stop("total");this.metric_.status(a,b,this.contentLength_)};
var L9b=function(a){this.config_=a;this.pendingRpcs_=new Set},N9b=function(a,b){b=new l0(b);b=new I9b(a.config_,b);a.pendingRpcs_.add(b);M9b(a,b);return b.resolver_.promise},M9b=function(a,b){ef(function(c){if(1==c.nextAddress)return Ut(c,2,3),ff(c,b.send(),3);if(2!=c.nextAddress)return Xt(c),a.pendingRpcs_.delete(b),Yt(c,0);Wt(c);return c.jumpTo(3)})};
var lSa=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new L9b(a);this.rpcClient_=new G9b(this.clientConfig_.apiRoot_)},P9b=function(a,b){var c,d,e,f;return ef(function(h){switch(h.nextAddress){case 1:var k=O9b(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new k0(b,a.rpcClient_);Ut(h,2,3);e=N9b(a.dispatcher_,d);k=O9b(b);a.inflightRequests_.set(k,
e);return ff(h,e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Xt(h);k=O9b(b);a.inflightRequests_.delete(k);Yt(h,0);break;case 2:throw Wt(h),Error("Ce");}})},O9b=function(a){a=hSa(a);if(!a)throw y9b;return a};
var Q9b=function(a){Z.call(this,a)};U(Q9b,Z);g=Q9b.prototype;g.getInstanceId=function(){return p(this,1)};g.setInstanceId=function(a){return l(this,1,a)};g.clearInstanceId=function(){ob(this,1)};g.hasInstanceId=function(){return gj(this,1)};g.getRequestType=function(){return p(this,4)};g.setRequestType=function(a){return l(this,4,a)};g.getSourceType=function(){return p(this,6)};g.setSourceType=function(a){return l(this,6,a)};g.getClient=function(){return p(this,7)};
g.setClient=function(a){return l(this,7,a)};g.hasClient=function(){return gj(this,7)};g.getErrorType=function(){return p(this,8)};g.setErrorType=function(a){return l(this,8,a)};g.toObject=function(){var a=null!=this?{instanceId:n(p(this,1)),requestId:n(p(this,2)),durationUsec:n(p(this,3)),requestType:n(p(this,4)),requestOrigin:n(p(this,5)),sourceType:n(p(this,6)),client:n(p(this,7)),errorType:n(p(this,8))}:void 0;return a};
var mSa=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=fs(new gs,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(449361830).setEnableClearcut(b.getEnableClearcut())};g=mSa.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Va");};g.createStatusMetric=function(){throw Error("Va");};g.createErrorMetric=function(){throw Error("Va");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(1E3*b.duration());l(a,3,b);return a};
var m0=function(a,b){this.metrics_=a;this.state_=new eU(b);this.label_="total";this.source=b};m0.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};m0.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};
var nSa=function(a,b){this.worker_=a;this.metrics_=$o(b)},R9b=function(a,b){var c=new Q9b,d=wq();c=l(c,2,d).setRequestType(a.getRequestType());return l(c,5,b).setClient(a.getClient().getApplication())};
nSa.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return ef(function(k){if(1==k.nextAddress)return d=R9b(a,b),e=new m0(c.metrics_,d),e.start(),ff(k,c.worker_.updateExperimentsCache(a,b),2);f=k.yieldResult;d.setSourceType(f.getSource());d.setInstanceId(f.getInstanceId());(h=f.getError())&&d.setErrorType(h.getErrorType());e.stop();return k.return(f)})};
nSa.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=R9b(a,b),d=new m0(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);c.setSourceType(a.getSource());c.setInstanceId(a.getInstanceId());(b=a.getError())&&c.setErrorType(b.getErrorType());d.stop();return a};
var S9b=function(a){this.timer=a;this.count=0},pSa=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*hj(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new WG(this)};pSa.prototype.updateExperimentsCache=function(a,b){try{return T9b(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(Bq(c))}};pSa.prototype.getCachedExperiments=function(a,b){try{return T9b(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return Bq(c)}};
var T9b=function(a,b){var c=hSa(b);if(!c)throw new yq(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new MD(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=hj(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new S9b(d))}a.refreshers_.get(c)};
var U9b=function(){},oSa=function(a,b){this.cache_=a;this.loader_=b};
oSa.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return ef(function(k){if(1==k.nextAddress){e=d=null;try{d=V9b(c,a)}catch(D){e=D}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));Ut(k,3);return ff(k,W9b(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,u=e;u=void 0===u?null:u;var y=(new zq).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceId());u&&y.setError(iSa(u));return q.call(k,
y)}h=Wt(k);return k.return(Bq(h))})};oSa.prototype.getCachedExperiments=function(a){try{var b=V9b(this,a);if(b){var c=(new zq).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&W9b(this,a).catch(U9b);return c}W9b(this,a).catch(U9b);return Bq()}catch(d){return Bq(d)}};
var V9b=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof yq)throw d;throw new yq(3);}},W9b=function(a,b){var c,d;return ef(function(e){if(1==e.nextAddress)return Ut(e,2),b.hasInstanceId()||b.setInstanceId(wq()),ff(e,P9b(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Wt(e);if(d instanceof yq)throw d;throw new yq(2);})};
var kSa;
var X9b=function(a){this.clientConfig_=a;this.worker_=qSa(this.clientConfig_)};X9b.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};
var gr=function(){this.peopleApiEnv_=4};gr.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};gr.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
var Y9b=function(a,b){this.client_=a;this.request_=b;this.response_=null};Y9b.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};Y9b.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};
var er=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=449361830};er.prototype.prefetch=function(a){var b=new g0(this.clientConfig_,new gr);a=Z9b(this,a,"");qSa(b).updateExperimentsCache(a,2)};er.prototype.loadExperiments=function(a,b,c){var d=new g0(this.clientConfig_,b),e=Z9b(this,a,c);qSa(d).updateExperimentsCache(e,2);b=new X9b(new g0(this.clientConfig_,b));a=Z9b(this,a,c);return new Y9b(b,a)};
var Z9b=function(a,b,c){var d=(new e0).setVersion(a.version_);b=(new f0).setApplication(b);return(new q9b).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};
var Eq=new hr(new b0,new m9b);
var tSa=KU.getInstance();
var xSa=KU.getInstance();
var n0=function(a){this.delegate=a};g=n0.prototype;g.getAllIds=function(){return this.delegate.getAllIds()};g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.addTag=function(a){this.delegate.addTag(a)};g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};
var $9b=new xi(bQ.WEEKDAY_MONTH_DAY_MEDIUM),a$b=new xi(7);new xi(bQ.WEEKDAY_MONTH_DAY_MEDIUM);
var b$b=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);
var c$b=function(a){var b=a.altText,c=a.iconUrl,d=a.persistentText,e=a.styleClass;a=Lq;e='<div class="'+Mq("peoplekitComponentsTagTag")+" "+(e?Mq(e):"")+'" peoplekit-id="'+Mq("mQXP")+'">';if(c){var f='<img class="'+Mq("peoplekitComponentsTagIcon")+'" src="';sU(c,lWb)||sU(c,mWb)?c=wU(c):c instanceof hh?c=wU(ih(c)):c instanceof vh?c=wU(rh(c)):c instanceof Vy?c=wU(yh(c)):c instanceof xh?c=wU(Nja(c)):(c=String(c),c=MWb.test(c)?c.replace(GWb,HWb):"about:invalid#zSoyz");b=f+Mq(c)+'" alt="'+Mq(b)+'"><div'+
(d?"":' class="'+Mq("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Mq("peoplekitComponentsTagText")+'">'+tU(b)+"</div></div>"}else b='<div class="'+Mq("peoplekitComponentsTagText")+'">'+tU(b)+"</div>";return a(e+b+"</div>")};
var zSa=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;d$b(this,{tags:d});WRa(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){d$b(h,k)})};g=zSa.prototype;g.getAllIds=function(){return[]};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.getRoot=function(){return this.root};
g.getSelection=function(){throw Error("Ee");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=rq(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("De");a=a.getCurrentStatusEndTime();var c=new Date(Date.now());a=c.getYear()===a.getYear()&&c.getMonth()===a.getMonth()&&c.getDate()===a.getDate()?"Out of office - back at "+a$b.format(a):"Out of office - back on "+$9b.format(a);ED(b,String(a));this.root.classList.add("isOutOfOffice")}else ED(b,""),this.root.classList.remove("isOutOfOffice")}};
g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:b$b.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=rq(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=ep(c$b,Object.assign({},a,{styleClass:c}));b.appendChild(a)};
g.setMetaIcon=function(a){var b=Array.from(this.root.querySelectorAll('[peoplekit-id="SC3Htd"]'))[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var d$b=function(a,b){for(var c=r(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};zSa.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};
var e$b=function(a,b,c,d){this.loggingToken=d;(new Z7b(a)).setDisplayName(b).forceDisplayNameOverride_=c};e$b.prototype.getLoggingToken=function(){return this.loggingToken};
var o0=function(a){this.delegate_=a};g=o0.prototype;g.getDelegate=function(){return this.delegate_};g.getResultType=function(){return this.delegate_.getResultType()};g.getTargetList=function(){return this.delegate_.getTargetList()};g.getMemberList=function(){return this.delegate_.getMemberList()};g.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};g.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};g.getDisplayName=function(){return this.delegate_.getDisplayName()};
g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};g.getMatchInfo=function(){return this.delegate_.getMatchInfo()};
var Hq=function(a){this.delegate_=a};U(Hq,o0);g=Hq.prototype;g.getPrimaryTarget=function(){return this.getTargetList()[0]};g.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};g.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};g.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
g.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};
var f$b=function(){};f$b.prototype.getDisplayNameMatches=function(){return[]};f$b.prototype.getDisplayValueMatches=function(){return[]};f$b.prototype.getGivenNameMatches=function(){return[]};var g$b=new f$b;
var ASa=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=ASa.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return this.targets_};g.getMemberList=function(){return[]};g.getTotalMemberCount=function(){return this.memberCount_};g.getPrimaryTarget=function(){throw Error("Fe");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return g$b};
var h$b=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],[15,4],[16,4],[17,1],[18,7],[19,7]]);
var Or=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=Or.prototype;g.getUrl=function(){return this.url_};g.setUrl=function(a){this.url_=a||"";return this};g.getType=function(){return this.type_};g.setType=function(a){this.type_=a;return this};g.getSourceType=function(){return this.sourceType_};g.setSourceType=function(a){this.sourceType_=a||0;return this};g.getGlyph=function(){return this.glyph_};g.setGlyph=function(a){this.glyph_=a||"";return this};
var i$b=(new Or).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),j$b=new Or;
var k$b=function(a){this.id_=a;this.value_=this.id_.originalValue_;this.description_="";this.name_=null;this.photo_=Jq(this.id_)?j$b:i$b;this.tags_=[];this.sourceIds_=y8b.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(new sr(3,this.id_.originalValue_));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=h$b.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=k$b.prototype;g.getId=function(){return this.id_};g.getTargetType=function(){return this.id_.getType()};g.getValue=function(){return this.value_};g.setValue=function(a){this.value_=(a||"").trim();return this};g.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return a&&a.getValue()||"";case 1:case 2:case 6:case 7:return this.getValue();default:return""}};g.getName=function(){return this.name_};g.setName=function(a){this.name_=a;return this};
g.getDescription=function(){return this.description_};g.setDescription=function(a){this.description_=a||"";return this};g.getPhoto=function(){return this.photo_};g.setPhoto=function(a){a&&a.getUrl()&&1!==a.getType()?this.photo_=a:this.photo_=Jq(this.id_)?j$b:i$b};g.getSourceIdList=function(){return this.sourceIds_};g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return 3===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};
g.getContactId=function(){return this.getSourceIdList().filter(function(a){return 4===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};g.getLoggingToken=function(){return new Vr};var zUa=function(a,b){a.isMe_=b;return a};g=k$b.prototype;g.getIsPersonalResult=function(){return 1===this.dataSource_};g.getDataSource=function(){return this.dataSource_};g.setDataSource=function(a){this.dataSource_=a;return this};g.getResultType=function(){return this.resultType_};
g.getFieldLoggingId=function(){return this.fieldLoggingId_};g.setFieldLoggingId=function(a){this.fieldLoggingId_=a||""};g.getPersonLoggingId=function(){return this.personLoggingId_};g.setPersonLoggingId=function(a){this.personLoggingId_=a||""};g.getOrgState=function(){return this.orgState_};g.getOriginatingField=function(){return this.originatingField_};var Pr=function(a,b){a.originatingField_=b;return a},Qr=function(a){return new k$b(a)};
var l$b=function(){this.internalId=wr;this.displayNameOverride="";this.forceDisplayNameOverride=!1;var a=Qr(this.internalId).setDataSource(3);this.internalResult=new Hq(Iq(0,[a]));this.internalSelectionToken=new e$b(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=l$b.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};
g.isPlaceholder=function(){return!0};
var Nq=function(a,b,c,d,e){this.delegate=Gq(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new l$b};U(Nq,n0);Nq.prototype.getAllIds=function(){return[this.id]};Nq.prototype.getSelection=function(){return this.selection};
var m$b=function(a,b,c,d,e,f,h){c=void 0===c?"":c;d=void 0===d?!1:d;return Lq('<div role="option" class="'+Mq("peoplekitComponentsResultlistitemResultListItem")+" "+Mq(c)+'" id="'+Mq(a)+'" peoplekit-id="'+Mq(a)+'" aria-disabled="'+Mq(d)+'" aria-selected="false"><div class="'+Mq("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Mq("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Mq(b)+'">'+tU(e)+'</div><div class="'+Mq("peoplekitComponentsResultlistitemCenter")+
'">'+tU(f)+'</div><div class="'+Mq("peoplekitComponentsResultlistitemRight")+'">'+tU(h)+'</div></div><div peoplekit-id="'+Mq("Z306Oe")+'" class="'+Mq("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},n$b=function(a,b,c,d){return Lq('<div class="'+Mq("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Mq("peoplekitComponentsResultlistitemLabel")+" "+Mq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Mq("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+
Mq(b)+'" translate="no">'+tU(xWb(a))+'</div><div peoplekit-id="'+Mq("x00ATb")+'" class="'+Mq("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Mq("peoplekitComponentsResultlistitemSublabel")+" "+Mq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Mq("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Mq(b)+'"'+(d?"":' translate="no"')+">"+tU(xWb(c))+"</div></div>":"")+"</div>")},o$b=function(a){return Lq('<div class="'+Mq("peoplekitComponentsResultlistitemAvatar")+
'"><div class="'+Mq("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Mq("d6MZcd")+'"></div>'+(a?tU(a):"")+"</div>")},p$b=function(){var a=Lq,b='<div class="'+Mq("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Mq("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=Lq('<svg viewBox="0 0 24 24" class="'+(Mq("peoplekitComponentsResultlistitemWhiteCheckSvg")+'"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'));
return a(o$b(vU(b+c+"</div></div>")))},q$b=function(){return Lq('<img class="'+Mq("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Mq("SC3Htd")+'" alt="" src=""/>')};
var BSa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Lq(m$b(a.id,b,"isDisabled "+a.densityClass,!0,vU(""+o$b()),vU(""+n$b(c,b,d,f)),vU('<div class="'+Mq("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+tU(e)+"</div>")))};
var p0=function(a){this.delegate=a;var b=this;this.eventHandler=new WG(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};U(p0,n0);p0.prototype.onClick=function(){this.toggleSelection()};
var ESa=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Ge");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new e$b(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=ESa.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};
g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.isPlaceholder=function(){return!1};
var r$b=["pk-select","pk-deselect","pk-click","pk-input"],s$b=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);
var q0=function(a,b,c,d,e,f){this.delegate=Gq(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new l$b};U(q0,n0);q0.prototype.getAllIds=function(){return[this.id]};q0.prototype.toggleSelection=function(){for(var a=r(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=FSa(b.value),this.selectionsState.select(b);this.root.dispatchEvent(DSa("pk-select",this.root))};q0.prototype.getSelection=function(){return this.selection};
var t$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Lq(m$b(a.id,b,a.densityClass,void 0,vU(""+o$b()),vU(""+n$b(c,b,d)),vU(""+q$b())))};
var GSa=KU.getInstance();
var x$b=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&u$b(this,this.getSelection());v$b(this.selectionsState,function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))});w$b(this.selectionsState,function(d){return u$b(c,d)})};U(x$b,n0);
x$b.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=DSa("pk-deselect",a)}else a=this.getRoot(),a=DSa("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var u$b=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};
var y$b=function(a,b,c,d,e,f){this.delegate=Gq(a,b,d,e,f,[2]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||FSa(b,b.getDisplayName())};U(y$b,n0);y$b.prototype.getAllIds=function(){return[this.id]};y$b.prototype.getSelection=function(){return this.selection};
var z$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return Lq(m$b(a.id,b,a.densityClass,void 0,vU(""+p$b()),vU(""+n$b(c,b,d)),vU(""+q$b())))};
var A$b=function(a,b,c,d,e,f){this.delegate=Gq(a,b,d,e,f,[]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||FSa(b)};U(A$b,n0);A$b.prototype.getAllIds=function(){return[this.id]};A$b.prototype.getSelection=function(){return this.selection};
var B$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Lq(m$b(a.id,b,a.densityClass,void 0,vU(""+p$b()),vU(""+n$b(c,b,d,e)),vU(""+q$b())))};
var MSa=function(a,b,c,d,e,f){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.results=[];this.intelligentCollection=f.create();a=new H8b(this.results);this.navigatable=new L8b(a)};g=MSa.prototype;g.register=function(a){this.results.push(a);this.navigatable.insert(this.navigatable.size(),[a],!1);this.intelligentCollection.append([a])};
g.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){a:{var c=b.value,d=this.selectionsState,e=this.resultConfig;b=this.appearanceConfig;var f=this.clientConfig,h=wXb(this.list.getRoot()),k=!!d.get(c.getPrimaryTarget().getId());var q=c;var u=e;if(u.getManuallyDisableResultCallback()(q))q=6;else{var y=q.getPrimaryTarget().getId();q=Kq(y)?3:Jq(y)?2:k&&!u.getAllowResultDeselection()?5:1===q.getTargetList().length?1:1<q.getTargetList().length?4:0}switch(q){case 1:case 4:f=c;h=d;c=b;b=sSa(f,
e,vq(c.getDensity()));d=ep(z$b,b);Pq(d,25285,["impression","pk-select","pk-deselect"],[HSa(f.getPrimaryTarget().getLoggingToken())]);q=rq(d,"d6MZcd");k=uq(c.getDensity());c=tq(q,b.photos,k,k,c);b=new y$b(d,f,h,e,b.tags,c);b=new p0(new x$b(b,h));break a;case 5:b=CSa(c,1,e,b,f,h);break a;case 6:b=CSa(c,2,e,b,f,h);break a;case 2:f=ySa(c,e,h,W(f.internal,6,!1),vq(b.getDensity()));h=ep(B$b,f);Pq(h,25285,["impression","pk-select","pk-deselect"],[HSa(c.getPrimaryTarget().getLoggingToken())]);q=rq(h,"d6MZcd");
k=uq(b.getDensity());b=tq(q,f.photos,k,k,b);b=new A$b(h,c,d,e,f.tags,b);b=new p0(new x$b(b,d));break a;case 3:f=ySa(c,e,h,W(f.internal,6,!1),vq(b.getDensity()));h=ep(t$b,f);Pq(h,25285,["impression","pk-select","pk-deselect"],[HSa(c.getPrimaryTarget().getLoggingToken())]);q=rq(h,"d6MZcd");k=uq(b.getDensity());b=tq(q,f.photos,k,k,b);b=new p0(new q0(h,c,d,e,f.tags,b));break a;default:throw Error("He");}}this.list.append(b.getRoot());this.register(b)}};
g.clear=function(){this.list.clear();this.results.length=0;this.navigatable.clear();this.intelligentCollection.clear()};g.reset=function(){this.navigatable.reset()};g.getNavigatable=function(){return this.navigatable};
var ISa=function(a){a=a.header;return Lq('<div peoplekit-id="'+Mq("aittld")+'">'+(0<uU(a).length?'<div class="'+Mq("peoplekitUiResultlistHeader")+'">'+tU(a)+"</div>":"")+'<div peoplekit-id="'+Mq("tjneg")+'"></div></div>')},C$b=function(a){a=a.name;return Lq('<div class="'+Mq("peoplekitUiResultlistGroup")+'">'+tU(a)+"</div>")};
var Rq=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};Rq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.grouping.getGroupId(b);if(c&&!this.renderedGroups.has(c)){var d=this.grouping.getGroupName(c);d&&(d=ep(C$b,{name:d}),this.list.append(d));this.renderedGroups.add(c)}this.delegate.append([b])}};Rq.prototype.clear=function(){this.renderedGroups.clear();this.delegate.clear()};
Rq.prototype.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};Rq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Sq=function(a,b){this.delegate=a;this.interactions=b};Sq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.delegate.append([b]),this.interactions.display(b)};Sq.prototype.clear=function(){this.delegate.clear()};Sq.prototype.reset=function(a){this.delegate.reset(a)};Sq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var jr=function(a){this.label=a};jr.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};jr.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};jr.prototype.reset=function(){};
var kr=function(a){this.label=a};kr.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};kr.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};kr.prototype.reset=function(){};
var D$b=function(a,b){this.ariaParent=a;this.delegate=b};g=D$b.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),VI(this.ariaParent,a)):VI(this.ariaParent,null)};g.prev=function(a){a=this.delegate.prev(a);this.update();return a};g.next=function(a){a=this.delegate.next(a);this.update();return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.clear=function(){this.delegate.clear();this.update()};g.reset=function(){this.delegate.reset();this.update()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};g.remove=function(a,b){this.delegate.remove(a,b);this.update()};g.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};
var E$b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};E$b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};E$b.prototype.preventDefault=function(){this.event.preventDefault()};
var F$b=function(a){this.input=this.navigatable=null;this.navigatePastBeginCallback=a.navigatePastBegin||function(){};this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},{shouldReactToHomeEnd:!1});this.eventHandler=new WG(this)};g=F$b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new E$b(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new E$b(d))});this.eventHandler.listen(this.input,"blur",function(){return c.onBlur()})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case 40:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case 38:this.navigatable.prev(0)||this.navigatePastBeginCallback();a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};g.onBlur=function(){this.reset()};
var G$b=new gD;G$b.altKey=!0;G$b.keyCode=39;
var H$b=function(){$C.call(this)};U(H$b,$C);H$b.prototype.init=function(){};new H$b;
var xTa=function(a,b,c,d,e,f){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.count=0;this.attached=!1;this.navigatable=new D$b(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=new F$b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}});this.eventHandler=new WG(this);qq(this.root,0)};g=xTa.prototype;
g.search=function(a,b,c,d){var e=this;this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.root.classList.add("isLoading");qq(this.root,1);this.count=0;if(a){var f=I$b(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=I$b(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};
g.attach=function(){this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(a){return a.preventDefault()}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();qq(this.root,0)};g.isShown=function(){return!0};g.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.update=function(a,b,c,d){var e=a.getResults();a=a.getMetadata();this.root.classList.remove("isLoading");this.resultList.append(e);this.count+=e.length;b(this.count);0<this.count?(this.attach(),this.root.classList.remove("noResults")):a.getIsLastCallback()&&this.root.classList.add("noResults");a.getIsLastCallback()?qq(this.root,0===a.getCode()?2:3,a.getCode()):qq(this.root,4);(d||this.config.getAutoActivateFirstSuggestion())&&0<this.count&&!this.navigatable.getSpotlitItem()&&this.navigatable.next(0);
c.stop()};g.onKeyDown=function(a){var b=13===a.event.keyCode;if(9===a.event.keyCode&&!a.event.shiftKey||b)if(b=this.navigatable.getActiveItems(),b.length){b=r(b);for(var c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}};g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};
var uTa=function(){var a=Lq,b='<div class="'+Mq("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Mq("yDHfq")+'"><div class="'+Mq("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=vU('<div peoplekit-id="'+Mq("tjneg")+'"></div>');c=Lq('<div tabindex="-1" class="'+Mq("peoplekitComponentsScrollboxScrollbar")+'">'+tU(c)+"</div>");b=b+c+'</div><div class="'+Mq("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c='<div class="'+Mq("peoplekitComponentsCircularprogressCircularProgress")+
(" "+Mq("isActive"))+'" data-loadingmessage="'+Mq("Loading...")+'" data-active="true" dir="ltr"><div class="'+Mq("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Mq("vyyg5")+'">'+tU("Loading...")+'</div><div class="'+Mq("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Mq("peoplekitComponentsCircularprogressColorOne")+" "+Mq("exportColorOne")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Mq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+
" "+Mq("exportCircle")+'"></div></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Mq("peoplekitComponentsCircularprogressColorTwo")+" "+Mq("exportColorTwo")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Mq("peoplekitComponentsCircularprogressColorThree")+" "+Mq("exportColorThree")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Mq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+
" "+Mq("exportCircle")+'"></div></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Mq("peoplekitComponentsCircularprogressColorFour")+" "+Mq("exportColorFour")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div><div class="'+Mq("peoplekitComponentsCircularprogressCircleClipper")+" "+Mq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Mq("peoplekitComponentsCircularprogressCircle")+" "+Mq("exportCircle")+'"></div></div></div></div></div>';c=Lq(c);return a(b+c+"</div></div>")},vTa=function(){return Lq('<div class="'+Mq("peoplekitComponentsAutocompleteInlineNoResultsContainer")+'"></div>')};
var wTa=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Mq("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Mq(a)+'"':"")+'><p class="'+Mq("peoplekitComponentsNoResultsMessageHeader")+'">';b=tU(b?b:"No results");a=a+b+"</p>";if(tWb(c)||tWb(d))a+='<p class="'+Mq("peoplekitComponentsNoResultsMessageExplanation")+'">',c&&(c=tU(c),a=a+c+(d?" ":"")),d&&(a+='<a jsname="'+Mq("viORvd")+'" class="'+Mq("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Mq(IWb(d))+'">',d=tU(e?e:"Learn more"),a+=d,a+="</a>"),a+="</p>";a+="</div>";return Lq(a)};
var J$b=Object.freeze(new Wq(NaN,NaN)),K$b=Object.freeze(new EU(NaN,NaN,NaN,NaN)),$q=function(a,b,c){this.root=a;this.requestHide=b;this.lastPosition=J$b;this.lastBounds=K$b;this.anchorUpdateTimer=new MD(15);this.options=Object.assign({},{moveAboveAnchorIfOffscreen:!0},c);this.eventHandler=new WG(this);this.attach()};$q.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return L$b(a)})};$q.prototype.isShown=function(){return"none"!=this.root.style.display};
$q.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};$q.prototype.show=function(a){this.anchor=a;this.lastPosition=J$b;this.lastBounds=K$b;IU(this.root,!0);L$b(this);this.anchorUpdateTimer.start()};
var L$b=function(a){var b;if((b=a.anchor)&&!(b=!a.lastPosition.equals(HU(a.anchor)))){b=a.lastBounds;var c=Tq(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}if(b)if(c=a.anchor,b=Tq(c),(c=Uq(c))&&b.intersection(QSa(c))){var d=a.anchor;b=a.root;c=a.options.moveAboveAnchorIfOffscreen;Zq(b,"","");b.style.height=GU("",!0);var e=TSa(d,9,b,8,c);d=TSa(d,8,b,9,c);e.height>=d.height||!c?WSa(b,e):WSa(b,d);a.lastPosition=HU(a.anchor);a.lastBounds=Tq(a.root)}else a.requestHide()};
$q.prototype.hide=function(){this.root.style.cssText="";IU(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=J$b;this.lastBounds=K$b};
var yTa=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=XSa(this.root,function(){f.hide()},{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=new WG(this);this.attach()};g=yTa.prototype;
g.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};g.attach=function(){var a=this;w$b(this.selectionsState,function(){return a.onSelect()});M$b(this.selectionsState,function(){return a.onSelect()});this.eventHandler.listen(this.root,"mouseover",function(b){100>Date.now()-a.lastShowTime&&(b.preventDefault(),b.stopPropagation())})};g.onSelect=function(){this.hide()};
g.onKeyDown=function(a){this.isShown()&&27===a.event.keyCode&&(this.hide(),a.preventDefault(),a.stopPropagation())};g.detach=function(){this.hide()};g.isShown=function(){return this.popup.isShown()};g.dispose=function(){this.detach();this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};g.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};g.getRoot=function(){return this.root};
g.update=function(a){a&&this.show()};
g.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("Ae`"+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("Ae`"+c);}}this.root.style.width=GU(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("Ae`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.root.style.minHeight=a+"px";this.popup.show(this.anchor)};g.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};
var tTa=function(){return Lq('<div class="'+Mq("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Mq("noeiCf")+'" style="display: none;"></div>')};
var N$b=function(a){this.resolveComponents=a;this.batches=new Map};N$b.prototype.add=function(a){for(var b=r(this.resolveComponents(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getSupportedIntelligenceFeatures().sort().join("-");this.batches.has(d)||this.batches.set(d,{ids:[],features:c.getSupportedIntelligenceFeatures()});this.batches.get(d).ids.push(a)}};
var YSa=function(a,b){this.service=a;this.resolveComponents=b};
YSa.prototype.update=function(a){var b=this;a=r([].concat(v(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=r(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){O$b(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){O$b(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var O$b=function(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=r(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};
var P$b=new Set([1,3,20]),Q$b=function(a){var b=this;this.idToComponent=new Map;this.updater=ZSa(a,function(c){return b.resolveComponents(c)})};g=Q$b.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return P$b.has(h.getType())})});a=[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=r(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
g.remove=function(a){var b={};a=r(a);for(var c=a.next();!c.done;b={$jscomp$loop$prop$component$1725:b.$jscomp$loop$prop$component$1725},c=a.next()){b.$jscomp$loop$prop$component$1725=c.value;c=r(b.$jscomp$loop$prop$component$1725.getAllIds());for(var d=c.next();!d.done;d=c.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(h){return h!==f.$jscomp$loop$prop$component$1725}}(b)))}}};
g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};g.refresh=function(a){var b=this,c=new N$b(function(e){return b.resolveComponents(e)});a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);this.updater.update(c)};g.clear=function(){this.idToComponent.clear()};
var r0=function(){};r0.prototype.append=function(){};r0.prototype.remove=function(){};r0.prototype.refresh=function(){};r0.prototype.clear=function(){};
var sTa=function(a){this.peopleIntelligence=a};sTa.prototype.create=function(){return this.peopleIntelligence?new Q$b(this.peopleIntelligence):new r0};
var nTa=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);
var R$b=function(){this.label="";this.type=0};g=R$b.prototype;g.getAutocompleteGroupingType=function(){return this.type};g.setAutocompleteGroupingType=function(a){this.type=a};g.getAutocompleteGroupingLabel=function(){return this.label};g.setAutocompleteGroupingLabel=function(a){this.label=a};g.getAutocompleteCustomGrouping=function(){return this.customGrouping};
var S$b=function(){this.decorationConfigRequest=function(){};this.manuallyDisableResultCallback=function(){return!1}};g=S$b.prototype;g.getAllowResultDeselection=function(){return!1};g.getWarnForExternalSelections=function(){return!1};g.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g.getManuallyDisableResultCallback=function(){return this.manuallyDisableResultCallback};g.getShouldHideSuggestionSublabels=function(){return!1};
var T$b=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.environmentConfig=a;this.grouping=new R$b;this.result=new S$b;this.appearance=new sq};g=T$b.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.header};g.setAutocompleteHeader=function(a){this.header=a};g.getShowSuggestions=function(){return this.showSuggestions};
g.setShowSuggestions=function(a){this.showSuggestions=a};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};g.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};
g.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getNoResultsMessage=function(){return null};g.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};
g.getManuallyDisableResultCallback=function(){return this.result.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.result.getShouldHideSuggestionSublabels()};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};g.setTheme=function(a){this.appearance.setTheme(a)};
var U$b=function(a){this.environmentConfig=a;this.autocomplete=new T$b(a)};g=U$b.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};g.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
g.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getManuallyDisableResultCallback=function(){return this.autocomplete.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.autocomplete.getShouldHideSuggestionSublabels()};g.getDensity=function(){return this.autocomplete.getDensity()};
g.setDensity=function(a){this.autocomplete.setDensity(a)};g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};
var V$b=Object.freeze(new Map([[5,1]]));
var s0=function(){this.entryPoint_=0};s0.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};s0.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};s0.prototype.serialize=function(){return[this.entryPoint_].toString()};var W$b=Object.freeze(new s0);
var t0=function(){this.originator_=0};t0.prototype.setOriginator=function(a){this.originator_=a;return this};t0.prototype.getOriginator=function(){return this.originator_};
var oTa=function(a,b,c){var d=this;this.reporter=a.getReporter((new s0).setPeoplekitEntryPoint(c));w$b(b,function(e,f,h){d.select(e,h)});v$b(b,function(e,f,h){d.deselect(e,h)});X$b(b,function(e,f,h,k){d.replace(e,k)})};g=oTa.prototype;g.display=function(a){this.reporter.reportDisplay($Sa(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(ar([a]),(new t0).setOriginator(V$b.get(b)||0));break;case 6:this.reporter.reportExternalSelect(ar([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(ar([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(ar(a))};g.save=function(a){this.reporter.reportSave(ar(a))};g.send=function(a){this.reporter.reportSend(ar(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};
var Y$b=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};Y$b.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=ND(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};Y$b.prototype.cancel=function(){OD(this.timerId);this.isBatchingInternal=!1};
var FTa=function(a,b,c,d,e){var f=this;this.autocomplete=a;this.selectionsState=b;this.interactions=c;this.tracker=d;this.config=e;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new Y$b;w$b(this.selectionsState,function(){Z$b(f)})};g=FTa.prototype;g.search=function(a,b){this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){0<d&&!c&&(c=!0)})};g.isShown=function(){return this.autocomplete.isShown()};
g.report=function(a){var b=void 0===b?[]:b;var c=this.interactions;b=b.length?b:this.selectionsState.selectionsState.slice();switch(a){case 1:c.reporter.reportProceed(ar(b));break;case 2:c.dismiss(b);break;case 3:c.save(b);break;case 4:c.send(b)}};g.cancel=function(){this.autocomplete.detach()};g.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.autocomplete.dispose()};
var $$b=function(a,b){a.selectionChangedListeners.push(b)},Z$b=function(a){a.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.selectionsState.slice(),c=r(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};
var u0=function(a){Z.call(this,a)};U(u0,Z);u0.prototype.getVersion=function(){return Y(this,1,1)};u0.prototype.setVersion=function(a){return l(this,1,a)};u0.prototype.toObject=function(){return aac(this)};var aac=function(a){if(null!=a)return{version:Y(a,1,1)}};
var bac=function(a){Z.call(this,a)};U(bac,Z);g=bac.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,5)};g.setEntryPoint=function(a){return l(this,5,a)};g.getSocialClient=function(){return m(this,NT,2)};g.setSocialClient=function(a){return Db(this,2,a)};g.setVersionName=function(a){return l(this,3,a)};g.getBaselineCl=function(){return p(this,4)};g.setBaselineCl=function(a){return l(this,4,a)};
g.hasBaselineCl=function(){return gj(this,4)};g.getComponentFlow=function(){return p(this,7)};g.setComponentFlow=function(a){return l(this,7,a)};g.toObject=function(){return cac(this)};var cac=function(a){if(null!=a)return{clientId:n(p(a,1)),entryPoint:n(p(a,5)),socialClient:oTb(a.getSocialClient()),versionName:n(p(a,3)),baselineCl:n(p(a,4)),componentFlow:n(p(a,7)),androidClientInfo:aac(m(a,u0,6))}};
var dac=function(a){Z.call(this,a)};U(dac,Z);dac.prototype.toObject=function(){return eac(this)};var eac=function(a){if(null!=a)return{imageType:n(p(a,1)),imageDataCached:n(p(a,2))}};
var fac=function(a){Z.call(this,a)};U(fac,Z);fac.prototype.toObject=function(){return gac(this)};var gac=function(a){if(null!=a)return{avatarMetadata:eac(m(a,dac,1))}};
var hac=function(a){Z.call(this,a)};U(hac,Z);g=hac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return iac(this)};var iac=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var jac=function(a){Z.call(this,a)};U(jac,Z);g=jac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getValue=function(){return hj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.toObject=function(){return kac(this)};var kac=function(a){if(null!=a)return{label:n(p(a,1)),value:hj(a,2,1)}};
var lac=function(a){Z.call(this,a)};U(lac,Z);g=lac.prototype;g.setLatencyUsec=function(a){l(this,2,a)};g.getQueryLength=function(){return p(this,3)};g.setQueryLength=function(a){return l(this,3,a)};g.hasQueryLength=function(){return gj(this,3)};g.toObject=function(){return mac(this)};
var mac=function(a){if(null!=a)return{resultCount:n(p(a,1)),latencyUsec:n(p(a,2)),queryLength:n(p(a,3)),isContactsPermissionsGranted:n(Xo(a,4)),isShowDeviceContactsDisplayed:n(Xo(a,5)),memoryAllocatedDelta:n(p(a,6)),inAppResultCount:n(p(a,7))}};
var nac=function(a){Z.call(this,a)};U(nac,Z);g=nac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return oac(this)};var oac=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var pac=function(a){Z.call(this,a)};U(pac,Z);g=pac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.setLatencyUsec=function(a){l(this,2,a)};g.getCacheStatus=function(){return p(this,3)};g.setCacheStatus=function(a){return l(this,3,a)};g.toObject=function(){return qac(this)};var qac=function(a){if(null!=a)return{label:n(p(a,1)),latencyUsec:n(p(a,2)),cacheStatus:n(p(a,3))}};
var v0=function(a){Z.call(this,a)};U(v0,Z);v0.prototype.getInterfaceType=function(){return p(this,1)};v0.prototype.setInterfaceType=function(a){return l(this,1,a)};v0.prototype.toObject=function(){return rac(this)};var rac=function(a){if(null!=a)return{interfaceType:n(p(a,1)),dataSourceType:n(p(a,2)),entryIndex:n(p(a,3))}};
var sac=function(a){Z.call(this,a)};U(sac,Z);sac.prototype.toObject=function(){return tac(this)};var tac=function(a){if(null!=a)return{suggestionsLoaded:n(Xo(a,1)),closeType:n(p(a,2))}};
var w0=function(a){Z.call(this,a)};U(w0,Z);w0.prototype.getEventType=function(){return p(this,1)};w0.prototype.setEventType=function(a){return l(this,1,a)};w0.prototype.setLatencyUsec=function(a){l(this,2,a)};w0.prototype.toObject=function(){return uac(this)};var uac=function(a){if(null!=a)return{eventType:n(p(a,1)),latencyUsec:n(p(a,2)),entityCount:n(p(a,3)),memoryAllocatedDelta:n(p(a,4)),animationFps:n(p(a,5)),timeToActionMillis:n(p(a,6)),completionMetadata:tac(m(a,sac,7))}};
var vac=function(a){Z.call(this,a)};U(vac,Z);g=vac.prototype;g.getCount=function(){return m(this,jac,3)};g.setCount=function(a){Db(this,3,a)};g.getLatency=function(){return m(this,pac,4)};g.setLatency=function(a){return Db(this,4,a)};g.getError=function(){return m(this,nac,5)};g.setError=function(a){Db(this,5,a)};g.hasError=function(){return oj(this,5)};g.toObject=function(){return wac(this)};
var wac=function(a){if(null!=a)return{entryType:n(p(a,1)),sharedDimension:rac(m(a,v0,2)),count:kac(a.getCount()),latency:qac(a.getLatency()),peoplekitError:iac(m(a,hac,8)),error:oac(a.getError()),dataDisplay:mac(m(a,lac,6)),userEvent:uac(m(a,w0,7))}};
var x0=function(a){Z.call(this,a,-1,xac)};U(x0,Z);x0.prototype.setElementIndex=function(a){l(this,2,a)};x0.prototype.setCardinalDirection=function(a){l(this,7,a)};var xac=[3];x0.prototype.toObject=function(){return yac(this)};var yac=function(a){if(null!=a)return{elementId:n(p(a,1)),elementIndex:n(p(a,2)),pathToRootElementIdList:n(lb(a,3)),userAction:n(p(a,4)),cardinalDirection:n(p(a,7))}};
var zac=function(a){Z.call(this,a)};U(zac,Z);zac.prototype.toObject=function(){return Aac(this)};var Aac=function(a){if(null!=a)return{ancestryVisualElement:yac(m(a,x0,1)),intentClassName:n(p(a,2)),firstInFlow:n(Xo(a,3)),userInterfaceStyle:Y(a,4,0)}};
var Bac=function(a){Z.call(this,a)};U(Bac,Z);g=Bac.prototype;g.getClientInterface=function(){return m(this,bac,3)};g.setClientInterface=function(a){return Db(this,3,a)};g.getMetadata=function(){return m(this,fac,4)};g.setMetadata=function(a){Db(this,4,a)};g.toObject=function(){var a=null!=this?{visualElementEntry:Aac(m(this,zac,1)),metricsDataEntry:wac(m(this,vac,2)),clientInterface:cac(this.getClientInterface()),metadata:gac(this.getMetadata())}:void 0;return a};
var pTa=function(a){this.logContext=es(fs(new gs,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplication()).setEnvironment(0).setVersion("1.0").setBaselineCl(449361830).setEnableClearcut(a.getEnableClearcut()),Eq.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=pTa.prototype;g.getLogContext=function(){return this.logContext};g.createCountMetric=function(){throw Error("Va");};g.createStatusMetric=function(){throw Error("Va");};
g.createLatencyMetric=function(a,b){b=b.source();a=(new Bac).setClientInterface((new bac).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersion()).setBaselineCl(this.getLogContext().getBaselineCl()).setComponentFlow(this.componentFlow));return Db(a,2,b)};g.createErrorMetric=function(){throw Error("Va");};
var Cac=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new vac;a=l(a,1,4);var c=new v0;b=l(c,2,2).setInterfaceType(b);this.dataEntry=Db(a,2,b).setLatency((new pac).setLabel(8));this.state=new eU(this.dataEntry)};Cac.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
Cac.prototype.stop=function(a){a=void 0===a?function(){}:a;this.metrics.stop(this.state,this.label);var b=this.state.durationUsec(this.label),c;null==(c=this.dataEntry.getLatency())||c.setLatencyUsec(b);a(b);var d;null!=(d=m(this.dataEntry,v0,2))&&l(d,3,this.count);this.metrics.latency(this.state);++this.count};
var rTa=function(a,b){this.metrics=a;this.userInterfaceType=b};
var qTa=function(a){this.trackers=a},I$b=function(a){a=a.trackers;return new Cac(a.metrics,a.userInterfaceType)};
var ir=function(){this.selectionCallbacks=[];this.deselectionCallbacks=[];this.selectionReplacedCallbacks=[];this.selectionAttemptedCallbacks=[];this.selectionsState=[]};
ir.prototype.select=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?0:c;var d=String(a.id());if(this.selectionsState.find(function(e){return d===String(e.id())}))return br(a,b,c,this.selectionAttemptedCallbacks),!1;0<=b?(this.selectionsState.splice(b,0,a),br(a,b,c,this.selectionCallbacks)):(this.selectionsState.push(a),br(a,this.selectionsState.length-1,c,this.selectionCallbacks));return!0};
ir.prototype.deselect=function(a,b){b=void 0===b?0:b;var c=String(a.id()),d=this.selectionsState.findIndex(function(e){return c===String(e.id())});0>d||(this.selectionsState.splice(d,1),br(a,d,b,this.deselectionCallbacks))};ir.prototype.toggle=function(a,b){b=void 0===b?0:b;var c=String(a.id());if(0>this.selectionsState.findIndex(function(d){return c===String(d.id())}))return this.select(a,-1,b),!0;this.deselect(a,b);return!1};
var w$b=function(a,b){a.selectionCallbacks.push(b)},v$b=function(a,b){a.deselectionCallbacks.push(b)},X$b=function(a,b){a.selectionReplacedCallbacks.push(b)},M$b=function(a,b){a.selectionAttemptedCallbacks.push(b)};g=ir.prototype;g.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};g.at=function(a){return this.selectionsState[a]};
g.replace=function(a,b,c){c=void 0===c?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(0>e||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;aTa(b,e,a,c,this.selectionReplacedCallbacks);return!0};g.pop=function(a){a=void 0===a?0:a;var b=this.selectionsState.pop();if(b)return br(b,this.selectionsState.length,a,this.deselectionCallbacks),b};
g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;0<this.selectionsState.length;)this.deselect(this.selectionsState[0])};
var or=function(){};or.prototype.start=function(){};or.prototype.stop=function(){};
var Dac=function(a){this.userAction=a;this.cardinalDirection=void 0};
var nr=function(a){this.visualElementRoot=a;this.syntheticVisualElements=new Map;a=Oq(this.visualElementRoot);this.syntheticRoot=bTa(a);this.syntheticVisualElements.set(a.id,this.syntheticRoot)};
nr.prototype.insert=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Oq(b);if(c&&!this.syntheticVisualElements.has(c.id)){c=this.visualElementRoot;var d=[];if(c.contains(b)){for(;b&&b!==c;)b.hasAttribute("pk-log")&&d.push(b),b=b.parentElement;b&&b.hasAttribute("pk-log")&&d.push(b)}b=d;b.reverse();for(c=1;c<b.length;c++){var e=Oq(b[c]);this.syntheticVisualElements.has(e.id)||(d=bTa(e),this.syntheticVisualElements.set(e.id,d),e=Oq(b[c-1]),this.syntheticVisualElements.get(e.id).appendChild(d))}}}};
nr.prototype.remove=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())if(b=Oq(b.value)){var c=this.syntheticVisualElements.get(b.id);this.syntheticVisualElements.delete(b.id);c&&c.parentElement&&c.parentElement.removeChild(c)}};nr.prototype.getRoot=function(){return this.syntheticRoot};nr.prototype.getElement=function(a){return this.syntheticVisualElements.get(a)};
var CTa=function(a,b){this.syntheticTree=a;this.tracker=b;this.delayedImpression=new mXb(this.impress,15,this)};CTa.prototype.impress=function(){var a=this.tracker,b=this.syntheticTree.getRoot();b=Eac(a.traverser_,b);Fac(a,b,new EU(0,0,0,0))};CTa.prototype.dispose=function(){this.delayedImpression.dispose()};
var DTa=function(a,b){this.root=a;this.visualElementHandler=b;this.eventHandler=new WG(this)};
DTa.prototype.observe=function(){var a=this;this.mutationObserver||(this.mutationObserver=new MutationObserver(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"childList"===c.type){var d=cTa(c.removedNodes);d.length&&a.visualElementHandler.syntheticTree.remove(d);c=cTa(c.addedNodes);c.length&&(d=a.visualElementHandler,d.syntheticTree.insert(c),d.delayedImpression.start())}}),this.mutationObserver.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,
r$b,function(b){b.stopPropagation();var c=a.visualElementHandler,d=b.type;if(b=Oq(b.target))if(b=c.syntheticTree.getElement(b.id),d=s$b.get(d),b&&d&&(c=c.tracker,d=new Dac(d),(b=y0(c.visualElementProvider_,b))&&b.impressionEventID))for(b=c.eventHandler_.interactionEvent(b,d),d=0;d<b.length;++d)c.metadataHandler_.addEventMetadata(b[d]),c.clearcut_&&c.clearcut_.log(b[d])}))};DTa.prototype.dispose=function(){var a;null==(a=this.mutationObserver)||a.disconnect();this.eventHandler.removeAll();this.visualElementHandler.dispose()};
var ETa=function(a){this.visualElementObserver=a};ETa.prototype.start=function(){this.visualElementObserver.observe()};ETa.prototype.stop=function(){this.visualElementObserver.dispose()};
var z0={CLICK:{string:"click",googRequiredXid:"cOuCgd"},GENERIC_CLICK:{string:"generic_click",googRequiredXid:"szJgjc"},IMPRESSION:{string:"impression",googRequiredXid:"xr6bB"},HOVER:{string:"hover",googRequiredXid:"ZmdkE"},KEYPRESS:{string:"keypress",googRequiredXid:"Kr2w4b"},KEYBOARD_ENTER:{string:"keyboard_enter",googRequiredXid:"SYhH9d"}},A0={TRACK:{string:"track",googRequiredXid:"u014N"},INDEX:{string:"index",googRequiredXid:"cQYSPc"},MUTABLE:{string:"mutable",googRequiredXid:"dYFj7e"},TEST_CODE:{string:"tc",
googRequiredXid:"DM6Eze"}},Gac=A0.TRACK.string,Hac=A0.INDEX.string,Iac=A0.MUTABLE.string,Jac=A0.TEST_CODE.string,Kac=z0.IMPRESSION.string,dTa=hTa(z0),Lac=new Map,Mac;for(Mac in z0)Lac.set(z0[Mac].googRequiredXid,z0[Mac].string);var fTa=hTa(A0);
var B0=function(a,b){this.visualElementID_=a;this.xidTagComponents_=b||!1;this.tracks_=new Set;this.index_=null;this.testCodes_=[];this.componentID_=void 0;this.retain_cached_impression_=this.mutable_=!1;this.attribute_=null;this.metadataHandlers_=[]},Nac=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=B0.prototype;g.setIndex=function(a){this.index_=a};g.getIndex=function(){return this.index_};g.setComponentID=function(a){this.componentID_=a};g.getComponentID=function(){return this.componentID_};
g.isMutable=function(){return this.mutable_};g.setAttribute=function(a){this.attribute_=a;return this};g.getAttribute=function(){return this.attribute_};var Oac=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};B0.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?eTa(a):a};B0.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?gTa(a):a};
var Pac=function(a){B0.call(this,a)};U(Pac,B0);
var C0=function(a){Z.call(this,a)};U(C0,Z);C0.prototype.toObject=function(){return Qac(void 0,this)};var Qac=function(a,b){if(null!=b){var c={timeUsec:n(p(b,1)),serverIp:n(p(b,2)),processId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}},Rac=[C0,1,cjb,2,fjb,3,fjb];
var D0=function(a){Z.call(this,a)};U(D0,Z);D0.prototype.toObject=function(){return E0(void 0,this)};var E0=function(a,b){if(null!=b){var c={base:Qac(a,m(b,C0,1)),clientCounter:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Sac=[D0,1,hjb,Rac,2,cjb];
var F0=function(a){Z.call(this,a,-1,Tac)};U(F0,Z);F0.prototype.getOffset=function(){return hj(this,2,0)};F0.prototype.setOffset=function(a){l(this,2,a)};var Tac=[1];F0.prototype.toObject=function(){return Uac(void 0,this)};var Uac=function(a,b){if(null!=b){var c={baseList:n(lb(b,1)),offset:hj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}},Vac=[F0,1,djb,2,Lu];
var G0=function(a){Z.call(this,a)};U(G0,Z);G0.prototype.setVeIndex=function(a){l(this,1,a)};var Wac=function(a,b){l(a,2,b)};G0.prototype.setElementIndex=function(a){l(this,5,a)};G0.prototype.getResultIndex=function(){return hj(this,6,-1)};G0.prototype.setResultIndex=function(a){l(this,6,a)};G0.prototype.toObject=function(){return Xac(void 0,this)};
var Xac=function(a,b){if(null!=b){var c={veIndex:hj(b,1,-1),nonArchivalVeIndex:hj(b,11,-1),veOffsetIdentifier:Uac(a,m(b,F0,15)),veType:n(p(b,2)),odelaySeLinker:n(p(b,8)),elementIndex:hj(b,5,-1),resultIndex:hj(b,6,-1),pageStart:n(p(b,7)),resultGroupElementIndex:hj(b,9,-1),doNotLogUrl:W(b,10,!1),resultFprint:n(p(b,12)),veEventId:E0(a,m(b,D0,13)),youtubeVeCounter:hj(b,14,-1)};a&&(c.$jspbMessageInstance=b);return c}},Yac=[G0,1,Lu,11,Lu,15,hjb,Vac,2,Lu,8,Lu,5,Lu,6,Lu,7,Lu,9,Lu,10,gjb,12,ejb,13,hjb,Sac,
14,Lu];
var H0=function(a,b){this.el_=a;this.veTag_=b;this.loggedImpression_=!1;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};H0.prototype.getTag=function(){return this.veTag_};H0.prototype.getElement=function(){return this.el_};var $ac=function(a){var b=Zac++;a.traversalOrder_=b};H0.prototype.setParent=function(a){this.parent_=a};H0.prototype.getParent=function(){return this.parent_};
var zTa=function(a){Z.call(this,a)};U(zTa,Z);g=zTa.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,2)};g.setEntryPoint=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.setVersionName=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return gj(this,5)};g.getMetadata=function(){return m(this,fac,6)};g.setMetadata=function(a){Db(this,6,a)};g.toObject=function(){var a=null!=this?{clientId:n(p(this,1)),entryPoint:n(p(this,2)),application:n(p(this,3)),versionName:n(p(this,4)),baselineCl:n(p(this,5)),metadata:gac(this.getMetadata())}:void 0;return a};
var BTa=function(a){this.context_=a};BTa.prototype.createNewTag=function(a){return new Pac(a)};BTa.prototype.addEventMetadata=function(a){BE(a,this.context_.serialize())};
var abc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};
var I0=function(){};I0.prototype.impressionEvent=function(){return[]};I0.prototype.interactionEvent=function(){return[]};I0.prototype.visibilityEvent=function(){return[]};
var K0=function(){if(!J0){var a=J0=new C0,b=1E3*Date.now();l(a,1,b);l(J0,2,0);l(J0,3,0)}a=new D0;a=Db(a,1,J0);b=++bbc;return l(a,2,b)},bbc=0,J0=void 0;
var L0=function(a){Z.call(this,a)};U(L0,Z);L0.prototype.toObject=function(){return cbc(this)};var cbc=function(a){if(null!=a)return{rootEventId:E0(void 0,m(a,D0,1))}};
var M0=function(a){Z.call(this,a)};U(M0,Z);M0.prototype.getEvent=function(){return Bl(this,C0,1,dbc)};M0.prototype.setVed=function(a){return ho(this,5,N0,a)};var dbc=[1,3,4],N0=[2,5];M0.prototype.toObject=function(){return O0(void 0,this)};var O0=function(a,b){if(null!=b){var c={event:Qac(a,b.getEvent()),clientEvent:E0(a,Bl(b,D0,3,dbc)),ei:n(Ur(b,4,dbc)),rootVe:Xac(a,Bl(b,G0,2,N0)),ved:n(Ur(b,5,N0))};a&&(c.$jspbMessageInstance=b);return c}};
var P0=function(a){Z.call(this,a)};U(P0,Z);g=P0.prototype;g.getTarget=function(){return m(this,M0,1)};g.setTarget=function(a){return Db(this,1,a)};g.getType=function(){return Y(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return gj(this,2)};g.toObject=function(){return ebc(void 0,this)};
var ebc=function(a,b){if(null!=b){var c={target:O0(a,b.getTarget()),type:Y(b,2,0),cloneTree:O0(a,m(b,M0,3)),sourceTree:O0(a,m(b,M0,5)),graftTimeUsec:n(p(b,4)),dedupe:W(b,6,!1)};a&&(c.$jspbMessageInstance=b);return c}};
var Q0=function(a){Z.call(this,a,-1,fbc)};U(Q0,Z);var fbc=[1];Q0.prototype.toObject=function(){return gbc(this)};var gbc=function(a){if(null!=a)return{graftList:Eb(tb(a,P0,1),ebc)}};
var R0=function(a){Z.call(this,a,1)};U(R0,Z);var hbc={};R0.prototype.toObject=function(){return ibc(this)};var ibc=function(a){if(null!=a){var b={};Fb(a,b,hbc);return b}};
var S0=function(a){Z.call(this,a,-1,jbc)};U(S0,Z);S0.prototype.getOffset=function(){return hj(this,2,0)};S0.prototype.setOffset=function(a){l(this,2,a)};var jbc=[1];S0.prototype.toObject=function(){return kbc(void 0,this)};var kbc=function(a,b){if(null!=b){var c={identifierBaseList:n(lb(b,1)),offset:hj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var T0=function(a){Z.call(this,a)};U(T0,Z);T0.prototype.getEventId=function(){return Bl(this,C0,1,lbc)};T0.prototype.setEventId=function(a){Cu(this,1,lbc,a)};var lbc=[1,2],mbc=[3,6];T0.prototype.toObject=function(){return nbc(void 0,this)};var nbc=function(a,b){if(null!=b){var c={eventId:Qac(a,b.getEventId()),clientEventId:E0(a,Bl(b,D0,2,lbc)),featureIndex:hj(b,sb(b,mbc,3),-1),featureOffsetIdentifier:kbc(a,Bl(b,S0,6,mbc)),featureTreeRefLabel:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var obc=function(a){Z.call(this,a)};U(obc,Z);obc.prototype.toObject=function(){return pbc(void 0,this)};var pbc=function(a,b){if(null!=b){var c={reference:O0(a,m(b,M0,1))};a&&(c.$jspbMessageInstance=b);return c}};
var U0=function(a){Z.call(this,a,233,qbc)};U(U0,Z);U0.prototype.setUiType=function(a){return l(this,1,a)};U0.prototype.setElementIndex=function(a){l(this,3,a)};var rbc=function(a,b){ml(a,4,b)};U0.prototype.getResultIndex=function(){return p(this,7)};U0.prototype.setResultIndex=function(a){l(this,7,a)};U0.prototype.setVisible=function(a){return l(this,6,a)};var sbc={},qbc=[4];U0.prototype.toObject=function(){return tbc(void 0,this)};
var tbc=function(a,b){if(null!=b){var c={uiType:n(p(b,1)),elementIndex:hj(b,3,-1),containsElementsList:n(lb(b,4)),targetUrl:n(p(b,5)),resultIndex:n(p(b,7)),featureTreeRef:nbc(a,m(b,T0,11)),visible:Y(b,6,0),language:n(p(b,17)),adImpressionIndex:hj(b,149,-1),dataElement:pbc(a,m(b,obc,232))};Fb(b,c,sbc,a);a&&(c.$jspbMessageInstance=b);return c}};
var V0=function(a){Z.call(this,a,17,ubc)};U(V0,Z);g=V0.prototype;g.setVed=function(a){return l(this,11,a)};g.setUiType=function(a){return l(this,1,a)};g.setVeIndex=function(a){l(this,2,a)};g.setCardinalDirection=function(a){l(this,4,a)};g.getResultIndex=function(){return hj(this,7,-1)};g.setResultIndex=function(a){l(this,7,a)};g.setElementIndex=function(a){l(this,8,a)};g.getImageUrl=function(){return p(this,9)};var vbc=function(a,b){Cb(a,14,b)},wbc={},ubc=[14];V0.prototype.toObject=function(){return xbc(this)};
var xbc=function(a){if(null!=a){var b={clickTrackingCgi:Xac(void 0,m(a,G0,16)),ved:n(p(a,11)),uiType:hj(a,1,-1),veIndex:hj(a,2,-1),primaryUserAction:n(p(a,3)),cardinalDirection:n(p(a,4)),toggleState:n(p(a,5)),interactionContext:hj(a,6,-1),resultIndex:hj(a,7,-1),elementIndex:hj(a,8,-1),imageUrl:n(p(a,9)),imageReferrerUrl:n(p(a,10)),thumbnailId:n(p(a,12)),referrerId:n(p(a,13)),ancestryList:Eb(tb(a,U0,14),tbc),clientInteractionMetadata:ibc(m(a,R0,15))};Fb(a,b,wbc);return b}};
var W0=function(a){Z.call(this,a,-1,ybc)};U(W0,Z);W0.prototype.getEventId=function(){return m(this,D0,1)};W0.prototype.setEventId=function(a){Db(this,1,a)};var ybc=[2];
W0.prototype.toObject=function(){var a=null!=this?{eventId:E0(void 0,this.getEventId()),visualElementsList:Eb(tb(this,U0,2),tbc),parentEventId:E0(void 0,m(this,D0,3)),ephemeralParentEventId:n(p(this,6)),snapshotParentEventId:E0(void 0,m(this,D0,8)),requestContext:xbc(m(this,V0,4)),graftType:n(p(this,5)),grafts:gbc(m(this,Q0,7)),coreEventMetadata:cbc(m(this,L0,9))}:void 0;return a};
var zbc=function(){};zbc.prototype.createNewTag=function(a){return new B0(a)};zbc.prototype.addEventMetadata=function(){};
var X0=function(a){Z.call(this,a)};U(X0,Z);var Abc=function(a){var b=Date.now().toString();l(a,1,b)};X0.prototype.toObject=function(){return Bbc(void 0,this)};var Bbc=function(a,b){if(null!=b){var c={clientWallClockTimestamp:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Y0=function(a){Z.call(this,a)};U(Y0,Z);Y0.prototype.getTimestamp=function(){return m(this,X0,1)};Y0.prototype.setTimestamp=function(a){return Db(this,1,a)};Y0.prototype.hasTimestamp=function(){return oj(this,1)};Y0.prototype.toObject=function(){return Cbc(void 0,this)};var Cbc=function(a,b){if(null!=b){var c={timestamp:Bbc(a,b.getTimestamp())};a&&(c.$jspbMessageInstance=b);return c}};
var Dbc=Bb(126,{coreInteractionMetadata:0},Y0,Cbc);hbc[126]=Dbc;
var Ebc=Bb(618,{coreVeMetadata:0},Y0,Cbc);sbc[618]=Ebc;
var lr=function(a,b){this.enableAncestryLogging_=void 0===a?!0:a;this.enableBatching_=void 0===b?!1:b};U(lr,I0);lr.prototype.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)a[e].keys().next().value.impressionEventID?d.push(a[e]):c.push(a[e]);a=Fbc(this,c,b);b=this.enableBatching_?Gbc(this,d,b):Hbc(this,d,b);return a.concat(b)};
lr.prototype.interactionEvent=function(a,b){var c=new AE,d=new W0,e=K0();d.setEventId(e);e=new V0;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);vbc(l(e,3,b.userAction),this.getAncestry_(a));b.cardinalDirection&&e.setCardinalDirection(b.cardinalDirection);a.getTag();this.setTimestamp(e);b=new L0;Db(b,1,a.impressionEventID);Db(d,3,a.impressionEventID);Db(d,4,e);Db(d,9,b);JSON.stringify(null,null,1);CE(c,d.serialize());return[c]};
lr.prototype.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],h=f.getElement(),k=f.rootImpressionEventID,q=d.get(k);q=q?q:[];if(f.neverShown||Nac(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new P0;h.setType(1);var u=Ibc(f);h.setTarget(u);u=h;var y=Date.now();l(u,4,y);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new P0,h.setType(2),u=Ibc(f),h.setTarget(u),u=h,y=Date.now(),l(u,4,y),q.push(h),f.hidden=!0);d.set(k,q)}a=r(d.keys());for(b=
a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new Q0,Cb(e,1,f),f=new W0,k=K0(),q=new L0,Db(q,1,b),f.setEventId(k),Db(f,3,b),Db(f,7,e),Db(f,9,q),b=new AE,JSON.stringify(null,null,1),CE(b,f.serialize()),c.push(b));return c};
lr.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");if(a instanceof HTMLElement&&(0>=a.offsetWidth||0>=a.offsetHeight))return!1;a=a.getBoundingClientRect();return(b=oXb(b,new EU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var Fbc=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={$jscomp$loop$prop$impressionEventID$1727:e.$jscomp$loop$prop$impressionEventID$1727,$jscomp$loop$prop$clientVeProto$1728:e.$jscomp$loop$prop$clientVeProto$1728,$jscomp$loop$prop$testCodes$1729:e.$jscomp$loop$prop$testCodes$1729},f--){e.$jscomp$loop$prop$clientVeProto$1728=new W0;e.$jscomp$loop$prop$testCodes$1729=[];e.$jscomp$loop$prop$impressionEventID$1727=K0();e.$jscomp$loop$prop$clientVeProto$1728.setEventId(e.$jscomp$loop$prop$impressionEventID$1727);
var h=new L0;Db(h,1,e.$jscomp$loop$prop$impressionEventID$1727);Db(e.$jscomp$loop$prop$clientVeProto$1728,9,h);if(h=Utb(window.location.href,"ved"))h=(new V0).setVed(h),Db(e.$jscomp$loop$prop$clientVeProto$1728,4,h);b[f].forEach(function(k){return function(q,u){u.impressionEventID=k.$jscomp$loop$prop$impressionEventID$1727;u.rootImpressionEventID=k.$jscomp$loop$prop$impressionEventID$1727;var y=Jbc(u);q.length&&rbc(y,q);q=u.getElement();this.isVisible_(q,c)?(u.neverShown=!1,u.hidden=!1):y.setVisible(1);
this.setTimestamp(y);Du(k.$jscomp$loop$prop$clientVeProto$1728,2,U0,y);k.$jscomp$loop$prop$testCodes$1729=k.$jscomp$loop$prop$testCodes$1729.concat(u.getTag().testCodes_)}}(e),a);h=new AE;JSON.stringify(null,null,1);CE(h,e.$jscomp$loop$prop$clientVeProto$1728.serialize());ml(h,20,e.$jscomp$loop$prop$testCodes$1729);d.push(h)}return d},Gbc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;0<=f;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(u,
y){var D=0,I=[],N=new W0,L=[],S=K0();N.setEventId(S);Db(N,3,y);var X=new L0;Db(X,1,y);Db(N,9,X);for(X=0;X<u.length;X++)for(var ka=u[X],ha=ka.keys(),ra=ha.next().value,Da=ka.get(ra),Ja={},Ba=0;Ba<Da.length;Ja={$jscomp$loop$prop$startingOffset$1731:Ja.$jscomp$loop$prop$startingOffset$1731,$jscomp$loop$prop$cloneTreeRootIndex$1732:Ja.$jscomp$loop$prop$cloneTreeRootIndex$1732},++Ba){var La=ra;Ja.$jscomp$loop$prop$cloneTreeRootIndex$1732=0;Ja.$jscomp$loop$prop$startingOffset$1731=Da[Ba];var hb=ka.size;
Ba!=Da.length-1&&(hb=Da[Ba+1]);for(var fb=Ja.$jscomp$loop$prop$startingOffset$1731;fb<hb;++fb){var Tb=ha.next().value;fb==Ja.$jscomp$loop$prop$startingOffset$1731&&(La=Tb,Ja.$jscomp$loop$prop$cloneTreeRootIndex$1732=D);Tb.impressionEventID=S;Tb.rootImpressionEventID=y;Tb.traversalOrder_=D;var va=ka.get(Tb),Ca=Jbc(Tb);va.length&&rbc(Ca,va.map(function(Ia){return function(Xa){return Xa-Ia.$jscomp$loop$prop$startingOffset$1731+Ia.$jscomp$loop$prop$cloneTreeRootIndex$1732}}(Ja)));va=Tb.getElement();this.isVisible_(va,
c)?(Tb.neverShown=!1,Tb.hidden=!1):Ca.setVisible(1);this.setTimestamp(Ca);Du(N,2,U0,Ca);L=L.concat(Tb.getTag().testCodes_);D++}hb=new P0;hb.setType(3);fb=Ibc(ra);hb.setTarget(fb);fb=new M0;Tb=new G0;Tb.setVeIndex(La.traversalOrder_);Wac(Tb,La.getTag().visualElementID_);Cu(fb,2,N0,Tb);Db(hb,3,fb);I.push(hb)}I.length&&(u=new Q0,Cb(u,1,I),Db(N,7,u));I=new AE;JSON.stringify(null,null,1);CE(I,N.serialize());ml(I,20,L);d.push(I)},a);return d},Hbc=function(a,b,c){for(var d=[],e=b.length-1;0<=e;e--)for(var f=
b[e],h=f.keys(),k=h.next().value,q=f.get(k),u={},y=0;y<q.length;u={$jscomp$loop$prop$startingOffset$1734:u.$jscomp$loop$prop$startingOffset$1734},++y){u.$jscomp$loop$prop$startingOffset$1734=q[y];var D=f.size;y!=q.length-1&&(D=q[y+1]);var I=new W0,N=[],L=K0(),S=new L0;Db(S,1,k.impressionEventID);I.setEventId(L);Db(I,3,k.impressionEventID);l(I,5,3);Db(I,9,S);S=new V0;k.serverVed_?S.setVed(k.serverVed_):S.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);vbc(S,a.getAncestry_(k));
Db(I,4,S);for(S=u.$jscomp$loop$prop$startingOffset$1734;S<D;++S){var X=h.next().value;X.impressionEventID=L;X.rootImpressionEventID=k.rootImpressionEventID;void 0!=X.traversalOrder_&&(X.traversalOrder_-=u.$jscomp$loop$prop$startingOffset$1734);var ka=f.get(X),ha=Jbc(X);ka.length&&rbc(ha,ka.map(function(ra){return function(Da){return Da-ra.$jscomp$loop$prop$startingOffset$1734}}(u)));ka=X.getElement();a.isVisible_(ka,c)?(X.neverShown=!1,X.hidden=!1):ha.setVisible(1);a.setTimestamp(ha);Du(I,2,U0,ha);
N=N.concat(X.getTag().testCodes_)}D=new AE;JSON.stringify(null,null,1);CE(D,I.serialize());ml(D,20,N);d.push(D)}return d};lr.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=Jbc(a);b.unshift(d);c.add(a);a=a.getParent()}return b};
var Jbc=function(a){var b=(new U0).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());Oac(a.getTag(),b);return b},Ibc=function(a){var b=new M0;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new G0;Cu(b,3,dbc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);Wac(c,a.getTag().visualElementID_);Cu(b,2,N0,c)}return b};
lr.prototype.setTimestamp=function(a){if(a instanceof V0&&(!m(a,R0,15)||!m(a,R0,15).getExtension(Dbc))){var b=new Y0,c=new X0,d=m(a,R0,15);d||(d=new R0);Abc(c);b.setTimestamp(c);Dbc.setExtensionFn(d,b);Db(a,15,d)}a instanceof U0&&(b=new Y0,c=new X0,Abc(c),b.setTimestamp(c),Ebc.setExtensionFn(a,b))};
/*

 Copyright 2011 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
var Kbc=1;
(function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;++b)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"];if(!window.requestAnimationFrame){var c=0;window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-c));c=e+f;return window.setTimeout(function(){d(e+f)},f)};window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})}})();var Lbc=function(){},Mbc=[[],[]],Nbc=0,Obc=!1,Pbc=null,Qbc=0,Rbc=0,Sbc=0,Z0=0,Tbc=0,a1=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.context_=a;this.state_ctor_=Lbc};a1.prototype.measure=function(a){this.measure_=a;return this};a1.prototype.mutate=function(a){this.mutate_=a;return this};a1.prototype.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
a1.prototype.build=function(){return Ubc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var Ubc=function(a,b){var c=Tbc++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var h=0!==f.phase;h&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);h&&(h=Nbc,!a.runInCurrentFrameIfPossible||0==Z0||a.measure&&1!=Z0||(h=(h+1)%2),Mbc[h].push(f));return Vbc()}},Wbc=function(a,b){Obc=!1;var c={};Z0=
1;for(var d=0;d<a.length;++d){var e=a[d];e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(f){c[d]=!0,db(f)}}}Z0=2;for(d=0;d<a.length;++d)if(e=a[d],e.args[e.args.length-1]&&(e.args[e.args.length-1].now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(f){db(f)}}0<Qbc&&1<b&&(a=b-Qbc,500>a&&(Kbc++,100<a&&Rbc++,Sbc<a&&(Sbc=a)));Qbc=Obc&&1<b?b:0},Vbc=function(){Obc||(Obc=!0,Pbc=new Promise(function(a){window.requestAnimationFrame(function(b){var c=
Mbc[Nbc];Nbc=(Nbc+1)%2;try{Wbc(c,b)}finally{Z0=0,c.length=0}a()})}));return Pbc};
var Xbc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},y0=function(a,b){var c=b.__ve||null,d;!(d=c&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||Zi(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=Ybc(a,d);if(!d||d.getComponentID()&&d.getComponentID()!=a.componentID_)return null;a=new H0(b,d);c&&c.getTag().retain_cached_impression_&&c.loggedImpression_&&(a.loggedImpression_=
!0);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||"0"!=c.charAt(0)&&"2"!=c.charAt(0))var e=null;else{c=c.substring(1);try{b:{if(Ju.length){var f=Ju.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new ajb(c);try{var k=Waa(Yac);var q=Xaa(new k.ctor,h,k);break b}finally{h.free()}q=void 0}e=m(q,D0,13)}catch(u){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.__ve=a},Ybc=function(a,b){if(Zi(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(!Zi(f)){var h=brb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(Zi(f)||Zi(h))return null;switch(f){case a.maybeXidPartLabel_(Gac):f=h.split(",");for(h=0;h<f.length;++h){var k=f[h].trim();if(a.expectXidTagComponents_){if(!d.xidTagComponents_)throw Error("Le");if(!Lac.has(k))throw Error("Me`"+k);d.tracks_.add(k)}else d.tracks_.add(d.maybeXidEventLabel_(k))}break;case a.maybeXidPartLabel_(Hac):d.setIndex(Number(h));
break;case a.maybeXidPartLabel_(Jac):f=h.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(h);break;case a.maybeXidPartLabel_(Iac):"true"==h?d.mutable_=!0:"rci"==h&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};Xbc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?gTa(a):a};Xbc.prototype.setComponentID=function(a){this.componentID_=a};Xbc.prototype.getComponentID=function(){return this.componentID_};
var Zbc=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},Eac=function(a,b){return $bc(a,b).filter(function(c){return null!=y0(this.visualElementProvider_,c)},a)},acc=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={$jscomp$loop$prop$parent$1736:e.$jscomp$loop$prop$parent$1736},++f){var h=y0(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.$jscomp$loop$prop$parent$1736=void 0,kTa(b[f],function(k){return function(q){q=
y0(c,q);return null!=q?(k.$jscomp$loop$prop$parent$1736=q,!0):!1}}(e)),e.$jscomp$loop$prop$parent$1736?d&&d.has(e.$jscomp$loop$prop$parent$1736)||(d=new Map,a.unshift(d),d.set(e.$jscomp$loop$prop$parent$1736,[]),Zac=1):(d=new Map,a.unshift(d),Zac=0),$ac(h),h.setParent(e.$jscomp$loop$prop$parent$1736),d.set(h,[]),e.$jscomp$loop$prop$parent$1736&&d.get(e.$jscomp$loop$prop$parent$1736).push(h.traversalOrder_))}return a},bcc=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return y0(c,
d)})},$bc=function(a,b){if(a.traverseShadowDom_){var c=[];a=[];for(c.push.apply(c,b.querySelectorAll("*"));0<c.length;){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},Zac=0;
var ccc=function(a,b,c){$C.call(this);this.listener_=null!=c?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};U(ccc,$C);g=ccc.prototype;g.stop=function(){this.timer_&&(OD(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};g.pause=function(){this.pauseCount_++};g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};
g.disposeInternal=function(){$C.prototype.disposeInternal.call(this);this.stop()};g.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};g.doAction_=function(){var a=this;this.timer_=ND(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};
var dcc=function(a,b){bD.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};U(dcc,bD);
var ecc=function(a){Uo.call(this);this.domHelper_=a||cp();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Vo(this.domHelper_.document_,this.eventType_,du(this.handleChange_,this))};hu(ecc,Uo);g=ecc.prototype;g.getBrowserEventType_=xp(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((ou?"Webkit":nu?"Moz":lu?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=xp(function(){return nXb("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=xp(function(){return nXb("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new dcc(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){oD(this.eventKey_);ecc.superClass_.disposeInternal.call(this)};
var b1=function(a,b,c,d){var e=this,f=void 0===d?{}:d,h=void 0===f.backgroundJobDeferrer?void 0:f.backgroundJobDeferrer;d=void 0===f.expectXidTagComponents?!1:f.expectXidTagComponents;f=void 0===f.traverseShadowDom?!1:f.traverseShadowDom;WG.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new zbc;this.visualElementProvider_=new Xbc(this.metadataHandler_,this.expectXidTagComponents_);if(this.clearcut_=c)this.clearcut_.setClientSideLogOnlyForDevelopment(!1),pvb(this.clearcut_,
!0),this.clearcut_.useGetRequestForFinalFlush=!0;this.maybeXidEventLabel_("generic_click");this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new ecc;this.logImpressionsTask_=(new a1(this)).measure(h?function(){return h().then(e.handleImpressions_.bind(e))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();new ccc(this.logImpressionsTask_,500,this);this.traverser_=new Zbc(this.visualElementProvider_,f);this.impressionListeners_=[];this.eventBuilder_ instanceof
I0&&(this.eventHandler_=this.eventBuilder_)};hu(b1,WG);g=b1.prototype;g.setClearcutClientInfo=function(a){this.clearcut_&&this.clearcut_.setClearcutClientInfo(a)};g.setBuildLabel=function(a){this.clearcut_&&this.clearcut_.setBuildLabel(a)};g.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};g.log=function(a){this.clearcut_&&this.clearcut_.log(a)};g.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_&&this.clearcut_.setClientSideLogOnlyForDevelopment(a)};
var fcc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};b1.prototype.getIndex=function(a){return a.getTag().getIndex()};var gcc=function(a){return a.map(function(b){return b.getTag().visualElementID_})};g=b1.prototype;g.getMetadata=function(a,b){var c=new U0;Oac(a.getTag(),c);for(a=0;a<b.length;++a)Oac(b[a].getTag(),c);return c};
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;kTa(a,function(d){if(!CD(d))return!1;d=y0(c,d);null!=d&&b.push(d);return!1});return b};
g.handleImpressions_=function(){var a=this.pageVisibilityMonitor_;if(!a.domHelper_.document_[a.getHiddenPropertyName_()]&&this.root_){if(a=!!(window.performance&&window.performance.mark&&window.performance.measure&&window.performance.clearMeasures&&window.performance.clearMarks))window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc");var b=Eac(this.traverser_,this.root_);if(this.eventHandler_){var c=this.domHelper_.getViewportSize();c=new EU(0,
0,c.width,c.height);Fac(this,b,c);b=bcc(this.traverser_,b);c=this.eventHandler_.visibilityEvent(b,c);if(c.length)for(b=0;b<c.length;++b)this.metadataHandler_.addEventMetadata(c[b]),this.clearcut_&&this.clearcut_.log(c[b]);fcc(this)}else{c=[];var d=this.domHelper_.getViewportSize();d=new EU(0,0,d.width,d.height);for(var e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=y0(this.visualElementProvider_,f))&&Nac(f.getTag(),Kac)&&c.push(f)}for(b=0;b<c.length;b++)if(d=c[b],!d.loggedImpression_){e=
this.getAncestry_(d.getElement());var h=gcc(e);f=this.getIndex(d);var k=new x0;k=l(k,4);var q=d.getTag().visualElementID_;k=l(k,1,q);h=ml(k,3,h);null!=f&&h.setElementIndex(f);f=new abc;f.ve_metadata=this.getMetadata(d,e);f.global_metadata=this.invariantData_;f.client_info=this.appInfo_;e=h;e=BE(new AE,e.serialize());e=ml(e,20,f.testCodes);this.clearcut_&&this.clearcut_.log(e);fcc(this);d.loggedImpression_=!0}}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
g.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");a=a.getBoundingClientRect();return(b=oXb(b,new EU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?eTa(a):a};var Fac=function(a,b,c){b=acc(a.traverser_,b);if(b.length)for(c=a.eventHandler_.impressionEvent(b,c),b=0;b<c.length;++b)a.metadataHandler_.addEventMetadata(c[b]),a.clearcut_&&a.clearcut_.log(c[b])};
var ATa=function(a,b,c,d,e,f,h,k,q){e=void 0===e?!1:e;k=void 0===k?new FUb(b,c,d,void 0,void 0,void 0,f):k;b1.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:void 0===q?!1:q})};hu(ATa,b1);
var cr=function(){this.filter_=null;this.boostIds_=[];this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=cr.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.getEntryPoint=function(){return this.entryPoint_};g.setEntryPoint=function(a){this.entryPoint_=a;return this};
g.clone=function(){var a=new cr;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;return a};
var ns=function(a){Z.call(this,a)};U(ns,Z);var c1=function(a,b){return l(a,1,b)};g=ns.prototype;g.getProvenance=function(){return Y(this,2,0)};g.setProvenance=function(a){return l(this,2,a)};g.getCode=function(){return Y(this,3,0)};g.setCode=function(a){return l(this,3,a)};g.toObject=function(){return hcc(this)};var hcc=function(a){if(null!=a)return{isLateLoaded:n(Xo(a,1)),provenance:n(p(a,2)),code:n(p(a,3))}};
var d1=function(a){Z.call(this,a)};U(d1,Z);d1.prototype.getSource=function(){return m(this,ns,1)};d1.prototype.setSource=function(a){return Db(this,1,a)};d1.prototype.hasSource=function(){return oj(this,1)};var e1=function(a,b){return l(a,2,b)},f1=function(a,b){return l(a,3,b)};d1.prototype.toObject=function(){return icc(this)};var icc=function(a){if(null!=a)return{source:hcc(a.getSource()),statusAtQuery:n(p(a,2)),statusAtResult:n(p(a,3))}};
var jcc=function(){this.filter_=null};jcc.prototype.getFilter=function(){return this.filter_};jcc.prototype.setFilter=function(a){this.filter_=a;return this};
var kcc=function(a){Z.call(this,a)};U(kcc,Z);g=kcc.prototype;g.getEnd=function(){return hj(this,2,0)};g.setEnd=function(a){return l(this,2,a)};g.getTotalItems=function(){return hj(this,3,0)};g.setTotalItems=function(a){return l(this,3,a)};g.getCode=function(){return Y(this,4,2)};g.setCode=function(a){return l(this,4,a)};g.getCacheState=function(){return m(this,d1,5)};g.setCacheState=function(a){return Db(this,5,a)};g.hasCacheState=function(){return oj(this,5)};
g.toObject=function(){var a=null!=this?{begin:hj(this,1,0),end:hj(this,2,0),totalItems:hj(this,3,0),code:Y(this,4,2),cacheState:icc(this.getCacheState())}:void 0;return a};
var lcc=function(a,b){this.results_=a;this.metadata_=b};lcc.prototype.getResults=function(){return this.results_};lcc.prototype.getMetadata=function(){return this.metadata_};
var mcc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=mcc.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getOriginator=function(){return this.originator_};g.setOriginator=function(a){this.originator_=a;return this};
g.clone=function(){var a=(new mcc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};
var ncc=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.callbackNumber_=-1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new d1};g=ncc.prototype;g.getIsFirstCallback=function(){return this.isFirstCallback_};g.getIsLastCallback=function(){return this.isLastCallback_};g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};
g.setIsLastCallback=function(a){this.isLastCallback_=a;return this};g.setCallbackNumber=function(a){this.callbackNumber_=a;return this};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};
var occ=function(a,b){this.results_=a;this.metadata_=b};occ.prototype.getResults=function(){return this.results_};occ.prototype.getMetadata=function(){return this.metadata_};
var g1=function(a){Z.call(this,a)};U(g1,Z);g=g1.prototype;g.getQuery=function(){return V(this,1,"")};g.setQuery=function(a){return l(this,1,a)};g.clearQuery=function(){ob(this,1)};g.hasQuery=function(){return gj(this,1)};g.getIsFirstCallback=function(){return W(this,2,!1)};g.setIsFirstCallback=function(a){return l(this,2,a)};g.getIsLastCallback=function(){return W(this,3,!1)};g.setIsLastCallback=function(a){return l(this,3,a)};g.setCallbackNumber=function(a){return l(this,4,a)};
g.getNextPageToken=function(){return V(this,5,"")};g.getCode=function(){return Y(this,6,2)};g.setCode=function(a){return l(this,6,a)};g.getCacheState=function(){return m(this,d1,7)};g.setCacheState=function(a){return Db(this,7,a)};g.hasCacheState=function(){return oj(this,7)};
g.toObject=function(){var a=null!=this?{query:V(this,1,""),isFirstCallback:W(this,2,!1),isLastCallback:W(this,3,!1),callbackNumber:hj(this,4,-1),nextPageToken:V(this,5,""),code:Y(this,6,2),cacheState:icc(this.getCacheState())}:void 0;return a};
var h1=function(a,b){this.results_=a;this.metadata_=b};h1.prototype.getResults=function(){return this.results_};h1.prototype.getMetadata=function(){return this.metadata_};
var pcc={create:function(a,b,c,d,e){e=void 0===e?new cr:e;return mTa(a,b,c,d,new G8b,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return mTa(a,b,c,d,new G8b,e)},createConfig:function(a){return new U$b(a)}};
var cs=function(a){Z.call(this,a)};U(cs,Z);g=cs.prototype;g.getTimestamp=function(){return hj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return gj(this,1)};g.getAffinityVersion=function(){return hj(this,2)};g.setAffinityVersion=function(a){l(this,2,a)};g.getTotalItems=function(){return hj(this,3)};g.setTotalItems=function(a){return l(this,3,a)};g.getNextPageToken=function(){return V(this,4)};
g.toObject=function(){var a=null!=this?{timestamp:n(p(this,1)),affinityVersion:n(p(this,2)),totalItems:n(p(this,3)),nextPageToken:n(p(this,4)),skipIndexing:n(Xo(this,5))}:void 0;return a};
var i1=function(){this.bits_=[]};g=i1.prototype;g.and=function(a){for(var b=new i1,c=r(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};g.or=function(a){for(var b=new i1,c=r(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=r(a);for(d=a.next();!d.done;d=a.next())b.bits_[d.value]=!0;return b};g.get=function(a){return!!this.bits_[a]};g.set=function(a){this.bits_[a]=!0};g.setAll=function(a){var b=a;for(a+=NaN;b<a;b++)this.bits_[b]=!0};
g.clear=function(a){this.bits_[a]=!1};i1.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 0>b?{done:!0}:{value:b,done:!1}}}};
var JTa=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),ITa=/^[<"']|[>"']$/g,pr=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"),qcc=/[^a-z0-9]+/gi,HTa=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};
var rcc=function(a,b){this.key=a;this.terms=KTa(b)};
var j1=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new i1:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};j1.prototype.cloneNode=function(a){for(var b=[],c=r(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new j1(b)};
j1.prototype.getMatches=function(a){for(var b=[],c=r(this.prefix_?this.matchIndices_:MTa(this.items_.length)),d=c.next();!d.done&&(d=a.loadOrSkip(this.items_[d.value].key),null==d||(b.push(d),!a.isDone()));d=c.next());return b};
j1.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),h=d;if(!h.isExpanded_){for(var k=r(h.prefix_?h.matchIndices_:MTa(h.items_.length)),q=k.next();!q.done;q=k.next()){var u=h;q=q.value;for(var y=u.prefix_+"\ufdc7",D=r(u.items_[q].terms),I=D.next();!I.done;I=D.next())I=I.value,I.length<=u.prefix_.length||I<u.prefix_||I>y||(I=I.charAt(u.prefix_.length),u.childNodes_[I]||(u.childNodes_[I]=new j1(u.items_,u.prefix_+I)),u.childNodes_[I].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||k1;if(d===k1)break}return d}).reduce(function(c,d){return c.and(d)}):this};var scc=function(a){a.isExpanded_=!1;for(var b=r(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&scc(c)};j1.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new j1(this.items_,"\u2026",a)};j1.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new j1(this.items_,"\u2026",a)};var k1=new j1([]);
k1.isExpanded_=!0;
var l1=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};l1.prototype.getExpiry=function(){return this.expiry_};l1.prototype.getValue=function(){return this.value_};l1.prototype.isExpired=function(){return this.expiry_<Date.now()};l1.prototype.isStale=function(){return this.stale_<Date.now()};
var tcc=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=tcc.prototype;g.size=function(){return this.items_.size};g.clear=function(){this.items_.clear()};g.has=function(a){return this.items_.has(a)};g.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
g.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=r(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};g.delete=function(a){return this.items_.delete(a)};g.compact=function(){for(var a=0,b=r(this.items_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var ucc=function(){var a=new tcc(function(){return 1E3<a.size()});return a};
var vcc=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new tcc(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=vcc.prototype;g.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};g.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};g.has=function(a){return!!this.get(a)};g.size=function(){return this.delegate_.size()};g.clear=function(){this.delegate_.clear()};
g.delete=function(a){return this.delegate_.delete(a)};g.compact=function(){return this.delegate_.compact()};var m1=function(a,b){return new vcc(a,function(c){var d=Date.now()+b;return new l1(d,c,d)})};
var n1=function(a){Z.call(this,a,-1,wcc)};U(n1,Z);g=n1.prototype;g.getCacheSize=function(){return hj(this,3,500)};g.setCacheSize=function(a){l(this,3,a)};g.hasCacheSize=function(){return gj(this,3)};g.getCacheStaleSec=function(){return Cl(this,4,86400)};g.getCacheExpiredSec=function(){return Cl(this,5,1209600)};g.getRpcTimeoutSec=function(){return Cl(this,12,60)};var wcc=[24,25];n1.prototype.toObject=function(){return xcc(this)};
var xcc=function(a){if(null!=a)return{suggestMaxResults:hj(a,1,5),searchMaxResults:hj(a,2,5),cacheSize:hj(a,3,500),cacheStaleSec:Cl(a,4,86400),cacheExpiredSec:Cl(a,5,1209600),lruCacheCapacity:hj(a,6,500),lruCacheExpiredSec:hj(a,7,43200),autocompleteIndexCapacity:hj(a,8,250),autocompleteIndexExpiredSec:Cl(a,9,3600),notFoundCapacity:hj(a,10,500),notFoundExpiredSec:Cl(a,11,600),rpcTimeoutSec:Cl(a,12,60),serverWarmupThrottleSec:Cl(a,13,60),cacheFlushThrottleSec:Cl(a,14,300),suggestFormat:Y(a,15,1),searchFormat:Y(a,
16,1),lookupFormat:Y(a,17,1),listFormat:Y(a,18,1),coalescedSortOrder:Y(a,19,1),preferSource:Y(a,20,1),enableEmailPlaceholders:W(a,21,!1),allowEmptyTargets:W(a,22,!1),singleIant:W(a,23,!1),iantApplicationList:n(lb(a,24)),idTypesList:n(lb(a,25)),smartAddressIndexCapacity:hj(a,26,10),smartAddressIndexExpiredSec:Cl(a,27,600),supportSmtpAddresses:W(a,28,!1),contextualSuggestMaxAdditionResults:hj(a,29,3),enableBoosting:W(a,30,!1),boostIndexCapacity:hj(a,31,5),boostIndexExpiredSec:Cl(a,32,3600),enableInterleavedGroups:W(a,
33,!1),enableSlotReservations:W(a,34,!1)}};
var OTa=new Set([10,11]);
var ycc=function(a){this.interleaveGroups_=W(a,33,!1)},zcc=function(a,b,c){return b.filter(function(d){return 8!==d.provenance}).sort(function(d,e){a:{var f=a.interleaveGroups_;switch(c){case 2:d=PTa(d,e,f,!0);break a;default:d=QTa(d,e,f)}}return d}).map(function(d){return String(d.id)})};
var Acc=function(a,b){this.metrics_=a;this.state_=new eU(b);this.source=b;this.label_="total"};Acc.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Acc.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};
var Bcc=function(a,b){this.metrics_=a;this.state_=new eU(b);this.source=b};Bcc.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};
var Ccc=function(a,b){this.metrics_=a;this.state_=new eU(b);this.source=b};Ccc.prototype.report=function(){this.metrics_.error(this.state_)};
var Dcc=function(a){Z.call(this,a)};U(Dcc,Z);Dcc.prototype.toObject=function(){return Ecc(this)};var Ecc=function(a){if(null!=a)return{sqliteStatus:n(p(a,1))}};
var Fcc=function(a){Z.call(this,a)};U(Fcc,Z);Fcc.prototype.getSqliteErrorInfo=function(){return Bl(this,Dcc,2,Gcc)};var Gcc=[2];Fcc.prototype.toObject=function(){return Hcc(this)};var Hcc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:Ecc(a.getSqliteErrorInfo())}};
var Icc=function(a){Z.call(this,a)};U(Icc,Z);Icc.prototype.getSqliteErrorInfo=function(){return Bl(this,Dcc,2,Jcc)};var Jcc=[2];Icc.prototype.toObject=function(){return Kcc(this)};var Kcc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:Ecc(a.getSqliteErrorInfo())}};
var Lcc=function(a){Z.call(this,a)};U(Lcc,Z);Lcc.prototype.toObject=function(){return Mcc(this)};var Mcc=function(a){if(null!=a)return{errorLocation:n(p(a,1))}};
var o1=function(a){Z.call(this,a)};U(o1,Z);g=o1.prototype;g.getClientInterface=function(){return m(this,PT,1)};g.setClientInterface=function(a){return Db(this,1,a)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getCacheStatus=function(){return m(this,Ncc,12)};g.setCacheStatus=function(a){return Db(this,12,a)};g.getCount=function(){return m(this,p1,4)};g.setCount=function(a){Db(this,4,a)};g.getLatency=function(){return m(this,q1,5)};
g.setLatency=function(a){return Db(this,5,a)};g.getError=function(){return m(this,r1,6)};g.setError=function(a){Db(this,6,a)};g.hasError=function(){return oj(this,6)};g.getRpcRequest=function(){return m(this,s1,7)};g.setRpcRequest=function(a){return Db(this,7,a)};g.getRpcResponse=function(){return m(this,t1,8)};g.setRpcResponse=function(a){return Db(this,8,a)};g.getApiCall=function(){return m(this,u1,9)};g.setApiCall=function(a){return Db(this,9,a)};g.getApiResult=function(){return m(this,v1,10)};
g.setApiResult=function(a){return Db(this,10,a)};var Ncc=function(a){Z.call(this,a)};U(Ncc,Z);var p1=function(a){Z.call(this,a)};U(p1,Z);g=p1.prototype;g.getDataSource=function(){return p(this,3)};g.setDataSource=function(a){return l(this,3,a)};g.getType=function(){return p(this,4)};g.setType=function(a){return l(this,4,a)};g.hasType=function(){return gj(this,4)};g.getValue=function(){return hj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};var Occ=function(a){Z.call(this,a)};U(Occ,Z);var q1=function(a){Z.call(this,a)};U(q1,Z);g=q1.prototype;g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return gj(this,3)};g.setLatencyUsec=function(a){l(this,2,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return gj(this,1)};var w1=function(a){Z.call(this,a)};U(w1,Z);w1.prototype.getLabel=function(){return p(this,1)};w1.prototype.setLabel=function(a){return l(this,1,a)};w1.prototype.hasLabel=function(){return gj(this,1)};var Pcc=function(a){Z.call(this,a)};U(Pcc,Z);var r1=function(a){Z.call(this,a)};U(r1,Z);g=r1.prototype;g.setStatusCode=function(a){l(this,5,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return gj(this,1)};g.getCause=function(){return p(this,2)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return gj(this,3)};var s1=function(a){Z.call(this,a)};U(s1,Z);s1.prototype.getLabel=function(){return p(this,1)};s1.prototype.setLabel=function(a){return l(this,1,a)};s1.prototype.hasLabel=function(){return gj(this,1)};var t1=function(a){Z.call(this,a)};U(t1,Z);g=t1.prototype;g.getLabel=function(){return p(this,1)};
g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return gj(this,2)};g.setLatencyUsec=function(a){l(this,3,a)};g.getErrorCode=function(){return p(this,4)};g.setStatusCode=function(a){l(this,7,a)};g.setBlockedUsec=function(a){return l(this,8,a)};var Kr=function(a){Z.call(this,a)};U(Kr,Z);var u1=function(a){Z.call(this,a)};U(u1,Z);g=u1.prototype;
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return gj(this,2)};g.getLookupInfo=function(){return m(this,Kr,3)};g.setLookupInfo=function(a){return Db(this,3,a)};g.hasLookupInfo=function(){return oj(this,3)};g.getQueryLength=function(){return p(this,4)};g.setQueryLength=function(a){return l(this,4,a)};
g.hasQueryLength=function(){return gj(this,4)};g.getQueryScope=function(){return Y(this,5,0)};g.setQueryScope=function(a){return l(this,5,a)};g.hasQueryScope=function(){return gj(this,5)};var v1=function(a){Z.call(this,a)};U(v1,Z);g=v1.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return gj(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return gj(this,2)};
g.setLatencyUsec=function(a){l(this,3,a)};g.getResultIndex=function(){return p(this,4)};g.setResultIndex=function(a){l(this,4,a)};g.getDataSource=function(){return p(this,7)};g.setDataSource=function(a){return l(this,7,a)};g.getItemCount=function(){return p(this,8)};g.setItemCount=function(a){return l(this,8,a)};g.hasItemCount=function(){return gj(this,8)};g.getLookupInfo=function(){return m(this,Kr,10)};g.setLookupInfo=function(a){return Db(this,10,a)};g.hasLookupInfo=function(){return oj(this,10)};
g.setStatusCode=function(a){l(this,11,a)};g.getQueryLength=function(){return p(this,13)};g.setQueryLength=function(a){return l(this,13,a)};g.hasQueryLength=function(){return gj(this,13)};g.getQueryScope=function(){return Y(this,14,0)};g.setQueryScope=function(a){return l(this,14,a)};g.hasQueryScope=function(){return gj(this,14)};
o1.prototype.toObject=function(){var a=null!=this?{clientInterface:CTb(this.getClientInterface()),autocompleteSessions:PTb(m(this,XT,2)),eventType:n(p(this,3)),cacheStatus:Qcc(this.getCacheStatus()),deviceInfo:Rcc(m(this,Occ,13)),count:Scc(this.getCount()),latency:Tcc(this.getLatency()),error:Ucc(this.getError()),rpcRequest:Vcc(this.getRpcRequest()),rpcResponse:Wcc(this.getRpcResponse()),apiCall:Xcc(this.getApiCall()),apiResult:Ycc(this.getApiResult()),memory:Zcc(m(this,w1,11))}:void 0;return a};
Ncc.prototype.toObject=function(){return Qcc(this)};var Qcc=function(a){if(null!=a)return{topnCacheItemCount:n(p(a,1)),iosDeviceCacheItemCount:n(p(a,2))}};p1.prototype.toObject=function(){return Scc(this)};var Scc=function(a){if(null!=a)return{dataSource:n(p(a,3)),type:n(p(a,4)),value:hj(a,2,1),label:n(p(a,1))}};Occ.prototype.toObject=function(){return Rcc(this)};var Rcc=function(a){if(null!=a)return{numberOfContacts:n(p(a,1))}};q1.prototype.toObject=function(){return Tcc(this)};
var Tcc=function(a){if(null!=a)return{type:n(p(a,3)),latencyUsec:n(p(a,2)),label:n(p(a,1))}};w1.prototype.toObject=function(){return Zcc(this)};var Zcc=function(a){if(null!=a)return{label:n(p(a,1)),memoryUsedBytes:n(p(a,2)),memoryAverageUsedBytes:n(p(a,3))}};Pcc.prototype.toObject=function(){return $cc(this)};var $cc=function(a){if(null!=a)return{cpuPeakUsageFraction:n(yu(a,1)),cpuAverageUsageFraction:n(yu(a,2)),memoryPeakUsageBytes:n(p(a,3)),memoryAverageUsageBytes:n(p(a,4))}},adc=[6,7,8];
r1.prototype.toObject=function(){return Ucc(this)};var Ucc=function(a){if(null!=a)return{statusCode:Y(a,5,2),iosErrorInfo:Kcc(Bl(a,Icc,6,adc)),androidErrorInfo:Hcc(Bl(a,Fcc,7,adc)),webErrorInfo:Mcc(Bl(a,Lcc,8,adc)),label:n(p(a,1)),cause:n(p(a,2)),type:n(p(a,3)),causeType:n(p(a,4))}};s1.prototype.toObject=function(){return Vcc(this)};var Vcc=function(a){if(null!=a)return{label:n(p(a,1)),requestProtoBytes:n(p(a,2)),requestBytes:n(p(a,3))}};t1.prototype.toObject=function(){return Wcc(this)};
var Wcc=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),errorCode:n(p(a,4)),responseProtoBytes:n(p(a,5)),responseBytes:n(p(a,6)),statusCode:Y(a,7,2),blockedUsec:n(p(a,8)),processingUsec:n(p(a,9))}};Kr.prototype.toObject=function(){return bdc(this)};var bdc=function(a){if(null!=a)return{phoneItemCount:n(p(a,1)),emailItemCount:n(p(a,2)),gaiaItemCount:n(p(a,3)),notFoundPhoneItemCount:n(p(a,4)),notFoundEmailItemCount:n(p(a,5)),notFoundGaiaItemCount:n(p(a,6))}};
u1.prototype.toObject=function(){return Xcc(this)};var Xcc=function(a){if(null!=a)return{label:n(p(a,1)),itemCount:n(p(a,2)),lookupInfo:bdc(a.getLookupInfo()),queryLength:n(p(a,4)),queryScope:Y(a,5,0)}};v1.prototype.toObject=function(){return Ycc(this)};
var Ycc=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),resultIndex:n(p(a,4)),cacheStatusAtQuery:n(p(a,5)),cacheStatusAtResult:n(p(a,6)),dataSource:n(p(a,7)),itemCount:n(p(a,8)),duplicatesRejectedCount:n(p(a,12)),resources:$cc(m(a,Pcc,9)),lookupInfo:bdc(a.getLookupInfo()),statusCode:Y(a,11,2),queryLength:n(p(a,13)),queryScope:Y(a,14,0)}};
var Jr=function(a){Z.call(this,a)};U(Jr,Z);Jr.prototype.getEventType=function(){return Y(this,1,0)};Jr.prototype.setEventType=function(a){return l(this,1,a)};var Lr=function(a,b){return l(a,2,b)},jUa=function(a,b){return l(a,3,b)};g=Jr.prototype;g.getErrorType=function(){return Y(this,6,0)};g.setErrorType=function(a){return l(this,6,a)};g.getIdType=function(){return Y(this,8,0)};g.setIdType=function(a){l(this,8,a)};g.getResultIndex=function(){return hj(this,9,0)};
g.setResultIndex=function(a){l(this,9,a)};g.getToken=function(){return V(this,10,"")};g.setToken=function(a){return l(this,10,a)};g.getCacheState=function(){return m(this,d1,11)};g.setCacheState=function(a){return Db(this,11,a)};g.hasCacheState=function(){return oj(this,11)};g.getQueryLength=function(){return p(this,14)};g.setQueryLength=function(a){return l(this,14,a)};g.hasQueryLength=function(){return gj(this,14)};g.getItemCount=function(){return p(this,15)};
g.setItemCount=function(a){return l(this,15,a)};g.hasItemCount=function(){return gj(this,15)};g.getLookupInfo=function(){return m(this,Kr,16)};g.setLookupInfo=function(a){return Db(this,16,a)};g.hasLookupInfo=function(){return oj(this,16)};g.getQueryScope=function(){return p(this,17)};g.setQueryScope=function(a){return l(this,17,a)};g.hasQueryScope=function(){return gj(this,17)};
g.toObject=function(){var a=null!=this?{eventType:Y(this,1,0),apiLabel:Y(this,2,0),rpcLabel:Y(this,3,0),countType:Y(this,4,0),latencyType:Y(this,5,0),errorType:Y(this,6,0),errorCause:Y(this,7,0),idType:Y(this,8,0),resultIndex:hj(this,9,0),token:V(this,10,""),cacheState:icc(this.getCacheState()),contentLength:hj(this,12,0),errorHint:Y(this,13,0),queryLength:n(p(this,14)),itemCount:n(p(this,15)),lookupInfo:bdc(this.getLookupInfo()),queryScope:n(p(this,17))}:void 0;return a};
var cdc=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};cdc.prototype.getErrorType=function(){return this.errorType_};
var ddc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=ddc.prototype;g.getCacheType=function(){return this.delegate_.getCacheType()};g.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};g.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
g.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};g.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};
var edc=function(){};edc.prototype.processItem=function(){};var fdc=new edc;
var vUa=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=vUa.prototype;g.getDisplayName=function(){return this.displayName_};g.setDisplayName=function(a){this.displayName_=a||"";return this};g.getGivenName=function(){return this.givenName_};g.setGivenName=function(a){this.givenName_=a||"";return this};g.getFamilyName=function(){return this.familyName_};g.setFamilyName=function(a){this.familyName_=a||"";return this};g.getSourceType=function(){return this.sourceType_};
g.setSourceType=function(a){this.sourceType_=a||0;return this};
var gdc=function(){this.altText_=""};gdc.prototype.getIconUrl=function(){return""};
var hdc=function(){};hdc.prototype.configure=function(){};
var x1=function(a){Z.call(this,a,-1,idc)};U(x1,Z);x1.prototype.getEnableClearcut=function(){return W(this,1,!1)};x1.prototype.setEnableClearcut=function(a){return l(this,1,a)};x1.prototype.getSocialApplication=function(){return Y(this,2,0)};var idc=[5,6];x1.prototype.toObject=function(){return jdc(this)};
var jdc=function(a){if(null!=a)return{enableClearcut:W(a,1,!1),socialApplication:Y(a,2,0),affinityLogSource:Y(a,3,41),metricLogSource:Y(a,4,574),eventSourcesList:Eb(tb(a,is,5),W_),contextualEventSourcesList:Eb(tb(a,js,6),$7b)}};
var y1=function(a){Z.call(this,a)};U(y1,Z);y1.prototype.getApplication=function(){return Y(this,1,0)};y1.prototype.setApplication=function(a){return l(this,1,a)};y1.prototype.getIsEnabled=function(){return W(this,2,!1)};y1.prototype.toObject=function(){return kdc(this)};var kdc=function(a){if(null!=a)return{application:Y(a,1,0),isEnabled:W(a,2,!1)}};
var z1=function(a){Z.call(this,a)};U(z1,Z);z1.prototype.getApiKey=function(){return V(this,1,"")};z1.prototype.toObject=function(){return ldc(this)};var ldc=function(a){if(null!=a)return{apiKey:V(a,1,""),apiKeyTest:V(a,2,"")}};
var A1=function(a){Z.call(this,a,-1,mdc)};U(A1,Z);var mdc=[1];A1.prototype.toObject=function(){return B1(this)};var B1=function(a){if(null!=a)return{papiExtensionList:n(lb(a,1))}};
var C1=function(a){Z.call(this,a,-1,ndc)};U(C1,Z);C1.prototype.getClientId=function(){return V(this,1,"CLIENT_UNSPECIFIED")};C1.prototype.setClientId=function(a){return l(this,1,a)};C1.prototype.getAffinityType=function(){return V(this,4,"AFFINITY_TYPE_UNKNOWN")};C1.prototype.setAffinityType=function(a){return l(this,4,a)};var ndc=[7,8];C1.prototype.toObject=function(){return odc(this)};
var odc=function(a){if(null!=a)return{clientId:V(a,1,"CLIENT_UNSPECIFIED"),clientName:V(a,2,"CLIENT_UNSPECIFIED"),clientVersion:V(a,3,""),affinityType:V(a,4,"AFFINITY_TYPE_UNKNOWN"),affinityTypeEnum:Y(a,5,0),mergedPersonModel:Y(a,6,1),containerTypeList:n(lb(a,7)),fieldMaskList:n(lb(a,8)),listRankedTargetsPapiExtensions:B1(m(a,A1,9)),listPeopleByKnownIdPapiExtensions:B1(m(a,A1,10)),listContactPeoplePapiExtensions:B1(m(a,A1,11)),getPeoplePapiExtensions:B1(m(a,A1,12)),identityAcl:W(a,13,!1),offlineStoreDelayMillis:hj(a,
14,5E3),enablePrivateNames:W(a,15,!1),dasherAdminDisabled:W(a,16,!1),enableSmimeCertificate:W(a,17,!1)}};
var pdc=function(a){Z.call(this,a)};U(pdc,Z);g=pdc.prototype;g.getClient=function(){return m(this,n1,1)};g.setClient=function(a){return Db(this,1,a)};g.hasClient=function(){return oj(this,1)};g.getGapi=function(){return m(this,z1,2)};g.getPeopleApi=function(){return m(this,C1,3)};g.getClearcut=function(){return m(this,x1,4)};g.setClearcut=function(a){Db(this,4,a)};g.hasClearcut=function(){return oj(this,4)};g.getExperiments=function(){return m(this,y1,5)};g.setExperiments=function(a){Db(this,5,a)};
g.hasExperiments=function(){return oj(this,5)};g.toObject=function(){var a=null!=this?{client:xcc(this.getClient()),gapi:ldc(this.getGapi()),peopleApi:odc(this.getPeopleApi()),clearcut:jdc(this.getClearcut()),experiments:kdc(this.getExperiments())}:void 0;return a};
var qdc=function(a){Z.call(this,a,1)};U(qdc,Z);var rdc={};qdc.prototype.toObject=function(){if(null!=this){var a={};Fb(this,a,rdc)}else a=void 0;return a};
var tdc=function(a){Z.call(this,a,-1,sdc)};U(tdc,Z);g=tdc.prototype;g.getExperimentIdsList=function(){return lb(this,1)};g.setExperimentIdsList=function(a){return ml(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return gj(this,2)};var sdc=[1];tdc.prototype.toObject=function(){var a=null!=this?{experimentIdsList:n(lb(this,1)),profileId:n(p(this,2))}:void 0;return a};
var udc=function(){},vdc=function(){return!1},wdc=function(){this.experiments_=new tdc;this.peopleApiEnv_=4;this.delegatorId_="";this.onAuthError_=udc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=vdc;this.isOrgStateEnabled_=!1};g=wdc.prototype;g.getUserEmail=function(){return""};g.getDelegatorId=function(){return this.delegatorId_};g.getPeopleApiEnv=function(){return this.peopleApiEnv_};g.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
g.getExperiments=function(){return this.experiments_};g.getAuthErrorHandler=function(){return this.onAuthError_};g.setClearcutUrl=function(a){this.clearcutUrl_=a};g.getClearcutUrl=function(){return this.clearcutUrl_};g.setAuthErrorHandler=function(a){this.onAuthError_=a||udc};g.getApiKey=function(){return this.apiKey_};
var D1=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new wdc;a=this.getPeopleApi();lb(a,7).length||ml(a,7,[2,8,1,7,10,11]);lb(a,8).length||ml(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=r(lb(a,8));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":qb(a,8,c+".metadata.verified")}};D1.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new n1);return this.delegate_.getClient()};
D1.prototype.getGapi=function(){if(!oj(this.delegate_,2)){var a=this.delegate_,b=new z1;Db(a,2,b)}return this.delegate_.getGapi()};D1.prototype.getPeopleApi=function(){if(!oj(this.delegate_,3)){var a=this.delegate_,b=new C1;Db(a,3,b)}return this.delegate_.getPeopleApi()};D1.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new x1);return this.delegate_.getClearcut()};var xdc=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new y1);return a.delegate_.getExperiments()};
D1.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var ydc=function(a){a=a.getClient();return hj(a,6,500)?Math.min(Math.round(hj(a,6,500)/4),500):500};
var hs=null;
var zdc=function(a){this.qos=a};zdc.prototype.getIndex=function(){return String(this.qos)};var Adc=new zdc(1),Bdc=new zdc(2);
var Cdc=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Cdc.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};
var E1=function(a){Z.call(this,a)};U(E1,Z);E1.prototype.getDescription=function(){return p(this,6)};E1.prototype.setDescription=function(a){return l(this,6,a)};E1.prototype.toObject=function(){return Ddc(void 0,this)};var Ddc=function(a,b){if(null!=b){var c={entityType:n(p(b,4)),presence:n(p(b,1)),memberCount:n(p(b,2)),avatarUrl:n(p(b,3)),developerName:n(p(b,5)),description:n(p(b,6)),dndState:n(p(b,7)),organizationInfo:ojb(a,m(b,ljb,8))};a&&(c.$jspbMessageInstance=b);return c}};
var Edc=function(a){Z.call(this,a)};U(Edc,Z);Edc.prototype.toObject=function(){return Fdc(void 0,this)};var Fdc=function(a,b){if(null!=b){var c={actorId:n(p(b,1)),subtitle:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var yr=function(a){Z.call(this,a,5)};U(yr,Z);g=yr.prototype;g.getIsPlaceholder=function(){return Xo(this,2)};g.setIsPlaceholder=function(a){l(this,2,a)};g.getContactId=function(){return p(this,4)};g.setContactId=function(a){l(this,4,a)};g.hasContactId=function(){return gj(this,4)};var Gdc={};yr.prototype.toObject=function(){return Hdc(void 0,this)};
var Hdc=function(a,b){if(null!=b){var c={dynamiteExtendedData:Ddc(a,m(b,E1,1)),isPlaceholder:n(Xo(b,2)),paisaExtendedData:Fdc(a,m(b,Edc,3)),contactId:n(p(b,4))};Fb(b,c,Gdc,a);a&&(c.$jspbMessageInstance=b);return c}};
var bUa=Bb(417869898,{clientSpecificData:0},yr,Hdc);A8b[417869898]=bUa;
var Ar=function(a){Z.call(this,a)};U(Ar,Z);Ar.prototype.toObject=function(){return Idc(void 0,this)};var Idc=function(a,b){if(null!=b){var c={grammaticalGender:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var YTa=Bb(417866180,{peopleStackFieldData:0},Ar,Idc);A8b[417866180]=YTa;
var F1=function(a){Z.call(this,a)};U(F1,Z);g=F1.prototype;g.getIdCase=function(){return rb(this,G1)};g.getProfileId=function(){return V(this,sb(this,G1,1))};g.setProfileId=function(a){return ho(this,1,G1,a)};g.hasProfileId=function(){return 1===rb(this,G1)};g.getEmail=function(){return V(this,sb(this,G1,2))};g.setEmail=function(a){return ho(this,2,G1,a)};g.hasEmail=function(){return 2===rb(this,G1)};g.getPhone=function(){return V(this,sb(this,G1,3))};g.setPhone=function(a){return ho(this,3,G1,a)};
g.hasPhone=function(){return 3===rb(this,G1)};var G1=[1,2,3];F1.prototype.toObject=function(){return Jdc(void 0,this)};var Jdc=function(a,b){if(null!=b){var c={profileId:n(Ur(b,1,G1)),email:n(Ur(b,2,G1)),phone:n(Ur(b,3,G1))};a&&(c.$jspbMessageInstance=b);return c}};
var Dr=function(a){Z.call(this,a,-1,Kdc)};U(Dr,Z);Dr.prototype.getHiddenKeysList=function(){return tb(this,F1,3)};var Kdc=[3];Dr.prototype.toObject=function(){return Ldc(void 0,this)};var Ldc=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Eb(b.getHiddenKeysList(),Jdc,a),familyStatus:n(p(b,2)),birthdayStatus:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var cUa=Bb(417869137,{peopleStackPersonData:0},Dr,Ldc);A8b[417869137]=cUa;
var Mdc=function(a){a=null==a?"":String(a);for(var b=0,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a.codePointAt(c);return b},$Ta=function(a){if(!a)return 0;a=Array.from(a).map(Mdc);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};
var RTa=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],["DYNAMITE_CLASSIC_NAMED_ROOM",15],["DYNAMITE_CLASSIC_UNNAMED_ROOM",16]]);
var Ndc=function(a){Z.call(this,a)};U(Ndc,Z);g=Ndc.prototype;g.getLoggingId=function(){return zu(this,1)};g.setLoggingId=function(a){l(this,1,a)};g.getValue=function(){return yu(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};g.toObject=function(){return Odc(void 0,this)};var Odc=function(a,b){if(null!=b){var c={loggingId:Hb(b.getLoggingId()),value:n(yu(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Pdc=function(a){Z.call(this,a)};U(Pdc,Z);g=Pdc.prototype;g.getValue=function(){return p(this,1)};g.setValue=function(a){return l(this,1,a)};g.hasValue=function(){return gj(this,1)};g.getGivenName=function(){return p(this,2)};g.setGivenName=function(a){return l(this,2,a)};g.hasGivenName=function(){return gj(this,2)};g.getFamilyName=function(){return p(this,3)};g.setFamilyName=function(a){return l(this,3,a)};g.hasFamilyName=function(){return gj(this,3)};
g.getSourceType=function(){return p(this,4)};g.setSourceType=function(a){return l(this,4,a)};g.toObject=function(){return Qdc(void 0,this)};var Qdc=function(a,b){if(null!=b){var c={value:n(p(b,1)),givenName:n(p(b,2)),familyName:n(p(b,3)),sourceType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Rdc=function(a){Z.call(this,a)};U(Rdc,Z);g=Rdc.prototype;g.getUrl=function(){return p(this,1)};g.setUrl=function(a){return l(this,1,a)};g.hasUrl=function(){return gj(this,1)};g.getType=function(){return p(this,2)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return gj(this,2)};g.getGlyph=function(){return p(this,3)};g.setGlyph=function(a){return l(this,3,a)};g.toObject=function(){return Sdc(void 0,this)};
var Sdc=function(a,b){if(null!=b){var c={url:n(p(b,1)),type:n(p(b,2)),glyph:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var H1=function(a){Z.call(this,a)};U(H1,Z);g=H1.prototype;g.getPhoto=function(){return m(this,Rdc,1)};g.setPhoto=function(a){Db(this,1,a)};g.hasPhoto=function(){return oj(this,1)};g.getName=function(){return m(this,Pdc,2)};g.setName=function(a){return Db(this,2,a)};g.hasName=function(){return oj(this,2)};g.getAffinity=function(){return m(this,Ndc,3)};g.hasAffinity=function(){return oj(this,3)};g.getPrimary=function(){return Xo(this,4)};g.toObject=function(){return Tdc(void 0,this)};
var Tdc=function(a,b){if(null!=b){var c={photo:Sdc(a,b.getPhoto()),name:Qdc(a,b.getName()),affinity:Odc(a,b.getAffinity()),primary:n(Xo(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Udc=function(a){Z.call(this,a)};U(Udc,Z);Udc.prototype.toObject=function(){return Vdc(void 0,this)};var Vdc=function(a,b){if(null!=b){var c={smtpServerSupportsTls:n(Xo(b,1)),usesConfusingCharacters:n(Xo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var I1=function(a){Z.call(this,a,-1,Wdc)};U(I1,Z);I1.prototype.getApplication=function(){return Y(this,1,0)};I1.prototype.setApplication=function(a){return l(this,1,a)};var Nr=function(a){Z.call(this,a)};U(Nr,Z);Nr.prototype.getState=function(){return p(this,2)};var Wdc=[2];I1.prototype.toObject=function(){return Xdc(void 0,this)};var Xdc=function(a,b){if(null!=b){var c={application:Y(b,1,0),stateStatusList:Eb(tb(b,Nr,2),Ydc,a)};a&&(c.$jspbMessageInstance=b);return c}};
Nr.prototype.toObject=function(){return Ydc(void 0,this)};var Ydc=function(a,b){if(null!=b){var c={contextType:n(p(b,1)),state:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var J1=function(a){Z.call(this,a,-1,Zdc)};U(J1,Z);J1.prototype.getValue=function(){return p(this,1)};J1.prototype.setValue=function(a){return l(this,1,a)};J1.prototype.hasValue=function(){return gj(this,1)};var K1=function(a){Z.call(this,a)};U(K1,Z);K1.prototype.getStatus=function(){return p(this,2)};K1.prototype.setStatus=function(a){return l(this,2,a)};K1.prototype.hasStatus=function(){return gj(this,2)};var Zdc=[2];J1.prototype.toObject=function(){return $dc(void 0,this)};
var $dc=function(a,b){if(null!=b){var c={value:n(p(b,1)),certificatesList:Eb(tb(b,K1,2),aec,a),securityInfo:Vdc(a,m(b,Udc,3)),internalExternal:Xdc(a,m(b,I1,4))};a&&(c.$jspbMessageInstance=b);return c}};K1.prototype.toObject=function(){return aec(void 0,this)};var aec=function(a,b){if(null!=b){var c={expirationTimestampSeconds:n(p(b,1)),status:n(p(b,2)),configurationName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var tr=function(a){Z.call(this,a)};U(tr,Z);g=tr.prototype;g.getProfileId=function(){return p(this,1)};g.setProfileId=function(a){return l(this,1,a)};g.hasProfileId=function(){return gj(this,1)};g.getEmail=function(){return Ur(this,2,vr)};g.setEmail=function(a){return ho(this,2,vr,a)};g.hasEmail=function(){return 2===rb(this,vr)};g.getPhone=function(){return Ur(this,3,vr)};g.setPhone=function(a){return ho(this,3,vr,a)};g.hasPhone=function(){return 3===rb(this,vr)};var vr=[2,3];
tr.prototype.toObject=function(){return bec(void 0,this)};var bec=function(a,b){if(null!=b){var c={profileId:n(p(b,1)),email:n(Ur(b,2,vr)),phone:n(Ur(b,3,vr))};a&&(c.$jspbMessageInstance=b);return c}};
var cec=function(a){Z.call(this,a)};U(cec,Z);cec.prototype.getDisplayValue=function(){return p(this,1)};cec.prototype.toObject=function(){return dec(void 0,this)};var dec=function(a,b){if(null!=b){var c={displayValue:n(p(b,1)),canonicalValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var xr=function(a){Z.call(this,a)};U(xr,Z);xr.prototype.getIdCase=function(){return rb(this,L1)};xr.prototype.getProfileId=function(){return Ur(this,1,L1)};xr.prototype.setProfileId=function(a){return ho(this,1,L1,a)};xr.prototype.hasProfileId=function(){return 1===rb(this,L1)};var L1=[1];xr.prototype.toObject=function(){return eec(void 0,this)};var eec=function(a,b){if(null!=b){var c={profileId:n(Ur(b,1,L1))};a&&(c.$jspbMessageInstance=b);return c}};
var Er=function(a){Z.call(this,a,-1,fec)};U(Er,Z);g=Er.prototype;g.getValueCase=function(){return rb(this,ur)};g.getDisplayInfo=function(){return m(this,H1,1)};g.hasDisplayInfo=function(){return oj(this,1)};g.getEmail=function(){return Bl(this,J1,2,ur)};g.setEmail=function(a){return Cu(this,2,ur,a)};g.hasEmail=function(){return zl(this,2,ur)};g.getPhone=function(){return Bl(this,cec,3,ur)};g.setPhone=function(a){return Cu(this,3,ur,a)};g.hasPhone=function(){return zl(this,3,ur)};
g.getIsSelf=function(){return Xo(this,6)};g.getTypeLabel=function(){return p(this,10)};var fec=[5],ur=[2,3,4];Er.prototype.toObject=function(){return gec(void 0,this)};
var gec=function(a,b){if(null!=b){var c={displayInfo:Tdc(a,b.getDisplayInfo()),email:$dc(a,b.getEmail()),phone:dec(a,b.getPhone()),inAppTarget:bec(a,Bl(b,tr,4,ur)),sourceIdsList:Eb(tb(b,xr,5),eec,a),isSelf:n(Xo(b,6)),isGoogleGroup:n(Xo(b,7)),isPersonal:n(Xo(b,8)),peopleStackFieldExtendedData:Idc(a,m(b,Ar,9)),typeLabel:n(p(b,10))};a&&(c.$jspbMessageInstance=b);return c}};
var Hr=function(a){Z.call(this,a,-1,hec)};U(Hr,Z);Hr.prototype.getDisplayInfo=function(){return m(this,H1,1)};Hr.prototype.hasDisplayInfo=function(){return oj(this,1)};Hr.prototype.getMembersList=function(){return tb(this,Er,2)};Hr.prototype.getLabelId=function(){return p(this,3)};var hec=[2];Hr.prototype.toObject=function(){return iec(void 0,this)};
var iec=function(a,b){if(null!=b){var c={displayInfo:Tdc(a,b.getDisplayInfo()),membersList:Eb(b.getMembersList(),gec,a),labelId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Sr=function(a){Z.call(this,a)};U(Sr,Z);Sr.prototype.getIdCase=function(){return rb(this,Tr)};var Tr=[1];Sr.prototype.toObject=function(){return jec(void 0,this)};var jec=function(a,b){if(null!=b){var c={rosterEmail:n(Ur(b,1,Tr))};a&&(c.$jspbMessageInstance=b);return c}};
var lec=function(a){Z.call(this,a,-1,kec)};U(lec,Z);lec.prototype.getHiddenKeysList=function(){return tb(this,F1,3)};var kec=[3];lec.prototype.toObject=function(){return mec(void 0,this)};var mec=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Eb(b.getHiddenKeysList(),Jdc,a),familyStatus:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Gr=function(a){Z.call(this,a,-1,nec)};U(Gr,Z);Gr.prototype.getAffinity=function(){return m(this,Ndc,2)};Gr.prototype.hasAffinity=function(){return oj(this,2)};var nec=[1];Gr.prototype.toObject=function(){return oec(void 0,this)};
var oec=function(a,b){if(null!=b){var c={affinity:Odc(a,b.getAffinity()),contactMethodsList:Eb(tb(b,Er,1),gec,a),clientSpecificData:Hdc(a,m(b,yr,3)),peopleStackExtendedData:mec(a,m(b,lec,4)),peopleStackPersonExtendedData:Ldc(a,m(b,Dr,5))};a&&(c.$jspbMessageInstance=b);return c}};
var qec=function(a){Z.call(this,a,-1,pec)};U(qec,Z);g=qec.prototype;g.getDisplayInfo=function(){return m(this,H1,1)};g.hasDisplayInfo=function(){return oj(this,1)};g.getMembersList=function(){return tb(this,Gr,2)};g.getGroupId=function(){return p(this,4)};g.setGroupId=function(a){l(this,4,a)};g.hasGroupId=function(){return gj(this,4)};var pec=[2,6];qec.prototype.toObject=function(){return rec(void 0,this)};
var rec=function(a,b){if(null!=b){var c={displayInfo:Tdc(a,b.getDisplayInfo()),membersList:Eb(b.getMembersList(),oec,a),fullGroupSize:n(p(b,3)),groupId:n(p(b,4)),groupType:n(p(b,5)),groupAlternateIdList:Eb(tb(b,Sr,6),jec,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Ir=function(a){Z.call(this,a)};U(Ir,Z);Ir.prototype.getGroup=function(){return Bl(this,qec,2,Fr)};Ir.prototype.setGroup=function(a){Cu(this,2,Fr,a)};var Fr=[1,2,3];Ir.prototype.toObject=function(){return sec(void 0,this)};var sec=function(a,b){if(null!=b){var c={person:oec(a,Bl(b,Gr,1,Fr)),group:rec(a,b.getGroup()),contactLabel:iec(a,Bl(b,Hr,3,Fr))};a&&(c.$jspbMessageInstance=b);return c}};
var Mr=function(a){Z.call(this,a)};U(Mr,Z);g=Mr.prototype;g.getIdCase=function(){return rb(this,M1)};g.getEmail=function(){return Ur(this,1,M1)};g.setEmail=function(a){return ho(this,1,M1,a)};g.hasEmail=function(){return 1===rb(this,M1)};g.getPhone=function(){return Ur(this,2,M1)};g.setPhone=function(a){return ho(this,2,M1,a)};g.hasPhone=function(){return 2===rb(this,M1)};g.getProfileId=function(){return Ur(this,3,M1)};g.setProfileId=function(a){return ho(this,3,M1,a)};
g.hasProfileId=function(){return 3===rb(this,M1)};var M1=[1,2,3];Mr.prototype.toObject=function(){return tec(void 0,this)};var tec=function(a,b){if(null!=b){var c={email:n(Ur(b,1,M1)),phone:n(Ur(b,2,M1)),profileId:n(Ur(b,3,M1))};a&&(c.$jspbMessageInstance=b);return c}};
var N1=function(a){Z.call(this,a,-1,uec)};U(N1,Z);N1.prototype.getAffinityVersion=function(){return p(this,1)};N1.prototype.setAffinityVersion=function(a){l(this,1,a)};N1.prototype.getAffinityType=function(){return p(this,4)};N1.prototype.setAffinityType=function(a){return l(this,4,a)};var vec=function(a){Z.call(this,a)};U(vec,Z);var uec=[3];N1.prototype.toObject=function(){return wec(void 0,this)};
var wec=function(a,b){if(null!=b){var c={affinityVersion:n(p(b,1)),affinityThreshold:n(yu(b,2)),featureList:Eb(tb(b,vec,3),xec,a),affinityType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};vec.prototype.toObject=function(){return xec(void 0,this)};var xec=function(a,b){if(null!=b){var c={featureType:Y(b,1,0),weight:Cl(b,2,0),exponent:Cl(b,3,1)};a&&(c.$jspbMessageInstance=b);return c}};
var O1=function(a){Z.call(this,a,-1,yec)};U(O1,Z);var yec=[1];O1.prototype.toObject=function(){return zec(void 0,this)};var zec=function(a,b){if(null!=b){var c={resultsList:Eb(tb(b,Ir,1),sec,a),affinityResponseContext:wec(a,m(b,N1,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Bec=function(a){Z.call(this,a,-1,Aec)};U(Bec,Z);var P1=function(a){Z.call(this,a)};U(P1,Z);P1.prototype.getId=function(){return m(this,Mr,1)};P1.prototype.setId=function(a){return Db(this,1,a)};var Aec=[1];Bec.prototype.toObject=function(){var a=null!=this?{matchesList:Eb(tb(this,P1,1),Cec)}:void 0;return a};var Dec=[2,3];P1.prototype.toObject=function(){return Cec(void 0,this)};
var Cec=function(a,b){if(null!=b){var c={id:tec(a,b.getId()),autocompletion:sec(a,Bl(b,Ir,2,Dec)),failureType:n(Ur(b,3,Dec))};a&&(c.$jspbMessageInstance=b);return c}};
var lUa=new Map([[0,1],[1,2],[2,3]]);
var Q1=function(a){Z.call(this,a)};U(Q1,Z);Q1.prototype.setDevice=function(a){return l(this,1,a)};Q1.prototype.toObject=function(){return Eec(this)};var Eec=function(a){if(null!=a)return{device:n(p(a,1))}};
var Fec=function(a){Z.call(this,a)};U(Fec,Z);g=Fec.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){ob(this,2)};g.hasQuery=function(){return gj(this,2)};g.getClientInformation=function(){return m(this,Q1,3)};g.setClientInformation=function(a){Db(this,3,a)};
g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),query:n(p(this,2)),clientInformation:Eec(this.getClientInformation())}:void 0;return a};
var R1=function(a){Z.call(this,a,-1,Gec)};U(R1,Z);R1.prototype.getAffinityType=function(){return p(this,1)};R1.prototype.setAffinityType=function(a){return l(this,1,a)};R1.prototype.getClientInformation=function(){return m(this,Q1,2)};R1.prototype.setClientInformation=function(a){Db(this,2,a)};var Hec=function(a,b){Cb(a,3,b)},Gec=[3];
R1.prototype.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:Eec(this.getClientInformation()),idsList:Eb(tb(this,Mr,3),tec)}:void 0;return a};
var Iec=function(a){Z.call(this,a)};U(Iec,Z);g=Iec.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getClientInformation=function(){return m(this,Q1,2)};g.setClientInformation=function(a){Db(this,2,a)};g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:Eec(this.getClientInformation())}:void 0;return a};
var Jec=function(a){Z.call(this,a)};U(Jec,Z);Jec.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var Kec=new yG("/peoplestack.PeopleStackAutocompleteService/Autocomplete",Fec,O1,function(a){return a.serialize()},function(a){return no(O1,a)});
var Lec=new yG("/peoplestack.PeopleStackAutocompleteService/Lookup",R1,Bec,function(a){return a.serialize()},function(a){return no(Bec,a)});
var Mec=new yG("/peoplestack.PeopleStackAutocompleteService/Warmup",Iec,Jec,function(a){return a.serialize()},function(a){return no(Jec,a)});
var Nec=function(a){var b={unaryInterceptors:[new K9b]};b=b||{};b.format="jspb";this.client_=new $G(b);this.hostname_=a};Nec.prototype.autocomplete=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},Kec)};Nec.prototype.lookup=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Lec)};
var S1=function(a,b,c,d){this.grpcClient_=a;d?a=kUa(d):(a=new Jr,jUa(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=d?2:1;this.trackers_=c;this.query_=d;this.affinity_=Y(b.getPeopleApi(),5,0)};S1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};S1.prototype.send=function(a){var b=new Fec;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new Q1).setDevice(1));return this.grpcClient_.autocomplete(b,a)};
S1.prototype.processResponse=function(a){var b=iUa(a,this.provenance_),c=new cs;oj(a,2)&&c.setAffinityVersion(m(a,N1,2).getAffinityVersion());return{data:b,metadata:c}};S1.prototype.close=function(){};
var T1=function(a,b,c,d,e){this.grpcClient_=a;a=new Jr;jUa(a.setEventType(4),7).setIdType(d);this.sourceInfo_=a;this.provenance_=3;this.keys_=e;this.type_=d;this.trackers_=c;this.affinity_=Y(b.getPeopleApi(),5,0)};T1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};
T1.prototype.send=function(a){var b=this,c=new R1;c.setAffinityType(this.affinity_).setClientInformation((new Q1).setDevice(1));Hec(c,this.keys_.map(function(d){return rUa(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
T1.prototype.processResponse=function(a){var b=this.provenance_,c=new Map;a=r(tb(a,P1,1));for(var d=a.next();!d.done;d=a.next())if(d=d.value,zl(d,2,Dec)){var e=hUa(Bl(d,Ir,2,Dec),b);switch(d.getId().getIdCase()){case 1:c.set(d.getId().getEmail(),e);break;case 2:c.set(d.getId().getPhone(),e);break;case 3:c.set(d.getId().getProfileId(),e)}}return{data:c,metadata:new cs}};T1.prototype.close=function(){};
var Oec=function(a){Z.call(this,a)};U(Oec,Z);Oec.prototype.toObject=function(){return Pec(void 0,this)};var Pec=function(a,b){if(null!=b){var c={leanAutocomplete:zec(a,m(b,O1,1))};a&&(c.$jspbMessageInstance=b);return c}},Qec=Bb(342338249,{leanOfflineData:0},Oec,Pec);rdc[342338249]=Qec;
var Rec=function(){};Rec.prototype.write=function(a,b){var c=new Oec;b=Db(c,1,b);Qec.setExtensionFn(a,b)};Rec.prototype.read=function(a){return(a=a.getExtension(Qec))?m(a,O1,1):null};
var U1=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=kUa("");this.trackers_=c;this.affinity_=Y(b.getPeopleApi(),5,0)};U1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};U1.prototype.send=function(a){var b=new Iec;b.setAffinityType(this.affinity_).setClientInformation((new Q1).setDevice(1));var c=this.grpcClient_;return uG(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Mec)};
U1.prototype.processResponse=function(){return{data:[],metadata:new cs}};U1.prototype.close=function(){};
var Sec=new vzb;
var V1=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};V1.prototype.send=function(a){var b=this;return ef(function(c){return b.runtimeConfig_.isOffline_()?c.return(Sec):c.return(b.delegate_.send(a))})};V1.prototype.getMetric=function(){return this.delegate_.getMetric()};V1.prototype.processResponse=function(a){return a===Sec?this.offlineResponse_:this.delegate_.processResponse(a)};V1.prototype.close=function(a){this.delegate_.close(a)};
var Tec={data:[],metadata:l(new cs,5,!0)},Uec={data:new Map,metadata:l(new cs,5,!0)};l(new cs,5,!0);
var Vec=function(a){Z.call(this,a)};U(Vec,Z);g=Vec.prototype;g.getTimestamp=function(){return hj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return gj(this,1)};g.getOwner=function(){return V(this,2)};g.setOwner=function(a){return l(this,2,a)};g.toObject=function(){return Wec(void 0,this)};var Wec=function(a,b){if(null!=b){var c={timestamp:n(p(b,1)),owner:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Xec=Bb(342656659,{metadata:0},Vec,Wec);
rdc[342656659]=Xec;
var W1=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null},Yec=function(a){var b,c;return ef(function(d){if(1==d.nextAddress)return Ut(d,2),ff(d,a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Xec);c=a.offlineMetadata_?z8b(a.offlineMetadata_.getOwner()):wr;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):
d.return(null)}Wt(d);return d.return(null)})};
W1.prototype.send=function(a){var b=this,c,d,e,f,h;return ef(function(k){switch(k.nextAddress){case 1:return Ut(k,2),ff(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Sec){k.jumpTo(5);break}return ff(k,Yec(b),6);case 6:return e=k.yieldResult,k.return(e||Sec);case 5:return setTimeout(function(){var q=new qdc;Br(q,Xec,(new Vec).setTimestamp(d).setOwner(String(b.owner_)));b.offlineDataTransformer_.write(q,c);b.offlineStorage_.store(q)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=
Wt(k),ff(k,Yec(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};W1.prototype.getMetric=function(){return this.delegate_.getMetric()};W1.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(this.offlineMetadata_.getTimestamp());return a};W1.prototype.close=function(a){this.delegate_.close(a)};
var X1=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(7===b.runtimeConfig_.getPeopleApiEnv()?V(b.getGapi(),2,""):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new L9b(b);a=wCa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Nec(a);this.offlineDataTransformer_=
new Rec};X1.prototype.loadRankedItems=function(){var a=new S1(this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new V1(a,this.config_.runtimeConfig_,Tec);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=new sr(1,e),b=hj(b.getPeopleApi(),14,5E3),a=new W1(a,d,c,e,b))}return N9b(this.dispatcher_,a)};
X1.prototype.loadAutocompleteItems=function(a){a=a?new S1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a):new U1(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new V1(a,this.config_.runtimeConfig_,Tec);return N9b(this.dispatcher_,a)};X1.prototype.loadLookupItems=function(a,b){a=new T1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new V1(a,this.config_.runtimeConfig_,Uec);return N9b(this.dispatcher_,a)};X1.prototype.loadContactItems=function(){};
var sUa=new Map([[1,1],[2,2]]);
var wUa=new Map([[3,3],[1,2],[2,1]]),Zec=new Map([[2,1],[4,2],[3,3],[1,4]]),$ec=function(a){this.delegate_=a};
$ec.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=b.getValue()||"";c=Qr(a.id).setValue(c);if(tb(b,K1,2).length||oj(b,3)){var d=1;if(tb(b,K1,2).length){var e=tb(b,K1,2)[0];p(e,1);d=Zec.get(e.getStatus())||d}oj(b,3)&&(e=m(b,Udc,3),Xo(e,1));4===(void 0===d?1:d)&&Date.now()}oj(b,4)&&(b=tUa(m(b,I1,4)),c.orgState_=b);Xo(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getDisplayValue()||p(b,2)||"";b=Qr(a.id).setValue(b);break;case 4:b=Bl(a.contactMethod,tr,4,ur);b=yUa(a,b);break;default:b=Qr(a.id||wr)}a.containerIds&&(b.sourceIds_=a.containerIds||[]);zUa(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(uUa(mba(p(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&xUa(b,a.contactMethod.getDisplayInfo());gj(a.contactMethod,10)&&(c=b,d=a.contactMethod.getTypeLabel(),e=new gdc,e.altText_=d||"",c.tags_=[e]);a.target=b}else a.group?
AUa(a,a.group.getDisplayInfo()):a.contactLabel&&AUa(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 afc=function(a,b){this.metrics_=a;this.state_=new eU(b)};g=afc.prototype;g.start=function(a){this.metrics_.start(this.state_,a)};g.stop=function(a){this.metrics_.stop(this.state_,a)};g.count=function(){this.metrics_.count(this.state_)};g.latency=function(){this.metrics_.latency(this.state_)};g.error=function(){this.metrics_.error(this.state_)};
g.status=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(b){var d=this.state_.source();l(d,13,b)}c&&(b=this.state_.source(),l(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};
var Y1=function(a){this.metrics_=a};Y1.prototype.error=function(a,b){var c=this.metrics_,d=new Jr;a=d.setEventType(3).setErrorType(a);l(a,7,b);return new Ccc(c,d)};Y1.prototype.latency=function(a){var b=this.metrics_,c=new Jr,d=c.setEventType(2);l(d,5,a);return new m0(b,c)};Y1.prototype.count=function(a){var b=this.metrics_,c=new Jr,d=c.setEventType(1);l(d,4,a);return new Bcc(b,c)};var Z1=function(a,b){return new Acc(a.metrics_,b)};Y1.prototype.rpc=function(a){return new afc(this.metrics_,a)};
var bfc=function(a,b){this.ranker_=new ycc(a.getClient());this.loader_=new X1(a,b);b=fdc;b=void 0===b?fdc:b;this.targetFactory_=new Cdc(a,new $ec(b))};
var cfc=function(){};cfc.prototype.suggest=function(){};var dfc=new cfc;
var efc=function(){};efc.prototype.create=function(){return dfc};var BUa=new efc;
var ffc=function(){this.createSmartAddressFactory_=CUa;this.cacheConfigurators_=[];this.grpcClient_=null};
var DUa=function(a){this.delegate_=a};U(DUa,o0);
var gfc=function(a){this.keys_=new Set(a)};gfc.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};gfc.prototype.isDone=function(){return!this.keys_.size};
var hfc=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new gfc(a)};hfc.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};hfc.prototype.isDone=function(){return this.delegate_.isDone()};var ifc=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};
var jfc=new cs,kfc=Promise.resolve(new ns),lfc=function(a,b){this.trieFactory_=a;this.indexes_=m1(hj(b,31,5),1E3*Cl(b,32,3600))};g=lfc.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};g.fetch=function(a){this.index(a,[],jfc);return kfc};g.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return(this.indexes_.get(b.cacheKey)||k1).search(a.getTerms()).getMatches(a.getCollector()).map(EUa)};
g.index=function(a){var b=a.getBoostKey();b.cacheKey&&(a=mfc(this.trieFactory_,new hfc(b.ids),a.getFormat()),this.indexes_.set(b.cacheKey,a))};
var nfc=new cdc(60,61,34);
var ofc=function(){};ofc.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;a=a.clientConfig.getClient();W(a,30,!1)&&(c=new lfc(c,a),b=new ddc(c,b,nfc),d.unshift(b))};
var pfc=function(){return Date.now()},qfc=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=qfc.prototype;g.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};g.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};g.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};g.getTimestamp=function(){return this.timestamp_};g.setTimestamp=function(a){this.timestamp_=a};
g.markAsFresh=function(){this.timestamp_=this.nowFn_()};
var GUa=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),FUa=new Map([[1,7],[2,5]]);
var rfc=function(a,b){this.delegate_=a;this.extendedData_=b};U(rfc,o0);
var sfc=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=Kq(this.group_.getId())?this.members_.length:c;this.resultType_=h$b.get(this.group_.getTargetType())||0};g=sfc.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return[this.group_]};g.getMemberList=function(){return this.members_};g.getTotalMemberCount=function(){return this.totalMemberCount_};g.getPrimaryTarget=function(){throw Error("Fe");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return g$b};
var tfc=function(a){this.delegate_=a};g=tfc.prototype;g.getDelegate=function(){return this.delegate_};g.getId=function(){return this.delegate_.getId()};g.getTargetType=function(){return this.delegate_.getTargetType()};g.getValue=function(){return this.delegate_.getValue()};g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getName=function(){return this.delegate_.getName()};g.getPhoto=function(){return this.delegate_.getPhoto()};
g.getSourceIdList=function(){return this.delegate_.getSourceIdList()};g.getProfileId=function(){return this.delegate_.getProfileId()};g.getContactId=function(){return this.delegate_.getContactId()};g.getLoggingToken=function(){return this.delegate_.getLoggingToken()};g.getIsPersonalResult=function(){return this.delegate_.getIsPersonalResult()};g.getOrgState=function(){return this.delegate_.getOrgState()};g.getDataSource=function(){return this.delegate_.getDataSource()};g.getOriginatingField=function(){return this.delegate_.getOriginatingField()};
var IUa=function(a,b){this.delegate_=a;this.loggingToken_=b};U(IUa,tfc);IUa.prototype.getLoggingToken=function(){return this.loggingToken_};
var ufc=function(a){this.itemResolver_=a};ufc.prototype.create=function(a,b){var c=this,d=z8b(a);a=a2(this.itemResolver_,a);if(!a)return null;if(Jq(d))return d=(a.memberKeys||[]).map(function(h){return c.create(h,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=2===b&&1<(null==(e=a.coalescedKeys)?void 0:e.length)?a.coalescedKeys.map(function(h){return a2(c.itemResolver_,h)}).filter(Boolean):[a];return vfc(f,d,b)};
var vfc=function(a,b,c){var d=[],e=0,f=null,h=null;a=r(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,u=q.getId().equals(b);if(!e||u)e=q.getResultType();q=JUa(q,k.provenance,c);u?(h=void 0,f=null!=(h=k.totalMemberCount)?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=Iq(e,d,f);return h?new rfc(b,h):b};
ufc.prototype.createGroup=function(a,b,c){c=JUa(a.target,a.provenance,c);var d,e=null!=(d=a.totalMemberCount)?d:null;b=new Hq(new sfc(c,null!=b?b:[],null!=e?e:null));return(a=a.resultExtendedData)?new rfc(b,a):b};
var KUa=[3,1,2,4,5,6,9,7,8],wfc=function(a,b){this.targetFactory_=a;this.resultFactory_=new ufc(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?pfc:d;this.expiry_=new qfc(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=m1(hj(b,6,500),1E3*hj(b,7,43200));this.idTypes_=new Set(lb(b,25))};wfc.prototype.load=function(a,b){return this.resultFactory_.create(a,b)};var a2=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)};g=wfc.prototype;
g.getExpiry=function(){return this.expiry_};g.getAffinityVersion=function(){return this.affinityVersion_};g.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(a.getTimestamp()):this.expiry_.markAsFresh();this.lruStorage_.compact()};g.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};
g.store=function(a,b,c){c=void 0===c?"":c;if(!this.idTypes_.size||!x8b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var d=!1,e=String(b.id),f=(b.containerIds||[]).map(String),h=xfc(this,a,e);yfc(this,a,e,b)&&(h(e,b),d=!0);f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,yfc(this,a,k,b)&&(h(k,b),d=!0);c&&e!==c&&yfc(this,a,c,b)&&(h(c,b),d=!0);d&&!b.target&&this.targetFactory_.processItem(b)}};
var yfc=function(a,b,c,d){var e=a2(a,c);if(!e)return!0;1===b&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return e.id.equals(d.id)?MUa(d)&&!MUa(e)||zfc(a,e)<zfc(a,d)||LUa(d)<LUa(e)||18===d.id.getType()&&18===e.id.getType()?!0:!1:String(d.id)===c},zfc=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},
xfc=function(a,b,c){return a.ttlStorage_.has(c)||1===b?function(d,e){return a.ttlStorage_.set(d,e)}:function(d,e){return a.lruStorage_.set(d,e)}};
var Afc=function(a,b){this.loader_=a;this.storage_=b;this.contacts_=[];this.totalItems_=0;this.pendingRequest_=null;this.requestId_=0;this.nextPageToken_="";this.isCompleted_=!1},Cfc=function(a){if(a.isCompleted_)return Promise.resolve(c1(new ns,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){Bfc(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
Afc.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var Bfc=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,Bdc).then(function(e){if(b!==a.requestId_)d(c1(new ns,!0).setProvenance(5).setCode(1));else{var f=e.metadata;a.totalItems_=f.getTotalItems();a.nextPageToken_=f.getNextPageToken();Array.prototype.push.apply(a.contacts_,e.ids);e=r(e.data);for(f=e.next();!f.done;f=e.next())a.storage_.store(1,f.value);a.nextPageToken_?Bfc(a,b,c,d):(a.totalItems_=a.contacts_.length,c(c1(new ns,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?
e:13;d(c1(new ns,!0).setProvenance(5).setCode(e))})};
Afc.prototype.list=function(a,b,c,d,e){var f=this,h=e.getFilter();h&&h.reset("");var k=function(){return{results:f.contacts_.slice(a,b).map(function(q){return f.storage_.load(String(q),c)}).filter(function(q){return q&&(!h||h.filterResult(q))}),begin:a,end:b,totalItems:f.totalItems_}};this.contacts_.length>=b?d(k(),c1(new ns,!1).setProvenance(5).setCode(0)):Cfc(this).then(function(q){d(k(),q)},function(q){q instanceof ns||(q=(new ns).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};
var OUa=function(a,b){this.delegate_=a;this.displayValue_=b};U(OUa,tfc);OUa.prototype.getDisplayValue=function(){return this.displayValue_};
var Yr=function(a,b){this.delegate_=a;this.targets_=b};U(Yr,o0);Yr.prototype.getTargetList=function(){return this.targets_};
var Dfc=function(a,b,c,d){this.format=b;this.listener=c;this.options=d;this.notFoundIds=new Map;this.callbackNumber=0;this.remainingIds=new Map(a.map(function(e){return[String(e),e]}))};g=Dfc.prototype;g.isCancelled=function(){return!1};g.getFormat=function(){return this.format};g.getOptions=function(){return this.options};g.queryScope=function(){return this.options.getQueryScope()};g.getResultFilter=function(){return this.options.getFilter()};g.isDone=function(){return 0===this.remainingIds.size};
g.notify=function(a,b,c){if(a.size||b.length||this.isDone()||0!==c.getCode()){a=PUa(a,this.options);for(var d=r(a.keys()),e=d.next();!e.done;e=d.next())this.remainingIds.delete(String(e.value));d=r(b);for(e=d.next();!e.done;e=d.next()){e=e.value;var f=String(e);this.notFoundIds.set(f,e);this.remainingIds.delete(f)}d=(new ncc).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode());d.notFoundIdList_=b;b=new occ(a,d);this.callbackNumber++;
this.listener(b,c)}};
var Efc=function(a,b){this.stages=a;this.indexer=b};Efc.prototype.flush=function(){this.indexer.flush()};
Efc.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,u,y;return ef(function(D){switch(D.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new Dfc(a,b,c,d),k=1===h.queryScope()||2===h.queryScope(),q=r(e.stages),u=q.next();case 2:if(u.done){D.jumpTo(4);break}y=u.value;if(k&&1!==y.getStageType()){D.jumpTo(3);break}if(h.isDone()){D.jumpTo(4);break}return ff(D,y.lookup(h),3);case 3:u=q.next();D.jumpTo(2);break;case 4:return h.isDone()||h.notify(new Map,Array.from(h.remainingIds.values()),
c1((new ns).setProvenance(10),!1).setCode(0)),e.indexer.compact(),D.return()}})};
var Ffc=function(){};Ffc.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!Z_(b))return null;b=Qr(new sr(1,b)).setValue(b).setDataSource(3);b=Iq(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};Ffc.prototype.createFromLookupId=function(a){if(1!==a.getType()||!Z_(a.getValue()))return null;a=Qr(a).setValue(a.originalValue_).setDataSource(3);return Iq(a.getResultType(),[a],null)};
var Gfc=function(){};Gfc.prototype.createFromQuery=function(){return null};Gfc.prototype.createFromLookupId=function(){return null};var Hfc=new Gfc;
var b2=function(a,b){this.storage=a;a=b.getClient();this.placeholderFactory=W(a,21,!1)?new Ffc:Hfc;this.notFoundIds=m1(hj(a,10,500),1E3*Cl(a,11,600))};b2.prototype.compact=function(){this.notFoundIds.compact()};b2.prototype.flush=function(){this.notFoundIds.clear()};
b2.prototype.store=function(a,b,c){if(!W(c,5))for(l(c,5,!0),b=r(b),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;c=String(eUa(a,String(c)));d=r(d);for(var e=d.next();!e.done;e=d.next())this.storage.store(2,e.value,c)}};b2.prototype.load=function(a,b,c,d,e){var f=String(a);if((b=this.storage.load(f,b))&&(!c||c.filterResult(b)))return b;if(e&&(a=this.placeholderFactory.createFromLookupId(a))&&(!c||c.filterResult(a)))return a;d||this.notFoundIds.set(f,f);return null};
var Ifc=new function(){this.ids=[];this.cacheKey=""};
var Jfc=function(){};Jfc.prototype.loadOrSkip=function(){return null};Jfc.prototype.resultCount=function(){return 0};Jfc.prototype.isDone=function(){return!0};var Kfc=new Jfc;
var Lfc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Kfc;this.boostKey_=Ifc;this.listener_=function(){}};g=Lfc.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.format_};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return!0};g.isCancelled=function(){return!0};
g.isSuggestQuery=function(){return!0};g.queryScope=function(){return 0};g.getResultFilter=function(){return null};var Mfc=new Lfc;
var Nfc=function(){this.fetchDone_=Promise.resolve((new ns).setCode(0))};g=Nfc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var Ofc=new Nfc;
var Pfc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||Ofc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
Pfc.prototype.prefetch=function(a){var b=this,c,d,e,f,h,k;return ef(function(q){if(1==q.nextAddress)return ff(q,b.primary_.fetch(a),2);c=q.yieldResult;if(0!==c.getCode())return q.return(c);d=r(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=r(b.prefetched_.filter(function(u){return u!==b.primary_}));for(e=h.next();!e.done;e=h.next())k=e.value,k.fetch(a);return q.return(c)})};
Pfc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new ns).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});2!==a.queryScope()&&c.push.apply(c,v(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Qfc=function(a){var b=[a.primary_].concat(v(a.prefetched_.filter(function(d){return d!==a.primary_})),v(a.lazyLoaded_)).reverse();b=r(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Rfc=function(a,b){var c=[];a=r(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;c.push.apply(c,v(d.search(b)))}return c},Tfc=function(a,b,c){var d,e,f,h;return ef(function(k){if(1==k.nextAddress){if(2===b.queryScope())return k.return();d=a.lazyLoaded_[a.lazyLoaded_.length-
1];e=r(a.lazyLoaded_);f=e.next()}if(3!=k.nextAddress){if(f.done)return k.jumpTo(0);h=f.value;return b.isDone()||b.isCancelled()?k.return():ff(k,Sfc(h,b,c,d===h),3)}f=e.next();return k.jumpTo(2)})},Sfc=function(a,b,c,d){var e,f;return ef(function(h){if(1==h.nextAddress)return 1===b.queryScope()?(e=c1((new ns).setProvenance(6).setCode(0),!1),h.jumpTo(2)):ff(h,a.fetch(b),3);2!=h.nextAddress&&(e=h.yieldResult);if(b.isCancelled())return h.return();f=a.search(b);c(f,e,d);gf(h)})};
var Ufc=function(a,b,c,d,e,f){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=f;this.lookupCache_=d;this.listCache_=e;this.prefixSearch_=c;this.serverWarming_=this.cacheWarming_=null};g=Ufc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};g.warmUpCache=function(){return c2(this,Mfc)};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return ef(function(k){switch(k.nextAddress){case 1:return ff(k,c2(b,a),2);case 2:return c=e1(new d1,d2(b)),Ut(k,3,4),b.serverWarming_||(b.serverWarming_=b.prefixSearch_.warmUpSession(a)),ff(k,b.serverWarming_,6);case 6:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new ns).setProvenance(2).setCode(0),k.return(f1(c.setSource(e),d2(b)));case 4:Xt(k);b.serverWarming_=null;Yt(k,0);break;case 3:return f=Wt(k),h=f instanceof
ns?f:(new ns).setProvenance(2).setCode(13),k.return(Promise.reject(f1(c.setSource(h),d2(b))))}})};
g.search=function(a){var b=this,c,d,e;return ef(function(f){switch(f.nextAddress){case 1:Vfc(b);Ut(f,2);if(!a.isSuggestQuery()){c=f1(e1((new d1).setSource(c1(new ns,!1).setProvenance(1).setCode(0)),d2(b)),d2(b));c2(b,a);f.jumpTo(4);break}return ff(f,c2(b,a),5);case 5:c=f.yieldResult;case 4:return ff(f,Wfc(b,a,c),6);case 6:Vt(f,0);break;case 2:d=Wt(f);if(a.isCancelled())return f.return();d instanceof d1?c=d:(e=d instanceof ns?d:(new ns).setCode(13),c=f1((new d1).setSource(e),d2(b)));a.getListener()(new h1([],
(new g1).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));gf(f)}})};
var Wfc=function(a,b,c){var d,e,f;return ef(function(h){if(1==h.nextAddress){if(b.isCancelled())return h.return();d=Rfc(a.prefixSearch_,b);e=b.isDone()||b.isSuggestQuery();if(d.length||e)if(b.getListener()(new h1(d,(new g1).setIsLastCallback(e).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c))),e)return h.return();f=!1;return ff(h,Tfc(a.prefixSearch_,b,function(k,q,u){u&&(f=!0);b.getListener()(new h1(k,(new g1).setIsLastCallback(u).setQuery(b.getPrefix()).setCode(q.getCode()).setCacheState(f1(e1((new d1).setSource(q),
p(c,2)),d2(a)))))}),2)}f||b.isCancelled()||b.getListener()(new h1([],(new g1).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(f1(e1((new d1).setSource((new ns).setProvenance(10).setCode(0)),p(c,2)),d2(a)))));gf(h)})};Ufc.prototype.lookup=function(a,b,c){var d=this;Vfc(this);c2(this,Mfc);var e=e1(new d1,d2(this));this.lookupCache_.lookup(a,Y(this.clientInfo_,17,1),function(f,h){e.setSource(h);f1(e,d2(d));f.getMetadata().setCacheState(e);b(f)},c)};
Ufc.prototype.list=function(a,b,c,d){var e=this;c2(this,Mfc);var f=e1(new d1,d2(this));this.listCache_.list(a,b,Y(this.clientInfo_,18,1),function(h,k){var q=h.results;var u=new kcc;u=l(u,1,h.begin);c(new lcc(q,u.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(f1(f.setSource(k),d2(e)))))},d)};
var c2=function(a,b){var c=d2(a),d=e1(new d1,c);if(a.storage_.getExpiry().isStale()){var e=a.storage_.getExpiry().isExpired();e&&a.storage_.getExpiry().getTimestamp()&&Xfc(a);a.cacheWarming_||(a.cacheWarming_=new Promise(function(f,h){var k,q,u;return ef(function(y){switch(y.nextAddress){case 1:return Ut(y,2,3),ff(y,a.prefixSearch_.prefetch(b),5);case 5:k=y.yieldResult,f1(d,d2(a)).setSource(k),f(d);case 3:Xt(y);a.cacheWarming_=null;Yt(y,0);break;case 2:q=Wt(y),u=q instanceof ns?q:(new ns).setCode(13),
f1(d,d2(a)).setSource(u),h(d),y.jumpTo(3)}})}));if(e)return a.cacheWarming_}return Promise.resolve(f1(d,c).setSource(c1((new ns).setProvenance(1),!1).setCode(0)))},d2=function(a){return a.storage_.getExpiry().getStatus()},Xfc=function(a){Qfc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},Vfc=function(a){var b=1===d2(a)?1:2;a.trackers_.count(b).increment()};
var Yfc=function(a){this.itemResolver_=a},Zfc=function(a,b,c){c=void 0===c?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,h=f.apply,k=e.split(qcc).filter(Boolean),q=k.length-1;if(0<q){var u=k.join(".");k.push(k.join("-"));for(k.push(u);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(JTa,""));"+"===e[0]&&k.push("+"+k[0]);h.call(f,c,v(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&10!==d.getTargetType())for(b=r(b.memberKeys),d=b.next();!d.done;d=b.next())(d=a2(a.itemResolver_,d.value))&&Zfc(a,d,c);return c};
var $fc=new mcc,agc=function(a,b){this.itemResolver_=a;this.lookupCache_=b;this.indexer_=new Yfc(a);this.trieRoots_=new Map},mfc=function(a,b,c){var d=(a.trieRoots_.get(c)||k1).cloneNode(b);b.isDone()||(b=ifc(b).map(z8b),a.lookupCache_.lookup(b,c,function(e){e=Array.from(e.getResults().keys(),String);e=bgc(a,e);Array.prototype.push.apply(d.items_,e);scc(d)},$fc));return d},cgc=function(a,b){a=bgc(a,b);return new j1(a)},bgc=function(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;
var e=a2(a.itemResolver_,d);e&&(e=Zfc(a.indexer_,e),c.push(new rcc(d,e)))}return c};
var dgc=function(){this.queryId_=0};dgc.prototype.getQueryId=function(){return this.queryId_};
var egc=function(a){this.delegate=a};g=egc.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(){return this.delegate.warmUpCache()};g.warmUpSession=function(a){var b=this;return ef(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return ef(function(c){return c.return(b.delegate.search(a))})};
g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};g.list=function(a,b,c,d){this.delegate.list(a,b,c,d)};
var fgc=function(a,b){this.delegate_=a;this.name_=b};U(fgc,tfc);fgc.prototype.getName=function(){return this.name_};
var ggc=function(){};ggc.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return 0===c.length?null:c.length===a.getTargetList().length?a:new Hq(new Yr(a,c))};ggc.prototype.reset=function(){};
var Zr=function(a){this.types_=a};U(Zr,ggc);Zr.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};Zr.prototype.reset=function(){};var RUa=function(a){this.filters_=a};RUa.prototype.filterResult=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};RUa.prototype.reset=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var hgc=$r();
var igc=function(){this.delegate=hgc};igc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};igc.prototype.reset=function(a){this.delegate.reset(a)};var jgc=function(a,b){a.delegate=null!=b?b:hgc};
var kgc=function(a){this.delegate=a};g=kgc.prototype;g.getPrefix=function(){return this.delegate.getPrefix()};g.getTerms=function(){return this.delegate.getTerms()};g.getFormat=function(){return this.delegate.getFormat()};g.getCollector=function(){return this.delegate.getCollector()};g.getBoostKey=function(){return this.delegate.getBoostKey()};g.getListener=function(){return this.delegate.getListener()};g.isDone=function(){return this.delegate.isDone()};g.isCancelled=function(){return this.delegate.isCancelled()};
g.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};g.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};
var e2=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};e2.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};e2.prototype.resultCount=function(){return this.count_};e2.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};
var lgc=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();0<c.limit&&(d=new e2(d,c.limit));this.collector=d;this.listener=function(h){var k=h.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(h)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?$r.apply(null,v(d)):null;var f;this.scope=null!=(f=c.scope)?f:a.queryScope()};U(lgc,kgc);g=lgc.prototype;g.getCollector=function(){return this.collector};
g.getListener=function(){return this.listener};g.isDone=function(){return this.collector.isDone()};g.getResultFilter=function(){return this.resultFilter};g.queryScope=function(){return this.scope};
var mgc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};U(mgc,egc);
mgc.prototype.search=function(a){var b=this,c,d,e,f,h;return ef(function(k){switch(k.nextAddress){case 1:c=b.slots,c=a.isSuggestQuery()?c.filter(function(q){return 2!==q.visibility}):c.filter(function(q){return 1!==q.visibility}),d=c.map(function(q,u){return new lgc(a,b.originalFilter,q,u===c.length-1)}),e=r(d),f=e.next();case 2:if(f.done){k.jumpTo(4);break}h=f.value;if(a.isCancelled()||a.isDone()){k.jumpTo(4);break}jgc(b.filterInterceptor,h.getResultFilter());return ff(k,b.delegate.search(h),3);
case 3:f=e.next();k.jumpTo(2);break;case 4:return k.return()}})};
var f2=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=KTa([b]);this.id_=new sr(1,b);this.listener_=function(e){var f=e.getResults().map(function(h){if(d.id_.equals(h.getPrimaryTarget().getId())&&h.getDisplayName()!==c){var k=(new vUa).setDisplayName(c),q=h.getPrimaryTarget();h=NUa(h,new fgc(q,k))}return h});e=new h1(f,e.getMetadata());a.getListener()(e)}};U(f2,kgc);f2.prototype.getPrefix=function(){return this.query_};f2.prototype.getTerms=function(){return this.terms_};
f2.prototype.getListener=function(){return this.listener_};
var ngc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new dgc;this.clientInfo_=c};g=ngc.prototype;g.warmUpSession=function(a){a=ogc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=ogc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=ogc(this.queryFactory_,a,this.querySession_,c,b);W(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=p8b(b),c.isValid()||(c=p8b(b+">")),a=c.isValid()&&c.getName()?new f2(a,c.getAddress(),c.getName()):a));this.cache_.search(a)};g.cancel=function(){++this.querySession_.queryId_};g.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
var g2=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=W(c,34,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new igc;e.setFilter(q);e=new mgc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};g2.prototype.warmUpCache=function(){return this.cache_.warmUpCache()};g2.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};g2.prototype.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};
g2.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new ngc(a,this.queryFactory_,this.clientInfo_)};
var pgc=function(a){this.ids=a.map(String);this.cacheKey=$Ta(this.ids)+":"+this.ids.length};
var qgc=function(a,b,c,d,e,f,h){var k=this;this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=h;this.delegateListener_=f;this.callbackNumber_=0;this.listener_=function(q){if(!k.isCancelled()){var u=q.getMetadata();u.setCallbackNumber(k.callbackNumber_);u.setIsFirstCallback(!k.callbackNumber_);k.isDone()&&u.setIsLastCallback(!0);if(q.getResults().length||u.getIsLastCallback()||0!==u.getCode())k.callbackNumber_++,k.delegateListener_(q)}}};g=qgc.prototype;
g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.delegate_.getFormat()};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return this.collector_.isDone()};g.isCancelled=function(){return this.delegate_.isCancelled()};g.isSuggestQuery=function(){return!this.prefix_};g.queryScope=function(){return this.delegate_.queryScope()};
g.getResultFilter=function(){return this.filter_};
var rgc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};rgc.prototype.getFormat=function(){return this.format_};rgc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};rgc.prototype.queryScope=function(){return this.queryScope_};
var h2=function(){this.foundKeys_=new Set};U(h2,ggc);h2.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};h2.prototype.has=function(a){return this.foundKeys_.has(a)};h2.prototype.add=function(a){this.foundKeys_.add(a)};h2.prototype.reset=function(){this.foundKeys_.clear()};
var sgc=function(a){this.delegate_=a;this.filter_=new h2};sgc.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=r(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};sgc.prototype.resultCount=function(){return this.delegate_.resultCount()};sgc.prototype.isDone=function(){return this.delegate_.isDone()};
var tgc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};tgc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};tgc.prototype.resultCount=function(){return this.delegate_.resultCount()};tgc.prototype.isDone=function(){return this.delegate_.isDone()};
var ugc=function(a,b){this.storage_=a;this.format_=b};ugc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};ugc.prototype.resultCount=function(){return 0};ugc.prototype.isDone=function(){return!1};
var vgc=[198,230,306,307,338,339],wgc=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)"+Un(b),"g")})},SUa=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=rr(b),e=d.indexOf("@");a=r(a.matchers_);for(var f=a.next();!f.done;f=a.next()){f=f.value;f.lastIndex=0;for(var h=f.exec(d);h;h=f.exec(d)){h=h.index;if(0<=
e&&h>e)break;c.push([h,f.lastIndex])}}c.sort(function(k,q){return k[0]-q[0]});for(e=c.length-1;0<e;e--)a=c[e-1],f=c[e],a[1]>=f[0]&&(a[1]=f[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(a=0;a<b.length;a++)f=b.codePointAt(a),65535<f||768<=f&&879>=f?(d.push(a),a++):vgc.includes(f)&&e.push(a);b=r(c);for(a=b.next();!a.done;a=b.next()){a=a.value;f=r(d);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]++,h<a[1]&&a[1]++;f=r(e);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&
a[0]--,h<a[1]&&a[1]--}}return c};
var as=function(a,b){this.start_=a;this.end_=b};as.prototype.getStart=function(){return this.start_};as.prototype.getEnd=function(){return this.end_};
var bs=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};bs.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};bs.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};bs.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};
var i2=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new i2(c,b)});this.matchInfo_=null};U(i2,o0);i2.prototype.getMemberList=function(){return this.memberList_};i2.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=TUa(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};
var xgc=function(a,b){this.delegate_=a;this.matcher_=new wgc(b)};xgc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new i2(a,this.matcher_):null};xgc.prototype.resultCount=function(){return this.delegate_.resultCount()};xgc.prototype.isDone=function(){return this.delegate_.isDone()};
var ygc=/\s+/g,zgc=function(a,b){this.clientInfo_=a;this.storage_=b},ogc=function(a,b,c,d,e){var f=KTa([b]);b=(b||"").replace(ygc," ").trim();var h=!f.length,k=h?Y(a.clientInfo_,15,1):Y(a.clientInfo_,16,1),q=h?hj(a.clientInfo_,1,5):hj(a.clientInfo_,2,5);h=d.boostIds_;h=h.length?new pgc(h):Ifc;var u=d.getFilter();a=new ugc(a.storage_,k);u&&(a=new tgc(a,u,b));a=new sgc(a);a=new e2(a,q);a=f.length?new xgc(a,f):a;d=d.getQueryScope();c=new rgc(k,c,d);return new qgc(c,b,f,a,h,e,u)};
var Agc=function(a){this.fetcher=a};Agc.prototype.getStageType=function(){return 2};
Agc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,y;return ef(function(D){switch(D.nextAddress){case 1:c=VUa(Array.from(a.remainingIds.values())),d=r(c),e=d.next();case 2:if(e.done){D.jumpTo(4);break}f=e.value;h=r(f);k=h.next().value;q=h.next().value;u=k;y=q;if(!u){D.jumpTo(3);break}return ff(D,b.fetcher.fetch(y,u,a.getFormat(),function(I,N,L){a.notify(I,N,L)},a.getOptions()),3);case 3:e=d.next();D.jumpTo(2);break;case 4:return D.return()}})};
var Bgc=function(a,b){this.delegate=a;this.maxLookupChunkSize=ydc(b)};Bgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return ef(function(u){switch(u.nextAddress){case 1:var y=f.maxLookupChunkSize;if(a.length)if(a.length<=y)y=[a];else{for(var D=[],I=0;I<a.length;I+=y){var N=a.slice(I,I+y);N.length&&D.push(N)}y=D}else y=[];h=r(y);k=h.next();case 2:if(k.done){u.jumpTo(4);break}q=k.value;return ff(u,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();u.jumpTo(2);break;case 4:return u.return()}})};
var Cgc=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Cgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,u,y,D,I,N,L,S,X,ka,ha;return ef(function(ra){switch(ra.nextAddress){case 1:return h=3===b?4:3,k=c1((new ns).setProvenance(h),!0).setCode(0),q=!0,Ut(ra,2),ff(ra,f.loader.loadLookupItems(b,a.map(function(Da){return Da.originalValue_}),Bdc),4);case 4:u=ra.yieldResult;q=W(u.metadata,5);try{f.indexer.store(b,u.data,u.metadata)}catch(Da){f.trackers.error(21,10).report(),k.setCode(13),q=!0}Vt(ra,3);break;case 2:y=Wt(ra),D=Number(y),k.setCode(isFinite(D)&&
D?D:13),q=!0;case 3:I=e.getFilter();N=[];L=new Map;S=r(a);for(X=S.next();!X.done;X=S.next())ka=X.value,(ha=f.indexer.load(ka,c,I,q,!0))?L.set(ka,ha):N.push(ka);d(L,N,k);return ra.return()}})};
var Dgc=function(a){this.indexer=a};Dgc.prototype.getStageType=function(){return 1};
Dgc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return ef(function(q){c=new Map;d=[];e=r(Array.from(a.remainingIds.values()));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getResultFilter(),!0,!1))c.set(h,k);else{var u=b.indexer;a:switch(h.getType()){case 1:case 6:var y=Z_(h.getValue().trim());break a;case 2:case 7:y=h.getValue().replace(r8b,"");y=3<=y.length&&"0"<=y[0]&&"9">=y[0];break a;default:y=!0}(y?u.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,
d,c1((new ns).setProvenance(6),!1).setCode(0));return q.return()})};
var Egc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.placeholderFactory_=W(e,21,!1)?new Ffc:Hfc;this.indexes_=m1(hj(e,8,250),1E3*Cl(e,9,3600));this.notFound_=m1(hj(e,10,500),1E3*Cl(e,11,600))};g=Egc.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear();this.notFound_.clear()};
g.fetch=function(a){var b=this,c,d,e,f,h;return ef(function(k){switch(k.nextAddress){case 1:c=c1(new ns,!0).setProvenance(2).setCode(0);if(b.indexes_.has(a.getPrefix())||b.notFound_.has(a.getPrefix()))return k.return(c1(c,!1));if(!Z_(a.getPrefix()))for(d=a.getPrefix().length;0<d;d--)if(b.notFound_.has(a.getPrefix().substr(0,d)))return k.return(c1(c,!1));e=a.getPrefix()?Bdc:Adc;Ut(k,2);return ff(k,b.loader_.loadAutocompleteItems(a.getPrefix(),e),4);case 4:f=k.yieldResult;Vt(k,3);break;case 2:return h=
Wt(k),k.return(c.setCode(isFinite(h)?h:13));case 3:try{b.index(a,f.data,f.metadata)}catch(q){return k.return(c.setCode(13))}return k.return(c)}})};g.search=function(a){return a.isSuggestQuery()?[]:this.indexes_.has(a.getPrefix())?this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector()):(a=this.placeholderFactory_.createFromQuery(a))?[a]:[]};
g.index=function(a,b,c){if(!W(c,5)&&(l(c,5,!0),!a.isSuggestQuery()))if(b.length){c=zcc(this.ranker_,b,1);b=r(b);for(var d=b.next();!d.done;d=b.next())this.storage_.store(1,d.value);c=cgc(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
var Fgc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};g=Fgc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return ef(function(h){switch(h.nextAddress){case 1:return c=c1(new ns,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Bdc:Adc,Ut(h,2),ff(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;Vt(h,3);break;case 2:return f=Wt(h),h.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return h.return(c)}})};
g.search=function(a){return a.isSuggestQuery()||a.getTerms().length?(this.indexes_.get(a.getFormat())||k1).search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!W(c,5)){l(c,5,!0);a=1!==this.coalescedSortOrder_?zcc(this.ranker_,b,this.coalescedSortOrder_):null;var d=zcc(this.ranker_,b,1);this.storage_.flush();b=r(b);for(var e=b.next();!e.done;e=b.next())this.storage_.store(1,e.value);this.storage_.markAsFresh(c);c=cgc(this.trieFactory_,d);a=a?cgc(this.trieFactory_,a):c;this.indexes_.set(1,c);this.indexes_.set(2,a)}};
var Ggc=new cdc(27,32,33),Hgc=new cdc(24,23,20);
var Igc=function(){};Igc.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,u=a.clientConfig.getClient();if(0<u.getCacheSize()){var y=Y(u,19,1);y=new Fgc(e,q,f,c,y);y=new ddc(y,b,Hgc);h.push(y);k.push(new Dgc(d))}0<hj(u,2,5)&&(c=new Egc(e,q,f,c,u),b=new ddc(c,b,Ggc),h.push(b));h=new Cgc(a.trackers,a.loader,a.indexer);h=new Bgc(h,a.clientConfig);k.push(new Agc(h))};
var Jgc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};Jgc.prototype.getId=function(){return this.id_};Jgc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var j2=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};j2.prototype.getIdType=function(){return this.idType_};j2.prototype.getOptions=function(){return this.options_};
j2.prototype.getKeys=function(){var a=this;return this.ids_.map(function(b){return new Jgc(a.getIdType(),b,a.getOptions())})};var Kgc=function(a,b){a.ids_=b;return a};j2.prototype.setIdType=function(a){this.idType_=a};j2.prototype.setOptions=function(){this.options_=void 0};j2.prototype.clone=function(){var a=this.getIdType(),b=this.getOptions();return new j2(a,this.ids_,b)};
var k2=function(a,b){this.ids_=new Set(b.ids_);this.parameters_=b.clone();this.loader_=a;this.resolver_=new H9b;this.isSent_=!1};k2.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(Kgc(this.parameters_,a)).then(this.resolver_.resolve,this.resolver_.reject)}};k2.prototype.promise=function(){return this.resolver_.promise};
k2.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.ids_.length+this.ids_.size>b)return!1;a=r(a.ids_);for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};
var Lgc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=ydc(c);this.lastRequestCreationTime_=0};
Lgc.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 k2(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;ND(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},30<d?0:30)}return this.batchedRequest_.promise()};
var Mgc=function(a,b){this.delegate_=a;this.inflightRequests_=ucc();this.tracker_=b};
Mgc.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=r(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getIndex();this.inflightRequests_.has(h)?c.add(this.inflightRequests_.get(h)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=Kgc(a.clone(),d);var q=new k2(this.delegate_,k);q.send();c.add(q);a=r(k.getKeys());for(f=a.next();!f.done;f=a.next())this.inflightRequests_.set(f.value.getIndex(),
q);q.promise().catch(function(){}).finally(function(){for(var u=r(k.getKeys()),y=u.next();!y.done;y=u.next())b.inflightRequests_.delete(y.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(u){return u.promise()})).then(function(u){return q?q.promise().then(function(y){return WUa(u,y.metadata)}):WUa(u)})};
var Ngc=function(a){this.peopleLoader_=a};Ngc.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.ids_,a.getOptions())};
var Ogc=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};Ogc.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new Ngc(this.peopleLoader_);b=new Lgc(b,this.tracker_,this.clientConfig_);b=new Mgc(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};
var l2=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new Ogc(this.delegate_,this.trackers_,c)},Pgc=function(a,b,c,d){var e,f;return ef(function(h){if(1==h.nextAddress){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),h.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);h.catchAddress_=0;h.finallyAddress_=2;return ff(h,f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Xt(h);a.searchRequests_.delete(e);
return Yt(h,0)})};l2.prototype.loadRankedItems=function(a){var b=this;return Pgc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};l2.prototype.loadAutocompleteItems=function(a,b){var c=this;return Pgc(this,82,a,function(){return c.delegate_.loadAutocompleteItems(a,b)})};l2.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new j2(a,b,c))};l2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var Qgc=function(){return Date.now()},m2=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*Cl(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*Cl(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};m2.prototype.loadRankedItems=function(a){var b=a.qos;var c=this.nowFn_();1===b&&this.lastCacheFlush_+this.cacheFlushRateMillis_>c?b=!0:(this.lastCacheFlush_=c,b=!1);return b?Promise.reject(1):this.delegate_.loadRankedItems(a)};
m2.prototype.loadAutocompleteItems=function(a,b){var c=b.qos;var d=this.nowFn_();1===c&&this.lastServerWarmup_+this.serverWarmupRateMillis_>d?c=!0:(this.lastServerWarmup_=d,c=!1);return c?Promise.reject(1):this.delegate_.loadAutocompleteItems(a,b)};m2.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};m2.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var n2=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};n2.prototype.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};n2.prototype.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};n2.prototype.cancel=function(){this.delegate_.cancel();return this};n2.prototype.getReporter=function(a){a=void 0===a?W$b:a;return this.delegate_.getReporter(a)};
var Rgc=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=Kq(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};U(Rgc,o0);Rgc.prototype.getMemberList=function(){return this.members_};Rgc.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};
var Sgc=function(a){this.filter_=a};Sgc.prototype.filterResult=function(a){var b=this;if(!Kq(a.getPrimaryTarget().getId()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return 0===c.length?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:new Hq(new Rgc(a,c))};Sgc.prototype.reset=function(a){this.filter_.reset(a)};var ds=function(a){this.filter_=$r(a,new Sgc(a))};ds.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
ds.prototype.reset=function(a){this.filter_.reset(a)};
var o2=function(a){this.delegate_=a};o2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof d1&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};o2.prototype.lookup=function(a,b,c){c=void 0===c?new mcc:c;c.setFilter(XUa(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
o2.prototype.list=function(a,b,c,d){d=void 0===d?new jcc:d;d.setFilter(XUa(d.getFilter()));this.delegate_.list(a,b,c,d);return this};o2.prototype.beginSession=function(a,b){b=void 0===b?new cr:b;b=b.clone();b.setFilter(XUa(b.getFilter()));var c=this.delegate_.beginSession(b);return new n2(c,a,b)};
var Tgc=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]]),Ugc=new Map([[2,13],[3,6]]),Vgc=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 YUa=new Map([[1,1],[2,3],[3,5]]),Wgc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[10,20]]),Xgc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[10,20]]),Ygc=function(a,b){this.logContext_=$Ua(a,b)};g=Ygc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new o1;switch(d.getEventType()){case 1:d=e.setCount;b=Y(b.source(),4,0);var f=new p1;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=Y(b.source(),3,0);d=new s1;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=Y(b,2,0);f=new u1;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());b.hasLookupInfo()&&
f.setLookupInfo(b.getLookupInfo());b.hasQueryScope()&&f.setQueryScope(b.getQueryScope());f.setLabel(d);c.call(e,f);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=new o1;switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=Y(f,3,0);var k=Y(f,13,0)||0;k=Ugc.get(k)||Tgc.get(c)||0;var q=b.durationUsec("blocked"),u=b.durationUsec("network"),y=b.durationUsec("processed");b=new t1;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(u);l(b,9,y);b.setStatusCode(c);hj(f,12,0)&&(c=hj(f,12,0),l(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();
k=Y(h,2,0);f=new v1;f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());h.hasLookupInfo()&&f.setLookupInfo(h.getLookupInfo());h.hasQueryScope()&&f.setQueryScope(h.getQueryScope());0===c&&(b=b.durationUsec("total"),f.setLatencyUsec(b));c=Vgc.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=ZUa(p(b,2)),l(f,5,c),c=ZUa(p(b,3)),l(f,6,c),c=f.setDataSource,h=b.getSource(),b=
!W(h,1),h=h.getProvenance(),b=(b?Xgc.get(h):Wgc.get(h))||0,c.call(f,b);d.call(e,f);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};
g.createLatencyMetric=function(a,b){var c=b.source();if(2!==c.getEventType())return null;var d=new o1;d.setClientInterface(a);a=d.setLatency;var e=Y(b.source(),5,0);if(37===e||38===e||40===e){e=Y(b.source(),5,0);var f=b.durationUsec("LATENCY_A");b=b.durationUsec("LATENCY_B");b=null!=f&&null!=b?f-b:NaN;f=new q1;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=b.durationUsec("total"),f=new q1,f.setType(e),f.setLatencyUsec(b),e=f;a.call(d,e);d.setEventType(c.getEventType());return d};
g.createErrorMetric=function(a,b){var c=b.source();if(3!==c.getEventType())return null;var d=new o1;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=Y(e,7,0);var f=new r1;f.setType(b);l(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};
var Zgc=function(a,b){this.delegate_=a;this.trackers_=b};g=Zgc.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=void 0===b?new t0:b;this.delegate_.reportSelect(a,b)};g.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};g.reportDeselect=function(a){this.delegate_.reportDeselect(a)};g.reportProceed=function(a){this.delegate_.reportProceed(a)};g.reportDismiss=function(){this.delegate_.reportDismiss();$gc(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);$gc(this)};g.reportSend=function(a){this.delegate_.reportSend(a);$gc(this)};var $gc=function(a){a=a.trackers_;var b=new Jr;Lr(b.setEventType(6),3);Z1(a,b).call()};
var ahc=function(a,b){this.delegate_=a;this.trackers_=b};g=ahc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};
g.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=Z1(this.trackers_,qUa(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d?c.trackers_.error(22,19).report():d=!0);k.getIsLastCallback()&&(e?c.trackers_.error(22,20).report():e=!0);k=c.trackers_.latency(90);k.start();try{a(h)}catch(u){throw c.trackers_.error(22,
11).report(),u;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
g.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=Z1(this.trackers_,pUa(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().length);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e?d.trackers_.error(23,19).report():e=!0);q.getIsLastCallback()&&(f?d.trackers_.error(23,20).report():f=!0);q=d.trackers_.latency(91);q.start();try{b(k)}catch(y){throw d.trackers_.error(23,
11).report(),y;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};g.getReporter=function(a){a=this.delegate_.getReporter(a);return new Zgc(a,this.trackers_)};g.getSessionState=function(){return this.delegate_.getSessionState()};
var p2=function(a,b){this.delegate_=a;a=this.trackers_=b;b=new Jr;Lr(b.setEventType(6),1);Z1(a,b).call()};p2.prototype.warmUpCache=function(){var a=this,b=Z1(this.trackers_,oUa());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof d1?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new d1).setSource((new ns).setCode(2)));return Promise.reject(c)})};
p2.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=Z1(this.trackers_,mUa(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().size);for(var y=0,D=0,I=0,N=r(k.getResults().keys()),L=N.next();!L.done;L=N.next()){var S=L.value;u8b.includes(S.getType())?y++:v8b.includes(S.getType())?D++:w8b.includes(S.getType())&&I++}var X=0;N=S=0;var ka=r(q.notFoundIdList_);for(L=ka.next();!L.done;L=
ka.next())L=L.value,u8b.includes(L.getType())?X++:v8b.includes(L.getType())?S++:w8b.includes(L.getType())&&N++;L=h.source.getLookupInfo();y=l(L,2,y);D=l(y,1,D);I=l(D,3,I);I=l(I,5,X);I=l(I,4,S);l(I,6,N);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e?d.trackers_.error(8,19).report():e=!0);q.getIsLastCallback()&&(f?d.trackers_.error(8,20).report():f=!0);q=d.trackers_.latency(89);q.start();try{b(k)}catch(ha){throw d.trackers_.error(8,11).report(),ha;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(8,
1).report(),k;}};p2.prototype.list=function(a,b,c,d){var e=this;try{var f=Z1(this.trackers_,nUa());f.call();this.delegate_.list(a,b,function(h){var k=h.getMetadata().getCacheState();f.source.setCacheState(k);f.result(k.getSource().getCode());try{c(h)}catch(q){throw e.trackers_.error(27,11).report(),q;}},d)}catch(h){throw this.trackers_.error(27,1).report(),h;}};
p2.prototype.beginSession=function(a){var b=this.trackers_,c=new Jr;Lr(c.setEventType(6),2);Z1(b,c).call();a=this.delegate_.beginSession(a);return new ahc(a,this.trackers_)};
var bhc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};bhc.prototype.report=function(a){var b=fU(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=r(a);for(b=a.next();!b.done;b=a.next())gU(this.clearcut_,b.value)};
var chc=function(a){this.clearcut_=a};chc.prototype.report=function(a){this.clearcut_.report(a)};
var dhc=function(a){this.writer_=a},fhc=function(a,b,c){var d=new QT,e=a.writer_,f=d.getMetadata()||new RT;d.setMetadata(f);var h=Qq(b)||new Wr;a=m(b,Xr,1)||new Xr;e.metadataStateWriter_.write(f,h,(W(a,9,!0)?hj(h,2,0):hj(h,1,0))||0,ehc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=m(d,ST,4)||new ST;Db(d,4,b);m(d,ST,4).setType(a.getFieldType());d.setLoggingId(a.getFieldLoggingId());return d};
var ghc=function(){};
ghc.prototype.create=function(a,b,c){var d=new XT,e=hj(b,3,0);l(d,1,e);e=hj(b,4,0);l(d,2,e);e=hj(b,5,0);l(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersion());e=new VT;Db(e,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new WT;d=BCa(Cl(b,9,0)-Cl(b,8,0));l(f,2,d);d=new OT;Db(d,1,e);Db(d,6,f);e=new uTb;if(f=hj(b,6,0)){l(e,3,1E3*f);var h=1E3*(Date.now()-f);l(e,2,h)}l(e,1,!!f);Db(d,3,e);d.setAffinityVersion(b.getAffinityVersion());b=
new qTb;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};
var hhc=function(){};hhc.prototype.extractPersonEventSource=function(a){return p(aVa(a),4)};hhc.prototype.extractFieldEventSource=function(a){return p(aVa(a),3)};
var ihc=function(){};ihc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new is;return(a.getQuery()||"").length?p(b,2):p(b,4)};ihc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new is;return(a.getQuery()||"").length?p(b,1):p(b,3)};
var jhc=function(){};jhc.prototype.extractPersonEventSource=function(a){return p(bVa(a),4)};jhc.prototype.extractFieldEventSource=function(a){return p(bVa(a),3)};
var khc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};
var lhc=new Map([[1,11],[2,12],[0,0]]),mhc=function(){};mhc.prototype.write=function(a,b,c){var d=new TT;l(d,1,c);c=new YT;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Db(a,8,c);b=[lhc.get(b.getContext())];ml(a,3,b)};
var nhc=new Map([[1,5],[2,4],[3,6],[7,13]]),ohc=function(){};ohc.prototype.write=function(a,b,c,d){var e=new TT;l(e,1,c);a.setPosition(e);c=nhc.get(b.getProvenance())||0;d||1===Y(b,4,0)?c=3:2===Y(b,4,0)&&(c=10);ml(a,3,[c])};
var phc=new Set([9,1,2]),qhc=function(){};qhc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&phc.has(d))c=new ST,1!==b.getFieldType()&&7!==b.getFieldType()||c.setEmail(p(b,3)),2!==b.getFieldType()&&5!==b.getFieldType()||c.setPhone(p(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Db(a,4,c),c=new UT,c.setName(b.getName()),b=a.getMetadata()||new RT,Db(b,2,c),a.setMetadata(b)};
var rhc=function(a){var b=new qhc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},ehc=function(a){var b=m(a,Xr,1);if(null==b?0:b.getIsPlaceholder())return!0;var c;a=rr(((null==(c=a.getSessionState())?void 0:c.getQuery())||"").trim());b=rr(((null==b?void 0:p(b,3))||"").trim());return!!a&&a===b};
var ls=function(a){Z.call(this,a,-1,shc)};U(ls,Z);g=ls.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getSessionState=function(){return m(this,X_,2)};g.setSessionState=function(a){Db(this,2,a)};g.hasSessionState=function(){return oj(this,2)};var fVa=function(a,b){Db(a,4,b)},shc=[3];
ls.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),sessionState:f8b(void 0,this.getSessionState()),tokensList:Eb(tb(this,Vr,3),c8b),eventSources:W_(void 0,m(this,is,4))}:void 0;return a};
var thc=new Set([8]),uhc=function(){this.defaultEntityFactory_=new dhc(new rhc(new ohc));this.contextualEntityFactory_=new dhc(new rhc(new mhc));this.extensionFactory_=new ghc;this.defaultEventSourceExtractor_=new ihc;this.additionEventSourceExtractor_=new hhc;this.replacementEventSourceExtractor_=new jhc};
uhc.prototype.create=function(a,b){var c=b.getSessionState()||new X_,d=b.getEventType();b=tb(b,Vr,3);var e=ks(b,dVa);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(v(ks(f,cVa).values())):[];b=b?[].concat(v(ks(b,cVa).values())):[];e=e?[].concat(v(ks(e,cVa).values())):[];f=new khc(f,b,e);b=[];var h=r(f.defaultTokenGroups_);for(e=h.next();!e.done;e=h.next())b.push.apply(b,v(vhc(this,a,d,e.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));h=r(f.additionTokenGroups_);for(e=h.next();!e.done;e=
h.next())b.push.apply(b,v(vhc(this,a,d,e.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));f=r(f.replacementTokenGroups_);for(e=f.next();!e.done;e=f.next())b.push.apply(b,v(vhc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var vhc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(y){var D=new QT,I=h.writer_,N=D.getMetadata()||new RT;D.setMetadata(N);var L=Qq(y)||new Wr,S=m(y,Xr,1)||new Xr;I.metadataStateWriter_.write(N,L,hj(L,2,0)||0,ehc(y));I.contactInfoWriter_.write(D,S,c,L.getProvenance()||0);D.setLoggingId(S.getPersonLoggingId());y=m(D,ST,4)||new ST;Db(D,4,y);y.setType(p(S,8));return D});k.push(whc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=r(d);for(var u=d.next();!u.done;u=
d.next())u=u.value,oj(u,1)&&thc.has(m(u,Xr,1).getFieldType())||q.push(fhc(h,u,c));q.length&&k.push(whc(a,b,c,f.extractFieldEventSource(e),q,e));return k},whc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);Cb(a,2,e);return a};
var xhc=function(a,b){this.logContext_=es(fs(new gs,"PeopleStore.BigBug").setLogSource(Y(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1002").setBaselineCl(449361830).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(v(a.runtimeConfig_.getExperiments().getExperimentIdsList()),v(hs?hs.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new uhc};xhc.prototype.getLogContext=function(){return this.logContext_};
var yhc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};yhc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new xhc(this.clientConfig_,a),a=new chc(new bhc(HUb(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};
var zhc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=zhc.prototype;g.reportDisplay=function(a){q2(this,ms(a,1))};g.reportSelect=function(a,b){b=void 0===b?new t0:b;if(0!==b.getOriginator())for(var c=r(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!oj(d,2)){var e=new Wr;Db(d,2,e)}d=Qq(d);l(d,4,b.getOriginator())}b=hj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);q2(this,ms(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=r(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!oj(c,2)){var d=new Wr;Db(c,2,d)}c=Qq(c);l(c,4,2)}b=hj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);q2(this,ms(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){q2(this,ms(a,17,this.sharedSessionState_))};g.reportProceed=function(a){q2(this,ms(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new ls;a=a.clone();b.setSessionState(a);b.setEventType(7);fVa(b,a.getSources());q2(this,[b])};g.reportSave=function(a){q2(this,ms(a,9,this.sharedSessionState_))};g.reportSend=function(a){q2(this,ms(a,8,this.sharedSessionState_,!0))};var q2=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};
var Ahc=function(a,b,c){this.delegate_=a;this.sharedSessionState_=c;l(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};g=Ahc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){var c=this;a8b(this.sharedSessionState_,hj(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");b8b(d);this.delegate_.suggest(function(e){Bhc(c,e.getResults(),gVa(e),d,0);a(e)},b)};
g.search=function(a,b,c){var d=this;a8b(this.sharedSessionState_,hj(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);b8b(e);var f=0;this.delegate_.search(a,function(h){f=Bhc(d,h.getResults(),gVa(h),e,f);b(h)},c)};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};
g.getReporter=function(a){return new zhc(this.reportingFactory_.create(a),this.sharedSessionState_)};g.getSessionState=function(){return this.sharedSessionState_};
var Bhc=function(a,b,c,d,e){var f=yUb();l(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();l(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=r(b);for(f=a.next();!f.done;f=a.next()){b=0;f=r(f.value.getTargetList());for(var h=f.next();!h.done;h=f.next()){h=h.value.getLoggingToken();var k=Qq(h)||new Wr;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());l(k,2,e);l(k,1,b);Db(h,2,k);h.setSessionState(d);b++}e++}return e};
var r2=function(a,b,c){this.delegate_=a;this.reportingFactory_=b;this.instanceId_=wq();this.clearcutConfig_=c};r2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};
r2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new ns;h=c.getOriginator();e=r(e);for(var k=e.next();!k.done;k=e.next()){k=r(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var u=Qq(q)||new Wr;7!==u.getProvenance()&&u.setProvenance(f.getProvenance());l(u,4,h);Db(q,2,u)}}b(d)},c)};
r2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};r2.prototype.beginSession=function(a){var b=new X_,c=Chc(this,a);Db(b,10,c);c=Dhc(this,a);Db(b,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new Ahc(a,this.reportingFactory_,b)};
var Chc=function(a,b){a=tb(a.clearcutConfig_,is,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new is},Dhc=function(a,b){a=tb(a.clearcutConfig_,js,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new js};
var Ehc=function(a){this.delegate_=a};g=Ehc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){this.delegate_.suggest(a,b)};g.search=function(a,b,c){this.delegate_.search(a,b,c)};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};g.getReporter=function(a){return this.delegate_.getReporter(a)};
g.getSessionState=function(){return this.delegate_.getSessionState()};
var s2=function(a,b){this.delegate_=a;this.smartAddressFactory_=b};s2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};s2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,b,c)};s2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};s2.prototype.beginSession=function(a){a=this.delegate_.beginSession(a);return new Ehc(a,this.smartAddressFactory_.create(a.getSessionState()))};
var Fhc={create:function(a){a=new D1(no(pdc,'[[15,15],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",""],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47,null,null,["person.name","person.photo","person.email","person.metadata"]],[null,740,null,null,[[180,181,178,179]]]]'),a);if(a.runtimeConfig_.getExperiments().getProfileId())if(xdc(a).getIsEnabled()){var b=no(dr,'[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]');b=new er(b,1)}else b=new fr;else b=new fr;var c=
a.runtimeConfig_.getExperiments().getProfileId(),d=a.runtimeConfig_;hs=b.loadExperiments(xdc(a).getApplication(),(new gr).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new ffc;b.cacheConfigurators_.push(new hdc);d=b;d=void 0===d?new ffc:d;b=a.getClearcut();b=new Ygc(b,a.runtimeConfig_);b=$o(b);b=new Y1(b);c=new bfc(a,b);var e=a.getClient();e=new wfc(c.targetFactory_,e);var f=void 0===f?Qgc:f;f=new m2(c.loader_,a,f);f=new l2(f,b,a);var h=[new Igc,new ofc].concat(v(d.cacheConfigurators_)),k=[],q=[],u=new b2(e,
a),y=new Efc(q,u);q={clientConfig:a,trackers:b,storage:e,indexer:u,loader:f,loaderFactory:c,trieFactory:new agc(e,y),prefixCaches:k,lookupStages:q};h=r(h);for(u=h.next();!u.done;u=h.next())u.value.configure(q);k=new Pfc(k);f=new Ufc(a,b,k,y,new Afc(f,e),e);y=a.getClient();y=new zgc(y,e);k=a.getClient();f=new g2(f,y,k);f=new r2(f,new yhc(a),a.getClearcut());a=(0,d.createSmartAddressFactory_)(a,e,y,c.targetFactory_,b);f=new s2(f,a);f=new p2(f,b);return new o2(f)}};
var t2=function(){};t2.\u0275fac=function(a){return new (a||t2)};t2.\u0275cmp=w({type:t2,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","animated-loading-bar",4,"ngIf"],[4,"ngIf"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(Ae(),M(0,hVa,1,0,"div",0),M(1,iVa,2,0,"ng-container",1));a&2&&(E("ngIf",!b.isReady),B(1),E("ngIf",b.isReady))},dependencies:[Gx],encapsulation:2});
var u2=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new T.ReplaySubject(1);this.accessCheckIsThinking$=new T.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(eg(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(eg(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return mK(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,T.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return!d&&!e}),dg(!1));this.manageComponentLink=""};u2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};u2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
u2.\u0275fac=function(a){return new (a||u2)(C(HJ),C(lK))};
u2.\u0275cmp=w({type:u2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Fc],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),P(1,"async"),M(2,jVa,3,4,"a",1),P(3,"async"),M(4,kVa,2,1,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(5);E("isReady",Q(1,3,b.isReady$));B(2);E("ngIf",Q(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[Gx,t2,Tx],
encapsulation:2});
var v2=function(){};v2.\u0275fac=function(a){return new (a||v2)};
v2.\u0275cmp=w({type:v2,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[3,"ngClass"]],template:function(a,b){a&1&&(F(0,"span",0),O(1),G());a&2&&(E("ngClass","priority-"+b.issuePriority),B(1),a=b.issuePriority,a=null==a?"--":"string"===typeof a?OJb.get(a):NJb.get(a),Ge(" ",a," "))},dependencies:[Jx],styles:["span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:18px;border-radius:4px;word-break:keep-all}.priority-1[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--issue-priority);border:2px solid transparent;color:#fff;min-width:19px}.priority-2[_ngcontent-%COMP%]{background:transparent;border:2px solid;border-color:#1a73e8;border-color:var(--issue-priority);color:#202124;color:var(--text-high-contrast);min-width:19px}\n/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});
var w2=function(){this.showIssueMetadataContainer=!1;this.manageComponentLink=""};
oi.Object.defineProperties(w2.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(null==a)this.showIssueMetadataContainer=!1;else if(this.showIssueMetadataContainer=!0,this.issueId=a.issueId,this.issueLastModified=uo(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=ZCb[a.type],this.issueStatus=$Cb[a.status],this.issuePriority=a.priority,this.issueSeverity=PJb.get(a.severity),this.issueComponentId=String(a.componentId)}}});
w2.\u0275fac=function(a){return new (a||w2)};
w2.\u0275cmp=w({type:w2,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},decls:4,vars:1,consts:[[1,"b-access-denied"],[1,"heading-l","margin-bottom"],["class","carded margin-top",4,"ngIf"],[1,"carded","margin-top"],[3,"issuePriority"],[4,"ngIf"],[3,"componentId"],[3,"teamId"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"h3",1),O(2," Access is denied to this issue "),G(),M(3,nVa,33,11,"ol",2),G());a&2&&(B(3),E("ngIf",b.showIssueMetadataContainer))},dependencies:[Gx,
u2,v2,dV,Wx],styles:[".b-access-denied[_ngcontent-%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}"],changeDetection:0});
var x2=function(){};x2.\u0275fac=function(a){return new (a||x2)};x2.\u0275mod=xc({type:x2});x2.\u0275inj=ic({imports:[ay]});
var y2=function(){};y2.\u0275fac=function(a){return new (a||y2)};y2.\u0275mod=xc({type:y2});y2.\u0275inj=ic({imports:[ay,x2]});
var z2=function(){};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275mod=xc({type:z2});z2.\u0275inj=ic({imports:[ay]});
var A2=function(){};A2.\u0275fac=function(a){return new (a||A2)};A2.\u0275mod=xc({type:A2});A2.\u0275inj=ic({imports:[ay,y2,z2,eV]});
var ts=Symbol("Oe"),Ghc=["OR","AND","NAND"],Hhc=["OR","NAND"],Ihc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),Jhc=["AND","OR","NAND"],Khc=["OR","LT","GT","LE","GE"],ss=function(a){this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};ss.prototype[ts]=function(a){this.initType(a);this.initValues(a)};
ss.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="OR"===a.type?a.negated?"NOR":"OR":"AND"===a.type?a.negated?"NAND":"AND":a.negated?"NAND":"OR"}else this.type=this.getLegalTypes()[0]};ss.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var Lhc=function(a){var b="NAND"===a.type||"NOR"===a.type||"NDURATION"===a.type||"NRANGE"===a.type,c="EQ";if("AND"===a.type||"NAND"===a.type)var d="AND";else if("OR"===a.type||"NOR"===a.type)d="OR";else if(d="NIL","LE"===a.type||"LT"===a.type||"GE"===a.type||"GT"===a.type)c=a.type;b&&("AND"===d?d="OR":"OR"===d&&(d="AND"));return{operator:c,joinType:d,negated:b}};
ss.prototype.toString=function(){var a=Lhc(this),b=this.valuesToStrings().filter(function(e){return e}),c={GT:">",LT:"<",GE:">=",LE:"<=",EQ:":"};if(1===b.length)b=b[0];else if(1<b.length)b="("+b.join("AND"===a.joinType?" ":" | ")+")";else return"";var d=Mhc(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var Mhc=function(a){var b=a.label.field;a:{var c=oVa()[b];if(c&&(c=c.queryLabel,null!=c)){b=c;break a}b=Mi(b).toLowerCase()}return b+(a.label.customFieldId||"")};
ss.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};ss.prototype.getWidgetType=function(){return"default"};ss.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};ss.prototype.getLegalTypes=function(){return Ghc};var Nhc=[],B2=function(a){ss.call(this,a);this.enumValues={}};U(B2,ss);g=B2.prototype;g.getLegalTypes=function(){return Hhc};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=r(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=r(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[rVa(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(ch(this.enumValues,function(a){return a}))};g.getOptions=function(){return Nhc};var Ohc=paa().map(function(a){return{id:"p"+a,label:"P"+a}}),Phc=function(a){B2.call(this,a)};U(Phc,B2);
Phc.prototype.getOptions=function(){return Ohc};var Qhc=paa().map(function(a){return{id:"s"+a,label:"S"+a}}),Rhc=function(a){B2.call(this,a)};U(Rhc,B2);Rhc.prototype.getOptions=function(){return Qhc};
var Shc=cj("enableWtdmMvpUi")?[{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:"project"},{id:"feature"},{id:"milestone"},{id:"epic"},{id:"story"},{id:"task"}]:[{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"}],Thc=function(a){B2.call(this,a)};U(Thc,B2);Thc.prototype.getOptions=function(){return Shc};var Uhc=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],Vhc=function(a){B2.call(this,a)};U(Vhc,B2);
Vhc.prototype.getOptions=function(){return Uhc};var Whc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Xhc=function(a){B2.call(this,a)};U(Xhc,B2);Xhc.prototype.getOptions=function(){return Whc};var ps=function(a){B2.call(this,a);this.allowedValues=[]};U(ps,B2);ps.prototype[ts]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:rVa(b)}});B2.prototype[ts].call(this,a)};
ps.prototype.valuesToStrings=function(){return Object.keys(ch(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};ps.prototype.getOptions=function(){return this.allowedValues};var Gs=function(a){ss.call(this,a);this.csv=""};U(Gs,ss);Gs.prototype.getWidgetType=function(){return"csv"};Gs.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};Gs.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};
var C2=function(a){Gs.call(this,a)};U(C2,Gs);C2.prototype.getWidgetType=function(){return"id"};C2.prototype.valuesToStrings=function(){return Gs.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(Oi(a))})};var Yhc=function(a){Gs.call(this,a)};U(Yhc,C2);Yhc.prototype.getLegalTypes=function(){return Hhc};var us=function(a){Gs.call(this,a)};U(us,Gs);us.prototype.getWidgetType=function(){return"user"};
var D2=function(a){Gs.call(this,a)};U(D2,us);D2.prototype.getLegalTypes=function(){return Hhc};var os=function(a){ss.call(this,a);this.dateTo=this.dateFrom=this.duration=""};U(os,ss);var mWa=function(a){return a&&"string"===typeof a?a:""};os.prototype.initType=function(a){ss.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":iu(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};
os.prototype.getWidgetType=function(){return"date"};os.prototype.initValues=function(a){if(a.values){var b=a.values[0].simpleValues[0].value;if("DURATION"===this.type||"NDURATION"===this.type)this.duration=b.slice(0,b.length-1);else if(this.dateFrom=Zhc(b),"RANGE"===this.type||"NRANGE"===this.type)this.dateTo=Zhc(a.values[0].simpleValues[1].value)}};
os.prototype.valuesToStrings=function(){if("DURATION"===this.type||"NDURATION"===this.type){var a=Oi(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if("RANGE"===this.type||"NRANGE"===this.type){a=this.dateFrom&&$hc(this.dateFrom)||(new Ni).toIsoString(!0);var b=this.dateTo&&$hc(this.dateTo)||(new Ni).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&$hc(this.dateFrom)||(new Ni).toIsoString(!0)]};
var aic=function(a){var b=String(a.getMonth()+1),c=String(a.getDate());return b+"/"+c+"/"+String(a.getFullYear())},Zhc=function(a){var b=new GC(2E3);a=Ui(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match(crb);if(d){var e=Number(d[2]),f=Number(d[3]),h=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));h?(b.setDate(1),b.setMonth(0),b.add(new to("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new to("d",(4>=d?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=2>a.length)){c=a[1];a=c.match(erb);if(a)if(c=c.substring(0,c.length-a[0].length),"Z"===a[0])var q=0;else q=60*Number(a[2])+Number(a[3]),q*="-"==a[1]?1:-1;if(h=c.match(drb)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var u=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,u);h&&(a-=126227808E5);b.setTime(a+6E4*q)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?1E3*Number(h[4]):0);c=!0}else c=!1}return aic(c?b:null)},$hc=function(a){a=a.split("/").map(Number);return(new Ni(a[2],a[0]-1,a[1])).toIsoString(!0)};os.prototype.getLegalTypes=function(){return Ihc};var E2=function(a){ss.call(this,a)};U(E2,ss);E2.prototype.getWidgetType=function(){return"bool"};
E2.prototype.initType=function(a){var b="OR"===a.type||""===a.type;a.values&&(b="true"===a.values[0].simpleValues[0].value.toLowerCase());a.negated&&(b=!b);this.type=b?"OR":"NAND"};E2.prototype.toString=function(){return Mhc(this)+":"+("OR"===this.type)};E2.prototype.getLegalTypes=function(){return Hhc};var F2=function(a){ss.call(this,a)};U(F2,ss);F2.prototype.getWidgetType=function(){return"boolwithall"};
F2.prototype.initType=function(a){-1===this.getLegalTypes().indexOf(a.type)?this.type=this.getLegalTypes()[0]:this.type=a.type;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&&"AND"!==this.type&&(this.type="OR"===this.type?"NAND":"OR")};F2.prototype.toString=function(){var a=Mhc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
F2.prototype.getLegalTypes=function(){return Jhc};var rs=function(a){ss.call(this,a)};U(rs,ss);rs.prototype.getWidgetType=function(){return"text"};rs.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){b=b.simpleValues[0];var c=b.value;"QUOTED_TEXT"===b.type&&(c=c.slice(1,c.length-1));return{value:c}})};rs.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};var G2=function(a){ss.call(this,a)};
U(G2,ss);G2.prototype.getWidgetType=function(){return"component"};G2.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};iu(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};G2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var bic=function(a){ss.call(this,a)};U(bic,ss);
bic.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};iu(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};bic.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var cic=function(a){ss.call(this,a)};U(cic,bic);cic.prototype.getWidgetType=function(){return"team"};var dic=function(a){ss.call(this,a)};
U(dic,ss);dic.prototype.getWidgetType=function(){return"hotlist"};var eic=function(a){ss.call(this,a)};U(eic,ss);eic.prototype.getWidgetType=function(){return"savedsearch"};var qs=function(a){Gs.call(this,a)};U(qs,Gs);qs.prototype.getWidgetType=function(){return"number"};qs.prototype.getLegalTypes=function(){return Khc};var fic=function(a){os.call(this,a)};U(fic,os);fic.prototype.initType=function(a){os.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var H2={},sVa=(H2.ATTACHMENT={ruleCtor:rs,name:"Attachment name"},H2.COMMENT={ruleCtor:rs},H2.TITLE={ruleCtor:rs},H2.ASSIGNEE={ruleCtor:D2},H2.MODIFIER={ruleCtor:us},H2.REPORTER={ruleCtor:D2},H2.VERIFIER={ruleCtor:D2},H2.CC={ruleCtor:us},H2.COMPONENT_ID={ruleCtor:G2,name:"Component"},H2.TEAM_ID={ruleCtor:cic,name:"Team"},H2.TYPE={ruleCtor:Thc},H2.STATUS={ruleCtor:Vhc},H2.PRIORITY={ruleCtor:Phc},H2.SEVERITY={ruleCtor:Rhc},H2.BLOCKED_BY_ID={ruleCtor:C2},H2.BLOCKING_ID={ruleCtor:C2},H2.PARENT_ID={ruleCtor:C2},
H2.CANONICAL_ID={ruleCtor:Yhc},H2.ID={ruleCtor:Yhc},H2.FOUND_IN={ruleCtor:Gs},H2.TARGETED_TO={ruleCtor:Gs},H2.VERIFIED_IN={ruleCtor:Gs},H2.CL={ruleCtor:Gs,name:"Changelists"},H2.POSTMORTEM={ruleCtor:Gs,name:"Postmortems"},H2.MODIFIED={ruleCtor:os},H2.RESOLVED={ruleCtor:fic},H2.CREATED={ruleCtor:os},H2.VERIFIED={ruleCtor:fic},H2.DELETION_TIME={ruleCtor:os,name:"Deletion time"},H2.SAVED_SEARCH_ID={ruleCtor:eic,name:"Saved search"},H2.HOTLIST_ID={ruleCtor:dic,name:"Hotlist"},H2.STAR={ruleCtor:E2,name:"Starred"},
H2.MUTE={ruleCtor:E2,name:"Muted"},H2.IN_PROD={ruleCtor:E2,name:"In production"},H2.CC_COUNT={ruleCtor:qs},H2.DUPLICATE_COUNT={ruleCtor:qs},H2.VOTE_COUNT={ruleCtor:qs},H2.LAST_MODIFIER={ruleCtor:D2,name:"Last Modified By"},H2.COMMENTER={ruleCtor:us},H2.LAST_COMMENTER={ruleCtor:D2},H2.ARCHIVED={ruleCtor:F2},H2.IS_DELETED={ruleCtor:E2,name:"Deleted",queryLabel:"deleted"},H2.DELETION_REASON={ruleCtor:Xhc,name:"Deletion reason"},H2.MIN_SLO_TARGET={ruleCtor:os,name:"Nearest SLO",queryLabel:"nearestslo"},
H2.EFFORT_LABEL={ruleCtor:Gs},H2._TEXT_={ruleCtor:rs,queryLabel:"",name:"All fields"},H2);
var ys=function(a){Z.call(this,a,-1,gic)};U(ys,Z);ys.prototype.getType=function(){return Y(this,1,0)};ys.prototype.setType=function(a){return l(this,1,a)};ys.prototype.hasType=function(){return gj(this,1)};var zs=function(a){Z.call(this,a,-1,hic)};U(zs,Z);g=zs.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getValuesList=function(){return tb(this,I2,2)};g.setValuesList=function(a){Cb(this,2,a)};
g.getLabel=function(){return m(this,iic,4)};g.setLabel=function(a){return Db(this,4,a)};g.hasLabel=function(){return oj(this,4)};var I2=function(a){Z.call(this,a,-1,jic)};U(I2,Z);g=I2.prototype;g.getType=function(){return Y(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getValuesList=function(){return tb(this,I2,2)};g.setValuesList=function(a){Cb(this,2,a)};var vs=function(a){Z.call(this,a)};U(vs,Z);g=vs.prototype;
g.getType=function(){return Y(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return gj(this,1)};g.getValue=function(){return V(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return gj(this,2)};var iic=function(a){Z.call(this,a)};U(iic,Z);g=iic.prototype;g.getField=function(){return Y(this,1,0)};g.setField=function(a){l(this,1,a)};g.getCustomFieldId=function(){return nj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};
g.hasCustomFieldId=function(){return gj(this,2)};var gic=[2];ys.prototype.toObject=function(){return kic(this)};var kic=function(a){if(null!=a)return{type:n(p(a,1)),expressionsList:Eb(tb(a,zs,2),lic)}},hic=[2];zs.prototype.toObject=function(){return lic(void 0,this)};var lic=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Eb(b.getValuesList(),mic,a),negated:n(Xo(b,3)),label:nic(a,b.getLabel()),operator:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}},jic=[2,3];
I2.prototype.toObject=function(){return mic(void 0,this)};var mic=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Eb(b.getValuesList(),mic,a),simpleValuesList:Eb(tb(b,vs,3),oic,a)};a&&(c.$jspbMessageInstance=b);return c}};vs.prototype.toObject=function(){return oic(void 0,this)};var oic=function(a,b){if(null!=b){var c={type:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};iic.prototype.toObject=function(){return nic(void 0,this)};
var nic=function(a,b){if(null!=b){var c={field:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};ys.messageId="b.QueryBuilderResponse";
var ws=function(a){Z.call(this,a)};U(ws,Z);ws.prototype.toObject=function(){return pic(this)};var pic=function(a){if(null!=a)return{syntaxError:n(p(a,1))}};ws.messageId="b.SyntaxErrorResponse";
var J2=function(a){Z.call(this,a)};U(J2,Z);J2.prototype.getKindCase=function(){return rb(this,xs)};var xs=[1,2];J2.prototype.toObject=function(){var a=null!=this?{queryBuilderResponse:kic(Bl(this,ys,1,xs)),syntaxErrorResponse:pic(Bl(this,ws,2,xs))}:void 0;return a};J2.messageId="b.QueryBuilderResponseOrError";
var K2=function(a){this.executor=a},qic=function(a,b){b=Gm(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:J2}).then(DVa).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(tVa)});return c})};K2.\u0275fac=function(a){return new (a||K2)(t(iI))};K2.\u0275prov=hc({token:K2,factory:K2.\u0275fac,providedIn:"root"});
var L2=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new Vw;this.onEmptyQuery=new Vw;this.searchQuery$=new T.Subject;this.teamSuggestions$=this.searchQuery$.pipe(Qf(300),Sf(),eg(function(c){return cM(b.teamsService,c)}),R(function(c){return HVa(c)}))};L2.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};L2.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};
L2.prototype.displayFn=function(a){return a?a.name:""};L2.prototype.ngAfterViewInit=function(){};L2.\u0275fac=function(a){return new (a||L2)(C(bM))};
L2.\u0275cmp=w({type:L2,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&Ef(mN,7);if(a&2){var c;Df(c=Gf())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},decls:7,vars:10,consts:[[1,"team-id-select"],["id","team-id","matInput","","type","text","autocomplete","off","aria-label","Team selection",3,"placeholder","ngModel","disabled",
"matAutocomplete","click","input"],["searchInput",""],[3,"panelWidth","displayWith","optionSelected"],["auto","matAutocomplete"],["class","team-search-result",3,"value",4,"ngFor","ngForOf"],[1,"team-search-result",3,"value"],[4,"ngFor","ngForOf"],[1,"description",3,"matTooltip"],[1,"path-names",3,"matTooltip","click"],["class","path-names-separator",4,"ngIf"],[1,"path-names-separator"]],template:function(a,b){if(a&1){var c=x();F(0,"div",0)(1,"input",1,2);J("click",function(){z(c);var e=Fe(2);return A(b.search(e.value))})("input",
function(){z(c);var e=Fe(2);return A(b.search(e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});M(5,GVa,6,8,"mat-option",5);P(6,"async");G()()}if(a&2){var d=Fe(4);B(1);De("placeholder",b.placeholder);E("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);ke("aria-disabled",b.disabled);B(2);E("panelWidth",b.panelWidth)("displayWith",b.displayFn);B(2);E("ngForOf",Q(6,8,b.teamSuggestions$))}},dependencies:[Kx,Gx,lN,mN,BB,
wF,Mg,py,vy,Tx,Zx],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);.path-names-separator-font-size:.8125rem;.path-names-separator-font-weight:500}.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}"],
changeDetection:0});var As=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 ric(a.slice(0,e+1),b.slice(0,e+1))})},ric=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};
var M2=function(a,b,c,d,e,f,h,k,q,u,y,D){qI.call(this);var I=this;this.analytics=a;this.userApi=b;this.customFieldsApi=c;this.savedSearchApi=d;this.hotlistApi=e;this.issueSearchResources=f;this.activeSession=h;this.elementRef=k;this.errorHandler=q;this.componentActions=u;this.teamsService=y;this.cdr=D;this.availableLabels=[];this.expressions=[];this.components={};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.teamUnderEdit=
this.componentUnderEdit=this.chipUnderEdit=null;this.trackByIndex=function(N){return N};this.sessionIsInternal=this.activeSession.isInternalSession();this.typeLabels=sic;this.globalTypeLabels=tic;bh(oVa(),function(N,L){"SAVED_SEARCH_ID"===L||"TEAM_ID"===L&&!I.sessionIsInternal||"PARENT_ID"===L&&!sH(I.activeSession,"enableWtdmMvpUi")||(N.name?I.availableLabels.push([L,N.name]):I.availableLabels.push([L,rua(L)]))},this);this.availableLabels.sort(function(N,L){return naa(N[1],L[1])});this.availableLabels.push(["SAVED_SEARCH_ID",
"Saved search"]);this.availableLabels.push(["CUSTOM_FIELD","Custom field"]);this.state="INIT"};U(M2,qI);M2.\u0275dir=qI.\u0275dir;M2.prototype.schedule=function(a){this.subscriptions.add(T.asyncScheduler.schedule(a))};M2.prototype.ngOnInit=function(){this.cdr.detectChanges()};
var wic=function(a,b){a.reset();b?uic(a,b):(a.expressions=vic.map(function(c){return qVa(c)}),a.state="SUCCESS");a.userApi.getUserSavedSearches().then(function(c){a.userSavedSearches=c;c=r(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});a.userApi.getUserHotlists().then(function(c){a.userHotlists=c;c=r(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()},
uic=function(a,b){qic(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",io(a.analytics,"search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return xic(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=r(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state="NOT_REPRESENTABLE",io(a.analytics,"search",
"adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},xic=function(a,b){b.label&&"TEAM_ID"===b.label.field&&!a.sessionIsInternal&&(b.label.field="_TEXT_");return b.label&&"CUSTOM_FIELD"===b.label.field&&void 0!==b.label.customFieldId?yic(a,b.label.customFieldId).then(function(c){b.customField=c;return zic(a,b)}):Promise.resolve(zic(a,b))},yic=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):
a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},zic=function(a,b){b="ERR"===b.type?null:pVa(b);if(!b||b&&!b.isValid())return null;Aic(a,b);return b},Aic=function(a,b){if("COMPONENT_ID"===b.label.field){var c=r(b.values);for(b=c.next();!b.done;b=c.next())b=EC(b.value.value),a.components[b]||a.fetchComponent(b)}else if("TEAM_ID"===b.label.field&&a.sessionIsInternal)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.teams[b]||Bic(a,b);else if("SAVED_SEARCH_ID"===
b.label.field)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value,a.savedSearches[b.value]||a.savedSearchApi.get(b.value).then(function(d){a.savedSearches[d.searchId]=d});else if("HOTLIST_ID"===b.label.field)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value,a.hotlists[b.value]||a.hotlistApi.get(b.value).then(function(d){a.hotlists[d.hotlistId]=d})};M2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.components[a]=c})};
var Bic=function(a,b){cM(a.teamsService,b).pipe(R(function(c){return c.getTeamSuggestionsList()}),Pf(function(){return(0,T.of)([])}),fg(a.destroyed$)).subscribe(function(c){0<c.length?(c=c[0],a.teams[b]={id:c.getId(),pathNames:c.getPathNamesList(),name:c.getName(),description:c.getDescription()}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},Cic=function(a){var b="AND"===a.expressionType?" ":" | ";return nib(a.expressions.map(function(c){return c.label?c.toString():""}),iaa).join(b)};
M2.prototype.getState=function(){return this.state};M2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var JWa=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=qVa(d.field),HWa(a,a.expressions[b]));a.cdr.detectChanges()},HWa=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c?Ds(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=aic(new Ni)),b.dateTo||(b.dateTo=aic(new Ni)))};M2.prototype.removeExpression=function(a){za(this.expressions,a);this.cdr.detectChanges()};
var Ds=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?XVa(a,c):"TEAM_ID"===b.label.field?dWa(a,c):Fs(a,c);a.cdr.detectChanges()},Cs=function(a,b,c){za(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},Fs=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},XVa=function(a,b){Fs(a,b);a.componentUnderEdit=b.value?Ii(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},
dWa=function(a,b){Fs(a,b);a.teamUnderEdit=b.value?Ii(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},Es=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},fWa=function(a,b){io(a.analytics,mo.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;Es(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
M2.prototype.getTypeLabel=function(a,b){var c,d;return(null==(c=this.typeLabels[a.label.field])?void 0:c[b])||(null==(d=this.typeLabels[a.getWidgetType()])?void 0:d[b])||this.typeLabels.DEFAULT[b]};M2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||a:""};
var tic={AND:"Match all (AND)",OR:"Match any (OR)"},sic={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"}},vic=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];M2.\u0275fac=function(a){return new (a||M2)(C(IM),C(cL),C(qZ),C(EN),C(XK),C(K2),C(qH),C(sd),C(BK),C(sT),C(bM),C(mI,2))};
M2.\u0275cmp=w({type:M2,selectors:[["b-advanced-search"]],features:[Je([mI]),ee],decls:1,vars:1,consts:[["class","bv2-adv-search",4,"ngIf"],[1,"bv2-adv-search"],["appearance","outline",4,"ngIf"],["class","bv2-adv-search-rule",4,"ngFor","ngForOf","ngForTrackBy"],[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"],["newExpressionMenu","matMenu"],["mat-menu-item",
"","type","button",3,"click",4,"ngFor","ngForOf"],["appearance","outline"],[1,"bv2-adv-search-join-type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"bv2-adv-search-rule"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange","selectionChange"],["aria-label","Delete search rule",1,"bv2-remove-icon","keep-focus-ring","bv2-adv-search-rule-delete-btn",3,"click"],["class","bv2-adv-search-rule-content",
4,"ngIf"],["class","bv2-adv-search-custom-field-label",4,"ngIf"],["class","bv2-adv-search-custom-field-selection",4,"ngIf"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModel","ngModelChange"],[1,"bv2-adv-search-rule-content"],["class","bv2-adv-search-enum-rule",4,"ngIf"],[4,"ngIf"],["class","bv2-adv-search-chip-container",4,"ngIf"],[1,"bv2-adv-search-enum-rule"],["class","bv2-adv-search-enum-item",4,"ngFor","ngForOf"],[1,"bv2-adv-search-enum-item"],[3,"checked","label","change"],
["type","text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"ngModel","bContactAutocomplete","ngModelChange"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModel","ngModelChange"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModel","ngModelChange"],["type","text","aria-label","Add the condition",3,"ngModel",
"ngModelChange"],[1,"bv2-adv-search-chip-container"],["class","bv2-adv-search-chip bv2-adv-search-chip-text",4,"ngFor","ngForOf"],["mat-stroked-button","","class","bv2-adv-search-chip-add-btn",3,"click",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-chip-text"],[1,"bv2-adv-search-chip-content"],["aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],["mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[4,"ngFor","ngForOf"],["class","bv2-adv-search-chip bv2-adv-search-component-chip",
4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["class","bv2-adv-search-chip-content bv2-adv-search-chip-content-btn",3,"title","click",4,"ngIf"],["class","bv2-adv-search-chip-content",4,"ngIf"],["role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"title","click"],[3,"svgIcon"],["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,"title","click"],
[1,"bv2-adv-search-chip-content-text"],[1,"bv2-search-component-picker",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["class","bv2-adv-search-chip bv2-adv-search-team-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["role","switch","aria-label","Include subteams",1,"unstyled-button",3,"title","click"],[1,"bv2-search-team-picker",3,"teamSelected","onTeamSelect"],[3,"boundValue","isRequired","boundValueChange"],["type","text","maxlength","3",1,"bv2-duration-field",
3,"ngModel","ngModelChange"],["class","bv2-adv-search-chip bv2-adv-search-bookmark-item-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","class","bv2-adv-search-bookmark-item-form-field",4,"ngIf"],["appearance","outline",1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange","selectionChange"],["class","bv2-adv-search-chip-content  bv2-adv-search-chip-content-btn",
3,"title","click",4,"ngIf"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModel","ngModelChange","selectionChange"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&M(0,MWa,9,6,"div",0);a&2&&E("ngIf","SUCCESS"===b.getState())},dependencies:[Kx,Gx,QU,AV,Mg,py,Hy,vy,WX,FB,sC,hF,mF,kF,pF,QS,BB,mQ,L2,xV,Xx,tM,
uM],styles:['[_nghost-%COMP%]     .mat-form-field-infix{width:unset;min-width:105px;border:0}[_nghost-%COMP%]     .mat-select-value{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%]     mat-select .mat-select-arrow-wrapper{transform:unset}[_nghost-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0;padding:0}[_nghost-%COMP%]     .bv2-custom-field-picker{width:unset}.mat-form-field[_ngcontent-%COMP%]{margin-right:5px;text-align:center}.bv2-adv-search-rule-type[_ngcontent-%COMP%]{min-width:105px}.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%}']});
var N2=function(){};N2.\u0275fac=function(a){return new (a||N2)};N2.\u0275mod=xc({type:N2});N2.\u0275inj=ic({imports:[ay,oN,GO,gH,Ky]});
var O2=function(){};O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275mod=xc({type:O2});O2.\u0275inj=ic({imports:[ay,RU,BV,Ky,eY,wG,tC,AF,vC,qF,RS,nQ,CM,N2,zV]});
var Dic=function(a){Z.call(this,a)};U(Dic,Z);g=Dic.prototype;g.getExperimentId=function(){return hj(this,1)};g.getState=function(){return Y(this,2,0)};g.getTitle=function(){return V(this,4)};g.setTitle=function(a){return l(this,4,a)};g.getDescription=function(){return V(this,5)};g.setDescription=function(a){return l(this,5,a)};g.toObject=function(){return Eic(void 0,this)};
var Eic=function(a,b){if(null!=b){var c={experimentId:n(p(b,1)),state:n(p(b,2)),userGroup:n(p(b,3)),title:n(p(b,4)),description:n(p(b,5)),learnMoreLink:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var Gic=function(a){Z.call(this,a,-1,Fic)};U(Gic,Z);var Fic=[1];Gic.prototype.toObject=function(){var a=null!=this?{featuresList:Eb(tb(this,Dic,1),Eic)}:void 0;return a};Gic.messageId="b.ListBeapFeaturesResponse";
var P2=function(a){this.executor=a};P2.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:Gic}).pipe(R(function(a){return tb(a,Dic,1)}))};P2.\u0275fac=function(a){return new (a||P2)(t(hI))};P2.\u0275prov=hc({token:P2,factory:P2.\u0275fac,providedIn:"root"});
var Q2=function(a){DJ.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+b.getExperimentId()}};U(Q2,DJ);Q2.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(R(function(a){return{results:a}}))};Q2.\u0275fac=function(a){return new (a||Q2)(t(P2))};Q2.\u0275prov=hc({token:Q2,factory:Q2.\u0275fac,providedIn:"root"});
var R2=function(a){this.beapFridge=a};R2.prototype.getFeature=function(a){return Hic(this,"ALL").pipe(R(function(b){return b.find(function(c){return c.getExperimentId()===a})}))};var Hic=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?1:2;return SGb(a.beapFridge,{}).pipe(R(function(e){return e.results.filter(function(f){return c?!0:Y(f,3,0)===d})}))};R2.prototype.refresh=function(){FJ(this.beapFridge,{})};R2.\u0275fac=function(a){return new (a||R2)(t(Q2))};
R2.\u0275prov=hc({token:R2,factory:R2.\u0275fac,providedIn:"root"});
var S2=function(){};S2.\u0275fac=function(a){return new (a||S2)};
S2.\u0275cmp=w({type:S2,selectors:[["b-feature-stage-label"]],inputs:{featureStage:"featureStage"},decls:3,vars:3,consts:[[3,"ngSwitch"],["class","badged teamfood",4,"ngSwitchCase"],["class","badged early-access",4,"ngSwitchCase"],[1,"badged","teamfood"],[1,"badged","early-access"]],template:function(a,b){a&1&&(ve(0,0),M(1,NWa,1,0,"div",1),M(2,OWa,1,0,"div",2),we());a&2&&(E("ngSwitch",b.featureStage),B(1),E("ngSwitchCase","TEAM_FOOD"),B(1),E("ngSwitchCase","EARLY_ACCESS"))},dependencies:[Mx,Nx],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});
var T2=function(a){var b=this;this.beapService=a;this.experimentId$=new T.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(eg(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(R(function(c){if(!c)return"UNKNOWN";c=Y(c,3,0);return 1===c?"TEAM_FOOD":2===c?"EARLY_ACCESS":"UNKNOWN"}))};T2.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};T2.prototype.ngOnInit=function(){};T2.\u0275fac=function(a){return new (a||T2)(C(R2))};
T2.\u0275cmp=w({type:T2,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[Fc],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(H(0,"b-feature-stage-label",0),P(1,"async"));if(a&2){var c;E("featureStage",null!==(c=Q(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[S2,Tx],encapsulation:2});
var U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=xc({type:U2});U2.\u0275inj=ic({imports:[ay]});
var V2=function(){};V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=xc({type:V2});V2.\u0275inj=ic({imports:[ay,U2]});
var W2=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},PWa=function(a){nP(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};W2.\u0275fac=function(a){return new (a||W2)(C(mP))};
W2.\u0275cmp=w({type:W2,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},decls:2,vars:2,consts:[["mat-icon-button","","class","gmat-button","aria-label","Open release notes in a new tab",3,"matTooltip","click",4,"ngIf"],["mat-menu-item","","aria-label","Open release notes in a new tab",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Open release notes in a new tab",1,"gmat-button",3,"matTooltip","click"],[3,"svgIcon"],["mat-menu-item",
"","aria-label","Open release notes in a new tab",3,"click"]],template:function(a,b){a&1&&(M(0,QWa,3,3,"button",0),M(1,RWa,2,1,"button",1));a&2&&(E("ngIf",!b.menuMode),B(1),E("ngIf",b.menuMode))},dependencies:[Gx,hF,FB,kF,wF],styles:["[_nghost-%COMP%] { display: flex; }"]});
var X2=function(a,b,c){qI.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=sH(a,"enableWhatsNewDialog");this.enableBeap=sH(a,"enableBeap")};U(X2,qI);X2.\u0275dir=qI.\u0275dir;g=X2.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(fg(this.destroyed$)).subscribe(function(b){if(null==b?0:b.themePreferences)a.density=b.themePreferences.density})};g.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
g.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};g.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};g.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};X2.\u0275fac=function(a){return new (a||X2)(C(qH),C(FK),C(PI))};
X2.\u0275cmp=w({type:X2,selectors:[["b-app-settings-menu"]],features:[ee],decls:28,vars:13,consts:[["mat-icon-button","","matTooltip","Settings","aria-label","Settings",1,"gmat-button",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],["settingsMenu","matMenu"],[1,"b-menu-header"],["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"],["mat-menu-item","","role",
"menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"internalOnly"],["mat-menu-item","","href","/settings/early-access",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","href","/settings/early-access"],["featureStage","TEAM_FOOD","matTooltip","Teamfood"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){a&
1&&(F(0,"button",0),H(1,"mat-icon",1),G(),F(2,"mat-menu",null,2)(4,"div",3),O(5,"Display Density"),G(),F(6,"button",4),J("click",function(){return b.setDensity("COMFORTABLE")}),F(7,"span",5),H(8,"mat-icon",6),G(),O(9," Comfortable "),G(),F(10,"button",7),J("click",function(){return b.setDensity("COZY")}),F(11,"span",5),H(12,"mat-icon",6),G(),O(13," Cozy "),G(),F(14,"button",8),J("click",function(){return b.setDensity("COMPACT")}),F(15,"span",5),H(16,"mat-icon",6),G(),O(17," Compact "),G(),H(18,"mat-divider"),
F(19,"button",9),J("click",function(d){return b.browseComponents(d)}),O(20,"Browse components"),G(),F(21,"button",9),J("click",function(d){return b.manageHotlists(d)}),O(22,"Manage hotlists"),G(),M(23,SWa,2,0,"button",10),F(24,"button",9),J("click",function(d){b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey})}),O(25,"Settings"),G(),M(26,TWa,3,0,"a",11),M(27,UWa,3,1,"ng-container",12),G());if(a&2){var c=Fe(3);E("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);B(6);
pe("b-menu-item-checked","COMFORTABLE"===b.density);ke("aria-checked","COMFORTABLE"===b.density);B(4);pe("b-menu-item-checked","COZY"===b.density);ke("aria-checked","COZY"===b.density);B(4);pe("b-menu-item-checked","COMPACT"===b.density);ke("aria-checked","COMPACT"===b.density);B(12);E("ngIf",b.enableBeap);B(1);E("ngIf",b.enableWhatsNewDialog)}},dependencies:[Gx,mF,kF,pF,FB,SH,wF,hF,W2,jP,S2],encapsulation:2,changeDetection:0});
var Y2=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};Y2.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();Iic(this)};var Iic=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};Y2.\u0275fac=function(a){return new (a||Y2)(C(LO))};
Y2.\u0275cmp=w({type:Y2,selectors:[["theme-change-btn"]],decls:2,vars:1,consts:[["mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&LE(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());vNb(c,!c.clientDarkmodeSubject.getValue());Iic(b)}),
H(1,"mat-icon",1),G());a&2&&(B(1),E("svgIcon",b.iconName))},dependencies:[FB,hF,wF],encapsulation:2});
var Z2=function(a,b,c,d,e,f,h){this.session=a;this.userFeedback=b;this.domSafe=c;this.docLinks=d;this.userPreferencesManager=e;this.analytics=f;this.router=h;this.isNewVersion=fj(this.session.getUserPreferences());this.url$=this.router.events.pipe(uf(function(k){return k instanceof tI}),R(function(k){return k.url}),dg(window.location.pathname));this.showNewVersionButton$=this.url$.pipe(R(function(k){return kna()?!1:!!/issues\/\d+/i.test(k)}));this.enableWhatsNewDialog=sH(a,"enableWhatsNewDialog");
this.majorReleaseNotesUpdated=sH(a,"majorReleaseNotesUpdated")};
Z2.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return ef(function(e){if(1==e.nextAddress)return c=b.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,ff(e,(0,T.firstValueFrom)(b.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";io(b.analytics,"prefs","change",d);window.location.reload();gf(e)})};
Z2.\u0275fac=function(a){return new (a||Z2)(C(qH),C(NO),C(mP),C(kP),C(PI),C(IM),C(Ik))};
Z2.\u0275cmp=w({type:Z2,selectors:[["b-app-actions"]],decls:8,vars:4,consts:[[4,"ngIf"],["id","whatsNewButton",3,"alertMode",4,"ngIf"],["mat-icon-button","","class","gmat-button feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["mat-icon-button","","matTooltip","Help","aria-label","help",1,"gmat-button",3,"click"],["svgIcon","help-outline"],["class","padded new-feature-link nowrap","href","",3,"click",4,"ngIf"],["href","",1,"padded","new-feature-link",
"nowrap",3,"click"],["id","whatsNewButton",3,"alertMode"],["mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"gmat-button","feedback-button",3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(M(0,XWa,3,2,"ng-container",0),P(1,"async"),H(2,"theme-change-btn"),M(3,YWa,1,1,"b-whats-new-button",1),M(4,ZWa,2,0,"button",2),F(5,"button",3),J("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)}),H(6,"mat-icon",4),G(),H(7,"b-app-settings-menu"));a&2&&(E("ngIf",Q(1,2,b.showNewVersionButton$)),B(3),E("ngIf",b.enableWhatsNewDialog))},dependencies:[Gx,FB,wF,hF,W2,jP,Y2,X2,Tx],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)}\n/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});
var a3=function(a){this.currentTracker=a;this.isTrackerExpanded=!1};a3.\u0275fac=function(a){return new (a||a3)(C(nM))};
a3.\u0275cmp=w({type:a3,selectors:[["tracker-switcher"]],inputs:{associatedTrackers:"associatedTrackers"},decls:7,vars:3,consts:[["mat-icon-button","","matTooltip","Tracker menu",1,"tracker-menu-button",3,"matMenuTriggerFor","menuOpened","menuClosed"],["svgIcon","arrow-dropdown"],["xPosition","before"],["trackerMenu","matMenu"],[1,"tracker-menu-label"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click",4,"ngFor","ngForOf"],["mat-menu-item","","role","menuitemcheckbox",3,"value","click"],
["alt","Tracker Logo Image",1,"tracker-menu-item-logo",3,"src"],[1,"tracker-menu-item-name"]],template:function(a,b){a&1&&(F(0,"button",0),J("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),H(1,"mat-icon",1),G(),F(2,"mat-menu",2,3)(4,"span",4),O(5,"Select a tracker"),G(),M(6,$Wa,4,4,"button",5),G());if(a&2){var c=Fe(3);E("matMenuTriggerFor",c);ke("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");B(6);E("ngForOf",
b.associatedTrackers)}},dependencies:[Kx,FB,hF,mF,kF,pF,wF],styles:[".tracker-menu-button[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx)}mat-icon[_ngcontent-%COMP%]{line-height:0}.tracker-menu-label[_ngcontent-%COMP%]{display:inline-block;padding:8px}.mat-menu-item[_ngcontent-%COMP%]{max-width:none;height:auto;overflow:visible;padding:8px 25px}.mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:0px}.tracker-menu-item-logo[_ngcontent-%COMP%]{height:40px;vertical-align:middle;width:40px;margin-right:12px}.tracker-menu-item-name[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);font-size:.8125rem;white-space:nowrap}\n/*# sourceMappingURL=tracker_switcher.css.map */"],
changeDetection:0});
var bXa=function(a){return[a]},cXa=function(){return[]},b3=function(a){this.activeSession=a;this.clickMenu=new Vw;this.showMenu=!1;this.clickLogo=new Vw;this.chips=[]};b3.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};b3.\u0275fac=function(a){return new (a||b3)(C(qH))};
b3.\u0275cmp=w({type:b3,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},ngContentSelectors:["*"],decls:8,vars:6,consts:[["mat-icon-button","","class","menu","aria-label","Expand/Collapse Navigation",3,"click",4,"ngIf"],[3,"click"],["alt","App Logo Image",1,"logo","light",3,"src"],["alt","App Logo Image",1,"logo","dark",3,"src"],["class","b-chip",3,"ngClass",4,"ngFor","ngForOf"],["mat-icon-button",
"","aria-label","Expand/Collapse Navigation",1,"menu",3,"click"],["svgIcon","menu-18px"],[1,"b-chip",3,"ngClass"]],template:function(a,b){a&1&&(Ae(),M(0,aXa,2,0,"button",0),F(1,"a",1),J("click",function(){return b.clickLogo.emit()}),H(2,"img",2)(3,"img",3),F(4,"h1"),O(5),G()(),Be(6),M(7,dXa,2,5,"output",4));a&2&&(E("ngIf",b.showMenu),B(1),ke("href",b.href?b.href:void 0,Qd),B(1),E("src",b.imgSrc,Qd),B(1),E("src",b.imgSrcDark||b.imgSrc,Qd),B(2),He(b.name),B(2),E("ngForOf",b.chips))},dependencies:[Jx,
Kx,Gx,FB,hF],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:56px;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}\n/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});
var Jic=function(){return[]},c3=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};c3.prototype.ngOnInit=function(){var a="QA"===this.environmentType?"INTERNAL"===this.frontendAccessMode||"PARTNER"===this.frontendAccessMode?"QA":"sandbox":"NIGHTLY"===this.environmentType?"nightly":"";a&&this.chips.push({name:a,color:"purple"})};c3.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};
c3.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:ph(this.frontendAccessMode,"unknown frontend access mode.")}};
oi.Object.defineProperties(c3.prototype,{useNewLogo:{configurable:!0,enumerable:!0,get:function(){return"INTERNAL"===this.frontendAccessMode}},imgSrc:{configurable:!0,enumerable:!0,get:function(){var a=this.useNewLogo?"https://www.gstatic.com/buganizer/img/v3/logo_light.svg":"https://www.gstatic.com/buganizer/img/v0/logo.svg",b,c;return(null==(b=this.tracker)?void 0:null==(c=b.branding)?void 0:c.logoUrl)||a}},imgSrcDark:{configurable:!0,enumerable:!0,get:function(){var a,b;return(null==(a=this.tracker)?
void 0:null==(b=a.branding)?void 0:b.logoUrl)||"https://www.gstatic.com/buganizer/img/v3/logo_dark.svg"}}});c3.\u0275fac=function(a){return new (a||c3)(C(FK))};
c3.\u0275cmp=w({type:c3,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[Fc],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(F(0,"app-logo",0),J("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),M(1,eXa,1,1,"tracker-switcher",
1),G());if(a&2){var c;E("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark);B(1);E("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:Ke(6,Jic)).length)}},dependencies:[Gx,b3,a3],encapsulation:2,changeDetection:0});
var d3=function(){this.isActive=!1;this.optionClicked=new Vw};d3.prototype.ngOnInit=function(){};d3.prototype.onClick=function(){this.optionClicked.emit(this.index)};d3.\u0275fac=function(a){return new (a||d3)};
d3.\u0275cmp=w({type:d3,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()});a&2&&pe("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(Ae(),F(0,"div",0),Be(1),G())},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%}\n/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});
var e3=function(a,b){this.ref=a;this.hostElement=b;this.items=[];this.header=null;this.itemSelected=new Vw;this.activeItemChanged=new Vw;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team".split(" ")};e3.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};e3.prototype.ngAfterViewInit=function(){};var CXa=function(a){var b=K(3);JXa(a);b.itemSelected.emit(a)};
e3.prototype.setNextItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex+1)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),Kic(this))};
e3.prototype.setPreviousItemActive=function(){0<this.items.length&&null!=this.activeItemIndex&&(this.activeItemIndex=(this.activeItemIndex-1+this.items.length)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),Kic(this))};var Lic=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};e3.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var Mic=function(a){if(null!=a.activeItemIndex&&a.itemElements){var b,c;return null!=(c=null==(b=a.itemElements.get(a.activeItemIndex))?void 0:b.nativeElement.id)?c:void 0}},Kic=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&tXb(b.nativeElement,a.hostElement.nativeElement)},JXa=function(a){Yn(mo.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};e3.\u0275fac=function(a){return new (a||e3)(C(mI,2),C(sd))};
e3.\u0275cmp=w({type:e3,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&Ef(d3,5,sd);if(a&2){var c;Df(c=Gf())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[Je([mI]),Fc],decls:3,vars:2,consts:[["class","header gmat-caption",4,"ngIf"],"role;listbox;aria-label;Search autocomplete list;id;b-search-box-autocomplete".split(";"),["role","option",3,"index","isActive","optionClicked",
4,"ngFor","ngForOf"],[1,"header","gmat-caption"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["noHotlistSelected",""],["noSavedSearchSelected",""],["noComponentSelected",""],[3,"accessLevel"],["noTeamSelected",""],["noSelectedCustomField",""],["role","option",3,"index","isActive","optionClicked"],[1,"monospaced","item-description"],[1,"item-description"],[4,"ngFor","ngForOf"],["role","button",3,"title","click"]],template:function(a,b){a&1&&(M(0,wXa,6,5,"div",0),F(1,"div",1),M(2,KXa,8,10,"b-app-search-auto-complete-option",
2),G());a&2&&(E("ngIf",b.header&&b.header.type),B(2),E("ngForOf",b.items))},dependencies:[Kx,Gx,LS,d3,Ux],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}b-access-level-indicator[_ngcontent-%COMP%]{margin:0 8px}span[role=button][_ngcontent-%COMP%]{cursor:pointer}span[role=button][_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});
var f3=function(){this.searchTriggered$=new T.Subject;this.queryState$=new T.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1})};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275prov=hc({token:f3,factory:f3.\u0275fac,providedIn:"root"});
var Nic=["box"],Oic=["initialFocus"],Pic=["finalFocus"],g3=function(a,b){this.documentationLinks=a;this.appSearchState=b;this.placeholder="";this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new Vw;this.onAdvancedSearchClose=new Vw;this.onAdvancedSearchSubmit=new Vw;this.onSaveSearch=new Vw;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";this.destroyed$=new T.Subject;this.currentQuery$=
this.appSearchState.queryState$.pipe(R(function(c){return c.query}));this.autoCompleteItemSelected$=new T.Subject};
g3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(hg(this.currentQuery$),fg(this.destroyed$)).subscribe(function(b){var c=r(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:null!=b.cursorIdx?b.cursorIdx:null==b.startIdx?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
g3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(uf(function(b){return!b.setViaInteraction}),fg(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,SWb(b)&&(b.selectionStart=c,b.selectionEnd=c))})};g3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g3.prototype.submitSearch=function(){this.appSearchState.searchTriggered$.next()};
var Qic=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};
g3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!h3(this))return;Ric(this);break;case "ArrowUp":if(!h3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!h3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!h3(this)){Qic(this,this.inputBox.nativeElement.value);return}Lic(this.acList);break;case "ArrowLeft":Qic(this,this.inputBox.nativeElement.value);return;case "Enter":h3(this)?null!=this.acList.activeItemIndex?Lic(this.acList):
this.submitSearch():this.submitSearch();break;default:return}a.preventDefault();a.stopPropagation()};g3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Sic(this)};g3.prototype.getCursorPosition=function(){var a=TWb(this.inputBox.nativeElement,!0)[0];if(a===TWb(this.inputBox.nativeElement,!1)[1])return a};
var Ric=function(a){"auto_complete"===a.dropdownStatus&&(a.dropdownStatus="closed")},Sic=function(a){"advanced_search"===a.dropdownStatus&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},h3=function(a){return"auto_complete"===a.dropdownStatus&&0<a.autoCompleteItems.length},Tic=function(a){return"auto_complete"===a.dropdownStatus&&null!=a.autoCompleteHeader},Uic=function(a){return"advanced_search"===a.dropdownStatus};
g3.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",Sic(this))};var Vic=function(a,b){b.shiftKey&&"Tab"===b.key&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},Wic=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};g3.\u0275fac=function(a){return new (a||g3)(C(kP),C(f3))};
g3.\u0275cmp=w({type:g3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(Ef(e3,7),Ef(Nic,5),Ef(Oic,7,sd),Ef(Pic,7));if(a&2){var c;Df(c=Gf())&&(b.acList=c.first);Df(c=Gf())&&(b.inputBox=c.first);Df(c=Gf())&&(b.advancedSearchInitialFocus=c.first);Df(c=Gf())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",onAdvancedSearchClose:"onAdvancedSearchClose",
onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},ngContentSelectors:["*"],decls:28,vars:18,consts:[[1,"search-form-container",3,"clickOutside"],[1,"search-box-container"],["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,"placeholder","keydown","input","click","focus"],["box",""],["mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],[1,"search-dropdown"],[3,"items","header","itemSelected"],[1,"advanced-search"],["align","right",1,"advanced-search-header"],["mat-icon-button","","aria-label","Close advanced search","matTooltip","Close advanced search",1,"gmat-button",
3,"keydown","click"],["initialFocus",""],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["mat-flat-button","",1,"gmat-button","medium",3,"click"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[1,"save-search-container"],["type","text","aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModel","ngModelChange","keydown.Tab","keydown.enter"],["finalFocus",
""],["mat-icon-button","","aria-label","Save search","matTooltip","Save search",1,"gmat-button",3,"disabled","click"],["svgIcon","saved-search-18px",1,"icon-s"]],template:function(a,b){if(a&1){var c=x();Ae();F(0,"div",0);J("clickOutside",function(){Ric(b)});F(1,"div",1)(2,"button",2);J("click",function(){return b.submitSearch()});H(3,"mat-icon",3);G();F(4,"textarea",4,5);J("keydown",function(d){return b.handleKeydown(d)})("input",function(){z(c);var d=Fe(5);return A(Qic(b,d.value))})("click",function(){z(c);
var d=Fe(5);return A(Qic(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});G();F(6,"button",6);J("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});H(7,"mat-icon",7);G()();F(8,"aside",8)(9,"b-app-search-auto-complete-list",9);J("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});G();F(10,"div",10)(11,"div",11)(12,"button",12,13);J("keydown",function(d){return Vic(b,d)})("click",function(){return Sic(b)});H(14,"mat-icon",14);
G()();F(15,"div",15);Be(16);G();F(17,"div",16)(18,"button",17);J("click",function(){return b.submitAdvancedSearch()});O(19,"Search");G();F(20,"a",18);O(21,"Search help ");H(22,"mat-icon",19);G();F(23,"div",20)(24,"input",21,22);J("ngModelChange",function(d){return b.searchName=d})("keydown.Tab",function(){return Wic(b)})("keydown.enter",function(){return b.saveSearch()});G();F(26,"button",23);J("click",function(){return b.saveSearch()});H(27,"mat-icon",24);G()()()()()()}a&2&&(pe("dropdown-opened",
h3(b)||Tic(b)||Uic(b)),B(1),pe("hidden",Uic(b)),B(3),E("placeholder",b.placeholder),ke("aria-activedescendant",Mic(b.acList))("aria-expanded",h3(b)||Tic(b)),B(4),pe("advanced-search-open",Uic(b)),B(1),pe("hidden",!(h3(b)||Tic(b))),E("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(1),pe("hidden",!Uic(b)),B(10),ke("href",b.searchHelpLink,Qd),B(4),E("ngModel",b.searchName),B(2),E("disabled",!b.searchName))},dependencies:[HA,FB,wF,hF,Mg,py,vy,oQ,jC,e3],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;max-width:800px;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 8px * 2);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-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-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:transparent;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;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;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;align-items:center;border:none;background-color:#fff;background-color:var(--surface-default);height:32px;width:100%;margin-bottom:10px}[_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}\n/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});
var i3=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new Vw;this.searchBoxOnAdvancedSearchClose=new Vw;this.searchBoxOnAdvancedSearchSubmit=new Vw;this.searchBoxOnSaveSearch=new Vw};i3.\u0275fac=function(a){return new (a||i3)(C(nM))};
i3.\u0275cmp=w({type:i3,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},ngContentSelectors:["*"],decls:6,vars:11,consts:[[3,"environmentType","frontendAccessMode","tracker","associatedTrackers"],[3,"placeholder","autoCompleteItems","autoCompleteHeader","onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch"]],template:function(a,b){a&1&&(Ae(),H(0,"b-app-logo",0),P(1,"async"),P(2,"async"),F(3,"b-app-search-box",1),J("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)}),Be(4),G(),H(5,"b-app-actions"));a&2&&(E("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",Q(1,7,b.currentTracker.tracker$))("associatedTrackers",Q(2,9,b.currentTracker.associatedTrackers$)),B(3),E("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",
b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader))},dependencies:[c3,Z2,g3,Tx],styles:["[_nghost-%COMP%]{display:flex;align-items:center}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}\n/*# sourceMappingURL=app_top_bar.css.map */"],changeDetection:0});
var j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=xc({type:j3});j3.\u0275inj=ic({imports:[ay,hC,wG,NN]});
var Xic=[a3],k3=function(){};[].concat(v(Xic));[].concat(v(Xic));k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275mod=xc({type:k3});k3.\u0275inj=ic({imports:[ay,wG,AF,qF,gH]});
var l3=function(){};l3.\u0275fac=function(a){return new (a||l3)};l3.\u0275mod=xc({type:l3});l3.\u0275inj=ic({imports:[ay,AF,wG,qF,gH]});
var Yic=[b3],m3=function(){};[].concat(v(Yic));[].concat(v(Yic));m3.\u0275fac=function(a){return new (a||m3)};m3.\u0275mod=xc({type:m3});m3.\u0275inj=ic({imports:[ay,wG,AF,gH]});
var n3=function(){};n3.\u0275fac=function(a){return new (a||n3)};n3.\u0275mod=xc({type:n3});n3.\u0275inj=ic({providers:[LO]});
var o3=function(){};o3.\u0275fac=function(a){return new (a||o3)};o3.\u0275mod=xc({type:o3});o3.\u0275inj=ic({imports:[ay,wG,AF,gH,n3]});
var p3=function(){};p3.\u0275fac=function(a){return new (a||p3)};p3.\u0275mod=xc({type:p3});p3.\u0275inj=ic({imports:[ay,qF,wG,XH,gH,AF,MA,Ky,pQ,l3,qP,m3,WS,lC,U2,o3,j3,k3]});
var q3=function(){};q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275mod=xc({type:q3});q3.\u0275inj=ic({imports:[ay,wG,hC]});
var r3=function(){};r3.\u0275fac=function(a){return new (a||r3)};r3.\u0275mod=xc({type:r3});r3.\u0275inj=ic({imports:[ay,Ky,wG,vC,tC,hC,zV]});
var s3=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 Vw;this.selectedChange=new Vw;this.cardTitleChange=new Vw;this.onSaveButtonClicked=new Vw;this.onCancelButtonClicked=
new Vw;this.isInheritedChange=new Vw;this.isExpanded=!1};s3.prototype.expand=function(){this.isExpanded=!0};s3.prototype.collapse=function(){this.isExpanded=!1};s3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};s3.\u0275fac=function(a){return new (a||s3)};
s3.\u0275cmp=w({type:s3,selectors:[["b-collapsible-card"]],inputs:{cardTitle:"cardTitle",dropdownOptions:"dropdownOptions",selectedOption:"selectedOption",selected:"selected",disabled:"disabled",isSaveButtonDisabled:"isSaveButtonDisabled",showRequiredToggle:"showRequiredToggle",showDeleteButton:"showDeleteButton",showInheritedToggle:"showInheritedToggle",isInherited:"isInherited",inheritedDisabled:"inheritedDisabled",inheritedDisabledTooltipText:"inheritedDisabledTooltipText",placeholderForCardTitle:"placeholderForCardTitle",
ariaLabelForCardTitle:"ariaLabelForCardTitle"},outputs:{dropdownSelectionChanged:"dropdownSelectionChanged",selectedChange:"selectedChange",cardTitleChange:"cardTitleChange",onSaveButtonClicked:"onSaveButtonClicked",onCancelButtonClicked:"onCancelButtonClicked",isInheritedChange:"isInheritedChange"},ngContentSelectors:["*"],decls:11,vars:14,consts:[[1,"carded"],[1,"flex-kids-x","flex-cross-axis-centered","card-header"],[1,"collapsible-card-checkbox",3,"disabled","checked","aria-label","change"],[4,
"ngIf","ngIfElse"],["mat-icon-button","",3,"ngClass","click"],["svgIcon","chevron-left",4,"ngIf"],["svgIcon","arrow-down",4,"ngIf"],["expandedCardHeader",""],["class","expanded-card-container",4,"ngIf"],["class","expanded-card-actions",4,"ngIf"],[1,"card-title","heading-s"],["svgIcon","chevron-left"],["svgIcon","arrow-down"],["appearance","fill",1,"card-title"],["matInput","","type","text","required","","aria-required","true","maxlength","40","autocomplete","off",1,"heading-s",3,"placeholder","disabled",
"ngModel","ngModelChange"],["class","type-dropdown","appearance","outline",4,"ngIf"],["appearance","outline",1,"type-dropdown"],[3,"disabled","value","valueChange","selectionChange"],[4,"ngIf"],["class","ee-config-option",3,"value",4,"ngFor","ngForOf"],[1,"icon-s",3,"svgIcon"],[1,"ee-config-option",3,"value"],["class","icon-s",3,"svgIcon",4,"ngIf"],[1,"expanded-card-container"],[1,"expanded-card-actions"],["mat-raised-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-button",
"","color","primary",1,"gmat-button","cancel-button",3,"disabled","click"],["mat-icon-button","","aria-label","Delete","class","delete-button",3,"disabled",4,"ngIf"],[3,"vertical",4,"ngIf"],["labelPosition","before",3,"disabled",4,"ngIf"],["class","inherited-toggle","labelPosition","before",3,"checked","disabled","matTooltip","matTooltipDisabled","change",4,"ngIf"],["mat-icon-button","","aria-label","Delete",1,"delete-button",3,"disabled"],["svgIcon","delete",1,"icon-m"],[3,"vertical"],["labelPosition",
"before",3,"disabled"],["labelPosition","before",1,"inherited-toggle",3,"checked","disabled","matTooltip","matTooltipDisabled","change"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),J("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),G(),M(3,LXa,3,3,"ng-container",3),F(4,"button",4),J("click",function(){b.isExpanded?b.collapse():b.expand()}),M(5,MXa,1,0,"mat-icon",5),M(6,NXa,1,0,"mat-icon",6),G(),M(7,SXa,3,7,"ng-template",null,
7,Mf),G(),M(9,TXa,2,0,"div",8),M(10,YXa,9,6,"div",9),G());if(a&2){var c=Fe(8);ke("aria-expanded",b.isExpanded);B(2);pe("expanded-checkbox",b.isExpanded);E("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);B(1);E("ngIf",!b.isExpanded)("ngIfElse",c);B(1);E("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");ke("aria-label",b.isExpanded?"Collapse editor":"Expand editor");B(1);E("ngIf",b.isExpanded);B(1);E("ngIf",!b.isExpanded);B(3);E("ngIf",b.isExpanded);B(1);E("ngIf",b.isExpanded)}},
dependencies:[Jx,Kx,Gx,Mg,py,Gy,Hy,vy,BO,FB,xT,hF,sC,pC,QS,OS,BB,SH,uC,wF],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-color:#9aa0a6;border-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-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}.expanded-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{margin-top:-10px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}']});
var t3=function(){};t3.\u0275fac=function(a){return new (a||t3)};t3.\u0275mod=xc({type:t3});t3.\u0275inj=ic({imports:[ay,Ky,GO,wG,AT,AF,RS,XH,vC,gH]});
var u3=function(a){Z.call(this,a,-1,Zic)};U(u3,Z);u3.prototype.getFieldIdList=function(){return tb(this,jl,1)};u3.prototype.setFieldIdList=function(a){return Cb(this,1,a)};var Zic=[1];u3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Eb(this.getFieldIdList(),eJ)}:void 0;return a};u3.messageId="b.ReorderFieldsRequest";
var v3=function(a){Z.call(this,a,-1,$ic)};U(v3,Z);v3.prototype.getFieldIdList=function(){return tb(this,jl,1)};v3.prototype.setFieldIdList=function(a){return Cb(this,1,a)};var $ic=[1];v3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Eb(this.getFieldIdList(),eJ)}:void 0;return a};v3.messageId="b.ReorderFieldsResponse";
var w3=function(a){this.executor=a};w3.prototype.updateCustomFieldState=function(a,b,c){var d=new jl;d.setCustomFieldId(b);var e=new fJ;Db(e,1,d);e.setStateOnIssues(c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:fJ})};w3.prototype.reorder=function(a,b){b=(new u3).setFieldIdList(b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:v3})};w3.\u0275fac=function(a){return new (a||w3)(t(hI))};
w3.\u0275prov=hc({token:w3,factory:w3.\u0275fac,providedIn:"root"});
var ajc=["SILENT","MINOR","MAJOR"];
var bjc=["fieldStateMenu"],bYa=function(a){return{type:a}},x3=function(a,b,c,d,e,f,h,k,q,u,y){qI.call(this);var D=this;this.customFieldsApi=a;this.checkBeforeExit=b;this.butterBar=c;this.analytics=d;this.routeParams=e;this.componentActions=f;this.fieldConfigService=h;this.documentationLinks=k;this.paths=q;this.confirmationDialog=u;this.appEvents=y;this.FieldType=jYb;this.ListFieldType=bZb;this.getSingleEditFieldType=kYb;this.getListFieldType=cZb;this.secondaryTypes=["Single","Multiple"];this.componentIdsToNames=
{};this.isLoading=!1;this.editableField=null;this.allowedValues=[];this.originalEditableFieldValue_=null;this.msgFieldStateTip="Whether the field is visible in this component";this.typeChoices=Object.values(FAb).filter(function(I){return!I.includes("REPEATED")});this.significanceChoices=ajc;Object.keys(EFb).slice(0).filter(function(I){return"UNSPECIFIED"!==I});this.componentId_=Oi(this.routeParams.componentId);this.subscriptions.add(WY(b,function(){return D.hasUnsavedChanges()},!0))};U(x3,qI);
x3.\u0275dir=qI.\u0275dir;x3.prototype.ngOnInit=function(){cjc(this)};x3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=this.parentComponent.componentPathInfo.allCustomField,c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
x3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||q5b())this.editableField=Ii(this.customFields[a]),this.originalEditableFieldValue_=Ii(this.editableField),this.serverError=null,this.setType(this.editableField.type),fYa(this,this.editableField.allowedValue)};
var rYa=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Tn("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. Are you sure you want to delete this field?"),onConfirm:function(){a.doDelete(c)}})};
x3.prototype.doDelete=function(a){var b=this;yK(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId_,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId_);io(b.analytics,"customField","delete");yK(b.butterBar,"Deleted field: "+a.name,2E3);cjc(b)})};
x3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId_);cjc(a);io(a.analytics,"customField",d)},c=function(e){a.serverError=Im(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=null;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)};
x3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId_,a.customFieldId,b).pipe(fg(d.destroyed$)).subscribe(function(){a:{switch(b){case 1:var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case 2:h="Disabled";break a;case 3:h="Enabled";break a}h=void 0}io(d.analytics,"customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId_).then(function(){return cjc(d,
!0)}).then(function(){setTimeout(function(){var k,q;null==(k=d.fieldStateMenus)||null==(q=k.get(c))||q.focus()})}).then(function(){return e(void 0)})},function(h){d.serverError=Im(h);d.isLoading=!1;f(h)})})};x3.prototype.cancel=function(){this.originalEditableFieldValue_=this.editableField=null};
var iYa=function(a,b){var c=a.editableField.type;a.editableField.typedDefaultValue=new cJ({customFieldId:a.editableField.customFieldId,textValue:"TEXT"===c?b:void 0,dateValue:"DATE"===c?b:void 0,enumValue:"ENUM"===c?b:void 0,numericValue:"NUMERIC"===c?b:void 0,repeatedTextValue:"REPEATED_TEXT"===c?{values:b}:void 0,repeatedDateValue:"REPEATED_DATE"===c?{values:b}:void 0,repeatedEnumValue:"REPEATED_ENUM"===c?{values:b}:void 0,repeatedNumericValue:"REPEATED_NUMERIC"===c?{values:b}:void 0})};
x3.prototype.setType=function(a,b){var c=this.editableField.type;if(void 0===b?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=null)};
var fYa=function(a,b){b=null===b?null:b.map(function(c){return c.toString()});a.editableField.allowedValue=b;a.allowedValues=b?b.map(function(c){return{value:c,displayText:c}}):[]};x3.prototype.hasUnsavedChanges=function(){return this.editableField&&!Hi(this.editableField,this.originalEditableFieldValue_)?!0:!1};
var cjc=function(a,b){b=void 0===b?!1:b;b||(a.isLoading=!0);return a.componentActions.get(a.componentId_).then(function(c){var d,e=(null==(d=c.componentPathInfo)?void 0:d.allCustomField)||[];d=[];a.componentIdsToNames={};var f,h=(null==(f=c.componentPathInfo)?void 0:f.componentPathId)||[];for(f=0;f<h.length;f++)d.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");a.editableField=null;a.originalEditableFieldValue_=null;b||(a.isLoading=
!1);c=function(k,q){return ju(k.name,q.name)};a.customFields=e.filter(function(k){return a.componentId_===k.componentId}).sort(c);a.inheritedCustomFields=e.filter(function(k){return a.componentId_!==k.componentId}).sort(c);a.appEvents.customFieldsModified.next(e)})},xYa=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};x3.prototype.trackClick=function(a){io(this.analytics,"editComponent","click",a)};
var jYa=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};x3.prototype.getListFieldValues=function(){var a,b,c,d;return null!=(d=null==(c=null==(a=this.editableField)?void 0:null==(b=a.typedDefaultValue)?void 0:b.getValue())?void 0:c.values)?d:null};x3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
x3.\u0275fac=function(a){return new (a||x3)(C(qZ),C(VY),C(xK),C(IM),C(SR),C(sT),C(w3),C(kP),C(LK),C(RM),C(FK))};
x3.\u0275cmp=w({type:x3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&Ef(bjc,5);if(a&2){var c;Df(c=Gf())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[ee,Fc],decls:4,vars:3,consts:[[1,"edit-resource-panel","edit-component-field-parent"],["class","edit-custom-field-panel",4,"ngIf"],["class","custom-fields-loader",4,"ngIf"],[4,"ngIf"],[1,"edit-custom-field-panel"],["class","bv2-validation-error-banner",
4,"ngIf"],["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,"bFocus","ngModel","disabled","ngModelChange"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-custom-field-table"],[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],
["typeHelp",""],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field","gmat-button",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["enumMenu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngFor","ngForOf"],["secondaryMenu","matMenu"],["matMenuContent",""],["class","edit-field",4,"ngIf"],
["class","bv2-component-custom-field-label","id","field-default-label",4,"ngIf"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable","valueChange",4,"ngIf"],["class","bv2-component-custom-field-label","id","field-repeated-default-label",4,"ngIf"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate","valuesChange",
4,"ngIf"],["id","field-required-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-required-label",3,"name","type","tooltip","value","valueChange"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],["significanceHelp",""],[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","gmat-button",3,"matMenuTriggerFor"],["significanceMenu","matMenu"],["mat-menu-item","","type","button",3,"click",4,"ngFor","ngForOf"],["format","fill",1,"",3,"disabled","onAction"],["format","hairline",3,"onAction"],[1,"bv2-validation-error-banner"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],
["mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"defaultLineCount","type","values","listFieldDisabled","preventDuplicates","isDefaultOrAllowedValues","truncate","valuesChange"],["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","valueChange"],["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","valuesChange"],["mat-menu-item","","type","button",3,"click"],[1,"custom-fields-loader"],[3,"large"],[1,"custom-fields-table"],[3,"ngClass",4,"ngFor","ngForOf"],["class","edit-button-row",4,"ngIf"],[3,"ngClass"],[3,"customFieldValue"],["class","action-buttons",4,"ngIf"],[1,"action-buttons"],[3,
"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[1,"ancestor-component-note"],[1,"header-label"],[3,"onedevHovercardTrigger","href","click"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip","fieldStateChange",4,"ngIf"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip","fieldStateChange"],["fieldStateMenu",""],["routerLink",
"./","fragment","fieldOrdering",1,"keep-underline"],[1,"edit-button-row"],["format","fill",3,"onAction"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,oYa,68,32,"div",1),M(2,pYa,2,1,"div",2),M(3,DYa,26,7,"div",3),G());a&2&&(B(1),E("ngIf",b.editableField&&!b.isLoading),B(1),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading))},dependencies:[Jx,Kx,Gx,wy,Mg,py,qy,Gy,vy,ty,oV,UU,tH,oO,i_,fN,gN,jN,hN,MS,wF,mF,kF,pF,jF,FB,d_,CV,cN,EI,pM,qM,sM],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 y3=function(){};y3.\u0275fac=function(a){return new (a||y3)};y3.\u0275mod=xc({type:y3});y3.\u0275inj=ic({imports:[ay,Ky,pV,VU,WH,pO,j_,QN,XS,gH,qF,wG,RS,e_,DV,CM,ON,KI]});
var z3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new Vw;this.addRow=new Vw;this.optionsChange=new Vw};z3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};z3.prototype.drop=function(a){pp(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};z3.\u0275fac=function(a){return new (a||z3)};
z3.\u0275cmp=w({type:z3,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},decls:11,vars:7,consts:[[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","",4,"ngFor","ngForOf"],["mat-button","","class","gmat-button add-row-button",3,"click",4,"ngIf"],["cdkDrag",""],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"value","placeholder","disabled","change"],["displayInput","matInput"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"value","placeholder","disabled","change"],["valueInput","matInput"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["mat-button","",1,"gmat-button","add-row-button",3,"click"]],template:function(a,
b){a&1&&(F(0,"div",0)(1,"div",1)(2,"span",2),O(3," Dropdown value "),G()(),F(4,"div",3)(5,"span",4),O(6," Average days "),G(),H(7,"mat-icon",5),G()(),F(8,"div",6),J("cdkDropListDropped",function(c){return b.drop(c)}),M(9,FYa,12,13,"div",7),G(),M(10,GYa,2,0,"button",8));a&2&&(B(2),pe("muted",b.disabled),B(3),pe("muted",b.disabled),B(2),E("matTooltip","All estimated effort types map to an average number of days."),B(2),E("ngForOf",b.options),B(1),E("ngIf",!b.disabled))},dependencies:[Kx,Gx,sC,uC,FB,
hF,wF,lV,mV,fV],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.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 A3=function(){this.disabled=!1;this.valueChange=new Vw};A3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};A3.\u0275fac=function(a){return new (a||A3)};
A3.\u0275cmp=w({type:A3,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:14,vars:8,consts:[[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,"disabled","value","change"],["timeInput","matInput"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"span",2),O(3," Time "),G(),F(4,"span",3),O(5,"1"),G()(),F(6,"div",1)(7,"div",4)(8,"span",5),O(9," Average days "),G(),H(10,"mat-icon",6),G(),F(11,"mat-form-field",
7)(12,"input",8,9),J("change",function(d){return b.onValueChange(d)}),G()()()());if(a&2){var c=Fe(13);B(2);pe("muted",b.disabled);B(6);pe("muted",b.disabled);B(2);E("matTooltip","All estimated effort types map to an average number of days.");B(1);E("appearance",c.focused?"standard":"none");B(1);E("disabled",b.disabled)("value",b.value)}},dependencies:[sC,uC,hF,wF],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:1rem;line-height:24px;font-weight:400;width:168px}\n/*# sourceMappingURL=numeric_config.css.map */"]});
var C3=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new Vw;this.configurationOptions=[djc,ejc,B3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=TFb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=sH(this.activeSession,"enableAggregationRules")};
C3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&zl(this.effortSpec,4,Al)&&(this.originalSelectedEffortConfig=B3)};C3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=this.effortSpec.clone(),this.setValues(this.effortSpec))};
C3.prototype.setValues=function(a){if(zl(a,4,Al)){this.selectedEffortConfig=B3;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=Bl(b,sl,4,Al))?void 0:Cl(c,1))?d:1}zl(a,5,Al)&&(this.selectedEffortConfig=void 0,this.enumSpecOptions=Dl(a).getOptionsList().map(function(f){return{label:f.getLabel(),value:f.getValue()}}));var e;this.inherit=null!=(e=a.getInherit())?e:!1;this.name=""===a.getName()?"Estimated effort":a.getName();if(zl(a,5,Al)||zl(a,4,Al))this.estimatedEffortFieldEnabled=
!0;Y(a,6,0)!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=Y(a,6,0))};var fjc=function(a){var b,c,d;if((null==(b=a.effortSpec)?0:zl(b,5,Al))&&!a.selectedEffortConfig||(null==(c=a.selectedEffortConfig)?void 0:c.displayText)===djc.displayText||(null==(d=a.selectedEffortConfig)?void 0:d.displayText)===ejc.displayText)return"enum";var e;return(null==(e=a.selectedEffortConfig)?void 0:e.displayText)===B3.displayText?"numeric":"empty"};
C3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};C3.prototype.isSaveButtonDisabled=function(){var a;if(!(a=this.disabled||void 0===this.selectedEffortConfig&&void 0===this.effortSpec&&this.estimatedEffortFieldEnabled&&!this.inherit||""===this.name)){a:{a=r(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||null===b.value){a=!1;break a}a=!0}a=!a}return a};
var gjc=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};C3.\u0275fac=function(a){return new (a||C3)(C(qH))};
C3.\u0275cmp=w({type:C3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Fc],decls:8,vars:14,consts:[["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited",
"inheritedDisabled","cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked","isInheritedChange"],[1,"content",3,"ngSwitch"],[4,"ngSwitchCase"],["class","margin-top",4,"ngIf"],["enumConfig",""],[4,"ngTemplateOutlet"],[3,"disabled","value","valueChange"],[1,"margin-top"],["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,"value","disabled","valueChange"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"options","disabled","optionsChange","addRow","removeAtIndex"]],template:function(a,b){a&1&&(F(0,"b-collapsible-card",0),J("cardTitleChange",function(c){return b.name=c})("dropdownSelectionChanged",function(c){b.selectedEffortConfig=
c;c.displayText===djc.displayText?(b.enumSpecOptions=[].concat(v(hjc)),b.name="Story points"):c.displayText===ejc.displayText?(b.enumSpecOptions=[].concat(v(ijc)),b.name="T-shirt sizes"):c.displayText===B3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){var c=new rl;if(b.estimatedEffortFieldEnabled){c.setName(b.name).setInherit(b.inherit);b.enableAggregationRules&&vl(c,6,b.selectedAggregationRule);b.originalEffortSpec&&0!==
b.originalEffortSpec.getCustomFieldId()&&c.setCustomFieldId(b.originalEffortSpec.getCustomFieldId());var d;if((null==(d=b.selectedEffortConfig)?void 0:d.displayText)===B3.displayText)oqa(c,pqa(new sl,b.numericSpecMultiplier));else if(0<b.enumSpecOptions.length){d=[];for(var e=r(b.enumSpecOptions),f=e.next();!f.done;f=e.next())f=f.value,f.label&&null!==f.value&&d.push((new ul).setLabel(f.label).setValue(f.value));qqa(c,(new tl).setOptionsList(d))}}else c.setName("").setInherit(!1);b.updateEffortSpec.emit(c)})("selectedChange",
function(c){b.estimatedEffortFieldEnabled=c;b.estimatedEffortFieldEnabled||gjc(b)})("onCancelButtonClicked",function(){b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,gjc(b))})("isInheritedChange",function(c){(c=c.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:(new rl).setName("Estimated effort")),b.effortSpec=b.parentEffortSpec,b.effortSpec||gjc(b)):b.effortSpec&&(b.setValues(new rl),
gjc(b));b.inherit=c}),F(1,"div",1),M(2,IYa,2,1,"ng-container",2),M(3,JYa,2,2,"ng-container",2),M(4,KYa,1,0,"ng-container",2),G(),M(5,LYa,23,13,"div",3),G(),M(6,MYa,1,2,"ng-template",null,4,Mf));a&2&&(E("cardTitle",b.name)("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(1),E("ngSwitch",fjc(b)),B(1),E("ngSwitchCase","enum"),B(1),E("ngSwitchCase","numeric"),B(1),E("ngSwitchCase","empty"),B(1),E("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[Gx,Qx,Mx,Nx,sC,GB,hF,s3,wF,QS,OS,BB,z3,A3,D3]},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{height:34px;width:168px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-flex{padding-top:1px}[_nghost-%COMP%]     .content mat-form-field .mat-form-field-infix{padding:0 0 .5em}[_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 hjc=[{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}],ijc=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],djc={displayText:"Story points",icon:"story-point-24px"},ejc={displayText:"T-shirt sizes",icon:"t-shirt-24px"},B3={displayText:"Time",icon:"time-24px"},D3=function(){};
D3.prototype.transform=function(a){switch(a){case 2:return"Max Point";default:return"Simple Sum"}};D3.\u0275fac=function(a){return new (a||D3)};D3.\u0275pipe=zc({name:"aggregationRuleText",type:D3,pure:!0});
var E3=function(){this.disabled=!1;this.updateComponent=new Vw};E3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.effortSpecJspb=wl(this.effortSpec));a.parentEffortSpec&&this.parentEffortSpec&&(this.parentEffortSpecJspb=wl(this.parentEffortSpec))};E3.\u0275fac=function(a){return new (a||E3)};
E3.\u0275cmp=w({type:E3,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},features:[Fc],decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","disabled","updateEffortSpec"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),O(2,"Once activated, standard fields appear in the right panel of all issues."),G(),F(3,"b-estimated-effort-config",
2),J("updateEffortSpec",function(c){b.updateComponent.emit(c)}),G()());a&2&&(B(3),E("effortSpec",b.effortSpecJspb)("parentEffortSpec",b.parentEffortSpecJspb)("disabled",b.disabled))},dependencies:[C3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});
var F3=function(){};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275mod=xc({type:F3});F3.\u0275inj=ic({imports:[ay,vC,wG,AF,GO,t3,gH,RS,nV]});
var G3=function(){};G3.\u0275fac=function(a){return new (a||G3)};G3.\u0275mod=xc({type:G3});G3.\u0275inj=ic({imports:[ay,t3,F3]});
var jjc={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};
var H3=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);var y=this;this.data=a;this.dialogRef=b;this.pathBuilder=c;this.teamsService=d;this.componentActions=e;this.userPreferencesManager=f;this.snackBar=h;this.analytics=k;this.errorHandler=q;this.componentFridge=u;this.teamSuggestionIds=[];this.header="";this.teamOptions=[];this.teamAction="CHANGE";this.WarningType=jjc;this.warningType=a.warningType;this.componentId=a.componentId;this.parentComponentId=a.parentComponentId;this.teamSuggestionIds=a.teamSuggestionIds;
this.selectedTeam=new kjc(this.teamSuggestionIds[0]||"0",[]);this.componentSetting=this.pathBuilder.editComponent(this.componentId,"basic");this.suggestedTeams$=LKb(this.teamsService,this.teamSuggestionIds).pipe(R(function(D){var I=[];D=bj(D,1,YL);for(var N=r(y.teamSuggestionIds),L=N.next();!L.done;L=N.next())L=L.value,D.has(L)&&I.push(new kjc(L,lb(D.get(L),6)));return I}),dg([]));this.myTeams$=cM(this.teamsService,"").pipe(R(function(D){var I=[];D=D.getTeamSuggestionsList();D=r(D);for(var N=D.next();!N.done;N=
D.next())N=N.value,I.push(new kjc(N.getId(),N.getPathNamesList()));return I}));(0,T.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(R(function(D){var I=r(D);D=I.next().value;I=I.next().value;return[].concat(v(D),v(I))}),R(LBb(function(D){return D.teamId})),fg(this.destroyed$)).subscribe(function(D){y.teamOptions=D;y.selectedTeam=D[0]})};U(H3,qI);H3.\u0275dir=qI.\u0275dir;
H3.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
H3.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;ljc(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):ljc(this,"0",this.selectedTeam.teamId);else{var b=Ii(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});nFb(this.userPreferencesManager,b).pipe(fg(this.destroyed$)).subscribe(function(){io(a.analytics,
mo.TEAM_WARNING,"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var ljc=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);io(a.analytics,mo.TEAM_WARNING,"updateTeam");a.snackBar.open("Team mapping changed","",{duration:4E3});var e;null==(e=a.dialogRef)||e.close(a.selectedTeam.teamId)}).catch(function(d){a.errorHandler.errorHandler(null,d)})};
H3.prototype.selectOption=function(a){this.selectedTeam=a};H3.prototype.trackClick=function(a){io(this.analytics,mo.TEAM_WARNING,"click",a)};H3.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};H3.\u0275fac=function(a){return new (a||H3)(C(aC),C(QB),C(XX),C(bM),C(sT),C(PI),C(uK),C(IM),C(BK),C(HJ))};
H3.\u0275cmp=w({type:H3,selectors:[["b-team-warning-dialog"]],features:[ee],decls:11,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["aria-label","Quick team actions",3,"ngModel","ngModelChange",4,"ngIf"],["class","suggested-teams",4,"ngIf"],["mat-button","","mat-dialog-close","",1,"gmat-button","medium"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button",3,"click"],["mat-dialog-content",""],["target","_blank",3,"href","click"],["target","_blank",3,"href"],["aria-label",
"Quick team actions",3,"ngModel","ngModelChange"],["value","NONE"],["value","CHANGE"],[1,"suggested-teams"],[3,"disabled","value","options","includeEmptyOption","optionTemplate","valueChange"],["optionTemplate",""],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[4,"ngIf","ngIfElse"],["emptyOption",""],[1,"suggested-team-option"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),M(2,OYa,5,1,"div",1),
M(3,PYa,5,1,"div",1),M(4,QYa,7,1,"mat-radio-group",2),M(5,UYa,6,6,"div",3),F(6,"mat-dialog-actions")(7,"button",4),O(8," Cancel "),G(),F(9,"button",5),J("click",function(){return b.confirm()}),O(10," Confirm "),G()());a&2&&(B(1),He(b.header),B(1),E("ngIf",b.warningType===b.WarningType.MISSING),B(1),E("ngIf",b.warningType===b.WarningType.DELETED),B(1),E("ngIf",b.warningType===b.WarningType.MISSING),B(1),E("ngIf",0<b.teamOptions.length))},dependencies:[Gx,py,vy,FB,GB,dC,eC,fC,gC,hF,ZX,aY,wF,UP],styles:["mat-radio-button[_ngcontent-%COMP%]{margin-top:10px}.suggested-teams[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center}[_nghost-%COMP%]     onedev-single-select button{margin-top:5px;border-color:#bdc1c6}  span.suggested-team-option{display:inline-block;width:490px}"]});
var kjc=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};
var I3=function(a,b){qI.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new Vw};U(I3,qI);I3.\u0275dir=qI.\u0275dir;I3.prototype.ngOnInit=function(){"MISSING"===this.warningType?(this.warningMessage="Team mapping is missing",this.buttonName="Add"):"DELETED"===this.warningType&&(this.warningMessage="This team no longer exists",this.buttonName="Change")};
I3.prototype.openDialog=function(){var a=this;io(this.analytics,mo.TEAM_WARNING,"open");RB(this.matDialogService.open(H3,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.getTeamId())})}})).pipe(fg(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};I3.\u0275fac=function(a){return new (a||I3)(C(cC),C(IM))};
I3.\u0275cmp=w({type:I3,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[ee],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(F(0,"b-callout",0)(1,"b-callout-body"),O(2),G(),M(3,VYa,3,1,"b-callout-actions",1),G());a&
2&&(B(2),Ge(" ",b.warningMessage," "),B(1),E("ngIf",!b.messageOnly))},dependencies:[oO,bI,cI,Gx],encapsulation:2});
var J3=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new Vw;this.inherit=!1;this.selectedTeam$=new T.Subject;this.teamIdChanged$=new T.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(R(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),dg(""));this.teamFromId$=this.teamIdChanged$.pipe(eg(function(c){return"0"===
c?(0,T.of)(new As([c],[""],"")):b.teamsService.getTeam(c).pipe(R(function(d){return new As([],lb(d,6),d.getDescription())}),Pf(function(){return(0,T.of)(new As([c],[c],""))}))}));this.displayedTeam$=(0,T.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(eg(function(c){return"0"===c?(0,T.of)("MISSING"):b.teamsService.getTeam(c).pipe(R(function(d){return d.getDeleted()?"DELETED":"VALID"}))}))};
J3.prototype.updateSelectionOnChange=function(a){Yn(mo.MANAGE_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)};J3.prototype.ngOnChanges=function(a){a.model&&(this.inherit=this.model.inherit,this.teamIdChanged$.next(this.model.id))};J3.prototype.ngOnInit=function(){Object.assign({},this.model);this.inherit=this.model.inherit;this.teamIdChanged$.next(this.model.id)};
var Is=function(a){return a.model.id&&"0"!==a.model.id};J3.prototype.getMomaTeamLink=function(){return Is(this)?"https://moma.corp.google.com/team/"+this.model.id:null};J3.\u0275fac=function(a){return new (a||J3)(C(bM))};
J3.\u0275cmp=w({type:J3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},features:[Fc],decls:13,vars:13,consts:[[4,"ngIf"],["class","edit-field",4,"ngIf"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"placeholder","disabled","teamSelected","onTeamSelect",
"onEmptyQuery"],[4,"ngIf","ngIfElse"],["externalLink",""],["class","team-warning",4,"ngIf"],[1,"team-warning"],[3,"warningType","messageOnly"],[1,"edit-field"],[3,"disabled","checked","change"],["mat-icon-button","","class","gmat-button small","aria-label","Go to Team page.","matTooltip","Go to Team page.",3,"routerLink","target","click",4,"ngIf"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"gmat-button","small",3,"routerLink","target","click"],["svgIcon",
"pop-out",1,"icon-s"],["mat-icon-button","","class","gmat-button small","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",3,"click",4,"ngIf"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(F(0,"div"),M(1,XYa,2,1,"ng-container",0),P(2,"async"),M(3,YYa,3,2,"div",1),F(4,"div",2)(5,"label",3),O(6,"Team selection"),G(),F(7,"b-team-picker",
4),J("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model)}),P(8,"async"),P(9,"async"),G(),M(10,$Ya,2,1,"ng-container",5),G()(),M(11,bZa,1,1,"ng-template",null,6,Mf));if(a&2){var c=Fe(12);B(1);E("ngIf",Q(2,7,b.warningType$));B(2);E("ngIf",!b.isTopLevel);B(4);E("placeholder",Q(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",Q(9,11,b.displayedTeam$));B(3);E("ngIf",b.useInternalLink)("ngIfElse",
c)}},dependencies:[Gx,BO,wF,L2,I3,hF,GB,EI,Tx],styles:[".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}.team-warning[_ngcontent-%COMP%]{width:240px}"],changeDetection:0});
var K3=function(){};K3.\u0275fac=function(a){return new (a||K3)};K3.\u0275mod=xc({type:K3});K3.\u0275inj=ic({imports:[pO,qO,ay,Ky,wG,hC,AF,hY,sK,gH,iQ]});
var L3=function(){};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275mod=xc({type:L3});L3.\u0275inj=ic({imports:[ay,oN,GO,gH,N2,K3,Ky,AF,wG,KI]});
var mjc=function(){return"mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}"},M3=function(a){this.documentationLinks=a};M3.\u0275fac=function(a){return new (a||M3)(C(kP))};
M3.\u0275cmp=w({type:M3,selectors:[["b-issue-component-retention-dialog"]],decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(F(0,"h1",0),O(1,"Apply component retention settings?"),G(),F(2,"div",
1)(3,"p"),O(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. "),G(),F(5,"a",2),O(6,"Learn more"),G()(),F(7,"div",3)(8,"button",4),O(9," Cancel "),G(),F(10,"button",5),O(11," OK "),G()());a&2&&(B(5),E("href",Ct(),Qd),B(3),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0))},dependencies:[dC,eC,fC,gC,FB],encapsulation:2});
var N3=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};N3.\u0275fac=function(a){return new (a||N3)(C(kP))};
N3.\u0275cmp=w({type:N3,selectors:[["b-issue-indefinite-retention-dialog"]],decls:27,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","","label","I acknowledge",3,"checked","change"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(F(0,
"h1",0),O(1,"Retain issue indefinitely?"),G(),F(2,"div",1)(3,"p"),O(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),G(),F(5,"p")(6,"b"),O(7,"Please note indefinite retention is not appropriate in many circumstances."),G(),H(8,"br"),O(9," Before selecting this option, you should make sure at least one of the following is true: "),G(),F(10,"ul")(11,"li"),O(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
G(),F(13,"li"),O(14," You have a process in place to manually delete this issue within an approved period of time. "),G(),F(15,"li"),O(16," Legal and Privacy have approved this non-standard retention period. "),G()(),H(17,"p"),F(18,"p")(19,"a",2),O(20,"Learn more"),G()(),F(21,"b-checkbox",3),J("change",function(c){return b.indefiniteRetentionAcknowledged=c}),G()(),F(22,"div",4)(23,"button",5),O(24," Cancel "),G(),F(25,"button",6),O(26," OK "),G()());a&2&&(B(19),E("href",Ct(),Qd),B(2),E("checked",
b.indefiniteRetentionAcknowledged),B(2),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[dC,eC,fC,gC,FB,mQ],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var O3=function(a){this.documentationLinks=a;this.REMOVAL_URL=cZa()};O3.\u0275fac=function(a){return new (a||O3)(C(kP))};
O3.\u0275cmp=w({type:O3,selectors:[["b-issue-flag-as-spam-dialog"]],decls:18,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Report spam?"),G(),F(2,"div",1)(3,
"p"),O(4," This will remove the issue from search results but will not delete it from the database. "),F(5,"a",2),O(6,"Learn more"),G()(),H(7,"p"),F(8,"p"),O(9," To delete PII or other sensitive content, "),F(10,"a",2),O(11,"file a support request"),G(),O(12,". "),G()(),F(13,"div",3)(14,"button",4),O(15," Cancel "),G(),F(16,"button",5),O(17," Report spam "),G()());a&2&&(B(5),a=b.documentationLinks,a=a.session.isExternalSession()?a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam",
E("href",a,Qd),B(5),E("href",b.REMOVAL_URL,Qd),B(4),E("mat-dialog-close",!1),B(2),E("mat-dialog-close",!0))},dependencies:[dC,eC,fC,gC,FB],encapsulation:2});var P3=function(a,b){this.dialogRef=b;this.newTitle=a.title};P3.prototype.keydown=function(a){"Enter"===a.key&&this.dialogRef.close(this.newTitle)};P3.\u0275fac=function(a){return new (a||P3)(C(aC),C(QB))};
P3.\u0275cmp=w({type:P3,selectors:[["b-issue-edit-title-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keydown"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Edit issue title"),G(),F(2,"div",
1)(3,"mat-form-field")(4,"mat-label"),O(5,"Enter a new issue title:"),G(),F(6,"input",2),J("ngModelChange",function(c){return b.newTitle=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"div",3)(8,"button",4),O(9," Cancel "),G(),F(10,"button",5),O(11," OK "),G()());a&2&&(B(6),E("ngModel",b.newTitle),B(4),E("mat-dialog-close",b.newTitle))},dependencies:[dC,eC,fC,gC,FB,sC,pC,uC,Mg,py,vy],styles:["mat-form-field[_ngcontent-%COMP%] { width: 100%; }"]});
var Q3=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};Q3.\u0275fac=function(a){return new (a||Q3)(C(aC),C(kP))};
Q3.\u0275cmp=w({type:Q3,selectors:[["b-issue-delete-comment-dialog"]],decls:14,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"label"),O(4,"Please select the reason for deleting this comment."),G(),F(5,"a",2),O(6," \u00a0Learn more "),G(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),M(8,eZa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),O(11," Cancel "),G(),F(12,"button",7),O(13," Delete "),G()());a&2&&(B(1),Ie("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),B(4),E("href",TNb(b.documentationLinks),Qd),B(2),E("ngModel",b.selectedReason),B(1),E("ngForOf",b.deletionReasons),B(4),E("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Kx,Gx,dC,eC,fC,gC,FB,py,vy,ZX,aY],styles:[mjc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var R3=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};R3.\u0275fac=function(a){return new (a||R3)(C(aC),C(kP))};
R3.\u0275cmp=w({type:R3,selectors:[["b-issue-delete-attachment-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"],[3,"value","disabled"],[4,"ngIf"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"span"),O(4," Please select the reason for deleting this attachment. "),F(5,"a",2),O(6," \u00a0Learn more "),G()(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),M(8,gZa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),O(11," Cancel "),G(),F(12,"button",7),O(13," Delete "),G()());a&2&&(B(1),Ge("Delete attachment ",b.attachmentId,""),B(4),E("href",
TNb(b.documentationLinks),Qd),B(2),E("ngModel",b.selectedReason),B(1),E("ngForOf",b.deletionReasons),B(4),E("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[Kx,Gx,dC,eC,fC,gC,FB,py,vy,ZX,aY],styles:[mjc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var S3=function(){};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275mod=xc({type:S3});S3.\u0275inj=ic({imports:[ay,hC,wG,nQ,vC,Ky,tC,AF,hY]});
var T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=xc({type:T3});T3.\u0275inj=ic({imports:[ay,Ky,wG,vC,tC,hC]});
var U3=function(a,b,c){this.data=a;this.dialogRef=b;this.liveAnnouncer=c;this.originalFields=[];this.fields=[];this.fieldOrdering="FIELD_ORDERING_UNSPECIFIED";this.grabbed=this.hasChanges=!1;this.originalFields=a.fields.concat();this.fields=a.fields.concat();this.fieldOrdering=a.orderingCustomized},njc=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};U3.prototype.drop=function(a){pp(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var hZa=function(a,b){return 0<b?(pp(a.fields,b,b-1),a.detectChanges(),!0):!1},iZa=function(a,b){return b<a.fields.length-1?(pp(a.fields,b,b+1),a.detectChanges(),!0):!1};U3.prototype.trackByFn=function(){return-1};U3.prototype.onFocus=function(a){this.liveAnnouncer.announce(this.fields[a].name+" focused at position "+(a+1)+" of "+this.fields.length+". Press space to grab the item.")};
U3.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();ojc(this,b);break;case "Tab":this.grabbed&&ojc(this,b);break;case "ArrowUp":pjc(this,a);break;case "ArrowDown":pjc(this,a)}};
var ojc=function(a,b){a.grabbed?(a.grabbed=!1,a.grabbedIndex=void 0,a.liveAnnouncer.announce(a.fields[b].name+" dropped at position "+(b+1)+" of "+a.fields.length+".")):(a.grabbed=!0,a.grabbedIndex=b,a.liveAnnouncer.announce(a.fields[b].name+" grabbed at position "+(b+1)+" of "+a.fields.length+". Press up and down arrow to move the item."))},pjc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(hZa(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else iZa(a,a.grabbedIndex)&&(d=c.nextElementSibling,a.grabbedIndex++);d&&(d.focus(),a.liveAnnouncer.announce(a.fields[a.grabbedIndex].name+" moved to position "+(a.grabbedIndex+1)+" of "+a.fields.length+". Press space to drop the item."))}}};U3.prototype.detectChanges=function(){this.hasChanges=!Hi(this.fields,this.originalFields)};U3.\u0275fac=function(a){return new (a||U3)(C(aC),C(QB),C(dA))};
U3.\u0275cmp=w({type:U3,selectors:[["b-field-reorder-dialog"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],["mat-dialog-title","",1,"margin-none"],["mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0",3,"keydown","focus",4,"ngFor","ngForOf","ngForTrackBy"],
["mat-dialog-actions",""],["mat-stroked-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","dialog-primary-action","save",3,"disabled","click"],["cdkDrag","","tabindex","0",3,"keydown","focus"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["mat-icon-button","","aria-label","Move the field up",3,"click"],["svgIcon","arrow-up"],["mat-icon-button","","aria-label","Move the field down",3,"click"],["svgIcon",
"arrow-down"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"h1",2),O(3," Reorder custom fields "),G(),F(4,"button",3),J("click",function(){return njc(b)}),H(5,"mat-icon",4),G()()(),F(6,"div",5)(7,"ol",6),J("cdkDropListDropped",function(c){return b.drop(c)}),M(8,jZa,9,7,"li",7),G()(),F(9,"div",8)(10,"button",9),J("click",function(){return b.dialogRef.close()}),O(11," Cancel "),G(),F(12,"button",10),J("click",function(){return b.dialogRef.close(b.fields)}),O(13," Save "),G()());a&2&&(B(8),
E("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),B(4),E("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[Kx,FB,eC,fC,gC,lV,mV,fV,wF,hF],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);font-size:.8125rem;padding:10px;display:flex;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%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}"]});
var V3=new od("CDK_TABLE");new od("text-column-options");
var W3=function(a){this.template=a};W3.\u0275fac=function(a){return new (a||W3)(C(Af))};W3.\u0275dir=w({type:W3,selectors:[["","cdkCellDef",""]]});var X3=function(a){this.template=a};X3.\u0275fac=function(a){return new (a||X3)(C(Af))};X3.\u0275dir=w({type:X3,selectors:[["","cdkHeaderCellDef",""]]});var Y3=function(a){this.template=a};Y3.\u0275fac=function(a){return new (a||Y3)(C(Af))};Y3.\u0275dir=w({type:Y3,selectors:[["","cdkFooterCellDef",""]]});
var qjc=kZa(function(){}),Z3=function(a){var b=qjc.call(this)||this;b._table=a;b._stickyEnd=!1;return b};U(Z3,qjc);Z3.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};Z3.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
oi.Object.defineProperties(Z3.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}},stickyEnd:{configurable:!0,enumerable:!0,get:function(){return this._stickyEnd},set:function(a){var b=this._stickyEnd;this._stickyEnd=Yg(a);this._hasStickyChanged=b!==this._stickyEnd}}});Z3.\u0275fac=function(a){return new (a||Z3)(C(V3,8))};
Z3.\u0275dir=w({type:Z3,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(Ff(c,W3,5),Ff(c,X3,5),Ff(c,Y3,5));if(a&2){var d;Df(d=Gf())&&(b.cell=d.first);Df(d=Gf())&&(b.headerCell=d.first);Df(d=Gf())&&(b.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Je([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Z3}]),ee]});
var rjc=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,v(a._columnCssClassName))},a4=function(a,b){rjc.call(this,a,b)};U(a4,rjc);a4.\u0275fac=function(a){return new (a||a4)(C(Z3),C(sd))};a4.\u0275dir=w({type:a4,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ee]});
var b4=function(a,b){rjc.call(this,a,b);var c;1===(null==(c=a._table)?void 0:c._elementRef.nativeElement.nodeType)&&(a=a._table._elementRef.nativeElement.getAttribute("role"),b.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell"))};U(b4,rjc);b4.\u0275fac=function(a){return new (a||b4)(C(Z3),C(sd))};b4.\u0275dir=w({type:b4,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ee]});
var sjc=function(){this.tasks=[];this.endTasks=[]},tjc=new od("_COALESCED_STYLE_SCHEDULER"),c4=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new T.Subject};c4.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};c4.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
c4.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new sjc,this._getScheduleObservable().pipe(fg(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new sjc;for(var c=r(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=r(b.endTasks);for(d=b.next();!d.done;d=b.next())c=d.value,c()}a._currentSchedule=null}))};
c4.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,T.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Tf())};c4.\u0275fac=function(a){return new (a||c4)(t(mg))};c4.\u0275prov=hc({token:c4,factory:c4.\u0275fac});
var d4=function(a,b){this.template=a;this._differs=b};d4.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};d4.\u0275fac=function(a){return new (a||d4)(C(Af),C(Ex))};d4.\u0275dir=w({type:d4,features:[Fc]});var ujc=function(){d4.apply(this,arguments)};U(ujc,d4);ujc.\u0275dir=d4.\u0275dir;ujc.\u0275fac=d4.\u0275fac;
var vjc=kZa(ujc),e4=function(a,b,c){a=vjc.call(this,a,b)||this;a._table=c;return a};U(e4,vjc);e4.prototype.ngOnChanges=function(a){vjc.prototype.ngOnChanges.call(this,a)};e4.\u0275fac=function(a){return new (a||e4)(C(Af),C(Ex),C(V3,8))};e4.\u0275dir=w({type:e4,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ee,Fc]});var wjc=function(){d4.apply(this,arguments)};U(wjc,d4);wjc.\u0275dir=d4.\u0275dir;
wjc.\u0275fac=d4.\u0275fac;var xjc=kZa(wjc),f4=function(a,b,c){a=xjc.call(this,a,b)||this;a._table=c;return a};U(f4,xjc);f4.prototype.ngOnChanges=function(a){xjc.prototype.ngOnChanges.call(this,a)};f4.\u0275fac=function(a){return new (a||f4)(C(Af),C(Ex),C(V3,8))};f4.\u0275dir=w({type:f4,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ee,Fc]});var g4=function(a,b,c){d4.call(this,a,b);this._table=c};U(g4,d4);
g4.\u0275fac=function(a){return new (a||g4)(C(Af),C(Ex),C(V3,8))};g4.\u0275dir=w({type:g4,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ee]});var i4=function(a){this._viewContainer=a;h4=this};i4.prototype.ngOnDestroy=function(){h4===this&&(h4=null)};var h4=null;i4.\u0275fac=function(a){return new (a||i4)(C(Bf))};i4.\u0275dir=w({type:i4,selectors:[["","cdkCellOutlet",""]]});var j4=function(){};
j4.\u0275fac=function(a){return new (a||j4)};j4.\u0275cmp=w({type:j4,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&&xe(0,0)},dependencies:[i4],encapsulation:2});var k4=function(){};k4.\u0275fac=function(a){return new (a||k4)};
k4.\u0275cmp=w({type:k4,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&xe(0,0)},dependencies:[i4],encapsulation:2});var l4=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};l4.\u0275fac=function(a){return new (a||l4)(C(Af))};l4.\u0275dir=w({type:l4,selectors:[["ng-template","cdkNoDataRow",""]]});
var yjc=new od("CDK_SPL");
var zjc=["top","bottom","left","right"],Ajc=function(a,b,c,d,e,f,h){e=void 0===e?!0:e;f=void 0===f?!0:f;this._isNativeHtmlTable=a;this._stickCellCss=b;this.direction=c;this._coalescedStyleScheduler=d;this._isBrowser=e;this._needsPositionStickyOnElement=f;this._positionListener=h;this._cachedCellWidths=[];this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},Bjc=function(a,b,c){var d=[];b=r(b);for(var e=b.next();!e.done;e=
b.next())if(e=e.value,e.nodeType===e.ELEMENT_NODE){d.push(e);for(var f=0;f<e.children.length;f++)d.push(e.children[f])}a._coalescedStyleScheduler.schedule(function(){for(var h=r(d),k=h.next();!k.done;k=h.next())a._removeStickyStyle(k.value,c)})},Cjc=function(a,b,c,d,e){e=void 0===e?!0:e;if(b.length&&a._isBrowser&&(c.some(function(I){return I})||d.some(function(I){return I}))){var f=b[0],h=f.children.length,k=a._getCellWidths(f,e),q=a._getStickyStartColumnPositions(k,c),u=a._getStickyEndColumnPositions(k,
d),y=c.lastIndexOf(!0),D=d.indexOf(!0);a._coalescedStyleScheduler.schedule(function(){var I="rtl"===a.direction,N=I?"right":"left";I=I?"left":"right";for(var L=r(b),S=L.next();!S.done;S=L.next()){S=S.value;for(var X=0;X<h;X++){var ka=S.children[X];c[X]&&a._addStickyStyle(ka,N,q[X],X===y);d[X]&&a._addStickyStyle(ka,I,u[X],X===D)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===y?[]:k.slice(0,y+1).map(function(ha,ra){return c[ra]?ha:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
D?[]:k.slice(D).map(function(ha,ra){return d[ra+D]?ha:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},Djc=function(a,b,c,d){if(a._isBrowser){var e="bottom"===d?b.slice().reverse():b,f="bottom"===d?c.slice().reverse():c,h=[],k=[],q=[];for(c=b=0;b<e.length;b++)if(f[b]){h[b]=c;var u=e[b];q[b]=a._isNativeHtmlTable?Array.from(u.children):[u];u=u.getBoundingClientRect().height;c+=u;k[b]=u}var y=
f.lastIndexOf(!0);a._coalescedStyleScheduler.schedule(function(){for(var D=0;D<e.length;D++)if(f[D])for(var I=h[D],N=D===y,L=r(q[D]),S=L.next();!S.done;S=L.next())a._addStickyStyle(S.value,d,I,N);if("top"===d){var X;null==(X=a._positionListener)||X.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var ka;null==(ka=a._positionListener)||ka.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}})}},Ejc=function(a,b,c){if(a._isNativeHtmlTable){var d=b.querySelector("tfoot");a._coalescedStyleScheduler.schedule(function(){c.some(function(e){return!e})?
a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1)})}};g=Ajc.prototype;g._removeStickyStyle=function(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);zjc.some(function(e){return-1===b.indexOf(e)&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))};
g._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};g._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=r(zjc),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
g._getCellWidths=function(a,b){if(void 0!==b&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(a[c].getBoundingClientRect().width);return this._cachedCellWidths=b};g._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};g._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;0<e;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
var Fjc=[[["caption"]],[["colgroup"],["col"]]],m4=function(a,b){this.viewContainer=a;this.elementRef=b};m4.\u0275fac=function(a){return new (a||m4)(C(Bf),C(sd))};m4.\u0275dir=w({type:m4,selectors:[["","rowOutlet",""]]});var n4=function(a,b){this.viewContainer=a;this.elementRef=b};n4.\u0275fac=function(a){return new (a||n4)(C(Bf),C(sd))};n4.\u0275dir=w({type:n4,selectors:[["","headerRowOutlet",""]]});var o4=function(a,b){this.viewContainer=a;this.elementRef=b};
o4.\u0275fac=function(a){return new (a||o4)(C(Bf),C(sd))};o4.\u0275dir=w({type:o4,selectors:[["","footerRowOutlet",""]]});var p4=function(a,b){this.viewContainer=a;this.elementRef=b};p4.\u0275fac=function(a){return new (a||p4)(C(Bf),C(sd))};p4.\u0275dir=w({type:p4,selectors:[["","noDataRowOutlet",""]]});
var q4=function(a,b,c,d,e,f,h,k,q,u,y,D){this._differs=a;this._changeDetectorRef=b;this._elementRef=c;this._dir=e;this._platform=h;this._viewRepeater=k;this._coalescedStyleScheduler=q;this._viewportRuler=u;this._stickyPositioningListener=y;this._ngZone=D;this._onDestroy=new T.Subject;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._fixedLayout=this._multiTemplateDataRows=this._isShowingNoDataRow=!1;this.contentChanged=new Vw;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
q4.prototype.ngOnInit=function(){var a=this;this._setupStickyStyler();this._isNativeHtmlTable&&this._applyNativeTableSections();this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c});this._viewportRuler.change().pipe(fg(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
q4.prototype.ngAfterContentChecked=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&&0<this._rowDefs.length&&
!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&r4(this);this._checkStickyStates()};
q4.prototype.ngOnDestroy=function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(a){a.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();this._onDestroy.complete();ela(this.dataSource)&&this.dataSource.disconnect(this)};
q4.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;Epb(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){1===d.operation&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});this._updateRowIndexContext();Rmb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&Yw()?this._ngZone.onStable.pipe(Tf(),
fg(this._onDestroy)).subscribe(function(){r4(a)}):r4(this)}else this._updateNoDataRow();this.contentChanged.next()};
var Gjc=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=b.length?"":"none");c=a._headerRowDefs.map(function(d){return d.sticky});Bjc(a._stickyStyler,b,["top"]);Djc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},Hjc=function(a){var b=a._getRenderedRows(a._footerRowOutlet),c=a._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=b.length?"":"none");c=a._footerRowDefs.map(function(d){return d.sticky});
Bjc(a._stickyStyler,b,["bottom"]);Djc(a._stickyStyler,b,c,"bottom");Ejc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},r4=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)Bjc(a._stickyStyler,[].concat(v(b),v(c),v(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,
f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],h=0;h<c.length;h++)a._renderRows[h].rowDef===e&&f.push(c[h]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};g=q4.prototype;
g._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var c=0;c<this._data.length;c++){var d=this._data[c],e=this._getRenderRowsForData(d,c,b.get(d));this._cachedRenderRowsMap.has(d)||this._cachedRenderRowsMap.set(d,new WeakMap);for(d=0;d<e.length;d++){var f=e[d],h=this._cachedRenderRowsMap.get(f.data);h.has(f.rowDef)?h.get(f.rowDef).push(f):h.set(f.rowDef,[f]);a.push(f)}}return a};
g._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};g._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();Js(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
g._cacheRowDefs=function(){this._headerRowDefs=Js(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=Js(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=Js(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
g._renderUpdatedColumns=function(){var a=function(d,e){return d||!!e._columnsDiffer.diff(e.columns)},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
g._switchDataSource=function(a){this._data=[];ela(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear());this._dataSource=a};
g._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;ela(this.dataSource)?b=this.dataSource.connect(this):(0,T.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,T.of)(this.dataSource));this._renderChangeSubscription=b.pipe(fg(this._onDestroy)).subscribe(function(c){a._data=c||[];a.renderRows()})}};
g._forceRenderHeaderRows=function(){var a=this;0<this._headerRowOutlet.viewContainer.length&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});Gjc(this)};g._forceRenderFooterRows=function(){var a=this;0<this._footerRowOutlet.viewContainer.length&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});Hjc(this)};
g._addStickyColumnStyles=function(a,b){var c=this,d=Array.from(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});Cjc(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};g._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
g._getRowDefs=function(a,b){if(1==this._rowDefs.length)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};g._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
g._renderRow=function(a,b,c,d){d=void 0===d?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};g._renderCellTemplateForItem=function(a,b){a=r(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,h4&&h4._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
g._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=0===b;d.last=b===c-1;d.even=0===b%2;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
g._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof e4?c.headerCell.template:a instanceof f4?c.footerCell.template:c.cell.template}):[]};
g._applyNativeTableSections=function(){for(var a=this._document.createDocumentFragment(),b=r([{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}]),c=b.next();!c.done;c=b.next()){var d=c.value;c=this._document.createElement(d.tag);c.setAttribute("role","rowgroup");d=r(d.outlets);for(var e=d.next();!e.done;e=d.next())c.appendChild(e.value.elementRef.nativeElement);a.appendChild(c)}this._elementRef.nativeElement.appendChild(a)};
g._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();this.renderRows()};g._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&Gjc(this);this._footerRowDefs.reduce(a,!1)&&Hjc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,r4(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new Ajc(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener);(this._dir?this._dir.change:(0,T.of)()).pipe(fg(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;r4(a)})};g._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
g._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=0===this._rowOutlet.viewContainer.length;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;b?(a=c.createEmbeddedView(a.templateRef),c=a.rootNodes[0],1===a.rootNodes.length&&(null==c?void 0:c.nodeType)===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add("cdk-no-data-row"))):c.clear();this._isShowingNoDataRow=b}}};
oi.Object.defineProperties(q4.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=Yg(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),r4(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=Yg(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});q4.\u0275fac=function(a){return new (a||q4)(C(Ex),C(zx),C(sd),bd("role"),C(vA,8),C(mi),C(My),C(Fpb),C(tjc),C(KA),C(yjc,12),C(mg,8))};
q4.\u0275cmp=w({type:q4,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(Ff(c,l4,5),Ff(c,Z3,5),Ff(c,g4,5),Ff(c,e4,5),Ff(c,f4,5));if(a&2){var d;Df(d=Gf())&&(b._noDataRow=d.first);Df(d=Gf())&&(b._contentColumnDefs=d);Df(d=Gf())&&(b._contentRowDefs=d);Df(d=Gf())&&(b._contentHeaderRowDefs=d);Df(d=Gf())&&(b._contentFooterRowDefs=d)}},viewQuery:function(a,b){a&1&&(Ef(m4,7),Ef(n4,7),Ef(o4,7),Ef(p4,7));if(a&2){var c;Df(c=Gf())&&(b._rowOutlet=c.first);Df(c=Gf())&&(b._headerRowOutlet=
c.first);Df(c=Gf())&&(b._footerRowOutlet=c.first);Df(c=Gf())&&(b._noDataRowOutlet=c.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&pe("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Je([{provide:V3,useExisting:q4},{provide:Fpb,useClass:Dpb},{provide:tjc,useClass:c4},{provide:yjc,
useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(Ae(Fjc),Be(0),Be(1,1),xe(2,0)(3,1)(4,2)(5,3))},dependencies:[m4,n4,o4,p4],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});
var s4=function(){};s4.\u0275fac=function(a){return new (a||s4)};s4.\u0275mod=xc({type:s4});s4.\u0275inj=ic({imports:[MA]});
var t4=function(){W3.apply(this,arguments)};U(t4,W3);t4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(t4)))(b||t4)}}();t4.\u0275dir=w({type:t4,selectors:[["","matCellDef",""]],features:[Je([{provide:W3,useExisting:t4}]),ee]});var u4=function(){X3.apply(this,arguments)};U(u4,X3);u4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(u4)))(b||u4)}}();u4.\u0275dir=w({type:u4,selectors:[["","matHeaderCellDef",""]],features:[Je([{provide:X3,useExisting:u4}]),ee]});
var v4=function(){return Z3.apply(this,arguments)||this};U(v4,Z3);v4.prototype._updateColumnCssClassName=function(){Z3.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};oi.Object.defineProperties(v4.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});v4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(v4)))(b||v4)}}();
v4.\u0275dir=w({type:v4,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Je([{provide:Z3,useExisting:v4},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:v4}]),ee]});var w4=function(){a4.apply(this,arguments)};U(w4,a4);w4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(w4)))(b||w4)}}();w4.\u0275dir=w({type:w4,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ee]});
var x4=function(){b4.apply(this,arguments)};U(x4,b4);x4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(x4)))(b||x4)}}();x4.\u0275dir=w({type:x4,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ee]});
var y4=function(){return e4.apply(this,arguments)||this};U(y4,e4);y4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(y4)))(b||y4)}}();y4.\u0275dir=w({type:y4,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Je([{provide:e4,useExisting:y4}]),ee]});var z4=function(){g4.apply(this,arguments)};U(z4,g4);z4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(z4)))(b||z4)}}();
z4.\u0275dir=w({type:z4,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Je([{provide:g4,useExisting:z4}]),ee]});var A4=function(){};U(A4,j4);A4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(A4)))(b||A4)}}();
A4.\u0275cmp=w({type:A4,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Je([{provide:j4,useExisting:A4}]),ee],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&xe(0,0)},dependencies:[i4],encapsulation:2});var B4=function(){};U(B4,k4);B4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(B4)))(b||B4)}}();
B4.\u0275cmp=w({type:B4,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Je([{provide:k4,useExisting:B4}]),ee],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&xe(0,0)},dependencies:[i4],encapsulation:2});
var Ijc=[[["caption"]],[["colgroup"],["col"]]],C4=function(){q4.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};U(C4,q4);C4.\u0275fac=function(){var a;return function(b){return(a||(a=hd(C4)))(b||C4)}}();
C4.\u0275cmp=w({type:C4,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(a,b){a&2&&pe("mat-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Je([{provide:Fpb,useClass:Dpb},{provide:q4,useExisting:C4},{provide:V3,useExisting:C4},{provide:tjc,useClass:c4},{provide:yjc,useValue:null}]),ee],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a){a&1&&(Ae(Ijc),Be(0),Be(1,1),xe(2,0)(3,1)(4,2)(5,3))},dependencies:[m4,n4,o4,p4],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],
encapsulation:2});
var D4=function(a,b,c,d,e){this.matDialog=a;this.confirmationDialog=b;this.fieldConfigService=c;this.analytics=d;this.butterBar=e;this.fields=[];this.isAdmin=!1;this.onReload=new Vw;this.displayedColumn=["index","name","type","required","customFieldId"]},yZa=function(a){return RB(a.matDialog.open(U3,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&Jjc(a,b)})},zZa=function(a){a.confirmationDialog.open({title:"Reset ordering?",content:Tn("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()}})},Jjc=function(a,b){io(a.analytics,mo.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return(new jl).setCustomFieldId(d.customFieldId)});a.componentId?(yK(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){yK(a.butterBar,"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){zK(a.butterBar,"Saving ordering failed, please refresh the page.",5E3)})):zK(a.butterBar,"Saving ordering failed due to the undefined component id.")};
D4.prototype.reset=function(){var a=this;io(this.analytics,mo.FIELD_ORDERING,"resetFields");this.componentId?(yK(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:lL}).subscribe(function(){yK(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){zK(a.butterBar,"Reset failed.")})):zK(this.butterBar,"Reset failed due to the undefined component id.")};
D4.\u0275fac=function(a){return new (a||D4)(C(cC),C(RM),C(w3),C(IM),C(xK))};
D4.\u0275cmp=w({type:D4,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},decls:22,vars:5,consts:[[1,"field-reorder-panel"],[1,"field-order-table"],["mat-table","",3,"dataSource"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","required"],["matColumnDef","customFieldId"],["mat-header-row",
"",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-data-row",4,"ngIf"],["class","edit-button-row",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"no-data-row"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button","medium",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"table",2),ve(3,3),M(4,lZa,2,0,"th",4),M(5,mZa,2,1,"td",5),we(),ve(6,6),M(7,nZa,2,0,"th",4),M(8,oZa,
2,1,"td",5),we(),ve(9,7),M(10,pZa,2,0,"th",4),M(11,qZa,3,3,"td",5),we(),ve(12,8),M(13,rZa,2,0,"th",4),M(14,sZa,2,1,"td",5),we(),ve(15,9),M(16,tZa,2,0,"th",4),M(17,uZa,2,1,"td",5),we(),M(18,vZa,1,0,"tr",10),M(19,wZa,1,0,"tr",11),G(),M(20,xZa,2,0,"div",12),G(),M(21,AZa,6,2,"div",13),G());a&2&&(B(2),E("dataSource",b.fields),B(16),E("matHeaderRowDef",b.displayedColumn),B(1),E("matRowDefColumns",b.displayedColumn),B(1),E("ngIf",0===b.fields.length),B(1),E("ngIf",b.isAdmin))},dependencies:[Gx,FB,C4,u4,
y4,v4,t4,z4,w4,x4,A4,B4,CS],styles:["th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider)}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}button[_ngcontent-%COMP%]{margin-right:12px}"]});
var E4=function(){};E4.\u0275fac=function(a){return new (a||E4)};E4.\u0275mod=xc({type:E4});E4.\u0275inj=ic({providers:[RM],imports:[ay,wG,hC]});
var F4=function(){};F4.\u0275fac=function(a){return new (a||F4)};F4.\u0275mod=xc({type:F4});F4.\u0275inj=ic({imports:[s4,kB,kB]});
var G4=function(){};G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275mod=xc({type:G4});G4.\u0275inj=ic({imports:[ay,wG,pO,hC,F4,nV,gH,WH,AF,E4,DS]});
var H4=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},CZa=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="+Kjc+a.issueId+Ljc;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
H4.prototype.trackClick=function(a){io(this.analytics,"codeMentions","clickCodeSearchLink",a)};H4.\u0275fac=function(a){return new (a||H4)(C(IM))};
H4.\u0275cmp=w({type:H4,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},decls:5,vars:4,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"href","click"],[4,"ngIf"],[1,"bv2-file-mention-line-number-list"],["class","bv2-file-mention-line-number",4,"ngFor","ngForOf"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"href","click"]],template:function(a,b){a&
1&&(F(0,"div",0)(1,"a",1),J("click",function(){return b.trackClick("fileName")}),O(2),G(),M(3,BZa,2,1,"span",2),M(4,EZa,5,1,"span",2),G());a&2&&(B(1),E("href",CZa(b,b.lineNumbers),Qd),B(1),Ge(" ",b.filename," "),B(1),E("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),B(1),E("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[Kx,Gx],encapsulation:2});var Kjc=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),Ljc=encodeURIComponent("(\\b|$)");
var I4=function(){};I4.\u0275fac=function(a){return new (a||I4)};I4.\u0275mod=xc({type:I4});I4.\u0275inj=ic({imports:[ay]});
var J4=function(){this.isReady=!1};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275cmp=w({type:J4,selectors:[["onedev-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","loading-indicator",4,"ngIf"],[4,"ngIf"],[1,"loading-indicator"]],template:function(a,b){a&1&&(Ae(),M(0,FZa,1,0,"div",0),M(1,GZa,2,0,"ng-container",1));a&2&&(E("ngIf",!b.isReady),B(1),E("ngIf",b.isReady))},dependencies:[Gx],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:opacity-gradient .5s linear 0s infinite alternate;animation: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 opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes opacity-gradient{0%{opacity:0}to{opacity:1}}"]});
var K4=function(){this.warning=""};K4.\u0275fac=function(a){return new (a||K4)};
K4.\u0275cmp=w({type:K4,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&pe("is-present",b.warning)},inputs:{warning:"warning"},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&&M(0,HZa,2,1,"svg",0);a&2&&
E("ngIf",b.warning)},dependencies:[Gx,wF],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 Mjc=["*",[["","actions",""]]],Njc=[[["onedev-field-label"]],[["onedev-field-value"]]],Ojc=0,L4=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+Ojc;Ojc++};L4.\u0275fac=function(a){return new (a||L4)};
L4.\u0275cmp=w({type:L4,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&ke("id",b.id)},inputs:{thinking:"thinking",labelTooltip:"labelTooltip",warning:"warning"},ngContentSelectors:["*"],decls:4,vars:3,consts:[[3,"isReady"],[1,"label",3,"matTooltip"],[3,"warning"]],template:function(a,b){a&1&&(Ae(),F(0,"onedev-async-data-placeholder",0)(1,"span",1),Be(2),G(),H(3,"onedev-warning-icon",2),G());a&2&&(E("isReady",!b.thinking),B(1),E("matTooltip",b.labelTooltip),B(2),E("warning",
b.warning))},dependencies:[J4,wF,K4],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var M4=function(){this.thinking=!1};M4.\u0275fac=function(a){return new (a||M4)};
M4.\u0275cmp=w({type:M4,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(Ae(Mjc),F(0,"onedev-async-data-placeholder",0),Be(1),Be(2,1),G());a&2&&E("isReady",!b.thinking)},dependencies:[J4],encapsulation:2});var N4=function(){this.labelPosition="left"};N4.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
N4.\u0275fac=function(a){return new (a||N4)};
N4.\u0275cmp=w({type:N4,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(Ff(c,TP,5),Ff(c,L4,7));if(a&2){var d;Df(d=Gf())&&(b.field=d.first);Df(d=Gf())&&(b.label=d.first)}},inputs:{labelPosition:"labelPosition"},ngContentSelectors:["onedev-field-label","onedev-field-value"],decls:3,vars:4,consts:[[1,"wrapper"]],template:function(a,b){a&1&&(Ae(Njc),F(0,"div",0),Be(1),Be(2,1),G());a&2&&pe("active",null==b.field?null:b.field.isActive())("top-label","top"===b.labelPosition)},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 Pjc=["popOverContent"],O4=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.closedWithAction=new Vw;this.isOpen=!1;this.destroyed$=new T.ReplaySubject(1);this.backdropClickSubscription=T.Subscription.EMPTY};O4.prototype.ngOnInit=function(){};O4.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
O4.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(fg(this.destroyed$)).subscribe(function(){KZa(a)}))};O4.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var JZa=function(a){a.closedWithAction.emit(0);a.close()},KZa=function(a){a.closedWithAction.emit(1);a.close()};g=O4.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":KZa(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)JZa(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(JZa(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:8+this.anchor.offsetWidth});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new bB(this.contentTemplateRef,this.viewContainerRef),b;null==(b=this.overlayRef)||b.attach(a);var c;null==(c=this.overlayRef)||c.updatePosition()};g.getPositionStrategy=function(){var a=UA(TA(ZA(this.overlay.position(),this.anchor),!1),!1);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return RA(a,Qjc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};O4.\u0275fac=function(a){return new (a||O4)(C(gB),C(Bf))};
O4.\u0275cmp=w({type:O4,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&Ef(Pjc,7);if(a&2){var c;Df(c=Gf())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop"},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],decls:2,vars:0,consts:[["popOverContent",""],["cdkTrapFocus","",1,"content","gmat-elevation-z2",3,"cdkTrapFocusAutoCapture",
"keydown"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","color","primary",1,"save",3,"click"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&M(0,LZa,8,2,"ng-template",null,0,Mf)},dependencies:[Qx,Ty,FB],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 Qjc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"top"}];
var Rjc=["popOver"],NZa=function(a){return{$implicit:a}},P4=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new Vw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};U(P4,TP);g=P4.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return SZa(this.editingValue)!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=null!=this.value?String(this.value):"",this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=a=SZa(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=SZa(a);if(null!=a||this.val!==b)this.val=b,this.editingValue=null!=a?a:""};
g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};oi.Object.defineProperties(P4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});P4.\u0275fac=function(a){return new (a||P4)(bd("required"))};
P4.\u0275cmp=w({type:P4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&Ef(Rjc,7);if(a&2){var c;Df(c=Gf())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:"labelledById",openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},features:[Je([{provide:Ix,useExisting:dc(function(){return P4}),multi:!0},{provide:TP,useExisting:dc(function(){return P4}),multi:!0}]),ee],decls:11,
vars:6,consts:[[3,"disabled","click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","editorTemplate","closedWithAction"],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[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,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),M(3,OZa,2,4,"ng-container",2),M(4,PZa,1,1,"ng-template",null,3,Mf),G(),M(6,QZa,2,0,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",function(f){return b.stopEditing(f)}),G(),M(9,RZa,1,1,"ng-template",null,7,Mf));if(a&2){var c=Fe(1),
d=Fe(5),e=Fe(10);E("disabled",b.disabled);B(3);E("ngIf",b.valueTemplate)("ngIfElse",d);B(3);E("ngIf",!b.disabled&&b.displayEditIcon);B(1);E("anchor",c)("editorTemplate",e)}},dependencies:[Gx,Qx,Mg,xy,py,vy,O4],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 XZa=function(){return[]},Q4=function(){this.disabled=this.thinking=!1;this.effortChange=new Vw;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
Q4.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=Dl(this.effortSpec))&&a.getOptionsList()&&this.effort&&V(this.effort,2)?(a=Sjc(this),a="incompatible"===a?(new ul).setLabel(V(this.effort,2)):a):a=void 0;this.selectedOption=a}else if("NUMERIC"===this.getFieldType()){var b,c;this.selectedNumericEstimate=(null==(b=this.effort)?0:V(b,2))?Number(null==(c=this.effort)?void 0:V(c,2)):void 0}this.fieldName=this.getFieldName();this.fieldType=this.getFieldType();
this.isCompatibleValue=Tjc(this)};Q4.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c,d=new xl,e=null!=(c=null==(b=this.effortSpec)?void 0:b.getId())?c:0;b=Xk(d,1,e);a=a.getLabel();this.effort=yl(b,2,a)}this.isCompatibleValue=Tjc(this);this.effortChange.emit(this.effort)};Q4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.getName():this.effort?"Estimate "+hj(this.effort,1):"Estimate"};
Q4.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:zl(a,4,Al))return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:zl(b,5,Al))?"DROPDOWN":"UNKNOWN"};
var Tjc=function(a){if(!a.effort)return!0;var b,c;if((null==(b=a.effortSpec)?void 0:b.getId())!==(null==(c=a.effort)?void 0:hj(c,1))||"DROPDOWN"===a.fieldType&&"incompatible"===Sjc(a))return!1;var d,e;return"NUMERIC"===a.getFieldType()&&isNaN(Number(null!=(e=null==(d=a.effort)?void 0:V(d,2))?e:""))?!1:!0},Sjc=function(a){var b;if(null==(b=a.effort)?0:V(b,2)){var c,d,e,f;return null!=(f=null==(c=a.effortSpec)?void 0:null==(d=Dl(c))?void 0:null==(e=d.getOptionsList())?void 0:e.find(function(h){var k;
return h.getLabel()===(null==(k=a.effort)?void 0:V(k,2))}))?f:"incompatible"}};Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275cmp=w({type:Q4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},features:[Fc],decls:3,vars:1,consts:[[4,"ngIf"],["rawNumericValueTemplate",""],[3,"thinking","warning","labelTooltip"],[3,"thinking"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"flex-kids-x",3,"value","valueTemplate","disabled","displayEditIcon","valueChange"],[3,"value","options","includeEmptyOption",
"optionTemplate","disabled","displayArrowIcon","valueChange"],["optionTemplate",""],[4,"ngIf","ngIfElse"],["emptyOption",""],["regularNumeric",""]],template:function(a,b){a&1&&(M(0,$Za,8,8,"onedev-edit-field",0),M(1,c_a,3,2,"ng-template",null,1,Mf));a&2&&E("ngIf",b.effortSpec)},dependencies:[Gx,Mx,Nx,Ox,L4,M4,N4,UP,P4],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}\n/*# sourceMappingURL=estimated_effort_row.css.map */"]});
var R4=function(){};R4.\u0275fac=function(a){return new (a||R4)};R4.\u0275mod=xc({type:R4});R4.\u0275inj=ic({imports:[ay]});
var S4=function(){};S4.\u0275fac=function(a){return new (a||S4)};S4.\u0275mod=xc({type:S4});S4.\u0275inj=ic({imports:[ay,gH]});
var T4=function(){};T4.\u0275fac=function(a){return new (a||T4)};T4.\u0275mod=xc({type:T4});T4.\u0275inj=ic({imports:[R4,ay,gH,S4]});
var U4=function(){};U4.\u0275fac=function(a){return new (a||U4)};U4.\u0275mod=xc({type:U4});U4.\u0275inj=ic({imports:[ay,eA,jB,fB,wG]});
var V4=function(){};V4.\u0275fac=function(a){return new (a||V4)};V4.\u0275mod=xc({type:V4});V4.\u0275inj=ic({imports:[ay,Ky,U4]});
var W4=function(){};W4.\u0275fac=function(a){return new (a||W4)};W4.\u0275mod=xc({type:W4});W4.\u0275inj=ic({imports:[ay,gH,AF,T4,iQ,V4]});
var X4=function(a,b,c){qI.call(this);this.activeSession=a;this.clipboard=b;this.butterBar=c;this.componentId=0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.HOTKEYS=pI};U(X4,qI);X4.\u0275dir=qI.\u0275dir;X4.prototype.ngOnInit=function(){};X4.prototype.openIssueIdPicker=function(){this.disabled||this.trigger.open()};var Ks=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=X4.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return Ls(this.activeSession,this.isExternalIssue)+this.issueId};g.getUrlAndTitle=function(){return Ls(this.activeSession,this.isExternalIssue)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(FBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+(Ls(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId)+"): "+this.issueTitle};
X4.\u0275fac=function(a){return new (a||X4)(C(qH),C(cT),C(xK))};
X4.\u0275cmp=w({type:X4,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&Ef(PP,7);if(a&2){var c;Df(c=Gf())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled"},features:[ee],decls:32,vars:14,consts:[["matTooltip","Copy issue ID","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click"],["matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple",
"true",1,"unstyled","square-left",3,"onedevPopupPanelTriggerFor","hotkey","onHotkey","click"],["trigger","onedevPopupPanelTrigger"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"issue-id-picker-popup"],[1,"id-details-row"],[3,"htmlFor"],["type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"focus"],["issueIdField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,
"click"],["svgIcon","copy",1,"icon-s"],["class","id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"focus"],["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,
"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"focus"],["issueShortlinkField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",1,"value",3,"focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label",
"Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"click"]],template:function(a,b){if(a&1){var c=x();F(0,"button",0);J("click",function(){b.clipboard.copy(b.issueId);yK(b.butterBar,"Issue ID copied",2E3)});O(1);
G();F(2,"button",1,2);J("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});H(4,"mat-icon",3);G();F(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);O(10,"Issue ID");G();F(11,"input",9,10);J("focus",function(){z(c);var k=Fe(12);return A(k.select())});G();F(13,"button",11);J("click",function(){z(c);var k=Fe(12);return A(Ks(b,k))});H(14,"mat-icon",12);G()();M(15,d_a,7,2,"div",13);F(16,"div",7)(17,"label",8);O(18,"Issue URL");G();F(19,
"input",14,15);J("focus",function(){z(c);var k=Fe(20);return A(k.select())});G();F(21,"button",16);J("click",function(){z(c);var k=Fe(20);return A(Ks(b,k))});H(22,"mat-icon",12);G()();F(23,"div",7)(24,"label",8);O(25,"URL and title");G();F(26,"input",17,18);J("focus",function(){z(c);var k=Fe(27);return A(k.select())});G();F(28,"button",19);J("click",function(){z(c);var k=Fe(27);return A(Ks(b,k))});H(29,"mat-icon",12);G()();M(30,e_a,7,2,"div",13);M(31,f_a,7,2,"div",13);G()()}if(a&2){var d=Fe(6),e=
Fe(12),f=Fe(20),h=Fe(27);ke("aria-label","Copy issue number "+b.issueId);B(1);He(b.issueId);B(1);E("onedevPopupPanelTriggerFor",d)("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID);ke("aria-label","Show links for the issue "+b.issueId);B(7);E("htmlFor",e.id);B(2);ke("value",b.issueId);B(4);E("ngIf",b.isSessionInternal());B(2);E("htmlFor",f.id);B(2);ke("value",b.getIssueUrl());B(5);E("htmlFor",h.id);B(2);ke("value",b.getUrlAndTitle());B(4);E("ngIf",b.isSessionInternal());B(1);E("ngIf",b.isSessionInternal())}},
dependencies:[Gx,YI,FB,hF,wF,OP,PP],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}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}button.square-left[_ngcontent-%COMP%]{border-left:1px solid;border-color:#fff;border-color:var(--background)}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;width:475px}  .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)}"],
changeDetection:0});
var Y4=function(){};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275mod=xc({type:Y4});Y4.\u0275inj=ic({imports:[ay,ZI,wG,AF,gH,gQ]});
var Z4=function(a){DJ.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.getSloId()}};U(Z4,DJ);g=Z4.prototype;g.fetchOne=function(a){return this.observableSlosService.get(a)};g.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};g.search=function(a){return this.observableSlosService.search(a)};g.create=function(a){return this.observableSlosService.create(a)};g.update=function(a){return this.observableSlosService.update(a)};
Z4.\u0275fac=function(a){return new (a||Z4)(t(oY))};Z4.\u0275prov=hc({token:Z4,factory:Z4.\u0275fac,providedIn:"root"});
var a5=function(a,b,c,d){qI.call(this);var e=this;this.userPreferencesManager=a;this.sloStatusHelpersService=b;this.paths=c;this.sloFridge=d;this.onSnoozeChange=new Vw;this.providedSloId$=new T.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(eg(function(f){return e.sloFridge.watchOne(f)}));this.shouldShowSnoozeButton=this.isAccordionExpanded=!1};U(a5,qI);a5.\u0275dir=qI.\u0275dir;
a5.prototype.ngOnInit=function(){var a=this;Ujc(this);this.userPreferencesManager.layoutPreferences$.pipe(fg(this.destroyed$),R(function(b){a.isAccordionExpanded=!!b.expandIssueSlo}))};a5.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);Ujc(this)};
var Ujc=function(a){a.hasSlo=!!a.sloStatus&&WQb(a.sloStatus);a.shouldShowSnoozeButton=a.isEditable&&a.hasSlo;a.sloId&&"0"!==a.sloId?a.editSloLink=a.paths.editSlo(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=a.paths.manageComponent(a.componentId):a.componentSloLink=void 0;a.sloSnoozeUntil?a.sloSnoozeUntilUnderEdit=a.sloSnoozeUntil.clone():a.sloSnoozeUntilUnderEdit=void 0},Vjc=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;kFb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(fg(a.destroyed$)).subscribe();
Yn(mo.ISSUE_SLO,"toggle",a.isAccordionExpanded?"open":"close")};a5.prototype.trackOpenSlo=function(){Yn(mo.EDIT_SLO,"open","fromIssueSloBox")};a5.\u0275fac=function(a){return new (a||a5)(C(PI),C(VR),C(LK),C(Z4))};
a5.\u0275cmp=w({type:a5,selectors:[["b-issue-slo-box"]],viewQuery:function(a,b){a&1&&Ef(I_,5);if(a&2){var c;Df(c=Gf())&&(b.snoozeDateTimePicker=c.first)}},inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSnoozeChange:"onSnoozeChange"},features:[ee,Fc],decls:26,vars:30,consts:[[1,"issue-slo-box-title",3,"click"],[1,"accordion-icon"],[3,"hidden"],[3,"name","size"],
[1,"slo-body"],[1,"slo-status"],[3,"sloStatus","sloSnoozeUntil","includeSloMetric","includeObjective"],[3,"sloStatus","sloSnoozeUntil","includeNoSlo"],["mat-icon-button","",1,"expand-button","small","gmat-button",3,"color","matTooltip","click"],[1,"slo-actions",3,"hidden"],["class","slo-action",4,"ngIf"],[3,"snoozeUntil","snoozeUntilChange","snoozeUntilCommit"],[1,"slo-action"],["class","bv2-metadata-link bv2-metadata-tool",3,"click",4,"ngIf"],[1,"slo-start"],[1,"bv2-metadata-link",3,"click"],[4,
"ngIf"],["href","http://go/buganizer/guides/defer-slos","target","_blank"],["mode","date",3,"timestamp"],["class","slo-link",3,"click",4,"ngIf"],[1,"slo-link",3,"click"],[1,"bv2-metadata-link","bv2-metadata-tool",3,"click"]],template:function(a,b){a&1&&(F(0,"span",0),J("click",function(){return Vjc(b)}),F(1,"label"),O(2,"SLO Status"),G(),F(3,"span",1)(4,"span",2),H(5,"b-icon",3),G(),F(6,"span",2),H(7,"b-icon",3),G()()(),F(8,"div",4)(9,"div",5)(10,"div",2),H(11,"b-aggregated-slo-status-indicator",
6),G(),F(12,"div",2),H(13,"b-slo-status-summary",7),G(),F(14,"button",8),J("click",function(){return Vjc(b)}),F(15,"span",1)(16,"span",2),H(17,"b-icon",3),G(),F(18,"span",2),H(19,"b-icon",3),G()()()(),F(20,"div",9),M(21,j_a,8,4,"div",10),F(22,"snooze-date-time-picker",11),J("snoozeUntilChange",function(c){return b.sloSnoozeUntilUnderEdit=c})("snoozeUntilCommit",function(){b.onSnoozeChange.next(b.sloSnoozeUntilUnderEdit||null)}),G(),M(23,l_a,4,3,"div",10),F(24,"div",12),M(25,m_a,2,1,"a",13),G()()());
a&2&&(B(4),E("hidden",b.isAccordionExpanded),B(1),E("name","arrow-down")("size","small"),B(1),E("hidden",!b.isAccordionExpanded),B(1),E("name","arrow-up")("size","small"),B(3),E("hidden",b.isAccordionExpanded),B(1),E("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeSloMetric",!0)("includeObjective",!0),B(1),E("hidden",!b.isAccordionExpanded),B(1),E("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeNoSlo",!0),B(1),E("color","")("matTooltip","Toggle the detailed SLO status"),
ke("aria-label","Toggle the detailed SLO status")("aria-expanded",b.isAccordionExpanded),B(2),E("hidden",b.isAccordionExpanded),B(1),E("name","arrow-down")("size","small"),B(1),E("hidden",!b.isAccordionExpanded),B(1),E("name","arrow-up")("size","small"),B(1),E("hidden",!b.isAccordionExpanded),B(1),E("ngIf",b.shouldShowSnoozeButton),B(1),E("snoozeUntil",b.sloSnoozeUntilUnderEdit),B(1),E("ngIf",b.editSloLink),B(2),E("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[Gx,wF,FB,DY,CP,rY,I_,tH,
Tx],styles:["[_nghost-%COMP%]{display:flex;align-items:baseline;margin:8px 19px 8px 19px}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{border:1px solid transparent;border-radius:5px;padding:4px 9px;margin:-5px -10px;border-color:#d2e3fc;border-color:var(--primary-c100)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{border:2px solid transparent;border-radius:5px;padding:3px 8px;margin:-5px -10px;border-color:#1a73e8;border-color:var(--primary)}[_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)}.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;flex:0 0 23%;min-width:70px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.issue-slo-box-title[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:none}.slo-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]{display:inline-block}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{margin-left:4px;vertical-align:top}.expand-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:-6px}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.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 b5=function(){};b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275mod=xc({type:b5});b5.\u0275inj=ic({imports:[ay,gH,wG,BZ,WP,zZ,J_,WH,pO]});
var Wjc=function(){return{width:400}},c5=function(a,b,c,d,e,f,h,k){this.bLocation=c;this.paths=d;this.analytics=e;this.componentActions=h;this.cdr=k;this.includeArchived=!1;this.createComponentPath=kt.COMPONENT_CREATE;a.setTitle("Browse Components");a=p_a(this);b.componentId&&q_a(this,Oi(b.componentId),a);this.isInternalSession=f.isInternalSession()};c5.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&io(this.analytics,"listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var p_a=function(a){return a.componentActions.getChildren(0,a.includeArchived).then(function(b){a.topLevelComponents=b;a.cdr.detectChanges();return b})},q_a=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=laa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-1),f={0:c},h=r(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Lo(f).then(function(q){for(var u=q[0],y=0,D={},I=r(e),N=I.next();!N.done;D=
{$jscomp$loop$prop$parentId$1582$1738:D.$jscomp$loop$prop$parentId$1582$1738},N=I.next()){D.$jscomp$loop$prop$parentId$1582$1738=N.value;N=void 0;var L=null!=(N=u.find(function(S){return function(X){return X.componentId==S.$jscomp$loop$prop$parentId$1582$1738}}(D)))?N:null;L&&(L.children=q[D.$jscomp$loop$prop$parentId$1582$1738],L.showChildren=!0,u=L.children,y=L.componentId)}d.archived&&!a.includeArchived&&(b=y);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};
c5.\u0275fac=function(a){return new (a||c5)(C(YN),C(SR),C(KK),C(LK),C(IM),C(qH),C(sT),C(mI,2))};
c5.\u0275cmp=w({type:c5,selectors:[["b-list-components-page"]],features:[Je([mI])],decls:13,vars:8,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","","class","gmat-button",3,"href",4,"ngIf"],["mat-button","","panelClass","overflow-visible-inline-dialog-panel",1,"gmat-button",3,"xapInlineDialogClick","overlaySize"],["componentPickerTemplate",""],["id","bv2-issue-showarchived-button",4,"ngIf"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],[1,"top-tree",
3,"components","includeArchived","init"],["mat-button","",1,"gmat-button",3,"href"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"includeArchived","placeholder","shouldFocus","isRequired","selectedComponentChange"],["id","bv2-issue-showarchived-button"],["label","Show archived",3,"model","tooltip","modelChange"],[1,"bv2-view-loading"],["size","small"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Browse Components"),G(),F(2,"div",1)(3,"div",2),
M(4,n_a,2,1,"a",3),F(5,"button",4),O(6," Search Components "),G(),M(7,o_a,3,4,"ng-template",null,5,Mf),M(9,r_a,2,2,"div",6),G()(),F(10,"div",7),M(11,s_a,2,0,"div",8),F(12,"component-tree-list",9),J("init",function(d){return b.componentTree=d}),G()());if(a&2){var c=Fe(8);B(4);E("ngIf",b.isInternalSession);B(1);E("xapInlineDialogClick",c)("overlaySize",Ke(7,Wjc));B(4);E("ngIf",b.isInternalSession);B(2);E("ngIf",!b.topLevelComponents);B(1);E("components",b.topLevelComponents)("includeArchived",b.includeArchived)}},
dependencies:[Gx,cN,sN,rN,wN,BT,FB,GB,uT,xV],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     .bv2-component-picker{width:100%}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});
var d5=function(){};d5.\u0275fac=function(a){return new (a||d5)};d5.\u0275mod=xc({type:d5});d5.\u0275inj=ic({imports:[ay,ON,MN,RN,TN,oN,CT,wG,wT,zV]});
var e5=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};e5.\u0275fac=function(a){return new (a||e5)};
e5.\u0275cmp=w({type:e5,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},decls:4,vars:2,consts:[[1,"bv2-package-mention-set"],["class","bv2-package-mention-set-package-name",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,t_a,2,1,"p",1),F(2,"ul"),M(3,u_a,2,5,"li",
2),G()());a&2&&(B(1),E("ngIf",b.displayPackageName),B(2),E("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[Kx,Gx,H4],encapsulation:2});
var f5=function(){};f5.\u0275fac=function(a){return new (a||f5)};f5.\u0275mod=xc({type:f5});f5.\u0275inj=ic({imports:[ay,I4]});
var g5=function(){};g5.\u0275fac=function(a){return new (a||g5)};g5.\u0275mod=xc({type:g5});g5.\u0275inj=ic({imports:[ay,Ky,wG,hC,vC,RU,tC]});
var Xjc=function(a){Z.call(this,a)};U(Xjc,Z);g=Xjc.prototype;g.getResourcePath=function(){return V(this,1)};g.setResourcePath=function(a){return l(this,1,a)};g.hasResourcePath=function(){return gj(this,1)};g.getSeverity=function(){return Y(this,2,0)};g.setSeverity=function(a){return l(this,2,a)};g.getJudgementReason=function(){return V(this,3)};g.setJudgementReason=function(a){return l(this,3,a)};
g.toObject=function(){var a=null!=this?{resourcePath:n(p(this,1)),severity:n(p(this,2)),judgementReason:n(p(this,3))}:void 0;return a};Xjc.messageId="b.CreateContentJudgementRequest";
var Zjc=function(a){Z.call(this,a,-1,Yjc)};U(Zjc,Z);var Yjc=[1];Zjc.prototype.toObject=function(){var a=null!=this?{contentJudgementsList:Eb(tb(this,Il,1),iJ)}:void 0;return a};Zjc.messageId="b.ListContentJudgementsResponse";
var h5=function(a){Z.call(this,a)};U(h5,Z);h5.prototype.getContentJudgement=function(){return m(this,Il,1)};h5.prototype.setContentJudgement=function(a){return Db(this,1,a)};h5.prototype.toObject=function(){var a=null!=this?{contentJudgement:iJ(void 0,this.getContentJudgement())}:void 0;return a};h5.messageId="b.UpdateContentJudgementRequest";
var i5=function(a){this.executor=a};i5.prototype.create=function(a,b,c){a=(new Xjc).setResourcePath(a).setSeverity(b).setJudgementReason(c);return this.executor.post({url:"action/content_judgements",body:a,responseConstructor:Il})};i5.prototype.update=function(a){var b=nj(a,1);a=(new h5).setContentJudgement(a);return this.executor.post({url:"action/content_judgements/"+b,body:a,responseConstructor:Il})};
i5.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:Zjc})};i5.\u0275fac=function(a){return new (a||i5)(t(hI))};i5.\u0275prov=hc({token:i5,factory:i5.\u0275fac,providedIn:"root"});
var j5=function(a,b,c,d,e){var f=this;this.dialogRef=a;this.documentationLinks=b;this.contentJudgements=c;this.activeSession=d;this.data=e;this.piiSeverity=VFb;this.loaded=!1;this.minimumSeverity=0;this.severity=1;this.processContentJudgements=function(h){var k=0;h=r(tb(h,Il,1));for(var q=h.next();!q.done;q=h.next())q=q.value,V(q,5)===f.activeSession.getUserEmail()?$jc(f,q):q.getSeverity()>k&&(k=q.getSeverity());f.minimumSeverity=k;f.minimumSeverity>f.severity&&(f.severity=f.minimumSeverity);f.loaded=
!0};this.severity=e.severity;e.resourcePath?c.list(e.resourcePath).subscribe(this.processContentJudgements):($jc(this,e.contentJudgement),this.loaded=!0)};j5.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var $jc=function(a,b){if(a.judgement=b)a.severity=b.getSeverity()},akc=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.";
1<a.minimumSeverity&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};j5.prototype.getContentJudgement=function(){var a=new Il;if(this.judgement){var b=nj(this.judgement,1);l(a,1,b);a.setResourcePath(this.judgement.getResourcePath())}a.setJudgementReason("None specified");a.setSeverity(this.severity);return a};
j5.prototype.onSaveClick=function(){var a=this;if(this.data.resourcePath){if(null==this.judgement){this.contentJudgements.create(this.data.resourcePath,this.severity,"None specified").subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});return}if(this.judgement.getSeverity()!==this.severity||"None specified"!==this.judgement.getJudgementReason()){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};j5.prototype.onNoClick=function(){this.dialogRef.close(null)};j5.\u0275fac=function(a){return new (a||j5)(C(QB),C(kP),C(i5),C(qH),C(aC))};
j5.\u0275cmp=w({type:j5,selectors:[["b-content-judgement-dialog"]],decls:28,vars:10,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","ref","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-focus-ring"],["aria-labelledby","restriction-radio-group-label",3,"ngModel","ngModelChange"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio",
"restriction-pii",3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","content-judgement-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","content-judgement-dialog-confirm",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),O(3," Set restriction "),G()(),F(4,"div",2)(5,"span")(6,"label",3),O(7),
F(8,"a",4),O(9," Learn More "),G()(),F(10,"mat-radio-group",5),J("ngModelChange",function(c){return b.severity=c}),F(11,"mat-radio-button",6),O(12," No restriction "),F(13,"div"),O(14,' Users with "View issues" can access. '),G()(),F(15,"mat-radio-button",7),O(16," Restricted "),F(17,"div"),O(18,' Users with "View restricted content" can access. '),G()(),F(19,"mat-radio-button",8),O(20," Restricted+ "),F(21,"div"),O(22,' Users with "View restricted+ content" can access. '),G()()()()(),F(23,"div",
9)(24,"button",10),J("click",function(){return b.onNoClick()}),O(25," Cancel "),G(),F(26,"button",11),J("click",function(){return b.onSaveClick()}),O(27," Set "),G()());a&2&&(B(7),Ge(" ",akc(b)," "),B(1),ke("href",b.documentationLinks.getRestrictedAccessHelpLink(),Qd),B(2),E("ngModel",b.severity),B(1),E("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.NONE_DETECTED),B(4),E("value",b.piiSeverity.PII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.PII),
B(4),E("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.SPII),B(7),E("disabled",!b.canInteract()))},dependencies:[FB,eC,fC,gC,hF,ZX,aY,py,vy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}.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)}.optional[_ngcontent-%COMP%]{line-height:2em;margin-top:20px}.optional[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:.5em 0;text-transform:uppercase;font-weight:600;font-size:.8em;line-height:1.5em}.annotations[_ngcontent-%COMP%]{margin-top:4px;display:grid;grid-template-columns:repeat(2, 50%)}.annotation[_ngcontent-%COMP%]{margin:0 10px;padding:4px;line-height:1.5em}\n/*# sourceMappingURL=content_judgement_dialog.css.map */"]});
var k5=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.retentionModel=JAb;this.label="Restricted";this.contentType="item"};k5.prototype.getRetentionPeriod=function(){if(!this.retentionState||!this.retentionState.retentionPeriod)return"";var a=Rra(this.retentionState.retentionPeriod);return a?vo(Math.floor(1E3*a.getSeconds()/864E5)):""};
var w_a=function(a){var b=new Date(864E13);if(!a.retentionState||!a.retentionState.scheduledDeletionTime)return b;a=uo(Fm(a.retentionState.scheduledDeletionTime));return new Date(a||b)},bkc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>uo(Fm(a.retentionState.scheduledDeletionTime))-Date.now():!1};k5.\u0275fac=function(a){return new (a||k5)(C(kP),C(BP))};
k5.\u0275cmp=w({type:k5,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},decls:8,vars:5,consts:[[1,"bubble",3,"panelTemplate"],[1,"chip","nowrap"],[1,"icon-s",3,"svgIcon"],["popup",""],["infiniteRetention",""],[1,"popup"],["target","_blank","rel","noopener noreferrer nofollow"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngIf","ngIfElse"],[3,"ngSwitchCase"]],template:function(a,b){a&1&&(F(0,"xap-bubble",0)(1,"div",
1),H(2,"mat-icon",2),O(3),G(),M(4,A_a,8,3,"ng-template",null,3,Mf),M(6,B_a,3,1,"ng-template",null,4,Mf),G());if(a&2){var c=Fe(5);E("panelTemplate",c);B(1);pe("warning",bkc(b));B(1);E("svgIcon",bkc(b)?"delete-alert":"delete-clock");B(1);Ge(" ",b.label," ")}},dependencies:[Gx,Mx,Nx,hF,KS,Wx],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}\n/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});
var l5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c};l5.prototype.onNoClick=function(){this.dialogRef.close(!1)};l5.\u0275fac=function(a){return new (a||l5)(C(QB),C(kP),C(aC))};
l5.\u0275cmp=w({type:l5,selectors:[["b-restricted-confirmation-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";"),["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","restricted-confirmation-dialog-cancel",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium","dialog-primary-action","restricted-confirmation-dialog-confirm",
3,"mat-dialog-close"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"div",1)(3,"p"),O(4),F(5,"a",2),O(6," Learn More "),G()()(),F(7,"div",3)(8,"button",4),J("click",function(){return b.onNoClick()}),O(9," Cancel "),G(),F(10,"button",5),O(11," Confirm "),G()());a&2&&(B(1),He(b.data.title),B(3),Ge(" ",b.data.content," "),B(1),ke("href",b.documentationLinks.getRestrictedAccessHelpLink(),Qd),B(5),E("mat-dialog-close",!0))},dependencies:[FB,dC,eC,fC,gC],encapsulation:2});
var m5=function(a,b){this.dialog=a;this.documentationLinks=b;this.disabled=!1;this.onConfirm=new Vw};m5.prototype.openDialog=function(){var a=this;RB(this.dialog.open(l5,{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()})};
m5.\u0275fac=function(a){return new (a||m5)(C(cC),C(kP))};
m5.\u0275cmp=w({type:m5,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},decls:5,vars:2,consts:[["mat-stroked-button","","color","primary",1,"gmat-button","small","restricted-comment-load",3,"disabled","click"],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";")],template:function(a,b){a&1&&(F(0,"span")(1,"button",0),J("click",function(){return b.openDialog()}),O(2," Show Restricted Content "),
G(),F(3,"a",1),O(4," Learn More "),G()());a&2&&(B(1),E("disabled",b.disabled),B(2),ke("href",b.documentationLinks.getRestrictedAccessHelpLink(),Qd))},dependencies:[FB],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}\n/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});
var n5=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.acknowledgeToMatchIssueRetention=!1;this.resource=c.resource;this.piiRetention=c.piiRetention};n5.prototype.canInteract=function(){return 2!==this.piiRetention||this.acknowledgeToMatchIssueRetention};n5.prototype.onSaveClick=function(){this.dialogRef.close(1)};n5.prototype.onNoClick=function(){this.dialogRef.close(0)};n5.\u0275fac=function(a){return new (a||n5)(C(QB),C(kP),C(aC))};
n5.\u0275cmp=w({type:n5,selectors:[["b-update-retention-dialog"]],decls:19,vars:7,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],[4,"ngIf"],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about component retention".split(";"),[3,"ngModel","ngModelChange",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","update-retention-dialog-cancel",3,"click"],["mat-button","","color","primary","cdkFocusInitial","",
1,"gmat-button","dialog-primary-action","medium","update-retention-dialog-confirm",3,"disabled","click"],[3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),M(3,C_a,2,1,"span",2),M(4,D_a,2,0,"span",2),G()(),F(5,"div",3),M(6,E_a,8,1,"span",2),M(7,F_a,3,2,"span",2),F(8,"span")(9,"a",4),O(10," Learn More "),G()()(),F(11,"div")(12,"span"),M(13,G_a,2,1,"mat-checkbox",5),G()(),F(14,"div",6)(15,"button",7),J("click",function(){return b.onNoClick()}),O(16,
" Cancel "),G(),F(17,"button",8),J("click",function(){return b.onSaveClick()}),O(18," Save "),G()());a&2&&(B(3),E("ngIf",2===b.piiRetention),B(1),E("ngIf",2!==b.piiRetention),B(2),E("ngIf",2===b.piiRetention),B(1),E("ngIf",2!==b.piiRetention),B(2),ke("href",Ct(),Qd),B(4),E("ngIf",2===b.piiRetention),B(4),E("disabled",!b.canInteract()))},dependencies:[Gx,FB,eC,fC,gC,hF,BO,py,vy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}\n/*# sourceMappingURL=update_retention_dialog.css.map */"]});
var o5=function(){};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275mod=xc({type:o5});o5.\u0275inj=ic({imports:[ay,qF,wG,hC,XH,tC,LP,gH,F4,AF,hY,GO,Ky,VS]});
var p5=function(a,b,c,d,e,f){qI.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(fg(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(fg(this.destroyed$)).subscribe(function(k){k=k.newTab;ckc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(fg(this.destroyed$)).subscribe(function(k){ckc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(fg(this.destroyed$)).subscribe(function(k){k=
k.newTab;ckc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(fg(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(fg(this.destroyed$)).subscribe(function(k){var q=k.newTab;ckc(h,Qsa(k.settingsTabName),q)})};U(p5,qI);p5.\u0275dir=qI.\u0275dir;var ckc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
p5.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(Tf(),fg(this.destroyed$)).subscribe(),io(this.analytics,"preferences","setDisplayDensity",a))};p5.\u0275fac=function(a){return new (a||p5)(t(FK),t(IM),t(KK),t(LK),t(PI),t(mP))};p5.\u0275prov=hc({token:p5,factory:p5.\u0275fac,providedIn:"root"});
var q5=function(a,b,c,d,e,f,h,k,q,u,y){qI.call(this);var D=this;this.activeSession=a;this.currentSearch=b;this.searchAcData=c;this.savedSearchApi=d;this.butterBar=e;this.bLocation=f;this.paths=h;this.analytics=k;this.appSearchState=q;this.appEvents=y;this.items=[];this.acHeader=null;this.placeholder=this.currentQuery="";this.frontendAccessMode=this.activeSession.frontendAccessMode;this.environmentType=this.activeSession.getEnvironmentType();this.searchAcData.acRefreshed$.pipe(fg(this.destroyed$)).subscribe(function(){D.items=
D.searchAcData.items;D.acHeader=D.searchAcData.acHeader})};U(q5,qI);q5.\u0275dir=qI.\u0275dir;
q5.prototype.ngOnInit=function(){var a=this;switch(this.frontendAccessMode){case "INTERNAL":this.placeholder="Search Buganizer";break;case "PARTNER":this.placeholder="Search Partner IssueTracker";break;case "PUBLIC":this.placeholder="Search IssueTracker";break;default:this.placeholder="Search"}this.appSearchState.queryState$.next({query:this.currentSearch.currentSearch,cursorPosition:void 0,setViaInteraction:!1});this.subscriptions.add(GMb(this.currentSearch,function(c){a.appSearchState.queryState$.next({query:c,
cursorPosition:void 0,setViaInteraction:!1})}));this.appSearchState.queryState$.pipe(fg(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(null==d.cursorIdx)d.currentSearchContext=null;else{var f=d.query,h=d.cursorIdx;if(0>h||h>f.length)throw Error("ye");e=new E6b(f,h);if(f){var k=f.slice(0,h);for(var q=!1,u=-1,y=-1;-1<(u=k.indexOf('"',u+1));)q=!q,y=u;k=q?y:-1;if(-1<k)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=IQa(f.slice(0,h)+(-1<q?k.slice(0,q):k),I6b))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},Qi(k.val,"customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);h=Math.max(h-q,0);u=k;if("("===f.charAt(0)){b:{u=[];y=/[()]/g;for(var D;null!=(D=y.exec(f));){var I=u[u.length-1];if(I&&I!==D[0]){if(u.pop(),!u.length){u=
D.index>=h;break b}}else u.push(D[0])}u=!0}u=u?2:0}else u=F6b.includes(u.val)&&-1===f.search("^\\d")?1:0;switch(u){case 2:f=F6b.includes(k.val)?hq(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):hq(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=hq(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=hq(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:ph(u,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=
hq(f,h,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,h=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:h,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(R(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(hg(b),fg(this.destroyed$)).subscribe(function(c){c=r(c);c.next();c=c.next().value;a.submitSearch(c)})};q5.prototype.ngAfterViewInit=function(){wic(this.advancedSearchCtrl,this.currentSearch.currentSearch)};
q5.prototype.submitSearch=function(a){var b=this.currentSearch,c=sa(b.searchHandlerStack);void 0===c?b.$log.warn("No search function installed."):c(a)};var dkc=function(a){if(a.advancedSearchCtrl)return"SUCCESS"!==a.advancedSearchCtrl.getState()?a.currentQuery:Cic(a.advancedSearchCtrl).trim()};q5.prototype.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(dkc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&wic(this.advancedSearchCtrl,this.currentQuery)};
q5.prototype.onAdvancedSearchClose=function(){if(this.advancedSearchCtrl){var a=dkc(this);void 0!==a&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1})}};q5.prototype.submitAdvancedSearch=function(){if(this.advancedSearchCtrl){var a=dkc(this);void 0!==a&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next(),io(this.analytics,"search","done-builder"))}};
q5.prototype.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=dkc(this);void 0!==c&&(yK(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;yK(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));io(b.analytics,"savedSearches","create")}).catch(function(d){zK(b.butterBar,Im(d))}))}};
q5.\u0275fac=function(a){return new (a||q5)(C(qH),C(GN),C(u_),C(EN),C(xK),C(KK),C(LK),C(IM),C(f3),C(p5),C(FK))};
q5.\u0275cmp=w({type:q5,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&Ef(M2,5);if(a&2){var c;Df(c=Gf())&&(b.advancedSearchCtrl=c.first)}},features:[ee],decls:5,vars:8,consts:[[3,"logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader","searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-validation-error-banner",
4,"ngIf"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],["class","warning-container",4,"ngIf"],[4,"ngIf"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(F(0,"b-app-top-bar",0),J("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(c){return b.saveSearch(c)}),
H(1,"b-advanced-search"),M(2,H_a,4,0,"div",1),M(3,K_a,3,2,"div",2),M(4,L_a,2,0,"div",2),G());a&2&&(E("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",b.placeholder)("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader),B(2),E("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),E("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())||"SYNTAX_ERROR"===
(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),E("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())))},dependencies:[Gx,M2,i3,cN,hF],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 r5=function(){};r5.\u0275fac=function(a){return new (a||r5)};r5.\u0275mod=xc({type:r5});r5.\u0275inj=ic({imports:[ay,O2,p3,ON,AF]});
var s5=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=Ql;this.updateDiffs=b.updateDiffs};s5.prototype.close=function(){this.dialogRef.close()};s5.\u0275fac=function(a){return new (a||s5)(C(QB),C(aC))};
s5.\u0275cmp=w({type:s5,selectors:[["b-update-history-modal"]],decls:6,vars:1,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],["class","bv2-event",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"click"],[1,"bv2-event"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],
[1,"bv2-event-details"],["class","bv2-diff-detail",4,"ngFor","ngForOf"],[1,"bv2-diff-detail"],[4,"ngIf"],[1,"bv2-diff-arrow"],[4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"ul",1),M(2,U_a,10,4,"li",2),G()(),F(3,"div",3)(4,"button",4),J("click",function(){return b.close()}),O(5," Close "),G()());a&2&&(B(2),E("ngForOf",b.updateDiffs))},dependencies:[Kx,Gx,FB,fC,gC,kS,iS,CP],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-color:#dadce0;border-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}h4[_ngcontent-%COMP%]{margin:0;margin-bottom:8px;font-weight:normal}"]});
var t5=function(){};t5.\u0275fac=function(a){return new (a||t5)};t5.\u0275mod=xc({type:t5});t5.\u0275inj=ic({imports:[ay,wG,hC,AS,WP]});
var ekc=Qt(["https://www.gstatic.com/buganizer/gfx/","/",""]),u5=Qt(["https://www.gstatic.com/buganizer/img/v2/",""]),fkc=Ch(ekc,"2022-01-24-3a954102","all-icons.svg"),gkc=Ch(u5,"empty_blocker_light.png"),hkc=Ch(u5,"empty_blocker_dark.png"),ikc=Ch(u5,"empty_child_light.png"),jkc=Ch(u5,"empty_child_dark.png"),kkc=Ch(u5,"robot_sleeping.png"),lkc=Ch(u5,"tea_light.png"),mkc=Ch(u5,"tea_dark.png"),nkc=Ch(u5,"welcome_graphic_light.png"),okc=Ch(u5,"welcome_graphic_dark.png");
var v5=function(a,b){qI.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=cj("enableNewIssueDetailsPage")?Bh("https://www.gstatic.com/buganizer/img/v4/favicon.png"):Bh("https://www.gstatic.com/buganizer/img/v0/favicon.ico")};U(v5,qI);v5.\u0275dir=qI.\u0275dir;
var pkc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?Bh(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(R(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=Bh(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),fg(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString()){if(d instanceof Vy||d instanceof xh)b.href=Oja(d);else{if(-1===cob.indexOf("icon"))throw Error("bb`icon");
b.href=wh(d)}b.rel="icon"}})};v5.\u0275fac=function(a){return new (a||v5)(t(mM),t(nM))};v5.\u0275prov=hc({token:v5,factory:v5.\u0275fac,providedIn:"root"});
var qkc=/^\s*[^:/?#]+:/i,w5=function(a){var b=this;this.bLocation=a;this.linkClickHandler=function(c){if(!(c.ctrlKey||c.metaKey||c.shiftKey||2===c.which||2===c.button||c.defaultPrevented)){var d;a:{for(d=c.target;d;){if("A"===d.tagName)break a;d=d.parentElement}d=void 0}!d||d.hasAttribute("target")&&"_self"!==d.getAttribute("target")||(d=d.getAttribute("href"))&&!qkc.test(d)&&(c.preventDefault(),b.bLocation.url(d))}}};w5.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};
w5.\u0275fac=function(a){return new (a||w5)(t(KK))};w5.\u0275prov=hc({token:w5,factory:w5.\u0275fac,providedIn:"root"});
var rkc=[],skc=!1,x5=function(a,b,c,d,e,f,h,k){qI.call(this);this.hatsService=a;this.iconRegistry=b;this.session=c;this.appHistory=d;this.routePerformance=e;this.linkClickHandler=f;this.issueLru=h;this.faviconService=k};U(x5,qI);x5.\u0275dir=qI.\u0275dir;x5.prototype.tearDown=function(){qI.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};x5.\u0275fac=function(a){return new (a||x5)(t(k_),t(gF),t(qH),t(O_),t(R_),t(w5),t(IN),t(v5))};
x5.\u0275prov=hc({token:x5,factory:x5.\u0275fac,providedIn:"root"});
var tkc={provide:Mlb,useFactory:function(a){return function(){Uk("app initializer starting");skc||(a.iconRegistry._addSvgIconSetConfig("",new fF(fkc)),skc=!0);if("INTERNAL"===a.session.frontendAccessMode){eQa(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(Tf(),fg(a.destroyed$)).subscribe();for(var b=r(rkc),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;sH(a.session,c.flagName)&&eQa(a.hatsService,d).pipe(Tf(),fg(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();
a.linkClickHandler.install();b=a.issueLru;Bwa(b.viewed,PMb());Bwa(b.edited,NMb());b.appEvents.issueViewed.pipe(fg(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(fg(b.stop$)).subscribe(b.addEdited);pkc(a.faviconService)}},deps:[x5],multi:!0};
var y5=function(a,b){this.paths=a;this.bLocation=b};y5.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=this.paths.editIssue(a.issueId)+(b?"#"+b:"");this.bLocation.url(a)};y5.\u0275fac=function(a){return new (a||y5)(t(LK),t(KK))};y5.\u0275prov=hc({token:y5,factory:y5.\u0275fac,providedIn:"root"});var ukc={provide:yW,useExisting:y5};
var vkc=function(){var a;switch(null==(a=self.location)?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":case "critique-legacy.corp.google.com":case "critique-ng.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "cider-next.corp.google.com":case "critique-staging.corp.google.com":case "critique-legacy-staging.corp.google.com":case "critique-ng-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":case "critique-legacy-qa.corp.google.com":case "critique-ng-qa.corp.google.com":return 3;
default:return 4}}();
var z5=function(a){$C.call(this);this.errorHandlerFn_=a};hu(z5,$C);z5.prototype.wrap=function(a){return wkc(this,a)};var A5=function(a,b){return(b?"__wrapper_":"__protected_")+Ha(a)+"__"},wkc=function(a,b){var c=A5(a,!0);b[c]||((b[c]=xkc(a,b))[A5(a,!1)]=b);return b[c]},xkc=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[A5(a,!1)]=b;return c};
z5.prototype.handleError_=function(a){if(!(a&&"object"===typeof a&&"string"===typeof a.message&&0==a.message.indexOf("Error in protected function: ")||"string"===typeof a&&0==a.indexOf("Error in protected function: ")))throw this.errorHandlerFn_(a),new ykc(a);};
var zkc=function(a,b){var c=da.window,d=c[b];if(!d)throw Error("Pe`"+b);c[b]=function(e,f){"string"===typeof e&&(e=eu(bib,e));if(!e)throw Error("Pe`"+b);arguments[0]=e=wkc(a,e);if(d.apply)return d.apply(this,arguments);var h=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);h=function(){e.apply(this,k)}}return d(h,f)};c[b][A5(a,!1)]=d};
z5.prototype.disposeInternal=function(){var a=da.window;var b=a.setTimeout;b=b[A5(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[A5(this,!1)]||b;a.setInterval=b;z5.superClass_.disposeInternal.call(this)};var ykc=function(a){ba.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&"string"===typeof a&&(this.stack=a)};hu(ykc,ba);
var B5=function(a,b,c){Uo.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=Akc;this.handlerUrl_=a;if(!c)if(this.errorHandler_=null,lu&&!ru("10"))Krb(du(this.handleException,this));else{this.errorHandler_=new z5(du(this.handleException,this));zkc(this.errorHandler_,"setTimeout");zkc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=da.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=
0;d<c.length;d++){var e=c[d];c[d]in b&&zkc(a,e)}a=this.errorHandler_;Jrb=!0;b=du(a.wrap,a);for(c=0;c<cD.length;c++)cD[c](b);dD.push(a)}};hu(B5,Uo);var Bkc=function(a,b){bD.call(this,"w");this.error=a;this.context=b};hu(Bkc,bD);var Akc=function(a,b,c,d){if(d instanceof Map){var e={};d=r(d);for(var f=d.next();!f.done;f=d.next()){var h=r(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;zi(a,null,b,c,e)};
B5.prototype.handleException=function(a,b){a=a.error||a;b=b?gh(b):{};a instanceof Error&&zja(b,a.__closure__error__context__984382||{});var c=Mrb(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(k){}var d=c.message.substring(0,1900);if(!(a instanceof ba)||a.reportErrorToServer){a=c.stack;try{var e=gE(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);dh(this.additionalArguments_)||(e=Rsa(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=Rtb(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new Bkc(c,b))}catch(k){}};B5.prototype.disposeInternal=function(){yi(this.errorHandler_);B5.superClass_.disposeInternal.call(this)};
var C5=function(){this.jsBuild="449508660";this.buildLabel="buganizer.frontend_20220518.05_p0"};C5.\u0275fac=function(a){return new (a||C5)};C5.\u0275prov=hc({token:C5,factory:C5.\u0275fac,providedIn:"root"});var D5=function(){};D5.prototype.reportingEnabled=function(){return 4!==vkc};D5.\u0275fac=function(a){return new (a||D5)};D5.\u0275prov=hc({token:D5,factory:D5.\u0275fac,providedIn:"root"});
var E5=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new B5("/jserror",function(d,e){e.js_build=a.jsBuild;e.buildLabel=a.buildLabel;e["build-label"]=a.buildLabel;d=r(c.reportingExtensions);for(var f=d.next();!f.done;f=d.next())f.value.enhanceContext(e)},!0)};
E5.prototype.reportError=function(a){console.error("ErrorReporter: ",(null==a?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""));this.jsDebugErrorReporter.handleException(a);a=r(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};E5.\u0275fac=function(a){return new (a||E5)(t(C5),t(D5))};E5.\u0275prov=hc({token:E5,factory:E5.\u0275fac,providedIn:"root"});
var F5=function(a){this._console=console;this.reporter=a};U(F5,Zd);F5.prototype.handleError=function(a){this.reporter.reportError(a)};F5.\u0275fac=function(a){return new (a||F5)(t(E5))};F5.\u0275prov=hc({token:F5,factory:F5.\u0275fac,providedIn:"root"});var G5=function(a){this.activeSession=a};U(G5,D5);G5.prototype.reportingEnabled=function(){return sH(this.activeSession,"reportErrors")};G5.\u0275fac=function(a){return new (a||G5)(t(qH))};G5.\u0275prov=hc({token:G5,factory:G5.\u0275fac,providedIn:"root"});
var Ckc={provide:Zd,useClass:F5},Dkc={provide:D5,useClass:G5},Ekc={provide:C5,useValue:{jsBuild:"449508660",buildLabel:"buganizer.frontend_20220518.05_p0"}};
var H5=function(){};H5.\u0275fac=function(a){return new (a||H5)};H5.\u0275cmp=w({type:H5,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var I5=function(){};I5.\u0275fac=function(a){return new (a||I5)};I5.\u0275mod=xc({type:I5});I5.\u0275inj=ic({});
var Fkc=function(){};U(Fkc,yEb);g=Fkc.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Hi(a.params,b.params)};
var J5=function(a){this.router=a};
J5.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=r(b.url.split("#ISSUE_HistoryHeader"));a=c.next().value;c=c.next().value;return this.router.createUrlTree([a],{fragment:c&&!isNaN(Number(c))?"comment"+c:void 0})}if(a.queryParamMap.has("showInsights")&&"1"===a.queryParamMap.get("showInsights")){b=r(b.url.split("?")).next().value;var d={};return this.router.createUrlTree([b],{queryParams:Object.assign({},Usa(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=
(c=a.fragment)?c:void 0})}return!0};J5.\u0275fac=function(a){return new (a||J5)(t(Ik))};J5.\u0275prov=hc({token:J5,factory:J5.\u0275fac,providedIn:"root"});
var Gkc=/^(\d+)$/,K5=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(xDb))};K5.prototype.validate=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=EC(d);if(!Gkc.test(d)||isNaN(e)||!Number.isInteger(e))return zK(this.butterBar,"The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};K5.\u0275fac=function(a){return new (a||K5)(t(xK))};
K5.\u0275prov=hc({token:K5,factory:K5.\u0275fac,providedIn:"root"});
var L5=function(a){this.routeParamsValidator=a};L5.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};L5.\u0275fac=function(a){return new (a||L5)(t(K5))};L5.\u0275prov=hc({token:L5,factory:L5.\u0275fac,providedIn:"root"});
var M5=function(a){this.router=a};M5.prototype.canActivate=function(){return this.router.createUrlTree([V_a()])};M5.\u0275fac=function(a){return new (a||M5)(t(Ik))};M5.\u0275prov=hc({token:M5,factory:M5.\u0275fac,providedIn:"root"});
var Hkc=["bookmarkGroupName"],Ikc=function(a){return{"bv2-edit-resource-readonly":a}},N5=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);var y=this;this.location=a;this.appHistory=b;this.snackBar=c;this.bookmarkGroupsApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new sy({name:new uy("",ly),description:new uy("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(WY(q,function(){return!(!y.name()&&!y.description())},
!1))};U(N5,qI);N5.\u0275dir=qI.\u0275dir;g=N5.prototype;g.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});io(a.analytics,"sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){P_(this.appHistory)};g.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("name"))?void 0:a.value;return b?b:""};
g.description=function(){var a,b=null==(a=this.bookmarkGroupUnderEdit.get("description"))?void 0:a.value;return b?b:""};N5.\u0275fac=function(a){return new (a||N5)(C(KK),C(O_),C(uK),C(PM),C(LK),C(IM),C(YN),C(BK),C(VY),C(FK))};
N5.\u0275cmp=w({type:N5,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&Ef(Hkc,5);if(a&2){var c;Df(c=Gf())&&(b.bookmarkGroupName=c.first)}},features:[ee],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],
["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,
b){a&1&&(F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),O(5,"Create a new bookmark group"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),O(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),O(17,"Description"),G(),F(18,"textarea",13),O(19,"        "),G()(),F(20,"p",14),O(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),O(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),O(26," Revert changes "),G()()()()());a&2&&(B(8),E("formGroup",b.bookmarkGroupUnderEdit),B(1),E("error",b.error),B(1),E("ngClass",Le(7,Ikc,b.isSaving)),B(3),E("disabled",b.isSaving),B(2),E("ngClass",Le(9,Ikc,b.isSaving)),B(3),E("disabled",b.isSaving),B(5),E("disabled",b.isSaving))},dependencies:[Jx,FB,wF,hF,wy,Mg,py,qy,Gy,Cy,Dy,cZ],encapsulation:2});
var Jkc=["form"],O5=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);this.butterBar=a;this.paths=b;this.analytics=c;this.appHistory=d;this.bLocation=e;this.activeSession=f;this.documentationLinks=h;this.componentActions=u;this.parentComponentInternal=null;this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,customFieldId:null,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",
componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null},userHasEditAccess:void 0,commentEditState:void 0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0"};this.sessionIsExternal=f.isExternalSession();k.parentId&&this.loadParentComponent_(Oi(k.parentId));q.setTitle("Create component")};U(O5,qI);O5.\u0275dir=qI.\u0275dir;g=O5.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate_()&&(yK(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){yK(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());io(a.analytics,"component","create");a.commentEditsEnabled?io(a.analytics,"component","comment edits enabled",
"create"):io(a.analytics,"component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(a.paths.manageComponent(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){zK(a.butterBar,Im(b),0);a.isSaving=!1}))};g.back=function(){P_(this.appHistory)};
g.validate_=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};g.loadParentComponent_=function(a){var b=this;this.componentActions.getUncached(a,!0).then(function(c){b.parentComponent=c})};
g.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;Kkc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;Kkc(this)};var Kkc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};
oi.Object.defineProperties(O5.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;Kkc(this)}}});O5.\u0275fac=function(a){return new (a||O5)(C(xK),C(LK),C(IM),C(O_),C(KK),C(qH),C(kP),C(SR),C(YN),C(sT))};
O5.\u0275cmp=w({type:O5,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&Ef(Jkc,5);if(a&2){var c;Df(c=Gf())&&(b.createComponentForm=c.first)}},features:[ee],decls:55,vars:31,consts:[[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"],["form","ngForm"],[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,"bFocus","ngModel","disabled","required","ngModelChange"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModel","disabled","ngModelChange"],["for","parent-component",1,"required"],
["id","parent-component","ariaLabel","Parent component",3,"selectedComponent","placeholder","isRequired","checkAdminAccess","selectedComponentChange","accessCheckComplete"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"checked","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["for","retention-settings",1,"required"],["target","_blank",
1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5),O(6,"Create component"),G(),F(7,"div",
6)(8,"form",7,8),H(10,"b-error-banner",9),F(11,"div",10)(12,"label",11)(13,"span",12),O(14,"Name"),G()(),F(15,"input",13),J("ngModelChange",function(c){return b.component.name=c}),G()(),F(16,"div",10)(17,"label",14)(18,"span",12),O(19,"Description"),G()(),F(20,"textarea",15),J("ngModelChange",function(c){return b.component.description=c}),O(21,"        "),G()(),F(22,"div",10)(23,"label",16)(24,"span",12),O(25,"Parent Component"),G()(),F(26,"b-team-component-picker",17),J("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),G()(),F(27,"div",18)(28,"div",19)(29,"b-checkbox",20),J("change",function(c){b.commentEditsEnabled=c;return b.setCommentEditState()}),G()(),F(30,"div")(31,"strong",21),O(32,"Editable Comments"),G(),F(33,"div",22),O(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. "),M(35,X_a,2,1,"a",
23),G()()(),F(36,"div",10)(37,"label",24)(38,"span",12),O(39,"Retention Settings"),G()(),F(40,"div",21)(41,"p"),O(42,"Please choose a period of time to retain the data stored in this component."),H(43,"br"),F(44,"a",25),O(45," Learn more "),G()()(),F(46,"div",26)(47,"b-retention-settings-form",27),J("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),G()()(),F(48,"p",28),O(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
G(),F(50,"div",29)(51,"b-button",30),J("onAction",function(){return b.create()}),O(52," Save "),G(),F(53,"b-button",31),J("onAction",function(){return b.back()}),O(54," Discard "),G()()()()());a&2&&(B(8),pe("show-errors",b.error),B(2),E("error",b.error),B(1),pe("bv2-edit-resource-readonly",b.isSaving),B(4),E("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),B(1),pe("bv2-edit-resource-readonly",b.isSaving),B(4),E("ngModel",b.component.description)("disabled",b.isSaving),
B(2),pe("bv2-edit-resource-readonly",b.isSaving),B(4),E("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(1),pe("bv2-edit-resource-readonly",b.isSaving),B(2),E("checked",b.commentEditsEnabled),B(6),E("ngIf",!b.sessionIsExternal),B(9),E("href",Ct(),Qd),B(2),pe("bv2-edit-resource-readonly",b.isSaving),B(1),E("issueRetentionDisabled",b.isSaving)("isExternal",kX(b.parentComponent))("initialModel",b.component.retentionSettings),B(4),E("disabled",
b.isSaving||!b.componentIsValid),B(2),E("disabled",b.isSaving))},dependencies:[oO,Gx,cZ,d_,wy,Mg,py,qy,Gy,vy,ty,tH,mQ,s_,xV],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});
var Lkc=["hotlistName"],Mkc=function(a){return{"bv2-edit-resource-readonly":a}},P5=function(a,b,c,d,e,f,h,k,q,u){qI.call(this);var y=this;this.location=a;this.appHistory=b;this.snackBar=c;this.hotlistApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new sy({name:new uy("",ly),description:new uy("")});h.setTitle("Create Hotlist");this.subscriptions.add(WY(q,function(){return!(!y.name()&&!y.description())},!1))};U(P5,qI);
P5.\u0275dir=qI.\u0275dir;g=P5.prototype;g.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});io(a.analytics,"hotlist","create");a.location.replaceUrl(a.paths.editHotlist(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,
b)}))};g.validate=function(){if(""===this.name())return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){P_(this.appHistory)};g.revertChanges=function(){this.hotlistUnderEdit.reset()};g.name=function(){var a,b=null==(a=this.hotlistUnderEdit.get("name"))?void 0:a.value;return b?b:""};g.description=function(){var a,b=null==(a=this.hotlistUnderEdit.get("description"))?void 0:a.value;return b?b:""};
P5.\u0275fac=function(a){return new (a||P5)(C(KK),C(O_),C(uK),C(XK),C(LK),C(IM),C(YN),C(BK),C(VY),C(FK))};
P5.\u0275cmp=w({type:P5,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&Ef(Lkc,5);if(a&2){var c;Df(c=Gf())&&(b.hotlistName=c.first)}},features:[ee],decls:27,vars:11,consts:[[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","hotlist-name",1,"required"],["type","text",
"autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["hotlistName",""],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["mat-flat-button","","color","primary",1,"gmat-button",3,"disabled","click"],["mat-stroked-button","","color","primary",1,"gmat-button",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"button",
2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),O(5,"Create a new hotlist"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),O(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),O(17,"Description"),G(),F(18,"textarea",13),O(19,"        "),G()(),F(20,"p",14),O(21," Advanced settings such as access controls may be defined once the hotlist is created. "),G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),
O(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),O(26," Revert changes "),G()()()()());a&2&&(B(8),E("formGroup",b.hotlistUnderEdit),B(1),E("error",b.error),B(1),E("ngClass",Le(7,Mkc,b.isSaving)),B(3),E("disabled",b.isSaving),B(2),E("ngClass",Le(9,Mkc,b.isSaving)),B(3),E("disabled",b.isSaving),B(5),E("disabled",b.isSaving))},dependencies:[Jx,FB,wF,hF,wy,Mg,py,qy,Gy,Cy,Dy,cZ],encapsulation:2});
var Nkc=["popOver"],Z_a=function(a){return{$implicit:a}},Q5=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.valueChange=new Vw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};U(Q5,TP);g=Q5.prototype;g.ngOnInit=function(){};g.valueChanged=function(){return this.editingValue!==this.value};
g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=this.value,this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=this.editingValue,this.valueChange.emit(this.value))};g.writeValue=function(a){null!=a&&(this.val=a,this.editing||(this.editingValue=a))};g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};oi.Object.defineProperties(Q5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});Q5.\u0275fac=function(a){return new (a||Q5)(bd("required"))};
Q5.\u0275cmp=w({type:Q5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&Ef(Nkc,7);if(a&2){var c;Df(c=Gf())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",hasBackdrop:"hasBackdrop"},outputs:{valueChange:"valueChange"},features:[Je([{provide:Ix,useExisting:dc(function(){return Q5}),
multi:!0},{provide:TP,useExisting:dc(function(){return Q5}),multi:!0}]),ee],decls:11,vars:8,consts:[[3,"click","focus","blur"],["anchor",""],[4,"ngIf","ngIfElse"],["standardValueDisplay",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"anchor","editorTemplate","newlineWithEnterKey","hasBackdrop","closedWithAction"],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],[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"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange",4,"ngIf","ngIfElse"],["singleLineTemplate",""],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange"],["spellcheck","false","autocomplete","off",3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),M(3,$_a,2,4,"ng-container",2),M(4,a0a,1,1,"ng-template",null,3,Mf),G(),M(6,b0a,2,2,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",
function(f){return b.stopEditing(f)}),G(),M(9,e0a,4,2,"ng-template",null,7,Mf));if(a&2){var c=Fe(1),d=Fe(5),e=Fe(10);ke("aria-labelledby",b.labelledById);B(3);E("ngIf",b.valueTemplate)("ngIfElse",d);B(3);E("ngIf",!b.disabled);B(1);E("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)}},dependencies:[Gx,Qx,Mg,py,vy,jC,O4],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;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;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 Okc=Hh("indicatorRotate",[Kh("collapsed, void",Jh({transform:"rotate(0deg)"})),Kh("expanded",Jh({transform:"rotate(180deg)"})),Lh("expanded <=> collapsed, void => collapsed",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Pkc=Hh("bodyExpansion",[Kh("collapsed, void",Jh({height:"0px",visibility:"hidden"})),Kh("expanded",Jh({height:"*",visibility:"visible"})),Lh("expanded <=> collapsed, void => collapsed",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);
var Qkc=new od("CdkAccordion");
var Rkc=0,R5=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=T.Subscription.EMPTY;this.closed=new Vw;this.opened=new Vw;this.destroyed=new Vw;this.expandedChange=new Vw;this.id="cdk-accordion-child-"+Rkc++;this._disabled=this._expanded=!1;this._removeUniqueSelectionListener=function(){};this._removeUniqueSelectionListener=c.listen(function(e,f){d.accordion&&!d.accordion.multi&&d.accordion.id===f&&d.id!==e&&(d.expanded=
!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};g=R5.prototype;g.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};g.toggle=function(){this.disabled||(this.expanded=!this.expanded)};g.close=function(){this.disabled||(this.expanded=!1)};g.open=function(){this.disabled||(this.expanded=!0)};
g._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
oi.Object.defineProperties(R5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=Yg(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=Yg(a)}}});
R5.\u0275fac=function(a){return new (a||R5)(C(Qkc,12),C(zx),C(JA))};R5.\u0275dir=w({type:R5,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Je([{provide:Qkc,useValue:void 0}])]});
var S5=function(){};S5.\u0275fac=function(a){return new (a||S5)};S5.\u0275mod=xc({type:S5});S5.\u0275inj=ic({});
var Skc=new od("MAT_ACCORDION");
var Tkc=new od("MAT_EXPANSION_PANEL");
var T5=function(a,b){this._template=a;this._expansionPanel=b};T5.\u0275fac=function(a){return new (a||T5)(C(Af),C(Tkc,8))};T5.\u0275dir=w({type:T5,selectors:[["ng-template","matExpansionPanelContent",""]]});
var Ukc=["body"],Vkc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Wkc=0,Xkc=new od("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),U5=function(a,b,c,d,e,f,h){R5.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new Vw;this.afterCollapse=new Vw;this._inputChanges=new T.Subject;this._headerId="mat-expansion-panel-header-"+Wkc++;this._bodyAnimationDone=new T.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(Sf(function(q,
u){return q.fromState===u.fromState&&q.toState===u.toState})).subscribe(function(q){"void"!==q.fromState&&("expanded"===q.toState?k.afterExpand.emit():"collapsed"===q.toState&&k.afterCollapse.emit())});h&&(this.hideToggle=h.hideToggle)};U(U5,R5);U5.\u0275dir=R5.\u0275dir;g=U5.prototype;g._hasSpacing=function(){return this.accordion?this.expanded&&"default"===this.accordion.displayMode:!1};g._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};
g.toggle=function(){this.expanded=!this.expanded};g.close=function(){this.expanded=!1};g.open=function(){this.expanded=!0};g.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(dg(null),uf(function(){return a.expanded&&!a._portal}),Tf()).subscribe(function(){a._portal=new bB(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){R5.prototype.ngOnDestroy.call(this);this._bodyAnimationDone.complete();this._inputChanges.complete()};g._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
oi.Object.defineProperties(U5.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=Yg(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});U5.\u0275fac=function(a){return new (a||U5)(C(Skc,12),C(zx),C(JA),C(Bf),C(mi),C(iw,8),C(Xkc,8))};
U5.\u0275cmp=w({type:U5,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&Ff(c,T5,5);if(a&2){var d;Df(d=Gf())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&Ef(Ukc,5);if(a&2){var c;Df(c=Gf())&&(b._body=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(a,b){a&2&&pe("mat-expanded",b.expanded)("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",
hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Je([{provide:Skc,useValue:void 0},{provide:Tkc,useExisting:U5}]),ee,Fc],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],
template:function(a,b){a&1&&(Ae(Vkc),Be(0),F(1,"div",0,1),J("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),F(3,"div",2),Be(4,1),M(5,f0a,0,0,"ng-template",3),G(),Be(6,2),G());a&2&&(B(1),E("@bodyExpansion",b._getExpandedState())("id",b.id),ke("aria-labelledby",b._headerId),B(4),E("cdkPortalOutlet",b._portal))},dependencies:[eB],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.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}.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,data:{animation:[Pkc]},changeDetection:0});
var Ykc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Zkc=si(function(){}),V5=function(a,b,c,d,e,f,h){var k=Zkc.call(this)||this;k.panel=a;k._element=b;k._focusMonitor=c;k._changeDetectorRef=d;k._animationMode=f;k._parentChangeSubscription=T.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(uf(function(u){return!(!u.hideToggle&&!u.togglePosition)})):T.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,T.merge)(a.opened,a.closed,q,a._inputChanges.pipe(uf(function(u){return!!(u.hideToggle||
u.disabled||u.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(uf(function(){return a._containsFocus()})).subscribe(function(){return Xz(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};U(V5,Zkc);g=V5.prototype;g._toggle=function(){this.disabled||this.panel.toggle()};g._isExpanded=function(){return this.panel.expanded};g._getExpandedState=function(){return this.panel._getExpandedState()};
g._getPanelId=function(){return this.panel.id};g._getTogglePosition=function(){return this.panel.togglePosition};g._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};g._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};g._keydown=function(a){switch(a.keyCode){case 32:case 13:ki(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?Xz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};g.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};oi.Object.defineProperties(V5.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
V5.\u0275fac=function(a){return new (a||V5)(C(U5,1),C(sd),C(Wz),C(zx),C(Xkc,8),C(iw,8),bd("tabindex"))};
V5.\u0275cmp=w({type:V5,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&J("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(ke("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),oe("height",b._getHeaderHeight()),pe("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
"after"===b.panel.togglePosition)("mat-expansion-toggle-indicator-before","before"===b.panel.togglePosition)("_mat-animation-noopable","NoopAnimations"===b._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[ee],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(a,b){a&1&&(Ae(Ykc),
F(0,"span",0),Be(1),Be(2,1),Be(3,2),G(),M(4,g0a,1,1,"span",1));a&2&&(B(4),E("ngIf",b._showToggle()))},dependencies:[Gx],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.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:not([aria-disabled=true]){cursor:pointer}.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;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-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],
encapsulation:2,data:{animation:[Okc]},changeDetection:0});var W5=function(){};W5.\u0275fac=function(a){return new (a||W5)};W5.\u0275dir=w({type:W5,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});
var X5=function(){};X5.\u0275fac=function(a){return new (a||X5)};X5.\u0275mod=xc({type:X5});X5.\u0275inj=ic({imports:[ay,kB,S5,fB]});
var $kc=["descriptionConfirmDialog"],i0a=function(a,b){return{partner:a,"public":b}},V0a=function(a){return{required:a}},$0a=function(a){return{"bv2-upload-ongoing":a}},alc=function(a){return{submitted:a}},Y5=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa,$a,jc){qI.call(this);var Va=this;this.ngZone=a;this.$log=b;this.$route=c;this.paths=d;this.redirectUrl=e;this.userAccess=f;this.accessPolicy=h;this.bLocation=k;this.appHistory=q;this.issueTemplate=u;this.issueTypeDialog=
y;this.componentActions=D;this.activeSession=I;this.draftStore=N;this.pageTitle=L;this.analytics=S;this.issueApi=X;this.userApi=ka;this.hotlistApi=ha;this.butterBar=ra;this.errorHandler=Da;this.matDialogService=Ja;this.appEvents=Ba;this.userPreferencesManager=fb;this.cdr=Ca;this.confirmationDialogService=Ia;this.issueRelationshipsFridge=Xa;this.issueFridge=$a;this.clearcut=jc;this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.userEmail=this.activeSession.getUserEmail();
this.enableWtdmMvpUi=sH(this.activeSession,"enableWtdmMvpUi");this.sessionIsExternal=this.activeSession.isExternalSession();this.hotlistMap={};this.hotlists=[];this.templateComment="";this.appliedTemplate=null;this.componentPickerTouched=this.isLoadingComponent=!1;this.availablePredefinedTemplates=[];this.preferredTemplateId=this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.isNavigatingAway=this.isSaving=this.submitRequested=this.showRecentIssuesInline=!1;this.selectedHotlists=
[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.customFieldAllowedValuesMap={};this.verifierText=this.reporterText=this.assigneeText=null;this.ccsText=[];this.magicBoxHeader="Recent Issues";this.selectedComponent=null;this.useCodefont=!1;this.selectedHotlistIds=[[]];this.isFormatInRoute=!1;this.isChildIssueIdsValid=this.isParentIssueIdsValid=
this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.startTime=new Date;this.toIssueSeverity=IBb;this.FieldType=jYb;this.initialized=!1;this.getSingleEditFieldType=kYb;this.getListFieldType=cZb;this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){Va.fetchUserHotlists()}));
this.enableCreateIssueWithTemplate=sH(I,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=I.isInternalSession()||rH(I);this.priorityChoices=va.priorities.map(function(Ya){return{value:Ya,displayText:Ya}});this.severityChoices=va.severities.map(function(Ya){return{value:Ya,displayText:Ya}});this.issueTypeChoices=va.editIssueTypes.map(function(Ya){return{value:Ya,displayText:KBb(Ya),altText:va.issueTypesShortDescriptions.get(Ya)}});this.urlTemplate=new B7b(La,b);this.piiWarningMessage=
I.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.descriptionBoxId="bv2-description";this.componentRequestedInUrl=
La.component;this.templateIssueRequestedInUrl=La.template_issue;La.template&&(a=Oi(La.template),void 0!==a&&(this.preferredTemplateId=a));La.parentIssueId&&(a=La.parentIssueId,this.parentIssueIds=Array.isArray(a)?a:[a]);La.childrenIssueIds&&(a=La.childrenIssueIds,this.childrenIssueIds=Array.isArray(a)?a:[a]);La.afterIssueId&&(a=La.afterIssueId,this.afterIssueId=Array.isArray(a)?a[0]:a);this.issue=Ii(blc);c1a(this.issue,this);this.audience=2;La.description?this.comment=new RR(La.description,!0):(a=
this.draftStore.$window.sessionStorage.getItem(Bo(0))||"",this.comment=new RR(a));a=clc(La);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(fb.preferences$.subscribe(function(Ya){var Sa;Va.useCodefont=null!=(Sa=Ya.useCodefont)?Sa:Va.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=D7b(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(XI(hb,{title:"Create Issue Page",
hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var Ya;null==(Ya=Va.hotlistPicker)||Ya.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){Va.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,dlc(this,Oi(this.componentRequestedInUrl))):(I7b(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&(this.newIssueStarted=!0,elc(this));this.originalIssueCopy=Ii(this.issue);La.description&&
(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=Ym[this.comment.formattingMode],this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.pageTitle.setTitle("New issue");this.createRestrictedResourcesComponentWhitelist=lb(I.config,13);this.subscriptions.add(WY(Tb,function(){return Va.hasUnsavedChanges()},!1))};U(Y5,qI);Y5.\u0275dir=qI.\u0275dir;g=Y5.prototype;
g.ngOnDestroy=function(){qI.prototype.ngOnDestroy.call(this);flc(this)};g.ngOnInit=function(){this.initialized=!0};g.unloadPageHandler=function(){flc(this)};g.refreshView=function(){var a=this;this.initialized&&this.ngZone.run(function(){a.cdr.detectChanges()})};g.back=function(){P_(this.appHistory)};
var klc=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,glc(a),a.audience=kX(a.selectedComponent)?2:1,a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?(a.judgementForNewContent=new Il,a.judgementForNewContent.setSeverity(2),a.judgementForNewContent.setJudgementReason("None Specified")):a.judgementForNewContent=
void 0):(fh(a.issue,"componentId"),a.audience=2);a.submitRequested=!1;hlc(a);a.selectedComponentProcessedPromise=Promise.all([ilc(a),jlc(a)]).then(function(){});return a.selectedComponentProcessedPromise},llc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},j0a=function(a){return C2b(a.selectedComponent)?"External Google partners may be able to see this issue.":lX(a.selectedComponent)?
"Public users with Google Accounts may be able to see this issue.":""},elc=function(a){var b=Oi(a.templateIssueRequestedInUrl);a.availableExistingIssueTemplate=new mlc(b,"issue","Issue "+b,!1);a.selectedTemplate=a.availableExistingIssueTemplate},ilc=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(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;Zi(Yi(f))&&(f=e.default?"(default template)":"(unnamed template)");return new mlc(e.templateId,"predefined",f,e.default)});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=r(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=d;break}}0<
a.availablePredefinedTemplates.length&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);a.refreshView()}).catch(function(){zK(a.butterBar,"Unable to load templates for this component")}):Promise.resolve(void 0)},jlc=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=mK(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;a.refreshView()}),e=mK(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;a.refreshView()});c=mK(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;a.refreshView()});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=
f;a.refreshView()});return Promise.all([d,e,c,b]).then(function(){nlc(a);a.refreshView()}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
Y5.prototype.getIssueTemplate=function(){var a=this;if(this.selectedTemplate){var b=function(c){var d=Ii(blc);Object.assign(d,c.snapshot);a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);delete d.issueId;var e=Ii(d);llc(a);d1a(a,a.issue);var f=Ii(a.issue);if(a.appliedTemplate)for(var h=r(Object.entries(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){var q=r(k.value);k=q.next().value;q=q.next().value;if(Array.isArray(q)&&Array.isArray(f[k])){q=r(q);for(var u=q.next();!u.done;u=
q.next())Uma(f[k],u.value)}else Hi(q,f[k])&&delete f[k]}a.appliedTemplate=e;f=r(Object.entries(f));for(h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=blc[h],"customField"===h||Hi(k,q)||(Array.isArray(k)?d[h]=d[h]?Tma(k.concat(d[h])):k:""!==k&&(d[h]=k));e=e.comment||"";a.comment.value!==a.templateComment&&(OQb(a.comment)||""===e||a.comment.value===e||(a.templateComment=e,olc(a,a.comment.value)),d.comment=a.comment.value);a.templateComment=e;d.reporterUser=Xl(a.userEmail);
a.issue=d;c1a(a.issue,a);nlc(a);llc(a);d1a(a,a.issue);a.comment.value=a.issue.comment||"";I7b(a.urlTemplate,a.issue,a.customFieldMap);c1a(a.issue,a);a.originalIssueCopy=Ii(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Ii(a.issue.hotlistId);a.refreshView()});plc(a);return a.selectedComponent?null:c.snapshot.componentId};"predefined"===this.selectedTemplate.type&&this.selectedComponent?this.issueTemplate.templatesApi.getIssueTemplate(this.selectedComponent.componentId,
this.selectedTemplate.id).then(b).then(function(){a.refreshView()}):"issue"===this.selectedTemplate.type&&(HIb(this.issueTemplate,this.selectedTemplate.id).then(b).then(function(c){c&&(dlc(a,c),a.refreshView())}),(0,T.firstValueFrom)(this.issueFridge.watch(String(this.selectedTemplate.id))).then(function(c){var d;null!=(d=a.parentIssueIds)&&d.length||(a.parentIssueIds=null==c?void 0:c.parentIssueIds)}));this.selectedTemplate.id!==this.preferredTemplateId&&io(this.analytics,mo.CREATE_ISSUE,"changeTemplate");
hlc(this)}};Y5.prototype.isValid=function(){return!(0!==l0a(this).length||0!==m0a(this).length)&&!(!this.isBlockedByIssueIdValid||!this.isBlockingIssueIdValid||!this.isParentIssueIdsValid)&&!Os(this.comment)};
var l0a=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"componentId"===c?"component":c})},m0a=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new cJ(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},Qs=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(function(c){return c}).map(Number).filter(function(c){return!isNaN(c)})},G0a=function(a){return a.split(",").map(function(b){return b.trim()})},Ps=function(a){return a?a.join(", "):""},plc=function(a){if(qja(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=Y5.prototype;
g.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};g.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};g.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};g.getCustomFieldValue=function(a){return(new cJ(a)).getValue()};g.getDateValue=function(a){return a};
g.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});io(this.analytics,mo.CREATE_ISSUE,"changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};g.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};g.getListFieldValues=function(a){var b,c;return null!=(c=null==(b=(new cJ(a)).getValue())?void 0:b.values)?c:null};
g.saveCommentDraft=function(){var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(Bo(0),a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=r(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;(d=d.next().value)&&b.push(Oi(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();io(this.analytics,mo.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;za(null!=(b=this.issue.hotlistId)?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.issue=Object.assign({},this.issue,{title:a})};g.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:a8a(a)});var b;io(this.analytics,mo.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};var C0a=function(a,b){a.issue=Object.assign({},a.issue,{type:HBb(b)});var c;io(a.analytics,mo.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
Y5.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)});Ma(this.selectedHotlists,function(b,c){return ju(b.name,c.name)})};
var qlc=function(a,b){var c,d,e,f,h,k,q,u,y,D,I;return ef(function(N){switch(N.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){N.jumpTo(2);break}e=[];return 1===d.length?ff(N,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):ff(N,oKb(a.issueRelationshipsFridge,c,d),5);case 5:h=N.yieldResult;e=h.notAdded;f=h.errors;N.jumpTo(4);break;case 6:k=N.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&zK(a.butterBar,"Unable to add "+e+" as parent(s). "+
f);case 2:q=a.childrenIssueIds;if(null==(u=q)||!u.length){N.jumpTo(7);break}return ff(N,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(L){return{issueId:L}})),8);case 8:y=N.yieldResult,D=y.notAdded,I=y.errors,D.length&&zK(a.butterBar,"Unable to add "+D+" as children. "+I);case 7:return N.return(b)}})},Z0a=function(a,b){var c=a.issue;a.submitRequested=!0;if(a.isValid()){c.comment=a.comment.value;c.formattingMode=Ym[a.comment.formattingMode];var d={snapshot:c,attachments:PQb(a.comment)};
a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(d.templateId=a.selectedTemplate.id);a.judgementForNewContent&&1!==a.judgementForNewContent.getSeverity()&&(d.contentJudgement=uqa(a.judgementForNewContent));a.canEditIssuesInComponent||(d.snapshot={title:d.snapshot.title,componentId:d.snapshot.componentId,comment:d.snapshot.comment,formattingMode:d.snapshot.formattingMode,cc:!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]});
d.snapshot=ch(d.snapshot,function(h){return"string"!==typeof h||!Zi(h)});d.snapshot.customField&&(d.snapshot.customField=d.snapshot.customField.filter(function(h){return!(new cJ(h)).isEmpty()}));d1a(a,d.snapshot);d.snapshot.assigneeUser&&(d.snapshot.status="ASSIGNED");var e=function(){a.isSaving=!0;a.newIssueStarted=!1;yK(a.butterBar,"Creating...",0);a.issueApi.createIssue(d).then(function(h){return qlc(a,h)}).then(function(h){a.draftStore.$window.sessionStorage.removeItem(Bo(0));a.originalIssueCopy=
Ii(a.issue);io(a.analytics,mo.CREATE_ISSUE,"create",2===a.comment.formattingMode?"markdown":"non markdown");rlc(a);if(b){var k;io(a.analytics,mo.CREATE_ISSUE,"fileAndRedirect","component",null!=(k=c.componentId)?k:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;mK(a.userAccess,"reader","issues/"+h.issueId).then(function(y){a.componentPickerTouched=!1;y?P7b(a.redirectUrl,a.paths.editIssue(h.issueId),String(h.issueId)):(yK(a.butterBar,"New issue created: "+h.issueId+" (view access not granted)",
0),P7b(a.redirectUrl,a.paths.listIssues()));a.refreshView()}).catch(function(y){a.errorHandler.errorHandler(null,y);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var q;io(a.analytics,mo.CREATE_ISSUE,"fileAndNew","component",null!=(q=c.componentId)?q:void 0);k={};FIb(a.butterBar,Wn("New issue created: ",Vn("A",(k.href=a.paths.editIssue(h.issueId),k),String(h.issueId))),0);c.title="";a.comment=new RR(a.templateComment);c.comment=a.comment.value;a.isSaving=!1;a.submitRequested=!1;var u;k=
r(null!=(u=a.magicBoxes)?u:[]);for(u=k.next();!u.done;u=k.next())u.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=Ii(a.issue)}a.refreshView()}).catch(function(h){403===h.status&&Hm(h)?CK(a.errorHandler,Im(h)):a.errorHandler.errorHandler(null,h);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1})};slc(a).then(function(h){return h?tlc(a):Promise.resolve(!1)}).then(function(h){h&&e()})}else{var f=document.querySelector(".bv2-view");f&&(f.scrollTop=0)}},slc=function(a){var b=Nj();!a.canEditIssuesInComponent&&
!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?a.confirmationDialogService.open({title:"",content:$y("Submitting this bug report means your email address will be shared with the team that works on this product."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},tlc=function(a){var b=Nj();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&
"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):DR(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},dlc=function(a,b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){klc(a,c);a.refreshView()}).catch(function(){zK(a.butterBar,"Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};
Y5.prototype.hasUnsavedChanges=function(){var a=e1a(this.issue),b=e1a(this.originalIssueCopy);return!Hi(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var y0a=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;io(a.analytics,mo.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},olc=function(a,b){RB(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(Wf()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,a.originalIssueCopy.comment=a.templateComment):(a.originalIssueCopy.comment=a.templateComment,a.templateComment="")})},hlc=function(a){a.selectedComponent&&
a.bLocation.search("component",a.selectedComponent.componentId);a.selectedTemplate&&("predefined"===a.selectedTemplate.type?(a.bLocation.search("template",a.selectedTemplate.id),a.bLocation.search("template_issue",null)):"issue"===a.selectedTemplate.type&&(a.bLocation.search("template_issue",a.selectedTemplate.id),a.bLocation.search("template",null)))},Ms=function(a){return a.sessionIsExternal?!1:C2b(a.selectedComponent)},Ns=function(a){return"PUBLIC"===a.activeSession.frontendAccessMode?!1:lX(a.selectedComponent)},
glc=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=r(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=ulc(b);vlc(a)}},vlc=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(e){return a.customFieldMap[e.customFieldId]&&a.customFieldMap[e.customFieldId].enabledOnIssues});
for(var b=a.issue.customField.map(function(e){return e.customFieldId}),c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,!b.includes(d.customFieldId)&&d.enabledOnIssues&&a.issue.customField.push(d.typedDefaultValue||new cJ({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=a.issue.customField}},nlc=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)void 0!==a.ccsText?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(v(a.ccsText))):
a.ccsText=[a.userEmail]};g=Y5.prototype;g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.refreshView()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;io(this.analytics,"baseIssue","createHotlist");yK(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){yK(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);b.refreshView()}).catch(a.errorCallback)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);b.refreshView();return d},function(){var d=b.hotlistMap[c];fh(b.hotlistMap,c);za(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){b.refreshView()})};
var clc=function(a){var b;switch((null==(b=a.format)?void 0:b.toLowerCase())||""){case "plain":return 1;case "markdown":return 2}};Y5.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=null!=(c=null==(b=this.judgementForNewContent)?void 0:b.getSeverity())?c:1;this.showContentJudgementDialog({severity:d,contentJudgement:this.judgementForNewContent,hasAclToCreate:!0}).pipe(fg(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};
Y5.prototype.showContentJudgementDialog=function(a){return RB(this.matDialogService.open(j5,{width:"500px",data:a}))};
var flc=function(a){a.componentPickerTouched&&(io(a.analytics,mo.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);io(a.analytics,mo.CREATE_ISSUE,"creation-abandon","new-ui")},rlc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);dLb(a.analytics,"createIssue",c,"new-ui");io(a.analytics,mo.CREATE_ISSUE,"createIssue","time-to-create-new-ui",c);c=a.clearcut;c.userLatency.record(b,"createIssue-fromNewIssuePage",c.frontendAccessMode,
c.environmentType)}a.startTime=new Date};oi.Object.defineProperties(Y5.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;null==(c=this.selectedComponentProcessedPromise)||c.then(function(){b.getIssueTemplate()})}}}});
Y5.\u0275fac=function(a){return new (a||Y5)(C(mg),C(AK),C(DLb),C(LK),C(Q_),C(lK),C(ZN),C(KK),C(O_),C(EK),C(CR),C(sT),C(qH),C(BR),C(YN),C(IM),C(fK),C(cL),C(XK),C(xK),C(BK),C(cC),C(FK),C(SR),C(WI),C(PI),C(VY),C(RH),C(mI,2),C(RM),C(VL),C(oL),C(JO))};
Y5.\u0275cmp=w({type:Y5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(Ef(pX,5),Ef(iX,5),Ef($kc,5),Ef(U5,5),Ef(l_,5));if(a&2){var c;Df(c=Gf())&&(b.hotlistPicker=c.first);Df(c=Gf())&&(b.commentBox=c.first);Df(c=Gf())&&(b.descriptionConfirmDialog=c.first);Df(c=Gf())&&(b.advancedFieldsZippy=c.first);Df(c=Gf())&&(b.magicBoxes=c)}},hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,vd)},features:[Je([mI]),ee],decls:30,vars:17,consts:[[1,"a11y-only"],
[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate",4,"ngIf"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm",3,"ngClass"],["class","bv2-create-component-external-warning",3,"ngClass",4,"ngIf"],["class","bv2-validation-error-banner",
"role","alert",4,"ngIf"],["class","bv2-create-issue-hotlists",4,"ngIf"],[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,"selectedComponent","shouldFocus","isRequired","selectedComponentChange","touched"],["class","bv2-create-field bv2-right-button",4,"ngIf"],["class","bv2-validation-error-banner",4,"ngIf"],[4,"ngIf"],[1,"bv2-new-issue-right-sidebar"],[3,"componentId","issueTitle","issue","customFieldMap",
"headerChange"],["descriptionConfirmDialog",""],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate"],[1,"bv2-create-component-external-warning",3,"ngClass"],[3,"name","size"],[3,"href"],["role","alert",1,"bv2-validation-error-banner"],["class","bv2-validation-error",4,"ngIf"],[1,"bv2-validation-error"],[1,"bv2-create-issue-hotlists"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[1,"bv2-create-field","bv2-right-button"],["for",
"bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["templateMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"bv2-validation-error-banner"],["class","bv2-recent-issues-inline-container",4,"ngIf"],["for","bv2-title",1,"required"],[1,"bv2-create-issue-title"],
["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModel","bFocus","ngModelChange"],["class","bv2-create-field bv2-create-issue-assignee",4,"ngIf"],["class","bv2-create-field bv2-create-issue-cc",4,"ngIf"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"supportsPreview","comment","loadFormatFromPrefs","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience",
"ngClass","commentChange","onChange","onSubmit","onRestrict"],[3,"initialValue"],[1,"float-clear"],[1,"bv2-create-issue-zippy"],["class","mat-elevation-z0",4,"ngIf"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"disabled","onAction"],["format","fill","id","bv2-issue-create-start-button",3,"disabled","onAction"],["format","hairline","id","bv2-issue-discard-button",3,"disabled","onAction"],[1,"bv2-recent-issues-inline-container"],[1,"bv2-recent-issues-toggle-container"],
["tabindex","0",1,"bv2-recent-issues-toggle",3,"click","keydown.enter","keydown.space"],["class","bv2-recent-issues-inline",4,"ngIf"],[1,"bv2-recent-issues-inline"],[3,"componentId","hideHeader","showInline","issueTitle","issue","customFieldMap","headerChange"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["priorityMenu","matMenu"],["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button",3,"click",4,"ngFor",
"ngForOf"],["for","bv2-type",1,"required"],["typeMenu","matMenu"],["mat-menu-item","","type","button",3,"title","click",4,"ngFor","ngForOf"],["mat-menu-item","","type","button",3,"title","click"],[1,"bv2-create-field","bv2-create-issue-assignee"],["for","bv2-assignee"],[1,"overflow-hidden"],["id","bv2-assignee","type","text","name","assignee","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel","bContactAutocomplete","ngModelChange"],[1,"bv2-create-field","bv2-create-issue-cc"],["for",
"bv2-cc"],["id","bv2-cc","type","text","name","cc","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModel","bContactAutocomplete","ngModelChange"],[1,"mat-elevation-z0"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","title","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"],["severityMenu",
"matMenu"],[1,"bv2-create-adv-field"],["for","bv2-found-in","title","Set version(s) of the product affected by this issue (comma-separated list)"],["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModel","ngModelChange"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","title","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModel","ngModelChange"],["for","bv2-reporter","title","Set the reporter of this issue."],
["id","bv2-reporter","name","reporter","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-verifier","title","Set the verifier of this issue."],["id","bv2-verifier","name","verifier","type","text","autocomplete","off",3,"ngModel","bContactAutocomplete","ngModelChange"],["for","bv2-targeted-to","title","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,"ngModel","ngModelChange"],["for","bv2-blocked-by","title","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name","blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-blocking","title","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],
["class","bv2-create-adv-field",4,"ngIf"],["class","bv2-create-adv-field",4,"ngFor","ngForOf"],["for","bv2-parents","title","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],["for","bv2-children","title","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text","pattern","[\\s\\d,]*",3,"ngModel","ngModelChange"],
[3,"id","ngClass","title"],[3,"id","value","valueChange",4,"ngIf"],[3,"value","options","includeEmptyOption","valueChange",4,"ngIf"],[3,"id","value","valueChange"],[3,"boundValue","isRequired","bv2Id","bv2AriaLabelledby","boundValueChange"],[3,"value","options","includeEmptyOption","valueChange"],["name","customInput","tabindex","0",3,"defaultLineCount","type","values","enumChoices","truncate","valuesChange"],["mat-dialog-title",""],[1,"bv2-create-issue-default-description"],["mat-button","",3,"mat-dialog-close"],
["mat-button","","mat-dialog-close",""]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Create issue"),G(),F(2,"div",1)(3,"div",2)(4,"button",3),J("click",function(){return b.back()}),H(5,"mat-icon",4),G(),F(6,"h2"),O(7,"Create Issue"),G(),M(8,h0a,1,2,"b-hotlist-picker",5),G()(),F(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),M(13,k0a,6,8,"div",9),M(14,q0a,4,3,"div",10),M(15,s0a,2,1,"div",11),F(16,"div",12)(17,"div",13)(18,"div",14)(19,"label",15),O(20,"Component"),G()(),F(21,"div",16)(22,"b-team-component-picker",
17),J("selectedComponentChange",function(d){return klc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=!0}),G()()(),M(23,v0a,11,5,"div",18),G(),M(24,w0a,3,0,"div",19),M(25,a1a,33,25,"div",20),G()(),F(26,"div",21)(27,"b-magic-box",22),J("headerChange",function(d){return b.magicBoxHeader=d}),G()()()(),M(28,b1a,11,2,"ng-template",null,23,Mf));if(a&2){var c;B(8);E("ngIf",b.canEditIssuesInComponent);B(4);E("ngClass",Le(15,alc,b.submitRequested));B(1);E("ngIf",Ms(b)||
Ns(b));B(1);E("ngIf",b.submitRequested&&!b.isValid());B(1);E("ngIf",0<b.selectedHotlists.length);B(7);E("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B(1);E("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);B(1);E("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);
B(1);E("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);B(2);E("componentId",null!==(c=b.issue.componentId)&&void 0!==c?c:void 0)("issueTitle",b.issue.title)("issue",b.issue)("customFieldMap",b.customFieldMap)}},dependencies:[oO,iX,MW,QU,UP,P4,d_,wy,Mg,py,qy,Gy,Iy,vy,ty,YX,pX,tH,WX,oV,l_,FB,dC,eC,fC,gC,U5,V5,W5,hF,HA,mF,kF,pF,xT,wF,Q5,xV,Jx,Kx,Gx,pM],styles:[".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}.mat-menu-item[_ngcontent-%COMP%]:active, .mat-menu-item[_ngcontent-%COMP%]:focus, .mat-menu-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var ulc=function(a){var b={};a=r(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},blc={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},mlc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};
var wlc=["form"],Z5=function(a,b,c,d,e,f,h,k){this.bLocation=a;this.sloApi=b;this.errorHandler=c;this.paths=d;this.analytics=e;this.butterBar=f;this.appHistory=k;this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error="";this.sloUnderEdit=new mY;h.setTitle("Create SLO")};Z5.prototype.ngAfterViewInit=function(){};
Z5.prototype.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");yK(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){yK(a.butterBar,"SLO "+b.getName()+" saved.",2E3);io(a.analytics,"SLO","create");a.bLocation.replaceUrl(a.paths.editSlo(b.getSloId()))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};Z5.prototype.back=function(){P_(this.appHistory)};
Z5.prototype.revertChanges=function(){this.sloUnderEdit.setName("");this.sloUnderEdit.setDescription("");Cb(this.sloUnderEdit,6,[])};var xlc=function(a){return""!==a.sloUnderEdit.getName()||""!==a.sloUnderEdit.getDescription()||0<at(a.sloUnderEdit).length};Z5.prototype.updateCollection=function(a){Cb(this.sloUnderEdit,6,a)};
Z5.prototype.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};Z5.\u0275fac=function(a){return new (a||Z5)(C(KK),C(pY),C(BK),C(LK),C(IM),C(xK),C(YN),C(O_))};
Z5.\u0275cmp=w({type:Z5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&Ef(wlc,5);if(a&2){var c;Df(c=Gf())&&(b.createSloForm=c.first)}},decls:30,vars:17,consts:[[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"],["form","ngForm"],[3,"error"],[1,"edit-field"],
["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"required","bFocus","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","description",3,"ngModel","disabled","ngModelChange"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",
1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5)(6,"span",6),O(7,"Create a new SLO"),G()(),F(8,"div",7)(9,"form",8,9),H(11,"b-error-banner",10),F(12,"div",11)(13,"label",12),O(14,"Name"),G(),F(15,"input",13),J("ngModelChange",function(c){return b.sloUnderEdit.setName(c)}),G()(),F(16,"div",11)(17,"label",14),O(18,"Description"),G(),F(19,"textarea",15),J("ngModelChange",function(c){return b.sloUnderEdit.setDescription(c)}),O(20,"        "),
G()(),F(21,"div",11)(22,"slo-elements-picker",16),J("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),G()(),F(23,"p",17),O(24," Access controls may be defined once the slo is created. "),G(),F(25,"div",18)(26,"b-button",19),J("onAction",function(){return b.save()}),O(27," Save "),G(),F(28,"b-button",20),J("onAction",function(){return b.revertChanges()}),O(29," Revert changes "),G()()()()());a&2&&(B(9),pe("show-errors",b.error),
B(2),E("error",b.error),B(1),pe("bv2-edit-resource-readonly",b.isSaving),B(3),E("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.getName())("disabled",b.isSaving),B(1),pe("bv2-edit-resource-readonly",b.isSaving),B(3),E("ngModel",b.sloUnderEdit.getDescription())("disabled",b.isSaving),B(3),E("isDisabled",!1)("collection",at(b.sloUnderEdit)),B(4),E("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),
B(2),E("disabled",!xlc(b)))},dependencies:[oO,cZ,d_,wy,Mg,py,qy,Gy,vy,ty,tH,A_],encapsulation:2});
var $5=function(){this.nextPanelId_=1};$5.\u0275fac=function(a){return new (a||$5)};$5.\u0275prov=hc({token:$5,factory:$5.\u0275fac,providedIn:"root"});
var a6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da){qI.call(this);this.cdr=a;this.paths=b;this.bLocation=c;this.$log=d;this.analytics=e;this.issueApi=f;this.userApi=h;this.bookmarkGroupsApi=k;this.hotlistApi=q;this.butterBar=u;this.pageTitle=y;this.dashboards=D;this.routeParams=I;this.currentSearch=L;this.userAccess=S;this.errorHandler=X;this.statusMessages=ka;this.appEvents=ha;this.hotlistFridge=ra;this.issueFridge=Da;this.ANALYTICS_CATEGORY="dashboard";this.panels=[];this.hotlistChoices=
[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.userEmail=N.getUserEmail();this.groupId=I.groupId||null};U(a6,qI);a6.\u0275dir=qI.\u0275dir;
a6.prototype.ngOnInit=function(){var a=this;this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){ylc(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){zlc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){zlc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){zlc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){zlc(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.currentSearch.clear()};var j1a=function(a,b){var c=b.selectedIssues;if(a=Alc(a,b.panelId))a.selectedIssues=null!=c?c:[]},i1a=function(a,b,c){b.focusedRowIndex=c;if(null!=c)for(a=r(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},Alc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},Blc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=a6.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Hi(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;io(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");yK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);yK(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;yK(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.loadHotlists=function(a){var b=this,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;xa(d.hotlists);for(var e=r(d.hotlistId||[]),f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]?d.hotlists.push(this.hotlistMap[f]):c.get(f)?c.get(f).push(d):c.set(f,[d])}a={};c=r(c);for(d=c.next();!d.done;a={$jscomp$loop$prop$issueRows$1740:a.$jscomp$loop$prop$issueRows$1740},d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.$jscomp$loop$prop$issueRows$1740=e,this.hotlistApi.get(d).then(function(h){return function(k){b.hotlistFridge.announce(k);
for(var q=r(h.$jscomp$loop$prop$issueRows$1740),u=q.next();!u.done;u=q.next())u.value.hotlists.push(k);b.addHotlist(k);b.cdr.detectChanges()}}(a)).catch(function(h){403!==h.status&&b.errorHandler.errorHandler(null,h)})};
g.sendBulkEditRequest=function(a){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(this.panels),e=d.next();!e.done;e=d.next()){e=r(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=c}this.cdr.detectChanges();yK(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(c?"read":"unread")+"...",0);return qL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){yK(b.butterBar,"Issues marked "+
(c?"read":"unread")+".");for(var q=r(b.panels),u=q.next();!u.done;u=q.next()){u=r(u.value.selectedIssues);for(var y=u.next();!y.done;y=u.next()){var D=void 0;y.value.lastViewedTime=null!=(D=k)?D:null}}}).catch(function(k){for(var q=r(b.panels),u=q.next();!u.done;u=q.next()){u=r(u.value.selectedIssues);for(var y=u.next();!y.done;y=u.next())y=y.value,y.isRead=!!y.lastViewedTime&&y.lastViewedTime>=y.majorModifiedTime}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=
EQb(a).map(function(k){return k.fieldName});io(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};yK(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h).then(function(k){for(var q=r([].concat(v(b.searchPanels),v(b.hotlistPanels))),u=q.next();!u.done;u=q.next()){u=u.value;var y=k;if(u.searchResults){u.searchResults=u.searchResults.clone();for(var D=0,I=r(u.searchResults.issues),N=I.next();!N.done;N=I.next()){N=N.value;if(y.affectedIssues[N.issueId]){var L=
y.affectedIssues[N.issueId];L=iLb(L,y.componentMap[Number(sa(L.snapshot).componentId)]);L.selected=N.selected;u.searchResults.issues[D]=L;u.resultsLoaded.emit([u.searchResults.issues[D]])}D++}}}k.errors&&k.errors.length?(q=Ri(k.errors,"issueId"),zK(b.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),io(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=IQb(b.statusMessages,h))?yK(b.butterBar,k):yK(b.butterBar,"Saved "+FQb(a).length+" issue(s).")}).catch(function(k){b.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this;return this.bookmarkGroupsApi.get(this.groupId).then(function(b){mK(a.userAccess,"admin","bookmarkGroups/"+b.bookmarkGroupId).then(function(c){a.isAdmin=c;a.cdr.detectChanges()});a.pageTitle.setTitle(b.name);return b},function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)})};var ylc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return Clc(a,c,0===d?0:void 0)})};
a6.prototype.removePanel=function(a){var b=this,c=Alc(this,a);if(null!=c){yK(this.butterBar,"Saving changes...",0);a=Ii(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!Dlc(b,c,e)});Elc(this,a)}};
var zlc=function(a,b,c){b=Blc(a,b);if(void 0!==b){var d=a.panels[b];c=c(b);if(c>=a.panels.length||0>c)a.$log.warn("Trying to move panel "+d.panelId+" to "+c);else{b=Ii(a.bookmarkGroup);var e,f,h=null==(e=a.bookmarkGroup)?void 0:null==(f=e.item)?void 0:f.findIndex(function(k){return Dlc(a,d,k)});void 0!==h&&(qaa(b.item,h,c),Elc(a,b))}}},Elc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Flc(a,a.bookmarkGroup.item);yK(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},Dlc=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId==b.resourceId;case "SAVED_SEARCH":return c.savedSearchId==b.resourceId;default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},Glc=function(a,b){return a.panels.find(function(c){return Dlc(a,c,b)})},Clc=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";e=b.hotlistId;break;case "SAVED_SEARCH":d="SAVED_SEARCH";e=
b.savedSearchId;break;default:a.$log.warn("Unsupported item: "+b)}a=a.dashboards;b=a.nextPanelId_;a.nextPanelId_++;return{panelId:b,resourceId:e,type:d,focusedRowIndex:null!=c?c:null,selectedIssues:[]}},Flc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=Glc(a,c))?d:Clc(a,c)})};
a6.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId,userLogin:this.userEmail}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)}):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)})};
a6.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};a6.\u0275fac=function(a){return new (a||a6)(C(mI),C(LK),C(KK),C(AK),C(IM),C(fK),C(cL),C(PM),C(XK),C(xK),C(YN),C($5),C(SR),C(qH),C(GN),C(lK),C(BK),C(FR),C(FK),C(iL),C(oL))};
a6.\u0275cmp=w({type:a6,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(Ef(ZZ,5),Ef(OZ,5));if(a&2){var c;Df(c=Gf())&&(b.searchPanels=c);Df(c=Gf())&&(b.hotlistPanels=c)}},features:[Je([mI]),ee],decls:9,vars:5,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"hotlistChoices","panels","onSave","onCreateHotlist","onLoadHotlist"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[4,"ngIf"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"bv2-dashboard-title"],
[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-dashboard-title-text"],["aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"ngSwitch"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first",
"last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded",4,"ngSwitchCase"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","focusedRowIndexChange","selectionChange","resultsLoaded"]],
template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Dashboard"),G(),F(2,"div",1)(3,"div",2),O(4,"Bookmark groups dashboard"),G(),F(5,"b-dashboard-controls",3),J("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),G()(),F(6,"div",4),M(7,h1a,8,3,"div",5),M(8,m1a,3,3,"div",6),G());a&2&&(B(5),E("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(1),E("bFocus",!0),B(1),E("ngIf",
b.bookmarkGroup),B(1),E("ngForOf",b.panels))},dependencies:[TX,aN,ZZ,OZ,Kx,Gx,Mx,Nx,d_,wF],encapsulation:2});var b6=function(){};b6.\u0275fac=function(a){return new (a||b6)};b6.\u0275mod=xc({type:b6});b6.\u0275inj=ic({imports:[UX,MN,$Z,PZ,ay,e_,gH]});
var Hlc=["editBookmarkGroupItemsContainer"],Ilc=["bookmarkGroupName"],Rs=function(a){return{"bv2-edit-resource-readonly":a}},N1a=function(a){return{displayText:"Admins",values:a}},M1a=function(a){return[a]},c6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra){qI.call(this);var Da=this;this.routeParams=a;this.location=b;this.butterBar=c;this.accessPolicyApi=d;this.userApi=e;this.bookmarkGroupsApi=f;this.hotlistApi=h;this.paths=k;this.appHistory=q;this.pageTitle=u;this.accessPolicyConverter=y;this.userAccess=
D;this.errorHandler=N;this.appEvents=S;this.snackBar=X;this.confirmationDialog=ka;this.cdr=ha;this.documentationLinks=ra;this.selectedTabIndex=0;this.isAdmin=this.isArchiving=this.isUpdating=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.selectedHotlistIds=[[]];this.userHotlists=[];this.userSavedSearches=null;this.savedSearchChoices=[];this.currentUserEmail=L.getUserEmail();this.accessPolicyUnderEdit=ET();this.flattenedAccessPolicy=ET();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);Jlc(this);Klc(this);Promise.all([a,b]).then(function(){var Ja;null==(Ja=Da.bookmarkGroupNameInput)||Ja.nativeElement.focus()});this.subscriptions.add(WY(I,function(){return Da.hasUnsavedChanges()},!1));I=function(){Jlc(Da)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(I));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(I));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){Klc(Da)}))};
U(c6,qI);c6.\u0275dir=qI.\u0275dir;g=c6.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};g.back=function(){P_(this.appHistory)};g.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};g.isSaving=function(){return this.isUpdating||this.isArchiving};
g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!Hi(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!Hi(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};
g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Ii(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[Llc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];d6(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Ii(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};
g.saveMetadata=function(){this.validate()&&(Ql(this.bookmarkGroupUnderEdit.ownerUser)!==Ql(this.bookmarkGroup.ownerUser)?this.openConfirmationDialog("Change bookmark group owner",Tn("Are you sure you want to transfer ownership of this bookmark\n              group to "+Ql(this.bookmarkGroupUnderEdit.ownerUser)+"?\n              You will no longer have permissions to edit it."),this.doSaveMetadata):this.doSaveMetadata())};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change bookmark group admins",Tn("Are you sure you want to remove yourself from the admins?\n                  You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.validate=function(){if(""===this.bookmarkGroupUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.archive=function(){var a=this;this.openConfirmationDialog("Archive bookmark group",Tn("Do you want to archive this bookmark group?"),function(){Mlc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",Tn("Do you want to unarchive this bookmark group?"),function(){Mlc(a,"unarchive")})};
g.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});Nlc(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=GT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);zK(this.butterBar,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=FT(c);a.accessPolicyUnderEdit=Ii(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var Mlc=function(a,b){var c=Ii(a.bookmarkGroup);"archive"===b?(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){"archive"===b?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});Nlc(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
c6.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){Nlc(b,c);b.selectedHotlistIds=[Llc(b.bookmarkGroup.item)];d6(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var Nlc=function(a,b){a.bookmarkGroup=b;a.bookmarkGroup.item||(a.bookmarkGroup.item=[]);a.bookmarkGroupUnderEdit=Ii(a.bookmarkGroup)};
c6.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=FT(c);b.accessPolicyUnderEdit=Ii(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};c6.prototype.loadUserAccess=function(a){var b=this;return mK(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var Jlc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},Klc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;d6(a);a.cdr.detectChanges()})},d6=function(a){if(a.userSavedSearches&&null!=a.bookmarkGroupUnderEdit){var b=Olc(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return-1==b.indexOf(c.searchId)})}},
q1a=function(a,b){var c=Number(b);Aa(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});Plc(a,c);var d;null==(d=a.editBookmarkGroupItemsContainer)||d.nativeElement.focus()},s1a=function(a,b){Aa(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});d6(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},F1a=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:ph(b.resourceType)}},A1a=function(a,b){for(var c={},d=r(Object.entries(b.newSelectionMap)),e=d.next();!e.done;c={$jscomp$loop$prop$id$1743:c.$jscomp$loop$prop$id$1743},e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.$jscomp$loop$prop$id$1743=Oi(e);f&&!b.oldSelectionMap[c.$jscomp$loop$prop$id$1743]?(D1a(a,c.$jscomp$loop$prop$id$1743),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1743}}(c)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[c.$jscomp$loop$prop$id$1743]&&!f&&(Plc(a,c.$jscomp$loop$prop$id$1743),Aa(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1743}}(c)))}},D1a=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},Plc=function(a,b){za(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},w1a=function(a,b){-1===Olc(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)&&
a.bookmarkGroupUnderEdit.item.push({name:b.name,resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){d6(a)})},Olc=function(a){return a?Ri(a,"savedSearchId"):[]},Llc=function(a){return a?Ri(a,"hotlistId"):[]},B1a=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)},
C1a=function(a,b){var c=b.hotlistId;a.snackBar.open("Loading hotlist "+c);return a.hotlistApi.get(c).then(function(d){a.userHotlists.push(d);b.successCallback(d);return d},b.errorCallback)};c6.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+")";default:ph(a.resourceType)}};
c6.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};c6.\u0275fac=function(a){return new (a||c6)(C(SR),C(KK),C(xK),C(ZN),C(cL),C(PM),C(XK),C(LK),C(O_),C(YN),C(DT),C(lK),C(VY),C(BK),C(qH),C(FK),C(uK),C(RM),C(mI,2),C(kP))};
c6.\u0275cmp=w({type:c6,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(Ef(Hlc,5),Ef(Ilc,5),Ef(WW,5,sd));if(a&2){var c;Df(c=Gf())&&(b.editBookmarkGroupItemsContainer=c.first);Df(c=Gf())&&(b.bookmarkGroupNameInput=c.first);Df(c=Gf())&&(b.tabs=c)}},features:[Je([mI]),ee],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button",
"","color","primary",3,"disabled","click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary",3,"disabled","click"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type",
"text","id","bookmark-group-name","required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["bookmarkGroupName",""],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModel","disabled","ngModelChange"],[4,"ngIf","ngIfElse"],["bookmarkItems",""],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange",
"isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"resource-archived"],["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"],["editBookmarkGroupItemsContainer",""],["class","bv2-bookmark-item-chip",4,"ngFor","ngForOf"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"selectedHotlistIds",
"choices","checkEditAcl","onApply","onCreate","onLoad"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"showGroups","allowStarring","itemSelect"],["class","edit-bookmark-group-saved-search-picker",4,"ngIf"],[1,"bv2-bookmark-item-chip"],["class","bv2-saved-search-chip b-chip yellow split",4,"ngIf"],["class","edit-bookmark-group-none-select",4,"ngIf"],[3,"id","removeHotlist"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"left","interactive",3,"href","matTooltip"],
["role","button","tabindex","0",1,"right","interactive",3,"matTooltip","click","keydown.enter","keydown.space"],[1,"edit-bookmark-group-none-select"],[1,"edit-bookmark-group-saved-search-picker"],["for","add-from-saved-searches-button"],["id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"gmat-button","medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],["svgIcon","arrow-dropdown","color","primary"],["savedSearchMenu",
"matMenu"],["matMenuContent",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-bookmark-group-view-items"],[4,"ngFor","ngForOf"],[3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",
4),G(),M(5,n1a,2,1,"button",5),M(6,o1a,2,1,"button",5),G()()(),F(7,"div",6),M(8,O1a,48,40,"ng-container",7),G());a&2&&(B(5),E("ngIf",b.isAdmin&&!b.isArchived()),B(1),E("ngIf",b.isAdmin&&b.isArchived()),B(2),E("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[Jx,Kx,Gx,wF,FB,YW,WW,cZ,fY,pX,pN,hF,Mg,py,Gy,vy,mF,kF,pF,jF,SY],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-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}\n/*# sourceMappingURL=edit_bookmark_group.css.map */"]});
var lhb=function(a,b){var c=b.permissions,d=b.retentionState,e=b.isComponentAdmin;if(b.isInternal){if("INDEFINITE"===b.retentionOverride)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()}}}},khb=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},mhb=function(a,b){var c=!b.isArchived,d=c?"Archive issue":"Unarchive issue";return{type:"action",label:d,title:d+' (requires "issue writer" access)',icon:"archive_24px",disabled:!b.permissions.writer,
action:function(){a.submitArchivalState(c)}}},Qlc=function(a,b){if(b.isInternal&&!b.isDeleted&&"EXTERNAL_PUBLIC"===b.accessLevel)return{type:"action",label:"Mark as spam...",title:'Mark as spam... (requires "issue admin" access)',icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};
var Ss=function(a){Z.call(this,a,-1,Rlc)};U(Ss,Z);Ss.prototype.getFilename=function(){return V(this,1)};Ss.prototype.setFilename=function(a){l(this,1,a)};var Rlc=[2];Ss.prototype.toObject=function(){return Slc(void 0,this)};var Slc=function(a,b){if(null!=b){var c={filename:n(p(b,1)),lineNumberList:n(lb(b,2)),changeNumber:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Ts=function(a){Z.call(this,a,-1,Tlc)};U(Ts,Z);var Tlc=[2];Ts.prototype.toObject=function(){return Ulc(void 0,this)};var Ulc=function(a,b){if(null!=b){var c={packageName:n(p(b,1)),fileMentionSetList:Eb(tb(b,Ss,2),Slc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Wlc=function(a){Z.call(this,a,-1,Vlc)};U(Wlc,Z);var Vlc=[3];Wlc.prototype.toObject=function(){var a=null!=this?{totalMentions:n(p(this,1)),truncated:n(Xo(this,2)),packageMentionSetList:Eb(tb(this,Ts,3),Ulc)}:void 0;return a};Wlc.messageId="b.MentionSearchResult";
var e6=function(a){this.executor=a};e6.\u0275fac=function(a){return new (a||e6)(t(iI))};e6.\u0275prov=hc({token:e6,factory:e6.\u0275fac,providedIn:"root"});
var f6=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},Xlc=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=AJb(a.refreshMonitor,(0,T.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:Wlc}).then(S1a).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(dg({loadingState:"LOADING",link:c}))).pipe(bg({refCount:!0,
bufferSize:1})));return a.cachedEntry};f6.prototype.mentionsLoadingStateTooltipText=function(a){switch(a.loadingState){case "LOADING":return"Loading...";case "OK":var b;return"This issue is referenced by "+(null==(b=a.mentions)?void 0:b.totalMentions)+" TODO(s) from Squeegee";default:return"Could not be read at this time."}};
f6.prototype.displayPackageNames=function(a){var b;a=null==(b=a.mentions)?void 0:b.packageMentionSet;var c;return 1<(null==a?void 0:a.length)||"piper"!==(null==a?void 0:null==(c=a[0])?void 0:c.packageName)};f6.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};f6.prototype.trackSqueegeeClick=function(){io(this.analytics,"codeMentions","clickSqueegeeLink")};f6.\u0275fac=function(a){return new (a||f6)(t(e6),t(kL),t(IM))};f6.\u0275prov=hc({token:f6,factory:f6.\u0275fac,providedIn:"root"});
var Ylc=new od("DevopsGraphLogger",{providedIn:"root",factory:function(){return Vk}}),Zlc=new od("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return ef(function(b){switch(b.nextAddress){case 1:return Ut(b,2),ff(b,MAb(),4);case 4:a=b.yieldResult;Vt(b,3);break;case 2:return Wt(b),b.return();case 3:return Ut(b,5),ff(b,a.loadGraph(),7);case 7:Vt(b,6);break;case 5:return Wt(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});
var $lc=function(a){return["PROD","NIGHTLY"].includes(a)?"production":"autopush"},g6=function(a,b,c,d){var e=this;this.session=a;this.theme=b;this.logger=c;this.graphBuilder=d;this.open$=new T.Subject;this.close$=new T.Subject;this.getContainer=function(){return document.getElementById("graph-sidebar-host")};this.onGraphClose=function(){var f=e.getContainer();null!=f&&(f.classList.remove("open"),e.close$.next())};this.onGraphOpen=function(){var f=e.getContainer();null!=f&&(f.classList.add("open"),
e.open$.next())};this.init()};
g6.prototype.init=function(){var a=this,b,c,d,e,f;return ef(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():ff(h,a.graphBuilder,2);c=h.yieldResult;d=$lc(a.session.getEnvironmentType());if(e=c.createService({environment:d}))f=a.theme.clientDarkmodeSubject.getValue(),a.graphService=e,a.graphController=e.createController({element:b,onClose:a.onGraphClose,onOpen:a.onGraphOpen,theme:f?"dark":void 0}),a.theme.clientDarkmode$.subscribe(function(k){var q;null==
(q=a.graphController)||q.setTheme(k?"dark":"light")});gf(h)})};var amc=function(a,b){var c;return ef(function(d){switch(d.nextAddress){case 1:return Ut(d,2),ff(d,a.init(),4);case 4:return null==a.graphService?d.return(new Set):ff(d,a.graphService.getAvailableIssueContexts(b),6);case 6:return d.return(d.yieldResult);case 5:Vt(d,0);break;case 2:return c=Wt(d),a.logger(c),d.return(new Set)}})};
g6.prototype.openSidebar=function(a,b){var c=this,d;return ef(function(e){switch(e.nextAddress){case 1:return ff(e,c.init(),2);case 2:if(!c.graphController)return e.return();Ut(e,3);return ff(e,c.graphController.openIssueContext(a,b),5);case 5:Vt(e,0);break;case 3:d=Wt(e),c.logger(d),gf(e)}})};
g6.prototype.close=function(){var a=this,b;return ef(function(c){switch(c.nextAddress){case 1:return ff(c,a.init(),2);case 2:if(!a.graphController)return c.return();Ut(c,3);return ff(c,a.graphController.close(),5);case 5:Vt(c,0);break;case 3:b=Wt(c),a.logger(b),gf(c)}})};g6.\u0275fac=function(a){return new (a||g6)(t(qH),t(LO),t(Ylc),t(Zlc))};g6.\u0275prov=hc({token:g6,factory:g6.\u0275fac,providedIn:"root"});
var bmc={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},h6=function(a,b){this.data=a;this.paths=b;this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=bmc};h6.\u0275fac=function(a){return new (a||h6)(C(aC),C(LK))};
h6.\u0275cmp=w({type:h6,selectors:[["b-issue-archive-dialog"]],decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["href","http://go/b-issue-archive","target","_blank"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium",3,"matDialogClose"],["mat-flat-button","","color","primary","cdkFocusInitial","",1,"gmat-button","medium",3,"matDialogClose"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"Archive with all descendant issues?"),G(),
F(2,"div",1),O(3),H(4,"br")(5,"br"),F(6,"a",2),O(7,"View all descendant issues"),G(),H(8,"br"),F(9,"a",3),O(10,"Learn more"),G()(),F(11,"div",4)(12,"button",5),O(13,"Cancel"),G(),F(14,"button",5),O(15," Just this one "),G(),F(16,"button",6),O(17," Archive all "),G()());a&2&&(B(3),Ge(" 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),De("href",b.descendantIssuesUrl,
Qd),B(6),E("matDialogClose",b.ActionType.CANCEL),B(2),E("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),E("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[FB,dC,eC,fC,gC],encapsulation:2});var i6=function(a,b,c,d,e,f,h,k,q){this.issueApi=a;this.dialog=b;this.confirmationDialogService=c;this.issueRelationshipsFridge=d;this.issueFridge=e;this.eventsForIssueFridge=f;this.paths=h;this.butterBar=k;this.editIssueService=q};
i6.prototype.submitArchivalState=function(a,b){var c=this;return ef(function(d){if(1==d.nextAddress)return b?ff(d,c.archive(a),5):ff(d,c.editIssueService.unarchive(a),0);mt(c.issueFridge,a);mt(c.eventsForIssueFridge,a);gf(d)})};
i6.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,u,y,D;return ef(function(I){if(1==I.nextAddress)return ff(I,Promise.all([b.getDescendants(a),(0,T.firstValueFrom)(b.issueFridge.watch(a))]),2);c=I.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;u=q.childToParents;y=q.completeResult;D=[].concat(v(u.keys()));u.set(a,k.parentIssueIds||[]);return 0===D.length?I.return(cmc(b,a,u)):y?I.return(dmc(b,a,D,u)):I.return(emc(b,a,u))})};
var dmc=function(a,b,c,d){var e,f,h;return ef(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},ff(k,(0,T.firstValueFrom)(RB(a.dialog.open(h6,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(fmc(a,[b].concat(v(c)),d));case "ARCHIVE_ONE":return k.return(cmc(a,b,d));case "CANCEL":return k.return();default:return k.return(ph(h))}})},fmc=function(a,b,c){var d=[{issueIds:b.map(Number),actions:[{fieldName:"isArchived",value:"true"}]}];
gmc(a,c);yK(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){yK(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){zK(a.butterBar,e);hmc(a,c)})},cmc=function(a,b,c){gmc(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){yK(a.butterBar,"Archived successfully.")}).catch(function(d){zK(a.butterBar,d);hmc(a,c)})},emc=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues\uff1f",
content:Wn(Tn("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."),Vn("BR",{}),Vn("BR",{}),Vn("A",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Vn("BR",{}),Vn("A",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")),cancelButtonText:"Cancel",confirmButtonText:"Just this one",onConfirm:function(){cmc(a,
b,c).then(d)},onDismiss:d})})},gmc=function(a,b){b=r(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;d=r(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},hmc=function(a,b){b=[].concat(v(b.values())).flat();b=r(b);for(var c=b.next();!c.done;c=b.next())mt(a.issueRelationshipsFridge,c.value)};
i6.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,u,y,D,I,N;return ef(function(L){if(1==L.nextAddress)return ff(L,(0,T.firstValueFrom)(lKb(b.issueRelationshipsFridge,a)),2);c=L.yieldResult;d=c.results;e=!0;f=new Map;h=r(d);for(k=h.next();!k.done;k=h.next()){q=k.value;u=r(q.relatedChildren);for(y=u.next();!y.done;y=u.next())D=y.value,I=void 0,N=null!=(I=f.get(D.targetIssueId))?I:[],N.push(q.issueId),f.set(D.targetIssueId,N);q.totalChildCount===q.relatedChildren.length||(e=!1)}return L.return({childToParents:f,
completeResult:e})})};i6.\u0275fac=function(a){return new (a||i6)(t(fK),t(cC),t(RM),t(VL),t(oL),t(DL),t(LK),t(xK),t(fS))};i6.\u0275prov=hc({token:i6,factory:i6.\u0275fac,providedIn:"root"});
var j6=function(a,b,c,d,e,f,h,k,q){qI.call(this);var u=this;this.issueDetailsBrain=a;this.issuePagination=b;this.issueFridge=c;this.componentFridge=d;this.issueInteractionsTracking=e;this.bLocation=f;this.paths=h;this.refreshMonitor=k;this.butterBar=q;this.internalSearchResults$=new T.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(Sf(),eg(function(y){return y?y.changed$:(0,T.of)(null)}));this.issueIds$=this.searchResults$.pipe(R(function(y){var D;return null!=(D=null==
y?void 0:y.issues.map(function(I){return I.id}).map(Xn))?D:[]}),Sf(Hi));this.issues$=this.issueIds$.pipe(eg(function(y){return(0,T.combineLatest)(y.map(function(D){return u.issueFridge.watch(D,{trustUncertainMemory:!0})}))}),eg(function(y){return(0,T.combineLatest)(y.map(function(D){return u.componentFridge.watch(String(null==D?void 0:D.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(R(function(I){return{issue:D,component:I}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(R(function(y){var D;return null!=(D=null==y?void 0:y.totalText)?D:""}));this.backNavigationLabel$=this.searchResults$.pipe(R(function(y){return(null==y?0:y.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,T.combineLatest)([this.searchResults$,this.issueId$]).pipe(R(function(y){var D=r(y);y=D.next().value;D=D.next().value;var I;return null!=(I=null==y?void 0:KM(y,Number(D)))?I:-1}));this.hasPreviousIssue$=(0,T.combineLatest)([this.searchResults$,
this.issueId$]).pipe(R(function(y){var D=r(y);y=D.next().value;D=D.next().value;var I;if(I=D)null==y?y=0:(D=KM(y,Number(D)),y=null==D||-1===D?!1:D>y.startIndex||1<y.params.page),I=y;return!!I}));this.hasNextIssue$=(0,T.combineLatest)([this.searchResults$,this.issueId$]).pipe(R(function(y){var D=r(y);y=D.next().value;D=D.next().value;var I;if(I=D)null==y?y=0:(D=KM(y,Number(D)),y=null==D||-1===D?!1:D<y.endIndex||y.params.page<y.numPages),I=y;return!!I}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){imc(u)}));
this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(y){u.issueId=y;imc(u)}));this.subscriptions.add(this.issues$.subscribe(function(y){var D=u.internalSearchResults$.value;D&&kLb(D,y.filter(function(I){var N=I.component;return I.issue&&N}))}))};U(j6,qI);j6.\u0275dir=qI.\u0275dir;
var Vs=function(a){var b,c,d=null!=(c=null==(b=a.internalSearchResults$.value)?void 0:b.params.returnUrl)?c:"";a.issueInteractionsTracking.trackNavigation(""===d?"home":"up");a.bLocation.hash("");a.bLocation.url(d)},Xs=function(a){var b=Kk(a.hasNextIssue$),c=Kk(a.issueIndex$);b&&c&&jmc(a,c+1)},Ws=function(a){var b=Kk(a.hasPreviousIssue$),c=Kk(a.issueIndex$);b&&c&&jmc(a,c-1)},imc=function(a){var b,c,d,e;ef(function(f){if(1==f.nextAddress)return b=function(){},ff(f,sLb(a.issuePagination).catch(b),2);
c=f.yieldResult;a.internalSearchResults$.next(null!=(d=c)?d:null);if(!c||!a.issueId)return f.return();e=KM(c,Number(a.issueId));return-1===e?f.jumpTo(0):ff(f,tLb(a.issuePagination,e).catch(b),0)})},jmc=function(a,b){tLb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){zK(a.butterBar,"Can't find issue id for index '"+b+"'")})};j6.\u0275fac=function(a){return new (a||j6)(t(cO),t(LM),t(oL),t(HJ),t(ZR),t(KK),t(LK),t(kL),t(xK))};
j6.\u0275prov=hc({token:j6,factory:j6.\u0275fac,providedIn:"root"});
var k6=function(a,b,c,d,e,f,h,k){qI.call(this);var q=this;this.activeSession=a;this.analytics=b;this.butterBar=c;this.userApi=d;this.hotlistApi=e;this.errorHandler=f;this.appEvents=h;this.hotlistFridge=k;this.hotlistMap={};this.hotlists=[];this.selectedHotlistIds=[[]];this.selectableHotlistsChanged$=new T.ReplaySubject(1);this.subscriptions.add(zJb(this.hotlistFridge).subscribe(function(u){u=r(u);for(var y=u.next();!y.done;y=u.next())q.addHotlist(kmc(y.value));q.selectableHotlistsChanged$.next()}))};
U(k6,qI);k6.prototype.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a);lmc(this,a)};var lmc=function(a,b){null!=a.issue&&null!=a.issue.hotlistId&&(b.selected=(a.issue.hotlistId||[]).includes(b.hotlistId))},mmc=function(a){a.selectedHotlistIds=[[].concat(v(a.issue.hotlistId||[]))];for(var b=r(a.hotlists),c=b.next();!c.done;c=b.next())lmc(a,c.value)};
k6.prototype.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback,e=a.errorCallback;io(this.analytics,"baseIssue","createHotlist");yK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(f){f=kmc(f);yK(b.butterBar,"Hotlist "+c+" created successfully");b.addHotlist(f);b.appEvents.hotlistCreated.next();d(f);b.selectableHotlistsChanged$.next()}).catch(function(){e();b.selectableHotlistsChanged$.next()})};
k6.prototype.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback,e=a.errorCallback;if(this.hotlistMap[c])return lmc(this,this.hotlistMap[c]),Promise.resolve(this.hotlistMap[c]);this.hotlistMap[c]={hotlistId:c};return this.hotlistApi.get(c).then(function(f){f=kmc(f);b.addHotlist(f);d(f);b.selectableHotlistsChanged$.next();return f},function(){var f=b.hotlistMap[c];fh(b.hotlistMap,c);za(b.hotlists,f);e();b.selectableHotlistsChanged$.next()})};
k6.\u0275fac=function(a){return new (a||k6)(C(qH),C(IM),C(xK),C(cL),C(XK),C(BK),C(FK),C(iL))};k6.\u0275dir=w({type:k6,features:[ee]});var kmc=function(a){a=Ii(a);a.selected=!1;return a};
var l6=function(){};l6.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,T.concat)((0,T.defer)(function(){return(0,T.of)(document.getElementById(a))}),GKa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(R(function(){return document.getElementById(a)}))).pipe(uf(el),Tf())};l6.\u0275fac=function(a){return new (a||l6)};l6.\u0275prov=hc({token:l6,factory:l6.\u0275fac,providedIn:"root"});
var m6=function(a){this.idWatch=a},nmc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(Tf(),R(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};m6.\u0275fac=function(a){return new (a||m6)(t(l6))};m6.\u0275prov=hc({token:m6,factory:m6.\u0275fac,providedIn:"root"});
var n6=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new T.ReplaySubject(1);var e;this.issueId=Number(null!=(e=this.routeParams.issueId)?e:"0")};
n6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(nmc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(fg(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};n6.prototype.ngOnDestroy=function(){this.destroyed$.next()};
n6.\u0275fac=function(a){return new (a||n6)(t(m6),t(LK),t(SR),t(y5))};n6.\u0275prov=hc({token:n6,factory:n6.\u0275fac});
var omc=function(a){Z.call(this,a)};U(omc,Z);omc.prototype.toObject=function(){var a=null!=this?{warningHeader:n(p(this,1)),warning:n(p(this,2)),isAllowed:n(Xo(this,3)),isExternalMove:n(Xo(this,4))}:void 0;return a};omc.messageId="b.CompareComponentAccessResponse";
var o6=function(a){this.executor=a};o6.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:omc}).then(Ara)};o6.\u0275fac=function(a){return new (a||o6)(t(iI))};o6.\u0275prov=hc({token:o6,factory:o6.\u0275fac,providedIn:"root"});
var p6=function(a,b,c,d,e,f){this.issueInteractionsTracking=a;this.issueFridge=b;this.butterBar=c;this.compareComponentAccess=d;this.matDialogService=e;this.editIssueService=f},M5a=function(a,b,c){var d,e,f,h,k;return ef(function(q){switch(q.nextAddress){case 1:return b=String(b),$R(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?ff(q,(0,T.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return zK(a.butterBar,"Could not load issue "+b),q.return();e=d.snapshot[0].componentId;
f=c.componentId;return e===f?q.return():ff(q,a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return ff(q,pmc(a,h),5);case 5:if(k=q.yieldResult,!k)return q.return();case 4:return q.return(a.editIssueService.updateComponent(b,f,h.isExternalMove))}})},pmc=function(a,b){return new Promise(function(c){RB(a.matDialogService.open(nT,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})).subscribe(function(){c(!1)})})};
p6.\u0275fac=function(a){return new (a||p6)(t(ZR),t(oL),t(xK),t(o6),t(cC),t(fS))};p6.\u0275prov=hc({token:p6,factory:p6.\u0275fac,providedIn:"root"});
var q6=function(a,b,c,d,e,f,h){this.errorHandler=a;this.eventsForIssueFridge=b;this.issueFetchResponseFridge=c;this.issueCommentsService=d;this.issueInteractionsTracking=e;this.butterBar=f;this.editIssueService=h},qmc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h,k;ef(function(q){switch(q.nextAddress){case 1:h=a.editIssueService.savingState(c);if(!e.trim())return zK(a.butterBar,"New comment cannot be empty."),q.return();cS(h,"commentEdit");yK(a.butterBar,
"Saving comment edit...",0);$R(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});Ut(q,2,3);return ff(q,a.issueCommentsService.update(c,d,e,f),5);case 5:yK(a.butterBar,"Comment edit successful.",4E3),1===d?tL(a.issueFetchResponseFridge,c):GJ(a.eventsForIssueFridge,c,function(u){u.events=Ata(u.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:gl(f,Ym)})}),mt(a.eventsForIssueFridge,c);case 3:Xt(q);dS(h,"commentEdit");Yt(q,0);break;case 2:k=Wt(q),DK(a.errorHandler,
k),q.jumpTo(3)}})};q6.\u0275fac=function(a){return new (a||q6)(t(BK),t(DL),t(rL),t(hO),t(ZR),t(xK),t(fS))};q6.\u0275prov=hc({token:q6,factory:q6.\u0275fac,providedIn:"root"});
var rmc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};
var r6=function(a){this.matDialog=a};r6.prototype.show=function(a,b,c){a={width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,audience:b,id:null!=c.unlinkifiedComment?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:tsa(c.formattingMode)}};this.dialog=this.matDialog.open(s6,a);return(0,T.firstValueFrom)(RB(this.dialog))};r6.\u0275fac=function(a){return new (a||r6)(t(cC))};r6.\u0275prov=hc({token:r6,factory:r6.\u0275fac,providedIn:"root"});
var s6=function(a,b,c,d,e){qI.call(this);var f=this;this.activeSession=a;this.origComment=b;this.dialogService=c;this.dialogRef=d;this.MARKDOWN=2;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.newComment=Object.assign({},this.origComment);this.subscriptions.add(WY(e,function(){return!Hi(f.newComment,f.origComment)},!1))};U(s6,qI);s6.\u0275dir=qI.\u0275dir;
s6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(fg(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&smc(a)});this.dialogRef.backdropClick().pipe(fg(this.destroyed$)).subscribe(function(){smc(a)})};var smc=function(a){if(Hi(a.newComment,a.origComment)){var b;null==(b=a.dialogService.dialog)||b.close()}};s6.\u0275fac=function(a){return new (a||s6)(C(qH),C(aC),C(r6),C(QB),C(VY))};
s6.\u0275cmp=w({type:s6,selectors:[["ng-component"]],features:[ee],decls:17,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","issueId","audience","contentChange","onSubmit"],[1,"inline-block",3,"initialValue","change"],[3,"comment","issueId","audience","formattingMode",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button",3,"mat-dialog-close",
"disabled"],[3,"comment","issueId","audience","formattingMode"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1),G(),F(2,"section",1)(3,"p",2),O(4," Editing comments will not permanently remove old ones from database history. "),H(5,"br"),O(6," For deletion of PII or other sensitive content, please "),F(7,"a",3),O(8," file a support request."),G()(),F(9,"b-comment-draft",4),J("contentChange",function(c){return b.newComment.text=c})("onSubmit",function(){if(!Hi(b.newComment,b.origComment)){var c;null==
(c=b.dialogService.dialog)||c.close(b.newComment)}}),G(),F(10,"b-markdown-toggle",5),J("change",function(c){return b.newComment.formattingMode=c}),G(),M(11,T1a,1,4,"b-live-preview",6),G(),F(12,"footer",7)(13,"button",8),O(14," Cancel "),G(),F(15,"button",9),O(16," Save "),G()());a&2&&(B(1),Ie("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),B(6),E("href",b.contentRemovalRequestLink,Qd),B(2),E("content",b.newComment.text)("issueId",b.origComment.issueId)("audience",b.origComment.audience),
B(1),pe("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),E("initialValue",b.origComment.formattingMode),B(1),E("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),B(2),E("mat-dialog-close",void 0),B(2),E("mat-dialog-close",b.newComment)("disabled",!!Hi(b.newComment,b.origComment)))},dependencies:[dC,eC,fC,gC,Gx,FB,MW,LW,gX],encapsulation:2,changeDetection:0});
var t6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra){this.editIssueService=a;this.butterBar=b;this.issuePermissionService=c;this.issueCommentService=d;this.editCommentDialogService=e;this.issueFridge=f;this.matDialogService=h;this.paths=k;this.analytics=q;this.domSafe=u;this.confirmationDialogService=y;this.issueComments=D;this.errorHandler=I;this.issueFetchResponseFridge=N;this.eventsForIssueFridge=L;this.componentFridge=S;this.commentFormatter=X;this.confirmNoAccessService=ka;this.activeSession=
ha;this.appEvents=ra},tt=function(a,b,c){var d,e,f,h;return ef(function(k){if(1==k.nextAddress){b=String(b);d=a.editIssueService.savingState(b);if(d.get("commentEdit"))return k.return();a.butterBar.dismiss();f=null!=(e=a.issuePermissionService.audience())?e:2;return ff(k,a.editCommentDialogService.show(Number(b),f,c),2)}h=k.yieldResult;if(null==h)return k.return();qmc(a.issueCommentService,{issueId:b,newCommentId:h.id,newComment:h.text,newCommentFormattingMode:h.formattingMode});gf(k)})},umc=function(a,
b,c){var d,e,f;return ef(function(h){if(1==h.nextAddress)return c?ff(h,tmc(a,b),2):h.return();if(3!=h.nextAddress)return d={title:"Choose target issue",defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResourceId:Number(b),currentResourceType:"issue"},ff(h,(0,T.firstValueFrom)(RB(a.matDialogService.open(EX,{data:d}))),3);e=h.yieldResult;if(null==(f=e)?0:f.length){var k=e[0],q=a.paths.editIssue(k.resourceId,{template_issue:b,template_comment:c,do_attribution:!0});io(a.analytics,mo.EDIT_ISSUE,
"copyComment",k.relations.join(",")||"NONE");a.domSafe.openInNewTab(q)}gf(h)})},tmc=function(a,b){var c,d,e,f,h,k,q,u,y,D,I,N,L,S,X;return ef(function(ka){if(1==ka.nextAddress)return ff(ka,(0,T.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=ka.nextAddress){c=ka.yieldResult;if(!c)return ka.return([]);e=null!=(d=c.snapshot[0].duplicateIssueId)?d:[];h=null!=(f=c.snapshot[0].blockingIssueId)?f:[];q=null!=(k=c.snapshot[0].blockedByIssueId)?k:[];return ff(ka,(0,T.firstValueFrom)(EJ(a.issueFridge,Hj([].concat(v(e),
v(h),v(q)),Gj))),3)}u=ka.yieldResult;y=new Map(u.map(function(ha){return[ha.issueId,ha]}));D=function(ha){return y.get(ha)};I=q.map(D).filter(el).map(vmc("BLOCKED_BY"));N=h.map(D).filter(el).map(vmc("BLOCKING"));L=e.map(D).filter(el).map(vmc("DUPLICATE"));S=[].concat(v(I),v(N),v(L));X=U1a(S);return ka.return(X)})},xmc=function(a,b,c){var d;return ef(function(e){return 1==e.nextAddress?c?ff(e,BLb(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Tn("Are you sure you want to restore this comment?")}),
2):e.return():(d=e.yieldResult)?ff(e,wmc(a,b,c),0):e.return()})},wmc=function(a,b,c){var d,e;return ef(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();yK(a.butterBar,"Restoring comment...",0);Ut(f,2,3);cS(d,"commentUndelete");return ff(f,a.issueComments.undelete(b,c),5);case 5:yK(a.butterBar,"Comment restored successfully.");case 3:Xt(f);dS(d,"commentUndelete");tL(a.issueFetchResponseFridge,b);mt(a.eventsForIssueFridge,b);
Yt(f,0);break;case 2:e=Wt(f),yK(a.butterBar,"Comment restoration failed."),DK(a.errorHandler,e),f.jumpTo(3)}})},Amc=function(a,b,c,d){var e,f,h,k;return ef(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():ff(q,ymc(a,b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),ff(q,(0,T.firstValueFrom)(RB(a.matDialogService.open(Q3,{width:"560px",data:{commentNumber:c,issueId:Number(b),deletionReasons:f}}))),
3)):(h=q.yieldResult)?ff(q,zmc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},zmc=function(a,b,c,d,e){var f,h;return ef(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Ut(k,2,3);yK(a.butterBar,"Deleting comment...",0);cS(f,"commentDelete");return ff(k,a.issueComments.delete(b,c,d,e),5);case 5:yK(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),mt(a.eventsForIssueFridge,b);case 3:Xt(k);dS(f,"commentDelete");
tL(a.issueFetchResponseFridge,b);Yt(k,0);break;case 2:h=Wt(k),yK(a.butterBar,"Comment deletion failed."),DK(a.errorHandler,h),k.jumpTo(3)}})},ymc=function(a,b){var c,d,e,f,h,k,q,u,y;return ef(function(D){switch(D.nextAddress){case 1:return ff(D,(0,T.firstValueFrom)(a.issueFridge.watch(b,{trustUncertainMemory:!0})),2);case 2:c=D.yieldResult;e=(null==(d=c)?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;D.jumpTo(3);break}return ff(D,(0,T.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=
D.yieldResult;case 3:return h=f,k=new rmc("Other","USER_REQUEST"),"DISABLED"===(null==(q=h)?void 0:q.commentEditState)&&(k.enabled=!1,k.disabledReason="comment editing must be enabled"),u=new rmc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(u.enabled=!1,u.disabledReason="available on Public components"),y=new rmc("Personally Identifiable Information","PII"),D.return([y,u,k])}})},Bmc=function(a,b,c){var d,e;return ef(function(f){if(1==f.nextAddress)return d=
dO(a.issuePermissionService,Tl(c.userPerformingActionUser)),io(a.analytics,mo.RESTRICTED_CONTENT,"updateContentJudgement","comment"),ff(f,a.showContentJudgementDialog({severity:Fl(Gl(c.commentContentVerdict)),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:El(e.contentJudgement.getSeverity())}},tL(a.issueFetchResponseFridge,b),mt(a.eventsForIssueFridge,b),qL(a.issueFridge,
[b],{markRead:!0});gf(f)})};t6.prototype.showContentJudgementDialog=function(a){return(0,T.firstValueFrom)(RB(this.matDialogService.open(j5,{width:"500px",data:a})))};
var Cmc=function(a,b,c){var d;return ef(function(e){if(1==e.nextAddress)return ff(e,(0,T.firstValueFrom)(RB(a.matDialogService.open(n5,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(1===d)})},Dmc=function(a,b,c,d){var e;ef(function(f){if(1==f.nextAddress){if(null==d)return f.return();io(a.analytics,mo.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return ff(f,a.showContentJudgementDialog({severity:Fl(Gl(d.contentVerdict)),resourcePath:"issues/"+b+
"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:El(e.contentJudgement.getSeverity())}},tL(a.issueFetchResponseFridge,b),mt(a.eventsForIssueFridge,b),qL(a.issueFridge,[b],{markRead:!0});gf(f)})};
t6.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,u;ef(function(y){if(1==y.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return y.return();e=T;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=R3;return ff(y,ymc(c,a),3)}return 2!=y.nextAddress?ff(y,f.call(e,RB(k.call(h,q,{width:"560px",data:{deletionReasons:y.yieldResult,attachmentId:b.attachmentId}}))),2):(u=y.yieldResult)?ff(y,sRb(c.editIssueService,a,b,u.value),0):y.jumpTo(0)})};
var Emc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return ef(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.showImplicitAccessIndicator())return q.return(!0);Ut(q,2);return ff(q,(0,T.firstValueFrom)(H1b(a.commentFormatter,{comment:e.value,issueId:c,audience:null!=(f=a.issuePermissionService.audience())?f:2,formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"})),4)}if(2!=q.nextAddress)return h=q.yieldResult,
q.return(LQb(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Wt(q);DK(a.errorHandler,k);return q.return(!1)})},Fmc=function(a){var b;return ef(function(c){return(b=a.issuePermissionService.accessLevel())&&"INTERNAL"===b||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||rH(a.activeSession)?c.return(!0):c.return(BLb(a.confirmationDialogService,{title:"",content:Tn("Commenting on this bug report means your email address will be shared with the team that works on this product.")}))})};
t6.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k;return ef(function(q){if(1==q.nextAddress){c=b.editIssueService.issueCommentDraft(a).comment();d=b.editIssueService.savingState(a);e=b.editIssueService.editableIssue(a);if(!b.issuePermissionService.hasAclToComment()||!QQb(c)||d.get("comment"))return q.return();cS(d,"comment");f=function(){dS(d,"comment")};return ff(q,Emc(b,{issueId:a,componentId:String(e.componentId),comment:c}),2)}if(3!=q.nextAddress)return h=q.yieldResult,h?ff(q,Fmc(b),
3):(f(),q.return());k=q.yieldResult;if(!k)return f(),q.return();io(b.analytics,mo.EDIT_ISSUE,"addComment",2===c.formattingMode?"markdown":"non markdown");return q.return(b.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(a).finally(function(){f();b.appEvents.commentSubmitted.next(Number(a));b.appEvents.scrollToCommentBox.next()}))})};
t6.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return ef(function(q){if(1==q.nextAddress)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=null!=(f=null==(e=d)?void 0:e.getSeverity())?f:1,ff(q,b.showContentJudgementDialog({severity:h,contentJudgement:d,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.userDefinedJudgementForNewContent$.next(k.contentJudgement);gf(q)})};
t6.\u0275fac=function(a){return new (a||t6)(t(fS),t(xK),t(eO),t(q6),t(r6),t(oL),t(cC),t(LK),t(IM),t(mP),t(RM),t(hO),t(BK),t(rL),t(DL),t(HJ),t(KW),t(PR),t(qH),t(FK))};t6.\u0275prov=hc({token:t6,factory:t6.\u0275fac,providedIn:"root"});var vmc=function(a){return function(b){var c,d;return{resourceId:b.issueId,displayText:null!=(c=b.snapshot[0].title)?c:"",status:null!=(d=b.snapshot[0].status)?d:null,relations:[a]}}};
var u6=function(a,b,c){this.editIssueService=a;this.matDialogService=b;this.analytics=c},Z1a=function(a,b){var c,d,e,f,h,k,q;return ef(function(u){if(1==u.nextAddress)return b=String(b),io(a.analytics,mo.ISSUE_PICKER,"click","duplicate"),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResourceId:Number(b),currentResourceType:"issue",componentId:c.componentId,allowMultipleIds:!1},f=(new Date).getTime(),ff(u,(0,T.firstValueFrom)(RB(a.matDialogService.open(EX,
{data:e}))),2);h=u.yieldResult;if(null==(k=h)||!k.length)return c.status=d,u.return();q=(new Date).getTime()-f;io(a.analytics,mo.ISSUE_PICKER,"apply","duplicate",q);eLb(a.analytics,q,"duplicate");io(a.analytics,mo.EDIT_ISSUE,"setCanonicalIssue");return u.return(mRb(a.editIssueService,b,String(h.map(function(y){return y.resourceId})[0])))})};u6.\u0275fac=function(a){return new (a||u6)(t(fS),t(cC),t(IM))};u6.\u0275prov=hc({token:u6,factory:u6.\u0275fac,providedIn:"root"});
var v6=function(a,b,c,d,e,f){qI.call(this);var h=this;this.devopsGraph=a;this.paramsService=b;this.analytics=c;this.butterBar=d;this.router=e;this.route=f;this.id$=kM(this.paramsService,"issueId").pipe(Sf());this.contexts$=this.id$.pipe(eg(function(k){return ef(function(q){return null!=h.devopsGraph.getContainer()&&k?q.return(amc(h.devopsGraph,Number(k)).then(function(u){return{issueId:k,availablePanels:u}})):q.return(void 0)})}),bg({refCount:!1,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(R(function(k){return k?
k.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(R(function(k){return!!k&&0<k.availablePanels.size&&dj()&&null!=h.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(R(function(k){return!!k&&0<k.availablePanels.size&&dj()&&null!=h.devopsGraph.getContainer()&&k.availablePanels.has("deployments")}));this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(k){if(k){k=k.availablePanels;h.track("ingress-view-"+
(0<k.size?"enabled":"disabled"));k.has("deployments")&&h.track("ingress-view-deployments-enabled");k.has("incidents")&&h.track("ingress-view-incidents-enabled");var q=h.paramsService.params.showInsights;q&&("default"===q?0<k.size?h.openSidebar():zK(h.butterBar,"Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):k.has(q)?h.openSidebar(q):zK(h.butterBar,"Could not open "+q+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else h.devopsGraph.close()}));
this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){Gmc(h,null)}))};U(v6,qI);v6.\u0275dir=qI.\u0275dir;v6.prototype.openSidebar=function(a){var b=this,c,d,e,f,h;return ef(function(k){c=Kk(b.contexts$);if(!c)return k.return();d=c;e=d.issueId;f=d.availablePanels;Gmc(b,null!=(h=a)?h:"default");("incidents"===a||!a&&1===f.size&&f.has("incidents"))&&EM.setBooleanAt("g3g.incidentSidebarOpened")(!0);return k.return(b.devopsGraph.openSidebar(Number(e),{panel:a}))})};
v6.prototype.track=function(a){io(this.analytics,"sidebar",a)};var Gmc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};v6.\u0275fac=function(a){return new (a||v6)(t(g6),t(jM),t(IM),t(xK),t(Ik),t(gk))};v6.\u0275prov=hc({token:v6,factory:v6.\u0275fac,providedIn:"root"});
var t2a=function(a,b){return{"bv2-has-canonical":a,"bv2-archived":b}},Hmc={parent:"me"},Imc={voted:!1,starred:!1,notificationSubscription:"UNKNOWN_SUBSCRIPTION",lastViewedTimeMicros:void 0},w6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia,Xa,$a,jc,Va,Ya,Sa,vb,eb,zb,Ib,ec,Ac,se,jd,Ed,eh,GK,Yl){k6.call(this,u,ka,ha,e,f,Ba,Tb,Va);var kc=this;this.cdr=a;this.bLocation=b;this.routerEvents=c;this.issueApi=d;this.codeMentions=h;this.issueService=k;this.paths=q;this.hotkeys=
y;this.componentActions=D;this.bCacheFactory=I;this.userPreferencesManager=N;this.$log=L;this.checkBeforeExit=S;this.routeParams=X;this.draftStore=ra;this.constants=Da;this.pageTitle=Ja;this.domSafe=La;this.attachmentsMember=hb;this.matDialogService=fb;this.devopsGraph=va;this.routePerformance=Ca;this.refreshMonitor=Ia;this.issueDetailsBrain=Xa;this.permissionsFridge=$a;this.issueFetchResponseFridge=jc;this.eventsForIssueFridge=Ya;this.componentFridge=Sa;this.issueRelationshipService=vb;this.element=
eb;this.issueFridge=zb;this.issueArchiveService=Ib;this.editIssueService=ec;this.issueInteractionsTracking=Ac;this.currentSearchResults=se;this.issuePermissionService=jd;this.issueRelationshipsFridge=Ed;this.issueMarkAsDuplicateDialogService=eh;this.issueInsightsSidebarService=GK;this.issueCommentDialogsService=Yl;this.enableG3cWidgetIntegration=sH(this.activeSession,"enableG3cWidgetIntegration");this.enableG3cFeatureHighlighting=sH(this.activeSession,"enableG3cFeatureHighlighting");this.enableWtdmMvpUi=
sH(this.activeSession,"enableWtdmMvpUi");this.codeMentionsEnabled=sH(this.activeSession,"enableCodeMentionsUi");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.newComponent=this.currentComponent=null;this.componentPathInfo$=(0,T.combineLatest)([this.issueDetailsBrain.componentId$,this.issueDetailsBrain.componentPathInfo$]).pipe(R(function(fc){var te=r(fc);fc=te.next().value;te=te.next().value;null!=te?fc=te:fc=fc?{componentPathId:[Number(fc)],
componentPathName:["Component "+fc],allCustomField:[]}:void 0;return fc}));this.frontendIsInternalOrPartner=this.sessionIsInternal||rH(this.activeSession);this.frontendIsInternal=this.sessionIsInternal;this.relatedIssuesCache=this.bCacheFactory.get("edit-issue-controller-related-issues")||this.bCacheFactory.create("edit-issue-controller-related-issues",{capacity:25});this.preferences={showFullHistory:!1,useCodefont:!1,autoCcOnComment:!1};this.editComponent=!1;this.rightSidebarWidth=330;this.rightSidebarMinWidth=
245;this.unStarTooltip=this.starTooltip="";this.voteCount=0;this.issueId=EC(this.routeParams.issueId);this.issueIdString=String(this.issueId);this.issueCommentDraft=this.editIssueService.issueCommentDraft(this.issueIdString);this.ariaIssueTitle="";this.savingState=this.editIssueService.savingState(String(this.issueId));this.quickActions=this.editIssueService.issueQuickActions(String(this.issueId));this.issueStatusQuickAction$=this.quickActions.issueStatusQuickAction$;this.commentLimitReached=!1;this.canonicalIssueId$=
this.issueDetailsBrain.canonicalIssueId$;this.canonicalIssue$=this.issueDetailsBrain.canonicalIssue$;this.codeMentionsState$=sH(this.activeSession,"enableCodeMentionsUi")?Xlc(this.codeMentions,this.issueId):void 0;this.duplicateIssues=[];this.blockingIssues=[];this.blockedByIssues=[];this.parentIssues=[];this.parentIssueIds=[];this.parentChildRelationships$=this.issueRelationshipsFridge.watch(this.issueId);this.childIssuesCount$=this.parentChildRelationships$.pipe(R(function(fc){var te;return null!=
(te=null==fc?void 0:fc.totalChildCount)?te:0}));this.childIssues$=this.parentChildRelationships$.pipe(eg(function(fc){var te;return(0,T.combineLatest)(null!=(te=null==fc?void 0:fc.relatedChildren.map(function(Ki){return kc.issueFridge.watch(Ki.targetIssueId)}))?te:[])}),R(function(fc){return fc.filter(el)}),R(function(fc){return fc.map(function(te){return Jmc(te)})}));this.insightsFeatureTooltipPositions=[vrb];this.relatedIssuesTrayOpen=null;this.events=[];this.blockingIssuesSearchUrl=this.paths.listIssues({q:"blockingid:"+
this.issueId});this.blockedIssuesSearchUrl=this.paths.listIssues({q:"blockedbyid:"+this.issueId});this.childIssuesSearchUrl=this.paths.listIssues({q:"parentid:"+this.issueId});this.issue=new yR;this.isShowAccessDeniedComponent=!1;this.issueMetadata=null;this.issue$=this.issueDetailsBrain.issueJs$;this.events$=this.issueDetailsBrain.eventsJs$;this.componentIds$=(0,T.combineLatest)([this.events$.pipe(R(zta)),this.issue$.pipe(R(Dta))]).pipe(R(jLa),Sf(iLa));this.hotlistIds$=(0,T.combineLatest)([this.events$.pipe(R(Bta)),
this.issue$.pipe(R(Cta))]).pipe(R(jLa),Sf(iLa));this.userHotlists$=SGb(this.hotlistFridge,Hmc).pipe(R(function(fc){return fc.results}));this.issueAndEventHotlists$=this.hotlistIds$.pipe(R(function(fc){return[].concat(v(fc))}),eg(function(fc){return EJ(kc.hotlistFridge,fc)}));this.hotlists$=(0,T.combineLatest)([this.issueAndEventHotlists$,this.userHotlists$]).pipe(R(function(fc){var te=r(fc);fc=te.next().value;te=te.next().value;return[].concat(v(fc),v(te))}),R(LBb(function(fc){return fc.hotlistId})),
R(function(fc){return fc.filter(el)}),gg(function(fc){fc=r(fc);for(var te=fc.next();!te.done;te=fc.next())te=te.value,null!=te&&kc.addHotlist(kmc(te))}),bg({refCount:!0,bufferSize:1}),fg(this.destroyed$));this.onLoad=function(){Kmc(kc)};this.UNKNOWN_SUBSCRIPTION="UNKNOWN_SUBSCRIPTION";this.viewInitialized=!1;this.HOTKEYS=pI;this.onIssueError=function(fc){403===fc.status&&kc.frontendIsInternal?Lmc(kc):kc.errorHandler.errorHandler(null,fc)};this.onEventsError=function(fc){kc.errorHandler.errorHandler(null,
fc)};this.onChangeIssue=function(fc){kc.firstEvent=null==fc?void 0:fc.firstEvent;if(null!=fc){fc=(fc||{}).issue;var te=fc.aggregatedData,Ki=sa((null==fc?void 0:fc.snapshot)||[]),Kn=Ki.componentId||0,Sp;kc.userData=Object.assign({},null!=(Sp=fc.userData)?Sp:Imc);kc.aggregatedData=te;Mmc(kc);kc.parentIssueIds=fc.parentIssueIds;Nmc(kc,Ki);Omc(kc,Kn)}};this.toggleStar=function(){null==kc.userData||kc.savingState.get("star")||(kc.userData.starred=!kc.userData.starred,kc.frontendIsInternalOrPartner||(Mmc(kc),
kc.userData.voted=kc.userData.starred),cS(kc.savingState,"star"),DJb(kc.issueFridge,String(kc.issue.issueId),kc.userData.starred).pipe(Tf(),fg(kc.destroyed$)).subscribe(function(){dS(kc.savingState,"star");kc.refreshView()},function(fc){null!=kc.userData&&(kc.userData.starred=!kc.userData.starred);dS(kc.savingState,"star");kc.errorHandler.errorHandler(null,fc);kc.refreshView()}))};this.toggleStarDebounced=zC(this.toggleStar,1E3)};U(w6,k6);w6.\u0275dir=k6.\u0275dir;g=w6.prototype;
g.ngOnDestroy=function(){k6.prototype.ngOnDestroy.call(this);$Qb(this.issueInteractionsTracking,String(this.issueId));this.devopsGraph.close();this.editIssueService.clear(String(this.issueId))};
g.ngOnInit=function(){var a=this;this.appEvents.issueViewed.next(al(this.issueId));ZQb(this.issueInteractionsTracking,String(this.issueId));this.subscriptions.add(WY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.routerEvents.routeChangeSuccess.pipe(fg(this.destroyed$)).subscribe(function(){a.butterBar.dismiss()});(0,T.combineLatest)([this.events$,this.issue$]).pipe(Tf(),fg(this.destroyed$)).subscribe(this.onLoad);this.refreshMonitor.getObservable().pipe(fg(this.destroyed$)).subscribe(function(){a.refresh()});
this.issueCommentDraft.comment$.pipe(fg(this.destroyed$)).subscribe(function(b){b.hasContent()&&Pmc(a);a.refreshView()});this.eventsForIssueFridge.error$.pipe(fg(this.destroyed$)).subscribe(this.onEventsError);aq("#comment1 .bv2-event-note-container",this.element.nativeElement).pipe(fg(this.destroyed$)).subscribe(function(){var b=function(){Q7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.userPreferencesManager.preferences$.pipe(fg(this.destroyed$)).subscribe(function(b){Object.assign(a.preferences,
b);var c=(a.preferences.themePreferences||{}).density;b=(b.layoutPreferences||{}).rightSidebarWidth;a.rightSidebarWidth=null!=b?b:"COZY"===c?300:"COMPACT"===c?270:330},function(){});this.frontendIsInternalOrPartner?(this.starTooltip="Star this issue",this.unStarTooltip="Un-star this issue"):(this.starTooltip="Indicate that you are affected by this issue",this.unStarTooltip="Indicate that you are no longer affected by this issue");this.issue$.pipe(fg(this.destroyed$)).subscribe(this.onChangeIssue);
this.issueFetchResponseFridge.error$.pipe(fg(this.destroyed$)).subscribe(this.onIssueError);this.hotlists$.pipe(fg(this.destroyed$)).subscribe(function(){mmc(a)});this.componentIds$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(b){EJ(a.componentFridge,[].concat(v(b)))});this.events$.pipe(fg(this.destroyed$)).subscribe(function(b){a.events=b.slice(1);var c=a.activeSession.getCommentNumberLimit();En(b)>=c&&(a.commentLimitReached=!0)});this.editIssueService.editableIssue$(String(this.issueId)).pipe(fg(this.destroyed$)).subscribe(function(b){a.issue=
b;mmc(a);a.refreshView()});this.issuePermissionService.issuePermissions$.pipe(fg(this.destroyed$)).subscribe(function(){a.refreshView()});this.selectableHotlistsChanged$.pipe(fg(this.destroyed$)).subscribe(function(){a.refreshView()})};g.ngAfterViewInit=function(){this.viewInitialized=!0};g.refreshView=function(){this.viewInitialized&&this.cdr.detectChanges()};g.onVote=function(){$R(this.issueInteractionsTracking,String(this.issueId))};
var s2a=function(a,b){b!==a.rightSidebarWidth&&kFb(a.userPreferencesManager,{rightSidebarWidth:b}).pipe(fg(a.destroyed$)).subscribe(function(){a.rightSidebarWidth=b;a.refreshView()})},Lmc=function(a){a.isShowAccessDeniedComponent=!0;a.issueService.getMetadata(a.issueId).then(function(b){a.issueMetadata=b;a.refreshView()})},Omc=function(a,b){null==b?Promise.resolve():a.componentActions.get(b).then(function(c){a.currentComponent=c;a.currentComponent.archived&&(a.inArchivedComponent=a.currentComponent.archived);
a.refreshView()}).catch(function(c){403!==c.status&&a.errorHandler.errorHandler(null,c);a.currentComponent={componentId:b,name:"Component "+String(b)};a.refreshView()}).then(function(){var c=a.issuePermissionService.accessLevel();c=c?Bua(c):"";a.ariaIssueTitle=(c?c+" - ":"")+"Issue title: "+a.issue.title+". Change.";a.refreshView()})},Mmc=function(a){var b,c=(null==(b=a.userData)?0:b.starred)?1:0,d,e;a.voteCount=(null!=(e=null==(d=a.aggregatedData)?void 0:d.voteCount)?e:0)+c},Ogb=function(a,b){var c=
Nj();cS(a.savingState,"parentIssues");var d=a.parentIssues;a.parentIssues=b.items;var e=a.parentIssues.map(function(h){return h.issueId}),f=function(h){CK(a.errorHandler,Im(h));a.parentIssues=d;c.reject()};b.added?(yK(a.butterBar,"Saving...",0),a.issueRelationshipService.create(String(b.item.issueId),1,ML(new LL,a.issueId)).pipe(fg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=x6(a,e,function(){a.parentIssues=[].concat(v(a.parentIssues));yK(a.butterBar,'"'+b.item.issueId+
'" added to Parent Issues.',0);c.resolve()})},f)):(yK(a.butterBar,"Saving...",0),a.issueRelationshipService.delete(String(b.item.issueId),1,String(a.issueId)).pipe(fg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=x6(a,e,function(){a.parentIssues=[].concat(v(a.parentIssues));yK(a.butterBar,'"'+b.item.issueId+'" removed from Parent Issues.',0);c.resolve()})},f));return c.promise.then(function(){tL(a.issueFetchResponseFridge,a.issueId);mt(a.eventsForIssueFridge,a.issueId)}).finally(function(){dS(a.savingState,
"parentIssues");a.refreshView()})},Rgb=function(a,b){var c=Nj();cS(a.savingState,"childIssues");yK(a.butterBar,"Saving...",0);var d=function(f){CK(a.errorHandler,Im(f));c.reject()};if("added"in b)b.added?a.issueRelationshipsFridge.assignParentToIssues(String(a.issueId),[{issueId:String(b.item.issueId),afterIssueId:"-1"}]).then(function(f){f.errors?d(f.errors[0]):(c.resolve(),yK(a.butterBar,'"'+b.item.issueId+'" added to Child Issues.',0))}):a.issueRelationshipsFridge.unlinkFromParent(String(b.item.issueId),
String(a.issueId)).then(function(){c.resolve();yK(a.butterBar,'"'+b.item.issueId+'" removed from to Child Issues.',0)}).catch(d);else{var e;pKb(a.issueRelationshipsFridge,{parentId:String(a.issueId),position:(null==(e=b.isNowAfter)?0:e.issueId)?{issueId:String(b.isNowAfter.issueId),position:"after"}:void 0},[{issueId:String(b.item.issueId),parentId:String(a.issueId)}]).then(function(){c.resolve();yK(a.butterBar,"Moved",0)}).catch(d)}return c.promise.then(function(){tL(a.issueFetchResponseFridge,a.issueId);
mt(a.eventsForIssueFridge,a.issueId)}).finally(function(){dS(a.savingState,"childIssues");a.refreshView()})},Qmc=function(a){ef(function(b){return a.enableWtdmMvpUi?ff(b,mt(a.issueRelationshipsFridge,a.issueId),0):b.return()})};w6.prototype.mentionsLoadingStateTooltipText=function(a){return this.codeMentions.mentionsLoadingStateTooltipText(a)};w6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};
var Nmc=function(a,b){a.blockedByIssues=x6(a,b.blockedByIssueId||[],function(){a.blockedByIssues=[].concat(v(a.blockedByIssues))});a.blockingIssues=x6(a,b.blockingIssueId||[],function(){a.blockingIssues=[].concat(v(a.blockingIssues))});a.duplicateIssues=x6(a,b.duplicateIssueId||[],function(){a.duplicateIssues=[].concat(v(a.duplicateIssues))});a.enableWtdmMvpUi&&(a.parentIssues=x6(a,a.parentIssueIds.map(Number),function(){a.parentIssues=[].concat(v(a.parentIssues))}))},x6=function(a,b,c){if(!b.length)return null==
c||c(),[];var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.relatedIssuesCache.get(String(e));f||(f={issueId:e},a.relatedIssuesCache.put(String(e),f));d.push(f)}b=d.filter(function(h){return!h.resolved});Rmc(a,b).finally(function(){null==c||c();a.refreshView()});return d},Rmc=function(a,b){var c=b.filter(function(f){return!f.resolved});b=r(c);for(var d=b.next();!d.done;d=b.next())d=d.value,a.relatedIssuesCache.put(String(d.issueId),d);var e=Nj();EJ(a.issueFridge,c.map(function(f){return f.issueId})).pipe(Pf(function(){return(0,T.of)([])}),
Tf(),fg(a.destroyed$)).subscribe(function(f){f=new Map(f.map(function(u){return[u.issueId,u]}));for(var h=r(c),k=h.next();!k.done;k=h.next()){k=k.value;var q=f.get(k.issueId);q?Object.assign(k,Jmc(q)):k.resolved=!0}a.refreshView();e.resolve()});return e.promise},Jmc=function(a){var b=sa(a.snapshot);return{issueId:a.issueId,title:b.title,status:b.status,archived:a.isArchived,resolved:!0}},Zs=function(a){return a.filter(function(b){return!(b.resolved&&b.archived)}).length};g=w6.prototype;
g.hasUnsavedChanges=function(){return this.comment.hasContent()};g.getRequestDataForUpdate=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.getRequestDataForUpdate(this.issue)};g.updateIssue=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.updateIssue(String(this.issueId))};g.preUpdate=function(a){this.editIssueService.LEGACY_EDIT_ISSUE.preUpdate(a)};g.postUpdate=function(a,b){var c=this;return this.editIssueService.LEGACY_EDIT_ISSUE.postUpdate(a,b).finally(function(){c.refreshView()})};
g.performQuickAction=function(a,b){io(this.analytics,mo.EDIT_ISSUE,"quickAction ("+a+")",null==b?void 0:b.displayText);return this.editIssueService.performQuickAction(String(this.issueId),null!=b?b:void 0)};var Kt=function(a,b){a.savingState.get("title")||!a.issuePermissionService.hasAclToEdit()||b&&"Enter"!==b.key||RB(a.matDialogService.open(P3,{width:"560px",data:{title:a.issue.title}})).pipe(fg(a.destroyed$)).subscribe(function(c){void 0!==c&&c!==a.issue.title&&(a.issue.title=c,a.updateIssue())})};
w6.prototype.showFlagAsSpamDialog=function(){var a=this;RB(this.matDialogService.open(O3,{maxWidth:560})).pipe(fg(this.destroyed$)).subscribe(function(b){b&&qRb(a.editIssueService,String(a.issueId))})};w6.prototype.undelete=function(){this.issue.setIsDeleted(!1);this.issue.setDeletionReason(null);var a=this.getRequestDataForUpdate();if(a&&a.actions){this.preUpdate(a);var b=this.issueService.undelete(this.issueId);this.postUpdate(b,a)}};
w6.prototype.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap,d=this.issue,e=[],f=[];a=r(Object.entries(a.newSelectionMap));for(var h=a.next();!h.done;h=a.next()){var k=r(h.value);h=k.next().value;k=k.next().value;h=Oi(h);k!==c[h]&&(k&&d.hotlistId&&!d.hotlistId.includes(h)?(d.hotlistId.push(h),e.push(h)):!k&&za(d.hotlistId,h)&&f.push(h))}var q=this.getRequestDataForUpdate();if(q&&q.actions){this.preUpdate(q);var u=this.issueApi.updateIssueHotlists(this.issueId,{addHotlistIds:e,removeHotlistIds:f,
hotlistIssue:{issueId:this.issueId,issue:this.issue}});u.then(function(){q&&(b.postUpdate(u,q),b.refreshView())})}};w6.prototype.submitArchivalState=function(a){return this.issueArchiveService.submitArchivalState(String(this.issueId),a)};
var Pmc=function(a){(0,T.forkJoin)([a.events$.pipe(Tf()),aq("#AddCommentBox textarea",a.element.nativeElement)]).pipe(fg(a.destroyed$)).subscribe(function(){a.appEvents.scrollToCommentBox.next()})},Smc=function(a,b,c,d){var e=Si(b||[],new Set(a));if(0<e.length)return{issueId:c,relation:d,targetIds:e,actionType:"ADD"};a=Si(a||[],new Set(b));return{issueId:c,relation:d,targetIds:a,actionType:"REMOVE"}},Kgb=function(a,b){a.blockingIssues=b;Rmc(a,a.blockingIssues).then(function(){a.blockingIssues=[].concat(v(a.blockingIssues));
a.refreshView()});var c=a.issue.blockingIssueId||[];AQb(a.issue,a.blockingIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Smc(c,a.issue.blockingIssueId||[],a.issueId,"BLOCKING"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d},Igb=function(a,b){a.blockedByIssues=b;Rmc(a,a.blockedByIssues).then(function(){a.blockedByIssues=[].concat(v(a.blockedByIssues));a.refreshView()});var c=a.issue.blockedByIssueId||[];BQb(a.issue,
a.blockedByIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Smc(c,a.issue.blockedByIssueId||[],a.issueId,"BLOCKED_BY"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d};w6.prototype.saveCommentDraft=function(){this.draftStore.$window.sessionStorage.setItem(Bo(this.issue.issueId),this.comment.value)};w6.prototype.clearCanonicalIssue=function(){io(this.analytics,mo.EDIT_ISSUE,"click","unmarkDuplicate");this.editIssueService.clearCanonicalIssue(String(this.issueId))};
var r2a=function(a){var b=a.preferences.showFullHistory;io(a.analytics,mo.EDIT_ISSUE,"toggleShowFullHistory",String(b));a.userPreferencesManager.save({showFullHistory:b}).pipe(fg(a.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist showFullHistory.")})};
w6.prototype.toggleAutoCcOnComment=function(){var a=this,b=!Ii(this.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;io(this.analytics,mo.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));this.userPreferencesManager.save({autoCcOnComment:b}).pipe(fg(this.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist autoCcOnComment.")})};
var Ys=function(a,b){io(a.analytics,mo.EDIT_ISSUE,"toggleRelatedIssuesTray",(a.relatedIssuesTrayOpen!==b?"open":"close")+" "+b);a.relatedIssuesTrayOpen=a.relatedIssuesTrayOpen===b?null:b};w6.prototype.updateSubscription=function(a){var b=this;return ef(function(c){if(1==c.nextAddress)return ff(c,b.editIssueService.updateSubscription(String(b.issueId),a),2);io(b.analytics,mo.EDIT_ISSUE,"updateSubscription",a);b.refreshView();gf(c)})};
w6.prototype.refresh=function(){this.relatedIssuesCache.removeAll();mt(this.permissionsFridge,"issues/"+this.issueId);Qmc(this);tL(this.issueFetchResponseFridge,this.issueId);mt(this.eventsForIssueFridge,this.issueId);Kmc(this);FJ(this.hotlistFridge,Hmc);this.issueInteractionsTracking.trackNavigation("refresh")};
var Kmc=function(a){var b=void 0===b?!0:b;a.activeSession.isAnonymous()?Promise.resolve():qL(a.issueFridge,[a.issueId],{markRead:b}).then(function(c){a.userData&&(a.userData.lastViewedTimeMicros=c);a.refreshView()})},Lt=function(a){return a.issuePermissionService.hasAclToEdit()?"Set issue title":""},yhb=function(a){return a.issuePermissionService.hasAclToComment()&&!a.commentLimitReached&&!a.savingState.get("comment")},zhb=function(a){return a.issuePermissionService.hasAclToComment()&&QQb(a.comment)&&
!a.savingState.get("comment")};w6.prototype.submitCommentBox=function(){var a=this;return ef(function(b){if(1==b.nextAddress)return ff(b,a.issueCommentDialogsService.submitCommentBox(a.issueIdString),2);a.refreshView();gf(b)})};var xhb=function(a){return a.commentLimitReached?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?"Sign in to use full features.":a.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."};
g=w6.prototype;g.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};g.requestIssueDeletion=function(){this.domSafe.openInNewTab(cZa())};g.showIndefiniteRetentionDialog=function(){var a=this;this.savingState.get("retention")||RB(this.matDialogService.open(N3,{maxWidth:560})).pipe(fg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"INDEFINITE")})};
g.showComponentRetentionDialog=function(){var a=this;this.savingState.get("retention")||RB(this.matDialogService.open(M3,{maxWidth:560})).pipe(fg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"COMPONENT_DEFAULT")})};g.showNewContentJudgementDialog=function(){var a=this;return ef(function(b){return ff(b,a.issueCommentDialogsService.showNewContentJudgementDialog(String(a.issueId)),0)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};var Bhb=function(a){var b,c=null!=(b=Kk(a.childIssuesCount$))?b:0;return a.parentIssueIds.length||c||null!=a.issue.type&&kDb.has(a.issue.type)};
oi.Object.defineProperties(w6.prototype,{comment:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.comment()}},areEventsLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.eventsForIssueFridge.isThinking(this.issueId);return this.isLoading||a&&0===this.events.length}},judgementForNewContent:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.judgementForNewContent()}},isLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.issueFetchResponseFridge.isThinking(this.issueId);
return null==this.firstEvent&&a}}});w6.\u0275fac=function(a){return new (a||w6)(C(mI),C(KK),C(NI),C(fK),C(cL),C(XK),C(f6),C(JK),C(LK),C(qH),C(WI),C(sT),C(UK),C(PI),C(AK),C(VY),C(SR),C(IM),C(xK),C(BR),C(RH),C(YN),C(BK),C(mP),C(LR),C(cC),C(FK),C(g6),C(R_),C(kL),C(cO),C(WL),C(rL),C(iL),C(DL),C(HJ),C(UL),C(sd),C(oL),C(i6),C(fS),C(ZR),C(j6),C(eO),C(VL),C(u6),C(v6),C(t6))};
w6.\u0275cmp=w({type:w6,selectors:[["edit-issue-page"]],features:[Je([mI,gS,{provide:yW,useClass:n6}]),ee],decls:6,vars:5,consts:[[1,"a11y-only"],["class","kd-appbar",4,"ngIf"],[1,"bv2-view","bv2-edit-view"],["class","bv2-access-denied",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","color","primary",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward"],["class","flex-kids-x",4,"ngIf"],[1,"bv2-appbar-right"],[4,"ngIf"],
["mat-icon-button","","color","primary","matTooltip","Go to previous issue","matTooltipPosition","left","aria-label","Go to previous issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left"],["mat-icon-button","","color","primary","matTooltip","Go to next issue","matTooltipPosition","left","aria-label","Go to next issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right"],[1,"flex-kids-x"],["mat-icon-button","","color","primary","matTooltip","Refresh","aria-label",
"Refresh",3,"hotkey","onHotkey","click"],["svgIcon","refresh"],[1,"bv2-vertical-bar"],[1,"bv2-edit-controls"],[3,"issueId","hasAclToEdit","hasAclToComment","issueStatusQuickAction","statusIsSaving","isDuplicate","upvoted","voteCount","hotkey","onHotkey","onVote","quickAction","markAsDuplicate","clearCanonical"],[3,"choices","hotkey","selectedHotlistIds","onHotkey","onApply","onCreate","onLoad"],["hotlistPicker",""],["aria-label","Notification menu",3,"subscription","issueId","matTooltip","subscriptionChange",
"showNotificationSettings"],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar"],["tooltipId","incident-insights",3,"customPositions"],["onedevTooltipTitle",""],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed"],["role","alert","aria-live","polite","class","bv2-appbar-pagenums",
4,"ngIf"],["role","alert","aria-live","polite",1,"bv2-appbar-pagenums"],[1,"bv2-access-denied"],[3,"issueMetadata"],[3,"ngClass"],["messageType","caution","class","bv2-archived-issue-banner border-bottom",3,"format","iconOverride",4,"ngIf"],["class","bv2-canonical-issue-banner",4,"ngIf"],[1,"bv2-related-issues-bar"],[1,"bv2-related-issues-bar-upper"],["role","tablist","aria-label","Related issues","aria-multiselectable","true",1,"bv2-related-issues-buttons"],["id","rel-issues-tray-blocked","role",
"tab","tabindex","0","aria-controls","rel-issues-tray-blocked-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],[1,"label",3,"matTooltip"],["svgIcon","arrow-dropdown"],["id","rel-issues-tray-blocking","role","tab","tabindex","0","aria-controls","rel-issues-tray-blocking-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],["id","rel-issues-tray-duplicates","role","tab","tabindex","0","aria-controls","rel-issues-tray-duplicates-content",1,"tab-head",3,"matTooltip","click",
"keydown.enter","keydown.space"],[1,"label"],["class","tab-head","id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["class","tab-head","id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[1,"bv2-related-issues-bar-upper-right"],["id",
"bv2-issue-history-button"],["label","Full history",3,"model","tooltip","modelChange"],[1,"bv2-main-content-right-bar-container"],[1,"bv2-main-content-container"],[3,"parent"],["direction","rtl","id","bv2-resizable-rightbar",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"],["messageType","caution",1,"bv2-archived-issue-banner","border-bottom",3,"format","iconOverride"],["href","http://go/buganizer-issue-archive",
"target","_blank",4,"ngIf"],["format","flat",3,"onAction",4,"ngIf"],["href","http://go/buganizer-issue-archive","target","_blank"],["format","flat",3,"onAction"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank",4,"ngIf"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],[1,"bv2-canonical-issue-banner"],["class","bv2-canonical-title",4,"ngIf","ngIfElse"],["partiallyLoaded",""],[1,"bv2-canonical-title"],[1,"high-contrast-link",
3,"href","onedevHovercardTrigger"],["canonicalHovercard",""],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[1,"high-contrast-link",3,"href"],["id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",
1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["class","tab-head","id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1),
G(),M(2,c2a,17,19,"div",1),F(3,"div",2),M(4,d2a,2,1,"div",3),M(5,u2a,45,62,"div",4),G());a&2&&(B(1),Ge("Issue ",b.issueId,""),B(1),E("ngIf",!b.isShowAccessDeniedComponent),B(1),ke("aria-busy",b.isLoading),B(1),E("ngIf",b.isShowAccessDeniedComponent),B(1),E("ngIf",b.issue&&!b.isShowAccessDeniedComponent))},encapsulation:2});
var Tmc=["savedSearchNameInput"],$s=function(a){return{"bv2-edit-resource-readonly":a}},A2a=function(a){return{displayText:"Admins",values:a}},z2a=function(a){return[a]},y6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka){qI.call(this);var ha=this;this.routeParams=a;this.location=b;this.accessPolicyApi=c;this.savedSearchApi=d;this.paths=e;this.appHistory=f;this.butterBar=h;this.pageTitle=k;this.documentationLinks=u;this.userAccess=D;this.errorHandler=I;this.snackBar=N;this.confirmationDialog=L;this.cdr=
S;this.accessPolicyConverter=X;this.appEvents=ka;this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.error="";this.currentUserEmail=q.getUserEmail();this.accessPolicyUnderEdit=ET();this.flattenedAccessPolicy=ET();this.pageTitle.setTitle("Saved Search Overview");a=this.loadSavedSearch(this.routeParams.savedSearchId);b=this.loadUserAccess(this.routeParams.savedSearchId);this.loadAccessPolicy(this.routeParams.savedSearchId);
Promise.all([a,b]).then(function(){var ra;null==(ra=ha.savedSearchName)||ra.nativeElement.focus()});this.subscriptions.add(WY(y,function(){return ha.hasUnsavedChanges()},!1))};U(y6,qI);y6.\u0275dir=qI.\u0275dir;g=y6.prototype;g.ngOnInit=function(){"access"===this.location.hash()&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};
g.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=Ii(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
g.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=FT(c);b.accessPolicyUnderEdit=Ii(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return mK(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.isSaving=function(){return this.isUpdating||this.isDeleting};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.back=function(){P_(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=Ii(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Ii(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!Hi(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!Hi(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
g.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=Ii(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};g.validate=function(){if(""===this.savedSearchUnderEdit.name)return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change saved search admins",Tn("Are you sure you want to remove yourself from the admins?\n                'You may lose the permission to edit the access settings"),function(){a.doSaveAccessPolicy()})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=GT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);zK(this.butterBar,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=FT(c);a.accessPolicyUnderEdit=Ii(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);zK(a.butterBar,Im(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",Tn("Do you want to delete this saved search?"),function(){a.doDelete()})};
g.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});SIb(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
g.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};y6.\u0275fac=function(a){return new (a||y6)(C(SR),C(KK),C(ZN),C(EN),C(LK),C(O_),C(xK),C(YN),C(qH),C(kP),C(VY),C(lK),C(BK),C(uK),C(RM),C(mI,2),C(DT),C(FK))};
y6.\u0275cmp=w({type:y6,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(Ef(Tmc,5),Ef(WW,5,sd));if(a&2){var c;Df(c=Gf())&&(b.savedSearchName=c.first);Df(c=Gf())&&(b.tabs=c)}},features:[Je([mI]),ee],decls:9,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled",
"click",4,"ngIf"],[1,"bv2-view"],[4,"ngIf"],["mat-button","","color","primary","matTooltip","Delete saved search",3,"disabled","click"],[1,"edit-resource-header"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],["type","text","id","saved-search-name",
"required","","aria-required","true",3,"ngModel","disabled","ngModelChange"],["savedSearchNameInput",""],["for","saved-search-description"],["id","saved-search-description",3,"ngModel","disabled","ngModelChange"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],["class","edit-button-row",4,"ngIf"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"users","usersChange","isValid"],
["for","saved-search-acl-readers"],[3,"users","includeAliases","includeViewAliases","containerChips","usersChange","isValid"],[1,"edit-field"],["target","_blank",3,"href"],[1,"edit-button-row"],["mat-flat-button","","color","primary",3,"disabled","click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G(),M(5,v2a,2,1,"button",5),G()()(),F(6,"div",6),M(7,w2a,
4,0,"ng-container",7),M(8,B2a,51,38,"ng-container",7),G());a&2&&(B(5),E("ngIf",b.isAdmin),B(2),E("ngIf",!b.isLoading&&!b.savedSearch),B(1),E("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[Jx,Gx,wF,FB,YW,WW,cZ,hF,Mg,py,Gy,vy,SY],encapsulation:2});
var Umc=function(a){Z.call(this,a)};U(Umc,Z);g=Umc.prototype;g.getAuthor=function(){return m(this,Vl,1)};g.getTimestamp=function(){return m(this,vj,2)};g.setTimestamp=function(a){return Db(this,2,a)};g.hasTimestamp=function(){return oj(this,2)};g.getAdd=function(){return m(this,mY,3)};g.getRemove=function(){return m(this,mY,4)};g.getAddMask=function(){return m(this,bH,5)};g.getRemoveMask=function(){return m(this,bH,6)};g.toObject=function(){return Vmc(void 0,this)};
var Vmc=function(a,b){if(null!=b){var c={author:lJ(a,b.getAuthor()),timestamp:Zu(a,b.getTimestamp()),add:d4b(a,b.getAdd()),remove:d4b(a,b.getRemove()),addMask:cH(a,b.getAddMask()),removeMask:cH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var z6=function(a){Z.call(this,a,-1,Wmc)};U(z6,Z);z6.prototype.getUpdatesList=function(){return tb(this,Umc,1)};var Wmc=[1];z6.prototype.toObject=function(){var a=null!=this?{updatesList:Eb(this.getUpdatesList(),Vmc)}:void 0;return a};z6.messageId="b.SloHistory";
var A6=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};A6.prototype.get=function(a){var b=this.sloHistories.get(String(a));return void 0!==b?b:this.sloHistories.put(String(a),this.executor.get({url:"action/slo_updates/"+a,responseConstructor:z6}))};A6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};A6.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};
A6.\u0275fac=function(a){return new (a||A6)(t(UK),t(iI))};A6.\u0275prov=hc({token:A6,factory:A6.\u0275fac,providedIn:"root"});
var B6=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra){qI.call(this);var Da=this;this.routeParams=a;this.accessPolicyConverter=b;this.bLocation=c;this.appHistory=e;this.butterBar=f;this.pageTitle=h;this.documentationLinks=q;this.userAccess=y;this.accessPolicyApi=D;this.sloApi=I;this.sloUpdatesApi=N;this.sloUpdatesService=L;this.errorHandler=S;this.matDialogService=X;this.analytics=ka;this.confirmationDialogService=ha;this.appEvents=ra;this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=
this.elementPickerIsValid=this.isAdmin_=this.isUpdating_=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(Da.validity).some(function(Ja){return!Ja})};this.editableAccessPolicy=ET();this.flattenedAccessPolicy=ET();this.subscriptions.add(WY(u,function(){return Da.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=ko("SLO",Oi(a));if(this.sloEnabled=k.isInternalSession())this.pageTitle.setTitle("SLO Overview"),Xmc(this,a),this.loadUserAccess_(a),
this.loadAccessPolicy_(a),Ymc(this,a);this.alertState={getValue:function(){return Da.editableCopy?1===Y(Da.editableCopy,9,0):!1},getSavedValue:function(){return Da.slo?1===Y(Da.slo,9,0):!1},setValue:function(Ja){Da.editableCopy&&l(Da.editableCopy,9,Ja?1:0)}};this.currentUserEmail=k.getUserEmail()};U(B6,qI);B6.\u0275dir=qI.\u0275dir;
B6.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0)};B6.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};B6.prototype.updateCollection=function(a){this.editableCopy&&Cb(this.editableCopy,6,a)};
var Xmc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;at(a.slo)||Cb(a.slo,6,[]);a.editableCopy=a.slo.clone();a.pageTitle.setTitle("SLO: "+c.getName())}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
B6.prototype.loadAccessPolicy_=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=FT(c);b.editableAccessPolicy=Ii(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Zmc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.getUpdatesList().map(function(d){return y7b(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=B6.prototype;
g.loadUserAccess_=function(a){var b=this;mK(this.userAccess,"admin",ko("SLO",Oi(a))).then(function(c){b.isAdmin_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){var a=this.slo,b=this.editableCopy;return!(a==b||a&&b&&a instanceof b.constructor&&Faa(a.toArrayInternal(),b.toArrayInternal()))};
g.hasUnsavedAccessPolicyChanges=function(){return!Hi(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;$mc(at(this.slo),at(this.editableCopy))?anc(this):this.confirmationDialogService.open({title:"Save SLO changes?",content:Wn(Tn("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."),Vn("br"),Vn("br"),Tn("Please combine changes into as few updates as possible.")),onConfirm:function(){anc(a)},onDismiss:yC})};
var F2a=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.setIsArchived(b);anc(a)};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Tn("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:yC}):c()}},$mc=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.getMetric()===e.getMetric()&&d.getMatcher()===e.getMatcher())d=m(d,mm,3),e=m(e,mm,
3),f=null===d&&null===e||null!==d&&null!==e&&d.getSeconds()===e.getSeconds();if(!f)return!1}return!0},anc=function(a){var b=a.editableCopy;yK(a.butterBar,"Saving SLO ID "+b.getSloId()+"...");a.isUpdating_=!0;a.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.getName()+'" saved.';$mc(at(a.slo),at(a.editableCopy))||(d+=" Propagating this change may take several hours.");yK(a.butterBar,d);a.slo=c;at(a.slo)||Cb(a.slo,6,[]);a.editableCopy=c.clone();a.sloUpdatesApi.invalidateCache(a.slo.getSloId());
io(a.analytics,mo.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating_=!1})};
B6.prototype.saveAccessPolicy=function(){var a=this;bnc(this)?this.confirmationDialogService.open({title:"Change SLO admins",content:Tn("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:yC}):this.doSaveAccessPolicy_()};
B6.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=GT(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);zK(this.butterBar,b);return}this.isUpdating_=!0;yK(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.getSloId(),b).then(function(c){yK(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=FT(c);a.editableAccessPolicy=Ii(a.flattenedAccessPolicy);a.loadUserAccess_(a.slo.getSloId());io(a.analytics,
mo.EDIT_SLO,"updateAccessPolicy")},function(c){zK(a.butterBar,Im(c),0)}).finally(function(){a.isUpdating_=!1})};
var Ymc=function(a,b){Zmc(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&"buganizer-system@google.com"===Tl(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===Tl(d.author)&&(a.isUneditedFromBugScope=!0)}})},bnc=function(a){if(Hi(a.flattenedAccessPolicy.admins,a.editableAccessPolicy.admins))return!1;var b="2:"+a.currentUserEmail;return a.flattenedAccessPolicy.admins.includes(b)&&
!a.editableAccessPolicy.admins.includes(b)};g=B6.prototype;g.revertMetadataChanges=function(){var a=this;if($mc(at(this.slo),at(this.editableCopy))){var b;this.editableCopy=null==(b=this.slo)?void 0:b.clone()}else this.confirmationDialogService.open({title:"Revert SLO changes?",content:Wn(Tn("Revert all changes to this SLO?")),onConfirm:function(){var c;a.editableCopy=null==(c=a.slo)?void 0:c.clone()},onDismiss:yC})};
g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Ii(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating_};g.back=function(){P_(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdmin_};
g.showUpdateHistoryModal=function(){var a=this;Zmc(this,this.slo.getSloId()).then(function(){a.matDialogService.open(s5,{width:"600px",data:{updateDiffs:a.historyDiffs}});io(a.analytics,mo.UPDATE_HISTORY_MODAL,"open");io(a.analytics,mo.EDIT_SLO,"viewHistory")})};B6.\u0275fac=function(a){return new (a||B6)(C(SR),C(DT),C(KK),C(LK),C(O_),C(xK),C(YN),C(qH),C(kP),C(VY),C(lK),C(ZN),C(pY),C(A6),C(H_),C(BK),C(cC),C(IM),C(RM),C(FK))};
B6.\u0275cmp=w({type:B6,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&Ef(WW,5,sd);if(a&2){var c;Df(c=Gf())&&(b.tabs=c)}},features:[ee],decls:7,vars:2,consts:[[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"],["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",
3,"selectedIndex","selectedIndexChange"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],["sloBasicsForm","ngForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"required","ngModel","disabled","ngModelChange"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModel","disabled","ngModelChange"],["class","edit-field permission-toggle",
3,"bv2-edit-resource-readonly",4,"ngIf"],["id","bs-warning",4,"ngIf"],[3,"isDisabled","collection","onCollectionUpdate","onValidation"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["class","edit-button-group",4,"ngIf"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"users","usersChange","isValid"],
["for","slo-acl-readers"],[3,"users","includeAliases","includeViewAliases","usersChange","isValid"],["target","_blank",3,"href"],["class","edit-button-row",4,"ngIf"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"checked","disabled","change"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["id","bs-warning"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"disabled",
"onAction"],["tooltip","Discard any changes",3,"disabled","onAction"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction",4,"ngIf"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction",4,"ngIf"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled","onAction"],["tooltip","Unarchive the SLO and allow new usages",3,"disabled","onAction"],["format","fill",3,"disabled","onAction"],[3,"onAction"]],template:function(a,
b){a&1&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4),M(5,C2a,2,0,"div",5),M(6,K2a,55,31,"div",6),G());a&2&&(B(5),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading&&b.slo&&b.slo.getSloId()&&b.editableCopy))},dependencies:[oO,Gx,wy,Mg,py,qy,Gy,vy,ty,aZ,tH,YW,WW,SY,mQ,A_,cN],encapsulation:2});
var C6=function(){this.issue=null;this.isDataLoaded=!1};C6.prototype.ngOnChanges=function(){var a;this.assignee=Cua(Tl(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};C6.\u0275fac=function(a){return new (a||C6)};
C6.\u0275cmp=w({type:C6,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,L2a,2,2,"b-person-hovercard",1),M(2,M2a,1,0,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);B(1);E("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[t2,Gx,qR],encapsulation:2,changeDetection:0});
var D6=function(){this.isDataLoaded=!1};D6.prototype.ngOnChanges=function(){var a;if(null==(a=this.issue)?0:a.aggregatedData){var b;this.createdTime=(null==(b=this.issue)?NaN:b.aggregatedData.createdTimeMicros)/1E3}this.isDataLoaded=null!=this.issue};D6.\u0275fac=function(a){return new (a||D6)};
D6.\u0275cmp=w({type:D6,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],["mode","datetime",3,"timestamp",4,"ngIf","ngIfElse"],["noData",""],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,N2a,1,1,"b-formatted-date-time",1),G(),M(2,O2a,1,0,"ng-template",null,2,Mf));if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);B(1);E("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[t2,
Gx,CP],encapsulation:2,changeDetection:0});
var E6=function(){};E6.prototype.ngOnInit=function(){};E6.\u0275fac=function(a){return new (a||E6)};E6.\u0275cmp=w({type:E6,selectors:[["b-issue-id-cell"]],inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1),G());a&2&&(E("isReady",!!b.id),B(1),Ge(" ",b.id," "))},dependencies:[t2],encapsulation:2,changeDetection:0});
var F6=function(){this.issue=null;this.isDataLoaded=!1};F6.prototype.ngOnChanges=function(){var a;this.reporter=Cua(Tl(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};F6.\u0275fac=function(a){return new (a||F6)};
F6.\u0275cmp=w({type:F6,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,P2a,2,2,"b-person-hovercard",1),M(2,Q2a,1,0,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);B(1);E("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[t2,Gx,qR],encapsulation:2,changeDetection:0});
var G6=function(){this.IssueStatus_strToTag=am;this.STATUS_FULL_TEXT=BL;this.STATUS_TERSE=xL;this.issue=null;this.isDataLoaded=!1};G6.prototype.ngOnChanges=function(){var a,b;this.status=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.status)||void 0;this.isDataLoaded=null!==this.issue};G6.\u0275fac=function(a){return new (a||G6)};
G6.\u0275cmp=w({type:G6,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,R2a,2,5,"div",1),M(2,S2a,1,0,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);B(1);E("ngIf",b.IssueStatus_strToTag[b.status])("ngIfElse",c)}},dependencies:[t2,Gx],encapsulation:2,changeDetection:0});
var H6=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};H6.prototype.ngOnChanges=function(){var a,b,c;this.teamId=(null==(a=this.issue)?void 0:null==(b=a.aggregatedData)?void 0:null==(c=b.teamId)?void 0:c.toString())||"";var d,e;this.componentId=String(null==(d=this.issue)?void 0:null==(e=d.snapshot[0])?void 0:e.componentId)||"";this.isDataLoaded=null!==this.issue};H6.\u0275fac=function(a){return new (a||H6)};
H6.\u0275cmp=w({type:H6,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled",4,"ngIf","ngIfElse"],["noData",""],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,T2a,1,3,"b-team-display",1),M(2,U2a,1,0,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);
B(1);E("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[t2,Gx,dV],encapsulation:2,changeDetection:0});
var I6=function(){this.issue=null;this.title="";this.isDataLoaded=!1;this.link={path:""}};I6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||"";this.isDataLoaded=null!==this.issue;var c,d;this.link=qn(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};I6.\u0275fac=function(a){return new (a||I6)};
I6.\u0275cmp=w({type:I6,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x"],inputs:{issue:"issue"},features:[Fc],decls:3,vars:3,consts:[[1,"title","title-location",3,"isReady"],[1,"hover-link","line-clamp-3",3,"routerLinkObj","keydown","click"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0)(1,"a",1),J("keydown",function(c){"Enter"===c.key&&c.stopPropagation()})("click",function(c){return c.stopPropagation()}),O(2),G()());a&2&&(E("isReady",b.isDataLoaded),B(1),E("routerLinkObj",
b.link),B(1),He(b.title||"--"))},dependencies:[t2,iT],styles:[".title[_ngcontent-%COMP%] {\n      margin-left: 4px\n      padding: 7px 0 6px 0;\n    }\n    a[_ngcontent-%COMP%] {\n      color: inherit;\n    }"],changeDetection:0});
var J6=function(){this.type=this.issue=null;this.isDataLoaded=!1};J6.prototype.ngOnChanges=function(){var a,b;this.type=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.type)||null;this.isDataLoaded=null!==this.issue};J6.\u0275fac=function(a){return new (a||J6)};
J6.\u0275cmp=w({type:J6,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Fc],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,V2a,3,3,"ng-container",1),M(2,W2a,1,0,"ng-template",null,2,Mf),G());if(a&2){var c=Fe(3);E("isReady",b.isDataLoaded);B(1);E("ngIf",b.type)("ngIfElse",c)}},dependencies:[t2,Gx,pM],encapsulation:2,changeDetection:0});
var cnc=function(a,b){uA.call(this,a);this.directives=a;this.isEqual=b};U(cnc,uA);var bt=function(a,b){var c;return ef(function(d){if(1==d.nextAddress)return ff(d,(0,T.firstValueFrom)(a.directives.changes.pipe(dg(a.directives.toArray()),R(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),uf(Boolean),wf(3E3))),2);c=d.yieldResult;qA(a,c);gf(d)})};
var K6=function(a,b){this.elementRef=a;this.interactivityHelper=b};K6.prototype.ngOnInit=function(){};K6.prototype.focus=function(){var a=V5b(this.interactivityHelper,this.elementRef.nativeElement,!0);a&&a.focus()};oi.Object.defineProperties(K6.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});K6.\u0275fac=function(a){return new (a||K6)(C(sd),C(QZ))};K6.\u0275dir=w({type:K6,selectors:[["tr","row",""]],inputs:{row:"row"}});
var dnc=Hh("indicator",[Kh("active-asc, asc",Jh({transform:"translateY(0px)"})),Kh("active-desc, desc",Jh({transform:"translateY(10px)"})),Lh("active-asc <=> active-desc",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),enc=Hh("leftPointer",[Kh("active-asc, asc",Jh({transform:"rotate(-45deg)"})),Kh("active-desc, desc",Jh({transform:"rotate(45deg)"})),Lh("active-asc <=> active-desc",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),fnc=Hh("rightPointer",[Kh("active-asc, asc",Jh({transform:"rotate(45deg)"})),Kh("active-desc, desc",
Jh({transform:"rotate(-45deg)"})),Lh("active-asc <=> active-desc",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),gnc=Hh("arrowOpacity",[Kh("desc-to-active, asc-to-active, active",Jh({opacity:1})),Kh("desc-to-hint, asc-to-hint, hint",Jh({opacity:.54})),Kh("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Jh({opacity:0})),Lh("* => asc, * => desc, * => active, * => hint, * => void",Ih("0ms")),Lh("* <=> *",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),hnc=Hh("arrowPosition",[Lh("* => desc-to-hint, * => desc-to-active",
Ih("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Jh({transform:"translateY(-25%)"}),Jh({transform:"translateY(0)"})]})),Lh("* => hint-to-desc, * => active-to-desc",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Jh({transform:"translateY(0)"}),Jh({transform:"translateY(25%)"})]})),Lh("* => asc-to-hint, * => asc-to-active",Ih("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Jh({transform:"translateY(25%)"}),Jh({transform:"translateY(0)"})]})),Lh("* => hint-to-asc, * => active-to-asc",
Ih("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Jh({transform:"translateY(0)"}),Jh({transform:"translateY(-25%)"})]})),Kh("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Jh({transform:"translateY(0)"})),Kh("hint-to-desc, active-to-desc, desc",Jh({transform:"translateY(-25%)"})),Kh("hint-to-asc, active-to-asc, asc",Jh({transform:"translateY(25%)"}))]),inc=Hh("allowChildren",[Lh("* <=> *",[Nh("@*",Mh())])]);
var L6=function(){this.changes=new T.Subject};L6.\u0275fac=function(a){return new (a||L6)};L6.\u0275prov=hc({token:L6,factory:L6.\u0275fac,providedIn:"root"});var jnc={provide:L6,deps:[[new Rv,new Sv,L6]],useFactory:function(a){return a||new L6}};
var knc=new od("MAT_SORT_DEFAULT_OPTIONS"),lnc=jla(ri(function(){})),M6=function(a){var b=lnc.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new T.Subject;b.start="asc";b._direction="";b.sortChange=new Vw;return b};U(M6,lnc);g=M6.prototype;g.register=function(a){this.sortables.set(a.id,a)};g.deregister=function(a){this.sortables.delete(a.id)};
g.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=null!=(d=null!=(c=null==a?void 0:a.disableClear)?c:this.disableClear)?d:!(null==(b=this._defaultOptions)||!b.disableClear);b=["asc","desc"];"desc"==(a.start||this.start)&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};g.ngOnInit=function(){this._markInitialized()};
g.ngOnChanges=function(){this._stateChanges.next()};g.ngOnDestroy=function(){this._stateChanges.complete()};oi.Object.defineProperties(M6.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=Yg(a)}}});M6.\u0275fac=function(a){return new (a||M6)(C(knc,8))};
M6.\u0275dir=w({type:M6,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ee,Fc]});
var mnc=ri(function(){}),N6=function(a,b,c,d,e,f,h,k){var q=mnc.call(this)||this;q._intl=a;q._changeDetectorRef=b;q._sort=c;q._columnDef=d;q._focusMonitor=e;q._elementRef=f;q._ariaDescriber=h;q._showIndicatorHint=!1;q._viewState={};q._arrowDirection="";q._disableViewStateAnimation=!1;q.arrowPosition="after";q._sortActionDescription="Sort";if(null==k?0:k.arrowPosition)q.arrowPosition=null==k?void 0:k.arrowPosition;q._handleStateChanges();return q};U(N6,mnc);g=N6.prototype;
g.ngOnInit=function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._updateArrowDirection();this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection});this._sort.register(this);this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=!!b;b!==a._showIndicatorHint&&(a._setIndicatorHintVisible(b),a._changeDetectorRef.markForCheck())})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);this._rerenderSubscription.unsubscribe()};
g._setIndicatorHintVisible=function(a){this._isDisabled()&&a||(this._showIndicatorHint=a,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))};g._setAnimationTransitionState=function(a){this._viewState=a||{};this._disableViewStateAnimation&&(this._viewState={toState:a.toState})};
g._toggleOnInteraction=function(){this._sort.sort(this);if("hint"===this._viewState.toState||"active"===this._viewState.toState)this._disableViewStateAnimation=!0};g._handleClick=function(){this._isDisabled()||this._sort.sort(this)};g._handleKeydown=function(a){this._isDisabled()||32!==a.keyCode&&13!==a.keyCode||(a.preventDefault(),this._toggleOnInteraction())};g._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)};
g._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection};g._getArrowViewState=function(){var a=this._viewState.fromState;return(a?a+"-to-":"")+this._viewState.toState};g._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start};g._isDisabled=function(){return this._sort.disabled||this.disabled};
g._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"};g._renderArrow=function(){return!this._isDisabled()||this._isSorted()};g._updateSortActionDescription=function(a){if(this._sortButton){var b;null==(b=this._ariaDescriber)||vpb(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||upb(c,this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,T.merge)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){if(a._isSorted()){a._updateArrowDirection();if("hint"===a._viewState.toState||"active"===a._viewState.toState)a._disableViewStateAnimation=!0;a._setAnimationTransitionState({fromState:a._arrowDirection,toState:"active"});a._showIndicatorHint=!1}!a._isSorted()&&a._viewState&&"active"===a._viewState.toState&&(a._disableViewStateAnimation=
!1,a._setAnimationTransitionState({fromState:"active",toState:a._arrowDirection}));a._changeDetectorRef.markForCheck()})};oi.Object.defineProperties(N6.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}},disableClear:{configurable:!0,enumerable:!0,get:function(){return this._disableClear},set:function(a){this._disableClear=Yg(a)}}});
N6.\u0275fac=function(a){return new (a||N6)(C(L6),C(zx),C(M6,8),C("MAT_SORT_HEADER_COLUMN_DEF",8),C(Wz),C(sd),C(fA,8),C(knc,8))};
N6.\u0275cmp=w({type:N6,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&J("click",function(){return b._handleClick()})("keydown",function(c){return b._handleKeydown(c)})("mouseenter",function(){return b._setIndicatorHintVisible(!0)})("mouseleave",function(){return b._setIndicatorHintVisible(!1)});a&2&&(ke("aria-sort",b._getAriaSortAttribute()),pe("mat-sort-header-disabled",b._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header",
"id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[ee],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],
[1,"mat-sort-header-pointer-middle"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"div",1),Be(2),G(),M(3,X2a,6,6,"div",2),G());a&2&&(pe("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),ke("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),E("ngIf",b._renderArrow()))},dependencies:[Gx],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity: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}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],
encapsulation:2,data:{animation:[dnc,enc,fnc,gnc,hnc,inc]},changeDetection:0});
var nnc="focus-indicator title type team id assignee status menu".split(" "),O6=function(a,b,c){qI.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.issueIds$=new T.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.tableColumns=nnc.slice();this.activeSort$=new T.BehaviorSubject(void 0);this.rows$=this.issueIds$.pipe(Lk(),R(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),eg(function(e){return(0,T.combineLatest)([d.activeSort$].concat(v(e.map(function(f){return f.issue$.pipe(dg(null))})))).pipe(R(function(f){var h=
r(f);f=h.next().value;h=tf(h);e=e.filter(function(k){var q;return!(null==(q=d.getIssue(k))?0:q.isArchived)});return h.some(function(k){return null===k})?e:onc(d,e,f)}))}),bg({refCount:!0,bufferSize:1}));this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new Hf;this.getIssue=function(e){return Kk(e.issue$)}};U(O6,qI);O6.\u0275dir=qI.\u0275dir;g=O6.prototype;
g.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"}].concat(v(this.menuItemFactory(a)))};g.ngOnInit=function(){this.initialSort&&this.initialSort.direction&&this.activeSort$.next(this.initialSort)};
g.ngAfterViewInit=function(){var a=this;(0,T.combineLatest)([this.rows$,this.displayedRows.changes.pipe(dg(void 0))]).pipe(fg(this.destroyed$)).subscribe(function(b){b=r(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[d.row.id,d]}));b=b.map(function(d){return c.get(d.id)}).filter(Boolean);a.correctedDisplayedRows.reset(b);Cf(a.correctedDisplayedRows)});this.focusManager=pA(new cnc(this.correctedDisplayedRows,t3a))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=nn(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?nP(this.domSafe,b):jt(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};
var onc=function(a,b,c){if(!c||!c.direction)return b;switch(c.active){case "status":return Ita(a.getIssue)(b,c.direction);case "assignee":return Jta(a.getIssue)(b,c.direction);case "reporter":return Lta(a.getIssue)(b,c.direction);case "type":return Kta(a.getIssue)(b,c.direction);case "createdTime":return Mta(a.getIssue)(b,c.direction);default:return b}};oi.Object.defineProperties(O6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}}});
O6.\u0275fac=function(a){return new (a||O6)(C(oL),C(Ik),C(mP))};
O6.\u0275cmp=w({type:O6,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&Ef(K6,5);if(a&2){var c;Df(c=Gf())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",tableColumns:"tableColumns"},features:[ee],decls:35,vars:10,consts:[["mat-table","","matSort","",1,"full-width",3,"dataSource","trackBy","matSortActive","matSortDirection","matSortChange"],["matColumnDef","focus-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex",
"-1","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","type",4,"matHeaderCellDef"],["matColumnDef","assignee"],["mat-header-cell","","mat-sort-header","assignee",4,"matHeaderCellDef"],["matColumnDef","reporter"],["mat-header-cell","","mat-sort-header","reporter",4,"matHeaderCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],
["matColumnDef","team"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["tabindex","-1","mat-cell",""],["mat-cell",""],[3,"id"],[3,"issue"],["mat-header-cell","","mat-sort-header","type"],["mat-header-cell","",
"mat-sort-header","assignee"],["mat-header-cell","","mat-sort-header","reporter"],["mat-header-cell","","mat-sort-header","status"],["mat-header-cell","","mat-sort-header","createdTime"],["buttonLabel","More options",3,"menuItems","click"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"]],template:function(a,b){a&1&&(F(0,"table",0),J("matSortChange",function(e){b.activeSort$.next(e)}),P(1,"async"),P(2,"async"),ve(3,1),M(4,
Y2a,1,0,"th",2),M(5,Z2a,1,0,"td",3),we(),ve(6,4),M(7,$2a,2,0,"th",2),M(8,a3a,2,1,"td",5),we(),ve(9,6),M(10,b3a,2,0,"th",2),M(11,c3a,3,3,"td",5),we(),ve(12,7),M(13,d3a,2,0,"th",8),M(14,e3a,3,3,"td",5),we(),ve(15,9),M(16,f3a,2,0,"th",10),M(17,g3a,3,3,"td",5),we(),ve(18,11),M(19,h3a,2,0,"th",12),M(20,i3a,3,3,"td",5),we(),ve(21,13),M(22,j3a,2,0,"th",14),M(23,k3a,3,3,"td",5),we(),ve(24,15),M(25,l3a,2,0,"th",2),M(26,m3a,3,3,"td",5),we(),ve(27,16),M(28,n3a,2,0,"th",17),M(29,o3a,3,3,"td",5),we(),ve(30,18),
M(31,p3a,1,0,"th",2),M(32,q3a,2,1,"td",5),we(),M(33,r3a,1,0,"tr",19),M(34,s3a,1,1,"tr",20),G());if(a&2){var c,d;E("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=Q(1,6,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=Q(2,8,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");B(33);E("matHeaderRowDef",b.tableColumns);B(1);E("matRowDefColumns",b.tableColumns)}},dependencies:[M6,N6,C4,u4,y4,v4,t4,z4,w4,x4,A4,B4,IZ,cP,C6,F6,E6,G6,H6,I6,
J6,D6,K6,Tx],styles:[".mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%]{width:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}"],
changeDetection:0});
var P6=function(a,b,c,d){qI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=mkc;this.TEA_LIGHT=lkc;this.getStatus=function(f){return f.snapshot[0].status};this.STATUS_FULL_TEXT=BL;this.STATUS_TERSE=xL;this.IssueStatus_strToTag=am;this.id$=Jk(this.bestRoute.paramMap.pipe(R(function(f){return $k(f.get("issueId"))}),uf(el),fg(this.destroyed$)));this.searchUrl$=this.id$.pipe(R(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=
this.id$.pipe(eg(function(f){return e.issues.watch(f)}));this.blockingIds$=this.issue$.pipe(R(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(eg(function(f){return EJ(e.issues,f)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(R(function(f){return f.filter(Gn)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(R(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(R(function(f){return f.filter(function(h){if(null==
h?0:h.isArchived)var k=!1;else{var q;h=null==h?void 0:null==(k=h.snapshot)?void 0:null==(q=k[0])?void 0:q.status;if(null==h||null==Fn[h])k=!1;else{var u;k=!(null==(u=Fn[h])?0:u.open)}}return k})}));this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(R(function(f){return f.map(function(h){return String(h.issueId)})}));this.thinking$=this.issues.thinking$;this.getMenuItems=function(f){return[{type:"action",label:"Remove this relationship",action:function(){var h=e.id$.value;null!=h&&pL(e.issues,2,
1,String(h),[String(f)]).catch(e.gotErr)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(f){var h=e.id$.value;null!=h&&(f=f.map(String),pL(e.issues,1,1,String(h),f).catch(e.gotErr))};this.gotErr=function(f){e.snackBar.open(Im(f)||"Error with network request","close",{panelClass:"error"})}};U(P6,qI);P6.\u0275dir=qI.\u0275dir;var u3a=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0},a.didChooseBlocking)};
oi.Object.defineProperties(P6.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});P6.\u0275fac=function(a){return new (a||P6)(C(gk),C(oL),C(FX),C(uK))};
P6.\u0275cmp=w({type:P6,selectors:[["ng-component"]],features:[ee],decls:5,vars:6,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[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"],["mat-flat-button","","color","primary","matTooltip","Add something this issue is blocking",1,"gmat-button","small",3,"click"],[4,"ngIf","ngIfElse"],["notLoaded",""],[1,"margin-s-top","flex-kids-x","gap-s"],[1,"section-heading","muted"],["noBlockedAndOpen",""],[3,"issueIds","menuItemFactory",4,"ngIf"],[3,"issueIds","menuItemFactory"],[1,"muted","margin-bottom"],[1,"unstyled","reverse-padded-sides"],[4,"ngFor","ngForOf"],[1,"padded-x",3,"routerLink"],[1,"right"],["mat-icon-button",
"","aria-label","",1,"gmat-button","invisible"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(F(0,"section",0),M(1,I3a,4,2,"ng-container",1),P(2,"async"),G(),M(3,J3a,2,0,"aside",2),P(4,"async"));a&2&&(B(1),E("ngIf",Q(2,2,b.blockingIds$)),B(2),E("ngIf",Q(4,4,b.thinking$)))},dependencies:[Kx,Gx,EI,FB,GB,wF,cN,O6,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 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 8px 8px 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 Q6=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new Vw;this.title=""};Q6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275cmp=w({type:Q6,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[Fc],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["mat-icon-button","","class","gmat-button medium expander",3,"collapsed","click",4,"ngIf"],["class","leaf",4,"ngIf"],[3,"issue"],["mat-icon-button","",1,"gmat-button","medium","expander",3,"click"],["name","arrow-dropdown","size",
"small"],[1,"leaf"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,K3a,2,3,"button",1),M(2,L3a,1,0,"div",2),H(3,"b-issue-title-cell",3),G());a&2&&(oe("margin-left",24*b.level,"px"),B(1),E("ngIf",b.expandable),B(1),E("ngIf",!b.expandable),B(1),E("issue",b.issue))},dependencies:[Gx,tH,FB,I6],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 pnc=["theInput"],R6=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new Vw;this.commit=new Vw};R6.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};R6.\u0275fac=function(a){return new (a||R6)};
R6.\u0275cmp=w({type:R6,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&Ef(pnc,5);if(a&2){var c;Df(c=Gf())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},decls:2,vars:7,consts:[["type","text",3,"placeholder","disabled","ngModel","keydown.enter","ngModelChange"],["theInput",""]],template:function(a,b){a&1&&(F(0,"input",0,1),J("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),G());a&2&&(pe("readonly",b.readonly)("override",b.readonly),E("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Mg,py,vy],styles:["input[_ngcontent-%COMP%] {\n      margin-left: 2px;\n      width: 100%;\n    }\n    input[disabled][_ngcontent-%COMP%] {\n      background-color: unset;\n      color: unset;\n      border-color: transparent;\n      padding-left: 8px;\n    }"],changeDetection:0});
var qnc=[Q6,C6,F6,E6,G6,H6,I6,J6,R6,D6],S6=function(){};[].concat(v(qnc));[].concat(v(qnc));S6.\u0275fac=function(a){return new (a||S6)};S6.\u0275mod=xc({type:S6});S6.\u0275inj=ic({providers:[],imports:[x2,ay,Ky,WH,yX,wG,vS,CM,WP,eV,jT]});
var T6=function(){};T6.\u0275fac=function(a){return new (a||T6)};T6.\u0275mod=xc({type:T6});T6.\u0275inj=ic({providers:[jnc],imports:[ay,kB]});
var U6=function(){};U6.\u0275fac=function(a){return new (a||U6)};U6.\u0275mod=xc({type:U6});U6.\u0275inj=ic({imports:[eA,Sz,rz,ay,Ky,wG,AF,T6,F4,cX,gH,Ly,KI,LZ,x2,pO,dP,ON,S6]});
var V6=function(){};V6.\u0275fac=function(a){return new (a||V6)};V6.\u0275mod=xc({type:V6});V6.\u0275inj=ic({imports:[rz,Sz,Ky,Ly,KI,wG,cX,gH,AF,BX,QN,dP,yX,ON,U6]});
var W6=function(a,b,c,d){var e=this;this.issueFridge=a;this.relationshipsFridge=b;this.issuePicker=c;this.butterBar=d;this.issueDetailsRoute=qn;this.parentIds$=new T.ReplaySubject(1);this.parents$=this.parentIds$.pipe(eg(function(f){return EJ(e.issueFridge,f)}));this.isThinking$=new T.BehaviorSubject(!1);this.parentNames$=this.parents$.pipe(R(R3a));this.parentIdAndNames$=(0,T.combineLatest)([this.parentIds$,this.parentNames$])},snc=function(a){!0!==a.isThinking$.getValue()&&null!=a.issueId&&a.issuePicker.open({title:"Add Parent to b/"+
a.issueId,allowMultipleIds:!1},function(b){rnc(a,a.issueId,b)})},rnc=function(a,b,c){var d=r(c).next().value,e,f,h,k;ef(function(q){if(1==q.nextAddress){e=d;if(null==e)return q.return();a.isThinking$.next(!0);return ff(q,a.relationshipsFridge.assignParentToOneIssue(e,b),2)}if(3!=q.nextAddress)return f=q.yieldResult,h=f.errors,(null==(k=h)?0:k.length)?(zK(a.butterBar,"Could not add parent"),q.jumpTo(3)):ff(q,mt(a.issueFridge,b),3);a.isThinking$.next(!1);gf(q)})};
oi.Object.defineProperties(W6.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(null!=a){this.issueId=a.issueId;var b;this.parentIds$.next(null!=(b=a.parentIssueIds)?b:[])}}}});W6.\u0275fac=function(a){return new (a||W6)(C(oL),C(VL),C(FX),C(xK))};
W6.\u0275cmp=w({type:W6,selectors:[["related-parents-compact"]],inputs:{issue:"issue"},decls:8,vars:8,consts:[["class","inline-block margin-s-right",4,"ngIf","ngIfElse"],["mat-stroked-button","","type","button","title","Add a parent to this issue",1,"gmat-button","small","add",3,"click"],[1,"pos-fill","centered-inside"],["loadingNames",""],[1,"inline-block","margin-s-right"],["class","muted",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted"],[1,"subtle-link",3,"routerLink","onedevHovercardTrigger"],["issueHovercard",
"onedevHovercard"],[3,"onedevIsHovercardReady","issueId","childContextId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId","childContextId"],["cardBody",""],[1,"inline-block","margin-s-right","muted"]],template:function(a,b){a&1&&(M(0,P3a,3,2,"section",0),P(1,"async"),F(2,"button",1),J("click",function(){return snc(b)}),P(3,"async"),O(4," Add parent "),H(5,"b-spinner",2),G(),M(6,Q3a,2,0,"ng-template",null,3,Mf));if(a&2){var c=Fe(7);E("ngIf",Q(1,4,b.parentIdAndNames$))("ngIfElse",
c);B(2);pe("thinking",Q(3,6,b.isThinking$))}},dependencies:[Kx,Gx,EI,xX,fN,gN,jN,hN,FB,cN,Tx],styles:["[_nghost-%COMP%] {\n      display: inline-block;\n    }\n    .add[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: none;\n    }\n    .add.thinking[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: flex; \n    }\n    .add.thinking[_ngcontent-%COMP%] {\n      color: transparent; \n    }\n    .issue-editor-false   [_nghost-%COMP%]     button.add {\n      display: none;\n    }"],
changeDetection:0});
var tnc="focus-indicator title type team id assignee status menu".split(" "),unc="focus-indicator drag-handle title type id assignee status menu".split(" ");
var X6=function(a,b,c,d){qI.call(this);var e=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.blockerIssueIds$=new T.BehaviorSubject([]);this.tableColumns=tnc;this.initialSort={active:"status",direction:"asc"};this.getMenuItems=function(f){return[{type:"action",label:"Remove blocker",action:function(){vnc(e,f)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var f=r(e.blockerIssueIds$.value),
h=f.next();!h.done;h=f.next())mt(e.issueFridge,h.value)}))};U(X6,qI);X6.\u0275dir=qI.\u0275dir;X6.prototype.ngOnInit=function(){};var vnc=function(a,b){var c;ef(function(d){if(1==d.nextAddress){io(a.analytics,mo.EDIT_ISSUE,"update","remove-blocker");Ut(d,2);var e=pL(a.issueFridge,2,2,a.issueId,[b]);return ff(d,e,4)}if(2!=d.nextAddress)return Vt(d,0);c=Wt(d);zK(a.butterBar,"Could not remove blocker "+b+". "+(Hm(c)?Im(c):c));gf(d)})};
oi.Object.defineProperties(X6.prototype,{blockerIds:{configurable:!0,enumerable:!0,set:function(a){this.blockerIssueIds$.next(null!=a?a:[])}}});X6.\u0275fac=function(a){return new (a||X6)(C(oL),C(xK),C(IM),C(kL))};
X6.\u0275cmp=w({type:X6,selectors:[["b-blockers-table"]],inputs:{blockerIds:"blockerIds",issueId:"issueId"},features:[ee],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","menuItemFactory","initialSort"]],template:function(a,b){a&1&&(M(0,S3a,2,4,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.blockerIssueIds$))},dependencies:[Gx,O6,Tx],encapsulation:2,changeDetection:0});
var Y6=function(){this.EMPTY_BLOCKER_LIGHT=gkc;this.EMPTY_BLOCKER_DARK=hkc;this.EMPTY_CHILD_LIGHT=ikc;this.EMPTY_CHILD_DARK=jkc};Y6.\u0275fac=function(a){return new (a||Y6)};
Y6.\u0275cmp=w({type:Y6,selectors:[["b-issue-dependencies-onboarding-dialog"]],decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","http://go/wtdm-home#parent-child-relationship","target","_blank",1,"nowrap"],["mat-dialog-actions",""],["mat-flat-button",
"","color","primary","matDialogClose","","cdkFocusInitial","",1,"gmat-button"]],template:function(a,b){a&1&&(F(0,"h1",0),O(1,"About Dependencies"),G(),F(2,"div",1)(3,"div",2),H(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),G(),F(8,"article")(9,"p",5),O(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. "),F(11,"a",6),O(12,"Learn more"),G()()()(),F(13,"div",7)(14,"button",8),O(15,"Ok"),
G()());a&2&&(B(4),E("src",b.EMPTY_CHILD_LIGHT,Qd),B(1),E("src",b.EMPTY_BLOCKER_LIGHT,Qd),B(1),E("src",b.EMPTY_CHILD_DARK,Qd),B(1),E("src",b.EMPTY_BLOCKER_DARK,Qd))},dependencies:[FB,dC,eC,fC,gC],styles:["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-dialog-content[_ngcontent-%COMP%], .mat-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:8px}"],
changeDetection:0});
var Z6=function(a){this.pathToAncestor=a},et=function(a){return new Z6(a.split(">"))},wnc=function(a,b){return new Z6([].concat(v(a.pathToAncestor),[b]))};Z6.prototype.hash=function(){return this.pathToAncestor.join(">")};Z6.prototype.equals=function(a){return!!a&&Hi(this.pathToAncestor,a.pathToAncestor)};var xnc=function(a,b){a=r(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=r(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
Z6.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};Z6.prototype.some=function(a){return this.pathToAncestor.some(a)};Z6.prototype.toString=function(){return this.hash()};
oi.Object.defineProperties(Z6.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 Z6(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});
var $6=function(){var a=this;this.draftRows=new Map;this.changed$=new T.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};$6.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:wnc(a,d),level:a.size-1,issue$:(0,T.of)(b),afterDraftId:null==c?void 0:c.afterDraftId,afterIssueId:null==c?void 0:c.afterIssueId,id:d,saving:!1,draftStartedAt:new Date};this.set(a,b);return b};
$6.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};$6.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=r(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 ync=function(a,b){return ef(function(c){return c.return((0,T.firstValueFrom)(a.changed$.pipe(dg(a.draftRows),R(function(d){return![].concat(v(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),uf(Boolean),R(function(){}))))})};$6.prototype.isSaving=function(){return[].concat(v(this.draftRows.values())).flat().some(function(a){return a.saving})};$6.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(v(c),[b]));this.changed$.next(this.draftRows)};
var znc={defaultExpandedChildren:0,defaultExpansionLevel:0,maxExpansion:Infinity},Anc=function(){var a={defaultExpansionLevel:3,defaultExpandedChildren:10,maxExpansion:500};this.config=a=void 0===a?znc:a;this.expansionState={};this.changed$=new T.ReplaySubject(1)},Bnc=function(a,b){b=b.hash();return a.expansionState[b]},a7=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},Cnc=function(a,b,c){var d=!1;c=r(c);for(var e=c.next();!e.done;e=
c.next()){e=e.value;var f=wnc(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===Bnc(a,e)&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=r(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=r(k.value);var q=k.next().value;k=k.next().value;q=et(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new Z6(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!Bnc(a,
b)){var u;a.expansionState[b.hash()]=null!=(u=a.config.defaultExpandedChildren)?u:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};
var b7=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Xl(this.activeSession.getUserEmail())},Enc=function(a,b){var c,d,e;return ef(function(f){if(1==f.nextAddress)return ff(f,Dnc(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(nta(d,e))})},Gnc=function(a,b){var c;return ef(function(d){if(1==d.nextAddress)return ff(d,Fnc(a,b),2);c=d.yieldResult;return d.return({snapshot:[c],
issueId:0,userData:void 0,aggregatedData:void 0,accessLimit:void 0,visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[]})})},Hnc=function(a,b,c){var d;return ef(function(e){if(1==e.nextAddress)return ff(e,Fnc(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
b7.prototype.create=function(a){var b=this,c,d;return ef(function(e){return 1==e.nextAddress?ff(e,b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,ff(e,mt(b.issueFridge,String(d)),3)):e.return({issueId:String(d)})})};
var Fnc=function(a,b){var c,d,e,f,h;return ef(function(k){if(1==k.nextAddress)return ff(k,(0,T.firstValueFrom)(a.issueFridge.watch(b).pipe(uf(el))),2);if(3!=k.nextAddress)return c=k.yieldResult,ff(k,Dnc(a,String(c.snapshot[0].componentId)),3);d=k.yieldResult;e=d.component;f=d.defaultTemplate;if(f){var q={};f.snapshot.priority&&(q.priority=f.snapshot.priority);f.snapshot.severity&&(q.severity=f.snapshot.severity);f.snapshot.type&&(q.type=f.snapshot.type)}else q={};if(c){var u={};c.snapshot[0].priority&&
(u.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(u.severity=c.snapshot[0].severity);c.snapshot[0].type&&(u.type=c.snapshot[0].type)}else u={};h=Object.assign({},{componentId:e.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},u,q,Inc(e,f));return k.return(h)})},Inc=function(a,b){var c=[],d,e,f={};a=r(null!=(e=null==(d=a.componentPathInfo)?
void 0:d.allCustomField)?e:[]);for(d=a.next();!d.done;f={$jscomp$loop$prop$customField$1745:f.$jscomp$loop$prop$customField$1745},d=a.next())if(f.$jscomp$loop$prop$customField$1745=d.value,f.$jscomp$loop$prop$customField$1745.required){e=void 0;d=null!=(e=f.$jscomp$loop$prop$customField$1745.typedDefaultValue)?e:new cJ({customFieldId:f.$jscomp$loop$prop$customField$1745.customFieldId});var h=e=void 0,k=void 0,q=null!=(k=null==(e=b)?void 0:null==(h=e.snapshot.customField)?void 0:h.find(function(u){return function(y){return y.customFieldId===
u.$jscomp$loop$prop$customField$1745.customFieldId}}(f)))?k:d;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},Dnc=function(a,b){var c,d,e,f,h,k;return ef(function(q){if(1==q.nextAddress)return ff(q,Promise.all([(0,T.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,T.firstValueFrom)(a.componentFridge.watch(b).pipe(uf(el)))]),2);c=q.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};
b7.\u0275fac=function(a){return new (a||b7)(t(fK),t(qH),t(oL),t(HJ),t(HK))};b7.\u0275prov=hc({token:b7,factory:b7.\u0275fac,providedIn:"root"});
var Lnc=function(a,b,c,d,e,f,h,k,q,u,y){var D=this;this.rootIssueId=a;this.analytics=b;this.butterBar=c;this.issueFridge=d;this.issuePicker=e;this.issueRelationshipsFridge=f;this.paths=h;this.router=k;this.issueCreationService=q;this.clearcut=u;this.refreshMonitor=y;this.expansion=new Anc;this.draftRows=new $6;this.refetchingAll$=new T.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(eg(function(){D.refetchingAll$.next(!0);var I=Kk(D.rows$),N=[];if(!I)return Promise.resolve();
N.push(FJ(D.issueRelationshipsFridge,{type:"descendants",ids:new Set([D.rootIssueId]),depth:3}));I=r(I);for(var L=I.next();!L.done;L=I.next())L=L.value,"data"===L.type&&N.push(mt(D.issueFridge,L.id)),1<L.level&&N.push(mt(D.issueRelationshipsFridge,L.id));return Promise.all(N).then(function(){D.refetchingAll$.next(!1)})}));this.rows$=(0,T.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,T.scheduled)((0,T.of)({}),T.asapScheduler)).pipe(eg(function(){return lKb(D.issueRelationshipsFridge,
D.rootIssueId,3)}),eg(function(){for(var I=new Map,N=r(Object.entries(D.expansion.expansionState)),L=N.next();!L.done;L=N.next()){L=r(L.value);var S=L.next().value;L=L.next().value;S=et(S).nodeId;var X=void 0;L=Math.max(L,null!=(X=I.get(S))?X:0);I.set(S,L)}return Jnc(D,I)}),R(function(I){return Knc(D,I)}),bg({refCount:!0,bufferSize:1}));this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(uf(el));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new Z6([this.rootIssueId]),
expandedCount:500,issue$:T.NEVER,hasChildren$:T.NEVER};this.supportsOneLineCreation=(0,T.firstValueFrom)(this.rootIssue$).then(function(I){return Xn(I.snapshot[0].componentId)}).then(function(I){return Enc(D.issueCreationService,I)});this.isOneLineCreationSupported=function(){return D.supportsOneLineCreation}},Mnc=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k;ef(function(q){switch(q.nextAddress){case 1:return d=b.nodeId,ff(q,(0,T.firstValueFrom)(a.issueFridge.watch(d)),2);
case 2:return(e=q.yieldResult)?ff(q,a.supportsOneLineCreation,3):q.return();case 3:f=q.yieldResult;if(!f){q.jumpTo(4);break}return ff(q,Gnc(a.issueCreationService,d),5);case 5:return h=q.yieldResult,q.return(a.draftRows.create(b,h,c));case 4:var u=a.router,y=a.paths,D=y.createIssue,I=e.snapshot[0].componentId,N=e.issueId;var L=mn("issues/:issueId/dependencies",{id:a.rootIssueId,params:void 0});return ff(q,jt(u,D.call(y,{component:I,parentIssueId:N,redirectUrl:L,afterIssueId:null==(k=c)?void 0:k.afterIssueId})),
6);case 6:return q.return()}})};
Lnc.prototype.addExistingChild=function(a){var b=this,c,d,e,f;ef(function(h){if(1==h.nextAddress)return ff(h,(0,T.firstValueFrom)(null!=(d=null==(c=a)?void 0:c.issue$)?d:b.rootIssue$),2);e=h.yieldResult;if(!e)return h.return();f=String(e.issueId);b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0},function(k){return ef(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k.map(String));io(b.analytics,mo.EDIT_ISSUE,"add","existing-child-issue");
return ff(q,Mo(),2)}a&&a7(b.expansion,a.ancestorChain,500);gf(q)})});gf(h)})};Lnc.prototype.saveDraft=function(a){var b=this,c;return ef(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return ff(d,Nnc(b,a),2)}return(c=d.yieldResult)?d.return(Onc(b,a,c)):d.return()})};
var Nnc=function(a,b){var c,d,e,f;return ef(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Ut(h,2),ff(h,Hnc(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;Vt(h,3);break;case 2:return f=Wt(h),zK(a.butterBar,"Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),h.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(0<k){var q=Math.min(k,108E5);dLb(a.analytics,"createIssue",q,"from-tree");io(a.analytics,
mo.CREATE_ISSUE,"createIssue","time-to-create-from-tree",q);q=a.clearcut;q.userLatency.record(k,"createIssue-fromTree",q.frontendAccessMode,q.environmentType)}a7(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var u=r(k.draftRows.values()),y=u.next();!y.done;y=u.next()){y=r(y.value);for(var D=y.next();!D.done;D=y.next())D=D.value,D.afterDraftId===b.id&&(D.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},Onc=function(a,b,c){var d,e,f,h,k,q;return ef(function(u){if(1==
u.nextAddress)return d=b.ancestorChain.parentNodeId,f=null!=(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?u.jumpTo(2):ff(u,ync(a.draftRows,f),2);if(4!=u.nextAddress)return ff(u,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=u.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&zK(a.butterBar,"Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);gf(u)})},Jnc=function(a,b,c){c=void 0===c?0:c;return(0,T.combineLatest)([a.rootIssueId].concat(v(b.keys())).map(function(d){return a.refetchingAll$.pipe(uf(function(e){return!e}),
eg(function(){return kKb(a.issueRelationshipsFridge,d)}))})).pipe(R(function(d){return d.filter(Boolean)}),eg(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(1===c)return(0,T.of)(e);d=Pnc(a,e,c);d=new Map(d.map(function(f){return[f,10]}));return Jnc(a,d,c+1).pipe(R(function(f){var h=new Map(e);f=r(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(k,q)}return h}))}))},Pnc=function(a,b,c){var d=[];a=[{id:a.rootIssueId,
level:-1}];for(var e={};0<a.length;){e.$jscomp$loop$prop$current$1747=a.pop();e.$jscomp$loop$prop$current$1747.level===c&&d.push(e.$jscomp$loop$prop$current$1747.id);if(!(e.$jscomp$loop$prop$current$1747.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$current$1747.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,v(k.map(function(q){return function(u){return{id:u.targetIssueId,level:q.$jscomp$loop$prop$current$1747.level+1}}}(e))))}e={$jscomp$loop$prop$current$1747:e.$jscomp$loop$prop$current$1747}}return d},
Knc=function(a,b){for(var c=[],d=[a.ROOT_ROW],e={};0<d.length;){e.$jscomp$loop$prop$parentRow$1749=d.pop();if("load-more-children"===e.$jscomp$loop$prop$parentRow$1749.type||"draft-issue"===e.$jscomp$loop$prop$parentRow$1749.type)c.push(e.$jscomp$loop$prop$parentRow$1749);else{e.$jscomp$loop$prop$parentRow$1749.id!==a.rootIssueId&&c.push(e.$jscomp$loop$prop$parentRow$1749);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$parentRow$1749.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,
e.$jscomp$loop$prop$parentRow$1749.expandedCount);e.$jscomp$loop$prop$childrenLevel$1750=e.$jscomp$loop$prop$parentRow$1749.level+1;e.$jscomp$loop$prop$parentRow$1749.expandedCount&&f.length<k.length&&(h=wnc(e.$jscomp$loop$prop$parentRow$1749.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.$jscomp$loop$prop$childrenLevel$1750,parentIssue$:e.$jscomp$loop$prop$parentRow$1749.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(u){var y=
wnc(q.$jscomp$loop$prop$parentRow$1749.ancestorChain,u.targetIssueId),D=u.targetIssueId,I=q.$jscomp$loop$prop$childrenLevel$1750,N=a.issueRelationshipsFridge.watch(u.targetIssueId).pipe(R(cua));var L=q.$jscomp$loop$prop$childrenLevel$1750;var S=y.nodeId,X=Bnc(a.expansion,y);if(void 0!==X)L=X;else if(1>L){var ka,ha;L=Math.min(10,null!=(ha=null==(ka=b.get(S))?void 0:ka.relatedChildren.length)?ha:0)}else L=0;return{type:"data",id:D,level:I,hasChildren$:N,ancestorChain:y,expandedCount:L,issue$:a.issueFridge.watch(u.targetIssueId)}}}(e));
d.push.apply(d,v(Qnc(a,k,e.$jscomp$loop$prop$parentRow$1749.ancestorChain).reverse()))}e={$jscomp$loop$prop$parentRow$1749:e.$jscomp$loop$prop$parentRow$1749,$jscomp$loop$prop$childrenLevel$1750:e.$jscomp$loop$prop$childrenLevel$1750}}return c},Qnc=function(a,b,c){var d=[].concat(v(b));c=a.draftRows.get(c);a={};c=r(c);for(var e=c.next();!e.done;a={$jscomp$loop$prop$draft$1753:a.$jscomp$loop$prop$draft$1753},e=c.next())a.$jscomp$loop$prop$draft$1753=e.value,b.some(function(f){return function(h){return h.id===
f.$jscomp$loop$prop$draft$1753.issueId}}(a))||(e=d.findIndex(function(f){return function(h){return h.id===f.$jscomp$loop$prop$draft$1753.afterDraftId||h.id===f.$jscomp$loop$prop$draft$1753.afterIssueId}}(a)),d.splice(-1===e?d.length:e+1,0,a.$jscomp$loop$prop$draft$1753));return d};
Lnc.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return ef(function(k){if(1==k.nextAddress)return 0===b.length?k.return():ff(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(q){return{issueId:q,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return zK(c.butterBar,"Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return Im(q)}))),k.return();gf(k)})};
var c7=function(a,b,c,d,e,f,h,k,q,u){this.analytics=a;this.butterBar=b;this.issueFridge=c;this.issuePicker=d;this.issueRelationshipsFridge=e;this.paths=f;this.router=h;this.issueCreationService=k;this.clearcut=q;this.refreshMonitor=u};c7.prototype.create=function(a){return new Lnc(a,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};
c7.\u0275fac=function(a){return new (a||c7)(t(IM),t(xK),t(oL),t(FX),t(VL),t(LK),t(Ik),t(b7),t(JO),t(kL))};c7.\u0275prov=hc({token:c7,factory:c7.\u0275fac,providedIn:"root"});
var d7=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new T.Subject;this.onRowsMoved$=new T.Subject;this.placeholder=this.rootElement.querySelector(".placeholder");this.insertionBar=this.rootElement.querySelector(".insertion-bar");this.dragPreviewTemplate=this.rootElement.querySelector(".drag-preview");this.activeDrag=!1;this.onDragOver=Uqb(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=U3a(k<=.25*f?"top":k>=.75*f?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var u=(k=null==(u=f.querySelector(".title-location"))?void 0:u.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;u=f.offsetLeft+u;k="after"===h?f.offsetTop+
f.offsetHeight:f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=u+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-u+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};Rnc(e,f,h)}});this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var h,k=null==(h=f.target)?void 0:
h.closest("tr");if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var q;if("none"===(null==(q=e.currentReorderingGuide)?void 0:q.position))return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){Snc(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,Tnc(e.rowSelectionModel),"mouse",4);Snc(e)})})};
d7.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(ft(c));Unc(this.rowSelectionModel);Vnc(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=1===this.rowSelectionModel.selectedCount?"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=r(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var Wnc=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)},Xnc=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(-1!==d&&0!==d){c=c.slice(0,d).reverse();c=r(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if("load-more-children"===d.row.type){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)}};
d7.prototype.moveUp=function(a){var b=a.element.previousElementSibling;if(b){if("load-more-children"===b.dataset.type){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)}};
d7.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;"load-more-children"===b.row.type?Wnc(this,a):(b=c&&b.row.level<dt(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
d7.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=ft(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":Wnc(this,b);break;case "ArrowRight":Xnc(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
d7.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=ft(a.rowElement),h=void 0,k=f;switch(a.position){case "current":k=f;h={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,h={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&h&&e.onRowsMoved$.next({movedRows:b,insertAt:h,parentAncestorChain:k,origin:c,actionMessage:T3a(d)})})}};
var Snc=function(a){for(var b=r(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=r(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;null==(d=a.updatingNoDropRows)||d.unsubscribe();var e,f;null==(e=a.dragPreview)||null==(f=e.parentElement)||f.removeChild(a.dragPreview);
a.activeDrag=!1},Rnc=function(a,b,c){if("current"!==c)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(1E3<=Date.now()-a.longHoveredRow.enterTime&&!a.longHoveredRow.emitted){var d=a.rows.toArray().find(function(e){return ft(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},Vnc=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(dg(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=r(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 e7=function(a){qI.call(this);var b=this;this.analytics=a;this.dragStarted$=new T.Subject;this.onRowsMoved$=new T.Subject;(0,T.merge)(this.dragStarted$,this.onRowsMoved$).pipe(Kpa(),fg(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Hj(c.map(function(e){return e.event.origin}),Gj);c=1===c.length?c[0]:"mixed";io(b.analytics,mo.EDIT_ISSUE,"reorderChildren",c);dLb(b.analytics,"reorderChildren",d,c)})};U(e7,qI);e7.\u0275dir=qI.\u0275dir;
e7.\u0275fac=function(a){return new (a||e7)(t(IM))};e7.\u0275prov=hc({token:e7,factory:e7.\u0275fac,providedIn:"root"});
var f7=function(){this.changed$=new T.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};f7.prototype.init=function(a){this.visibleRows=a};f7.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var x4a=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(dg(a.selectedRowHashes),R(function(f){return f.has(b.hash())}),Sf(),bg({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
f7.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};f7.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var Unc=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=r(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=et(e.value);for(var f=r(b),h=f.next();!h.done;h=f.next())h=h.value,xnc(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},Tnc=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return"data"===f.type}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(v(a.selectedRowHashes.values())).map(function(f){return et(f)}).map(function(f){return f.nodeId})),d=[];a=r(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};
oi.Object.defineProperties(f7.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(v(this.selectedRowHashes)).map(function(a){return et(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});
var Ync=function(){return["focus-indicator","load-more-children"]},Znc={type:"data",id:"",issue$:T.NEVER,hasChildren$:T.NEVER,ancestorChain:new Z6([]),level:0,expandedCount:0},g7=function(a,b,c,d,e,f,h,k,q,u,y,D,I){qI.call(this);var N=this;this.issueRelationshipsFridge=a;this.router=b;this.butterBar=c;this.analytics=d;this.issueArchiveService=e;this.ngZone=f;this.elementRef=h;this.domSafe=q;this.reorderingSessionTracker=u;this.cdr=y;this.relationsTableModelFactory=D;this.liveAnnouncer=I;this.tableColumns=
unc;this.trackBy=function(L,S){return S.ancestorChain.hash()+S.type};this.isLoadMoreRow=function(L,S){return"load-more-children"===S.type};this.isDataRow=function(L,S){return"data"===S.type};this.isDraftRow=function(L,S){return"draft-issue"===S.type};this.selectionModel=new f7;this.correctedDisplayedRows=new Hf;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(L){var S;return(null!=(S=Kk(N.rows$))?S:[]).findIndex(function(X){return ct(X,L)})};this.showError=function(L){return function(S){zK(N.butterBar,
L+". "+(Hm(S)?Im(S):S))}};this.subscriptions.add(WY(k,function(){return N.tableModel.draftRows.isSaving()||N.issueRelationshipsFridge.isSaving()},!1))};U(g7,qI);g7.\u0275dir=qI.\u0275dir;
g7.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId);this.rows$=(0,T.scheduled)([this.tableModel.rows$,(0,T.of)([Znc])],T.asyncScheduler).pipe(of(1),bg({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(eg(function(c){return(0,T.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),Qf(0,T.asapScheduler));this.subscriptions.add(b.subscribe(function(){a.cdr.detectChanges()}));this.rowReorderingModel=
new d7(this.elementRef.nativeElement,this.correctedDisplayedRows,this.ngZone,this.selectionModel);this.subscriptions.add(this.rowReorderingModel.onLongHover$.subscribe(function(c){var d=c.row;"load-more-children"===d.type?s4a(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,Bnc(c,d)||a7(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return ef(function(e){if(1==e.nextAddress)return pKb(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")),Cnc(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),ff(e,(0,T.firstValueFrom)(a.correctedDisplayedRows.changes.pipe(R(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.ancestorChain.nodeId===c.movedRows[0].nodeId&&h.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),uf(Boolean),wf(6E4))),2);d=e.yieldResult;
d.focus();gf(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
g7.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,T.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(fg(this.destroyed$)).subscribe(function(b){b=r(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);Cf(a.correctedDisplayedRows)});this.focusManager=pA(new cnc(this.correctedDisplayedRows,
ct))};g7.prototype.toggleExpansion=function(a){a7(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};g7.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(io(this.analytics,mo.EDIT_ISSUE,"navigate","to-child-issue"),b=nn(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?nP(this.domSafe,b):jt(this.router,b))};
var s4a=function(a,b){var c;return ef(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),a7(a.tableModel.expansion,b.ancestorChain.parentChain,500),ff(d,Mo(),2);a.focusManager.setActiveItem(c);gf(d)})};
g7.prototype.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(c){b.navigateToIssue(c,a)},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"Create child",action:function(){return ef(function(c){if(1==c.nextAddress)return ff(c,Mo(),2);$nc(b,a);gf(c)})},title:"Create child",icon:"add",hintText:"Shift+Enter"},{type:"action",label:"Add child",action:function(){b.addExistingChild(a)},title:"Add existing issue as child",icon:"add"},{type:"action",
label:"Create sibling",action:function(){return ef(function(c){if(1==c.nextAddress)return ff(c,Mo(),2);aoc(b,a);gf(c)})},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:"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:"ctrl+down"},{type:"action",label:"Indent",action:function(){Xnc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"ctrl+right"},{type:"action",label:"Unindent",action:function(){Wnc(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Unindent",icon:"arrow-left",hintText:"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(){boc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
g7.prototype.saveDraft=function(a){var b=this,c,d;return ef(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);return ff(e,(0,T.firstValueFrom)(b.displayedRows.changes.pipe(R(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),uf(Boolean),wf(6E4))),2)}c=e.yieldResult;ct(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);gf(e)})};
var A4a=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;ct(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},$nc=function(a,b){Mnc(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},aoc=function(a,b){"data"===b.type?Mnc(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):Mnc(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};g7.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var coc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};g7.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
g7.prototype.onRowKeydown=function(a,b){var c=this,d;return ef(function(e){if(1==e.nextAddress){c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);switch(b.keyCode){case 39:case 37:if(b.ctrlKey)return e.return();"data"===a.type&&(c.toggleExpansion(a),b.preventDefault());"load-more-children"===a.type&&(s4a(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}return e.jumpTo(0)}if(4!=e.nextAddress)return"BUTTON"!==b.target.tagName||b.shiftKey||b.metaKey?ff(e,c.tableModel.isOneLineCreationSupported(),
4):e.return();(d=e.yieldResult)&&("data"===a.type||"draft-issue"===a.type&&a.saving)&&(b.shiftKey&&"data"===a.type?$nc(c,a):aoc(c,a),b.preventDefault());return e.jumpTo(0)})};
var boc=function(a,b){var c,d;ef(function(e){if(1==e.nextAddress)return io(a.analytics,mo.EDIT_ISSUE,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),ff(e,(0,T.firstValueFrom)(a.rows$.pipe(R(function(f){return!f.find(function(h){return"data"===h.type&&h.id===b.id})}),uf(Boolean),wf(6E4))),2);ct(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);gf(e)})};
g7.prototype.unlinkFromParent=function(a){var b=this,c,d;return ef(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;io(b.analytics,mo.EDIT_ISSUE,"update","unlink-child-issue");return ff(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){yK(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};
g7.\u0275fac=function(a){return new (a||g7)(C(VL),C(Ik),C(xK),C(IM),C(i6),C(mg),C(sd),C(VY),C(mP),C(e7),C(mI),C(c7),C(dA))};
g7.\u0275cmp=w({type:g7,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&Ef(K6,5);if(a&2){var c;Df(c=Gf())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId"},features:[Je([mI]),ee],decls:46,vars:10,consts:[["mat-table","","multiTemplateDataRows","",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","focus-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"],["matColumnDef","id"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["matColumnDef","title"],["matColumnDef","type"],["matColumnDef","assignee"],["matColumnDef","status"],["matColumnDef","team"],["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",
"",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","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","componentBlur","focusin",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],
["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["focusIndicator",""],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["dragHandle",""],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"issue","expandable","expanded","level","expansionChange"],[3,"issue"],["buttonLabel","More options",3,"menuItems","click"],["mat-cell","",1,"text-center"],["mat-icon-button","","class","gmat-button medium","aria-label","Save",3,"matTooltip","click",4,"ngIf",
"ngIfElse"],["saving",""],["mat-icon-button","","aria-label","Save",1,"gmat-button","medium",3,"matTooltip","click"],["svgIcon","save",1,"icon-s"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],["placeholder","Start typing the title...",3,"value","readonly","valueChange","commit"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"],["mat-row","",3,"row","focusin","keydown"],["mat-row","","cdkTrapFocus","",
1,"draft",3,"row","keydown","keydown.escape","componentBlur","focusin"]],template:function(a,b){a&1&&(F(0,"table",0),ve(1,1),M(2,V3a,1,0,"th",2),M(3,W3a,2,0,"td",3),we(),ve(4,4),M(5,X3a,1,0,"th",2),M(6,Y3a,3,0,"td",5),we(),ve(7,6),M(8,Z3a,2,0,"th",2),M(9,$3a,2,1,"td",7),we(),ve(10,8),M(11,a4a,2,0,"th",2),M(12,b4a,2,0,"td",7),we(),ve(13,9),M(14,c4a,2,0,"th",2),M(15,d4a,4,8,"td",7),we(),ve(16,10),M(17,e4a,2,0,"th",2),M(18,f4a,3,3,"td",7),we(),ve(19,11),M(20,g4a,2,0,"th",2),M(21,h4a,3,3,"td",7),we(),
ve(22,12),M(23,i4a,2,0,"th",2),M(24,j4a,3,3,"td",7),we(),ve(25,13),M(26,k4a,2,0,"th",2),M(27,l4a,3,3,"td",7),we(),ve(28,14),M(29,m4a,1,0,"th",2),M(30,n4a,2,1,"td",7),we(),ve(31,15),M(32,o4a,1,0,"th",2),M(33,r4a,4,2,"td",16),we(),ve(34,17),M(35,t4a,6,7,"td",18),we(),ve(36,19),M(37,u4a,2,0,"th",2),M(38,v4a,2,4,"td",18),we(),M(39,w4a,1,0,"tr",20),M(40,y4a,2,8,"tr",21),M(41,z4a,1,4,"tr",22),M(42,B4a,1,2,"tr",23),G(),H(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(E("dataSource",b.rows$)("trackBy",b.trackBy),
B(39),E("matHeaderRowDef",b.tableColumns),B(1),E("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(1),E("matRowDefColumns",Ke(9,Ync))("matRowDefWhen",b.isLoadMoreRow),B(1),E("matRowDefColumns",coc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Ty,Gx,FB,hF,C4,u4,y4,v4,t4,z4,w4,x4,A4,B4,wF,IZ,t2,oO,Q6,C6,E6,G6,H6,J6,R6,cP,VO,cN,K6,Tx],styles:['.mat-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:32px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%]{width:32px}.mat-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-cell[_ngcontent-%COMP%]:first-of-type, .mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-cell[_ngcontent-%COMP%]:last-of-type, .mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}tr.mat-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-focus-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-row[_ngcontent-%COMP%]:focus-within   .mat-column-focus-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]{box-sizing:border-box;cursor:move;outline-width:0;padding:0px;width:18px}tr.mat-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:32px;opacity:.2}.mat-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 transparent;border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid transparent;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}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});
var h7=function(a,b,c,d,e,f){var h=this;this.paramsService=a;this.issueRelationshipsFridge=b;this.issueFridge=c;this.codeMentions=d;this.issueApi=e;this.eventsForIssue=f;this.id$=kM(this.paramsService,"issueId").pipe(Rf(1E3),Sf());this.issue$=this.id$.pipe(eg(function(k){return h.issueFridge.watch(k)}));this.issueEvents$=this.id$.pipe(eg(function(k){return h.eventsForIssue.watch(k)}),R(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.blockerIssueIds$=this.issue$.pipe(R(function(k){var q;
return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}),Sf(Hi));this.blockedIssueIds$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockingIssueId)?q:[]}),Sf(Hi));this.childrenIds$=this.id$.pipe(eg(function(k){return h.issueRelationshipsFridge.watch(k)}),R(function(k){var q;return null!=(q=null==k?void 0:k.relatedChildren.map(function(u){return u.targetIssueId}))?q:[]}));this.duplicateIssueIds$=this.issue$.pipe(R(function(k){var q;return null!=(q=
null==k?void 0:k.snapshot[0].duplicateIssueId)?q:[]}),Sf(Hi));this.blockersDualCount$=(0,T.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(eg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return doc(h,k,q,"BLOCKED_BY")}),bg({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(R(gt),bg({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,T.combineLatest)([this.id$,this.blockedIssueIds$]).pipe(eg(function(k){var q=r(k);k=q.next().value;q=q.next().value;
return doc(h,k,q,"BLOCKING")}),bg({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(R(gt),bg({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,T.combineLatest)([this.id$,this.childrenIds$]).pipe(eg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return doc(h,k,q,"CHILDREN")}),bg({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(R(gt),bg({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,T.combineLatest)([this.childrenDualCount$,
this.blockersDualCount$]).pipe(R(function(k){var q=r(k);k=q.next().value;q=q.next().value;return{open:it(k.open.count+q.open.count),total:it(k.total.count+q.total.count)}}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(R(gt),bg({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,T.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(eg(function(k){var q=r(k);k=q.next().value;q=q.next().value;return doc(h,k,q,"DUPLICATE")}),bg({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=
this.duplicatesDualCount$.pipe(R(function(k){return k.total}),R(ht),bg({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.relatedLinks)?q:[]}),R(function(k){return it(k.length)}),R(ht),bg({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(uf(el),R(Number),eg(function(k){return Xlc(h.codeMentions,k)}),R(function(k){var q,u;return it(null!=(u=null==(q=k.mentions)?void 0:q.totalMentions)?u:0)}),R(ht),bg({bufferSize:1,
refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(R(function(k){return it(k.filter(function(q){return q.isMajorEvent}).length)}),R(ht),bg({bufferSize:1,refCount:!0}))},doc=function(a,b,c,d){return b&&0!==c.length?99<c.length?a.issueApi.listIssues(D4a(b,d),{p:1,count:100}).then(function(e){e=e.issues.filter(Gn).filter(Hn).length;return{open:it(e),total:it(c.length)}}):EJ(a.issueFridge,c).pipe(R(function(e){return{open:it(e.filter(Gn).filter(Hn).length),total:it(c.length)}})):(0,T.of)({open:{count:0,
exact:!0},total:{count:0,exact:!0}})};h7.\u0275fac=function(a){return new (a||h7)(t(jM),t(VL),t(oL),t(f6),t(fK),t(DL))};h7.\u0275prov=hc({token:h7,factory:h7.\u0275fac,providedIn:"root"});
var i7=function(a,b,c,d,e,f,h,k,q,u,y,D,I){qI.call(this);var N=this;this.brain=a;this.issuePicker=b;this.issueRelationshipsFridge=c;this.issueFridge=d;this.butterBar=e;this.router=f;this.routePerformance=h;this.element=k;this.analytics=q;this.issuePermissionService=u;this.activeSession=y;this.counts=D;this.matDialog=I;this.issueDetailsRoute=qn;this.EMPTY_BLOCKER_LIGHT=gkc;this.EMPTY_BLOCKER_DARK=hkc;this.EMPTY_CHILD_LIGHT=ikc;this.EMPTY_CHILD_DARK=jkc;this.isThinking$=(0,T.combineLatest)([this.issueFridge.saving$,
this.issueRelationshipsFridge.saving$]).pipe(R(function(L){return L.some(Boolean)}));this.issueId$=this.brain.id$.pipe(uf(el),R(Xn));this.issue$=this.brain.issueJs$.pipe(uf(el));this.blockerIds$=this.issue$.pipe(R(function(L){var S,X,ka;return null!=(ka=null==(S=L.issue.snapshot[0])?void 0:null==(X=S.blockedByIssueId)?void 0:X.map(String))?ka:[]}));this.parentIds$=this.issue$.pipe(R(function(L){var S;return null!=(S=L.issue.parentIssueIds)?S:[]}));this.blockerIssues$=this.blockerIds$.pipe(eg(function(L){return EJ(N.issueFridge,
L)}));this.blockersCount$=this.blockerIssues$.pipe(R(function(L){return L.filter(Hn).length}));this.childrenIds$=this.issueId$.pipe(eg(function(L){return N.issueRelationshipsFridge.watch(L)}),R(function(L){var S;return null!=(S=null==L?void 0:L.relatedChildren.map(function(X){return X.targetIssueId}))?S:[]}));this.totalDaysOpen$=this.issue$.pipe(R(function(L){var S,X;return(null==(S=Dn(L))?void 0:null==(X=S.effort)?void 0:Cl(X,4))||0}));this.totalDaysComplete$=this.issue$.pipe(R(function(L){var S,
X;return(null==(S=Dn(L))?void 0:null==(X=S.effort)?void 0:Cl(X,5))||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(R(function(L){return L.length}));this.isTotalEstimatesEnabled=sH(this.activeSession,"enableAggregationRules");this.totalDaysCount$=(0,T.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(R(function(L){var S=r(L);L=S.next().value;S=S.next().value;return L+S}));this.totalDaysDisplayPercent$=V4a(this.totalDaysComplete$,this.totalDaysCount$);(0,T.combineLatest)([this.blockersCount$,
this.unarchivedChildIssueCount$]).pipe(R(function(L){var S=r(L);L=S.next().value;S=S.next().value;return L+S}));this.progressHovercardContent$=(0,T.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(R(function(L){var S=r(L);L=S.next().value;var X=S.next().value;S=S.next().value;return W4a(Math.round(100*L)/100)+" completed | "+W4a(Math.round(100*X)/100)+" open | "+S+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=
new T.Subject;(0,T.firstValueFrom)(aq("b-issue-relations-table tr .mat-column-title span",this.element.nativeElement).pipe(fg((0,T.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var L=function(){Q7b(N.routePerformance,"issue-details-w-tree")};requestAnimationFrame(L);setTimeout(L)}).catch(function(){})};U(i7,qI);i7.\u0275dir=qI.\u0275dir;
var S4a=function(a){var b,c;return ef(function(d){if(1==d.nextAddress)return io(a.analytics,mo.EDIT_ISSUE,"update","add-blocker"),ff(d,(0,T.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;a.issuePicker.open({title:"Add Blockers of "+c,allowMultipleIds:!0},function(e){eoc(a,c,e)});gf(d)})};i7.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||a.addExistingChild()};i7.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||$nc(a)};
var eoc=function(a,b,c){var d;ef(function(e){if(1==e.nextAddress){if(0===c.length)return e.return();Ut(e,2);var f=c.map(String);f=pL(a.issueFridge,1,2,String(b),f);return ff(e,f,4)}if(2!=e.nextAddress)return Vt(e,0);d=Wt(e);zK(a.butterBar,"Could not add "+c+" as blockers of "+b+". "+d);gf(e)})};i7.\u0275fac=function(a){return new (a||i7)(C(cO),C(FX),C(VL),C(oL),C(xK),C(Ik),C(R_),C(sd),C(IM),C(eO),C(qH),C(h7),C(cC))};
i7.\u0275cmp=w({type:i7,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&Ef(g7,5);if(a&2){var c;Df(c=Gf())&&(b.table=c.first)}},features:[ee],decls:46,vars:34,consts:[[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],[1,"table-header","muted","inline-block"],[3,"issue"],[1,"status","pos-tr","padded-s","flex-kids-x","gap-s","align-items-center"],[4,"ngIf"],["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,"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"],["noBlockersState",""],[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"],["class","progress-header",4,"ngIf"],[3,"hidden","rootIssueId",4,"ngIf"],["addBlocker",""],["addChildren",""],[4,"ngTemplateOutlet"],[3,"issueId","blockerIds",4,"ngIf","ngIfElse"],[3,"issueId","blockerIds"],[1,"muted"],[1,"emoji"],[1,"progress-header"],[1,"flex-kids-x","align-items-center"],
[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],[1,"completion"],["progressHovercard","onedevHovercard"],["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"],["effortHovercard","onedevHovercard"],[1,"onedev-hovercard-body"],[3,"rootIssueId"],["size","small","format","fill","title","Mark an existing issue as blocker.",1,"add",3,"disabled","onAction"],["size","small","format","fill","title","Create an issue as a child.",1,"add",3,"disabled","onAction"],["size","small","title","Add an existing issue as a child.",1,"add",3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"section",1)(2,"h4",2),O(3,
"Parents:"),G(),O(4,"\u00a0"),H(5,"related-parents-compact",3),P(6,"async"),G(),F(7,"p",4),M(8,E4a,1,0,"b-spinner",5),P(9,"async"),F(10,"button",6),J("click",function(){b.matDialog.open(Y6,{maxWidth:"1300px",width:"90%"})}),H(11,"mat-icon",7),G()(),F(12,"section")(13,"div",8)(14,"h4",9)(15,"div",10),H(16,"mat-icon",11),G(),O(17),P(18,"async"),G(),M(19,G4a,2,1,"ng-container",5),P(20,"async"),G(),M(21,I4a,3,4,"ng-container",5),P(22,"async"),M(23,K4a,6,1,"ng-template",null,12,Mf),G(),F(25,"section")(26,
"div",13)(27,"h4",9)(28,"div",14),H(29,"mat-icon",15),G(),O(30),P(31,"async"),G(),M(32,M4a,2,1,"ng-container",5),P(33,"async"),P(34,"async"),G(),M(35,N4a,28,24,"div",16),P(36,"async"),P(37,"async"),M(38,O4a,2,5,"b-issue-relations-table",17),P(39,"async"),M(40,R4a,4,5,"ng-container",5),P(41,"async"),G()(),M(42,T4a,3,3,"ng-template",null,18,Mf),M(44,U4a,6,6,"ng-template",null,19,Mf));if(a&2){var c,d;B(5);E("issue",null==(c=Q(6,10,b.issue$))?null:c.issue);B(3);E("ngIf",Q(9,12,b.isThinking$));B(9);Ge(" Blockers ",
Q(18,14,b.counts.countBlockersDisplay$)," ");B(2);E("ngIf",Q(20,16,b.blockersCount$));B(2);E("ngIf",Q(22,18,b.issueId$));B(9);Ge(" Child issues ",Q(31,20,b.counts.countChildrenDisplay$)," ");B(2);E("ngIf",Q(33,22,b.unarchivedChildIssueCount$)||0<((null==(d=Q(34,24,null==b.table?null:b.table.rows$))?null:d.length)||0));B(3);E("ngIf",b.isTotalEstimatesEnabled&&Q(36,26,b.unarchivedChildIssueCount$)&&Q(37,28,b.totalDaysCount$));B(3);E("ngIf",Q(39,30,b.issueId$));B(2);E("ngIf",null!==Q(41,32,b.unarchivedChildIssueCount$))}},
dependencies:[Gx,Qx,fN,jN,FB,hF,wF,oO,cN,W6,X6,g7,Tx,Yx],styles:["[_nghost-%COMP%]     h4 button{margin:-8px 0}[_nghost-%COMP%]     h4 button.gmat-button.mat-stroked-button.small{line-height:21px}.table-header[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.status[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%]{margin-top:4px}.status[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-1px}b-issue-relations-table[_ngcontent-%COMP%], b-blockers-table[_ngcontent-%COMP%]{display:block;overflow-x:auto}b-button.add[_ngcontent-%COMP%]{margin-left:16px}.emoji[_ngcontent-%COMP%]{font-size:1rem;padding:0 4px}.progress-header[_ngcontent-%COMP%]{padding-top:12px;font-size:.75rem;padding-bottom:16px}.progress[_ngcontent-%COMP%]{background:background(white);border-radius:6px;border:1px solid;border-color:#2b923d;border-color:var(--status-fixed-gfx);height:8px;width:132px;position:relative}.progress[_ngcontent-%COMP%] > .completion[_ngcontent-%COMP%]{background-color:#2b923d;background-color:var(--status-fixed-gfx);height:100%;border-radius:9px}.progress-hover-card[_ngcontent-%COMP%]{font-weight:bold}"],
changeDetection:0});
var j7=function(){};j7.\u0275fac=function(a){return new (a||j7)};j7.\u0275mod=xc({type:j7});j7.\u0275inj=ic({imports:[ay,KI,BX,QN,wG,gH,ON]});
var k7=function(){};k7.\u0275fac=function(a){return new (a||k7)};k7.\u0275mod=xc({type:k7});k7.\u0275inj=ic({imports:[eA,Sz,rz,ay,Ky,QN,wG,hC,AF,T6,F4,cX,gH,Ly,KI,LZ,x2,pO,S6,dP,ON,U6,BX,j7]});
var l7=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new Vw;this.PANEL_OPTIONS=foc};l7.\u0275fac=function(a){return new (a||l7)};
l7.\u0275cmp=w({type:l7,selectors:[["b-insights-graph-menu"]],inputs:{availablePanels:"availablePanels",iconOnly:"iconOnly",buttonClassname:"buttonClassname"},outputs:{openSidebar:"openSidebar"},decls:19,vars:11,consts:[["mat-button","",1,"main-button","gmat-button","square-right",3,"ngClass","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),
"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" "),[4,"ngIf"],["mat-button","","aria-label","Open insights types menu",1,"menu-button","gmat-button","square-left",3,"ngClass","disabled","matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-xs"],["xPosition","before"],["panelsMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"]],template:function(a,
b){a&1&&(F(0,"button",0),J("click",function(){b.openSidebar.emit({panel:void 0})}),Qc(),F(1,"svg",1)(2,"g",2),H(3,"path",3)(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9)(10,"circle",10)(11,"circle",11)(12,"circle",12),G()(),M(13,X4a,2,1,"ng-container",13),G(),Rc(),F(14,"button",14),H(15,"mat-icon",15),G(),F(16,"mat-menu",16,17),M(18,Y4a,2,2,"button",18),G());if(a&2){var c=Fe(17);pe("icon-only-mode",b.iconOnly);E("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size);
B(13);E("ngIf",!b.iconOnly);B(1);pe("icon-only-mode",b.iconOnly);E("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size)("matMenuTriggerFor",c);B(4);E("ngForOf",b.PANEL_OPTIONS)}},dependencies:[Jx,Kx,Gx,FB,mF,kF,pF,hF],styles:["[_nghost-%COMP%]{white-space:nowrap}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;margin-right:3px}.gmat-button[_ngcontent-%COMP%]{min-width:unset;height:32px;line-height:32px}.main-button[_ngcontent-%COMP%]{padding-right:4px}.menu-button[_ngcontent-%COMP%]{padding-left:4px}.main-button[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}mat-icon[_ngcontent-%COMP%]{line-height:0}.gmat-button.icon-only-mode[_ngcontent-%COMP%]{padding:0 2px}.gmat-button.icon-only-mode.main-button[_ngcontent-%COMP%]{padding:0 4px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:0;height:16px;width:16px}.gmat-button.icon-only-mode.mat-button[_ngcontent-%COMP%]:not([disabled]){color:#5f6368;color:var(--icon)}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small{padding:0 2px}.gmat-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-icon-button).small.main-button{padding:0 4px}"],
changeDetection:0});var foc=[{panel:"deployments",label:"Deployment Status"},{panel:"incidents",label:"Incident Context"}];
var m7=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};m7.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};m7.\u0275fac=function(a){return new (a||m7)(C(v6))};
m7.\u0275cmp=w({type:m7,selectors:[["insights-graph-menu-smart"]],inputs:{iconOnly:"iconOnly",buttonClassname:"buttonClassname"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar",4,"ngIf"],[3,"availablePanels","iconOnly","buttonClassname","openSidebar"]],template:function(a,b){a&1&&(M(0,$4a,3,3,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.availablePanels$))},dependencies:[Gx,l7,Tx],encapsulation:2,changeDetection:0});
var goc=function(a){return{isDupe:a}},n7=function(a,b,c,d,e){qI.call(this);var f=this;this.fridge=a;this.permissionsFridge=b;this.issuePicker=c;this.snackBar=d;this.eventsForIssueFridge=e;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 T.ReplaySubject(1);this.issue$=this.issueId$.pipe(eg(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(R(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(eg(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(R(function(h){return!(null==h||!h.writer)}),dg(!0));this.didChooseCanonical=function(h){return function(k){k=k[0];null!=k&&GJb(f.fridge,k,h).then(function(){mt(f.eventsForIssueFridge,h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open(Im(h)||"Error with network request","close",{panelClass:"error"})}};
U(n7,qI);n7.\u0275dir=qI.\u0275dir;
var a5a=function(a){var b,c;return ef(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!Kk(a.canEdit$)?d.return():ff(d,(0,T.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,ff(d,(0,T.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?hoc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId},a.didChooseCanonical(c.issueId));gf(d)})},hoc=function(a,
b){var c=b.snapshot[0].duplicateOfIssueId;null!=c&&a.fridge.removeDuplicate(c,b.issueId).then(function(){mt(a.eventsForIssueFridge,b.issueId)}).catch(a.gotErr)};oi.Object.defineProperties(n7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});n7.\u0275fac=function(a){return new (a||n7)(C(oL),C(WL),C(FX),C(uK),C(DL))};
n7.\u0275cmp=w({type:n7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[ee],decls:2,vars:5,consts:[["mat-stroked-button","","class","gmat-button small",3,"disabled","title","click",4,"ngIf"],["mat-stroked-button","",1,"gmat-button","small",3,"disabled","title","click"]],template:function(a,b){a&1&&(M(0,b5a,3,5,"button",0),P(1,"async"));a&2&&E("ngIf",Le(3,goc,Q(1,1,b.isDupe$)))},dependencies:[Gx,FB,Tx]});
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=w({type:o7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&Ef(jN,5);if(a&2){var c;Df(c=Gf())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngIf"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(F(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),
M(4,d5a,2,1,"ng-container",3),G()()(),H(5,"mat-icon",4));if(a&2){var c=Fe(1);B(2);ke("aria-label",b.label);B(2);E("ngIf",b.content);B(1);E("onedevHovercardTrigger",c)}},dependencies:[Gx,Qx,hF,fN,jN],encapsulation:2});var p7=function(){};p7.\u0275fac=function(a){return new (a||p7)};p7.\u0275mod=xc({type:p7});p7.\u0275inj=ic({imports:[ay,AF,QN]});
var q7=function(a,b,c,d,e,f,h,k,q){qI.call(this);var u=this;this.issueFridge=a;this.issuePermissionService=b;this.activeSession=c;this.appEvents=d;this.issueArchiveService=e;this.domSafe=f;this.editIssueService=h;this.matDialogService=k;this.analytics=q;this.issueId$=new T.ReplaySubject(1);this.HOTKEYS=pI;this.issue$=this.issueId$.pipe(eg(function(y){return u.issueFridge.watch(y)}));this.issueDerivedProperties$=this.issue$.pipe(R(function(y){var D,I,N,L,S,X,ka;return{modifiedTimeMilliseconds:null!=
(null==y?void 0:null==(D=y.aggregatedData)?void 0:D.modifiedTimeMicros)?y.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:null!=(X=null==y?void 0:null==(I=y.userData)?void 0:I.voted)?X:!1,voteCount:null!=(ka=null==y?void 0:null==(N=y.aggregatedData)?void 0:N.voteCount)?ka:0,notificationSubscription:bl(null==y?void 0:null==(L=y.userData)?void 0:L.notificationSubscription),retentionState:null==y?void 0:null==(S=y.aggregatedData)?void 0:S.retentionState}}));this.menuItems$=ioc(this);this.state$=(0,T.combineLatest)([this.issueId$,
this.issueDerivedProperties$,this.menuItems$]).pipe(R(function(y){var D=r(y);y=D.next().value;var I=D.next().value;D=D.next().value;return Object.assign({},{issueId:Number(y)},I,{menuItems:D})}))};U(q7,qI);q7.\u0275dir=qI.\u0275dir;g=q7.prototype;g.updateSubscription=function(a){var b=this,c;return ef(function(d){if(1==d.nextAddress)return(c=Kk(b.issueId$))?ff(d,b.editIssueService.updateSubscription(c,a),2):d.return();io(b.analytics,mo.EDIT_ISSUE,"updateSubscription",a);gf(d)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};g.showIndefiniteRetentionDialog=function(a){var b=this,c;return ef(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():ff(d,(0,T.firstValueFrom)(RB(b.matDialogService.open(N3,{maxWidth:560}))),2):(c=d.yieldResult)?ff(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return ef(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():ff(d,(0,T.firstValueFrom)(RB(b.matDialogService.open(M3,{maxWidth:560}))),2):(c=d.yieldResult)?ff(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return ef(function(d){return 1==d.nextAddress?ff(d,(0,T.firstValueFrom)(RB(b.matDialogService.open(O3,{maxWidth:560}))),2):(c=d.yieldResult)?ff(d,qRb(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var ioc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(cZa())},showIndefiniteRetentionDialog:function(){var c=Kk(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=Kk(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=Kk(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=Kk(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};return(0,T.combineLatest)([a.issue$,
a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(R(function(c){var d=r(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:ixa(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:gxa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:lxa(c),retentionState:oxa(c)};return[mhb(b,d),Qlc(b,d),khb(b,d),lhb(b,d)].filter(el)}))};
oi.Object.defineProperties(q7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});q7.\u0275fac=function(a){return new (a||q7)(C(oL),C(eO),C(qH),C(FK),C(i6),C(mP),C(fS),C(cC),C(IM))};
q7.\u0275cmp=w({type:q7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&Ef(o7,5);if(a&2){var c;Df(c=Gf())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[ee],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueId","voteCount","upvoted","isNewVoteButton"],[3,"issueId","hotkey","onHotkey"],["smartDupeBtn",""],["matTooltip","Notification menu","aria-label","Notification menu",3,"subscription","issueId","iconOnly","subscriptionChange","showNotificationSettings"],["buttonClassname","small",
3,"iconOnly"],["mat-icon-button","","aria-label","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-actions-menu"],["menu","matMenu"],["mat-menu-item","",3,"disabled","title","click",4,"ngFor","ngForOf"],["retentionHelpContent",""],["mat-menu-item","",3,"disabled","title","click"],[1,"icon-s",3,"svgIcon"],["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&&(M(0,i5a,14,13,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.state$))},dependencies:[wX,Kx,Gx,o7,YI,m7,FB,hF,mF,kF,pF,wF,o_,IY,HY,n7,Tx],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-button.small{font-size:.8125rem}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}  .issue-actions-menu .mat-menu-content button.mat-menu-item mat-icon.mat-icon{vertical-align:text-bottom}"]});
var r7=function(a){Z.call(this,a,-1,joc)};U(r7,Z);r7.prototype.setIssueIdsList=function(a){ml(this,1,a)};r7.prototype.addIssueIds=function(a){qb(this,1,a)};var joc=[1];r7.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(lb(this,1))}:void 0;return a};r7.messageId="b.BatchIssueDigestRequest";
var s7=function(a){Z.call(this,a,-1,koc)};U(s7,Z);s7.prototype.getIssueDigestsList=function(){return tb(this,dK,1)};var koc=[1];s7.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Eb(this.getIssueDigestsList(),tIb)}:void 0;return a};s7.messageId="b.BatchIssueDigestResponse";
var t7=function(a){this.executor=a};t7.prototype.call=function(a){var b=new r7;a=r(a);for(var c=a.next();!c.done;c=a.next())b.addIssueIds(String(c.value));return this.executor.post({url:"action/issues/digest",body:b,responseConstructor:s7})};t7.prototype.split=function(a,b){b=r(b.getIssueDigestsList());for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.getIssueId()===String(a))return c;return new dK};t7.\u0275fac=function(a){return new (a||t7)(t(hI))};
t7.\u0275prov=hc({token:t7,factory:t7.\u0275fac,providedIn:"root"});
var loc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},u7=function(a,b){qI.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_TERSE=xL;this.URLS=kt;this.IssueStatus_strToTag=am;this.ListIssuesHovercardMode=loc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new T.ReplaySubject(1);this.init=new T.ReplaySubject(1);this.issues$=this.issueIds$.pipe(uf(el),eg(function(d){return EJ(c.issueFridge,d)}),R(function(d){return"parent"===c.mode?d.filter(Hn):d.filter(Gn)}))};
U(u7,qI);u7.\u0275dir=qI.\u0275dir;u7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var o5a=function(a){var b;null==(b=a.hovercardInstance)||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=null!=c?c:[];for(var d="id:(",e=r(c.entries()),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}a.router.navigate([kt.ISSUE_LIST],{queryParams:{q:d}})})};
u7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(fg(this.destroyed$)).subscribe(function(){a.init.next()})};oi.Object.defineProperties(u7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});u7.\u0275fac=function(a){return new (a||u7)(C(oL),C(Ik))};
u7.\u0275cmp=w({type:u7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[ee],decls:5,vars:5,consts:[["role","dialog","aria-label","List Issues Hovercard",1,"onedev-hovercard-content"],["class","border-bottom header-container",4,"ngIf"],[4,"ngIf"],[1,"border-bottom","header-container"],["svgIcon","account_tree_24px",1,"icon-xxs","muted"],[1,"header-text"],["svgIcon","slo-status-no-data",
1,"icon-xxs","gfx-bad"],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"issue-row","flex-kids-x","space-between"],[1,"flex-kids-x","align-items-center"],[1,"issue-id","type-xs"],[1,"type-m","margin-right","issue-title"],[1,"bv2-priority",3,"ngClass"],[1,"flex-kids-x","more-issues-container","margin-s-right"],["mat-button","",1,"gmat-button","primary","small",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,j5a,5,3,"div",1),M(2,k5a,5,3,"div",1),M(3,r5a,4,3,"div",2),P(4,"async"),G());a&2&&(B(1),
E("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),E("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),B(1),E("ngIf",Q(4,3,b.issues$)))},dependencies:[Jx,Kx,Gx,hF,EI,FB,Tx],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 #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)}.issue-row[_ngcontent-%COMP%]   .b-chip[_ngcontent-%COMP%]{margin-left:8px}.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 v7=function(a,b){this.batchIssueDigests=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=loc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIds=[]};v7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&moc(this).then(function(c){b.issueIdToTitle=c})};v7.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var moc=function(a){a.reorderedAncestors=[];for(var b=Number(a.issueId);;)if(b=a.ancestors.get(b))if(1===b.sourceIssueIds.length)b=b.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIds=b.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();return(0,T.firstValueFrom)(a.batchIssueDigests.call(new Set(a.reorderedAncestors)).pipe(R(function(c){var d=new Map;c=r(c.getIssueDigestsList());for(var e=c.next();!e.done;e=c.next())e=e.value,d.set(Number(e.getIssueId()),e.getTitle());
return d})))};v7.\u0275fac=function(a){return new (a||v7)(C(t7),C(LK))};
v7.\u0275cmp=w({type:v7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Fc],decls:3,vars:2,consts:[["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted",3,"onedevHovercardTrigger","title"],["svgIcon","chevron-right","class","icon-xs chevron muted",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["svgIcon","chevron-right",1,"icon-xs","chevron","muted"],[3,
"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds","mode"],["cardBody",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"type-s",3,"href","issueId","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(H(0,"mat-icon",0),M(1,u5a,7,4,"ng-container",1),M(2,w5a,7,6,"ng-container",2));a&2&&(B(1),E("ngIf",1<b.multiParentIds.length),B(1),E("ngForOf",b.reorderedAncestors))},dependencies:[Kx,
Gx,hF,zW,fN,gN,jN,hN,xX,u7],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a.muted{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"]});
var w7=function(a){qI.call(this);var b=this;this.componentFridge=a;this.componentId$=new T.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(uf(function(c){return String(c.idOrKey)===b.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(uf(el),eg(function(c){return b.componentFridge.watch(c)}),uf(el));this.component$=(0,T.merge)(this.error$,this.rawComponent$).pipe(R(function(c){return c.componentId&&c.name?c:{componentId:Number(c.idOrKey),name:"(unknown)"}}));
this.isArchived$=this.component$.pipe(R(function(c){return c.archived}));this.componentPath$=this.component$.pipe(R(function(c){return Ko(c.componentPathInfo)}));this.init=new T.ReplaySubject(1);this.routes$=this.componentId$.pipe(R(function(c){var d={component:c};d=void 0===d?{}:d;return{createIssue:{path:"/issues/new",queryParams:d},componentSettings:Ssa(c),recentIssues:rn(c)}}))};U(w7,qI);w7.\u0275dir=qI.\u0275dir;w7.prototype.ngOnInit=function(){var a=this;this.component$.pipe(Tf(),fg(this.destroyed$)).subscribe(function(){a.init.next()})};
oi.Object.defineProperties(w7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});w7.\u0275fac=function(a){return new (a||w7)(C(HJ))};
w7.\u0275cmp=w({type:w7,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[ee],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["class","component-path squared b-chip s margin-s-bottom",4,"ngIf"],[4,"ngIf"],["class","flex-kids-y padded-s-top actions",4,"ngIf"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[4,"ngFor","ngForOf"],
[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"type-s","id-text"],[1,"flex-kids-y","padded-s-top","actions"],["aria-label","View recent open issues","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"gmat-button","primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(F(0,"div",0)(1,
"div",1),M(2,A5a,5,6,"div",2),M(3,B5a,9,3,"ng-container",3),P(4,"async"),M(5,C5a,7,3,"div",4),P(6,"async"),G()());a&2&&(B(2),E("ngIf",!b.hidePath),B(1),E("ngIf",Q(4,3,b.component$)),B(2),E("ngIf",Q(6,5,b.routes$)))},dependencies:[Kx,Gx,hF,GB,iT,Tx],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 x7=function(a,b){var c=this;this.componentFridge=a;this.issueEditComponentService=b;this.componentId$=new T.ReplaySubject(1);this.compactMode$=new T.BehaviorSubject(!1);this.editing=!1;this.component$=this.componentId$.pipe(eg(function(d){return c.componentFridge.watch(d).pipe(dg(void 0))}));this.isArchived$=this.component$.pipe(R(function(d){return null==d?void 0:d.archived}));this.componentPath$=(0,T.combineLatest)([this.componentId$,this.component$,this.compactMode$]).pipe(R(function(d){var e=
r(d);d=e.next().value;var f=e.next().value;e=e.next().value;if(null==f)return Ko({componentPathId:[Number(d)]});d=Ko(f.componentPathInfo);if(e){f=[];e=0;for(var h=d.length-1;0<=h;h--){var k=d[h],q=h===d.length-1?48:32;if(e>=q)break;var u=String(k.name),y=void 0;if(e+[].concat(v(u)).length>q){var D=q-e;q="";u=void 0===u?"":u;D=void 0===D?48:D;q=void 0===q?"...":q;y=[].concat(v(u));y.length<=D||(u=D-[].concat(v(q)).length,u=y.slice(-u).join(""),null!=String.prototype.trimStart&&(u=u.trimStart()),u=
q+u);y=!0}e+=[].concat(v(u)).length;f.unshift(Object.assign({},k,{name:u,isTruncated:y}));if(y)break}d.length>f.length&&(f[0].isSpliced=!0);d=f}return d}));this.isEmpty$=this.component$.pipe(R(function(d){return!d}));this.isThinkingAndEmpty$=(0,T.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return d&&e}));this.isReady$=this.isThinkingAndEmpty$.pipe(R(function(d){return!d}))};x7.prototype.ngOnInit=function(){};
oi.Object.defineProperties(x7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){null!=a&&this.componentId$.next(a)}},compactMode:{configurable:!0,enumerable:!0,set:function(a){this.compactMode$.next(a)}}});x7.\u0275fac=function(a){return new (a||x7)(C(HJ),C(p6))};
x7.\u0275cmp=w({type:x7,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",compactMode:"compactMode"},decls:3,vars:2,consts:[[3,"isReady",4,"ngIf","ngIfElse"],["componentPicker",""],[3,"isReady"],[1,"b-chip","squared","s"],["svgIcon","folder","title","Component folder path",1,"icon-xs"],["class","component-path",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon",
"edit-outline",1,"icon-xxs"],[1,"component-path"],[4,"ngFor","ngForOf"],["href","javascript:void(0);","title","Show all Components","class","subtle-link",3,"click",4,"ngIf"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],["card",""],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components",1,"subtle-link",3,"click"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],["placeholder","Choose Component",3,"selectedComponent","isRequired","shouldFocus",
"selectedComponentChange","dropdownClosed"]],template:function(a,b){a&1&&(M(0,L5a,10,9,"b-async-data-placeholder",0),M(1,N5a,2,5,"ng-template",null,1,Mf));if(a&2){var c=Fe(2);E("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[t2,Kx,Gx,FB,hF,xV,fN,gN,jN,hN,wF,w7,iT,Tx],styles:["a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.edit-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-color:#fff;border-color:var(--background)}.edit-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}"],
changeDetection:0});
var noc=["issueTitleEl"],ooc=["issueTitleInputEl"],Q5a=function(a){return{"width.px":a}},y7=function(){this.disabled=!1;this.updateTitle=new Vw;this.isEditMode=!1;this.editModeWidth=0};y7.prototype.ngDoCheck=function(){poc(this)};
var S5a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode&&setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0)},qoc=function(a,b){a.isEditMode=!1;poc(a);if(b)a.updateTitle.emit(b.trim());else{var c;b=null==(c=a.issueTitleEl)?void 0:c.nativeElement.textContent;a.updateTitle.emit(b.trim())}},P5a=function(a,b){if(b)"Enter"===b.key?qoc(a,b.target.value):("Escape"===b.key||"Esc"===b.key)&&S5a(a);else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;qoc(a,b)}},
poc=function(a){var b=a.editModeWidth,c,d;a.editModeWidth=null!=(d=Number(null==(c=a.issueTitleEl)?void 0:c.nativeElement.offsetWidth)+50)?d:b};y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=w({type:y7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(Ef(noc,5),Ef(ooc,5));if(a&2){var c;Df(c=Gf())&&(b.issueTitleEl=c.first);Df(c=Gf())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{updateTitle:"updateTitle"},decls:3,vars:3,consts:[["class","heading-m line-clamp-3",4,"ngIf"],[3,"ngStyle",4,"ngIf"],["mat-icon-button","","class","small","matTooltip","Edit issue title","aria-label","Edit issue title",3,"disabled",
"click",4,"ngIf"],[1,"heading-m","line-clamp-3"],["issueTitleEl",""],[3,"ngStyle"],["matInput","","aria-label","Enter a new title",1,"heading-m",3,"value","keyup","blur"],["issueTitleInputEl",""],["mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small",3,"disabled","click"],["svgIcon","edit-outline",1,"icon-xxs"]],template:function(a,b){a&1&&(M(0,O5a,3,2,"h3",0),M(1,R5a,3,4,"mat-form-field",1),M(2,T5a,2,1,"button",2));a&2&&(E("ngIf",!b.isEditMode),B(1),E("ngIf",
b.isEditMode),B(1),E("ngIf",b.hasAclToEdit))},dependencies:[Gx,Px,FB,hF,wF,sC,uC],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}mat-form-field[_ngcontent-%COMP%]{min-width:200px;max-width:100%;margin-bottom:-3px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}[_nghost-%COMP%]     .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{padding:0;border:0}[_nghost-%COMP%]     .mat-form-field-wrapper .mat-form-field-underline{margin-bottom:-15px}  .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:0}"]});
var z7=function(a){this.teamsService=a;this.onTeamLoaded=new T.ReplaySubject;this.teamName$=new T.BehaviorSubject("");this.isTeamLoaded=!1};z7.prototype.ngOnChanges=function(a){var b=this;a.teamId&&null!==this.teamId&&(0===this.teamId?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):this.teamsService.getTeam(String(this.teamId)).pipe(Tf(),R(function(c){return c.getName()})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
z7.\u0275fac=function(a){return new (a||z7)(C(bM))};
z7.\u0275cmp=w({type:z7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Fc],decls:7,vars:6,consts:[[3,"isReady"],["class","b-chip squared s",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[3,"componentId","teamId"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),M(1,U5a,4,4,"div",1),P(2,
"async"),G(),F(3,"onedev-hovercard",null,2),ve(5),H(6,"b-team-card",3),we(),G());if(a&2){var c;E("isReady",b.isTeamLoaded);B(1);E("ngIf",Q(2,4,b.teamName$));B(5);E("componentId",null==b.componentId?null:b.componentId.toString())("teamId",null!==(c=null==b.teamId?null:b.teamId.toString())&&void 0!==c?c:"0")}},dependencies:[Gx,hF,t2,fN,jN,bV,Tx],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});
var A7=function(a,b,c,d,e,f){qI.call(this);var h=this;this.issueFridge=a;this.issuePermissionService=b;this.router=c;this.refreshMonitor=d;this.currentSearchResults=e;this.eventsForIssueFridge=f;this.editTitleDisabled=this.starToggleDisabled=!1;this.issueId$=new T.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=loc;this.blockedIdsToUrlQuery=function(k){if(!(2>k.length))return{q:"blockingid:"+h.issueId}};this.HOTKEYS=pI;this.issue$=this.issueId$.pipe(eg(function(k){return h.issueFridge.watch(k)}));
this.issueTitle$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].title}));this.starred$=this.issue$.pipe(R(function(k){var q;return bl(null==k?void 0:null==(q=k.userData)?void 0:q.starred)}));this.componentId$=this.issue$.pipe(R(function(k){return bl(null==k?void 0:k.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(R(function(k){return bl(null==k?void 0:k.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(R(function(k){return!!(k&&0<k.size)}));this.teamId$=this.issue$.pipe(R(function(k){var q;
return bl(null==k?void 0:null==(q=k.aggregatedData)?void 0:q.teamId)}));this.blockedByids$=this.issue$.pipe(R(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(eg(function(k){return EJ(h.issueFridge,k)}),R(function(k){return k.filter(Gn)}),R(function(k){return k.length}));Jk(this.issuesBlockedByCount$.pipe(R(e6a),fg(this.destroyed$)),"Blocked");this.blockedByids$.pipe(R(f6a));this.blockedByids$.pipe(R(this.blockedIdsToUrlQuery));
this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.toggleStar=function(){var k=!!Kk(h.starred$);h.starToggleDisabled=!0;DJb(h.issueFridge,h.issueId,!k).pipe(Wf(),fg(h.destroyed$)).subscribe(function(){h.starToggleDisabled=!1})};this.toggleStarDebounced=zC(this.toggleStar,1E3)};U(A7,qI);A7.\u0275dir=qI.\u0275dir;
var roc=function(a,b){a.editTitleDisabled=!0;EJb(a.issueFridge,a.issueId,b).pipe(fg(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;mt(a.eventsForIssueFridge,a.issueId)})};A7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};oi.Object.defineProperties(A7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});
A7.\u0275fac=function(a){return new (a||A7)(C(oL),C(eO),C(Ik),C(kL),C(j6),C(DL))};
A7.\u0275cmp=w({type:A7,selectors:[["issue-banner"]],inputs:{issueId:"issueId"},features:[ee],decls:24,vars:27,consts:[[1,"first-row","flex-kids-x","flex-wrap","gap-s"],[4,"ngIf","ngIfElse"],[1,"second-row","flex-kids-x","align-items-center"],["mat-icon-button","",1,"small","back-btn",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward",1,"icon-s"],["mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"hotkey","onHotkey","click"],["svgIcon","refresh",1,
"icon-s"],[3,"starred","disabled","hotkey","starClicked","onHotkey"],[3,"title","disabled","hasAclToEdit","updateTitle"],["class","b-chip squared bad xs",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["withAncestorsBreadcrumbs",""],["withoutAncestorBreadcrumbs",""],[4,"ngTemplateOutlet"],[1,"b-chip","squared","bad","xs",3,"onedevHovercardTrigger"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[4,"ngIf"],[3,"onedevIsHovercardReady","hovercardInstance",
"currentIssueId","issueIds","mode"],["cardBody",""],[3,"componentId","teamId","onTeamLoaded"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId",4,"ngIf"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"ancestors","issueId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,W5a,2,1,"ng-container",
1),P(2,"async"),G(),F(3,"div",2)(4,"button",3),J("onHotkey",function(){return Vs(b.currentSearchResults)})("click",function(){return Vs(b.currentSearchResults)}),P(5,"async"),P(6,"async"),H(7,"mat-icon",4),G(),F(8,"button",5),J("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),H(9,"mat-icon",6),G(),F(10,"b-star-toggle",7),J("starClicked",function(){return b.toggleStar()})("onHotkey",function(){return b.toggleStarDebounced()}),P(11,"async"),G(),F(12,"issue-title",8),
J("updateTitle",function(e){return roc(b,e)}),P(13,"async"),P(14,"async"),G(),M(15,Y5a,3,2,"div",9),P(16,"async"),F(17,"onedev-hovercard",null,10),M(19,Z5a,4,7,"ng-container",11),G()(),M(20,b6a,4,7,"ng-template",null,12,Mf),M(22,d6a,4,7,"ng-template",null,13,Mf));if(a&2){var c=Fe(23),d;B(1);E("ngIf",Q(2,13,b.hasAncestors$))("ngIfElse",c);B(3);E("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=Q(5,15,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");ke("aria-label",Q(6,17,b.currentSearchResults.backNavigationLabel$));
B(4);E("hotkey",b.HOTKEYS.REFRESH);B(2);E("starred",Q(11,19,b.starred$))("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(2);E("title",Q(13,21,b.issueTitle$))("disabled",b.editTitleDisabled)("hasAclToEdit",Q(14,23,b.issuePermissionService.hasAclToEdit$));B(3);E("ngIf",Q(16,25,b.issuesBlockedByCount$))}},dependencies:[v7,Gx,Qx,x7,YI,fN,gN,jN,hN,X4,y7,u7,FB,hF,wF,aN,z7,Tx],styles:["[_nghost-%COMP%]{padding:8px;padding-bottom:0;overflow:auto;overflow-y:hidden}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.second-row[_ngcontent-%COMP%]{margin-top:8px}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}"]});
var h6a=function(a){return{"invisible zero-width":a}},B7=function(a){this.currentSearchResults=a;this.HOTKEYS=pI};B7.\u0275fac=function(a){return new (a||B7)(C(j6))};
B7.\u0275cmp=w({type:B7,selectors:[["b-pagination-one-issue"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"ngClass"],["mat-icon-button","","matTooltip","Previous Issue","aria-label","Previous Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left",1,"icon-l"],["mat-icon-button","","matTooltip","Next Issue","aria-label","Next Issue",1,"gmat-button","medium",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right",1,"icon-l"]],template:function(a,b){a&1&&
(M(0,i6a,9,12,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.currentSearchResults.issueIndex$))},dependencies:[Jx,Gx,YI,FB,hF,wF,Tx],styles:["[_nghost-%COMP%]{display:inline-block;color:#5f6368;color:var(--muted);white-space:nowrap}.bv2-material   [_nghost-%COMP%]     button.mat-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}output[_ngcontent-%COMP%]{font-weight:500}[mat-icon-button][_ngcontent-%COMP%]{margin-left:-4px}[_nghost-%COMP%]   span.zero-width[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:0}\n/*# sourceMappingURL=pagination_one_issue.css.map */"],
changeDetection:0});
var C7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(R(function(b){return null==b?void 0:b.issue}),uf(el));this.retentionState$=this.issue$.pipe(R(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(R(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),uf(el));this.accessLevel$=this.issue$.pipe(R(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),uf(el));this.state$=(0,T.combineLatest)([this.retentionState$,this.modifiedTime$,this.accessLevel$]).pipe(R(function(b){var c=r(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{retentionState:b,isShowingRetention:null==(null==b?void 0:b.scheduledDeletionTime)?!1:hLa(b),isShowingPublicPartner:"INTERNAL"!==c,modifiedTime:d,accessLevel:c}}))};C7.\u0275fac=function(a){return new (a||C7)(C(cO))};
C7.\u0275cmp=w({type:C7,selectors:[["chip-indicators"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","flex-kids-x gap-s",4,"ngIf"],[1,"flex-kids-x","gap-s"],[3,"accessLevel",4,"ngIf"],[3,"retentionState","compactMode","modifiedTime",4,"ngIf"],[3,"accessLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(M(0,m6a,2,1,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.state$))},dependencies:[Gx,JY,LS,Tx],encapsulation:2});
var D7=function(a){this.dialogRef=a;this.WTDM_INTRO_LIGHT=nkc;this.WTDM_INTRO_DARK=okc};D7.\u0275fac=function(a){return new (a||D7)(C(QB))};
D7.\u0275cmp=w({type:D7,selectors:[["onboarding-dialog"]],hostBindings:function(a,b){a&1&&J("keyup.esc",function(){b.dialogRef.close()},!1,vd)},decls:21,vars:2,consts:[["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"light-only",3,"src"],["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"dark-only",
3,"src"],[1,"center"],"href;http://go/wtdm-home#parent-child-relationship;target;_blank;aria-label;Learn more about parent child relationship".split(";"),"href;http://go/wtdm-home#types;target;_blank;aria-label;Learn more about new issue types".split(";"),"href;http://go/wtdm-home#estimated-effort-field;target;_blank;aria-label;Learn more about estimated effort field".split(";"),["mat-flat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(H(0,"img",0)(1,"img",1),F(2,"div",
2)(3,"h1"),O(4,"Welcome to a new Issue Detail Page \ud83c\udf89"),G()(),F(5,"ul")(6,"li"),O(7," Model the work required to close any issue through a new parent-child feature, visualized as a 'tree' in the Dependencies tab. "),F(8,"a",3),O(9,"Learn more"),G()(),F(10,"li"),O(11," Break down your goals by size / complexity with new issue types - Project, Milestone, Feature, Epic, Story and Task. "),F(12,"a",4),O(13,"Learn more"),G()(),F(14,"li"),O(15," Specify the effort required to complete an issue with a new \u2018estimated effort\u2019 field. "),
F(16,"a",5),O(17,"Learn more"),G()()(),F(18,"div",2)(19,"button",6),J("click",function(){return b.dialogRef.close()}),O(20," Get started "),G()());a&2&&(E("src",b.WTDM_INTRO_LIGHT,Qd),B(1),E("src",b.WTDM_INTRO_DARK,Qd))},dependencies:[FB],styles:['img[_ngcontent-%COMP%]{max-width:100%;min-height:188px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0em;font-weight:400}ul[_ngcontent-%COMP%]{list-style-type:disc;margin:20px;font-size:1rem;color:#5f6368;color:var(--text-muted)}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:24px;margin:10px}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}']});
var E7=function(a,b){this.dialog=a;this.userPreferencesManager=b;this.shouldShow$=this.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.pipe(R(function(c){return void 0===c.onboardingDialogAcknowledgedMillis}))};E7.prototype.openIfNecessary=function(){var a=this,b,c;ef(function(d){if(1==d.nextAddress)return ff(d,(0,T.firstValueFrom)(a.shouldShow$),2);b=d.yieldResult;if(!b)return d.jumpTo(0);c={maxWidth:"700px",disableClose:!0};a.dialog.open(D7,c);return ff(d,soc(a),0)})};
var soc=function(a){return ef(function(b){return ff(b,(0,T.firstValueFrom)(a.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},a.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,{onboardingDialogAcknowledgedMillis:Date.now()})})),0)})};E7.\u0275fac=function(a){return new (a||E7)(t(cC),t(PI))};E7.\u0275prov=hc({token:E7,factory:E7.\u0275fac,providedIn:"root"});
var F7=function(){var a=this;this.pressed=new Vw;this.disabled=!1;this.getTooltip=function(){return a.disabled?"Deployment status is only available for submitted Boq, Pod & Annealing CLs. For more information, go/g3g-guide.":"Open the insights graph"}};F7.\u0275fac=function(a){return new (a||F7)};
F7.\u0275cmp=w({type:F7,selectors:[["insights-graph-btn"]],inputs:{disabled:"disabled"},outputs:{pressed:"pressed"},decls:14,vars:3,consts:[["mat-stroked-button","","color","primary",1,"gmat-button",3,"title","disabled","click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),
"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" ")],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return b.pressed.emit()}),O(1,"Insights "),Qc(),F(2,"svg",1)(3,"g",2),H(4,"path",3)(5,"path",4)(6,"path",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"circle",9)(11,"circle",10)(12,"circle",11)(13,"circle",12),G()()());a&2&&(E("title",b.getTooltip())("disabled",b.disabled),ke("aria-label",b.getTooltip()))},dependencies:[FB],styles:["button.gmat-button[_ngcontent-%COMP%]{line-height:20px;padding:0 5px;font-size:.75rem;font-weight:500;font-family:Roboto,Arial,sans-serif}[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:text-bottom}\n/*# sourceMappingURL=insights_graph_btn.css.map */"],
changeDetection:0});
var toc=new od("PeoplekitClientConfig"),uoc=function(a){this.matcher=a};uoc.prototype.filterResult=function(a){for(var b=a.getTargetList(),c=b.length-1;0<=c;c--)1===b[c].getTargetType()&&this.matcher(b[c].getValue())&&b.splice(c,1);return b.length?a:null};uoc.prototype.reset=function(){};
var woc=function(a){var b=new voc;this.apiEnv_=a;this.experimentsConfig_=b};
var voc=function(){};voc.prototype.getProfileId=function(){return""};
var G7=function(a){var b=new wdc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(b.customAuthHeaders_=a.customAuthHeaders);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new woc(b.getPeopleApiEnv())};G7.\u0275fac=function(a){return new (a||G7)(t(toc))};G7.\u0275prov=hc({token:G7,factory:G7.\u0275fac});
var H7=function(a,b,c,d,e,f){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.selectionChange=new Vw;this.sessionOptions=(new cr).setFilter(xoc);this.inputSearchDelay=200;this.destroyed$=new T.ReplaySubject(1);this.inputChanged$=new T.ReplaySubject(1)};H7.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
H7.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);n6a(b,this.config);var c;this.autocomplete=null==(c=this.clientConfig.autocompleteFactory)?void 0:c.create(yoc(this),this.inputEl.nativeElement,this.peopleKitService.peopleStore,b,this.sessionOptions);$$b(this.autocomplete,function(d){a.selectionChange.emit(d)});this.inputChanged$.pipe(Qf(this.inputSearchDelay)).subscribe(function(){a.search()})};
var yoc=function(a){if(!a.peopleKitService.autocompleteAnchor){var b=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=b;a.renderer.addClass(b,"peoplekit-autocomplete-anchor");var c;(null!=(c=Jva(a.inputEl.nativeElement))?c:a.document.body).append(b)}return a.peopleKitService.autocompleteAnchor};H7.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
H7.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};H7.\u0275fac=function(a){return new (a||H7)(C(toc),C(mi),C(G7),C(sd),C(mg),C(Zv))};
H7.\u0275dir=w({type:H7,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.inputChanged$.next()})("focus",function(){return b.search()})("blur",function(){return b.cancel()})},inputs:{config:["peoplekitAutocompleteConfig","config"],sessionOptions:["peoplekitSearchSessionOptions","sessionOptions"],inputSearchDelay:["peoplekitAutocompleteInputSearchDelay","inputSearchDelay"]},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},
exportAs:["peoplekitAutocomplete"]});var xoc=QUa(1);
var zoc=["popOver"],Aoc=["inputBox"],I7=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},Boc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new Vw;this.inputValue="";this.sessionOptions=Coc};I7.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
I7.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},Boc,this.defaultAutocompleteConfig,this.autocompleteConfig))};I7.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};I7.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};I7.\u0275fac=function(a){return new (a||I7)(C(Doc,8))};
I7.\u0275cmp=w({type:I7,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(Ef(zoc,7),Ef(Aoc,5));if(a&2){var c;Df(c=Gf())&&(b.popOver=c.first);Df(c=Gf())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},features:[Fc],attrs:["anchor",""],decls:4,vars:3,consts:[[3,"anchor","displayUnder","editorTemplate",
"closedWithAction"],["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["peoplekitAutocomplete","",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","peoplekitAutocompleteSelectionChange","ngModelChange"],["inputBox",""]],template:function(a,b){a&1&&(F(0,"onedev-pop-over-edit-panel",0,1),J("closedWithAction",function(d){return b.onPopOverClose(d)}),G(),M(2,o6a,2,3,"ng-template",null,2,Mf));if(a&2){var c=Fe(3);E("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[Mg,py,vy,O4,H7],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 Doc=new od("user-picker-autocomplete-config"),Boc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},Coc=(new cr).setFilter($r(QUa(1),new uoc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));
var q6a=function(a){return{$implicit:a}},Eoc=0,J7=function(){this.val="";this.disabled=!1;this.emailChange=new Vw;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+Eoc;this.onChange=function(){};this.onTouched=function(){};Eoc++};U(J7,TP);g=J7.prototype;g.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
g.onPopOverClose=function(a){null!=a&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.writeValue=function(a){null!=a&&(this.val=a)};g.isActive=function(){return this.active||this.popOverOpen};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};
oi.Object.defineProperties(J7.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});J7.\u0275fac=function(a){return new (a||J7)};
J7.\u0275cmp=w({type:J7,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&Ef(I7,7);if(a&2){var c;Df(c=Gf())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],features:[Je([{provide:TP,useExisting:dc(function(){return J7}),multi:!0},{provide:Ix,useExisting:dc(function(){return J7}),multi:!0}]),
ee],decls:7,vars:9,consts:[[1,"unstyled-button",3,"focus","blur","click"],["anchor",""],[4,"ngIf","ngIfElse"],["plainText",""],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"anchor","autocompleteConfig","closed"],[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){a&1&&(F(0,"button",0,1),J("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),M(2,r6a,2,4,"ng-container",2),M(3,s6a,1,1,"ng-template",null,3,Mf),M(5,t6a,2,0,"svg",4),G(),F(6,"onedev-user-picker-panel",5),J("closed",function(e){return b.onPopOverClose(e)}),G());if(a&2){var c=Fe(1),d=Fe(4);pe("active",b.isActive());ke("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(2);E("ngIf",b.selectedUserTemplate)("ngIfElse",
d);B(3);E("ngIf",!b.disabled);B(1);E("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[Gx,Qx,I7],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 Foc=["picker"],K7=function(){this.disabled=!1;this.emailChange=new Vw;this.userEmail=""};U(K7,TP);K7.prototype.openPopOver=function(){this.picker.openPopOver()};K7.prototype.isActive=function(){return this.picker.isActive()};oi.Object.defineProperties(K7.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=Tl(a)||""}}});K7.\u0275fac=function(){var a;return function(b){return(a||(a=hd(K7)))(b||K7)}}();
K7.\u0275cmp=w({type:K7,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&Ef(Foc,7);if(a&2){var c;Df(c=Gf())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[Je([{provide:TP,useExisting:dc(function(){return K7}),multi:!0}]),ee],decls:4,vars:4,consts:[[3,"email","disabled","labelledById","selectedUserTemplate","emailChange"],["picker","onedevUserPicker"],["userChip",
""],[3,"email","teamId","enableSmallChip",4,"ngIf"],[3,"email","teamId","enableSmallChip"]],template:function(a,b){a&1&&(F(0,"onedev-user-picker",0,1),J("emailChange",function(d){return b.emailChange.emit(d)}),G(),M(2,v6a,1,1,"ng-template",null,2,Mf));if(a&2){var c=Fe(3);E("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[Gx,zS,J7],styles:["b-user-membership-chip[_ngcontent-%COMP%]     .user-chip-small, b-user-membership-chip[_ngcontent-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}\n/*# sourceMappingURL=user_picker.css.map */"]});
var L7=function(a){Z.call(this,a,-1,Goc)};U(L7,Z);L7.prototype.getName=function(){return V(this,1)};L7.prototype.setName=function(a){return yl(this,1,a)};var Hoc=function(a){Z.call(this,a)};U(Hoc,Z);var Goc=[2];L7.prototype.toObject=function(){return Ioc(void 0,this)};var Ioc=function(a,b){if(null!=b){var c={name:V(b,1),buganizerOrCustomStatusesList:Eb(tb(b,Hoc,2),Joc,a)};a&&(c.$jspbMessageInstance=b);return c}},Koc=[1,2];Hoc.prototype.toObject=function(){return Joc(void 0,this)};
var Joc=function(a,b){if(null!=b){var c={buganizerStatus:n(Ur(b,1,Koc)),customStatusId:n(Ur(b,2,Koc))};a&&(c.$jspbMessageInstance=b);return c}};
var Loc=function(a){Z.call(this,a)};U(Loc,Z);g=Loc.prototype;g.getId=function(){return hj(this,1)};g.setId=function(a){return Xk(this,1,a)};g.getName=function(){return V(this,2)};g.setName=function(a){return yl(this,2,a)};g.setColor=function(a){return yl(this,4,a)};g.getCustomField=function(){return m(this,M7,6)};g.setCustomField=function(a){return Db(this,6,a)};var M7=function(a){Z.call(this,a)};U(M7,Z);M7.prototype.getCustomFieldId=function(){return hj(this,1)};
M7.prototype.setCustomFieldId=function(a){return Xk(this,1,a)};M7.prototype.getCustomFieldValue=function(){return V(this,2)};M7.prototype.setCustomFieldValue=function(a){return yl(this,2,a)};Loc.prototype.toObject=function(){return Moc(void 0,this)};var Moc=function(a,b){if(null!=b){var c={id:hj(b,1),name:V(b,2),color:V(b,4),buganizerStatus:Y(b,5,0),customField:Noc(a,b.getCustomField())};a&&(c.$jspbMessageInstance=b);return c}};M7.prototype.toObject=function(){return Noc(void 0,this)};
var Noc=function(a,b){if(null!=b){var c={customFieldId:hj(b,1),customFieldValue:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Poc=function(a){Z.call(this,a,-1,Ooc)};U(Poc,Z);Poc.prototype.getState=function(){return Y(this,2,0)};var N7=function(a){Z.call(this,a)};U(N7,Z);N7.prototype.getResourceId=function(){return hj(this,2)};N7.prototype.setResourceId=function(a){Xk(this,2,a)};var Qoc=function(a){Z.call(this,a)};U(Qoc,Z);var Ooc=[3,9,4,5,6];Poc.prototype.toObject=function(){return Roc(void 0,this)};
var Roc=function(a,b){if(null!=b){var c={kanbanProjectId:V(b,1),state:Y(b,2,0),failureReason:V(b,8),iterationMappingsList:Eb(tb(b,N7,3),O7,a),savedQueryMappingsList:Eb(tb(b,N7,9),O7,a),epicMappingsList:Eb(tb(b,N7,4),O7,a),storyMappingsList:Eb(tb(b,N7,5),O7,a),resourceUpdateFailuresList:Eb(tb(b,Qoc,6),Soc,a),migrationAttempts:hj(b,7)};a&&(c.$jspbMessageInstance=b);return c}};N7.prototype.toObject=function(){return O7(void 0,this)};
var O7=function(a,b){if(null!=b){var c={kanbanId:V(b,1),resourceId:hj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};Qoc.prototype.toObject=function(){return Soc(void 0,this)};var Soc=function(a,b){if(null!=b){var c={resourceName:V(b,1),failureReason:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Uoc=function(a){Z.call(this,a,-1,Toc)};U(Uoc,Z);g=Uoc.prototype;g.getState=function(){return Y(this,2,0)};g.getStart=function(){return m(this,vj,3)};g.setStart=function(a){return Db(this,3,a)};g.getEnd=function(){return m(this,vj,4)};g.setEnd=function(a){return Db(this,4,a)};var Voc=function(a){Z.call(this,a)};U(Voc,Z);Voc.prototype.setWorkItemId=function(a){return yl(this,1,a)};var Toc=[9];Uoc.prototype.toObject=function(){return Woc(void 0,this)};
var Woc=function(a,b){if(null!=b){var c={jobId:V(b,1),state:Y(b,2,0),failureReason:V(b,8),start:Zu(a,b.getStart()),end:Zu(a,b.getEnd()),expectedWorkItemUpdatesCount:hj(b,5),workItemUpdatesCount:hj(b,6),workItemUpdateFailuresList:Eb(tb(b,Voc,9),Xoc,a)};a&&(c.$jspbMessageInstance=b);return c}};Voc.prototype.toObject=function(){return Xoc(void 0,this)};var Xoc=function(a,b){if(null!=b){var c={workItemId:V(b,1),failureReason:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Yoc=function(a){Z.call(this,a)};U(Yoc,Z);var P7=function(a){Z.call(this,a)};U(P7,Z);P7.prototype.getId=function(){return hj(this,1)};P7.prototype.setId=function(a){return Xk(this,1,a)};var Zoc=function(a){Z.call(this,a)};U(Zoc,Z);Zoc.prototype.setWorkItemId=function(a){return yl(this,1,a)};var $oc=function(a){Z.call(this,a)};U($oc,Z);var apc=function(a){Z.call(this,a)};U(apc,Z);var Q7=function(a){Z.call(this,a)};U(Q7,Z);Q7.prototype.getId=function(){return hj(this,sb(this,R7,1))};
Q7.prototype.setId=function(a){return ho(this,1,R7,a)};var S7=function(a){Z.call(this,a)};U(S7,Z);S7.prototype.getQuery=function(){return V(this,1)};S7.prototype.setQuery=function(a){return yl(this,1,a)};var T7=function(a){Z.call(this,a)};U(T7,Z);T7.prototype.getId=function(){return V(this,1)};T7.prototype.setId=function(a){return yl(this,1,a)};var U7=function(a){Z.call(this,a)};U(U7,Z);U7.prototype.getId=function(){return hj(this,1)};U7.prototype.setId=function(a){return Xk(this,1,a)};
var V7=[1,2,3,4,5,6,7,8];Yoc.prototype.toObject=function(){return bpc(void 0,this)};var bpc=function(a,b){if(null!=b){var c={backlogScope:cpc(a,Bl(b,P7,1,V7)),drillinScope:dpc(a,Bl(b,Zoc,2,V7)),goalsScope:epc(a,Bl(b,$oc,3,V7)),inboxScope:fpc(a,Bl(b,apc,4,V7)),iterationScope:gpc(a,Bl(b,Q7,5,V7)),searchScope:hpc(a,Bl(b,S7,6,V7)),tagScope:ipc(a,Bl(b,T7,7,V7)),savedQueryScope:jpc(a,Bl(b,U7,8,V7))};a&&(c.$jspbMessageInstance=b);return c}};P7.prototype.toObject=function(){return cpc(void 0,this)};
var cpc=function(a,b){if(null!=b){var c={id:hj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};Zoc.prototype.toObject=function(){return dpc(void 0,this)};var dpc=function(a,b){if(null!=b){var c={workItemId:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};$oc.prototype.toObject=function(){return epc(void 0,this)};var epc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};apc.prototype.toObject=function(){return fpc(void 0,this)};
var fpc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}},R7=[1,2,3];Q7.prototype.toObject=function(){return gpc(void 0,this)};var gpc=function(a,b){if(null!=b){var c={id:n(Ur(b,1,R7)),iterationType:n(Ur(b,2,R7)),iterationTag:n(Ur(b,3,R7))};a&&(c.$jspbMessageInstance=b);return c}};S7.prototype.toObject=function(){return hpc(void 0,this)};var hpc=function(a,b){if(null!=b){var c={query:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
T7.prototype.toObject=function(){return ipc(void 0,this)};var ipc=function(a,b){if(null!=b){var c={id:V(b,1)};a&&(c.$jspbMessageInstance=b);return c}};U7.prototype.toObject=function(){return jpc(void 0,this)};var jpc=function(a,b){if(null!=b){var c={id:hj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var W7=function(a){Z.call(this,a)};U(W7,Z);W7.prototype.getScope=function(){return m(this,Yoc,2)};W7.prototype.setScope=function(a){return Db(this,2,a)};W7.prototype.toObject=function(){return kpc(void 0,this)};var kpc=function(a,b){if(null!=b){var c={savedViewId:V(b,1),scope:bpc(a,b.getScope())};a&&(c.$jspbMessageInstance=b);return c}};
var X7=function(a){Z.call(this,a)};U(X7,Z);g=X7.prototype;g.getComponentId=function(){return hj(this,sb(this,Y7,1))};g.setComponentId=function(a){return ho(this,1,Y7,a)};g.hasComponentId=function(){return 1===rb(this,Y7)};g.getHotlistId=function(){return hj(this,sb(this,Y7,2))};g.setHotlistId=function(a){ho(this,2,Y7,a)};var Y7=[1,2];X7.prototype.toObject=function(){return lpc(void 0,this)};
var lpc=function(a,b){if(null!=b){var c={componentId:n(Ur(b,1,Y7)),hotlistId:n(Ur(b,2,Y7)),syncStartTime:Zu(a,m(b,vj,3)),syncEndTime:Zu(a,m(b,vj,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Z7=function(a){Z.call(this,a,-1,mpc)};U(Z7,Z);Z7.prototype.getName=function(){return V(this,1)};Z7.prototype.setName=function(a){return yl(this,1,a)};Z7.prototype.getDescription=function(){return V(this,2)};Z7.prototype.setDescription=function(a){return yl(this,2,a)};var npc=function(a){Z.call(this,a)};U(npc,Z);var ppc=function(a){Z.call(this,a,-1,opc)};U(ppc,Z);var qpc=function(a){Z.call(this,a)};U(qpc,Z);var spc=function(a){Z.call(this,a,-1,rpc)};U(spc,Z);
var $7=function(a){Z.call(this,a,-1,tpc)};U($7,Z);$7.prototype.setAddHotlistIdsList=function(a){ml(this,2,a)};$7.prototype.setRemoveHotlistIdsList=function(a){ml(this,3,a)};var a8=function(a){Z.call(this,a)};U(a8,Z);a8.prototype.getComponentId=function(){return hj(this,1)};a8.prototype.setComponentId=function(a){return Xk(this,1,a)};var b8=function(a){Z.call(this,a)};U(b8,Z);b8.prototype.getStatus=function(){return Y(this,1,0)};b8.prototype.setStatus=function(a){return vl(this,1,a)};
var c8=function(a){Z.call(this,a)};U(c8,Z);c8.prototype.getPriority=function(){return Y(this,1,0)};c8.prototype.setPriority=function(a){return vl(this,1,a)};var d8=function(a){Z.call(this,a)};U(d8,Z);d8.prototype.getSeverity=function(){return Y(this,1,0)};d8.prototype.setSeverity=function(a){return vl(this,1,a)};var e8=function(a){Z.call(this,a)};U(e8,Z);e8.prototype.getItemType=function(){return Y(this,1,0)};e8.prototype.setItemType=function(a){vl(this,1,a)};var f8=function(a){Z.call(this,a)};
U(f8,Z);f8.prototype.getAssignee=function(){return V(this,2)};f8.prototype.setAssignee=function(a){yl(this,2,a)};var vpc=function(a){Z.call(this,a,-1,upc)};U(vpc,Z);var g8=function(a){Z.call(this,a)};U(g8,Z);g8.prototype.getComment=function(){return V(this,2)};g8.prototype.setComment=function(a){return yl(this,2,a)};var mpc=[3];Z7.prototype.toObject=function(){return wpc(void 0,this)};
var wpc=function(a,b){if(null!=b){var c={name:V(b,1),description:V(b,2),subActionsList:Eb(tb(b,npc,3),xpc,a)};a&&(c.$jspbMessageInstance=b);return c}},h8=[1,2,3,4,5,6,7,8,9,10,11,12];npc.prototype.toObject=function(){return xpc(void 0,this)};
var xpc=function(a,b){if(null!=b){var c={goalAction:ypc(a,Bl(b,ppc,1,h8)),iterationsBacklogsAction:zpc(a,Bl(b,qpc,2,h8)),tagsAction:Apc(a,Bl(b,spc,3,h8)),hotlistsAction:Bpc(a,Bl(b,$7,4,h8)),componentsAction:Cpc(a,Bl(b,a8,5,h8)),statusAction:Dpc(a,Bl(b,b8,6,h8)),priorityAction:Epc(a,Bl(b,c8,7,h8)),severityAction:Fpc(a,Bl(b,d8,8,h8)),assigneeAction:Gpc(a,Bl(b,f8,9,h8)),ccAction:Hpc(a,Bl(b,vpc,10,h8)),commentAction:Ipc(a,Bl(b,g8,11,h8)),typeAction:Jpc(a,Bl(b,e8,12,h8))};a&&(c.$jspbMessageInstance=b);
return c}},opc=[2,3];ppc.prototype.toObject=function(){return ypc(void 0,this)};var ypc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addGoalIdsList:n(lb(b,2)),removeGoalIdsList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};qpc.prototype.toObject=function(){return zpc(void 0,this)};var zpc=function(a,b){if(null!=b){var c={promptUser:W(b,1),iterationId:hj(b,2),iteration:V(b,3),removeIteration:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}},rpc=[2,3];
spc.prototype.toObject=function(){return Apc(void 0,this)};var Apc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addTagsList:n(lb(b,2)),removeTagsList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}},tpc=[2,3];$7.prototype.toObject=function(){return Bpc(void 0,this)};var Bpc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addHotlistIdsList:n(lb(b,2)),removeHotlistIdsList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};a8.prototype.toObject=function(){return Cpc(void 0,this)};
var Cpc=function(a,b){if(null!=b){var c={componentId:hj(b,1),promptUser:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};b8.prototype.toObject=function(){return Dpc(void 0,this)};var Dpc=function(a,b){if(null!=b){var c={status:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};c8.prototype.toObject=function(){return Epc(void 0,this)};var Epc=function(a,b){if(null!=b){var c={priority:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};d8.prototype.toObject=function(){return Fpc(void 0,this)};
var Fpc=function(a,b){if(null!=b){var c={severity:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};e8.prototype.toObject=function(){return Jpc(void 0,this)};var Jpc=function(a,b){if(null!=b){var c={itemType:Y(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};f8.prototype.toObject=function(){return Gpc(void 0,this)};var Gpc=function(a,b){if(null!=b){var c={promptUser:W(b,1),assignee:V(b,2),removeAssignee:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}},upc=[2,3];
vpc.prototype.toObject=function(){return Hpc(void 0,this)};var Hpc=function(a,b){if(null!=b){var c={promptUser:W(b,1),addCcsList:n(lb(b,2)),removeCcsList:n(lb(b,3))};a&&(c.$jspbMessageInstance=b);return c}};g8.prototype.toObject=function(){return Ipc(void 0,this)};var Ipc=function(a,b){if(null!=b){var c={promptUser:W(b,1),comment:V(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var i8=function(a){Z.call(this,a)};U(i8,Z);g=i8.prototype;g.getUser=function(){return Bl(this,JH,1,j8)};g.setUser=function(a){Cu(this,1,j8,a)};g.getGroup=function(){return Bl(this,JH,2,j8)};g.setGroup=function(a){Cu(this,2,j8,a)};g.getAlias=function(){return V(this,sb(this,j8,3))};g.setAlias=function(a){ho(this,3,j8,a)};var j8=[1,2,3];i8.prototype.toObject=function(){return k8(void 0,this)};
var k8=function(a,b){if(null!=b){var c={user:KH(a,b.getUser()),group:KH(a,b.getGroup()),alias:n(Ur(b,3,j8))};a&&(c.$jspbMessageInstance=b);return c}};
var Lpc=function(a){Z.call(this,a,-1,Kpc)};U(Lpc,Z);g=Lpc.prototype;g.getInheritance=function(){return Y(this,1,0)};g.setInheritance=function(a){vl(this,1,a)};g.getAdminsList=function(){return tb(this,i8,2)};g.setAdminsList=function(a){Cb(this,2,a)};g.getInheritedAdminsList=function(){return tb(this,i8,3)};g.getEditorsList=function(){return tb(this,i8,4)};g.setEditorsList=function(a){Cb(this,4,a)};g.getImplicitEditorsList=function(){return tb(this,i8,5)};
g.getAppendersList=function(){return tb(this,i8,6)};g.setAppendersList=function(a){Cb(this,6,a)};g.getImplicitAppendersList=function(){return tb(this,i8,7)};g.getReadersList=function(){return tb(this,i8,8)};g.setReadersList=function(a){Cb(this,8,a)};g.getImplicitReadersList=function(){return tb(this,i8,9)};g.getImplicitAccess=function(){return Y(this,10,0)};g.setImplicitAccess=function(a){return vl(this,10,a)};g.getRestrictedReadersList=function(){return tb(this,i8,11)};
g.setRestrictedReadersList=function(a){Cb(this,11,a)};g.getRestrictedPlusReadersList=function(){return tb(this,i8,12)};g.setRestrictedPlusReadersList=function(a){Cb(this,12,a)};var Kpc=[2,3,4,5,6,7,8,9,11,12];Lpc.prototype.toObject=function(){return Mpc(void 0,this)};
var Mpc=function(a,b){if(null!=b){var c={inheritance:Y(b,1,0),adminsList:Eb(b.getAdminsList(),k8,a),inheritedAdminsList:Eb(b.getInheritedAdminsList(),k8,a),editorsList:Eb(b.getEditorsList(),k8,a),implicitEditorsList:Eb(b.getImplicitEditorsList(),k8,a),appendersList:Eb(b.getAppendersList(),k8,a),implicitAppendersList:Eb(b.getImplicitAppendersList(),k8,a),readersList:Eb(b.getReadersList(),k8,a),implicitReadersList:Eb(b.getImplicitReadersList(),k8,a),implicitAccess:Y(b,10,0),restrictedReadersList:Eb(b.getRestrictedReadersList(),
k8,a),restrictedPlusReadersList:Eb(b.getRestrictedPlusReadersList(),k8,a)};a&&(c.$jspbMessageInstance=b);return c}};
var lt=function(a){Z.call(this,a,-1,Npc)};U(lt,Z);g=lt.prototype;g.getWorkspaceId=function(){return hj(this,1)};g.getName=function(){return V(this,2)};g.setName=function(a){return yl(this,2,a)};g.getTimeZone=function(){return m(this,ozb,8)};g.setTimeZone=function(a){return Db(this,8,a)};g.hasTimeZone=function(){return oj(this,8)};g.getMembersList=function(){return tb(this,l8,9)};g.getBookmarkGroupId=function(){return hj(this,14)};g.setBookmarkGroupId=function(a){Xk(this,14,a)};
g.getTeamId=function(){return V(this,20)};g.setTeamId=function(a){return yl(this,20,a)};var Opc=function(a){return no(lt,a)},Qpc=function(a){Z.call(this,a,-1,Ppc)};U(Qpc,Z);var m8=function(a){Z.call(this,a)};U(m8,Z);m8.prototype.getHotlistId=function(){return hj(this,1)};m8.prototype.setHotlistId=function(a){Xk(this,1,a)};var l8=function(a){Z.call(this,a)};U(l8,Z);l8.prototype.getEmail=function(){return V(this,1)};l8.prototype.setEmail=function(a){return yl(this,1,a)};
var Npc=[5,9,13,15,16,17,18],Rpc=[6,7];lt.prototype.toObject=function(){return Spc(void 0,this)};
var Spc=function(a,b){if(null!=b){var c={workspaceId:hj(b,1),name:V(b,2),defaultComponentId:hj(b,3),inboxQuery:V(b,4),componentIdsList:n(lb(b,5)),componentBased:Tpc(a,Bl(b,Qpc,6,Rpc)),hotlistBased:Upc(a,Bl(b,m8,7,Rpc)),timeZone:pzb(a,b.getTimeZone()),membersList:Eb(b.getMembersList(),Vpc,a),trashComponentId:hj(b,10),defaultHotlistAcls:Mpc(a,m(b,Lpc,11)),updateTime:Zu(a,m(b,vj,12)),triageActionsList:Eb(tb(b,Z7,13),wpc,a),bookmarkGroupId:hj(b,14),defaultSavedViewsList:Eb(tb(b,W7,15),kpc,a),tagMigrationJobDatasList:Eb(tb(b,
Uoc,16),Woc,a),kanbanMigrationJobData:Roc(a,m(b,Poc,19)),customStatusesList:Eb(tb(b,Loc,17),Moc,a),boardColumnsList:Eb(tb(b,L7,18),Ioc,a),teamId:V(b,20)};a&&(c.$jspbMessageInstance=b);return c}},Ppc=[1,2];Qpc.prototype.toObject=function(){return Tpc(void 0,this)};var Tpc=function(a,b){if(null!=b){var c={componentIdsList:n(lb(b,1)),sourceSyncStateList:Eb(tb(b,X7,2),lpc,a)};a&&(c.$jspbMessageInstance=b);return c}};m8.prototype.toObject=function(){return Upc(void 0,this)};
var Upc=function(a,b){if(null!=b){var c={hotlistId:hj(b,1),sourceSyncState:lpc(a,m(b,X7,2))};a&&(c.$jspbMessageInstance=b);return c}};l8.prototype.toObject=function(){return Vpc(void 0,this)};var Vpc=function(a,b){if(null!=b){var c={email:V(b,1),isGroup:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Wpc=function(a){Z.call(this,a)};U(Wpc,Z);Wpc.prototype.getWorkspaceId=function(){return hj(this,1)};Wpc.prototype.toObject=function(){var a=null!=this?{workspaceId:hj(this,1)}:void 0;return a};
var Xpc=new yG("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",Wpc,lt,function(a){return a.serialize()},Opc);
var n8=function(a){Z.call(this,a)};U(n8,Z);n8.prototype.setWorkItemId=function(a){return ho(this,1,Ypc,a)};var Zpc=function(a){Z.call(this,a)};U(Zpc,Z);var Ypc=[1,2];n8.prototype.toObject=function(){if(null!=this){var a=n(Ur(this,1,Ypc));var b=null!=Bl(this,Zpc,2,Ypc)?{}:void 0;a={workItemId:a,userWorkspacesRequest:b}}else a=void 0;return a};Zpc.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var aqc=function(a){Z.call(this,a,-1,$pc)};U(aqc,Z);var $pc=[1];aqc.prototype.toObject=function(){var a=null!=this?{workspacesList:Eb(tb(this,lt,1),Spc)}:void 0;return a};
var bqc=new yG("/google.corp.devtools.worktracker.v1.WorkspaceService/List",n8,aqc,function(a){return a.serialize()},function(a){return no(aqc,a)});
var cqc=function(a){Z.call(this,a)};U(cqc,Z);cqc.prototype.toObject=function(){var a=null!=this?{workspace:Spc(void 0,m(this,lt,1)),updateMask:cH(void 0,m(this,bH,2))}:void 0;return a};
var dqc=new yG("/google.corp.devtools.worktracker.v1.WorkspaceService/Update",cqc,lt,function(a){return a.serialize()},Opc);
var eqc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new $G(b);this.hostname_=a};eqc.prototype.get=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},Xpc)};eqc.prototype.list=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},bqc)};
eqc.prototype.update=function(a,b){return uG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Update",a,b||{},dqc)};
var fqc={},gqc;fqc.Authorization=null!=(gqc=So([]))?gqc:"";fqc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";fqc["X-Goog-AuthUser"]="0";
var o8=function(a,b){this.activeSession=a;this.clientFactory=b;this.environmentType=this.activeSession.getEnvironmentType();a:switch(this.environmentType){case "NIGHTLY":a="https://staging-worktracker-googleapis.corp.google.com";break a;case "PROD":a="https://worktracker-googleapis.corp.google.com";break a;default:a="https://autopush-worktracker-googleapis.corp.google.com"}this.client=this.clientFactory.create(a)},hqc=function(a,b){return a.activeSession.isExternalSession()?(0,T.of)([]):(0,T.from)(a.client.list((new n8).setWorkItemId("b/"+
b),fqc)).pipe(R(w6a(b)),Pf(function(){return(0,T.of)([])}))};o8.\u0275fac=function(a){return new (a||o8)(t(qH),t(p8))};o8.\u0275prov=hc({token:o8,factory:o8.\u0275fac,providedIn:"root"});var p8=function(){};p8.prototype.create=function(a){return new eqc(a)};p8.\u0275fac=function(a){return new (a||p8)};p8.\u0275prov=hc({token:p8,factory:p8.\u0275fac,providedIn:"root"});
var iqc=0,q8=function(a){this.elementRef=a;this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.headerId="b-collapsible-panel-header-"+iqc;this.id="b-collapsible-panel-"+iqc;iqc++};q8.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
oi.Object.defineProperties(q8.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"}}});q8.\u0275fac=function(a){return new (a||q8)(C(sd))};
q8.\u0275cmp=w({type:q8,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",title:"title"},ngContentSelectors:["*"],decls:7,vars:8,consts:[[1,"collapsible-panel"],[1,"title-bar","unstyled-button",3,"click","mouseup"],[1,"title"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(Ae(),F(0,"div",0)(1,"button",1),J("click",function(){return b.toggleExpansion()})("mouseup",
function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,"span",2),O(3),G(),H(4,"mat-icon",3),G(),F(5,"div",4),Be(6),G()());a&2&&(B(1),ke("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(2),He(b.title),B(1),E("@expandCollapseIcon",b.expandedState),B(1),E("@expandCollapseContent",b.expandedState),ke("id",b.id)("aria-labelledby",b.headerId))},dependencies:[hF],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%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[Hh("expandCollapseContent",[Kh("expanded",Jh({height:"*",visibility:"visible"})),Kh("collapsed",Jh({height:"0",visibility:"hidden"})),Lh("expanded <=> collapsed",[Ih("200ms")])]),Hh("expandCollapseIcon",[Kh("expanded",Jh({transform:"rotate(-180deg)"})),Kh("collapsed",Jh({transform:"*"})),Lh("expanded <=> collapsed",[Ih("200ms")])])]}});
var z6a=function(a){return[a]},C6a=function(){return[]},o7a=function(a){return{$implicit:a}},r8=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){var L=this;this.activeSession=a;this.editIssueService=b;this.issueFridge=c;this.issuePermissionService=d;this.issueDetailsBrain=e;this.constants=f;this.refreshMonitor=h;this.userPreferencesManager=k;this.documentationLinks=q;this.workspaceService=u;this.changelistApi=y;this.issueMarkAsDuplicateDialogService=D;this.analytics=I;this.issueInsightsSidebarService=N;this.issueId$=
new T.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Sf());this.issue$=this.distinctIssueId$.pipe(eg(function(S){return L.editIssueService.editableIssue$(S)}));this.enablePeoplekitAc=sH(this.activeSession,"enablePeoplekitUserAc");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.showSloStatus=this.sessionIsInternal;this.showChangelists=!this.sessionIsExternal;this.defaultAssigneeQuickActionEnabled=this.sessionIsInternal;
this.HOTKEYS=pI;this.trackCustomField=function(S,X){return"{"+X.componentId+", "+X.customFieldId+"}"};this.FieldType=jYb;this.ListFieldType=bZb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.showImplicitAccessIndicator$=this.issuePermissionService.showImplicitAccessIndicator$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;
this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(R(function(S){return!L.activeSession.isExternalSession()&&sH(L.activeSession,"enableWtdmMvpUi")&&!S}));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(R(NYa));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.issueFields$=this.distinctIssueId$.pipe(R(function(S){return L.editIssueService.issueFields(S)}),bg({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(eg(function(S){return S.isForgottenFourPrimary$}));
this.showHiddenFieldsLabel$=this.issueFields$.pipe(eg(function(S){return S.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(eg(function(S){return S.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(eg(function(S){return S.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(eg(function(S){return S.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(eg(function(S){return S.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(eg(function(S){return S.hiddenCustomFields$}));
this.visibleCustomFields$=this.issueFields$.pipe(eg(function(S){return S.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(R(function(S){return L.editIssueService.issueQuickActions(S)}),bg({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(eg(function(S){return S.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(eg(function(S){return S.issueStatusQuickAction$}));this.priorityChoices=this.constants.priorities.map(function(S){return{value:S,
displayText:S}});this.severityChoices=this.constants.severities.map(function(S){return{value:S,displayText:S}});this.typeChoices=this.constants.editIssueTypeChoices;this.teamHovercardInputs$=(0,T.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(R(function(S){var X=r(S);S=X.next().value;X=X.next().value;return{teamId:X?String(X):"0",componentId:S?String(S):"0"}}));this.isTeamWarningDismissed$=(0,T.combineLatest)([this.issue$,this.userPreferencesManager.preferences$]).pipe(R(function(S){S=
r(S);var X=S.next().value,ka,ha;return null==(ka=S.next().value.teamWarningPreferences)?void 0:null==(ha=ka.componentTeamWarnings)?void 0:ha.some(function(ra){return ra.componentId===X.componentId})}));this.shouldDisplayTeamSuggestions$=(0,T.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(R(function(S){var X=r(S);S=X.next().value;var ka=X.next().value;X=X.next().value;return sH(L.activeSession,"enableTeamSuggestions")&&S&&
!ka&&("MISSING"===X||"DELETED"===X)}));this.statusChoices$=this.canonicalIssueId$.pipe(R(function(S){return[].concat(v(KJb.filter(function(X){return"DUPLICATE"!==X.value})),[{value:"DUPLICATE",displayText:S?"Duplicate of "+S:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(eg(function(S){return hqc(L.workspaceService,Number(S))}),bg({refCount:!0,bufferSize:1}));this.pendingChangelists$=AJb(this.refreshMonitor,this.distinctIssueId$).pipe(eg(function(S){return L.changelistApi.getPendingChangelistsForIssue(S)}),
R(function(S){return S.changelistNumbers}),R(function(S){return{cls:S,hasError:!1}}),Pf(function(){return(0,T.of)({cls:[],hasError:!0})}),bg({refCount:!0,bufferSize:1}));this.reconcileView={assignee:function(S){var X,ka;S.value=null!=(ka=null==(X=Kk(L.issue$))?void 0:X.assignee)?ka:""},reporter:function(S){var X,ka;S.value=null!=(ka=null==(X=Kk(L.issue$))?void 0:X.reporter)?ka:""},verifier:function(S){var X,ka;S.value=null!=(ka=null==(X=Kk(L.issue$))?void 0:X.verifier)?ka:""},ccs:function(S){var X,
ka;S.values=null!=(ka=null==(X=Kk(L.issue$))?void 0:X.cc)?ka:[]}}};r8.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var h7a=function(a){var b=a.issuePermissionService.isCurrentUserCCd();io(a.analytics,mo.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!dO(a.issuePermissionService,e)}):[].concat(v(c.cc),[a.activeSession.getUserEmail()]);return pRb(a.editIssueService,a.issueId,d)},W6a=function(a,b,c){return ot(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},F6a=function(a,b,c){return H6a(a.editIssueService,
a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},b7a=function(a,b,c){return d7a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},d8a=function(a,b,c){return pRb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},nt=function(a,b){io(a.analytics,mo.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return a.editIssueService.performQuickAction(a.issueId,b)},c8a=function(a,b){var c;return ef(function(d){return(c=JBb(b))?
"DUPLICATE"===c?d.return(Z1a(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(nRb(a.editIssueService,a.issueId,c)):d.return()})};r8.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(R(function(c){return b.editIssueService.savingState(c)}),eg(function(c){return Us(c.propertiesBeingSaved,Xn(String(a)))}))};r8.\u0275fac=function(a){return new (a||r8)(C(qH),C(fS),C(oL),C(eO),C(cO),C(RH),C(kL),C(PI),C(kP),C(o8),C(YU),C(u6),C(IM),C(v6))};
r8.\u0275cmp=w({type:r8,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Fc],decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["peoplekitReporter",""],[3,"name","title","type","value","choices","readonly","disabled","valueChange"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","hotkey","readonly","disabled","onHotkey","valueChange"],[1,"status-field-row"],[3,"name","title","type","value","choices","readonly","disabled",
"onedevHovercardActive","onedevHovercardTrigger","valueChange"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled","effortChange",4,"ngIf"],[1,"flex-kids-y"],["class","implicit-access-header flex-kids-x flex-cross-axis-centered flex-spread full-width",4,"ngIf"],[1,"flex-1"],["peoplekitAssignee",""],["peoplekitVerifier",""],[1,"full-width",3,"defaultLineCount","readonly","title","type","isUser","values","users",
"listFieldDisabled","teamId","valuesChange"],["ccsField",""],[1,"value-action"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"disabled","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","values","tooltip",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","hidden-fields-separator",4,"ngIf"],[3,"titleWhenCollapsed","titleWhenExpanded",4,"ngIf"],["sloField",""],["severityField",""],["changelistsFields",
""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],[4,"ngTemplateOutlet"],["class","issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values",4,"ngIf"],[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values"],["class","issue-metadata-field-short",4,"ngIf"],[1,"issue-metadata-field-short"],[3,"warningType","componentId","parentComponentId","teamSuggestions",
"updateTeam"],[3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["reporterField",""],[3,"thinking"],[3,"user","teamId","disabled","emailChange"],["class","bv2-metadata-quick-action",4,"ngIf"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[3,"effort",
"effortSpec","disabled","effortChange"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["implicitAccessHelpBubble",""],["target","_blank",3,"href"],[3,"hotkey","name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","onHotkey","valueChange"],["assigneeField",""],["class","bv2-metadata-quick-action","tabindex","0","role",
"button",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space"],["class","bv2-metadata-link",3,"disabled",4,"ngIf"],[1,"bv2-metadata-link"],[3,"hotkey","user","teamId","disabled","onHotkey","emailChange"],["userPicker","bUserPicker"],["actions",""],["class","bv2-metadata-link","tabindex","0","role","button",3,"click",4,"ngIf"],["tabindex",
"0","role","button",1,"bv2-metadata-link",3,"click"],["class","bv2-metadata-link","tabindex","0","role","button",3,"hotkey","matTooltip","disabled","onHotkey","click","keydown.enter","keydown.space",4,"ngIf"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"hotkey","matTooltip","onHotkey","click","keydown.enter","keydown.space"],[1,"flex-1",3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","valueChange"],["verifierField",""],["tabindex","0",
"role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"sloStatus","sloSnoozeUntil","sloId","componentId","isEditable","issueCreationTimestamp","onSnoozeChange"],[1,"flex-1",3,"name","title",
"type","tooltip","value","choices","readonly","disabled","valueChange"],[3,"readonly","defaultLineCount","title","type","values","listFieldDisabled","valuesChange"],[1,"title-action"],[3,"pressed",4,"ngIf"],[3,"pressed"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],[3,"name","title","type","multiline","tooltip","value","readonly","disabled","valueChange"],[3,"name","title","type","value",
"tooltip","readonly","disabled","valueChange"],[3,"issue","field","readonly","disabled","save"]],template:function(a,b){a&1&&(M(0,e8a,84,115,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.issue$))},dependencies:[q8,Kx,Gx,Qx,qV,UU,Q4,L4,M4,N4,YI,fN,gN,jN,hN,F7,xX,a5,oV,hF,wF,WO,I3,K7,KS,yN,BM,Tx],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:70px;max-width:120px;padding-right:10px}\n/*# sourceMappingURL=edit_issue_metadata.css.map */"]});
var jqc={},kqc=(jqc.COMFORTABLE=330,jqc.COZY=300,jqc.COMPACT=270,jqc),s8=function(a){qI.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(R(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(R(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new T.Subject;this.currentSidebarWidth$=(0,T.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(dg(void 0))]).pipe(R(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return null!=d?d:null!=e?e:kqc[null!=c?c:"COMFORTABLE"]}));(0,T.combineLatest)([this.rightSidebarWidthChanged$.pipe(Sf()),this.sidebarWidthPreference$]).pipe(uf(function(c){c=r(c);var d=c.next().value;return c.next().value!==d}),eg(function(c){c=r(c);var d=c.next().value;
c.next();return kFb(b.userPreferencesManager,{rightSidebarWidth:d})}),fg(this.destroyed$)).subscribe()};U(s8,qI);s8.\u0275dir=qI.\u0275dir;s8.prototype.ngOnInit=function(){};s8.\u0275fac=function(a){return new (a||s8)(C(PI))};
s8.\u0275cmp=w({type:s8,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[ee],decls:7,vars:7,consts:[[1,"a11y-only"],["direction","rtl",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(F(0,"h3",0),O(1,"Issue metadata"),G(),F(2,"b-resizable-sidebar",1),J("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),P(3,"async"),
F(4,"div",2)(5,"div",3),M(6,f8a,1,1,"edit-issue-metadata",4),G()()());if(a&2){var c;B(2);E("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=Q(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);B(4);E("ngIf",b.issueId)}},dependencies:[Gx,XO,r8,Tx],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});
var s8a=function(){return{exact:!0}},t8=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da){qI.call(this);var Ja=this;this.paramsService=a;this.issueFridge=b;this.onboardingDialogService=c;this.activeSession=d;this.permissions=e;this.editIssueService=f;this.counts=h;this.appEvents=k;this.issueInteractionsTracking=q;this.checkBeforeExit=u;this.butterBar=y;this.routerEvents=D;this.devopsGraph=I;this.refreshMonitor=N;this.eventsForIssueFridge=L;this.issueFetchResponseFridge=S;this.hotlistFridge=
X;this.permissionsFridge=ka;this.issueRelationshipsFridge=ha;this.issueService=ra;this.errorHandler=Da;this.STATUS_IS_FEATURED=MJb;this.id$=kM(this.paramsService,"issueId").pipe(Sf());this.issue$=this.id$.pipe(eg(function(Ba){return Ja.issueFridge.watch(Ba)}));this.snapshot$=this.issue$.pipe(R(function(Ba){return null==Ba?void 0:Ba.snapshot[0]}));this.archived$=this.snapshot$.pipe(R(function(Ba){return null==Ba?void 0:Ba.isArchived}));this.deleted$=this.snapshot$.pipe(R(function(Ba){return null==
Ba?void 0:Ba.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(R(function(Ba){return Ba?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(R(function(Ba){return(null==Ba?void 0:Ba.isArchived)&&!(null==Ba?0:Ba.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(R(function(Ba){return null==Ba?void 0:Ba.snapshot[0].status}),R(function(Ba){return am[Ba]}));this.prettyStatus$=this.status$.pipe(uf(el),R(function(Ba){return BL[Ba]}));
this.title$=this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].title)?La:""}));this.issuesBeingBlocked$=this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].blockingIssueId)?La:[]}),Rf(1E3),eg(function(Ba){return EJ(Ja.issueFridge,Ba)}));this.issue$.pipe(R(function(Ba){var La;return null!=(La=null==Ba?void 0:Ba.snapshot[0].duplicateIssueId)?La:[]}),Rf(1E3),eg(function(Ba){return EJ(Ja.issueFridge,Ba)}));this.userHasReadAccess$=
this.issueFetchResponseFridge.error$.pipe(R(function(Ba){if(403===Ba.status&&Ja.activeSession.isInternalSession())return!1;Ja.errorHandler.errorHandler(null,Ba);return!0}),dg(!0),bg({refCount:!0,bufferSize:1}));this.issueMetadata$=(0,T.defer)(function(){return Ja.id$}).pipe(uf(el),eg(function(Ba){return Ja.issueService.getMetadata(Number(Ba))}),bg({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(v(sH(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]))};U(t8,qI);t8.\u0275dir=qI.\u0275dir;
t8.prototype.ngOnInit=function(){var a=this,b,c,d;return ef(function(e){if(1==e.nextAddress)return b=SC,c=b.assertExists,ff(e,(0,T.firstValueFrom)(a.id$),2);d=c.call(b,e.yieldResult);a.appEvents.issueViewed.next(d);ZQb(a.issueInteractionsTracking,d);a.subscriptions.add(WY(a.checkBeforeExit,function(){return a.editIssueService.issueCommentDraft(d).comment().hasContent()},!1));a.subscriptions.add(a.routerEvents.routeChangeSuccess.subscribe(function(){a.butterBar.dismiss()}));a.subscriptions.add(a.issue$.pipe(uf(el),
Tf()).subscribe(function(f){qL(a.issueFridge,[f.issueId])}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");mt(a.permissionsFridge,"issues/"+d);mt(a.issueRelationshipsFridge,d);tL(a.issueFetchResponseFridge,d);mt(a.eventsForIssueFridge,d);FJ(a.hotlistFridge,yJb);qL(a.issueFridge,[d])}));a.destroyed$.subscribe(function(){a.devopsGraph.close();$Qb(a.issueInteractionsTracking,d);a.editIssueService.clear(d)});gf(e)})};
t8.prototype.ngAfterViewInit=function(){this.onboardingDialogService.openIfNecessary()};t8.\u0275fac=function(a){return new (a||t8)(C(jM),C(oL),C(E7),C(qH),C(eO),C(fS),C(h7),C(FK),C(ZR),C(VY),C(xK),C(NI),C(g6),C(kL),C(DL),C(rL),C(iL),C(WL),C(VL),C(JK),C(BK))};
t8.\u0275cmp=w({type:t8,selectors:[["issue-details-wrapper"]],features:[Je([{provide:y3b,useValue:x3b},XX,mI,gS,{provide:yW,useClass:n6}]),ee],decls:6,vars:7,consts:[["class","a11y-only",4,"ngIf"],["class","flex-kids-y pos-fill",3,"issue-editor-false",4,"ngIf","ngIfElse"],["showNoAccessScreen",""],[1,"a11y-only"],[1,"flex-kids-y","pos-fill"],["class","border-bottom",3,"messageType","format","iconOverride",4,"ngIf"],["messageType","caution","class","border-bottom",3,"format","iconOverride",4,"ngIf"],
["messageType","error","format","app","class","border-bottom",4,"ngIf"],["class","issue-header",4,"ngIf"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],["cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],[3,"issueId",4,"ngIf"],[1,"border-bottom",3,"messageType","format","iconOverride"],["href","http://go/buganizer-issue-archive","target","_blank",4,"ngIf"],["mat-button","","aria-label","Unarchive issue",3,"click",4,"ngIf"],["href","http://go/buganizer-issue-archive",
"target","_blank"],["mat-button","","aria-label","Unarchive issue",3,"click"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank",4,"ngIf"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],["messageType","error","format","app",1,"border-bottom"],[4,"ngIf"],["href","http://go/issue-retention","target","_blank",4,"ngIf"],["mat-button","","aria-label",
"Undelete issue",3,"matTooltip","disabled","click",4,"ngIf"],["href","http://go/issue-retention","target","_blank"],["mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled","click"],[1,"issue-header"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"flex-kids-x","space-between","border-bottom","padded-s-bottom",3,"ngClass"],[3,"issueId"],[1,"flex-kids-y","padded-s-top","padded-s-right","align-items-end","justify-flex-end"],[1,"flex-kids-x","gap-s"],["mat-tab-nav-bar",
"","gmat-tabs",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],["rla","routerLinkActive"],["style","margin-left: 4px;",4,"ngIf"],[2,"margin-left","4px"],[1,"bv2-access-denied"],[3,"issueMetadata"]],template:function(a,b){a&1&&(M(0,g8a,2,1,"h2",0),P(1,"async"),M(2,w8a,15,19,"div",1),P(3,"async"),M(4,x8a,3,3,"ng-template",null,2,Mf));if(a&2){var c=
Fe(5);E("ngIf",Q(1,3,b.id$));B(2);E("ngIf",Q(3,5,b.userHasReadAccess$))("ngIfElse",c)}},dependencies:[Jx,Kx,Gx,zI,EI,FI,FB,$W,aX,aZ,HA,wF,bI,cI,A7,q7,B7,w2,s8,C7,Tx],styles:["b-pagination-one-issue[_ngcontent-%COMP%]{margin-top:-8px}issue-actions[_ngcontent-%COMP%]{margin-top:4px}[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px}[_nghost-%COMP%]     .issue-header .b-chip{margin-right:0;max-width:100%}"]});
var u8=function(a,b){qI.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new T.BehaviorSubject([]);this.tableColumns="focus-indicator title team id createdTime reporter menu".split(" ");this.initialSort={active:"createdTime",direction:"desc"};this.getMenuItems=function(d){return[{type:"action",label:"Remove duplicate",action:function(){c.removeDuplicate(d)},title:"Remove duplicate",icon:"clear"}]}};U(u8,qI);u8.\u0275dir=qI.\u0275dir;u8.prototype.ngOnInit=function(){};
u8.prototype.removeDuplicate=function(a){var b=this,c;return ef(function(d){if(1==d.nextAddress)return Ut(d,2),ff(d,b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return Vt(d,0);c=Wt(d);zK(b.butterBar,"Could not remove duplicate "+a+". "+c);gf(d)})};oi.Object.defineProperties(u8.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
u8.\u0275fac=function(a){return new (a||u8)(C(oL),C(xK))};u8.\u0275cmp=w({type:u8,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[ee],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(M(0,y8a,2,4,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.duplicateIssueIds$))},dependencies:[Gx,O6,Tx],encapsulation:2,changeDetection:0});
var v8=function(a,b,c,d){qI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.ROBOT_SLEEPING=kkc;this.id$=this.bestRoute.paramMap.pipe(R(function(f){return f.get("issueId")}),uf(el),gg(function(f){e.lastKnownId=f}));this.dupeUrl$=this.id$.pipe(R(function(f){return{path:"/issues",params:{q:"canonicalid:"+f}}}));this.issue$=this.id$.pipe(eg(function(f){return e.issues.watch(f)}));this.duplicateIds$=this.issue$.pipe(R(function(f){var h;return null!=(h=null==f?void 0:
f.snapshot[0].duplicateIssueId)?h:[]}));this.didChooseDupes=function(f){null!=e.lastKnownId&&GJb(e.issues,e.lastKnownId,f[0]).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(Im(f)||"Error with network request","close",{panelClass:"error"})}};U(v8,qI);v8.\u0275dir=qI.\u0275dir;v8.prototype.isThinking=function(){return this.issues.isThinking()};var z8a=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1},a.didChooseDupes)};
oi.Object.defineProperties(v8.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});v8.\u0275fac=function(a){return new (a||v8)(C(gk),C(oL),C(FX),C(uK))};
v8.\u0275cmp=w({type:v8,selectors:[["ng-component"]],features:[ee],decls:4,vars:4,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","pos-tr padded",4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[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"],["mat-flat-button","","color","primary","matTooltip",
"Add a duplicate to the current issue",1,"gmat-button","small",3,"click"],[1,"section-heading","muted"],["mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"gmat-button","small","add",3,"click"],[3,"issueId","duplicateIds",4,"ngIf"],[1,"margin-s-top","flex-kids-x","gap-s"],[3,"issueId","duplicateIds"],["mat-button","","color","primary",1,"gmat-button","small",3,"routerLink","queryParams"],[1,"pos-tr","padded"]],template:function(a,b){a&1&&(F(0,"section",0),
M(1,E8a,4,2,"ng-container",1),P(2,"async"),G(),M(3,F8a,2,0,"aside",2));a&2&&(B(1),E("ngIf",Q(2,2,b.duplicateIds$)),B(2),E("ngIf",b.isThinking()))},dependencies:[Gx,EI,FB,GB,wF,cN,u8,Tx],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 8px 8px 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 w8=function(){};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275mod=xc({type:w8});w8.\u0275inj=ic({imports:[ay,rz,Sz,Ky,Ly,KI,wG,cX,gH,AF,QN,BX,dP,ON,U6]});
var x8=function(a){qI.call(this);this.preferences=a;this.showRecentEventsFirst=!1};U(x8,qI);x8.\u0275dir=qI.\u0275dir;x8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(uf(el),fg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b})};x8.\u0275fac=function(a){return new (a||x8)(C(PI))};
x8.\u0275cmp=w({type:x8,selectors:[["b-event-stream-header"]],features:[ee],decls:7,vars:2,consts:[[1,"flex-kids-x","flex-spread"],[1,"comments-subtext"],["mat-stroked-button","","color","primary",1,"gmat-button","sort-order-button",3,"click"],[4,"ngIf"],["svgIcon","arrow-downward",1,"sort-order-arrow","icon-xs"],["svgIcon","arrow-upward",1,"sort-order-arrow","icon-xs"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"span",1),O(2,"Comments"),G(),F(3,"div")(4,"button",2),J("click",function(){EM.setBooleanAt("hasClickedCommentSortBtn")(!0);
b.preferences.save({showRecentEventsFirst:!b.showRecentEventsFirst}).pipe(fg(b.destroyed$)).subscribe()}),M(5,G8a,3,0,"ng-container",3),M(6,H8a,3,0,"ng-container",3),G()()());a&2&&(B(5),E("ngIf",!b.showRecentEventsFirst),B(1),E("ngIf",b.showRecentEventsFirst))},dependencies:[Gx,hF,FB],styles:[".comments-subtext[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px;text-transform:uppercase}.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}"]});
var lqc=function(a){Z.call(this,a)};U(lqc,Z);g=lqc.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return hj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getPiiRetention=function(){return Y(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var y8=function(a){this.executor=a};y8.prototype.get=function(a,b,c){var d=String;a:{c=void 0===c?1:c;switch(c){case 0:case 1:c=1;break a;case 2:c=2;break a;case 3:c=3;break a;default:ph(c)}c=void 0}return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:{"X-Restricted-Content-Limit":d(c)}},responseConstructor:bK})};
y8.prototype.updateRetention=function(a,b,c){c=(new lqc).setIssueId(String(a)).setCommentNumber(b).setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:bK})};y8.\u0275fac=function(a){return new (a||y8)(t(hI))};y8.\u0275prov=hc({token:y8,factory:y8.\u0275fac,providedIn:"root"});
var mqc=function(a){Z.call(this,a)};U(mqc,Z);g=mqc.prototype;g.getIssueId=function(){return nj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getAttachmentId=function(){return nj(this,2)};g.setAttachmentId=function(a){l(this,2,a)};g.getPiiRetention=function(){return Y(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentId:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var z8=function(a){this.executor=a};z8.prototype.updateRetention=function(a,b,c){var d=new mqc;d.setIssueId(String(a));d.setAttachmentId(String(b));d.setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:d,responseConstructor:Zm})};z8.\u0275fac=function(a){return new (a||z8)(t(hI))};z8.\u0275prov=hc({token:z8,factory:z8.\u0275fac,providedIn:"root"});
var A8=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S){qI.call(this);this.activeSession=a;this.documentationLinks=b;this.domSafe=c;this.matDialogService=d;this.attachmentService=e;this.cdr=f;this.differs=h;this.paths=k;this.userAccess=q;this.butterBar=u;this.errorHandler=y;this.analytics=D;this.issueCommentDialogsService=I;this.issuePermissionService=N;this.editIssueService=L;this.routeParams=S;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};U(A8,qI);A8.\u0275dir=qI.\u0275dir;A8.prototype.ngOnInit=function(){this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var a;this.attachmentRetentionOverride=null==(a=this.attachment)?void 0:a.piiRetention;nqc(this);oqc(this)};A8.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(nqc(this),this.cdr.markForCheck())};
A8.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var nqc=function(a){a.actionMenuItems=[];pqc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});qqc(a)&&a.actionMenuItems.push({type:"action",action:function(){rRb(a.editIssueService,String(a.issueId),a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){Dmc(a.issueCommentDialogsService,String(a.issueId),a.attachmentUploader===a.activeSession.getUserEmail(),a.attachment)},
label:"Restriction settings..."});if(a.isInternalSession&&a.isRestricted()&&a.isActive()){var b="COMPONENT_DEFAULT"===a.attachmentRetentionOverride;a.actionMenuItems.push({type:"action",action:function(){var c=b?2:1;Cmc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&rqc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
A8.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,mK(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};A8.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
A8.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var pt=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Qe");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return hE(a,"download",b)};A8.prototype.isActive=function(){var a;if(null==(a=this.attachment)||!a.attachmentId)return!1;var b;return"ACTIVE"===(null==(b=this.attachment.entityStatus)?void 0:b.status)};
A8.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};A8.prototype.getPiiSeverity=function(){var a;return Gl(null==(a=this.attachment)?void 0:a.contentVerdict)};A8.prototype.getRestrictedLabel=function(){return tqa(this.getPiiSeverity())};
var N8a=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+Hl(a):""},M8a=function(a,b){io(a.analytics,mo.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(pP,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},pqc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"ACTIVE"===c.status?b.hasAclToAdmin()||dO(b,a)?!0:!1:!1:
!1}else b=!1;return b},qqc=function(a){var b;if(null!=(b=a.attachment)&&b.attachmentId){b=a.issuePermissionService;var c=a.attachment;a=a.attachmentUploader;b=c?(c=c.entityStatus)&&"DELETED"===c.status?b.hasAclToAdmin()||dO(b,a)?!0:!1:!1:!1}else b=!1;return b};A8.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(String(this.issueId),this.attachment)};
var rqc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(io(a.analytics,mo.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(fg(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=I8a(d.getPiiRetention()),a.attachment.piiRetentionState=d.hasPiiRetentionState()?J8a(d.getPiiRetentionState()):void 0);
yK(a.butterBar,"Attachment retention updated",4E3);a.attachmentRetentionOverride=2===b?"INDEFINITE":"COMPONENT_DEFAULT";nqc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;CK(a.errorHandler,"Attachment retention update failed")}})):CK(a.errorHandler,"Attachment id is missing")},oqc=function(a){var b,c,d;ef(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,M8a(a,d));gf(e)})};
A8.\u0275fac=function(a){return new (a||A8)(C(qH),C(kP),C(mP),C(cC),C(z8),C(mI,2),C(Fx),C(LK),C(lK),C(xK),C(BK),C(IM),C(t6),C(eO),C(fS),C(SR))};
A8.\u0275cmp=w({type:A8,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[Je([mI]),ee,Fc],decls:16,vars:8,consts:[[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info"],[3,"label","retentionState","contentType",4,"ngIf"],["class","bv2-issue-attachment-overflow-menu",4,"ngIf"],[3,"class",4,"ngIf"],
[3,"panelTemplate"],["class","bv2-restricted-access-help-icon help-icon",4,"ngIf"],["restrictedAccessHelp",""],[3,"label","retentionState","contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler","customHandler"],[1,"bv2-restricted-access-help-icon","help-icon"],["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"]],template:function(a,b){a&1&&(F(0,"div",0),H(1,"b-icon",1),G(),F(2,"div")(3,"div",2),O(4),F(5,"span",3),M(6,K8a,1,3,"b-restricted-chip",4),M(7,L8a,2,3,"span",5),G()(),F(8,"div"),O(9),M(10,O8a,2,8,"span",6),M(11,P8a,2,8,"span",6),F(12,"xap-bubble",7),M(13,Q8a,3,3,"span",8),M(14,R8a,4,1,"ng-template",null,9,Mf),G()()());if(a&2){var c=Fe(15);B(4);Ge(" ",b.getFilename()," ");B(2);E("ngIf",b.isRestricted());
B(1);E("ngIf",0<b.actionMenuItems.length);B(2);Ge(" ",Aua(b.getSize())," ");B(1);var d;a=b.isActive()&&dna(null==(d=b.attachment)?void 0:d.contentType);E("ngIf",a);B(1);E("ngIf",b.isActive());B(1);E("panelTemplate",c);B(1);E("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[Gx,IZ,$S,tH,GB,hF,wF,k5,KS],encapsulation:2,changeDetection:0});
var sqc=["commentActionsMenu"],tqc=["editDescription"],h9a=function(){return[]},B8=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){qI.call(this);var L=this;this.eventsForIssue=a;this.userPreferencesManager=b;this.issueFridge=c;this.issueReferenceResolver=d;this.activeSession=e;this.commentService=f;this.errorHandler=h;this.analytics=k;this.butterBar=q;this.userAccess=u;this.issueCommentDialogsService=y;this.issuePermissionService=D;this.commentHistoryDialogService=I;this.dateFormatter=N;this.id$=new T.ReplaySubject(1);
this.idAsNumber$=this.id$.pipe(R(function(S){return Number(S)}));this.accessLevel$=this.id$.pipe(eg(function(S){return L.issueFridge.watch(S)}),R(function(S){var X;return null==S?void 0:null==(X=S.accessLimit)?void 0:X.accessLevel}));this.firstEvent$=new T.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(R(function(S){return S}));this.commentActionMenuItems$=new T.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode=1;this.formattingMode$=Jk(this.firstEvent$.pipe(uf(el),
R(function(S){return tsa(S.formattingMode)})),1);this.isRedacted$=this.firstEvent$.pipe(uf(el),R(function(S){return S.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(uf(el),R(function(S){return"DELETED"===S.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,T.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(R(function(S){var X=r(S);S=X.next().value;X=X.next().value;return!(!S||X)}));this.isRestricted$=this.firstEvent$.pipe(uf(el),R(function(S){return Gl(S.commentContentVerdict)}),
R(function(S){if(!L.isInternalSession)return!1;switch(S){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:ph(S)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(uf(el),R(function(S){return S.commentRetention}));this.commentHistoryEnabled=sH(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,T.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(R(function(S){var X=r(S);S=X.next().value;X=X.next().value;
return!(!(sH(L.activeSession,"enableCommentHistoryUi")&&0<((null==S?void 0:S.commentVersion)||0))||X)}));this.canEditComment$=this.firstEvent$.pipe(eg(function(S){return S?L.issuePermissionService.canEditComment$(S):(0,T.of)(!1)}),bg({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Kk(L.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(eg(function(S){return S?L.mayReadPii():(0,T.of)(void 0)}));this.reporterUser$=
this.id$.pipe(fg(this.destroyed$),eg(function(S){return L.issueFridge.watch(S)}),R(function(S){var X;return null==S?void 0:null==(X=S.snapshot[0])?void 0:X.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(fg(this.destroyed$),R(function(S){return(null==S?void 0:S.emailAddress)||(null==S?void 0:S.obfuscatedEmailAddress)||""}));this.isAuthorNotReporter$=(0,T.combineLatest)([this.reporterUser$,this.firstEvent$]).pipe(R(function(S){var X=r(S);S=X.next().value;X=X.next().value;return!Hi(S,
null==X?void 0:X.userPerformingActionUser)}))};U(B8,qI);B8.\u0275dir=qI.\u0275dir;B8.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(eg(function(b){return(0,T.defer)(function(){return mK(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Vk("error: ",c);return!1})})}))};
B8.prototype.ngOnInit=function(){var a=this;uqc(this,1);this.id$.pipe(eg(function(b){return a.eventsForIssue.watch(b)}),R(function(b){var c;return null!=(c=null==b?void 0:b.events)?c:[]}),R(function(b){return b[0]}),fg(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(fg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(fg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.formattingMode$.pipe(fg(this.destroyed$)).subscribe(function(b){a.formattingMode=b;uqc(a,b)});this.issuePermissionService.canChangeCommentRetention$.pipe(fg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
B8.prototype.initializeActionsMenu=function(){var a=this,b=[];this.isFormattingOverrideEnabled||b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]});var c=Kk(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){tt(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:Kk(this.isRedacted$)});
Kk(this.isShowCommentHistoryActionInMenu$)&&c&&b.push({type:"action",action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show editing history"});c&&WMb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&Amc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&VMb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){xmc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){Bmc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&Kk(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!Kk(this.isDeleted$)){var d="COMPONENT_DEFAULT"===Kk(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?2:1;Cmc(a.issueCommentDialogsService,"comment",e).then(function(f){a.commentActionsMenu.actionsMenuIconButton.focus();f&&a.updateCommentRetention(e)})},label:d?"Match issue retention...":"Revert to component retention..."})}this.commentActionMenuItems$.next(b)};
var uqc=function(a,b){var c={};a.formattingModeMenuItems=(c[1]={type:"select",action:function(){a.formattingMode$.next(1);a.initializeActionsMenu()},label:"Classic",selected:1===b},c[2]={type:"select",action:function(){a.formattingMode$.next(2);a.initializeActionsMenu()},label:"Markdown",selected:2===b},c[3]={type:"select",action:function(){a.formattingMode$.next(3);a.initializeActionsMenu()},label:"Source",selected:3===b},c)};
B8.prototype.updateCommentRetention=function(a){var b=this,c=Kk(this.firstEvent$),d=Kk(this.idAsNumber$);c&&!c.commentNumber&&CK(this.errorHandler,"Comment number is missing");io(this.analytics,mo.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(fg(this.destroyed$)).subscribe({next:function(){mt(b.eventsForIssue,d);yK(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){CK(b.errorHandler,"Comment retention update failed")}})};
B8.prototype.loadRestrictedComment=function(a,b){var c=this;io(this.analytics,mo.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=(null==b?void 0:b.commentNumber)||0;b=Fl(Gl(null==b?void 0:b.commentContentVerdict));a&&this.commentService.get(a,d,b).pipe(Tf(),fg(this.destroyed$)).subscribe(function(e){e=Vm(e);e=Object.assign({},Kk(c.firstEvent$),e);c.firstEvent$.next(e);c.initializeActionsMenu()},function(e){var f;zK(c.butterBar,"Error showing comment "+d+": "+(null==(f=e.error)?void 0:
f.message))})};B8.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(Number(this.id),a,-1)};B8.prototype.getUserEmailIfAvailable=function(){var a;return Tl(null==(a=Kk(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var S8a=function(a){var b=Kk(a.firstEvent$);b&&tt(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},W8a=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=Ql(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",FOb(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
oi.Object.defineProperties(B8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Kk(this.id$)}}});B8.\u0275fac=function(a){return new (a||B8)(C(DL),C(PI),C(oL),C(yW),C(qH),C(y8),C(BK),C(IM),C(xK),C(lK),C(t6),C(eO),C(FS),C(BP))};
B8.\u0275cmp=w({type:B8,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(Ef(sqc,5),Ef(tqc,5));if(a&2){var c;Df(c=Gf())&&(b.commentActionsMenu=c.first);Df(c=Gf())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[ee],decls:2,vars:3,consts:[["id","comment1",4,"ngIf"],["id","comment1"],[1,"flex-kids-x","description-heading"],[1,"flex-1"],[1,"description-label"],["mat-icon-button","","class","small","matTooltip","Edit description","aria-label","Edit description",3,"click",
4,"ngIf"],[3,"onedevHovercardTrigger","model"],["card",""],[3,"email"],[4,"ngIf"],["class","keep-focus-ring",3,"routerLinkObj","click",4,"ngIf"],[1,"right-side"],["mode","datetime",3,"timestamp"],["matTooltip","Description actions",1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[4,"ngIf","ngIfElse"],["showFirstComment",""],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],["mat-icon-button","","matTooltip","Edit description","aria-label","Edit description",
1,"small",3,"click"],["editDescription",""],["svgIcon","edit-outline",1,"icon-xxs"],["reporterCard",""],[1,"keep-focus-ring",3,"routerLinkObj","click"],[1,"edited-label",3,"matTooltip"],[1,"description-deleted"],["showNote",""],[3,"disabled","onConfirm",4,"ngIf"],[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["class","no-description-container flex-kids-x",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode"],[1,"no-description-container",
"flex-kids-x"],[1,"no-description"],["mat-stroked-button","","color","primary",1,"gmat-button","update-button",3,"click"],["svgIcon","add",1,"sort-order-arrow","icon-xs"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(M(0,i9a,28,26,"div",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.firstEvent$))},
dependencies:[IZ,A8,NW,Kx,Gx,CP,fN,jN,hS,FB,hF,wF,m5,iT,jS,Tx],styles:[".description-heading[_ngcontent-%COMP%]{font-weight:400;margin:0 0 12px}.description-heading   .d-cozy[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:10px}.description-heading   .d-compact[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:8px}.description-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px;margin-right:4px;text-transform:uppercase}button[_ngcontent-%COMP%]{margin-right:2px}.edited-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.right-side[_ngcontent-%COMP%]   b-formatted-date-time[_ngcontent-%COMP%]{margin-right:8px}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.no-description-container[_ngcontent-%COMP%]{line-height:24px}.no-description-container[_ngcontent-%COMP%]   .no-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.no-description-container[_ngcontent-%COMP%]   .update-button[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:10px;padding-left:8px;padding-right:12px}.no-description-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}"]});
var C8=function(a,b,c,d){this.prefs=a;this.cdr=b;this.analytics=c;this.butterBar=d;this.on$=this.prefs.showFullHistory$;this.isSaving=!1;this.tooltip$=this.on$.pipe(R(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),dg(""))};C8.prototype.onClick=function(){var a=this,b;return ef(function(c){if(1==c.nextAddress)return a.isSaving?c.return():ff(c,(0,T.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);gf(c)})};
C8.prototype.save=function(a){var b=this;io(this.analytics,mo.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;a=(0,T.firstValueFrom)(this.prefs.save({showFullHistory:a}));a.then(function(){b.isSaving=!1;b.cdr.markForCheck()});a.catch(function(){zK(b.butterBar,'Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()})};C8.\u0275fac=function(a){return new (a||C8)(C(PI),C(zx),C(IM),C(xK))};
C8.\u0275cmp=w({type:C8,selectors:[["smart-full-history-btn"]],decls:7,vars:16,consts:[["mat-icon-button","",1,"gmat-button",3,"matTooltip","disabled","click"],["svgIcon","history","class","icon-s",4,"ngIf"],[4,"ngIf"],["svgIcon","history",1,"icon-s"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return b.onClick()}),P(1,"async"),P(2,"async"),P(3,"async"),P(4,"async"),M(5,j9a,1,0,"mat-icon",1),M(6,k9a,1,0,"b-spinner",2),G());a&2&&(pe("on",Q(1,8,b.on$)),E("matTooltip",Q(2,10,b.tooltip$))("disabled",
b.isSaving),ke("aria-pressed",Q(3,12,b.on$))("aria-label",Q(4,14,b.tooltip$)),B(5),E("ngIf",!b.isSaving),B(1),E("ngIf",b.isSaving))},dependencies:[Gx,wF,hF,FB,cN,Tx],styles:["mat-icon[_ngcontent-%COMP%] {\n      display: flex;\n      margin: 0 auto;\n    }\n    [_nghost-%COMP%]     .on .mat-spinner circle {\n      stroke: var(--text-inverse); \n    }"],changeDetection:0});
var vqc=function(){this.tokens=new Map};vqc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};vqc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new wqc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var wqc=function(a){this.sortedEntries=a};
wqc.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};wqc.prototype.search=function(a){var b=new Set;a=r(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=r(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var xqc=function(a,b){if(0===b.length)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&0<c.size;d++){var e=[].concat(v(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};
var yqc=function(a){this.hotlists=a;var b=new vqc,c=new vqc;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(null==(e=d.name)?0:e.trim())?iya(d.name.toLowerCase()):[];f=r(f);for(e=f.next();!e.done;e=f.next())b.add(e.value,d);e=void 0;f=(null==(e=d.description)?0:e.trim())?iya(d.description.toLowerCase()):[];f=r(f);for(e=f.next();!e.done;e=f.next())c.add(e.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(h,
k){return[h,k]}))};
yqc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=r(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=d.name)?void 0:e.toLowerCase(),h=void 0;e=null==(h=d.description)?void 0:h.toLowerCase();h=d.hotlistId;var k=void 0,q=void 0;(bna(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=iya(a);d=r(xqc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=r(xqc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return zqc(this,b)};var zqc=function(a,b){return[].concat(v(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};
var D8=function(){this.innerHeight$=(0,T.concat)((0,T.defer)(function(){return(0,T.of)(window.innerHeight)}),(0,T.fromEvent)(window,"resize").pipe(R(function(){return window.innerHeight})))};D8.\u0275fac=function(a){return new (a||D8)};D8.\u0275prov=hc({token:D8,factory:D8.\u0275fac,providedIn:"root"});
var t9a=function(a){return{hotlist:a,isCompact:!0}},x9a=function(a){return{hotlist:a,isCompact:!1}},E8=function(a,b,c,d,e,f,h,k,q,u,y,D){qI.call(this);var I=this;this.dialogRef=a;this.data=b;this.paths=c;this.hotlistFridge=d;this.hotlistApi=e;this.snackBar=f;this.appEvents=h;this.errorHandler=k;this.activeSession=q;this.userApi=u;this.windowHeight=y;this.permissionsFridge=D;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=
new T.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(Qf(100),dg(""));this.hotlists=[];this.allHotlistIds=new Set(this.data.selectedHotlistIds);this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.originalIds=new Set(this.data.selectedHotlistIds);this.pristine=!0;this.saveBtnLabel="Save";this.saveBtnTooltip="Save your hotlist choices";this.hotlistUnderEdit=new sy({name:new uy("",ly),description:new uy("")});this.currentUserEmail=this.activeSession.getUserEmail();this.starredHotlists=
new bS;this.isSavingStar=new bS;this.userHotlists$=zJb(this.hotlistFridge);this.issueHotlists$=EJ(this.hotlistFridge,Array.from(this.data.selectedHotlistIds));this.combineHotlistsWithPermissions=R(function(N){var L=EJ(I.permissionsFridge,N.map(function(S){return jo(S.hotlistId)}));return N.map(function(S,X){return Object.assign({},S,{permissions$:L.pipe(R(function(ka){return ka[X]}))})})});this.hotlists$=(0,T.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(R(function(N){var L=r(N);N=
L.next().value;L=L.next().value;return[].concat(v(N),v(L))}),R(LBb(function(N){return N.hotlistId})),R(function(N){return N.filter(el)}),R(function(N){return N.sort(M9a)}),R(function(N){return N.sort(function(L,S){var X=I.selectedHotlistIds;L=X.has(L.hotlistId);S=X.has(S.hotlistId);return L&&S?0:L?-1:S?1:0})}),this.combineHotlistsWithPermissions,bg({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(R(function(N){return new yqc(N)}),bg({bufferSize:1,refCount:!0}));this.visibleHotlists$=
(0,T.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(R(function(N){var L=r(N);N=L.next().value;var S=L.next().value;L=L.next().value;return""!==N.trim()?S.search(N):L}),bg({bufferSize:1,refCount:!0}));this.showLoadById$=this.query$.pipe(R(function(N){N=N.trim();return!I.allHotlistIds.has(Number(N))&&bna(N)}));this.showCreateNew$=(0,T.combineLatest)([this.query$,this.visibleHotlists$]).pipe(R(function(N){var L=r(N);N=L.next().value;L=L.next().value;return N9a(N,
L)}));this.isCompactMode$=this.visibleHotlists$.pipe(R(function(N){return 200<N.length}));this.compactHotlistItemHeight=24;this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(R(function(N){return Math.max(1,Math.floor(.5*N/24))}),Sf());this.hotlistViewportContainerHeight$=this.compactNumberOfHotlistsToShow$.pipe(R(function(N){return 24*N}));this.subscriptions.add(this.hotlists$.subscribe(function(N){I.hotlists=N;N=r(N);for(var L=N.next();!L.done;L=N.next())I.allHotlistIds.add(L.value.hotlistId)}))};
U(E8,qI);E8.\u0275dir=qI.\u0275dir;E8.prototype.ngOnInit=function(){var a=this;Aqc(this);this.query$.pipe(fg(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
var F9a=function(a,b){b.options.forEach(function(d){d.selected?a.selectedHotlistIds.add(d.value):a.selectedHotlistIds.delete(d.value)});b=kLa(a.originalIds,a.selectedHotlistIds);a.pristine=!b;var c=r(O9a(b));b=c.next().value;c=c.next().value;a.saveBtnLabel=b;a.saveBtnTooltip=c},qt=function(a){a.dialogRef.close(a.selectedHotlistIds)},q9a=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},Bqc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?
void 0:b.value)?a:""},p9a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=q9a(a),c=Bqc(a);a.hotlistApi.createHotlist(b,c).then(function(d){a.snackBar.open('Hotlist "'+d.name+"'\" saved.","dismiss",{duration:3E3});d=d.hotlistId;a.appEvents.hotlistChanged.next({hotlistId:d});a.selectedHotlistIds.add(d);a.dialogRef.close(a.selectedHotlistIds)}).catch(function(d){a.errorHandler.errorHandler(null,d)})},Aqc=function(a){a.userApi.getUserSidebar().then(function(b){a.starredHotlists.clear();
for(var c=r(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=r(b.bookmarkGroups||[]);for(c=b.next();!c.done;c=b.next())for(c=r(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)})};E8.prototype.isDirectAdmin=function(a){return a?Rl(a.adminUsers).includes(this.currentUserEmail):!1};
E8.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};
E8.prototype.toggleStar=function(a){var b=this,c,d,e;return ef(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a,userLogin:b.currentUserEmail};Ut(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),ff(f,b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return ff(f,b.userApi.saveFavorite(d),3);case 3:Xt(f);b.isSavingStar.delete(a);Yt(f,4);break;case 2:e=Wt(f);DK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),
b.appEvents.favoritesModified.next(),Aqc(b),gf(f)}})};var C9a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);qt(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};E8.prototype.trackByHotlistId=function(a,b){return b.hotlistId};E8.\u0275fac=function(a){return new (a||E8)(C(QB),C(aC),C(LK),C(iL),C(XK),C(uK),C(FK),C(BK),C(qH),C(cL),C(D8),C(WL))};
E8.\u0275cmp=w({type:E8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("keydown.meta.enter",function(){return qt(b)})("keydown.shift.enter",function(){return qt(b)})("keydown.control.enter",function(){return qt(b)})},features:[ee],decls:15,vars:4,consts:[[4,"ngIf","ngIfElse"],["mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal","role","button",3,"click"],["createNewHotlistBtn",""],["applyHotlistSelectionBtn",""],["updateHotlistSelectionPane",
""],["hotlistMatListOption",""],["createNewHotlistPane",""],[4,"ngTemplateOutlet"],["mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",1,"gmat-button",3,"disabled","click"],["mat-flat-button","","color","primary",1,"gmat-button",3,"mat-dialog-close","matTooltip","disabled","click"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter your starred hotlists",
1,"search-box",3,"input"],["searchBox",""],["mat-dialog-content","",1,"search-results"],["content",""],[3,"selectionChange"],["hotlistMatList",""],[4,"ngIf"],["class","muted margin-top",4,"ngIf"],["class","load-from-id-btn",3,"click",4,"ngIf"],["class","create-new-hotlist-btn",3,"click",4,"ngIf"],["regularMode",""],[1,"compact"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"matTooltip"],["tooltip","matTooltip"],["checkboxPosition","before",3,"selected","disabled","value","focus","blur"],[3,"ngTemplateOutlet",
"ngTemplateOutletContext"],[1,"muted","margin-top"],[1,"load-from-id-btn",3,"click"],[1,"muted"],[1,"create-new-hotlist-btn",3,"click"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],["class","valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked",4,"ngIf"],["matTooltip","Open hotlist in a new tab","target","_blank",1,"keep-focus-ring",3,"routerLink","click","keydown.enter"],["svgIcon","pop-out",1,"icon-s"],
["class","line-clamp-2 muted type-s",4,"ngIf"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked"],[1,"line-clamp-2","muted","type-s"],["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){a&1&&(M(0,m9a,2,1,"ng-container",0),F(1,"mat-dialog-actions")(2,"button",1),J("click",function(){b.dialogRef.close()}),O(3," Cancel "),G(),M(4,o9a,2,1,"ng-container",0),G(),M(5,r9a,2,1,"ng-template",null,2,Mf),M(7,s9a,2,5,"ng-template",null,3,Mf),M(9,G9a,19,12,"ng-template",null,4,Mf),M(11,K9a,1,1,"ng-template",null,5,Mf),M(13,L9a,14,1,"ng-template",null,6,Mf));if(a&2){var c=Fe(8),d=Fe(10);E("ngIf",b.showCreateNewPane)("ngIfElse",d);B(4);E("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:function(){return[Kx,
Gx,Qx,hF,dC,eC,fC,gC,EI,FB,JP,KP,wy,Mg,py,qy,Gy,Cy,Dy,aN,wF,Tx,F8]},styles:[".mat-dialog-content[_ngcontent-%COMP%]{width:500px;overflow-y:overlay}.mat-dialog-title[_ngcontent-%COMP%]{margin:0}.mat-dialog-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:0;margin-bottom:8px}.search-container[_ngcontent-%COMP%]{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}.search-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:8px}.search-container[_ngcontent-%COMP%]   input.search-box[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:transparent;margin-left:5px;height:100%;width:100%;padding-right:4px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   .title-line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:24px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:17px;line-height:17px}.search-results[_ngcontent-%COMP%]   mat-list-option[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.75rem;margin-top:-2px;line-height:1.2}.hotlist-link-and-star[_ngcontent-%COMP%]{visibility:hidden}.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}mat-list-option[_ngcontent-%COMP%]:focus-within   .hotlist-link-and-star[_ngcontent-%COMP%], mat-list-option[_ngcontent-%COMP%]:hover   .hotlist-link-and-star[_ngcontent-%COMP%]{visibility:unset}.create-new-hotlist-btn[_ngcontent-%COMP%], .load-from-id-btn[_ngcontent-%COMP%]{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}.create-new-hotlist-btn[_ngcontent-%COMP%]:hover, .load-from-id-btn[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}.create-hotlist-pane[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;color:#5f6368;color:var(--muted);font-weight:500}.create-hotlist-pane[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .create-hotlist-pane[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}mat-list-option[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.8125rem}.mat-list-base[_ngcontent-%COMP%]{margin:0 -24px}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content{padding:5px 0;padding-right:20px;padding-left:24px;align-items:flex-start}[_nghost-%COMP%]     .mat-list-base .mat-list-option .mat-list-item-content .mat-pseudo-checkbox{margin-top:3px}[_nghost-%COMP%]     .mat-list-base .compact .mat-list-option .mat-list-item-content{padding-top:0}[_nghost-%COMP%]     .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-left:12px}\n/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var F8=function(){};F8.prototype.transform=function(a){return Jpa(a)};F8.\u0275fac=function(a){return new (a||F8)};F8.\u0275pipe=zc({name:"stagedHotlistSlice",type:F8,pure:!0});
var G8=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},Cqc=function(a,b){var c,d,e,f,h,k,q,u;return ef(function(y){switch(y.nextAddress){case 1:return ff(y,(0,T.firstValueFrom)(b),2);case 2:return c=y.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?ff(y,a.openModal(e),3):y.return();case 3:f=y.yieldResult;if(null==f)return y.return();h=f.added.map(String);k=f.removed.map(String);q=String(c.issueId);Ut(y,4,5);return ff(y,FJb(a.issueFridge,
q,h,k),5);case 5:Xt(y);mt(a.eventsForIssueFridge,q);Yt(y,0);break;case 4:u=Wt(y),DK(a.errorHandler,u),y.jumpTo(5)}})};G8.prototype.openModal=function(a){var b=this,c,d,e,f;return ef(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:a},ariaLabel:"Search for Hotlists"},d=b.dialog.open(E8,c),ff(h,(0,T.firstValueFrom)(RB(d)),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=kLa(new Set(a),new Set(e));return h.return(Promise.resolve(f))})};
G8.\u0275fac=function(a){return new (a||G8)(t(cC),t(oL),t(DL),t(BK))};G8.\u0275prov=hc({token:G8,factory:G8.\u0275fac,providedIn:"root"});
var H8=function(a,b,c,d,e,f){qI.call(this);var h=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.hotlistPickerService=c;this.issueInteractionsTracking=d;this.errorHandler=e;this.liveAnnouncer=f;this.ISSUE_TYPE_TEXT=QJb;this.STATUS_FULL_TEXT=BL;this.STATUS_TERSE=xL;this.DUPLICATE=10;this.id$=new T.ReplaySubject(1);this.issue$=this.id$.pipe(eg(function(k){return h.issueFridge.watch(k)}));this.hotlistIds$=this.issue$.pipe(R(X9a));this.textOfHotlistBtn$=this.hotlistIds$.pipe(R(function(k){var q;
return null!=(q=null==k?void 0:k.length)?q:0}),R(function(k){return 5>=k?"Add Hotlist":""}));this.priority$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].priority}),R(function(k){return Tqa[k]}));this.type$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].type}),R(function(k){return Sqa[k]}));this.canonicalId$=this.issue$.pipe(R(function(k){return null==k?void 0:k.snapshot[0].duplicateOfIssueId}));this.statusForChip$=this.issue$.pipe(R(function(k){return null==
k?void 0:k.snapshot[0].status}),R(function(k){return am[k]}),R(function(k){return MJb[k]?k:void 0}));this.HOTKEYS=pI};U(H8,qI);H8.\u0275dir=qI.\u0275dir;
var U9a=function(a){return ef(function(b){return ff(b,Cqc(a.hotlistPickerService,a.issue$),0)})},S9a=function(a,b){var c,d;return ef(function(e){switch(e.nextAddress){case 1:return ff(e,(0,T.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;$R(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Ut(e,3,4);var f=FJb(a.issueFridge,c,[],[String(b)]);return ff(e,f,6);case 6:return ff(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Xt(e);mt(a.eventsForIssueFridge,c);Yt(e,
0);break;case 3:d=Wt(e),DK(a.errorHandler,d),e.jumpTo(4)}})};oi.Object.defineProperties(H8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});H8.\u0275fac=function(a){return new (a||H8)(C(oL),C(DL),C(G8),C(ZR),C(BK),C(dA))};
H8.\u0275cmp=w({type:H8,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[ee],decls:15,vars:12,consts:[[1,"flex-kids-x","gap-s"],[1,"chip-container","border-right","padded-s-right"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"issuePriority"],["class","flex-1 hotlist-container chip-container",4,"ngIf"],[1,"thread-filters"],["canonicalHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],["class","type-s nowrap",4,"ngIf"],[1,"type-s","nowrap"],
[3,"routerLink","onedevHovercardTrigger"],[1,"flex-1","hotlist-container","chip-container"],["mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",1,"gmat-button","small","add-hotlists-btn",3,"hotkey","onHotkey","click"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id","removeHotlist",4,"ngFor","ngForOf"],["removable","check-acl",3,"id","removeHotlist"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""]],template:function(a,b){a&1&&(F(0,"div",0)(1,
"div",1),M(2,Q9a,5,8,"div",2),P(3,"async"),M(4,R9a,2,4,"span",3),P(5,"async"),H(6,"b-issue-priority-display",4),P(7,"async"),G(),M(8,V9a,6,5,"div",5),P(9,"async"),F(10,"div",6),H(11,"smart-full-history-btn"),G()(),F(12,"onedev-hovercard",null,7),M(14,W9a,3,4,"b-issue-card",8),G());a&2&&(B(2),E("ngIf",Q(3,4,b.statusForChip$)),B(2),E("ngIf",Q(5,6,b.type$)),B(2),E("issuePriority",Q(7,8,b.priority$)),B(2),E("ngIf",Q(9,10,b.hotlistIds$)))},dependencies:[Kx,Gx,YI,fY,fN,gN,jN,hN,xX,v2,FB,hF,wF,EI,C8,Tx],
styles:["[_nghost-%COMP%]{display:block}.add-hotlists-btn[_ngcontent-%COMP%], button.gmat-button[_ngcontent-%COMP%]:not(.mat-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);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:-3px -2px 0}.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}.hotlist-container[_ngcontent-%COMP%]{max-height:72px;overflow-y:auto;padding-bottom:5px}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container b-hotlist-chip{margin-right:0}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container .chip, [_nghost-%COMP%]     .chip-container b-access-level-indicator .label{line-height:22px;height:22px}[_nghost-%COMP%]     .chip-container b-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;margin-right:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});
var I8=function(){};I8.\u0275fac=function(a){return new (a||I8)};I8.\u0275cmp=w({type:I8,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},decls:1,vars:1,consts:[[4,"ngIf"],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&M(0,Z9a,7,2,"ng-container",0);a&2&&E("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[Gx,CP],encapsulation:2,changeDetection:0});
var J8=function(){this.texts=[]};J8.prototype.getIssueId=function(a){return Number(a.text)};J8.prototype.trackByIndex=function(a){return a};J8.\u0275fac=function(a){return new (a||J8)};
J8.\u0275cmp=w({type:J8,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngSwitch"],[3,"email","withProfile",4,"ngSwitchCase"],[3,"href","issueId",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&M(0,c$a,5,3,"ng-container",0);a&2&&E("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[zW,Kx,Mx,Nx,Ox,yS],encapsulation:2,changeDetection:0});
var K8=function(a){this.hotlists=a;this.HOTLIST_SEARCH=kt.HOTLIST_SEARCH};K8.\u0275fac=function(a){return new (a||K8)(C(iL))};K8.\u0275cmp=w({type:K8,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(F(0,"a",0),O(1),P(2,"async"),G());if(a&2){var c;E("href",b.HOTLIST_SEARCH(b.id),Qd);B(1);He((null==(c=Q(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[Tx],encapsulation:2,changeDetection:0});
var L8=function(a){var b=this;this.componentFridge=a;this.id$=new T.ReplaySubject(1);this.name$=this.id$.pipe(Sf(),eg(function(c){return b.componentFridge.watchOne(c).pipe(R(function(d){var e;return d?D2b(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};L8.prototype.ngOnChanges=function(){this.id$.next(this.id)};L8.\u0275fac=function(a){return new (a||L8)(C(HJ))};
L8.\u0275cmp=w({type:L8,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Fc],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(F(0,"span",0),O(1),P(2,"async"),G(),F(3,"onedev-hovercard",null,1),M(5,d$a,3,2,"ng-container",2),G());if(a&2){var c=Fe(4);E("onedevHovercardTrigger",c);B(1);He(Q(2,2,b.name$)||b.id)}},dependencies:[fN,gN,
jN,hN,MS,Tx],encapsulation:2,changeDetection:0});
var t$a=function(a){return{"bv2-diff-newvalue-nextline":a}},N$a=function(a,b,c){return{diff:a,change:b,isLast:c}},M8=function(a,b){qI.call(this);this.activeSession=a;this.preferences=b;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=Zma;this.isLinkedItemArray=tta;this.isIssueDiff=qta;this.isHotlistDiff=rta};U(M8,qI);M8.\u0275dir=qI.\u0275dir;
var Dqc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)<=(null!=(d=a.timestamp)?d:0)},Eqc=function(a){if(2>a.internalDiffs.length)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return(null!=(c=b.timestamp)?c:0)>=(null!=(d=a.timestamp)?d:0)};
M8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(uf(el),fg(this.destroyed$)).subscribe(function(b){2>a.internalDiffs.length||(b&&Dqc(a)||!b&&Eqc(a))&&a.internalDiffs.reverse()})};M8.prototype.trackByIndex=function(a){return a};
var rt=function(a,b,c){return"<none>"===xja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},st=function(a,b,c){return"<none>"===xja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};M8.prototype.asNumber=function(a){return Number(a)};
M8.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};oi.Object.defineProperties(M8.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(v(a))}}});M8.\u0275fac=function(a){return new (a||M8)(C(qH),C(PI))};
M8.\u0275cmp=w({type:M8,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[ee],decls:6,vars:2,consts:[[1,"bv2-event-details"],["class","bv2-diff-row",4,"ngFor","ngForOf","ngForTrackBy"],["changeCollection",""],["effortNameDisabled",""],[1,"bv2-diff-row"],[4,"ngIf"],["mode","time",1,"float-right",3,"timestamp"],["class","bv2-diff-detail",4,"ngIf"],[1,"bv2-diff-detail"],[4,"ngIf","ngIfElse"],
["nonEffortFieldNames",""],[1,"bv2-diff-arrow"],[3,"email","showEmail"],[3,"id"],["mode","date",3,"timestamp",4,"ngIf"],["mode","date",3,"timestamp"],[3,"email","showEmail",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["notIssue",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"href","onedevHovercardTrigger","issueId"],[3,"onedevIsHovercardReady","issueId"],["cardBody",
""],["plainLink",""],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,hab,2,1,"div",1),G(),M(2,rab,1,1,"ng-template",null,2,Mf),M(4,sab,2,0,"ng-template",null,3,Mf));a&2&&(B(1),E("ngForOf",b.internalDiffs)("ngForTrackBy",b.trackByIndex))},dependencies:[Jx,Kx,Gx,Qx,fN,gN,jN,hN,xX,CP,iS,zW,K8,L8],styles:["\n/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});
var Fqc=["commentActionsMenu"],Bab=function(){return[]},N8=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka){qI.call(this);var ha=this;this.documentationLinks=a;this.activeSession=b;this.issueReferenceResolver=c;this.commentService=d;this.el=e;this.userAccess=f;this.butterBar=h;this.errorHandler=k;this.analytics=q;this.userPreferencesManager=u;this.issueDetailsBrain=y;this.editIssueService=D;this.issuePermissionService=I;this.commentHistoryDialogService=N;this.issueCommentDialogsService=L;this.dateFormatter=
S;this.paths=X;this.domSafe=ka;this.issueId$=new T.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Sf());this.event$=new T.ReplaySubject(1);this.isCommentEvent=Cn;this.isNonObfuscatedEmail=Rn;this.commentActionMenuItems$=new T.BehaviorSubject([]);this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingMode=1;this.commentRetentionOverride=null;a={};this.formattingModeMenuItems=(a[1]={type:"select",action:function(){ha.formattingMode=
1;ha.initializeActionsMenu()},label:"Classic",selected:!0},a[2]={type:"select",action:function(){ha.formattingMode=2;ha.initializeActionsMenu()},label:"Markdown",selected:!1},a[3]={type:"select",action:function(){ha.formattingMode=3;ha.initializeActionsMenu()},label:"Source",selected:!1},a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=this.event$.pipe(eg(function(ra){return ha.issuePermissionService.canEditComment$(ra)}),bg({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Kk(ha.canEditComment$)};
this.commentHistoryEnabled=sH(this.activeSession,"enableCommentHistoryUi");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(eg(function(ra){return ha.editIssueService.editableIssue$(ra)}));this.modifiedDateDisplay$=this.event$.pipe(R(function(ra){return new Date(ra.modifiedDate)}),eg(function(ra){return FOb(ha.dateFormatter,ra)}));this.ariaLabelHeading$=
(0,T.combineLatest)([this.event$,this.modifiedDateDisplay$]).pipe(R(function(ra){var Da=r(ra);ra=Da.next().value;Da=Da.next().value;if(null==ra)ra="";else{var Ja=[];ra.commentNumber&&Ja.push("Comment #"+ra.commentNumber);ra.userPerformingActionUser&&Ja.push(Ql(ra.userPerformingActionUser));Ja.push("Modified: "+Da);ra=Ja.join(", ")}return ra}));this.showFullHistory$=this.userPreferencesManager.showFullHistory$;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.preEventDiffs$=
(0,T.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(R(function(ra){ra=r(ra);var Da=ra.next().value;return ra.next().value?Da.postDiffs:Da.preDiffs}));this.postEventDiffs$=(0,T.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(R(function(ra){ra=r(ra);var Da=ra.next().value;return ra.next().value?Da.preDiffs:Da.postDiffs}));this.isShowingCommentTimestamp$=this.showFullHistory$.pipe(R(function(ra){return ra&&Cn(ha.event)&&!!ha.event.unlinkifiedComment&&(0<ha.event.preDiffs.length||
0<ha.event.postDiffs.length)}));this.getCommentNumberLink=function(ra){return qn(ha.issueId,{comment:ra})}};U(N8,qI);N8.\u0275dir=qI.\u0275dir;
N8.prototype.ngOnInit=function(){var a=this;this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);this.commentRetentionOverride=this.event.commentRetention;this.event$.pipe(fg(this.destroyed$)).subscribe(function(){Cn(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,T.of)(void 0)});Gqc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(fg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(fg(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(fg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(fg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
var Gqc=function(a){if(a.formattingMode){for(var b=r(Object.values(a.formattingModeMenuItems)),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.formattingModeMenuItems[a.formattingMode].selected=!0}};g=N8.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||CK(this.errorHandler,"Comment number is missing");io(this.analytics,mo.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(fg(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:I8a(c.getPiiRetention()),commentRetentionState:c.hasPiiRetentionState()?J8a(c.getPiiRetentionState()):null});yK(b.butterBar,
"Comment retention updated",4E3);b.commentRetentionOverride=2===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){CK(b.errorHandler,"Comment retention update failed")}})};
g.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent)b=a.previousValue,a=a.currentValue,b=(null==b?void 0:b.commentVersion)!==(null==a?void 0:a.commentVersion)||(null==b?void 0:b.commentContentVerdict)!==(null==a?void 0:a.commentContentVerdict);b&&(this.deobfuscatedEvent=void 0);this.event.formattingMode&&(this.formattingMode=tsa(this.event.formattingMode),0===this.formattingMode&&(this.formattingMode=1));this.initializeActionsMenu()};
g.getRestrictedLabel=function(){return tqa(Gl(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Gl(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:ph(a)}};g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var ut=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};g=N8.prototype;
g.loadRestrictedComment=function(){var a=this;io(this.analytics,mo.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=String(this.issueId),c=this.event.commentNumber||0,d=Fl(Gl(this.event.commentContentVerdict));this.commentService.get(b,c,d).pipe(Tf()).subscribe(function(e){e=Vm(e);a.deobfuscatedEvent=Object.assign({},a.event,e);a.initializeActionsMenu()},function(e){var f;zK(a.butterBar,"Error showing comment "+c+": "+(null==(f=e.error)?void 0:f.message))})};
g.initializeActionsMenu=function(){var a=this,b=[];if(this.isCommentEvent(this.event)&&(this.isFormattingOverrideEnabled||(b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]}),Gqc(this)),this.canEditComment()&&b.push({type:"action",action:function(){tt(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment...",
disabled:ut(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!ut(this)&&b.push({type:"action",action:function(){a.event.commentNumber&&a.showCommentHistoryDialog(a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Show comment history"}),!this.canonicalIssueId||this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){var d=a.paths.editIssue(a.canonicalIssueId,{template_issue:a.issueId,template_comment:a.event.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(d);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:ut(this)}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){umc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to...",disabled:ut(this)}),WMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Amc(a.issueCommentDialogsService,
String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),VMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){xmc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"}),this.isInternalSession&&b.push({type:"action",action:function(){Bmc(a.issueCommentDialogsService,
String(a.issueId),a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."}),this.isInternalSession&&this.isRestricted()&&this.issuePermissionService.canChangeCommentRetention()&&!this.isDeleted())){var c="COMPONENT_DEFAULT"===this.commentRetentionOverride;b.push({type:"action",action:function(){var d=c?2:1;Cmc(a.issueCommentDialogsService,"comment",d).then(function(e){a.commentActionsMenu.actionsMenuIconButton.focus();e&&a.updateCommentRetention(d)})},
label:c?"Match issue retention...":"Revert to component retention..."})}this.commentActionMenuItems$.next(b)};g.getUserEmailIfAvailable=function(){return Tl(this.event.userPerformingActionUser)};g.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};g.mayReadPii=function(){var a=mK(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Vk("error: ",b);return!1});return(0,T.from)(a)};
oi.Object.defineProperties(N8.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});N8.\u0275fac=function(a){return new (a||N8)(C(kP),C(qH),C(yW),C(y8),C(sd),C(lK),C(xK),C(BK),C(IM),C(PI),C(cO),C(fS),C(eO),C(FS),C(t6),C(BP),C(LK),C(mP))};
N8.\u0275cmp=w({type:N8,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&Ef(Fqc,5);if(a&2){var c;Df(c=Gf())&&(b.commentActionsMenu=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",event:"event"},features:[ee,Fc],decls:2,vars:3,consts:[[4,"ngIf"],[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",4,"ngIf","ngIfElse"],["plainUserDisplayName",""],[4,"ngIf","ngIfElse"],["emailDisplay",
""],["class","bv2-edit-comment-button","matTooltip","Edit Comment","aria-label","Edit Comment",3,"click",4,"ngIf"],[1,"bv2-event-info"],["content-type","comment",3,"label","retention","retentionState",4,"ngIf"],["mode","datetime",3,"timestamp"],["class","issue-detail-actions","matTooltip","Comment actions",3,"buttonLabel","menuItems",4,"ngIf"],[1,"float-clear"],["class","bv2-event-major-status",4,"ngIf"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled",4,"ngIf"],[1,"bv2-event-note-container"],
["mode","time","class","float-right muted type-s",3,"timestamp",4,"ngIf"],["class","muted italic",4,"ngIf"],[3,"disabled","onConfirm",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["class","bv2-event-note-edit-timestamp",4,"ngIf"],["class","margin-s-y border-top bv2-issue-event-attachments",4,"ngIf"],[3,"user","email","teamId"],[1,"bv2-event-user-name",3,"model"],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-event-user-id"],[1,"keep-focus-ring",
"vertical-centered",3,"routerLinkObj","click"],["matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button",3,"click"],["content-type","comment",3,"label","retention","retentionState"],["matTooltip","Comment actions",1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[1,"bv2-event-major-status"],[3,"texts"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],["mode","time",1,"float-right","muted","type-s",3,"timestamp"],[1,"muted","italic"],
[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode"],[1,"bv2-event-note-edit-timestamp"],[3,"event"],[3,"click",4,"ngIf"],[3,"click"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["class","margin-s-y bv2-issue-event-attachment",3,"id",4,"ngFor","ngForOf"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(M(0,Oab,37,30,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.issue$))},
dependencies:[IZ,A8,NW,Kx,Gx,Qx,CP,fN,jN,M8,hS,k5,m5,iT,kS,jS,zS,I8,J8,Tx],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0 0 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}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});
var O8=function(a,b,c,d,e,f,h,k){qI.call(this);var q=this;this.formattedCommentsForIssueFridge=a;this.preferences=b;this.eventsForIssue=c;this.editIssueService=d;this.issueDetailsBrain=e;this.dynamicScrollIntoView=f;this.bLocation=h;this.elementRef=k;this.showRecentEventsFirst=!1;this.issueId$=new T.ReplaySubject(1);this.internalIssueId=0;this.issue$=this.issueId$.pipe(eg(function(u){return q.editIssueService.editableIssue$(u.toString())}));this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=
this.issueDetailsBrain.isEffortEnabled$;this.events$=new T.ReplaySubject(1);this.commentsToFormat$=new T.ReplaySubject(1);this.internalEvents=[];this.allEventsToDisplay=[];this.firstEvent$=this.events$.pipe(R(function(u){return u[0]}));this.allEvents$=(0,T.combineLatest)([this.events$,this.firstEvent$]).pipe(R(function(u){var y=r(u);u=y.next().value;var D=y.next().value;if(u&&D){y=[].concat(v(u));D=Object.assign({},D,{addedAttachmentIds:[],attachments:[],commentNumber:null,formattedComment:void 0,
taggedSummary:[],isMajorEvent:!1});if(1===u.length)return[D];if(D.userPerformingAction===u[1].userPerformingAction)return u=Object.assign({},u[1],{preDiffs:[].concat(v(D.postDiffs),v(u[1].preDiffs))}),y.shift(),y[0]=u,y;y[0]=D;return y}return[]}));this.scrollToCommentOrAttachmentOnce=bua(function(){var u=q.bLocation.hash();if(u&&q.internalEvents){var y,D=r(null!=(y=u.match(RegExp("(comment|attachment)([0-9]+)")))?y:[]);D.next();y=D.next().value;var I=D.next().value;D=y;var N=I;if("lastcomment"===
u){u=En(q.internalEvents);if(-1===u)return;N=String(u);D="comment"}D&&N&&(u=q.internalEvents.some(function(L){return L.commentNumber===Number(N)}),y=q.internalEvents.flatMap(function(L){return L.attachments}).some(function(L){return L.attachmentId===Number(N)}),(u||y)&&nmc(q.dynamicScrollIntoView,{elementId:D+N,parentElement:q.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(fg(q.destroyed$)).subscribe())}})};U(O8,qI);O8.\u0275dir=qI.\u0275dir;
O8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(uf(el),fg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b;Hqc(a)});this.allEvents$.pipe(uf(el),fg(this.destroyed$)).subscribe(function(b){if(a.internalIssueId&&b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&d.commentNumber&&c.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(c)}});this.commentsToFormat$.pipe(uf(el),fg(this.destroyed$),eg(function(b){return EJ(a.formattedCommentsForIssueFridge,
b)})).subscribe(function(b){Iqc(a,b)})};
var Iqc=function(a,b){a.allEventsToDisplay=[];var c,d=null!=(c=Kk(a.allEvents$))?c:[];c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$event$1755:c.$jscomp$loop$prop$event$1755},e=d.next())if(c.$jscomp$loop$prop$event$1755=e.value,c.$jscomp$loop$prop$event$1755.commentNumber){if(e=b.find(function(f){return function(h){return h.id.commentId===f.$jscomp$loop$prop$event$1755.commentNumber}}(c)))c.$jscomp$loop$prop$event$1755.formattedComment=e.formattedComment.formattedComment,c.$jscomp$loop$prop$event$1755.formattingMode=
e.formattedComment.formattingMode,a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1755))}else a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1755));Hqc(a)};O8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(Cn(a)&&!!a.unlinkifiedComment||yta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};
var Hqc=function(a){2>a.allEventsToDisplay.length||(a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate<=a.allEventsToDisplay[1].modifiedDate||!a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate>=a.allEventsToDisplay[1].modifiedDate)&&a.allEventsToDisplay.reverse()};O8.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};O8.prototype.trackEventByVersion=function(a,b){return b.version};
O8.prototype.scrollToHashIfPresent=function(){this.internalEvents&&0!==this.internalEvents.length&&this.scrollToCommentOrAttachmentOnce()};oi.Object.defineProperties(O8.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){a&&!Lna(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a),this.scrollToHashIfPresent())}}});
O8.\u0275fac=function(a){return new (a||O8)(C(HL),C(PI),C(DL),C(fS),C(cO),C(m6),C(KK),C(sd))};
O8.\u0275cmp=w({type:O8,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},features:[ee],decls:4,vars:4,consts:[["class","padded margined",4,"ngIf"],[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"padded","margined"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"]],template:function(a,b){a&1&&(M(0,Pab,2,0,"aside",0),F(1,"div",1),M(2,Rab,
2,1,"ng-container",2),G(),M(3,Sab,2,0,"aside",0));a&2&&(E("ngIf",b.isLoading()&&b.showRecentEventsFirst),B(2),E("ngForOf",b.allEventsToDisplay)("ngForTrackBy",b.trackEventByVersion),B(1),E("ngIf",b.isLoading()&&!b.showRecentEventsFirst))},dependencies:[Kx,Gx,N8,cN],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}[_nghost-%COMP%]     .initial-diffs .bv2-event-details{margin-top:16px}.bv2-event[_ngcontent-%COMP%]:last-of-type{border-bottom:none}"]});
var P8=function(a,b,c){qI.call(this);var d=this;this.dynamicScrollIntoView=a;this.bLocation=b;this.elementRef=c;this.scrollToCommentOrAttachmentOnce=bua(function(){var e=d.bLocation.hash();if(e&&d.events){var f,h=r(null!=(f=e.match(RegExp("(comment|attachment)([0-9]+)")))?f:[]);h.next();f=h.next().value;var k=h.next().value;h=f;var q=k;if("lastcomment"===e){e=En(d.events);if(-1===e)return;q=String(e);h="comment"}h&&q&&(e=d.events.some(function(u){return u.commentNumber===Number(q)}),f=d.events.flatMap(function(u){return u.attachments}).some(function(u){return u.attachmentId===
Number(q)}),(e||f)&&nmc(d.dynamicScrollIntoView,{elementId:h+q,parentElement:d.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(fg(d.destroyed$)).subscribe())}})};U(P8,qI);P8.\u0275dir=qI.\u0275dir;P8.prototype.ngOnChanges=function(a){a.events&&this.scrollToHashIfPresent()};P8.prototype.trackEventByVersion=function(a,b){return b.version};
P8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(Cn(a)&&!!a.unlinkifiedComment||yta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};P8.prototype.scrollToHashIfPresent=function(){this.events&&this.scrollToCommentOrAttachmentOnce()};P8.\u0275fac=function(a){return new (a||P8)(C(m6),C(KK),C(sd))};
P8.\u0275cmp=w({type:P8,selectors:[["b-history-event-stream"]],inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",events:"events"},features:[ee,Fc],decls:2,vars:2,consts:[[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,Vab,2,1,"ng-container",1),G());a&2&&(B(1),E("ngForOf",b.events)("ngForTrackBy",
b.trackEventByVersion))},dependencies:[N8,Kx,Gx],encapsulation:2,changeDetection:0});
var Wab=function(a){return[a]},Q8=function(a,b,c,d,e,f,h){qI.call(this);var k=this;this.eventsForIssue=a;this.issueFetchResponseFridge=b;this.preferences=c;this.activeSession=d;this.commentHistoryDialogService=e;this.issueDetailsBrain=f;this.errorHandler=h;this.id$=new T.ReplaySubject(1);this.events$=this.id$.pipe(eg(function(q){return k.eventsForIssue.watch(q)}),R(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.issue$=this.id$.pipe(eg(function(q){return sL(k.issueFetchResponseFridge,
q)}));this.idNumber$=this.id$.pipe(R(Number));this.accessLevel$=this.issue$.pipe(R(function(q){var u,y;return null==q?void 0:null==(u=q.issue)?void 0:null==(y=u.accessLimit)?void 0:y.accessLevel}));this.enableEnhancedCommentThread=sH(this.activeSession,"enableEnhancedCommentThread")};U(Q8,qI);Q8.\u0275dir=qI.\u0275dir;
Q8.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&void 0!==b&&-1<b){var d=Kk(a.id$);d&&a.commentHistoryDialogService.show(Number(d),c,null!=b?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}))};oi.Object.defineProperties(Q8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
Q8.\u0275fac=function(a){return new (a||Q8)(C(DL),C(rL),C(PI),C(qH),C(FS),C(cO),C(BK))};
Q8.\u0275cmp=w({type:Q8,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[ee],decls:6,vars:6,consts:[[3,"events","issueId","issueAccessLevel","showFullHistory",4,"ngIf"],[3,"issueId","events","issueAccessLevel","showFullHistory",4,"ngIf","ngIfElse"],["legacyCommentThread",""],["class","padded margined",4,"ngIf"],[3,"events","issueId","issueAccessLevel","showFullHistory"],[3,"issueId","events","issueAccessLevel","showFullHistory"],[3,"issueId","issueAccessLevel","events","showFullHistory"],
[1,"padded","margined"]],template:function(a,b){a&1&&(M(0,Xab,4,12,"b-history-event-stream",0),P(1,"async"),M(2,Yab,5,12,"b-event-stream",1),M(3,Zab,6,15,"ng-template",null,2,Mf),M(5,$ab,2,0,"aside",3));if(a&2){var c=Fe(4),d;E("ngIf",!b.enableEnhancedCommentThread&&(null==(d=Q(1,4,b.issue$))?null:d.firstEvent));B(2);E("ngIf",b.enableEnhancedCommentThread)("ngIfElse",c);B(3);E("ngIf",b.eventsForIssue.isThinking(b.id)&&!b.enableEnhancedCommentThread)}},dependencies:[Gx,O8,P8,cN,Tx,Zx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});
var fbb=function(a,b){return{empty:a,"never-focused":b}},R8=function(a,b,c,d,e,f,h,k){var q=this;this.issuePermissionService=a;this.userPreferencesManager=b;this.editIssueService=c;this.analytics=d;this.draftStore=e;this.activeSession=f;this.issueDetailsBrain=h;this.issueCommentDialogsService=k;this.issueId$=new T.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Sf());this.issue$=this.distinctIssueId$.pipe(eg(function(u){return q.editIssueService.editableIssue$(u)}));this.wasFocused=!1;this.commentSubmitted=
new Vw;this.HOTKEYS=pI;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(R(function(u){return u.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(R(function(u){return q.editIssueService.issueCommentDraft(u)}));
this.judgementForNewContent$=this.issueCommentDraft$.pipe(eg(function(u){return u.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(eg(function(u){return u.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(R(function(u){return q.editIssueService.savingState(u)}));this.isSaving$=this.savingState$.pipe(eg(function(u){return Us(u.propertiesBeingSaved,Xn("comment"))}));this.commentLimitReached$=this.events$.pipe(R(function(u){var y=q.activeSession.getCommentNumberLimit();
return En(u)>=y}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(R(function(u){return u?"The comment limit has been reached and no additional comments are permitted.":q.activeSession.isAnonymous()?"Sign in to use full features.":q.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=(0,T.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(R(function(u){var y=r(u);u=y.next().value;
var D=y.next().value;y=y.next().value;return u&&!D&&!y}));this.commentDraftUpdated$=new T.BehaviorSubject(!0);this.commentButtonEnabled$=(0,T.combineLatest)([this.hasAclToComment$,this.comment$,this.isSaving$,this.commentDraftUpdated$]).pipe(R(function(u){var y=r(u);u=y.next().value;var D=y.next().value;y=y.next().value;return u&&QQb(D)&&!y}));this.empty$=(0,T.combineLatest)([this.comment$,this.commentDraftUpdated$]).pipe(R(function(u){var y,D;return null!=(D=null==(y=r(u).next().value)?void 0:y.value)?
D:""}),R(function(u){return 0===u.length}))};R8.prototype.toggleAutoCcOnComment=function(){var a=this,b;return ef(function(c){b=!Ii(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;io(a.analytics,mo.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return ff(c,(0,T.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
R8.prototype.saveCommentDraft=function(){var a=this,b;return ef(function(c){if(1==c.nextAddress)return ff(c,(0,T.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(Bo(Number(a.internalIssueId)),b.value);a.commentDraftUpdated$.next(!0);gf(c)})};R8.prototype.submitCommentBox=function(){var a=this;return ef(function(b){if(1==b.nextAddress)return ff(b,a.issueCommentDialogsService.submitCommentBox(a.internalIssueId),2);a.commentSubmitted.emit();gf(b)})};
R8.prototype.showNewContentJudgementDialog=function(){var a=this;return ef(function(b){return ff(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};oi.Object.defineProperties(R8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}}});R8.\u0275fac=function(a){return new (a||R8)(C(eO),C(PI),C(fS),C(IM),C(BR),C(qH),C(cO),C(t6))};
R8.\u0275cmp=w({type:R8,selectors:[["b-post-comment"]],inputs:{issueId:"issueId"},outputs:{commentSubmitted:"commentSubmitted"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment",3,"ngClass"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","onHotkey","onChange","onFocusEvent","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled",
"onAction","click"],["class","goog-inline-block vertical-centered",4,"ngIf"],[3,"accessLevel"],["label","CC Me",3,"checked","disabled","change"],[1,"goog-inline-block","vertical-centered"],["label","CC Me",3,"checked","disabled","tooltip",4,"ngIf"],["label","CC Me",3,"checked","disabled","tooltip"]],template:function(a,b){a&1&&(M(0,hbb,2,1,"ng-container",0),P(1,"async"));a&2&&E("ngIf",Q(1,1,b.issue$))},dependencies:[oO,iX,MW,Jx,Gx,LS,YI,mQ,Tx],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%}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}\n/*# sourceMappingURL=post_comment.css.map */"]});
var S8=function(){this.images=[]};S8.\u0275fac=function(a){return new (a||S8)};S8.\u0275cmp=w({type:S8,selectors:[["inline-images-summary"]],inputs:{images:"images"},decls:1,vars:0,template:function(a){a&1&&O(0,"Inline images summary\n")}});
var T8=function(){this.isSelected=!0;this.isSelectedChange=new Vw};T8.prototype.ngOnInit=function(){};T8.\u0275fac=function(a){return new (a||T8)};
T8.\u0275cmp=w({type:T8,selectors:[["issue-summary-chip"]],inputs:{isSelected:"isSelected",icon:"icon",ariaLabel:"ariaLabel"},outputs:{isSelectedChange:"isSelectedChange"},ngContentSelectors:["*"],decls:4,vars:6,consts:[["role","switch",1,"chip","keep-focus-ring",3,"click"],[4,"ngIf"]],template:function(a,b){a&1&&(Ae(),F(0,"button",0),J("click",function(){b.isSelected=!b.isSelected;b.isSelectedChange.emit(b.isSelected)}),M(1,ibb,2,0,"mat-icon",1),M(2,jbb,2,1,"mat-icon",1),Be(3),G());a&2&&(pe("muted",
!b.isSelected),ke("aria-label",b.ariaLabel)("aria-checked",b.isSelected),B(1),E("ngIf",b.isSelected),B(1),E("ngIf",!b.isSelected&&b.icon))},dependencies:[Gx,hF],styles:[".chip.muted[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--base-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider)}.chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50);border:0;border-radius:15px;display:inline-flex;align-items:center;height:30px;padding:0 16px}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.chip[_ngcontent-%COMP%]:hover{filter:brightness(95%)}"]});
var Jqc=function(){return[]},U8=function(a){var b=this;this.activeSession=a;this.images$=(0,T.of)([]);this.imageSection={isAvailable:!0,isSelected:!0};this.shouldShowImages$=this.images$.pipe(R(function(c){return sH(b.activeSession,"enableImageSummary")&&!!c.length}))};U8.\u0275fac=function(a){return new (a||U8)(C(qH))};
U8.\u0275cmp=w({type:U8,selectors:[["issue-summary-card"]],decls:5,vars:9,consts:[[1,"chip-container"],["icon","crop_original","ariaLabel","Toggle screenshots widget",3,"isSelected","isSelectedChange",4,"ngIf"],[3,"images"],["icon","crop_original","ariaLabel","Toggle screenshots widget",3,"isSelected","isSelectedChange"]],template:function(a,b){a&1&&(F(0,"div",0),M(1,kbb,3,4,"issue-summary-chip",1),P(2,"async"),G(),H(3,"inline-images-summary",2),P(4,"async"));if(a&2){var c;B(1);E("ngIf",Q(2,4,b.shouldShowImages$));
B(2);pe("hidden",!b.imageSection.isSelected);E("images",null!==(c=Q(4,6,b.images$))&&void 0!==c?c:Ke(8,Jqc))}},dependencies:[Gx,S8,T8,Tx],styles:[".chip-container[_ngcontent-%COMP%]{display:flex}issue-summary-chip[_ngcontent-%COMP%]{margin:0 4px}inline-images-summary[_ngcontent-%COMP%]{display:block;margin-top:24px}inline-images-summary.hidden[_ngcontent-%COMP%]{display:none}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});
var V8=function(a,b,c,d,e,f,h,k,q){qI.call(this);var u=this;this.brain=a;this.activeSession=b;this.preferences=c;this.scrollTiming=d;this.analytics=e;this.element=f;this.editIssueService=h;this.appEvents=k;this.routePerformance=q;this.id$=this.brain.id$;this.enableEnhancedCommentThread=sH(this.activeSession,"enableEnhancedCommentThread");this.enableSummarySection=sH(this.activeSession,"enableSummarySection");this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(uf(el),eg(function(y){return u.editIssueService.issueCommentDraft(y).comment$}));
this.finishedRendering$=(0,T.combineLatest)([this.brain.eventsJs$.pipe(Rf(0)),aq("#AddCommentBox textarea",this.element.nativeElement)]).pipe(Tf())};U(V8,qI);V8.\u0275dir=qI.\u0275dir;
V8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(uf(el),fg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){Kqc(a)});aq("#comment1 .bv2-event-note-container",this.element.nativeElement).pipe(fg(this.destroyed$)).subscribe(function(){var b=function(){Q7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.finishedRendering$.pipe(hg(this.comment$)).subscribe(function(b){b=
r(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};V8.prototype.unloadPageHandler=function(){Kqc(this)};
var Kqc=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"):[])&&!(2>b.length)){for(var c=b[0],d=b[0],e=0,f=1;f<b.length;f++)2E3>b[f]-d||(e+=d-c,c=b[f]),d=b[f],f===b.length-1&&(e+=b[f]-c);io(a.analytics,mo.EDIT_ISSUE,"scroll","commentThread",e)}};V8.\u0275fac=function(a){return new (a||V8)(C(cO),C(qH),C(PI),C(SO),C(IM),C(sd),C(fS),C(FK),C(R_))};
V8.\u0275cmp=w({type:V8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,vd)},features:[ee],decls:5,vars:7,consts:[["class","carded margined-s bg-main",4,"ngIf"],["id","bv2-edit-issue-details-scroll","class","carded margined-s bg-main","tabindex","-1",3,"recent-first","bFocus",4,"ngIf"],[1,"carded","margined-s","bg-main"],[1,"margin-s-bottom",3,"id"],[3,"id"],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"carded","margined-s",
"bg-main",3,"bFocus"],["class","margin-s-bottom",3,"id",4,"ngIf"],[4,"ngIf"],[3,"id",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(M(0,lbb,3,2,"div",0),P(1,"async"),M(2,mbb,2,0,"div",0),M(3,rbb,6,8,"div",1),P(4,"async"));a&2&&(E("ngIf",b.enableEnhancedCommentThread&&Q(1,3,b.id$)),B(2),E("ngIf",b.enableSummarySection),B(1),E("ngIf",Q(4,5,b.id$)))},dependencies:[Gx,R8,H8,Q8,U8,d_,B8,x8,Tx],encapsulation:2});
var W8=function(){};W8.\u0275fac=function(a){return new (a||W8)};W8.\u0275mod=xc({type:W8});W8.\u0275inj=ic({imports:[ay,AF,wG]});
var X8=function(){};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275mod=xc({type:X8});X8.\u0275inj=ic({providers:[],imports:[ay,LZ,aT,WH,wG,AF,gH,o5,VS]});
var Y8=function(){};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275mod=xc({type:Y8});Y8.\u0275inj=ic({imports:[LZ,X8,dX,ay,WP,QN,xS,wG,AF,gH,o5,jT,AS]});
var Z8=function(){};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275mod=xc({type:Z8});Z8.\u0275inj=ic({imports:[ay,XH,AF,hC,KI,GO,wG,LP,sK,Ky,Ly,MN,gH,MA]});
var $8=function(){};$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275mod=xc({type:$8});$8.\u0275inj=ic({imports:[ay,wG,AF,gH,tC,vC]});
var a9=function(a){qI.call(this);this.prefs=a};U(a9,qI);a9.\u0275dir=qI.\u0275dir;a9.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(fg(this.destroyed$)).subscribe()};a9.\u0275fac=function(a){return new (a||a9)(C(PI))};
a9.\u0275cmp=w({type:a9,selectors:[["b-toggle-code-font"]],features:[ee],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(Ae(),F(0,"mat-slide-toggle",0),J("change",function(c){return b.onChange(c)}),P(1,"async"),Be(2),G());a&2&&E("checked",Q(1,1,b.prefs.codeFont$))},dependencies:[wF,xT,Tx],changeDetection:0});
var b9=function(){};b9.\u0275fac=function(a){return new (a||b9)};b9.\u0275mod=xc({type:b9});b9.\u0275inj=ic({imports:[ay,gH,GO,AT,AF,wG,ON]});
var c9=function(){};c9.\u0275fac=function(a){return new (a||c9)};c9.\u0275mod=xc({type:c9});c9.\u0275inj=ic({providers:[G8],imports:[ay,WS,ZI,gY,Z8,QN,BX,Y4,z2,$8,wG,AF,gH,KI,MN,b9]});
var Lqc=[K8,M8,L8],d9=function(){};[].concat(v(Lqc));[].concat(v(Lqc));d9.\u0275fac=function(a){return new (a||d9)};d9.\u0275mod=xc({type:d9});d9.\u0275inj=ic({imports:[ay,QN,BX,WP,AS,XS,dX]});
var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=xc({type:e9});e9.\u0275inj=ic({providers:[],imports:[LZ,X8,dX,ay,WP,QN,d9,xS,o5,jT,AS]});
var f9=function(){};f9.\u0275fac=function(a){return new (a||f9)};f9.\u0275mod=xc({type:f9});f9.\u0275inj=ic({imports:[ay,e9,d9,wG,AF,ON]});
var Mqc=[P8],g9=function(){};[].concat(v(Mqc));[].concat(v(Mqc));g9.\u0275fac=function(a){return new (a||g9)};g9.\u0275mod=xc({type:g9});g9.\u0275inj=ic({imports:[e9,ay]});
var h9=function(){};h9.\u0275fac=function(a){return new (a||h9)};h9.\u0275mod=xc({type:h9});h9.\u0275inj=ic({imports:[dX,ay,f9,g9,Y8,Y4,$8,wG,AF,gH,ON,MN,AS]});
var i9=function(){};i9.\u0275fac=function(a){return new (a||i9)};i9.\u0275mod=xc({type:i9});i9.\u0275inj=ic({imports:[pO,QX,dX,ay,WS,Ky,ZI,wG,GO,AF,nQ]});
var j9=function(){};j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=xc({type:j9});j9.\u0275inj=ic({imports:[ay]});
var k9=function(){};k9.\u0275fac=function(a){return new (a||k9)};k9.\u0275mod=xc({type:k9});k9.\u0275inj=ic({imports:[ay,j9,AF]});
var l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=xc({type:l9});l9.\u0275inj=ic({imports:[rz,Sz,Ky,Ly,KI,wG,cX,dP,i9,AS,c9,h9,k9,e_,Y8,W8]});
var m9=function(a,b){var c=this;this.issueFridge=a;this.issueDetailsBrain=b;this.ROBOT_SLEEPING=kkc;this.issue$=this.issueDetailsBrain.id$.pipe(eg(function(d){return c.issueFridge.watch(d)}),uf(el));this.relatedLinks$=this.issue$.pipe(R(function(d){return d.relatedLinks||[]}));this.issueReferences$=this.relatedLinks$.pipe(R(function(d){return d.filter(function(e){return"issueReference"===e.type})}));this.ids$=(0,T.combineLatest)([this.issueReferences$.pipe(R(function(d){return d.map(function(e){return e.issueId})})),
this.issue$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return Nqc(d,e)}));this.urls$=this.relatedLinks$.pipe(R(function(d){return d.filter(function(e){return"hyperlink"===e.type})}),R(function(d){return d.map(function(e){return e.href})}),R(function(d){return[].concat(v(new Set(d)))}));this.state$=(0,T.combineLatest)([this.ids$,this.urls$]).pipe(R(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{ids:d,urls:e,hasNoResults:0===d.length&&0===e.length}}))},Nqc=function(a,
b){var c=String(b.issueId);return[].concat(v(new Set(a))).filter(function(d){return d!==c})};m9.\u0275fac=function(a){return new (a||m9)(C(oL),C(cO))};
m9.\u0275cmp=w({type:m9,selectors:[["issue-resources"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/b-resources-and-links","target","_blank"],[1,"gap"],[4,"ngFor","ngForOf"],[1,"margin-bottom"],["svgIcon","info",1,"icon-s","valign-middle"],[3,"issueIds"],[3,"href","originalHref"]],
template:function(a,b){a&1&&(F(0,"section",0),M(1,xbb,4,2,"ng-container",1),P(2,"async"),G());a&2&&(B(1),E("ngIf",Q(2,1,b.state$)))},dependencies:[Kx,Gx,vW,O6,hF,Tx],styles:["[_nghost-%COMP%]{display:block;padding:8px;word-break:break-word}ul[_ngcontent-%COMP%]{list-style:disc}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}\n/*# sourceMappingURL=issue_resources.css.map */"]});
var n9=function(){};n9.\u0275fac=function(a){return new (a||n9)};n9.\u0275mod=xc({type:n9});n9.\u0275inj=ic({imports:[ay,dX,U6,AF]});
var o9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=kkc;this.id$=this.brain.id$.pipe(uf(el));this.codeMentionsState$=this.id$.pipe(eg(function(d){return Xlc(c.codeMentions,Number(d))}))};o9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};o9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};o9.\u0275fac=function(a){return new (a||o9)(C(cO),C(f6))};
o9.\u0275cmp=w({type:o9,selectors:[["issue-todos"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],["class","empty-state layout-centered-column gap",4,"ngIf","ngIfElse"],["hasResults",""],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"],[3,"issueId","packageMentionSet","displayPackageName",4,"ngFor","ngForOf"],[1,"margin-top"],["target","_blank",3,
"href","click"],[3,"issueId","packageMentionSet","displayPackageName"]],template:function(a,b){a&1&&(F(0,"section",0),M(1,Dbb,3,3,"ng-container",1),P(2,"async"),G());a&2&&(B(1),E("ngIf",Q(2,1,b.id$)))},dependencies:[Kx,Gx,e5,Tx],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 p9=function(a,b,c,d,e){this.cdr=a;this.pageTitle=b;this.userApi=c;this.paths=d;this.errorHandler=e;this.isLoading=!1;this.hotlists=[];this.createHotlistPath=this.paths.createHotlist()};p9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
p9.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;this.userApi.getUserHotlists().then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};p9.\u0275fac=function(a){return new (a||p9)(C(mI,2),C(YN),C(cL),C(LK),C(BK))};
p9.\u0275cmp=w({type:p9,selectors:[["list-hotlists-page"]],features:[Je([mI])],decls:8,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large",4,"ngIf"],[3,"hotlists",4,"ngIf"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Browse Hotlists"),G(),F(2,"div",1)(3,"a",2),O(4," Create Hotlist "),G()(),F(5,"div",3),M(6,Ebb,1,1,"b-spinner",4),M(7,Fbb,1,1,"b-hotlist-grid",5),G());a&
2&&(B(3),E("href",b.createHotlistPath,Qd),B(3),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading))},dependencies:[Gx,lZ,cN,GB],encapsulation:2});
var Oqc=new Set(["issueId","modifiedTime","createdTime"]),q9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La){qI.call(this);var hb=this;this.cdr=a;this.routerEvents=b;this.window=c;this.bLocation=d;this.$log=e;this.issueApi=f;this.userApi=h;this.hotlistApi=k;this.activeSession=q;this.butterBar=u;this.analytics=y;this.currentSearch=D;this.issuePagination=I;this.userPreferencesManager=N;this.urlPreferences=L;this.gridPreferencesFetcher=S;this.paths=X;this.timeout=ka;this.errorHandler=
ha;this.statusMessages=ra;this.domSafe=Da;this.appEvents=Ja;this.hotlistFridge=Ba;this.issueFridge=La;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 fb;null==(fb=hb.resultsGrid)||R4b(fb)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||S4b(fb)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||Q4b(fb)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var fb;null==(fb=hb.resultsGrid)||U4b(fb)}},{keys:[Qj("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var fb;null==(fb=hb.resultsGrid)||V4b(fb,!0)}},{keys:[Qj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var fb;null==(fb=hb.resultsGrid)||V4b(fb,!1)}},{keys:[Rj("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||fb.selectAll()}},{keys:[Rj("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var fb;null==(fb=hb.resultsGrid)||N4b(fb)}},
{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var fb;null==(fb=hb.gridControls)||JX(fb,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var fb;null==(fb=hb.gridControls)||JX(fb,Fn.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var fb;if(null!=(fb=hb.gridControls)&&fb.hasSelectedIssues()){var Tb;null==(Tb=fb.hotlistPicker)||Tb.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var fb;
null==(fb=hb.gridControls)||m3b(fb)}},{keys:["u",Qj("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return hb.refreshResults()}},{keys:[Rj("p","0"),Rj("p","1"),Rj("p","2"),Rj("p","3"),Rj("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(fb){hb.resultsGrid&&hb.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+fb}],issueIds:Ri(hb.resultsGrid.getSelectedIssues(),"issueId")}])}},{keys:["o","ENTER",ioa("ENTER")],
displayAs:"o / Enter",description:"Open the current issue",onPress:function(fb){var Tb=c.document.activeElement;if(1==fb&&"A"==Tb.tagName)if(Tb.href)fb=hb.paths.getBaseUrl(),Qi(Tb.href,fb)?hb.bLocation.url(Tb.href.slice(fb.length)):hb.domSafe.openInNewTab(Tb.href);else{var va;null==(va=hb.resultsGrid)||LY(va)}else if(2===fb){var Ca;null==(Ca=hb.resultsGrid)||LY(Ca,{openInNewTab:!0})}else{var Ia;null==(Ia=hb.resultsGrid)||LY(Ia)}}}]};U(q9,qI);
q9.prototype.ngOnInit=function(){var a=this;Pqc(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(fg(this.destroyed$)).subscribe(function(){Pqc(a)})};
var Qqc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(Xi)};
q9.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Hi(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var Pqc=function(a){return Rqc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?Sqc(a,a.searchResults.startIndex,a.searchResults.endIndex):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},Tqc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},Uqc=function(a){var b,c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},Rqc=function(a){var b=
Nj();Tqc(a)&&Uqc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},Sqc=function(a,b,c){var d=Nj();Tqc(a)||Vqc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},Wqc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=Wn("Number of search results exceeds "+c+"; some matching issues may be omitted.",Vn("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),
c={},c=Vn("A",(c.href="http://go/buganizer-faq#q-why-do-i-need-to-restrict-my-search-to-less-than-1000-results",c),"go/buganizer-faq"),c=Wn(Vn("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?Wn(b,c):b,FIb(a.butterBar,b))};g=q9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Xi(a);if(d){var e=new $i(d,"ASC"==b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return Hi(f.fieldId,e.fieldId)});!c||Oqc.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
g.getSort=function(){if(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Mi(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Hi(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){oZ(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?Xqc:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(v(b),v(q4b(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Xi(b.name)});oZ(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(io(this.analytics,this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):c&&c.shiftKey?nP(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var vt=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=q9.prototype;g.refreshResults=function(){MM(this.issuePagination);return Pqc(this)};
g.hasResults=function(){return this.searchResults&&0<this.searchResults.issues.length};
g.sendBulkEditRequest=function(a){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(a[0].issueIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;null==(f=this.searchResults)||lLb(f,e,c)}this.cdr.detectChanges();yK(this.butterBar,"Saving changes...",0);return qL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){for(var q=r(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var y=void 0,D=void 0;
null==(y=b.searchResults)||lLb(y,u,void 0,null!=(D=k)?D:null)}yK(b.butterBar,"Successfully marked issues "+(c?"read.":"unread."))}).catch(function(k){for(var q=r(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var y=void 0;null==(y=b.searchResults)||lLb(y,u)}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=EQb(a).map(function(k){return k.fieldName});io(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};yK(this.butterBar,"Saving changes...",
0);return this.issueApi.issueBulkEdit(h).then(function(k){if(b.searchResults){b.searchResults=b.searchResults.clone();for(var q=r(b.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var y=r(u.value);u=y.next().value;y=y.next().value;k.affectedIssues[y.issueId]&&(y=k.affectedIssues[y.issueId],u=b.searchResults.issues[u],hLb(u,y,k.componentMap[sa(y.snapshot).componentId]),u.selected=!0,b.loadHotlists(u),Object.assign(b.customFieldMap,u.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+
(Ri(k.errors,"issueId").join(", ")+"."),zK(b.butterBar,q),io(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=IQb(b.statusMessages,h,b.customFieldMap))?yK(b.butterBar,k):yK(b.butterBar,"Saved "+FQb(h.bulkEditOps).length+" issue(s).");b.cdr.detectChanges()}).catch(function(k){b.errorHandler.errorHandler(null,k)})};
g.loadHotlists=function(a){var b=this;var c=a?[a]:this.searchResults?this.searchResults.issues:[];a=new Set;for(var d=r(c),e=d.next();!e.done;e=d.next())if(e=e.value,e.hotlistId){e=r(e.hotlistId);for(var f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]||a.add(f)}0!==a.size&&this.hotlistApi.bulkLoad([].concat(v(a))).then(function(){for(var h={},k=r(c),q=k.next();!q.done;h={$jscomp$loop$prop$loadedHotlists$1757:h.$jscomp$loop$prop$loadedHotlists$1757},q=k.next()){q=q.value;if(!q.hotlistId)return;
h.$jscomp$loop$prop$loadedHotlists$1757=[];q.hotlists=h.$jscomp$loop$prop$loadedHotlists$1757;q=r(q.hotlistId);for(var u=q.next();!u.done;u=q.next())u=u.value,b.hotlistMap[u]?h.$jscomp$loop$prop$loadedHotlists$1757.push(b.hotlistMap[u]):b.hotlistApi.get(u).then(function(y){return function(D){b.hotlistFridge.announce(D);b.addHotlist(D);y.$jscomp$loop$prop$loadedHotlists$1757.push(D)}}(h))}b.cdr.detectChanges()})};
g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;io(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");yK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);yK(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback;a=a.errorCallback;yK(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.exportCsv=function(){io(this.analytics,this.ANALYTICS_CATEGORY,"exportCsv");oP(this.domSafe,this.getCsvUrl())};
var Yqc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(fg(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;oZ(a.urlPreferences,{page:1});io(a.analytics,a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){Uk(c)})},Vqc=function(a,b,c){var d=a.issuePagination.focusedIssueIndex_;a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{uLb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},Kbb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
oi.Object.defineProperties(q9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Hi(this.issueColumnsInternal,a)||(io(this.analytics,this.ANALYTICS_CATEGORY,"columnModification",cva(this.issueColumnsInternal.map(function(b){return b.toString()}),a.map(function(b){return b.toString()}))),this.issueColumnsInternal=a,this.saveColumns(this.issueColumns.slice(this.metaColumns.length)))}}});var Xqc=[MY,NY,OY];
q9.\u0275fac=function(a){return new (a||q9)(C(mI),C(NI),C(Window),C(KK),C(AK),C(fK),C(cL),C(XK),C(qH),C(xK),C(IM),C(GN),C(LM),C(PI),C(nZ),C(tZ),C(LK),C(fI),C(BK),C(FR),C(mP),C(FK),C(iL),C(oL))};q9.\u0275dir=w({type:q9,features:[ee]});
var r9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va){q9.call(this,a,b,c,d,f,h,k,q,e,u,y,D,I,N,L,S,X,ka,Ba,ha,ra,hb,Tb,va);this.hotkeys=Da;this.pageTitle=Ja;this.routePerformance=La;this.element=fb;this.ANALYTICS_CATEGORY=mo.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1};U(r9,q9);r9.\u0275dir=q9.\u0275dir;g=r9.prototype;
g.ngOnInit=function(){var a=this;q9.prototype.ngOnInit.call(this);this.subscriptions.add(XI(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
g.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),zK(this.butterBar,b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",HN(this.currentSearch,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,oZ(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);HN(this.currentSearch,
this.query);b=JMb(this.currentSearch);if(0<b)return SIb(this.bLocation,this.paths.viewHotlist(b)),oZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=KMb(this.currentSearch);if(0<b)return SIb(this.bLocation,this.paths.viewSavedSearch(b)),oZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,T.concat)((0,T.timer)(0).pipe(mha()),aq("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){Q7b(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(){var a=this,b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:Qqc(this)}),c=b.searchPreferences.then(function(f){f=Ii(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();return qLb(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&io(this.analytics,this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&io(this.analytics,this.ANALYTICS_CATEGORY,"searchByComponent");
c.then(function(f){Wqc(a,f)}).catch(function(f){"number"===typeof f?oZ(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Lo({searchResultsPage:c,displayColumns:b}).then(function(f){var h=f.searchResultsPage;a.searchResults=a.processSearchResults(h);a.page=h.params.page;a.sortPreferences=h.params.sortColumns||[];a.cdr.detectChanges();a.loadHotlists();io(a.analytics,a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+
")")})};g.processSearchResults=function(a){return a};g.computeQuery=function(){return this.query};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Xi(b.name)});mFb(this.userPreferencesManager,r4b(a)).pipe(fg(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.currentSearch.currentSearch===HMb(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.currentSearch.currentSearch==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.currentSearch.currentSearch==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.currentSearch.currentSearch===IMb(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
g.saveSortColumns=function(a){var b=this;this.isLoading=!0;a=a.map(function(c){return{column:c.fieldId,order:c.direction}});this.userPreferencesManager.saveSortColumns(a).pipe(fg(this.destroyed$)).subscribe(function(){oZ(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();Kbb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
r9.\u0275fac=function(a){return new (a||r9)(C(mI),C(NI),C(mM),C(KK),C(qH),C(AK),C(fK),C(cL),C(XK),C(xK),C(IM),C(GN),C(LM),C(PI),C(nZ),C(tZ),C(LK),C(fI),C(FR),C(mP),C(WI),C(YN),C(BK),C(R_),C(FK),C(sd),C(iL),C(oL))};
r9.\u0275cmp=w({type:r9,selectors:[["list-issues-page"]],features:[Je([mI]),ee],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,
"ngIf"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[4,"ngIf","ngIfElse"],["noQuery",""],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Issue search results"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",
function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),G(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Yqc(b,c.option)}),G()()(),F(6,"div",5),M(7,Gbb,4,1,"div",6),M(8,Jbb,4,3,"div",7),M(9,Lbb,2,5,"div",8),G());a&2&&(B(3),E("grid",b.resultsGrid)("hotlistChoices",
b.hotlistChoices),B(2),E("searchResults",b.searchResults),B(1),ke("aria-busy",b.isLoading),B(1),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading&&!b.hasResults()),B(1),E("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[RY,KZ,KY,Gx,cN,d_],encapsulation:2});var s9=function(){};s9.\u0275fac=function(a){return new (a||s9)};s9.\u0275mod=xc({type:s9});s9.\u0275inj=ic({imports:[kZ,NZ,GZ,pO,qO,ay,ON,e_]});
var t9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){r9.call(this,a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,va,Ca);this.issueLru=Tb;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};U(t9,r9);t9.\u0275dir=r9.\u0275dir;t9.prototype.ngOnInit=function(){r9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.currentSearch.clear();this.initialLoad=!0};
t9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;return 0===this.recentIds.length?(this.isLoading=!1,Promise.resolve()):this.doSearch().finally(function(){a.isLoading=!1;a.initialLoad=!1;a.cdr.detectChanges()})};t9.prototype.computeQuery=function(a){a=a.resultsPerPage;var b=this.recentIds,c=b.length;c>a&&(b=b.slice(c-a));return b.map(function(d){return"id:"+d}).join("|")};
t9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=Pbb(this.recentIds,a.issues));return a};t9.\u0275fac=function(a){return new (a||t9)(C(mI),C(NI),C(mM),C(KK),C(qH),C(AK),C(fK),C(cL),C(XK),C(xK),C(IM),C(GN),C(LM),C(PI),C(nZ),C(tZ),C(LK),C(fI),C(FR),C(mP),C(WI),C(YN),C(BK),C(R_),C(FK),C(sd),C(IN),C(iL),C(oL))};
t9.\u0275cmp=w({type:t9,selectors:[["list-issues-recent"]],features:[Je([mI]),ee],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["id","no-results","class","bv2-view-loading",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-loading"],
["id","no-results",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1,"Recent Issues"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("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()}),G(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return Yqc(b,d.option)}),G()()(),F(6,"div",5),M(7,Mbb,3,0,"div",6),M(8,Nbb,2,0,"div",7),M(9,Obb,2,5,"div",8),G());if(a&2){var c;B(3);E("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);B(2);E("searchResults",
b.searchResults);B(1);ke("aria-busy",b.isLoading);B(1);E("ngIf",b.isLoading);B(1);E("ngIf",!b.isLoading&&!b.hasResults());B(1);E("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[cN,RY,KZ,KY,Gx],encapsulation:2});
var u9=function(a,b,c,d,e,f){this.cdr=a;this.pageTitle=b;this.paths=c;this.sloApi=d;this.errorHandler=e;this.activeSession=f;this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=this.paths.createSlo();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};u9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),Zqc(this))};
var Zqc=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.getIsArchived()});a.archivedSlos=b.filter(function(c){return c.getIsArchived()});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};u9.\u0275fac=function(a){return new (a||u9)(C(mI,2),C(YN),C(LK),C(pY),C(BK),C(qH))};
u9.\u0275cmp=w({type:u9,selectors:[["list-slos-page"]],features:[Je([mI])],decls:8,vars:5,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"gmat-button","no-visited-no-active",3,"href"],[1,"bv2-view"],["class","padded-sides",4,"ngIf"],[3,"large",4,"ngIf"],[4,"ngIf"],[1,"padded-sides"],[1,"muted"],[3,"large"],["class","slos-note",4,"ngIf"],[3,"slos",4,"ngIf"],[1,"slos-note"],[3,"slos"],[1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",
3,"svgIcon"],["class","conditional-slo-grid",4,"ngIf"],[1,"conditional-slo-grid"],["class","muted padded",4,"ngIf"],[1,"muted","padded"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"a",1),O(2," Create SLO "),G()(),F(3,"div",2),M(4,Qbb,5,0,"div",3),M(5,Rbb,1,1,"b-spinner",4),M(6,Ubb,3,2,"ng-container",5),M(7,Ybb,6,5,"ng-container",5),G());a&2&&(B(1),E("href",b.createSloPath,Qd),B(3),E("ngIf",b.sloEnabled),B(1),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading),B(1),E("ngIf",!b.isLoading))},dependencies:[Gx,
GB,hF,F_,cN],encapsulation:2});
var $qc=function(a){Z.call(this,a)};U($qc,Z);g=$qc.prototype;g.getAuthor=function(){return m(this,Vl,1)};g.getTimestamp=function(){return m(this,vj,2)};g.setTimestamp=function(a){return Db(this,2,a)};g.hasTimestamp=function(){return oj(this,2)};g.getAdd=function(){return m(this,um,3)};g.getRemove=function(){return m(this,um,4)};g.getAddMask=function(){return m(this,bH,5)};g.getRemoveMask=function(){return m(this,bH,6)};g.toObject=function(){return arc(void 0,this)};
var arc=function(a,b){if(null!=b){var c={author:lJ(a,b.getAuthor()),timestamp:Zu(a,b.getTimestamp()),add:rJ(a,b.getAdd()),remove:rJ(a,b.getRemove()),addMask:cH(a,b.getAddMask()),removeMask:cH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var v9=function(a){Z.call(this,a,-1,brc)};U(v9,Z);v9.prototype.getUpdatesList=function(){return tb(this,$qc,1)};var brc=[1];v9.prototype.toObject=function(){var a=null!=this?{updatesList:Eb(this.getUpdatesList(),arc)}:void 0;return a};v9.messageId="b.ComponentHistory";
var w9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};w9.prototype.get=function(a){var b=this.componentHistoriesCache.get(String(a));return b?b:this.componentHistoriesCache.put(String(a),this.executor.get({url:"action/component_updates/"+a,responseConstructor:v9}))};w9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
w9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};w9.\u0275fac=function(a){return new (a||w9)(t(UK),t(iI))};w9.\u0275prov=hc({token:w9,factory:w9.\u0275fac,providedIn:"root"});
var wt=function(a){Z.call(this,a)};U(wt,Z);wt.prototype.toObject=function(){return crc(void 0,this)};var crc=function(a,b){if(null!=b){var c={groupEmail:n(p(b,1)),approximateSize:n(p(b,2)),sizeCategory:n(p(b,3)),permissionCategory:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var erc=function(a){Z.call(this,a,-1,drc)};U(erc,Z);var drc=[1];erc.prototype.toObject=function(){var a=null!=this?{groupMetadataList:Eb(tb(this,wt,1),crc)}:void 0;return a};erc.messageId="b.BatchGroupMetadataResult";
var x9=function(a,b){var c=this;this.groupMetadataResources=a;this.bulkGetter=b.adapt(function(d){return c.groupMetadataResources.bulkGet(d).then(function(e){var f=Zbb(e);return ku(d,function(h){return f[h]||null})})})};x9.prototype.get=function(a){return this.bulkGetter.get(a).then(function(b){return null!==b?b:{groupEmail:a,approximateSize:0,sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"}})};x9.\u0275fac=function(a){return new (a||x9)(t(y9),t(gI))};
x9.\u0275prov=hc({token:x9,factory:x9.\u0275fac,providedIn:"root"});var y9=function(a){this.executor=a};y9.prototype.bulkGet=function(a){a=[].concat(v(new Set(a)));a=Gm(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:erc}).then(ccb)};y9.\u0275fac=function(a){return new (a||y9)(t(iI))};y9.\u0275prov=hc({token:y9,factory:y9.\u0275fac,providedIn:"root"});
var grc=function(a){Z.call(this,a,-1,frc)};U(grc,Z);var z9=function(a){Z.call(this,a)};U(z9,Z);z9.prototype.getRetentionSettings=function(){return m(this,Jl,2)};z9.prototype.setRetentionSettings=function(a){Db(this,2,a)};z9.prototype.hasRetentionSettings=function(){return oj(this,2)};var frc=[2];grc.prototype.toObject=function(){var a=null!=this?{descendantsList:Eb(tb(this,z9,2),hrc)}:void 0;return a};z9.prototype.toObject=function(){return hrc(void 0,this)};
var hrc=function(a,b){if(null!=b){var c={componentPath:n(p(b,1)),retentionSettings:YFb(a,b.getRetentionSettings())};a&&(c.$jspbMessageInstance=b);return c}};grc.messageId="b.SubcomponentsResponse";
var A9=function(a){this.executor=a};A9.prototype.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:grc})};A9.\u0275fac=function(a){return new (a||A9)(t(iI))};A9.\u0275prov=hc({token:A9,factory:A9.\u0275fac,providedIn:"root"});
var B9=function(){};B9.prototype.ngOnInit=function(){};B9.\u0275fac=function(a){return new (a||B9)};
B9.\u0275cmp=w({type:B9,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(M(0,dcb,4,1,"ng-container",0),M(1,ecb,4,1,"ng-container",0));a&2&&(E("ngIf",b.teamPath),B(1),E("ngIf",b.componentPath))},dependencies:[Gx,kT,b_],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});
var fcb=[{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 C9=function(a,b,c,d,e){var f=this;this.accessPolicyConverter=a;this.activeSession=b;this.confirmationDialogService=c;this.documentationLinks=d;this.groupMetadata=e;this.componentReaders=[];this.enableComponentAutomationCheck=this.enableRostersChecks=!1;this.isPublic=function(){return lX(f.component)};this.hasUnsavedAccessLimitChanges=function(){return f.originalComponent&&f.component?f.originalComponent.accessLimit.accessLevel!==f.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=
function(){return new Promise(function(h){f.hasUnsavedAccessLimitChanges()&&"INTERNAL"===f.component.accessLimit.accessLevel?f.confirmationDialogService.open({title:"Component Visibility Changed",content:Tn("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};
this.performDeletedAccountsCheck=function(){return new Promise(function(h){f.componentReaders.includes("3:nobody@google.com")?f.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Tn('"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: '+[f.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,f.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?
'"Create Issues"':null,f.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,f.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?'"Edit Issues"':null,f.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,f.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?
'"View restricted+ content"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(k){return!!k}).join(", ")+". Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(h){var k=f.activeSession.getUserEmail();pcb(k,f.componentFlattenedAccessPolicy,f.componentAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Component Administrators Changed",
content:Tn("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performRestrictedPlusGroupRemovalCheck=function(){return new Promise(function(h){ocb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",
content:Tn("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.retrieveGroupMetadata=function(h){h=f.accessPolicyConverter.stringToAccessPolicyPrincipal(h);return Nk(h)&&h.group.emailAddress?f.groupMetadata.get(h.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};
this.evaluateNewGroups=function(){var h=[].concat(v(new Set([].concat(v(Ti(f.componentAccessPolicyUnderEdit.admins,f.componentFlattenedAccessPolicy.admins)),v(Ti(f.issueDefaultAccessPolicyUnderEdit.admins,f.issueDefaultFlattenedAccessPolicy.admins)),v(Ti(f.issueDefaultAccessPolicyUnderEdit.editors,f.issueDefaultFlattenedAccessPolicy.editors)),v(Ti(f.issueDefaultAccessPolicyUnderEdit.appenders,f.issueDefaultFlattenedAccessPolicy.appenders)),v(Ti(f.issueDefaultAccessPolicyUnderEdit.readers,f.issueDefaultFlattenedAccessPolicy.readers)),
v(Ti(f.issueDefaultAccessPolicyUnderEdit.restrictedReaders,f.issueDefaultFlattenedAccessPolicy.restrictedReaders)),v(Ti(f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,f.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))))));return Promise.all(h.map(function(k){return f.retrieveGroupMetadata(k)}))};this.performAddedLargeOrOpenGroupCheck=function(){return f.enableRostersChecks?f.evaluateNewGroups().then(function(h){var k=jcb(h);h=ncb(h);if(0===k.size&&0===h.size)return Promise.resolve(!0);
var q=kcb(k.size,h.size);k=lcb(k);h=mcb(h);var u=Wn(k,k===xt?xt:Vn("BR"),h);k={};u=Wn(u,Vn("P",{},Wn("Please review the ",Vn("A",(k.href=QNb(f.documentationLinks)+"#fully-public-component",k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));return new Promise(function(y){f.confirmationDialogService.open({title:q,content:u,onConfirm:function(){y(!0)},onDismiss:function(){y(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};
this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(h){if(f.isPublic()&&icb(f.issueDefaultAccessPolicyUnderEdit,f.issueDefaultFlattenedAccessPolicy)){var k={};k=Wn(Vn("P",{},"You are about to give a broad category of users permissions on a public component."),Vn("P",{},Wn("Please review the ",Vn("A",(k.href=RNb(f.documentationLinks),k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));f.confirmationDialogService.open({title:"Adding an broad category of users to a public component",
content:k,onConfirm:function(){h(!0)},onDismiss:function(){h(!1)},confirmButtonText:"Add Group Alias"})}else h(!0)})};this.performChangedImplicitAccessCheck=function(){f.implicitAccess={getValue:function(){return f.componentAccessPolicyUnderEdit?"ALLOW"===f.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return f.componentFlattenedAccessPolicy?"ALLOW"===f.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(q){f.componentAccessPolicyUnderEdit&&(f.componentAccessPolicyUnderEdit=
Object.assign({},f.componentAccessPolicyUnderEdit,{implicitAccess:q?"ALLOW":"DENY"}))}};var h={},k=Vn("A",(h.href=Q6a(f.documentationLinks),h),"Learn more.");return new Promise(function(q){f.implicitAccess.getValue()===f.implicitAccess.getSavedValue()?q(!0):f.implicitAccess.getValue()?f.confirmationDialogService.open({title:"Turn on expanded access for component "+f.component.componentId+"?",content:Wn("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}}):f.confirmationDialogService.open({title:"Turn off expanded access for component "+f.component.componentId+"?",content:Wn("Some users may lose the ability to edit or comment on issues in this component. ",k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}})})};this.getAddedAutomationInPolicyChange=function(){var h=[].concat(v(gcb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)),v(gcb(f.componentFlattenedAccessPolicy,
f.componentAccessPolicyUnderEdit))),k=new Set;h=r(h);for(var q=h.next();!q.done;q=h.next()){q=r(q.value.addedPrincipals);for(var u=q.next();!u.done;u=q.next())u=f.accessPolicyConverter.stringToAccessPolicyPrincipal(u.value),(Mk(u)?Sn(u.user.emailAddress):Nk(u)&&Sn(u.group.emailAddress))&&k.add(u)}return[].concat(v(k))};this.performAutomationUserAccessCheck=function(){if(!f.enableComponentAutomationCheck)return Promise.resolve(!0);var h=f.getAddedAutomationInPolicyChange();return new Promise(function(k){if(h.length){var q=
{};q=Vn("A",(q.href=PNb(f.documentationLinks),q)," automation account documentation");f.confirmationDialogService.open({title:"Adding automation accounts",content:Wn(Tn("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"),Vn("wbr"),q,Tn("."),Vn.apply(sh,["OL",{}].concat(v(h.map(function(u){if(Mk(u)){var y;return Vn("LI",{},Tn(null!=(y=u.user.emailAddress)?y:""))}if(Nk(u)){var D;return Vn("LI",
{},Tn(null!=(D=u.group.emailAddress)?D:""))}throw Error("Re`"+JSON.stringify(u));})))),Vn("BR",{}),Tn("Are you sure you wish to allow automation to access data in this component?")),onConfirm:function(){k(!0)},onDismiss:function(){k(!1)}})}else k(!0)})};this.runValidation=function(h){var k,q,u;return ef(function(y){switch(y.nextAddress){case 1:k=r(h),q=k.next();case 2:if(q.done){y.jumpTo(4);break}u=q.value;return ff(y,u(),5);case 5:if(!y.yieldResult)return y.return(!1);q=k.next();y.jumpTo(2);break;
case 4:return y.return(!0)}})};this.enableRostersChecks=sH(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=sH(this.activeSession,"enableComponentAutomationCheck")},irc=function(a,b){var c=b.component,d=b.originalComponent,e=b.componentReaders,f=b.componentAccessPolicyUnderEdit,h=b.componentFlattenedAccessPolicy,k=b.issueDefaultAccessPolicyUnderEdit,q=b.issueDefaultFlattenedAccessPolicy,u,y;return ef(function(D){if(1==D.nextAddress)return a.component=c,a.originalComponent=
d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,u=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],ff(D,a.runValidation(u),2);y=D.yieldResult;return D.return(y)})};
C9.\u0275fac=function(a){return new (a||C9)(t(DT),t(qH),t(RM),t(kP),t(x9))};C9.\u0275prov=hc({token:C9,factory:C9.\u0275fac});
var D9=function(a){qI.call(this);this.principalTypes=a;this.componentReaders=[];this.templates=[]};U(D9,qI);D9.\u0275dir=qI.\u0275dir;
D9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(v(this.componentReaders))),d=new Set([].concat(v(a.admins),v(a.inheritedAdmins)));a=new Set([].concat(v(d),v(a.appenders),v(b.admins)));var e=new Set([].concat(v(b.admins))),f=new Set([].concat(v(e),v(b.editors))),h=new Set([].concat(v(f),v(b.appenders))),k=new Set([].concat(v(b.restrictedPlusReaders))),q=new Set([].concat(v(k),v(b.restrictedReaders)));b=new Set([].concat(v(q),v(h),v(b.readers)));
this.templates=[{permission:"Create Issues",principals:[].concat(v(a)).map(yt)},{permission:"Component Admin",principals:[].concat(v(d)).map(yt)},{permission:"Issue Commenter",principals:[].concat(v(h)).map(yt)},{permission:"Issue Editor",principals:[].concat(v(f)).map(yt)},{permission:"Issue Admin",principals:[].concat(v(e)).map(yt)},{permission:"Component Reader",principals:[].concat(v(c)).map(yt)},{permission:"Issue Reader",principals:[].concat(v(b)).map(yt)},{permission:"Restricted Reader",principals:[].concat(v(q)).map(yt)},
{permission:"Restricted+ Reader",principals:[].concat(v(k)).map(yt)}];jrc(this,this.templates)};
var jrc=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d={};c=r(c.value.principals);for(var e=c.next();!e.done;d={$jscomp$loop$prop$principal$1759:d.$jscomp$loop$prop$principal$1759},e=c.next())d.$jscomp$loop$prop$principal$1759=e.value,4===d.$jscomp$loop$prop$principal$1759.principalType?d.$jscomp$loop$prop$principal$1759.detailedUserType=0:kI(a.principalTypes,d.$jscomp$loop$prop$principal$1759.value,!0).then(function(f){return function(h){f.$jscomp$loop$prop$principal$1759.detailedUserType=
Y(h,2,0)}}(d))}};D9.\u0275fac=function(a){return new (a||D9)(C(jI))};
D9.\u0275cmp=w({type:D9,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[ee,Fc],decls:7,vars:1,consts:[[1,"permissions-column-headers"],["scope","col"],[4,"ngFor","ngForOf"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText",4,"ngFor","ngForOf"],[3,"value","detailedUserType","principalType",
"accessLevel","displayText"]],template:function(a,b){a&1&&(F(0,"table")(1,"tr",0)(2,"th",1),O(3,"Permission"),G(),F(4,"th",1),O(5,"Users With Permission"),G()(),M(6,rcb,6,2,"ng-container",2),G());a&2&&(B(6),E("ngForOf",b.templates))},dependencies:[Kx,gZ],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-color:#dadce0;border-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}\n/*# sourceMappingURL=permissions_view.css.map */"]});
var krc={componentAdmin:[],inheritedComponentAdmin:[],componentAdminOnly:[],inheritedComponentAdminOnly:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},lrc={inheritance:"INHERIT_NOTHING",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};
var E9=function(a,b,c,d,e,f,h,k){var q=this;this.accessPolicyApi=a;this.accessPolicyConverter=b;this.errorHandler=c;this.butterBar=d;this.userAccess=e;this.componentActions=f;this.componentValidator=h;this.analytics=k;this.isAdmin=!1;this.rolesMap=krc;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return q.componentAccessPolicyUnderEdit?"ALLOW"===q.componentAccessPolicyUnderEdit.implicitAccess:
!1},getSavedValue:function(){return q.componentFlattenedAccessPolicy?"ALLOW"===q.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(u){q.componentAccessPolicyUnderEdit&&(q.componentAccessPolicyUnderEdit=Object.assign({},q.componentAccessPolicyUnderEdit,{implicitAccess:u?"ALLOW":"DENY"}))},isUpdated:function(){var u;return q.componentAccessPolicyUnderEdit.implicitAccess!==(null==(u=q.componentFlattenedAccessPolicy)?void 0:u.implicitAccess)}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=
this.componentFlattenedAccessPolicy=lrc;this.componentAccessPolicyUnderEdit=ET();this.issueDefaultAccessPolicyUnderEdit=ET();this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(u){a:{var y=q.issueDefaultFlattenedAccessPolicy;if(u&&y){y=y.restrictedPlusReaders;u=r(u);for(var D=u.next();!D.done;D=u.next())if(D=D.value,0===D.indexOf("3:")&&-1===y.indexOf(D)){y=!1;break a}}y=!0}return y}}};
E9.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var mrc=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;yK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Hm(b)&&(c+=Im(b));zK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};E9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Ii(a);this.originalComponent=Ii(a)};
E9.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId,!0).then(function(b){a.updateComponentAndOriginalComponent(b);0<b.parentComponentId&&nrc(a,b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var nrc=function(a,b){a.componentActions.get(b).then(function(c){return a.parentComponent=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
E9.prototype.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return zK(this.butterBar,"No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=FT(c);b.componentAccessPolicyUnderEdit=Ii(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
FT(c);b.issueDefaultAccessPolicyUnderEdit=Ii(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var orc=function(a){var b=[Icb,Jcb,Kcb,Lcb];var c=[Mcb],d=[Ncb,Ocb,Pcb,Qcb,Rcb,Scb],e=[Tcb,Ucb];b=Ecb(Object.assign({},{componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit},{rolesMap:krc}),[].concat(v(b),v(c),v(d),v(e)));a.rolesMap=b},prc=function(a,b){var c=a.issueDefaultFlattenedAccessPolicy;if(!c||!Vcb(c,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",
a.componentId,b)},qrc=function(a){var b=Bt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!Vcb(c,a.issueDefaultAccessPolicyUnderEdit));return b||a},rrc=function(a,b){return Bt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=FT(c);if(Bt(d,a.componentAccessPolicyUnderEdit)){if(Bt(d,a.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}}):Promise.resolve(void 0)};E9.prototype.loadUserAccess=function(a){var b=this;return mK(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):mK(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
E9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=GT(this.componentAccessPolicyUnderEdit);var c=GT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),zK(this.butterBar,c),Promise.resolve()}return qrc(this)?(this.isSaving=this.isUpdatingAccessPolicy=!0,yK(this.butterBar,"Saving access settings...",0),prc(this,c).then(function(d){d&&(b.readers=[].concat(v(d.admins||[]),v(d.editors||[]),v(d.appenders||[]),v(d.readers||
[]),v(d.restrictedPlusReaders||[]),v(d.restrictedReaders||[])));return rrc(a,b)}).then(function(){return mrc(a)}).then(function(){return a.initialize()}).then(function(){yK(a.butterBar,"Access settings saved",0)}).catch(function(d){zK(a.butterBar,Im(d),0)}).finally(function(){var d,e;return ef(function(f){if(1==f.nextAddress)return ff(f,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;d=a.rolesMap;orc(a);var h=a.rolesMap,k=
{componentAdminOnly:d.componentAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},q={componentAdminOnly:h.componentAdminOnly,viewer:h.viewer,editExistingIssuesOnly:h.editExistingIssuesOnly,createIssuesOnly:h.createIssuesOnly,commentOnly:h.commentOnly,viewRestricted:h.viewRestricted,viewRestrictedPlus:h.viewRestrictedPlus};h=Wcb({componentAdmin:d.componentAdmin,
issueAdmin:d.issueAdmin,editor:d.editor,contributor:d.contributor},{componentAdmin:h.componentAdmin,issueAdmin:h.issueAdmin,editor:h.editor,contributor:h.contributor});k=Wcb(k,q);e=h&&k?2:h?0:k?1:3;io(a.analytics,mo.ROLE_BASED_PERMISSIONS,"update","rolesMap",e);gf(f)})})):mrc(this)};
var src=function(a,b){b=Dcb({rolesMap:b,permissionsFromRoles:{componentPermissions:{inheritedAdmins:[],admins:[],appenders:[]},issuesPermissions:{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[]}}});a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},idb=function(a,b){a.component&&a.originalComponent&&
a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(src(a,b),irc(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();
yK(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
oi.Object.defineProperties(E9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Hi(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Hcb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Hi(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=Hcb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});E9.\u0275fac=function(a){return new (a||E9)(t(ZN),t(DT),t(BK),t(xK),t(lK),t(sT),t(C9),t(IM))};E9.\u0275prov=hc({token:E9,factory:E9.\u0275fac});
var F9=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.rolesEditor=c;this.AccessLevelStrings=EAb};g=F9.prototype;g.getRecentIssuesLink=function(){return rn(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};
g.shouldShowAccessLimitChangeUi=function(){if(this.activeSession.isExternalSession())return!1;if(this.rolesEditor.component)if(this.rolesEditor.component.parentComponentId){if(this.rolesEditor.parentComponent)return kX(this.rolesEditor.parentComponent)||kX(this.rolesEditor.component)}else return!1};g.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!C2b(this.rolesEditor.parentComponent))};g.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!lX(this.rolesEditor.parentComponent))};
g.getAccessLevelDescription=function(a){return E2b(a)};F9.\u0275fac=function(a){return new (a||F9)(C(qH),C(kP),C(E9))};
F9.\u0275cmp=w({type:F9,selectors:[["access-limit-settings"]],decls:6,vars:2,consts:[["class","component-banner",4,"ngIf"],[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-banner"],[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","ngModelChange",4,"ngIf"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["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","ngModelChange",4,"ngIf"],["for",
"access-level-public"],[1,"access-level-warning"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-public","name","accessLevelPublic",
"value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange"]],template:function(a,b){a&1&&(M(0,adb,20,7,"div",0),F(1,"div",1)(2,"p"),O(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),F(4,"a",2),O(5,"Learn more"),G()()());a&2&&(E("ngIf",b.shouldShowAccessLimitChangeUi()),B(4),Ce("href","",Jo(b.documentationLinks),"#components",Qd))},dependencies:[Gx,Mg,yy,py,vy],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}.component-banner[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;margin:15px 0 0;padding:16px}.component-banner[_ngcontent-%COMP%]   .component-visibility-settings[_ngcontent-%COMP%]{min-height:28px}.component-banner[_ngcontent-%COMP%]   .component-visibility-header[_ngcontent-%COMP%]{font-weight:bold}.component-banner.access-level-banner[_ngcontent-%COMP%]{margin-bottom:20px}.component-banner.implicit-access-banner[_ngcontent-%COMP%], .component-banner.template-help-banner[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin:15px 0px 10px 0}\n/*# sourceMappingURL=access_limit_settings.css.map */"]});
var G9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};G9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};G9.prototype.setImplicitAccess=function(a){var b;null==(b=this.rolesEditor.implicitAccess)||b.setValue(a)};G9.\u0275fac=function(a){return new (a||G9)(C(kP),C(E9))};
G9.\u0275cmp=w({type:G9,selectors:[["expanded-access-settings"]],decls:10,vars:5,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],[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&&(F(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),J("change",function(d){return b.setImplicitAccess(d.checked)}),G()(),F(3,"div",3)(4,"strong",4),O(5,"Expanded access"),G(),F(6,"div",5),O(7," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. "),F(8,"a",6),O(9,"Learn more"),G()()()());if(a&2){var c;pe("bv2-edit-resource-readonly",b.isAccessEditDisabled());B(2);E("checked",
null!==(c=null==b.rolesEditor?null:null==b.rolesEditor.implicitAccess?null:b.rolesEditor.implicitAccess.getValue())&&void 0!==c?c:!1)("disabled",b.isAccessEditDisabled());B(6);Ce("href","",Jo(b.documentationLinks),"#expanded-access",Qd)}},dependencies:[BO],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%]   .permission-toggle-text[_ngcontent-%COMP%]{margin-left:1em}\n/*# sourceMappingURL=expanded_access_settings.css.map */"]});
var bdb=function(){return{}},ddb=function(a,b){return{displayText:a,values:b}},cdb=function(a){return[a]},edb=function(){return[]},H9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new Vw;this.formIsValid=new Vw;this.aclFormValidity=new Map};H9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};H9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};H9.\u0275fac=function(a){return new (a||H9)};
H9.\u0275cmp=w({type:H9,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},decls:31,vars:1,consts:[["scope","col"],[4,"ngFor","ngForOf"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"idForInputBox","users","ariaLabel","accessLevel","customValidators",
"includeAliases","includeViewAliases","containerChips","usersChange","isValid"],["size","large",3,"name"]],template:function(a,b){a&1&&(F(0,"table")(1,"thead")(2,"tr")(3,"th",0),O(4,"Role Assignments"),G(),F(5,"th",0)(6,"h6"),O(7,"Admin Components"),G()(),F(8,"th",0)(9,"h6"),O(10,"Create Issues"),G()(),F(11,"th",0)(12,"h6"),O(13,"Admin Issues"),G()(),F(14,"th",0)(15,"h6"),O(16,"Edit Issues"),G()(),F(17,"th",0)(18,"h6"),O(19,"Comment Issues"),G()(),F(20,"th",0)(21,"h6"),O(22,"View Issues"),G()(),F(23,
"th",0)(24,"h6"),O(25,"View Restricted"),G()(),F(26,"th",0)(27,"h6"),O(28,"View Restricted+"),G()()()(),F(29,"tbody"),M(30,fdb,26,29,"ng-container",1),G()());a&2&&(B(30),E("ngForOf",b.rolesTableData))},dependencies:[Kx,SY,tH,FB,hF,wF],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{width:40%;min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}.edit-field[_ngcontent-%COMP%]{margin:14px 0 0}.role-title[_ngcontent-%COMP%]{display:flex;margin:5px 2px}.role-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]     .mat-icon-button{margin:0 5px;width:inherit;height:inherit}[_nghost-%COMP%]     .mat-icon-button mat-icon{display:flex;height:16px;width:16px}[_nghost-%COMP%]     b-multi-user-input .bv2-multi-user-input{width:95%}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}\n/*# sourceMappingURL=roles_view_table.css.map */"]});
var I9=function(a){this.documentationLinks=a};I9.\u0275fac=function(a){return new (a||I9)(C(kP))};
I9.\u0275cmp=w({type:I9,selectors:[["use-standard-roles-banner"]],inputs:{rolesMap:"rolesMap"},decls:1,vars:1,consts:[["class","use-standard-roles-banner",4,"ngIf"],[1,"use-standard-roles-banner"],["aria-label","Learn more about roles","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&M(0,gdb,5,1,"div",0);if(a&2){if(b.rolesMap){a=b.rolesMap;b=a.issueAdmin;var c=a.editor,d=a.contributor;a=0===[].concat(v(a.componentAdmin),v(b),v(c),v(d)).length}else a=!1;
E("ngIf",a)}},dependencies:[Gx],styles:[".use-standard-roles-banner[_ngcontent-%COMP%]{background-color:#feefc3;background-color:var(--warn-bg);width:100%;margin:-15px 0 15px;border-radius:4px}.use-standard-roles-banner[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:4px;padding:8px}\n/*# sourceMappingURL=use_standard_roles_banner.css.map */"]});
var J9=function(){this.rolesMap=krc;this.isSaving=!1;this.saveRolesMap=new Vw;this.rolesUnderEdit=krc;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},trc=function(a){var b=a.rolesUnderEdit;a.standardRolesTableData=[{ariaLabel:"Component Admin role",label:"Component Admins",users:null==b?void 0:b.componentAdmin,
roleType:"componentAdmin",grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Component Admins are granted all the permissions to manage the component and all issues in this component. They can't view restricted content. Typical Component Admins are team leads."},{ariaLabel:"Issue Admin role",label:"Issue Admins",users:null==b?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:null==b?void 0:b.editor,roleType:"editor",
grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,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:null==b?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."}];var c=a.rolesUnderEdit,d;b=[{ariaLabel:"Component Admin Only role",
label:"Component Admins Only",users:null==c?void 0:c.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:!0,createIssues:!1,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, but have no issue-related permissions.",chips:{displayText:"Inherited Admins",values:null!=(d=c.inheritedComponentAdminOnly)?
d:[]}},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:null==c?void 0:c.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."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:null==c?void 0:c.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,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 Creators Only role",label:"Issue Creators Only",
users:null==c?void 0:c.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 Commenter Only role",label:"Issue Commenter Only",
users:null==c?void 0:c.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 Content Viewer role",label:"Restricted Content Viewer",users:null==c?void 0:c.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:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",users:null==c?void 0:c.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}];a.advancedRolesTableData=b},urc=function(a){return a.advancedRolesTableData.some(function(b){return 0<b.users.length})},vrc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=J9.prototype;
g.ngOnInit=function(){vrc(this);trc(this)};g.ngOnChanges=function(a){a.rolesMap&&vrc(this);trc(this)};g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){var a;if(null==(a=this.component)?0:a.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};g.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
g.canSave=function(){return this.canEdit()&&(!Hi(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};J9.\u0275fac=function(a){return new (a||J9)};
J9.\u0275cmp=w({type:J9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Fc],decls:13,vars:12,consts:[[3,"rolesMap"],[3,"rolesTableData","displayedTableColumns","canEdit","accessLevel","rolesMapUpdated","formIsValid"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["mat-raised-button","","aria-label","Update","color","primary",3,"disabled","click"],["mat-raised-button",
"","aria-label","Revert Changes",3,"disabled","click"]],template:function(a,b){a&1&&(H(0,"access-limit-settings")(1,"use-standard-roles-banner",0),F(2,"roles-view-table",1),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),G(),F(3,"mat-expansion-panel",2)(4,"mat-expansion-panel-header")(5,"mat-panel-title"),O(6," Advanced Roles "),G()(),F(7,"roles-view-table",1),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",
function(c){return b.formIsValid=c}),G()(),H(8,"expanded-access-settings"),F(9,"button",3),J("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),O(10,"Update"),G(),F(11,"button",4),J("click",function(){vrc(b);trc(b)}),O(12," Revert Changes\n"),G());a&2&&(B(1),E("rolesMap",b.rolesMap),B(1),E("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(1),E("expanded",urc(b)),B(4),
E("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),E("disabled",!b.canSave()),B(2),E("disabled",!!Hi(b.rolesMap,b.rolesUnderEdit)))},dependencies:[U5,V5,W5,FB,H9,F9,G9,I9],styles:["[_nghost-%COMP%]     mat-expansion-panel{margin:0 0 0 -1%}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}\n/*# sourceMappingURL=roles_view.css.map */"]});
var K9=function(a,b){qI.call(this);this.rolesEditor=a;this.route=b};U(K9,qI);K9.\u0275dir=qI.\u0275dir;K9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(R(function(b){return b.get("componentId")}),uf(el),eg(function(b){return a.rolesEditor.initialize(Number(b))}),fg(this.destroyed$)).subscribe(function(){orc(a.rolesEditor)})};K9.prototype.isSaving=function(){return this.rolesEditor.isSaving};K9.\u0275fac=function(a){return new (a||K9)(C(E9),C(gk))};
K9.\u0275cmp=w({type:K9,selectors:[["role-based-permissions"]],features:[Je([E9,C9]),ee],decls:2,vars:2,consts:[["class","bv2-view-loading",4,"ngIf"],[4,"ngIf"],[1,"bv2-view-loading"],[1,"padded"],["label","Edit Roles"],[3,"rolesMap","isSaving","component","rolesEditor","saveRolesMap"],["label","View Permissions"],[3,"componentReaders","componentAccessPolicy","issueAccessPolicy","accessLevel"]],template:function(a,b){a&1&&(M(0,hdb,2,0,"div",0),M(1,jdb,7,8,"div",1));a&2&&(E("ngIf",!(null==b.rolesEditor.component?
0:b.rolesEditor.component.componentId)),B(1),E("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[Gx,YW,WW,cN,D9,J9],styles:["\n/*# sourceMappingURL=role_based_permissions.css.map */"]});
var L9=function(a){qI.call(this);this.userPreferencesManager=a;this.timestamps$=this.userPreferencesManager.preferences$.pipe(R(function(b){var c;return null!=(c=b.dismissalTimestamps)?c:void 0}));this.timestampsSubject$=Jk(this.timestamps$.pipe(fg(this.destroyed$)),{})};U(L9,qI);L9.\u0275dir=qI.\u0275dir;var wrc=function(a,b){return a.timestamps$.pipe(R(function(c){return c?!!c[b]:!1}))};L9.prototype.isDismissed=function(a){return!!Kk(wrc(this,a))};
L9.prototype.dismiss=function(a){var b={};b={dismissalTimestamps:Object.assign({},this.timestampsSubject$.value,(b[a]=new Date(Date.now()),b))};return this.userPreferencesManager.save(b).pipe(R(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};L9.\u0275fac=function(a){return new (a||L9)(t(PI))};L9.\u0275prov=hc({token:L9,factory:L9.\u0275fac,providedIn:"root"});
var M9=function(a,b){this.dialogRef=a;this.documentationLinks=b};M9.\u0275fac=function(a){return new (a||M9)(C(QB),C(kP))};
M9.\u0275cmp=w({type:M9,selectors:[["role-based-permissions-onboarding-dialog"]],decls:10,vars:1,consts:[[1,"center"],["target","_blank","aria-label","Learn more about roles",3,"href"],["mat-raised-button","","color","primary","aria-label","Close Dialog",3,"click"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"h1"),O(2,"Welcome to Role Based Permissions! \ud83c\udf89"),G()(),F(3,"p"),O(4," Roles allow you to set permissions in a more natural way, considering the kind of user that you want to empower, and assigning permissions based on that. "),
F(5,"a",1),O(6," Learn more "),G()(),F(7,"div",0)(8,"button",2),J("click",function(){return b.dialogRef.close()}),O(9," Get started "),G()());a&2&&(B(5),Ce("href","",Jo(b.documentationLinks),"#role-based-permissions",Qd))},dependencies:[FB],styles:['h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0em;font-weight:400}p[_ngcontent-%COMP%]{margin:30px;line-height:1.4;font-size:1rem;color:#5f6368;color:var(--text-muted)}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}.center[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=role_based_permissions_onboarding_dialog.css.map */']});
var N9=function(a,b,c){this.dialog=a;this.dismissalService=b;this.documentationLinks=c};N9.prototype.openIfNecessary=function(){var a=this,b,c,d;ef(function(e){b=a.dismissalService.isDismissed("roles_based_permissions_onboarding_dialog");if(c=!b)d={maxWidth:"700px"},a.dialog.open(M9,d),a.dismissalService.dismiss("roles_based_permissions_onboarding_dialog").pipe(Tf()).subscribe();gf(e)})};N9.\u0275fac=function(a){return new (a||N9)(t(cC),t(L9),t(kP))};
N9.\u0275prov=hc({token:N9,factory:N9.\u0275fac,providedIn:"root"});
var xrc=["archiveDialog"],yrc=["archiveButton"],zrc=["metadataForm"],yeb=function(a){return{displayText:"Inherited Admins",values:a}},Ft=function(a){return[a]},zeb=function(a){return{displayText:"Component Admins",values:a}},Aeb=function(a){return{displayText:"Issue Admins",values:a}},Beb=function(a){return{displayText:"Issue Admins & Editors",values:a}},Ceb=function(a){return{displayText:"Restricted+ Viewers",values:a}},Arc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",
TEMPLATES:"templates",ACCESS:"access"},O9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){qI.call(this);var Ia=this;this.route=a;this.cdr=b;this.routeParams=c;this.bLocation=d;this.accessPolicyApi=e;this.templatesApi=f;this.paths=h;this.appHistory=k;this.butterBar=q;this.pageTitle=u;this.activeSession=y;this.documentationLinks=D;this.matDialogService=I;this.analytics=N;this.checkBeforeExit=L;this.userAccess=S;this.groupMetadata=X;this.componentActions=ka;this.errorHandler=
ha;this.componentService=ra;this.componentUpdates=Da;this.componentUpdatesApi=Ja;this.accessPolicyConverter=Ba;this.confirmationDialogService=La;this.appEvents=hb;this.teamsService=fb;this.sloApi=Tb;this.sloService=va;this.roleBasedPermissionsOnboardingDialogService=Ca;this.componentId$=new T.ReplaySubject(1);this.Tab=Arc;this.AccessLevelStrings=EAb;this.componentListRoute=Tsa;this.showSloInheritancePath=!1;this.component$=new T.BehaviorSubject(null);this.parentComponent$=new T.BehaviorSubject(null);
this.componentTeam$=new T.BehaviorSubject(null);this.team$=this.componentTeam$.pipe(eg(function(Xa){return(Xa=null==Xa?void 0:Xa.id)&&"0"!==Xa?Ia.teamsService.getTeam(Xa):(0,T.of)(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(eg(function(Xa){var $a;return(Xa=null==Xa?void 0:null==($a=Xa.team)?void 0:$a.id)&&"0"!==Xa?Ia.teamsService.getTeam(Xa):(0,T.of)(null)}));this.inheritedSloMetadata$=(0,T.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(R(function(Xa){var $a=
r(Xa);Xa=$a.next().value;var jc=$a.next().value;$a=$a.next().value;if((null==Xa?0:Xa.team)&&!Xa.team.inherit&&"0"!==Xa.team.id){var Va;return null!=(Va=null==$a?void 0:$a.getSlo())?Va:null}var Ya;return null!=(Ya=null==jc?void 0:jc.slo)?Ya:null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(Sf(),eg(function(Xa){var $a="0";Xa instanceof It?$a=Xa.getSloId():Xa&&($a=Xa.id);return"0"===$a?(0,T.of)({id:"0"}):Ia.sloService.get($a).then(function(jc){return{id:$a,slo:jc}})}));this.sloPolicySource$=
this.inheritedSloMetadata$.pipe(Sf(),eg(function(Xa){if(!Xa)return(0,T.of)({name:"None",type:"none"});Xa=Keb(Xa);var $a=Xa.sourceTeamId,jc=Xa.sourceComponentId;return $a&&"0"!==$a?Ia.teamsService.getTeam($a).pipe(R(function(Va){var Ya;return{name:null!=(Ya=Va.getName())?Ya:$a,type:"team",link:{path:"/teams/"+$a+"/edit",fragment:"slo"}}})):jc?Ia.componentActions.get(Number(jc)).then(function(Va){var Ya;return{name:null!=(Ya=Va.name)?Ya:jc,type:"component",link:{path:"/components/"+jc+"/edit"}}}):(0,T.of)(null)}));
this.policySourcePath$=(0,T.combineLatest)([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(R(function(Xa){var $a=r(Xa);Xa=$a.next().value;var jc=$a.next().value,Va=$a.next().value;$a=$a.next().value;if(!Xa||!Xa.componentPathInfo||!$a)return null;var Ya=Keb($a);$a=Ya.sourceComponentId;jc=Meb(jc,Ya.sourceTeamId,Xa.team,Va);return null===$a?{componentPath:null,teamPath:jc}:{componentPath:Leb(Xa,$a),teamPath:jc}}));this.enableRoleBasedPermissions=sH(this.activeSession,
"enableRoleBasedPermissions");this.enableSloLockingCheck=sH(this.activeSession,"enableSloLockingCheck");this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.componentAdmins=[];this.issueCommenters=[];this.issueViewersChip=[];this.componentReaders=[];this.isLoading=this.hasInitialized=!1;this.selectedTabIndex=0;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent_=this.originalComponent=null;this.isAdmin_=this.isUpdatingAccessLimit_=
this.isUpdatingAccessPolicy_=this.isUpdating_=this.isArchiving_=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditor_=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=sH(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(uf(Boolean),eg(function(Xa){return Ia.sloApi.executor.get({url:"action/components/"+Xa+"/slo_edit_policy",
responseConstructor:b4b}).pipe(R(Eqa))}));this.aclFormValidity={};this.aclFormIsInvalid=function(){return Object.values(Ia.aclFormValidity).some(function(Xa){return!Xa})};this.getSloManagementLink=sn};U(O9,qI);O9.\u0275dir=qI.\u0275dir;O9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.bLocation.hash(e,!0);this.enableRoleBasedPermissions&&4===a&&this.roleBasedPermissionsOnboardingDialogService.openIfNecessary()};
O9.prototype.ngOnInit=function(){var a=this;this.componentId=Oi(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.componentAccessPolicyUnderEdit=ET();this.issueDefaultAccessPolicyUnderEdit=ET();this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(WY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess_(this.componentId);
this.enableSloLockingCheck&&Brc(this);this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(b){a:{if(b&&a.issueDefaultFlattenedAccessPolicy_){var c=a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders;b=r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,0===d.indexOf("3:")&&-1===c.indexOf(d)){c=!1;break a}}c=!0}return c}};this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?"ALLOW"===a.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy_?
"ALLOW"===a.componentFlattenedAccessPolicy_.implicitAccess:!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))}};this.componentHistoryUiEnabled=this.activeSession.isInternalSession();Crc(this);this.enableComponentAutomationCheck=sH(this.activeSession,"enableComponentAutomationCheck");this.enableRostersChecks=sH(this.activeSession,"enableRostersChecks");this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=
Drc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(fg(this.destroyed$)).subscribe(function(b){"basic"===b?a.selectedTabIndex=0:"customFields"===b?a.selectedTabIndex=1:"fieldOrdering"===b?a.selectedTabIndex=2:"templates"===b?a.selectedTabIndex=3:"access"===b&&(a.selectedTabIndex=4)})};var Crc=function(a){a=[Erc(a,a.componentId),Frc(a,a.componentId),Grc(a,a.componentId)].concat(v(a.loadAccessPolicy_(a.componentId)));return Promise.all(a).then(function(){})};g=O9.prototype;g.isAdmin=function(){return this.isAdmin_};
g.isSaving=function(){return this.isUpdating_||this.isArchiving_};g.isArchived=function(){return this.component?this.component.archived:!1};g.isPublic=function(){return lX(this.component)};g.isExternal=function(){return kX(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!lX(this.parentComponent))};g.isParentPartner=function(){return!(!this.parentComponent||!C2b(this.parentComponent))};
var Qdb=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&"0"!==a.component.team.id;return 0===a.component.parentComponentId?b:!a.component.slo.inherit};O9.prototype.shouldShowAccessLimitChangeUi=function(){if(this.sessionIsExternal)return!1;if(this.component)if(this.component.parentComponentId){if(this.parentComponent)return kX(this.parentComponent)||kX(this.component)}else return!1};
O9.prototype.hasUnsavedMetadataChanges=function(){return!(Hi(this.component,this.originalComponent)&&Hi(this.parentComponent,this.originalParentComponent_))};O9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||Gt(this)||Ht(this)};
var Hrc=function(a){var b=Nj();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:Tn("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},Irc=function(a){var b=Nj();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:Wn(Tn('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.'),Vn("BR",{}),Vn("BR",{}),Tn('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.'),
Vn("BR",{}),Vn("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},Jrc=function(a){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);var b=Nj(),c=a.getAddedAutomationInPolicyChange();if(c.length){var d={};d=Vn("A",(d.href=PNb(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",
content:Wn(Tn("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"),Vn("wbr"),d,Tn("."),Vn.apply(sh,["OL",{}].concat(v(c.map(function(e){if(Mk(e)){var f;return Vn("LI",{},Tn(null!=(f=e.user.emailAddress)?f:""))}if(Nk(e)){var h;return Vn("LI",{},Tn(null!=(h=e.group.emailAddress)?h:""))}throw Error("Re`"+JSON.stringify(e));})))),Vn("BR",{}),Tn("Are you sure you wish to allow automation to access data in this component?")),
onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}})}else b.resolve(!0);return b.promise};O9.prototype.saveMetadata=function(){var a=this;return this.validate_()?Irc(this).then(function(b){return b?Hrc(a):Promise.resolve(!1)}).then(function(b){b&&Krc(a).then(function(){return Crc(a)})}):Promise.resolve()};
var Et=function(a,b){a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b)},Krc=function(a){a.isUpdating_=!0;yK(a.butterBar,"Saving changes ...",0);return Lrc(a).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return Mrc(a)}).then(function(){return Nrc(a)}).then(function(){return Orc(a)}).then(function(){yK(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating_=!1})},Lrc=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)},Mrc=function(a){return a.component.slo&&!Hi(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,
a.component.slo).then(function(){io(a.analytics,mo.MANAGE_COMPONENT,"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Nrc=function(a){return a.component.team&&!Hi(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){io(a.analytics,mo.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):
Promise.resolve(!1)},Orc=function(a){return Prc(a)?a.componentActions.update(a.component).then(function(){io(a.analytics,mo.MANAGE_COMPONENT,"update");a.commentEditsEnabled?io(a.analytics,"component","comment edits enabled","update"):io(a.analytics,"component","comment edits disabled","update");return!0}):Promise.resolve(!1)},Prc=function(a){var b=Ii(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Hi(a.originalComponent,
b)};O9.prototype.validate_=function(){if(this.metadataForm.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid.";return!1};
O9.prototype.saveAccessPolicy=function(){var a=this;Qrc(this).then(function(b){return b?Rrc(a):Promise.resolve(!1)}).then(function(b){return b?Src(a):Promise.resolve(!1)}).then(function(b){return b?Trc(a):Promise.resolve(!1)}).then(function(b){return b?Urc(a):Promise.resolve(!1)}).then(function(b){return b?Vrc(a):Promise.resolve(!1)}).then(function(b){return b?Wrc(a):Promise.resolve(!1)}).then(function(b){return b?Jrc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveAccessPolicy_()})};
O9.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};
var Ht=function(a){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==a.component.accessLimit.accessLevel:!1},Qrc=function(a){var b=Nj();Ht(a)&&"INTERNAL"===a.component.accessLimit.accessLevel?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Tn("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.resolve(!0)},
onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Src=function(a){var b=Nj();Xrc(a)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Tn("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.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):
b.resolve(!0);return b.promise},Trc=function(a){var b=Nj();Yrc(a)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Tn("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.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Rrc=function(a){var b=Nj();a.componentReaders.includes("3:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',
content:Tn('"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("3:nobody@google.com")?'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?
'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+
". Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Wrc=function(a){var b=Nj(),c={};c=Vn("A",(c.href=Q6a(a.documentationLinks),c),"Learn more.");a.implicitAccess.getValue()==a.implicitAccess.getSavedValue()?b.resolve(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+"?",content:Wn("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Wn("Some users may lose the ability to edit or comment on issues in this component. ",c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});return b.promise},Urc=function(a){return a.enableRostersChecks&&Gt(a)?Zrc(a).then(function(b){var c=$rc(b),d=asc(b);if(0===c.size&&0===d.size)return Promise.resolve(!0);
b=bsc(c.size,d.size);c=csc(c);d=dsc(d);c=Wn(c,c===xt?xt:Vn("BR"),d);d={};c=Wn(c,Vn("P",{},Wn("Please review the ",Vn("A",(d.href=QNb(a.documentationLinks)+"#fully-public-component",d.target="_blank",d),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));var e=Nj();a.confirmationDialogService.open({title:b,content:c,onConfirm:function(){e.resolve(!0)},onDismiss:function(){e.resolve(!1)},confirmButtonText:"Add Group"});return e.promise}):Promise.resolve(!0)},
$rc=function(a){var b=new Map;a=r(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},asc=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,"OPEN_TO_JOIN"===c.permissionCategory&&b.set(c.groupEmail,c);return b},bsc=function(a,b){return 0!==a&&0!==b?"Adding large and open groups to a public component":0!==a?1===a?"Adding a large group to a public component":"Adding large groups to a public component":
1===b?"Adding an open group to a public component":"Adding open groups to a public component"},csc=function(a){if(0===a.size)return xt;for(var b=1===a.size?Vn("P",{},"The following large group is added: "):Vn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Vn("P",{},Wn(Vn("B",{},e)," has approximately ",Vn("B",{},f)," Googlers.")))}return Wn(b,c)},dsc=function(a){if(0===a.size)return xt;var b=1===a.size?
Vn("P",{},"The following open group is added: "):Vn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Vn("P",{},Vn("B",{},d.value)));return Wn(b,c)},Vrc=function(a){var b=Nj();if(a.isPublic()&&esc(a)){var c={};c=Wn(Vn("P",{},"You are about to give a broad category of users permissions on a public component."),Vn("P",{},Wn("Please review the ",Vn("A",(c.href=RNb(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.resolve(!0)},onDismiss:function(){b.resolve(!1)},confirmButtonText:"Add Group Alias"})}else b.resolve(!0);return b.promise};
O9.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=GT(this.componentAccessPolicyUnderEdit);var c=GT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){c="An unknown problem occurred";d instanceof Error&&(c=d.message);zK(this.butterBar,c);return}Gt(this)?(this.isUpdating_=this.isUpdatingAccessPolicy_=!0,yK(this.butterBar,"Saving access settings...",0),fsc(this,c).then(function(d){d&&(b.readers=[].concat(v(d.admins||[]),v(d.editors||[]),v(d.appenders||[]),v(d.readers||[]),v(d.restrictedPlusReaders||
[]),v(d.restrictedReaders||[])));return gsc(a,b)}).then(function(){return hsc(a)}).then(function(){return Promise.all([].concat(v(a.loadAccessPolicy_(a.componentId))))}).then(function(){yK(a.butterBar,"Access settings saved",0)}).catch(function(d){zK(a.butterBar,Im(d),0)}).finally(function(){a.loadUserAccess_(a.componentId);a.isUpdatingAccessPolicy_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})):hsc(this)};
var gsc=function(a,b){return a.componentFlattenedAccessPolicy_&&isc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=FT(c);if(a.componentAccessPolicyUnderEdit&&!isc(d,a.componentAccessPolicyUnderEdit))return Promise.resolve(void 0);if(a.componentFlattenedAccessPolicy_&&isc(d,a.componentFlattenedAccessPolicy_))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}):Promise.resolve(void 0)},fsc=function(a,b){if(!a.issueDefaultFlattenedAccessPolicy_||!jsc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b)},hsc=function(a){if(!Ht(a))return Promise.resolve();
a.isUpdatingAccessLimit_=!0;a.isUpdating_=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;yK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";Hm(b)&&(c+=Im(b));
zK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})},Xrc=function(a){function b(h){return h?h.admins.concat(h.inheritedAdmins):[]}var c="2:"+a.activeSession.getUserEmail(),d=b(a.componentFlattenedAccessPolicy_),e=b(a.componentAccessPolicyUnderEdit);a=d.filter(function(h){return-1===e.indexOf(h)});d=a.filter(function(h){return h.startsWith("3:")});var f=a.filter(function(h){return h.startsWith("2:")});return-1<e.indexOf(c)||
0===a.length?!1:-1<f.indexOf(c)?!0:d.length?!0:!1},Yrc=function(a){if(!a.issueDefaultFlattenedAccessPolicy_)return!1;var b=a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders;return 0<a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders.filter(function(c){return-1===b.indexOf(c)}).filter(function(c){return c.startsWith("3:")}).length},esc=function(a){if(!a.issueDefaultAccessPolicyUnderEdit.appenders||!a.issueDefaultFlattenedAccessPolicy_||Hi(a.issueDefaultFlattenedAccessPolicy_.appenders,
a.issueDefaultAccessPolicyUnderEdit.appenders))return!1;for(var b=r(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),c=b.next();!c.done;c=b.next())if(c=c.value,hcb.has(c)&&!a.issueDefaultFlattenedAccessPolicy_.appenders.includes(c))return!0;return!1},Zrc=function(a){var b=[].concat(v(new Set([].concat(v(Ti(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy_.admins)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy_.admins)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.editors,
a.issueDefaultFlattenedAccessPolicy_.editors)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.appenders,a.issueDefaultFlattenedAccessPolicy_.appenders)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy_.readers)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedReaders)),v(Ti(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders))))));return Promise.all(b.map(function(c){c=
a.accessPolicyConverter.stringToAccessPolicyPrincipal(c);return Nk(c)&&c.group.emailAddress?a.groupMetadata.get(c.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})}))},Gt=function(a){return!(!a.componentFlattenedAccessPolicy_||!isc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit))||!(!a.issueDefaultFlattenedAccessPolicy_||!jsc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))},
isc=function(a,b){return b&&a?!Hi(a.admins,b.admins)||!Hi(a.appenders,b.appenders)||!Hi(a.implicitAccess,b.implicitAccess):!1},jsc=function(a,b){return b&&a?!Hi(a.admins,b.admins)||!Hi(a.editors,b.editors)||!Hi(a.appenders,b.appenders)||!Hi(a.readers,b.readers)||!Hi(a.restrictedReaders,b.restrictedReaders)||!Hi(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Erc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,
c)})};O9.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Ii(this.originalParentComponent_);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled="ENABLED"==this.component.commentEditState};
O9.prototype.revertAccessPolicyChanges=function(){this.componentFlattenedAccessPolicy_&&(this.componentAccessPolicyUnderEdit=Ii(this.componentFlattenedAccessPolicy_));this.issueDefaultFlattenedAccessPolicy_&&(this.issueDefaultAccessPolicyUnderEdit=Ii(this.issueDefaultFlattenedAccessPolicy_));this.appEvents.contactChipsRevertChanges.next()};
var heb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=Drc(b.componentPathInfo.allCustomField)})},Drc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]},Frc=function(a,b){a.isLoading=!0;return a.componentActions.getUncached(b,!0).then(function(c){a.updateComponentAndOriginalComponent(c);a.currentName=c.name;0<c.parentComponentId&&a.loadParentComponent_(c.parentComponentId);a.effectiveCustomFields=Drc(c.componentPathInfo.allCustomField);
a.pageTitle.setTitle("Component: "+c.name);a.archiveAction=c.archived?"Unarchive":"Archive";a.commentEditsEnabled="ENABLED"==c.commentEditState;0===a.component.parentComponentId&&(a.isParentComponentRequired=!1)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1;a.hasInitialized&&a.cdr.detectChanges()})};
O9.prototype.loadAccessPolicy_=function(){var a=this;return[this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(b){a.componentFlattenedAccessPolicy_=FT(b);a.componentAccessPolicyUnderEdit=Ii(a.componentFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,b)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(b){a.issueDefaultFlattenedAccessPolicy_=FT(b);a.issueDefaultAccessPolicyUnderEdit=Ii(a.issueDefaultFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,
b)})]};O9.prototype.loadUserAccess_=function(a){var b=this;mK(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin_=c;return b.isAdmin_?!0:mK(b.userAccess,"writer","components/"+a)}).then(function(c){b.isEditor_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Brc=function(a){mK(a.userAccess,"writer","components/"+a.componentId+"/slo").then(function(b){a.isComponentSloEditor=b})},Dt=function(a){return a.isSaving()||!a.isEditor_};g=O9.prototype;
g.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};g.loadParentComponent_=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent_=Ii(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return rn(this.componentId,{includeArchived:a})};
g.createIssue=function(){this.trackClick("createIssue");this.bLocation.url(this.paths.createIssue()+"?component="+this.component.componentId)};g.createChild=function(){this.bLocation.url(this.paths.createComponent({parentId:this.component.componentId}))};g.trackClick=function(a){io(this.analytics,"editComponent","click",a)};
var kdb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?zK(a.butterBar,"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,yK(a.butterBar,"Looking up subcomponents...",0),a.componentService.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=tb(b,z9,2);RB(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(fg(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):zK(a.butterBar,"Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};O9.prototype.getRetentionPeriod=function(a){if(a&&a.hasRetentionSettings()&&Y(a.getRetentionSettings(),1,0)){var b=Y(a.getRetentionSettings(),1,0);switch(b){case 1:return"Buganizer default retention (10 years)";case 3:return"Indefinite retention";case 2:return a=hj(a.getRetentionSettings(),2),vo(a);default:throw Error("Se`"+b);}}return"Retention period unspecified"};
O9.prototype.archive=function(){var a=this;this.isArchiving_=!0;yK(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);yK(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);io(a.analytics,"component","archive");b.userHasEditAccess=a.component.userHasEditAccess;a.updateComponentAndOriginalComponent(b);a.archiveAction=
b.archived?"Unarchive":"Archive";a.isArchiving_=!1}).catch(function(b){a.component.archived=!a.component.archived;yK(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Hm(b)?Im(b):b));a.isArchiving_=!1})};
var Grc=function(a,b){var c=a.paths.getBaseUrl()+"/"+a.paths.createIssue();return a.templatesApi.query(b).then(function(d){a.templates=d.map(function(e){var f=e.name;f||(f=e.default?"(default template)":"(unnamed template)");return{name:f,description:e.description||"",url:c+"?component="+b+"&template="+e.templateId}})}).catch(function(d){a.errorHandler.errorHandler(null,d)})},ksc=function(a){a.componentReaders=[].concat(v(new Set([].concat(v(a.componentAccessPolicyUnderEdit?[].concat(v(a.componentAccessPolicyUnderEdit.inheritedAdmins||
[]),v(a.componentAccessPolicyUnderEdit.admins||[]),v(a.componentAccessPolicyUnderEdit.editors||[]),v(a.componentAccessPolicyUnderEdit.appenders||[])):[]),v(a.issueDefaultAccessPolicyUnderEdit?[].concat(v(a.issueDefaultAccessPolicyUnderEdit.admins||[]),v(a.issueDefaultAccessPolicyUnderEdit.editors||[]),v(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),v(a.issueDefaultAccessPolicyUnderEdit.readers||[]),v(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),v(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||
[])):[])))))};O9.prototype.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};O9.prototype.getAccessLevelDescription=function(a){return E2b(a)};
var lsc=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.getUpdatesList().map(function(d){var e=a.componentUpdates,f=nSb(d.getAddMask()),h=nSb(d.getRemoveMask()),k={author:d.getAuthor(),timestamp:d.getTimestamp(),diffs:[]},q=d.getAdd()||new um;d=d.getRemove()||new um;for(var u=r(new Set([].concat(v(f),v(h)))),y=u.next();!y.done;y=u.next()){var D=y.value;if(y=jSb.get(D))if("name"===D){var I=HS(h,D,d.getName());D=HS(f,D,q.getName());k.diffs.push(IS(y,
I,D))}else if("description"===D)I=HS(h,D,d.getDescription()),D=HS(f,D,q.getDescription()),k.diffs.push(IS(y,I,D));else if("parentComponentId"===D)I=HS(h,D,String(nj(d,2))),D=HS(f,D,String(nj(q,2))),k.diffs.push(IS(y,I,D));else if("isArchived"===D)I=HS(h,D,String(d.getArchived())),D=HS(f,D,String(q.getArchived())),k.diffs.push(IS(y,I,D));else if("commentEditState"===D){var N=kSb.get(Y(d,15,0));I=kSb.get(Y(q,15,0));N&&I&&(N=HS(h,D,N),D=HS(f,D,I),k.diffs.push(IS(y,N,D)))}else"defaultTemplateId"===D?
(I=HS(h,D,String(nj(d,18))),D=HS(f,D,String(nj(q,18))),k.diffs.push(IS(y,I,D))):"slo"===D?e.sessionIsInternal&&(I=HS(h,D,rSb(d.getSlo())),D=HS(f,D,rSb(q.getSlo())),k.diffs.push(IS(y,I,D))):"team"===D?e.sessionIsInternal&&(I=HS(h,D,sSb(d.getTeam())),D=HS(f,D,sSb(q.getTeam())),k.diffs.push(IS(y,I,D))):"retentionSettings"===D?(I=HS(h,D,pSb(d.getRetentionSettings())),D=HS(f,D,pSb(q.getRetentionSettings())),k.diffs.push(IS(y,I,D))):e.$log.error("Unsupported diff field "+D)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject()};O9.prototype.showUpdateHistoryModal=function(){var a=this;lsc(this,this.componentId).then(function(){a.matDialogService.open(s5,{width:"600px",data:{updateDiffs:a.updateDiffs}});io(a.analytics,mo.UPDATE_HISTORY_MODAL,"open");io(a.analytics,mo.MANAGE_COMPONENT,"viewHistory")})};O9.prototype.onSloChange=function(a){this.component.slo.id=a?a.getSloId():"0";a&&msc(this)};
var Mdb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(c||b)},Sdb=function(a){var b=!a.component.team||"0"===a.component.team.id,c=!a.parentComponent;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(!a.component.slo.inherit||c&&b)},ydb=function(a){var b,c,d,e;ef(function(f){b=0===a.component.parentComponentId;c="0"!==a.component.team.id;return(0===a.component.parentComponentId?"0"!==a.component.team.id:
!a.component.team.inherit&&"0"!==a.component.team.id)||b&&c?ff(f,(0,T.firstValueFrom)(a.team$.pipe(R(function(h){h=h.getSlo();a.component.slo.id=h.getSloId();msc(a)}))),0):(d=nsc(a),e=d.id,a.component.slo.id=e,msc(a),f.jumpTo(0))})},Rdb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},nsc=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}},osc=function(a,b){var c=[];if(!b||!a)return c;for(var d=r([{field:"admin",accessor:function(h){return h.admins}},{field:"editors",accessor:function(h){return h.editors}},{field:"appenders",accessor:function(h){return h.appenders}},{field:"readers",accessor:function(h){return h.readers}},{field:"restrictedReaders",accessor:function(h){return h.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(h){return h.restrictedPlusReaders}}]),
e=d.next();!e.done;e=d.next()){e=e.value;var f=Ti(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c};
O9.prototype.getAddedAutomationInPolicyChange=function(){var a=[].concat(v(osc(this.issueDefaultFlattenedAccessPolicy_,this.issueDefaultAccessPolicyUnderEdit)),v(osc(this.componentFlattenedAccessPolicy_,this.componentAccessPolicyUnderEdit))),b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.addedPrincipals);for(var d=c.next();!d.done;d=c.next())d=this.accessPolicyConverter.stringToAccessPolicyPrincipal(d.value),(Mk(d)?Sn(d.user.emailAddress):Nk(d)&&Sn(d.group.emailAddress))&&b.add(d)}return[].concat(v(b.values()))};
var beb=function(a,b){yK(a.butterBar,"Saving effort spec...",0);a.component&&(a.component.effortSpec=sqa(b),a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);io(a.analytics,mo.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;yK(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else yK(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}))};O9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Ii(a);this.component$.next(this.component);this.originalComponent=Ii(a);var b;this.componentTeam$.next(null!=(b=this.component.team)?b:null);msc(this)};O9.prototype.back=function(){P_(this.appHistory)};var msc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
oi.Object.defineProperties(O9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Hi(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,ksc(this),this.componentAccessPolicyUnderEdit?(a=new Set([].concat(v(this.componentAccessPolicyUnderEdit.inheritedAdmins||[]),v(this.componentAccessPolicyUnderEdit.admins||[]))),a=[].concat(v(a))):a=[],this.componentAdmins=a)},get:function(){return this.componentAccessPolicyUnderEditInternal}},
issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Hi(a,this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,ksc(this),this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(v(this.issueDefaultAccessPolicyUnderEdit.admins||[]),v(this.issueDefaultAccessPolicyUnderEdit.editors||[]))),a=[].concat(v(a)).sort()):a=[],this.issueCommenters=a,this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(v(this.issueDefaultAccessPolicyUnderEdit.admins||
[]),v(this.issueDefaultAccessPolicyUnderEdit.editors||[]),v(this.issueDefaultAccessPolicyUnderEdit.appenders||[]),v(this.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),v(this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||[]))),a=[].concat(v(a)).sort()):a=[],this.issueViewersChip=[{displayText:"Issue Admins, Editors, Commenters, Restricted/Restricted+ Viewers",values:a}])},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});
O9.\u0275fac=function(a){return new (a||O9)(C(gk),C(mI,2),C(SR),C(KK),C(ZN),C(PJ),C(LK),C(O_),C(xK),C(YN),C(qH),C(kP),C(cC),C(IM),C(VY),C(lK),C(x9),C(sT),C(BK),C(A9),C(JS),C(w9),C(DT),C(RM),C(FK),C(bM),C(oY),C(pY),C(N9))};
O9.\u0275cmp=w({type:O9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(Ef(xrc,5),Ef(yrc,5),Ef(zrc,5),Ef(WW,5,sd));if(a&2){var c;Df(c=Gf())&&(b.confirmArchiveDialog=c.first);Df(c=Gf())&&(b.archiveButton=c.first);Df(c=Gf())&&(b.metadataForm=c.first);Df(c=Gf())&&(b.tabs=c)}},features:[Je([mI]),ee],decls:11,vars:3,consts:[[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"],[4,"ngIf"],["cdkScrollable","",1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["archiveDialog",""],["mat-button","",1,"gmat-button",3,"routerLinkObj"],["format","flat",3,"disabled","onAction",4,"ngIf"],["format","flat",3,"tooltip","disabled","onAction",4,"ngIf"],["format","flat",3,"disabled","onAction"],["archiveButton",""],["format","flat",3,"tooltip","disabled","onAction"],[1,"bv2-view-loading"],[1,"edit-resource-header"],["class","resource-archived",4,"ngIf"],[1,"keep-focus-ring",
3,"routerLinkObj","click"],[3,"accessLevel"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],["label","Templates",3,"id"],["label","Access Control",3,"id"],["basic",""],["customFields",""],["fieldOrdering",""],["templatesList",""],["access",
""],[1,"resource-archived"],[1,"edit-resource-panel"],["name","metadataForm"],["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,"ngModel","disabled","ngModelChange"],["aria-label","Description",1,"edit-field"],[1,"field-label-with-help"],["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,"ngModel","disabled","ngModelChange"],["class","edit-field","tabindex","0","aria-label","Parent component",4,"ngIf"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",
3,"checked","disabled","change"],["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","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["class","edit-field","role","region","aria-label","Retention Settings",3,"bv2-edit-resource-readonly",4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","Team Configuration",3,"bv2-edit-resource-readonly",
4,"ngIf"],["class","edit-field","role","region","tabindex","0","aria-label","SLO Configuration",3,"bv2-edit-resource-readonly",4,"ngIf"],["aria-label","Component alias",1,"edit-field","bv2-edit-resource-readonly"],[1,"help-label"],[1,"help-bubble","jfk-bubble"],["aria-label","Learn more about component alias","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"href"],[1,"edit-button-row"],["class","edit-button-group",4,"ngIf"],[1,"edit-button-group"],["format","hairline","title",
"View history for 'Basic Information'",3,"onAction",4,"ngIf"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children","onVisit",4,"ngIf"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponent","placeholder","isRequired","selectedComponentChange"],["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"],["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,"issueRetentionDisabled","isExternal","initialModel","modelChange","validChange"],["role","region","tabindex","0","aria-label","Team Configuration",
1,"edit-field"],["for","team-picker"],["id","team-picker",4,"ngIf"],["id","team-picker"],[3,"isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model","modelChange"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["tabindex","0","aria-describedby","edit-slo-help-bubble",1,"keep-focus-ring","help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],["class","slo-policy-source-link",
4,"ngIf"],[1,"lock-state"],["class","edit-field less-margin",4,"ngIf"],[1,"slo-policy-link"],[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-policy-source-link"],["class","keep-focus-ring slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"gmat-button","slo-inheritance-path","small",3,"click"],[1,"keep-focus-ring","slo-inheritance-link",
3,"routerLinkObj"],["class","slo-breadcrumbs",4,"ngIf"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],[4,"ngIf","ngIfElse"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"slo-override",3,"checked","disabled","change"],["class","edit-field component-slo-justification-text",4,"ngIf"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[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,"bv2Disabled","boundId","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","component-slo-justification-text"],["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,"ngModel","ngModelChange"],["mat-icon-button","","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",1,"gmat-button","small",
3,"routerLinkObj","target"],["svgIcon","pop-out",1,"icon-s"],["format","fill",3,"disabled","onAction"],["format","hairline",3,"disabled","onAction"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"children","onVisit"],["class","heading-m padded-x margin-top","aria-label","Standard Fields",4,"ngIf"],[3,"effortSpec","parentEffortSpec","disabled","updateComponent",4,"ngIf"],["class","heading-m padded-x margin-top","aria-label","Custom Fields",4,"ngIf"],[3,"editMode",
"isSaving","component","parentComponent"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec","disabled","updateComponent"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","class","keep-underline keep-focus-ring","target","_blank",3,"href",4,"ngIf"],[3,"fields","componentId","fieldOrdering","isAdmin","onReload"],["aria-label","Learn more about field ordering",
"target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"componentId","supportCustomFields",4,"ngIf"],[3,"componentId","supportCustomFields"],["class","component-field",4,"ngFor","ngForOf"],[1,"component-field"],["class","component-banner",4,"ngIf"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["name","accessControlForm","novalidate",""],["aria-label","Component Admins",1,"edit-field"],["for","component-acl-admins"],[1,
"edit-field-note"],["idForInputBox","component-acl-admins","ariaLabel","Component Admins email list",3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","Create issues",1,"edit-field"],["for","component-acl-create-issues"],["idForInputBox","component-acl-create-issues","ariaLabel","Create Issues access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","Issue Admins",1,"edit-field"],["for","issue-admins"],["target",
"_blank","aria-label","Learn more about issue admins","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","issue-admins","ariaLabel","Issue admins email list",3,"users","accessLevel","usersChange","isValid"],["aria-label","Edit issues",1,"edit-field"],["for","component-acl-view-comment-issues",1,"help-label"],["class","help-container",4,"ngIf"],["idForInputBox","component-acl-view-comment-issues","ariaLabel","Edit access email list",3,"users","accessLevel","containerChips",
"includeAliases","usersChange","isValid"],["aria-label","Comment on issues",1,"edit-field"],["for","component-acl-view-edit-issues"],["idForInputBox","component-acl-view-edit-issues","ariaLabel","comment access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","View restricted+ content",1,"edit-field"],["for","component-acl-restricted-plus-reader"],["target","_blank","aria-label","Learn more about viewing restricted+ content","class","keep-underline keep-focus-ring",
3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-plus-reader","ariaLabel","Restricted+ content view access email list",3,"users","accessLevel","customValidators","usersChange","isValid"],["aria-label","View restricted content",1,"edit-field"],["for","component-acl-restricted-reader"],["target","_blank","aria-label","Learn more about viewing restricted content","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-reader","ariaLabel","Restricted content view access email list",
3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","View issues",1,"edit-field"],["for","component-acl-view-issues"],["idForInputBox","component-acl-view-issues","ariaLabel","Issues view access email list",3,"users","accessLevel","containerChips","includeAliases","includeViewAliases","usersChange","isValid"],["aria-label","View Component (Auto-populated)",1,"edit-field","bv2-edit-resource-readonly"],["for","component-acl-view-component"],["idForInputBox","component-acl-view-component",
"ariaLabel","Component view access email list",3,"users","accessLevel","usersChange","isValid"],[1,"edit-field","permission-toggle"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],["id","expanded-access-help",1,"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"],["format","hairline",3,"onAction",4,"ngIf"],[1,"component-banner"],
[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","ngModelChange",4,"ngIf"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange",4,"ngIf"],["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","ngModelChange",4,"ngIf"],["for","access-level-public"],[1,"access-level-warning"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-external-partner",
"name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel","ngModelChange"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel","ngModelChange"],["target","_blank","aria-label","Learn more about issue admins",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about viewing restricted+ content",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label",
"Learn more about viewing restricted content",1,"keep-underline","keep-focus-ring",3,"href"],["format","hairline",3,"onAction"],["mat-dialog-title",""],[1,"b-archive-component-list"],[4,"ngFor","ngForOf"],["mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","primary",3,"click"],["mat-button","","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",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"],[3,"b-archive-warning-indef",4,"ngIf"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"b-button",3),J("onAction",function(){return b.back()}),H(4,"b-icon",4),G(),M(5,ndb,5,3,"ng-container",5),G()()(),F(6,"div",6),M(7,odb,2,0,"div",7),M(8,Feb,32,20,"div",5),G(),M(9,Jeb,13,3,"ng-template",null,8,Mf));
a&2&&(B(5),E("ngIf",b.component),B(2),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading&&b.component&&b.component.componentId))},dependencies:[oO,Kx,Gx,Qx,LS,kT,US,x3,E3,J3,cY,cZ,D4,wy,Mg,yy,py,qy,Gy,vy,ty,kQ,aZ,tH,FB,GB,BO,dC,eC,fC,gC,hF,HA,xT,YW,WW,wF,SY,mQ,s_,B9,q_,cN,xV,K9,iT,Tx,Vx],styles:[".mat-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}.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}\n/*# sourceMappingURL=manage_component.css.map */"]});
var ifb=function(a){return[a]},jfb=function(){return[]},sfb=function(a){return{value:a}},psc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},P9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N){qI.call(this);var L=this;this.activeSession=a;this.accessPolicyApi=b;this.appHistory=c;this.butterBar=d;this.checkBeforeExit=e;this.componentActions=f;this.errorHandler=h;this.location=k;this.pageTitle=q;this.routeParams=u;this.teamsService=y;this.userAccess=D;this.sloApi=I;this.sloService=N;this.originalSloLock=
!1;this.canEditSloLock=!0;this.sloJustification$=new T.BehaviorSubject("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new T.ReplaySubject(1);this.teamSlo$=this.team$.pipe(R(function(X){return X.getSlo()}));this.isSloLeadValid=!1;this.sloLeadEmail$=new T.BehaviorSubject("");this.sloLead$=new T.BehaviorSubject("");this.sloLeadUserValidators={sloLeadNotUser:function(X){if(X){X=
r(X);for(var ka=X.next();!ka.done;ka=X.next())if(0!==ka.value.indexOf("2:"))return!1}return!0}};this.sloLeadGooglerValidators={sloLeadNotGoogler:function(X){if(X){X=r(X);for(var ka=X.next();!ka.done;ka=X.next())if(0!==ka.value.indexOf("1:"))return!1}return!0}};this.teamAdmins$=(0,T.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(R(function(X){return X.admins.filter(Mk).map(On)}));this.teamLeads$=this.team$.pipe(R(function(X){return X.getMembersList().filter(function(ka){return W(ka,2)}).map(function(ka){var ha,
ra;return"2:"+(null!=(ra=null==(ha=ka.getUser())?void 0:ha.getEmailAddress())?ra:"")})}));this.adminsAndLeads$=(0,T.combineLatest)([this.teamAdmins$,this.teamLeads$]).pipe(R(function(X){var ka=r(X);X=ka.next().value;ka=ka.next().value;var ha=new Set(X);ka=ka.filter(function(ra){return!ha.has(ra)});return[].concat(v(X),v(ka))}));this.associatedComponents$=(0,T.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(R(function(X){var ka=X.getPathNamesList();return X.getPathIdsList().map(function(ha,
ra){return{id:ha,name:ka[ra]}})}));this.isRootTeam$=this.teamPath$.pipe(R(function(X){return 1>=X.length?!0:!1}));this.parentTeam$=(0,T.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(eg(function(X){var ka=r(X);X=ka.next().value;ka=ka.next().value;return X?(0,T.of)(null):L.teamsService.getTeam(""+ka[ka.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(eg(function(X){var ka,ha=null==X?void 0:null==(ka=X.getSlo())?void 0:ka.getSloId();return ha&&"0"!==ha?L.sloService.get(ha).then(function(ra){return{id:ha,
link:sn(ha),slo:ra}}):(0,T.of)({id:"0"})}));this.sloPolicySource$=(0,T.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(R(function(X){var ka=r(X);X=ka.next().value;ka=ka.next().value;var ha,ra=null==X?void 0:null==(ha=X.getSlo())?void 0:ha.getSourceTeamId();ha=ka.find(function(Da){return""+Da.id===ra});return ra&&ha?{name:ha.name,link:{path:"/teams/"+ra+"/edit",fragment:"slo"}}:null}));this.Tab=psc;this.enableSloLockingUi=sH(this.activeSession,"enableSloLockingUi");this.enableSloLead=sH(this.activeSession,
"enableSloLead");this.isSloInheritEnabled$=new T.BehaviorSubject(!0);this.sloId$=new T.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new T.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(eg(function(X){return mK(L.userAccess,"reader","slos/"+X)}),dg(!1));this.sloPickerLink$=(0,T.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(R(function(X){var ka=r(X);X=ka.next().value;ka=ka.next().value;return X&&0<Number(X)&&ka?sn(X):null}));this.hasUnsavedChanges$=
(0,T.combineLatest)([this.team$,this.sloId$,this.isSloInheritEnabled$,this.sloLocked$,this.sloJustification$,this.sloLeadEmail$]).pipe(R(function(X){var ka=r(X),ha=ka.next().value;X=ka.next().value;var ra=ka.next().value,Da=ka.next().value,Ja=ka.next().value;ka=ka.next().value;var Ba=ha.getSlo(),La,hb;ha=null!=(hb=null==(La=m(ha,Vl,12))?void 0:La.getEmailAddress())?hb:"";return Ba.getInherit()!==ra||Ba.getSloId()!==X||Da!==L.originalSloLock||Ba.getComment()!==Ja||ha!==ka}));this.hasEditAccess=!1;
this.pageTitle.setTitle("Team Overview");this.team$.pipe(fg(this.destroyed$)).subscribe(function(X){L.pageTitle.setTitle("Team: "+X.getName())});a=sH(this.activeSession,"enableSloLockingCheck")?"teams/"+this.teamId+"/slo":"teams/"+this.teamId;mK(this.userAccess,"writer",a).then(function(X){L.hasEditAccess=X});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(R(function(X){return X.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",
responseConstructor:lY}).pipe(R(Dqa));var S=Jk(this.hasUnsavedChanges$.pipe(fg(this.destroyed$)),!1);this.subscriptions.add(WY(this.checkBeforeExit,function(){return S.getValue()},!1))};U(P9,qI);P9.\u0275dir=qI.\u0275dir;
P9.prototype.ngOnInit=function(){var a=this,b,c,d;return ef(function(e){if(1==e.nextAddress)return b=a.location.hash(),"basic"===b?a.selectedTabIndex=0:"slo"===b?a.selectedTabIndex=1:"componentMapping"===b&&(a.selectedTabIndex=2),ff(e,(0,T.firstValueFrom)(a.teamsService.get(a.teamId)),2);if(3!=e.nextAddress)return c=e.yieldResult,"0"===c.getTeamId()?zK(a.butterBar,"Unable to fetch team ID '"+a.teamId+"'"):a.team$.next(c),mfb(a),d=a,ff(e,(0,T.firstValueFrom)(a.parentTeam$),3);d.parentTeam=e.yieldResult;
gf(e)})};P9.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=null!=(d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id)?d:null;this.location.hash(e,!0)};P9.prototype.onSloChange=function(a){a&&(this.sloId=a.getSloId())};
var lfb=function(a,b){var c,d,e,f,h,k;return ef(function(q){switch(q.nextAddress){case 1:if(!a.validate())return q.return();yK(a.butterBar,"Saving changes...",0);Ut(q,2);if(!a.enableSloLead||(null==(c=m(b,Vl,12))?void 0:c.getEmailAddress())===a.sloLeadEmail){q.jumpTo(4);break}var u=T.firstValueFrom;var y=(new Vl).setEmailAddress(a.sloLeadEmail);y=Db(b,12,y);y=a.teamsService.updateTeam(y);return ff(q,u.call(T,y),5);case 5:d=q.yieldResult,a.team$.next(d);case 4:if(a.sloLocked===a.originalSloLock){q.jumpTo(6);
break}u=T.firstValueFrom;y=a.sloApi;var D=a.teamId,I=a.sloLocked,N=new kJ;I=vl(N,2,I?1:2).setTeamId(Number(D));y=y.executor.post({url:"action/teams/"+D+"/slo_edit_policy",responseConstructor:nY,body:I}).pipe(R(Dqa));return ff(q,u.call(T,y),7);case 7:e=q.yieldResult,a.originalSloLock=e;case 6:f=b.getSlo();if(f.getInherit()===a.isSloInheritEnabled&&f.getSloId()===a.sloId&&a.originalSloLock===a.sloLocked&&f.getComment()===a.sloJustification){q.jumpTo(8);break}u=T.firstValueFrom;I=(new It).setSloId(a.sloId).setInherit(a.isSloInheritEnabled);
a.isSloInheritEnabled||I.setComment(a.sloJustification$.getValue());y=a.teamsService;D=a.teamId;N=(new aM).setTeamId(D);I=Db(N,2,I);y=y.executor.post({url:"/action/teams/"+D+"/update_slo",body:I,responseConstructor:YL});return ff(q,u.call(T,y),9);case 9:h=q.yieldResult,a.team$.next(h);case 8:yK(a.butterBar,"Save complete.");Vt(q,0);break;case 2:k=Wt(q),DK(a.errorHandler,k),gf(q)}})};
P9.prototype.validate=function(){if(!this.isSloInheritEnabled&&""===this.sloJustification$.getValue())return this.error="Justification is required",!1;if(this.enableSloLead&&!this.isSloLeadValid)return this.error="Please provide a valid SLO lead",!1;this.error="";return!0};
var qsc=function(a){(0,T.firstValueFrom)(a.team$).then(function(b){var c;b=null==(c=m(b,Vl,12))?void 0:c.getEmailAddress();a.sloLead=b?"2:"+b:""})},rsc=function(a){(0,T.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.getSloId();a.isSloInheritEnabled=b.getInherit();a.sloJustification$.next(b.getComment())})},ssc=function(a){(0,T.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},mfb=function(a){a.error="";qsc(a);rsc(a);a.enableSloLockingUi&&ssc(a)};
P9.prototype.back=function(){P_(this.appHistory)};
oi.Object.defineProperties(P9.prototype,{sloJustification:{configurable:!0,enumerable:!0,get:function(){return this.sloJustification$.getValue()}},sloLeadEmail:{configurable:!0,enumerable:!0,get:function(){return this.sloLeadEmail$.getValue()}},sloLead:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLead$.getValue()&&(this.sloLead$.next(a),this.sloLeadEmail$.next(a?a.split(":")[1]:""))},get:function(){return this.sloLead$.getValue()}},isSloInheritEnabled:{configurable:!0,enumerable:!0,
set:function(a){a!==this.isSloInheritEnabled$.getValue()&&this.isSloInheritEnabled$.next(a)},get:function(){return this.isSloInheritEnabled$.getValue()}},sloId:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloId$.getValue()&&(this.sloId$.next(a),this.enableSloChecked="0"!==a)},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()}}});P9.\u0275fac=function(a){return new (a||P9)(C(qH),C(ZN),C(O_),C(xK),C(VY),C(sT),C(BK),C(KK),C(YN),C(SR),C(bM),C(lK),C(oY),C(pY))};
P9.\u0275cmp=w({type:P9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&Ef(WW,5,sd);if(a&2){var c;Df(c=Gf())&&(b.tabs=c)}},features:[ee],decls:8,vars:3,consts:[[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","ngClass","large","matTooltip","Go back",1,"gmat-button",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable","",1,"bv2-view"],[4,"ngIf"],[1,"edit-resource-header"],["target","_blank",
3,"href"],["svgIcon","pop-out",1,"icon-s"],["class","team-hierarchy-container",4,"ngIf"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndex","selectedIndexChange"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[4,"ngIf","ngIfElse"],["emptyDescription",""],[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"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],["class","slo-policy-link",4,"ngIf"],[1,"slo-policy-source-link"],["class","slo-inheritance-link",3,"routerLinkObj",4,"ngIf","ngIfElse"],["noPolicySource",""],[1,"lock-state"],[3,"error"],["class","edit-field",4,"ngIf"],["class","edit-button-row",4,"ngIf"],["label","Component mapping",3,"id"],[1,"team-hierarchy-container"],[3,"teamPath"],
[3,"users"],["childTeamsLinks",""],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"slo-policy-link"],[3,"routerLinkObj",4,"ngIf","ngIfElse"],["noInheritedSlo",""],[3,"routerLinkObj"],[1,"slo-inheritance-link",3,"routerLinkObj"],["unlocked",""],["svgIcon","lock-outline"],["svgIcon","lock-open"],["class","edit-field less-margin",4,"ngIf"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"override-slo",3,"disabled","checked","change"],["class","edit-field slo-justification",4,"ngIf"],["name","slo-enable",
"labelPosition","before",1,"slo-enable",3,"ngModel","disabled","ngModelChange","change"],[1,"team-slo-id-select",3,"boundId","bv2Disabled","bv2Placeholder","onSloSelect"],["mat-icon-button","","class","gmat-button small slo-link","matTooltip","Go to SLO management page",3,"routerLinkObj","target",4,"ngIf"],[1,"edit-field","slo-justification"],["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,"ngModel","disabled","ngModelChange"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"gmat-button","small","slo-link",3,"routerLinkObj","target"],["gmat-checkbox","",1,"slo-lock",3,"checked","disabled","change"],["idForInputBox","team-slo-lead","ariaLabel","Team SLO lead email",3,"users","customValidators","detailedUserValidators","maxUserAllowed","usersChange","isValid"],[1,"edit-button-row"],[1,"edit-button-group"],["gmat-button","","mat-flat-button",
"","color","primary",3,"disabled","click"],["gmat-button","","mat-stroked-button","","color","primary",3,"disabled","click"],["associatedComponentLinks",""]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G()()()(),F(5,"div",5),M(6,tfb,86,39,"ng-container",6),P(7,"async"),G());a&2&&(B(6),E("ngIf",Q(7,1,b.team$)))},dependencies:[Jx,Kx,Gx,cZ,Mg,py,Gy,vy,kQ,aZ,FB,GB,BO,hF,YW,WW,wF,HA,xT,SY,EI,iT,q_,b_,Tx],styles:[".description[_ngcontent-%COMP%]{white-space:pre-wrap}button[_ngcontent-%COMP%]{height:32px;line-height:32px}button.mat-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}.team-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}\n/*# sourceMappingURL=manage_team.css.map */"]});
var vfb=function(a){return{feature:a}},Q9=function(a){this.beapService=a;this.beapFeaturesTF$=Hic(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=Hic(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,T.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(R(function(b){var c=r(b);b=c.next().value;c=c.next().value;return 0<b.length+c.length}));this.hasFeaturesTF$=this.beapFeaturesTF$.pipe(R(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(R(function(b){return 0<
b.length}));this.linkClicked={}},Ffb=function(a,b){return!!a.linkClicked[b]};Q9.\u0275fac=function(a){return new (a||Q9)(C(R2))};
Q9.\u0275cmp=w({type:Q9,selectors:[["b-beap-settings"]],decls:6,vars:4,consts:[[4,"ngIf","ngIfElse"],["featureEmptyState",""],["featureStageContainer",""],["class","feature-stage-container",4,"ngIf"],[1,"feature-stage-container"],[1,"feature-stage-title"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"feature-empty-state-message"],[1,"feature-container"],[1,"feature-container-row"],[1,"feature-toggle-col"],[3,"checked","matTooltip","disabled"],[1,"feature-desc-col"],[1,
"feature-title"],[1,"feature-desc"],["mat-button","","color","primary","class","small no-visited-no-active","target","_blank",4,"ngIf"],[1,"feature-action-bar"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active",3,"click"],["svgIcon","pop-out",1,"icon-s"],["messageType","info",4,"ngIf"],[1,"feature-badge-col"],[3,"experimentId"],["mat-button","","color","primary","target","_blank",1,"small","no-visited-no-active"],["messageType","info"]],template:function(a,b){a&
1&&(M(0,Bfb,5,6,"ng-container",0),P(1,"async"),M(2,Cfb,2,0,"ng-template",null,1,Mf),M(4,Gfb,20,16,"ng-template",null,2,Mf));if(a&2){var c=Fe(3);E("ngIf",Q(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[T2,bI,cI,Kx,Gx,Qx,GB,hF,xT,wF,Tx,R9]},styles:['.feature-stage-container[_ngcontent-%COMP%]{padding-bottom:28px}.feature-stage-container[_ngcontent-%COMP%]   .feature-stage-title[_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;margin-bottom:20px;margin-top:25px}.feature-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:21px}.feature-container[_ngcontent-%COMP%]   .feature-container-row[_ngcontent-%COMP%]{display:flex;flex:1;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-badge-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]{flex:0 0 500px;display:flex;flex-direction:column;align-items:flex-start}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_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)}.feature-container[_ngcontent-%COMP%]   .feature-desc-col[_ngcontent-%COMP%]   .feature-desc[_ngcontent-%COMP%]   a[_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}.feature-container[_ngcontent-%COMP%]   .feature-toggle-col[_ngcontent-%COMP%]{flex-shrink:0;min-width:75px}.feature-container[_ngcontent-%COMP%]   .feature-action-bar[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:10px}.feature-container[_ngcontent-%COMP%]   .feature-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;margin-bottom:9px}.feature-container[_ngcontent-%COMP%]   b-callout[_ngcontent-%COMP%]{margin-top:10px;width:100%}.feature-empty-state-message[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0em;font-weight:400;margin-top:45px}\n/*# sourceMappingURL=beap_settings.css.map */'],
changeDetection:0});var R9=function(){};R9.prototype.transform=function(a){return 2===a?!0:!1};R9.\u0275fac=function(a){return new (a||R9)};R9.\u0275pipe=zc({name:"featureState",type:R9,pure:!0});
var tsc=function(){this.name="Assigned issues";this.resourceType=null;this.hasOptions=!1;this.options=[]};tsc.prototype.shouldDisplay=function(){return!0};tsc.prototype.getDefaultOptionId=function(){return null};var S9=function(a,b){this.name=a;this.resourceType=b;this.hasOptions=!0;this.options=[]};S9.prototype.shouldDisplay=function(){return 0<this.options.length};S9.prototype.getDefaultOptionId=function(){return this.options[0].id};
var usc=function(a,b){this.id=a;this.name=b},wsc=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 T.Subscription;this.hotlistMainOption=new S9("Hotlist","HOTLIST");this.savedSearchMainOption=new S9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new S9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[new tsc,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];
a={};this.resourceMainOptions=(a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];vsc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){vsc(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(h){h.homepagePreferences&&(h=h.homepagePreferences,h.resourceType?(f.selectedMainOption=f.resourceMainOptions[h.resourceType]||
f.mainOptions[0],f.selectedOptionId=h.resourceId||null,vsc(f)):(f.selectedMainOption=f.mainOptions[0],f.selectedOptionId=null))}))};wsc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Kfb=function(a){yK(a.butterBar,"Saving preferences...",0);(null==a.selectedMainOption.resourceType||null==a.selectedOptionId?a.userPreferencesManager.clearHomepagePreferences():lFb(a.userPreferencesManager,{resourceType:a.selectedMainOption.resourceType,resourceId:a.selectedOptionId})).subscribe(function(){yK(a.butterBar,"Preferences saved.",4E3)})},vsc=function(a){var b=function(c){return new usc(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 usc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};
var xsc=ej[3],T9=function(a,b,c,d,e,f,h,k,q){qI.call(this);this.cdr=a;this.userPreferencesManager=b;this.butterBar=c;this.activeSession=d;this.documentationLinks=e;this.analytics=f;this.sidebar=k;this.appEvents=q;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.appName=d.getAppName();this.timeZones.push.apply(this.timeZones,v(h.supportedTimeZones.map(function(u){return{value:u.id,label:u.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession()};U(T9,qI);T9.\u0275dir=qI.\u0275dir;
T9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new wsc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(fg(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
T9.prototype.save=function(a,b,c){var d=this;yK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){yK(d.butterBar,"Preferences saved.",4E3)});io(this.analytics,"preferences",a,b,c)};var ysc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===xsc};T9.\u0275fac=function(a){return new (a||T9)(C(mI,2),C(PI),C(xK),C(qH),C(kP),C(IM),C(RH),C(TM),C(FK))};
T9.\u0275cmp=w({type:T9,selectors:[["b-general-settings"]],features:[Je([mI]),ee],decls:67,vars:14,consts:[[1,"bv2-settings-container"],[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-homepage-pref-selection","matTooltip","Current selection for preferred homepage"],["appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["id","bv2-homepage-pref-selection",
3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],["appearance","standard","class","bv2-settings-item-setter bv2-settings-item-select",4,"ngIf"],["for","bv2-datetime-pref-date-formatting","matTooltip","Date/time formatting - Use this format for calendar dates."],["id","bv2-datetime-pref-date-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-datetime-pref-time-formatting",
"matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-time-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-datetime-pref-timezone","matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-datetime-pref-timezone","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-enable-all-hotkeys","matTooltip","Enable all hotkeys?"],
["aria-label","Enable all hotkeys","id","bv2-enable-all-hotkeys",1,"bv2-settings-item-setter",3,"model","modelChange"],["for","bv2-force-plain-text","matTooltip","Force all comments to display in plain text mode."],["id","bv2-force-plain-text","aria-label","Force comments to display as plain text",3,"model","modelChange"],["for","bv2-force-code-font"],["id","bv2-force-code-font"],[4,"ngIf"],["class","bv2-settings-preferred-homepage-main-option-select-item",3,"value",4,"ngIf"],[1,"bv2-settings-preferred-homepage-main-option-select-item",
3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModel","ngModelChange","selectionChange"],["class","bv2-settings-preferred-homepage-option-select-item",3,"value",4,"ngFor","ngForOf"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],[3,"value"],["for","bv2-bug-screensaver","matTooltip","Bugs animate after 3 minutes of inactivity."],["id","bv2-bug-screensaver","aria-label","enable bug screensaver",3,"model","modelChange"]],template:function(a,
b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),O(3," Preferred homepage "),F(4,"p",3),O(5," See your preferred homepage selection. "),F(6,"a",4),O(7," Learn more "),G()()(),F(8,"div",5)(9,"div",6)(10,"label",7),O(11," Current selection "),G(),F(12,"mat-form-field",8)(13,"mat-select",9),J("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Kfb(c);c.cdr.detectChanges()}),
M(14,Ifb,2,1,"ng-container",10),G()(),M(15,Lfb,3,2,"mat-form-field",11),G()()(),H(16,"hr"),F(17,"div",1)(18,"div",2),O(19," Date/time formatting settings "),F(20,"p",3),O(21," Select how you want dates and times to be formatted. "),F(22,"a",4),O(23," Learn more "),G()()(),F(24,"div",5)(25,"div",6)(26,"label",12),O(27," Dates "),G(),F(28,"mat-form-field",13)(29,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),
M(30,Mfb,2,2,"mat-option",15),G()()(),F(31,"div",6)(32,"label",16),O(33," Times "),G(),F(34,"mat-form-field",17)(35,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),M(36,Nfb,2,2,"mat-option",15),G()()(),F(37,"div",6)(38,"label",18),O(39," Time Zones "),G(),F(40,"mat-form-field",19)(41,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=
c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),M(42,Ofb,2,2,"mat-option",15),G()()()(),H(43,"hr"),F(44,"div",1)(45,"div",2),O(46," Keyboard settings "),G(),F(47,"div",5)(48,"div",6)(49,"label",20),O(50," Enable all hotkeys? "),G(),F(51,"b-slide-toggle",21),J("modelChange",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c;return b.save("saveKeyboardPreferences")}),G()()()(),F(52,"div"),H(53,"hr"),F(54,"div",1)(55,"div",2),O(56," Display settings "),G(),
F(57,"div",5)(58,"div",6)(59,"label",22),O(60," Force comments to display as plain text? "),G(),F(61,"b-slide-toggle",23),J("modelChange",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=c?xsc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),G()(),F(62,"div",6)(63,"label",24),O(64," Force comments to display with code font? "),G(),H(65,"b-toggle-code-font",25),G()()()(),M(66,Pfb,10,1,"div",26),G()());a&2&&(B(6),
E("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Qd),B(7),E("ngModel",b.preferredHomepage.selectedMainOption),B(1),E("ngForOf",b.preferredHomepage.mainOptions),B(1),E("ngIf",b.preferredHomepage.selectedMainOption.hasOptions),B(7),E("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Qd),B(7),E("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(1),E("ngForOf",b.dateFormats),B(5),E("ngModel",b.userPreferences.dateTimePreferences.timeFormat),
B(1),E("ngForOf",b.timeFormats),B(5),E("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(1),E("ngForOf",b.timeZones),B(9),E("model",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(10),E("model",ysc(b)),B(5),E("ngIf",b.showBugScreensaverSetting))},dependencies:[Kx,Gx,py,vy,sC,QS,BB,wF,BT,a9],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var U9=function(a,b,c,d){qI.call(this);var e=this;this.userPreferencesManager=a;this.butterBar=b;this.documentationLinks=c;this.analytics=d;this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(fg(this.destroyed$)).subscribe(function(f){e.userPreferences=f})};U(U9,qI);U9.\u0275dir=qI.\u0275dir;
U9.prototype.save=function(a,b,c){var d=this;yK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){yK(d.butterBar,"Preferences saved.",4E3)});io(this.analytics,"preferences",a,b,c)};U9.\u0275fac=function(a){return new (a||U9)(C(PI),C(xK),C(kP),C(IM))};
U9.\u0275cmp=w({type:U9,selectors:[["b-notification-settings"]],features:[ee],decls:42,vars:12,consts:[[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-notification-pref-assigned","matTooltip","Notification level - issues for which you are the assignee"],["appearance","standard","id","bv2-notification-pref-assigned",1,"bv2-settings-item-setter","bv2-settings-item-select"],
[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-notification-pref-reported","matTooltip","Notification level - issues for which you are the reporter"],["appearance","standard","id","bv2-notification-pref-reported",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-verified","matTooltip","Notification level - issues for which you are the verifier"],["appearance","standard","id","bv2-notification-pref-verified",1,"bv2-settings-item-setter",
"bv2-settings-item-select"],["for","bv2-notification-pref-ccd","matTooltip","Notification level - issues on which you are CC'd"],["appearance","standard","id","bv2-notification-pref-ccd",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-starred","matTooltip","Notification level - issues that you have starred"],["appearance","standard","id","bv2-notification-pref-starred",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-exclude-changes-by-me",
"matTooltip","Do not send me notifications of my own edits."],["aria-label","Exclude edits made by you","id","bv2-exclude-changes-by-me",1,"bv2-settings-item-setter",3,"model","modelChange"],[3,"value"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),O(2," Notification settings "),F(3,"p",2),O(4," Select the level of email you want to receive for each issue role. "),F(5,"a",3),O(6," Learn more "),G()()(),F(7,"div",4)(8,"div",5)(9,"label",6),O(10," Assignee "),G(),F(11,"mat-form-field",7)(12,
"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(13,Qfb,3,4,"mat-option",9),G()()(),F(14,"div",5)(15,"label",10),O(16," Reporter "),G(),F(17,"mat-form-field",11)(18,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),
M(19,Rfb,3,4,"mat-option",9),G()()(),F(20,"div",5)(21,"label",12),O(22," Verifier "),G(),F(23,"mat-form-field",13)(24,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(25,Sfb,3,4,"mat-option",9),G()()(),F(26,"div",5)(27,"label",14),O(28," CC'd "),G(),F(29,"mat-form-field",15)(30,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(31,Tfb,3,4,"mat-option",9),G()()(),F(32,"div",5)(33,"label",16),O(34," Starred "),G(),F(35,"mat-form-field",17)(36,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),M(37,Ufb,3,4,"mat-option",9),G()()(),F(38,"div",5)(39,"label",18),O(40," Exclude edits made by you? "),G(),F(41,"b-slide-toggle",
19),J("modelChange",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c;return b.save("saveNotificationPreferences")}),G()()()());a&2&&(B(5),E("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Qd),B(7),E("ngModel",b.userPreferences.notificationPreferences.assignedPriority),B(1),E("ngForOf",b.priorities),B(5),E("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(1),E("ngForOf",b.priorities),B(5),E("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),
B(1),E("ngForOf",b.priorities),B(5),E("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(1),E("ngForOf",b.priorities),B(5),E("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(1),E("ngForOf",b.priorities),B(4),E("model",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[Kx,py,vy,sC,QS,BB,wF,BT,oM],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var zsc=[[["","page-bar-left",""]],[["","page-bar-right",""]]],V9=function(){this.showRefresh=this.showBack=!0;this.backLabel="Go back";this.refreshLabel="Refresh";this.onBack=new Vw;this.onRefresh=new Vw};V9.\u0275fac=function(a){return new (a||V9)};
V9.\u0275cmp=w({type:V9,selectors:[["b-page-bar"]],inputs:{showBack:"showBack",showRefresh:"showRefresh",title:"title",backLabel:"backLabel",refreshLabel:"refreshLabel"},outputs:{onBack:"onBack",onRefresh:"onRefresh"},ngContentSelectors:["[page-bar-left]","[page-bar-right]"],decls:6,vars:3,consts:[["mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"right"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["svgIcon","arrow-backward"],["svgIcon","refresh"]],
template:function(a,b){a&1&&(Ae(zsc),M(0,Vfb,2,1,"button",0),M(1,Wfb,2,1,"button",0),M(2,Xfb,2,1,"h2",1),Be(3),F(4,"div",2),Be(5,1),G());a&2&&(E("ngIf",b.showBack),B(1),E("ngIf",b.showRefresh),B(1),E("ngIf",b.title))},dependencies:[Gx,FB,wF,hF],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%]{margin-left:auto}[mat-icon-button][_ngcontent-%COMP%]{line-height:1rem}h2[_ngcontent-%COMP%]:first-child{margin-left:16px}\n/*# sourceMappingURL=page_bar.css.map */"]});
var W9=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=sH(this.activeSession,"enableBeap");this.selectedTabIndex=0;d.setTitle("Settings")};W9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=Asc(this,this.routeParams.settingsTab)};W9.prototype.tabChange=function(a){var b,c,d=null==(b=this.tabs)?void 0:null==(c=b.get(a))?void 0:c.nativeElement.id;this.location.url(Qsa(d))};
var Asc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};W9.\u0275fac=function(a){return new (a||W9)(C(qH),C(KK),C(SR),C(YN))};
W9.\u0275cmp=w({type:W9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&Ef(WW,5,sd);if(a&2){var c;Df(c=Gf())&&(b.tabs=c)}},decls:9,vars:4,consts:[["title","Settings",3,"showRefresh","showBack"],["gmat-tabs","",3,"selectedIndex","selectedIndexChange"],["label","General"],[1,"padded"],["label","Notifications","id","notifications"],["label","Early Access","id","early-access",4,"ngIf"],["label","Early Access","id","early-access"]],template:function(a,b){a&1&&(H(0,"b-page-bar",0),F(1,"mat-tab-group",
1),J("selectedIndexChange",function(c){return b.tabChange(c)}),F(2,"mat-tab",2)(3,"div",3),H(4,"b-general-settings"),G()(),F(5,"mat-tab",4)(6,"div",3),H(7,"b-notification-settings"),G()(),M(8,Yfb,3,0,"mat-tab",5),G());a&2&&(E("showRefresh",!1)("showBack",!1),B(1),E("selectedIndex",b.selectedTabIndex),B(7),E("ngIf",b.beapEnabled))},dependencies:[Gx,aZ,YW,WW,V9,Q9,T9,U9],styles:["mat-tab-group[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]{position:absolute;bottom:0;left:0;right:0;top:0}[_nghost-%COMP%]     b-general-settings .bv2-settings-container{display:inline-block;width:731px}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group{width:fit-content}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group-content, [_nghost-%COMP%]     b-general-settings .bv2-settings-group-content{margin-left:250px}\n/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});
var X9=function(a,b,c,d,e,f,h,k,q){qI.call(this);this.cdr=a;this.routeParams=b;this.bLocation=c;this.pageTitle=d;this.userApi=e;this.bookmarkGroupsApi=f;this.paths=h;this.appEvents=q;this.isStarred=!1;this.bookmarkGroup=null;this.userEmail=k.getUserEmail()};U(X9,qI);X9.\u0275dir=qI.\u0275dir;g=X9.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsOwner=Ql(c.ownerUser)===a.userEmail;a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getFavorite("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&
a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};g.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.saveFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId,userLogin:this.userEmail}).then(b):this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};g.openEditBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
g.getUserEmail=function(){return this.userEmail};g.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsOwner};g.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return this.paths.viewHotlist(a.hotlistId);default:throw Error("Te`"+a.resourceType);}};
g.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("Te`"+a.resourceType);}};X9.\u0275fac=function(a){return new (a||X9)(C(mI,2),C(SR),C(KK),C(YN),C(cL),C(PM),C(LK),C(qH),C(FK))};
X9.\u0275cmp=w({type:X9,selectors:[["view-bookmark-group-page"]],features:[Je([mI]),ee],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[4,"ngIf"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","starClicked",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-bookmark-group-title-text"],["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"],[4,"ngFor","ngForOf"],[3,"starMessage","unStarMessage","starred","starClicked"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"href","title"]],template:function(a,b){a&1&&(F(0,"h2",0),O(1),G(),H(2,"div",1),F(3,"div",2),M(4,bgb,12,5,"div",3),G());a&2&&(B(1),Ge("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),B(2),ke("aria-busy",
!b.bookmarkGroup),B(1),E("ngIf",b.bookmarkGroup))},dependencies:[Kx,Gx,aN,wF],encapsulation:2});var Y9=function(){};Y9.\u0275fac=function(a){return new (a||Y9)};Y9.\u0275mod=xc({type:Y9});Y9.\u0275inj=ic({imports:[ay,MN,gH]});
var Z9=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca,Ia){q9.call(this,b,c,d,e,h,k,q,u,f,y,D,I,L,S,X,ka,ha,ra,hb,Da,Ja,va,Ca,Ia);this.ngZone=a;this.hotlists=N;this.hotkeys=Ba;this.pageTitle=La;this.userAccess=Tb;this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1;this.hotlistId=fb.hotlistId};U(Z9,q9);Z9.\u0275dir=q9.\u0275dir;
Z9.prototype.ngOnInit=function(){var a=this;q9.prototype.ngOnInit.call(this);this.subscriptions.add(XI(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(v(this.BASE_HOTKEYS),[{keys:[Qj("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){Bsc(a,1)}},{keys:[Qj("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){Bsc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
b.hotlistId==a.hotlistId&&"view-hotlist"!=b.origin&&Csc(a)}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));this.userApi.getFavorite("HOTLIST",this.hotlistId).then(function(){a.isStarred=!0}).catch(function(){});this.loadUserAccess(this.hotlistId)};Z9.prototype.ngDoCheck=function(){var a;if(this.hotlistName!==(null==(a=this.hotlist)?void 0:a.name)){var b;this.hotlistName=null==(b=this.hotlist)?void 0:b.name;this.pageTitle.setTitle(this.hotlistName)}};
Z9.prototype.loadUserAccess=function(a){var b=this;mK(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});mK(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;HN(this.currentSearch,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):Csc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var Csc=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="priority type title assignee status issueId modifiedTime".split(" ").map(Xi),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=Ii(f);f.query=d;f.returnUrl=b.bLocation.url();f.hotlistId=b.hotlistId;return qLb(b.issuePagination,f)});a.then(function(f){Wqc(b,
f)}).catch(function(f){"number"===typeof f?oZ(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Lo({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,Dsc(b)?Esc:Fsc);b.loadHotlists()}).catch(function(){})};var Dsc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"==a.sortPreferences[0].fieldId.type};
Z9.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.sortPreferences,this.displayColumns,this.showHotlists)};
Z9.prototype.repositionIssue=function(a,b,c){var d=this;c=void 0===c?!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;io(d.analytics,d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var Bsc=function(a,b){if(a.searchResults&&!a.repositioning&&Dsc(a)){var c,d,e=null!=(d=null==(c=a.resultsGrid)?void 0:c.focusedRowIndex)?d:void 0;if(null!=e&&(c=e+b,d=a.searchResults.issues.length,0<=c&&c<d)){if(1===b){var f;null==(f=a.resultsGrid)||R4b(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||S4b(h)}a.repositionIssue(e,c,!0)}}};g=Z9.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=cva(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}});yK(this.butterBar,"Saving changes to hotlist...");Gsc(this,b).then(function(e){yK(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');oZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});io(a.analytics,a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){io(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");oZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};g.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
g.isEditable=function(){return null!=this.hotlist&&this.isAdmin};g.isDirectAdmin=function(){return this.hotlist?Rl(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"==a||c&&"position"==c.field?q9.prototype.setSort.call(this,a,b,!1):q9.prototype.setSort.call(this,a,b)};
var Gsc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;Hsc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},Hsc=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=EC(this.hotlistId),c=function(){Hsc(a,b)};this.isStarred?this.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:b,userLogin:this.currentUserEmail}).then(c):this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:b}).then(c)};Z9.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var Fsc=[MY,NY,OY,X4b],Esc=[MY,W4b,NY,OY,X4b];
Z9.\u0275fac=function(a){return new (a||Z9)(C(mg),C(mI),C(NI),C(mM),C(KK),C(qH),C(AK),C(fK),C(cL),C(XK),C(xK),C(IM),C(GN),C(HZ),C(LM),C(PI),C(nZ),C(tZ),C(LK),C(fI),C(FR),C(mP),C(WI),C(YN),C(BK),C(SR),C(lK),C(FK),C(iL),C(oL))};
Z9.\u0275cmp=w({type:Z9,selectors:[["view-hotlist-page"]],features:[Je([mI]),ee],decls:9,vars:11,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-hotlist-grid"],["class","bv2-view-hotlist-title",4,"ngIf"],["class","bv2-view-loading",
4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"bv2-view-hotlist-title"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space","keydown.enter",4,"ngIf"],[3,"starMessage","unStarMessage","starred","disabled",4,"ngIf"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus",4,"ngIf"],[4,"ngIf"],["class","bv2-view-hotlist-save-form",4,"ngIf"],[3,"starMessage","unStarMessage","starred","starClicked","keydown.space",
"keydown.enter"],[3,"starMessage","unStarMessage","starred","disabled"],["tabindex","-1",3,"bFocus"],["role","heading","aria-level","3"],[3,"matTooltip"],["class","hotlist-archived",4,"ngIf"],[1,"button-container"],["aria-label","Hotlist settings","matTooltip","Hotlist settings",1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed",4,"ngIf"],[1,"hotlist-archived"],["matTooltip","Display preferences have changed"],[1,"bv2-view-hotlist-save-form"],
["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"gmat-button","medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"gmat-button","medium",3,"click"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop",
"onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"b-grid-controls",1),J("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),G(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return Yqc(b,c.option)}),G()()(),F(4,"div",4),M(5,mgb,9,7,"div",5),M(6,ngb,4,1,"div",6),M(7,ogb,2,2,"div",7),M(8,pgb,2,5,"div",8),G());a&2&&(B(1),E("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),B(2),E("searchResults",b.searchResults),B(1),ke("aria-busy",b.isLoading),B(1),E("ngIf",!b.isInitializing),B(1),E("ngIf",b.isLoading),B(1),E("ngIf",!b.isLoading&&!b.hasResults()),B(1),E("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[RY,KZ,aN,KY,wF,Gx,cN,d_,FB],encapsulation:2});var $9=function(){};$9.\u0275fac=function(a){return new (a||$9)};$9.\u0275mod=xc({type:$9});$9.\u0275inj=ic({imports:[kZ,NZ,MN,GZ,gH,ay,ON,e_,wG]});
var a$=function(a,b,c,d,e,f,h,k,q,u,y,D,I,N,L,S,X,ka,ha,ra,Da,Ja,Ba,La,hb,fb,Tb,va,Ca){q9.call(this,a,b,c,d,f,h,k,u,e,y,D,I,N,L,S,X,ka,ha,La,ra,Da,Tb,va,Ca);this.savedSearchApi=q;this.hotkeys=Ja;this.pageTitle=Ba;this.userAccess=fb;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=hb.savedSearchId};U(a$,q9);a$.\u0275dir=q9.\u0275dir;g=a$.prototype;
g.ngOnInit=function(){var a=this;q9.prototype.ngOnInit.call(this);this.subscriptions.add(XI(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&String(b.savedSearchId)==a.savedSearchId&&("delete"==b.action?(a.savedSearch=null,a.searchResults=null,a.currentSearch.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));
this.subscriptions.add(LMb(this.currentSearch,function(b){a.savedSearch?oZ(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.url(b));io(a.analytics,"search","savedsearch-context")}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;mK(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
g.getIssues=function(){var a=this;HN(this.currentSearch,this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;var b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:Qqc(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;HN(b.currentSearch,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Ii(d);d.returnUrl=b.bLocation.url();return qLb(b.issuePagination,
d)});c.then(function(d){Wqc(b,d)}).catch(function(d){"number"===typeof d?oZ(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Lo({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};g.isEditable=function(){return!!this.savedSearch&&this.isAdmin};
g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.searchParams.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
g.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;yK(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){yK(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;oZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});io(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){io(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");oZ(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch&&this.isEditable()?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!=this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};g.openEditSavedSearch=function(){this.bLocation.url(this.paths.editSavedSearch(this.savedSearchId))};
a$.\u0275fac=function(a){return new (a||a$)(C(mI),C(NI),C(mM),C(KK),C(qH),C(AK),C(fK),C(cL),C(EN),C(XK),C(xK),C(IM),C(GN),C(LM),C(PI),C(nZ),C(tZ),C(LK),C(fI),C(FR),C(mP),C(WI),C(YN),C(BK),C(SR),C(lK),C(FK),C(iL),C(oL))};
a$.\u0275cmp=w({type:a$,selectors:[["view-saved-search-page"]],features:[Je([mI]),ee],decls:9,vars:7,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"grid","hotlistChoices","init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv"],[1,"bv2-appbar-right"],[3,"searchResults","pageChange","resultsPerPageChange"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],["class","bv2-view-savedsearch-title-text",4,"ngIf"],["class","bv2-view-savedsearch-save-form",
4,"ngIf"],[4,"ngIf"],[1,"bv2-view-savedsearch-title-text"],["role","heading","aria-level","3",4,"ngIf"],["role","heading","aria-level","3"],[3,"matTooltip"],["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",4,"ngIf"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-savedsearch-save-form"],["type","button","mat-flat-button",
"","matTooltip","Save changes to display preferences and search query",1,"gmat-button","medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"gmat-button","medium",3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"href","click"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",
4,"ngIf"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"b-grid-controls",1),J("init",function(c){return b.gridControls=c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",
function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),G(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Yqc(b,c.option)}),G()()(),F(4,"div",4)(5,"div",5),M(6,ugb,4,3,"div",6),M(7,vgb,8,1,"div",7),G(),M(8,Agb,4,3,"div",8),G());a&2&&(B(1),E("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),E("searchResults",b.searchResults),
B(1),ke("aria-busy",b.isLoading),B(2),E("ngIf",!b.isInitializing),B(1),E("ngIf",b.hasParamChanges()),B(1),E("ngIf",b.savedSearch))},dependencies:[RY,KZ,KY,Gx,wF,cN,d_,FB],encapsulation:2});var b$=function(){};b$.\u0275fac=function(a){return new (a||b$)};b$.\u0275mod=xc({type:b$});b$.\u0275inj=ic({imports:[kZ,NZ,GZ,ay,gH,ON,e_,wG]});
var Isc=xna(aj().getUserPreferences()||new wj),Jsc;if(fj(Isc)){var Ksc=[{path:"",pathMatch:"full",component:V8},{path:"dependencies",component:i7},{path:"dupes",component:v8},{path:"blocking",component:P6},{path:"resources",component:m9}],Lsc=Ksc.concat,Msc,Nsc={path:"todos",component:o9};Msc=cj("enableCodeMentionsUi")?[Nsc]:[];Jsc={path:"issues/:issueId",component:t8,children:Lsc.call(Ksc,v(Msc))}}else Jsc={path:"issues/:issueId",component:w6};
var Osc=[{path:"",component:H5,canActivateGuards:[M5]},{path:"issues",component:r9},{path:"recent",component:t9},{path:"issues/new",component:Y5},Jsc,{path:"components",component:c5},{path:"components/new",component:O5},{path:"components/:componentId/edit",component:O9},{path:"components/:componentId",component:O9},{path:"components/:componentId/manage",component:O9},{path:"teams/:teamId/edit",component:P9},{path:"teams/:teamId",component:P9},{path:"bookmark-groups/new",component:N5},{path:"bookmark-groups/:groupId",
component:X9},{path:"bookmark-groups/:groupId/edit",component:c6},{path:"hotlists/new",component:P5},{path:"hotlists/:hotlistId",component:Z9},{path:"hotlists/:hotlistId/edit",component:bZ},{path:"slos/new",component:Z5},{path:"slos/:sloId",component:B6},{path:"slos/:sloId/edit",component:B6},{path:"savedsearches/:savedSearchId/edit",component:y6},{path:"hotlists",component:p9},{path:"slos",component:u9},{path:"savedsearches/:savedSearchId",component:a$},{path:"dashboard/:groupId",component:a6},{path:"settings/:settingsTab?",
component:W9},{path:"settings",component:W9},{path:"**",component:H5,canActivateGuards:[M5]}];
var Psc=[F7,l7,m7],c$=function(){};[].concat(v(Psc));[].concat(v(Psc));c$.\u0275fac=function(a){return new (a||c$)};c$.\u0275mod=xc({type:c$});c$.\u0275inj=ic({imports:[ay,wG,qF,AF,KI]});
var d$=function(){};d$.\u0275fac=function(a){return new (a||d$)};d$.\u0275mod=xc({type:d$});d$.\u0275inj=ic({imports:[AX,ay,p7,ZI,c$,wG,XH,AF,qF,gH,p_,FZ,b9]});
var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=xc({type:e$});e$.\u0275inj=ic({imports:[ay,AF,z2,yX,KI,wG]});
var f$=function(){};f$.\u0275fac=function(a){return new (a||f$)};f$.\u0275mod=xc({type:f$});f$.\u0275inj=ic({imports:[ay,AF,dX,QN,BX,e$]});
var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=xc({type:g$});g$.\u0275inj=ic({imports:[ay,AF,wG,KI,jT]});
var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=xc({type:h$});h$.\u0275inj=ic({imports:[x2,ay,wG,AF,zV,QN,gH,g$,KI,jT]});
var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=xc({type:i$});i$.\u0275inj=ic({imports:[ay,AF,x2,QN,cV]});
var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=xc({type:j$});j$.\u0275inj=ic({imports:[f$,x2,ay,h$,XS,ZI,QN,Y4,$8,e$,wG,XH,AF,gH,KI,MN,cV,i$]});
var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=xc({type:k$});k$.\u0275inj=ic({imports:[ay,ZI,wG,AF,gH]});
var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=xc({type:l$});l$.\u0275inj=ic({imports:[ay]});
var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=xc({type:m$});m$.\u0275inj=ic({imports:[ay,Ky,U4,l$]});
var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=xc({type:n$});n$.\u0275inj=ic({imports:[ay,AS,m$]});
var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=xc({type:o$});o$.\u0275inj=ic({imports:[ay,AF]});
var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=xc({type:p$});p$.\u0275inj=ic({imports:[CM,o$,ay,rV,VU,W4,T4,ZI,QN,c$,BX,b5,pV,AF,gH,dP,K3,n$,VS,TN]});
var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=xc({type:q$});q$.\u0275inj=ic({imports:[rz,Sz,Ky,Ly,KI,wG,hC,cX,iZ,LA,gH,qO,dP,j$,d$,k$,A2,FZ,WS,dX,p$]});
var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=xc({type:r$});r$.\u0275inj=ic({imports:[ay,f5]});
var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=xc({type:s$});s$.\u0275inj=ic({imports:[rz,Sz,Ky,Ly,KI,wG,cX,iZ,dP,zX,q$,l9,k7,V6,w8,r$,n9]});
var Qsc=Osc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[VY],canActivate:[J5,L5].concat(v(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});Qsc.push({path:"**",canActivate:["dontActivate"],component:H5,isRootRoute:!0});var Rsc=V(aj(),10),Ssc,t$={initialNavigation:"disabled",relativeLinkResolution:"legacy"},Tsc=[];
Ssc={ngModule:KI,providers:[gFb,[{provide:Nmb,multi:!0,useValue:Tsc},{provide:BEb,multi:!0,useValue:Tsc}],{provide:fFb,useFactory:function(){return"guarded"},deps:[[Ik,new Rv,new Sv]]},{provide:JI,useValue:t$?t$:{}},{provide:dy,useFactory:function(a,b,c){c=void 0===c?{}:c;return c.useHash?new gy(a,b):new ey(a,b)},deps:[by,[new ilb(fy),new Rv],JI]},{provide:II,useFactory:function(a,b,c){c.scrollOffset&&b.setOffset(c.scrollOffset);return new II(a,b,c)},deps:[Ik,hnb,JI]},{provide:YEb,useExisting:t$&&
t$.preloadingStrategy?t$.preloadingStrategy:$Eb},{provide:Hmb,multi:!0,useFactory:function(){return new Hmb("Router",Ik)}},[LI,{provide:Mlb,multi:!0,useFactory:function(a){return a.appInitializer.bind(a)},deps:[LI]},{provide:hFb,useFactory:function(a){return a.bootstrapListener.bind(a)},deps:[LI]},{provide:Plb,multi:!0,useExisting:hFb}]]};var u$=function(a,b){a.config=Qsc.map(pk);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();RKb(b)};u$.\u0275fac=function(a){return new (a||u$)(t(Ik),t(jM))};
u$.\u0275mod=xc({type:u$});u$.\u0275inj=ic({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:yEb,useClass:Fkc},{provide:fy,useValue:Rsc},L5,J5],imports:[Ssc,I5,s$,KI]});
var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=xc({type:v$});v$.\u0275inj=ic({imports:[ay,wG,gH,AF,sK,Ky,Ly,dZ]});
var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=xc({type:w$});w$.\u0275inj=ic({imports:[pO,ay,dZ,e_,Ky,WH,gH,nQ,t_,zV]});
var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=xc({type:x$});x$.\u0275inj=ic({imports:[ay,wG,gH,AF,sK,Ky,Ly,dZ]});
var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=xc({type:y$});y$.\u0275inj=ic({imports:[ay,Ky,lC,U4]});
var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=xc({type:z$});z$.\u0275inj=ic({imports:[pO,QX,dX,RU,iQ,V4,e_,Ky,gY,SX,WH,eY,pV,m_,wG,hC,X5,AF,qF,AT,gH,V4,CM,Ly,y$,zV,ay,MA]});
var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=xc({type:A$});A$.\u0275inj=ic({imports:[pO,ay,dZ,e_,Ky,WH,gH,E_]});
var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=xc({type:B$});B$.\u0275inj=ic({imports:[ay,gH,wG,cX,dZ,gY,SX,UN,sK,hC,AF,Ky,Ly,qF,hZ]});
var C$=function(){};[].concat(v([s6]));C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=xc({type:C$});C$.\u0275inj=ic({imports:[hC,GO,ay,jB,AF,wG,dX,hX]});
var D$=function(a,b,c){qI.call(this);this.activeSession=a;this.clipboard=b;this.analytics=c;this.issueId=this.componentId=0;this.issueTitle="";this.isExternalIssue=!1;this.HOTKEYS=pI};U(D$,qI);D$.\u0275dir=qI.\u0275dir;D$.prototype.ngOnInit=function(){};D$.prototype.openIssueIdPicker=function(){io(this.analytics,mo.EDIT_ISSUE,"click","issueIdPicker");this.trigger.open()};var Jt=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=D$.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return Ls(this.activeSession,this.isExternalIssue)+this.issueId};g.getUrlAndTitle=function(){return Ls(this.activeSession)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(FBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+(Ls(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId)+"): "+this.issueTitle};
D$.\u0275fac=function(a){return new (a||D$)(C(qH),C(cT),C(IM))};
D$.\u0275cmp=w({type:D$,selectors:[["b-issue-id-picker-legacy"]],viewQuery:function(a,b){a&1&&Ef(PP,7);if(a&2){var c;Df(c=Gf())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue"},features:[ee],decls:31,vars:14,consts:[["onedevPopupPanelTrigger","","matTooltip","Show links for this issue",1,"id-expand","unstyled-button","keep-focus-ring",3,"hotkey","onedevPopupPanelTriggerFor","onHotkey","click"],["trigger","onedevPopupPanelTrigger"],
[1,"id-text"],["svgIcon","arrow-dropdown",1,"icon-s"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"issue-id-picker-popup"],[1,"id-details-row"],[3,"htmlFor"],["type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"focus"],["issueIdField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,"click"],["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"focus"],
["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"click"],["class","id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"click"]],template:function(a,b){if(a&1){var c=x();F(0,"button",0,
1);J("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});F(2,"span",2);O(3);G();H(4,"mat-icon",3);G();F(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);O(10,"Issue ID");G();F(11,"input",9,10);J("focus",function(){z(c);var q=Fe(12);return A(q.select())});G();F(13,"button",11);J("click",function(){z(c);var q=Fe(12);return A(Jt(b,q))});H(14,"mat-icon",12);G()();F(15,"div",7)(16,"label",8);O(17,"Issue URL");G();F(18,"input",13,14);J("focus",
function(){z(c);var q=Fe(19);return A(q.select())});G();F(20,"button",15);J("click",function(){z(c);var q=Fe(19);return A(Jt(b,q))});H(21,"mat-icon",12);G()();F(22,"div",7)(23,"label",8);O(24,"URL and title");G();F(25,"input",16,17);J("focus",function(){z(c);var q=Fe(26);return A(q.select())});G();F(27,"button",18);J("click",function(){z(c);var q=Fe(26);return A(Jt(b,q))});H(28,"mat-icon",12);G()();M(29,Bgb,7,2,"div",19);M(30,Cgb,7,2,"div",19);G()()}if(a&2){var d=Fe(1),e=Fe(6),f=Fe(12),h=Fe(19),k=
Fe(26);pe("expanded",d.isOpen);E("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID)("onedevPopupPanelTriggerFor",e);ke("aria-label","Show links for the issue "+b.issueId);B(3);He(b.issueId);B(6);E("htmlFor",f.id);B(2);ke("value",b.issueId);B(5);E("htmlFor",h.id);B(2);ke("value",b.getIssueUrl());B(5);E("htmlFor",k.id);B(2);ke("value",b.getUrlAndTitle());B(4);E("ngIf",b.isSessionInternal());B(1);E("ngIf",b.isSessionInternal())}},dependencies:[Gx,YI,FB,hF,wF,OP,PP],styles:[".container[_ngcontent-%COMP%]{display:inline-block}button.id-expand[_ngcontent-%COMP%]{font-size:.6875rem;line-height:13px;color:#5f6368;color:var(--text-muted);font-weight:normal;padding-left:3px;background-color:#fff;background-color:var(--background);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;margin:3px;cursor:pointer;height:15px;user-select:none}button.id-expand[_ngcontent-%COMP%]:hover, button.id-expand[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:2px;margin-top:-2px;transition:250ms transform}button.id-expand.expanded[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotate(-180deg)}.classic-picker[_nghost-%COMP%]{margin-left:6px;margin-right:6px}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;color:inherit;vertical-align:middle;height:inherit;margin:0}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], .classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:.8125rem;vertical-align:middle}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:0}  .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;width:475px}  .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:5px;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 .value:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}"],
changeDetection:0});
var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=xc({type:E$});E$.\u0275inj=ic({imports:[ay,ZI,wG,AF,gH,gQ]});
var F$=function(a,b){this.appEvents=b;this.hasAclToComment=this.hasAclToEdit=!1;this.issueStatusQuickAction=void 0;this.upvoted=this.isDuplicate=this.statusIsSaving=!1;this.voteCount=0;this.onVote=new Vw;this.quickAction=new Vw;this.markAsDuplicate=new Vw;this.clearCanonical=new Vw;this.frontendIsInternalOrPartner=!1;this.frontendIsInternalOrPartner=a.isInternalSession()||rH(a)};F$.\u0275fac=function(a){return new (a||F$)(C(qH),C(FK))};
F$.\u0275cmp=w({type:F$,selectors:[["edit-issue-controls"]],inputs:{issueId:"issueId",hasAclToEdit:"hasAclToEdit",hasAclToComment:"hasAclToComment",issueStatusQuickAction:"issueStatusQuickAction",statusIsSaving:"statusIsSaving",isDuplicate:"isDuplicate",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote",quickAction:"quickAction",markAsDuplicate:"markAsDuplicate",clearCanonical:"clearCanonical"},decls:10,vars:8,consts:[[3,"roundCorners"],["format","flat",3,"tooltip","disabled","onAction"],
["format","flat","tooltip","Focus comment box",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction",4,"ngIf"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction",4,"ngIf"],[3,"issueId","upvoted","voteCount","onVote",4,"ngIf"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction"],
[3,"issueId","upvoted","voteCount","onVote"]],template:function(a,b){a&1&&(F(0,"b-button-group",0)(1,"b-button",1),J("onAction",function(){return b.quickAction.emit(b.issueStatusQuickAction)}),F(2,"span"),O(3),G()(),F(4,"b-button",2),J("onAction",function(){return b.appEvents.focusCommentBox.next("editpage-appbar")}),F(5,"span"),O(6,"Comment"),G()(),M(7,Dgb,3,1,"b-button",3),M(8,Egb,3,1,"b-button",4),M(9,Fgb,1,3,"b-app-vote-button",5),G());a&2&&(E("roundCorners",!0),B(1),E("tooltip",null==b.issueStatusQuickAction?
null:b.issueStatusQuickAction.description)("disabled",!b.hasAclToEdit||!b.issueStatusQuickAction||b.statusIsSaving),B(2),He(null==b.issueStatusQuickAction?null:b.issueStatusQuickAction.displayText),B(1),E("disabled",!b.hasAclToComment),B(3),E("ngIf",!b.isDuplicate),B(1),E("ngIf",b.isDuplicate),B(1),E("ngIf",b.frontendIsInternalOrPartner))},dependencies:[wX,iH,oO,Gx],encapsulation:2});
var G$=function(a,b){qI.call(this);var c=this;this.session=a;this.dismissalService=b;this.shouldEnableEaCallout$=(0,T.iif)(function(){return c.session.isInternalSession()&&sH(c.session,"enableEaCallout")},wrc(this.dismissalService,"wtdm-ea-announcement").pipe(R(function(d){return!d})))};U(G$,qI);G$.\u0275dir=qI.\u0275dir;G$.\u0275fac=function(a){return new (a||G$)(t(qH),t(L9))};G$.\u0275prov=hc({token:G$,factory:G$.\u0275fac,providedIn:"root"});
var Usc=["content"],H$=function(a,b,c,d,e){qI.call(this);this.appEvents=a;this.scrolledOnScreen=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.eclipsing=new Vw;this.shouldEclipse=!1;this.HOTKEYS=pI;this.IssueSavingKey=iRb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$};U(H$,qI);H$.\u0275dir=qI.\u0275dir;
H$.prototype.ngOnInit=function(){};
H$.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b=document.getElementById("bv2-issue-title-box"),c=window.getComputedStyle(b),d=function(){var e=c.width;"0px"!==e&&(a.mainDiv.nativeElement.style.width=e)};a.scrolledOnScreen.getObservable(b,!0).pipe(fg(a.destroyed$)).subscribe(function(e){e?a.shouldEclipse=!1:(d(),a.shouldEclipse=!0);a.eclipsing.emit(a.shouldEclipse)});(0,T.merge)((0,T.fromEvent)(window,"resize"),a.appEvents.sidebarWidthChanged).pipe(Of(200),fg(a.destroyed$)).subscribe(d)})};
H$.prototype.isSaving$=function(a){var b=this;return this.issueDetailsBrain.id$.pipe(uf(el),R(function(c){return b.editIssueService.savingState(c)}),eg(function(c){return Us(c.propertiesBeingSaved,Xn(a))}))};H$.\u0275fac=function(a){return new (a||H$)(C(FK),C(YO),C(fS),C(cO),C(eO))};
H$.\u0275cmp=w({type:H$,selectors:[["edit-issue-scroll-eclipse"]],viewQuery:function(a,b){a&1&&Ef(Usc,5);if(a&2){var c;Df(c=Gf())&&(b.mainDiv=c.first)}},inputs:{parent:"parent"},outputs:{eclipsing:"eclipsing"},features:[ee],decls:12,vars:19,consts:[["id","bv2-issue-title-box-nowrap",1,"bv2-issue-title-box-nowrap","bv2-edit-issue-scroll-header","scroll-eclipse",3,"hidden"],["content",""],[3,"starMessage","unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",
3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],[1,"bv2-issue-title"],[1,"bv2-issue-title-text"],["class","bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown.enter",4,"ngIf"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown.enter"]],template:function(a,b){a&1&&(F(0,
"div",0,1)(2,"b-star-toggle",2),J("onHotkey",function(){return b.parent.toggleStarDebounced()})("starClicked",function(){return b.parent.toggleStar()}),P(3,"async"),G(),M(4,Ggb,2,6,"b-issue-id-picker-legacy",3),H(5,"b-access-level-indicator",4),P(6,"async"),F(7,"h3",5)(8,"span",6),O(9),G(),M(10,Hgb,5,13,"span",7),P(11,"async"),G()());a&2&&(pe("scroll-eclipse-hide",!b.shouldEclipse),E("hidden",b.parent.isLoading),B(2),E("starMessage",b.parent.starTooltip)("unStarMessage",b.parent.unStarTooltip)("starred",
!(null==b.parent.userData||!b.parent.userData.starred))("hotkey",b.HOTKEYS.TOGGLE_STAR)("disabled",!!Q(3,13,b.isSaving$("star"))),B(2),E("ngIf",b.shouldEclipse),B(1),E("accessLevel",Q(6,15,b.accessLevel$)),B(2),ke("aria-label",b.parent.ariaIssueTitle),B(2),Ge(" ",b.parent.issue.title," "),B(1),E("ngIf",Q(11,17,b.hasAclToEdit$)))},dependencies:[Gx,LS,wF,aN,D$,YI,Tx],encapsulation:2});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=xc({type:I$});
I$.\u0275inj=ic({imports:[ay,WS,gH,MN,E$,ZI]});
var Vsc=["editIssueTitle"],Sgb=function(){return[]},phb=function(a){return[a]},J$=function(a,b,c,d,e,f,h,k,q,u,y,D){qI.call(this);var I=this;this.wtdmEa=a;this.activeSession=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.paths=f;this.issueEditComponentService=h;this.commentHistoryDialogService=k;this.issueInteractionsTracking=q;this.errorHandler=u;this.eventsForIssueFridge=y;this.issueFridge=D;this.scrollEclipseShowing=!1;this.isSaving$=function(N){return I.issueDetailsBrain.id$.pipe(uf(el),
R(function(L){return I.editIssueService.savingState(L)}),eg(function(L){return Us(L.propertiesBeingSaved,Xn(N))}))};this.HOTKEYS=pI;this.IssueSavingKey=iRb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.canDeleteIssue$=this.issuePermissionService.canDeleteIssue$;this.canUndeleteIssue$=this.issuePermissionService.canUndeleteIssue$;this.userIsComponentAdmin$=
this.issuePermissionService.userIsComponentAdmin$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.audience$=this.issuePermissionService.audience$;this.undeleteButtonTooltip$=this.canUndeleteIssue$.pipe(R(function(N){return N?"":"Only component editors can undelete this issue."}));this.modifiedTime$=this.issueDetailsBrain.modifiedTime$;this.retentionState$=this.issueDetailsBrain.retentionState$};
U(J$,qI);J$.\u0275dir=qI.\u0275dir;
var ehb=function(a,b){var c,d;return ef(function(e){if(1==e.nextAddress){a.editIssueTitle.nativeElement.focus();c=a.parent.issueIdString;$R(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Ut(e,2,3);var f=FJb(a.issueFridge,c,[],[String(b)]);return ff(e,f,3)}if(2!=e.nextAddress)return Xt(e),mt(a.eventsForIssueFridge,c),Yt(e,0);d=Wt(e);DK(a.errorHandler,d);return e.jumpTo(3)})},Chb=function(a){var b=a.issuePermissionService.accessLevel();if(!b)return!1;var c;return!(null==(c=a.parent)?
0:c.issue.isDeleted)&&"EXTERNAL_PUBLIC"===b};J$.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&void 0!==b&&-1<b){var d,e=null==(d=a.parent)?void 0:d.issueId;e&&a.commentHistoryDialogService.show(Number(e),c,null!=b?b:-1)}}))};J$.\u0275fac=function(a){return new (a||J$)(C(G$),C(qH),C(fS),C(cO),C(eO),C(LK),C(p6),C(FS),C(ZR),C(BK),C(DL),C(oL))};
J$.\u0275cmp=w({type:J$,selectors:[["edit-issue-main-content"]],viewQuery:function(a,b){a&1&&Ef(Vsc,5);if(a&2){var c;Df(c=Gf())&&(b.editIssueTitle=c.first)}},inputs:{parent:"parent"},features:[ee],decls:1,vars:1,consts:[["class","bv2-issue-main-content",4,"ngIf"],[1,"bv2-issue-main-content"],[1,"bv2-issue-static"],["id","rel-issues-tray-blocked-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",4,"ngIf"],["id","rel-issues-tray-blocking-content",
"class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",4,"ngIf"],["id","rel-issues-tray-duplicates-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",4,"ngIf"],["id","rel-issues-tray-parents-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-parents",4,"ngIf"],["id","rel-issues-tray-children-content","class","tab bv2-related-issues-tab","role","tabpanel",
"aria-labelledby","rel-issues-tray-children",4,"ngIf"],["id","rel-issues-tray-mentions-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",4,"ngIf"],[3,"messageType","format",4,"ngIf"],["id","bv2-edit-issue-details-scroll","tabindex","-1","cdkScrollable","",1,"bv2-edit-issue-details-scroll",3,"bFocus"],[3,"parent","eclipsing"],[1,"bv2-issue-info"],["id","bv2-issue-title-box",1,"bv2-issue-title-box","bv2-edit-issue-scroll-header"],[3,"starMessage",
"unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],["tabindex","-1",1,"bv2-issue-title"],[3,"isReady"],[1,"bv2-issue-title-text"],["class","keep-focus-ring bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown",4,"ngIf"],["class","bv2-flag-button",3,"xapInlineDialog",4,"ngIf"],["removable","check-acl",3,"id",
"removeHotlist",4,"ngFor","ngForOf"],[1,"float-clear"],["class","bv2-issue-vote-count",4,"ngIf"],[1,"bv2-issue-subtext"],[1,"bv2-issue-edit-component"],["class","bv2-issue-component-path",4,"ngIf"],["class","bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed",4,"ngIf"],[1,"bv2-issue-retention-chip"],[3,"retentionState","compactMode","modifiedTime"],["class","issue-detail-actions",3,"menuItems","buttonLabel","matTooltip",
4,"ngIf"],["class","margined carded bad",4,"ngIf"],[3,"issueId","issueAccessLevel","events",4,"ngIf"],[3,"issueId","issueAccessLevel","events","showFullHistory",4,"ngIf"],["class","bv2-edit-issue-history-stream",4,"ngIf"],[4,"ngIf"],["id","rel-issues-tray-blocked-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",1,"tab","bv2-related-issues-tab"],["relation","blocked","relDisplayMessage","Mark this issue as blocked by:",3,"disabled","removeButtonTitle","addButtonTitle","items",
"searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-blocking-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",1,"tab","bv2-related-issues-tab"],["relation","blocking","relDisplayMessage","Mark this issue as blocking:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-duplicates-content","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",
1,"tab","bv2-related-issues-tab"],[3,"disabled","hideStatus","items"],["id","rel-issues-tray-parents-content","role","tabpanel","aria-labelledby","rel-issues-tray-parents",1,"tab","bv2-related-issues-tab"],["relation","parent","relDisplayMessage","Add parent issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","currentResourceId","componentId","itemChange"],["footer-items","",4,"ngIf"],["footer-items",""],["id","rel-issues-tray-children-content","role","tabpanel","aria-labelledby","rel-issues-tray-children",
1,"tab","bv2-related-issues-tab"],["relation","child","relDisplayMessage","Add child issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","reorderable","itemChange","itemMove"],["id","rel-issues-tray-mentions-content","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",1,"tab","bv2-related-issues-tab"],[1,"bv2-rel-issues-tray-mentions-footer"],["target","_blank",3,"href","click"],[3,"issueId","packageMentionSet","displayPackageName",
4,"ngFor","ngForOf"],[3,"issueId","packageMentionSet","displayPackageName"],[3,"messageType","format"],["href","http://go/wtdm-home","target","_blank"],["format","flat",3,"onAction"],["href","http://go/wtdm-ea","target","_blank"],["format","fill"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"keep-focus-ring","bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown"],["editIssueTitle",""],[1,"bv2-flag-button",3,"xapInlineDialog"],
["format","icon","size","small","bAriaLabel","Flag issue as spam",3,"disabled","onAction"],["name","flag","size","small"],["spamFlagBubble",""],["target","_blank",3,"href"],["removable","check-acl",3,"id","removeHotlist"],[1,"bv2-issue-vote-count"],[1,"bv2-issue-component-path"],[3,"componentPathInfo","isArchived"],["class","bv2-edit-button","tabindex","0","role","button","aria-label","Change component",3,"matTooltip","click","keydown.enter",4,"ngIf"],["tabindex","0","role","button","aria-label",
"Change component",1,"bv2-edit-button",3,"matTooltip","click","keydown.enter"],[1,"bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[1,"margined","carded","bad"],["format","fill",3,"tooltip","disabled","onAction"],[3,"issueId","issueAccessLevel","events"],[3,"issueId","issueAccessLevel","events","showFullHistory"],[1,"bv2-edit-issue-history-stream"],
[1,"bv2-event-content-cell"],[1,"muted","padded-s-x","margin-y"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","attachmentsDisabled","onHotkey","onChange","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled","onAction"],["class","goog-inline-block vertical-centered",4,"ngIf"],["label","CC Me",3,"checked","disabled",
"change"],[1,"goog-inline-block","vertical-centered"],["label","CC Me",3,"checked","disabled","tooltip",4,"ngIf"],["label","CC Me",3,"checked","disabled","tooltip"]],template:function(a,b){a&1&&M(0,Dhb,46,49,"div",0);a&2&&E("ngIf",b.parent)},dependencies:[IZ,t2,oO,bI,cI,HA,iX,MW,Kx,Gx,LS,kT,H$,d_,P8,YI,fY,tH,D$,wF,mQ,e5,XZ,JY,cN,aN,xV,L_,sN,rN,SN,Tx],encapsulation:2});
var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=xc({type:K$});K$.\u0275inj=ic({imports:[A2,LZ,AX,x2,sP,CM,VH,pO,VN,qO,LA,o$,QX,dX,ES,ay,WS,lT,rV,VU,I$,W4,xG,T4,e_,hH,g9,ZI,gY,SX,QN,WH,c$,BX,E$,p$,b5,pV,wG,AF,gH,nQ,CT,p_,f5,YZ,FZ,dP,ON,MN,zV,K3,n$,M_,VS,RN,TN]});rca(w6,[w2,oO,bI,cI,Jx,Gx,TC,OE,PE,TE,vG,YI,pX,fN,gN,jN,hN,l7,xX,r8,FB,hF,wF,BT,o_,XO,F$,J$],[vM,wM,xM,AM,Tx]);
var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=xc({type:L$});L$.\u0275inj=ic({imports:[ay,gH,wG,cX,dZ,sK,hC,AF,Ky,Ly,qF,hZ]});
var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=xc({type:M$});M$.\u0275inj=ic({imports:[pO,ay,dZ,Ky,iZ,WH,cX,gH,hZ,nQ,E_,ON]});
var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=xc({type:N$});N$.\u0275inj=ic({imports:[ay,mZ,ON,wG]});
var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=xc({type:O$});O$.\u0275inj=ic({imports:[ay,wG,AF,G_,ON]});
var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=xc({type:P$});P$.\u0275inj=ic({imports:[ay,lT,c_]});
var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=xc({type:Q$});Q$.\u0275inj=ic({imports:[ay,WS,Ky,cX,AS,hZ,WH,X5,wG,GO,AF,gH,hC,jT,ON]});
var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=xc({type:R$});R$.\u0275inj=ic({imports:[pO,ay,WS,lT,ZS,y3,G3,L3,iY,dZ,G4,Ky,lQ,iZ,WH,wG,GO,hC,AF,RS,AT,cX,gH,hZ,nQ,t_,KI,P$,r_,ON,zV,MA,Q$,jT]});
var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=xc({type:S$});S$.\u0275inj=ic({imports:[ay,dZ,Ky,lQ,iZ,wG,GO,AF,cX,gH,AT,hZ,KI,jT,MA,r_,c_]});
var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=xc({type:T$});T$.\u0275inj=ic({imports:[ay,wG,gH,AF]});
var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=xc({type:U$});U$.\u0275inj=ic({providers:[{provide:y5b,useValue:{enabled:!0}}],imports:[V2,qO,ay,ay,Ky,iZ,wG,wG,AF,RS,AT,cX,gH,gH,CT,T$,CM,b9]});
var V$=function(){this.isMultiCharShortName=Fhb;this.getTooltip=Ghb};V$.\u0275fac=function(a){return new (a||V$)};
V$.\u0275cmp=w({type:V$,selectors:[["b-entity-chip"]],inputs:{entity:"entity"},decls:1,vars:1,consts:[["class","chip",3,"smallType","uncoloredMultichar","noShortName","backgroundColor","color","title",4,"ngIf"],[1,"chip",3,"title"]],template:function(a,b){a&1&&M(0,Ehb,2,12,"output",0);a&2&&E("ngIf",!!b.entity&&(b.entity.color||b.entity.shortName))},dependencies:[Gx],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%], .chip[_ngcontent-%COMP%]{vertical-align:middle}.chip[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;padding:2px 2px;margin-right:4px;border-radius:2px;text-align:center;line-height:14px;min-height:18px;min-width:18px;font-weight:500}.chip.smallType[_ngcontent-%COMP%]{font-size:84.6153846154%}.chip.uncoloredMultichar[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.02);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.chip.noShortName[_ngcontent-%COMP%]{min-height:.8125rem;min-width:.8125rem}\n/*# sourceMappingURL=entity_chip.css.map */"],changeDetection:0});
var W$=function(){var a=this;this.entityChanged=new Vw;this.broadcastEntityChanged=zC(function(b){a.entityChanged.emit(Object.assign({},b))},400)};W$.prototype.update=function(a){this.broadcastEntityChanged(a)};W$.\u0275fac=function(a){return new (a||W$)};
W$.\u0275cmp=w({type:W$,selectors:[["b-entity-decorator"]],inputs:{entity:"entity"},outputs:{entityChanged:"entityChanged"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"colorInput"],["matInput","","placeholder","Color","type","text",3,"ngModel","ngModelChange","input"],[1,"shortNameInput"],["matInput","","placeholder","Symbol","type","text","title","A few letters (or an emoji) that represent this item. Think very short, like an airport code. eg: eg: 'FR', 'TODO', or '\u2601\ufe0f'",3,"ngModel","ngModelChange",
"input"],["matInput","","placeholder","Text Color","type","text","title","If your chip background is dark, you may want to use 'white' for your text.",3,"ngModel","ngModelChange","input"]],template:function(a,b){a&1&&M(0,Hhb,12,3,"ng-container",0);a&2&&E("ngIf",b.entity)},dependencies:[Gx,Mg,py,vy,sC,oC,uC],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    mat-form-field[_ngcontent-%COMP%] {\n      margin-right: 16px;\n    }\n    .colorInput[_ngcontent-%COMP%] {\n      width: 120px; \n    }\n    .shortNameInput[_ngcontent-%COMP%] {\n      width: 60px;\n    }"],
changeDetection:0});
var X$=function(){this.isMultiCharShortName=Fhb;this.getTooltip=Ghb};X$.\u0275fac=function(a){return new (a||X$)};
X$.\u0275cmp=w({type:X$,selectors:[["b-entity-preview"]],inputs:{entity:"entity"},decls:3,vars:3,consts:[[3,"entity"],[1,"title",3,"title"]],template:function(a,b){a&1&&(H(0,"b-entity-chip",0),F(1,"span",1),O(2),G());a&2&&(E("entity",b.entity),B(1),E("title",b.getTooltip(b.entity)),B(1),He(null==b.entity?null:b.entity.title))},dependencies:[V$],styles:[".title[_ngcontent-%COMP%]{vertical-align:middle}\n/*# sourceMappingURL=entity_preview.css.map */"],changeDetection:0});
var Wsc=[X$,V$,W$],Y$=function(){};[].concat(v(Wsc));[].concat(v(Wsc));Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=xc({type:Y$});Y$.\u0275inj=ic({imports:[ay,Ky,gH,tC,vC]});
var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=xc({type:Z$});Z$.\u0275inj=ic({imports:[ay,sK,wG,AF]});
var Xsc=function(){};Xsc.prototype.send=function(a,b){Kza(a);return this.makeRequest(a).then(function(c){return b?Tza(b,c):c})};
var Nt=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};U(Nt,Xsc);Nt.prototype.getGapi=function(){var a=this;return UAa().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return ZAa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Nt.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return ef(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):ff(d,YAa(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request({root:b.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||b.defaultApiId})))})})};
Nt.prototype.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(!1===d.result&&null!=d.body?{data:d.body}:d.result)},function(d){c(!1===d.result&&null!=d.body?{data:d.body}:d.result)})})};Nt.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&XAa(a,b,this.gapiConfigUpdates[b])};Nt.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];
var Ysc={disableCheatSheet:!0};Ysc=void 0===Ysc?{}:Ysc;
var Zsc=[gP,wS,rz,Sz,aT,dQ,eY,XP,oI,WH,nQ,WN,CT,aJ,t_,MN,XN,Y4,pO,xZ,BV,YH,p3,r5,o5,VU,pV,rV,eT,AX,m_,YZ,A$,M$,O$,N$,b6,s9,$9,b$,w$,R$,S$,Y9,mZ,G_,iY,zX,I4,f5,a_,TU,kZ,UX,t5,q3,GX,T3,r3,g5,PZ,$Z,S3,NZ,RX,IO,qO,dX,hX,I$,K$,C$,DX,VH,j_,UN,o$,p_,K_,EZ,FZ,d5,O2,ON,sP,LZ,Y$,cV,N2,L3,Z$,G4,A2,AS,yX,WS,WP,U$,V2,aV,vS,yZ,BZ,E_,r_,zZ,dZ,t3,WZ,v$,x$,F3,w_,wT,lT,oT,ZS,AZ,GZ,DV,fZ,M_,W4,SX,C_,J_,b5,G3,eQ,jQ,hZ,jZ,QX,y3,B$,rO,uO,L$,z$,ES,q$,V_,AF,sB,dF,{ngModule:hH,providers:[{provide:CF,useFactory:function(){var a,
b=(null==(a=aj().getConfig())?void 0:a.getEnvironmentType())||"QA";return"PROD"===b||"NIGHTLY"===b?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[Uv]}]},{ngModule:tS,providers:[$Q,{provide:TPb,useFactory:function(a){return new Mt(new QRb("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,SRb,{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[RRb]},{provide:RRb,
useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc"}}}]},{ngModule:l$,providers:[G7,{provide:toc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:Fhc,autocompleteFactory:pcc}}}]},{ngModule:SI,providers:[RI,{provide:rFb,useValue:Ysc}]}],$sc=[tkc,V7b,W7b,X7b,Y7b,pDb,{provide:O1b,useValue:{animationDuration:"0ms"}},{provide:Avb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},
{provide:xwb,useValue:{disableTooltipInteractivity:!0}},{provide:i6b,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:l6b,useValue:"92912"},{provide:GPb,useFactory:Ihb},ukc,Ckc,Dkc,Ekc],wx=function(){};wx.prototype.ngDoBootstrap=function(){Uk("bootstrapping AppModule")};[].concat(v(Zsc),[u$,xO]);[].concat(v($sc));wx.\u0275fac=function(a){return new (a||wx)};wx.\u0275mod=xc({type:wx,bootstrap:[fP,q5]});wx.\u0275inj=ic({providers:[].concat(v($sc)),imports:[Zsc,u$,xO]});
kD(document,"DOMContentLoaded",function(){Kmb()});

__._ModuleManager_initialize=function(){};

__._ModuleManager_initialize('c/Yfyhhd/b96Luc/E7aOmb/HyHasc/dflQFd',[]);

}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
