<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="robots" content="follow, noarchive, noindex">
        <meta name="description" content="Site currently inaccessible">
        <style>
            .main-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-top: 100px;
                font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, system-ui, "Helvetica Neue", sans-serif;
                color: #172B4D;
            }

            .main-heading {
                text-align: center;
                font-weight: 450;
                font-size: 32px;
                line-height: 1.3;
                letter-spacing: 0;
                margin-bottom: 20px;
            }

            .footer {
                position: absolute;
                bottom: 20px;
                font-weight: 400;
                font-size: 14px;
                line-height: 1.5;
                letter-spacing: 0;
            }

            .footer a {
                color: inherit;
                text-decoration: none;
            }

            .footer a:hover {
                text-decoration: underline;
            }
        </style>
        <link rel="icon" href="data:,">
        <title>Site not available</title>
    </head>
    <body>
    <main style="display: none">
        <div class="main-container">
            <svg width="200" height="200" id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
                <path d="M19.54,31.56s-.05-.03-.08-.06l-7.32-7.02c-.15-.14-.15-.38-.01-.53.14-.15.38-.16.53-.01l7.04,6.75,6.41-7.19c.07-.08.16-.12.26-.12.1,0,.2.03.27.1l7.58,7.26c.15.14.15.38.01.53-.14.15-.38.15-.53.01l-7.3-7-6.41,7.19c-.07.08-.16.12-.26.12-.07,0-.14-.01-.2-.05Z" style="fill:#000f35;"/><path d="M166.6,46.87c-1.42-9.32-6.99-17.47-15.03-21.39-11-5.36-29.5-6.56-46.1,23.56-14.13-22.05-27.61-27.28-37.96-26.38-3.77.33-7.11,1.47-9.92,2.91-7.69,3.93-12.54,12.09-13.13,21.42-.84,13.17,3.65,26.21,10.64,38.2,1.06,1.83,2.18,3.64,3.35,5.41,18.27,27.75,46.73,56.29,48.75,57.71,1.19-.9,39.1-33.88,53.65-66.42.87-1.95,1.67-3.92,2.38-5.91,3.36-9.38,4.88-19.22,3.37-29.11Z" style="fill:#ffc420;"/><path d="M107.2,148.69c-.08,0-.15-.02-.22-.07-1.91-1.34-30.35-29.71-48.85-57.81-1.19-1.8-2.32-3.63-3.36-5.43-7.86-13.49-11.46-26.41-10.69-38.41.62-9.65,5.6-17.78,13.33-21.73,3.25-1.66,6.63-2.65,10.06-2.95,16.44-1.42,29.67,13.23,37.96,26.02,17.46-31.24,36.47-27.94,46.29-23.16,8.07,3.93,13.76,12.03,15.24,21.67h0c1.41,9.25.27,19.1-3.39,29.3-.69,1.92-1.49,3.92-2.39,5.94-14.81,33.12-53.4,66.29-53.76,66.56-.07.05-.15.08-.23.08ZM69.68,22.94c-.71,0-1.42.03-2.14.09-3.33.29-6.63,1.25-9.79,2.87-7.5,3.83-12.33,11.72-12.93,21.11-.76,11.85,2.81,24.63,10.59,37.98,1.04,1.79,2.16,3.61,3.34,5.4,17.93,27.23,45.17,54.68,48.43,57.44,3.15-2.71,39.16-34.42,53.31-66.08.89-2,1.69-3.98,2.37-5.88,3.62-10.08,4.74-19.81,3.35-28.93h0c-1.43-9.4-6.98-17.29-14.82-21.11-9.63-4.69-28.37-7.89-45.6,23.4-.06.12-.18.19-.32.19-.17.01-.26-.06-.33-.17-11.06-17.26-23.28-26.3-35.47-26.3Z"/><path d="M106.31,74.91c-2.55,0-4.63-1.94-4.63-4.32s2.08-4.32,4.63-4.32,4.63,1.94,4.63,4.32-2.08,4.32-4.63,4.32Z" style="fill:#92d0ff;"/><path d="M106.31,75.28c-2.76,0-5-2.11-5-4.69s2.24-4.69,5-4.69,5,2.11,5,4.69-2.24,4.69-5,4.69ZM106.31,66.64c-2.34,0-4.25,1.77-4.25,3.94s1.91,3.94,4.25,3.94,4.25-1.77,4.25-3.94-1.91-3.94-4.25-3.94Z" style="fill:#000c34;"/><circle cx="83.21" cy="65.08" r="16.31" style="fill:#fff;"/><path d="M83.21,81.77c-9.2,0-16.69-7.49-16.69-16.69s7.49-16.69,16.69-16.69,16.69,7.49,16.69,16.69-7.49,16.69-16.69,16.69ZM83.21,49.15c-8.79,0-15.94,7.15-15.94,15.94s7.15,15.94,15.94,15.94,15.94-7.15,15.94-15.94-7.15-15.94-15.94-15.94Z" style="fill:#000c34;"/><path d="M83.26,49.27c-.02-.18-.04-.34-.07-.5-9,.01-16.29,7.31-16.29,16.31s7.3,16.31,16.31,16.31c1.06,0,2.09-.11,3.09-.3-.97-1.43-3.06-1.65-3.3-3.87-.29-2.76,2.89-3.1,2.6-5.86-.29-2.76-3.47-2.43-3.76-5.19-.29-2.76,2.89-3.1,2.6-5.86-.29-2.76-3.47-2.43-3.76-5.19-.29-2.76,2.89-3.1,2.6-5.86Z" style="fill:#000c34;"/><path d="M83.21,49.15c-.21,0-.38-.17-.38-.38v-6.22c0-.21.17-.38.38-.38s.38.17.38.38v6.22c0,.21-.17.38-.38.38Z" style="fill:#000c34;"/><path d="M73.43,52.61c-.12,0-.24-.06-.31-.17l-3.43-5.19c-.11-.17-.07-.41.11-.52.17-.12.41-.07.52.11l3.43,5.19c.11.17.07.41-.11.52-.06.04-.14.06-.21.06Z" style="fill:#000c34;"/><path d="M93.3,52.61c-.07,0-.14-.02-.21-.06-.17-.11-.22-.35-.11-.52l3.43-5.19c.12-.17.35-.22.52-.11.17.11.22.35.11.52l-3.43,5.19c-.07.11-.19.17-.31.17Z" style="fill:#000c34;"/><circle cx="129.37" cy="65.08" r="16.31" style="fill:#fff;"/><path d="M129.37,81.77c-9.2,0-16.69-7.49-16.69-16.69s7.49-16.69,16.69-16.69,16.69,7.49,16.69,16.69-7.49,16.69-16.69,16.69ZM129.37,49.15c-8.79,0-15.94,7.15-15.94,15.94s7.15,15.94,15.94,15.94,15.94-7.15,15.94-15.94-7.15-15.94-15.94-15.94Z" style="fill:#000c34;"/><path d="M129.42,49.27c-.02-.18-.04-.34-.07-.5-9,.01-16.29,7.31-16.29,16.31s7.3,16.31,16.31,16.31c1.06,0,2.09-.11,3.09-.3-.97-1.43-3.06-1.65-3.3-3.87-.29-2.76,2.89-3.1,2.6-5.86-.29-2.76-3.47-2.43-3.76-5.19-.29-2.76,2.89-3.1,2.6-5.86-.29-2.76-3.47-2.43-3.76-5.19-.29-2.76,2.89-3.1,2.6-5.86Z" style="fill:#000c34;"/><path d="M129.37,49.15c-.21,0-.38-.17-.38-.38v-6.22c0-.21.17-.38.38-.38s.38.17.38.38v6.22c0,.21-.17.38-.38.38Z" style="fill:#000c34;"/><path d="M119.59,52.61c-.12,0-.24-.06-.31-.17l-3.43-5.19c-.11-.17-.07-.41.11-.52.17-.12.4-.07.52.11l3.43,5.19c.11.17.07.41-.11.52-.06.04-.14.06-.21.06Z" style="fill:#000c34;"/><path d="M139.45,52.61c-.07,0-.14-.02-.21-.06-.17-.11-.22-.35-.11-.52l3.43-5.19c.11-.17.35-.22.52-.11.17.11.22.35.11.52l-3.43,5.19c-.07.11-.19.17-.31.17Z" style="fill:#000c34;"/><path d="M76.22,173.24l13.63.3-.86,22.52-37.77.04-.06-5.31s2.97-10.09,25.01-7.2l.05-10.36Z" style="fill:#1062fb;"/><path d="M50.85,196.47l-.06-5.74.02-.05c.12-.42,3.27-10.23,25-7.52l.05-10.31,14.39.32-.89,23.26-38.5.04ZM51.54,190.85l.05,4.88,37.04-.04.83-21.78-12.87-.28-.05,10.4-.42-.05c-11.22-1.47-17.32.51-20.46,2.42-3.11,1.9-4,4.11-4.12,4.46Z"/><path d="M63.58,183.41c-13.41,2.02-12.42,7.38-12.42,7.38l.06,5.31,15.21-.02c-.33-4.36-1.17-8.6-2.85-12.67Z" style="fill:#fff;"/><path d="M50.85,196.47l-.06-5.68h0s-.2-1.18.84-2.65c1.21-1.7,4.25-3.96,11.9-5.11l.29-.04.11.27c1.58,3.82,2.52,8,2.87,12.78l.03.4-15.99.02ZM63.35,183.83c-7.12,1.11-9.96,3.17-11.08,4.72-.88,1.21-.74,2.14-.74,2.18l.06,5,14.43-.02c-.36-4.42-1.24-8.31-2.67-11.88Z" style="fill:#000c34;"/><polygon points="89.2 190.42 51.16 190.79 51.22 199.18 88.99 199.14 89.2 190.42" style="fill:#fff;"/><path d="M50.85,199.56l-.06-9.14,38.8-.38-.23,9.47-38.51.04ZM51.54,191.16l.05,7.65,37.03-.04.19-7.97-37.28.36Z" style="fill:#000c34;"/><line x1="76.26" y1="176.77" x2="84.02" y2="176.63"/><path d="M76.26,177.14c-.2,0-.37-.16-.38-.37,0-.21.16-.38.37-.38l7.75-.13h0c.2,0,.37.16.38.37,0,.21-.16.38-.37.38l-7.75.13h0Z" style="fill:#000c34;"/><line x1="76.48" y1="180.73" x2="84.24" y2="180.59"/><path d="M76.48,181.1c-.2,0-.37-.16-.38-.37,0-.21.16-.38.37-.38l7.75-.13h0c.2,0,.37.16.38.37,0,.21-.16.38-.37.38l-7.75.13h0Z" style="fill:#000c34;"/><path d="M76.46,196.47h-25.24c-.21,0-.38-.17-.38-.38s.17-.38.38-.38h25.24c.21,0,.38.17.38.38s-.17.38-.38.38Z" style="fill:#000f35;"/><path d="M126.82,173.24l-13.63.3.86,22.52,37.77.04.06-5.31s-2.97-10.09-25.01-7.2l-.05-10.36Z" style="fill:#1062fb;"/><path d="M152.2,196.47l-38.5-.04-.89-23.26,14.39-.32.05,10.31c21.73-2.72,24.88,7.1,25,7.52l.02.05-.06,5.74ZM114.42,195.68l37.04.04.05-4.88c-.27-.73-3.95-9.59-24.59-6.88l-.42.05-.05-10.4-12.87.28.83,21.78Z"/><path d="M139.46,183.41c13.41,2.02,12.42,7.38,12.42,7.38l-.06,5.31-15.21-.02c.33-4.36,1.17-8.6,2.85-12.67Z" style="fill:#fff;"/><path d="M152.2,196.47l-15.99-.02.03-.4c.36-4.78,1.3-8.96,2.87-12.78l.11-.27.29.04c7.64,1.15,10.69,3.41,11.9,5.11,1.05,1.47.85,2.66.84,2.71l-.06,5.62ZM137.02,195.71l14.43.02.05-4.94c.01-.1.15-1.03-.73-2.24-1.12-1.54-3.96-3.6-11.08-4.72-1.44,3.56-2.31,7.46-2.68,11.88Z" style="fill:#000c34;"/><polygon points="113.85 190.42 151.89 190.79 151.83 199.18 114.06 199.14 113.85 190.42" style="fill:#fff;"/><path d="M152.2,199.56l-38.51-.04-.23-9.47,38.8.38-.06,9.14ZM114.42,198.76l37.03.04.05-7.65-37.28-.36.19,7.97Z" style="fill:#000c34;"/><line x1="126.78" y1="176.77" x2="119.03" y2="176.63"/><path d="M126.78,177.14h0l-7.75-.13c-.21,0-.37-.17-.37-.38,0-.2.17-.37.38-.37h0l7.75.13c.21,0,.37.17.37.38,0,.2-.17.37-.38.37Z" style="fill:#000c34;"/><line x1="126.56" y1="180.73" x2="118.81" y2="180.59"/><path d="M126.56,181.1h0l-7.75-.13c-.21,0-.37-.17-.37-.38,0-.2.17-.37.38-.37h0l7.75.13c.21,0,.37.17.37.38,0,.2-.17.37-.38.37Z" style="fill:#000c34;"/><path d="M151.83,196.47h-25.24c-.21,0-.38-.17-.38-.38s.17-.38.38-.38h25.24c.21,0,.38.17.38.38s-.17.38-.38.38Z" style="fill:#000f35;"/><path d="M28.34,65.93h146.36c3.95,0,7.15,3.21,7.15,7.15v105.89H21.19v-105.89c0-3.95,3.21-7.15,7.15-7.15Z" style="fill:#000c34;"/><path d="M181.86,179.34H21.19c-.21,0-.38-.17-.38-.38v-105.89c0-4.15,3.38-7.53,7.53-7.53h146.36c4.15,0,7.53,3.38,7.53,7.53v105.89c0,.21-.17.38-.38.38ZM21.56,178.59h159.92v-105.51c0-3.74-3.04-6.78-6.78-6.78H28.34c-3.74,0-6.78,3.04-6.78,6.78v105.51Z"/><path d="M32.91,65.93h146.67c3.86,0,7,3.14,7,7v101.2H25.91v-101.2c0-3.86,3.14-7,7-7Z" style="fill:#bb9ae8;"/><path d="M186.58,174.5H25.91c-.21,0-.38-.17-.38-.38v-101.2c0-4.07,3.31-7.38,7.38-7.38h146.67c4.07,0,7.38,3.31,7.38,7.38v101.2c0,.21-.17.38-.38.38ZM26.29,173.75h159.92v-100.83c0-3.65-2.97-6.62-6.62-6.62H32.91c-3.65,0-6.62,2.97-6.62,6.62v100.83Z"/><rect x="26.26" y="80.39" width="160.11" height="98.58" style="fill:#f2f3f7;"/><path d="M186.37,179.34H26.26c-.21,0-.38-.17-.38-.38v-98.58c0-.21.17-.38.38-.38h160.11c.21,0,.38.17.38.38v98.58c0,.21-.17.38-.38.38ZM26.63,178.59h159.36v-97.83H26.63v97.83Z"/><path d="M36.08,65.7c-.1,4.43,2.27,8.08,5.29,8.15s5.56-3.46,5.67-7.89-2.27-8.07-5.29-8.15c-4.64-.12-5.56,3.46-5.67,7.89Z" style="fill:#fff;"/><path d="M41.46,74.23s-.07,0-.1,0c-3.23-.08-5.77-3.9-5.66-8.53.06-2.38.34-5.32,2.05-6.95.96-.91,2.32-1.35,4-1.31,3.23.08,5.76,3.91,5.66,8.53-.05,2.22-.69,4.29-1.81,5.84-1.12,1.56-2.59,2.42-4.14,2.42ZM36.08,65.7h.38c-.1,4.23,2.11,7.71,4.92,7.78,1.3.03,2.62-.71,3.62-2.1,1.03-1.43,1.62-3.36,1.67-5.42.1-4.21-2.11-7.69-4.93-7.77-1.52-.03-2.64.32-3.47,1.1-1.51,1.44-1.76,4.19-1.81,6.42h-.38Z" style="fill:#000c34;"/><path d="M157.76,65.62c0,4.15-.98,7.69-5.07,7.51-2.8-.12-5.07-3.36-5.07-7.51s2.27-7.51,5.07-7.51,5.07,3.36,5.07,7.51Z" style="fill:#fff;"/><path d="M152.98,73.51c-.1,0-.2,0-.31,0-3.04-.13-5.43-3.6-5.43-7.89s2.44-7.89,5.45-7.89,5.45,3.54,5.45,7.89c0,3.28-.63,5.48-1.92,6.71-.82.78-1.91,1.18-3.24,1.18ZM152.69,58.48c-2.59,0-4.7,3.2-4.7,7.14s2.07,7.02,4.71,7.14c1.27.06,2.25-.26,2.99-.97,1.14-1.09,1.69-3.11,1.69-6.17,0-3.94-2.11-7.14-4.7-7.14Z" style="fill:#000c34;"/><path d="M166.88,66.02c0,4.43-1.84,8.02-5.43,8.02s-5.6-3.59-5.6-8.02,2.01-8.02,5.6-8.02,5.43,3.59,5.43,8.02Z" style="fill:#fff;"/><path d="M161.44,74.42c-3.57,0-5.97-3.38-5.97-8.4s2.4-8.4,5.97-8.4,5.81,3.3,5.81,8.4-2.28,8.4-5.81,8.4ZM161.44,58.37c-3.61,0-5.22,3.84-5.22,7.65s1.61,7.65,5.22,7.65,5.06-4.12,5.06-7.65-1.33-7.65-5.06-7.65Z" style="fill:#000c34;"/><path d="M175.37,66.02c0,4.43-2.45,8.02-5.48,8.02s-5.48-3.59-5.48-8.02,2.45-8.02,5.48-8.02c4.65-.01,5.48,3.59,5.48,8.02Z" style="fill:#fff;"/><path d="M169.89,74.42c-3.23,0-5.86-3.77-5.86-8.4s2.63-8.39,5.85-8.4h.03c1.69,0,3.01.47,3.95,1.4,1.67,1.66,1.88,4.61,1.88,6.99,0,4.63-2.63,8.4-5.86,8.4ZM169.91,58.37h-.02c-2.82,0-5.11,3.44-5.11,7.65s2.29,7.65,5.11,7.65,5.11-3.43,5.11-7.65c0-2.24-.19-4.99-1.66-6.46-.8-.8-1.92-1.19-3.42-1.19Z" style="fill:#000c34;"/><path d="M44.57,65.9c-.1,4.43,1.65,8.07,5.24,8.15,3.59.08,5.68-3.46,5.78-7.89s-1.82-8.07-5.41-8.15c-3.59-.08-5.52,3.46-5.62,7.89Z" style="fill:#fff;"/><path d="M49.94,74.42s-.09,0-.14,0c-3.53-.08-5.73-3.43-5.61-8.53h.38s-.38,0-.38,0c.05-2.35.6-4.37,1.57-5.84,1.07-1.63,2.58-2.46,4.44-2.42,3.57.08,5.89,3.51,5.77,8.54-.05,2.3-.64,4.37-1.65,5.84-1.09,1.58-2.6,2.42-4.38,2.42ZM50.07,58.38c-1.51,0-2.78.72-3.68,2.09-.88,1.33-1.39,3.26-1.44,5.44-.08,3.53,1.15,7.68,4.88,7.77,1.55.03,2.91-.69,3.88-2.09.93-1.35,1.47-3.28,1.52-5.43.09-3.81-1.44-7.68-5.04-7.77-.04,0-.08,0-.11,0Z" style="fill:#000c34;"/><path d="M53.7,65.7c-.1,4.15.8,7.71,4.89,7.63,2.8-.06,5.15-3.24,5.25-7.39.1-4.15-2.09-7.56-4.89-7.63s-5.15,3.24-5.25,7.39Z" style="fill:#fff;"/><path d="M58.45,73.71c-1.4,0-2.54-.42-3.37-1.26-1.26-1.27-1.84-3.48-1.76-6.76.05-2.08.64-4.03,1.68-5.48,1.04-1.47,2.41-2.27,3.86-2.27.03,0,.06,0,.09,0,3,.07,5.36,3.67,5.26,8.01-.1,4.29-2.57,7.7-5.61,7.76-.05,0-.1,0-.15,0ZM58.86,58.69c-1.2,0-2.35.69-3.25,1.96-.95,1.34-1.5,3.14-1.54,5.07h0c-.07,3.07.43,5.1,1.54,6.21.72.72,1.69,1.06,2.97,1.04,2.64-.05,4.79-3.14,4.88-7.03.09-3.94-1.94-7.19-4.53-7.25-.02,0-.05,0-.07,0Z" style="fill:#000c34;"/><path d="M171.74,17.91c-1.44,0-2.62-1.17-2.62-2.62s1.17-2.62,2.62-2.62,2.62,1.17,2.62,2.62-1.17,2.62-2.62,2.62ZM171.74,13.43c-1.03,0-1.87.84-1.87,1.87s.84,1.87,1.87,1.87,1.87-.84,1.87-1.87-.84-1.87-1.87-1.87Z" style="fill:#000f35;"/><path d="M188.57,42.6c-.15-.04-.26-.16-.28-.32l-1.35-11.09-11.09,1.37c-.21.03-.39-.12-.42-.33-.03-.21.12-.39.33-.42l11.46-1.41c.1-.01.2.02.28.08s.13.15.14.25l1.39,11.47c.03.21-.12.39-.33.42-.05,0-.09,0-.13,0Z" style="fill:#000f35;"/><path d="M3.69,76.09c-1.44,0-2.62-1.17-2.62-2.62s1.17-2.62,2.62-2.62,2.62,1.17,2.62,2.62-1.17,2.62-2.62,2.62ZM3.69,71.61c-1.03,0-1.87.84-1.87,1.87s.84,1.87,1.87,1.87,1.87-.84,1.87-1.87-.84-1.87-1.87-1.87Z" style="fill:#000f35;"/><path d="M1.98,197.31s-.1,0-.15-.03c-.19-.08-.28-.3-.2-.49.01-.03,1.64-3.4,4.94-4.42,1.95-.6,4.01-.22,6.13,1.12,2,1.27,3.82,1.72,5.41,1.32,2.46-.61,3.89-3.12,4.58-4.32.1-.18.33-.24.51-.14.18.1.24.33.14.51-.74,1.29-2.28,3.99-5.05,4.68-1.79.44-3.81-.03-5.99-1.42-1.92-1.22-3.77-1.57-5.5-1.04-2.94.91-4.46,3.97-4.47,4-.06.14-.2.23-.34.23Z" style="fill:#000f35;"/><rect x="54.66" y="129.99" width="103.31" height="1" transform="translate(-46.95 60.92) rotate(-26.42)" style="fill:#000c34;"/>
            </svg>
            <p class="main-heading">
                Site not available
            </p>
            <div class="footer">
                Powered by <a href="https://www.k15t.com/products/scroll-sites-for-confluence"><strong>Scroll Sites</strong></a> and <a href="https://www.atlassian.com/software/confluence"><strong>Atlassian Confluence</strong></a>
            </div>
        </div>
    </main>


        <script>
            (function() {

                // the HTTP to HTTPS redirection from CloudFront is not always reliable.
                // make sure that the login page is not used under HTTP - especially that tokens are not sent with HTTP
                if (location.protocol !== 'https:') {
                    location.replace('https:' + location.href.substring(location.protocol.length));
                    return;
                }

                // This returns all current query params in an array -> ['t=123', 's=xyz', 'param3=someValue']
                function getQueryParamsParts() {
                    const queryParamsString = window.location.search;
                    return queryParamsString.substr(queryParamsString.indexOf('?') + 1).split('&');
                }

                function getQueryVariable(variable, defaultValue) {
                    var parts = getQueryParamsParts();

                    for (var i = 0; i < parts.length; i++) {
                        var pair = parts[i].split('=');
                        if (decodeURIComponent(pair[0]) === variable) {
                            return decodeURIComponent(pair[1]);
                        }
                    }

                    return defaultValue;
                }

                function getQueryParamsWithoutToken() {
                    var parts = getQueryParamsParts();

                    if (parts.length === 0) {
                        return '';
                    }

                    // This will filter out the query param with the key 't' which holds the token
                    var queryParamsString = parts.filter(function(part) {
                        var paramKey = decodeURIComponent(part.split('=')[0]);
                        return paramKey !== 't';
                    }).join('&');

                    return queryParamsString ? '?' + queryParamsString : '';
                }

                function getCookieValue(name) {
                    // we need to escape additionally here because of velocity
                    return document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)')?.pop() || ''
                }

                // https call from http origin would fail (cors) - but this makes double sure that the token is not sent over insecure connection
                var tokenLoginEndPoint = 'https://' + location.host + '/__auth/unpublished/login';

                var tokenFromQueryParameters = getQueryVariable('t', '').trim();
                var loginInProgress = false;

                function setLoginInProgress(state) {
                    loginInProgress = state;
                }

                function handleLoginFail() {
                    document.getElementsByTagName('main')[0].style.display = 'block';
                }

                function tryLogin() {
                    if (loginInProgress) {
                        return;
                    }
                    setLoginInProgress(true);

                    var ajaxReq = new XMLHttpRequest();

                    ajaxReq.onreadystatechange = function() {
                        if (ajaxReq.readyState === XMLHttpRequest.DONE) {
                            setLoginInProgress(false);
                            if (ajaxReq.status === 200) {
                                // If the login was successful the required cookies are now set and we can just reload with location.replace() to
                                // get to the content. location.replace() will prevent the login page from being in the browser session history.
                                const targetUrl = location.origin + location.pathname + getQueryParamsWithoutToken() + location.hash;
                                if (targetUrl === location.href && location.hash) {
                                    // if the targetUrl is already set and there is a location.hash, then the replace operation does nothing
                                    // so we have to reload explicitly - this will also trigger the anchor scrolling
                                    location.reload();
                                } else {
                                    location.replace(targetUrl);
                                }
                            } else {
                                handleLoginFail();
                            }
                        }
                    };

                    ajaxReq.open('POST', tokenLoginEndPoint, true);
                    ajaxReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                    ajaxReq.send('token=' + encodeURIComponent(tokenFromQueryParameters || '') + '&stayLoggedIn=' + stayLoggedIn);
                }


                // Try login if the token is in the URL as a query parameter of if the sts-token-is-set flag is set
                if (tokenFromQueryParameters || getCookieValue('sts-token-is-set')) {
                    stayLoggedIn = true;
                    tryLogin();
                } else {
                    handleLoginFail();
                }
            })();
        </script>
    </body>
</html>
