import {
  require_jsx_dev_runtime
} from "/build/_shared/chunk-XGOTYLZ5.js";
import {
  Link,
  useLocation
} from "/build/_shared/chunk-RG2SZ2V3.js";
import {
  createHotContext
} from "/build/_shared/chunk-73ZPIOGA.js";
import "/build/_shared/chunk-UWV35TSL.js";
import "/build/_shared/chunk-U4FRFQSK.js";
import "/build/_shared/chunk-7M6SC7J5.js";
import {
  __toESM
} from "/build/_shared/chunk-PNG5AS42.js";

// app/routes/debug.tsx
var import_jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
if (!window.$RefreshReg$ || !window.$RefreshSig$ || !window.$RefreshRuntime$) {
  console.warn("remix:hmr: React Fast Refresh only works when the Remix compiler is running in development mode.");
} else {
  prevRefreshReg = window.$RefreshReg$;
  prevRefreshSig = window.$RefreshSig$;
  window.$RefreshReg$ = (type, id) => {
    window.$RefreshRuntime$.register(type, '"app\\\\routes\\\\debug.tsx"' + id);
  };
  window.$RefreshSig$ = window.$RefreshRuntime$.createSignatureFunctionForTransform;
}
var prevRefreshReg;
var prevRefreshSig;
var _s = $RefreshSig$();
if (import.meta) {
  import.meta.hot = createHotContext(
    //@ts-expect-error
    "app\\routes\\debug.tsx"
  );
  import.meta.hot.lastModified = "1742896468617.7483";
}
function DebugPage() {
  _s();
  const location = useLocation();
  return /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("div", { className: "p-6", children: [
    /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("h1", { className: "text-2xl font-bold mb-4", children: "\u8DEF\u7531\u8BCA\u65AD\u9875\u9762" }, void 0, false, {
      fileName: "app/routes/debug.tsx",
      lineNumber: 27,
      columnNumber: 7
    }, this),
    /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("div", { className: "bg-gray-100 p-4 rounded mb-6", children: [
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("h2", { className: "text-xl font-semibold mb-2", children: "\u5F53\u524D\u8DEF\u5F84\u4FE1\u606F" }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 30,
        columnNumber: 9
      }, this),
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("pre", { className: "bg-white p-3 rounded border", children: JSON.stringify({
        pathname: location.pathname,
        search: location.search,
        hash: location.hash,
        key: location.key,
        state: location.state
      }, null, 2) }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 31,
        columnNumber: 9
      }, this)
    ] }, void 0, true, {
      fileName: "app/routes/debug.tsx",
      lineNumber: 29,
      columnNumber: 7
    }, this),
    /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("div", { className: "mb-6", children: [
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("h2", { className: "text-xl font-semibold mb-2", children: "\u6D4B\u8BD5\u94FE\u63A5" }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 43,
        columnNumber: 9
      }, this),
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("div", { className: "flex flex-col space-y-2", children: [
        /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)(Link, { to: "/", className: "text-blue-500 hover:underline", children: "\u9996\u9875 - /" }, void 0, false, {
          fileName: "app/routes/debug.tsx",
          lineNumber: 45,
          columnNumber: 11
        }, this),
        /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)(Link, { to: "/rules", className: "text-blue-500 hover:underline", children: "\u8BC4\u67E5\u70B9\u5217\u8868 - /rules" }, void 0, false, {
          fileName: "app/routes/debug.tsx",
          lineNumber: 46,
          columnNumber: 11
        }, this),
        /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)(Link, { to: "/rules/1", className: "text-blue-500 hover:underline", children: "\u8BC4\u67E5\u70B9\u8BE6\u60C5 - /rules/1" }, void 0, false, {
          fileName: "app/routes/debug.tsx",
          lineNumber: 47,
          columnNumber: 11
        }, this),
        /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("a", { href: "/rules", className: "text-green-500 hover:underline", children: "\u539F\u751F\u94FE\u63A5 - /rules" }, void 0, false, {
          fileName: "app/routes/debug.tsx",
          lineNumber: 48,
          columnNumber: 11
        }, this)
      ] }, void 0, true, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 44,
        columnNumber: 9
      }, this)
    ] }, void 0, true, {
      fileName: "app/routes/debug.tsx",
      lineNumber: 42,
      columnNumber: 7
    }, this),
    /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("div", { children: [
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("h2", { className: "text-xl font-semibold mb-2", children: "\u8DF3\u8F6C\u6D4B\u8BD5" }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 53,
        columnNumber: 9
      }, this),
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("button", { onClick: () => {
        window.location.href = "/rules";
      }, className: "bg-blue-500 text-white px-4 py-2 rounded mr-2 hover:bg-blue-600", children: "\u76F4\u63A5\u8DF3\u8F6C\u5230 /rules" }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 54,
        columnNumber: 9
      }, this),
      /* @__PURE__ */ (0, import_jsx_dev_runtime.jsxDEV)("button", { onClick: () => {
        window.history.pushState({}, "", "/rules");
        window.dispatchEvent(new PopStateEvent("popstate"));
      }, className: "bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600", children: "\u4F7F\u7528History API\u8DF3\u8F6C\u5230 /rules" }, void 0, false, {
        fileName: "app/routes/debug.tsx",
        lineNumber: 60,
        columnNumber: 9
      }, this)
    ] }, void 0, true, {
      fileName: "app/routes/debug.tsx",
      lineNumber: 52,
      columnNumber: 7
    }, this)
  ] }, void 0, true, {
    fileName: "app/routes/debug.tsx",
    lineNumber: 26,
    columnNumber: 10
  }, this);
}
_s(DebugPage, "pkHmaVRPskBaU4tMJuJJpV42k1I=", false, function() {
  return [useLocation];
});
_c = DebugPage;
var _c;
$RefreshReg$(_c, "DebugPage");
window.$RefreshReg$ = prevRefreshReg;
window.$RefreshSig$ = prevRefreshSig;
export {
  DebugPage as default
};
//# sourceMappingURL=/build/routes/debug-ZSJC2IZZ.js.map
