/* Navigation only: no forms, credentials, personal records or write requests are replayed. */ (function(){'use strict';if(window.fiNavigationState)return; var context=window.fiNavigationContext||{},path=location.pathname.replace(/\/index\.php$/,'/').replace(/\/$/,'')||'/',user=String(context.user||0),school=location.hostname==='school.feisinfo.org'&&path==='/',event=school||/^\/(personal|crm|admin)$/.test(path)?'0':String(context.event||0); if(school)path='/crm'; function key(area){return 'fi-navigation-v1:'+user+':'+event+':'+path+':'+area;} window.fiNavigationState={get:function(area,allowed,fallback){try{var value=sessionStorage.getItem(key(area));return allowed.indexOf(value)!==-1?value:fallback;}catch(e){return fallback;}},set:function(area,value){try{if(typeof value==='string'&&value.length<500)sessionStorage.setItem(key(area),value);if(path==='/'+area&&['teacher','organizer','crm'].indexOf(area)!==-1){var url=new URL(location.href);if(url.searchParams.has('section')){url.searchParams.delete('section');history.replaceState(history.state,'',url.pathname+url.search+url.hash);}}}catch(e){}}}; })();