Ext.chromeVersion=Ext.isChrome?parseInt(/chrome\/(\d+)/.exec(navigator.userAgent.toLowerCase())[1],10):NaN;Ext.override(Ext.grid.ColumnModel,{getTotalWidth:function(b){if(!this.totalWidth)for(var a=Ext.isChrome&&18"),a.collapse(!1),a.select())}}}});
Ext.override(Ext.form.HtmlEditor,{cleanHtml:function(b){b=String(b);Ext.isWebKit&&(b=b.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi,""));b.charCodeAt(0)==this.defaultValue.replace(/\D/g,"")&&(b=b.substring(1));if("
"==b||"
"==b||''==b)b="";return b}});
Ext.override(Ext.form.HtmlEditor,{getDocMarkup:function(){var b=Ext.fly(this.iframe).getHeight()-2*this.iframePad;return String.format('',this.iframePad,
b)}});
Ext.override(Ext.form.HtmlEditor,{createToolbar:function(b){function a(a,c,e){return{itemId:a,cls:"x-btn-icon",iconCls:"x-edit-"+a,enableToggle:!1!==c,scope:b,handler:e||b.relayBtnCmd,clickEvent:"mousedown",tooltip:d?b.buttonTips[a]||void 0:void 0,overflowText:b.buttonTips[a].title||void 0,tabIndex:-1}}var c=[],d=Ext.QuickTips&&Ext.QuickTips.isEnabled();if(this.enableFont&&!Ext.isSafari2){var e=new Ext.Toolbar.Item({autoEl:{tag:"select",cls:"x-font-select",html:this.createFontOptions()}});c.push(e,"-")}this.enableFormat&&
c.push(a("bold"),a("italic"),a("underline"));this.enableFontSize&&c.push("-",a("increasefontsize",!1,this.adjustFont),a("decreasefontsize",!1,this.adjustFont));this.enableColors&&c.push("-",{itemId:"forecolor",cls:"x-btn-icon",iconCls:"x-edit-forecolor",clickEvent:"mousedown",tooltip:d?b.buttonTips.forecolor||void 0:void 0,tabIndex:-1,menu:new Ext.menu.ColorMenu({allowReselect:!0,focus:Ext.emptyFn,value:"000000",plain:!0,listeners:{scope:this,select:function(a,b){this.execCmd("forecolor",Ext.isWebKit||
Ext.isIE?"#"+b:b);this.deferFocus()}},clickEvent:"mousedown"})},{itemId:"backcolor",cls:"x-btn-icon",iconCls:"x-edit-backcolor",clickEvent:"mousedown",tooltip:d?b.buttonTips.backcolor||void 0:void 0,tabIndex:-1,menu:new Ext.menu.ColorMenu({focus:Ext.emptyFn,value:"FFFFFF",plain:!0,allowReselect:!0,listeners:{scope:this,select:function(a,b){Ext.isGecko?(this.execCmd("useCSS",!1),this.execCmd("hilitecolor",b),this.execCmd("useCSS",!0)):this.execCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||
Ext.isIE?"#"+b:b);this.deferFocus()}},clickEvent:"mousedown"})});this.enableAlignments&&c.push("-",a("justifyleft"),a("justifycenter"),a("justifyright"));Ext.isSafari2||(this.enableLinks&&c.push("-",a("createlink",!1,this.createLink)),this.enableLists&&c.push("-",a("insertorderedlist"),a("insertunorderedlist")),this.enableSourceEdit&&c.push("-",a("sourceedit",!0,function(a){this.toggleSourceEdit(!this.sourceEditMode)})));c=new Ext.Toolbar({enableOverflow:!0,renderTo:this.wrap.dom.firstChild,items:c});
e&&(this.fontSelect=e.el,this.mon(this.fontSelect,"change",function(){this.relayCmd("fontname",this.fontSelect.dom.value);this.deferFocus()},this));this.mon(c.el,"click",function(a){a.preventDefault()});this.tb=c;this.tb.doLayout()},onDisable:function(){this.wrap.mask();Ext.form.HtmlEditor.superclass.onDisable.call(this)}});
Ext.override(Ext.TabPanel,{getScrollWidth:function(){var b=1.5*this.strip.dom.firstElementChild.clientHeight;if(this.stripWrap.getHeight()>b){this.edge.getXY();b=this.strip.getWidth();this.strip.getHeight();var a=Ext.fly(this.stripWrap,"_internal").getXY();return b-a[0]+this.getScrollPos()}return this.edge.getOffsetsTo(this.stripWrap)[0]+this.getScrollPos()}});
Ext.override(Ext.form.HtmlEditor,{createLink:function(){var b=this;Ext.MessageBox.show({title:"",msg:b.createLinkText,buttons:Ext.MessageBox.OKCANCEL,fn:function(a,d){"ok"==a&&d&&"http://"!=d&&b.relayCmd("createlink",d)},value:b.defaultLinkValue,closable:!0,progress:!1,prompt:!0,multiline:!1});var a=Ext.Msg.getDialog();setTimeout(function(){a.toFront()},200)}});
var isSameSiteCookieSupportedBrowser=function(){var b=!0,a=window.navigator.userAgent;a&&(a=a.toLowerCase(),0<=a.indexOf("applewebkit")&&(0<=a.indexOf("iphone")||0<=a.indexOf("ipad"))&&0<=a.indexOf("os 12_")?b=!1:(0<=a.indexOf("chrome")||0<=a.indexOf("crios"))&&0>a.indexOf("teams/")&&0>a.indexOf("chrome/6")&&0>a.indexOf("chrome/5")?b=!0:0<=a.indexOf("firefox")&&(b=!0));return b}();
Ext.util.Cookies.set=function(b,a){var c=arguments,d=arguments.length,e=2