From 1c2b1c5e41c7353d5fdf51c436a96ce6058fe062 Mon Sep 17 00:00:00 2001 From: Kam Date: Fri, 25 Sep 2026 19:52:24 +0000 Subject: [PATCH 1/2] chore: bump devframe and @devframes/agentic to 1.1.0 1.1.0 stops advertising an MCP `outputSchema` for an RPC function whose `returns` validator has no JSON Schema converter. Before it, devframe described such a return as a permissive object, and every `tools/call` on a tool that returns an array failed against the schema the server had published. describable() stays: it is no longer a workaround for array returns, which are correct either way now, but it still gives the tools that return an object an accurate schema instead of a permissive one. Its documentation says that, and the test that pinned the old fallback now pins the new contract, where an unconvertible schema is not advertised at all. Checked against the MCP server: tools/list shows an output schema only for build-meta, and calls to get-routes and build-meta both succeed. Closes #18 --- package.json | 4 +- packages/ng-devtools/package.json | 4 +- .../src/rpc/__tests__/agent-schema.test.ts | 5 +- packages/ng-devtools/src/rpc/agent-schema.ts | 12 +-- pnpm-lock.yaml | 76 +++++++++---------- 5 files changed, 51 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 20d38cf..bab803c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@angular/ssr": "^22.1.8", "@ngrx/signals": "^22.0.1", "@santoshyadavdev/ng-devtools": "workspace:*", - "devframe": "^1.0.0", + "devframe": "^1.1.0", "express": "^5.1.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", @@ -54,7 +54,7 @@ "@angular/build": "^22.1.8", "@angular/cli": "^22.1.8", "@angular/compiler-cli": "^22.1.0", - "@devframes/agentic": "^1.0.0", + "@devframes/agentic": "^1.1.0", "@devframes/vite": "^1.0.0", "@types/express": "^5.0.1", "@types/node": "^24.0.0", diff --git a/packages/ng-devtools/package.json b/packages/ng-devtools/package.json index 28c0236..28706d1 100644 --- a/packages/ng-devtools/package.json +++ b/packages/ng-devtools/package.json @@ -46,10 +46,10 @@ "mcp" ], "dependencies": { - "@devframes/agentic": "^1.0.0", + "@devframes/agentic": "^1.1.0", "@valibot/to-json-schema": "^1.8.0", "cac": "^7.0.0", - "devframe": "^1.0.0", + "devframe": "^1.1.0", "valibot": "^1.5.0" }, "devDependencies": { diff --git a/packages/ng-devtools/src/rpc/__tests__/agent-schema.test.ts b/packages/ng-devtools/src/rpc/__tests__/agent-schema.test.ts index 3e47ccc..4a38c64 100644 --- a/packages/ng-devtools/src/rpc/__tests__/agent-schema.test.ts +++ b/packages/ng-devtools/src/rpc/__tests__/agent-schema.test.ts @@ -34,8 +34,9 @@ describe('describable', () => { }; expect(returnToJsonSchema(describable(v.object({ ok: v.boolean() })))?.type).toBe('object'); expect(returnToJsonSchema(describable(v.array(v.string())))?.type).toBe('array'); - // Without the converter devframe cannot tell an array from an object. - expect(returnToJsonSchema(v.array(v.string()))).toMatchObject({ type: 'object' }); + // Since devframe 1.1.0 a schema it cannot convert is simply not + // advertised, rather than described as a permissive object. + expect(returnToJsonSchema(v.array(v.string()))).toBeUndefined(); }); it('converts for the draft devframe asks for', () => { diff --git a/packages/ng-devtools/src/rpc/agent-schema.ts b/packages/ng-devtools/src/rpc/agent-schema.ts index 30cfcf9..fa8e0cb 100644 --- a/packages/ng-devtools/src/rpc/agent-schema.ts +++ b/packages/ng-devtools/src/rpc/agent-schema.ts @@ -9,13 +9,13 @@ type Convertible = Parameters[0]; * * Devframe stays validator neutral: it describes an RPC `returns` schema with * the validator's own converter, and valibot does not ship one by default. - * Without it devframe falls back to a permissive object schema and advertises - * that as the MCP `outputSchema`, so a tool returning an array fails every - * `tools/call` against the schema the server itself published. + * Since devframe 1.1.0 a `returns` schema it cannot convert simply advertises + * no MCP `outputSchema`, so this is not a workaround for array returns any + * more; those are correct either way. * - * With the converter attached, an object return is described accurately, and - * an array return advertises no output schema at all, since MCP only allows an - * object there. Either way the response matches what was advertised. + * What it still buys is accuracy for the tools that return an object: with the + * converter attached they advertise their real shape rather than a permissive + * one, so a client can tell what a call will hand back. */ export function describable(schema: T): T { const described = { ...schema, ...toStandardJsonSchema(schema) } as T; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6a71ab2..a22aeb7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,8 +39,8 @@ importers: specifier: workspace:* version: link:packages/ng-devtools devframe: - specifier: ^1.0.0 - version: 1.0.0(@devframes/agentic@1.0.0)(cac@7.0.0)(srvx@1.0.5) + specifier: ^1.1.0 + version: 1.1.0(@devframes/agentic@1.1.0)(cac@7.0.0)(srvx@1.0.5) express: specifier: ^5.1.0 version: 5.2.1 @@ -70,11 +70,11 @@ importers: specifier: ^22.1.0 version: 22.1.7(@angular/compiler@22.1.7)(typescript@6.0.3) '@devframes/agentic': - specifier: ^1.0.0 - version: 1.0.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.0.0) + specifier: ^1.1.0 + version: 1.1.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.1.0) '@devframes/vite': specifier: ^1.0.0 - version: 1.0.0(devframe@1.0.0)(vite@8.3.0(@types/node@24.13.6)(esbuild@0.28.2)(sass@1.101.0)) + version: 1.0.0(devframe@1.1.0)(vite@8.3.0(@types/node@24.13.6)(esbuild@0.28.2)(sass@1.101.0)) '@types/express': specifier: ^5.0.1 version: 5.0.6 @@ -100,8 +100,8 @@ importers: packages/ng-devtools: dependencies: '@devframes/agentic': - specifier: ^1.0.0 - version: 1.0.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.0.0) + specifier: ^1.1.0 + version: 1.1.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.1.0) '@valibot/to-json-schema': specifier: ^1.8.0 version: 1.8.0(valibot@1.5.0(typescript@6.0.3)) @@ -109,8 +109,8 @@ importers: specifier: ^7.0.0 version: 7.0.0 devframe: - specifier: ^1.0.0 - version: 1.0.0(@devframes/agentic@1.0.0)(cac@7.0.0)(srvx@1.0.5) + specifier: ^1.1.0 + version: 1.1.0(@devframes/agentic@1.1.0)(cac@7.0.0)(srvx@1.0.5) valibot: specifier: ^1.5.0 version: 1.5.0(typescript@6.0.3) @@ -433,10 +433,10 @@ packages: resolution: {integrity: sha512-bPlN9S9O1A0euCpEWE4qnvB5YDuyYVsUTrxSgmAM1Is0j4tICHoVyOVAXfWMP/kS9ZrjvyIXWV2PmomiAXXqOw==} engines: {node: '>=20.19.0'} - '@devframes/agentic@1.0.0': - resolution: {integrity: sha512-NlMXWCd3mksT12Qt3hGfvYHbTTl2oAnvYl5HYLpmmW2XjHR3xgKQF9UBn627ZxukxoswN78DdrmzB7gN0M7G3Q==} + '@devframes/agentic@1.1.0': + resolution: {integrity: sha512-YLD+yCMiNuUnf1EslRWx0j+kwY8+ByX8RjKghC1ElqX/SrkMGw21K1u8+sd0REdX3uHy22nxL+X/tFaEjk0oLg==} peerDependencies: - devframe: 1.0.0 + devframe: 1.1.0 '@devframes/vite@1.0.0': resolution: {integrity: sha512-dyNd7z2xSS+7s3wU7HPkbkslsgaYLqEh0QQFY5bOYoiY/PkEGtuZybNQ+TjAxVPLDIsJX8S9uUTSVKPp8gEbew==} @@ -852,12 +852,12 @@ packages: cpu: [x64] os: [win32] - '@modelcontextprotocol/client@2.0.0': - resolution: {integrity: sha512-8f1OghQ2rjzIOfqgUCP+8GiUWqRs89njoWLNqAe8kWmDePv3s1fZXseej+QXemssEuuOvLLmLO/kqM3IQHtISw==} + '@modelcontextprotocol/client@2.1.0': + resolution: {integrity: sha512-mDVhoy5WjDb0U+4dQPzLcciC2erSex/GRVQqnoZdiuMoE3YiTZdiS7ezNcFwX4XEOWOaj7jZr0kLYnILnL8orA==} engines: {node: '>=20'} - '@modelcontextprotocol/core@2.0.0': - resolution: {integrity: sha512-pJCEwGG7Lfr/+PQp9ZTwKXNeO5wzbfKL7H3MYpCorM4oFBoQrdjnBgEoqG+RjhsvS1FKrDbKux+M1HhlnGWqcA==} + '@modelcontextprotocol/core@2.1.0': + resolution: {integrity: sha512-YdFj5gMRHr0gYNAhTbQDgjLHiEJdIAUYxomhKseUNye7ZGlISQmUoLh2sveFFCiQ7j2YMffT1kgSND0FSfIFjQ==} engines: {node: '>=20'} '@modelcontextprotocol/sdk@1.30.0': @@ -870,8 +870,8 @@ packages: '@cfworker/json-schema': optional: true - '@modelcontextprotocol/server@2.0.0': - resolution: {integrity: sha512-YhHWdHfpFMQfd0prsEnxKeS3Qz3ytIGmsS0sth4KDjnacIT7hxk6hXHkJ9KysxlkvTM+WZAtQbbcUhdoP4Hvtw==} + '@modelcontextprotocol/server@2.1.0': + resolution: {integrity: sha512-FdvwZU5N03O77Suh35JqjAqq5R1ZTEPFtwu6N4BgBq28qrQtrCnpbLL5U2pwYCuE194jAw0xnlOVmIqhfoYuUQ==} engines: {node: '>=20'} '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': @@ -2110,11 +2110,11 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} - devframe@1.0.0: - resolution: {integrity: sha512-u4eeDBJ8Cxd3n19o/cT6SQcoEgASzL9dL51IkYpIDriTNDmR7WBv+o+dufQmabir10KcozoRZqgwvDi/riASAQ==} + devframe@1.1.0: + resolution: {integrity: sha512-pvp42kOkiEr32Msqngb3mW9AQFHwOxNMn8MYNO/TBkJhyeykbDUWHwiZVubRYnasmZeqT4MLYGF9AHjHIkmDnA==} hasBin: true peerDependencies: - '@devframes/agentic': 1.0.0 + '@devframes/agentic': 1.1.0 cac: ^7.0.0 peerDependenciesMeta: '@devframes/agentic': @@ -2627,8 +2627,8 @@ packages: resolution: {integrity: sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==} engines: {node: '>=18'} - nostics@1.2.0: - resolution: {integrity: sha512-FGqEfhQjrvo1lL8KFifdTQiNwwQHJxC1jtYE1Rc54qF/jxONUNL+kC9gS1krX8Q65PgrQ5fCqH/I4NhWBvdSqg==} + nostics@1.3.0: + resolution: {integrity: sha512-wzRsrJwNlFbqIRQt8aCeL2WE8USip/uuvGSOZV1D02CxX8ABTMbw8IywKjH7yWHETMXbWJI4OBpihg9rmz2Vyg==} npm-package-arg@14.0.0: resolution: {integrity: sha512-69XQh3k+dtGa1p+7RaR57IuG3rCko96xr/nUfN4yDYBXbTYICiWcOpsFKLN2GtGE9cyIljE+f1exnaYt9MvM+Q==} @@ -3648,20 +3648,20 @@ snapshots: '@csstools/css-tokenizer@4.0.1': {} - '@devframes/agentic@1.0.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.0.0)': + '@devframes/agentic@1.1.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.1.0)': dependencies: - '@modelcontextprotocol/client': 2.0.0 - '@modelcontextprotocol/server': 2.0.0 - devframe: 1.0.0(@devframes/agentic@1.0.0)(cac@7.0.0)(srvx@1.0.5) + '@modelcontextprotocol/client': 2.1.0 + '@modelcontextprotocol/server': 2.1.0 + devframe: 1.1.0(@devframes/agentic@1.1.0)(cac@7.0.0)(srvx@1.0.5) h3: 2.0.1-rc.32(crossws@0.4.12(srvx@1.0.5)) pathe: 2.0.3 transitivePeerDependencies: - crossws - ocache - '@devframes/vite@1.0.0(devframe@1.0.0)(vite@8.3.0(@types/node@24.13.6)(esbuild@0.28.2)(sass@1.101.0))': + '@devframes/vite@1.0.0(devframe@1.1.0)(vite@8.3.0(@types/node@24.13.6)(esbuild@0.28.2)(sass@1.101.0))': dependencies: - devframe: 1.0.0(@devframes/agentic@1.0.0)(cac@7.0.0)(srvx@1.0.5) + devframe: 1.1.0(@devframes/agentic@1.1.0)(cac@7.0.0)(srvx@1.0.5) pathe: 2.0.3 optionalDependencies: vite: 8.3.0(@types/node@24.13.6)(esbuild@0.28.2)(sass@1.101.0) @@ -3966,9 +3966,9 @@ snapshots: '@lmdb/lmdb-win32-x64@3.5.6': optional: true - '@modelcontextprotocol/client@2.0.0': + '@modelcontextprotocol/client@2.1.0': dependencies: - '@modelcontextprotocol/core': 2.0.0 + '@modelcontextprotocol/core': 2.1.0 cross-spawn: 7.0.6 eventsource: 3.0.7 eventsource-parser: 3.1.1 @@ -3976,7 +3976,7 @@ snapshots: pkce-challenge: 5.0.1 zod: 4.6.5 - '@modelcontextprotocol/core@2.0.0': + '@modelcontextprotocol/core@2.1.0': dependencies: zod: 4.6.5 @@ -4002,9 +4002,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@modelcontextprotocol/server@2.0.0': + '@modelcontextprotocol/server@2.1.0': dependencies: - '@modelcontextprotocol/core': 2.0.0 + '@modelcontextprotocol/core': 2.1.0 zod: 4.6.5 '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': @@ -4845,14 +4845,14 @@ snapshots: detect-libc@2.1.2: {} - devframe@1.0.0(@devframes/agentic@1.0.0)(cac@7.0.0)(srvx@1.0.5): + devframe@1.1.0(@devframes/agentic@1.1.0)(cac@7.0.0)(srvx@1.0.5): dependencies: crossws: 0.4.12(srvx@1.0.5) h3: 2.0.1-rc.32(crossws@0.4.12(srvx@1.0.5)) - nostics: 1.2.0 + nostics: 1.3.0 pathe: 2.0.3 optionalDependencies: - '@devframes/agentic': 1.0.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.0.0) + '@devframes/agentic': 1.1.0(crossws@0.4.12(srvx@1.0.5))(devframe@1.1.0) cac: 7.0.0 transitivePeerDependencies: - ocache @@ -5371,7 +5371,7 @@ snapshots: node-releases@2.0.56: {} - nostics@1.2.0: {} + nostics@1.3.0: {} npm-package-arg@14.0.0: dependencies: From e382295b09125c81e9750e1bf3166474ab2ef874 Mon Sep 17 00:00:00 2001 From: Kam Date: Fri, 25 Sep 2026 23:30:00 +0300 Subject: [PATCH 2/2] chore: rebuild extension UI for devframe 1.1.0 --- ...h1z-CIejKvBJ.js => browser-agent-rpc-BXhoSh1z-Drr9EpwB.js} | 2 +- extension/ui/assets/{index-BhFbvoaj.js => index-ruy7p20M.js} | 4 ++-- extension/ui/index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename extension/ui/assets/{browser-agent-rpc-BXhoSh1z-CIejKvBJ.js => browser-agent-rpc-BXhoSh1z-Drr9EpwB.js} (93%) rename extension/ui/assets/{index-BhFbvoaj.js => index-ruy7p20M.js} (99%) diff --git a/extension/ui/assets/browser-agent-rpc-BXhoSh1z-CIejKvBJ.js b/extension/ui/assets/browser-agent-rpc-BXhoSh1z-Drr9EpwB.js similarity index 93% rename from extension/ui/assets/browser-agent-rpc-BXhoSh1z-CIejKvBJ.js rename to extension/ui/assets/browser-agent-rpc-BXhoSh1z-Drr9EpwB.js index 189f7ce..1ac902e 100644 --- a/extension/ui/assets/browser-agent-rpc-BXhoSh1z-CIejKvBJ.js +++ b/extension/ui/assets/browser-agent-rpc-BXhoSh1z-Drr9EpwB.js @@ -1 +1 @@ -import{t as e}from"./index-BhFbvoaj.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge}; \ No newline at end of file +import{t as e}from"./index-ruy7p20M.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge}; \ No newline at end of file diff --git a/extension/ui/assets/index-BhFbvoaj.js b/extension/ui/assets/index-ruy7p20M.js similarity index 99% rename from extension/ui/assets/index-BhFbvoaj.js rename to extension/ui/assets/index-ruy7p20M.js index dfd2e39..6c926b6 100644 --- a/extension/ui/assets/index-BhFbvoaj.js +++ b/extension/ui/assets/index-ruy7p20M.js @@ -3,9 +3,9 @@ \r \v ᠎ - \u2028\u2029   `;`${qt}`,`${qt}`;var Jt=(function(e){return e[e.Character=0]=`Character`,e[e.Identifier=1]=`Identifier`,e[e.PrivateIdentifier=2]=`PrivateIdentifier`,e[e.Keyword=3]=`Keyword`,e[e.String=4]=`String`,e[e.Operator=5]=`Operator`,e[e.Number=6]=`Number`,e[e.RegExpBody=7]=`RegExpBody`,e[e.RegExpFlags=8]=`RegExpFlags`,e[e.Error=9]=`Error`,e})(Jt||{}),Yt=(function(e){return e[e.Plain=0]=`Plain`,e[e.TemplateLiteralPart=1]=`TemplateLiteralPart`,e[e.TemplateLiteralEnd=2]=`TemplateLiteralEnd`,e})(Yt||{});Jt.Character,A.StyleMap,A.ClassMap,A.StyleProp,A.ClassProp,A.Attribute,A.Property,A.Attribute,A.Control,A.DomProperty,A.DomProperty,A.Attribute,A.StyleMap,A.ClassMap,A.StyleProp,A.ClassProp,A.Listener,A.TwoWayListener,A.AnimationListener,A.StyleMap,A.ClassMap,A.StyleProp,A.ClassProp,A.Property,A.TwoWayProperty,A.DomProperty,A.Attribute,A.Animation,A.Control,Ht.Idle,k.deferOnIdle,k.deferPrefetchOnIdle,k.deferHydrateOnIdle,Ht.Immediate,k.deferOnImmediate,k.deferPrefetchOnImmediate,k.deferHydrateOnImmediate,Ht.Timer,k.deferOnTimer,k.deferPrefetchOnTimer,k.deferHydrateOnTimer,Ht.Hover,k.deferOnHover,k.deferPrefetchOnHover,k.deferHydrateOnHover,Ht.Interaction,k.deferOnInteraction,k.deferPrefetchOnInteraction,k.deferHydrateOnInteraction,Ht.Viewport,k.deferOnViewport,k.deferPrefetchOnViewport,k.deferHydrateOnViewport,Ht.Never,k.deferHydrateNever,k.deferHydrateNever,k.deferHydrateNever,k.pipeBind1,k.pipeBind2,k.pipeBind3,k.pipeBind4,k.textInterpolate,k.textInterpolate1,k.textInterpolate2,k.textInterpolate3,k.textInterpolate4,k.textInterpolate5,k.textInterpolate6,k.textInterpolate7,k.textInterpolate8,k.textInterpolateV,k.interpolate,k.interpolate1,k.interpolate2,k.interpolate3,k.interpolate4,k.interpolate5,k.interpolate6,k.interpolate7,k.interpolate8,k.interpolateV,k.pureFunction0,k.pureFunction1,k.pureFunction2,k.pureFunction3,k.pureFunction4,k.pureFunction5,k.pureFunction6,k.pureFunction7,k.pureFunction8,k.pureFunctionV,k.resolveWindow,k.resolveDocument,k.resolveBody,Ye.HTML,k.sanitizeHtml,Ye.RESOURCE_URL,k.sanitizeResourceUrl,Ye.SCRIPT,k.sanitizeScript,Ye.STYLE,k.sanitizeStyle,Ye.URL,k.sanitizeUrl,Ye.ATTRIBUTE_NO_BINDING,k.validateAttribute,Ye.HTML,k.trustConstantHtml,Ye.RESOURCE_URL,k.trustConstantResourceUrl;var Xt=(function(e){return e[e.None=0]=`None`,e[e.ViewContextRead=1]=`ViewContextRead`,e[e.ViewContextWrite=2]=`ViewContextWrite`,e[e.SideEffectful=4]=`SideEffectful`,e})(Xt||{});j.Tmpl,j.Tmpl,j.Both,j.Host,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Both,j.Both,j.Tmpl,j.Both,j.Both,j.Tmpl,j.Both,j.Tmpl,j.Both,j.Both,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Both,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Both,j.Both,j.Tmpl,j.Tmpl,j.Both,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Both,j.Tmpl,j.Both,j.Both,j.Both,j.Both,j.Both,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Tmpl,j.Both,j.Tmpl,j.Both,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Tmpl,j.Both,j.Both,j.Both,Et.Property,Lt.Property,Et.TwoWay,Lt.TwoWayProperty,Et.Attribute,Lt.Attribute,Et.Class,Lt.ClassName,Et.Style,Lt.StyleProperty,Et.LegacyAnimation,Lt.LegacyAnimation,Et.Animation,Lt.Animation;var Zt=`%COMP%`;`${Zt}`,`${Zt}`,class e{static SINGLETON=new e;static veWillInferAnyFor(t){let n=e.SINGLETON;return t instanceof Tt?t.visit(n):t.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(e=>e.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,t){return!1}};var Qt=null,$t=!1,en=1,tn=null,nn=Symbol(`SIGNAL`);function M(e){let t=Qt;return Qt=e,t}function rn(){return Qt}var an={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:`unknown`,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function on(e){if($t)throw Error(``);if(Qt===null)return;Qt.consumerOnSignalRead(e);let t=Qt.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Qt.recomputing;if(r&&(n=t===void 0?Qt.producers:t.nextProducer,n!==void 0&&n.producer===e)){Qt.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=en;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===Qt&&(!r||i.knownValidAtEpoch===en))return;let a=xn(Qt),o={producer:e,consumer:Qt,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:en,lastReadVersion:e.version,nextConsumer:void 0};Qt.producersTail=o,t===void 0?Qt.producers=o:t.nextProducer=o,a&&yn(e,o)}function sn(){en++}function cn(e){if((!xn(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==en)){if(!e.producerMustRecompute(e)&&!_n(e)){fn(e);return}e.producerRecomputeValue(e),fn(e)}}function ln(e){if(e.consumers===void 0)return;let t=$t;$t=!0;try{for(let t=e.consumers;t!==void 0;t=t.nextConsumer){let e=t.consumer;e.dirty||dn(e)}}finally{$t=t}}function un(){return Qt?.consumerAllowSignalWrites!==!1}function dn(e){e.dirty=!0,ln(e),e.consumerMarkedDirty?.(e)}function fn(e){e.dirty=!1,e.lastCleanEpoch=en}function pn(e){return e&&mn(e),M(e)}function mn(e){if(e.producersTail?.knownValidAtEpoch===en){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function hn(e,t){M(t),e&&gn(e)}function gn(e){e.recomputing=!1;let t=e.producersTail,n=t===void 0?e.producers:t.nextProducer;if(n!==void 0){if(xn(e))do n=bn(n);while(n!==void 0);t===void 0?e.producers=void 0:t.nextProducer=void 0}}function _n(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let e=t.producer,n=t.lastReadVersion;if(n!==e.version||(cn(e),n!==e.version))return!0}return!1}function vn(e){if(xn(e)){let t=e.producers;for(;t!==void 0;)t=bn(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function yn(e,t){let n=e.consumersTail,r=xn(e);if(n===void 0?(t.nextConsumer=void 0,e.consumers=t):(t.nextConsumer=n.nextConsumer,n.nextConsumer=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let t=e.producers;t!==void 0;t=t.nextProducer)yn(t.producer,t)}function bn(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r===void 0?t.consumersTail=i:r.prevConsumer=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!xn(t)){let e=t.producers;for(;e!==void 0;)e=bn(e)}return n}function xn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Sn(e){tn?.(e)}function Cn(e,t){return Object.is(e,t)}function wn(e,t){let n=Object.create(On);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(cn(n),on(n),n.value===Dn)throw n.error;return n.value};return r[nn]=n,Sn(n),r}var Tn=Symbol(`UNSET`),En=Symbol(`COMPUTING`),Dn=Symbol(`ERRORED`),On={...an,value:Tn,dirty:!0,error:null,equal:Cn,kind:`computed`,producerMustRecompute(e){return e.value===Tn||e.value===En},producerRecomputeValue(e){if(e.value===En)throw Error(``);let t=e.value;e.value=En;let n=pn(e),r,i=!1;try{r=e.computation(),M(null),i=t!==Tn&&t!==Dn&&r!==Dn&&e.equal(t,r)}catch(t){r=Dn,e.error=t}finally{hn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}};function kn(){throw Error()}var An=kn;function jn(e){An(e)}function Mn(e){An=e}var Nn=null;function Pn(e,t){let n=Object.create(Rn);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Fn(n);return r[nn]=n,Sn(n),[r,e=>In(n,e),e=>Ln(n,e)]}function Fn(e){return on(e),e.value}function In(e,t){un()||jn(e),e.equal(e.value,t)||(e.value=t,zn(e))}function Ln(e,t){un()||jn(e),In(e,t(e.value))}var Rn={...an,equal:Cn,value:void 0,kind:`signal`};function zn(e){e.version++,sn(),ln(e),Nn?.(e)}var Bn={...an,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:`effect`};function Vn(e){if(e.dirty=!1,e.version>0&&!_n(e))return;e.version++;let t=pn(e);try{e.cleanup(),e.fn()}finally{hn(e,t)}}var Hn=void 0;function Un(){return Hn}function Wn(e){let t=Hn;return Hn=e,t}var Gn=Symbol(`NotFound`);function Kn(e){return e===Gn||e?.name===`ɵNotFound`}var qn=function(e,t){return qn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},qn(e,t)};function Jn(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);qn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Yn(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Xn(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Zn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?rr:(this.currentObservers=null,a.push(e),new nr(function(){t.currentObservers=null,tr(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new kr;return e.source=this,e},t.create=function(e,t){return new zr(e,t)},t}(kr),zr=function(e){Jn(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??rr},t}(Rr),Br=function(e){Jn(t,e);function t(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Rr);function Vr(e,t){return Pr(function(n,r){var i=0;n.subscribe(Fr(r,function(n){r.next(e.call(t,n,i++))}))})}var Hr=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`,N=class extends Error{code;constructor(e,t){super(Wr(e,t)),this.code=e}};function Ur(e){return`NG0${Math.abs(e)}`}function Wr(e,t){return`${Ur(e)}${t?`: `+t:``}`}function P(e){for(let t in e)if(e[t]===P)return t;throw Error(``)}function Gr(e){if(typeof e==`string`)return e;if(Array.isArray(e))return`[${e.map(Gr).join(`, `)}]`;if(e==null)return``+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return``+n;let r=n.indexOf(` -`);return r>=0?n.slice(0,r):n}function Kr(e,t){return e?t?`${e} ${t}`:e:t||``}var qr=P({__forward_ref__:P});function Jr(e){return e.__forward_ref__=Jr,e}function Yr(e){return Xr(e)?e():e}function Xr(e){return typeof e==`function`&&Object.hasOwn(e,qr)&&e.__forward_ref__===Jr}function Zr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qr(e){return $r(e,ni)}function $r(e,t){return Object.hasOwn(e,t)&&e[t]||null}function ei(e){return(e?.[ni]??null)||null}function ti(e){return e&&Object.hasOwn(e,ri)?e[ri]:null}var ni=P({ɵprov:P}),ri=P({ɵinj:P}),F=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(e,t){this._desc=e,this.ɵprov=void 0,typeof t==`number`?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.ɵprov=Zr({token:this,providedIn:t.providedIn||`root`,factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ii(e){return e&&!!e.ɵproviders}var ai=P({ɵcmp:P}),oi=P({ɵdir:P}),si=P({ɵpipe:P}),ci=P({ɵfac:P}),li=P({__NG_ELEMENT_ID__:P}),ui=P({__NG_ENV_ID__:P});function di(e){return mi(e,`@Component`),e[ai]||null}function fi(e){return mi(e,`@Directive`),e[oi]||null}function pi(e){return mi(e,`@Pipe`),e[si]||null}function mi(e,t){if(e==null)throw new N(-919,!1)}function hi(e){return typeof e==`string`?e:e==null?``:String(e)}var gi=P({ngErrorCode:P}),_i=P({ngErrorMessage:P}),vi=P({ngTokenPath:P});function yi(e,t){return xi(``,-200,t)}function bi(e,t){throw new N(-201,!1)}function xi(e,t,n){let r=new N(t,e);return r[gi]=t,r[_i]=e,n&&(r[vi]=n),r}function Si(e){return e[gi]}var Ci;function wi(){return Ci}function Ti(e){let t=Ci;return Ci=e,t}function Ei(e,t,n){let r=Qr(e);if(r&&r.providedIn==`root`)return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;bi(e,``)}var Di={},Oi=`__NG_DI_FLAG__`,ki=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=ji(t)||0;try{return this.injector.get(e,n&8?null:Di,n)}catch(e){if(Kn(e))return e;throw e}}};function Ai(e,t=0){let n=Un();if(n===void 0)throw new N(-203,!1);if(n===null)return Ei(e,void 0,t);{let r=Mi(t),i=n.retrieve(e,r);if(Kn(i)){if(r.optional)return null;throw i}return i}}function I(e,t=0){return(wi()||Ai)(Yr(e),t)}function L(e,t){return I(e,ji(t))}function ji(e){return e===void 0||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Mi(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ni(e){let t=[];for(let n=0;nArray.isArray(e)?Ii(e,t):t(e))}function Li(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ri(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zi(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function Bi(e,t,n){let r=Hi(e,t);return r>=0?e[r|1]=n:(r=~r,zi(e,r,t,n)),r}function Vi(e,t){let n=Hi(e,t);if(n>=0)return e[n|1]}function Hi(e,t){return Ui(e,t,1)}function Ui(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let a=r+(i-r>>1),o=e[a<t?i=a:r=a+1}return~(i<{n.push(e)};return Ii(t,e=>{let t=e;$i(t,a,[],r)&&(i||=[],i.push(t))}),i!==void 0&&Qi(i,a),n}function Qi(e,t){for(let n=0;n{t(e,r)})}}function $i(e,t,n,r){if(e=Yr(e),!e)return!1;let i=null,a=ti(e),o=!a&&di(e);if(!a&&!o){let t=e.ngModule;if(a=ti(t),a)i=t;else return!1}else if(o&&!o.standalone)return!1;else i=e;let s=r.has(i);if(o){if(s)return!1;if(r.add(i),o.dependencies){let e=typeof o.dependencies==`function`?o.dependencies():o.dependencies;for(let i of e)$i(i,t,n,r)}}else if(a){if(a.imports!=null&&!s){r.add(i);let e;try{Ii(a.imports,i=>{$i(i,t,n,r)&&(e||=[],e.push(i))})}finally{}e!==void 0&&Qi(e,t)}if(!s){let e=Fi(i)||(()=>new i);t({provide:i,useFactory:e,deps:Gi},i),t({provide:Ji,useValue:i,multi:!0},i),t({provide:Ki,useValue:()=>I(i),multi:!0},i)}let o=a.providers;if(o!=null&&!s){let n=e;ea(o,e=>{t(e,n)})}}else return!1;return i!==e&&e.providers!==void 0}function ea(e,t){for(let n of e)ii(n)&&(n=n.ɵproviders),Array.isArray(n)?ea(n,t):t(n)}var ta=P({provide:String,useValue:P});function na(e){return typeof e==`object`&&!!e&&ta in e}function ra(e){return!!(e&&e.useExisting)}function ia(e){return!!(e&&e.useFactory)}function aa(e){return typeof e==`function`}var oa=new F(``),sa={},ca={},la=void 0;function ua(){return la===void 0&&(la=new Yi),la}var da=class{},fa=class extends da{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Sa(e,e=>this.processProvider(e)),this.records.set(qi,va(void 0,this)),r.has(`environment`)&&this.records.set(da,va(void 0,this));let i=this.records.get(oa);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ji,Gi,{self:!0}))}retrieve(e,t){let n=ji(t)||0;try{return this.get(e,Di,n)}catch(e){if(Kn(e))return e;throw e}}destroy(){_a(this),this._destroyed=!0;let e=M(null);try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(e)}}onDestroy(e){return _a(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){_a(this);let t=Wn(this),n=Ti(void 0);try{return e()}finally{Wn(t),Ti(n)}}get(e,t=Di,n){if(_a(this),Object.hasOwn(e,ui))return e[ui](this);let r=ji(n),i=Wn(this),a=Ti(void 0);try{if(!(r&4)){let t=this.records.get(e);if(t===void 0){let n=xa(e)&&Qr(e);t=n&&this.injectableDefInScope(n)?va(pa(e),sa):null,this.records.set(e,t)}if(t!=null)return this.hydrate(e,t,r)}let n=r&2?ua():this.parent;return t=r&8&&t===Di?null:t,n.get(e,t)}catch(e){let t=Si(e);throw t===-200||t===-201?new N(t,null):e}finally{Ti(a),Wn(i)}}resolveInjectorInitializers(){let e=M(null),t=Wn(this),n=Ti(void 0);try{let e=this.get(Ki,Gi,{self:!0});for(let t of e)t()}finally{Wn(t),Ti(n),M(e)}}toString(){return`R3Injector[...]`}processProvider(e){e=Yr(e);let t=aa(e)?e:Yr(e&&e.provide),n=ha(e);if(!aa(e)&&e.multi===!0){let n=this.records.get(t);n||(n=va(void 0,sa,!0),n.factory=()=>Ni(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=M(null);try{if(t.value===ca)throw yi(``);return t.value===sa&&(t.value=ca,t.value=t.factory(void 0,n)),typeof t.value==`object`&&t.value&&ba(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{M(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=Yr(e.providedIn);return typeof t==`string`?t===`any`||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function pa(e){let t=Qr(e),n=t===null?Fi(e):t.factory;if(n!==null)return n;if(e instanceof F)throw new N(-204,!1);if(e instanceof Function)return ma(e);throw new N(-204,!1)}function ma(e){if(e.length>0)throw new N(-204,!1);let t=ei(e);return t===null?()=>new e:()=>t.factory(e)}function ha(e){return na(e)?va(void 0,e.useValue):va(ga(e),sa)}function ga(e,t,n){let r;if(aa(e)){let t=Yr(e);return Fi(t)||pa(t)}if(na(e))r=()=>Yr(e.useValue);else if(ia(e))r=()=>e.useFactory(...Ni(e.deps||[]));else if(ra(e))r=(t,n)=>I(Yr(e.useExisting),n!==void 0&&n&8?8:void 0);else{let t=Yr(e&&(e.useClass||e.provide));if(ya(e))r=()=>new t(...Ni(e.deps));else return Fi(t)||pa(t)}return r}function _a(e){if(e.destroyed)throw new N(-205,!1)}function va(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ya(e){return!!e.deps}function ba(e){return typeof e==`object`&&!!e&&typeof e.ngOnDestroy==`function`}function xa(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Sa(e,t){for(let n of e)Array.isArray(n)?Sa(n,t):n&&ii(n)?Sa(n.ɵproviders,t):t(n)}function Ca(e,t){let n;e instanceof fa?(_a(e),n=e):n=new ki(e);let r=Wn(n),i=Ti(void 0);try{return t()}finally{Wn(r),Ti(i)}}function wa(){return wi()!==void 0||Un()!=null}var Ta=1;function Ea(e){return Array.isArray(e)&&typeof e[Ta]==`object`}function Da(e){return Array.isArray(e)&&e[Ta]===!0}function Oa(e){return!!(e.flags&4)}function ka(e){return e.componentOffset>-1}function Aa(e){return(e.flags&1)==1}function ja(e){return!!e.template}function Ma(e){return!!(e[2]&512)}function Na(e){return(e[2]&256)==256}var Pa=`math`;function Fa(e){for(;Array.isArray(e);)e=e[0];return e}function Ia(e,t){return Fa(t[e])}function La(e,t){return Fa(t[e.index])}function Ra(e,t){return e.data[t]}function za(e,t){return e[t]}function Ba(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Va(e,t){let n=t[e];return Ea(n)?n:n[0]}function Ha(e){return(e[2]&128)==128}function Ua(e,t){return t==null?null:e[t]}function Wa(e){e[17]=0}function Ga(e){e[2]&1024||(e[2]|=1024,Ha(e)&&Ya(e))}function Ka(e,t){for(;e>0;)t=t[14],e--;return t}function qa(e){return!!(e[2]&9216||e[24]?.dirty)}function Ja(e){e[10].changeDetectionScheduler?.notify(8),e[2]&64&&(e[2]|=1024),qa(e)&&Ya(e)}function Ya(e){e[10].changeDetectionScheduler?.notify(0);let t=Qa(e);for(;t!==null&&!(t[2]&8192||(t[2]|=8192,!Ha(t)));)t=Qa(t)}function Xa(e,t){if(Na(e))throw new N(911,!1);e[21]===null&&(e[21]=[]),e[21].push(t)}function Za(e,t){if(e[21]===null)return;let n=e[21].indexOf(t);n!==-1&&e[21].splice(n,1)}function Qa(e){let t=e[3];return Da(t)?t[3]:t}function $a(e){return e[7]??=[]}function eo(e){return e.cleanup??=[]}var R={lFrame:Io(null),bindingsEnabled:!0,skipHydrationRootTNode:null},to=!1;function no(){return R.lFrame.elementDepthCount}function ro(){R.lFrame.elementDepthCount++}function io(){R.lFrame.elementDepthCount--}function ao(){return R.bindingsEnabled}function oo(){return R.skipHydrationRootTNode!==null}function so(e){return R.skipHydrationRootTNode===e}function co(){R.skipHydrationRootTNode=null}function z(){return R.lFrame.lView}function lo(){return R.lFrame.tView}function uo(e){return R.lFrame.contextLView=e,e[8]}function fo(e){return R.lFrame.contextLView=null,e}function po(){let e=mo();for(;e!==null&&e.type===64;)e=e.parent;return e}function mo(){return R.lFrame.currentTNode}function ho(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function go(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function _o(){return R.lFrame.isParent}function vo(){R.lFrame.isParent=!1}function yo(){return to}function bo(e){let t=to;return to=e,t}function xo(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function So(){return R.lFrame.bindingIndex}function Co(e){return R.lFrame.bindingIndex=e}function wo(){return R.lFrame.bindingIndex++}function To(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex+=e,n}function Eo(){return R.lFrame.inI18n}function Do(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ko(t)}function Oo(){return R.lFrame.currentDirectiveIndex}function ko(e){R.lFrame.currentDirectiveIndex=e}function Ao(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jo(e){R.lFrame.currentQueryIndex=e}function Mo(e){let t=e[1];return t.type===2?t.declTNode:t.type===1?e[5]:null}function No(e,t,n){if(n&4){let r=t,i=e;for(;r=r.parent,r===null&&!(n&1)&&(r=Mo(i),!(r===null||(i=i[14],r.type&10))););if(r===null)return!1;t=r,e=i}let r=R.lFrame=Fo();return r.currentTNode=t,r.lView=e,!0}function Po(e){let t=Fo(),n=e[1];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fo(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Io(e):t}function Io(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Lo(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ro=Lo;function zo(){let e=Lo();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bo(e){return(R.lFrame.contextLView=Ka(e,R.lFrame.contextLView))[8]}function Vo(){return R.lFrame.selectedIndex}function Ho(e){R.lFrame.selectedIndex=e}function Uo(){let e=R.lFrame;return Ra(e.tView,e.selectedIndex)}function Wo(){R.lFrame.currentNamespace=`svg`}function Go(){Ko()}function Ko(){R.lFrame.currentNamespace=null}function qo(){return R.lFrame.currentNamespace}var Jo=!0;function Yo(){return Jo}function Xo(e){Jo=e}function Zo(e,t=null,n=null,r){let i=Qo(e,t,n,r);return i.resolveInjectorInitializers(),i}function Qo(e,t=null,n=null,r,i=new Set){return new fa([n||Gi,Xi(e)],t||ua(),null,i)}var $o=class e{static THROW_IF_NOT_FOUND=Di;static NULL=new Yi;static create(e,t){if(Array.isArray(e))return Zo({name:``},t,e,``);{let t=e.name??``;return Zo({name:t},e.parent,e.providers,t)}}static ɵprov=Zr({token:e,providedIn:`any`,factory:()=>I(qi)});static __NG_ELEMENT_ID__=-1},es=new F(``),ts=class{static __NG_ELEMENT_ID__=rs;static __NG_ENV_ID__=e=>e},ns=class extends ts{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Na(this._lView)}onDestroy(e){let t=this._lView;return Xa(t,e),()=>Za(t,e)}};function rs(){return new ns(z())}var is=new F(``),as=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Br(!1);debugTaskTracker=L(is,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new kr(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),os=class extends Rr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,wa()&&(this.destroyRef=L(ts,{optional:!0})??void 0,this.pendingTasks=L(as,{optional:!0})??void 0)}emit(e){let t=M(null);try{super.next(e)}finally{M(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),a=n;if(e&&typeof e==`object`){let t=e;r=t.next?.bind(t),i=t.error?.bind(t),a=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&=this.wrapInTimeout(r),a&&=this.wrapInTimeout(a));let o=super.subscribe({next:r,error:i,complete:a});return e instanceof nr&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}};function ss(...e){}function cs(e){let t,n;function r(){e=ss;try{n!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame==`function`&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ls(e){return queueMicrotask(()=>e()),()=>{e=ss}}var us=`isAngularZone`,ds=`isAngularZone_ID`,fs=0,ps=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new os(!1);onMicrotaskEmpty=new os(!1);onStable=new os(!1);onError=new os(!1);constructor(e){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=!1}=e;if(typeof Zone>`u`)throw new N(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=i,_s(a)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(us)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){let i=this._inner,a=i.scheduleEventTask(`NgZoneEvent: `+r,e,ms,ss,ss);try{return i.runTask(a,t,n)}finally{i.cancelTask(a)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}},ms={};function hs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gs(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){cs(()=>{e.callbackScheduled=!1,vs(e),e.isCheckStableRunning=!0,hs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),vs(e)}function _s(e){let t=()=>{gs(e)},n=fs++;e._inner=e._inner.fork({name:`angular`,properties:{[us]:!0,[ds]:n,[ds+n]:!0},onInvokeTask:(n,r,i,a,o,s)=>{if(Ss(s))return n.invokeTask(i,a,o,s);try{return ys(e),n.invokeTask(i,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&a.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),bs(e)}},onInvoke:(n,r,i,a,o,s,c)=>{try{return ys(e),n.invoke(i,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cs(s)&&t(),bs(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&(i.change==`microTask`?(e._hasPendingMicrotasks=i.microTask,vs(e),hs(e)):i.change==`macroTask`&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function vs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0)}function ys(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bs(e){e._nesting--,hs(e)}var xs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new os;onMicrotaskEmpty=new os;onStable=new os;onError=new os;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Ss(e){return ws(e,`__ignore_ng_zone__`)}function Cs(e){return ws(e,`__scheduler_tick__`)}function ws(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ts=class{_console=console;handleError(e){this._console.error(`ERROR`,e)}},Es=new F(``,{factory:()=>{let e=L(ps),t=L(da),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ts),n.handleError(r))})}}}),Ds={provide:Ki,useValue:()=>{L(Ts,{optional:!0})},multi:!0};function B(e,t){let[n,r,i]=Pn(e,t?.equal),a=n;return a[nn],a.set=r,a.update=i,a.asReadonly=Os.bind(a),a}function Os(){let e=this[nn];if(e.readonlyFn===void 0){let t=()=>this();t[nn]=e,e.readonlyFn=t}return e.readonlyFn}var ks=new F(``,{factory:()=>As}),As=`ng`,js=new F(``),Ms=new F(``,{providedIn:`platform`,factory:()=>`unknown`}),Ns=new F(``,{factory:()=>L(es).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null}),Ps=(()=>{class e{view;node;constructor(e,t){this.view=e,this.node=t}static __NG_ELEMENT_ID__=Fs}return e})();function Fs(){return new Ps(z(),po())}var Is=class{},Ls=new F(``,{factory:()=>!0}),Rs=new F(``),zs=(()=>{class e{static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new Bs})}return e})(),Bs=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)e||=t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}},Vs=class{[nn];constructor(e){this[nn]=e}destroy(){this[nn].destroy()}};function Hs(e,t){let n=t?.injector??L($o),r=t?.manualCleanup===!0?null:n.get(ts),i,a=n.get(Ps,null,{optional:!0}),o=n.get(Is);return a===null?i=qs(e,n.get(zs),o):(i=Ks(a.view,o,e),r instanceof ns&&r._lView===a.view&&(r=null)),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new Vs(i)}var Us={...Bn,cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=bo(!1);try{Vn(this)}finally{bo(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}},Ws={...Us,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}},Gs={...Us,consumerMarkedDirty(){this.view[2]|=8192,Ya(this.view),this.notifier.notify(13)},destroy(){if(vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[23]?.delete(this)}};function Ks(e,t,n){let r=Object.create(Gs);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=Js(r,n),e[23]??=new Set,e[23].add(r),r.consumerMarkedDirty(r),r}function qs(e,t,n){let r=Object.create(Ws);return r.fn=Js(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<`u`?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Js(e,t){return()=>{t(t=>(e.cleanupFns??=[]).push(t))}}var Ys=(()=>{class e{internalPendingTasks=L(as);scheduler=L(Is);errorHandler=L(Es);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let t=this.add();try{e().catch(this.errorHandler).finally(t)}catch(e){this.errorHandler(e),t()}}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Xs=Symbol(`InputSignalNode#UNSET`),Zs={...Rn,transformFn:void 0,applyValueToInputSignal(e,t){In(e,t)}};function Qs(e){return{toString:e}.toString()}var V=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(V||{});function $s(e,t,n,r){t===null?e[n]=r:t.applyValueToInputSignal(t,r)}var ec=null;function tc(){return ec}var nc=[],H=function(e,t=null,n){for(let r=0;r=r)break}else t[c]<0&&(e[17]+=65536),(s>14>16&&(e[2]&3)===t&&(e[2]+=16384,lc(o,a)):lc(o,a)}var dc=-1,fc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function pc(e){return!!(e.flags&8)}function mc(e){return!!(e.flags&16)}function hc(e,t,n){let r=0;for(;rt){o=a-1;break}}}for(;a>16}function Cc(e,t){let n=Sc(e),r=t;for(;n>0;)r=r[14],n--;return r}var wc=!0;function Tc(e){let t=wc;return wc=e,t}var Ec=255,Dc=5,Oc=0,kc={};function Ac(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:Object.hasOwn(n,li)&&(r=n[li]),r??=n[li]=Oc++;let i=r&Ec,a=1<>Dc)]|=a}function jc(e,t){let n=Nc(e,t);if(n!==-1)return n;let r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Mc(r.data,e),Mc(t,null),Mc(r.blueprint,null));let i=Pc(e,t),a=e.injectorIndex;if(bc(i)){let e=xc(i),n=Cc(i,t),r=n[1].data;for(let i=0;i<8;i++)t[a+i]=n[e+i]|r[e+i]}return t[a+8]=i,a}function Mc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Yc(i),r===null)return dc;if(n++,i=i[14],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return dc}function Fc(e,t,n){Ac(e,t,n)}function Ic(e,t,n){if(n&8||e!==void 0)return e;bi(t,`NodeInjector`)}function Lc(e,t,n,r){if(n&8&&r===void 0&&(r=null),!(n&3)){let i=e[9],a=Ti(void 0);try{return i?i.get(t,r,n&8):Ei(t,r,n&8)}finally{Ti(a)}}return Ic(r,t,n)}function Rc(e,t,n,r=0,i){if(e!==null){if(t[2]&2048&&!(r&2)){let i=Jc(e,t,n,r,kc);if(i!==kc)return i}let i=zc(e,t,n,r,kc);if(i!==kc)return i}return Lc(t,n,r,i)}function zc(e,t,n,r,i){let a=Uc(n);if(typeof a==`function`){if(!No(t,e,r))return r&1?Ic(i,n,r):Lc(t,n,r,i);try{let e;if(e=a(r),e==null&&!(r&8))bi(n);else return e}finally{Ro()}}else if(typeof a==`number`){let i=null,o=Nc(e,t),s=dc,c=r&1?t[15][5]:null;for((o===-1||r&4)&&(s=o===-1?Pc(e,t):t[o+8],s===dc||!Gc(r,!1)?o=-1:(i=t[1],o=xc(s),t=Cc(s,t)));o!==-1;){let e=t[1];if(Wc(a,o,e.data)){let e=Bc(o,t,n,i,r,c);if(e!==kc)return e}s=t[o+8],s!==dc&&Gc(r,t[1].data[o+8]===c)&&Wc(a,o,t)?(i=e,o=xc(s),t=Cc(s,t)):o=-1}}return i}function Bc(e,t,n,r,i,a){let o=t[1],s=o.data[e+8],c=Vc(s,o,n,r==null?ka(s)&&wc:r!=o&&!!(s.type&3),i&1&&a===s);return c===null?kc:Hc(t,o,c,s,i)}function Vc(e,t,n,r,i){let a=e.providerIndexes,o=t.data,s=a&1048575,c=e.directiveStart,l=e.directiveEnd,u=a>>20,d=r?s:s+u,f=i?s+u:l;for(let e=d;e=c&&t.type===n)return e}if(i){let e=o[c];if(e&&ja(e)&&e.type===n)return c}return null}function Hc(e,t,n,r,i){let a=e[n],o=t.data;if(a instanceof fc){let s=a;if(s.resolving)throw yi(``);let c=Tc(s.canSeeViewProviders);s.resolving=!0,o[n].type||o[n];let l=s.injectImpl?Ti(s.injectImpl):null;No(e,r,0);try{a=e[n]=s.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&rc(n,o[n],t)}finally{l!==null&&Ti(l),Tc(c),s.resolving=!1,Ro()}}return a}function Uc(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=Object.hasOwn(e,li)?e[li]:void 0;return typeof t==`number`?t>=0?t&Ec:qc:t}function Wc(e,t,n){let r=1<>Dc)]&r)}function Gc(e,t){return!(e&2)&&!(e&1&&t)}var Kc=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Rc(this._tNode,this._lView,e,ji(n),t)}};function qc(){return new Kc(po(),z())}function Jc(e,t,n,r,i){let a=e,o=t;for(;a!==null&&o!==null&&o[2]&2048&&!Ma(o);){let e=zc(a,o,n,r|2,kc);if(e!==kc)return e;r&=-5;let t=a.parent;if(!t){let e=o[20];if(e){let t=e.get(n,kc,r);if(t!==kc)return t}t=Yc(o),o=o[14]}a=t}return i}function Yc(e){let t=e[1],n=t.type;return n===2?t.declTNode:n===1?e[5]:null}var Xc=()=>(typeof requestIdleCallback<`u`?requestIdleCallback:e=>setTimeout(e)).bind(globalThis),Zc=()=>(typeof requestIdleCallback<`u`?cancelIdleCallback:clearTimeout).bind(globalThis),Qc=new F(``,{factory:()=>new $c}),$c=class{requestIdleCallback=Xc();cancelIdleCallback=Zc();requestOnIdle(e,t){return this.requestIdleCallback(e,t)}cancelOnIdle(e){return this.cancelIdleCallback(e)}};function el(e){return{token:e.token,providedIn:e.autoProvided===!1?null:`root`,factory:e.factory,value:void 0}}function tl(){return nl(po(),z())}function nl(e,t){return new rl(La(e,t))}var rl=(()=>{class e{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=tl}return e})();function il(e){return(e.flags&128)==128}var al=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(al||{}),ol=new Map,sl=0;function cl(){return sl++}function ll(e){ol.set(e[19],e)}function ul(e){ol.delete(e[19])}var dl=`__ngContext__`;function fl(e,t){Ea(t)?(e[dl]=t[19],ll(t)):e[dl]=t}function pl(e){return hl(e[12])}function ml(e){return hl(e[4])}function hl(e){for(;e!==null&&!Da(e);)e=e[4];return e}var gl=void 0;function _l(e){gl=e}function vl(){if(gl!==void 0)return gl;if(typeof document<`u`)return document;throw new N(210,!1)}var yl=!1,bl=new F(``,{factory:()=>yl}),xl=new F(``),Sl=new WeakMap;function Cl(e,t){if(typeof e!=`object`||!e)return;let n=Sl.get(e);n||(n=new WeakSet,Sl.set(e,n)),n.add(t)}var wl=new F(``);function Tl(e){return(e.flags&32)==32}var El=()=>null;function Dl(e,t,n=!1){return El(e,t,n)}function Ol(e){return e.get(xl,!1,{optional:!0})}function kl(e,t){let n=e.contentQueries;if(n!==null){let r=M(null);try{for(let r=0;r|^->||--!>|)/g,Ll=`​$1​`;function Rl(e){return e.replace(Fl,e=>e.replace(Il,Ll))}function zl(e,t){return e.createText(t)}function Bl(e,t,n){e.setValue(t,n)}function Vl(e,t){return e.createComment(Rl(t))}function Hl(e,t,n){return e.createElement(t,n)}function Ul(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Wl(e,t,n){e.appendChild(t,n)}function Gl(e,t,n,r,i){r===null?Wl(e,t,n):Ul(e,t,n,r,i)}function Kl(e,t,n,r){e.removeChild(null,t,n,r)}function ql(e,t,n){e.setAttribute(t,`style`,n)}function Jl(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n)}function Yl(e,t,n){let{mergedAttrs:r,classes:i,styles:a}=n;r!==null&&hc(e,t,r),i!==null&&Jl(e,t,i),a!==null&&ql(e,t,a)}function Xl(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}var Zl=`ng-template`;function Ql(e,t,n,r){let i=0;if(r){for(;i-1){let e;for(;++ia?``:i[u+1].toLowerCase(),r&2&&l!==e){if(nu(r))return!1;o=!0}}}}}return nu(r)||o}function nu(e){return!(e&1)}function ru(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?`="`+t+`"`:``)+`]`}else r&8?i+=`.`+o:r&4&&(i+=` `+o)}else i!==``&&!nu(o)&&(t+=su(a,i),i=``),r=o,a||=!nu(r);n++}return i!==``&&(t+=su(a,i)),t}function lu(e){return e.map(cu).join(`,`)}function uu(e){let t=[],n=[],r=1,i=2;for(;r=0;e--){let{el:n,declarationView:s}=r[e],c=n.parentNode;n===t?(r.splice(e,1),vu.add(n),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):(a&&n===a||c&&i&&c!==i&&(o===null||s===null||o===s))&&(r.splice(e,1),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),n.parentNode?.removeChild(n))}}function bu(e,t,n){let r=_u(n),i=gu.get(e);i?i.some(e=>e.el===t)||i.push({el:t,declarationView:r}):gu.set(e,[{el:t,declarationView:r}])}var xu=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(xu||{}),Su=new F(``),Cu=new Set;function wu(e){Cu.has(e)||(Cu.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}))}var Tu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Eu=new F(``,{factory:()=>{let e=L(da),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Du(e,t,n){let r=e.get(Eu);if(Array.isArray(t))for(let e of t)r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Ou(e,t){let n=e.get(Eu);if(Array.isArray(t))for(let e of t)n.queue.delete(e);else n.queue.delete(t)}function ku(e,t){let n=e.get(Eu);if(t.detachedLeaveAnimationFns){for(let e of t.detachedLeaveAnimationFns)n.queue.delete(e);t.detachedLeaveAnimationFns=void 0}}function Au(e,t){for(let[n,r]of t)Du(e,r.animateFns)}function ju(e,t,n,r){let i=e?.[26]?.enter;t!==null&&i&&i.has(n.index)&&Au(r,i)}function Mu(e,t,n,r){try{n.get(qi)}catch{return r(!1)}let i=e?.[26];i?.enter?.has(t.index)&&Ou(n,i.enter.get(t.index).animateFns);let a=Nu(e,t,i);if(a.size===0){let n=!1;if(e){let r=[];Fu(e,t,r),n=r.length>0}if(!n)return r(!1)}e&&hu.add(e[19]),Du(n,()=>Pu(e,t,i||void 0,a,r),i||void 0)}function Nu(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[n,a]of i){if(r.has(n))continue;let i=e[1].data[n].parent;for(;i;){if(i===t){r.set(n,a);break}i=i.parent}}return r}function Pu(e,t,n,r,i){let a=[];if(n&&n.leave)for(let[e]of r){if(!n.leave.has(e))continue;let t=n.leave.get(e);for(let e of t.animateFns){let{promise:t}=e();a.push(t)}n.detachedLeaveAnimationFns=void 0}if(e&&Fu(e,t,a),a.length>0){let t=n||e?.[26];if(t){let n=t.running;n&&a.push(n),t.running=Promise.allSettled(a),Lu(e,t.running,i)}else Promise.allSettled(a).then(()=>{e&&hu.delete(e[19]),i(!0)})}else e&&hu.delete(e[19]),i(!1)}function Fu(e,t,n){if(t.type&12){let r=e[t.index];if(Da(r))for(let e=10;e{e[26]?.running===t&&(e[26].running=void 0,hu.delete(e[19])),n(!0)})}function Ru(e,t,n,r,i,a,o,s){if(i!=null){let c,l=!1;Da(i)?c=i:Ea(i)&&(l=!0,i=i[0]);let u=Fa(i);e===0&&r!==null?(ju(s,r,a,n),o==null?Wl(t,r,u):Ul(t,r,u,o||null,!0)):e===1&&r!==null?(ju(s,r,a,n),Ul(t,r,u,o||null,!0),yu(a,u,s)):e===2?(s?.[26]?.leave?.has(a.index)&&bu(a,u,s),vu.delete(u),Mu(s,a,n,e=>{if(vu.has(u)){vu.delete(u);return}Kl(t,u,l,e)})):e===3&&(vu.delete(u),Mu(s,a,n,()=>{t.destroyNode(u)})),c!=null&&sd(t,e,n,c,a,r,o)}}function zu(e,t){Vu(e,t),t[0]=null,t[5]=null}function Bu(e,t,n,r,i,a){r[0]=i,r[5]=t,id(e,r,n,1,i,a)}function Vu(e,t){t[10].changeDetectionScheduler?.notify(9),id(e,t,t[11],2,null,null)}function Hu(e){let t=e[12];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(Ea(t))n=t[12];else{let e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ea(t)&&Gu(t[1],t),t=t[3];t===null&&(t=e),Ea(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}function Uu(e,t){let n=e[9],r=n.indexOf(t);n.splice(r,1)}function Wu(e,t){if(Na(t))return;let n=t[11];n.destroyNode&&id(e,t,n,3,null,null),Hu(t)}function Gu(e,t){if(Na(t))return;let n=M(null);try{t[2]&=-129,t[2]|=256,t[24]&&vn(t[24]),qu(e,t),Ku(e,t),t[1].type===1&&t[11].destroy();let n=t[16];if(n!==null&&Da(t[3])){n!==t[3]&&Uu(n,t);let r=t[18];r!==null&&r.detachView(e)}ul(t)}finally{M(n)}}function Ku(e,t){let n=e.cleanup,r=t[7];if(n!==null)for(let e=0;e=0?r[t]():r[-t].unsubscribe(),e+=2}else{let t=r[n[e+1]];n[e].call(t)}r!==null&&(t[7]=null);let i=t[21];if(i!==null){t[21]=null;for(let e=0;e27&&_d(e,t,27,!1),H(o?V.TemplateUpdateStart:V.TemplateCreateStart,i,n),n(r,i)}finally{Ho(a),H(o?V.TemplateUpdateEnd:V.TemplateCreateEnd,i,n)}}function xd(e,t,n){Od(e,t,n),(n.flags&64)==64&&kd(e,t,n)}function Sd(e,t,n=La){let r=t.localNames;if(r!==null){let i=t.index+1;for(let a=0;a{Ya(e.lView)},consumerOnSignalRead(){this.lView[24]=this}};function $d(e){let t=e[24]??Object.create(ef);return t.lView=e,t}var ef={...an,consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{let t=Qa(e.lView);for(;t&&!tf(t[1]);)t=Qa(t);t&&Ga(t)},consumerOnSignalRead(){this.lView[24]=this}};function tf(e){return e.type!==2}function nf(e){if(e[23]===null)return;let t=!0;for(;t;){let n=!1;for(let t of e[23])if(t.dirty&&(n=!0,t.zone===null||Zone.current===t.zone?t.run():t.zone.run(()=>t.run()),e[23]===null))return;t=n&&!!(e[2]&8192)}}var rf=100;function af(e,t=0){let n=e[10].rendererFactory;n.begin?.();try{of(e,t)}finally{n.end?.()}}function of(e,t){let n=yo();try{bo(!0),ff(e,t);let n=0;for(;qa(e);){if(n===rf)throw new N(103,!1);n++,ff(e,1)}}finally{bo(n)}}function sf(e,t,n,r){if(Na(t))return;let i=t[2];Po(t);let a=!0,o=null,s=null;tf(e)?(s=Yd(t),o=pn(s)):rn()===null?(a=!1,s=$d(t),o=pn(s)):t[24]&&=(vn(t[24]),null);try{Wa(t),Co(e.bindingStartIndex),n!==null&&bd(e,t,n,2,r);let a=(i&3)==3;if(a){let n=e.preOrderCheckHooks;n!==null&&ac(t,n,null)}else{let n=e.preOrderHooks;n!==null&&oc(t,n,0,null),sc(t,0)}if(lf(t),nf(t),cf(t,0),e.contentQueries!==null&&kl(e,t),a){let n=e.contentCheckHooks;n!==null&&ac(t,n)}else{let n=e.contentHooks;n!==null&&oc(t,n,1),sc(t,1)}mf(e,t);let o=e.components;o!==null&&pf(t,o,0);let s=e.viewQuery;if(s!==null&&Al(2,s,r),a){let n=e.viewCheckHooks;n!==null&&ac(t,n)}else{let n=e.viewHooks;n!==null&&oc(t,n,2),sc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[22]){for(let e of t[22])e();t[22]=null}qd(t),t[2]&=-73}catch(e){throw Ya(t),e}finally{s!==null&&(hn(s,o),a&&Zd(s)),zo()}}function cf(e,t){for(let n=pl(e);n!==null;n=ml(n))for(let e=10;e0&&(e[n-1][4]=r[4]);let a=Ri(e,10+t);zu(r[1],r);let o=a[18];o!==null&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function xf(e,t,n,r){let i=10+r,a=n.length;r>0&&(n[i-1][4]=t),r-1&&(bf(e,n),Ri(t,n))}this._attachedToViewContainer=!1}Wu(this._lView[1],this._lView)}onDestroy(e){Xa(this._lView,e)}markForCheck(){hf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){Ja(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,af(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ma(this._lView),t=this._lView[16];t!==null&&!e&&Uu(t,this._lView),Vu(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=e;let t=Ma(this._lView),n=this._lView[16];n!==null&&!t&&Sf(n,this._lView),Ja(this._lView)}};function wf(e,t,n,r,i){let a=e.data[t];if(a===null)a=Tf(e,t,n,r,i),Eo()&&(a.flags|=32);else if(a.type&64){a.type=n,a.value=r,a.attrs=i;let e=ho();a.injectorIndex=e===null?-1:e.injectorIndex}return go(a,!0),a}function Tf(e,t,n,r,i){let a=mo(),o=_o(),s=o?a:a&&a.parent,c=e.data[t]=Df(e,s,n,t,r,i);return Ef(e,c,a,o),c}function Ef(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Df(e,t,n,r,i,a){let o=t?t.injectorIndex:-1,s=0;return oo()&&(s|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:i,namespace:qo(),attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Of(e){let t=e[6]??[],n=e[3][11],r=[];for(let e of t)e.data.di===void 0?kf(e,n):r.push(e);e[6]=r}function kf(e,t){let n=0,r=e.firstChild;if(r){let i=e.data.r;for(;nnull,jf=()=>null;function Mf(e,t){return Af(e,t)}function Nf(e,t,n){return jf(e,t,n)}var Pf=class{},Ff=class{},If=(()=>{class e{static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>null})}return e})();function Lf(e){return e.debugInfo?.className||e.type.name||null}var Rf={},zf=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Rf,n);return r!==Rf||t===Rf?r:this.parentInjector.get(e,t,n)}};function Bf(e,t,n){return e[t]=n}function Vf(e,t){return e[t]}function Hf(e,t,n){if(n===du)return!1;let r=e[t];return!Object.is(r,n)&&(e[t]=n,!0)}function Uf(e,t,n,r){let i=Hf(e,t,n);return Hf(e,t+1,r)||i}function Wf(e,t,n,r,i){let a=Uf(e,t,n,r);return Hf(e,t+2,i)||a}function Gf(e,t,n){return function r(i){let a=r.__ngNativeEl__;a!==void 0&&Cl(i,a),hf(ka(e)?Va(e.index,t):t,5);let o=t[8],s=Kf(t,o,n,i),c=r.__ngNextListenerFn__;for(;c;)s=Kf(t,o,c,i)&&s,c=c.__ngNextListenerFn__;return s}}function Kf(e,t,n,r){let i=M(null);try{return H(V.OutputStart,t,n),n(r)!==!1}catch(t){return Ld(e,t),!1}finally{H(V.OutputEnd,t,n),M(i)}}function qf(e,t,n,r,i,a,o,s){let c=Aa(e),l=!1,u=null;if(!r&&c&&(u=Yf(t,n,a,e.index)),u!==null){let e=u.__ngLastListenerFn__||u;e.__ngNextListenerFn__=o,u.__ngLastListenerFn__=o,l=!0}else{let o=La(e,n),c=r?r(o):o;r||(s.__ngNativeEl__=o);let l=i.listen(c,a,s);Jf(a)||Xf(r?t=>r(Fa(t[e.index])):e.index,t,n,a,s,l,!1)}return l}function Jf(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function Yf(e,t,n,r){let i=e.cleanup;if(i!=null)for(let e=0;er?n[r]:null}typeof a==`string`&&(e+=2)}return null}function Xf(e,t,n,r,i,a,o){let s=t.firstCreatePass?eo(t):null,c=$a(n),l=c.length;c.push(i,a),s&&s.push(r,e,l,(l+1)*(o?-1:1))}function Zf(e,t,n,r,i,a){let o=t[n],s=t[1],c=o[s.data[n].outputs[r]].subscribe(a);Xf(e.index,s,t,i,a,c,!0)}var Qf=Symbol(`BINDING`),$f=new F(``);function ep(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,a=0;if(t!==null)for(let e=0;e0&&(n.directiveToIndex=new Map);for(let c=0;c0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function mp(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,i]=e[t],a={propName:n,templateName:t,isSignal:(r&vd.SignalBased)!==0};return i&&(a.transform=i),a})}function Sp(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Cp(e,t,n){let r=t instanceof da?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new zf(n,r):n}function wp(e){let t=e.get(Ff,null);if(t===null)throw new N(407,!1);return{rendererFactory:t,sanitizer:e.get(If,null),changeDetectionScheduler:e.get(Is,null),ngReflect:!1,tracingService:e.get(Su,null,{optional:!0})}}function Tp(e,t,n){let r=Dp(e);return Hl(t,r,r===`svg`?`svg`:r===`math`?Pa:n)}function Ep(e){if((e&&`localName`in e&&typeof e.localName==`string`?e.localName:e?.tagName)?.toLowerCase()===`script`)throw new N(905,!1)}function Dp(e){return(e.selectors[0][0]||`div`).toLowerCase()}var Op=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=xp(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Sp(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=lu(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,a,o){H(V.DynamicComponentStart);let s=M(null);try{let s=this.componentDef,c=Cp(s,r||this.ngModule,e),l=wp(c),u=l.tracingService;return u&&u.componentCreate?u.componentCreate(Lf(s),()=>this.createComponentRef(l,c,t,n,i,a,o)):this.createComponentRef(l,c,t,n,i,a,o)}finally{M(s)}}createComponentRef(e,t,n,r,i,a,o){let s=this.componentDef,c=kp(r,s,a,i),l=e.rendererFactory.createRenderer(null,s),u=r?Cd(l,r,s.encapsulation,t):Tp(s,l,o??null);Ep(u);let d=t.get($f,null),f=Ap(u,()=>t.get(es,null)??vl());d&&d.addHost(f);let p=a?.some(Mp)||i?.some(e=>typeof e!=`function`&&e.bindings.some(Mp)),m=fd(null,c,null,512|md(s),null,null,e,l,t,null,Dl(u,t,!0));d&&yp&&f instanceof ShadowRoot&&Xa(m,()=>{d.removeHost(f)}),m[27]=u,Po(m);let h=null;try{let e=gp(27,m,2,`#host`,()=>c.directiveRegistry,!0,0);Yl(l,u,e),fl(u,m),xd(c,m,e),jl(c,e,m),_p(c,e),n!==void 0&&Pp(e,this.ngContentSelectors,n),h=Va(e.index,m),m[8]=h[8],Vd(c,m,null)}catch(e){throw h!==null&&ul(h),ul(m),e}finally{H(V.DynamicComponentEnd),zo()}return new Np(this.componentType,m,!!p)}};function kp(e,t,n,r){let i=e?[`ng-version`,`22.1.7`]:uu(t.selectors[0]),a=null,o=null,s=0;if(n)for(let e of n)s+=e[Qf].requiredVars,e.create&&(e.targetIdx=0,(a??=[]).push(e)),e.update&&(e.targetIdx=0,(o??=[]).push(e));if(r)for(let e=0;e{if(n&1&&e)for(let t of e)t.create();if(n&2&&t)for(let e of t)e.update()}}function Mp(e){let t=e[Qf].kind;return t===`input`||t===`twoWay`}var Np=class extends Pf{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Ra(t[1],27),this.location=nl(this._tNode,t),this.instance=Va(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new Cf(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView;Rd(n,r[1],r,e,t),this.previousInputValues.set(e,t),hf(Va(n.index,r),1)}get injector(){return new Kc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Pp(e,t,n){let r=e.projection=[];for(let e=0;e!1;function Ip(e,t,n){return Fp(e,t,n)}function Lp(e){return!!e&&typeof e.then==`function`}function Rp(e){return!!e&&typeof e.subscribe==`function`}var zp=class{},Bp=class extends zp{injector;instance=null;constructor(e){super();let t=new fa([...e.providers,{provide:zp,useValue:this}],e.parent||ua(),e.debugName,new Set([`environment`]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Vp(e,t,n=null){return new Bp({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hp=(()=>{class e{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let t=Zi(!1,e.type),n=t.length>0?Vp([t],this._injector,``):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Zr({token:e,providedIn:`environment`,factory:()=>new e(I(da))})}return e})();function Up(e){return Qs(()=>{let t=Jp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==al.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(Hp).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ml.Emulated,styles:e.styles||Gi,_:null,schemas:e.schemas||null,tView:null,id:``};t.standalone&&wu(`NgStandalone`),Yp(n);let r=e.dependencies;return n.directiveDefs=Xp(r,Wp),n.pipeDefs=Xp(r,pi),n.id=Zp(n),n})}function Wp(e){return di(e)||fi(e)}function Gp(e,t){if(e==null)return Wi;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],a,o,s,c;Array.isArray(i)?(s=i[0],a=i[1],o=i[2]??a,c=i[3]||null):(a=i,o=i,s=vd.None,c=null),n[a]=[r,s,c],t[a]=o}return n}function Kp(e){if(e==null)return Wi;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function qp(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jp(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Wi,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Gi,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Gp(e.inputs,t),outputs:Kp(e.outputs),debugInfo:null}}function Yp(e){e.features?.forEach(t=>t(e))}function Xp(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let e of n){let n=t(e);n!==null&&r.push(n)}return r}:null}function Zp(e){let t=0,n=typeof e.consts==`function`?``:e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let e of r.join(`|`))t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var Qp=new F(``),$p=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t});appInits=L(Qp,{optional:!0})??[];injector=L($o);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let t of this.appInits){let n=Ca(this.injector,t);if(Lp(n))e.push(n);else if(Rp(n)){let t=new Promise((e,t)=>{n.subscribe({complete:e,error:t})});e.push(t)}}let t=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),e.length===0&&t(),this.initialized=!0}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function em(e,t,n,r,i,a,o,s){if(n.firstCreatePass){e.mergedAttrs=vc(e.mergedAttrs,e.attrs);let t=e.tView=ld(2,e,i,a,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),t.queries=n.queries.embeddedTView(e))}s&&(e.flags|=s),go(e,!1);let c=rm(n,t,e,r);Yo()&&$u(n,t,c,e),fl(c,t);let l=gf(c,t,c,e);t[r+27]=l,gd(t,l),Ip(l,e,t)}function tm(e,t,n,r,i,a,o,s,c,l,u){let d=n+27,f;if(t.firstCreatePass){if(f=wf(t,d,4,o||null,s||null),l!=null){let e=Ua(t.consts,l);f.localNames=[];for(let t=0;t{class e{cachedInjectors=new Map;getOrCreateInjector(e,t,n,r){if(!this.cachedInjectors.has(e)){let i=n.length>0?Vp(n,t,r):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Zr({token:e,providedIn:`environment`,factory:()=>new e})}return e})(),Nm=new F(``);function Pm(e,t,n){return e.get(Mm).getOrCreateInjector(t,e,n,``)}function Fm(e,t,n){if(e instanceof zf){let r=e.injector,i=e.parentInjector;return new zf(r,Pm(i,t,n))}let r=e.get(da);return r===e?Pm(e,t,n):new zf(e,Pm(r,t,n))}function Im(e,t,n,r=!1){let i=n[3],a=i[1];if(Na(i))return;let o=Cm(i,t),s=o[1],c=o[mm];if(!(c!==null&&ee.data.s===t[1])??-1;return{dehydratedView:n>-1?e[6][n]:null,dehydratedViewIx:n}}function Rm(e,t,n,r,i){H(V.DeferBlockStateStart);let a=Dm(e,i,r);if(a!==null){t[1]=e;let o=i[1],s=Ra(o,a+27);yf(n,0);let c;if(e===cm.Complete){let e=Tm(o,r),t=e.providers;t&&t.length>0&&(c=Fm(i[9],e,t))}let{dehydratedView:l,dehydratedViewIx:u}=Lm(n,t),d=Ud(i,s,null,{injector:c,dehydratedView:l});if(vf(n,d,0,Wd(s,l)),Ga(d),u>-1&&n[6]?.splice(u,1),(e===cm.Complete||e===cm.Error)&&Array.isArray(t[hm])){for(let e of t[hm])e();t[hm]=null}}H(V.DeferBlockStateEnd)}function zm(e,t){return e{e.loadingState===am.COMPLETE?Im(cm.Complete,t,n):e.loadingState===am.FAILED&&Im(cm.Error,t,n)})}var Hm=null;function Um(e,t){return t[9].get(Nm,null,{optional:!0})?.behavior!==_m.Manual}var Wm=new F(``),Gm=new F(``);function Km(){Mn(()=>{throw new N(600,``)})}var qm=10,Jm=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=L(Es);afterRenderManager=L(Tu);zonelessEnabled=L(Ls);rootEffectScheduler=L(zs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Rr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=L(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Vr(e=>!e))}constructor(){L(Su,{optional:!0})}whenStable(){let e;return new Promise(t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})}).finally(()=>{e.unsubscribe()})}_injector=L(da);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,t){return this.bootstrapImpl(e,t)}bootstrapImpl(e,t,n=$o.NULL){return this._injector.get(ps).run(()=>{if(H(V.BootstrapComponentStart),!this._injector.get($p).done)throw new N(405,``);let r=di(e),i=this._injector.get(zp),a=new Op(r,i);this.componentTypes.push(e);let{hostElement:o,directives:s,bindings:c}=Ym(t),l=o||a.selector,u=a.create(n,[],l,i.injector,s,c),d=u.location.nativeElement,f=u.injector.get(Wm,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Xm(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),H(V.BootstrapComponentEnd,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(V.ChangeDetectionStart),this.tracingSnapshot===null?this.tickImpl():this.tracingSnapshot.run(xu.CHANGE_DETECTION,this.tickImpl)}tickImpl=()=>{if(this._runningTick)throw H(V.ChangeDetectionEnd),new N(101,!1);let e=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(e),this.afterTick.next(),H(V.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ff,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++qa(e))){this.dirtyFlags|=2;return}this.dirtyFlags&=-8}attachView(e){let t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){let t=e;Xm(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(e){this.internalErrorHandler(e)}this.components.push(e),this._injector.get(Gm,[]).forEach(t=>t(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Xm(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function Ym(e){return e===void 0||typeof e==`string`||e instanceof Element?{hostElement:e}:e}function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zm(e,t,n){let r=t.get($m);return r.add(e,n),()=>r.remove(e)}function Qm(e){return(t,n)=>Zm(t,n,e)}var $m=(()=>{class e{buckets=new Map;callbackBucket=new Map;applicationRef=L(Jm);ngZone=L(ps);idleService=L(Qc);add(e,t){let n=eh(t);this.callbackBucket.set(e,n);let r=this.buckets.get(n);r??(r={idleId:null,queue:new Set},this.buckets.set(n,r)),r.queue.add(e),this.scheduleBucket(r,t)}remove(e){let t=this.callbackBucket.get(e);if(t===void 0)return;this.callbackBucket.delete(e);let n=this.buckets.get(t);n&&(n.queue.delete(e),n.queue.size===0&&(this.cancelBucket(n),this.buckets.delete(t)))}scheduleBucket(e,t){if(e.idleId!==null)return;let n=eh(t),r=r=>{for(let t of e.queue)if(t(),this.applicationRef._tick(),e.queue.delete(t),this.callbackBucket.delete(t),r&&r.timeRemaining()===0&&!r.didTimeout)break;e.idleId=null,e.queue.size>0?this.scheduleBucket(e,t):this.buckets.delete(n)};e.idleId=this.idleService.requestOnIdle(e=>this.ngZone.run(()=>r(e)),t)}cancelBucket(e){e.idleId!==null&&(this.idleService.cancelOnIdle(e.idleId),e.idleId=null)}ngOnDestroy(){for(let e of this.buckets.values())this.cancelBucket(e);this.buckets.clear(),this.callbackBucket.clear()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})();function eh(e){return!e||e.timeout==null?``:`${e.timeout}`}function th(e){let t=z(),n=po();if(Bm(t,n),!Um(0,t))return;let r=t[9];vm(0,Cm(t,n),e(()=>rh(0,t,n),r))}function nh(e,t,n){let r=t[9],i=t[1];if(e.loadingState!==am.NOT_STARTED)return e.loadingPromise??Promise.resolve();let a=Cm(t,n),o=jm(i,e);e.loadingState=am.IN_PROGRESS,ym(1,a);let s=e.dependencyResolverFn,c=r.get(Ys).add();return s?(e.loadingPromise=Promise.allSettled(s()).then(n=>{let r=!1,i=[],a=[];for(let e=0;e0&&(t.directiveRegistry=Am(t.directiveRegistry,i),e.providers=Zi(!1,...i.map(e=>e.type))),a.length>0&&(t.pipeRegistry=Am(t.pipeRegistry,a))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=am.COMPLETE,c()}),e.loadingPromise)}function rh(e,t,n){let r=t[1],i=t[n.index];if(!Um(e,t))return;let a=Cm(t,n),o=Tm(r,n);switch(bm(a),o.loadingState){case am.NOT_STARTED:Im(cm.Loading,n,i),nh(o,t,n),o.loadingState===am.IN_PROGRESS&&Vm(o,n,i);break;case am.IN_PROGRESS:Im(cm.Loading,n,i),Vm(o,n,i);break;case am.COMPLETE:Im(cm.Complete,n,i);break;case am.FAILED:Im(cm.Error,n,i)}}function ih(e,t,n){return e===0?oh(t,n):e!==2||!oh(t,n)}function ah(e){return e!=null&&(e&1)==1}function oh(e,t){let n=e[9],r=Tm(e[1],t),i=Ol(n),a=ah(r.flags),o=Cm(e,t)[pm]!==null;return!(a&&o&&i)}function sh(e,t,n,r,i,a,o,s,c,l){let u=z(),d=lo(),f=e+27,p=tm(u,d,e,null,0,0),m=u[9],h=Ol(m);if(d.firstCreatePass){wu(`NgDefer`);let e={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:a??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:am.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:l??0};c?.(d,e,s,o),Em(d,f,e)}let g=u[f];Ip(g,p,u);let _=null,v=null;if(g[6]?.length>0){let e=g[6][0].data;v=e.di??null,_=e.s}let y=[null,lm.Initial,null,null,null,null,v,_,null,null];wm(u,f,y);let b=null;v!==null&&h&&(b=m.get(wl),b.add(v,{lView:u,tNode:p,lContainer:g}));let ee=()=>{bm(y),v!==null&&b?.cleanup([v])};vm(0,y,()=>Za(u,ee)),Xa(u,ee)}function ch(e){ih(0,z(),po())&&th(Qm({timeout:e}))}function lh(e,t,n,r){let i=z();return Hf(i,wo(),t)&&(lo(),Md(Uo(),i,e,t,n,r)),lh}var uh=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function dh(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function fh(e,t,n,r){let i,a,o=0,s=e.length-1;if(Array.isArray(t)){M(r);let c=t.length-1;for(M(null);o<=s&&o<=c;){let r=e.at(o),l=t[o],u=dh(o,r,o,l,n);if(u!==0){u<0&&e.updateValue(o,l),o++;continue}let d=e.at(s),f=t[c],p=dh(s,d,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(o,r),h=n(s,d),g=n(o,l);if(Object.is(g,h)){let t=n(c,f);Object.is(t,m)?(e.swap(o,s),e.updateValue(s,f),c--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(i??=new gh,a??=hh(e,o,s,n),ph(e,i,o,g))e.updateValue(o,l),o++,s++;else if(a.has(g))i.set(m,e.detach(o)),s--;else{let n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=c;)mh(e,i,n,o,t[o]),o++}else if(t!=null){M(r);let c=t[Symbol.iterator]();M(null);let l=c.next();for(;!l.done&&o<=s;){let t=e.at(o),r=l.value,u=dh(o,t,o,r,n);if(u!==0)u<0&&e.updateValue(o,r),o++,l=c.next();else{i??=new gh,a??=hh(e,o,s,n);let u=n(o,r);if(ph(e,i,o,u))e.updateValue(o,r),o++,s++,l=c.next();else if(!a.has(u))e.attach(o,e.create(o,r)),o++,s++,l=c.next();else{let r=n(o,t);i.set(r,e.detach(o)),s--}}}for(;!l.done;)mh(e,i,n,e.length,l.value),l=c.next()}for(;o<=s;)e.destroy(e.detach(s--));i?.forEach(t=>{e.destroy(t)})}function ph(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function mh(e,t,n,r,i){if(ph(e,t,r,n(r,i)))e.updateValue(r,i);else{let t=e.create(r,i);e.attach(r,t)}}function hh(e,t,n,r){let i=new Set;for(let a=t;a<=n;a++)i.add(r(a,e.at(a)));return i}var gh=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function W(e,t,n,r,i,a,o,s){wu(`NgControlFlow`);let c=z(),l=lo();return tm(c,l,e,t,n,r,i,Ua(l.consts,a),256,o,s),_h}function _h(e,t,n,r,i,a,o,s){wu(`NgControlFlow`);let c=z(),l=lo();return tm(c,l,e,t,n,r,i,Ua(l.consts,a),512,o,s),_h}function G(e,t){wu(`NgControlFlow`);let n=z(),r=wo(),i=n[r]===du?-1:n[r],a=i===-1?void 0:Ch(n,27+i);if(Hf(n,r,e)){let r=M(null);try{if(a!==void 0&&yf(a,0),e!==-1){let r=27+e,i=Ch(n,r),a=Oh(n[1],r),o=Nf(i,a,n);vf(i,Ud(n,a,t,{dehydratedView:o}),0,Wd(a,o))}}finally{M(r)}}else if(a!==void 0){let e=_f(a,0);e!==void 0&&(e[8]=t)}}var vh=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-10}};function yh(e){return e}function bh(e,t){return t}var xh=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function K(e,t,n,r,i,a,o,s,c,l,u,d,f){wu(`NgControlFlow`);let p=z(),m=lo(),h=c!==void 0,g=z(),_=new xh(h,s?o.bind(g[15][8]):o);g[27+e]=_,tm(p,m,e+1,t,n,r,i,Ua(m.consts,a),256),h&&tm(p,m,e+2,c,l,u,d,Ua(m.consts,f),512)}var Sh=class extends uh{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-10}at(e){return this.getLView(e)[8].$implicit}attach(e,t){let n=t[6];this.needsIndexUpdate||=e!==this.length,vf(this.lContainer,t,e,Wd(this.templateTNode,n)),wh(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Th(this.lContainer,e),Eh(this.lContainer,e)}create(e,t){let n=Mf(this.lContainer,this.templateTNode.tView.ssrId);return Ud(this.hostLView,this.templateTNode,new vh(this.lContainer,t,e),{dehydratedView:n})}destroy(e){Wu(e[1],e)}updateValue(e,t){this.getLView(e)[8].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e0){let e=n[9];ku(e,r),hu.delete(n[19]),r.detachedLeaveAnimationFns=void 0}}function Th(e,t){if(e.length<=10)return;let n=e[10+t],r=n?n[26]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function Eh(e,t){return bf(e,t)}function Dh(e,t){return _f(e,t)}function Oh(e,t){return Ra(e,t)}function kh(e,t,n){let r=z();return Hf(r,wo(),t)&&(lo(),Td(Uo(),r,e,t,r[11],n)),kh}function Ah(e,t,n,r,i){Rd(t,e,n,i?`class`:`style`,r)}function jh(e,t,n,r){let i=z(),a=i[1],o=e+27,s=a.firstCreatePass?gp(o,i,2,t,jd,ao(),n,r):a.data[o];if(ka(s)){let n=i[10].tracingService;if(n&&n.componentCreate){let o=a.data[s.directiveStart+s.componentOffset];return n.componentCreate(Lf(o),()=>(Mh(e,t,i,s,r),jh))}}return Mh(e,t,i,s,r),jh}function Mh(e,t,n,r,i){if(Fd(r,n,e,t,Ih),Aa(r)){let e=n[1];xd(e,n,r),jl(e,r,n)}i!=null&&Sd(n,r)}function Nh(){let e=lo(),t=Id(po());return e.firstCreatePass&&_p(e,t),so(t)&&co(),io(),t.classesWithoutHost!=null&&pc(t)&&Ah(e,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&mc(t)&&Ah(e,t,z(),t.stylesWithoutHost,!1),Nh}function Ph(e,t,n,r){return jh(e,t,n,r),Nh(),Ph}function J(e,t,n,r){let i=z(),a=i[1],o=e+27,s=a.firstCreatePass?vp(o,a,2,t,n,r):a.data[o];return Fd(s,i,e,t,Ih),r!=null&&Sd(i,s),J}function Y(){return so(Id(po()))&&co(),io(),Y}function Fh(e,t,n,r){return J(e,t,n,r),Y(),Fh}var Ih=(e,t,n,r,i)=>(Xo(!0),Hl(t[11],r,qo()));function Lh(){let e=lo(),t=Id(po());return e.firstCreatePass&&_p(e,t),Lh}function Rh(e,t,n){let r=z(),i=r[1],a=e+27,o=i.firstCreatePass?vp(a,i,8,`ng-container`,t,n):i.data[a];return Fd(o,r,e,`ng-container`,Vh),n!=null&&Sd(r,o),Rh}function zh(){return Id(po()),Lh}function Bh(e,t,n){return Rh(e,t,n),zh(),Bh}var Vh=(e,t,n,r,i)=>(Xo(!0),Vl(t[11],``));function Hh(){return z()}function Uh(e,t,n){let r=z();return Hf(r,wo(),t)&&(lo(),Ed(Uo(),r,e,t,r[11],n)),Uh}var Wh=`en-US`;function Gh(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`)}function Kh(e,t,n){let r=z(),i=lo(),a=po();return Jh(i,r,r[11],a,e,t,n),Kh}function qh(e,t,n){let r=z(),i=lo(),a=po();return(a.type&3||n)&&qf(a,i,r,n,r[11],e,t,Gf(a,r,t)),qh}function Jh(e,t,n,r,i,a,o){let s=!0,c=null;if((r.type&3||o)&&(c??=Gf(r,t,a),qf(r,e,t,o,n,i,a,c)&&(s=!1)),s){let e=r.outputs?.[i],n=r.hostDirectiveOutputs?.[i];if(n&&n.length)for(let e=0;e>17&32767}function Zh(e){return(e&2)==2}function Qh(e,t){return e&131071|t<<17}function $h(e){return e|2}function eg(e){return(e&131068)>>2}function tg(e,t){return e&-131069|t<<2}function ng(e){return(e&1)==1}function rg(e){return e|1}function ig(e,t,n,r,i,a){let o=a?t.classBindings:t.styleBindings,s=Xh(o),c=eg(o);e[r]=n;let l=!1,u;if(Array.isArray(n)){let e=n;u=e[1],(u===null||Hi(e,u)>0)&&(l=!0)}else u=n;if(i){if(c!==0){let t=Xh(e[s+1]);e[r+1]=Yh(t,s),t!==0&&(e[t+1]=tg(e[t+1],r)),e[s+1]=Qh(e[s+1],r)}else e[r+1]=Yh(s,0),s!==0&&(e[s+1]=tg(e[s+1],r)),s=r}else e[r+1]=Yh(c,0),s===0?s=r:e[c+1]=tg(e[c+1],r),c=r;l&&(e[r+1]=$h(e[r+1])),og(e,u,r,!0),og(e,u,r,!1),ag(t,u,e,r,a),o=Yh(s,c),a?t.classBindings=o:t.styleBindings=o}function ag(e,t,n,r,i){let a=i?e.residualClasses:e.residualStyles;a!=null&&typeof t==`string`&&Hi(a,t)>=0&&(n[r+1]=rg(n[r+1]))}function og(e,t,n,r){let i=e[n+1],a=t===null,o=r?Xh(i):eg(i),s=!1;for(;o!==0&&(s===!1||a);){let n=e[o],i=e[o+1];sg(n,t)&&(s=!0,e[o+1]=r?rg(i):$h(i)),o=r?Xh(i):eg(i)}s&&(e[n+1]=r?$h(i):rg(i))}function sg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t==`string`?Hi(e,t)>=0:!1}function cg(e,t,n){return ug(e,t,n,!1),cg}function lg(e,t){return ug(e,t,null,!0),lg}function ug(e,t,n,r){let i=z(),a=lo(),o=To(2);if(a.firstUpdatePass&&fg(a,e,o,r),t!==du&&Hf(i,o,t)){let s=a.data[Vo()];yg(a,s,i,i[11],e,i[o+1]=Sg(t,n),r,o)}}function dg(e,t){return t>=e.expandoStartIndex}function fg(e,t,n,r){let i=e.data;if(i[n+1]===null){let a=i[Vo()],o=dg(e,n);Cg(a,r)&&t===null&&!o&&(t=!1),t=pg(i,a,t,r),ig(i,a,t,n,o,r)}}function pg(e,t,n,r){let i=Ao(e),a=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=_g(null,e,t,n,r),n=vg(n,t.attrs,r),a=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i){if(n=_g(i,e,t,n,r),a===null){let n=mg(e,t,r);n!==void 0&&Array.isArray(n)&&(n=_g(null,e,t,n[1],r),n=vg(n,t.attrs,r),hg(e,t,r,n))}else a=gg(e,t,r)}}return a!==void 0&&(r?t.residualClasses=a:t.residualStyles=a),n}function mg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(eg(r)!==0)return e[Xh(r)]}function hg(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Xh(i)]=r}function gg(e,t,n){let r,i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0;){let t=e[i],a=Array.isArray(t),c=a?t[1]:t,l=c===null,u=n[i+1];u===du&&(u=l?Gi:void 0);let d=l?Vi(u,r):c===r?u:void 0;if(a&&!xg(d)&&(d=Vi(t,r)),xg(d)&&(s=d,o))return s;let f=e[i+1];i=o?Xh(f):eg(f)}if(t!==null){let e=a?t.residualClasses:t.residualStyles;e!=null&&(s=Vi(e,r))}return s}function xg(e){return e!==void 0}function Sg(e,t){return e==null||e===``||(typeof t==`string`?e=Pl(e)+t:typeof e==`object`&&(e=Gr(Pl(e)))),e}function Cg(e,t){return!!(e.flags&(t?8:16))}function Z(e,t=``){let n=z(),r=lo(),i=e+27,a=r.firstCreatePass?wf(r,i,1,t,null):r.data[i],o=wg(r,n,a,t);n[i]=o,Yo()&&$u(r,n,o,a),go(a,!1)}var wg=(e,t,n,r)=>(Xo(!0),zl(t[11],r));function Tg(e,t,n,r=``){return Hf(e,wo(),n)?t+hi(n)+r:du}function Eg(e,t,n,r,i,a=``){let o=Uf(e,So(),n,i);return To(2),o?t+hi(n)+r+hi(i)+a:du}function Dg(e,t,n,r,i,a,o,s=``){let c=Wf(e,So(),n,i,o);return To(3),c?t+hi(n)+r+hi(i)+a+hi(o)+s:du}function Q(e){return $(``,e),Q}function $(e,t,n){let r=z(),i=Tg(r,e,t,n);return i!==du&&Ag(r,Vo(),i),$}function Og(e,t,n,r,i){let a=z(),o=Eg(a,e,t,n,r,i);return o!==du&&Ag(a,Vo(),o),Og}function kg(e,t,n,r,i,a,o){let s=z(),c=Dg(s,e,t,n,r,i,a,o);return c!==du&&Ag(s,Vo(),c),kg}function Ag(e,t,n){let r=Ia(t,e);Bl(e[11],r,n)}function jg(e,t){let n=xo()+e,r=z();return r[n]===du?Bf(r,n,t()):Vf(r,n)}function Mg(e,t){let n=e[t];return n===du?void 0:n}function Ng(e,t,n,r,i,a){let o=t+n;return Hf(e,o,i)?Bf(e,o+1,a?r.call(a,i):r(i)):Mg(e,o+1)}function Pg(e,t){let n=lo(),r,i=e+27;n.firstCreatePass?(r=Fg(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let a=r.factory||(r.factory=Fi(r.type,!0)),o=Ti(tp);try{let e=Tc(!1),t=a();return Tc(e),Ba(n,z(),i,t),t}finally{Ti(o)}}function Fg(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ig(e,t,n){let r=e+27,i=z(),a=za(i,r);return Lg(i,r)?Ng(i,xo(),t,a.transform,n,a):a.transform(n)}function Lg(e,t){return e[1].data[t].pure}var Rg=(()=>{class e{applicationErrorHandler=L(Es);appRef=L(Jm);taskService=L(as);ngZone=L(ps);zonelessEnabled=L(Ls);tracing=L(Su,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new nr;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ds):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(L(Rs,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let t=this.useMicrotaskScheduler?ls:cs;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>t(()=>this.tick())):this.ngZone.runOutsideAngular(()=>t(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(`isAngularZone_ID`+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(e){this.applicationErrorHandler(e)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function zg(){return[{provide:Is,useExisting:Rg},{provide:ps,useClass:xs},{provide:Ls,useValue:!0}]}function Bg(){return typeof $localize<`u`&&$localize.locale||`en-US`}var Vg=new F(``,{factory:()=>L(Vg,{optional:!0,skipSelf:!0})||Bg()}),Hg=class{destroyed=!1;listeners=null;errorHandler=L(Ts,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=L(ts);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new N(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let t=this.listeners?this.listeners.indexOf(e):-1;t>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[t]=null):this.listeners.splice(t,1))}}}emit(e){if(this.destroyed){console.warn(Wr(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let t=M(null);try{for(let t of this.listeners)try{t!==null&&t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Ug(this.listeners)),M(t),this.isEmitting=!1}}};function Ug(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function Wg(e,t){return wn(e,t?.equal)}(class e extends Error{_brand;constructor(e){super(e)}static IDLE=new e(`IDLE`);static LOADING=new e(`LOADING`)});function Gg(e,t){let n=Object.create(Zs);n.value=e,n.transformFn=t?.transform;function r(){if(on(n),n.value===Xs)throw new N(-950,null);return n.value}return r[nn]=n,r}function Kg(e){return new Hg}function qg(e,t){return Gg(e,t)}function Jg(e){return Gg(Xs,e)}var Yg=(qg.required=Jg,qg),Xg=new F(``),Zg=new F(``);function Qg(e){return!e.moduleRef}function $g(e){let t=Qg(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ps);return n.run(()=>{Qg(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Es),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Qg(e)){let n=()=>t.destroy(),r=e.platformInjector.get(Xg);r.add(n),t.onDestroy(()=>{i.unsubscribe(),r.delete(n)})}else{let t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(Xg);n.add(t),e.moduleRef.onDestroy(()=>{Xm(e.allPlatformModules,e.moduleRef),i.unsubscribe(),n.delete(t)})}return t_(r,n,()=>{let n=t.get(as),r=n.add(),i=t.get($p);return i.runInitializers(),i.donePromise.then(()=>{if(Gh(t.get(Vg,Wh)||`en-US`),!t.get(Zg,!0))return Qg(e)?t.get(Jm):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Qg(e)){let n=t.get(Jm);return e.rootComponent!==void 0&&n.bootstrap(e.rootComponent),n}return e_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void n.remove(r))})})}var e_;function t_(e,t,n){try{let r=n();return Lp(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e(n)),n}):r}catch(n){throw t.runOutsideAngular(()=>e(n)),n}}var n_=null;function r_(e=[],t){return $o.create({name:t,providers:[{provide:oa,useValue:`platform`},{provide:Xg,useValue:new Set([()=>n_=null])},...e]})}function i_(e=[]){if(n_)return n_;let t=r_(e);return n_=t,Km(),a_(t),t}function a_(e){let t=e.get(js,null);Ca(e,()=>{t?.forEach(e=>e())})}function o_(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;H(V.BootstrapApplicationStart);try{let e=i?.injector??i_(r);return $g({r3Injector:new Bp({providers:[zg(),Ds,...n||[]],parent:e,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:e,rootComponent:t})}catch(e){return Promise.reject(e)}finally{H(V.BootstrapApplicationEnd)}}var s_=null;function c_(){return s_}function l_(e){s_??=e}var u_=class{},d_=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}static ɵfac=function(t){return new(t||e)};static ɵpipe=qp({name:`json`,type:e,pure:!1})}return e})();function f_(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let e=n.indexOf(`=`),[r,i]=e==-1?[n,``]:[n.slice(0,e),n.slice(e+1)];if(r.trim()!==t)continue;let a=i;try{a=decodeURIComponent(i)}catch{}return a.length>1&&a[0]===`"`&&a[a.length-1]===`"`&&(a=a.slice(1,-1)),a}return null}var p_=`browser`,m_=class{_doc;constructor(e){this._doc=e}manager},h_=(()=>{class e extends m_{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}static ɵfac=function(t){return new(t||e)(I(es))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),g_=new F(``),__=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(e=>{e.manager=this});let n=e.filter(e=>!(e instanceof h_));this._plugins=n.slice().reverse();let r=e.find(e=>e instanceof h_);r&&this._plugins.push(r)}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(t=>t.supports(e)),!t)throw new N(-5101,!1);return this._eventNameToPlugin.set(e,t),t}static ɵfac=function(t){return new(t||e)(I(g_),I(ps))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),v_=`ng-app-id`;function y_(e){for(let t of e)t.remove()}function b_(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function x_(e,t,n,r){let i=e.head?.querySelectorAll(`style[${v_}="${t}"],link[${v_}="${t}"]`);if(!i||i.length===0)return!1;for(let e of i)e.removeAttribute(v_),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf(`/`)+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]});return!0}function S_(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var C_=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,x_(e,t,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,b_);t?.forEach(e=>this.addUsage(e,this.external,S_))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach(e=>this.removeUsage(e,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(t=>this.addElement(t,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(y_(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])y_(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,b_(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,S_(t,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let t of[...this.inline.values(),...this.external.values()]){let n=[];for(let r of t.elements)r.parentNode===e?r.remove():n.push(r);t.elements=n}}addElement(e,t){return this.nonce&&t.setAttribute(`nonce`,this.nonce),e.appendChild(t)}static ɵfac=function(t){return new(t||e)(I(es),I(ks),I(Ns,8),I(Ms))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),w_={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`},T_=/%COMP%/g,E_=`%COMP%`,D_=`_nghost-${E_}`,O_=`_ngcontent-${E_}`,k_=!0,A_=new F(``,{factory:()=>k_}),j_=new F(``);function M_(e){return O_.replace(T_,e)}function N_(e){return D_.replace(T_,e)}function P_(e,t){return t.map(t=>t.replace(T_,e))}var F_=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,t,n,r,i,a,o=null,s=null,c=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.ngZone=a,this.nonce=o,this.tracingService=s,this.cssVarNamespace=c??``,this.defaultRenderer=new I_(e,i,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof B_?n.applyToHost(e):n instanceof z_&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,a=this.ngZone,o=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,l=this.tracingService;switch(t.encapsulation){case Ml.Emulated:r=new B_(o,s,t,this.appId,c,i,a,l,this.cssVarNamespace);break;case Ml.ShadowDom:return new R_(o,e,t,i,a,this.nonce,l,this.cssVarNamespace,s);case Ml.ExperimentalIsolatedShadowDom:return new R_(o,e,t,i,a,this.nonce,l,this.cssVarNamespace);default:r=new z_(o,s,t,c,i,a,l,this.cssVarNamespace)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(t){return new(t||e)(I(__),I($f),I(ks),I(A_),I(es),I(ps),I(Ns),I(Su,8),I(j_,8))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),I_=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i=``){this.eventManager=e,this.doc=t,this.ngZone=n,this.tracingService=r,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(w_[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(L_(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){if(e){let r=L_(e)?e.content:e;if(n!=null&&n.parentNode!==r)throw new N(-5106,!1);r.insertBefore(t,n)}}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e==`string`?this.doc.querySelector(e):e;if(!n)throw new N(-5104,!1);return t||(n.textContent=``),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+`:`+t;let i=w_[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=w_[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){let i=t.startsWith(`--`);i&&(t=t.replace(`%NS%`,this.cssVarNamespace)),i||r&(fu.DashCase|fu.Important)?e.style.setProperty(t,n,r&fu.Important?`important`:``):e.style[t]=n}removeStyle(e,t,n){let r=t.startsWith(`--`);r&&(t=t.replace(`%NS%`,this.cssVarNamespace)),r||n&fu.DashCase?e.style.removeProperty(t):e.style[t]=``}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e==`string`&&(e=c_().getGlobalEventTarget(this.doc,e),!e))throw new N(-5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t===`__ngUnwrap__`)return e;e(t)===!1&&t.preventDefault()}}};function L_(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var R_=class extends I_{hostEl;sharedStylesHost;shadowRoot;constructor(e,t,n,r,i,a,o,s,c){super(e,r,i,o,s),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=P_(n.id,l).map(e=>e.replace(/%NS%/g,s));for(let e of l){let t=document.createElement(`style`);a&&t.setAttribute(`nonce`,a),t.textContent=e,this.shadowRoot.appendChild(t)}let u=n.getExternalStyles?.();if(u)for(let e of u){let t=S_(e,r);a&&t.setAttribute(`nonce`,a),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},z_=class extends I_{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let l=n.styles,u=c?P_(c,l):l;this.styles=u.map(e=>e.replace(/%NS%/g,s)),this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&hu.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},B_=class extends z_{contentAttr;hostAttr;constructor(e,t,n,r,i,a,o,s,c){let l=r+`-`+n.id;super(e,t,n,i,a,o,s,c,l),this.contentAttr=M_(l),this.hostAttr=N_(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,``)}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,``),n}},V_=class e extends u_{supportsDOMEvents=!0;static makeCurrent(){l_(new e)}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t||=this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t===`window`?window:t===`document`?e:t===`body`?e.body:null}getBaseHref(e){let t=U_();return t==null?null:W_(t)}resetBaseElement(){H_=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return f_(document.cookie,e)}},H_=null;function U_(){return H_||=document.head.querySelector(`base`),H_?H_.getAttribute(`href`):null}function W_(e){return new URL(e,document.baseURI).pathname}var G_=[`alt`,`control`,`meta`,`shift`],K_={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},q_={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},J_=(()=>{class e extends m_{constructor(e){super(e)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r,i){let a=e.parseEventName(n),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>c_().onAndCancel(t,a.domEventName,o,i))}static parseEventName(t){let n=t.toLowerCase().split(`.`),r=n.shift();if(n.length===0||r!==`keydown`&&r!==`keyup`)return null;let i=e._normalizeKey(n.pop()),a=``,o=n.indexOf(`code`);if(o>-1&&(n.splice(o,1),a=`code.`),G_.forEach(e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+`.`)}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=r,s.fullKey=a,s}static matchEventFullKeyCode(e,t){let n=K_[e.key]||e.key,r=``;return t.indexOf(`code.`)>-1&&(n=e.code,r=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),G_.forEach(t=>{if(t!==n){let n=q_[t];n(e)&&(r+=t+`.`)}}),r+=n,r===t)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(t){return new(t||e)(I(es))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})();async function Y_(e,t,n){return o_({rootComponent:e,...X_(t,n)})}function X_(e,t){return{platformRef:t?.platformRef,appProviders:[...tv,...e?.providers??[]],platformProviders:ev}}function Z_(){V_.makeCurrent()}function Q_(){return new Ts}function $_(){return _l(document),document}var ev=[{provide:Ms,useValue:p_},{provide:js,useValue:Z_,multi:!0},{provide:es,useFactory:$_}],tv=[{provide:oa,useValue:`root`},{provide:Ts,useFactory:Q_},{provide:g_,useClass:h_,multi:!0},{provide:g_,useClass:J_,multi:!0},F_,{provide:$f,useClass:C_},{provide:C_,useExisting:$f},__,{provide:Ff,useExisting:F_},[]];function nv(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e{let r=new ov({code:i,why:iv(a.why,e),fix:iv(a.fix,e),docs:o,cause:e.cause,sources:e.sources},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function lv(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n=0?n.slice(0,r):n}function Kr(e,t){return e?t?`${e} ${t}`:e:t||``}var qr=P({__forward_ref__:P});function Jr(e){return e.__forward_ref__=Jr,e}function Yr(e){return Xr(e)?e():e}function Xr(e){return typeof e==`function`&&Object.hasOwn(e,qr)&&e.__forward_ref__===Jr}function Zr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Qr(e){return $r(e,ni)}function $r(e,t){return Object.hasOwn(e,t)&&e[t]||null}function ei(e){return(e?.[ni]??null)||null}function ti(e){return e&&Object.hasOwn(e,ri)?e[ri]:null}var ni=P({ɵprov:P}),ri=P({ɵinj:P}),F=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(e,t){this._desc=e,this.ɵprov=void 0,typeof t==`number`?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.ɵprov=Zr({token:this,providedIn:t.providedIn||`root`,factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ii(e){return e&&!!e.ɵproviders}var ai=P({ɵcmp:P}),oi=P({ɵdir:P}),si=P({ɵpipe:P}),ci=P({ɵfac:P}),li=P({__NG_ELEMENT_ID__:P}),ui=P({__NG_ENV_ID__:P});function di(e){return mi(e,`@Component`),e[ai]||null}function fi(e){return mi(e,`@Directive`),e[oi]||null}function pi(e){return mi(e,`@Pipe`),e[si]||null}function mi(e,t){if(e==null)throw new N(-919,!1)}function hi(e){return typeof e==`string`?e:e==null?``:String(e)}var gi=P({ngErrorCode:P}),_i=P({ngErrorMessage:P}),vi=P({ngTokenPath:P});function yi(e,t){return xi(``,-200,t)}function bi(e,t){throw new N(-201,!1)}function xi(e,t,n){let r=new N(t,e);return r[gi]=t,r[_i]=e,n&&(r[vi]=n),r}function Si(e){return e[gi]}var Ci;function wi(){return Ci}function Ti(e){let t=Ci;return Ci=e,t}function Ei(e,t,n){let r=Qr(e);if(r&&r.providedIn==`root`)return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;bi(e,``)}var Di={},Oi=`__NG_DI_FLAG__`,ki=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=ji(t)||0;try{return this.injector.get(e,n&8?null:Di,n)}catch(e){if(Kn(e))return e;throw e}}};function Ai(e,t=0){let n=Un();if(n===void 0)throw new N(-203,!1);if(n===null)return Ei(e,void 0,t);{let r=Mi(t),i=n.retrieve(e,r);if(Kn(i)){if(r.optional)return null;throw i}return i}}function I(e,t=0){return(wi()||Ai)(Yr(e),t)}function L(e,t){return I(e,ji(t))}function ji(e){return e===void 0||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Mi(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ni(e){let t=[];for(let n=0;nArray.isArray(e)?Ii(e,t):t(e))}function Li(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ri(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zi(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function Bi(e,t,n){let r=Hi(e,t);return r>=0?e[r|1]=n:(r=~r,zi(e,r,t,n)),r}function Vi(e,t){let n=Hi(e,t);if(n>=0)return e[n|1]}function Hi(e,t){return Ui(e,t,1)}function Ui(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let a=r+(i-r>>1),o=e[a<t?i=a:r=a+1}return~(i<{n.push(e)};return Ii(t,e=>{let t=e;$i(t,a,[],r)&&(i||=[],i.push(t))}),i!==void 0&&Qi(i,a),n}function Qi(e,t){for(let n=0;n{t(e,r)})}}function $i(e,t,n,r){if(e=Yr(e),!e)return!1;let i=null,a=ti(e),o=!a&&di(e);if(!a&&!o){let t=e.ngModule;if(a=ti(t),a)i=t;else return!1}else if(o&&!o.standalone)return!1;else i=e;let s=r.has(i);if(o){if(s)return!1;if(r.add(i),o.dependencies){let e=typeof o.dependencies==`function`?o.dependencies():o.dependencies;for(let i of e)$i(i,t,n,r)}}else if(a){if(a.imports!=null&&!s){r.add(i);let e;try{Ii(a.imports,i=>{$i(i,t,n,r)&&(e||=[],e.push(i))})}finally{}e!==void 0&&Qi(e,t)}if(!s){let e=Fi(i)||(()=>new i);t({provide:i,useFactory:e,deps:Gi},i),t({provide:Ji,useValue:i,multi:!0},i),t({provide:Ki,useValue:()=>I(i),multi:!0},i)}let o=a.providers;if(o!=null&&!s){let n=e;ea(o,e=>{t(e,n)})}}else return!1;return i!==e&&e.providers!==void 0}function ea(e,t){for(let n of e)ii(n)&&(n=n.ɵproviders),Array.isArray(n)?ea(n,t):t(n)}var ta=P({provide:String,useValue:P});function na(e){return typeof e==`object`&&!!e&&ta in e}function ra(e){return!!(e&&e.useExisting)}function ia(e){return!!(e&&e.useFactory)}function aa(e){return typeof e==`function`}var oa=new F(``),sa={},ca={},la=void 0;function ua(){return la===void 0&&(la=new Yi),la}var da=class{},fa=class extends da{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Sa(e,e=>this.processProvider(e)),this.records.set(qi,va(void 0,this)),r.has(`environment`)&&this.records.set(da,va(void 0,this));let i=this.records.get(oa);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ji,Gi,{self:!0}))}retrieve(e,t){let n=ji(t)||0;try{return this.get(e,Di,n)}catch(e){if(Kn(e))return e;throw e}}destroy(){_a(this),this._destroyed=!0;let e=M(null);try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(e)}}onDestroy(e){return _a(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){_a(this);let t=Wn(this),n=Ti(void 0);try{return e()}finally{Wn(t),Ti(n)}}get(e,t=Di,n){if(_a(this),Object.hasOwn(e,ui))return e[ui](this);let r=ji(n),i=Wn(this),a=Ti(void 0);try{if(!(r&4)){let t=this.records.get(e);if(t===void 0){let n=xa(e)&&Qr(e);t=n&&this.injectableDefInScope(n)?va(pa(e),sa):null,this.records.set(e,t)}if(t!=null)return this.hydrate(e,t,r)}let n=r&2?ua():this.parent;return t=r&8&&t===Di?null:t,n.get(e,t)}catch(e){let t=Si(e);throw t===-200||t===-201?new N(t,null):e}finally{Ti(a),Wn(i)}}resolveInjectorInitializers(){let e=M(null),t=Wn(this),n=Ti(void 0);try{let e=this.get(Ki,Gi,{self:!0});for(let t of e)t()}finally{Wn(t),Ti(n),M(e)}}toString(){return`R3Injector[...]`}processProvider(e){e=Yr(e);let t=aa(e)?e:Yr(e&&e.provide),n=ha(e);if(!aa(e)&&e.multi===!0){let n=this.records.get(t);n||(n=va(void 0,sa,!0),n.factory=()=>Ni(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=M(null);try{if(t.value===ca)throw yi(``);return t.value===sa&&(t.value=ca,t.value=t.factory(void 0,n)),typeof t.value==`object`&&t.value&&ba(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{M(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=Yr(e.providedIn);return typeof t==`string`?t===`any`||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function pa(e){let t=Qr(e),n=t===null?Fi(e):t.factory;if(n!==null)return n;if(e instanceof F)throw new N(-204,!1);if(e instanceof Function)return ma(e);throw new N(-204,!1)}function ma(e){if(e.length>0)throw new N(-204,!1);let t=ei(e);return t===null?()=>new e:()=>t.factory(e)}function ha(e){return na(e)?va(void 0,e.useValue):va(ga(e),sa)}function ga(e,t,n){let r;if(aa(e)){let t=Yr(e);return Fi(t)||pa(t)}if(na(e))r=()=>Yr(e.useValue);else if(ia(e))r=()=>e.useFactory(...Ni(e.deps||[]));else if(ra(e))r=(t,n)=>I(Yr(e.useExisting),n!==void 0&&n&8?8:void 0);else{let t=Yr(e&&(e.useClass||e.provide));if(ya(e))r=()=>new t(...Ni(e.deps));else return Fi(t)||pa(t)}return r}function _a(e){if(e.destroyed)throw new N(-205,!1)}function va(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ya(e){return!!e.deps}function ba(e){return typeof e==`object`&&!!e&&typeof e.ngOnDestroy==`function`}function xa(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Sa(e,t){for(let n of e)Array.isArray(n)?Sa(n,t):n&&ii(n)?Sa(n.ɵproviders,t):t(n)}function Ca(e,t){let n;e instanceof fa?(_a(e),n=e):n=new ki(e);let r=Wn(n),i=Ti(void 0);try{return t()}finally{Wn(r),Ti(i)}}function wa(){return wi()!==void 0||Un()!=null}var Ta=1;function Ea(e){return Array.isArray(e)&&typeof e[Ta]==`object`}function Da(e){return Array.isArray(e)&&e[Ta]===!0}function Oa(e){return!!(e.flags&4)}function ka(e){return e.componentOffset>-1}function Aa(e){return(e.flags&1)==1}function ja(e){return!!e.template}function Ma(e){return!!(e[2]&512)}function Na(e){return(e[2]&256)==256}var Pa=`math`;function Fa(e){for(;Array.isArray(e);)e=e[0];return e}function Ia(e,t){return Fa(t[e])}function La(e,t){return Fa(t[e.index])}function Ra(e,t){return e.data[t]}function za(e,t){return e[t]}function Ba(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Va(e,t){let n=t[e];return Ea(n)?n:n[0]}function Ha(e){return(e[2]&128)==128}function Ua(e,t){return t==null?null:e[t]}function Wa(e){e[17]=0}function Ga(e){e[2]&1024||(e[2]|=1024,Ha(e)&&Ya(e))}function Ka(e,t){for(;e>0;)t=t[14],e--;return t}function qa(e){return!!(e[2]&9216||e[24]?.dirty)}function Ja(e){e[10].changeDetectionScheduler?.notify(8),e[2]&64&&(e[2]|=1024),qa(e)&&Ya(e)}function Ya(e){e[10].changeDetectionScheduler?.notify(0);let t=Qa(e);for(;t!==null&&!(t[2]&8192||(t[2]|=8192,!Ha(t)));)t=Qa(t)}function Xa(e,t){if(Na(e))throw new N(911,!1);e[21]===null&&(e[21]=[]),e[21].push(t)}function Za(e,t){if(e[21]===null)return;let n=e[21].indexOf(t);n!==-1&&e[21].splice(n,1)}function Qa(e){let t=e[3];return Da(t)?t[3]:t}function $a(e){return e[7]??=[]}function eo(e){return e.cleanup??=[]}var R={lFrame:Io(null),bindingsEnabled:!0,skipHydrationRootTNode:null},to=!1;function no(){return R.lFrame.elementDepthCount}function ro(){R.lFrame.elementDepthCount++}function io(){R.lFrame.elementDepthCount--}function ao(){return R.bindingsEnabled}function oo(){return R.skipHydrationRootTNode!==null}function so(e){return R.skipHydrationRootTNode===e}function co(){R.skipHydrationRootTNode=null}function z(){return R.lFrame.lView}function lo(){return R.lFrame.tView}function uo(e){return R.lFrame.contextLView=e,e[8]}function fo(e){return R.lFrame.contextLView=null,e}function po(){let e=mo();for(;e!==null&&e.type===64;)e=e.parent;return e}function mo(){return R.lFrame.currentTNode}function ho(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function go(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function _o(){return R.lFrame.isParent}function vo(){R.lFrame.isParent=!1}function yo(){return to}function bo(e){let t=to;return to=e,t}function xo(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function So(){return R.lFrame.bindingIndex}function Co(e){return R.lFrame.bindingIndex=e}function wo(){return R.lFrame.bindingIndex++}function To(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex+=e,n}function Eo(){return R.lFrame.inI18n}function Do(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ko(t)}function Oo(){return R.lFrame.currentDirectiveIndex}function ko(e){R.lFrame.currentDirectiveIndex=e}function Ao(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jo(e){R.lFrame.currentQueryIndex=e}function Mo(e){let t=e[1];return t.type===2?t.declTNode:t.type===1?e[5]:null}function No(e,t,n){if(n&4){let r=t,i=e;for(;r=r.parent,r===null&&!(n&1)&&(r=Mo(i),!(r===null||(i=i[14],r.type&10))););if(r===null)return!1;t=r,e=i}let r=R.lFrame=Fo();return r.currentTNode=t,r.lView=e,!0}function Po(e){let t=Fo(),n=e[1];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fo(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Io(e):t}function Io(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Lo(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ro=Lo;function zo(){let e=Lo();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bo(e){return(R.lFrame.contextLView=Ka(e,R.lFrame.contextLView))[8]}function Vo(){return R.lFrame.selectedIndex}function Ho(e){R.lFrame.selectedIndex=e}function Uo(){let e=R.lFrame;return Ra(e.tView,e.selectedIndex)}function Wo(){R.lFrame.currentNamespace=`svg`}function Go(){Ko()}function Ko(){R.lFrame.currentNamespace=null}function qo(){return R.lFrame.currentNamespace}var Jo=!0;function Yo(){return Jo}function Xo(e){Jo=e}function Zo(e,t=null,n=null,r){let i=Qo(e,t,n,r);return i.resolveInjectorInitializers(),i}function Qo(e,t=null,n=null,r,i=new Set){return new fa([n||Gi,Xi(e)],t||ua(),null,i)}var $o=class e{static THROW_IF_NOT_FOUND=Di;static NULL=new Yi;static create(e,t){if(Array.isArray(e))return Zo({name:``},t,e,``);{let t=e.name??``;return Zo({name:t},e.parent,e.providers,t)}}static ɵprov=Zr({token:e,providedIn:`any`,factory:()=>I(qi)});static __NG_ELEMENT_ID__=-1},es=new F(``),ts=class{static __NG_ELEMENT_ID__=rs;static __NG_ENV_ID__=e=>e},ns=class extends ts{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Na(this._lView)}onDestroy(e){let t=this._lView;return Xa(t,e),()=>Za(t,e)}};function rs(){return new ns(z())}var is=new F(``),as=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Br(!1);debugTaskTracker=L(is,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new kr(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),os=class extends Rr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,wa()&&(this.destroyRef=L(ts,{optional:!0})??void 0,this.pendingTasks=L(as,{optional:!0})??void 0)}emit(e){let t=M(null);try{super.next(e)}finally{M(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),a=n;if(e&&typeof e==`object`){let t=e;r=t.next?.bind(t),i=t.error?.bind(t),a=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&=this.wrapInTimeout(r),a&&=this.wrapInTimeout(a));let o=super.subscribe({next:r,error:i,complete:a});return e instanceof nr&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}};function ss(...e){}function cs(e){let t,n;function r(){e=ss;try{n!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame==`function`&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ls(e){return queueMicrotask(()=>e()),()=>{e=ss}}var us=`isAngularZone`,ds=`isAngularZone_ID`,fs=0,ps=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new os(!1);onMicrotaskEmpty=new os(!1);onStable=new os(!1);onError=new os(!1);constructor(e){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=!1}=e;if(typeof Zone>`u`)throw new N(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=i,_s(a)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(us)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){let i=this._inner,a=i.scheduleEventTask(`NgZoneEvent: `+r,e,ms,ss,ss);try{return i.runTask(a,t,n)}finally{i.cancelTask(a)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}},ms={};function hs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gs(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){cs(()=>{e.callbackScheduled=!1,vs(e),e.isCheckStableRunning=!0,hs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),vs(e)}function _s(e){let t=()=>{gs(e)},n=fs++;e._inner=e._inner.fork({name:`angular`,properties:{[us]:!0,[ds]:n,[ds+n]:!0},onInvokeTask:(n,r,i,a,o,s)=>{if(Ss(s))return n.invokeTask(i,a,o,s);try{return ys(e),n.invokeTask(i,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&a.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),bs(e)}},onInvoke:(n,r,i,a,o,s,c)=>{try{return ys(e),n.invoke(i,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cs(s)&&t(),bs(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&(i.change==`microTask`?(e._hasPendingMicrotasks=i.microTask,vs(e),hs(e)):i.change==`macroTask`&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function vs(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0)}function ys(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bs(e){e._nesting--,hs(e)}var xs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new os;onMicrotaskEmpty=new os;onStable=new os;onError=new os;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Ss(e){return ws(e,`__ignore_ng_zone__`)}function Cs(e){return ws(e,`__scheduler_tick__`)}function ws(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ts=class{_console=console;handleError(e){this._console.error(`ERROR`,e)}},Es=new F(``,{factory:()=>{let e=L(ps),t=L(da),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ts),n.handleError(r))})}}}),Ds={provide:Ki,useValue:()=>{L(Ts,{optional:!0})},multi:!0};function B(e,t){let[n,r,i]=Pn(e,t?.equal),a=n;return a[nn],a.set=r,a.update=i,a.asReadonly=Os.bind(a),a}function Os(){let e=this[nn];if(e.readonlyFn===void 0){let t=()=>this();t[nn]=e,e.readonlyFn=t}return e.readonlyFn}var ks=new F(``,{factory:()=>As}),As=`ng`,js=new F(``),Ms=new F(``,{providedIn:`platform`,factory:()=>`unknown`}),Ns=new F(``,{factory:()=>L(es).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null}),Ps=(()=>{class e{view;node;constructor(e,t){this.view=e,this.node=t}static __NG_ELEMENT_ID__=Fs}return e})();function Fs(){return new Ps(z(),po())}var Is=class{},Ls=new F(``,{factory:()=>!0}),Rs=new F(``),zs=(()=>{class e{static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new Bs})}return e})(),Bs=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)e||=t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}},Vs=class{[nn];constructor(e){this[nn]=e}destroy(){this[nn].destroy()}};function Hs(e,t){let n=t?.injector??L($o),r=t?.manualCleanup===!0?null:n.get(ts),i,a=n.get(Ps,null,{optional:!0}),o=n.get(Is);return a===null?i=qs(e,n.get(zs),o):(i=Ks(a.view,o,e),r instanceof ns&&r._lView===a.view&&(r=null)),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new Vs(i)}var Us={...Bn,cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=bo(!1);try{Vn(this)}finally{bo(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}},Ws={...Us,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}},Gs={...Us,consumerMarkedDirty(){this.view[2]|=8192,Ya(this.view),this.notifier.notify(13)},destroy(){if(vn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[23]?.delete(this)}};function Ks(e,t,n){let r=Object.create(Gs);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=Js(r,n),e[23]??=new Set,e[23].add(r),r.consumerMarkedDirty(r),r}function qs(e,t,n){let r=Object.create(Ws);return r.fn=Js(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<`u`?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Js(e,t){return()=>{t(t=>(e.cleanupFns??=[]).push(t))}}var Ys=(()=>{class e{internalPendingTasks=L(as);scheduler=L(Is);errorHandler=L(Es);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let t=this.add();try{e().catch(this.errorHandler).finally(t)}catch(e){this.errorHandler(e),t()}}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Xs=Symbol(`InputSignalNode#UNSET`),Zs={...Rn,transformFn:void 0,applyValueToInputSignal(e,t){In(e,t)}};function Qs(e){return{toString:e}.toString()}var V=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(V||{});function $s(e,t,n,r){t===null?e[n]=r:t.applyValueToInputSignal(t,r)}var ec=null;function tc(){return ec}var nc=[],H=function(e,t=null,n){for(let r=0;r=r)break}else t[c]<0&&(e[17]+=65536),(s>14>16&&(e[2]&3)===t&&(e[2]+=16384,lc(o,a)):lc(o,a)}var dc=-1,fc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function pc(e){return!!(e.flags&8)}function mc(e){return!!(e.flags&16)}function hc(e,t,n){let r=0;for(;rt){o=a-1;break}}}for(;a>16}function Cc(e,t){let n=Sc(e),r=t;for(;n>0;)r=r[14],n--;return r}var wc=!0;function Tc(e){let t=wc;return wc=e,t}var Ec=255,Dc=5,Oc=0,kc={};function Ac(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:Object.hasOwn(n,li)&&(r=n[li]),r??=n[li]=Oc++;let i=r&Ec,a=1<>Dc)]|=a}function jc(e,t){let n=Nc(e,t);if(n!==-1)return n;let r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Mc(r.data,e),Mc(t,null),Mc(r.blueprint,null));let i=Pc(e,t),a=e.injectorIndex;if(bc(i)){let e=xc(i),n=Cc(i,t),r=n[1].data;for(let i=0;i<8;i++)t[a+i]=n[e+i]|r[e+i]}return t[a+8]=i,a}function Mc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Yc(i),r===null)return dc;if(n++,i=i[14],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return dc}function Fc(e,t,n){Ac(e,t,n)}function Ic(e,t,n){if(n&8||e!==void 0)return e;bi(t,`NodeInjector`)}function Lc(e,t,n,r){if(n&8&&r===void 0&&(r=null),!(n&3)){let i=e[9],a=Ti(void 0);try{return i?i.get(t,r,n&8):Ei(t,r,n&8)}finally{Ti(a)}}return Ic(r,t,n)}function Rc(e,t,n,r=0,i){if(e!==null){if(t[2]&2048&&!(r&2)){let i=Jc(e,t,n,r,kc);if(i!==kc)return i}let i=zc(e,t,n,r,kc);if(i!==kc)return i}return Lc(t,n,r,i)}function zc(e,t,n,r,i){let a=Uc(n);if(typeof a==`function`){if(!No(t,e,r))return r&1?Ic(i,n,r):Lc(t,n,r,i);try{let e;if(e=a(r),e==null&&!(r&8))bi(n);else return e}finally{Ro()}}else if(typeof a==`number`){let i=null,o=Nc(e,t),s=dc,c=r&1?t[15][5]:null;for((o===-1||r&4)&&(s=o===-1?Pc(e,t):t[o+8],s===dc||!Gc(r,!1)?o=-1:(i=t[1],o=xc(s),t=Cc(s,t)));o!==-1;){let e=t[1];if(Wc(a,o,e.data)){let e=Bc(o,t,n,i,r,c);if(e!==kc)return e}s=t[o+8],s!==dc&&Gc(r,t[1].data[o+8]===c)&&Wc(a,o,t)?(i=e,o=xc(s),t=Cc(s,t)):o=-1}}return i}function Bc(e,t,n,r,i,a){let o=t[1],s=o.data[e+8],c=Vc(s,o,n,r==null?ka(s)&&wc:r!=o&&!!(s.type&3),i&1&&a===s);return c===null?kc:Hc(t,o,c,s,i)}function Vc(e,t,n,r,i){let a=e.providerIndexes,o=t.data,s=a&1048575,c=e.directiveStart,l=e.directiveEnd,u=a>>20,d=r?s:s+u,f=i?s+u:l;for(let e=d;e=c&&t.type===n)return e}if(i){let e=o[c];if(e&&ja(e)&&e.type===n)return c}return null}function Hc(e,t,n,r,i){let a=e[n],o=t.data;if(a instanceof fc){let s=a;if(s.resolving)throw yi(``);let c=Tc(s.canSeeViewProviders);s.resolving=!0,o[n].type||o[n];let l=s.injectImpl?Ti(s.injectImpl):null;No(e,r,0);try{a=e[n]=s.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&rc(n,o[n],t)}finally{l!==null&&Ti(l),Tc(c),s.resolving=!1,Ro()}}return a}function Uc(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=Object.hasOwn(e,li)?e[li]:void 0;return typeof t==`number`?t>=0?t&Ec:qc:t}function Wc(e,t,n){let r=1<>Dc)]&r)}function Gc(e,t){return!(e&2)&&!(e&1&&t)}var Kc=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Rc(this._tNode,this._lView,e,ji(n),t)}};function qc(){return new Kc(po(),z())}function Jc(e,t,n,r,i){let a=e,o=t;for(;a!==null&&o!==null&&o[2]&2048&&!Ma(o);){let e=zc(a,o,n,r|2,kc);if(e!==kc)return e;r&=-5;let t=a.parent;if(!t){let e=o[20];if(e){let t=e.get(n,kc,r);if(t!==kc)return t}t=Yc(o),o=o[14]}a=t}return i}function Yc(e){let t=e[1],n=t.type;return n===2?t.declTNode:n===1?e[5]:null}var Xc=()=>(typeof requestIdleCallback<`u`?requestIdleCallback:e=>setTimeout(e)).bind(globalThis),Zc=()=>(typeof requestIdleCallback<`u`?cancelIdleCallback:clearTimeout).bind(globalThis),Qc=new F(``,{factory:()=>new $c}),$c=class{requestIdleCallback=Xc();cancelIdleCallback=Zc();requestOnIdle(e,t){return this.requestIdleCallback(e,t)}cancelOnIdle(e){return this.cancelIdleCallback(e)}};function el(e){return{token:e.token,providedIn:e.autoProvided===!1?null:`root`,factory:e.factory,value:void 0}}function tl(){return nl(po(),z())}function nl(e,t){return new rl(La(e,t))}var rl=(()=>{class e{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=tl}return e})();function il(e){return(e.flags&128)==128}var al=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(al||{}),ol=new Map,sl=0;function cl(){return sl++}function ll(e){ol.set(e[19],e)}function ul(e){ol.delete(e[19])}var dl=`__ngContext__`;function fl(e,t){Ea(t)?(e[dl]=t[19],ll(t)):e[dl]=t}function pl(e){return hl(e[12])}function ml(e){return hl(e[4])}function hl(e){for(;e!==null&&!Da(e);)e=e[4];return e}var gl=void 0;function _l(e){gl=e}function vl(){if(gl!==void 0)return gl;if(typeof document<`u`)return document;throw new N(210,!1)}var yl=!1,bl=new F(``,{factory:()=>yl}),xl=new F(``),Sl=new WeakMap;function Cl(e,t){if(typeof e!=`object`||!e)return;let n=Sl.get(e);n||(n=new WeakSet,Sl.set(e,n)),n.add(t)}var wl=new F(``);function Tl(e){return(e.flags&32)==32}var El=()=>null;function Dl(e,t,n=!1){return El(e,t,n)}function Ol(e){return e.get(xl,!1,{optional:!0})}function kl(e,t){let n=e.contentQueries;if(n!==null){let r=M(null);try{for(let r=0;r|^->||--!>|)/g,Ll=`​$1​`;function Rl(e){return e.replace(Fl,e=>e.replace(Il,Ll))}function zl(e,t){return e.createText(t)}function Bl(e,t,n){e.setValue(t,n)}function Vl(e,t){return e.createComment(Rl(t))}function Hl(e,t,n){return e.createElement(t,n)}function Ul(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Wl(e,t,n){e.appendChild(t,n)}function Gl(e,t,n,r,i){r===null?Wl(e,t,n):Ul(e,t,n,r,i)}function Kl(e,t,n,r){e.removeChild(null,t,n,r)}function ql(e,t,n){e.setAttribute(t,`style`,n)}function Jl(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n)}function Yl(e,t,n){let{mergedAttrs:r,classes:i,styles:a}=n;r!==null&&hc(e,t,r),i!==null&&Jl(e,t,i),a!==null&&ql(e,t,a)}function Xl(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}var Zl=`ng-template`;function Ql(e,t,n,r){let i=0;if(r){for(;i-1){let e;for(;++ia?``:i[u+1].toLowerCase(),r&2&&l!==e){if(nu(r))return!1;o=!0}}}}}return nu(r)||o}function nu(e){return!(e&1)}function ru(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?`="`+t+`"`:``)+`]`}else r&8?i+=`.`+o:r&4&&(i+=` `+o)}else i!==``&&!nu(o)&&(t+=su(a,i),i=``),r=o,a||=!nu(r);n++}return i!==``&&(t+=su(a,i)),t}function lu(e){return e.map(cu).join(`,`)}function uu(e){let t=[],n=[],r=1,i=2;for(;r=0;e--){let{el:n,declarationView:s}=r[e],c=n.parentNode;n===t?(r.splice(e,1),vu.add(n),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):(a&&n===a||c&&i&&c!==i&&(o===null||s===null||o===s))&&(r.splice(e,1),n.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),n.parentNode?.removeChild(n))}}function bu(e,t,n){let r=_u(n),i=gu.get(e);i?i.some(e=>e.el===t)||i.push({el:t,declarationView:r}):gu.set(e,[{el:t,declarationView:r}])}var xu=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(xu||{}),Su=new F(``),Cu=new Set;function wu(e){Cu.has(e)||(Cu.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}))}var Tu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Eu=new F(``,{factory:()=>{let e=L(da),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Du(e,t,n){let r=e.get(Eu);if(Array.isArray(t))for(let e of t)r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Ou(e,t){let n=e.get(Eu);if(Array.isArray(t))for(let e of t)n.queue.delete(e);else n.queue.delete(t)}function ku(e,t){let n=e.get(Eu);if(t.detachedLeaveAnimationFns){for(let e of t.detachedLeaveAnimationFns)n.queue.delete(e);t.detachedLeaveAnimationFns=void 0}}function Au(e,t){for(let[n,r]of t)Du(e,r.animateFns)}function ju(e,t,n,r){let i=e?.[26]?.enter;t!==null&&i&&i.has(n.index)&&Au(r,i)}function Mu(e,t,n,r){try{n.get(qi)}catch{return r(!1)}let i=e?.[26];i?.enter?.has(t.index)&&Ou(n,i.enter.get(t.index).animateFns);let a=Nu(e,t,i);if(a.size===0){let n=!1;if(e){let r=[];Fu(e,t,r),n=r.length>0}if(!n)return r(!1)}e&&hu.add(e[19]),Du(n,()=>Pu(e,t,i||void 0,a,r),i||void 0)}function Nu(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[n,a]of i){if(r.has(n))continue;let i=e[1].data[n].parent;for(;i;){if(i===t){r.set(n,a);break}i=i.parent}}return r}function Pu(e,t,n,r,i){let a=[];if(n&&n.leave)for(let[e]of r){if(!n.leave.has(e))continue;let t=n.leave.get(e);for(let e of t.animateFns){let{promise:t}=e();a.push(t)}n.detachedLeaveAnimationFns=void 0}if(e&&Fu(e,t,a),a.length>0){let t=n||e?.[26];if(t){let n=t.running;n&&a.push(n),t.running=Promise.allSettled(a),Lu(e,t.running,i)}else Promise.allSettled(a).then(()=>{e&&hu.delete(e[19]),i(!0)})}else e&&hu.delete(e[19]),i(!1)}function Fu(e,t,n){if(t.type&12){let r=e[t.index];if(Da(r))for(let e=10;e{e[26]?.running===t&&(e[26].running=void 0,hu.delete(e[19])),n(!0)})}function Ru(e,t,n,r,i,a,o,s){if(i!=null){let c,l=!1;Da(i)?c=i:Ea(i)&&(l=!0,i=i[0]);let u=Fa(i);e===0&&r!==null?(ju(s,r,a,n),o==null?Wl(t,r,u):Ul(t,r,u,o||null,!0)):e===1&&r!==null?(ju(s,r,a,n),Ul(t,r,u,o||null,!0),yu(a,u,s)):e===2?(s?.[26]?.leave?.has(a.index)&&bu(a,u,s),vu.delete(u),Mu(s,a,n,e=>{if(vu.has(u)){vu.delete(u);return}Kl(t,u,l,e)})):e===3&&(vu.delete(u),Mu(s,a,n,()=>{t.destroyNode(u)})),c!=null&&sd(t,e,n,c,a,r,o)}}function zu(e,t){Vu(e,t),t[0]=null,t[5]=null}function Bu(e,t,n,r,i,a){r[0]=i,r[5]=t,id(e,r,n,1,i,a)}function Vu(e,t){t[10].changeDetectionScheduler?.notify(9),id(e,t,t[11],2,null,null)}function Hu(e){let t=e[12];if(!t)return Gu(e[1],e);for(;t;){let n=null;if(Ea(t))n=t[12];else{let e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ea(t)&&Gu(t[1],t),t=t[3];t===null&&(t=e),Ea(t)&&Gu(t[1],t),n=t&&t[4]}t=n}}function Uu(e,t){let n=e[9],r=n.indexOf(t);n.splice(r,1)}function Wu(e,t){if(Na(t))return;let n=t[11];n.destroyNode&&id(e,t,n,3,null,null),Hu(t)}function Gu(e,t){if(Na(t))return;let n=M(null);try{t[2]&=-129,t[2]|=256,t[24]&&vn(t[24]),qu(e,t),Ku(e,t),t[1].type===1&&t[11].destroy();let n=t[16];if(n!==null&&Da(t[3])){n!==t[3]&&Uu(n,t);let r=t[18];r!==null&&r.detachView(e)}ul(t)}finally{M(n)}}function Ku(e,t){let n=e.cleanup,r=t[7];if(n!==null)for(let e=0;e=0?r[t]():r[-t].unsubscribe(),e+=2}else{let t=r[n[e+1]];n[e].call(t)}r!==null&&(t[7]=null);let i=t[21];if(i!==null){t[21]=null;for(let e=0;e27&&_d(e,t,27,!1),H(o?V.TemplateUpdateStart:V.TemplateCreateStart,i,n),n(r,i)}finally{Ho(a),H(o?V.TemplateUpdateEnd:V.TemplateCreateEnd,i,n)}}function xd(e,t,n){Od(e,t,n),(n.flags&64)==64&&kd(e,t,n)}function Sd(e,t,n=La){let r=t.localNames;if(r!==null){let i=t.index+1;for(let a=0;a{Ya(e.lView)},consumerOnSignalRead(){this.lView[24]=this}};function $d(e){let t=e[24]??Object.create(ef);return t.lView=e,t}var ef={...an,consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:e=>{let t=Qa(e.lView);for(;t&&!tf(t[1]);)t=Qa(t);t&&Ga(t)},consumerOnSignalRead(){this.lView[24]=this}};function tf(e){return e.type!==2}function nf(e){if(e[23]===null)return;let t=!0;for(;t;){let n=!1;for(let t of e[23])if(t.dirty&&(n=!0,t.zone===null||Zone.current===t.zone?t.run():t.zone.run(()=>t.run()),e[23]===null))return;t=n&&!!(e[2]&8192)}}var rf=100;function af(e,t=0){let n=e[10].rendererFactory;n.begin?.();try{of(e,t)}finally{n.end?.()}}function of(e,t){let n=yo();try{bo(!0),ff(e,t);let n=0;for(;qa(e);){if(n===rf)throw new N(103,!1);n++,ff(e,1)}}finally{bo(n)}}function sf(e,t,n,r){if(Na(t))return;let i=t[2];Po(t);let a=!0,o=null,s=null;tf(e)?(s=Yd(t),o=pn(s)):rn()===null?(a=!1,s=$d(t),o=pn(s)):t[24]&&=(vn(t[24]),null);try{Wa(t),Co(e.bindingStartIndex),n!==null&&bd(e,t,n,2,r);let a=(i&3)==3;if(a){let n=e.preOrderCheckHooks;n!==null&&ac(t,n,null)}else{let n=e.preOrderHooks;n!==null&&oc(t,n,0,null),sc(t,0)}if(lf(t),nf(t),cf(t,0),e.contentQueries!==null&&kl(e,t),a){let n=e.contentCheckHooks;n!==null&&ac(t,n)}else{let n=e.contentHooks;n!==null&&oc(t,n,1),sc(t,1)}mf(e,t);let o=e.components;o!==null&&pf(t,o,0);let s=e.viewQuery;if(s!==null&&Al(2,s,r),a){let n=e.viewCheckHooks;n!==null&&ac(t,n)}else{let n=e.viewHooks;n!==null&&oc(t,n,2),sc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[22]){for(let e of t[22])e();t[22]=null}qd(t),t[2]&=-73}catch(e){throw Ya(t),e}finally{s!==null&&(hn(s,o),a&&Zd(s)),zo()}}function cf(e,t){for(let n=pl(e);n!==null;n=ml(n))for(let e=10;e0&&(e[n-1][4]=r[4]);let a=Ri(e,10+t);zu(r[1],r);let o=a[18];o!==null&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function xf(e,t,n,r){let i=10+r,a=n.length;r>0&&(n[i-1][4]=t),r-1&&(bf(e,n),Ri(t,n))}this._attachedToViewContainer=!1}Wu(this._lView[1],this._lView)}onDestroy(e){Xa(this._lView,e)}markForCheck(){hf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){Ja(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,af(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ma(this._lView),t=this._lView[16];t!==null&&!e&&Uu(t,this._lView),Vu(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=e;let t=Ma(this._lView),n=this._lView[16];n!==null&&!t&&Sf(n,this._lView),Ja(this._lView)}};function wf(e,t,n,r,i){let a=e.data[t];if(a===null)a=Tf(e,t,n,r,i),Eo()&&(a.flags|=32);else if(a.type&64){a.type=n,a.value=r,a.attrs=i;let e=ho();a.injectorIndex=e===null?-1:e.injectorIndex}return go(a,!0),a}function Tf(e,t,n,r,i){let a=mo(),o=_o(),s=o?a:a&&a.parent,c=e.data[t]=Df(e,s,n,t,r,i);return Ef(e,c,a,o),c}function Ef(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Df(e,t,n,r,i,a){let o=t?t.injectorIndex:-1,s=0;return oo()&&(s|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:i,namespace:qo(),attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Of(e){let t=e[6]??[],n=e[3][11],r=[];for(let e of t)e.data.di===void 0?kf(e,n):r.push(e);e[6]=r}function kf(e,t){let n=0,r=e.firstChild;if(r){let i=e.data.r;for(;nnull,jf=()=>null;function Mf(e,t){return Af(e,t)}function Nf(e,t,n){return jf(e,t,n)}var Pf=class{},Ff=class{},If=(()=>{class e{static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>null})}return e})();function Lf(e){return e.debugInfo?.className||e.type.name||null}var Rf={},zf=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Rf,n);return r!==Rf||t===Rf?r:this.parentInjector.get(e,t,n)}};function Bf(e,t,n){return e[t]=n}function Vf(e,t){return e[t]}function Hf(e,t,n){if(n===du)return!1;let r=e[t];return!Object.is(r,n)&&(e[t]=n,!0)}function Uf(e,t,n,r){let i=Hf(e,t,n);return Hf(e,t+1,r)||i}function Wf(e,t,n,r,i){let a=Uf(e,t,n,r);return Hf(e,t+2,i)||a}function Gf(e,t,n){return function r(i){let a=r.__ngNativeEl__;a!==void 0&&Cl(i,a),hf(ka(e)?Va(e.index,t):t,5);let o=t[8],s=Kf(t,o,n,i),c=r.__ngNextListenerFn__;for(;c;)s=Kf(t,o,c,i)&&s,c=c.__ngNextListenerFn__;return s}}function Kf(e,t,n,r){let i=M(null);try{return H(V.OutputStart,t,n),n(r)!==!1}catch(t){return Ld(e,t),!1}finally{H(V.OutputEnd,t,n),M(i)}}function qf(e,t,n,r,i,a,o,s){let c=Aa(e),l=!1,u=null;if(!r&&c&&(u=Yf(t,n,a,e.index)),u!==null){let e=u.__ngLastListenerFn__||u;e.__ngNextListenerFn__=o,u.__ngLastListenerFn__=o,l=!0}else{let o=La(e,n),c=r?r(o):o;r||(s.__ngNativeEl__=o);let l=i.listen(c,a,s);Jf(a)||Xf(r?t=>r(Fa(t[e.index])):e.index,t,n,a,s,l,!1)}return l}function Jf(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function Yf(e,t,n,r){let i=e.cleanup;if(i!=null)for(let e=0;er?n[r]:null}typeof a==`string`&&(e+=2)}return null}function Xf(e,t,n,r,i,a,o){let s=t.firstCreatePass?eo(t):null,c=$a(n),l=c.length;c.push(i,a),s&&s.push(r,e,l,(l+1)*(o?-1:1))}function Zf(e,t,n,r,i,a){let o=t[n],s=t[1],c=o[s.data[n].outputs[r]].subscribe(a);Xf(e.index,s,t,i,a,c,!0)}var Qf=Symbol(`BINDING`),$f=new F(``);function ep(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,a=0;if(t!==null)for(let e=0;e0&&(n.directiveToIndex=new Map);for(let c=0;c0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function mp(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,i]=e[t],a={propName:n,templateName:t,isSignal:(r&vd.SignalBased)!==0};return i&&(a.transform=i),a})}function Sp(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Cp(e,t,n){let r=t instanceof da?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new zf(n,r):n}function wp(e){let t=e.get(Ff,null);if(t===null)throw new N(407,!1);return{rendererFactory:t,sanitizer:e.get(If,null),changeDetectionScheduler:e.get(Is,null),ngReflect:!1,tracingService:e.get(Su,null,{optional:!0})}}function Tp(e,t,n){let r=Dp(e);return Hl(t,r,r===`svg`?`svg`:r===`math`?Pa:n)}function Ep(e){if((e&&`localName`in e&&typeof e.localName==`string`?e.localName:e?.tagName)?.toLowerCase()===`script`)throw new N(905,!1)}function Dp(e){return(e.selectors[0][0]||`div`).toLowerCase()}var Op=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=xp(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Sp(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=lu(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,a,o){H(V.DynamicComponentStart);let s=M(null);try{let s=this.componentDef,c=Cp(s,r||this.ngModule,e),l=wp(c),u=l.tracingService;return u&&u.componentCreate?u.componentCreate(Lf(s),()=>this.createComponentRef(l,c,t,n,i,a,o)):this.createComponentRef(l,c,t,n,i,a,o)}finally{M(s)}}createComponentRef(e,t,n,r,i,a,o){let s=this.componentDef,c=kp(r,s,a,i),l=e.rendererFactory.createRenderer(null,s),u=r?Cd(l,r,s.encapsulation,t):Tp(s,l,o??null);Ep(u);let d=t.get($f,null),f=Ap(u,()=>t.get(es,null)??vl());d&&d.addHost(f);let p=a?.some(Mp)||i?.some(e=>typeof e!=`function`&&e.bindings.some(Mp)),m=fd(null,c,null,512|md(s),null,null,e,l,t,null,Dl(u,t,!0));d&&yp&&f instanceof ShadowRoot&&Xa(m,()=>{d.removeHost(f)}),m[27]=u,Po(m);let h=null;try{let e=gp(27,m,2,`#host`,()=>c.directiveRegistry,!0,0);Yl(l,u,e),fl(u,m),xd(c,m,e),jl(c,e,m),_p(c,e),n!==void 0&&Pp(e,this.ngContentSelectors,n),h=Va(e.index,m),m[8]=h[8],Vd(c,m,null)}catch(e){throw h!==null&&ul(h),ul(m),e}finally{H(V.DynamicComponentEnd),zo()}return new Np(this.componentType,m,!!p)}};function kp(e,t,n,r){let i=e?[`ng-version`,`22.1.7`]:uu(t.selectors[0]),a=null,o=null,s=0;if(n)for(let e of n)s+=e[Qf].requiredVars,e.create&&(e.targetIdx=0,(a??=[]).push(e)),e.update&&(e.targetIdx=0,(o??=[]).push(e));if(r)for(let e=0;e{if(n&1&&e)for(let t of e)t.create();if(n&2&&t)for(let e of t)e.update()}}function Mp(e){let t=e[Qf].kind;return t===`input`||t===`twoWay`}var Np=class extends Pf{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Ra(t[1],27),this.location=nl(this._tNode,t),this.instance=Va(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new Cf(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView;Rd(n,r[1],r,e,t),this.previousInputValues.set(e,t),hf(Va(n.index,r),1)}get injector(){return new Kc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Pp(e,t,n){let r=e.projection=[];for(let e=0;e!1;function Ip(e,t,n){return Fp(e,t,n)}function Lp(e){return!!e&&typeof e.then==`function`}function Rp(e){return!!e&&typeof e.subscribe==`function`}var zp=class{},Bp=class extends zp{injector;instance=null;constructor(e){super();let t=new fa([...e.providers,{provide:zp,useValue:this}],e.parent||ua(),e.debugName,new Set([`environment`]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Vp(e,t,n=null){return new Bp({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hp=(()=>{class e{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let t=Zi(!1,e.type),n=t.length>0?Vp([t],this._injector,``):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Zr({token:e,providedIn:`environment`,factory:()=>new e(I(da))})}return e})();function Up(e){return Qs(()=>{let t=Jp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==al.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(Hp).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ml.Emulated,styles:e.styles||Gi,_:null,schemas:e.schemas||null,tView:null,id:``};t.standalone&&wu(`NgStandalone`),Yp(n);let r=e.dependencies;return n.directiveDefs=Xp(r,Wp),n.pipeDefs=Xp(r,pi),n.id=Zp(n),n})}function Wp(e){return di(e)||fi(e)}function Gp(e,t){if(e==null)return Wi;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],a,o,s,c;Array.isArray(i)?(s=i[0],a=i[1],o=i[2]??a,c=i[3]||null):(a=i,o=i,s=vd.None,c=null),n[a]=[r,s,c],t[a]=o}return n}function Kp(e){if(e==null)return Wi;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function qp(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jp(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Wi,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Gi,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Gp(e.inputs,t),outputs:Kp(e.outputs),debugInfo:null}}function Yp(e){e.features?.forEach(t=>t(e))}function Xp(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let e of n){let n=t(e);n!==null&&r.push(n)}return r}:null}function Zp(e){let t=0,n=typeof e.consts==`function`?``:e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let e of r.join(`|`))t=Math.imul(31,t)+e.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var Qp=new F(``),$p=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t});appInits=L(Qp,{optional:!0})??[];injector=L($o);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let t of this.appInits){let n=Ca(this.injector,t);if(Lp(n))e.push(n);else if(Rp(n)){let t=new Promise((e,t)=>{n.subscribe({complete:e,error:t})});e.push(t)}}let t=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),e.length===0&&t(),this.initialized=!0}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function em(e,t,n,r,i,a,o,s){if(n.firstCreatePass){e.mergedAttrs=vc(e.mergedAttrs,e.attrs);let t=e.tView=ld(2,e,i,a,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),t.queries=n.queries.embeddedTView(e))}s&&(e.flags|=s),go(e,!1);let c=rm(n,t,e,r);Yo()&&$u(n,t,c,e),fl(c,t);let l=gf(c,t,c,e);t[r+27]=l,gd(t,l),Ip(l,e,t)}function tm(e,t,n,r,i,a,o,s,c,l,u){let d=n+27,f;if(t.firstCreatePass){if(f=wf(t,d,4,o||null,s||null),l!=null){let e=Ua(t.consts,l);f.localNames=[];for(let t=0;t{class e{cachedInjectors=new Map;getOrCreateInjector(e,t,n,r){if(!this.cachedInjectors.has(e)){let i=n.length>0?Vp(n,t,r):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Zr({token:e,providedIn:`environment`,factory:()=>new e})}return e})(),Nm=new F(``);function Pm(e,t,n){return e.get(Mm).getOrCreateInjector(t,e,n,``)}function Fm(e,t,n){if(e instanceof zf){let r=e.injector,i=e.parentInjector;return new zf(r,Pm(i,t,n))}let r=e.get(da);return r===e?Pm(e,t,n):new zf(e,Pm(r,t,n))}function Im(e,t,n,r=!1){let i=n[3],a=i[1];if(Na(i))return;let o=Cm(i,t),s=o[1],c=o[mm];if(!(c!==null&&ee.data.s===t[1])??-1;return{dehydratedView:n>-1?e[6][n]:null,dehydratedViewIx:n}}function Rm(e,t,n,r,i){H(V.DeferBlockStateStart);let a=Dm(e,i,r);if(a!==null){t[1]=e;let o=i[1],s=Ra(o,a+27);yf(n,0);let c;if(e===cm.Complete){let e=Tm(o,r),t=e.providers;t&&t.length>0&&(c=Fm(i[9],e,t))}let{dehydratedView:l,dehydratedViewIx:u}=Lm(n,t),d=Ud(i,s,null,{injector:c,dehydratedView:l});if(vf(n,d,0,Wd(s,l)),Ga(d),u>-1&&n[6]?.splice(u,1),(e===cm.Complete||e===cm.Error)&&Array.isArray(t[hm])){for(let e of t[hm])e();t[hm]=null}}H(V.DeferBlockStateEnd)}function zm(e,t){return e{e.loadingState===am.COMPLETE?Im(cm.Complete,t,n):e.loadingState===am.FAILED&&Im(cm.Error,t,n)})}var Hm=null;function Um(e,t){return t[9].get(Nm,null,{optional:!0})?.behavior!==_m.Manual}var Wm=new F(``),Gm=new F(``);function Km(){Mn(()=>{throw new N(600,``)})}var qm=10,Jm=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=L(Es);afterRenderManager=L(Tu);zonelessEnabled=L(Ls);rootEffectScheduler=L(zs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Rr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=L(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Vr(e=>!e))}constructor(){L(Su,{optional:!0})}whenStable(){let e;return new Promise(t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})}).finally(()=>{e.unsubscribe()})}_injector=L(da);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,t){return this.bootstrapImpl(e,t)}bootstrapImpl(e,t,n=$o.NULL){return this._injector.get(ps).run(()=>{if(H(V.BootstrapComponentStart),!this._injector.get($p).done)throw new N(405,``);let r=di(e),i=this._injector.get(zp),a=new Op(r,i);this.componentTypes.push(e);let{hostElement:o,directives:s,bindings:c}=Ym(t),l=o||a.selector,u=a.create(n,[],l,i.injector,s,c),d=u.location.nativeElement,f=u.injector.get(Wm,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Xm(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),H(V.BootstrapComponentEnd,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(V.ChangeDetectionStart),this.tracingSnapshot===null?this.tickImpl():this.tracingSnapshot.run(xu.CHANGE_DETECTION,this.tickImpl)}tickImpl=()=>{if(this._runningTick)throw H(V.ChangeDetectionEnd),new N(101,!1);let e=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(e),this.afterTick.next(),H(V.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ff,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++qa(e))){this.dirtyFlags|=2;return}this.dirtyFlags&=-8}attachView(e){let t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){let t=e;Xm(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(e){this.internalErrorHandler(e)}this.components.push(e),this._injector.get(Gm,[]).forEach(t=>t(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Xm(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function Ym(e){return e===void 0||typeof e==`string`||e instanceof Element?{hostElement:e}:e}function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zm(e,t,n){let r=t.get($m);return r.add(e,n),()=>r.remove(e)}function Qm(e){return(t,n)=>Zm(t,n,e)}var $m=(()=>{class e{buckets=new Map;callbackBucket=new Map;applicationRef=L(Jm);ngZone=L(ps);idleService=L(Qc);add(e,t){let n=eh(t);this.callbackBucket.set(e,n);let r=this.buckets.get(n);r??(r={idleId:null,queue:new Set},this.buckets.set(n,r)),r.queue.add(e),this.scheduleBucket(r,t)}remove(e){let t=this.callbackBucket.get(e);if(t===void 0)return;this.callbackBucket.delete(e);let n=this.buckets.get(t);n&&(n.queue.delete(e),n.queue.size===0&&(this.cancelBucket(n),this.buckets.delete(t)))}scheduleBucket(e,t){if(e.idleId!==null)return;let n=eh(t),r=r=>{for(let t of e.queue)if(t(),this.applicationRef._tick(),e.queue.delete(t),this.callbackBucket.delete(t),r&&r.timeRemaining()===0&&!r.didTimeout)break;e.idleId=null,e.queue.size>0?this.scheduleBucket(e,t):this.buckets.delete(n)};e.idleId=this.idleService.requestOnIdle(e=>this.ngZone.run(()=>r(e)),t)}cancelBucket(e){e.idleId!==null&&(this.idleService.cancelOnIdle(e.idleId),e.idleId=null)}ngOnDestroy(){for(let e of this.buckets.values())this.cancelBucket(e);this.buckets.clear(),this.callbackBucket.clear()}static ɵprov=Zr({token:e,providedIn:`root`,factory:()=>new e})}return e})();function eh(e){return!e||e.timeout==null?``:`${e.timeout}`}function th(e){let t=z(),n=po();if(Bm(t,n),!Um(0,t))return;let r=t[9];vm(0,Cm(t,n),e(()=>rh(0,t,n),r))}function nh(e,t,n){let r=t[9],i=t[1];if(e.loadingState!==am.NOT_STARTED)return e.loadingPromise??Promise.resolve();let a=Cm(t,n),o=jm(i,e);e.loadingState=am.IN_PROGRESS,ym(1,a);let s=e.dependencyResolverFn,c=r.get(Ys).add();return s?(e.loadingPromise=Promise.allSettled(s()).then(n=>{let r=!1,i=[],a=[];for(let e=0;e0&&(t.directiveRegistry=Am(t.directiveRegistry,i),e.providers=Zi(!1,...i.map(e=>e.type))),a.length>0&&(t.pipeRegistry=Am(t.pipeRegistry,a))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=am.COMPLETE,c()}),e.loadingPromise)}function rh(e,t,n){let r=t[1],i=t[n.index];if(!Um(e,t))return;let a=Cm(t,n),o=Tm(r,n);switch(bm(a),o.loadingState){case am.NOT_STARTED:Im(cm.Loading,n,i),nh(o,t,n),o.loadingState===am.IN_PROGRESS&&Vm(o,n,i);break;case am.IN_PROGRESS:Im(cm.Loading,n,i),Vm(o,n,i);break;case am.COMPLETE:Im(cm.Complete,n,i);break;case am.FAILED:Im(cm.Error,n,i)}}function ih(e,t,n){return e===0?oh(t,n):e!==2||!oh(t,n)}function ah(e){return e!=null&&(e&1)==1}function oh(e,t){let n=e[9],r=Tm(e[1],t),i=Ol(n),a=ah(r.flags),o=Cm(e,t)[pm]!==null;return!(a&&o&&i)}function sh(e,t,n,r,i,a,o,s,c,l){let u=z(),d=lo(),f=e+27,p=tm(u,d,e,null,0,0),m=u[9],h=Ol(m);if(d.firstCreatePass){wu(`NgDefer`);let e={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:a??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:am.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:l??0};c?.(d,e,s,o),Em(d,f,e)}let g=u[f];Ip(g,p,u);let _=null,v=null;if(g[6]?.length>0){let e=g[6][0].data;v=e.di??null,_=e.s}let y=[null,lm.Initial,null,null,null,null,v,_,null,null];wm(u,f,y);let b=null;v!==null&&h&&(b=m.get(wl),b.add(v,{lView:u,tNode:p,lContainer:g}));let ee=()=>{bm(y),v!==null&&b?.cleanup([v])};vm(0,y,()=>Za(u,ee)),Xa(u,ee)}function ch(e){ih(0,z(),po())&&th(Qm({timeout:e}))}function lh(e,t,n,r){let i=z();return Hf(i,wo(),t)&&(lo(),Md(Uo(),i,e,t,n,r)),lh}var uh=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function dh(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function fh(e,t,n,r){let i,a,o=0,s=e.length-1;if(Array.isArray(t)){M(r);let c=t.length-1;for(M(null);o<=s&&o<=c;){let r=e.at(o),l=t[o],u=dh(o,r,o,l,n);if(u!==0){u<0&&e.updateValue(o,l),o++;continue}let d=e.at(s),f=t[c],p=dh(s,d,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(o,r),h=n(s,d),g=n(o,l);if(Object.is(g,h)){let t=n(c,f);Object.is(t,m)?(e.swap(o,s),e.updateValue(s,f),c--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(i??=new gh,a??=hh(e,o,s,n),ph(e,i,o,g))e.updateValue(o,l),o++,s++;else if(a.has(g))i.set(m,e.detach(o)),s--;else{let n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=c;)mh(e,i,n,o,t[o]),o++}else if(t!=null){M(r);let c=t[Symbol.iterator]();M(null);let l=c.next();for(;!l.done&&o<=s;){let t=e.at(o),r=l.value,u=dh(o,t,o,r,n);if(u!==0)u<0&&e.updateValue(o,r),o++,l=c.next();else{i??=new gh,a??=hh(e,o,s,n);let u=n(o,r);if(ph(e,i,o,u))e.updateValue(o,r),o++,s++,l=c.next();else if(!a.has(u))e.attach(o,e.create(o,r)),o++,s++,l=c.next();else{let r=n(o,t);i.set(r,e.detach(o)),s--}}}for(;!l.done;)mh(e,i,n,e.length,l.value),l=c.next()}for(;o<=s;)e.destroy(e.detach(s--));i?.forEach(t=>{e.destroy(t)})}function ph(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function mh(e,t,n,r,i){if(ph(e,t,r,n(r,i)))e.updateValue(r,i);else{let t=e.create(r,i);e.attach(r,t)}}function hh(e,t,n,r){let i=new Set;for(let a=t;a<=n;a++)i.add(r(a,e.at(a)));return i}var gh=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function W(e,t,n,r,i,a,o,s){wu(`NgControlFlow`);let c=z(),l=lo();return tm(c,l,e,t,n,r,i,Ua(l.consts,a),256,o,s),_h}function _h(e,t,n,r,i,a,o,s){wu(`NgControlFlow`);let c=z(),l=lo();return tm(c,l,e,t,n,r,i,Ua(l.consts,a),512,o,s),_h}function G(e,t){wu(`NgControlFlow`);let n=z(),r=wo(),i=n[r]===du?-1:n[r],a=i===-1?void 0:Ch(n,27+i);if(Hf(n,r,e)){let r=M(null);try{if(a!==void 0&&yf(a,0),e!==-1){let r=27+e,i=Ch(n,r),a=Oh(n[1],r),o=Nf(i,a,n);vf(i,Ud(n,a,t,{dehydratedView:o}),0,Wd(a,o))}}finally{M(r)}}else if(a!==void 0){let e=_f(a,0);e!==void 0&&(e[8]=t)}}var vh=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-10}};function yh(e){return e}function bh(e,t){return t}var xh=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function K(e,t,n,r,i,a,o,s,c,l,u,d,f){wu(`NgControlFlow`);let p=z(),m=lo(),h=c!==void 0,g=z(),_=new xh(h,s?o.bind(g[15][8]):o);g[27+e]=_,tm(p,m,e+1,t,n,r,i,Ua(m.consts,a),256),h&&tm(p,m,e+2,c,l,u,d,Ua(m.consts,f),512)}var Sh=class extends uh{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-10}at(e){return this.getLView(e)[8].$implicit}attach(e,t){let n=t[6];this.needsIndexUpdate||=e!==this.length,vf(this.lContainer,t,e,Wd(this.templateTNode,n)),wh(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Th(this.lContainer,e),Eh(this.lContainer,e)}create(e,t){let n=Mf(this.lContainer,this.templateTNode.tView.ssrId);return Ud(this.hostLView,this.templateTNode,new vh(this.lContainer,t,e),{dehydratedView:n})}destroy(e){Wu(e[1],e)}updateValue(e,t){this.getLView(e)[8].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e0){let e=n[9];ku(e,r),hu.delete(n[19]),r.detachedLeaveAnimationFns=void 0}}function Th(e,t){if(e.length<=10)return;let n=e[10+t],r=n?n[26]:void 0;r&&r.leave&&r.leave.size>0&&(r.detachedLeaveAnimationFns=[])}function Eh(e,t){return bf(e,t)}function Dh(e,t){return _f(e,t)}function Oh(e,t){return Ra(e,t)}function kh(e,t,n){let r=z();return Hf(r,wo(),t)&&(lo(),Td(Uo(),r,e,t,r[11],n)),kh}function Ah(e,t,n,r,i){Rd(t,e,n,i?`class`:`style`,r)}function jh(e,t,n,r){let i=z(),a=i[1],o=e+27,s=a.firstCreatePass?gp(o,i,2,t,jd,ao(),n,r):a.data[o];if(ka(s)){let n=i[10].tracingService;if(n&&n.componentCreate){let o=a.data[s.directiveStart+s.componentOffset];return n.componentCreate(Lf(o),()=>(Mh(e,t,i,s,r),jh))}}return Mh(e,t,i,s,r),jh}function Mh(e,t,n,r,i){if(Fd(r,n,e,t,Ih),Aa(r)){let e=n[1];xd(e,n,r),jl(e,r,n)}i!=null&&Sd(n,r)}function Nh(){let e=lo(),t=Id(po());return e.firstCreatePass&&_p(e,t),so(t)&&co(),io(),t.classesWithoutHost!=null&&pc(t)&&Ah(e,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&mc(t)&&Ah(e,t,z(),t.stylesWithoutHost,!1),Nh}function Ph(e,t,n,r){return jh(e,t,n,r),Nh(),Ph}function J(e,t,n,r){let i=z(),a=i[1],o=e+27,s=a.firstCreatePass?vp(o,a,2,t,n,r):a.data[o];return Fd(s,i,e,t,Ih),r!=null&&Sd(i,s),J}function Y(){return so(Id(po()))&&co(),io(),Y}function Fh(e,t,n,r){return J(e,t,n,r),Y(),Fh}var Ih=(e,t,n,r,i)=>(Xo(!0),Hl(t[11],r,qo()));function Lh(){let e=lo(),t=Id(po());return e.firstCreatePass&&_p(e,t),Lh}function Rh(e,t,n){let r=z(),i=r[1],a=e+27,o=i.firstCreatePass?vp(a,i,8,`ng-container`,t,n):i.data[a];return Fd(o,r,e,`ng-container`,Vh),n!=null&&Sd(r,o),Rh}function zh(){return Id(po()),Lh}function Bh(e,t,n){return Rh(e,t,n),zh(),Bh}var Vh=(e,t,n,r,i)=>(Xo(!0),Vl(t[11],``));function Hh(){return z()}function Uh(e,t,n){let r=z();return Hf(r,wo(),t)&&(lo(),Ed(Uo(),r,e,t,r[11],n)),Uh}var Wh=`en-US`;function Gh(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`)}function Kh(e,t,n){let r=z(),i=lo(),a=po();return Jh(i,r,r[11],a,e,t,n),Kh}function qh(e,t,n){let r=z(),i=lo(),a=po();return(a.type&3||n)&&qf(a,i,r,n,r[11],e,t,Gf(a,r,t)),qh}function Jh(e,t,n,r,i,a,o){let s=!0,c=null;if((r.type&3||o)&&(c??=Gf(r,t,a),qf(r,e,t,o,n,i,a,c)&&(s=!1)),s){let e=r.outputs?.[i],n=r.hostDirectiveOutputs?.[i];if(n&&n.length)for(let e=0;e>17&32767}function Zh(e){return(e&2)==2}function Qh(e,t){return e&131071|t<<17}function $h(e){return e|2}function eg(e){return(e&131068)>>2}function tg(e,t){return e&-131069|t<<2}function ng(e){return(e&1)==1}function rg(e){return e|1}function ig(e,t,n,r,i,a){let o=a?t.classBindings:t.styleBindings,s=Xh(o),c=eg(o);e[r]=n;let l=!1,u;if(Array.isArray(n)){let e=n;u=e[1],(u===null||Hi(e,u)>0)&&(l=!0)}else u=n;if(i){if(c!==0){let t=Xh(e[s+1]);e[r+1]=Yh(t,s),t!==0&&(e[t+1]=tg(e[t+1],r)),e[s+1]=Qh(e[s+1],r)}else e[r+1]=Yh(s,0),s!==0&&(e[s+1]=tg(e[s+1],r)),s=r}else e[r+1]=Yh(c,0),s===0?s=r:e[c+1]=tg(e[c+1],r),c=r;l&&(e[r+1]=$h(e[r+1])),og(e,u,r,!0),og(e,u,r,!1),ag(t,u,e,r,a),o=Yh(s,c),a?t.classBindings=o:t.styleBindings=o}function ag(e,t,n,r,i){let a=i?e.residualClasses:e.residualStyles;a!=null&&typeof t==`string`&&Hi(a,t)>=0&&(n[r+1]=rg(n[r+1]))}function og(e,t,n,r){let i=e[n+1],a=t===null,o=r?Xh(i):eg(i),s=!1;for(;o!==0&&(s===!1||a);){let n=e[o],i=e[o+1];sg(n,t)&&(s=!0,e[o+1]=r?rg(i):$h(i)),o=r?Xh(i):eg(i)}s&&(e[n+1]=r?$h(i):rg(i))}function sg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t==`string`?Hi(e,t)>=0:!1}function cg(e,t,n){return ug(e,t,n,!1),cg}function lg(e,t){return ug(e,t,null,!0),lg}function ug(e,t,n,r){let i=z(),a=lo(),o=To(2);if(a.firstUpdatePass&&fg(a,e,o,r),t!==du&&Hf(i,o,t)){let s=a.data[Vo()];yg(a,s,i,i[11],e,i[o+1]=Sg(t,n),r,o)}}function dg(e,t){return t>=e.expandoStartIndex}function fg(e,t,n,r){let i=e.data;if(i[n+1]===null){let a=i[Vo()],o=dg(e,n);Cg(a,r)&&t===null&&!o&&(t=!1),t=pg(i,a,t,r),ig(i,a,t,n,o,r)}}function pg(e,t,n,r){let i=Ao(e),a=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=_g(null,e,t,n,r),n=vg(n,t.attrs,r),a=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i){if(n=_g(i,e,t,n,r),a===null){let n=mg(e,t,r);n!==void 0&&Array.isArray(n)&&(n=_g(null,e,t,n[1],r),n=vg(n,t.attrs,r),hg(e,t,r,n))}else a=gg(e,t,r)}}return a!==void 0&&(r?t.residualClasses=a:t.residualStyles=a),n}function mg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(eg(r)!==0)return e[Xh(r)]}function hg(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Xh(i)]=r}function gg(e,t,n){let r,i=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0;){let t=e[i],a=Array.isArray(t),c=a?t[1]:t,l=c===null,u=n[i+1];u===du&&(u=l?Gi:void 0);let d=l?Vi(u,r):c===r?u:void 0;if(a&&!xg(d)&&(d=Vi(t,r)),xg(d)&&(s=d,o))return s;let f=e[i+1];i=o?Xh(f):eg(f)}if(t!==null){let e=a?t.residualClasses:t.residualStyles;e!=null&&(s=Vi(e,r))}return s}function xg(e){return e!==void 0}function Sg(e,t){return e==null||e===``||(typeof t==`string`?e=Pl(e)+t:typeof e==`object`&&(e=Gr(Pl(e)))),e}function Cg(e,t){return!!(e.flags&(t?8:16))}function Z(e,t=``){let n=z(),r=lo(),i=e+27,a=r.firstCreatePass?wf(r,i,1,t,null):r.data[i],o=wg(r,n,a,t);n[i]=o,Yo()&&$u(r,n,o,a),go(a,!1)}var wg=(e,t,n,r)=>(Xo(!0),zl(t[11],r));function Tg(e,t,n,r=``){return Hf(e,wo(),n)?t+hi(n)+r:du}function Eg(e,t,n,r,i,a=``){let o=Uf(e,So(),n,i);return To(2),o?t+hi(n)+r+hi(i)+a:du}function Dg(e,t,n,r,i,a,o,s=``){let c=Wf(e,So(),n,i,o);return To(3),c?t+hi(n)+r+hi(i)+a+hi(o)+s:du}function Q(e){return $(``,e),Q}function $(e,t,n){let r=z(),i=Tg(r,e,t,n);return i!==du&&Ag(r,Vo(),i),$}function Og(e,t,n,r,i){let a=z(),o=Eg(a,e,t,n,r,i);return o!==du&&Ag(a,Vo(),o),Og}function kg(e,t,n,r,i,a,o){let s=z(),c=Dg(s,e,t,n,r,i,a,o);return c!==du&&Ag(s,Vo(),c),kg}function Ag(e,t,n){let r=Ia(t,e);Bl(e[11],r,n)}function jg(e,t){let n=xo()+e,r=z();return r[n]===du?Bf(r,n,t()):Vf(r,n)}function Mg(e,t){let n=e[t];return n===du?void 0:n}function Ng(e,t,n,r,i,a){let o=t+n;return Hf(e,o,i)?Bf(e,o+1,a?r.call(a,i):r(i)):Mg(e,o+1)}function Pg(e,t){let n=lo(),r,i=e+27;n.firstCreatePass?(r=Fg(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let a=r.factory||(r.factory=Fi(r.type,!0)),o=Ti(tp);try{let e=Tc(!1),t=a();return Tc(e),Ba(n,z(),i,t),t}finally{Ti(o)}}function Fg(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ig(e,t,n){let r=e+27,i=z(),a=za(i,r);return Lg(i,r)?Ng(i,xo(),t,a.transform,n,a):a.transform(n)}function Lg(e,t){return e[1].data[t].pure}var Rg=(()=>{class e{applicationErrorHandler=L(Es);appRef=L(Jm);taskService=L(as);ngZone=L(ps);zonelessEnabled=L(Ls);tracing=L(Su,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new nr;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ds):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(L(Rs,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let t=this.useMicrotaskScheduler?ls:cs;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>t(()=>this.tick())):this.ngZone.runOutsideAngular(()=>t(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(`isAngularZone_ID`+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(e){this.applicationErrorHandler(e)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(t){return new(t||e)};static ɵprov=el({token:e,factory:e.ɵfac})}return e})();function zg(){return[{provide:Is,useExisting:Rg},{provide:ps,useClass:xs},{provide:Ls,useValue:!0}]}function Bg(){return typeof $localize<`u`&&$localize.locale||`en-US`}var Vg=new F(``,{factory:()=>L(Vg,{optional:!0,skipSelf:!0})||Bg()}),Hg=class{destroyed=!1;listeners=null;errorHandler=L(Ts,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=L(ts);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new N(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let t=this.listeners?this.listeners.indexOf(e):-1;t>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[t]=null):this.listeners.splice(t,1))}}}emit(e){if(this.destroyed){console.warn(Wr(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let t=M(null);try{for(let t of this.listeners)try{t!==null&&t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Ug(this.listeners)),M(t),this.isEmitting=!1}}};function Ug(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function Wg(e,t){return wn(e,t?.equal)}(class e extends Error{_brand;constructor(e){super(e)}static IDLE=new e(`IDLE`);static LOADING=new e(`LOADING`)});function Gg(e,t){let n=Object.create(Zs);n.value=e,n.transformFn=t?.transform;function r(){if(on(n),n.value===Xs)throw new N(-950,null);return n.value}return r[nn]=n,r}function Kg(e){return new Hg}function qg(e,t){return Gg(e,t)}function Jg(e){return Gg(Xs,e)}var Yg=(qg.required=Jg,qg),Xg=new F(``),Zg=new F(``);function Qg(e){return!e.moduleRef}function $g(e){let t=Qg(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ps);return n.run(()=>{Qg(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Es),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Qg(e)){let n=()=>t.destroy(),r=e.platformInjector.get(Xg);r.add(n),t.onDestroy(()=>{i.unsubscribe(),r.delete(n)})}else{let t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(Xg);n.add(t),e.moduleRef.onDestroy(()=>{Xm(e.allPlatformModules,e.moduleRef),i.unsubscribe(),n.delete(t)})}return t_(r,n,()=>{let n=t.get(as),r=n.add(),i=t.get($p);return i.runInitializers(),i.donePromise.then(()=>{if(Gh(t.get(Vg,Wh)||`en-US`),!t.get(Zg,!0))return Qg(e)?t.get(Jm):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Qg(e)){let n=t.get(Jm);return e.rootComponent!==void 0&&n.bootstrap(e.rootComponent),n}return e_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void n.remove(r))})})}var e_;function t_(e,t,n){try{let r=n();return Lp(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e(n)),n}):r}catch(n){throw t.runOutsideAngular(()=>e(n)),n}}var n_=null;function r_(e=[],t){return $o.create({name:t,providers:[{provide:oa,useValue:`platform`},{provide:Xg,useValue:new Set([()=>n_=null])},...e]})}function i_(e=[]){if(n_)return n_;let t=r_(e);return n_=t,Km(),a_(t),t}function a_(e){let t=e.get(js,null);Ca(e,()=>{t?.forEach(e=>e())})}function o_(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;H(V.BootstrapApplicationStart);try{let e=i?.injector??i_(r);return $g({r3Injector:new Bp({providers:[zg(),Ds,...n||[]],parent:e,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:e,rootComponent:t})}catch(e){return Promise.reject(e)}finally{H(V.BootstrapApplicationEnd)}}var s_=null;function c_(){return s_}function l_(e){s_??=e}var u_=class{},d_=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}static ɵfac=function(t){return new(t||e)};static ɵpipe=qp({name:`json`,type:e,pure:!1})}return e})();function f_(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let e=n.indexOf(`=`),[r,i]=e==-1?[n,``]:[n.slice(0,e),n.slice(e+1)];if(r.trim()!==t)continue;let a=i;try{a=decodeURIComponent(i)}catch{}return a.length>1&&a[0]===`"`&&a[a.length-1]===`"`&&(a=a.slice(1,-1)),a}return null}var p_=`browser`,m_=class{_doc;constructor(e){this._doc=e}manager},h_=(()=>{class e extends m_{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}static ɵfac=function(t){return new(t||e)(I(es))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),g_=new F(``),__=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(e=>{e.manager=this});let n=e.filter(e=>!(e instanceof h_));this._plugins=n.slice().reverse();let r=e.find(e=>e instanceof h_);r&&this._plugins.push(r)}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(t=>t.supports(e)),!t)throw new N(-5101,!1);return this._eventNameToPlugin.set(e,t),t}static ɵfac=function(t){return new(t||e)(I(g_),I(ps))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),v_=`ng-app-id`;function y_(e){for(let t of e)t.remove()}function b_(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function x_(e,t,n,r){let i=e.head?.querySelectorAll(`style[${v_}="${t}"],link[${v_}="${t}"]`);if(!i||i.length===0)return!1;for(let e of i)e.removeAttribute(v_),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf(`/`)+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]});return!0}function S_(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var C_=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,x_(e,t,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,b_);t?.forEach(e=>this.addUsage(e,this.external,S_))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach(e=>this.removeUsage(e,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(t=>this.addElement(t,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(y_(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])y_(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,b_(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,S_(t,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let t of[...this.inline.values(),...this.external.values()]){let n=[];for(let r of t.elements)r.parentNode===e?r.remove():n.push(r);t.elements=n}}addElement(e,t){return this.nonce&&t.setAttribute(`nonce`,this.nonce),e.appendChild(t)}static ɵfac=function(t){return new(t||e)(I(es),I(ks),I(Ns,8),I(Ms))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),w_={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`},T_=/%COMP%/g,E_=`%COMP%`,D_=`_nghost-${E_}`,O_=`_ngcontent-${E_}`,k_=!0,A_=new F(``,{factory:()=>k_}),j_=new F(``);function M_(e){return O_.replace(T_,e)}function N_(e){return D_.replace(T_,e)}function P_(e,t){return t.map(t=>t.replace(T_,e))}var F_=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,t,n,r,i,a,o=null,s=null,c=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.ngZone=a,this.nonce=o,this.tracingService=s,this.cssVarNamespace=c??``,this.defaultRenderer=new I_(e,i,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof B_?n.applyToHost(e):n instanceof z_&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,a=this.ngZone,o=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,l=this.tracingService;switch(t.encapsulation){case Ml.Emulated:r=new B_(o,s,t,this.appId,c,i,a,l,this.cssVarNamespace);break;case Ml.ShadowDom:return new R_(o,e,t,i,a,this.nonce,l,this.cssVarNamespace,s);case Ml.ExperimentalIsolatedShadowDom:return new R_(o,e,t,i,a,this.nonce,l,this.cssVarNamespace);default:r=new z_(o,s,t,c,i,a,l,this.cssVarNamespace)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(t){return new(t||e)(I(__),I($f),I(ks),I(A_),I(es),I(ps),I(Ns),I(Su,8),I(j_,8))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})(),I_=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i=``){this.eventManager=e,this.doc=t,this.ngZone=n,this.tracingService=r,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(w_[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(L_(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){if(e){let r=L_(e)?e.content:e;if(n!=null&&n.parentNode!==r)throw new N(-5106,!1);r.insertBefore(t,n)}}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e==`string`?this.doc.querySelector(e):e;if(!n)throw new N(-5104,!1);return t||(n.textContent=``),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+`:`+t;let i=w_[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=w_[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){let i=t.startsWith(`--`);i&&(t=t.replace(`%NS%`,this.cssVarNamespace)),i||r&(fu.DashCase|fu.Important)?e.style.setProperty(t,n,r&fu.Important?`important`:``):e.style[t]=n}removeStyle(e,t,n){let r=t.startsWith(`--`);r&&(t=t.replace(`%NS%`,this.cssVarNamespace)),r||n&fu.DashCase?e.style.removeProperty(t):e.style[t]=``}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e==`string`&&(e=c_().getGlobalEventTarget(this.doc,e),!e))throw new N(-5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t===`__ngUnwrap__`)return e;e(t)===!1&&t.preventDefault()}}};function L_(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var R_=class extends I_{hostEl;sharedStylesHost;shadowRoot;constructor(e,t,n,r,i,a,o,s,c){super(e,r,i,o,s),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=P_(n.id,l).map(e=>e.replace(/%NS%/g,s));for(let e of l){let t=document.createElement(`style`);a&&t.setAttribute(`nonce`,a),t.textContent=e,this.shadowRoot.appendChild(t)}let u=n.getExternalStyles?.();if(u)for(let e of u){let t=S_(e,r);a&&t.setAttribute(`nonce`,a),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},z_=class extends I_{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let l=n.styles,u=c?P_(c,l):l;this.styles=u.map(e=>e.replace(/%NS%/g,s)),this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&hu.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},B_=class extends z_{contentAttr;hostAttr;constructor(e,t,n,r,i,a,o,s,c){let l=r+`-`+n.id;super(e,t,n,i,a,o,s,c,l),this.contentAttr=M_(l),this.hostAttr=N_(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,``)}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,``),n}},V_=class e extends u_{supportsDOMEvents=!0;static makeCurrent(){l_(new e)}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t||=this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t===`window`?window:t===`document`?e:t===`body`?e.body:null}getBaseHref(e){let t=U_();return t==null?null:W_(t)}resetBaseElement(){H_=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return f_(document.cookie,e)}},H_=null;function U_(){return H_||=document.head.querySelector(`base`),H_?H_.getAttribute(`href`):null}function W_(e){return new URL(e,document.baseURI).pathname}var G_=[`alt`,`control`,`meta`,`shift`],K_={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},q_={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},J_=(()=>{class e extends m_{constructor(e){super(e)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,r,i){let a=e.parseEventName(n),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>c_().onAndCancel(t,a.domEventName,o,i))}static parseEventName(t){let n=t.toLowerCase().split(`.`),r=n.shift();if(n.length===0||r!==`keydown`&&r!==`keyup`)return null;let i=e._normalizeKey(n.pop()),a=``,o=n.indexOf(`code`);if(o>-1&&(n.splice(o,1),a=`code.`),G_.forEach(e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+`.`)}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=r,s.fullKey=a,s}static matchEventFullKeyCode(e,t){let n=K_[e.key]||e.key,r=``;return t.indexOf(`code.`)>-1&&(n=e.code,r=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),G_.forEach(t=>{if(t!==n){let n=q_[t];n(e)&&(r+=t+`.`)}}),r+=n,r===t)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(t){return new(t||e)(I(es))};static ɵprov=Zr({token:e,factory:e.ɵfac})}return e})();async function Y_(e,t,n){return o_({rootComponent:e,...X_(t,n)})}function X_(e,t){return{platformRef:t?.platformRef,appProviders:[...tv,...e?.providers??[]],platformProviders:ev}}function Z_(){V_.makeCurrent()}function Q_(){return new Ts}function $_(){return _l(document),document}var ev=[{provide:Ms,useValue:p_},{provide:js,useValue:Z_,multi:!0},{provide:es,useFactory:$_}],tv=[{provide:oa,useValue:`root`},{provide:Ts,useFactory:Q_},{provide:g_,useClass:h_,multi:!0},{provide:g_,useClass:J_,multi:!0},F_,{provide:$f,useClass:C_},{provide:C_,useExisting:$f},__,{provide:Ff,useExisting:F_},[]];function nv(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e{let r=new ov({code:i,why:iv(a.why,e),fix:iv(a.fix,e),docs:o,cause:e.cause,sources:e.sources,data:iv(a.data,e)},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function lv(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n{e=n,t=r}),resolve:e,reject:t}}var hv=Math.random.bind(Math),gv=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function _v(e=21){let t=``,n=e;for(;n--;)t+=gv[hv()*64|0];return t}var vv=6e4,yv=e=>e,bv=yv,{clearTimeout:xv,setTimeout:Sv}=globalThis;function Cv(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=yv,deserialize:s=bv,resolver:c,bind:l=`rpc`,timeout:u=vv,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=mv(),_=_v();s.i=_;let v;async function y(n=s){return u>=0&&(v=Sv(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{xv(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(xv(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function wv(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var Tv=Object.freeze({type:`object`,additionalProperties:!0});function Ev(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return Tv}return Tv}function Dv(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;rn[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function kv(e,t){return Ov(e,t)??[e]}function Av(e){return typeof e==`string`?`'${e}'`:new Pv().serialize(e)}var jv=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Mv=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[jv.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Nv(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;ia?-1:1)}return e.length===t.length?r:e.lengththis.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),Fv=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Iv=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Lv=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Rv=[],zv=class{_data=new Bv;_hash=new Bv([...Fv]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Rv[n]=e[t+n]|0;else{let e=Rv[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Rv[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Rv[n]=t+Rv[n-7]+i+Rv[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Iv[n]+Rv[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=Bv.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Vv(e){return new zv().finalize(e).toBase64()}function Hv(e){return Vv(Av(e))}function Uv(e){return Hv(e)}function Wv(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var Gv=/^[\w+.-]{2,}:\/\//;function Kv(e){return e.endsWith(`/`)?e:`${e}/`}function qv(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function Jv(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?Kv(n)+e.replace(/^\.?\//,``):e);return n}function Yv(e,t){if(!t||t===`/`||Gv.test(e))return e;let n=qv(t);return e.startsWith(n)?e:Jv(n,e)}function Xv(e,t){let n=e.match(Gv);return t+(n?e.slice(n[0].length):e)}var Zv=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Qv(e=21){let t=``,n=e;for(;n--;)t+=Zv[Math.random()*64|0];return t}var $v=Symbol.for(`immer-nothing`),ey=Symbol.for(`immer-draftable`),ty=Symbol.for(`immer-state`),ny=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function ry(e,...t){{let n=ny[e],r=Dy(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var iy=Object,ay=iy.getPrototypeOf,oy=`constructor`,sy=`prototype`,cy=`configurable`,ly=`enumerable`,uy=`writable`,dy=`value`,fy=e=>!!e&&!!e[ty];function py(e){return e?gy(e)||Cy(e)||!!e[ey]||!!e[oy]?.[ey]||wy(e)||Ty(e):!1}var my=iy[sy][oy].toString(),hy=new WeakMap;function gy(e){if(!e||!Ey(e))return!1;let t=ay(e);if(t===null||t===iy[sy])return!0;let n=iy.hasOwnProperty.call(t,oy)&&t[oy];if(n===Object)return!0;if(!Dy(n))return!1;let r=hy.get(n);return r===void 0&&(r=Function.toString.call(n),hy.set(n,r)),r===my}function _y(e,t,n=!0){vy(e)===0?(n?Reflect.ownKeys(e):iy.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function vy(e){let t=e[ty];return t?t.type_:Cy(e)?1:wy(e)?2:Ty(e)?3:0}var yy=(e,t,n=vy(e))=>n===2?e.has(t):iy[sy].hasOwnProperty.call(e,t),by=(e,t,n=vy(e))=>n===2?e.get(t):e[t],xy=(e,t,n,r=vy(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Sy(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Cy=Array.isArray,wy=e=>e instanceof Map,Ty=e=>e instanceof Set,Ey=e=>typeof e==`object`,Dy=e=>typeof e==`function`,Oy=e=>typeof e==`boolean`;function ky(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ay=e=>Ey(e)?e?.[ty]:null,jy=e=>e.copy_||e.base_,My=e=>e.modified_?e.copy_:e.base_;function Ny(e,t){if(wy(e))return new Map(e);if(Ty(e))return new Set(e);if(Cy(e))return Array[sy].slice.call(e);let n=gy(e);if(t===!0||t===`class_only`&&!n){let t=iy.getOwnPropertyDescriptors(e);delete t[ty];let n=Reflect.ownKeys(t);for(let r=0;r1&&iy.defineProperties(e,{set:Iy,add:Iy,clear:Iy,delete:Iy}),iy.freeze(e),t&&_y(e,(e,t)=>{Py(t,!0)},!1),e)}function Fy(){ry(2)}var Iy={[dy]:Fy};function Ly(e){return e===null||!Ey(e)||iy.isFrozen(e)}var Ry=`MapSet`,zy=`Patches`,By=`ArrayMethods`,Vy={};function Hy(e){let t=Vy[e];return t||ry(0,e),t}var Uy=e=>!!Vy[e];function Wy(e,t){Vy[e]||(Vy[e]=t)}var Gy,Ky=()=>Gy,qy=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Uy(Ry)?Hy(Ry):void 0,arrayMethodsPlugin_:Uy(By)?Hy(By):void 0});function Jy(e,t){t&&(e.patchPlugin_=Hy(zy),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yy(e){Xy(e),e.drafts_.forEach(Qy),e.drafts_=null}function Xy(e){e===Gy&&(Gy=e.parent_)}var Zy=e=>Gy=qy(Gy,e);function Qy(e){let t=e[ty];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $y(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[ty].modified_&&(Yy(t),ry(4)),py(e)&&(e=eb(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[ty].base_,e,t)}else e=eb(t,n);return tb(t,e,!0),Yy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===$v?void 0:e}function eb(e,t){if(Ly(t))return t;let n=t[ty];if(!n)return lb(t,e.handledSet_,e);if(!rb(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);sb(n,e)}return n.copy_}function tb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Py(t,n)}function nb(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var rb=(e,t)=>e.scope_===t,ib=[];function ab(e,t,n,r){let i=jy(e),a=e.type_;if(r!==void 0&&by(i,r,a)===t){xy(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;_y(i,(e,n)=>{if(fy(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ib;for(let e of o)xy(i,e,n,a)}function ob(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!rb(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=My(i);ab(e,i.draft_??i,a,n),sb(i,r)})}function sb(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}nb(e)}}function cb(e,t,n){let{scope_:r}=e;if(fy(n)){let i=n[ty];rb(i,r)&&i.callbacks_.push(function(){vb(e),ab(e,n,My(i),t)})}else py(n)&&e.callbacks_.push(function(){let i=jy(e);e.type_===3?i.has(n)&&lb(n,r.handledSet_,r):by(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&lb(by(e.copy_,t,e.type_),r.handledSet_,r)})}function lb(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||fy(e)||t.has(e)||!py(e)||Ly(e)?e:(t.add(e),_y(e,(r,i)=>{if(fy(i)){let t=i[ty];rb(t,n)&&(xy(e,r,My(t),e.type_),nb(t))}else py(i)&&lb(i,t,n)}),e)}function ub(e,t){let n=Cy(e),r={type_:+!!n,scope_:t?t.scope_:Ky(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=db;n&&(i=[r],a=fb);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var db={get(e,t){if(t===ty)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=jy(e);if(!yy(i,t,e.type_))return hb(e,i,t);let a=i[t];if(e.finalized_||!py(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&ky(t))return a;if(a===pb(e.base_,t)||mb(e,t,a)){vb(e);let n=e.type_===1?+t:t,r=bb(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in jy(e)},ownKeys(e){return Reflect.ownKeys(jy(e))},set(e,t,n){let r=gb(jy(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=pb(jy(e),t),i=r?.[ty];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Sy(n,r)&&(n!==void 0||yy(e.base_,t,e.type_)))return!0;vb(e),_b(e)}return e.copy_[t]===n&&(n!==void 0||yy(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),cb(e,t,n),!0)},deleteProperty(e,t){return vb(e),pb(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),_b(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=jy(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[uy]:!0,[cy]:e.type_!==1||t!==`length`,[ly]:r[ly],[dy]:n[t]}},defineProperty(){ry(11)},getPrototypeOf(e){return ay(e.base_)},setPrototypeOf(){ry(12)}},fb={};for(let e in db){let t=db[e];fb[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}fb.deleteProperty=function(e,t){return isNaN(parseInt(t))&&ry(13),fb.set.call(this,e,t,void 0)},fb.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&ry(14),db.set.call(this,e[0],t,n,e[0])};function pb(e,t){let n=e[ty];return(n?jy(n):e)[t]}function mb(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!py(n)||n[ty]?!1:e.baseRefs_.has(n)}function hb(e,t,n){let r=gb(t,n);return r?dy in r?r[dy]:r.get?.call(e.draft_):void 0}function gb(e,t){if(!(t in e))return;let n=ay(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ay(n)}}function _b(e){e.modified_||(e.modified_=!0,e.parent_&&_b(e.parent_))}function vb(e){e.copy_||=(e.assigned_=new Map,Ny(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Dy(e)&&!Dy(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Dy(t)||ry(6),n!==void 0&&!Dy(n)&&ry(7);let r;if(py(e)){let i=Zy(this),a=bb(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Yy(i):Xy(i)}return Jy(i,n),$y(r,i)}if(!e||!Ey(e)){if(r=t(e),r===void 0&&(r=e),r===$v&&(r=void 0),this.autoFreeze_&&Py(r,!0),n){let t=[],i=[];Hy(zy).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}ry(1,e)},this.produceWithPatches=(e,t)=>{if(Dy(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Oy(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Oy(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Oy(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){py(e)||ry(8),fy(e)&&(e=xb(e));let t=Zy(this),n=bb(t,e,void 0);return n[ty].isManual_=!0,Xy(t),n}finishDraft(e,t){let n=e&&e[ty];(!n||!n.isManual_)&&ry(9);let{scope_:r}=n;return Jy(r,t),$y(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Hy(zy).applyPatches_;return fy(e)?r(e,t):this.produce(e,e=>r(e,t))}};function bb(e,t,n,r){let[i,a]=wy(t)?Hy(Ry).proxyMap_(t,n):Ty(t)?Hy(Ry).proxySet_(t,n):ub(t,n);return(n?.scope_??Ky()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ob(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function xb(e){return fy(e)||ry(10,e),Sb(e)}function Sb(e){if(!py(e)||Ly(e))return e;let t=e[ty],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ny(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ny(e,!0);return _y(n,(e,t)=>{xy(n,e,Sb(t))},r),t&&(t.finalized_=!1),n}function Cb(){ny.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Ay(by(e,n.key_)),i=by(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||yy(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e{let u=by(o,e,c),f=by(s,e,c),p=l?yy(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===$v?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e[e,u(t)]));if(Ty(e))return new Set(Array.from(e).map(u));let t=Object.create(ay(e));for(let n in e)t[n]=u(e[n]);return yy(e,ey)&&(t[ey]=e[ey]),t}function d(e){return fy(e)?u(e):e}Wy(zy,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var wb=new yb,Tb=wb.produce,Eb=wb.produceWithPatches.bind(wb),Db=wb.applyPatches.bind(wb),Ob=1e3;function kb(e,t){if(e.add(t),e.size>Ob){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Ab(e){let{enablePatches:t=!1}=e;t&&Cb();let n=Wv(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Qv())=>{i.has(t)||(Cb(),r=Db(r,e),kb(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Qv())=>{if(!i.has(a)){if(kb(i,a),t){let[t,i]=Eb(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=Tb(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var jb=typeof self==`object`?self:globalThis,Mb=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Nb=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Pb(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Mb.has(e)?jb[e]:void 0;return n(new(r??jb.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&Nb.has(a))return n(new jb[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Fb(e){return Pb(new Map,e)(0)}var Ib=``,{toString:Lb}={},{keys:Rb}=Object;function zb(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Lb.call(e).slice(8,-1);switch(n){case`Array`:return[1,Ib];case`Object`:return[2,Ib];case`Date`:return[3,Ib];case`RegExp`:return[4,Ib];case`Map`:return[5,Ib];case`Set`:return[6,Ib];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Bb([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Vb(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=zb(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of Rb(r))(e||!Bb(zb(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Bb(zb(n))||Bb(zb(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Bb(zb(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Hb(e,t={}){let n=[];return Vb(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Ub,stringify:Wb}=JSON,Gb={json:!0,lossy:!0};function Kb(e){return Fb(Ub(e))}function qb(e){return Wb(Hb(e,Gb))}function Jb(e){return Fb(e)}function Yb(e){return qb(e)}function Xb(e){return Kb(e)}var Zb=256,Qb=class extends Error{name=`StreamClosedError`};function $b(e={}){let t=e.id??Qv(),n=Math.max(0,e.replayWindow??0),r=Wv(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new Qb(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=tx(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function ex(e={}){let t=e.id??Qv(),n=Math.max(1,e.highWaterMark??Zb),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function tx(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var nx=128;function rx(e){return e.replace(/[^\w-]+/g,`_`).slice(0,nx)}var ix=`modulepreload`,ax=function(e,t){return new URL(e,t).href},ox={},sx=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ax(t,n),t=s(t),t in ox)return;ox[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ix,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},cx=`__connection.json`,lx=`__DEVFRAME_CONNECTION__`,ux=`x-birpc-session`,dx=`__rpc-dump/index.json`,fx=`devframe:services`,px=`devframe_otp`,mx=`devframe_auth_token`;uv.postMessage.remoteAssetsError;var hx=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Uv(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},gx=pv({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function _x(e){if(e.agent&&e.jsonSerializable===!1)throw gx.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function vx(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function yx(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function bx(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function Cx(e,t){let n=e.handler;if(!n){let r=await Sx(e,t);if(!r.handler)throw gx.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await bx(e.name,r,t),o=await a(...n);return await xx(e.name,i,o)}}var wx=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Cx(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw gx.DF0021({name:e.name});_x(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw gx.DF0022({name:e.name});_x(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Cx(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw gx.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Tx(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw Dx(t,`undefined`,r,e);return n}return i!==null&&Ex(i,r,e,t),n})}function Ex(e,t,n,r){if(typeof e==`bigint`)throw Dx(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw Dx(r,`Map`,t,n);if(e instanceof Set)throw Dx(r,`Set`,t,n);if(e instanceof Date)throw Dx(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw Dx(r,e.constructor?.name??`class instance`,t,n)}function Dx(e,t,n,r){let i=Ox(n,r);return gx.DF0020({name:e||``,type:t,path:i})}function Ox(e,t){return Array.isArray(e)?`[${t}]`:t===``?``:t}var kx=`__DEVFRAME_CONNECTION_META__`,Ax=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function jx(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function Mx(){return jx(lx)}function Nx(){return jx(kx)}function Px(e){if(e)return e;try{let e=localStorage.getItem(Ax);if(e)return e}catch{}return jx(Ax)}function Fx(e){globalThis[lx]=e,globalThis[kx]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Ix(e.authToken)}function Ix(e){try{localStorage.setItem(Ax,e)}catch{}globalThis[Ax]=e;let t=Mx();t&&(globalThis[lx]={...t,authToken:e})}function Lx(e){let t=Yv(cx,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Rx(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function zx(){let e=Mx();if(e)return Rx(e,Px()??e.authToken??e.connectionMeta.authToken);let t=Nx();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Lx(`./`),authToken:Px(t.authToken)}}async function Bx(e={}){if(e.connection){let t=Rx(e.connection,Px(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return Fx(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Lx(t[0]??`./`),authToken:Px(e.authToken??e.connectionMeta.authToken)};return Fx(n),n}let n=zx();if(n){let t=Rx(n,Px(e.authToken??n.authToken??n.connectionMeta.authToken));return Fx(t),t}let r=[];for(let n of t){let t=Yv(cx,n),i=Lx(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:Px(e.authToken??r.authToken)};return Fx(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var Vx=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Hx(e=px){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function Ux(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function Wx(e=px){let t=Hx(e);return t&&Ux(e),t}async function Gx(e,t={}){let n=Wx(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Kx(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(fx,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function qx(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:uv.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:uv.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=Ab({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(uv.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var Jx=new Map;function Yx(e=Jx){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Tx(n,r??``):`s:${Yb(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?Xb(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function Xx(){}function Zx(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function Qx(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function $x(e){let{onConnected:t=Xx,onError:n=Xx,onDisconnected:r=Xx,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${mx}=${encodeURIComponent(e.authToken)}`);let s=Yx(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=Zx(r);if(!e)break;r=e.rest;let{event:t,data:n}=Qx(e.frame);n.length>0&&_(t,n.join(` -`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[ux]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function eS(e,t){let{channel:n,rpcOptions:r={}}=t;return Cv(e,{...n,timeout:-1,...r,proxify:!1})}function tS(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(uv.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new Vx(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new Vx(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(uv.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new Vx(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(uv.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(uv.client.connectionError,e),m(new Vx(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new Vx(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=eS(a.functions,{channel:v,rpcOptions:o});a.register({name:uv.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new Vx(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(uv.client.connectionError,e),m(e),i.emit(uv.client.isTrustedUpdated,!1)}});let b=n;async function ee(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new Vx(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(uv.client.connectionError,e)}return i.emit(uv.client.isTrustedUpdated,c),t.isTrusted}async function te(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(uv.client.isTrustedUpdated,!0)),t}async function ne(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function x(){return c?!0:ee(b??``)}async function S(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:x,requestTrustWithToken:ee,requestTrustWithCode:te,requestAuthCode:ne,ensureTrusted:S,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(uv.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(uv.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(uv.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function nS(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function rS(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=nS(n.sse,r??`./`,location);return tS({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>$x({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function iS(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:aS(r)?iS(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function aS(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function oS(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function sS(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function cS(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function lS(e){if(e.error)throw iS(e.error);return e.output}function uS(e){return e.some(e=>e!=null)}function dS(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function fS(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Jb(e):e}function a(e,t){return i(dS(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return cS(r)?lS(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(oS(r)){if(uS(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(sS(r)){let e=Uv(n),i=r.records[e];if(i)return lS(await s(i,r.serialization));if(r.fallback)return lS(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!uS(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function pS(e){let t=fS(await e.fetchJsonFromBases(dx),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var mS=``;function hS(e,t){return`${e}${mS}${t}`}function gS(e){let t=new Map,n=new Map;e.client.register({name:uv.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(hS(e,n))?._push(r,i)}}),e.client.register({name:uv.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=hS(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:uv.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=hS(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(uv.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(mS);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=hS(n,r),o=t.get(a);if(o)return o;let s=ex({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(uv.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=hS(t,r),a=n.get(i);if(a)return a;let o=$b({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function _S(){}var vS=new Map;function yS(e){let t=e.url;e.authToken&&(t=`${t}?${mx}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=_S,onError:i=_S,onDisconnected:a=_S,definitions:o=vS}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=Yx(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function bS(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return Xv(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function xS(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=bS(n.websocket,r??`./`,location);return tS({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>yS({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function SS(e){return e.includes(`:`)}function CS(e,t){return SS(t)?t:`${e}:${t}`}function wS(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function TS(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return wS(a)}function ES(e,t){return{global:TS(e,t,`global`),project:TS(e,t,`project`)}}function DS(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(SS(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(CS(t,n),...r)),callEvent:((n,...r)=>e.callEvent(CS(t,n),...r)),callOptional:((n,...r)=>e.callOptional(CS(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(CS(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(CS(t,n),r,i),upload:(n,r)=>e.streaming.upload(CS(t,n),r)}},settings:ES(e,t),scope:e.scope}}function OS(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function kS(e,t={}){let n=t.modelContext??OS();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=rx(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=wv(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Dv(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>AS(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function AS(e,t,n){try{let r=kv(n,e.args?.length);return{content:[{type:`text`,text:jS(await(await Cx(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:MS(e)}]}}}function jS(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function MS(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function NS(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function PS(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=Wv(),a=Array.isArray(t)?t:[t],o=await Bx(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new hx({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new wx(f),m=e.webmcp===!1?void 0:kS(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Yv(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let v={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},y=NS(e.transport??`auto`,s),b=y===`static`?await pS({fetchJsonFromBases:_}):y===`sse`?rS({...v,sseOptions:e.sseOptions}):xS({...v,wsOptions:e.wsOptions}),ee;try{ee=new BroadcastChannel(`devframe-auth`)}catch{}let te,ne=!1;function x(e){return((...t)=>ne||!te?e(...t):te.then(()=>e(...t)))}function S(){g=!0;try{h?.(),m?.()}finally{try{ee?.close()}finally{b.close?.()}}}let C={events:i,get isTrusted(){return b.isTrusted},get status(){return b.status},get connectionError(){return b.connectionError},get transport(){return b.transport??y},get connection(){return o},connectionMeta:s,ensureTrusted:b.ensureTrusted,requestTrust:b.requestTrust,requestTrustWithToken:async e=>(Ix(e),o={...o,authToken:e},b.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await b.requestTrustWithCode(e);if(!t)return!1;Ix(t),o={...o,authToken:t};try{ee?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>b.requestAuthCode(e),call:x(b.call),callEvent:x(b.callEvent),callOptional:x(b.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:S};C.sharedState=qx(C),C.streaming=gS(C),C.services=Kx(C);let re=new Map;C.scope=(e=>{if(!e)return C;let t=re.get(e);return t||(t=DS(C,e),re.set(e,t)),t}),f.rpc=C;function w(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ie(){if(e.simpleAuth!==!1&&w()&&typeof globalThis.prompt==`function`)for(await C.requestAuthCode().catch(()=>{});!C.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await C.requestTrustWithCode(t))return}}async function T(){let t=await b.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Gx(C,{param:n}):!1;t||r||C.isTrusted||await ie()}return te=T().then(()=>{ne=!0},()=>{ne=!0}),s.mcp&&sx(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-BXhoSh1z-CIejKvBJ.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(C))}).catch(()=>{}),ee&&(ee.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&C.requestTrustWithToken(e.data.authToken)}),C}var FS=PS,IS=class e{rpc=Yg(null);navigate=Kg();meta=B(null);componentCount=B(0);routeCount=B(0);signalCount=B(0);providerCount=B(0);storeCount=B(0);constructor(){Hs(()=>{let e=this.rpc();if(!e)return;let t=e.scope(`ng-devtools`);t.rpc.call(`build-meta`).then(e=>this.meta.set(e)).catch(()=>{}),t.rpc.call(`get-components`).then(e=>this.componentCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-routes`).then(e=>this.routeCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-signals`).then(e=>this.signalCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-providers`).then(e=>this.providerCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-ngrx-store`).then(e=>this.storeCount.set(e.length)).catch(()=>{})})}static ɵfac=function(t){return new(t||e)};static ɵcmp=Up({type:e,selectors:[[`app-dashboard`]],inputs:{rpc:[1,`rpc`]},outputs:{navigate:`navigate`},decls:56,vars:9,consts:[[1,`grid`],[1,`card`],[1,`card`,`clickable`,3,`click`],[1,`big`],[1,`sub`]],template:function(e,t){e&1&&(J(0,`div`,0)(1,`div`,1)(2,`h2`),Z(3,`Project`),Y(),J(4,`dl`)(5,`dt`),Z(6,`Name`),Y(),J(7,`dd`),Z(8),Y(),J(9,`dt`),Z(10,`Angular`),Y(),J(11,`dd`),Z(12),Y(),J(13,`dt`),Z(14,`TypeScript`),Y(),J(15,`dd`),Z(16),Y(),J(17,`dt`),Z(18,`SSR`),Y(),J(19,`dd`),Z(20),Y()()(),J(21,`div`,2),qh(`click`,function(){return t.navigate.emit(`components`)}),J(22,`h2`),Z(23,`Components`),Y(),J(24,`p`,3),Z(25),Y(),J(26,`p`,4),Z(27,`discovered in source`),Y()(),J(28,`div`,2),qh(`click`,function(){return t.navigate.emit(`routes`)}),J(29,`h2`),Z(30,`Routes`),Y(),J(31,`p`,3),Z(32),Y(),J(33,`p`,4),Z(34,`registered paths`),Y()(),J(35,`div`,2),qh(`click`,function(){return t.navigate.emit(`signals`)}),J(36,`h2`),Z(37,`Signals`),Y(),J(38,`p`,3),Z(39),Y(),J(40,`p`,4),Z(41,`reactive primitives`),Y()(),J(42,`div`,2),qh(`click`,function(){return t.navigate.emit(`injectors`)}),J(43,`h2`),Z(44,`Injectors`),Y(),J(45,`p`,3),Z(46),Y(),J(47,`p`,4),Z(48,`DI providers`),Y()(),J(49,`div`,2),qh(`click`,function(){return t.navigate.emit(`store`)}),J(50,`h2`),Z(51,`NgRx Store`),Y(),J(52,`p`,3),Z(53),Y(),J(54,`p`,4),Z(55,`store entries`),Y()()()),e&2&&(U(8),Q(t.meta()?.projectName??`…`),U(4),Q(t.meta()?.angularVersion??`…`),U(4),Q(t.meta()?.typescript??`…`),U(4),Q(t.meta()?.ssr?`Yes`:`No`),U(5),Q(t.componentCount()),U(7),Q(t.routeCount()),U(7),Q(t.signalCount()),U(7),Q(t.providerCount()),U(7),Q(t.storeCount()))},styles:[`.grid[_ngcontent-%COMP%] { +`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[ux]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function eS(e,t){let{channel:n,rpcOptions:r={}}=t;return Cv(e,{...n,timeout:-1,...r,proxify:!1})}function tS(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(uv.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new Vx(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new Vx(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(uv.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new Vx(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(uv.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(uv.client.connectionError,e),m(new Vx(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new Vx(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=eS(a.functions,{channel:v,rpcOptions:o});a.register({name:uv.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new Vx(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(uv.client.connectionError,e),m(e),i.emit(uv.client.isTrustedUpdated,!1)}});let b=n;async function ee(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new Vx(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(uv.client.connectionError,e)}return i.emit(uv.client.isTrustedUpdated,c),t.isTrusted}async function te(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(uv.client.isTrustedUpdated,!0)),t}async function ne(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function x(){return c?!0:ee(b??``)}async function S(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:x,requestTrustWithToken:ee,requestTrustWithCode:te,requestAuthCode:ne,ensureTrusted:S,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(uv.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(uv.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(uv.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function nS(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function rS(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=nS(n.sse,r??`./`,location);return tS({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>$x({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function iS(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:aS(r)?iS(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function aS(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function oS(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function sS(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function cS(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function lS(e){if(e.error)throw iS(e.error);return e.output}function uS(e){return e.some(e=>e!=null)}function dS(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function fS(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Jb(e):e}function a(e,t){return i(dS(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return cS(r)?lS(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(oS(r)){if(uS(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(sS(r)){let e=Uv(n),i=r.records[e];if(i)return lS(await s(i,r.serialization));if(r.fallback)return lS(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!uS(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function pS(e){let t=fS(await e.fetchJsonFromBases(dx),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var mS=``;function hS(e,t){return`${e}${mS}${t}`}function gS(e){let t=new Map,n=new Map;e.client.register({name:uv.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(hS(e,n))?._push(r,i)}}),e.client.register({name:uv.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=hS(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:uv.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=hS(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(uv.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(mS);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=hS(n,r),o=t.get(a);if(o)return o;let s=ex({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(uv.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=hS(t,r),a=n.get(i);if(a)return a;let o=$b({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function _S(){}var vS=new Map;function yS(e){let t=e.url;e.authToken&&(t=`${t}?${mx}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=_S,onError:i=_S,onDisconnected:a=_S,definitions:o=vS}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=Yx(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function bS(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return Xv(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function xS(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=bS(n.websocket,r??`./`,location);return tS({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>yS({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function SS(e){return e.includes(`:`)}function CS(e,t){return SS(t)?t:`${e}:${t}`}function wS(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function TS(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return wS(a)}function ES(e,t){return{global:TS(e,t,`global`),project:TS(e,t,`project`)}}function DS(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(SS(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(CS(t,n),...r)),callEvent:((n,...r)=>e.callEvent(CS(t,n),...r)),callOptional:((n,...r)=>e.callOptional(CS(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(CS(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(CS(t,n),r,i),upload:(n,r)=>e.streaming.upload(CS(t,n),r)}},settings:ES(e,t),scope:e.scope}}function OS(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function kS(e,t={}){let n=t.modelContext??OS();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=rx(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=wv(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:Dv(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>AS(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function AS(e,t,n){try{let r=kv(n,e.args?.length);return{content:[{type:`text`,text:jS(await(await Cx(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:MS(e)}]}}}function jS(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function MS(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function NS(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function PS(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=Wv(),a=Array.isArray(t)?t:[t],o=await Bx(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new hx({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new wx(f),m=e.webmcp===!1?void 0:kS(p),h,g=!1;async function _(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Yv(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let v={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},y=NS(e.transport??`auto`,s),b=y===`static`?await pS({fetchJsonFromBases:_}):y===`sse`?rS({...v,sseOptions:e.sseOptions}):xS({...v,wsOptions:e.wsOptions}),ee;try{ee=new BroadcastChannel(`devframe-auth`)}catch{}let te,ne=!1;function x(e){return((...t)=>ne||!te?e(...t):te.then(()=>e(...t)))}function S(){g=!0;try{h?.(),m?.()}finally{try{ee?.close()}finally{b.close?.()}}}let C={events:i,get isTrusted(){return b.isTrusted},get status(){return b.status},get connectionError(){return b.connectionError},get transport(){return b.transport??y},get connection(){return o},connectionMeta:s,ensureTrusted:b.ensureTrusted,requestTrust:b.requestTrust,requestTrustWithToken:async e=>(Ix(e),o={...o,authToken:e},b.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await b.requestTrustWithCode(e);if(!t)return!1;Ix(t),o={...o,authToken:t};try{ee?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>b.requestAuthCode(e),call:x(b.call),callEvent:x(b.callEvent),callOptional:x(b.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:S};C.sharedState=qx(C),C.streaming=gS(C),C.services=Kx(C);let re=new Map;C.scope=(e=>{if(!e)return C;let t=re.get(e);return t||(t=DS(C,e),re.set(e,t)),t}),f.rpc=C;function w(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ie(){if(e.simpleAuth!==!1&&w()&&typeof globalThis.prompt==`function`)for(await C.requestAuthCode().catch(()=>{});!C.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await C.requestTrustWithCode(t))return}}async function T(){let t=await b.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Gx(C,{param:n}):!1;t||r||C.isTrusted||await ie()}return te=T().then(()=>{ne=!0},()=>{ne=!0}),s.mcp&&sx(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./browser-agent-rpc-BXhoSh1z-Drr9EpwB.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(C))}).catch(()=>{}),ee&&(ee.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&C.requestTrustWithToken(e.data.authToken)}),C}var FS=PS,IS=class e{rpc=Yg(null);navigate=Kg();meta=B(null);componentCount=B(0);routeCount=B(0);signalCount=B(0);providerCount=B(0);storeCount=B(0);constructor(){Hs(()=>{let e=this.rpc();if(!e)return;let t=e.scope(`ng-devtools`);t.rpc.call(`build-meta`).then(e=>this.meta.set(e)).catch(()=>{}),t.rpc.call(`get-components`).then(e=>this.componentCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-routes`).then(e=>this.routeCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-signals`).then(e=>this.signalCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-providers`).then(e=>this.providerCount.set(e.length)).catch(()=>{}),t.rpc.call(`get-ngrx-store`).then(e=>this.storeCount.set(e.length)).catch(()=>{})})}static ɵfac=function(t){return new(t||e)};static ɵcmp=Up({type:e,selectors:[[`app-dashboard`]],inputs:{rpc:[1,`rpc`]},outputs:{navigate:`navigate`},decls:56,vars:9,consts:[[1,`grid`],[1,`card`],[1,`card`,`clickable`,3,`click`],[1,`big`],[1,`sub`]],template:function(e,t){e&1&&(J(0,`div`,0)(1,`div`,1)(2,`h2`),Z(3,`Project`),Y(),J(4,`dl`)(5,`dt`),Z(6,`Name`),Y(),J(7,`dd`),Z(8),Y(),J(9,`dt`),Z(10,`Angular`),Y(),J(11,`dd`),Z(12),Y(),J(13,`dt`),Z(14,`TypeScript`),Y(),J(15,`dd`),Z(16),Y(),J(17,`dt`),Z(18,`SSR`),Y(),J(19,`dd`),Z(20),Y()()(),J(21,`div`,2),qh(`click`,function(){return t.navigate.emit(`components`)}),J(22,`h2`),Z(23,`Components`),Y(),J(24,`p`,3),Z(25),Y(),J(26,`p`,4),Z(27,`discovered in source`),Y()(),J(28,`div`,2),qh(`click`,function(){return t.navigate.emit(`routes`)}),J(29,`h2`),Z(30,`Routes`),Y(),J(31,`p`,3),Z(32),Y(),J(33,`p`,4),Z(34,`registered paths`),Y()(),J(35,`div`,2),qh(`click`,function(){return t.navigate.emit(`signals`)}),J(36,`h2`),Z(37,`Signals`),Y(),J(38,`p`,3),Z(39),Y(),J(40,`p`,4),Z(41,`reactive primitives`),Y()(),J(42,`div`,2),qh(`click`,function(){return t.navigate.emit(`injectors`)}),J(43,`h2`),Z(44,`Injectors`),Y(),J(45,`p`,3),Z(46),Y(),J(47,`p`,4),Z(48,`DI providers`),Y()(),J(49,`div`,2),qh(`click`,function(){return t.navigate.emit(`store`)}),J(50,`h2`),Z(51,`NgRx Store`),Y(),J(52,`p`,3),Z(53),Y(),J(54,`p`,4),Z(55,`store entries`),Y()()()),e&2&&(U(8),Q(t.meta()?.projectName??`…`),U(4),Q(t.meta()?.angularVersion??`…`),U(4),Q(t.meta()?.typescript??`…`),U(4),Q(t.meta()?.ssr?`Yes`:`No`),U(5),Q(t.componentCount()),U(7),Q(t.routeCount()),U(7),Q(t.signalCount()),U(7),Q(t.providerCount()),U(7),Q(t.storeCount()))},styles:[`.grid[_ngcontent-%COMP%] { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; diff --git a/extension/ui/index.html b/extension/ui/index.html index f5a9f1d..936a8e0 100644 --- a/extension/ui/index.html +++ b/extension/ui/index.html @@ -5,7 +5,7 @@ Angular DevTools - +