if (import.meta.hot) {
  const parser = new DOMParser();
  import.meta.hot.on("astro:reload", async ({html}) => {
    const {default: morphdom} = await import("morphdom");
    const doc = parser.parseFromString(html, "text/html");
    morphdom(document.head, doc.head, {
      onBeforeElUpdated(fromEl, toEl) {
        if (fromEl.isEqualNode(toEl)) {
          return false;
        }
        if (fromEl.tagName === toEl.tagName && (toEl.tagName === "LINK" || toEl.tagName === "SCRIPT")) {
          return false;
        }
        return true;
      }
    });
    morphdom(document.body, doc.body, {
      onBeforeElUpdated(fromEl, toEl) {
        if (fromEl.localName === "astro-root") {
          return fromEl.getAttribute("uid") !== toEl.getAttribute("uid");
        }
        if (fromEl.isEqualNode(toEl)) {
          return false;
        }
        return true;
      }
    });
  });
}
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50L2htci50cyJdLAogICJtYXBwaW5ncyI6ICJBQUFBLElBQUksWUFBWSxLQUFLO0FBQ25CLFFBQU0sU0FBUyxJQUFJO0FBQ25CLGNBQVksSUFBSSxHQUFHLGdCQUFnQixPQUFPLENBQUUsVUFBNkI7QUFDdkUsVUFBTSxDQUFFLFNBQVMsWUFBYSxNQUFNLE9BQU87QUFDM0MsVUFBTSxNQUFNLE9BQU8sZ0JBQWdCLE1BQU07QUFFekMsYUFBUyxTQUFTLE1BQU0sSUFBSSxNQUFNO0FBQUEsTUFDaEMsa0JBQWtCLFFBQVEsTUFBTTtBQUU5QixZQUFJLE9BQU8sWUFBWSxPQUFPO0FBQzVCLGlCQUFPO0FBQUE7QUFLVCxZQUFJLE9BQU8sWUFBWSxLQUFLLFdBQVksTUFBSyxZQUFZLFVBQVUsS0FBSyxZQUFZLFdBQVc7QUFDN0YsaUJBQU87QUFBQTtBQUdULGVBQU87QUFBQTtBQUFBO0FBSVgsYUFBUyxTQUFTLE1BQU0sSUFBSSxNQUFNO0FBQUEsTUFDaEMsa0JBQWtCLFFBQVEsTUFBTTtBQUM5QixZQUFJLE9BQU8sY0FBYyxjQUFjO0FBQ3JDLGlCQUFPLE9BQU8sYUFBYSxXQUFXLEtBQUssYUFBYTtBQUFBO0FBRzFELFlBQUksT0FBTyxZQUFZLE9BQU87QUFDNUIsaUJBQU87QUFBQTtBQUdULGVBQU87QUFBQTtBQUFBO0FBQUE7QUFBQTsiLAogICJuYW1lcyI6IFtdCn0K
