'use strict';var Fg=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||Fa,e=d.document,f=a.nonce||Ia(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var g=La("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var h=JSON.stringify(b);(g=1200>=h.length)&&(a.psdJson=h)}g||(b={invalidPsd:!0})}g=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=g;h=a.serverUri||"//www.google.com/tools/feedback";var m=d.GOOGLE_FEEDBACK_START;if(a.forceNewHelpPanel){var q=
Dg(tg(e),"SCRIPT");f&&q.setAttribute("nonce",f);q.onload=function(){d.startHelpPanel({helpcenter:a.helpCenterPath.split("/")[1],apiKey:"testpage",locale:a.locale,enableSendFeedback:a.enableSendFeedback||!1,helpApiData:{helpApiConfig:a,productData:b,productWindow:c}})};ze(q,pd(ad(new $c(Yc,"https://www.gstatic.com/support/help/staging/main_frame/help_panel_staging_binary.js"))));e.body.appendChild(q)}else if(m)m.apply(d,g);else{g=h+"/load.js?";for(q in a)h=a[q],null==h||Ra(h)||(g+=encodeURIComponent(q)+
"="+encodeURIComponent(h)+"&");q=Dg(tg(e),"SCRIPT");f&&q.setAttribute("nonce",f);ze(q,wf(g));e.body.appendChild(q)}};v("userfeedback.api.startFeedback",Fg);var Gg=function(){this.j=this.h=this.u=this.modelName=this.l=this.g=this.Tc="";this.s=this.m=this.C=!1};var Hg=chrome.i18n.getMessage("4163185390680253103"),Ig=chrome.i18n.getMessage("492097680647953484"),Jg=chrome.i18n.getMessage("2575016469622936324"),Kg=chrome.i18n.getMessage("128276876460319075"),Lg=chrome.i18n.getMessage("3326722026796849289"),Mg=chrome.i18n.getMessage("1018984561488520517"),Ng=chrome.i18n.getMessage("8205999658352447129"),Og=chrome.i18n.getMessage("5723583529370342957"),Pg=chrome.i18n.getMessage("1550904064710828958"),Qg=chrome.i18n.getMessage("5014364904504073524"),Rg=chrome.i18n.getMessage("2194670894476780934"),
Sg=chrome.i18n.getMessage("6614468912728530636"),Tg=chrome.i18n.getMessage("5910595154486533449"),Ug=chrome.i18n.getMessage("5363086287710390513"),Vg=chrome.i18n.getMessage("244647017322945605"),Wg=chrome.i18n.getMessage("5375576275991472719"),Xg=chrome.i18n.getMessage("4592127349908255218"),Yg=chrome.i18n.getMessage("843316808366399491"),Zg=chrome.i18n.getMessage("5699813974548050528"),$g=chrome.i18n.getMessage("8515148417333877999"),ah=chrome.i18n.getMessage("1636686747687494376"),bh=chrome.i18n.getMessage("4148300086676792937"),
ch=chrome.i18n.getMessage("3219866268410307919"),dh=chrome.i18n.getMessage("9211708838274008657"),eh=chrome.i18n.getMessage("8706273405040403641"),fh=chrome.i18n.getMessage("4756056595565370923"),gh=chrome.i18n.getMessage("7876724262035435114"),hh=chrome.i18n.getMessage("5485620192329479690"),ih=chrome.i18n.getMessage("6963873398546068901"),jh=chrome.i18n.getMessage("3567591856726172993"),kh=chrome.i18n.getMessage("3239956785410157548");/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var lh={"* ARIA-CHECKED":!0,"* ARIA-COLCOUNT":!0,"* ARIA-COLINDEX":!0,"* ARIA-CONTROLS":!0,"* ARIA-DESCRIBEDBY":!0,"* ARIA-DISABLED":!0,"* ARIA-EXPANDED":!0,"* ARIA-GOOG-EDITABLE":!0,"* ARIA-HASPOPUP":!0,"* ARIA-HIDDEN":!0,"* ARIA-LABEL":!0,"* ARIA-LABELLEDBY":!0,"* ARIA-MULTILINE":!0,"* ARIA-MULTISELECTABLE":!0,"* ARIA-ORIENTATION":!0,"* ARIA-PLACEHOLDER":!0,"* ARIA-READONLY":!0,"* ARIA-REQUIRED":!0,"* ARIA-ROLEDESCRIPTION":!0,"* ARIA-ROWCOUNT":!0,"* ARIA-ROWINDEX":!0,"* ARIA-SELECTED":!0,"* ABBR":!0,
"* ACCEPT":!0,"* ACCESSKEY":!0,"* ALIGN":!0,"* ALT":!0,"* AUTOCOMPLETE":!0,"* AXIS":!0,"* BGCOLOR":!0,"* BORDER":!0,"* CELLPADDING":!0,"* CELLSPACING":!0,"* CHAROFF":!0,"* CHAR":!0,"* CHECKED":!0,"* CLEAR":!0,"* COLOR":!0,"* COLSPAN":!0,"* COLS":!0,"* COMPACT":!0,"* COORDS":!0,"* DATETIME":!0,"* DIR":!0,"* DISABLED":!0,"* ENCTYPE":!0,"* FACE":!0,"* FRAME":!0,"* HEIGHT":!0,"* HREFLANG":!0,"* HSPACE":!0,"* ISMAP":!0,"* LABEL":!0,"* LANG":!0,"* MAX":!0,"* MAXLENGTH":!0,"* METHOD":!0,"* MULTIPLE":!0,
"* NOHREF":!0,"* NOSHADE":!0,"* NOWRAP":!0,"* OPEN":!0,"* READONLY":!0,"* REQUIRED":!0,"* REL":!0,"* REV":!0,"* ROLE":!0,"* ROWSPAN":!0,"* ROWS":!0,"* RULES":!0,"* SCOPE":!0,"* SELECTED":!0,"* SHAPE":!0,"* SIZE":!0,"* SPAN":!0,"* START":!0,"* SUMMARY":!0,"* TABINDEX":!0,"* TITLE":!0,"* TYPE":!0,"* VALIGN":!0,"* VALUE":!0,"* VSPACE":!0,"* WIDTH":!0},mh={"* USEMAP":!0,"* ACTION":!0,"* CITE":!0,"* HREF":!0,"* LONGDESC":!0,"* SRC":!0,"LINK HREF":!0,"* FOR":!0,"* HEADERS":!0,"* NAME":!0,"A TARGET":!0,
"* CLASS":!0,"* ID":!0,"* STYLE":!0};var nh={};
function oh(a){if(Pe&&!lf(9))return[0,0,0,0];var b=nh.hasOwnProperty(a)?nh[a]:null;if(b)return b;65536<Object.keys(nh).length&&(nh={});var c=[0,0,0,0];b=ph(a,/\\[0-9A-Fa-f]{6}\s?/g);b=ph(b,/\\[0-9A-Fa-f]{1,5}\s/g);b=ph(b,/\\./g);b=b.replace(/:not\(([^\)]*)\)/g,"     $1 ");b=b.replace(/{[^]*/gm,"");b=qh(b,c,/(\[[^\]]+\])/g,2);b=qh(b,c,/(#[^\#\s\+>~\.\[:]+)/g,1);b=qh(b,c,/(\.[^\s\+>~\.\[:]+)/g,2);b=qh(b,c,/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,3);b=qh(b,c,/(:[\w-]+\([^\)]*\))/gi,2);
b=qh(b,c,/(:[^\s\+>~\.\[:]+)/g,2);b=b.replace(/[\*\s\+>~]/g," ");b=b.replace(/[#\.]/g," ");qh(b,c,/([^\s\+>~\.\[:]+)/g,3);b=c;return nh[a]=b}function qh(a,b,c,d){return a.replace(c,function(e){b[d]+=1;return Array(e.length+1).join(" ")})}function ph(a,b){return a.replace(b,function(c){return Array(c.length+1).join("A")})};var rh={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0},sh=/[\n\f\r"'()*<>]/g,th={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29",
"*":"%2a","<":"%3c",">":"%3e"};function uh(a){return th[a]}
var vh=function(a,b,c){b=ud(b);if(""==b)return null;if(0==vd("url(",b.substr(0,4))){if(!b.endsWith(")")||1<(b?b.split("(").length-1:0)||1<(b?b.split(")").length-1:0)||!c)a=null;else{a:{b=b.substring(4,b.length-1);for(var d=0;2>d;d++){var e="\"'".charAt(d);if(b.charAt(0)==e&&b.charAt(b.length-1)==e){b=b.substring(1,b.length-1);break a}}}a=c?(a=c(b,a))&&"about:invalid#zClosurez"!=Id(a)?'url("'+Id(a).replace(sh,uh)+'")':null:null}return a}if(0<b.indexOf("(")){if(/"|'/.test(b))return null;for(a=/([\-\w]+)\(/g;c=
a.exec(b);)if(!(c[1].toLowerCase()in rh))return null}return b};function wh(a,b){a=Fa[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null}function xh(a,b){return(a=Fa[a])&&a.prototype&&a.prototype[b]||null}
var yh=wh("Element","attributes")||wh("Node","attributes"),zh=xh("Element","hasAttribute"),Ah=xh("Element","getAttribute"),Bh=xh("Element","setAttribute"),Ch=xh("Element","removeAttribute"),Dh=xh("Element","getElementsByTagName"),Eh=xh("Element","matches")||xh("Element","msMatchesSelector"),Fh=wh("Node","nodeName"),Gh=wh("Node","nodeType"),Hh=wh("Node","parentNode"),Ih=wh("HTMLElement","style")||wh("Element","style"),Jh=wh("HTMLStyleElement","sheet"),Kh=xh("CSSStyleDeclaration","getPropertyValue"),
Lh=xh("CSSStyleDeclaration","setProperty");function Mh(a,b,c,d){if(a)return a.apply(b);a=b[c];if(!d(a))throw Error("Clobbering detected");return a}function Nh(a,b,c,d){if(a)return a.apply(b,d);if(Pe&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}function Oh(a){return Mh(yh,a,"attributes",function(b){return b instanceof NamedNodeMap})}
function Ph(a,b,c){try{Nh(Bh,a,"setAttribute",[b,c])}catch(d){if(-1==d.message.indexOf("A security problem occurred"))throw d;}}function Qh(a){Rh(a);return Mh(Ih,a,"style",function(b){return b instanceof CSSStyleDeclaration})}function Rh(a){if(!(a instanceof HTMLElement))throw Error("Not an HTMLElement");}function Sh(a){Rh(a);return Mh(Jh,a,"sheet",function(b){return b instanceof CSSStyleSheet})}function Th(a){return Mh(Fh,a,"nodeName",function(b){return"string"==typeof b})}
function Uh(a){return Mh(Gh,a,"nodeType",function(b){return"number"==typeof b})}function Vh(a){return Mh(Hh,a,"parentNode",function(b){return!(b&&"string"==typeof b.name&&b.name&&"parentnode"==b.name.toLowerCase())})}function Wh(a,b){return Nh(Kh,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[b])||""}function Xh(a,b,c){Nh(Lh,a,a.setProperty?"setProperty":"setAttribute",[b,c])};var Yh=Pe&&10>document.documentMode?null:/\s*([^\s'",]+[^'",]*(('([^'\r\n\f\\]|\\[^])*')|("([^"\r\n\f\\]|\\[^])*")|[^'",])*)/g,Zh={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0},bi=function(a,b,c){var d=[];a=$h(kc(a.cssRules));Qb(a,function(e){if(b&&!/[a-zA-Z][\w-:\.]*/.test(b))throw Error("Invalid container id");if(!(b&&Pe&&10==document.documentMode&&/\\['"]/.test(e.selectorText))){var f=b?e.selectorText.replace(Yh,"#"+b+" $1"):e.selectorText;d.push(be(f,ai(e.style,
c)))}});return de(d)},$h=function(a){return Sb(a,function(b){return b instanceof CSSStyleRule||b.type==CSSRule.STYLE_RULE})},di=function(a,b,c){a=ci("<style>"+a+"</style>");return null==a||null==a.sheet?ee:bi(a.sheet,void 0!=b?b:null,c)},ci=function(a){if(Pe&&!lf(10)||"function"!=typeof Fa.DOMParser)return null;a=se("<html><head></head><body>"+a+"</body></html>",null);return(new DOMParser).parseFromString(re(a),"text/html").body.children[0]},ai=function(a,b){if(!a)return Rd;var c=document.createElement("div").style,
d=ei(a);Qb(d,function(e){var f=Se&&e in Zh?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");rd(f,"--")||rd(f,"var")||(e=Wh(a,e),e=vh(f,e,b),null!=e&&Xh(c,f,e))});return new Pd(c.cssText||"",Od)},gi=function(a){var b=Array.from(Nh(Dh,a,"getElementsByTagName",["STYLE"])),c=wc(b,function(e){return kc(Sh(e).cssRules)});c=$h(c);c.sort(function(e,f){e=oh(e.selectorText);a:{f=oh(f.selectorText);for(var g=qc,h=Math.min(e.length,f.length),m=0;m<h;m++){var q=g(e[m],f[m]);
if(0!=q){e=q;break a}}e=qc(e.length,f.length)}return-e});a=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,null,!1);for(var d;d=a.nextNode();)Qb(c,function(e){Nh(Eh,d,d.matches?"matches":"msMatchesSelector",[e.selectorText])&&e.style&&fi(d,e.style)});Qb(b,Bg)},fi=function(a,b){var c=ei(a.style),d=ei(b);Qb(d,function(e){if(!(0<=c.indexOf(e))){var f=Wh(b,e);Xh(a.style,e,f)}})},ei=function(a){Qa(a)?a=kc(a):(a=Lc(a),fc(a,"cssText"));return a};var hi="undefined"!=typeof WeakMap&&-1!=WeakMap.toString().indexOf("[native code]"),ii=0,ji=function(){this.j=[];this.h=[];this.g="data-elementweakmap-index-"+ii++};ji.prototype.set=function(a,b){if(Nh(zh,a,"hasAttribute",[this.g])){var c=parseInt(Nh(Ah,a,"getAttribute",[this.g])||null,10);this.h[c]=b}else c=this.h.push(b)-1,Ph(a,this.g,c.toString()),this.j.push(a);return this};
ji.prototype.get=function(a){if(Nh(zh,a,"hasAttribute",[this.g]))return a=parseInt(Nh(Ah,a,"getAttribute",[this.g])||null,10),this.h[a]};ji.prototype.clear=function(){this.j.forEach(function(a){Nh(Ch,a,"removeAttribute",[this.g])},this);this.j=[];this.h=[]};var ki=jg("goog.html.sanitizer.SafeDomTreeProcessor"),li=!Pe||10<=Number(of),mi=!Pe||null==document.documentMode,ni=function(){};var oi={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var pi={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,
NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var qi={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0},ui=function(a){a=a||new ri;si(a);this.g=Qc(a.g);this.C=Qc(a.G);this.j=Qc(a.H);this.u=a.F;Qb(a.s,function(b){if(!rd(b,"data-"))throw new Ib('Only "data-" attributes allowed, got: %s.',[b]);if(rd(b,"data-sanitizer-"))throw new Ib('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.g["* "+b.toUpperCase()]=ti},
this);Qb(a.m,function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||qi[b])throw new Ib("Only valid custom element tag names allowed, got: %s.",[b]);this.j[b]=!0},this);this.s=a.j;this.l=a.D;this.h=null;this.m=a.u};w(ui,ni);
var vi=function(a){return function(b,c){return(b=a(ud(b),c))&&"about:invalid#zClosurez"!=Id(b)?Id(b):null}},ri=function(){this.g={};Qb([lh,mh],function(a){Qb(Lc(a),function(b){this.g[b]=ti},this)},this);this.h={};this.s=[];this.m=[];this.G=Qc(oi);this.H=Qc(pi);this.F=!1;this.N=Nd;this.V=this.C=this.K=this.j=zc;this.D=null;this.l=this.u=!1},wi=function(a,b){return function(c,d,e,f){c=a(c,d,e,f);return null==c?null:b(c,d,e,f)}},xi=function(a,b,c,d){a[c]&&!b[c]&&(a[c]=wi(a[c],d))};ri.prototype.ia=function(){return new ui(this)};
var si=function(a){if(a.l)throw Error("HtmlSanitizer.Builder.build() can only be used once.");xi(a.g,a.h,"* USEMAP",yi);var b=vi(a.N);Qb(["* ACTION","* CITE","* HREF"],function(d){xi(this.g,this.h,d,b)},a);var c=vi(a.j);Qb(["* LONGDESC","* SRC","LINK HREF"],function(d){xi(this.g,this.h,d,c)},a);Qb(["* FOR","* HEADERS","* NAME"],function(d){xi(this.g,this.h,d,Za(zi,this.K))},a);xi(a.g,a.h,"A TARGET",Za(Ai,["_blank","_self"]));xi(a.g,a.h,"* CLASS",Za(Bi,a.C));xi(a.g,a.h,"* ID",Za(Ci,a.C));xi(a.g,a.h,
"* STYLE",Za(a.V,c));a.l=!0},Di=function(a,b){a||(a="*");return(a+" "+b).toUpperCase()},ti=function(a){return ud(a)},Ai=function(a,b){b=ud(b);return $b(a,b.toLowerCase())?b:null},yi=function(a){return(a=ud(a))&&"#"==a.charAt(0)?a:null},zi=function(a,b,c){return a(ud(b),c)},Bi=function(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e<b.length;e++){var f=a(b[e],c);f&&d.push(f)}return 0==d.length?null:d.join(" ")},Ci=function(a,b,c){return a(ud(b),c)},Ei=function(a,b){var c=b.data;(b=Vh(b))&&"style"==
Th(b).toLowerCase()&&!("STYLE"in a.C)&&"STYLE"in a.j&&(c=ce(di(c,a.h,Ya(function(d,e){return this.s(d,{iP:e})},a))));return document.createTextNode(c)},Fi=function(a){var b=(new ri).ia();var c=!("STYLE"in b.C)&&"STYLE"in b.j;c="*"==b.l&&c?"sanitizer-"+Ee():b.l;b.h=c;if(li){c=a;if(li){a=zg(document,"SPAN");b.h&&"*"==b.l&&(a.id=b.h);b.m&&(c=ci("<div>"+c+"</div>"),gi(c),c=c.innerHTML);c=se(c,null);var d=document.createElement("template");if(mi&&"content"in d)xe(d,c),d=d.content;else{var e=document.implementation.createHTMLDocument("x");
d=e.body;xe(e.body,c)}c=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(d=hi?new WeakMap:new ji;e=c.nextNode();){c:{var f=b;var g=e;var h=Uh(g);switch(h){case 3:g=Ei(f,g);break c;case 1:h=g;1==Uh(h)||Mb("Expected Node of type Element but got Node of type %s",Uh(h));g=f;f=h;if("TEMPLATE"==Th(f).toUpperCase())g=null;else{h=Th(f).toUpperCase();if(h in g.C)var m=null;else g.j[h]?m=document.createElement(h):(m=zg(document,"SPAN"),g.u&&Ph(m,"data-sanitizer-original-tag",
h.toLowerCase()));if(m){var q=m,r=Oh(f);if(null!=r)for(var z=0;h=r[z];z++)if(h.specified){var D=g;var C=f,K=h,T=K.name;if(rd(T,"data-sanitizer-"))D=null;else{var da=Th(C);K=K.value;var Ka={tagName:ud(da).toLowerCase(),attributeName:ud(T).toLowerCase()},fb={ou:void 0};"style"==Ka.attributeName&&(fb.ou=Qh(C));C=Di(da,T);C in D.g?(D=D.g[C],D=D(K,Ka,fb)):(T=Di(null,T),T in D.g?(D=D.g[T],D=D(K,Ka,fb)):D=null)}null!==D&&Ph(q,h.name,D)}g=m}else g=null}break c;default:mg(ki,"Dropping unknown node type: "+
h),g=null}}if(g){if(1==Uh(g)&&d.set(e,g),e=Vh(e),f=!1,e)h=Uh(e),m=Th(e).toLowerCase(),q=Vh(e),11!=h||q?"body"==m&&q&&(h=Vh(q))&&!Vh(h)&&(f=!0):f=!0,h=null,f||!e?h=a:1==Uh(e)&&(h=d.get(e)),h.content&&(h=h.content),h.appendChild(g)}else Ag(e)}d.clear&&d.clear();b=a}else b=zg(document,"SPAN");0<Oh(b).length&&(a=zg(document,"SPAN"),a.appendChild(b),b=a);b=(new XMLSerializer).serializeToString(b);b=b.slice(b.indexOf(">")+1,b.lastIndexOf("</"))}else b="";return se(b,null)};if("undefined"!=typeof angular){var Gi=angular.module("chrome_18n",[]);chrome.runtime&&chrome.runtime.getManifest&&chrome.runtime.getManifest().default_locale&&Gi.directive("angularMessage",function(){return{restrict:"E",replace:!0,controller:["$scope",function(a){var b=this;this.qk=this.sh=null;a.dirForText=function(c){b.sh||(b.sh=chrome.i18n.getMessage("@@bidi_dir")||"ltr");b.qk||(b.qk=new Eg("rtl"==b.sh));var d=b.qk,e,f=e=0,g=!1;c=(c||"").split(hd);for(var h=0;h<c.length;h++){var m=c[h];fd.test(m)?
(e++,f++):gd.test(m)?g=!0:ed.test(m)?f++:id.test(m)&&(g=!0)}e=0==f?g?1:0:.4<e/f?-1:1;return-1==(0==e?d.g:e)?"rtl":"ltr"}}],compile:function(a,b){b=b.key;var c=null,d=document.createElement("amr");b&&!b.match(/^\d+$/)&&(b=chrome.i18n.getMessage(b),null==b&&d.setAttribute("id","missing"));if(b){var e=chrome.i18n.getMessage(b+"_ph");c=[];if(null!=e)for(c=e.split("\ue000"),e=0;e<c.length;++e)c[e]=c[e].replace(/^{{(.*)}}$/,'<amrp dir="{{dirForText($1)}}">{{$1}}</amrp>');c=chrome.i18n.getMessage(b,c)}else d.setAttribute("r",
"nokey");c?ye(d,Fi(c)):(d.setAttribute("tl","false"),ye(d,Fi(a.html())));a.replaceWith(d)}}})};var Ii=function(a,b){var c=this;this.m=b;this.g=a;this.g.top=a;this.s=[];this.l=!1;this.h=new Gg;this.g.videoSmoothnessRatings=this.Fm(Rg,Mg,Ng,Og,Pg,Qg);this.g.videoQualityRatings=this.Fm(Rg,Sg,Tg,Ug,Vg,Wg);this.g.audioQualityRatings=this.Fm(Rg,Xg,Yg,Zg,$g,ah);this.s=[{value:"Bug",desc:Hg},{value:"FeatureRequest",desc:Ig},{value:"MirroringQuality",desc:Jg},{value:"Discovery",desc:Kg},{value:"Other",desc:Lg}];this.g.feedbackTypes=this.s;this.g.includeFineLogs=!0;this.g.feedbackType="Bug";this.g.sendFeedback=
this.zz.bind(this);this.g.cancel=this.eu.bind(this);this.g.attachLogsClick=this.C.bind(this);this.g.viewLogs=this.D.bind(this);this.g.$watchGroup("videoSmoothness videoQuality audioQuality feedbackDescription comments feedbackType".split(" "),this.iu.bind(this));this.g.sufficientFeedback=!1;this.g.$watch("attachLogs",this.C.bind(this));this.g.attachLogs=!0;this.u=Ee();this.g.userEmail="";chrome.identity.getProfileUserInfo(function(d){c.g.userEmail=d.email;Hi(c)});this.g.yourAnswerText=kh;this.g.language=
chrome.i18n&&chrome.i18n.getUILanguage?chrome.i18n.getUILanguage():chrome.runtime.getManifest().default_locale;this.g.requestLogsInProgress=!1;this.g.mrVersion=chrome.runtime.getManifest().version};k=Ii.prototype;k.Fm=function(a){for(var b=[],c=1;c<arguments.length;c++)b.push(new Ji(c,arguments[c]));b.push(new Ji(0,arguments[0]));return b};k.eu=function(){this.g.feedbackDescription&&!confirm(bh)||window.close()};
k.iu=function(){var a=this.g.feedbackType;this.g.sufficientFeedback="MirroringQuality"==a?this.g.videoSmoothness||this.g.videoQuality||this.g.audioQuality||this.g.comments:"Discovery"==a?this.g.visibleInSetup||this.g.comments:!!this.g.feedbackDescription};
k.zz=function(){if(this.g.sufficientFeedback){var a=this.g.feedbackType,b="";"MirroringQuality"==a?(this.g.videoSmoothness&&(b+="\nVideo Smoothness: "+this.g.videoSmoothness),this.g.videoQuality&&(b+="\nVideo Quality: "+this.g.videoQuality),this.g.audioQuality&&(b+="\nAudio: "+this.g.audioQuality),this.g.projectedContentUrl&&(b+="\nProjected Content/URL: "+this.g.projectedContentUrl),this.g.comments&&(b+="\nComments: "+this.g.comments)):"Discovery"==a?(this.g.visibleInSetup&&(b+="\nChromecast Visible in Setup: "+
this.g.visibleInSetup),this.g.hasNetworkSoftware&&(b+="\nUsing VPN/proxy/firewall/NAS Software: "+this.g.hasNetworkSoftware),this.g.networkDescription&&(b+="\nNetwork Description: "+this.g.networkDescription),this.g.comments&&(b+="\nComments: "+this.g.comments)):b=this.g.feedbackDescription;a="Type: "+a+"\n\n"+b;this.g.sendDialogText=ch;this.g.okButton=jh;this.g.feedbackSent=!1;this.m.show({locals:{rP:this.g.feedbackSent,bQ:this.g.sendDialogText,Lx:this.g.okButton},scope:this.g,preserveScope:!0,bindToController:!0,
template:'<md-dialog id="feedback-confirmation"><md-dialog-content><div id="send-feedback-text">{{sendDialogText}}</div><md-dialog-actions><md-button class="md-raised md-primary"ng-disabled="!feedbackSent" ng-click="closeWindow()">{{okButton}}</md-button></md-dialog-actions></md-dialog-content></md-dialog>',controller:this.j});this.Cq(a,Date.now())}};k.Cq=function(a,b){var c=Date.now();!this.g.requestLogsInProgress||5E3<c-b?Ki(this,a):setTimeout(this.Cq.bind(this),1E3,a,b)};
var Ki=function(a,b){var c=0,d=function(f,g,h){h?f(!0):(a.g.sendDialogText=fh,Hi(a),g(Error("Failed to send")))},e=chrome.declarativeWebRequest?"MrTeamfood":"MRStable";(new yf(function(){c++;return new Promise(function(f,g){var h=a.g.userEmail,m=a.h;f=d.bind(null,f,g);g=chrome.runtime.getManifest();Fg({productId:85561,bucket:e,flow:"submit",serverUri:"https://www.google.com/tools/feedback",allowNonLoggedInFeedback:!0,locale:g.default_locale,enableAnonymousFeedback:!h,report:{description:b},callback:f},
{version:g.version,description:g.description,user_email:h||"NA",logs:m.Tc||"NA",external_logs:m.g||"NA",device_model:m.modelName||"NA",receiver_version:m.u||"NA",dash_report_url:m.l||"NA",cast_device_counts:m.h,dial_device_counts:m.j,mirroring_service_enabled:m.C,native_cast_mrp_enabled:m.m,native_dial_mrp_enabled:m.s})})},1E4,4)).start().then(function(){zb("MediaRouter.Ui.Action.Feedback");a.g.sendDialogText=eh;a.g.feedbackSent=!0;Hi(a)},function(){a.g.sendDialogText=dh;a.g.feedbackSent=!0;Hi(a)})};
Ii.prototype.C=function(){var a=this;this.h=new Gg;this.g.attachLogs&&(this.g.requestLogsInProgress=!0,chrome.runtime.sendMessage(new Jf(this.u,"retrieve_log_data"),function(b){a.g.requestLogsInProgress=!1;a.h.Tc=b.logs||"no extension";a.h.Tc+="\n";a.h.Tc+=b.mediaSinkServiceStatus||"no media sink service status from browser";a.h.Tc+="\n";a.h.Tc+=b.mediaRouterLogs||"no Media Router logs from the browser";b.castStreamingLogs&&(a.h.l=b.castStreamingLogs);b.castDeviceCounts&&(a.h.h=b.castDeviceCounts);
b.dialDeviceCounts&&(a.h.j=b.dialDeviceCounts);a.h.C=!!b.mirroringServiceEnabled;a.h.m=!!b.nativeCastMrpEnabled;a.h.s=!!b.nativeDialMrpEnabled;if(b=b.device)if(b.model&&(a.h.modelName=b.model),b.version&&(a.h.u=b.version),!a.l){var c=Ee();a.l=!0;a.h.g=Ff(b.ip,c,a.F.bind(a))}}))};
Ii.prototype.D=function(){this.g.logs=this.h.Tc;this.g.logsHeader=gh;this.g.sendLogs=hh;this.g.fineLogsWarning=ih;this.g.okButton=jh;this.m.show({locals:{cP:this.g.attachLogs,Tc:this.g.logs,zP:this.g.includeFineLogs,PP:this.g.logsHeader,cQ:this.g.sendLogs,tP:this.g.fineLogsWarning,Lx:this.g.okButton},scope:this.g,preserveScope:!0,bindToController:!0,clickOutsideToClose:!0,template:'<md-dialog><md-dialog-content id="logs-dialog"><div class="subheading">{{logsHeader}}</div><div ng-show="includeFineLogs && attachLogs"id="feedback-fine-log-warning" class="informative">{{fineLogsWarning}}</div><pre>{{logs}}</pre><div class="send-logs"><md-checkbox type="checkbox" ng-model="attachLogs"ng-change="attachLogsClick()"><span>{{sendLogs}}</span></md-checkbox></div><md-dialog-actions><md-button class="md-raised md-primary"ng-click="closeDialog()">{{okButton}}</md-button></md-dialog-actions></md-dialog-content></md-dialog>',
controller:this.j})};Ii.prototype.F=function(a,b){this.l=!1;this.h.g="error"==a?"":b;this.g.attachLogs||(this.h.g="");Hi(this)};var Hi=function(a){a.g.$$phase||a.g.$apply()};Ii.prototype.j=function(a,b){a.closeWindow=function(){window.close()};a.closeDialog=function(){b.hide()}};Ii.prototype.j.$inject=["$scope","$mdDialog"];var Ji=function(a,b){this.id=a;this.desc=b;this.text=0==a?b:a+" ("+b+")"};
angular.module("feedbackApp","chrome_18n material.components.button material.components.checkbox material.components.dialog material.components.input material.components.radioButton".split(" ")).controller("FeedbackCtrl",["$scope","$mdDialog",Ii]);v("ng.safehtml.googSceHelper.isGoogHtmlType",function(a){return a&&a.Sd?!0:!1});v("ng.safehtml.googSceHelper.isCOMPILED",function(){return!0});v("ng.safehtml.googSceHelper.unwrapAny",function(a){if(a instanceof kd)return ld(a).toString();if(a instanceof qe)return re(a).toString();if(a instanceof Hd)return Id(a);if(a instanceof Pd)return Qd(a);if(a instanceof cd)return dd(a).toString();throw Error();});
v("ng.safehtml.googSceHelper.unwrapGivenContext",function(a,b){if("html"==a)return re(b).toString();if("resourceUrl"==a||"templateUrl"==a)return ld(b).toString();if("url"==a)return b instanceof kd?ld(b).toString():Id(b);if("css"==a)return Qd(b);if("js"==a)return dd(b).toString();throw Error();});
