import{r as e}from"./rolldown-runtime-DUnMT5BP.js";import{t}from"./framework~index~page~page~route~page~page~page~page~page~page~page~page~page~route~route~pa~g06vx930-8koB61Gr.js";function n(e,t){if(!e)throw t instanceof Error?t:new r(t,n)}var r=class extends Error{constructor(e,t){super(e??`TinyAssertionError`),t&&`captureStackTrace`in Error&&Error.captureStackTrace(this,t)}},i=e(t(),1);function a(e){return new Proxy({},{get(t,r,i){n(typeof r==`string`);let[a,o]=r.split(`#`);return n(a),n(o),e?.onClientReference?.({id:a,name:o}),{id:a+``,name:o,chunks:[],async:!0}}})}function o(e,t,n){return i.renderToReadableStream(e,a({onClientReference:n?.onClientReference}),t)}function s(e,t,n){return i.registerClientReference(e,t,n)}export{o as n,a as r,s as t};