@zlooks.cn/gateway-server 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/[pluginId]/[[...path]]/page.js +1 -1
  5. package/.next/server/app/[pluginId]/[[...path]]/page.js.nft.json +1 -1
  6. package/.next/server/app/[pluginId]/[[...path]]/page_client-reference-manifest.js +1 -1
  7. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found/page.js +1 -1
  14. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  15. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/shell/navigation/route.js +1 -1
  17. package/.next/server/app/api/shell/navigation/route.js.nft.json +1 -1
  18. package/.next/server/app/favicon.ico/route.js +1 -1
  19. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  20. package/.next/server/app/page.js +2 -2
  21. package/.next/server/app/page.js.nft.json +1 -1
  22. package/.next/server/app/page_client-reference-manifest.js +1 -1
  23. package/.next/server/chunks/512.js +2 -0
  24. package/.next/server/chunks/761.js +48 -0
  25. package/.next/server/chunks/775.js +1 -0
  26. package/.next/server/chunks/{238.js → 919.js} +4 -4
  27. package/.next/server/chunks/941.js +1 -0
  28. package/.next/server/chunks/964.js +1 -1
  29. package/.next/server/middleware-build-manifest.js +1 -1
  30. package/.next/server/pages/500.html +1 -1
  31. package/.next/server/server-reference-manifest.json +1 -1
  32. package/.next/static/chunks/130-85ed753dd2afbb75.js +1 -0
  33. package/.next/static/chunks/{192-ad1ffa171aaeadb3.js → 906-02ebd3fcb9fc3f0c.js} +1 -1
  34. package/.next/static/chunks/app/[pluginId]/[[...path]]/page-4dd303371bb755c7.js +1 -0
  35. package/.next/static/chunks/app/layout-8208d5ac4dfff885.js +1 -0
  36. package/.next/trace +22 -22
  37. package/.next/trace-build +1 -1
  38. package/dist/runtime/micro-browser-api-proxy.js +5 -1
  39. package/dist/runtime/micro-browser-api-proxy.js.map +1 -1
  40. package/package.json +9 -9
  41. package/.next/server/chunks/514.js +0 -48
  42. package/.next/server/chunks/61.js +0 -1
  43. package/.next/server/chunks/750.js +0 -2
  44. package/.next/server/chunks/939.js +0 -1
  45. package/.next/static/chunks/410-a28dfcd5fc4cf9b3.js +0 -1
  46. package/.next/static/chunks/app/[pluginId]/[[...path]]/page-8e20a213f2a428e0.js +0 -1
  47. package/.next/static/chunks/app/layout-ba60fe835762447a.js +0 -1
  48. /package/.next/static/{1FYzLDXgFQUI3FHFjATi6 → fP_us8WRl3Z6nv9W8oU-4}/_buildManifest.js +0 -0
  49. /package/.next/static/{1FYzLDXgFQUI3FHFjATi6 → fP_us8WRl3Z6nv9W8oU-4}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- exports.id=939,exports.ids=[939],exports.modules={1996:()=>{},2515:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(2963),e=c(72952),f=c(52897),g=c(92041);let h=(0,d.Pt)("zlooks.gateway.application",async a=>{let b=(0,f.pj)({REGISTRY_HOST:process.env.REGISTRY_HOST,REGISTRY_PORT:process.env.REGISTRY_PORT}),c=(0,f.PE)(process.env.HILE_ADVERTISE_HOST),d=new e.lg({namespace:"cn.zlooks.gateway.server",registry:b,...c?{advertiseHost:c}:{}}),h=await (0,g.o0)();return a(await d.listen(h)),d})},8076:()=>{},15474:()=>{},21212:a=>{function b(a){return Promise.resolve().then(()=>{var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b})}b.keys=()=>[],b.resolve=b,b.id=21212,a.exports=b},21902:(a,b,c)=>{"use strict";c.d(b,{B0:()=>e,rt:()=>d.rt,sL:()=>d.sL});var d=c(87903);let e=Object.freeze({invalidJson:2001,gatewayUnavailable:2002})},27695:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(2963),e=c(72123);let f=(0,d.Pt)("zlooks.gateway.logger",async a=>{let{logger:b,teardown:c}=(0,e.h)({level:"info",pretty:!1});return a(c),b})},36928:(a,b,c)=>{"use strict";c.d(b,{WA:()=>A,bE:()=>y,hT:()=>j,qM:()=>z,qe:()=>k,t1:()=>i});var d=c(73136),e=c(69347),f=c(87056),g=c(41309);let h="cn.zlooks.global.config.server",i=`${h}:site-presentation`,j=`${h}:site-profile`,k="__zlooks_global_config",l=f.Yj().regex(/^[a-z][a-z0-9._-]{0,127}$/),m=f.Yj().trim().min(1).max(160),n=f.Yj().min(1).max(2048).regex(/^\/(?!\/)[^\s]*$/),o=f.OZ().max(2048).refine(a=>{let b=new d.URL(a).protocol;return"http:"===b||"https:"===b}),p=f.gM("external",[f.re({id:l,label:m,href:n,external:f.eu(!1)}),f.re({id:l,label:m,href:o,external:f.eu(!0)})]),q=f.KC([n,o]).optional(),r=f.KC([n,o]).nullable().optional(),s=f.KC([n,o]).optional(),t=a=>new Set(a.map(a=>a.id)).size===a.length,u=f.re({identity:f.re({name:m,homeHref:n,backgroundVideoUrl:r,logoUrl:q,faviconUrl:q,description:f.Yj().trim().min(1).max(500).optional()}),linkGroups:f.YO(f.re({id:l,label:m,links:f.YO(p).max(32)})).max(16),legal:f.re({copyright:f.Yj().trim().min(1).max(320).optional(),registrations:f.YO(f.re({id:l,kind:f.k5(["icp","public-security","other"]),number:f.Yj().trim().min(1).max(320),verificationUrl:s,iconUrl:q})).max(8).refine(t,{message:"Registration IDs must be unique"})})}),v=f.re({schemaVersion:f.eu(2),revision:f.ai().int().min(0).max(Number.MAX_SAFE_INTEGER),value:u,updatedAt:g.w$({offset:!0}),updatedBy:f.Yj().trim().min(1).max(256)});f.re({expectedRevision:f.ai().int().min(0).max(Number.MAX_SAFE_INTEGER),value:u}),f.re({changeRequest:f.Yj().trim().min(1).max(2e3)});let w=f.re({profile:f.re({displayName:m,avatarUrl:q,headline:f.Yj().trim().min(1).max(240),biography:f.Yj().trim().min(1).max(2e3)}),topics:f.YO(f.re({id:l,name:m,summary:f.Yj().trim().min(1).max(500),href:s})).max(32).refine(t,{message:"Topic IDs must be unique"}),featuredLinks:f.YO(p).max(16).refine(t,{message:"Featured link IDs must be unique"})}),x=f.re({schemaVersion:f.eu(1),revision:f.ai().int().min(0).max(Number.MAX_SAFE_INTEGER),value:w,updatedAt:g.w$({offset:!0}),updatedBy:f.Yj().trim().min(1).max(256)});function y(a){return(0,e.ol)(v.parse(a))}function z(a){return(0,e.ol)(x.parse(a))}function A(a){return JSON.stringify(y(a))}f.re({expectedRevision:f.ai().int().min(0).max(Number.MAX_SAFE_INTEGER),value:w})},38828:(a,b,c)=>{"use strict";c.d(b,{A:()=>ah});var d=c(2963),e=c(45797),f=c(3120),g=c(13634),h=c(87903),i=c(77598);class j{#a;#b;#c;reconcile(a,b){let c=new Map;for(let b of a){let{payload:a}=b,d=c.get(a.providerId)??[];d.push(b),c.set(a.providerId,d)}let d=[...c.entries()].map(([a,b])=>({providerId:a,snapshots:b,representative:b[0]?.payload,compatible:1===new Set(b.map(({payload:a})=>{var b;let c,d;return c=(b=a).routes.map(a=>({kind:"exact"in a?"exact":"prefix",path:"exact"in a?a.exact:a.prefix,methods:[...a.methods].sort(),forwardCookieNames:[...a.forwardCookieNames].sort()})).sort((a,b)=>JSON.stringify(a).localeCompare(JSON.stringify(b))),d={providerId:b.providerId,namespace:b.namespace,operation:b.operation,routes:c,writableCookieNames:[...b.writableCookieNames].sort(),errors:b.errors},(0,i.createHash)("sha256").update(JSON.stringify(d)).digest("hex")})).size})),e=new Set(d.filter(({compatible:a,representative:b})=>!a||function(a){for(let b=0;b<a.routes.length;b+=1){let c=a.routes[b];if(c){for(let d of a.routes.slice(b+1))if(c.methods.some(a=>d.methods.includes(a))&&k(c,d))return!0}}return!1}(b)).map(({providerId:a})=>a)),f=new Set(d.map(({providerId:a})=>a));for(let a of this.#c.keys())f.has(a)||this.#c.delete(a);for(let a=0;a<d.length;a+=1){let b=d[a];if(b)for(let c of d.slice(a+1))((function(a,b){return a.routes.some(a=>b.routes.some(b=>a.methods.some(a=>b.methods.includes(a))&&k(a,b)))})(b.representative,c.representative)||function(a,b){return a.writableCookieNames.some(a=>b.writableCookieNames.includes(a))}(b.representative,c.representative))&&(e.add(b.providerId),e.add(c.providerId))}this.#a=d.filter(({providerId:a})=>!e.has(a)),this.#b=d.filter(({providerId:a})=>e.has(a))}resolve(a,b,c,d=0){if("string"!=typeof a)return{status:"none"};if(this.#b.some(({snapshots:c})=>c.some(({payload:c})=>l(c.routes,a,b))))return{status:"unavailable"};for(let e of this.#a){let{representative:f}=e,g=l(f.routes,a,b);if(!g)continue;let h=void 0===c?e.snapshots:e.snapshots.filter(({payload:a})=>c-d<Date.parse(a.lease.expiresAt));if(0===h.length)return{status:"unavailable"};let i=this.#c.get(e.providerId)??0,j=h[i%h.length];if(!j?.publishers[0])return{status:"unavailable"};return this.#c.set(e.providerId,(i+1)%h.length),{status:"available",provider:{providerId:f.providerId,namespace:f.namespace,operation:f.operation,forwardCookieNames:g.forwardCookieNames,writableCookieNames:f.writableCookieNames,address:j.publishers[0],errors:f.errors}}}return{status:"none"}}constructor(){this.#a=[],this.#b=[],this.#c=new Map}}function k(a,b){return"exact"in a&&"exact"in b?a.exact===b.exact:"exact"in a&&"prefix"in b?a.exact.startsWith(b.prefix):"prefix"in a&&"exact"in b?b.exact.startsWith(a.prefix):"prefix"in a&&"prefix"in b&&(a.prefix.startsWith(b.prefix)||b.prefix.startsWith(a.prefix))}function l(a,b,c){return a.find(a=>a.methods.includes(c)&&("exact"in a&&a.exact===b||"prefix"in a&&b.startsWith(a.prefix)))}class m{#d;#e;#f;#g;#h;#i;#j;#k;#l;#m;#n;#o;#p;constructor(a){this.options=a,this.#d=new j,this.#o=!1,this.#e=a.clock??(()=>new Date),this.#f=n(a.pollIntervalMs??1e3),this.#g=n(a.maxCatalogStaleMs??3e4),this.#h=n(a.maxLeaseMs??3e4),this.#i=function(a){if(!Number.isSafeInteger(a)||a<0)throw TypeError("Expected a non-negative integer");return a}(a.maxClockSkewMs??0)}start(){if(this.#o)return Promise.reject(Error("Browser API discovery is closed"));if(this.#j)return Promise.resolve();if(this.#k)return this.#k;let a=this.#q();return this.#k=a,a.finally(()=>{this.#k===a&&(this.#k=void 0)}).catch(()=>void 0),a}async #q(){try{await this.reconcileOnce()}catch(a){throw this.options.onError?.(a),a}if(this.#o)throw Error("Browser API discovery is closed");this.#j=setInterval(()=>{this.reconcileOnce().catch(a=>this.options.onError?.(a))},this.#f),this.#j.unref()}reconcileOnce(){if(this.#o)return Promise.reject(Error("Browser API discovery is closed"));if(this.#l)return this.#l;let a=this.#r();return this.#l=a,a.finally(()=>{this.#l===a&&(this.#l=void 0)}).catch(()=>void 0),a}resolve(a,b){let c=this.#e().getTime(),d=this.#d.resolve(a,b,c,this.#i);if("none"===d.status)return d;let e=this.#n;return void 0===e||c-e>this.#g?{status:"unavailable"}:d}close(){if(this.#p)return this.#p;if(this.#o)return Promise.resolve();let a=this.#s();return this.#p=a,a.finally(()=>{this.#p===a&&(this.#p=void 0)})}async #s(){this.#o=!0,this.#j&&(clearInterval(this.#j),this.#j=void 0),this.#m?.abort(Error("Browser API discovery is closed")),await this.#l?.catch(()=>void 0)}async #r(){let a=this.#e(),b=new AbortController;this.#m=b;try{let c=await this.options.application.listRegistryTopicSnapshots(h.zB,{signal:b.signal});if(this.#o)throw Error("Browser API discovery is closed");if(c.length>256)throw Error("Browser API Provider snapshot limit exceeded");let d=[];for(let b of c)try{if(!b.hasData||b.retained||1!==b.publisherCount||1!==b.publishers.length)throw Error("Browser API Provider topic must have exactly one live dynamic publisher");let c=(0,h.iL)({topic:b.topic,payload:b.payload,publishers:b.publishers},a,this.#h,this.#i);d.push(c)}catch(a){this.options.onRejected?.(b.topic,a)}if(new Set(d.map(({payload:a})=>a.providerId)).size>64)throw Error("Browser API Provider limit exceeded");this.#d.reconcile(d,a),this.#n=a.getTime()}finally{this.#m===b&&(this.#m=void 0)}}}function n(a){if(!Number.isSafeInteger(a)||a<=0)throw TypeError("Expected a positive integer");return a}async function o(a,b="One or more cleanup actions failed"){let c=[];for(let b of a)if(b)try{await b()}catch(a){c.push(a)}if(c.length>0)throw AggregateError(c,b)}var p=c(57975);function q(a){let b=a.rsc.discovery;return{pollIntervalMs:b.pollIntervalMs,missingReconciliations:b.missingReconciliations,snapshotConcurrency:b.snapshotConcurrency}}var r=c(86993),s=c(96919),t=c(23150),u=c(61933);class v{constructor(a,b){this.token=a,this.clientId=b}authenticate(a){var b,c;let d,e,f=a.headers.get("authorization"),g=`Bearer ${this.token}`;return f&&(b=f,c=g,d=Buffer.from(b),e=Buffer.from(c),d.length===e.length&&(0,i.timingSafeEqual)(d,e))?{token:this.token,clientId:this.clientId,scopes:[u.SS]}:new Response("Unauthorized",{status:401,headers:{"www-authenticate":"Bearer"}})}}var w=c(69350);class x{#t;#u;constructor(a,b,c){this.application=a,this.config=b,this.logger=c}get middleware(){let a=this.#u;if(!a)throw Error("MCP gateway is not ready");return a.middleware}inspect(){let a=this.#t;if(!a)throw Error("MCP gateway is not ready");return a.inspect()}async start(){if(this.#t)throw Error("MCP gateway is already mounted");try{let a=(0,t.H_)(this.application,{pollIntervalMs:this.config.pollIntervalMs,onError:a=>this.logger.error({err:a,event:"mcp.provider-discovery.failed"},"MCP provider discovery failed")}),b=await (0,r.r)({source:a,executionContext:a=>(0,w.eC)({requestId:(0,i.randomUUID)(),...a.authInfo?.clientId?{clientId:a.authInfo.clientId}:{}}),info:{name:"@zlooks.cn/gateway-server",version:"0.0.0"},instructions:"Capabilities are dynamically discovered from their owning internal Hile microservices. Before acting, inspect the current tool, resource, and prompt catalogs and their schemas; never invent a capability. For a multi-step workflow, prefer the owning provider's Prompt when one is available. A Prompt is guidance, not evidence that any action succeeded. Read current state before a write, obtain explicit user confirmation whenever the workflow requires it, invoke the Tool, and read the resulting state again before reporting success.",startup:"allow-empty",invocationSecurity:{mode:"trusted-internal"},onError:a=>this.logger.error({err:a,event:"mcp.gateway.failed"},"MCP gateway failed")});this.#t=b;let c=new v(this.config.bearerToken,this.config.clientId);this.#u=(0,s.u)(b,{path:this.config.path,security:{allowedHostnames:this.config.allowedHostnames,allowedOriginHostnames:this.config.allowedOriginHostnames,authentication:{mode:"required",authenticate:a=>c.authenticate(a)}},legacy:"reject",onError:a=>this.logger.error({err:a,event:"mcp.http-transport.failed"},"MCP HTTP transport failed")})}catch(a){throw await this.close().catch(a=>{this.logger.error({err:a,event:"mcp.gateway.rollback-failed"},"MCP gateway rollback failed")}),a}}async close(){let a=this.#u,b=this.#t;await o([a?async()=>{await a.close(),this.#u===a&&(this.#u=void 0)}:void 0,b?async()=>{await b.close(),this.#t===b&&(this.#t=void 0)}:void 0],"MCP gateway cleanup failed")}}class y{#v;#p;#w;#x;constructor(a,b){this.config=a,this.mcp=b,this.#v=0,this.#p=!1}async use(a){if(this.#p)throw Error("Gateway runtime state is closing");this.#v+=1;try{return await a()}finally{this.#v-=1,0===this.#v&&this.#x?.()}}close(a){return this.#p=!0,this.#w??=this.#y(a).catch(a=>{throw this.#w=void 0,a}),this.#w}async #y(a){this.#v>0&&await this.#z(a),await this.mcp.close()}async #z(a){a?.aborted||await new Promise(b=>{let c=()=>{a?.removeEventListener("abort",c),this.#x=void 0,b()};this.#x=c,a?.addEventListener("abort",c,{once:!0})})}}class z{constructor(a){this.deployments=a}canDiscover(a){return this.#A(a)}canRender(a){return this.#A(a)}canInvoke(a){return this.#A(a)}#A(a){let b=this.deployments.getActive(a.pluginId);return b?.buildId===a.buildId}}var A=c(90284),B=c(44762),C=c(20448),D=c(34240);let E=new Map;class F{#B;#C;#D;constructor(a,b,c){this.readConfig=b,this.artifacts=new B.ui,this.deployments=new B.hv,this.#D=!0;const d=b().rsc;this.locator=(0,B.d5)(this.deployments,async b=>(0,C.$C)(a,b.namespace)),this.#B=new D.nR({context:(0,w.eC)({}),application:a,artifacts:this.artifacts,deployments:this.deployments,runtime:A.fr,pollIntervalMs:d.discovery.pollIntervalMs,missingReconciliations:d.discovery.missingReconciliations,snapshotConcurrency:d.discovery.snapshotConcurrency,generationHighWater:E,maxManifestBytes:d.transfer.maxManifestBytes,maxFileBytes:d.transfer.maxFileBytes,maxTotalBytes:d.transfer.maxTotalBytes,maxArtifactFiles:d.transfer.maxArtifactFiles,maxPathBytes:d.transfer.maxPathBytes,maxPathDepth:d.transfer.maxPathDepth,operationTimeoutMs:d.transfer.operationTimeoutMs,authorize:(0,D.iw)(),onRejected:(a,b)=>c.warn({err:b,event:"rsc.discovery.rejected",topic:a},"Rejected RSC discovery topic"),onError:a=>c.error({err:a,event:"rsc.discovery.failed"},"RSC discovery failed")}),this.#C=(0,B.Vh)((0,B.AG)(this.artifacts,(0,B.V9)(d.assetMountPath)))}async start(){await this.#B.start()}async close(){await o([()=>this.#B.close(),this.#D?()=>{this.#C(),this.#D=!1}:void 0],"RSC discovery cleanup failed")}}function G(a,b,c,d){let e=(0,B._U)({expectedOrigin:()=>d().public.origin,readToken:a=>{let b=a.headers?.["x-rsc-csrf-token"];return Array.isArray(b)?b[0]:b},verifyToken:a=>a===d().rsc.csrfToken}),f=(0,B.W4)({gateway:new B.ku({locator:b.locator,authorize:(a,b)=>c.canInvoke(a)&&e({pluginId:a.pluginId,buildId:a.buildId,actionId:a.referenceId,input:{}},b)})});(0,B.Kq)(a,{asset:(0,B.XH)({catalog:b.artifacts,mountPath:d().rsc.assetMountPath}),serverFunction:async(a,b)=>(a.requestContext={headers:a.headers},f(a,b))})}var H=c(94530),I=c(21902);let J=(0,H.G)({enableTypes:["json"],jsonLimit:"32kb",onError:(a,b)=>b.throw(400,"Invalid JSON request")});function K(a,b,c,d,e){a.use(async(a,f)=>{var g,j;let k=c.resolve(a.path,a.method);if("none"===k.status)return f();if(O(a))return;if("unavailable"===k.status){a.status=503,a.body=(0,h.rt)(I.B0.gatewayUnavailable,"服务暂时不可用");return}let{provider:l}=k;if("GET"!==a.method&&!await L(a)||O(a))return;let m=function(a){var b;let c=a.get("origin"),d=Object.keys(a.query).length>0?a.query:void 0,e=a.request.body,f={method:a.method,path:a.path,clientKey:(b=a.ip,(0,i.createHash)("sha256").update(b).digest("hex")),...c?{origin:c}:{},...d?{query:d}:{},..."GET"!==a.method&&void 0!==e?{body:e}:{}};try{return{ok:!0,value:(0,h.b8)(f)}}catch{return{ok:!1}}}(a),n=function(a,b){let c=Object.fromEntries(b.flatMap(b=>{let c=a.cookies.get(b);return c?[[b,c]]:[]}));try{return{ok:!0,value:(0,h.VR)(c)}}catch{return{ok:!1}}}(a,l.forwardCookieNames);if(!m.ok||!n.ok){a.status=400,a.body=(0,h.rt)(l.errors.invalidRequest.code,l.errors.invalidRequest.message);return}try{let c,e=await M(b,l,m.value,n.value,(c=((g=a).get("user-agent")||"").trim().slice(0,1024),h.vH.parse({ipAddress:g.ip,userAgent:c||null})),a);if(O(a))return;(function(a,b){for(let c of a.cookieEffects??[])if(!b.writableCookieNames.includes(c.name))throw Error("Browser API Provider attempted an undeclared cookie effect")})(e,l),function(a,b,c){let d="https:"===new URL(c).protocol;for(let c of b.cookieEffects??[])a.cookies.set(c.name,"set"===c.action?c.value:"",{httpOnly:!0,sameSite:"lax",secure:d,path:"/",overwrite:!0,expires:new Date("set"===c.action?c.expiresAt:0)})}(a,e,d()),a.status=e.status,a.body=e.body}catch(b){if(j=a,b instanceof P||O(j))return;e.error({err:b,event:"browser-api.micro-proxy.failed",providerId:l.providerId,method:a.method,path:a.path},"Browser API Micro proxy failed"),a.status=502,a.body=(0,h.rt)(l.errors.unavailable.code,l.errors.unavailable.message)}})}async function L(a){try{return await J(a,async()=>void 0),!0}catch{if(O(a))return!1;return a.status=400,a.body=(0,h.rt)(I.B0.invalidJson,"请求内容不是有效的 JSON"),!1}}async function M(a,b,c,d,e,f){var g;let h,i,j=(g=f,h=new AbortController,i=()=>{h.signal.aborted||h.abort(new P)},g.req.once("aborted",i),g.res.once("close",i),O(g)&&i(),{controller:h,unbind:()=>{g.req.off("aborted",i),g.res.off("close",i)}});try{if(j.controller.signal.aborted)throw j.controller.signal.reason;return await N(a,b,c,d,e,j.controller.signal)}catch(a){if(j.controller.signal.aborted)throw j.controller.signal.reason??a;throw a}finally{j.unbind()}}async function N(a,b,c,d,e,f){let g,i={...Object.keys(d).length>0?{[h.Ih]:d}:{},[h.E6]:e};for await(let d of(await a.streamPeer(b.address,b.operation,c,{context:(0,w.eC)(i),timeout:5e3,idleTimeout:5e3,window:1,...f?{signal:f}:{}}))){if(g)throw Error("Browser API Provider returned more than one response frame");g=(0,h.FE)(d)}if(!g)throw Error("Browser API Provider returned no response frame");return g}function O(a){return a.req.aborted||a.res.destroyed||a.res.writableEnded}class P extends Error{constructor(){super("Public Browser API request was aborted"),this.name="PublicRequestAbortedError"}}var Q=c(83099);class R{#E;#F;#G;#H;#I;#J;#K;#L;#M;constructor(a,b,c,d){this.#E=a,this.#G=b,this.#H=d.logger;const e=d.createHost??((a,b)=>new f.Ay({port:a,cwd:b})),h=d.createRsc??((a,b)=>new F(a,b,d.logger)),i=d.createMcp??((a,b)=>new x(a,b,d.logger)),j=d.mountRsc??G,k=d.mountBrowserApi??K,l=d.createBrowserApi??(a=>new m({application:a,onRejected:(a,b)=>this.#H.warn({err:b,event:"browser-api.discovery.rejected",topic:a},"Browser API Provider announcement rejected"),onError:a=>this.#H.error({err:a,event:"browser-api.discovery.poll-failed"},"Browser API Provider discovery poll failed")}));this.#F=e(b.public.port,c),this.rsc=h(a,()=>this.config),this.#I=l(a),this.rscAccessPolicy=d.createRscAccessPolicy?.(this.rsc)??new z(this.rsc.deployments),this.#J=(0,g.Z)({debounceMs:d.debounceMs??100,create:async c=>{if(c.public.port!==b.public.port)throw Error("gateway.public.port requires a process restart");if(c.rsc.assetMountPath!==b.rsc.assetMountPath)throw Error("gateway.rsc.assetMountPath requires a process restart");if(!(0,p.isDeepStrictEqual)(c.rsc.transfer,b.rsc.transfer))throw Error("gateway.rsc.transfer requires a process restart");if(!(0,p.isDeepStrictEqual)(q(c),q(b)))throw Error("gateway.rsc.discovery runtime settings require a process restart");let d=i(a,c.mcp);return await d.start(),new y(c,d)},dispose:(a,b)=>a.close(b.signal),onError:(a,b)=>{this.#H.error({err:a,event:"gateway.runtime.reload-failed",stage:b.stage},"Gateway runtime reload failed")}}),(d.mountRscBrowserContext??Q.rL)(this.#F),j(this.#F,this.rsc,this.rscAccessPolicy,()=>this.config),this.#F.use((a,b)=>this.#N(c=>c.mcp.middleware(a,b))),k(this.#F,a,this.#I,()=>this.config.public.origin,this.#H)}get config(){return this.#J?.current()?.config??this.#G}async start(){try{await this.#O().update(this.#G),await this.#I.start(),await this.rsc.start()}catch(a){throw await this.close().catch(a=>{this.#H.error({err:a,event:"gateway.runtime.rollback-failed"},"Gateway runtime rollback failed")}),a}}async startHost(){if(!this.#O().current())throw Error("Gateway runtime is not ready");if(this.#K||this.#M)throw Error("Gateway public Host is already started or starting");let a=(async()=>{this.#M=await this.#F.start()})();this.#K=a;try{await a}finally{this.#K===a&&(this.#K=void 0)}}stopHost(){let a=this.#L;if(a)return a;let b=this.#P();return this.#L=b,b.finally(()=>{this.#L===b&&(this.#L=void 0)}).catch(()=>void 0),b}async #P(){await this.#K;let a=this.#M;a&&(await a(),this.#M===a&&(this.#M=void 0))}async update(a){await this.#O().update(a)}async withCurrent(a){return this.#N(b=>a({application:this.#E,config:b.config,logger:this.#H,rsc:this.rsc,rscAccessPolicy:this.rscAccessPolicy}))}async close(){await o([()=>this.stopHost(),()=>this.#O().stop(),()=>this.#I.close(),()=>this.rsc.close()],"Gateway runtime cleanup failed")}async #N(a){let b=this.#O().current();if(!b)throw Error("Gateway runtime is not ready");return b.use(()=>a(b))}#O(){let a=this.#J;if(!a)throw Error("Gateway runtime reloader is not initialized");return a}}var S=c(2515),T=c(73136),U=c(87056);let V=U.re({origin:U.OZ().refine(a=>{let b=new T.URL(a);return["http:","https:"].includes(b.protocol)&&!b.username&&!b.password&&"/"===b.pathname&&!b.search&&!b.hash},"Public Host origin must be one canonical HTTP(S) origin")}).readonly();function W(a){return V.parse(a)}var X=c(52897),Y=c(69347);let Z=U.Yj().regex(/^[a-z][a-z0-9._-]{0,127}$/),$=U.re({port:U.ai().int().min(1).max(65535),mcpBearerToken:U.Yj().min(16),mcpBearerClientId:Z.default("zlooks-admin-client")}),_=U.ai().int().positive().max(0x7fffffff),aa=U.re({public:U.re({port:U.ai().int().min(1).max(65535),origin:U.OZ()}),rsc:U.re({assetMountPath:U.eu("/_hile/rsc/assets"),csrfToken:U.Yj().min(16),render:U.re({timeoutMs:_,idleTimeoutMs:_,window:U.ai().int().positive()}),transfer:U.re({maxManifestBytes:U.ai().int().positive(),maxFileBytes:U.ai().int().positive(),maxTotalBytes:U.ai().int().positive(),maxArtifactFiles:U.ai().int().positive(),maxPathBytes:U.ai().int().positive(),maxPathDepth:U.ai().int().positive(),operationTimeoutMs:_}),discovery:U.re({pollIntervalMs:_,missingReconciliations:U.ai().int().positive(),snapshotConcurrency:U.ai().int().positive()})}),mcp:U.re({path:U.eu("/mcp"),pollIntervalMs:_,bearerToken:U.Yj().min(16),clientId:Z,scopes:U.PV([U.eu(u.SS)]),allowedHostnames:U.YO(U.Yj().trim().min(1)).min(1),allowedOriginHostnames:U.YO(U.Yj().trim().min(1)).min(1)})}),ab=a=>(0,Y.ol)($.parse(a));function ac(a){let b=$.parse(a.gateway),c=W(a.publicHost),d=new URL(c.origin).hostname;return(0,Y.ol)(aa.parse({public:{port:b.port,origin:c.origin},rsc:{assetMountPath:"/_hile/rsc/assets",csrfToken:(0,i.createHmac)("sha256",b.mcpBearerToken).update("zlooks:gateway-rsc-csrf:v1").digest("base64url"),render:{timeoutMs:3e4,idleTimeoutMs:1e4,window:8},transfer:{maxManifestBytes:1048576,maxFileBytes:0x4000000,maxTotalBytes:0x10000000,maxArtifactFiles:4096,maxPathBytes:1024,maxPathDepth:32,operationTimeoutMs:3e4},discovery:{pollIntervalMs:500,missingReconciliations:3,snapshotConcurrency:16}},mcp:{path:"/mcp",pollIntervalMs:2e3,bearerToken:b.mcpBearerToken,clientId:b.mcpBearerClientId,scopes:[u.SS],allowedHostnames:[d],allowedOriginHostnames:[d]}}))}let ad=(0,d.Pt)("zlooks.gateway.config",async a=>{let b=await (0,d.oV)(S.A),c=await (0,X.ud)(b,{sources:{gateway:{topic:(0,X.fG)("gateway"),parse:ab},publicHost:{topic:(0,X.fG)("public-host"),parse:W}},compose:ac});return a(()=>c.close()),c});var ae=c(92700),af=c(54619),ag=c(27695);let ah=(0,d.Pt)("zlooks.gateway.runtime",async a=>{let[b,c,,,f]=await Promise.all([(0,d.oV)(S.A),(0,d.oV)(ad),(0,d.oV)(ae.A),(0,d.oV)(af.A),(0,d.oV)(ag.A)]),g=new R(b,c.snapshot(),process.cwd(),{logger:f});await g.start();let h=(0,e.f)(c.current,async a=>{a&&await g.update(a)},{onError:a=>f.error({err:a,event:"gateway.config-update.failed"},"Gateway configuration update failed")});return a(async()=>{h(),await g.close()}),g})},43811:()=>{},45625:(a,b,c)=>{"use strict";c.d(b,{G:()=>g,P:()=>f});var d=c(36928);class e{#Q;#R;#S;#T;#w;constructor(a,b,c,d,e={}){this.application=a,this.topic=b,this.parse=c,this.description=d,this.#Q=e.initialTimeoutMs??1e4,this.#R=e.onError??(()=>void 0)}async start(){let a,b;if(this.#T)throw Error(`${this.description} snapshot source is already started`);let c=new Promise((c,d)=>{a=c,b=d}),d=setTimeout(()=>{b(Error(`${this.description} snapshot was not ready before the initial timeout`))},this.#Q);try{this.#T=await this.application.subscribe(this.topic,c=>{try{this.#S=this.parse(c),a()}catch(a){this.#U(a),this.#S||b(a)}}),await c}catch(a){throw await this.close().catch(()=>void 0),a}finally{clearTimeout(d)}}snapshot(){let a=this.#S;if(!a)throw Error(`${this.description} snapshot is not ready`);return a}close(){let a=this.#w;if(a)return a;let b=this.#T;if(!b)return Promise.resolve();let c=Promise.resolve(b()).then(()=>{this.#T===b&&(this.#T=void 0)}).catch(a=>{throw this.#w=void 0,a});return this.#w=c,c}#U(a){try{Promise.resolve(this.#R(a)).catch(()=>void 0)}catch{}}}class f extends e{constructor(a,b={}){super(a,d.t1,d.bE,"Global configuration",b)}}class g extends e{constructor(a,b={}){super(a,d.hT,d.qM,"Global profile",b)}}},52897:(a,b,c)=>{"use strict";c.d(b,{PE:()=>h,pj:()=>i,fG:()=>j,ud:()=>m});var d=c(87056),e=c(55863);let f=d.Ik({REGISTRY_HOST:d.Yj().trim().min(1),REGISTRY_PORT:e.ai().int().min(1).max(65535)}),g=d.Yj().trim().min(1).optional();function h(a){return g.parse(a)}function i(a){let b=f.parse(a);return Object.freeze({host:b.REGISTRY_HOST,port:b.REGISTRY_PORT})}function j(a){let b=a.trim();if(!b||b.includes("/"))throw Error("Registry configuration key must be one non-empty path segment");return`registry:zlooks.cn/${b}`}var k=c(45797),l=c(99908);async function m(a,b){let c,d,e,f=Object.keys(b.sources);if(0===f.length)throw Error("At least one Registry configuration source is required");let g=Object.fromEntries(f.map(a=>[a,b.sources[a].topic])),h=await (0,k.wb)(a,{topics:g,required:f,onError:a=>n(b.onError,a)}),i=(0,l.IJ)(),j=!0,m=new Promise((a,b)=>{d=a,e=b}),o=setTimeout(()=>{e(Error("Registry configuration was not ready before the initial timeout"))},b.initialTimeoutMs??1e4),p=(0,k.f)(h.current,a=>{if(void 0!==a)try{let c=Object.fromEntries(f.map(c=>[c,b.sources[c].parse(a[c])]));i.value=b.compose(c),d()}catch(a){n(b.onError,a),void 0===i.value&&e(a)}},{immediate:!0}),q=()=>{if(c)return c;j&&(j=!1,p());let a=h.stop().catch(a=>{throw c=void 0,a});return c=a,a};try{await m}catch(a){throw await q().catch(()=>void 0),a}finally{clearTimeout(o)}return{current:i,snapshot(){let a=i.value;if(void 0===a)throw Error("Registry configuration is not ready");return a},close:q}}function n(a,b){try{Promise.resolve(a?.(b)).catch(()=>void 0)}catch{}}},54619:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(2963),e=c(45625),f=c(2515),g=c(27695);let h=(0,d.Pt)("zlooks.gateway.global-profile-snapshot",async a=>{let[b,c]=await Promise.all([(0,d.oV)(f.A),(0,d.oV)(g.A)]),h=new e.G(b,{onError:a=>c.warn({err:a,event:"global-profile.snapshot.rejected"},"Rejected global profile snapshot")});return await h.start(),a(()=>h.close()),h})},69347:(a,b,c)=>{"use strict";c.d(b,{CY:()=>d,ol:()=>function a(b){if(null!==b&&"object"==typeof b&&!Object.isFrozen(b))for(let c of(Object.freeze(b),Object.values(b)))a(c);return b}});let d="zlooks_session"},83099:(a,b,c)=>{"use strict";c.d(b,{gV:()=>h,rL:()=>g});var d=c(69350),e=c(87903);let f="x-zlooks-internal-rsc-client-ip";function g(a){a.use(async(a,b)=>{a.request.headers[f]=a.ip,await b()})}function h(a){let b=a.get(f)?.trim(),c=a.get("user-agent")?.trim().slice(0,1024)||null;if(!b)return(0,d.eC)({});let g=e.vH.parse({ipAddress:b,userAgent:c});return(0,d.eC)({[e.E6]:g})}},87903:(a,b,c)=>{"use strict";c.d(b,{Dy:()=>E,E6:()=>h,FE:()=>N,Ih:()=>g,RW:()=>t,VR:()=>M,b8:()=>L,iL:()=>K,lu:()=>J,pF:()=>G,rt:()=>I,sL:()=>H,vH:()=>D,zB:()=>f});var d=c(87056),e=c(41309);let f="registry:zlooks.cn/browser-api/providers/",g="zlooks.browser.cookies",h="zlooks.browser.client",i=d.Yj().regex(/^[a-z][a-z0-9._-]{0,127}$/),j=d.Yj().regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/),k=d.Yj().min(1).max(2048).regex(/^\/(?!\/)[^?#\s]*$/),l=d.Yj().min(5).max(2048).regex(/^\/api\/(?!\/)[^?#\s]*$/),m=e.w$({offset:!0}),n=d.Yj().regex(/^[A-Za-z][A-Za-z0-9_-]{0,127}$/),o=d.k5(["GET","POST","PUT","PATCH","DELETE"]),p=d.YO(n).max(8).refine(a=>new Set(a).size===a.length,"Cookie names must be unique").readonly(),q=d.re({code:d.ai().int().safe().refine(a=>0!==a),message:d.Yj().trim().min(1).max(500)}).readonly(),r=d.re({code:d.eu(0),data:d.L5().refine(a=>void 0!==a)}).readonly(),s=d.re({code:d.ai().int().safe().refine(a=>0!==a),error:d.Yj().trim().min(1).max(500)}).readonly(),t=d.KC([r,s]),u=d.re({exact:l,methods:d.YO(o).min(1).max(5).refine(a=>new Set(a).size===a.length,"Methods must be unique").readonly(),forwardCookieNames:p}).readonly(),v=d.re({prefix:l.refine(a=>a.endsWith("/"),"Route prefix must end with /"),methods:d.YO(o).min(1).max(5).refine(a=>new Set(a).size===a.length,"Methods must be unique").readonly(),forwardCookieNames:p}).readonly(),w=d.KC([u,v]),x=d.re({issuedAt:m,expiresAt:m,sequence:d.ai().int().nonnegative().max(Number.MAX_SAFE_INTEGER)}).refine(a=>Date.parse(a.expiresAt)>Date.parse(a.issuedAt),{message:"Browser API Provider lease must expire after it is issued"}).readonly(),y=d.re({protocol:d.eu("zlooks.browser-api.provider"),providerId:i,instanceId:i,namespace:j,operation:d.eu("/browser/dispatch"),routes:d.YO(w).min(1).max(64).refine(a=>!a.some((b,c)=>a.slice(c+1).some(a=>{var c,d;return c=b,d=a,!!c.methods.some(a=>d.methods.includes(a))&&("exact"in c&&"exact"in d?c.exact===d.exact:"prefix"in c&&"prefix"in d?c.prefix.startsWith(d.prefix)||d.prefix.startsWith(c.prefix):"exact"in c&&"prefix"in d?c.exact.startsWith(d.prefix):"prefix"in c&&"exact"in d&&d.exact.startsWith(c.prefix))})),"Provider routes must not overlap for the same HTTP method").readonly(),writableCookieNames:p,errors:d.re({invalidRequest:q,unavailable:q}).readonly(),lease:x}).readonly(),z=d.re({topic:d.Yj().min(1).max(512),payload:y,publishers:d.YO(d.re({host:d.Yj().trim().min(1).max(253),port:d.ai().int().min(1).max(65535)}).readonly()).length(1).readonly()}).readonly(),A=d.KC([d.Yj().max(512),d.YO(d.Yj().max(512)).max(20).readonly()]),B=d.g1(d.Yj().regex(/^[a-z][a-zA-Z0-9_-]{0,63}$/),A).refine(a=>Object.keys(a).length<=20,{message:"Browser API query has too many fields"}).readonly(),C=d.g1(n,d.Yj().min(1).max(4096)).refine(a=>Object.keys(a).length<=8,{message:"Browser API context has too many cookies"}).readonly(),D=d.re({ipAddress:d.KC([d.uX(),d.ug()]),userAgent:d.Yj().trim().min(1).max(1024).nullable()}).readonly(),E=d.re({method:o,path:k,origin:d.Yj().max(2048).optional(),clientKey:d.Yj().regex(/^[a-f0-9]{64}$/),query:B.optional(),body:d.L5().optional()}).readonly(),F=d.gM("action",[d.re({action:d.eu("set"),name:n,value:d.Yj().min(1).max(4096),expiresAt:m}),d.re({action:d.eu("clear"),name:n})]).readonly(),G=d.re({status:d.ai().int().min(200).max(599).refine(a=>a<300||a>=400),body:t,cookieEffects:d.YO(F).max(8).refine(a=>new Set(a.map(a=>a.name)).size===a.length,"Cookie effects must target unique names").readonly().optional()}).superRefine((a,b)=>{let c=a.status>=200&&a.status<300;!J(a.body)!==c&&b.addIssue({code:"custom",message:"HTTP status and browser API response code disagree",path:["body","code"]})}).readonly();function H(a){return r.parse({code:0,data:a}),Object.freeze({code:0,data:a})}function I(a,b){return s.parse({code:a,error:b})}function J(a){return 0!==a.code}function K(a,b=new Date,c=3e4,d=0){var e,g;let h=z.parse(a),j=function(a,b=new Date,c=3e4,d=0){O(c,"Browser API Provider maximum lease"),O(d,"Browser API Provider clock skew");let e=y.parse(a),f=Date.parse(e.lease.issuedAt),g=Date.parse(e.lease.expiresAt);if(g-f>c)throw Error("Browser API Provider lease is too long");if(b.getTime()+d<f)throw Error("Browser API Provider lease is not active yet");if(b.getTime()-d>=g)throw Error("Browser API Provider lease has expired");return e}(h.payload,b,c,d),k=(e=j.providerId,g=j.instanceId,`${f}${i.parse(e)}/${i.parse(g)}`);if(h.topic!==k)throw Error("Browser API Provider topic does not match identity");return{topic:h.topic,payload:j,publishers:h.publishers}}function L(a){return E.parse(a)}function M(a){return C.parse(a)}function N(a){return G.parse(a)}function O(a,b){if(!Number.isSafeInteger(a)||a<0)throw TypeError(`${b} must be a non-negative safe integer`)}},90908:a=>{function b(a){return Promise.resolve().then(()=>{var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b})}b.keys=()=>[],b.resolve=b,b.id=90908,a.exports=b},92700:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(2963),e=c(45625),f=c(2515),g=c(27695);let h=(0,d.Pt)("zlooks.gateway.global-config-snapshot",async a=>{let[b,c]=await Promise.all([(0,d.oV)(f.A),(0,d.oV)(g.A)]),h=new e.P(b,{onError:a=>c.warn({err:a,event:"global-config.snapshot.rejected"},"Rejected global configuration snapshot")});return await h.start(),a(()=>h.close()),h})}};
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[410],{92:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=s(t),a=o[0],f=o[1],u=new i((a+f)*3/4-f),l=0,h=f>0?a-4:a;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,f=n-i;a<f;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,a,a+16383>f?f:a+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=o.length;a<f;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},781:(t,e,r)=>{"use strict";r.d(e,{clearRscClientBuildCache:()=>d,clearRscClientCaches:()=>g,default:()=>R,renderRemoteClientErrorFallback:()=>b,resolveRemoteClientAssets:()=>v});var n,i,o,a=r(25840),f=r(47617),s=r(53352),u=r(49660),l=r(65396);globalThis.__HILE_RSC_REACT__=a,globalThis.__HILE_RSC_JSX_RUNTIME__=n||(n=r.t(u,2)),globalThis.__HILE_RSC_REACT_DOM__=i||(i=r.t(f,2)),globalThis.__HILE_RSC_REACT_DOM_CLIENT__=o||(o=r.t(s,2));let h=new Map,p=new Map;function y(t,e){let r=t.get(e);if(void 0!==r)return t.delete(e),t.set(e,r),r}function c(t,e,r,n){for(t.delete(e),t.set(e,r);t.size>n;)t.delete(t.keys().next().value)}function g(){p.clear(),h.clear()}function d(t,e,r){p.delete(m(r,t,e));let n=`${JSON.stringify([r,t,e]).slice(0,-1)},`;for(let t of h.keys())t.startsWith(n)&&h.delete(t)}function m(t,e,r){return JSON.stringify([t,e,r])}function w(t,e){return JSON.stringify([t,e.pluginId,e.buildId,e.referenceId,e.exportName])}async function v(t,e){let r=`${e}/${encodeURIComponent(t.pluginId)}/${encodeURIComponent(t.buildId)}`,n=m(e,t.pluginId,t.buildId),i=y(p,n);i||(i=fetch(`${r}/plugin.json`,{credentials:"same-origin"}).then(async t=>{if(!t.ok)throw Error(`Failed to load RSC plugin manifest: ${t.status}`);return t.json()}).catch(t=>{throw p.get(n)===i&&p.delete(n),t}),c(p,n,i,64));let o=await i,a=o.clients.find(({id:e})=>e===t.referenceId);if(!a)throw Error(`Remote client reference not found: ${t.referenceId}`);let f=t=>`${r}/file/${t.split("/").map(encodeURIComponent).join("/")}`;return{moduleUrl:f(a.module),styles:o.styles.map(t=>({href:f(t.path),integrity:t.integrity}))}}function b(t,e,r,n){return n?n(t,e,r):a.createElement("span",{role:"alert","data-hile-rsc-error":e.referenceId},"Remote component failed to load")}class E extends a.Component{static getDerivedStateFromError(t){return{failed:!0,error:t}}render(){return this.state.failed?b(this.state.error,this.props.identity,this.retry,this.props.renderError):this.props.children}constructor(...t){super(...t),this.state={failed:!1,error:void 0},this.retry=()=>{this.props.onRetry(),this.setState({failed:!1,error:void 0})}}}function R({pluginId:t,buildId:e,referenceId:r,exportName:n,props:i}){var o;let f,s,{assetMountPath:u,suspensePolicy:p,renderLoading:g,renderError:m}=(0,l.useRscClientRuntime)(),b={pluginId:t,buildId:e,referenceId:r,exportName:n},S=w(u,b),[A,C]=(0,a.useState)(0),T=((s=y(h,f=w(u,b)))||c(h,f,s=(0,a.lazy)(async()=>{let t="u"<typeof window?"ssr":"browser",e=globalThis.__HILE_RSC_RESOLVE_CLIENT__?await globalThis.__HILE_RSC_RESOLVE_CLIENT__(b,t):await v(b,u),r=(await import(e.moduleUrl))[b.exportName];if("function"!=typeof r&&"object"!=typeof r)throw Error(`Remote client export not found: ${b.referenceId}`);return{default:function(t){return a.createElement(a.Fragment,null,e.styles.map(t=>a.createElement("link",{key:t.href,rel:"stylesheet",href:t.href,integrity:t.integrity,crossOrigin:t.integrity?"anonymous":void 0,precedence:"hile-rsc-plugin"})),a.createElement(r,t))}}}),256),s),B=(0,a.useCallback)(()=>{d(t,e,u),C(t=>t+1)},[t,e,u]);return a.createElement(E,{key:S,identity:b,renderError:m,onRetry:B},(o=a.createElement(T,{...i,key:A}),"host"===p?o:a.createElement(a.Suspense,{fallback:g?g(b):a.createElement("span",{"data-hile-rsc-loading":b.referenceId})},o)))}},49521:(t,e)=>{e.read=function(t,e,r,n,i){var o,a,f=8*i-n-1,s=(1<<f)-1,u=s>>1,l=-7,h=r?i-1:0,p=r?-1:1,y=t[e+h];for(h+=p,o=y&(1<<-l)-1,y>>=-l,l+=f;l>0;o=256*o+t[e+h],h+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=p,l-=8);if(0===o)o=1-u;else{if(o===s)return a?NaN:1/0*(y?-1:1);a+=Math.pow(2,n),o-=u}return(y?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,f,s,u=8*o-i-1,l=(1<<u)-1,h=l>>1,p=5960464477539062e-23*(23===i),y=n?0:o-1,c=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(f=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+h>=1?e+=p/s:e+=p*Math.pow(2,1-h),e*s>=2&&(a++,s/=2),a+h>=l?(f=0,a=l):a+h>=1?(f=(e*s-1)*Math.pow(2,i),a+=h):(f=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+y]=255&f,y+=c,f/=256,i-=8);for(a=a<<i|f,u+=i;u>0;t[r+y]=255&a,y+=c,a/=256,u-=8);t[r+y-c]|=128*g}},53442:(t,e,r)=>{"use strict";var n=r(92),i=r(49521),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|c(n,i),s=a(o),u=s.write(n,i);return u!==o&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(t)){var l=t;if(I(l,Uint8Array)){var g=new Uint8Array(l);return p(g.buffer,g.byteOffset,g.byteLength)}return h(l)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var d=t.valueOf&&t.valueOf();if(null!=d&&d!==t)return f.from(d,e,r);var m=function(t){if(f.isBuffer(t)){var e=0|y(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(m)return m;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),a(t<0?0:0|y(t))}function h(t){for(var e=t.length<0?0:0|y(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),f.prototype),n}function y(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function c(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(i)return n?-1:T(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,a,f=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=_[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(f)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),f=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return w(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var o,a=1,f=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,f/=2,s/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o<f;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===s)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+s>f&&(r=f-s),o=r;o>=0;o--){for(var h=!0,p=0;p<s;p++)if(u(t,o+p)!==u(e,p)){h=!1;break}if(h)return o}return -1}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,f,s,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(o=t[i+1]))==128&&(s=(31&u)<<6|63&o)>127&&(l=s);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(s=(15&u)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:o=t[i+1],a=t[i+2],f=t[i+3],(192&o)==128&&(192&a)==128&&(192&f)==128&&(s=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&f)>65535&&s<1114112&&(l=s)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var p=n,y=p.length;if(y<=4096)return String.fromCharCode.apply(String,p);for(var c="",g=0;g<y;)c+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return c}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,i,o){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function R(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function S(t,e,r,n,o){return e*=1,r>>>=0,o||R(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function A(t,e,r,n,o){return e*=1,r>>>=0,o||R(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.hp=f,e.IS=50,f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(u(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},f.allocUnsafe=function(t){return l(t)},f.allocUnsafeSlow=function(t){return l(t)},f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(I(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),I(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=f.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(I(o,Uint8Array))i+o.length>n.length?f.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(f.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},f.byteLength=c,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},f.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):g.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(I(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,s=Math.min(o,a),u=this.slice(n,i),l=t.slice(e,r),h=0;h<s;++h)if(u[h]!==l[h]){o=u[h],a=l[h];break}return o<a?-1:+(a<o)},f.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,f,s,u,l,h,p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var y=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var f,s=parseInt(e.substr(2*a,2),16);if((f=s)!=f)break;t[r+a]=s}return a}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,U(T(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=e,f=r,U(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,a,f);case"base64":return s=e,u=r,U(B(t),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,U(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(y)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUintLE=f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUintBE=f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUint8=f.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,t,e,r,i,0)}var o=1,a=0;for(this[e]=255&t;++a<r&&(o*=256);)this[e+a]=t/o&255;return e+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;E(this,t,e,r,i,0)}var o=r-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,t,e,r,i-1,-i)}var o=0,a=1,f=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===f&&0!==this[e+o-1]&&(f=1),this[e+o]=(t/a|0)-f&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);E(this,t,e,r,i-1,-i)}var o=r-1,a=1,f=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===f&&0!==this[e+o+1]&&(f=1),this[e+o]=(t/a|0)-f&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return S(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return S(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return A(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return A(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=f.isBuffer(t)?t:f.from(t,n),s=a.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%s]}return this};var C=/[^+/0-9A-Za-z-_]/g;function T(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function I(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var _=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},57165:(t,e,r)=>{"use strict";r.r(e),r.d(e,{RscLink:()=>h,useRscNavigation:()=>l});var n=r(25840);function i(t,e){try{let r=new URL(t,e);return"http:"===r.protocol||"https:"===r.protocol?r:void 0}catch{return}}var o=r(93713);function a(){return"u"<typeof window?void 0:window.location}function f(t,e){let r=i(t,e.href);if(!r)throw TypeError("RSC navigation href must use HTTP or HTTPS");return r}function s(){return(0,o.H)()}let u=Object.freeze({push(t,e){let r=a();if(!r)return;let n=f(t,r),i=s();i&&n.origin===r.origin?i.push(t,e):r.assign(n.href)},replace(t,e){let r=a();if(!r)return;let n=f(t,r),i=s();i&&n.origin===r.origin?i.replace(t,e):r.replace(n.href)},refresh(){let t=s();t?t.refresh():a()?.reload()},prefetch(t){let e=a();if(!e)return;let r=f(t,e),n=s();n&&r.origin===e.origin&&n.prefetch(t)}});function l(){return u}let h=(0,n.forwardRef)(function({href:t,replace:e=!1,scroll:r,target:o,download:a,onClick:f,...l},h){return n.createElement("a",{...l,ref:h,href:t,target:o,download:a,onClick:function(n){if(f?.(n),"u"<typeof window||!function(t,e,r){if(t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||void 0!==e.target&&""!==e.target&&"_self"!==e.target.toLowerCase()||void 0!==e.download&&!1!==e.download)return!1;let n=i(r,r),o=i(e.href,r);return void 0!==n&&void 0!==o&&o.origin===n.origin}(n,{href:t,target:o,download:a},window.location.href))return;let l=s();if(!l&&!e)return;n.preventDefault();let h=void 0===r?void 0:{scroll:r};e?u.replace(t,h):l.push(t,h)}})})},65396:(t,e,r)=>{"use strict";r.r(e),r.d(e,{RscClientRuntimeProvider:()=>a,useRscAssetMountPath:()=>f,useRscClientRuntime:()=>s});var n=r(25840);let i="/_hile/rsc/assets",o=(0,n.createContext)({assetMountPath:i,suspensePolicy:"remote"});function a({assetMountPath:t=i,suspensePolicy:e="remote",renderLoading:r,renderError:f,children:s}){let u=(0,n.useMemo)(()=>{let n=function(t){if("remote"===t||"host"===t)return t;throw TypeError('RSC suspensePolicy must be "remote" or "host"')}(e);if("host"===n&&void 0!==r)throw TypeError('RSC renderLoading is unavailable when suspensePolicy is "host"');return{assetMountPath:function(t){if(!t.startsWith("/"))throw TypeError("RSC asset mount path must be absolute");let e=t.replace(/\/+$/,"");if(!e)throw TypeError("RSC asset mount path must not be the root path");return e}(t),suspensePolicy:n,renderLoading:r,renderError:f}},[t,e,r,f]);return n.createElement(o.Provider,{value:u},s)}function f(){return(0,n.useContext)(o).assetMountPath}function s(){return(0,n.useContext)(o)}},74370:(t,e,r)=>{"use strict";let n;r.r(e),r.d(e,{RscServerFunctionClientError:()=>v,configureRscServerFunctionClient:()=>w,createRemoteServerReference:()=>E,installRscServerReferenceRuntime:()=>R,invokeRemoteServerFunction:()=>b});var i=r(53442).hp;let o=new TextEncoder;function a(t={}){let e={maxDepth:t.maxDepth??64,maxNodes:t.maxNodes??1e4,maxBinaryBytes:t.maxBinaryBytes??0x1000000,maxStringBytes:t.maxStringBytes??0x1000000};for(let[t,r]of Object.entries(e))if(!Number.isSafeInteger(r)||r<1)throw TypeError(`${t} must be a positive safe integer`);return{...e,nodes:0,binaryBytes:0,stringBytes:0}}function f(t,e){if(e>t.maxDepth)throw TypeError("RSC server function value exceeds maximum depth");if(++t.nodes>t.maxNodes)throw TypeError("RSC server function value exceeds maximum node count")}function s(t,e){if(t.stringBytes+=o.encode(e).byteLength,t.stringBytes>t.maxStringBytes)throw TypeError("RSC server function value exceeds maximum string bytes")}function u(t,e){if(t.binaryBytes+=e,t.binaryBytes>t.maxBinaryBytes)throw TypeError("RSC server function value exceeds maximum binary bytes")}function l(t){if(void 0!==i)return i.from(t).toString("base64");let e="";for(let r=0;r<t.byteLength;r+=32768)e+=String.fromCharCode(...t.subarray(r,r+32768));return btoa(e)}function h(t){if("string"!=typeof t)throw TypeError("RSC wire bytes must be base64 text");if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))throw TypeError("RSC wire bytes must be valid base64 text");try{if(void 0!==i){let e=i.from(t,"base64");if(e.toString("base64")!==t)throw Error("non-canonical base64");return Uint8Array.from(e)}let e=atob(t);return Uint8Array.from(e,t=>t.charCodeAt(0))}catch{throw TypeError("RSC wire bytes must be valid base64 text")}}function p(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}async function y(t,e,r,n){let i=await t;if(f(r,n),null===i)return{type:"null"};if(void 0===i)return{type:"undefined"};if("string"==typeof i||"boolean"==typeof i)return"string"==typeof i&&s(r,i),{type:typeof i,value:i};if("number"==typeof i)return{type:"number",value:Number.isNaN(i)?"nan":i===1/0?"infinity":i===-1/0?"-infinity":Object.is(i,-0)?"-0":i};if("bigint"==typeof i){let t=i.toString();return s(r,t),{type:"bigint",value:t}}if("symbol"==typeof i){let t=Symbol.keyFor(i);if(void 0===t)throw TypeError("RSC server function symbols must be global");return s(r,t),{type:"symbol",value:t}}if("function"==typeof i)throw TypeError("RSC server function arguments cannot contain a client function");if("object"!=typeof i)throw TypeError(`Unsupported RSC server function value: ${typeof i}`);if(e.has(i))throw TypeError("RSC server function value is cyclic");e.add(i);try{if(i instanceof Date){if(Number.isNaN(i.getTime()))throw TypeError("RSC server function date is invalid");let t=i.toISOString();return s(r,t),{type:"date",value:t}}if(i instanceof ArrayBuffer)return u(r,i.byteLength),{type:"array-buffer",value:l(new Uint8Array(i))};if(ArrayBuffer.isView(i)){let t=function(t){if(t instanceof DataView)return"DataView";let e=t.constructor.name;return["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"].includes(e)?e:void 0}(i);if(!t)throw TypeError("Unsupported RSC typed array");return u(r,i.byteLength),{type:"typed-array",value:{name:t,bytes:l(new Uint8Array(i.buffer,i.byteOffset,i.byteLength))}}}if(i instanceof Map)return{type:"map",value:await Promise.all([...i].map(async([t,i])=>[await y(t,e,r,n+1),await y(i,e,r,n+1)]))};if(i instanceof Set)return{type:"set",value:await Promise.all([...i].map(t=>y(t,e,r,n+1)))};if("u">typeof FormData&&i instanceof FormData){let t=[];for(let[o,a]of i.entries())s(r,o),t.push([o,await y(a,e,r,n+1)]);return{type:"form-data",value:t}}if("u">typeof Blob&&i instanceof Blob){u(r,i.size);let t="u">typeof File&&i instanceof File;return s(r,i.type),t&&s(r,i.name),{type:t?"file":"blob",value:{bytes:l(new Uint8Array(await i.arrayBuffer())),mime:i.type,...t?{name:i.name,lastModified:i.lastModified}:{}}}}if(Array.isArray(i))return{type:"array",value:await Promise.all(i.map(t=>y(t,e,r,n+1)))};if(Object.getPrototypeOf(i)!==Object.prototype)throw TypeError("RSC server function values must be a plain object or supported built-in");let t=await Promise.all(Object.entries(i).map(async([t,i])=>[t,(s(r,t),await y(i,e,r,n+1))]));return{type:"object",value:Object.fromEntries(t)}}finally{e.delete(i)}}function c(t,e){if(!Array.isArray(t))throw TypeError(`${e} must be an array`);return t}function g(t,e){if(null===t||"object"!=typeof t||Array.isArray(t))throw TypeError(`${e} must be an object`);return t}async function d(t,e,r){f(e,r);let n=function(t){if(null===t||"object"!=typeof t||Array.isArray(t))throw TypeError("RSC server function wire value must be an object");if("string"!=typeof t.type||0===t.type.length)throw TypeError("RSC server function wire value must have a type");return t}(t);switch(n.type){case"null":return null;case"undefined":return;case"string":if("string"!=typeof n.value)throw TypeError("RSC wire string is invalid");return s(e,n.value),n.value;case"boolean":if("boolean"!=typeof n.value)throw TypeError("RSC wire boolean is invalid");return n.value;case"number":if("number"==typeof n.value)return n.value;if("nan"===n.value)return NaN;if("infinity"===n.value)return 1/0;if("-infinity"===n.value)return-1/0;if("-0"===n.value)return -0;throw TypeError("RSC wire number is invalid");case"bigint":if("string"!=typeof n.value||!/^-?\d+$/.test(n.value))throw TypeError("RSC wire bigint is invalid");return s(e,n.value),BigInt(n.value);case"symbol":if("string"!=typeof n.value)throw TypeError("RSC wire symbol is invalid");return s(e,n.value),Symbol.for(n.value);case"date":{if("string"!=typeof n.value)throw TypeError("RSC wire date is invalid");s(e,n.value);let t=new Date(n.value);if(Number.isNaN(t.getTime())||t.toISOString()!==n.value)throw TypeError("RSC wire date is invalid");return t}case"array-buffer":{let t=h(n.value);return u(e,t.byteLength),p(t)}case"typed-array":return function(t,e){let r=g(t,"RSC typed array metadata");if("string"!=typeof r.name)throw TypeError("RSC typed array name is invalid");let n=h(r.bytes);u(e,n.byteLength);let i=p(n),o={DataView:t=>new DataView(t),Int8Array:t=>new Int8Array(t),Uint8Array:t=>new Uint8Array(t),Uint8ClampedArray:t=>new Uint8ClampedArray(t),Int16Array:t=>new Int16Array(t),Uint16Array:t=>new Uint16Array(t),Int32Array:t=>new Int32Array(t),Uint32Array:t=>new Uint32Array(t),Float32Array:t=>new Float32Array(t),Float64Array:t=>new Float64Array(t),BigInt64Array:t=>new BigInt64Array(t),BigUint64Array:t=>new BigUint64Array(t)}[r.name];if(!o)throw TypeError(`Unsupported RSC wire typed array: ${r.name}`);try{return o(i)}catch{throw TypeError(`Invalid byte length for RSC wire typed array: ${r.name}`)}}(n.value,e);case"array":return Promise.all(c(n.value,"RSC wire array").map(t=>d(t,e,r+1)));case"map":{let t=c(n.value,"RSC wire map");return new Map(await Promise.all(t.map(async t=>{let n=c(t,"RSC wire map entry");if(2!==n.length)throw TypeError("RSC wire map entry must contain two values");return[await d(n[0],e,r+1),await d(n[1],e,r+1)]})))}case"set":return new Set(await Promise.all(c(n.value,"RSC wire set").map(t=>d(t,e,r+1))));case"object":{let t=g(n.value,"RSC wire object");return Object.fromEntries(await Promise.all(Object.entries(t).map(async([t,n])=>[t,(s(e,t),await d(n,e,r+1))])))}case"form-data":{let t=new FormData;for(let i of c(n.value,"RSC wire FormData")){let n=c(i,"RSC wire FormData entry");if(2!==n.length||"string"!=typeof n[0])throw TypeError("RSC wire FormData entry is invalid");s(e,n[0]);let o=await d(n[1],e,r+1);if("string"!=typeof o&&!(o instanceof Blob))throw TypeError("RSC wire FormData values must be strings or blobs");t.append(n[0],o)}return t}case"blob":case"file":{let t=g(n.value,`RSC wire ${n.type}`);if("string"!=typeof t.mime)throw TypeError(`RSC wire ${n.type} MIME type is invalid`);s(e,t.mime);let r=h(t.bytes);if(u(e,r.byteLength),"blob"===n.type)return new Blob([p(r)],{type:t.mime});if("string"!=typeof t.name||"number"!=typeof t.lastModified||!Number.isSafeInteger(t.lastModified))throw TypeError("RSC wire file metadata is invalid");return s(e,t.name),new File([p(r)],t.name,{type:t.mime,lastModified:t.lastModified})}default:throw TypeError(`Unsupported RSC server function wire type: ${n.type}`)}}let m={mountPath:"/_hile/rsc/server-functions",headers:{}};function w(t){m={mountPath:function(t){if(!t.startsWith("/"))throw TypeError("RSC Server Function mount path must be absolute");let e=t.replace(/\/+$/,"");if(!e)throw TypeError("RSC Server Function mount path must not be root");return e}(t.mountPath??"/_hile/rsc/server-functions"),headers:Object.freeze({...t.headers??{}})}}class v extends Error{constructor(t,e,r){super(r),this.status=t,this.code=e,this.name="RscServerFunctionClientError"}}async function b(t,e){let r,n=await fetch(m.mountPath,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",...m.headers},body:JSON.stringify({referenceId:t,args:await y(e,new WeakSet,a(void 0),0)})});try{let t=await n.json();if(null===t||"object"!=typeof t||Array.isArray(t))throw Error();r=t}catch{throw new v(n.status,"ERR_RSC_SERVER_FUNCTION_INVALID_RESPONSE","RSC Server Function response must be a JSON object")}if(!n.ok)throw new v(n.status,"string"==typeof r.code?r.code:"ERR_RSC_SERVER_FUNCTION_FAILED","string"==typeof r.message?r.message:`RSC Server Function failed: ${n.status}`);if(!Object.prototype.hasOwnProperty.call(r,"value"))throw new v(n.status,"ERR_RSC_SERVER_FUNCTION_INVALID_RESPONSE","RSC Server Function response is missing value");return d(r.value,a(void 0),0)}function E(t,e){if("string"!=typeof t||!t)throw TypeError("RSC Server Function reference id must not be empty");if("string"!=typeof e||!e)throw TypeError("RSC Server Function export name must not be empty");if(!n)throw Error("Hile RSC Host did not install a framework Server Reference factory");return n(t,b,e)}function R(t){n=t,globalThis.__HILE_RSC_CREATE_SERVER_REFERENCE__=E}},93713:(t,e,r)=>{"use strict";r.d(e,{H:()=>o,e:()=>a});let n=Symbol.for("@hile/rsc/client/navigation/runtime");function i(){let t=globalThis;return t[n]??={installations:[]}}function o(){return i().installations.at(-1)?.navigation}function a(t){for(let e of["push","replace","refresh","prefetch"])if("function"!=typeof t[e])throw TypeError(`RSC navigation ${e} must be a function`);let e=i().installations,r={navigation:t,active:!0};return e.push(r),()=>{if(!r.active)return;r.active=!1;let t=e.indexOf(r);-1!==t&&e.splice(t,1)}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[875],{42701:(e,s,n)=>{Promise.resolve().then(n.bind(n,57165)),Promise.resolve().then(n.bind(n,781)),Promise.resolve().then(n.bind(n,65396)),Promise.resolve().then(n.bind(n,74370))}},e=>{e.O(0,[410,11,128,358],()=>e(e.s=42701)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{22214:(e,r,s)=>{"use strict";s.d(r,{default:()=>c});var n=s(49660),t=s(70874),i=s(93905),o=s(25840);function l(){return(0,n.jsx)("div",{"aria-hidden":"true","data-hile-rsc-initial-route":!0})}function c({assetMountPath:e,csrfToken:r,children:s}){return(0,n.jsx)(i.j,{serverFunctions:{headers:{"x-rsc-csrf-token":r}},children:(0,n.jsx)(t.jj,{assetMountPath:e,suspensePolicy:"host",renderError:(e,r,s)=>(0,n.jsxs)("section",{role:"alert","data-hile-rsc-error":r.referenceId,children:[(0,n.jsx)("p",{children:"插件组件暂时无法加载。"}),(0,n.jsx)("button",{type:"button",onClick:s,children:"重试"})]}),children:(0,n.jsx)(o.Suspense,{fallback:(0,n.jsx)(l,{}),children:s})})})}},27349:()=>{},77641:(e,r,s)=>{Promise.resolve().then(s.bind(s,84761)),Promise.resolve().then(s.t.bind(s,47334,23)),Promise.resolve().then(s.t.bind(s,78168,23)),Promise.resolve().then(s.bind(s,22214)),Promise.resolve().then(s.t.bind(s,27349,23))},78168:()=>{}},e=>{e.O(0,[967,488,507,410,192,11,128,358],()=>e(e.s=77641)),_N_E=e.O()}]);