forked from Harry-zklcdc/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.html
29 lines (28 loc) · 250 KB
/
compose.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html><html dir="ltr" lang="zh" xml:lang="zh" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/Web/"><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" >//<![CDATA[
si_ST=new Date
//]]></script><head><!--pc--><title>BingAI - 撰写</title><meta content="text/html; charset=utf-8" http-equiv="content-type" /><meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><meta name="referrer" content="origin-when-cross-origin" /><link href="/sa/simg/favicon-trans-bg-blue-mg.ico" data-orighref="" rel="icon" /><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
_G={Region:"KR",Lang:"zh-CN",ST:(typeof si_ST!=='undefined'?si_ST:new Date),Mkt:"zh-CN",RevIpCC:"kr",RTL:false,Ver:"32",IG:"F5B81AE0ED1B4E748232C02FD9D9B192",EventID:"64c888bffd8344b2bc310dfaeb5bee42",V:"underside",P:"UNSP",DA:"PUSE01",SUIH:"XZfnn4qzd4TCpeFdbrbFmw",adc:"b_ad",EF:{cookss:1,bmcov:1,crossdomainfix:1,bmasynctrigger:1,bmasynctrigger3:1,newtabsloppyclick:1,chevroncheckmousemove:1},gpUrl:"\/fd\/ls\/GLinkPing.aspx?" }; _G.lsUrl="/fd/ls/l?IG="+_G.IG ;curUrl="https:\/\/edgeservices.bing.com\/edgesvc\/compose";_G.XLS="\/web\/xls.aspx";function si_T(a){ if(document.images){_G.GPImg=new Image;_G.GPImg.src=_G.gpUrl+'IG='+_G.IG+'&'+a;}return true;}_G.CTT="3000";;var _w=window,_d=document,sb_de=_d.documentElement,sb_ie=!1,sb_i6=!1,_ge=function(n){return _d.getElementById(n)},_qs=function(n,t){return t=typeof t=="undefined"?_d:t,t.querySelector?t.querySelector(n):null},sb_st=function(n,t){return setTimeout(n,t)},sb_rst=sb_st,sb_ct=function(n){clearTimeout(n)},sb_gt=function(){return(new Date).getTime()},sj_gx=function(){return new XMLHttpRequest};_w.sj_ev=function(n){return n};_w.sj_ce=function(n,t,i){var r=_d.createElement(n);return t&&(r.id=t),i&&(r.className=i),r};_w.sj_cook=new function(){function u(){var n=location.protocol==="https:";return n?";secure":""}function f(){return _G!==undefined&&_G.EF!==undefined&&_G.EF.cookss!==undefined&&_G.EF.cookss===1}var n=this,t=!1,i=new Date(0).toGMTString(),r;try{r=_d.cookie}catch(e){t=!0}n.get=function(n,i){var r,u;return t?null:(r=_d.cookie.match(new RegExp("\\b"+n+"=[^;]+")),i&&r)?(u=r[0].match(new RegExp("\\b"+i+"=([^&]*)")),u?u[1]:null):r?r[0]:null};n.set=function(i,r,e,o,s,h,c){var v,l,a,y,b;if(!t){l=r+"="+e;a=n.get(i);a?(y=n.get(i,r),v=y?a.replace(r+"="+y,l):a+"&"+l):v=i+"="+l;var p=location.hostname.match(/([^.]+\.[^.]*)$/),k=h&&h>0?h*6e4:63072e6,d=new Date((new Date).getTime()+Math.min(k,63072e6)),w="";f()&&(b=u(),w=b+(c?";SameSite="+c:";SameSite=None"));_d.cookie=v+(p?";domain="+p[0]:"")+(o?";expires="+d.toGMTString():"")+(s?";path="+s:"")+w}};n.clear=function(n){if(!t){var u=n+"=",r=location.hostname.match(/([^.]+\.[^.]*)$/);_d.cookie=u+(r?";domain="+r[0]:"")+";expires="+i}}};_w.sk_merge||(_w.sk_merge=function(n){_d.cookie=n});var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(n){if(n){if(n)return u(n)}else{if(!f){for(var r in t)u(r);f=!0}return i}}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw"invalid usage";else if(f.length>2)for(s=f.slice(2,f.length),e=0;e<s.length;e++)c.push(u(s[e]));return l.apply(this,c),i[n]=o,o}}var t={},i={},f=!1;n.define=e;n.require=r})(amd||(amd={}));define=amd.define;require=amd.require;function lb(){_w.si_sendCReq&&sb_st(_w.si_sendCReq,800);_w.lbc&&_w.lbc()};define("shared",["require","exports"],function(n,t){function s(n,t){for(var r=n.length,i=0;i<r;i++)t(n[i])}function r(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return function(){n.apply(null,i)}}function u(n){i&&event&&(event.returnValue=!1);n&&typeof n.preventDefault=="function"&&n.preventDefault()}function f(n){i&&event&&(event.cancelBubble=!0);n&&typeof n.stopPropagation=="function"&&n.stopPropagation()}function e(n,t,i){for(var r=0;n&&n.offsetParent&&n!=(i||document.body);)r+=n["offset"+t],n=n.offsetParent;return r}function o(){return(new Date).getTime()}function h(n){return i?event:n}function c(n){return i?event?event.srcElement:null:n.target}function l(n){return i?event?event.fromElement:null:n.relatedTarget}function a(n){return i?event?event.toElement:null:n.relatedTarget}function v(n,t,i){while(n&&n!=(i||document.body)){if(n==t)return!0;n=n.parentNode}return!1}function y(n){window.location.href=n}function p(n,t){n&&(n.style.filter=t>=100?"":"alpha(opacity="+t+")",n.style.opacity=t/100)}t.__esModule=!0;t.getTime=t.getOffset=t.stopPropagation=t.preventDefault=t.wrap=t.forEach=void 0;var i=sb_ie;t.forEach=s;t.wrap=r;t.preventDefault=u;t.stopPropagation=f;t.getOffset=e;t.getTime=o;window.sj_b=document.body;window.sb_de=document.documentElement;window.sj_wf=r;window.sj_pd=u;window.sj_sp=f;window.sj_go=e;window.sj_ev=h;window.sj_et=c;window.sj_mi=l;window.sj_mo=a;window.sj_we=v;window.sb_gt=o;window.sj_so=p;window.sj_lc=y});define("env",["require","exports","shared"],function(n,t,i){function v(n,t){return t.length&&typeof n=="function"?function(){return n.apply(null,t)}:n}function y(n,t){var e=[].slice.apply(arguments).slice(2),i=v(n,e),u;return typeof i=="function"&&(u=window.setImmediate&&!window.setImmediate.Override&&(!t||t<=16)?"i"+setImmediate(i):o(i,t),f[r]=u,r=(r+1)%a),u}function p(n,t){var r=[].slice.apply(arguments).slice(2),i=l(v(n,r),t);return e[u]=i,u=(u+1)%a,i}function w(){h.forEach(f,s);h.forEach(e,window.clearInterval);r=u=e.length=f.length=0}function s(n){n!=null&&(typeof n=="string"&&n.indexOf("i")===0?window.clearImmediate(parseInt(n.substr(1),10)):c(n))}var h=i,f=[],e=[],o,c,l,a=1024,r=0,u=0;o=window.setTimeout;t.setTimeout=y;l=window.setInterval;t.setInterval=p;t.clear=w;c=window.clearTimeout;t.clearTimeout=s;window.sb_rst=o;window.setTimeout=window.sb_st=y;window.setInterval=window.sb_si=p;window.clearTimeout=window.sb_ct=s});define("event.custom",["require","exports","shared","env"],function(n,t,i,r){function f(n){return u[n]||(u[n]=[])}function e(n,t){n.d?l.setTimeout(c.wrap(n,t),n.d):n(t)}function v(n,t,i){var r,f;for(r in u)f=i?t&&r.indexOf(t)===0:!(r.indexOf(a)===0)&&!(t&&r.indexOf(t)===0)&&!(n!=null&&n[r]!=null),f&&delete u[r]}function o(n){for(var t=f(n),u=t.e=arguments,i,r=0;r<t.length;r++)if(t[r].alive)try{e(t[r].func,u)}catch(o){i||(i=o)}if(i)throw i;}function s(n,t,i,r){var u=f(n);t&&(t.d=r,u.push({func:t,alive:!0}),i&&u.e&&e(t,u.e))}function h(n,t){for(var i=0,r=u[n];r&&i<r.length;i++)if(r[i].func==t&&r[i].alive){r[i].alive=!1;break}}var c=i,l=r,u={},a="ajax.";t.reset=v;t.fire=o;t.bind=s;t.unbind=h;_w.sj_evt={bind:s,unbind:h,fire:o}});define("event.native",["require","exports"],function(n,t){function r(n,t,r,u){var f=n===window||n===document||n===document.body;n&&(f&&t=="load"?i.bind("onP1",r,!0):f&&t=="unload"?i.bind("unload",r,!0):n.addEventListener?n.addEventListener(t,r,u):n.attachEvent?n.attachEvent("on"+t,r):n["on"+t]=r)}function u(n,t,r,u){var f=n===window||n===document||n===document.body;n&&(f&&t=="load"?i.unbind("onP1",r):f&&t=="unload"?i.unbind("unload",r):n.removeEventListener?n.removeEventListener(t,r,u):n.detachEvent?n.detachEvent("on"+t,r):n["on"+t]=null)}t.__esModule=!0;t.unbind=t.bind=void 0;var i=n("event.custom");t.bind=r;t.unbind=u;window.sj_be=r;window.sj_ue=u});define("dom",["require","exports"],function(n,t){function f(n,t){function s(n,t,r,f){r&&u.unbind(r,f,s);c.bind("onP1",function(){if(!n.l){n.l=1;var r=i("script");r.setAttribute("data-rms","1");r.src=(t?"/fd/sa/"+_G.Ver:"/sa/"+_G.AppVer)+"/"+n.n+".js";_d.body.appendChild(r)}},!0,5)}for(var f=arguments,e,o,r=2,l={n:n};r<f.length;r+=2)e=f[r],o=f[r+1],u.bind(e,o,h.wrap(s,l,t,e,o));r<3&&s(l,t)}function e(){var n=_d.getElementById("ajaxStyles");return n||(n=_d.createElement("div"),n.id="ajaxStyles",_d.body.insertBefore(n,_d.body.firstChild)),n}function l(n){var t=i("script");t.type="text/javascript";t.text=n;t.setAttribute("data-bing-script","1");document.body.appendChild(t);r.setTimeout(function(){document.body.removeChild(t)},0)}function a(n){var t=i("script");t.type="text/javascript";t.src=n;t.setAttribute("crossorigin","anonymous");t.onload=r.setTimeout(function(){document.body.removeChild(t)},0);document.body.appendChild(t)}function o(n){var t=s("ajaxStyle");t||(t=i("style"),t.setAttribute("data-rms","1"),t.id="ajaxStyle",e().appendChild(t));t.textContent!==undefined?t.textContent+=n:t.styleSheet.cssText+=n}function v(n,t){for(var i=Element.prototype,r=i.matches||i.msMatchesSelector;n!=null;){if(r.call(n,t))return n;n=n.parentElement}return null}function s(n){return _d.getElementById(n)}function i(n,t,i){var r=_d.createElement(n);return t&&(r.id=t),i&&(r.className=i),r}t.__esModule=!0;t.includeCss=t.includeScriptReference=t.includeScript=t.getCssHolder=t.loadJS=void 0;var r=n("env"),h=n("shared"),u=n("event.native"),c=n("event.custom");t.loadJS=f;t.getCssHolder=e;t.includeScript=l;t.includeScriptReference=a;t.includeCss=o;_w._ge=s;_w.sj_ce=i;_w.sj_jb=f;_w.sj_ic=o;_w.sj_fa=v});define("cookies",["require","exports"],function(n,t){function a(){var n=location.protocol==="https:";return n?";secure":""}function v(){return typeof _G!="undefined"&&_G.EF!==undefined&&_G.EF.cookss!==undefined&&_G.EF.cookss===1}function f(){var n=location.hostname.match(/([^.]+\.[^.]*)$/);return n?";domain="+n[0]:""}function e(n,t,i,r,u){var s=f(),h=r&&r>0?r*6e4:63072e6,c=new Date((new Date).getTime()+Math.min(h,63072e6)),e="",o;v()&&(o=a(),e=o+(u?";SameSite="+u:";SameSite=None"));document.cookie=n+s+(t?";expires="+c.toGMTString():"")+(i?";path="+i:"")+e}function o(n,t,r,u,f){if(!i){var o=n+"="+t;e(o,r,u,f)}}function s(){return!i}function r(n,t){var r,u;return i?null:(r=document.cookie.match(new RegExp("\\b"+n+"=[^;]+")),t&&r)?(u=r[0].match(new RegExp("\\b"+t+"=([^&]*)")),u?u[1]:null):r?r[0]:null}function h(n,t,u,f,o,s){var l,h,c,a;i||(h=t+"="+u,c=r(n),c?(a=r(n,t),l=a?c.replace(t+"="+a,h):c+"&"+h):l=n+"="+h,e(l,f,o,s))}function c(n,t){if(!i){var r=n+"=",e=f();document.cookie=r+e+";expires="+u+(t?";path="+t:"")}}var i,u,l;t.__esModule=!0;t.clear=t.set=t.get=t.areCookiesAccessible=t.setNoCrumbs=void 0;i=!1;u=new Date(0).toGMTString();try{l=document.cookie}catch(y){i=!0}t.setNoCrumbs=o;t.areCookiesAccessible=s;t.get=r;t.set=h;t.clear=c;window.sj_cook={get:r,set:h,setNoCrumbs:o,clear:c,areCookiesAccessible:s}});var sj_anim=function(n){var s=25,t=this,c,u,h,f,e,o,l,i,r;t.init=function(n,s,a,v,y){if(c=n,e=s,o=a,l=v,r=y,v==0){f=h;r&&r();return}i||(i=e);u||t.start()};t.start=function(){h=sb_gt();f=Math.abs(o-i)/l*s;u=setInterval(t.next,s)};t.stop=function(){clearInterval(u);u=0};t.next=function(){var u=sb_gt()-h,s=u>=f;i=e+(o-e)*u/f;s&&(t.stop(),i=o);n(c,i);s&&r&&r()};t.getInterval=function(){return s}};var sj_fader=function(){return new sj_anim(function(n,t){sj_so(n,t)})};sj_fade=new function(){function n(n,t,i,r,u,f,e){var o=n.fader;if(o){if(e==n.fIn)return}else o=sj_fader(),n.fader=o;u&&u();o.init(n,t,i,r,f);n.fIn=e}this.up=function(t,i,r){function u(){t.style.visibility="visible"}n(t,0,100,i,u,r,1)};this.down=function(t,i,r){function u(){t.style.visibility="hidden";r&&r()}n(t,100,0,i,0,u,0)}};
//]]></script><style type="text/css">#b_header #id_h{content-visibility:hidden}#b_results>.b_ans:not(.b_top):nth-child(n+5) .rqnaContainerwithfeedback #df_listaa{content-visibility:auto;contain-intrinsic-size:648px 205px}#b_results>.b_algo:not(.b_algoBorder):nth-child(n+5)>h2{content-visibility:auto;contain-intrinsic-size:608px 24px}#b_results>.b_algo:not(.b_algoBorder):nth-child(n+5) .b_caption:not(.b_rich):not(.b_capmedia):not(.b_snippetgobig):not(.rebateContent){content-visibility:auto;contain-intrinsic-size:608px 65px;padding-right:16px;margin-right:-16px;margin-left:-16px;padding-left:16px}#b_results>.b_algo:not(.b_algoBorder):nth-child(n+5) .b_caption.b_rich .captionMediaCard .wide_wideAlgo{content-visibility:auto;contain-intrinsic-size:370px 120px}#b_results>.b_algo:not(.b_algoBorder):nth-child(n+5) .scs_icn{content-visibility:auto}#b_results>.b_ans:nth-child(n+7) .b_rs:not(.pageRecoContainer){content-visibility:auto;contain-intrinsic-size:608px 296px}#b_results>.b_ans:nth-child(n+7) .b_rs:not(.pageRecoContainer) .b_rsv3{padding-bottom:1px}#b_results>.b_pag{content-visibility:auto;contain-intrinsic-size:628px 45px}#b_footer>#b_footerItems{content-visibility:auto;contain-intrinsic-size:1px 24px}.cnt_vis_hid{content-visibility:hidden}.sw_plus,.sw_up,.sw_down,.sw_st,.sw_sth,.sw_ste,.sb_pagIconN,.sb_pagIconP{display:inline-block;overflow:hidden;direction:ltr}.sw_plus:after,.sw_up:after,.sw_down:after,.sw_st:after,.sw_sth:after,.sw_ste:after,.sb_pagIconN:after,.sb_pagIconP:after{display:inline-block;-webkit-transform:scale(.5,.5);transform:scale(.5,.5)}.sw_plus{height:10px;width:10px}.sw_plus:after{-webkit-transform-origin:-216px 0;transform-origin:-216px 0}.sw_play,.sb_pagIconN,.sb_pagIconP{height:16px;width:16px}.sw_st,.sw_sth,.sw_ste,.sw_up,.sw_down{height:14px;width:14px}.sw_down:after{-webkit-transform-origin:-216px -36px;transform-origin:-216px -36px}.sw_up:after{-webkit-transform-origin:-252px -36px;transform-origin:-252px -36px}.sw_st:after{-webkit-transform-origin:-84px -44px;transform-origin:-84px -44px}.sw_sth:after{-webkit-transform-origin:-148px -44px;transform-origin:-148px -44px}.sw_ste:after{-webkit-transform-origin:-116px -44px;transform-origin:-116px -44px}.sb_pagIconN:after{-webkit-transform-origin:-304px 0;transform-origin:-304px 0}.sb_pagIconP:after{-webkit-transform-origin:-268px 0;transform-origin:-268px 0}#b_results a.sb_pagN,#b_results a.sb_pagP{padding-bottom:5px}.b_pag .b_roths{transform:rotate(180deg)}@media(prefers-color-scheme:dark){#bpage.b_med .sb_pagIconN:after{-webkit-transform-origin:-672px 0;transform-origin:-672px 0}#bpage.b_med .sb_pagIconP:after{-webkit-transform-origin:-636px 0;transform-origin:-636px 0}}#bpage.b_drk .sb_pagIconN:after{-webkit-transform-origin:-672px 0;transform-origin:-672px 0}#bpage.b_drk .sb_pagIconP:after{-webkit-transform-origin:-636px 0;transform-origin:-636px 0}.sw_plus:after,.sw_up:after,.sw_down:after,.sw_st:after,.sw_sth:after,.sw_ste:after,.sb_pagIconN:after,.sb_pagIconP:after{content:url(/rp/zqevIHPXiJ56irrKy-KTd5KkVvU.png)}@media screen and (-ms-high-contrast:active){*{background-color:Window}*:not(a){color:WindowText}a *:not(a){color:-ms-hotlight;color:LinkText}a[disabled],a[disabled] *{color:GrayText}}.siz12{width:12px;height:12px}.siz16{width:16px;height:16px}.siz20{width:20px;height:20px}.siz24{width:24px;height:24px}.siz28{width:28px;height:28px}.siz48{width:48px;height:48px}:root{--htmlbk:#f5f5f5;--htmlbk2:#fff;--canvasbk:#f9f9f9;--canvasbk2:#fff;--canvasbk3:#f5f5f5;--cardsbk:#f5f5f5;--cardsbk2:#fff;--canvasbkf7:#f7f7f7;--promtxt:#111;--promtxt000:#000;--primtxt:#444;--primtxt4a:#4a4a4a;--primtxt40:#404040;--regtxt:#666;--sectxt:#767676;--opttxt:#919191;--distxt:#ccc;--tealcol:#00809d;--brtealcol:#0c8484;--actbrdcol:#ccc;--actbrdcol2:#cdcdcd;--brdcol:#ddd;--secbrdcol:#ececec;--secbrdcolee:#eee;--secbrdcole1:#e1e1e1;--secbrdcole5:#e5e5e5;--alinkcol:#4007a2;--alinkcol2:#001ba0;--alinkvcol:#4007a2;--greencol:#006d21;--greenattrcol:#006d21;--citcol:#006621;--redcol:#c80000;--alrtcol:#d90026;--poscol:#006d21;--negcol:#c80000;--tealbtncol:#fff;--tealbtnbk:#106ebe;--bluebtncol:#fff;--bluebtnbk:#106ebe}html,body,#b_results>.b_pag{background-color:var(--htmlbk);color:var(--regtxt)}.b_subModule,.b_suppModule{border-bottom-color:var(--htmlbk)}.b_secondaryFocus,.b_corActList,.b_corActList a,.b_corActList a:visited{color:var(--primtxt)}select,input[type="text"]{color:#444;border-color:#ddd}select:hover,input[type="text"]:hover{box-shadow:0 1px 2px 0 rgba(0,0,0,.1)}select:focus,input[type="text"]:focus{border-color:#919191;box-shadow:0 1px 2px 0 rgba(0,0,0,.1)}.b_algo .b_factrow,.b_promoteText,#b_results,#b_results .b_defaultText,.cbl{color:var(--regtxt)}#b_results ::placeholder,.b_factrow,.b_attribution,.b_focusLabel,.b_secondaryText,.b_demoteText,.b_footnote,.b_footnote .cbl,.b_entitySubTitle,#b_results p.b_secondaryText,#b_content .b_imagePair .b_footnote a,#b_content .b_imagePair .b_footnote a:visited,#b_content .b_floatR_img .b_footnote a,#b_content .b_floatR_img .b_footnote a:visited,.sb_meta,label{color:var(--sectxt)}#b_results input[type="text"]:disabled{color:var(--distxt)}#b_pole .b_ans,.b_pag a.sb_pagS,#b_results>li,#b_content>.sml{background-color:var(--canvasbk2)}#b_results>.b_ad{color:var(--regtxt);background-color:var(--adstbk)}#b_results p,#b_results .b_richcard .b_vList.b_divsec{color:var(--partxtcol)}a,#b_results .b_no a,#b_results .b_pag a,#b_results>.b_ad a{color:var(--alinkcol)}a:visited,#sb_feedback:visited,#b_results>.b_ad a:visited{color:var(--alinkvcol)}cite,#b_results cite.sb_crmb a,#b_results cite a.sb_metalink,#b_results .b_adurl cite a,#bk_wr_container cite a{color:var(--citcol)}.b_touchable,.b_touchable>li{border-color:var(--tchsep)}#b_results .b_pAlt,.b_alert,#b_results .b_no .b_alert,#b_results .b_alert{color:var(--alrtcol)}.pushpin{background:#49f;color:#fff}.redPushpin{background:#d31100}#bpage #b_header .b_posText,#bpage #b_content .b_posText,.b_posText{color:var(--poscol)}#bpage #b_header .b_negText,#bpage #b_content .b_negText,.b_negText{color:var(--negcol)}:root{--adstbk:#f9fcf7;--tchsep:#eee;--partxtcol:var(--regtxt)}@media(prefers-color-scheme:dark){#bpage.b_med{--adstbk:#1b1a19;--tchsep:#3b3a39;--partxtcol:#edebe9}}#bpage.b_drk{--adstbk:#1b1a19;--tchsep:#3b3a39;--partxtcol:#edebe9}#b_content .b_ans,#b_content .b_ans p,#b_content .b_ans .cbl{color:var(--primtxt)}z{a:1}z{a:1}h3,h4,h5{font:inherit;font-size:100%}body{font-family:"-apple-system",HelveticaNeue,Roboto,Arial,sans-serif;font-weight:normal;font-size:14px;line-height:18px}cite{font-style:normal}.b_strong,strong,.b_no h4{font-weight:700;font-family:"-apple-system",HelveticaNeue,Roboto,Arial,sans-serif}h1,h2,.b_focusLabel,.b_secondaryFocus,.b_groupLabel{font-size:18px;line-height:22px;font-weight:normal}h2.b_topTitle{font-size:20px;line-height:24px;padding-bottom:2px}.b_anno{font-size:20px;line-height:24px;font-weight:normal}select,.cbtn input,.s_btn.b_highlighted a,input[type="text"]{font-size:14px}#fti3,.sb_count{font-size:12px;line-height:14px}.ftr_ans,#ftrLnks,#id_rwds_b{font-size:13px;line-height:16px}.b_mText{font-size:16px;line-height:22px}.b_xlText{font-size:18px}.b_secondaryFocus,.b_focusTextExtraSmall{font-size:18px;line-height:22px}.b_focusTextSmall{font-size:23px;line-height:28px;font-family:"-apple-system",HelveticaNeue,Roboto,Arial,sans-serif}.b_focusTextMedium{font-size:32px;line-height:38px;font-family:"-apple-system",HelveticaNeue,Roboto,Arial,sans-serif}.b_focusTextLarge{font-size:44px;line-height:53px;font-family:"-apple-system",HelveticaNeue,Roboto,Arial,sans-serif}.b_smText,.b_footnote{font-size:12px;line-height:15px}cite,.nowrap{white-space:nowrap}a,#b_results .b_rs li a{text-decoration:none}th{font-weight:normal}.pushpin{font-weight:700;font-size:12px}.b_ad{line-height:18px}.b_prominentFocusLabel{font-size:18px}.b_groupLabel{font-size:14px;line-height:20px;color:var(--primtxt);text-transform:uppercase;font-weight:bold}html,body,h1,h2,h3,h4,h5,h6,p,img,ol,ul,li,form,table,tr,th,td,blockquote{border:0;border-collapse:collapse;border-spacing:0;list-style:none;margin:0;padding:0}html{overflow-y:scroll}body{word-wrap:break-word;overflow-x:hidden;-webkit-text-size-adjust:none}header#b_header:not(:empty):not(.b_hide)~#b_content{margin-top:8px}.b_footnote{padding-bottom:15px}.b_imagePair .cico+.b_footnote,.b_floatR_img .b_footnote,img+.b_footnote{padding:0}.b_hList{padding-bottom:15px}select,input[type="text"]{margin:0 0 16px 0;padding:0 11px;height:38px;border-width:1px;border-style:solid;border-radius:2px}input[type="text"]{-webkit-appearance:none;max-width:100%;min-width:50%}select::-ms-expand{display:none}select{padding:0 0 0 11px;height:40px;vertical-align:middle;border:1px solid #ddd}h2,h4,label,.b_attribution,.b_sSpace,.b_label,.btns,.b_poiPair{padding-bottom:0}h2 a,h3 a,h4 a,h5 a,.b_rs a,label{display:block}.inline label{display:inline}#sp_requery a{display:inline-block}.b_focusTextLarge,.b_focusTextMedium,.b_focusTextSmall,.b_focusTextExtraSmall{padding-bottom:5px}.b_lBMargin,h2.b_entityTitle{padding-bottom:10px}.b_focusLabel,.b_secondaryFocus{padding-bottom:4px}.b_rich{padding:12px 0 15px}.b_rich>*:last-child,.b_caption>*:last-child{padding-bottom:0;margin-bottom:0}.b_caption{padding-bottom:13px}.b_factrow{display:-webkit-box;-webkit-box-orient:vertical;margin-bottom:2px}.b_attribution{width:100%}.b_attribution,.b_factrow,.b_1linetrunc{overflow:hidden;text-overflow:ellipsis}.b_1linetrunc{white-space:nowrap}.b_mBottom{padding-bottom:5px}.b_lBottom,#b_results #sp_recourse.b_lBottom{padding-bottom:10px}.b_xlBottom{padding-bottom:15px}.b_xxlBottom{padding-bottom:20px}.b_xxxlBottom{padding-bottom:25px}.b_dataList>li>*,.b_imagePair .b_attribution>*,.b_factrow>*{display:inline}.b_groupLabel{padding-bottom:3px}.b_anno{padding-bottom:20px}.b_anno+.b_rich,.b_anno+h2+.b_rich{padding-top:0}.b_vPanel>div{padding-bottom:15px}.b_vList>li{padding-bottom:13px}#b_results>li.si_pp,.sb_hbop,.b_hide,#fRmsDefer,#b_error,#b_loadingmsg{display:none}.b_rich>*:last-child,.b_rich>.b_vList:not(.b_touchable)>li:last-child,.b_rich>.b_vPanel>div:last-child,.b_vPanel .b_vList:not(.b_touchable)>li:last-child,.b_vList .b_vPanel>div:last-child,.b_hList .b_vList>li:last-child,.b_hList .b_vPanel>div:last-child,.b_vList>li>*:last-child:not(a),.b_vPanel>div>*:last-child:not(a),.b_subModule>*:last-child,.b_subModule .b_vPanel>*:last-child,.b_subModule>.b_vList:last-child>*:last-child,.b_suppModule>*:last-child,.b_suppModule .b_vPanel>*:last-child,.b_infocardContent>.b_vList:last-child>*:last-child,.b_infocardContent>*:last-child,.sa_uc>.b_vList>li:last-child,.sa_uc>.b_vList>li:last-child>.b_vList:last-child>li:last-child,.b_ans>.b_vList>li:last-child{padding-bottom:0}.b_vlist2col>ul{min-width:40%;display:inline-block;word-wrap:break-word;vertical-align:top}.b_vlist2col>ul:first-child{padding-right:30px}.b_vlist2col li{padding-bottom:12px}.b_touchable>li{border-bottom-width:1px;border-bottom-style:solid;padding-bottom:13px;margin-bottom:13px}.b_touchable>li:first-child{border-top-width:1px;border-top-style:solid;padding-top:15px}.b_rich>.b_touchable:last-child>li:last-child,.b_vPanel .b_touchable:last-child>li:last-child{margin-bottom:0}.b_hPanel>span:not(:last-child),.b_hList>li:not(:last-child){padding-right:10px}.b_hList>li{vertical-align:top}.b_hPanel.wide>span:not(:last-child){padding-right:20px}.b_suffix{padding-left:10px}.b_imagePair{padding-bottom:10px}.b_imagePair img{vertical-align:bottom}.b_float_img>*:last-child,.b_imagePair>*:last-child{overflow:hidden}.b_float_img>*:first-child,.b_imagePair>*:first-child{margin-right:10px;float:left}.b_floatR_img{float:right;padding-left:10px}.b_float_img{float:left;padding-bottom:10px}.b_float_img img{vertical-align:bottom}.b_imagePair.reverse{display:-ms-flexbox;display:-webkit-flex;display:flexbox;display:-webkit-box;display:flex}.b_imagePair.reverse>*:first-child{-o-box-flex:1;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:0 1 100%;float:none}.b_imagePair.reverse>*:last-child{-ms-flex:0 0 auto;flex:0 0 auto}.b_imagePair.reverse>*:only-child{-ms-flex:1;flex:0 1 100%;margin-right:0}.b_vmparent{display:-ms-flexbox;display:-webkit-flex;display:flexbox;display:-webkit-box;display:flex;-webkit-align-items:center;align-items:center}button,.button{border-width:3px;border-style:solid;padding:8px 18px 12px}.b_hPanel>span,.b_moreLink,.b_footnote .cico,.b_hList>li,.b_title div,.csrc{display:inline-block}.b_hPanel>span{vertical-align:middle}.b_title h2{display:inline}.b_title .b_imagePair .rms_img{margin-top:3px}.b_relative{position:relative}.b_footnote .cico{padding-left:10px}#b_error div{padding-bottom:20px}.b_mhdr h2,.b_float{float:left}.b_floatR{float:right}.b_rTxt{text-align:right}.b_cTxt{text-align:center}.b_jTxt{text-align:justify}.b_moreLink{padding-bottom:15px}.b_mhdr .b_floatR{margin-top:4px}.b_mhdr .b_moreLink{padding-bottom:0}.b_algo p,.b_ans p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:5}.imgData p,.b_hList p{-webkit-line-clamp:3}.b_factrow:after{content:""}#b_results>li,#b_pole .b_ans{padding:13px 16px;margin:0 0 1px}#b_results>li .b_fullb,#b_pole .b_ans .b_fullb{margin-left:-16px;margin-right:-16px}#b_results>.b_ans{padding-bottom:16px}#b_results>.b_algo{padding-bottom:16px}#b_results>.b_ad{padding-bottom:0}#b_results>.b_ad+.b_algo,#b_results>.b_ad+.b_ans{padding-top:12px}#b_results .b_ans+.b_ad,#b_results .b_ans+.b_algo,#b_results .b_ans+.b_ans,#b_results .b_algo+.b_ans,#b_results .b_nav+.b_algo,#b_results .b_ans+script+script+.b_ad,#b_results .b_ans+script+script+.b_algo,#b_results .b_ans+script+script+.b_ans,#b_results .b_algo+script+script+.b_ans,#b_results .b_nav+script+script+.b_algo{margin-top:0;border-top:0 solid var(--secbrdcole5)}#b_results>li>*:last-child,.b_caption>*:last-child,.vlist>li:last-child,.b_vPanel>li:last-child,.lft>*:last-child{margin-bottom:0;padding-bottom:0}#b_results>.b_pag{padding:12px 16px 16px}#b_results>li>.b_rs,#b_results>li .b_deep{margin-bottom:-12px}.b_deep li>a,.b_deep li>span>a{width:110px;text-overflow:ellipsis;display:block;white-space:nowrap;overflow:hidden}.b_rs>.b_rich{padding-bottom:0}.clrfix:after,.crch:after,.b_imagePair:not(.reverse):after,.b_clearfix:after,.sb_vdl:after{clear:both;content:'.';display:block;visibility:hidden;height:0}#ftrLnks li{display:inline-block;padding:0 20px 15px 0}#ftrLnks>*:last-child{padding-right:0}footer{padding:16px;border-top:0}table{width:100%}th,td{vertical-align:top;padding:0 0 15px 15px}th:first-child,td:first-child{padding-left:0}th{text-align:left}.b_caption>table:last-child tr:last-child td,.b_caption>.b_vPanel:last-child>div:last-child>table:last-child tr:last-child td{padding-bottom:0}#fti3{margin-bottom:10px}.b_label{padding-right:5px}.b_subModule,.b_suppModule{padding:13px 0;border-bottom-width:1px;border-bottom-style:solid}.wpc_tp .b_subModule,.wpc_tp .b_suppModule{margin-left:10px;margin-right:10px}.b_subModule h2{padding-bottom:10px}.b_subModule h2.b_headerTitle{padding-bottom:5px}.nowrap{white-space:nowrap}.pushpin{border-radius:10px;text-align:center;width:20px;height:20px;margin-top:2px;padding-bottom:0;line-height:20px}#b_results .b_no{margin-bottom:80px}.b_no h1,.b_no h4,.b_no li{padding-bottom:10px}.b_factrow .csrc{margin-right:5px}.sw_next,.sw_prev{display:none}.sb_pagIconN,.sb_pagIconP{margin-top:2px}.b_entitySubTitle{margin-top:-9px;padding-bottom:10px}#sb_dir{flex-grow:1}.b_clear{clear:both}div#b_pole{margin-bottom:4px}#b_pole .b_ans+.b_ans{margin-top:0}#bpage.b_imp1 .b_locImgMap .b_hPanel,#bpage.b_imp1 .wpc_tp .b_hPanel{min-width:393px}#bpage.b_imp1 .b_locImgMap{overflow-x:scroll}.b_imp1 #b_results>li.b_ad h2,.b_imp1 .b_algo>.b_algoheader h2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#bpage.b_imp1 th,#bpage.b_imp1 td{padding-left:8px;padding-right:0}.b_corActList{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:16px}.b_corActList li{display:-webkit-inline-flex;display:inline-flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;padding:0}.b_corActList li:only-child{-webkit-box-flex:none;-webkit-flex:none;flex:none}.b_corActList li:only-child a>*{display:inline-block;vertical-align:middle}.b_corActList li:only-child a :first-child{margin-right:8px}.b_corActList li:not(:first-child){border-left:1px solid var(--secbrdcole5)}.b_corActList a{width:100%}.b_corActList li:not(:only-child) a>:first-child{margin-left:auto;margin-right:auto;display:block;margin-bottom:8px}.b_hList.b_corActList .cico{padding:0}z{a:1}#b_content h2 strong,#b_content h3 strong,#b_content .b_caption strong{font-weight:normal}#b_content .b_caption .b_attribution strong{font-weight:700}z{a:1}z{a:1}li.b_algo .b_attribution{border-bottom:1px solid var(--brdcol);padding-bottom:0;margin-bottom:0}li.b_ad .b_attribution{border-bottom:1px solid var(--brdcol);padding-bottom:6px;margin-bottom:6px}.b_algo>.b_attribution~.b_sideBleed,.b_algo>.b_caption~.b_sideBleed{margin-top:-0}.b_algo>.b_algoheader>.b_imagePair{padding-bottom:0}.b_algo>.b_algoheader h2{cursor:pointer}.b_algo>.b_algoheader a{cursor:auto}.b_algo>.b_algoheader{margin:-12px -16px 0 -16px}.b_algo>.b_algoheader>a:first-of-type{display:block;padding:12px 16px 0 16px}z{a:1}z{a:1}#b_results .b_lineclamp1{display:-webkit-box;-webkit-line-clamp:1;min-height:20px;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}#b_results .b_lineclamp2{display:-webkit-box;-webkit-line-clamp:2;min-height:20px;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}#b_results .b_lineclamp3{display:-webkit-box;-webkit-line-clamp:3;min-height:20px;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}#b_results .b_lineclamp4{display:-webkit-box;-webkit-line-clamp:4;min-height:20px;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}#b_results .b_lineclamp5{display:-webkit-box;-webkit-line-clamp:5;min-height:20px;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}z{a:1}z{a:1}z{a:1}z{a:1}z{a:1}</style><link rel="stylesheet" href="/rp/TbE9r2i8K-3X4Jg222iQY_f_7pQ.br.css" type="text/css"/><link rel="stylesheet" href="/rp/sKMD9beH8gtVDJ1_u4M6ZXNDOy8.br.css" type="text/css"/><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
(function(){function n(n){n=sb_ie?_w.event:n;(!n.altKey||n.ctrlKey||n.shiftKey)&&(n.key&&n.key==="Enter"||n.keyCode&&n.keyCode===13)&&_w.si_ct(sb_ie?n.srcElement:n.target,!1,n,"enter")}sj_be(document,"keydown",n,!1)})();(function(){function n(n){_w.si_ct(sb_ie?_w.event.srcElement:n.target,!1,_w.event||n)}sj_be(document,"mousedown",n,!1);sj_evt.bind("sydFSCLoaded",function(){var t;((t=CIB===null||CIB===void 0?void 0:CIB.config)===null||t===void 0?void 0:t.bing)&&(CIB.config.bing.sendClickBeacon=n)},!0)})();_w.si_sbwu=function(n){var r=_G.BQIG==null?_G.IG:_G.BQIG,u="/fd/ls/GLinkPingPost.aspx?IG="+r+n,t="sendBeacon",i=!1;if(navigator&&navigator[t])try{navigator[t](u,"");i=!0}catch(f){}return i};ClTrCo={};var ctcc=0,clc=_w.ClTrCo||{};_w.si_ct=function(n,t,i,r){var u,o,e,s,f,a,h,c,l;if(clc.SharedClickSuppressed)return!0;u="getAttribute";try{for(;n!==document.body;n=n.parentNode){if(!n||n===document||n[u]("data-noct"))break;if(o=(n.tagName==="A"||n[u]("data-clicks"))&&(n[u]("h")||n[u]("data-h"))||n[u]("_ct"),o){e=n[u]("_ctf");s=-1;i&&(i.type==="keydown"?s=-2:i.button!=null&&(s=i.button));e&&_w[e]||(e="si_T");e==="si_T"&&(f=n[u]("href"),_G!==undefined&&_G.EF!==undefined&&_G.EF.newtabredironclicktracking===1&&f.indexOf("/newtabredir")==0?(a=new RegExp("[?&]?url=([^&]*)(&|$)"),h=f.match(a),h&&(f=f.indexOf("&be=1")>=0?encodeURIComponent(atob(decodeURIComponent(h[1]))):h[1])):f=encodeURIComponent(n[u]("href")),clc.furl&&!n[u]("data-private")?o+="&url="+f:clc.mfurl&&(o+="&abc="+f));r&&(o+="&source="+r);c="";clc.mc&&(c="&c="+ctcc++);l="&"+o+c;_w.si_sbwu(l)||_w[e]&&_w[e](l,n,i,s);break}if(t)break}}catch(v){_w.SharedLogHelper?SharedLogHelper.LogWarning("clickEX",null,v):(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Warning","FID":"CI","Name":"JSWarning","Text":'+v.message+"}]"}return!0};_w.si_sbwu||(_w.si_sbwu=function(){return!1}),function(){_w._G&&(_G.si_ct_e="click")}();function rdr_T(n){var u=_w.event,f=!0,e="getAttribute",i,t,r;if(navigator.cookieEnabled&&_G&&_G.SUIH&&u&&u.button<2&&(t=u.target||u.srcElement)){for(;t!==_d.body;t=t.parentNode)if(t.tagName=="A")break;i=t[e]("href");var o=t[e]("h")||t[e]("_ct"),h=_w.sj_isAjax&&t.host===location.host&&t.pathname==="/search",c=t.hash?t.search===_w.location.search:!1,s=!0;try{s=(_d.cookie.match(/SRCHUID/g)||[]).length===1}catch(l){}f=!(!h&&o&&"&"+o===n&&_w.btoa&&t.protocol&&t.protocol.indexOf("http")>-1&&!c&&s)}if(!f&&i&&i.indexOf(_G.gpUrl)<0){for(i=btoa(i).replace(/\+/g,"-").replace(/\//g,"_"),r=i.length-1;r>=0&&i.charCodeAt(r)==61;r--);i=_G.gpUrl+"IG="+_G.IG+"&"+n+"&SUIH="+_G.SUIH+"&redir="+i.substr(0,r+1);t.setAttribute("href",i)}return f&&_w.si_T&&_w.si_T(n),!0};var perf;(function(n){function f(n){return i.hasOwnProperty(n)?i[n]:n}function e(n){var t="S";return n==0?t="P":n==2&&(t="M"),t}function o(n){for(var c,i=[],t={},r,l=0;l<n.length;l++){var a=n[l],o=a.v,s=a.t,h=a.k;s===0&&(h=f(h),o=o.toString(36));s===3?i.push("".concat(h,":").concat(o)):(r=t[s]=t[s]||[],r.push("".concat(h,":").concat(o)))}for(c in t)t.hasOwnProperty(c)&&(r=t[c],i.push("".concat(e(+c),':"').concat(r.join(","),'"')));return i.push(u),i}for(var r=["redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd","unloadEventStart","unloadEventEnd","firstChunkEnd","secondChunkStart","htmlEnd","pageEnd","msFirstPaint"],u="v:1.1",i={},t=0;t<r.length;t++)i[r[t]]=t;n.compress=o})(perf||(perf={}));window.perf=window.perf||{},function(n){n.log=function(t,i){var f=n.compress(t),r;f.push('T:"CI.Perf",FID:"CI",Name:"PerfV2"');var e="/fd/ls/lsp.aspx?",o="sendBeacon",h="<E><T>Event.ClientInst<\/T><IG>".concat(_G.IG,"<\/IG><TS>").concat(i,"<\/TS><D><![CDATA[{").concat(f.join(","),"}]\]><\/D><\/E>"),s="<ClientInstRequest><Events>".concat(h,"<\/Events><STS>").concat(i,"<\/STS><\/ClientInstRequest>"),u=!_w.navigator||!navigator[o];if(!u)try{navigator[o](e,s)}catch(c){u=!0}u&&(r=sj_gx(),r.open("POST",e,!0),r.setRequestHeader("Content-Type","text/xml"),r.send(s))}}(window.perf);var perf;(function(n){function a(){return c(Math.random()*1e4)}function o(){return y?c(f.now())+l:+new Date}function v(n,r,f){t.length===0&&i&&sb_st(u,1e3);t.push({k:n,v:r,t:f})}function p(n){return i||(r=n),!i}function w(n,t){t||(t=o());v(n,t,0)}function b(n,t){v(n,t,1)}function u(){var u,f;if(t.length){for(u=0;u<t.length;u++)f=t[u],f.t===0&&(f.v-=r);t.push({k:"id",v:e,t:3});n.log(t,o());t=[];i=!0}}function k(){r=o();e=a();i=!1;sj_evt.bind("onP1",u)}var s="performance",h=!!_w[s],f=_w[s],y=h&&!!f.now,c=Math.round,t=[],i=!1,l,r,e;h?l=r=f.timing.navigationStart:r=_w.si_ST?_w.si_ST:+new Date;e=a();n.setStartTime=p;n.mark=w;n.record=b;n.flush=u;n.reset=k;sj_be(window,"load",u,!1);sj_be(window,"beforeunload",u,!1)})(perf||(perf={}));_w.si_PP=function(n,t,i){var r,o,l,h,e,c;if(!_G.PPS){for(o=["FC","BC","SE","TC","H","BP",null];r=o.shift();)o.push('"'+r+'":'+(_G[r+"T"]?_G[r+"T"]-_G.ST:-1));var u=_w.perf,s="navigation",r,f=i||_w.performance&&_w.performance.timing;if(f&&u){if(l=f.navigationStart,u.setStartTime(l),l>=0){for(r in f)h=f[r],typeof h=="number"&&h>0&&r!=="navigationStart"&&r!==s&&u.mark(r,h);_G.FCT&&u.mark("FN",_G.FCT);_G.BCT&&u.mark("BN",_G.BCT)}u.record("nav",s in f?f[s]:performance[s].type)}e="connection";c="";_w.navigator&&navigator[e]&&(c=',"net":"'.concat(navigator[e].type,'"'),navigator[e].downlinkMax&&(c+=',"dlMax":"'.concat(navigator[e].downlinkMax,'"')));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+o.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+c+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:"");_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire("onPP");sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};sj_evt.bind("ajax.requestSent",function(){window.perf&&perf.reset()});var BM=BM||{},adrule="."+_G.adc+" > ul";BM.rules={".b_scopebar":[0,80,0],".b_logo":[-1,-1,0],".b_searchboxForm":[100,19,0],"#id_h":[-1,-1,0],"#b_tween":[-1,-1,1],"#b_results":[100,-1,1],"#b_context":[710,-1,1],"#b_navheader":[-1,-1,0],"#bfb-answer":[-1,-1,1],".tab-menu > ul":[-1,-1,1],".b_footer":[0,-1,0],"#b_notificationContainer":[-1,-1,0],"#ajaxMaskLayer":[-1,-1,0],"img,div[data-src],.rms_img":[-1,-1,0],iframe:[-1,-1,0]};BM.rules[adrule]=[-1,-1,1];var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u="innerWidth"in window?window.innerWidth:i.clientWidth,f="innerHeight"in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||"default";n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t="V";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?"":" >*",f=document.querySelectorAll(u),r=0;r<f.length;r++){var i=f[r],h=0,c=0,l=i.offsetWidth,a=i.offsetHeight;do h+=i.offsetLeft,c+=i.offsetTop;while(i=i.offsetParent);e.push({_e:f[r],x:h,y:c,w:l,h:a})}n.enqueue(t,e)}}var t="L";n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function f(){u(sj_be,r)}function r(i){return i&&n.enqueue(t,i),!0}function e(){u(sj_ue,r)}function u(n,t){for(var u,r=0;r<i.length;r++)u=i[r],n(u==="resize"?window:document,window.navigator.pointerEnabled?u.replace("mouse","pointer"):u,t,!1)}var t="EVT",i=["click","mousedown","mouseup","touchstart","touchend","mousemove","touchmove","scroll","keydown","resize"];n.wireup(t,{load:f,compute:null,unload:e})})(BM);
//]]></script></head><body id="bpage"><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
var logMetaError=function(n){(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.MetaError","FID":"CI","Name":"MetaJSError","Text":"'+escape(n)+'"}]'},logResizeWarn=function(){(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.ClientInst","FID":"CI","Name":"ResizeObserverLimit"}]'},getHref=function(){return location.href},regexEscape;try{regexEscape=function(n){return n.replace(/([.?*+^$&[\]\\(){}|<>-])/g,"\\$1")};window.jsErrorHandler=function(n){var h,r,p,w,u,f,b,e,c,l,o;try{if(h="ERC",r=window[h],r=r?r+1:1,r===16&&(n=new Error("max errors reached")),r>16)return;window[h]=r;var a=n.error||n,k='"noMessage"',d=n.filename,g=n.lineno,nt=n.colno,tt=n.extra,v=a.severity||"Error",s=a.message||k,i=a.stack,t='"'+escape(s.replace(/"/g,""))+'"',it=new RegExp(regexEscape(getHref()),"g");if(s==="ResizeObserver loop completed with undelivered notifications."||s==="ResizeObserver loop limit exceeded"){sj_sp(n);sj_pd(n);console.warn("Ignored: ResizeObserver loop limit exceeded");logResizeWarn();return}if(i){for(p=/\(([^\)]+):[0-9]+:[0-9]+\)/g,u={};(w=p.exec(i))!==null;)f=w[1],u[f]?u[f]++:u[f]=1;e=0;for(c in u)u[c]>1&&(l=regexEscape(c),b=new RegExp(l,"g"),i=i.replace(b,e),i+="#"+e+"="+l,e++);i=i.replace(it,"self").replace(/"/g,"");t+=',"Stack":"'+(escape(i)+'"')}if(d&&(t+=',"Meta":"'+escape(d.replace(it,"self"))+'"'),g&&(t+=',"Line":"'+g+'"'),nt&&(t+=',"Char":"'+nt+'"'),tt&&(t+=',"ExtraInfo":"'+tt+'"'),s===k)if(v="Warning",t+=',"ObjectToString":"'+n.toString()+'"',JSON&&JSON.stringify)t+=',"JSON":"'+escape(JSON.stringify(n))+'"';else for(o in n)n.hasOwnProperty(o)&&(t+=',"'+o+'":"'+n[o]+'"');var rt=(new Date).getTime(),ut='"T":"CI.'+v+'","FID":"CI","Name":"JS'+v+'","Text":'+t+"",ft="<E><T>Event.ClientInst<\/T><IG>"+_G.IG+"<\/IG><TS>"+rt+"<\/TS><D><![CDATA[[{"+ut+"}]]\]><\/D><\/E>",et="<ClientInstRequest><Events>"+ft+"<\/Events><STS>"+rt+"<\/STS><\/ClientInstRequest>",y=new XMLHttpRequest;y.open("POST","/fd/ls/lsp.aspx?",!0);y.setRequestHeader("Content-Type","text/xml");y.send(et);typeof sj_evt!="undefined"&&sj_evt.fire("ErrorInstrumentation",t)}catch(ot){logMetaError("Failed to execute error handler. "+ot.message)}};window.addEventListener&&window.addEventListener("error",jsErrorHandler,!1);window.addEventListener||window.onerror||(window.onerror=function(n,t,i,r,u){var f,e;if(n==="ResizeObserver loop completed with undelivered notifications."||n==="ResizeObserver loop limit exceeded"){console.warn("Ignored: ResizeObserver loop limit exceeded");logResizeWarn();return}f="";typeof n=="object"&&n.srcElement&&n.srcElement.src?f="\"ScriptSrc = '"+escape(n.srcElement.src.replace(/'/g,""))+"'\"":(n=""+n,f='"'+escape(n.replace(/"/g,""))+'","Meta":"'+escape(t)+'","Line":'+i+',"Char": '+r,u&&u.stack&&(e=new RegExp(regexEscape(getHref()),"g"),f+=',"Stack":"'+escape(u.stack.replace(e,"self").replace(/"/g,"")+'"')));(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.GetError","FID":"CI","Name":"JSGetError","Text":'+f+"}]";typeof sj_evt!="undefined"&&sj_evt.fire("ErrorInstrumentation",f)})}catch(e){logMetaError("Failed to bind error handler "+e.message)};var sj_b=_d.body;_w.InstLogQueueKeyFetcher={Get:function(n){var t="eventLogQueue";return n.indexOf("proactive")==1||n.indexOf("search")==1||n.indexOf("zinc")==1?t+"_Online":t+"_Offline"},GetSharedLocation:function(){return"eventLogQueue_Shared"},CanUploadSharedMessages:function(n){return _w.useSharedLocalStorage&&n.indexOf("AS/API")===1?!0:!1}};_w.LogUploadCapFeatureEnabled=!1;var CoreUtilities;(function(n){function i(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return t.apply(null,[null,n].concat(r))}function t(n,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return function(){for(var f,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];if(r&&r.length!==0)for(f in i)i.hasOwnProperty(f)&&r.push(i[f]);else r=i;return t.apply(n,r)}}function r(){for(var n,r,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(n=t[0],r=1;r<t.length;r++)if(n)n=n[t[r]];else return null;return n}n.deferFunction=i;n.deferMethod=t;n.getProperty=r;window.sj_df=i;window.sj_dm=t;window.sj_gp=r})(CoreUtilities||(CoreUtilities={}));_w.useSharedLocalStorage=!1;
//]]></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" src="/rp/5_njacTHNI5UUdpA3bwOxQr_P0s.br.js"></script><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
var __spreadArray=this&&this.__spreadArray||function(n,t,i){if(i||arguments.length===2)for(var r=0,f=t.length,u;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};define("clientinst_xls",["require","exports"],function(n,t){function si(){function n(n,t){typeof i[n]=="undefined"&&(i[n]=t)}_w.ClientInstConfig||(_w.ClientInstConfig={});i=ClientInstConfig;n("flushInterval",5e3);n("retryInterval",1e3);n("maxStorageUse",5e5);n("maxBatchSize",1e5);n("queueDumpInterval",500);n("waitForPageInfo",!1);n("pageInfoTimeout",5e3);n("logUploadCapSizeInChar",15728640*.5);n("logUploadCapIntervalInDays",30);n("isInstrumentationEnabled",!0);n("maxDirectErrors",3);n("enableBatSizeError",!1)}function wt(){rt=0;ut=_G.ST?_G.ST.getTime():0}function u(n,t,r,u){var f,h,e,o;if(i.isInstrumentationEnabled)if(f={errorType:n,failCount:t},k(f),u){pt++;pt>i.maxDirectErrors&&(f.errorType="Overloaded",i.isInstrumentationEnabled=!1);h={impressionGuid:r,previousImpressionGuid:null,timestamp:(new Date).getTime(),type:s.EVENT,data:{eventType:it,eventData:f}};e=et([h],[]);try{lt(e)||(o=sj_gx(),o.open("POST",_G.XLS,!0),o.send(e))}catch(c){throw c;}}else ct(it,f,null,null,null,r,null,null)}function hi(){function t(){o||(o=function(){});bt();u("PageInfoTimedOut",0,_G.IG)}si();wt();typeof h!="undefined"&&h.bind&&h.bind("ajax.unload",wt);try{f=_w.localStorage;r.initialize()}catch(e){}var n=null;i.waitForPageInfo&&(n=sb_st(t,i.pageInfoTimeout));sj_evt.bind("ClientInst.PageInstInfo",function(t){n&&(sb_ct(n),n=null);o=t[1];o&&bt()})}function bt(){for(var n=0,t,i;ft.length>0;){try{i=ft.shift();t=JSON.parse(i)}catch(r){n++;continue}o&&o(t.data);w(t)}n>0&&u("InvalidIncompleteImpressions",n,_G.IG)}function w(n){r.append(n);l()}function a(n){return JSON.stringify(n).replace(/]]>/g,"]]]\]><![CDATA[>")}function ci(n,t,i){var e,r,u,f;t.push("<E>","<T>Event.",n.data.eventType,"<\/T>","<IG>",n.impressionGuid,"<\/IG>");n.previousImpressionGuid&&t.push("<PrevIG>",n.previousImpressionGuid,"<\/PrevIG>");n.dominantImpressionGuid&&n.previousImpressionGuid&&t.push("<DominantIG>",n.dominantImpressionGuid,"<\/DominantIG>");e=n.data.dataSources;e&&t.push("<DS><![CDATA[",a(e),"]\]><\/DS>");r=n.data.pageLayout;r&&y(r)&&(t.push("<Page>"),u=!1,"Name"in r&&(t.push("<Name>",r.Name,"<\/Name>"),u=!0),"Number"in r&&(t.push("<Num>",r.Number,"<\/Num>"),u=!0),"IID"in r&&(t.push("<IID>",r.IID,"<\/IID>"),u=!0),"SFX"in r&&(t.push("<SFX>",r.SFX,"<\/SFX>"),u=!0),u&&(r=r.L),t.push("<L><![CDATA[",a(r),"]\]><\/L>","<\/Page>"));f=n.data.eventData;f||(f=n.data.eventData={});f.UTS=i;t.push("<D><![CDATA[",a(f),"]\]><\/D>","<TS>",n.timestamp,"<\/TS>","<\/E>")}function y(n){var t=!1,i;try{if(n instanceof Array)t=n.every(y);else{if(i=n.L,n.Name||n.Number||n.InsertId||n.SFX)return y(i);t=!!n.T;t&&i&&(t=y(i))}}catch(r){return SharedLogHelper.LogWarning("PageLayoutValidationException",null,r),!1}return t||SharedLogHelper.LogWarning("PageLayoutValidationException",JSON?JSON.stringify(n):n,null),t}function b(n,t,i){n.push('<requestInfo key="',t,'" value="',i,'"/>')}function li(n,t,i){function f(n){return n?n.replace(/&/g,"&").replace(/"/g,"""):""}var r=n.data,e,u,c,o,s,h;t.push("<Group>","<M>","<IG>",n.impressionGuid,"<\/IG>","<DS><![CDATA[",a(r.dataSources),"]\]><\/DS>");e=r.enrichedClientInfo;e||(e={});e.ImpressionUrl=r.impressionUrl;_G.AppVer&&(e.ResourcesVersion=_G.AppVer);u=n.data.eventData;u||(u=n.data.eventData={});u.EnrichedClientInfo=e;u.TS=r.clientTimestamp;u.UTS=i;c=r.uxClassification;c&&(u.UxClassification=c);_w.sj_cook&&sj_cook.parse&&(u.Cookies=sj_cook.parse());t.push("<D><![CDATA[",a(u),"]\]><\/D>");t.push("<Page>","<Name>",r.pageName,"<\/Name>");o=r.layoutNodes;o&&y(o)&&t.push("<L><![CDATA[",a(o),"]\]><\/L>");t.push("<\/Page>","<TS>",n.timestamp,"<\/TS>","<Ovr>");b(t,"RawQuery",f(r.rawQuery));b(t,"IsQuery",f(r.isQuery.toString()));b(t,"Form",f(r.form));s=r.userInfoOverrides;for(h in s)s.hasOwnProperty(h)&&b(t,f(h),f(s[h]));t.push('<userInfo key="AppName" value="',f(r.appName),'"/>',"<\/Ovr>","<\/M>","<\/Group>")}function k(n){var t=window.location.href,i,r,u;return v&&t.indexOf(v)===0||(i=t.indexOf("?"),i<0&&(i=t.indexOf("#")),v=i<0?t:t.substring(0,i),r=_w.ThresholdUtilities,r&&(u=r.getUrlParameter(t,"FORM"),u&&(v+="?FORM="+u))),n.CurUrl=v,n.Pivot=_G.PN,typeof ThresholdUtilities!="undefined"&&_w.SearchAppWrapper&&_w.SearchAppWrapper.CortanaApp&&ThresholdUtilities.getCortanaHeaders(function(t){if(t){var i;(i=t["X-BM-ClientFeatures"])&&(n.CF=i);(i=t["X-BM-FlightedFeatures"])&&(n.FF=i)}}),n}function et(n,t,i){var f,s,h,u,c;i===void 0&&(i=!1);var r=["<ClientInstRequest>"],e=(new Date).getTime(),o=_G.CID||sj_cook.get(vt,vt);if(o&&r.push("<CID>",o,"<\/CID>"),n.length>0){for(i&&(f=n[0],f.data&&f.data.pageLayout&&f.data.pageLayout.IID&&f.data.pageLayout.SFX&&(s=f.data.pageLayout.IID+"_"+f.data.pageLayout.SFX,r.push("<AppNS>",s,"<\/AppNS>"))),r.push("<Events>"),u=0;u<n.length;u++)h=n[u],ci(h,r,e);r.push("<\/Events>")}if(t.length>0)for(u=0;u<t.length;u++)c=t[u],li(c,r,e);return r.push("<\/ClientInstRequest>"),r.join("")}function l(n,t){if(n===void 0&&(n=!1),t===void 0&&(t=!0),i.isInstrumentationEnabled){var r=n?c.retryQueue:c.mainQueue;!r.flushTimeoutHandle&&typeof nt!="undefined"&&nt.setTimeout&&(r.flushTimeoutHandle=nt.setTimeout(function(){return kt(n,r,!1,t)},r.getInterval()))}}function kt(n,t,f,o,s){var it,v,h,p,g,w,b,nt,k,y,d,rt,a,tt;if((o===void 0&&(o=!0),i.isInstrumentationEnabled)&&(sb_ct(t.flushTimeoutHandle),t.flushTimeoutHandle=null,!n||!c.mainQueue.inProgressUpload)){if(!n&&c.retryQueue.inProgressUpload&&c.retryQueue.inProgressUpload.abort(),t.inProgressUpload)if(it=(new Date).getTime()-t.requestSentTimestamp,f||it>i.flushInterval)t.inProgressUpload.abort(),f?u("SendAbortedForceFlush",1,_G.IG):u("SendTimedOut",1,_G.IG);else return;if(v=r.getBatch(n),v.length!=0){for(h={},p=0;p<v.events.length;p++)g=v.events[p],w=g.flights,h[w]||(h[w]={events:[],mpis:[]}),h[w].events.push(g.log);for(b=0;b<v.masterPageImpressions.length;b++)nt=v.masterPageImpressions[b],k=nt.flights,h[k]||(h[k]={events:[],mpis:[]}),h[k].mpis.push(nt.log);for(y in h){if(d=et(h[y].events,h[y].mpis),rt=s&&s.useSendBeacon||!1,(rt||ii())&&ri(_G.XLS,d)){r.clearSentItems(n)&&!n&&l(!1,s);l(!0,s);continue}a=sj_gx();a.open("POST",_G.XLS,o);tt=sj_df(ai,a,t,n);o&&(i.flushInterval>=1e3&&(a.timeout=i.flushInterval),a.onload=tt);a.setRequestHeader("Content-type","text/xml");y!==""&&(a.setRequestHeader("X-MSEdge-ExternalExpType","JointCoord"),a.setRequestHeader("X-MSEdge-ExternalExp",y));t.inProgressUpload=a;t.requestSentTimestamp=(new Date).getTime();a.send(d);o||tt(null)}}}}function ai(n,t,i,u){if(t.readyState===4){i.inProgressUpload=null;var f=Math.floor(t.status/100);f===2?(r.clearSentItems(u)&&!u&&l(!1),l(!0)):f===4?(r.markFailedItems(!0,u),l(!0)):r.markFailedItems(!1,u);u&&r.recordRetryAttempt()}}function ot(n,t,i){n===void 0&&(n=!1);t===void 0&&(t=!0);kt(!1,c.mainQueue,n,t,i)}function st(n,t,i,r,u,f,e,o,h){var c={},l,a;if(k(c),t)if(typeof t=="string")c.Text=t;else for(l in t)t.hasOwnProperty(l)&&(c[l]=t[l]);return i&&(c.T="CI."+i),a=h||(new Date).getTime(),c.TS=a,c.RTS=a-ut,c.SEQ=rt++,{type:s.EVENT,impressionGuid:f!=null?f:_G.IG,previousImpressionGuid:e,timestamp:a,data:{eventType:n,eventData:c,dataSources:r,pageLayout:u},dominantImpressionGuid:o}}function ht(n,t){var r,i;t===void 0&&(t=!1);r=et(n,[],t);lt(r)||(i=sj_gx(),i.open("POST",_G.XLS),i.setRequestHeader("Content-type","text/xml"),i.send(r))}function ct(n,t,r,u,f,e,o,s,h){var c,l,a;if(typeof EventsToDuplicate!="undefined"&&EventsToDuplicate&&n==="Click"&&EventsToDuplicate.indexOf("duplicateClickOnLs")>=0&&(c=_G.gpUrl+"IG="+_G.IG+"&ID="+t.AppNS+","+t.K,lt("",c)||(_G.GPImg=new Image,_G.GPImg.src=c),n="XlsDelayedClick"),!_G.XLS)throw new Error("_G.XLS is necessary for clientinst_xls, but it is not defined");if(i.isInstrumentationEnabled){if(l=st(n,t,r,u,f,e,o,s,h),n==="PartialDynamicContent.FrontDoor"){ht([l],!0);return}typeof EventsToDuplicate!="undefined"&&EventsToDuplicate&&(EventsToDuplicate.indexOf("ALL")>=0||EventsToDuplicate.indexOf(n)>=0)&&(a=st("Immediate"+n,t,r,u,f,e,o,s,h),ht([a]));w(l)}}function dt(n){var t,r,u;i.isInstrumentationEnabled&&(o&&o(n),n.clientTimestamp||(n.clientTimestamp=(new Date).getTime()),t=n.eventData,t||(t=n.eventData={}),k(t),r={type:s.MASTER_PAGE_IMPRESSION,impressionGuid:n.impressionGuid?n.impressionGuid:_G.IG,previousImpressionGuid:null,timestamp:n.clientTimestamp,data:n},typeof EventsToDuplicate!="undefined"&&EventsToDuplicate&&(EventsToDuplicate.indexOf("ALL")>=0||EventsToDuplicate.indexOf("masterPageImpression")>=0)&&(u=st("ImmediateMaster",t,n.impressionUrl,n.dataSources,n.layoutNodes,n.impressionGuid,null,null),ht([u])),o||!i.waitForPageInfo?w(r):ft.push(JSON.stringify(r)))}function ii(){return _G!==undefined&&_G.EF!==undefined&&_G.EF.logsb!==undefined&&_G.EF.logsb===1}function lt(n,t){return(t===void 0&&(t=_G.XLS),!ii())?!1:ri(t,n)}function ri(n,t){var i="sendBeacon",r=!1;if(navigator&&navigator[i])try{r=navigator[i](n,t)}catch(u){}return r}function ui(n,t){n===void 0&&(n=!0);r.dumpToStorage();ot(!0,n,t)}function g(){r.dumpToStorage();ot(!1)}function fi(){r.dumpToStorage(!0)}function at(){r.dumpToStorage()}function ei(){p=null;_CachedFlights=undefined}var r,c,gt,ni,ti,d;t.__esModule=!0;t.ResetState=t.SaveLogsToLocalStorage=t.SaveLogsToSharedStorage=t.FlushMainQueueDontForce=t.ForceFlush=t.Log2=t.LogInstrumented=t.Log=t.LogMasterPageImpression=t.LogEvent=void 0;var nt=n("env"),tt=n("event.native"),h=n("event.custom"),e="Shared",s;(function(n){n[n.EVENT=0]="EVENT";n[n.MASTER_PAGE_IMPRESSION=1]="MASTER_PAGE_IMPRESSION"})(s||(s={}));var vt="MUID",p=null,it="CIQueueError",i,oi=864e5,rt,ut,f,ft=[],o,v,yt,pt=0;(function(n){function k(){return c&&i.isInstrumentationEnabled}function d(n){var i,t;if(n===void 0&&(n=!1),k()){i=lt(n);try{t=n?v:h;f[t]=i;f[t+"_logUploadIntervalStartDate"]=o;f[t+"_uploadedLogSizeInInterval"]=r}catch(u){if(u.name.toLowerCase().indexOf("quota")>=0)c=!1;else throw u;}}}function y(){k()&&(a&&sb_ct(a),a=sb_st(d,i.queueDumpInterval))}function tt(n,t){var i=JSON.stringify(n),r=i.length+3;return n.size=r,t?i.replace('"size":0','"size":'+r):i}function rt(n){return p===null&&typeof _CachedFlights!="undefined"&&_CachedFlights.sort&&(p=_CachedFlights.sort().join(",")),{log:n,lastSendErrorTimeStamp:0,inProgress:!1,size:0,flights:p}}function ut(){var n,e,r;if(f){if(vt(),n=f[h],t=[],typeof n=="string"||n&&n.length!==0)try{if(t=JSON.parse(n),t.some(function(n){return!n.log}))u("PrimaryQueueRestoreInvalidItems",t.length,_G.IG),t=[];else if(e=t.length,e>0){for(r=0;r<e;r++)t[r].inProgress=!1;i.wsbOptimizeFlush?ot(!0):l()}}catch(o){u("PrimaryQueueRestoreFailed",0,_G.IG)}f[h]="[]";c=!0}}function ft(n){var a=[],y=[],o=n?e[0]:t,c,h,p,w,l,r,b;if(nt){if(c=f[v],typeof c=="string"&&c.length!==0)try{h=JSON.parse(c);h.some(function(n){return!n.log})?u("SharedQueueRestoreInvalidItems",h.length,_G.IG):o?Array.prototype.push.apply(o,h):o=h}catch(k){u("SharedQueueRestoreFailed",0,_G.IG)}f[v]="[]"}if(o)for(p=0,w=o.length,l=0;l<w;l++)if(r=o[l],n||!r.lastSendErrorTimeStamp)if(ClientInstConfig.enableBatSizeError&&r.size>i.maxBatchSize&&u("ElemBatchSizeLimitReached",r.size,_G.IG),p+=r.size,p<=i.maxBatchSize)r.inProgress=!0,b=r.log,b.type==s.MASTER_PAGE_IMPRESSION?y.push(r):a.push(r);else break;return{events:a,masterPageImpressions:y,length:a.length+y.length,isRetryBatch:n}}function et(n){return t=t.filter(function(t){return!t.inProgress&&(!n||!!t.lastSendErrorTimeStamp)}),y(),t.length>0}function st(n){return n.log.type===s.EVENT&&n.log.data&&n.log.data.eventType===it}function ht(n,i){for(var f=[],h=i?e[0]:t,o=0,r,s,c;o<h.length;)r=h[o],r.inProgress?n?(h.splice(o,1),st(r)||(r.lastSendErrorTimeStamp=(new Date).getTime(),f.push(r))):(r.inProgress=!1,o++):o++;s=f.length;s==1?u("InvalidLogMessage",1,f[0].log.impressionGuid):s>0&&(c=s/2,e.push(f.slice(0,c)),e.push(f.slice(c)));y()}function ct(){var n,t,i;if(e.length>0){for(n=e[0],t=0;t<n.length;)i=n[t],i.inProgress?n.splice(t,1):t++;n.length==0&&e.shift()}}function lt(n){var c=JSON.stringify(t),e=c.length-i.maxStorageUse,o=t.length,f,r,s,h;if(e>0)for(f=0,r=0;r<o;r++)if(s=t[r].size,f+=s+1,f>=e){t.splice(0,r+1);u("QueueOverflow",r+1,_G.IG,!0);break}return h=JSON.stringify(t),n&&t.splice(0,o),h}function at(n){var r=rt(n);tt(r,!1);ClientInstConfig.enableBatSizeError&&r.size>i.maxBatchSize&&u("EnvelopeBatchSizeLimitReached",r.size,_G.IG);i.wsbOptimizeFlush&&r.size>i.maxBatchSize||yt(r.size)&&t.push(r);y()}function vt(){var t=h+"_logUploadIntervalStartDate",u=h+"_uploadedLogSizeInInterval",n;o=f[t];r=f[u];n=sb_gt();o==undefined||r==undefined?w(n):g(o,n)>=i.logUploadCapIntervalInDays&&w(n)}function w(n){o=n;r=0}function g(n,t){var i=t-n;return i/oi}function yt(n){var t,f;return i.isInstrumentationEnabled?LogUploadCapFeatureEnabled?(t=sb_gt(),g(o,t)>=i.logUploadCapIntervalInDays&&w(t),r>=i.logUploadCapSizeInChar)?!1:(f=r+n,f>=i.logUploadCapSizeInChar)?(u("LogUploadSizeLimitReached",1,_G.IG,!0),r=i.logUploadCapSizeInChar,!1):(r=f,!0):!0:!1}var t=[],o,r,c=!1,a=null,e=[],b=_w.location.pathname,h=InstLogQueueKeyFetcher.Get(b),v=InstLogQueueKeyFetcher.GetSharedLocation(),nt=InstLogQueueKeyFetcher.CanUploadSharedMessages(b);n.dumpToStorage=d;n.initialize=ut;n.getBatch=ft;n.clearSentItems=et;n.markFailedItems=ht;n.recordRetryAttempt=ct;n.append=at})(r||(r={}));c={mainQueue:{getInterval:function(){return i.flushInterval}},retryQueue:{getInterval:function(){return i.retryInterval}}};t.LogEvent=ct;t.LogMasterPageImpression=dt;gt=function(n,t,r,u){for(var e=[],f=4;f<arguments.length;f++)e[f-4]=arguments[f];i.isInstrumentationEnabled&&(yt||(d("Init","CI","Base"),yt=!0),d(n,t,r,u,e))};t.Log=gt;ni=function(n,i,r,u,f,e,o){t.Log2(n,i!==null&&i!==void 0?i:r,null,null,u,f,o)};t.LogInstrumented=ni;ti=function(n,t,i,r,u,f,e){var o=Object.keys(e).reduce(function(n,t){return __spreadArray(__spreadArray([],n,!0),[t,e[t]],!1)},[]);i&&o.push("service",i);r&&o.push("scenario",r);u&&o.push("appNS",u);f&&o.push("kValue",f);d(n,null,t,!1,o)};t.Log2=ti;d=function(n,t,r,u,f){var v,e,c,l,o,h,a;if(i.isInstrumentationEnabled){if(v=_G.IG,e={},f&&f.length>0&&f.length%2==0)for(c=0;c<f.length;c+=2)(l=f[c],l)&&(o=l.toLowerCase(),h=f[c+1],o==="impressionguid"?v=h:o==="service"?e.Service=h:o==="scenario"?e.Scenario=h:o==="appns"?e.AppNS=h:o==="k"||o==="kvalue"?e.K=h:o==="pos"?e.Pos=h:e[l]=h);a=(new Date).getTime();e.T="CI.".concat(n);e.TS=a;e.RTS=a-ut;e.SEQ=rt++;e.Name=r!==null&&r!==void 0?r:"";e.FID=typeof t!="number"?t!==null&&t!==void 0?t:"":"";e.hasOwnProperty("K")||typeof t!="number"||(e.K=t);k(e);w({type:s.EVENT,impressionGuid:v,previousImpressionGuid:null,timestamp:a,data:{eventType:"ClientInst",eventData:e}})}};t.ForceFlush=ui;hi();t.FlushMainQueueDontForce=g;t.SaveLogsToSharedStorage=fi;t.SaveLogsToLocalStorage=at;t.ResetState=ei;typeof h!="undefined"&&h.bind&&(h.bind("onP1",g,!0),h.bind("ajax.postload",g,!0));typeof tt!="undefined"&&tt.bind&&tt.bind(_w,"beforeunload",at,!1);_w.Log={Log:t.Log};_w.Log2={LogEvent:ct,LogMasterPageImpression:dt,ForceFlush:ui,FlushMainQueueDontForce:g,SaveLogsToSharedStorage:fi,ResetState:ei,SaveLogsToLocalStorage:at};_w.Shared2=_w.Shared2||{};_w.Shared2.Log={Log:t.Log,LogInstrumented:t.LogInstrumented};_w.sj_log2=t.Log2});(function(n){var i,r,t;if(document.querySelector){i=[];r="ad";function u(){var d=sb_gt(),v=document.documentElement,h=document.body,t=0,u=-1,g=v.clientHeight,y=["#b_results ."+_G.adc,".sb_adsWv2",".ads"],r,e,o,b,l,s,n,f,a,k;if(h){r=0;e=document.querySelector("#b_pole .pa_carousel_mlo");e&&(r=e.offsetHeight,u=e.offsetTop);var p=document.querySelector("#b_results #productAdCarousel"),c=document.querySelector("#b_results .pa_b_supertop"),w=document.querySelector("#b_results .bn_wide");for(c?(u=c.offsetTop,r=c.offsetHeight):w?r+=w.offsetHeight:p&&(r+=p.offsetHeight),t=r,o=0;o<y.length;o++)for(b=y[o],l=document.querySelectorAll(b),s=0;s<l.length;s++)n=l[s],n&&n.className.indexOf("b_adTop")!==-1&&(f=n.nextSibling,f&&f instanceof Element&&_w.getComputedStyle&&(a=_w.getComputedStyle(f))&&a?(k=parseFloat(a.marginTop),t+=f.offsetTop-n.offsetTop-k):t+=n.offsetHeight,u===-1&&(u=n.offsetTop));t===0&&(t=-1);i=[u,t,v.clientWidth,g,h.offsetWidth,h.offsetHeight,sb_gt()-d]}}n?(t=n.onbeforefire,n.onbeforefire=function(){t&&t();u();n.mark(r,i)}):(t=si_PP,si_PP=function(){u();var n='"'+r+'":['+i.join()+"]";_G.C1=_G.C1?_G.C1+","+n:n;t.apply(null,[].slice.apply(arguments))})}})(_w.pp);_G.AppVer="38242714";var UndersideDefaultTrustedTypesPolicy;(function(){function r(){var n=window.trustedTypes;n&&n.createPolicy&&n.createPolicy("default",{createHTML:f,createScript:function(n){return n},createScriptURL:u})}var i=["www.bing.com","www2.bing.com","edgeservices.bing.com","r.bing.com","4.bing.com","services.bingapis.com","sydney.bing.com","www.bingapis.com","www.bing-exp.com","www.staging-bing-int.com","snrproxy.binginternal.com","snrproxync.binginternal.com","snrproxysc.binginternal.com","snrproxyeast.binginternal.com","snrproxywest.binginternal.com","cetonc.binginternal.com","cetosc.binginternal.com","cetoeast.binginternal.com","cetowest.binginternal.com","rafd.staging-bing-int.com","r.staging-bing-int.com"],u=function(n){return t(n)?n:(console.log("CreateScriptURL URL check failed:"+n),"")},f=function(t){var i=new RegExp("<script(.*?)(/>|s/>|>.*?<\/script>)","gi"),r=new RegExp("src=['\"](.*?)['\"]","gi"),u=new RegExp("<link(.*?)(/>|s/>|>.*?<\/link>)","gi"),f=new RegExp("href=['\"](.*?)['\"]","gi");return n(t,i,r)&&n(t,u,f)?t:""},n=function(n,i,r){for(var f,u;(f=i.exec(n))!==null;)for(f.index===i.lastIndex&&i.lastIndex++,u=void 0;(u=r.exec(f[0]))!==null;)if(console.log(u),u.index===r.lastIndex&&r.lastIndex++,console.log(u[1]),!t(u[1]))return console.log("CreateHTML URL check failed :"+u[1]),!1;return!0},t=function(n){n&&n.startsWith("blob:")&&(n=n.slice(5));var t=document.createElement("a");return(t.href=n,t.hostname!=="localhost"&&!i.some(function(n){return t.hostname===n}))?!1:!0};r()})(UndersideDefaultTrustedTypesPolicy||(UndersideDefaultTrustedTypesPolicy={}));var EdgeServicesXMLHttpRequest;(function(n){function u(n){n!=null&&n.Reroutes!=null&&(t=n.Reroutes,i=window.XMLHttpRequest.prototype.open,window.XMLHttpRequest.prototype.open=f)}function f(n,r,u,f,s){var h,c,l,a;if(t==null||t.length==0)return i.call(this,n,r,u,f,s);for(h=r,c=0;c<t.length;c++)if(l=t[c],a=e(r,l.OriginalPath),l.Enabled&&a!=null){h=o(a,r,l.RedirectPath);console.log("rerouted original url: "+r+" to new url: "+h);break}return i.call(this,n,h,u,f,s)}function e(n,t){var i,u;if(!r(n)||!r(t))return null;try{i=new URL(n,"https://edgeservices.bing.com")}catch(f){return null}return(u=i.pathname,u.toLowerCase()!=t.toLowerCase())?null:i}function o(n,t,i){return r(i)?i+n.search+n.hash:t}function r(n){return n!=null&&n.trim()!==""&&n.startsWith("/")}var t,i;n.init=u})(EdgeServicesXMLHttpRequest||(EdgeServicesXMLHttpRequest={}));var rerouteConfig ={"Reroutes":[{"OriginalPath":"/financeapi/quote","RedirectPath":"/edgesvc/thirdpartyaj/financeapi/quote","Enabled":true},{"OriginalPath":"/financeapi/financials","RedirectPath":"/edgesvc/thirdpartyaj/financeapi/financials","Enabled":true},{"OriginalPath":"/covidans/locations","RedirectPath":"/edgesvc/thirdpartyaj/covidans/locations","Enabled":true},{"OriginalPath":"/covidans/falcon","RedirectPath":"/edgesvc/thirdpartyaj/covidans/falcon","Enabled":true},{"OriginalPath":"/covid-ans/getTab","RedirectPath":"/edgesvc/thirdpartyaj/covidans/getTab","Enabled":true},{"OriginalPath":"/covid-vaccine/getMapData","RedirectPath":"/edgesvc/thirdpartyaj/covidvaccine/getMapData","Enabled":true},{"OriginalPath":"/sharing/getsharecommoncontrol","RedirectPath":"/edgesvc/thirdpartyaj/sharing/getsharecommoncontrol","Enabled":false},{"OriginalPath":"/sharing/getsharelink","RedirectPath":"/edgesvc/thirdpartyaj/sharing/getsharelink","Enabled":false}]}; EdgeServicesXMLHttpRequest.init(rerouteConfig);;_G!==undefined&&_G.EF!==undefined&&_G.EF.bmasynctrigger===1&&window.requestAnimationFrame!==undefined&&document.visibilityState!==undefined&&document.visibilityState==="visible"?requestAnimationFrame(function(){_G.EF.bmasynctrigger2===1?requestAnimationFrame(function(){BM.trigger()}):_G.EF.bmasynctrigger3===1?requestAnimationFrame(function(){setTimeout(function(){BM.trigger()},0)}):setTimeout(function(){BM.trigger()},0)}):BM.trigger();var initUserStatus ={"CodexEnabled":true,"UserEligible":true,"UserSignedIn":true,"Identity":"914802152439768","Name":null,"Provider":"MSA","PrefAuth":"MSA","BizChatEnabled":false,"BceEnabled":false,"UserIpEligible":true,"Convscope":true,"Condexvar":true,"Condexship":true,"Waitlist":true,"Condexforall":false,"Udssydthrottle":false,"IsSafeSearchStrict":false}; var clientVersion ="115.0.1901.188";;var uxVariants ={"codexship":"1","codexvar":"1","convscope":"1","edge_feature.frame_unrestricted":"1","feature.codexedg1cc":"1","feature.codexqnacovt3":"1","feature.codexwinenable":"1","feature.codexwingreet2":"1","feature.codexwshort":"1","feature.sydautoscroll5":"1","feature.sydfscautohide":"1","feature.sydfschide5min":"1","feature.sydnoauth":"1","feature.sydopbfluxsrtrunc":"1","feature.sydopbfluxtrunc":"1","feature.sydopbfluxv1short":"1","feature.sydopbglfluxv1":"1","feature.sydopbrai278":"1","feature.sydopbreplaceurl":"1","feature.sydopcfluxsrtrunc":"1","feature.sydopcfluxtrunc":"1","feature.sydopcfluxv1":"1","feature.sydopcfluxv1short":"1","feature.sydopcrai278":"1","feature.sydopcreplaceurl":"1","feature.sydoppfluxsrtrunc":"1","feature.sydoppfluxtrunc":"1","feature.sydoppfluxv1":"1","feature.sydoppfluxv1short":"1","feature.sydopprai278":"1","feature.sydoppreplaceurl":"1","feature.sydoptlogosv1":"1","feature.sydopttecheditgnd":"1","feature.sydoptweanow":"1","feature.sydsid0518logos":"1","feature.sydtigexpandcf":"1","feature.sydtighgt":"1","feature.sydtigspeed":"1","feature.sydtigspeed2":"1","feature.sydwlcmv2":"1","feature.sydzeroxap":"1","feature.udsctfluxops":"1","feature.udsctfluxopsbl":"1","feature.udsctfluxopsct":"1","feature.udsdisscwf":"1","feature.udsenbfinc":"1","feature.udszeroturnct":"1","feature.udszrturnmsgon":"1","language":"ZH-HANS","serpvertical":"UNDERSIDE","trafficpriority":"PREMIUM","trafficreason":"LIKELYUSERFULLMKT","underside":"1","undersideex":"COMPOSE","undersidev2":"1"}; var globalConsoleConfig ={"EnableDevMode":false,"GDPR_Regulated":false,"EnableClientDebugLog":false,"LogLevel":1};;
//]]></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" src="/rp/csEilc4JX9Dw8u0OL1MAXhvTLBw.br.js"></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" src="/rp/jGqrlcxepmhaIJKVUSFqCguDjNY.br.js"></script><!-- Trusted types script must be first JS script to load --><!-- Custom Edge Services XMLHttpRequest --><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" >//<![CDATA[
_G.FCT=new Date;
//]]></script><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" >//<![CDATA[
_G.BCT=new Date;
//]]></script><style type="text/css">#b_header #id_h{content-visibility:visible}.uds_coauthor_wrapper{font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;color:#000;height:100vh;width:100%}.uds_coauthor_wrapper .header-banner-section{position:fixed;background:rgba(0,0,0,.06);max-width:100%;width:100%;height:32px}.uds_coauthor_wrapper .header-banner-section svg{fill:#0f7b0f;height:20px;width:20px;vertical-align:middle}.uds_coauthor_wrapper .header-banner-section #protected_link{align-items:center;gap:4px;border-radius:100px;height:32px;margin-left:16px}.uds_coauthor_wrapper .header-banner-section a#protected_link{display:inline-flex;cursor:pointer;font-size:14px;font-weight:600;line-height:20px;color:#0f7b0f}.uds_coauthor_wrapper .header-banner-section a#protected_link:hover{text-decoration:underline}.uds_coauthor_wrapper .sidebar{height:calc(100% - 45px);width:100%;position:absolute;display:flex;flex-direction:column;align-items:center;padding:10px;overflow:auto;margin-top:45px;box-sizing:border-box}.uds_coauthor_wrapper .sidebar.detached{overflow:overlay}.uds_coauthor_wrapper .sidebar.detached.no-header{margin-top:0}.uds_coauthor_wrapper .sidebar.detached.header-applied{margin-top:32px}.uds_coauthor_wrapper .child{width:100%;box-sizing:border-box;padding:12px;background:#fff;border-radius:5px;box-shadow:0 2px 4px rgba(0,0,0,.14),0 0 2px rgba(0,0,0,.12);margin-bottom:10px;display:flex;flex-direction:column}.uds_coauthor_wrapper .child:last-child{flex-grow:1;margin-bottom:0}.uds_coauthor_wrapper textarea{font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;padding:8px;border-radius:10px;border:1px solid #e2e2e2;box-shadow:0 1px 1px #7a7a7a;resize:vertical;font-size:14px}.uds_coauthor_wrapper textarea#prompt_text{scroll-padding-bottom:22px;padding-bottom:22px}.uds_coauthor_wrapper textarea:focus{box-shadow:0 2px 0 #174ae4}.uds_coauthor_wrapper textarea:focus-visible{border:1px solid #e2e2e2;outline:none}.uds_coauthor_wrapper #letter_counter{display:flex;position:relative;color:#717171;background:#fff;left:1px;padding-left:8px;font-size:12px;line-height:16px;font-weight:400;bottom:20px;width:calc(100% - 20px);height:19px;margin-bottom:-19px;border-bottom-left-radius:10px}.uds_coauthor_wrapper .button{width:100%;background:linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%);align-self:center;border:none;border-radius:20px;color:#fff;padding:7px 10px;line-height:22px;font-size:14px;font-weight:600;font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;box-sizing:border-box;text-decoration:none;text-align:center}.uds_coauthor_wrapper .button:hover{box-shadow:0 1.2px 3.6px rgba(0,0,0,.1),0 6.4px 14.4px rgba(0,0,0,.13);cursor:pointer;text-decoration:none}.uds_coauthor_wrapper .button.disabled{cursor:default;background:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%)}.uds_coauthor_wrapper .button.secondary{background:#fff;border:1px solid #174ae4;color:#174ae4}.uds_coauthor_wrapper .button.disabled:hover{box-shadow:none}.uds_coauthor_wrapper .button.secondary.disabled{cursor:default;color:#d1dbfa;border-color:#d1dbfa;background:rgba(255,255,255,.8)}.uds_coauthor_wrapper #prompt_text{height:50px;min-height:50px}.uds_coauthor_wrapper .length-options,.uds_coauthor_wrapper .tone-options,.uds_coauthor_wrapper .change-suggestions-options{display:flex;flex-wrap:wrap}.uds_coauthor_wrapper .tag{margin:4px;padding:1px 10px;border-radius:8px;line-height:22px;height:28px;box-sizing:border-box;color:#174ae4;border:1px solid #174ae4}.uds_coauthor_wrapper .tag:focus-visible,.uds_coauthor_wrapper .format-option:focus-visible,.uds_coauthor_wrapper #compose_button:focus-visible,.uds_coauthor_wrapper .item:focus-visible,.uds_coauthor_wrapper #detached_copy_button:focus-visible{outline:2px solid #000}.uds_coauthor_wrapper .tag span{font-size:12px;font-weight:600}.uds_coauthor_wrapper .tag.selected{background:#174ae4;color:#fff}.uds_coauthor_wrapper .tag.selected svg>path{fill:#fff}.uds_coauthor_wrapper .tag:hover,.uds_coauthor_wrapper #add_change_suggestion_button.selected{cursor:pointer;background:#eff3ff}.uds_coauthor_wrapper #add_change_suggestion_button.selected>svg>path{fill:#174ae4}.uds_coauthor_wrapper .tag.selected:hover,.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected:hover{background:#174ae4;color:#fff}.uds_coauthor_wrapper #custom_tone_plus_button,.uds_coauthor_wrapper #add_change_suggestion_button{width:28px;padding:7px 8px 8px 7px}.uds_coauthor_wrapper #custom_tone_plus_button svg,.uds_coauthor_wrapper #add_change_suggestion_button svg{display:block}.uds_coauthor_wrapper .custom_tone_container{display:flex;margin:4px;max-width:calc(40% - 4px)}.uds_coauthor_wrapper #custom_tone{margin:0;border-radius:8px 0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uds_coauthor_wrapper #custom_tone_edit_button{width:28px;margin:0 0 0 0;border-left:none;border-radius:0 8px 8px 0;padding:5px}.uds_coauthor_wrapper #custom_tone_edit_button svg>path{fill:#174ae4}.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected{margin-left:1px}.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected svg>path{fill:#fff}.uds_coauthor_wrapper .custom-tone-edit-container,.uds_coauthor_wrapper #custom_change_suggestion_container{display:flex}.uds_coauthor_wrapper input,.uds_coauthor_wrapper input:focus,.uds_coauthor_wrapper input:focus-visible,.uds_coauthor_wrapper input:hover{width:100%;height:20px;margin:4px 0 4px 4px;padding:5px 0 5px 13px;border-radius:4px 0 0 4px;border:1px;font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;font-size:14px;font-weight:400;background-color:rgba(0,0,0,.05);color:rgba(0,0,0,.85);outline:none;box-shadow:none}.uds_coauthor_wrapper #custom_tone_add_button,.uds_coauthor_wrapper #custom_tone_save_button,.uds_coauthor_wrapper #submit_change_suggestion_button{height:18px;background-color:rgba(0,0,0,.05);font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;font-size:14px;font-weight:600;line-height:20px;letter-spacing:0;text-align:center;margin:4px 4px 0 0;padding:5px 10px 7px 10px;border-radius:0 4px 4px 0;border:1px}.uds_coauthor_wrapper #submit_change_suggestion_button{padding-top:7px;padding-bottom:5px}.uds_coauthor_wrapper #custom_tone_add_button:not(.disabled) span:hover,.uds_coauthor_wrapper #custom_tone_save_button:not(.disabled) span:hover,.uds_coauthor_wrapper #submit_change_suggestion_button:not(.disabled):hover{cursor:pointer;color:rgba(0,0,0,.85)}.uds_coauthor_wrapper #custom_tone_add_button.disabled,.uds_coauthor_wrapper #custom_tone_save_button.disabled{color:rgba(0,0,0,.2)}.uds_coauthor_wrapper .format-options{display:flex;flex-wrap:wrap}.uds_coauthor_wrapper .format-option{margin:0 6px 0 4px;text-align:center;display:flex;flex-direction:column;align-items:center}.uds_coauthor_wrapper .format-option:hover .illustration{cursor:pointer;background:#eff3ff}.uds_coauthor_wrapper .format-option.selected .illustration{border-color:#174ae4}.uds_coauthor_wrapper .format-option .illustration{height:50px;width:50px;border:2px solid #fff;border-radius:10px;background:#f7f7f7;padding:3px}.uds_coauthor_wrapper .format-option .illustration svg{width:50px;height:50px}.uds_coauthor_wrapper .format-option p{font-weight:500;font-size:11px}.uds_coauthor_wrapper .option-section{margin-top:12px;padding:3px;padding-top:9px;border:1px solid #e8e8e8;border-radius:8px}.uds_coauthor_wrapper .messaging-section{display:flex;margin-top:12px;font-weight:600;font-size:12px;line-height:16px;color:#0f7b0f}.uds_coauthor_wrapper .messaging-section svg{margin-right:4px;fill:#0f7b0f}.uds_coauthor_wrapper .header{display:flex;padding:3px;font-size:14px;line-height:20px;margin-bottom:8px}.uds_coauthor_wrapper .header#preview_heading{margin-bottom:0}.uds_coauthor_wrapper .header.secondary{color:#1a1a1a}.uds_coauthor_wrapper .header svg{display:inline-block;width:18px;height:18px;margin-right:4px}.uds_coauthor_wrapper div.preview{height:100%;position:relative;margin-top:8px}.uds_coauthor_wrapper #disclaimer_box{padding:4px;color:#717171}.uds_coauthor_wrapper #preview_text{height:100%;width:100%;box-sizing:border-box;resize:none;min-height:200px;padding-bottom:45px;scroll-padding-bottom:45px}.uds_coauthor_wrapper #captcha_container{position:absolute;width:316px;height:150px;top:50px;right:0;left:0;margin-left:auto;margin-right:auto;border-width:0;background-color:rgba(0,0,0,0)}.uds_coauthor_wrapper #captcha-frame{border-width:0;width:100%;height:100%}.uds_coauthor_wrapper .preview-options{display:flex;position:absolute;bottom:0;border-bottom-left-radius:8px;border-bottom-right-radius:8px;right:6px;justify-content:flex-end;box-sizing:border-box;width:calc(100% - 8px);background:#fff}.uds_coauthor_wrapper .preview-options.disabled{background:rgba(0,0,0,0)}.uds_coauthor_wrapper .preview-options .item{width:32px;height:32px;border-radius:3px;margin-left:4px;display:flex;align-items:center;justify-content:center}.uds_coauthor_wrapper .preview-options .item:hover{cursor:pointer;background:#f7f7f7}.uds_coauthor_wrapper .preview-options .item.disabled svg>path,.uds_coauthor_wrapper #submit_change_suggestion_button.disabled svg>path{fill:#717171}.uds_coauthor_wrapper .preview-options .item.disabled:hover{background:none;cursor:auto}.uds_coauthor_wrapper div.preview #shimmer{width:98%;height:100px;position:absolute;top:5px;left:5px}.uds_coauthor_wrapper div.preview #shimmer .line{width:95%;height:12px;background:#e2e2e2;border-radius:4px;margin:3px;-webkit-mask:linear-gradient(-60deg,#000 30%,rgba(0,0,0,.5),#000 70%) 0;animation:uds-coauthor-shimmer 1.5s infinite}.uds_coauthor_wrapper div.preview #shimmer .line:last-child{width:50%}.uds_coauthor_wrapper div.preview #error{position:absolute;top:8px;left:8px;text-align:left;display:flex;color:#c42b1c}.uds_coauthor_wrapper div.preview #error>div{margin-right:8px}.uds_coauthor_wrapper #compose_button,.uds_coauthor_wrapper #insert_button,.uds_coauthor_wrapper #change_suggestions_pills,.uds_coauthor_wrapper #detached_copy_button{margin-top:12px}.uds_coauthor_wrapper #compose_button{color:#fff}.uds_coauthor_wrapper #insert_button,.uds_coauthor_wrapper #detached_copy_button{color:#174ae4}.uds_coauthor_wrapper #insert_button.disabled,.uds_coauthor_wrapper #detached_copy_button.disabled{color:#d1dbfa}.uds_coauthor_wrapper .hidden{display:none !important}.uds_coauthor_wrapper .aria-alert{position:absolute;top:-100px}.uds_coauthor_wrapper .change-suggestion.tag{padding:5px 12px;font-size:12px;line-height:16px;max-width:calc(100% - 8px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;opacity:0;animation-name:slideInFromBottom;animation-duration:.5s;animation-timing-function:cubic-bezier(0,0,0,1);animation-fill-mode:forwards;border-color:#a2b7f4}.uds_coauthor_wrapper .change-suggestion.tag:hover,.uds_coauthor_wrapper #add_change_suggestion_button.selected{border-color:#174ae4}.uds_coauthor_wrapper #add_change_suggestion_button{height:28px;width:28px;display:flex;justify-content:center;align-items:center}@keyframes slideInFromBottom{0%{transform:translateY(24px);opacity:0}100%{transform:translateY(0);opacity:1}}@keyframes rotateFlair{0%{background:conic-gradient(from 45deg,#18c1ed,#3495ea,#2161ef,#3495ea,#18c1ed);transform:rotate(45deg);opacity:1}70%{background:conic-gradient(from 45deg,#18c1ed,#3495ea,#2161ef,#3495ea,#18c1ed);opacity:1}100%{background:conic-gradient(from 45deg,#18c1ed,#3495ea,#2161ef,#3495ea,#18c1ed);transform:rotate(720deg);opacity:0}}.uds_coauthor_wrapper .flair{position:relative;width:100%;height:100%;min-height:104px;border-radius:8px;overflow:hidden}.uds_coauthor_wrapper .flair .base{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.uds_coauthor_wrapper .flair .gradient{position:absolute}.uds_coauthor_wrapper .flair .gradient.active{animation-name:rotateFlair;animation-duration:2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}.uds_coauthor_wrapper .flair .screen{position:absolute;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:6px}.uds_coauthor_wrapper .inline{height:200px;overflow:hidden;padding:12px;box-sizing:border-box;background-color:#fff;display:flex;flex-direction:column;gap:12px}.uds_coauthor_wrapper .inline header,.uds_coauthor_wrapper .inline header #preview_badge{display:flex;align-items:center;height:20px;font-size:12px;line-height:20px;color:rgba(0,0,0,.65);font-weight:600;font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif}.uds_coauthor_wrapper .inline header #preview_badge{font-size:10px;line-height:14px;margin-left:6px;padding:0 6px;border-radius:4px;background:rgba(0,0,0,.05)}.uds_coauthor_wrapper .inline header #close_button{display:flex;align-items:center}.uds_coauthor_wrapper .inline header #close_button div[role="presentation"]{width:16px;height:16px}.uds_coauthor_wrapper .inline header svg{width:16px;height:16px}.uds_coauthor_wrapper .inline #inline_options_main{display:flex;gap:4px}.uds_coauthor_wrapper .inline .inline-button div[role="presentation"]{width:20px;height:20px}.uds_coauthor_wrapper .inline .inline-button.secondary svg{width:20px;height:20px}.uds_coauthor_wrapper .inline #inline_icon{width:20px;height:20px;margin-right:8px}.uds_coauthor_wrapper .inline #close_button{margin-left:auto;width:16px;height:16px}.uds_coauthor_wrapper .inline #close_button:hover{cursor:pointer}.uds_coauthor_wrapper .inline .inline-button{background:linear-gradient(129.58deg,#2870ea 20.88%,#2870ea 20.89%,#1b4aef 77.37%);border:none;border-radius:4px;color:#fff !important;line-height:14px;font-size:12px;font-weight:600;font-family:'Segoe UI',"-apple-system",Segoe,Tahoma,HelveticaNeue,Roboto,Arial,Verdana,sans-serif;text-decoration:none;display:flex;height:24px;padding:2px 8px;justify-content:center;align-items:center;gap:4px;box-sizing:border-box}.uds_coauthor_wrapper .inline-button:hover{background:linear-gradient(0deg,rgba(0,0,0,.1),rgba(0,0,0,.1)),linear-gradient(129.58deg,#2870ea 20.88%,#1b4aef 77.37%);cursor:pointer;text-decoration:none}.uds_coauthor_wrapper .inline-button:active{background:linear-gradient(0deg,rgba(0,0,0,.2),rgba(0,0,0,.2)),linear-gradient(129.58deg,#2870ea 20.88%,#1b4aef 77.37%)}.uds_coauthor_wrapper .inline-button.disabled{cursor:default;background:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%)}.uds_coauthor_wrapper .inline-button.secondary{background:#fff;border:1px solid rgba(0,0,0,.1);color:#000 !important;font-weight:500}.uds_coauthor_wrapper .inline-button.disabled:hover{box-shadow:none}.uds_coauthor_wrapper .inline-button.secondary.disabled{cursor:default;color:#d1dbfa;border-color:rgba(0,0,0,.1);background:#e2e2e2}.uds_coauthor_wrapper .inline #inline_try_again_button{padding:2px}.uds_coauthor_wrapper .inline #inline_preview{position:relative}.uds_coauthor_wrapper .inline #inline_preview_text{height:100px;width:100%;box-sizing:border-box;border-radius:6px;border-style:solid;box-shadow:none;padding:12px;resize:none;color:#000}.uds_coauthor_wrapper .inline #inline_preview_text:disabled{background:#fff}.uds_coauthor_wrapper .inline #captcha_container{top:23px}.uds_coauthor_wrapper .inline #inline_preview #inline_shimmer{width:98%;height:4px;position:absolute;bottom:2px;left:3px;overflow:hidden;border-radius:0 3px 3px 6px}.uds_coauthor_wrapper .inline #inline_preview #inline_shimmer .line{width:99%;height:10px;background:linear-gradient(81.09deg,#18c1ed 8.85%,#3495ea 48.98%,#2161ef 89.11%);animation:uds-coauthor-inline-shimmer 5s infinite;border-radius:2px}.uds_coauthor_wrapper .inline #inline_preview #inline_error{position:absolute;top:8px;left:8px;text-align:left;display:flex;color:#c42b1c}.uds_coauthor_wrapper .inline #inline_options_popup{position:absolute}.uds_coauthor_wrapper .inline #inline_options_popup .buttons{display:flex;justify-content:flex-end;gap:4px;height:30px;overflow:hidden}.uds_coauthor_wrapper .inline #inline_options_popup .buttons .inline-button.secondary:hover{background:rgba(0,0,0,.07);border:1px solid rgba(0,0,0,.2)}.uds_coauthor_wrapper .inline #inline_options_popup .buttons .inline-button.light{border:1px solid transparent;background:#fff;color:#000 !important;font-weight:500;padding:2px}.uds_coauthor_wrapper .inline #inline_options_popup .buttons .inline-button.light svg{width:16px;height:16px}.uds_coauthor_wrapper .inline #inline_options{position:relative}.uds_coauthor_wrapper .inline #inline_options .floating-menu{display:flex;position:absolute;top:-46px;left:25px;border-radius:8px;gap:4px;background:#fff;box-shadow:0 4px 8px rgba(0,0,0,.14),0 0 2px rgba(0,0,0,.12);padding:8px;height:40px;align-items:center;justify-content:space-around;box-sizing:border-box}.uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option{padding:4px;border-radius:4px;display:flex;align-items:center;gap:4px;font-size:12px}.uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option .check{display:flex;align-items:center}.uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option .check svg{stroke:#000}.uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option:hover{background:rgba(0,0,0,.07);cursor:pointer}.uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option.selected{background:rgba(0,0,0,.07)}@keyframes slideInFromLeft{0%{transform:translateX(-24px);opacity:0}100%{transform:translateX(0);opacity:1}}.slide-in{animation:slideInFromLeft .5s ease-out}@keyframes slideOutToBottom{0%{transform:translateY(0);opacity:1}100%{transform:translateY(24px);opacity:0}}.slide-out{animation:slideOutToBottom .5s ease-out 200ms}@keyframes fadeAndScaleOpen{0%{transform:scale(.75);opacity:0;transform-origin:bottom left}100%{transform-origin:bottom left;transform:scale(1);opacity:1}}.scale-open{animation:fadeAndScaleOpen 500ms cubic-bezier(0,.4,0,1)}@keyframes fadeAndScaleClose{0%{transform-origin:bottom left;transform:scale(1);opacity:1}100%{transform-origin:bottom left;transform:scale(.9);opacity:0}}.scale-close{animation:fadeAndScaleClose 250ms cubic-bezier(.2,0,.9,.9)}@keyframes uds-coauthor-shimmer{100%{-webkit-mask-position:190px}}@keyframes uds-coauthor-inline-shimmer{0%{transform:translateX(-95%)}100%{transform:translateX(0%)}}.uds_coauthor_wrapper .mobile{padding:16px;display:flex;flex-direction:column;align-items:center;height:100vh;box-sizing:border-box;background-color:#fff;font-family:"Roboto",Roboto,Arial,Verdana,sans-serif}.uds_coauthor_wrapper .mobile .screen{width:100%;height:100%;display:flex;flex-direction:column}.uds_coauthor_wrapper .mobile section{width:100%;display:flex;flex-direction:column}.uds_coauthor_wrapper .mobile header{display:flex;justify-content:space-between;align-items:center;height:44px;font-size:16px}.uds_coauthor_wrapper .mobile span.heading{font-size:13px;height:40px;line-height:40px}.uds_coauthor_wrapper .mobile textarea{font-size:16px;line-height:24px;font-family:"Roboto",Roboto,Arial,Verdana,sans-serif;box-shadow:none;border:1px solid #d7d7d7}.uds_coauthor_wrapper .mobile .button{font-size:13px}.uds_coauthor_wrapper .mobile #mobile_input textarea#prompt_text{min-height:120px;max-height:400px}.uds_coauthor_wrapper .mobile #mobile_preview .preview{width:100%;position:relative;display:flex;flex-direction:column;margin-top:0}.uds_coauthor_wrapper .mobile #mobile_preview .preview #preview_text{min-height:120px;max-height:450px}.uds_coauthor_wrapper .mobile #mobile_preview .preview #letter_counter{position:absolute;bottom:25px;left:12px;width:100px;margin-bottom:0;z-index:1}.uds_coauthor_wrapper .mobile #mobile_preview .preview .preview-options{position:absolute;bottom:1px;right:20px;width:calc(100% - 22px)}.uds_coauthor_wrapper .mobile #mobile_preview .preview #error,.uds_coauthor_wrapper .mobile #mobile_preview .preview #shimmer{top:18px}.uds_coauthor_wrapper .mobile #mobile_options{margin:12px 0}.uds_coauthor_wrapper .mobile #mobile_options #stop_button{display:flex;align-items:center}.uds_coauthor_wrapper .mobile #mobile_options #stop_button div[role='presentation']{display:flex}.uds_coauthor_wrapper .mobile #mobile_options #stop_button svg{width:24px;height:24px}.uds_coauthor_wrapper .mobile #mobile_options #stop_button svg path{fill:#174ae4}.uds_coauthor_wrapper .mobile #copy_button{color:#fff}.uds_coauthor_wrapper .mobile #compose_button{margin-bottom:20px}.uds_coauthor_wrapper .mobile #mobile_options #mobile_adjust_style{height:48px;display:flex;gap:8px;font-size:16px;align-items:center}.uds_coauthor_wrapper .mobile #mobile_options #mobile_adjust_style .text{display:flex;flex-direction:column}.uds_coauthor_wrapper .mobile #mobile_options #mobile_adjust_style .subtext{font-size:13px;text-overflow:ellipsis}.uds_coauthor_wrapper .mobile #mobile_options #mobile_adjust_style:hover{cursor:pointer}.uds_coauthor_wrapper .mobile #mobile_options #mobile_adjust_style #mobile_arrow_icon{margin-left:auto}.uds_coauthor_wrapper .mobile #mobile_actions{margin-top:auto}.uds_coauthor_wrapper .mobile #mobile_overlay{position:absolute;top:0;left:0;z-index:2;width:100%;height:100vh;background:rgba(0,0,0,.54)}.slideInFromBottom{animation-name:mobileOverlaySlideIn;animation-duration:.5s;animation-timing-function:cubic-bezier(0,0,0,1);animation-fill-mode:forwards}.slideOutToBottom{animation-name:mobileOverlaySlideOut;animation-duration:.5s;animation-timing-function:cubic-bezier(0,0,0,1);animation-fill-mode:forwards}.fadeOut{animation-name:mobileFadeOut;animation-duration:.5s;animation-timing-function:cubic-bezier(0,0,0,1);animation-fill-mode:forwards}.uds_coauthor_wrapper .mobile #mobile_overlay .back{height:20%}.uds_coauthor_wrapper .mobile #mobile_overlay .content{background:#fff;padding:12px 0;height:60%;position:absolute;bottom:0;width:100%;box-sizing:border-box;border-radius:16px 16px 0 0}.uds_coauthor_wrapper .mobile #mobile_overlay .content section{overflow:scroll;height:100%}.uds_coauthor_wrapper .mobile #mobile_overlay .content header{height:56px;border-bottom:1px solid #e2e2e2;padding:0 16px}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options{margin:16px}.uds_coauthor_wrapper .mobile #mobile_apply_button{color:#174ae4}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options lh{padding:5px;line-height:24px;font-size:13px;color:#616161}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li{line-height:24px;height:48px;display:flex;align-items:center;gap:16px;padding-left:40px;font-size:16px}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li .icon{display:none}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li:hover{cursor:pointer}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li.selected{padding-left:0}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li.selected .icon{display:block}.uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li.selected svg path{fill:#174ae4}@keyframes mobileOverlaySlideIn{0%{transform:translateY(200px);opacity:0}100%{transform:translateY(0);opacity:1}}@keyframes mobileOverlaySlideOut{0%{transform:translateY(0);opacity:1}100%{transform:translateY(200px);opacity:0}}@keyframes mobileFadeOut{0%{opacity:1}100%{opacity:0}}.uds_coauthor_wrapper .sidebar.union{background:#fff}.uds_coauthor_wrapper .sidebar.union.no-header{margin-top:0;height:100%}.uds_coauthor_wrapper .sidebar.union.header-applied{margin-top:32px;height:calc(100% - 32px)}.uds_coauthor_wrapper .union .child{box-shadow:none;border-radius:0}.uds_coauthor_wrapper .union .actions{display:flex;gap:12px;margin-top:16px}.uds_coauthor_wrapper .union .button:not(.disabled):not(.secondary){background:#464feb}.uds_coauthor_wrapper .union #share_button{color:#fff;display:flex;gap:4px;justify-content:center;align-items:center;line-height:6px}.uds_coauthor_wrapper .union #export_button{color:#464feb;display:flex;gap:4px;justify-content:center;align-items:center;line-height:6px}.uds_coauthor_wrapper .union #export_button.disabled{color:#d1dbfa}.uds_coauthor_wrapper .union .button.secondary:not(.disabled){border-color:#464feb}.uds_coauthor_wrapper .union .tag.selected{background:#464feb;border-color:#464feb}.uds_coauthor_wrapper .union .format-option.selected .illustration{border-color:#464feb}#bpage.b_drk .uds_coauthor_wrapper{color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .header-banner-section{background:#484644}#bpage.b_drk .uds_coauthor_wrapper .header-banner-section svg{fill:#6ccb5f}#bpage.b_drk .uds_coauthor_wrapper .header-banner-section a#protected_link{color:#6ccb5f}#bpage.b_drk .uds_coauthor_wrapper textarea{color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .child{background:#2b2b2b;box-shadow:0 2px 4px rgba(255,255,255,.14),0 0 2px rgba(255,255,255,.12)}#bpage.b_drk .uds_coauthor_wrapper textarea{border-color:#686868;box-shadow:0 1px 1px #7a7a7a;background:#333}#bpage.b_drk .uds_coauthor_wrapper textarea:focus,#bpage.b_drk .uds_coauthor_wrapper input:focus,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button,#bpage.b_drk .uds_coauthor_wrapper #change_suggestions_input,#bpage.b_drk .uds_coauthor_wrapper #submit_change_suggestion_button{box-shadow:0 2px 0 #a2b7f4}#bpage.b_drk .uds_coauthor_wrapper textarea:focus-visible{border:1px solid #686868}#bpage.b_drk .uds_coauthor_wrapper #letter_counter{background:#333}#bpage.b_drk .uds_coauthor_wrapper .button{background:linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%);color:#fff}#bpage.b_drk .uds_coauthor_wrapper .button:hover:not(.disabled){box-shadow:0 1.2px 3.6px rgba(255,255,255,.1),0 6.4px 14.4px rgba(255,255,255,.13);cursor:pointer;text-decoration:none}#bpage.b_drk .uds_coauthor_wrapper .button.disabled{background:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%)}#bpage.b_drk .uds_coauthor_wrapper .button.secondary{background:none;background-color:rgba(255,255,255,.1);border-color:#a2b7f4;color:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper .button.secondary:hover:not(.disabled){background-color:rgba(255,255,255,.2);box-shadow:none}#bpage.b_drk .uds_coauthor_wrapper .button.disabled{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.1)}#bpage.b_drk .uds_coauthor_wrapper .tag{color:#a2b7f4;border-color:#a2b7f4;background:rgba(255,255,255,.1)}#bpage.b_drk .uds_coauthor_wrapper .tag:focus-visible,#bpage.b_drk .uds_coauthor_wrapper .format-option:focus-visible,#bpage.b_drk .uds_coauthor_wrapper #compose_button:focus-visible,#bpage.b_drk .uds_coauthor_wrapper .item:focus-visible,#bpage.b_drk .uds_coauthor_wrapper #detached_copy_button:focus-visible{border-color:#000;outline:2px solid #fff}#bpage.b_drk .uds_coauthor_wrapper .tag.selected{background:#a2b7f4;color:#000}#bpage.b_drk .uds_coauthor_wrapper .tag:hover,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.selected{background:rgba(255,255,255,.2)}#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.selected>svg>path{fill:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper .tag.selected:hover,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button.tag.selected:hover{background:#a2b7f4;color:#000}#bpage.b_drk .uds_coauthor_wrapper #custom_tone_plus_button svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button svg>path,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button svg>path{fill:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper #custom_tone_plus_button.selected svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button.selected svg>path{fill:#000}#bpage.b_drk .uds_coauthor_wrapper input,#bpage.b_drk .uds_coauthor_wrapper input:focus,#bpage.b_drk .uds_coauthor_wrapper input:focus-visible,#bpage.b_drk .uds_coauthor_wrapper input:hover{color:#fff !important;background-color:#3b3a39 !important}#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button:not(.disabled) span:hover,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button:not(.disabled) span:hover,#bpage.b_drk .uds_coauthor_wrapper #submit_change_suggestion_button,#bpage.b_drk .uds_coauthor_wrapper #submit_change_suggestion_button:not(.disabled) span:hover{color:#d6d6d6 !important;background-color:#3b3a39 !important}#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button.disabled{color:#5c5c5c !important}#bpage.b_drk .uds_coauthor_wrapper .format-option p{color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .format-option .illustration{border-color:#2b2b2b;background:rgba(255,255,255,.1)}#bpage.b_drk .uds_coauthor_wrapper .format-option:hover .illustration{background:rgba(255,255,255,.2)}#bpage.b_drk .uds_coauthor_wrapper .format-option .illustration .objectS{stroke:#fff}#bpage.b_drk .uds_coauthor_wrapper .format-option .illustration .objectF{fill:#fff}#bpage.b_drk .uds_coauthor_wrapper .format-option.selected .illustration{border-color:#a2b7f4;background:rgba(255,255,255,.2)}#bpage.b_drk .uds_coauthor_wrapper .option-section{border-color:#545454}#bpage.b_drk .uds_coauthor_wrapper .messaging-section{color:#6ccb5f}#bpage.b_drk .uds_coauthor_wrapper .messaging-section svg{fill:#6ccb5f}#bpage.b_drk .uds_coauthor_wrapper .header.secondary{color:#fff}#bpage.b_drk .uds_coauthor_wrapper .preview-options{background:#333}#bpage.b_drk .uds_coauthor_wrapper .preview-options .item svg>path,#bpage.b_drk .uds_coauthor_wrapper #submit_change_suggestion_button svg>path{fill:#fff}#bpage.b_drk .uds_coauthor_wrapper .preview-options .item:hover{background:rgba(255,255,255,.2)}#bpage.b_drk .uds_coauthor_wrapper .preview-options .item.disabled:hover{background:#333}#bpage.b_drk .uds_coauthor_wrapper .preview-options .item.disabled svg>path,#bpage.b_drk .uds_coauthor_wrapper #submit_change_suggestion_button.disabled svg>path{fill:#7a7a7a}#bpage.b_drk .uds_coauthor_wrapper .header svg>path{fill:#fff}#bpage.b_drk .uds_coauthor_wrapper div.preview #shimmer .line{background:#686868}#bpage.b_drk .uds_coauthor_wrapper #compose_button{color:#fff}#bpage.b_drk .uds_coauthor_wrapper #compose_button.disabled{color:rgba(255,255,255,.54)}#bpage.b_drk .uds_coauthor_wrapper #insert_button,#bpage.b_drk .uds_coauthor_wrapper #detached_copy_button{color:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper #insert_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #detached_copy_button.disabled{color:rgba(255,255,255,.54)}#bpage.b_drk .uds_coauthor_wrapper div.preview #error{color:#ed8e85}#bpage.b_drk .uds_coauthor_wrapper .inline{background:#2b2b2b;box-shadow:0 2px 4px rgba(255,255,255,.14),0 0 2px rgba(255,255,255,.12)}#bpage.b_drk .uds_coauthor_wrapper .inline header{color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline header #preview_badge{color:#fff !important;background:#333}#bpage.b_drk .uds_coauthor_wrapper .inline #close_button svg path{fill:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.primary{background:linear-gradient(81.62deg,#2870ea 8.72%,#1b4aef 85.01%) !important;color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.secondary{background:#333 !important;border:1px solid #686868 !important;color:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.secondary:hover{background:rgba(255,255,255,.2) !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.secondary svg path{fill:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.light{background:transparent !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.light:hover{background:rgba(255,255,255,.2) !important}#bpage.b_drk .uds_coauthor_wrapper .inline-button.light svg path{fill:#fff !important}#bpage.b_drk .uds_coauthor_wrapper .inline #inline_preview_text:disabled{background:#2b2b2b}#bpage.b_drk .uds_coauthor_wrapper .inline #inline_options .floating-menu{background:#2b2b2b;box-shadow:0 2px 4px rgba(255,255,255,.14),0 0 2px rgba(255,255,255,.12)}#bpage.b_drk .uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option:hover{background:rgba(255,255,255,.1) !important}#bpage.b_drk .uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option.selected{background:rgba(255,255,255,.1) !important}#bpage.b_drk .uds_coauthor_wrapper .inline #inline_options .floating-menu .fm-option .check svg{stroke:none}#bpage.b_drk .uds_coauthor_wrapper .mobile{background:none}#bpage.b_drk .uds_coauthor_wrapper .mobile svg path{fill:#fff}#bpage.b_drk .uds_coauthor_wrapper .mobile #mobile_overlay .content{background:#2b2b2b}#bpage.b_drk .uds_coauthor_wrapper .mobile #mobile_apply_button{color:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper .mobile #mobile_overlay #mobile_style_options li.selected svg path{fill:#a2b7f4}.uds_coauthor_wrapper .mobile #mobile_options #stop_button svg path{fill:#a2b7f4}#bpage.b_drk .uds_coauthor_wrapper .sidebar.union{background:none}#bpage.b_drk .uds_coauthor_wrapper .union .child{box-shadow:none;border-radius:0}@media screen and (-ms-high-contrast:active){.uds_coauthor_wrapper .button{background:Window;border:2px solid}.uds_coauthor_wrapper .tag,.uds_coauthor_wrapper #custom_tone_edit_button{color:LinkText;border-color:WindowText}.uds_coauthor_wrapper #custom_tone_plus_button svg>path,.uds_coauthor_wrapper #custom_tone_edit_button svg>path,.uds_coauthor_wrapper #add_change_suggestion_button svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_plus_button svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button svg>path,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button svg>path{fill:WindowText}.uds_coauthor_wrapper .tag.selected,.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected,.uds_coauthor_wrapper .tag:hover,.uds_coauthor_wrapper #custom_tone_edit_button:hover,.uds_coauthor_wrapper #add_change_suggestion_button.selected,#bpage.b_drk .uds_coauthor_wrapper .tag.selected,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button.tag.selected,#bpage.b_drk .uds_coauthor_wrapper .tag:hover,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button:hover,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.selected{border-color:Highlight;background:Highlight}.uds_coauthor_wrapper .tag.selected span,.uds_coauthor_wrapper .tag:hover span,.uds_coauthor_wrapper #custom_tone_edit_button:hover span{color:HighlightText;background:Highlight}.uds_coauthor_wrapper .tag.selected svg,.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected svg,.uds_coauthor_wrapper .tag:hover svg,.uds_coauthor_wrapper #custom_tone_edit_button:hover svg{background:Highlight}.uds_coauthor_wrapper #custom_tone_plus_button.tag.selected svg>path,.uds_coauthor_wrapper #custom_tone_edit_button.tag.selected svg>path,.uds_coauthor_wrapper #add_change_suggestion_button.tag.selected svg>path,.uds_coauthor_wrapper #custom_tone_plus_button:hover svg>path,.uds_coauthor_wrapper #custom_tone_edit_button:hover svg>path,.uds_coauthor_wrapper #add_change_suggestion_button:hover svg>path,.uds_coauthor_wrapper #add_change_suggestion_button.selected svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_plus_button.tag.selected svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button.tag.selected svg>path,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.tag.selected svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_plus_button:hover svg>path,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_edit_button:hover svg>path,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button:hover svg>path,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.selected svg>path{fill:HighlightText}.uds_coauthor_wrapper input,.uds_coauthor_wrapper input:focus,.uds_coauthor_wrapper input:focus-visible,.uds_coauthor_wrapper input:hover,.uds_coauthor_wrapper #custom_tone_add_button,.uds_coauthor_wrapper #custom_tone_save_button{border-style:solid}.uds_coauthor_wrapper .preview-options .item:hover,#bpage.b_drk .uds_coauthor_wrapper .preview-options .item:hover{background:Highlight}.uds_coauthor_wrapper .header svg>path{fill:WindowText}.uds_coauthor_wrapper .preview-options svg>path,.uds_coauthor_wrapper #submit_change_suggestion_button svg>path{fill:WindowText}.uds_coauthor_wrapper .preview-options .item:hover svg>path,.uds_coauthor_wrapper #submit_change_suggestion_button:hover svg>path{fill:LinkText}.uds_coauthor_wrapper .format-option.selected .illustration,.uds_coauthor_wrapper .format-option:hover .illustration,#bpage.b_drk .uds_coauthor_wrapper .format-option.selected .illustration,#bpage.b_drk .uds_coauthor_wrapper .format-option:hover .illustration{border-color:Highlight;background:Highlight}.uds_coauthor_wrapper .format-option.selected .illustration svg,.uds_coauthor_wrapper .format-option:hover .illustration svg{background:Highlight}.uds_coauthor_wrapper .format-option.selected .illustration .objectS,.uds_coauthor_wrapper .format-option:hover .illustration .objectS,#bpage.b_drk .uds_coauthor_wrapper .format-option.selected .illustration .objectS,#bpage.b_drk .uds_coauthor_wrapper .format-option:hover .illustration .objectS{stroke:ButtonFace}.uds_coauthor_wrapper .format-option.selected .illustration .objectF,.uds_coauthor_wrapper .format-option:hover .illustration .objectF,#bpage.b_drk .uds_coauthor_wrapper .format-option.selected .illustration .objectF,#bpage.b_drk .uds_coauthor_wrapper .format-option:hover .illustration .objectF{fill:ButtonFace}.uds_coauthor_wrapper #compose_button,.uds_coauthor_wrapper #insert_button,.uds_coauthor_wrapper #custom_tone_add_button,.uds_coauthor_wrapper #custom_tone_save_button,.uds_coauthor_wrapper #detached_copy_button,#bpage.b_drk .uds_coauthor_wrapper #compose_button,#bpage.b_drk .uds_coauthor_wrapper #insert_button,#bpage.b_drk .uds_coauthor_wrapper #detached_copy_button,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button{border-color:WindowText;color:WindowText}.uds_coauthor_wrapper #compose_button.disabled,.uds_coauthor_wrapper #insert_button.disabled,.uds_coauthor_wrapper #custom_tone_add_button.disabled,.uds_coauthor_wrapper #custom_tone_save_button.disabled,.uds_coauthor_wrapper #detached_copy_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #compose_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #insert_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #detached_copy_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button.disabled,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button.disabled{border-color:GrayText !important;color:GrayText !important}.uds_coauthor_wrapper #custom_tone_add_button.disabled span,.uds_coauthor_wrapper #custom_tone_save_button.disabled span,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_add_button.disabled span,#bpage.b_drk .uds_coauthor_wrapper #custom_tone_save_button.disabled span{color:GrayText}.uds_coauthor_wrapper div.preview #shimmer .line{background:WindowText}.uds_coauthor_wrapper textarea:focus{box-shadow:0 2px 0 #174ae4}.uds_coauthor_wrapper textarea:focus-visible{border-color:#e2e2e2}.uds_coauthor_wrapper #add_change_suggestion_button.selected:hover,#bpage.b_drk .uds_coauthor_wrapper #add_change_suggestion_button.selected:hover{background:Window}}</style><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
var Shared;(function(n){function t(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return n.replace(/\{([0-9]+)\}/g,function(n,t){var r=parseInt(t);return r>=0&&r<i.length?i[r]:""})}n.formatString=t})(Shared||(Shared={}));
//]]></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" data-ajaxResKey="rms:answers:CodexBundle:cib-bundle" src="/rp/CjV0wm9RoQDMfj69YKz3x7N22vo.br.js"></script><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
_w["_udsCoAuthorConfig"] ={"EnableSecureConversation":true,"AddOptionsSets":["soedgeca"],"RemoveOptionsSets":[],"DevMode":false,"UseHarmonyImaginitive":false,"ComposeUnderVPTest":false,"ComposeInline":false,"Source":"edge_coauthor_prod","ComposeSidebarCustomization":false,"DetachedUX":false,"GetConversationId":false,"CodexV2":false,"ComposeMobile":false,"ComposeUnion":false,"IsBCE":false,"ComposeBalanced":false,"ComposeCaptcha":false,"ComposeCaptchaChallengeEndpoint":"https://www.bing.com/turing/captcha/challenge"};;
//]]></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" src="/rp/Gass0juumFCN_7qHD2eljQzsu98.br.js"></script><div id="b_content" class=""><ol id="b_results" class=""><li class="b_ans"><div class="b_uns_container_ans b_uns_inst_ans" data-ans-name="Underside:Compose"><div class="underside-inst-module" data-inst-name="USI_Module_CoAuthor"><div id="underside-coauthor-module"
class="b_uns_module b_uns_module_fullbleed" data-content-available="true" data-finalized="true" data-load-time=""><div class="no-title" role="heading" aria-level="2" aria-label="Module Heading"></div><div class="uds_coauthor_wrapper"><div class="sidebar no-header"><div class="child"><div class="header secondary" role="heading" id="input_heading">著作领域</div><textarea id="prompt_text" name="写入有关输入的信息" autocomplete="off" placeholder="告诉我们你想要写的内容" aria-details="letter_counter"></textarea><div id="letter_counter" role="meter" aria-valuenow="0" aria-valuemin="0"></div><div class="option-section" expanded="true"><div class="header" role="heading" id="tone_heading">语气</div><div class="panel" role="group" aria-labelledby="tone_heading"><div class="tone-options tags" role="radiogroup"></div><div class="custom-tone-edit-container"><input name="自定义音调输入" id="custom_tone_input" class='hidden' type="text" autocomplete="off" aria-label="输入自定义音调" placeholder="例如,放松的" /><div id="custom_tone_add_button" name="添加自定义音调" class='hidden' role="button" title="添加" aria-label="添加自定义音调"><span>添加</span></div><div id="custom_tone_save_button" name="保存自定义音调" class='hidden' role="button" title="保存" aria-label="保存自定义音调"><span>保存</span></div></div></div></div><div class="option-section" expanded="true"><div class="header" role="heading" id="format_heading">格式</div><div class="panel" role="group" aria-labelledby="format_heading"><div class="format-options" role="radiogroup"></div></div></div><div class="option-section" expanded="true"><div class="header" role="heading" id="length_heading">长度</div><div class="panel" role="group" aria-labelledby="length_heading"><div class="length-options tags" role="radiogroup"></div></div></div><a class="button linkBtn" name="生成草稿" role="button" id="compose_button" aria-label="生成草稿" target="_top" _ctf="rdr_T" h="ID=SERP,5056.1">生成草稿</a></div><div class="child"><div class="header" role="heading" id="preview_heading">预览</div><div id="disclaimer_box" class="hidden"></div><div class="preview"><textarea id="preview_text" autocomplete="off" aria-label="预览生成的文本" placeholder="AI 生成的内容将显示在此处"></textarea><div class="preview-options"><div id="conversation_id_copy_button" name="ID" role="button" class="item hidden" title="ID" aria-label="ID">ID</div><div id="stop_button" name="Stop generating draft" role="button" class="item" title="停止" aria-label="Stop generating draft"></div><div id="previous_button" name="上一个草稿" role="button" class="item" title="上一个草稿" aria-label="上一个草稿"></div><div id="next_button" name="下一个草稿" role="button" class="item" title="下一个草稿" aria-label="下一个草稿"></div><div id="copy_button" name="复制" role="button" class="item" title="复制" aria-label="复制"></div><div id="regenerate_button" name="重新生成草稿" role="button" class="item" title="重新生成草稿" aria-label="重新生成草稿"></div></div><div id="shimmer" class='hidden'><div class='line'></div><div class='line'></div><div class='line'></div></div><div id="error" class='hidden'></div></div><div id="change_suggestions"><div class="panel" role="group"><div id="change_suggestions_pills" class="change-suggestions-options tags hidden"></div><div id="custom_change_suggestion_container"><input name="自定义建议输入" id="change_suggestions_input" type="text" class="hidden" autocomplete="off" placeholder="告诉我是否要更改任何内容" aria-label="输入自定义建议" /><div id="submit_change_suggestion_button" name="使用建议重新生成" role="button" class="hidden disabled" title="使用建议重新生成" aria-label="使用建议重新生成"></div></div></div></div><a id="insert_button" name="添加到网站" role="button" aria-label="添加到网站" class="button secondary disabled linkBtn" target="_top" _ctf="rdr_T" h="ID=SERP,5056.2">添加到网站</a></div></div><span id="aria_alert" role="alert" class='aria-alert'><span class="hidden">" "</span></span><span id="aria_alert_polite" aria-live="polite" class='aria-alert'><span class="hidden">正在生成文本</span></span></div></div></div></div></li><li class="b_ans"><div class="b_uns_container_ans b_uns_inst_ans" data-ans-name="Underside:ServerNavigate"></div></li></ol></div><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
var customEvents=require("event.custom");customEvents.fire("onHTML");define("RMSBootstrap",["require","exports"],function(n,t){function f(){i.push(r.call(arguments))}function e(){for(var n=0;n<i.length;++n)_w.rms.js.apply(null,r.call(i[n],0))}var u,i,r;t.__esModule=!0;t.replay=void 0;u=n("event.custom");i=[];_w.rms={};r=[].slice;_w.rms.js=f;t.replay=e;u.bind("onPP",function(){for(var u,t,f,n,r=0;r<i.length;r++)for(u=i[r],t=0;t<u.length;t++)if(f=u[t]["A:rms:answers:Shared:BingCore.RMSBundle"],f){n=_d.createElement("script");n.setAttribute("data-rms","1");n.setAttribute("crossorigin","anonymous");n.src=f;n.type="text/javascript";setTimeout(function(){_d.body.appendChild(n)},0);u.splice(t,1);break}},!0)});(function(n,t){onload=function(){_G.BPT=new Date;n&&n();!_w.sb_ppCPL&&t&&sb_st(function(){t(new Date)},0)}})(_w.onload,_w.si_PP);sj_be(_d.body, 'load', function(){if(_w.lb)lb();}, false);;_G!==undefined&&_G.EF!==undefined&&_G.EF.bmasynctrigger===1&&window.requestAnimationFrame!==undefined&&document.visibilityState!==undefined&&document.visibilityState==="visible"?requestAnimationFrame(function(){_G.EF.bmasynctrigger2===1?requestAnimationFrame(function(){BM.trigger()}):_G.EF.bmasynctrigger3===1?requestAnimationFrame(function(){setTimeout(function(){BM.trigger()},0)}):setTimeout(function(){BM.trigger()},0)}):BM.trigger();var Windchime;(function(n){var t;(function(n){var t;(function(n){n.PostMessageMigrationMap=new Map;n.PostMessageMigrationMap.set("ClosePopup","Discover.CoAuthor.ClosePopup");n.PostMessageMigrationMap.set("FrameReady","Discover.CoAuthor.FrameReady");n.PostMessageMigrationMap.set("InsertToPage","Discover.CoAuthor.InsertToPage");n.PostMessageMigrationMap.set("LogErrorsTelemetry","Discover.CoAuthor.LogErrorTelemetry");n.PostMessageMigrationMap.set("LogPerformanceTelemetry","Discover.CoAuthor.LogPerformanceTelemetry");n.PostMessageMigrationMap.set("LogUserActionsTelemetry","Discover.CoAuthor.LogUserActionsTelemetry");n.PostMessageEventName="Discover.Compose.Message";n.ComposeUserActionMap=new Map;n.ComposeUserActionMap.set(0,"CommonToneOptionClicked");n.ComposeUserActionMap.set(1,"CommonLengthOptionClicked");n.ComposeUserActionMap.set(2,"CommonFormatOptionClicked");n.ComposeUserActionMap.set(100,"SidepaneGenerateButtonClicked");n.ComposeUserActionMap.set(101,"SidepaneChangeSuggestionClicked");n.ComposeUserActionMap.set(102,"SidepaneAddButtonChangeSuggestionClicked");n.ComposeUserActionMap.set(103,"SidepaneSubmitButtonChangeSuggestionClicked");n.ComposeUserActionMap.set(104,"SidepaneCopyButtonClicked");n.ComposeUserActionMap.set(105,"SidepaneStopButtonClicked");n.ComposeUserActionMap.set(106,"SidepanePlusButtonCustomToneClicked");n.ComposeUserActionMap.set(107,"SidepaneAddButtonCustomToneClicked");n.ComposeUserActionMap.set(108,"SidepaneEditButtonCustomToneClicked");n.ComposeUserActionMap.set(109,"SidepaneSaveButtonCustomToneClicked");n.ComposeUserActionMap.set(110,"SidepanePreviousButtonClicked");n.ComposeUserActionMap.set(111,"SidepaneNextButtonClicked");n.ComposeUserActionMap.set(112,"SidepaneInsertButtonClicked");n.ComposeUserActionMap.set(113,"SidepaneTryAgainButtonClicked");n.ComposeUserActionMap.set(114,"SidepaneModifiedPreview");n.ComposeUserActionMap.set(200,"InlineTryAgainButtonClicked");n.ComposeUserActionMap.set(201,"InlineAdjustButtonClicked");n.ComposeUserActionMap.set(202,"InlineCloseAdjustButtonClicked");n.ComposeUserActionMap.set(203,"InlineCloseButtonClicked");n.ComposeUserActionMap.set(204,"InlineRewriteButtonClicked");n.ComposeUserActionMap.set(205,"InlineFloatingMenuToneOptionClicked");n.ComposeUserActionMap.set(206,"InlineFloatingMenuLengthOptionClicked");n.ComposeUserActionMap.set(207,"InlineFloatingMenuFormatOptionClicked");n.ComposeUserActionMap.set(208,"InlineInsertButtonClicked");n.ComposeUserActionMap.set(209,"InlineModifiedPreview");n.ComposeUserActionMap.set(300,"DetachedCopyButtonClicked");n.ComposeUserActionMap.set(400,"MobileGenerateButtonClicked");n.ComposeUserActionMap.set(401,"MobilePreviewBackButtonClicked");n.ComposeUserActionMap.set(402,"MobileOverlayBackButtonClicked");n.ComposeUserActionMap.set(403,"MobileOverlayApplyButtonClicked");n.ComposeUserActionMap.set(404,"MobileAdjustStylesButtonClicked");n.ComposeUserActionMap.set(405,"MobileCopyButtonClicked");n.ComposeUserActionMap.set(406,"MobileStopButtonClicked");n.ComposeUserActionMap.set(407,"MobilePrevButtonClicked");n.ComposeUserActionMap.set(408,"MobileNextButtonClicked");n.ComposeSourceMap=new Map;n.ComposeSourceMap.set(0,"Sidepane");n.ComposeSourceMap.set(1,"Inline");n.ComposeSourceMap.set(2,"Detached");n.ComposeSourceMap.set(3,"Mobile");n.ComposeSourceMap.set(4,"Union");n.QueryParam_SetText="setText";n.QueryParam_SetText_Max_Length=1500;n.paragraphSVG='<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="58" height="58" rx="8" fill="none"/>\n <line x1="11.5" y1="21.5" x2="46.5" y2="21.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="14.5" x2="46.5" y2="14.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="28.5" x2="46.5" y2="28.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="35.5" x2="46.5" y2="35.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="42.5" x2="28.5" y2="42.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <\/svg>';n.paragraphShortSVG='<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="58" height="58" rx="8" fill="none"/>\n <line x1="11.5" y1="18.5" x2="46.5" y2="18.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="25.5" x2="46.5" y2="25.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="32.5" x2="46.5" y2="32.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="11.5" y1="39.5" x2="28.5" y2="39.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <\/svg>';n.blogSVG='<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="58" height="58" rx="8" fill="none"/>\n <rect x="11" y="11" width="36" height="36" rx="8" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="18.5" y1="18.5" x2="39.5" y2="18.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="18.5" y1="23.5" x2="39.5" y2="23.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="18.5" y1="28.5" x2="39.5" y2="28.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="18.5" y1="33.5" x2="39.5" y2="33.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="18.5" y1="38.5" x2="39.5" y2="38.5" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <\/svg>';n.bulletPointsSVG='<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect width="58" height="58" rx="8" fill="none"/>\n <line x1="16.5" y1="21.5" x2="48.5" y2="21.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="16.5" y1="29.5" x2="48.5" y2="29.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <line x1="16.5" y1="37.5" x2="48.5" y2="37.5" class="objectS" stroke="#6E6E6E" stroke-linecap="round" stroke-linejoin="round"/>\n <circle cx="10.5" cy="29.5" r="1.5" class="objectF" fill="#6E6E6E"/>\n <circle cx="10.5" cy="37.5" r="1.5" class="objectF" fill="#6E6E6E"/>\n <circle cx="10.5" cy="21.5" r="1.5" class="objectF" fill="#6E6E6E"/>\n <\/svg>';n.wandIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M16.5001 2C16.7762 2 17.0001 2.22386 17.0001 2.5V3H17.5001C17.7762 3 18.0001 3.22386 18.0001 3.5C18.0001 3.77614 17.7762 4 17.5001 4H17.0001V4.5C17.0001 4.77614 16.7762 5 16.5001 5C16.224 5 16.0001 4.77614 16.0001 4.5V4H15.5001C15.224 4 15.0001 3.77614 15.0001 3.5C15.0001 3.22386 15.224 3 15.5001 3H16.0001V2.5C16.0001 2.22386 16.224 2 16.5001 2ZM6.5001 6C6.77625 6 7.0001 5.77614 7.0001 5.5C7.0001 5.22386 6.77625 5 6.5001 5H6.0001V4.5C6.0001 4.22386 5.77625 4 5.5001 4C5.22396 4 5.0001 4.22386 5.0001 4.5V5H4.5001C4.22396 5 4.0001 5.22386 4.0001 5.5C4.0001 5.77614 4.22396 6 4.5001 6H5.0001V6.5C5.0001 6.77614 5.22396 7 5.5001 7C5.77625 7 6.0001 6.77614 6.0001 6.5V6H6.5001ZM15.5001 15C15.7762 15 16.0001 14.7761 16.0001 14.5C16.0001 14.2239 15.7762 14 15.5001 14H15.0001V13.5C15.0001 13.2239 14.7762 13 14.5001 13C14.224 13 14.0001 13.2239 14.0001 13.5V14H13.5001C13.224 14 13.0001 14.2239 13.0001 14.5C13.0001 14.7761 13.224 15 13.5001 15H14.0001V15.5C14.0001 15.7761 14.224 16 14.5001 16C14.7762 16 15.0001 15.7761 15.0001 15.5V15H15.5001ZM13.4346 6.56566C12.687 5.81812 11.475 5.81812 10.7275 6.56566L2.56067 14.7324C1.81311 15.4799 1.81311 16.6919 2.56066 17.4395C3.3082 18.187 4.52021 18.187 5.26776 17.4395L13.4346 9.27278C14.1821 8.52523 14.1821 7.31321 13.4346 6.56566ZM11.4346 7.27277C11.7916 6.91575 12.3704 6.91575 12.7275 7.27277C13.0845 7.6298 13.0845 8.20865 12.7274 8.56567L12.2501 9.04299L10.9572 7.7501L11.4346 7.27277ZM10.2501 8.4572L11.543 9.75009L4.56066 16.7324C4.20363 17.0894 3.62479 17.0894 3.26777 16.7324C2.91074 16.3754 2.91074 15.7965 3.26777 15.4395L10.2501 8.4572Z" fill="#212121"/>\n <\/svg>';n.textBoxIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.5 6C6.22386 6 6 6.22386 6 6.5C6 6.77614 6.22386 7 6.5 7H13.5C13.7761 7 14 6.77614 14 6.5C14 6.22386 13.7761 6 13.5 6H6.5ZM6 9.5C6 9.22386 6.22386 9 6.5 9H10.5C10.7761 9 11 9.22386 11 9.5C11 9.77614 10.7761 10 10.5 10H6.5C6.22386 10 6 9.77614 6 9.5ZM6.5 12C6.22386 12 6 12.2239 6 12.5C6 12.7761 6.22386 13 6.5 13H13.5C13.7761 13 14 12.7761 14 12.5C14 12.2239 13.7761 12 13.5 12H6.5ZM17 5.5C17 4.11929 15.8807 3 14.5 3H5.5C4.11929 3 3 4.11929 3 5.5V14.5C3 15.8807 4.11929 17 5.5 17H14.5C15.8807 17 17 15.8807 17 14.5V5.5ZM5.5 4H14.5C15.3284 4 16 4.67157 16 5.5V14.5C16 15.3284 15.3284 16 14.5 16H5.5C4.67157 16 4 15.3284 4 14.5V5.5C4 4.67157 4.67157 4 5.5 4Z" fill="#212121"/>\n <\/svg>';n.toneIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.8536 1.14645C15.6583 0.951184 15.3417 0.951184 15.1464 1.14645C14.9512 1.34171 14.9512 1.65829 15.1464 1.85355C16.2815 2.98857 16.875 4.72424 16.875 6.5C16.875 8.27576 16.2815 10.0114 15.1464 11.1464C14.9512 11.3417 14.9512 11.6583 15.1464 11.8536C15.3417 12.0488 15.6583 12.0488 15.8536 11.8536C17.2185 10.4886 17.875 8.47424 17.875 6.5C17.875 4.52576 17.2185 2.51143 15.8536 1.14645ZM13.8536 3.14645C13.6583 2.95118 13.3417 2.95118 13.1464 3.14645C12.9512 3.34171 12.9512 3.65829 13.1464 3.85355C13.7815 4.48857 14.125 5.47424 14.125 6.5C14.125 7.52576 13.7815 8.51143 13.1464 9.14645C12.9512 9.34171 12.9512 9.65829 13.1464 9.85355C13.3417 10.0488 13.6583 10.0488 13.8536 9.85355C14.7185 8.98857 15.125 7.72424 15.125 6.5C15.125 5.27576 14.7185 4.01143 13.8536 3.14645ZM4 7C4 4.79086 5.79086 3 8 3C10.2091 3 12 4.79086 12 7C12 9.20914 10.2091 11 8 11C5.79086 11 4 9.20914 4 7ZM8 4C6.34315 4 5 5.34315 5 7C5 8.65685 6.34315 10 8 10C9.65685 10 11 8.65685 11 7C11 5.34315 9.65685 4 8 4ZM1 14C1 12.8869 1.90315 12 3.00873 12L13 12C14.1045 12 15 12.8956 15 14C15 15.6912 14.1672 16.9663 12.865 17.7966C11.583 18.614 9.85474 19 8 19C6.14526 19 4.41697 18.614 3.13499 17.7966C1.83281 16.9663 1 15.6912 1 14ZM3.00873 13C2.44786 13 2 13.4467 2 14C2 15.3088 2.62226 16.2837 3.67262 16.9534C4.74318 17.636 6.26489 18 8 18C9.73511 18 11.2568 17.636 12.3274 16.9534C13.3777 16.2837 14 15.3088 14 14C14 13.4478 13.5522 13 13 13L3.00873 13Z" fill="#212121"/>\n <\/svg>';n.copyIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8 2C6.89543 2 6 2.89543 6 4V14C6 15.1046 6.89543 16 8 16H14C15.1046 16 16 15.1046 16 14V4C16 2.89543 15.1046 2 14 2H8ZM7 4C7 3.44772 7.44772 3 8 3H14C14.5523 3 15 3.44772 15 4V14C15 14.5523 14.5523 15 14 15H8C7.44772 15 7 14.5523 7 14V4ZM4 6.00001C4 5.25973 4.4022 4.61339 5 4.26758V14.5C5 15.8807 6.11929 17 7.5 17H13.7324C13.3866 17.5978 12.7403 18 12 18H7.5C5.567 18 4 16.433 4 14.5V6.00001Z" fill="#1A1A1A"/>\n <\/svg>';n.generateIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.4142 3.63503C11.6095 3.43977 11.6095 3.12319 11.4142 2.92792L9.29289 0.806603C9.09763 0.611341 8.78104 0.611341 8.58578 0.806603C8.39052 1.00186 8.39052 1.31845 8.58578 1.51371L9.58264 2.51056C7.80518 2.60911 6.05488 3.33754 4.69671 4.6957C1.76776 7.62463 1.76776 12.3734 4.69671 15.3023C4.95359 15.5592 5.2247 15.7937 5.50757 16.0058C5.72852 16.1714 6.04191 16.1266 6.20756 15.9057C6.3732 15.6847 6.32838 15.3713 6.10743 15.2057C5.86235 15.0219 5.6271 14.8185 5.40382 14.5952C2.8654 12.0568 2.8654 7.94121 5.40382 5.40281C6.68997 4.11666 8.38002 3.48223 10.0664 3.49934C10.0915 3.49959 10.1162 3.49799 10.1404 3.49466L8.58578 5.04924C8.39052 5.24451 8.39052 5.56109 8.58578 5.75635C8.78104 5.95161 9.09763 5.95161 9.29289 5.75635L11.4142 3.63503ZM8.58578 16.363C8.39052 16.5582 8.39052 16.8748 8.58578 17.0701L10.7071 19.1914C10.9024 19.3866 11.219 19.3866 11.4142 19.1914C11.6095 18.9961 11.6095 18.6795 11.4142 18.4843L10.4174 17.4874C12.1948 17.3889 13.9451 16.6605 15.3033 15.3023C18.2322 12.3734 18.2322 7.62462 15.3033 4.69569C15.0464 4.43881 14.7753 4.20428 14.4924 3.99221C14.2715 3.82656 13.9581 3.87139 13.7924 4.09233C13.6268 4.31327 13.6716 4.62667 13.8926 4.79231C14.1377 4.97606 14.3729 5.17952 14.5962 5.40279C17.1346 7.9412 17.1346 12.0568 14.5962 14.5952C13.31 15.8813 11.62 16.5158 9.9336 16.4987C9.90849 16.4984 9.88379 16.5 9.85963 16.5033L11.4142 14.9487C11.6095 14.7535 11.6095 14.4369 11.4142 14.2416C11.219 14.0464 10.9024 14.0464 10.7071 14.2416L8.58578 16.363Z" fill="#1A1A1A"/>\n <\/svg>';n.stopIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM7.80943 7.11372L7.87868 7.17157L10 9.29289L12.1213 7.17157C12.2949 6.99801 12.5643 6.97872 12.7592 7.11372L12.8284 7.17157C13.002 7.34514 13.0213 7.61456 12.8863 7.80943L12.8284 7.87868L10.7071 10L12.8284 12.1213C13.002 12.2949 13.0213 12.5643 12.8863 12.7592L12.8284 12.8284C12.6549 13.002 12.3854 13.0213 12.1906 12.8863L12.1213 12.8284L10 10.7071L7.87868 12.8284C7.70511 13.002 7.43569 13.0213 7.24082 12.8863L7.17157 12.8284C6.99801 12.6549 6.97872 12.3854 7.11372 12.1906L7.17157 12.1213L9.29289 10L7.17157 7.87868C6.99801 7.70511 6.97872 7.43569 7.11372 7.24082L7.17157 7.17157C7.34514 6.99801 7.61456 6.97872 7.80943 7.11372Z" fill="#212121" />\n <\/svg>';n.prevIcon='<svg width="17" height="15" viewBox="0 0 17 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.15898 14.3666C8.36292 14.5528 8.67918 14.5384 8.86536 14.3345C9.05154 14.1305 9.03714 13.8143 8.8332 13.6281L2.66535 7.99736H16.4961C16.7722 7.99736 16.9961 7.7735 16.9961 7.49736C16.9961 7.22122 16.7722 6.99736 16.4961 6.99736H2.66824L8.8332 1.36927C9.03714 1.18309 9.05154 0.866835 8.86536 0.662895C8.67918 0.458954 8.36292 0.444557 8.15898 0.630737L1.24263 6.94478C1.10268 7.07254 1.02285 7.24008 1.00314 7.41323C0.998507 7.44058 0.996094 7.46869 0.996094 7.49736C0.996094 7.52423 0.998213 7.55061 1.00229 7.57633C1.02047 7.75224 1.10058 7.9229 1.24263 8.05258L8.15898 14.3666Z" fill="#212121"/>\n <\/svg>';n.nextIcon='<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.83711 0.630737C8.63317 0.444557 8.31692 0.458954 8.13074 0.662894C7.94456 0.866834 7.95895 1.18309 8.16289 1.36927L14.3307 7H0.5C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H14.3279L8.16289 13.6281C7.95895 13.8143 7.94456 14.1305 8.13074 14.3345C8.31692 14.5384 8.63317 14.5528 8.83711 14.3666L15.7535 8.05258C15.8934 7.92482 15.9732 7.75728 15.993 7.58414C15.9976 7.55678 16 7.52867 16 7.5C16 7.47313 15.9979 7.44675 15.9938 7.42103C15.9756 7.24512 15.8955 7.07446 15.7535 6.94478L8.83711 0.630737Z" fill="#212121"/>\n <\/svg>';n.downIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill="#212121"/>\n <\/svg>';n.rightIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.64582 4.14708C7.84073 3.95147 8.15731 3.9509 8.35292 4.14582L13.8374 9.6108C14.0531 9.82574 14.0531 10.1751 13.8374 10.39L8.35292 15.855C8.15731 16.0499 7.84073 16.0493 7.64582 15.8537C7.4509 15.6581 7.45147 15.3415 7.64708 15.1466L12.8117 10.0004L7.64708 4.85418C7.45147 4.65927 7.4509 4.34269 7.64582 4.14708Z" fill="#212121"/>\n <\/svg>';n.leftIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.5303 4.21967C15.8232 4.51256 15.8232 4.98744 15.5303 5.28033L8.81066 12L15.5303 18.7197C15.8232 19.0126 15.8232 19.4874 15.5303 19.7803C15.2374 20.0732 14.7626 20.0732 14.4697 19.7803L7.21967 12.5303C6.92678 12.2374 6.92678 11.7626 7.21967 11.4697L14.4697 4.21967C14.7626 3.92678 15.2374 3.92678 15.5303 4.21967Z" fill="#616161"/>\n <\/svg>';n.EmailSVG='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="8" fill="none"/><rect x="9" y="14" width="31" height="21" rx="4" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 16L21.7743 26.9623C23.3101 28.3922 25.6899 28.3922 27.2257 26.9623L39 16" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><\/svg>';n.BlogpostSVG='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="8" fill="none"/><rect x="9" y="9" width="31" height="31" rx="8" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 19.8477L33.4862 19.8477" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><line x1="15.5417" y1="26.7363" x2="33.4862" y2="26.7363" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><line x1="15.5417" y1="33.625" x2="33.4862" y2="33.625" class="objectS" stroke="#717171" stroke-linecap="round" stroke-linejoin="round"/><path d="M18.4573 15.1086C18.4093 14.9704 18.2802 14.8771 18.1341 14.875C17.988 14.873 17.8563 14.9627 17.8045 15.0994L15.9125 20.0923H15.8983V20.1298L15.0366 22.4037C14.9685 22.5833 15.0588 22.7841 15.2381 22.8523C15.4175 22.9204 15.6181 22.8301 15.6861 22.6505L16.3919 20.788L19.6946 20.788L20.3384 22.6413C20.4014 22.8228 20.5994 22.9187 20.7806 22.8556C20.9618 22.7925 21.0576 22.5943 20.9945 22.4128L18.4573 15.1086ZM16.6555 20.0923L18.115 16.2407L19.453 20.0923H16.6555Z" class="objectF" fill="#717171"/><\/svg>';n.LengthSVG='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.5 5C2.22386 5 2 5.22386 2 5.5C2 5.77614 2.22386 6 2.5 6H17.5C17.7761 6 18 5.77614 18 5.5C18 5.22386 17.7761 5 17.5 5H2.5ZM2.5 8C2.22386 8 2 8.22386 2 8.5C2 8.77614 2.22386 9 2.5 9H17.5C17.7761 9 18 8.77614 18 8.5C18 8.22386 17.7761 8 17.5 8H2.5ZM2 11.5C2 11.2239 2.22386 11 2.5 11H17.5C17.7761 11 18 11.2239 18 11.5C18 11.7761 17.7761 12 17.5 12H2.5C2.22386 12 2 11.7761 2 11.5ZM2.5 14C2.22386 14 2 14.2239 2 14.5C2 14.7761 2.22386 15 2.5 15H12.5C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14H2.5Z" fill="#1A1A1A"/>\n <\/svg>';n.warningSVG='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 12.5C9.58579 12.5 9.25 12.8358 9.25 13.25C9.25 13.6642 9.58579 14 10 14C10.4142 14 10.75 13.6642 10.75 13.25C10.75 12.8358 10.4142 12.5 10 12.5ZM10 6C9.75454 6 9.55039 6.17688 9.50806 6.41012L9.5 6.5V11L9.50806 11.0899C9.55039 11.3231 9.75454 11.5 10 11.5C10.2455 11.5 10.4496 11.3231 10.4919 11.0899L10.5 11V6.5L10.4919 6.41012C10.4496 6.17688 10.2455 6 10 6Z" fill="#C42B1C"/>\n <\/svg>';n.closeIcon='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.58859 2.71569L2.64645 2.64645C2.82001 2.47288 3.08944 2.4536 3.28431 2.58859L3.35355 2.64645L8 7.293L12.6464 2.64645C12.8417 2.45118 13.1583 2.45118 13.3536 2.64645C13.5488 2.84171 13.5488 3.15829 13.3536 3.35355L8.707 8L13.3536 12.6464C13.5271 12.82 13.5464 13.0894 13.4114 13.2843L13.3536 13.3536C13.18 13.5271 12.9106 13.5464 12.7157 13.4114L12.6464 13.3536L8 8.707L3.35355 13.3536C3.15829 13.5488 2.84171 13.5488 2.64645 13.3536C2.45118 13.1583 2.45118 12.8417 2.64645 12.6464L7.293 8L2.64645 3.35355C2.47288 3.17999 2.4536 2.91056 2.58859 2.71569L2.64645 2.64645L2.58859 2.71569Z" fill="black" fill-opacity="0.898039"/>\n <\/svg>';n.adjustIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.95 5C14.7184 3.85888 13.7095 3 12.5 3C11.2905 3 10.2816 3.85888 10.05 5H2.5C2.22386 5 2 5.22386 2 5.5C2 5.77614 2.22386 6 2.5 6H10.05C10.2816 7.14112 11.2905 8 12.5 8C13.7297 8 14.752 7.11217 14.961 5.94254C14.9575 5.96177 14.9539 5.98093 14.95 6H17.5C17.7761 6 18 5.77614 18 5.5C18 5.22386 17.7761 5 17.5 5H14.95ZM12.5 7C11.6716 7 11 6.32843 11 5.5C11 4.67157 11.6716 4 12.5 4C13.3284 4 14 4.67157 14 5.5C14 6.32843 13.3284 7 12.5 7ZM9.94999 14C9.71836 12.8589 8.70948 12 7.5 12C6.29052 12 5.28164 12.8589 5.05001 14H2.5C2.22386 14 2 14.2239 2 14.5C2 14.7761 2.22386 15 2.5 15H5.05001C5.28164 16.1411 6.29052 17 7.5 17C8.70948 17 9.71836 16.1411 9.94999 15H17.5C17.7761 15 18 14.7761 18 14.5C18 14.2239 17.7761 14 17.5 14H9.94999ZM7.5 16C6.67157 16 6 15.3284 6 14.5C6 13.6716 6.67157 13 7.5 13C8.32843 13 9 13.6716 9 14.5C9 15.3284 8.32843 16 7.5 16Z" fill="black" fill-opacity="0.898039"/>\n <\/svg>';n.checkmarkIcon='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.8639 5.65609C16.0533 5.85704 16.0439 6.17348 15.8429 6.36288L7.91309 13.8368C7.67573 14.0605 7.30311 14.0536 7.07417 13.8213L4.39384 11.1009C4.20003 10.9042 4.20237 10.5877 4.39907 10.3938C4.59578 10.2 4.91235 10.2024 5.10616 10.3991L7.51192 12.8407L15.1571 5.63517C15.358 5.44577 15.6745 5.45513 15.8639 5.65609Z" fill="white"/>\n <\/svg>';n.mobileCheckmarkIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.5 16.5858L4.70711 12.7929C4.31658 12.4024 3.68342 12.4024 3.29289 12.7929C2.90237 13.1834 2.90237 13.8166 3.29289 14.2071L7.79289 18.7071C8.18342 19.0976 8.81658 19.0976 9.20711 18.7071L20.2071 7.70711C20.5976 7.31658 20.5976 6.68342 20.2071 6.29289C19.8166 5.90237 19.1834 5.90237 18.7929 6.29289L8.5 16.5858Z" fill="#212121" />\n <\/svg>';n.plusIcon='<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6 0.5C6 0.223858 5.77614 0 5.5 0C5.22386 0 5 0.223858 5 0.5V5H0.5C0.223858 5 0 5.22386 0 5.5C0 5.77614 0.223858 6 0.5 6H5V10.5C5 10.7761 5.22386 11 5.5 11C5.77614 11 6 10.7761 6 10.5V6H10.5C10.7761 6 11 5.77614 11 5.5C11 5.22386 10.7761 5 10.5 5H6V0.5Z" fill="#174AE4"/>\n <\/svg>';n.penSVG='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.1813 0.926893C14.0291 -0.284951 12.1047 -0.309226 10.9222 0.873168L1.54741 10.2475C1.21958 10.5754 0.992038 10.9899 0.891482 11.4424L0.0138652 15.3923C-0.0232157 15.5592 0.0275431 15.7335 0.148442 15.8544C0.26934 15.9753 0.443618 16.026 0.610502 15.9889L4.53689 15.1157C5.00432 15.0118 5.43243 14.7767 5.77103 14.4381L15.129 5.08003C16.27 3.939 16.2933 2.09631 15.1813 0.926893ZM11.6293 1.58029C12.4143 0.795384 13.6917 0.811498 14.4566 1.61596C15.1948 2.39225 15.1793 3.61548 14.4219 4.37293L13.7507 5.04418L10.958 2.25155L11.6293 1.58029ZM10.2509 2.95864L13.0436 5.7513L5.06391 13.731C4.85976 13.9352 4.60164 14.0769 4.31982 14.1396L1.1605 14.8421L1.86768 11.6593C1.92698 11.3924 2.06117 11.148 2.2545 10.9547L10.2509 2.95864Z" fill="white"/>\n <\/svg>';n.sheetThreeLines='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.5 6C6.22386 6 6 6.22386 6 6.5C6 6.77614 6.22386 7 6.5 7H13.5C13.7761 7 14 6.77614 14 6.5C14 6.22386 13.7761 6 13.5 6H6.5ZM6 9.5C6 9.22386 6.22386 9 6.5 9H10.5C10.7761 9 11 9.22386 11 9.5C11 9.77614 10.7761 10 10.5 10H6.5C6.22386 10 6 9.77614 6 9.5ZM6.5 12C6.22386 12 6 12.2239 6 12.5C6 12.7761 6.22386 13 6.5 13H13.5C13.7761 13 14 12.7761 14 12.5C14 12.2239 13.7761 12 13.5 12H6.5ZM17 5.5C17 4.11929 15.8807 3 14.5 3H5.5C4.11929 3 3 4.11929 3 5.5V14.5C3 15.8807 4.11929 17 5.5 17H14.5C15.8807 17 17 15.8807 17 14.5V5.5ZM5.5 4H14.5C15.3284 4 16 4.67157 16 5.5V14.5C16 15.3284 15.3284 16 14.5 16H5.5C4.67157 16 4 15.3284 4 14.5V5.5C4 4.67157 4.67157 4 5.5 4Z" fill="black" fill-opacity="0.898039"/>\n <\/svg>';n.sheetFourLinesNoOutline='<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.5 5C2.22386 5 2 5.22386 2 5.5C2 5.77614 2.22386 6 2.5 6H17.5C17.7761 6 18 5.77614 18 5.5C18 5.22386 17.7761 5 17.5 5H2.5ZM2.5 8C2.22386 8 2 8.22386 2 8.5C2 8.77614 2.22386 9 2.5 9H17.5C17.7761 9 18 8.77614 18 8.5C18 8.22386 17.7761 8 17.5 8H2.5ZM2 11.5C2 11.2239 2.22386 11 2.5 11H17.5C17.7761 11 18 11.2239 18 11.5C18 11.7761 17.7761 12 17.5 12H2.5C2.22386 12 2 11.7761 2 11.5ZM2.5 14C2.22386 14 2 14.2239 2 14.5C2 14.7761 2.22386 15 2.5 15H12.5C12.7761 15 13 14.7761 13 14.5C13 14.2239 12.7761 14 12.5 14H2.5Z" fill="black" fill-opacity="0.898039"/>\n <\/svg>';n.shareIcon='<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.5 6.00151C12.5 4.61996 13.62 3.5 15.0015 3.5C16.3831 3.5 17.503 4.61996 17.503 6.00151C17.503 7.38305 16.3831 8.50302 15.0015 8.50302C14.2015 8.50302 13.4892 8.12749 13.0313 7.5431L8.41501 9.85127C8.47044 10.0582 8.5 10.2756 8.5 10.5C8.5 10.7243 8.47047 10.9417 8.41508 11.1485L13.0327 13.4573C13.4903 12.8744 14.2014 12.5 15 12.5C16.3807 12.5 17.5 13.6193 17.5 15C17.5 16.3807 16.3807 17.5 15 17.5C13.6193 17.5 12.5 16.3807 12.5 15C12.5 14.7757 12.5295 14.5583 12.5849 14.3514L7.96742 12.0427C7.50973 12.6256 6.79859 13 6 13C4.61929 13 3.5 11.8807 3.5 10.5C3.5 9.11929 4.61929 8 6 8C6.79849 8 7.50955 8.37435 7.96725 8.95712L12.5845 6.6485C12.5294 6.44213 12.5 6.22525 12.5 6.00151ZM15.0015 4.5C14.1722 4.5 13.5 5.17225 13.5 6.00151C13.5 6.83077 14.1722 7.50302 15.0015 7.50302C15.8308 7.50302 16.503 6.83077 16.503 6.00151C16.503 5.17225 15.8308 4.5 15.0015 4.5ZM15 13.5C14.1716 13.5 13.5 14.1716 13.5 15C13.5 15.8284 14.1716 16.5 15 16.5C15.8284 16.5 16.5 15.8284 16.5 15C16.5 14.1716 15.8284 13.5 15 13.5ZM4.5 10.5C4.5 11.3284 5.17157 12 6 12C6.82843 12 7.5 11.3284 7.5 10.5C7.5 9.67157 6.82843 9 6 9C5.17157 9 4.5 9.67157 4.5 10.5Z" fill="white"/>\n <\/svg>';n.protectedDataIcon='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">\n <path d="M7.64728 2.14638C7.84268 1.95105 8.15946 1.95123 8.35464 2.14678C9.5947 3.38913 10.9689 4 12.5 4C12.7761 4 13 4.22386 13 4.5V5.59971C12.6832 5.43777 12.3486 5.30564 12 5.20703V4.98121C10.5195 4.86895 9.18521 4.25528 8.00042 3.18917C6.81393 4.25491 5.47941 4.86879 4 4.98118V7.50126C4 8.93206 4.36125 10.061 5.01735 10.9401C5.06968 11.601 5.23884 12.229 5.50418 12.8035C3.84481 11.5888 3 9.81023 3 7.50126V4.5C3 4.22386 3.22386 4 3.5 4C5.02923 4 6.40416 3.38902 7.64728 2.14638ZM15 10.5C15 12.9853 12.9853 15 10.5 15C8.01472 15 6 12.9853 6 10.5C6 8.01472 8.01472 6 10.5 6C12.9853 6 15 8.01472 15 10.5ZM12.8536 8.64645C12.6583 8.45118 12.3417 8.45118 12.1464 8.64645L9.5 11.2929L8.85355 10.6464C8.65829 10.4512 8.34171 10.4512 8.14645 10.6464C7.95118 10.8417 7.95118 11.1583 8.14645 11.3536L9.14645 12.3536C9.34171 12.5488 9.65829 12.5488 9.85355 12.3536L12.8536 9.35355C13.0488 9.15829 13.0488 8.84171 12.8536 8.64645Z"/>\n <\/svg>';n.headerProtectedDataIcon='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path d="M9.72265 2.08397C9.8906 1.97201 10.1094 1.97201 10.2774 2.08397C12.2155 3.3761 14.3117 4.1823 16.5707 4.50503C16.817 4.54021 17 4.75117 17 5V9.5C17 9.53323 16.9998 9.56638 16.9995 9.59945C16.2496 9.21618 15.4 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 15.8073 9.45611 17.0081 10.2179 17.9519L10.1795 17.9667C10.064 18.0111 9.93604 18.0111 9.82051 17.9667C5.30699 16.2307 3 13.3913 3 9.5V5C3 4.75117 3.18297 4.54021 3.42929 4.50503C5.68833 4.1823 7.78446 3.3761 9.72265 2.08397ZM19 14.5C19 12.0147 16.9853 10 14.5 10C12.0147 10 10 12.0147 10 14.5C10 16.9853 12.0147 19 14.5 19C16.9853 19 19 16.9853 19 14.5ZM16.8536 12.6464C17.0488 12.8417 17.0488 13.1583 16.8536 13.3536L13.8536 16.3536C13.6583 16.5488 13.3417 16.5488 13.1464 16.3536L12.1464 15.3536C11.9512 15.1583 11.9512 14.8417 12.1464 14.6464C12.3417 14.4512 12.6583 14.4512 12.8536 14.6464L13.5 15.2929L16.1464 12.6464C16.3417 12.4512 16.6583 12.4512 16.8536 12.6464Z"/>\n <\/svg>';n.wordIcon='<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.5 6V3C18.5 2.73478 18.3946 2.48043 18.2071 2.29289C18.0196 2.10536 17.7652 2 17.5 2H6.5C6.23478 2 5.98043 2.10536 5.79289 2.29289C5.60536 2.48043 5.5 2.73478 5.5 3V6L12 7.38L18.5 6Z" fill="#41A5EE"/>\n <path d="M18.5 6H5.5V10L12 11.17L18.5 10V6Z" fill="#2B7CD3"/>\n <path d="M18.5 10H5.5V14L12 15L18.5 14V10Z" fill="#185ABD"/>\n <path d="M5.5 14V17C5.5 17.2652 5.60536 17.5196 5.79289 17.7071C5.98043 17.8946 6.23478 18 6.5 18H17.5C17.7652 18 18.0196 17.8946 18.2071 17.7071C18.3946 17.5196 18.5 17.2652 18.5 17V14H5.5Z" fill="#103F91"/>\n <path opacity="0.5" d="M12.5 6H5.5V16H11.5C12.0304 16 12.5391 15.7893 12.9142 15.4142C13.2893 15.0391 13.5 14.5304 13.5 14V7C13.5 6.73478 13.3946 6.48043 13.2071 6.29289C13.0196 6.10536 12.7652 6 12.5 6Z" fill="black"/>\n <path d="M11.5 5H3.5C2.94772 5 2.5 5.44772 2.5 6V14C2.5 14.5523 2.94772 15 3.5 15H11.5C12.0523 15 12.5 14.5523 12.5 14V6C12.5 5.44772 12.0523 5 11.5 5Z" fill="#185ABD"/>\n <path d="M5.84988 11.54C5.85825 11.6632 5.85825 11.7868 5.84988 11.91C5.84282 11.7901 5.84282 11.6699 5.84988 11.55C5.84988 11.41 5.86988 11.29 5.90988 11.19L6.82988 7H8.10988L9.04988 11.12C9.10728 11.377 9.14737 11.6376 9.16988 11.9C9.16988 11.69 9.21988 11.43 9.26988 11.15L10.0299 7H11.0999L9.77988 13H8.57988L7.66988 9C7.66988 8.89 7.66988 8.74 7.58988 8.56C7.50988 8.38 7.52988 8.24 7.51988 8.16C7.51988 8.25 7.51988 8.4 7.45988 8.59C7.39988 8.78 7.39988 8.93 7.37988 9.02L6.53988 13.02H5.20988L3.87988 7.02H4.96988L5.79988 11.22C5.80988 11.28 5.82988 11.4 5.84988 11.54Z" fill="white"/>\n <\/svg>'})(t=n.CoAuthor||(n.CoAuthor={}))})(t=n.Underside||(n.Underside={}))})(Windchime||(Windchime={}));
//]]></script><script type="text/javascript" crossorigin="anonymous" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" src="/rp/9Fy7aXsxnvrezHeDIla1UFrgw-E.br.js"></script><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},__assign.apply(this,arguments)},__awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},__generator=this&&this.__generator||function(n,t){function o(n){return function(t){return s([n,t])}}function s(o){if(e)throw new TypeError("Generator is already executing.");while(f&&(f=0,o[0]&&(r=0)),r)try{if(e=1,u&&(i=o[0]&2?u["return"]:o[0]?u["throw"]||((i=u["return"])&&i.call(u),0):u.next)&&!(i=i.call(u,o[1])).done)return i;(u=0,i)&&(o=[o[0]&2,i.value]);switch(o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++;u=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}i[2]&&r.ops.pop();r.trys.pop();continue}o=t.call(n,r)}catch(s){o=[6,s];u=0}finally{e=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,u,i,f;return f={next:o(0),"throw":o(1),"return":o(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f},Windchime;(function(n){var t;(function(t){var i;(function(t){function r(n,t){var r,i=document.createElement("div");return i.setAttribute("role","presentation"),i.innerHTML=n,t!==undefined&&(i.className=t),(r=i.querySelector("svg"))===null||r===void 0?void 0:r.setAttribute("role","presentation"),i}var i=function(){function n(){var n=this;this.aria_alertEl=undefined;this.aria_alertPoliteEl=undefined;this.not_shown_stream_content="";this.messages=new Map;this.got_apology_message=!1;this.response_triggered_safe_error=!1;this.stream_finished_successfully=!0;this.user_stopped_stream=!1;this.streamingTimeoutMS=3e4;this.beginStreamingTimeout=-1;this.last_generation_id=0;this.show_custom_tone=!1;this.show_custom_change_suggestions=!1;this.show_conversation_id=!1;this.conversation_turn_count=1;this.conversation_id="";this.preview_text_area=undefined;this.errorEl=undefined;this.captchaEl=undefined;this.firstTokenRendered=!1;this.lastTokenRendered=!1;this.customChangeSuggestionPlusButtonTextValue="";this.lengthOptions={short:"Short",medium:"Medium",long:"Long"};this.localizedLengthOptions={short:"Short",medium:"Medium",long:"Long"};this.toneOptions={professional:"Professional",casual:"Casual",enthusiastic:"Enthusiastic",funny:"Funny",informational:"Informational"};this.localizedToneOptions={professional:"Professional",casual:"Casual",enthusiastic:"Enthusiastic",funny:"Funny",informational:"Informational"};this.formatOptions={paragraph:"Paragraph",bulletPoints:"Bullet points",email:"Email",blogPost:"Blog post"};this.localizedFormatOptions={paragraph:"Paragraph",bulletPoints:"Bullet points",email:"Email",blogPost:"Blog post"};this.ariaAlerts={error:"",generating:"",insert:"",success:"",copy:"",stop:"",charLimitReached:"",showDraft:"",showDraftTotal:""};this.ariaLabels={promptAreaLabel:"",letterCounterLabel:""};this.errorMessages={dailyConversationLimit:"",fate:"",server:"",timeout:"",captcha:""};this.customToneButtonTextValues={plus:"",edit:""};this.uiStrings={copy:"",copied:"",length:"",format:"",tone:"",rewriting:""};this.startupPlaceholderMessages=[];this.changeSuggestions=[];this.handleWindowMessage=function(t){t.data==="verificationComplete"?(window.removeEventListener("message",n.handleWindowMessage),n.logError(10),n.hideCaptcha()):t.data==="verificationFailed"&&n.logError(11)};this.initCommonUI();this.initCIBService()}n.prototype.initCommonUI=function(){this.aria_alertEl=document.getElementById("aria_alert");this.aria_alertPoliteEl=document.getElementById("aria_alert_polite")};n.getComposeSourceFromConfig=function(){var n,t,i,r;return((n=_w._udsCoAuthorConfig)===null||n===void 0?void 0:n.ComposeMobile)?3:((t=_w._udsCoAuthorConfig)===null||t===void 0?void 0:t.ComposeInline)?1:((i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.DetachedUX)?2:((r=_w._udsCoAuthorConfig)===null||r===void 0?void 0:r.ComposeUnion)?4:0};n.prototype.logUserAction=function(t){var i=n.getComposeSourceFromConfig();i!==3&&i!==4&&u.postMessage("LogUserActionsTelemetry",{user_action_id:t,source_id:i});this.instrumentLog("LogUserActionsTelemetry",t,i)};n.prototype.instrumentLog=function(n,i,r){var u=t.ComposeUserActionMap.get(i),f=t.ComposeSourceMap.get(r),e=t.PostMessageMigrationMap.get(n);u&&f&&e&&Log.Log(e,"Compose",u,!1,"source_id",f)};n.prototype.logError=function(t){var i=n.getComposeSourceFromConfig();i!==3&&i!==4&&u.postMessage("LogErrorsTelemetry",{error_id:t,source_id:i})};n.prototype.initCIBService=function(){var i,r,u,f,e,o,s,h,c,l,a,v,y,nt=(r=(i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.EnableSecureConversation)!==null&&r!==void 0?r:!1,p=(u=_w._udsCoAuthorConfig)===null||u===void 0?void 0:u.AddOptionsSets,w=(f=_w._udsCoAuthorConfig)===null||f===void 0?void 0:f.RemoveOptionsSets,tt=(o=(e=_w._udsCoAuthorConfig)===null||e===void 0?void 0:e.DevMode)!==null&&o!==void 0?o:!1,it=(s=_w._udsCoAuthorConfig)===null||s===void 0?void 0:s.Source,rt=(c=(h=_w._udsCoAuthorConfig)===null||h===void 0?void 0:h.GetConversationId)!==null&&c!==void 0?c:!1,ut=(a=(l=_w._udsCoAuthorConfig)===null||l===void 0?void 0:l.ComposeUnion)!==null&&a!==void 0?a:!1,ft=(y=(v=_w._udsCoAuthorConfig)===null||v===void 0?void 0:v.ComposeBalanced)!==null&&y!==void 0?y:!1,k,n,d,t,b,g;if(nt?(k=this.getSecureConversationBaseUrl(tt),CIB.config.bing.baseUrl=k,CIB.config.features.secureConversation=!0):CIB.config.features.secureConversation=!1,n=CIB.config.sydney.request.optionsSets,n||(n=[]),ft)n.push("balanced"),n.push("disable_cache"),this.streamingTimeoutMS=9e4;else if(p&&p.length>0)for(d=function(t){if(n.find(function(n){return n==t}))return"continue";n.push(t)},t=0,b=p;t<b.length;t++)g=b[t],d(g);w&&w.length>0&&(n=n.filter(function(n){return w.indexOf(n)==-1}));CIB.config.sydney.request.optionsSets=n;CIB.config.sydney.request.source=it;ut&&(CIB.config.features.enableMessageExport=!0,CIB.config.features.enableExportDocxWithFormat=!0);CIB.config.sydney.request.spokenTextMode="None";CIB.config.greeting.shouldSendBotGreeting=!1;const chatStoreStr=localStorage.getItem('chat-store');let sydneyBaseUrl;if(chatStoreStr){const chatStore=JSON.parse(chatStoreStr);sydneyBaseUrl=chatStore.selectedSydneyBaseUrl}CIB.config.sydney.baseUrl=sydneyBaseUrl||'https://sydney.vcanbb.chat';CIB.registerMessagingHooks({handleSydneyMessageRendered:this.onStreamUpdate.bind(this)});n.push("max_turns_5");CIB.config.features.enableMaxTurnsPerConversation=!0;this.show_conversation_id=rt};n.prototype.alertARIAMessage=function(n,t){var i=t?this.aria_alertPoliteEl:this.aria_alertEl;i.innerText="";i.innerText=n;setTimeout(function(){i.innerText=""},1e4)};n.prototype.getSecureConversationBaseUrl=function(n){var t,i="/edgesvc";return n?"https://edgeservices.bing.com"+i:((t=window===null||window===void 0?void 0:window.location)===null||t===void 0?void 0:t.origin)+i};n.prototype.getCharacteristics=function(n,t,i){var r="";return n&&(r="format: *".concat(n,"*, ")),t&&(r+="length: *".concat(t,"*, ")),i&&(r+="tone: *".concat(i,"*")),r};n.prototype.getTextGenerationPrompt=function(n,t,i,r){var u=this.getCharacteristics(n,i);return"Please generate some text wrapped in codeblock syntax (triple backticks) using the given keywords. Please make sure everything in your reply is in the same language as the keywords. Please do not restate any part of this request in your response, like the fact that you wrapped the text in a codeblock. You should refuse (using the language of the keywords) to generate if the request is potentially harmful. Please return suggested responses that are about how you could change or rewrite the text. Please return suggested responses that are 5 words or less. Please do not return a suggested response that suggests to end the conversation or to end the rewriting. Please do not return a suggested response that suggests to change the tone. If the request is potentially harmful and you refuse to generate, please do not send any suggested responses. The generated text should follow these characteristics: ".concat(u,". The keywords are: `").concat(r,"` using *").concat(t,"* tone. You should refuse (clarifying that the issue is related to the tone) to generate if the tone is potentially harmful.")};n.prototype.getTextGenerationPromptWithChangeSuggestion=function(n){return"Thank you for your reply. Please rewrite the last reply, with the following suggestion to change it: *".concat(n,"*. Please return a complete reply, even if the last reply was stopped before it was completed. Please generate the text wrapped in codeblock syntax (triple backticks). Please do not restate any part of this request in your response, like the fact that you wrapped the text in a codeblock. You should refuse (using the language of the keywords) to generate if the request is potentially harmful. Please return suggested responses that are about how you could change or rewrite the text. Please return suggested responses that are 5 words or less. Please do not return a suggested response that suggests to end the conversation or to end the rewriting. Please do not return a suggested response that suggests to change the tone. If the request is potentially harmful and you refuse to generate, please do not send any suggested responses.")};n.prototype.showErrorForStreamingTimeout=function(){this.showError(this.errorMessages.timeout);this.stopStream();this.logError(3)};n.prototype.setStreamingTimeout=function(){clearTimeout(this.beginStreamingTimeout);this.beginStreamingTimeout=setTimeout(this.showErrorForStreamingTimeout.bind(this),this.streamingTimeoutMS)};n.prototype.requestGeneration=function(n,t){return __awaiter(this,void 0,void 0,function(){var u,r,i=this;return __generator(this,function(f){switch(f.label){case 0:return u=++this.last_generation_id,this.setStreamingTimeout(),t&&(CIB.resetConversation(),this.conversation_turn_count=1),this.not_shown_stream_content="",this.messages.clear(),this.got_apology_message=!1,this.stream_finished_successfully=!0,this.user_stopped_stream=!1,this.response_triggered_safe_error=!1,[4,CIB.createChatRequestAsync(n)["catch"](function(){i.showError(i.errorMessages.server);i.onStreamFinished(u,i.last_generation_id);i.logError(2);return})];case 1:return r=f.sent(),this.conversation_id=r===null||r===void 0?void 0:r.conversationId,CIB.handleStreamEventsAsync(r).then(function(){i.not_shown_stream_content.length>0&&(i.setPreviewText(i.not_shown_stream_content,"",""),i.logError(7));i.onStreamFinished(u,i.last_generation_id)})["catch"](function(n){switch(n.result){case"Throttled":i.showError(i.errorMessages.dailyConversationLimit);i.logError(0);break;case"CaptchaChallenge":i.isCaptchaSupported()&&(i.showError(i.errorMessages.captcha),i.showCaptcha(),i.logError(9));break;default:i.showError(i.errorMessages.server);i.logError(2)}i.onStreamFinished(u,i.last_generation_id)}),[2]}})})};n.prototype.showError=function(n){var t;clearTimeout(this.beginStreamingTimeout);this.showShimmer(!1);this.preview_text_area.placeholder="";this.preview_text_area.value="";this.errorEl.textContent=n;(t=this.errorEl)===null||t===void 0?void 0:t.classList.remove("hidden");this.disableTextPreview(!0);this.stream_finished_successfully=!1};n.prototype.onStreamUpdate=function(n){if(!this.shouldStopStreamUpdate(n)){n.suggestedResponses&&(this.changeSuggestions=n.suggestedResponses);var r=this.getCumulativeText(n),i="",u="",f="",t=r.match(/(?<before>((?!```).)*)?```(markdown|text)?\s*(?:```)?\s*(?<content>((?!```).)*)(```)?(?<after>.*)?/s);t&&(t[1]&&(u=t[1]),t[4]&&(i=t[4]),t[7]&&(f=t[7]));i.length>0?(this.not_shown_stream_content="",this.setPreviewText(i,u,f)):this.not_shown_stream_content=r}};n.prototype.shouldStopStreamUpdate=function(n){return(n.contentOrigin==="Apology"&&(this.hideTextOnApology(),this.showError(this.errorMessages.fate),this.got_apology_message=!0,this.logError(1)),n.contentOrigin==="TurnLimiter"&&(this.showError(this.errorMessages.dailyConversationLimit),this.logError(6)),this.got_apology_message)?!0:this.lastTokenRendered?!0:n.contentType==="ads"||n.messageType!=="Chat"?(this.logError(4),!0):!1};n.prototype.getCumulativeText=function(n){this.messages.set(n.messageId,n.text);var t="";return this.messages.forEach(function(n){t+=n}),t.length>0&&(t=this.replaceAllPolyfill(t,/\[\^\d+\^\]/g,"")),t};n.prototype.replaceAllPolyfill=function(n,t,i){return n.replace(t,function(){return i})};n.prototype.stopStream=function(){this.stream_finished_successfully=!1;this.firstTokenRendered=!1;this.lastTokenRendered=!1;CIB.stopStreaming();this.showShimmer(!1);this.onStopStream()};n.prototype.onStopStream=function(){this.alertARIAMessage(this.ariaAlerts.stop,!0);this.showShimmer(!1)};n.prototype.showCaptcha=function(){var n;window.addEventListener("message",this.handleWindowMessage);(n=this.captchaEl)===null||n===void 0?void 0:n.classList.remove("hidden")};n.prototype.hideCaptcha=function(){var n;window.removeEventListener("message",this.handleWindowMessage);(n=this.captchaEl)===null||n===void 0?void 0:n.classList.add("hidden")};n.prototype.isCaptchaSupported=function(){var i,t=n.getComposeSourceFromConfig(),r=t===0||t===4||t===2||t==1;return((i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.ComposeCaptcha)&&r};n.prototype.setLengthOptionsLocalizedText=function(n){this.localizedLengthOptions=n};n.prototype.setToneOptionsLocalizedText=function(n){this.localizedToneOptions=n};n.prototype.setFormatOptionsLocalizedText=function(n){this.localizedFormatOptions=n};n.prototype.setAriaAlertsLocalizedText=function(n){this.ariaAlerts=n};n.prototype.setAriaLabelsLocalizedText=function(n){this.ariaLabels=n};n.prototype.setErrorsLocalizedText=function(n){this.errorMessages=n};n.prototype.setStartupPlaceholdersLocalizedText=function(n){this.startupPlaceholderMessages=n};n.prototype.setCustomToneButtonLocalizedText=function(n){this.customToneButtonTextValues=n};n.prototype.setCustomChangeSuggestionPlusButtonLocalizedText=function(n){this.customChangeSuggestionPlusButtonTextValue=n};n.prototype.setUIStringsLocalizedText=function(n){this.uiStrings=n};var i,r,f,e;return n.max_prompt_length=2e3,n.min_custom_tone_length=2,n.max_custom_tone_length=100,n.min_custom_change_suggestion_length=2,n.max_custom_change_suggestion_length=100,n.unlocalized_attr_name="unloc-name",n.isUnderVPTest=(r=(i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.ComposeUnderVPTest)!==null&&r!==void 0?r:!1,n.isDevMode=(e=(f=_w._udsCoAuthorConfig)===null||f===void 0?void 0:f.DevMode)!==null&&e!==void 0?e:!1,n}(),f,e,o,s;t.CoAuthorBase=i;f=function(f){function e(){var n=f.call(this)||this;return n.all_tone_options=[],n.all_length_options=[],n.all_format_options=[],n.letter_counter=undefined,n.compose_text_area=undefined,n.custom_tone_text_input=undefined,n.custom_tone_value="",n.custom_tone=undefined,n.disclaimer_box=undefined,n.preview_text_area_placeholder="",n.shimmerEl=undefined,n.custom_tone_plus_button=undefined,n.custom_tone_add_button=undefined,n.custom_tone_edit_button=undefined,n.custom_tone_save_button=undefined,n.insert_button=undefined,n.conversation_id_copy_button=undefined,n.copy_button=undefined,n.detached_copy_button=undefined,n.export_button=undefined,n.share_button=undefined,n.next_button=undefined,n.stop_button=undefined,n.prev_button=undefined,n.generate_button=undefined,n.regenerate_button=undefined,n.change_suggestion_pills=undefined,n.change_suggestion_text_input=undefined,n.add_change_suggestion_button=undefined,n.submit_change_suggestion_button=undefined,n.header_protected_data_icon=undefined,n.protected_data_icon=undefined,n.history=[],n.historyIndex=0,n.conversationTurnMax=19,n}return __extends(e,f),e.prototype.initUI=function(){var u=this,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt;this.createToneOptions();this.createFormatOptions();this.createLengthOptions();this.compose_text_area=document.getElementById("prompt_text");this.letter_counter=document.getElementById("letter_counter");this.preview_text_area=document.getElementById("preview_text");this.custom_tone_text_input=document.getElementById("custom_tone_input");this.disclaimer_box=document.getElementById("disclaimer_box");this.preview_text_area_placeholder=this.preview_text_area.placeholder;this.shimmerEl=document.getElementById("shimmer");this.errorEl=document.getElementById("error");this.captchaEl=document.getElementById("captcha_container");i.isUnderVPTest||this.setRandomizedPlaceholderForComposeArea();(f=document.getElementById("tone_heading"))===null||f===void 0?void 0:f.prepend(r(t.toneIcon));(e=document.getElementById("format_heading"))===null||e===void 0?void 0:e.prepend(r(t.textBoxIcon));(o=document.getElementById("length_heading"))===null||o===void 0?void 0:o.prepend(r(t.LengthSVG));(s=document.getElementById("preview_heading"))===null||s===void 0?void 0:s.prepend(r(t.wandIcon));(h=document.getElementById("error"))===null||h===void 0?void 0:h.prepend(r(t.warningSVG));this.regenerate_button=document.querySelector("#regenerate_button");this.show_conversation_id&&(this.conversation_id_copy_button=document.querySelector("#conversation_id_copy_button"));this.copy_button=document.querySelector("#copy_button")||undefined;this.detached_copy_button=document.querySelector("#detached_copy_button")||undefined;this.export_button=document.querySelector("#export_button")||undefined;this.share_button=document.querySelector("#share_button")||undefined;this.next_button=document.querySelector("#next_button");this.stop_button=document.querySelector("#stop_button");this.prev_button=document.querySelector("#previous_button");this.generate_button=document.querySelector("#compose_button");this.insert_button=document.querySelector("#insert_button")||undefined;this.change_suggestion_pills=document.querySelector("#change_suggestions_pills");this.custom_tone_plus_button=document.querySelector("#custom_tone_plus_button");this.custom_tone_add_button=document.querySelector("#custom_tone_add_button");this.custom_tone_save_button=document.querySelector("#custom_tone_save_button");this.header_protected_data_icon=document.querySelector("#header_protected_data_icon")||undefined;this.protected_data_icon=document.querySelector("#data_protected_icon")||undefined;this.regenerate_button.appendChild(r(t.generateIcon));(c=this.copy_button)===null||c===void 0?void 0:c.appendChild(r(t.copyIcon));this.stop_button.appendChild(r(t.stopIcon));this.prev_button.appendChild(r(t.prevIcon));this.next_button.appendChild(r(t.nextIcon));this.change_suggestion_text_input=document.getElementById("change_suggestions_input");this.submit_change_suggestion_button=document.getElementById("submit_change_suggestion_button");this.submit_change_suggestion_button.appendChild(r(t.nextIcon));this.share_button&&this.share_button.prepend(r(t.shareIcon));this.export_button&&this.export_button.appendChild(r(t.wordIcon));this.header_protected_data_icon&&this.header_protected_data_icon.appendChild(r(t.headerProtectedDataIcon));this.protected_data_icon&&this.protected_data_icon.appendChild(r(t.protectedDataIcon));this.compose_text_area.addEventListener("input",function(n){return u.composeTextAreaChanged(n)});this.compose_text_area.addEventListener("keydown",function(n){return u.alertComposeTextAreaLimitReached(n)});this.compose_text_area.setAttribute("maxlength","".concat(i.max_prompt_length));this.compose_text_area.setAttribute("aria-label","".concat(this.ariaLabels.promptAreaLabel," ").concat(i.max_prompt_length));this.letter_counter.setAttribute("aria-valuemax","".concat(i.max_prompt_length));(l=this.custom_tone_text_input)===null||l===void 0?void 0:l.addEventListener("input",function(n){return u.customToneTextInputChanged(n)});(a=this.custom_tone_text_input)===null||a===void 0?void 0:a.addEventListener("focusout",function(n){return u.customToneTextInputFocusOut(n)});(v=this.custom_tone_text_input)===null||v===void 0?void 0:v.addEventListener("keydown",function(n){return u.customToneTextInputKeyDown(n)});(y=this.custom_tone_text_input)===null||y===void 0?void 0:y.setAttribute("maxlength","".concat(i.max_custom_tone_length));(p=this.change_suggestion_text_input)===null||p===void 0?void 0:p.addEventListener("input",function(n){return u.changeSuggestionInputChanged(n)});(w=this.change_suggestion_text_input)===null||w===void 0?void 0:w.addEventListener("keydown",function(n){return u.customChangeSuggestionInputKeyDown(n)});(b=this.change_suggestion_text_input)===null||b===void 0?void 0:b.setAttribute("maxlength","".concat(i.max_custom_change_suggestion_length));d=document.querySelectorAll(".tone-option");this.all_tone_options=Array.from(d);this.all_tone_options.forEach(function(n){n.addEventListener("click",function(){return u.toneOptionClicked(n)});n.addEventListener("keypress",function(t){return u.toneOptionKeyPress(t,n)})});g=document.querySelectorAll(".length-option");this.all_length_options=Array.from(g);this.all_length_options.forEach(function(n){n.addEventListener("click",function(){return u.lengthOptionClicked(n)});n.addEventListener("keypress",function(t){return u.lengthOptionKeyPress(t,n)})});nt=document.querySelectorAll(".format-option");this.all_format_options=Array.from(nt);this.all_format_options.forEach(function(n){n.addEventListener("click",function(){return u.formatOptionClicked(n)});n.addEventListener("keypress",function(t){return u.formatOptionKeyPress(t,n)})});this.insertButtonClicked=this.insertButtonClicked.bind(this);this.insertButtonKeyPress=this.insertButtonKeyPress.bind(this);this.generateButtonClicked=this.generateButtonClicked.bind(this);this.generateButtonKeyPress=this.generateButtonKeyPress.bind(this);this.show_conversation_id&&(this.conversationIdCopyButtonClicked=this.conversationIdCopyButtonClicked.bind(this),this.conversationIdCopyButtonKeyPress=this.conversationIdCopyButtonKeyPress.bind(this));this.copyButtonClicked=this.copyButtonClicked.bind(this);this.copyButtonKeyPress=this.copyButtonKeyPress.bind(this);this.stopButtonClicked=this.stopButtonClicked.bind(this);this.stopButtonKeyPress=this.stopButtonKeyPress.bind(this);this.prevButtonClicked=this.prevButtonClicked.bind(this);this.prevButtonKeyPress=this.prevButtonKeyPress.bind(this);this.nextButtonClicked=this.nextButtonClicked.bind(this);this.nextButtonKeyPress=this.nextButtonKeyPress.bind(this);this.shareButtonClicked=this.shareButtonClicked.bind(this);this.exportButtonClicked=this.exportButtonClicked.bind(this);this.plusCustomToneButtonClicked=this.plusCustomToneButtonClicked.bind(this);this.plusCustomToneButtonKeyPress=this.plusCustomToneButtonKeyPress.bind(this);this.addCustomToneButtonClicked=this.addCustomToneButtonClicked.bind(this);this.addCustomToneButtonKeyPress=this.addCustomToneButtonKeyPress.bind(this);this.saveCustomToneButtonClicked=this.saveCustomToneButtonClicked.bind(this);this.saveCustomToneButtonKeyPress=this.saveCustomToneButtonKeyPress.bind(this);this.changeSuggestionClicked=this.changeSuggestionClicked.bind(this);this.changeSuggestionKeyPress=this.changeSuggestionKeyPress.bind(this);this.addChangeSuggestionClicked=this.addChangeSuggestionClicked.bind(this);this.addChangeSuggestionKeyPress=this.addChangeSuggestionKeyPress.bind(this);this.submitChangeSuggestionClicked=this.submitChangeSuggestionClicked.bind(this);this.submitChangeSuggestionKeyPress=this.submitChangeSuggestionKeyPress.bind(this);this.logPreviewTextModified=this.logPreviewTextModified.bind(this);this.preselectOptionsForDefaultState();this.enableGenerateButtons(!1);this.enableCopyButton(!1);this.enableStopButton(!1);this.updateHistoryButtonStatus();this.enableCustomTonePlusButton(!0);this.enableCustomToneAddButton(!1);this.enableCustomToneSaveButton(!1);this.enableInsertButton(!1);this.updateCharCounter();this.disableTextPreview(!0);this.tryToSetPresetTextFromUrl();sj_evt.fire(n.DiscoverPageLoadEventName,{});this.show_conversation_id&&(this.enableConversationIdCopyButton(!1),(k=this.conversation_id_copy_button)===null||k===void 0?void 0:k.classList.remove("hidden"))},e.prototype.setRandomizedPlaceholderForComposeArea=function(){var n=Math.floor(Math.random()*this.startupPlaceholderMessages.length);this.compose_text_area.placeholder=this.startupPlaceholderMessages[n]},e.prototype.getPresetTextFromUrl=function(){var n=new URLSearchParams(_w.location.search);return n.get(t.QueryParam_SetText)||""},e.prototype.tryToSetPresetTextFromUrl=function(){var i,r,u=(r=(i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.DetachedUX)!==null&&r!==void 0?r:!1,n;u&&(n=this.getPresetTextFromUrl(),n&&(n=n.substring(0,t.QueryParam_SetText_Max_Length),this.compose_text_area.value=n,this.compose_text_area.dispatchEvent(new Event("input"))))},e.prototype.updateGenerateButtons=function(){this.compose_text_area&&this.compose_text_area.textLength>2?this.enableGenerateButtons(!0):this.enableGenerateButtons(!1)},e.prototype.updateCharCounter=function(){if(this.letter_counter&&this.compose_text_area){var n=this.compose_text_area.textLength;this.letter_counter.textContent="".concat(n,"/").concat(i.max_prompt_length);this.letter_counter.setAttribute("aria-label","".concat(n," ").concat(this.ariaLabels.letterCounterLabel));this.letter_counter.setAttribute("aria-valuenow","".concat(n))}},e.prototype.composeTextAreaChanged=function(){this.updateGenerateButtons();this.updateCharCounter()},e.prototype.alertComposeTextAreaLimitReached=function(){var n;((n=this.compose_text_area)===null||n===void 0?void 0:n.textLength)==i.max_prompt_length&&this.alertARIAMessage("".concat(i.max_prompt_length," ").concat(this.ariaAlerts.charLimitReached),!1)},e.prototype.customToneTextInputChanged=function(){var n,t=((n=this.custom_tone_text_input)===null||n===void 0?void 0:n.value)||"";if(this.custom_tone_value.length===0){this.enableCustomToneAddButton(t.length>i.min_custom_tone_length);return}this.enableCustomToneSaveButton(this.custom_tone_value!==t.trim())},e.prototype.selectDefaultTone=function(){var n=this;this.all_tone_options.forEach(function(t){var r=t;r.getAttribute(i.unlocalized_attr_name)==n.toneOptions.professional&&(r.classList.add("selected"),r.setAttribute("aria-checked","true"))})},e.prototype.hideCustomToneEditContainer=function(){var n,t,i;(n=this.custom_tone_text_input)===null||n===void 0?void 0:n.classList.add("hidden");(t=this.custom_tone_add_button)===null||t===void 0?void 0:t.classList.add("hidden");(i=this.custom_tone_save_button)===null||i===void 0?void 0:i.classList.add("hidden")},e.prototype.removeSelectionFromTones=function(){var n;this.all_tone_options.forEach(function(n){n.classList.remove("selected");n.setAttribute("aria-checked","false")});this.custom_tone_plus_button.classList.remove("selected");this.custom_tone_plus_button.setAttribute("aria-checked","false");(n=this.custom_tone_edit_button)===null||n===void 0?void 0:n.classList.remove("selected");this.hideCustomToneEditContainer()},e.prototype.removeCustomTone=function(){var n,t,i=document.querySelector(".custom_tone_container");i&&(this.custom_tone_value="",(n=this.custom_tone_plus_button)===null||n===void 0?void 0:n.classList.remove("hidden"),(t=document.querySelector(".tone-options"))===null||t===void 0?void 0:t.removeChild(i))},e.prototype.customToneTextInputFocusOut=function(n){if(this.custom_tone_text_input){var t=n.relatedTarget;if(!t||!t.id||t.id!=="custom_tone_add_button"&&t.id!=="custom_tone_save_button"){if(this.hideCustomToneEditContainer(),this.enableCustomToneAddButton(!1),this.enableCustomToneSaveButton(!1),this.custom_tone_value.length===0){this.enableCustomTonePlusButton(!0);this.removeSelectionFromTones();(!t||t&&t.classList.value!=="tone-option tag")&&this.selectDefaultTone();this.custom_tone_text_input.value="";return}if(this.custom_tone_text_input.value.length<=i.min_custom_tone_length){this.enableCustomTonePlusButton(!0);this.enableCustomToneEditButton(!1);this.removeCustomTone();(!t||t&&t.classList.value!=="tone-option tag")&&this.selectDefaultTone();this.custom_tone_text_input.value="";return}this.custom_tone_text_input.value=this.custom_tone_value;this.enableCustomToneEditButton(!0)}}},e.prototype.customToneTextInputKeyDown=function(n){var t,r,u,f,e=n.key;switch(e){case"Enter":this.custom_tone_value.length===0?this.custom_tone_text_input&&this.custom_tone_text_input.value.length>i.min_custom_tone_length&&this.addCustomToneButtonClicked():this.saveCustomToneButtonClicked();break;case"Tab":n.preventDefault();this.custom_tone_value.length===0?(t=this.custom_tone_add_button)===null||t===void 0?void 0:t.focus():(r=this.custom_tone_save_button)===null||r===void 0?void 0:r.focus();break;case"Escape":this.customToneTextInputFocusOut(n);this.custom_tone_value.length===0?(u=this.custom_tone_plus_button)===null||u===void 0?void 0:u.focus():(f=this.custom_tone_edit_button)===null||f===void 0?void 0:f.focus()}},e.prototype.customChangeSuggestionInputKeyDown=function(n){var t,r=n.key;switch(r){case"Enter":this.change_suggestion_text_input&&this.change_suggestion_text_input.value.length>i.min_custom_change_suggestion_length&&this.submitChangeSuggestionClicked();break;case"Escape":this.showChangeSuggestionsInput(!1);(t=this.add_change_suggestion_button)===null||t===void 0?void 0:t.focus()}},e.prototype.createToneOptions=function(){var f=this,e=[{label:this.toneOptions.professional,localizedLabel:this.localizedToneOptions.professional},{label:this.toneOptions.casual,localizedLabel:this.localizedToneOptions.casual},{label:this.toneOptions.enthusiastic,localizedLabel:this.localizedToneOptions.enthusiastic},{label:this.toneOptions.informational,localizedLabel:this.localizedToneOptions.informational},{label:this.toneOptions.funny,localizedLabel:this.localizedToneOptions.funny},],n=document.querySelector(".tone-options"),u;e.forEach(function(t){var e="<span>".concat(t.localizedLabel,"<\/span>"),u=r(e,"tone-option tag");f.setARIAattrForRadioButton(u,u.innerText.trim());u.setAttribute(i.unlocalized_attr_name,t.label);n===null||n===void 0?void 0:n.appendChild(u)});u=r(t.plusIcon,"tag");this.setARIAattrForRadioButton(u,this.customToneButtonTextValues.plus);u.setAttribute(i.unlocalized_attr_name,"Add customized tone");u.id="custom_tone_plus_button";n===null||n===void 0?void 0:n.appendChild(u)},e.prototype.createFormatOptions=function(){var u=this,f=[{label:this.formatOptions.paragraph,localizedLabel:this.localizedFormatOptions.paragraph,icon:t.paragraphShortSVG},{label:this.formatOptions.email,localizedLabel:this.localizedFormatOptions.email,icon:t.EmailSVG},{label:this.formatOptions.blogPost,localizedLabel:this.localizedFormatOptions.blogPost,icon:t.BlogpostSVG},{label:this.formatOptions.bulletPoints,localizedLabel:this.localizedFormatOptions.bulletPoints,icon:t.bulletPointsSVG}],n=document.querySelector(".format-options");f.forEach(function(t){var f=r(Shared.formatString('<div class="illustration" role="presentation">{0}<\/div> <p>{1}<\/p>',t.icon,t.localizedLabel),"format-option");u.setARIAattrForRadioButton(f,f.innerText.trim());f.setAttribute(i.unlocalized_attr_name,t.label);n===null||n===void 0?void 0:n.appendChild(f)})},e.prototype.createLengthOptions=function(){var t=this,u=[{label:this.lengthOptions.short,localizedLabel:this.localizedLengthOptions.short},{label:this.lengthOptions.medium,localizedLabel:this.localizedLengthOptions.medium},{label:this.lengthOptions.long,localizedLabel:this.localizedLengthOptions.long},],n=document.querySelector(".length-options");u.forEach(function(u){var f=r(Shared.formatString("<span>{0}<\/span>",u.localizedLabel),"length-option tag");t.setARIAattrForRadioButton(f,f.innerText.trim());f.setAttribute(i.unlocalized_attr_name,u.label);n===null||n===void 0?void 0:n.appendChild(f)})},e.prototype.createChangeSuggestions=function(){var i=this,n,t;this.changeSuggestions.length>0&&this.changeSuggestions[0].text!==""&&(n=0,t=1,this.changeSuggestions.forEach(function(u,f){var s,o,c,h;f>=e.changeSuggestionsMax||(o=u.text.replace(/\.$/,""),n+=o.length,n>=e.changeSuggestionsMaxCharPerLine&&(t+=1,n=o.length),t>e.changeSuggestionsMaxLines)||(c=Shared.formatString("<span>{0}<\/span>",o),h=r(c,"change-suggestion tag"),i.setChangeSuggestionAttrs(h,o,f+1),(s=i.change_suggestion_pills)===null||s===void 0?void 0:s.appendChild(h))}));this.change_suggestion_pills&&(this.createAddCustomChangeSuggestionButton(this.change_suggestion_pills.childElementCount+1),this.add_change_suggestion_button&&this.change_suggestion_pills.appendChild(this.add_change_suggestion_button))},e.prototype.createAddCustomChangeSuggestionButton=function(n){var u=this;this.add_change_suggestion_button=r(t.plusIcon,"change-suggestion tag");this.add_change_suggestion_button.setAttribute("id","add_change_suggestion_button");this.add_change_suggestion_button.setAttribute("role","button");this.add_change_suggestion_button.setAttribute("aria-label",this.customChangeSuggestionPlusButtonTextValue);this.add_change_suggestion_button.setAttribute("name",this.customChangeSuggestionPlusButtonTextValue);this.add_change_suggestion_button.setAttribute("title",this.customChangeSuggestionPlusButtonTextValue);this.add_change_suggestion_button.setAttribute("tabindex","0");this.add_change_suggestion_button.setAttribute(i.unlocalized_attr_name,"Add customized suggestion");this.add_change_suggestion_button.style.animationDelay="".concat(n*.05,"s");this.add_change_suggestion_button.addEventListener("click",function(){return u.addChangeSuggestionClicked()});this.add_change_suggestion_button.addEventListener("keypress",function(n){return u.addChangeSuggestionKeyPress(n)})},e.prototype.setChangeSuggestionAttrs=function(n,t,i){var r=this;n.setAttribute("role","button");n.setAttribute("tabindex","0");n.setAttribute("aria-label",n.innerText.trim());n.setAttribute("name",n.innerText.trim());n.style.animationDelay="".concat(i*.05,"s");n.addEventListener("click",function(){return r.changeSuggestionClicked(t)});n.addEventListener("keypress",function(n){return r.changeSuggestionKeyPress(n,t)})},e.prototype.changeSuggestionInputChanged=function(){var n,t=((n=this.change_suggestion_text_input)===null||n===void 0?void 0:n.value)||"";this.enableSubmitChangeSuggestionButton(t.length>i.min_custom_change_suggestion_length)},e.prototype.clearChangeSuggestions=function(){this.change_suggestion_pills&&(this.change_suggestion_pills.innerHTML="")},e.prototype.preselectOptionsForDefaultState=function(){var n=this;this.all_format_options.forEach(function(t){t.getAttribute(i.unlocalized_attr_name)==n.formatOptions.paragraph&&(t.classList.add("selected"),t.setAttribute("aria-checked","true"))});this.selectDefaultTone();this.all_length_options.forEach(function(t){var r=t;r.getAttribute(i.unlocalized_attr_name)==n.lengthOptions.medium&&(r.classList.add("selected"),r.setAttribute("aria-checked","true"))})},e.prototype.toneOptionClicked=function(n){var t;this.updateGenerateButtons();this.removeSelectionFromTones();n.classList.contains("selected")||(n.classList.add("selected"),n.setAttribute("aria-checked","true"),n.id==="custom_tone"&&((t=this.custom_tone_edit_button)===null||t===void 0?void 0:t.classList.add("selected"),this.enableCustomToneEditButton(!0)));this.logUserAction(0)},e.prototype.toneOptionKeyPress=function(n,t){n.key==="Enter"&&this.toneOptionClicked(t)},e.prototype.lengthOptionClicked=function(n){this.updateGenerateButtons();this.all_length_options.forEach(function(n){n.classList.remove("selected");n.setAttribute("aria-checked","false")});n.classList.contains("selected")||(n.classList.add("selected"),n.setAttribute("aria-checked","true"));this.logUserAction(1)},e.prototype.lengthOptionKeyPress=function(n,t){n.key==="Enter"&&this.lengthOptionClicked(t)},e.prototype.formatOptionClicked=function(n){this.updateGenerateButtons();this.all_format_options.forEach(function(n){n.classList.remove("selected");n.setAttribute("aria-checked","false")});n.classList.contains("selected")||(n.classList.add("selected"),n.setAttribute("aria-checked","true"));this.logUserAction(2)},e.prototype.formatOptionKeyPress=function(n,t){n.key==="Enter"&&this.formatOptionClicked(t)},e.prototype.changeSuggestionClicked=function(n){var t,i;this.stopStream();this.showChangeSuggestions(!1);this.conversation_turn_count+=1;i=this.getTextGenerationPromptWithChangeSuggestion(n);this.updateUIWhileFetchingData();this.requestGeneration(i,!1);this.enableStopButton(!0);(t=this.preview_text_area)===null||t===void 0?void 0:t.removeEventListener("input",this.logPreviewTextModified);this.logUserAction(101)},e.prototype.changeSuggestionKeyPress=function(n,t){var i;n.key==="Enter"&&(this.changeSuggestionClicked(t),(i=this.stop_button)===null||i===void 0?void 0:i.focus())},e.prototype.addChangeSuggestionClicked=function(){if(this.add_change_suggestion_button&&this.change_suggestion_text_input){var n=this.change_suggestion_text_input.classList.contains("hidden");this.showChangeSuggestionsInput(n);n?(this.add_change_suggestion_button.classList.add("selected"),this.add_change_suggestion_button.setAttribute("aria-pressed","true")):(this.add_change_suggestion_button.classList.remove("selected"),this.add_change_suggestion_button.setAttribute("aria-pressed","false"));this.logUserAction(102)}},e.prototype.addChangeSuggestionKeyPress=function(n){n.key==="Enter"&&this.addChangeSuggestionClicked()},e.prototype.submitChangeSuggestionClicked=function(){var n,t;this.change_suggestion_text_input&&(t=((n=this.change_suggestion_text_input)===null||n===void 0?void 0:n.value.trim())||"",this.changeSuggestionClicked(t),this.change_suggestion_text_input.value="",this.logUserAction(103))},e.prototype.submitChangeSuggestionKeyPress=function(n){var t;n.key==="Enter"&&(this.submitChangeSuggestionClicked(),(t=this.stop_button)===null||t===void 0?void 0:t.focus())},e.prototype.showShimmer=function(n){var t,i,r;n?((t=this.shimmerEl)===null||t===void 0?void 0:t.classList.remove("hidden"),this.hideError(),this.preview_text_area.placeholder=""):((i=this.shimmerEl)===null||i===void 0?void 0:i.classList.add("hidden"),((r=this.errorEl)===null||r===void 0?void 0:r.classList.contains("hidden"))&&(this.preview_text_area.placeholder=this.preview_text_area_placeholder))},e.prototype.hideTextOnApology=function(){this.preview_text_area.value="";this.disclaimer_box.innerText="";this.disclaimer_box.classList.add("hidden")},e.prototype.setSelectedText=function(){return},e.prototype.hideError=function(){var n;(n=this.errorEl)===null||n===void 0?void 0:n.classList.add("hidden");this.disableTextPreview(!1);this.preview_text_area.placeholder=this.preview_text_area_placeholder},e.prototype.showCaptcha=function(){f.prototype.showCaptcha.call(this);this.enableGenerateButtons(!1);this.enableInsertButton(!1);this.enableCopyButton(!1);this.showChangeSuggestions(!1)},e.prototype.hideCaptcha=function(){var n;f.prototype.hideCaptcha.call(this);this.enableGenerateButtons(!0);this.enableInsertButton(!0);this.enableCopyButton(!0);(n=this.generate_button)===null||n===void 0?void 0:n.click()},e.prototype.scrollToBottom=function(){this.insert_button?this.insert_button.scrollIntoView({behavior:"smooth"}):this.detached_copy_button?(this.detached_copy_button.scrollIntoView({behavior:"smooth"}),this.resetDetachedCopyButtonText()):this.share_button&&this.share_button.scrollIntoView({behavior:"smooth"})},e.prototype.showChangeSuggestions=function(n){var t;n&&this.change_suggestion_pills?(this.change_suggestion_pills.classList.remove("hidden"),this.createChangeSuggestions(),setTimeout(this.scrollToBottom.bind(this),this.change_suggestion_pills.childElementCount*50)):((t=this.change_suggestion_pills)===null||t===void 0?void 0:t.classList.add("hidden"),this.showChangeSuggestionsInput(!1),this.clearChangeSuggestions())},e.prototype.showChangeSuggestionsInput=function(n){var t,i,r,u;n?((t=this.change_suggestion_text_input)===null||t===void 0?void 0:t.classList.remove("hidden"),(i=this.submit_change_suggestion_button)===null||i===void 0?void 0:i.classList.remove("hidden"),this.scrollToBottom()):((r=this.change_suggestion_text_input)===null||r===void 0?void 0:r.classList.add("hidden"),(u=this.submit_change_suggestion_button)===null||u===void 0?void 0:u.classList.add("hidden"))},e.prototype.disableTextPreview=function(n){n?(this.preview_text_area.setAttribute("disabled","true"),document.querySelector("div.preview-options").classList.add("disabled")):(this.preview_text_area.removeAttribute("disabled"),document.querySelector("div.preview-options").classList.remove("disabled"))},e.prototype.enableCustomToneAddButton=function(n){n?(this.custom_tone_add_button.classList.remove("disabled"),this.setARIADisabled(this.custom_tone_add_button,!1),this.custom_tone_add_button.addEventListener("click",this.addCustomToneButtonClicked),this.custom_tone_add_button.addEventListener("keypress",this.addCustomToneButtonKeyPress)):(this.custom_tone_add_button.classList.add("disabled"),this.setARIADisabled(this.custom_tone_add_button),this.custom_tone_add_button.removeEventListener("click",this.addCustomToneButtonClicked),this.custom_tone_add_button.removeEventListener("keypress",this.addCustomToneButtonKeyPress))},e.prototype.enableCustomTonePlusButton=function(n){n?(this.custom_tone_plus_button.classList.remove("disabled"),this.setARIADisabled(this.custom_tone_plus_button,!1),this.custom_tone_plus_button.addEventListener("click",this.plusCustomToneButtonClicked),this.custom_tone_plus_button.addEventListener("keypress",this.plusCustomToneButtonKeyPress)):(this.custom_tone_plus_button.classList.add("disabled"),this.setARIADisabled(this.custom_tone_plus_button),this.custom_tone_plus_button.removeEventListener("click",this.plusCustomToneButtonClicked),this.custom_tone_plus_button.removeEventListener("keypress",this.plusCustomToneButtonKeyPress))},e.prototype.enableCustomToneEditButton=function(n){n?(this.custom_tone_edit_button.classList.remove("disabled"),this.setARIADisabled(this.custom_tone_edit_button,!1),this.custom_tone_edit_button.addEventListener("click",this.editCustomToneButtonClicked),this.custom_tone_edit_button.addEventListener("keypress",this.editCustomToneButtonKeyPress)):(this.custom_tone_edit_button.classList.add("disabled"),this.setARIADisabled(this.custom_tone_edit_button),this.custom_tone_edit_button.removeEventListener("click",this.editCustomToneButtonClicked),this.custom_tone_edit_button.removeEventListener("keypress",this.editCustomToneButtonKeyPress))},e.prototype.enableCustomToneSaveButton=function(n){n?(this.custom_tone_save_button.classList.remove("disabled"),this.setARIADisabled(this.custom_tone_save_button,!1),this.custom_tone_save_button.addEventListener("click",this.saveCustomToneButtonClicked),this.custom_tone_save_button.addEventListener("keypress",this.saveCustomToneButtonKeyPress)):(this.custom_tone_save_button.classList.add("disabled"),this.setARIADisabled(this.custom_tone_save_button),this.custom_tone_save_button.removeEventListener("click",this.saveCustomToneButtonClicked),this.custom_tone_save_button.removeEventListener("keypress",this.saveCustomToneButtonKeyPress))},e.prototype.enableInsertButton=function(n){n?(this.insert_button&&(this.insert_button.classList.remove("disabled"),this.setARIADisabled(this.insert_button,!1),this.insert_button.addEventListener("click",this.insertButtonClicked),this.insert_button.addEventListener("keypress",this.insertButtonKeyPress)),this.detached_copy_button&&(this.detached_copy_button.classList.remove("disabled"),this.setARIADisabled(this.detached_copy_button,!1),this.detached_copy_button.addEventListener("click",this.copyButtonClicked),this.detached_copy_button.addEventListener("keypress",this.copyButtonKeyPress)),this.share_button&&(this.share_button.classList.remove("disabled"),this.setARIADisabled(this.share_button,!1),this.share_button.addEventListener("click",this.shareButtonClicked)),this.export_button&&(this.export_button.classList.remove("disabled"),this.setARIADisabled(this.export_button,!1),this.export_button.addEventListener("click",this.exportButtonClicked))):(this.insert_button&&(this.resetDetachedCopyButtonText(),this.insert_button.classList.add("disabled"),this.setARIADisabled(this.insert_button),this.insert_button.removeEventListener("click",this.insertButtonClicked),this.insert_button.removeEventListener("keypress",this.insertButtonKeyPress)),this.detached_copy_button&&(this.resetDetachedCopyButtonText(),this.detached_copy_button.classList.add("disabled"),this.setARIADisabled(this.detached_copy_button),this.detached_copy_button.removeEventListener("click",this.copyButtonClicked),this.detached_copy_button.removeEventListener("keypress",this.copyButtonKeyPress)),this.share_button&&(this.share_button.classList.add("disabled"),this.setARIADisabled(this.share_button),this.share_button.removeEventListener("click",this.shareButtonClicked)),this.export_button&&(this.export_button.classList.add("disabled"),this.setARIADisabled(this.export_button),this.export_button.removeEventListener("click",this.exportButtonClicked)))},e.prototype.resetDetachedCopyButtonText=function(){this.detached_copy_button!==undefined&&(this.detached_copy_button.innerText=this.uiStrings.copy,this.detached_copy_button.setAttribute("aria-label",this.uiStrings.copy))},e.prototype.updateHistoryButtonStatus=function(){var n=this.historyIndex>0,t=this.historyIndex<this.history.length-1;this.enableHistoryButton(this.prev_button,n,!1);this.enableHistoryButton(this.next_button,t,!0)},e.prototype.enableHistoryButton=function(n,t,i){t?(n.classList.remove("disabled"),this.setARIADisabled(n,!1),n.addEventListener("click",i?this.nextButtonClicked:this.prevButtonClicked),n.addEventListener("keypress",i?this.nextButtonClicked:this.prevButtonKeyPress)):(n.classList.add("disabled"),this.setARIADisabled(n),n.removeEventListener("click",i?this.nextButtonClicked:this.prevButtonClicked),n.removeEventListener("keypress",i?this.nextButtonClicked:this.prevButtonClicked))},e.prototype.enableConversationIdCopyButton=function(n){this.conversation_id_copy_button&&(n?(this.conversation_id_copy_button.classList.remove("disabled"),this.setARIADisabled(this.conversation_id_copy_button,!1),this.conversation_id_copy_button.addEventListener("click",this.conversationIdCopyButtonClicked),this.conversation_id_copy_button.addEventListener("keypress",this.conversationIdCopyButtonKeyPress)):(this.conversation_id_copy_button.classList.add("disabled"),this.setARIADisabled(this.conversation_id_copy_button),this.conversation_id_copy_button.removeEventListener("click",this.conversationIdCopyButtonClicked),this.conversation_id_copy_button.removeEventListener("keypress",this.conversationIdCopyButtonKeyPress)))},e.prototype.enableCopyButton=function(n){this.copy_button&&(n?(this.copy_button.classList.remove("disabled"),this.setARIADisabled(this.copy_button,!1),this.copy_button.addEventListener("click",this.copyButtonClicked),this.copy_button.addEventListener("keypress",this.copyButtonKeyPress)):(this.copy_button.classList.add("disabled"),this.setARIADisabled(this.copy_button),this.copy_button.removeEventListener("click",this.copyButtonClicked),this.copy_button.removeEventListener("keypress",this.copyButtonKeyPress)))},e.prototype.enableStopButton=function(n){n?(this.stop_button.classList.remove("disabled"),this.setARIADisabled(this.stop_button,!1),this.stop_button.addEventListener("click",this.stopButtonClicked),this.stop_button.addEventListener("keypress",this.stopButtonKeyPress)):(this.stop_button.classList.add("disabled"),this.setARIADisabled(this.stop_button),this.stop_button.removeEventListener("click",this.stopButtonClicked),this.stop_button.removeEventListener("keypress",this.stopButtonKeyPress))},e.prototype.enableGenerateButtons=function(n){this.enableGenerateButton(this.generate_button,n);this.enableGenerateButton(this.regenerate_button,n)},e.prototype.enableGenerateButton=function(n,t){t?(n.classList.remove("disabled"),this.setARIADisabled(n,!1),n.addEventListener("click",this.generateButtonClicked),n.addEventListener("keypress",this.generateButtonKeyPress)):(n.classList.add("disabled"),this.setARIADisabled(n),n.removeEventListener("click",this.generateButtonClicked),n.removeEventListener("keypress",this.generateButtonKeyPress))},e.prototype.enableSubmitChangeSuggestionButton=function(n){n?(this.submit_change_suggestion_button.classList.remove("disabled"),this.setARIADisabled(this.submit_change_suggestion_button,!1),this.submit_change_suggestion_button.addEventListener("click",this.submitChangeSuggestionClicked),this.submit_change_suggestion_button.addEventListener("keypress",this.submitChangeSuggestionKeyPress)):(this.submit_change_suggestion_button.classList.add("disabled"),this.setARIADisabled(this.submit_change_suggestion_button),this.submit_change_suggestion_button.removeEventListener("click",this.submitChangeSuggestionClicked),this.submit_change_suggestion_button.removeEventListener("keypress",this.submitChangeSuggestionKeyPress))},e.prototype.setARIADisabled=function(n,t){t===void 0&&(t=!0);t?(n.setAttribute("aria-disabled","true"),n.removeAttribute("tabindex")):(n.setAttribute("aria-disabled","false"),n.setAttribute("tabindex","0"))},e.prototype.getSelectedOptions=function(){var u=this,r,n="paragraph",t="professional",i="short",f=(r=this.compose_text_area)===null||r===void 0?void 0:r.value.trim();return this.all_format_options.forEach(function(t){if(t.classList.contains("selected")){n=t.getAttribute("unloc-name")||"";n===u.formatOptions.bulletPoints&&(n="bullet point list");return}}),this.all_tone_options.forEach(function(n){var i=n;if(n.classList.contains("selected")){t=i.getAttribute("unloc-name")||"";return}}),this.all_length_options.forEach(function(n){var t=n;if(n.classList.contains("selected")){i=t.getAttribute("unloc-name")||"";return}}),n=n.toLowerCase(),t=t.toLowerCase(),i=i.toLowerCase(),{format:n,tone:t,length:i,prompt:f}},e.prototype.generateButtonClicked=function(n){var r,f,e;this.stopStream();this.showChangeSuggestions(!1);var t=this.getSelectedOptions(),o=t.format,s=t.tone,h=t.length,u=t.prompt;u=u.substring(0,i.max_prompt_length);f=this.getTextGenerationPrompt(o,s,h,u);this.updateUIWhileFetchingData();this.requestGeneration(f,!0);this.enableStopButton(!0);(r=this.preview_text_area)===null||r===void 0?void 0:r.removeEventListener("input",this.logPreviewTextModified);e=n.currentTarget;e==this.generate_button?this.logUserAction(100):this.logUserAction(113)},e.prototype.updateUIWhileFetchingData=function(){this.alertARIAMessage(this.ariaAlerts.generating,!0);this.preview_text_area.value="";this.disclaimer_box.innerText="";this.disclaimer_box.classList.add("hidden");this.showShimmer(!0);this.scrollToBottom();this.enableGenerateButtons(!1);this.enableInsertButton(!1);this.enableHistoryButton(this.prev_button,!1,!1);this.enableHistoryButton(this.next_button,!1,!0)},e.prototype.conversationIdCopyButtonClicked=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:return[4,navigator.clipboard.writeText(this.conversation_id)];case 1:return n.sent(),[2]}})})},e.prototype.copyButtonClicked=function(){var t,i;return __awaiter(this,void 0,void 0,function(){var r,u,f;return __generator(this,function(e){switch(e.label){case 0:return(r=this.preview_text_area.value.trim()||"",this.alertARIAMessage(this.ariaAlerts.copy,!0),u=(i=(t=_w._udsCoAuthorConfig)===null||t===void 0?void 0:t.ComposeUnion)!==null&&i!==void 0?i:!1,!u)?[3,1]:(f={partner:"Compose",action:"setClipboard",data:{type:"text",text:{value:r}}},n.GC.PostMessage.parent("copyToClipboard",f),[3,3]);case 1:return[4,navigator.clipboard.writeText(r)];case 2:e.sent();e.label=3;case 3:return this.detached_copy_button!==undefined?(this.detached_copy_button.innerText=this.uiStrings.copied,this.logUserAction(300),[2]):(this.logUserAction(104),[2])}})})},e.prototype.shareButtonClicked=function(){var t,i=(t=this.preview_text_area)===null||t===void 0?void 0:t.value,r={partner:"Compose",appId:"",data:{scenario:"Share",action:"shareText",text:i}};n.GC.PostMessage.parent("shareText",r)},e.prototype.exportButtonClicked=function(){var n;return __awaiter(this,void 0,void 0,function(){var t,i,r,u;return __generator(this,function(f){switch(f.label){case 0:return CIB.exportContentToFile?(t="docx",i={filename:"compose"},r={},u=(n=this.preview_text_area)===null||n===void 0?void 0:n.value,[4,CIB.exportContentToFile(t,u,i,r)]):[2];case 1:return f.sent(),[2]}})})},e.prototype.stopButtonClicked=function(){this.user_stopped_stream=!0;this.stopStream();this.enableStopButton(!1);this.logUserAction(105)},e.prototype.plusCustomToneButtonClicked=function(){var n,t,i,r,u,f;this.removeSelectionFromTones();(n=this.custom_tone_text_input)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.custom_tone_text_input)===null||t===void 0?void 0:t.focus();(i=this.custom_tone_add_button)===null||i===void 0?void 0:i.classList.remove("hidden");((r=this.custom_tone_plus_button)===null||r===void 0?void 0:r.classList.contains("selected"))||((u=this.custom_tone_plus_button)===null||u===void 0?void 0:u.classList.add("selected"),(f=this.custom_tone_plus_button)===null||f===void 0?void 0:f.setAttribute("aria-checked","true"));this.logUserAction(106)},e.prototype.addCustomToneButtonClicked=function(){var u=this,e,o,s,h,c,l,n,f;this.custom_tone_value=((e=this.custom_tone_text_input)===null||e===void 0?void 0:e.value.trim())||"";l="<span>".concat(this.custom_tone_value,"<\/span>");this.custom_tone=r(l,"tone-option tag");this.setARIAattrForRadioButton(this.custom_tone,this.custom_tone.innerText.trim());this.custom_tone.id="custom_tone";this.custom_tone.setAttribute(i.unlocalized_attr_name,this.custom_tone.innerText.trim());this.custom_tone.addEventListener("click",function(){return u.toneOptionClicked(u.custom_tone)});this.custom_tone.addEventListener("keypress",function(n){return u.toneOptionKeyPress(n,u.custom_tone)});n=r(t.penSVG,"tag selected");this.setARIAattrForTag(n,this.customToneButtonTextValues.edit);n.id="custom_tone_edit_button";f=r("","custom_tone_container");f.appendChild(this.custom_tone);f.appendChild(n);this.custom_tone_edit_button=n;this.editCustomToneButtonClicked=this.editCustomToneButtonClicked.bind(this);this.editCustomToneButtonKeyPress=this.editCustomToneButtonKeyPress.bind(this);(o=document.querySelector(".tone-options"))===null||o===void 0?void 0:o.appendChild(f);this.all_tone_options.push(this.custom_tone);this.toneOptionClicked(this.custom_tone);(s=this.custom_tone_text_input)===null||s===void 0?void 0:s.classList.add("hidden");(h=this.custom_tone_plus_button)===null||h===void 0?void 0:h.classList.add("hidden");(c=this.custom_tone_add_button)===null||c===void 0?void 0:c.classList.add("hidden");this.enableCustomTonePlusButton(!1);this.enableCustomToneAddButton(!1);this.enableCustomToneEditButton(!0);this.logUserAction(107)},e.prototype.editCustomToneButtonClicked=function(){var n,t,i,r;this.toneOptionClicked(this.custom_tone);(n=this.custom_tone_text_input)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.custom_tone_save_button)===null||t===void 0?void 0:t.classList.remove("hidden");(i=this.custom_tone_edit_button)===null||i===void 0?void 0:i.classList.add("selected");(r=this.custom_tone_text_input)===null||r===void 0?void 0:r.focus();this.logUserAction(108)},e.prototype.saveCustomToneButtonClicked=function(){var n,t,r;if((n=this.custom_tone_text_input)===null||n===void 0?void 0:n.classList.add("hidden"),(t=this.custom_tone_save_button)===null||t===void 0?void 0:t.classList.add("hidden"),this.enableCustomToneSaveButton(!1),this.enableCustomToneEditButton(!0),this.custom_tone_text_input&&this.custom_tone_text_input.value.length<i.min_custom_tone_length){this.enableCustomTonePlusButton(!0);this.removeCustomTone();this.selectDefaultTone();return}this.custom_tone_value=((r=this.custom_tone_text_input)===null||r===void 0?void 0:r.value.trim())||"";this.custom_tone.innerHTML="<span>".concat(this.custom_tone_value,"<\/span>");this.custom_tone.setAttribute(i.unlocalized_attr_name,this.custom_tone.innerText.trim());this.setARIAattrForRadioButton(this.custom_tone,this.custom_tone.innerText.trim());this.logUserAction(109)},e.prototype.insertButtonClicked=function(){this.logUserAction(112);u.postMessage("InsertToPage",{text:this.preview_text_area.value})},e.prototype.writeHistoryEntry=function(n,t){this.history.push({disclaimer_text:n,generated_content:t});this.historyIndex=this.history.length-1;this.updateHistoryButtonStatus()},e.prototype.prevButtonClicked=function(){this.historyIndex<1||(this.historyIndex=this.historyIndex-1,this.historyButtonClicked(),this.logUserAction(110))},e.prototype.nextButtonClicked=function(){this.historyIndex>=this.history.length||(this.historyIndex=this.historyIndex+1,this.historyButtonClicked(),this.logUserAction(111))},e.prototype.historyButtonClicked=function(){var n=this.history[this.historyIndex],t=n.disclaimer_text,r=n.generated_content,i;t.length>0&&(this.disclaimer_box.textContent=t,this.disclaimer_box.classList.remove("hidden"));this.preview_text_area.value=r;this.hideError();this.updateHistoryButtonStatus();i=this.historyIndex+1;this.alertARIAMessage(this.ariaAlerts.showDraft+i+this.ariaAlerts.showDraftTotal+this.history.length,!0)},e.prototype.conversationIdCopyButtonKeyPress=function(n){n.key==="Enter"&&this.conversationIdCopyButtonClicked()},e.prototype.copyButtonKeyPress=function(n){n.key==="Enter"&&this.copyButtonClicked()},e.prototype.stopButtonKeyPress=function(n){n.key==="Enter"&&this.stopButtonClicked()},e.prototype.generateButtonKeyPress=function(n){var t;n.key==="Enter"&&(this.generateButtonClicked(n),(t=this.stop_button)===null||t===void 0?void 0:t.focus())},e.prototype.addCustomToneButtonKeyPress=function(n){var t;n.key==="Enter"&&(this.addCustomToneButtonClicked(),(t=this.custom_tone_edit_button)===null||t===void 0?void 0:t.focus())},e.prototype.plusCustomToneButtonKeyPress=function(n){var t=n.key;(t==="Enter"||t==="Space")&&this.plusCustomToneButtonClicked()},e.prototype.editCustomToneButtonKeyPress=function(n){n.key==="Enter"&&this.editCustomToneButtonClicked()},e.prototype.saveCustomToneButtonKeyPress=function(n){var t,i;n.key==="Enter"&&(this.saveCustomToneButtonClicked(),this.custom_tone_value.length===0?(t=this.custom_tone_plus_button)===null||t===void 0?void 0:t.focus():(i=this.custom_tone_edit_button)===null||i===void 0?void 0:i.focus())},e.prototype.insertButtonKeyPress=function(n){n.key==="Enter"&&this.insertButtonClicked()},e.prototype.prevButtonKeyPress=function(n){n.key==="Enter"&&this.prevButtonClicked()},e.prototype.nextButtonKeyPress=function(n){n.key==="Enter"&&this.nextButtonClicked()},e.prototype.replaceNewlines=function(n){return n.trim().replace(/\n{3,}/g,"\n\n")},e.prototype.setPreviewText=function(n,t,i){t===void 0&&(t="");i===void 0&&(i="");this.beginStreamingTimeout&&clearTimeout(this.beginStreamingTimeout);this.preview_text_area.value=n;var r=t+i;r=this.replaceNewlines(r);r.length>0&&(this.disclaimer_box.innerText=r,this.disclaimer_box.classList.remove("hidden"));this.showShimmer(!1);this.enableInsertButton(!0);this.enableCopyButton(!0);this.show_conversation_id&&this.enableConversationIdCopyButton(!0);this.disableTextPreview(!1);this.preview_text_area.scrollTop=this.preview_text_area.scrollHeight},e.prototype.logPreviewTextModified=function(){this.logUserAction(114)},e.prototype.onStreamFinished=function(n,t){var i;this.stream_finished_successfully&&this.alertARIAMessage(this.ariaAlerts.success,!0);(this.disclaimer_box.innerText.length>0||this.preview_text_area.value.length>0)&&this.writeHistoryEntry(this.disclaimer_box.innerText,this.preview_text_area.value);n==t&&(this.updateGenerateButtons(),this.updateHistoryButtonStatus(),this.conversation_turn_count>=this.conversationTurnMax?(this.showChangeSuggestions(!1),this.enableGenerateButton(this.regenerate_button,!1)):this.stream_finished_successfully&&this.changeSuggestions.length>0?this.showChangeSuggestions(!0):this.user_stopped_stream&&this.showChangeSuggestionsInput(!0),(i=this.preview_text_area)===null||i===void 0?void 0:i.addEventListener("input",this.logPreviewTextModified,{once:!0}),this.enableStopButton(!1))},e.prototype.setARIAattrForTag=function(n,t){n.setAttribute("role","button");n.setAttribute("aria-pressed","false");n.setAttribute("aria-label",t);n.setAttribute("name",t);n.setAttribute("tabindex","0")},e.prototype.setARIAattrForRadioButton=function(n,t){n.setAttribute("role","radio");n.setAttribute("aria-checked","false");n.setAttribute("aria-label",t);n.setAttribute("tabindex","0")},e.changeSuggestionsMaxCharPerLine=46,e.changeSuggestionsMaxLines=2,e.changeSuggestionsMax=3,e}(i);t.CoAuthorSidebarUI=f;e=function(u){function f(){var n=u.call(this)||this;return n.input_screen=undefined,n.preview_screen=undefined,n.overlayEl=undefined,n.overlayContentEl=undefined,n.compose_text_area=undefined,n.letter_counter=undefined,n.preview_back_button=undefined,n.disclaimer_box=undefined,n.preview_text_area_placeholder="",n.shimmerEl=undefined,n.optionsSummaryEl=undefined,n.close_button=undefined,n.adjust_style_button=undefined,n.stop_button=undefined,n.generate_button=undefined,n.copy_button=undefined,n.regenerate_button=undefined,n.prev_button=undefined,n.next_button=undefined,n.adjust_style_inline_button=undefined,n.history=[],n.historyIndex=0,n}return __extends(f,u),f.prototype.initUI=function(){var u=this,s,h,c,e,o,f,l;this.input_screen=document.getElementById("mobile_scinput");this.compose_text_area=document.getElementById("prompt_text");this.letter_counter=document.getElementById("letter_counter");this.adjust_style_button=document.getElementById("mobile_adjust_style");this.compose_text_area.addEventListener("input",function(){var n;u.compose_text_area.style.height="14px";u.compose_text_area.style.height=((n=u.compose_text_area)===null||n===void 0?void 0:n.scrollHeight)+"px"});this.compose_text_area.addEventListener("input",function(n){return u.composeTextAreaChanged(n)});this.compose_text_area.addEventListener("keydown",function(n){return u.alertComposeTextAreaLimitReached(n)});this.compose_text_area.setAttribute("maxlength","".concat(i.max_prompt_length));this.compose_text_area.setAttribute("aria-label","".concat(this.ariaLabels.promptAreaLabel," ").concat(i.max_prompt_length));this.letter_counter.setAttribute("aria-valuemax","".concat(i.max_prompt_length));e=document.getElementById("mobile_adjust_style_icon");o=document.getElementById("mobile_arrow_icon");e===null||e===void 0?void 0:e.appendChild(r(t.adjustIcon));o===null||o===void 0?void 0:o.appendChild(r(t.rightIcon));this.preview_screen=document.getElementById("mobile_scpreview");this.preview_back_button=document.querySelector("#mobile_back_button")||undefined;this.preview_text_area=document.getElementById("preview_text");this.disclaimer_box=document.getElementById("disclaimer_box");this.preview_text_area_placeholder=this.preview_text_area.placeholder;this.shimmerEl=document.getElementById("shimmer");this.errorEl=document.getElementById("error");this.optionsSummaryEl=document.getElementById("options_summary");this.copy_button=document.querySelector("#copy_button")||undefined;this.stop_button=document.querySelector("#stop_button")||undefined;this.generate_button=document.querySelector("#compose_button")||undefined;this.adjust_style_inline_button=document.querySelector("#adjust_style_inline_button");this.next_button=document.querySelector("#next_button");this.prev_button=document.querySelector("#previous_button");this.regenerate_button=document.querySelector("#regenerate_button");this.adjust_style_inline_button.appendChild(r(t.adjustIcon));this.prev_button.appendChild(r(t.prevIcon));this.next_button.appendChild(r(t.nextIcon));this.regenerate_button.appendChild(r(t.generateIcon));this.errorEl.prepend(r(t.warningSVG));(s=this.stop_button)===null||s===void 0?void 0:s.prepend(r(t.stopIcon));(h=this.preview_back_button)===null||h===void 0?void 0:h.appendChild(r(t.leftIcon));this.preview_text_area.addEventListener("input",function(){var n;u.preview_text_area.style.height="14px";u.preview_text_area.style.height=((n=u.preview_text_area)===null||n===void 0?void 0:n.scrollHeight)+"px"});this.overlayEl=document.getElementById("mobile_overlay");this.overlayContentEl=document.querySelector("#mobile_overlay .content")||undefined;this.createStyleOptions();f=document.getElementById("mobile_overlay_back_button");f===null||f===void 0?void 0:f.appendChild(r(t.leftIcon));l=document.getElementById("mobile_apply_button");this.close_button=document.getElementById("mobile_close_button");(c=this.close_button)===null||c===void 0?void 0:c.appendChild(r(t.closeIcon));this.generateButtonClicked=this.generateButtonClicked.bind(this);this.generateButtonKeyPress=this.generateButtonKeyPress.bind(this);this.copyButtonClicked=this.copyButtonClicked.bind(this);this.copyButtonKeyPress=this.copyButtonKeyPress.bind(this);this.stopButtonClicked=this.stopButtonClicked.bind(this);this.stopButtonKeyPress=this.stopButtonKeyPress.bind(this);this.adjustStylesButtonClicked=this.adjustStylesButtonClicked.bind(this);this.previewBackButtonClicked=this.previewBackButtonClicked.bind(this);this.overlayBackButtonClicked=this.overlayBackButtonClicked.bind(this);this.overlayApplyButtonClicked=this.overlayApplyButtonClicked.bind(this);this.preselectOptionsForDefaultState();this.setSelectedOptionsSummaryText();this.enableAdjustStyleButtons(!0);this.enableGenerateButtons(!0);this.enableStopButton(!1);this.enableCopyButton(!1);this.updateHistoryButtonStatus();this.setARIADisabled(f,!1);f.addEventListener("click",this.overlayBackButtonClicked);l.addEventListener("click",this.overlayApplyButtonClicked);this.setARIADisabled(this.preview_back_button,!1);this.preview_back_button.addEventListener("click",this.previewBackButtonClicked);this.tryToSetPresetTextFromUrl();this.updateCharCounter();this.compose_text_area.focus();sj_evt.fire(n.DiscoverPageLoadEventName,{})},f.prototype.showChangeSuggestions=function(){},f.prototype.getPresetTextFromUrl=function(){var n=new URLSearchParams(_w.location.search);return n.get(t.QueryParam_SetText)||""},f.prototype.tryToSetPresetTextFromUrl=function(){var i,n=this.getPresetTextFromUrl();n&&(n=n.substring(0,t.QueryParam_SetText_Max_Length),this.compose_text_area.value=n,(i=this.compose_text_area)===null||i===void 0?void 0:i.dispatchEvent(new Event("input")))},f.prototype.createStyleOptions=function(){var t=document.querySelector("#mobile_style_options");if(t){var i=[{label:this.toneOptions.professional,localizedLabel:this.localizedToneOptions.professional},{label:this.toneOptions.casual,localizedLabel:this.localizedToneOptions.casual},{label:this.toneOptions.enthusiastic,localizedLabel:this.localizedToneOptions.enthusiastic},{label:this.toneOptions.informational,localizedLabel:this.localizedToneOptions.informational},{label:this.toneOptions.funny,localizedLabel:this.localizedToneOptions.funny},],r=[{label:this.formatOptions.paragraph,localizedLabel:this.localizedFormatOptions.paragraph},{label:this.formatOptions.email,localizedLabel:this.localizedFormatOptions.email},{label:this.formatOptions.blogPost,localizedLabel:this.localizedFormatOptions.blogPost},{label:this.formatOptions.bulletPoints,localizedLabel:this.localizedFormatOptions.bulletPoints}],u=[{label:this.lengthOptions.short,localizedLabel:this.localizedLengthOptions.short},{label:this.lengthOptions.medium,localizedLabel:this.localizedLengthOptions.medium},{label:this.lengthOptions.long,localizedLabel:this.localizedLengthOptions.long},],n=new DocumentFragment;n.append.apply(n,this.createStyleOptionsListElement(this.uiStrings.tone,i,"tone"));n.append.apply(n,this.createStyleOptionsListElement(this.uiStrings.format,r,"format"));n.append.apply(n,this.createStyleOptionsListElement(this.uiStrings.length,u,"length"));t.appendChild(n)}},f.prototype.createStyleOptionsListElement=function(n,u,f){var e=[],o=document.createElement("lh");return o.textContent=n,e.push(o),u.forEach(function(n){var o=r(t.mobileCheckmarkIcon,"icon"),u=document.createElement("li");u.setAttribute("role","option");u.classList.add(f);u.textContent=n.localizedLabel;u.setAttribute("aria-label",n.localizedLabel);u.prepend(o);u.setAttribute(i.unlocalized_attr_name,n.label);e.push(u);u.addEventListener("click",function(){var n=document.querySelectorAll("#mobile_style_options li.".concat(f));n.forEach(function(n){n.classList.remove("selected");n.setAttribute("aria-selected","false")});u.setAttribute("aria-selected","true");u.classList.add("selected")})}),e},f.prototype.updateGenerateButtons=function(){this.compose_text_area&&this.compose_text_area.textLength>2?this.enableGenerateButtons(!0):this.enableGenerateButtons(!1)},f.prototype.updateCharCounter=function(){if(this.letter_counter&&this.compose_text_area){var n=this.compose_text_area.textLength;this.letter_counter.textContent="".concat(n,"/").concat(i.max_prompt_length);this.letter_counter.setAttribute("aria-label","".concat(n," ").concat(this.ariaLabels.letterCounterLabel));this.letter_counter.setAttribute("aria-valuenow","".concat(n))}},f.prototype.composeTextAreaChanged=function(){this.updateGenerateButtons();this.updateCharCounter()},f.prototype.alertComposeTextAreaLimitReached=function(){this.compose_text_area.textLength==i.max_prompt_length&&this.alertARIAMessage("".concat(i.max_prompt_length," ").concat(this.ariaAlerts.charLimitReached),!1)},f.prototype.preselectOptionsForDefaultState=function(){var r=document.querySelector("#mobile_style_options li.tone[".concat(i.unlocalized_attr_name,'="').concat(this.toneOptions.professional,'"]')),n,t;r===null||r===void 0?void 0:r.setAttribute("aria-selected","true");r===null||r===void 0?void 0:r.classList.add("selected");n=document.querySelector("#mobile_style_options li.format[".concat(i.unlocalized_attr_name,'="').concat(this.formatOptions.paragraph,'"]'));n===null||n===void 0?void 0:n.setAttribute("aria-selected","true");n===null||n===void 0?void 0:n.classList.add("selected");t=document.querySelector("#mobile_style_options li.length[".concat(i.unlocalized_attr_name,'="').concat(this.lengthOptions.short,'"]'));t===null||t===void 0?void 0:t.setAttribute("aria-selected","true");t===null||t===void 0?void 0:t.classList.add("selected")},f.prototype.showShimmer=function(n){var t,i,r;n?((t=this.shimmerEl)===null||t===void 0?void 0:t.classList.remove("hidden"),this.hideError(),this.preview_text_area.placeholder=""):((i=this.shimmerEl)===null||i===void 0?void 0:i.classList.add("hidden"),((r=this.errorEl)===null||r===void 0?void 0:r.classList.contains("hidden"))&&(this.preview_text_area.placeholder=this.preview_text_area_placeholder))},f.prototype.hideTextOnApology=function(){this.preview_text_area.value="";this.disclaimer_box.innerText=""},f.prototype.setSelectedText=function(){return},f.prototype.hideError=function(){var n;(n=this.errorEl)===null||n===void 0?void 0:n.classList.add("hidden");this.disableTextPreview(!1);this.preview_text_area.placeholder=this.preview_text_area_placeholder},f.prototype.disableTextPreview=function(n){var t,i,r,u;n?((t=this.preview_text_area)===null||t===void 0?void 0:t.setAttribute("disabled","true"),(i=document.querySelector("div.preview-options"))===null||i===void 0?void 0:i.classList.add("disabled")):((r=this.preview_text_area)===null||r===void 0?void 0:r.removeAttribute("disabled"),(u=document.querySelector("div.preview-options"))===null||u===void 0?void 0:u.classList.remove("disabled"))},f.prototype.resetCopyButtonText=function(){this.copy_button!==undefined&&(this.copy_button.innerText=this.uiStrings.copy,this.copy_button.setAttribute("aria-label",this.uiStrings.copy))},f.prototype.updateHistoryButtonStatus=function(){var n=this.historyIndex>0,t=this.historyIndex<this.history.length-1;this.enableHistoryButton(this.prev_button,n,!1);this.enableHistoryButton(this.next_button,t,!0)},f.prototype.enableHistoryButton=function(n,t,i){t?(n.classList.remove("disabled"),this.setARIADisabled(n,!1),n.addEventListener("click",i?this.nextButtonClicked:this.prevButtonClicked),n.addEventListener("keypress",i?this.nextButtonKeyPress:this.prevButtonKeyPress)):(n.classList.add("disabled"),this.setARIADisabled(n),n.removeEventListener("click",i?this.nextButtonClicked:this.prevButtonClicked),n.removeEventListener("keypress",i?this.nextButtonKeyPress:this.prevButtonKeyPress))},f.prototype.enableStopButton=function(n){var t,i,r,u,f,e;n?((t=this.stop_button)===null||t===void 0?void 0:t.classList.remove("disabled"),this.setARIADisabled(this.stop_button,!1),(i=this.stop_button)===null||i===void 0?void 0:i.addEventListener("click",this.stopButtonClicked),(r=this.stop_button)===null||r===void 0?void 0:r.addEventListener("keypress",this.stopButtonKeyPress)):((u=this.stop_button)===null||u===void 0?void 0:u.classList.add("disabled"),this.setARIADisabled(this.stop_button),(f=this.stop_button)===null||f===void 0?void 0:f.removeEventListener("click",this.stopButtonClicked),(e=this.stop_button)===null||e===void 0?void 0:e.removeEventListener("keypress",this.stopButtonKeyPress))},f.prototype.enableCopyButton=function(n){var t,i,r,u,f,e;n?((t=this.copy_button)===null||t===void 0?void 0:t.classList.remove("disabled"),this.setARIADisabled(this.copy_button,!1),(i=this.copy_button)===null||i===void 0?void 0:i.addEventListener("click",this.copyButtonClicked),(r=this.copy_button)===null||r===void 0?void 0:r.addEventListener("keypress",this.copyButtonKeyPress)):((u=this.copy_button)===null||u===void 0?void 0:u.classList.add("disabled"),this.setARIADisabled(this.copy_button),(f=this.copy_button)===null||f===void 0?void 0:f.removeEventListener("click",this.copyButtonClicked),(e=this.copy_button)===null||e===void 0?void 0:e.removeEventListener("keypress",this.copyButtonKeyPress))},f.prototype.enableGenerateButtons=function(n){this.enableGenerateButton(this.generate_button,n);this.enableGenerateButton(this.regenerate_button,n)},f.prototype.enableGenerateButton=function(n,t){t?(n.classList.remove("disabled"),this.setARIADisabled(n,!1),n.addEventListener("click",this.generateButtonClicked),n.addEventListener("keypress",this.generateButtonKeyPress)):(n.classList.add("disabled"),this.setARIADisabled(n),n.removeEventListener("click",this.generateButtonClicked),n.removeEventListener("keypress",this.generateButtonKeyPress))},f.prototype.enableAdjustStyleButtons=function(n){this.adjust_style_button&&this.adjust_style_inline_button&&(n?(this.adjust_style_button.classList.remove("disabled"),this.setARIADisabled(this.adjust_style_button,!1),this.adjust_style_button.addEventListener("click",this.adjustStylesButtonClicked),this.adjust_style_inline_button.classList.remove("disabled"),this.setARIADisabled(this.adjust_style_inline_button,!1),this.adjust_style_inline_button.addEventListener("click",this.adjustStylesButtonClicked)):(this.adjust_style_button.classList.add("disabled"),this.setARIADisabled(this.adjust_style_button),this.adjust_style_button.removeEventListener("click",this.adjustStylesButtonClicked),this.adjust_style_inline_button.classList.add("disabled"),this.setARIADisabled(this.adjust_style_inline_button),this.adjust_style_inline_button.removeEventListener("click",this.adjustStylesButtonClicked)))},f.prototype.setARIADisabled=function(n,t){t===void 0&&(t=!0);t?n.setAttribute("aria-disabled","true"):n.setAttribute("aria-disabled","false")},f.prototype.getSelectedOptions=function(){var f,n="paragraph",t="professional",i="short",o=((f=this.compose_text_area)===null||f===void 0?void 0:f.value.trim())||"",e=document.querySelector("#mobile_style_options li.tone.selected"),r,u;return t=(e===null||e===void 0?void 0:e.getAttribute("aria-label"))||t,r=document.querySelector("#mobile_style_options li.format.selected"),n=(r===null||r===void 0?void 0:r.getAttribute("aria-label"))||n,u=document.querySelector("#mobile_style_options li.length.selected"),i=(u===null||u===void 0?void 0:u.getAttribute("aria-label"))||i,n=n.toLowerCase(),t=t.toLowerCase(),i=i.toLowerCase(),{format:n,tone:t,length:i,prompt:o}},f.prototype.setSelectedOptionsSummaryText=function(){if(this.optionsSummaryEl){var t=this.getSelectedOptions(),n=t.format,i=t.tone,r=t.length;n=n[0].toLocaleUpperCase()+n.substring(1);this.optionsSummaryEl.innerText="".concat(n,", ").concat(i,", ").concat(r)}},f.prototype.generateButtonClicked=function(){var r;this.stopStream();var n=this.getSelectedOptions(),u=n.format,f=n.tone,e=n.length,t=n.prompt;t=t.substring(0,i.max_prompt_length);r=this.getTextGenerationPrompt(u,f,e,t);this.updateUIWhileFetchingData();this.requestGeneration(r,!0);this.enableStopButton(!0);this.logUserAction(400)},f.prototype.previewBackButtonClicked=function(){var n,t;(n=this.input_screen)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.preview_screen)===null||t===void 0?void 0:t.classList.add("hidden");this.logUserAction(401)},f.prototype.overlayBackButtonClicked=function(){var n,t;(n=this.input_screen)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.preview_screen)===null||t===void 0?void 0:t.classList.add("hidden");this.hideOverlay();this.logUserAction(402)},f.prototype.overlayApplyButtonClicked=function(){this.hideOverlay();this.generateButtonClicked();this.logUserAction(403)},f.prototype.adjustStylesButtonClicked=function(){this.showOverlay();this.logUserAction(404)},f.prototype.showOverlay=function(){var i=this,n,t;(n=this.overlayEl)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.overlayContentEl)===null||t===void 0?void 0:t.classList.add("slideInFromBottom");this.overlayEl.addEventListener("click",function(n){var t;!n.target||((t=i.overlayContentEl)===null||t===void 0?void 0:t.contains(n.target))||i.hideOverlay()})},f.prototype.hideOverlay=function(){var n=this,t,i,r;this.setSelectedOptionsSummaryText();(t=this.overlayContentEl)===null||t===void 0?void 0:t.classList.remove("slideInFromBottom");(i=this.overlayContentEl)===null||i===void 0?void 0:i.classList.add("slideOutToBottom");(r=this.overlayEl)===null||r===void 0?void 0:r.classList.add("fadeOut");setTimeout(function(){var t,i,r;(t=n.overlayEl)===null||t===void 0?void 0:t.classList.add("hidden");(i=n.overlayContentEl)===null||i===void 0?void 0:i.classList.remove("slideOutToBottom");(r=n.overlayEl)===null||r===void 0?void 0:r.classList.remove("fadeOut")},400)},f.prototype.updateUIWhileFetchingData=function(){var n,t;this.alertARIAMessage(this.ariaAlerts.generating,!0);this.preview_text_area.value="";this.disclaimer_box.innerText="";this.showShimmer(!0);(n=this.input_screen)===null||n===void 0?void 0:n.classList.add("hidden");(t=this.preview_screen)===null||t===void 0?void 0:t.classList.remove("hidden");this.enableCopyButton(!1);this.resetCopyButtonText()},f.prototype.copyButtonClicked=function(){var n;return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(i){switch(i.label){case 0:return t=((n=this.preview_text_area)===null||n===void 0?void 0:n.value.trim())||"",this.alertARIAMessage(this.ariaAlerts.copy,!0),[4,navigator.clipboard.writeText(t)];case 1:return i.sent(),this.copy_button!==undefined&&(this.copy_button.innerText=this.uiStrings.copied),this.logUserAction(405),[2]}})})},f.prototype.stopButtonClicked=function(){this.user_stopped_stream=!0;this.stopStream();this.enableStopButton(!1);this.logUserAction(406)},f.prototype.writeHistoryEntry=function(n,t){this.history.push({disclaimer_text:n,generated_content:t});this.historyIndex=this.history.length-1;this.updateHistoryButtonStatus()},f.prototype.prevButtonClicked=function(){if(this.historyIndex>0){this.historyIndex=this.historyIndex-1;var n=this.history[this.historyIndex],t=n.disclaimer_text,i=n.generated_content;this.disclaimer_box.textContent=t;this.preview_text_area.value=i;this.hideError();this.updateHistoryButtonStatus();this.logUserAction(407)}},f.prototype.nextButtonClicked=function(){if(this.historyIndex<this.history.length-1){this.historyIndex=this.historyIndex+1;var n=this.history[this.historyIndex],t=n.disclaimer_text,i=n.generated_content;this.disclaimer_box.textContent=t;this.preview_text_area.value=i;this.hideError();this.updateHistoryButtonStatus();this.logUserAction(408)}},f.prototype.copyButtonKeyPress=function(n){n.key==="Enter"&&this.copyButtonClicked()},f.prototype.stopButtonKeyPress=function(n){n.key==="Enter"&&this.stopButtonClicked()},f.prototype.generateButtonKeyPress=function(n){var t;n.key==="Enter"&&(this.generateButtonClicked(),(t=this.stop_button)===null||t===void 0?void 0:t.focus())},f.prototype.prevButtonKeyPress=function(n){n.key==="Enter"&&this.prevButtonClicked()},f.prototype.nextButtonKeyPress=function(n){n.key==="Enter"&&this.nextButtonClicked()},f.prototype.replaceNewlines=function(n){return n.trim().replace(/\n{3,}/g,"\n\n")},f.prototype.setPreviewText=function(n,t,i){t===void 0&&(t="");i===void 0&&(i="");this.beginStreamingTimeout&&clearTimeout(this.beginStreamingTimeout);this.preview_text_area.value=n;this.preview_text_area.dispatchEvent(new Event("input"));var r=t+i;r=this.replaceNewlines(r);this.disclaimer_box.innerText=r;this.showShimmer(!1);this.disableTextPreview(!1);this.preview_text_area.scrollTop=this.preview_text_area.scrollHeight},f.prototype.onStreamFinished=function(n,t){this.stream_finished_successfully&&this.alertARIAMessage(this.ariaAlerts.success,!0);(this.disclaimer_box.innerText.length>0||this.preview_text_area.value.length>0)&&this.writeHistoryEntry(this.disclaimer_box.innerText,this.preview_text_area.value);n==t&&(this.updateGenerateButtons(),this.updateHistoryButtonStatus(),this.conversation_turn_count>=f.conversationTurnMax?this.showChangeSuggestions(!1):this.stream_finished_successfully&&this.changeSuggestions.length>0&&this.showChangeSuggestions(!0));this.enableStopButton(!1);this.enableCopyButton(!0)},f.conversationTurnMax=19,f}(i);t.CoAuthorMobileUI=e;o=function(f){function e(){var n=f.call(this)||this;return n.insert_button=undefined,n.adjust_button=undefined,n.try_again_button=undefined,n.innerSelectedText="",n.shimmer=undefined,n.close_button=undefined,n.options=undefined,n.options_main=undefined,n.options_popup=undefined,n.floating_menu_tone=undefined,n.floating_menu_format=undefined,n.floating_menu_length=undefined,n.adjustmentOptions={tone:"",format:"",length:""},n.rewriteTextRegExp=/(?<before>((?!```).)*)?```\s*(?<format>yaml\s*)?(?<key>rewrittenText|SAFEError)?(?:\s*\:\s*)?(?:\s*[\|>\?-])?\s*(?:")?(?<content>((?!```).)*)(?<closing_block>```)?(?<after>.*)?/s,n.perfTracker=new c,n.insertButtonClicked=n.insertButtonClicked.bind(n),n.tryAgainButtonClicked=n.tryAgainButtonClicked.bind(n),n.adjustButtonClicked=n.adjustButtonClicked.bind(n),n.keyboardEventHandler=n.keyboardEventHandler.bind(n),n.closeButtonClicked=n.closeButtonClicked.bind(n),n.logPreviewTextModified=n.logPreviewTextModified.bind(n),n}return __extends(e,f),e.prototype.initUI=function(){u.postMessage("FrameReady",{});n.GC.Task.push(new t.SelectedTextV2ControlTowerTask);n.GC.PostMessage.parent("Discover.Chat.FrameReady",{});sj_evt.fire(n.DiscoverPageLoadEventName,{});this.preview_text_area=document.getElementById("inline_preview_text");this.insert_button=document.querySelector("#inline_insert_button");this.try_again_button=document.querySelector("#inline_try_again_button");this.adjust_button=document.querySelector("#inline_adjust_button");this.shimmer=document.getElementById("inline_shimmer");this.errorEl=document.getElementById("inline_error");this.close_button=document.getElementById("close_button");this.options=document.getElementById("inline_options");this.options_main=document.getElementById("inline_options_main");this.options_popup=document.getElementById("inline_options_popup");this.captchaEl=document.getElementById("captcha_container");this.insert_button.prepend(r(t.checkmarkIcon));this.try_again_button.prepend(r(t.generateIcon));this.adjust_button.prepend(r(t.adjustIcon));this.close_button.appendChild(r(t.closeIcon));this.enableCloseButton(!0);this.enableInsertButton(!0);this.enableTryAgainButton(!0);this.enableAdjustButton(!0);this.setFlairDimensions()},e.prototype.setFlairDimensions=function(){var r=document.querySelector(".flair .base"),n=r===null||r===void 0?void 0:r.getBoundingClientRect(),i=Math.max((n===null||n===void 0?void 0:n.height)||1,(n===null||n===void 0?void 0:n.width)||1),t=document.querySelector(".flair .gradient");t&&(t.style.width=i*2+"px",t.style.height=i*2+"px",t.style.top="-"+i/2+"px",t.style.left="-"+i/2+"px")},e.prototype.logPreviewTextModified=function(){this.logUserAction(209)},e.prototype.getTextRewritePrompt=function(n){return"Please rewrite the following text by improving sentence structure and correcting grammar or spelling mistakes. Please wrap your response in YAML format with 'rewrittenText' as a key and the response as the value. Please make sure that your whole response is wrapped with codeblock syntax (triple backticks). Please do not restate any part of this request in your response, like the fact that you wrapped the response in the YAML format or codeblock syntax. Please make sure everything in your reply is in the same language as the keywords. You should refuse (using the language of the keywords) to generate if the request is potentially harmful and return the message using key 'SAFEError'. The text is: `".concat(n,"`")},e.prototype.getTextRewriteWithCharacteristicsPrompt=function(n,t,i,r){var u=this.getCharacteristics(n,i,t);return"Please generate some text in YAML format with 'rewrittenText' as a key and the generated text as the value. Please make sure that your whole response is wrapped with codeblock syntax (triple backticks). Please do not restate any part of this request in your response, like the fact that you wrapped the response in the YAML format or codeblock syntax. Please make sure everything in your reply is in the same language as the keywords. You should refuse (using the language of the keywords) to generate if the request is potentially harmful and return the message using key 'SAFEError'. The generated text should follow these characteristics: ".concat(u,". The keywords are: `").concat(r,"`")},e.prototype.onStreamUpdate=function(n){var r;if(!this.shouldStopStreamUpdate(n)){var f=this.getCumulativeText(n),i="",u=!1,t=f.match(this.rewriteTextRegExp);if(t){if(t[4]&&(u=!0),t[4]!=="SAFEError"||this.response_triggered_safe_error||(this.response_triggered_safe_error=!0,this.logError(5)),t[6]==="`"&&t[7]===undefined&&u)return;t[5]&&u&&(i=t[5]);i.length>0&&t[7]&&!this.lastTokenRendered&&((r=this.perfTracker)===null||r===void 0?void 0:r.markEvent("LastTokenRendered"),this.lastTokenRendered=!0)}i.length>0?(i=i.replace(/\n +/g,"\n"),this.not_shown_stream_content="",this.setPreviewText(i)):this.not_shown_stream_content=f}},e.prototype.generateResult=function(){var t,n,r;(i.isDevMode&&!this.innerSelectedText&&(this.innerSelectedText=this.preview_text_area.value),this.stopStream(),n=this.innerSelectedText.substring(0,i.max_prompt_length),n===""&&(n=this.preview_text_area.value.substring(0,i.max_prompt_length)),n.length!==0)&&(r="",r=this.adjustmentOptions.format||this.adjustmentOptions.tone||this.adjustmentOptions.length?this.getTextRewriteWithCharacteristicsPrompt(this.adjustmentOptions.format,this.adjustmentOptions.tone,this.adjustmentOptions.length,n):this.getTextRewritePrompt(n),this.updateUIWhileFetchingData(),this.requestGeneration(r,!0),(t=this.preview_text_area)===null||t===void 0?void 0:t.removeEventListener("input",this.logPreviewTextModified))},e.prototype.updateUIWhileFetchingData=function(){this.alertARIAMessage(this.ariaAlerts.generating,!0);this.preview_text_area.value="";this.preview_text_area.placeholder=this.uiStrings.rewriting;this.showShimmer(!0)},e.prototype.enableControlsOnCaptcha=function(n){this.enableCloseButton(n);this.enableInsertButton(n);this.enableTryAgainButton(n);this.enableAdjustButton(n)},e.prototype.enableCloseButton=function(n){var t=this;this.enableButton(this.close_button,n,this.closeButtonClicked,function(n){return t.keyboardEventHandler(n,t.closeButtonClicked)})},e.prototype.enableInsertButton=function(n){var t=this;this.enableButton(this.insert_button,n,this.insertButtonClicked,function(n){t.keyboardEventHandler(n,t.insertButtonClicked)})},e.prototype.enableTryAgainButton=function(n){var t=this;this.enableButton(this.try_again_button,n,this.tryAgainButtonClicked,function(n){t.keyboardEventHandler(n,t.tryAgainButtonClicked)})},e.prototype.enableAdjustButton=function(n){var t=this;this.enableButton(this.adjust_button,n,this.adjustButtonClicked,function(n){t.keyboardEventHandler(n,t.adjustButtonClicked)})},e.prototype.keyboardEventHandler=function(n,t){n.key==="Enter"&&t.call(this)},e.prototype.enableButton=function(n,t,i,r){t?(n.classList.remove("disabled"),n.addEventListener("click",i),n.addEventListener("keypress",r)):(n.classList.add("disabled"),n.removeEventListener("click",i),n.removeEventListener("keypress",r))},e.prototype.insertButtonClicked=function(){this.logUserAction(208);u.postMessage("InsertToPage",{text:this.preview_text_area.value})},e.prototype.closeButtonClicked=function(){this.logUserAction(203);u.postMessage("ClosePopup",{})},e.prototype.tryAgainButtonClicked=function(){var n;this.generateResult();(n=this.perfTracker)===null||n===void 0?void 0:n.markEvent("GenerationRequested","TryAgainButtonClicked");this.logUserAction(200)},e.prototype.adjustButtonClicked=function(){this.showAdjustmentUI();this.logUserAction(201)},e.prototype.setPreviewText=function(n,t,i){var r;t===void 0&&(t="");i===void 0&&(i="");this.beginStreamingTimeout&&(clearTimeout(this.beginStreamingTimeout),this.showShimmer(!1));this.preview_text_area&&(this.preview_text_area.value=n,this.firstTokenRendered||((r=this.perfTracker)===null||r===void 0?void 0:r.markEvent("FirstTokenRendered"),this.firstTokenRendered=!0),this.preview_text_area.scrollTop=this.preview_text_area.scrollHeight)},e.prototype.onStreamFinished=function(){var t,n;this.stream_finished_successfully&&this.alertARIAMessage(this.ariaAlerts.success,!0);n=document.querySelector(".flair .gradient");n===null||n===void 0?void 0:n.classList.add("active");setTimeout(function(){var n=document.querySelector(".flair .gradient");n===null||n===void 0?void 0:n.classList.remove("active")},2e3);(t=this.preview_text_area)===null||t===void 0?void 0:t.addEventListener("input",this.logPreviewTextModified,{once:!0})},e.prototype.hideError=function(){var n;this.errorEl.textContent="";(n=this.errorEl)===null||n===void 0?void 0:n.classList.add("hidden")},e.prototype.showCaptcha=function(){f.prototype.showCaptcha.call(this);this.enableControlsOnCaptcha(!1)},e.prototype.hideCaptcha=function(){f.prototype.hideCaptcha.call(this);this.enableControlsOnCaptcha(!0);this.tryAgainButtonClicked()},e.prototype.disableTextPreview=function(n){n?this.preview_text_area.setAttribute("disabled","true"):this.preview_text_area.removeAttribute("disabled")},e.prototype.hideTextOnApology=function(){},e.prototype.showShimmer=function(n){var t,i;n?((t=this.shimmer)===null||t===void 0?void 0:t.classList.remove("hidden"),this.hideError()):(i=this.shimmer)===null||i===void 0?void 0:i.classList.add("hidden")},e.prototype.setSelectedText=function(n){var t;this.innerSelectedText!=n&&(this.innerSelectedText=n,this.generateResult(),(t=this.perfTracker)===null||t===void 0?void 0:t.markEvent("GenerationRequested","Launch"))},e.prototype.showChangeSuggestions=function(){},e.prototype.showAdjustmentUI=function(){var n,t,i,r;((n=this.options_popup)===null||n===void 0?void 0:n.hasChildNodes())||this.createAdjustmentUI();(t=this.options_main)===null||t===void 0?void 0:t.classList.add("hidden");(i=this.options_popup)===null||i===void 0?void 0:i.classList.remove("hidden");(r=this.options_popup)===null||r===void 0?void 0:r.classList.add("slide-in")},e.prototype.createAdjustmentUI=function(){var n=this,t;(t=this.options_popup)===null||t===void 0?void 0:t.appendChild(this.createAdjustmentUIButtons());document.addEventListener("click",function(t){var i,r;!t.target||((i=n.options_popup)===null||i===void 0?void 0:i.contains(t.target))||((r=n.adjust_button)===null||r===void 0?void 0:r.contains(t.target))||n.checkForClickOnFloatingMenu(t)||n.hideAdjustmentUI()})},e.prototype.checkForClickOnFloatingMenu=function(n){var t,i,r;return((t=this.floating_menu_tone)===null||t===void 0?void 0:t.contains(n.target))||((i=this.floating_menu_format)===null||i===void 0?void 0:i.contains(n.target))||((r=this.floating_menu_length)===null||r===void 0?void 0:r.contains(n.target))?!0:!1},e.prototype.hideAdjustmentUI=function(){var n,t,i;(n=this.options_main)===null||n===void 0?void 0:n.classList.remove("hidden");(t=this.options_popup)===null||t===void 0?void 0:t.classList.add("hidden");(i=this.options_popup)===null||i===void 0?void 0:i.classList.remove("slide-in");this.hideFloatingMenus()},e.prototype.hideFloatingMenus=function(){var n,t,i,r,u,f,e,o,s;(n=this.floating_menu_tone)===null||n===void 0?void 0:n.classList.add("hidden");(t=this.floating_menu_format)===null||t===void 0?void 0:t.classList.add("hidden");(i=this.floating_menu_length)===null||i===void 0?void 0:i.classList.add("hidden");(r=this.floating_menu_tone)===null||r===void 0?void 0:r.classList.remove("scale-close");(u=this.floating_menu_format)===null||u===void 0?void 0:u.classList.remove("scale-close");(f=this.floating_menu_length)===null||f===void 0?void 0:f.classList.remove("scale-close");(e=this.floating_menu_tone)===null||e===void 0?void 0:e.classList.remove("scale-open");(o=this.floating_menu_format)===null||o===void 0?void 0:o.classList.remove("scale-open");(s=this.floating_menu_length)===null||s===void 0?void 0:s.classList.remove("scale-open")},e.prototype.closeAdjustmentButtonClicked=function(){this.hideAdjustmentUI();this.logUserAction(202)},e.prototype.closeAdjustmentButtonKeyPress=function(n){this.keyboardEventHandler(n,this.closeAdjustmentButtonClicked)},e.prototype.createFloatingMenuForButton=function(n,t,i){var r,u,f=(r=this.options_popup)===null||r===void 0?void 0:r.querySelector("#".concat(n)),e=f===null||f===void 0?void 0:f.getBoundingClientRect();t.style.left=(e===null||e===void 0?void 0:e.left)+"px";i(t);(u=this.options)===null||u===void 0?void 0:u.appendChild(t)},e.prototype.toneButtonClicked=function(){this.hideFloatingMenus();this.floating_menu_tone===undefined?(this.floating_menu_tone=this.createFloatingMenu(),this.createFloatingMenuForButton("tone",this.floating_menu_tone,this.createToneOptionsForFloatingMenu.bind(this))):this.floating_menu_tone.classList.remove("hidden");this.floating_menu_tone.classList.add("scale-open");this.floating_menu_tone.focus();this.logUserAction(0)},e.prototype.toneButtonKeyPress=function(n){this.keyboardEventHandler(n,this.toneButtonClicked)},e.prototype.formatButtonClicked=function(){this.hideFloatingMenus();this.floating_menu_format===undefined?(this.floating_menu_format=this.createFloatingMenu(),this.createFloatingMenuForButton("format",this.floating_menu_format,this.createFormatOptionsForFloatingMenu.bind(this))):this.floating_menu_format.classList.remove("hidden");this.floating_menu_format.classList.add("scale-open");this.floating_menu_format.focus();this.logUserAction(2)},e.prototype.formatButtonKeyPress=function(n){this.keyboardEventHandler(n,this.formatButtonClicked)},e.prototype.lengthButtonClicked=function(){this.hideFloatingMenus();this.floating_menu_length===undefined?(this.floating_menu_length=this.createFloatingMenu(),this.createFloatingMenuForButton("length",this.floating_menu_length,this.createLengthOptionsForFloatingMenu.bind(this))):this.floating_menu_length.classList.remove("hidden");this.floating_menu_length.classList.add("scale-open");this.floating_menu_length.focus();this.logUserAction(1)},e.prototype.lengthButtonKeyPress=function(n){n.preventDefault();this.keyboardEventHandler(n,this.lengthButtonClicked)},e.prototype.rewriteButtonClicked=function(){var n;this.hideFloatingMenus();this.hideAdjustmentUI();this.generateResult();(n=this.perfTracker)===null||n===void 0?void 0:n.markEvent("GenerationRequested","RewriteButtonClicked");this.logUserAction(204)},e.prototype.rewriteButtonKeyPress=function(n){this.keyboardEventHandler(n,this.rewriteButtonClicked)},e.prototype.createAdjustmentUIButtons=function(){var n=this,i=document.createElement("div");i.classList.add("buttons");var r={id:"",iconSvg:t.closeIcon,"class":"light",clickHandler:function(){return n.closeAdjustmentButtonClicked()},keyPressHandler:function(t){return n.closeAdjustmentButtonKeyPress(t)}},u={id:"tone",iconSvg:t.toneIcon,text:this.uiStrings.tone,"class":"secondary",clickHandler:function(){return n.toneButtonClicked()},keyPressHandler:function(t){return n.toneButtonKeyPress(t)}},f={id:"format",iconSvg:t.sheetThreeLines,text:this.uiStrings.format,"class":"secondary",clickHandler:function(){return n.formatButtonClicked()},keyPressHandler:function(t){return n.formatButtonKeyPress(t)}},e={id:"length",iconSvg:t.sheetFourLinesNoOutline,text:this.uiStrings.length,"class":"secondary",clickHandler:function(){return n.lengthButtonClicked()},keyPressHandler:function(t){return n.lengthButtonKeyPress(t)}},o={id:"",text:"Rewrite","class":"primary",clickHandler:function(){return n.rewriteButtonClicked()},keyPressHandler:function(t){return n.rewriteButtonKeyPress(t)}};return i.appendChild(this.createButton(r)),i.appendChild(this.createButton(u)),i.appendChild(this.createButton(f)),i.appendChild(this.createButton(e)),i.appendChild(this.createButton(o)),i},e.prototype.createButton=function(n){var t=document.createElement("button"),i;return t.setAttribute("id",n.id),t.classList.add("inline-button",n["class"]),n.iconSvg&&t.appendChild(r(n.iconSvg)),n.text&&(i=document.createElement("span"),i.classList.add("text"),i.innerText=n.text,t.appendChild(i),t.setAttribute("aria-label",n.text),t.setAttribute("name",n.text)),t.addEventListener("click",n.clickHandler),t.addEventListener("keypress",n.keyPressHandler),t},e.prototype.updateButtonText=function(n,t){var i;n.querySelector("span").innerText=t;(i=n.querySelector('div[role="presentation"]'))===null||i===void 0?void 0:i.classList.add("hidden")},e.prototype.createFloatingMenu=function(){var n=document.createElement("div");return n.classList.add("floating-menu"),n},e.prototype.createFloatingMenuOptions=function(n,t,i){var r=this;n.classList.add("inline-".concat(i,"-options"));n.setAttribute("tabindex","-1");t.forEach(function(t){var u=r.makeElementForFloatingMenuOption(t,i);u.addEventListener("click",r.floatingMenuOptionClicked.bind(r,u,i));u.addEventListener("keypress",function(n){return r.keyboardEventHandler(n,r.floatingMenuOptionClicked.bind(r,u,i))});n===null||n===void 0?void 0:n.appendChild(u)})},e.prototype.createToneOptionsForFloatingMenu=function(n){var t=[{label:this.toneOptions.professional,localizedLabel:this.localizedToneOptions.professional},{label:this.toneOptions.casual,localizedLabel:this.localizedToneOptions.casual},{label:this.toneOptions.enthusiastic,localizedLabel:this.localizedToneOptions.enthusiastic},{label:this.toneOptions.informational,localizedLabel:this.localizedToneOptions.informational}];this.createFloatingMenuOptions(n,t,"tone")},e.prototype.createFormatOptionsForFloatingMenu=function(n){var t=[{label:this.formatOptions.paragraph,localizedLabel:this.localizedFormatOptions.paragraph},{label:this.formatOptions.email,localizedLabel:this.localizedFormatOptions.email},{label:this.formatOptions.blogPost,localizedLabel:this.localizedFormatOptions.blogPost},{label:this.formatOptions.bulletPoints,localizedLabel:this.localizedFormatOptions.bulletPoints}];this.createFloatingMenuOptions(n,t,"format")},e.prototype.createLengthOptionsForFloatingMenu=function(n){var t=[{label:this.lengthOptions.short,localizedLabel:this.localizedLengthOptions.short},{label:this.lengthOptions.medium,localizedLabel:this.localizedLengthOptions.medium},{label:this.lengthOptions.long,localizedLabel:this.localizedLengthOptions.long},];this.createFloatingMenuOptions(n,t,"length")},e.prototype.floatingMenuOptionClicked=function(n,t){var h=this,i,r,u,f,e,c=document.querySelectorAll(".fm-option.".concat(t)),o=((i=n.querySelector("span"))===null||i===void 0?void 0:i.innerText)||"",s;this.adjustmentOptions[t]=o;s=(r=this.options_popup)===null||r===void 0?void 0:r.querySelector("#".concat(t));this.updateButtonText(s,o);this.selectFloatingMenuOption(c,n);t==="tone"?(u=this.floating_menu_tone)===null||u===void 0?void 0:u.classList.add("scale-close"):t==="format"?(f=this.floating_menu_format)===null||f===void 0?void 0:f.classList.add("scale-close"):t==="length"&&((e=this.floating_menu_length)===null||e===void 0?void 0:e.classList.add("scale-close"));setTimeout(function(){h.hideFloatingMenus()},250);t==="tone"?this.logUserAction(205):t==="format"?this.logUserAction(207):t==="length"&&this.logUserAction(206)},e.prototype.selectFloatingMenuOption=function(n,t){n.forEach(function(n){n.classList.remove("selected");n.setAttribute("aria-pressed","false")});t.classList.contains("selected")||(t.classList.add("selected"),t.setAttribute("aria-pressed","true"))},e.prototype.makeElementForFloatingMenuOption=function(n,t){var f="<span>".concat(n.localizedLabel,"<\/span>"),u=r(f,"fm-option ".concat(t));return this.setARIAattrForFloatingMenuOption(u,u.innerText.trim()),u.setAttribute(i.unlocalized_attr_name,n.label),u},e.prototype.setARIAattrForFloatingMenuOption=function(n,t){n.setAttribute("role","button");n.setAttribute("aria-pressed","false");n.setAttribute("aria-label",t);n.setAttribute("name",t);n.setAttribute("tabindex","0")},e}(i);t.CoAuthorInlineUI=o;s=function(){function n(){var n,t,i,r,u=(t=(n=_w._udsCoAuthorConfig)===null||n===void 0?void 0:n.ComposeInline)!==null&&t!==void 0?t:!1,s=(r=(i=_w._udsCoAuthorConfig)===null||i===void 0?void 0:i.ComposeMobile)!==null&&r!==void 0?r:!1;this.ui=s?new e:u?new o:new f}return n.getInstance=function(){return n.instance||(n.instance=new n),n.instance},n.prototype.initUI=function(){this.ui.initUI()},n.prototype.setSelectedText=function(n){this.ui.setSelectedText(n)},n.prototype.setLengthOptionsLocalizedText=function(n){this.ui.setLengthOptionsLocalizedText(n)},n.prototype.setToneOptionsLocalizedText=function(n){this.ui.setToneOptionsLocalizedText(n)},n.prototype.setFormatOptionsLocalizedText=function(n){this.ui.setFormatOptionsLocalizedText(n)},n.prototype.setAriaAlertsLocalizedText=function(n){this.ui.setAriaAlertsLocalizedText(n)},n.prototype.setAriaLabelsLocalizedText=function(n){this.ui.setAriaLabelsLocalizedText(n)},n.prototype.setErrorsLocalizedText=function(n){this.ui.setErrorsLocalizedText(n)},n.prototype.setStartupPlaceholdersLocalizedText=function(n){this.ui.setStartupPlaceholdersLocalizedText(n)},n.prototype.setCustomToneButtonLocalizedText=function(n){this.ui.setCustomToneButtonLocalizedText(n)},n.prototype.setCustomChangeSuggestionPlusButtonLocalizedText=function(n){this.ui.setCustomChangeSuggestionPlusButtonLocalizedText(n)},n.prototype.setUIStringsLocalizedText=function(n){this.ui.setUIStringsLocalizedText(n)},n}();t.CoAuthorPanel=s;var h=function(){function n(n){this.current_state="Uninitialized";this.previous_state="Uninitialized";this.source=n;this.launchNavigationObserver()}return n.prototype.markEvent=function(n,t){t&&(this.current_measure_trigger=t);switch(n){case"GenerationRequested":this.markGenerationRequested();return;case"FirstTokenRendered":this.markFirstTokenRendered();return;case"LastTokenRendered":this.markLastTokenRendered();return;default:return}},n.prototype.resetTracker=function(){performance.clearMarks()},n.prototype.advanceTo=function(n){return this.canAdvanceTo(n)?(this.previous_state=this.current_state,this.current_state=n,!0):!1},n.prototype.canAdvanceTo=function(n){switch(this.current_state){case"Uninitialized":return n==="IframeLoaded";case"IframeLoaded":return n==="GenerationRequested";case"GenerationRequested":return n==="FirstTokenRendered";case"FirstTokenRendered":return n==="GenerationRequested"||n==="LastTokenRendered";case"LastTokenRendered":return n==="GenerationRequested";default:throw Error("Unhandled state: ".concat(n));}},n.prototype.markGenerationRequested=function(){throw Error("Not implemented.");},n.prototype.markFirstTokenRendered=function(){throw Error("Not implemented.");},n.prototype.markLastTokenRendered=function(){throw Error("Not implemented.");},n.prototype.getMeasureDuration=function(n){var t=performance.getEntriesByName(n);return Math.round(t[t.length-1].duration)},n.prototype.logMeasure=function(n,t,i){i===void 0&&(i=!1);var r=i&&this.current_measure_trigger?this.current_measure_trigger:"";u.postMessage("LogPerformanceTelemetry",{perf_measure_name:n,perf_measure_trigger_name:r,source_id:this.source,duration_ms:t})},n.prototype.launchNavigationObserver=function(){var n=this,t=new PerformanceObserver(function(i){i.getEntries().forEach(function(i){i.loadEventEnd>0&&(n.advanceTo("IframeLoaded")&&n.logMeasure("LaunchToIframeLoaded",Math.round(i.duration)),t.disconnect())})});t.observe({type:"navigation",buffered:!0})},n}(),c=function(n){function t(){return n.call(this,1)||this}return __extends(t,n),t.prototype.markGenerationRequested=function(){this.advanceTo("GenerationRequested")&&((this.previous_state==="FirstTokenRendered"||this.previous_state==="LastTokenRendered")&&this.resetTracker(),performance.mark("GenerationRequested"),this.previous_state==="IframeLoaded"&&(performance.measure("LaunchToGenerationRequested",{},"GenerationRequested"),this.logMeasure("LaunchToGenerationRequested",this.getMeasureDuration("LaunchToGenerationRequested"))))},t.prototype.markFirstTokenRendered=function(){this.advanceTo("FirstTokenRendered")&&(performance.mark("FirstTokenRendered"),performance.measure("GenerationRequestedToFTR","GenerationRequested","FirstTokenRendered"),this.logMeasure("GenerationRequestedToFTR",this.getMeasureDuration("GenerationRequestedToFTR"),!0),performance.getEntriesByName("LaunchToFTR","measure").length===0&&(performance.measure("LaunchToFTR",{},"FirstTokenRendered"),this.logMeasure("LaunchToFTR",this.getMeasureDuration("LaunchToFTR"))))},t.prototype.markLastTokenRendered=function(){this.advanceTo("LastTokenRendered")&&(performance.mark("LastTokenRendered"),performance.measure("FTRToLTR","FirstTokenRendered","LastTokenRendered"),this.logMeasure("FTRToLTR",this.getMeasureDuration("FTRToLTR"),!0))},t}(h),u=function(){function i(){}return i.postMessage=function(i,r){n.GC.PostMessage.parent(t.PostMessageEventName,__assign({messageName:i},r),"*");var u=t.PostMessageMigrationMap.get(i);u&&n.GC.PostMessage.parent(u,r,"*")},i}()})(i=t.CoAuthor||(t.CoAuthor={}))})(t=n.Underside||(n.Underside={}))})(Windchime||(Windchime={}));_w.rms.js({'A:rms:answers:Shared:BingCore.RMSBundle':'\/rp\/h1dIjMpwerSArGmygbYcRo-DkFs.br.js'},{'A:rms:answers:BoxModel:Framework':'\/rp\/G_XQl6IJOln7kEORpCguK6koSdI.br.js'},{'A:rms:answers:SharedStaticAssets:docx':'\/rp\/Ob0pKopgLHdM4YkQO1HL2-6FwU4.br.js'},{'A:rms:answers:Underside:Underside_CoAuthorTaskRegistrar':'\/rp\/PGl_if8Y-0g525jk9lGeakrHDHE.br.js'},{'A:0':0});;
//]]></script><div id="aRmsDefer"><script type="text/rms" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=">//<![CDATA[
/* This function converts the string to Unicode using a transient element to have the HTML parser decode it properly because we were having problems with diacritics in the localized strings (Spanish tilde for example) that were represented by character entities (like é). */ function decodeString(encoded_string) { var transient_element = document.createElement("textarea"); transient_element.innerHTML = encoded_string; return transient_element.value; } const lengthOptions = { short: decodeString("短"), medium: decodeString("中度"), long: decodeString("长") }; const toneOptions = { professional: decodeString("专业型"), casual: decodeString("休闲"), enthusiastic: decodeString("热情"), funny: decodeString("古怪"), informational: decodeString("信息"), }; const formatOptions = { paragraph: decodeString("段落"), bulletPoints: decodeString("创意"), email: decodeString("电子邮件"), blogPost: decodeString("博客文章"), }; const ariaAlerts = { generating: decodeString("正在生成文本"), success: decodeString("已完成生成草稿"), error: decodeString("生成文本时出错"), insert: decodeString("尝试将文本插入网站"), copy: decodeString("复制到剪贴板上的文本"), stop: decodeString("已停止生成草稿"), charLimitReached: ("已达到字符限制"), showDraft: decodeString("显示草稿"), showDraftTotal: decodeString("共"), }; const ariaLabels = { promptAreaLabel: decodeString("告诉我们你想要写的内容,字符限制"), letterCounterLabel: decodeString("2000 字符中已使用"), }; const errorMessages = { dailyConversationLimit: decodeString("聊得很愉快,但你已达到每日限制。请明天再试。"), fate: decodeString("很抱歉,我无法回复你的提示。请尝试其他操作。"), server: decodeString("很抱歉,我们现在无法生成请求的内容。请稍后重试"), timeout: decodeString("无法生成响应,请重试。"), captcha: decodeString("Before we generate text for you, please check the box below."), }; const customToneButtonTextValues = { plus: decodeString("添加新的自定义音调"), edit: decodeString("编辑自定义音调"), }; const customChangeSuggestionPlusButtonTextValue = decodeString("添加自定义建议"); const startupPlaceholders = [ "说服朋友与我一起去墨西哥玩", "给妈妈的周年快乐祝福信息", "告诉我的同事 Emily 生日快乐", "营销职位的求职信", "雷昂纳多达芬奇的一生", "荷兰的历史", "我的 2010 年凯美瑞广告", "告诉我的社交网络,我已经接受了 Microsoft 的新工作。", "自适应技术的最新创新", "邀请加入我的简奥斯汀读书俱乐部", "《傲慢与偏见》简介", ]; const startupPlaceholdersForEnterprise = [ "FED 最新公告的概要", "市场营销职位的作业发布", "有关气候研究的论文大纲", "团队场外邀请", "外出状态消息", "咖啡聊天的冷电子邮件", "设置个人网站的操作指南", "有关如何在工作场所使用 AI 的博客文章想法", "工作性能评审", "有关 AI 的新闻稿", "从网站抓取 DOM 的 Python 脚本", "excel 公式,用于对包含单词“ok”的所有单元格进行计数", ]; const decodedStartupPlaceholders = false ? startupPlaceholdersForEnterprise.map(decodeString) : startupPlaceholders.map(decodeString); const uiStrings = { copy: decodeString("复制"), copied: decodeString("已复制"), length: decodeString("长度"), format: decodeString("格式"), tone: decodeString("语气"), rewriting: decodeString("正在重写草稿..."), }; const coAuthorPanel = Windchime.Underside.CoAuthor.CoAuthorPanel.getInstance(); coAuthorPanel.setLengthOptionsLocalizedText(lengthOptions); coAuthorPanel.setToneOptionsLocalizedText(toneOptions); coAuthorPanel.setFormatOptionsLocalizedText(formatOptions); coAuthorPanel.setAriaAlertsLocalizedText(ariaAlerts); coAuthorPanel.setAriaLabelsLocalizedText(ariaLabels); coAuthorPanel.setErrorsLocalizedText(errorMessages); coAuthorPanel.setCustomToneButtonLocalizedText(customToneButtonTextValues); coAuthorPanel.setStartupPlaceholdersLocalizedText(decodedStartupPlaceholders); coAuthorPanel.setCustomChangeSuggestionPlusButtonLocalizedText(customChangeSuggestionPlusButtonTextValue); coAuthorPanel.setUIStringsLocalizedText(uiStrings); coAuthorPanel.initUI();;var Windchime;(function(n){var t;(function(t){(function(){var r=new URLSearchParams(window.location.search),i=r.get("q"),u=r.get("title");i&&n.GC.Context.propose(n.GC.Context.createContextData({id:i,type:t.EdgeWebPageContextType,stage:2,data:new t.EdgePage({eventType:"Activate",url:i,title:u,isActive:!0}),force:!0}))})();n.GC.Event.fire(n.DiscoverResourcesLoadedEventName,{})})(t=n.Underside||(n.Underside={}))})(Windchime||(Windchime={}));
//]]></script></div><script type="text/javascript" nonce="NiaXe54WlK8OdVZcL5QC5L2HWTmg4dcMfN6MiDUxwaU=" >//<![CDATA[
_G.HT=new Date;
//]]></script></body></html>