"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";


var _chunkVRHGVLSLcjs = require('./chunk-VRHGVLSL.cjs');

// src/embed-shims/next-link.tsx


var _react = require('react');
var _jsxruntime = require('react/jsx-runtime');
function registerLink(component) {
  impl = component;
}
var impl, Link, next_link_default;
var init_next_link = _chunkVRHGVLSLcjs.__esm.call(void 0, {
  "src/embed-shims/next-link.tsx"() {
    impl = null;
    Link = _react.forwardRef.call(void 0, function NextLinkShim(props, ref) {
      if (impl) {
        const Real = impl;
        return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Real, { ref, ...props });
      }
      const {
        href,
        children,
        prefetch: _prefetch,
        replace: _replace,
        scroll: _scroll,
        shallow: _shallow,
        passHref: _passHref,
        legacyBehavior: _legacyBehavior,
        locale: _locale,
        ...rest
      } = props;
      const hrefStr = typeof href === "string" ? href : _optionalChain([href, 'optionalAccess', _ => _.pathname]) ? href.pathname : void 0;
      return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ref, href: hrefStr, ...rest, children });
    });
    next_link_default = exports.next_link_default = Link;
  }
});





exports.registerLink = registerLink; exports.next_link_default = next_link_default; exports.init_next_link = init_next_link;
//# sourceMappingURL=chunk-WBR7H6E3.cjs.map