@alepha/devtools 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -4
- package/assets/devtools/actions.html +5 -3
- package/assets/devtools/actions.html.br +0 -0
- package/assets/devtools/actions.html.gz +0 -0
- package/assets/devtools/{asset.CMFNRMve.css → asset.CUUwTesj.css} +1 -1
- package/assets/devtools/asset.CUUwTesj.css.br +0 -0
- package/assets/devtools/{asset.CMFNRMve.css.gz → asset.CUUwTesj.css.gz} +0 -0
- package/assets/devtools/atoms.html +5 -3
- package/assets/devtools/atoms.html.br +0 -0
- package/assets/devtools/atoms.html.gz +0 -0
- package/assets/devtools/caches.html +5 -3
- package/assets/devtools/caches.html.br +0 -0
- package/assets/devtools/caches.html.gz +0 -0
- package/assets/devtools/{chunk.YqHRwxdc.js → chunk.8L5-bmT2.js} +2 -2
- package/assets/devtools/chunk.8L5-bmT2.js.br +0 -0
- package/assets/devtools/chunk.8L5-bmT2.js.gz +0 -0
- package/assets/devtools/chunk.9_-GTbfg.js +1 -0
- package/assets/devtools/chunk.9_-GTbfg.js.br +0 -0
- package/assets/devtools/chunk.9_-GTbfg.js.gz +0 -0
- package/assets/devtools/chunk.B06miRTQ.js +1 -0
- package/assets/devtools/chunk.B06miRTQ.js.br +0 -0
- package/assets/devtools/chunk.B06miRTQ.js.gz +0 -0
- package/assets/devtools/{chunk.DOiJ5r3P.js → chunk.B4XxoeIU.js} +1 -1
- package/assets/devtools/chunk.B4XxoeIU.js.br +0 -0
- package/assets/devtools/chunk.B4XxoeIU.js.gz +0 -0
- package/assets/devtools/chunk.BDGiK8wy.js +1 -0
- package/assets/devtools/chunk.BDGiK8wy.js.br +0 -0
- package/assets/devtools/chunk.BDGiK8wy.js.gz +0 -0
- package/assets/devtools/{chunk.CN7ovTep.js → chunk.BK94oaB2.js} +1 -1
- package/assets/devtools/chunk.BK94oaB2.js.br +0 -0
- package/assets/devtools/chunk.BK94oaB2.js.gz +0 -0
- package/assets/devtools/{chunk.wg5XuK3_.js → chunk.BLgG-Amn.js} +1 -1
- package/assets/devtools/chunk.BLgG-Amn.js.br +0 -0
- package/assets/devtools/chunk.BLgG-Amn.js.gz +0 -0
- package/assets/devtools/{chunk.DZFiDTv5.js → chunk.BOYwUUqI.js} +1 -1
- package/assets/devtools/chunk.BOYwUUqI.js.br +0 -0
- package/assets/devtools/chunk.BOYwUUqI.js.gz +0 -0
- package/assets/devtools/{chunk.CoH_IYrv.js → chunk.BPCHIpy2.js} +1 -1
- package/assets/devtools/chunk.BPCHIpy2.js.br +0 -0
- package/assets/devtools/chunk.BPCHIpy2.js.gz +0 -0
- package/assets/devtools/{chunk.l66LreXu.js → chunk.BRKelMlC.js} +1 -1
- package/assets/devtools/chunk.BRKelMlC.js.br +0 -0
- package/assets/devtools/chunk.BRKelMlC.js.gz +0 -0
- package/assets/devtools/chunk.BrsQ66Fo.js +1 -0
- package/assets/devtools/chunk.BrsQ66Fo.js.br +0 -0
- package/assets/devtools/chunk.BrsQ66Fo.js.gz +0 -0
- package/assets/devtools/{chunk.BiIrl-Hq.js → chunk.Bz4bTzr0.js} +1 -1
- package/assets/devtools/chunk.Bz4bTzr0.js.br +0 -0
- package/assets/devtools/chunk.Bz4bTzr0.js.gz +0 -0
- package/assets/devtools/{chunk.CFLl96SC.js → chunk.CKppnGPU.js} +1 -1
- package/assets/devtools/chunk.CKppnGPU.js.br +0 -0
- package/assets/devtools/chunk.CKppnGPU.js.gz +0 -0
- package/assets/devtools/chunk.CfzSCjsJ.js +1 -0
- package/assets/devtools/chunk.CfzSCjsJ.js.br +0 -0
- package/assets/devtools/chunk.CfzSCjsJ.js.gz +0 -0
- package/assets/devtools/{chunk.Dbm9E6HI.js → chunk.CiLYCLJH.js} +1 -1
- package/assets/devtools/chunk.CiLYCLJH.js.br +0 -0
- package/assets/devtools/chunk.CiLYCLJH.js.gz +0 -0
- package/assets/devtools/chunk.CnHYu38l.js +2 -0
- package/assets/devtools/chunk.CnHYu38l.js.br +0 -0
- package/assets/devtools/chunk.CnHYu38l.js.gz +0 -0
- package/assets/devtools/{chunk.BIGcMrv-.js → chunk.D1-ODKSf.js} +1 -1
- package/assets/devtools/chunk.D1-ODKSf.js.br +0 -0
- package/assets/devtools/chunk.D1-ODKSf.js.gz +0 -0
- package/assets/devtools/chunk.D4SUrYI2.js +1 -0
- package/assets/devtools/chunk.D4SUrYI2.js.br +0 -0
- package/assets/devtools/chunk.D4SUrYI2.js.gz +0 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js +1 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js.br +0 -0
- package/assets/devtools/chunk.DAeCHJ5Z.js.gz +0 -0
- package/assets/devtools/{chunk.CgxElNrD.js → chunk.DN2ng7Ec.js} +1 -1
- package/assets/devtools/chunk.DN2ng7Ec.js.br +3 -0
- package/assets/devtools/chunk.DN2ng7Ec.js.gz +0 -0
- package/assets/devtools/chunk.DXhVYZJu.js +1 -0
- package/assets/devtools/chunk.DXhVYZJu.js.br +0 -0
- package/assets/devtools/chunk.DXhVYZJu.js.gz +0 -0
- package/assets/devtools/{chunk.BWdBHr2F.js → chunk.DgZ24mun.js} +3 -3
- package/assets/devtools/chunk.DgZ24mun.js.br +0 -0
- package/assets/devtools/chunk.DgZ24mun.js.gz +0 -0
- package/assets/devtools/{chunk.DGI4-Nej.js → chunk.DkirMznI.js} +1 -1
- package/assets/devtools/chunk.DkirMznI.js.br +0 -0
- package/assets/devtools/chunk.DkirMznI.js.gz +0 -0
- package/assets/devtools/chunk.Dnb5TqA8.js +1 -0
- package/assets/devtools/chunk.Dnb5TqA8.js.br +0 -0
- package/assets/devtools/chunk.Dnb5TqA8.js.gz +0 -0
- package/assets/devtools/{chunk.9K7EO5hq.js → chunk.DqdWWOSs.js} +1 -1
- package/assets/devtools/chunk.DqdWWOSs.js.br +0 -0
- package/assets/devtools/chunk.DqdWWOSs.js.gz +0 -0
- package/assets/devtools/{chunk.s1U1MhH3.js → chunk.DrLudrGo.js} +1 -1
- package/assets/devtools/chunk.DrLudrGo.js.br +0 -0
- package/assets/devtools/chunk.DrLudrGo.js.gz +0 -0
- package/assets/devtools/{chunk.CMTEfKUa.js → chunk.K-Ms8Mzm.js} +1 -1
- package/assets/devtools/chunk.K-Ms8Mzm.js.br +1 -0
- package/assets/devtools/chunk.K-Ms8Mzm.js.gz +0 -0
- package/assets/devtools/chunk.KgyhVGwW.js +9 -0
- package/assets/devtools/chunk.KgyhVGwW.js.br +0 -0
- package/assets/devtools/chunk.KgyhVGwW.js.gz +0 -0
- package/assets/devtools/{chunk.CUw48lF5.js → chunk.U6B6OT4m.js} +1 -1
- package/assets/devtools/chunk.U6B6OT4m.js.br +0 -0
- package/assets/devtools/chunk.U6B6OT4m.js.gz +0 -0
- package/assets/devtools/chunk.V91GMRqU.js +1 -0
- package/assets/devtools/chunk.V91GMRqU.js.br +0 -0
- package/assets/devtools/chunk.V91GMRqU.js.gz +0 -0
- package/assets/devtools/{chunk.lvb4PIb4.js → chunk.YsQsplrn.js} +1 -1
- package/assets/devtools/chunk.YsQsplrn.js.br +0 -0
- package/assets/devtools/chunk.YsQsplrn.js.gz +0 -0
- package/assets/devtools/{chunk.B4porofG.js → chunk.ax3VFVgz.js} +1 -1
- package/assets/devtools/chunk.ax3VFVgz.js.br +0 -0
- package/assets/devtools/chunk.ax3VFVgz.js.gz +0 -0
- package/assets/devtools/{chunk.BP23bv4G.js → chunk.qLydHlIe.js} +1 -1
- package/assets/devtools/chunk.qLydHlIe.js.br +0 -0
- package/assets/devtools/chunk.qLydHlIe.js.gz +0 -0
- package/assets/devtools/db.html +5 -3
- package/assets/devtools/db.html.br +0 -0
- package/assets/devtools/db.html.gz +0 -0
- package/assets/devtools/entry.DqiMGelS.js +79 -0
- package/assets/devtools/entry.DqiMGelS.js.br +0 -0
- package/assets/devtools/entry.DqiMGelS.js.gz +0 -0
- package/assets/devtools/env.html +5 -3
- package/assets/devtools/env.html.br +0 -0
- package/assets/devtools/env.html.gz +0 -0
- package/assets/devtools/graph.html +5 -3
- package/assets/devtools/graph.html.br +0 -0
- package/assets/devtools/graph.html.gz +0 -0
- package/assets/devtools/index.html +5 -3
- package/assets/devtools/index.html.br +0 -0
- package/assets/devtools/index.html.gz +0 -0
- package/assets/devtools/logs.html +5 -3
- package/assets/devtools/logs.html.br +0 -0
- package/assets/devtools/logs.html.gz +0 -0
- package/assets/devtools/queues.html +5 -3
- package/assets/devtools/queues.html.br +0 -0
- package/assets/devtools/queues.html.gz +0 -0
- package/assets/devtools/topics.html +5 -3
- package/assets/devtools/topics.html.br +0 -0
- package/assets/devtools/topics.html.gz +0 -0
- package/dist/index.d.ts +15 -5
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
- package/src/api/providers/DevToolsDatabaseProvider.ts +2 -2
- package/src/index.ts +19 -5
- package/src/ui/AppRouter.tsx +1 -1
- package/src/ui/components/DevAtomsViewer.tsx +1 -1
- package/src/ui/components/DevCacheInspector.tsx +1 -1
- package/src/ui/components/DevEnvExplorer.tsx +1 -1
- package/src/ui/components/DevLogViewer.tsx +2 -2
- package/src/ui/components/DevTopicsViewer.tsx +1 -1
- package/src/ui/components/actions/DevActionsExplorer.tsx +1 -1
- package/src/ui/components/actions/TryItPanel.tsx +1 -1
- package/src/ui/components/db/DevDbStudio.tsx +1 -1
- package/src/ui/components/graph/DevDependencyGraph.tsx +1 -1
- package/assets/devtools/asset.CMFNRMve.css.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js.br +0 -0
- package/assets/devtools/chunk.9K7EO5hq.js.gz +0 -0
- package/assets/devtools/chunk.B4porofG.js.br +0 -0
- package/assets/devtools/chunk.B4porofG.js.gz +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.br +0 -0
- package/assets/devtools/chunk.BIGcMrv-.js.gz +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.br +0 -0
- package/assets/devtools/chunk.BP23bv4G.js.gz +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.br +0 -0
- package/assets/devtools/chunk.BWdBHr2F.js.gz +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js +0 -9
- package/assets/devtools/chunk.BfFwPQgv.js.br +0 -0
- package/assets/devtools/chunk.BfFwPQgv.js.gz +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.br +0 -0
- package/assets/devtools/chunk.BiIrl-Hq.js.gz +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js +0 -1
- package/assets/devtools/chunk.C8JxGZtc.js.br +0 -0
- package/assets/devtools/chunk.C8JxGZtc.js.gz +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.br +0 -0
- package/assets/devtools/chunk.CFLl96SC.js.gz +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.br +0 -0
- package/assets/devtools/chunk.CMTEfKUa.js.gz +0 -0
- package/assets/devtools/chunk.CN7ovTep.js.br +0 -0
- package/assets/devtools/chunk.CN7ovTep.js.gz +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js +0 -1
- package/assets/devtools/chunk.CUs8lFwI.js.br +0 -0
- package/assets/devtools/chunk.CUs8lFwI.js.gz +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.br +0 -0
- package/assets/devtools/chunk.CUw48lF5.js.gz +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js +0 -1
- package/assets/devtools/chunk.CdkqxSCz.js.br +0 -0
- package/assets/devtools/chunk.CdkqxSCz.js.gz +0 -0
- package/assets/devtools/chunk.CgxElNrD.js.br +0 -2
- package/assets/devtools/chunk.CgxElNrD.js.gz +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.br +0 -0
- package/assets/devtools/chunk.CoH_IYrv.js.gz +0 -0
- package/assets/devtools/chunk.D0butndH.js +0 -1
- package/assets/devtools/chunk.D0butndH.js.br +0 -0
- package/assets/devtools/chunk.D0butndH.js.gz +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.br +0 -0
- package/assets/devtools/chunk.DGI4-Nej.js.gz +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.br +0 -0
- package/assets/devtools/chunk.DOiJ5r3P.js.gz +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.br +0 -0
- package/assets/devtools/chunk.DZFiDTv5.js.gz +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js.br +0 -0
- package/assets/devtools/chunk.Dbm9E6HI.js.gz +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js +0 -1
- package/assets/devtools/chunk.DdgmE5g8.js.br +0 -0
- package/assets/devtools/chunk.DdgmE5g8.js.gz +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js +0 -1
- package/assets/devtools/chunk.DeN6s4_I.js.br +0 -0
- package/assets/devtools/chunk.DeN6s4_I.js.gz +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js +0 -1
- package/assets/devtools/chunk.DpW9QoyF.js.br +0 -0
- package/assets/devtools/chunk.DpW9QoyF.js.gz +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js +0 -1
- package/assets/devtools/chunk.PcVF_qXP.js.br +0 -0
- package/assets/devtools/chunk.PcVF_qXP.js.gz +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js +0 -1
- package/assets/devtools/chunk.Q6_b9IUt.js.br +0 -0
- package/assets/devtools/chunk.Q6_b9IUt.js.gz +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js.br +0 -0
- package/assets/devtools/chunk.YqHRwxdc.js.gz +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js +0 -1
- package/assets/devtools/chunk._D_TfCmJ.js.br +0 -0
- package/assets/devtools/chunk._D_TfCmJ.js.gz +0 -0
- package/assets/devtools/chunk.l66LreXu.js.br +0 -0
- package/assets/devtools/chunk.l66LreXu.js.gz +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.br +0 -0
- package/assets/devtools/chunk.lvb4PIb4.js.gz +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js +0 -2
- package/assets/devtools/chunk.rvqQkpV6.js.br +0 -0
- package/assets/devtools/chunk.rvqQkpV6.js.gz +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.br +0 -0
- package/assets/devtools/chunk.s1U1MhH3.js.gz +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js.br +0 -0
- package/assets/devtools/chunk.wg5XuK3_.js.gz +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js +0 -79
- package/assets/devtools/entry.Cgjh-xX-.js.br +0 -0
- package/assets/devtools/entry.Cgjh-xX-.js.gz +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunk.DdgmE5g8.js","chunk.DpW9QoyF.js","chunk.CN7ovTep.js","chunk.BlqFPyLh.js","chunk.C8JxGZtc.js","chunk.BjFrJKj1.js","chunk.DOiJ5r3P.js","chunk.CgxElNrD.js","chunk.DeN6s4_I.js","chunk.uyVen0u2.js","chunk.Dbm9E6HI.js","chunk.9K7EO5hq.js","chunk.rvqQkpV6.js","chunk.BIGcMrv-.js","chunk.wg5XuK3_.js","chunk.PcVF_qXP.js","chunk.s1U1MhH3.js","chunk.BiIrl-Hq.js","chunk._D_TfCmJ.js","chunk.DGI4-Nej.js","chunk.B4porofG.js","chunk.lvb4PIb4.js","chunk.l66LreXu.js","chunk.DZFiDTv5.js","chunk.CoH_IYrv.js","chunk.Q6_b9IUt.js","chunk.CFLl96SC.js","chunk.CMTEfKUa.js","chunk.YqHRwxdc.js","chunk.CUw48lF5.js","chunk.BfFwPQgv.js","chunk.BP23bv4G.js","chunk.CdkqxSCz.js","chunk.BWdBHr2F.js","chunk.D0butndH.js","asset.BZV40eAE.css","chunk.CUs8lFwI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var s3=Object.defineProperty;var a3=(t,e,n)=>e in t?s3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Bs=(t,e,n)=>a3(t,typeof e!="symbol"?e+"":e,n);function l3(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(r,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();const Rn=Symbol.for("Alepha.Kind"),Hn=Symbol.for("Alepha.Module"),Wu=Symbol.for("Alepha.Options");class kt extends Error{name="AlephaError"}class u3 extends kt{name="CircularDependencyError";constructor(e,n){super(`Instance not available. Looks like a circular dependency. ? -> ${n?.map(r=>`${r} -> `).join("")}${e} -> ?`)}}class ww extends kt{name="ContainerLockedError";constructor(e="Container is locked. No more providers can be added."){super(e)}}class c3 extends kt{name="TooLateSubstitutionError";constructor(e,n){super(`Service already substituted. Please, substitute Service '${e}' with Service '${n}' before using it.`)}}class f3 extends kt{name="MissingContextError";constructor(){super("Missing context. Did you forget to call Alepha.create()?"),this.name="MissingContextError"}}const zr={},cc=()=>{if(!zr.alepha)throw new f3;return{alepha:zr.alepha,service:zr.service,module:zr.service?.[Hn]}};class fi{alepha;options;config;constructor(e){this.alepha=e.alepha,this.options=e.options,this.config={propertyKey:"",service:e.service,module:e.module}}onInit(){}}const ls=(t,e)=>{const{alepha:n,service:r}=cc();return Hn in t&&t[Hn]&&n.with(t[Hn]),n.inject(t,{lifetime:"transient",args:[{options:e,alepha:n,service:r??Re}]})};function d3(t){if(typeof t!="function")return!1;const e=Object.getOwnPropertyDescriptor(t,"prototype");return!!e&&!e.writable}const gr=t=>{const{services:e=[],primitives:n=[],name:r}=t;if(!r||!sl.NAME_REGEX.test(r))throw new kt(`Invalid module name '${r}'. It should be in the format of 'project.module.submodule'`);const s=class extends sl{options=t;register(l){if(t.atoms)for(const c of t.atoms)l.store.register(c);if(typeof t.register=="function"){t.register(l);return}for(const c of e)l.inject(c,{parent:this.constructor})}};Object.defineProperty(s,"name",{value:r,writable:!1});for(const l of e)sl.is(l)||(l[Hn]=s);for(const l of n)typeof l[Rn]=="function"&&(l[Rn][Hn]=s);return s};let sl=class E2{static NAME_REGEX=/^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;static is(e){return e.prototype instanceof E2}static of(e){return e[Hn]}};class tm{static create=()=>{};als;constructor(){this.als=tm.create()}createContextId(){return crypto.randomUUID()}run(e,n={}){return this.als?(n.registry??=new Map,n.context??=this.createContextId(),this.als.run({...n},e)):e()}exists(){return!!this.get("context")}get(e){if(!this.als)return;const n=this.als.getStore();if(n)return n[e]}set(e,n){if(!this.als)return;const r=this.als.getStore();r&&(r[e]=n)}}const Rt=(t,e={})=>{const{alepha:n,service:r}=cc();return t===n.constructor?n:n.inject(t,{parent:r??n.constructor,...e})};let m3=class{stringify(e,n,r){return JSON.stringify(e,n,r)}parse(e,n){return JSON.parse(e,n)}};class w2{}class T2 extends w2{json=Rt(m3);encoder=new TextEncoder;decoder=new TextDecoder;encodeToString(e,n){return this.json.stringify(n)}encodeToBinary(e,n){return this.encoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.decoder.decode(n);return this.json.parse(r)}if(typeof n=="string"){const r=n.trim();return r.startsWith("{")||r.startsWith("[")?this.json.parse(n):n}return n}}const ar=t=>ls(C2,t);class C2 extends fi{called=0;onInit(){const e=this.options.handler;this.alepha.events.on(this.options.on,{caller:this.config.service,priority:this.options.priority,callback:n=>(this.called+=1,e(n))})}}ar[Rn]=C2;function Xe(t,e){return{...t,...e}}function es(t,e,n){return t>=e&&t<=n}function Tw(t){return es(t,127462,127487)}function p3(t){return es(t,65024,65039)}function h3(t){return es(t,768,879)||es(t,6832,6911)||es(t,7616,7679)||es(t,65056,65071)}function vd(t){return t>65535?2:1}function Cw(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(h3(n)||p3(n))e+=vd(n);else break}return e}function v0(t,e){const n=t.codePointAt(e);let r=e+vd(n);for(r=Cw(t,r);r<t.length-1&&t[r]==="";){const s=t.codePointAt(r+1);r+=1+vd(s),r=Cw(t,r)}return Tw(n)&&r<t.length&&Tw(t.codePointAt(r))&&(r+=vd(t.codePointAt(r))),r}function A2(t){return es(t,55296,56319)||es(t,768,879)||t===8205}function g3(t){let e=0,n=0;for(;n<t.length;)n=v0(t,n),e++;return e}function y3(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=v0(t,r),n++,n>=e)return!0;return!1}function b3(t,e){let n=0,r=0;for(;r<t.length;)if(r=v0(t,r),n++,n>e)return!1;return!0}function v3(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(A2(t.charCodeAt(n)))return y3(t,e);if(n++,n>=e)return!0}return!1}function S3(t,e){let n=0;for(;n<t.length;){if(A2(t.charCodeAt(n)))return b3(t,e);if(n++,n>e)return!1}return!0}function Et(t){return Array.isArray(t)}function $2(t){return Mt(t)&&Symbol.asyncIterator in t}function Ne(t){return M(typeof t,"bigint")}function Fe(t){return M(typeof t,"boolean")}function S0(t){if(ye(t)||!si(t))return!1;const e=Function.prototype.toString.call(t);return!!(/^class\s/.test(e)||/\[native code\]/.test(e))}function si(t){return M(typeof t,"function")}function em(t){return Number.isInteger(t)}function M2(t){return Mt(t)&&Symbol.iterator in t}function Kn(t){return M(t,null)}function Kt(t){return Number.isFinite(t)}function di(t){return Mt(t)&&!Et(t)}function Mt(t){return M(typeof t,"object")&&!Kn(t)}function jt(t){return M(typeof t,"string")}function x0(t){return M(typeof t,"symbol")}function ye(t){return M(t,void 0)}function M(t,e){return t===e}function bl(t,e){return t>e}function nm(t,e){return t<e}function mi(t,e){return t<=e}function vl(t,e){return t>=e}function R2(t,e){if(Ne(t)||Ne(e))return BigInt(t)%BigInt(e)===0n;const n=1e-10;if(!Kt(t)||em(t)&&1/e%1===0)return!0;const r=t%e;return Math.min(Math.abs(r),Math.abs(r-e))<n}function O2(t){if(!Mt(t))return!1;const e=globalThis.Object.getPrototypeOf(t);return Kn(e)?!1:M(typeof e.constructor,"function")&&!(M(e.constructor,globalThis.Object)||M(e.constructor.name,"Object"))}function fc(t){return Ne(t)||Fe(t)||Kn(t)||Kt(t)||jt(t)||ye(t)}function x3(t){return g3(t)}function N2(t,e){return S3(t,e)}function _2(t,e){return v3(t,e)}function gn(t,e,n){for(let r=e;r<t.length;r++)if(!n(t[r],r))return!1;return!0}function yn(t,e,n){let r=!0;for(let s=e;s<t.length;s++)n(t[s],s)||(r=!1);return r}function at(t,e){return M(e,"__proto__")||M(e,"constructor")?Object.prototype.hasOwnProperty.call(t,e):e in t}function E0(t){return yt(t).map(e=>[new RegExp(`^${e}$`),t[e]])}function Qe(t){return Object.entries(t)}function yt(t){return Object.getOwnPropertyNames(t)}function E3(t){return Object.getOwnPropertySymbols(t)}function w0(t){return Object.values(t)}function w3(t,e){if(!Mt(e))return!1;const n=yt(t);return M(n.length,yt(e).length)&&n.every(r=>dc(t[r],e[r]))}function T3(t,e){return Et(e)&&M(t.length,e.length)&&t.every((n,r)=>dc(t[r],e[r]))}function dc(t,e){return Et(t)?T3(t,e):Mt(t)?w3(t,e):M(t,e)}const C3=Object.freeze(Object.defineProperty({__proto__:null,Entries:Qe,EntriesRegExp:E0,Every:gn,EveryAll:yn,GraphemeCount:x3,HasPropertyKey:at,IsArray:Et,IsAsyncIterator:$2,IsBigInt:Ne,IsBoolean:Fe,IsClassInstance:O2,IsConstructor:S0,IsDeepEqual:dc,IsEqual:M,IsFunction:si,IsGreaterEqualThan:vl,IsGreaterThan:bl,IsInteger:em,IsIterator:M2,IsLessEqualThan:mi,IsLessThan:nm,IsMaxLength:N2,IsMinLength:_2,IsMultipleOf:R2,IsNull:Kn,IsNumber:Kt,IsObject:Mt,IsObjectNotArray:di,IsString:jt,IsSymbol:x0,IsUndefined:ye,IsValueLike:fc,Keys:yt,Symbols:E3,Values:w0},Symbol.toStringTag,{value:"Module"})),A3=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function $3(t){return A3.test(t)}function yr(t,e){return`(${t} && ${e})`}function ve(t,e){return`(${t} || ${e})`}function An(t){return`!(${t})`}function Id(t){return`Array.isArray(${t})`}function M3(t){return`Guard.IsAsyncIterator(${t})`}function D2(t){return`typeof ${t} === "bigint"`}function R3(t){return`typeof ${t} === "boolean"`}function O3(t){return`Number.isInteger(${t})`}function N3(t){return`Guard.IsIterator(${t})`}function _3(t){return`${t} === null`}function j2(t){return`Number.isFinite(${t})`}function I2(t){return yr(L2(t),An(Id(t)))}function L2(t){return`typeof ${t} === "object" && ${t} !== null`}function z2(t){return`typeof ${t} === "string"`}function D3(t){return`typeof ${t} === "symbol"`}function $y(t){return`${t} === undefined`}function j3(t){return`typeof ${t} === "function"`}function I3(t){return`Guard.IsConstructor(${t})`}function ur(t,e){return`${t} === ${e}`}function B2(t,e){return`${t} > ${e}`}function U2(t,e){return`${t} < ${e}`}function Sl(t,e){return`${t} <= ${e}`}function rm(t,e){return`${t} >= ${e}`}function L3(t,e){return`Guard.IsMinLength(${t}, ${e})`}function z3(t,e){return`Guard.IsMaxLength(${t}, ${e})`}function ta(t,e,n,r){return M(e,"0")?`${t}.every((${n[0]}, ${n[1]}) => ${r})`:`((value, callback) => { for(let index = ${e}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${n[0]}, ${n[1]}) => ${r})`}function k2(t){return`Object.entries(${t})`}function ea(t){return`Object.getOwnPropertyNames(${t})`}function Vs(t,e){return M(e,'"__proto__"')||M(e,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${e})`:`${e} in ${t}`}function P2(t,e){return`Guard.IsDeepEqual(${t}, ${e})`}function B3(t){return`[${t.join(", ")}]`}function cr(t,e){return`((${t.join(", ")}) => ${e})`}function ne(t,e){return`${t}(${e.join(", ")})`}function T0(t,e){return`new ${t}(${e.join(", ")})`}function Dt(t,e){return`${t}${$3(e)?`.${e}`:`[${St(e)}]`}`}function St(t){return jt(t)?JSON.stringify(t):`${t}`}function om(t,e,n){return`(${t} ? ${e} : ${n})`}function im(t){return`{ ${t.join("; ")}; }`}function ri(t,e){return`const ${t} = ${e}`}function H2(t,e){return`if(${t}) { ${e} }`}function sm(t){return`return ${t}`}function xn(t){return M(t.length,0)?"true":t.reduce((e,n)=>yr(e,n))}function C0(t){return M(t.length,0)?"false":t.reduce((e,n)=>ve(e,n))}function A0(t){return`++${t}`}function U3(t,e){return`Guard.IsMultipleOf(${t}, ${e})`}function k3(t){return t instanceof Boolean}function P3(t){return t instanceof Number}function H3(t){return t instanceof String}function F2(t){return globalThis.ArrayBuffer.isView(t)}function F3(t){return t instanceof globalThis.RegExp}function q3(t){return t instanceof globalThis.Date}function G3(t){return t instanceof globalThis.Set}function Y3(t){return t instanceof globalThis.Map}function V3(t){return Mt(t)&&at(t,"~guard")}function K3(t){return t.map(e=>$0(e))}function X3(t){const e={},n=Object.getOwnPropertyDescriptors(t);for(const r of Object.keys(n)){const s=n[r];at(s,"value")&&Object.defineProperty(e,r,{...s,value:$0(s.value)})}return e}function Q3(t){return new RegExp(t.source,t.flags)}function $0(t){return t instanceof RegExp?Q3(t):V3(t)?t:Et(t)?K3(t):Mt(t)?X3(t):t}function q2(t){return $0(t)}const Z3={immutableTypes:!1,maxErrors:8,useEval:!0,exactOptionalPropertyTypes:!1,enumerableKind:!1};function mc(){return Z3}function J3(t,e,n={}){for(const r of Object.keys(e))Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:!1,value:e[r]});return t}function W3(t,e){return{...t,...e}}function Nt(t,e,n={}){const r=W3(e,n);return J3(r,t)}function Gr(t,e){const n={},r=Object.getOwnPropertyDescriptors(q2(t)),s=new Set(e);for(const l of Object.keys(r))s.has(l)||Object.defineProperty(n,l,r[l]);return n}function Qt(t,e,n){const r=mc(),s=q2(t);for(const l of Object.keys(e))Object.defineProperty(s,l,{configurable:!0,writable:!0,enumerable:r.enumerableKind,value:e[l]});for(const l of Object.keys(n))Object.defineProperty(s,l,{configurable:!0,enumerable:!0,writable:!0,value:n[l]});return s}function Ht(t,e){return Mt(t)&&at(t,"~kind")&&M(t["~kind"],e)}function Ut(t){return Mt(t)}function tD(t){return Nt({"~kind":"OptionalAddAction"},{type:t},{})}function eD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalAddAction")&&Ut(t.type)}function nD(t){return Nt({"~kind":"OptionalRemoveAction"},{type:t},{})}function rD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"OptionalRemoveAction")&&Ut(t.type)}function oD(t){return Nt({"~kind":"ReadonlyAddAction"},{type:t},{})}function iD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyAddAction")&&Ut(t.type)}function sD(t){return Nt({"~kind":"ReadonlyRemoveAction"},{type:t},{})}function aD(t){return Mt(t)&&at(t,"~kind")&&at(t,"type")&&M(t["~kind"],"ReadonlyRemoveAction")&&Ut(t.type)}function me(t,e,n){return Nt({"~kind":"Deferred"},{action:t,parameters:e,options:n},{})}function lD(t){return Ht(t,"Deferred")}function G2(t){return Qt(t,{"~immutable":!0},{})}function am(t){return G2(t)}function Ld(t){return Ut(t)&&at(t,"~immutable")}function M0(t){return Gr(t,["~optional"])}function kr(t){return Qt(t,{"~optional":!0},{})}function R0(t){return kr(t)}function Gn(t){return Ut(t)&&at(t,"~optional")}function Y2(t){return Gr(t,["~readonly"])}function Pr(t){return Qt(t,{"~readonly":!0},{})}function V2(t){return Pr(t)}function zd(t){return Ut(t)&&at(t,"~readonly")}function na(t,e){return Nt({"~kind":"Array"},{type:"array",items:t},e)}function nn(t){return Ht(t,"Array")}function K2(t){return Gr(t,["~kind","type","items"])}function pc(t,e){return Nt({"~kind":"AsyncIterator"},{type:"asyncIterator",iteratorItems:t},e)}function us(t){return Ht(t,"AsyncIterator")}function uD(t){return Gr(t,["~kind","type","iteratorItems"])}function Aw(t){return{enumerable:mc().enumerableKind,writable:!1,configurable:!1,value:t}}let X2=class{constructor(){globalThis.Object.defineProperty(this,"~kind",Aw("Base")),globalThis.Object.defineProperty(this,"~guard",Aw({check:e=>this.Check(e),errors:e=>this.Errors(e)}))}Check(e){return!0}Errors(e){return[]}Convert(e){return e}Clean(e){return e}Default(e){return e}Create(){throw new Error("Create not implemented")}Clone(){throw Error("Clone not implemented")}};function xl(t){return Ht(t,"Base")}function lm(t,e,n={}){return Nt({"~kind":"Constructor"},{type:"constructor",parameters:t,instanceType:e},n)}function Do(t){return Ht(t,"Constructor")}function cD(t){return Gr(t,["~kind","type","parameters","instanceType"])}function um(t,e,n={}){return Nt({"~kind":"Function"},{type:"function",parameters:t,returnType:e},n)}function jo(t){return Ht(t,"Function")}function fD(t){return Gr(t,["~kind","type","parameters","returnType"])}function On(t,e){return Nt({"~kind":"Ref"},{$ref:t},e)}function Nn(t){return Ht(t,"Ref")}function hc(t,e){return Nt({"~kind":"Generic"},{type:"generic",parameters:t,expression:e})}function O0(t){return Ht(t,"Generic")}const dD="(?!)";function Ze(t){return Nt({"~kind":"Never"},{not:{}},t)}function cm(t){return Ht(t,"Never")}function mD(){return["(not-resolvable)",Ze()]}function pD(){return["(not-generic)",Ze()]}function hD(t,e,n){return[t,hc(e,n)]}function gD(t,e,n){return e in t?Q2(t,e,t[e]):mD()}function Q2(t,e,n,r){return O0(n)?hD(e,n.parameters,n.expression):Nn(n)?gD(t,n.$ref):pD()}function yD(t,e,n){return Q2(t,"(anonymous)",e)}function gc(t,e,n){const r=yt(t).reduce((s,l)=>({...s,[l]:Qt(t[l],{},{$id:l})}),{});return Nt({"~kind":"Cyclic"},{$defs:r,$ref:e},n)}function _n(t){return Ht(t,"Cyclic")}function rn(t,e){return e[t.length]?.(...t)??(()=>{throw Error("Invalid Arguments")})()}function fr(t){return Nt({"~kind":"Unknown"},{},t)}function rs(t){return Ht(t,"Unknown")}function My(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s,s],1:r=>[r,fr(),fr()]});return Nt({"~kind":"Infer"},{type:"infer",name:e,extends:n},{})}function dr(t){return Ht(t,"Infer")}function al(t){return Nt({"~kind":"Any"},{},t)}function pi(t){return Ht(t,"Any")}function bD(t){return di(t)}function vD(t){return yt(t).filter(n=>isNaN(n)).reduce((n,r)=>[...n,t[r]],[])}function SD(t,e){const n=bD(t)?vD(t):t;return Nt({"~kind":"Enum"},{enum:n},e)}function uo(t){return Ht(t,"Enum")}function Ks(t,e={}){return Nt({"~kind":"Intersect"},{allOf:t},e)}function Ee(t){return Ht(t,"Intersect")}function xD(t){return Gr(t,["~kind","allOf"])}function He(){throw new Error("Unreachable")}let Gg;function ED(){try{return new globalThis.Function("null")(),!0}catch{return!1}}function N0(){return ye(Gg)&&(Gg=ED()),Gg&&mc().useEval}function wD(t){const e=new Set;let n=t;for(;n&&n!==Object.prototype;){for(const r of Reflect.ownKeys(n))r!=="constructor"&&typeof r!="symbol"&&e.add(r);n=Object.getPrototypeOf(n)}return[...e]}function TD(t){return typeof t=="number"}var En;(function(t){t[t.Array=0]="Array",t[t.BigInt=1]="BigInt",t[t.Boolean=2]="Boolean",t[t.Date=3]="Date",t[t.Constructor=4]="Constructor",t[t.Function=5]="Function",t[t.Null=6]="Null",t[t.Number=7]="Number",t[t.Object=8]="Object",t[t.RegExp=9]="RegExp",t[t.String=10]="String",t[t.Symbol=11]="Symbol",t[t.TypeArray=12]="TypeArray",t[t.Undefined=13]="Undefined"})(En||(En={}));let ol=BigInt("14695981039346656037");const[CD,AD]=[BigInt("1099511628211"),BigInt("18446744073709551616")],$D=Array.from({length:256}).map((t,e)=>BigInt(e)),Z2=new Float64Array(1),J2=new DataView(Z2.buffer),W2=new Uint8Array(Z2.buffer);function en(t){ol=ol^$D[t],ol=ol*CD%AD}function MD(t){en(En.Array);for(const e of t)os(e)}function RD(t){en(En.BigInt),J2.setBigInt64(0,t);for(const e of W2)en(e)}function $w(t){en(En.Boolean),en(t?1:0)}function OD(t){en(En.Constructor),os(t.toString())}function ND(t){en(En.Date),os(t.getTime())}function _D(t){en(En.Function),os(t.toString())}function DD(t){en(En.Null)}function Mw(t){en(En.Number),J2.setFloat64(0,t,!0);for(const e of W2)en(e)}function jD(t){en(En.Object);for(const e of wD(t).sort())os(e),os(t[e])}function ID(t){en(En.RegExp),Ry(t.toString())}const LD=new TextEncoder;function Ry(t){en(En.String);for(const e of LD.encode(t))en(e)}function zD(t){en(En.Symbol),os(t.toString())}function BD(t){en(En.TypeArray);const e=new Uint8Array(t.buffer);for(let n=0;n<e.length;n++)en(e[n])}function UD(t){return en(En.Undefined)}function os(t){return F2(t)?BD(t):q3(t)?ND(t):F3(t)?ID(t):k3(t)?$w(t.valueOf()):H3(t)?Ry(t.valueOf()):P3(t)?Mw(t.valueOf()):TD(t)?Mw(t):Et(t)?MD(t):Fe(t)?$w(t):Ne(t)?RD(t):S0(t)?OD(t):Kn(t)?DD():Mt(t)?jD(t):jt(t)?Ry(t):x0(t)?zD(t):ye(t)?UD():si(t)?_D(t):He()}function tC(t){return ol=BigInt("14695981039346656037"),os(t),ol}function ec(t){return tC(t).toString(16).padStart(16,"0")}const kD=Object.freeze(Object.defineProperty({__proto__:null,Hash:ec,HashCode:tC},Symbol.toStringTag,{value:"Module"}));function PD(t){switch(t.keyword){case"additionalProperties":return"must not have additional properties";case"anyOf":return"must match a schema in anyOf";case"boolean":return"schema is false";case"const":return"must be equal to constant";case"contains":return"must contain at least 1 valid item";case"dependencies":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"dependentRequired":return`must have properties ${t.params.dependencies.join(", ")} when property ${t.params.property} is present`;case"enum":return"must be equal to one of the allowed values";case"exclusiveMaximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"exclusiveMinimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"format":return`must match format "${t.params.format}"`;case"if":return`must match "${t.params.failingKeyword}" schema`;case"maxItems":return`must not have more than ${t.params.limit} items`;case"maxLength":return`must not have more than ${t.params.limit} characters`;case"maxProperties":return`must not have more than ${t.params.limit} properties`;case"maximum":return`must be ${t.params.comparison} ${t.params.limit}`;case"minItems":return`must not have fewer than ${t.params.limit} items`;case"minLength":return`must not have fewer than ${t.params.limit} characters`;case"minProperties":return`must not have fewer than ${t.params.limit} properties`;case"minimum":return`must be ${t.params.comparison} ${t.params.limit}`;case"multipleOf":return`must be multiple of ${t.params.multipleOf}`;case"not":return"must not be valid";case"oneOf":return"must match exactly one schema in oneOf";case"pattern":return`must match pattern "${t.params.pattern}"`;case"propertyNames":return`property names ${t.params.propertyNames.join(", ")} are invalid`;case"required":return`must have required properties ${t.params.requiredProperties.join(", ")}`;case"type":return typeof t.params.type=="string"?`must be ${t.params.type}`:`must be either ${t.params.type.join(" or ")}`;case"unevaluatedItems":return"must not have unevaluated items";case"unevaluatedProperties":return"must not have unevaluated properties";case"uniqueItems":return"must not have duplicate items";case"~guard":return"must match check function";case"~refine":return t.params.message;default:return"an unknown validation error occurred"}}let HD=PD;function FD(){return HD}class eC{constructor(e,n){this.type=e,this.decode=n}Encode(e){const n=this.type,r=mr(n)?c=>this.decode(n["~codec"].decode(c)):this.decode,s=mr(n)?c=>n["~codec"].encode(e(c)):e,l={decode:r,encode:s};return Qt(this.type,{"~codec":l},{})}}class nC{constructor(e){this.type=e}Decode(e){return new eC(this.type,e)}}function _0(t){return new nC(t)}function qD(t,e){return _0(t).Decode(e).Encode(()=>{throw Error("Encode not implemented")})}function GD(t,e){return _0(t).Decode(()=>{throw Error("Decode not implemented")}).Encode(e)}function mr(t){return Ut(t)&&at(t,"~codec")&&Mt(t["~codec"])&&at(t["~codec"],"encode")&&at(t["~codec"],"decode")}function YD(t,e){const n=rC(t)?[...t["~refine"],e]:[e];return Qt(t,{"~refine":n},{})}function VD(t,e,n="error"){return YD(t,{refine:e,message:n})}function rC(t){return Ut(t)&&at(t,"~refine")}const KD="-?(?:0|[1-9][0-9]*)n";function D0(t){return Nt({"~kind":"BigInt"},{type:"bigint"},t)}function ra(t){return Ht(t,"BigInt")}function j0(t){return Nt({"~kind":"Boolean"},{type:"boolean"},t)}function hi(t){return Ht(t,"Boolean")}function Bd(t){return Nt({"~kind":"Identifier"},{name:t})}function XD(t){return Ht(t,"Identifier")}const oC="-?(?:0|[1-9][0-9]*)";function fl(t){return Nt({"~kind":"Integer"},{type:"integer"},t)}function co(t){return Ht(t,"Integer")}function yc(t,e){return Nt({"~kind":"Iterator"},{type:"iterator",iteratorItems:t},e)}function cs(t){return Ht(t,"Iterator")}function QD(t){return Gr(t,["~kind","type","iteratorItems"])}class ZD extends Error{constructor(e){super("Invalid Literal value"),Object.defineProperty(this,"cause",{value:{value:e},writable:!1,configurable:!1,enumerable:!1})}}function JD(t){return Ne(t)?"bigint":Fe(t)?"boolean":Kt(t)?"number":jt(t)?"string":(()=>{throw new ZD(t)})()}function be(t,e){return Nt({"~kind":"Literal"},{type:JD(t),const:t},e)}function iC(t){return Ne(t)||Fe(t)||Kt(t)||jt(t)}function WD(t){return Ie(t)&&Ne(t.const)}function tj(t){return Ie(t)&&Fe(t.const)}function I0(t){return Ie(t)&&Kt(t.const)}function L0(t){return Ie(t)&&jt(t.const)}function Ie(t){return Ht(t,"Literal")}function Gs(t){return Nt({"~kind":"Null"},{type:"null"},t)}function El(t){return Ht(t,"Null")}const sC="-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?";function ai(t){return Nt({"~kind":"Number"},{type:"number"},t)}function br(t){return Ht(t,"Number")}function z0(t){return Nt({"~kind":"Symbol"},{type:"symbol"},t)}function bc(t){return Ht(t,"Symbol")}function ej(t){return yt(t).filter(e=>!Gn(t[e]))}function nj(t){return yt(t)}function aC(t){return w0(t)}function le(t,e={}){const n=ej(t),r=n.length>0?{required:n}:{};return Nt({"~kind":"Object"},{type:"object",...r,properties:t},e)}function $e(t){return Ht(t,"Object")}function rj(t){return Gr(t,["~kind","type","properties","required"])}function vc(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[s,l,l],1:s=>[s,fr(),fr()]});return Nt({"~kind":"Parameter"},{name:e,extends:n,equals:r},{})}function oj(t){return Ht(t,"Parameter")}function Sc(t,e){return Nt({"~kind":"Promise"},{type:"promise",item:t},e)}function gi(t){return Ht(t,"Promise")}function ij(t){return Gr(t,["~kind","type","item"])}const lC=".*";function Hr(t){return Nt({"~kind":"String"},{type:"string"},t)}function Fn(t){return Ht(t,"String")}function Se(t,e={}){return Nt({"~kind":"Union"},{anyOf:t},e)}function Pt(t){return Ht(t,"Union")}function sj(t){return Gr(t,["~kind","anyOf"])}function uC(t){const e=cI(t);return M(e.length,2)?e[0]:[]}function aj(t){return!0}function cC(t){const[e,...n]=t;return Ut(e)?lj(e)?cC(n):!1:!0}function fC(t){return M(t.length,0)?!1:cC(t)}function lj(t){return Pt(t)?fC(t.anyOf):Ie(t)?aj(t.const):!1}function dC(t){return fC(t)}function mC(t){return Nt({"~kind":"TemplateLiteral"},{type:"string",pattern:t},{})}function pC(t,e,n=[]){const[r,...s]=t;return jt(r)?pC(s,e,[...n,`${r}${e}`]):n}function uj(t,e){return M(t.length,0)?[`${e}`]:pC(t,e)}function hC(t,e,n=[]){const[r,...s]=e;return Ut(r)?hC(t,s,[...n,...gC(t,r)]):n}function gC(t,e){return Pt(e)?hC(t,e.anyOf):Ie(e)?uj(t,e.const):He()}function yC(t,e){const[n,...r]=e;return Ut(n)?yC(gC(t,n),r):t}function cj(t){return t.map(e=>be(e))}function fj(t){const e=yC([],t),n=cj(e);return Se(n)}function dj(t){return M(t.length,0)?He():M(t.length,1)&&Ie(t[0])?t[0]:fj(t)}function bC(t){const e=uC(t);return M(e.length,0)?Hr():dC(e)?dj(e):mC(t)}function yi(t){const e=bC(t);return Yr(e)?Hr():e}function is(t,e){const n="object",r={[t]:e};return Nt({"~kind":"Record"},{type:n,patternProperties:r})}const fm=`^${oC}$`,dm=`^${sC}$`,Xs=`^${lC}$`;function B0(t,e,n={}){return me("Record",[t,e],n)}function mj(t,e,n={}){return pe({},B0(t,e,n))}function U0(t,e,n={}){return mj(t,e,n)}function pj(t,e){return is(t,e)}function fs(t){return yt(t.patternProperties)[0]}function k0(t){const e=fs(t);return M(e,Xs)?Hr():M(e,fm)?fl():M(e,dm)?ai():bC(e)}function Io(t){return t.patternProperties[fs(t)]}function vr(t){return Ht(t,"Record")}function mm(t){return Nt({"~kind":"Rest"},{type:"rest",items:t},{})}function pm(t){return Ht(t,"Rest")}function vC(t){return Nt({"~kind":"This"},{$ref:"#"},t)}function hj(t){return Ht(t,"This")}function fo(t,e={}){const[n,r,s]=[t,t.length,!1];return Nt({"~kind":"Tuple"},{type:"array",additionalItems:s,items:n,minItems:r},e)}function qe(t){return Ht(t,"Tuple")}function gj(t){return Gr(t,["~kind","type","items","minItems","additionalItems"])}function hm(t){return Nt({"~kind":"Undefined"},{type:"undefined"},t)}function wl(t){return Ht(t,"Undefined")}function Sd(t){return Nt({"~kind":"Unsafe"},{},t)}function SC(t){return Ht(t,"Unsafe")}function P0(t){return Nt({"~kind":"Void"},{type:"void"},t)}function ds(t){return Ht(t,"Void")}function yj(t,e){return M(t,"Array")?na(e[0]):M(t,"AsyncIterator")?pc(e[0]):M(t,"Iterator")?yc(e[0]):M(t,"Promise")?Sc(e[0]):M(t,"Awaited")?kb(e[0]):M(t,"Capitalize")?mb(e[0]):M(t,"ConstructorParameters")?bb(e[0]):M(t,"Evaluate")?QA(e[0]):M(t,"Exclude")?vb(e[0],e[1]):M(t,"Extract")?Sb(e[0],e[1]):M(t,"Index")?Sm(e[0],e[1]):M(t,"InstanceType")?Cb(e[0]):M(t,"Lowercase")?pb(e[0]):M(t,"NonNullable")?$b(e[0]):M(t,"Omit")?Mb(e[0],e[1]):M(t,"Options")?Em(e[0],e[1]):M(t,"Parameters")?Ob(e[0]):M(t,"Partial")?Nb(e[0]):M(t,"Pick")?_b(e[0],e[1]):M(t,"Readonly")?Db(e[0]):M(t,"KeyOf")?xm(e[0]):M(t,"Record")?B0(e[0],e[1]):M(t,"Required")?jb(e[0]):M(t,"ReturnType")?Ib(e[0]):M(t,"Uncapitalize")?hb(e[0]):M(t,"Uppercase")?gb(e[0]):DA(On(t),e)}function oa(){throw Error("Unreachable")}const bj=(t,e=[])=>t.reduce((n,r)=>Et(r)&&M(r.length,2)?[...n,r[0]]:[...n,r],[]),bi=t=>{const[e,n]=t;return bj([...e,...n])};function vj(t){return vc(t[0],t[2],t[4])}function Sj(t){return vc(t[0],t[2],t[2])}function xj(t){return vc(t[0],fr(),t[2])}function Ej(t){return vc(t,fr(),fr())}function wj(t){return bi(t)}function Tj(t){return t[1]}function Cj(t){return bi(t)}function Aj(t){return t[1]}function $j(t){return yj(t[0],t[1])}function Mj(t){return null}function Rj(t){return Hr()}function Oj(t){return ai()}function Nj(t){return j0()}function _j(t){return hm()}function Dj(t){return Gs()}function jj(t){return fl()}function Ij(t){return D0()}function Lj(t){return fr()}function zj(t){return al()}function Bj(t){return le({})}function Uj(t){return Ze()}function kj(t){return z0()}function Pj(t){return P0()}function Hj(t){return vC()}function Fj(t){return t[1]}function qj(t){return be(t)}function Gj(t){return M(t.length,3)?[t[0],t[1],...t[2]]:[t[0]]}function Yj(t){return t[1]}function Vj(t){return W0(t)}function Kj(t){return be(BigInt(t))}function Xj(t){return be(M(t,"true"))}function Qj(t){return be(parseFloat(t))}function Zj(t){return be(t)}function Jj(t){return t.length>0}function Wj(t){return t.reduce((e,n)=>M(n.length,3)?[...e,[n[1]]]:[...e,[]],[])}function t4(t){return M(t.length,6)?[t[1],t[3],t[5]]:[]}function e4(t){return Et(t)&&M(t.length,3)?t[1]:t}const Rw=(t,e)=>e.reduceRight((n,r)=>{const s=r;return M(s.length,1)?Sm(n,s[0]):M(s.length,0)?na(n):oa()},t),Ow=(t,e)=>M(e.length,3)?yb(t,e[0],e[1],e[2]):t;function n4(t){const[e,n,r,s]=t;return Ow(e?xm(Rw(n,r)):Rw(n,r),s)}function H0(t,e){return M(e.length,3)?(()=>{const[n,r,s]=e,l=H0(r,s);if(M(n,"&"))return Ee(l)?Ks([t,...l.allOf]):Ks([t,l]);if(M(n,"|"))return Pt(l)?Se([t,...l.anyOf]):Se([t,l]);oa()})():t}function r4(t){const[e,n]=t;return H0(e,n)}function o4(t){const[e,n]=t;return H0(e,n)}function i4(t){return G2(t[1])}function s4(t){return t[1]}function a4(t){return hc(t[0],t[2])}function l4(t){return M(t.length,4)?My(t[1],t[3]):M(t.length,2)?My(t[1],fr()):oa()}function u4(t){return`${t}`}function c4(t){return co(t[3])?fm:br(t[3])?dm:bc(t[3])||Fn(t[3])?Xs:oa()}function f4(t){return t.length>0}function d4(t){return t.length>0}function m4(t){const[e,n,r,s,l]=t;return{[n]:e&&r?Pr(kr(l)):e&&!r?Pr(l):!e&&r?kr(l):l}}function p4(t){return bi(t)}function xC(t){return t.reduce((e,n)=>at(n,fm)||at(n,dm)||at(n,Xs)?[e[0],Xe(e[1],n)]:[Xe(e[0],n),e[1]],[{},{}])}function h4(t){return xC(t[1])}function g4(t){const[e,n]=t,r=M(yt(n).length,0)?{}:{patternProperties:n};return le(e,r)}function y4(t){return M(t.length,5)?Pr(kr(t[4])):M(t.length,3)?t[2]:M(t.length,4)?M(t[2],"readonly")?Pr(t[3]):kr(t[3]):oa()}function b4(t){return Pr(kr(t[1]))}function v4(t){return Pr(t[1])}function S4(t){return kr(t[0])}function x4(t){return M(t.length,2)?mm(t[1]):M(t.length,1)?t[0]:oa()}function E4(t){return bi(t)}function w4(t){return fo(t[1])}function T4(t){return Pr(kr(t[4]))}function C4(t){return Pr(t[3])}function A4(t){return kr(t[3])}function $4(t){return t[2]}function M4(t){return M(t.length,2)?mm(t[1]):M(t.length,1)?t[0]:oa()}function R4(t){return bi(t)}function O4(t){return um(t[1],t[4])}function N4(t){return lm(t[2],t[5])}function Nw(t,e){return M(t,"remove")?sD(e):M(t,"add")?oD(e):e}function _4(t){return M(t.length,2)&&M(t[0],"-")?"remove":M(t.length,2)&&M(t[0],"+")||M(t.length,1)?"add":"none"}function _w(t,e){return M(t,"remove")?nD(e):M(t,"add")?tD(e):e}function D4(t){return M(t.length,2)&&M(t[0],"-")?"remove":M(t.length,2)&&M(t[0],"+")||M(t.length,1)?"add":"none"}function j4(t){return M(t.length,2)?[t[1]]:[]}function I4(t){return Et(t[6])&&M(t[6].length,1)?Hd(Bd(t[3]),t[5],t[6][0],Nw(t[1],_w(t[8],t[10]))):Hd(Bd(t[3]),t[5],On(t[3]),Nw(t[1],_w(t[8],t[10])))}function L4(t){return On(t)}function z4(t){return Em(t[2],t[4])}function B4(t){return parseFloat(t)}function U4(t){return M(t,"true")}function k4(t){return null}function P4(t){return{[t[0]]:t[2]}}function H4(t){return bi(t)}function F4(t){return t.reduce((e,n)=>Xe(e,n),{})}function q4(t){return F4(t[1])}function G4(t){return bi(t)}function Y4(t){return t[1]}function V4(t){return D0()}function K4(t){return Hr()}function X4(t){return ai()}function Q4(t){return fl()}function Z4(t){return Ze()}function J4(t){return be(t)}function W4(t){return Se(t[1])}function t6(t){return t.length===3?[...t[0],...t[2]]:t.length===1?[...t[0]]:[]}function e6(t){return[t[0],...t[1]]}function n6(t){return t[1]}function r6(t){return bi(t)}function o6(t){return M(t.length,2)?t[1]:[]}function i6(t){const e=t[2],n=t[3],[r,s]=t[4],l=M(yt(s).length,0)?{}:{patternProperties:s};return{[t[1]]:hc(e,vm(n,r,l))}}function s6(t){const e=t[2],[n,r]=t[3],s=M(yt(r).length,0)?{}:{patternProperties:r};return{[t[1]]:vm(e,n,s)}}function a6(t){return{[t[1]]:hc(t[2],t[4])}}function l6(t){return{[t[1]]:t[3]}}function u6(t){return null}function c6(t){return xC(bi(t))}function f6(t){return t[1]}function d6(t){const e=t[0],n=t[1];return ZA(Xe(e,n[0]))}function De(t){return Et(t)&&M(t.length,2)}function m6(t,e){return M(e.indexOf(t),0)?[t,e.slice(t.length)]:[]}function Sr(t,e){const[n,...r]=t;return jt(n)?(()=>{const s=m6(n,e);return M(s.length,2)?s:Sr(r,e)})():[]}function Oy(t,e){return Array.from({length:e-t+1},(n,r)=>String.fromCharCode(t+r))}const p6=[...Oy(97,122),...Oy(65,90)],EC="0",wC=Oy(49,57),F0=[EC,...wC],h6=" ",q0=`
|
|
3
|
-
`,xc="_",G0=".",g6="$",TC="-",CC="//",AC="/*",y6="*/";function $C(t){const e=t.indexOf(y6);return M(e,-1)?"":t.slice(e+2)}function MC(t){const e=t.indexOf(q0);return M(e,-1)?"":t.slice(e)}function b6(t){return t.replace(/^[ \t\r\f\v]+/,"")}function Ny(t){const e=b6(t);return e.startsWith(AC)?Ny($C(e.slice(2))):e.startsWith(CC)?Ny(MC(e.slice(2))):e}function li(t){const e=t.trimStart();return e.startsWith(AC)?li($C(e.slice(2))):e.startsWith(CC)?li(MC(e.slice(2))):e}function v6(t,e){return t.includes(e)}function Ud(t,e,n,r=""){const s=Sr(t,n);return De(s)?v6(e,s[0])?Ud(t,e,s[1],r):Ud(t,e,s[1],`${r}${s[0]}`):[r,n]}function RC(t,e){const n=Sr([t],e);return De(n)?n:["",e]}function S6(t){return RC(TC,t)}function x6(t){return Sr(wC,t)}const E6=[...F0,xc];function w6(t){return Ud(E6,[xc],t)}function T6(t){const e=S6(t);return De(e)?(()=>{const n=Sr([EC],e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:(()=>{const r=x6(e[1]);return De(r)?(()=>{const s=w6(r[1]);return De(s)?[`${e[0]}${r[0]}${s[0]}`,s[1]]:[]})():[]})()})():[]}function OC(t){return T6(li(t))}function C6(t){const e=OC(t);return De(e)?(()=>{const n=Sr(["n"],e[1]);return De(n)?[`${e[0]}`,n[1]]:[]})():[]}function A6(t){return C6(t)}function Yg(t,e){return Sr([t],e)}function Q(t,e){return M(t,"")?["",e]:t.startsWith(q0)?Yg(t,Ny(e)):t.startsWith(h6)?Yg(t,e):Yg(t,li(e))}const NC=[...p6,xc,g6];function $6(t){return Sr(NC,t)}const M6=[...NC,...F0];function _C(t,e=""){const n=Sr(M6,t);return De(n)?_C(n[1],`${e}${n[0]}`):[e,t]}function R6(t){const e=$6(t);return De(e)?(()=>{const n=_C(e[1]);return De(n)?[`${e[0]}${n[0]}`,n[1]]:[]})():[]}function je(t){return R6(li(t))}const O6=[...F0,xc];function N6(t){return RC(TC,t)}function _6(t){return De(Sr([G0],t))}function DC(t){const e=Ud(O6,[xc],t);return De(e)?M(e[0],"")?[]:[e[0],e[1]]:[]}function D6(t,e){const n=Sr([G0],e);return De(n)?(()=>{const r=DC(n[1]);return De(r)?[`${t}0${n[0]}${r[0]}`,r[1]]:[]})():[]}function j6(t,e){const n=OC(e);return De(n)?(()=>{const r=Sr([G0],n[1]);return De(r)?(()=>{const s=DC(r[1]);return De(s)?[`${t}${n[0]}${r[0]}${s[0]}`,s[1]]:[`${t}${n[0]}`,r[1]]})():[`${t}${n[0]}`,n[1]]})():[]}function I6(t){const e=N6(t);return De(e)?_6(e[1])?D6(e[0],e[1]):j6(e[0],e[1]):[]}function Y0(t){return I6(li(t))}function jC(t,e){const[n,...r]=t;return jt(n)?e.startsWith(n)?!0:jC(r,e):!1}function Ec(t,e,n=""){return M(e,"")?[]:jC(t,e)?[n,e]:(()=>{const[r,s]=[e.slice(0,1),e.slice(1)];return Ec(t,s,`${n}${r}`)})()}function L6(t,e,n){return n.startsWith(t)?(()=>{const r=Ec([e],n.slice(t.length));return De(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}function z6(t,e,n){return n.startsWith(t)?(()=>{const r=Ec([q0,e],n.slice(t.length));return De(r)?r[1].startsWith(e)?[`${r[0]}`,r[1].slice(e.length)]:[]:[]})():[]}function B6(t,e,n,r){return n?L6(t,e,li(r)):z6(t,e,li(r))}function U6(t,e){return Sr(t,e)}function k6(t,e){return B6(t,t,!1,e)}function P6(t,e){const n=U6(t,e);return De(n)?k6(n[0],`${n[0]}${n[1]}`):[]}function V0(t,e){return P6(t,li(e))}function H6(t,e){const n=Ec(t,e);return De(n)?M(n[0],"")?[]:n:[]}const y=(t,e,n=()=>[])=>t.length===2?e(t):n(),F6=t=>y(y(je(t),([e,n])=>y(Q("extends",n),([r,s])=>y(Gt(s),([l,c])=>y(Q("=",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[vj(e),n]),q6=t=>y(y(je(t),([e,n])=>y(Q("extends",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Sj(e),n]),G6=t=>y(y(je(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[xj(e),n]),Y6=t=>y(je(t),([e,n])=>[Ej(e),n]),IC=t=>y(y(F6(t),([e,n])=>[e,n],()=>y(q6(t),([e,n])=>[e,n],()=>y(G6(t),([e,n])=>[e,n],()=>y(Y6(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),LC=(t,e=[])=>y(y(IC(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>LC(r,[...e,n]),()=>[e,t]),V6=t=>y(y(LC(t),([e,n])=>y(y(y(IC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[wj(e),n]),K0=t=>y(y(Q("<",t),([e,n])=>y(V6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Tj(e),n]),zC=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>zC(r,[...e,n]),()=>[e,t]),K6=t=>y(y(zC(t),([e,n])=>y(y(y(Gt(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[Cj(e),n]),X6=t=>y(y(Q("<",t),([e,n])=>y(K6(n),([r,s])=>y(Q(">",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Aj(e),n]),Q6=t=>y(y(je(t),([e,n])=>y(X6(n),([r,s])=>[[e,r],s])),([e,n])=>[$j(e),n]),BC=t=>y(y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Mj(),n]),UC=t=>y(Q("string",t),([e,n])=>[Rj(),n]),kC=t=>y(Q("number",t),([e,n])=>[Oj(),n]),Z6=t=>y(Q("boolean",t),([e,n])=>[Nj(),n]),J6=t=>y(Q("undefined",t),([e,n])=>[_j(),n]),W6=t=>y(Q("null",t),([e,n])=>[Dj(),n]),PC=t=>y(Q("integer",t),([e,n])=>[jj(),n]),t5=t=>y(Q("bigint",t),([e,n])=>[Ij(),n]),e5=t=>y(Q("unknown",t),([e,n])=>[Lj(),n]),n5=t=>y(Q("any",t),([e,n])=>[zj(),n]),r5=t=>y(Q("object",t),([e,n])=>[Bj(),n]),o5=t=>y(Q("never",t),([e,n])=>[Uj(),n]),HC=t=>y(Q("symbol",t),([e,n])=>[kj(),n]),i5=t=>y(Q("void",t),([e,n])=>[Pj(),n]),s5=t=>y(Q("this",t),([e,n])=>[Hj(),n]),a5=t=>y(y(UC(t),([e,n])=>[e,n],()=>y(kC(t),([e,n])=>[e,n],()=>y(Z6(t),([e,n])=>[e,n],()=>y(J6(t),([e,n])=>[e,n],()=>y(W6(t),([e,n])=>[e,n],()=>y(PC(t),([e,n])=>[e,n],()=>y(t5(t),([e,n])=>[e,n],()=>y(e5(t),([e,n])=>[e,n],()=>y(n5(t),([e,n])=>[e,n],()=>y(r5(t),([e,n])=>[e,n],()=>y(o5(t),([e,n])=>[e,n],()=>y(HC(t),([e,n])=>[e,n],()=>y(i5(t),([e,n])=>[e,n],()=>y(s5(t),([e,n])=>[e,n],()=>[])))))))))))))),([e,n])=>[e,n]),l5=t=>y(y(Q("${",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Fj(e),n]),Vg=t=>y(Ec(["${","`"],t),([e,n])=>[qj(e),n]),FC=t=>y(y(y(Vg(t),([e,n])=>y(l5(n),([r,s])=>y(FC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(y(Vg(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Vg(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[Gj(e),n]),qC=t=>y(y(Q("`",t),([e,n])=>y(FC(n),([r,s])=>y(Q("`",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Yj(e),n]),u5=t=>y(qC(t),([e,n])=>[Vj(e),n]),c5=t=>y(A6(t),([e,n])=>[Kj(e),n]),f5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[Xj(e),n]),d5=t=>y(Y0(t),([e,n])=>[Qj(e),n]),m5=t=>y(V0(["'",'"'],t),([e,n])=>[Zj(e),n]),p5=t=>y(y(c5(t),([e,n])=>[e,n],()=>y(f5(t),([e,n])=>[e,n],()=>y(d5(t),([e,n])=>[e,n],()=>y(m5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),h5=t=>y(y(y(Q("keyof",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[Jj(e),n]),GC=(t,e=[])=>y(y(y(Q("[",t),([n,r])=>y(Gt(r),([s,l])=>y(Q("]",l),([c,f])=>[[n,s,c],f]))),([n,r])=>[n,r],()=>y(y(Q("[",t),([n,r])=>y(Q("]",r),([s,l])=>[[n,s],l])),([n,r])=>[n,r],()=>[])),([n,r])=>GC(r,[...e,n]),()=>[e,t]),g5=t=>y(GC(t),([e,n])=>[Wj(e),n]),y5=t=>y(y(y(Q("extends",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("?",s),([l,c])=>y(Gt(c),([f,m])=>y(Q(":",m),([h,g])=>y(Gt(g),([b,x])=>[[e,r,l,f,h,b],x])))))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[t4(e),n]),b5=t=>y(y(y(Q("(",t),([e,n])=>y(Gt(n),([r,s])=>y(Q(")",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(a5(t),([e,n])=>[e,n],()=>y(O5(t),([e,n])=>[e,n],()=>y(L5(t),([e,n])=>[e,n],()=>y(u5(t),([e,n])=>[e,n],()=>y(p5(t),([e,n])=>[e,n],()=>y(H5(t),([e,n])=>[e,n],()=>y(P5(t),([e,n])=>[e,n],()=>y(Y5(t),([e,n])=>[e,n],()=>y(K5(t),([e,n])=>[e,n],()=>y(Q6(t),([e,n])=>[e,n],()=>y(V5(t),([e,n])=>[e,n],()=>[])))))))))))),([e,n])=>[e4(e),n]),YC=t=>y(y(h5(t),([e,n])=>y(b5(n),([r,s])=>y(g5(s),([l,c])=>y(y5(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[n4(e),n]),VC=t=>y(y(y(Q("&",t),([e,n])=>y(YC(n),([r,s])=>y(VC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),KC=t=>y(y(YC(t),([e,n])=>y(VC(n),([r,s])=>[[e,r],s])),([e,n])=>[r4(e),n]),XC=t=>y(y(y(Q("|",t),([e,n])=>y(KC(n),([r,s])=>y(XC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),gm=t=>y(y(KC(t),([e,n])=>y(XC(n),([r,s])=>[[e,r],s])),([e,n])=>[o4(e),n]),v5=t=>y(y(Q("readonly",t),([e,n])=>y(gm(n),([r,s])=>[[e,r],s])),([e,n])=>[i4(e),n]),S5=t=>y(y(Q("|",t),([e,n])=>y(gm(n),([r,s])=>[[e,r],s])),([e,n])=>[s4(e),n]),x5=t=>y(y(K0(t),([e,n])=>y(Q("=",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[a4(e),n]),E5=t=>y(y(y(Q("infer",t),([e,n])=>y(je(n),([r,s])=>y(Q("extends",s),([l,c])=>y(gm(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(Q("infer",t),([e,n])=>y(je(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>[])),([e,n])=>[l4(e),n]),Gt=t=>y(y(E5(t),([e,n])=>[e,n],()=>y(S5(t),([e,n])=>[e,n],()=>y(v5(t),([e,n])=>[e,n],()=>y(gm(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),w5=t=>y(Y0(t),([e,n])=>[u4(e),n]),T5=t=>y(je(t),([e,n])=>[e,n]),C5=t=>y(V0(["'",'"'],t),([e,n])=>[e,n]),A5=t=>y(y(Q("[",t),([e,n])=>y(je(n),([r,s])=>y(Q(":",s),([l,c])=>y(y(PC(c),([f,m])=>[f,m],()=>y(kC(c),([f,m])=>[f,m],()=>y(UC(c),([f,m])=>[f,m],()=>y(HC(c),([f,m])=>[f,m],()=>[])))),([f,m])=>y(Q("]",m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[c4(e),n]),QC=t=>y(y(w5(t),([e,n])=>[e,n],()=>y(T5(t),([e,n])=>[e,n],()=>y(C5(t),([e,n])=>[e,n],()=>y(A5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),$5=t=>y(y(y(Q("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[f4(e),n]),M5=t=>y(y(y(Q("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[d4(e),n]),ZC=t=>y(y($5(t),([e,n])=>y(QC(n),([r,s])=>y(M5(s),([l,c])=>y(Q(":",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[m4(e),n]),JC=t=>y(y(y(Q(",",t),([e,n])=>y(Q(`
|
|
4
|
-
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>y(Q(`
|
|
5
|
-
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(",",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(`
|
|
6
|
-
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),WC=(t,e=[])=>y(y(ZC(t),([n,r])=>y(JC(r),([s,l])=>[[n,s],l])),([n,r])=>WC(r,[...e,n]),()=>[e,t]),R5=t=>y(y(WC(t),([e,n])=>y(y(y(ZC(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[p4(e),n]),X0=t=>y(y(Q("{",t),([e,n])=>y(R5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[h4(e),n]),O5=t=>y(X0(t),([e,n])=>[g4(e),n]),N5=t=>y(y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Q("readonly",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Q("readonly",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[e,n],()=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>[])))),([e,n])=>[y4(e),n]),_5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>y(Q("?",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[b4(e),n]),D5=t=>y(y(Q("readonly",t),([e,n])=>y(Gt(n),([r,s])=>[[e,r],s])),([e,n])=>[v4(e),n]),j5=t=>y(y(Gt(t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[S4(e),n]),Dw=t=>y(y(N5(t),([e,n])=>[e,n],()=>y(_5(t),([e,n])=>[e,n],()=>y(D5(t),([e,n])=>[e,n],()=>y(j5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))))),([e,n])=>[e,n]),tA=t=>y(y(y(Q("...",t),([e,n])=>y(Dw(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Dw(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[x4(e),n]),eA=(t,e=[])=>y(y(tA(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>eA(r,[...e,n]),()=>[e,t]),I5=t=>y(y(eA(t),([e,n])=>y(y(y(tA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[E4(e),n]),L5=t=>y(y(Q("[",t),([e,n])=>y(I5(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[w4(e),n]),z5=t=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Q("readonly",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[T4(e),n]),B5=t=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Q("readonly",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[C4(e),n]),U5=t=>y(y(je(t),([e,n])=>y(Q("?",n),([r,s])=>y(Q(":",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[A4(e),n]),k5=t=>y(y(je(t),([e,n])=>y(Q(":",n),([r,s])=>y(Gt(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[$4(e),n]),jw=t=>y(y(z5(t),([e,n])=>[e,n],()=>y(B5(t),([e,n])=>[e,n],()=>y(U5(t),([e,n])=>[e,n],()=>y(k5(t),([e,n])=>[e,n],()=>[])))),([e,n])=>[e,n]),nA=t=>y(y(y(Q("...",t),([e,n])=>y(jw(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(jw(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[])),([e,n])=>[M4(e),n]),rA=(t,e=[])=>y(y(nA(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>rA(r,[...e,n]),()=>[e,t]),oA=t=>y(y(rA(t),([e,n])=>y(y(y(nA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[R4(e),n]),P5=t=>y(y(Q("(",t),([e,n])=>y(oA(n),([r,s])=>y(Q(")",s),([l,c])=>y(Q("=>",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[O4(e),n]),H5=t=>y(y(Q("new",t),([e,n])=>y(Q("(",n),([r,s])=>y(oA(s),([l,c])=>y(Q(")",c),([f,m])=>y(Q("=>",m),([h,g])=>y(Gt(g),([b,x])=>[[e,r,l,f,h,b],x])))))),([e,n])=>[N4(e),n]),F5=t=>y(y(y(Q("+",t),([e,n])=>y(Q("readonly",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("-",t),([e,n])=>y(Q("readonly",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("readonly",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[_4(e),n]),q5=t=>y(y(y(Q("+",t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("-",t),([e,n])=>y(Q("?",n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q("?",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])))),([e,n])=>[D4(e),n]),G5=t=>y(y(y(Q("as",t),([e,n])=>y(Gt(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[j4(e),n]),Y5=t=>y(y(Q("{",t),([e,n])=>y(F5(n),([r,s])=>y(Q("[",s),([l,c])=>y(je(c),([f,m])=>y(Q("in",m),([h,g])=>y(Gt(g),([b,x])=>y(G5(x),([S,T])=>y(Q("]",T),([w,$])=>y(q5($),([_,L])=>y(Q(":",L),([j,H])=>y(Gt(H),([P,G])=>y(BC(G),([z,k])=>y(Q("}",k),([W,et])=>[[e,r,l,f,h,b,S,w,_,j,P,z,W],et]))))))))))))),([e,n])=>[I4(e),n]),V5=t=>y(je(t),([e,n])=>[L4(e),n]),K5=t=>y(y(Q("Options",t),([e,n])=>y(Q("<",n),([r,s])=>y(Gt(s),([l,c])=>y(Q(",",c),([f,m])=>y(aA(m),([h,g])=>y(Q(">",g),([b,x])=>[[e,r,l,f,h,b],x])))))),([e,n])=>[z4(e),n]),X5=t=>y(Y0(t),([e,n])=>[B4(e),n]),Q5=t=>y(y(Q("true",t),([e,n])=>[e,n],()=>y(Q("false",t),([e,n])=>[e,n],()=>[])),([e,n])=>[U4(e),n]),Z5=t=>y(V0(['"',"'"],t),([e,n])=>[e,n]),J5=t=>y(Q("null",t),([e,n])=>[k4(),n]),iA=t=>y(y(QC(t),([e,n])=>y(Q(":",n),([r,s])=>y(Q0(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[P4(e),n]),sA=(t,e=[])=>y(y(iA(t),([n,r])=>y(JC(r),([s,l])=>[[n,s],l])),([n,r])=>sA(r,[...e,n]),()=>[e,t]),W5=t=>y(y(sA(t),([e,n])=>y(y(y(iA(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[H4(e),n]),aA=t=>y(y(Q("{",t),([e,n])=>y(W5(n),([r,s])=>y(Q("}",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[q4(e),n]),lA=(t,e=[])=>y(y(Q0(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>lA(r,[...e,n]),()=>[e,t]),tI=t=>y(y(lA(t),([e,n])=>y(y(y(Q0(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[G4(e),n]),eI=t=>y(y(Q("[",t),([e,n])=>y(tI(n),([r,s])=>y(Q("]",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[Y4(e),n]),Q0=t=>y(y(X5(t),([e,n])=>[e,n],()=>y(Q5(t),([e,n])=>[e,n],()=>y(Z5(t),([e,n])=>[e,n],()=>y(J5(t),([e,n])=>[e,n],()=>y(aA(t),([e,n])=>[e,n],()=>y(eI(t),([e,n])=>[e,n],()=>[])))))),([e,n])=>[e,n]),nI=t=>y(Q("-?(?:0|[1-9][0-9]*)n",t),([e,n])=>[V4(),n]),rI=t=>y(Q(".*",t),([e,n])=>[K4(),n]),oI=t=>y(Q("-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?",t),([e,n])=>[X4(),n]),iI=t=>y(Q("-?(?:0|[1-9][0-9]*)",t),([e,n])=>[Q4(),n]),sI=t=>y(Q("(?!)",t),([e,n])=>[Z4(),n]),aI=t=>y(H6(["-?(?:0|[1-9][0-9]*)n",".*","-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?","-?(?:0|[1-9][0-9]*)","(?!)","(",")","$","|"],t),([e,n])=>[J4(e),n]),lI=t=>y(y(nI(t),([e,n])=>[e,n],()=>y(rI(t),([e,n])=>[e,n],()=>y(oI(t),([e,n])=>[e,n],()=>y(iI(t),([e,n])=>[e,n],()=>y(sI(t),([e,n])=>[e,n],()=>y(uI(t),([e,n])=>[e,n],()=>y(aI(t),([e,n])=>[e,n],()=>[]))))))),([e,n])=>[e,n]),uI=t=>y(y(Q("(",t),([e,n])=>y(Z0(n),([r,s])=>y(Q(")",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[W4(e),n]),uA=t=>y(y(y(_y(t),([e,n])=>y(Q("|",n),([r,s])=>y(uA(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[e,n],()=>y(y(_y(t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[]))),([e,n])=>[t6(e),n]),_y=t=>y(y(lI(t),([e,n])=>y(Z0(n),([r,s])=>[[e,r],s])),([e,n])=>[e6(e),n]),Z0=t=>y(y(uA(t),([e,n])=>[e,n],()=>y(_y(t),([e,n])=>[e,n],()=>[])),([e,n])=>[e,n]),cI=t=>y(y(Q("^",t),([e,n])=>y(Z0(n),([r,s])=>y(Q("$",s),([l,c])=>[[e,r,l],c]))),([e,n])=>[n6(e),n]),cA=(t,e=[])=>y(y(Gt(t),([n,r])=>y(Q(",",r),([s,l])=>[[n,s],l])),([n,r])=>cA(r,[...e,n]),()=>[e,t]),fI=t=>y(y(cA(t),([e,n])=>y(y(y(Gt(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[r6(e),n]),fA=t=>y(y(y(Q("extends",t),([e,n])=>y(fI(n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[o6(e),n]),dI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(K0(s),([l,c])=>y(fA(c),([f,m])=>y(X0(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[i6(e),n]),mI=t=>y(y(Q("interface",t),([e,n])=>y(je(n),([r,s])=>y(fA(s),([l,c])=>y(X0(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[s6(e),n]),pI=t=>y(y(Q("type",t),([e,n])=>y(je(n),([r,s])=>y(K0(s),([l,c])=>y(Q("=",c),([f,m])=>y(Gt(m),([h,g])=>[[e,r,l,f,h],g]))))),([e,n])=>[a6(e),n]),hI=t=>y(y(Q("type",t),([e,n])=>y(je(n),([r,s])=>y(Q("=",s),([l,c])=>y(Gt(c),([f,m])=>[[e,r,l,f],m])))),([e,n])=>[l6(e),n]),gI=t=>y(y(y(Q("export",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y([[],t],([e,n])=>[e,n],()=>[])),([e,n])=>[u6(),n]),yI=t=>y(y(y(Q(";",t),([e,n])=>y(Q(`
|
|
7
|
-
`,n),([r,s])=>[[e,r],s])),([e,n])=>[e,n],()=>y(y(Q(";",t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>y(y(Q(`
|
|
8
|
-
`,t),([e,n])=>[[e],n]),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]),dA=(t,e=[])=>y(y(J0(t),([n,r])=>y(yI(r),([s,l])=>[[n,s],l])),([n,r])=>dA(r,[...e,n]),()=>[e,t]),bI=t=>y(y(dA(t),([e,n])=>y(y(y(J0(n),([r,s])=>[[r],s]),([r,s])=>[r,s],()=>y([[],n],([r,s])=>[r,s],()=>[])),([r,s])=>[[e,r],s])),([e,n])=>[c6(e),n]),J0=t=>y(y(gI(t),([e,n])=>y(y(dI(n),([r,s])=>[r,s],()=>y(mI(n),([r,s])=>[r,s],()=>y(pI(n),([r,s])=>[r,s],()=>y(hI(n),([r,s])=>[r,s],()=>[])))),([r,s])=>y(BC(s),([l,c])=>[[e,r,l],c]))),([e,n])=>[f6(e),n]),vI=t=>y(y(J0(t),([e,n])=>y(bI(n),([r,s])=>[[e,r],s])),([e,n])=>[d6(e),n]),SI=t=>y(y(vI(t),([e,n])=>[e,n],()=>y(x5(t),([e,n])=>[e,n],()=>y(Gt(t),([e,n])=>[e,n],()=>[]))),([e,n])=>[e,n]);function xI(t){const e=qC(`\`${t}\``);return M(e.length,2)?e[0]:He()}function W0(t,e={}){return me("TemplateLiteral",[t],e)}function mA(t){return pe({},W0(t,{}))}function EI(t){const e=xI(t);return mA(e)}function wI(t,e={}){const n=jt(t)?EI(t):mA(t);return Qt(n,{},e)}function Yr(t){return Ht(t,"TemplateLiteral")}function pA(t){return Nt({"~kind":"ExtendsUnion"},{inferred:t})}function tb(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&M(t["~kind"],"ExtendsUnion")&&Mt(t.inferred)}function Lt(t){return Nt({"~kind":"ExtendsTrue"},{inferred:t})}function eb(t){return Mt(t)&&at(t,"~kind")&&at(t,"inferred")&&M(t["~kind"],"ExtendsTrue")&&Mt(t.inferred)}function re(){return Nt({"~kind":"ExtendsFalse"},{})}function Dy(t){return Mt(t)&&at(t,"~kind")&&M(t["~kind"],"ExtendsFalse")}function Ae(t){return tb(t)||eb(t)}const TI=Object.freeze(Object.defineProperty({__proto__:null,ExtendsFalse:re,ExtendsTrue:Lt,ExtendsUnion:pA,IsExtendsFalse:Dy,IsExtendsTrue:eb,IsExtendsTrueLike:Ae,IsExtendsUnion:tb},Symbol.toStringTag,{value:"Module"}));function CI(t){return jt(t)||Kt(t)?be(t):Kn(t)?Gs():Ze()}function Tl(t){return t.map(n=>CI(n))}function nb(t){const e=Tl(t);return Se(e)}function rb(t){return nb(t.enum)}function AI(t,e,n,r){const s=Je(t,n,r);return Ae(s)?Lt(Xe(Xe(t,s.inferred),{[e]:n})):re()}function $I(t,e){return Lt(t)}function MI(t,e,n){const r=nb(n);return Je(t,e,r)}function hA(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?hA(l.inferred,e,s):re()})():Lt(t)}function RI(t,e,n){const r=yi(n);return Je(t,e,r)}function gA(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):gA(t,e,s)})():re()}function Be(t,e,n){return pi(n)?$I(t):uo(n)?MI(t,e,n.enum):dr(n)?AI(t,n.name,e,n.extends):Ee(n)?hA(t,e,n.allOf):Yr(n)?RI(t,e,n.pattern):Pt(n)?gA(t,e,n.anyOf):rs(n)?Lt(t):re()}function OI(t,e,n){return dr(n)?Be(t,e,n):pi(n)||rs(n)?Lt(t):pA(t)}function NI(t,e){const n=Ld(t),r=Ld(e);return n&&r||!n&&r?!0:!(n&&!r)}function _I(t,e,n,r){return nn(r)?NI(e,r)?Je(t,n,r.items):re():Be(t,e,r)}function DI(t,e,n){return us(n)?Je(t,e,n.iteratorItems):Be(t,pc(e),n)}function jI(t,e,n){return ra(n)?Lt(t):Be(t,e,n)}function II(t,e,n){return hi(n)?Lt(t):Be(t,e,n)}function LI(t,e,n,r,s){const l=dr(r)?e:r,c=dr(r)?r:e,f=Gn(e),m=Gn(r),h=Je(t,l,c);return!f&&m?re():Ae(h)?ob(h.inferred,n,s):re()}function zI(t,e,n,r){const[s,...l]=r;return Ut(s)?LI(t,e,n,s,l):Gn(e)?Lt(t):re()}function BI(t,e,n){const[r,...s]=e;return Ut(r)?zI(t,r,s,n):Lt(t)}function ob(t,e,n){return BI(t,e,n)}function yA(t,e,n){return ds(n)?Lt(t):Je(t,e,n)}function UI(t,e,n,r){return Do(r)?(()=>{const s=ob(t,e,r.parameters);return Ae(s)?yA(s.inferred,n,r.instanceType):re()})():re()}function kI(t,e,n){return Je(t,rb(e),n)}function PI(t,e,n,r){return jo(r)?(()=>{const s=ob(t,e,r.parameters);return Ae(s)?yA(s.inferred,n,r.returnType):re()})():re()}function HI(t,e,n){return co(n)||br(n)?Lt(t):Be(t,e,n)}const ib="equal",FI="disjoint",sb="left-inside",ab="right-inside";function lb(t,e){const n=[rs(t)?re():ui({},t,e),rs(t)?Lt({}):ui({},e,t)];return Ae(n[0])&&Ae(n[1])?ib:Ae(n[0])&&Dy(n[1])?sb:Dy(n[0])&&Ae(n[1])?ab:FI}function qI(t){return Pt(t)?wc(t.anyOf):[t]}function wc(t){return t.reduce((e,n)=>[...e,...qI(n)],[])}function bA(t){return t.reduceRight((n,r,s)=>({[s]:r,...n}),{})}function GI(t){const e=bA(t.items);return le(e)}function YI(t,e){return zd(t)?!!zd(e):!1}function VI(t,e){return Gn(t)?!!Gn(e):!1}function KI(t,e){const n=YI(t,e),r=VI(t,e),s=Vr([t,e]),l=Y2(M0(s));return n&&r?Pr(kr(l)):n&&!r?Pr(l):!n&&r?kr(l):l}function XI(t,e,n){return n in t?n in e?KI(t[n],e[n]):t[n]:n in e?e[n]:Ze()}function QI(t,e){return[...new Set([...yt(e),...yt(t)])].reduce((r,s)=>({...r,[s]:XI(t,e,s)}),{})}function Iw(t){return $e(t)?t.properties:qe(t)?bA(t.items):He()}function ZI(t,e){const n=Iw(t),r=Iw(e),s=QI(n,r);return le(s)}function JI(t,e){const n=lb(t,e);return M(n,sb)?t:M(n,ab)||M(n,ib)?e:Ze()}function Lw(t){return $e(t)||qe(t)}function WI(t,e){const n=Pt(t),r=Pt(e);return n||r}function tL(t,e){const n=Pd(t),r=Pd(e),s=WI(n,r),l=Lw(n),c=Lw(r);return s?Vr([n,r]):l&&c?ZI(n,r):l&&!c?n:!l&&c?r:JI(n,r)}function vA(t,e,n=[]){const[r,...s]=e;return ye(r)?n.length===0?[t]:n:vA(t,s,[...n,tL(t,r)])}function SA(t,e,n=[]){const[r,...s]=t;return Ut(r)?SA(s,e,[...n,...kd([r],e)]):n}function kd(t,e=[]){const[n,...r]=t;return Ut(n)?Pt(n)?kd(r,SA(n.anyOf,e)):kd(r,vA(n,e)):e}function Vr(t){const e=kd(t);return xA(e)}function Tc(t){return xA(t)}function Pd(t){return Ee(t)?Vr(t.allOf):Pt(t)?Tc(t.anyOf):t}function ym(t){return M(t.length,1)?t[0]:M(t.length,0)?Ze():Se(t)}function eL(t,e){return e.filter(n=>lb(t,n)!==ab)}function nL(t,e){const n=e.some(r=>{const s=lb(t,r);return M(s,sb)||M(s,ib)});return M(n,!1)}function rL(t,e){const n=Pd(t);return pi(n)?[n]:nL(n,e)?[...eL(n,e),n]:e}function jy(t,e=[]){const[n,...r]=t;return Ut(n)?$e(n)?jy(r,[...e,n]):jy(r,rL(n,e)):e}function xA(t){const e=jy(t),n=wc(e);return n.length===0?Ze():n.length===1?n[0]:Se(n)}function oL(t,e,n,r){const s=xt(t,e,n);return Qt(Pd(s),{},r)}function iL(t,e,n,r){return oL(t,e,n,r)}function sL(t,e,n){const r=Vr(e);return Je(t,r,n)}function aL(t,e,n){return cs(n)?Je(t,e,n.iteratorItems):Be(t,yc(e),n)}function bm(t,e,n){return e===n?Lt(t):re()}function lL(t,e,n){return Ie(n)?bm(t,e,n.const):ra(n)?Lt(t):Be(t,be(e),n)}function uL(t,e,n){return Ie(n)?bm(t,e,n.const):hi(n)?Lt(t):Be(t,be(e),n)}function cL(t,e,n){return Ie(n)?bm(t,e,n.const):br(n)?Lt(t):Be(t,be(e),n)}function fL(t,e,n){return Ie(n)?bm(t,e,n.const):Fn(n)?Lt(t):Be(t,be(e),n)}function dL(t,e,n){return Ne(e.const)?lL(t,e.const,n):Fe(e.const)?uL(t,e.const,n):Kt(e.const)?cL(t,e.const,n):jt(e.const)?fL(t,e.const,n):He()}function mL(t,e,n){return dr(n)?Be(t,e,n):Lt(t)}function pL(t,e,n){return El(n)?Lt(t):Be(t,e,n)}function hL(t,e,n){return br(n)?Lt(t):Be(t,e,n)}function gL(t,e,n){return Gn(e)?Gn(n)?Lt(t):re():Lt(t)}function yL(t,e,n){return dr(n)&&cm(n.extends)?re():(()=>{const r=Je(t,e,n);return Ae(r)?gL(r.inferred,e,n):re()})()}function bL(t,e){return t.reduce((n,r)=>r in e&&Ae(e[r])?{...n,...e[r].inferred}:He(),{})}function vL(t,e,n){const r={};for(const c of yt(n))r[c]=c in e?yL({},e[c],n[c]):Gn(n[c])?dr(n[c])?Lt(Xe(t,{[n[c].name]:n[c].extends})):Lt(t):re();const s=w0(r).every(c=>Ae(c)),l=s?bL(yt(r),r):{};return s?Lt(l):re()}function SL(t,e,n){const r=vL(t,e,n);return Ae(r)?Lt(Xe(t,r.inferred)):re()}function xL(t,e,n){return SL(t,e,n)}function EL(t,e,n){return $e(n)?xL(t,e,n.properties):Be(t,le(e),n)}function wL(t,e,n){return gi(n)?Je(t,e,n.item):Be(t,Sc(e),n)}function TL(t,e,n){return Fn(n)?Lt(t):Be(t,e,n)}function CL(t,e,n){return bc(n)?Lt(t):Be(t,e,n)}function AL(t,e,n){const r=yi(e);return Je(t,r,n)}function Iy(t,e){return Nt({"~kind":"Inferrable"},{name:t,type:e},{})}function ub(t){return Mt(t)&&at(t,"~kind")&&at(t,"name")&&at(t,"type")&&M(t["~kind"],"Inferrable")&&jt(t.name)&&Mt(t.type)}function EA(t){return pm(t)?dr(t.items)?nn(t.items.extends)?Iy(t.items.name,t.items.extends.items):rs(t.items.extends)?Iy(t.items.name,t.items.extends):void 0:He():void 0}function wA(t){return dr(t)?Iy(t.name,t.extends):void 0}function cb(t,e,n=[]){const[r,...s]=t;return Ut(r)?(()=>{const l=Je({},r,e);return Ae(l)?cb(s,e,[...n,r]):void 0})():n}function $L(t,e,n,r){const s=cb(n,r);return Et(s)?Lt(Xe(t,{[e]:fo(s)})):re()}function TA(t,e,n,r){const s=cb(n,r);return Et(s)?Lt(Xe(t,{[e]:Se(s)})):re()}function ML(t){return[...t].reverse()}function Ly(t,e){return e?ML(t):t}function RL(t){const e=t.length>0?t[0]:void 0,n=Ut(e)?EA(e):void 0;return Ut(n)}function OL(t,e,n,r,s,l){const c=Je(t,n,s);return Ae(c)?CA(c.inferred,e,r,l):re()}function NL(t,e,n,r,s){const l=EA(r);return ub(l)?$L(t,l.name,Ly(n,e),l.type):(()=>{const[c,...f]=n;return Ut(c)?OL(t,e,c,f,r,s):re()})()}function _L(t,e,n,r){const[s,...l]=r;return Ut(s)?NL(t,e,n,s,l):M(n.length,0)?Lt(t):re()}function CA(t,e,n,r){return _L(t,e,n,r)}function DL(t,e,n){const r=Ub(t,{callstack:[]},n),s=RL(r);return CA(t,s,Ly(e,s),Ly(r,s))}function AA(t,e,n){const r=wA(n);return ub(r)?TA(t,r.name,e,r.type):(()=>{const[s,...l]=e;return Ut(s)?(()=>{const c=Je(t,s,n);return Ae(c)?AA(c.inferred,l,n):re()})():Lt(t)})()}function jL(t,e,n){const r=Ub(t,{callstack:[]},e);return qe(n)?DL(t,r,n.items):nn(n)?AA(t,r,n.items):Be(t,fo(r),n)}function IL(t,e,n){return ds(n)||wl(n)?Lt(t):Be(t,e,n)}function $A(t,e,n){const[r,...s]=n;return Ut(r)?(()=>{const l=Je(t,e,r);return Ae(l)?Lt(l.inferred):$A(t,e,s)})():re()}function zy(t,e,n){const[r,...s]=e;return Ut(r)?(()=>{const l=$A(t,r,n);return Ae(l)?zy(l.inferred,s,n):re()})():Lt(t)}function LL(t,e,n){const r=wA(n);return ub(r)?TA(t,r.name,e,r.type):Pt(n)?zy(t,e,n.anyOf):zy(t,e,[n])}function zL(t,e,n){return dr(n)?Be(t,e,n):pi(n)||rs(n)?Lt(t):re()}function BL(t,e,n){return ds(n)?Lt(t):Be(t,e,n)}function Je(t,e,n){return pi(e)?OI(t,e,n):nn(e)?_I(t,e,e.items,n):us(e)?DI(t,e.iteratorItems,n):ra(e)?jI(t,e,n):hi(e)?II(t,e,n):Do(e)?UI(t,e.parameters,e.instanceType,n):uo(e)?kI(t,e,n):jo(e)?PI(t,e.parameters,e.returnType,n):co(e)?HI(t,e,n):Ee(e)?sL(t,e.allOf,n):cs(e)?aL(t,e.iteratorItems,n):Ie(e)?dL(t,e,n):cm(e)?mL(t,e,n):El(e)?pL(t,e,n):br(e)?hL(t,e,n):$e(e)?EL(t,e.properties,n):gi(e)?wL(t,e.item,n):Fn(e)?TL(t,e,n):bc(e)?CL(t,e,n):Yr(e)?AL(t,e.pattern,n):qe(e)?jL(t,e.items,n):wl(e)?IL(t,e,n):Pt(e)?LL(t,e.anyOf,n):rs(e)?zL(t,e,n):ds(e)?BL(t,e,n):re()}function vm(t,e,n={}){return me("Interface",[t,e],n)}function fb(t){return Ut(t)&&at(t,"action")&&M(t.action,"Interface")}function MA(t,e,n={}){return pe({},vm(t,e,n))}function UL(t,e,n){return t.includes(n)?!0:Wi([...t,n],e,e[n])}function zw(t,e,n){const r=aC(n);return Ps(t,e,r)}function Ps(t,e,n){const[r,...s]=n;return Ut(r)?Wi(t,e,r)?!0:Ps(t,e,s):!1}function Wi(t,e,n){return Nn(n)?UL(t,e,n.$ref):nn(n)?Wi(t,e,n.items):us(n)?Wi(t,e,n.iteratorItems):Do(n)?Ps(t,e,[...n.parameters,n.instanceType]):jo(n)?Ps(t,e,[...n.parameters,n.returnType]):fb(n)?zw(t,e,n.parameters[1]):Ee(n)?Ps(t,e,n.allOf):cs(n)?Wi(t,e,n.iteratorItems):$e(n)?zw(t,e,n.properties):gi(n)?Wi(t,e,n.item):Pt(n)?Ps(t,e,n.anyOf):qe(n)?Ps(t,e,n.items):vr(n)?Wi(t,e,Io(n)):!1}function RA(t,e,n){return Wi(t,e,n)}function kL(t,e){return e.reduce((n,r)=>r in t?RA([r],t,t[r])?[...n,r]:n:He(),[])}function PL(t){const e=nj(t);return kL(t,e)}function HL(t,e,n){return n.includes(e)?n:e in t?ts(t,t[e],[...n,e]):He()}function Bw(t,e,n){const r=aC(e);return el(t,r,n)}function el(t,e,n){return e.reduce((r,s)=>ts(t,s,r),n)}function ts(t,e,n){return Nn(e)?HL(t,e.$ref,n):nn(e)?ts(t,e.items,n):us(e)?ts(t,e.iteratorItems,n):Do(e)?el(t,[...e.parameters,e.instanceType],n):jo(e)?el(t,[...e.parameters,e.returnType],n):fb(e)?Bw(t,e.parameters[1],n):Ee(e)?el(t,e.allOf,n):cs(e)?ts(t,e.iteratorItems,n):$e(e)?Bw(t,e.properties,n):gi(e)?ts(t,e.item,n):Pt(e)?el(t,e.anyOf,n):qe(e)?el(t,e.items,n):vr(e)?ts(t,Io(e),n):n}function FL(t,e,n){return ts(t,n,[e])}function qL(t){return al()}function GL(t){return yt(t).reduce((e,n)=>({...e,[n]:Eo(t[n])}),{})}function Fu(t){return t.reduce((e,n)=>[...e,Eo(n)],[])}function Eo(t){return Nn(t)?qL(t.$ref):nn(t)?na(Eo(t.items),K2(t)):us(t)?pc(Eo(t.iteratorItems)):Do(t)?lm(Fu(t.parameters),Eo(t.instanceType)):jo(t)?um(Fu(t.parameters),Eo(t.returnType)):Ee(t)?Ks(Fu(t.allOf)):cs(t)?yc(Eo(t.iteratorItems)):$e(t)?le(GL(t.properties)):gi(t)?Sc(Eo(t.item)):vr(t)?U0(k0(t),Eo(Io(t))):Pt(t)?Se(Fu(t.anyOf)):qe(t)?fo(Fu(t.items)):t}function YL(t,e){return e in t?Eo(t[e]):fr()}function VL(t){return YL(t.$defs,t.$ref)}function KL(t,e,n){const r=Co(t,{callstack:[]},e),s=Bb({},{callstack:[]},n);return Vr([...r,le(s)])}function XL(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>{const l=t[s],c=fb(l)?KL(t,l.parameters[0],l.parameters[1]):l;return{...r,[s]:c}},{})}function QL(t,e,n){const r=FL(t,e,n),s=XL(t,r);return gc(s,e)}function OA(t,e){return e in t?Nn(t[e])?OA(t,t[e].$ref):t[e]:Ze()}function Cc(t,e){return OA(t,e)}function Uw(t){return _n(t)?VL(t):t}function ui(t,e,n){const r=Uw(e),s=Uw(n);return Je(t,r,s)}function ZL(t,e,n){if(dr(e)||db(e)||Ae(ui({},e,n)))return;const r={parameter:t,extends:n,received:e};throw new Error("Generic argument does not satify constraint",{cause:r})}function kw(t,e,n,r,s){const l=xt(t,e,s);return ZL(n,l,r),Xe(t,{[n]:l})}function JL(t,e,n,r,s){const l=xt(t,e,n.extends),c=xt(t,e,n.equals),[f,...m]=s;return Ut(f)?By(kw(t,e,n.name,l,f),e,r,m):By(kw(t,e,n.name,l,c),e,r,[])}function By(t,e,n,r){const[s,...l]=n;return Ut(s)?JL(t,e,s,l,r):t}function WL(t,e,n,r){return By(t,e,n,r)}function tz(t){return bl(t.length,0)?t[0]:""}function NA(t,e,n,r){const s=Co(t,e,r);return DA(n,s)}function ez(t,e,n,r){return NA(t,e,On(n),r)}function nz(t,e,n,r,s,l){const c=Co(t,e,l),f=WL(t,e,r,c),m=xt(f,{callstack:[...e.callstack,n]},s);return xt(t,e,m)}function _A(t,e,n,r){const[s,l]=yD(t,n);return O0(l)?M(tz(e.callstack),s)?ez(t,e,s,r):nz(t,e,s,l.parameters,l.expression,r):NA(t,e,n,r)}function DA(t,e){return Nt({"~kind":"Call"},{target:t,arguments:e},{})}function rz(t,e){return _A({},{callstack:[]},t,e)}function db(t){return Ht(t,"Call")}function jA(t){return gi(t)?jA(t.item):t}function oz(t,e,n,r){const s=xt(t,e,n);return Qt(jA(s),{},r)}function iz(t,e,n,r){return de(t,[n])?oz(t,e,n,r):kb(n,r)}function sz(t,e){return t(e)}function az(t,e){return jt(e)?be(sz(t,e)):be(e)}function lz(t,e){const n=yi(e);return Cl(t,n)}function uz(t,e){const n=e.map(r=>Cl(t,r));return Se(n)}function Cl(t,e){return Ie(e)?az(t,e.const):Yr(e)?lz(t,e.pattern):Pt(e)?uz(t,e.anyOf):e}function mb(t,e={}){return me("Capitalize",[t],e)}function cz(t,e={}){return pe({},mb(t,e))}function pb(t,e={}){return me("Lowercase",[t],e)}function fz(t,e={}){return pe({},pb(t,e))}function hb(t,e={}){return me("Uncapitalize",[t],e)}function dz(t,e={}){return pe({},hb(t,e))}function gb(t,e={}){return me("Uppercase",[t],e)}function mz(t,e={}){return pe({},gb(t,e))}const pz=t=>t[0].toUpperCase()+t.slice(1),hz=t=>t.toLowerCase(),gz=t=>t[0].toLowerCase()+t.slice(1),yz=t=>t.toUpperCase();function bz(t,e,n,r){const s=xt(t,e,n);return Qt(Cl(pz,s),{},r)}function vz(t,e,n,r){return de(t,[n])?bz(t,e,n,r):mb(n,r)}function Sz(t,e,n,r){const s=xt(t,e,n);return Qt(Cl(hz,s),{},r)}function xz(t,e,n,r){return de(t,[n])?Sz(t,e,n,r):pb(n,r)}function Ez(t,e,n,r){const s=xt(t,e,n);return Qt(Cl(gz,s),{},r)}function wz(t,e,n,r){return de(t,[n])?Ez(t,e,n,r):hb(n,r)}function Tz(t,e,n,r){const s=xt(t,e,n);return Qt(Cl(yz,s),{},r)}function Cz(t,e,n,r){return de(t,[n])?Tz(t,e,n,r):gb(n,r)}function yb(t,e,n,r,s={}){return me("Conditional",[t,e,n,r],s)}function Az(t,e,n,r,s={}){return pe({},yb(t,e,n,r,s))}function $z(t,e,n,r,s,l,c){const f=xt(t,e,n),m=xt(t,e,r),h=ui(t,f,m);return Qt(tb(h)?Se([xt(h.inferred,e,s),xt(t,e,l)]):eb(h)?xt(h.inferred,e,s):xt(t,e,l),{},c)}function Mz(t,e,n,r,s,l,c){return de(t,[n,r])?$z(t,e,n,r,s,l,c):yb(n,r,s,l,c)}function bb(t,e={}){return me("ConstructorParameters",[t],e)}function Rz(t,e={}){return pe({},bb(t,e))}function Oz(t){return Do(t)?xt({},{callstack:[]},fo(t.parameters)):Ze()}function Nz(t,e,n,r){const s=xt(t,e,n);return Qt(Oz(s),{},r)}function _z(t,e,n,r){return de(t,[n])?Nz(t,e,n,r):bb(n,r)}function vb(t,e,n={}){return me("Exclude",[t,e],n)}function Dz(t,e,n={}){return pe({},vb(t,e,n))}function Pw(t,e){return t.reduce((n,r)=>[...n,...IA(r,e)],[])}function IA(t,e){const n=ui({},t,e);return Ae(n)?[]:[t]}function jz(t,e){const n=uo(t)?Pw(Tl(t.enum),e):Pt(t)?Pw(wc(t.anyOf),e):IA(t,e);return Tc(n)}function Iz(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(jz(l,c),{},s)}function LA(t,e,n,r,s){return de(t,[n,r])?Iz(t,e,n,r,s):vb(n,r,s)}function Sb(t,e,n={}){return me("Extract",[t,e],n)}function Lz(t,e,n={}){return pe({},Sb(t,e,n))}function Hw(t,e){return t.reduce((n,r)=>[...n,...zA(r,e)],[])}function zA(t,e){const n=ui({},t,e);return Ae(n)?[t]:[]}function zz(t,e){const n=uo(t)?Hw(Tl(t.enum),e):Pt(t)?Hw(wc(t.anyOf),e):zA(t,e);return Tc(n)}function Bz(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(zz(l,c),{},s)}function Uz(t,e,n,r,s){return de(t,[n,r])?Bz(t,e,n,r,s):Sb(n,r,s)}const kz=new RegExp("^(?:0|[1-9][0-9]*)$");function xb(t){const e=`${t}`;return kz.test(e)?parseInt(e):t}function Pz(t){return be(xb(t))}function Fw(t){return t.map(e=>BA(e))}function BA(t){return Ee(t)?Ks(Fw(t.allOf)):Pt(t)?Se(Fw(t.anyOf)):Ie(t)?Pz(t.const):t}function Hz(t,e){const n=BA(e),r=ui({},n,ai());return Ae(r)?t:Ze()}function Fz(t,e){const n=Cc(t,e);return Ac(n)}function UA(t){return t.reduce((e,n)=>[...e,...Ac(n)],[])}function qz(t){const e=Tl(t);return UA(e)}function Gz(t){const e=Vr(t);return Ac(e)}function Yz(t){return[`${t}`]}function Vz(t){const e=yi(t);return Ac(e)}function Ac(t){return _n(t)?Fz(t.$defs,t.$ref):uo(t)?qz(t.enum):Ee(t)?Gz(t.allOf):Ie(t)?Yz(t.const):Yr(t)?Vz(t.pattern):Pt(t)?UA(t.anyOf):[]}function Eb(t){return Ac(t)}function Kz(t,e){return e in t?[t[e]]:[]}function Xz(t,e){return e.reduce((n,r)=>[...n,...Kz(t,r)],[])}function Qz(t,e){const n=Eb(e),r=Xz(t,n);return Tc(r)}function Zz(t){return be(xb(t))}function qw(t){return t.map(e=>kA(e))}function kA(t){return Ee(t)?Ks(qw(t.allOf)):Pt(t)?Se(qw(t.anyOf)):Ie(t)?Zz(t.const):t}function Jz(t,e){return t.reduceRight((n,r,s)=>{const l=ui({},be(s),e);return Ae(l)?[r,...n]:n},[])}function Wz(t,e){const n=kA(e),r=Jz(t,n);return ym(r)}function t8(t){return ym(t)}function e8(t,e){return br(e)||co(e)?t8(t):Wz(t,e)}function n8(t){return t.reduce((e,n)=>iC(n)?[...e,be(n)]:e,[])}function wb(t){const e=n8(t);return Se(e)}function Sm(t,e,n={}){return me("Index",[t,e],n)}function PA(t,e,n={}){const r=Et(e)?wb(e):e;return pe({},Sm(t,r,n))}function r8(t,e){const n=Cc(t,e);return Al(n)}function o8(t,e){const n=yt(t).filter(g=>!at(e,g)),r=yt(e).filter(g=>!at(t,g)),s=yt(t).filter(g=>at(e,g)),l=n.reduce((g,b)=>({...g,[b]:t[b]}),{}),c=r.reduce((g,b)=>({...g,[b]:e[b]}),{}),f=s.reduce((g,b)=>({...g,[b]:Vr([t[b],e[b]])}),{}),m=Xe(l,c);return Xe(m,f)}function i8(t){return t.reduce((e,n)=>o8(e,Al(n)),{})}function s8(t){const e=GI(fo(t));return Al(e)}function a8(t,e){return yt(t).filter(s=>s in e).reduce((s,l)=>({...s,[l]:Tc([t[l],e[l]])}),{})}function HA(t,e){const[n,...r]=t;return Ut(n)?HA(r,a8(e,Al(n))):e}function l8(t){const[e,...n]=t;return Ut(e)?HA(n,Al(e)):He()}function Al(t){return _n(t)?r8(t.$defs,t.$ref):Ee(t)?i8(t.allOf):Pt(t)?l8(t.anyOf):qe(t)?s8(t.items):$e(t)?t.properties:{}}function Tb(t){const e=Al(t);return le(e)}function u8(t){return _n(t)||Ee(t)||Pt(t)?Tb(t):t}function c8(t,e){const n=u8(t);return nn(n)?Hz(n.items,e):$e(n)?Qz(n.properties,e):qe(n)?e8(n.items,e):Ze()}function f8(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(c8(l,c),{},s)}function d8(t,e,n,r,s){return de(t,[n,r])?f8(t,e,n,r,s):Sm(n,r,s)}function Cb(t,e={}){return me("InstanceType",[t],e)}function m8(t,e={}){return pe({},Cb(t,e))}function p8(t){return Do(t)?t.instanceType:Ze()}function h8(t,e,n,r){const s=xt(t,e,n);return Qt(p8(s),{},r)}function g8(t,e,n,r={}){return de(t,[n])?h8(t,e,n,r):Cb(n,r)}function y8(t,e,n,r,s){const l=Co(t,{callstack:[]},n),c=Bb(t,{callstack:[]},r),f=Vr([...l,le(c)]);return Qt(f,{},s)}function b8(t,e,n,r,s){return de(t,n)?y8(t,e,n,r,s):vm(n,r,s)}function xm(t,e={}){return me("KeyOf",[t],e)}function FA(t,e={}){return pe({},xm(t,e))}function v8(){return Se([ai(),Hr(),z0()])}function S8(t){return ai()}function x8(t){return t.reduce((n,r)=>iC(r)?[...n,be(xb(r))]:He(),[])}function E8(t){const e=yt(t),n=x8(e);return ym(n)}function w8(t){return k0(t)}function T8(t){const e=t.map((n,r)=>be(r));return ym(e)}function C8(t){return _n(t)||Ee(t)||Pt(t)?Tb(t):t}function A8(t){const e=C8(t);return pi(e)?v8():nn(e)?S8(e.items):$e(e)?E8(e.properties):vr(e)?w8(e):qe(e)?T8(e.items):Ze()}function $8(t,e,n,r){const s=xt(t,e,n);return Qt(A8(s),{},r)}function M8(t,e,n,r){return de(t,[n])?$8(t,e,n,r):xm(n,r)}function R8(t){const e=yi(t);return Ab(e)}function Gw(t){return t.reduce((e,n)=>[...e,...Ab(n)],[])}function Ab(t){return uo(t)?Gw(Tl(t.enum)):L0(t)||I0(t)?[t]:Yr(t)?R8(t.pattern):Pt(t)?Gw(t.anyOf):[]}function O8(t){return Ab(t)}function Hd(t,e,n,r,s={}){return me("Mapped",[t,e,n,r],s)}function qA(t,e,n,r,s={}){return pe({},Hd(t,e,n,r,s))}function N8(t,e,n,r,s){const l=Xe(t,{[n.name]:r}),c=xt(l,e,s);return Yr(c)?yi(c.pattern):c}function _8(t,e,n,r,s){const l=Xe(t,{[n.name]:r});return xt(l,e,s)}function D8(t,e,n,r,s,l){const c=_8(t,e,n,r,l),f=N8(t,e,n,r,s);return L0(f)||I0(f)?{[f.const]:c}:{}}function j8(t,e,n,r,s,l){return r.reduce((c,f)=>({...c,...D8(t,e,n,f,s,l)}),{})}function I8(t,e,n,r,s,l){const c=O8(r),f=j8(t,e,n,c,s,l);return le(f)}function L8(t,e,n,r,s,l,c){const f=xt(t,e,r);return Qt(I8(t,e,n,f,s,l),{},c)}function z8(t,e,n,r,s,l,c){return de(t,[r])?L8(t,e,n,r,s,l,c):Hd(n,r,s,l,c)}function B8(t,e){return yt(t).filter(r=>e.includes(r)).reduce((r,s)=>({...r,[s]:QL(t,s,t[s])}),{})}function U8(t,e){return yt(t).filter(r=>!e.includes(r)).reduce((r,s)=>({...r,[s]:xt(t,{callstack:[]},t[s])}),{})}function k8(t,e){const n=PL(t),r=B8(t,n),s=U8(t,n),l={...r,...s};return Qt(l,{},e)}function P8(t,e,n,r){const s=Xe(t,n);return k8(s,r)}function $b(t,e={}){return me("NonNullable",[t],e)}function H8(t,e={}){return pe({},$b(t,e))}function F8(t){const e=Se([Gs(),hm()]);return LA({},{callstack:[]},t,e,{})}function q8(t,e,n,r){const s=xt(t,e,n);return Qt(F8(s),{},r)}function G8(t,e,n,r){return de(t,[n])?q8(t,e,n,r):$b(n,r)}function GA(t){const e=Tb(t);return $e(e)?e.properties:He()}function Mb(t,e,n={}){return me("Omit",[t,e],n)}function YA(t,e,n={}){const r=Et(e)?wb(e):e;return pe({},Mb(t,r,n))}function Y8(t,e){return yt(t).reduce((r,s)=>e.includes(s)?r:{...r,[s]:t[s]},{})}function V8(t,e){const n=GA(t),r=Eb(e),s=Y8(n,r);return le(s)}function K8(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(V8(l,c),{},s)}function X8(t,e,n,r,s){return de(t,[n,r])?K8(t,e,n,r,s):Mb(n,r,s)}function Em(t,e){return me("Options",[t,e],{})}function Rb(t,e){return pe({},Em(t,e))}function Q8(t,e,n,r){const s=xt(t,e,n);return Qt(s,{},r)}function Z8(t,e,n,r){return de(t,[n])?Q8(t,e,n,r):Em(n,r)}function Ob(t,e={}){return me("Parameters",[t],e)}function J8(t,e={}){return pe({},Ob(t,e))}function W8(t){return jo(t)?xt({},{callstack:[]},fo(t.parameters)):Ze()}function tB(t,e,n,r){const s=xt(t,e,n);return Qt(W8(s),{},r)}function eB(t,e,n,r){return de(t,[n])?tB(t,e,n,r):Ob(n,r)}function Nb(t,e={}){return me("Partial",[t],e)}function VA(t,e={}){return pe({},Nb(t,e))}function nB(t,e){const n=Cc(t,e),r=wm(n);return gc(Xe(t,{[e]:r}),e)}function rB(t){const e=t.map(n=>wm(n));return Vr(e)}function oB(t){const e=t.map(n=>wm(n));return Se(e)}function iB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:R0(t[s])}),{});return le(e)}function wm(t){return _n(t)?nB(t.$defs,t.$ref):Ee(t)?rB(t.allOf):Pt(t)?oB(t.anyOf):$e(t)?iB(t.properties):le({})}function sB(t,e,n,r){const s=xt(t,e,n);return Qt(wm(s),{},r)}function aB(t,e,n,r){return de(t,[n])?sB(t,e,n,r):Nb(n,r)}function _b(t,e,n={}){return me("Pick",[t,e],n)}function KA(t,e,n={}){const r=Et(e)?wb(e):e;return pe({},_b(t,r,n))}function lB(t,e){return yt(t).reduce((r,s)=>e.includes(s)?Xe(r,{[s]:t[s]}):r,{})}function uB(t,e){const n=GA(t),r=Eb(e),s=lB(n,r);return le(s)}function cB(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(uB(l,c),{},s)}function fB(t,e,n,r,s){return de(t,[n,r])?cB(t,e,n,r,s):_b(n,r,s)}function Db(t,e={}){return me("ReadonlyType",[t],e)}function dB(t,e={}){return pe({},Db(t,e))}function mB(t){return am(na(t))}function pB(t,e){const n=Cc(t,e),r=Tm(n);return gc(Xe(t,{[e]:r}),e)}function hB(t){const e=t.map(n=>Tm(n));return Vr(e)}function gB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:V2(t[s])}),{});return le(e)}function yB(t){return am(fo(t))}function bB(t){const e=t.map(n=>Tm(n));return Se(e)}function Tm(t){return nn(t)?mB(t.items):_n(t)?pB(t.$defs,t.$ref):Ee(t)?hB(t.allOf):$e(t)?gB(t.properties):qe(t)?yB(t.items):Pt(t)?bB(t.anyOf):t}function vB(t,e,n,r){const s=xt(t,e,n);return Qt(Tm(s),{},r)}function SB(t,e,n,r){return de(t,[n])?vB(t,e,n,r):Db(n,r)}function xB(t){return is(Xs,t)}function EB(t){return le({true:t,false:t})}function wB(t,e){const n=nb(t);return Cm(n,e)}function TB(t,e){return is(fm,e)}function CB(t,e){const n=Vr(t);return Cm(n,e)}function AB(t,e){return jt(t)||Kt(t)?le({[t]:e}):M(t,!1)?le({false:e}):M(t,!0)?le({true:e}):le({})}function $B(t,e){return is(dm,e)}function MB(t,e){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)?is(t.pattern.toString(),e):is(Xs,e)}function RB(t,e){const n=uC(t);return dC(n)?Cm(yi(t),e):is(t,e)}function OB(t){return t.some(e=>Fn(e)||br(e)||co(e))}function NB(t,e){return M(OB(t),!0)?is(Xs,e):void 0}function _B(t,e){return t.reduce((n,r)=>Ie(r)&&(jt(r.const)||Kt(r.const))?{...n,[r.const]:e}:n,{})}function DB(t,e){const n=_B(t,e);return le(n)}function jB(t,e){const n=wc(t),r=NB(n,e);return Ut(r)?r:DB(n,e)}function Cm(t,e){return pi(t)?xB(e):hi(t)?EB(e):uo(t)?wB(t.enum,e):co(t)?TB(t,e):Ee(t)?CB(t.allOf,e):Ie(t)?AB(t.const,e):br(t)?$B(t,e):Pt(t)?jB(t.anyOf,e):Fn(t)?MB(t,e):Yr(t)?RB(t.pattern,e):le({})}function IB(t,e,n,r,s){const l=xt(t,e,n),c=xt(t,e,r);return Qt(Cm(l,c),{},s)}function LB(t,e,n,r,s){return de(t,[n])?IB(t,e,n,r,s):B0(n,r,s)}function zB(t,e,n){return n in t?RA([n],t,t[n])?On(n):xt(t,e,t[n]):On(n)}function BB(t,e){const n=Cc(t,e),r=Am(n);return gc(Xe(t,{[e]:r}),e)}function UB(t){const e=t.map(n=>Am(n));return Vr(e)}function kB(t){const e=t.map(n=>Am(n));return Se(e)}function PB(t){const e=yt(t).reduce((r,s)=>({...r,[s]:M0(t[s])}),{});return le(e)}function Am(t){return _n(t)?BB(t.$defs,t.$ref):Ee(t)?UB(t.allOf):Pt(t)?kB(t.anyOf):$e(t)?PB(t.properties):le({})}function jb(t,e={}){return me("Required",[t],e)}function HB(t,e={}){return pe({},jb(t,e))}function FB(t,e,n,r){const s=xt(t,e,n);return Qt(Am(s),{},r)}function qB(t,e,n,r){return de(t,[n])?FB(t,e,n,r):jb(n,r)}function Ib(t,e={}){return me("ReturnType",[t],e)}function GB(t,e={}){return pe({},Ib(t,e))}function YB(t){return jo(t)?t.returnType:Ze()}function VB(t,e,n,r){const s=xt(t,e,n);return Qt(YB(s),{},r)}function KB(t,e,n,r){return de(t,[n])?VB(t,e,n,r):Ib(n,r)}function XB(t){return t.join("|")}function QB(t){return t.slice(1,t.length-1)}function ZB(t,e,n){return ms(e,`${n}${t}`)}function JB(t,e){return ms(t,`${e}${KD}`)}function WB(t,e){return ms(t,`${e}${oC}`)}function t9(t,e){return ms(t,`${e}${sC}`)}function e9(t,e){return zb(Se([be("false"),be("true")]),t,e)}function n9(t,e){return ms(t,`${e}${lC}`)}function r9(t,e,n){return ms(e,`${n}${QB(t)}`)}function o9(t,e,n,r=[]){const s=Tl(t);return Lb(s,e,n)}function Lb(t,e,n,r=[]){const[s,...l]=t;return Ut(s)?Lb(l,e,n,[...r,zb(s,[],"")]):ms(e,`${n}(${XB(r)})`)}function zb(t,e,n){return uo(t)?o9(t.enum,e,n):co(t)?WB(e,n):Ie(t)?ZB(t.const,e,n):ra(t)?JB(e,n):hi(t)?e9(e,n):br(t)?t9(e,n):Fn(t)?n9(e,n):Yr(t)?r9(t.pattern,e,n):Pt(t)?Lb(t.anyOf,e,n):dD}function ms(t,e){const[n,...r]=t;return Ut(n)?zb(n,r,e):e}function i9(t){return`^${ms(t,"")}$`}function s9(t){const e=i9(t);return mC(e)}function a9(t,e,n,r){const s=Co(t,e,n);return Qt(s9(s),{},r)}function l9(t,e,n,r){return de(t,n)?a9(t,e,n,r):W0(n,r)}function u9(t){return pm(t)?qe(t.items)?XA(t.items.items):dr(t.items)?[t]:Nn(t.items)?[t]:[Ze()]:[t]}function XA(t){return t.reduce((n,r)=>[...n,...u9(r)],[])}function c9(t,e){return e in t}function f9(t,e){return Ee(e)?de(t,e.allOf):Pt(e)?de(t,e.anyOf):Nn(e)?c9(t,e.$ref):!0}function de(t,e){const[n,...r]=e;return Ut(n)?f9(t,n)?de(t,r):!1:!0}function Xu(t,e,n){return aD(t)?Xu(t.type,"remove",n):rD(t)?Xu(t.type,e,"remove"):iD(t)?Xu(t.type,"add",n):eD(t)?Xu(t.type,e,"add"):[t,e,n]}function d9(t,e){return M(t,"remove")?Y2(e):M(t,"add")?Pr(e):e}function m9(t,e){return M(t,"remove")?M0(e):M(t,"add")?kr(e):e}function Bb(t,e,n){return yt(n).reduce((r,s)=>({...r,[s]:xt(t,e,n[s])}),{})}function Ub(t,e,n){const r=Co(t,e,n);return XA(r)}function Co(t,e,n){return n.map(r=>xt(t,e,r))}function p9(t,e,n,r,s){return M(n,"Awaited")?iz(t,e,r[0],s):M(n,"Capitalize")?vz(t,e,r[0],s):M(n,"Conditional")?Mz(t,e,r[0],r[1],r[2],r[3],s):M(n,"ConstructorParameters")?_z(t,e,r[0],s):M(n,"Evaluate")?iL(t,e,r[0],s):M(n,"Exclude")?LA(t,e,r[0],r[1],s):M(n,"Extract")?Uz(t,e,r[0],r[1],s):M(n,"Index")?d8(t,e,r[0],r[1],s):M(n,"InstanceType")?g8(t,e,r[0],s):M(n,"Interface")?b8(t,e,r[0],r[1],s):M(n,"KeyOf")?M8(t,e,r[0],s):M(n,"Lowercase")?xz(t,e,r[0],s):M(n,"Mapped")?z8(t,e,r[0],r[1],r[2],r[3],s):M(n,"Module")?P8(t,e,r[0],s):M(n,"NonNullable")?G8(t,e,r[0],s):M(n,"Pick")?fB(t,e,r[0],r[1],s):M(n,"Options")?Z8(t,e,r[0],r[1]):M(n,"Parameters")?eB(t,e,r[0],s):M(n,"Partial")?aB(t,e,r[0],s):M(n,"Omit")?X8(t,e,r[0],r[1],s):M(n,"ReadonlyType")?SB(t,e,r[0],s):M(n,"Record")?LB(t,e,r[0],r[1],s):M(n,"Required")?qB(t,e,r[0],s):M(n,"ReturnType")?KB(t,e,r[0],s):M(n,"TemplateLiteral")?l9(t,e,r[0],s):M(n,"Uncapitalize")?wz(t,e,r[0],s):M(n,"Uppercase")?Cz(t,e,r[0],s):me(n,r,s)}function xt(t,e,n){const r=Ld(n),s=Xu(n,zd(n)?"add":"none",Gn(n)?"add":"none"),l=xl(s[0])?s[0].Clone():s[0],c=Nn(l)?zB(t,e,l.$ref):nn(l)?na(xt(t,e,l.items),K2(l)):us(l)?pc(xt(t,e,l.iteratorItems),uD(l)):db(l)?_A(t,e,l.target,l.arguments):Do(l)?lm(Co(t,e,l.parameters),xt(t,e,l.instanceType),cD(l)):lD(l)?p9(t,e,l.action,l.parameters,l.options):jo(l)?um(Co(t,e,l.parameters),xt(t,e,l.returnType),fD(l)):Ee(l)?Ks(Co(t,e,l.allOf),xD(l)):cs(l)?yc(xt(t,e,l.iteratorItems),QD(l)):$e(l)?le(Bb(t,e,l.properties),rj(l)):gi(l)?Sc(xt(t,e,l.item),ij(l)):vr(l)?pj(fs(l),xt(t,e,Io(l))):pm(l)?mm(xt(t,e,l.items)):qe(l)?fo(Ub(t,e,l.items),gj(l)):Pt(l)?Se(Co(t,e,l.anyOf),sj(l)):l,f=r?am(c):c;return d9(s[1],m9(s[2],f))}function pe(t,e){return xt(t,{callstack:[]},e)}function kb(t,e={}){return me("Awaited",[t],e)}function h9(t,e={}){return pe({},kb(t,e))}function QA(t,e={}){return me("Evaluate",[t],e)}function $c(t,e={}){return pe({},QA(t,e))}function ZA(t,e={}){return me("Module",[t],e)}function g9(t,e={}){return pe({},ZA(t,e))}function y9(...t){const[e,n,r]=rn(t,{2:(c,f)=>jt(c)?[{},c,f]:[c,f,{}],3:(c,f,m)=>[c,f,m],1:c=>[{},c,{}]}),s=SI(n),l=Et(s)&&M(s.length,2)?xt(e,{callstack:[]},s[0]):Ze();return Qt(l,{},r)}const b9=Object.freeze(Object.defineProperty({__proto__:null,Any:al,Array:na,AsyncIterator:pc,Awaited:h9,Base:X2,BigInt:D0,Boolean:j0,Call:rz,Capitalize:cz,Codec:_0,Conditional:Az,Constructor:lm,ConstructorParameters:Rz,Cyclic:gc,Decode:qD,DecodeBuilder:nC,Encode:GD,EncodeBuilder:eC,Enum:SD,Evaluate:$c,Exclude:Dz,Extends:ui,ExtendsResult:TI,Extract:Lz,Function:um,Generic:hc,Identifier:Bd,Immutable:am,Index:PA,Infer:My,InstanceType:m8,Instantiate:pe,Integer:fl,Interface:MA,Intersect:Ks,IsAny:pi,IsArray:nn,IsAsyncIterator:us,IsBase:xl,IsBigInt:ra,IsBoolean:hi,IsCall:db,IsCodec:mr,IsConstructor:Do,IsCyclic:_n,IsEnum:uo,IsFunction:jo,IsGeneric:O0,IsIdentifier:XD,IsImmutable:Ld,IsInfer:dr,IsInteger:co,IsIntersect:Ee,IsIterator:cs,IsKind:Ht,IsLiteral:Ie,IsNever:cm,IsNull:El,IsNumber:br,IsObject:$e,IsOptional:Gn,IsParameter:oj,IsPromise:gi,IsReadonly:zd,IsRecord:vr,IsRef:Nn,IsRefine:rC,IsRest:pm,IsSchema:Ut,IsString:Fn,IsSymbol:bc,IsTemplateLiteral:Yr,IsThis:hj,IsTuple:qe,IsUndefined:wl,IsUnion:Pt,IsUnknown:rs,IsUnsafe:SC,IsVoid:ds,Iterator:yc,KeyOf:FA,Literal:be,Lowercase:fz,Mapped:qA,Module:g9,Never:Ze,NonNullable:H8,Null:Gs,Number:ai,Object:le,Omit:YA,Optional:R0,Options:Rb,Parameter:vc,Parameters:J8,Partial:VA,Pick:KA,Promise:Sc,Readonly:V2,ReadonlyType:dB,Record:U0,RecordKey:k0,RecordKeyAsPattern:fs,RecordValue:Io,Ref:On,Refine:VD,Required:HB,Rest:mm,ReturnType:GB,Script:y9,String:Hr,Symbol:z0,TemplateLiteral:wI,This:vC,Tuple:fo,Uncapitalize:dz,Undefined:hm,Union:Se,Unknown:fr,Unsafe:Sd,Uppercase:mz,Void:P0},Symbol.toStringTag,{value:"Module"})),v9=[0,31,28,31,30,31,30,31,31,30,31,30,31],S9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function x9(t){return t%4===0&&(t%100!==0||t%400===0)}function Pb(t){const e=S9.exec(t);if(!e)return!1;const n=+e[1],r=+e[2],s=+e[3];return r>=1&&r<=12&&s>=1&&s<=(r===2&&x9(n)?29:v9[r])}const E9=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(?:Z|([+-])(\d\d):(\d\d))?$/i;function Hb(t,e=!0){const n=E9.exec(t);if(!n)return!1;const r=+n[1],s=+n[2],l=+n[3],c=n[4]==="-"?-1:1,f=+(n[5]||0),m=+(n[6]||0);if(f>23||m>59||e&&!n[4]&&t.toLowerCase().indexOf("z")===-1)return!1;if(r<=23&&s<=59&&l<60)return!0;const h=s-m*c,g=r-f*c-(h<0?1:0);return(g===23||g===-1)&&(h===59||h===-1)&&l<61}function JA(t,e=!0){const n=t.split(/T/i);return n.length===2&&Pb(n[0])&&Hb(n[1],e)}const w9=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/;function WA(t){return w9.test(t)}const T9=/^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;function t$(t){return T9.test(t)}const C9=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;function e$(t){return C9.test(t)}const A9=/^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;function n$(t){return A9.test(t)}function Kg(t){const e=t.codePointAt(0);return e===void 0?!1:e>=12352&&e<=12447||e>=12448&&e<=12543&&e!==12539||e>=19968&&e<=40959}function r$(t){if(t.length===0||t.includes(" "))return!1;const e=/[\u002E\u3002\uFF0E\uFF61]/g,n=t.normalize("NFC").replace(e,".");if(n.length>253)return!1;const r=n.split(".");if(r.some(s=>s.length===0))return!1;for(const s of r){if(s.length>63||s.startsWith("-")||s.endsWith("-"))return!1;if(/^xn--/i.test(s)){const m=s.slice(4);if(m.length<2||m.includes("---"))return!1;continue}if(/[\u302E\u302F\u3031\u3032\u3033\u3034\u3035\u303B\u0640\u07FA]/.test(s))return!1;const l=s.charAt(0);if(/[\u0903\u0300\u0488]/.test(l))return!1;for(let m=0;m<s.length;m++){const h=s.charAt(m);if(h==="·"){if(m===0||m===s.length-1)return!1;const g=s.charAt(m-1),b=s.charAt(m+1);if(!/^[lL]$/.test(g)||!/^[lL]$/.test(b))return!1}if(h==="・"){if(s.length===1)return!1;if(m===0){const g=s.charAt(m+1);if(!Kg(g))return!1}else{const g=s.charAt(m-1),b=s.charAt(m+1);if(!Kg(g)||!Kg(b))return!1}}if(h==="͵"){if(m===s.length-1)return!1;const g=s.charAt(m+1);if(!/[\u0370-\u03FF]/.test(g))return!1}if(h==="׳"||h==="״"){if(m===0)return!1;const g=s.charAt(m-1);if(!/[\u05D0-\u05EA]/.test(g))return!1}if(h===""&&(m===0||s.charAt(m-1)!=="्"))return!1}let c=!1,f=!1;for(let m=0;m<s.length;m++){const h=s.charAt(m);/[\u0660-\u0669]/.test(h)&&(c=!0),/[\u06F0-\u06F9]/.test(h)&&(f=!0)}if(c&&f)return!1}return!0}const $9=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;function o$(t){return $9.test(t)}const M9=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function i$(t){return M9.test(t)}function Yw(t){try{return new URL(t,"http://example.com"),!0}catch{return!1}}function s$(t){if(t.includes(" ")||t.includes("\\")||/[\x00-\x1F\x7F]/.test(t)||/%(?![0-9a-fA-F]{2})/.test(t))return!1;if(t==="")return!0;const e=t.indexOf(":");return e>0&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t.substring(0,e))?Yw(t):t.match(/^([a-zA-Z][a-zA-Z0-9+\-.]*)(\/\/)/)&&e===-1?!1:Yw(t)}function a$(t){try{return new URL(t),!0}catch{return!1}}const R9=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function l$(t){return R9.test(t)}const O9=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function u$(t){return O9.test(t)}function c$(t){if(t.length===0)return!1;try{return new RegExp(t),!0}catch{return!1}}const N9=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function f$(t){return N9.test(t)}const _9=/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i;function d$(t){return _9.test(t)}const D9=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;function m$(t){return D9.test(t)}const j9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i;function p$(t){return j9.test(t)}const I9=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;function h$(t){return I9.test(t)}const L9=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function g$(t){return L9.test(t)}const ge=new Map;function y$(){ge.clear()}function z9(){return[...ge.entries()]}function B9(t,e){ge.set(t,e)}function U9(t){return ge.has(t)}function k9(t){return ge.get(t)}function b$(t,e){return ge.get(t)?.(e)??!0}function v$(){y$(),ge.set("date-time",JA),ge.set("date",Pb),ge.set("duration",WA),ge.set("email",t$),ge.set("hostname",e$),ge.set("idn-email",n$),ge.set("idn-hostname",r$),ge.set("ipv4",o$),ge.set("ipv6",i$),ge.set("iri-reference",s$),ge.set("iri",a$),ge.set("json-pointer-uri-fragment",l$),ge.set("json-pointer",u$),ge.set("regex",c$),ge.set("relative-json-pointer",f$),ge.set("time",Hb),ge.set("uri-reference",d$),ge.set("uri-template",m$),ge.set("uri",p$),ge.set("url",h$),ge.set("uuid",g$)}v$();const Uy=Object.freeze(Object.defineProperty({__proto__:null,Clear:y$,Entries:z9,Get:k9,Has:U9,IsDate:Pb,IsDateTime:JA,IsDuration:WA,IsEmail:t$,IsHostname:e$,IsIPv4:o$,IsIPv6:i$,IsIdnEmail:n$,IsIdnHostname:r$,IsIri:a$,IsIriReference:s$,IsJsonPointer:u$,IsJsonPointerUriFragment:l$,IsRegex:c$,IsRelativeJsonPointer:f$,IsTime:Hb,IsUri:p$,IsUriReference:d$,IsUriTemplate:m$,IsUrl:h$,IsUuid:g$,Reset:v$,Set:B9,Test:b$},Symbol.toStringTag,{value:"Module"}));function P9(t){return Mt(t)&&at(t,"check")&&at(t,"errors")&&si(t.check)&&si(t.errors)}function Fb(t){return at(t,"~guard")&&P9(t["~guard"])}function qb(t){return at(t,"~refine")&&Et(t["~refine"])&&gn(t["~refine"],0,e=>Mt(e)&&at(e,"refine")&&at(e,"message")&&si(e.refine)&&jt(e.message))}function Oo(t){return Mt(t)&&!Et(t)}function $m(t){return Fe(t)}function _e(t){return Oo(t)||$m(t)}function Mm(t){return at(t,"additionalItems")&&_e(t.additionalItems)}function $l(t){return at(t,"additionalProperties")&&_e(t.additionalProperties)}function Gb(t){return at(t,"allOf")&&Et(t.allOf)&&t.allOf.every(e=>_e(e))}function ky(t){return at(t,"$anchor")&&jt(t.$anchor)}function Yb(t){return at(t,"anyOf")&&Et(t.anyOf)&&t.anyOf.every(e=>_e(e))}function Vb(t){return at(t,"const")}function Ml(t){return at(t,"contains")&&_e(t.contains)}function Rl(t){return at(t,"default")}function Rm(t){return at(t,"dependencies")&&Mt(t.dependencies)&&Object.values(t.dependencies).every(e=>_e(e)||Et(e)&&e.every(n=>jt(n)))}function Om(t){return at(t,"dependentRequired")&&Mt(t.dependentRequired)&&Object.values(t.dependentRequired).every(e=>Et(e)&&e.every(n=>jt(n)))}function Nm(t){return at(t,"dependentSchemas")&&Mt(t.dependentSchemas)&&Object.values(t.dependentSchemas).every(e=>_e(e))}function Vw(t){return at(t,"$dynamicAnchor")&&jt(t.$dynamicAnchor)}function Kb(t){return at(t,"else")&&_e(t.else)}function Xb(t){return at(t,"enum")&&Et(t.enum)}function _m(t){return at(t,"exclusiveMaximum")&&(Kt(t.exclusiveMaximum)||Ne(t.exclusiveMaximum))}function ia(t){return at(t,"exclusiveMinimum")&&(Kt(t.exclusiveMinimum)||Ne(t.exclusiveMinimum))}function Mc(t){return at(t,"format")&&jt(t.format)}function nc(t){return at(t,"$id")&&jt(t.$id)}function Qb(t){return at(t,"if")&&_e(t.if)}function Ol(t){return at(t,"items")&&(_e(t.items)||Et(t.items)&&t.items.every(e=>_e(e)))}function Zb(t){return Ol(t)&&Et(t.items)}function Dm(t){return at(t,"maximum")&&(Kt(t.maximum)||Ne(t.maximum))}function jm(t){return at(t,"maxContains")&&Kt(t.maxContains)}function Im(t){return at(t,"maxItems")&&Kt(t.maxItems)}function Lm(t){return at(t,"maxLength")&&Kt(t.maxLength)}function zm(t){return at(t,"maxProperties")&&Kt(t.maxProperties)}function sa(t){return at(t,"minimum")&&(Kt(t.minimum)||Ne(t.minimum))}function Nl(t){return at(t,"minContains")&&Kt(t.minContains)}function Rc(t){return at(t,"minItems")&&Kt(t.minItems)}function Oc(t){return at(t,"minLength")&&Kt(t.minLength)}function Nc(t){return at(t,"minProperties")&&Kt(t.minProperties)}function Bm(t){return at(t,"multipleOf")&&(Kt(t.multipleOf)||Ne(t.multipleOf))}function Jb(t){return at(t,"not")&&_e(t.not)}function Wb(t){return at(t,"oneOf")&&Et(t.oneOf)&&t.oneOf.every(e=>_e(e))}function _c(t){return at(t,"pattern")&&(jt(t.pattern)||t.pattern instanceof RegExp)}function _l(t){return at(t,"patternProperties")&&Mt(t.patternProperties)&&Object.values(t.patternProperties).every(e=>_e(e))}function aa(t){return at(t,"prefixItems")&&Et(t.prefixItems)&&t.prefixItems.every(e=>_e(e))}function Dl(t){return at(t,"properties")&&Mt(t.properties)&&Object.values(t.properties).every(e=>_e(e))}function Um(t){return at(t,"propertyNames")&&(Mt(t.propertyNames)||_e(t.propertyNames))}function H9(t){return at(t,"$recursiveAnchor")&&Fe(t.$recursiveAnchor)}function Xg(t){return H9(t)&&M(t.$recursiveAnchor,!0)}function tv(t){return at(t,"$recursiveRef")&&jt(t.$recursiveRef)}function ev(t){return at(t,"$ref")&&jt(t.$ref)}function ps(t){return at(t,"required")&&Et(t.required)&&t.required.every(e=>jt(e))}function nv(t){return at(t,"then")&&_e(t.then)}function km(t){return at(t,"type")&&(jt(t.type)||Et(t.type)&&t.type.every(e=>jt(e)))}function Dc(t){return at(t,"uniqueItems")&&Fe(t.uniqueItems)}function jc(t){return at(t,"unevaluatedItems")&&_e(t.unevaluatedItems)}function Ic(t){return at(t,"unevaluatedProperties")&&_e(t.unevaluatedProperties)}function F9(t){return jc(t)||Ic(t)||yt(t).some(e=>Fd(t[e]))}function q9(t){return t.some(e=>Fd(e))}function Fd(t){return Et(t)?q9(t):Mt(t)?F9(t):!1}function G9(t,e){return Fd(e)||yt(t).some(n=>Fd(t[n]))}class Y9{constructor(e){this.hasUnevaluated=e}UseUnevaluated(){return this.hasUnevaluated}AddIndex(e){return ne(Dt("context","AddIndex"),[e])}AddKey(e){return ne(Dt("context","AddKey"),[e])}Merge(e){return ne(Dt("context","Merge"),[e])}}class vi{constructor(){this.indices=new Set,this.keys=new Set}AddIndex(e){return this.indices.add(e),!0}AddKey(e){return this.keys.add(e),!0}GetIndices(){return this.indices}GetKeys(){return this.keys}Merge(e){for(const n of e)n.indices.forEach(r=>this.indices.add(r)),n.keys.forEach(r=>this.keys.add(r));return!0}}class S$ extends vi{constructor(e){super(),this.callback=e}AddError(e){return this.callback(e),!1}}class Si extends S${constructor(){super(e=>this.errors.push(e)),this.errors=[]}AddError(e){return this.errors.push(e),!1}GetErrors(){return this.errors}}const x$="external_";let Py=0;const ll={identifier:`${x$}${Py}`,variables:[]};function V9(){ll.identifier=`${x$}${Py}`,ll.variables=[],Py+=1}function la(t){const e=`${ll.identifier}[${ll.variables.length}]`;return ll.variables.push(t),e}function K9(){return ll}function X9(t,e,n,r){return ne(Dt(Dt(la(n),"~guard"),"check"),[r])}function Q9(t,e,n,r){return n["~guard"].check(r)}function Z9(t,e,n,r,s,l){return s["~guard"].check(l)||e.AddError({keyword:"~guard",schemaPath:n,instancePath:r,params:{errors:s["~guard"].errors(l)}})}function J9(t,e,n,r){const s=la(n["~refine"].map(l=>l));return ta(s,St(0),["refinement","_"],ne(Dt("refinement","refine"),[r]))}function W9(t,e,n,r){return gn(n["~refine"],0,(s,l)=>s.refine(r))}function tU(t,e,n,r,s,l){return yn(s["~refine"],0,(c,f)=>c.refine(l)||e.AddError({keyword:"~refine",schemaPath:n,instancePath:r,params:{index:f,message:c.message}}))}let eU=0;function bn(){return`var_${eU++}`}function rv(t){return Ol(t)&&Et(t.items)}function nU(t,e,n,r){if(!rv(n))return St(!0);const[s,l]=[bn(),bn()],c=Oe(t,e,n.additionalItems,s),f=U2(l,St(n.items.length)),m=e.AddIndex(l),h=e.UseUnevaluated()?ve(f,yr(c,m)):ve(f,c);return ne(Dt(r,"every"),[cr([s,l],h)])}function rU(t,e,n,r){return rv(n)?r.every((l,c)=>nm(c,n.items.length)||xe(t,e,n.additionalItems,l)&&e.AddIndex(c)):!0}function oU(t,e,n,r,s,l){return rv(s)?l.every((f,m)=>{const h=`${n}/additionalItems`,g=`${r}/${m}`;return nm(m,s.items.length)||Pe(t,e,h,g,s.additionalItems,f)&&e.AddIndex(m)}):!0}function iU(t){return`^${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}function ov(t){const e=[];return _l(t)&&e.push(...yt(t.patternProperties)),Dl(t)&&e.push(...yt(t.properties).map(iU)),M(e.length,0)?"(?!)":`(${e.join("|")})`}function sU(t,e,n){return ps(e)&&Dl(e)&&!_l(e)&&M(e.additionalProperties,!1)&&M(yt(e.properties).length,e.required.length)}function aU(t,e,n){return ur(Dt(ne(Dt("Object","getOwnPropertyNames"),[n]),"length"),St(e.required.length))}function lU(t,e,n,r){const[s,l]=[bn(),bn()],c=la(new RegExp(ov(n))),f=Oe(t,e,n.additionalProperties,`${r}[${s}]`),m=ne(Dt(c,"test"),[s]),h=e.AddKey(s),g=e.UseUnevaluated()?ve(m,yr(f,h)):ve(m,f);return ta(ea(r),St(0),[s,l],g)}function uU(t,e,n,r){return sU(e,n)?aU(e,n,r):lU(t,e,n,r)}function cU(t,e,n,r){const s=new RegExp(ov(n));return gn(yt(r),0,(c,f)=>s.test(c)||xe(t,e,n.additionalProperties,r[c])&&e.AddKey(c))}function fU(t,e,n,r,s,l){const c=new RegExp(ov(s)),f=[];return yn(yt(l),0,(h,g)=>{const b=`${n}/additionalProperties`,x=`${r}/${h}`,S=new Si,T=c.test(h)||Pe(t,S,b,x,s.additionalProperties,l[h])&&e.AddKey(h);return T||f.push(h),T})||e.AddError({keyword:"additionalProperties",schemaPath:n,instancePath:r,params:{additionalProperties:f}})}function Pm(t,e,n,r,s){const l=ri("results","[]"),c=n.map((g,b)=>ri(`context_${b}`,T0("CheckContext",[]))),f=n.map((g,b)=>ri(`condition_${b}`,ne(cr(["context"],Oe(t,e,g,r)),[`context_${b}`]))),m=n.map((g,b)=>H2(`condition_${b}`,ne(Dt("results","push"),[`context_${b}`]))),h=sm(yr(s,e.Merge("results")));return ne(cr([],im([l,...c,...f,...m,h])),[])}function dU(t,e,n,r){return Pm(t,e,n.allOf,r,ur(Dt("results","length"),St(n.allOf.length)))}function mU(t,e,n,r){return xn(n.allOf.map(s=>Oe(t,e,s,r)))}function pU(t,e,n,r){return e.UseUnevaluated()?dU(t,e,n,r):mU(t,e,n,r)}function hU(t,e,n,r){const s=n.allOf.reduce((l,c)=>{const f=new vi;return xe(t,f,c,r)?[...l,f]:l},[]);return M(s.length,n.allOf.length)&&e.Merge(s)}function gU(t,e,n,r,s,l){const c=[],f=s.allOf.reduce((h,g,b)=>{const x=`${n}/allOf/${b}`,S=new Si,T=Pe(t,S,x,r,g,l);return T||c.push(S),T?[...h,S]:h},[]),m=M(f.length,s.allOf.length)&&e.Merge(f);return m||c.forEach(h=>h.GetErrors().forEach(g=>e.AddError(g))),m}function yU(t,e,n,r){return Pm(t,e,n.anyOf,r,B2(Dt("results","length"),St(0)))}function bU(t,e,n,r){return C0(n.anyOf.map(s=>Oe(t,e,s,r)))}function vU(t,e,n,r){return e.UseUnevaluated()?yU(t,e,n,r):bU(t,e,n,r)}function SU(t,e,n,r){const s=n.anyOf.reduce((l,c,f)=>{const m=new vi;return xe(t,m,c,r)?[...l,m]:l},[]);return bl(s.length,0)&&e.Merge(s)}function xU(t,e,n,r,s,l){const c=[],f=s.anyOf.reduce((h,g,b)=>{const x=new Si,S=`${n}/anyOf/${b}`,T=Pe(t,x,S,r,g,l);return T||c.push(x),T?[...h,x]:h},[]),m=bl(f.length,0)&&e.Merge(f);return m||c.forEach(h=>h.GetErrors().forEach(g=>e.AddError(g))),m||e.AddError({keyword:"anyOf",schemaPath:n,instancePath:r,params:{}})}function EU(t,e,n,r){return St(!!n)}function E$(t,e,n,r){return n}function wU(t,e,n,r,s,l){return E$(t,e,s)||e.AddError({keyword:"boolean",schemaPath:n,instancePath:r,params:{}})}function TU(t,e,n,r){return fc(n.const)?ur(r,St(n.const)):P2(r,la(n.const))}function w$(t,e,n,r){return fc(n.const)?M(r,n.const):dc(r,n.const)}function CU(t,e,n,r,s,l){return w$(t,e,s,l)||e.AddError({keyword:"const",schemaPath:n,instancePath:r,params:{allowedValue:s.const}})}function T$(t){return!(Nl(t)&&M(t.minContains,0))}function AU(t,e,n,r){if(!T$(n))return St(!0);const s=bn(),l=An(ur(Dt(r,"length"),St(0))),c=ne(Dt(r,"some"),[cr([s],Oe(t,e,n.contains,s))]);return yr(l,c)}function C$(t,e,n,r){return T$(n)?!M(r.length,0)&&r.some(s=>xe(t,e,n.contains,s)):!0}function $U(t,e,n,r,s,l){return C$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:1}})}function MU(t,e,n,r){const s=ur(Dt(ea(r),"length"),St(0)),l=xn(Qe(n.dependencies).map(([c,f])=>{const m=An(Vs(r,St(c))),h=Oe(t,e,f,r),g=b=>xn(b.map(x=>Vs(r,St(x))));return ve(m,Et(f)?g(f):h)}));return ve(s,l)}function RU(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependencies),0,([c,f])=>!at(r,c)||(Et(f)?f.every(m=>at(r,m)):xe(t,e,f,r)));return s||l}function OU(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependencies),0,([m,h])=>{const g=`${n}/dependencies/${m}`;return!at(l,m)||(Et(h)?h.every(b=>at(l,b)||e.AddError({keyword:"dependencies",schemaPath:n,instancePath:r,params:{property:m,dependencies:h}})):Pe(t,e,g,r,h,l))});return c||f}function NU(t,e,n,r){const s=ur(Dt(ea(r),"length"),St(0)),l=xn(Qe(n.dependentRequired).map(([c,f])=>{const m=An(Vs(r,St(c))),h=xn(f.map(g=>Vs(r,St(g))));return ve(m,h)}));return ve(s,l)}function _U(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependentRequired),0,([c,f])=>!at(r,c)||f.every(m=>at(r,m)));return s||l}function DU(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependentRequired),0,([m,h])=>!at(l,m)||yn(h,0,g=>at(l,g)||e.AddError({keyword:"dependentRequired",schemaPath:n,instancePath:r,params:{property:m,dependencies:h}})));return c||f}function jU(t,e,n,r){const s=ur(Dt(ea(r),"length"),St(0)),l=xn(Qe(n.dependentSchemas).map(([c,f])=>{const m=An(Vs(r,St(c))),h=Oe(t,e,f,r);return ve(m,h)}));return ve(s,l)}function IU(t,e,n,r){const s=M(yt(r).length,0),l=gn(Qe(n.dependentSchemas),0,([c,f])=>!at(r,c)||xe(t,e,f,r));return s||l}function LU(t,e,n,r,s,l){const c=M(yt(l).length,0),f=yn(Qe(s.dependentSchemas),0,([m,h])=>{const g=`${n}/dependentSchemas/${m}`;return!at(l,m)||Pe(t,e,g,r,h,l)});return c||f}function zU(t,e,n,r){return C0(n.enum.map(s=>{if(fc(s))return ur(r,St(s));const l=la(s);return P2(r,l)}))}function A$(t,e,n,r){return n.enum.some(s=>fc(s)?M(r,s):dc(r,s))}function BU(t,e,n,r,s,l){return A$(t,e,s,l)||e.AddError({keyword:"enum",schemaPath:n,instancePath:r,params:{allowedValues:s.enum}})}function UU(t,e,n,r){return U2(r,St(n.exclusiveMaximum))}function $$(t,e,n,r){return nm(r,n.exclusiveMaximum)}function kU(t,e,n,r,s,l){return $$(t,e,s,l)||e.AddError({keyword:"exclusiveMaximum",schemaPath:n,instancePath:r,params:{comparison:"<",limit:s.exclusiveMaximum}})}function PU(t,e,n,r){return B2(r,St(n.exclusiveMinimum))}function M$(t,e,n,r){return bl(r,n.exclusiveMinimum)}function HU(t,e,n,r,s,l){return M$(t,e,s,l)||e.AddError({keyword:"exclusiveMinimum",schemaPath:n,instancePath:r,params:{comparison:">",limit:s.exclusiveMinimum}})}function FU(t,e,n,r){return ne(Dt("Format","Test"),[St(n.format),r])}function R$(t,e,n,r){return b$(n.format,r)}function qU(t,e,n,r,s,l){return R$(t,e,s,l)||e.AddError({keyword:"format",schemaPath:n,instancePath:r,params:{format:s.format}})}function GU(t,e,n,r){const s=nv(n)?n.then:!0,l=Kb(n)?n.else:!0;return om(Oe(t,e,n.if,r),Oe(t,e,s,r),Oe(t,e,l,r))}function YU(t,e,n,r){const s=nv(n)?n.then:!0,l=Kb(n)?n.else:!0;return xe(t,e,n.if,r)?xe(t,e,s,r):xe(t,e,l,r)}function VU(t,e,n,r,s,l){const c=nv(s)?s.then:!0,f=Kb(s)?s.else:!0,m=new Si,h=Pe(t,m,`${n}/if`,r,s.if,l)?Pe(t,m,`${n}/then`,r,c,l)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"then"}}):Pe(t,e,`${n}/else`,r,f,l)||e.AddError({keyword:"if",schemaPath:n,instancePath:r,params:{failingKeyword:"else"}});return h&&e.Merge([m]),h}function KU(t,e,n,r){return xn(n.items.map((s,l)=>{const c=Sl(Dt(r,"length"),St(l)),f=Oe(t,e,s,`${r}[${l}]`),m=e.AddIndex(St(l)),h=e.UseUnevaluated()?yr(f,m):f;return ve(c,h)}))}function XU(t,e,n,r){return gn(n.items,0,(s,l)=>mi(r.length,l)||xe(t,e,s,r[l])&&e.AddIndex(l))}function QU(t,e,n,r,s,l){return yn(s.items,0,(c,f)=>{const m=`${n}/items/${f}`,h=`${r}/${f}`;return mi(l.length,f)||Pe(t,e,m,h,c,l[f])&&e.AddIndex(f)})}function ZU(t,e,n,r){const s=aa(n)?n.prefixItems.length:0,l=Oe(t,e,n.items,"element"),c=e.AddIndex("index"),f=e.UseUnevaluated()?yr(l,c):l;return ta(r,St(s),["element","index"],f)}function JU(t,e,n,r){const s=aa(n)?n.prefixItems.length:0;return gn(r,s,(l,c)=>xe(t,e,n.items,l)&&e.AddIndex(c))}function WU(t,e,n,r,s,l){const c=aa(s)?s.prefixItems.length:0;return yn(l,c,(f,m)=>{const h=`${n}/items`,g=`${r}/${m}`;return Pe(t,e,h,g,s.items,f)&&e.AddIndex(m)})}function tk(t,e,n,r){return Zb(n)?KU(t,e,n,r):ZU(t,e,n,r)}function ek(t,e,n,r){return Zb(n)?XU(t,e,n,r):JU(t,e,n,r)}function nk(t,e,n,r,s,l){return Zb(s)?QU(t,e,n,r,s,l):WU(t,e,n,r,s,l)}function O$(t){return Ml(t)}function rk(t,e,n,r){if(!O$(n))return St(!0);const[s,l]=[bn(),bn()],c=ne(Dt(r,"reduce"),[cr([s,l],om(Oe(t,e,n.contains,l),A0(s),s)),St(0)]);return Sl(c,St(n.maxContains))}function N$(t,e,n,r){if(!O$(n))return!0;const s=r.reduce((l,c)=>xe(t,e,n.contains,c)?++l:l,0);return mi(s,n.maxContains)}function ok(t,e,n,r,s,l){const c=Nl(s)?s.minContains:1;return N$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:c,maxContains:s.maxContains}})}function ik(t,e,n,r){return Sl(r,St(n.maximum))}function _$(t,e,n,r){return mi(r,n.maximum)}function sk(t,e,n,r,s,l){return _$(t,e,s,l)||e.AddError({keyword:"maximum",schemaPath:n,instancePath:r,params:{comparison:"<=",limit:s.maximum}})}function ak(t,e,n,r){return Sl(Dt(r,"length"),St(n.maxItems))}function D$(t,e,n,r){return mi(r.length,n.maxItems)}function lk(t,e,n,r,s,l){return D$(t,e,s,l)||e.AddError({keyword:"maxItems",schemaPath:n,instancePath:r,params:{limit:s.maxItems}})}function uk(t,e,n,r){return z3(r,St(n.maxLength))}function j$(t,e,n,r){return N2(r,n.maxLength)}function ck(t,e,n,r,s,l){return j$(t,e,s,l)||e.AddError({keyword:"maxLength",schemaPath:n,instancePath:r,params:{limit:s.maxLength}})}function fk(t,e,n,r){return Sl(Dt(ea(r),"length"),St(n.maxProperties))}function I$(t,e,n,r){return mi(yt(r).length,n.maxProperties)}function dk(t,e,n,r,s,l){return I$(t,e,s,l)||e.AddError({keyword:"maxProperties",schemaPath:n,instancePath:r,params:{limit:s.maxProperties}})}function L$(t){return Ml(t)}function mk(t,e,n,r){if(!L$(n))return St(!0);const[s,l]=[bn(),bn()],c=ne(Dt(r,"reduce"),[cr([s,l],om(Oe(t,e,n.contains,l),A0(s),s)),St(0)]);return rm(c,St(n.minContains))}function z$(t,e,n,r){if(!L$(n))return!0;const s=r.reduce((l,c)=>xe(t,e,n.contains,c)?++l:l,0);return vl(s,n.minContains)}function pk(t,e,n,r,s,l){return z$(t,e,s,l)||e.AddError({keyword:"contains",schemaPath:n,instancePath:r,params:{minContains:s.minContains}})}function hk(t,e,n,r){return rm(r,St(n.minimum))}function B$(t,e,n,r){return vl(r,n.minimum)}function gk(t,e,n,r,s,l){return B$(t,e,s,l)||e.AddError({keyword:"minimum",schemaPath:n,instancePath:r,params:{comparison:">=",limit:s.minimum}})}function yk(t,e,n,r){return rm(Dt(r,"length"),St(n.minItems))}function U$(t,e,n,r){return vl(r.length,n.minItems)}function bk(t,e,n,r,s,l){return U$(t,e,s,l)||e.AddError({keyword:"minItems",schemaPath:n,instancePath:r,params:{limit:s.minItems}})}function vk(t,e,n,r){return L3(r,St(n.minLength))}function k$(t,e,n,r){return _2(r,n.minLength)}function Sk(t,e,n,r,s,l){return k$(t,e,s,l)||e.AddError({keyword:"minLength",schemaPath:n,instancePath:r,params:{limit:s.minLength}})}function xk(t,e,n,r){return rm(Dt(ea(r),"length"),St(n.minProperties))}function P$(t,e,n,r){return vl(yt(r).length,n.minProperties)}function Ek(t,e,n,r,s,l){return P$(t,e,s,l)||e.AddError({keyword:"minProperties",schemaPath:n,instancePath:r,params:{limit:s.minProperties}})}function wk(t,e,n,r){return U3(r,St(n.multipleOf))}function H$(t,e,n,r){return R2(r,n.multipleOf)}function Tk(t,e,n,r,s,l){return H$(t,e,s,l)||e.AddError({keyword:"multipleOf",schemaPath:n,instancePath:r,params:{multipleOf:s.multipleOf}})}function Ck(t,e,n,r){return Pm(t,e,[n.not],r,An(ur(Dt("results","length"),St(1))))}function Ak(t,e,n,r){return An(Oe(t,e,n.not,r))}function $k(t,e,n,r){return e.UseUnevaluated()?Ck(t,e,n,r):Ak(t,e,n,r)}function F$(t,e,n,r){const s=new vi;return!xe(t,s,n.not,r)&&e.Merge([s])}function Mk(t,e,n,r,s,l){return F$(t,e,s,l)||e.AddError({keyword:"not",schemaPath:n,instancePath:r,params:{}})}function Rk(t,e,n,r){return Pm(t,e,n.oneOf,r,ur(Dt("results","length"),St(1)))}function Ok(t,e,n,r){const s=B3(n.oneOf.map(c=>Oe(t,e,c,r))),l=ne(Dt(s,"reduce"),[cr(["count","result"],om(ur("result",St(!0)),A0("count"),"count")),St(0)]);return ur(l,St(1))}function Nk(t,e,n,r){return e.UseUnevaluated()?Rk(t,e,n,r):Ok(t,e,n,r)}function _k(t,e,n,r){const s=n.oneOf.reduce((l,c)=>{const f=new vi;return xe(t,f,c,r)?[...l,f]:l},[]);return M(s.length,1)&&e.Merge(s)}function Dk(t,e,n,r,s,l){const c=[],f=[],m=s.oneOf.reduce((g,b,x)=>{const S=new Si,T=`${n}/oneOf/${x}`,w=Pe(t,S,T,r,b,l);return w&&f.push(x),w||c.push(S),w?[...g,S]:g},[]),h=M(m.length,1)&&e.Merge(m);return!h&&M(f.length,0)&&c.forEach(g=>g.GetErrors().forEach(b=>e.AddError(b))),h||e.AddError({keyword:"oneOf",schemaPath:n,instancePath:r,params:{passingSchemas:f}})}function jk(t,e,n,r){const s=la(jt(n.pattern)?new RegExp(n.pattern):n.pattern);return ne(Dt(s,"test"),[r])}function q$(t,e,n,r){return(jt(n.pattern)?new RegExp(n.pattern):n.pattern).test(r)}function Ik(t,e,n,r,s,l){return q$(t,e,s,l)||e.AddError({keyword:"pattern",schemaPath:n,instancePath:r,params:{pattern:s.pattern}})}function Lk(t,e,n,r){return xn(Qe(n.patternProperties).map(([s,l])=>{const[c,f]=[bn(),bn()],m=la(new RegExp(s)),h=An(ne(Dt(m,"test"),[c])),g=Oe(t,e,l,f),b=e.AddKey(c),x=e.UseUnevaluated()?ve(h,yr(g,b)):ve(h,g);return ta(k2(r),St(0),[`[${c}, ${f}]`,"_"],x)}))}function zk(t,e,n,r){return gn(Qe(n.patternProperties),0,([s,l])=>{const c=new RegExp(s);return gn(Qe(r),0,([f,m])=>!c.test(f)||xe(t,e,l,m)&&e.AddKey(f))})}function Bk(t,e,n,r,s,l){return yn(Qe(s.patternProperties),0,([c,f])=>{const m=`${n}/patternProperties/${c}`,h=new RegExp(c);return yn(Qe(l),0,([g,b])=>{const x=`${r}/${g}`;return!h.test(g)||Pe(t,e,m,x,f,b)&&e.AddKey(g)})})}function Uk(t,e,n,r){return xn(n.prefixItems.map((s,l)=>{const c=Sl(Dt(r,"length"),St(l)),f=Oe(t,e,s,`${r}[${l}]`),m=e.AddIndex(St(l)),h=e.UseUnevaluated()?yr(f,m):f;return ve(c,h)}))}function kk(t,e,n,r){return M(r.length,0)||gn(n.prefixItems,0,(s,l)=>mi(r.length,l)||xe(t,e,s,r[l])&&e.AddIndex(l))}function Pk(t,e,n,r,s,l){return M(l.length,0)||yn(s.prefixItems,0,(c,f)=>{const m=`${n}/prefixItems/${f}`,h=`${r}/${f}`;return mi(l.length,f)||Pe(t,e,m,h,c,l[f])&&e.AddIndex(f)})}function iv(t,e){return t.includes(e)||mc().exactOptionalPropertyTypes}function Hk(t,e){return $y(Dt(t,e))}function G$(t,e){return ye(t[e])}function Fk(t,e,n,r){const s=ps(n)?n.required:[],l=Qe(n.properties).map(([c,f])=>{const m=An(Vs(r,St(c))),h=Oe(t,e,f,Dt(r,c)),g=e.AddKey(St(c)),b=e.UseUnevaluated()?yr(h,g):h,x=s.includes(c)?b:ve(m,b);return iv(s,c)?x:ve(Hk(r,c),x)});return xn(l)}function qk(t,e,n,r){const s=ps(n)?n.required:[];return gn(Qe(n.properties),0,([c,f])=>{const m=!at(r,c)||xe(t,e,f,r[c])&&e.AddKey(c);return iv(s,c)?m:G$(r,c)||m})}function Gk(t,e,n,r,s,l){const c=ps(s)?s.required:[];return yn(Qe(s.properties),0,([m,h])=>{const g=`${n}/properties/${m}`,b=`${r}/${m}`,x=()=>!at(l,m)||Pe(t,e,g,b,h,l[m])&&e.AddKey(m);return iv(c,m)?x():G$(l,m)||x()})}function Yk(t,e,n,r){const[s,l]=[bn(),bn()];return ta(ea(r),St(0),[s,l],Oe(t,e,n.propertyNames,s))}function Vk(t,e,n,r){return gn(yt(r),0,(s,l)=>xe(t,e,n.propertyNames,s))}function Kk(t,e,n,r,s,l){const c=[];return yn(yt(l),0,(m,h)=>{const g=`${r}/${m}`,b=`${n}/propertyNames`,x=new Si,S=Pe(t,x,b,g,s.propertyNames,m);return S||c.push(m),S})||e.AddError({keyword:"propertyNames",schemaPath:n,instancePath:r,params:{propertyNames:c}})}function Xk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return Hm(t,e,s,r)}function Qk(t,e,n,r){const s=t.RecursiveRef(n.$recursiveRef)??!1;return _e(s)&&xe(t,e,s,r)}function Zk(t,e,n,r,s,l){const c=t.RecursiveRef(s.$recursiveRef)??!1;return _e(c)&&Pe(t,e,"#",r,c,l)}function Jk(t,e,n,r){const s=cr(["context","value"],Hm(t,e,n,"value")),l=cr(["context","value"],im([ri("nextContext",T0("CheckContext",[])),ri("result",ne(s,["nextContext","value"])),H2("result",e.Merge("[nextContext]")),sm("result")]));return ne(l,["context",r])}function Wk(t,e,n,r){return Hm(t,e,n,r)}function tP(t,e,n,r){const s=t.Ref(n.$ref)??!1;return e.UseUnevaluated()?Jk(t,e,s,r):Wk(t,e,s,r)}function eP(t,e,n,r){const s=t.Ref(n.$ref)??!1,l=new vi,c=_e(s)&&xe(t,l,s,r);return c&&e.Merge([l]),c}function nP(t,e,n,r,s,l){const c=t.Ref(s.$ref)??!1,f=new Si,m=_e(c)&&Pe(t,f,"#",r,c,l);return m&&e.Merge([f]),m||f.GetErrors().forEach(h=>e.AddError(h)),m}function rP(t,e,n,r){return xn(n.required.map(s=>Vs(r,St(s))))}function oP(t,e,n,r){return gn(n.required,0,s=>at(r,s))}function iP(t,e,n,r,s,l){const c=[];return yn(s.required,0,m=>{const h=at(l,m);return h||c.push(m),h})||e.AddError({keyword:"required",schemaPath:n,instancePath:r,params:{requiredProperties:c}})}function Y$(t,e,n,r){return M(n,"object")?I2(r):M(n,"array")?Id(r):M(n,"boolean")?R3(r):M(n,"integer")?O3(r):M(n,"number")?j2(r):M(n,"null")?_3(r):M(n,"string")?z2(r):M(n,"asyncIterator")?M3(r):M(n,"bigint")?D2(r):M(n,"constructor")?I3(r):M(n,"function")?j3(r):M(n,"iterator")?N3(r):M(n,"symbol")?D3(r):M(n,"undefined")||M(n,"void")?$y(r):St(!0)}function sv(t,e,n,r,s){return M(n,"object")?di(s):M(n,"array")?Et(s):M(n,"boolean")?Fe(s):M(n,"integer")?em(s):M(n,"number")?Kt(s):M(n,"null")?Kn(s):M(n,"string")?jt(s):M(n,"asyncIterator")?$2(s):M(n,"bigint")?Ne(s):M(n,"constructor")?S0(s):M(n,"function")?si(s):M(n,"iterator")?M2(s):M(n,"symbol")?x0(s):M(n,"undefined")||M(n,"void")?ye(s):!0}function sP(t,e,n,r){return C0(n.map(s=>Y$(t,e,s,r)))}function V$(t,e,n,r,s){return n.some(l=>sv(t,e,l,r,s))}function aP(t,e,n,r){return Et(n.type)?sP(t,e,n.type,r):Y$(t,e,n.type,r)}function lP(t,e,n,r){return Et(n.type)?V$(t,e,n.type,n,r):sv(t,e,n.type,n,r)}function uP(t,e,n,r,s,l){return(Et(s.type)?V$(t,e,s.type,s,l):sv(t,e,s.type,s,l))||e.AddError({keyword:"type",schemaPath:n,instancePath:r,params:{type:s.type}})}function cP(t,e,n,r){const[s,l]=[bn(),bn()],c=ne(Dt("context","GetIndices"),[]),f=ne(Dt("indices","has"),[s]),m=Oe(t,e,n.unevaluatedItems,l),h=ne(Dt("context","AddIndex"),[s]),g=ta(r,St(0),[l,s],yr(ve(f,m),h));return ne(cr(["context"],im([ri("indices",c),sm(g)])),["context"])}function fP(t,e,n,r){const s=e.GetIndices();return gn(r,0,(l,c)=>(s.has(c)||xe(t,e,n.unevaluatedItems,l))&&e.AddIndex(c))}function dP(t,e,n,r,s,l){const c=e.GetIndices(),f=[];return yn(l,0,(h,g)=>{const b=new Si,x=(c.has(g)||Pe(t,b,n,r,s.unevaluatedItems,h))&&e.AddIndex(g);return x||f.push(g),x})||e.AddError({keyword:"unevaluatedItems",schemaPath:n,instancePath:r,params:{unevaluatedItems:f}})}function mP(t,e,n,r){const[s,l]=[bn(),bn()],c=ne(Dt("context","GetKeys"),[]),f=ne(Dt("keys","has"),[s]),m=ne(Dt("context","AddKey"),[s]),h=Oe(t,e,n.unevaluatedProperties,l),g=ta(k2(r),St(0),[`[${s}, ${l}]`,"_"],ve(f,yr(h,m)));return ne(cr(["context"],im([ri("keys",c),sm(g)])),["context"])}function pP(t,e,n,r){const s=e.GetKeys();return gn(Qe(r),0,([l,c])=>s.has(l)||xe(t,e,n.unevaluatedProperties,c)&&e.AddKey(l))}function hP(t,e,n,r,s,l){const c=e.GetKeys(),f=[];return yn(Qe(l),0,([h,g])=>{const b=new Si,x=c.has(h)||Pe(t,b,n,r,s.unevaluatedProperties,g)&&e.AddKey(h);return x||f.push(h),x})||e.AddError({keyword:"unevaluatedProperties",schemaPath:n,instancePath:r,params:{unevaluatedProperties:f}})}function av(t){return!M(t.uniqueItems,!1)}function gP(t,e,n,r){if(!av(n))return St(!0);const s=Dt(T0("Set",[ne(Dt(r,"map"),[Dt("Hashing","Hash")])]),"size"),l=Dt(r,"length");return ur(s,l)}function yP(t,e,n,r){if(!av(n))return!0;const s=new Set(r.map(ec)).size,l=r.length;return M(s,l)}function bP(t,e,n,r,s,l){if(!av(s))return!0;const c=new Set,f=l.reduce((h,g,b)=>{const x=ec(g);return c.has(x)?[...h,b]:(c.add(x),h)},[]);return M(f.length,0)||e.AddError({keyword:"uniqueItems",schemaPath:n,instancePath:r,params:{duplicateItems:f}})}function rc(t,e){return km(t)&&(Et(t.type)&&t.type.includes(e)||M(t.type,e))}function vP(t){return rc(t,"object")}function SP(t){return Oo(t)&&($l(t)||Rm(t)||Om(t)||Nm(t)||Dl(t)||_l(t)||Um(t)||Nc(t)||zm(t)||ps(t)||Ic(t))}function xP(t){return rc(t,"array")}function EP(t){return Oo(t)&&(Mm(t)||Ol(t)||Ml(t)||jm(t)||Im(t)||Nl(t)||Rc(t)||aa(t)||jc(t)||Dc(t))}function wP(t){return rc(t,"string")}function TP(t){return Oo(t)&&(Oc(t)||Lm(t)||Mc(t)||_c(t))}function CP(t){return rc(t,"number")||rc(t,"bigint")}function AP(t){return Oo(t)&&(sa(t)||Dm(t)||_m(t)||ia(t)||Bm(t))}function Oe(t,e,n,r){t.Push(n);const s=[];if($m(n))return EU(t,e,n);if(km(n)&&s.push(aP(t,e,n,r)),SP(n)){const c=[];ps(n)&&c.push(rP(t,e,n,r)),$l(n)&&c.push(uU(t,e,n,r)),Rm(n)&&c.push(MU(t,e,n,r)),Om(n)&&c.push(NU(t,e,n,r)),Nm(n)&&c.push(jU(t,e,n,r)),_l(n)&&c.push(Lk(t,e,n,r)),Dl(n)&&c.push(Fk(t,e,n,r)),Um(n)&&c.push(Yk(t,e,n,r)),Nc(n)&&c.push(xk(t,e,n,r)),zm(n)&&c.push(fk(t,e,n,r));const f=xn(c),m=ve(An(I2(r)),f);s.push(vP(n)?f:m)}if(EP(n)){const c=[];Mm(n)&&c.push(nU(t,e,n,r)),Ml(n)&&c.push(AU(t,e,n,r)),Ol(n)&&c.push(tk(t,e,n,r)),jm(n)&&c.push(rk(t,e,n,r)),Im(n)&&c.push(ak(t,e,n,r)),Nl(n)&&c.push(mk(t,e,n,r)),Rc(n)&&c.push(yk(t,e,n,r)),aa(n)&&c.push(Uk(t,e,n,r)),Dc(n)&&c.push(gP(t,e,n,r));const f=xn(c),m=ve(An(Id(r)),f);s.push(xP(n)?f:m)}if(TP(n)){const c=[];Mc(n)&&c.push(FU(t,e,n,r)),Lm(n)&&c.push(uk(t,e,n,r)),Oc(n)&&c.push(vk(t,e,n,r)),_c(n)&&c.push(jk(t,e,n,r));const f=xn(c),m=ve(An(z2(r)),f);s.push(wP(n)?f:m)}if(AP(n)){const c=[];_m(n)&&c.push(UU(t,e,n,r)),ia(n)&&c.push(PU(t,e,n,r)),Dm(n)&&c.push(ik(t,e,n,r)),sa(n)&&c.push(hk(t,e,n,r)),Bm(n)&&c.push(wk(t,e,n,r));const f=xn(c),m=ve(An(ve(j2(r),D2(r))),f);s.push(CP(n)?f:m)}tv(n)&&s.push(Xk(t,e,n,r)),ev(n)&&s.push(tP(t,e,n,r)),Fb(n)&&s.push(X9(t,e,n,r)),Vb(n)&&s.push(TU(t,e,n,r)),Xb(n)&&s.push(zU(t,e,n,r)),Qb(n)&&s.push(GU(t,e,n,r)),Jb(n)&&s.push($k(t,e,n,r)),Gb(n)&&s.push(pU(t,e,n,r)),Yb(n)&&s.push(vU(t,e,n,r)),Wb(n)&&s.push(Nk(t,e,n,r)),jc(n)&&s.push(ve(An(Id(r)),cP(t,e,n,r))),Ic(n)&&s.push(ve(An(L2(r)),mP(t,e,n,r))),qb(n)&&s.push(J9(t,e,n,r));const l=xn(s);return t.Pop(n),l}function xe(t,e,n,r){t.Push(n);const s=$m(n)?E$(t,e,n):(!km(n)||lP(t,e,n,r))&&(!(Mt(r)&&!Et(r))||(!ps(n)||oP(t,e,n,r))&&(!$l(n)||cU(t,e,n,r))&&(!Rm(n)||RU(t,e,n,r))&&(!Om(n)||_U(t,e,n,r))&&(!Nm(n)||IU(t,e,n,r))&&(!_l(n)||zk(t,e,n,r))&&(!Dl(n)||qk(t,e,n,r))&&(!Um(n)||Vk(t,e,n,r))&&(!Nc(n)||P$(t,e,n,r))&&(!zm(n)||I$(t,e,n,r)))&&(!Et(r)||(!Mm(n)||rU(t,e,n,r))&&(!Ml(n)||C$(t,e,n,r))&&(!Ol(n)||ek(t,e,n,r))&&(!jm(n)||N$(t,e,n,r))&&(!Im(n)||D$(t,e,n,r))&&(!Nl(n)||z$(t,e,n,r))&&(!Rc(n)||U$(t,e,n,r))&&(!aa(n)||kk(t,e,n,r))&&(!Dc(n)||yP(t,e,n,r)))&&(!jt(r)||(!Mc(n)||R$(t,e,n,r))&&(!Lm(n)||j$(t,e,n,r))&&(!Oc(n)||k$(t,e,n,r))&&(!_c(n)||q$(t,e,n,r)))&&(!(Kt(r)||Ne(r))||(!_m(n)||$$(t,e,n,r))&&(!ia(n)||M$(t,e,n,r))&&(!Dm(n)||_$(t,e,n,r))&&(!sa(n)||B$(t,e,n,r))&&(!Bm(n)||H$(t,e,n,r)))&&(!tv(n)||Qk(t,e,n,r))&&(!ev(n)||eP(t,e,n,r))&&(!Fb(n)||Q9(t,e,n,r))&&(!Vb(n)||w$(t,e,n,r))&&(!Xb(n)||A$(t,e,n,r))&&(!Qb(n)||YU(t,e,n,r))&&(!Jb(n)||F$(t,e,n,r))&&(!Gb(n)||hU(t,e,n,r))&&(!Yb(n)||SU(t,e,n,r))&&(!Wb(n)||_k(t,e,n,r))&&(!jc(n)||!Et(r)||fP(t,e,n,r))&&(!Ic(n)||!Mt(r)||pP(t,e,n,r))&&(!qb(n)||W9(t,e,n,r));return t.Pop(n),s}function Pe(t,e,n,r,s,l){t.Push(s);const c=$m(s)?wU(t,e,n,r,s):!!(+(!km(s)||uP(t,e,n,r,s,l))&+(!(Mt(l)&&!Et(l))||!!(+(!ps(s)||iP(t,e,n,r,s,l))&+(!$l(s)||fU(t,e,n,r,s,l))&+(!Rm(s)||OU(t,e,n,r,s,l))&+(!Om(s)||DU(t,e,n,r,s,l))&+(!Nm(s)||LU(t,e,n,r,s,l))&+(!_l(s)||Bk(t,e,n,r,s,l))&+(!Dl(s)||Gk(t,e,n,r,s,l))&+(!Um(s)||Kk(t,e,n,r,s,l))&+(!Nc(s)||Ek(t,e,n,r,s,l))&+(!zm(s)||dk(t,e,n,r,s,l))))&+(!Et(l)||!!(+(!Mm(s)||oU(t,e,n,r,s,l))&+(!Ml(s)||$U(t,e,n,r,s,l))&+(!Ol(s)||nk(t,e,n,r,s,l))&+(!jm(s)||ok(t,e,n,r,s,l))&+(!Im(s)||lk(t,e,n,r,s,l))&+(!Nl(s)||pk(t,e,n,r,s,l))&+(!Rc(s)||bk(t,e,n,r,s,l))&+(!aa(s)||Pk(t,e,n,r,s,l))&+(!Dc(s)||bP(t,e,n,r,s,l))))&+(!jt(l)||!!(+(!Mc(s)||qU(t,e,n,r,s,l))&+(!Lm(s)||ck(t,e,n,r,s,l))&+(!Oc(s)||Sk(t,e,n,r,s,l))&+(!_c(s)||Ik(t,e,n,r,s,l))))&+(!(Kt(l)||Ne(l))||!!(+(!_m(s)||kU(t,e,n,r,s,l))&+(!ia(s)||HU(t,e,n,r,s,l))&+(!Dm(s)||sk(t,e,n,r,s,l))&+(!sa(s)||gk(t,e,n,r,s,l))&+(!Bm(s)||Tk(t,e,n,r,s,l))))&+(!tv(s)||Zk(t,e,n,r,s,l))&+(!ev(s)||nP(t,e,n,r,s,l))&+(!Fb(s)||Z9(t,e,n,r,s,l))&+(!Vb(s)||CU(t,e,n,r,s,l))&+(!Xb(s)||BU(t,e,n,r,s,l))&+(!Qb(s)||VU(t,e,n,r,s,l))&+(!Jb(s)||Mk(t,e,n,r,s,l))&+(!Gb(s)||gU(t,e,n,r,s,l))&+(!Yb(s)||xU(t,e,n,r,s,l))&+(!Wb(s)||Dk(t,e,n,r,s,l))&+(!jc(s)||!Et(l)||dP(t,e,n,r,s,l))&+(!Ic(s)||!Mt(l)||hP(t,e,n,r,s,l)))&&(!qb(s)||tU(t,e,n,r,s,l));return t.Pop(s),c}const tc=new Map;function $P(t,e,n,r){return t.UseUnevaluated()?ne(`check_${n}`,["context",r]):ne(`check_${n}`,[r])}function MP(t,e,n,r){const s=Oe(t,e,n,"value");return e.UseUnevaluated()?ri(`check_${r}`,cr(["context","value"],s)):ri(`check_${r}`,cr(["value"],s))}function RP(){tc.clear()}function OP(){return[...tc.values()]}function Hm(t,e,n,r){const s=Oo(n)?ec({__baseURL:t.BaseURL().href,...n}):ec(n),l=$P(e,n,s,r);return tc.has(s)||(tc.set(s,""),tc.set(s,MP(t,e,n,s))),l}function NP(t,e){return Mt(e)?e[t]:void 0}function _P(t,e){return t.reduce((n,r)=>NP(r,n),e)}function DP(t){if(M(t.length,0))return[];const e=t.split("/").map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"));return e.length>0&&e[0]===""?e.slice(1):e}function jP(t,e){const n=DP(e);return _P(n,t)}function IP(t,e,n){if(t.$id===n.hash)return t;const r=new URL(t.$id,e.href),s=new URL(n.href,e.href);if(M(r.pathname,s.pathname))return n.hash.startsWith("#")?K$(t,e,n):t}function LP(t,e,n){const r=new URL(`#${t.$anchor}`,e.href),s=new URL(n.href,e.href);if(M(r.href,s.href))return t}function K$(t,e,n){return n.href.endsWith("#")?t:n.hash.startsWith("#")?jP(t,decodeURIComponent(n.hash.slice(1))):void 0}function zP(t,e,n){if(nc(t)){const r=IP(t,e,n);if(!ye(r))return r}if(ky(t)){const r=LP(t,e,n);if(!ye(r))return r}return K$(t,e,n)}function BP(t,e,n){return t.reduce((r,s)=>{const l=lv(s,e,n);return ye(l)?r:l},void 0)}function UP(t,e,n){return yt(t).reduce((r,s)=>{const l=lv(t[s],e,n);return ye(l)?r:l},void 0)}function lv(t,e,n){if(e=Oo(t)&&nc(t)?new URL(t.$id,e.href):e,Oo(t)){const r=zP(t,e,n);if(!ye(r))return r}if(Et(t))return BP(t,e,n);if(Mt(t))return UP(t,e,n)}function cd(t,e){const n=new URL("http://unknown"),r=nc(t)?new URL(t.$id,n.href):n,s=new URL(e,r.href);return lv(t,r,s)}class Fm{constructor(e,n){this.context=e,this.schema=n,this.ids=[],this.anchors=[],this.recursiveAnchors=[],this.dynamicAnchors=[]}BaseURL(){return this.ids.reduce((e,n)=>new URL(n.$id,e),new URL("http://unknown"))}Base(){return this.ids[this.ids.length-1]??this.schema}Push(e){Oo(e)&&(nc(e)&&this.ids.push(e),ky(e)&&this.anchors.push(e),Xg(e)&&this.recursiveAnchors.push(e),Vw(e)&&this.dynamicAnchors.push(e))}Pop(e){Oo(e)&&(nc(e)&&this.ids.pop(),ky(e)&&this.anchors.pop(),Xg(e)&&this.recursiveAnchors.pop(),Vw(e)&&this.dynamicAnchors.pop())}FromContext(e){return at(this.context,e)?this.context[e]:void 0}FromRef(e){return e.startsWith("#")?cd(this.Base(),e):cd(this.schema,e)}Ref(e){return this.FromContext(e)??this.FromRef(e)}RecursiveRef(e){return Xg(this.Base())?cd(this.recursiveAnchors[0],e):cd(this.Base(),e)}}function kP(t){const e=t.Functions().join(`;
|
|
9
|
-
`),n=t.UseUnevaluated()?["const context = new CheckContext({}, {})",`return ${t.Call()}`]:[`return ${t.Call()}`];return`${e}; return (value) => { ${n.join("; ")} }`}function PP(t,e){return new globalThis.Function("CheckContext","Guard","Format","Hashing",t.External().identifier,e)(vi,C3,Uy,kD,t.External().variables)}function HP(t){const e=new Fm(t.Context(),t.Schema()),n=new vi;return r=>xe(e,n,t.Schema(),r)}function FP(t,e){return N0()?PP(t,e):HP(t)}class qP{constructor(e,n,r,s,l,c){this.context=e,this.schema=n,this.external=r,this.functions=s,this.call=l,this.useUnevaluated=c}Context(){return this.context}Schema(){return this.schema}UseUnevaluated(){return this.useUnevaluated}External(){return this.external}Functions(){return this.functions}Call(){return this.call}Evaluate(){const e=kP(this),n=FP(this,e);return{IsEvaluated:N0(),Code:e,Check:n}}}function GP(...t){const[e,n]=rn(t,{2:(m,h)=>[m,h],1:m=>[{},m]});V9(),RP();const r=new Fm(e,n),s=new Y9(G9(e,n)),l=Hm(r,s,n,"value"),c=OP(),f=K9();return new qP(e,n,f,c,l,s.UseUnevaluated())}function YP(...t){const[e,n,r]=rn(t,{3:(c,f,m)=>[c,f,m],2:(c,f)=>[{},c,f]}),s=new Fm(e,n),l=new vi;return xe(s,l,n,r)}function VP(...t){const[e,n,r]=rn(t,{3:(g,b,x)=>[g,b,x],2:(g,b)=>[{},g,b]}),s=mc(),l=FD(),c=[],f=new Fm(e,n),m=new S$(g=>{if(!vl(c.length,s.maxErrors))return c.push({...g,message:l(g)})});return[Pe(f,m,"#","",n,r),c]}function Fr(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return YP(e,n,r)}function qm(...t){const[e,n,r]=rn(t,{3:(c,f,m)=>[c,f,m],2:(c,f)=>[{},c,f]}),[s,l]=VP(e,n,r);return l}class uv extends Error{constructor(e,n,r){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:r,value:n},writable:!1,configurable:!1,enumerable:!1})}}function KP(t,e,n){return Et(n)?n.map(r=>io(t,e.items,r)):n}function XP(t,e,n){return e.Clean(n)}function QP(t,e,n){return io({...t,...e.$defs},On(e.$ref),n)}function ZP(t){const e=at(t,"unevaluatedProperties")?{additionalProperties:t.unevaluatedProperties}:{},n=$c(t);return $e(n)?Rb(n,e):n}function JP(t,e,n){const r=ZP(e);return io(t,r,n)}function X$(t){return at(t,"additionalProperties")?t.additionalProperties:void 0}function WP(t,e,n){if(!Mt(n)||Et(n))return n;const r=X$(e);for(const s of yt(n)){if(at(e.properties,s)){n[s]=io(t,e.properties[s],n[s]);continue}if(Fe(r)&&M(r,!0)||Ut(r)&&Fr(t,r,n[s])){n[s]=io(t,r,n[s]);continue}delete n[s]}return n}function tH(t,e,n){if(!Mt(n))return n;const r=X$(e),[s,l]=[new RegExp(fs(e)),Io(e)];for(const c of yt(n)){if(s.test(c)){n[c]=io(t,l,n[c]);continue}if(Fe(r)&&M(r,!0)||Ut(r)&&Fr(t,r,n[c])){n[c]=io(t,r,n[c]);continue}delete n[c]}return n}function eH(t,e,n){return at(t,e.$ref)?io(t,t[e.$ref],n):n}function nH(t,e,n){if(!Et(n))return n;const r=Math.min(n.length,e.items.length);for(let s=0;s<r;s++)n[s]=io(t,e.items[s],n[s]);return bl(n.length,r)?n.slice(0,r):n}function rH(t){const e={};for(const n of Object.getOwnPropertyNames(t))e[n]=Yn(t[n]);for(const n of Object.getOwnPropertySymbols(t))e[n]=Yn(t[n]);return e}function oH(t){return O2(t)?t:rH(t)}function iH(t){return t.map(e=>Yn(e))}function sH(t){return t.slice()}function aH(t){return new Map(Yn([...t.entries()]))}function lH(t){return new Set(Yn([...t.values()]))}function Yn(t){return F2(t)?sH(t):Y3(t)?aH(t):G3(t)?lH(t):Et(t)?iH(t):Mt(t)?oH(t):t}function uH(t,e,n){for(const r of e.anyOf){const s=io(t,r,Yn(n));if(Fr(t,r,s))return s}return n}function io(t,e,n){return nn(e)?KP(t,e,n):xl(e)?XP(t,e,n):_n(e)?QP(t,e,n):Ee(e)?JP(t,e,n):$e(e)?WP(t,e,n):vr(e)?tH(t,e,n):Nn(e)?eH(t,e,n):qe(e)?nH(t,e,n):Pt(e)?uH(t,e,n):n}function Gm(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return io(e,n,r)}function cH(t,e,n){return Et(n)?n.map(r=>mo(t,e.items,r)):n}function fH(t,e,n){return e.Convert(n)}function xr(t){return Mt(t)&&at(t,"value")}function $t(t){return{value:t}}function dH(t){return $t(t)}function mH(t){return M(t,!0)?$t(BigInt(1)):$t(BigInt(0))}function pH(t){return $t(BigInt(Math.trunc(t)))}function hH(t){return $t(BigInt(0))}const gH=/^-?(0|[1-9]\d*)n$/,yH=/^-?(0|[1-9]\d*)\.\d+$/,bH=/^-?(0|[1-9]\d*)$/;function vH(t){return gH.test(t)}function SH(t){return yH.test(t)}function xH(t){return bH.test(t)}function EH(t){const e=t.toLowerCase();return vH(t)?$t(BigInt(t.slice(0,t.length-1))):SH(t)?$t(BigInt(t.split(".")[0])):xH(t)?$t(BigInt(t)):M(e,"false")?$t(BigInt(0)):M(e,"true")?$t(BigInt(1)):void 0}function wH(t){return $t(BigInt(0))}function cv(t){return Ne(t)?dH(t):Fe(t)?mH(t):Kt(t)?pH(t):Kn(t)?hH():jt(t)?EH(t):ye(t)?wH():void 0}function TH(t){return M(t,BigInt(0))?$t(!1):M(t,BigInt(1))?$t(!0):void 0}function CH(t){return $t(t)}function AH(t){return M(t,0)?$t(!1):M(t,1)?$t(!0):void 0}function $H(t){return $t(!1)}function MH(t){return M(t.toLowerCase(),"false")?$t(!1):M(t.toLowerCase(),"true")?$t(!0):M(t,"0")?$t(!1):M(t,"1")?$t(!0):void 0}function RH(t){return $t(!1)}function Q$(t){return Ne(t)?TH(t):Fe(t)?CH(t):Kt(t)?AH(t):Kn(t)?$H():jt(t)?MH(t):ye(t)?RH():void 0}function OH(t){return M(t,BigInt(0))?$t(null):void 0}function NH(t){return M(t,!1)?$t(null):void 0}function _H(t){return M(t,0)?$t(null):void 0}function DH(t){return $t(null)}function jH(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(null):void 0}function IH(t){return $t(null)}function LH(t){return Ne(t)?OH(t):Fe(t)?NH(t):Kt(t)?_H(t):Kn(t)?DH():jt(t)?jH(t):ye(t)?IH():void 0}const zH=BigInt(Number.MAX_SAFE_INTEGER),BH=BigInt(Number.MIN_SAFE_INTEGER);function UH(t){return t<=zH&&t>=BH}function Z$(t){return UH(t)?$t(Number(t)):void 0}function kH(t){return $t(t?1:0)}function PH(t){return $t(t)}function HH(t){return $t(0)}function FH(t){const e=+t;if(Kt(e))return $t(e);const n=t.toLowerCase();if(M(n,"false"))return $t(0);if(M(n,"true"))return $t(1);const r=cv(t);return xr(r)?Z$(r.value):void 0}function qH(t){return $t(0)}function fv(t){return Ne(t)?Z$(t):Fe(t)?kH(t):Kt(t)?PH(t):Kn(t)?HH():jt(t)?FH(t):ye(t)?qH():void 0}function GH(t){return $t(t.toString())}function YH(t){return $t(t.toString())}function VH(t){return $t(t.toString())}function KH(t){return $t("null")}function XH(t){return $t(t)}function QH(t){return $t("")}function J$(t){return Ne(t)?GH(t):Fe(t)?YH(t):Kt(t)?VH(t):Kn(t)?KH():jt(t)?XH(t):ye(t)?QH():void 0}function ZH(t){return M(t,BigInt(0))?$t(void 0):void 0}function JH(t){return M(t,!1)?$t(void 0):void 0}function WH(t){return M(t,0)?$t(void 0):void 0}function t7(t){return $t(void 0)}function e7(t){const e=t.toLowerCase();return M(e,"undefined")||M(e,"null")||M(t,"")||M(t,"0")?$t(void 0):void 0}function n7(t){return $t(void 0)}function W$(t){return Ne(t)?ZH(t):Fe(t)?JH(t):Kt(t)?WH(t):Kn(t)?t7():jt(t)?e7(t):ye(t)?n7():void 0}function r7(t,e,n){if(Ne(n))return n;const r=cv(n);return xr(r)?r.value:n}function o7(t,e,n){if(Fe(n))return n;const r=Q$(n);return xr(r)?r.value:n}function i7(t,e,n){return mo({...t,...e.$defs},On(e.$ref),n)}function tM(t,e,n){if(e.anyOf.some(c=>Fr(t,c,n)))return n;const l=e.anyOf.map(c=>mo(t,c,Yn(n))).find(c=>Fr(t,e,c));return ye(l)?n:l}function s7(t,e,n){const r=rb(e);return tM(t,r,n)}function a7(t,e,n){if(em(n))return n;const r=fv(n);return xr(r)?Math.trunc(r.value):n}function l7(t,e,n){const r=$c(e);return mo(t,r,n)}function u7(t,e,n){const r=cv(n);return xr(r)&&M(e.const,r.value)?r.value:n}function c7(t,e,n){const r=Q$(n);return xr(r)&&M(e.const,r.value)?r.value:n}function f7(t,e,n){const r=fv(n);return xr(r)&&M(e.const,r.value)?r.value:n}function d7(t,e,n){const r=J$(n);return xr(r)&&M(e.const,r.value)?r.value:n}function m7(t,e,n){return M(e.const,n)?n:WD(e)?u7(t,e,n):tj(e)?c7(t,e,n):I0(e)?f7(t,e,n):L0(e)?d7(t,e,n):He()}function p7(t,e,n){if(Kn(n))return n;const r=LH(n);return xr(r)?r.value:n}function h7(t,e,n){if(Kt(n))return n;const r=fv(n);return xr(r)?r.value:n}function eM(t,e,n,r){const s=yt(r);for(const[l,c]of e)for(const f of s)l.test(f)||(r[f]=mo(t,n,r[f]));return r}function dv(t,e,n){return Gn(t)&&ye(n[e])}function g7(t,e,n){const r=E0(e.properties),s=yt(n);for(const[l,c]of r)for(const f of s)!l.test(f)||dv(c,f,n)||(n[f]=mo(t,c,n[f]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?eM(t,r,e.additionalProperties,n):n}function y7(t,e,n){return di(n)?g7(t,e,n):n}function b7(t,e,n){const r=E0(e.patternProperties),s=yt(n);for(const[l,c]of r)for(const f of s)l.test(f)&&(n[f]=mo(t,c,n[f]));return at(e,"additionalProperties")&&Mt(e.additionalProperties)?eM(t,r,e.additionalProperties,n):n}function v7(t,e,n){return di(n)?b7(t,e,n):n}function S7(t,e,n){return at(t,e.$ref)?mo(t,t[e.$ref],n):n}function x7(t,e,n){if(jt(n))return n;const r=J$(n);return xr(r)?r.value:n}function E7(t,e,n){const r=yi(e.pattern);return mo(t,r,n)}function w7(t,e,n){if(!Et(n))return n;for(let r=0;r<Math.min(e.items.length,n.length);r++)n[r]=mo(t,e.items[r],n[r]);return n}function T7(t,e,n){if(ye(n))return n;const r=W$(n);return xr(r)?r.value:n}function C7(t,e,n){if(ye(n))return n;const r=W$(n);return xr(r)?void 0:n}function mo(t,e,n){return nn(e)?cH(t,e,n):xl(e)?fH(t,e,n):ra(e)?r7(t,e,n):hi(e)?o7(t,e,n):_n(e)?i7(t,e,n):uo(e)?s7(t,e,n):co(e)?a7(t,e,n):Ee(e)?l7(t,e,n):Ie(e)?m7(t,e,n):El(e)?p7(t,e,n):br(e)?h7(t,e,n):$e(e)?y7(t,e,n):vr(e)?v7(t,e,n):Nn(e)?S7(t,e,n):Fn(e)?x7(t,e,n):Yr(e)?E7(t,e,n):qe(e)?w7(t,e,n):wl(e)?T7(t,e,n):Pt(e)?tM(t,e,n):ds(e)?C7(t,e,n):n}function Ym(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return mo(e,n,r)}function A7(t,e,n){if(!Et(n))return n;for(let r=0;r<n.length;r++)n[r]=Br(t,e.items,n[r]);return n}function $7(t,e,n){return e.Default(n)}function M7(t,e,n){return Br({...t,...e.$defs},On(e.$ref),n)}function R7(t,e){return ye(e)?si(t.default)?t.default():Yn(t.default):e}function O7(t,e,n){const r=$c(e);return Br(t,r,n)}function N7(t,e,n){if(!Mt(n))return n;const r=yt(e.properties);for(const s of r){const l=Br(t,e.properties[s],n[s]);ye(l)&&(Gn(e.properties[s])||!at(e.properties[s],"default"))||(n[s]=Br(t,e.properties[s],n[s]))}if(!$l(e)||Fe(e.additionalProperties))return n;for(const s of yt(n))r.includes(s)||(n[s]=Br(t,e.additionalProperties,n[s]));return n}function _7(t,e,n){if(!Mt(n))return n;const[r,s]=[new RegExp(fs(e)),Io(e)];for(const l of yt(n))r.test(l)&&Rl(s)&&(n[l]=Br(t,s,n[l]));if(!$l(e))return n;for(const l of yt(n))r.test(l)||(n[l]=Br(t,e.additionalProperties,n[l]));return n}function D7(t,e,n){return at(t,e.$ref)?Br(t,t[e.$ref],n):n}function j7(t,e,n){if(!Et(n))return n;const[r,s]=[e.items,Math.max(e.items.length,n.length)];for(let l=0;l<s;l++)l<r.length&&(n[l]=Br(t,r[l],n[l]));return n}function I7(t,e,n){for(const r of e.anyOf){const s=Br(t,r,Yn(n));if(Fr(t,r,s))return s}return n}function Br(t,e,n){const r=Rl(e)?R7(e,n):n;return nn(e)?A7(t,e,r):xl(e)?$7(t,e,r):_n(e)?M7(t,e,r):Ee(e)?O7(t,e,r):$e(e)?N7(t,e,r):vr(e)?_7(t,e,r):Nn(e)?D7(t,e,r):qe(e)?j7(t,e,r):Pt(e)?I7(t,e,r):r}function Vm(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return Br(e,n,r)}function mv(t){return(...e)=>{const[n,r,s]=rn(e,{3:(l,c,f)=>[l,c,f],2:(l,c)=>[{},l,c]});return t.reduce((l,c)=>c(n,r,l),s)}}function L7(t,e,n){return e["~codec"].decode(n)}function z7(t,e,n){return e["~codec"].encode(n)}function Dn(t,e,n,r){return mr(n)?M(t,"Decode")?L7(e,n,r):z7(e,n,r):r}function B7(t,e,n,r){if(!Et(r))return He();for(let s=0;s<r.length;s++)r[s]=wn(t,e,n.items,r[s]);return Dn(t,e,n,r)}function U7(t,e,n,r){const s=Dn(t,e,n,r);if(!Et(s))return s;for(let l=0;l<s.length;l++)s[l]=wn(t,e,n.items,s[l]);return s}function k7(t,e,n,r){return M(t,"Decode")?B7(t,e,n,r):U7(t,e,n,r)}function P7(t,e,n,r){return r=wn(t,{...e,...n.$defs},On(n.$ref),r),Dn(t,e,n,r)}function H7(t,e,n,r){for(const s of n.allOf)r=wn(t,e,s,r);return Dn(t,e,n,r)}function F7(t,e,n,r){let s=Dn(t,e,n,r);for(const l of n.allOf)s=wn(t,e,l,s);return s}function q7(t,e,n,r){return M(t,"Decode")?H7(t,e,n,r):F7(t,e,n,r)}function G7(t,e,n,r){if(!di(r))return He();for(const s of yt(n.properties))!at(r,s)||dv(n.properties[s],s,r)||(r[s]=wn(t,e,n.properties[s],r[s]));return Dn(t,e,n,r)}function Y7(t,e,n,r){const s=Dn(t,e,n,r);if(!di(s))return s;for(const l of yt(n.properties))!at(s,l)||dv(n.properties[l],l,s)||(s[l]=wn(t,e,n.properties[l],s[l]));return s}function V7(t,e,n,r){return M(t,"Decode")?G7(t,e,n,r):Y7(t,e,n,r)}function K7(t,e,n,r){if(!di(r))return He();const s=new RegExp(fs(n));for(const l of yt(r))s.test(l)||He(),r[l]=wn(t,e,Io(n),r[l]);return Dn(t,e,n,r)}function X7(t,e,n,r){const s=Dn(t,e,n,r);if(!di(s))return s;const l=new RegExp(fs(n));for(const c of yt(s))l.test(c)&&(s[c]=wn(t,e,Io(n),s[c]));return s}function Q7(t,e,n,r){return M(t,"Decode")?K7(t,e,n,r):X7(t,e,n,r)}function Z7(t,e,n,r){return r=at(e,n.$ref)?wn(t,e,e[n.$ref],r):r,Dn(t,e,n,r)}function J7(t,e,n,r){if(!Et(r))return He();for(let s=0;s<Math.min(n.items.length,r.length);s++)r[s]=wn(t,e,n.items[s],r[s]);return Dn(t,e,n,r)}function W7(t,e,n,r){const s=Dn(t,e,n,r);if(!Et(s))return r;for(let l=0;l<Math.min(n.items.length,s.length);l++)s[l]=wn(t,e,n.items[l],s[l]);return s}function tF(t,e,n,r){return M(t,"Decode")?J7(t,e,n,r):W7(t,e,n,r)}function eF(t,e,n,r){for(const s of n.anyOf){if(!Fr(e,s,r))continue;const l=wn(t,e,s,r);return Dn(t,e,n,l)}return He()}function nF(t,e,n,r){let s=Dn(t,e,n,r);for(const l of n.anyOf){const c=wn(t,e,l,Yn(s));if(Fr(e,l,c))return c}return s}function rF(t,e,n,r){return M(t,"Decode")?eF(t,e,n,r):nF(t,e,n,r)}function wn(t,e,n,r){return nn(n)?k7(t,e,n,r):_n(n)?P7(t,e,n,r):Ee(n)?q7(t,e,n,r):$e(n)?V7(t,e,n,r):vr(n)?Q7(t,e,n,r):Nn(n)?Z7(t,e,n,r):qe(n)?tF(t,e,n,r):Pt(n)?rF(t,e,n,r):Dn(t,e,n,r)}class oF extends uv{constructor(e,n){super("Decode",e,n)}}function iF(t,e,n){if(!Fr(t,e,n))throw new oF(n,qm(t,e,n));return n}function sF(t,e,n){return wn("Decode",t,e,n)}const aF=mv([(t,e,n)=>Yn(n),(t,e,n)=>Vm(t,e,n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>iF(t,e,n),(t,e,n)=>sF(t,e,n)]);function lF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return aF(e,n,r)}class uF extends uv{constructor(e,n){super("Encode",e,n)}}function cF(t,e,n){if(!Fr(t,e,n))throw new uF(n,qm(t,e,n));return n}function fF(t,e,n){return wn("Encode",t,e,n)}const dF=mv([(t,e,n)=>Yn(n),(t,e,n)=>fF(t,e,n),(t,e,n)=>Vm(t,e,n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>cF(t,e,n)]);function mF(...t){const[e,n,r]=rn(t,{3:(s,l,c)=>[s,l,c],2:(s,l)=>[{},s,l]});return dF(e,n,r)}function pF(t,e){return mr(e)||hs(t,e.items)}function hF(t,e){return mr(e)||nM({...t,...e.$defs},On(e.$ref))}function gF(t,e){return mr(e)||e.allOf.some(n=>hs(t,n))}function yF(t,e){return mr(e)||yt(e.properties).some(n=>hs(t,e.properties[n]))}function bF(t,e){return mr(e)||hs(t,Io(e))}function nM(t,e){return Hy.has(e.$ref)?!1:(Hy.add(e.$ref),mr(e)||at(t,e.$ref)&&hs(t,t[e.$ref]))}function vF(t,e){return mr(e)||e.items.some(n=>hs(t,n))}function SF(t,e){return mr(e)||e.anyOf.some(n=>hs(t,n))}function hs(t,e){return nn(e)?pF(t,e):_n(e)?hF(t,e):Ee(e)?gF(t,e):$e(e)?yF(t,e):vr(e)?bF(t,e):Nn(e)?nM(t,e):qe(e)?vF(t,e):Pt(e)?SF(t,e):mr(e)}const Hy=new Set;function xF(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return Hy.clear(),hs(e,n)}class Lc extends Error{constructor(e,n){super(n),this.type=e}}function EF(t,e){return si(e.default)?e.default(e):Mt(e.default)?Yn(e.default):e.default}function wF(t,e){if(Dc(e)&&!Rl(e))throw new Lc(e,"Arrays with uniqueItems constraints must specify a default annotation");const n=Rc(e)?e.minItems:0;return Array.from({length:n},()=>Er(t,e.items))}async function*TF(){}function CF(t,e){return TF()}function AF(t,e){return e.Create()}function $F(t,e){return ia(e)?BigInt(e.exclusiveMinimum)+BigInt(1):sa(e)?BigInt(e.minimum):BigInt(0)}function MF(t,e){return!1}function RF(t,e){const n=Er(t,e.instanceType);return class{constructor(){Object.assign(this,n)}}}function OF(t,e){return Er({...t,...e.$defs},On(e.$ref))}function NF(t,e){return Er(t,rb(e))}function _F(t,e){const n=Er(t,e.returnType);return()=>n}function DF(t,e){return ia(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:sa(e)?e.minimum:0}function jF(t,e){return Er(t,$c(e))}function*IF(){}function LF(t,e){return IF()}function zF(t,e){return e.const}function BF(t,e){throw new Lc(e,"Cannot create TNever types")}function UF(t,e){return null}function kF(t,e){return ia(e)&&Kt(e.exclusiveMinimum)?e.exclusiveMinimum+1:sa(e)?e.minimum:0}function PF(t,e){return(ye(e.required)?[]:e.required).reduce((r,s)=>({...r,[s]:Er(t,e.properties[s])}),{})}function HF(t,e){return Promise.resolve(Er(t,e.item))}function FF(t,e){if(Nc(e)&&!Rl(e))throw new Lc(e,"Record with the minProperties constraint must have a default annotation");return{}}function qF(t,e){return at(t,e.$ref)?Er(t,t[e.$ref]):(()=>{throw new Lc(e,"Unable to deref Ref")})()}function GF(t,e){if((_c(e)||Mc(e))&&!Rl(e))throw Error("Strings with format or pattern constraints must specify default");const r=Oc(e)?e.minLength:0;return"".padEnd(r)}function YF(t,e){return Symbol()}function VF(t,e){const n=yi(e.pattern);if(Fn(n))throw new Lc(e,"Unable to create TemplateLiteral due to infinite type expansion");return Er(t,n)}function KF(t,e){return Array.from({length:e.minItems},(n,r)=>Er(t,e.items[r]))}function XF(t,e){if(M(e.anyOf.length,0))throw Error("Unable to create Union with no variants");return Er(t,e.anyOf[0])}function Er(t,e){return Rl(e)?EF(t,e):nn(e)?wF(t,e):us(e)?CF():xl(e)?AF(t,e):ra(e)?$F(t,e):hi(e)?MF():Do(e)?RF(t,e):_n(e)?OF(t,e):uo(e)?NF(t,e):jo(e)?_F(t,e):co(e)?DF(t,e):Ee(e)?jF(t,e):cs(e)?LF():Ie(e)?zF(t,e):cm(e)?BF(t,e):El(e)?UF():br(e)?kF(t,e):$e(e)?PF(t,e):gi(e)?HF(t,e):vr(e)?FF(t,e):Nn(e)?qF(t,e):Fn(e)?GF(t,e):bc(e)?YF():Yr(e)?VF(t,e):qe(e)?KF(t,e):wl(e)?void 0:Pt(e)?XF(t,e):ds(e)?void 0:void 0}function QF(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return Er(e,n)}class ZF extends uv{constructor(e,n){super("Parse",e,n)}}function JF(t,e,n){if(!Fr(t,e,n))throw new ZF(n,qm(t,e,n));return n}const rM=mv([(t,e,n)=>Yn(n),(t,e,n)=>Vm(t,e,n),(t,e,n)=>Ym(t,e,n),(t,e,n)=>Gm(t,e,n),(t,e,n)=>JF(t,e,n)]);function WF(...t){const[e,n,r]=rn(t,{3:(l,c,f)=>[l,c,f],2:(l,c)=>[{},l,c]});return Fr(e,n,r)?r:rM(e,n,r)}const tq=le({type:be("insert"),path:Hr(),value:fr()}),eq=Object({type:be("update"),path:Hr(),value:fr()}),nq=le({type:be("delete"),path:Hr()});Se([tq,eq,nq]);const rq=t=>t&&typeof t=="object"&&"format"in t&&t.format==="binary",oq=t=>!!t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.size=="number"&&typeof t.stream.bind(t)=="function";class iq{isBigInt=e=>Fn(e)&&"format"in e&&e.format==="bigint";isUUID=e=>Fn(e)&&"format"in e&&e.format==="uuid";isObject=$e;isNumber=br;isString=Fn;isBoolean=hi;isAny=pi;isArray=nn;isOptional=Gn;isUnion=Pt;isInteger=co;isNull=El;isUndefined=wl;isUnsafe=SC;isRecord=vr;isTuple=qe;isVoid=ds;isLiteral=Ie;isSchema=Ut;isFile=rq;isDateTime=e=>N.schema.isString(e)&&e.format==="date-time";isDate=e=>N.schema.isString(e)&&e.format==="date";isTime=e=>N.schema.isString(e)&&e.format==="time";isDuration=e=>N.schema.isString(e)&&e.format==="duration"}const Pn=class Pn{static translateError(e,n){return e.cause.message}static setLocale(e){}static isValidBigInt(e){if(typeof e=="number")return Number.isInteger(e);if(!e.trim()||!/^-?\d+$/.test(e))return!1;try{return BigInt(e),!0}catch{return!1}}raw=b9;any=al;void=P0;undefined=hm;record=U0;union=Se;tuple=fo;null=Gs;const=be;options=Rb;schema=new iq;extend(e,n,r){return MA(Array.isArray(e)?e:[e],n,{additionalProperties:!1,...r})}pick(e,n,r){return KA(e,n,{additionalProperties:!1,...r})}omit(e,n,r){return YA(e,n,{additionalProperties:!1,...r})}partial(e,n){return VA(e,{additionalProperties:!1,...n})}object(e,n){return le(e,{additionalProperties:!1,...n})}array(e,n){return na(e,{maxItems:Pn.DEFAULT_ARRAY_MAX_ITEMS,...n})}string(e={}){return Hr({...e})}text(e={}){const{size:n,...r}=e,s=n==="short"?Pn.DEFAULT_SHORT_STRING_MAX_LENGTH:n==="long"?Pn.DEFAULT_LONG_STRING_MAX_LENGTH:n==="rich"?Pn.DEFAULT_RICH_STRING_MAX_LENGTH:Pn.DEFAULT_STRING_MAX_LENGTH;return Hr({maxLength:s,"~options":{trim:e.trim??!0,lowercase:e.lowercase??!1},...r})}json(e){return N.record(N.text(),N.any(),e)}boolean(e){return j0({...e})}number(e){return ai({...e})}integer(e){return fl({...e})}int32(e){return fl({minimum:-2147483647,maximum:2147483647,...e})}int64(e){return ai({format:"int64",multipleOf:1,minimum:-9007199254740991,maximum:9007199254740991,...e})}optional(e){return R0(e)}nullable(e,n){return Se([Gs(),e],n)}nullify=(e,n)=>qA(Bd("K"),FA(e),On("K"),Se([PA(e,On("K")),Gs()]),n);enum(e,n){return Sd(N.text({enum:e,pattern:e.map(r=>`^${r}$`).join("|"),...n}))}bigint(e){return N.string({...e,format:"bigint"})}url(e){return this.string({...e,format:"url"})}binary(e){return this.string({...e,format:"binary"})}uuid(e){return this.string({...e,format:"uuid"})}file(e){return Sd(al({[Wu]:e,format:"binary"}))}stream(){return Sd(al({format:"stream",type:"string"}))}email(e){return this.text({...e,format:"email",trim:!0,lowercase:!0})}e164(e){return this.text({...e,description:"Phone number in E.164 format, e.g. +1234567890.",pattern:"^\\+[1-9]\\d{1,14}$"})}bcp47(e){return this.text({...e,description:"BCP 47 language tag, e.g. en, en-US, fr, fr-CA.",pattern:"^[a-z]{2,3}(?:-[A-Z]{2})?$"})}shortText(e){return this.text({size:"short",...e})}longText(e){return this.text({size:"long",...e})}richText(e){return this.text({size:"rich",...e})}snakeCase=e=>this.text({pattern:"^[A-Z_-]+$",...e});valueLabel=e=>this.object({value:this.snakeCase({description:"Machine-readable value."}),label:this.text({description:"Human-readable label."}),description:this.optional(this.text({description:"Description of the value.",size:"long"}))},e);datetime=e=>N.text({...e,format:"date-time"});date=e=>N.text({...e,format:"date"});time=e=>N.text({...e,format:"time"});duration=e=>N.text({...e,format:"duration"})};Bs(Pn,"format",Uy),Uy.Set("bigint",e=>Pn.isValidBigInt(e)),Bs(Pn,"DEFAULT_STRING_MAX_LENGTH",255),Bs(Pn,"DEFAULT_SHORT_STRING_MAX_LENGTH",64),Bs(Pn,"DEFAULT_LONG_STRING_MAX_LENGTH",1024),Bs(Pn,"DEFAULT_RICH_STRING_MAX_LENGTH",65535),Bs(Pn,"DEFAULT_ARRAY_MAX_ITEMS",1e3);let dl=Pn;const N=new dl,sq=new Set(["__proto__","constructor","prototype"]);class aq extends w2{cache=new Map;textEncoder=new TextEncoder;textDecoder=new TextDecoder;varCounter=0;useFunctionCompilation=!0;maxArrayLength=1e4;maxStringLength=1e6;maxDepth=50;configure(e){return e.useFunctionCompilation!==void 0&&(this.useFunctionCompilation=e.useFunctionCompilation,this.cache.clear()),e.maxArrayLength!==void 0&&(this.maxArrayLength=e.maxArrayLength),e.maxStringLength!==void 0&&(this.maxStringLength=e.maxStringLength),e.maxDepth!==void 0&&(this.maxDepth=e.maxDepth),this}onConfigure=ar({on:"configure",handler:()=>{this.useFunctionCompilation=this.canUseFunction()}});encodeToString(e,n){return this.getCodec(e).encode(n)}encodeToBinary(e,n){return this.textEncoder.encode(this.encodeToString(e,n))}decode(e,n){if(n instanceof Uint8Array){const r=this.textDecoder.decode(n);return this.getCodec(e).decode(r)}return typeof n=="string"?this.getCodec(e).decode(n):Array.isArray(n)?this.reconstructObject(e,n):n}canUseFunction(){try{return new Function("return true")()===!0}catch{return!1}}validateSchemaKeys(e,n=0,r=new Set){if(!r.has(e)){if(r.add(e),n>this.maxDepth)throw new kt(`Schema depth exceeds maximum allowed (${this.maxDepth})`);if(N.schema.isObject(e)){const l=e.properties;for(const c of Object.keys(l)){if(sq.has(c))throw new kt(`Unsafe schema key "${c}" detected. This key is blocked to prevent prototype pollution.`);this.validateSchemaKeys(l[c],n+1,r)}}else if(N.schema.isArray(e)){const s=e;this.validateSchemaKeys(s.items,n+1,r)}else(N.schema.isUnion(e)||N.schema.isOptional(e))&&this.validateSchemaKeys(this.unwrap(e),n,r)}}validateArrayLength(e){if(e.length>this.maxArrayLength)throw new kt(`Array length (${e.length}) exceeds maximum allowed (${this.maxArrayLength})`)}validateStringLength(e){if(e.length>this.maxStringLength)throw new kt(`String length (${e.length}) exceeds maximum allowed (${this.maxStringLength})`)}getCodec(e){let n=this.cache.get(e);return n||(n=this.useFunctionCompilation?this.compileWithFunction(e):this.compileInterpreted(e),this.cache.set(e,n)),n}nextVar(){return`_${this.varCounter++}`}compileWithFunction(e){this.varCounter=0;const n=this.genEnc(e,"v");this.varCounter=0;const r=this.genDec(e),s=new Function("v",`return JSON.stringify(${n});`),l=new Function("s",`const a=JSON.parse(s);let i=0;${r.code}return ${r.result};`);return{encode:s,decode:l}}compileInterpreted(e){const n=this;return{encode(r){return JSON.stringify(n.interpretEncode(e,r))},decode(r){const s={arr:JSON.parse(r),i:0};return n.interpretDecode(e,s)}}}interpretEncode(e,n){if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return n;if(N.schema.isBigInt(e))return`${n}n`;if(N.schema.isArray(e)){const r=e;return!Array.isArray(n)||N.schema.isString(r.items)||N.schema.isNumber(r.items)||N.schema.isInteger(r.items)||N.schema.isBoolean(r.items)?n:n.map(s=>this.interpretEncode(r.items,s))}if(N.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f=[];for(const m of l){const h=s[m],g=!c.has(m)||N.schema.isOptional(h),b=this.isNullable(h),x=this.unwrap(h),S=n[m];g?f.push(S!==void 0?this.interpretEncode(x,S):null):b?f.push(S!==null?this.interpretEncode(x,S):null):f.push(this.interpretEncode(x,S))}return f}if(N.schema.isOptional(e)||N.schema.isUnion(e)){const r=this.unwrap(e);return this.isNullable(e)?n!==null?this.interpretEncode(r,n):null:n!==void 0?this.interpretEncode(r,n):null}return n}interpretDecode(e,n){if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return n.arr[n.i++];if(N.schema.isBigInt(e))return BigInt(n.arr[n.i++].slice(0,-1));if(N.schema.isArray(e)){const r=e,s=n.arr[n.i++];return Array.isArray(s)&&N.schema.isObject(r.items)?s.map(l=>this.interpretDecodeFromValue(r.items,l)):s}if(N.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f={};for(const m of l){const h=s[m],g=!c.has(m)||N.schema.isOptional(h),b=this.isNullable(h),x=this.unwrap(h),S=n.arr[n.i++];g?S!==null&&(f[m]=this.interpretDecodeFromValue(x,S)):b?f[m]=S===null?null:this.interpretDecodeFromValue(x,S):f[m]=this.interpretDecodeFromValue(x,S)}return f}if(N.schema.isOptional(e)||N.schema.isUnion(e)){const r=this.unwrap(e),s=n.arr[n.i++];return s===null?this.isNullable(e)?null:void 0:N.schema.isObject(r)||N.schema.isArray(r)?this.interpretDecodeFromValue(r,s):s}return n.arr[n.i++]}interpretDecodeFromValue(e,n){if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return n;if(N.schema.isBigInt(e))return BigInt(n.slice(0,-1));if(N.schema.isArray(e)){if(!Array.isArray(n))return n;const r=e;return N.schema.isObject(r.items)?n.map(s=>this.interpretDecodeFromValue(r.items,s)):n}if(N.schema.isObject(e)){const s=e.properties,l=Object.keys(s),c={};for(let f=0;f<l.length;f++){const m=l[f],h=this.unwrap(s[m]),g=n[f];N.schema.isObject(h)?c[m]=this.interpretDecodeFromValue(h,g):N.schema.isBigInt(h)?c[m]=BigInt(g.slice(0,-1)):c[m]=g}return c}return n}genEnc(e,n){if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return n;if(N.schema.isBigInt(e))return`${n}+'n'`;if(N.schema.isArray(e)){const r=e,s=this.genEnc(r.items,"e");return N.schema.isString(r.items)||N.schema.isNumber(r.items)||N.schema.isInteger(r.items)||N.schema.isBoolean(r.items)?n:`${n}.map(e=>${s})`}if(N.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]),f=[];for(const m of l){const h=s[m],g=!c.has(m)||N.schema.isOptional(h),b=this.isNullable(h),x=this.unwrap(h),S=this.genEnc(x,`${n}.${m}`);g?f.push(`${n}.${m}!==undefined?${S}:null`):b?f.push(`${n}.${m}!==null?${S}:null`):f.push(S)}return`[${f.join(",")}]`}if(N.schema.isOptional(e)||N.schema.isUnion(e)){const r=this.unwrap(e),s=this.genEnc(r,n);return this.isNullable(e)?`${n}!==null?${s}:null`:`${n}!==undefined?${s}:null`}return n}genDec(e){const n=this.nextVar();if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return{code:"",result:"a[i++]"};if(N.schema.isBigInt(e))return{code:"",result:"BigInt(a[i++].slice(0,-1))"};if(N.schema.isArray(e)){const r=e;return N.schema.isObject(r.items)?{code:"",result:`a[i++].map(e=>${this.genDecFromValue(r.items,"e")})`}:{code:"",result:"a[i++]"}}if(N.schema.isObject(e)){const r=e,s=r.properties,l=Object.keys(s),c=new Set(r.required||[]);let f=!0;for(const h of l){const g=s[h],b=!c.has(h)||N.schema.isOptional(g),x=this.isNullable(g),S=this.unwrap(g);if(b||x||N.schema.isObject(S)||N.schema.isArray(S)){f=!1;break}}if(f)return{code:"",result:`{${l.map(g=>`${g}:a[i++]`).join(",")}}`};let m=`const ${n}={};`;for(const h of l){const g=s[h],b=!c.has(h)||N.schema.isOptional(g),x=this.isNullable(g),S=this.unwrap(g);if(b){const T=this.genDecFromValue(S,"t");m+=`{const t=a[i++];if(t!==null){${n}.${h}=${T};}}`}else if(x){const T=this.genDecFromValue(S,"t");m+=`{const t=a[i++];if(t===null){${n}.${h}=null;}else{${n}.${h}=${T};}}`}else if(N.schema.isObject(S)){const T=this.genDecFromValue(S,"a[i++]");m+=`${n}.${h}=${T};`}else if(N.schema.isArray(S)){const T=S;if(N.schema.isObject(T.items)){const w=this.genDecFromValue(T.items,"e");m+=`${n}.${h}=a[i++].map(e=>${w});`}else m+=`${n}.${h}=a[i++];`}else m+=`${n}.${h}=a[i++];`}return{code:m,result:n}}if(N.schema.isOptional(e)||N.schema.isUnion(e)){const r=this.unwrap(e),s=this.genDec(r),l=this.isNullable(e)?"null":"undefined";return{code:`const ${n}t=a[i++];let ${n};if(${n}t===null){${n}=${l};}else{${s.code.replace(/a\[i\+\+\]/g,`${n}t`)}${n}=${s.result.replace(/a\[i\+\+\]/g,`${n}t`)};}`,result:n}}return{code:"",result:"a[i++]"}}genDecFromValue(e,n){if(N.schema.isString(e)||N.schema.isNumber(e)||N.schema.isInteger(e)||N.schema.isBoolean(e)||this.isEnum(e))return n;if(N.schema.isBigInt(e))return`BigInt(${n}.slice(0,-1))`;if(N.schema.isArray(e))return n;if(N.schema.isObject(e)){const s=e.properties,l=Object.keys(s),c=this.nextVar(),f=l.map((m,h)=>{const g=this.unwrap(s[m]),b=`${c}[${h}]`;return N.schema.isObject(g)?`${m}:${this.genDecFromValue(g,b)}`:N.schema.isBigInt(g)?`${m}:BigInt(${b}.slice(0,-1))`:`${m}:${b}`});return`((${c}=${n})=>({${f.join(",")}}))()`}return n}isEnum(e){return"enum"in e&&Array.isArray(e.enum)&&(e.enum?.length??0)>0}isNullable(e){return N.schema.isUnion(e)?e.anyOf?.some(r=>N.schema.isNull(r))??!1:!1}unwrap(e){return"anyOf"in e&&Array.isArray(e.anyOf)&&e.anyOf.find(r=>!N.schema.isNull(r))||e}reconstructObject(e,n){if(!N.schema.isObject(e))return n;const s=e.properties,l=Object.keys(s),c={};let f=0;for(const m of l){const h=s[m],g=N.schema.isOptional(h),b=this.isNullable(h),x=this.unwrap(h),S=n[f++];g?S!==null&&(c[m]=N.schema.isObject(x)?this.reconstructObject(x,S):S):b?c[m]=S===null?null:N.schema.isObject(x)?this.reconstructObject(x,S):S:c[m]=N.schema.isObject(x)?this.reconstructObject(x,S):S}return c}}class pv extends X2{constructor(...e){super();const n=rn(e,{6:(r,s,l,c,f,m)=>[r,s,l,c,f,m],2:(r,s)=>[r,s]});if(n.length===6){const[r,s,l,c,f,m]=n;this.context=r,this.type=s,this.isEvaluated=l,this.hasCodec=c,this.code=f,this.check=m}else{const[r,s]=n,l=GP(r,s).Evaluate();this.hasCodec=xF(r,s),this.context=r,this.type=s,this.isEvaluated=l.IsEvaluated,this.code=l.Code,this.check=l.Check}}IsEvaluated(){return this.isEvaluated}Context(){return this.context}Type(){return this.type}Code(){return this.code}Check(e){return this.check(e)}Errors(e){return N0()&&this.check(e)?[]:qm(this.context,this.type,e)}Clean(e){return Gm(this.context,this.type,e)}Convert(e){return Ym(this.context,this.type,e)}Create(){return QF(this.context,this.type)}Default(e){return Vm(this.context,this.type,e)}Clone(){return new pv(this.context,this.type,this.isEvaluated,this.hasCodec,this.code,this.check)}Parse(e){return this.Check(e)?e:rM(this.context,this.type,e)}Decode(e){return this.hasCodec?lF(this.context,this.type,e):this.Parse(e)}Encode(e){return this.hasCodec?mF(this.context,this.type,e):this.Parse(e)}}function Kw(...t){const[e,n]=rn(t,{2:(r,s)=>[r,s],1:r=>[{},r]});return new pv(e,n)}class Km extends kt{name="TypeBoxError";cause;value;constructor(e){super(`Invalid input: ${e.message}${e.instancePath?` at ${e.instancePath}`:""}`,{cause:e});const n=e.params;n?.requiredProperties?this.value={path:`/${n.requiredProperties[0]}`,message:"must be defined"}:this.value={path:e.instancePath,message:e.message},this.cause=e}}class lq{cache=new Map;useEval=!0;validate(e,n,r={}){const s=this.beforeParse(e,n,{trim:r.trim??!0,nullToUndefined:r.nullToUndefined??!0,deleteUndefined:r.deleteUndefined??!0});try{return this.useEval?this.getValidator(e).Parse(s):WF(e,s)}catch(l){throw l.cause?.errors?.[0]?new Km(l.cause.errors[0]):l}}getValidator(e){if(this.cache.has(e))return this.cache.get(e);const n=Kw(e);return this.cache.set(e,n),n}beforeParse(e,n,r){if(!e)return n;if(!(n===null&&!this.isSchemaNullable(e)&&r.nullToUndefined)){if(Array.isArray(n))return n.map(s=>this.beforeParse(e.items,s,r));if(typeof n=="string"&&e.type==="string"){let s=n;return r.trim&&e["~options"]?.trim&&(s=s.trim()),e["~options"]?.lowercase&&(s=s.toLowerCase()),s}if(typeof n=="object"&&n!==null&&e.type==="object"){const s={};for(const l in n){const c=this.beforeParse(e.properties?.[l],n[l],r);c===void 0&&r.deleteUndefined||(s[l]=c)}return s}return n}}isSchemaNullable=e=>e?e.type==="null"||Array.isArray(e.type)&&e.type.includes("null")?!0:e.anyOf?e.anyOf.some(n=>this.isSchemaNullable(n)):e.oneOf?e.oneOf.some(n=>this.isSchemaNullable(n)):e.allOf?e.allOf.some(n=>this.isSchemaNullable(n)):!1:!1;onConfigure=ar({on:"configure",handler:()=>{this.useEval=this.canEval()}});canEval(){try{return Kw(N.object({test:N.string()})).Parse({test:"value"}),!0}catch{return!1}}}class uq{codecs=new Map;jsonCodec=Rt(T2);keylessCodec=Rt(aq);schemaValidator=Rt(lq);default="json";constructor(){this.register({name:"json",codec:this.jsonCodec,default:!0}),this.register({name:"keyless",codec:this.keylessCodec})}register(e){this.codecs.set(e.name,e.codec),e.default&&(this.default=e.name)}getCodec(e){const n=this.codecs.get(e);if(!n)throw new kt(`Codec "${e}" not found. Available codecs: ${Array.from(this.codecs.keys()).join(", ")}`);return n}encode(e,n,r){const s=this.getCodec(r?.encoder??this.default),l=r?.as??"object";return r?.validation!==!1&&(n=this.schemaValidator.validate(e,n,r?.validation)),l==="object"?n:l==="binary"?s.encodeToBinary(e,n):s.encodeToString(e,n)}decode(e,n,r){const s=r?.encoder??this.default;let c=this.getCodec(s).decode(e,n);return r?.validation!==!1&&(c=this.schemaValidator.validate(e,c,r?.validation)),c}validate(e,n,r){return this.schemaValidator.validate(e,n,r)}}class oM{logFn;events={};constructor(e){this.logFn=e}get log(){return this.logFn?.()}clear(){this.events={}}on(e,n){this.events[e]||(this.events[e]=[]);const r=typeof n=="function"?{callback:n}:n;if(r.priority==="first")this.events[e].unshift(r);else if(r.priority==="last")this.events[e].push(r);else{const s=this.events[e].findIndex(l=>l.priority==="last");s!==-1?this.events[e].splice(s,0,r):this.events[e].push(r)}return()=>{this.events[e]=this.events[e].filter(s=>s.callback!==r.callback)}}compile(e,n={}){const r=this.events[e];if(!r||r.length===0)return()=>{};const s=n.catch??!1,l=this.log,c=async(f,m)=>{for(let h=f;h<r.length;h++){const g=r[h];try{const b=g.callback(m);b&&typeof b=="object"&&"then"in b&&(s?await b.catch(x=>{l?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,x)}):await b)}catch(b){if(s)l?.error(`${String(e)}(${g.caller?.name??"unknown"}) ERROR`,b);else throw b}}};return f=>{for(let m=0;m<r.length;m++){const h=r[m];try{const g=h.callback(f);if(g&&typeof g=="object"&&"then"in g)return s?g.catch(b=>{l?.error(`${String(e)}(${h.caller?.name??"unknown"}) ERROR`,b)}).then(()=>c(m+1,f)):g.then(()=>c(m+1,f))}catch(g){if(s)l?.error(`${String(e)}(${h.caller?.name??"unknown"}) ERROR`,g);else throw g}}}}async emit(e,n,r={}){const s=this.events[e];if(!s||s.length===0)return;if(s.length===1&&!r.log&&!r.reverse){const f=s[0];try{const m=f.callback(n);m&&typeof m=="object"&&"then"in m&&await m}catch(m){if(r.catch){this.log?.error(`${String(e)}(${f.caller?.name??"unknown"}) ERROR`,m);return}throw m}return}const l={};r.log&&(l.now=performance.now(),this.log?.trace(`${String(e)} ...`));let c=s;r.reverse&&(c=s.toReversed());for(const f of c){const m=f.caller?.name??"unknown";r.log&&(l.now2=performance.now(),this.log?.trace(`${String(e)}(${m}) ...`));try{const h=f.callback(n);h&&typeof h=="object"&&"then"in h&&await h}catch(h){if(r.catch){this.log?.error(`${String(e)}(${m}) ERROR`,h);continue}throw r.log?new kt(`Failed during '${String(e)}()' hook for service: ${m}`,{cause:h}):h}r.log&&this.log?.debug(`${String(e)}(${m}) OK [${(performance.now()-l.now2).toFixed(1)}ms]`)}r.log&&this.log?.debug(`${String(e)} OK [${(performance.now()-l.now).toFixed(1)}ms]`)}}const zc=t=>new il(t);class il{options;get schema(){return this.options.schema}get key(){return this.options.name}constructor(e){this.options=e}}zc[Rn]="atom";class cq{als=Rt(tm);events=Rt(oM);codec=Rt(T2);atoms=new Map;store={};constructor(e={}){this.store=e}getAtoms(e=!0){const n=[];if(e&&this.als?.exists())for(const r of this.atoms.values()){const s=this.als.get(r.key);s!==void 0&&n.push({atom:r,value:s})}else for(const[r,s]of this.atoms.entries())n.push({atom:s,value:this.store[r]});return n}register(e){const n=e.key;return this.atoms.has(n)||(this.atoms.set(n,e),n in this.store||this.set(n,e.options.default,{skipContext:!0})),this}get(e){e instanceof il&&this.register(e);const n=e instanceof il?e.key:e,r=this.store;return this.als?.exists()?this.als.get(n)??r[n]:r[n]}set(e,n,r){e instanceof il&&this.register(e);const s=e instanceof il?e.key:e,l=this.store,c=this.get(s);return c===n?this:(r?.skipContext!==!0&&this.als?.exists()?this.als.set(s,n):l[s]=n,r?.skipEvents!==!0&&this.events?.emit("state:mutate",{key:s,value:n,prevValue:c},{catch:!0}).catch(()=>null),this)}mut(e,n){const r=this.get(e),s=n(r);return this.set(e,s)}has(e){return e in this.store}del(e){return this.set(e,void 0)}push(e,...n){const r=this.get(e)??[];return Array.isArray(r)&&this.set(e,[...r,...n]),this}clear(){return this.store={},this}keys(){return Object.keys(this.store)}}var Xw={};class Re{static create(e={}){typeof process=="object"&&typeof Xw=="object"&&(e.env={...e.env,...Xw}),e.env??={},Object.assign(e.env,{NODE_ENV:"production"});const n=new Re(e);if(n.isTest()){const r=globalThis,s=e["alepha.test.beforeAll"]??r.beforeAll,l=e["alepha.test.afterAll"]??r.afterAll,c=e["alepha.test.afterEach"]??r.afterEach,f=e["alepha.test.onTestFinished"]??r.onTestFinished;s?.(()=>n.start()),l?.(()=>n.stop());try{f?.(()=>n.stop())}catch{}n.store.set("alepha.test.beforeAll",s).set("alepha.test.afterAll",l).set("alepha.test.afterEach",c).set("alepha.test.onTestFinished",f)}return n}locked=!1;configured=!1;started=!1;ready=!1;starting;pendingInstantiations=[];cacheEnv=new Map;modules=[];substitutions=new Map;primitiveRegistry=new Map;registry=new Map;context;events;store;codec;get log(){return this.store.get("alepha.logger")}get env(){return this.store.get("env")??{}}constructor(e={}){this.store=this.inject(cq,{args:[e]}),this.events=this.inject(oM),this.events.logFn=()=>this.log,this.context=this.inject(tm),this.codec=this.inject(uq)}set(e,n){return this.store.set(e,n),this}isLocked(){return this.locked}isConfigured(){return this.configured}isStarted(){return this.started}isReady(){return this.ready}isCI(){return this.env.GITHUB_ACTIONS?!0:!!this.env.CI}isBrowser(){return typeof window<"u"}isViteDev(){return this.isBrowser()?!1:!!this.env.VITE_ALEPHA_DEV}isBun(){return"Bun"in globalThis}isServerless(){return this.isBrowser()?!1:!!(this.env.VERCEL_REGION||typeof global=="object"&&typeof global.Cloudflare=="object")}isTest(){return this.env.NODE_ENV==="test"}isProduction(){return this.env.NODE_ENV==="production"}async start(){if(this.ready)return this.log?.debug("App is already started, skipping..."),this;if(this.starting)return this.log?.warn("App is already starting, waiting for it to finish..."),this.starting.promise;this.starting=Promise.withResolvers();const e=Date.now();this.log?.info("Starting App...");for(const[r]of this.substitutions.entries())this.inject(r);const n=this.store.get("alepha.target");if(n){this.modules=[],this.registry=new Map,this.primitiveRegistry=new Map,this.pendingInstantiations=[],this.substitutions=new Map,this.events.clear(),delete n[Hn],this.with(n);for(const[r]of this.substitutions.entries())this.inject(r)}return this.locked=!0,await this.events.emit("configure",this,{log:!0}),this.configured=!0,await this.events.emit("start",this,{log:!0}),this.started=!0,await this.events.emit("ready",this,{log:!0}),this.log?.info(`App is now ready [${Date.now()-e}ms]`),this.ready=!0,this.starting.resolve(this),this.starting=void 0,this}async stop(){this.started&&(this.log?.info("Stopping App..."),await this.events.emit("stop",this,{reverse:!0,log:!0}),this.log?.info("App is now off"),this.started=!1,this.ready=!1)}has(e,n={}){if(e===Re)return!0;const{inStack:r=!0,inRegistry:s=!0,inSubstitutions:l=!0,registry:c=this.registry}=n,{provide:f}=typeof e=="object"&&"provide"in e?e:{provide:e};if(l&&this.substitutions.get(f)||s&&c.get(f))return!0;if(r){const m=this.substitutions.get(f)?.use;return m&&this.pendingInstantiations.includes(m)?!0:this.pendingInstantiations.includes(f)}return!1}with(e){const n="default"in e?e.default:e;if(this.has(n,{inSubstitutions:!1,inRegistry:!1}))return this;if(typeof n=="object"){if(n.provide===n.use)return this.inject(n.provide),this;if(!this.substitutions.has(n.provide)&&!this.has(n.provide)){if(this.started)throw new ww;Hn in n.provide&&typeof n.provide[Hn]=="function"&&(n.use[Hn]??=n.provide[Hn]),this.substitutions.set(n.provide,{use:n.use})}else if(!n.optional)throw new c3(n.provide.name,n.use.name);return this}return this.inject(n),this}inject(e,n={}){const r=n.lifetime??"singleton",s=n.parent!==void 0?n.parent:zr?.parent??Re,l=r==="transient",c=r==="scoped"?this.context.get("registry")??this.registry:this.registry;if(e===Re)return this;if(typeof e=="string"){for(const[x,S]of c.entries())if(x.name===e)return S.instance;throw new kt(`Service not found: ${e}`)}const f=this.substitutions.get(e);if(f)return this.inject(f.use,{parent:s,lifetime:r});const m=this.pendingInstantiations.indexOf(e);if(m!==-1&&!l)throw new u3(e.name,this.pendingInstantiations.slice(0,m).map(x=>x.name));if(!l){const x=c.get(e);if(x)return!x.parents.includes(s)&&s!==e&&x.parents.push(s),x.instance;if(this.started){const S=e[Hn]?.name;throw new ww(`Container is locked. No more services can be added. Attempted to inject '${e.name}' from '${s?.name}'. ${S?`Maybe register module '${S}' in Alepha.`:""}`)}}const h=e[Hn];if(h&&typeof h=="function"&&this.with(h),this.has(e,{registry:c})&&!l)return this.inject(e,{parent:s,lifetime:r});const g=this.new(e,n.args),b={parents:[s],instance:g};if(l||c.set(e,b),g instanceof sl){this.modules.push(g);const x=zr.parent;zr.parent=g.constructor,g.register(this),zr.parent=x}return g}parseEnv(e){if(this.cacheEnv.has(e))return this.cacheEnv.get(e);const n=this.codec.validate(e,this.env);for(const r in n)if(typeof n[r]=="string")for(const s in n)n[r]=n[r].replace(new RegExp(`\\$${s}`,"gim"),n[s]);return this.cacheEnv.set(e,n),n}getEnvSchemas(){const e=[];for(const[n,r]of this.cacheEnv.entries())e.push({schema:n,values:r});return e}graph(){for(const[n]of this.substitutions.entries())this.has(n)||this.inject(n);const e={};for(const[n,{parents:r}]of this.registry.entries()){if(n.name===""||sl.is(n))continue;e[n.name]={from:r.filter(c=>!!c).map(c=>c.name)};const s=this.substitutions.entries().filter(c=>c[1].use===n).map(c=>c[0].name).toArray();s.length&&(e[n.name].as=s);const l=sl.of(n);l&&(e[n.name].module=l.name)}return e}dump(){const e={};for(const[n]of this.cacheEnv.entries()){const r=n;for(const[s,l]of Object.entries(r.properties)){const c=l;e[s]={description:c.description,default:c.default,required:r.required?.includes(s)??void 0,enum:c.enum?[...c.enum]:void 0}}}return{env:e,providers:this.graph()}}services(e){const n=[];for(const[r,s]of this.registry.entries())s.instance instanceof e&&n.push(s.instance);return n}primitives(e){if(typeof e=="string"){const n=e.toLowerCase().replace("$",""),r=`${n}primitive`;for(const[s,l]of this.primitiveRegistry.entries()){const c=s.name.toLowerCase();if(c===n||c===r)return l}return[]}return this.primitiveRegistry.get(e[Rn])??[]}new(e,n=[]){this.pendingInstantiations.push(e),zr.alepha=this,zr.service=e;const r=d3(e)?new e(...n):e(...n)??{},s=r;for(const[l,c]of Object.entries(s))if(c instanceof fi&&this.processPrimitive(c,l),typeof c=="object"&&c!==null&&typeof c[Wu]=="object"&&"getter"in c[Wu]){const f=c[Wu].getter;Object.defineProperty(s,l,{get:()=>this.store.get(f)})}return this.pendingInstantiations.pop(),this.pendingInstantiations.length===0&&(zr.alepha=void 0),zr.service=this.pendingInstantiations[this.pendingInstantiations.length-1],r}processPrimitive(e,n=""){e.config.propertyKey=n,e.onInit();const r=e.constructor,s=this.primitiveRegistry.get(r)??[];this.primitiveRegistry.set(r,[...s,e])}}function qd(t){if(t["~kind"])return t;if(t.const!==void 0)return N.const(t.const);if(t.enum&&Array.isArray(t.enum))return t.enum.every(n=>typeof n=="string")?N.enum(t.enum,ss({title:t.title,description:t.description,default:t.default})):N.union(t.enum.map(n=>N.const(n)));switch(Array.isArray(t.type)?t.type[0]:t.type){case"string":return fq(t);case"number":return dq(t);case"integer":return mq(t);case"boolean":return pq(t);case"null":return N.null();case"object":return Qw(t);case"array":return hq(t);default:return t.properties?Qw(t):N.any()}}function ss(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>n!==void 0))}function fq(t){const e=ss({title:t.title,description:t.description,default:t.default,minLength:t.minLength,maxLength:t.maxLength,pattern:t.pattern});switch(t.format){case"email":return N.email(e);case"uuid":return N.uuid(e);case"date-time":return N.datetime(e);case"date":return N.date(e);case"time":return N.time(e);case"url":case"uri":return N.url(e);case"binary":return N.binary(e);case"bigint":return N.bigint(e);case"duration":return N.duration(e);case"color":return N.text({...e,format:"color"});case"e164":return N.e164(e);case"bcp47":return N.bcp47(e);default:return t.format?N.string({...e,format:t.format}):N.string(e)}}function dq(t){return N.number(ss({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}function mq(t){return N.integer(ss({title:t.title,description:t.description,default:t.default,minimum:t.minimum,maximum:t.maximum,exclusiveMinimum:t.exclusiveMinimum,exclusiveMaximum:t.exclusiveMaximum,multipleOf:t.multipleOf}))}function pq(t){return N.boolean(ss({title:t.title,description:t.description,default:t.default}))}function Qw(t){if(!t.properties)return N.json(ss({title:t.title,description:t.description}));const e=new Set(t.required??[]),n={};for(const[r,s]of Object.entries(t.properties)){let l=qd(s);e.has(r)||(l=N.optional(l)),n[r]=l}return N.object(n,ss({title:t.title,description:t.description}))}function hq(t){const e=t.items?qd(t.items):N.any();return N.array(e,ss({title:t.title,description:t.description,minItems:t.minItems,maxItems:t.maxItems,uniqueItems:t.uniqueItems}))}const hv=t=>{const{alepha:e}=cc();if(!N.schema.isObject(t))throw new kt("Type must be an TObject");return e.parseEnv(t)},gq=t=>{const{alepha:e}=cc();e.store.register(t);const n=e.store.get(t.key);return{[Wu]:{getter:t.key},...n}};N.object({page:N.optional(N.integer({description:"The page number to retrieve.",minimum:0,default:0})),size:N.optional(N.integer({description:"The number of items per page.",minimum:1,maximum:100,default:10})),sort:N.optional(N.text({description:"Sort by field(s). Multiple columns separated by comma. Prefix with '-' for DESC. Examples: 'name' (ASC), '-createdAt' (DESC), 'role,-name' (role ASC, name DESC)"}))});const yq=N.object({number:N.integer({description:"Page number, starting from 0"}),size:N.integer({description:"Number of items per page (requested page size)"}),offset:N.integer({description:"Offset in the dataset (page × size)"}),numberOfElements:N.integer({description:"Number of elements in THIS page (content.length). Different from totalElements which is the total across all pages."}),totalElements:N.optional(N.integer({description:"Total number of elements across all pages. Only available when counting is enabled."})),totalPages:N.optional(N.integer({description:"Total number of pages. Only available when `totalElements` is present."})),isEmpty:N.boolean({description:"Indicates if the current page has no items (numberOfElements === 0)"}),isFirst:N.boolean({description:"Indicates if this is the first page (number === 0)"}),isLast:N.boolean({description:"Indicates if this is the last page (no more pages after this)"}),sort:N.optional(N.object({sorted:N.boolean({description:"Whether the results are sorted"}),fields:N.array(N.object({field:N.text({description:"The field used for sorting"}),direction:N.enum(["asc","desc"],{description:"The direction of the sort. Either 'asc' or 'desc'"})}))}))}),bq=(t,e)=>N.object({content:N.array(t),page:yq},e);dl.prototype.page=t=>bq(t);const vq=(t,e)=>{const n=t instanceof Re?t:Re.create({env:{...e?.env}});if(!(t instanceof Re)){const r=Array.isArray(t)?t:[t];for(const s of r)n.with(s)}return(async()=>{try{await e?.configure?.(n),await n.start(),e?.ready}catch(r){n.log?.error("Alepha failed to start",r)}})(),window.alepha=n,n};function gs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qg={exports:{}},_t={};var Zw;function Sq(){if(Zw)return _t;Zw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,$={};function _(O,q,ot){this.props=O,this.context=q,this.refs=$,this.updater=ot||T}_.prototype.isReactComponent={},_.prototype.setState=function(O,q){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,q,"setState")},_.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function L(){}L.prototype=_.prototype;function j(O,q,ot){this.props=O,this.context=q,this.refs=$,this.updater=ot||T}var H=j.prototype=new L;H.constructor=j,w(H,_.prototype),H.isPureReactComponent=!0;var P=Array.isArray;function G(){}var z={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function W(O,q,ot){var ft=ot.ref;return{$$typeof:t,type:O,key:q,ref:ft!==void 0?ft:null,props:ot}}function et(O,q){return W(O.type,q,O.props)}function it(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function ct(O){var q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ot){return q[ot]})}var dt=/\/+/g;function Y(O,q){return typeof O=="object"&&O!==null&&O.key!=null?ct(""+O.key):q.toString(36)}function Z(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(G,G):(O.status="pending",O.then(function(q){O.status==="pending"&&(O.status="fulfilled",O.value=q)},function(q){O.status==="pending"&&(O.status="rejected",O.reason=q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function R(O,q,ot,ft,mt){var ht=typeof O;(ht==="undefined"||ht==="boolean")&&(O=null);var Tt=!1;if(O===null)Tt=!0;else switch(ht){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(O.$$typeof){case t:case e:Tt=!0;break;case g:return Tt=O._init,R(Tt(O._payload),q,ot,ft,mt)}}if(Tt)return mt=mt(O),Tt=ft===""?"."+Y(O,0):ft,P(mt)?(ot="",Tt!=null&&(ot=Tt.replace(dt,"$&/")+"/"),R(mt,q,ot,"",function(ie){return ie})):mt!=null&&(it(mt)&&(mt=et(mt,ot+(mt.key==null||O&&O.key===mt.key?"":(""+mt.key).replace(dt,"$&/")+"/")+Tt)),q.push(mt)),1;Tt=0;var Jt=ft===""?".":ft+":";if(P(O))for(var Ot=0;Ot<O.length;Ot++)ft=O[Ot],ht=Jt+Y(ft,Ot),Tt+=R(ft,q,ot,ht,mt);else if(Ot=S(O),typeof Ot=="function")for(O=Ot.call(O),Ot=0;!(ft=O.next()).done;)ft=ft.value,ht=Jt+Y(ft,Ot++),Tt+=R(ft,q,ot,ht,mt);else if(ht==="object"){if(typeof O.then=="function")return R(Z(O),q,ot,ft,mt);throw q=String(O),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function B(O,q,ot){if(O==null)return O;var ft=[],mt=0;return R(O,ft,"","",function(ht){return q.call(ot,ht,mt++)}),ft}function D(O){if(O._status===-1){var q=O._result;q=q(),q.then(function(ot){(O._status===0||O._status===-1)&&(O._status=1,O._result=ot)},function(ot){(O._status===0||O._status===-1)&&(O._status=2,O._result=ot)}),O._status===-1&&(O._status=0,O._result=q)}if(O._status===1)return O._result.default;throw O._result}var tt=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},nt={map:B,forEach:function(O,q,ot){B(O,function(){q.apply(this,arguments)},ot)},count:function(O){var q=0;return B(O,function(){q++}),q},toArray:function(O){return B(O,function(q){return q})||[]},only:function(O){if(!it(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return _t.Activity=b,_t.Children=nt,_t.Component=_,_t.Fragment=n,_t.Profiler=s,_t.PureComponent=j,_t.StrictMode=r,_t.Suspense=m,_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,_t.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},_t.cache=function(O){return function(){return O.apply(null,arguments)}},_t.cacheSignal=function(){return null},_t.cloneElement=function(O,q,ot){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ft=w({},O.props),mt=O.key;if(q!=null)for(ht in q.key!==void 0&&(mt=""+q.key),q)!k.call(q,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&q.ref===void 0||(ft[ht]=q[ht]);var ht=arguments.length-2;if(ht===1)ft.children=ot;else if(1<ht){for(var Tt=Array(ht),Jt=0;Jt<ht;Jt++)Tt[Jt]=arguments[Jt+2];ft.children=Tt}return W(O.type,mt,ft)},_t.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:l,_context:O},O},_t.createElement=function(O,q,ot){var ft,mt={},ht=null;if(q!=null)for(ft in q.key!==void 0&&(ht=""+q.key),q)k.call(q,ft)&&ft!=="key"&&ft!=="__self"&&ft!=="__source"&&(mt[ft]=q[ft]);var Tt=arguments.length-2;if(Tt===1)mt.children=ot;else if(1<Tt){for(var Jt=Array(Tt),Ot=0;Ot<Tt;Ot++)Jt[Ot]=arguments[Ot+2];mt.children=Jt}if(O&&O.defaultProps)for(ft in Tt=O.defaultProps,Tt)mt[ft]===void 0&&(mt[ft]=Tt[ft]);return W(O,ht,mt)},_t.createRef=function(){return{current:null}},_t.forwardRef=function(O){return{$$typeof:f,render:O}},_t.isValidElement=it,_t.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:D}},_t.memo=function(O,q){return{$$typeof:h,type:O,compare:q===void 0?null:q}},_t.startTransition=function(O){var q=z.T,ot={};z.T=ot;try{var ft=O(),mt=z.S;mt!==null&&mt(ot,ft),typeof ft=="object"&&ft!==null&&typeof ft.then=="function"&&ft.then(G,tt)}catch(ht){tt(ht)}finally{q!==null&&ot.types!==null&&(q.types=ot.types),z.T=q}},_t.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},_t.use=function(O){return z.H.use(O)},_t.useActionState=function(O,q,ot){return z.H.useActionState(O,q,ot)},_t.useCallback=function(O,q){return z.H.useCallback(O,q)},_t.useContext=function(O){return z.H.useContext(O)},_t.useDebugValue=function(){},_t.useDeferredValue=function(O,q){return z.H.useDeferredValue(O,q)},_t.useEffect=function(O,q){return z.H.useEffect(O,q)},_t.useEffectEvent=function(O){return z.H.useEffectEvent(O)},_t.useId=function(){return z.H.useId()},_t.useImperativeHandle=function(O,q,ot){return z.H.useImperativeHandle(O,q,ot)},_t.useInsertionEffect=function(O,q){return z.H.useInsertionEffect(O,q)},_t.useLayoutEffect=function(O,q){return z.H.useLayoutEffect(O,q)},_t.useMemo=function(O,q){return z.H.useMemo(O,q)},_t.useOptimistic=function(O,q){return z.H.useOptimistic(O,q)},_t.useReducer=function(O,q,ot){return z.H.useReducer(O,q,ot)},_t.useRef=function(O){return z.H.useRef(O)},_t.useState=function(O){return z.H.useState(O)},_t.useSyncExternalStore=function(O,q,ot){return z.H.useSyncExternalStore(O,q,ot)},_t.useTransition=function(){return z.H.useTransition()},_t.version="19.2.3",_t}var Jw;function gv(){return Jw||(Jw=1,Qg.exports=Sq()),Qg.exports}var C=gv();const $n=gs(C),iM=l3({__proto__:null,default:$n},[C]),xq=t=>{const[e,n]=C.useState(!1);return C.useEffect(()=>n(!0),[]),t.disabled||e?t.children:t.fallback};class Ww extends $n.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){this.props.onError&&this.props.onError(e,n)}render(){return this.state.error?this.props.fallback(this.state.error):this.props.children}}const sM=C.createContext(void 0);var Zg={exports:{}},qu={};var tT;function Eq(){if(tT)return qu;tT=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:t,type:r,key:c,ref:s!==void 0?s:null,props:l}}return qu.Fragment=e,qu.jsx=n,qu.jsxs=n,qu}var eT;function wq(){return eT||(eT=1,Zg.exports=Eq()),Zg.exports}var E=wq(),xd={exports:{}},Tq=xd.exports,nT;function Cq(){return nT||(nT=1,(function(t,e){(function(n,r){t.exports=r()})(Tq,(function(){return function(n,r,s){n=n||{};var l=r.prototype,c={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function f(h,g,b,x){return l.fromToBase(h,g,b,x)}s.en.relativeTime=c,l.fromToBase=function(h,g,b,x,S){for(var T,w,$,_=b.$locale().relativeTime||c,L=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],j=L.length,H=0;H<j;H+=1){var P=L[H];P.d&&(T=x?s(h).diff(b,P.d,!0):b.diff(h,P.d,!0));var G=(n.rounding||Math.round)(Math.abs(T));if($=T>0,G<=P.r||!P.r){G<=1&&H>0&&(P=L[H-1]);var z=_[P.l];S&&(G=S(""+G)),w=typeof z=="string"?z.replace("%d",G):z(G,g,P.l,$);break}}if(g)return w;var k=$?_.future:_.past;return typeof k=="function"?k(w):k.replace("%s",w)},l.to=function(h,g){return f(h,g,this,!0)},l.from=function(h,g){return f(h,g,this)};var m=function(h){return h.$u?s.utc():s()};l.toNow=function(h){return this.to(m(this),h)},l.fromNow=function(h){return this.from(m(this),h)}}}))})(xd)),xd.exports}var Aq=Cq();const $q=gs(Aq);var Ed={exports:{}},Mq=Ed.exports,rT;function Rq(){return rT||(rT=1,(function(t,e){(function(n,r){t.exports=r()})(Mq,(function(){var n,r,s=1e3,l=6e4,c=36e5,f=864e5,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=31536e6,g=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,x={years:h,months:g,days:f,hours:c,minutes:l,seconds:s,milliseconds:1,weeks:6048e5},S=function(G){return G instanceof H},T=function(G,z,k){return new H(G,k,z.$l)},w=function(G){return r.p(G)+"s"},$=function(G){return G<0},_=function(G){return $(G)?Math.ceil(G):Math.floor(G)},L=function(G){return Math.abs(G)},j=function(G,z){return G?$(G)?{negative:!0,format:""+L(G)+z}:{negative:!1,format:""+G+z}:{negative:!1,format:""}},H=(function(){function G(k,W,et){var it=this;if(this.$d={},this.$l=et,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),W)return T(k*x[w(W)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach((function(Y){it.$d[w(Y)]=k[Y]})),this.calMilliseconds(),this;if(typeof k=="string"){var ct=k.match(b);if(ct){var dt=ct.slice(2).map((function(Y){return Y!=null?Number(Y):0}));return this.$d.years=dt[0],this.$d.months=dt[1],this.$d.weeks=dt[2],this.$d.days=dt[3],this.$d.hours=dt[4],this.$d.minutes=dt[5],this.$d.seconds=dt[6],this.calMilliseconds(),this}}return this}var z=G.prototype;return z.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce((function(W,et){return W+(k.$d[et]||0)*x[et]}),0)},z.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=_(k/h),k%=h,this.$d.months=_(k/g),k%=g,this.$d.days=_(k/f),k%=f,this.$d.hours=_(k/c),k%=c,this.$d.minutes=_(k/l),k%=l,this.$d.seconds=_(k/s),k%=s,this.$d.milliseconds=k},z.toISOString=function(){var k=j(this.$d.years,"Y"),W=j(this.$d.months,"M"),et=+this.$d.days||0;this.$d.weeks&&(et+=7*this.$d.weeks);var it=j(et,"D"),ct=j(this.$d.hours,"H"),dt=j(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1e3,Y=Math.round(1e3*Y)/1e3);var Z=j(Y,"S"),R=k.negative||W.negative||it.negative||ct.negative||dt.negative||Z.negative,B=ct.format||dt.format||Z.format?"T":"",D=(R?"-":"")+"P"+k.format+W.format+it.format+B+ct.format+dt.format+Z.format;return D==="P"||D==="-P"?"P0D":D},z.toJSON=function(){return this.toISOString()},z.format=function(k){var W=k||"YYYY-MM-DDTHH:mm:ss",et={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return W.replace(m,(function(it,ct){return ct||String(et[it])}))},z.as=function(k){return this.$ms/x[w(k)]},z.get=function(k){var W=this.$ms,et=w(k);return et==="milliseconds"?W%=1e3:W=et==="weeks"?_(W/x[et]):this.$d[et],W||0},z.add=function(k,W,et){var it;return it=W?k*x[w(W)]:S(k)?k.$ms:T(k,this).$ms,T(this.$ms+it*(et?-1:1),this)},z.subtract=function(k,W){return this.add(k,W,!0)},z.locale=function(k){var W=this.clone();return W.$l=k,W},z.clone=function(){return T(this.$ms,this)},z.humanize=function(k){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},G})(),P=function(G,z,k){return G.add(z.years()*k,"y").add(z.months()*k,"M").add(z.days()*k,"d").add(z.hours()*k,"h").add(z.minutes()*k,"m").add(z.seconds()*k,"s").add(z.milliseconds()*k,"ms")};return function(G,z,k){n=k,r=k().$utils(),k.duration=function(it,ct){var dt=k.locale();return T(it,{$l:dt},ct)},k.isDuration=S;var W=z.prototype.add,et=z.prototype.subtract;z.prototype.add=function(it,ct){return S(it)?P(this,it,1):W.bind(this)(it,ct)},z.prototype.subtract=function(it,ct){return S(it)?P(this,it,-1):et.bind(this)(it,ct)}}}))})(Ed)),Ed.exports}var Oq=Rq();const Nq=gs(Oq);var wd={exports:{}},_q=wd.exports,oT;function Dq(){return oT||(oT=1,(function(t,e){(function(n,r){t.exports=r()})(_q,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(l,c,f){var m=c.prototype;f.utc=function(w){var $={date:w,utc:!0,args:arguments};return new c($)},m.utc=function(w){var $=f(this.toDate(),{locale:this.$L,utc:!0});return w?$.add(this.utcOffset(),n):$},m.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var h=m.parse;m.parse=function(w){w.utc&&(this.$u=!0),this.$utils().u(w.$offset)||(this.$offset=w.$offset),h.call(this,w)};var g=m.init;m.init=function(){if(this.$u){var w=this.$d;this.$y=w.getUTCFullYear(),this.$M=w.getUTCMonth(),this.$D=w.getUTCDate(),this.$W=w.getUTCDay(),this.$H=w.getUTCHours(),this.$m=w.getUTCMinutes(),this.$s=w.getUTCSeconds(),this.$ms=w.getUTCMilliseconds()}else g.call(this)};var b=m.utcOffset;m.utcOffset=function(w,$){var _=this.$utils().u;if(_(w))return this.$u?0:_(this.$offset)?b.call(this):this.$offset;if(typeof w=="string"&&(w=(function(P){P===void 0&&(P="");var G=P.match(r);if(!G)return null;var z=(""+G[0]).match(s)||["-",0,0],k=z[0],W=60*+z[1]+ +z[2];return W===0?0:k==="+"?W:-W})(w),w===null))return this;var L=Math.abs(w)<=16?60*w:w;if(L===0)return this.utc($);var j=this.clone();if($)return j.$offset=L,j.$u=!1,j;var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(j=this.local().add(L+H,n)).$offset=L,j.$x.$localOffset=H,j};var x=m.format;m.format=function(w){var $=w||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return x.call(this,$)},m.valueOf=function(){var w=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*w},m.isUTC=function(){return!!this.$u},m.toISOString=function(){return this.toDate().toISOString()},m.toString=function(){return this.toDate().toUTCString()};var S=m.toDate;m.toDate=function(w){return w==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():S.call(this)};var T=m.diff;m.diff=function(w,$,_){if(w&&this.$u===w.$u)return T.call(this,w,$,_);var L=this.local(),j=f(w).local();return T.call(L,j,$,_)}}}))})(wd)),wd.exports}var jq=Dq();const Iq=gs(jq);var Td={exports:{}},Lq=Td.exports,iT;function zq(){return iT||(iT=1,(function(t,e){(function(n,r){t.exports=r()})(Lq,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(s,l,c){var f,m=function(x,S,T){T===void 0&&(T={});var w=new Date(x),$=(function(_,L){L===void 0&&(L={});var j=L.timeZoneName||"short",H=_+"|"+j,P=r[H];return P||(P=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:j}),r[H]=P),P})(S,T);return $.formatToParts(w)},h=function(x,S){for(var T=m(x,S),w=[],$=0;$<T.length;$+=1){var _=T[$],L=_.type,j=_.value,H=n[L];H>=0&&(w[H]=parseInt(j,10))}var P=w[3],G=P===24?0:P,z=w[0]+"-"+w[1]+"-"+w[2]+" "+G+":"+w[4]+":"+w[5]+":000",k=+x;return(c.utc(z).valueOf()-(k-=k%1e3))/6e4},g=l.prototype;g.tz=function(x,S){x===void 0&&(x=f);var T,w=this.utcOffset(),$=this.toDate(),_=$.toLocaleString("en-US",{timeZone:x}),L=Math.round(($-new Date(_))/1e3/60),j=15*-Math.round($.getTimezoneOffset()/15)-L;if(!Number(j))T=this.utcOffset(0,S);else if(T=c(_,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(j,!0),S){var H=T.utcOffset();T=T.add(w-H,"minute")}return T.$x.$timezone=x,T},g.offsetName=function(x){var S=this.$x.$timezone||c.tz.guess(),T=m(this.valueOf(),S,{timeZoneName:x}).find((function(w){return w.type.toLowerCase()==="timezonename"}));return T&&T.value};var b=g.startOf;g.startOf=function(x,S){if(!this.$x||!this.$x.$timezone)return b.call(this,x,S);var T=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return b.call(T,x,S).tz(this.$x.$timezone,!0)},c.tz=function(x,S,T){var w=T&&S,$=T||S||f,_=h(+c(),$);if(typeof x!="string")return c(x).tz($);var L=(function(G,z,k){var W=G-60*z*1e3,et=h(W,k);if(z===et)return[W,z];var it=h(W-=60*(et-z)*1e3,k);return et===it?[W,et]:[G-60*Math.min(et,it)*1e3,Math.max(et,it)]})(c.utc(x,w).valueOf(),_,$),j=L[0],H=L[1],P=c(j).utcOffset(H);return P.$x.$timezone=$,P},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(x){f=x}}}))})(Td)),Td.exports}var Bq=zq();const Uq=gs(Bq);var Cd={exports:{}},kq=Cd.exports,sT;function Pq(){return sT||(sT=1,(function(t,e){(function(n,r){t.exports=r()})(kq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,s,l){var c=s.prototype,f=c.format;l.en.formats=n,c.format=function(m){m===void 0&&(m="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,g=(function(b,x){return b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(S,T,w){var $=w&&w.toUpperCase();return T||x[w]||n[w]||x[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,L,j){return L||j.slice(1)}))}))})(m,h===void 0?{}:h);return f.call(this,g)}}}))})(Cd)),Cd.exports}var Hq=Pq();const Fq=gs(Hq);var Ad={exports:{}},$d={exports:{}},qq=$d.exports,aT;function yv(){return aT||(aT=1,(function(t,e){(function(n,r){t.exports=r()})(qq,(function(){var n=1e3,r=6e4,s=36e5,l="millisecond",c="second",f="minute",m="hour",h="day",g="week",b="month",x="quarter",S="year",T="date",w="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var Z=["th","st","nd","rd"],R=Y%100;return"["+Y+(Z[(R-20)%10]||Z[R]||Z[0])+"]"}},j=function(Y,Z,R){var B=String(Y);return!B||B.length>=Z?Y:""+Array(Z+1-B.length).join(R)+Y},H={s:j,z:function(Y){var Z=-Y.utcOffset(),R=Math.abs(Z),B=Math.floor(R/60),D=R%60;return(Z<=0?"+":"-")+j(B,2,"0")+":"+j(D,2,"0")},m:function Y(Z,R){if(Z.date()<R.date())return-Y(R,Z);var B=12*(R.year()-Z.year())+(R.month()-Z.month()),D=Z.clone().add(B,b),tt=R-D<0,nt=Z.clone().add(B+(tt?-1:1),b);return+(-(B+(R-D)/(tt?D-nt:nt-D))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:b,y:S,w:g,d:h,D:T,h:m,m:f,s:c,ms:l,Q:x}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},P="en",G={};G[P]=L;var z="$isDayjsObject",k=function(Y){return Y instanceof ct||!(!Y||!Y[z])},W=function Y(Z,R,B){var D;if(!Z)return P;if(typeof Z=="string"){var tt=Z.toLowerCase();G[tt]&&(D=tt),R&&(G[tt]=R,D=tt);var nt=Z.split("-");if(!D&&nt.length>1)return Y(nt[0])}else{var O=Z.name;G[O]=Z,D=O}return!B&&D&&(P=D),D||!B&&P},et=function(Y,Z){if(k(Y))return Y.clone();var R=typeof Z=="object"?Z:{};return R.date=Y,R.args=arguments,new ct(R)},it=H;it.l=W,it.i=k,it.w=function(Y,Z){return et(Y,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var ct=(function(){function Y(R){this.$L=W(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[z]=!0}var Z=Y.prototype;return Z.parse=function(R){this.$d=(function(B){var D=B.date,tt=B.utc;if(D===null)return new Date(NaN);if(it.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var nt=D.match($);if(nt){var O=nt[2]-1||0,q=(nt[7]||"0").substring(0,3);return tt?new Date(Date.UTC(nt[1],O,nt[3]||1,nt[4]||0,nt[5]||0,nt[6]||0,q)):new Date(nt[1],O,nt[3]||1,nt[4]||0,nt[5]||0,nt[6]||0,q)}}return new Date(D)})(R),this.init()},Z.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},Z.$utils=function(){return it},Z.isValid=function(){return this.$d.toString()!==w},Z.isSame=function(R,B){var D=et(R);return this.startOf(B)<=D&&D<=this.endOf(B)},Z.isAfter=function(R,B){return et(R)<this.startOf(B)},Z.isBefore=function(R,B){return this.endOf(B)<et(R)},Z.$g=function(R,B,D){return it.u(R)?this[B]:this.set(D,R)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(R,B){var D=this,tt=!!it.u(B)||B,nt=it.p(R),O=function(Ot,ie){var We=it.w(D.$u?Date.UTC(D.$y,ie,Ot):new Date(D.$y,ie,Ot),D);return tt?We:We.endOf(h)},q=function(Ot,ie){return it.w(D.toDate()[Ot].apply(D.toDate("s"),(tt?[0,0,0,0]:[23,59,59,999]).slice(ie)),D)},ot=this.$W,ft=this.$M,mt=this.$D,ht="set"+(this.$u?"UTC":"");switch(nt){case S:return tt?O(1,0):O(31,11);case b:return tt?O(1,ft):O(0,ft+1);case g:var Tt=this.$locale().weekStart||0,Jt=(ot<Tt?ot+7:ot)-Tt;return O(tt?mt-Jt:mt+(6-Jt),ft);case h:case T:return q(ht+"Hours",0);case m:return q(ht+"Minutes",1);case f:return q(ht+"Seconds",2);case c:return q(ht+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(R){return this.startOf(R,!1)},Z.$set=function(R,B){var D,tt=it.p(R),nt="set"+(this.$u?"UTC":""),O=(D={},D[h]=nt+"Date",D[T]=nt+"Date",D[b]=nt+"Month",D[S]=nt+"FullYear",D[m]=nt+"Hours",D[f]=nt+"Minutes",D[c]=nt+"Seconds",D[l]=nt+"Milliseconds",D)[tt],q=tt===h?this.$D+(B-this.$W):B;if(tt===b||tt===S){var ot=this.clone().set(T,1);ot.$d[O](q),ot.init(),this.$d=ot.set(T,Math.min(this.$D,ot.daysInMonth())).$d}else O&&this.$d[O](q);return this.init(),this},Z.set=function(R,B){return this.clone().$set(R,B)},Z.get=function(R){return this[it.p(R)]()},Z.add=function(R,B){var D,tt=this;R=Number(R);var nt=it.p(B),O=function(ft){var mt=et(tt);return it.w(mt.date(mt.date()+Math.round(ft*R)),tt)};if(nt===b)return this.set(b,this.$M+R);if(nt===S)return this.set(S,this.$y+R);if(nt===h)return O(1);if(nt===g)return O(7);var q=(D={},D[f]=r,D[m]=s,D[c]=n,D)[nt]||1,ot=this.$d.getTime()+R*q;return it.w(ot,this)},Z.subtract=function(R,B){return this.add(-1*R,B)},Z.format=function(R){var B=this,D=this.$locale();if(!this.isValid())return D.invalidDate||w;var tt=R||"YYYY-MM-DDTHH:mm:ssZ",nt=it.z(this),O=this.$H,q=this.$m,ot=this.$M,ft=D.weekdays,mt=D.months,ht=D.meridiem,Tt=function(ie,We,cn,Zt){return ie&&(ie[We]||ie(B,tt))||cn[We].slice(0,Zt)},Jt=function(ie){return it.s(O%12||12,ie,"0")},Ot=ht||function(ie,We,cn){var Zt=ie<12?"AM":"PM";return cn?Zt.toLowerCase():Zt};return tt.replace(_,(function(ie,We){return We||(function(cn){switch(cn){case"YY":return String(B.$y).slice(-2);case"YYYY":return it.s(B.$y,4,"0");case"M":return ot+1;case"MM":return it.s(ot+1,2,"0");case"MMM":return Tt(D.monthsShort,ot,mt,3);case"MMMM":return Tt(mt,ot);case"D":return B.$D;case"DD":return it.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Tt(D.weekdaysMin,B.$W,ft,2);case"ddd":return Tt(D.weekdaysShort,B.$W,ft,3);case"dddd":return ft[B.$W];case"H":return String(O);case"HH":return it.s(O,2,"0");case"h":return Jt(1);case"hh":return Jt(2);case"a":return Ot(O,q,!0);case"A":return Ot(O,q,!1);case"m":return String(q);case"mm":return it.s(q,2,"0");case"s":return String(B.$s);case"ss":return it.s(B.$s,2,"0");case"SSS":return it.s(B.$ms,3,"0");case"Z":return nt}return null})(ie)||nt.replace(":","")}))},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(R,B,D){var tt,nt=this,O=it.p(B),q=et(R),ot=(q.utcOffset()-this.utcOffset())*r,ft=this-q,mt=function(){return it.m(nt,q)};switch(O){case S:tt=mt()/12;break;case b:tt=mt();break;case x:tt=mt()/3;break;case g:tt=(ft-ot)/6048e5;break;case h:tt=(ft-ot)/864e5;break;case m:tt=ft/s;break;case f:tt=ft/r;break;case c:tt=ft/n;break;default:tt=ft}return D?tt:it.a(tt)},Z.daysInMonth=function(){return this.endOf(b).$D},Z.$locale=function(){return G[this.$L]},Z.locale=function(R,B){if(!R)return this.$L;var D=this.clone(),tt=W(R,B,!0);return tt&&(D.$L=tt),D},Z.clone=function(){return it.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},Y})(),dt=ct.prototype;return et.prototype=dt,[["$ms",l],["$s",c],["$m",f],["$H",m],["$W",h],["$M",b],["$y",S],["$D",T]].forEach((function(Y){dt[Y[1]]=function(Z){return this.$g(Z,Y[0],Y[1])}})),et.extend=function(Y,Z){return Y.$i||(Y(Z,ct,et),Y.$i=!0),et},et.locale=W,et.isDayjs=k,et.unix=function(Y){return et(1e3*Y)},et.en=G[P],et.Ls=G,et.p={},et}))})($d)),$d.exports}var Gq=Ad.exports,lT;function Yq(){return lT||(lT=1,(function(t,e){(function(n,r){t.exports=r(yv())})(Gq,(function(n){function r(S){return S&&typeof S=="object"&&"default"in S?S:{default:S}}var s=r(n),l="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),c={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},f={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},m=/[١٢٣٤٥٦٧٨٩٠]/g,h=/،/g,g=/\d/g,b=/,/g,x={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:l,monthsShort:l,weekStart:6,meridiem:function(S){return S>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(S){return S.replace(m,(function(T){return f[T]})).replace(h,",")},postformat:function(S){return S.replace(g,(function(T){return c[T]})).replace(b,"،")},ordinal:function(S){return S},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return s.default.locale(x,null,!0),x}))})(Ad)),Ad.exports}Yq();var Md={exports:{}},Vq=Md.exports,uT;function Kq(){return uT||(uT=1,(function(t,e){(function(n,r){t.exports=r(yv())})(Vq,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var s=r(n),l={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(c){return""+c+(c===1?"er":"")}};return s.default.locale(l,null,!0),l}))})(Md)),Md.exports}Kq();var Xq=yv();const Qq=gs(Xq),ni=Qq;class Lo{static PLUGINS=[Nq,$q,Iq,Uq,Fq];alepha=Rt(Re);ref=null;timeouts=[];intervals=[];constructor(){for(const e of Lo.PLUGINS)ni.extend(e)}onStart=ar({on:"start",handler:async()=>{await Promise.all(this.intervals.map(async e=>{e.timer==null&&(await e.run(),e.timer=setInterval(e.run,e.duration))}))}});onStop=ar({on:"stop",handler:()=>{for(const e of this.timeouts)this.clearTimeout(e);for(const e of this.intervals)clearInterval(e.timer),e.duration=0,e.timer=null}});setLocale(e){ni.locale(e)}isDateTime(e){return ni.isDayjs(e)}utc(e){return ni.utc(e)}of(e){return ni(e)}toISOString(e=this.now()){return this.of(e).toISOString()}now(){return this.getCurrentDate()}nowISOString(){return this.ref?this.ref.toISOString():new Date().toISOString()}nowMillis(){return this.ref?this.ref.valueOf():Date.now()}getCurrentDate(){return this.ref?this.ref:ni()}duration=(e,n)=>Array.isArray(e)?ni.duration(e[0],e[1]):typeof e=="number"?ni.duration(e,n||"milliseconds"):e;isDurationLike(e){return ni.isDuration(this.duration(e))}async tick(){await new Promise(e=>setTimeout(e,0))}wait(e,n={}){return new Promise(r=>{let s,l;const c=this.createTimeout(()=>{n.signal&&s&&n.signal.removeEventListener("abort",l),r()},e,n.now);n.signal&&(s=()=>this.clearTimeout(c),l=()=>{s(),r()},n.signal.addEventListener("abort",l))})}createInterval(e,n,r=!1){const s={run:e,duration:this.duration(n).asMilliseconds()};return this.intervals.push(s),r&&(s.timer=setInterval(s.run,s.duration)),s}createTimeout(e,n,r){if(this.ref&&r)return this.of(r).add(this.duration(n))<this.now()&&e(),{now:r,duration:0,callback:()=>{},clear:()=>{}};const s={now:r??this.now().valueOf(),duration:this.duration(n).asMilliseconds(),callback:e,clear:()=>this.clearTimeout(s)};return s.timer=setTimeout(()=>{s.callback()},s.duration),this.timeouts.push(s),s}clearTimeout(e){clearTimeout(e.timer),e.duration=0,e.timer=null}clearInterval(e){clearInterval(e.timer),e.duration=0,e.timer=null}async deadline(e,n){const r=new AbortController,s=this.createTimeout(()=>r.abort(),n);try{return await e(r.signal)}finally{this.clearTimeout(s)}}async travel(e,n){this.ref=this.ref||this.now(),this.ref=this.ref.add(this.duration(e,n));const r=this.duration(e,n).asMilliseconds(),s=Date.now();for(const l of this.timeouts){if(!l.timer)continue;clearTimeout(l.timer),l.timer=null;const c=s-l.now;l.duration=l.duration-c-r,l.duration<=0?l.callback():l.timer=setTimeout(()=>{l.callback()},l.duration)}for(const l of this.intervals){if(!l.timer)continue;clearInterval(l.timer),l.timer=null;const c=Math.floor(r/l.duration);for(let f=0;f<c;f++)await l.run()}await this.tick()}pause(){return this.ref=this.ref||this.now(),this.ref}reset(){this.ref=null}}const aM=t=>ls(lM,t);class lM extends fi{dateTimeProvider=Rt(Lo);called=0;onInit(){this.dateTimeProvider.createInterval(async()=>{await this.options.handler(),this.called+=1},this.options.duration)}}aM[Rn]=lM;const uM=gr({name:"alepha.datetime",primitives:[aM],services:[Lo]}),Xm=()=>{const t=C.useContext(sM);if(!t)throw new kt("Hook 'useAlepha()' must be used within an AlephaContext.Provider");return t},bv=t=>{const e=Xm();return C.useMemo(()=>e.inject(t),[])},Zq=N.object({name:N.text({description:"Name of the API link, used for identification."}),group:N.optional(N.text({description:"Group to which the API link belongs, used for categorization."})),path:N.text({description:"Pathname used to access the API link."}),method:N.optional(N.text({description:"HTTP method used for the API link, e.g., GET, POST, etc. If not specified, defaults to GET."})),requestBodyType:N.optional(N.text({description:"Type of the request body for the API link. Default is application/json for POST/PUT/PATCH, null for others."})),service:N.optional(N.text({description:"Service name associated with the API link, used for service discovery."})),rawSchema:N.optional(N.object({body:N.optional(N.string()),response:N.optional(N.string())}))}),cM=N.object({prefix:N.optional(N.text()),links:N.array(Zq)}),Jq=zc({name:"alepha.server.request.apiLinks",schema:N.optional(cM)});class Qm{}class Bc{}class Gd{alepha=Rt(Re);formatter=Rt(Bc);destination=Rt(Qm);dateTimeProvider=Rt(Lo);levels={SILENT:-1,ERROR:0,WARN:1,INFO:2,DEBUG:3,TRACE:4};service;module;app;appLogLevel="INFO";logLevel="INFO";constructor(e,n){this.service=e,this.module=n,this.app=this.alepha.env.APP_NAME}get context(){return this.alepha.context.get("context")}get level(){const e=this.alepha.store.get("alepha.logger.level");return e&&e!==this.appLogLevel&&(this.appLogLevel=e,this.logLevel=this.parseLevel(this.appLogLevel,this.module)),this.logLevel}parseLevel(e,n){const r=e.toLowerCase().split(/[,;]/);for(const s of r){const l=s.trim();if(l&&(l.includes(":")||l.includes("="))){const[c,f]=l.split(/[:=]/),m=c.trim(),h=f?.trim();if(!h)continue;if(this.matchesPattern(n,m))try{return this.asLogLevel(h)}catch{throw new kt(`Invalid log level '${f?.trim()}' for module pattern '${m}'`)}}}for(const s of r){const l=s.trim();if(l&&!l.includes(":")&&!l.includes("="))try{return this.asLogLevel(l)}catch{throw new Error(`Invalid global log level "${l}"`)}}return"INFO"}matchesPattern(e,n){if(n.includes("*")){const r=n.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp(`^${r}`).test(e)}return e.startsWith(n)}asLogLevel(e){const n=e.trim().toUpperCase();if(this.levels[n]!==void 0)return n;throw new kt(`Invalid log level: ${e}`)}error(e,n){this.log("ERROR",e,n)}warn(e,n){this.log("WARN",e,n)}info(e,n){this.log("INFO",e,n)}debug(e,n){this.log("DEBUG",e,n)}trace(e,n){this.log("TRACE",e,n)}log(e,n,r){let s="";typeof n=="string"?s=n:typeof r=="string"&&(s=r);let l;typeof r=="object"&&r?l=r:typeof n=="object"&&n&&(l=n);const c={level:e,message:s,data:l,context:this.context,service:this.service,module:this.module,app:this.app,timestamp:this.dateTimeProvider.nowMillis()};if(this.levels[e]>this.levels[this.level]){this.emit(c);return}const f=this.formatter.format(c);this.emit(c,f),this.destination.write(f,c)}emit(e,n){this.alepha.events.emit("log",{message:n,entry:e},{catch:!0}).catch(()=>null)}}const po=(t={})=>{const{alepha:e,service:n,module:r}=cc();return Rt(Gd,{lifetime:"transient",args:[t.name??n?.name??"Func",r?.name??e.env.MODULE_NAME??"app"]})};po[Rn]=Gd;const Wq=N.object({NO_COLOR:N.optional(N.text()),FORCE_COLOR:N.optional(N.text())});class oc{static COLORS={RESET:"\x1B[0m",BLACK:"\x1B[30m",RED:"\x1B[31m",GREEN:"\x1B[32m",ORANGE:"\x1B[33m",BLUE:"\x1B[34m",PURPLE:"\x1B[35m",CYAN:"\x1B[36m",GREY_LIGHT:"\x1B[37m",GREY_LIGHT_BOLD:"\x1B[1;37m",GREY_DARK:"\x1B[90m",GREY_DARK_BOLD:"\x1B[1;90m",WHITE:"\x1B[97m",WHITE_BOLD:"\x1B[1;97m",SILENT:"",ERROR:"\x1B[31m",WARN:"\x1B[33m",INFO:"\x1B[32m",DEBUG:"\x1B[34m",TRACE:"\x1B[90m"};env=hv(Wq);alepha=Rt(Re);enabled=!0;constructor(){this.enabled=this.isEnabled()}isEnabled(){return this.env.NO_COLOR?!1:this.env.FORCE_COLOR?!0:!this.alepha.isProduction()}set(e,n,r=oc.COLORS.RESET){return this.enabled?`${oc.COLORS[e]}${n}${r}`:n}}class cT extends Qm{write(e){console.log(e)}}class Jg extends Bc{format(e){const n={level:e.level,message:e.message,context:e.context,service:e.service,module:e.module,app:e.app,time:e.timestamp};return e.data instanceof Error?n.error=this.formatJsonError(e.data):n.data=e.data,JSON.stringify(n)}formatJsonError(e){return{name:e.name,message:e.message,stack:e.stack,cause:e.cause instanceof Error?this.formatJsonError(e.cause):void 0}}}class Wg extends Qm{entries=[];options={maxEntries:1e3};write(e,n){this.entries.push({...n,formatted:e}),this.entries.length>this.options.maxEntries&&(this.entries=this.entries.slice(-Math.floor(this.options.maxEntries*.8)))}get logs(){return[...this.entries]}clear(){this.entries=[]}}class ty extends Bc{color=Rt(oc);alepha=Rt(Re);format(e){const{data:n,timestamp:r}=e;let s="",l="";const c=n instanceof Error;if(c)l=this.formatError(n);else if(n)try{l=JSON.stringify(n)}catch{l="[Unserializable Object]"}s+=this.color.set("GREY_DARK",`[${this.formatTimestamp(r)}]`),s+=" ",s+=this.color.set(e.level,e.level.toUpperCase()),s+=" ",e.app&&(s+=this.color.set("GREY_DARK",`${e.app}`),s+=" "),e.context&&(s+=this.color.set("GREY_DARK",`(${this.formatContext(e.context)})`),s+=" ");const f=this.color.set("GREY_LIGHT",`${e.module}.`),m=this.color.set(this.alepha.isBrowser()?"RESET":"WHITE",e.service);return s+=`<${f}${m}>`,e.message?s+=`: ${this.color.set("CYAN",e.message)}`:s+=":",l&&(c?s+=`
|
|
10
|
-
${l}`:s+=` ${this.color.set("GREY_DARK",l)}`),s}formatTimestamp(e){const n=new Date(e),r=n.getHours(),s=n.getMinutes(),l=n.getSeconds(),c=n.getMilliseconds();return`${this.pad2(r)}:${this.pad2(s)}:${this.pad2(l)}.${this.pad3(c)}`}pad2=e=>(e<10?"0":"")+e;pad3=e=>e<10?`00${e}`:e<100?`0${e}`:`${e}`;formatContext(e){return this.alepha.isProduction()?e:e.slice(0,8)}formatError(e){if(this.alepha.isBrowser())return setTimeout(()=>{console.error(e)}),"";let n=e.stack??e.message;const r=e;for(;r.cause&&r.cause instanceof Error;)n+=`
|
|
11
|
-
Caused by: ${r.cause.stack??r.cause.message}`,r.cause=r.cause.cause;return n}}class fT extends Bc{format(e){let n="";if(n+=`${e.message}`,e.data instanceof Error){n+=`
|
|
12
|
-
${e.data.message}`;let r=e.data.cause;for(;r instanceof Error;)n+=`
|
|
13
|
-
Caused by: ${r.message}`,r=r.cause}return n}}const stt=N.object({level:N.enum(["SILENT","TRACE","DEBUG","INFO","WARN","ERROR"]),message:N.text({size:"rich"}),service:N.text(),module:N.text(),context:N.optional(N.text()),app:N.optional(N.text()),data:N.optional(N.any()),timestamp:N.number()});gr({name:"alepha.logger",primitives:[po],services:[Gd,cT,Wg,Jg,ty,fT,oc],register:t=>{const e=t.parseEnv(tG),n=()=>{if(t.isTest()&&!e.LOG_LEVEL){const s=l=>{if(l.task?.result?.state==="fail"){const c=t.inject(Wg);for(const f of c.logs)console.log(f.formatted)}};try{t.store.get("alepha.test.afterEach")?.(s),t.store.get("alepha.test.onTestFinished")?.(s)}catch{}return Wg}return cT},r=()=>e.LOG_FORMAT?e.LOG_FORMAT==="json"?Jg:e.LOG_FORMAT==="raw"?fT:ty:t.isProduction()&&!t.isBrowser()?Jg:ty;t.with({optional:!0,provide:Qm,use:n()}),t.with({optional:!0,provide:Bc,use:r()}),t.store.set("alepha.logger",t.inject(Gd,{lifetime:"transient",args:["Alepha","alepha.core"]})),t.store.set("alepha.logger.level",e.LOG_LEVEL??(t.isTest()?"trace":"info"))}});const tG=N.object({LOG_LEVEL:N.optional(N.text({description:`Application log level on startup.
|
|
14
|
-
Levels are: trace, debug, info, warn, error, silent
|
|
15
|
-
Level can be set for a specific module:
|
|
16
|
-
"my.module.name:debug,info" -> Set debug level for my.module.name and info for all other modules
|
|
17
|
-
"alepha:trace,info" -> Set trace level for all alepha modules and info for all other modules`,lowercase:!0})),LOG_FORMAT:N.optional(N.enum(["json","pretty","raw"],{description:"Default log format for the application.",lowercase:!0}))});class eG extends kt{}class Fy{}class qy{dateTimeProvider=Rt(Lo);log=po();store={};async get(e,n){return this.store[e]?.[n]?.data}async set(e,n,r,s){return this.store[e]==null&&(this.store[e]={}),this.store[e][n]??={},this.store[e][n].data=r,this.log.debug("Setting cache for name",{name:e,key:n,ttl:s}),this.store[e][n].timeout&&(this.dateTimeProvider.clearTimeout(this.store[e][n].timeout),this.store[e][n].timeout=void 0),s&&(this.store[e][n].timeout=this.dateTimeProvider.createTimeout(()=>this.del(e,n),s)),this.store[e][n].data}async del(e,...n){if(n.length===0){if(this.log.debug("Deleting all cache for name",{name:e}),this.store[e])for(const r of Object.keys(this.store[e])){const s=this.store[e][r]?.timeout;s&&this.dateTimeProvider.clearTimeout(s)}delete this.store[e];return}this.log.debug("Deleting cache for name",{name:e,keys:n});for(const r of n){if(this.store[e]==null)break;const s=this.store[e][r]?.timeout;s&&this.dateTimeProvider.clearTimeout(s),delete this.store[e][r]}Object.keys(this.store[e]??{}).length===0&&delete this.store[e]}async has(e,n){return this.store[e]?.[n]?.data!=null}async keys(e,n){const r=this.store[e]??{},s=Object.keys(r);return n?s.filter(l=>l.startsWith(n)):s}async clear(){this.log.debug("Clearing all cache");for(const e of Object.keys(this.store))for(const n of Object.keys(this.store[e])){const r=this.store[e][n]?.timeout;r&&this.dateTimeProvider.clearTimeout(r)}this.store={}}}const vv=(t={})=>{const e=ls(fM,t);return Object.setPrototypeOf((...r)=>e.run(...r),e)},nG=N.object({CACHE_ENABLED:N.boolean({default:!0}),CACHE_DEFAULT_TTL:N.number({default:300,description:"The default time to live for cache entries. In seconds."})});class fM extends fi{env=hv(nG);dateTimeProvider=Rt(Lo);provider=this.$provider();encoder=new TextEncoder;decoder=new TextDecoder;codes={BINARY:1,JSON:2,STRING:3};get container(){return this.options.name??`${this.config.service.name}:${this.config.propertyKey}`}async run(...e){const n=this.options.handler;if(!n)throw new Error("Cache handler is not defined.");const r=this.key(...e),s=await this.get(r);if(s)return s;const l=await n(...e);return await this.set(r,l),l}key(...e){return this.options.key?this.options.key(...e):JSON.stringify(e)}async invalidate(...e){const n=[];for(const r of e)if(r.endsWith("*")){const s=await this.provider.keys(this.container,r.slice(0,-1));n.push(...s)}else n.push(r);await this.provider.del(this.container,...n)}async set(e,n,r){const s=this.dateTimeProvider.duration(r??this.options.ttl??[this.env.CACHE_DEFAULT_TTL,"seconds"]).as("milliseconds");await this.provider.set(this.container,e,this.serialize(n),s>0?s:void 0)}async get(e){if(!this.alepha.isStarted()||this.options.disabled||!this.env.CACHE_ENABLED)return;const n=await this.provider.get(this.container,e);if(n)return await this.deserialize(n)}serialize(e){return e instanceof Uint8Array?new Uint8Array([this.codes.BINARY,...e]):typeof e=="string"?new Uint8Array([this.codes.STRING,...this.encoder.encode(e)]):new Uint8Array([this.codes.JSON,...this.encoder.encode(JSON.stringify(e))])}async deserialize(e){const n=e[0],r=e.slice(1);if(n===this.codes.BINARY)return r;if(n===this.codes.JSON)return JSON.parse(this.decoder.decode(r));if(n===this.codes.STRING)return this.decoder.decode(r);throw new eG(`Unknown serialization type: ${n}`)}$provider(){return this.options.provider?this.options.provider==="memory"?this.alepha.inject(qy):this.alepha.inject(this.options.provider):this.alepha.inject(Fy)}}vv[Rn]=fM;gr({name:"alepha.cache",primitives:[vv],services:[Fy,qy],register:t=>t.with({optional:!0,provide:Fy,use:qy})});const rG=(t,e)=>!!t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&"status"in t&&typeof t.status=="number"?e?t.status===e:!0:!1;class Gy extends kt{name="HttpError";static is=rG;static toJSON(e){const n={error:e.error,status:e.status,message:e.message};return e.details&&(n.details=e.details),e.requestId&&(n.requestId=e.requestId),e.reason&&(n.cause=e.reason),n}error;status;requestId;details;reason;constructor(e,n){super(e.message,{cause:n}),this.status=e.status??500,this.details=e.details,this.requestId=e.requestId,typeof e.cause=="object"?this.reason={name:e.cause.name,message:e.cause.message}:n instanceof Error&&(this.reason={name:n.name,message:n.message}),this.constructor.name==="HttpError"?this.error=e.error??oG[this.status]??"HttpError":this.error=this.constructor.name}}const oG={400:"BadRequestError",401:"UnauthorizedError",403:"ForbiddenError",404:"NotFoundError",405:"MethodNotAllowedError",409:"ConflictError",410:"GoneError",413:"PayloadTooLargeError",415:"UnsupportedMediaTypeError",429:"TooManyRequestsError",500:"InternalServerError",501:"NotImplementedError",502:"BadGatewayError",503:"ServiceUnavailableError",504:"GatewayTimeoutError"},iG=t=>{if(t.requestBodyType==="multipart/form-data")return!0;if(t.schema?.body&&"properties"in t.schema.body){const e=t.schema.body.properties;for(const n in e)if(e[n].format==="binary")return!0}return!1},sG=N.object({error:N.text({description:"HTTP error name"}),status:N.integer({description:"HTTP status code"}),message:N.text({description:"Short text which describe the error",size:"rich"}),details:N.optional(N.text({description:"Detailed description of the error",size:"rich"})),requestId:N.optional(N.text()),cause:N.optional(N.object({name:N.text(),message:N.text({description:"Cause Error message",size:"rich"})}))},{title:"HttpError",description:"Generic response after a failed operation"});class dM{log=po();alepha=Rt(Re);cache=vv();pendingRequests={};async fetchAction(e){const n=e.action,r=e.options??{},s=e.config??{},l=e.host??"",c={...r.request},f=n.method,m={},h=this.url(l,n,s);return await this.alepha.events.emit("client:onRequest",{route:n,config:s,options:r,headers:m,request:c}),c.method??=f,await this.body(c,m,n,s),c.headers={...s.headers,...Object.fromEntries(new Headers(c.headers).entries()),...m},await this.fetch(h,{...c,schema:n.schema,...r})}async fetch(e,n={}){const r={cache:n.localCache,schema:n.schema?.response,key:n.key};n.method??="GET",this.log.trace("Request",{url:e,method:n.method,body:n.body,headers:n.headers,options:r});const s=await this.cache.get(e);if(s&&n.method==="GET")if(s.etag)n.headers=new Headers(n.headers),n.headers.has("if-none-match")||n.headers.set("if-none-match",s.etag);else return{data:s.data,status:200,statusText:"OK",headers:new Headers};await this.alepha.events.emit("client:beforeFetch",{url:e,options:r,request:n});const l=r.key??JSON.stringify({url:e,method:n.method,body:n.body}),c=this.pendingRequests[l];return c?(this.log.info("Request already pending",l),c):(this.pendingRequests[l]=fetch(e,n).then(async f=>{this.log.debug("Response",{url:e,status:f.status});const m={data:await this.responseData(f,r),status:f.status,statusText:f.statusText,headers:f.headers,raw:f};if(n.method==="GET"){if(r.cache)await this.cache.set(e,{data:m.data},typeof r.cache=="boolean"?void 0:r.cache);else if(!this.alepha.isBrowser()){const h=f.headers.get("etag")??void 0;h&&await this.cache.set(e,{data:m.data,etag:h})}}return m}).finally(()=>{delete this.pendingRequests[l]}),this.pendingRequests[l])}url(e,n,r){let s=e;return n.prefix&&(s+=n.prefix),s+=n.path,s=this.pathVariables(s,n,r),s=this.queryParams(s,n,r),s}async body(e,n,r,s={}){if(typeof e.headers=="object"&&"content-type"in e.headers&&e.headers["content-type"]==="multipart/form-data"||iG(r)){typeof e.headers=="object"&&"content-type"in e.headers&&delete e.headers["content-type"];const c=new FormData;for(const[f,m]of Object.entries(s.body??{})){if(typeof m=="string"){c.append(f,m);continue}if(m instanceof Blob){c.append(f,m);continue}oq(m)&&c.append(f,new File([await m.arrayBuffer()],m.name,{type:m.type}))}e.body=c;return}!e.body&&r.schema?.body&&(n["content-type"]="application/json",e.body=this.alepha.codec.encode(r.schema?.body,s.body,{as:"string"}))}async responseData(e,n){if(e.status===304){let r=e.url;typeof window<"u"&&(r=r.replace(window.location.origin,""));const s=await this.cache.get(r);return s?s.data:""}if(e.status!==204){if(this.isMaybeFile(e))return this.createFileLike(e);if(e.headers.get("Content-Type")?.startsWith("text/"))return await e.text();if(e.headers.get("Content-Type")==="application/json"){const r=await e.json();if(e.status>=400){const s=this.alepha.codec.decode(sG,r),l=new Gy(s);throw await this.alepha.events.emit("client:onError",{error:l}),l}return n.schema?this.alepha.codec.decode(n.schema,r):r}if(e.status>=400){const r=new Gy({status:e.status,message:`An error occurred while fetching the resource. (${e.statusText})`});throw await this.alepha.events.emit("client:onError",{error:r}),r}return e}}isMaybeFile(e){const n=e.headers.get("Content-Type");return n?e.headers.get("Content-Disposition")?.includes("attachment")?!0:n.startsWith("application/octet-stream")||n.startsWith("application/pdf")||n.startsWith("application/zip")||n.startsWith("image/")||n.startsWith("video/")||n.startsWith("audio/"):!1}createFileLike(e,n=""){const r=(e.headers.get("Content-Disposition")??"").match(/filename="(.+)"/);return{name:r?.[1]?r[1]:n,type:e.headers.get("Content-Type")??"application/octet-stream",size:Number(e.headers.get("Content-Length")??0),lastModified:Date.now(),stream:()=>{throw new Error("Not implemented")},arrayBuffer:async()=>await e.arrayBuffer(),text:async()=>await e.text()}}pathVariables(e,n,r={}){if(typeof r.params=="object"){const s=n.schema?.params?this.alepha.codec.decode(n.schema.params,r.params):r.params;for(const l of Object.keys(s))e=e.replace(`:${l}`,s[l]),e=e.replace(`{${l}}`,s[l])}return e}queryParams(e,n,r={}){if(typeof r.query=="object"){const s=n.schema?.query?this.alepha.codec.decode(n.schema.query,r.query??{}):r.query;for(const l of Object.keys(s))s[l]===void 0&&delete s[l],typeof s[l]=="object"&&(s[l]=JSON.stringify(s[l]));return`${e}?${new URLSearchParams(s).toString()}`}return e}}class aG extends Gy{name="UnauthorizedError";constructor(e="Not allowed to access this resource",n){super({message:e,status:401},n)}}class lG{headers={};status;body;redirect(e,n=301){this.status=n,this.headers.location=e}setStatus(e){return this.status=e,this}setHeader(e,n){return this.headers[e.toLowerCase()]=n,this}setBody(e){return this.body=e,this}}N.object({ok:N.boolean({description:"True when operation succeed"}),id:N.optional(N.union([N.text(),N.integer()])),count:N.optional(N.number({description:"Number of resources affected"}))},{title:"Ok",description:"Generic response after a successful operation on a resource"});const mM=gr({name:"alepha.server",primitives:[],services:[dM]});class Uc{static path={apiLinks:"/api/_links"};log=po();alepha=Rt(Re);httpClient=Rt(dM);serverLinks=[];getServerLinks(){return this.alepha.isBrowser()?(this.log.warn("Getting server links in the browser is not supported. Use `fetchLinks` to get links from the server."),[]):this.serverLinks}registerLink(e){if(this.alepha.isBrowser()){this.log.warn("Registering links in the browser is not supported. Use `fetchLinks` to get links from the server.");return}if(!e.handler&&!e.host)throw new kt("Can't create link - 'handler' or 'host' is required");this.serverLinks.some(n=>n.name===e.name)&&(this.serverLinks=this.serverLinks.filter(n=>n.name!==e.name)),e.rawSchema||(e.rawSchema={},e.schema?.body&&(e.rawSchema.body=JSON.stringify(e.schema.body)),e.schema?.response&&(e.rawSchema.response=JSON.stringify(e.schema.response))),this.serverLinks.push(e)}get links(){const e=this.alepha.store.get("alepha.server.request.apiLinks")?.links;if(e){if(this.alepha.isBrowser())return e;const n=[];for(const r of e){const s=this.serverLinks.find(l=>l.name===r.name);s&&n.push(s)}return n}return this.serverLinks??[]}async fetchLinks(){const{data:e}=await this.httpClient.fetch(`${Uc.path.apiLinks}`,{method:"GET",schema:{response:cM}});return this.alepha.store.set("alepha.server.request.apiLinks",e),e.links}client(e={}){return new Proxy({},{get:(n,r)=>{if(typeof r=="string")return this.createVirtualAction(r,e)}})}can(e){return this.links.some(n=>n.name===e)}async follow(e,n={},r={}){this.log.trace("Following link",{name:e,config:n,options:r});const s=await this.getLinkByName(e,r);return s.handler&&!r.request?(this.log.trace("Local link found",{name:e}),s.handler({method:s.method,url:new URL(`http://localhost${s.path}`),query:n.query??{},body:n.body??{},params:n.params??{},headers:n.headers??{},metadata:{},reply:new lG},r)):(this.log.trace("Remote link found",{name:e,host:s.host,service:s.service}),this.followRemote(s,n,r).then(l=>l.data))}createVirtualAction(e,n={}){const r=async(s={},l={})=>this.follow(e,s,{...n,...l});return Object.defineProperty(r,"name",{value:e,writable:!1}),r.run=async(s={},l={})=>this.follow(e,s,{...n,...l}),r.fetch=async(s={},l={})=>{const c=await this.getLinkByName(e,n);return this.followRemote(c,s,l)},r.can=()=>this.can(e),r.schema=()=>{const s=this.links.find(l=>l.name===e);if(!s)throw new kt(`Link ${e} not found.`);return s.rawSchema&&!s.schema&&(s.schema={},s.schema.body=s.rawSchema?.body?qd(JSON.parse(s.rawSchema.body)):void 0,s.schema.response=s.rawSchema?.response?qd(JSON.parse(s.rawSchema.response)):void 0),s.schema},r}async followRemote(e,n={},r={}){r.request??={},r.request.headers=new Headers(r.request.headers);const s=this.alepha.context.get("request");s?.headers.authorization&&r.request.headers.set("authorization",s.headers.authorization);const l=this.alepha.context.get("context");typeof l=="string"&&r.request.headers.set("x-request-id",l);const c={...e,schema:{body:N.any(),response:N.any()}};return!e.host&&e.service&&(c.path=`/${e.service}${c.path}`),c.path=`${c.prefix??"/api"}${c.path}`,c.prefix=void 0,this.httpClient.fetchAction({host:e.host,config:n,options:r,action:c})}async getLinkByName(e,n={}){this.alepha.isBrowser()&&!this.alepha.store.get("alepha.server.request.apiLinks")&&await this.fetchLinks();const r=this.links.find(s=>s.name===e&&(!n.group||s.group===n.group)&&(!n.service||n.service===s.service));if(!r){const s=new aG(`Action ${e} not found.`);throw await this.alepha.events.emit("client:onError",{route:r,error:s}),s}return n.hostname?{...r,host:n.hostname}:r}}const pM=t=>Rt(Uc).client(t);pM[Rn]="$client";const hM=t=>ls(gM,t);class gM extends fi{get name(){return this.options.name??this.config.propertyKey}}hM[Rn]=gM;const uG=gr({name:"alepha.server.links",atoms:[Jq],primitives:[hM,pM],services:[Uc]}),yM=(t,e)=>{const n=Xm();C.useEffect(()=>{if(!n.isBrowser())return;const r=[];for(const[s,l]of Object.entries(t))r.push(n.events.on(s,l));return()=>{for(const s of r)s()}},e)};function Sv(t,e){const n=Xm();C.useMemo(()=>{e!=null&&n.store.get(t)==null&&n.store.set(t,e)},[e]);const[r,s]=C.useState(n.store.get(t));return C.useEffect(()=>{if(!n.isBrowser())return;const l=t instanceof il?t.key:t;return n.events.on("state:mutate",c=>{c.key===l&&s(c.value)})},[]),[r,l=>{n.store.set(t,l)}]}const bM=gr({name:"alepha.react.core"});class cG extends Km{name="ValidationError";constructor(e){super({message:e.message,instancePath:e.path,schemaPath:"",keyword:"not",params:{}})}}const fG=gr({name:"alepha.react.form"});class dG{expand(e){const n=[],r=[];return e.description||e.image||e.url||e.siteName||e.locale||e.type||e.og||e.twitter?(e.description&&n.push({name:"description",content:e.description}),e.url&&r.push({rel:"canonical",href:e.url}),this.expandOpenGraph(e,n),this.expandTwitter(e,n),{meta:n,link:r}):{meta:n,link:r}}expandOpenGraph(e,n){const r=e.og?.title??e.title,s=e.og?.description??e.description,l=e.og?.image??e.image;(e.type||r)&&n.push({property:"og:type",content:e.type??"website"}),e.url&&n.push({property:"og:url",content:e.url}),r&&n.push({property:"og:title",content:r}),s&&n.push({property:"og:description",content:s}),l&&(n.push({property:"og:image",content:l}),e.imageWidth&&n.push({property:"og:image:width",content:String(e.imageWidth)}),e.imageHeight&&n.push({property:"og:image:height",content:String(e.imageHeight)}),e.imageAlt&&n.push({property:"og:image:alt",content:e.imageAlt})),e.siteName&&n.push({property:"og:site_name",content:e.siteName}),e.locale&&n.push({property:"og:locale",content:e.locale})}expandTwitter(e,n){const r=e.twitter?.title??e.title,s=e.twitter?.description??e.description,l=e.twitter?.image??e.image;(e.twitter?.card||r||l)&&n.push({name:"twitter:card",content:e.twitter?.card??(l?"summary_large_image":"summary")}),e.url&&n.push({name:"twitter:url",content:e.url}),r&&n.push({name:"twitter:title",content:r}),s&&n.push({name:"twitter:description",content:s}),l&&(n.push({name:"twitter:image",content:l}),e.imageAlt&&n.push({name:"twitter:image:alt",content:e.imageAlt})),e.twitter?.site&&n.push({name:"twitter:site",content:e.twitter.site}),e.twitter?.creator&&n.push({name:"twitter:creator",content:e.twitter.creator})}}class vM{log=po();seoExpander=Rt(dG);global=[];warnedAboutHtmlAttributes=!1;resolveGlobalHead(){const e={};for(const n of this.global??[]){const r=typeof n=="function"?n():n;r.htmlAttributes&&(e.htmlAttributes={...e.htmlAttributes,...r.htmlAttributes})}return e}fillHead(e){e.head={...e.head};for(const n of this.global??[]){const r=typeof n=="function"?n():n;this.mergeHead(e,r)}for(const n of e.layers)n.route?.head&&!n.error&&this.fillHeadByPage(n.route,e,n.props??{})}mergeHead(e,n){const{meta:r,link:s}=this.seoExpander.expand(n);e.head={...e.head,...n,meta:[...e.head.meta??[],...r,...n.meta??[]],link:[...e.head.link??[],...s,...n.link??[]],script:[...e.head.script??[],...n.script??[]]}}fillHeadByPage(e,n,r){if(!e.head)return;n.head??={};const s=typeof e.head=="function"?e.head(r,n.head):e.head,{meta:l,link:c}=this.seoExpander.expand(s);n.head.meta=[...n.head.meta??[],...l],n.head.link=[...n.head.link??[],...c],s.title&&(n.head??={},n.head.titleSeparator?n.head.title=`${s.title}${n.head.titleSeparator}${n.head.title}`:n.head.title=s.title,n.head.titleSeparator=s.titleSeparator),s.htmlAttributes&&!this.warnedAboutHtmlAttributes&&(this.warnedAboutHtmlAttributes=!0,this.log.warn("Page-level htmlAttributes are ignored. Use global $head() for htmlAttributes instead, as they are sent before page loaders run for early streaming optimization.")),s.bodyAttributes&&(n.head.bodyAttributes={...n.head.bodyAttributes,...s.bodyAttributes}),s.meta&&(n.head.meta=[...n.head.meta??[],...s.meta??[]]),s.link&&(n.head.link=[...n.head.link??[],...s.link??[]]),s.script&&(n.head.script=[...n.head.script??[],...s.script??[]])}}const xv=t=>ls(SM,t);class SM extends fi{provider=Rt(vM);onInit(){this.provider.global=[...this.provider.global??[],this.options]}}xv[Rn]=SM;class Ev{alepha=Rt(Re);headProvider=Rt(vM);get document(){return window.document}fillAndRenderHead(e){this.alepha.isBrowser()&&(this.headProvider.fillHead(e),e.head&&this.renderHead(this.document,e.head))}getHead(e){return{get title(){return e.title},get htmlAttributes(){const n={};for(const r of e.documentElement.attributes)n[r.name]=r.value;return n},get bodyAttributes(){const n={};for(const r of e.body.attributes)n[r.name]=r.value;return n},get meta(){const n=[];for(const r of e.head.querySelectorAll("meta[name]")){const s=r.getAttribute("name"),l=r.getAttribute("content");s&&l&&n.push({name:s,content:l})}for(const r of e.head.querySelectorAll("meta[property]")){const s=r.getAttribute("property"),l=r.getAttribute("content");s&&l&&n.push({property:s,content:l})}return n}}}renderHead(e,n){if(n.title&&(e.title=n.title),n.bodyAttributes)for(const[r,s]of Object.entries(n.bodyAttributes))s?e.body.setAttribute(r,s):e.body.removeAttribute(r);if(n.htmlAttributes)for(const[r,s]of Object.entries(n.htmlAttributes))s?e.documentElement.setAttribute(r,s):e.documentElement.removeAttribute(r);if(n.meta)for(const r of n.meta)this.renderMetaTag(e,r);if(n.link)for(const r of n.link){const{rel:s,href:l}=r;let c=e.querySelector(`link[rel="${s}"][href="${l}"]`);c||(c=e.createElement("link"),c.setAttribute("rel",s),c.setAttribute("href",l),r.type&&c.setAttribute("type",r.type),r.as&&c.setAttribute("as",r.as),r.crossorigin!=null&&c.setAttribute("crossorigin",""),e.head.appendChild(c))}if(n.script)for(const r of n.script)this.renderScriptTag(e,r)}renderScriptTag(e,n){const r=e.createElement("script");if(typeof n=="string"){r.textContent=n,e.head.appendChild(r);return}const{content:s,...l}=n;if(!(l.src&&e.querySelector(`script[src="${l.src}"]`))){for(const[c,f]of Object.entries(l))f===!0?r.setAttribute(c,""):f!==void 0&&f!==!1&&r.setAttribute(c,String(f));s&&(r.textContent=s),e.head.appendChild(r)}}renderMetaTag(e,n){const{content:r}=n;if(n.property){const s=e.querySelector(`meta[property="${n.property}"]`);if(s)s.setAttribute("content",r);else{const l=e.createElement("meta");l.setAttribute("property",n.property),l.setAttribute("content",r),e.head.appendChild(l)}return}if(n.name){const s=e.querySelector(`meta[name="${n.name}"]`);if(s)s.setAttribute("content",r);else{const l=e.createElement("meta");l.setAttribute("name",n.name),l.setAttribute("content",r),e.head.appendChild(l)}}}}const mG=gr({name:"alepha.react.head",primitives:[xv],services:[bM,Ev]});class pG{parseRequestCookies(e){const n={},r=e.split(";");for(const s of r){const[l,c]=s.split("=");!l||!c||(n[l.trim()]=c.trim())}return n}serializeResponseCookies(e,n){const r=[];for(const[s,l]of Object.entries(e)){if(l==null){r.push(`${s}=; Path=/; Max-Age=0`);continue}l.value&&r.push(this.cookieToString(s,l,n))}return r}cookieToString(e,n,r){const s=[];return s.push(`${e}=${n.value}`),n.path&&s.push(`Path=${n.path}`),n.maxAge&&s.push(`Max-Age=${n.maxAge}`),n.secure!==!1&&r&&s.push("Secure"),n.httpOnly&&s.push("HttpOnly"),n.sameSite&&s.push(`SameSite=${n.sameSite}`),n.domain&&s.push(`Domain=${n.domain}`),s.join("; ")}}const wv=t=>ls(xM,t);class xM extends fi{cookieParser=Rt(pG);alepha=Rt(Re);dateTimeProvider=Rt(Lo);cookie;get name(){return this.options.name??`${this.config.propertyKey}`}set(e){const n=JSON.stringify(this.alepha.codec.decode(this.options.schema,e)),r=this.options;if(r.compress)throw new kt("Compression is not supported in browser cookies.");if(r.encrypt)throw new kt("Encryption is not supported in browser cookies.");if(r.sign)throw new kt("Signing is not supported in browser cookies.");const s={value:encodeURIComponent(n),path:r.path??"/",sameSite:r.sameSite??"lax",secure:!1,httpOnly:!1,domain:r.domain};r.ttl&&(s.maxAge=this.dateTimeProvider.duration(r.ttl).as("seconds")),document.cookie=this.cookieParser.cookieToString(this.name,s)}get(e){const n=this.cookieParser.parseRequestCookies(document.cookie)[this.name];if(!n)return;const r=decodeURIComponent(n);if(this.options.compress)throw new kt("Compression is not supported in browser cookies.");if(this.options.encrypt)throw new kt("Encryption is not supported in browser cookies.");if(this.options.sign)throw new kt("Signing is not supported in browser cookies.");return this.alepha.codec.decode(this.options.schema,JSON.parse(r))}del(){const e=this.options,n={value:"",path:e.path??"/",sameSite:e.sameSite??"lax",secure:!1,httpOnly:!1,domain:e.domain,maxAge:0};document.cookie=this.cookieParser.cookieToString(this.name,n)}}wv[Rn]=xM;gr({name:"alepha.server.cookies",primitives:[],services:[mM]});class EM{log=po();alepha=Rt(Re);dateTimeProvider=Rt(Lo);cookie=wv({name:"lang",schema:N.text(),ttl:[1,"year"]});registry=[];options={fallbackLang:"en"};dateFormat=new Intl.DateTimeFormat(this.lang);numberFormat=new Intl.NumberFormat(this.lang);get languages(){const e=new Set;for(const n of this.registry)e.add(n.lang);return e.add(this.options.fallbackLang),Array.from(e)}constructor(){this.refreshLocale()}onRender=ar({on:"server:onRequest",priority:"last",handler:async({request:e})=>{this.alepha.store.set("alepha.react.i18n.lang",this.cookie.get(e))}});onStart=ar({on:"start",handler:async()=>{if(this.alepha.isBrowser()){const e=this.cookie.get();e&&this.alepha.store.set("alepha.react.i18n.lang",e);for(const n of this.registry)(n.lang===this.lang||n.lang===this.options.fallbackLang)&&(this.log.trace("Loading language",{lang:n.lang,name:n.name,target:n.target}),n.translations=await n.loader());return}for(const e of this.registry)e.translations=await e.loader()}});refreshLocale(){this.numberFormat=new Intl.NumberFormat(this.lang),this.dateFormat=new Intl.DateTimeFormat(this.lang),this.dateTimeProvider.setLocale(this.lang),dl.setLocale(this.lang)}setLang=async e=>{if(this.alepha.isBrowser()){for(const n of this.registry)if(e===n.lang){if(Object.keys(n.translations).length>0)continue;n.translations=await n.loader()}this.cookie.set(e)}this.alepha.store.set("alepha.react.i18n.lang",e),this.refreshLocale()};mutate=ar({on:"state:mutate",handler:async({key:e,value:n})=>{if(e==="alepha.react.i18n.lang"&&this.alepha.isBrowser()){let r=!1;for(const s of this.registry)if(n===s.lang){if(Object.keys(s.translations).length>0)continue;s.translations=await s.loader(),r=!0}this.refreshLocale(),r&&this.alepha.store.set("alepha.react.i18n.lang",n)}}});get lang(){return this.alepha.store.get("alepha.react.i18n.lang")||this.options.fallbackLang}translate=(e,n=[])=>{for(const r of this.registry)if(r.lang===this.lang&&r.translations[e])return this.render(r.translations[e],n);for(const r of this.registry)if(r.lang===this.options.fallbackLang&&r.translations[e])return this.render(r.translations[e],n);return e};l=(e,n={})=>{if(typeof e=="number"&&!n.date)return new Intl.NumberFormat(this.lang,n.number).format(e);if(e instanceof Date||this.dateTimeProvider.isDateTime(e)||typeof e=="string"&&n.date||typeof e=="number"&&n.date){let r=this.dateTimeProvider.of(e);return n.timezone&&(r=r.tz(n.timezone)),typeof n.date=="string"?n.date==="fromNow"?r.locale(this.lang).fromNow():r.locale(this.lang).format(n.date):n.date?new Intl.DateTimeFormat(this.lang,n.timezone?{...n.date,timeZone:n.timezone}:n.date).format(r.toDate()):n.timezone?new Intl.DateTimeFormat(this.lang,{timeZone:n.timezone}).format(r.toDate()):new Intl.DateTimeFormat(this.lang).format(r.toDate())}return e instanceof Km?dl.translateError(e,this.lang):e};tr=(e,n={})=>{const r=this.translate(e,n.args||[]);return r===e&&n.default?n.default:r};render(e,n){let r=e;for(let s=0;s<n.length;s++)r=r.replace(`$${s+1}`,n[s]);return r}}const wM=t=>ls(TM,t);class TM extends fi{provider=Rt(EM);onInit(){this.provider.registry.push({target:this.config.service.name,name:this.options.name??this.config.propertyKey,lang:this.options.lang??this.config.propertyKey,loader:async()=>(await this.options.lazy()).default,translations:{}})}}wM[Rn]=TM;const hG=gr({name:"alepha.react.i18n",primitives:[wM],services:[EM]}),Qu=zc({name:"alepha.ui.theme",schema:N.object({index:N.integer()}),default:{index:0}}),CM={name:"Default",description:"Default Alepha Theme"},AM={name:"Midnight",description:"Clean, developer-focused design",primaryColor:"pink",primaryShade:{light:7,dark:8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',fontFamilyMonospace:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',headings:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',fontWeight:"600",textWrap:"wrap",sizes:{h1:{fontSize:"2rem",lineHeight:"1.25"},h2:{fontSize:"1.5rem",lineHeight:"1.3"},h3:{fontSize:"1.25rem",lineHeight:"1.4"},h4:{fontSize:"1rem",lineHeight:"1.5"},h5:{fontSize:"0.875rem",lineHeight:"1.5"},h6:{fontSize:"0.75rem",lineHeight:"1.5"}}},radius:{xs:"3px",sm:"6px",md:"6px",lg:"8px",xl:"12px"},defaultRadius:"sm",colors:{dark:["#d0d7de","#8b949e","#6e7681","#484f58","#30363d","#21262d","#161b22","#151b23","#0d1117","#010409"],gray:["#f6f8fa","#eaeef2","#d0d7de","#afb8c1","#8c959f","#6e7781","#57606a","#424a53","#32383f","#24292f"],blue:["#ddf4ff","#b6e3ff","#80ccff","#54aeff","#218bff","#0969da","#0550ae","#033d8b","#0a3069","#002155"],green:["#dafbe1","#aceebb","#6fdd8b","#4ac26b","#2da44e","#1a7f37","#116329","#044f1e","#003d16","#002d11"],red:["#ffebe9","#ffcecb","#ffaba8","#ff8182","#fa4549","#cf222e","#a40e26","#82071e","#660018","#4c0014"]}},Yy=zc({name:"alepha.ui.themeList",schema:N.array(N.json()),default:[CM,AM]});class Vy{alepha=Rt(Re);cookie=wv({name:"theme",schema:Qu.schema,ttl:[1,"year"]});head=xv(()=>{const e=this.getTheme();return!e||!e.name?{}:{htmlAttributes:{"data-theme":e.name}}});setTheme(e){const n=this.alepha.store.get(Yy)[e];if(!n)throw new kt(`Theme with index ${e} not found`);this.cookie.set({index:e}),this.alepha.store.set(Qu,{index:e}),!(typeof document>"u")&&(document.documentElement.removeAttribute("data-theme"),n.name&&document.documentElement.setAttribute("data-theme",n.name))}getTheme(){const e=this.getThemeIndex(),n=this.alepha.store.get(Yy);return n[e]||n[0]||CM}getThemeIndex(){try{return this.cookie.get()?.index??this.alepha.store.get(Qu)?.index??0}catch{return this.alepha.store.get(Qu)?.index??0}}}class $M{fetch(e,n={}){throw new kt("Fetch is not available for this environment.")}render(e,n={}){throw new kt("Render is not available for this environment.")}}const Cn=t=>ls(MM,t);class MM extends fi{reactPageService=Rt($M);onInit(){this.options.static&&(this.options.cache??={store:{provider:"memory",ttl:[1,"week"]}})}get name(){return this.options.name??this.config.propertyKey}async render(e){return this.reactPageService.render(this.name,e)}async fetch(e){return this.reactPageService.fetch(this.options.path||"",e)}match(e){return!1}pathname(e){return this.options.path||""}}Cn[Rn]=MM;class gG{routePathRegex=/^\/[A-Za-z0-9._~!$&%'()*+,;=:@{}?/-]*$/;tree={children:{}};cache=new Map;match(e){if(this.cache.has(e))return this.cache.get(e);const n=this.mapParams(this.createRouteMatch(e));return this.cache.set(e,n),n}test(e){if(!this.routePathRegex.test(e))throw new kt(`Route '${e}' is not valid`)}push(e){const n=e.path.replaceAll("//","/");this.test(n);const r=this.createParts(n);let s=this.tree;for(let l=0;l<r.length;l++){const c=l===r.length-1;let f=r[l].toLowerCase();if(f==="*"&&c){s.wildcard={route:e};break}if(f.includes("*"))throw new kt(`Route '${n}' has an invalid wildcard syntax`);if(f.includes("{")||f.includes("}"))if(f.startsWith("{")&&f.endsWith("}"))f=`:${f.slice(1,-1)}`;else throw new kt(`Route '${n}' has an invalid param syntax`);if(f.startsWith(":")){const m=r[l].slice(1).replaceAll("}","");if(!m)throw new kt(`Route '${n}' has an empty param name`);s.param?s.param.name!==m&&(e.mapParams??={},e.mapParams[s.param.name]=m):s.param={name:m,children:{}},c&&(s.param.route=e),s=s.param;continue}s.children[f]||(s.children[f]={children:{}}),c&&(s.children[f].route=e),s=s.children[f]}}createRouteMatch(e){if(e[0]!=="/")throw new kt(`Path '${e}' must start with "/"`);const n=this.createParts(e);let r=this.tree,s;const l={};for(let c=0;c<n.length;c++){const f=n[c].toLowerCase();if(r.children[f])r.wildcard&&(s=r.wildcard),r=r.children[f];else if(r.param)r.wildcard&&(s=r.wildcard),l[r.param.name]=n[c],r=r.param;else return r.wildcard?(l["*"]=n.slice(c).join("/"),{route:r.wildcard.route,params:l}):{route:s?.route,params:l}}return r?.route?{route:r.route,params:l}:r.wildcard?{route:r.wildcard.route,params:l}:{route:s?.route,params:l}}mapParams(e){if(e.route?.mapParams&&e.params)for(const[n,r]of Object.entries(e.route.mapParams))e.params[n]&&(e.params[r]=e.params[n],delete e.params[n]);return e}createParts(e){let n=e.split("?")[0].replaceAll("//","/");return n.endsWith("/")&&n.length>1&&(n=n.slice(0,-1)),n.split("/").slice(1)}}const RM=t=>E.jsxs("div",{style:{width:"100%",minHeight:"90vh",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',padding:"2rem",...t.style},children:[E.jsx("div",{style:{fontSize:"6rem",fontWeight:200,lineHeight:1},children:"404"}),E.jsx("div",{style:{fontSize:"0.875rem",marginTop:"1rem",opacity:.6},children:"Page not found"})]}),Zm=typeof window<"u",OM=({error:t,alepha:e})=>{const[n,r]=C.useState(!1),[s,l]=C.useState(!1),[c,f]=C.useState(!1),m=C.useRef(null),h=e.isProduction();if(C.useEffect(()=>{const $=setTimeout(()=>f(!0),10);return()=>clearTimeout($)},[]),C.useEffect(()=>{if(!Zm)return;const $=_=>{_.key==="c"&&!_.metaKey&&!_.ctrlKey&&NM(t.stack||t.message)};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[t]),h)return E.jsx(xG,{});const g=yG(t.stack),b=g.filter($=>!$.isNodeModules),x=g.filter($=>$.isNodeModules),S=n?b:b.slice(0,5),T=b.length-5,w=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return E.jsxs("div",{ref:m,style:{...At.overlay,opacity:c?1:0},role:"alertdialog","aria-modal":"true","aria-labelledby":"error-viewer-title",children:[E.jsx("div",{style:At.scanlines,"aria-hidden":"true"}),E.jsxs("div",{style:{...At.container,transform:c?"translateY(0)":"translateY(-20px)",opacity:c?1:0},children:[E.jsxs("div",{style:At.terminalBar,children:[E.jsxs("div",{style:At.terminalDots,children:[E.jsx("span",{style:{...At.dot,backgroundColor:"#ff5f57"}}),E.jsx("span",{style:{...At.dot,backgroundColor:"#febc2e"}}),E.jsx("span",{style:{...At.dot,backgroundColor:"#28c840"}})]}),E.jsx("div",{style:At.terminalTitle,children:E.jsxs("span",{style:At.terminalTitleText,children:["error — ",w]})}),E.jsxs("div",{style:At.terminalActions,children:[E.jsx("kbd",{style:At.kbd,children:"C"}),E.jsx("span",{style:At.kbdLabel,children:"copy"})]})]}),E.jsx(vG,{error:t}),E.jsxs("div",{style:At.stackSection,children:[E.jsxs("div",{style:At.stackHeader,children:[E.jsx("span",{style:At.stackHeaderText,children:"STACK TRACE"}),E.jsxs("span",{style:At.stackCount,children:[b.length," frames",x.length>0&&` · ${x.length} in node_modules`]})]}),E.jsxs("div",{style:At.frameList,children:[S.map(($,_)=>E.jsx(dT,{frame:$,index:_},`${$.raw}-${_}`)),T>0&&!n&&E.jsx(mT,{onClick:()=>r(!0),label:`Show ${T} more frames`}),n&&T>0&&E.jsx(mT,{onClick:()=>r(!1),label:"Collapse"}),x.length>0&&E.jsxs(E.Fragment,{children:[E.jsxs("button",{type:"button",onClick:()=>l(!s),style:At.nodeModulesToggle,children:[E.jsx("span",{style:At.nodeModulesIcon,children:s?"▼":"▶"}),E.jsx("span",{style:At.nodeModulesLabel,children:"node_modules"}),E.jsx("span",{style:At.nodeModulesCount,children:x.length})]}),s&&E.jsx("div",{style:At.nodeModulesFrames,children:x.map(($,_)=>E.jsx(dT,{frame:$,index:b.length+_,dimmed:!0},`nm-${$.raw}-${_}`))})]})]})]}),E.jsx("div",{style:At.footer,children:E.jsxs("span",{style:At.footerText,children:["Press ",E.jsx("kbd",{style:At.kbdInline,children:"C"})," to copy stack trace"]})})]})]})};function yG(t){if(!t)return[];const e=t.split(`
|
|
18
|
-
`).slice(1),n=[];for(const r of e){const s=r.trim();if(!s.startsWith("at "))continue;const l=bG(s);l&&n.push(l)}return n}function bG(t){const e=t.includes("node_modules")||t.includes("node:"),n=t.match(/^at\s+(.+?)\s+\((.+):(\d+):(\d+)\)$/);if(n)return{fn:n[1],file:n[2],line:n[3],col:n[4],raw:t,isNodeModules:e};const r=t.match(/^at\s+(.+):(\d+):(\d+)$/);return r?{fn:"<anonymous>",file:r[1],line:r[2],col:r[3],raw:t,isNodeModules:e}:{fn:"",file:t.replace(/^at\s+/,""),line:"",col:"",raw:t,isNodeModules:e}}function NM(t){return!Zm||!navigator.clipboard?Promise.resolve(!1):navigator.clipboard.writeText(t).then(()=>!0).catch(()=>!1)}function vG({error:t}){const[e,n]=C.useState(!1),[r,s]=C.useState(!1);C.useEffect(()=>{if(!e)return;const c=setTimeout(()=>n(!1),2e3);return()=>clearTimeout(c)},[e]);const l=async()=>{await NM(t.stack||t.message)&&n(!0)};return E.jsxs("div",{style:At.header,children:[E.jsxs("div",{style:At.headerRow,children:[E.jsxs("div",{style:At.errorIndicator,children:[E.jsx("div",{style:At.errorGlow}),E.jsx("div",{style:At.errorBadge,children:t.name})]}),E.jsx("button",{type:"button",onClick:l,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{...At.copyBtn,...r?At.copyBtnHover:{}},children:e?"✓ Copied":"Copy"})]}),E.jsx("h1",{id:"error-viewer-title",style:At.message,children:t.message})]})}function dT({frame:t,index:e,dimmed:n=!1}){const[r,s]=C.useState(!1),l=e===0&&!n,c=t.file.split("/").pop()||t.file,f=t.file.substring(0,t.file.length-c.length),m=t.file&&t.line?`vscode://file${t.file}:${t.line}:${t.col||1}`:null,h=E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{...At.frameIndex,color:l?"#ff6b6b":n?"#555":"#666"},children:String(e+1).padStart(2,"0")}),E.jsxs("div",{style:At.frameContent,children:[t.fn&&E.jsx("div",{style:{...At.fnName,color:n?"#888":"#f0f0f0"},children:SG(t.fn)}),E.jsxs("div",{style:At.filePath,children:[E.jsx("span",{style:{...At.dirPath,opacity:n?.6:.8},children:f}),E.jsx("span",{style:{...At.fileName,color:n?"#5a9aba":"#7cc4eb"},children:c}),t.line&&E.jsxs("span",{style:{...At.lineCol,color:n?"#9a8a40":"#e5b83a"},children:[":",t.line,t.col&&`:${t.col}`]})]})]})]}),g={...At.frame,...l?At.frameFirst:{},backgroundColor:r?"rgba(255,255,255,0.03)":"transparent"};return m&&Zm?E.jsx("a",{href:m,style:{...g,textDecoration:"none"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:h}):E.jsx("div",{style:g,children:h})}function SG(t){const e=t.match(/^(async\s+)?(.+)$/);if(e?.[1])return E.jsxs(E.Fragment,{children:[E.jsx("span",{style:{color:"#c678dd"},children:"async "}),E.jsx("span",{children:e[2]})]});const n=t.match(/^(.+)\.([^.]+)$/);return n?E.jsxs(E.Fragment,{children:[E.jsx("span",{style:{color:"#e5c07b"},children:n[1]}),E.jsx("span",{style:{color:"#666"},children:"."}),E.jsx("span",{children:n[2]})]}):t}function mT({onClick:t,label:e}){const[n,r]=C.useState(!1);return E.jsx("button",{type:"button",onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{...At.expandBtn,backgroundColor:n?"rgba(255,255,255,0.05)":"transparent",color:n?"#aaa":"#777"},children:e})}function xG(){const[t,e]=C.useState(!1),n=()=>{Zm&&window.location.reload()};return E.jsx("div",{style:At.overlay,role:"alertdialog","aria-modal":"true",children:E.jsxs("div",{style:At.prodContainer,children:[E.jsx("div",{style:At.prodIcon,children:E.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[E.jsx("circle",{cx:"12",cy:"12",r:"10"}),E.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),E.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),E.jsx("h1",{style:At.prodTitle,children:"Something went wrong"}),E.jsx("p",{style:At.prodMessage,children:"We encountered an unexpected error. Please try again."}),E.jsx("button",{type:"button",onClick:n,onMouseEnter:()=>e(!0),onMouseLeave:()=>e(!1),style:{...At.prodButton,backgroundColor:t?"#333":"#222",borderColor:t?"#555":"#444"},children:"Reload page"})]})})}const to='ui-monospace, "JetBrains Mono", "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, monospace',At={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.92)",display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"40px 20px",overflow:"auto",fontFamily:to,fontSize:"13px",zIndex:99999,transition:"opacity 0.2s ease-out"},scanlines:{position:"fixed",inset:0,background:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px)",pointerEvents:"none",zIndex:1e5},container:{width:"100%",maxWidth:"900px",backgroundColor:"#0d0d0d",borderRadius:"8px",overflow:"hidden",boxShadow:"0 0 0 1px #333, 0 25px 80px -12px rgba(0, 0, 0, 0.8)",transition:"transform 0.3s ease-out, opacity 0.3s ease-out"},terminalBar:{display:"flex",alignItems:"center",padding:"12px 16px",backgroundColor:"#1a1a1a",borderBottom:"1px solid #333"},terminalDots:{display:"flex",gap:"8px"},dot:{width:"12px",height:"12px",borderRadius:"50%"},terminalTitle:{flex:1,textAlign:"center"},terminalTitleText:{color:"#777",fontSize:"12px",letterSpacing:"0.5px"},terminalActions:{display:"flex",alignItems:"center",gap:"6px"},kbd:{display:"inline-block",padding:"2px 6px",backgroundColor:"#2a2a2a",borderRadius:"4px",fontSize:"11px",color:"#aaa",border:"1px solid #444"},kbdInline:{display:"inline-block",padding:"1px 5px",backgroundColor:"#222",borderRadius:"3px",fontSize:"11px",color:"#888",border:"1px solid #444",marginLeft:"4px",marginRight:"4px"},kbdLabel:{color:"#777",fontSize:"11px"},header:{padding:"24px",borderBottom:"1px solid #333"},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"},errorIndicator:{position:"relative",display:"inline-flex"},errorGlow:{position:"absolute",inset:"-4px",background:"radial-gradient(ellipse at center, rgba(255,80,80,0.3) 0%, transparent 70%)",borderRadius:"12px",filter:"blur(8px)"},errorBadge:{position:"relative",display:"inline-block",padding:"6px 14px",backgroundColor:"#3d1a1a",color:"#ff7b7b",fontSize:"12px",fontWeight:600,borderRadius:"6px",border:"1px solid #5a2828",letterSpacing:"0.5px"},copyBtn:{padding:"8px 14px",backgroundColor:"transparent",color:"#888",fontSize:"12px",fontWeight:500,borderWidth:"1px",borderStyle:"solid",borderColor:"#444",borderRadius:"6px",cursor:"pointer",transition:"all 0.15s",fontFamily:to},copyBtnHover:{backgroundColor:"#252525",color:"#bbb",borderColor:"#555"},message:{margin:0,fontSize:"18px",fontWeight:400,color:"#e8e8e8",lineHeight:1.6,wordBreak:"break-word",fontFamily:to},stackSection:{borderTop:"1px solid #2a2a2a"},stackHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 24px",borderBottom:"1px solid #2a2a2a"},stackHeaderText:{fontSize:"10px",fontWeight:600,color:"#666",letterSpacing:"1.5px"},stackCount:{fontSize:"11px",color:"#555"},frameList:{display:"flex",flexDirection:"column"},frame:{display:"flex",alignItems:"flex-start",padding:"12px 24px",borderBottom:"1px solid #222",transition:"background-color 0.1s",cursor:"pointer"},frameFirst:{backgroundColor:"rgba(255, 80, 80, 0.08)",borderLeft:"2px solid #ff6b6b"},frameIndex:{width:"28px",flexShrink:0,fontSize:"11px",fontWeight:500,fontFamily:to},frameContent:{flex:1,minWidth:0},fnName:{fontSize:"13px",fontWeight:500,marginBottom:"4px",fontFamily:to},filePath:{fontSize:"12px",color:"#888",fontFamily:to,wordBreak:"break-all"},dirPath:{color:"#666"},fileName:{color:"#7cc4eb"},lineCol:{color:"#e5b83a"},expandBtn:{width:"100%",padding:"14px 24px",backgroundColor:"transparent",color:"#777",fontSize:"12px",fontWeight:500,border:"none",borderTop:"1px solid #2a2a2a",cursor:"pointer",textAlign:"left",transition:"all 0.15s",fontFamily:to},nodeModulesToggle:{display:"flex",alignItems:"center",gap:"10px",width:"100%",padding:"12px 24px",backgroundColor:"#0a0a0a",color:"#666",fontSize:"11px",fontWeight:500,border:"none",borderTop:"1px solid #2a2a2a",cursor:"pointer",textAlign:"left",fontFamily:to},nodeModulesIcon:{fontSize:"8px",color:"#555"},nodeModulesLabel:{flex:1,letterSpacing:"0.5px"},nodeModulesCount:{color:"#555"},nodeModulesFrames:{backgroundColor:"#080808"},footer:{padding:"14px 24px",borderTop:"1px solid #2a2a2a",backgroundColor:"#0a0a0a"},footerText:{fontSize:"11px",color:"#555"},prodContainer:{textAlign:"center",padding:"60px 40px",backgroundColor:"#0d0d0d",borderRadius:"8px",maxWidth:"400px",border:"1px solid #333"},prodIcon:{width:"64px",height:"64px",margin:"0 auto 24px",color:"#666",display:"flex",alignItems:"center",justifyContent:"center"},prodTitle:{margin:"0 0 12px",fontSize:"18px",fontWeight:500,color:"#f0f0f0",fontFamily:to},prodMessage:{margin:"0 0 28px",fontSize:"13px",color:"#888",lineHeight:1.6,fontFamily:to},prodButton:{padding:"12px 24px",backgroundColor:"#222",color:"#bbb",fontSize:"13px",fontWeight:500,borderWidth:"1px",borderStyle:"solid",borderColor:"#444",borderRadius:"6px",cursor:"pointer",transition:"all 0.15s",fontFamily:to}},_M=C.createContext(void 0);class Rd extends kt{redirect;constructor(e){super("Redirection"),this.redirect=e}}const EG=()=>{const[t]=Sv("alepha.react.router.state");if(!t)throw new kt("Missing react router state");return t},wG=t=>{const e=C.use(_M),n=e?.index??0,r=e?.onError,s=EG(),l=Xm(),[c,f]=C.useState(s.layers[n]?.element),[m,h]=C.useState(""),g=C.useRef(0),b=C.useRef(0);yM({"react:transition:begin":async({previous:T,state:w})=>{const $=T.layers[n];if(!$||`${w.url.pathname}/`.startsWith(`${$.path}/`))return;const _=pT($.route?.animation,w,"exit");if(_){const L=_.duration||200;b.current=Date.now(),g.current=L,h(_.animation)}else b.current=0,g.current=0,h("")},"react:transition:end":async({state:T})=>{const w=T.layers[n];if(b.current){const $=g.current,_=Date.now()-b.current;_<$&&await new Promise(L=>setTimeout(L,$-_))}if(!w?.cache){f(w?.element);const $=pT(w?.route?.animation,T,"enter");h($?$.animation:"")}}},[]);let x=c??t.children??null;if(m&&(x=E.jsx("div",{style:{display:"flex",flex:1,height:"100%",width:"100%",position:"relative",overflow:"hidden"},children:E.jsx("div",{style:{height:"100%",width:"100%",display:"flex",animation:m},children:x})})),t.errorBoundary===!1)return E.jsx(E.Fragment,{children:x});if(t.errorBoundary)return E.jsx(Ww,{fallback:t.errorBoundary,children:x});const S=T=>{const w=r?.(T,s)??E.jsx(OM,{error:T,alepha:l});return w instanceof Rd?"Redirection inside ErrorBoundary is not allowed.":w};return E.jsx(Ww,{fallback:S,children:x})},Ky=C.memo(wG);function pT(t,e,n="enter"){if(!t)return;const r=300,s=typeof t=="function"?t(e):t;if(typeof s=="string")return n==="exit"?void 0:{duration:r,animation:`${r}ms ${s}`};if(typeof s=="object"){const l=s[n],c=typeof l=="object"?l.duration??r:r,f=typeof l=="object"?l.name:l;if(n==="exit"){const h=typeof l=="object"?l.timing??"":"";return{duration:c,animation:`${c}ms ${h} ${f}`}}const m=typeof l=="object"?l.timing??"":"";return{duration:c,animation:`${c}ms ${m} ${f}`}}}const TG=N.object({REACT_STRICT_MODE:N.boolean({default:!0})});class Yd{log=po();env=hv(TG);alepha=Rt(Re);pages=[];getPages(){return this.pages}getConcretePages(){const e=[];for(const n of this.pages){if(n.children&&n.children.length>0)continue;const r=this.pathname(n.name);if(r.includes(":")||r.includes("*")){if(typeof n.static=="object"){const s=n.static.entries;if(s&&s.length>0)for(const l of s){const c=l.params,f=this.compile(n.path??"",c);!f.includes(":")&&!f.includes("*")&&e.push({...n,name:c[Object.keys(c)[0]],staticName:n.name,path:f,...l})}}continue}e.push(n)}return e}page(e){for(const n of this.pages)if(n.name===e)return n;throw new kt(`Page '${e}' not found`)}pathname(e,n={}){const r=this.page(e);if(!r)throw new Error(`Page ${e} not found`);let s=r.path??"",l=r.parent;for(;l;)s=`${l.path??""}/${s}`,l=l.parent;if(s=this.compile(s,n.params??{}),n.query){const c=new URLSearchParams(n.query);c.toString()&&(s+=`?${c.toString()}`)}return s.replace(/\/\/+/g,"/")||"/"}url(e,n={}){return new URL(this.pathname(e,n),n.host??"http://localhost")}root(e){const n=C.createElement(sM.Provider,{value:this.alepha},C.createElement(Ky,{},e.layers[0]?.element));return this.env.REACT_STRICT_MODE?C.createElement(C.StrictMode,{},n):n}convertStringObjectToObject=(e,n)=>{if(N.schema.isObject(e)&&typeof n=="object"){for(const r in e.properties)if(N.schema.isObject(e.properties[r])&&typeof n[r]=="string")try{n[r]=this.alepha.codec.decode(e.properties[r],decodeURIComponent(n[r]))}catch{}}return n};async createLayers(e,n,r=[]){let s={};const l=[{route:e}];let c=e.parent;for(;c;)l.unshift({route:c}),c=c.parent;let f=!1;for(let h=0;h<l.length;h++){const g=l[h],b=g.route,x={};try{this.convertStringObjectToObject(b.schema?.query,n.query),x.query=b.schema?.query?this.alepha.codec.decode(b.schema.query,n.query):{}}catch(S){g.error=S;break}try{x.params=b.schema?.params?this.alepha.codec.decode(b.schema.params,n.params):{}}catch(S){g.error=S;break}if(g.config={...x},r?.[h]&&!f&&r[h].name===b.name){const S=$=>$?$.replace(/\/\/+/g,"/"):"/",T=JSON.stringify({part:S(r[h].part),params:r[h].config?.params??{}}),w=JSON.stringify({part:S(b.path),params:x.params??{}});if(T===w){g.props=r[h].props,g.error=r[h].error,g.cache=!0,s={...s,...g.props};continue}f=!0}if(b.loader)try{const S=Object.create(n);Object.assign(S,x,s);const T=await b.loader?.(S)??{};g.props={...T},s={...s,...T}}catch(S){if(S instanceof Rd)return{redirect:S.redirect};this.log.error("Page loader has failed",S),g.error=S;break}}let m="";for(let h=0;h<l.length;h++){const g=l[h],b=g.props??{},x={...g.config?.params};for(const w of Object.keys(x))x[w]=String(x[w]);m+="/",m+=g.route.path?this.compile(g.route.path,x):"";const S=m.replace(/\/+/,"/"),T=this.getErrorHandler(g.route);if(T){const w=n.onError;n.onError=($,_)=>{const L=T($,_);return L===void 0?w($,_):L}}if(!g.error)try{const w=await this.createElement(g.route,{...g.route.props?g.route.props():{},...b,...s});n.layers.push({name:g.route.name,props:b,part:g.route.path,config:g.config,element:this.renderView(h+1,S,w,g.route),index:h+1,path:S,route:g.route,cache:g.cache})}catch(w){g.error=w}if(g.error)try{let w=await n.onError(g.error,n);if(w===void 0)throw g.error;if(w instanceof Rd)return{redirect:w.redirect};w===null&&(w=this.renderError(g.error)),n.layers.push({props:b,error:g.error,name:g.route.name,part:g.route.path,config:g.config,element:this.renderView(h+1,S,w,g.route),index:h+1,path:S,route:g.route});break}catch(w){if(w instanceof Rd)return{redirect:w.redirect};throw w}}return{state:n}}getErrorHandler(e){if(e.errorHandler)return e.errorHandler;let n=e.parent;for(;n;){if(n.errorHandler)return n.errorHandler;n=n.parent}}async createElement(e,n){if(e.lazy&&e.component&&this.log.warn(`Page ${e.name} has both lazy and component options, lazy will be used`),e.lazy){const r=await e.lazy();return C.createElement(r.default,n)}if(e.component)return C.createElement(e.component,n)}renderError(e){return C.createElement(OM,{error:e,alepha:this.alepha})}renderEmptyView(){return C.createElement(Ky,{})}href(e,n={}){const r=this.pages.find(c=>c.name===e.options.name);if(!r)throw new kt(`Page ${e.options.name} not found`);let s=r.path??"",l=r.parent;for(;l;)s=`${l.path??""}/${s}`,l=l.parent;return s=this.compile(s,n),s.replace(/\/\/+/g,"/")||"/"}compile(e,n={}){for(const[r,s]of Object.entries(n))e=e.replace(`:${r}`,s);return e}renderView(e,n,r,s){r??=this.renderEmptyView();const l=s.client?C.createElement(xq,typeof s.client=="object"?s.client:{},r):r;return C.createElement(_M.Provider,{value:{index:e,path:n,onError:this.getErrorHandler(s)??(c=>this.renderError(c))}},l)}configure=ar({on:"configure",handler:()=>{let e=!1;const n=this.alepha.primitives(Cn),r=s=>{if(s.options.parent)return!0;for(const l of n)if((l.options.children?Array.isArray(l.options.children)?l.options.children:l.options.children():[]).includes(s))return!0};for(const s of n)s.options.path==="/*"&&(e=!0),!r(s)&&this.add(this.map(n,s));!e&&n.length>0&&this.add({path:"/*",name:"notFound",cache:!0,component:RM,onServerResponse:({reply:s})=>{s.status=404}})}});map(e,n){const r=n.options.children?Array.isArray(n.options.children)?n.options.children:n.options.children():[],s=l=>{const c=[];for(const f of e)f.options.parent===l&&c.push(f);return c};return r.push(...s(n)),{...n.options,name:n.name,parent:void 0,children:r.map(l=>this.map(e,l))}}add(e){if(this.alepha.isReady())throw new kt("Router is already initialized");e.name??=this.nextId();const n=e;if(n.match=this.createMatch(n),this.pages.push(n),n.children)for(const r of n.children)r.parent=n,this.add(r)}createMatch(e){let n=e.path??"/",r=e.parent;for(;r;)n=`${r.path??""}/${n}`,r=r.parent;let s=n.replace(/\/\/+/g,"/");return s.endsWith("/")&&s!=="/"&&(s=s.slice(0,-1)),s}_next=0;nextId(){return this._next+=1,`P${this._next}`}}const CG=t=>t&&typeof t=="object"&&typeof t.path=="string"&&typeof t.page=="object";class Xy extends gG{log=po();alepha=Rt(Re);pageApi=Rt(Yd);browserHeadProvider=Rt(Ev);add(e){this.pageApi.add(e)}configure=ar({on:"configure",handler:async()=>{for(const e of this.pageApi.getPages())(e.component||e.lazy)&&this.push({path:e.match,page:e})}});async transition(e,n=[],r={}){const{pathname:s,search:l}=e,f={url:e,query:{},params:{},layers:[],onError:()=>null,meta:r};await this.alepha.events.emit("react:action:begin",{type:"transition"}),await this.alepha.events.emit("react:transition:begin",{previous:this.alepha.store.get("alepha.react.router.state"),state:f});try{const{route:m,params:h}=this.match(s),g={};if(l)for(const[b,x]of new URLSearchParams(l).entries())g[b]=String(x);if(f.name=m?.page.name,f.query=g,f.params=h??{},CG(m)){const{redirect:b}=await this.pageApi.createLayers(m.page,f,n);if(b)return b}f.layers.length===0&&f.layers.push({name:"not-found",element:C.createElement(RM),index:0,path:"/"}),await this.alepha.events.emit("react:action:success",{type:"transition"}),await this.alepha.events.emit("react:transition:success",{state:f})}catch(m){this.log.error("Transition has failed",m),f.layers=[{name:"error",element:this.pageApi.renderError(m),index:0,path:"/"}],await this.alepha.events.emit("react:action:error",{type:"transition",error:m}),await this.alepha.events.emit("react:transition:error",{error:m,state:f})}if(n)for(let m=0;m<n.length;m++){const h=n[m];f.layers[m]?.name!==h.name&&this.pageApi.page(h.name)?.onLeave?.()}this.alepha.store.set("alepha.react.router.state",f),await this.alepha.events.emit("react:action:end",{type:"transition"}),await this.alepha.events.emit("react:transition:end",{state:f}),this.browserHeadProvider.fillAndRenderHead(f)}root(e){return this.pageApi.root(e)}}const AG=zc({name:"alepha.react.browser.options",schema:N.object({scrollRestoration:N.enum(["top","manual"])}),default:{scrollRestoration:"top"}});class Qy{log=po();client=Rt(Uc);alepha=Rt(Re);router=Rt(Xy);dateTimeProvider=Rt(Lo);browserHeadProvider=Rt(Ev);options=gq(AG);get rootId(){return"root"}getRootElement(){const e=this.document.getElementById(this.rootId);if(e)return e;const n=this.document.createElement("div");return n.id=this.rootId,this.document.body.prepend(n),n}transitioning;get state(){return this.alepha.store.get("alepha.react.router.state")}get document(){return window.document}get history(){return window.history}get location(){return window.location}get base(){return"/devtools"}get url(){const e=this.location.pathname+this.location.search;return this.base?e.replace(this.base,""):e}pushState(e,n){const r=this.base+e;n?this.history.replaceState({},"",r):this.history.pushState({},"",r)}async invalidate(e){const n=[];if(this.log.trace("Invalidating layers"),e){const[r]=Object.keys(e),s=e[r];for(const l of this.state.layers){if(l.props?.[r]){n.push({...l,props:{...l.props,[r]:s}});break}n.push(l)}}await this.render({previous:n})}async go(e,n={}){if(this.log.trace(`Going to ${e}`,{url:e,options:n}),await this.render({url:e,previous:n.force?[]:this.state.layers,meta:n.meta}),this.state.url.pathname+this.state.url.search!==e){this.pushState(this.state.url.pathname+this.state.url.search);return}this.pushState(e,n.replace)}async render(e={}){const n=e.previous??this.state.layers,r=e.url??this.url,s=this.dateTimeProvider.now();this.transitioning={to:r,from:this.state?.url.pathname},this.log.debug("Transitioning...",{to:r});const l=await this.router.transition(new URL(`http://localhost${r}`),n,e.meta);if(l)if(this.log.info("Redirecting to",{redirect:l}),l.startsWith("http"))window.location.href=l;else return await this.render({url:l});const c=this.dateTimeProvider.now().diff(s);this.log.info(`Transition OK [${c}ms]`,this.transitioning),this.transitioning=void 0}getHydrationState(){try{if("__ssr"in window&&typeof window.__ssr=="object")return window.__ssr}catch(e){console.error(e)}}onTransitionEnd=ar({on:"react:transition:end",handler:()=>{this.options.scrollRestoration==="top"&&typeof window<"u"&&!this.alepha.isTest()&&(this.log.trace("Restoring scroll position to top"),window.scrollTo(0,0))}});ready=ar({on:"ready",handler:async()=>{const e=this.getHydrationState(),n=e?.layers??[];if(e)for(const[s,l]of Object.entries(e))s!=="layers"&&this.alepha.set(s,l);await this.render({previous:n});const r=this.router.root(this.state);await this.alepha.events.emit("react:browser:render",{element:r,root:this.getRootElement(),hydration:e,state:this.state}),this.browserHeadProvider.fillAndRenderHead(this.state),window.addEventListener("popstate",()=>{this.base+this.state.url.pathname!==this.location.pathname&&(this.log.debug("Popstate event triggered - rendering new state",{url:this.location.pathname+this.location.search}),this.render())})}})}var ey={exports:{}},Gu={},ny={exports:{}},ry={};var hT;function $G(){return hT||(hT=1,(function(t){function e(R,B){var D=R.length;R.push(B);t:for(;0<D;){var tt=D-1>>>1,nt=R[tt];if(0<s(nt,B))R[tt]=B,R[D]=nt,D=tt;else break t}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var B=R[0],D=R.pop();if(D!==B){R[0]=D;t:for(var tt=0,nt=R.length,O=nt>>>1;tt<O;){var q=2*(tt+1)-1,ot=R[q],ft=q+1,mt=R[ft];if(0>s(ot,D))ft<nt&&0>s(mt,ot)?(R[tt]=mt,R[ft]=D,tt=ft):(R[tt]=ot,R[q]=D,tt=q);else if(ft<nt&&0>s(mt,D))R[tt]=mt,R[ft]=D,tt=ft;else break t}}return B}function s(R,B){var D=R.sortIndex-B.sortIndex;return D!==0?D:R.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var m=[],h=[],g=1,b=null,x=3,S=!1,T=!1,w=!1,$=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function H(R){for(var B=n(h);B!==null;){if(B.callback===null)r(h);else if(B.startTime<=R)r(h),B.sortIndex=B.expirationTime,e(m,B);else break;B=n(h)}}function P(R){if(w=!1,H(R),!T)if(n(m)!==null)T=!0,G||(G=!0,ct());else{var B=n(h);B!==null&&Z(P,B.startTime-R)}}var G=!1,z=-1,k=5,W=-1;function et(){return $?!0:!(t.unstable_now()-W<k)}function it(){if($=!1,G){var R=t.unstable_now();W=R;var B=!0;try{t:{T=!1,w&&(w=!1,L(z),z=-1),S=!0;var D=x;try{e:{for(H(R),b=n(m);b!==null&&!(b.expirationTime>R&&et());){var tt=b.callback;if(typeof tt=="function"){b.callback=null,x=b.priorityLevel;var nt=tt(b.expirationTime<=R);if(R=t.unstable_now(),typeof nt=="function"){b.callback=nt,H(R),B=!0;break e}b===n(m)&&r(m),H(R)}else r(m);b=n(m)}if(b!==null)B=!0;else{var O=n(h);O!==null&&Z(P,O.startTime-R),B=!1}}break t}finally{b=null,x=D,S=!1}B=void 0}}finally{B?ct():G=!1}}}var ct;if(typeof j=="function")ct=function(){j(it)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,Y=dt.port2;dt.port1.onmessage=it,ct=function(){Y.postMessage(null)}}else ct=function(){_(it,0)};function Z(R,B){z=_(function(){R(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(R){switch(x){case 1:case 2:case 3:var B=3;break;default:B=x}var D=x;x=B;try{return R()}finally{x=D}},t.unstable_requestPaint=function(){$=!0},t.unstable_runWithPriority=function(R,B){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var D=x;x=R;try{return B()}finally{x=D}},t.unstable_scheduleCallback=function(R,B,D){var tt=t.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?tt+D:tt):D=tt,R){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=D+nt,R={id:g++,callback:B,priorityLevel:R,startTime:D,expirationTime:nt,sortIndex:-1},D>tt?(R.sortIndex=D,e(h,R),n(m)===null&&R===n(h)&&(w?(L(z),z=-1):w=!0,Z(P,D-tt))):(R.sortIndex=nt,e(m,R),T||S||(T=!0,G||(G=!0,ct()))),R},t.unstable_shouldYield=et,t.unstable_wrapCallback=function(R){var B=x;return function(){var D=x;x=B;try{return R.apply(this,arguments)}finally{x=D}}}})(ry)),ry}var gT;function MG(){return gT||(gT=1,ny.exports=$G()),ny.exports}var oy={exports:{}},vn={};var yT;function RG(){if(yT)return vn;yT=1;var t=gv();function e(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(m,h,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:m,containerInfo:h,implementation:g}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vn.createPortal=function(m,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return l(m,h,null,g)},vn.flushSync=function(m){var h=c.T,g=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=h,r.p=g,r.d.f()}},vn.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(m,h))},vn.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},vn.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var g=h.as,b=f(g,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?r.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:S}):g==="script"&&r.d.X(m,{crossOrigin:b,integrity:x,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},vn.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);r.d.M(m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(m)},vn.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,b=f(g,h.crossOrigin);r.d.L(m,g,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},vn.preloadModule=function(m,h){if(typeof m=="string")if(h){var g=f(h.as,h.crossOrigin);r.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(m)},vn.requestFormReset=function(m){r.d.r(m)},vn.unstable_batchedUpdates=function(m,h){return m(h)},vn.useFormState=function(m,h,g){return c.H.useFormState(m,h,g)},vn.useFormStatus=function(){return c.H.useHostTransitionStatus()},vn.version="19.2.3",vn}var bT;function DM(){if(bT)return oy.exports;bT=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),oy.exports=RG(),oy.exports}var vT;function OG(){if(vT)return Gu;vT=1;var t=MG(),e=gv(),n=DM();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var i=o,a=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(a=i.return),o=i.return;while(o)}return i.tag===3?a:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function f(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function m(o){if(l(o)!==o)throw Error(r(188))}function h(o){var i=o.alternate;if(!i){if(i=l(o),i===null)throw Error(r(188));return i!==o?null:o}for(var a=o,u=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(u=d.return,u!==null){a=u;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return m(d),o;if(p===u)return m(d),i;p=p.sibling}throw Error(r(188))}if(a.return!==u.return)a=d,u=p;else{for(var v=!1,A=d.child;A;){if(A===a){v=!0,a=d,u=p;break}if(A===u){v=!0,u=d,a=p;break}A=A.sibling}if(!v){for(A=p.child;A;){if(A===a){v=!0,a=p,u=d;break}if(A===u){v=!0,u=p,a=d;break}A=A.sibling}if(!v)throw Error(r(189))}}if(a.alternate!==u)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),j=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),it=Symbol.iterator;function ct(o){return o===null||typeof o!="object"?null:(o=it&&o[it]||o["@@iterator"],typeof o=="function"?o:null)}var dt=Symbol.for("react.client.reference");function Y(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===dt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case _:return"Profiler";case $:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList";case W:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case T:return"Portal";case j:return o.displayName||"Context";case L:return(o._context.displayName||"Context")+".Consumer";case H:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case z:return i=o.displayName||null,i!==null?i:Y(o.type)||"Memo";case k:i=o._payload,o=o._init;try{return Y(o(i))}catch{}}return null}var Z=Array.isArray,R=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},tt=[],nt=-1;function O(o){return{current:o}}function q(o){0>nt||(o.current=tt[nt],tt[nt]=null,nt--)}function ot(o,i){nt++,tt[nt]=o.current,o.current=i}var ft=O(null),mt=O(null),ht=O(null),Tt=O(null);function Jt(o,i){switch(ot(ht,i),ot(mt,o),ot(ft,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?YE(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=YE(i),o=VE(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}q(ft),ot(ft,o)}function Ot(){q(ft),q(mt),q(ht)}function ie(o){o.memoizedState!==null&&ot(Tt,o);var i=ft.current,a=VE(i,o.type);i!==a&&(ot(mt,o),ot(ft,a))}function We(o){mt.current===o&&(q(ft),q(mt)),Tt.current===o&&(q(Tt),Uu._currentValue=D)}var cn,Zt;function on(o){if(cn===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);cn=i&&i[1]||"",Zt=-1<a.stack.indexOf(`
|
|
19
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
-
`+cn+o+Zt}var go=!1;function Ai(o,i){if(!o||go)return"";go=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var lt=function(){throw Error()};if(Object.defineProperty(lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(lt,[])}catch(J){var X=J}Reflect.construct(o,[],lt)}else{try{lt.call()}catch(J){X=J}o.call(lt.prototype)}}else{try{throw Error()}catch(J){X=J}(lt=o())&&typeof lt.catch=="function"&<.catch(function(){})}}catch(J){if(J&&X&&typeof J.stack=="string")return[J.stack,X.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),v=p[0],A=p[1];if(v&&A){var I=v.split(`
|
|
21
|
-
`),K=A.split(`
|
|
22
|
-
`);for(d=u=0;u<I.length&&!I[u].includes("DetermineComponentFrameRoot");)u++;for(;d<K.length&&!K[d].includes("DetermineComponentFrameRoot");)d++;if(u===I.length||d===K.length)for(u=I.length-1,d=K.length-1;1<=u&&0<=d&&I[u]!==K[d];)d--;for(;1<=u&&0<=d;u--,d--)if(I[u]!==K[d]){if(u!==1||d!==1)do if(u--,d--,0>d||I[u]!==K[d]){var rt=`
|
|
23
|
-
`+I[u].replace(" at new "," at ");return o.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",o.displayName)),rt}while(1<=u&&0<=d);break}}}finally{go=!1,Error.prepareStackTrace=a}return(a=o?o.displayName||o.name:"")?on(a):""}function Ql(o,i){switch(o.tag){case 26:case 27:case 5:return on(o.type);case 16:return on("Lazy");case 13:return o.child!==i&&i!==null?on("Suspense Fallback"):on("Suspense");case 19:return on("SuspenseList");case 0:case 15:return Ai(o.type,!1);case 11:return Ai(o.type.render,!1);case 1:return Ai(o.type,!0);case 31:return on("Activity");default:return""}}function bs(o){try{var i="",a=null;do i+=Ql(o,a),a=o,o=o.return;while(o);return i}catch(u){return`
|
|
24
|
-
Error generating stack: `+u.message+`
|
|
25
|
-
`+u.stack}}var Qn=Object.prototype.hasOwnProperty,vs=t.unstable_scheduleCallback,Gc=t.unstable_cancelCallback,BO=t.unstable_shouldYield,UO=t.unstable_requestPaint,Zn=t.unstable_now,kO=t.unstable_getCurrentPriorityLevel,T1=t.unstable_ImmediatePriority,C1=t.unstable_UserBlockingPriority,Yc=t.unstable_NormalPriority,PO=t.unstable_LowPriority,A1=t.unstable_IdlePriority,HO=t.log,FO=t.unstable_setDisableYieldValue,Zl=null,Jn=null;function $i(o){if(typeof HO=="function"&&FO(o),Jn&&typeof Jn.setStrictMode=="function")try{Jn.setStrictMode(Zl,o)}catch{}}var Wn=Math.clz32?Math.clz32:YO,qO=Math.log,GO=Math.LN2;function YO(o){return o>>>=0,o===0?32:31-(qO(o)/GO|0)|0}var Vc=256,Kc=262144,Xc=4194304;function Ss(o){var i=o&42;if(i!==0)return i;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Qc(o,i,a){var u=o.pendingLanes;if(u===0)return 0;var d=0,p=o.suspendedLanes,v=o.pingedLanes;o=o.warmLanes;var A=u&134217727;return A!==0?(u=A&~p,u!==0?d=Ss(u):(v&=A,v!==0?d=Ss(v):a||(a=A&~o,a!==0&&(d=Ss(a))))):(A=u&~p,A!==0?d=Ss(A):v!==0?d=Ss(v):a||(a=u&~o,a!==0&&(d=Ss(a)))),d===0?0:i!==0&&i!==d&&(i&p)===0&&(p=d&-d,a=i&-i,p>=a||p===32&&(a&4194048)!==0)?i:d}function Jl(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function VO(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $1(){var o=Xc;return Xc<<=1,(Xc&62914560)===0&&(Xc=4194304),o}function Dp(o){for(var i=[],a=0;31>a;a++)i.push(o);return i}function Wl(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function KO(o,i,a,u,d,p){var v=o.pendingLanes;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=a,o.entangledLanes&=a,o.errorRecoveryDisabledLanes&=a,o.shellSuspendCounter=0;var A=o.entanglements,I=o.expirationTimes,K=o.hiddenUpdates;for(a=v&~a;0<a;){var rt=31-Wn(a),lt=1<<rt;A[rt]=0,I[rt]=-1;var X=K[rt];if(X!==null)for(K[rt]=null,rt=0;rt<X.length;rt++){var J=X[rt];J!==null&&(J.lane&=-536870913)}a&=~lt}u!==0&&M1(o,u,0),p!==0&&d===0&&o.tag!==0&&(o.suspendedLanes|=p&~(v&~i))}function M1(o,i,a){o.pendingLanes|=i,o.suspendedLanes&=~i;var u=31-Wn(i);o.entangledLanes|=i,o.entanglements[u]=o.entanglements[u]|1073741824|a&261930}function R1(o,i){var a=o.entangledLanes|=i;for(o=o.entanglements;a;){var u=31-Wn(a),d=1<<u;d&i|o[u]&i&&(o[u]|=i),a&=~d}}function O1(o,i){var a=i&-i;return a=(a&42)!==0?1:jp(a),(a&(o.suspendedLanes|i))!==0?0:a}function jp(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Ip(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function N1(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:gw(o.type))}function _1(o,i){var a=B.p;try{return B.p=o,i()}finally{B.p=a}}var Mi=Math.random().toString(36).slice(2),fn="__reactFiber$"+Mi,jn="__reactProps$"+Mi,fa="__reactContainer$"+Mi,Lp="__reactEvents$"+Mi,XO="__reactListeners$"+Mi,QO="__reactHandles$"+Mi,D1="__reactResources$"+Mi,tu="__reactMarker$"+Mi;function zp(o){delete o[fn],delete o[jn],delete o[Lp],delete o[XO],delete o[QO]}function da(o){var i=o[fn];if(i)return i;for(var a=o.parentNode;a;){if(i=a[fa]||a[fn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(o=tw(o);o!==null;){if(a=o[fn])return a;o=tw(o)}return i}o=a,a=o.parentNode}return null}function ma(o){if(o=o[fn]||o[fa]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function eu(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function pa(o){var i=o[D1];return i||(i=o[D1]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function sn(o){o[tu]=!0}var j1=new Set,I1={};function xs(o,i){ha(o,i),ha(o+"Capture",i)}function ha(o,i){for(I1[o]=i,o=0;o<i.length;o++)j1.add(i[o])}var ZO=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),L1={},z1={};function JO(o){return Qn.call(z1,o)?!0:Qn.call(L1,o)?!1:ZO.test(o)?z1[o]=!0:(L1[o]=!0,!1)}function Zc(o,i,a){if(JO(i))if(a===null)o.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+a)}}function Jc(o,i,a){if(a===null)o.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+a)}}function Bo(o,i,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttributeNS(i,a,""+u)}}function Ar(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function B1(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function WO(o,i,a){var u=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,p=u.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return d.call(this)},set:function(v){a=""+v,p.call(this,v)}}),Object.defineProperty(o,i,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Bp(o){if(!o._valueTracker){var i=B1(o)?"checked":"value";o._valueTracker=WO(o,i,""+o[i])}}function U1(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return o&&(u=B1(o)?o.checked?"true":"false":o.value),o=u,o!==a?(i.setValue(o),!0):!1}function Wc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var tN=/[\n"\\]/g;function $r(o){return o.replace(tN,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Up(o,i,a,u,d,p,v,A){o.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?o.type=v:o.removeAttribute("type"),i!=null?v==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+Ar(i)):o.value!==""+Ar(i)&&(o.value=""+Ar(i)):v!=="submit"&&v!=="reset"||o.removeAttribute("value"),i!=null?kp(o,v,Ar(i)):a!=null?kp(o,v,Ar(a)):u!=null&&o.removeAttribute("value"),d==null&&p!=null&&(o.defaultChecked=!!p),d!=null&&(o.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?o.name=""+Ar(A):o.removeAttribute("name")}function k1(o,i,a,u,d,p,v,A){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(o.type=p),i!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Bp(o);return}a=a!=null?""+Ar(a):"",i=i!=null?""+Ar(i):a,A||i===o.value||(o.value=i),o.defaultValue=i}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,o.checked=A?o.checked:!!u,o.defaultChecked=!!u,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(o.name=v),Bp(o)}function kp(o,i,a){i==="number"&&Wc(o.ownerDocument)===o||o.defaultValue===""+a||(o.defaultValue=""+a)}function ga(o,i,a,u){if(o=o.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<o.length;a++)d=i.hasOwnProperty("$"+o[a].value),o[a].selected!==d&&(o[a].selected=d),d&&u&&(o[a].defaultSelected=!0)}else{for(a=""+Ar(a),i=null,d=0;d<o.length;d++){if(o[d].value===a){o[d].selected=!0,u&&(o[d].defaultSelected=!0);return}i!==null||o[d].disabled||(i=o[d])}i!==null&&(i.selected=!0)}}function P1(o,i,a){if(i!=null&&(i=""+Ar(i),i!==o.value&&(o.value=i),a==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=a!=null?""+Ar(a):""}function H1(o,i,a,u){if(i==null){if(u!=null){if(a!=null)throw Error(r(92));if(Z(u)){if(1<u.length)throw Error(r(93));u=u[0]}a=u}a==null&&(a=""),i=a}a=Ar(i),o.defaultValue=a,u=o.textContent,u===a&&u!==""&&u!==null&&(o.value=u),Bp(o)}function ya(o,i){if(i){var a=o.firstChild;if(a&&a===o.lastChild&&a.nodeType===3){a.nodeValue=i;return}}o.textContent=i}var eN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function F1(o,i,a){var u=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":u?o.setProperty(i,a):typeof a!="number"||a===0||eN.has(i)?i==="float"?o.cssFloat=a:o[i]=(""+a).trim():o[i]=a+"px"}function q1(o,i,a){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="");for(var d in i)u=i[d],i.hasOwnProperty(d)&&a[d]!==u&&F1(o,d,u)}else for(var p in i)i.hasOwnProperty(p)&&F1(o,p,i[p])}function Pp(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tf(o){return rN.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Uo(){}var Hp=null;function Fp(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ba=null,va=null;function G1(o){var i=ma(o);if(i&&(o=i.stateNode)){var a=o[jn]||null;t:switch(o=i.stateNode,i.type){case"input":if(Up(o,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=o;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+$r(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var u=a[i];if(u!==o&&u.form===o.form){var d=u[jn]||null;if(!d)throw Error(r(90));Up(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)u=a[i],u.form===o.form&&U1(u)}break t;case"textarea":P1(o,a.value,a.defaultValue);break t;case"select":i=a.value,i!=null&&ga(o,!!a.multiple,i,!1)}}}var qp=!1;function Y1(o,i,a){if(qp)return o(i,a);qp=!0;try{var u=o(i);return u}finally{if(qp=!1,(ba!==null||va!==null)&&(Hf(),ba&&(i=ba,o=va,va=ba=null,G1(i),o)))for(i=0;i<o.length;i++)G1(o[i])}}function nu(o,i){var a=o.stateNode;if(a===null)return null;var u=a[jn]||null;if(u===null)return null;a=u[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(o=o.type,u=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!u;break t;default:o=!1}if(o)return null;if(a&&typeof a!="function")throw Error(r(231,i,typeof a));return a}var ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gp=!1;if(ko)try{var ru={};Object.defineProperty(ru,"passive",{get:function(){Gp=!0}}),window.addEventListener("test",ru,ru),window.removeEventListener("test",ru,ru)}catch{Gp=!1}var Ri=null,Yp=null,ef=null;function V1(){if(ef)return ef;var o,i=Yp,a=i.length,u,d="value"in Ri?Ri.value:Ri.textContent,p=d.length;for(o=0;o<a&&i[o]===d[o];o++);var v=a-o;for(u=1;u<=v&&i[a-u]===d[p-u];u++);return ef=d.slice(o,1<u?1-u:void 0)}function nf(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function rf(){return!0}function K1(){return!1}function In(o){function i(a,u,d,p,v){this._reactName=a,this._targetInst=d,this.type=u,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var A in o)o.hasOwnProperty(A)&&(a=o[A],this[A]=a?a(p):p[A]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?rf:K1,this.isPropagationStopped=K1,this}return b(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rf)},persist:function(){},isPersistent:rf}),i}var Es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},of=In(Es),ou=b({},Es,{view:0,detail:0}),oN=In(ou),Vp,Kp,iu,sf=b({},ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==iu&&(iu&&o.type==="mousemove"?(Vp=o.screenX-iu.screenX,Kp=o.screenY-iu.screenY):Kp=Vp=0,iu=o),Vp)},movementY:function(o){return"movementY"in o?o.movementY:Kp}}),X1=In(sf),iN=b({},sf,{dataTransfer:0}),sN=In(iN),aN=b({},ou,{relatedTarget:0}),Xp=In(aN),lN=b({},Es,{animationName:0,elapsedTime:0,pseudoElement:0}),uN=In(lN),cN=b({},Es,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),fN=In(cN),dN=b({},Es,{data:0}),Q1=In(dN),mN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gN(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=hN[o])?!!i[o]:!1}function Qp(){return gN}var yN=b({},ou,{key:function(o){if(o.key){var i=mN[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=nf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?pN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qp,charCode:function(o){return o.type==="keypress"?nf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?nf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),bN=In(yN),vN=b({},sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z1=In(vN),SN=b({},ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qp}),xN=In(SN),EN=b({},Es,{propertyName:0,elapsedTime:0,pseudoElement:0}),wN=In(EN),TN=b({},sf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),CN=In(TN),AN=b({},Es,{newState:0,oldState:0}),$N=In(AN),MN=[9,13,27,32],Zp=ko&&"CompositionEvent"in window,su=null;ko&&"documentMode"in document&&(su=document.documentMode);var RN=ko&&"TextEvent"in window&&!su,J1=ko&&(!Zp||su&&8<su&&11>=su),W1=" ",tS=!1;function eS(o,i){switch(o){case"keyup":return MN.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Sa=!1;function ON(o,i){switch(o){case"compositionend":return nS(i);case"keypress":return i.which!==32?null:(tS=!0,W1);case"textInput":return o=i.data,o===W1&&tS?null:o;default:return null}}function NN(o,i){if(Sa)return o==="compositionend"||!Zp&&eS(o,i)?(o=V1(),ef=Yp=Ri=null,Sa=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return J1&&i.locale!=="ko"?null:i.data;default:return null}}var _N={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rS(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!_N[o.type]:i==="textarea"}function oS(o,i,a,u){ba?va?va.push(u):va=[u]:ba=u,i=Xf(i,"onChange"),0<i.length&&(a=new of("onChange","change",null,a,u),o.push({event:a,listeners:i}))}var au=null,lu=null;function DN(o){kE(o,0)}function af(o){var i=eu(o);if(U1(i))return o}function iS(o,i){if(o==="change")return i}var sS=!1;if(ko){var Jp;if(ko){var Wp="oninput"in document;if(!Wp){var aS=document.createElement("div");aS.setAttribute("oninput","return;"),Wp=typeof aS.oninput=="function"}Jp=Wp}else Jp=!1;sS=Jp&&(!document.documentMode||9<document.documentMode)}function lS(){au&&(au.detachEvent("onpropertychange",uS),lu=au=null)}function uS(o){if(o.propertyName==="value"&&af(lu)){var i=[];oS(i,lu,o,Fp(o)),Y1(DN,i)}}function jN(o,i,a){o==="focusin"?(lS(),au=i,lu=a,au.attachEvent("onpropertychange",uS)):o==="focusout"&&lS()}function IN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return af(lu)}function LN(o,i){if(o==="click")return af(i)}function zN(o,i){if(o==="input"||o==="change")return af(i)}function BN(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var tr=typeof Object.is=="function"?Object.is:BN;function uu(o,i){if(tr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var a=Object.keys(o),u=Object.keys(i);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var d=a[u];if(!Qn.call(i,d)||!tr(o[d],i[d]))return!1}return!0}function cS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function fS(o,i){var a=cS(o);o=0;for(var u;a;){if(a.nodeType===3){if(u=o+a.textContent.length,o<=i&&u>=i)return{node:a,offset:i-o};o=u}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=cS(a)}}function dS(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?dS(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function mS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Wc(o.document);i instanceof o.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)o=i.contentWindow;else break;i=Wc(o.document)}return i}function th(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var UN=ko&&"documentMode"in document&&11>=document.documentMode,xa=null,eh=null,cu=null,nh=!1;function pS(o,i,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nh||xa==null||xa!==Wc(u)||(u=xa,"selectionStart"in u&&th(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),cu&&uu(cu,u)||(cu=u,u=Xf(eh,"onSelect"),0<u.length&&(i=new of("onSelect","select",null,i,a),o.push({event:i,listeners:u}),i.target=xa)))}function ws(o,i){var a={};return a[o.toLowerCase()]=i.toLowerCase(),a["Webkit"+o]="webkit"+i,a["Moz"+o]="moz"+i,a}var Ea={animationend:ws("Animation","AnimationEnd"),animationiteration:ws("Animation","AnimationIteration"),animationstart:ws("Animation","AnimationStart"),transitionrun:ws("Transition","TransitionRun"),transitionstart:ws("Transition","TransitionStart"),transitioncancel:ws("Transition","TransitionCancel"),transitionend:ws("Transition","TransitionEnd")},rh={},hS={};ko&&(hS=document.createElement("div").style,"AnimationEvent"in window||(delete Ea.animationend.animation,delete Ea.animationiteration.animation,delete Ea.animationstart.animation),"TransitionEvent"in window||delete Ea.transitionend.transition);function Ts(o){if(rh[o])return rh[o];if(!Ea[o])return o;var i=Ea[o],a;for(a in i)if(i.hasOwnProperty(a)&&a in hS)return rh[o]=i[a];return o}var gS=Ts("animationend"),yS=Ts("animationiteration"),bS=Ts("animationstart"),kN=Ts("transitionrun"),PN=Ts("transitionstart"),HN=Ts("transitioncancel"),vS=Ts("transitionend"),SS=new Map,oh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");oh.push("scrollEnd");function Zr(o,i){SS.set(o,i),xs(i,[o])}var lf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Mr=[],wa=0,ih=0;function uf(){for(var o=wa,i=ih=wa=0;i<o;){var a=Mr[i];Mr[i++]=null;var u=Mr[i];Mr[i++]=null;var d=Mr[i];Mr[i++]=null;var p=Mr[i];if(Mr[i++]=null,u!==null&&d!==null){var v=u.pending;v===null?d.next=d:(d.next=v.next,v.next=d),u.pending=d}p!==0&&xS(a,d,p)}}function cf(o,i,a,u){Mr[wa++]=o,Mr[wa++]=i,Mr[wa++]=a,Mr[wa++]=u,ih|=u,o.lanes|=u,o=o.alternate,o!==null&&(o.lanes|=u)}function sh(o,i,a,u){return cf(o,i,a,u),ff(o)}function Cs(o,i){return cf(o,null,null,i),ff(o)}function xS(o,i,a){o.lanes|=a;var u=o.alternate;u!==null&&(u.lanes|=a);for(var d=!1,p=o.return;p!==null;)p.childLanes|=a,u=p.alternate,u!==null&&(u.childLanes|=a),p.tag===22&&(o=p.stateNode,o===null||o._visibility&1||(d=!0)),o=p,p=p.return;return o.tag===3?(p=o.stateNode,d&&i!==null&&(d=31-Wn(a),o=p.hiddenUpdates,u=o[d],u===null?o[d]=[i]:u.push(i),i.lane=a|536870912),p):null}function ff(o){if(50<_u)throw _u=0,hg=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Ta={};function FN(o,i,a,u){this.tag=o,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(o,i,a,u){return new FN(o,i,a,u)}function ah(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Po(o,i){var a=o.alternate;return a===null?(a=er(o.tag,i,o.key,o.mode),a.elementType=o.elementType,a.type=o.type,a.stateNode=o.stateNode,a.alternate=o,o.alternate=a):(a.pendingProps=i,a.type=o.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=o.flags&65011712,a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,i=o.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=o.sibling,a.index=o.index,a.ref=o.ref,a.refCleanup=o.refCleanup,a}function ES(o,i){o.flags&=65011714;var a=o.alternate;return a===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,i=a.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function df(o,i,a,u,d,p){var v=0;if(u=o,typeof o=="function")ah(o)&&(v=1);else if(typeof o=="string")v=K_(o,a,ft.current)?26:o==="html"||o==="head"||o==="body"?27:5;else t:switch(o){case W:return o=er(31,a,i,d),o.elementType=W,o.lanes=p,o;case w:return As(a.children,d,p,i);case $:v=8,d|=24;break;case _:return o=er(12,a,i,d|2),o.elementType=_,o.lanes=p,o;case P:return o=er(13,a,i,d),o.elementType=P,o.lanes=p,o;case G:return o=er(19,a,i,d),o.elementType=G,o.lanes=p,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:v=10;break t;case L:v=9;break t;case H:v=11;break t;case z:v=14;break t;case k:v=16,u=null;break t}v=29,a=Error(r(130,o===null?"null":typeof o,"")),u=null}return i=er(v,a,i,d),i.elementType=o,i.type=u,i.lanes=p,i}function As(o,i,a,u){return o=er(7,o,u,i),o.lanes=a,o}function lh(o,i,a){return o=er(6,o,null,i),o.lanes=a,o}function wS(o){var i=er(18,null,null,0);return i.stateNode=o,i}function uh(o,i,a){return i=er(4,o.children!==null?o.children:[],o.key,i),i.lanes=a,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var TS=new WeakMap;function Rr(o,i){if(typeof o=="object"&&o!==null){var a=TS.get(o);return a!==void 0?a:(i={value:o,source:i,stack:bs(i)},TS.set(o,i),i)}return{value:o,source:i,stack:bs(i)}}var Ca=[],Aa=0,mf=null,fu=0,Or=[],Nr=0,Oi=null,yo=1,bo="";function Ho(o,i){Ca[Aa++]=fu,Ca[Aa++]=mf,mf=o,fu=i}function CS(o,i,a){Or[Nr++]=yo,Or[Nr++]=bo,Or[Nr++]=Oi,Oi=o;var u=yo;o=bo;var d=32-Wn(u)-1;u&=~(1<<d),a+=1;var p=32-Wn(i)+d;if(30<p){var v=d-d%5;p=(u&(1<<v)-1).toString(32),u>>=v,d-=v,yo=1<<32-Wn(i)+d|a<<d|u,bo=p+o}else yo=1<<p|a<<d|u,bo=o}function ch(o){o.return!==null&&(Ho(o,1),CS(o,1,0))}function fh(o){for(;o===mf;)mf=Ca[--Aa],Ca[Aa]=null,fu=Ca[--Aa],Ca[Aa]=null;for(;o===Oi;)Oi=Or[--Nr],Or[Nr]=null,bo=Or[--Nr],Or[Nr]=null,yo=Or[--Nr],Or[Nr]=null}function AS(o,i){Or[Nr++]=yo,Or[Nr++]=bo,Or[Nr++]=Oi,yo=i.id,bo=i.overflow,Oi=o}var dn=null,we=null,Xt=!1,Ni=null,_r=!1,dh=Error(r(519));function _i(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw du(Rr(i,o)),dh}function $S(o){var i=o.stateNode,a=o.type,u=o.memoizedProps;switch(i[fn]=o,i[jn]=u,a){case"dialog":qt("cancel",i),qt("close",i);break;case"iframe":case"object":case"embed":qt("load",i);break;case"video":case"audio":for(a=0;a<ju.length;a++)qt(ju[a],i);break;case"source":qt("error",i);break;case"img":case"image":case"link":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"input":qt("invalid",i),k1(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":qt("invalid",i);break;case"textarea":qt("invalid",i),H1(i,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||u.suppressHydrationWarning===!0||qE(i.textContent,a)?(u.popover!=null&&(qt("beforetoggle",i),qt("toggle",i)),u.onScroll!=null&&qt("scroll",i),u.onScrollEnd!=null&&qt("scrollend",i),u.onClick!=null&&(i.onclick=Uo),i=!0):i=!1,i||_i(o,!0)}function MS(o){for(dn=o.return;dn;)switch(dn.tag){case 5:case 31:case 13:_r=!1;return;case 27:case 3:_r=!0;return;default:dn=dn.return}}function $a(o){if(o!==dn)return!1;if(!Xt)return MS(o),Xt=!0,!1;var i=o.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=o.type,a=!(a!=="form"&&a!=="button")||Og(o.type,o.memoizedProps)),a=!a),a&&we&&_i(o),MS(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=WE(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));we=WE(o)}else i===27?(i=we,Yi(o.type)?(o=Ig,Ig=null,we=o):we=i):we=dn?jr(o.stateNode.nextSibling):null;return!0}function $s(){we=dn=null,Xt=!1}function mh(){var o=Ni;return o!==null&&(Un===null?Un=o:Un.push.apply(Un,o),Ni=null),o}function du(o){Ni===null?Ni=[o]:Ni.push(o)}var ph=O(null),Ms=null,Fo=null;function Di(o,i,a){ot(ph,i._currentValue),i._currentValue=a}function qo(o){o._currentValue=ph.current,q(ph)}function hh(o,i,a){for(;o!==null;){var u=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),o===a)break;o=o.return}}function gh(o,i,a,u){var d=o.child;for(d!==null&&(d.return=o);d!==null;){var p=d.dependencies;if(p!==null){var v=d.child;p=p.firstContext;t:for(;p!==null;){var A=p;p=d;for(var I=0;I<i.length;I++)if(A.context===i[I]){p.lanes|=a,A=p.alternate,A!==null&&(A.lanes|=a),hh(p.return,a,o),u||(v=null);break t}p=A.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=a,p=v.alternate,p!==null&&(p.lanes|=a),hh(v,a,o),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===o){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function Ma(o,i,a,u){o=null;for(var d=i,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var A=d.type;tr(d.pendingProps.value,v.value)||(o!==null?o.push(A):o=[A])}}else if(d===Tt.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(o!==null?o.push(Uu):o=[Uu])}d=d.return}o!==null&&gh(i,o,a,u),i.flags|=262144}function pf(o){for(o=o.firstContext;o!==null;){if(!tr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Rs(o){Ms=o,Fo=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function mn(o){return RS(Ms,o)}function hf(o,i){return Ms===null&&Rs(o),RS(o,i)}function RS(o,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},Fo===null){if(o===null)throw Error(r(308));Fo=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else Fo=Fo.next=i;return a}var qN=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(a,u){o.push(u)}};this.abort=function(){i.aborted=!0,o.forEach(function(a){return a()})}},GN=t.unstable_scheduleCallback,YN=t.unstable_NormalPriority,Ge={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yh(){return{controller:new qN,data:new Map,refCount:0}}function mu(o){o.refCount--,o.refCount===0&&GN(YN,function(){o.controller.abort()})}var pu=null,bh=0,Ra=0,Oa=null;function VN(o,i){if(pu===null){var a=pu=[];bh=0,Ra=xg(),Oa={status:"pending",value:void 0,then:function(u){a.push(u)}}}return bh++,i.then(OS,OS),i}function OS(){if(--bh===0&&pu!==null){Oa!==null&&(Oa.status="fulfilled");var o=pu;pu=null,Ra=0,Oa=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function KN(o,i){var a=[],u={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return o.then(function(){u.status="fulfilled",u.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(u.status="rejected",u.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),u}var NS=R.S;R.S=function(o,i){pE=Zn(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&VN(o,i),NS!==null&&NS(o,i)};var Os=O(null);function vh(){var o=Os.current;return o!==null?o:he.pooledCache}function gf(o,i){i===null?ot(Os,Os.current):ot(Os,i.pool)}function _S(){var o=vh();return o===null?null:{parent:Ge._currentValue,pool:o}}var Na=Error(r(460)),Sh=Error(r(474)),yf=Error(r(542)),bf={then:function(){}};function DS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function jS(o,i,a){switch(a=o[a],a===void 0?o.push(i):a!==i&&(i.then(Uo,Uo),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,LS(o),o;default:if(typeof i.status=="string")i.then(Uo,Uo);else{if(o=he,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(u){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=u}},function(u){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,LS(o),o}throw _s=i,Na}}function Ns(o){try{var i=o._init;return i(o._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(_s=a,Na):a}}var _s=null;function IS(){if(_s===null)throw Error(r(459));var o=_s;return _s=null,o}function LS(o){if(o===Na||o===yf)throw Error(r(483))}var _a=null,hu=0;function vf(o){var i=hu;return hu+=1,_a===null&&(_a=[]),jS(_a,o,i)}function gu(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Sf(o,i){throw i.$$typeof===x?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function zS(o){function i(F,U){if(o){var V=F.deletions;V===null?(F.deletions=[U],F.flags|=16):V.push(U)}}function a(F,U){if(!o)return null;for(;U!==null;)i(F,U),U=U.sibling;return null}function u(F){for(var U=new Map;F!==null;)F.key!==null?U.set(F.key,F):U.set(F.index,F),F=F.sibling;return U}function d(F,U){return F=Po(F,U),F.index=0,F.sibling=null,F}function p(F,U,V){return F.index=V,o?(V=F.alternate,V!==null?(V=V.index,V<U?(F.flags|=67108866,U):V):(F.flags|=67108866,U)):(F.flags|=1048576,U)}function v(F){return o&&F.alternate===null&&(F.flags|=67108866),F}function A(F,U,V,st){return U===null||U.tag!==6?(U=lh(V,F.mode,st),U.return=F,U):(U=d(U,V),U.return=F,U)}function I(F,U,V,st){var wt=V.type;return wt===w?rt(F,U,V.props.children,st,V.key):U!==null&&(U.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===k&&Ns(wt)===U.type)?(U=d(U,V.props),gu(U,V),U.return=F,U):(U=df(V.type,V.key,V.props,null,F.mode,st),gu(U,V),U.return=F,U)}function K(F,U,V,st){return U===null||U.tag!==4||U.stateNode.containerInfo!==V.containerInfo||U.stateNode.implementation!==V.implementation?(U=uh(V,F.mode,st),U.return=F,U):(U=d(U,V.children||[]),U.return=F,U)}function rt(F,U,V,st,wt){return U===null||U.tag!==7?(U=As(V,F.mode,st,wt),U.return=F,U):(U=d(U,V),U.return=F,U)}function lt(F,U,V){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=lh(""+U,F.mode,V),U.return=F,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case S:return V=df(U.type,U.key,U.props,null,F.mode,V),gu(V,U),V.return=F,V;case T:return U=uh(U,F.mode,V),U.return=F,U;case k:return U=Ns(U),lt(F,U,V)}if(Z(U)||ct(U))return U=As(U,F.mode,V,null),U.return=F,U;if(typeof U.then=="function")return lt(F,vf(U),V);if(U.$$typeof===j)return lt(F,hf(F,U),V);Sf(F,U)}return null}function X(F,U,V,st){var wt=U!==null?U.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return wt!==null?null:A(F,U,""+V,st);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return V.key===wt?I(F,U,V,st):null;case T:return V.key===wt?K(F,U,V,st):null;case k:return V=Ns(V),X(F,U,V,st)}if(Z(V)||ct(V))return wt!==null?null:rt(F,U,V,st,null);if(typeof V.then=="function")return X(F,U,vf(V),st);if(V.$$typeof===j)return X(F,U,hf(F,V),st);Sf(F,V)}return null}function J(F,U,V,st,wt){if(typeof st=="string"&&st!==""||typeof st=="number"||typeof st=="bigint")return F=F.get(V)||null,A(U,F,""+st,wt);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case S:return F=F.get(st.key===null?V:st.key)||null,I(U,F,st,wt);case T:return F=F.get(st.key===null?V:st.key)||null,K(U,F,st,wt);case k:return st=Ns(st),J(F,U,V,st,wt)}if(Z(st)||ct(st))return F=F.get(V)||null,rt(U,F,st,wt,null);if(typeof st.then=="function")return J(F,U,V,vf(st),wt);if(st.$$typeof===j)return J(F,U,V,hf(U,st),wt);Sf(U,st)}return null}function gt(F,U,V,st){for(var wt=null,Wt=null,vt=U,Bt=U=0,Vt=null;vt!==null&&Bt<V.length;Bt++){vt.index>Bt?(Vt=vt,vt=null):Vt=vt.sibling;var te=X(F,vt,V[Bt],st);if(te===null){vt===null&&(vt=Vt);break}o&&vt&&te.alternate===null&&i(F,vt),U=p(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te,vt=Vt}if(Bt===V.length)return a(F,vt),Xt&&Ho(F,Bt),wt;if(vt===null){for(;Bt<V.length;Bt++)vt=lt(F,V[Bt],st),vt!==null&&(U=p(vt,U,Bt),Wt===null?wt=vt:Wt.sibling=vt,Wt=vt);return Xt&&Ho(F,Bt),wt}for(vt=u(vt);Bt<V.length;Bt++)Vt=J(vt,F,Bt,V[Bt],st),Vt!==null&&(o&&Vt.alternate!==null&&vt.delete(Vt.key===null?Bt:Vt.key),U=p(Vt,U,Bt),Wt===null?wt=Vt:Wt.sibling=Vt,Wt=Vt);return o&&vt.forEach(function(Zi){return i(F,Zi)}),Xt&&Ho(F,Bt),wt}function Ct(F,U,V,st){if(V==null)throw Error(r(151));for(var wt=null,Wt=null,vt=U,Bt=U=0,Vt=null,te=V.next();vt!==null&&!te.done;Bt++,te=V.next()){vt.index>Bt?(Vt=vt,vt=null):Vt=vt.sibling;var Zi=X(F,vt,te.value,st);if(Zi===null){vt===null&&(vt=Vt);break}o&&vt&&Zi.alternate===null&&i(F,vt),U=p(Zi,U,Bt),Wt===null?wt=Zi:Wt.sibling=Zi,Wt=Zi,vt=Vt}if(te.done)return a(F,vt),Xt&&Ho(F,Bt),wt;if(vt===null){for(;!te.done;Bt++,te=V.next())te=lt(F,te.value,st),te!==null&&(U=p(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te);return Xt&&Ho(F,Bt),wt}for(vt=u(vt);!te.done;Bt++,te=V.next())te=J(vt,F,Bt,te.value,st),te!==null&&(o&&te.alternate!==null&&vt.delete(te.key===null?Bt:te.key),U=p(te,U,Bt),Wt===null?wt=te:Wt.sibling=te,Wt=te);return o&&vt.forEach(function(i3){return i(F,i3)}),Xt&&Ho(F,Bt),wt}function fe(F,U,V,st){if(typeof V=="object"&&V!==null&&V.type===w&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case S:t:{for(var wt=V.key;U!==null;){if(U.key===wt){if(wt=V.type,wt===w){if(U.tag===7){a(F,U.sibling),st=d(U,V.props.children),st.return=F,F=st;break t}}else if(U.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===k&&Ns(wt)===U.type){a(F,U.sibling),st=d(U,V.props),gu(st,V),st.return=F,F=st;break t}a(F,U);break}else i(F,U);U=U.sibling}V.type===w?(st=As(V.props.children,F.mode,st,V.key),st.return=F,F=st):(st=df(V.type,V.key,V.props,null,F.mode,st),gu(st,V),st.return=F,F=st)}return v(F);case T:t:{for(wt=V.key;U!==null;){if(U.key===wt)if(U.tag===4&&U.stateNode.containerInfo===V.containerInfo&&U.stateNode.implementation===V.implementation){a(F,U.sibling),st=d(U,V.children||[]),st.return=F,F=st;break t}else{a(F,U);break}else i(F,U);U=U.sibling}st=uh(V,F.mode,st),st.return=F,F=st}return v(F);case k:return V=Ns(V),fe(F,U,V,st)}if(Z(V))return gt(F,U,V,st);if(ct(V)){if(wt=ct(V),typeof wt!="function")throw Error(r(150));return V=wt.call(V),Ct(F,U,V,st)}if(typeof V.then=="function")return fe(F,U,vf(V),st);if(V.$$typeof===j)return fe(F,U,hf(F,V),st);Sf(F,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,U!==null&&U.tag===6?(a(F,U.sibling),st=d(U,V),st.return=F,F=st):(a(F,U),st=lh(V,F.mode,st),st.return=F,F=st),v(F)):a(F,U)}return function(F,U,V,st){try{hu=0;var wt=fe(F,U,V,st);return _a=null,wt}catch(vt){if(vt===Na||vt===yf)throw vt;var Wt=er(29,vt,null,F.mode);return Wt.lanes=st,Wt.return=F,Wt}}}var Ds=zS(!0),BS=zS(!1),ji=!1;function xh(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eh(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ii(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Li(o,i,a){var u=o.updateQueue;if(u===null)return null;if(u=u.shared,(ee&2)!==0){var d=u.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),u.pending=i,i=ff(o),xS(o,null,a),i}return cf(o,u,i,a),ff(o)}function yu(o,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,R1(o,a)}}function wh(o,i){var a=o.updateQueue,u=o.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=v:p=p.next=v,a=a.next}while(a!==null);p===null?d=p=i:p=p.next=i}else d=p=i;a={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},o.updateQueue=a;return}o=a.lastBaseUpdate,o===null?a.firstBaseUpdate=i:o.next=i,a.lastBaseUpdate=i}var Th=!1;function bu(){if(Th){var o=Oa;if(o!==null)throw o}}function vu(o,i,a,u){Th=!1;var d=o.updateQueue;ji=!1;var p=d.firstBaseUpdate,v=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var I=A,K=I.next;I.next=null,v===null?p=K:v.next=K,v=I;var rt=o.alternate;rt!==null&&(rt=rt.updateQueue,A=rt.lastBaseUpdate,A!==v&&(A===null?rt.firstBaseUpdate=K:A.next=K,rt.lastBaseUpdate=I))}if(p!==null){var lt=d.baseState;v=0,rt=K=I=null,A=p;do{var X=A.lane&-536870913,J=X!==A.lane;if(J?(Yt&X)===X:(u&X)===X){X!==0&&X===Ra&&(Th=!0),rt!==null&&(rt=rt.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});t:{var gt=o,Ct=A;X=i;var fe=a;switch(Ct.tag){case 1:if(gt=Ct.payload,typeof gt=="function"){lt=gt.call(fe,lt,X);break t}lt=gt;break t;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=Ct.payload,X=typeof gt=="function"?gt.call(fe,lt,X):gt,X==null)break t;lt=b({},lt,X);break t;case 2:ji=!0}}X=A.callback,X!==null&&(o.flags|=64,J&&(o.flags|=8192),J=d.callbacks,J===null?d.callbacks=[X]:J.push(X))}else J={lane:X,tag:A.tag,payload:A.payload,callback:A.callback,next:null},rt===null?(K=rt=J,I=lt):rt=rt.next=J,v|=X;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;J=A,A=J.next,J.next=null,d.lastBaseUpdate=J,d.shared.pending=null}}while(!0);rt===null&&(I=lt),d.baseState=I,d.firstBaseUpdate=K,d.lastBaseUpdate=rt,p===null&&(d.shared.lanes=0),Pi|=v,o.lanes=v,o.memoizedState=lt}}function US(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function kS(o,i){var a=o.callbacks;if(a!==null)for(o.callbacks=null,o=0;o<a.length;o++)US(a[o],i)}var Da=O(null),xf=O(0);function PS(o,i){o=Wo,ot(xf,o),ot(Da,i),Wo=o|i.baseLanes}function Ch(){ot(xf,Wo),ot(Da,Da.current)}function Ah(){Wo=xf.current,q(Da),q(xf)}var nr=O(null),Dr=null;function zi(o){var i=o.alternate;ot(Ue,Ue.current&1),ot(nr,o),Dr===null&&(i===null||Da.current!==null||i.memoizedState!==null)&&(Dr=o)}function $h(o){ot(Ue,Ue.current),ot(nr,o),Dr===null&&(Dr=o)}function HS(o){o.tag===22?(ot(Ue,Ue.current),ot(nr,o),Dr===null&&(Dr=o)):Bi()}function Bi(){ot(Ue,Ue.current),ot(nr,nr.current)}function rr(o){q(nr),Dr===o&&(Dr=null),q(Ue)}var Ue=O(0);function Ef(o){for(var i=o;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Dg(a)||jg(a)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Go=0,zt=null,ue=null,Ye=null,wf=!1,ja=!1,js=!1,Tf=0,Su=0,Ia=null,XN=0;function Le(){throw Error(r(321))}function Mh(o,i){if(i===null)return!1;for(var a=0;a<i.length&&a<o.length;a++)if(!tr(o[a],i[a]))return!1;return!0}function Rh(o,i,a,u,d,p){return Go=p,zt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,R.H=o===null||o.memoizedState===null?Cx:qh,js=!1,p=a(u,d),js=!1,ja&&(p=qS(i,a,u,d)),FS(o),p}function FS(o){R.H=wu;var i=ue!==null&&ue.next!==null;if(Go=0,Ye=ue=zt=null,wf=!1,Su=0,Ia=null,i)throw Error(r(300));o===null||Ve||(o=o.dependencies,o!==null&&pf(o)&&(Ve=!0))}function qS(o,i,a,u){zt=o;var d=0;do{if(ja&&(Ia=null),Su=0,ja=!1,25<=d)throw Error(r(301));if(d+=1,Ye=ue=null,o.updateQueue!=null){var p=o.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}R.H=Ax,p=i(a,u)}while(ja);return p}function QN(){var o=R.H,i=o.useState()[0];return i=typeof i.then=="function"?xu(i):i,o=o.useState()[0],(ue!==null?ue.memoizedState:null)!==o&&(zt.flags|=1024),i}function Oh(){var o=Tf!==0;return Tf=0,o}function Nh(o,i,a){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~a}function _h(o){if(wf){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}wf=!1}Go=0,Ye=ue=zt=null,ja=!1,Su=Tf=0,Ia=null}function Tn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?zt.memoizedState=Ye=o:Ye=Ye.next=o,Ye}function ke(){if(ue===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=ue.next;var i=Ye===null?zt.memoizedState:Ye.next;if(i!==null)Ye=i,ue=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));ue=o,o={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},Ye===null?zt.memoizedState=Ye=o:Ye=Ye.next=o}return Ye}function Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xu(o){var i=Su;return Su+=1,Ia===null&&(Ia=[]),o=jS(Ia,o,i),i=zt,(Ye===null?i.memoizedState:Ye.next)===null&&(i=i.alternate,R.H=i===null||i.memoizedState===null?Cx:qh),o}function Af(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return xu(o);if(o.$$typeof===j)return mn(o)}throw Error(r(438,String(o)))}function Dh(o){var i=null,a=zt.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var u=zt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=Cf(),zt.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(o),u=0;u<o;u++)a[u]=et;return i.index++,a}function Yo(o,i){return typeof i=="function"?i(o):i}function $f(o){var i=ke();return jh(i,ue,o)}function jh(o,i,a){var u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var d=o.baseQueue,p=u.pending;if(p!==null){if(d!==null){var v=d.next;d.next=p.next,p.next=v}i.baseQueue=d=p,u.pending=null}if(p=o.baseState,d===null)o.memoizedState=p;else{i=d.next;var A=v=null,I=null,K=i,rt=!1;do{var lt=K.lane&-536870913;if(lt!==K.lane?(Yt<)===lt:(Go<)===lt){var X=K.revertLane;if(X===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),lt===Ra&&(rt=!0);else if((Go&X)===X){K=K.next,X===Ra&&(rt=!0);continue}else lt={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},I===null?(A=I=lt,v=p):I=I.next=lt,zt.lanes|=X,Pi|=X;lt=K.action,js&&a(p,lt),p=K.hasEagerState?K.eagerState:a(p,lt)}else X={lane:lt,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},I===null?(A=I=X,v=p):I=I.next=X,zt.lanes|=lt,Pi|=lt;K=K.next}while(K!==null&&K!==i);if(I===null?v=p:I.next=A,!tr(p,o.memoizedState)&&(Ve=!0,rt&&(a=Oa,a!==null)))throw a;o.memoizedState=p,o.baseState=v,o.baseQueue=I,u.lastRenderedState=p}return d===null&&(u.lanes=0),[o.memoizedState,u.dispatch]}function Ih(o){var i=ke(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=o;var u=a.dispatch,d=a.pending,p=i.memoizedState;if(d!==null){a.pending=null;var v=d=d.next;do p=o(p,v.action),v=v.next;while(v!==d);tr(p,i.memoizedState)||(Ve=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),a.lastRenderedState=p}return[p,u]}function GS(o,i,a){var u=zt,d=ke(),p=Xt;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=i();var v=!tr((ue||d).memoizedState,a);if(v&&(d.memoizedState=a,Ve=!0),d=d.queue,Bh(KS.bind(null,u,d,o),[o]),d.getSnapshot!==i||v||Ye!==null&&Ye.memoizedState.tag&1){if(u.flags|=2048,La(9,{destroy:void 0},VS.bind(null,u,d,a,i),null),he===null)throw Error(r(349));p||(Go&127)!==0||YS(u,i,a)}return a}function YS(o,i,a){o.flags|=16384,o={getSnapshot:i,value:a},i=zt.updateQueue,i===null?(i=Cf(),zt.updateQueue=i,i.stores=[o]):(a=i.stores,a===null?i.stores=[o]:a.push(o))}function VS(o,i,a,u){i.value=a,i.getSnapshot=u,XS(i)&&QS(o)}function KS(o,i,a){return a(function(){XS(i)&&QS(o)})}function XS(o){var i=o.getSnapshot;o=o.value;try{var a=i();return!tr(o,a)}catch{return!0}}function QS(o){var i=Cs(o,2);i!==null&&kn(i,o,2)}function Lh(o){var i=Tn();if(typeof o=="function"){var a=o;if(o=a(),js){$i(!0);try{a()}finally{$i(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:o},i}function ZS(o,i,a,u){return o.baseState=a,jh(o,ue,typeof u=="function"?u:Yo)}function ZN(o,i,a,u,d){if(Of(o))throw Error(r(485));if(o=i.action,o!==null){var p={payload:d,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};R.T!==null?a(!0):p.isTransition=!1,u(p),a=i.pending,a===null?(p.next=i.pending=p,JS(i,p)):(p.next=a.next,i.pending=a.next=p)}}function JS(o,i){var a=i.action,u=i.payload,d=o.state;if(i.isTransition){var p=R.T,v={};R.T=v;try{var A=a(d,u),I=R.S;I!==null&&I(v,A),WS(o,i,A)}catch(K){zh(o,i,K)}finally{p!==null&&v.types!==null&&(p.types=v.types),R.T=p}}else try{p=a(d,u),WS(o,i,p)}catch(K){zh(o,i,K)}}function WS(o,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){tx(o,i,u)},function(u){return zh(o,i,u)}):tx(o,i,a)}function tx(o,i,a){i.status="fulfilled",i.value=a,ex(i),o.state=a,i=o.pending,i!==null&&(a=i.next,a===i?o.pending=null:(a=a.next,i.next=a,JS(o,a)))}function zh(o,i,a){var u=o.pending;if(o.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=a,ex(i),i=i.next;while(i!==u)}o.action=null}function ex(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function nx(o,i){return i}function rx(o,i){if(Xt){var a=he.formState;if(a!==null){t:{var u=zt;if(Xt){if(we){e:{for(var d=we,p=_r;d.nodeType!==8;){if(!p){d=null;break e}if(d=jr(d.nextSibling),d===null){d=null;break e}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){we=jr(d.nextSibling),u=d.data==="F!";break t}}_i(u)}u=!1}u&&(i=a[0])}}return a=Tn(),a.memoizedState=a.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nx,lastRenderedState:i},a.queue=u,a=Ex.bind(null,zt,u),u.dispatch=a,u=Lh(!1),p=Fh.bind(null,zt,!1,u.queue),u=Tn(),d={state:i,dispatch:null,action:o,pending:null},u.queue=d,a=ZN.bind(null,zt,d,p,a),d.dispatch=a,u.memoizedState=o,[i,a,!1]}function ox(o){var i=ke();return ix(i,ue,o)}function ix(o,i,a){if(i=jh(o,i,nx)[0],o=$f(Yo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=xu(i)}catch(v){throw v===Na?yf:v}else u=i;i=ke();var d=i.queue,p=d.dispatch;return a!==i.memoizedState&&(zt.flags|=2048,La(9,{destroy:void 0},JN.bind(null,d,a),null)),[u,p,o]}function JN(o,i){o.action=i}function sx(o){var i=ke(),a=ue;if(a!==null)return ix(i,a,o);ke(),i=i.memoizedState,a=ke();var u=a.queue.dispatch;return a.memoizedState=o,[i,u,!1]}function La(o,i,a,u){return o={tag:o,create:a,deps:u,inst:i,next:null},i=zt.updateQueue,i===null&&(i=Cf(),zt.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=o.next=o:(u=a.next,a.next=o,o.next=u,i.lastEffect=o),o}function ax(){return ke().memoizedState}function Mf(o,i,a,u){var d=Tn();zt.flags|=o,d.memoizedState=La(1|i,{destroy:void 0},a,u===void 0?null:u)}function Rf(o,i,a,u){var d=ke();u=u===void 0?null:u;var p=d.memoizedState.inst;ue!==null&&u!==null&&Mh(u,ue.memoizedState.deps)?d.memoizedState=La(i,p,a,u):(zt.flags|=o,d.memoizedState=La(1|i,p,a,u))}function lx(o,i){Mf(8390656,8,o,i)}function Bh(o,i){Rf(2048,8,o,i)}function WN(o){zt.flags|=4;var i=zt.updateQueue;if(i===null)i=Cf(),zt.updateQueue=i,i.events=[o];else{var a=i.events;a===null?i.events=[o]:a.push(o)}}function ux(o){var i=ke().memoizedState;return WN({ref:i,nextImpl:o}),function(){if((ee&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function cx(o,i){return Rf(4,2,o,i)}function fx(o,i){return Rf(4,4,o,i)}function dx(o,i){if(typeof i=="function"){o=o();var a=i(o);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function mx(o,i,a){a=a!=null?a.concat([o]):null,Rf(4,4,dx.bind(null,i,o),a)}function Uh(){}function px(o,i){var a=ke();i=i===void 0?null:i;var u=a.memoizedState;return i!==null&&Mh(i,u[1])?u[0]:(a.memoizedState=[o,i],o)}function hx(o,i){var a=ke();i=i===void 0?null:i;var u=a.memoizedState;if(i!==null&&Mh(i,u[1]))return u[0];if(u=o(),js){$i(!0);try{o()}finally{$i(!1)}}return a.memoizedState=[u,i],u}function kh(o,i,a){return a===void 0||(Go&1073741824)!==0&&(Yt&261930)===0?o.memoizedState=i:(o.memoizedState=a,o=gE(),zt.lanes|=o,Pi|=o,a)}function gx(o,i,a,u){return tr(a,i)?a:Da.current!==null?(o=kh(o,a,u),tr(o,i)||(Ve=!0),o):(Go&42)===0||(Go&1073741824)!==0&&(Yt&261930)===0?(Ve=!0,o.memoizedState=a):(o=gE(),zt.lanes|=o,Pi|=o,i)}function yx(o,i,a,u,d){var p=B.p;B.p=p!==0&&8>p?p:8;var v=R.T,A={};R.T=A,Fh(o,!1,i,a);try{var I=d(),K=R.S;if(K!==null&&K(A,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var rt=KN(I,u);Eu(o,i,rt,sr(o))}else Eu(o,i,u,sr(o))}catch(lt){Eu(o,i,{then:function(){},status:"rejected",reason:lt},sr())}finally{B.p=p,v!==null&&A.types!==null&&(v.types=A.types),R.T=v}}function t_(){}function Ph(o,i,a,u){if(o.tag!==5)throw Error(r(476));var d=bx(o).queue;yx(o,d,i,D,a===null?t_:function(){return vx(o),a(u)})}function bx(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:D},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:a},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function vx(o){var i=bx(o);i.next===null&&(i=o.alternate.memoizedState),Eu(o,i.next.queue,{},sr())}function Hh(){return mn(Uu)}function Sx(){return ke().memoizedState}function xx(){return ke().memoizedState}function e_(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var a=sr();o=Ii(a);var u=Li(i,o,a);u!==null&&(kn(u,i,a),yu(u,i,a)),i={cache:yh()},o.payload=i;return}i=i.return}}function n_(o,i,a){var u=sr();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Of(o)?wx(i,a):(a=sh(o,i,a,u),a!==null&&(kn(a,o,u),Tx(a,i,u)))}function Ex(o,i,a){var u=sr();Eu(o,i,a,u)}function Eu(o,i,a,u){var d={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(o))wx(i,d);else{var p=o.alternate;if(o.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var v=i.lastRenderedState,A=p(v,a);if(d.hasEagerState=!0,d.eagerState=A,tr(A,v))return cf(o,i,d,0),he===null&&uf(),!1}catch{}if(a=sh(o,i,d,u),a!==null)return kn(a,o,u),Tx(a,i,u),!0}return!1}function Fh(o,i,a,u){if(u={lane:2,revertLane:xg(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Of(o)){if(i)throw Error(r(479))}else i=sh(o,a,u,2),i!==null&&kn(i,o,2)}function Of(o){var i=o.alternate;return o===zt||i!==null&&i===zt}function wx(o,i){ja=wf=!0;var a=o.pending;a===null?i.next=i:(i.next=a.next,a.next=i),o.pending=i}function Tx(o,i,a){if((a&4194048)!==0){var u=i.lanes;u&=o.pendingLanes,a|=u,i.lanes=a,R1(o,a)}}var wu={readContext:mn,use:Af,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};wu.useEffectEvent=Le;var Cx={readContext:mn,use:Af,useCallback:function(o,i){return Tn().memoizedState=[o,i===void 0?null:i],o},useContext:mn,useEffect:lx,useImperativeHandle:function(o,i,a){a=a!=null?a.concat([o]):null,Mf(4194308,4,dx.bind(null,i,o),a)},useLayoutEffect:function(o,i){return Mf(4194308,4,o,i)},useInsertionEffect:function(o,i){Mf(4,2,o,i)},useMemo:function(o,i){var a=Tn();i=i===void 0?null:i;var u=o();if(js){$i(!0);try{o()}finally{$i(!1)}}return a.memoizedState=[u,i],u},useReducer:function(o,i,a){var u=Tn();if(a!==void 0){var d=a(i);if(js){$i(!0);try{a(i)}finally{$i(!1)}}}else d=i;return u.memoizedState=u.baseState=d,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:d},u.queue=o,o=o.dispatch=n_.bind(null,zt,o),[u.memoizedState,o]},useRef:function(o){var i=Tn();return o={current:o},i.memoizedState=o},useState:function(o){o=Lh(o);var i=o.queue,a=Ex.bind(null,zt,i);return i.dispatch=a,[o.memoizedState,a]},useDebugValue:Uh,useDeferredValue:function(o,i){var a=Tn();return kh(a,o,i)},useTransition:function(){var o=Lh(!1);return o=yx.bind(null,zt,o.queue,!0,!1),Tn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,a){var u=zt,d=Tn();if(Xt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=i(),he===null)throw Error(r(349));(Yt&127)!==0||YS(u,i,a)}d.memoizedState=a;var p={value:a,getSnapshot:i};return d.queue=p,lx(KS.bind(null,u,p,o),[o]),u.flags|=2048,La(9,{destroy:void 0},VS.bind(null,u,p,a,i),null),a},useId:function(){var o=Tn(),i=he.identifierPrefix;if(Xt){var a=bo,u=yo;a=(u&~(1<<32-Wn(u)-1)).toString(32)+a,i="_"+i+"R_"+a,a=Tf++,0<a&&(i+="H"+a.toString(32)),i+="_"}else a=XN++,i="_"+i+"r_"+a.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:Hh,useFormState:rx,useActionState:rx,useOptimistic:function(o){var i=Tn();i.memoizedState=i.baseState=o;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Fh.bind(null,zt,!0,a),a.dispatch=i,[o,i]},useMemoCache:Dh,useCacheRefresh:function(){return Tn().memoizedState=e_.bind(null,zt)},useEffectEvent:function(o){var i=Tn(),a={impl:o};return i.memoizedState=a,function(){if((ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},qh={readContext:mn,use:Af,useCallback:px,useContext:mn,useEffect:Bh,useImperativeHandle:mx,useInsertionEffect:cx,useLayoutEffect:fx,useMemo:hx,useReducer:$f,useRef:ax,useState:function(){return $f(Yo)},useDebugValue:Uh,useDeferredValue:function(o,i){var a=ke();return gx(a,ue.memoizedState,o,i)},useTransition:function(){var o=$f(Yo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:xu(o),i]},useSyncExternalStore:GS,useId:Sx,useHostTransitionStatus:Hh,useFormState:ox,useActionState:ox,useOptimistic:function(o,i){var a=ke();return ZS(a,ue,o,i)},useMemoCache:Dh,useCacheRefresh:xx};qh.useEffectEvent=ux;var Ax={readContext:mn,use:Af,useCallback:px,useContext:mn,useEffect:Bh,useImperativeHandle:mx,useInsertionEffect:cx,useLayoutEffect:fx,useMemo:hx,useReducer:Ih,useRef:ax,useState:function(){return Ih(Yo)},useDebugValue:Uh,useDeferredValue:function(o,i){var a=ke();return ue===null?kh(a,o,i):gx(a,ue.memoizedState,o,i)},useTransition:function(){var o=Ih(Yo)[0],i=ke().memoizedState;return[typeof o=="boolean"?o:xu(o),i]},useSyncExternalStore:GS,useId:Sx,useHostTransitionStatus:Hh,useFormState:sx,useActionState:sx,useOptimistic:function(o,i){var a=ke();return ue!==null?ZS(a,ue,o,i):(a.baseState=o,[o,a.queue.dispatch])},useMemoCache:Dh,useCacheRefresh:xx};Ax.useEffectEvent=ux;function Gh(o,i,a,u){i=o.memoizedState,a=a(u,i),a=a==null?i:b({},i,a),o.memoizedState=a,o.lanes===0&&(o.updateQueue.baseState=a)}var Yh={enqueueSetState:function(o,i,a){o=o._reactInternals;var u=sr(),d=Ii(u);d.payload=i,a!=null&&(d.callback=a),i=Li(o,d,u),i!==null&&(kn(i,o,u),yu(i,o,u))},enqueueReplaceState:function(o,i,a){o=o._reactInternals;var u=sr(),d=Ii(u);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=Li(o,d,u),i!==null&&(kn(i,o,u),yu(i,o,u))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var a=sr(),u=Ii(a);u.tag=2,i!=null&&(u.callback=i),i=Li(o,u,a),i!==null&&(kn(i,o,a),yu(i,o,a))}};function $x(o,i,a,u,d,p,v){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(u,p,v):i.prototype&&i.prototype.isPureReactComponent?!uu(a,u)||!uu(d,p):!0}function Mx(o,i,a,u){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,u),i.state!==o&&Yh.enqueueReplaceState(i,i.state,null)}function Is(o,i){var a=i;if("ref"in i){a={};for(var u in i)u!=="ref"&&(a[u]=i[u])}if(o=o.defaultProps){a===i&&(a=b({},a));for(var d in o)a[d]===void 0&&(a[d]=o[d])}return a}function Rx(o){lf(o)}function Ox(o){console.error(o)}function Nx(o){lf(o)}function Nf(o,i){try{var a=o.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function _x(o,i,a){try{var u=o.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Vh(o,i,a){return a=Ii(a),a.tag=3,a.payload={element:null},a.callback=function(){Nf(o,i)},a}function Dx(o){return o=Ii(o),o.tag=3,o}function jx(o,i,a,u){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=u.value;o.payload=function(){return d(p)},o.callback=function(){_x(i,a,u)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(o.callback=function(){_x(i,a,u),typeof d!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function r_(o,i,a,u,d){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=a.alternate,i!==null&&Ma(i,a,d,!0),a=nr.current,a!==null){switch(a.tag){case 31:case 13:return Dr===null?Ff():a.alternate===null&&ze===0&&(ze=3),a.flags&=-257,a.flags|=65536,a.lanes=d,u===bf?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([u]):i.add(u),bg(o,u,d)),!1;case 22:return a.flags|=65536,u===bf?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([u]):a.add(u)),bg(o,u,d)),!1}throw Error(r(435,a.tag))}return bg(o,u,d),Ff(),!1}if(Xt)return i=nr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,u!==dh&&(o=Error(r(422),{cause:u}),du(Rr(o,a)))):(u!==dh&&(i=Error(r(423),{cause:u}),du(Rr(i,a))),o=o.current.alternate,o.flags|=65536,d&=-d,o.lanes|=d,u=Rr(u,a),d=Vh(o.stateNode,u,d),wh(o,d),ze!==4&&(ze=2)),!1;var p=Error(r(520),{cause:u});if(p=Rr(p,a),Nu===null?Nu=[p]:Nu.push(p),ze!==4&&(ze=2),i===null)return!0;u=Rr(u,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,o=d&-d,a.lanes|=o,o=Vh(a.stateNode,u,o),wh(a,o),!1;case 1:if(i=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Hi===null||!Hi.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=Dx(d),jx(d,o,a,u),wh(a,d),!1}a=a.return}while(a!==null);return!1}var Kh=Error(r(461)),Ve=!1;function pn(o,i,a,u){i.child=o===null?BS(i,null,a,u):Ds(i,o.child,a,u)}function Ix(o,i,a,u,d){a=a.render;var p=i.ref;if("ref"in u){var v={};for(var A in u)A!=="ref"&&(v[A]=u[A])}else v=u;return Rs(i),u=Rh(o,i,a,v,p,d),A=Oh(),o!==null&&!Ve?(Nh(o,i,d),Vo(o,i,d)):(Xt&&A&&ch(i),i.flags|=1,pn(o,i,u,d),i.child)}function Lx(o,i,a,u,d){if(o===null){var p=a.type;return typeof p=="function"&&!ah(p)&&p.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=p,zx(o,i,p,u,d)):(o=df(a.type,null,u,i,i.mode,d),o.ref=i.ref,o.return=i,i.child=o)}if(p=o.child,!ng(o,d)){var v=p.memoizedProps;if(a=a.compare,a=a!==null?a:uu,a(v,u)&&o.ref===i.ref)return Vo(o,i,d)}return i.flags|=1,o=Po(p,u),o.ref=i.ref,o.return=i,i.child=o}function zx(o,i,a,u,d){if(o!==null){var p=o.memoizedProps;if(uu(p,u)&&o.ref===i.ref)if(Ve=!1,i.pendingProps=u=p,ng(o,d))(o.flags&131072)!==0&&(Ve=!0);else return i.lanes=o.lanes,Vo(o,i,d)}return Xh(o,i,a,u,d)}function Bx(o,i,a,u){var d=u.children,p=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,o!==null){for(u=i.child=o.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~p}else u=0,i.child=null;return Ux(o,i,p,a,u)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&gf(i,p!==null?p.cachePool:null),p!==null?PS(i,p):Ch(),HS(i);else return u=i.lanes=536870912,Ux(o,i,p!==null?p.baseLanes|a:a,a,u)}else p!==null?(gf(i,p.cachePool),PS(i,p),Bi(),i.memoizedState=null):(o!==null&&gf(i,null),Ch(),Bi());return pn(o,i,d,a),i.child}function Tu(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Ux(o,i,a,u,d){var p=vh();return p=p===null?null:{parent:Ge._currentValue,pool:p},i.memoizedState={baseLanes:a,cachePool:p},o!==null&&gf(i,null),Ch(),HS(i),o!==null&&Ma(o,i,u,!0),i.childLanes=d,null}function _f(o,i){return i=jf({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function kx(o,i,a){return Ds(i,o.child,null,a),o=_f(i,i.pendingProps),o.flags|=2,rr(i),i.memoizedState=null,o}function o_(o,i,a){var u=i.pendingProps,d=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(Xt){if(u.mode==="hidden")return o=_f(i,u),i.lanes=536870912,Tu(null,o);if($h(i),(o=we)?(o=JE(o,_r),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Oi!==null?{id:yo,overflow:bo}:null,retryLane:536870912,hydrationErrors:null},a=wS(o),a.return=i,i.child=a,dn=i,we=null)):o=null,o===null)throw _i(i);return i.lanes=536870912,null}return _f(i,u)}var p=o.memoizedState;if(p!==null){var v=p.dehydrated;if($h(i),d)if(i.flags&256)i.flags&=-257,i=kx(o,i,a);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(Ve||Ma(o,i,a,!1),d=(a&o.childLanes)!==0,Ve||d){if(u=he,u!==null&&(v=O1(u,a),v!==0&&v!==p.retryLane))throw p.retryLane=v,Cs(o,v),kn(u,o,v),Kh;Ff(),i=kx(o,i,a)}else o=p.treeContext,we=jr(v.nextSibling),dn=i,Xt=!0,Ni=null,_r=!1,o!==null&&AS(i,o),i=_f(i,u),i.flags|=4096;return i}return o=Po(o.child,{mode:u.mode,children:u.children}),o.ref=i.ref,i.child=o,o.return=i,o}function Df(o,i){var a=i.ref;if(a===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(o===null||o.ref!==a)&&(i.flags|=4194816)}}function Xh(o,i,a,u,d){return Rs(i),a=Rh(o,i,a,u,void 0,d),u=Oh(),o!==null&&!Ve?(Nh(o,i,d),Vo(o,i,d)):(Xt&&u&&ch(i),i.flags|=1,pn(o,i,a,d),i.child)}function Px(o,i,a,u,d,p){return Rs(i),i.updateQueue=null,a=qS(i,u,a,d),FS(o),u=Oh(),o!==null&&!Ve?(Nh(o,i,p),Vo(o,i,p)):(Xt&&u&&ch(i),i.flags|=1,pn(o,i,a,p),i.child)}function Hx(o,i,a,u,d){if(Rs(i),i.stateNode===null){var p=Ta,v=a.contextType;typeof v=="object"&&v!==null&&(p=mn(v)),p=new a(u,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Yh,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=u,p.state=i.memoizedState,p.refs={},xh(i),v=a.contextType,p.context=typeof v=="object"&&v!==null?mn(v):Ta,p.state=i.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Gh(i,a,v,u),p.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&Yh.enqueueReplaceState(p,p.state,null),vu(i,u,p,d),bu(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(o===null){p=i.stateNode;var A=i.memoizedProps,I=Is(a,A);p.props=I;var K=p.context,rt=a.contextType;v=Ta,typeof rt=="object"&&rt!==null&&(v=mn(rt));var lt=a.getDerivedStateFromProps;rt=typeof lt=="function"||typeof p.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,rt||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(A||K!==v)&&Mx(i,p,u,v),ji=!1;var X=i.memoizedState;p.state=X,vu(i,u,p,d),bu(),K=i.memoizedState,A||X!==K||ji?(typeof lt=="function"&&(Gh(i,a,lt,u),K=i.memoizedState),(I=ji||$x(i,a,I,u,X,K,v))?(rt||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=K),p.props=u,p.state=K,p.context=v,u=I):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{p=i.stateNode,Eh(o,i),v=i.memoizedProps,rt=Is(a,v),p.props=rt,lt=i.pendingProps,X=p.context,K=a.contextType,I=Ta,typeof K=="object"&&K!==null&&(I=mn(K)),A=a.getDerivedStateFromProps,(K=typeof A=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==lt||X!==I)&&Mx(i,p,u,I),ji=!1,X=i.memoizedState,p.state=X,vu(i,u,p,d),bu();var J=i.memoizedState;v!==lt||X!==J||ji||o!==null&&o.dependencies!==null&&pf(o.dependencies)?(typeof A=="function"&&(Gh(i,a,A,u),J=i.memoizedState),(rt=ji||$x(i,a,rt,u,X,J,I)||o!==null&&o.dependencies!==null&&pf(o.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,J,I),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,J,I)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=J),p.props=u,p.state=J,p.context=I,u=rt):(typeof p.componentDidUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===o.memoizedProps&&X===o.memoizedState||(i.flags|=1024),u=!1)}return p=u,Df(o,i),u=(i.flags&128)!==0,p||u?(p=i.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,o!==null&&u?(i.child=Ds(i,o.child,null,d),i.child=Ds(i,null,a,d)):pn(o,i,a,d),i.memoizedState=p.state,o=i.child):o=Vo(o,i,d),o}function Fx(o,i,a,u){return $s(),i.flags|=256,pn(o,i,a,u),i.child}var Qh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zh(o){return{baseLanes:o,cachePool:_S()}}function Jh(o,i,a){return o=o!==null?o.childLanes&~a:0,i&&(o|=ir),o}function qx(o,i,a){var u=i.pendingProps,d=!1,p=(i.flags&128)!==0,v;if((v=p)||(v=o!==null&&o.memoizedState===null?!1:(Ue.current&2)!==0),v&&(d=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,o===null){if(Xt){if(d?zi(i):Bi(),(o=we)?(o=JE(o,_r),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:Oi!==null?{id:yo,overflow:bo}:null,retryLane:536870912,hydrationErrors:null},a=wS(o),a.return=i,i.child=a,dn=i,we=null)):o=null,o===null)throw _i(i);return jg(o)?i.lanes=32:i.lanes=536870912,null}var A=u.children;return u=u.fallback,d?(Bi(),d=i.mode,A=jf({mode:"hidden",children:A},d),u=As(u,d,a,null),A.return=i,u.return=i,A.sibling=u,i.child=A,u=i.child,u.memoizedState=Zh(a),u.childLanes=Jh(o,v,a),i.memoizedState=Qh,Tu(null,u)):(zi(i),Wh(i,A))}var I=o.memoizedState;if(I!==null&&(A=I.dehydrated,A!==null)){if(p)i.flags&256?(zi(i),i.flags&=-257,i=tg(o,i,a)):i.memoizedState!==null?(Bi(),i.child=o.child,i.flags|=128,i=null):(Bi(),A=u.fallback,d=i.mode,u=jf({mode:"visible",children:u.children},d),A=As(A,d,a,null),A.flags|=2,u.return=i,A.return=i,u.sibling=A,i.child=u,Ds(i,o.child,null,a),u=i.child,u.memoizedState=Zh(a),u.childLanes=Jh(o,v,a),i.memoizedState=Qh,i=Tu(null,u));else if(zi(i),jg(A)){if(v=A.nextSibling&&A.nextSibling.dataset,v)var K=v.dgst;v=K,u=Error(r(419)),u.stack="",u.digest=v,du({value:u,source:null,stack:null}),i=tg(o,i,a)}else if(Ve||Ma(o,i,a,!1),v=(a&o.childLanes)!==0,Ve||v){if(v=he,v!==null&&(u=O1(v,a),u!==0&&u!==I.retryLane))throw I.retryLane=u,Cs(o,u),kn(v,o,u),Kh;Dg(A)||Ff(),i=tg(o,i,a)}else Dg(A)?(i.flags|=192,i.child=o.child,i=null):(o=I.treeContext,we=jr(A.nextSibling),dn=i,Xt=!0,Ni=null,_r=!1,o!==null&&AS(i,o),i=Wh(i,u.children),i.flags|=4096);return i}return d?(Bi(),A=u.fallback,d=i.mode,I=o.child,K=I.sibling,u=Po(I,{mode:"hidden",children:u.children}),u.subtreeFlags=I.subtreeFlags&65011712,K!==null?A=Po(K,A):(A=As(A,d,a,null),A.flags|=2),A.return=i,u.return=i,u.sibling=A,i.child=u,Tu(null,u),u=i.child,A=o.child.memoizedState,A===null?A=Zh(a):(d=A.cachePool,d!==null?(I=Ge._currentValue,d=d.parent!==I?{parent:I,pool:I}:d):d=_S(),A={baseLanes:A.baseLanes|a,cachePool:d}),u.memoizedState=A,u.childLanes=Jh(o,v,a),i.memoizedState=Qh,Tu(o.child,u)):(zi(i),a=o.child,o=a.sibling,a=Po(a,{mode:"visible",children:u.children}),a.return=i,a.sibling=null,o!==null&&(v=i.deletions,v===null?(i.deletions=[o],i.flags|=16):v.push(o)),i.child=a,i.memoizedState=null,a)}function Wh(o,i){return i=jf({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function jf(o,i){return o=er(22,o,null,i),o.lanes=0,o}function tg(o,i,a){return Ds(i,o.child,null,a),o=Wh(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function Gx(o,i,a){o.lanes|=i;var u=o.alternate;u!==null&&(u.lanes|=i),hh(o.return,i,a)}function eg(o,i,a,u,d,p){var v=o.memoizedState;v===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:d,treeForkCount:p}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=a,v.tailMode=d,v.treeForkCount=p)}function Yx(o,i,a){var u=i.pendingProps,d=u.revealOrder,p=u.tail;u=u.children;var v=Ue.current,A=(v&2)!==0;if(A?(v=v&1|2,i.flags|=128):v&=1,ot(Ue,v),pn(o,i,u,a),u=Xt?fu:0,!A&&o!==null&&(o.flags&128)!==0)t:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Gx(o,a,i);else if(o.tag===19)Gx(o,a,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break t;for(;o.sibling===null;){if(o.return===null||o.return===i)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(d){case"forwards":for(a=i.child,d=null;a!==null;)o=a.alternate,o!==null&&Ef(o)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),eg(i,!1,d,a,p,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(o=d.alternate,o!==null&&Ef(o)===null){i.child=d;break}o=d.sibling,d.sibling=a,a=d,d=o}eg(i,!0,a,null,p,u);break;case"together":eg(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Vo(o,i,a){if(o!==null&&(i.dependencies=o.dependencies),Pi|=i.lanes,(a&i.childLanes)===0)if(o!==null){if(Ma(o,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,a=Po(o,o.pendingProps),i.child=a,a.return=i;o.sibling!==null;)o=o.sibling,a=a.sibling=Po(o,o.pendingProps),a.return=i;a.sibling=null}return i.child}function ng(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&pf(o)))}function i_(o,i,a){switch(i.tag){case 3:Jt(i,i.stateNode.containerInfo),Di(i,Ge,o.memoizedState.cache),$s();break;case 27:case 5:ie(i);break;case 4:Jt(i,i.stateNode.containerInfo);break;case 10:Di(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,$h(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(zi(i),i.flags|=128,null):(a&i.child.childLanes)!==0?qx(o,i,a):(zi(i),o=Vo(o,i,a),o!==null?o.sibling:null);zi(i);break;case 19:var d=(o.flags&128)!==0;if(u=(a&i.childLanes)!==0,u||(Ma(o,i,a,!1),u=(a&i.childLanes)!==0),d){if(u)return Yx(o,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ot(Ue,Ue.current),u)break;return null;case 22:return i.lanes=0,Bx(o,i,a,i.pendingProps);case 24:Di(i,Ge,o.memoizedState.cache)}return Vo(o,i,a)}function Vx(o,i,a){if(o!==null)if(o.memoizedProps!==i.pendingProps)Ve=!0;else{if(!ng(o,a)&&(i.flags&128)===0)return Ve=!1,i_(o,i,a);Ve=(o.flags&131072)!==0}else Ve=!1,Xt&&(i.flags&1048576)!==0&&CS(i,fu,i.index);switch(i.lanes=0,i.tag){case 16:t:{var u=i.pendingProps;if(o=Ns(i.elementType),i.type=o,typeof o=="function")ah(o)?(u=Is(o,u),i.tag=1,i=Hx(null,i,o,u,a)):(i.tag=0,i=Xh(null,i,o,u,a));else{if(o!=null){var d=o.$$typeof;if(d===H){i.tag=11,i=Ix(null,i,o,u,a);break t}else if(d===z){i.tag=14,i=Lx(null,i,o,u,a);break t}}throw i=Y(o)||o,Error(r(306,i,""))}}return i;case 0:return Xh(o,i,i.type,i.pendingProps,a);case 1:return u=i.type,d=Is(u,i.pendingProps),Hx(o,i,u,d,a);case 3:t:{if(Jt(i,i.stateNode.containerInfo),o===null)throw Error(r(387));u=i.pendingProps;var p=i.memoizedState;d=p.element,Eh(o,i),vu(i,u,null,a);var v=i.memoizedState;if(u=v.cache,Di(i,Ge,u),u!==p.cache&&gh(i,[Ge],a,!0),bu(),u=v.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=Fx(o,i,u,a);break t}else if(u!==d){d=Rr(Error(r(424)),i),du(d),i=Fx(o,i,u,a);break t}else for(o=i.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,we=jr(o.firstChild),dn=i,Xt=!0,Ni=null,_r=!0,a=BS(i,null,u,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if($s(),u===d){i=Vo(o,i,a);break t}pn(o,i,u,a)}i=i.child}return i;case 26:return Df(o,i),o===null?(a=ow(i.type,null,i.pendingProps,null))?i.memoizedState=a:Xt||(a=i.type,o=i.pendingProps,u=Qf(ht.current).createElement(a),u[fn]=i,u[jn]=o,hn(u,a,o),sn(u),i.stateNode=u):i.memoizedState=ow(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return ie(i),o===null&&Xt&&(u=i.stateNode=ew(i.type,i.pendingProps,ht.current),dn=i,_r=!0,d=we,Yi(i.type)?(Ig=d,we=jr(u.firstChild)):we=d),pn(o,i,i.pendingProps.children,a),Df(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&Xt&&((d=u=we)&&(u=I_(u,i.type,i.pendingProps,_r),u!==null?(i.stateNode=u,dn=i,we=jr(u.firstChild),_r=!1,d=!0):d=!1),d||_i(i)),ie(i),d=i.type,p=i.pendingProps,v=o!==null?o.memoizedProps:null,u=p.children,Og(d,p)?u=null:v!==null&&Og(d,v)&&(i.flags|=32),i.memoizedState!==null&&(d=Rh(o,i,QN,null,null,a),Uu._currentValue=d),Df(o,i),pn(o,i,u,a),i.child;case 6:return o===null&&Xt&&((o=a=we)&&(a=L_(a,i.pendingProps,_r),a!==null?(i.stateNode=a,dn=i,we=null,o=!0):o=!1),o||_i(i)),null;case 13:return qx(o,i,a);case 4:return Jt(i,i.stateNode.containerInfo),u=i.pendingProps,o===null?i.child=Ds(i,null,u,a):pn(o,i,u,a),i.child;case 11:return Ix(o,i,i.type,i.pendingProps,a);case 7:return pn(o,i,i.pendingProps,a),i.child;case 8:return pn(o,i,i.pendingProps.children,a),i.child;case 12:return pn(o,i,i.pendingProps.children,a),i.child;case 10:return u=i.pendingProps,Di(i,i.type,u.value),pn(o,i,u.children,a),i.child;case 9:return d=i.type._context,u=i.pendingProps.children,Rs(i),d=mn(d),u=u(d),i.flags|=1,pn(o,i,u,a),i.child;case 14:return Lx(o,i,i.type,i.pendingProps,a);case 15:return zx(o,i,i.type,i.pendingProps,a);case 19:return Yx(o,i,a);case 31:return o_(o,i,a);case 22:return Bx(o,i,a,i.pendingProps);case 24:return Rs(i),u=mn(Ge),o===null?(d=vh(),d===null&&(d=he,p=yh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),i.memoizedState={parent:u,cache:d},xh(i),Di(i,Ge,d)):((o.lanes&a)!==0&&(Eh(o,i),vu(i,null,null,a),bu()),d=o.memoizedState,p=i.memoizedState,d.parent!==u?(d={parent:u,cache:u},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Di(i,Ge,u)):(u=p.cache,Di(i,Ge,u),u!==d.cache&&gh(i,[Ge],a,!0))),pn(o,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Ko(o){o.flags|=4}function rg(o,i,a,u,d){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,(d&335544128)===d)if(o.stateNode.complete)o.flags|=8192;else if(SE())o.flags|=8192;else throw _s=bf,Sh}else o.flags&=-16777217}function Kx(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!uw(i))if(SE())o.flags|=8192;else throw _s=bf,Sh}function If(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?$1():536870912,o.lanes|=i,ka|=i)}function Cu(o,i){if(!Xt)switch(o.tailMode){case"hidden":i=o.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?o.tail=null:a.sibling=null;break;case"collapsed":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:u.sibling=null}}function Te(o){var i=o.alternate!==null&&o.alternate.child===o.child,a=0,u=0;if(i)for(var d=o.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=o,d=d.sibling;else for(d=o.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=o,d=d.sibling;return o.subtreeFlags|=u,o.childLanes=a,i}function s_(o,i,a){var u=i.pendingProps;switch(fh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(i),null;case 1:return Te(i),null;case 3:return a=i.stateNode,u=null,o!==null&&(u=o.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),qo(Ge),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(o===null||o.child===null)&&($a(i)?Ko(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,mh())),Te(i),null;case 26:var d=i.type,p=i.memoizedState;return o===null?(Ko(i),p!==null?(Te(i),Kx(i,p)):(Te(i),rg(i,d,null,u,a))):p?p!==o.memoizedState?(Ko(i),Te(i),Kx(i,p)):(Te(i),i.flags&=-16777217):(o=o.memoizedProps,o!==u&&Ko(i),Te(i),rg(i,d,o,u,a)),null;case 27:if(We(i),a=ht.current,d=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&Ko(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Te(i),null}o=ft.current,$a(i)?$S(i):(o=ew(d,u,a),i.stateNode=o,Ko(i))}return Te(i),null;case 5:if(We(i),d=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&Ko(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Te(i),null}if(p=ft.current,$a(i))$S(i);else{var v=Qf(ht.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?v.createElement("select",{is:u.is}):v.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?v.createElement(d,{is:u.is}):v.createElement(d)}}p[fn]=i,p[jn]=u;t:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break t;for(;v.sibling===null;){if(v.return===null||v.return===i)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=p;t:switch(hn(p,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&Ko(i)}}return Te(i),rg(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,a),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==u&&Ko(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(r(166));if(o=ht.current,$a(i)){if(o=i.stateNode,a=i.memoizedProps,u=null,d=dn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}o[fn]=i,o=!!(o.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||qE(o.nodeValue,a)),o||_i(i,!0)}else o=Qf(o).createTextNode(u),o[fn]=i,i.stateNode=o}return Te(i),null;case 31:if(a=i.memoizedState,o===null||o.memoizedState!==null){if(u=$a(i),a!==null){if(o===null){if(!u)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[fn]=i}else $s(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Te(i),o=!1}else a=mh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=a),o=!0;if(!o)return i.flags&256?(rr(i),i):(rr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Te(i),null;case 13:if(u=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(d=$a(i),u!==null&&u.dehydrated!==null){if(o===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[fn]=i}else $s(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Te(i),d=!1}else d=mh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(rr(i),i):(rr(i),null)}return rr(i),(i.flags&128)!==0?(i.lanes=a,i):(a=u!==null,o=o!==null&&o.memoizedState!==null,a&&(u=i.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==d&&(u.flags|=2048)),a!==o&&a&&(i.child.flags|=8192),If(i,i.updateQueue),Te(i),null);case 4:return Ot(),o===null&&Cg(i.stateNode.containerInfo),Te(i),null;case 10:return qo(i.type),Te(i),null;case 19:if(q(Ue),u=i.memoizedState,u===null)return Te(i),null;if(d=(i.flags&128)!==0,p=u.rendering,p===null)if(d)Cu(u,!1);else{if(ze!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(p=Ef(o),p!==null){for(i.flags|=128,Cu(u,!1),o=p.updateQueue,i.updateQueue=o,If(i,o),i.subtreeFlags=0,o=a,a=i.child;a!==null;)ES(a,o),a=a.sibling;return ot(Ue,Ue.current&1|2),Xt&&Ho(i,u.treeForkCount),i.child}o=o.sibling}u.tail!==null&&Zn()>kf&&(i.flags|=128,d=!0,Cu(u,!1),i.lanes=4194304)}else{if(!d)if(o=Ef(p),o!==null){if(i.flags|=128,d=!0,o=o.updateQueue,i.updateQueue=o,If(i,o),Cu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Xt)return Te(i),null}else 2*Zn()-u.renderingStartTime>kf&&a!==536870912&&(i.flags|=128,d=!0,Cu(u,!1),i.lanes=4194304);u.isBackwards?(p.sibling=i.child,i.child=p):(o=u.last,o!==null?o.sibling=p:i.child=p,u.last=p)}return u.tail!==null?(o=u.tail,u.rendering=o,u.tail=o.sibling,u.renderingStartTime=Zn(),o.sibling=null,a=Ue.current,ot(Ue,d?a&1|2:a&1),Xt&&Ho(i,u.treeForkCount),o):(Te(i),null);case 22:case 23:return rr(i),Ah(),u=i.memoizedState!==null,o!==null?o.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(a&536870912)!==0&&(i.flags&128)===0&&(Te(i),i.subtreeFlags&6&&(i.flags|=8192)):Te(i),a=i.updateQueue,a!==null&&If(i,a.retryQueue),a=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==a&&(i.flags|=2048),o!==null&&q(Os),null;case 24:return a=null,o!==null&&(a=o.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),qo(Ge),Te(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function a_(o,i){switch(fh(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return qo(Ge),Ot(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return We(i),null;case 31:if(i.memoizedState!==null){if(rr(i),i.alternate===null)throw Error(r(340));$s()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(rr(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));$s()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return q(Ue),null;case 4:return Ot(),null;case 10:return qo(i.type),null;case 22:case 23:return rr(i),Ah(),o!==null&&q(Os),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return qo(Ge),null;case 25:return null;default:return null}}function Xx(o,i){switch(fh(i),i.tag){case 3:qo(Ge),Ot();break;case 26:case 27:case 5:We(i);break;case 4:Ot();break;case 31:i.memoizedState!==null&&rr(i);break;case 13:rr(i);break;case 19:q(Ue);break;case 10:qo(i.type);break;case 22:case 23:rr(i),Ah(),o!==null&&q(Os);break;case 24:qo(Ge)}}function Au(o,i){try{var a=i.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var d=u.next;a=d;do{if((a.tag&o)===o){u=void 0;var p=a.create,v=a.inst;u=p(),v.destroy=u}a=a.next}while(a!==d)}}catch(A){ae(i,i.return,A)}}function Ui(o,i,a){try{var u=i.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var p=d.next;u=p;do{if((u.tag&o)===o){var v=u.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,d=i;var I=a,K=A;try{K()}catch(rt){ae(d,I,rt)}}}u=u.next}while(u!==p)}}catch(rt){ae(i,i.return,rt)}}function Qx(o){var i=o.updateQueue;if(i!==null){var a=o.stateNode;try{kS(i,a)}catch(u){ae(o,o.return,u)}}}function Zx(o,i,a){a.props=Is(o.type,o.memoizedProps),a.state=o.memoizedState;try{a.componentWillUnmount()}catch(u){ae(o,i,u)}}function $u(o,i){try{var a=o.ref;if(a!==null){switch(o.tag){case 26:case 27:case 5:var u=o.stateNode;break;case 30:u=o.stateNode;break;default:u=o.stateNode}typeof a=="function"?o.refCleanup=a(u):a.current=u}}catch(d){ae(o,i,d)}}function vo(o,i){var a=o.ref,u=o.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(d){ae(o,i,d)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){ae(o,i,d)}else a.current=null}function Jx(o){var i=o.type,a=o.memoizedProps,u=o.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break t;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(d){ae(o,o.return,d)}}function og(o,i,a){try{var u=o.stateNode;R_(u,o.type,a,i),u[jn]=i}catch(d){ae(o,o.return,d)}}function Wx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Yi(o.type)||o.tag===4}function ig(o){t:for(;;){for(;o.sibling===null;){if(o.return===null||Wx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Yi(o.type)||o.flags&2||o.child===null||o.tag===4)continue t;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function sg(o,i,a){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(o,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(o),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Uo));else if(u!==4&&(u===27&&Yi(o.type)&&(a=o.stateNode,i=null),o=o.child,o!==null))for(sg(o,i,a),o=o.sibling;o!==null;)sg(o,i,a),o=o.sibling}function Lf(o,i,a){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?a.insertBefore(o,i):a.appendChild(o);else if(u!==4&&(u===27&&Yi(o.type)&&(a=o.stateNode),o=o.child,o!==null))for(Lf(o,i,a),o=o.sibling;o!==null;)Lf(o,i,a),o=o.sibling}function tE(o){var i=o.stateNode,a=o.memoizedProps;try{for(var u=o.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);hn(i,u,a),i[fn]=o,i[jn]=a}catch(p){ae(o,o.return,p)}}var Xo=!1,Ke=!1,ag=!1,eE=typeof WeakSet=="function"?WeakSet:Set,an=null;function l_(o,i){if(o=o.containerInfo,Mg=rd,o=mS(o),th(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else t:{a=(a=o.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var d=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break t}var v=0,A=-1,I=-1,K=0,rt=0,lt=o,X=null;e:for(;;){for(var J;lt!==a||d!==0&<.nodeType!==3||(A=v+d),lt!==p||u!==0&<.nodeType!==3||(I=v+u),lt.nodeType===3&&(v+=lt.nodeValue.length),(J=lt.firstChild)!==null;)X=lt,lt=J;for(;;){if(lt===o)break e;if(X===a&&++K===d&&(A=v),X===p&&++rt===u&&(I=v),(J=lt.nextSibling)!==null)break;lt=X,X=lt.parentNode}lt=J}a=A===-1||I===-1?null:{start:A,end:I}}else a=null}a=a||{start:0,end:0}}else a=null;for(Rg={focusedElem:o,selectionRange:a},rd=!1,an=i;an!==null;)if(i=an,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,an=o;else for(;an!==null;){switch(i=an,p=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(a=0;a<o.length;a++)d=o[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&p!==null){o=void 0,a=i,d=p.memoizedProps,p=p.memoizedState,u=a.stateNode;try{var gt=Is(a.type,d);o=u.getSnapshotBeforeUpdate(gt,p),u.__reactInternalSnapshotBeforeUpdate=o}catch(Ct){ae(a,a.return,Ct)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,a=o.nodeType,a===9)_g(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":_g(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,an=o;break}an=i.return}}function nE(o,i,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Zo(o,a),u&4&&Au(5,a);break;case 1:if(Zo(o,a),u&4)if(o=a.stateNode,i===null)try{o.componentDidMount()}catch(v){ae(a,a.return,v)}else{var d=Is(a.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(d,i,o.__reactInternalSnapshotBeforeUpdate)}catch(v){ae(a,a.return,v)}}u&64&&Qx(a),u&512&&$u(a,a.return);break;case 3:if(Zo(o,a),u&64&&(o=a.updateQueue,o!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{kS(o,i)}catch(v){ae(a,a.return,v)}}break;case 27:i===null&&u&4&&tE(a);case 26:case 5:Zo(o,a),i===null&&u&4&&Jx(a),u&512&&$u(a,a.return);break;case 12:Zo(o,a);break;case 31:Zo(o,a),u&4&&iE(o,a);break;case 13:Zo(o,a),u&4&&sE(o,a),u&64&&(o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(a=y_.bind(null,a),z_(o,a))));break;case 22:if(u=a.memoizedState!==null||Xo,!u){i=i!==null&&i.memoizedState!==null||Ke,d=Xo;var p=Ke;Xo=u,(Ke=i)&&!p?Jo(o,a,(a.subtreeFlags&8772)!==0):Zo(o,a),Xo=d,Ke=p}break;case 30:break;default:Zo(o,a)}}function rE(o){var i=o.alternate;i!==null&&(o.alternate=null,rE(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&zp(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Me=null,Ln=!1;function Qo(o,i,a){for(a=a.child;a!==null;)oE(o,i,a),a=a.sibling}function oE(o,i,a){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Zl,a)}catch{}switch(a.tag){case 26:Ke||vo(a,i),Qo(o,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||vo(a,i);var u=Me,d=Ln;Yi(a.type)&&(Me=a.stateNode,Ln=!1),Qo(o,i,a),Lu(a.stateNode),Me=u,Ln=d;break;case 5:Ke||vo(a,i);case 6:if(u=Me,d=Ln,Me=null,Qo(o,i,a),Me=u,Ln=d,Me!==null)if(Ln)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(p){ae(a,i,p)}else try{Me.removeChild(a.stateNode)}catch(p){ae(a,i,p)}break;case 18:Me!==null&&(Ln?(o=Me,QE(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.stateNode),Ka(o)):QE(Me,a.stateNode));break;case 4:u=Me,d=Ln,Me=a.stateNode.containerInfo,Ln=!0,Qo(o,i,a),Me=u,Ln=d;break;case 0:case 11:case 14:case 15:Ui(2,a,i),Ke||Ui(4,a,i),Qo(o,i,a);break;case 1:Ke||(vo(a,i),u=a.stateNode,typeof u.componentWillUnmount=="function"&&Zx(a,i,u)),Qo(o,i,a);break;case 21:Qo(o,i,a);break;case 22:Ke=(u=Ke)||a.memoizedState!==null,Qo(o,i,a),Ke=u;break;default:Qo(o,i,a)}}function iE(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ka(o)}catch(a){ae(i,i.return,a)}}}function sE(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ka(o)}catch(a){ae(i,i.return,a)}}function u_(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new eE),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new eE),i;default:throw Error(r(435,o.tag))}}function zf(o,i){var a=u_(o);i.forEach(function(u){if(!a.has(u)){a.add(u);var d=b_.bind(null,o,u);u.then(d,d)}})}function zn(o,i){var a=i.deletions;if(a!==null)for(var u=0;u<a.length;u++){var d=a[u],p=o,v=i,A=v;t:for(;A!==null;){switch(A.tag){case 27:if(Yi(A.type)){Me=A.stateNode,Ln=!1;break t}break;case 5:Me=A.stateNode,Ln=!1;break t;case 3:case 4:Me=A.stateNode.containerInfo,Ln=!0;break t}A=A.return}if(Me===null)throw Error(r(160));oE(p,v,d),Me=null,Ln=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)aE(i,o),i=i.sibling}var Jr=null;function aE(o,i){var a=o.alternate,u=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:zn(i,o),Bn(o),u&4&&(Ui(3,o,o.return),Au(3,o),Ui(5,o,o.return));break;case 1:zn(i,o),Bn(o),u&512&&(Ke||a===null||vo(a,a.return)),u&64&&Xo&&(o=o.updateQueue,o!==null&&(u=o.callbacks,u!==null&&(a=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var d=Jr;if(zn(i,o),Bn(o),u&512&&(Ke||a===null||vo(a,a.return)),u&4){var p=a!==null?a.memoizedState:null;if(u=o.memoizedState,a===null)if(u===null)if(o.stateNode===null){t:{u=o.type,a=o.memoizedProps,d=d.ownerDocument||d;e:switch(u){case"title":p=d.getElementsByTagName("title")[0],(!p||p[tu]||p[fn]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(u),d.head.insertBefore(p,d.querySelector("head > title"))),hn(p,u,a),p[fn]=o,sn(p),u=p;break t;case"link":var v=aw("link","href",d).get(u+(a.href||""));if(v){for(var A=0;A<v.length;A++)if(p=v[A],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(A,1);break e}}p=d.createElement(u),hn(p,u,a),d.head.appendChild(p);break;case"meta":if(v=aw("meta","content",d).get(u+(a.content||""))){for(A=0;A<v.length;A++)if(p=v[A],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(A,1);break e}}p=d.createElement(u),hn(p,u,a),d.head.appendChild(p);break;default:throw Error(r(468,u))}p[fn]=o,sn(p),u=p}o.stateNode=u}else lw(d,o.type,o.stateNode);else o.stateNode=sw(d,u,o.memoizedProps);else p!==u?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,u===null?lw(d,o.type,o.stateNode):sw(d,u,o.memoizedProps)):u===null&&o.stateNode!==null&&og(o,o.memoizedProps,a.memoizedProps)}break;case 27:zn(i,o),Bn(o),u&512&&(Ke||a===null||vo(a,a.return)),a!==null&&u&4&&og(o,o.memoizedProps,a.memoizedProps);break;case 5:if(zn(i,o),Bn(o),u&512&&(Ke||a===null||vo(a,a.return)),o.flags&32){d=o.stateNode;try{ya(d,"")}catch(gt){ae(o,o.return,gt)}}u&4&&o.stateNode!=null&&(d=o.memoizedProps,og(o,d,a!==null?a.memoizedProps:d)),u&1024&&(ag=!0);break;case 6:if(zn(i,o),Bn(o),u&4){if(o.stateNode===null)throw Error(r(162));u=o.memoizedProps,a=o.stateNode;try{a.nodeValue=u}catch(gt){ae(o,o.return,gt)}}break;case 3:if(Wf=null,d=Jr,Jr=Zf(i.containerInfo),zn(i,o),Jr=d,Bn(o),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Ka(i.containerInfo)}catch(gt){ae(o,o.return,gt)}ag&&(ag=!1,lE(o));break;case 4:u=Jr,Jr=Zf(o.stateNode.containerInfo),zn(i,o),Bn(o),Jr=u;break;case 12:zn(i,o),Bn(o);break;case 31:zn(i,o),Bn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 13:zn(i,o),Bn(o),o.child.flags&8192&&o.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uf=Zn()),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 22:d=o.memoizedState!==null;var I=a!==null&&a.memoizedState!==null,K=Xo,rt=Ke;if(Xo=K||d,Ke=rt||I,zn(i,o),Ke=rt,Xo=K,Bn(o),u&8192)t:for(i=o.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(a===null||I||Xo||Ke||Ls(o)),a=null,i=o;;){if(i.tag===5||i.tag===26){if(a===null){I=a=i;try{if(p=I.stateNode,d)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{A=I.stateNode;var lt=I.memoizedProps.style,X=lt!=null&<.hasOwnProperty("display")?lt.display:null;A.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(gt){ae(I,I.return,gt)}}}else if(i.tag===6){if(a===null){I=i;try{I.stateNode.nodeValue=d?"":I.memoizedProps}catch(gt){ae(I,I.return,gt)}}}else if(i.tag===18){if(a===null){I=i;try{var J=I.stateNode;d?ZE(J,!0):ZE(I.stateNode,!1)}catch(gt){ae(I,I.return,gt)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break t;for(;i.sibling===null;){if(i.return===null||i.return===o)break t;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=o.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,zf(o,a))));break;case 19:zn(i,o),Bn(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,zf(o,u)));break;case 30:break;case 21:break;default:zn(i,o),Bn(o)}}function Bn(o){var i=o.flags;if(i&2){try{for(var a,u=o.return;u!==null;){if(Wx(u)){a=u;break}u=u.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=ig(o);Lf(o,p,d);break;case 5:var v=a.stateNode;a.flags&32&&(ya(v,""),a.flags&=-33);var A=ig(o);Lf(o,A,v);break;case 3:case 4:var I=a.stateNode.containerInfo,K=ig(o);sg(o,K,I);break;default:throw Error(r(161))}}catch(rt){ae(o,o.return,rt)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function lE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;lE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function Zo(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)nE(o,i.alternate,i),i=i.sibling}function Ls(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:Ui(4,i,i.return),Ls(i);break;case 1:vo(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&Zx(i,i.return,a),Ls(i);break;case 27:Lu(i.stateNode);case 26:case 5:vo(i,i.return),Ls(i);break;case 22:i.memoizedState===null&&Ls(i);break;case 30:Ls(i);break;default:Ls(i)}o=o.sibling}}function Jo(o,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,d=o,p=i,v=p.flags;switch(p.tag){case 0:case 11:case 15:Jo(d,p,a),Au(4,p);break;case 1:if(Jo(d,p,a),u=p,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(K){ae(u,u.return,K)}if(u=p,d=u.updateQueue,d!==null){var A=u.stateNode;try{var I=d.shared.hiddenCallbacks;if(I!==null)for(d.shared.hiddenCallbacks=null,d=0;d<I.length;d++)US(I[d],A)}catch(K){ae(u,u.return,K)}}a&&v&64&&Qx(p),$u(p,p.return);break;case 27:tE(p);case 26:case 5:Jo(d,p,a),a&&u===null&&v&4&&Jx(p),$u(p,p.return);break;case 12:Jo(d,p,a);break;case 31:Jo(d,p,a),a&&v&4&&iE(d,p);break;case 13:Jo(d,p,a),a&&v&4&&sE(d,p);break;case 22:p.memoizedState===null&&Jo(d,p,a),$u(p,p.return);break;case 30:break;default:Jo(d,p,a)}i=i.sibling}}function lg(o,i){var a=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(o!=null&&o.refCount++,a!=null&&mu(a))}function ug(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&mu(o))}function Wr(o,i,a,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)uE(o,i,a,u),i=i.sibling}function uE(o,i,a,u){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(o,i,a,u),d&2048&&Au(9,i);break;case 1:Wr(o,i,a,u);break;case 3:Wr(o,i,a,u),d&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&mu(o)));break;case 12:if(d&2048){Wr(o,i,a,u),o=i.stateNode;try{var p=i.memoizedProps,v=p.id,A=p.onPostCommit;typeof A=="function"&&A(v,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(I){ae(i,i.return,I)}}else Wr(o,i,a,u);break;case 31:Wr(o,i,a,u);break;case 13:Wr(o,i,a,u);break;case 23:break;case 22:p=i.stateNode,v=i.alternate,i.memoizedState!==null?p._visibility&2?Wr(o,i,a,u):Mu(o,i):p._visibility&2?Wr(o,i,a,u):(p._visibility|=2,za(o,i,a,u,(i.subtreeFlags&10256)!==0||!1)),d&2048&&lg(v,i);break;case 24:Wr(o,i,a,u),d&2048&&ug(i.alternate,i);break;default:Wr(o,i,a,u)}}function za(o,i,a,u,d){for(d=d&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=o,v=i,A=a,I=u,K=v.flags;switch(v.tag){case 0:case 11:case 15:za(p,v,A,I,d),Au(8,v);break;case 23:break;case 22:var rt=v.stateNode;v.memoizedState!==null?rt._visibility&2?za(p,v,A,I,d):Mu(p,v):(rt._visibility|=2,za(p,v,A,I,d)),d&&K&2048&&lg(v.alternate,v);break;case 24:za(p,v,A,I,d),d&&K&2048&&ug(v.alternate,v);break;default:za(p,v,A,I,d)}i=i.sibling}}function Mu(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=o,u=i,d=u.flags;switch(u.tag){case 22:Mu(a,u),d&2048&&lg(u.alternate,u);break;case 24:Mu(a,u),d&2048&&ug(u.alternate,u);break;default:Mu(a,u)}i=i.sibling}}var Ru=8192;function Ba(o,i,a){if(o.subtreeFlags&Ru)for(o=o.child;o!==null;)cE(o,i,a),o=o.sibling}function cE(o,i,a){switch(o.tag){case 26:Ba(o,i,a),o.flags&Ru&&o.memoizedState!==null&&X_(a,Jr,o.memoizedState,o.memoizedProps);break;case 5:Ba(o,i,a);break;case 3:case 4:var u=Jr;Jr=Zf(o.stateNode.containerInfo),Ba(o,i,a),Jr=u;break;case 22:o.memoizedState===null&&(u=o.alternate,u!==null&&u.memoizedState!==null?(u=Ru,Ru=16777216,Ba(o,i,a),Ru=u):Ba(o,i,a));break;default:Ba(o,i,a)}}function fE(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function Ou(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];an=u,mE(u,o)}fE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)dE(o),o=o.sibling}function dE(o){switch(o.tag){case 0:case 11:case 15:Ou(o),o.flags&2048&&Ui(9,o,o.return);break;case 3:Ou(o);break;case 12:Ou(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,Bf(o)):Ou(o);break;default:Ou(o)}}function Bf(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var u=i[a];an=u,mE(u,o)}fE(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:Ui(8,i,i.return),Bf(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,Bf(i));break;default:Bf(i)}o=o.sibling}}function mE(o,i){for(;an!==null;){var a=an;switch(a.tag){case 0:case 11:case 15:Ui(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:mu(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,an=u;else t:for(a=o;an!==null;){u=an;var d=u.sibling,p=u.return;if(rE(u),u===a){an=null;break t}if(d!==null){d.return=p,an=d;break t}an=p}}}var c_={getCacheForType:function(o){var i=mn(Ge),a=i.data.get(o);return a===void 0&&(a=o(),i.data.set(o,a)),a},cacheSignal:function(){return mn(Ge).controller.signal}},f_=typeof WeakMap=="function"?WeakMap:Map,ee=0,he=null,Ft=null,Yt=0,se=0,or=null,ki=!1,Ua=!1,cg=!1,Wo=0,ze=0,Pi=0,zs=0,fg=0,ir=0,ka=0,Nu=null,Un=null,dg=!1,Uf=0,pE=0,kf=1/0,Pf=null,Hi=null,tn=0,Fi=null,Pa=null,ti=0,mg=0,pg=null,hE=null,_u=0,hg=null;function sr(){return(ee&2)!==0&&Yt!==0?Yt&-Yt:R.T!==null?xg():N1()}function gE(){if(ir===0)if((Yt&536870912)===0||Xt){var o=Kc;Kc<<=1,(Kc&3932160)===0&&(Kc=262144),ir=o}else ir=536870912;return o=nr.current,o!==null&&(o.flags|=32),ir}function kn(o,i,a){(o===he&&(se===2||se===9)||o.cancelPendingCommit!==null)&&(Ha(o,0),qi(o,Yt,ir,!1)),Wl(o,a),((ee&2)===0||o!==he)&&(o===he&&((ee&2)===0&&(zs|=a),ze===4&&qi(o,Yt,ir,!1)),So(o))}function yE(o,i,a){if((ee&6)!==0)throw Error(r(327));var u=!a&&(i&127)===0&&(i&o.expiredLanes)===0||Jl(o,i),d=u?p_(o,i):yg(o,i,!0),p=u;do{if(d===0){Ua&&!u&&qi(o,i,0,!1);break}else{if(a=o.current.alternate,p&&!d_(a)){d=yg(o,i,!1),p=!1;continue}if(d===2){if(p=i,o.errorRecoveryDisabledLanes&p)var v=0;else v=o.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;t:{var A=o;d=Nu;var I=A.current.memoizedState.isDehydrated;if(I&&(Ha(A,v).flags|=256),v=yg(A,v,!1),v!==2){if(cg&&!I){A.errorRecoveryDisabledLanes|=p,zs|=p,d=4;break t}p=Un,Un=d,p!==null&&(Un===null?Un=p:Un.push.apply(Un,p))}d=v}if(p=!1,d!==2)continue}}if(d===1){Ha(o,0),qi(o,i,0,!0);break}t:{switch(u=o,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:qi(u,i,ir,!ki);break t;case 2:Un=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(d=Uf+300-Zn(),10<d)){if(qi(u,i,ir,!ki),Qc(u,0,!0)!==0)break t;ti=i,u.timeoutHandle=KE(bE.bind(null,u,a,Un,Pf,dg,i,ir,zs,ka,ki,p,"Throttled",-0,0),d);break t}bE(u,a,Un,Pf,dg,i,ir,zs,ka,ki,p,null,-0,0)}}break}while(!0);So(o)}function bE(o,i,a,u,d,p,v,A,I,K,rt,lt,X,J){if(o.timeoutHandle=-1,lt=i.subtreeFlags,lt&8192||(lt&16785408)===16785408){lt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Uo},cE(i,p,lt);var gt=(p&62914560)===p?Uf-Zn():(p&4194048)===p?pE-Zn():0;if(gt=Q_(lt,gt),gt!==null){ti=p,o.cancelPendingCommit=gt(AE.bind(null,o,i,p,a,u,d,v,A,I,rt,lt,null,X,J)),qi(o,p,v,!K);return}}AE(o,i,p,a,u,d,v,A,I)}function d_(o){for(var i=o;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var d=a[u],p=d.getSnapshot;d=d.value;try{if(!tr(p(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function qi(o,i,a,u){i&=~fg,i&=~zs,o.suspendedLanes|=i,o.pingedLanes&=~i,u&&(o.warmLanes|=i),u=o.expirationTimes;for(var d=i;0<d;){var p=31-Wn(d),v=1<<p;u[p]=-1,d&=~v}a!==0&&M1(o,a,i)}function Hf(){return(ee&6)===0?(Du(0),!1):!0}function gg(){if(Ft!==null){if(se===0)var o=Ft.return;else o=Ft,Fo=Ms=null,_h(o),_a=null,hu=0,o=Ft;for(;o!==null;)Xx(o.alternate,o),o=o.return;Ft=null}}function Ha(o,i){var a=o.timeoutHandle;a!==-1&&(o.timeoutHandle=-1,__(a)),a=o.cancelPendingCommit,a!==null&&(o.cancelPendingCommit=null,a()),ti=0,gg(),he=o,Ft=a=Po(o.current,null),Yt=i,se=0,or=null,ki=!1,Ua=Jl(o,i),cg=!1,ka=ir=fg=zs=Pi=ze=0,Un=Nu=null,dg=!1,(i&8)!==0&&(i|=i&32);var u=o.entangledLanes;if(u!==0)for(o=o.entanglements,u&=i;0<u;){var d=31-Wn(u),p=1<<d;i|=o[d],u&=~p}return Wo=i,uf(),a}function vE(o,i){zt=null,R.H=wu,i===Na||i===yf?(i=IS(),se=3):i===Sh?(i=IS(),se=4):se=i===Kh?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,or=i,Ft===null&&(ze=1,Nf(o,Rr(i,o.current)))}function SE(){var o=nr.current;return o===null?!0:(Yt&4194048)===Yt?Dr===null:(Yt&62914560)===Yt||(Yt&536870912)!==0?o===Dr:!1}function xE(){var o=R.H;return R.H=wu,o===null?wu:o}function EE(){var o=R.A;return R.A=c_,o}function Ff(){ze=4,ki||(Yt&4194048)!==Yt&&nr.current!==null||(Ua=!0),(Pi&134217727)===0&&(zs&134217727)===0||he===null||qi(he,Yt,ir,!1)}function yg(o,i,a){var u=ee;ee|=2;var d=xE(),p=EE();(he!==o||Yt!==i)&&(Pf=null,Ha(o,i)),i=!1;var v=ze;t:do try{if(se!==0&&Ft!==null){var A=Ft,I=or;switch(se){case 8:gg(),v=6;break t;case 3:case 2:case 9:case 6:nr.current===null&&(i=!0);var K=se;if(se=0,or=null,Fa(o,A,I,K),a&&Ua){v=0;break t}break;default:K=se,se=0,or=null,Fa(o,A,I,K)}}m_(),v=ze;break}catch(rt){vE(o,rt)}while(!0);return i&&o.shellSuspendCounter++,Fo=Ms=null,ee=u,R.H=d,R.A=p,Ft===null&&(he=null,Yt=0,uf()),v}function m_(){for(;Ft!==null;)wE(Ft)}function p_(o,i){var a=ee;ee|=2;var u=xE(),d=EE();he!==o||Yt!==i?(Pf=null,kf=Zn()+500,Ha(o,i)):Ua=Jl(o,i);t:do try{if(se!==0&&Ft!==null){i=Ft;var p=or;e:switch(se){case 1:se=0,or=null,Fa(o,i,p,1);break;case 2:case 9:if(DS(p)){se=0,or=null,TE(i);break}i=function(){se!==2&&se!==9||he!==o||(se=7),So(o)},p.then(i,i);break t;case 3:se=7;break t;case 4:se=5;break t;case 7:DS(p)?(se=0,or=null,TE(i)):(se=0,or=null,Fa(o,i,p,7));break;case 5:var v=null;switch(Ft.tag){case 26:v=Ft.memoizedState;case 5:case 27:var A=Ft;if(v?uw(v):A.stateNode.complete){se=0,or=null;var I=A.sibling;if(I!==null)Ft=I;else{var K=A.return;K!==null?(Ft=K,qf(K)):Ft=null}break e}}se=0,or=null,Fa(o,i,p,5);break;case 6:se=0,or=null,Fa(o,i,p,6);break;case 8:gg(),ze=6;break t;default:throw Error(r(462))}}h_();break}catch(rt){vE(o,rt)}while(!0);return Fo=Ms=null,R.H=u,R.A=d,ee=a,Ft!==null?0:(he=null,Yt=0,uf(),ze)}function h_(){for(;Ft!==null&&!BO();)wE(Ft)}function wE(o){var i=Vx(o.alternate,o,Wo);o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function TE(o){var i=o,a=i.alternate;switch(i.tag){case 15:case 0:i=Px(a,i,i.pendingProps,i.type,void 0,Yt);break;case 11:i=Px(a,i,i.pendingProps,i.type.render,i.ref,Yt);break;case 5:_h(i);default:Xx(a,i),i=Ft=ES(i,Wo),i=Vx(a,i,Wo)}o.memoizedProps=o.pendingProps,i===null?qf(o):Ft=i}function Fa(o,i,a,u){Fo=Ms=null,_h(i),_a=null,hu=0;var d=i.return;try{if(r_(o,d,i,a,Yt)){ze=1,Nf(o,Rr(a,o.current)),Ft=null;return}}catch(p){if(d!==null)throw Ft=d,p;ze=1,Nf(o,Rr(a,o.current)),Ft=null;return}i.flags&32768?(Xt||u===1?o=!0:Ua||(Yt&536870912)!==0?o=!1:(ki=o=!0,(u===2||u===9||u===3||u===6)&&(u=nr.current,u!==null&&u.tag===13&&(u.flags|=16384))),CE(i,o)):qf(i)}function qf(o){var i=o;do{if((i.flags&32768)!==0){CE(i,ki);return}o=i.return;var a=s_(i.alternate,i,Wo);if(a!==null){Ft=a;return}if(i=i.sibling,i!==null){Ft=i;return}Ft=i=o}while(i!==null);ze===0&&(ze=5)}function CE(o,i){do{var a=a_(o.alternate,o);if(a!==null){a.flags&=32767,Ft=a;return}if(a=o.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(o=o.sibling,o!==null)){Ft=o;return}Ft=o=a}while(o!==null);ze=6,Ft=null}function AE(o,i,a,u,d,p,v,A,I){o.cancelPendingCommit=null;do Gf();while(tn!==0);if((ee&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(p=i.lanes|i.childLanes,p|=ih,KO(o,a,p,v,A,I),o===he&&(Ft=he=null,Yt=0),Pa=i,Fi=o,ti=a,mg=p,pg=d,hE=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,v_(Yc,function(){return NE(),null})):(o.callbackNode=null,o.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=R.T,R.T=null,d=B.p,B.p=2,v=ee,ee|=4;try{l_(o,i,a)}finally{ee=v,B.p=d,R.T=u}}tn=1,$E(),ME(),RE()}}function $E(){if(tn===1){tn=0;var o=Fi,i=Pa,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var u=B.p;B.p=2;var d=ee;ee|=4;try{aE(i,o);var p=Rg,v=mS(o.containerInfo),A=p.focusedElem,I=p.selectionRange;if(v!==A&&A&&A.ownerDocument&&dS(A.ownerDocument.documentElement,A)){if(I!==null&&th(A)){var K=I.start,rt=I.end;if(rt===void 0&&(rt=K),"selectionStart"in A)A.selectionStart=K,A.selectionEnd=Math.min(rt,A.value.length);else{var lt=A.ownerDocument||document,X=lt&<.defaultView||window;if(X.getSelection){var J=X.getSelection(),gt=A.textContent.length,Ct=Math.min(I.start,gt),fe=I.end===void 0?Ct:Math.min(I.end,gt);!J.extend&&Ct>fe&&(v=fe,fe=Ct,Ct=v);var F=fS(A,Ct),U=fS(A,fe);if(F&&U&&(J.rangeCount!==1||J.anchorNode!==F.node||J.anchorOffset!==F.offset||J.focusNode!==U.node||J.focusOffset!==U.offset)){var V=lt.createRange();V.setStart(F.node,F.offset),J.removeAllRanges(),Ct>fe?(J.addRange(V),J.extend(U.node,U.offset)):(V.setEnd(U.node,U.offset),J.addRange(V))}}}}for(lt=[],J=A;J=J.parentNode;)J.nodeType===1&<.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<lt.length;A++){var st=lt[A];st.element.scrollLeft=st.left,st.element.scrollTop=st.top}}rd=!!Mg,Rg=Mg=null}finally{ee=d,B.p=u,R.T=a}}o.current=i,tn=2}}function ME(){if(tn===2){tn=0;var o=Fi,i=Pa,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var u=B.p;B.p=2;var d=ee;ee|=4;try{nE(o,i.alternate,i)}finally{ee=d,B.p=u,R.T=a}}tn=3}}function RE(){if(tn===4||tn===3){tn=0,UO();var o=Fi,i=Pa,a=ti,u=hE;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?tn=5:(tn=0,Pa=Fi=null,OE(o,o.pendingLanes));var d=o.pendingLanes;if(d===0&&(Hi=null),Ip(a),i=i.stateNode,Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Zl,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=R.T,d=B.p,B.p=2,R.T=null;try{for(var p=o.onRecoverableError,v=0;v<u.length;v++){var A=u[v];p(A.value,{componentStack:A.stack})}}finally{R.T=i,B.p=d}}(ti&3)!==0&&Gf(),So(o),d=o.pendingLanes,(a&261930)!==0&&(d&42)!==0?o===hg?_u++:(_u=0,hg=o):_u=0,Du(0)}}function OE(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,mu(i)))}function Gf(){return $E(),ME(),RE(),NE()}function NE(){if(tn!==5)return!1;var o=Fi,i=mg;mg=0;var a=Ip(ti),u=R.T,d=B.p;try{B.p=32>a?32:a,R.T=null,a=pg,pg=null;var p=Fi,v=ti;if(tn=0,Pa=Fi=null,ti=0,(ee&6)!==0)throw Error(r(331));var A=ee;if(ee|=4,dE(p.current),uE(p,p.current,v,a),ee=A,Du(0,!1),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Zl,p)}catch{}return!0}finally{B.p=d,R.T=u,OE(o,i)}}function _E(o,i,a){i=Rr(a,i),i=Vh(o.stateNode,i,2),o=Li(o,i,2),o!==null&&(Wl(o,2),So(o))}function ae(o,i,a){if(o.tag===3)_E(o,o,a);else for(;i!==null;){if(i.tag===3){_E(i,o,a);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Hi===null||!Hi.has(u))){o=Rr(a,o),a=Dx(2),u=Li(i,a,2),u!==null&&(jx(a,u,i,o),Wl(u,2),So(u));break}}i=i.return}}function bg(o,i,a){var u=o.pingCache;if(u===null){u=o.pingCache=new f_;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(a)||(cg=!0,d.add(a),o=g_.bind(null,o,i,a),i.then(o,o))}function g_(o,i,a){var u=o.pingCache;u!==null&&u.delete(i),o.pingedLanes|=o.suspendedLanes&a,o.warmLanes&=~a,he===o&&(Yt&a)===a&&(ze===4||ze===3&&(Yt&62914560)===Yt&&300>Zn()-Uf?(ee&2)===0&&Ha(o,0):fg|=a,ka===Yt&&(ka=0)),So(o)}function DE(o,i){i===0&&(i=$1()),o=Cs(o,i),o!==null&&(Wl(o,i),So(o))}function y_(o){var i=o.memoizedState,a=0;i!==null&&(a=i.retryLane),DE(o,a)}function b_(o,i){var a=0;switch(o.tag){case 31:case 13:var u=o.stateNode,d=o.memoizedState;d!==null&&(a=d.retryLane);break;case 19:u=o.stateNode;break;case 22:u=o.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(i),DE(o,a)}function v_(o,i){return vs(o,i)}var Yf=null,qa=null,vg=!1,Vf=!1,Sg=!1,Gi=0;function So(o){o!==qa&&o.next===null&&(qa===null?Yf=qa=o:qa=qa.next=o),Vf=!0,vg||(vg=!0,x_())}function Du(o,i){if(!Sg&&Vf){Sg=!0;do for(var a=!1,u=Yf;u!==null;){if(o!==0){var d=u.pendingLanes;if(d===0)var p=0;else{var v=u.suspendedLanes,A=u.pingedLanes;p=(1<<31-Wn(42|o)+1)-1,p&=d&~(v&~A),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,zE(u,p))}else p=Yt,p=Qc(u,u===he?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Jl(u,p)||(a=!0,zE(u,p));u=u.next}while(a);Sg=!1}}function S_(){jE()}function jE(){Vf=vg=!1;var o=0;Gi!==0&&N_()&&(o=Gi);for(var i=Zn(),a=null,u=Yf;u!==null;){var d=u.next,p=IE(u,i);p===0?(u.next=null,a===null?Yf=d:a.next=d,d===null&&(qa=a)):(a=u,(o!==0||(p&3)!==0)&&(Vf=!0)),u=d}tn!==0&&tn!==5||Du(o),Gi!==0&&(Gi=0)}function IE(o,i){for(var a=o.suspendedLanes,u=o.pingedLanes,d=o.expirationTimes,p=o.pendingLanes&-62914561;0<p;){var v=31-Wn(p),A=1<<v,I=d[v];I===-1?((A&a)===0||(A&u)!==0)&&(d[v]=VO(A,i)):I<=i&&(o.expiredLanes|=A),p&=~A}if(i=he,a=Yt,a=Qc(o,o===i?a:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u=o.callbackNode,a===0||o===i&&(se===2||se===9)||o.cancelPendingCommit!==null)return u!==null&&u!==null&&Gc(u),o.callbackNode=null,o.callbackPriority=0;if((a&3)===0||Jl(o,a)){if(i=a&-a,i===o.callbackPriority)return i;switch(u!==null&&Gc(u),Ip(a)){case 2:case 8:a=C1;break;case 32:a=Yc;break;case 268435456:a=A1;break;default:a=Yc}return u=LE.bind(null,o),a=vs(a,u),o.callbackPriority=i,o.callbackNode=a,i}return u!==null&&u!==null&&Gc(u),o.callbackPriority=2,o.callbackNode=null,2}function LE(o,i){if(tn!==0&&tn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var a=o.callbackNode;if(Gf()&&o.callbackNode!==a)return null;var u=Yt;return u=Qc(o,o===he?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u===0?null:(yE(o,u,i),IE(o,Zn()),o.callbackNode!=null&&o.callbackNode===a?LE.bind(null,o):null)}function zE(o,i){if(Gf())return null;yE(o,i,!0)}function x_(){D_(function(){(ee&6)!==0?vs(T1,S_):jE()})}function xg(){if(Gi===0){var o=Ra;o===0&&(o=Vc,Vc<<=1,(Vc&261888)===0&&(Vc=256)),Gi=o}return Gi}function BE(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tf(""+o)}function UE(o,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,o.id&&a.setAttribute("form",o.id),i.parentNode.insertBefore(a,i),o=new FormData(o),a.parentNode.removeChild(a),o}function E_(o,i,a,u,d){if(i==="submit"&&a&&a.stateNode===d){var p=BE((d[jn]||null).action),v=u.submitter;v&&(i=(i=v[jn]||null)?BE(i.formAction):v.getAttribute("formAction"),i!==null&&(p=i,v=null));var A=new of("action","action",null,u,d);o.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Gi!==0){var I=v?UE(d,v):new FormData(d);Ph(a,{pending:!0,data:I,method:d.method,action:p},null,I)}}else typeof p=="function"&&(A.preventDefault(),I=v?UE(d,v):new FormData(d),Ph(a,{pending:!0,data:I,method:d.method,action:p},p,I))},currentTarget:d}]})}}for(var Eg=0;Eg<oh.length;Eg++){var wg=oh[Eg],w_=wg.toLowerCase(),T_=wg[0].toUpperCase()+wg.slice(1);Zr(w_,"on"+T_)}Zr(gS,"onAnimationEnd"),Zr(yS,"onAnimationIteration"),Zr(bS,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(kN,"onTransitionRun"),Zr(PN,"onTransitionStart"),Zr(HN,"onTransitionCancel"),Zr(vS,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),xs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xs("onBeforeInput",["compositionend","keypress","textInput","paste"]),xs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),C_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ju));function kE(o,i){i=(i&4)!==0;for(var a=0;a<o.length;a++){var u=o[a],d=u.event;u=u.listeners;t:{var p=void 0;if(i)for(var v=u.length-1;0<=v;v--){var A=u[v],I=A.instance,K=A.currentTarget;if(A=A.listener,I!==p&&d.isPropagationStopped())break t;p=A,d.currentTarget=K;try{p(d)}catch(rt){lf(rt)}d.currentTarget=null,p=I}else for(v=0;v<u.length;v++){if(A=u[v],I=A.instance,K=A.currentTarget,A=A.listener,I!==p&&d.isPropagationStopped())break t;p=A,d.currentTarget=K;try{p(d)}catch(rt){lf(rt)}d.currentTarget=null,p=I}}}}function qt(o,i){var a=i[Lp];a===void 0&&(a=i[Lp]=new Set);var u=o+"__bubble";a.has(u)||(PE(i,o,2,!1),a.add(u))}function Tg(o,i,a){var u=0;i&&(u|=4),PE(a,o,u,i)}var Kf="_reactListening"+Math.random().toString(36).slice(2);function Cg(o){if(!o[Kf]){o[Kf]=!0,j1.forEach(function(a){a!=="selectionchange"&&(C_.has(a)||Tg(a,!1,o),Tg(a,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[Kf]||(i[Kf]=!0,Tg("selectionchange",!1,i))}}function PE(o,i,a,u){switch(gw(i)){case 2:var d=W_;break;case 8:d=t3;break;default:d=kg}a=d.bind(null,i,a,o),d=void 0,!Gp||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),u?d!==void 0?o.addEventListener(i,a,{capture:!0,passive:d}):o.addEventListener(i,a,!0):d!==void 0?o.addEventListener(i,a,{passive:d}):o.addEventListener(i,a,!1)}function Ag(o,i,a,u,d){var p=u;if((i&1)===0&&(i&2)===0&&u!==null)t:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var A=u.stateNode.containerInfo;if(A===d)break;if(v===4)for(v=u.return;v!==null;){var I=v.tag;if((I===3||I===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;A!==null;){if(v=da(A),v===null)return;if(I=v.tag,I===5||I===6||I===26||I===27){u=p=v;continue t}A=A.parentNode}}u=u.return}Y1(function(){var K=p,rt=Fp(a),lt=[];t:{var X=SS.get(o);if(X!==void 0){var J=of,gt=o;switch(o){case"keypress":if(nf(a)===0)break t;case"keydown":case"keyup":J=bN;break;case"focusin":gt="focus",J=Xp;break;case"focusout":gt="blur",J=Xp;break;case"beforeblur":case"afterblur":J=Xp;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=X1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=sN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=xN;break;case gS:case yS:case bS:J=uN;break;case vS:J=wN;break;case"scroll":case"scrollend":J=oN;break;case"wheel":J=CN;break;case"copy":case"cut":case"paste":J=fN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Z1;break;case"toggle":case"beforetoggle":J=$N}var Ct=(i&4)!==0,fe=!Ct&&(o==="scroll"||o==="scrollend"),F=Ct?X!==null?X+"Capture":null:X;Ct=[];for(var U=K,V;U!==null;){var st=U;if(V=st.stateNode,st=st.tag,st!==5&&st!==26&&st!==27||V===null||F===null||(st=nu(U,F),st!=null&&Ct.push(Iu(U,st,V))),fe)break;U=U.return}0<Ct.length&&(X=new J(X,gt,null,a,rt),lt.push({event:X,listeners:Ct}))}}if((i&7)===0){t:{if(X=o==="mouseover"||o==="pointerover",J=o==="mouseout"||o==="pointerout",X&&a!==Hp&&(gt=a.relatedTarget||a.fromElement)&&(da(gt)||gt[fa]))break t;if((J||X)&&(X=rt.window===rt?rt:(X=rt.ownerDocument)?X.defaultView||X.parentWindow:window,J?(gt=a.relatedTarget||a.toElement,J=K,gt=gt?da(gt):null,gt!==null&&(fe=l(gt),Ct=gt.tag,gt!==fe||Ct!==5&&Ct!==27&&Ct!==6)&&(gt=null)):(J=null,gt=K),J!==gt)){if(Ct=X1,st="onMouseLeave",F="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(Ct=Z1,st="onPointerLeave",F="onPointerEnter",U="pointer"),fe=J==null?X:eu(J),V=gt==null?X:eu(gt),X=new Ct(st,U+"leave",J,a,rt),X.target=fe,X.relatedTarget=V,st=null,da(rt)===K&&(Ct=new Ct(F,U+"enter",gt,a,rt),Ct.target=V,Ct.relatedTarget=fe,st=Ct),fe=st,J&>)e:{for(Ct=A_,F=J,U=gt,V=0,st=F;st;st=Ct(st))V++;st=0;for(var wt=U;wt;wt=Ct(wt))st++;for(;0<V-st;)F=Ct(F),V--;for(;0<st-V;)U=Ct(U),st--;for(;V--;){if(F===U||U!==null&&F===U.alternate){Ct=F;break e}F=Ct(F),U=Ct(U)}Ct=null}else Ct=null;J!==null&&HE(lt,X,J,Ct,!1),gt!==null&&fe!==null&&HE(lt,fe,gt,Ct,!0)}}t:{if(X=K?eu(K):window,J=X.nodeName&&X.nodeName.toLowerCase(),J==="select"||J==="input"&&X.type==="file")var Wt=iS;else if(rS(X))if(sS)Wt=zN;else{Wt=IN;var vt=jN}else J=X.nodeName,!J||J.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&Pp(K.elementType)&&(Wt=iS):Wt=LN;if(Wt&&(Wt=Wt(o,K))){oS(lt,Wt,a,rt);break t}vt&&vt(o,X,K),o==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&kp(X,"number",X.value)}switch(vt=K?eu(K):window,o){case"focusin":(rS(vt)||vt.contentEditable==="true")&&(xa=vt,eh=K,cu=null);break;case"focusout":cu=eh=xa=null;break;case"mousedown":nh=!0;break;case"contextmenu":case"mouseup":case"dragend":nh=!1,pS(lt,a,rt);break;case"selectionchange":if(UN)break;case"keydown":case"keyup":pS(lt,a,rt)}var Bt;if(Zp)t:{switch(o){case"compositionstart":var Vt="onCompositionStart";break t;case"compositionend":Vt="onCompositionEnd";break t;case"compositionupdate":Vt="onCompositionUpdate";break t}Vt=void 0}else Sa?eS(o,a)&&(Vt="onCompositionEnd"):o==="keydown"&&a.keyCode===229&&(Vt="onCompositionStart");Vt&&(J1&&a.locale!=="ko"&&(Sa||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Sa&&(Bt=V1()):(Ri=rt,Yp="value"in Ri?Ri.value:Ri.textContent,Sa=!0)),vt=Xf(K,Vt),0<vt.length&&(Vt=new Q1(Vt,o,null,a,rt),lt.push({event:Vt,listeners:vt}),Bt?Vt.data=Bt:(Bt=nS(a),Bt!==null&&(Vt.data=Bt)))),(Bt=RN?ON(o,a):NN(o,a))&&(Vt=Xf(K,"onBeforeInput"),0<Vt.length&&(vt=new Q1("onBeforeInput","beforeinput",null,a,rt),lt.push({event:vt,listeners:Vt}),vt.data=Bt)),E_(lt,o,K,a,rt)}kE(lt,i)})}function Iu(o,i,a){return{instance:o,listener:i,currentTarget:a}}function Xf(o,i){for(var a=i+"Capture",u=[];o!==null;){var d=o,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=nu(o,a),d!=null&&u.unshift(Iu(o,d,p)),d=nu(o,i),d!=null&&u.push(Iu(o,d,p))),o.tag===3)return u;o=o.return}return[]}function A_(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function HE(o,i,a,u,d){for(var p=i._reactName,v=[];a!==null&&a!==u;){var A=a,I=A.alternate,K=A.stateNode;if(A=A.tag,I!==null&&I===u)break;A!==5&&A!==26&&A!==27||K===null||(I=K,d?(K=nu(a,p),K!=null&&v.unshift(Iu(a,K,I))):d||(K=nu(a,p),K!=null&&v.push(Iu(a,K,I)))),a=a.return}v.length!==0&&o.push({event:i,listeners:v})}var $_=/\r\n?/g,M_=/\u0000|\uFFFD/g;function FE(o){return(typeof o=="string"?o:""+o).replace($_,`
|
|
26
|
-
`).replace(M_,"")}function qE(o,i){return i=FE(i),FE(o)===i}function ce(o,i,a,u,d,p){switch(a){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||ya(o,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&ya(o,""+u);break;case"className":Jc(o,"class",u);break;case"tabIndex":Jc(o,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Jc(o,a,u);break;case"style":q1(o,u,p);break;case"data":if(i!=="object"){Jc(o,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||a!=="href")){o.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(a);break}u=tf(""+u),o.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){o.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(i!=="input"&&ce(o,i,"name",d.name,d,null),ce(o,i,"formEncType",d.formEncType,d,null),ce(o,i,"formMethod",d.formMethod,d,null),ce(o,i,"formTarget",d.formTarget,d,null)):(ce(o,i,"encType",d.encType,d,null),ce(o,i,"method",d.method,d,null),ce(o,i,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(a);break}u=tf(""+u),o.setAttribute(a,u);break;case"onClick":u!=null&&(o.onclick=Uo);break;case"onScroll":u!=null&&qt("scroll",o);break;case"onScrollEnd":u!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(r(60));o.innerHTML=a}}break;case"multiple":o.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":o.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){o.removeAttribute("xlink:href");break}a=tf(""+u),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,""+u):o.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,""):o.removeAttribute(a);break;case"capture":case"download":u===!0?o.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(a,u):o.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?o.setAttribute(a,u):o.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?o.removeAttribute(a):o.setAttribute(a,u);break;case"popover":qt("beforetoggle",o),qt("toggle",o),Zc(o,"popover",u);break;case"xlinkActuate":Bo(o,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Bo(o,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Bo(o,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Bo(o,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Bo(o,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Bo(o,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Bo(o,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Bo(o,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Bo(o,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Zc(o,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=nN.get(a)||a,Zc(o,a,u))}}function $g(o,i,a,u,d,p){switch(a){case"style":q1(o,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(r(60));o.innerHTML=a}}break;case"children":typeof u=="string"?ya(o,u):(typeof u=="number"||typeof u=="bigint")&&ya(o,""+u);break;case"onScroll":u!=null&&qt("scroll",o);break;case"onScrollEnd":u!=null&&qt("scrollend",o);break;case"onClick":u!=null&&(o.onclick=Uo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!I1.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),p=o[jn]||null,p=p!=null?p[a]:null,typeof p=="function"&&o.removeEventListener(i,p,d),typeof u=="function")){typeof p!="function"&&p!==null&&(a in o?o[a]=null:o.hasAttribute(a)&&o.removeAttribute(a)),o.addEventListener(i,u,d);break t}a in o?o[a]=u:u===!0?o.setAttribute(a,""):Zc(o,a,u)}}}function hn(o,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",o),qt("load",o);var u=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var v=a[p];if(v!=null)switch(p){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ce(o,i,p,v,a,null)}}d&&ce(o,i,"srcSet",a.srcSet,a,null),u&&ce(o,i,"src",a.src,a,null);return;case"input":qt("invalid",o);var A=p=v=d=null,I=null,K=null;for(u in a)if(a.hasOwnProperty(u)){var rt=a[u];if(rt!=null)switch(u){case"name":d=rt;break;case"type":v=rt;break;case"checked":I=rt;break;case"defaultChecked":K=rt;break;case"value":p=rt;break;case"defaultValue":A=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,i));break;default:ce(o,i,u,rt,a,null)}}k1(o,p,A,I,K,v,d,!1);return;case"select":qt("invalid",o),u=v=p=null;for(d in a)if(a.hasOwnProperty(d)&&(A=a[d],A!=null))switch(d){case"value":p=A;break;case"defaultValue":v=A;break;case"multiple":u=A;default:ce(o,i,d,A,a,null)}i=p,a=v,o.multiple=!!u,i!=null?ga(o,!!u,i,!1):a!=null&&ga(o,!!u,a,!0);return;case"textarea":qt("invalid",o),p=d=u=null;for(v in a)if(a.hasOwnProperty(v)&&(A=a[v],A!=null))switch(v){case"value":u=A;break;case"defaultValue":d=A;break;case"children":p=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:ce(o,i,v,A,a,null)}H1(o,u,d,p);return;case"option":for(I in a)a.hasOwnProperty(I)&&(u=a[I],u!=null)&&(I==="selected"?o.selected=u&&typeof u!="function"&&typeof u!="symbol":ce(o,i,I,u,a,null));return;case"dialog":qt("beforetoggle",o),qt("toggle",o),qt("cancel",o),qt("close",o);break;case"iframe":case"object":qt("load",o);break;case"video":case"audio":for(u=0;u<ju.length;u++)qt(ju[u],o);break;case"image":qt("error",o),qt("load",o);break;case"details":qt("toggle",o);break;case"embed":case"source":case"link":qt("error",o),qt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in a)if(a.hasOwnProperty(K)&&(u=a[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ce(o,i,K,u,a,null)}return;default:if(Pp(i)){for(rt in a)a.hasOwnProperty(rt)&&(u=a[rt],u!==void 0&&$g(o,i,rt,u,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(u=a[A],u!=null&&ce(o,i,A,u,a,null))}function R_(o,i,a,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,v=null,A=null,I=null,K=null,rt=null;for(J in a){var lt=a[J];if(a.hasOwnProperty(J)&<!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":I=lt;default:u.hasOwnProperty(J)||ce(o,i,J,null,u,lt)}}for(var X in u){var J=u[X];if(lt=a[X],u.hasOwnProperty(X)&&(J!=null||lt!=null))switch(X){case"type":p=J;break;case"name":d=J;break;case"checked":K=J;break;case"defaultChecked":rt=J;break;case"value":v=J;break;case"defaultValue":A=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:J!==lt&&ce(o,i,X,J,u,lt)}}Up(o,v,A,I,K,rt,p,d);return;case"select":J=v=A=X=null;for(p in a)if(I=a[p],a.hasOwnProperty(p)&&I!=null)switch(p){case"value":break;case"multiple":J=I;default:u.hasOwnProperty(p)||ce(o,i,p,null,u,I)}for(d in u)if(p=u[d],I=a[d],u.hasOwnProperty(d)&&(p!=null||I!=null))switch(d){case"value":X=p;break;case"defaultValue":A=p;break;case"multiple":v=p;default:p!==I&&ce(o,i,d,p,u,I)}i=A,a=v,u=J,X!=null?ga(o,!!a,X,!1):!!u!=!!a&&(i!=null?ga(o,!!a,i,!0):ga(o,!!a,a?[]:"",!1));return;case"textarea":J=X=null;for(A in a)if(d=a[A],a.hasOwnProperty(A)&&d!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:ce(o,i,A,null,u,d)}for(v in u)if(d=u[v],p=a[v],u.hasOwnProperty(v)&&(d!=null||p!=null))switch(v){case"value":X=d;break;case"defaultValue":J=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&ce(o,i,v,d,u,p)}P1(o,X,J);return;case"option":for(var gt in a)X=a[gt],a.hasOwnProperty(gt)&&X!=null&&!u.hasOwnProperty(gt)&&(gt==="selected"?o.selected=!1:ce(o,i,gt,null,u,X));for(I in u)X=u[I],J=a[I],u.hasOwnProperty(I)&&X!==J&&(X!=null||J!=null)&&(I==="selected"?o.selected=X&&typeof X!="function"&&typeof X!="symbol":ce(o,i,I,X,u,J));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ct in a)X=a[Ct],a.hasOwnProperty(Ct)&&X!=null&&!u.hasOwnProperty(Ct)&&ce(o,i,Ct,null,u,X);for(K in u)if(X=u[K],J=a[K],u.hasOwnProperty(K)&&X!==J&&(X!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,i));break;default:ce(o,i,K,X,u,J)}return;default:if(Pp(i)){for(var fe in a)X=a[fe],a.hasOwnProperty(fe)&&X!==void 0&&!u.hasOwnProperty(fe)&&$g(o,i,fe,void 0,u,X);for(rt in u)X=u[rt],J=a[rt],!u.hasOwnProperty(rt)||X===J||X===void 0&&J===void 0||$g(o,i,rt,X,u,J);return}}for(var F in a)X=a[F],a.hasOwnProperty(F)&&X!=null&&!u.hasOwnProperty(F)&&ce(o,i,F,null,u,X);for(lt in u)X=u[lt],J=a[lt],!u.hasOwnProperty(lt)||X===J||X==null&&J==null||ce(o,i,lt,X,u,J)}function GE(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O_(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var d=a[u],p=d.transferSize,v=d.initiatorType,A=d.duration;if(p&&A&&GE(v)){for(v=0,A=d.responseEnd,u+=1;u<a.length;u++){var I=a[u],K=I.startTime;if(K>A)break;var rt=I.transferSize,lt=I.initiatorType;rt&&GE(lt)&&(I=I.responseEnd,v+=rt*(I<A?1:(A-K)/(I-K)))}if(--u,i+=8*(p+v)/(d.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Mg=null,Rg=null;function Qf(o){return o.nodeType===9?o:o.ownerDocument}function YE(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function VE(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function Og(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ng=null;function N_(){var o=window.event;return o&&o.type==="popstate"?o===Ng?!1:(Ng=o,!0):(Ng=null,!1)}var KE=typeof setTimeout=="function"?setTimeout:void 0,__=typeof clearTimeout=="function"?clearTimeout:void 0,XE=typeof Promise=="function"?Promise:void 0,D_=typeof queueMicrotask=="function"?queueMicrotask:typeof XE<"u"?function(o){return XE.resolve(null).then(o).catch(j_)}:KE;function j_(o){setTimeout(function(){throw o})}function Yi(o){return o==="head"}function QE(o,i){var a=i,u=0;do{var d=a.nextSibling;if(o.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(u===0){o.removeChild(d),Ka(i);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")Lu(o.ownerDocument.documentElement);else if(a==="head"){a=o.ownerDocument.head,Lu(a);for(var p=a.firstChild;p;){var v=p.nextSibling,A=p.nodeName;p[tu]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=v}}else a==="body"&&Lu(o.ownerDocument.body);a=d}while(a);Ka(i)}function ZE(o,i){var a=o;o=0;do{var u=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(o===0)break;o--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||o++;a=u}while(a)}function _g(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":_g(a),zp(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}o.removeChild(a)}}function I_(o,i,a,u){for(;o.nodeType===1;){var d=a;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(u){if(!o[tu])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(p=o.getAttribute("rel"),p==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(p!==d.rel||o.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||o.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||o.getAttribute("title")!==(d.title==null?null:d.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(p=o.getAttribute("src"),(p!==(d.src==null?null:d.src)||o.getAttribute("type")!==(d.type==null?null:d.type)||o.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&o.getAttribute("name")===p)return o}else return o;if(o=jr(o.nextSibling),o===null)break}return null}function L_(o,i,a){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=jr(o.nextSibling),o===null))return null;return o}function JE(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=jr(o.nextSibling),o===null))return null;return o}function Dg(o){return o.data==="$?"||o.data==="$~"}function jg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function z_(o,i){var a=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||a.readyState!=="loading")i();else{var u=function(){i(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),o._reactRetry=u}}function jr(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var Ig=null;function WE(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var a=o.data;if(a==="/$"||a==="/&"){if(i===0)return jr(o.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}o=o.nextSibling}return null}function tw(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var a=o.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return o;i--}else a!=="/$"&&a!=="/&"||i++}o=o.previousSibling}return null}function ew(o,i,a){switch(i=Qf(a),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Lu(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);zp(o)}var Ir=new Map,nw=new Set;function Zf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ei=B.d;B.d={f:B_,r:U_,D:k_,C:P_,L:H_,m:F_,X:G_,S:q_,M:Y_};function B_(){var o=ei.f(),i=Hf();return o||i}function U_(o){var i=ma(o);i!==null&&i.tag===5&&i.type==="form"?vx(i):ei.r(o)}var Ga=typeof document>"u"?null:document;function rw(o,i,a){var u=Ga;if(u&&typeof i=="string"&&i){var d=$r(i);d='link[rel="'+o+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),nw.has(d)||(nw.add(d),o={rel:o,crossOrigin:a,href:i},u.querySelector(d)===null&&(i=u.createElement("link"),hn(i,"link",o),sn(i),u.head.appendChild(i)))}}function k_(o){ei.D(o),rw("dns-prefetch",o,null)}function P_(o,i){ei.C(o,i),rw("preconnect",o,i)}function H_(o,i,a){ei.L(o,i,a);var u=Ga;if(u&&o&&i){var d='link[rel="preload"][as="'+$r(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+$r(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+$r(a.imageSizes)+'"]')):d+='[href="'+$r(o)+'"]';var p=d;switch(i){case"style":p=Ya(o);break;case"script":p=Va(o)}Ir.has(p)||(o=b({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:o,as:i},a),Ir.set(p,o),u.querySelector(d)!==null||i==="style"&&u.querySelector(zu(p))||i==="script"&&u.querySelector(Bu(p))||(i=u.createElement("link"),hn(i,"link",o),sn(i),u.head.appendChild(i)))}}function F_(o,i){ei.m(o,i);var a=Ga;if(a&&o){var u=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+$r(u)+'"][href="'+$r(o)+'"]',p=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Va(o)}if(!Ir.has(p)&&(o=b({rel:"modulepreload",href:o},i),Ir.set(p,o),a.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bu(p)))return}u=a.createElement("link"),hn(u,"link",o),sn(u),a.head.appendChild(u)}}}function q_(o,i,a){ei.S(o,i,a);var u=Ga;if(u&&o){var d=pa(u).hoistableStyles,p=Ya(o);i=i||"default";var v=d.get(p);if(!v){var A={loading:0,preload:null};if(v=u.querySelector(zu(p)))A.loading=5;else{o=b({rel:"stylesheet",href:o,"data-precedence":i},a),(a=Ir.get(p))&&Lg(o,a);var I=v=u.createElement("link");sn(I),hn(I,"link",o),I._p=new Promise(function(K,rt){I.onload=K,I.onerror=rt}),I.addEventListener("load",function(){A.loading|=1}),I.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Jf(v,i,u)}v={type:"stylesheet",instance:v,count:1,state:A},d.set(p,v)}}}function G_(o,i){ei.X(o,i);var a=Ga;if(a&&o){var u=pa(a).hoistableScripts,d=Va(o),p=u.get(d);p||(p=a.querySelector(Bu(d)),p||(o=b({src:o,async:!0},i),(i=Ir.get(d))&&zg(o,i),p=a.createElement("script"),sn(p),hn(p,"link",o),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function Y_(o,i){ei.M(o,i);var a=Ga;if(a&&o){var u=pa(a).hoistableScripts,d=Va(o),p=u.get(d);p||(p=a.querySelector(Bu(d)),p||(o=b({src:o,async:!0,type:"module"},i),(i=Ir.get(d))&&zg(o,i),p=a.createElement("script"),sn(p),hn(p,"link",o),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function ow(o,i,a,u){var d=(d=ht.current)?Zf(d):null;if(!d)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=Ya(a.href),a=pa(d).hoistableStyles,u=a.get(i),u||(u={type:"style",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){o=Ya(a.href);var p=pa(d).hoistableStyles,v=p.get(o);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(o,v),(p=d.querySelector(zu(o)))&&!p._p&&(v.instance=p,v.state.loading=5),Ir.has(o)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ir.set(o,a),p||V_(d,o,a,v.state))),i&&u===null)throw Error(r(528,""));return v}if(i&&u!==null)throw Error(r(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Va(a),a=pa(d).hoistableScripts,u=a.get(i),u||(u={type:"script",instance:null,count:0,state:null},a.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Ya(o){return'href="'+$r(o)+'"'}function zu(o){return'link[rel="stylesheet"]['+o+"]"}function iw(o){return b({},o,{"data-precedence":o.precedence,precedence:null})}function V_(o,i,a,u){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=o.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),hn(i,"link",a),sn(i),o.head.appendChild(i))}function Va(o){return'[src="'+$r(o)+'"]'}function Bu(o){return"script[async]"+o}function sw(o,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var u=o.querySelector('style[data-href~="'+$r(a.href)+'"]');if(u)return i.instance=u,sn(u),u;var d=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(o.ownerDocument||o).createElement("style"),sn(u),hn(u,"style",d),Jf(u,a.precedence,o),i.instance=u;case"stylesheet":d=Ya(a.href);var p=o.querySelector(zu(d));if(p)return i.state.loading|=4,i.instance=p,sn(p),p;u=iw(a),(d=Ir.get(d))&&Lg(u,d),p=(o.ownerDocument||o).createElement("link"),sn(p);var v=p;return v._p=new Promise(function(A,I){v.onload=A,v.onerror=I}),hn(p,"link",u),i.state.loading|=4,Jf(p,a.precedence,o),i.instance=p;case"script":return p=Va(a.src),(d=o.querySelector(Bu(p)))?(i.instance=d,sn(d),d):(u=a,(d=Ir.get(p))&&(u=b({},a),zg(u,d)),o=o.ownerDocument||o,d=o.createElement("script"),sn(d),hn(d,"link",u),o.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Jf(u,a.precedence,o));return i.instance}function Jf(o,i,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,p=d,v=0;v<u.length;v++){var A=u[v];if(A.dataset.precedence===i)p=A;else if(p!==d)break}p?p.parentNode.insertBefore(o,p.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(o,i.firstChild))}function Lg(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function zg(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Wf=null;function aw(o,i,a){if(Wf===null){var u=new Map,d=Wf=new Map;d.set(a,u)}else d=Wf,u=d.get(a),u||(u=new Map,d.set(a,u));if(u.has(o))return u;for(u.set(o,null),a=a.getElementsByTagName(o),d=0;d<a.length;d++){var p=a[d];if(!(p[tu]||p[fn]||o==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(i)||"";v=o+v;var A=u.get(v);A?A.push(p):u.set(v,[p])}}return u}function lw(o,i,a){o=o.ownerDocument||o,o.head.insertBefore(a,i==="title"?o.querySelector("head > title"):null)}function K_(o,i,a){if(a===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(o=i.disabled,typeof i.precedence=="string"&&o==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function uw(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function X_(o,i,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Ya(u.href),p=i.querySelector(zu(d));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=td.bind(o),i.then(o,o)),a.state.loading|=4,a.instance=p,sn(p);return}p=i.ownerDocument||i,u=iw(u),(d=Ir.get(d))&&Lg(u,d),p=p.createElement("link"),sn(p);var v=p;v._p=new Promise(function(A,I){v.onload=A,v.onerror=I}),hn(p,"link",u),a.instance=p}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=td.bind(o),i.addEventListener("load",a),i.addEventListener("error",a))}}var Bg=0;function Q_(o,i){return o.stylesheets&&o.count===0&&nd(o,o.stylesheets),0<o.count||0<o.imgCount?function(a){var u=setTimeout(function(){if(o.stylesheets&&nd(o,o.stylesheets),o.unsuspend){var p=o.unsuspend;o.unsuspend=null,p()}},6e4+i);0<o.imgBytes&&Bg===0&&(Bg=62500*O_());var d=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&nd(o,o.stylesheets),o.unsuspend)){var p=o.unsuspend;o.unsuspend=null,p()}},(o.imgBytes>Bg?50:800)+i);return o.unsuspend=a,function(){o.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function td(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nd(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var ed=null;function nd(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,ed=new Map,i.forEach(Z_,o),ed=null,td.call(o))}function Z_(o,i){if(!(i.state.loading&4)){var a=ed.get(o);if(a)var u=a.get(null);else{a=new Map,ed.set(o,a);for(var d=o.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var v=d[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),u=v)}u&&a.set(null,u)}d=i.instance,v=d.getAttribute("data-precedence"),p=a.get(v)||u,p===u&&a.set(null,d),a.set(v,d),this.count++,u=td.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),p?p.parentNode.insertBefore(d,p.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(d,o.firstChild)),i.state.loading|=4}}var Uu={$$typeof:j,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function J_(o,i,a,u,d,p,v,A,I){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Dp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dp(0),this.hiddenUpdates=Dp(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function cw(o,i,a,u,d,p,v,A,I,K,rt,lt){return o=new J_(o,i,a,v,I,K,rt,lt,A),i=1,p===!0&&(i|=24),p=er(3,null,null,i),o.current=p,p.stateNode=o,i=yh(),i.refCount++,o.pooledCache=i,i.refCount++,p.memoizedState={element:u,isDehydrated:a,cache:i},xh(p),o}function fw(o){return o?(o=Ta,o):Ta}function dw(o,i,a,u,d,p){d=fw(d),u.context===null?u.context=d:u.pendingContext=d,u=Ii(i),u.payload={element:a},p=p===void 0?null:p,p!==null&&(u.callback=p),a=Li(o,u,i),a!==null&&(kn(a,o,i),yu(a,o,i))}function mw(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var a=o.retryLane;o.retryLane=a!==0&&a<i?a:i}}function Ug(o,i){mw(o,i),(o=o.alternate)&&mw(o,i)}function pw(o){if(o.tag===13||o.tag===31){var i=Cs(o,67108864);i!==null&&kn(i,o,67108864),Ug(o,67108864)}}function hw(o){if(o.tag===13||o.tag===31){var i=sr();i=jp(i);var a=Cs(o,i);a!==null&&kn(a,o,i),Ug(o,i)}}var rd=!0;function W_(o,i,a,u){var d=R.T;R.T=null;var p=B.p;try{B.p=2,kg(o,i,a,u)}finally{B.p=p,R.T=d}}function t3(o,i,a,u){var d=R.T;R.T=null;var p=B.p;try{B.p=8,kg(o,i,a,u)}finally{B.p=p,R.T=d}}function kg(o,i,a,u){if(rd){var d=Pg(u);if(d===null)Ag(o,i,u,od,a),yw(o,u);else if(n3(d,o,i,a,u))u.stopPropagation();else if(yw(o,u),i&4&&-1<e3.indexOf(o)){for(;d!==null;){var p=ma(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=Ss(p.pendingLanes);if(v!==0){var A=p;for(A.pendingLanes|=2,A.entangledLanes|=2;v;){var I=1<<31-Wn(v);A.entanglements[1]|=I,v&=~I}So(p),(ee&6)===0&&(kf=Zn()+500,Du(0))}}break;case 31:case 13:A=Cs(p,2),A!==null&&kn(A,p,2),Hf(),Ug(p,2)}if(p=Pg(u),p===null&&Ag(o,i,u,od,a),p===d)break;d=p}d!==null&&u.stopPropagation()}else Ag(o,i,u,null,a)}}function Pg(o){return o=Fp(o),Hg(o)}var od=null;function Hg(o){if(od=null,o=da(o),o!==null){var i=l(o);if(i===null)o=null;else{var a=i.tag;if(a===13){if(o=c(i),o!==null)return o;o=null}else if(a===31){if(o=f(i),o!==null)return o;o=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return od=o,null}function gw(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kO()){case T1:return 2;case C1:return 8;case Yc:case PO:return 32;case A1:return 268435456;default:return 32}default:return 32}}var Fg=!1,Vi=null,Ki=null,Xi=null,ku=new Map,Pu=new Map,Qi=[],e3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function yw(o,i){switch(o){case"focusin":case"focusout":Vi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Xi=null;break;case"pointerover":case"pointerout":ku.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pu.delete(i.pointerId)}}function Hu(o,i,a,u,d,p){return o===null||o.nativeEvent!==p?(o={blockedOn:i,domEventName:a,eventSystemFlags:u,nativeEvent:p,targetContainers:[d]},i!==null&&(i=ma(i),i!==null&&pw(i)),o):(o.eventSystemFlags|=u,i=o.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),o)}function n3(o,i,a,u,d){switch(i){case"focusin":return Vi=Hu(Vi,o,i,a,u,d),!0;case"dragenter":return Ki=Hu(Ki,o,i,a,u,d),!0;case"mouseover":return Xi=Hu(Xi,o,i,a,u,d),!0;case"pointerover":var p=d.pointerId;return ku.set(p,Hu(ku.get(p)||null,o,i,a,u,d)),!0;case"gotpointercapture":return p=d.pointerId,Pu.set(p,Hu(Pu.get(p)||null,o,i,a,u,d)),!0}return!1}function bw(o){var i=da(o.target);if(i!==null){var a=l(i);if(a!==null){if(i=a.tag,i===13){if(i=c(a),i!==null){o.blockedOn=i,_1(o.priority,function(){hw(a)});return}}else if(i===31){if(i=f(a),i!==null){o.blockedOn=i,_1(o.priority,function(){hw(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){o.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}o.blockedOn=null}function id(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var a=Pg(o.nativeEvent);if(a===null){a=o.nativeEvent;var u=new a.constructor(a.type,a);Hp=u,a.target.dispatchEvent(u),Hp=null}else return i=ma(a),i!==null&&pw(i),o.blockedOn=a,!1;i.shift()}return!0}function vw(o,i,a){id(o)&&a.delete(i)}function r3(){Fg=!1,Vi!==null&&id(Vi)&&(Vi=null),Ki!==null&&id(Ki)&&(Ki=null),Xi!==null&&id(Xi)&&(Xi=null),ku.forEach(vw),Pu.forEach(vw)}function sd(o,i){o.blockedOn===i&&(o.blockedOn=null,Fg||(Fg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,r3)))}var ad=null;function Sw(o){ad!==o&&(ad=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ad===o&&(ad=null);for(var i=0;i<o.length;i+=3){var a=o[i],u=o[i+1],d=o[i+2];if(typeof u!="function"){if(Hg(u||a)===null)continue;break}var p=ma(a);p!==null&&(o.splice(i,3),i-=3,Ph(p,{pending:!0,data:d,method:a.method,action:u},u,d))}}))}function Ka(o){function i(I){return sd(I,o)}Vi!==null&&sd(Vi,o),Ki!==null&&sd(Ki,o),Xi!==null&&sd(Xi,o),ku.forEach(i),Pu.forEach(i);for(var a=0;a<Qi.length;a++){var u=Qi[a];u.blockedOn===o&&(u.blockedOn=null)}for(;0<Qi.length&&(a=Qi[0],a.blockedOn===null);)bw(a),a.blockedOn===null&&Qi.shift();if(a=(o.ownerDocument||o).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var d=a[u],p=a[u+1],v=d[jn]||null;if(typeof p=="function")v||Sw(a);else if(v){var A=null;if(p&&p.hasAttribute("formAction")){if(d=p,v=p[jn]||null)A=v.formAction;else if(Hg(d)!==null)continue}else A=v.action;typeof A=="function"?a[u+1]=A:(a.splice(u,3),u-=3),Sw(a)}}}function xw(){function o(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function i(){d!==null&&(d(),d=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),d!==null&&(d(),d=null)}}}function qg(o){this._internalRoot=o}ld.prototype.render=qg.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var a=i.current,u=sr();dw(a,u,o,i,null,null)},ld.prototype.unmount=qg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;dw(o.current,2,null,o,null,null),Hf(),i[fa]=null}};function ld(o){this._internalRoot=o}ld.prototype.unstable_scheduleHydration=function(o){if(o){var i=N1();o={blockedOn:null,target:o,priority:i};for(var a=0;a<Qi.length&&i!==0&&i<Qi[a].priority;a++);Qi.splice(a,0,o),a===0&&bw(o)}};var Ew=e.version;if(Ew!=="19.2.3")throw Error(r(527,Ew,"19.2.3"));B.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=h(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var o3={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ud.isDisabled&&ud.supportsFiber)try{Zl=ud.inject(o3),Jn=ud}catch{}}return Gu.createRoot=function(o,i){if(!s(o))throw Error(r(299));var a=!1,u="",d=Rx,p=Ox,v=Nx;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=cw(o,1,!1,null,null,a,u,null,d,p,v,xw),o[fa]=i.current,Cg(o),new qg(i)},Gu.hydrateRoot=function(o,i,a){if(!s(o))throw Error(r(299));var u=!1,d="",p=Rx,v=Ox,A=Nx,I=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.formState!==void 0&&(I=a.formState)),i=cw(o,1,!0,i,a??null,u,d,I,p,v,A,xw),i.context=fw(null),a=i.current,u=sr(),u=jp(u),d=Ii(u),d.callback=null,Li(a,d,u),a=u,i.current.lanes=a,Wl(i,a),So(i),o[fa]=i.current,Cg(o),new ld(i)},Gu.version="19.2.3",Gu}var ST;function NG(){if(ST)return ey.exports;ST=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ey.exports=OG(),ey.exports}var xT=NG();class ET{log=po();root;onBrowserRender=ar({on:"react:browser:render",handler:async({hydration:e,root:n,element:r})=>{e?.layers?(this.root=xT.hydrateRoot(n,r),this.log.info("Hydrated root element")):(this.root??=xT.createRoot(n),this.root.render(r),this.log.info("Created root element"))}})}class Zy{alepha=Rt(Re);pageApi=Rt(Yd);get state(){return this.alepha.store.get("alepha.react.router.state")}get pages(){return this.pageApi.getPages()}get concretePages(){return this.pageApi.getConcretePages()}get browser(){if(this.alepha.isBrowser())return this.alepha.inject(Qy)}isActive(e,n={}){const r=this.state.url.pathname;let s=r===e||r===`${e}/`||`${r}/`===e;return n.startWith&&!s&&(s=r.startsWith(e)),s}node(e,n={}){const r=this.pageApi.page(e);return!r.lazy&&!r.component?{...r,label:r.label??r.name,children:void 0}:{...r,label:r.label??r.name,href:this.path(e,n),children:void 0}}path(e,n={}){return this.pageApi.pathname(e,{params:{...this.state?.params,...n.params},query:n.query})}async reload(){this.browser&&await this.go(this.location.pathname+this.location.search,{replace:!0,force:!0})}getURL(){return this.browser?new URL(this.location.href):this.state.url}get location(){if(!this.browser)throw new Error("Browser is required");return this.browser.location}get current(){return this.state}get pathname(){return this.state.url.pathname}get query(){const e={};for(const[n,r]of new URLSearchParams(this.state.url.search).entries())e[n]=String(r);return e}async back(){this.browser?.history.back()}async forward(){this.browser?.history.forward()}async invalidate(e){await this.browser?.invalidate(e)}async go(e,n){for(const r of this.pages)if(r.name===e){await this.browser?.go(this.path(e,n),n);return}await this.browser?.go(e,n)}anchor(e,n={}){let r=e;for(const s of this.pages)if(s.name===e){r=this.path(e,n);break}return{href:this.base(r),onClick:s=>{s.stopPropagation(),s.preventDefault(),this.go(r,n).catch(console.error)}}}base(e){return"/devtools"+e}setQueryParams(e,n={}){const r=typeof e=="function"?e:()=>e,s=new URLSearchParams(r(this.query)).toString(),l=s?`${this.pathname}?${s}`:this.pathname;n.push?window.history.pushState({},"",l):window.history.replaceState({},"",l)}}const _G=()=>bv(Zy);gr({name:"alepha.react.router",primitives:[Cn],services:[Yd,Xy,Qy,Zy,ET,$M],register:t=>t.with(bM).with(uM).with(mM).with(uG).with(Yd).with(Qy).with(Xy).with(ET).with(Zy)});var wo=function(){return wo=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},wo.apply(this,arguments)};function jM(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function DG(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,l;r<s;r++)(l||!(r in e))&&(l||(l=Array.prototype.slice.call(e,0,r)),l[r]=e[r]);return t.concat(l||Array.prototype.slice.call(e))}var Od="right-scroll-bar-position",Nd="width-before-scroll-bar",jG="with-scroll-bars-hidden",IG="--removed-body-scroll-bar-size";function iy(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function LG(t,e){var n=C.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=e,n.facade}var zG=typeof window<"u"?C.useLayoutEffect:C.useEffect,wT=new WeakMap;function BG(t,e){var n=LG(null,function(r){return t.forEach(function(s){return iy(s,r)})});return zG(function(){var r=wT.get(n);if(r){var s=new Set(r),l=new Set(t),c=n.current;s.forEach(function(f){l.has(f)||iy(f,null)}),l.forEach(function(f){s.has(f)||iy(f,c)})}wT.set(n,t)},[t]),n}function UG(t){return t}function kG(t,e){e===void 0&&(e=UG);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(l){var c=e(l,r);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(l){for(r=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){r=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(l),c=n}var m=function(){var g=c;c=[],g.forEach(l)},h=function(){return Promise.resolve().then(m)};h(),n={push:function(g){c.push(g),h()},filter:function(g){return c=c.filter(g),n}}}};return s}function PG(t){t===void 0&&(t={});var e=kG(null);return e.options=wo({async:!0,ssr:!1},t),e}var IM=function(t){var e=t.sideCar,n=jM(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,wo({},n))};IM.isSideCarExport=!0;function HG(t,e){return t.useMedium(e),IM}var LM=PG(),sy=function(){},Jm=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:sy,onWheelCapture:sy,onTouchMoveCapture:sy}),s=r[0],l=r[1],c=t.forwardProps,f=t.children,m=t.className,h=t.removeScrollBar,g=t.enabled,b=t.shards,x=t.sideCar,S=t.noRelative,T=t.noIsolation,w=t.inert,$=t.allowPinchZoom,_=t.as,L=_===void 0?"div":_,j=t.gapMode,H=jM(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=x,G=BG([n,e]),z=wo(wo({},H),s);return C.createElement(C.Fragment,null,g&&C.createElement(P,{sideCar:LM,removeScrollBar:h,shards:b,noRelative:S,noIsolation:T,inert:w,setCallbacks:l,allowPinchZoom:!!$,lockRef:n,gapMode:j}),c?C.cloneElement(C.Children.only(f),wo(wo({},z),{ref:G})):C.createElement(L,wo({},z,{className:m,ref:G}),f))});Jm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jm.classNames={fullWidth:Nd,zeroRight:Od};var FG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qG(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=FG();return e&&t.setAttribute("nonce",e),t}function GG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function YG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var VG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=qG())&&(GG(e,n),YG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},KG=function(){var t=VG();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},zM=function(){var t=KG(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},XG={left:0,top:0,right:0,gap:0},ay=function(t){return parseInt(t||"",10)||0},QG=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[ay(n),ay(r),ay(s)]},ZG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return XG;var e=QG(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},JG=zM(),ul="data-scroll-locked",WG=function(t,e,n,r){var s=t.left,l=t.top,c=t.right,f=t.gap;return n===void 0&&(n="margin"),`
|
|
27
|
-
.`.concat(jG,` {
|
|
28
|
-
overflow: hidden `).concat(r,`;
|
|
29
|
-
padding-right: `).concat(f,"px ").concat(r,`;
|
|
30
|
-
}
|
|
31
|
-
body[`).concat(ul,`] {
|
|
32
|
-
overflow: hidden `).concat(r,`;
|
|
33
|
-
overscroll-behavior: contain;
|
|
34
|
-
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
35
|
-
padding-left: `.concat(s,`px;
|
|
36
|
-
padding-top: `).concat(l,`px;
|
|
37
|
-
padding-right: `).concat(c,`px;
|
|
38
|
-
margin-left:0;
|
|
39
|
-
margin-top:0;
|
|
40
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
41
|
-
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.`).concat(Od,` {
|
|
45
|
-
right: `).concat(f,"px ").concat(r,`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.`).concat(Nd,` {
|
|
49
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.`).concat(Od," .").concat(Od,` {
|
|
53
|
-
right: 0 `).concat(r,`;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.`).concat(Nd," .").concat(Nd,` {
|
|
57
|
-
margin-right: 0 `).concat(r,`;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
body[`).concat(ul,`] {
|
|
61
|
-
`).concat(IG,": ").concat(f,`px;
|
|
62
|
-
}
|
|
63
|
-
`)},TT=function(){var t=parseInt(document.body.getAttribute(ul)||"0",10);return isFinite(t)?t:0},tY=function(){C.useEffect(function(){return document.body.setAttribute(ul,(TT()+1).toString()),function(){var t=TT()-1;t<=0?document.body.removeAttribute(ul):document.body.setAttribute(ul,t.toString())}},[])},eY=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;tY();var l=C.useMemo(function(){return ZG(s)},[s]);return C.createElement(JG,{styles:WG(l,!e,s,n?"":"!important")})},Jy=!1;if(typeof window<"u")try{var fd=Object.defineProperty({},"passive",{get:function(){return Jy=!0,!0}});window.addEventListener("test",fd,fd),window.removeEventListener("test",fd,fd)}catch{Jy=!1}var Xa=Jy?{passive:!1}:!1,nY=function(t){return t.tagName==="TEXTAREA"},BM=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!nY(t)&&n[e]==="visible")},rY=function(t){return BM(t,"overflowY")},oY=function(t){return BM(t,"overflowX")},CT=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=UM(t,r);if(s){var l=kM(t,r),c=l[1],f=l[2];if(c>f)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},iY=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},sY=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},UM=function(t,e){return t==="v"?rY(e):oY(e)},kM=function(t,e){return t==="v"?iY(e):sY(e)},aY=function(t,e){return t==="h"&&e==="rtl"?-1:1},lY=function(t,e,n,r,s){var l=aY(t,window.getComputedStyle(e).direction),c=l*r,f=n.target,m=e.contains(f),h=!1,g=c>0,b=0,x=0;do{if(!f)break;var S=kM(t,f),T=S[0],w=S[1],$=S[2],_=w-$-l*T;(T||_)&&UM(t,f)&&(b+=_,x+=T);var L=f.parentNode;f=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!m&&f!==document.body||m&&(e.contains(f)||e===f));return(g&&Math.abs(b)<1||!g&&Math.abs(x)<1)&&(h=!0),h},dd=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},AT=function(t){return[t.deltaX,t.deltaY]},$T=function(t){return t&&"current"in t?t.current:t},uY=function(t,e){return t[0]===e[0]&&t[1]===e[1]},cY=function(t){return`
|
|
64
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
65
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
66
|
-
`)},fY=0,Qa=[];function dY(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),s=C.useState(fY++)[0],l=C.useState(zM)[0],c=C.useRef(t);C.useEffect(function(){c.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=DG([t.lockRef.current],(t.shards||[]).map($T),!0).filter(Boolean);return w.forEach(function($){return $.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function($){return $.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var f=C.useCallback(function(w,$){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var _=dd(w),L=n.current,j="deltaX"in w?w.deltaX:L[0]-_[0],H="deltaY"in w?w.deltaY:L[1]-_[1],P,G=w.target,z=Math.abs(j)>Math.abs(H)?"h":"v";if("touches"in w&&z==="h"&&G.type==="range")return!1;var k=window.getSelection(),W=k&&k.anchorNode,et=W?W===G||W.contains(G):!1;if(et)return!1;var it=CT(z,G);if(!it)return!0;if(it?P=z:(P=z==="v"?"h":"v",it=CT(z,G)),!it)return!1;if(!r.current&&"changedTouches"in w&&(j||H)&&(r.current=P),!P)return!0;var ct=r.current||P;return lY(ct,$,w,ct==="h"?j:H)},[]),m=C.useCallback(function(w){var $=w;if(!(!Qa.length||Qa[Qa.length-1]!==l)){var _="deltaY"in $?AT($):dd($),L=e.current.filter(function(P){return P.name===$.type&&(P.target===$.target||$.target===P.shadowParent)&&uY(P.delta,_)})[0];if(L&&L.should){$.cancelable&&$.preventDefault();return}if(!L){var j=(c.current.shards||[]).map($T).filter(Boolean).filter(function(P){return P.contains($.target)}),H=j.length>0?f($,j[0]):!c.current.noIsolation;H&&$.cancelable&&$.preventDefault()}}},[]),h=C.useCallback(function(w,$,_,L){var j={name:w,delta:$,target:_,should:L,shadowParent:mY(_)};e.current.push(j),setTimeout(function(){e.current=e.current.filter(function(H){return H!==j})},1)},[]),g=C.useCallback(function(w){n.current=dd(w),r.current=void 0},[]),b=C.useCallback(function(w){h(w.type,AT(w),w.target,f(w,t.lockRef.current))},[]),x=C.useCallback(function(w){h(w.type,dd(w),w.target,f(w,t.lockRef.current))},[]);C.useEffect(function(){return Qa.push(l),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:x}),document.addEventListener("wheel",m,Xa),document.addEventListener("touchmove",m,Xa),document.addEventListener("touchstart",g,Xa),function(){Qa=Qa.filter(function(w){return w!==l}),document.removeEventListener("wheel",m,Xa),document.removeEventListener("touchmove",m,Xa),document.removeEventListener("touchstart",g,Xa)}},[]);var S=t.removeScrollBar,T=t.inert;return C.createElement(C.Fragment,null,T?C.createElement(l,{styles:cY(s)}):null,S?C.createElement(eY,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function mY(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const pY=HG(LM,dY);var Vd=C.forwardRef(function(t,e){return C.createElement(Jm,wo({},t,{ref:e,sideCar:pY}))});Vd.classNames=Jm.classNames;function Ao(t){return Object.keys(t)}function ly(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Tv(t,e){const n={...t},r=e;return ly(t)&&ly(e)&&Object.keys(e).forEach(s=>{ly(r[s])&&s in t?n[s]=Tv(n[s],r[s]):n[s]=r[s]}),n}function hY(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function gY(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function yY(t){const e=gY(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function MT(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function PM(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const s=`${r/16}${t}`;return e?MT(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(l=>n(l)).join(",");if(r.includes(" "))return r.split(" ").map(l=>n(l)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const l=`${Number(s)/16}${t}`;return e?MT(l):l}}return r}return n}const ut=PM("rem",{shouldScale:!0}),RT=PM("em");function Wm(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function HM(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function bY(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==C.Fragment:!1}function jl(t){const e=C.createContext(null);return[({children:s,value:l})=>E.jsx(e.Provider,{value:l,children:s}),()=>{const s=C.useContext(e);if(s===null)throw new Error(t);return s}]}function Cv(t=null){const e=C.createContext(t);return[({children:s,value:l})=>E.jsx(e.Provider,{value:l,children:s}),()=>C.useContext(e)]}const vY={app:100,modal:200,popover:300,overlay:400,max:9999};function wr(t){return vY[t]}function ln(t,e="size",n=!0){if(t!==void 0)return HM(t)?n?ut(t):t:`var(--${e}-${t})`}function Av(t){return ln(t,"mantine-spacing")}function Tr(t){return t===void 0?"var(--mantine-radius-default)":ln(t,"mantine-radius")}function lr(t){return ln(t,"mantine-font-size")}function SY(t){return ln(t,"mantine-line-height",!1)}function FM(t){if(t)return ln(t,"mantine-shadow",!1)}function qM(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}function ns(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function Hs(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>((...n)=>e.current?.(...n)),[])}function tp(t,e){const{delay:n,flushOnUnmount:r,leading:s}=typeof e=="number"?{delay:e,flushOnUnmount:!1,leading:!1}:e,l=Hs(t),c=C.useRef(0),f=C.useMemo(()=>{const m=Object.assign((...h)=>{window.clearTimeout(c.current);const g=m._isFirstCall;m._isFirstCall=!1;function b(){window.clearTimeout(c.current),c.current=0,m._isFirstCall=!0}if(s&&g){l(...h);const T=()=>{b()},w=()=>{c.current!==0&&(b(),l(...h))},$=()=>{b()};m.flush=w,m.cancel=$,c.current=window.setTimeout(T,n);return}if(s&&!g){const T=()=>{c.current!==0&&(b(),l(...h))},w=()=>{b()};m.flush=T,m.cancel=w;const $=()=>{b()};c.current=window.setTimeout($,n);return}const x=()=>{c.current!==0&&(b(),l(...h))},S=()=>{b()};m.flush=x,m.cancel=S,c.current=window.setTimeout(x,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return m},[l,n,s]);return C.useEffect(()=>()=>{r?f.flush():f.cancel()},[f,r]),f}function xY(t={timeout:2e3}){const[e,n]=C.useState(null),[r,s]=C.useState(!1),[l,c]=C.useState(null),f=g=>{window.clearTimeout(l),c(window.setTimeout(()=>s(!1),t.timeout)),s(g)};return{copy:g=>{"clipboard"in navigator?navigator.clipboard.writeText(g).then(()=>f(!0)).catch(b=>n(b)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{s(!1),n(null),window.clearTimeout(l)},error:e,copied:r}}function EY(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function wY(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function TY(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,s]=C.useState(n?e:wY(t));return C.useEffect(()=>{try{const l=window.matchMedia(t);return s(l.matches),EY(l,c=>s(c.matches))}catch{return}},[t]),r||!1}const Il=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Ll(t,e){const n=C.useRef(!1);C.useEffect(()=>()=>{n.current=!1},[]),C.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function CY({opened:t,shouldReturnFocus:e=!0}){const n=C.useRef(null),r=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return Ll(()=>{let s=-1;const l=c=>{c.key==="Tab"&&window.clearTimeout(s)};return document.addEventListener("keydown",l),t?n.current=document.activeElement:e&&(s=window.setTimeout(r,10)),()=>{window.clearTimeout(s),document.removeEventListener("keydown",l)}},[t,e]),r}const AY=/input|select|textarea|button|object/,GM="a, input, select, textarea, button, object, [tabindex]";function $Y(t){return t.style.display==="none"}function MY(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if($Y(n))return!1;n=n.parentNode}return!0}function YM(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function Wy(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(YM(t));return(AY.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&MY(t)}function VM(t){const e=YM(t);return(Number.isNaN(e)||e>=0)&&Wy(t)}function RY(t){return Array.from(t.querySelectorAll(GM)).filter(VM)}function OY(t,e){const n=RY(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],s=t.getRootNode();let l=r===s.activeElement||t===s.activeElement;const c=s.activeElement;if(c.tagName==="INPUT"&&c.getAttribute("type")==="radio"&&(l=n.filter(g=>g.getAttribute("type")==="radio"&&g.getAttribute("name")===c.getAttribute("name")).includes(r)),!l)return;e.preventDefault();const m=n[e.shiftKey?n.length-1:0];m&&m.focus()}function NY(t=!0){const e=C.useRef(null),n=s=>{let l=s.querySelector("[data-autofocus]");if(!l){const c=Array.from(s.querySelectorAll(GM));l=c.find(VM)||c.find(Wy)||null,!l&&Wy(s)&&(l=s)}l&&l.focus({preventScroll:!0})},r=C.useCallback(s=>{t&&s!==null&&e.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&n(s)}),e.current=s):e.current=null)},[t]);return C.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const s=l=>{l.key==="Tab"&&e.current&&OY(e.current,l)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const _Y=t=>(t+1)%1e6;function DY(){const[,t]=C.useReducer(_Y,0);return t}const jY=$n.useId||(()=>{});function IY(){const t=jY();return t?`mantine-${t.replace(/:/g,"")}`:""}function $v(t){const e=IY(),[n,r]=C.useState(e);return Il(()=>{r(ns())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function LY(t,e,n){C.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function t0(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function KM(...t){const e=new Map;return n=>{if(t.forEach(r=>{const s=t0(r,n);s&&e.set(r,s)}),e.size>0)return()=>{t.forEach(r=>{const s=e.get(r);s&&typeof s=="function"?s():t0(r,null)}),e.clear()}}}function xi(...t){return C.useCallback(KM(...t),t)}function zY({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[s,l]=C.useState(e!==void 0?e:n),c=(f,...m)=>{l(f),r?.(f,...m)};return t!==void 0?[t,r,!0]:[s,c,!1]}function ep(t,e){return TY("(prefers-reduced-motion: reduce)",t,e)}const BY={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function md(t){const e=t.replace("Key","").toLowerCase();return BY[t]||e}function UY(t){const e=t.toLowerCase().split("+").map(l=>l.trim()),n={alt:e.includes("alt"),ctrl:e.includes("ctrl"),meta:e.includes("meta"),mod:e.includes("mod"),shift:e.includes("shift"),plus:e.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],s=e.find(l=>!r.includes(l));return{...n,key:s==="[plus]"?"+":s}}function kY(t,e,n){const{alt:r,ctrl:s,meta:l,mod:c,shift:f,key:m}=t,{altKey:h,ctrlKey:g,metaKey:b,shiftKey:x,key:S,code:T}=e;if(r!==h)return!1;if(c){if(!g&&!b)return!1}else if(s!==g||l!==b)return!1;return f!==x?!1:!!(m&&(n?md(T)===md(m):md(S??T)===md(m)))}function PY(t,e){return n=>kY(UY(t),n,e)}function HY(t,e,n=!1){return t.target instanceof HTMLElement?(n||!t.target.isContentEditable)&&!e.includes(t.target.tagName):!0}function FY(t,e=["INPUT","TEXTAREA","SELECT"],n=!1){C.useEffect(()=>{const r=s=>{t.forEach(([l,c,f={preventDefault:!0,usePhysicalKeys:!1}])=>{PY(l,f.usePhysicalKeys)(s)&&HY(s,e,n)&&(f.preventDefault&&s.preventDefault(),c(s))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[t])}function qY(t,e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}function GY(t){function e(r){const s=Object.keys(r).reduce((l,c)=>(l[`${t}:${c}`]=f=>r[c](f.detail),l),{});Il(()=>(Object.keys(s).forEach(l=>{window.removeEventListener(l,s[l]),window.addEventListener(l,s[l])}),()=>Object.keys(s).forEach(l=>{window.removeEventListener(l,s[l])})),[s])}function n(r){return(...s)=>qY(`${t}:${String(r)}`,s[0])}return[e,n]}function XM(t){const e=$n.version;return typeof $n.version!="string"||e.startsWith("18.")?t?.ref:t?.props?.ref}function Mv(t){const e=C.Children.toArray(t);return e.length!==1||!bY(e[0])?null:e[0]}function att(t){return t}function QM(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=QM(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=QM(t))&&(r&&(r+=" "),r+=e);return r}const YY={};function VY(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,s])=>{e[r]?e[r]=Vn(e[r],s):e[r]=s})}),e}function kc({theme:t,classNames:e,props:n,stylesCtx:r}){const l=(Array.isArray(e)?e:[e]).map(c=>typeof c=="function"?c(t,n,r):c||YY);return VY(l)}function ic({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((l,c)=>typeof c=="function"?{...l,...c(t,n,r)}:{...l,...c},{})}const ZM=C.createContext(null);function ys(){const t=C.useContext(ZM);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function KY(){return ys().cssVariablesResolver}function XY(){return ys().classNamesPrefix}function Rv(){return ys().getStyleNonce}function QY(){return ys().withStaticClasses}function ZY(){return ys().headless}function JY(){return ys().stylesTransform?.sx}function WY(){return ys().stylesTransform?.styles}function JM(){return ys().env||"default"}function tV(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function eV(t){let e=t.replace("#","");if(e.length===3){const c=e.split("");e=[c[0],c[0],c[1],c[1],c[2],c[2]].join("")}if(e.length===8){const c=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:c}}const n=parseInt(e,16),r=n>>16&255,s=n>>8&255,l=n&255;return{r,g:s,b:l,a:1}}function nV(t){const[e,n,r,s]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:s===void 0?1:s}}function rV(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),s=parseInt(n[2],10)/100,l=parseInt(n[3],10)/100,c=n[5]?parseFloat(n[5]):void 0,f=(1-Math.abs(2*l-1))*s,m=r/60,h=f*(1-Math.abs(m%2-1)),g=l-f/2;let b,x,S;return m>=0&&m<1?(b=f,x=h,S=0):m>=1&&m<2?(b=h,x=f,S=0):m>=2&&m<3?(b=0,x=f,S=h):m>=3&&m<4?(b=0,x=h,S=f):m>=4&&m<5?(b=h,x=0,S=f):(b=f,x=0,S=h),{r:Math.round((b+g)*255),g:Math.round((x+g)*255),b:Math.round((S+g)*255),a:c||1}}function Ov(t){return tV(t)?eV(t):t.startsWith("rgb")?nV(t):t.startsWith("hsl")?rV(t):{r:0,g:0,b:0,a:1}}function pd(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:s,a:l}=Ov(t),c=1-e,f=m=>Math.round(m*c);return`rgba(${f(n)}, ${f(r)}, ${f(s)}, ${l})`}function sc(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function uy(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function oV(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function iV(t){if(t.startsWith("oklch("))return(oV(t)||0)/100;const{r:e,g:n,b:r}=Ov(t),s=e/255,l=n/255,c=r/255,f=uy(s),m=uy(l),h=uy(c);return .2126*f+.7152*m+.0722*h}function Yu(t,e=.179){return t.startsWith("var(")?!1:iV(t)>e}function zl({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Yu(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Yu(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Yu(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,s]=t.split("."),l=s?Number(s):void 0,c=r in e.colors;if(c){const f=l!==void 0?e.colors[r][l]:e.colors[r][sc(e,n||"light")];return{color:r,value:f,shade:l,isThemeColor:c,isLight:Yu(f,e.luminanceThreshold),variable:s?`--mantine-color-${r}-${l}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:c,isLight:Yu(t,e.luminanceThreshold),shade:l,variable:void 0}}function Qs(t,e){const n=zl({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function e0(t,e){const n={from:t?.from||e.defaultGradient.from,to:t?.to||e.defaultGradient.to,deg:t?.deg??e.defaultGradient.deg??0},r=Qs(n.from,e),s=Qs(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${s} 100%)`}function xo(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const l=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${l}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:s}=Ov(t);return`rgba(${n}, ${r}, ${s}, ${e})`}const Za=xo,sV=({color:t,theme:e,variant:n,gradient:r,autoContrast:s})=>{const l=zl({color:t,theme:e}),c=typeof s=="boolean"?s:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const f=c&&l.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return l.isThemeColor?l.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:f,border:`${ut(1)} solid transparent`}:{background:`var(--mantine-color-${l.color}-${l.shade})`,hover:`var(--mantine-color-${l.color}-${l.shade===9?8:l.shade+1})`,color:f,border:`${ut(1)} solid transparent`}:{background:t,hover:pd(t,.1),color:f,border:`${ut(1)} solid transparent`}}if(n==="light"){if(l.isThemeColor){if(l.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const f=e.colors[l.color][l.shade];return{background:xo(f,.1),hover:xo(f,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:xo(t,.1),hover:xo(t,.12),color:t,border:`${ut(1)} solid transparent`}}if(n==="outline")return l.isThemeColor?l.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${ut(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:xo(e.colors[l.color][l.shade],.05),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${ut(1)} solid var(--mantine-color-${l.color}-${l.shade})`}:{background:"transparent",hover:xo(t,.05),color:t,border:`${ut(1)} solid ${t}`};if(n==="subtle"){if(l.isThemeColor){if(l.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`};const f=e.colors[l.color][l.shade];return{background:"transparent",hover:xo(f,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}}return{background:"transparent",hover:xo(t,.12),color:t,border:`${ut(1)} solid transparent`}}return n==="transparent"?l.isThemeColor?l.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${ut(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${ut(1)} solid transparent`}:n==="white"?l.isThemeColor?l.shade===void 0?{background:"var(--mantine-color-white)",hover:pd(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:pd(e.white,.01),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${ut(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:pd(e.white,.01),color:t,border:`${ut(1)} solid transparent`}:n==="gradient"?{background:e0(r,e),hover:e0(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ut(1)} solid var(--mantine-color-default-border)`}:{}},aV={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},OT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Nv={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:aV,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:sV,autoContrast:!1,luminanceThreshold:.3,fontFamily:OT,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:OT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ut(34),lineHeight:"1.3"},h2:{fontSize:ut(26),lineHeight:"1.35"},h3:{fontSize:ut(22),lineHeight:"1.4"},h4:{fontSize:ut(18),lineHeight:"1.45"},h5:{fontSize:ut(16),lineHeight:"1.5"},h6:{fontSize:ut(14),lineHeight:"1.5"}}},fontSizes:{xs:ut(12),sm:ut(14),md:ut(16),lg:ut(18),xl:ut(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:ut(2),sm:ut(4),md:ut(8),lg:ut(16),xl:ut(32)},spacing:{xs:ut(10),sm:ut(12),md:ut(16),lg:ut(20),xl:ut(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), 0 ${ut(1)} ${ut(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(10)} ${ut(15)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(7)} ${ut(7)} ${ut(-5)}`,md:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(20)} ${ut(25)} ${ut(-5)}, rgba(0, 0, 0, 0.04) 0 ${ut(10)} ${ut(10)} ${ut(-5)}`,lg:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(28)} ${ut(23)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(12)} ${ut(12)} ${ut(-7)}`,xl:`0 ${ut(1)} ${ut(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ut(36)} ${ut(28)} ${ut(-7)}, rgba(0, 0, 0, 0.04) 0 ${ut(17)} ${ut(17)} ${ut(-7)}`},other:{},components:{}};function NT(t){return t==="auto"||t==="dark"||t==="light"}function lV({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return NT(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&NT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const uV="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",_T="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function cy(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function DT(t){if(!(t.primaryColor in t.colors))throw new Error(uV);if(typeof t.primaryShade=="object"&&(!cy(t.primaryShade.dark)||!cy(t.primaryShade.light)))throw new Error(_T);if(typeof t.primaryShade=="number"&&!cy(t.primaryShade))throw new Error(_T)}function cV(t,e){if(!e)return DT(t),t;const n=Tv(t,e);return e.fontFamily&&!e.headings?.fontFamily&&(n.headings.fontFamily=e.fontFamily),DT(n),n}const _v=C.createContext(null),fV=()=>C.useContext(_v)||Nv;function Xn(){const t=C.useContext(_v);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function WM({theme:t,children:e,inherit:n=!0}){const r=fV(),s=C.useMemo(()=>cV(n?r:Nv,t),[t,r,n]);return E.jsx(_v.Provider,{value:s,children:e})}WM.displayName="@mantine/core/MantineThemeProvider";function dV(){const t=Xn(),e=Rv(),n=Ao(t.breakpoints).reduce((r,s)=>{const l=t.breakpoints[s].includes("px"),c=yY(t.breakpoints[s]),f=l?`${c-.1}px`:RT(c-.1),m=l?`${c}px`:RT(c);return`${r}@media (max-width: ${f}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${m}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return E.jsx("style",{"data-mantine-styles":"classes",nonce:e?.(),dangerouslySetInnerHTML:{__html:n}})}function fy(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function tR(t,e){const n=e?[e]:[":root",":host"],r=fy(t.variables),s=r?`${n.join(", ")}{${r}}`:"",l=fy(t.dark),c=fy(t.light),f=g=>n.map(b=>b===":host"?`${b}([data-mantine-color-scheme="${g}"])`:`${b}[data-mantine-color-scheme="${g}"]`).join(", "),m=l?`${f("dark")}{${l}}`:"",h=c?`${f("light")}{${c}}`:"";return`${s}
|
|
67
|
-
|
|
68
|
-
${m}
|
|
69
|
-
|
|
70
|
-
${h}`}function eR({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&zl({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function jT(t,e){return eR({color:t.colors[t.primaryColor][sc(t,e)],theme:t,autoContrast:null})}function hd({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:s=!0}){if(!t.colors[e])return{};if(n==="light"){const f=sc(t,"light"),m={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${f===9?8:f+1})`,[`--mantine-color-${r}-light`]:Za(t.colors[e][f],.1),[`--mantine-color-${r}-light-hover`]:Za(t.colors[e][f],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline-hover`]:Za(t.colors[e][f],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...m}:m}const l=sc(t,"dark"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${l})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${l===9?8:l+1})`,[`--mantine-color-${r}-light`]:Za(t.colors[e][Math.max(0,l-2)],.15),[`--mantine-color-${r}-light-hover`]:Za(t.colors[e][Math.max(0,l-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(l-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(l-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Za(t.colors[e][Math.max(l-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...c}:c}function mV(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function Ja(t,e,n){Ao(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const nR=t=>{const e=sc(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:ut(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":jT(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":jT(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Ja(r.variables,t.breakpoints,"breakpoint"),Ja(r.variables,t.spacing,"spacing"),Ja(r.variables,t.fontSizes,"font-size"),Ja(r.variables,t.lineHeights,"line-height"),Ja(r.variables,t.shadows,"shadow"),Ja(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((l,c)=>{r.variables[`--mantine-primary-color-${c}`]=`var(--mantine-color-${t.primaryColor}-${c})`}),Ao(t.colors).forEach(l=>{const c=t.colors[l];if(mV(c)){Object.assign(r.light,hd({theme:t,name:c.name,color:c.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,hd({theme:t,name:c.name,color:c.dark,colorScheme:"dark",withColorValues:!0}));return}c.forEach((f,m)=>{r.variables[`--mantine-color-${l}-${m}`]=f}),Object.assign(r.light,hd({theme:t,color:l,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,hd({theme:t,color:l,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return Ao(s).forEach(l=>{r.variables[`--mantine-${l}-font-size`]=s[l].fontSize,r.variables[`--mantine-${l}-line-height`]=s[l].lineHeight,r.variables[`--mantine-${l}-font-weight`]=s[l].fontWeight||t.headings.fontWeight}),r};function pV({theme:t,generator:e}){const n=nR(t),r=e?.(t);return r?Tv(n,r):n}const dy=nR(Nv);function hV(t){const e={variables:{},light:{},dark:{}};return Ao(t.variables).forEach(n=>{dy.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),Ao(t.light).forEach(n=>{dy.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),Ao(t.dark).forEach(n=>{dy.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function gV(t){return tR({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function rR({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Xn(),r=Rv(),s=KY(),l=pV({theme:n,generator:s}),c=(t===void 0||t===":root"||t===":host")&&e,f=c?hV(l):l,m=tR(f,t);return m?E.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${m}${c?"":gV(t)}`}}):null}rR.displayName="@mantine/CssVariables";function Wa(t,e){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:n?"dark":"light";e()?.setAttribute("data-mantine-color-scheme",r)}function yV({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const s=C.useRef(null),[l,c]=C.useState(()=>t.get(e)),f=r||l,m=C.useCallback(g=>{r||(Wa(g,n),c(g),t.set(g))},[t.set,f,r]),h=C.useCallback(()=>{c(e),Wa(e,n),t.clear()},[t.clear,e]);return C.useEffect(()=>(t.subscribe(m),t.unsubscribe),[t.subscribe,t.unsubscribe]),Il(()=>{Wa(t.get(e),n)},[]),C.useEffect(()=>{if(r)return Wa(r,n),()=>{};r===void 0&&Wa(l,n),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const g=b=>{l==="auto"&&Wa(b.matches?"dark":"light",n)};return s.current?.addEventListener("change",g),()=>s.current?.removeEventListener("change",g)},[l,r]),{colorScheme:f,setColorScheme:m,clearColorScheme:h}}function bV({respectReducedMotion:t,getRootElement:e}){Il(()=>{t&&e()?.setAttribute("data-respect-reduced-motion","true")},[t])}function oR({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:l=!0,withCssVariables:c=!0,cssVariablesSelector:f,classNamesPrefix:m="mantine",colorSchemeManager:h=lV(),defaultColorScheme:g="light",getRootElement:b=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:S,stylesTransform:T,env:w}){const{colorScheme:$,setColorScheme:_,clearColorScheme:L}=yV({defaultColorScheme:g,forceColorScheme:S,manager:h,getRootElement:b});return bV({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:b}),E.jsx(ZM.Provider,{value:{colorScheme:$,setColorScheme:_,clearColorScheme:L,getRootElement:b,classNamesPrefix:m,getStyleNonce:n,cssVariablesResolver:x,cssVariablesSelector:f??":root",withStaticClasses:r,stylesTransform:T,env:w},children:E.jsxs(WM,{theme:t,children:[c&&E.jsx(rR,{cssVariablesSelector:f,deduplicateCssVariables:l}),s&&E.jsx(dV,{}),e]})})}oR.displayName="@mantine/core/MantineProvider";function iR({classNames:t,styles:e,props:n,stylesCtx:r}){const s=Xn();return{resolvedClassNames:kc({theme:s,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:ic({theme:s,styles:e,props:n,stylesCtx:r||void 0})}}const vV={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function SV({theme:t,options:e,unstyled:n}){return Vn(e?.focusable&&!n&&(t.focusClassName||vV[t.focusRing]),e?.active&&!n&&t.activeClassName)}function xV({selector:t,stylesCtx:e,options:n,props:r,theme:s}){return kc({theme:s,classNames:n?.classNames,props:n?.props||r,stylesCtx:e})[t]}function IT({selector:t,stylesCtx:e,theme:n,classNames:r,props:s}){return kc({theme:n,classNames:r,props:s,stylesCtx:e})[t]}function EV({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function wV({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function TV({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(s=>`${e}-${s}-${n}`)}function CV({themeName:t,theme:e,selector:n,props:r,stylesCtx:s}){return t.map(l=>kc({theme:e,classNames:e.components[l]?.classNames,props:r,stylesCtx:s})?.[n])}function AV({options:t,classes:e,selector:n,unstyled:r}){return t?.variant&&!r?e[`${n}--${t.variant}`]:void 0}function $V({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:s,classNames:l,classes:c,unstyled:f,className:m,rootSelector:h,props:g,stylesCtx:b,withStaticClasses:x,headless:S,transformedStyles:T}){return Vn(SV({theme:t,options:e,unstyled:f||S}),CV({theme:t,themeName:n,selector:r,props:g,stylesCtx:b}),AV({options:e,classes:c,selector:r,unstyled:f}),IT({selector:r,stylesCtx:b,theme:t,classNames:l,props:g}),IT({selector:r,stylesCtx:b,theme:t,classNames:T,props:g}),xV({selector:r,stylesCtx:b,options:e,props:g,theme:t}),EV({rootSelector:h,selector:r,className:m}),wV({selector:r,classes:c,unstyled:f||S}),x&&!S&&TV({themeName:n,classNamesPrefix:s,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}function MV({theme:t,themeName:e,props:n,stylesCtx:r,selector:s}){return e.map(l=>ic({theme:t,styles:t.components[l]?.styles,props:n,stylesCtx:r})[s]).reduce((l,c)=>({...l,...c}),{})}function n0({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...n0({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}function RV(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...Wm(n[r])}}),e),{})}function OV({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:s,selector:l,themeName:c,headless:f}){return RV([f?{}:e?.(n,r,s),...c.map(m=>n.components?.[m]?.vars?.(n,r,s)),t?.(n,r,s)])?.[l]}function NV({theme:t,themeName:e,selector:n,options:r,props:s,stylesCtx:l,rootSelector:c,styles:f,style:m,vars:h,varsResolver:g,headless:b,withStylesTransform:x}){return{...!x&&MV({theme:t,themeName:e,props:s,stylesCtx:l,selector:n}),...!x&&ic({theme:t,styles:f,props:s,stylesCtx:l})[n],...!x&&ic({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:l})[n],...OV({theme:t,props:s,stylesCtx:l,vars:h,varsResolver:g,selector:n,themeName:e,headless:b}),...c===n?n0({style:m,theme:t}):null,...n0({style:r?.style,theme:t})}}function _V({props:t,stylesCtx:e,themeName:n}){const r=Xn(),s=WY()?.();return{getTransformedStyles:c=>s?[...c.map(m=>s(m,{props:t,theme:r,ctx:e})),...n.map(m=>s(r.components[m]?.styles,{props:t,theme:r,ctx:e}))].filter(Boolean):[],withStylesTransform:!!s}}function oe({name:t,classes:e,props:n,stylesCtx:r,className:s,style:l,rootSelector:c="root",unstyled:f,classNames:m,styles:h,vars:g,varsResolver:b,attributes:x}){const S=Xn(),T=XY(),w=QY(),$=ZY(),_=(Array.isArray(t)?t:[t]).filter(H=>H),{withStylesTransform:L,getTransformedStyles:j}=_V({props:n,stylesCtx:r,themeName:_});return(H,P)=>({className:$V({theme:S,options:P,themeName:_,selector:H,classNamesPrefix:T,classNames:m,classes:e,unstyled:f,className:s,rootSelector:c,props:n,stylesCtx:r,withStaticClasses:w,headless:$,transformedStyles:j([P?.styles,h])}),style:NV({theme:S,themeName:_,selector:H,options:P,props:n,stylesCtx:r,rootSelector:c,styles:h,style:l,vars:g,varsResolver:b,headless:$,withStylesTransform:L}),...x?.[H]})}function DV(t,e){return typeof t=="boolean"?t:e.autoContrast}const jV=({defaultColorScheme:t,localStorageKey:e,forceColorScheme:n})=>n?`document.documentElement.setAttribute("data-mantine-color-scheme", '${n}');`:`try {
|
|
71
|
-
var _colorScheme = window.localStorage.getItem("${e}");
|
|
72
|
-
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
73
|
-
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
74
|
-
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
75
|
-
} catch (e) {}
|
|
76
|
-
`;function IV({defaultColorScheme:t="light",localStorageKey:e="mantine-color-scheme-value",forceColorScheme:n,...r}){const s=["light","dark","auto"].includes(t)?t:"light";return E.jsx("script",{...r,"data-mantine-script":!0,dangerouslySetInnerHTML:{__html:jV({defaultColorScheme:s,localStorageKey:e,forceColorScheme:n})}})}function bt(t,e,n){const r=Xn(),s=r.components[t]?.defaultProps,l=typeof s=="function"?s(r):s;return{...e,...l,...Wm(n)}}function my(t){return Ao(t).reduce((e,n)=>t[n]!==void 0?`${e}${hY(n)}:${t[n]};`:e,"").trim()}function LV({selector:t,styles:e,media:n,container:r}){const s=e?my(e):"",l=Array.isArray(n)?n.map(f=>`@media${f.query}{${t}{${my(f.styles)}}}`):[],c=Array.isArray(r)?r.map(f=>`@container ${f.query}{${t}{${my(f.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${l.join("")}${c.join("")}`.trim()}function sR(t){const e=Rv();return E.jsx("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:LV(t)}})}function Dv(t){const{m:e,mx:n,my:r,mt:s,mb:l,ml:c,mr:f,me:m,ms:h,p:g,px:b,py:x,pt:S,pb:T,pl:w,pr:$,pe:_,ps:L,bd:j,bdrs:H,bg:P,c:G,opacity:z,ff:k,fz:W,fw:et,lts:it,ta:ct,lh:dt,fs:Y,tt:Z,td:R,w:B,miw:D,maw:tt,h:nt,mih:O,mah:q,bgsz:ot,bgp:ft,bgr:mt,bga:ht,pos:Tt,top:Jt,left:Ot,bottom:ie,right:We,inset:cn,display:Zt,flex:on,hiddenFrom:go,visibleFrom:Ai,lightHidden:Ql,darkHidden:bs,sx:Qn,...vs}=t;return{styleProps:Wm({m:e,mx:n,my:r,mt:s,mb:l,ml:c,mr:f,me:m,ms:h,p:g,px:b,py:x,pt:S,pb:T,pl:w,pr:$,pe:_,ps:L,bd:j,bg:P,c:G,opacity:z,ff:k,fz:W,fw:et,lts:it,ta:ct,lh:dt,fs:Y,tt:Z,td:R,w:B,miw:D,maw:tt,h:nt,mih:O,mah:q,bgsz:ot,bgp:ft,bgr:mt,bga:ht,pos:Tt,top:Jt,left:Ot,bottom:ie,right:We,inset:cn,display:Zt,flex:on,bdrs:H,hiddenFrom:go,visibleFrom:Ai,lightHidden:Ql,darkHidden:bs,sx:Qn}),rest:vs}}const zV={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function jv(t,e){const n=zl({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function BV(t,e){const n=zl({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:jv(t,e)}function UV(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const[n,r,...s]=t.split(" ").filter(c=>c.trim()!=="");let l=`${ut(n)}`;return r&&(l+=` ${r}`),s.length>0&&(l+=` ${jv(s.join(" "),e)}`),l.trim()}return t}const LT={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function kV(t){return typeof t=="string"&&t in LT?LT[t]:t}const PV=["h1","h2","h3","h4","h5","h6"];function HV(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&PV.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?ut(t):t}function FV(t){return t}const qV=["h1","h2","h3","h4","h5","h6"];function GV(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&qV.includes(t)?`var(--mantine-${t}-line-height)`:t}function YV(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?ut(t):t}function VV(t){return typeof t=="number"?ut(t):t}function KV(t,e){if(typeof t=="number")return ut(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return ut(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const py={color:jv,textColor:BV,fontSize:HV,spacing:KV,radius:YV,identity:FV,size:VV,lineHeight:GV,fontFamily:kV,border:UV};function zT(t){return t.replace("(min-width: ","").replace("em)","")}function XV({media:t,...e}){const r=Object.keys(t).sort((s,l)=>Number(zT(s))-Number(zT(l))).map(s=>({query:s,styles:t[s]}));return{...e,media:r}}function QV(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function ZV(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function JV(t){return typeof t=="object"&&t!==null?Ao(t).filter(e=>e!=="base"):[]}function WV(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function aR({styleProps:t,data:e,theme:n}){return XV(Ao(t).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const l=e[s],c=Array.isArray(l.property)?l.property:[l.property],f=ZV(t[s]);if(!QV(t[s]))return c.forEach(h=>{r.inlineStyles[h]=py[l.type](f,n)}),r;r.hasResponsiveStyles=!0;const m=JV(t[s]);return c.forEach(h=>{f!=null&&(r.styles[h]=py[l.type](f,n)),m.forEach(g=>{const b=`(min-width: ${n.breakpoints[g]})`;r.media[b]={...r.media[b],[h]:py[l.type](WV(t[s],g),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function lR(){return`__m__-${C.useId().replace(/[:«»]/g,"")}`}function Iv(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...Iv(r,e)}),{}):typeof t=="function"?t(e):t??{}}function ltt(t){return t}function uR(t){return t.startsWith("data-")?t:`data-${t}`}function tK(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[uR(n)]=t[n]),e},{})}function cR(t){return t?typeof t=="string"?{[uR(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...cR(n)}),{}):tK(t):null}function r0(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...r0(r,e)}),{}):typeof t=="function"?t(e):t??{}}function eK({theme:t,style:e,vars:n,styleProps:r}){const s=r0(e,t),l=r0(n,t);return{...s,...l,...r}}const fR=C.forwardRef(({component:t,style:e,__vars:n,className:r,variant:s,mod:l,size:c,hiddenFrom:f,visibleFrom:m,lightHidden:h,darkHidden:g,renderRoot:b,__size:x,...S},T)=>{const w=Xn(),$=t||"div",{styleProps:_,rest:L}=Dv(S),H=JY()?.()?.(_.sx),P=lR(),G=aR({styleProps:_,theme:w,data:zV}),z={ref:T,style:eK({theme:w,style:e,vars:n,styleProps:G.inlineStyles}),className:Vn(r,H,{[P]:G.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":g,[`mantine-hidden-from-${f}`]:f,[`mantine-visible-from-${m}`]:m}),"data-variant":s,"data-size":HM(c)?void 0:c||void 0,size:x,...cR(l),...L};return E.jsxs(E.Fragment,{children:[G.hasResponsiveStyles&&E.jsx(sR,{selector:`.${P}`,styles:G.styles,media:G.media}),typeof b=="function"?b(z):E.jsx($,{...z})]})});fR.displayName="@mantine/core/Box";const pt=fR;function dR(t){return t}function utt(t){const e=t;return n=>{const r=C.forwardRef((s,l)=>E.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}function It(t){const e=C.forwardRef(t);return e.extend=dR,e.withProps=n=>{const r=C.forwardRef((s,l)=>E.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function ho(t){const e=C.forwardRef(t);return e.withProps=n=>{const r=C.forwardRef((s,l)=>E.jsx(e,{...n,...s,ref:l}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=dR,e}const nK=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Lv(){return C.useContext(nK)}var np=DM();const Zu=gs(np);function rK(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function hy(t){return t?.current?t.current.scrollHeight:"auto"}const Vu=typeof window<"u"&&window.requestAnimationFrame,BT=0,oK=t=>({height:0,overflow:"hidden",...t?{}:{display:"none"}});function iK({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r,keepMounted:s=!1}){const l=C.useRef(null),c=oK(s),[f,m]=C.useState(r?{}:c),h=T=>{np.flushSync(()=>m(T))},g=T=>{h(w=>({...w,...T}))};function b(T){const w=t||rK(T);return{transition:`height ${w}ms ${e}, opacity ${w}ms ${e}`}}Ll(()=>{typeof Vu=="function"&&Vu(r?()=>{g({willChange:"height",display:"block",overflow:"hidden"}),Vu(()=>{const T=hy(l);g({...b(T),height:T})})}:()=>{const T=hy(l);g({...b(T),willChange:"height",height:T}),Vu(()=>g({height:BT,overflow:"hidden"}))})},[r]);const x=T=>{if(!(T.target!==l.current||T.propertyName!=="height"))if(r){const w=hy(l);w===f.height?h({}):g({height:w}),n()}else f.height===BT&&(h(c),n())};function S({style:T={},refKey:w="ref",...$}={}){const _=$[w],L={"aria-hidden":!r,...$,[w]:KM(l,_),onTransitionEnd:x,style:{boxSizing:"border-box",...T,...f}};return $n.version.startsWith("18")?r||(L.inert=""):L.inert=!r,L}return S}const sK={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},mR=It((t,e)=>{const{children:n,in:r,transitionDuration:s,transitionTimingFunction:l,style:c,onTransitionEnd:f,animateOpacity:m,keepMounted:h,...g}=bt("Collapse",sK,t),b=Xn(),x=ep(),T=(b.respectReducedMotion?x:!1)?0:s,w=iK({opened:r,transitionDuration:T,transitionTimingFunction:l,onTransitionEnd:f,keepMounted:h});return T===0?r?E.jsx(pt,{...g,children:n}):null:E.jsx(pt,{...w({style:{opacity:r||!m?1:0,transition:m?`opacity ${T}ms ${l}`:"none",...Iv(c,b)},ref:e,...g}),children:n})});mR.displayName="@mantine/core/Collapse";function rp(){return typeof window<"u"}function Bl(t){return pR(t)?(t.nodeName||"").toLowerCase():"#document"}function qn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function zo(t){var e;return(e=(pR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pR(t){return rp()?t instanceof Node||t instanceof qn(t).Node:!1}function Ce(t){return rp()?t instanceof Element||t instanceof qn(t).Element:!1}function pr(t){return rp()?t instanceof HTMLElement||t instanceof qn(t).HTMLElement:!1}function o0(t){return!rp()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof qn(t).ShadowRoot}const aK=new Set(["inline","contents"]);function Pc(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=qr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!aK.has(s)}const lK=new Set(["table","td","th"]);function uK(t){return lK.has(Bl(t))}const cK=[":popover-open",":modal"];function op(t){return cK.some(e=>{try{return t.matches(e)}catch{return!1}})}const fK=["transform","translate","scale","rotate","perspective"],dK=["transform","translate","scale","rotate","perspective","filter"],mK=["paint","layout","strict","content"];function zv(t){const e=ip(),n=Ce(t)?qr(t):t;return fK.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||dK.some(r=>(n.willChange||"").includes(r))||mK.some(r=>(n.contain||"").includes(r))}function pK(t){let e=ci(t);for(;pr(e)&&!oi(e);){if(zv(e))return e;if(op(e))return null;e=ci(e)}return null}function ip(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hK=new Set(["html","body","#document"]);function oi(t){return hK.has(Bl(t))}function qr(t){return qn(t).getComputedStyle(t)}function sp(t){return Ce(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ci(t){if(Bl(t)==="html")return t;const e=t.assignedSlot||t.parentNode||o0(t)&&t.host||zo(t);return o0(e)?e.host:e}function hR(t){const e=ci(t);return oi(e)?t.ownerDocument?t.ownerDocument.body:t.body:pr(e)&&Pc(e)?e:hR(e)}function ii(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=hR(t),l=s===((r=t.ownerDocument)==null?void 0:r.body),c=qn(s);if(l){const f=i0(c);return e.concat(c,c.visualViewport||[],Pc(s)?s:[],f&&n?ii(f):[])}return e.concat(s,ii(s,[],n))}function i0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const gK=["top","right","bottom","left"],so=Math.min,Sn=Math.max,Kd=Math.round,gd=Math.floor,$o=t=>({x:t,y:t}),yK={left:"right",right:"left",bottom:"top",top:"bottom"},bK={start:"end",end:"start"};function s0(t,e,n){return Sn(t,so(e,n))}function No(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function Ul(t){return t.split("-")[1]}function Bv(t){return t==="x"?"y":"x"}function Uv(t){return t==="y"?"height":"width"}const vK=new Set(["top","bottom"]);function no(t){return vK.has(ao(t))?"y":"x"}function kv(t){return Bv(no(t))}function SK(t,e,n){n===void 0&&(n=!1);const r=Ul(t),s=kv(t),l=Uv(s);let c=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(c=Xd(c)),[c,Xd(c)]}function xK(t){const e=Xd(t);return[a0(t),e,a0(e)]}function a0(t){return t.replace(/start|end/g,e=>bK[e])}const UT=["left","right"],kT=["right","left"],EK=["top","bottom"],wK=["bottom","top"];function TK(t,e,n){switch(t){case"top":case"bottom":return n?e?kT:UT:e?UT:kT;case"left":case"right":return e?EK:wK;default:return[]}}function CK(t,e,n,r){const s=Ul(t);let l=TK(ao(t),n==="start",r);return s&&(l=l.map(c=>c+"-"+s),e&&(l=l.concat(l.map(a0)))),l}function Xd(t){return t.replace(/left|right|bottom|top/g,e=>yK[e])}function AK(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pv(t){return typeof t!="number"?AK(t):{top:t,right:t,bottom:t,left:t}}function ml(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function $K(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function MK(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function RK(){return/apple/i.test(navigator.vendor)}function OK(){return $K().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function NK(){return MK().includes("jsdom/")}const PT="data-floating-ui-focusable",_K="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function HT(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function ac(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&o0(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function nl(t){return"composedPath"in t?t.composedPath()[0]:t.target}function gy(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function DK(t){return t.matches("html,body")}function Fs(t){return t?.ownerDocument||document}function jK(t){return pr(t)&&t.matches(_K)}function IK(t){if(!t||NK())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function LK(t){return t?t.hasAttribute(PT)?t:t.querySelector("["+PT+"]")||t:null}function _d(t,e,n){return n===void 0&&(n=!0),t.filter(s=>{var l;return s.parentId===e&&(!n||((l=s.context)==null?void 0:l.open))}).flatMap(s=>[s,..._d(t,s.id,n)])}function zK(t){return"nativeEvent"in t}function l0(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var BK=typeof document<"u",UK=function(){},Mo=BK?C.useLayoutEffect:UK;const kK={...iM};function yd(t){const e=C.useRef(t);return Mo(()=>{e.current=t}),e}const PK=kK.useInsertionEffect,HK=PK||(t=>t());function To(t){const e=C.useRef(()=>{});return HK(()=>{e.current=t}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}function FT(t,e,n){let{reference:r,floating:s}=t;const l=no(e),c=kv(e),f=Uv(c),m=ao(e),h=l==="y",g=r.x+r.width/2-s.width/2,b=r.y+r.height/2-s.height/2,x=r[f]/2-s[f]/2;let S;switch(m){case"top":S={x:g,y:r.y-s.height};break;case"bottom":S={x:g,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:b};break;case"left":S={x:r.x-s.width,y:b};break;default:S={x:r.x,y:r.y}}switch(Ul(e)){case"start":S[c]-=x*(n&&h?-1:1);break;case"end":S[c]+=x*(n&&h?-1:1);break}return S}const FK=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:l=[],platform:c}=n,f=l.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(e));let h=await c.getElementRects({reference:t,floating:e,strategy:s}),{x:g,y:b}=FT(h,r,m),x=r,S={},T=0;for(let w=0;w<f.length;w++){const{name:$,fn:_}=f[w],{x:L,y:j,data:H,reset:P}=await _({x:g,y:b,initialPlacement:r,placement:x,strategy:s,middlewareData:S,rects:h,platform:c,elements:{reference:t,floating:e}});g=L??g,b=j??b,S={...S,[$]:{...S[$],...H}},P&&T<=50&&(T++,typeof P=="object"&&(P.placement&&(x=P.placement),P.rects&&(h=P.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:s}):P.rects),{x:g,y:b}=FT(h,x,m)),w=-1)}return{x:g,y:b,placement:x,strategy:s,middlewareData:S}};async function lc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:l,rects:c,elements:f,strategy:m}=t,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:x=!1,padding:S=0}=No(e,t),T=Pv(S),$=f[x?b==="floating"?"reference":"floating":b],_=ml(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement($)))==null||n?$:$.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:m})),L=b==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),H=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},P=ml(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:j,strategy:m}):L);return{top:(_.top-P.top+T.top)/H.y,bottom:(P.bottom-_.bottom+T.bottom)/H.y,left:(_.left-P.left+T.left)/H.x,right:(P.right-_.right+T.right)/H.x}}const qK=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:l,platform:c,elements:f,middlewareData:m}=e,{element:h,padding:g=0}=No(t,e)||{};if(h==null)return{};const b=Pv(g),x={x:n,y:r},S=kv(s),T=Uv(S),w=await c.getDimensions(h),$=S==="y",_=$?"top":"left",L=$?"bottom":"right",j=$?"clientHeight":"clientWidth",H=l.reference[T]+l.reference[S]-x[S]-l.floating[T],P=x[S]-l.reference[S],G=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let z=G?G[j]:0;(!z||!await(c.isElement==null?void 0:c.isElement(G)))&&(z=f.floating[j]||l.floating[T]);const k=H/2-P/2,W=z/2-w[T]/2-1,et=so(b[_],W),it=so(b[L],W),ct=et,dt=z-w[T]-it,Y=z/2-w[T]/2+k,Z=s0(ct,Y,dt),R=!m.arrow&&Ul(s)!=null&&Y!==Z&&l.reference[T]/2-(Y<ct?et:it)-w[T]/2<0,B=R?Y<ct?Y-ct:Y-dt:0;return{[S]:x[S]+B,data:{[S]:Z,centerOffset:Y-Z-B,...R&&{alignmentOffset:B}},reset:R}}}),GK=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:m,elements:h}=e,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:w=!0,...$}=No(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=ao(s),L=no(f),j=ao(f)===f,H=await(m.isRTL==null?void 0:m.isRTL(h.floating)),P=x||(j||!w?[Xd(f)]:xK(f)),G=T!=="none";!x&&G&&P.push(...CK(f,w,T,H));const z=[f,...P],k=await lc(e,$),W=[];let et=((r=l.flip)==null?void 0:r.overflows)||[];if(g&&W.push(k[_]),b){const Y=SK(s,c,H);W.push(k[Y[0]],k[Y[1]])}if(et=[...et,{placement:s,overflows:W}],!W.every(Y=>Y<=0)){var it,ct;const Y=(((it=l.flip)==null?void 0:it.index)||0)+1,Z=z[Y];if(Z&&(!(b==="alignment"?L!==no(Z):!1)||et.every(D=>no(D.placement)===L?D.overflows[0]>0:!0)))return{data:{index:Y,overflows:et},reset:{placement:Z}};let R=(ct=et.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:ct.placement;if(!R)switch(S){case"bestFit":{var dt;const B=(dt=et.filter(D=>{if(G){const tt=no(D.placement);return tt===L||tt==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(tt=>tt>0).reduce((tt,nt)=>tt+nt,0)]).sort((D,tt)=>D[1]-tt[1])[0])==null?void 0:dt[0];B&&(R=B);break}case"initialPlacement":R=f;break}if(s!==R)return{reset:{placement:R}}}return{}}}};function qT(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function GT(t){return gK.some(e=>t[e]>=0)}const YK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=No(t,e);switch(r){case"referenceHidden":{const l=await lc(e,{...s,elementContext:"reference"}),c=qT(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:GT(c)}}}case"escaped":{const l=await lc(e,{...s,altBoundary:!0}),c=qT(l,n.floating);return{data:{escapedOffsets:c,escaped:GT(c)}}}default:return{}}}}};function gR(t){const e=so(...t.map(l=>l.left)),n=so(...t.map(l=>l.top)),r=Sn(...t.map(l=>l.right)),s=Sn(...t.map(l=>l.bottom));return{x:e,y:n,width:r-e,height:s-n}}function VK(t){const e=t.slice().sort((s,l)=>s.y-l.y),n=[];let r=null;for(let s=0;s<e.length;s++){const l=e[s];!r||l.y-r.y>r.height/2?n.push([l]):n[n.length-1].push(l),r=l}return n.map(s=>ml(gR(s)))}const KK=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:s,platform:l,strategy:c}=e,{padding:f=2,x:m,y:h}=No(t,e),g=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(r.reference))||[]),b=VK(g),x=ml(gR(g)),S=Pv(f);function T(){if(b.length===2&&b[0].left>b[1].right&&m!=null&&h!=null)return b.find($=>m>$.left-S.left&&m<$.right+S.right&&h>$.top-S.top&&h<$.bottom+S.bottom)||x;if(b.length>=2){if(no(n)==="y"){const et=b[0],it=b[b.length-1],ct=ao(n)==="top",dt=et.top,Y=it.bottom,Z=ct?et.left:it.left,R=ct?et.right:it.right,B=R-Z,D=Y-dt;return{top:dt,bottom:Y,left:Z,right:R,width:B,height:D,x:Z,y:dt}}const $=ao(n)==="left",_=Sn(...b.map(et=>et.right)),L=so(...b.map(et=>et.left)),j=b.filter(et=>$?et.left===L:et.right===_),H=j[0].top,P=j[j.length-1].bottom,G=L,z=_,k=z-G,W=P-H;return{top:H,bottom:P,left:G,right:z,width:k,height:W,x:G,y:H}}return x}const w=await l.getElementRects({reference:{getBoundingClientRect:T},floating:r.floating,strategy:c});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},yR=new Set(["left","top"]);async function XK(t,e){const{placement:n,platform:r,elements:s}=t,l=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=ao(n),f=Ul(n),m=no(n)==="y",h=yR.has(c)?-1:1,g=l&&m?-1:1,b=No(e,t);let{mainAxis:x,crossAxis:S,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return f&&typeof T=="number"&&(S=f==="end"?T*-1:T),m?{x:S*g,y:x*h}:{x:x*h,y:S*g}}const QK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:l,placement:c,middlewareData:f}=e,m=await XK(e,t);return c===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+m.x,y:l+m.y,data:{...m,placement:c}}}}},ZK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:$=>{let{x:_,y:L}=$;return{x:_,y:L}}},...m}=No(t,e),h={x:n,y:r},g=await lc(e,m),b=no(ao(s)),x=Bv(b);let S=h[x],T=h[b];if(l){const $=x==="y"?"top":"left",_=x==="y"?"bottom":"right",L=S+g[$],j=S-g[_];S=s0(L,S,j)}if(c){const $=b==="y"?"top":"left",_=b==="y"?"bottom":"right",L=T+g[$],j=T-g[_];T=s0(L,T,j)}const w=f.fn({...e,[x]:S,[b]:T});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[x]:l,[b]:c}}}}}},JK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:l,middlewareData:c}=e,{offset:f=0,mainAxis:m=!0,crossAxis:h=!0}=No(t,e),g={x:n,y:r},b=no(s),x=Bv(b);let S=g[x],T=g[b];const w=No(f,e),$=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(m){const j=x==="y"?"height":"width",H=l.reference[x]-l.floating[j]+$.mainAxis,P=l.reference[x]+l.reference[j]-$.mainAxis;S<H?S=H:S>P&&(S=P)}if(h){var _,L;const j=x==="y"?"width":"height",H=yR.has(ao(s)),P=l.reference[b]-l.floating[j]+(H&&((_=c.offset)==null?void 0:_[b])||0)+(H?0:$.crossAxis),G=l.reference[b]+l.reference[j]+(H?0:((L=c.offset)==null?void 0:L[b])||0)-(H?$.crossAxis:0);T<P?T=P:T>G&&(T=G)}return{[x]:S,[b]:T}}}},WK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:l,platform:c,elements:f}=e,{apply:m=()=>{},...h}=No(t,e),g=await lc(e,h),b=ao(s),x=Ul(s),S=no(s)==="y",{width:T,height:w}=l.floating;let $,_;b==="top"||b==="bottom"?($=b,_=x===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(_=b,$=x==="end"?"top":"bottom");const L=w-g.top-g.bottom,j=T-g.left-g.right,H=so(w-g[$],L),P=so(T-g[_],j),G=!e.middlewareData.shift;let z=H,k=P;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(k=j),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(z=L),G&&!x){const et=Sn(g.left,0),it=Sn(g.right,0),ct=Sn(g.top,0),dt=Sn(g.bottom,0);S?k=T-2*(et!==0||it!==0?et+it:Sn(g.left,g.right)):z=w-2*(ct!==0||dt!==0?ct+dt:Sn(g.top,g.bottom))}await m({...e,availableWidth:k,availableHeight:z});const W=await c.getDimensions(f.floating);return T!==W.width||w!==W.height?{reset:{rects:!0}}:{}}}};function bR(t){const e=qr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=pr(t),l=s?t.offsetWidth:n,c=s?t.offsetHeight:r,f=Kd(n)!==l||Kd(r)!==c;return f&&(n=l,r=c),{width:n,height:r,$:f}}function Hv(t){return Ce(t)?t:t.contextElement}function cl(t){const e=Hv(t);if(!pr(e))return $o(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:l}=bR(e);let c=(l?Kd(n.width):n.width)/r,f=(l?Kd(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const tX=$o(0);function vR(t){const e=qn(t);return!ip()||!e.visualViewport?tX:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function eX(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==qn(t)?!1:e}function Zs(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Hv(t);let c=$o(1);e&&(r?Ce(r)&&(c=cl(r)):c=cl(t));const f=eX(l,n,r)?vR(l):$o(0);let m=(s.left+f.x)/c.x,h=(s.top+f.y)/c.y,g=s.width/c.x,b=s.height/c.y;if(l){const x=qn(l),S=r&&Ce(r)?qn(r):r;let T=x,w=i0(T);for(;w&&r&&S!==T;){const $=cl(w),_=w.getBoundingClientRect(),L=qr(w),j=_.left+(w.clientLeft+parseFloat(L.paddingLeft))*$.x,H=_.top+(w.clientTop+parseFloat(L.paddingTop))*$.y;m*=$.x,h*=$.y,g*=$.x,b*=$.y,m+=j,h+=H,T=qn(w),w=i0(T)}}return ml({width:g,height:b,x:m,y:h})}function ap(t,e){const n=sp(t).scrollLeft;return e?e.left+n:Zs(zo(t)).left+n}function SR(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-ap(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function nX(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const l=s==="fixed",c=zo(r),f=e?op(e.floating):!1;if(r===c||f&&l)return n;let m={scrollLeft:0,scrollTop:0},h=$o(1);const g=$o(0),b=pr(r);if((b||!b&&!l)&&((Bl(r)!=="body"||Pc(c))&&(m=sp(r)),pr(r))){const S=Zs(r);h=cl(r),g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}const x=c&&!b&&!l?SR(c,m):$o(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-m.scrollLeft*h.x+g.x+x.x,y:n.y*h.y-m.scrollTop*h.y+g.y+x.y}}function rX(t){return Array.from(t.getClientRects())}function oX(t){const e=zo(t),n=sp(t),r=t.ownerDocument.body,s=Sn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),l=Sn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+ap(t);const f=-n.scrollTop;return qr(r).direction==="rtl"&&(c+=Sn(e.clientWidth,r.clientWidth)-s),{width:s,height:l,x:c,y:f}}const YT=25;function iX(t,e){const n=qn(t),r=zo(t),s=n.visualViewport;let l=r.clientWidth,c=r.clientHeight,f=0,m=0;if(s){l=s.width,c=s.height;const g=ip();(!g||g&&e==="fixed")&&(f=s.offsetLeft,m=s.offsetTop)}const h=ap(r);if(h<=0){const g=r.ownerDocument,b=g.body,x=getComputedStyle(b),S=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,T=Math.abs(r.clientWidth-b.clientWidth-S);T<=YT&&(l-=T)}else h<=YT&&(l+=h);return{width:l,height:c,x:f,y:m}}const sX=new Set(["absolute","fixed"]);function aX(t,e){const n=Zs(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,l=pr(t)?cl(t):$o(1),c=t.clientWidth*l.x,f=t.clientHeight*l.y,m=s*l.x,h=r*l.y;return{width:c,height:f,x:m,y:h}}function VT(t,e,n){let r;if(e==="viewport")r=iX(t,n);else if(e==="document")r=oX(zo(t));else if(Ce(e))r=aX(e,n);else{const s=vR(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return ml(r)}function xR(t,e){const n=ci(t);return n===e||!Ce(n)||oi(n)?!1:qr(n).position==="fixed"||xR(n,e)}function lX(t,e){const n=e.get(t);if(n)return n;let r=ii(t,[],!1).filter(f=>Ce(f)&&Bl(f)!=="body"),s=null;const l=qr(t).position==="fixed";let c=l?ci(t):t;for(;Ce(c)&&!oi(c);){const f=qr(c),m=zv(c);!m&&f.position==="fixed"&&(s=null),(l?!m&&!s:!m&&f.position==="static"&&!!s&&sX.has(s.position)||Pc(c)&&!m&&xR(t,c))?r=r.filter(g=>g!==c):s=f,c=ci(c)}return e.set(t,r),r}function uX(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const c=[...n==="clippingAncestors"?op(e)?[]:lX(e,this._c):[].concat(n),r],f=c[0],m=c.reduce((h,g)=>{const b=VT(e,g,s);return h.top=Sn(b.top,h.top),h.right=so(b.right,h.right),h.bottom=so(b.bottom,h.bottom),h.left=Sn(b.left,h.left),h},VT(e,f,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function cX(t){const{width:e,height:n}=bR(t);return{width:e,height:n}}function fX(t,e,n){const r=pr(e),s=zo(e),l=n==="fixed",c=Zs(t,!0,l,e);let f={scrollLeft:0,scrollTop:0};const m=$o(0);function h(){m.x=ap(s)}if(r||!r&&!l)if((Bl(e)!=="body"||Pc(s))&&(f=sp(e)),r){const S=Zs(e,!0,l,e);m.x=S.x+e.clientLeft,m.y=S.y+e.clientTop}else s&&h();l&&!r&&s&&h();const g=s&&!r&&!l?SR(s,f):$o(0),b=c.left+f.scrollLeft-m.x-g.x,x=c.top+f.scrollTop-m.y-g.y;return{x:b,y:x,width:c.width,height:c.height}}function yy(t){return qr(t).position==="static"}function KT(t,e){if(!pr(t)||qr(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return zo(t)===n&&(n=n.ownerDocument.body),n}function ER(t,e){const n=qn(t);if(op(t))return n;if(!pr(t)){let s=ci(t);for(;s&&!oi(s);){if(Ce(s)&&!yy(s))return s;s=ci(s)}return n}let r=KT(t,e);for(;r&&uK(r)&&yy(r);)r=KT(r,e);return r&&oi(r)&&yy(r)&&!zv(r)?n:r||pK(t)||n}const dX=async function(t){const e=this.getOffsetParent||ER,n=this.getDimensions,r=await n(t.floating);return{reference:fX(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mX(t){return qr(t).direction==="rtl"}const pX={convertOffsetParentRelativeRectToViewportRelativeRect:nX,getDocumentElement:zo,getClippingRect:uX,getOffsetParent:ER,getElementRects:dX,getClientRects:rX,getDimensions:cX,getScale:cl,isElement:Ce,isRTL:mX};function wR(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function hX(t,e){let n=null,r;const s=zo(t);function l(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function c(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),l();const h=t.getBoundingClientRect(),{left:g,top:b,width:x,height:S}=h;if(f||e(),!x||!S)return;const T=gd(b),w=gd(s.clientWidth-(g+x)),$=gd(s.clientHeight-(b+S)),_=gd(g),j={rootMargin:-T+"px "+-w+"px "+-$+"px "+-_+"px",threshold:Sn(0,so(1,m))||1};let H=!0;function P(G){const z=G[0].intersectionRatio;if(z!==m){if(!H)return c();z?c(!1,z):r=setTimeout(()=>{c(!1,1e-7)},1e3)}z===1&&!wR(h,t.getBoundingClientRect())&&c(),H=!1}try{n=new IntersectionObserver(P,{...j,root:s.ownerDocument})}catch{n=new IntersectionObserver(P,j)}n.observe(t)}return c(!0),l}function gX(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=r,h=Hv(t),g=s||l?[...h?ii(h):[],...ii(e)]:[];g.forEach(_=>{s&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const b=h&&f?hX(h,n):null;let x=-1,S=null;c&&(S=new ResizeObserver(_=>{let[L]=_;L&&L.target===h&&S&&(S.unobserve(e),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var j;(j=S)==null||j.observe(e)})),n()}),h&&!m&&S.observe(h),S.observe(e));let T,w=m?Zs(t):null;m&&$();function $(){const _=Zs(t);w&&!wR(w,_)&&n(),w=_,T=requestAnimationFrame($)}return n(),()=>{var _;g.forEach(L=>{s&&L.removeEventListener("scroll",n),l&&L.removeEventListener("resize",n)}),b?.(),(_=S)==null||_.disconnect(),S=null,m&&cancelAnimationFrame(T)}}const yX=QK,bX=ZK,vX=GK,SX=WK,xX=YK,XT=qK,EX=KK,wX=JK,TX=(t,e,n)=>{const r=new Map,s={platform:pX,...n},l={...s.platform,_c:r};return FK(t,e,{...s,platform:l})};var CX=typeof document<"u",AX=function(){},Dd=CX?C.useLayoutEffect:AX;function Qd(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Qd(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const l=s[r];if(!(l==="_owner"&&t.$$typeof)&&!Qd(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}function TR(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function QT(t,e){const n=TR(t);return Math.round(e*n)/n}function by(t){const e=C.useRef(t);return Dd(()=>{e.current=t}),e}function $X(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:l,floating:c}={},transform:f=!0,whileElementsMounted:m,open:h}=t,[g,b]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[x,S]=C.useState(r);Qd(x,r)||S(r);const[T,w]=C.useState(null),[$,_]=C.useState(null),L=C.useCallback(D=>{D!==G.current&&(G.current=D,w(D))},[]),j=C.useCallback(D=>{D!==z.current&&(z.current=D,_(D))},[]),H=l||T,P=c||$,G=C.useRef(null),z=C.useRef(null),k=C.useRef(g),W=m!=null,et=by(m),it=by(s),ct=by(h),dt=C.useCallback(()=>{if(!G.current||!z.current)return;const D={placement:e,strategy:n,middleware:x};it.current&&(D.platform=it.current),TX(G.current,z.current,D).then(tt=>{const nt={...tt,isPositioned:ct.current!==!1};Y.current&&!Qd(k.current,nt)&&(k.current=nt,np.flushSync(()=>{b(nt)}))})},[x,e,n,it,ct]);Dd(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,b(D=>({...D,isPositioned:!1})))},[h]);const Y=C.useRef(!1);Dd(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Dd(()=>{if(H&&(G.current=H),P&&(z.current=P),H&&P){if(et.current)return et.current(H,P,dt);dt()}},[H,P,dt,et,W]);const Z=C.useMemo(()=>({reference:G,floating:z,setReference:L,setFloating:j}),[L,j]),R=C.useMemo(()=>({reference:H,floating:P}),[H,P]),B=C.useMemo(()=>{const D={position:n,left:0,top:0};if(!R.floating)return D;const tt=QT(R.floating,g.x),nt=QT(R.floating,g.y);return f?{...D,transform:"translate("+tt+"px, "+nt+"px)",...TR(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:tt,top:nt}},[n,f,R.floating,g.x,g.y]);return C.useMemo(()=>({...g,update:dt,refs:Z,elements:R,floatingStyles:B}),[g,dt,Z,R,B])}const MX=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?XT({element:r.current,padding:s}).fn(n):{}:r?XT({element:r,padding:s}).fn(n):{}}}},RX=(t,e)=>({...yX(t),options:[t,e]}),CR=(t,e)=>({...bX(t),options:[t,e]}),ctt=(t,e)=>({...wX(t),options:[t,e]}),ZT=(t,e)=>({...vX(t),options:[t,e]}),ftt=(t,e)=>({...SX(t),options:[t,e]}),dtt=(t,e)=>({...xX(t),options:[t,e]}),vy=(t,e)=>({...EX(t),options:[t,e]}),OX=(t,e)=>({...MX(t),options:[t,e]});function AR(t){const e=C.useRef(void 0),n=C.useCallback(r=>{const s=t.map(l=>{if(l!=null){if(typeof l=="function"){const c=l,f=c(r);return typeof f=="function"?f:()=>{c(null)}}return l.current=r,()=>{l.current=null}}});return()=>{s.forEach(l=>l?.())}},t);return C.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}const NX="data-floating-ui-focusable",JT="active",WT="selected",_X={...iM};let t2=!1,DX=0;const e2=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+DX++;function jX(){const[t,e]=C.useState(()=>t2?e2():void 0);return Mo(()=>{t==null&&e(e2())},[]),C.useEffect(()=>{t2=!0},[]),t}const IX=_X.useId,$R=IX||jX;function LX(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const zX=C.createContext(null),BX=C.createContext(null),Fv=()=>{var t;return((t=C.useContext(zX))==null?void 0:t.id)||null},qv=()=>C.useContext(BX);function Gv(t){return"data-floating-ui-"+t}function Lr(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const n2=Gv("safe-polygon");function jd(t,e,n){if(n&&!l0(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const r=t();return typeof r=="number"?r:r?.[e]}return t?.[e]}function Sy(t){return typeof t=="function"?t():t}function UX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:l,elements:c}=t,{enabled:f=!0,delay:m=0,handleClose:h=null,mouseOnly:g=!1,restMs:b=0,move:x=!0}=e,S=qv(),T=Fv(),w=yd(h),$=yd(m),_=yd(n),L=yd(b),j=C.useRef(),H=C.useRef(-1),P=C.useRef(),G=C.useRef(-1),z=C.useRef(!0),k=C.useRef(!1),W=C.useRef(()=>{}),et=C.useRef(!1),it=To(()=>{var B;const D=(B=s.current.openEvent)==null?void 0:B.type;return D?.includes("mouse")&&D!=="mousedown"});C.useEffect(()=>{if(!f)return;function B(D){let{open:tt}=D;tt||(Lr(H),Lr(G),z.current=!0,et.current=!1)}return l.on("openchange",B),()=>{l.off("openchange",B)}},[f,l]),C.useEffect(()=>{if(!f||!w.current||!n)return;function B(tt){it()&&r(!1,tt,"hover")}const D=Fs(c.floating).documentElement;return D.addEventListener("mouseleave",B),()=>{D.removeEventListener("mouseleave",B)}},[c.floating,n,r,f,w,it]);const ct=C.useCallback(function(B,D,tt){D===void 0&&(D=!0),tt===void 0&&(tt="hover");const nt=jd($.current,"close",j.current);nt&&!P.current?(Lr(H),H.current=window.setTimeout(()=>r(!1,B,tt),nt)):D&&(Lr(H),r(!1,B,tt))},[$,r]),dt=To(()=>{W.current(),P.current=void 0}),Y=To(()=>{if(k.current){const B=Fs(c.floating).body;B.style.pointerEvents="",B.removeAttribute(n2),k.current=!1}}),Z=To(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);C.useEffect(()=>{if(!f)return;function B(q){if(Lr(H),z.current=!1,g&&!l0(j.current)||Sy(L.current)>0&&!jd($.current,"open"))return;const ot=jd($.current,"open",j.current);ot?H.current=window.setTimeout(()=>{_.current||r(!0,q,"hover")},ot):n||r(!0,q,"hover")}function D(q){if(Z()){Y();return}W.current();const ot=Fs(c.floating);if(Lr(G),et.current=!1,w.current&&s.current.floatingContext){n||Lr(H),P.current=w.current({...s.current.floatingContext,tree:S,x:q.clientX,y:q.clientY,onClose(){Y(),dt(),Z()||ct(q,!0,"safe-polygon")}});const mt=P.current;ot.addEventListener("mousemove",mt),W.current=()=>{ot.removeEventListener("mousemove",mt)};return}(j.current!=="touch"||!ac(c.floating,q.relatedTarget))&&ct(q)}function tt(q){Z()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:S,x:q.clientX,y:q.clientY,onClose(){Y(),dt(),Z()||ct(q)}})(q))}function nt(){Lr(H)}function O(q){Z()||ct(q,!1)}if(Ce(c.domReference)){const q=c.domReference,ot=c.floating;return n&&q.addEventListener("mouseleave",tt),x&&q.addEventListener("mousemove",B,{once:!0}),q.addEventListener("mouseenter",B),q.addEventListener("mouseleave",D),ot&&(ot.addEventListener("mouseleave",tt),ot.addEventListener("mouseenter",nt),ot.addEventListener("mouseleave",O)),()=>{n&&q.removeEventListener("mouseleave",tt),x&&q.removeEventListener("mousemove",B),q.removeEventListener("mouseenter",B),q.removeEventListener("mouseleave",D),ot&&(ot.removeEventListener("mouseleave",tt),ot.removeEventListener("mouseenter",nt),ot.removeEventListener("mouseleave",O))}}},[c,f,t,g,x,ct,dt,Y,r,n,_,S,$,w,s,Z,L]),Mo(()=>{var B;if(f&&n&&(B=w.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&it()){k.current=!0;const tt=c.floating;if(Ce(c.domReference)&&tt){var D;const nt=Fs(c.floating).body;nt.setAttribute(n2,"");const O=c.domReference,q=S==null||(D=S.nodesRef.current.find(ot=>ot.id===T))==null||(D=D.context)==null?void 0:D.elements.floating;return q&&(q.style.pointerEvents=""),nt.style.pointerEvents="none",O.style.pointerEvents="auto",tt.style.pointerEvents="auto",()=>{nt.style.pointerEvents="",O.style.pointerEvents="",tt.style.pointerEvents=""}}}},[f,n,T,c,S,w,it]),Mo(()=>{n||(j.current=void 0,et.current=!1,dt(),Y())},[n,dt,Y]),C.useEffect(()=>()=>{dt(),Lr(H),Lr(G),Y()},[f,c.domReference,dt,Y]);const R=C.useMemo(()=>{function B(D){j.current=D.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(D){const{nativeEvent:tt}=D;function nt(){!z.current&&!_.current&&r(!0,tt,"hover")}g&&!l0(j.current)||n||Sy(L.current)===0||et.current&&D.movementX**2+D.movementY**2<2||(Lr(G),j.current==="touch"?nt():(et.current=!0,G.current=window.setTimeout(nt,Sy(L.current))))}}},[g,r,n,_,L]);return C.useMemo(()=>f?{reference:R}:{},[f,R])}const u0=()=>{},MR=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:u0,setState:u0,isInstantPhase:!1}),kX=()=>C.useContext(MR);function PX(t){const{children:e,delay:n,timeoutMs:r=0}=t,[s,l]=C.useReducer((m,h)=>({...m,...h}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),c=C.useRef(null),f=C.useCallback(m=>{l({currentId:m})},[]);return Mo(()=>{s.currentId?c.current===null?c.current=s.currentId:s.isInstantPhase||l({isInstantPhase:!0}):(s.isInstantPhase&&l({isInstantPhase:!1}),c.current=null)},[s.currentId,s.isInstantPhase]),E.jsx(MR.Provider,{value:C.useMemo(()=>({...s,setState:l,setCurrentId:f}),[s,f]),children:e})}function HX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:s}=t,{id:l,enabled:c=!0}=e,f=l??s,m=kX(),{currentId:h,setCurrentId:g,initialDelay:b,setState:x,timeoutMs:S}=m;return Mo(()=>{c&&h&&(x({delay:{open:1,close:jd(b,"close")}}),h!==f&&r(!1))},[c,f,r,x,h,b]),Mo(()=>{function T(){r(!1),x({delay:b,currentId:null})}if(c&&h&&!n&&h===f){if(S){const w=window.setTimeout(T,S);return()=>{clearTimeout(w)}}T()}},[c,n,x,h,f,r,b,S]),Mo(()=>{c&&(g===u0||!n||g(f))},[c,n,g,f]),m}const FX={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qX={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},r2=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}};function GX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:s,dataRef:l}=t,{enabled:c=!0,escapeKey:f=!0,outsidePress:m=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:b="pointerdown",ancestorScroll:x=!1,bubbles:S,capture:T}=e,w=qv(),$=To(typeof m=="function"?m:()=>!1),_=typeof m=="function"?$:m,L=C.useRef(!1),{escapeKey:j,outsidePress:H}=r2(S),{escapeKey:P,outsidePress:G}=r2(T),z=C.useRef(!1),k=To(Y=>{var Z;if(!n||!c||!f||Y.key!=="Escape"||z.current)return;const R=(Z=l.current.floatingContext)==null?void 0:Z.nodeId,B=w?_d(w.nodesRef.current,R):[];if(!j&&(Y.stopPropagation(),B.length>0)){let D=!0;if(B.forEach(tt=>{var nt;if((nt=tt.context)!=null&&nt.open&&!tt.context.dataRef.current.__escapeKeyBubbles){D=!1;return}}),!D)return}r(!1,zK(Y)?Y.nativeEvent:Y,"escape-key")}),W=To(Y=>{var Z;const R=()=>{var B;k(Y),(B=nl(Y))==null||B.removeEventListener("keydown",R)};(Z=nl(Y))==null||Z.addEventListener("keydown",R)}),et=To(Y=>{var Z;const R=l.current.insideReactTree;l.current.insideReactTree=!1;const B=L.current;if(L.current=!1,h==="click"&&B||R||typeof _=="function"&&!_(Y))return;const D=nl(Y),tt="["+Gv("inert")+"]",nt=Fs(s.floating).querySelectorAll(tt);let O=Ce(D)?D:null;for(;O&&!oi(O);){const mt=ci(O);if(oi(mt)||!Ce(mt))break;O=mt}if(nt.length&&Ce(D)&&!DK(D)&&!ac(D,s.floating)&&Array.from(nt).every(mt=>!ac(O,mt)))return;if(pr(D)&&dt){const mt=oi(D),ht=qr(D),Tt=/auto|scroll/,Jt=mt||Tt.test(ht.overflowX),Ot=mt||Tt.test(ht.overflowY),ie=Jt&&D.clientWidth>0&&D.scrollWidth>D.clientWidth,We=Ot&&D.clientHeight>0&&D.scrollHeight>D.clientHeight,cn=ht.direction==="rtl",Zt=We&&(cn?Y.offsetX<=D.offsetWidth-D.clientWidth:Y.offsetX>D.clientWidth),on=ie&&Y.offsetY>D.clientHeight;if(Zt||on)return}const q=(Z=l.current.floatingContext)==null?void 0:Z.nodeId,ot=w&&_d(w.nodesRef.current,q).some(mt=>{var ht;return gy(Y,(ht=mt.context)==null?void 0:ht.elements.floating)});if(gy(Y,s.floating)||gy(Y,s.domReference)||ot)return;const ft=w?_d(w.nodesRef.current,q):[];if(ft.length>0){let mt=!0;if(ft.forEach(ht=>{var Tt;if((Tt=ht.context)!=null&&Tt.open&&!ht.context.dataRef.current.__outsidePressBubbles){mt=!1;return}}),!mt)return}r(!1,Y,"outside-press")}),it=To(Y=>{var Z;const R=()=>{var B;et(Y),(B=nl(Y))==null||B.removeEventListener(h,R)};(Z=nl(Y))==null||Z.addEventListener(h,R)});C.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=j,l.current.__outsidePressBubbles=H;let Y=-1;function Z(nt){r(!1,nt,"ancestor-scroll")}function R(){window.clearTimeout(Y),z.current=!0}function B(){Y=window.setTimeout(()=>{z.current=!1},ip()?5:0)}const D=Fs(s.floating);f&&(D.addEventListener("keydown",P?W:k,P),D.addEventListener("compositionstart",R),D.addEventListener("compositionend",B)),_&&D.addEventListener(h,G?it:et,G);let tt=[];return x&&(Ce(s.domReference)&&(tt=ii(s.domReference)),Ce(s.floating)&&(tt=tt.concat(ii(s.floating))),!Ce(s.reference)&&s.reference&&s.reference.contextElement&&(tt=tt.concat(ii(s.reference.contextElement)))),tt=tt.filter(nt=>{var O;return nt!==((O=D.defaultView)==null?void 0:O.visualViewport)}),tt.forEach(nt=>{nt.addEventListener("scroll",Z,{passive:!0})}),()=>{f&&(D.removeEventListener("keydown",P?W:k,P),D.removeEventListener("compositionstart",R),D.removeEventListener("compositionend",B)),_&&D.removeEventListener(h,G?it:et,G),tt.forEach(nt=>{nt.removeEventListener("scroll",Z)}),window.clearTimeout(Y)}},[l,s,f,_,h,n,r,x,c,j,H,k,P,W,et,G,it]),C.useEffect(()=>{l.current.insideReactTree=!1},[l,_,h]);const ct=C.useMemo(()=>({onKeyDown:k,...g&&{[FX[b]]:Y=>{r(!1,Y.nativeEvent,"reference-press")},...b!=="click"&&{onClick(Y){r(!1,Y.nativeEvent,"reference-press")}}}}),[k,r,g,b]),dt=C.useMemo(()=>({onKeyDown:k,onMouseDown(){L.current=!0},onMouseUp(){L.current=!0},[qX[h]]:()=>{l.current.insideReactTree=!0}}),[k,h,l]);return C.useMemo(()=>c?{reference:ct,floating:dt}:{},[c,ct,dt])}function YX(t){const{open:e=!1,onOpenChange:n,elements:r}=t,s=$R(),l=C.useRef({}),[c]=C.useState(()=>LX()),f=Fv()!=null,[m,h]=C.useState(r.reference),g=To((S,T,w)=>{l.current.openEvent=S?T:void 0,c.emit("openchange",{open:S,event:T,reason:w,nested:f}),n?.(S,T,w)}),b=C.useMemo(()=>({setPositionReference:h}),[]),x=C.useMemo(()=>({reference:m||r.reference||null,floating:r.floating||null,domReference:r.reference}),[m,r.reference,r.floating]);return C.useMemo(()=>({dataRef:l,open:e,onOpenChange:g,elements:x,events:c,floatingId:s,refs:b}),[e,g,x,c,s,b])}function RR(t){t===void 0&&(t={});const{nodeId:e}=t,n=YX({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,s=r.elements,[l,c]=C.useState(null),[f,m]=C.useState(null),g=s?.domReference||l,b=C.useRef(null),x=qv();Mo(()=>{g&&(b.current=g)},[g]);const S=$X({...t,elements:{...s,...f&&{reference:f}}}),T=C.useCallback(j=>{const H=Ce(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;m(H),S.refs.setReference(H)},[S.refs]),w=C.useCallback(j=>{(Ce(j)||j===null)&&(b.current=j,c(j)),(Ce(S.refs.reference.current)||S.refs.reference.current===null||j!==null&&!Ce(j))&&S.refs.setReference(j)},[S.refs]),$=C.useMemo(()=>({...S.refs,setReference:w,setPositionReference:T,domReference:b}),[S.refs,w,T]),_=C.useMemo(()=>({...S.elements,domReference:g}),[S.elements,g]),L=C.useMemo(()=>({...S,...r,refs:$,elements:_,nodeId:e}),[S,$,_,e,r]);return Mo(()=>{r.dataRef.current.floatingContext=L;const j=x?.nodesRef.current.find(H=>H.id===e);j&&(j.context=L)}),C.useMemo(()=>({...S,context:L,refs:$,elements:_}),[S,$,_,L])}function xy(){return OK()&&RK()}function VX(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,dataRef:l,elements:c}=t,{enabled:f=!0,visibleOnly:m=!0}=e,h=C.useRef(!1),g=C.useRef(-1),b=C.useRef(!0);C.useEffect(()=>{if(!f)return;const S=qn(c.domReference);function T(){!n&&pr(c.domReference)&&c.domReference===HT(Fs(c.domReference))&&(h.current=!0)}function w(){b.current=!0}function $(){b.current=!1}return S.addEventListener("blur",T),xy()&&(S.addEventListener("keydown",w,!0),S.addEventListener("pointerdown",$,!0)),()=>{S.removeEventListener("blur",T),xy()&&(S.removeEventListener("keydown",w,!0),S.removeEventListener("pointerdown",$,!0))}},[c.domReference,n,f]),C.useEffect(()=>{if(!f)return;function S(T){let{reason:w}=T;(w==="reference-press"||w==="escape-key")&&(h.current=!0)}return s.on("openchange",S),()=>{s.off("openchange",S)}},[s,f]),C.useEffect(()=>()=>{Lr(g)},[]);const x=C.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(S){if(h.current)return;const T=nl(S.nativeEvent);if(m&&Ce(T)){if(xy()&&!S.relatedTarget){if(!b.current&&!jK(T))return}else if(!IK(T))return}r(!0,S.nativeEvent,"focus")},onBlur(S){h.current=!1;const T=S.relatedTarget,w=S.nativeEvent,$=Ce(T)&&T.hasAttribute(Gv("focus-guard"))&&T.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var _;const L=HT(c.domReference?c.domReference.ownerDocument:document);!T&&L===c.domReference||ac((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,L)||ac(c.domReference,L)||$||r(!1,w,"focus")})}}),[l,c.domReference,r,m]);return C.useMemo(()=>f?{reference:x}:{},[f,x])}function Ey(t,e,n){const r=new Map,s=n==="item";let l=t;if(s&&t){const{[JT]:c,[WT]:f,...m}=t;l=m}return{...n==="floating"&&{tabIndex:-1,[NX]:""},...l,...e.map(c=>{const f=c?c[n]:null;return typeof f=="function"?t?f(t):null:f}).concat(t).reduce((c,f)=>(f&&Object.entries(f).forEach(m=>{let[h,g]=m;if(!(s&&[JT,WT].includes(h)))if(h.indexOf("on")===0){if(r.has(h)||r.set(h,[]),typeof g=="function"){var b;(b=r.get(h))==null||b.push(g),c[h]=function(){for(var x,S=arguments.length,T=new Array(S),w=0;w<S;w++)T[w]=arguments[w];return(x=r.get(h))==null?void 0:x.map($=>$(...T)).find($=>$!==void 0)}}}else c[h]=g}),c),{})}}function KX(t){t===void 0&&(t=[]);const e=t.map(f=>f?.reference),n=t.map(f=>f?.floating),r=t.map(f=>f?.item),s=C.useCallback(f=>Ey(f,t,"reference"),e),l=C.useCallback(f=>Ey(f,t,"floating"),n),c=C.useCallback(f=>Ey(f,t,"item"),r);return C.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:c}),[s,l,c])}const XX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function QX(t,e){var n,r;e===void 0&&(e={});const{open:s,elements:l,floatingId:c}=t,{enabled:f=!0,role:m="dialog"}=e,h=$R(),g=((n=l.domReference)==null?void 0:n.id)||h,b=C.useMemo(()=>{var L;return((L=LK(l.floating))==null?void 0:L.id)||c},[l.floating,c]),x=(r=XX.get(m))!=null?r:m,T=Fv()!=null,w=C.useMemo(()=>x==="tooltip"||m==="label"?{["aria-"+(m==="label"?"labelledby":"describedby")]:s?b:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":x==="alertdialog"?"dialog":x,"aria-controls":s?b:void 0,...x==="listbox"&&{role:"combobox"},...x==="menu"&&{id:g},...x==="menu"&&T&&{role:"menuitem"},...m==="select"&&{"aria-autocomplete":"none"},...m==="combobox"&&{"aria-autocomplete":"list"}},[x,b,T,s,g,m]),$=C.useMemo(()=>{const L={id:b,...x&&{role:x}};return x==="tooltip"||m==="label"?L:{...L,...x==="menu"&&{"aria-labelledby":g}}},[x,b,g,m]),_=C.useCallback(L=>{let{active:j,selected:H}=L;const P={role:"option",...j&&{id:b+"-fui-option"}};switch(m){case"select":case"combobox":return{...P,"aria-selected":H}}return{}},[b,m]);return C.useMemo(()=>f?{reference:w,floating:$,item:_}:{},[f,w,$,_])}var Yv={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const[ZX,Kr]=jl("ScrollArea.Root component was not found in tree");function pl(t,e){const n=Hs(e);Il(()=>{let r=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(t),()=>{window.cancelAnimationFrame(r),s.unobserve(t)}}},[t,n])}const JX=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),[l,c]=C.useState(0),[f,m]=C.useState(0),h=!!(l&&f);return pl(s.scrollbarX,()=>{const g=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(g),m(g)}),pl(s.scrollbarY,()=>{const g=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(g),c(g)}),h?E.jsx("div",{...r,ref:e,style:{...n,width:l,height:f}}):null}),WX=C.forwardRef((t,e)=>{const n=Kr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?E.jsx(JX,{...t,ref:e}):null}),tQ={scrollHideDelay:1e3,type:"hover"},OR=C.forwardRef((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:s,getStyles:l,...c}=bt("ScrollAreaRoot",tQ,t),[f,m]=C.useState(null),[h,g]=C.useState(null),[b,x]=C.useState(null),[S,T]=C.useState(null),[w,$]=C.useState(null),[_,L]=C.useState(0),[j,H]=C.useState(0),[P,G]=C.useState(!1),[z,k]=C.useState(!1),W=xi(e,et=>m(et));return E.jsx(ZX,{value:{type:n,scrollHideDelay:r,scrollArea:f,viewport:h,onViewportChange:g,content:b,onContentChange:x,scrollbarX:S,onScrollbarXChange:T,scrollbarXEnabled:P,onScrollbarXEnabledChange:G,scrollbarY:w,onScrollbarYChange:$,scrollbarYEnabled:z,onScrollbarYEnabledChange:k,onCornerWidthChange:L,onCornerHeightChange:H,getStyles:l},children:E.jsx(pt,{...c,ref:W,__vars:{"--sa-corner-width":s!=="xy"?"0px":`${_}px`,"--sa-corner-height":s!=="xy"?"0px":`${j}px`}})})});OR.displayName="@mantine/core/ScrollAreaRoot";function NR(t,e){const n=t/e;return Number.isNaN(n)?0:n}function lp(t){const e=NR(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function _R(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function eQ(t,[e,n]){return Math.min(n,Math.max(e,t))}function o2(t,e,n="ltr"){const r=lp(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,l=e.scrollbar.size-s,c=e.content-e.viewport,f=l-r,m=n==="ltr"?[0,c]:[c*-1,0],h=eQ(t,m);return _R([0,c],[0,f])(h)}function nQ(t,e,n,r="ltr"){const s=lp(n),l=s/2,c=e||l,f=s-c,m=n.scrollbar.paddingStart+c,h=n.scrollbar.size-n.scrollbar.paddingEnd-f,g=n.content-n.viewport,b=r==="ltr"?[0,g]:[g*-1,0];return _R([m,h],b)(t)}function DR(t,e){return t>0&&t<e}function Zd(t){return t?parseInt(t,10):0}function Ys(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t?.(r),(n===!1||!r.defaultPrevented)&&e?.(r)}}const[rQ,jR]=jl("ScrollAreaScrollbar was not found in tree"),IR=C.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:h,onResize:g,...b}=t,x=Kr(),[S,T]=C.useState(null),w=xi(e,k=>T(k)),$=C.useRef(null),_=C.useRef(""),{viewport:L}=x,j=n.content-n.viewport,H=Hs(h),P=Hs(f),G=tp(g,10),z=k=>{if($.current){const W=k.clientX-$.current.left,et=k.clientY-$.current.top;m({x:W,y:et})}};return C.useEffect(()=>{const k=W=>{const et=W.target;S?.contains(et)&&H(W,j)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[L,S,j,H]),C.useEffect(P,[n,P]),pl(S,G),pl(x.content,G),E.jsx(rQ,{value:{scrollbar:S,hasThumb:r,onThumbChange:Hs(s),onThumbPointerUp:Hs(l),onThumbPositionChange:P,onThumbPointerDown:Hs(c)},children:E.jsx("div",{...b,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...b.style},onPointerDown:Ys(t.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),$.current=S.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",z(k))}),onPointerMove:Ys(t.onPointerMove,z),onPointerUp:Ys(t.onPointerUp,k=>{const W=k.target;W.hasPointerCapture(k.pointerId)&&(k.preventDefault(),W.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,$.current=null}})})}),LR=C.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:s,...l}=t,c=Kr(),[f,m]=C.useState(),h=C.useRef(null),g=xi(e,h,c.onScrollbarXChange);return C.useEffect(()=>{h.current&&m(getComputedStyle(h.current))},[h]),E.jsx(IR,{"data-orientation":"horizontal",...l,ref:g,sizes:n,style:{...s,"--sa-thumb-width":`${lp(n)}px`},onThumbPointerDown:b=>t.onThumbPointerDown(b.x),onDragScroll:b=>t.onDragScroll(b.x),onWheelScroll:(b,x)=>{if(c.viewport){const S=c.viewport.scrollLeft+b.deltaX;t.onWheelScroll(S),DR(S,x)&&b.preventDefault()}},onResize:()=>{h.current&&c.viewport&&f&&r({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Zd(f.paddingLeft),paddingEnd:Zd(f.paddingRight)}})}})});LR.displayName="@mantine/core/ScrollAreaScrollbarX";const zR=C.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:s,...l}=t,c=Kr(),[f,m]=C.useState(),h=C.useRef(null),g=xi(e,h,c.onScrollbarYChange);return C.useEffect(()=>{h.current&&m(window.getComputedStyle(h.current))},[]),E.jsx(IR,{...l,"data-orientation":"vertical",ref:g,sizes:n,style:{"--sa-thumb-height":`${lp(n)}px`,...s},onThumbPointerDown:b=>t.onThumbPointerDown(b.y),onDragScroll:b=>t.onDragScroll(b.y),onWheelScroll:(b,x)=>{if(c.viewport){const S=c.viewport.scrollTop+b.deltaY;t.onWheelScroll(S),DR(S,x)&&b.preventDefault()}},onResize:()=>{h.current&&c.viewport&&f&&r({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Zd(f.paddingTop),paddingEnd:Zd(f.paddingBottom)}})}})});zR.displayName="@mantine/core/ScrollAreaScrollbarY";const up=C.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:s}=Lv(),l=Kr(),c=C.useRef(null),f=C.useRef(0),[m,h]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=NR(m.viewport,m.content),b={...r,sizes:m,onSizesChange:h,hasThumb:g>0&&g<1,onThumbChange:S=>{c.current=S},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:S=>{f.current=S}},x=(S,T)=>nQ(S,f.current,m,T);return n==="horizontal"?E.jsx(LR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollLeft,T=o2(S,m,s);c.current.style.transform=`translate3d(${T}px, 0, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollLeft=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollLeft=x(S,s))}}):n==="vertical"?E.jsx(zR,{...b,ref:e,onThumbPositionChange:()=>{if(l.viewport&&c.current){const S=l.viewport.scrollTop,T=o2(S,m);m.scrollbar.size===0?c.current.style.setProperty("--thumb-opacity","0"):c.current.style.setProperty("--thumb-opacity","1"),c.current.style.transform=`translate3d(0, ${T}px, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollTop=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollTop=x(S))}}):null});up.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Vv=C.forwardRef((t,e)=>{const n=Kr(),{forceMount:r,...s}=t,[l,c]=C.useState(!1),f=t.orientation==="horizontal",m=tp(()=>{if(n.viewport){const h=n.viewport.offsetWidth<n.viewport.scrollWidth,g=n.viewport.offsetHeight<n.viewport.scrollHeight;c(f?h:g)}},10);return pl(n.viewport,m),pl(n.content,m),r||l?E.jsx(up,{"data-state":l?"visible":"hidden",...s,ref:e}):null});Vv.displayName="@mantine/core/ScrollAreaScrollbarAuto";const BR=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),[l,c]=C.useState(!1);return C.useEffect(()=>{const{scrollArea:f}=s;let m=0;if(f){const h=()=>{window.clearTimeout(m),c(!0)},g=()=>{m=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",g),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",g)}}},[s.scrollArea,s.scrollHideDelay]),n||l?E.jsx(Vv,{"data-state":l?"visible":"hidden",...r,ref:e}):null});BR.displayName="@mantine/core/ScrollAreaScrollbarHover";const oQ=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),l=t.orientation==="horizontal",[c,f]=C.useState("hidden"),m=tp(()=>f("idle"),100);return C.useEffect(()=>{if(c==="idle"){const h=window.setTimeout(()=>f("hidden"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[c,s.scrollHideDelay]),C.useEffect(()=>{const{viewport:h}=s,g=l?"scrollLeft":"scrollTop";if(h){let b=h[g];const x=()=>{const S=h[g];b!==S&&(f("scrolling"),m()),b=S};return h.addEventListener("scroll",x),()=>h.removeEventListener("scroll",x)}},[s.viewport,l,m]),n||c!=="hidden"?E.jsx(up,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Ys(t.onPointerEnter,()=>f("interacting")),onPointerLeave:Ys(t.onPointerLeave,()=>f("idle"))}):null}),c0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Kr(),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,f=t.orientation==="horizontal";return C.useEffect(()=>(f?l(!0):c(!0),()=>{f?l(!1):c(!1)}),[f,l,c]),s.type==="hover"?E.jsx(BR,{...r,ref:e,forceMount:n}):s.type==="scroll"?E.jsx(oQ,{...r,ref:e,forceMount:n}):s.type==="auto"?E.jsx(Vv,{...r,ref:e,forceMount:n}):s.type==="always"?E.jsx(up,{...r,ref:e}):null});c0.displayName="@mantine/core/ScrollAreaScrollbar";function iQ(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function s(){const l={left:t.scrollLeft,top:t.scrollTop},c=n.left!==l.left,f=n.top!==l.top;(c||f)&&e(),n=l,r=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(r)}const UR=C.forwardRef((t,e)=>{const{style:n,...r}=t,s=Kr(),l=jR(),{onThumbPositionChange:c}=l,f=xi(e,g=>l.onThumbChange(g)),m=C.useRef(void 0),h=tp(()=>{m.current&&(m.current(),m.current=void 0)},100);return C.useEffect(()=>{const{viewport:g}=s;if(g){const b=()=>{if(h(),!m.current){const x=iQ(g,c);m.current=x,c()}};return c(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[s.viewport,h,c]),E.jsx("div",{"data-state":l.hasThumb?"visible":"hidden",...r,ref:f,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Ys(t.onPointerDownCapture,g=>{const x=g.target.getBoundingClientRect(),S=g.clientX-x.left,T=g.clientY-x.top;l.onThumbPointerDown({x:S,y:T})}),onPointerUp:Ys(t.onPointerUp,l.onThumbPointerUp)})});UR.displayName="@mantine/core/ScrollAreaThumb";const f0=C.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=jR();return n||s.hasThumb?E.jsx(UR,{ref:e,...r}):null});f0.displayName="@mantine/core/ScrollAreaThumb";const kR=C.forwardRef(({children:t,style:e,onWheel:n,...r},s)=>{const l=Kr(),c=xi(s,l.onViewportChange),f=m=>{if(n?.(m),l.scrollbarXEnabled&&l.viewport&&m.shiftKey){const{scrollTop:h,scrollHeight:g,clientHeight:b,scrollWidth:x,clientWidth:S}=l.viewport,T=h<1,w=h>=g-b-1;x>S&&(T||w)&&m.stopPropagation()}};return E.jsx(pt,{...r,ref:c,onWheel:f,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e},children:E.jsx("div",{...l.getStyles("content"),ref:l.onContentChange,children:t})})});kR.displayName="@mantine/core/ScrollAreaViewport";const PR={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},sQ=(t,{scrollbarSize:e,overscrollBehavior:n,scrollbars:r})=>{let s=n;return n&&r&&(r==="x"?s=`${n} auto`:r==="y"&&(s=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":ut(e),"--scrollarea-over-scroll-behavior":s}}},kl=It((t,e)=>{const n=bt("ScrollArea",PR,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,scrollbarSize:m,vars:h,type:g,scrollHideDelay:b,viewportProps:x,viewportRef:S,onScrollPositionChange:T,children:w,offsetScrollbars:$,scrollbars:_,onBottomReached:L,onTopReached:j,overscrollBehavior:H,attributes:P,...G}=n,[z,k]=C.useState(!1),[W,et]=C.useState(!1),[it,ct]=C.useState(!1),dt=oe({name:"ScrollArea",props:n,classes:Yv,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:P,vars:h,varsResolver:sQ}),Y=C.useRef(null),Z=AR([S,Y]);return C.useEffect(()=>{if(!Y.current||$!=="present")return;const R=Y.current,B=new ResizeObserver(()=>{const{scrollHeight:D,clientHeight:tt,scrollWidth:nt,clientWidth:O}=R;et(D>tt),ct(nt>O)});return B.observe(R),()=>B.disconnect()},[Y,$]),E.jsxs(OR,{getStyles:dt,type:g==="never"?"always":g,scrollHideDelay:b,ref:e,scrollbars:_,...dt("root"),...G,children:[E.jsx(kR,{...x,...dt("viewport",{style:x?.style}),ref:Z,"data-offset-scrollbars":$===!0?"xy":$||void 0,"data-scrollbars":_||void 0,"data-horizontal-hidden":$==="present"&&!it?"true":void 0,"data-vertical-hidden":$==="present"&&!W?"true":void 0,onScroll:R=>{x?.onScroll?.(R),T?.({x:R.currentTarget.scrollLeft,y:R.currentTarget.scrollTop});const{scrollTop:B,scrollHeight:D,clientHeight:tt}=R.currentTarget;B-(D-tt)>=-.8&&L?.(),B===0&&j?.()},children:w}),(_==="xy"||_==="x")&&E.jsx(c0,{...dt("scrollbar"),orientation:"horizontal","data-hidden":g==="never"||$==="present"&&!it?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:E.jsx(f0,{...dt("thumb")})}),(_==="xy"||_==="y")&&E.jsx(c0,{...dt("scrollbar"),orientation:"vertical","data-hidden":g==="never"||$==="present"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:E.jsx(f0,{...dt("thumb")})}),E.jsx(WX,{...dt("corner"),"data-hovered":z||void 0,"data-hidden":g==="never"||void 0})]})});kl.displayName="@mantine/core/ScrollArea";const Kv=It((t,e)=>{const{children:n,classNames:r,styles:s,scrollbarSize:l,scrollHideDelay:c,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:g,viewportRef:b,onScrollPositionChange:x,unstyled:S,variant:T,viewportProps:w,scrollbars:$,style:_,vars:L,onBottomReached:j,onTopReached:H,onOverflowChange:P,...G}=bt("ScrollAreaAutosize",PR,t),z=C.useRef(null),k=AR([b,z]),[W,et]=C.useState(!1),it=C.useRef(!1);return C.useEffect(()=>{if(!P)return;const ct=z.current;if(!ct)return;const dt=()=>{const Z=ct.scrollHeight>ct.clientHeight;Z!==W&&(it.current?P?.(Z):(it.current=!0,Z&&P?.(!0)),et(Z))};dt();const Y=new ResizeObserver(dt);return Y.observe(ct),()=>Y.disconnect()},[P,W]),E.jsx(pt,{...G,ref:e,style:[{display:"flex",overflow:"hidden"},_],children:E.jsx(pt,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...$==="y"&&{minWidth:0},...$==="x"&&{minHeight:0},...$==="xy"&&{minWidth:0,minHeight:0},...$===!1&&{minWidth:0,minHeight:0}},children:E.jsx(kl,{classNames:r,styles:s,scrollHideDelay:c,scrollbarSize:l,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:g,viewportRef:k,onScrollPositionChange:x,unstyled:S,variant:T,viewportProps:w,vars:L,scrollbars:$,onBottomReached:j,onTopReached:H,"data-autosize":"true",children:n})})})});kl.classes=Yv;Kv.displayName="@mantine/core/ScrollAreaAutosize";Kv.classes=Yv;kl.Autosize=Kv;var HR={root:"m_87cf2631"};const aQ={__staticSelector:"UnstyledButton"},Pl=ho((t,e)=>{const n=bt("UnstyledButton",aQ,t),{className:r,component:s="button",__staticSelector:l,unstyled:c,classNames:f,styles:m,style:h,attributes:g,...b}=n,x=oe({name:l,props:n,classes:HR,className:r,style:h,classNames:f,styles:m,unstyled:c,attributes:g});return E.jsx(pt,{...x("root",{focusable:!0}),component:s,ref:e,type:s==="button"?"button":void 0,...b})});Pl.classes=HR;Pl.displayName="@mantine/core/UnstyledButton";var FR={root:"m_515a97f8"};const Xv=It((t,e)=>{const n=bt("VisuallyHidden",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,attributes:h,...g}=n,b=oe({name:"VisuallyHidden",classes:FR,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:h});return E.jsx(pt,{component:"span",ref:e,...b("root"),...g})});Xv.classes=FR;Xv.displayName="@mantine/core/VisuallyHidden";var qR={root:"m_1b7284a3"};const lQ=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Tr(e),"--paper-shadow":FM(n)}}),Qv=ho((t,e)=>{const n=bt("Paper",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,withBorder:m,vars:h,radius:g,shadow:b,variant:x,mod:S,attributes:T,...w}=n,$=oe({name:"Paper",props:n,classes:qR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:T,vars:h,varsResolver:lQ});return E.jsx(pt,{ref:e,mod:[{"data-with-border":m},S],...$("root"),variant:x,...w})});Qv.classes=qR;Qv.displayName="@mantine/core/Paper";function i2(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function s2(t,e,n,r,s){return t==="center"||r==="center"?{left:e}:t==="end"?{[s==="ltr"?"right":"left"]:n}:t==="start"?{[s==="ltr"?"left":"right"]:n}:{}}const uQ={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function cQ({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,arrowX:l,arrowY:c,dir:f}){const[m,h="center"]=t.split("-"),g={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[uQ[m]]:r},b=-e/2;return m==="left"?{...g,...i2(h,c,n,s),right:b,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:m==="right"?{...g,...i2(h,c,n,s),left:b,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:m==="top"?{...g,...s2(h,l,n,s,f),bottom:b,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:m==="bottom"?{...g,...s2(h,l,n,s,f),top:b,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const d0=C.forwardRef(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,visible:l,arrowX:c,arrowY:f,style:m,...h},g)=>{const{dir:b}=Lv();return l?E.jsx("div",{...h,ref:g,style:{...m,...cQ({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:s,dir:b,arrowX:c,arrowY:f})}}):null});d0.displayName="@mantine/core/FloatingArrow";function fQ(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),s=n==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return e}var GR={root:"m_9814e45f"};const dQ={zIndex:wr("modal")},mQ=(t,{gradient:e,color:n,backgroundOpacity:r,blur:s,radius:l,zIndex:c})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&xo(n||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${ut(s)})`:void 0,"--overlay-radius":l===void 0?void 0:Tr(l),"--overlay-z-index":c?.toString()}}),Zv=ho((t,e)=>{const n=bt("Overlay",dQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,fixed:h,center:g,children:b,radius:x,zIndex:S,gradient:T,blur:w,color:$,backgroundOpacity:_,mod:L,attributes:j,...H}=n,P=oe({name:"Overlay",props:n,classes:GR,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:j,vars:m,varsResolver:mQ});return E.jsx(pt,{ref:e,...P("root"),mod:[{center:g,fixed:h},L],...H,children:b})});Zv.classes=GR;Zv.displayName="@mantine/core/Overlay";function wy(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}function pQ({target:t,reuseTargetNode:e,...n}){if(t)return typeof t=="string"?document.querySelector(t)||wy(n):t;if(e){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=wy(n);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return wy(n)}const hQ={reuseTargetNode:!0},YR=It((t,e)=>{const{children:n,target:r,reuseTargetNode:s,...l}=bt("Portal",hQ,t),[c,f]=C.useState(!1),m=C.useRef(null);return Il(()=>(f(!0),m.current=pQ({target:r,reuseTargetNode:s,...l}),t0(e,m.current),!r&&!s&&m.current&&document.body.appendChild(m.current),()=>{!r&&!s&&m.current&&document.body.removeChild(m.current)}),[r]),!c||!m.current?null:np.createPortal(E.jsx(E.Fragment,{children:n}),m.current)});YR.displayName="@mantine/core/Portal";const Js=It(({withinPortal:t=!0,children:e,...n},r)=>JM()==="test"||!t?E.jsx(E.Fragment,{children:e}):E.jsx(YR,{ref:r,...n,children:e}));Js.displayName="@mantine/core/OptionalPortal";const Ku=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bd={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Ku("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Ku("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Ku("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Ku("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Ku("top"),common:{transformOrigin:"top right"}}},a2={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function gQ({transition:t,state:e,duration:n,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in bd?{transitionProperty:bd[t].transitionProperty,...s,...bd[t].common,...bd[t][a2[e]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[a2[e]]}}function yQ({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:s,onExit:l,onEntered:c,onExited:f,enterDelay:m,exitDelay:h}){const g=Xn(),b=ep(),x=g.respectReducedMotion?b:!1,[S,T]=C.useState(x?0:t),[w,$]=C.useState(r?"entered":"exited"),_=C.useRef(-1),L=C.useRef(-1),j=C.useRef(-1);function H(){window.clearTimeout(_.current),window.clearTimeout(L.current),cancelAnimationFrame(j.current)}const P=z=>{H();const k=z?s:l,W=z?c:f,et=x?0:z?t:e;T(et),et===0?(typeof k=="function"&&k(),typeof W=="function"&&W(),$(z?"entered":"exited")):j.current=requestAnimationFrame(()=>{Zu.flushSync(()=>{$(z?"pre-entering":"pre-exiting")}),j.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),$(z?"entering":"exiting"),_.current=window.setTimeout(()=>{typeof W=="function"&&W(),$(z?"entered":"exited")},et)})})},G=z=>{if(H(),typeof(z?m:h)!="number"){P(z);return}L.current=window.setTimeout(()=>{P(z)},z?m:h)};return Ll(()=>{G(r)},[r]),C.useEffect(()=>()=>{H()},[]),{transitionDuration:S,transitionStatus:w,transitionTimingFunction:n||"ease"}}function Ws({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:s,children:l,timingFunction:c="ease",onExit:f,onEntered:m,onEnter:h,onExited:g,enterDelay:b,exitDelay:x}){const S=JM(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:$}=yQ({mounted:s,exitDuration:r,duration:n,timingFunction:c,onExit:f,onEntered:m,onEnter:h,onExited:g,enterDelay:b,exitDelay:x});return T===0||S==="test"?s?E.jsx(E.Fragment,{children:l({})}):t?l({display:"none"}):null:w==="exited"?t?l({display:"none"}):null:E.jsx(E.Fragment,{children:l(gQ({transition:e,duration:T,state:w,timingFunction:$}))})}Ws.displayName="@mantine/core/Transition";function Jv({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const s=NY(e),l=xi(s,r),c=Mv(t);return c?C.cloneElement(c,{[n]:l}):t}function VR(t){return E.jsx(Xv,{tabIndex:-1,"data-autofocus":!0,...t})}Jv.displayName="@mantine/core/FocusTrap";VR.displayName="@mantine/core/FocusTrapInitialFocus";Jv.InitialFocus=VR;var ro={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const KR=C.forwardRef(({className:t,...e},n)=>E.jsxs(pt,{component:"span",className:Vn(ro.barsLoader,t),...e,ref:n,children:[E.jsx("span",{className:ro.bar}),E.jsx("span",{className:ro.bar}),E.jsx("span",{className:ro.bar})]}));KR.displayName="@mantine/core/Bars";const XR=C.forwardRef(({className:t,...e},n)=>E.jsxs(pt,{component:"span",className:Vn(ro.dotsLoader,t),...e,ref:n,children:[E.jsx("span",{className:ro.dot}),E.jsx("span",{className:ro.dot}),E.jsx("span",{className:ro.dot})]}));XR.displayName="@mantine/core/Dots";const QR=C.forwardRef(({className:t,...e},n)=>E.jsx(pt,{component:"span",className:Vn(ro.ovalLoader,t),...e,ref:n}));QR.displayName="@mantine/core/Oval";const ZR={bars:KR,oval:QR,dots:XR},bQ={loaders:ZR,type:"oval"},vQ=(t,{size:e,color:n})=>({root:{"--loader-size":ln(e,"loader-size"),"--loader-color":n?Qs(n,t):void 0}}),Hl=It((t,e)=>{const n=bt("Loader",bQ,t),{size:r,color:s,type:l,vars:c,className:f,style:m,classNames:h,styles:g,unstyled:b,loaders:x,variant:S,children:T,attributes:w,...$}=n,_=oe({name:"Loader",props:n,classes:ro,className:f,style:m,classNames:h,styles:g,unstyled:b,attributes:w,vars:c,varsResolver:vQ});return T?E.jsx(pt,{..._("root"),ref:e,...$,children:T}):E.jsx(pt,{..._("root"),ref:e,component:x[l],variant:S,size:r,...$})});Hl.defaultLoaders=ZR;Hl.classes=ro;Hl.displayName="@mantine/core/Loader";var Fl={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const l2={orientation:"horizontal"},SQ=(t,{borderWidth:e})=>({group:{"--ai-border-width":ut(e)}}),Wv=It((t,e)=>{const n=bt("ActionIconGroup",l2,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:g,variant:b,mod:x,attributes:S,...T}=bt("ActionIconGroup",l2,t),w=oe({name:"ActionIconGroup",props:n,classes:Fl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:h,varsResolver:SQ,rootSelector:"group"});return E.jsx(pt,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},x],role:"group",...T})});Wv.classes=Fl;Wv.displayName="@mantine/core/ActionIconGroup";const xQ=(t,{radius:e,color:n,gradient:r,variant:s,autoContrast:l,size:c})=>{const f=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:l});return{groupSection:{"--section-height":ln(c,"section-height"),"--section-padding-x":ln(c,"section-padding-x"),"--section-fz":lr(c),"--section-radius":e===void 0?void 0:Tr(e),"--section-bg":n||s?f.background:void 0,"--section-color":f.color,"--section-bd":n||s?f.border:void 0}}},t1=It((t,e)=>{const n=bt("ActionIconGroupSection",null,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,vars:m,variant:h,gradient:g,radius:b,autoContrast:x,attributes:S,...T}=n,w=oe({name:"ActionIconGroupSection",props:n,classes:Fl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:xQ,rootSelector:"groupSection"});return E.jsx(pt,{...w("groupSection"),ref:e,variant:h,...T})});t1.classes=Fl;t1.displayName="@mantine/core/ActionIconGroupSection";const EQ=(t,{size:e,radius:n,variant:r,gradient:s,color:l,autoContrast:c})=>{const f=t.variantColorResolver({color:l||t.primaryColor,theme:t,gradient:s,variant:r||"filled",autoContrast:c});return{root:{"--ai-size":ln(e,"ai-size"),"--ai-radius":n===void 0?void 0:Tr(n),"--ai-bg":l||r?f.background:void 0,"--ai-hover":l||r?f.hover:void 0,"--ai-hover-color":l||r?f.hoverColor:void 0,"--ai-color":f.color,"--ai-bd":l||r?f.border:void 0}}},hl=ho((t,e)=>{const n=bt("ActionIcon",null,t),{className:r,unstyled:s,variant:l,classNames:c,styles:f,style:m,loading:h,loaderProps:g,size:b,color:x,radius:S,__staticSelector:T,gradient:w,vars:$,children:_,disabled:L,"data-disabled":j,autoContrast:H,mod:P,attributes:G,...z}=n,k=oe({name:["ActionIcon",T],props:n,className:r,style:m,classes:Fl,classNames:c,styles:f,unstyled:s,attributes:G,vars:$,varsResolver:EQ});return E.jsxs(Pl,{...k("root",{active:!L&&!h&&!j}),...z,unstyled:s,variant:l,size:b,disabled:L||h,ref:e,mod:[{loading:h,disabled:L||j},P],children:[typeof h=="boolean"&&E.jsx(Ws,{mounted:h,transition:"slide-down",duration:150,children:W=>E.jsx(pt,{component:"span",...k("loader",{style:W}),"aria-hidden":!0,children:E.jsx(Hl,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...g})})}),E.jsx(pt,{component:"span",mod:{loading:h},...k("icon"),children:_})]})});hl.classes=Fl;hl.displayName="@mantine/core/ActionIcon";hl.Group=Wv;hl.GroupSection=t1;const JR=C.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>E.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:E.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));JR.displayName="@mantine/core/CloseIcon";var WR={root:"m_86a44da5","root--subtle":"m_220c80f2"};const wQ={variant:"subtle"},TQ=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":ln(e,"cb-size"),"--cb-radius":n===void 0?void 0:Tr(n),"--cb-icon-size":ut(r)}}),Hc=ho((t,e)=>{const n=bt("CloseButton",wQ,t),{iconSize:r,children:s,vars:l,radius:c,className:f,classNames:m,style:h,styles:g,unstyled:b,"data-disabled":x,disabled:S,variant:T,icon:w,mod:$,attributes:_,__staticSelector:L,...j}=n,H=oe({name:L||"CloseButton",props:n,className:f,style:h,classes:WR,classNames:m,styles:g,unstyled:b,attributes:_,vars:l,varsResolver:TQ});return E.jsxs(Pl,{ref:e,...j,unstyled:b,variant:T,disabled:S,mod:[{disabled:S||x},$],...H("root",{variant:T,active:!S&&!x}),children:[w||E.jsx(JR,{}),s]})});Hc.classes=WR;Hc.displayName="@mantine/core/CloseButton";function CQ(t){return C.Children.toArray(t).filter(Boolean)}var tO={root:"m_4081bf90"};const AQ={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},$Q=(t,{grow:e,preventGrowOverflow:n,gap:r,align:s,justify:l,wrap:c},{childWidth:f})=>({root:{"--group-child-width":e&&n?f:void 0,"--group-gap":Av(r),"--group-align":s,"--group-justify":l,"--group-wrap":c}}),ql=It((t,e)=>{const n=bt("Group",AQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,children:m,gap:h,align:g,justify:b,wrap:x,grow:S,preventGrowOverflow:T,vars:w,variant:$,__size:_,mod:L,attributes:j,...H}=n,P=CQ(m),G=P.length,z=Av(h??"md"),W={childWidth:`calc(${100/G}% - (${z} - ${z} / ${G}))`},et=oe({name:"Group",props:n,stylesCtx:W,className:s,style:l,classes:tO,classNames:r,styles:c,unstyled:f,attributes:j,vars:w,varsResolver:$Q});return E.jsx(pt,{...et("root"),ref:e,variant:$,mod:[{grow:S},L],size:_,...H,children:P})});ql.classes=tO;ql.displayName="@mantine/core/Group";const[MQ,Ei]=jl("ModalBase component was not found in tree");function RQ({opened:t,transitionDuration:e}){const[n,r]=C.useState(t),s=C.useRef(-1),c=ep()?0:e;return C.useEffect(()=>(t?(r(!0),window.clearTimeout(s.current)):c===0?r(!1):s.current=window.setTimeout(()=>r(!1),c),()=>window.clearTimeout(s.current)),[t,c]),n}function OQ({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:s,onClose:l,returnFocus:c}){const f=$v(t),[m,h]=C.useState(!1),[g,b]=C.useState(!1),x=typeof e?.duration=="number"?e?.duration:200,S=RQ({opened:n,transitionDuration:x});return LY("keydown",T=>{T.key==="Escape"&&s&&!T.isComposing&&n&&T.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&l()},{capture:!0}),CY({opened:n,shouldReturnFocus:r&&c}),{_id:f,titleMounted:m,bodyMounted:g,shouldLockScroll:S,setTitleMounted:h,setBodyMounted:b}}const eO=C.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:s,onExitTransitionEnd:l,onEnterTransitionEnd:c,trapFocus:f,closeOnEscape:m,returnFocus:h,closeOnClickOutside:g,withinPortal:b,portalProps:x,lockScroll:S,children:T,zIndex:w,shadow:$,padding:_,__vars:L,unstyled:j,removeScrollProps:H,...P},G)=>{const{_id:z,titleMounted:k,bodyMounted:W,shouldLockScroll:et,setTitleMounted:it,setBodyMounted:ct}=OQ({id:r,transitionProps:s,opened:e,trapFocus:f,closeOnEscape:m,onClose:n,returnFocus:h}),{key:dt,...Y}=H||{};return E.jsx(Js,{...x,withinPortal:b,children:E.jsx(MQ,{value:{opened:e,onClose:n,closeOnClickOutside:g,onExitTransitionEnd:l,onEnterTransitionEnd:c,transitionProps:{...s,keepMounted:t},getTitleId:()=>`${z}-title`,getBodyId:()=>`${z}-body`,titleMounted:k,bodyMounted:W,setTitleMounted:it,setBodyMounted:ct,trapFocus:f,closeOnEscape:m,zIndex:w,unstyled:j},children:E.jsx(Vd,{enabled:et&&S,...Y,children:E.jsx(pt,{ref:G,...P,__vars:{...L,"--mb-z-index":(w||wr("modal")).toString(),"--mb-shadow":FM($),"--mb-padding":Av(_)},children:T})},dt)})})});eO.displayName="@mantine/core/ModalBase";var gl={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function NQ(){const t=Ei();return C.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}const nO=C.forwardRef(({className:t,...e},n)=>{const r=NQ(),s=Ei();return E.jsx(pt,{ref:n,...e,id:r,className:Vn({[gl.body]:!s.unstyled},t)})});nO.displayName="@mantine/core/ModalBaseBody";const rO=C.forwardRef(({className:t,onClick:e,...n},r)=>{const s=Ei();return E.jsx(Hc,{ref:r,...n,onClick:l=>{s.onClose(),e?.(l)},className:Vn({[gl.close]:!s.unstyled},t),unstyled:s.unstyled})});rO.displayName="@mantine/core/ModalBaseCloseButton";const oO=C.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:s,...l},c)=>{const f=Ei();return E.jsx(Ws,{mounted:f.opened,transition:"pop",...f.transitionProps,onExited:()=>{f.onExitTransitionEnd?.(),f.transitionProps?.onExited?.()},onEntered:()=>{f.onEnterTransitionEnd?.(),f.transitionProps?.onEntered?.()},...t,children:m=>E.jsx("div",{...n,className:Vn({[gl.inner]:!f.unstyled},n.className),children:E.jsx(Jv,{active:f.opened&&f.trapFocus,innerRef:c,children:E.jsx(Qv,{...l,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":f.bodyMounted?f.getBodyId():void 0,"aria-labelledby":f.titleMounted?f.getTitleId():void 0,style:[s,m],className:Vn({[gl.content]:!f.unstyled},e),unstyled:f.unstyled,children:l.children})})})})});oO.displayName="@mantine/core/ModalBaseContent";const iO=C.forwardRef(({className:t,...e},n)=>{const r=Ei();return E.jsx(pt,{component:"header",ref:n,className:Vn({[gl.header]:!r.unstyled},t),...e})});iO.displayName="@mantine/core/ModalBaseHeader";const _Q={duration:200,timingFunction:"ease",transition:"fade"};function DQ(t){const e=Ei();return{..._Q,...e.transitionProps,...t}}const sO=C.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...s},l)=>{const c=Ei(),f=DQ(e);return E.jsx(Ws,{mounted:r!==void 0?r:c.opened,...f,transition:"fade",children:m=>E.jsx(Zv,{ref:l,fixed:!0,style:[n,m],zIndex:c.zIndex,unstyled:c.unstyled,onClick:h=>{t?.(h),c.closeOnClickOutside&&c.onClose()},...s})})});sO.displayName="@mantine/core/ModalBaseOverlay";function jQ(){const t=Ei();return C.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const aO=C.forwardRef(({className:t,...e},n)=>{const r=jQ(),s=Ei();return E.jsx(pt,{component:"h2",ref:n,className:Vn({[gl.title]:!s.unstyled},t),...e,id:r})});aO.displayName="@mantine/core/ModalBaseTitle";function IQ({children:t}){return E.jsx(E.Fragment,{children:t})}const[LQ,zQ]=Cv({size:"sm"});var Xr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const lO=It((t,e)=>{const n=bt("InputClearButton",null,t),{size:r,variant:s,vars:l,classNames:c,styles:f,...m}=n,h=zQ(),{resolvedClassNames:g,resolvedStyles:b}=iR({classNames:c,styles:f,props:n});return E.jsx(Hc,{variant:s||"transparent",ref:e,size:r||h?.size||"sm",classNames:g,styles:b,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});lO.displayName="@mantine/core/InputClearButton";const BQ={xs:7,sm:8,md:10,lg:12,xl:15};function UQ({__clearable:t,__clearSection:e,rightSection:n,__defaultRightSection:r,size:s="sm"}){const l=t&&e;return l&&(n||r)?E.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:BQ[s]},children:[l,n||r]}):n===null?null:n||l||r}const[kQ,cp]=Cv({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),PQ=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${lr(e)} - ${ut(2)})`}}),fp=It((t,e)=>{const n=bt("InputDescription",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:h,__staticSelector:g,__inheritStyles:b=!0,attributes:x,variant:S,...T}=bt("InputDescription",null,n),w=cp(),$=oe({name:["InputWrapper",g],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:x,rootSelector:"description",vars:m,varsResolver:PQ}),_=b&&w?.getStyles||$;return E.jsx(pt,{component:"p",ref:e,variant:S,size:h,..._("description",w?.getStyles?{className:s,style:l}:void 0),...T})});fp.classes=Xr;fp.displayName="@mantine/core/InputDescription";const HQ=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${lr(e)} - ${ut(2)})`}}),dp=It((t,e)=>{const n=bt("InputError",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:h,attributes:g,__staticSelector:b,__inheritStyles:x=!0,variant:S,...T}=n,w=oe({name:["InputWrapper",b],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:g,rootSelector:"error",vars:m,varsResolver:HQ}),$=cp(),_=x&&$?.getStyles||w;return E.jsx(pt,{component:"p",ref:e,variant:S,size:h,..._("error",$?.getStyles?{className:s,style:l}:void 0),...T})});dp.classes=Xr;dp.displayName="@mantine/core/InputError";const u2={labelElement:"label"},FQ=(t,{size:e})=>({label:{"--input-label-size":lr(e),"--input-asterisk-color":void 0}}),mp=It((t,e)=>{const n=bt("InputLabel",u2,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,labelElement:h,size:g,required:b,htmlFor:x,onMouseDown:S,children:T,__staticSelector:w,variant:$,mod:_,attributes:L,...j}=bt("InputLabel",u2,n),H=oe({name:["InputWrapper",w],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:L,rootSelector:"label",vars:m,varsResolver:FQ}),P=cp(),G=P?.getStyles||H;return E.jsxs(pt,{...G("label",P?.getStyles?{className:s,style:l}:void 0),component:h,variant:$,size:g,ref:e,htmlFor:h==="label"?x:void 0,mod:[{required:b},_],onMouseDown:z=>{S?.(z),!z.defaultPrevented&&z.detail>1&&z.preventDefault()},...j,children:[T,b&&E.jsx("span",{...G("required"),"aria-hidden":!0,children:" *"})]})});mp.classes=Xr;mp.displayName="@mantine/core/InputLabel";const e1=It((t,e)=>{const n=bt("InputPlaceholder",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,__staticSelector:h,variant:g,error:b,mod:x,attributes:S,...T}=n,w=oe({name:["InputPlaceholder",h],props:n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:S,rootSelector:"placeholder"});return E.jsx(pt,{...w("placeholder"),mod:[{error:!!b},x],component:"span",variant:g,ref:e,...T})});e1.classes=Xr;e1.displayName="@mantine/core/InputPlaceholder";function qQ(t,{hasDescription:e,hasError:n}){const r=t.findIndex(m=>m==="input"),s=t.slice(0,r),l=t.slice(r+1),c=e&&s.includes("description")||n&&s.includes("error");return{offsetBottom:e&&l.includes("description")||n&&l.includes("error"),offsetTop:c}}const GQ={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},YQ=(t,{size:e})=>({label:{"--input-label-size":lr(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${lr(e)} - ${ut(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${lr(e)} - ${ut(2)})`}}),n1=It((t,e)=>{const n=bt("InputWrapper",GQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,size:h,variant:g,__staticSelector:b,inputContainer:x,inputWrapperOrder:S,label:T,error:w,description:$,labelProps:_,descriptionProps:L,errorProps:j,labelElement:H,children:P,withAsterisk:G,id:z,required:k,__stylesApiProps:W,mod:et,attributes:it,...ct}=n,dt=oe({name:["InputWrapper",b],props:W||n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:it,vars:m,varsResolver:YQ}),Y={size:h,variant:g,__staticSelector:b},Z=$v(z),R=typeof G=="boolean"?G:k,B=j?.id||`${Z}-error`,D=L?.id||`${Z}-description`,tt=Z,nt=!!w&&typeof w!="boolean",O=!!$,q=`${nt?B:""} ${O?D:""}`,ot=q.trim().length>0?q.trim():void 0,ft=_?.id||`${Z}-label`,mt=T&&E.jsx(mp,{labelElement:H,id:ft,htmlFor:tt,required:R,...Y,..._,children:T},"label"),ht=O&&E.jsx(fp,{...L,...Y,size:L?.size||Y.size,id:L?.id||D,children:$},"description"),Tt=E.jsx(C.Fragment,{children:x(P)},"input"),Jt=nt&&C.createElement(dp,{...j,...Y,size:j?.size||Y.size,key:"error",id:j?.id||B},w),Ot=S.map(ie=>{switch(ie){case"label":return mt;case"input":return Tt;case"description":return ht;case"error":return Jt;default:return null}});return E.jsx(kQ,{value:{getStyles:dt,describedBy:ot,inputId:tt,labelId:ft,...qQ(S,{hasDescription:O,hasError:nt})},children:E.jsx(pt,{ref:e,variant:g,size:h,mod:[{error:!!w},et],...dt("root"),...ct,children:Ot})})});n1.classes=Xr;n1.displayName="@mantine/core/InputWrapper";const VQ={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},KQ=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":ln(e.size,"input-height"),"--input-fz":lr(e.size),"--input-radius":e.radius===void 0?void 0:Tr(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?ut(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?ut(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?ln(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),hr=ho((t,e)=>{const n=bt("Input",VQ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,required:m,__staticSelector:h,__stylesApiProps:g,size:b,wrapperProps:x,error:S,disabled:T,leftSection:w,leftSectionProps:$,leftSectionWidth:_,rightSection:L,rightSectionProps:j,rightSectionWidth:H,rightSectionPointerEvents:P,leftSectionPointerEvents:G,variant:z,vars:k,pointer:W,multiline:et,radius:it,id:ct,withAria:dt,withErrorStyles:Y,mod:Z,inputSize:R,attributes:B,__clearSection:D,__clearable:tt,__defaultRightSection:nt,...O}=n,{styleProps:q,rest:ot}=Dv(O),ft=cp(),mt={offsetBottom:ft?.offsetBottom,offsetTop:ft?.offsetTop},ht=oe({name:["Input",h],props:g||n,classes:Xr,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:B,stylesCtx:mt,rootSelector:"wrapper",vars:k,varsResolver:KQ}),Tt=dt?{required:m,disabled:T,"aria-invalid":!!S,"aria-describedby":ft?.describedBy,id:ft?.inputId||ct}:{},Jt=UQ({__clearable:tt,__clearSection:D,rightSection:L,__defaultRightSection:nt,size:b});return E.jsx(LQ,{value:{size:b||"sm"},children:E.jsxs(pt,{...ht("wrapper"),...q,...x,mod:[{error:!!S&&Y,pointer:W,disabled:T,multiline:et,"data-with-right-section":!!Jt,"data-with-left-section":!!w},Z],variant:z,size:b,children:[w&&E.jsx("div",{...$,"data-position":"left",...ht("section",{className:$?.className,style:$?.style}),children:w}),E.jsx(pt,{component:"input",...ot,...Tt,ref:e,required:m,mod:{disabled:T,error:!!S&&Y},variant:z,__size:R,...ht("input")}),Jt&&E.jsx("div",{...j,"data-position":"right",...ht("section",{className:j?.className,style:j?.style}),children:Jt})]})})});hr.classes=Xr;hr.Wrapper=n1;hr.Label=mp;hr.Error=dp;hr.Description=fp;hr.Placeholder=e1;hr.ClearButton=lO;hr.displayName="@mantine/core/Input";function XQ(t,e,n){const r=bt(t,e,n),{label:s,description:l,error:c,required:f,classNames:m,styles:h,className:g,unstyled:b,__staticSelector:x,__stylesApiProps:S,errorProps:T,labelProps:w,descriptionProps:$,wrapperProps:_,id:L,size:j,style:H,inputContainer:P,inputWrapperOrder:G,withAsterisk:z,variant:k,vars:W,mod:et,attributes:it,...ct}=r,{styleProps:dt,rest:Y}=Dv(ct),Z={label:s,description:l,error:c,required:f,classNames:m,className:g,__staticSelector:x,__stylesApiProps:S||r,errorProps:T,labelProps:w,descriptionProps:$,unstyled:b,styles:h,size:j,style:H,inputContainer:P,inputWrapperOrder:G,withAsterisk:z,variant:k,id:L,mod:et,attributes:it,..._};return{...Y,classNames:m,styles:h,unstyled:b,wrapperProps:{...Z,...dt},inputProps:{required:f,classNames:m,styles:h,unstyled:b,size:j,__staticSelector:x,__stylesApiProps:S||r,error:c,variant:k,id:L,attributes:it}}}const QQ={__staticSelector:"InputBase",withAria:!0,size:"sm"},pp=ho((t,e)=>{const{inputProps:n,wrapperProps:r,...s}=XQ("InputBase",QQ,t);return E.jsx(hr.Wrapper,{...r,children:E.jsx(hr,{...n,...s,ref:e})})});pp.classes={...hr.classes,...hr.Wrapper.classes};pp.displayName="@mantine/core/InputBase";const ZQ={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var uO={root:"m_8bffd616"};const r1=ho((t,e)=>{const n=bt("Flex",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,gap:h,rowGap:g,columnGap:b,align:x,justify:S,wrap:T,direction:w,attributes:$,..._}=n,L=oe({name:"Flex",classes:uO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m}),j=Xn(),H=lR(),P=aR({styleProps:{gap:h,rowGap:g,columnGap:b,align:x,justify:S,wrap:T,direction:w},theme:j,data:ZQ});return E.jsxs(E.Fragment,{children:[P.hasResponsiveStyles&&E.jsx(sR,{selector:`.${H}`,styles:P.styles,media:P.media}),E.jsx(pt,{ref:e,...L("root",{className:H,style:Wm(P.inlineStyles)}),..._})]})});r1.classes=uO;r1.displayName="@mantine/core/Flex";var cO={root:"m_b6d8b162"};function JQ(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const WQ={inherit:!1},tZ=(t,{variant:e,lineClamp:n,gradient:r,size:s,color:l})=>({root:{"--text-fz":lr(s),"--text-lh":SY(s),"--text-gradient":e==="gradient"?e0(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":l?Qs(l,t):void 0}}),oo=ho((t,e)=>{const n=bt("Text",WQ,t),{lineClamp:r,truncate:s,inline:l,inherit:c,gradient:f,span:m,__staticSelector:h,vars:g,className:b,style:x,classNames:S,styles:T,unstyled:w,variant:$,mod:_,size:L,attributes:j,...H}=n,P=oe({name:["Text",h],props:n,classes:cO,className:b,style:x,classNames:S,styles:T,unstyled:w,attributes:j,vars:g,varsResolver:tZ});return E.jsx(pt,{...P("root",{focusable:!0}),ref:e,component:m?"span":"p",variant:$,mod:[{"data-truncate":JQ(s),"data-line-clamp":typeof r=="number","data-inline":l,"data-inherit":c},_],size:L,...H})});oo.classes=cO;oo.displayName="@mantine/core/Text";var Gl={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const c2={orientation:"horizontal"},eZ=(t,{borderWidth:e})=>({group:{"--button-border-width":ut(e)}}),o1=It((t,e)=>{const n=bt("ButtonGroup",c2,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:g,variant:b,mod:x,attributes:S,...T}=bt("ButtonGroup",c2,t),w=oe({name:"ButtonGroup",props:n,classes:Gl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:h,varsResolver:eZ,rootSelector:"group"});return E.jsx(pt,{...w("group"),ref:e,variant:b,mod:[{"data-orientation":m},x],role:"group",...T})});o1.classes=Gl;o1.displayName="@mantine/core/ButtonGroup";const nZ=(t,{radius:e,color:n,gradient:r,variant:s,autoContrast:l,size:c})=>{const f=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:l});return{groupSection:{"--section-height":ln(c,"section-height"),"--section-padding-x":ln(c,"section-padding-x"),"--section-fz":c?.includes("compact")?lr(c.replace("compact-","")):lr(c),"--section-radius":e===void 0?void 0:Tr(e),"--section-bg":n||s?f.background:void 0,"--section-color":f.color,"--section-bd":n||s?f.border:void 0}}},i1=It((t,e)=>{const n=bt("ButtonGroupSection",null,t),{className:r,style:s,classNames:l,styles:c,unstyled:f,vars:m,variant:h,gradient:g,radius:b,autoContrast:x,attributes:S,...T}=n,w=oe({name:"ButtonGroupSection",props:n,classes:Gl,className:r,style:s,classNames:l,styles:c,unstyled:f,attributes:S,vars:m,varsResolver:nZ,rootSelector:"groupSection"});return E.jsx(pt,{...w("groupSection"),ref:e,variant:h,...T})});i1.classes=Gl;i1.displayName="@mantine/core/ButtonGroupSection";const rZ={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ut(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},oZ=(t,{radius:e,color:n,gradient:r,variant:s,size:l,justify:c,autoContrast:f})=>{const m=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--button-justify":c,"--button-height":ln(l,"button-height"),"--button-padding-x":ln(l,"button-padding-x"),"--button-fz":l?.includes("compact")?lr(l.replace("compact-","")):lr(l),"--button-radius":e===void 0?void 0:Tr(e),"--button-bg":n||s?m.background:void 0,"--button-hover":n||s?m.hover:void 0,"--button-color":m.color,"--button-bd":n||s?m.border:void 0,"--button-hover-color":n||s?m.hoverColor:void 0}}},lo=ho((t,e)=>{const n=bt("Button",null,t),{style:r,vars:s,className:l,color:c,disabled:f,children:m,leftSection:h,rightSection:g,fullWidth:b,variant:x,radius:S,loading:T,loaderProps:w,gradient:$,classNames:_,styles:L,unstyled:j,"data-disabled":H,autoContrast:P,mod:G,attributes:z,...k}=n,W=oe({name:"Button",props:n,classes:Gl,className:l,style:r,classNames:_,styles:L,unstyled:j,attributes:z,vars:s,varsResolver:oZ}),et=!!h,it=!!g;return E.jsxs(Pl,{ref:e,...W("root",{active:!f&&!T&&!H}),unstyled:j,variant:x,disabled:f||T,mod:[{disabled:f||H,loading:T,block:b,"with-left-section":et,"with-right-section":it},G],...k,children:[typeof T=="boolean"&&E.jsx(Ws,{mounted:T,transition:rZ,duration:150,children:ct=>E.jsx(pt,{component:"span",...W("loader",{style:ct}),"aria-hidden":!0,children:E.jsx(Hl,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),E.jsxs("span",{...W("inner"),children:[h&&E.jsx(pt,{component:"span",...W("section"),mod:{position:"left"},children:h}),E.jsx(pt,{component:"span",mod:{loading:T},...W("label"),children:m}),g&&E.jsx(pt,{component:"span",...W("section"),mod:{position:"right"},children:g})]})]})});lo.classes=Gl;lo.displayName="@mantine/core/Button";lo.Group=o1;lo.GroupSection=i1;const iZ={timeout:1e3};function fO(t){const{children:e,timeout:n,value:r,...s}=bt("CopyButton",iZ,t),l=xY({timeout:n}),c=()=>l.copy(r);return E.jsx(E.Fragment,{children:e({copy:c,copied:l.copied,...s})})}fO.displayName="@mantine/core/CopyButton";function f2({color:t,theme:e,defaultShade:n}){const r=zl({color:t,theme:e});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:t}var dO={root:"m_bcb3f3c2"};const sZ={color:"yellow"},aZ=(t,{color:e})=>({root:{"--mark-bg-dark":f2({color:e,theme:t,defaultShade:5}),"--mark-bg-light":f2({color:e,theme:t,defaultShade:2})}}),s1=It((t,e)=>{const n=bt("Mark",sZ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,color:h,variant:g,attributes:b,...x}=n,S=oe({name:"Mark",props:n,className:s,style:l,classes:dO,classNames:r,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:aZ});return E.jsx(pt,{component:"mark",ref:e,variant:g,...S("root"),...x})});s1.classes=dO;s1.displayName="@mantine/core/Mark";function d2(t){return t.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function lZ(t,e){if(e==null)return[{chunk:t,highlighted:!1}];const n=Array.isArray(e)?e.map(d2):d2(e);if(!(Array.isArray(n)?n.filter(f=>f.trim().length>0).length>0:n.trim()!==""))return[{chunk:t,highlighted:!1}];const s=typeof n=="string"?n.trim():n.filter(f=>f.trim().length!==0).map(f=>f.trim()).sort((f,m)=>m.length-f.length).join("|"),l=new RegExp(`(${s})`,"gi");return t.split(l).map(f=>({chunk:f,highlighted:l.test(f)})).filter(({chunk:f})=>f)}const a1=ho((t,e)=>{const{unstyled:n,children:r,highlight:s,highlightStyles:l,color:c,...f}=bt("Highlight",null,t),m=lZ(r,s);return E.jsx(oo,{unstyled:n,ref:e,...f,__staticSelector:"Highlight",children:m.map(({chunk:h,highlighted:g},b)=>g?E.jsx(s1,{unstyled:n,color:c,style:l,"data-highlight":h,children:h},b):E.jsx("span",{children:h},b))})});a1.classes=oo.classes;a1.displayName="@mantine/core/Highlight";function m0(){return m0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m0.apply(null,arguments)}function mO(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var wi={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const[uZ,Yl]=jl("Modal component was not found in tree"),hp=It((t,e)=>{const n=bt("ModalBody",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,h=Yl();return E.jsx(nO,{ref:e,...h.getStyles("body",{classNames:r,style:l,styles:c,className:s}),...m})});hp.classes=wi;hp.displayName="@mantine/core/ModalBody";const gp=It((t,e)=>{const n=bt("ModalCloseButton",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,h=Yl();return E.jsx(rO,{ref:e,...h.getStyles("close",{classNames:r,style:l,styles:c,className:s}),...m})});gp.classes=wi;gp.displayName="@mantine/core/ModalCloseButton";const yp=It((t,e)=>{const n=bt("ModalContent",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,children:m,__hidden:h,...g}=n,b=Yl(),x=b.scrollAreaComponent||IQ;return E.jsx(oO,{...b.getStyles("content",{className:s,style:l,styles:c,classNames:r}),innerProps:b.getStyles("inner",{className:s,style:l,styles:c,classNames:r}),"data-full-screen":b.fullScreen||void 0,"data-modal-content":!0,"data-hidden":h||void 0,ref:e,...g,children:E.jsx(x,{style:{maxHeight:b.fullScreen?"100dvh":`calc(100dvh - (${ut(b.yOffset)} * 2))`},children:m})})});yp.classes=wi;yp.displayName="@mantine/core/ModalContent";const bp=It((t,e)=>{const n=bt("ModalHeader",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,h=Yl();return E.jsx(iO,{ref:e,...h.getStyles("header",{classNames:r,style:l,styles:c,className:s}),...m})});bp.classes=wi;bp.displayName="@mantine/core/ModalHeader";const vp=It((t,e)=>{const n=bt("ModalOverlay",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,h=Yl();return E.jsx(sO,{ref:e,...h.getStyles("overlay",{classNames:r,style:l,styles:c,className:s}),...m})});vp.classes=wi;vp.displayName="@mantine/core/ModalOverlay";const cZ={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wr("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},fZ=(t,{radius:e,size:n,yOffset:r,xOffset:s})=>({root:{"--modal-radius":e===void 0?void 0:Tr(e),"--modal-size":ln(n,"modal-size"),"--modal-y-offset":ut(r),"--modal-x-offset":ut(s)}}),Sp=It((t,e)=>{const n=bt("ModalRoot",cZ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,yOffset:h,scrollAreaComponent:g,radius:b,fullScreen:x,centered:S,xOffset:T,__staticSelector:w,attributes:$,..._}=n,L=oe({name:w,classes:wi,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:$,vars:m,varsResolver:fZ});return E.jsx(uZ,{value:{yOffset:h,scrollAreaComponent:g,getStyles:L,fullScreen:x},children:E.jsx(eO,{ref:e,...L("root"),"data-full-screen":x||void 0,"data-centered":S||void 0,"data-offset-scrollbars":g===kl.Autosize||void 0,unstyled:f,..._})})});Sp.classes=wi;Sp.displayName="@mantine/core/ModalRoot";const[dZ,mZ]=Cv();function pO({children:t}){const[e,n]=C.useState([]),[r,s]=C.useState(wr("modal"));return E.jsx(dZ,{value:{stack:e,addModal:(l,c)=>{n(f=>[...new Set([...f,l])]),s(f=>typeof c=="number"&&typeof f=="number"?Math.max(f,c):f)},removeModal:l=>n(c=>c.filter(f=>f!==l)),getZIndex:l=>`calc(${r} + ${e.indexOf(l)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}pO.displayName="@mantine/core/ModalStack";const xp=It((t,e)=>{const n=bt("ModalTitle",null,t),{classNames:r,className:s,style:l,styles:c,vars:f,...m}=n,h=Yl();return E.jsx(aO,{ref:e,...h.getStyles("title",{classNames:r,style:l,styles:c,className:s}),...m})});xp.classes=wi;xp.displayName="@mantine/core/ModalTitle";const pZ={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wr("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Qr=It((t,e)=>{const{title:n,withOverlay:r,overlayProps:s,withCloseButton:l,closeButtonProps:c,children:f,radius:m,opened:h,stackId:g,zIndex:b,...x}=bt("Modal",pZ,t),S=mZ(),T=!!n||l,w=S&&g?{closeOnEscape:S.currentId===g,trapFocus:S.currentId===g,zIndex:S.getZIndex(g)}:{},$=r===!1?!1:g&&S?S.currentId===g:h;return C.useEffect(()=>{S&&g&&(h?S.addModal(g,b||wr("modal")):S.removeModal(g))},[h,g,b]),E.jsxs(Sp,{ref:e,radius:m,opened:h,zIndex:S&&g?S.getZIndex(g):b,...x,...w,children:[r&&E.jsx(vp,{visible:$,transitionProps:S&&g?{duration:0}:void 0,...s}),E.jsxs(yp,{radius:m,__hidden:S&&g&&h?g!==S.currentId:!1,children:[T&&E.jsxs(bp,{children:[n&&E.jsx(xp,{children:n}),l&&E.jsx(gp,{...c})]}),E.jsx(hp,{children:f})]})]})});Qr.classes=wi;Qr.displayName="@mantine/core/Modal";Qr.Root=Sp;Qr.Overlay=vp;Qr.Content=yp;Qr.Body=hp;Qr.Header=bp;Qr.Title=xp;Qr.CloseButton=gp;Qr.Stack=pO;var hO={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const hZ={withCloseButton:!0},gZ=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Tr(e),"--notification-color":n?Qs(n,t):void 0}}),l1=It((t,e)=>{const n=bt("Notification",hZ,t),{className:r,color:s,radius:l,loading:c,withCloseButton:f,withBorder:m,title:h,icon:g,children:b,onClose:x,closeButtonProps:S,classNames:T,style:w,styles:$,unstyled:_,vars:L,mod:j,loaderProps:H,role:P,attributes:G,...z}=n,k=oe({name:"Notification",classes:hO,props:n,className:r,style:w,classNames:T,styles:$,unstyled:_,attributes:G,vars:L,varsResolver:gZ});return E.jsxs(pt,{...k("root"),mod:[{"data-with-icon":!!g||c,"data-with-border":m},j],ref:e,role:P||"alert",...z,children:[g&&!c&&E.jsx("div",{...k("icon"),children:g}),c&&E.jsx(Hl,{size:28,color:s,...H,...k("loader")}),E.jsxs("div",{...k("body"),children:[h&&E.jsx("div",{...k("title"),children:h}),E.jsx(pt,{...k("description"),mod:{"data-with-title":!!h},children:b})]}),f&&E.jsx(Hc,{iconSize:16,color:"gray",...S,unstyled:_,onClick:x,...k("closeButton")})]})});l1.classes=hO;l1.displayName="@mantine/core/Notification";var Fc={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"};const[yZ,gO]=jl("Progress.Root component was not found in tree"),u1=It((t,e)=>{const{classNames:n,className:r,style:s,styles:l,vars:c,...f}=bt("ProgressLabel",null,t),m=gO();return E.jsx(pt,{ref:e,...m.getStyles("label",{className:r,style:s,classNames:n,styles:l}),...f})});u1.classes=Fc;u1.displayName="@mantine/core/ProgressLabel";const bZ=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":ln(e,"progress-size"),"--progress-radius":n===void 0?void 0:Tr(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Ep=It((t,e)=>{const n=bt("ProgressRoot",null,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,autoContrast:h,transitionDuration:g,orientation:b,attributes:x,mod:S,...T}=n,w=oe({name:"Progress",classes:Fc,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:x,vars:m,varsResolver:bZ});return E.jsx(yZ,{value:{getStyles:w,autoContrast:h},children:E.jsx(pt,{ref:e,mod:[{orientation:b},S],...w("root"),...T})})});Ep.classes=Fc;Ep.displayName="@mantine/core/ProgressRoot";const vZ={withAria:!0},wp=It((t,e)=>{const{classNames:n,className:r,style:s,styles:l,vars:c,value:f,withAria:m,color:h,striped:g,animated:b,mod:x,...S}=bt("ProgressSection",vZ,t),T=gO(),w=Xn(),$=m?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f,"aria-valuetext":`${f}%`}:{};return E.jsx(pt,{ref:e,...T.getStyles("section",{className:r,classNames:n,styles:l,style:s}),...S,...$,mod:[{striped:g||b,animated:b},x],__vars:{"--progress-section-size":`${f}%`,"--progress-section-color":Qs(h,w),"--progress-label-color":DV(T.autoContrast,w)?eR({color:h,theme:w,autoContrast:T.autoContrast}):void 0}})});wp.classes=Fc;wp.displayName="@mantine/core/ProgressSection";const Vl=It((t,e)=>{const n=bt("Progress",null,t),{value:r,classNames:s,styles:l,vars:c,color:f,striped:m,animated:h,"aria-label":g,...b}=n,{resolvedClassNames:x,resolvedStyles:S}=iR({classNames:s,styles:l,props:n});return E.jsx(Ep,{ref:e,classNames:x,styles:S,vars:c,...b,children:E.jsx(wp,{value:r,color:f,striped:m,animated:h,"aria-label":g})})});Vl.classes=Fc;Vl.displayName="@mantine/core/Progress";Vl.Section=wp;Vl.Root=Ep;Vl.Label=u1;const SZ={duration:100,transition:"fade"};function m2(t,e){return{...SZ,...e,...t}}var Tp={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function xZ({offset:t,position:e,defaultOpened:n}){const[r,s]=C.useState(n),l=C.useRef(null),{x:c,y:f,elements:m,refs:h,update:g,placement:b}=RR({placement:e,middleware:[CR({crossAxis:!0,padding:5,rootBoundary:"document"})]}),x=b.includes("right")?t:e.includes("left")?t*-1:0,S=b.includes("bottom")?t:e.includes("top")?t*-1:0,T=C.useCallback(({clientX:w,clientY:$})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:$,left:w+x,top:$+S,right:w,bottom:$}}})},[m.reference]);return C.useEffect(()=>{if(h.floating.current){const w=l.current;w.addEventListener("mousemove",T);const $=ii(h.floating.current);return $.forEach(_=>{_.addEventListener("scroll",g)}),()=>{w.removeEventListener("mousemove",T),$.forEach(_=>{_.removeEventListener("scroll",g)})}}},[m.reference,h.floating.current,g,T,r]),{handleMouseMove:T,x:c,y:f,opened:r,setOpened:s,boundaryRef:l,floating:h.setFloating}}const EZ={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:wr("popover")},wZ=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Tr(e),"--tooltip-bg":n?Qs(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),c1=It((t,e)=>{const n=bt("TooltipFloating",EZ,t),{children:r,refProp:s,withinPortal:l,style:c,className:f,classNames:m,styles:h,unstyled:g,radius:b,color:x,label:S,offset:T,position:w,multiline:$,zIndex:_,disabled:L,defaultOpened:j,variant:H,vars:P,portalProps:G,attributes:z,...k}=n,W=Xn(),et=oe({name:"TooltipFloating",props:n,classes:Tp,className:f,style:c,classNames:m,styles:h,unstyled:g,attributes:z,rootSelector:"tooltip",vars:P,varsResolver:wZ}),{handleMouseMove:it,x:ct,y:dt,opened:Y,boundaryRef:Z,floating:R,setOpened:B}=xZ({offset:T,position:w,defaultOpened:j}),D=Mv(r);if(!D)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const tt=xi(Z,XM(D),e),nt=D.props,O=ot=>{nt.onMouseEnter?.(ot),it(ot),B(!0)},q=ot=>{nt.onMouseLeave?.(ot),B(!1)};return E.jsxs(E.Fragment,{children:[E.jsx(Js,{...G,withinPortal:l,children:E.jsx(pt,{...k,...et("tooltip",{style:{...Iv(c,W),zIndex:_,display:!L&&Y?"block":"none",top:(dt&&Math.round(dt))??"",left:(ct&&Math.round(ct))??""}}),variant:H,ref:R,mod:{multiline:$},children:S})}),C.cloneElement(D,{...nt,[s]:tt,onMouseEnter:O,onMouseLeave:q})]})});c1.classes=Tp;c1.displayName="@mantine/core/TooltipFloating";const yO=C.createContext(!1),TZ=yO.Provider,CZ=()=>C.useContext(yO),AZ={openDelay:0,closeDelay:0};function f1(t){const{openDelay:e,closeDelay:n,children:r}=bt("TooltipGroup",AZ,t);return E.jsx(TZ,{value:!0,children:E.jsx(PX,{delay:{open:e,close:n},children:r})})}f1.displayName="@mantine/core/TooltipGroup";f1.extend=t=>t;function $Z(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function MZ(t){const e=$Z(t.middlewares),n=[RX(t.offset)];return e.shift&&n.push(CR(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?ZT():ZT(e.flip)),n.push(OX({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?vy():vy(e.inline)):t.inline&&n.push(vy()),n}function RZ(t){const[e,n]=C.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:e,l=CZ(),c=$v(),f=C.useCallback(P=>{n(P),P&&_(c)},[c]),{x:m,y:h,context:g,refs:b,placement:x,middlewareData:{arrow:{x:S,y:T}={}}}=RR({strategy:t.strategy,placement:t.position,open:s,onOpenChange:f,middleware:MZ(t),whileElementsMounted:gX}),{delay:w,currentId:$,setCurrentId:_}=HX(g,{id:c}),{getReferenceProps:L,getFloatingProps:j}=KX([UX(g,{enabled:t.events?.hover,delay:l?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),VX(g,{enabled:t.events?.focus,visibleOnly:!0}),QX(g,{role:"tooltip"}),GX(g,{enabled:typeof t.opened>"u"})]);Ll(()=>{t.onPositionChange?.(x)},[x]);const H=s&&$&&$!==c;return{x:m,y:h,arrowX:S,arrowY:T,reference:b.setReference,floating:b.setFloating,getFloatingProps:j,getReferenceProps:L,isGroupPhase:H,opened:s,placement:x}}const p2={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:wr("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},OZ=(t,{radius:e,color:n,variant:r,autoContrast:s})=>{const l=t.variantColorResolver({theme:t,color:n||t.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":e===void 0?void 0:Tr(e),"--tooltip-bg":n?l.background:void 0,"--tooltip-color":n?l.color:void 0}}},qc=It((t,e)=>{const n=bt("Tooltip",p2,t),{children:r,position:s,refProp:l,label:c,openDelay:f,closeDelay:m,onPositionChange:h,opened:g,defaultOpened:b,withinPortal:x,radius:S,color:T,classNames:w,styles:$,unstyled:_,style:L,className:j,withArrow:H,arrowSize:P,arrowOffset:G,arrowRadius:z,arrowPosition:k,offset:W,transitionProps:et,multiline:it,events:ct,zIndex:dt,disabled:Y,positionDependencies:Z,onClick:R,onMouseEnter:B,onMouseLeave:D,inline:tt,variant:nt,keepMounted:O,vars:q,portalProps:ot,mod:ft,floatingStrategy:mt,middlewares:ht,autoContrast:Tt,attributes:Jt,target:Ot,...ie}=bt("Tooltip",p2,n),{dir:We}=Lv(),cn=C.useRef(null),Zt=RZ({position:fQ(We,s),closeDelay:m,openDelay:f,onPositionChange:h,opened:g,defaultOpened:b,events:ct,arrowRef:cn,arrowOffset:G,offset:typeof W=="number"?W+(H?P/2:0):W,positionDependencies:[...Z,Ot??r],inline:tt,strategy:mt,middlewares:ht});C.useEffect(()=>{const Qn=Ot instanceof HTMLElement?Ot:typeof Ot=="string"?document.querySelector(Ot):Ot?.current||null;Qn&&Zt.reference(Qn)},[Ot,Zt]);const on=oe({name:"Tooltip",props:n,classes:Tp,className:j,style:L,classNames:w,styles:$,unstyled:_,attributes:Jt,rootSelector:"tooltip",vars:q,varsResolver:OZ}),go=Mv(r);if(!Ot&&!go)return null;if(Ot){const Qn=m2(et,{duration:100,transition:"fade"});return E.jsx(E.Fragment,{children:E.jsx(Js,{...ot,withinPortal:x,children:E.jsx(Ws,{...Qn,keepMounted:O,mounted:!Y&&!!Zt.opened,duration:Zt.isGroupPhase?10:Qn.duration,children:vs=>E.jsxs(pt,{...ie,"data-fixed":mt==="fixed"||void 0,variant:nt,mod:[{multiline:it},ft],...Zt.getFloatingProps({ref:Zt.floating,className:on("tooltip").className,style:{...on("tooltip").style,...vs,zIndex:dt,top:Zt.y??0,left:Zt.x??0}}),children:[c,E.jsx(d0,{ref:cn,arrowX:Zt.arrowX,arrowY:Zt.arrowY,visible:H,position:Zt.placement,arrowSize:P,arrowOffset:G,arrowRadius:z,arrowPosition:k,...on("arrow")})]})})})})}const Ai=go.props,Ql=xi(Zt.reference,XM(go),e),bs=m2(et,{duration:100,transition:"fade"});return E.jsxs(E.Fragment,{children:[E.jsx(Js,{...ot,withinPortal:x,children:E.jsx(Ws,{...bs,keepMounted:O,mounted:!Y&&!!Zt.opened,duration:Zt.isGroupPhase?10:bs.duration,children:Qn=>E.jsxs(pt,{...ie,"data-fixed":mt==="fixed"||void 0,variant:nt,mod:[{multiline:it},ft],...Zt.getFloatingProps({ref:Zt.floating,className:on("tooltip").className,style:{...on("tooltip").style,...Qn,zIndex:dt,top:Zt.y??0,left:Zt.x??0}}),children:[c,E.jsx(d0,{ref:cn,arrowX:Zt.arrowX,arrowY:Zt.arrowY,visible:H,position:Zt.placement,arrowSize:P,arrowOffset:G,arrowRadius:z,arrowPosition:k,...on("arrow")})]})})}),C.cloneElement(go,Zt.getReferenceProps({onClick:R,onMouseEnter:B,onMouseLeave:D,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,...Ai,className:Vn(j,Ai.className),[l]:Ql}))]})});qc.classes=Tp;qc.displayName="@mantine/core/Tooltip";qc.Floating=c1;qc.Group=f1;const d1=It((t,e)=>{const n=bt("TextInput",null,t);return E.jsx(pp,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});d1.classes=pp.classes;d1.displayName="@mantine/core/TextInput";const m1=C.createContext(null);m1.displayName="@mantine/modals/ModalsContext";function NZ(){const t=C.useContext(m1);if(!t)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return t}function _Z({id:t,cancelProps:e,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:s=!0,closeOnCancel:l=!0,groupProps:c,onCancel:f,onConfirm:m,children:h}){const{cancel:g,confirm:b}=r,x=NZ(),S=w=>{typeof e?.onClick=="function"&&e?.onClick(w),typeof f=="function"&&f(),l&&x.closeModal(t)},T=w=>{typeof n?.onClick=="function"&&n?.onClick(w),typeof m=="function"&&m(),s&&x.closeModal(t)};return E.jsxs(E.Fragment,{children:[h&&E.jsx(pt,{mb:"md",children:h}),E.jsxs(ql,{mt:h?0:"md",justify:"flex-end",...c,children:[E.jsx(lo,{variant:"default",...e,onClick:S,children:e?.children||g}),E.jsx(lo,{...n,onClick:T,children:n?.children||b})]})]})}const[DZ,ua]=GY("mantine-modals"),jZ=t=>{const e=t.modalId||ns();return ua("openModal")({...t,modalId:e}),e},IZ=t=>{const e=t.modalId||ns();return ua("openConfirmModal")({...t,modalId:e}),e},LZ=t=>{const e=t.modalId||ns();return ua("openContextModal")({...t,modalId:e}),e},zZ=ua("closeModal"),BZ=ua("closeAllModals"),UZ=t=>ua("updateModal")(t),kZ=t=>ua("updateContextModal")(t),Ty={open:jZ,close:zZ,closeAll:BZ,openConfirmModal:IZ,openContextModal:LZ,updateModal:UZ,updateContextModal:kZ};function h2(t,e){e&&t.type==="confirm"&&t.props.onCancel?.(),t.props.onClose?.()}function PZ(t,e){switch(e.type){case"OPEN":return{current:e.modal,modals:[...t.modals,e.modal]};case"CLOSE":{const n=t.modals.find(s=>s.id===e.modalId);if(!n)return t;h2(n,e.canceled);const r=t.modals.filter(s=>s.id!==e.modalId);return{current:r[r.length-1]||t.current,modals:r}}case"CLOSE_ALL":return t.modals.length?(t.modals.concat().reverse().forEach(n=>{h2(n,e.canceled)}),{current:t.current,modals:[]}):t;case"UPDATE":{const{modalId:n,newProps:r}=e,s=t.modals.map(c=>c.id!==n?c:c.type==="content"||c.type==="confirm"?{...c,props:{...c.props,...r}}:c.type==="context"?{...c,props:{...c.props,...r,innerProps:{...c.props.innerProps,...r.innerProps}}}:c),l=t.current?.id===n&&s.find(c=>c.id===n)||t.current;return{...t,modals:s,current:l}}default:return t}}function HZ(t){if(!t)return{confirmProps:{},modalProps:{}};const{id:e,children:n,onCancel:r,onConfirm:s,closeOnConfirm:l,closeOnCancel:c,cancelProps:f,confirmProps:m,groupProps:h,labels:g,...b}=t;return{confirmProps:{id:e,children:n,onCancel:r,onConfirm:s,closeOnConfirm:l,closeOnCancel:c,cancelProps:f,confirmProps:m,groupProps:h,labels:g},modalProps:{id:e,...b}}}function FZ({children:t,modalProps:e,labels:n,modals:r}){const[s,l]=C.useReducer(PZ,{modals:[],current:null}),c=C.useRef(s);c.current=s;const f=C.useCallback(L=>{l({type:"CLOSE_ALL",canceled:L})},[c,l]),m=C.useCallback(({modalId:L,...j})=>{const H=L||ns();return l({type:"OPEN",modal:{id:H,type:"content",props:j}}),H},[l]),h=C.useCallback(({modalId:L,...j})=>{const H=L||ns();return l({type:"OPEN",modal:{id:H,type:"confirm",props:j}}),H},[l]),g=C.useCallback((L,{modalId:j,...H})=>{const P=j||ns();return l({type:"OPEN",modal:{id:P,type:"context",props:H,ctx:L}}),P},[l]),b=C.useCallback((L,j)=>{l({type:"CLOSE",modalId:L,canceled:j})},[c,l]),x=C.useCallback(({modalId:L,...j})=>{l({type:"UPDATE",modalId:L,newProps:j})},[l]),S=C.useCallback(({modalId:L,...j})=>{l({type:"UPDATE",modalId:L,newProps:j})},[l]);DZ({openModal:m,openConfirmModal:h,openContextModal:({modal:L,...j})=>g(L,j),closeModal:b,closeContextModal:b,closeAllModals:f,updateModal:x,updateContextModal:S});const T={modalProps:e||{},modals:s.modals,openModal:m,openConfirmModal:h,openContextModal:g,closeModal:b,closeContextModal:b,closeAll:f,updateModal:x,updateContextModal:S},w=()=>{const L=c.current.current;switch(L?.type){case"context":{const{innerProps:j,...H}=L.props,P=r[L.ctx];return{modalProps:H,content:E.jsx(P,{innerProps:j,context:T,id:L.id})}}case"confirm":{const{modalProps:j,confirmProps:H}=HZ(L.props);return{modalProps:j,content:E.jsx(_Z,{...H,id:L.id,labels:L.props.labels||n})}}case"content":{const{children:j,...H}=L.props;return{modalProps:H,content:j}}default:return{modalProps:{},content:null}}},{modalProps:$,content:_}=w();return E.jsxs(m1.Provider,{value:T,children:[E.jsx(Qr,{zIndex:wr("modal")+1,...e,...$,opened:s.modals.length>0,onClose:()=>b(s.current?.id),children:_}),t]})}function p1(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(s){e=typeof s=="function"?s(e):s},setState(s){this.updateState(s),r.forEach(l=>l(e))},initialize(s){n||(e=s,n=!0)},subscribe(s){return r.add(s),()=>r.delete(s)}}}function h1(t){return C.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function qZ(t,e,n){const r=[],s=[],l={};for(const c of t){const f=c.position||e;l[f]=l[f]||0,l[f]+=1,l[f]<=n?s.push(c):r.push(c)}return{notifications:s,queue:r}}const GZ=()=>p1({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),ca=GZ(),YZ=(t=ca)=>h1(t);function Kl(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),s=qZ(r,n.defaultPosition,n.limit);t.setState({notifications:s.notifications,queue:s.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function VZ(t,e=ca){const n=t.id||ns();return Kl(e,r=>t.id&&r.some(s=>s.id===t.id)?r:[...r,{...t,id:n}]),n}function bO(t,e=ca){return Kl(e,n=>n.filter(r=>r.id===t?(r.onClose?.(r),!1):!0)),t}function KZ(t,e=ca){return Kl(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function XZ(t=ca){Kl(t,()=>[])}function QZ(t=ca){Kl(t,e=>e.slice(0,t.getState().limit))}const as={show:VZ,hide:bO,update:KZ,clean:XZ,cleanQueue:QZ,updateState:Kl};function p0(t,e){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},p0(t,e)}function vO(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p0(t,e)}const g2={disabled:!1},Jd=$n.createContext(null);var ZZ=function(e){return e.scrollTop},Ju="unmounted",Us="exited",ks="entering",rl="entered",h0="exiting",Ti=(function(t){vO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=s,f=c&&!c.isMounting?r.enter:r.appear,m;return l.appearStatus=null,r.in?f?(m=Us,l.appearStatus=ks):m=rl:r.unmountOnExit||r.mountOnEnter?m=Ju:m=Us,l.state={status:m},l.nextCallback=null,l}e.getDerivedStateFromProps=function(s,l){var c=s.in;return c&&l.status===Ju?{status:Us}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var l=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==ks&&c!==rl&&(l=ks):(c===ks||c===rl)&&(l=h0)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,l,c,f;return l=c=f=s,s!=null&&typeof s!="number"&&(l=s.exit,c=s.enter,f=s.appear!==void 0?s.appear:c),{exit:l,enter:c,appear:f}},n.updateStatus=function(s,l){if(s===void 0&&(s=!1),l!==null)if(this.cancelNextCallback(),l===ks){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Zu.findDOMNode(this);c&&ZZ(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Us&&this.setState({status:Ju})},n.performEnter=function(s){var l=this,c=this.props.enter,f=this.context?this.context.isMounting:s,m=this.props.nodeRef?[f]:[Zu.findDOMNode(this),f],h=m[0],g=m[1],b=this.getTimeouts(),x=f?b.appear:b.enter;if(!s&&!c||g2.disabled){this.safeSetState({status:rl},function(){l.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:ks},function(){l.props.onEntering(h,g),l.onTransitionEnd(x,function(){l.safeSetState({status:rl},function(){l.props.onEntered(h,g)})})})},n.performExit=function(){var s=this,l=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:Zu.findDOMNode(this);if(!l||g2.disabled){this.safeSetState({status:Us},function(){s.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:h0},function(){s.props.onExiting(f),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:Us},function(){s.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,l){l=this.setNextCallback(l),this.setState(s,l)},n.setNextCallback=function(s){var l=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,l.nextCallback=null,s(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(s,l){this.setNextCallback(l);var c=this.props.nodeRef?this.props.nodeRef.current:Zu.findDOMNode(this),f=s==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=m[0],g=m[1];this.props.addEndListener(h,g)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Ju)return null;var l=this.props,c=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=mO(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $n.createElement(Jd.Provider,{value:null},typeof c=="function"?c(s,f):$n.cloneElement($n.Children.only(c),f))},e})($n.Component);Ti.contextType=Jd;Ti.propTypes={};function tl(){}Ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tl,onEntering:tl,onEntered:tl,onExit:tl,onExiting:tl,onExited:tl};Ti.UNMOUNTED=Ju;Ti.EXITED=Us;Ti.ENTERING=ks;Ti.ENTERED=rl;Ti.EXITING=h0;function JZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g1(t,e){var n=function(l){return e&&C.isValidElement(l)?e(l):l},r=Object.create(null);return t&&C.Children.map(t,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function WZ(t,e){t=t||{},e=e||{};function n(g){return g in e?e[g]:t[g]}var r=Object.create(null),s=[];for(var l in t)l in e?s.length&&(r[l]=s,s=[]):s.push(l);var c,f={};for(var m in e){if(r[m])for(c=0;c<r[m].length;c++){var h=r[m][c];f[r[m][c]]=n(h)}f[m]=n(m)}for(c=0;c<s.length;c++)f[s[c]]=n(s[c]);return f}function qs(t,e,n){return n[e]!=null?n[e]:t.props[e]}function tJ(t,e){return g1(t.children,function(n){return C.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:qs(n,"appear",t),enter:qs(n,"enter",t),exit:qs(n,"exit",t)})})}function eJ(t,e,n){var r=g1(t.children),s=WZ(e,r);return Object.keys(s).forEach(function(l){var c=s[l];if(C.isValidElement(c)){var f=l in e,m=l in r,h=e[l],g=C.isValidElement(h)&&!h.props.in;m&&(!f||g)?s[l]=C.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:qs(c,"exit",t),enter:qs(c,"enter",t)}):!m&&f&&!g?s[l]=C.cloneElement(c,{in:!1}):m&&f&&C.isValidElement(h)&&(s[l]=C.cloneElement(c,{onExited:n.bind(null,c),in:h.props.in,exit:qs(c,"exit",t),enter:qs(c,"enter",t)}))}}),s}var nJ=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},rJ={component:"div",childFactory:function(e){return e}},Ji=(function(t){vO(e,t);function e(r,s){var l;l=t.call(this,r,s)||this;var c=l.handleExited.bind(JZ(l));return l.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},l}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,l){var c=l.children,f=l.handleExited,m=l.firstRender;return{children:m?tJ(s,f):eJ(s,c,f),firstRender:!1}},n.handleExited=function(s,l){var c=g1(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(l),this.mounted&&this.setState(function(f){var m=m0({},f.children);return delete m[s.key],{children:m}}))},n.render=function(){var s=this.props,l=s.component,c=s.childFactory,f=mO(s,["component","childFactory"]),m=this.state.contextValue,h=nJ(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?$n.createElement(Jd.Provider,{value:m},h):$n.createElement(Jd.Provider,{value:m},$n.createElement(l,f,h))},e})($n.Component);Ji.propTypes={};Ji.defaultProps=rJ;const SO=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function oJ(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),SO.reduce((n,r)=>(n[r]=[],n),{}))}const y2={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},iJ={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function sJ({state:t,maxHeight:e,position:n,transitionDuration:r}){const[s,l]=n.split("-"),c=l==="center"?`${s}-center`:l,f={opacity:0,maxHeight:e,transform:y2[c],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},m={opacity:1,transform:iJ[c]},h={opacity:0,maxHeight:0,transform:y2[c]};return{...f,...{entering:m,entered:m,exiting:h,exited:h}[t]}}function aJ(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const xO=C.forwardRef(({data:t,onHide:e,autoClose:n,...r},s)=>{const{autoClose:l,message:c,...f}=t,m=aJ(n,t.autoClose),h=C.useRef(-1),g=()=>window.clearTimeout(h.current),b=()=>{e(t.id),g()},x=()=>{typeof m=="number"&&(h.current=window.setTimeout(b,m))};return C.useEffect(()=>{t.onOpen?.(t)},[]),C.useEffect(()=>(x(),g),[m]),E.jsx(l1,{...r,...f,onClose:b,ref:s,onMouseEnter:g,onMouseLeave:x,children:c})});xO.displayName="@mantine/notifications/NotificationContainer";var EO={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const lJ=Ti,uJ={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:wr("overlay"),store:ca,withinPortal:!0},cJ=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e?.toString(),"--notifications-container-width":ut(n)}}),Ci=It((t,e)=>{const n=bt("Notifications",uJ,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,position:h,autoClose:g,transitionDuration:b,containerWidth:x,notificationMaxHeight:S,limit:T,zIndex:w,store:$,portalProps:_,withinPortal:L,...j}=n,H=Xn(),P=YZ($),G=DY(),z=ep(),k=C.useRef({}),W=C.useRef(0),it=(H.respectReducedMotion?z:!1)?1:b,ct=oe({name:"Notifications",classes:EO,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,vars:m,varsResolver:cJ});C.useEffect(()=>{$?.updateState(Z=>({...Z,limit:T||5,defaultPosition:h}))},[T,h]),Ll(()=>{P.notifications.length>W.current&&setTimeout(()=>G(),0),W.current=P.notifications.length},[P.notifications]);const dt=oJ(P.notifications,h),Y=SO.reduce((Z,R)=>(Z[R]=dt[R].map(({style:B,...D})=>E.jsx(lJ,{timeout:it,onEnter:()=>k.current[D.id].offsetHeight,nodeRef:{current:k.current[D.id]},children:tt=>E.jsx(xO,{ref:nt=>{nt&&(k.current[D.id]=nt)},data:D,onHide:nt=>bO(nt,$),autoClose:g,...ct("notification",{style:{...sJ({state:tt,position:R,transitionDuration:it,maxHeight:S}),...B}})})},D.id)),Z),{});return E.jsxs(Js,{withinPortal:L,..._,children:[E.jsx(pt,{...ct("root"),"data-position":"top-center",ref:e,...j,children:E.jsx(Ji,{children:Y["top-center"]})}),E.jsx(pt,{...ct("root"),"data-position":"top-left",...j,children:E.jsx(Ji,{children:Y["top-left"]})}),E.jsx(pt,{...ct("root",{className:Vd.classNames.fullWidth}),"data-position":"top-right",...j,children:E.jsx(Ji,{children:Y["top-right"]})}),E.jsx(pt,{...ct("root",{className:Vd.classNames.fullWidth}),"data-position":"bottom-right",...j,children:E.jsx(Ji,{children:Y["bottom-right"]})}),E.jsx(pt,{...ct("root"),"data-position":"bottom-left",...j,children:E.jsx(Ji,{children:Y["bottom-left"]})}),E.jsx(pt,{...ct("root"),"data-position":"bottom-center",...j,children:E.jsx(Ji,{children:Y["bottom-center"]})})]})});Ci.classes=EO;Ci.displayName="@mantine/notifications/Notifications";Ci.show=as.show;Ci.hide=as.hide;Ci.update=as.update;Ci.clean=as.clean;Ci.cleanQueue=as.cleanQueue;Ci.updateState=as.updateState;var fJ={root:"m_8f2832ae",section:"m_7a0fe999"};function b2(t){let e=.5;return t>=0&&t<=20?e=10:t>=20&&t<=50?e=4:t>=50&&t<=80?e=2:t>=80&&t<=99?e=1:t>=99&&t<=100&&(e=0),t+e}const dJ=()=>p1({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),mJ=t=>h1(t);function Ur(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function pJ(t){Ur(e=>({progress:Math.max(e.progress-e.step,0)}),t)}function hJ(t,e){Ur(()=>({progress:qM(t,0,100),mounted:!0}),e)}function y1(t){Ur(e=>(window.clearInterval(e.interval),e.timeouts.forEach(n=>window.clearTimeout(n)),{timeouts:[]}),t)}function gJ(t){y1(t),Ur(e=>{const n=window.setTimeout(()=>{Ur(()=>({mounted:!1}),t)},50),r=window.setTimeout(()=>{Ur(()=>({progress:0}),t)},e.stepInterval+50);return{progress:100,timeouts:[n,r]}},t)}function yJ(t){Ur(e=>({progress:b2(e.progress),mounted:!0}),t),Ur(e=>(window.clearInterval(e.interval),{interval:window.setInterval(()=>{Ur(r=>({progress:b2(r.progress),mounted:!0}),t)},e.stepInterval),mounted:!0}),t)}function wO(t){Ur(e=>(window.clearInterval(e.interval),{interval:-1}),t)}function b1(t){y1(t),wO(t),Ur(()=>({progress:0,mounted:!1}),t)}function bJ(t){Ur(e=>{const n=Math.min(e.progress+e.step,100),r=n!==100&&n!==0;if(!r){const s=window.setTimeout(()=>b1(t),e.stepInterval+50);return{progress:n,mounted:r,timeouts:[...e.timeouts,s]}}return{progress:n,mounted:r}},t)}function vJ(){const t=dJ();return[t,{start:()=>yJ(t),stop:()=>wO(t),reset:()=>b1(t),set:n=>hJ(n,t),increment:()=>bJ(t),decrement:()=>pJ(t),complete:()=>gJ(t),cleanup:()=>y1(t)}]}const[SJ,g0]=vJ(),{start:mtt,stop:ptt,reset:htt,set:gtt,increment:ytt,decrement:btt,complete:vtt,cleanup:Stt}=g0;function TO({initialProgress:t=0,color:e,size:n=3,stepInterval:r=500,withinPortal:s=!0,portalProps:l,zIndex:c=wr("max"),store:f=SJ,...m}){f.initialize({mounted:!1,progress:t,interval:-1,step:1,stepInterval:r,timeouts:[]});const h=mJ(f);return C.useEffect(()=>()=>b1(f),[f]),E.jsx(Js,{...l,withinPortal:s,children:E.jsx(Vl,{radius:0,value:h.progress,size:n,color:e,classNames:fJ,"data-mounted":h.mounted||void 0,__vars:{"--nprogress-z-index":c?.toString()},...m})})}TO.displayName="@mantine/nprogress/NavigationProgress";const xJ=()=>{Sv(Qu);const t=bv(Vy);return[t.getTheme(),r=>{t.setTheme(r.index)}]};var EJ={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const un=(t,e,n,r)=>{const s=C.forwardRef(({color:l="currentColor",size:c=24,stroke:f=2,title:m,className:h,children:g,...b},x)=>C.createElement("svg",{ref:x,...EJ[t],width:c,height:c,className:["tabler-icon",`tabler-icon-${e}`,h].join(" "),strokeWidth:f,stroke:l,...b},[m&&C.createElement("title",{key:"svg-title"},m),...r.map(([S,T])=>C.createElement(S,T)),...Array.isArray(g)?g:[g]]));return s.displayName=`${n}`,s};const wJ=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],TJ=un("outline","alert-triangle","AlertTriangle",wJ);const CJ=[["path",{d:"M4 13h5",key:"svg-0"}],["path",{d:"M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3",key:"svg-1"}],["path",{d:"M20 8v8",key:"svg-2"}],["path",{d:"M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5",key:"svg-3"}]],AJ=un("outline","api","Api",CJ);const $J=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],MJ=un("outline","archive","Archive",$J);const RJ=[["path",{d:"M12 12v.01",key:"svg-0"}],["path",{d:"M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9",key:"svg-1"}],["path",{d:"M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242",key:"svg-2"}]],OJ=un("outline","atom","Atom",RJ);const NJ=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],CO=un("outline","check","Check",NJ);const _J=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],DJ=un("outline","chevron-down","ChevronDown",_J);const jJ=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],IJ=un("outline","chevron-right","ChevronRight",jJ);const LJ=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],zJ=un("outline","copy","Copy",LJ);const BJ=[["path",{d:"M10 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M13.45 11.55l2.05 -2.05",key:"svg-1"}],["path",{d:"M6.4 20a9 9 0 1 1 11.2 0l-11.2 0",key:"svg-2"}]],UJ=un("outline","dashboard","Dashboard",BJ);const kJ=[["path",{d:"M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]],PJ=un("outline","database","Database",kJ);const HJ=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],FJ=un("outline","info-circle","InfoCircle",HJ);const qJ=[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]],GJ=un("outline","logs","Logs",qJ);const YJ=[["path",{d:"M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1",key:"svg-0"}]],VJ=un("outline","message-circle","MessageCircle",YJ);const KJ=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],XJ=un("outline","search","Search",KJ);const QJ=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],ZJ=un("outline","stack-2","Stack2",QJ);const JJ=[["path",{d:"M14 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-0"}],["path",{d:"M14 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-1"}],["path",{d:"M6 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-2"}],["path",{d:"M22 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0",key:"svg-3"}],["path",{d:"M13.5 5.5l5 5",key:"svg-4"}],["path",{d:"M5.5 13.5l5 5",key:"svg-5"}],["path",{d:"M13.5 18.5l5 -5",key:"svg-6"}],["path",{d:"M10.5 5.5l-5 5",key:"svg-7"}]],WJ=un("outline","topology-ring","TopologyRing",JJ);const tW=[["path",{d:"M5 4c-2.5 5 -2.5 10 0 16m14 -16c2.5 5 2.5 10 0 16m-10 -11h1c1 0 1 1 2.016 3.527c.984 2.473 .984 3.473 1.984 3.473h1",key:"svg-0"}],["path",{d:"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5",key:"svg-1"}]],eW=un("outline","variable","Variable",tW);const nW=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],rW=un("outline","x","X",nW);class y0{raw=as;options={default:{radius:"md",withBorder:!0,withCloseButton:!0,autoClose:5e3,position:"top-center"}};show(e){as.show({...this.options.default,...e})}info(e){typeof e=="string"&&(e={message:e}),this.show({color:"blue",icon:E.jsx(FJ,{size:20}),title:"Info",message:"Information notification",...e})}success(e){typeof e=="string"&&(e={message:e}),this.show({color:"green",icon:E.jsx(CO,{size:16}),title:"Success",message:"Operation completed successfully",...e})}warning(e){typeof e=="string"&&(e={message:e}),this.show({color:"yellow",icon:E.jsx(TJ,{size:20}),title:"Warning",message:"Please review this warning",...e})}danger(e){typeof e=="string"&&(e={message:e}),this.show({color:"red",icon:E.jsx(rW,{size:20}),title:"Error",message:"An error occurred",...e})}}const oW=()=>bv(y0),iW=()=>p1({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),sW=t=>h1(t);function yl(t,e){const n=e.getState();e.setState({...n,...t(e.getState())})}function AO(t){yl(()=>({opened:!0,selected:-1}),t)}function $O(t){yl(()=>({opened:!1}),t)}function MO(t){yl(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),t)}function RO(t,e){e.updateState(n=>({...n,selected:t}))}function aW(t,e){e.updateState(n=>({...n,listId:t}))}function Wd(t,e=document){const n=e.querySelector(t);if(n)return n;const r=e instanceof ShadowRoot?e.host.children:e.children;for(let s=0;s<r.length;s+=1){const l=r[s];if(l.shadowRoot){const f=Wd(t,l.shadowRoot);if(f)return f}const c=Wd(t,l);if(c)return c}return null}function Cp(t,e){const n=e.getState(),r=n.listId?Wd(`#${n.listId}`):null,s=r?.querySelector("[data-selected]"),l=r?.querySelectorAll("[data-action]")??[],c=t===-1?l.length-1:t===l.length?0:t,f=qM(c,0,l.length-1);return s?.removeAttribute("data-selected"),l[f]?.scrollIntoView({block:"nearest"}),l[f]?.setAttribute("data-selected","true"),RO(f,e),f}function lW(t){return Cp(t.getState().selected+1,t)}function uW(t){return Cp(t.getState().selected-1,t)}function cW(t){const e=t.getState();Wd(`#${e.listId} [data-selected]`)?.click()}function fW(t,e){const n=e.getState();return n.registeredActions.add(t),()=>{n.registeredActions.delete(t)}}function dW(t,e){yl(()=>({query:t}),e),Promise.resolve().then(()=>{Cp(0,e),yl(n=>({empty:n.query.trim().length>0&&n.registeredActions.size===0||!1}),e)})}function mW({clearQuery:t},e){e.updateState(n=>({...n,selected:-1,query:t?"":n.query,empty:t?!1:n.empty}))}const Ro={open:AO,close:$O,toggle:MO,updateState:yl,setSelectedAction:RO,setListId:aW,selectAction:Cp,selectNextAction:lW,selectPreviousAction:uW,triggerSelectedAction:cW,registerAction:fW,setQuery:dW,clearSpotlightState:mW};function pW(){const t=iW();return[t,{open:()=>AO(t),close:()=>$O(t),toggle:()=>MO(t)}]}const[OO,Ap]=pW(),{open:xtt,close:Ett,toggle:wtt}=Ap;function NO(t){const e=t;return e.group!==void 0&&Array.isArray(e.actions)}function hW(t){return Array.isArray(t)?t.map(e=>e.trim()).join(",").toLowerCase().trim():typeof t=="string"?t.toLowerCase().trim():""}function gW(t){return t.reduce((e,n)=>"actions"in n?[...e,...n.actions.map(r=>({...r,group:n.group}))]:[...e,n],[])}function yW(t){const e={},n=[];return t.forEach(r=>{r.group?(e[r.group]||(e[r.group]={pushed:!1,data:{group:r.group,actions:[]}}),e[r.group].data.actions.push(r),e[r.group].pushed||(e[r.group].pushed=!0,n.push(e[r.group].data))):n.push(r)}),n}const bW=(t,e)=>{const n=t.trim().toLowerCase(),r=[[],[]];return gW(e).forEach(l=>{l.label?.toLowerCase().includes(n)?r[0].push(l):(l.description?.toLowerCase().includes(n)||hW(l.keywords).includes(n))&&r[1].push(l)}),yW(r.flat())};function _O(t,e){if(!Array.isArray(t))return[];let n=0;return t.reduce((r,s)=>{if(n>=e)return r;if(NO(s)){const l=_O(s.actions,e-n);r.push({group:s.group,actions:l}),n+=l.length}else r.push(s),n+=1;return r},[])}var _o={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};const[vW,Xl]=jl("Spotlight component was not found in tree"),SW={dimmedSections:!0,highlightQuery:!1},uc=It((t,e)=>{const n=bt("SpotlightAction",SW,t),{className:r,style:s,classNames:l,styles:c,id:f,description:m,label:h,leftSection:g,rightSection:b,children:x,dimmedSections:S,highlightQuery:T,highlightColor:w,closeSpotlightOnTrigger:$,onClick:_,onMouseDown:L,keywords:j,vars:H,...P}=n,G=Xl(),z={classNames:l,styles:c},k=T&&typeof h=="string"?E.jsx(a1,{component:"span",highlight:G.query,color:w,...G.getStyles("actionLabel",z),children:h}):E.jsx("span",{...G.getStyles("actionLabel",z),children:h});return E.jsx(Pl,{ref:e,"data-action":!0,...G.getStyles("action",{className:r,style:s,...z}),...P,onMouseDown:W=>{W.preventDefault(),L?.(W)},onClick:W=>{_?.(W),($??G.closeOnActionTrigger)&&Ro.close(G.store)},tabIndex:-1,children:x||E.jsxs(E.Fragment,{children:[g&&E.jsx(pt,{component:"span",mod:{position:"left",dimmed:S},...G.getStyles("actionSection",z),children:g}),E.jsxs("span",{...G.getStyles("actionBody",z),children:[k,E.jsx("span",{...G.getStyles("actionDescription",z),children:m})]}),b&&E.jsx(pt,{component:"span",mod:{position:"right",dimmed:S},...G.getStyles("actionSection",z),children:b})]})})});uc.classes=_o;uc.displayName="@mantine/spotlight/SpotlightAction";const $p=It((t,e)=>{const{className:n,style:r,styles:s,classNames:l,label:c,children:f,...m}=bt("SpotlightActionsGroup",null,t),h=Xl();return E.jsx(pt,{...h.getStyles("actionsGroup",{className:n,style:r,classNames:l,styles:s}),ref:e,...m,__vars:{"--spotlight-label":`'${c?.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`},children:f})});$p.classes=_o;$p.displayName="@mantine/core/SpotlightActionsGroup";const Mp=It((t,e)=>{const{className:n,style:r,id:s,children:l,vars:c,classNames:f,styles:m,...h}=bt("SpotlightActionsList",null,t),g=Xl(),b=`mantine-${C.useId().replace(/:/g,"")}`,x=s||b;return C.useEffect(()=>(Ro.setListId(x,g.store),()=>Ro.setListId("",g.store)),[]),E.jsx(kl.Autosize,{...g.getStyles("actionsList",{className:n,style:r,classNames:f,styles:m}),ref:e,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:x,...h,children:l})});Mp.classes=_o;Mp.displayName="@mantine/spotlight/SpotlightActionsList";const Rp=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightEmpty",null,t),f=Xl();return E.jsx(pt,{ref:e,...f.getStyles("empty",{classNames:s,styles:l,className:n,style:r}),...c})});Rp.classes=_o;Rp.displayName="@mantine/spotlight/SpotlightEmpty";const v1=It((t,e)=>{const{className:n,style:r,classNames:s,styles:l,...c}=bt("SpotlightFooter",null,t),f=Xl();return E.jsx(pt,{ref:e,...f.getStyles("footer",{className:n,classNames:s,style:r,styles:l}),...c})});v1.classes=_o;v1.displayName="@mantine/spotlight/SpotlightFooter";function xW(t,e){if(!t)return[];const n=()=>Ro.open(e);return Array.isArray(t)?t.map(r=>[r,n]):[[t,n]]}const EW={size:600,yOffset:80,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:OO,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400},Op=It((t,e)=>{const n=bt("SpotlightRoot",EW,t),{classNames:r,className:s,style:l,styles:c,unstyled:f,vars:m,store:h,children:g,query:b,onQueryChange:x,transitionProps:S,clearQueryOnClose:T,shortcut:w,tagsToIgnore:$,triggerOnContentEditable:_,disabled:L,onSpotlightOpen:j,onSpotlightClose:H,forceOpened:P,closeOnActionTrigger:G,maxHeight:z,scrollable:k,attributes:W,...et}=n,it=Xn(),{opened:ct,query:dt}=sW(h),Y=typeof b=="string"?b:dt,Z=B=>{x?.(B),Ro.setQuery(B,h)},R=oe({name:"Spotlight",classes:_o,props:n,className:s,style:l,classNames:r,styles:c,unstyled:f,attributes:W});return FY(xW(w,h),$,_),Ll(()=>{ct?j?.():H?.()},[ct]),L?null:E.jsx(vW,{value:{getStyles:R,query:Y,setQuery:Z,store:h,closeOnActionTrigger:G},children:E.jsx(Qr,{ref:e,...et,withCloseButton:!1,opened:ct||!!P,padding:0,onClose:()=>Ro.close(h),className:s,style:l,classNames:kc({theme:it,classNames:[_o,r],props:n,stylesCtx:void 0}),styles:ic({theme:it,styles:c,props:n,stylesCtx:void 0}),transitionProps:{...S,onExited:()=>{T&&Z(""),Ro.clearSpotlightState({clearQuery:T},h),S?.onExited?.()}},__vars:{"--spotlight-max-height":k?ut(z):void 0},__staticSelector:"Spotlight","data-scrollable":k||void 0,children:g})})});Op.classes=_o;Op.displayName="@mantine/spotlight/SpotlightRoot";const wW={size:"lg"},Np=It((t,e)=>{const{classNames:n,styles:r,onKeyDown:s,onChange:l,vars:c,value:f,...m}=bt("SpotlightSearch",wW,t),h=Xl(),g=h.getStyles("search"),[b,x]=C.useState(!1),S=T=>{s?.(T),!b&&(T.nativeEvent.code==="ArrowDown"&&(T.preventDefault(),Ro.selectNextAction(h.store)),T.nativeEvent.code==="ArrowUp"&&(T.preventDefault(),Ro.selectPreviousAction(h.store)),(T.nativeEvent.code==="Enter"||T.nativeEvent.code==="NumpadEnter")&&(T.preventDefault(),Ro.triggerSelectedAction(h.store)))};return E.jsx(hr,{ref:e,classNames:[{input:g.className},n],styles:[{input:g.style},r],...m,value:f??h.query,onChange:T=>{h.setQuery(T.currentTarget.value),l?.(T)},onKeyDown:S,onCompositionStart:()=>x(!0),onCompositionEnd:()=>x(!1)})});Np.classes=_o;Np.displayName="@mantine/spotlight/SpotlightSearch";const TW={size:600,yOffset:80,limit:1/0,zIndex:wr("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:OO,filter:bW,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K"},Cr=It((t,e)=>{const n=bt("Spotlight",TW,t),{searchProps:r,filter:s,query:l,onQueryChange:c,actions:f,nothingFound:m,highlightQuery:h,limit:g,scrollAreaProps:b,...x}=n,[S,T]=zY({value:l,defaultValue:"",finalValue:"",onChange:c}),w=_O(s(S,f),g).map($=>{if(NO($)){const _=$.actions.map(({id:L,...j})=>E.jsx(uc,{highlightQuery:h,...j},L));return E.jsx($p,{label:$.group,children:_},$.group)}return E.jsx(uc,{highlightQuery:h,...$},$.id)});return E.jsxs(Op,{...x,query:S,onQueryChange:T,ref:e,children:[E.jsx(Np,{...r}),E.jsxs(Mp,{...b,children:[w,w.length===0&&m&&E.jsx(Rp,{children:m})]})]})});Cr.classes=_o;Cr.displayName="@mantine/spotlight/Spotlight";Cr.Search=Np;Cr.ActionsList=Mp;Cr.Action=uc;Cr.Empty=Rp;Cr.ActionsGroup=$p;Cr.Footer=v1;Cr.Root=Op;Cr.open=Ap.open;Cr.close=Ap.close;Cr.toggle=Ap.toggle;const S1={colors:{background:"var(--alepha-background)",surface:"var(--alepha-surface)",elevated:"var(--alepha-elevated)",border:"var(--alepha-border)"},sizes:{icon:{xs:12,sm:16,md:20,lg:24,xl:32}}};function CW(t){return C.isValidElement(t)?!1:typeof t=="function"||typeof t=="object"&&t!==null&&"$$typeof"in t}const AW=t=>{if(!t)return null;if(C.isValidElement(t))return t;if(CW(t)){const e=t;return E.jsx(e,{size:S1.sizes.icon.md})}return t},$W=t=>{const e=t.shortcut??"mod+K",n=t.searchPlaceholder??"Search...",r=t.nothingFound??"Nothing found...",s=_G(),[l]=Sv("alepha.server.request.user"),c=C.useMemo(()=>s.concretePages.filter(f=>!(f.can&&!f.can())).map(f=>({id:f.name,label:f.label??f.name,description:f.description,onClick:()=>f.staticName?s.go(f.staticName,{params:f.params}):s.go(f.name),leftSection:AW(f.icon)})),[l]);return E.jsx(Cr,{actions:c,shortcut:e,limit:10,searchProps:{leftSection:E.jsx(XJ,{size:S1.sizes.icon.md}),placeholder:n},nothingFound:r})},MW=t=>{const e=oW(),[n]=xJ();yM({"react:transition:begin":()=>{g0.start()},"react:transition:end":()=>{g0.complete()},"react:action:error":({error:s})=>{s instanceof cG||s instanceof Km||e.danger({title:s.name||"Error",message:s.message??"An error occurred while processing your action."})}},[]);const r=t.mantine?.defaultColorScheme??n.defaultColorScheme;return E.jsxs(E.Fragment,{children:[E.jsx(IV,{defaultColorScheme:r,...t.colorSchemeScript}),E.jsxs(oR,{...t.mantine,defaultColorScheme:r,theme:{...n,...t.mantine?.theme},children:[E.jsx(Ci,{...t.notifications}),E.jsx(TO,{...t.navigationProgress}),E.jsxs(FZ,{...t.modals,children:[t.omnibar!==!1&&E.jsx($W,{...t.omnibar}),t.children??E.jsx(Ky,{})]})]})]})};class DO{root=Cn({path:"/",component:MW})}const RW=(t="sm")=>{const e={xs:{text:"xs",icon:12,gap:2},sm:{text:"sm",icon:14,gap:4},md:{text:"md",icon:16,gap:6},lg:{text:"lg",icon:18,gap:8},xl:{text:"xl",icon:20,gap:10}};return e[t]||e.sm},OW=t=>t.split(`
|
|
77
|
-
`).map(e=>e.trim()).filter(e=>e.length>0),NW=({error:t,showStack:e=!0,copyable:n=!0,size:r="sm"})=>{const[s,l]=C.useState(!1),c=RW(r),f=c.icon+2,m=t instanceof Error,h=m?t.name:"Error",g=m?t.message:String(t),b=m?t.stack:void 0,x=b?OW(b):[],S=()=>m?`${h}: ${g}${b?`
|
|
78
|
-
|
|
79
|
-
${b}`:""}`:String(t);return E.jsxs(pt,{pos:"relative",w:"100%",children:[n&&E.jsx(pt,{pos:"absolute",top:0,right:0,style:{zIndex:1},children:E.jsx(fO,{value:S(),children:({copied:T,copy:w})=>E.jsx(qc,{label:T?"Copied":"Copy Error",children:E.jsx(hl,{color:T?"teal":"gray",variant:"subtle",onClick:w,size:r,children:T?E.jsx(CO,{size:f}):E.jsx(zJ,{size:f})})})})}),E.jsxs(pt,{pt:n?30:0,children:[E.jsxs(pt,{style:{display:"flex",alignItems:"flex-start",gap:c.gap},children:[E.jsxs(oo,{component:"span",c:"red",ff:"monospace",fw:600,size:c.text,children:[h,":"]}),E.jsx(oo,{component:"span",ff:"monospace",size:c.text,style:{wordBreak:"break-word"},children:g})]}),e&&x.length>1&&E.jsxs(pt,{mt:"sm",children:[E.jsxs(pt,{style:{display:"flex",alignItems:"center",gap:c.gap,cursor:"pointer"},onClick:()=>l(!s),children:[E.jsx(hl,{size:"xs",variant:"transparent",c:"dimmed",children:s?E.jsx(DJ,{size:c.icon}):E.jsx(IJ,{size:c.icon})}),E.jsxs(oo,{c:"dimmed",size:c.text,fw:500,children:["Stack Trace (",x.length-1," frames)"]})]}),E.jsx(mR,{in:s,children:E.jsx(pt,{mt:"xs",pl:"md",style:{borderLeft:"1px solid var(--mantine-color-default-border)"},children:x.slice(1).map((T,w)=>E.jsx(oo,{ff:"monospace",size:"xs",c:"dimmed",style:{whiteSpace:"pre-wrap",wordBreak:"break-all"},children:T},w))})})]})]})]})},_W=({options:t,onClose:e})=>E.jsxs(E.Fragment,{children:[t?.message&&E.jsx(oo,{mb:"md",children:t.message}),E.jsx(ql,{justify:"flex-end",children:E.jsx(lo,{onClick:e,children:t?.okLabel||"OK"})})]}),DW=({options:t,onConfirm:e})=>E.jsxs(E.Fragment,{children:[t?.message&&E.jsx(oo,{mb:"md",children:t.message}),E.jsxs(ql,{justify:"flex-end",children:[E.jsx(lo,{variant:"subtle",onClick:()=>e(!1),children:t?.cancelLabel||"Cancel"}),E.jsx(lo,{color:t?.confirmColor||"blue",onClick:()=>e(!0),children:t?.confirmLabel||"Confirm"})]})]}),jW=({options:t,onSubmit:e})=>{const[n,r]=C.useState(t?.defaultValue||""),s=C.useRef(null);C.useEffect(()=>{s.current?.focus()},[]);const l=()=>{(!t?.required||n.trim())&&e(n)},c=f=>{f.key==="Enter"&&l()};return E.jsxs(E.Fragment,{children:[t?.message&&E.jsx(oo,{mb:"md",children:t.message}),E.jsx(d1,{ref:s,label:t?.label,placeholder:t?.placeholder,value:n,onChange:f=>r(f.currentTarget.value),onKeyDown:c,required:t?.required,mb:"md"}),E.jsxs(ql,{justify:"flex-end",children:[E.jsx(lo,{variant:"subtle",onClick:()=>e(null),children:t?.cancelLabel||"Cancel"}),E.jsx(lo,{onClick:l,disabled:t?.required&&!n.trim(),children:t?.submitLabel||"OK"})]})]})};class v2{options={default:{centered:!0,withCloseButton:!0,size:"md",overlayProps:{backgroundOpacity:.55,blur:3},transitionProps:{transition:"pop",duration:200}}};alert(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Alert",content:E.jsx(_W,{options:e,onClose:()=>{this.close(r),n()}})})})}confirm(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Confirm",closeOnClickOutside:!1,closeOnEscape:!1,content:E.jsx(DW,{options:e,onConfirm:s=>{this.close(r),n(s)}})})})}prompt(e){return new Promise(n=>{const r=this.open({...e,title:e?.title||"Input",closeOnClickOutside:!1,closeOnEscape:!1,content:E.jsx(jW,{options:e,onSubmit:s=>{this.close(r),n(s)}})})})}open(e){return Ty.open({...this.options.default,...e,children:e?.content||e?.message})}close(e){e?Ty.close(e):Ty.closeAll()}error(e,n){this.open({size:"lg",title:n?.title||"Error",...n,content:E.jsx(r1,{bdrs:"md",w:"100%",flex:1,p:"sm",bg:S1.colors.surface,children:E.jsx(NW,{size:"xs",error:e,showStack:n?.showStack??!0})})})}form(e){return Promise.resolve(null)}loading(e){}image(e,n){}}const Cy=(t,e,n)=>(Object.assign(t,{[e]:n??{}}),t),jO=Symbol.for("Alepha.Postgres.Default"),IW=Symbol.for("Alepha.Postgres.PrimaryKey"),Ttt=Symbol.for("Alepha.Postgres.CreatedAt"),Ctt=Symbol.for("Alepha.Postgres.UpdatedAt"),Att=Symbol.for("Alepha.Postgres.DeletedAt"),$tt=Symbol.for("Alepha.Postgres.Version"),Mtt=Symbol.for("Alepha.Postgres.Identity"),Rtt=Symbol.for("Alepha.Postgres.Enum"),Ott=Symbol.for("Alepha.Postgres.Ref"),LW=Symbol.for("Alepha.Postgres.Serial"),Mn=Symbol.for("drizzle:entityKind");function zW(t,e){if(!t||typeof t!="object")return!1;if(t instanceof e)return!0;if(!Object.prototype.hasOwnProperty.call(e,Mn))throw new Error(`Class "${e.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(t).constructor;if(n)for(;n;){if(Mn in n&&n[Mn]===e[Mn])return!0;n=Object.getPrototypeOf(n)}return!1}class BW{constructor(e,n){this.table=e,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[Mn]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class UW{static[Mn]="ColumnBuilder";config;constructor(e,n,r){this.config={name:e,keyAsName:e==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:r,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(e){return this.config.default=e,this.config.hasDefault=!0,this}$defaultFn(e){return this.config.defaultFn=e,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===""&&(this.config.name=e)}}const b0=Symbol.for("drizzle:Name");class kW{static[Mn]="PgForeignKeyBuilder";reference;_onUpdate="no action";_onDelete="no action";constructor(e,n){this.reference=()=>{const{name:r,columns:s,foreignColumns:l}=e();return{name:r,columns:s,foreignTable:l[0].table,foreignColumns:l}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(e){return this._onUpdate=e===void 0?"no action":e,this}onDelete(e){return this._onDelete=e===void 0?"no action":e,this}build(e){return new PW(e,this)}}class PW{constructor(e,n){this.table=e,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[Mn]="PgForeignKey";reference;onUpdate;onDelete;getName(){const{name:e,columns:n,foreignColumns:r}=this.reference(),s=n.map(f=>f.name),l=r.map(f=>f.name),c=[this.table[b0],...s,r[0].table[b0],...l];return e??`${c.join("_")}_fk`}}function HW(t,...e){return t(...e)}function FW(t,e){return`${t[b0]}_${e.join("_")}_unique`}function S2(t,e,n){for(let r=e;r<t.length;r++){const s=t[r];if(s==="\\"){r++;continue}if(s==='"')return[t.slice(e,r).replace(/\\/g,""),r+1];if(!n&&(s===","||s==="}"))return[t.slice(e,r).replace(/\\/g,""),r]}return[t.slice(e).replace(/\\/g,""),t.length]}function IO(t,e=0){const n=[];let r=e,s=!1;for(;r<t.length;){const l=t[r];if(l===","){(s||r===e)&&n.push(""),s=!0,r++;continue}if(s=!1,l==="\\"){r+=2;continue}if(l==='"'){const[m,h]=S2(t,r+1,!0);n.push(m),r=h;continue}if(l==="}")return[n,r+1];if(l==="{"){const[m,h]=IO(t,r+1);n.push(m),r=h;continue}const[c,f]=S2(t,r,!1);n.push(c),r=f}return[n,r]}function qW(t){const[e]=IO(t,1);return e}function LO(t){return`{${t.map(e=>Array.isArray(e)?LO(e):typeof e=="string"?`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${e}`).join(",")}}`}class zO extends UW{foreignKeyConfigs=[];static[Mn]="PgColumnBuilder";array(e){return new YW(this.config.name,this,e)}references(e,n={}){return this.foreignKeyConfigs.push({ref:e,actions:n}),this}unique(e,n){return this.config.isUnique=!0,this.config.uniqueName=e,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(e){return this.config.generated={as:e,type:"always",mode:"stored"},this}buildForeignKeys(e,n){return this.foreignKeyConfigs.map(({ref:r,actions:s})=>HW((l,c)=>{const f=new kW(()=>{const m=l();return{columns:[e],foreignColumns:[m]}});return c.onUpdate&&f.onUpdate(c.onUpdate),c.onDelete&&f.onDelete(c.onDelete),f.build(n)},r,s))}buildExtraConfigColumn(e){return new GW(e,this.config)}}class x1 extends BW{constructor(e,n){n.uniqueName||(n.uniqueName=FW(e,[n.name])),super(e,n),this.table=e}static[Mn]="PgColumn"}class GW extends x1{static[Mn]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(e){return this.indexConfig.opClass=e,this}}class YW extends zO{static[Mn]="PgArrayBuilder";constructor(e,n,r){super(e,"array","PgArray"),this.config.baseBuilder=n,this.config.size=r}build(e){const n=this.config.baseBuilder.build(e);return new E1(e,this.config,n)}}class E1 extends x1{constructor(e,n,r,s){super(e,n),this.baseColumn=r,this.range=s,this.size=n.size}size;static[Mn]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(e){return typeof e=="string"&&(e=qW(e)),e.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(e,n=!1){const r=e.map(s=>s===null?null:zW(this.baseColumn,E1)?this.baseColumn.mapToDriverValue(s,!0):this.baseColumn.mapToDriverValue(s));return n?r:LO(r)}}function VW(t,e){return{name:typeof t=="string"&&t.length>0?t:"",config:typeof t=="object"?t:e}}typeof TextDecoder>"u"||new TextDecoder;class KW extends zO{static[Mn]="PgCustomColumnBuilder";constructor(e,n,r){super(e,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=r}build(e){return new XW(e,this.config)}}class XW extends x1{static[Mn]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(e,n){super(e,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return typeof this.mapFrom=="function"?this.mapFrom(e):e}mapToDriverValue(e){return typeof this.mapTo=="function"?this.mapTo(e):e}}function QW(t){return(e,n)=>{const{name:r,config:s}=VW(e,n);return new KW(r,s,t)}}const Ay=(t,e)=>QW({dataType:()=>"jsonb",toDriver:n=>JSON.stringify(n),fromDriver:n=>n&&typeof n=="string"?JSON.parse(n):n})(t,{document:e}).$type(),ZW=t=>{const e={};for(const n in t.properties){const r=t.properties[n];jO in r?e[n]=N.optional(r):e[n]=r}return N.object(e,"options"in Ay&&typeof Ay.options=="object"?{...Ay.options}:{})},JW=t=>{const e={};for(const n in t.properties){const r=t.properties[n];N.schema.isOptional(r)?e[n]=N.optional(N.union([r,N.raw.Null()])):e[n]=r}return N.object(e,"options"in t&&typeof t.options=="object"?{...t.options}:{})},WW=t=>new _p(t);class _p{options;constructor(e){this.options=e}alias(e){const n=new _p(this.options);return new Proxy(n,{get(r,s,l){return s==="$alias"?e:Reflect.get(r,s,l)}})}get cols(){const e={};for(const n of Object.keys(this.schema.properties))e[n]={name:n,entity:this};return e}get name(){return this.options.name}get schema(){return this.options.schema}get insertSchema(){return ZW(this.options.schema)}get updateSchema(){return JW(this.options.schema)}}WW[Rn]=_p;Cy(Cy(Cy(N.integer(),IW),LW),jO);gr({name:"alepha.postgres",primitives:[],services:[uM]});gr({name:"alepha.ui",services:[v2,y0,Vy,DO],register:t=>{t.with(hG),t.with(mG),t.with(fG),t.with(Vy),t.with(v2),t.with(y0)}});const ttt="modulepreload",ett=function(t){return"/devtools/"+t},x2={},eo=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let m=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=m(n.map(h=>{if(h=ett(h),h in x2)return;x2[h]=!0;const g=h.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":ttt,g||(x.as="script"),x.crossOrigin="",x.href=h,f&&x.setAttribute("nonce",f),document.head.appendChild(x),g)return new Promise((S,T)=>{x.addEventListener("load",S),x.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&l(f.reason);return e().catch(l)})};class ntt extends DO{layout=Cn({parent:this.root,lazy:()=>eo(()=>import("./chunk.DdgmE5g8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),[Symbol.for("alepha.page.preload")]:"bfc0f5d4"});dashboard=Cn({path:"/",label:"Dashboard",icon:E.jsx(UJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.Dbm9E6HI.js"),__vite__mapDeps([10,11])),[Symbol.for("alepha.page.preload")]:"6f78c010"});actions=Cn({path:"/actions",label:"Actions",icon:E.jsx(AJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.rvqQkpV6.js"),__vite__mapDeps([12,13,14,15,16,9,17,18,3,7,19,8])),[Symbol.for("alepha.page.preload")]:"832bc884"});queues=Cn({path:"/queues",label:"Queues",icon:E.jsx(ZJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.B4porofG.js"),__vite__mapDeps([20,2])),[Symbol.for("alepha.page.preload")]:"f057fce9"});topics=Cn({path:"/topics",label:"Topics",icon:E.jsx(VJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.lvb4PIb4.js"),__vite__mapDeps([21,22,3,6,13,14,23,18,17,24,16,9])),[Symbol.for("alepha.page.preload")]:"9b55d83f"});caches=Cn({path:"/caches",label:"Caches",icon:E.jsx(MJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.Q6_b9IUt.js"),__vite__mapDeps([25,13,14,23,18,3,26,24,27])),[Symbol.for("alepha.page.preload")]:"6d769362"});env=Cn({path:"/env",label:"Environment",icon:E.jsx(eW,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.YqHRwxdc.js"),__vite__mapDeps([28,13,14,15,26,27])),[Symbol.for("alepha.page.preload")]:"9fe5fa6f"});atoms=Cn({path:"/atoms",label:"Atoms",icon:E.jsx(OJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.CUw48lF5.js"),__vite__mapDeps([29,22,3,6,13,14,18,30,5,31,16,9])),[Symbol.for("alepha.page.preload")]:"f3532adc"});db=Cn({path:"/db",label:"DB Studio",icon:E.jsx(PJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.CdkqxSCz.js"),__vite__mapDeps([32,13,14,18,3,26])),[Symbol.for("alepha.page.preload")]:"ebed1358"});graph=Cn({path:"/graph",label:"Graph",icon:E.jsx(WJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.BWdBHr2F.js"),__vite__mapDeps([33,13,8,9,34,31,4,5,6,14,11,19,35])),[Symbol.for("alepha.page.preload")]:"4fded5f0"});logs=Cn({path:"/logs",label:"Logs",icon:E.jsx(GJ,{}),static:!0,parent:this.layout,lazy:()=>eo(()=>import("./chunk.CUs8lFwI.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,27,24,14,34,31,30,8,9,16,26])),[Symbol.for("alepha.page.preload")]:"a84b8869"})}const w1=Re.create();w1.with(ntt);w1.set(Yy,[AM]);vq(w1);export{zY as $,XJ as A,pt as B,_G as C,AW as D,yM as E,r1 as F,DJ as G,IJ as H,sR as I,S1 as J,UJ as K,AJ as L,ZM as M,Ky as N,ZJ as O,VJ as P,MJ as Q,Vd as R,PJ as S,oo as T,Pl as U,eW as V,OJ as W,WJ as X,GJ as Y,FJ as Z,mR as _,Rv as a,CW as a$,Tr as a0,utt as a1,pp as a2,bv as a3,dM as a4,ql as a5,lo as a6,Hl as a7,Qv as a8,fO as a9,iV as aA,XQ as aB,hr as aC,t0 as aD,Wm as aE,lR as aF,cp as aG,Dv as aH,ltt as aI,lr as aJ,yY as aK,Ws as aL,Km as aM,Qq as aN,Qr as aO,kt as aP,Cy as aQ,jO as aR,IW as aS,Mtt as aT,$tt as aU,Ttt as aV,Ctt as aW,Att as aX,Rtt as aY,Ott as aZ,bq as a_,hl as aa,CO as ab,zJ as ac,kl as ad,qc as ae,d1 as af,rW as ag,xi as ah,v2 as ai,Lv as aj,DV as ak,eR as al,gv as am,gs as an,$n as ao,TJ as ap,Hc as aq,N as ar,po as as,Rt as at,Re as au,Xm as av,qM as aw,iR as ax,Cv as ay,Ll as az,bt as b,tp as b0,Lo as b1,WW as b2,ni as b3,stt as b4,EM as b5,EG as b6,zl as b7,bY as b8,Mv as b9,mO as ba,m0 as bb,XM as bc,CY as bd,Js as be,Jv as bf,d0 as bg,JM as bh,RR as bi,gX as bj,RX as bk,dtt as bl,ZT as bm,CR as bn,vy as bo,OX as bp,ftt as bq,ctt as br,fQ as bs,Zv as bt,FM as bu,Zd as bv,ns as bw,jl as c,Vn as d,ut as e,It as f,Av as g,RT as h,Xn as i,E as j,Ao as k,ys as l,LY as m,Il as n,oe as o,ho as p,$v as q,C as r,wr as s,att as t,TY as u,ln as v,Qs as w,un as x,Sv as y,Ap as z};
|