<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>Region Switching</title>
</head>

<body>
  <script>
    (function () {
      const DEFAULT_REGION = 'hzh.sealos.run'

      const REGION_MAP = {
        xxx: 'xxx'
      }

      function getUrlParam (name) {
        const url = new URL(window.location.href)
        return url.searchParams.get(name)
      }

      function setLocalStorage (name, value) {
        localStorage.setItem(name, value)
      }

      function getLocalStorage (name) {