const initGlobal=function(){const hasServers=document.querySelector("#all-servers-wrapper");if(!window.location.pathname.includes("newOrder")&&hasServers){dataModelGlobal.initialServerInstantData().then((async data=>{const{instantsWithoutGPU:instantsWithoutGPU,instantsWithGPU:instantsWithGPU}=data;if(typeof navigationHeader!="undefined"){navigationHeader.renderServersStock([...instantsWithoutGPU,...instantsWithGPU])}const initialServerFilters=dataModelGlobal.getServersFilters();const url=window.location.pathname;if(url==="/dedicated/wowza/"||url==="/dedicated/xtream/"||url==="/custom/"||url==="/dedicated/red5/"){const defaultServerFilters={type:"all",deployment:"custom",location:null,pricing:{minPrice:0,maxPrice:0},hardware:{cpu:null,gpu:null,ram:null,hdd:null,os:null,traffic:null}};dataModelGlobal.setServersFilters(defaultServerFilters)}else{if(!initialServerFilters){const existsFiterServersData=sessionStorage.getItem("serverFilters");if(!existsFiterServersData){dataModelGlobal.setServersFilters("default")}}}const allServersContainer=document.getElementById("servers-list");if(allServersContainer){await uiGlobal.renderServers({target:allServersContainer})}uiGlobal.removeFilter();eventsGlobal.initFilterSelect();eventsGlobal.initShowMoreConfigsBtns()}))}else if(!window.location.pathname.includes("newOrder")&&!window.location.pathname.includes("new-control-panel")&&!hasServers){navigationHeader.renderApiServersStock()}utilGlobal.clearOrderStorage();eventsGlobal.initStaticEvents();eventsGlobal.initDynamicallyEvents();if(!window.location.href.includes("new-control-panel")){uiGlobal.renderAvatarProfileMenu()}return null}();