function t(r,o){let n=r.value;o.splice(0,o.length,...n)}function a(r,o,n){return e=>{switch(console.error("Error from updateStatistics: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),r&&r.error(n.instant("Token expired, navigating to logout page."),n.instant("Error")),setTimeout(()=>{o.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}}}function s(r){var o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return r.replace(/[&<>"']/g,function(n){return o[n]})}export{t as a,a as b,s as c};
