@arcteninc/core 0.0.76 → 0.0.78
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/dist/components/ArctenAgent.d.ts.map +1 -1
- package/dist/components/citation-button.d.ts +13 -0
- package/dist/components/citation-button.d.ts.map +1 -0
- package/dist/components/citation-text-renderer.d.ts +21 -0
- package/dist/components/citation-text-renderer.d.ts.map +1 -0
- package/dist/index.cjs +14 -235
- package/dist/index.mjs +4413 -31656
- package/package.json +1 -1
- package/dist/components/ai-elements/citation-button.d.ts +0 -11
- package/dist/components/ai-elements/citation-button.d.ts.map +0 -1
- package/dist/components/ai-elements/citation-text.d.ts +0 -8
- package/dist/components/ai-elements/citation-text.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";var fz=Object.create;var zE=Object.defineProperty;var dz=Object.getOwnPropertyDescriptor;var hz=Object.getOwnPropertyNames;var mz=Object.getPrototypeOf,pz=Object.prototype.hasOwnProperty;var yz=(o,r,h,m)=>{if(r&&typeof r=="object"||typeof r=="function")for(let v of hz(r))!pz.call(o,v)&&v!==h&&zE(o,v,{get:()=>r[v],enumerable:!(m=dz(r,v))||m.enumerable});return o};var gz=(o,r,h)=>(h=o!=null?fz(mz(o)):{},yz(r||!o||!o.__esModule?zE(h,"default",{value:o,enumerable:!0}):h,o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),G=require("react"),Ta=require("lucide-react"),Wx=require("@ai-sdk/react"),rS=require("ai"),Ix=require("@radix-ui/react-slot"),Px=require("class-variance-authority"),vz=require("clsx"),bz=require("tailwind-merge"),Sz=require("@radix-ui/react-tooltip"),CE=require("@radix-ui/react-use-controllable-state"),Tz=require("@radix-ui/react-collapsible"),tD=require("react-dom"),Az=require("./server.cjs");function jT(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const h in o)if(h!=="default"){const m=Object.getOwnPropertyDescriptor(o,h);Object.defineProperty(r,h,m.get?m:{enumerable:!0,get:()=>o[h]})}}return r.default=o,Object.freeze(r)}const xo=jT(G),pp=jT(Sz),NT=jT(Tz);function da(...o){return bz.twMerge(vz.clsx(o))}const Jd=Px.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive active:scale-95",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),fS=xo.forwardRef(({className:o,variant:r,size:h,asChild:m=!1,...v},A)=>{const S=m?Ix.Slot:"button";return B.jsx(S,{ref:A,"data-slot":"button",className:da(Jd({variant:r,size:h,className:o})),...v})});fS.displayName="Button";const Ez=Px.cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Z1({className:o,variant:r,asChild:h=!1,...m}){const v=h?Ix.Slot:"span";return B.jsx(v,{"data-slot":"badge",className:da(Ez({variant:r}),o),...m})}const xz=({textAreaRef:o,triggerAutoSize:r,maxHeight:h=Number.MAX_SAFE_INTEGER,minHeight:m=0})=>{const[v,A]=xo.useState(!0);xo.useEffect(()=>{const E=o.current;if(E){v&&(E.style.minHeight=`${m+6}px`,h>m&&(E.style.maxHeight=`${h}px`),A(!1)),E.style.height=`${m+6}px`;const M=E.scrollHeight;M>h?E.style.height=`${h}px`:E.style.height=`${M+6}px`}},[o.current,r])},eD=xo.forwardRef(({maxHeight:o=Number.MAX_SAFE_INTEGER,minHeight:r=52,className:h,onChange:m,value:v,...A},S)=>{const E=xo.useRef(null),[M,z]=xo.useState("");return xz({textAreaRef:E,triggerAutoSize:M,maxHeight:o,minHeight:r}),G.useImperativeHandle(S,()=>({textArea:E.current,focus:()=>E?.current?.focus(),maxHeight:o,minHeight:r})),xo.useEffect(()=>{z(v)},[A?.defaultValue,v]),B.jsx("textarea",{...A,value:v,ref:E,className:da("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",h),onChange:C=>{z(C.target.value),m?.(C)}})});eD.displayName="AutosizeTextarea";function Dz({delayDuration:o=0,...r}){return B.jsx(pp.Provider,{"data-slot":"tooltip-provider",delayDuration:o,...r})}function Gd({...o}){return B.jsx(Dz,{children:B.jsx(pp.Root,{"data-slot":"tooltip",...o})})}function Xd({...o}){return B.jsx(pp.Trigger,{"data-slot":"tooltip-trigger",...o})}function Qd({className:o,sideOffset:r=0,children:h,...m}){return B.jsx(pp.Portal,{children:B.jsxs(pp.Content,{"data-slot":"tooltip-content",sideOffset:r,className:da("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),...m,children:[h,B.jsx(pp.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function RE({className:o,...r}){return B.jsx("kbd",{"data-slot":"kbd",className:da("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",o),...r})}const _T=G.createContext({});function BT(o){const r=G.useRef(null);return r.current===null&&(r.current=o()),r.current}const VT=typeof window<"u",nD=VT?G.useLayoutEffect:G.useEffect,gS=G.createContext(null);function HT(o,r){o.indexOf(r)===-1&&o.push(r)}function LT(o,r){const h=o.indexOf(r);h>-1&&o.splice(h,1)}const Ec=(o,r,h)=>h>r?r:h<o?o:h;function rT(o,r){return r?`${o}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${r}`:o}let bp=()=>{},xc=()=>{};process.env.NODE_ENV!=="production"&&(bp=(o,r,h)=>{!o&&typeof console<"u"&&console.warn(rT(r,h))},xc=(o,r,h)=>{if(!o)throw new Error(rT(r,h))});const Dc={},aD=o=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(o);function lD(o){return typeof o=="object"&&o!==null}const iD=o=>/^0[^.\s]+$/u.test(o);function qT(o){let r;return()=>(r===void 0&&(r=o()),r)}const Xu=o=>o,Mz=(o,r)=>h=>r(o(h)),C0=(...o)=>o.reduce(Mz),A0=(o,r,h)=>{const m=r-o;return m===0?1:(h-o)/m};class YT{constructor(){this.subscriptions=[]}add(r){return HT(this.subscriptions,r),()=>LT(this.subscriptions,r)}notify(r,h,m){const v=this.subscriptions.length;if(v)if(v===1)this.subscriptions[0](r,h,m);else for(let A=0;A<v;A++){const S=this.subscriptions[A];S&&S(r,h,m)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Do=o=>o*1e3,Gu=o=>o/1e3;function uD(o,r){return r?o*(1e3/r):0}const OE=new Set;function GT(o,r,h){o||OE.has(r)||(console.warn(rT(r,h)),OE.add(r))}const oD=(o,r,h)=>(((1-3*h+3*r)*o+(3*h-6*r))*o+3*r)*o,zz=1e-7,Cz=12;function Rz(o,r,h,m,v){let A,S,E=0;do S=r+(h-r)/2,A=oD(S,m,v)-o,A>0?h=S:r=S;while(Math.abs(A)>zz&&++E<Cz);return S}function R0(o,r,h,m){if(o===r&&h===m)return Xu;const v=A=>Rz(A,0,1,o,h);return A=>A===0||A===1?A:oD(v(A),r,m)}const sD=o=>r=>r<=.5?o(2*r)/2:(2-o(2*(1-r)))/2,cD=o=>r=>1-o(1-r),rD=R0(.33,1.53,.69,.99),XT=cD(rD),fD=sD(XT),dD=o=>(o*=2)<1?.5*XT(o):.5*(2-Math.pow(2,-10*(o-1))),QT=o=>1-Math.sin(Math.acos(o)),hD=cD(QT),mD=sD(QT),Oz=R0(.42,0,1,1),Uz=R0(0,0,.58,1),pD=R0(.42,0,.58,1),wz=o=>Array.isArray(o)&&typeof o[0]!="number",yD=o=>Array.isArray(o)&&typeof o[0]=="number",UE={linear:Xu,easeIn:Oz,easeInOut:pD,easeOut:Uz,circIn:QT,circInOut:mD,circOut:hD,backIn:XT,backInOut:fD,backOut:rD,anticipate:dD},jz=o=>typeof o=="string",wE=o=>{if(yD(o)){xc(o.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[r,h,m,v]=o;return R0(r,h,m,v)}else if(jz(o))return xc(UE[o]!==void 0,`Invalid easing type '${o}'`,"invalid-easing-type"),UE[o];return o},Ib=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nz(o,r){let h=new Set,m=new Set,v=!1,A=!1;const S=new WeakSet;let E={delta:0,timestamp:0,isProcessing:!1};function M(C){S.has(C)&&(z.schedule(C),o()),C(E)}const z={schedule:(C,R=!1,N=!1)=>{const lt=N&&v?h:m;return R&&S.add(C),lt.has(C)||lt.add(C),C},cancel:C=>{m.delete(C),S.delete(C)},process:C=>{if(E=C,v){A=!0;return}v=!0,[h,m]=[m,h],h.forEach(M),h.clear(),v=!1,A&&(A=!1,z.process(C))}};return z}const _z=40;function gD(o,r){let h=!1,m=!0;const v={delta:0,timestamp:0,isProcessing:!1},A=()=>h=!0,S=Ib.reduce((it,St)=>(it[St]=Nz(A),it),{}),{setup:E,read:M,resolveKeyframes:z,preUpdate:C,update:R,preRender:N,render:k,postRender:lt}=S,st=()=>{const it=Dc.useManualTiming?v.timestamp:performance.now();h=!1,Dc.useManualTiming||(v.delta=m?1e3/60:Math.max(Math.min(it-v.timestamp,_z),1)),v.timestamp=it,v.isProcessing=!0,E.process(v),M.process(v),z.process(v),C.process(v),R.process(v),N.process(v),k.process(v),lt.process(v),v.isProcessing=!1,h&&r&&(m=!1,o(st))},ft=()=>{h=!0,m=!0,v.isProcessing||o(st)};return{schedule:Ib.reduce((it,St)=>{const Et=S[St];return it[St]=(gt,Ct=!1,dt=!1)=>(h||ft(),Et.schedule(gt,Ct,dt)),it},{}),cancel:it=>{for(let St=0;St<Ib.length;St++)S[Ib[St]].cancel(it)},state:v,steps:S}}const{schedule:An,cancel:nf,state:Pa,steps:J1}=gD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xu,!0);let iS;function Bz(){iS=void 0}const ri={now:()=>(iS===void 0&&ri.set(Pa.isProcessing||Dc.useManualTiming?Pa.timestamp:performance.now()),iS),set:o=>{iS=o,queueMicrotask(Bz)}},vD=o=>r=>typeof r=="string"&&r.startsWith(o),ZT=vD("--"),Vz=vD("var(--"),JT=o=>Vz(o)?Hz.test(o.split("/*")[0].trim()):!1,Hz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sp={test:o=>typeof o=="number",parse:parseFloat,transform:o=>o},E0={...Sp,transform:o=>Ec(0,1,o)},Pb={...Sp,default:1},y0=o=>Math.round(o*1e5)/1e5,KT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lz(o){return o==null}const qz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$T=(o,r)=>h=>!!(typeof h=="string"&&qz.test(h)&&h.startsWith(o)||r&&!Lz(h)&&Object.prototype.hasOwnProperty.call(h,r)),bD=(o,r,h)=>m=>{if(typeof m!="string")return m;const[v,A,S,E]=m.match(KT);return{[o]:parseFloat(v),[r]:parseFloat(A),[h]:parseFloat(S),alpha:E!==void 0?parseFloat(E):1}},Yz=o=>Ec(0,255,o),K1={...Sp,transform:o=>Math.round(Yz(o))},$d={test:$T("rgb","red"),parse:bD("red","green","blue"),transform:({red:o,green:r,blue:h,alpha:m=1})=>"rgba("+K1.transform(o)+", "+K1.transform(r)+", "+K1.transform(h)+", "+y0(E0.transform(m))+")"};function Gz(o){let r="",h="",m="",v="";return o.length>5?(r=o.substring(1,3),h=o.substring(3,5),m=o.substring(5,7),v=o.substring(7,9)):(r=o.substring(1,2),h=o.substring(2,3),m=o.substring(3,4),v=o.substring(4,5),r+=r,h+=h,m+=m,v+=v),{red:parseInt(r,16),green:parseInt(h,16),blue:parseInt(m,16),alpha:v?parseInt(v,16)/255:1}}const fT={test:$T("#"),parse:Gz,transform:$d.transform},O0=o=>({test:r=>typeof r=="string"&&r.endsWith(o)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${o}`}),ef=O0("deg"),ys=O0("%"),Ft=O0("px"),Xz=O0("vh"),Qz=O0("vw"),jE={...ys,parse:o=>ys.parse(o)/100,transform:o=>ys.transform(o*100)},cp={test:$T("hsl","hue"),parse:bD("hue","saturation","lightness"),transform:({hue:o,saturation:r,lightness:h,alpha:m=1})=>"hsla("+Math.round(o)+", "+ys.transform(y0(r))+", "+ys.transform(y0(h))+", "+y0(E0.transform(m))+")"},fa={test:o=>$d.test(o)||fT.test(o)||cp.test(o),parse:o=>$d.test(o)?$d.parse(o):cp.test(o)?cp.parse(o):fT.parse(o),transform:o=>typeof o=="string"?o:o.hasOwnProperty("red")?$d.transform(o):cp.transform(o),getAnimatableNone:o=>{const r=fa.parse(o);return r.alpha=0,fa.transform(r)}},Zz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jz(o){return isNaN(o)&&typeof o=="string"&&(o.match(KT)?.length||0)+(o.match(Zz)?.length||0)>0}const SD="number",TD="color",Kz="var",$z="var(",NE="${}",kz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function x0(o){const r=o.toString(),h=[],m={color:[],number:[],var:[]},v=[];let A=0;const E=r.replace(kz,M=>(fa.test(M)?(m.color.push(A),v.push(TD),h.push(fa.parse(M))):M.startsWith($z)?(m.var.push(A),v.push(Kz),h.push(M)):(m.number.push(A),v.push(SD),h.push(parseFloat(M))),++A,NE)).split(NE);return{values:h,split:E,indexes:m,types:v}}function AD(o){return x0(o).values}function ED(o){const{split:r,types:h}=x0(o),m=r.length;return v=>{let A="";for(let S=0;S<m;S++)if(A+=r[S],v[S]!==void 0){const E=h[S];E===SD?A+=y0(v[S]):E===TD?A+=fa.transform(v[S]):A+=v[S]}return A}}const Fz=o=>typeof o=="number"?0:fa.test(o)?fa.getAnimatableNone(o):o;function Wz(o){const r=AD(o);return ED(o)(r.map(Fz))}const af={test:Jz,parse:AD,createTransformer:ED,getAnimatableNone:Wz};function $1(o,r,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?o+(r-o)*6*h:h<1/2?r:h<2/3?o+(r-o)*(2/3-h)*6:o}function Iz({hue:o,saturation:r,lightness:h,alpha:m}){o/=360,r/=100,h/=100;let v=0,A=0,S=0;if(!r)v=A=S=h;else{const E=h<.5?h*(1+r):h+r-h*r,M=2*h-E;v=$1(M,E,o+1/3),A=$1(M,E,o),S=$1(M,E,o-1/3)}return{red:Math.round(v*255),green:Math.round(A*255),blue:Math.round(S*255),alpha:m}}function dS(o,r){return h=>h>0?r:o}const Un=(o,r,h)=>o+(r-o)*h,k1=(o,r,h)=>{const m=o*o,v=h*(r*r-m)+m;return v<0?0:Math.sqrt(v)},Pz=[fT,$d,cp],tC=o=>Pz.find(r=>r.test(o));function _E(o){const r=tC(o);if(bp(!!r,`'${o}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!r)return!1;let h=r.parse(o);return r===cp&&(h=Iz(h)),h}const BE=(o,r)=>{const h=_E(o),m=_E(r);if(!h||!m)return dS(o,r);const v={...h};return A=>(v.red=k1(h.red,m.red,A),v.green=k1(h.green,m.green,A),v.blue=k1(h.blue,m.blue,A),v.alpha=Un(h.alpha,m.alpha,A),$d.transform(v))},dT=new Set(["none","hidden"]);function eC(o,r){return dT.has(o)?h=>h<=0?o:r:h=>h>=1?r:o}function nC(o,r){return h=>Un(o,r,h)}function kT(o){return typeof o=="number"?nC:typeof o=="string"?JT(o)?dS:fa.test(o)?BE:iC:Array.isArray(o)?xD:typeof o=="object"?fa.test(o)?BE:aC:dS}function xD(o,r){const h=[...o],m=h.length,v=o.map((A,S)=>kT(A)(A,r[S]));return A=>{for(let S=0;S<m;S++)h[S]=v[S](A);return h}}function aC(o,r){const h={...o,...r},m={};for(const v in h)o[v]!==void 0&&r[v]!==void 0&&(m[v]=kT(o[v])(o[v],r[v]));return v=>{for(const A in m)h[A]=m[A](v);return h}}function lC(o,r){const h=[],m={color:0,var:0,number:0};for(let v=0;v<r.values.length;v++){const A=r.types[v],S=o.indexes[A][m[A]],E=o.values[S]??0;h[v]=E,m[A]++}return h}const iC=(o,r)=>{const h=af.createTransformer(r),m=x0(o),v=x0(r);return m.indexes.var.length===v.indexes.var.length&&m.indexes.color.length===v.indexes.color.length&&m.indexes.number.length>=v.indexes.number.length?dT.has(o)&&!v.values.length||dT.has(r)&&!m.values.length?eC(o,r):C0(xD(lC(m,v),v.values),h):(bp(!0,`Complex values '${o}' and '${r}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),dS(o,r))};function DD(o,r,h){return typeof o=="number"&&typeof r=="number"&&typeof h=="number"?Un(o,r,h):kT(o)(o,r)}const uC=o=>{const r=({timestamp:h})=>o(h);return{start:(h=!0)=>An.update(r,h),stop:()=>nf(r),now:()=>Pa.isProcessing?Pa.timestamp:ri.now()}},MD=(o,r,h=10)=>{let m="";const v=Math.max(Math.round(r/h),2);for(let A=0;A<v;A++)m+=Math.round(o(A/(v-1))*1e4)/1e4+", ";return`linear(${m.substring(0,m.length-2)})`},hS=2e4;function FT(o){let r=0;const h=50;let m=o.next(r);for(;!m.done&&r<hS;)r+=h,m=o.next(r);return r>=hS?1/0:r}function oC(o,r=100,h){const m=h({...o,keyframes:[0,r]}),v=Math.min(FT(m),hS);return{type:"keyframes",ease:A=>m.next(v*A).value/r,duration:Gu(v)}}const sC=5;function zD(o,r,h){const m=Math.max(r-sC,0);return uD(h-o(m),r-m)}const On={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},F1=.001;function cC({duration:o=On.duration,bounce:r=On.bounce,velocity:h=On.velocity,mass:m=On.mass}){let v,A;bp(o<=Do(On.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let S=1-r;S=Ec(On.minDamping,On.maxDamping,S),o=Ec(On.minDuration,On.maxDuration,Gu(o)),S<1?(v=z=>{const C=z*S,R=C*o,N=C-h,k=hT(z,S),lt=Math.exp(-R);return F1-N/k*lt},A=z=>{const R=z*S*o,N=R*h+h,k=Math.pow(S,2)*Math.pow(z,2)*o,lt=Math.exp(-R),st=hT(Math.pow(z,2),S);return(-v(z)+F1>0?-1:1)*((N-k)*lt)/st}):(v=z=>{const C=Math.exp(-z*o),R=(z-h)*o+1;return-F1+C*R},A=z=>{const C=Math.exp(-z*o),R=(h-z)*(o*o);return C*R});const E=5/o,M=fC(v,A,E);if(o=Do(o),isNaN(M))return{stiffness:On.stiffness,damping:On.damping,duration:o};{const z=Math.pow(M,2)*m;return{stiffness:z,damping:S*2*Math.sqrt(m*z),duration:o}}}const rC=12;function fC(o,r,h){let m=h;for(let v=1;v<rC;v++)m=m-o(m)/r(m);return m}function hT(o,r){return o*Math.sqrt(1-r*r)}const dC=["duration","bounce"],hC=["stiffness","damping","mass"];function VE(o,r){return r.some(h=>o[h]!==void 0)}function mC(o){let r={velocity:On.velocity,stiffness:On.stiffness,damping:On.damping,mass:On.mass,isResolvedFromDuration:!1,...o};if(!VE(o,hC)&&VE(o,dC))if(o.visualDuration){const h=o.visualDuration,m=2*Math.PI/(h*1.2),v=m*m,A=2*Ec(.05,1,1-(o.bounce||0))*Math.sqrt(v);r={...r,mass:On.mass,stiffness:v,damping:A}}else{const h=cC(o);r={...r,...h,mass:On.mass},r.isResolvedFromDuration=!0}return r}function mS(o=On.visualDuration,r=On.bounce){const h=typeof o!="object"?{visualDuration:o,keyframes:[0,1],bounce:r}:o;let{restSpeed:m,restDelta:v}=h;const A=h.keyframes[0],S=h.keyframes[h.keyframes.length-1],E={done:!1,value:A},{stiffness:M,damping:z,mass:C,duration:R,velocity:N,isResolvedFromDuration:k}=mC({...h,velocity:-Gu(h.velocity||0)}),lt=N||0,st=z/(2*Math.sqrt(M*C)),ft=S-A,P=Gu(Math.sqrt(M/C)),ot=Math.abs(ft)<5;m||(m=ot?On.restSpeed.granular:On.restSpeed.default),v||(v=ot?On.restDelta.granular:On.restDelta.default);let it;if(st<1){const Et=hT(P,st);it=gt=>{const Ct=Math.exp(-st*P*gt);return S-Ct*((lt+st*P*ft)/Et*Math.sin(Et*gt)+ft*Math.cos(Et*gt))}}else if(st===1)it=Et=>S-Math.exp(-P*Et)*(ft+(lt+P*ft)*Et);else{const Et=P*Math.sqrt(st*st-1);it=gt=>{const Ct=Math.exp(-st*P*gt),dt=Math.min(Et*gt,300);return S-Ct*((lt+st*P*ft)*Math.sinh(dt)+Et*ft*Math.cosh(dt))/Et}}const St={calculatedDuration:k&&R||null,next:Et=>{const gt=it(Et);if(k)E.done=Et>=R;else{let Ct=Et===0?lt:0;st<1&&(Ct=Et===0?Do(lt):zD(it,Et,gt));const dt=Math.abs(Ct)<=m,Lt=Math.abs(S-gt)<=v;E.done=dt&&Lt}return E.value=E.done?S:gt,E},toString:()=>{const Et=Math.min(FT(St),hS),gt=MD(Ct=>St.next(Et*Ct).value,Et,30);return Et+"ms "+gt},toTransition:()=>{}};return St}mS.applyToOptions=o=>{const r=oC(o,100,mS);return o.ease=r.ease,o.duration=Do(r.duration),o.type="keyframes",o};function mT({keyframes:o,velocity:r=0,power:h=.8,timeConstant:m=325,bounceDamping:v=10,bounceStiffness:A=500,modifyTarget:S,min:E,max:M,restDelta:z=.5,restSpeed:C}){const R=o[0],N={done:!1,value:R},k=dt=>E!==void 0&&dt<E||M!==void 0&&dt>M,lt=dt=>E===void 0?M:M===void 0||Math.abs(E-dt)<Math.abs(M-dt)?E:M;let st=h*r;const ft=R+st,P=S===void 0?ft:S(ft);P!==ft&&(st=P-R);const ot=dt=>-st*Math.exp(-dt/m),it=dt=>P+ot(dt),St=dt=>{const Lt=ot(dt),pt=it(dt);N.done=Math.abs(Lt)<=z,N.value=N.done?P:pt};let Et,gt;const Ct=dt=>{k(N.value)&&(Et=dt,gt=mS({keyframes:[N.value,lt(N.value)],velocity:zD(it,dt,N.value),damping:v,stiffness:A,restDelta:z,restSpeed:C}))};return Ct(0),{calculatedDuration:null,next:dt=>{let Lt=!1;return!gt&&Et===void 0&&(Lt=!0,St(dt),Ct(dt)),Et!==void 0&&dt>=Et?gt.next(dt-Et):(!Lt&&St(dt),N)}}}function pC(o,r,h){const m=[],v=h||Dc.mix||DD,A=o.length-1;for(let S=0;S<A;S++){let E=v(o[S],o[S+1]);if(r){const M=Array.isArray(r)?r[S]||Xu:r;E=C0(M,E)}m.push(E)}return m}function yC(o,r,{clamp:h=!0,ease:m,mixer:v}={}){const A=o.length;if(xc(A===r.length,"Both input and output ranges must be the same length","range-length"),A===1)return()=>r[0];if(A===2&&r[0]===r[1])return()=>r[1];const S=o[0]===o[1];o[0]>o[A-1]&&(o=[...o].reverse(),r=[...r].reverse());const E=pC(r,m,v),M=E.length,z=C=>{if(S&&C<o[0])return r[0];let R=0;if(M>1)for(;R<o.length-2&&!(C<o[R+1]);R++);const N=A0(o[R],o[R+1],C);return E[R](N)};return h?C=>z(Ec(o[0],o[A-1],C)):z}function gC(o,r){const h=o[o.length-1];for(let m=1;m<=r;m++){const v=A0(0,r,m);o.push(Un(h,1,v))}}function vC(o){const r=[0];return gC(r,o.length-1),r}function bC(o,r){return o.map(h=>h*r)}function SC(o,r){return o.map(()=>r||pD).splice(0,o.length-1)}function rp({duration:o=300,keyframes:r,times:h,ease:m="easeInOut"}){const v=wz(m)?m.map(wE):wE(m),A={done:!1,value:r[0]},S=bC(h&&h.length===r.length?h:vC(r),o),E=yC(S,r,{ease:Array.isArray(v)?v:SC(r,v)});return{calculatedDuration:o,next:M=>(A.value=E(M),A.done=M>=o,A)}}const TC=o=>o!==null;function WT(o,{repeat:r,repeatType:h="loop"},m,v=1){const A=o.filter(TC),E=v<0||r&&h!=="loop"&&r%2===1?0:A.length-1;return!E||m===void 0?A[E]:m}const AC={decay:mT,inertia:mT,tween:rp,keyframes:rp,spring:mS};function CD(o){typeof o.type=="string"&&(o.type=AC[o.type])}class IT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,h){return this.finished.then(r,h)}}const EC=o=>o/100;class PT extends IT{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:h}=this.options;h&&h.updatedAt!==ri.now()&&this.tick(ri.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;CD(r);const{type:h=rp,repeat:m=0,repeatDelay:v=0,repeatType:A,velocity:S=0}=r;let{keyframes:E}=r;const M=h||rp;process.env.NODE_ENV!=="production"&&M!==rp&&xc(E.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${E}`,"spring-two-frames"),M!==rp&&typeof E[0]!="number"&&(this.mixKeyframes=C0(EC,DD(E[0],E[1])),E=[0,100]);const z=M({...r,keyframes:E});A==="mirror"&&(this.mirroredGenerator=M({...r,keyframes:[...E].reverse(),velocity:-S})),z.calculatedDuration===null&&(z.calculatedDuration=FT(z));const{calculatedDuration:C}=z;this.calculatedDuration=C,this.resolvedDuration=C+v,this.totalDuration=this.resolvedDuration*(m+1)-v,this.generator=z}updateTime(r){const h=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=h}tick(r,h=!1){const{generator:m,totalDuration:v,mixKeyframes:A,mirroredGenerator:S,resolvedDuration:E,calculatedDuration:M}=this;if(this.startTime===null)return m.next(0);const{delay:z=0,keyframes:C,repeat:R,repeatType:N,repeatDelay:k,type:lt,onUpdate:st,finalKeyframe:ft}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-v/this.speed,this.startTime)),h?this.currentTime=r:this.updateTime(r);const P=this.currentTime-z*(this.playbackSpeed>=0?1:-1),ot=this.playbackSpeed>=0?P<0:P>v;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let it=this.currentTime,St=m;if(R){const dt=Math.min(this.currentTime,v)/E;let Lt=Math.floor(dt),pt=dt%1;!pt&&dt>=1&&(pt=1),pt===1&&Lt--,Lt=Math.min(Lt,R+1),!!(Lt%2)&&(N==="reverse"?(pt=1-pt,k&&(pt-=k/E)):N==="mirror"&&(St=S)),it=Ec(0,1,pt)*E}const Et=ot?{done:!1,value:C[0]}:St.next(it);A&&(Et.value=A(Et.value));let{done:gt}=Et;!ot&&M!==null&&(gt=this.playbackSpeed>=0?this.currentTime>=v:this.currentTime<=0);const Ct=this.holdTime===null&&(this.state==="finished"||this.state==="running"&>);return Ct&<!==mT&&(Et.value=WT(C,this.options,ft,this.speed)),st&&st(Et.value),Ct&&this.finish(),Et}then(r,h){return this.finished.then(r,h)}get duration(){return Gu(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Gu(r)}get time(){return Gu(this.currentTime)}set time(r){r=Do(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(ri.now());const h=this.playbackSpeed!==r;this.playbackSpeed=r,h&&(this.time=Gu(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=uC,startTime:h}=this.options;this.driver||(this.driver=r(v=>this.tick(v))),this.options.onPlay?.();const m=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=m):this.holdTime!==null?this.startTime=m-this.holdTime:this.startTime||(this.startTime=h??m),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ri.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function xC(o){for(let r=1;r<o.length;r++)o[r]??(o[r]=o[r-1])}const kd=o=>o*180/Math.PI,pT=o=>{const r=kd(Math.atan2(o[1],o[0]));return yT(r)},DC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:o=>(Math.abs(o[0])+Math.abs(o[3]))/2,rotate:pT,rotateZ:pT,skewX:o=>kd(Math.atan(o[1])),skewY:o=>kd(Math.atan(o[2])),skew:o=>(Math.abs(o[1])+Math.abs(o[2]))/2},yT=o=>(o=o%360,o<0&&(o+=360),o),HE=pT,LE=o=>Math.sqrt(o[0]*o[0]+o[1]*o[1]),qE=o=>Math.sqrt(o[4]*o[4]+o[5]*o[5]),MC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:LE,scaleY:qE,scale:o=>(LE(o)+qE(o))/2,rotateX:o=>yT(kd(Math.atan2(o[6],o[5]))),rotateY:o=>yT(kd(Math.atan2(-o[2],o[0]))),rotateZ:HE,rotate:HE,skewX:o=>kd(Math.atan(o[4])),skewY:o=>kd(Math.atan(o[1])),skew:o=>(Math.abs(o[1])+Math.abs(o[4]))/2};function gT(o){return o.includes("scale")?1:0}function vT(o,r){if(!o||o==="none")return gT(r);const h=o.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let m,v;if(h)m=MC,v=h;else{const E=o.match(/^matrix\(([-\d.e\s,]+)\)$/u);m=DC,v=E}if(!v)return gT(r);const A=m[r],S=v[1].split(",").map(CC);return typeof A=="function"?A(S):S[A]}const zC=(o,r)=>{const{transform:h="none"}=getComputedStyle(o);return vT(h,r)};function CC(o){return parseFloat(o.trim())}const Tp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ap=new Set(Tp),YE=o=>o===Sp||o===Ft,RC=new Set(["x","y","z"]),OC=Tp.filter(o=>!RC.has(o));function UC(o){const r=[];return OC.forEach(h=>{const m=o.getValue(h);m!==void 0&&(r.push([h,m.get()]),m.set(h.startsWith("scale")?1:0))}),r}const Fd={width:({x:o},{paddingLeft:r="0",paddingRight:h="0"})=>o.max-o.min-parseFloat(r)-parseFloat(h),height:({y:o},{paddingTop:r="0",paddingBottom:h="0"})=>o.max-o.min-parseFloat(r)-parseFloat(h),top:(o,{top:r})=>parseFloat(r),left:(o,{left:r})=>parseFloat(r),bottom:({y:o},{top:r})=>parseFloat(r)+(o.max-o.min),right:({x:o},{left:r})=>parseFloat(r)+(o.max-o.min),x:(o,{transform:r})=>vT(r,"x"),y:(o,{transform:r})=>vT(r,"y")};Fd.translateX=Fd.x;Fd.translateY=Fd.y;const Wd=new Set;let bT=!1,ST=!1,TT=!1;function RD(){if(ST){const o=Array.from(Wd).filter(m=>m.needsMeasurement),r=new Set(o.map(m=>m.element)),h=new Map;r.forEach(m=>{const v=UC(m);v.length&&(h.set(m,v),m.render())}),o.forEach(m=>m.measureInitialState()),r.forEach(m=>{m.render();const v=h.get(m);v&&v.forEach(([A,S])=>{m.getValue(A)?.set(S)})}),o.forEach(m=>m.measureEndState()),o.forEach(m=>{m.suspendedScrollY!==void 0&&window.scrollTo(0,m.suspendedScrollY)})}ST=!1,bT=!1,Wd.forEach(o=>o.complete(TT)),Wd.clear()}function OD(){Wd.forEach(o=>{o.readKeyframes(),o.needsMeasurement&&(ST=!0)})}function wC(){TT=!0,OD(),RD(),TT=!1}class t2{constructor(r,h,m,v,A,S=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=h,this.name=m,this.motionValue=v,this.element=A,this.isAsync=S}scheduleResolve(){this.state="scheduled",this.isAsync?(Wd.add(this),bT||(bT=!0,An.read(OD),An.resolveKeyframes(RD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:h,element:m,motionValue:v}=this;if(r[0]===null){const A=v?.get(),S=r[r.length-1];if(A!==void 0)r[0]=A;else if(m&&h){const E=m.readValue(h,S);E!=null&&(r[0]=E)}r[0]===void 0&&(r[0]=S),v&&A===void 0&&v.set(r[0])}xC(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Wd.delete(this)}cancel(){this.state==="scheduled"&&(Wd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const jC=o=>o.startsWith("--");function NC(o,r,h){jC(r)?o.style.setProperty(r,h):o.style[r]=h}const _C=qT(()=>window.ScrollTimeline!==void 0),BC={};function VC(o,r){const h=qT(o);return()=>BC[r]??h()}const UD=VC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),p0=([o,r,h,m])=>`cubic-bezier(${o}, ${r}, ${h}, ${m})`,GE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:p0([0,.65,.55,1]),circOut:p0([.55,0,1,.45]),backIn:p0([.31,.01,.66,-.59]),backOut:p0([.33,1.53,.69,.99])};function wD(o,r){if(o)return typeof o=="function"?UD()?MD(o,r):"ease-out":yD(o)?p0(o):Array.isArray(o)?o.map(h=>wD(h,r)||GE.easeOut):GE[o]}function HC(o,r,h,{delay:m=0,duration:v=300,repeat:A=0,repeatType:S="loop",ease:E="easeOut",times:M}={},z=void 0){const C={[r]:h};M&&(C.offset=M);const R=wD(E,v);Array.isArray(R)&&(C.easing=R);const N={delay:m,duration:v,easing:Array.isArray(R)?"linear":R,fill:"both",iterations:A+1,direction:S==="reverse"?"alternate":"normal"};return z&&(N.pseudoElement=z),o.animate(C,N)}function jD(o){return typeof o=="function"&&"applyToOptions"in o}function LC({type:o,...r}){return jD(o)&&UD()?o.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class qC extends IT{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:h,name:m,keyframes:v,pseudoElement:A,allowFlatten:S=!1,finalKeyframe:E,onComplete:M}=r;this.isPseudoElement=!!A,this.allowFlatten=S,this.options=r,xc(typeof r.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const z=LC(r);this.animation=HC(h,m,v,z,A),z.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!A){const C=WT(v,this.options,E,this.speed);this.updateMotionValue?this.updateMotionValue(C):NC(h,m,C),this.animation.cancel()}M?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Gu(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Gu(r)}get time(){return Gu(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=Do(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:h}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&_C()?(this.animation.timeline=r,Xu):h(this)}}const ND={anticipate:dD,backInOut:fD,circInOut:mD};function YC(o){return o in ND}function GC(o){typeof o.ease=="string"&&YC(o.ease)&&(o.ease=ND[o.ease])}const XE=10;class XC extends qC{constructor(r){GC(r),CD(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:h,onUpdate:m,onComplete:v,element:A,...S}=this.options;if(!h)return;if(r!==void 0){h.set(r);return}const E=new PT({...S,autoplay:!1}),M=Do(this.finishedTime??this.time);h.setWithVelocity(E.sample(M-XE).value,E.sample(M).value,XE),E.stop()}}const QE=(o,r)=>r==="zIndex"?!1:!!(typeof o=="number"||Array.isArray(o)||typeof o=="string"&&(af.test(o)||o==="0")&&!o.startsWith("url("));function QC(o){const r=o[0];if(o.length===1)return!0;for(let h=0;h<o.length;h++)if(o[h]!==r)return!0}function ZC(o,r,h,m){const v=o[0];if(v===null)return!1;if(r==="display"||r==="visibility")return!0;const A=o[o.length-1],S=QE(v,r),E=QE(A,r);return bp(S===E,`You are trying to animate ${r} from "${v}" to "${A}". "${S?A:v}" is not an animatable value.`,"value-not-animatable"),!S||!E?!1:QC(o)||(h==="spring"||jD(h))&&m}function AT(o){o.duration=0,o.type="keyframes"}const JC=new Set(["opacity","clipPath","filter","transform"]),KC=qT(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $C(o){const{motionValue:r,name:h,repeatDelay:m,repeatType:v,damping:A,type:S}=o;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:M,transformTemplate:z}=r.owner.getProps();return KC()&&h&&JC.has(h)&&(h!=="transform"||!z)&&!M&&!m&&v!=="mirror"&&A!==0&&S!=="inertia"}const kC=40;class FC extends IT{constructor({autoplay:r=!0,delay:h=0,type:m="keyframes",repeat:v=0,repeatDelay:A=0,repeatType:S="loop",keyframes:E,name:M,motionValue:z,element:C,...R}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ri.now();const N={autoplay:r,delay:h,type:m,repeat:v,repeatDelay:A,repeatType:S,name:M,motionValue:z,element:C,...R},k=C?.KeyframeResolver||t2;this.keyframeResolver=new k(E,(lt,st,ft)=>this.onKeyframesResolved(lt,st,N,!ft),M,z,C),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,h,m,v){this.keyframeResolver=void 0;const{name:A,type:S,velocity:E,delay:M,isHandoff:z,onUpdate:C}=m;this.resolvedAt=ri.now(),ZC(r,A,S,E)||((Dc.instantAnimations||!M)&&C?.(WT(r,m,h)),r[0]=r[r.length-1],AT(m),m.repeat=0);const N={startTime:v?this.resolvedAt?this.resolvedAt-this.createdAt>kC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:h,...m,keyframes:r},k=!z&&$C(N)?new XC({...N,element:N.motionValue.owner.current}):new PT(N);k.finished.then(()=>this.notifyFinished()).catch(Xu),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(r,h){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wC()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const WC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function IC(o){const r=WC.exec(o);if(!r)return[,];const[,h,m,v]=r;return[`--${h??m}`,v]}const PC=4;function _D(o,r,h=1){xc(h<=PC,`Max CSS variable fallback depth detected in property "${o}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[m,v]=IC(o);if(!m)return;const A=window.getComputedStyle(r).getPropertyValue(m);if(A){const S=A.trim();return aD(S)?parseFloat(S):S}return JT(v)?_D(v,r,h+1):v}function e2(o,r){return o?.[r]??o?.default??o}const BD=new Set(["width","height","top","left","right","bottom",...Tp]),tR={test:o=>o==="auto",parse:o=>o},VD=o=>r=>r.test(o),HD=[Sp,Ft,ys,ef,Qz,Xz,tR],ZE=o=>HD.find(VD(o));function eR(o){return typeof o=="number"?o===0:o!==null?o==="none"||o==="0"||iD(o):!0}const nR=new Set(["brightness","contrast","saturate","opacity"]);function aR(o){const[r,h]=o.slice(0,-1).split("(");if(r==="drop-shadow")return o;const[m]=h.match(KT)||[];if(!m)return o;const v=h.replace(m,"");let A=nR.has(r)?1:0;return m!==h&&(A*=100),r+"("+A+v+")"}const lR=/\b([a-z-]*)\(.*?\)/gu,ET={...af,getAnimatableNone:o=>{const r=o.match(lR);return r?r.map(aR).join(" "):o}},JE={...Sp,transform:Math.round},iR={rotate:ef,rotateX:ef,rotateY:ef,rotateZ:ef,scale:Pb,scaleX:Pb,scaleY:Pb,scaleZ:Pb,skew:ef,skewX:ef,skewY:ef,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:E0,originX:jE,originY:jE,originZ:Ft},n2={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft,...iR,zIndex:JE,fillOpacity:E0,strokeOpacity:E0,numOctaves:JE},uR={...n2,color:fa,backgroundColor:fa,outlineColor:fa,fill:fa,stroke:fa,borderColor:fa,borderTopColor:fa,borderRightColor:fa,borderBottomColor:fa,borderLeftColor:fa,filter:ET,WebkitFilter:ET},LD=o=>uR[o];function qD(o,r){let h=LD(o);return h!==ET&&(h=af),h.getAnimatableNone?h.getAnimatableNone(r):void 0}const oR=new Set(["auto","none","0"]);function sR(o,r,h){let m=0,v;for(;m<o.length&&!v;){const A=o[m];typeof A=="string"&&!oR.has(A)&&x0(A).values.length&&(v=o[m]),m++}if(v&&h)for(const A of r)o[A]=qD(h,v)}class cR extends t2{constructor(r,h,m,v,A){super(r,h,m,v,A,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:h,name:m}=this;if(!h||!h.current)return;super.readKeyframes();for(let M=0;M<r.length;M++){let z=r[M];if(typeof z=="string"&&(z=z.trim(),JT(z))){const C=_D(z,h.current);C!==void 0&&(r[M]=C),M===r.length-1&&(this.finalKeyframe=z)}}if(this.resolveNoneKeyframes(),!BD.has(m)||r.length!==2)return;const[v,A]=r,S=ZE(v),E=ZE(A);if(S!==E)if(YE(S)&&YE(E))for(let M=0;M<r.length;M++){const z=r[M];typeof z=="string"&&(r[M]=parseFloat(z))}else Fd[m]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:h}=this,m=[];for(let v=0;v<r.length;v++)(r[v]===null||eR(r[v]))&&m.push(v);m.length&&sR(r,m,h)}measureInitialState(){const{element:r,unresolvedKeyframes:h,name:m}=this;if(!r||!r.current)return;m==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fd[m](r.measureViewportBox(),window.getComputedStyle(r.current)),h[0]=this.measuredOrigin;const v=h[h.length-1];v!==void 0&&r.getValue(m,v).jump(v,!1)}measureEndState(){const{element:r,name:h,unresolvedKeyframes:m}=this;if(!r||!r.current)return;const v=r.getValue(h);v&&v.jump(this.measuredOrigin,!1);const A=m.length-1,S=m[A];m[A]=Fd[h](r.measureViewportBox(),window.getComputedStyle(r.current)),S!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=S),this.removedTransforms?.length&&this.removedTransforms.forEach(([E,M])=>{r.getValue(E).set(M)}),this.resolveNoneKeyframes()}}function rR(o,r,h){if(o instanceof EventTarget)return[o];if(typeof o=="string"){let m=document;const v=h?.[o]??m.querySelectorAll(o);return v?Array.from(v):[]}return Array.from(o)}const YD=(o,r)=>r&&typeof o=="number"?r.transform(o):o;function GD(o){return lD(o)&&"offsetHeight"in o}const KE=30,fR=o=>!isNaN(parseFloat(o));class dR{constructor(r,h={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=m=>{const v=ri.now();if(this.updatedAt!==v&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(m),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const A of this.dependents)A.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=h.owner}setCurrent(r){this.current=r,this.updatedAt=ri.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=fR(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return process.env.NODE_ENV!=="production"&>(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",r)}on(r,h){this.events[r]||(this.events[r]=new YT);const m=this.events[r].add(h);return r==="change"?()=>{m(),An.read(()=>{this.events.change.getSize()||this.stop()})}:m}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,h){this.passiveEffect=r,this.stopPassiveEffect=h}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,h,m){this.set(h),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-m}jump(r,h=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,h&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>KE)return 0;const h=Math.min(this.updatedAt-this.prevUpdatedAt,KE);return uD(parseFloat(this.current)-parseFloat(this.prevFrameValue),h)}start(r){return this.stop(),new Promise(h=>{this.hasAnimated=!0,this.animation=r(h),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gp(o,r){return new dR(o,r)}const{schedule:a2}=gD(queueMicrotask,!1),Eo={x:!1,y:!1};function XD(){return Eo.x||Eo.y}function hR(o){return o==="x"||o==="y"?Eo[o]?null:(Eo[o]=!0,()=>{Eo[o]=!1}):Eo.x||Eo.y?null:(Eo.x=Eo.y=!0,()=>{Eo.x=Eo.y=!1})}function QD(o,r){const h=rR(o),m=new AbortController,v={passive:!0,...r,signal:m.signal};return[h,v,()=>m.abort()]}function $E(o){return!(o.pointerType==="touch"||XD())}function mR(o,r,h={}){const[m,v,A]=QD(o,h),S=E=>{if(!$E(E))return;const{target:M}=E,z=r(M,E);if(typeof z!="function"||!M)return;const C=R=>{$E(R)&&(z(R),M.removeEventListener("pointerleave",C))};M.addEventListener("pointerleave",C,v)};return m.forEach(E=>{E.addEventListener("pointerenter",S,v)}),A}const ZD=(o,r)=>r?o===r?!0:ZD(o,r.parentElement):!1,l2=o=>o.pointerType==="mouse"?typeof o.button!="number"||o.button<=0:o.isPrimary!==!1,pR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yR(o){return pR.has(o.tagName)||o.tabIndex!==-1}const uS=new WeakSet;function kE(o){return r=>{r.key==="Enter"&&o(r)}}function W1(o,r){o.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const gR=(o,r)=>{const h=o.currentTarget;if(!h)return;const m=kE(()=>{if(uS.has(h))return;W1(h,"down");const v=kE(()=>{W1(h,"up")}),A=()=>W1(h,"cancel");h.addEventListener("keyup",v,r),h.addEventListener("blur",A,r)});h.addEventListener("keydown",m,r),h.addEventListener("blur",()=>h.removeEventListener("keydown",m),r)};function FE(o){return l2(o)&&!XD()}function vR(o,r,h={}){const[m,v,A]=QD(o,h),S=E=>{const M=E.currentTarget;if(!FE(E))return;uS.add(M);const z=r(M,E),C=(k,lt)=>{window.removeEventListener("pointerup",R),window.removeEventListener("pointercancel",N),uS.has(M)&&uS.delete(M),FE(k)&&typeof z=="function"&&z(k,{success:lt})},R=k=>{C(k,M===window||M===document||h.useGlobalTarget||ZD(M,k.target))},N=k=>{C(k,!1)};window.addEventListener("pointerup",R,v),window.addEventListener("pointercancel",N,v)};return m.forEach(E=>{(h.useGlobalTarget?window:E).addEventListener("pointerdown",S,v),GD(E)&&(E.addEventListener("focus",z=>gR(z,v)),!yR(E)&&!E.hasAttribute("tabindex")&&(E.tabIndex=0))}),A}function JD(o){return lD(o)&&"ownerSVGElement"in o}function bR(o){return JD(o)&&o.tagName==="svg"}const dl=o=>!!(o&&o.getVelocity),SR=[...HD,fa,af],TR=o=>SR.find(VD(o)),i2=G.createContext({transformPagePoint:o=>o,isStatic:!1,reducedMotion:"never"});function WE(o,r){if(typeof o=="function")return o(r);o!=null&&(o.current=r)}function AR(...o){return r=>{let h=!1;const m=o.map(v=>{const A=WE(v,r);return!h&&typeof A=="function"&&(h=!0),A});if(h)return()=>{for(let v=0;v<m.length;v++){const A=m[v];typeof A=="function"?A():WE(o[v],null)}}}}function ER(...o){return xo.useCallback(AR(...o),o)}class xR extends xo.Component{getSnapshotBeforeUpdate(r){const h=this.props.childRef.current;if(h&&r.isPresent&&!this.props.isPresent){const m=h.offsetParent,v=GD(m)&&m.offsetWidth||0,A=this.props.sizeRef.current;A.height=h.offsetHeight||0,A.width=h.offsetWidth||0,A.top=h.offsetTop,A.left=h.offsetLeft,A.right=v-A.width-A.left}return null}componentDidUpdate(){}render(){return this.props.children}}function DR({children:o,isPresent:r,anchorX:h,root:m}){const v=G.useId(),A=G.useRef(null),S=G.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:E}=G.useContext(i2),M=ER(A,o?.ref);return G.useInsertionEffect(()=>{const{width:z,height:C,top:R,left:N,right:k}=S.current;if(r||!A.current||!z||!C)return;const lt=h==="left"?`left: ${N}`:`right: ${k}`;A.current.dataset.motionPopId=v;const st=document.createElement("style");E&&(st.nonce=E);const ft=m??document.head;return ft.appendChild(st),st.sheet&&st.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${
|
|
1
|
+
"use strict";var Ua=Object.create;var yi=Object.defineProperty;var _a=Object.getOwnPropertyDescriptor;var Wa=Object.getOwnPropertyNames;var Ka=Object.getPrototypeOf,Ha=Object.prototype.hasOwnProperty;var Ga=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Wa(e))!Ha.call(t,i)&&i!==n&&yi(t,i,{get:()=>e[i],enumerable:!(s=_a(e,i))||s.enumerable});return t};var Xa=(t,e,n)=>(n=t!=null?Ua(Ka(t)):{},Ga(e||!t||!t.__esModule?yi(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),m=require("react"),tt=require("lucide-react"),Lr=require("@ai-sdk/react"),An=require("ai"),Or=require("@radix-ui/react-slot"),Fr=require("class-variance-authority"),qa=require("clsx"),Ya=require("tailwind-merge"),Ja=require("@radix-ui/react-tooltip"),xi=require("@radix-ui/react-use-controllable-state"),Za=require("@radix-ui/react-collapsible"),Qa=require("react-dom"),tc=require("./server.cjs");function js(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ct=js(m),Pe=js(Ja),Ms=js(Za);function et(...t){return Ya.twMerge(qa.clsx(t))}const re=Fr.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive active:scale-95",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Cn=Ct.forwardRef(({className:t,variant:e,size:n,asChild:s=!1,...i},o)=>{const r=s?Or.Slot:"button";return h.jsx(r,{ref:o,"data-slot":"button",className:et(re({variant:e,size:n,className:t})),...i})});Cn.displayName="Button";const ec=Fr.cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function zn({className:t,variant:e,asChild:n=!1,...s}){const i=n?Or.Slot:"span";return h.jsx(i,{"data-slot":"badge",className:et(ec({variant:e}),t),...s})}const nc=({textAreaRef:t,triggerAutoSize:e,maxHeight:n=Number.MAX_SAFE_INTEGER,minHeight:s=0})=>{const[i,o]=Ct.useState(!0);Ct.useEffect(()=>{const a=t.current;if(a){i&&(a.style.minHeight=`${s+6}px`,n>s&&(a.style.maxHeight=`${n}px`),o(!1)),a.style.height=`${s+6}px`;const c=a.scrollHeight;c>n?a.style.height=`${n}px`:a.style.height=`${c+6}px`}},[t.current,e])},Br=Ct.forwardRef(({maxHeight:t=Number.MAX_SAFE_INTEGER,minHeight:e=52,className:n,onChange:s,value:i,...o},r)=>{const a=Ct.useRef(null),[c,u]=Ct.useState("");return nc({textAreaRef:a,triggerAutoSize:c,maxHeight:t,minHeight:e}),m.useImperativeHandle(r,()=>({textArea:a.current,focus:()=>a?.current?.focus(),maxHeight:t,minHeight:e})),Ct.useEffect(()=>{u(i)},[o?.defaultValue,i]),h.jsx("textarea",{...o,value:i,ref:a,className:et("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",n),onChange:l=>{u(l.target.value),s?.(l)}})});Br.displayName="AutosizeTextarea";function sc({delayDuration:t=0,...e}){return h.jsx(Pe.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function _t({...t}){return h.jsx(sc,{children:h.jsx(Pe.Root,{"data-slot":"tooltip",...t})})}function Wt({...t}){return h.jsx(Pe.Trigger,{"data-slot":"tooltip-trigger",...t})}function Kt({className:t,sideOffset:e=0,children:n,...s}){return h.jsx(Pe.Portal,{children:h.jsxs(Pe.Content,{"data-slot":"tooltip-content",sideOffset:e,className:et("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...s,children:[n,h.jsx(Pe.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function vi({className:t,...e}){return h.jsx("kbd",{"data-slot":"kbd",className:et("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",t),...e})}const Es=m.createContext({});function ks(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ds=typeof window<"u",$r=Ds?m.useLayoutEffect:m.useEffect,Dn=m.createContext(null);function Vs(t,e){t.indexOf(e)===-1&&t.push(e)}function Ns(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Lt=(t,e,n)=>n>e?e:n<t?t:n;function is(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let ke=()=>{},Ot=()=>{};process.env.NODE_ENV!=="production"&&(ke=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(is(e,n))},Ot=(t,e,n)=>{if(!t)throw new Error(is(e,n))});const Ft={},zr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ur(t){return typeof t=="object"&&t!==null}const _r=t=>/^0[^.\s]+$/u.test(t);function Rs(t){let e;return()=>(e===void 0&&(e=t()),e)}const wt=t=>t,ic=(t,e)=>n=>e(t(n)),nn=(...t)=>t.reduce(ic),Ye=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Is{constructor(){this.subscriptions=[]}add(e){return Vs(this.subscriptions,e),()=>Ns(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Pt=t=>t*1e3,bt=t=>t/1e3;function Wr(t,e){return e?t*(1e3/e):0}const bi=new Set;function Ls(t,e,n){t||bi.has(e)||(console.warn(is(e,n)),bi.add(e))}const Kr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,rc=1e-7,oc=12;function ac(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Kr(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>rc&&++a<oc);return r}function sn(t,e,n,s){if(t===e&&n===s)return wt;const i=o=>ac(o,0,1,t,n);return o=>o===0||o===1?o:Kr(i(o),e,s)}const Hr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Gr=t=>e=>1-t(1-e),Xr=sn(.33,1.53,.69,.99),Os=Gr(Xr),qr=Hr(Os),Yr=t=>(t*=2)<1?.5*Os(t):.5*(2-Math.pow(2,-10*(t-1))),Fs=t=>1-Math.sin(Math.acos(t)),Jr=Gr(Fs),Zr=Hr(Fs),cc=sn(.42,0,1,1),lc=sn(0,0,.58,1),Qr=sn(.42,0,.58,1),uc=t=>Array.isArray(t)&&typeof t[0]!="number",to=t=>Array.isArray(t)&&typeof t[0]=="number",wi={linear:wt,easeIn:cc,easeInOut:Qr,easeOut:lc,circIn:Fs,circInOut:Zr,circOut:Jr,backIn:Os,backInOut:qr,backOut:Xr,anticipate:Yr},dc=t=>typeof t=="string",Ti=t=>{if(to(t)){Ot(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return sn(e,n,s,i)}else if(dc(t))return Ot(wi[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),wi[t];return t},mn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hc(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,d=!1,f=!1)=>{const x=f&&i?n:s;return d&&r.add(l),x.has(l)||x.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,o&&(o=!1,u.process(l))}};return u}const fc=40;function eo(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=mn.reduce((b,k)=>(b[k]=hc(o),b),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:d,preRender:f,render:g,postRender:x}=r,v=()=>{const b=Ft.useManualTiming?i.timestamp:performance.now();n=!1,Ft.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(b-i.timestamp,fc),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),d.process(i),f.process(i),g.process(i),x.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(v))},A=()=>{n=!0,s=!0,i.isProcessing||t(v)};return{schedule:mn.reduce((b,k)=>{const M=r[k];return b[k]=(j,L=!1,V=!1)=>(n||A(),M.schedule(j,L,V)),b},{}),cancel:b=>{for(let k=0;k<mn.length;k++)r[mn[k]].cancel(b)},state:i,steps:r}}const{schedule:H,cancel:Gt,state:it,steps:Un}=eo(typeof requestAnimationFrame<"u"?requestAnimationFrame:wt,!0);let vn;function mc(){vn=void 0}const mt={now:()=>(vn===void 0&&mt.set(it.isProcessing||Ft.useManualTiming?it.timestamp:performance.now()),vn),set:t=>{vn=t,queueMicrotask(mc)}},no=t=>e=>typeof e=="string"&&e.startsWith(t),Bs=no("--"),pc=no("var(--"),$s=t=>pc(t)?gc.test(t.split("/*")[0].trim()):!1,gc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,De={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Je={...De,transform:t=>Lt(0,1,t)},pn={...De,default:1},We=t=>Math.round(t*1e5)/1e5,zs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yc(t){return t==null}const xc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Us=(t,e)=>n=>!!(typeof n=="string"&&xc.test(n)&&n.startsWith(t)||e&&!yc(n)&&Object.prototype.hasOwnProperty.call(n,e)),so=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(zs);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},vc=t=>Lt(0,255,t),_n={...De,transform:t=>Math.round(vc(t))},ae={test:Us("rgb","red"),parse:so("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+_n.transform(t)+", "+_n.transform(e)+", "+_n.transform(n)+", "+We(Je.transform(s))+")"};function bc(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const rs={test:Us("#"),parse:bc,transform:ae.transform},rn=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ht=rn("deg"),Dt=rn("%"),I=rn("px"),wc=rn("vh"),Tc=rn("vw"),Si={...Dt,parse:t=>Dt.parse(t)/100,transform:t=>Dt.transform(t*100)},be={test:Us("hsl","hue"),parse:so("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Dt.transform(We(e))+", "+Dt.transform(We(n))+", "+We(Je.transform(s))+")"},Q={test:t=>ae.test(t)||rs.test(t)||be.test(t),parse:t=>ae.test(t)?ae.parse(t):be.test(t)?be.parse(t):rs.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ae.transform(t):be.transform(t),getAnimatableNone:t=>{const e=Q.parse(t);return e.alpha=0,Q.transform(e)}},Sc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ac(t){return isNaN(t)&&typeof t=="string"&&(t.match(zs)?.length||0)+(t.match(Sc)?.length||0)>0}const io="number",ro="color",Cc="var",Pc="var(",Ai="${}",jc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ze(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(jc,c=>(Q.test(c)?(s.color.push(o),i.push(ro),n.push(Q.parse(c))):c.startsWith(Pc)?(s.var.push(o),i.push(Cc),n.push(c)):(s.number.push(o),i.push(io),n.push(parseFloat(c))),++o,Ai)).split(Ai);return{values:n,split:a,indexes:s,types:i}}function oo(t){return Ze(t).values}function ao(t){const{split:e,types:n}=Ze(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===io?o+=We(i[r]):a===ro?o+=Q.transform(i[r]):o+=i[r]}return o}}const Mc=t=>typeof t=="number"?0:Q.test(t)?Q.getAnimatableNone(t):t;function Ec(t){const e=oo(t);return ao(t)(e.map(Mc))}const Xt={test:Ac,parse:oo,createTransformer:ao,getAnimatableNone:Ec};function Wn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function kc({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Wn(c,a,t+1/3),o=Wn(c,a,t),r=Wn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Pn(t,e){return n=>n>0?e:t}const X=(t,e,n)=>t+(e-t)*n,Kn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Dc=[rs,ae,be],Vc=t=>Dc.find(e=>e.test(t));function Ci(t){const e=Vc(t);if(ke(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===be&&(n=kc(n)),n}const Pi=(t,e)=>{const n=Ci(t),s=Ci(e);if(!n||!s)return Pn(t,e);const i={...n};return o=>(i.red=Kn(n.red,s.red,o),i.green=Kn(n.green,s.green,o),i.blue=Kn(n.blue,s.blue,o),i.alpha=X(n.alpha,s.alpha,o),ae.transform(i))},os=new Set(["none","hidden"]);function Nc(t,e){return os.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Rc(t,e){return n=>X(t,e,n)}function _s(t){return typeof t=="number"?Rc:typeof t=="string"?$s(t)?Pn:Q.test(t)?Pi:Oc:Array.isArray(t)?co:typeof t=="object"?Q.test(t)?Pi:Ic:Pn}function co(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>_s(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Ic(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=_s(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Lc(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Oc=(t,e)=>{const n=Xt.createTransformer(e),s=Ze(t),i=Ze(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?os.has(t)&&!i.values.length||os.has(e)&&!s.values.length?Nc(t,e):nn(co(Lc(s,i),i.values),n):(ke(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Pn(t,e))};function lo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?X(t,e,n):_s(t)(t,e)}const Fc=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>H.update(e,n),stop:()=>Gt(e),now:()=>it.isProcessing?it.timestamp:mt.now()}},uo=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},jn=2e4;function Ws(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<jn;)e+=n,s=t.next(e);return e>=jn?1/0:e}function Bc(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Ws(s),jn);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:bt(i)}}const $c=5;function ho(t,e,n){const s=Math.max(e-$c,0);return Wr(n-t(s),e-s)}const G={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Hn=.001;function zc({duration:t=G.duration,bounce:e=G.bounce,velocity:n=G.velocity,mass:s=G.mass}){let i,o;ke(t<=Pt(G.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=Lt(G.minDamping,G.maxDamping,r),t=Lt(G.minDuration,G.maxDuration,bt(t)),r<1?(i=u=>{const l=u*r,d=l*t,f=l-n,g=as(u,r),x=Math.exp(-d);return Hn-f/g*x},o=u=>{const d=u*r*t,f=d*n+n,g=Math.pow(r,2)*Math.pow(u,2)*t,x=Math.exp(-d),v=as(Math.pow(u,2),r);return(-i(u)+Hn>0?-1:1)*((f-g)*x)/v}):(i=u=>{const l=Math.exp(-u*t),d=(u-n)*t+1;return-Hn+l*d},o=u=>{const l=Math.exp(-u*t),d=(n-u)*(t*t);return l*d});const a=5/t,c=_c(i,o,a);if(t=Pt(t),isNaN(c))return{stiffness:G.stiffness,damping:G.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Uc=12;function _c(t,e,n){let s=n;for(let i=1;i<Uc;i++)s=s-t(s)/e(s);return s}function as(t,e){return t*Math.sqrt(1-e*e)}const Wc=["duration","bounce"],Kc=["stiffness","damping","mass"];function ji(t,e){return e.some(n=>t[n]!==void 0)}function Hc(t){let e={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...t};if(!ji(t,Kc)&&ji(t,Wc))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Lt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:G.mass,stiffness:i,damping:o}}else{const n=zc(t);e={...e,...n,mass:G.mass},e.isResolvedFromDuration=!0}return e}function Mn(t=G.visualDuration,e=G.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:d,velocity:f,isResolvedFromDuration:g}=Hc({...n,velocity:-bt(n.velocity||0)}),x=f||0,v=u/(2*Math.sqrt(c*l)),A=r-o,y=bt(Math.sqrt(c/l)),w=Math.abs(A)<5;s||(s=w?G.restSpeed.granular:G.restSpeed.default),i||(i=w?G.restDelta.granular:G.restDelta.default);let b;if(v<1){const M=as(y,v);b=j=>{const L=Math.exp(-v*y*j);return r-L*((x+v*y*A)/M*Math.sin(M*j)+A*Math.cos(M*j))}}else if(v===1)b=M=>r-Math.exp(-y*M)*(A+(x+y*A)*M);else{const M=y*Math.sqrt(v*v-1);b=j=>{const L=Math.exp(-v*y*j),V=Math.min(M*j,300);return r-L*((x+v*y*A)*Math.sinh(V)+M*A*Math.cosh(V))/M}}const k={calculatedDuration:g&&d||null,next:M=>{const j=b(M);if(g)a.done=M>=d;else{let L=M===0?x:0;v<1&&(L=M===0?Pt(x):ho(b,M,j));const V=Math.abs(L)<=s,$=Math.abs(r-j)<=i;a.done=V&&$}return a.value=a.done?r:j,a},toString:()=>{const M=Math.min(Ws(k),jn),j=uo(L=>k.next(M*L).value,M,30);return M+"ms "+j},toTransition:()=>{}};return k}Mn.applyToOptions=t=>{const e=Bc(t,100,Mn);return t.ease=e.ease,t.duration=Pt(e.duration),t.type="keyframes",t};function cs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const d=t[0],f={done:!1,value:d},g=V=>a!==void 0&&V<a||c!==void 0&&V>c,x=V=>a===void 0?c:c===void 0||Math.abs(a-V)<Math.abs(c-V)?a:c;let v=n*e;const A=d+v,y=r===void 0?A:r(A);y!==A&&(v=y-d);const w=V=>-v*Math.exp(-V/s),b=V=>y+w(V),k=V=>{const $=w(V),q=b(V);f.done=Math.abs($)<=u,f.value=f.done?y:q};let M,j;const L=V=>{g(f.value)&&(M=V,j=Mn({keyframes:[f.value,x(f.value)],velocity:ho(b,V,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return L(0),{calculatedDuration:null,next:V=>{let $=!1;return!j&&M===void 0&&($=!0,k(V),L(V)),M!==void 0&&V>=M?j.next(V-M):(!$&&k(V),f)}}}function Gc(t,e,n){const s=[],i=n||Ft.mix||lo,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||wt:e;a=nn(c,a)}s.push(a)}return s}function Xc(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ot(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Gc(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let d=0;if(c>1)for(;d<t.length-2&&!(l<t[d+1]);d++);const f=Ye(t[d],t[d+1],l);return a[d](f)};return n?l=>u(Lt(t[0],t[o-1],l)):u}function qc(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ye(0,e,s);t.push(X(n,1,i))}}function Yc(t){const e=[0];return qc(e,t.length-1),e}function Jc(t,e){return t.map(n=>n*e)}function Zc(t,e){return t.map(()=>e||Qr).splice(0,t.length-1)}function we({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=uc(s)?s.map(Ti):Ti(s),o={done:!1,value:e[0]},r=Jc(n&&n.length===e.length?n:Yc(e),t),a=Xc(r,e,{ease:Array.isArray(i)?i:Zc(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Qc=t=>t!==null;function Ks(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Qc),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const tl={decay:cs,inertia:cs,tween:we,keyframes:we,spring:Mn};function fo(t){typeof t.type=="string"&&(t.type=tl[t.type])}class Hs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const el=t=>t/100;class Gs extends Hs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==mt.now()&&this.tick(mt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;fo(e);const{type:n=we,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||we;process.env.NODE_ENV!=="production"&&c!==we&&Ot(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==we&&typeof a[0]!="number"&&(this.mixKeyframes=nn(el,lo(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Ws(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:d,repeatType:f,repeatDelay:g,type:x,onUpdate:v,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,k=s;if(d){const V=Math.min(this.currentTime,i)/a;let $=Math.floor(V),q=V%1;!q&&V>=1&&(q=1),q===1&&$--,$=Math.min($,d+1),!!($%2)&&(f==="reverse"?(q=1-q,g&&(q-=g/a)):f==="mirror"&&(k=r)),b=Lt(0,1,q)*a}const M=w?{done:!1,value:l[0]}:k.next(b);o&&(M.value=o(M.value));let{done:j}=M;!w&&c!==null&&(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return L&&x!==cs&&(M.value=Ks(l,this.options,A,this.speed)),v&&v(M.value),L&&this.finish(),M}then(e,n){return this.finished.then(e,n)}get duration(){return bt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(this.currentTime)}set time(e){e=Pt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(mt.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=bt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Fc,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(mt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function nl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ce=t=>t*180/Math.PI,ls=t=>{const e=ce(Math.atan2(t[1],t[0]));return us(e)},sl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ls,rotateZ:ls,skewX:t=>ce(Math.atan(t[1])),skewY:t=>ce(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},us=t=>(t=t%360,t<0&&(t+=360),t),Mi=ls,Ei=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ki=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),il={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ei,scaleY:ki,scale:t=>(Ei(t)+ki(t))/2,rotateX:t=>us(ce(Math.atan2(t[6],t[5]))),rotateY:t=>us(ce(Math.atan2(-t[2],t[0]))),rotateZ:Mi,rotate:Mi,skewX:t=>ce(Math.atan(t[4])),skewY:t=>ce(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ds(t){return t.includes("scale")?1:0}function hs(t,e){if(!t||t==="none")return ds(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=il,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=sl,i=a}if(!i)return ds(e);const o=s[e],r=i[1].split(",").map(ol);return typeof o=="function"?o(r):r[o]}const rl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return hs(n,e)};function ol(t){return parseFloat(t.trim())}const Ve=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ne=new Set(Ve),Di=t=>t===De||t===I,al=new Set(["x","y","z"]),cl=Ve.filter(t=>!al.has(t));function ll(t){const e=[];return cl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const le={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>hs(e,"x"),y:(t,{transform:e})=>hs(e,"y")};le.translateX=le.x;le.translateY=le.y;const ue=new Set;let fs=!1,ms=!1,ps=!1;function mo(){if(ms){const t=Array.from(ue).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ll(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ms=!1,fs=!1,ue.forEach(t=>t.complete(ps)),ue.clear()}function po(){ue.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ms=!0)})}function ul(){ps=!0,po(),mo(),ps=!1}class Xs{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ue.add(this),fs||(fs=!0,H.read(po),H.resolveKeyframes(mo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}nl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ue.delete(this)}cancel(){this.state==="scheduled"&&(ue.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dl=t=>t.startsWith("--");function hl(t,e,n){dl(e)?t.style.setProperty(e,n):t.style[e]=n}const fl=Rs(()=>window.ScrollTimeline!==void 0),ml={};function pl(t,e){const n=Rs(t);return()=>ml[e]??n()}const go=pl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_e=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Vi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_e([0,.65,.55,1]),circOut:_e([.55,0,1,.45]),backIn:_e([.31,.01,.66,-.59]),backOut:_e([.33,1.53,.69,.99])};function yo(t,e){if(t)return typeof t=="function"?go()?uo(t,e):"ease-out":to(t)?_e(t):Array.isArray(t)?t.map(n=>yo(n,e)||Vi.easeOut):Vi[t]}function gl(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const d=yo(a,i);Array.isArray(d)&&(l.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function xo(t){return typeof t=="function"&&"applyToOptions"in t}function yl({type:t,...e}){return xo(t)&&go()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class xl extends Hs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Ot(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=yl(e);this.animation=gl(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=Ks(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):hl(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return bt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Pt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&fl()?(this.animation.timeline=e,wt):n(this)}}const vo={anticipate:Yr,backInOut:qr,circInOut:Zr};function vl(t){return t in vo}function bl(t){typeof t.ease=="string"&&vl(t.ease)&&(t.ease=vo[t.ease])}const Ni=10;class wl extends xl{constructor(e){bl(e),fo(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Gs({...r,autoplay:!1}),c=Pt(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Ni).value,a.sample(c).value,Ni),a.stop()}}const Ri=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xt.test(t)||t==="0")&&!t.startsWith("url("));function Tl(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Sl(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ri(i,e),a=Ri(o,e);return ke(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Tl(t)||(n==="spring"||xo(n))&&s}function gs(t){t.duration=0,t.type="keyframes"}const Al=new Set(["opacity","clipPath","filter","transform"]),Cl=Rs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Pl(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Cl()&&n&&Al.has(n)&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const jl=40;class Ml extends Hs{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=mt.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...d},g=l?.KeyframeResolver||Xs;this.keyframeResolver=new g(a,(x,v,A)=>this.onKeyframesResolved(x,v,f,!A),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=mt.now(),Sl(e,o,r,a)||((Ft.instantAnimations||!c)&&l?.(Ks(e,s,n)),e[0]=e[e.length-1],gs(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>jl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},g=!u&&Pl(f)?new wl({...f,element:f.motionValue.owner.current}):new Gs(f);g.finished.then(()=>this.notifyFinished()).catch(wt),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ul()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const El=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kl(t){const e=El.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const Dl=4;function bo(t,e,n=1){Ot(n<=Dl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=kl(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return zr(r)?parseFloat(r):r}return $s(i)?bo(i,e,n+1):i}function qs(t,e){return t?.[e]??t?.default??t}const wo=new Set(["width","height","top","left","right","bottom",...Ve]),Vl={test:t=>t==="auto",parse:t=>t},To=t=>e=>e.test(t),So=[De,I,Dt,Ht,Tc,wc,Vl],Ii=t=>So.find(To(t));function Nl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||_r(t):!0}const Rl=new Set(["brightness","contrast","saturate","opacity"]);function Il(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(zs)||[];if(!s)return t;const i=n.replace(s,"");let o=Rl.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ll=/\b([a-z-]*)\(.*?\)/gu,ys={...Xt,getAnimatableNone:t=>{const e=t.match(Ll);return e?e.map(Il).join(" "):t}},Li={...De,transform:Math.round},Ol={rotate:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:pn,scaleX:pn,scaleY:pn,scaleZ:pn,skew:Ht,skewX:Ht,skewY:Ht,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Je,originX:Si,originY:Si,originZ:I},Ys={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,backgroundPositionX:I,backgroundPositionY:I,...Ol,zIndex:Li,fillOpacity:Je,strokeOpacity:Je,numOctaves:Li},Fl={...Ys,color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,filter:ys,WebkitFilter:ys},Ao=t=>Fl[t];function Co(t,e){let n=Ao(t);return n!==ys&&(n=Xt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Bl=new Set(["auto","none","0"]);function $l(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Bl.has(o)&&Ze(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Co(n,i)}class zl extends Xs{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),$s(u))){const l=bo(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!wo.has(s)||e.length!==2)return;const[i,o]=e,r=Ii(i),a=Ii(o);if(r!==a)if(Di(r)&&Di(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else le[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Nl(e[i]))&&s.push(i);s.length&&$l(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=le[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ul(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Po=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function jo(t){return Ur(t)&&"offsetHeight"in t}const Oi=30,_l=t=>!isNaN(parseFloat(t));class Wl{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=mt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=mt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_l(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Ls(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Is);const s=this.events[e].add(n);return e==="change"?()=>{s(),H.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Oi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Oi);return Wr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Me(t,e){return new Wl(t,e)}const{schedule:Js}=eo(queueMicrotask,!1),At={x:!1,y:!1};function Mo(){return At.x||At.y}function Kl(t){return t==="x"||t==="y"?At[t]?null:(At[t]=!0,()=>{At[t]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}function Eo(t,e){const n=Ul(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Fi(t){return!(t.pointerType==="touch"||Mo())}function Hl(t,e,n={}){const[s,i,o]=Eo(t,n),r=a=>{if(!Fi(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=d=>{Fi(d)&&(u(d),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const ko=(t,e)=>e?t===e?!0:ko(t,e.parentElement):!1,Zs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Gl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xl(t){return Gl.has(t.tagName)||t.tabIndex!==-1}const bn=new WeakSet;function Bi(t){return e=>{e.key==="Enter"&&t(e)}}function Gn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ql=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Bi(()=>{if(bn.has(n))return;Gn(n,"down");const i=Bi(()=>{Gn(n,"up")}),o=()=>Gn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function $i(t){return Zs(t)&&!Mo()}function Yl(t,e,n={}){const[s,i,o]=Eo(t,n),r=a=>{const c=a.currentTarget;if(!$i(a))return;bn.add(c);const u=e(c,a),l=(g,x)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),bn.has(c)&&bn.delete(c),$i(g)&&typeof u=="function"&&u(g,{success:x})},d=g=>{l(g,c===window||c===document||n.useGlobalTarget||ko(c,g.target))},f=g=>{l(g,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),jo(a)&&(a.addEventListener("focus",u=>ql(u,i)),!Xl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Do(t){return Ur(t)&&"ownerSVGElement"in t}function Jl(t){return Do(t)&&t.tagName==="svg"}const at=t=>!!(t&&t.getVelocity),Zl=[...So,Q,Xt],Ql=t=>Zl.find(To(t)),Qs=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function zi(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function tu(...t){return e=>{let n=!1;const s=t.map(i=>{const o=zi(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():zi(t[i],null)}}}}function eu(...t){return Ct.useCallback(tu(...t),t)}class nu extends Ct.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=jo(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function su({children:t,isPresent:e,anchorX:n,root:s}){const i=m.useId(),o=m.useRef(null),r=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(Qs),c=eu(o,t?.ref);return m.useInsertionEffect(()=>{const{width:u,height:l,top:d,left:f,right:g}=r.current;if(e||!o.current||!u||!l)return;const x=n==="left"?`left: ${f}`:`right: ${g}`;o.current.dataset.motionPopId=i;const v=document.createElement("style");a&&(v.nonce=a);const A=s??document.head;return A.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${i}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
|
-
width: ${
|
|
5
|
-
height: ${
|
|
6
|
-
${
|
|
7
|
-
top: ${
|
|
4
|
+
width: ${u}px !important;
|
|
5
|
+
height: ${l}px !important;
|
|
6
|
+
${x}px !important;
|
|
7
|
+
top: ${d}px !important;
|
|
8
8
|
}
|
|
9
|
-
`),()=>{ft.contains(st)&&ft.removeChild(st)}},[r]),B.jsx(xR,{isPresent:r,childRef:A,sizeRef:S,children:xo.cloneElement(o,{ref:M})})}const MR=({children:o,initial:r,isPresent:h,onExitComplete:m,custom:v,presenceAffectsLayout:A,mode:S,anchorX:E,root:M})=>{const z=BT(zR),C=G.useId();let R=!0,N=G.useMemo(()=>(R=!1,{id:C,initial:r,isPresent:h,custom:v,onExitComplete:k=>{z.set(k,!0);for(const lt of z.values())if(!lt)return;m&&m()},register:k=>(z.set(k,!1),()=>z.delete(k))}),[h,z,m]);return A&&R&&(N={...N}),G.useMemo(()=>{z.forEach((k,lt)=>z.set(lt,!1))},[h]),xo.useEffect(()=>{!h&&!z.size&&m&&m()},[h]),S==="popLayout"&&(o=B.jsx(DR,{isPresent:h,anchorX:E,root:M,children:o})),B.jsx(gS.Provider,{value:N,children:o})};function zR(){return new Map}function KD(o=!0){const r=G.useContext(gS);if(r===null)return[!0,null];const{isPresent:h,onExitComplete:m,register:v}=r,A=G.useId();G.useEffect(()=>{if(o)return v(A)},[o]);const S=G.useCallback(()=>o&&m&&m(A),[A,m,o]);return!h&&m?[!1,S]:[!0]}const tS=o=>o.key||"";function IE(o){const r=[];return G.Children.forEach(o,h=>{G.isValidElement(h)&&r.push(h)}),r}const CR=({children:o,custom:r,initial:h=!0,onExitComplete:m,presenceAffectsLayout:v=!0,mode:A="sync",propagate:S=!1,anchorX:E="left",root:M})=>{const[z,C]=KD(S),R=G.useMemo(()=>IE(o),[o]),N=S&&!z?[]:R.map(tS),k=G.useRef(!0),lt=G.useRef(R),st=BT(()=>new Map),[ft,P]=G.useState(R),[ot,it]=G.useState(R);nD(()=>{k.current=!1,lt.current=R;for(let gt=0;gt<ot.length;gt++){const Ct=tS(ot[gt]);N.includes(Ct)?st.delete(Ct):st.get(Ct)!==!0&&st.set(Ct,!1)}},[ot,N.length,N.join("-")]);const St=[];if(R!==ft){let gt=[...R];for(let Ct=0;Ct<ot.length;Ct++){const dt=ot[Ct],Lt=tS(dt);N.includes(Lt)||(gt.splice(Ct,0,dt),St.push(dt))}return A==="wait"&&St.length&&(gt=St),it(IE(gt)),P(R),null}process.env.NODE_ENV!=="production"&&A==="wait"&&ot.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:Et}=G.useContext(_T);return B.jsx(B.Fragment,{children:ot.map(gt=>{const Ct=tS(gt),dt=S&&!z?!1:R===ot||N.includes(Ct),Lt=()=>{if(st.has(Ct))st.set(Ct,!0);else return;let pt=!0;st.forEach(Wt=>{Wt||(pt=!1)}),pt&&(Et?.(),it(lt.current),S&&C?.(),m&&m())};return B.jsx(MR,{isPresent:dt,initial:!k.current||h?void 0:!1,custom:r,presenceAffectsLayout:v,mode:A,root:M,onExitComplete:dt?void 0:Lt,anchorX:E,children:gt},Ct)})})},u2=G.createContext({strict:!1}),PE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vp={};for(const o in PE)vp[o]={isEnabled:r=>PE[o].some(h=>!!r[h])};function xT(o){for(const r in o)vp[r]={...vp[r],...o[r]}}function RR({children:o,features:r,strict:h=!1}){const[,m]=G.useState(!I1(r)),v=G.useRef(void 0);if(!I1(r)){const{renderer:A,...S}=r;v.current=A,xT(S)}return G.useEffect(()=>{I1(r)&&r().then(({renderer:A,...S})=>{xT(S),v.current=A,m(!0)})},[]),B.jsx(u2.Provider,{value:{renderer:v.current,strict:h},children:o})}function I1(o){return typeof o=="function"}const OR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function pS(o){return o.startsWith("while")||o.startsWith("drag")&&o!=="draggable"||o.startsWith("layout")||o.startsWith("onTap")||o.startsWith("onPan")||o.startsWith("onLayout")||OR.has(o)}let $D=o=>!pS(o);function UR(o){typeof o=="function"&&($D=r=>r.startsWith("on")?!pS(r):o(r))}try{UR(require("@emotion/is-prop-valid").default)}catch{}function wR(o,r,h){const m={};for(const v in o)v==="values"&&typeof o.values=="object"||($D(v)||h===!0&&pS(v)||!r&&!pS(v)||o.draggable&&v.startsWith("onDrag"))&&(m[v]=o[v]);return m}const vS=G.createContext({});function bS(o){return o!==null&&typeof o=="object"&&typeof o.start=="function"}function D0(o){return typeof o=="string"||Array.isArray(o)}const o2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s2=["initial",...o2];function SS(o){return bS(o.animate)||s2.some(r=>D0(o[r]))}function kD(o){return!!(SS(o)||o.variants)}function jR(o,r){if(SS(o)){const{initial:h,animate:m}=o;return{initial:h===!1||D0(h)?h:void 0,animate:D0(m)?m:void 0}}return o.inherit!==!1?r:{}}function NR(o){const{initial:r,animate:h}=jR(o,G.useContext(vS));return G.useMemo(()=>({initial:r,animate:h}),[tx(r),tx(h)])}function tx(o){return Array.isArray(o)?o.join(" "):o}const M0={};function _R(o){for(const r in o)M0[r]=o[r],ZT(r)&&(M0[r].isCSSVariable=!0)}function FD(o,{layout:r,layoutId:h}){return Ap.has(o)||o.startsWith("origin")||(r||h!==void 0)&&(!!M0[o]||o==="opacity")}const BR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VR=Tp.length;function HR(o,r,h){let m="",v=!0;for(let A=0;A<VR;A++){const S=Tp[A],E=o[S];if(E===void 0)continue;let M=!0;if(typeof E=="number"?M=E===(S.startsWith("scale")?1:0):M=parseFloat(E)===0,!M||h){const z=YD(E,n2[S]);if(!M){v=!1;const C=BR[S]||S;m+=`${C}(${z}) `}h&&(r[S]=z)}}return m=m.trim(),h?m=h(r,v?"":m):v&&(m="none"),m}function c2(o,r,h){const{style:m,vars:v,transformOrigin:A}=o;let S=!1,E=!1;for(const M in r){const z=r[M];if(Ap.has(M)){S=!0;continue}else if(ZT(M)){v[M]=z;continue}else{const C=YD(z,n2[M]);M.startsWith("origin")?(E=!0,A[M]=C):m[M]=C}}if(r.transform||(S||h?m.transform=HR(r,o.transform,h):m.transform&&(m.transform="none")),E){const{originX:M="50%",originY:z="50%",originZ:C=0}=A;m.transformOrigin=`${M} ${z} ${C}`}}const r2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WD(o,r,h){for(const m in r)!dl(r[m])&&!FD(m,h)&&(o[m]=r[m])}function LR({transformTemplate:o},r){return G.useMemo(()=>{const h=r2();return c2(h,r,o),Object.assign({},h.vars,h.style)},[r])}function qR(o,r){const h=o.style||{},m={};return WD(m,h,o),Object.assign(m,LR(o,r)),m}function YR(o,r){const h={},m=qR(o,r);return o.drag&&o.dragListener!==!1&&(h.draggable=!1,m.userSelect=m.WebkitUserSelect=m.WebkitTouchCallout="none",m.touchAction=o.drag===!0?"none":`pan-${o.drag==="x"?"y":"x"}`),o.tabIndex===void 0&&(o.onTap||o.onTapStart||o.whileTap)&&(h.tabIndex=0),h.style=m,h}const GR={offset:"stroke-dashoffset",array:"stroke-dasharray"},XR={offset:"strokeDashoffset",array:"strokeDasharray"};function QR(o,r,h=1,m=0,v=!0){o.pathLength=1;const A=v?GR:XR;o[A.offset]=Ft.transform(-m);const S=Ft.transform(r),E=Ft.transform(h);o[A.array]=`${S} ${E}`}function ID(o,{attrX:r,attrY:h,attrScale:m,pathLength:v,pathSpacing:A=1,pathOffset:S=0,...E},M,z,C){if(c2(o,E,z),M){o.style.viewBox&&(o.attrs.viewBox=o.style.viewBox);return}o.attrs=o.style,o.style={};const{attrs:R,style:N}=o;R.transform&&(N.transform=R.transform,delete R.transform),(N.transform||R.transformOrigin)&&(N.transformOrigin=R.transformOrigin??"50% 50%",delete R.transformOrigin),N.transform&&(N.transformBox=C?.transformBox??"fill-box",delete R.transformBox),r!==void 0&&(R.x=r),h!==void 0&&(R.y=h),m!==void 0&&(R.scale=m),v!==void 0&&QR(R,v,A,S,!1)}const PD=()=>({...r2(),attrs:{}}),tM=o=>typeof o=="string"&&o.toLowerCase()==="svg";function ZR(o,r,h,m){const v=G.useMemo(()=>{const A=PD();return ID(A,r,tM(m),o.transformTemplate,o.style),{...A.attrs,style:{...A.style}}},[r]);if(o.style){const A={};WD(A,o.style,o),v.style={...A,...v.style}}return v}const JR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function f2(o){return typeof o!="string"||o.includes("-")?!1:!!(JR.indexOf(o)>-1||/[A-Z]/u.test(o))}function KR(o,r,h,{latestValues:m},v,A=!1){const E=(f2(o)?ZR:YR)(r,m,v,o),M=wR(r,typeof o=="string",A),z=o!==G.Fragment?{...M,...E,ref:h}:{},{children:C}=r,R=G.useMemo(()=>dl(C)?C.get():C,[C]);return G.createElement(o,{...z,children:R})}function ex(o){const r=[{},{}];return o?.values.forEach((h,m)=>{r[0][m]=h.get(),r[1][m]=h.getVelocity()}),r}function d2(o,r,h,m){if(typeof r=="function"){const[v,A]=ex(m);r=r(h!==void 0?h:o.custom,v,A)}if(typeof r=="string"&&(r=o.variants&&o.variants[r]),typeof r=="function"){const[v,A]=ex(m);r=r(h!==void 0?h:o.custom,v,A)}return r}function oS(o){return dl(o)?o.get():o}function $R({scrapeMotionValuesFromProps:o,createRenderState:r},h,m,v){return{latestValues:kR(h,m,v,o),renderState:r()}}function kR(o,r,h,m){const v={},A=m(o,{});for(const N in A)v[N]=oS(A[N]);let{initial:S,animate:E}=o;const M=SS(o),z=kD(o);r&&z&&!M&&o.inherit!==!1&&(S===void 0&&(S=r.initial),E===void 0&&(E=r.animate));let C=h?h.initial===!1:!1;C=C||S===!1;const R=C?E:S;if(R&&typeof R!="boolean"&&!bS(R)){const N=Array.isArray(R)?R:[R];for(let k=0;k<N.length;k++){const lt=d2(o,N[k]);if(lt){const{transitionEnd:st,transition:ft,...P}=lt;for(const ot in P){let it=P[ot];if(Array.isArray(it)){const St=C?it.length-1:0;it=it[St]}it!==null&&(v[ot]=it)}for(const ot in st)v[ot]=st[ot]}}}return v}const eM=o=>(r,h)=>{const m=G.useContext(vS),v=G.useContext(gS),A=()=>$R(o,r,m,v);return h?A():BT(A)};function h2(o,r,h){const{style:m}=o,v={};for(const A in m)(dl(m[A])||r.style&&dl(r.style[A])||FD(A,o)||h?.getValue(A)?.liveStyle!==void 0)&&(v[A]=m[A]);return v}const FR=eM({scrapeMotionValuesFromProps:h2,createRenderState:r2});function nM(o,r,h){const m=h2(o,r,h);for(const v in o)if(dl(o[v])||dl(r[v])){const A=Tp.indexOf(v)!==-1?"attr"+v.charAt(0).toUpperCase()+v.substring(1):v;m[A]=o[v]}return m}const WR=eM({scrapeMotionValuesFromProps:nM,createRenderState:PD}),IR=Symbol.for("motionComponentSymbol");function fp(o){return o&&typeof o=="object"&&Object.prototype.hasOwnProperty.call(o,"current")}function PR(o,r,h){return G.useCallback(m=>{m&&o.onMount&&o.onMount(m),r&&(m?r.mount(m):r.unmount()),h&&(typeof h=="function"?h(m):fp(h)&&(h.current=m))},[r])}const m2=o=>o.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tO="framerAppearId",aM="data-"+m2(tO),lM=G.createContext({});function eO(o,r,h,m,v){const{visualElement:A}=G.useContext(vS),S=G.useContext(u2),E=G.useContext(gS),M=G.useContext(i2).reducedMotion,z=G.useRef(null);m=m||S.renderer,!z.current&&m&&(z.current=m(o,{visualState:r,parent:A,props:h,presenceContext:E,blockInitialAnimation:E?E.initial===!1:!1,reducedMotionConfig:M}));const C=z.current,R=G.useContext(lM);C&&!C.projection&&v&&(C.type==="html"||C.type==="svg")&&nO(z.current,h,v,R);const N=G.useRef(!1);G.useInsertionEffect(()=>{C&&N.current&&C.update(h,E)});const k=h[aM],lt=G.useRef(!!k&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return nD(()=>{C&&(N.current=!0,window.MotionIsMounted=!0,C.updateFeatures(),C.scheduleRenderMicrotask(),lt.current&&C.animationState&&C.animationState.animateChanges())}),G.useEffect(()=>{C&&(!lt.current&&C.animationState&&C.animationState.animateChanges(),lt.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),lt.current=!1),C.enteringChildren=void 0)}),C}function nO(o,r,h,m){const{layoutId:v,layout:A,drag:S,dragConstraints:E,layoutScroll:M,layoutRoot:z,layoutCrossfade:C}=r;o.projection=new h(o.latestValues,r["data-framer-portal-id"]?void 0:iM(o.parent)),o.projection.setOptions({layoutId:v,layout:A,alwaysMeasureLayout:!!S||E&&fp(E),visualElement:o,animationType:typeof A=="string"?A:"both",initialPromotionConfig:m,crossfade:C,layoutScroll:M,layoutRoot:z})}function iM(o){if(o)return o.options.allowProjection!==!1?o.projection:iM(o.parent)}function sS(o,{forwardMotionProps:r=!1}={},h,m){h&&xT(h);const v=f2(o)?WR:FR;function A(E,M){let z;const C={...G.useContext(i2),...E,layoutId:aO(E)},{isStatic:R}=C,N=NR(E),k=v(E,R);if(!R&&VT){lO(C,h);const lt=iO(C);z=lt.MeasureLayout,N.visualElement=eO(o,k,C,m,lt.ProjectionNode)}return B.jsxs(vS.Provider,{value:N,children:[z&&N.visualElement?B.jsx(z,{visualElement:N.visualElement,...C}):null,KR(o,E,PR(k,N.visualElement,M),k,R,r)]})}A.displayName=`motion.${typeof o=="string"?o:`create(${o.displayName??o.name??""})`}`;const S=G.forwardRef(A);return S[IR]=o,S}function aO({layoutId:o}){const r=G.useContext(_T).id;return r&&o!==void 0?r+"-"+o:o}function lO(o,r){const h=G.useContext(u2).strict;if(process.env.NODE_ENV!=="production"&&r&&h){const m="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";o.ignoreStrict?bp(!1,m,"lazy-strict-mode"):xc(!1,m,"lazy-strict-mode")}}function iO(o){const{drag:r,layout:h}=vp;if(!r&&!h)return{};const m={...r,...h};return{MeasureLayout:r?.isEnabled(o)||h?.isEnabled(o)?m.MeasureLayout:void 0,ProjectionNode:m.ProjectionNode}}function uO(o,r){if(typeof Proxy>"u")return sS;const h=new Map,m=(A,S)=>sS(A,S,o,r),v=(A,S)=>(process.env.NODE_ENV!=="production"&>(!1,"motion() is deprecated. Use motion.create() instead."),m(A,S));return new Proxy(v,{get:(A,S)=>S==="create"?m:(h.has(S)||h.set(S,sS(S,void 0,o,r)),h.get(S))})}function uM({top:o,left:r,right:h,bottom:m}){return{x:{min:r,max:h},y:{min:o,max:m}}}function oO({x:o,y:r}){return{top:r.min,right:o.max,bottom:r.max,left:o.min}}function sO(o,r){if(!r)return o;const h=r({x:o.left,y:o.top}),m=r({x:o.right,y:o.bottom});return{top:h.y,left:h.x,bottom:m.y,right:m.x}}function P1(o){return o===void 0||o===1}function DT({scale:o,scaleX:r,scaleY:h}){return!P1(o)||!P1(r)||!P1(h)}function Kd(o){return DT(o)||oM(o)||o.z||o.rotate||o.rotateX||o.rotateY||o.skewX||o.skewY}function oM(o){return nx(o.x)||nx(o.y)}function nx(o){return o&&o!=="0%"}function yS(o,r,h){const m=o-h,v=r*m;return h+v}function ax(o,r,h,m,v){return v!==void 0&&(o=yS(o,v,m)),yS(o,h,m)+r}function MT(o,r=0,h=1,m,v){o.min=ax(o.min,r,h,m,v),o.max=ax(o.max,r,h,m,v)}function sM(o,{x:r,y:h}){MT(o.x,r.translate,r.scale,r.originPoint),MT(o.y,h.translate,h.scale,h.originPoint)}const lx=.999999999999,ix=1.0000000000001;function cO(o,r,h,m=!1){const v=h.length;if(!v)return;r.x=r.y=1;let A,S;for(let E=0;E<v;E++){A=h[E],S=A.projectionDelta;const{visualElement:M}=A.options;M&&M.props.style&&M.props.style.display==="contents"||(m&&A.options.layoutScroll&&A.scroll&&A!==A.root&&hp(o,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),S&&(r.x*=S.x.scale,r.y*=S.y.scale,sM(o,S)),m&&Kd(A.latestValues)&&hp(o,A.latestValues))}r.x<ix&&r.x>lx&&(r.x=1),r.y<ix&&r.y>lx&&(r.y=1)}function dp(o,r){o.min=o.min+r,o.max=o.max+r}function ux(o,r,h,m,v=.5){const A=Un(o.min,o.max,v);MT(o,r,h,A,m)}function hp(o,r){ux(o.x,r.x,r.scaleX,r.scale,r.originX),ux(o.y,r.y,r.scaleY,r.scale,r.originY)}function cM(o,r){return uM(sO(o.getBoundingClientRect(),r))}function rO(o,r,h){const m=cM(o,h),{scroll:v}=r;return v&&(dp(m.x,v.offset.x),dp(m.y,v.offset.y)),m}const ox=()=>({translate:0,scale:1,origin:0,originPoint:0}),mp=()=>({x:ox(),y:ox()}),sx=()=>({min:0,max:0}),$n=()=>({x:sx(),y:sx()}),zT={current:null},rM={current:!1};function fO(){if(rM.current=!0,!!VT)if(window.matchMedia){const o=window.matchMedia("(prefers-reduced-motion)"),r=()=>zT.current=o.matches;o.addEventListener("change",r),r()}else zT.current=!1}const dO=new WeakMap;function hO(o,r,h){for(const m in r){const v=r[m],A=h[m];if(dl(v))o.addValue(m,v);else if(dl(A))o.addValue(m,gp(v,{owner:o}));else if(A!==v)if(o.hasValue(m)){const S=o.getValue(m);S.liveStyle===!0?S.jump(v):S.hasAnimated||S.set(v)}else{const S=o.getStaticValue(m);o.addValue(m,gp(S!==void 0?S:v,{owner:o}))}}for(const m in h)r[m]===void 0&&o.removeValue(m);return r}const cx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mO{scrapeMotionValuesFromProps(r,h,m){return{}}constructor({parent:r,props:h,presenceContext:m,reducedMotionConfig:v,blockInitialAnimation:A,visualState:S},E={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const N=ri.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,An.render(this.render,!1,!0))};const{latestValues:M,renderState:z}=S;this.latestValues=M,this.baseTarget={...M},this.initialValues=h.initial?{...M}:{},this.renderState=z,this.parent=r,this.props=h,this.presenceContext=m,this.depth=r?r.depth+1:0,this.reducedMotionConfig=v,this.options=E,this.blockInitialAnimation=!!A,this.isControllingVariants=SS(h),this.isVariantNode=kD(h),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:C,...R}=this.scrapeMotionValuesFromProps(h,{},this);for(const N in R){const k=R[N];M[N]!==void 0&&dl(k)&&k.set(M[N])}}mount(r){this.current=r,dO.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((h,m)=>this.bindToMotionValue(m,h)),rM.current||fO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zT.current,process.env.NODE_ENV!=="production"&>(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),nf(this.notifyUpdate),nf(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const h=this.features[r];h&&(h.unmount(),h.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,h){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const m=Ap.has(r);m&&this.onBindTransform&&this.onBindTransform();const v=h.on("change",S=>{this.latestValues[r]=S,this.props.onUpdate&&An.preRender(this.notifyUpdate),m&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let A;window.MotionCheckAppearSync&&(A=window.MotionCheckAppearSync(this,r,h)),this.valueSubscriptions.set(r,()=>{v(),A&&A(),h.owner&&h.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in vp){const h=vp[r];if(!h)continue;const{isEnabled:m,Feature:v}=h;if(!this.features[r]&&v&&m(this.props)&&(this.features[r]=new v(this)),this.features[r]){const A=this.features[r];A.isMounted?A.update():(A.mount(),A.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$n()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,h){this.latestValues[r]=h}update(r,h){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=h;for(let m=0;m<cx.length;m++){const v=cx[m];this.propEventSubscriptions[v]&&(this.propEventSubscriptions[v](),delete this.propEventSubscriptions[v]);const A="on"+v,S=r[A];S&&(this.propEventSubscriptions[v]=this.on(v,S))}this.prevMotionValues=hO(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const h=this.getClosestVariantNode();if(h)return h.variantChildren&&h.variantChildren.add(r),()=>h.variantChildren.delete(r)}addValue(r,h){const m=this.values.get(r);h!==m&&(m&&this.removeValue(r),this.bindToMotionValue(r,h),this.values.set(r,h),this.latestValues[r]=h.get())}removeValue(r){this.values.delete(r);const h=this.valueSubscriptions.get(r);h&&(h(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,h){if(this.props.values&&this.props.values[r])return this.props.values[r];let m=this.values.get(r);return m===void 0&&h!==void 0&&(m=gp(h===null?void 0:h,{owner:this}),this.addValue(r,m)),m}readValue(r,h){let m=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return m!=null&&(typeof m=="string"&&(aD(m)||iD(m))?m=parseFloat(m):!TR(m)&&af.test(h)&&(m=qD(r,h)),this.setBaseTarget(r,dl(m)?m.get():m)),dl(m)?m.get():m}setBaseTarget(r,h){this.baseTarget[r]=h}getBaseTarget(r){const{initial:h}=this.props;let m;if(typeof h=="string"||typeof h=="object"){const A=d2(this.props,h,this.presenceContext?.custom);A&&(m=A[r])}if(h&&m!==void 0)return m;const v=this.getBaseTargetFromProps(this.props,r);return v!==void 0&&!dl(v)?v:this.initialValues[r]!==void 0&&m===void 0?void 0:this.baseTarget[r]}on(r,h){return this.events[r]||(this.events[r]=new YT),this.events[r].add(h)}notify(r,...h){this.events[r]&&this.events[r].notify(...h)}scheduleRenderMicrotask(){a2.render(this.render)}}class fM extends mO{constructor(){super(...arguments),this.KeyframeResolver=cR}sortInstanceNodePosition(r,h){return r.compareDocumentPosition(h)&2?1:-1}getBaseTargetFromProps(r,h){return r.style?r.style[h]:void 0}removeValueFromRenderState(r,{vars:h,style:m}){delete h[r],delete m[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;dl(r)&&(this.childSubscription=r.on("change",h=>{this.current&&(this.current.textContent=`${h}`)}))}}function dM(o,{style:r,vars:h},m,v){const A=o.style;let S;for(S in r)A[S]=r[S];v?.applyProjectionStyles(A,m);for(S in h)A.setProperty(S,h[S])}function pO(o){return window.getComputedStyle(o)}class yO extends fM{constructor(){super(...arguments),this.type="html",this.renderInstance=dM}readValueFromInstance(r,h){if(Ap.has(h))return this.projection?.isProjecting?gT(h):zC(r,h);{const m=pO(r),v=(ZT(h)?m.getPropertyValue(h):m[h])||0;return typeof v=="string"?v.trim():v}}measureInstanceViewportBox(r,{transformPagePoint:h}){return cM(r,h)}build(r,h,m){c2(r,h,m.transformTemplate)}scrapeMotionValuesFromProps(r,h,m){return h2(r,h,m)}}const hM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gO(o,r,h,m){dM(o,r,void 0,m);for(const v in r.attrs)o.setAttribute(hM.has(v)?v:m2(v),r.attrs[v])}class vO extends fM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$n}getBaseTargetFromProps(r,h){return r[h]}readValueFromInstance(r,h){if(Ap.has(h)){const m=LD(h);return m&&m.default||0}return h=hM.has(h)?h:m2(h),r.getAttribute(h)}scrapeMotionValuesFromProps(r,h,m){return nM(r,h,m)}build(r,h,m){ID(r,h,this.isSVGTag,m.transformTemplate,m.style)}renderInstance(r,h,m,v){gO(r,h,m,v)}mount(r){this.isSVGTag=tM(r.tagName),super.mount(r)}}const mM=(o,r)=>f2(o)?new vO(r):new yO(r,{allowProjection:o!==G.Fragment});function yp(o,r,h){const m=o.getProps();return d2(m,r,h!==void 0?h:m.custom,o)}const CT=o=>Array.isArray(o);function bO(o,r,h){o.hasValue(r)?o.getValue(r).set(h):o.addValue(r,gp(h))}function SO(o){return CT(o)?o[o.length-1]||0:o}function TO(o,r){const h=yp(o,r);let{transitionEnd:m={},transition:v={},...A}=h||{};A={...A,...m};for(const S in A){const E=SO(A[S]);bO(o,S,E)}}function AO(o){return!!(dl(o)&&o.add)}function RT(o,r){const h=o.getValue("willChange");if(AO(h))return h.add(r);if(!h&&Dc.WillChange){const m=new Dc.WillChange("auto");o.addValue("willChange",m),m.add(r)}}function pM(o){return o.props[aM]}const EO=o=>o!==null;function xO(o,{repeat:r,repeatType:h="loop"},m){const v=o.filter(EO),A=r&&h!=="loop"&&r%2===1?0:v.length-1;return v[A]}const DO={type:"spring",stiffness:500,damping:25,restSpeed:10},MO=o=>({type:"spring",stiffness:550,damping:o===0?2*Math.sqrt(550):30,restSpeed:10}),zO={type:"keyframes",duration:.8},CO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},RO=(o,{keyframes:r})=>r.length>2?zO:Ap.has(o)?o.startsWith("scale")?MO(r[1]):DO:CO;function OO({when:o,delay:r,delayChildren:h,staggerChildren:m,staggerDirection:v,repeat:A,repeatType:S,repeatDelay:E,from:M,elapsed:z,...C}){return!!Object.keys(C).length}const p2=(o,r,h,m={},v,A)=>S=>{const E=e2(m,o)||{},M=E.delay||m.delay||0;let{elapsed:z=0}=m;z=z-Do(M);const C={keyframes:Array.isArray(h)?h:[null,h],ease:"easeOut",velocity:r.getVelocity(),...E,delay:-z,onUpdate:N=>{r.set(N),E.onUpdate&&E.onUpdate(N)},onComplete:()=>{S(),E.onComplete&&E.onComplete()},name:o,motionValue:r,element:A?void 0:v};OO(E)||Object.assign(C,RO(o,C)),C.duration&&(C.duration=Do(C.duration)),C.repeatDelay&&(C.repeatDelay=Do(C.repeatDelay)),C.from!==void 0&&(C.keyframes[0]=C.from);let R=!1;if((C.type===!1||C.duration===0&&!C.repeatDelay)&&(AT(C),C.delay===0&&(R=!0)),(Dc.instantAnimations||Dc.skipAnimations)&&(R=!0,AT(C),C.delay=0),C.allowFlatten=!E.type&&!E.ease,R&&!A&&r.get()!==void 0){const N=xO(C.keyframes,E);if(N!==void 0){An.update(()=>{C.onUpdate(N),C.onComplete()});return}}return E.isSync?new PT(C):new FC(C)};function UO({protectedKeys:o,needsAnimating:r},h){const m=o.hasOwnProperty(h)&&r[h]!==!0;return r[h]=!1,m}function yM(o,r,{delay:h=0,transitionOverride:m,type:v}={}){let{transition:A=o.getDefaultTransition(),transitionEnd:S,...E}=r;m&&(A=m);const M=[],z=v&&o.animationState&&o.animationState.getState()[v];for(const C in E){const R=o.getValue(C,o.latestValues[C]??null),N=E[C];if(N===void 0||z&&UO(z,C))continue;const k={delay:h,...e2(A||{},C)},lt=R.get();if(lt!==void 0&&!R.isAnimating&&!Array.isArray(N)&&N===lt&&!k.velocity)continue;let st=!1;if(window.MotionHandoffAnimation){const P=pM(o);if(P){const ot=window.MotionHandoffAnimation(P,C,An);ot!==null&&(k.startTime=ot,st=!0)}}RT(o,C),R.start(p2(C,R,N,o.shouldReduceMotion&&BD.has(C)?{type:!1}:k,o,st));const ft=R.animation;ft&&M.push(ft)}return S&&Promise.all(M).then(()=>{An.update(()=>{S&&TO(o,S)})}),M}function gM(o,r,h,m=0,v=1){const A=Array.from(o).sort((z,C)=>z.sortNodePosition(C)).indexOf(r),S=o.size,E=(S-1)*m;return typeof h=="function"?h(A,S):v===1?A*m:E-A*m}function OT(o,r,h={}){const m=yp(o,r,h.type==="exit"?o.presenceContext?.custom:void 0);let{transition:v=o.getDefaultTransition()||{}}=m||{};h.transitionOverride&&(v=h.transitionOverride);const A=m?()=>Promise.all(yM(o,m,h)):()=>Promise.resolve(),S=o.variantChildren&&o.variantChildren.size?(M=0)=>{const{delayChildren:z=0,staggerChildren:C,staggerDirection:R}=v;return wO(o,r,M,z,C,R,h)}:()=>Promise.resolve(),{when:E}=v;if(E){const[M,z]=E==="beforeChildren"?[A,S]:[S,A];return M().then(()=>z())}else return Promise.all([A(),S(h.delay)])}function wO(o,r,h=0,m=0,v=0,A=1,S){const E=[];for(const M of o.variantChildren)M.notify("AnimationStart",r),E.push(OT(M,r,{...S,delay:h+(typeof m=="function"?0:m)+gM(o.variantChildren,M,m,v,A)}).then(()=>M.notify("AnimationComplete",r)));return Promise.all(E)}function jO(o,r,h={}){o.notify("AnimationStart",r);let m;if(Array.isArray(r)){const v=r.map(A=>OT(o,A,h));m=Promise.all(v)}else if(typeof r=="string")m=OT(o,r,h);else{const v=typeof r=="function"?yp(o,r,h.custom):r;m=Promise.all(yM(o,v,h))}return m.then(()=>{o.notify("AnimationComplete",r)})}function vM(o,r){if(!Array.isArray(r))return!1;const h=r.length;if(h!==o.length)return!1;for(let m=0;m<h;m++)if(r[m]!==o[m])return!1;return!0}const NO=s2.length;function bM(o){if(!o)return;if(!o.isControllingVariants){const h=o.parent?bM(o.parent)||{}:{};return o.props.initial!==void 0&&(h.initial=o.props.initial),h}const r={};for(let h=0;h<NO;h++){const m=s2[h],v=o.props[m];(D0(v)||v===!1)&&(r[m]=v)}return r}const _O=[...o2].reverse(),BO=o2.length;function VO(o){return r=>Promise.all(r.map(({animation:h,options:m})=>jO(o,h,m)))}function HO(o){let r=VO(o),h=rx(),m=!0;const v=M=>(z,C)=>{const R=yp(o,C,M==="exit"?o.presenceContext?.custom:void 0);if(R){const{transition:N,transitionEnd:k,...lt}=R;z={...z,...lt,...k}}return z};function A(M){r=M(o)}function S(M){const{props:z}=o,C=bM(o.parent)||{},R=[],N=new Set;let k={},lt=1/0;for(let ft=0;ft<BO;ft++){const P=_O[ft],ot=h[P],it=z[P]!==void 0?z[P]:C[P],St=D0(it),Et=P===M?ot.isActive:null;Et===!1&&(lt=ft);let gt=it===C[P]&&it!==z[P]&&St;if(gt&&m&&o.manuallyAnimateOnMount&&(gt=!1),ot.protectedKeys={...k},!ot.isActive&&Et===null||!it&&!ot.prevProp||bS(it)||typeof it=="boolean")continue;const Ct=LO(ot.prevProp,it);let dt=Ct||P===M&&ot.isActive&&!gt&&St||ft>lt&&St,Lt=!1;const pt=Array.isArray(it)?it:[it];let Wt=pt.reduce(v(P),{});Et===!1&&(Wt={});const{prevResolvedValues:Dt={}}=ot,Jt={...Dt,...Wt},Je=K=>{dt=!0,N.has(K)&&(Lt=!0,N.delete(K)),ot.needsAnimating[K]=!0;const ct=o.getValue(K);ct&&(ct.liveStyle=!1)};for(const K in Jt){const ct=Wt[K],Mt=Dt[K];if(k.hasOwnProperty(K))continue;let Ot=!1;CT(ct)&&CT(Mt)?Ot=!vM(ct,Mt):Ot=ct!==Mt,Ot?ct!=null?Je(K):N.add(K):ct!==void 0&&N.has(K)?Je(K):ot.protectedKeys[K]=!0}ot.prevProp=it,ot.prevResolvedValues=Wt,ot.isActive&&(k={...k,...Wt}),m&&o.blockInitialAnimation&&(dt=!1);const je=gt&&Ct;dt&&(!je||Lt)&&R.push(...pt.map(K=>{const ct={type:P};if(typeof K=="string"&&m&&!je&&o.manuallyAnimateOnMount&&o.parent){const{parent:Mt}=o,Ot=yp(Mt,K);if(Mt.enteringChildren&&Ot){const{delayChildren:be}=Ot.transition||{};ct.delay=gM(Mt.enteringChildren,o,be)}}return{animation:K,options:ct}}))}if(N.size){const ft={};if(typeof z.initial!="boolean"){const P=yp(o,Array.isArray(z.initial)?z.initial[0]:z.initial);P&&P.transition&&(ft.transition=P.transition)}N.forEach(P=>{const ot=o.getBaseTarget(P),it=o.getValue(P);it&&(it.liveStyle=!0),ft[P]=ot??null}),R.push({animation:ft})}let st=!!R.length;return m&&(z.initial===!1||z.initial===z.animate)&&!o.manuallyAnimateOnMount&&(st=!1),m=!1,st?r(R):Promise.resolve()}function E(M,z){if(h[M].isActive===z)return Promise.resolve();o.variantChildren?.forEach(R=>R.animationState?.setActive(M,z)),h[M].isActive=z;const C=S(M);for(const R in h)h[R].protectedKeys={};return C}return{animateChanges:S,setActive:E,setAnimateFunction:A,getState:()=>h,reset:()=>{h=rx()}}}function LO(o,r){return typeof r=="string"?r!==o:Array.isArray(r)?!vM(r,o):!1}function Zd(o=!1){return{isActive:o,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rx(){return{animate:Zd(!0),whileInView:Zd(),whileHover:Zd(),whileTap:Zd(),whileDrag:Zd(),whileFocus:Zd(),exit:Zd()}}class lf{constructor(r){this.isMounted=!1,this.node=r}update(){}}class qO extends lf{constructor(r){super(r),r.animationState||(r.animationState=HO(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();bS(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:h}=this.node.prevProps||{};r!==h&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let YO=0;class GO extends lf{constructor(){super(...arguments),this.id=YO++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:h}=this.node.presenceContext,{isPresent:m}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===m)return;const v=this.node.animationState.setActive("exit",!r);h&&!r&&v.then(()=>{h(this.id)})}mount(){const{register:r,onExitComplete:h}=this.node.presenceContext||{};h&&h(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const SM={animation:{Feature:qO},exit:{Feature:GO}};function z0(o,r,h,m={passive:!0}){return o.addEventListener(r,h,m),()=>o.removeEventListener(r,h)}function U0(o){return{point:{x:o.pageX,y:o.pageY}}}const XO=o=>r=>l2(r)&&o(r,U0(r));function g0(o,r,h,m){return z0(o,r,XO(h),m)}const TM=1e-4,QO=1-TM,ZO=1+TM,AM=.01,JO=0-AM,KO=0+AM;function Vl(o){return o.max-o.min}function $O(o,r,h){return Math.abs(o-r)<=h}function fx(o,r,h,m=.5){o.origin=m,o.originPoint=Un(r.min,r.max,o.origin),o.scale=Vl(h)/Vl(r),o.translate=Un(h.min,h.max,o.origin)-o.originPoint,(o.scale>=QO&&o.scale<=ZO||isNaN(o.scale))&&(o.scale=1),(o.translate>=JO&&o.translate<=KO||isNaN(o.translate))&&(o.translate=0)}function v0(o,r,h,m){fx(o.x,r.x,h.x,m?m.originX:void 0),fx(o.y,r.y,h.y,m?m.originY:void 0)}function dx(o,r,h){o.min=h.min+r.min,o.max=o.min+Vl(r)}function kO(o,r,h){dx(o.x,r.x,h.x),dx(o.y,r.y,h.y)}function hx(o,r,h){o.min=r.min-h.min,o.max=o.min+Vl(r)}function b0(o,r,h){hx(o.x,r.x,h.x),hx(o.y,r.y,h.y)}function Yu(o){return[o("x"),o("y")]}const EM=({current:o})=>o?o.ownerDocument.defaultView:null,mx=(o,r)=>Math.abs(o-r);function FO(o,r){const h=mx(o.x,r.x),m=mx(o.y,r.y);return Math.sqrt(h**2+m**2)}class xM{constructor(r,h,{transformPagePoint:m,contextWindow:v=window,dragSnapToOrigin:A=!1,distanceThreshold:S=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=eT(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,lt=FO(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!k&&!lt)return;const{point:st}=N,{timestamp:ft}=Pa;this.history.push({...st,timestamp:ft});const{onStart:P,onMove:ot}=this.handlers;k||(P&&P(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),ot&&ot(this.lastMoveEvent,N)},this.handlePointerMove=(N,k)=>{this.lastMoveEvent=N,this.lastMoveEventInfo=tT(k,this.transformPagePoint),An.update(this.updatePoint,!0)},this.handlePointerUp=(N,k)=>{this.end();const{onEnd:lt,onSessionEnd:st,resumeAnimation:ft}=this.handlers;if(this.dragSnapToOrigin&&ft&&ft(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=eT(N.type==="pointercancel"?this.lastMoveEventInfo:tT(k,this.transformPagePoint),this.history);this.startEvent&<&<(N,P),st&&st(N,P)},!l2(r))return;this.dragSnapToOrigin=A,this.handlers=h,this.transformPagePoint=m,this.distanceThreshold=S,this.contextWindow=v||window;const E=U0(r),M=tT(E,this.transformPagePoint),{point:z}=M,{timestamp:C}=Pa;this.history=[{...z,timestamp:C}];const{onSessionStart:R}=h;R&&R(r,eT(M,this.history)),this.removeListeners=C0(g0(this.contextWindow,"pointermove",this.handlePointerMove),g0(this.contextWindow,"pointerup",this.handlePointerUp),g0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),nf(this.updatePoint)}}function tT(o,r){return r?{point:r(o.point)}:o}function px(o,r){return{x:o.x-r.x,y:o.y-r.y}}function eT({point:o},r){return{point:o,delta:px(o,DM(r)),offset:px(o,WO(r)),velocity:IO(r,.1)}}function WO(o){return o[0]}function DM(o){return o[o.length-1]}function IO(o,r){if(o.length<2)return{x:0,y:0};let h=o.length-1,m=null;const v=DM(o);for(;h>=0&&(m=o[h],!(v.timestamp-m.timestamp>Do(r)));)h--;if(!m)return{x:0,y:0};const A=Gu(v.timestamp-m.timestamp);if(A===0)return{x:0,y:0};const S={x:(v.x-m.x)/A,y:(v.y-m.y)/A};return S.x===1/0&&(S.x=0),S.y===1/0&&(S.y=0),S}function PO(o,{min:r,max:h},m){return r!==void 0&&o<r?o=m?Un(r,o,m.min):Math.max(o,r):h!==void 0&&o>h&&(o=m?Un(h,o,m.max):Math.min(o,h)),o}function yx(o,r,h){return{min:r!==void 0?o.min+r:void 0,max:h!==void 0?o.max+h-(o.max-o.min):void 0}}function t4(o,{top:r,left:h,bottom:m,right:v}){return{x:yx(o.x,h,v),y:yx(o.y,r,m)}}function gx(o,r){let h=r.min-o.min,m=r.max-o.max;return r.max-r.min<o.max-o.min&&([h,m]=[m,h]),{min:h,max:m}}function e4(o,r){return{x:gx(o.x,r.x),y:gx(o.y,r.y)}}function n4(o,r){let h=.5;const m=Vl(o),v=Vl(r);return v>m?h=A0(r.min,r.max-m,o.min):m>v&&(h=A0(o.min,o.max-v,r.min)),Ec(0,1,h)}function a4(o,r){const h={};return r.min!==void 0&&(h.min=r.min-o.min),r.max!==void 0&&(h.max=r.max-o.min),h}const UT=.35;function l4(o=UT){return o===!1?o=0:o===!0&&(o=UT),{x:vx(o,"left","right"),y:vx(o,"top","bottom")}}function vx(o,r,h){return{min:bx(o,r),max:bx(o,h)}}function bx(o,r){return typeof o=="number"?o:o[r]||0}const i4=new WeakMap;class u4{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$n(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:h=!1,distanceThreshold:m}={}){const{presenceContext:v}=this.visualElement;if(v&&v.isPresent===!1)return;const A=R=>{const{dragSnapToOrigin:N}=this.getProps();N?this.pauseAnimation():this.stopAnimation(),h&&this.snapToCursor(U0(R).point)},S=(R,N)=>{const{drag:k,dragPropagation:lt,onDragStart:st}=this.getProps();if(k&&!lt&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hR(k),!this.openDragLock))return;this.latestPointerEvent=R,this.latestPanInfo=N,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yu(P=>{let ot=this.getAxisMotionValue(P).get()||0;if(ys.test(ot)){const{projection:it}=this.visualElement;if(it&&it.layout){const St=it.layout.layoutBox[P];St&&(ot=Vl(St)*(parseFloat(ot)/100))}}this.originPoint[P]=ot}),st&&An.postRender(()=>st(R,N)),RT(this.visualElement,"transform");const{animationState:ft}=this.visualElement;ft&&ft.setActive("whileDrag",!0)},E=(R,N)=>{this.latestPointerEvent=R,this.latestPanInfo=N;const{dragPropagation:k,dragDirectionLock:lt,onDirectionLock:st,onDrag:ft}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:P}=N;if(lt&&this.currentDirection===null){this.currentDirection=o4(P),this.currentDirection!==null&&st&&st(this.currentDirection);return}this.updateAxis("x",N.point,P),this.updateAxis("y",N.point,P),this.visualElement.render(),ft&&ft(R,N)},M=(R,N)=>{this.latestPointerEvent=R,this.latestPanInfo=N,this.stop(R,N),this.latestPointerEvent=null,this.latestPanInfo=null},z=()=>Yu(R=>this.getAnimationState(R)==="paused"&&this.getAxisMotionValue(R).animation?.play()),{dragSnapToOrigin:C}=this.getProps();this.panSession=new xM(r,{onSessionStart:A,onStart:S,onMove:E,onSessionEnd:M,resumeAnimation:z},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:C,distanceThreshold:m,contextWindow:EM(this.visualElement)})}stop(r,h){const m=r||this.latestPointerEvent,v=h||this.latestPanInfo,A=this.isDragging;if(this.cancel(),!A||!v||!m)return;const{velocity:S}=v;this.startAnimation(S);const{onDragEnd:E}=this.getProps();E&&An.postRender(()=>E(m,v))}cancel(){this.isDragging=!1;const{projection:r,animationState:h}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:m}=this.getProps();!m&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),h&&h.setActive("whileDrag",!1)}updateAxis(r,h,m){const{drag:v}=this.getProps();if(!m||!eS(r,v,this.currentDirection))return;const A=this.getAxisMotionValue(r);let S=this.originPoint[r]+m[r];this.constraints&&this.constraints[r]&&(S=PO(S,this.constraints[r],this.elastic[r])),A.set(S)}resolveConstraints(){const{dragConstraints:r,dragElastic:h}=this.getProps(),m=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,v=this.constraints;r&&fp(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&m?this.constraints=t4(m.layoutBox,r):this.constraints=!1,this.elastic=l4(h),v!==this.constraints&&m&&this.constraints&&!this.hasMutatedConstraints&&Yu(A=>{this.constraints!==!1&&this.getAxisMotionValue(A)&&(this.constraints[A]=a4(m.layoutBox[A],this.constraints[A]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:h}=this.getProps();if(!r||!fp(r))return!1;const m=r.current;xc(m!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:v}=this.visualElement;if(!v||!v.layout)return!1;const A=rO(m,v.root,this.visualElement.getTransformPagePoint());let S=e4(v.layout.layoutBox,A);if(h){const E=h(oO(S));this.hasMutatedConstraints=!!E,E&&(S=uM(E))}return S}startAnimation(r){const{drag:h,dragMomentum:m,dragElastic:v,dragTransition:A,dragSnapToOrigin:S,onDragTransitionEnd:E}=this.getProps(),M=this.constraints||{},z=Yu(C=>{if(!eS(C,h,this.currentDirection))return;let R=M&&M[C]||{};S&&(R={min:0,max:0});const N=v?200:1e6,k=v?40:1e7,lt={type:"inertia",velocity:m?r[C]:0,bounceStiffness:N,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...A,...R};return this.startAxisValueAnimation(C,lt)});return Promise.all(z).then(E)}startAxisValueAnimation(r,h){const m=this.getAxisMotionValue(r);return RT(this.visualElement,r),m.start(p2(r,m,0,h,this.visualElement,!1))}stopAnimation(){Yu(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Yu(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const h=`_drag${r.toUpperCase()}`,m=this.visualElement.getProps(),v=m[h];return v||this.visualElement.getValue(r,(m.initial?m.initial[r]:void 0)||0)}snapToCursor(r){Yu(h=>{const{drag:m}=this.getProps();if(!eS(h,m,this.currentDirection))return;const{projection:v}=this.visualElement,A=this.getAxisMotionValue(h);if(v&&v.layout){const{min:S,max:E}=v.layout.layoutBox[h];A.set(r[h]-Un(S,E,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:h}=this.getProps(),{projection:m}=this.visualElement;if(!fp(h)||!m||!this.constraints)return;this.stopAnimation();const v={x:0,y:0};Yu(S=>{const E=this.getAxisMotionValue(S);if(E&&this.constraints!==!1){const M=E.get();v[S]=n4({min:M,max:M},this.constraints[S])}});const{transformTemplate:A}=this.visualElement.getProps();this.visualElement.current.style.transform=A?A({},""):"none",m.root&&m.root.updateScroll(),m.updateLayout(),this.resolveConstraints(),Yu(S=>{if(!eS(S,r,null))return;const E=this.getAxisMotionValue(S),{min:M,max:z}=this.constraints[S];E.set(Un(M,z,v[S]))})}addListeners(){if(!this.visualElement.current)return;i4.set(this.visualElement,this);const r=this.visualElement.current,h=g0(r,"pointerdown",M=>{const{drag:z,dragListener:C=!0}=this.getProps();z&&C&&this.start(M)}),m=()=>{const{dragConstraints:M}=this.getProps();fp(M)&&M.current&&(this.constraints=this.resolveRefConstraints())},{projection:v}=this.visualElement,A=v.addEventListener("measure",m);v&&!v.layout&&(v.root&&v.root.updateScroll(),v.updateLayout()),An.read(m);const S=z0(window,"resize",()=>this.scalePositionWithinConstraints()),E=v.addEventListener("didUpdate",({delta:M,hasLayoutChanged:z})=>{this.isDragging&&z&&(Yu(C=>{const R=this.getAxisMotionValue(C);R&&(this.originPoint[C]+=M[C].translate,R.set(R.get()+M[C].translate))}),this.visualElement.render())});return()=>{S(),h(),A(),E&&E()}}getProps(){const r=this.visualElement.getProps(),{drag:h=!1,dragDirectionLock:m=!1,dragPropagation:v=!1,dragConstraints:A=!1,dragElastic:S=UT,dragMomentum:E=!0}=r;return{...r,drag:h,dragDirectionLock:m,dragPropagation:v,dragConstraints:A,dragElastic:S,dragMomentum:E}}}function eS(o,r,h){return(r===!0||r===o)&&(h===null||h===o)}function o4(o,r=10){let h=null;return Math.abs(o.y)>r?h="y":Math.abs(o.x)>r&&(h="x"),h}class s4 extends lf{constructor(r){super(r),this.removeGroupControls=Xu,this.removeListeners=Xu,this.controls=new u4(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xu}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sx=o=>(r,h)=>{o&&An.postRender(()=>o(r,h))};class c4 extends lf{constructor(){super(...arguments),this.removePointerDownListener=Xu}onPointerDown(r){this.session=new xM(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EM(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:h,onPan:m,onPanEnd:v}=this.node.getProps();return{onSessionStart:Sx(r),onStart:Sx(h),onMove:m,onEnd:(A,S)=>{delete this.session,v&&An.postRender(()=>v(A,S))}}}mount(){this.removePointerDownListener=g0(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Tx(o,r){return r.max===r.min?0:o/(r.max-r.min)*100}const d0={correct:(o,r)=>{if(!r.target)return o;if(typeof o=="string")if(Ft.test(o))o=parseFloat(o);else return o;const h=Tx(o,r.target.x),m=Tx(o,r.target.y);return`${h}% ${m}%`}},r4={correct:(o,{treeScale:r,projectionDelta:h})=>{const m=o,v=af.parse(o);if(v.length>5)return m;const A=af.createTransformer(o),S=typeof v[0]!="number"?1:0,E=h.x.scale*r.x,M=h.y.scale*r.y;v[0+S]/=E,v[1+S]/=M;const z=Un(E,M,.5);return typeof v[2+S]=="number"&&(v[2+S]/=z),typeof v[3+S]=="number"&&(v[3+S]/=z),A(v)}};let nT=!1;class f4 extends G.Component{componentDidMount(){const{visualElement:r,layoutGroup:h,switchLayoutGroup:m,layoutId:v}=this.props,{projection:A}=r;_R(d4),A&&(h.group&&h.group.add(A),m&&m.register&&v&&m.register(A),nT&&A.root.didUpdate(),A.addEventListener("animationComplete",()=>{this.safeToRemove()}),A.setOptions({...A.options,onExitComplete:()=>this.safeToRemove()})),cS.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:h,visualElement:m,drag:v,isPresent:A}=this.props,{projection:S}=m;return S&&(S.isPresent=A,nT=!0,v||r.layoutDependency!==h||h===void 0||r.isPresent!==A?S.willUpdate():this.safeToRemove(),r.isPresent!==A&&(A?S.promote():S.relegate()||An.postRender(()=>{const E=S.getStack();(!E||!E.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),a2.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:h,switchLayoutGroup:m}=this.props,{projection:v}=r;nT=!0,v&&(v.scheduleCheckAfterUnmount(),h&&h.group&&h.group.remove(v),m&&m.deregister&&m.deregister(v))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function MM(o){const[r,h]=KD(),m=G.useContext(_T);return B.jsx(f4,{...o,layoutGroup:m,switchLayoutGroup:G.useContext(lM),isPresent:r,safeToRemove:h})}const d4={borderRadius:{...d0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:d0,borderTopRightRadius:d0,borderBottomLeftRadius:d0,borderBottomRightRadius:d0,boxShadow:r4};function h4(o,r,h){const m=dl(o)?o:gp(o);return m.start(p2("",m,r,h)),m.animation}const m4=(o,r)=>o.depth-r.depth;class p4{constructor(){this.children=[],this.isDirty=!1}add(r){HT(this.children,r),this.isDirty=!0}remove(r){LT(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(m4),this.isDirty=!1,this.children.forEach(r)}}function y4(o,r){const h=ri.now(),m=({timestamp:v})=>{const A=v-h;A>=r&&(nf(m),o(A-r))};return An.setup(m,!0),()=>nf(m)}const zM=["TopLeft","TopRight","BottomLeft","BottomRight"],g4=zM.length,Ax=o=>typeof o=="string"?parseFloat(o):o,Ex=o=>typeof o=="number"||Ft.test(o);function v4(o,r,h,m,v,A){v?(o.opacity=Un(0,h.opacity??1,b4(m)),o.opacityExit=Un(r.opacity??1,0,S4(m))):A&&(o.opacity=Un(r.opacity??1,h.opacity??1,m));for(let S=0;S<g4;S++){const E=`border${zM[S]}Radius`;let M=xx(r,E),z=xx(h,E);if(M===void 0&&z===void 0)continue;M||(M=0),z||(z=0),M===0||z===0||Ex(M)===Ex(z)?(o[E]=Math.max(Un(Ax(M),Ax(z),m),0),(ys.test(z)||ys.test(M))&&(o[E]+="%")):o[E]=z}(r.rotate||h.rotate)&&(o.rotate=Un(r.rotate||0,h.rotate||0,m))}function xx(o,r){return o[r]!==void 0?o[r]:o.borderRadius}const b4=CM(0,.5,hD),S4=CM(.5,.95,Xu);function CM(o,r,h){return m=>m<o?0:m>r?1:h(A0(o,r,m))}function Dx(o,r){o.min=r.min,o.max=r.max}function qu(o,r){Dx(o.x,r.x),Dx(o.y,r.y)}function Mx(o,r){o.translate=r.translate,o.scale=r.scale,o.originPoint=r.originPoint,o.origin=r.origin}function zx(o,r,h,m,v){return o-=r,o=yS(o,1/h,m),v!==void 0&&(o=yS(o,1/v,m)),o}function T4(o,r=0,h=1,m=.5,v,A=o,S=o){if(ys.test(r)&&(r=parseFloat(r),r=Un(S.min,S.max,r/100)-S.min),typeof r!="number")return;let E=Un(A.min,A.max,m);o===A&&(E-=r),o.min=zx(o.min,r,h,E,v),o.max=zx(o.max,r,h,E,v)}function Cx(o,r,[h,m,v],A,S){T4(o,r[h],r[m],r[v],r.scale,A,S)}const A4=["x","scaleX","originX"],E4=["y","scaleY","originY"];function Rx(o,r,h,m){Cx(o.x,r,A4,h?h.x:void 0,m?m.x:void 0),Cx(o.y,r,E4,h?h.y:void 0,m?m.y:void 0)}function Ox(o){return o.translate===0&&o.scale===1}function RM(o){return Ox(o.x)&&Ox(o.y)}function Ux(o,r){return o.min===r.min&&o.max===r.max}function x4(o,r){return Ux(o.x,r.x)&&Ux(o.y,r.y)}function wx(o,r){return Math.round(o.min)===Math.round(r.min)&&Math.round(o.max)===Math.round(r.max)}function OM(o,r){return wx(o.x,r.x)&&wx(o.y,r.y)}function jx(o){return Vl(o.x)/Vl(o.y)}function Nx(o,r){return o.translate===r.translate&&o.scale===r.scale&&o.originPoint===r.originPoint}class D4{constructor(){this.members=[]}add(r){HT(this.members,r),r.scheduleRender()}remove(r){if(LT(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const h=this.members[this.members.length-1];h&&this.promote(h)}}relegate(r){const h=this.members.findIndex(v=>r===v);if(h===0)return!1;let m;for(let v=h;v>=0;v--){const A=this.members[v];if(A.isPresent!==!1){m=A;break}}return m?(this.promote(m),!0):!1}promote(r,h){const m=this.lead;if(r!==m&&(this.prevLead=m,this.lead=r,r.show(),m)){m.instance&&m.scheduleRender(),r.scheduleRender(),r.resumeFrom=m,h&&(r.resumeFrom.preserveOpacity=!0),m.snapshot&&(r.snapshot=m.snapshot,r.snapshot.latestValues=m.animationValues||m.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:v}=r.options;v===!1&&m.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:h,resumingFrom:m}=r;h.onExitComplete&&h.onExitComplete(),m&&m.options.onExitComplete&&m.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function M4(o,r,h){let m="";const v=o.x.translate/r.x,A=o.y.translate/r.y,S=h?.z||0;if((v||A||S)&&(m=`translate3d(${v}px, ${A}px, ${S}px) `),(r.x!==1||r.y!==1)&&(m+=`scale(${1/r.x}, ${1/r.y}) `),h){const{transformPerspective:z,rotate:C,rotateX:R,rotateY:N,skewX:k,skewY:lt}=h;z&&(m=`perspective(${z}px) ${m}`),C&&(m+=`rotate(${C}deg) `),R&&(m+=`rotateX(${R}deg) `),N&&(m+=`rotateY(${N}deg) `),k&&(m+=`skewX(${k}deg) `),lt&&(m+=`skewY(${lt}deg) `)}const E=o.x.scale*r.x,M=o.y.scale*r.y;return(E!==1||M!==1)&&(m+=`scale(${E}, ${M})`),m||"none"}const aT=["","X","Y","Z"],z4=1e3;let C4=0;function lT(o,r,h,m){const{latestValues:v}=r;v[o]&&(h[o]=v[o],r.setStaticValue(o,0),m&&(m[o]=0))}function UM(o){if(o.hasCheckedOptimisedAppear=!0,o.root===o)return;const{visualElement:r}=o.options;if(!r)return;const h=pM(r);if(window.MotionHasOptimisedAnimation(h,"transform")){const{layout:v,layoutId:A}=o.options;window.MotionCancelOptimisedAnimation(h,"transform",An,!(v||A))}const{parent:m}=o;m&&!m.hasCheckedOptimisedAppear&&UM(m)}function wM({attachResizeListener:o,defaultParent:r,measureScroll:h,checkIsScrollRoot:m,resetTransform:v}){return class{constructor(S={},E=r?.()){this.id=C4++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(U4),this.nodes.forEach(_4),this.nodes.forEach(B4),this.nodes.forEach(w4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=S,this.root=E?E.root||E:this,this.path=E?[...E.path,E]:[],this.parent=E,this.depth=E?E.depth+1:0;for(let M=0;M<this.path.length;M++)this.path[M].shouldResetTransform=!0;this.root===this&&(this.nodes=new p4)}addEventListener(S,E){return this.eventHandlers.has(S)||this.eventHandlers.set(S,new YT),this.eventHandlers.get(S).add(E)}notifyListeners(S,...E){const M=this.eventHandlers.get(S);M&&M.notify(...E)}hasListeners(S){return this.eventHandlers.has(S)}mount(S){if(this.instance)return;this.isSVG=JD(S)&&!bR(S),this.instance=S;const{layoutId:E,layout:M,visualElement:z}=this.options;if(z&&!z.current&&z.mount(S),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(M||E)&&(this.isLayoutDirty=!0),o){let C,R=0;const N=()=>this.root.updateBlockedByResize=!1;An.read(()=>{R=window.innerWidth}),o(S,()=>{const k=window.innerWidth;k!==R&&(R=k,this.root.updateBlockedByResize=!0,C&&C(),C=y4(N,250),cS.hasAnimatedSinceResize&&(cS.hasAnimatedSinceResize=!1,this.nodes.forEach(Vx)))})}E&&this.root.registerSharedNode(E,this),this.options.animate!==!1&&z&&(E||M)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:R,hasRelativeLayoutChanged:N,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const lt=this.options.transition||z.getDefaultTransition()||Y4,{onLayoutAnimationStart:st,onLayoutAnimationComplete:ft}=z.getProps(),P=!this.targetLayout||!OM(this.targetLayout,k),ot=!R&&N;if(this.options.layoutRoot||this.resumeFrom||ot||R&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const it={...e2(lt,"layout"),onPlay:st,onComplete:ft};(z.shouldReduceMotion||this.options.layoutRoot)&&(it.delay=0,it.type=!1),this.startAnimation(it),this.setAnimationOrigin(C,ot)}else R||Vx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const S=this.getStack();S&&S.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),nf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(V4),this.animationId++)}getTransformTemplate(){const{visualElement:S}=this.options;return S&&S.getProps().transformTemplate}willUpdate(S=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&UM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let C=0;C<this.path.length;C++){const R=this.path[C];R.shouldResetTransform=!0,R.updateScroll("snapshot"),R.options.layoutRoot&&R.willUpdate(!1)}const{layoutId:E,layout:M}=this.options;if(E===void 0&&!M)return;const z=this.getTransformTemplate();this.prevTransformTemplateValue=z?z(this.latestValues,""):void 0,this.updateSnapshot(),S&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_x);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(N4),this.nodes.forEach(R4),this.nodes.forEach(O4)):this.nodes.forEach(Bx),this.clearAllSnapshots();const E=ri.now();Pa.delta=Ec(0,1e3/60,E-Pa.timestamp),Pa.timestamp=E,Pa.isProcessing=!0,J1.update.process(Pa),J1.preRender.process(Pa),J1.render.process(Pa),Pa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j4),this.sharedNodes.forEach(H4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,An.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){An.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vl(this.snapshot.measuredBox.x)&&!Vl(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let M=0;M<this.path.length;M++)this.path[M].updateScroll();const S=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$n(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:E}=this.options;E&&E.notify("LayoutMeasure",this.layout.layoutBox,S?S.layoutBox:void 0)}updateScroll(S="measure"){let E=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===S&&(E=!1),E&&this.instance){const M=m(this.instance);this.scroll={animationId:this.root.animationId,phase:S,isRoot:M,offset:h(this.instance),wasRoot:this.scroll?this.scroll.isRoot:M}}}resetTransform(){if(!v)return;const S=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,E=this.projectionDelta&&!RM(this.projectionDelta),M=this.getTransformTemplate(),z=M?M(this.latestValues,""):void 0,C=z!==this.prevTransformTemplateValue;S&&this.instance&&(E||Kd(this.latestValues)||C)&&(v(this.instance,z),this.shouldResetTransform=!1,this.scheduleRender())}measure(S=!0){const E=this.measurePageBox();let M=this.removeElementScroll(E);return S&&(M=this.removeTransform(M)),G4(M),{animationId:this.root.animationId,measuredBox:E,layoutBox:M,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:S}=this.options;if(!S)return $n();const E=S.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(X4))){const{scroll:z}=this.root;z&&(dp(E.x,z.offset.x),dp(E.y,z.offset.y))}return E}removeElementScroll(S){const E=$n();if(qu(E,S),this.scroll?.wasRoot)return E;for(let M=0;M<this.path.length;M++){const z=this.path[M],{scroll:C,options:R}=z;z!==this.root&&C&&R.layoutScroll&&(C.wasRoot&&qu(E,S),dp(E.x,C.offset.x),dp(E.y,C.offset.y))}return E}applyTransform(S,E=!1){const M=$n();qu(M,S);for(let z=0;z<this.path.length;z++){const C=this.path[z];!E&&C.options.layoutScroll&&C.scroll&&C!==C.root&&hp(M,{x:-C.scroll.offset.x,y:-C.scroll.offset.y}),Kd(C.latestValues)&&hp(M,C.latestValues)}return Kd(this.latestValues)&&hp(M,this.latestValues),M}removeTransform(S){const E=$n();qu(E,S);for(let M=0;M<this.path.length;M++){const z=this.path[M];if(!z.instance||!Kd(z.latestValues))continue;DT(z.latestValues)&&z.updateSnapshot();const C=$n(),R=z.measurePageBox();qu(C,R),Rx(E,z.latestValues,z.snapshot?z.snapshot.layoutBox:void 0,C)}return Kd(this.latestValues)&&Rx(E,this.latestValues),E}setTargetDelta(S){this.targetDelta=S,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(S){this.options={...this.options,...S,crossfade:S.crossfade!==void 0?S.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Pa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(S=!1){const E=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=E.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=E.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=E.isSharedProjectionDirty);const M=!!this.resumingFrom||this!==E;if(!(S||M&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:C,layoutId:R}=this.options;if(!(!this.layout||!(C||R))){if(this.resolvedRelativeTargetAt=Pa.timestamp,!this.targetDelta&&!this.relativeTarget){const N=this.getClosestProjectingParent();N&&N.layout&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$n(),this.relativeTargetOrigin=$n(),b0(this.relativeTargetOrigin,this.layout.layoutBox,N.layout.layoutBox),qu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$n(),this.targetWithTransforms=$n()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):qu(this.target,this.layout.layoutBox),sM(this.target,this.targetDelta)):qu(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const N=this.getClosestProjectingParent();N&&!!N.resumingFrom==!!this.resumingFrom&&!N.options.layoutScroll&&N.target&&this.animationProgress!==1?(this.relativeParent=N,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$n(),this.relativeTargetOrigin=$n(),b0(this.relativeTargetOrigin,this.target,N.target),qu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||DT(this.parent.latestValues)||oM(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const S=this.getLead(),E=!!this.resumingFrom||this!==S;let M=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(M=!1),E&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(M=!1),this.resolvedRelativeTargetAt===Pa.timestamp&&(M=!1),M)return;const{layout:z,layoutId:C}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(z||C))return;qu(this.layoutCorrected,this.layout.layoutBox);const R=this.treeScale.x,N=this.treeScale.y;cO(this.layoutCorrected,this.treeScale,this.path,E),S.layout&&!S.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(S.target=S.layout.layoutBox,S.targetWithTransforms=$n());const{target:k}=S;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mx(this.prevProjectionDelta.x,this.projectionDelta.x),Mx(this.prevProjectionDelta.y,this.projectionDelta.y)),v0(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==R||this.treeScale.y!==N||!Nx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(S=!0){if(this.options.visualElement?.scheduleRender(),S){const E=this.getStack();E&&E.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mp(),this.projectionDelta=mp(),this.projectionDeltaWithTransform=mp()}setAnimationOrigin(S,E=!1){const M=this.snapshot,z=M?M.latestValues:{},C={...this.latestValues},R=mp();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!E;const N=$n(),k=M?M.source:void 0,lt=this.layout?this.layout.source:void 0,st=k!==lt,ft=this.getStack(),P=!ft||ft.members.length<=1,ot=!!(st&&!P&&this.options.crossfade===!0&&!this.path.some(q4));this.animationProgress=0;let it;this.mixTargetDelta=St=>{const Et=St/1e3;Hx(R.x,S.x,Et),Hx(R.y,S.y,Et),this.setTargetDelta(R),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(b0(N,this.layout.layoutBox,this.relativeParent.layout.layoutBox),L4(this.relativeTarget,this.relativeTargetOrigin,N,Et),it&&x4(this.relativeTarget,it)&&(this.isProjectionDirty=!1),it||(it=$n()),qu(it,this.relativeTarget)),st&&(this.animationValues=C,v4(C,z,this.latestValues,Et,ot,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Et},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(S){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(nf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=An.update(()=>{cS.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gp(0)),this.currentAnimation=h4(this.motionValue,[0,1e3],{...S,velocity:0,isSync:!0,onUpdate:E=>{this.mixTargetDelta(E),S.onUpdate&&S.onUpdate(E)},onStop:()=>{},onComplete:()=>{S.onComplete&&S.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const S=this.getStack();S&&S.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(z4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const S=this.getLead();let{targetWithTransforms:E,target:M,layout:z,latestValues:C}=S;if(!(!E||!M||!z)){if(this!==S&&this.layout&&z&&jM(this.options.animationType,this.layout.layoutBox,z.layoutBox)){M=this.target||$n();const R=Vl(this.layout.layoutBox.x);M.x.min=S.target.x.min,M.x.max=M.x.min+R;const N=Vl(this.layout.layoutBox.y);M.y.min=S.target.y.min,M.y.max=M.y.min+N}qu(E,M),hp(E,C),v0(this.projectionDeltaWithTransform,this.layoutCorrected,E,C)}}registerSharedNode(S,E){this.sharedNodes.has(S)||this.sharedNodes.set(S,new D4),this.sharedNodes.get(S).add(E);const z=E.options.initialPromotionConfig;E.promote({transition:z?z.transition:void 0,preserveFollowOpacity:z&&z.shouldPreserveFollowOpacity?z.shouldPreserveFollowOpacity(E):void 0})}isLead(){const S=this.getStack();return S?S.lead===this:!0}getLead(){const{layoutId:S}=this.options;return S?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:S}=this.options;return S?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:S}=this.options;if(S)return this.root.sharedNodes.get(S)}promote({needsReset:S,transition:E,preserveFollowOpacity:M}={}){const z=this.getStack();z&&z.promote(this,M),S&&(this.projectionDelta=void 0,this.needsReset=!0),E&&this.setOptions({transition:E})}relegate(){const S=this.getStack();return S?S.relegate(this):!1}resetSkewAndRotation(){const{visualElement:S}=this.options;if(!S)return;let E=!1;const{latestValues:M}=S;if((M.z||M.rotate||M.rotateX||M.rotateY||M.rotateZ||M.skewX||M.skewY)&&(E=!0),!E)return;const z={};M.z&&lT("z",S,z,this.animationValues);for(let C=0;C<aT.length;C++)lT(`rotate${aT[C]}`,S,z,this.animationValues),lT(`skew${aT[C]}`,S,z,this.animationValues);S.render();for(const C in z)S.setStaticValue(C,z[C]),this.animationValues&&(this.animationValues[C]=z[C]);S.scheduleRender()}applyProjectionStyles(S,E){if(!this.instance||this.isSVG)return;if(!this.isVisible){S.visibility="hidden";return}const M=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,S.visibility="",S.opacity="",S.pointerEvents=oS(E?.pointerEvents)||"",S.transform=M?M(this.latestValues,""):"none";return}const z=this.getLead();if(!this.projectionDelta||!this.layout||!z.target){this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=oS(E?.pointerEvents)||""),this.hasProjected&&!Kd(this.latestValues)&&(S.transform=M?M({},""):"none",this.hasProjected=!1);return}S.visibility="";const C=z.animationValues||z.latestValues;this.applyTransformsToTarget();let R=M4(this.projectionDeltaWithTransform,this.treeScale,C);M&&(R=M(C,R)),S.transform=R;const{x:N,y:k}=this.projectionDelta;S.transformOrigin=`${N.origin*100}% ${k.origin*100}% 0`,z.animationValues?S.opacity=z===this?C.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:S.opacity=z===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const lt in M0){if(C[lt]===void 0)continue;const{correct:st,applyTo:ft,isCSSVariable:P}=M0[lt],ot=R==="none"?C[lt]:st(C[lt],z);if(ft){const it=ft.length;for(let St=0;St<it;St++)S[ft[St]]=ot}else P?this.options.visualElement.renderState.vars[lt]=ot:S[lt]=ot}this.options.layoutId&&(S.pointerEvents=z===this?oS(E?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(S=>S.currentAnimation?.stop()),this.root.nodes.forEach(_x),this.root.sharedNodes.clear()}}}function R4(o){o.updateLayout()}function O4(o){const r=o.resumeFrom?.snapshot||o.snapshot;if(o.isLead()&&o.layout&&r&&o.hasListeners("didUpdate")){const{layoutBox:h,measuredBox:m}=o.layout,{animationType:v}=o.options,A=r.source!==o.layout.source;v==="size"?Yu(C=>{const R=A?r.measuredBox[C]:r.layoutBox[C],N=Vl(R);R.min=h[C].min,R.max=R.min+N}):jM(v,r.layoutBox,h)&&Yu(C=>{const R=A?r.measuredBox[C]:r.layoutBox[C],N=Vl(h[C]);R.max=R.min+N,o.relativeTarget&&!o.currentAnimation&&(o.isProjectionDirty=!0,o.relativeTarget[C].max=o.relativeTarget[C].min+N)});const S=mp();v0(S,h,r.layoutBox);const E=mp();A?v0(E,o.applyTransform(m,!0),r.measuredBox):v0(E,h,r.layoutBox);const M=!RM(S);let z=!1;if(!o.resumeFrom){const C=o.getClosestProjectingParent();if(C&&!C.resumeFrom){const{snapshot:R,layout:N}=C;if(R&&N){const k=$n();b0(k,r.layoutBox,R.layoutBox);const lt=$n();b0(lt,h,N.layoutBox),OM(k,lt)||(z=!0),C.options.layoutRoot&&(o.relativeTarget=lt,o.relativeTargetOrigin=k,o.relativeParent=C)}}}o.notifyListeners("didUpdate",{layout:h,snapshot:r,delta:E,layoutDelta:S,hasLayoutChanged:M,hasRelativeLayoutChanged:z})}else if(o.isLead()){const{onExitComplete:h}=o.options;h&&h()}o.options.transition=void 0}function U4(o){o.parent&&(o.isProjecting()||(o.isProjectionDirty=o.parent.isProjectionDirty),o.isSharedProjectionDirty||(o.isSharedProjectionDirty=!!(o.isProjectionDirty||o.parent.isProjectionDirty||o.parent.isSharedProjectionDirty)),o.isTransformDirty||(o.isTransformDirty=o.parent.isTransformDirty))}function w4(o){o.isProjectionDirty=o.isSharedProjectionDirty=o.isTransformDirty=!1}function j4(o){o.clearSnapshot()}function _x(o){o.clearMeasurements()}function Bx(o){o.isLayoutDirty=!1}function N4(o){const{visualElement:r}=o.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),o.resetTransform()}function Vx(o){o.finishAnimation(),o.targetDelta=o.relativeTarget=o.target=void 0,o.isProjectionDirty=!0}function _4(o){o.resolveTargetDelta()}function B4(o){o.calcProjection()}function V4(o){o.resetSkewAndRotation()}function H4(o){o.removeLeadSnapshot()}function Hx(o,r,h){o.translate=Un(r.translate,0,h),o.scale=Un(r.scale,1,h),o.origin=r.origin,o.originPoint=r.originPoint}function Lx(o,r,h,m){o.min=Un(r.min,h.min,m),o.max=Un(r.max,h.max,m)}function L4(o,r,h,m){Lx(o.x,r.x,h.x,m),Lx(o.y,r.y,h.y,m)}function q4(o){return o.animationValues&&o.animationValues.opacityExit!==void 0}const Y4={duration:.45,ease:[.4,0,.1,1]},qx=o=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(o),Yx=qx("applewebkit/")&&!qx("chrome/")?Math.round:Xu;function Gx(o){o.min=Yx(o.min),o.max=Yx(o.max)}function G4(o){Gx(o.x),Gx(o.y)}function jM(o,r,h){return o==="position"||o==="preserve-aspect"&&!$O(jx(r),jx(h),.2)}function X4(o){return o!==o.root&&o.scroll?.wasRoot}const Q4=wM({attachResizeListener:(o,r)=>z0(o,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iT={current:void 0},NM=wM({measureScroll:o=>({x:o.scrollLeft,y:o.scrollTop}),defaultParent:()=>{if(!iT.current){const o=new Q4({});o.mount(window),o.setOptions({layoutScroll:!0}),iT.current=o}return iT.current},resetTransform:(o,r)=>{o.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:o=>window.getComputedStyle(o).position==="fixed"}),Z4={pan:{Feature:c4},drag:{Feature:s4,ProjectionNode:NM,MeasureLayout:MM}};function Xx(o,r,h){const{props:m}=o;o.animationState&&m.whileHover&&o.animationState.setActive("whileHover",h==="Start");const v="onHover"+h,A=m[v];A&&An.postRender(()=>A(r,U0(r)))}class J4 extends lf{mount(){const{current:r}=this.node;r&&(this.unmount=mR(r,(h,m)=>(Xx(this.node,m,"Start"),v=>Xx(this.node,v,"End"))))}unmount(){}}class K4 extends lf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=C0(z0(this.node.current,"focus",()=>this.onFocus()),z0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qx(o,r,h){const{props:m}=o;if(o.current instanceof HTMLButtonElement&&o.current.disabled)return;o.animationState&&m.whileTap&&o.animationState.setActive("whileTap",h==="Start");const v="onTap"+(h==="End"?"":h),A=m[v];A&&An.postRender(()=>A(r,U0(r)))}class $4 extends lf{mount(){const{current:r}=this.node;r&&(this.unmount=vR(r,(h,m)=>(Qx(this.node,m,"Start"),(v,{success:A})=>Qx(this.node,v,A?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wT=new WeakMap,uT=new WeakMap,k4=o=>{const r=wT.get(o.target);r&&r(o)},F4=o=>{o.forEach(k4)};function W4({root:o,...r}){const h=o||document;uT.has(h)||uT.set(h,{});const m=uT.get(h),v=JSON.stringify(r);return m[v]||(m[v]=new IntersectionObserver(F4,{root:o,...r})),m[v]}function I4(o,r,h){const m=W4(r);return wT.set(o,h),m.observe(o),()=>{wT.delete(o),m.unobserve(o)}}const P4={some:0,all:1};class t5 extends lf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:h,margin:m,amount:v="some",once:A}=r,S={root:h?h.current:void 0,rootMargin:m,threshold:typeof v=="number"?v:P4[v]},E=M=>{const{isIntersecting:z}=M;if(this.isInView===z||(this.isInView=z,A&&!z&&this.hasEnteredView))return;z&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",z);const{onViewportEnter:C,onViewportLeave:R}=this.node.getProps(),N=z?C:R;N&&N(M)};return I4(this.node.current,S,E)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:h}=this.node;["amount","margin","root"].some(e5(r,h))&&this.startObserver()}unmount(){}}function e5({viewport:o={}},{viewport:r={}}={}){return h=>o[h]!==r[h]}const _M={inView:{Feature:t5},tap:{Feature:$4},focus:{Feature:K4},hover:{Feature:J4}},n5={layout:{ProjectionNode:NM,MeasureLayout:MM}},a5={...SM,..._M,...Z4,...n5},l5=uO(a5,mM),i5={renderer:mM,...SM,..._M};function BM(o,r){return sS(o,r)}const nS=BM("div"),u5=BM("p"),ps=Symbol.for("@arcteninc/core:originalName");function o5(o,r){return o[ps]=r,o}function s5(o,r,h,m){if(typeof o!="function")return null;const v=o[ps];if(v){const E=r[v];if(E&&!h.has(E.name))return{fn:o,meta:E}}const A=o.name;let S;if(A&&(S=r[A],S&&!h.has(S.name)))return o[ps]=S.name,{fn:o,meta:S};if(m&&m.length>0){for(const E of m)if(!h.has(E)&&(S=r[E],S))return o[ps]=S.name,{fn:o,meta:S}}else if(S=Object.values(r).find(M=>!h.has(M.name)),S)return o[ps]=S.name,{fn:o,meta:S};return null}function VM(o,r){let h,m;if(!r)throw new Error(`❌ toolMetadata is required!
|
|
9
|
+
`),()=>{A.contains(v)&&A.removeChild(v)}},[e]),h.jsx(nu,{isPresent:e,childRef:o,sizeRef:r,children:Ct.cloneElement(t,{ref:c})})}const iu=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:c})=>{const u=ks(ru),l=m.useId();let d=!0,f=m.useMemo(()=>(d=!1,{id:l,initial:e,isPresent:n,custom:i,onExitComplete:g=>{u.set(g,!0);for(const x of u.values())if(!x)return;s&&s()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,s]);return o&&d&&(f={...f}),m.useMemo(()=>{u.forEach((g,x)=>u.set(x,!1))},[n]),Ct.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),r==="popLayout"&&(t=h.jsx(su,{isPresent:n,anchorX:a,root:c,children:t})),h.jsx(Dn.Provider,{value:f,children:t})};function ru(){return new Map}function Vo(t=!0){const e=m.useContext(Dn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=m.useId();m.useEffect(()=>{if(t)return i(o)},[t]);const r=m.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const gn=t=>t.key||"";function Ui(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const ou=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:c})=>{const[u,l]=Vo(r),d=m.useMemo(()=>Ui(t),[t]),f=r&&!u?[]:d.map(gn),g=m.useRef(!0),x=m.useRef(d),v=ks(()=>new Map),[A,y]=m.useState(d),[w,b]=m.useState(d);$r(()=>{g.current=!1,x.current=d;for(let j=0;j<w.length;j++){const L=gn(w[j]);f.includes(L)?v.delete(L):v.get(L)!==!0&&v.set(L,!1)}},[w,f.length,f.join("-")]);const k=[];if(d!==A){let j=[...d];for(let L=0;L<w.length;L++){const V=w[L],$=gn(V);f.includes($)||(j.splice(L,0,V),k.push(V))}return o==="wait"&&k.length&&(j=k),b(Ui(j)),y(d),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=m.useContext(Es);return h.jsx(h.Fragment,{children:w.map(j=>{const L=gn(j),V=r&&!u?!1:d===w||f.includes(L),$=()=>{if(v.has(L))v.set(L,!0);else return;let q=!0;v.forEach(nt=>{nt||(q=!1)}),q&&(M?.(),b(x.current),r&&l?.(),s&&s())};return h.jsx(iu,{isPresent:V,initial:!g.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:V?void 0:$,anchorX:a,children:j},L)})})},ti=m.createContext({strict:!1}),_i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ee={};for(const t in _i)Ee[t]={isEnabled:e=>_i[t].some(n=>!!e[n])};function xs(t){for(const e in t)Ee[e]={...Ee[e],...t[e]}}function au({children:t,features:e,strict:n=!1}){const[,s]=m.useState(!Xn(e)),i=m.useRef(void 0);if(!Xn(e)){const{renderer:o,...r}=e;i.current=o,xs(r)}return m.useEffect(()=>{Xn(e)&&e().then(({renderer:o,...r})=>{xs(r),i.current=o,s(!0)})},[]),h.jsx(ti.Provider,{value:{renderer:i.current,strict:n},children:t})}function Xn(t){return typeof t=="function"}const cu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function En(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||cu.has(t)}let No=t=>!En(t);function lu(t){typeof t=="function"&&(No=e=>e.startsWith("on")?!En(e):t(e))}try{lu(require("@emotion/is-prop-valid").default)}catch{}function uu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(No(i)||n===!0&&En(i)||!e&&!En(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Vn=m.createContext({});function Nn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Qe(t){return typeof t=="string"||Array.isArray(t)}const ei=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ni=["initial",...ei];function Rn(t){return Nn(t.animate)||ni.some(e=>Qe(t[e]))}function Ro(t){return!!(Rn(t)||t.variants)}function du(t,e){if(Rn(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Qe(n)?n:void 0,animate:Qe(s)?s:void 0}}return t.inherit!==!1?e:{}}function hu(t){const{initial:e,animate:n}=du(t,m.useContext(Vn));return m.useMemo(()=>({initial:e,animate:n}),[Wi(e),Wi(n)])}function Wi(t){return Array.isArray(t)?t.join(" "):t}const tn={};function fu(t){for(const e in t)tn[e]=t[e],Bs(e)&&(tn[e].isCSSVariable=!0)}function Io(t,{layout:e,layoutId:n}){return Ne.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}const mu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pu=Ve.length;function gu(t,e,n){let s="",i=!0;for(let o=0;o<pu;o++){const r=Ve[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=Po(a,Ys[r]);if(!c){i=!1;const l=mu[r]||r;s+=`${l}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function si(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ne.has(c)){r=!0;continue}else if(Bs(c)){i[c]=u;continue}else{const l=Po(u,Ys[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=gu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}const ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lo(t,e,n){for(const s in e)!at(e[s])&&!Io(s,n)&&(t[s]=e[s])}function yu({transformTemplate:t},e){return m.useMemo(()=>{const n=ii();return si(n,e,t),Object.assign({},n.vars,n.style)},[e])}function xu(t,e){const n=t.style||{},s={};return Lo(s,n,t),Object.assign(s,yu(t,e)),s}function vu(t,e){const n={},s=xu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const bu={offset:"stroke-dashoffset",array:"stroke-dasharray"},wu={offset:"strokeDashoffset",array:"strokeDasharray"};function Tu(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?bu:wu;t[o.offset]=I.transform(-s);const r=I.transform(e),a=I.transform(n);t[o.array]=`${r} ${a}`}function Oo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(si(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete d.transformBox),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Tu(d,i,o,r,!1)}const Fo=()=>({...ii(),attrs:{}}),Bo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Su(t,e,n,s){const i=m.useMemo(()=>{const o=Fo();return Oo(o,e,Bo(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Lo(o,t.style,t),i.style={...o,...i.style}}return i}const Au=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ri(t){return typeof t!="string"||t.includes("-")?!1:!!(Au.indexOf(t)>-1||/[A-Z]/u.test(t))}function Cu(t,e,n,{latestValues:s},i,o=!1){const a=(ri(t)?Su:vu)(e,s,i,t),c=uu(e,typeof t=="string",o),u=t!==m.Fragment?{...c,...a,ref:n}:{},{children:l}=e,d=m.useMemo(()=>at(l)?l.get():l,[l]);return m.createElement(t,{...u,children:d})}function Ki(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function oi(t,e,n,s){if(typeof e=="function"){const[i,o]=Ki(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Ki(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function wn(t){return at(t)?t.get():t}function Pu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:ju(n,s,i,t),renderState:e()}}function ju(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=wn(o[f]);let{initial:r,animate:a}=t;const c=Rn(t),u=Ro(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const d=l?a:r;if(d&&typeof d!="boolean"&&!Nn(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g<f.length;g++){const x=oi(t,f[g]);if(x){const{transitionEnd:v,transition:A,...y}=x;for(const w in y){let b=y[w];if(Array.isArray(b)){const k=l?b.length-1:0;b=b[k]}b!==null&&(i[w]=b)}for(const w in v)i[w]=v[w]}}}return i}const $o=t=>(e,n)=>{const s=m.useContext(Vn),i=m.useContext(Dn),o=()=>Pu(t,e,s,i);return n?o():ks(o)};function ai(t,e,n){const{style:s}=t,i={};for(const o in s)(at(s[o])||e.style&&at(e.style[o])||Io(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const Mu=$o({scrapeMotionValuesFromProps:ai,createRenderState:ii});function zo(t,e,n){const s=ai(t,e,n);for(const i in t)if(at(t[i])||at(e[i])){const o=Ve.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const Eu=$o({scrapeMotionValuesFromProps:zo,createRenderState:Fo}),ku=Symbol.for("motionComponentSymbol");function Te(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Du(t,e,n){return m.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Te(n)&&(n.current=s))},[e])}const ci=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vu="framerAppearId",Uo="data-"+ci(Vu),_o=m.createContext({});function Nu(t,e,n,s,i){const{visualElement:o}=m.useContext(Vn),r=m.useContext(ti),a=m.useContext(Dn),c=m.useContext(Qs).reducedMotion,u=m.useRef(null);s=s||r.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const l=u.current,d=m.useContext(_o);l&&!l.projection&&i&&(l.type==="html"||l.type==="svg")&&Ru(u.current,n,i,d);const f=m.useRef(!1);m.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const g=n[Uo],x=m.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return $r(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),x.current&&l.animationState&&l.animationState.animateChanges())}),m.useEffect(()=>{l&&(!x.current&&l.animationState&&l.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),x.current=!1),l.enteringChildren=void 0)}),l}function Ru(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Wo(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Te(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:c,layoutRoot:u})}function Wo(t){if(t)return t.options.allowProjection!==!1?t.projection:Wo(t.parent)}function Tn(t,{forwardMotionProps:e=!1}={},n,s){n&&xs(n);const i=ri(t)?Eu:Mu;function o(a,c){let u;const l={...m.useContext(Qs),...a,layoutId:Iu(a)},{isStatic:d}=l,f=hu(a),g=i(a,d);if(!d&&Ds){Lu(l,n);const x=Ou(l);u=x.MeasureLayout,f.visualElement=Nu(t,g,l,s,x.ProjectionNode)}return h.jsxs(Vn.Provider,{value:f,children:[u&&f.visualElement?h.jsx(u,{visualElement:f.visualElement,...l}):null,Cu(t,a,Du(g,f.visualElement,c),g,d,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=m.forwardRef(o);return r[ku]=t,r}function Iu({layoutId:t}){const e=m.useContext(Es).id;return e&&t!==void 0?e+"-"+t:t}function Lu(t,e){const n=m.useContext(ti).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ke(!1,s,"lazy-strict-mode"):Ot(!1,s,"lazy-strict-mode")}}function Ou(t){const{drag:e,layout:n}=Ee;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Fu(t,e){if(typeof Proxy>"u")return Tn;const n=new Map,s=(o,r)=>Tn(o,r,t,e),i=(o,r)=>(process.env.NODE_ENV!=="production"&&Ls(!1,"motion() is deprecated. Use motion.create() instead."),s(o,r));return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Tn(r,void 0,t,e)),n.get(r))})}function Ko({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Bu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function $u(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function qn(t){return t===void 0||t===1}function vs({scale:t,scaleX:e,scaleY:n}){return!qn(t)||!qn(e)||!qn(n)}function oe(t){return vs(t)||Ho(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ho(t){return Hi(t.x)||Hi(t.y)}function Hi(t){return t&&t!=="0%"}function kn(t,e,n){const s=t-n,i=e*s;return n+i}function Gi(t,e,n,s,i){return i!==void 0&&(t=kn(t,i,s)),kn(t,n,s)+e}function bs(t,e=0,n=1,s,i){t.min=Gi(t.min,e,n,s,i),t.max=Gi(t.max,e,n,s,i)}function Go(t,{x:e,y:n}){bs(t.x,e.translate,e.scale,e.originPoint),bs(t.y,n.translate,n.scale,n.originPoint)}const Xi=.999999999999,qi=1.0000000000001;function zu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ae(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Go(t,r)),s&&oe(o.latestValues)&&Ae(t,o.latestValues))}e.x<qi&&e.x>Xi&&(e.x=1),e.y<qi&&e.y>Xi&&(e.y=1)}function Se(t,e){t.min=t.min+e,t.max=t.max+e}function Yi(t,e,n,s,i=.5){const o=X(t.min,t.max,i);bs(t,e,n,o,s)}function Ae(t,e){Yi(t.x,e.x,e.scaleX,e.scale,e.originX),Yi(t.y,e.y,e.scaleY,e.scale,e.originY)}function Xo(t,e){return Ko($u(t.getBoundingClientRect(),e))}function Uu(t,e,n){const s=Xo(t,n),{scroll:i}=e;return i&&(Se(s.x,i.offset.x),Se(s.y,i.offset.y)),s}const Ji=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ce=()=>({x:Ji(),y:Ji()}),Zi=()=>({min:0,max:0}),Y=()=>({x:Zi(),y:Zi()}),ws={current:null},qo={current:!1};function _u(){if(qo.current=!0,!!Ds)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ws.current=t.matches;t.addEventListener("change",e),e()}else ws.current=!1}const Wu=new WeakMap;function Ku(t,e,n){for(const s in e){const i=e[s],o=n[s];if(at(i))t.addValue(s,i);else if(at(o))t.addValue(s,Me(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Me(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Qi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Hu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=mt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,H.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Rn(n),this.isVariantNode=Ro(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const g=d[f];c[f]!==void 0&&at(g)&&g.set(c[f])}}mount(e){this.current=e,Wu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),qo.current||_u(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ws.current,process.env.NODE_ENV!=="production"&&Ls(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Gt(this.notifyUpdate),Gt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Ne.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&H.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ee){const n=Ee[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Qi.length;s++){const i=Qi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Ku(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Me(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(zr(s)||_r(s))?s=parseFloat(s):!Ql(s)&&Xt.test(n)&&(s=Co(e,n)),this.setBaseTarget(e,at(s)?s.get():s)),at(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=oi(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!at(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Is),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Js.render(this.render)}}class Yo extends Hu{constructor(){super(...arguments),this.KeyframeResolver=zl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;at(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Jo(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Gu(t){return window.getComputedStyle(t)}class Xu extends Yo{constructor(){super(...arguments),this.type="html",this.renderInstance=Jo}readValueFromInstance(e,n){if(Ne.has(n))return this.projection?.isProjecting?ds(n):rl(e,n);{const s=Gu(e),i=(Bs(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Xo(e,n)}build(e,n,s){si(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return ai(e,n,s)}}const Zo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qu(t,e,n,s){Jo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Zo.has(i)?i:ci(i),e.attrs[i])}class Yu extends Yo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ne.has(n)){const s=Ao(n);return s&&s.default||0}return n=Zo.has(n)?n:ci(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return zo(e,n,s)}build(e,n,s){Oo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){qu(e,n,s,i)}mount(e){this.isSVGTag=Bo(e.tagName),super.mount(e)}}const Qo=(t,e)=>ri(t)?new Yu(e):new Xu(e,{allowProjection:t!==m.Fragment});function je(t,e,n){const s=t.getProps();return oi(s,e,n!==void 0?n:s.custom,t)}const Ts=t=>Array.isArray(t);function Ju(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Me(n))}function Zu(t){return Ts(t)?t[t.length-1]||0:t}function Qu(t,e){const n=je(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Zu(o[r]);Ju(t,r,a)}}function td(t){return!!(at(t)&&t.add)}function Ss(t,e){const n=t.getValue("willChange");if(td(n))return n.add(e);if(!n&&Ft.WillChange){const s=new Ft.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ta(t){return t.props[Uo]}const ed=t=>t!==null;function nd(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ed),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const sd={type:"spring",stiffness:500,damping:25,restSpeed:10},id=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),rd={type:"keyframes",duration:.8},od={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ad=(t,{keyframes:e})=>e.length>2?rd:Ne.has(t)?t.startsWith("scale")?id(e[1]):sd:od;function cd({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const li=(t,e,n,s={},i,o)=>r=>{const a=qs(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-Pt(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};cd(a)||Object.assign(l,ad(t,l)),l.duration&&(l.duration=Pt(l.duration)),l.repeatDelay&&(l.repeatDelay=Pt(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let d=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(gs(l),l.delay===0&&(d=!0)),(Ft.instantAnimations||Ft.skipAnimations)&&(d=!0,gs(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,d&&!o&&e.get()!==void 0){const f=nd(l.keyframes,a);if(f!==void 0){H.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Gs(l):new Ml(l)};function ld({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ea(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const l in a){const d=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||u&&ld(u,l))continue;const g={delay:n,...qs(o||{},l)},x=d.get();if(x!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===x&&!g.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=ta(t);if(y){const w=window.MotionHandoffAnimation(y,l,H);w!==null&&(g.startTime=w,v=!0)}}Ss(t,l),d.start(li(l,d,f,t.shouldReduceMotion&&wo.has(l)?{type:!1}:g,t,v));const A=d.animation;A&&c.push(A)}return r&&Promise.all(c).then(()=>{H.update(()=>{r&&Qu(t,r)})}),c}function na(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}function As(t,e,n={}){const s=je(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(ea(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:d}=i;return ud(t,e,c,u,l,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function ud(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(As(c,e,{...r,delay:n+(typeof s=="function"?0:s)+na(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function dd(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>As(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=As(t,e,n);else{const i=typeof e=="function"?je(t,e,n.custom):e;s=Promise.all(ea(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function sa(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const hd=ni.length;function ia(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ia(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<hd;n++){const s=ni[n],i=t.props[s];(Qe(i)||i===!1)&&(e[s]=i)}return e}const fd=[...ei].reverse(),md=ei.length;function pd(t){return e=>Promise.all(e.map(({animation:n,options:s})=>dd(t,n,s)))}function gd(t){let e=pd(t),n=tr(),s=!0;const i=c=>(u,l)=>{const d=je(t,l,c==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:g,...x}=d;u={...u,...x,...g}}return u};function o(c){e=c(t)}function r(c){const{props:u}=t,l=ia(t.parent)||{},d=[],f=new Set;let g={},x=1/0;for(let A=0;A<md;A++){const y=fd[A],w=n[y],b=u[y]!==void 0?u[y]:l[y],k=Qe(b),M=y===c?w.isActive:null;M===!1&&(x=A);let j=b===l[y]&&b!==u[y]&&k;if(j&&s&&t.manuallyAnimateOnMount&&(j=!1),w.protectedKeys={...g},!w.isActive&&M===null||!b&&!w.prevProp||Nn(b)||typeof b=="boolean")continue;const L=yd(w.prevProp,b);let V=L||y===c&&w.isActive&&!j&&k||A>x&&k,$=!1;const q=Array.isArray(b)?b:[b];let nt=q.reduce(i(y),{});M===!1&&(nt={});const{prevResolvedValues:U={}}=w,de={...U,...nt},Tt=B=>{V=!0,f.has(B)&&($=!0,f.delete(B)),w.needsAnimating[B]=!0;const ct=t.getValue(B);ct&&(ct.liveStyle=!1)};for(const B in de){const ct=nt[B],lt=U[B];if(g.hasOwnProperty(B))continue;let ut=!1;Ts(ct)&&Ts(lt)?ut=!sa(ct,lt):ut=ct!==lt,ut?ct!=null?Tt(B):f.add(B):ct!==void 0&&f.has(B)?Tt(B):w.protectedKeys[B]=!0}w.prevProp=b,w.prevResolvedValues=nt,w.isActive&&(g={...g,...nt}),s&&t.blockInitialAnimation&&(V=!1);const rt=j&&L;V&&(!rt||$)&&d.push(...q.map(B=>{const ct={type:y};if(typeof B=="string"&&s&&!rt&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,ut=je(lt,B);if(lt.enteringChildren&&ut){const{delayChildren:dt}=ut.transition||{};ct.delay=na(lt.enteringChildren,t,dt)}}return{animation:B,options:ct}}))}if(f.size){const A={};if(typeof u.initial!="boolean"){const y=je(t,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(A.transition=y.transition)}f.forEach(y=>{const w=t.getBaseTarget(y),b=t.getValue(y);b&&(b.liveStyle=!0),A[y]=w??null}),d.push({animation:A})}let v=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(d):Promise.resolve()}function a(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(c,u)),n[c].isActive=u;const l=r(c);for(const d in n)n[d].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=tr()}}}function yd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!sa(e,t):!1}function ie(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tr(){return{animate:ie(!0),whileInView:ie(),whileHover:ie(),whileTap:ie(),whileDrag:ie(),whileFocus:ie(),exit:ie()}}class qt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class xd extends qt{constructor(e){super(e),e.animationState||(e.animationState=gd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Nn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let vd=0;class bd extends qt{constructor(){super(...arguments),this.id=vd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ra={animation:{Feature:xd},exit:{Feature:bd}};function en(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function on(t){return{point:{x:t.pageX,y:t.pageY}}}const wd=t=>e=>Zs(e)&&t(e,on(e));function Ke(t,e,n,s){return en(t,e,wd(n),s)}const oa=1e-4,Td=1-oa,Sd=1+oa,aa=.01,Ad=0-aa,Cd=0+aa;function ft(t){return t.max-t.min}function Pd(t,e,n){return Math.abs(t-e)<=n}function er(t,e,n,s=.5){t.origin=s,t.originPoint=X(e.min,e.max,t.origin),t.scale=ft(n)/ft(e),t.translate=X(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Td&&t.scale<=Sd||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ad&&t.translate<=Cd||isNaN(t.translate))&&(t.translate=0)}function He(t,e,n,s){er(t.x,e.x,n.x,s?s.originX:void 0),er(t.y,e.y,n.y,s?s.originY:void 0)}function nr(t,e,n){t.min=n.min+e.min,t.max=t.min+ft(e)}function jd(t,e,n){nr(t.x,e.x,n.x),nr(t.y,e.y,n.y)}function sr(t,e,n){t.min=e.min-n.min,t.max=t.min+ft(e)}function Ge(t,e,n){sr(t.x,e.x,n.x),sr(t.y,e.y,n.y)}function vt(t){return[t("x"),t("y")]}const ca=({current:t})=>t?t.ownerDocument.defaultView:null,ir=(t,e)=>Math.abs(t-e);function Md(t,e){const n=ir(t.x,e.x),s=ir(t.y,e.y);return Math.sqrt(n**2+s**2)}class la{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Jn(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,x=Md(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!x)return;const{point:v}=f,{timestamp:A}=it;this.history.push({...v,timestamp:A});const{onStart:y,onMove:w}=this.handlers;g||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Yn(g,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:x,onSessionEnd:v,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Jn(f.type==="pointercancel"?this.lastMoveEventInfo:Yn(g,this.transformPagePoint),this.history);this.startEvent&&x&&x(f,y),v&&v(f,y)},!Zs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=on(e),c=Yn(a,this.transformPagePoint),{point:u}=c,{timestamp:l}=it;this.history=[{...u,timestamp:l}];const{onSessionStart:d}=n;d&&d(e,Jn(c,this.history)),this.removeListeners=nn(Ke(this.contextWindow,"pointermove",this.handlePointerMove),Ke(this.contextWindow,"pointerup",this.handlePointerUp),Ke(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Gt(this.updatePoint)}}function Yn(t,e){return e?{point:e(t.point)}:t}function rr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Jn({point:t},e){return{point:t,delta:rr(t,ua(e)),offset:rr(t,Ed(e)),velocity:kd(e,.1)}}function Ed(t){return t[0]}function ua(t){return t[t.length-1]}function kd(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=ua(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>Pt(e)));)n--;if(!s)return{x:0,y:0};const o=bt(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Dd(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?X(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?X(n,t,s.max):Math.min(t,n)),t}function or(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Vd(t,{top:e,left:n,bottom:s,right:i}){return{x:or(t.x,n,i),y:or(t.y,e,s)}}function ar(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Nd(t,e){return{x:ar(t.x,e.x),y:ar(t.y,e.y)}}function Rd(t,e){let n=.5;const s=ft(t),i=ft(e);return i>s?n=Ye(e.min,e.max-s,t.min):s>i&&(n=Ye(t.min,t.max-i,e.min)),Lt(0,1,n)}function Id(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Cs=.35;function Ld(t=Cs){return t===!1?t=0:t===!0&&(t=Cs),{x:cr(t,"left","right"),y:cr(t,"top","bottom")}}function cr(t,e,n){return{min:lr(t,e),max:lr(t,n)}}function lr(t,e){return typeof t=="number"?t:t[e]||0}const Od=new WeakMap;class Fd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(on(d).point)},r=(d,f)=>{const{drag:g,dragPropagation:x,onDragStart:v}=this.getProps();if(g&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Kl(g),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vt(y=>{let w=this.getAxisMotionValue(y).get()||0;if(Dt.test(w)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[y];k&&(w=ft(k)*(parseFloat(w)/100))}}this.originPoint[y]=w}),v&&H.postRender(()=>v(d,f)),Ss(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:x,onDirectionLock:v,onDrag:A}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:y}=f;if(x&&this.currentDirection===null){this.currentDirection=Bd(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),A&&A(d,f)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>vt(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new la(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:ca(this.visualElement)})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&H.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!yn(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Dd(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Te(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Vd(s.layoutBox,e):this.constraints=!1,this.elastic=Ld(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&vt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Id(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Te(e))return!1;const s=e.current;Ot(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Uu(s,i.root,this.visualElement.getTransformPagePoint());let r=Nd(i.layout.layoutBox,o);if(n){const a=n(Bu(r));this.hasMutatedConstraints=!!a,a&&(r=Ko(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=vt(l=>{if(!yn(l,n,this.currentDirection))return;let d=c&&c[l]||{};r&&(d={min:0,max:0});const f=i?200:1e6,g=i?40:1e7,x={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(l,x)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ss(this.visualElement,e),s.start(li(e,s,0,n,this.visualElement,!1))}stopAnimation(){vt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){vt(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){vt(n=>{const{drag:s}=this.getProps();if(!yn(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-X(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Te(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};vt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Rd({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),vt(r=>{if(!yn(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(X(c,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Od.set(this.visualElement,this);const e=this.visualElement.current,n=Ke(e,"pointerdown",c=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Te(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(s);const r=en(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(vt(l=>{const d=this.getAxisMotionValue(l);d&&(this.originPoint[l]+=c[l].translate,d.set(d.get()+c[l].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Cs,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function yn(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Bd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class $d extends qt{constructor(e){super(e),this.removeGroupControls=wt,this.removeListeners=wt,this.controls=new Fd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const ur=t=>(e,n)=>{t&&H.postRender(()=>t(e,n))};class zd extends qt{constructor(){super(...arguments),this.removePointerDownListener=wt}onPointerDown(e){this.session=new la(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ca(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ur(e),onStart:ur(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&H.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Ke(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ue={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(I.test(t))t=parseFloat(t);else return t;const n=dr(t,e.target.x),s=dr(t,e.target.y);return`${n}% ${s}%`}},Ud={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Xt.parse(t);if(i.length>5)return s;const o=Xt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const u=X(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};let Zn=!1;class _d extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;fu(Wd),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Zn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Sn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,Zn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||H.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Js.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Zn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function da(t){const[e,n]=Vo(),s=m.useContext(Es);return h.jsx(_d,{...t,layoutGroup:s,switchLayoutGroup:m.useContext(_o),isPresent:e,safeToRemove:n})}const Wd={borderRadius:{...Ue,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomLeftRadius:Ue,borderBottomRightRadius:Ue,boxShadow:Ud};function Kd(t,e,n){const s=at(t)?t:Me(t);return s.start(li("",s,e,n)),s.animation}const Hd=(t,e)=>t.depth-e.depth;class Gd{constructor(){this.children=[],this.isDirty=!1}add(e){Vs(this.children,e),this.isDirty=!0}remove(e){Ns(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hd),this.isDirty=!1,this.children.forEach(e)}}function Xd(t,e){const n=mt.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Gt(s),t(o-e))};return H.setup(s,!0),()=>Gt(s)}const ha=["TopLeft","TopRight","BottomLeft","BottomRight"],qd=ha.length,hr=t=>typeof t=="string"?parseFloat(t):t,fr=t=>typeof t=="number"||I.test(t);function Yd(t,e,n,s,i,o){i?(t.opacity=X(0,n.opacity??1,Jd(s)),t.opacityExit=X(e.opacity??1,0,Zd(s))):o&&(t.opacity=X(e.opacity??1,n.opacity??1,s));for(let r=0;r<qd;r++){const a=`border${ha[r]}Radius`;let c=mr(e,a),u=mr(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||fr(c)===fr(u)?(t[a]=Math.max(X(hr(c),hr(u),s),0),(Dt.test(u)||Dt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=X(e.rotate||0,n.rotate||0,s))}function mr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Jd=fa(0,.5,Jr),Zd=fa(.5,.95,wt);function fa(t,e,n){return s=>s<t?0:s>e?1:n(Ye(t,e,s))}function pr(t,e){t.min=e.min,t.max=e.max}function xt(t,e){pr(t.x,e.x),pr(t.y,e.y)}function gr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function yr(t,e,n,s,i){return t-=e,t=kn(t,1/n,s),i!==void 0&&(t=kn(t,1/i,s)),t}function Qd(t,e=0,n=1,s=.5,i,o=t,r=t){if(Dt.test(e)&&(e=parseFloat(e),e=X(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=X(o.min,o.max,s);t===o&&(a-=e),t.min=yr(t.min,e,n,a,i),t.max=yr(t.max,e,n,a,i)}function xr(t,e,[n,s,i],o,r){Qd(t,e[n],e[s],e[i],e.scale,o,r)}const th=["x","scaleX","originX"],eh=["y","scaleY","originY"];function vr(t,e,n,s){xr(t.x,e,th,n?n.x:void 0,s?s.x:void 0),xr(t.y,e,eh,n?n.y:void 0,s?s.y:void 0)}function br(t){return t.translate===0&&t.scale===1}function ma(t){return br(t.x)&&br(t.y)}function wr(t,e){return t.min===e.min&&t.max===e.max}function nh(t,e){return wr(t.x,e.x)&&wr(t.y,e.y)}function Tr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function pa(t,e){return Tr(t.x,e.x)&&Tr(t.y,e.y)}function Sr(t){return ft(t.x)/ft(t.y)}function Ar(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sh{constructor(){this.members=[]}add(e){Vs(this.members,e),e.scheduleRender()}remove(e){if(Ns(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ih(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:d,rotateY:f,skewX:g,skewY:x}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),g&&(s+=`skewX(${g}deg) `),x&&(s+=`skewY(${x}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Qn=["","X","Y","Z"],rh=1e3;let oh=0;function ts(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ga(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ta(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",H,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&ga(s)}function ya({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=oh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(lh),this.nodes.forEach(fh),this.nodes.forEach(mh),this.nodes.forEach(uh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gd)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Is),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Do(r)&&!Jl(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,d=0;const f=()=>this.root.updateBlockedByResize=!1;H.read(()=>{d=window.innerWidth}),t(r,()=>{const g=window.innerWidth;g!==d&&(d=g,this.root.updateBlockedByResize=!0,l&&l(),l=Xd(f,250),Sn.hasAnimatedSinceResize&&(Sn.hasAnimatedSinceResize=!1,this.nodes.forEach(jr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||vh,{onLayoutAnimationStart:v,onLayoutAnimationComplete:A}=u.getProps(),y=!this.targetLayout||!pa(this.targetLayout,g),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...qs(x,"layout"),onPlay:v,onComplete:A};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(l,w)}else d||jr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ph),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ga(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const d=this.path[l];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Pr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hh),this.nodes.forEach(ah),this.nodes.forEach(ch)):this.nodes.forEach(Pr),this.clearAllSnapshots();const a=mt.now();it.delta=Lt(0,1e3/60,a-it.timestamp),it.timestamp=a,it.isProcessing=!0,Un.update.process(it),Un.preRender.process(it),Un.render.process(it),it.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Js.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dh),this.sharedNodes.forEach(gh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ft(this.snapshot.measuredBox.x)&&!ft(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ma(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||oe(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),bh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return Y();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wh))){const{scroll:u}=this.root;u&&(Se(a.x,u.offset.x),Se(a.y,u.offset.y))}return a}removeElementScroll(r){const a=Y();if(xt(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:d}=u;u!==this.root&&l&&d.layoutScroll&&(l.wasRoot&&xt(a,r),Se(a.x,l.offset.x),Se(a.y,l.offset.y))}return a}applyTransform(r,a=!1){const c=Y();xt(c,r);for(let u=0;u<this.path.length;u++){const l=this.path[u];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Ae(c,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),oe(l.latestValues)&&Ae(c,l.latestValues)}return oe(this.latestValues)&&Ae(c,this.latestValues),c}removeTransform(r){const a=Y();xt(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!oe(u.latestValues))continue;vs(u.latestValues)&&u.updateSnapshot();const l=Y(),d=u.measurePageBox();xt(l,d),vr(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return oe(this.latestValues)&&vr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==it.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:d}=this.options;if(!(!this.layout||!(l||d))){if(this.resolvedRelativeTargetAt=it.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Ge(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xt(this.target,this.layout.layoutBox),Go(this.target,this.targetDelta)):xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Ge(this.relativeTargetOrigin,this.target,f.target),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vs(this.parent.latestValues)||Ho(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===it.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;xt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;zu(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=Y());const{target:g}=r;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gr(this.prevProjectionDelta.x,this.projectionDelta.x),gr(this.prevProjectionDelta.y,this.projectionDelta.y)),He(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Ar(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ar(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ce(),this.projectionDelta=Ce(),this.projectionDeltaWithTransform=Ce()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},d=Ce();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Y(),g=c?c.source:void 0,x=this.layout?this.layout.source:void 0,v=g!==x,A=this.getStack(),y=!A||A.members.length<=1,w=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(xh));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const M=k/1e3;Mr(d.x,r.x,M),Mr(d.y,r.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ge(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yh(this.relativeTarget,this.relativeTargetOrigin,f,M),b&&nh(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Y()),xt(b,this.relativeTarget)),v&&(this.animationValues=l,Yd(l,u,this.latestValues,M,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{Sn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Me(0)),this.currentAnimation=Kd(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&xa(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Y();const d=ft(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+d;const f=ft(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}xt(a,c),Ae(a,l),He(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new sh),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&ts("z",r,u,this.animationValues);for(let l=0;l<Qn.length;l++)ts(`rotate${Qn[l]}`,r,u,this.animationValues),ts(`skew${Qn[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=wn(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=wn(a?.pointerEvents)||""),this.hasProjected&&!oe(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=ih(this.projectionDeltaWithTransform,this.treeScale,l);c&&(d=c(l,d)),r.transform=d;const{x:f,y:g}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${g.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const x in tn){if(l[x]===void 0)continue;const{correct:v,applyTo:A,isCSSVariable:y}=tn[x],w=d==="none"?l[x]:v(l[x],u);if(A){const b=A.length;for(let k=0;k<b;k++)r[A[k]]=w}else y?this.options.visualElement.renderState.vars[x]=w:r[x]=w}this.options.layoutId&&(r.pointerEvents=u===this?wn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Cr),this.root.sharedNodes.clear()}}}function ah(t){t.updateLayout()}function ch(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?vt(l=>{const d=o?e.measuredBox[l]:e.layoutBox[l],f=ft(d);d.min=n[l].min,d.max=d.min+f}):xa(i,e.layoutBox,n)&&vt(l=>{const d=o?e.measuredBox[l]:e.layoutBox[l],f=ft(n[l]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=Ce();He(r,n,e.layoutBox);const a=Ce();o?He(a,t.applyTransform(s,!0),e.measuredBox):He(a,n,e.layoutBox);const c=!ma(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:d,layout:f}=l;if(d&&f){const g=Y();Ge(g,e.layoutBox,d.layoutBox);const x=Y();Ge(x,n,f.layoutBox),pa(g,x)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=x,t.relativeTargetOrigin=g,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function lh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function uh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function dh(t){t.clearSnapshot()}function Cr(t){t.clearMeasurements()}function Pr(t){t.isLayoutDirty=!1}function hh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function jr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fh(t){t.resolveTargetDelta()}function mh(t){t.calcProjection()}function ph(t){t.resetSkewAndRotation()}function gh(t){t.removeLeadSnapshot()}function Mr(t,e,n){t.translate=X(e.translate,0,n),t.scale=X(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Er(t,e,n,s){t.min=X(e.min,n.min,s),t.max=X(e.max,n.max,s)}function yh(t,e,n,s){Er(t.x,e.x,n.x,s),Er(t.y,e.y,n.y,s)}function xh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const vh={duration:.45,ease:[.4,0,.1,1]},kr=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Dr=kr("applewebkit/")&&!kr("chrome/")?Math.round:wt;function Vr(t){t.min=Dr(t.min),t.max=Dr(t.max)}function bh(t){Vr(t.x),Vr(t.y)}function xa(t,e,n){return t==="position"||t==="preserve-aspect"&&!Pd(Sr(e),Sr(n),.2)}function wh(t){return t!==t.root&&t.scroll?.wasRoot}const Th=ya({attachResizeListener:(t,e)=>en(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),es={current:void 0},va=ya({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!es.current){const t=new Th({});t.mount(window),t.setOptions({layoutScroll:!0}),es.current=t}return es.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Sh={pan:{Feature:zd},drag:{Feature:$d,ProjectionNode:va,MeasureLayout:da}};function Nr(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&H.postRender(()=>o(e,on(e)))}class Ah extends qt{mount(){const{current:e}=this.node;e&&(this.unmount=Hl(e,(n,s)=>(Nr(this.node,s,"Start"),i=>Nr(this.node,i,"End"))))}unmount(){}}class Ch extends qt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nn(en(this.node.current,"focus",()=>this.onFocus()),en(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rr(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&H.postRender(()=>o(e,on(e)))}class Ph extends qt{mount(){const{current:e}=this.node;e&&(this.unmount=Yl(e,(n,s)=>(Rr(this.node,s,"Start"),(i,{success:o})=>Rr(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ps=new WeakMap,ns=new WeakMap,jh=t=>{const e=Ps.get(t.target);e&&e(t)},Mh=t=>{t.forEach(jh)};function Eh({root:t,...e}){const n=t||document;ns.has(n)||ns.set(n,{});const s=ns.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Mh,{root:t,...e})),s[i]}function kh(t,e,n){const s=Eh(e);return Ps.set(t,n),s.observe(t),()=>{Ps.delete(t),s.unobserve(t)}}const Dh={some:0,all:1};class Vh extends qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Dh[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:d}=this.node.getProps(),f=u?l:d;f&&f(c)};return kh(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nh(e,n))&&this.startObserver()}unmount(){}}function Nh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ba={inView:{Feature:Vh},tap:{Feature:Ph},focus:{Feature:Ch},hover:{Feature:Ah}},Rh={layout:{ProjectionNode:va,MeasureLayout:da}},Ih={...ra,...ba,...Sh,...Rh},Lh=Fu(Ih,Qo),Oh={renderer:Qo,...ra,...ba};function wa(t,e){return Tn(t,e)}const xn=wa("div"),Fh=wa("p"),kt=Symbol.for("@arcteninc/core:originalName");function Bh(t,e){return t[kt]=e,t}function $h(t,e,n,s){if(typeof t!="function")return null;const i=t[kt];if(i){const a=e[i];if(a&&!n.has(a.name))return{fn:t,meta:a}}const o=t.name;let r;if(o&&(r=e[o],r&&!n.has(r.name)))return t[kt]=r.name,{fn:t,meta:r};if(s&&s.length>0){for(const a of s)if(!n.has(a)&&(r=e[a],r))return t[kt]=r.name,{fn:t,meta:r}}else if(r=Object.values(e).find(c=>!n.has(c.name)),r)return t[kt]=r.name,{fn:t,meta:r};return null}function Ta(t,e){let n,s;if(!e)throw new Error(`❌ toolMetadata is required!
|
|
10
10
|
|
|
11
11
|
Please:
|
|
12
12
|
1. Run "arcten-extract-types ." before build (add to package.json scripts)
|
|
@@ -15,231 +15,10 @@ Please:
|
|
|
15
15
|
3. Pass it to useAgent/ArctenAgent:
|
|
16
16
|
useAgent({ tools: [...], toolMetadata: toolMetadata })
|
|
17
17
|
(Pass the full object for better minification support, or toolMetadata.functions for backward compatibility)
|
|
18
|
-
`);if("functions"in
|
|
19
|
-
To fix: Run "arcten-extract-types ." and ensure "${z}" is used in ArctenAgent/useAgent.`),null}return v.add(S.meta.name),{name:S.meta.name,description:S.meta.description,jsonSchema:S.meta.parameters}}).filter(A=>A!==null)}function c5({toolName:o,description:r,args:h,onApprove:m,onDeny:v}){const A=Object.keys(h).length>0;return B.jsx("div",{className:"bg-stone-100 dark:bg-stone-800 border border-border rounded-lg px-3 py-2.5 my-1.5",children:B.jsxs("div",{className:"flex items-start gap-2",children:[B.jsxs("div",{className:"flex-1 min-w-0",children:[B.jsx("div",{className:"flex items-center gap-1.5 mb-1",children:B.jsx("span",{className:"text-sm font-medium text-foreground",children:o})}),A&&B.jsx("div",{className:"space-y-0.5 mb-1.5",children:Object.entries(h).map(([S,E])=>B.jsxs("div",{className:"flex items-start gap-1.5 text-xs",children:[B.jsxs("span",{className:"text-muted-foreground min-w-[60px]",children:[S,":"]}),B.jsx("span",{className:"font-mono text-foreground",children:typeof E=="string"?E:JSON.stringify(E)})]},S))})]}),B.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[B.jsxs(fS,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs",onClick:m,children:[B.jsx(Ta.Check,{className:"h-3 w-3 mr-1"}),"Approve"]}),B.jsx(fS,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs text-muted-foreground",onClick:v,children:B.jsx(Ta.X,{className:"h-3 w-3"})})]})]})})}function r5({toolName:o,args:r,isDenied:h,isSafe:m}){const[v,A]=G.useState(!1);if(o==="fetchDocContent")return null;const S=["k","maxResults","_organizationId"];o==="searchDocs"&&S.push("filters");const E=Object.fromEntries(Object.entries(r).filter(([z])=>!S.includes(z))),M=Object.keys(E).length>0;return B.jsxs("div",{className:"my-1",children:[B.jsxs("button",{onClick:()=>M&&A(!v),className:`inline-flex items-center gap-1.5 text-xs rounded-md px-2 py-1 transition-colors ${h?"bg-red-100 dark:bg-red-950/30 text-red-700 dark:text-red-400":"bg-green-100 dark:bg-green-950/30 text-green-700 dark:text-green-400"} ${M?"cursor-pointer hover:bg-opacity-80":""}`,children:[M&&B.jsx("span",{className:"transition-transform duration-200",children:v?B.jsx(Ta.ChevronDown,{className:"h-3 w-3"}):B.jsx(Ta.ChevronRight,{className:"h-3 w-3"})}),h?B.jsx(Ta.X,{className:"h-3 w-3"}):m?B.jsx(Ta.Zap,{className:"h-3 w-3"}):B.jsx(Ta.Check,{className:"h-3 w-3"}),B.jsxs("span",{className:"font-medium",children:[h?"Denied":m?"Auto-executed":"Executed"," ",o]})]}),v&&M&&B.jsx("div",{className:"mt-1 ml-6 p-2 bg-stone-50 dark:bg-stone-900 rounded-md border border-border",children:B.jsx("div",{className:"space-y-0.5",children:Object.entries(E).map(([z,C])=>B.jsxs("div",{className:"flex items-start gap-1.5 text-xs",children:[B.jsxs("span",{className:"text-muted-foreground min-w-[60px]",children:[z,":"]}),B.jsx("span",{className:"font-mono text-foreground",children:typeof C=="string"?C:JSON.stringify(C)})]},z))})})]})}function f5({...o}){return B.jsx(NT.Root,{"data-slot":"collapsible",...o})}function d5({...o}){return B.jsx(NT.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...o})}function h5({...o}){return B.jsx(NT.CollapsibleContent,{"data-slot":"collapsible-content",...o})}const m5=G.lazy(()=>import("streamdown").then(o=>({default:o.Streamdown}))),y2=G.memo(({className:o,...r})=>typeof window>"u"?null:B.jsx(G.Suspense,{fallback:null,children:B.jsx(m5,{className:da("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",o),...r})}),(o,r)=>o.children===r.children);y2.displayName="Response";const p5=Object.freeze(Object.defineProperty({__proto__:null,Response:y2},Symbol.toStringTag,{value:"Module"})),y5=({children:o,as:r="p",className:h,duration:m=2,spread:v=2})=>{const A=l5.create(r),S=G.useMemo(()=>(o?.length??0)*v,[o,v]);return B.jsx(A,{animate:{backgroundPosition:"0% center"},className:da("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",h),initial:{backgroundPosition:"100% center"},style:{"--spread":`${S}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:m,ease:"linear"},children:o})},g5=G.memo(y5),HM=G.createContext(null),v5=()=>{const o=G.useContext(HM);if(!o)throw new Error("Reasoning components must be used within Reasoning");return o},b5=1e3,S5=1e3,LM=G.memo(({className:o,isStreaming:r=!1,open:h,defaultOpen:m=!0,onOpenChange:v,duration:A,children:S,...E})=>{const[M,z]=CE.useControllableState({prop:h,defaultProp:m,onChange:v}),[C,R]=CE.useControllableState({prop:A,defaultProp:0}),[N,k]=G.useState(!1),[lt,st]=G.useState(null);G.useEffect(()=>{r?lt===null&&st(Date.now()):lt!==null&&(R(Math.ceil((Date.now()-lt)/S5)),st(null))},[r,lt,R]),G.useEffect(()=>{if(m&&!r&&M&&!N){const P=setTimeout(()=>{z(!1),k(!0)},b5);return()=>clearTimeout(P)}},[r,M,m,z,N]);const ft=P=>{z(P)};return B.jsx(HM.Provider,{value:{isStreaming:r,isOpen:M,setIsOpen:z,duration:C},children:B.jsx(f5,{className:da("not-prose mb-4",o),onOpenChange:ft,open:M,...E,children:S})})}),T5=(o,r)=>o||r===0?B.jsx(g5,{duration:1,children:"Thinking..."}):r===void 0?B.jsx("p",{children:"Thought for a few seconds"}):B.jsxs("p",{children:["Thought for ",r," seconds"]}),qM=G.memo(({className:o,children:r,...h})=>{const{isStreaming:m,isOpen:v,duration:A}=v5();return B.jsx(d5,{className:da("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",o),...h,children:r??B.jsxs(B.Fragment,{children:[B.jsx(Ta.BrainIcon,{className:"size-4"}),T5(m,A),B.jsx(Ta.ChevronDownIcon,{className:da("size-4 transition-transform",v?"rotate-180":"rotate-0")})]})})}),YM=G.memo(({className:o,children:r,...h})=>B.jsx(h5,{className:da("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",o),...h,children:B.jsx(y2,{className:"grid gap-2",children:r})}));LM.displayName="Reasoning";qM.displayName="ReasoningTrigger";YM.displayName="ReasoningContent";var aS={exports:{}},h0={},lS={exports:{}},oT={};var Zx;function A5(){return Zx||(Zx=1,function(o){function r(q,K){var ct=q.length;q.push(K);t:for(;0<ct;){var Mt=ct-1>>>1,Ot=q[Mt];if(0<v(Ot,K))q[Mt]=K,q[ct]=Ot,ct=Mt;else break t}}function h(q){return q.length===0?null:q[0]}function m(q){if(q.length===0)return null;var K=q[0],ct=q.pop();if(ct!==K){q[0]=ct;t:for(var Mt=0,Ot=q.length,be=Ot>>>1;Mt<be;){var me=2*(Mt+1)-1,Gt=q[me],It=me+1,Pe=q[It];if(0>v(Gt,ct))It<Ot&&0>v(Pe,Gt)?(q[Mt]=Pe,q[It]=ct,Mt=It):(q[Mt]=Gt,q[me]=ct,Mt=me);else if(It<Ot&&0>v(Pe,ct))q[Mt]=Pe,q[It]=ct,Mt=It;else break t}}return K}function v(q,K){var ct=q.sortIndex-K.sortIndex;return ct!==0?ct:q.id-K.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;o.unstable_now=function(){return A.now()}}else{var S=Date,E=S.now();o.unstable_now=function(){return S.now()-E}}var M=[],z=[],C=1,R=null,N=3,k=!1,lt=!1,st=!1,ft=!1,P=typeof setTimeout=="function"?setTimeout:null,ot=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;function St(q){for(var K=h(z);K!==null;){if(K.callback===null)m(z);else if(K.startTime<=q)m(z),K.sortIndex=K.expirationTime,r(M,K);else break;K=h(z)}}function Et(q){if(st=!1,St(q),!lt)if(h(M)!==null)lt=!0,gt||(gt=!0,Dt());else{var K=h(z);K!==null&&je(Et,K.startTime-q)}}var gt=!1,Ct=-1,dt=5,Lt=-1;function pt(){return ft?!0:!(o.unstable_now()-Lt<dt)}function Wt(){if(ft=!1,gt){var q=o.unstable_now();Lt=q;var K=!0;try{t:{lt=!1,st&&(st=!1,ot(Ct),Ct=-1),k=!0;var ct=N;try{e:{for(St(q),R=h(M);R!==null&&!(R.expirationTime>q&&pt());){var Mt=R.callback;if(typeof Mt=="function"){R.callback=null,N=R.priorityLevel;var Ot=Mt(R.expirationTime<=q);if(q=o.unstable_now(),typeof Ot=="function"){R.callback=Ot,St(q),K=!0;break e}R===h(M)&&m(M),St(q)}else m(M);R=h(M)}if(R!==null)K=!0;else{var be=h(z);be!==null&&je(Et,be.startTime-q),K=!1}}break t}finally{R=null,N=ct,k=!1}K=void 0}}finally{K?Dt():gt=!1}}}var Dt;if(typeof it=="function")Dt=function(){it(Wt)};else if(typeof MessageChannel<"u"){var Jt=new MessageChannel,Je=Jt.port2;Jt.port1.onmessage=Wt,Dt=function(){Je.postMessage(null)}}else Dt=function(){P(Wt,0)};function je(q,K){Ct=P(function(){q(o.unstable_now())},K)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(q){q.callback=null},o.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):dt=0<q?Math.floor(1e3/q):5},o.unstable_getCurrentPriorityLevel=function(){return N},o.unstable_next=function(q){switch(N){case 1:case 2:case 3:var K=3;break;default:K=N}var ct=N;N=K;try{return q()}finally{N=ct}},o.unstable_requestPaint=function(){ft=!0},o.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ct=N;N=q;try{return K()}finally{N=ct}},o.unstable_scheduleCallback=function(q,K,ct){var Mt=o.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?Mt+ct:Mt):ct=Mt,q){case 1:var Ot=-1;break;case 2:Ot=250;break;case 5:Ot=1073741823;break;case 4:Ot=1e4;break;default:Ot=5e3}return Ot=ct+Ot,q={id:C++,callback:K,priorityLevel:q,startTime:ct,expirationTime:Ot,sortIndex:-1},ct>Mt?(q.sortIndex=ct,r(z,q),h(M)===null&&q===h(z)&&(st?(ot(Ct),Ct=-1):st=!0,je(Et,ct-Mt))):(q.sortIndex=Ot,r(M,q),lt||k||(lt=!0,gt||(gt=!0,Dt()))),q},o.unstable_shouldYield=pt,o.unstable_wrapCallback=function(q){var K=N;return function(){var ct=N;N=K;try{return q.apply(this,arguments)}finally{N=ct}}}}(oT)),oT}var sT={};var Jx;function E5(){return Jx||(Jx=1,function(o){process.env.NODE_ENV!=="production"&&function(){function r(){if(Et=!1,Lt){var q=o.unstable_now();Dt=q;var K=!0;try{t:{it=!1,St&&(St=!1,Ct(pt),pt=-1),ot=!0;var ct=P;try{e:{for(S(q),ft=m(k);ft!==null&&!(ft.expirationTime>q&&M());){var Mt=ft.callback;if(typeof Mt=="function"){ft.callback=null,P=ft.priorityLevel;var Ot=Mt(ft.expirationTime<=q);if(q=o.unstable_now(),typeof Ot=="function"){ft.callback=Ot,S(q),K=!0;break e}ft===m(k)&&v(k),S(q)}else v(k);ft=m(k)}if(ft!==null)K=!0;else{var be=m(lt);be!==null&&z(E,be.startTime-q),K=!1}}break t}finally{ft=null,P=ct,ot=!1}K=void 0}}finally{K?Jt():Lt=!1}}}function h(q,K){var ct=q.length;q.push(K);t:for(;0<ct;){var Mt=ct-1>>>1,Ot=q[Mt];if(0<A(Ot,K))q[Mt]=K,q[ct]=Ot,ct=Mt;else break t}}function m(q){return q.length===0?null:q[0]}function v(q){if(q.length===0)return null;var K=q[0],ct=q.pop();if(ct!==K){q[0]=ct;t:for(var Mt=0,Ot=q.length,be=Ot>>>1;Mt<be;){var me=2*(Mt+1)-1,Gt=q[me],It=me+1,Pe=q[It];if(0>A(Gt,ct))It<Ot&&0>A(Pe,Gt)?(q[Mt]=Pe,q[It]=ct,Mt=It):(q[Mt]=Gt,q[me]=ct,Mt=me);else if(It<Ot&&0>A(Pe,ct))q[Mt]=Pe,q[It]=ct,Mt=It;else break t}}return K}function A(q,K){var ct=q.sortIndex-K.sortIndex;return ct!==0?ct:q.id-K.id}function S(q){for(var K=m(lt);K!==null;){if(K.callback===null)v(lt);else if(K.startTime<=q)v(lt),K.sortIndex=K.expirationTime,h(k,K);else break;K=m(lt)}}function E(q){if(St=!1,S(q),!it)if(m(k)!==null)it=!0,Lt||(Lt=!0,Jt());else{var K=m(lt);K!==null&&z(E,K.startTime-q)}}function M(){return Et?!0:!(o.unstable_now()-Dt<Wt)}function z(q,K){pt=gt(function(){q(o.unstable_now())},K)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;o.unstable_now=function(){return C.now()}}else{var R=Date,N=R.now();o.unstable_now=function(){return R.now()-N}}var k=[],lt=[],st=1,ft=null,P=3,ot=!1,it=!1,St=!1,Et=!1,gt=typeof setTimeout=="function"?setTimeout:null,Ct=typeof clearTimeout=="function"?clearTimeout:null,dt=typeof setImmediate<"u"?setImmediate:null,Lt=!1,pt=-1,Wt=5,Dt=-1;if(typeof dt=="function")var Jt=function(){dt(r)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,je=Je.port2;Je.port1.onmessage=r,Jt=function(){je.postMessage(null)}}else Jt=function(){gt(r,0)};o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(q){q.callback=null},o.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Wt=0<q?Math.floor(1e3/q):5},o.unstable_getCurrentPriorityLevel=function(){return P},o.unstable_next=function(q){switch(P){case 1:case 2:case 3:var K=3;break;default:K=P}var ct=P;P=K;try{return q()}finally{P=ct}},o.unstable_requestPaint=function(){Et=!0},o.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ct=P;P=q;try{return K()}finally{P=ct}},o.unstable_scheduleCallback=function(q,K,ct){var Mt=o.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?Mt+ct:Mt):ct=Mt,q){case 1:var Ot=-1;break;case 2:Ot=250;break;case 5:Ot=1073741823;break;case 4:Ot=1e4;break;default:Ot=5e3}return Ot=ct+Ot,q={id:st++,callback:K,priorityLevel:q,startTime:ct,expirationTime:Ot,sortIndex:-1},ct>Mt?(q.sortIndex=ct,h(lt,q),m(k)===null&&q===m(lt)&&(St?(Ct(pt),pt=-1):St=!0,z(E,ct-Mt))):(q.sortIndex=Ot,h(k,q),it||ot||(it=!0,Lt||(Lt=!0,Jt()))),q},o.unstable_shouldYield=M,o.unstable_wrapCallback=function(q){var K=P;return function(){var ct=P;P=K;try{return q.apply(this,arguments)}finally{P=ct}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(sT)),sT}var Kx;function GM(){return Kx||(Kx=1,process.env.NODE_ENV==="production"?lS.exports=A5():lS.exports=E5()),lS.exports}var $x;function x5(){if($x)return h0;$x=1;var o=GM(),r=G,h=tD;function m(n){var l="https://react.dev/errors/"+n;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)l+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function A(n){var l=n,i=n;if(n.alternate)for(;l.return;)l=l.return;else{n=l;do l=n,(l.flags&4098)!==0&&(i=l.return),n=l.return;while(n)}return l.tag===3?i:null}function S(n){if(n.tag===13){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function E(n){if(n.tag===31){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function M(n){if(A(n)!==n)throw Error(m(188))}function z(n){var l=n.alternate;if(!l){if(l=A(n),l===null)throw Error(m(188));return l!==n?null:n}for(var i=n,s=l;;){var d=i.return;if(d===null)break;var p=d.alternate;if(p===null){if(s=d.return,s!==null){i=s;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===i)return M(d),n;if(p===s)return M(d),l;p=p.sibling}throw Error(m(188))}if(i.return!==s.return)i=d,s=p;else{for(var b=!1,D=d.child;D;){if(D===i){b=!0,i=d,s=p;break}if(D===s){b=!0,s=d,i=p;break}D=D.sibling}if(!b){for(D=p.child;D;){if(D===i){b=!0,i=p,s=d;break}if(D===s){b=!0,s=p,i=d;break}D=D.sibling}if(!b)throw Error(m(189))}}if(i.alternate!==s)throw Error(m(190))}if(i.tag!==3)throw Error(m(188));return i.stateNode.current===i?n:l}function C(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n;for(n=n.child;n!==null;){if(l=C(n),l!==null)return l;n=n.sibling}return null}var R=Object.assign,N=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),lt=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),ft=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),ot=Symbol.for("react.consumer"),it=Symbol.for("react.context"),St=Symbol.for("react.forward_ref"),Et=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),Ct=Symbol.for("react.memo"),dt=Symbol.for("react.lazy"),Lt=Symbol.for("react.activity"),pt=Symbol.for("react.memo_cache_sentinel"),Wt=Symbol.iterator;function Dt(n){return n===null||typeof n!="object"?null:(n=Wt&&n[Wt]||n["@@iterator"],typeof n=="function"?n:null)}var Jt=Symbol.for("react.client.reference");function Je(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Jt?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case st:return"Fragment";case P:return"Profiler";case ft:return"StrictMode";case Et:return"Suspense";case gt:return"SuspenseList";case Lt:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case lt:return"Portal";case it:return n.displayName||"Context";case ot:return(n._context.displayName||"Context")+".Consumer";case St:var l=n.render;return n=n.displayName,n||(n=l.displayName||l.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ct:return l=n.displayName||null,l!==null?l:Je(n.type)||"Memo";case dt:l=n._payload,n=n._init;try{return Je(n(l))}catch{}}return null}var je=Array.isArray,q=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ct={pending:!1,data:null,method:null,action:null},Mt=[],Ot=-1;function be(n){return{current:n}}function me(n){0>Ot||(n.current=Mt[Ot],Mt[Ot]=null,Ot--)}function Gt(n,l){Ot++,Mt[Ot]=n.current,n.current=l}var It=be(null),Pe=be(null),Aa=be(null),Ea=be(null);function Na(n,l){switch(Gt(Aa,l),Gt(Pe,n),Gt(It,null),l.nodeType){case 9:case 11:n=(n=l.documentElement)&&(n=n.namespaceURI)?Xv(n):0;break;default:if(n=l.tagName,l=l.namespaceURI)l=Xv(l),n=og(l,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}me(It),Gt(It,n)}function ye(){me(It),me(Pe),me(Aa)}function Ji(n){n.memoizedState!==null&&Gt(Ea,n);var l=It.current,i=og(l,n.type);l!==i&&(Gt(Pe,n),Gt(It,i))}function mt(n){Pe.current===n&&(me(It),me(Pe)),Ea.current===n&&(me(Ea),pd._currentValue=ct)}var hl,Ln;function ha(n){if(hl===void 0)try{throw Error()}catch(i){var l=i.stack.trim().match(/\n( *(at )?)/);hl=l&&l[1]||"",Ln=-1<i.stack.indexOf(`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`+j[s].replace(" at new "," at ");return n.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",n.displayName)),tt}while(1<=s&&0<=d);break}}}finally{qn=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?ha(i):""}function fi(n,l){switch(n.tag){case 26:case 27:case 5:return ha(n.type);case 16:return ha("Lazy");case 13:return n.child!==l&&l!==null?ha("Suspense Fallback"):ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return Ee(n.type,!1);case 11:return Ee(n.type.render,!1);case 1:return Ee(n.type,!0);case 31:return ha("Activity");default:return""}}function di(n){try{var l="",i=null;do l+=fi(n,i),i=n,n=n.return;while(n);return l}catch(s){return`
|
|
25
|
-
Error generating stack: `+s.message+`
|
|
26
|
-
`+s.stack}}var gs=Object.prototype.hasOwnProperty,Me=o.unstable_scheduleCallback,hi=o.unstable_cancelCallback,tl=o.unstable_shouldYield,mi=o.unstable_requestPaint,rn=o.unstable_now,vs=o.unstable_getCurrentPriorityLevel,Mo=o.unstable_ImmediatePriority,zo=o.unstable_UserBlockingPriority,Hl=o.unstable_NormalPriority,bs=o.unstable_LowPriority,Tt=o.unstable_IdlePriority,xt=o.log,jt=o.unstable_setDisableYieldValue,Ht=null,te=null;function ne(n){if(typeof xt=="function"&&jt(n),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Ht,n)}catch{}}var xe=Math.clz32?Math.clz32:el,Ll=Math.log,Ki=Math.LN2;function el(n){return n>>>=0,n===0?32:31-(Ll(n)/Ki|0)|0}var _a=256,kn=262144,ml=4194304;function pl(n){var l=n&42;if(l!==0)return l;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ke(n,l,i){var s=n.pendingLanes;if(s===0)return 0;var d=0,p=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var D=s&134217727;return D!==0?(s=D&~p,s!==0?d=pl(s):(b&=D,b!==0?d=pl(b):i||(i=D&~n,i!==0&&(d=pl(i))))):(D=s&~p,D!==0?d=pl(D):b!==0?d=pl(b):i||(i=s&~n,i!==0&&(d=pl(i)))),d===0?0:l!==0&&l!==d&&(l&p)===0&&(p=d&-d,i=l&-l,p>=i||p===32&&(i&4194048)!==0)?l:d}function ql(n,l){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&l)===0}function pi(n,l){switch(n){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 $i(){var n=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),n}function yi(n){for(var l=[],i=0;31>i;i++)l.push(n);return l}function Yl(n,l){n.pendingLanes|=l,l!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Gl(n,l,i,s,d,p){var b=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var D=n.entanglements,j=n.expirationTimes,Q=n.hiddenUpdates;for(i=b&~i;0<i;){var tt=31-xe(i),at=1<<tt;D[tt]=0,j[tt]=-1;var Z=Q[tt];if(Z!==null)for(Q[tt]=null,tt=0;tt<Z.length;tt++){var I=Z[tt];I!==null&&(I.lane&=-536870913)}i&=~at}s!==0&&Qu(n,s,0),p!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=p&~(b&~l))}function Qu(n,l,i){n.pendingLanes|=l,n.suspendedLanes&=~l;var s=31-xe(l);n.entangledLanes|=l,n.entanglements[s]=n.entanglements[s]|1073741824|i&261930}function wn(n,l){var i=n.entangledLanes|=l;for(n=n.entanglements;i;){var s=31-xe(i),d=1<<s;d&l|n[s]&l&&(n[s]|=l),i&=~d}}function xa(n,l){var i=l&-l;return i=(i&42)!==0?1:Zu(i),(i&(n.suspendedLanes|l))!==0?0:i}function Zu(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Co(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ki(){var n=K.p;return n!==0?n:(n=window.event,n===void 0?32:yd(n.type))}function Mc(n,l){var i=K.p;try{return K.p=n,l()}finally{K.p=i}}var jn=Math.random().toString(36).slice(2),Re="__reactFiber$"+jn,ma="__reactProps$"+jn,Fi="__reactContainer$"+jn,zc="__reactEvents$"+jn,uf="__reactListeners$"+jn,Id="__reactHandles$"+jn,Xl="__reactResources$"+jn,Ql="__reactMarker$"+jn;function Ba(n){delete n[Re],delete n[ma],delete n[zc],delete n[uf],delete n[Id]}function Wi(n){var l=n[Re];if(l)return l;for(var i=n.parentNode;i;){if(l=i[Fi]||i[Re]){if(i=l.alternate,l.child!==null||i!==null&&i.child!==null)for(n=Hi(n);n!==null;){if(i=n[Re])return i;n=Hi(n)}return l}n=i,i=n.parentNode}return null}function Zl(n){if(n=n[Re]||n[Fi]){var l=n.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return n}return null}function nl(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n.stateNode;throw Error(m(33))}function Jl(n){var l=n[Xl];return l||(l=n[Xl]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Oe(n){n[Ql]=!0}var Ju=new Set,Ii={};function gi(n,l){Kl(n,l),Kl(n+"Capture",l)}function Kl(n,l){for(Ii[n]=l,n=0;n<l.length;n++)Ju.add(l[n])}var Cc=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]*$"),Rc={},Ro={};function Ku(n){return gs.call(Ro,n)?!0:gs.call(Rc,n)?!1:Cc.test(n)?Ro[n]=!0:(Rc[n]=!0,!1)}function Oo(n,l,i){if(Ku(l))if(i===null)n.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(l);return;case"boolean":var s=l.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(l);return}}n.setAttribute(l,""+i)}}function F(n,l,i){if(i===null)n.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttribute(l,""+i)}}function rt(n,l,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(l,i,""+s)}}function bt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ht(n){var l=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Ut(n,l,i){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,l);if(!n.hasOwnProperty(l)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,p=s.set;return Object.defineProperty(n,l,{configurable:!0,get:function(){return d.call(this)},set:function(b){i=""+b,p.call(this,b)}}),Object.defineProperty(n,l,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){n._valueTracker=null,delete n[l]}}}}function Bt(n){if(!n._valueTracker){var l=ht(n)?"checked":"value";n._valueTracker=Ut(n,l,""+n[l])}}function pn(n){if(!n)return!1;var l=n._valueTracker;if(!l)return!0;var i=l.getValue(),s="";return n&&(s=ht(n)?n.checked?"true":"false":n.value),n=s,n!==i?(l.setValue(n),!0):!1}function re(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Nn=/[\n"\\]/g;function fe(n){return n.replace(Nn,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function En(n,l,i,s,d,p,b,D){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),l!=null?b==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+bt(l)):n.value!==""+bt(l)&&(n.value=""+bt(l)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),l!=null?Da(n,b,bt(l)):i!=null?Da(n,b,bt(i)):s!=null&&n.removeAttribute("value"),d==null&&p!=null&&(n.defaultChecked=!!p),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?n.name=""+bt(D):n.removeAttribute("name")}function yn(n,l,i,s,d,p,b,D){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),l!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||l!=null)){Bt(n);return}i=i!=null?""+bt(i):"",l=l!=null?""+bt(l):i,D||l===n.value||(n.value=l),n.defaultValue=l}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=D?n.checked:!!s,n.defaultChecked=!!s,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),Bt(n)}function Da(n,l,i){l==="number"&&re(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function Uo(n,l,i,s){if(n=n.options,l){l={};for(var d=0;d<i.length;d++)l["$"+i[d]]=!0;for(i=0;i<n.length;i++)d=l.hasOwnProperty("$"+n[i].value),n[i].selected!==d&&(n[i].selected=d),d&&s&&(n[i].defaultSelected=!0)}else{for(i=""+bt(i),l=null,d=0;d<n.length;d++){if(n[d].value===i){n[d].selected=!0,s&&(n[d].defaultSelected=!0);return}l!==null||n[d].disabled||(l=n[d])}l!==null&&(l.selected=!0)}}function Ep(n,l,i){if(l!=null&&(l=""+bt(l),l!==n.value&&(n.value=l),i==null)){n.defaultValue!==l&&(n.defaultValue=l);return}n.defaultValue=i!=null?""+bt(i):""}function xp(n,l,i,s){if(l==null){if(s!=null){if(i!=null)throw Error(m(92));if(je(s)){if(1<s.length)throw Error(m(93));s=s[0]}i=s}i==null&&(i=""),l=i}i=bt(l),n.defaultValue=i,s=n.textContent,s===i&&s!==""&&s!==null&&(n.value=s),Bt(n)}function Pi(n,l){if(l){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=l;return}}n.textContent=l}var w0=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 j0(n,l,i){var s=l.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="":s?n.setProperty(l,i):typeof i!="number"||i===0||w0.has(l)?l==="float"?n.cssFloat=i:n[l]=(""+i).trim():n[l]=i+"px"}function N0(n,l,i){if(l!=null&&typeof l!="object")throw Error(m(62));if(n=n.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||l!=null&&l.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var d in l)s=l[d],l.hasOwnProperty(d)&&i[d]!==s&&j0(n,d,s)}else for(var p in l)l.hasOwnProperty(p)&&j0(n,p,l[p])}function Dp(n){if(n.indexOf("-")===-1)return!1;switch(n){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 TS=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"]]),of=/^[\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 $l(n){return of.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function vi(){}var Pd=null;function th(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var tu=null,Ss=null;function sf(n){var l=Zl(n);if(l&&(n=l.stateNode)){var i=n[ma]||null;t:switch(n=l.stateNode,l.type){case"input":if(En(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),l=i.name,i.type==="radio"&&l!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+fe(""+l)+'"][type="radio"]'),l=0;l<i.length;l++){var s=i[l];if(s!==n&&s.form===n.form){var d=s[ma]||null;if(!d)throw Error(m(90));En(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(l=0;l<i.length;l++)s=i[l],s.form===n.form&&pn(s)}break t;case"textarea":Ep(n,i.value,i.defaultValue);break t;case"select":l=i.value,l!=null&&Uo(n,!!i.multiple,l,!1)}}}var Oc=!1;function Mp(n,l,i){if(Oc)return n(l,i);Oc=!0;try{var s=n(l);return s}finally{if(Oc=!1,(tu!==null||Ss!==null)&&(dr(),tu&&(l=tu,n=Ss,Ss=tu=null,sf(l),n)))for(l=0;l<n.length;l++)sf(n[l])}}function Fn(n,l){var i=n.stateNode;if(i===null)return null;var s=i[ma]||null;if(s===null)return null;i=s[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break t;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(m(231,l,typeof i));return i}var $u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cf=!1;if($u)try{var Uc={};Object.defineProperty(Uc,"passive",{get:function(){cf=!0}}),window.addEventListener("test",Uc,Uc),window.removeEventListener("test",Uc,Uc)}catch{cf=!1}var ku=null,zp=null,eh=null;function Cp(){if(eh)return eh;var n,l=zp,i=l.length,s,d="value"in ku?ku.value:ku.textContent,p=d.length;for(n=0;n<i&&l[n]===d[n];n++);var b=i-n;for(s=1;s<=b&&l[i-s]===d[p-s];s++);return eh=d.slice(n,1<s?1-s:void 0)}function nh(n){var l=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&l===13&&(n=13)):n=l,n===10&&(n=13),32<=n||n===13?n:0}function rf(){return!0}function _0(){return!1}function pa(n){function l(i,s,d,p,b){this._reactName=i,this._targetInst=d,this.type=s,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var D in n)n.hasOwnProperty(D)&&(i=n[D],this[D]=i?i(p):p[D]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?rf:_0,this.isPropagationStopped=_0,this}return R(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=rf)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=rf)},persist:function(){},isPersistent:rf}),l}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=pa(wo),wc=R({},wo,{view:0,detail:0}),AS=pa(wc),Rp,Op,df,ah=R({},wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kl,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==df&&(df&&n.type==="mousemove"?(Rp=n.screenX-df.screenX,Op=n.screenY-df.screenY):Op=Rp=0,df=n),Rp)},movementY:function(n){return"movementY"in n?n.movementY:Op}}),jc=pa(ah),B0=R({},ah,{dataTransfer:0}),V0=pa(B0),H0=R({},wc,{relatedTarget:0}),lh=pa(H0),Up=R({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),L0=pa(Up),Ts=R({},wo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),As=pa(Ts),bi=R({},wo,{data:0}),q0=pa(bi),wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eu={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"},Y0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Si(n){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(n):(n=Y0[n])?!!l[n]:!1}function kl(){return Si}var ih=R({},wc,{key:function(n){if(n.key){var l=wp[n.key]||n.key;if(l!=="Unidentified")return l}return n.type==="keypress"?(n=nh(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?eu[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kl,charCode:function(n){return n.type==="keypress"?nh(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?nh(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),uh=pa(ih),jp=R({},ah,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ti=pa(jp),ES=R({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kl}),G0=pa(ES),X0=R({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),xS=pa(X0),Np=R({},ah,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),DS=pa(Np),Q0=R({},wo,{newState:0,oldState:0}),_p=pa(Q0),oh=[9,13,27,32],Nc=$u&&"CompositionEvent"in window,Es=null;$u&&"documentMode"in document&&(Es=document.documentMode);var Ma=$u&&"TextEvent"in window&&!Es,Bp=$u&&(!Nc||Es&&8<Es&&11>=Es),hf=" ",jo=!1;function sh(n,l){switch(n){case"keyup":return oh.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xs=!1;function Z0(n,l){switch(n){case"compositionend":return Vp(l);case"keypress":return l.which!==32?null:(jo=!0,hf);case"textInput":return n=l.data,n===hf&&jo?null:n;default:return null}}function MS(n,l){if(xs)return n==="compositionend"||!Nc&&sh(n,l)?(n=Cp(),eh=zp=ku=null,xs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Bp&&l.locale!=="ko"?null:l.data;default:return null}}var Hp={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 nu(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l==="input"?!!Hp[n.type]:l==="textarea"}function Lp(n,l,i,s){tu?Ss?Ss.push(s):Ss=[s]:tu=s,l=cd(l,"onChange"),0<l.length&&(i=new ff("onChange","change",null,i,s),n.push({event:i,listeners:l}))}var Ds=null,No=null;function Ms(n){qv(n,0)}function _c(n){var l=nl(n);if(pn(l))return n}function qp(n,l){if(n==="change")return l}var ch=!1;if($u){var Va;if($u){var Ai="oninput"in document;if(!Ai){var Yp=document.createElement("div");Yp.setAttribute("oninput","return;"),Ai=typeof Yp.oninput=="function"}Va=Ai}else Va=!1;ch=Va&&(!document.documentMode||9<document.documentMode)}function rh(){Ds&&(Ds.detachEvent("onpropertychange",fh),No=Ds=null)}function fh(n){if(n.propertyName==="value"&&_c(No)){var l=[];Lp(l,No,n,th(n)),Mp(Ms,l)}}function J0(n,l,i){n==="focusin"?(rh(),Ds=l,No=i,Ds.attachEvent("onpropertychange",fh)):n==="focusout"&&rh()}function K0(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return _c(No)}function _o(n,l){if(n==="click")return _c(l)}function zs(n,l){if(n==="input"||n==="change")return _c(l)}function $0(n,l){return n===l&&(n!==0||1/n===1/l)||n!==n&&l!==l}var za=typeof Object.is=="function"?Object.is:$0;function Fl(n,l){if(za(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;var i=Object.keys(n),s=Object.keys(l);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var d=i[s];if(!gs.call(l,d)||!za(n[d],l[d]))return!1}return!0}function Gp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Xp(n,l){var i=Gp(n);n=0;for(var s;i;){if(i.nodeType===3){if(s=n+i.textContent.length,n<=l&&s>=l)return{node:i,offset:l-n};n=s}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Gp(i)}}function Cs(n,l){return n&&l?n===l?!0:n&&n.nodeType===3?!1:l&&l.nodeType===3?Cs(n,l.parentNode):"contains"in n?n.contains(l):n.compareDocumentPosition?!!(n.compareDocumentPosition(l)&16):!1:!1}function Bo(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var l=re(n.document);l instanceof n.HTMLIFrameElement;){try{var i=typeof l.contentWindow.location.href=="string"}catch{i=!1}if(i)n=l.contentWindow;else break;l=re(n.document)}return l}function mf(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l&&(l==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||l==="textarea"||n.contentEditable==="true")}var pf=$u&&"documentMode"in document&&11>=document.documentMode,Vo=null,Bc=null,Wl=null,Ei=!1;function dh(n,l,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ei||Vo==null||Vo!==re(s)||(s=Vo,"selectionStart"in s&&mf(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Wl&&Fl(Wl,s)||(Wl=s,s=cd(Bc,"onSelect"),0<s.length&&(l=new ff("onSelect","select",null,l,i),n.push({event:l,listeners:s}),l.target=Vo)))}function Fu(n,l){var i={};return i[n.toLowerCase()]=l.toLowerCase(),i["Webkit"+n]="webkit"+l,i["Moz"+n]="moz"+l,i}var xi={animationend:Fu("Animation","AnimationEnd"),animationiteration:Fu("Animation","AnimationIteration"),animationstart:Fu("Animation","AnimationStart"),transitionrun:Fu("Transition","TransitionRun"),transitionstart:Fu("Transition","TransitionStart"),transitioncancel:Fu("Transition","TransitionCancel"),transitionend:Fu("Transition","TransitionEnd")},Vc={},Ho={};$u&&(Ho=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function Ne(n){if(Vc[n])return Vc[n];if(!xi[n])return n;var l=xi[n],i;for(i in l)if(l.hasOwnProperty(i)&&i in Ho)return Vc[n]=l[i];return n}var yf=Ne("animationend"),Qp=Ne("animationiteration"),hh=Ne("animationstart"),Rs=Ne("transitionrun"),gf=Ne("transitionstart"),au=Ne("transitioncancel"),k0=Ne("transitionend"),lu=new Map,Hc="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(" ");Hc.push("scrollEnd");function Ha(n,l){lu.set(n,l),gi(l,[n])}var Os=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},nn=[],Wn=0,Il=0;function yl(){for(var n=Wn,l=Il=Wn=0;l<n;){var i=nn[l];nn[l++]=null;var s=nn[l];nn[l++]=null;var d=nn[l];nn[l++]=null;var p=nn[l];if(nn[l++]=null,s!==null&&d!==null){var b=s.pending;b===null?d.next=d:(d.next=b.next,b.next=d),s.pending=d}p!==0&&mh(i,d,p)}}function gl(n,l,i,s){nn[Wn++]=n,nn[Wn++]=l,nn[Wn++]=i,nn[Wn++]=s,Il|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function Pl(n,l,i,s){return gl(n,l,i,s),vf(n)}function Wu(n,l){return gl(n,null,null,l),vf(n)}function mh(n,l,i){n.lanes|=i;var s=n.alternate;s!==null&&(s.lanes|=i);for(var d=!1,p=n.return;p!==null;)p.childLanes|=i,s=p.alternate,s!==null&&(s.childLanes|=i),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(d=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,d&&l!==null&&(d=31-xe(i),n=p.hiddenUpdates,s=n[d],s===null?n[d]=[l]:s.push(l),l.lane=i|536870912),p):null}function vf(n){if(50<fr)throw fr=0,td=null,Error(m(185));for(var l=n.return;l!==null;)n=l,l=n.return;return n.tag===3?n.stateNode:null}var La={};function F0(n,l,i,s){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,l,i,s){return new F0(n,l,i,s)}function Us(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Iu(n,l){var i=n.alternate;return i===null?(i=gn(n.tag,l,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=l,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,l=n.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Zp(n,l){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=l,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,l=i.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),n}function ph(n,l,i,s,d,p){var b=0;if(s=n,typeof n=="function")Us(n)&&(b=1);else if(typeof n=="string")b=mg(n,i,It.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case Lt:return n=gn(31,i,l,d),n.elementType=Lt,n.lanes=p,n;case st:return Pu(i.children,d,p,l);case ft:b=8,d|=24;break;case P:return n=gn(12,i,l,d|2),n.elementType=P,n.lanes=p,n;case Et:return n=gn(13,i,l,d),n.elementType=Et,n.lanes=p,n;case gt:return n=gn(19,i,l,d),n.elementType=gt,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case it:b=10;break t;case ot:b=9;break t;case St:b=11;break t;case Ct:b=14;break t;case dt:b=16,s=null;break t}b=29,i=Error(m(130,n===null?"null":typeof n,"")),s=null}return l=gn(b,i,l,d),l.elementType=n,l.type=s,l.lanes=p,l}function Pu(n,l,i,s){return n=gn(7,n,s,l),n.lanes=i,n}function Lc(n,l,i){return n=gn(6,n,null,l),n.lanes=i,n}function Jp(n){var l=gn(18,null,null,0);return l.stateNode=n,l}function yh(n,l,i){return l=gn(4,n.children!==null?n.children:[],n.key,l),l.lanes=i,l.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},l}var Kp=new WeakMap;function vl(n,l){if(typeof n=="object"&&n!==null){var i=Kp.get(n);return i!==void 0?i:(l={value:n,source:l,stack:di(l)},Kp.set(n,l),l)}return{value:n,source:l,stack:di(l)}}var bl=[],ws=0,bf=null,xn=0,al=[],qa=0,Di=null,ll=1,Mi="";function ti(n,l){bl[ws++]=xn,bl[ws++]=bf,bf=n,xn=l}function $p(n,l,i){al[qa++]=ll,al[qa++]=Mi,al[qa++]=Di,Di=n;var s=ll;n=Mi;var d=32-xe(s)-1;s&=~(1<<d),i+=1;var p=32-xe(l)+d;if(30<p){var b=d-d%5;p=(s&(1<<b)-1).toString(32),s>>=b,d-=b,ll=1<<32-xe(l)+d|i<<d|s,Mi=p+n}else ll=1<<p|i<<d|s,Mi=n}function qc(n){n.return!==null&&(ti(n,1),$p(n,1,0))}function gh(n){for(;n===bf;)bf=bl[--ws],bl[ws]=null,xn=bl[--ws],bl[ws]=null;for(;n===Di;)Di=al[--qa],al[qa]=null,Mi=al[--qa],al[qa]=null,ll=al[--qa],al[qa]=null}function Sf(n,l){al[qa++]=ll,al[qa++]=Mi,al[qa++]=Di,ll=l.id,Mi=l.overflow,Di=n}var In=null,$e=null,ge=!1,iu=null,Yn=!1,uu=Error(m(519));function ei(n){var l=Error(m(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gc(vl(l,n)),uu}function Tf(n){var l=n.stateNode,i=n.type,s=n.memoizedProps;switch(l[Re]=n,l[ma]=s,i){case"dialog":pe("cancel",l),pe("close",l);break;case"iframe":case"object":case"embed":pe("load",l);break;case"video":case"audio":for(i=0;i<gr.length;i++)pe(gr[i],l);break;case"source":pe("error",l);break;case"img":case"image":case"link":pe("error",l),pe("load",l);break;case"details":pe("toggle",l);break;case"input":pe("invalid",l),yn(l,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":pe("invalid",l);break;case"textarea":pe("invalid",l),xp(l,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||l.textContent===""+i||s.suppressHydrationWarning===!0||ag(l.textContent,i)?(s.popover!=null&&(pe("beforetoggle",l),pe("toggle",l)),s.onScroll!=null&&pe("scroll",l),s.onScrollEnd!=null&&pe("scrollend",l),s.onClick!=null&&(l.onclick=vi),l=!0):l=!1,l||ei(n,!0)}function Yc(n){for(In=n.return;In;)switch(In.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:In=In.return}}function ou(n){if(n!==In)return!1;if(!ge)return Yc(n),ge=!0,!1;var l=n.tag,i;if((i=l!==3&&l!==27)&&((i=l===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||br(n.type,n.memoizedProps)),i=!i),i&&$e&&ei(n),Yc(n),l===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(m(317));$e=Sm(n)}else if(l===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(m(317));$e=Sm(n)}else l===27?(l=$e,Vi(n.type)?(n=dd,dd=null,$e=n):$e=l):$e=In?Fa(n.stateNode.nextSibling):null;return!0}function Lo(){$e=In=null,ge=!1}function kp(){var n=iu;return n!==null&&(hn===null?hn=n:hn.push.apply(hn,n),iu=null),n}function Gc(n){iu===null?iu=[n]:iu.push(n)}var vh=be(null),to=null,zi=null;function Ya(n,l,i){Gt(vh,l._currentValue),l._currentValue=i}function Ci(n){n._currentValue=vh.current,me(vh)}function bh(n,l,i){for(;n!==null;){var s=n.alternate;if((n.childLanes&l)!==l?(n.childLanes|=l,s!==null&&(s.childLanes|=l)):s!==null&&(s.childLanes&l)!==l&&(s.childLanes|=l),n===i)break;n=n.return}}function su(n,l,i,s){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var p=d.dependencies;if(p!==null){var b=d.child;p=p.firstContext;t:for(;p!==null;){var D=p;p=d;for(var j=0;j<l.length;j++)if(D.context===l[j]){p.lanes|=i,D=p.alternate,D!==null&&(D.lanes|=i),bh(p.return,i,n),s||(b=null);break t}p=D.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(m(341));b.lanes|=i,p=b.alternate,p!==null&&(p.lanes|=i),bh(b,i,n),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===n){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Pn(n,l,i,s){n=null;for(var d=l,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 b=d.alternate;if(b===null)throw Error(m(387));if(b=b.memoizedProps,b!==null){var D=d.type;za(d.pendingProps.value,b.value)||(n!==null?n.push(D):n=[D])}}else if(d===Ea.current){if(b=d.alternate,b===null)throw Error(m(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(pd):n=[pd])}d=d.return}n!==null&&su(l,n,i,s),l.flags|=262144}function js(n){for(n=n.firstContext;n!==null;){if(!za(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Kt(n){to=n,zi=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ut(n){return Af(to,n)}function eo(n,l){return to===null&&Kt(n),Af(n,l)}function Af(n,l){var i=l._currentValue;if(l={context:l,memoizedValue:i,next:null},zi===null){if(n===null)throw Error(m(308));zi=l,n.dependencies={lanes:0,firstContext:l},n.flags|=524288}else zi=zi.next=l;return i}var vn=typeof AbortController<"u"?AbortController:function(){var n=[],l=this.signal={aborted:!1,addEventListener:function(i,s){n.push(s)}};this.abort=function(){l.aborted=!0,n.forEach(function(i){return i()})}},Fp=o.unstable_scheduleCallback,Wp=o.unstable_NormalPriority,Dn={$$typeof:it,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new vn,data:new Map,refCount:0}}function xf(n){n.refCount--,n.refCount===0&&Fp(Wp,function(){n.controller.abort()})}var Ns=null,Df=0,qo=0,_n=null;function Ve(n,l){if(Ns===null){var i=Ns=[];Df=0,qo=dm(),_n={status:"pending",value:void 0,then:function(s){i.push(s)}}}return Df++,l.then(Mf,Mf),l}function Mf(){if(--Df===0&&Ns!==null){_n!==null&&(_n.status="fulfilled");var n=Ns;Ns=null,qo=0,_n=null;for(var l=0;l<n.length;l++)(0,n[l])()}}function zf(n,l){var i=[],s={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return n.then(function(){s.status="fulfilled",s.value=l;for(var d=0;d<i.length;d++)(0,i[d])(l)},function(d){for(s.status="rejected",s.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),s}var no=q.S;q.S=function(n,l){Qy=rn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Ve(n,l),no!==null&&no(n,l)};var Sl=be(null);function Tl(){var n=Sl.current;return n!==null?n:Ge.pooledCache}function Xc(n,l){l===null?Gt(Sl,Sl.current):Gt(Sl,l.pool)}function _s(){var n=Tl();return n===null?null:{parent:Dn._currentValue,pool:n}}var Yo=Error(m(460)),Bs=Error(m(474)),Qc=Error(m(542)),Vs={then:function(){}};function Ip(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Pp(n,l,i){switch(i=n[i],i===void 0?n.push(l):i!==l&&(l.then(vi,vi),l=i),l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Sh(n),n;default:if(typeof l.status=="string")l.then(vi,vi);else{if(n=Ge,n!==null&&100<n.shellSuspendCounter)throw Error(m(482));n=l,n.status="pending",n.then(function(s){if(l.status==="pending"){var d=l;d.status="fulfilled",d.value=s}},function(s){if(l.status==="pending"){var d=l;d.status="rejected",d.reason=s}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Sh(n),n}throw Xo=l,Yo}}function Go(n){try{var l=n._init;return l(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Xo=i,Yo):i}}var Xo=null;function ty(){if(Xo===null)throw Error(m(459));var n=Xo;return Xo=null,n}function Sh(n){if(n===Yo||n===Qc)throw Error(m(483))}var Qo=null,Hs=0;function Cf(n){var l=Hs;return Hs+=1,Qo===null&&(Qo=[]),Pp(Qo,n,l)}function Zc(n,l){l=l.props.ref,n.ref=l!==void 0?l:null}function Rf(n,l){throw l.$$typeof===N?Error(m(525)):(n=Object.prototype.toString.call(l),Error(m(31,n==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":n)))}function W0(n){function l(Y,H){if(n){var X=Y.deletions;X===null?(Y.deletions=[H],Y.flags|=16):X.push(H)}}function i(Y,H){if(!n)return null;for(;H!==null;)l(Y,H),H=H.sibling;return null}function s(Y){for(var H=new Map;Y!==null;)Y.key!==null?H.set(Y.key,Y):H.set(Y.index,Y),Y=Y.sibling;return H}function d(Y,H){return Y=Iu(Y,H),Y.index=0,Y.sibling=null,Y}function p(Y,H,X){return Y.index=X,n?(X=Y.alternate,X!==null?(X=X.index,X<H?(Y.flags|=67108866,H):X):(Y.flags|=67108866,H)):(Y.flags|=1048576,H)}function b(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function D(Y,H,X,nt){return H===null||H.tag!==6?(H=Lc(X,Y.mode,nt),H.return=Y,H):(H=d(H,X),H.return=Y,H)}function j(Y,H,X,nt){var Nt=X.type;return Nt===st?tt(Y,H,X.props.children,nt,X.key):H!==null&&(H.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===dt&&Go(Nt)===H.type)?(H=d(H,X.props),Zc(H,X),H.return=Y,H):(H=ph(X.type,X.key,X.props,null,Y.mode,nt),Zc(H,X),H.return=Y,H)}function Q(Y,H,X,nt){return H===null||H.tag!==4||H.stateNode.containerInfo!==X.containerInfo||H.stateNode.implementation!==X.implementation?(H=yh(X,Y.mode,nt),H.return=Y,H):(H=d(H,X.children||[]),H.return=Y,H)}function tt(Y,H,X,nt,Nt){return H===null||H.tag!==7?(H=Pu(X,Y.mode,nt,Nt),H.return=Y,H):(H=d(H,X),H.return=Y,H)}function at(Y,H,X){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=Lc(""+H,Y.mode,X),H.return=Y,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case k:return X=ph(H.type,H.key,H.props,null,Y.mode,X),Zc(X,H),X.return=Y,X;case lt:return H=yh(H,Y.mode,X),H.return=Y,H;case dt:return H=Go(H),at(Y,H,X)}if(je(H)||Dt(H))return H=Pu(H,Y.mode,X,null),H.return=Y,H;if(typeof H.then=="function")return at(Y,Cf(H),X);if(H.$$typeof===it)return at(Y,eo(Y,H),X);Rf(Y,H)}return null}function Z(Y,H,X,nt){var Nt=H!==null?H.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Nt!==null?null:D(Y,H,""+X,nt);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return X.key===Nt?j(Y,H,X,nt):null;case lt:return X.key===Nt?Q(Y,H,X,nt):null;case dt:return X=Go(X),Z(Y,H,X,nt)}if(je(X)||Dt(X))return Nt!==null?null:tt(Y,H,X,nt,null);if(typeof X.then=="function")return Z(Y,H,Cf(X),nt);if(X.$$typeof===it)return Z(Y,H,eo(Y,X),nt);Rf(Y,X)}return null}function I(Y,H,X,nt,Nt){if(typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint")return Y=Y.get(X)||null,D(H,Y,""+nt,Nt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case k:return Y=Y.get(nt.key===null?X:nt.key)||null,j(H,Y,nt,Nt);case lt:return Y=Y.get(nt.key===null?X:nt.key)||null,Q(H,Y,nt,Nt);case dt:return nt=Go(nt),I(Y,H,X,nt,Nt)}if(je(nt)||Dt(nt))return Y=Y.get(X)||null,tt(H,Y,nt,Nt,null);if(typeof nt.then=="function")return I(Y,H,X,Cf(nt),Nt);if(nt.$$typeof===it)return I(Y,H,X,eo(H,nt),Nt);Rf(H,nt)}return null}function zt(Y,H,X,nt){for(var Nt=null,ze=null,Rt=H,Pt=H=0,le=null;Rt!==null&&Pt<X.length;Pt++){Rt.index>Pt?(le=Rt,Rt=null):le=Rt.sibling;var we=Z(Y,Rt,X[Pt],nt);if(we===null){Rt===null&&(Rt=le);break}n&&Rt&&we.alternate===null&&l(Y,Rt),H=p(we,H,Pt),ze===null?Nt=we:ze.sibling=we,ze=we,Rt=le}if(Pt===X.length)return i(Y,Rt),ge&&ti(Y,Pt),Nt;if(Rt===null){for(;Pt<X.length;Pt++)Rt=at(Y,X[Pt],nt),Rt!==null&&(H=p(Rt,H,Pt),ze===null?Nt=Rt:ze.sibling=Rt,ze=Rt);return ge&&ti(Y,Pt),Nt}for(Rt=s(Rt);Pt<X.length;Pt++)le=I(Rt,Y,Pt,X[Pt],nt),le!==null&&(n&&le.alternate!==null&&Rt.delete(le.key===null?Pt:le.key),H=p(le,H,Pt),ze===null?Nt=le:ze.sibling=le,ze=le);return n&&Rt.forEach(function(qi){return l(Y,qi)}),ge&&ti(Y,Pt),Nt}function qt(Y,H,X,nt){if(X==null)throw Error(m(151));for(var Nt=null,ze=null,Rt=H,Pt=H=0,le=null,we=X.next();Rt!==null&&!we.done;Pt++,we=X.next()){Rt.index>Pt?(le=Rt,Rt=null):le=Rt.sibling;var qi=Z(Y,Rt,we.value,nt);if(qi===null){Rt===null&&(Rt=le);break}n&&Rt&&qi.alternate===null&&l(Y,Rt),H=p(qi,H,Pt),ze===null?Nt=qi:ze.sibling=qi,ze=qi,Rt=le}if(we.done)return i(Y,Rt),ge&&ti(Y,Pt),Nt;if(Rt===null){for(;!we.done;Pt++,we=X.next())we=at(Y,we.value,nt),we!==null&&(H=p(we,H,Pt),ze===null?Nt=we:ze.sibling=we,ze=we);return ge&&ti(Y,Pt),Nt}for(Rt=s(Rt);!we.done;Pt++,we=X.next())we=I(Rt,Y,Pt,we.value,nt),we!==null&&(n&&we.alternate!==null&&Rt.delete(we.key===null?Pt:we.key),H=p(we,H,Pt),ze===null?Nt=we:ze.sibling=we,ze=we);return n&&Rt.forEach(function(eb){return l(Y,eb)}),ge&&ti(Y,Pt),Nt}function Qe(Y,H,X,nt){if(typeof X=="object"&&X!==null&&X.type===st&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case k:t:{for(var Nt=X.key;H!==null;){if(H.key===Nt){if(Nt=X.type,Nt===st){if(H.tag===7){i(Y,H.sibling),nt=d(H,X.props.children),nt.return=Y,Y=nt;break t}}else if(H.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===dt&&Go(Nt)===H.type){i(Y,H.sibling),nt=d(H,X.props),Zc(nt,X),nt.return=Y,Y=nt;break t}i(Y,H);break}else l(Y,H);H=H.sibling}X.type===st?(nt=Pu(X.props.children,Y.mode,nt,X.key),nt.return=Y,Y=nt):(nt=ph(X.type,X.key,X.props,null,Y.mode,nt),Zc(nt,X),nt.return=Y,Y=nt)}return b(Y);case lt:t:{for(Nt=X.key;H!==null;){if(H.key===Nt)if(H.tag===4&&H.stateNode.containerInfo===X.containerInfo&&H.stateNode.implementation===X.implementation){i(Y,H.sibling),nt=d(H,X.children||[]),nt.return=Y,Y=nt;break t}else{i(Y,H);break}else l(Y,H);H=H.sibling}nt=yh(X,Y.mode,nt),nt.return=Y,Y=nt}return b(Y);case dt:return X=Go(X),Qe(Y,H,X,nt)}if(je(X))return zt(Y,H,X,nt);if(Dt(X)){if(Nt=Dt(X),typeof Nt!="function")throw Error(m(150));return X=Nt.call(X),qt(Y,H,X,nt)}if(typeof X.then=="function")return Qe(Y,H,Cf(X),nt);if(X.$$typeof===it)return Qe(Y,H,eo(Y,X),nt);Rf(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,H!==null&&H.tag===6?(i(Y,H.sibling),nt=d(H,X),nt.return=Y,Y=nt):(i(Y,H),nt=Lc(X,Y.mode,nt),nt.return=Y,Y=nt),b(Y)):i(Y,H)}return function(Y,H,X,nt){try{Hs=0;var Nt=Qe(Y,H,X,nt);return Qo=null,Nt}catch(Rt){if(Rt===Yo||Rt===Qc)throw Rt;var ze=gn(29,Rt,null,Y.mode);return ze.lanes=nt,ze.return=Y,ze}finally{}}}var Zo=W0(!0),ey=W0(!1),ao=!1;function Of(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Th(n,l){n=n.updateQueue,l.updateQueue===n&&(l.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function lo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Al(n,l,i){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(Ue&2)!==0){var d=s.pending;return d===null?l.next=l:(l.next=d.next,d.next=l),s.pending=l,l=vf(n),mh(n,null,i),l}return gl(n,s,l,i),vf(n)}function Jo(n,l,i){if(l=l.updateQueue,l!==null&&(l=l.shared,(i&4194048)!==0)){var s=l.lanes;s&=n.pendingLanes,i|=s,l.lanes=i,wn(n,i)}}function Ah(n,l){var i=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var d=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?d=p=b:p=p.next=b,i=i.next}while(i!==null);p===null?d=p=l:p=p.next=l}else d=p=l;i={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=l:n.next=l,i.lastBaseUpdate=l}var ny=!1;function Ko(){if(ny){var n=_n;if(n!==null)throw n}}function cu(n,l,i,s){ny=!1;var d=n.updateQueue;ao=!1;var p=d.firstBaseUpdate,b=d.lastBaseUpdate,D=d.shared.pending;if(D!==null){d.shared.pending=null;var j=D,Q=j.next;j.next=null,b===null?p=Q:b.next=Q,b=j;var tt=n.alternate;tt!==null&&(tt=tt.updateQueue,D=tt.lastBaseUpdate,D!==b&&(D===null?tt.firstBaseUpdate=Q:D.next=Q,tt.lastBaseUpdate=j))}if(p!==null){var at=d.baseState;b=0,tt=Q=j=null,D=p;do{var Z=D.lane&-536870913,I=Z!==D.lane;if(I?(de&Z)===Z:(s&Z)===Z){Z!==0&&Z===qo&&(ny=!0),tt!==null&&(tt=tt.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});t:{var zt=n,qt=D;Z=l;var Qe=i;switch(qt.tag){case 1:if(zt=qt.payload,typeof zt=="function"){at=zt.call(Qe,at,Z);break t}at=zt;break t;case 3:zt.flags=zt.flags&-65537|128;case 0:if(zt=qt.payload,Z=typeof zt=="function"?zt.call(Qe,at,Z):zt,Z==null)break t;at=R({},at,Z);break t;case 2:ao=!0}}Z=D.callback,Z!==null&&(n.flags|=64,I&&(n.flags|=8192),I=d.callbacks,I===null?d.callbacks=[Z]:I.push(Z))}else I={lane:Z,tag:D.tag,payload:D.payload,callback:D.callback,next:null},tt===null?(Q=tt=I,j=at):tt=tt.next=I,b|=Z;if(D=D.next,D===null){if(D=d.shared.pending,D===null)break;I=D,D=I.next,I.next=null,d.lastBaseUpdate=I,d.shared.pending=null}}while(!0);tt===null&&(j=at),d.baseState=j,d.firstBaseUpdate=Q,d.lastBaseUpdate=tt,p===null&&(d.shared.lanes=0),_i|=b,n.lanes=b,n.memoizedState=at}}function Eh(n,l){if(typeof n!="function")throw Error(m(191,n));n.call(l)}function $o(n,l){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)Eh(i[n],l)}var Gn=be(null),Ls=be(0);function I0(n,l){n=Ni,Gt(Ls,n),Gt(Gn,l),Ni=n|l.baseLanes}function Uf(){Gt(Ls,Ni),Gt(Gn,Gn.current)}function Jc(){Ni=Ls.current,me(Gn),me(Ls)}var Ga=be(null),El=null;function ru(n){var l=n.alternate;Gt(an,an.current&1),Gt(Ga,n),El===null&&(l===null||Gn.current!==null||l.memoizedState!==null)&&(El=n)}function Kc(n){Gt(an,an.current),Gt(Ga,n),El===null&&(El=n)}function xh(n){n.tag===22?(Gt(an,an.current),Gt(Ga,n),El===null&&(El=n)):Ri()}function Ri(){Gt(an,an.current),Gt(Ga,Ga.current)}function Xa(n){me(Ga),El===n&&(El=null),me(an)}var an=be(0);function $c(n){for(var l=n;l!==null;){if(l.tag===13){var i=l.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||ii(i)||us(i)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var fu=0,ee=null,He=null,Mn=null,qs=!1,Ys=!1,io=!1,wf=0,kc=0,ko=null,P0=0;function fn(){throw Error(m(321))}function uo(n,l){if(l===null)return!1;for(var i=0;i<l.length&&i<n.length;i++)if(!za(n[i],l[i]))return!1;return!0}function jf(n,l,i,s,d,p){return fu=p,ee=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,q.H=n===null||n.memoizedState===null?ov:Yh,io=!1,p=i(s,d),io=!1,Ys&&(p=tv(l,i,s,d)),Dh(n),p}function Dh(n){q.H=Gf;var l=He!==null&&He.next!==null;if(fu=0,Mn=He=ee=null,qs=!1,kc=0,ko=null,l)throw Error(m(300));n===null||zn||(n=n.dependencies,n!==null&&js(n)&&(zn=!0))}function tv(n,l,i,s){ee=n;var d=0;do{if(Ys&&(ko=null),kc=0,Ys=!1,25<=d)throw Error(m(301));if(d+=1,Mn=He=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}q.H=sv,p=l(i,s)}while(Ys);return p}function zS(){var n=q.H,l=n.useState()[0];return l=typeof l.then=="function"?Xs(l):l,n=n.useState()[0],(He!==null?He.memoizedState:null)!==n&&(ee.flags|=1024),l}function Mh(){var n=wf!==0;return wf=0,n}function Gs(n,l,i){l.updateQueue=n.updateQueue,l.flags&=-2053,n.lanes&=~i}function Nf(n){if(qs){for(n=n.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}qs=!1}fu=0,Mn=He=ee=null,Ys=!1,kc=wf=0,ko=null}function ta(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mn===null?ee.memoizedState=Mn=n:Mn=Mn.next=n,Mn}function bn(){if(He===null){var n=ee.alternate;n=n!==null?n.memoizedState:null}else n=He.next;var l=Mn===null?ee.memoizedState:Mn.next;if(l!==null)Mn=l,He=n;else{if(n===null)throw ee.alternate===null?Error(m(467)):Error(m(310));He=n,n={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Mn===null?ee.memoizedState=Mn=n:Mn=Mn.next=n}return Mn}function _f(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xs(n){var l=kc;return kc+=1,ko===null&&(ko=[]),n=Pp(ko,n,l),l=ee,(Mn===null?l.memoizedState:Mn.next)===null&&(l=l.alternate,q.H=l===null||l.memoizedState===null?ov:Yh),n}function Fc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Xs(n);if(n.$$typeof===it)return ut(n)}throw Error(m(438,String(n)))}function zh(n){var l=null,i=ee.updateQueue;if(i!==null&&(l=i.memoCache),l==null){var s=ee.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(l={data:s.data.map(function(d){return d.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),i===null&&(i=_f(),ee.updateQueue=i),i.memoCache=l,i=l.data[l.index],i===void 0)for(i=l.data[l.index]=Array(n),s=0;s<n;s++)i[s]=pt;return l.index++,i}function du(n,l){return typeof l=="function"?l(n):l}function hu(n){var l=bn();return Ch(l,He,n)}function Ch(n,l,i){var s=n.queue;if(s===null)throw Error(m(311));s.lastRenderedReducer=i;var d=n.baseQueue,p=s.pending;if(p!==null){if(d!==null){var b=d.next;d.next=p.next,p.next=b}l.baseQueue=d=p,s.pending=null}if(p=n.baseState,d===null)n.memoizedState=p;else{l=d.next;var D=b=null,j=null,Q=l,tt=!1;do{var at=Q.lane&-536870913;if(at!==Q.lane?(de&at)===at:(fu&at)===at){var Z=Q.revertLane;if(Z===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),at===qo&&(tt=!0);else if((fu&Z)===Z){Q=Q.next,Z===qo&&(tt=!0);continue}else at={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},j===null?(D=j=at,b=p):j=j.next=at,ee.lanes|=Z,_i|=Z;at=Q.action,io&&i(p,at),p=Q.hasEagerState?Q.eagerState:i(p,at)}else Z={lane:at,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},j===null?(D=j=Z,b=p):j=j.next=Z,ee.lanes|=at,_i|=at;Q=Q.next}while(Q!==null&&Q!==l);if(j===null?b=p:j.next=D,!za(p,n.memoizedState)&&(zn=!0,tt&&(i=_n,i!==null)))throw i;n.memoizedState=p,n.baseState=b,n.baseQueue=j,s.lastRenderedState=p}return d===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function Rh(n){var l=bn(),i=l.queue;if(i===null)throw Error(m(311));i.lastRenderedReducer=n;var s=i.dispatch,d=i.pending,p=l.memoizedState;if(d!==null){i.pending=null;var b=d=d.next;do p=n(p,b.action),b=b.next;while(b!==d);za(p,l.memoizedState)||(zn=!0),l.memoizedState=p,l.baseQueue===null&&(l.baseState=p),i.lastRenderedState=p}return[p,s]}function ay(n,l,i){var s=ee,d=bn(),p=ge;if(p){if(i===void 0)throw Error(m(407));i=i()}else i=l();var b=!za((He||d).memoizedState,i);if(b&&(d.memoizedState=i,zn=!0),d=d.queue,Nh(Oh.bind(null,s,d,n),[n]),d.getSnapshot!==l||b||Mn!==null&&Mn.memoizedState.tag&1){if(s.flags|=2048,Zs(9,{destroy:void 0},ly.bind(null,s,d,i,l),null),Ge===null)throw Error(m(349));p||(fu&127)!==0||Bf(s,l,i)}return i}function Bf(n,l,i){n.flags|=16384,n={getSnapshot:l,value:i},l=ee.updateQueue,l===null?(l=_f(),ee.updateQueue=l,l.stores=[n]):(i=l.stores,i===null?l.stores=[n]:i.push(n))}function ly(n,l,i,s){l.value=i,l.getSnapshot=s,Uh(l)&&wh(n)}function Oh(n,l,i){return i(function(){Uh(l)&&wh(n)})}function Uh(n){var l=n.getSnapshot;n=n.value;try{var i=l();return!za(n,i)}catch{return!0}}function wh(n){var l=Wu(n,2);l!==null&&ka(l,n,2)}function iy(n){var l=ta();if(typeof n=="function"){var i=n;if(n=i(),io){ne(!0);try{i()}finally{ne(!1)}}}return l.memoizedState=l.baseState=n,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:du,lastRenderedState:n},l}function ea(n,l,i,s){return n.baseState=i,Ch(n,He,typeof s=="function"?s:du)}function ev(n,l,i,s,d){if(Yf(n))throw Error(m(485));if(n=l.action,n!==null){var p={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};q.T!==null?i(!0):p.isTransition=!1,s(p),i=l.pending,i===null?(p.next=l.pending=p,uy(l,p)):(p.next=i.next,l.pending=i.next=p)}}function uy(n,l){var i=l.action,s=l.payload,d=n.state;if(l.isTransition){var p=q.T,b={};q.T=b;try{var D=i(d,s),j=q.S;j!==null&&j(b,D),oy(n,l,D)}catch(Q){Qs(n,l,Q)}finally{p!==null&&b.types!==null&&(p.types=b.types),q.T=p}}else try{p=i(d,s),oy(n,l,p)}catch(Q){Qs(n,l,Q)}}function oy(n,l,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){sy(n,l,s)},function(s){return Qs(n,l,s)}):sy(n,l,i)}function sy(n,l,i){l.status="fulfilled",l.value=i,cy(l),n.state=i,l=n.pending,l!==null&&(i=l.next,i===l?n.pending=null:(i=i.next,l.next=i,uy(n,i)))}function Qs(n,l,i){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do l.status="rejected",l.reason=i,cy(l),l=l.next;while(l!==s)}n.action=null}function cy(n){n=n.listeners;for(var l=0;l<n.length;l++)(0,n[l])()}function Vf(n,l){return l}function ry(n,l){if(ge){var i=Ge.formState;if(i!==null){t:{var s=ee;if(ge){if($e){e:{for(var d=$e,p=Yn;d.nodeType!==8;){if(!p){d=null;break e}if(d=Fa(d.nextSibling),d===null){d=null;break e}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){$e=Fa(d.nextSibling),s=d.data==="F!";break t}}ei(s)}s=!1}s&&(l=i[0])}}return i=ta(),i.memoizedState=i.baseState=l,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vf,lastRenderedState:l},i.queue=s,i=Lh.bind(null,ee,s),s.dispatch=i,s=iy(!1),p=Fo.bind(null,ee,!1,s.queue),s=ta(),d={state:l,dispatch:null,action:n,pending:null},s.queue=d,i=ev.bind(null,ee,d,p,i),d.dispatch=i,s.memoizedState=n,[l,i,!1]}function nv(n){var l=bn();return Hf(l,He,n)}function Hf(n,l,i){if(l=Ch(n,l,Vf)[0],n=hu(du)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var s=Xs(l)}catch(b){throw b===Yo?Qc:b}else s=l;l=bn();var d=l.queue,p=d.dispatch;return i!==l.memoizedState&&(ee.flags|=2048,Zs(9,{destroy:void 0},fy.bind(null,d,i),null)),[s,p,n]}function fy(n,l){n.action=l}function dy(n){var l=bn(),i=He;if(i!==null)return Hf(l,i,n);bn(),l=l.memoizedState,i=bn();var s=i.queue.dispatch;return i.memoizedState=n,[l,s,!1]}function Zs(n,l,i,s){return n={tag:n,create:i,deps:s,inst:l,next:null},l=ee.updateQueue,l===null&&(l=_f(),ee.updateQueue=l),i=l.lastEffect,i===null?l.lastEffect=n.next=n:(s=i.next,i.next=n,n.next=s,l.lastEffect=n),n}function hy(){return bn().memoizedState}function Wc(n,l,i,s){var d=ta();ee.flags|=n,d.memoizedState=Zs(1|l,{destroy:void 0},i,s===void 0?null:s)}function Ic(n,l,i,s){var d=bn();s=s===void 0?null:s;var p=d.memoizedState.inst;He!==null&&s!==null&&uo(s,He.memoizedState.deps)?d.memoizedState=Zs(l,p,i,s):(ee.flags|=n,d.memoizedState=Zs(1|l,p,i,s))}function jh(n,l){Wc(8390656,8,n,l)}function Nh(n,l){Ic(2048,8,n,l)}function my(n){ee.flags|=4;var l=ee.updateQueue;if(l===null)l=_f(),ee.updateQueue=l,l.events=[n];else{var i=l.events;i===null?l.events=[n]:i.push(n)}}function Lf(n){var l=bn().memoizedState;return my({ref:l,nextImpl:n}),function(){if((Ue&2)!==0)throw Error(m(440));return l.impl.apply(void 0,arguments)}}function _h(n,l){return Ic(4,2,n,l)}function py(n,l){return Ic(4,4,n,l)}function Bh(n,l){if(typeof l=="function"){n=n();var i=l(n);return function(){typeof i=="function"?i():l(null)}}if(l!=null)return n=n(),l.current=n,function(){l.current=null}}function yy(n,l,i){i=i!=null?i.concat([n]):null,Ic(4,4,Bh.bind(null,l,n),i)}function Oi(){}function Vh(n,l){var i=bn();l=l===void 0?null:l;var s=i.memoizedState;return l!==null&&uo(l,s[1])?s[0]:(i.memoizedState=[n,l],n)}function av(n,l){var i=bn();l=l===void 0?null:l;var s=i.memoizedState;if(l!==null&&uo(l,s[1]))return s[0];if(s=n(),io){ne(!0);try{n()}finally{ne(!1)}}return i.memoizedState=[s,l],s}function qf(n,l,i){return i===void 0||(fu&1073741824)!==0&&(de&261930)===0?n.memoizedState=l:(n.memoizedState=i,n=vv(),ee.lanes|=n,_i|=n,i)}function mu(n,l,i,s){return za(i,l)?i:Gn.current!==null?(n=qf(n,i,s),za(n,l)||(zn=!0),n):(fu&42)===0||(fu&1073741824)!==0&&(de&261930)===0?(zn=!0,n.memoizedState=i):(n=vv(),ee.lanes|=n,_i|=n,l)}function Hh(n,l,i,s,d){var p=K.p;K.p=p!==0&&8>p?p:8;var b=q.T,D={};q.T=D,Fo(n,!1,l,i);try{var j=d(),Q=q.S;if(Q!==null&&Q(D,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var tt=zf(j,s);oo(n,l,tt,sl(n))}else oo(n,l,s,sl(n))}catch(at){oo(n,l,{then:function(){},status:"rejected",reason:at},sl())}finally{K.p=p,b!==null&&D.types!==null&&(b.types=D.types),q.T=b}}function lv(){}function Pc(n,l,i,s){if(n.tag!==5)throw Error(m(476));var d=tr(n).queue;Hh(n,d,l,ct,i===null?lv:function(){return Ye(n),i(s)})}function tr(n){var l=n.memoizedState;if(l!==null)return l;l={memoizedState:ct,baseState:ct,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:du,lastRenderedState:ct},next:null};var i={};return l.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:du,lastRenderedState:i},next:null},n.memoizedState=l,n=n.alternate,n!==null&&(n.memoizedState=l),l}function Ye(n){var l=tr(n);l.next===null&&(l=n.alternate.memoizedState),oo(n,l.next.queue,{},sl())}function gy(){return ut(pd)}function iv(){return bn().memoizedState}function vy(){return bn().memoizedState}function pu(n){for(var l=n.return;l!==null;){switch(l.tag){case 24:case 3:var i=sl();n=lo(i);var s=Al(l,n,i);s!==null&&(ka(s,l,i),Jo(s,l,i)),l={cache:Ef()},n.payload=l;return}l=l.return}}function uv(n,l,i){var s=sl();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Yf(n)?qh(l,i):(i=Pl(n,l,i,s),i!==null&&(ka(i,n,s),by(i,l,s)))}function Lh(n,l,i){var s=sl();oo(n,l,i,s)}function oo(n,l,i,s){var d={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Yf(n))qh(l,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=l.lastRenderedReducer,p!==null))try{var b=l.lastRenderedState,D=p(b,i);if(d.hasEagerState=!0,d.eagerState=D,za(D,b))return gl(n,l,d,0),Ge===null&&yl(),!1}catch{}finally{}if(i=Pl(n,l,d,s),i!==null)return ka(i,n,s),by(i,l,s),!0}return!1}function Fo(n,l,i,s){if(s={lane:2,revertLane:dm(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Yf(n)){if(l)throw Error(m(479))}else l=Pl(n,i,s,2),l!==null&&ka(l,n,2)}function Yf(n){var l=n.alternate;return n===ee||l!==null&&l===ee}function qh(n,l){Ys=qs=!0;var i=n.pending;i===null?l.next=l:(l.next=i.next,i.next=l),n.pending=l}function by(n,l,i){if((i&4194048)!==0){var s=l.lanes;s&=n.pendingLanes,i|=s,l.lanes=i,wn(n,i)}}var Gf={readContext:ut,use:Fc,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn};Gf.useEffectEvent=fn;var ov={readContext:ut,use:Fc,useCallback:function(n,l){return ta().memoizedState=[n,l===void 0?null:l],n},useContext:ut,useEffect:jh,useImperativeHandle:function(n,l,i){i=i!=null?i.concat([n]):null,Wc(4194308,4,Bh.bind(null,l,n),i)},useLayoutEffect:function(n,l){return Wc(4194308,4,n,l)},useInsertionEffect:function(n,l){Wc(4,2,n,l)},useMemo:function(n,l){var i=ta();l=l===void 0?null:l;var s=n();if(io){ne(!0);try{n()}finally{ne(!1)}}return i.memoizedState=[s,l],s},useReducer:function(n,l,i){var s=ta();if(i!==void 0){var d=i(l);if(io){ne(!0);try{i(l)}finally{ne(!1)}}}else d=l;return s.memoizedState=s.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},s.queue=n,n=n.dispatch=uv.bind(null,ee,n),[s.memoizedState,n]},useRef:function(n){var l=ta();return n={current:n},l.memoizedState=n},useState:function(n){n=iy(n);var l=n.queue,i=Lh.bind(null,ee,l);return l.dispatch=i,[n.memoizedState,i]},useDebugValue:Oi,useDeferredValue:function(n,l){var i=ta();return qf(i,n,l)},useTransition:function(){var n=iy(!1);return n=Hh.bind(null,ee,n.queue,!0,!1),ta().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,l,i){var s=ee,d=ta();if(ge){if(i===void 0)throw Error(m(407));i=i()}else{if(i=l(),Ge===null)throw Error(m(349));(de&127)!==0||Bf(s,l,i)}d.memoizedState=i;var p={value:i,getSnapshot:l};return d.queue=p,jh(Oh.bind(null,s,p,n),[n]),s.flags|=2048,Zs(9,{destroy:void 0},ly.bind(null,s,p,i,l),null),i},useId:function(){var n=ta(),l=Ge.identifierPrefix;if(ge){var i=Mi,s=ll;i=(s&~(1<<32-xe(s)-1)).toString(32)+i,l="_"+l+"R_"+i,i=wf++,0<i&&(l+="H"+i.toString(32)),l+="_"}else i=P0++,l="_"+l+"r_"+i.toString(32)+"_";return n.memoizedState=l},useHostTransitionStatus:gy,useFormState:ry,useActionState:ry,useOptimistic:function(n){var l=ta();l.memoizedState=l.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=i,l=Fo.bind(null,ee,!0,i),i.dispatch=l,[n,l]},useMemoCache:zh,useCacheRefresh:function(){return ta().memoizedState=pu.bind(null,ee)},useEffectEvent:function(n){var l=ta(),i={impl:n};return l.memoizedState=i,function(){if((Ue&2)!==0)throw Error(m(440));return i.impl.apply(void 0,arguments)}}},Yh={readContext:ut,use:Fc,useCallback:Vh,useContext:ut,useEffect:Nh,useImperativeHandle:yy,useInsertionEffect:_h,useLayoutEffect:py,useMemo:av,useReducer:hu,useRef:hy,useState:function(){return hu(du)},useDebugValue:Oi,useDeferredValue:function(n,l){var i=bn();return mu(i,He.memoizedState,n,l)},useTransition:function(){var n=hu(du)[0],l=bn().memoizedState;return[typeof n=="boolean"?n:Xs(n),l]},useSyncExternalStore:ay,useId:iv,useHostTransitionStatus:gy,useFormState:nv,useActionState:nv,useOptimistic:function(n,l){var i=bn();return ea(i,He,n,l)},useMemoCache:zh,useCacheRefresh:vy};Yh.useEffectEvent=Lf;var sv={readContext:ut,use:Fc,useCallback:Vh,useContext:ut,useEffect:Nh,useImperativeHandle:yy,useInsertionEffect:_h,useLayoutEffect:py,useMemo:av,useReducer:Rh,useRef:hy,useState:function(){return Rh(du)},useDebugValue:Oi,useDeferredValue:function(n,l){var i=bn();return He===null?qf(i,n,l):mu(i,He.memoizedState,n,l)},useTransition:function(){var n=Rh(du)[0],l=bn().memoizedState;return[typeof n=="boolean"?n:Xs(n),l]},useSyncExternalStore:ay,useId:iv,useHostTransitionStatus:gy,useFormState:dy,useActionState:dy,useOptimistic:function(n,l){var i=bn();return He!==null?ea(i,He,n,l):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:zh,useCacheRefresh:vy};sv.useEffectEvent=Lf;function Js(n,l,i,s){l=n.memoizedState,i=i(s,l),i=i==null?l:R({},l,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var ni={enqueueSetState:function(n,l,i){n=n._reactInternals;var s=sl(),d=lo(s);d.payload=l,i!=null&&(d.callback=i),l=Al(n,d,s),l!==null&&(ka(l,n,s),Jo(l,n,s))},enqueueReplaceState:function(n,l,i){n=n._reactInternals;var s=sl(),d=lo(s);d.tag=1,d.payload=l,i!=null&&(d.callback=i),l=Al(n,d,s),l!==null&&(ka(l,n,s),Jo(l,n,s))},enqueueForceUpdate:function(n,l){n=n._reactInternals;var i=sl(),s=lo(i);s.tag=2,l!=null&&(s.callback=l),l=Al(n,s,i),l!==null&&(ka(l,n,i),Jo(l,n,i))}};function Sy(n,l,i,s,d,p,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,p,b):l.prototype&&l.prototype.isPureReactComponent?!Fl(i,s)||!Fl(d,p):!0}function cv(n,l,i,s){n=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(i,s),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(i,s),l.state!==n&&ni.enqueueReplaceState(l,l.state,null)}function Wo(n,l){var i=l;if("ref"in l){i={};for(var s in l)s!=="ref"&&(i[s]=l[s])}if(n=n.defaultProps){i===l&&(i=R({},i));for(var d in n)i[d]===void 0&&(i[d]=n[d])}return i}function Gh(n){Os(n)}function Ty(n){console.error(n)}function Xh(n){Os(n)}function er(n,l){try{var i=n.onUncaughtError;i(l.value,{componentStack:l.stack})}catch(s){setTimeout(function(){throw s})}}function Xf(n,l,i){try{var s=n.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ay(n,l,i){return i=lo(i),i.tag=3,i.payload={element:null},i.callback=function(){er(n,l)},i}function Ey(n){return n=lo(n),n.tag=3,n}function xy(n,l,i,s){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=s.value;n.payload=function(){return d(p)},n.callback=function(){Xf(l,i,s)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){Xf(l,i,s),typeof d!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var D=s.stack;this.componentDidCatch(s.value,{componentStack:D!==null?D:""})})}function CS(n,l,i,s,d){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(l=i.alternate,l!==null&&Pn(l,i,d,!0),i=Ga.current,i!==null){switch(i.tag){case 31:case 13:return El===null?sm():i.alternate===null&&Fe===0&&(Fe=3),i.flags&=-257,i.flags|=65536,i.lanes=d,s===Vs?i.flags|=16384:(l=i.updateQueue,l===null?i.updateQueue=new Set([s]):l.add(s),ad(n,s,d)),!1;case 22:return i.flags|=65536,s===Vs?i.flags|=16384:(l=i.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=l):(i=l.retryQueue,i===null?l.retryQueue=new Set([s]):i.add(s)),ad(n,s,d)),!1}throw Error(m(435,i.tag))}return ad(n,s,d),sm(),!1}if(ge)return l=Ga.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=d,s!==uu&&(n=Error(m(422),{cause:s}),Gc(vl(n,i)))):(s!==uu&&(l=Error(m(423),{cause:s}),Gc(vl(l,i))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,s=vl(s,i),d=Ay(n.stateNode,s,d),Ah(n,d),Fe!==4&&(Fe=2)),!1;var p=Error(m(520),{cause:s});if(p=vl(p,i),Pf===null?Pf=[p]:Pf.push(p),Fe!==4&&(Fe=2),l===null)return!0;s=vl(s,i),i=l;do{switch(i.tag){case 3:return i.flags|=65536,n=d&-d,i.lanes|=n,n=Ay(i.stateNode,s,n),Ah(i,n),!1;case 1:if(l=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ln===null||!ln.has(p))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Ey(d),xy(d,n,i,s),Ah(i,d),!1}i=i.return}while(i!==null);return!1}var Qh=Error(m(461)),zn=!1;function tn(n,l,i,s){l.child=n===null?ey(l,null,i,s):Zo(l,n.child,i,s)}function Dy(n,l,i,s,d){i=i.render;var p=l.ref;if("ref"in s){var b={};for(var D in s)D!=="ref"&&(b[D]=s[D])}else b=s;return Kt(l),s=jf(n,l,i,b,p,d),D=Mh(),n!==null&&!zn?(Gs(n,l,d),Ml(n,l,d)):(ge&&D&&qc(l),l.flags|=1,tn(n,l,s,d),l.child)}function My(n,l,i,s,d){if(n===null){var p=i.type;return typeof p=="function"&&!Us(p)&&p.defaultProps===void 0&&i.compare===null?(l.tag=15,l.type=p,zy(n,l,p,s,d)):(n=ph(i.type,null,s,l,l.mode,d),n.ref=l.ref,n.return=l,l.child=n)}if(p=n.child,!Kh(n,d)){var b=p.memoizedProps;if(i=i.compare,i=i!==null?i:Fl,i(b,s)&&n.ref===l.ref)return Ml(n,l,d)}return l.flags|=1,n=Iu(p,s),n.ref=l.ref,n.return=l,l.child=n}function zy(n,l,i,s,d){if(n!==null){var p=n.memoizedProps;if(Fl(p,s)&&n.ref===l.ref)if(zn=!1,l.pendingProps=s=p,Kh(n,d))(n.flags&131072)!==0&&(zn=!0);else return l.lanes=n.lanes,Ml(n,l,d)}return Zh(n,l,i,s,d)}function rv(n,l,i,s){var d=s.children,p=n!==null?n.memoizedState:null;if(n===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((l.flags&128)!==0){if(p=p!==null?p.baseLanes|i:i,n!==null){for(s=l.child=n.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~p}else s=0,l.child=null;return Qa(n,l,p,i,s)}if((i&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},n!==null&&Xc(l,p!==null?p.cachePool:null),p!==null?I0(l,p):Uf(),xh(l);else return s=l.lanes=536870912,Qa(n,l,p!==null?p.baseLanes|i:i,i,s)}else p!==null?(Xc(l,p.cachePool),I0(l,p),Ri(),l.memoizedState=null):(n!==null&&Xc(l,null),Uf(),Ri());return tn(n,l,d,i),l.child}function Io(n,l){return n!==null&&n.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Qa(n,l,i,s,d){var p=Tl();return p=p===null?null:{parent:Dn._currentValue,pool:p},l.memoizedState={baseLanes:i,cachePool:p},n!==null&&Xc(l,null),Uf(),xh(l),n!==null&&Pn(n,l,s,!0),l.childLanes=d,null}function Qf(n,l){return l=Kf({mode:l.mode,children:l.children},n.mode),l.ref=n.ref,n.child=l,l.return=n,l}function Za(n,l,i){return Zo(l,n.child,null,i),n=Qf(l,l.pendingProps),n.flags|=2,Xa(l),l.memoizedState=null,n}function fv(n,l,i){var s=l.pendingProps,d=(l.flags&128)!==0;if(l.flags&=-129,n===null){if(ge){if(s.mode==="hidden")return n=Qf(l,s),l.lanes=536870912,Io(null,n);if(Kc(l),(n=$e)?(n=Jv(n,Yn),n=n!==null&&n.data==="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Di!==null?{id:ll,overflow:Mi}:null,retryLane:536870912,hydrationErrors:null},i=Jp(n),i.return=l,l.child=i,In=l,$e=null)):n=null,n===null)throw ei(l);return l.lanes=536870912,null}return Qf(l,s)}var p=n.memoizedState;if(p!==null){var b=p.dehydrated;if(Kc(l),d)if(l.flags&256)l.flags&=-257,l=Za(n,l,i);else if(l.memoizedState!==null)l.child=n.child,l.flags|=128,l=null;else throw Error(m(558));else if(zn||Pn(n,l,i,!1),d=(i&n.childLanes)!==0,zn||d){if(s=Ge,s!==null&&(b=xa(s,i),b!==0&&b!==p.retryLane))throw p.retryLane=b,Wu(n,b),ka(s,n,b),Qh;sm(),l=Za(n,l,i)}else n=p.treeContext,$e=Fa(b.nextSibling),In=l,ge=!0,iu=null,Yn=!1,n!==null&&Sf(l,n),l=Qf(l,s),l.flags|=4096;return l}return n=Iu(n.child,{mode:s.mode,children:s.children}),n.ref=l.ref,l.child=n,n.return=l,n}function xl(n,l){var i=l.ref;if(i===null)n!==null&&n.ref!==null&&(l.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(m(284));(n===null||n.ref!==i)&&(l.flags|=4194816)}}function Zh(n,l,i,s,d){return Kt(l),i=jf(n,l,i,s,void 0,d),s=Mh(),n!==null&&!zn?(Gs(n,l,d),Ml(n,l,d)):(ge&&s&&qc(l),l.flags|=1,tn(n,l,i,d),l.child)}function Po(n,l,i,s,d,p){return Kt(l),l.updateQueue=null,i=tv(l,s,i,d),Dh(n),s=Mh(),n!==null&&!zn?(Gs(n,l,p),Ml(n,l,p)):(ge&&s&&qc(l),l.flags|=1,tn(n,l,i,p),l.child)}function Cy(n,l,i,s,d){if(Kt(l),l.stateNode===null){var p=La,b=i.contextType;typeof b=="object"&&b!==null&&(p=ut(b)),p=new i(s,p),l.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ni,l.stateNode=p,p._reactInternals=l,p=l.stateNode,p.props=s,p.state=l.memoizedState,p.refs={},Of(l),b=i.contextType,p.context=typeof b=="object"&&b!==null?ut(b):La,p.state=l.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Js(l,i,b,s),p.state=l.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&ni.enqueueReplaceState(p,p.state,null),cu(l,s,p,d),Ko(),p.state=l.memoizedState),typeof p.componentDidMount=="function"&&(l.flags|=4194308),s=!0}else if(n===null){p=l.stateNode;var D=l.memoizedProps,j=Wo(i,D);p.props=j;var Q=p.context,tt=i.contextType;b=La,typeof tt=="object"&&tt!==null&&(b=ut(tt));var at=i.getDerivedStateFromProps;tt=typeof at=="function"||typeof p.getSnapshotBeforeUpdate=="function",D=l.pendingProps!==D,tt||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(D||Q!==b)&&cv(l,p,s,b),ao=!1;var Z=l.memoizedState;p.state=Z,cu(l,s,p,d),Ko(),Q=l.memoizedState,D||Z!==Q||ao?(typeof at=="function"&&(Js(l,i,at,s),Q=l.memoizedState),(j=ao||Sy(l,i,j,s,Z,Q,b))?(tt||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"&&(l.flags|=4194308)):(typeof p.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=s,l.memoizedState=Q),p.props=s,p.state=Q,p.context=b,s=j):(typeof p.componentDidMount=="function"&&(l.flags|=4194308),s=!1)}else{p=l.stateNode,Th(n,l),b=l.memoizedProps,tt=Wo(i,b),p.props=tt,at=l.pendingProps,Z=p.context,Q=i.contextType,j=La,typeof Q=="object"&&Q!==null&&(j=ut(Q)),D=i.getDerivedStateFromProps,(Q=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==at||Z!==j)&&cv(l,p,s,j),ao=!1,Z=l.memoizedState,p.state=Z,cu(l,s,p,d),Ko();var I=l.memoizedState;b!==at||Z!==I||ao||n!==null&&n.dependencies!==null&&js(n.dependencies)?(typeof D=="function"&&(Js(l,i,D,s),I=l.memoizedState),(tt=ao||Sy(l,i,tt,s,Z,I,j)||n!==null&&n.dependencies!==null&&js(n.dependencies))?(Q||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,I,j),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,I,j)),typeof p.componentDidUpdate=="function"&&(l.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),l.memoizedProps=s,l.memoizedState=I),p.props=s,p.state=I,p.context=j,s=tt):(typeof p.componentDidUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),s=!1)}return p=s,xl(n,l),s=(l.flags&128)!==0,p||s?(p=l.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:p.render(),l.flags|=1,n!==null&&s?(l.child=Zo(l,n.child,null,d),l.child=Zo(l,null,i,d)):tn(n,l,i,d),l.memoizedState=p.state,n=l.child):n=Ml(n,l,d),n}function Ui(n,l,i,s){return Lo(),l.flags|=256,tn(n,l,i,s),l.child}var Zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jf(n){return{baseLanes:n,cachePool:_s()}}function Dl(n,l,i){return n=n!==null?n.childLanes&~i:0,l&&(n|=$a),n}function Ry(n,l,i){var s=l.pendingProps,d=!1,p=(l.flags&128)!==0,b;if((b=p)||(b=n!==null&&n.memoizedState===null?!1:(an.current&2)!==0),b&&(d=!0,l.flags&=-129),b=(l.flags&32)!==0,l.flags&=-33,n===null){if(ge){if(d?ru(l):Ri(),(n=$e)?(n=Jv(n,Yn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Di!==null?{id:ll,overflow:Mi}:null,retryLane:536870912,hydrationErrors:null},i=Jp(n),i.return=l,l.child=i,In=l,$e=null)):n=null,n===null)throw ei(l);return us(n)?l.lanes=32:l.lanes=536870912,null}var D=s.children;return s=s.fallback,d?(Ri(),d=l.mode,D=Kf({mode:"hidden",children:D},d),s=Pu(s,d,i,null),D.return=l,s.return=l,D.sibling=s,l.child=D,s=l.child,s.memoizedState=Jf(i),s.childLanes=Dl(n,b,i),l.memoizedState=Zf,Io(null,s)):(ru(l),ts(l,D))}var j=n.memoizedState;if(j!==null&&(D=j.dehydrated,D!==null)){if(p)l.flags&256?(ru(l),l.flags&=-257,l=Ks(n,l,i)):l.memoizedState!==null?(Ri(),l.child=n.child,l.flags|=128,l=null):(Ri(),D=s.fallback,d=l.mode,s=Kf({mode:"visible",children:s.children},d),D=Pu(D,d,i,null),D.flags|=2,s.return=l,D.return=l,s.sibling=D,l.child=s,Zo(l,n.child,null,i),s=l.child,s.memoizedState=Jf(i),s.childLanes=Dl(n,b,i),l.memoizedState=Zf,l=Io(null,s));else if(ru(l),us(D)){if(b=D.nextSibling&&D.nextSibling.dataset,b)var Q=b.dgst;b=Q,s=Error(m(419)),s.stack="",s.digest=b,Gc({value:s,source:null,stack:null}),l=Ks(n,l,i)}else if(zn||Pn(n,l,i,!1),b=(i&n.childLanes)!==0,zn||b){if(b=Ge,b!==null&&(s=xa(b,i),s!==0&&s!==j.retryLane))throw j.retryLane=s,Wu(n,s),ka(b,n,s),Qh;ii(D)||sm(),l=Ks(n,l,i)}else ii(D)?(l.flags|=192,l.child=n.child,l=null):(n=j.treeContext,$e=Fa(D.nextSibling),In=l,ge=!0,iu=null,Yn=!1,n!==null&&Sf(l,n),l=ts(l,s.children),l.flags|=4096);return l}return d?(Ri(),D=s.fallback,d=l.mode,j=n.child,Q=j.sibling,s=Iu(j,{mode:"hidden",children:s.children}),s.subtreeFlags=j.subtreeFlags&65011712,Q!==null?D=Iu(Q,D):(D=Pu(D,d,i,null),D.flags|=2),D.return=l,s.return=l,s.sibling=D,l.child=s,Io(null,s),s=l.child,D=n.child.memoizedState,D===null?D=Jf(i):(d=D.cachePool,d!==null?(j=Dn._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=_s(),D={baseLanes:D.baseLanes|i,cachePool:d}),s.memoizedState=D,s.childLanes=Dl(n,b,i),l.memoizedState=Zf,Io(n.child,s)):(ru(l),i=n.child,n=i.sibling,i=Iu(i,{mode:"visible",children:s.children}),i.return=l,i.sibling=null,n!==null&&(b=l.deletions,b===null?(l.deletions=[n],l.flags|=16):b.push(n)),l.child=i,l.memoizedState=null,i)}function ts(n,l){return l=Kf({mode:"visible",children:l},n.mode),l.return=n,n.child=l}function Kf(n,l){return n=gn(22,n,null,l),n.lanes=0,n}function Ks(n,l,i){return Zo(l,n.child,null,i),n=ts(l,l.pendingProps.children),n.flags|=2,l.memoizedState=null,n}function $s(n,l,i){n.lanes|=l;var s=n.alternate;s!==null&&(s.lanes|=l),bh(n.return,l,i)}function Jh(n,l,i,s,d,p){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:d,treeForkCount:p}:(b.isBackwards=l,b.rendering=null,b.renderingStartTime=0,b.last=s,b.tail=i,b.tailMode=d,b.treeForkCount=p)}function Oy(n,l,i){var s=l.pendingProps,d=s.revealOrder,p=s.tail;s=s.children;var b=an.current,D=(b&2)!==0;if(D?(b=b&1|2,l.flags|=128):b&=1,Gt(an,b),tn(n,l,s,i),s=ge?xn:0,!D&&n!==null&&(n.flags&128)!==0)t:for(n=l.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&$s(n,i,l);else if(n.tag===19)$s(n,i,l);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break t;for(;n.sibling===null;){if(n.return===null||n.return===l)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(i=l.child,d=null;i!==null;)n=i.alternate,n!==null&&$c(n)===null&&(d=i),i=i.sibling;i=d,i===null?(d=l.child,l.child=null):(d=i.sibling,i.sibling=null),Jh(l,!1,d,i,p,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=l.child,l.child=null;d!==null;){if(n=d.alternate,n!==null&&$c(n)===null){l.child=d;break}n=d.sibling,d.sibling=i,i=d,d=n}Jh(l,!0,i,null,p,s);break;case"together":Jh(l,!1,null,null,void 0,s);break;default:l.memoizedState=null}return l.child}function Ml(n,l,i){if(n!==null&&(l.dependencies=n.dependencies),_i|=l.lanes,(i&l.childLanes)===0)if(n!==null){if(Pn(n,l,i,!1),(i&l.childLanes)===0)return null}else return null;if(n!==null&&l.child!==n.child)throw Error(m(153));if(l.child!==null){for(n=l.child,i=Iu(n,n.pendingProps),l.child=i,i.return=l;n.sibling!==null;)n=n.sibling,i=i.sibling=Iu(n,n.pendingProps),i.return=l;i.sibling=null}return l.child}function Kh(n,l){return(n.lanes&l)!==0?!0:(n=n.dependencies,!!(n!==null&&js(n)))}function $h(n,l,i){switch(l.tag){case 3:Na(l,l.stateNode.containerInfo),Ya(l,Dn,n.memoizedState.cache),Lo();break;case 27:case 5:Ji(l);break;case 4:Na(l,l.stateNode.containerInfo);break;case 10:Ya(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Kc(l),null;break;case 13:var s=l.memoizedState;if(s!==null)return s.dehydrated!==null?(ru(l),l.flags|=128,null):(i&l.child.childLanes)!==0?Ry(n,l,i):(ru(l),n=Ml(n,l,i),n!==null?n.sibling:null);ru(l);break;case 19:var d=(n.flags&128)!==0;if(s=(i&l.childLanes)!==0,s||(Pn(n,l,i,!1),s=(i&l.childLanes)!==0),d){if(s)return Oy(n,l,i);l.flags|=128}if(d=l.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Gt(an,an.current),s)break;return null;case 22:return l.lanes=0,rv(n,l,i,l.pendingProps);case 24:Ya(l,Dn,n.memoizedState.cache)}return Ml(n,l,i)}function Uy(n,l,i){if(n!==null)if(n.memoizedProps!==l.pendingProps)zn=!0;else{if(!Kh(n,i)&&(l.flags&128)===0)return zn=!1,$h(n,l,i);zn=(n.flags&131072)!==0}else zn=!1,ge&&(l.flags&1048576)!==0&&$p(l,xn,l.index);switch(l.lanes=0,l.tag){case 16:t:{var s=l.pendingProps;if(n=Go(l.elementType),l.type=n,typeof n=="function")Us(n)?(s=Wo(n,s),l.tag=1,l=Cy(null,l,n,s,i)):(l.tag=0,l=Zh(null,l,n,s,i));else{if(n!=null){var d=n.$$typeof;if(d===St){l.tag=11,l=Dy(null,l,n,s,i);break t}else if(d===Ct){l.tag=14,l=My(null,l,n,s,i);break t}}throw l=Je(n)||n,Error(m(306,l,""))}}return l;case 0:return Zh(n,l,l.type,l.pendingProps,i);case 1:return s=l.type,d=Wo(s,l.pendingProps),Cy(n,l,s,d,i);case 3:t:{if(Na(l,l.stateNode.containerInfo),n===null)throw Error(m(387));s=l.pendingProps;var p=l.memoizedState;d=p.element,Th(n,l),cu(l,s,null,i);var b=l.memoizedState;if(s=b.cache,Ya(l,Dn,s),s!==p.cache&&su(l,[Dn],i,!0),Ko(),s=b.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:b.cache},l.updateQueue.baseState=p,l.memoizedState=p,l.flags&256){l=Ui(n,l,s,i);break t}else if(s!==d){d=vl(Error(m(424)),l),Gc(d),l=Ui(n,l,s,i);break t}else{switch(n=l.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for($e=Fa(n.firstChild),In=l,ge=!0,iu=null,Yn=!0,i=ey(l,null,s,i),l.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Lo(),s===d){l=Ml(n,l,i);break t}tn(n,l,s,i)}l=l.child}return l;case 26:return xl(n,l),n===null?(i=Er(l.type,null,l.pendingProps,null))?l.memoizedState=i:ge||(i=l.type,n=l.pendingProps,s=is(Aa.current).createElement(i),s[Re]=l,s[ma]=n,ya(s,i,n),Oe(s),l.stateNode=s):l.memoizedState=Er(l.type,n.memoizedProps,l.pendingProps,n.memoizedState),null;case 27:return Ji(l),n===null&&ge&&(s=l.stateNode=Tr(l.type,l.pendingProps,Aa.current),In=l,Yn=!0,d=$e,Vi(l.type)?(dd=d,$e=Fa(s.firstChild)):$e=d),tn(n,l,l.pendingProps.children,i),xl(n,l),n===null&&(l.flags|=4194304),l.child;case 5:return n===null&&ge&&((d=s=$e)&&(s=US(s,l.type,l.pendingProps,Yn),s!==null?(l.stateNode=s,In=l,$e=Fa(s.firstChild),Yn=!1,d=!0):d=!1),d||ei(l)),Ji(l),d=l.type,p=l.pendingProps,b=n!==null?n.memoizedProps:null,s=p.children,br(d,p)?s=null:b!==null&&br(d,b)&&(l.flags|=32),l.memoizedState!==null&&(d=jf(n,l,zS,null,null,i),pd._currentValue=d),xl(n,l),tn(n,l,s,i),l.child;case 6:return n===null&&ge&&((n=i=$e)&&(i=ue(i,l.pendingProps,Yn),i!==null?(l.stateNode=i,In=l,$e=null,n=!0):n=!1),n||ei(l)),null;case 13:return Ry(n,l,i);case 4:return Na(l,l.stateNode.containerInfo),s=l.pendingProps,n===null?l.child=Zo(l,null,s,i):tn(n,l,s,i),l.child;case 11:return Dy(n,l,l.type,l.pendingProps,i);case 7:return tn(n,l,l.pendingProps,i),l.child;case 8:return tn(n,l,l.pendingProps.children,i),l.child;case 12:return tn(n,l,l.pendingProps.children,i),l.child;case 10:return s=l.pendingProps,Ya(l,l.type,s.value),tn(n,l,s.children,i),l.child;case 9:return d=l.type._context,s=l.pendingProps.children,Kt(l),d=ut(d),s=s(d),l.flags|=1,tn(n,l,s,i),l.child;case 14:return My(n,l,l.type,l.pendingProps,i);case 15:return zy(n,l,l.type,l.pendingProps,i);case 19:return Oy(n,l,i);case 31:return fv(n,l,i);case 22:return rv(n,l,i,l.pendingProps);case 24:return Kt(l),s=ut(Dn),n===null?(d=Tl(),d===null&&(d=Ge,p=Ef(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=i),d=p),l.memoizedState={parent:s,cache:d},Of(l),Ya(l,Dn,d)):((n.lanes&i)!==0&&(Th(n,l),cu(l,null,null,i),Ko()),d=n.memoizedState,p=l.memoizedState,d.parent!==s?(d={parent:s,cache:s},l.memoizedState=d,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=d),Ya(l,Dn,s)):(s=p.cache,Ya(l,Dn,s),s!==d.cache&&su(l,[Dn],i,!0))),tn(n,l,l.pendingProps.children,i),l.child;case 29:throw l.pendingProps}throw Error(m(156,l.tag))}function yu(n){n.flags|=4}function wy(n,l,i,s,d){if((l=(n.mode&32)!==0)&&(l=!1),l){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Tv())n.flags|=8192;else throw Xo=Vs,Bs}else n.flags&=-16777217}function jy(n,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!rl(l))if(Tv())n.flags|=8192;else throw Xo=Vs,Bs}function Ca(n,l){l!==null&&(n.flags|=4),n.flags&16384&&(l=n.tag!==22?$i():536870912,n.lanes|=l,dn|=l)}function nr(n,l){if(!ge)switch(n.tailMode){case"hidden":l=n.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?l||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function Zt(n){var l=n.alternate!==null&&n.alternate.child===n.child,i=0,s=0;if(l)for(var d=n.child;d!==null;)i|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)i|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=s,n.childLanes=i,l}function dv(n,l,i){var s=l.pendingProps;switch(gh(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(l),null;case 1:return Zt(l),null;case 3:return i=l.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),Ci(Dn),ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(ou(l)?yu(l):n===null||n.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,kp())),Zt(l),null;case 26:var d=l.type,p=l.memoizedState;return n===null?(yu(l),p!==null?(Zt(l),jy(l,p)):(Zt(l),wy(l,d,null,s,i))):p?p!==n.memoizedState?(yu(l),Zt(l),jy(l,p)):(Zt(l),l.flags&=-16777217):(n=n.memoizedProps,n!==s&&yu(l),Zt(l),wy(l,d,n,s,i)),null;case 27:if(mt(l),i=Aa.current,d=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&yu(l);else{if(!s){if(l.stateNode===null)throw Error(m(166));return Zt(l),null}n=It.current,ou(l)?Tf(l):(n=Tr(d,s,i),l.stateNode=n,yu(l))}return Zt(l),null;case 5:if(mt(l),d=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&yu(l);else{if(!s){if(l.stateNode===null)throw Error(m(166));return Zt(l),null}if(p=It.current,ou(l))Tf(l);else{var b=is(Aa.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?b.createElement("select",{is:s.is}):b.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?b.createElement(d,{is:s.is}):b.createElement(d)}}p[Re]=l,p[ma]=s;t:for(b=l.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===l)break t;for(;b.sibling===null;){if(b.return===null||b.return===l)break t;b=b.return}b.sibling.return=b.return,b=b.sibling}l.stateNode=p;t:switch(ya(p,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&yu(l)}}return Zt(l),wy(l,l.type,n===null?null:n.memoizedProps,l.pendingProps,i),null;case 6:if(n&&l.stateNode!=null)n.memoizedProps!==s&&yu(l);else{if(typeof s!="string"&&l.stateNode===null)throw Error(m(166));if(n=Aa.current,ou(l)){if(n=l.stateNode,i=l.memoizedProps,s=null,d=In,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}n[Re]=l,n=!!(n.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||ag(n.nodeValue,i)),n||ei(l,!0)}else n=is(n).createTextNode(s),n[Re]=l,l.stateNode=n}return Zt(l),null;case 31:if(i=l.memoizedState,n===null||n.memoizedState!==null){if(s=ou(l),i!==null){if(n===null){if(!s)throw Error(m(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(m(557));n[Re]=l}else Lo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Zt(l),n=!1}else i=kp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return l.flags&256?(Xa(l),l):(Xa(l),null);if((l.flags&128)!==0)throw Error(m(558))}return Zt(l),null;case 13:if(s=l.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=ou(l),s!==null&&s.dehydrated!==null){if(n===null){if(!d)throw Error(m(318));if(d=l.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(m(317));d[Re]=l}else Lo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Zt(l),d=!1}else d=kp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return l.flags&256?(Xa(l),l):(Xa(l),null)}return Xa(l),(l.flags&128)!==0?(l.lanes=i,l):(i=s!==null,n=n!==null&&n.memoizedState!==null,i&&(s=l.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==d&&(s.flags|=2048)),i!==n&&i&&(l.child.flags|=8192),Ca(l,l.updateQueue),Zt(l),null);case 4:return ye(),n===null&&vr(l.stateNode.containerInfo),Zt(l),null;case 10:return Ci(l.type),Zt(l),null;case 19:if(me(an),s=l.memoizedState,s===null)return Zt(l),null;if(d=(l.flags&128)!==0,p=s.rendering,p===null)if(d)nr(s,!1);else{if(Fe!==0||n!==null&&(n.flags&128)!==0)for(n=l.child;n!==null;){if(p=$c(n),p!==null){for(l.flags|=128,nr(s,!1),n=p.updateQueue,l.updateQueue=n,Ca(l,n),l.subtreeFlags=0,n=i,i=l.child;i!==null;)Zp(i,n),i=i.sibling;return Gt(an,an.current&1|2),ge&&ti(l,s.treeForkCount),l.child}n=n.sibling}s.tail!==null&&rn()>_e&&(l.flags|=128,d=!0,nr(s,!1),l.lanes=4194304)}else{if(!d)if(n=$c(p),n!==null){if(l.flags|=128,d=!0,n=n.updateQueue,l.updateQueue=n,Ca(l,n),nr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!ge)return Zt(l),null}else 2*rn()-s.renderingStartTime>_e&&i!==536870912&&(l.flags|=128,d=!0,nr(s,!1),l.lanes=4194304);s.isBackwards?(p.sibling=l.child,l.child=p):(n=s.last,n!==null?n.sibling=p:l.child=p,s.last=p)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=rn(),n.sibling=null,i=an.current,Gt(an,d?i&1|2:i&1),ge&&ti(l,s.treeForkCount),n):(Zt(l),null);case 22:case 23:return Xa(l),Jc(),s=l.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(l.flags|=8192):s&&(l.flags|=8192),s?(i&536870912)!==0&&(l.flags&128)===0&&(Zt(l),l.subtreeFlags&6&&(l.flags|=8192)):Zt(l),i=l.updateQueue,i!==null&&Ca(l,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048),n!==null&&me(Sl),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),l.memoizedState.cache!==i&&(l.flags|=2048),Ci(Dn),Zt(l),null;case 25:return null;case 30:return null}throw Error(m(156,l.tag))}function hv(n,l){switch(gh(l),l.tag){case 1:return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 3:return Ci(Dn),ye(),n=l.flags,(n&65536)!==0&&(n&128)===0?(l.flags=n&-65537|128,l):null;case 26:case 27:case 5:return mt(l),null;case 31:if(l.memoizedState!==null){if(Xa(l),l.alternate===null)throw Error(m(340));Lo()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 13:if(Xa(l),n=l.memoizedState,n!==null&&n.dehydrated!==null){if(l.alternate===null)throw Error(m(340));Lo()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 19:return me(an),null;case 4:return ye(),null;case 10:return Ci(l.type),null;case 22:case 23:return Xa(l),Jc(),n!==null&&me(Sl),n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 24:return Ci(Dn),null;case 25:return null;default:return null}}function mv(n,l){switch(gh(l),l.tag){case 3:Ci(Dn),ye();break;case 26:case 27:case 5:mt(l);break;case 4:ye();break;case 31:l.memoizedState!==null&&Xa(l);break;case 13:Xa(l);break;case 19:me(an);break;case 10:Ci(l.type);break;case 22:case 23:Xa(l),Jc(),n!==null&&me(Sl);break;case 24:Ci(Dn)}}function ai(n,l){try{var i=l.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var d=s.next;i=d;do{if((i.tag&n)===n){s=void 0;var p=i.create,b=i.inst;s=p(),b.destroy=s}i=i.next}while(i!==d)}}catch(D){qe(l,l.return,D)}}function zl(n,l,i){try{var s=l.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var p=d.next;s=p;do{if((s.tag&n)===n){var b=s.inst,D=b.destroy;if(D!==void 0){b.destroy=void 0,d=l;var j=i,Q=D;try{Q()}catch(tt){qe(d,j,tt)}}}s=s.next}while(s!==p)}}catch(tt){qe(l,l.return,tt)}}function kh(n){var l=n.updateQueue;if(l!==null){var i=n.stateNode;try{$o(l,i)}catch(s){qe(n,n.return,s)}}}function es(n,l,i){i.props=Wo(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(s){qe(n,l,s)}}function gu(n,l){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof i=="function"?n.refCleanup=i(s):i.current=s}}catch(d){qe(n,l,d)}}function wi(n,l){var i=n.ref,s=n.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(d){qe(n,l,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){qe(n,l,d)}else i.current=null}function Ny(n){var l=n.type,i=n.memoizedProps,s=n.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break t;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(d){qe(n,n.return,d)}}function Fh(n,l,i){try{var s=n.stateNode;ig(s,n.type,i,l),s[ma]=l}catch(d){qe(n,n.return,d)}}function _y(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Vi(n.type)||n.tag===4}function ar(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||_y(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Vi(n.type)||n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lr(n,l,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,l):(l=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,l.appendChild(n),i=i._reactRootContainer,i!=null||l.onclick!==null||(l.onclick=vi));else if(s!==4&&(s===27&&Vi(n.type)&&(i=n.stateNode,l=null),n=n.child,n!==null))for(lr(n,l,i),n=n.sibling;n!==null;)lr(n,l,i),n=n.sibling}function ir(n,l,i){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?i.insertBefore(n,l):i.appendChild(n);else if(s!==4&&(s===27&&Vi(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(ir(n,l,i),n=n.sibling;n!==null;)ir(n,l,i),n=n.sibling}function By(n){var l=n.stateNode,i=n.memoizedProps;try{for(var s=n.type,d=l.attributes;d.length;)l.removeAttributeNode(d[0]);ya(l,s,i),l[Re]=n,l[ma]=i}catch(p){qe(n,n.return,p)}}var so=!1,Bn=!1,Wh=!1,Vy=typeof WeakSet=="function"?WeakSet:Set,na=null;function ur(n,l){if(n=n.containerInfo,gm=Qn,n=Bo(n),mf(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else t:{i=(i=n.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var d=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break t}var b=0,D=-1,j=-1,Q=0,tt=0,at=n,Z=null;e:for(;;){for(var I;at!==i||d!==0&&at.nodeType!==3||(D=b+d),at!==p||s!==0&&at.nodeType!==3||(j=b+s),at.nodeType===3&&(b+=at.nodeValue.length),(I=at.firstChild)!==null;)Z=at,at=I;for(;;){if(at===n)break e;if(Z===i&&++Q===d&&(D=b),Z===p&&++tt===s&&(j=b),(I=at.nextSibling)!==null)break;at=Z,Z=at.parentNode}at=I}i=D===-1||j===-1?null:{start:D,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(vm={focusedElem:n,selectionRange:i},Qn=!1,na=l;na!==null;)if(l=na,n=l.child,(l.subtreeFlags&1028)!==0&&n!==null)n.return=l,na=n;else for(;na!==null;){switch(l=na,p=l.alternate,n=l.flags,l.tag){case 0:if((n&4)!==0&&(n=l.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)d=n[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,i=l,d=p.memoizedProps,p=p.memoizedState,s=i.stateNode;try{var zt=Wo(i.type,d);n=s.getSnapshotBeforeUpdate(zt,p),s.__reactInternalSnapshotBeforeUpdate=n}catch(qt){qe(i,i.return,qt)}}break;case 3:if((n&1024)!==0){if(n=l.stateNode.containerInfo,i=n.nodeType,i===9)fd(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":fd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(m(163))}if(n=l.sibling,n!==null){n.return=l.return,na=n;break}na=l.return}}function $f(n,l,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:co(n,i),s&4&&ai(5,i);break;case 1:if(co(n,i),s&4)if(n=i.stateNode,l===null)try{n.componentDidMount()}catch(b){qe(i,i.return,b)}else{var d=Wo(i.type,l.memoizedProps);l=l.memoizedState;try{n.componentDidUpdate(d,l,n.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(i,i.return,b)}}s&64&&kh(i),s&512&&gu(i,i.return);break;case 3:if(co(n,i),s&64&&(n=i.updateQueue,n!==null)){if(l=null,i.child!==null)switch(i.child.tag){case 27:case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}try{$o(n,l)}catch(b){qe(i,i.return,b)}}break;case 27:l===null&&s&4&&By(i);case 26:case 5:co(n,i),l===null&&s&4&&Ny(i),s&512&&gu(i,i.return);break;case 12:co(n,i);break;case 31:co(n,i),s&4&&pv(n,i);break;case 13:co(n,i),s&4&&qy(n,i),s&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=Cl.bind(null,i),Sr(n,i))));break;case 22:if(s=i.memoizedState!==null||so,!s){l=l!==null&&l.memoizedState!==null||Bn,d=so;var p=Bn;so=s,(Bn=l)&&!p?ji(n,i,(i.subtreeFlags&8772)!==0):co(n,i),so=d,Bn=p}break;case 30:break;default:co(n,i)}}function Hy(n){var l=n.alternate;l!==null&&(n.alternate=null,Hy(l)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(l=n.stateNode,l!==null&&Ba(l)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ke=null,Ja=!1;function vu(n,l,i){for(i=i.child;i!==null;)Ly(n,l,i),i=i.sibling}function Ly(n,l,i){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(Ht,i)}catch{}switch(i.tag){case 26:Bn||wi(i,l),vu(n,l,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Bn||wi(i,l);var s=ke,d=Ja;Vi(i.type)&&(ke=i.stateNode,Ja=!1),vu(n,l,i),nc(i.stateNode),ke=s,Ja=d;break;case 5:Bn||wi(i,l);case 6:if(s=ke,d=Ja,ke=null,vu(n,l,i),ke=s,Ja=d,ke!==null)if(Ja)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(i.stateNode)}catch(p){qe(i,l,p)}else try{ke.removeChild(i.stateNode)}catch(p){qe(i,l,p)}break;case 18:ke!==null&&(Ja?(n=ke,cg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Ur(n)):cg(ke,i.stateNode));break;case 4:s=ke,d=Ja,ke=i.stateNode.containerInfo,Ja=!0,vu(n,l,i),ke=s,Ja=d;break;case 0:case 11:case 14:case 15:zl(2,i,l),Bn||zl(4,i,l),vu(n,l,i);break;case 1:Bn||(wi(i,l),s=i.stateNode,typeof s.componentWillUnmount=="function"&&es(i,l,s)),vu(n,l,i);break;case 21:vu(n,l,i);break;case 22:Bn=(s=Bn)||i.memoizedState!==null,vu(n,l,i),Bn=s;break;default:vu(n,l,i)}}function pv(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Ur(n)}catch(i){qe(l,l.return,i)}}}function qy(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ur(n)}catch(i){qe(l,l.return,i)}}function kf(n){switch(n.tag){case 31:case 13:case 19:var l=n.stateNode;return l===null&&(l=n.stateNode=new Vy),l;case 22:return n=n.stateNode,l=n._retryCache,l===null&&(l=n._retryCache=new Vy),l;default:throw Error(m(435,n.tag))}}function Ff(n,l){var i=kf(n);l.forEach(function(s){if(!i.has(s)){i.add(s);var d=Bv.bind(null,n,s);s.then(d,d)}})}function Ka(n,l){var i=l.deletions;if(i!==null)for(var s=0;s<i.length;s++){var d=i[s],p=n,b=l,D=b;t:for(;D!==null;){switch(D.tag){case 27:if(Vi(D.type)){ke=D.stateNode,Ja=!1;break t}break;case 5:ke=D.stateNode,Ja=!1;break t;case 3:case 4:ke=D.stateNode.containerInfo,Ja=!0;break t}D=D.return}if(ke===null)throw Error(m(160));Ly(p,b,d),ke=null,Ja=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)Ih(l,n),l=l.sibling}var ae=null;function Ih(n,l){var i=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Ka(l,n),il(n),s&4&&(zl(3,n,n.return),ai(3,n),zl(5,n,n.return));break;case 1:Ka(l,n),il(n),s&512&&(Bn||i===null||wi(i,i.return)),s&64&&so&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var d=ae;if(Ka(l,n),il(n),s&512&&(Bn||i===null||wi(i,i.return)),s&4){var p=i!==null?i.memoizedState:null;if(s=n.memoizedState,i===null)if(s===null)if(n.stateNode===null){t:{s=n.type,i=n.memoizedProps,d=d.ownerDocument||d;e:switch(s){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ql]||p[Re]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(s),d.head.insertBefore(p,d.querySelector("head > title"))),ya(p,s,i),p[Re]=n,Oe(p),s=p;break t;case"link":var b=hg("link","href",d).get(s+(i.href||""));if(b){for(var D=0;D<b.length;D++)if(p=b[D],p.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(D,1);break e}}p=d.createElement(s),ya(p,s,i),d.head.appendChild(p);break;case"meta":if(b=hg("meta","content",d).get(s+(i.content||""))){for(D=0;D<b.length;D++)if(p=b[D],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(D,1);break e}}p=d.createElement(s),ya(p,s,i),d.head.appendChild(p);break;default:throw Error(m(468,s))}p[Re]=n,Oe(p),s=p}n.stateNode=s}else Em(d,n.type,n.stateNode);else n.stateNode=dg(d,s,n.memoizedProps);else p!==s?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,s===null?Em(d,n.type,n.stateNode):dg(d,s,n.memoizedProps)):s===null&&n.stateNode!==null&&Fh(n,n.memoizedProps,i.memoizedProps)}break;case 27:Ka(l,n),il(n),s&512&&(Bn||i===null||wi(i,i.return)),i!==null&&s&4&&Fh(n,n.memoizedProps,i.memoizedProps);break;case 5:if(Ka(l,n),il(n),s&512&&(Bn||i===null||wi(i,i.return)),n.flags&32){d=n.stateNode;try{Pi(d,"")}catch(zt){qe(n,n.return,zt)}}s&4&&n.stateNode!=null&&(d=n.memoizedProps,Fh(n,d,i!==null?i.memoizedProps:d)),s&1024&&(Wh=!0);break;case 6:if(Ka(l,n),il(n),s&4){if(n.stateNode===null)throw Error(m(162));s=n.memoizedProps,i=n.stateNode;try{i.nodeValue=s}catch(zt){qe(n,n.return,zt)}}break;case 3:if(Mr=null,d=ae,ae=Ra(l.containerInfo),Ka(l,n),ae=d,il(n),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Ur(l.containerInfo)}catch(zt){qe(n,n.return,zt)}Wh&&(Wh=!1,Yy(n));break;case 4:s=ae,ae=Ra(n.stateNode.containerInfo),Ka(l,n),il(n),ae=s;break;case 12:Ka(l,n),il(n);break;case 31:Ka(l,n),il(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ff(n,s)));break;case 13:Ka(l,n),il(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Bi=rn()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ff(n,s)));break;case 22:d=n.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,Q=so,tt=Bn;if(so=Q||d,Bn=tt||j,Ka(l,n),Bn=tt,so=Q,il(n),s&8192)t:for(l=n.stateNode,l._visibility=d?l._visibility&-2:l._visibility|1,d&&(i===null||j||so||Bn||ks(n)),i=null,l=n;;){if(l.tag===5||l.tag===26){if(i===null){j=i=l;try{if(p=j.stateNode,d)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{D=j.stateNode;var at=j.memoizedProps.style,Z=at!=null&&at.hasOwnProperty("display")?at.display:null;D.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(zt){qe(j,j.return,zt)}}}else if(l.tag===6){if(i===null){j=l;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(zt){qe(j,j.return,zt)}}}else if(l.tag===18){if(i===null){j=l;try{var I=j.stateNode;d?Cn(I,!0):Cn(j.stateNode,!1)}catch(zt){qe(j,j.return,zt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===n)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break t;for(;l.sibling===null;){if(l.return===null||l.return===n)break t;i===l&&(i=null),l=l.return}i===l&&(i=null),l.sibling.return=l.return,l=l.sibling}s&4&&(s=n.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Ff(n,i))));break;case 19:Ka(l,n),il(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Ff(n,s)));break;case 30:break;case 21:break;default:Ka(l,n),il(n)}}function il(n){var l=n.flags;if(l&2){try{for(var i,s=n.return;s!==null;){if(_y(s)){i=s;break}s=s.return}if(i==null)throw Error(m(160));switch(i.tag){case 27:var d=i.stateNode,p=ar(n);ir(n,p,d);break;case 5:var b=i.stateNode;i.flags&32&&(Pi(b,""),i.flags&=-33);var D=ar(n);ir(n,D,b);break;case 3:case 4:var j=i.stateNode.containerInfo,Q=ar(n);lr(n,Q,j);break;default:throw Error(m(161))}}catch(tt){qe(n,n.return,tt)}n.flags&=-3}l&4096&&(n.flags&=-4097)}function Yy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var l=n;Yy(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),n=n.sibling}}function co(n,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)$f(n,l.alternate,l),l=l.sibling}function ks(n){for(n=n.child;n!==null;){var l=n;switch(l.tag){case 0:case 11:case 14:case 15:zl(4,l,l.return),ks(l);break;case 1:wi(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&es(l,l.return,i),ks(l);break;case 27:nc(l.stateNode);case 26:case 5:wi(l,l.return),ks(l);break;case 22:l.memoizedState===null&&ks(l);break;case 30:ks(l);break;default:ks(l)}n=n.sibling}}function ji(n,l,i){for(i=i&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var s=l.alternate,d=n,p=l,b=p.flags;switch(p.tag){case 0:case 11:case 15:ji(d,p,i),ai(4,p);break;case 1:if(ji(d,p,i),s=p,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){qe(s,s.return,Q)}if(s=p,d=s.updateQueue,d!==null){var D=s.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)Eh(j[d],D)}catch(Q){qe(s,s.return,Q)}}i&&b&64&&kh(p),gu(p,p.return);break;case 27:By(p);case 26:case 5:ji(d,p,i),i&&s===null&&b&4&&Ny(p),gu(p,p.return);break;case 12:ji(d,p,i);break;case 31:ji(d,p,i),i&&b&4&&pv(d,p);break;case 13:ji(d,p,i),i&&b&4&&qy(d,p);break;case 22:p.memoizedState===null&&ji(d,p,i),gu(p,p.return);break;case 30:break;default:ji(d,p,i)}l=l.sibling}}function Ph(n,l){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&xf(i))}function tm(n,l){n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&xf(n))}function li(n,l,i,s){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)or(n,l,i,s),l=l.sibling}function or(n,l,i,s){var d=l.flags;switch(l.tag){case 0:case 11:case 15:li(n,l,i,s),d&2048&&ai(9,l);break;case 1:li(n,l,i,s);break;case 3:li(n,l,i,s),d&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&xf(n)));break;case 12:if(d&2048){li(n,l,i,s),n=l.stateNode;try{var p=l.memoizedProps,b=p.id,D=p.onPostCommit;typeof D=="function"&&D(b,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(j){qe(l,l.return,j)}}else li(n,l,i,s);break;case 31:li(n,l,i,s);break;case 13:li(n,l,i,s);break;case 23:break;case 22:p=l.stateNode,b=l.alternate,l.memoizedState!==null?p._visibility&2?li(n,l,i,s):Wf(n,l):p._visibility&2?li(n,l,i,s):(p._visibility|=2,sr(n,l,i,s,(l.subtreeFlags&10256)!==0||!1)),d&2048&&Ph(b,l);break;case 24:li(n,l,i,s),d&2048&&tm(l.alternate,l);break;default:li(n,l,i,s)}}function sr(n,l,i,s,d){for(d=d&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var p=n,b=l,D=i,j=s,Q=b.flags;switch(b.tag){case 0:case 11:case 15:sr(p,b,D,j,d),ai(8,b);break;case 23:break;case 22:var tt=b.stateNode;b.memoizedState!==null?tt._visibility&2?sr(p,b,D,j,d):Wf(p,b):(tt._visibility|=2,sr(p,b,D,j,d)),d&&Q&2048&&Ph(b.alternate,b);break;case 24:sr(p,b,D,j,d),d&&Q&2048&&tm(b.alternate,b);break;default:sr(p,b,D,j,d)}l=l.sibling}}function Wf(n,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var i=n,s=l,d=s.flags;switch(s.tag){case 22:Wf(i,s),d&2048&&Ph(s.alternate,s);break;case 24:Wf(i,s),d&2048&&tm(s.alternate,s);break;default:Wf(i,s)}l=l.sibling}}var ul=8192;function bu(n,l,i){if(n.subtreeFlags&ul)for(n=n.child;n!==null;)yv(n,l,i),n=n.sibling}function yv(n,l,i){switch(n.tag){case 26:bu(n,l,i),n.flags&ul&&n.memoizedState!==null&&xu(i,ae,n.memoizedState,n.memoizedProps);break;case 5:bu(n,l,i);break;case 3:case 4:var s=ae;ae=Ra(n.stateNode.containerInfo),bu(n,l,i),ae=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=ul,ul=16777216,bu(n,l,i),ul=s):bu(n,l,i));break;default:bu(n,l,i)}}function em(n){var l=n.alternate;if(l!==null&&(n=l.child,n!==null)){l.child=null;do l=n.sibling,n.sibling=null,n=l;while(n!==null)}}function cr(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];na=s,nm(s,n)}em(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Gy(n),n=n.sibling}function Gy(n){switch(n.tag){case 0:case 11:case 15:cr(n),n.flags&2048&&zl(9,n,n.return);break;case 3:cr(n);break;case 12:cr(n);break;case 22:var l=n.stateNode;n.memoizedState!==null&&l._visibility&2&&(n.return===null||n.return.tag!==13)?(l._visibility&=-3,If(n)):cr(n);break;default:cr(n)}}function If(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];na=s,nm(s,n)}em(n)}for(n=n.child;n!==null;){switch(l=n,l.tag){case 0:case 11:case 15:zl(8,l,l.return),If(l);break;case 22:i=l.stateNode,i._visibility&2&&(i._visibility&=-3,If(l));break;default:If(l)}n=n.sibling}}function nm(n,l){for(;na!==null;){var i=na;switch(i.tag){case 0:case 11:case 15:zl(8,i,l);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:xf(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,na=s;else t:for(i=n;na!==null;){s=na;var d=s.sibling,p=s.return;if(Hy(s),s===i){na=null;break t}if(d!==null){d.return=p,na=d;break t}na=p}}}var gv={getCacheForType:function(n){var l=ut(Dn),i=l.data.get(n);return i===void 0&&(i=n(),l.data.set(n,i)),i},cacheSignal:function(){return ut(Dn).controller.signal}},Xy=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ge=null,ve=null,de=0,Le=0,Xt=null,Su=!1,ns=!1,am=!1,Ni=0,Fe=0,_i=0,Fs=0,lm=0,$a=0,dn=0,Pf=null,hn=null,im=!1,Bi=0,Qy=0,_e=1/0,rr=null,ln=null,Xn=0,ro=null,as=null,Tu=0,ol=0,um=null,om=null,fr=0,td=null;function sl(){return(Ue&2)!==0&&de!==0?de&-de:q.T!==null?dm():ki()}function vv(){if($a===0)if((de&536870912)===0||ge){var n=kn;kn<<=1,(kn&3932160)===0&&(kn=262144),$a=n}else $a=536870912;return n=Ga.current,n!==null&&(n.flags|=32),$a}function ka(n,l,i){(n===Ge&&(Le===2||Le===9)||n.cancelPendingCommit!==null)&&(Au(n,0),fo(n,de,$a,!1)),Yl(n,i),((Ue&2)===0||n!==Ge)&&(n===Ge&&((Ue&2)===0&&(Fs|=i),Fe===4&&fo(n,de,$a,!1)),Eu(n))}function bv(n,l,i){if((Ue&6)!==0)throw Error(m(327));var s=!i&&(l&127)===0&&(l&n.expiredLanes)===0||ql(n,l),d=s?xv(n,l):cm(n,l,!0),p=s;do{if(d===0){ns&&!s&&fo(n,l,0,!1);break}else{if(i=n.current.alternate,p&&!Sv(i)){d=cm(n,l,!1),p=!1;continue}if(d===2){if(p=l,n.errorRecoveryDisabledLanes&p)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){l=b;t:{var D=n;d=Pf;var j=D.current.memoizedState.isDehydrated;if(j&&(Au(D,b).flags|=256),b=cm(D,b,!1),b!==2){if(am&&!j){D.errorRecoveryDisabledLanes|=p,Fs|=p,d=4;break t}p=hn,hn=d,p!==null&&(hn===null?hn=p:hn.push.apply(hn,p))}d=b}if(p=!1,d!==2)continue}}if(d===1){Au(n,0),fo(n,l,0,!0);break}t:{switch(s=n,p=d,p){case 0:case 1:throw Error(m(345));case 4:if((l&4194048)!==l)break;case 6:fo(s,l,$a,!Su);break t;case 2:hn=null;break;case 3:case 5:break;default:throw Error(m(329))}if((l&62914560)===l&&(d=Bi+300-rn(),10<d)){if(fo(s,l,$a,!Su),Ke(s,0,!0)!==0)break t;Tu=l,s.timeoutHandle=rd(ed.bind(null,s,i,hn,rr,im,l,$a,Fs,dn,Su,p,"Throttled",-0,0),d);break t}ed(s,i,hn,rr,im,l,$a,Fs,dn,Su,p,null,-0,0)}}break}while(!0);Eu(n)}function ed(n,l,i,s,d,p,b,D,j,Q,tt,at,Z,I){if(n.timeoutHandle=-1,at=l.subtreeFlags,at&8192||(at&16785408)===16785408){at={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vi},yv(l,p,at);var zt=(p&62914560)===p?Bi-rn():(p&4194048)===p?Qy-rn():0;if(zt=pg(at,zt),zt!==null){Tu=p,n.cancelPendingCommit=zt(Cv.bind(null,n,l,p,i,s,d,b,D,j,tt,at,null,Z,I)),fo(n,p,b,!Q);return}}Cv(n,l,p,i,s,d,b,D,j)}function Sv(n){for(var l=n;;){var i=l.tag;if((i===0||i===11||i===15)&&l.flags&16384&&(i=l.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var d=i[s],p=d.getSnapshot;d=d.value;try{if(!za(p(),d))return!1}catch{return!1}}if(i=l.child,l.subtreeFlags&16384&&i!==null)i.return=l,l=i;else{if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function fo(n,l,i,s){l&=~lm,l&=~Fs,n.suspendedLanes|=l,n.pingedLanes&=~l,s&&(n.warmLanes|=l),s=n.expirationTimes;for(var d=l;0<d;){var p=31-xe(d),b=1<<p;s[p]=-1,d&=~b}i!==0&&Qu(n,i,l)}function dr(){return(Ue&6)===0?(mo(0),!1):!0}function Zy(){if(ve!==null){if(Le===0)var n=ve.return;else n=ve,zi=to=null,Nf(n),Qo=null,Hs=0,n=ve;for(;n!==null;)mv(n.alternate,n),n=n.return;ve=null}}function Au(n,l){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,Qv(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Tu=0,Zy(),Ge=n,ve=i=Iu(n.current,null),de=l,Le=0,Xt=null,Su=!1,ns=ql(n,l),am=!1,dn=$a=lm=Fs=_i=Fe=0,hn=Pf=null,im=!1,(l&8)!==0&&(l|=l&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=l;0<s;){var d=31-xe(s),p=1<<d;l|=n[d],s&=~p}return Ni=l,yl(),i}function hr(n,l){ee=null,q.H=Gf,l===Yo||l===Qc?(l=ty(),Le=3):l===Bs?(l=ty(),Le=4):Le=l===Qh?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Xt=l,ve===null&&(Fe=1,er(n,vl(l,n.current)))}function Tv(){var n=Ga.current;return n===null?!0:(de&4194048)===de?El===null:(de&62914560)===de||(de&536870912)!==0?n===El:!1}function Av(){var n=q.H;return q.H=Gf,n===null?Gf:n}function Ev(){var n=q.A;return q.A=gv,n}function sm(){Fe=4,Su||(de&4194048)!==de&&Ga.current!==null||(ns=!0),(_i&134217727)===0&&(Fs&134217727)===0||Ge===null||fo(Ge,de,$a,!1)}function cm(n,l,i){var s=Ue;Ue|=2;var d=Av(),p=Ev();(Ge!==n||de!==l)&&(rr=null,Au(n,l)),l=!1;var b=Fe;t:do try{if(Le!==0&&ve!==null){var D=ve,j=Xt;switch(Le){case 8:Zy(),b=6;break t;case 3:case 2:case 9:case 6:Ga.current===null&&(l=!0);var Q=Le;if(Le=0,Xt=null,Ws(n,D,j,Q),i&&ns){b=0;break t}break;default:Q=Le,Le=0,Xt=null,Ws(n,D,j,Q)}}RS(),b=Fe;break}catch(tt){hr(n,tt)}while(!0);return l&&n.shellSuspendCounter++,zi=to=null,Ue=s,q.H=d,q.A=p,ve===null&&(Ge=null,de=0,yl()),b}function RS(){for(;ve!==null;)Dv(ve)}function xv(n,l){var i=Ue;Ue|=2;var s=Av(),d=Ev();Ge!==n||de!==l?(rr=null,_e=rn()+500,Au(n,l)):ns=ql(n,l);t:do try{if(Le!==0&&ve!==null){l=ve;var p=Xt;e:switch(Le){case 1:Le=0,Xt=null,Ws(n,l,p,1);break;case 2:case 9:if(Ip(p)){Le=0,Xt=null,Mv(l);break}l=function(){Le!==2&&Le!==9||Ge!==n||(Le=7),Eu(n)},p.then(l,l);break t;case 3:Le=7;break t;case 4:Le=5;break t;case 7:Ip(p)?(Le=0,Xt=null,Mv(l)):(Le=0,Xt=null,Ws(n,l,p,7));break;case 5:var b=null;switch(ve.tag){case 26:b=ve.memoizedState;case 5:case 27:var D=ve;if(b?rl(b):D.stateNode.complete){Le=0,Xt=null;var j=D.sibling;if(j!==null)ve=j;else{var Q=D.return;Q!==null?(ve=Q,nd(Q)):ve=null}break e}}Le=0,Xt=null,Ws(n,l,p,5);break;case 6:Le=0,Xt=null,Ws(n,l,p,6);break;case 8:Zy(),Fe=6;break t;default:throw Error(m(462))}}ls();break}catch(tt){hr(n,tt)}while(!0);return zi=to=null,q.H=s,q.A=d,Ue=i,ve!==null?0:(Ge=null,de=0,yl(),Fe)}function ls(){for(;ve!==null&&!tl();)Dv(ve)}function Dv(n){var l=Uy(n.alternate,n,Ni);n.memoizedProps=n.pendingProps,l===null?nd(n):ve=l}function Mv(n){var l=n,i=l.alternate;switch(l.tag){case 15:case 0:l=Po(i,l,l.pendingProps,l.type,void 0,de);break;case 11:l=Po(i,l,l.pendingProps,l.type.render,l.ref,de);break;case 5:Nf(l);default:mv(i,l),l=ve=Zp(l,Ni),l=Uy(i,l,Ni)}n.memoizedProps=n.pendingProps,l===null?nd(n):ve=l}function Ws(n,l,i,s){zi=to=null,Nf(l),Qo=null,Hs=0;var d=l.return;try{if(CS(n,d,l,i,de)){Fe=1,er(n,vl(i,n.current)),ve=null;return}}catch(p){if(d!==null)throw ve=d,p;Fe=1,er(n,vl(i,n.current)),ve=null;return}l.flags&32768?(ge||s===1?n=!0:ns||(de&536870912)!==0?n=!1:(Su=n=!0,(s===2||s===9||s===3||s===6)&&(s=Ga.current,s!==null&&s.tag===13&&(s.flags|=16384))),zv(l,n)):nd(l)}function nd(n){var l=n;do{if((l.flags&32768)!==0){zv(l,Su);return}n=l.return;var i=dv(l.alternate,l,Ni);if(i!==null){ve=i;return}if(l=l.sibling,l!==null){ve=l;return}ve=l=n}while(l!==null);Fe===0&&(Fe=5)}function zv(n,l){do{var i=hv(n.alternate,n);if(i!==null){i.flags&=32767,ve=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!l&&(n=n.sibling,n!==null)){ve=n;return}ve=n=i}while(n!==null);Fe=6,ve=null}function Cv(n,l,i,s,d,p,b,D,j){n.cancelPendingCommit=null;do mr();while(Xn!==0);if((Ue&6)!==0)throw Error(m(327));if(l!==null){if(l===n.current)throw Error(m(177));if(p=l.lanes|l.childLanes,p|=Il,Gl(n,i,p,b,D,j),n===Ge&&(ve=Ge=null,de=0),as=l,ro=n,Tu=i,ol=p,um=d,om=s,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Vv(Hl,function(){return jv(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||s){s=q.T,q.T=null,d=K.p,K.p=2,b=Ue,Ue|=4;try{ur(n,l,i)}finally{Ue=b,K.p=d,q.T=s}}Xn=1,Rv(),Ov(),Uv()}}function Rv(){if(Xn===1){Xn=0;var n=ro,l=as,i=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||i){i=q.T,q.T=null;var s=K.p;K.p=2;var d=Ue;Ue|=4;try{Ih(l,n);var p=vm,b=Bo(n.containerInfo),D=p.focusedElem,j=p.selectionRange;if(b!==D&&D&&D.ownerDocument&&Cs(D.ownerDocument.documentElement,D)){if(j!==null&&mf(D)){var Q=j.start,tt=j.end;if(tt===void 0&&(tt=Q),"selectionStart"in D)D.selectionStart=Q,D.selectionEnd=Math.min(tt,D.value.length);else{var at=D.ownerDocument||document,Z=at&&at.defaultView||window;if(Z.getSelection){var I=Z.getSelection(),zt=D.textContent.length,qt=Math.min(j.start,zt),Qe=j.end===void 0?qt:Math.min(j.end,zt);!I.extend&&qt>Qe&&(b=Qe,Qe=qt,qt=b);var Y=Xp(D,qt),H=Xp(D,Qe);if(Y&&H&&(I.rangeCount!==1||I.anchorNode!==Y.node||I.anchorOffset!==Y.offset||I.focusNode!==H.node||I.focusOffset!==H.offset)){var X=at.createRange();X.setStart(Y.node,Y.offset),I.removeAllRanges(),qt>Qe?(I.addRange(X),I.extend(H.node,H.offset)):(X.setEnd(H.node,H.offset),I.addRange(X))}}}}for(at=[],I=D;I=I.parentNode;)I.nodeType===1&&at.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<at.length;D++){var nt=at[D];nt.element.scrollLeft=nt.left,nt.element.scrollTop=nt.top}}Qn=!!gm,vm=gm=null}finally{Ue=d,K.p=s,q.T=i}}n.current=l,Xn=2}}function Ov(){if(Xn===2){Xn=0;var n=ro,l=as,i=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||i){i=q.T,q.T=null;var s=K.p;K.p=2;var d=Ue;Ue|=4;try{$f(n,l.alternate,l)}finally{Ue=d,K.p=s,q.T=i}}Xn=3}}function Uv(){if(Xn===4||Xn===3){Xn=0,mi();var n=ro,l=as,i=Tu,s=om;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Xn=5:(Xn=0,as=ro=null,wv(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(ln=null),Co(i),l=l.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Ht,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=q.T,d=K.p,K.p=2,q.T=null;try{for(var p=n.onRecoverableError,b=0;b<s.length;b++){var D=s[b];p(D.value,{componentStack:D.stack})}}finally{q.T=l,K.p=d}}(Tu&3)!==0&&mr(),Eu(n),d=n.pendingLanes,(i&261930)!==0&&(d&42)!==0?n===td?fr++:(fr=0,td=n):fr=0,mo(0)}}function wv(n,l){(n.pooledCacheLanes&=l)===0&&(l=n.pooledCache,l!=null&&(n.pooledCache=null,xf(l)))}function mr(){return Rv(),Ov(),Uv(),jv()}function jv(){if(Xn!==5)return!1;var n=ro,l=ol;ol=0;var i=Co(Tu),s=q.T,d=K.p;try{K.p=32>i?32:i,q.T=null,i=um,um=null;var p=ro,b=Tu;if(Xn=0,as=ro=null,Tu=0,(Ue&6)!==0)throw Error(m(331));var D=Ue;if(Ue|=4,Gy(p.current),or(p,p.current,b,i),Ue=D,mo(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Ht,p)}catch{}return!0}finally{K.p=d,q.T=s,wv(n,l)}}function Nv(n,l,i){l=vl(i,l),l=Ay(n.stateNode,l,2),n=Al(n,l,2),n!==null&&(Yl(n,2),Eu(n))}function qe(n,l,i){if(n.tag===3)Nv(n,n,i);else for(;l!==null;){if(l.tag===3){Nv(l,n,i);break}else if(l.tag===1){var s=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ln===null||!ln.has(s))){n=vl(i,n),i=Ey(2),s=Al(l,i,2),s!==null&&(xy(i,s,l,n),Yl(s,2),Eu(s));break}}l=l.return}}function ad(n,l,i){var s=n.pingCache;if(s===null){s=n.pingCache=new Xy;var d=new Set;s.set(l,d)}else d=s.get(l),d===void 0&&(d=new Set,s.set(l,d));d.has(i)||(am=!0,d.add(i),n=Jy.bind(null,n,l,i),l.then(n,n))}function Jy(n,l,i){var s=n.pingCache;s!==null&&s.delete(l),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ge===n&&(de&i)===i&&(Fe===4||Fe===3&&(de&62914560)===de&&300>rn()-Bi?(Ue&2)===0&&Au(n,0):lm|=i,dn===de&&(dn=0)),Eu(n)}function _v(n,l){l===0&&(l=$i()),n=Wu(n,l),n!==null&&(Yl(n,l),Eu(n))}function Cl(n){var l=n.memoizedState,i=0;l!==null&&(i=l.retryLane),_v(n,i)}function Bv(n,l){var i=0;switch(n.tag){case 31:case 13:var s=n.stateNode,d=n.memoizedState;d!==null&&(i=d.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(m(314))}s!==null&&s.delete(l),_v(n,i)}function Vv(n,l){return Me(n,l)}var pr=null,Is=null,Ky=!1,rm=!1,$y=!1,ho=0;function Eu(n){n!==Is&&n.next===null&&(Is===null?pr=Is=n:Is=Is.next=n),rm=!0,Ky||(Ky=!0,id())}function mo(n,l){if(!$y&&rm){$y=!0;do for(var i=!1,s=pr;s!==null;){if(n!==0){var d=s.pendingLanes;if(d===0)var p=0;else{var b=s.suspendedLanes,D=s.pingedLanes;p=(1<<31-xe(42|n)+1)-1,p&=d&~(b&~D),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,Ps(s,p))}else p=de,p=Ke(s,s===Ge?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||ql(s,p)||(i=!0,Ps(s,p));s=s.next}while(i);$y=!1}}function fm(){ky()}function ky(){rm=Ky=!1;var n=0;ho!==0&&OS()&&(n=ho);for(var l=rn(),i=null,s=pr;s!==null;){var d=s.next,p=Fy(s,l);p===0?(s.next=null,i===null?pr=d:i.next=d,d===null&&(Is=i)):(i=s,(n!==0||(p&3)!==0)&&(rm=!0)),s=d}Xn!==0&&Xn!==5||mo(n),ho!==0&&(ho=0)}function Fy(n,l){for(var i=n.suspendedLanes,s=n.pingedLanes,d=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var b=31-xe(p),D=1<<b,j=d[b];j===-1?((D&i)===0||(D&s)!==0)&&(d[b]=pi(D,l)):j<=l&&(n.expiredLanes|=D),p&=~D}if(l=Ge,i=de,i=Ke(n,n===l?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,i===0||n===l&&(Le===2||Le===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&hi(s),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||ql(n,i)){if(l=i&-i,l===n.callbackPriority)return l;switch(s!==null&&hi(s),Co(i)){case 2:case 8:i=zo;break;case 32:i=Hl;break;case 268435456:i=Tt;break;default:i=Hl}return s=ld.bind(null,n),i=Me(i,s),n.callbackPriority=l,n.callbackNode=i,l}return s!==null&&s!==null&&hi(s),n.callbackPriority=2,n.callbackNode=null,2}function ld(n,l){if(Xn!==0&&Xn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(mr()&&n.callbackNode!==i)return null;var s=de;return s=Ke(n,n===Ge?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(bv(n,s,l),Fy(n,rn()),n.callbackNode!=null&&n.callbackNode===i?ld.bind(null,n):null)}function Ps(n,l){if(mr())return null;bv(n,l,!0)}function id(){Zv(function(){(Ue&6)!==0?Me(Mo,fm):ky()})}function dm(){if(ho===0){var n=qo;n===0&&(n=_a,_a<<=1,(_a&261888)===0&&(_a=256)),ho=n}return ho}function Hv(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$l(""+n)}function tc(n,l){var i=l.ownerDocument.createElement("input");return i.name=l.name,i.value=l.value,n.id&&i.setAttribute("form",n.id),l.parentNode.insertBefore(i,l),n=new FormData(n),i.parentNode.removeChild(i),n}function ud(n,l,i,s,d){if(l==="submit"&&i&&i.stateNode===d){var p=Hv((d[ma]||null).action),b=s.submitter;b&&(l=(l=b[ma]||null)?Hv(l.formAction):b.getAttribute("formAction"),l!==null&&(p=l,b=null));var D=new ff("action","action",null,s,d);n.push({event:D,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ho!==0){var j=b?tc(d,b):new FormData(d);Pc(i,{pending:!0,data:j,method:d.method,action:p},null,j)}}else typeof p=="function"&&(D.preventDefault(),j=b?tc(d,b):new FormData(d),Pc(i,{pending:!0,data:j,method:d.method,action:p},p,j))},currentTarget:d}]})}}for(var hm=0;hm<Hc.length;hm++){var yr=Hc[hm],Wy=yr.toLowerCase(),Iy=yr[0].toUpperCase()+yr.slice(1);Ha(Wy,"on"+Iy)}Ha(yf,"onAnimationEnd"),Ha(Qp,"onAnimationIteration"),Ha(hh,"onAnimationStart"),Ha("dblclick","onDoubleClick"),Ha("focusin","onFocus"),Ha("focusout","onBlur"),Ha(Rs,"onTransitionRun"),Ha(gf,"onTransitionStart"),Ha(au,"onTransitionCancel"),Ha(k0,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gr="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(" "),Lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gr));function qv(n,l){l=(l&4)!==0;for(var i=0;i<n.length;i++){var s=n[i],d=s.event;s=s.listeners;t:{var p=void 0;if(l)for(var b=s.length-1;0<=b;b--){var D=s[b],j=D.instance,Q=D.currentTarget;if(D=D.listener,j!==p&&d.isPropagationStopped())break t;p=D,d.currentTarget=Q;try{p(d)}catch(tt){Os(tt)}d.currentTarget=null,p=j}else for(b=0;b<s.length;b++){if(D=s[b],j=D.instance,Q=D.currentTarget,D=D.listener,j!==p&&d.isPropagationStopped())break t;p=D,d.currentTarget=Q;try{p(d)}catch(tt){Os(tt)}d.currentTarget=null,p=j}}}}function pe(n,l){var i=l[zc];i===void 0&&(i=l[zc]=new Set);var s=n+"__bubble";i.has(s)||(od(l,n,2,!1),i.add(s))}function Py(n,l,i){var s=0;l&&(s|=4),od(i,n,s,l)}var mm="_reactListening"+Math.random().toString(36).slice(2);function vr(n){if(!n[mm]){n[mm]=!0,Ju.forEach(function(i){i!=="selectionchange"&&(Lv.has(i)||Py(i,!1,n),Py(i,!0,n))});var l=n.nodeType===9?n:n.ownerDocument;l===null||l[mm]||(l[mm]=!0,Py("selectionchange",!1,l))}}function od(n,l,i,s){switch(yd(l)){case 2:var d=Du;break;case 8:d=Mu;break;default:d=ga}i=d.bind(null,l,i,n),d=void 0,!cf||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(d=!0),s?d!==void 0?n.addEventListener(l,i,{capture:!0,passive:d}):n.addEventListener(l,i,!0):d!==void 0?n.addEventListener(l,i,{passive:d}):n.addEventListener(l,i,!1)}function tg(n,l,i,s,d){var p=s;if((l&1)===0&&(l&2)===0&&s!==null)t:for(;;){if(s===null)return;var b=s.tag;if(b===3||b===4){var D=s.stateNode.containerInfo;if(D===d)break;if(b===4)for(b=s.return;b!==null;){var j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;D!==null;){if(b=Wi(D),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){s=p=b;continue t}D=D.parentNode}}s=s.return}Mp(function(){var Q=p,tt=th(i),at=[];t:{var Z=lu.get(n);if(Z!==void 0){var I=ff,zt=n;switch(n){case"keypress":if(nh(i)===0)break t;case"keydown":case"keyup":I=uh;break;case"focusin":zt="focus",I=lh;break;case"focusout":zt="blur",I=lh;break;case"beforeblur":case"afterblur":I=lh;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=jc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=V0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=G0;break;case yf:case Qp:case hh:I=L0;break;case k0:I=xS;break;case"scroll":case"scrollend":I=AS;break;case"wheel":I=DS;break;case"copy":case"cut":case"paste":I=As;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Ti;break;case"toggle":case"beforetoggle":I=_p}var qt=(l&4)!==0,Qe=!qt&&(n==="scroll"||n==="scrollend"),Y=qt?Z!==null?Z+"Capture":null:Z;qt=[];for(var H=Q,X;H!==null;){var nt=H;if(X=nt.stateNode,nt=nt.tag,nt!==5&&nt!==26&&nt!==27||X===null||Y===null||(nt=Fn(H,Y),nt!=null&&qt.push(sd(H,nt,X))),Qe)break;H=H.return}0<qt.length&&(Z=new I(Z,zt,null,i,tt),at.push({event:Z,listeners:qt}))}}if((l&7)===0){t:{if(Z=n==="mouseover"||n==="pointerover",I=n==="mouseout"||n==="pointerout",Z&&i!==Pd&&(zt=i.relatedTarget||i.fromElement)&&(Wi(zt)||zt[Fi]))break t;if((I||Z)&&(Z=tt.window===tt?tt:(Z=tt.ownerDocument)?Z.defaultView||Z.parentWindow:window,I?(zt=i.relatedTarget||i.toElement,I=Q,zt=zt?Wi(zt):null,zt!==null&&(Qe=A(zt),qt=zt.tag,zt!==Qe||qt!==5&&qt!==27&&qt!==6)&&(zt=null)):(I=null,zt=Q),I!==zt)){if(qt=jc,nt="onMouseLeave",Y="onMouseEnter",H="mouse",(n==="pointerout"||n==="pointerover")&&(qt=Ti,nt="onPointerLeave",Y="onPointerEnter",H="pointer"),Qe=I==null?Z:nl(I),X=zt==null?Z:nl(zt),Z=new qt(nt,H+"leave",I,i,tt),Z.target=Qe,Z.relatedTarget=X,nt=null,Wi(tt)===Q&&(qt=new qt(Y,H+"enter",zt,i,tt),qt.target=X,qt.relatedTarget=Qe,nt=qt),Qe=nt,I&&zt)e:{for(qt=Yv,Y=I,H=zt,X=0,nt=Y;nt;nt=qt(nt))X++;nt=0;for(var Nt=H;Nt;Nt=qt(Nt))nt++;for(;0<X-nt;)Y=qt(Y),X--;for(;0<nt-X;)H=qt(H),nt--;for(;X--;){if(Y===H||H!==null&&Y===H.alternate){qt=Y;break e}Y=qt(Y),H=qt(H)}qt=null}else qt=null;I!==null&&pm(at,Z,I,qt,!1),zt!==null&&Qe!==null&&pm(at,Qe,zt,qt,!0)}}t:{if(Z=Q?nl(Q):window,I=Z.nodeName&&Z.nodeName.toLowerCase(),I==="select"||I==="input"&&Z.type==="file")var ze=qp;else if(nu(Z))if(ch)ze=zs;else{ze=K0;var Rt=J0}else I=Z.nodeName,!I||I.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?Q&&Dp(Q.elementType)&&(ze=qp):ze=_o;if(ze&&(ze=ze(n,Q))){Lp(at,ze,i,tt);break t}Rt&&Rt(n,Z,Q),n==="focusout"&&Q&&Z.type==="number"&&Q.memoizedProps.value!=null&&Da(Z,"number",Z.value)}switch(Rt=Q?nl(Q):window,n){case"focusin":(nu(Rt)||Rt.contentEditable==="true")&&(Vo=Rt,Bc=Q,Wl=null);break;case"focusout":Wl=Bc=Vo=null;break;case"mousedown":Ei=!0;break;case"contextmenu":case"mouseup":case"dragend":Ei=!1,dh(at,i,tt);break;case"selectionchange":if(pf)break;case"keydown":case"keyup":dh(at,i,tt)}var Pt;if(Nc)t:{switch(n){case"compositionstart":var le="onCompositionStart";break t;case"compositionend":le="onCompositionEnd";break t;case"compositionupdate":le="onCompositionUpdate";break t}le=void 0}else xs?sh(n,i)&&(le="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(le="onCompositionStart");le&&(Bp&&i.locale!=="ko"&&(xs||le!=="onCompositionStart"?le==="onCompositionEnd"&&xs&&(Pt=Cp()):(ku=tt,zp="value"in ku?ku.value:ku.textContent,xs=!0)),Rt=cd(Q,le),0<Rt.length&&(le=new q0(le,n,null,i,tt),at.push({event:le,listeners:Rt}),Pt?le.data=Pt:(Pt=Vp(i),Pt!==null&&(le.data=Pt)))),(Pt=Ma?Z0(n,i):MS(n,i))&&(le=cd(Q,"onBeforeInput"),0<le.length&&(Rt=new q0("onBeforeInput","beforeinput",null,i,tt),at.push({event:Rt,listeners:le}),Rt.data=Pt)),ud(at,n,Q,i,tt)}qv(at,l)})}function sd(n,l,i){return{instance:n,listener:l,currentTarget:i}}function cd(n,l){for(var i=l+"Capture",s=[];n!==null;){var d=n,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Fn(n,i),d!=null&&s.unshift(sd(n,d,p)),d=Fn(n,l),d!=null&&s.push(sd(n,d,p))),n.tag===3)return s;n=n.return}return[]}function Yv(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function pm(n,l,i,s,d){for(var p=l._reactName,b=[];i!==null&&i!==s;){var D=i,j=D.alternate,Q=D.stateNode;if(D=D.tag,j!==null&&j===s)break;D!==5&&D!==26&&D!==27||Q===null||(j=Q,d?(Q=Fn(i,p),Q!=null&&b.unshift(sd(i,Q,j))):d||(Q=Fn(i,p),Q!=null&&b.push(sd(i,Q,j)))),i=i.return}b.length!==0&&n.push({event:l,listeners:b})}var Gv=/\r\n?/g,eg=/\u0000|\uFFFD/g;function ng(n){return(typeof n=="string"?n:""+n).replace(Gv,`
|
|
27
|
-
`).replace(eg,"")}function ag(n,l){return l=ng(l),ng(n)===l}function Xe(n,l,i,s,d,p){switch(i){case"children":typeof s=="string"?l==="body"||l==="textarea"&&s===""||Pi(n,s):(typeof s=="number"||typeof s=="bigint")&&l!=="body"&&Pi(n,""+s);break;case"className":F(n,"class",s);break;case"tabIndex":F(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":F(n,i,s);break;case"style":N0(n,s,p);break;case"data":if(l!=="object"){F(n,"data",s);break}case"src":case"href":if(s===""&&(l!=="a"||i!=="href")){n.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(i);break}s=$l(""+s),n.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(i,"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"&&(i==="formAction"?(l!=="input"&&Xe(n,l,"name",d.name,d,null),Xe(n,l,"formEncType",d.formEncType,d,null),Xe(n,l,"formMethod",d.formMethod,d,null),Xe(n,l,"formTarget",d.formTarget,d,null)):(Xe(n,l,"encType",d.encType,d,null),Xe(n,l,"method",d.method,d,null),Xe(n,l,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(i);break}s=$l(""+s),n.setAttribute(i,s);break;case"onClick":s!=null&&(n.onclick=vi);break;case"onScroll":s!=null&&pe("scroll",n);break;case"onScrollEnd":s!=null&&pe("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(m(61));if(i=s.__html,i!=null){if(d.children!=null)throw Error(m(60));n.innerHTML=i}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}i=$l(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,""+s):n.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":s===!0?n.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(i,s):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(i,s):n.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(i):n.setAttribute(i,s);break;case"popover":pe("beforetoggle",n),pe("toggle",n),Oo(n,"popover",s);break;case"xlinkActuate":rt(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":rt(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":rt(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":rt(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":rt(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":rt(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":rt(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":rt(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":rt(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Oo(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=TS.get(i)||i,Oo(n,i,s))}}function lg(n,l,i,s,d,p){switch(i){case"style":N0(n,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(m(61));if(i=s.__html,i!=null){if(d.children!=null)throw Error(m(60));n.innerHTML=i}}break;case"children":typeof s=="string"?Pi(n,s):(typeof s=="number"||typeof s=="bigint")&&Pi(n,""+s);break;case"onScroll":s!=null&&pe("scroll",n);break;case"onScrollEnd":s!=null&&pe("scrollend",n);break;case"onClick":s!=null&&(n.onclick=vi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ii.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),l=i.slice(2,d?i.length-7:void 0),p=n[ma]||null,p=p!=null?p[i]:null,typeof p=="function"&&n.removeEventListener(l,p,d),typeof s=="function")){typeof p!="function"&&p!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(l,s,d);break t}i in n?n[i]=s:s===!0?n.setAttribute(i,""):Oo(n,i,s)}}}function ya(n,l,i){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",n),pe("load",n);var s=!1,d=!1,p;for(p in i)if(i.hasOwnProperty(p)){var b=i[p];if(b!=null)switch(p){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(m(137,l));default:Xe(n,l,p,b,i,null)}}d&&Xe(n,l,"srcSet",i.srcSet,i,null),s&&Xe(n,l,"src",i.src,i,null);return;case"input":pe("invalid",n);var D=p=b=d=null,j=null,Q=null;for(s in i)if(i.hasOwnProperty(s)){var tt=i[s];if(tt!=null)switch(s){case"name":d=tt;break;case"type":b=tt;break;case"checked":j=tt;break;case"defaultChecked":Q=tt;break;case"value":p=tt;break;case"defaultValue":D=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(m(137,l));break;default:Xe(n,l,s,tt,i,null)}}yn(n,p,D,j,Q,b,d,!1);return;case"select":pe("invalid",n),s=b=p=null;for(d in i)if(i.hasOwnProperty(d)&&(D=i[d],D!=null))switch(d){case"value":p=D;break;case"defaultValue":b=D;break;case"multiple":s=D;default:Xe(n,l,d,D,i,null)}l=p,i=b,n.multiple=!!s,l!=null?Uo(n,!!s,l,!1):i!=null&&Uo(n,!!s,i,!0);return;case"textarea":pe("invalid",n),p=d=s=null;for(b in i)if(i.hasOwnProperty(b)&&(D=i[b],D!=null))switch(b){case"value":s=D;break;case"defaultValue":d=D;break;case"children":p=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(m(91));break;default:Xe(n,l,b,D,i,null)}xp(n,s,d,p);return;case"option":for(j in i)if(i.hasOwnProperty(j)&&(s=i[j],s!=null))switch(j){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Xe(n,l,j,s,i,null)}return;case"dialog":pe("beforetoggle",n),pe("toggle",n),pe("cancel",n),pe("close",n);break;case"iframe":case"object":pe("load",n);break;case"video":case"audio":for(s=0;s<gr.length;s++)pe(gr[s],n);break;case"image":pe("error",n),pe("load",n);break;case"details":pe("toggle",n);break;case"embed":case"source":case"link":pe("error",n),pe("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in i)if(i.hasOwnProperty(Q)&&(s=i[Q],s!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(m(137,l));default:Xe(n,l,Q,s,i,null)}return;default:if(Dp(l)){for(tt in i)i.hasOwnProperty(tt)&&(s=i[tt],s!==void 0&&lg(n,l,tt,s,i,void 0));return}}for(D in i)i.hasOwnProperty(D)&&(s=i[D],s!=null&&Xe(n,l,D,s,i,null))}function ig(n,l,i,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,b=null,D=null,j=null,Q=null,tt=null;for(I in i){var at=i[I];if(i.hasOwnProperty(I)&&at!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":j=at;default:s.hasOwnProperty(I)||Xe(n,l,I,null,s,at)}}for(var Z in s){var I=s[Z];if(at=i[Z],s.hasOwnProperty(Z)&&(I!=null||at!=null))switch(Z){case"type":p=I;break;case"name":d=I;break;case"checked":Q=I;break;case"defaultChecked":tt=I;break;case"value":b=I;break;case"defaultValue":D=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(m(137,l));break;default:I!==at&&Xe(n,l,Z,I,s,at)}}En(n,b,D,j,Q,tt,p,d);return;case"select":I=b=D=Z=null;for(p in i)if(j=i[p],i.hasOwnProperty(p)&&j!=null)switch(p){case"value":break;case"multiple":I=j;default:s.hasOwnProperty(p)||Xe(n,l,p,null,s,j)}for(d in s)if(p=s[d],j=i[d],s.hasOwnProperty(d)&&(p!=null||j!=null))switch(d){case"value":Z=p;break;case"defaultValue":D=p;break;case"multiple":b=p;default:p!==j&&Xe(n,l,d,p,s,j)}l=D,i=b,s=I,Z!=null?Uo(n,!!i,Z,!1):!!s!=!!i&&(l!=null?Uo(n,!!i,l,!0):Uo(n,!!i,i?[]:"",!1));return;case"textarea":I=Z=null;for(D in i)if(d=i[D],i.hasOwnProperty(D)&&d!=null&&!s.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Xe(n,l,D,null,s,d)}for(b in s)if(d=s[b],p=i[b],s.hasOwnProperty(b)&&(d!=null||p!=null))switch(b){case"value":Z=d;break;case"defaultValue":I=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(m(91));break;default:d!==p&&Xe(n,l,b,d,s,p)}Ep(n,Z,I);return;case"option":for(var zt in i)if(Z=i[zt],i.hasOwnProperty(zt)&&Z!=null&&!s.hasOwnProperty(zt))switch(zt){case"selected":n.selected=!1;break;default:Xe(n,l,zt,null,s,Z)}for(j in s)if(Z=s[j],I=i[j],s.hasOwnProperty(j)&&Z!==I&&(Z!=null||I!=null))switch(j){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Xe(n,l,j,Z,s,I)}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 qt in i)Z=i[qt],i.hasOwnProperty(qt)&&Z!=null&&!s.hasOwnProperty(qt)&&Xe(n,l,qt,null,s,Z);for(Q in s)if(Z=s[Q],I=i[Q],s.hasOwnProperty(Q)&&Z!==I&&(Z!=null||I!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(m(137,l));break;default:Xe(n,l,Q,Z,s,I)}return;default:if(Dp(l)){for(var Qe in i)Z=i[Qe],i.hasOwnProperty(Qe)&&Z!==void 0&&!s.hasOwnProperty(Qe)&&lg(n,l,Qe,void 0,s,Z);for(tt in s)Z=s[tt],I=i[tt],!s.hasOwnProperty(tt)||Z===I||Z===void 0&&I===void 0||lg(n,l,tt,Z,s,I);return}}for(var Y in i)Z=i[Y],i.hasOwnProperty(Y)&&Z!=null&&!s.hasOwnProperty(Y)&&Xe(n,l,Y,null,s,Z);for(at in s)Z=s[at],I=i[at],!s.hasOwnProperty(at)||Z===I||Z==null&&I==null||Xe(n,l,at,Z,s,I)}function ym(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ug(){if(typeof performance.getEntriesByType=="function"){for(var n=0,l=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var d=i[s],p=d.transferSize,b=d.initiatorType,D=d.duration;if(p&&D&&ym(b)){for(b=0,D=d.responseEnd,s+=1;s<i.length;s++){var j=i[s],Q=j.startTime;if(Q>D)break;var tt=j.transferSize,at=j.initiatorType;tt&&ym(at)&&(j=j.responseEnd,b+=tt*(j<D?1:(D-Q)/(j-Q)))}if(--s,l+=8*(p+b)/(d.duration/1e3),n++,10<n)break}}if(0<n)return l/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var gm=null,vm=null;function is(n){return n.nodeType===9?n:n.ownerDocument}function Xv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function og(n,l){if(n===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&l==="foreignObject"?0:n}function br(n,l){return n==="textarea"||n==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var bm=null;function OS(){var n=window.event;return n&&n.type==="popstate"?n===bm?!1:(bm=n,!0):(bm=null,!1)}var rd=typeof setTimeout=="function"?setTimeout:void 0,Qv=typeof clearTimeout=="function"?clearTimeout:void 0,ec=typeof Promise=="function"?Promise:void 0,Zv=typeof queueMicrotask=="function"?queueMicrotask:typeof ec<"u"?function(n){return ec.resolve(null).then(n).catch(sg)}:rd;function sg(n){setTimeout(function(){throw n})}function Vi(n){return n==="head"}function cg(n,l){var i=l,s=0;do{var d=i.nextSibling;if(n.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(s===0){n.removeChild(d),Ur(l);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")nc(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,nc(i);for(var p=i.firstChild;p;){var b=p.nextSibling,D=p.nodeName;p[Ql]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=b}}else i==="body"&&nc(n.ownerDocument.body);i=d}while(i);Ur(l)}function Cn(n,l){var i=n;n=0;do{var s=i.nextSibling;if(i.nodeType===1?l?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(l?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=s}while(i)}function fd(n){var l=n.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var i=l;switch(l=l.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":fd(i),Ba(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function US(n,l,i,s){for(;n.nodeType===1;){var d=i;if(n.nodeName.toLowerCase()!==l.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[Ql])switch(l){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(l==="input"&&n.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=Fa(n.nextSibling),n===null)break}return null}function ue(n,l,i){if(l==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Fa(n.nextSibling),n===null))return null;return n}function Jv(n,l){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=Fa(n.nextSibling),n===null))return null;return n}function ii(n){return n.data==="$?"||n.data==="$~"}function us(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Sr(n,l){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=l;else if(n.data!=="$?"||i.readyState!=="loading")l();else{var s=function(){l(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function Fa(n){for(;n!=null;n=n.nextSibling){var l=n.nodeType;if(l===1||l===3)break;if(l===8){if(l=n.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return n}var dd=null;function Sm(n){n=n.nextSibling;for(var l=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(l===0)return Fa(n.nextSibling);l--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||l++}n=n.nextSibling}return null}function Hi(n){n=n.previousSibling;for(var l=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(l===0)return n;l--}else i!=="/$"&&i!=="/&"||l++}n=n.previousSibling}return null}function Tr(n,l,i){switch(l=is(i),n){case"html":if(n=l.documentElement,!n)throw Error(m(452));return n;case"head":if(n=l.head,!n)throw Error(m(453));return n;case"body":if(n=l.body,!n)throw Error(m(454));return n;default:throw Error(m(451))}}function nc(n){for(var l=n.attributes;l.length;)n.removeAttributeNode(l[0]);Ba(n)}var cl=new Map,hd=new Set;function Ra(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Li=K.d;K.d={f:wS,r:Kv,D:W,C:Be,L:jS,m:rg,X:po,S:fg,M:os};function wS(){var n=Li.f(),l=dr();return n||l}function Kv(n){var l=Zl(n);l!==null&&l.tag===5&&l.type==="form"?Ye(l):Li.r(n)}var Ar=typeof document>"u"?null:document;function Vn(n,l,i){var s=Ar;if(s&&typeof l=="string"&&l){var d=fe(l);d='link[rel="'+n+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),hd.has(d)||(hd.add(d),n={rel:n,crossOrigin:i,href:l},s.querySelector(d)===null&&(l=s.createElement("link"),ya(l,"link",n),Oe(l),s.head.appendChild(l)))}}function W(n){Li.D(n),Vn("dns-prefetch",n,null)}function Be(n,l){Li.C(n,l),Vn("preconnect",n,l)}function jS(n,l,i){Li.L(n,l,i);var s=Ar;if(s&&n&&l){var d='link[rel="preload"][as="'+fe(l)+'"]';l==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+fe(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+fe(i.imageSizes)+'"]')):d+='[href="'+fe(n)+'"]';var p=d;switch(l){case"style":p=Rl(n);break;case"script":p=ac(n)}cl.has(p)||(n=R({rel:"preload",href:l==="image"&&i&&i.imageSrcSet?void 0:n,as:l},i),cl.set(p,n),s.querySelector(d)!==null||l==="style"&&s.querySelector(ss(p))||l==="script"&&s.querySelector(Dr(p))||(l=s.createElement("link"),ya(l,"link",n),Oe(l),s.head.appendChild(l)))}}function rg(n,l){Li.m(n,l);var i=Ar;if(i&&n){var s=l&&typeof l.as=="string"?l.as:"script",d='link[rel="modulepreload"][as="'+fe(s)+'"][href="'+fe(n)+'"]',p=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ac(n)}if(!cl.has(p)&&(n=R({rel:"modulepreload",href:n},l),cl.set(p,n),i.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Dr(p)))return}s=i.createElement("link"),ya(s,"link",n),Oe(s),i.head.appendChild(s)}}}function fg(n,l,i){Li.S(n,l,i);var s=Ar;if(s&&n){var d=Jl(s).hoistableStyles,p=Rl(n);l=l||"default";var b=d.get(p);if(!b){var D={loading:0,preload:null};if(b=s.querySelector(ss(p)))D.loading=5;else{n=R({rel:"stylesheet",href:n,"data-precedence":l},i),(i=cl.get(p))&&Tm(n,i);var j=b=s.createElement("link");Oe(j),ya(j,"link",n),j._p=new Promise(function(Q,tt){j.onload=Q,j.onerror=tt}),j.addEventListener("load",function(){D.loading|=1}),j.addEventListener("error",function(){D.loading|=2}),D.loading|=4,md(b,l,s)}b={type:"stylesheet",instance:b,count:1,state:D},d.set(p,b)}}}function po(n,l){Li.X(n,l);var i=Ar;if(i&&n){var s=Jl(i).hoistableScripts,d=ac(n),p=s.get(d);p||(p=i.querySelector(Dr(d)),p||(n=R({src:n,async:!0},l),(l=cl.get(d))&&Am(n,l),p=i.createElement("script"),Oe(p),ya(p,"link",n),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function os(n,l){Li.M(n,l);var i=Ar;if(i&&n){var s=Jl(i).hoistableScripts,d=ac(n),p=s.get(d);p||(p=i.querySelector(Dr(d)),p||(n=R({src:n,async:!0,type:"module"},l),(l=cl.get(d))&&Am(n,l),p=i.createElement("script"),Oe(p),ya(p,"link",n),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(d,p))}}function Er(n,l,i,s){var d=(d=Aa.current)?Ra(d):null;if(!d)throw Error(m(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(l=Rl(i.href),i=Jl(d).hoistableStyles,s=i.get(l),s||(s={type:"style",instance:null,count:0,state:null},i.set(l,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=Rl(i.href);var p=Jl(d).hoistableStyles,b=p.get(n);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,b),(p=d.querySelector(ss(n)))&&!p._p&&(b.instance=p,b.state.loading=5),cl.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},cl.set(n,i),p||$v(d,n,i,b.state))),l&&s===null)throw Error(m(528,""));return b}if(l&&s!==null)throw Error(m(529,""));return null;case"script":return l=i.async,i=i.src,typeof i=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=ac(i),i=Jl(d).hoistableScripts,s=i.get(l),s||(s={type:"script",instance:null,count:0,state:null},i.set(l,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,n))}}function Rl(n){return'href="'+fe(n)+'"'}function ss(n){return'link[rel="stylesheet"]['+n+"]"}function xr(n){return R({},n,{"data-precedence":n.precedence,precedence:null})}function $v(n,l,i,s){n.querySelector('link[rel="preload"][as="style"]['+l+"]")?s.loading=1:(l=n.createElement("link"),s.preload=l,l.addEventListener("load",function(){return s.loading|=1}),l.addEventListener("error",function(){return s.loading|=2}),ya(l,"link",i),Oe(l),n.head.appendChild(l))}function ac(n){return'[src="'+fe(n)+'"]'}function Dr(n){return"script[async]"+n}function dg(n,l,i){if(l.count++,l.instance===null)switch(l.type){case"style":var s=n.querySelector('style[data-href~="'+fe(i.href)+'"]');if(s)return l.instance=s,Oe(s),s;var d=R({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Oe(s),ya(s,"style",d),md(s,i.precedence,n),l.instance=s;case"stylesheet":d=Rl(i.href);var p=n.querySelector(ss(d));if(p)return l.state.loading|=4,l.instance=p,Oe(p),p;s=xr(i),(d=cl.get(d))&&Tm(s,d),p=(n.ownerDocument||n).createElement("link"),Oe(p);var b=p;return b._p=new Promise(function(D,j){b.onload=D,b.onerror=j}),ya(p,"link",s),l.state.loading|=4,md(p,i.precedence,n),l.instance=p;case"script":return p=ac(i.src),(d=n.querySelector(Dr(p)))?(l.instance=d,Oe(d),d):(s=i,(d=cl.get(p))&&(s=R({},i),Am(s,d)),n=n.ownerDocument||n,d=n.createElement("script"),Oe(d),ya(d,"link",s),n.head.appendChild(d),l.instance=d);case"void":return null;default:throw Error(m(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(s=l.instance,l.state.loading|=4,md(s,i.precedence,n));return l.instance}function md(n,l,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,p=d,b=0;b<s.length;b++){var D=s[b];if(D.dataset.precedence===l)p=D;else if(p!==d)break}p?p.parentNode.insertBefore(n,p.nextSibling):(l=i.nodeType===9?i.head:i,l.insertBefore(n,l.firstChild))}function Tm(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.title==null&&(n.title=l.title)}function Am(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.integrity==null&&(n.integrity=l.integrity)}var Mr=null;function hg(n,l,i){if(Mr===null){var s=new Map,d=Mr=new Map;d.set(i,s)}else d=Mr,s=d.get(i),s||(s=new Map,d.set(i,s));if(s.has(n))return s;for(s.set(n,null),i=i.getElementsByTagName(n),d=0;d<i.length;d++){var p=i[d];if(!(p[Ql]||p[Re]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(l)||"";b=n+b;var D=s.get(b);D?D.push(p):s.set(b,[p])}}return s}function Em(n,l,i){n=n.ownerDocument||n,n.head.insertBefore(i,l==="title"?n.querySelector("head > title"):null)}function mg(n,l,i){if(i===1||l.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return n=l.disabled,typeof l.precedence=="string"&&n==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function rl(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function xu(n,l,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Rl(s.href),p=l.querySelector(ss(d));if(p){l=p._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(n.count++,n=xm.bind(n),l.then(n,n)),i.state.loading|=4,i.instance=p,Oe(p);return}p=l.ownerDocument||l,s=xr(s),(d=cl.get(d))&&Tm(s,d),p=p.createElement("link"),Oe(p);var b=p;b._p=new Promise(function(D,j){b.onload=D,b.onerror=j}),ya(p,"link",s),i.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,l),(l=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=xm.bind(n),l.addEventListener("load",i),l.addEventListener("error",i))}}var Ol=0;function pg(n,l){return n.stylesheets&&n.count===0&&Mm(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var s=setTimeout(function(){if(n.stylesheets&&Mm(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+l);0<n.imgBytes&&Ol===0&&(Ol=62500*ug());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Mm(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>Ol?50:800)+l);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function xm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mm(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Dm=null;function Mm(n,l){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Dm=new Map,l.forEach(aa,n),Dm=null,xm.call(n))}function aa(n,l){if(!(l.state.loading&4)){var i=Dm.get(n);if(i)var s=i.get(null);else{i=new Map,Dm.set(n,i);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var b=d[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),s=b)}s&&i.set(null,s)}d=l.instance,b=d.getAttribute("data-precedence"),p=i.get(b)||s,p===s&&i.set(null,d),i.set(b,d),this.count++,s=xm.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),p?p.parentNode.insertBefore(d,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),l.state.loading|=4}}var pd={$$typeof:it,Provider:null,Consumer:null,_currentValue:ct,_currentValue2:ct,_threadCount:0};function yg(n,l,i,s,d,p,b,D,j){this.tag=1,this.containerInfo=n,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=yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.hiddenUpdates=yi(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function zm(n,l,i,s,d,p,b,D,j,Q,tt,at){return n=new yg(n,l,i,b,j,Q,tt,at,D),l=1,p===!0&&(l|=24),p=gn(3,null,null,l),n.current=p,p.stateNode=n,l=Ef(),l.refCount++,n.pooledCache=l,l.refCount++,p.memoizedState={element:s,isDehydrated:i,cache:l},Of(p),n}function lc(n){return n?(n=La,n):La}function kv(n,l,i,s,d,p){d=lc(d),s.context===null?s.context=d:s.pendingContext=d,s=lo(l),s.payload={element:i},p=p===void 0?null:p,p!==null&&(s.callback=p),i=Al(n,s,l),i!==null&&(ka(i,n,l),Jo(i,n,l))}function Cm(n,l){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<l?i:l}}function gg(n,l){Cm(n,l),(n=n.alternate)&&Cm(n,l)}function Fv(n){if(n.tag===13||n.tag===31){var l=Wu(n,67108864);l!==null&&ka(l,n,67108864),gg(n,67108864)}}function ic(n){if(n.tag===13||n.tag===31){var l=sl();l=Zu(l);var i=Wu(n,l);i!==null&&ka(i,n,l),gg(n,l)}}var Qn=!0;function Du(n,l,i,s){var d=q.T;q.T=null;var p=K.p;try{K.p=2,ga(n,l,i,s)}finally{K.p=p,q.T=d}}function Mu(n,l,i,s){var d=q.T;q.T=null;var p=K.p;try{K.p=8,ga(n,l,i,s)}finally{K.p=p,q.T=d}}function ga(n,l,i,s){if(Qn){var d=vg(s);if(d===null)tg(n,l,s,Rm,i),yo(n,s);else if(NS(d,n,l,i,s))s.stopPropagation();else if(yo(n,s),l&4&&-1<Wa.indexOf(n)){for(;d!==null;){var p=Zl(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=pl(p.pendingLanes);if(b!==0){var D=p;for(D.pendingLanes|=2,D.entangledLanes|=2;b;){var j=1<<31-xe(b);D.entanglements[1]|=j,b&=~j}Eu(p),(Ue&6)===0&&(_e=rn()+500,mo(0))}}break;case 31:case 13:D=Wu(p,2),D!==null&&ka(D,p,2),dr(),gg(p,2)}if(p=vg(s),p===null&&tg(n,l,s,Rm,i),p===d)break;d=p}d!==null&&s.stopPropagation()}else tg(n,l,s,null,i)}}function vg(n){return n=th(n),zr(n)}var Rm=null;function zr(n){if(Rm=null,n=Wi(n),n!==null){var l=A(n);if(l===null)n=null;else{var i=l.tag;if(i===13){if(n=S(l),n!==null)return n;n=null}else if(i===31){if(n=E(l),n!==null)return n;n=null}else if(i===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}return Rm=n,null}function yd(n){switch(n){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(vs()){case Mo:return 2;case zo:return 8;case Hl:case bs:return 32;case Tt:return 268435456;default:return 32}default:return 32}}var Cr=!1,Zn=null,va=null,Oa=null,cs=new Map,ui=new Map,un=[],Wa="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 yo(n,l){switch(n){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":cs.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(l.pointerId)}}function uc(n,l,i,s,d,p){return n===null||n.nativeEvent!==p?(n={blockedOn:l,domEventName:i,eventSystemFlags:s,nativeEvent:p,targetContainers:[d]},l!==null&&(l=Zl(l),l!==null&&Fv(l)),n):(n.eventSystemFlags|=s,l=n.targetContainers,d!==null&&l.indexOf(d)===-1&&l.push(d),n)}function NS(n,l,i,s,d){switch(l){case"focusin":return Zn=uc(Zn,n,l,i,s,d),!0;case"dragenter":return va=uc(va,n,l,i,s,d),!0;case"mouseover":return Oa=uc(Oa,n,l,i,s,d),!0;case"pointerover":var p=d.pointerId;return cs.set(p,uc(cs.get(p)||null,n,l,i,s,d)),!0;case"gotpointercapture":return p=d.pointerId,ui.set(p,uc(ui.get(p)||null,n,l,i,s,d)),!0}return!1}function Wv(n){var l=Wi(n.target);if(l!==null){var i=A(l);if(i!==null){if(l=i.tag,l===13){if(l=S(i),l!==null){n.blockedOn=l,Mc(n.priority,function(){ic(i)});return}}else if(l===31){if(l=E(i),l!==null){n.blockedOn=l,Mc(n.priority,function(){ic(i)});return}}else if(l===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function gd(n){if(n.blockedOn!==null)return!1;for(var l=n.targetContainers;0<l.length;){var i=vg(n.nativeEvent);if(i===null){i=n.nativeEvent;var s=new i.constructor(i.type,i);Pd=s,i.target.dispatchEvent(s),Pd=null}else return l=Zl(i),l!==null&&Fv(l),n.blockedOn=i,!1;l.shift()}return!0}function Rr(n,l,i){gd(n)&&i.delete(l)}function Iv(){Cr=!1,Zn!==null&&gd(Zn)&&(Zn=null),va!==null&&gd(va)&&(va=null),Oa!==null&&gd(Oa)&&(Oa=null),cs.forEach(Rr),ui.forEach(Rr)}function zu(n,l){n.blockedOn===l&&(n.blockedOn=null,Cr||(Cr=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Iv)))}var Or=null;function Pv(n){Or!==n&&(Or=n,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Or===n&&(Or=null);for(var l=0;l<n.length;l+=3){var i=n[l],s=n[l+1],d=n[l+2];if(typeof s!="function"){if(zr(s||i)===null)continue;break}var p=Zl(i);p!==null&&(n.splice(l,3),l-=3,Pc(p,{pending:!0,data:d,method:i.method,action:s},s,d))}}))}function Ur(n){function l(j){return zu(j,n)}Zn!==null&&zu(Zn,n),va!==null&&zu(va,n),Oa!==null&&zu(Oa,n),cs.forEach(l),ui.forEach(l);for(var i=0;i<un.length;i++){var s=un[i];s.blockedOn===n&&(s.blockedOn=null)}for(;0<un.length&&(i=un[0],i.blockedOn===null);)Wv(i),i.blockedOn===null&&un.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var d=i[s],p=i[s+1],b=d[ma]||null;if(typeof p=="function")b||Pv(i);else if(b){var D=null;if(p&&p.hasAttribute("formAction")){if(d=p,b=p[ma]||null)D=b.formAction;else if(zr(d)!==null)continue}else D=b.action;typeof D=="function"?i[s+1]=D:(i.splice(s,3),s-=3),Pv(i)}}}function bg(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function l(){d!==null&&(d(),d=null),s||setTimeout(i,20)}function i(){if(!s&&!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 s=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),d!==null&&(d(),d=null)}}}function Om(n){this._internalRoot=n}Um.prototype.render=Om.prototype.render=function(n){var l=this._internalRoot;if(l===null)throw Error(m(409));var i=l.current,s=sl();kv(i,s,n,l,null,null)},Um.prototype.unmount=Om.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var l=n.containerInfo;kv(n.current,2,null,n,null,null),dr(),l[Fi]=null}};function Um(n){this._internalRoot=n}Um.prototype.unstable_scheduleHydration=function(n){if(n){var l=ki();n={blockedOn:null,target:n,priority:l};for(var i=0;i<un.length&&l!==0&&l<un[i].priority;i++);un.splice(i,0,n),i===0&&Wv(n)}};var Sg=r.version;if(Sg!=="19.2.0")throw Error(m(527,Sg,"19.2.0"));K.findDOMNode=function(n){var l=n._reactInternals;if(l===void 0)throw typeof n.render=="function"?Error(m(188)):(n=Object.keys(n).join(","),Error(m(268,n)));return n=z(l),n=n!==null?C(n):null,n=n===null?null:n.stateNode,n};var tb={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vd.isDisabled&&vd.supportsFiber)try{Ht=vd.inject(tb),te=vd}catch{}}return h0.createRoot=function(n,l){if(!v(n))throw Error(m(299));var i=!1,s="",d=Gh,p=Ty,b=Xh;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(p=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),l=zm(n,1,!1,null,null,i,s,null,d,p,b,bg),n[Fi]=l.current,vr(n),new Om(l)},h0.hydrateRoot=function(n,l,i){if(!v(n))throw Error(m(299));var s=!1,d="",p=Gh,b=Ty,D=Xh,j=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(D=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),l=zm(n,1,!0,l,i??null,s,d,j,p,b,D,bg),l.context=lc(null),i=l.current,s=sl(),s=Zu(s),d=lo(s),d.callback=null,Al(i,d,s),i=s,l.current.lanes=i,Yl(l,i),Eu(l),n[Fi]=l.current,vr(n),new Um(l)},h0.version="19.2.0",h0}var m0={};var kx;function D5(){return kx||(kx=1,process.env.NODE_ENV!=="production"&&function(){function o(t,e){for(t=t.memoizedState;t!==null&&0<e;)t=t.next,e--;return t}function r(t,e,a,u){if(a>=e.length)return u;var c=e[a],f=Vn(t)?t.slice():ue({},t);return f[c]=r(t[c],e,a+1,u),f}function h(t,e,a){if(e.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<a.length-1;u++)if(e[u]!==a[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return m(t,e,a,0)}}function m(t,e,a,u){var c=e[u],f=Vn(t)?t.slice():ue({},t);return u+1===e.length?(f[a[u]]=f[c],Vn(f)?f.splice(c,1):delete f[c]):f[c]=m(t[c],e,a,u+1),f}function v(t,e,a){var u=e[a],c=Vn(t)?t.slice():ue({},t);return a+1===e.length?(Vn(c)?c.splice(u,1):delete c[u],c):(c[u]=v(t[u],e,a+1),c)}function A(){return!1}function S(){return null}function E(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function z(){}function C(){}function R(t){var e=[];return t.forEach(function(a){e.push(a)}),e.sort().join(", ")}function N(t,e,a,u){return new MS(t,e,a,u)}function k(t,e){t.context===_r&&(pm(t.current,2,e,t,null,null),zl())}function lt(t,e){if(Ou!==null){var a=e.staleFamilies;e=e.updatedFamilies,kf(),Z0(t.current,e,a),zl()}}function st(t){Ou=t}function ft(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function P(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function ot(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function it(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function St(t){if(P(t)!==t)throw Error("Unable to find node on an unmounted component.")}function Et(t){var e=t.alternate;if(!e){if(e=P(t),e===null)throw Error("Unable to find node on an unmounted component.");return e!==t?null:t}for(var a=t,u=e;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(u=c.return,u!==null){a=u;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return St(c),t;if(f===u)return St(c),e;f=f.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==u.return)a=c,u=f;else{for(var y=!1,g=c.child;g;){if(g===a){y=!0,a=c,u=f;break}if(g===u){y=!0,u=c,a=f;break}g=g.sibling}if(!y){for(g=f.child;g;){if(g===a){y=!0,a=f,u=c;break}if(g===u){y=!0,u=f,a=c;break}g=g.sibling}if(!y)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?t:e}function gt(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=gt(t),e!==null)return e;t=t.sibling}return null}function Ct(t){return t===null||typeof t!="object"?null:(t=Kv&&t[Kv]||t["@@iterator"],typeof t=="function"?t:null)}function dt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ar?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Sr:return"Fragment";case dd:return"Profiler";case Fa:return"StrictMode";case nc:return"Suspense";case cl:return"SuspenseList";case Li:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case us:return"Portal";case Hi:return t.displayName||"Context";case Sm:return(t._context.displayName||"Context")+".Consumer";case Tr:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case hd:return e=t.displayName||null,e!==null?e:dt(t.type)||"Memo";case Ra:e=t._payload,t=t._init;try{return dt(t(e))}catch{}}return null}function Lt(t){return typeof t.tag=="number"?pt(t):typeof t.name=="string"?t.name:null}function pt(t){var e=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(e._context.displayName||"Context")+".Consumer";case 10:return e.displayName||"Context";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dt(e);case 8:return e===Fa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;break;case 29:if(e=t._debugInfo,e!=null){for(var a=e.length-1;0<=a;a--)if(typeof e[a].name=="string")return e[a].name}if(t.return!==null)return pt(t.return)}return null}function Wt(t){return{current:t}}function Dt(t,e){0>po?console.error("Unexpected pop."):(e!==fg[po]&&console.error("Unexpected Fiber popped."),t.current=rg[po],rg[po]=null,fg[po]=null,po--)}function Jt(t,e,a){po++,rg[po]=t.current,fg[po]=a,t.current=e}function Je(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function je(t,e){Jt(Rl,e,t),Jt(Er,t,t),Jt(os,null,t);var a=e.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",e=(e=e.documentElement)&&(e=e.namespaceURI)?Sv(e):Sc;break;default:if(a=e.tagName,e=e.namespaceURI)e=Sv(e),e=fo(e,a);else switch(a){case"svg":e=op;break;case"math":e=Zb;break;default:e=Sc}}a=a.toLowerCase(),a=pn(null,a),a={context:e,ancestorInfo:a},Dt(os,t),Jt(os,a,t)}function q(t){Dt(os,t),Dt(Er,t),Dt(Rl,t)}function K(){return Je(os.current)}function ct(t){t.memoizedState!==null&&Jt(ss,t,t);var e=Je(os.current),a=t.type,u=fo(e.context,a);a=pn(e.ancestorInfo,a),u={context:u,ancestorInfo:a},e!==u&&(Jt(Er,t,t),Jt(os,u,t))}function Mt(t){Er.current===t&&(Dt(os,t),Dt(Er,t)),ss.current===t&&(Dt(ss,t),c0._currentValue=Yd)}function Ot(){}function be(){if(xr===0){$v=console.log,ac=console.info,Dr=console.warn,dg=console.error,md=console.group,Tm=console.groupCollapsed,Am=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ot,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}xr++}function me(){if(xr--,xr===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},t,{value:$v}),info:ue({},t,{value:ac}),warn:ue({},t,{value:Dr}),error:ue({},t,{value:dg}),group:ue({},t,{value:md}),groupCollapsed:ue({},t,{value:Tm}),groupEnd:ue({},t,{value:Am})})}0>xr&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Gt(t){var e=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=e,t.startsWith(`Error: react-stack-top-frame
|
|
28
|
-
`)&&(t=t.slice(29)),e=t.indexOf(`
|
|
29
|
-
`),e!==-1&&(t=t.slice(e+1)),e=t.indexOf("react_stack_bottom_frame"),e!==-1&&(e=t.lastIndexOf(`
|
|
30
|
-
`,e)),e!==-1)t=t.slice(0,e);else return"";return t}function It(t){if(Mr===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Mr=e&&e[1]||"",hg=-1<a.stack.indexOf(`
|
|
31
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
32
|
-
`+Mr+t+hg}function Pe(t,e){if(!t||Em)return"";var a=mg.get(t);if(a!==void 0)return a;Em=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=W.H,W.H=null,be();try{var c={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(yt){var J=yt}Reflect.construct(t,[],U)}else{try{U.call()}catch(yt){J=yt}t.call(U.prototype)}}else{try{throw Error()}catch(yt){J=yt}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(yt){if(yt&&J&&typeof yt.stack=="string")return[yt.stack,J.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),g=y[0],T=y[1];if(g&&T){var x=g.split(`
|
|
33
|
-
`),V=T.split(`
|
|
34
|
-
`);for(y=f=0;f<x.length&&!x[f].includes("DetermineComponentFrameRoot");)f++;for(;y<V.length&&!V[y].includes("DetermineComponentFrameRoot");)y++;if(f===x.length||y===V.length)for(f=x.length-1,y=V.length-1;1<=f&&0<=y&&x[f]!==V[y];)y--;for(;1<=f&&0<=y;f--,y--)if(x[f]!==V[y]){if(f!==1||y!==1)do if(f--,y--,0>y||x[f]!==V[y]){var L=`
|
|
35
|
-
`+x[f].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),typeof t=="function"&&mg.set(t,L),L}while(1<=f&&0<=y);break}}}finally{Em=!1,W.H=u,me(),Error.prepareStackTrace=a}return x=(x=t?t.displayName||t.name:"")?It(x):"",typeof t=="function"&&mg.set(t,x),x}function Aa(t,e){switch(t.tag){case 26:case 27:case 5:return It(t.type);case 16:return It("Lazy");case 13:return t.child!==e&&e!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return Pe(t.type,!1);case 11:return Pe(t.type.render,!1);case 1:return Pe(t.type,!0);case 31:return It("Activity");default:return""}}function Ea(t){try{var e="",a=null;do{e+=Aa(t,a);var u=t._debugInfo;if(u)for(var c=u.length-1;0<=c;c--){var f=u[c];if(typeof f.name=="string"){var y=e;t:{var g=f.name,T=f.env,x=f.debugLocation;if(x!=null){var V=Gt(x),L=V.lastIndexOf(`
|
|
36
|
-
`),U=L===-1?V:V.slice(L+1);if(U.indexOf(g)!==-1){var J=`
|
|
37
|
-
`+U;break t}}J=It(g+(T?" ["+T+"]":""))}e=y+J}}a=t,t=t.return}while(t);return e}catch(yt){return`
|
|
38
|
-
Error generating stack: `+yt.message+`
|
|
39
|
-
`+yt.stack}}function Na(t){return(t=t?t.displayName||t.name:"")?It(t):""}function ye(){if(rl===null)return null;var t=rl._debugOwner;return t!=null?Lt(t):null}function Ji(){if(rl===null)return"";var t=rl;try{var e="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:e+=It(t.type);break;case 13:e+=It("Suspense");break;case 19:e+=It("SuspenseList");break;case 31:e+=It("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||e!==""||(e+=Na(t.type));break;case 11:t._debugOwner||e!==""||(e+=Na(t.type.render))}for(;t;)if(typeof t.tag=="number"){var a=t;t=a._debugOwner;var u=a._debugStack;if(t&&u){var c=Gt(u);c!==""&&(e+=`
|
|
40
|
-
`+c)}}else if(t.debugStack!=null){var f=t.debugStack;(t=t.owner)&&f&&(e+=`
|
|
41
|
-
`+Gt(f))}else break;var y=e}catch(g){y=`
|
|
42
|
-
Error generating stack: `+g.message+`
|
|
43
|
-
`+g.stack}return y}function mt(t,e,a,u,c,f,y){var g=rl;hl(t);try{return t!==null&&t._debugTask?t._debugTask.run(e.bind(null,a,u,c,f,y)):e(a,u,c,f,y)}finally{hl(g)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function hl(t){W.getCurrentStack=t===null?null:Ji,xu=!1,rl=t}function Ln(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function ha(t){try{return qn(t),!1}catch{return!0}}function qn(t){return""+t}function Ee(t,e){if(ha(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",e,Ln(t)),qn(t)}function fi(t,e){if(ha(t))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",e,Ln(t)),qn(t)}function di(t){if(ha(t))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ln(t)),qn(t)}function gs(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled)return!0;if(!e.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{ic=e.inject(t),Qn=e}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!e.checkDCE}function Me(t){if(typeof gg=="function"&&Fv(t),Qn&&typeof Qn.setStrictMode=="function")try{Qn.setStrictMode(ic,t)}catch(e){Du||(Du=!0,console.error("React instrumentation encountered an error: %o",e))}}function hi(t){return t>>>=0,t===0?32:31-(vg(t)/Rm|0)|0}function tl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function mi(t,e,a){var u=t.pendingLanes;if(u===0)return 0;var c=0,f=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var g=u&134217727;return g!==0?(u=g&~f,u!==0?c=tl(u):(y&=g,y!==0?c=tl(y):a||(a=g&~t,a!==0&&(c=tl(a))))):(g=u&~f,g!==0?c=tl(g):y!==0?c=tl(y):a||(a=u&~t,a!==0&&(c=tl(a)))),c===0?0:e!==0&&e!==c&&(e&f)===0&&(f=c&-c,a=e&-e,f>=a||f===32&&(a&4194048)!==0)?e:c}function rn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function vs(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function Mo(){var t=Cr;return Cr<<=1,(Cr&62914560)===0&&(Cr=4194304),t}function zo(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Hl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function bs(t,e,a,u,c,f){var y=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,x=t.hiddenUpdates;for(a=y&~a;0<a;){var V=31-ga(a),L=1<<V;g[V]=0,T[V]=-1;var U=x[V];if(U!==null)for(x[V]=null,V=0;V<U.length;V++){var J=U[V];J!==null&&(J.lane&=-536870913)}a&=~L}u!==0&&Tt(t,u,0),f!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=f&~(y&~e))}function Tt(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var u=31-ga(e);t.entangledLanes|=e,t.entanglements[u]=t.entanglements[u]|1073741824|a&261930}function xt(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var u=31-ga(a),c=1<<u;c&e|t[u]&e&&(t[u]|=e),a&=~c}}function jt(t,e){var a=e&-e;return a=(a&42)!==0?1:Ht(a),(a&(t.suspendedLanes|e))!==0?0:a}function Ht(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function te(t,e,a){if(Mu)for(t=t.pendingUpdatersLaneMap;0<a;){var u=31-ga(a),c=1<<u;t[u].add(e),a&=~c}}function ne(t,e){if(Mu)for(var a=t.pendingUpdatersLaneMap,u=t.memoizedUpdaters;0<e;){var c=31-ga(e);t=1<<c,c=a[c],0<c.size&&(c.forEach(function(f){var y=f.alternate;y!==null&&u.has(y)||u.add(f)}),c.clear()),e&=~t}}function xe(t){return t&=-t,Zn<t?va<t?(t&134217727)!==0?Oa:cs:va:Zn}function Ll(){var t=Be.p;return t!==0?t:(t=window.event,t===void 0?Oa:gm(t.type))}function Ki(t,e){var a=Be.p;try{return Be.p=t,e()}finally{Be.p=a}}function el(t){delete t[un],delete t[Wa],delete t[uc],delete t[NS],delete t[Wv]}function _a(t){var e=t[un];if(e)return e;for(var a=t.parentNode;a;){if(e=a[yo]||a[un]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Is(t);t!==null;){if(a=t[un])return a;t=Is(t)}return e}t=a,a=t.parentNode}return null}function kn(t){if(t=t[un]||t[yo]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ml(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function pl(t){var e=t[gd];return e||(e=t[gd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ke(t){t[Rr]=!0}function ql(t,e){pi(t,e),pi(t+"Capture",e)}function pi(t,e){zu[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),zu[t]=e;var a=t.toLowerCase();for(Or[a]=t,t==="onDoubleClick"&&(Or.ondblclick=t),t=0;t<e.length;t++)Iv.add(e[t])}function $i(t,e){Pv[e.type]||e.onChange||e.onInput||e.readOnly||e.disabled||e.value==null||console.error(t==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),e.onChange||e.readOnly||e.disabled||e.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function yi(t){return Ol.call(Om,t)?!0:Ol.call(bg,t)?!1:Ur.test(t)?Om[t]=!0:(bg[t]=!0,console.error("Invalid attribute name: `%s`",t),!1)}function Yl(t,e,a){if(yi(e)){if(!t.hasAttribute(e)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return t=t.getAttribute(e),t===""&&a===!0?!0:(Ee(a,e),t===""+a?a:t)}}function Gl(t,e,a){if(yi(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var u=e.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(e);return}}Ee(a,e),t.setAttribute(e,""+a)}}function Qu(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}Ee(a,e),t.setAttribute(e,""+a)}}function wn(t,e,a,u){if(u===null)t.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}Ee(u,a),t.setAttributeNS(e,a,""+u)}}function xa(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return di(t),t;default:return""}}function Zu(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Co(t,e,a){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var c=u.get,f=u.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return c.call(this)},set:function(y){di(y),a=""+y,f.call(this,y)}}),Object.defineProperty(t,e,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(y){di(y),a=""+y},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ki(t){if(!t._valueTracker){var e=Zu(t)?"checked":"value";t._valueTracker=Co(t,e,""+t[e])}}function Mc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),u="";return t&&(u=Zu(t)?t.checked?"true":"false":t.value),t=u,t!==a?(e.setValue(t),!0):!1}function jn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Re(t){return t.replace(Um,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ma(t,e){e.checked===void 0||e.defaultChecked===void 0||tb||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ye()||"A component",e.type),tb=!0),e.value===void 0||e.defaultValue===void 0||Sg||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ye()||"A component",e.type),Sg=!0)}function Fi(t,e,a,u,c,f,y,g){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?(Ee(y,"type"),t.type=y):t.removeAttribute("type"),e!=null?y==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+xa(e)):t.value!==""+xa(e)&&(t.value=""+xa(e)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),e!=null?uf(t,y,xa(e)):a!=null?uf(t,y,xa(a)):u!=null&&t.removeAttribute("value"),c==null&&f!=null&&(t.defaultChecked=!!f),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?(Ee(g,"name"),t.name=""+xa(g)):t.removeAttribute("name")}function zc(t,e,a,u,c,f,y,g){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(Ee(f,"type"),t.type=f),e!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||e!=null)){ki(t);return}a=a!=null?""+xa(a):"",e=e!=null?""+xa(e):a,g||e===t.value||(t.value=e),t.defaultValue=e}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=g?t.checked:!!u,t.defaultChecked=!!u,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(Ee(y,"name"),t.name=y),ki(t)}function uf(t,e,a){e==="number"&&jn(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Id(t,e){e.value==null&&(typeof e.children=="object"&&e.children!==null?fd.Children.forEach(e.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||n||(n=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):e.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),e.selected==null||vd||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vd=!0)}function Xl(){var t=ye();return t?`
|
|
44
|
-
|
|
45
|
-
Check the render method of \``+t+"`.":""}function Ql(t,e,a,u){if(t=t.options,e){e={};for(var c=0;c<a.length;c++)e["$"+a[c]]=!0;for(a=0;a<t.length;a++)c=e.hasOwnProperty("$"+t[a].value),t[a].selected!==c&&(t[a].selected=c),c&&u&&(t[a].defaultSelected=!0)}else{for(a=""+xa(a),e=null,c=0;c<t.length;c++){if(t[c].value===a){t[c].selected=!0,u&&(t[c].defaultSelected=!0);return}e!==null||t[c].disabled||(e=t[c])}e!==null&&(e.selected=!0)}}function Ba(t,e){for(t=0;t<s.length;t++){var a=s[t];if(e[a]!=null){var u=Vn(e[a]);e.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Xl()):!e.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Xl())}}e.value===void 0||e.defaultValue===void 0||i||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),i=!0)}function Wi(t,e){e.value===void 0||e.defaultValue===void 0||d||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ye()||"A component"),d=!0),e.children!=null&&e.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Zl(t,e,a){if(e!=null&&(e=""+xa(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+xa(a):""}function nl(t,e,a,u){if(e==null){if(u!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Vn(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}a=u}a==null&&(a=""),e=a}a=xa(e),t.defaultValue=a,u=t.textContent,u===a&&u!==""&&u!==null&&(t.value=u),ki(t)}function Jl(t,e){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-e?Jl(t.children[0],e):t}function Oe(t){return" "+" ".repeat(t)}function Ju(t){return"+ "+" ".repeat(t)}function Ii(t){return"- "+" ".repeat(t)}function gi(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function Kl(t,e){return p.test(t)?(t=JSON.stringify(t),t.length>e-2?8>e?'{"..."}':"{"+t.slice(0,e-7)+'..."}':"{"+t+"}"):t.length>e?5>e?'{"..."}':t.slice(0,e-3)+"...":t}function Cc(t,e,a){var u=120-2*a;if(e===null)return Ju(a)+Kl(t,u)+`
|
|
46
|
-
`;if(typeof e=="string"){for(var c=0;c<e.length&&c<t.length&&e.charCodeAt(c)===t.charCodeAt(c);c++);return c>u-8&&10<c&&(t="..."+t.slice(c-8),e="..."+e.slice(c-8)),Ju(a)+Kl(t,u)+`
|
|
47
|
-
`+Ii(a)+Kl(e,u)+`
|
|
48
|
-
`}return Oe(a)+Kl(t,u)+`
|
|
49
|
-
`}function Rc(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(e,a){return a})}function Ro(t,e){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>e?5>e?'"..."':t.slice(0,e-4)+'..."':t;case"object":if(t===null)return"null";if(Vn(t))return"[...]";if(t.$$typeof===ii)return(e=dt(t.type))?"<"+e+">":"<...>";var a=Rc(t);if(a==="Object"){a="",e-=2;for(var u in t)if(t.hasOwnProperty(u)){var c=JSON.stringify(u);if(c!=='"'+u+'"'&&(u=c),e-=u.length-2,c=Ro(t[u],15>e?e:15),e-=c.length,0>e){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+u+":"+c}return"{"+a+"}"}return a;case"function":return(e=t.displayName||t.name)?"function "+e:"function";default:return String(t)}}function Ku(t,e){return typeof t!="string"||p.test(t)?"{"+Ro(t,e-2)+"}":t.length>e-2?5>e?'"..."':'"'+t.slice(0,e-5)+'..."':'"'+t+'"'}function Oo(t,e,a){var u=120-a.length-t.length,c=[],f;for(f in e)if(e.hasOwnProperty(f)&&f!=="children"){var y=Ku(e[f],120-a.length-f.length-1);u-=f.length+y.length+2,c.push(f+"="+y)}return c.length===0?a+"<"+t+`>
|
|
50
|
-
`:0<u?a+"<"+t+" "+c.join(" ")+`>
|
|
51
|
-
`:a+"<"+t+`
|
|
52
|
-
`+a+" "+c.join(`
|
|
53
|
-
`+a+" ")+`
|
|
54
|
-
`+a+`>
|
|
55
|
-
`}function F(t,e,a){var u="",c=ue({},e),f;for(f in t)if(t.hasOwnProperty(f)){delete c[f];var y=120-2*a-f.length-2,g=Ro(t[f],y);e.hasOwnProperty(f)?(y=Ro(e[f],y),u+=Ju(a)+f+": "+g+`
|
|
56
|
-
`,u+=Ii(a)+f+": "+y+`
|
|
57
|
-
`):u+=Ju(a)+f+": "+g+`
|
|
58
|
-
`}for(var T in c)c.hasOwnProperty(T)&&(t=Ro(c[T],120-2*a-T.length-2),u+=Ii(a)+T+": "+t+`
|
|
59
|
-
`);return u}function rt(t,e,a,u){var c="",f=new Map;for(x in a)a.hasOwnProperty(x)&&f.set(x.toLowerCase(),x);if(f.size===1&&f.has("children"))c+=Oo(t,e,Oe(u));else{for(var y in e)if(e.hasOwnProperty(y)&&y!=="children"){var g=120-2*(u+1)-y.length-1,T=f.get(y.toLowerCase());if(T!==void 0){f.delete(y.toLowerCase());var x=e[y];T=a[T];var V=Ku(x,g);g=Ku(T,g),typeof x=="object"&&x!==null&&typeof T=="object"&&T!==null&&Rc(x)==="Object"&&Rc(T)==="Object"&&(2<Object.keys(x).length||2<Object.keys(T).length||-1<V.indexOf("...")||-1<g.indexOf("..."))?c+=Oe(u+1)+y+`={{
|
|
60
|
-
`+F(x,T,u+2)+Oe(u+1)+`}}
|
|
61
|
-
`:(c+=Ju(u+1)+y+"="+V+`
|
|
62
|
-
`,c+=Ii(u+1)+y+"="+g+`
|
|
63
|
-
`)}else c+=Oe(u+1)+y+"="+Ku(e[y],g)+`
|
|
64
|
-
`}f.forEach(function(L){if(L!=="children"){var U=120-2*(u+1)-L.length-1;c+=Ii(u+1)+L+"="+Ku(a[L],U)+`
|
|
65
|
-
`}}),c=c===""?Oe(u)+"<"+t+`>
|
|
66
|
-
`:Oe(u)+"<"+t+`
|
|
67
|
-
`+c+Oe(u)+`>
|
|
68
|
-
`}return t=a.children,e=e.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(f="",(typeof e=="string"||typeof e=="number"||typeof e=="bigint")&&(f=""+e),c+=Cc(f,""+t,u+1)):(typeof e=="string"||typeof e=="number"||typeof e=="bigint")&&(c=t==null?c+Cc(""+e,null,u+1):c+Cc(""+e,void 0,u+1)),c}function bt(t,e){var a=gi(t);if(a===null){for(a="",t=t.child;t;)a+=bt(t,e),t=t.sibling;return a}return Oe(e)+"<"+a+`>
|
|
69
|
-
`}function ht(t,e){var a=Jl(t,e);if(a!==t&&(t.children.length!==1||t.children[0]!==a))return Oe(e)+`...
|
|
70
|
-
`+ht(a,e+1);a="";var u=t.fiber._debugInfo;if(u)for(var c=0;c<u.length;c++){var f=u[c].name;typeof f=="string"&&(a+=Oe(e)+"<"+f+`>
|
|
71
|
-
`,e++)}if(u="",c=t.fiber.pendingProps,t.fiber.tag===6)u=Cc(c,t.serverProps,e),e++;else if(f=gi(t.fiber),f!==null)if(t.serverProps===void 0){u=e;var y=120-2*u-f.length-2,g="";for(x in c)if(c.hasOwnProperty(x)&&x!=="children"){var T=Ku(c[x],15);if(y-=x.length+T.length+2,0>y){g+=" ...";break}g+=" "+x+"="+T}u=Oe(u)+"<"+f+g+`>
|
|
72
|
-
`,e++}else t.serverProps===null?(u=Oo(f,c,Ju(e)),e++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=rt(f,c,t.serverProps,e),e++);var x="";for(c=t.fiber.child,f=0;c&&f<t.children.length;)y=t.children[f],y.fiber===c?(x+=ht(y,e),f++):x+=bt(c,e),c=c.sibling;for(c&&0<t.children.length&&(x+=Oe(e)+`...
|
|
73
|
-
`),c=t.serverTail,t.serverProps===null&&e--,t=0;t<c.length;t++)f=c[t],x=typeof f=="string"?x+(Ii(e)+Kl(f,120-2*e)+`
|
|
74
|
-
`):x+Oo(f.type,f.props,Ii(e));return a+u+x}function Ut(t){try{return`
|
|
75
|
-
|
|
76
|
-
`+ht(t,0)}catch{return""}}function Bt(t,e,a){for(var u=e,c=null,f=0;u;)u===t&&(f=0),c={fiber:u,children:c!==null?[c]:[],serverProps:u===e?a:u===t?null:void 0,serverTail:[],distanceFromLeaf:f},f++,u=u.return;return c!==null?Ut(c).replaceAll(/^[+-]/gm,">"):""}function pn(t,e){var a=ue({},t||tt),u={tag:e};return D.indexOf(e)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),j.indexOf(e)!==-1&&(a.pTagInButtonScope=null),b.indexOf(e)!==-1&&e!=="address"&&e!=="div"&&e!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=u,e==="form"&&(a.formTag=u),e==="a"&&(a.aTagInScope=u),e==="button"&&(a.buttonTagInScope=u),e==="nobr"&&(a.nobrTagInScope=u),e==="p"&&(a.pTagInButtonScope=u),e==="li"&&(a.listItemTagAutoclosing=u),(e==="dd"||e==="dt")&&(a.dlItemTagAutoclosing=u),e==="#document"||e==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=u),t!==null||e!=="#document"&&e!=="html"&&e!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function re(t,e,a){switch(e){case"select":return t==="hr"||t==="option"||t==="optgroup"||t==="script"||t==="template"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":if(a)break;return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":if(!a)return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6";case"rp":case"rt":return Q.indexOf(e)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return e==null;case"head":return a||e===null;case"html":return a&&e==="#document"||e===null;case"body":return a&&(e==="#document"||e==="html")||e===null}return!0}function Nn(t,e){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e.pTagInButtonScope;case"form":return e.formTag||e.pTagInButtonScope;case"li":return e.listItemTagAutoclosing;case"dd":case"dt":return e.dlItemTagAutoclosing;case"button":return e.buttonTagInScope;case"a":return e.aTagInScope;case"nobr":return e.nobrTagInScope}return null}function fe(t,e){for(;t;){switch(t.tag){case 5:case 26:case 27:if(t.type===e)return t}t=t.return}return null}function En(t,e){e=e||tt;var a=e.current;if(e=(a=re(t,a&&a.tag,e.implicitRootScope)?null:a)?null:Nn(t,e),e=a||e,!e)return!0;var u=e.tag;if(e=String(!!a)+"|"+t+"|"+u,at[e])return!1;at[e]=!0;var c=(e=rl)?fe(e.return,u):null,f=e!==null&&c!==null?Bt(c,e,null):"",y="<"+t+">";return a?(a="",u==="table"&&t==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
77
|
-
This will cause a hydration error.%s`,y,u,a,f)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
78
|
-
This will cause a hydration error.%s`,y,u,f),e&&(t=e.return,c===null||t===null||c===t&&t._debugOwner===e._debugOwner||mt(c,function(){console.error(`<%s> cannot contain a nested %s.
|
|
79
|
-
See this log for the ancestor stack trace.`,u,y)})),!1}function yn(t,e,a){if(a||re("#text",e,!1))return!0;if(a="#text|"+e,at[a])return!1;at[a]=!0;var u=(a=rl)?fe(a,e):null;return a=a!==null&&u!==null?Bt(u,a,a.tag!==6?{children:null}:null):"",/\S/.test(t)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
80
|
-
This will cause a hydration error.%s`,e,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
81
|
-
This will cause a hydration error.%s`,e,a),!1}function Da(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}function Uo(t){return t.replace(Y,function(e,a){return a.toUpperCase()})}function Ep(t,e,a){var u=e.indexOf("--")===0;u||(-1<e.indexOf("-")?X.hasOwnProperty(e)&&X[e]||(X[e]=!0,console.error("Unsupported style property %s. Did you mean %s?",e,Uo(e.replace(Qe,"ms-")))):qt.test(e)?X.hasOwnProperty(e)&&X[e]||(X[e]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1))):!H.test(a)||nt.hasOwnProperty(a)&&nt[a]||(nt[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,a.replace(H,""))),typeof a=="number"&&(isNaN(a)?Nt||(Nt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",e)):isFinite(a)||ze||(ze=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",e)))),a==null||typeof a=="boolean"||a===""?u?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":u?t.setProperty(e,a):typeof a!="number"||a===0||Rt.has(e)?e==="float"?t.cssFloat=a:(fi(a,e),t[e]=(""+a).trim()):t[e]=a+"px"}function xp(t,e,a){if(e!=null&&typeof e!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(e&&Object.freeze(e),t=t.style,a!=null){if(e){var u={};if(a){for(var c in a)if(a.hasOwnProperty(c)&&!e.hasOwnProperty(c))for(var f=Z[c]||[c],y=0;y<f.length;y++)u[f[y]]=c}for(var g in e)if(e.hasOwnProperty(g)&&(!a||a[g]!==e[g]))for(c=Z[g]||[g],f=0;f<c.length;f++)u[c[f]]=g;g={};for(var T in e)for(c=Z[T]||[T],f=0;f<c.length;f++)g[c[f]]=T;T={};for(var x in u)if(c=u[x],(f=g[x])&&c!==f&&(y=c+","+f,!T[y])){T[y]=!0,y=console;var V=e[c];y.error.call(y,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",V==null||typeof V=="boolean"||V===""?"Removing":"Updating",c,f)}}for(var L in a)!a.hasOwnProperty(L)||e!=null&&e.hasOwnProperty(L)||(L.indexOf("--")===0?t.setProperty(L,""):L==="float"?t.cssFloat="":t[L]="");for(var U in e)x=e[U],e.hasOwnProperty(U)&&a[U]!==x&&Ep(t,U,x)}else for(u in e)e.hasOwnProperty(u)&&Ep(t,u,e[u])}function Pi(t){if(t.indexOf("-")===-1)return!1;switch(t){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}}function w0(t){return we.get(t)||t}function j0(t,e){if(Ol.call(wm,e)&&wm[e])return!0;if(QM.test(e)){if(t="aria-"+e.slice(4).toLowerCase(),t=eb.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",e),wm[e]=!0;if(e!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",e,t),wm[e]=!0}if(XM.test(e)){if(t=e.toLowerCase(),t=eb.hasOwnProperty(t)?t:null,t==null)return wm[e]=!0,!1;e!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",e,t),wm[e]=!0)}return!0}function N0(t,e){var a=[],u;for(u in e)j0(t,u)||a.push(u);e=a.map(function(c){return"`"+c+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",e,t):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",e,t)}function Dp(t,e,a,u){if(Ol.call(Ul,e)&&Ul[e])return!0;var c=e.toLowerCase();if(c==="onfocusin"||c==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ul[e]=!0;if(typeof a=="function"&&(t==="form"&&e==="action"||t==="input"&&e==="formAction"||t==="button"&&e==="formAction"))return!0;if(u!=null){if(t=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(e))return!0;if(u=t.hasOwnProperty(c)?t[c]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",e,u),Ul[e]=!0;if(v2.test(e))return console.error("Unknown event handler property `%s`. It will be ignored.",e),Ul[e]=!0}else if(v2.test(e))return ZM.test(e)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",e),Ul[e]=!0;if(JM.test(e)||KM.test(e))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ul[e]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ul[e]=!0;if(c==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Ul[e]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",e),Ul[e]=!0;if(qi.hasOwnProperty(c)){if(c=qi[c],c!==e)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",e,c),Ul[e]=!0}else if(e!==c)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",e,c),Ul[e]=!0;switch(e){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(e){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return c=e.toLowerCase().slice(0,5),c==="data-"||c==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,e,e,a,e):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,e,e,a,e,e,e),Ul[e]=!0)}case"function":case"symbol":return Ul[e]=!0,!1;case"string":if(a==="false"||a==="true"){switch(e){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,e,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',e,a),Ul[e]=!0}}return!0}function TS(t,e,a){var u=[],c;for(c in e)Dp(t,c,e[c],a)||u.push(c);e=u.map(function(f){return"`"+f+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",e,t):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",e,t)}function of(t){return $M.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $l(){}function vi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function Pd(t){var e=kn(t);if(e&&(t=e.stateNode)){var a=t[Wa]||null;t:switch(t=e.stateNode,e.type){case"input":if(Fi(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(Ee(e,"name"),a=a.querySelectorAll('input[name="'+Re(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var u=a[e];if(u!==t&&u.form===t.form){var c=u[Wa]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Fi(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(e=0;e<a.length;e++)u=a[e],u.form===t.form&&Mc(u)}break t;case"textarea":Zl(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Ql(t,!!a.multiple,e,!1)}}}function th(t,e,a){if(_S)return t(e,a);_S=!0;try{var u=t(e);return u}finally{if(_S=!1,(jm!==null||Nm!==null)&&(zl(),jm&&(e=jm,t=Nm,Nm=jm=null,Pd(e),t)))for(e=0;e<t.length;e++)Pd(t[e])}}function tu(t,e){var a=t.stateNode;if(a===null)return null;var u=a[Wa]||null;if(u===null)return null;a=u[e];t:switch(e){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)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error("Expected `"+e+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Ss(){if(nb)return nb;var t,e=VS,a=e.length,u,c="value"in wr?wr.value:wr.textContent,f=c.length;for(t=0;t<a&&e[t]===c[t];t++);var y=a-t;for(u=1;u<=y&&e[a-u]===c[f-u];u++);return nb=c.slice(t,1<u?1-u:void 0)}function sf(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Oc(){return!0}function Mp(){return!1}function Fn(t){function e(a,u,c,f,y){this._reactName=a,this._targetInst=c,this.type=u,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(a=t[g],this[g]=a?a(f):f[g]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Oc:Mp,this.isPropagationStopped=Mp,this}return ue(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Oc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Oc)},persist:function(){},isPersistent:Oc}),e}function $u(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=o3[t])?!!e[t]:!1}function cf(){return $u}function Uc(t,e){switch(t){case"keyup":return b3.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==A2;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ku(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function zp(t,e){switch(t){case"compositionend":return ku(e);case"keypress":return e.which!==x2?null:(M2=!0,D2);case"textInput":return t=e.data,t===D2&&M2?null:t;default:return null}}function eh(t,e){if(_m)return t==="compositionend"||!YS&&Uc(t,e)?(t=Ss(),nb=VS=wr=null,_m=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return E2&&e.locale!=="ko"?null:e.data;default:return null}}function Cp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!T3[t.type]:e==="textarea"}function nh(t){if(!rs)return!1;t="on"+t;var e=t in document;return e||(e=document.createElement("div"),e.setAttribute(t,"return;"),e=typeof e[t]=="function"),e}function rf(t,e,a,u){jm?Nm?Nm.push(u):Nm=[u]:jm=u,e=_i(e,"onChange"),0<e.length&&(a=new ab("onChange","change",null,a,u),t.push({event:a,listeners:e}))}function _0(t){Le(t,0)}function pa(t){var e=ml(t);if(Mc(e))return t}function wo(t,e){if(t==="change")return e}function ff(){Mg&&(Mg.detachEvent("onpropertychange",wc),zg=Mg=null)}function wc(t){if(t.propertyName==="value"&&pa(zg)){var e=[];rf(e,zg,t,vi(t)),th(_0,e)}}function AS(t,e,a){t==="focusin"?(ff(),Mg=e,zg=a,Mg.attachEvent("onpropertychange",wc)):t==="focusout"&&ff()}function Rp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pa(zg)}function Op(t,e){if(t==="click")return pa(e)}function df(t,e){if(t==="input"||t==="change")return pa(e)}function ah(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}function jc(t,e){if(wl(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),u=Object.keys(e);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var c=a[u];if(!Ol.call(e,c)||!wl(t[c],e[c]))return!1}return!0}function B0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function V0(t,e){var a=B0(t);t=0;for(var u;a;){if(a.nodeType===3){if(u=t+a.textContent.length,t<=e&&u>=e)return{node:a,offset:e-t};t=u}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=B0(a)}}function H0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?H0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=jn(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=jn(t.document)}return e}function Up(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function L0(t,e,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;XS||Bm==null||Bm!==jn(u)||(u=Bm,"selectionStart"in u&&Up(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}),Cg&&jc(Cg,u)||(Cg=u,u=_i(GS,"onSelect"),0<u.length&&(e=new ab("onSelect","select",null,e,a),t.push({event:e,listeners:u}),e.target=Bm)))}function Ts(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}function As(t){if(QS[t])return QS[t];if(!Vm[t])return t;var e=Vm[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in C2)return QS[t]=e[a];return t}function bi(t,e){j2.set(t,e),ql(e,[t])}function q0(t){for(var e=ib,a=0;a<t.length;a++){var u=t[a];if(typeof u=="object"&&u!==null)if(Vn(u)&&u.length===2&&typeof u[0]=="string"){if(e!==ib&&e!==kS)return KS;e=kS}else return KS;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||e!==ib&&e!==$S)return KS;e=$S}}return e}function wp(t,e,a,u){for(var c in t)Ol.call(t,c)&&c[0]!=="_"&&eu(c,t[c],e,a,u)}function eu(t,e,a,u,c){switch(typeof e){case"object":if(e===null){e="null";break}else{if(e.$$typeof===ii){var f=dt(e.type)||"…",y=e.key;e=e.props;var g=Object.keys(e),T=g.length;if(y==null&&T===0){e="<"+f+" />";break}if(3>u||T===1&&g[0]==="children"&&y==null){e="<"+f+" … />";break}a.push([c+" ".repeat(u)+t,"<"+f]),y!==null&&eu("key",y,a,u+1,c),t=!1;for(var x in e)x==="children"?e.children!=null&&(!Vn(e.children)||0<e.children.length)&&(t=!0):Ol.call(e,x)&&x[0]!=="_"&&eu(x,e[x],a,u+1,c);a.push(["",t?">…</"+f+">":"/>"]);return}if(f=Object.prototype.toString.call(e),f=f.slice(8,f.length-1),f==="Array"){if(x=q0(e),x===$S||x===ib){e=JSON.stringify(e);break}else if(x===kS){for(a.push([c+" ".repeat(u)+t,""]),t=0;t<e.length;t++)f=e[t],eu(f[0],f[1],a,u+1,c);return}}if(f==="Promise"){if(e.status==="fulfilled"){if(f=a.length,eu(t,e.value,a,u,c),a.length>f){a=a[f],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(e.status==="rejected"&&(f=a.length,eu(t,e.reason,a,u,c),a.length>f)){a=a[f],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(u)+t,"Promise"]);return}f==="Object"&&(x=Object.getPrototypeOf(e))&&typeof x.constructor=="function"&&(f=x.constructor.name),a.push([c+" ".repeat(u)+t,f==="Object"?3>u?"":"…":f]),3>u&&wp(e,a,u+1,c);return}case"function":e=e.name===""?"() => {}":e.name+"() {}";break;case"string":e=e===C3?"…":JSON.stringify(e);break;case"undefined":e="undefined";break;case"boolean":e=e?"true":"false";break;default:e=String(e)}a.push([c+" ".repeat(u)+t,e])}function Y0(t,e,a,u){var c=!0;for(y in t)y in e||(a.push([ub+" ".repeat(u)+y,"…"]),c=!1);for(var f in e)if(f in t){var y=t[f],g=e[f];if(y!==g){if(u===0&&f==="children")c=" ".repeat(u)+f,a.push([ub+c,"…"],[ob+c,"…"]);else{if(!(3<=u)){if(typeof y=="object"&&typeof g=="object"&&y!==null&&g!==null&&y.$$typeof===g.$$typeof)if(g.$$typeof===ii){if(y.type===g.type&&y.key===g.key){y=dt(g.type)||"…",c=" ".repeat(u)+f,y="<"+y+" … />",a.push([ub+c,y],[ob+c,y]),c=!1;continue}}else{var T=Object.prototype.toString.call(y),x=Object.prototype.toString.call(g);if(T===x&&(x==="[object Object]"||x==="[object Array]")){T=[B2+" ".repeat(u)+f,x==="[object Array]"?"Array":""],a.push(T),x=a.length,Y0(y,g,a,u+1)?x===a.length&&(T[1]="Referentially unequal but deeply equal objects. Consider memoization."):c=!1;continue}}else if(typeof y=="function"&&typeof g=="function"&&y.name===g.name&&y.length===g.length&&(T=Function.prototype.toString.call(y),x=Function.prototype.toString.call(g),T===x)){y=g.name===""?"() => {}":g.name+"() {}",a.push([B2+" ".repeat(u)+f,y+" Referentially unequal function closure. Consider memoization."]);continue}}eu(f,y,a,u,ub),eu(f,g,a,u,ob)}c=!1}}else a.push([ob+" ".repeat(u)+f,"…"]),c=!1;return c}function Si(t){De=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}function kl(t,e,a,u){on&&(Nr.start=e,Nr.end=a,oc.color="warning",oc.tooltipText=u,oc.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,u,Nr)):performance.measure(u,Nr))}function ih(t,e,a){kl(t,e,a,"Reconnect")}function uh(t,e,a,u,c){var f=pt(t);if(f!==null&&on){var y=t.alternate,g=t.actualDuration;if(y===null||y.child!==t.child)for(var T=t.child;T!==null;T=T.sibling)g-=T.actualDuration;u=.5>g?u?"tertiary-light":"primary-light":10>g?u?"tertiary":"primary":100>g?u?"tertiary-dark":"primary-dark":"error";var x=t.memoizedProps;g=t._debugTask,x!==null&&y!==null&&y.memoizedProps!==x?(T=[R3],x=Y0(y.memoizedProps,x,T,0),1<T.length&&(x&&!jr&&(y.lanes&c)===0&&100<t.actualDuration?(jr=!0,T[0]=O3,oc.color="warning",oc.tooltipText=V2):(oc.color=u,oc.tooltipText=f),oc.properties=T,Nr.start=e,Nr.end=a,g!=null?g.run(performance.measure.bind(performance,""+f,Nr)):performance.measure(""+f,Nr))):g!=null?g.run(console.timeStamp.bind(console,f,e,a,Cu,void 0,u)):console.timeStamp(f,e,a,Cu,void 0,u)}}function jp(t,e,a,u){if(on){var c=pt(t);if(c!==null){for(var f=null,y=[],g=0;g<u.length;g++){var T=u[g];f==null&&T.source!==null&&(f=T.source._debugTask),T=T.value,y.push(["Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}t.key!==null&&eu("key",t.key,y,0,""),t.memoizedProps!==null&&wp(t.memoizedProps,y,0,""),f==null&&(f=t._debugTask),t={start:e,end:a,detail:{devtools:{color:"error",track:Cu,tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:y}}},f?f.run(performance.measure.bind(performance,""+c,t)):performance.measure(""+c,t)}}}function Ti(t,e,a,u,c){if(c!==null){if(on){var f=pt(t);if(f!==null){u=[];for(var y=0;y<c.length;y++){var g=c[y].value;u.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t.key!==null&&eu("key",t.key,u,0,""),t.memoizedProps!==null&&wp(t.memoizedProps,u,0,""),e={start:e,end:a,detail:{devtools:{color:"error",track:Cu,tooltipText:"A lifecycle or effect errored",properties:u}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,""+f,e)):performance.measure(""+f,e)}}}else f=pt(t),f!==null&&on&&(c=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,f,e,a,Cu,void 0,c)):console.timeStamp(f,e,a,Cu,void 0,c))}function ES(t,e,a,u){if(on&&!(e<=t)){var c=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,a,t,e,De,Te,c)):console.timeStamp(a,t,e,De,Te,c)}}function G0(t,e,a,u){!on||e<=t||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",t,e,De,Te,a)):console.timeStamp("Prewarm",t,e,De,Te,a))}function X0(t,e,a,u){!on||e<=t||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",t,e,De,Te,a)):console.timeStamp("Suspended",t,e,De,Te,a))}function xS(t,e,a,u,c,f){if(on&&!(e<=t)){a=[];for(var y=0;y<u.length;y++){var g=u[y].value;a.push(["Recoverable Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t={start:t,end:e,detail:{devtools:{color:"primary-dark",track:De,trackGroup:Te,tooltipText:c?"Hydration Failed":"Recovered after Error",properties:a}}},f?f.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}function Np(t,e,a,u){!on||e<=t||(u?u.run(console.timeStamp.bind(console,"Errored",t,e,De,Te,"error")):console.timeStamp("Errored",t,e,De,Te,"error"))}function DS(t,e,a,u){!on||e<=t||(u?u.run(console.timeStamp.bind(console,a,t,e,De,Te,"secondary-light")):console.timeStamp(a,t,e,De,Te,"secondary-light"))}function Q0(t,e,a,u,c){if(on&&!(e<=t)){for(var f=[],y=0;y<a.length;y++){var g=a[y].value;f.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}t={start:t,end:e,detail:{devtools:{color:"error",track:De,trackGroup:Te,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:f}}},c?c.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}function _p(t,e,a){!on||e<=t||console.timeStamp("Animating",t,e,De,Te,"secondary-dark")}function oh(){for(var t=Hm,e=FS=Hm=0;e<t;){var a=Ru[e];Ru[e++]=null;var u=Ru[e];Ru[e++]=null;var c=Ru[e];Ru[e++]=null;var f=Ru[e];if(Ru[e++]=null,u!==null&&c!==null){var y=u.pending;y===null?c.next=c:(c.next=y.next,y.next=c),u.pending=c}f!==0&&Bp(a,c,f)}}function Nc(t,e,a,u){Ru[Hm++]=t,Ru[Hm++]=e,Ru[Hm++]=a,Ru[Hm++]=u,FS|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Es(t,e,a,u){return Nc(t,e,a,u),hf(t)}function Ma(t,e){return Nc(t,null,null,e),hf(t)}function Bp(t,e,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var c=!1,f=t.return;f!==null;)f.childLanes|=a,u=f.alternate,u!==null&&(u.childLanes|=a),f.tag===22&&(t=f.stateNode,t===null||t._visibility&Rg||(c=!0)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,c&&e!==null&&(c=31-ga(a),t=f.hiddenUpdates,u=t[c],u===null?t[c]=[e]:u.push(e),e.lane=a|536870912),f):null}function hf(t){if(n0>J3)throw _d=n0=0,a0=R1=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");_d>K3&&(_d=0,a0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&li(t);for(var e=t,a=e.return;a!==null;)e.alternate===null&&(e.flags&4098)!==0&&li(t),e=a,a=e.return;return e.tag===3?e.stateNode:null}function jo(t){if(Ou===null)return t;var e=Ou(t);return e===void 0?t:e.current}function sh(t){if(Ou===null)return t;var e=Ou(t);return e===void 0?t!=null&&typeof t.render=="function"&&(e=jo(t.render),t.render!==e)?(e={$$typeof:Tr,render:e},t.displayName!==void 0&&(e.displayName=t.displayName),e):t:e.current}function Vp(t,e){if(Ou===null)return!1;var a=t.elementType;e=e.type;var u=!1,c=typeof e=="object"&&e!==null?e.$$typeof:null;switch(t.tag){case 1:typeof e=="function"&&(u=!0);break;case 0:(typeof e=="function"||c===Ra)&&(u=!0);break;case 11:(c===Tr||c===Ra)&&(u=!0);break;case 14:case 15:(c===hd||c===Ra)&&(u=!0);break;default:return!1}return!!(u&&(t=Ou(a),t!==void 0&&t===Ou(e)))}function xs(t){Ou!==null&&typeof WeakSet=="function"&&(Lm===null&&(Lm=new WeakSet),Lm.add(t))}function Z0(t,e,a){do{var u=t,c=u.alternate,f=u.child,y=u.sibling,g=u.tag;u=u.type;var T=null;switch(g){case 0:case 15:case 1:T=u;break;case 11:T=u.render}if(Ou===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;if(u=!1,T!==null&&(T=Ou(T),T!==void 0&&(a.has(T)?u=!0:e.has(T)&&(g===1?u=!0:x=!0))),Lm!==null&&(Lm.has(t)||c!==null&&Lm.has(c))&&(u=!0),u&&(t._debugNeedsRemount=!0),(u||x)&&(c=Ma(t,2),c!==null&&Zt(c,t,2)),f===null||u||Z0(f,e,a),y===null)break;t=y}while(!0)}function MS(t,e,a,u){this.tag=t,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=e,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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,H2||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Hp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nu(t,e){var a=t.alternate;switch(a===null?(a=N(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a._debugOwner=t._debugOwner,a._debugStack=t._debugStack,a._debugTask=t._debugTask,a._debugHookTypes=t._debugHookTypes,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext,_debugThenableState:e._debugThenableState},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a.selfBaseDuration=t.selfBaseDuration,a.treeBaseDuration=t.treeBaseDuration,a._debugInfo=t._debugInfo,a._debugNeedsRemount=t._debugNeedsRemount,a.tag){case 0:case 15:a.type=jo(t.type);break;case 1:a.type=jo(t.type);break;case 11:a.type=sh(t.type)}return a}function Lp(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext,_debugThenableState:e._debugThenableState},t.selfBaseDuration=a.selfBaseDuration,t.treeBaseDuration=a.treeBaseDuration),t}function Ds(t,e,a,u,c,f){var y=0,g=t;if(typeof t=="function")Hp(t)&&(y=1),g=jo(g);else if(typeof t=="string")y=K(),y=qv(t,a,y)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Li:return e=N(31,a,e,c),e.elementType=Li,e.lanes=f,e;case Sr:return Ms(a.children,c,f,e);case Fa:y=8,c|=fl,c|=go;break;case dd:return t=a,u=c,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),e=N(12,t,e,u|oe),e.elementType=dd,e.lanes=f,e.stateNode={effectDuration:0,passiveEffectDuration:0},e;case nc:return e=N(13,a,e,c),e.elementType=nc,e.lanes=f,e;case cl:return e=N(19,a,e,c),e.elementType=cl,e.lanes=f,e;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Hi:y=10;break t;case Sm:y=9;break t;case Tr:y=11,g=sh(g);break t;case hd:y=14;break t;case Ra:y=16,g=null;break t}g="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?a="null":Vn(t)?a="array":t!==void 0&&t.$$typeof===ii?(a="<"+(dt(t.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):a=typeof t,(y=u?Lt(u):null)&&(g+=`
|
|
82
|
-
|
|
83
|
-
Check the render method of \``+y+"`."),y=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+g)),g=null}return e=N(y,a,e,c),e.elementType=t,e.type=g,e.lanes=f,e._debugOwner=u,e}function No(t,e,a){return e=Ds(t.type,t.key,t.props,t._owner,e,a),e._debugOwner=t._owner,e._debugStack=t._debugStack,e._debugTask=t._debugTask,e}function Ms(t,e,a,u){return t=N(7,t,u,e),t.lanes=a,t}function _c(t,e,a){return t=N(6,t,null,e),t.lanes=a,t}function qp(t){var e=N(18,null,null,Qt);return e.stateNode=t,e}function ch(t,e,a){return e=N(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Va(t,e){if(typeof t=="object"&&t!==null){var a=WS.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Ea(e)},WS.set(t,e),e)}return{value:t,source:e,stack:Ea(e)}}function Ai(t,e){_o(),qm[Ym++]=Og,qm[Ym++]=sb,sb=t,Og=e}function Yp(t,e,a){_o(),Uu[wu++]=cc,Uu[wu++]=rc,Uu[wu++]=Sd,Sd=t;var u=cc;t=rc;var c=32-ga(u)-1;u&=~(1<<c),a+=1;var f=32-ga(e)+c;if(30<f){var y=c-c%5;f=(u&(1<<y)-1).toString(32),u>>=y,c-=y,cc=1<<32-ga(e)+c|a<<c|u,rc=f+t}else cc=1<<f|a<<c|u,rc=t}function rh(t){_o(),t.return!==null&&(Ai(t,1),Yp(t,1,0))}function fh(t){for(;t===sb;)sb=qm[--Ym],qm[Ym]=null,Og=qm[--Ym],qm[Ym]=null;for(;t===Sd;)Sd=Uu[--wu],Uu[wu]=null,rc=Uu[--wu],Uu[wu]=null,cc=Uu[--wu],Uu[wu]=null}function J0(){return _o(),Sd!==null?{id:cc,overflow:rc}:null}function K0(t,e){_o(),Uu[wu++]=cc,Uu[wu++]=rc,Uu[wu++]=Sd,cc=e.id,rc=e.overflow,Sd=t}function _o(){Se||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function zs(t,e){if(t.return===null){if(Yi===null)Yi={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:e};else{if(Yi.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Yi.distanceFromLeaf>e&&(Yi.distanceFromLeaf=e)}return Yi}var a=zs(t.return,e+1).children;return 0<a.length&&a[a.length-1].fiber===t?(a=a[a.length-1],a.distanceFromLeaf>e&&(a.distanceFromLeaf=e),a):(e={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:e},a.push(e),e)}function $0(){Se&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function za(t,e){fs||(t=zs(t,0),t.serverProps=null,e!==null&&(e=Bv(e),t.serverTail.push(e)))}function Fl(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",u=Yi;throw u!==null&&(Yi=null,a=Ut(u)),pf(Va(Error("Hydration failed because the server rendered "+(e?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
84
|
-
|
|
85
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
-
- Invalid HTML tag nesting.
|
|
90
|
-
|
|
91
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
-
|
|
93
|
-
https://react.dev/link/hydration-mismatch`+a),t)),IS}function Gp(t){var e=t.stateNode,a=t.type,u=t.memoizedProps;switch(e[un]=t,e[Wa]=u,$a(a,u),a){case"dialog":Xt("cancel",e),Xt("close",e);break;case"iframe":case"object":case"embed":Xt("load",e);break;case"video":case"audio":for(a=0;a<l0.length;a++)Xt(l0[a],e);break;case"source":Xt("error",e);break;case"img":case"image":case"link":Xt("error",e),Xt("load",e);break;case"details":Xt("toggle",e);break;case"input":$i("input",u),Xt("invalid",e),ma(e,u),zc(e,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"option":Id(e,u);break;case"select":$i("select",u),Xt("invalid",e),Ba(e,u);break;case"textarea":$i("textarea",u),Xt("invalid",e),Wi(e,u),nl(e,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||u.suppressHydrationWarning===!0||Qy(e.textContent,a)?(u.popover!=null&&(Xt("beforetoggle",e),Xt("toggle",e)),u.onScroll!=null&&Xt("scroll",e),u.onScrollEnd!=null&&Xt("scrollend",e),u.onClick!=null&&(e.onclick=$l),e=!0):e=!1,e||Fl(t,!0)}function Xp(t){for(Ia=t.return;Ia;)switch(Ia.tag){case 5:case 31:case 13:ju=!1;return;case 27:case 3:ju=!0;return;default:Ia=Ia.return}}function Cs(t){if(t!==Ia)return!1;if(!Se)return Xp(t),Se=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||dr(t.type,t.memoizedProps)),a=!a),a&&sn){for(a=sn;a;){var u=zs(t,0),c=Bv(a);u.serverTail.push(c),a=c.type==="Suspense"?pr(a):Cl(a.nextSibling)}Fl(t)}if(Xp(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");sn=pr(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");sn=pr(t)}else e===27?(e=sn,ls(t.type)?(t=Y1,Y1=null,sn=t):sn=e):sn=Ia?Cl(t.stateNode.nextSibling):null;return!0}function Bo(){sn=Ia=null,fs=Se=!1}function mf(){var t=Br;return t!==null&&(Bl===null?Bl=t:Bl.push.apply(Bl,t),Br=null),t}function pf(t){Br===null?Br=[t]:Br.push(t)}function Vo(){var t=Yi;if(t!==null){Yi=null;for(var e=Ut(t);0<t.children.length;)t=t.children[0];mt(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
94
|
-
|
|
95
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
96
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
97
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
98
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
99
|
-
- Invalid HTML tag nesting.
|
|
100
|
-
|
|
101
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
102
|
-
|
|
103
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",e)})}}function Bc(){Gm=cb=null,Xm=!1}function Wl(t,e,a){Jt(PS,e._currentValue,t),e._currentValue=a,Jt(t1,e._currentRenderer,t),e._currentRenderer!==void 0&&e._currentRenderer!==null&&e._currentRenderer!==q2&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),e._currentRenderer=q2}function Ei(t,e){t._currentValue=PS.current;var a=t1.current;Dt(t1,e),t._currentRenderer=a,Dt(PS,e)}function dh(t,e,a){for(;t!==null;){var u=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,u!==null&&(u.childLanes|=e)):u!==null&&(u.childLanes&e)!==e&&(u.childLanes|=e),t===a)break;t=t.return}t!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Fu(t,e,a,u){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var f=c.dependencies;if(f!==null){var y=c.child;f=f.firstContext;t:for(;f!==null;){var g=f;f=c;for(var T=0;T<e.length;T++)if(g.context===e[T]){f.lanes|=a,g=f.alternate,g!==null&&(g.lanes|=a),dh(f.return,a,t),u||(y=null);break t}f=g.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");y.lanes|=a,f=y.alternate,f!==null&&(f.lanes|=a),dh(y,a,t),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===t){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function xi(t,e,a,u){t=null;for(var c=e,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error("Should have a current fiber. This is a bug in React.");if(y=y.memoizedProps,y!==null){var g=c.type;wl(c.pendingProps.value,y.value)||(t!==null?t.push(g):t=[g])}}else if(c===ss.current){if(y=c.alternate,y===null)throw Error("Should have a current fiber. This is a bug in React.");y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(c0):t=[c0])}c=c.return}t!==null&&Fu(e,t,a,u),e.flags|=262144}function Vc(t){for(t=t.firstContext;t!==null;){if(!wl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ho(t){cb=t,Gm=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ne(t){return Xm&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Qp(cb,t)}function yf(t,e){return cb===null&&Ho(t),Qp(t,e)}function Qp(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Gm===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Gm=e,t.dependencies={lanes:0,firstContext:e,_debugThenableState:null},t.flags|=524288}else Gm=Gm.next=e;return a}function hh(){return{controller:new j3,data:new Map,refCount:0}}function Rs(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function gf(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&N3(_3,function(){t.controller.abort()})}function au(t,e,a){(t&127)!==0?0>ds&&(ds=ia(),wg=rb(e),e1=e,a!=null&&(n1=pt(a)),(Ce&(Sa|Qi))!==ja&&(Rn=!0,Hr=Ug),t=hr(),e=Au(),t!==Qm||e!==jg?Qm=-1.1:e!==null&&(Hr=Ug),Ed=t,jg=e):(t&4194048)!==0&&0>Nu&&(Nu=ia(),Ng=rb(e),Y2=e,a!=null&&(G2=pt(a)),0>mc)&&(t=hr(),e=Au(),(t!==qr||e!==xd)&&(qr=-1.1),Lr=t,xd=e)}function k0(t){if(0>ds){ds=ia(),wg=t._debugTask!=null?t._debugTask:null,(Ce&(Sa|Qi))!==ja&&(Hr=Ug);var e=hr(),a=Au();e!==Qm||a!==jg?Qm=-1.1:a!==null&&(Hr=Ug),Ed=e,jg=a}0>Nu&&(Nu=ia(),Ng=t._debugTask!=null?t._debugTask:null,0>mc)&&(t=hr(),e=Au(),(t!==qr||e!==xd)&&(qr=-1.1),Lr=t,xd=e)}function lu(){var t=Td;return Td=0,t}function Hc(t){var e=Td;return Td=t,e}function Ha(t){var e=Td;return Td+=t,e}function Os(){Yt=Vt=-1.1}function nn(){var t=Vt;return Vt=-1.1,t}function Wn(t){0<=t&&(Vt=t)}function Il(){var t=Sn;return Sn=-0,t}function yl(t){0<=t&&(Sn=t)}function gl(){var t=mn;return mn=null,t}function Pl(){var t=Rn;return Rn=!1,t}function Wu(t){jl=ia(),0>t.actualStartTime&&(t.actualStartTime=jl)}function mh(t){if(0<=jl){var e=ia()-jl;t.actualDuration+=e,t.selfBaseDuration=e,jl=-1}}function vf(t){if(0<=jl){var e=ia()-jl;t.actualDuration+=e,jl=-1}}function La(){if(0<=jl){var t=ia(),e=t-jl;jl=-1,Td+=e,Sn+=e,Yt=t}}function F0(t){mn===null&&(mn=[]),mn.push(t),dc===null&&(dc=[]),dc.push(t)}function gn(){jl=ia(),0>Vt&&(Vt=jl)}function Us(t){for(var e=t.child;e;)t.actualDuration+=e.actualDuration,e=e.sibling}function Iu(t,e){if(Bg===null){var a=Bg=[];l1=0,Dd=Xy(),Zm={status:"pending",value:void 0,then:function(u){a.push(u)}}}return l1++,e.then(Zp,Zp),e}function Zp(){if(--l1===0&&(-1<Nu||(mc=-1.1),Bg!==null)){Zm!==null&&(Zm.status="fulfilled");var t=Bg;Bg=null,Dd=0,Zm=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ph(t,e){var a=[],u={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return t.then(function(){u.status="fulfilled",u.value=e;for(var c=0;c<a.length;c++)(0,a[c])(e)},function(c){for(u.status="rejected",u.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),u}function Pu(){var t=Md.current;return t!==null?t:Ie.pooledCache}function Lc(t,e){e===null?Jt(Md,Md.current,t):Jt(Md,e.pool,t)}function Jp(){var t=Pu();return t===null?null:{parent:la._currentValue,pool:t}}function yh(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Kp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vl(t,e,a){W.actQueue!==null&&(W.didUsePromise=!0);var u=t.thenables;if(a=u[a],a===void 0?u.push(e):a!==e&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),e.then($l,$l),e=a),e._debugInfo===void 0){t=performance.now(),u=e.displayName;var c={name:typeof u=="string"?u:"Promise",start:t,end:t,value:e};e._debugInfo=[{awaited:c}],e.status!=="fulfilled"&&e.status!=="rejected"&&(t=function(){c.end=performance.now()},e.then(t,t))}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bf(t),t;default:if(typeof e.status=="string")e.then($l,$l);else{if(t=Ie,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=e,t.status="pending",t.then(function(f){if(e.status==="pending"){var y=e;y.status="fulfilled",y.value=f}},function(f){if(e.status==="pending"){var y=e;y.status="rejected",y.reason=f}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bf(t),t}throw Cd=e,Xg=!0,Jm}}function bl(t){try{return q3(t)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Cd=e,Xg=!0,Jm):e}}function ws(){if(Cd===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Cd;return Cd=null,Xg=!1,t}function bf(t){if(t===Jm||t===vb)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function xn(t){var e=se;return t!=null&&(se=e===null?t:e.concat(t)),e}function al(){var t=se;if(t!=null){for(var e=t.length-1;0<=e;e--)if(t[e].name!=null){var a=t[e].debugTask;if(a!=null)return a}}return null}function qa(t,e,a){for(var u=Object.keys(t.props),c=0;c<u.length;c++){var f=u[c];if(f!=="children"&&f!=="key"){e===null&&(e=No(t,a.mode,0),e._debugInfo=se,e.return=a),mt(e,function(y){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y)},f);break}}}function Di(t){var e=Qg;return Qg+=1,Km===null&&(Km=yh()),vl(Km,t,e)}function ll(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Mi(t,e){throw e.$$typeof===Jv?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
104
|
-
- Multiple copies of the "react" package is used.
|
|
105
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
106
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function ti(t,e){var a=al();a!==null?a.run(Mi.bind(null,t,e)):Mi(t,e)}function $p(t,e){var a=pt(t)||"Component";sA[a]||(sA[a]=!0,e=e.displayName||e.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
107
|
-
root.render(%s)`,e,e,e):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
108
|
-
<%s>{%s}</%s>`,e,e,a,e,a))}function qc(t,e){var a=al();a!==null?a.run($p.bind(null,t,e)):$p(t,e)}function gh(t,e){var a=pt(t)||"Component";cA[a]||(cA[a]=!0,e=String(e),t.tag===3?console.error(`Symbols are not valid as a React child.
|
|
109
|
-
root.render(%s)`,e):console.error(`Symbols are not valid as a React child.
|
|
110
|
-
<%s>%s</%s>`,a,e,a))}function Sf(t,e){var a=al();a!==null?a.run(gh.bind(null,t,e)):gh(t,e)}function In(t){function e(O,w){if(t){var _=O.deletions;_===null?(O.deletions=[w],O.flags|=16):_.push(w)}}function a(O,w){if(!t)return null;for(;w!==null;)e(O,w),w=w.sibling;return null}function u(O){for(var w=new Map;O!==null;)O.key!==null?w.set(O.key,O):w.set(O.index,O),O=O.sibling;return w}function c(O,w){return O=nu(O,w),O.index=0,O.sibling=null,O}function f(O,w,_){return O.index=_,t?(_=O.alternate,_!==null?(_=_.index,_<w?(O.flags|=67108866,w):_):(O.flags|=67108866,w)):(O.flags|=1048576,w)}function y(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function g(O,w,_,et){return w===null||w.tag!==6?(w=_c(_,O.mode,et),w.return=O,w._debugOwner=O,w._debugTask=O._debugTask,w._debugInfo=se,w):(w=c(w,_),w.return=O,w._debugInfo=se,w)}function T(O,w,_,et){var vt=_.type;return vt===Sr?(w=V(O,w,_.props.children,et,_.key),qa(_,w,O),w):w!==null&&(w.elementType===vt||Vp(w,_)||typeof vt=="object"&&vt!==null&&vt.$$typeof===Ra&&bl(vt)===w.type)?(w=c(w,_.props),ll(w,_),w.return=O,w._debugOwner=_._owner,w._debugInfo=se,w):(w=No(_,O.mode,et),ll(w,_),w.return=O,w._debugInfo=se,w)}function x(O,w,_,et){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=ch(_,O.mode,et),w.return=O,w._debugInfo=se,w):(w=c(w,_.children||[]),w.return=O,w._debugInfo=se,w)}function V(O,w,_,et,vt){return w===null||w.tag!==7?(w=Ms(_,O.mode,et,vt),w.return=O,w._debugOwner=O,w._debugTask=O._debugTask,w._debugInfo=se,w):(w=c(w,_),w.return=O,w._debugInfo=se,w)}function L(O,w,_){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=_c(""+w,O.mode,_),w.return=O,w._debugOwner=O,w._debugTask=O._debugTask,w._debugInfo=se,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ii:return _=No(w,O.mode,_),ll(_,w),_.return=O,O=xn(w._debugInfo),_._debugInfo=se,se=O,_;case us:return w=ch(w,O.mode,_),w.return=O,w._debugInfo=se,w;case Ra:var et=xn(w._debugInfo);return w=bl(w),O=L(O,w,_),se=et,O}if(Vn(w)||Ct(w))return _=Ms(w,O.mode,_,null),_.return=O,_._debugOwner=O,_._debugTask=O._debugTask,O=xn(w._debugInfo),_._debugInfo=se,se=O,_;if(typeof w.then=="function")return et=xn(w._debugInfo),O=L(O,Di(w),_),se=et,O;if(w.$$typeof===Hi)return L(O,yf(O,w),_);ti(O,w)}return typeof w=="function"&&qc(O,w),typeof w=="symbol"&&Sf(O,w),null}function U(O,w,_,et){var vt=w!==null?w.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return vt!==null?null:g(O,w,""+_,et);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ii:return _.key===vt?(vt=xn(_._debugInfo),O=T(O,w,_,et),se=vt,O):null;case us:return _.key===vt?x(O,w,_,et):null;case Ra:return vt=xn(_._debugInfo),_=bl(_),O=U(O,w,_,et),se=vt,O}if(Vn(_)||Ct(_))return vt!==null?null:(vt=xn(_._debugInfo),O=V(O,w,_,et,null),se=vt,O);if(typeof _.then=="function")return vt=xn(_._debugInfo),O=U(O,w,Di(_),et),se=vt,O;if(_.$$typeof===Hi)return U(O,w,yf(O,_),et);ti(O,_)}return typeof _=="function"&&qc(O,_),typeof _=="symbol"&&Sf(O,_),null}function J(O,w,_,et,vt){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return O=O.get(_)||null,g(w,O,""+et,vt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case ii:return _=O.get(et.key===null?_:et.key)||null,O=xn(et._debugInfo),w=T(w,_,et,vt),se=O,w;case us:return O=O.get(et.key===null?_:et.key)||null,x(w,O,et,vt);case Ra:var kt=xn(et._debugInfo);return et=bl(et),w=J(O,w,_,et,vt),se=kt,w}if(Vn(et)||Ct(et))return _=O.get(_)||null,O=xn(et._debugInfo),w=V(w,_,et,vt,null),se=O,w;if(typeof et.then=="function")return kt=xn(et._debugInfo),w=J(O,w,_,Di(et),vt),se=kt,w;if(et.$$typeof===Hi)return J(O,w,_,yf(w,et),vt);ti(w,et)}return typeof et=="function"&&qc(w,et),typeof et=="symbol"&&Sf(w,et),null}function yt(O,w,_,et){if(typeof _!="object"||_===null)return et;switch(_.$$typeof){case ii:case us:C(O,w,_);var vt=_.key;if(typeof vt!="string")break;if(et===null){et=new Set,et.add(vt);break}if(!et.has(vt)){et.add(vt);break}mt(w,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",vt)});break;case Ra:_=bl(_),yt(O,w,_,et)}return et}function At(O,w,_,et){for(var vt=null,kt=null,_t=null,wt=w,ie=w=0,cn=null;wt!==null&&ie<_.length;ie++){wt.index>ie?(cn=wt,wt=null):cn=wt.sibling;var Kn=U(O,wt,_[ie],et);if(Kn===null){wt===null&&(wt=cn);break}vt=yt(O,Kn,_[ie],vt),t&&wt&&Kn.alternate===null&&e(O,wt),w=f(Kn,w,ie),_t===null?kt=Kn:_t.sibling=Kn,_t=Kn,wt=cn}if(ie===_.length)return a(O,wt),Se&&Ai(O,ie),kt;if(wt===null){for(;ie<_.length;ie++)wt=L(O,_[ie],et),wt!==null&&(vt=yt(O,wt,_[ie],vt),w=f(wt,w,ie),_t===null?kt=wt:_t.sibling=wt,_t=wt);return Se&&Ai(O,ie),kt}for(wt=u(wt);ie<_.length;ie++)cn=J(wt,O,ie,_[ie],et),cn!==null&&(vt=yt(O,cn,_[ie],vt),t&&cn.alternate!==null&&wt.delete(cn.key===null?ie:cn.key),w=f(cn,w,ie),_t===null?kt=cn:_t.sibling=cn,_t=cn);return t&&wt.forEach(function(Ac){return e(O,Ac)}),Se&&Ai(O,ie),kt}function en(O,w,_,et){if(_==null)throw Error("An iterable object provided no iterator.");for(var vt=null,kt=null,_t=w,wt=w=0,ie=null,cn=null,Kn=_.next();_t!==null&&!Kn.done;wt++,Kn=_.next()){_t.index>wt?(ie=_t,_t=null):ie=_t.sibling;var Ac=U(O,_t,Kn.value,et);if(Ac===null){_t===null&&(_t=ie);break}cn=yt(O,Ac,Kn.value,cn),t&&_t&&Ac.alternate===null&&e(O,_t),w=f(Ac,w,wt),kt===null?vt=Ac:kt.sibling=Ac,kt=Ac,_t=ie}if(Kn.done)return a(O,_t),Se&&Ai(O,wt),vt;if(_t===null){for(;!Kn.done;wt++,Kn=_.next())_t=L(O,Kn.value,et),_t!==null&&(cn=yt(O,_t,Kn.value,cn),w=f(_t,w,wt),kt===null?vt=_t:kt.sibling=_t,kt=_t);return Se&&Ai(O,wt),vt}for(_t=u(_t);!Kn.done;wt++,Kn=_.next())ie=J(_t,O,wt,Kn.value,et),ie!==null&&(cn=yt(O,ie,Kn.value,cn),t&&ie.alternate!==null&&_t.delete(ie.key===null?wt:ie.key),w=f(ie,w,wt),kt===null?vt=ie:kt.sibling=ie,kt=ie);return t&&_t.forEach(function(rz){return e(O,rz)}),Se&&Ai(O,wt),vt}function Ae(O,w,_,et){if(typeof _=="object"&&_!==null&&_.type===Sr&&_.key===null&&(qa(_,null,O),_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case ii:var vt=xn(_._debugInfo);t:{for(var kt=_.key;w!==null;){if(w.key===kt){if(kt=_.type,kt===Sr){if(w.tag===7){a(O,w.sibling),et=c(w,_.props.children),et.return=O,et._debugOwner=_._owner,et._debugInfo=se,qa(_,et,O),O=et;break t}}else if(w.elementType===kt||Vp(w,_)||typeof kt=="object"&&kt!==null&&kt.$$typeof===Ra&&bl(kt)===w.type){a(O,w.sibling),et=c(w,_.props),ll(et,_),et.return=O,et._debugOwner=_._owner,et._debugInfo=se,O=et;break t}a(O,w);break}else e(O,w);w=w.sibling}_.type===Sr?(et=Ms(_.props.children,O.mode,et,_.key),et.return=O,et._debugOwner=O,et._debugTask=O._debugTask,et._debugInfo=se,qa(_,et,O),O=et):(et=No(_,O.mode,et),ll(et,_),et.return=O,et._debugInfo=se,O=et)}return O=y(O),se=vt,O;case us:t:{for(vt=_,_=vt.key;w!==null;){if(w.key===_)if(w.tag===4&&w.stateNode.containerInfo===vt.containerInfo&&w.stateNode.implementation===vt.implementation){a(O,w.sibling),et=c(w,vt.children||[]),et.return=O,O=et;break t}else{a(O,w);break}else e(O,w);w=w.sibling}et=ch(vt,O.mode,et),et.return=O,O=et}return y(O);case Ra:return vt=xn(_._debugInfo),_=bl(_),O=Ae(O,w,_,et),se=vt,O}if(Vn(_))return vt=xn(_._debugInfo),O=At(O,w,_,et),se=vt,O;if(Ct(_)){if(vt=xn(_._debugInfo),kt=Ct(_),typeof kt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var _t=kt.call(_);return _t===_?(O.tag!==0||Object.prototype.toString.call(O.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(_t)!=="[object Generator]")&&(uA||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),uA=!0):_.entries!==kt||s1||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),s1=!0),O=en(O,w,_t,et),se=vt,O}if(typeof _.then=="function")return vt=xn(_._debugInfo),O=Ae(O,w,Di(_),et),se=vt,O;if(_.$$typeof===Hi)return Ae(O,w,yf(O,_),et);ti(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(vt=""+_,w!==null&&w.tag===6?(a(O,w.sibling),et=c(w,vt),et.return=O,O=et):(a(O,w),et=_c(vt,O.mode,et),et.return=O,et._debugOwner=O,et._debugTask=O._debugTask,et._debugInfo=se,O=et),y(O)):(typeof _=="function"&&qc(O,_),typeof _=="symbol"&&Sf(O,_),a(O,w))}return function(O,w,_,et){var vt=se;se=null;try{Qg=0;var kt=Ae(O,w,_,et);return Km=null,kt}catch(cn){if(cn===Jm||cn===vb)throw cn;var _t=N(29,cn,null,O.mode);_t.lanes=et,_t.return=O;var wt=_t._debugInfo=se;if(_t._debugOwner=O._debugOwner,_t._debugTask=O._debugTask,wt!=null){for(var ie=wt.length-1;0<=ie;ie--)if(typeof wt[ie].stack=="string"){_t._debugOwner=wt[ie],_t._debugTask=wt[ie].debugTask;break}}return _t}finally{se=vt}}}function $e(t,e){var a=Vn(t);return t=!a&&typeof Ct(t)=="function",a||t?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,e,a),!1):!0}function ge(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Yn(t){return{lane:t,tag:fA,payload:null,callback:null,next:null}}function uu(t,e,a){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,r1===u&&!mA){var c=pt(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
111
|
-
|
|
112
|
-
Please update the following component: %s`,c),mA=!0}return(Ce&Sa)!==ja?(c=u.pending,c===null?e.next=e:(e.next=c.next,c.next=e),u.pending=e,e=hf(t),Bp(t,null,a),e):(Nc(t,u,e,a),hf(t))}function ei(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,a|=u,e.lanes=a,xt(t,a)}}function Tf(t,e){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var c=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?c=f=y:f=f.next=y,a=a.next}while(a!==null);f===null?c=f=e:f=f.next=e}else c=f=e;a={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:u.shared,callbacks:u.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}function Yc(){if(f1){var t=Zm;if(t!==null)throw t}}function ou(t,e,a,u){f1=!1;var c=t.updateQueue;Yr=!1,r1=c.shared;var f=c.firstBaseUpdate,y=c.lastBaseUpdate,g=c.shared.pending;if(g!==null){c.shared.pending=null;var T=g,x=T.next;T.next=null,y===null?f=x:y.next=x,y=T;var V=t.alternate;V!==null&&(V=V.updateQueue,g=V.lastBaseUpdate,g!==y&&(g===null?V.firstBaseUpdate=x:g.next=x,V.lastBaseUpdate=T))}if(f!==null){var L=c.baseState;y=0,V=x=T=null,g=f;do{var U=g.lane&-536870913,J=U!==g.lane;if(J?(ce&U)===U:(u&U)===U){U!==0&&U===Dd&&(f1=!0),V!==null&&(V=V.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{U=t;var yt=g,At=e,en=a;switch(yt.tag){case dA:if(yt=yt.payload,typeof yt=="function"){Xm=!0;var Ae=yt.call(en,L,At);if(U.mode&fl){Me(!0);try{yt.call(en,L,At)}finally{Me(!1)}}Xm=!1,L=Ae;break t}L=yt;break t;case c1:U.flags=U.flags&-65537|128;case fA:if(Ae=yt.payload,typeof Ae=="function"){if(Xm=!0,yt=Ae.call(en,L,At),U.mode&fl){Me(!0);try{Ae.call(en,L,At)}finally{Me(!1)}}Xm=!1}else yt=Ae;if(yt==null)break t;L=ue({},L,yt);break t;case hA:Yr=!0}}U=g.callback,U!==null&&(t.flags|=64,J&&(t.flags|=8192),J=c.callbacks,J===null?c.callbacks=[U]:J.push(U))}else J={lane:U,tag:g.tag,payload:g.payload,callback:g.callback,next:null},V===null?(x=V=J,T=L):V=V.next=J,y|=U;if(g=g.next,g===null){if(g=c.shared.pending,g===null)break;J=g,g=J.next,J.next=null,c.lastBaseUpdate=J,c.shared.pending=null}}while(!0);V===null&&(T=L),c.baseState=T,c.firstBaseUpdate=x,c.lastBaseUpdate=V,f===null&&(c.shared.lanes=0),Qr|=y,t.lanes=y,t.memoizedState=L}r1=null}function Lo(t,e){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(e)}function kp(t,e){var a=t.shared.hiddenCallbacks;if(a!==null)for(t.shared.hiddenCallbacks=null,t=0;t<a.length;t++)Lo(a[t],e)}function Gc(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Lo(a[t],e)}function vh(t,e){var a=ms;Jt(Sb,a,t),Jt($m,e,t),ms=a|e.baseLanes}function to(t){Jt(Sb,ms,t),Jt($m,$m.current,t)}function zi(t){ms=Sb.current,Dt($m,t),Dt(Sb,t)}function Ya(t){var e=t.alternate;Jt(Jn,Jn.current&km,t),Jt(Gi,t,t),_u===null&&(e===null||$m.current!==null||e.memoizedState!==null)&&(_u=t)}function Ci(t){Jt(Jn,Jn.current,t),Jt(Gi,t,t),_u===null&&(_u=t)}function bh(t){t.tag===22?(Jt(Jn,Jn.current,t),Jt(Gi,t,t),_u===null&&(_u=t)):su(t)}function su(t){Jt(Jn,Jn.current,t),Jt(Gi,Gi.current,t)}function Pn(t){Dt(Gi,t),_u===t&&(_u=null),Dt(Jn,t)}function js(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ad(a)||Jy(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Kt(){var t=$;Vu===null?Vu=[t]:Vu.push(t)}function ut(){var t=$;if(Vu!==null&&(gc++,Vu[gc]!==t)){var e=pt($t);if(!pA.has(e)&&(pA.add(e),Vu!==null)){for(var a="",u=0;u<=gc;u++){var c=Vu[u],f=u===gc?t:c;for(c=u+1+". "+c;30>c.length;)c+=" ";c+=f+`
|
|
113
|
-
`,a+=c}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
114
|
-
|
|
115
|
-
Previous render Next render
|
|
116
|
-
------------------------------------------------------
|
|
117
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
118
|
-
`,e,a)}}}function eo(t){t==null||Vn(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",$,typeof t)}function Af(){var t=pt($t);gA.has(t)||(gA.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function vn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
119
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
120
|
-
2. You might be breaking the Rules of Hooks
|
|
121
|
-
3. You might have more than one copy of React in the same app
|
|
122
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Fp(t,e){if(Kg)return!1;if(e===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",$),!1;t.length!==e.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
123
|
-
|
|
124
|
-
Previous: %s
|
|
125
|
-
Incoming: %s`,$,"["+e.join(", ")+"]","["+t.join(", ")+"]");for(var a=0;a<e.length&&a<t.length;a++)if(!wl(t[a],e[a]))return!1;return!0}function Wp(t,e,a,u,c,f){pc=f,$t=e,Vu=t!==null?t._debugHookTypes:null,gc=-1,Kg=t!==null&&t.type!==e.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(f=pt($t),d1.has(f)||(d1.add(f),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",f===null?"An unknown Component":"<"+f+">"))),e.memoizedState=null,e.updateQueue=null,e.lanes=0,W.H=t!==null&&t.memoizedState!==null?m1:Vu!==null?vA:h1,Od=f=(e.mode&fl)!==Qt;var y=i1(a,u,c);if(Od=!1,Wm&&(y=Ef(e,a,u,c)),f){Me(!0);try{y=Ef(e,a,u,c)}finally{Me(!1)}}return Dn(t,e),y}function Dn(t,e){e._debugHookTypes=Vu,e.dependencies===null?yc!==null&&(e.dependencies={lanes:0,firstContext:null,_debugThenableState:yc}):e.dependencies._debugThenableState=yc,W.H=$g;var a=We!==null&&We.next!==null;if(pc=0,Vu=$=ua=We=$t=null,gc=-1,t!==null&&(t.flags&65011712)!==(e.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Ab=!1,Jg=0,yc=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||oa||(t=t.dependencies,t!==null&&Vc(t)&&(oa=!0)),Xg?(Xg=!1,t=!0):t=!1,t&&(e=pt(e)||"Unknown",yA.has(e)||d1.has(e)||(yA.add(e),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ef(t,e,a,u){$t=t;var c=0;do{if(Wm&&(yc=null),Jg=0,Wm=!1,c>=G3)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,Kg=!1,ua=We=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}gc=-1,W.H=bA,f=i1(e,a,u)}while(Wm);return f}function xf(){var t=W.H,e=t.useState()[0];return e=typeof e.then=="function"?zf(e):e,t=t.useState()[0],(We!==null?We.memoizedState:null)!==t&&($t.flags|=1024),e}function Ns(){var t=Eb!==0;return Eb=0,t}function Df(t,e,a){e.updateQueue=t.updateQueue,e.flags=(e.mode&go)!==Qt?e.flags&-402655237:e.flags&-2053,t.lanes&=~a}function qo(t){if(Ab){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ab=!1}pc=0,Vu=ua=We=$t=null,gc=-1,$=null,Wm=!1,Jg=Eb=0,yc=null}function _n(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ua===null?$t.memoizedState=ua=t:ua=ua.next=t,ua}function Ve(){if(We===null){var t=$t.alternate;t=t!==null?t.memoizedState:null}else t=We.next;var e=ua===null?$t.memoizedState:ua.next;if(e!==null)ua=e,We=t;else{if(t===null)throw $t.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");We=t,t={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},ua===null?$t.memoizedState=ua=t:ua=ua.next=t}return ua}function Mf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zf(t){var e=Jg;return Jg+=1,yc===null&&(yc=yh()),t=vl(yc,t,e),e=$t,(ua===null?e.memoizedState:ua.next)===null&&(e=e.alternate,W.H=e!==null&&e.memoizedState!==null?m1:h1),t}function no(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return zf(t);if(t.$$typeof===Hi)return Ne(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function Sl(t){var e=null,a=$t.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var u=$t.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(e={data:u.data.map(function(c){return c.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Mf(),$t.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0||Kg)for(a=e.data[e.index]=Array(t),u=0;u<t;u++)a[u]=wS;else a.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,t);return e.index++,a}function Tl(t,e){return typeof e=="function"?e(t):e}function Xc(t,e,a){var u=_n();if(a!==void 0){var c=a(e);if(Od){Me(!0);try{a(e)}finally{Me(!1)}}}else c=e;return u.memoizedState=u.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},u.queue=t,t=t.dispatch=zS.bind(null,$t,t),[u.memoizedState,t]}function _s(t){var e=Ve();return Yo(e,We,t)}function Yo(t,e,a){var u=t.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=a;var c=t.baseQueue,f=u.pending;if(f!==null){if(c!==null){var y=c.next;c.next=f.next,f.next=y}e.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),e.baseQueue=c=f,u.pending=null}if(f=t.baseState,c===null)t.memoizedState=f;else{e=c.next;var g=y=null,T=null,x=e,V=!1;do{var L=x.lane&-536870913;if(L!==x.lane?(ce&L)===L:(pc&L)===L){var U=x.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),L===Dd&&(V=!0);else if((pc&U)===U){x=x.next,U===Dd&&(V=!0);continue}else L={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(g=T=L,y=f):T=T.next=L,$t.lanes|=U,Qr|=U;L=x.action,Od&&a(f,L),f=x.hasEagerState?x.eagerState:a(f,L)}else U={lane:L,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(g=T=U,y=f):T=T.next=U,$t.lanes|=L,Qr|=L;x=x.next}while(x!==null&&x!==e);if(T===null?y=f:T.next=g,!wl(f,t.memoizedState)&&(oa=!0,V&&(a=Zm,a!==null)))throw a;t.memoizedState=f,t.baseState=y,t.baseQueue=T,u.lastRenderedState=f}return c===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Bs(t){var e=Ve(),a=e.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=t;var u=a.dispatch,c=a.pending,f=e.memoizedState;if(c!==null){a.pending=null;var y=c=c.next;do f=t(f,y.action),y=y.next;while(y!==c);wl(f,e.memoizedState)||(oa=!0),e.memoizedState=f,e.baseQueue===null&&(e.baseState=f),a.lastRenderedState=f}return[f,u]}function Qc(t,e,a){var u=$t,c=_n();if(Se){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var f=a();Fm||f===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fm=!0)}else{if(f=e(),Fm||(a=e(),wl(f,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fm=!0)),Ie===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ce&127)!==0||Ip(u,e,f)}return c.memoizedState=f,a={value:f,getSnapshot:e},c.queue=a,Ls(Go.bind(null,u,a,t),[t]),u.flags|=2048,cu(Bu|_l,{destroy:void 0},Pp.bind(null,u,a,f,e),null),f}function Vs(t,e,a){var u=$t,c=Ve(),f=Se;if(f){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=e(),!Fm){var y=e();wl(a,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fm=!0)}(y=!wl((We||c).memoizedState,a))&&(c.memoizedState=a,oa=!0),c=c.queue;var g=Go.bind(null,u,c,t);if(Gn(2048,_l,g,[t]),c.getSnapshot!==e||y||ua!==null&&ua.memoizedState.tag&Bu){if(u.flags|=2048,cu(Bu|_l,{destroy:void 0},Pp.bind(null,u,c,a,e),null),Ie===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f||(pc&127)!==0||Ip(u,e,a)}return a}function Ip(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=$t.updateQueue,e===null?(e=Mf(),$t.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Pp(t,e,a,u){e.value=a,e.getSnapshot=u,Xo(e)&&ty(t)}function Go(t,e,a){return a(function(){Xo(e)&&(au(2,"updateSyncExternalStore()",t),ty(t))})}function Xo(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!wl(t,a)}catch{return!0}}function ty(t){var e=Ma(t,2);e!==null&&Zt(e,t,2)}function Sh(t){var e=_n();if(typeof t=="function"){var a=t;if(t=a(),Od){Me(!0);try{a()}finally{Me(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:t},e}function Qo(t){t=Sh(t);var e=t.queue,a=Mh.bind(null,$t,e);return e.dispatch=a,[t.memoizedState,a]}function Hs(t){var e=_n();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Nf.bind(null,$t,!0,a),a.dispatch=e,[t,e]}function Cf(t,e){var a=Ve();return Zc(a,We,t,e)}function Zc(t,e,a,u){return t.baseState=a,Yo(t,We,typeof u=="function"?u:Tl)}function Rf(t,e){var a=Ve();return We!==null?Zc(a,We,t,e):(a.baseState=t,[t,a.queue.dispatch])}function W0(t,e,a,u,c){if(ta(t))throw Error("Cannot update form state while rendering.");if(t=e.action,t!==null){var f={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};W.T!==null?a(!0):f.isTransition=!1,u(f),a=e.pending,a===null?(f.next=e.pending=f,Zo(e,f)):(f.next=a.next,e.pending=a.next=f)}}function Zo(t,e){var a=e.action,u=e.payload,c=t.state;if(e.isTransition){var f=W.T,y={};y._updatedFibers=new Set,W.T=y;try{var g=a(c,u),T=W.S;T!==null&&T(y,g),ey(t,e,g)}catch(x){Of(t,e,x)}finally{f!==null&&y.types!==null&&(f.types!==null&&f.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=y.types),W.T=f,f===null&&y._updatedFibers&&(t=y._updatedFibers.size,y._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{y=a(c,u),ey(t,e,y)}catch(x){Of(t,e,x)}}function ey(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(W.asyncTransitions++,a.then(qs,qs),a.then(function(u){ao(t,e,u)},function(u){return Of(t,e,u)}),e.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ao(t,e,a)}function ao(t,e,a){e.status="fulfilled",e.value=a,Th(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Zo(t,a)))}function Of(t,e,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do e.status="rejected",e.reason=a,Th(e),e=e.next;while(e!==u)}t.action=null}function Th(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function lo(t,e){return e}function Al(t,e){if(Se){var a=Ie.formState;if(a!==null){t:{var u=$t;if(Se){if(sn){e:{for(var c=sn,f=ju;c.nodeType!==8;){if(!f){c=null;break e}if(c=Cl(c.nextSibling),c===null){c=null;break e}}f=c.data,c=f===V1||f===lE?c:null}if(c){sn=Cl(c.nextSibling),u=c.data===V1;break t}}Fl(u)}u=!1}u&&(e=a[0])}}return a=_n(),a.memoizedState=a.baseState=e,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lo,lastRenderedState:e},a.queue=u,a=Mh.bind(null,$t,u),u.dispatch=a,u=Sh(!1),f=Nf.bind(null,$t,!1,u.queue),u=_n(),c={state:e,dispatch:null,action:t,pending:null},u.queue=c,a=W0.bind(null,$t,c,f,a),c.dispatch=a,u.memoizedState=t,[e,a,!1]}function Jo(t){var e=Ve();return Ah(e,We,t)}function Ah(t,e,a){if(e=Yo(t,e,lo)[0],t=_s(Tl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var u=zf(e)}catch(y){throw y===Jm?vb:y}else u=e;e=Ve();var c=e.queue,f=c.dispatch;return a!==e.memoizedState&&($t.flags|=2048,cu(Bu|_l,{destroy:void 0},ny.bind(null,c,a),null)),[u,f,t]}function ny(t,e){t.action=e}function Ko(t){var e=Ve(),a=We;if(a!==null)return Ah(e,a,t);Ve(),e=e.memoizedState,a=Ve();var u=a.queue.dispatch;return a.memoizedState=t,[e,u,!1]}function cu(t,e,a,u){return t={tag:t,create:a,deps:u,inst:e,next:null},e=$t.updateQueue,e===null&&(e=Mf(),$t.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(u=a.next,a.next=t,t.next=u,e.lastEffect=t),t}function Eh(t){var e=_n();return t={current:t},e.memoizedState=t}function $o(t,e,a,u){var c=_n();$t.flags|=t,c.memoizedState=cu(Bu|e,{destroy:void 0},a,u===void 0?null:u)}function Gn(t,e,a,u){var c=Ve();u=u===void 0?null:u;var f=c.memoizedState.inst;We!==null&&u!==null&&Fp(u,We.memoizedState.deps)?c.memoizedState=cu(e,f,a,u):($t.flags|=t,c.memoizedState=cu(Bu|e,f,a,u))}function Ls(t,e){($t.mode&go)!==Qt?$o(276826112,_l,t,e):$o(8390656,_l,t,e)}function I0(t){$t.flags|=4;var e=$t.updateQueue;if(e===null)e=Mf(),$t.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Uf(t){var e=_n(),a={impl:t};return e.memoizedState=a,function(){if((Ce&Sa)!==ja)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Jc(t){var e=Ve().memoizedState;return I0({ref:e,nextImpl:t}),function(){if((Ce&Sa)!==ja)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return e.impl.apply(void 0,arguments)}}function Ga(t,e){var a=4194308;return($t.mode&go)!==Qt&&(a|=134217728),$o(a,Xi,t,e)}function El(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return e.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(e).join(", ")+"}"),t=t(),e.current=t,function(){e.current=null}}function ru(t,e,a){typeof e!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",e!==null?typeof e:"null"),a=a!=null?a.concat([t]):null;var u=4194308;($t.mode&go)!==Qt&&(u|=134217728),$o(u,Xi,El.bind(null,e,t),a)}function Kc(t,e,a){typeof e!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",e!==null?typeof e:"null"),a=a!=null?a.concat([t]):null,Gn(4,Xi,El.bind(null,e,t),a)}function xh(t,e){return _n().memoizedState=[t,e===void 0?null:e],t}function Ri(t,e){var a=Ve();e=e===void 0?null:e;var u=a.memoizedState;return e!==null&&Fp(e,u[1])?u[0]:(a.memoizedState=[t,e],t)}function Xa(t,e){var a=_n();e=e===void 0?null:e;var u=t();if(Od){Me(!0);try{t()}finally{Me(!1)}}return a.memoizedState=[u,e],u}function an(t,e){var a=Ve();e=e===void 0?null:e;var u=a.memoizedState;if(e!==null&&Fp(e,u[1]))return u[0];if(u=t(),Od){Me(!0);try{t()}finally{Me(!1)}}return a.memoizedState=[u,e],u}function $c(t,e){var a=_n();return He(a,t,e)}function fu(t,e){var a=Ve();return Mn(a,We.memoizedState,t,e)}function ee(t,e){var a=Ve();return We===null?He(a,t,e):Mn(a,We.memoizedState,t,e)}function He(t,e,a){return a===void 0||(pc&1073741824)!==0&&(ce&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=nr(),$t.lanes|=t,Qr|=t,a)}function Mn(t,e,a,u){return wl(a,e)?a:$m.current!==null?(t=He(t,a,u),wl(t,e)||(oa=!0),t):(pc&42)===0||(pc&1073741824)!==0&&(ce&261930)===0?(oa=!0,t.memoizedState=a):(t=nr(),$t.lanes|=t,Qr|=t,e)}function qs(){W.asyncTransitions--}function Ys(t,e,a,u,c){var f=Be.p;Be.p=f!==0&&f<va?f:va;var y=W.T,g={};g._updatedFibers=new Set,W.T=g,Nf(t,!1,e,a);try{var T=c(),x=W.S;if(x!==null&&x(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){W.asyncTransitions++,T.then(qs,qs);var V=ph(T,u);Gs(t,e,V,Ca(t))}else Gs(t,e,u,Ca(t))}catch(L){Gs(t,e,{then:function(){},status:"rejected",reason:L},Ca(t))}finally{Be.p=f,y!==null&&g.types!==null&&(y.types!==null&&y.types!==g.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=g.types),W.T=y,y===null&&g._updatedFibers&&(t=g._updatedFibers.size,g._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function io(t,e,a,u){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=wf(t).queue;k0(t),Ys(t,c,e,Yd,a===null?z:function(){return kc(t),a(u)})}function wf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Yd,baseState:Yd,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:Yd},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function kc(t){W.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var e=wf(t);e.next===null&&(e=t.alternate.memoizedState),Gs(t,e.next.queue,{},Ca(t))}function ko(){var t=Sh(!1);return t=Ys.bind(null,$t,t.queue,!0,!1),_n().memoizedState=t,[!1,t]}function P0(){var t=_s(Tl)[0],e=Ve().memoizedState;return[typeof t=="boolean"?t:zf(t),e]}function fn(){var t=Bs(Tl)[0],e=Ve().memoizedState;return[typeof t=="boolean"?t:zf(t),e]}function uo(){return Ne(c0)}function jf(){var t=_n(),e=Ie.identifierPrefix;if(Se){var a=rc,u=cc;a=(u&~(1<<32-ga(u)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Eb++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Y3++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e}function Dh(){return _n().memoizedState=tv.bind(null,$t)}function tv(t,e){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var u=Ca(a),c=Yn(u),f=uu(a,c,u);f!==null&&(au(u,"refresh()",t),Zt(f,a,u),ei(f,a,u)),t=hh(),e!=null&&f!==null&&console.error("The seed argument is not enabled outside experimental channels."),c.payload={cache:t};return}a=a.return}}function zS(t,e,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ca(t);var c={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};ta(t)?bn(e,c):(c=Es(t,e,c,u),c!==null&&(au(u,"dispatch()",t),Zt(c,t,u),_f(c,e,u)))}function Mh(t,e,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Ca(t),Gs(t,e,a,u)&&au(u,"setState()",t)}function Gs(t,e,a,u){var c={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ta(t))bn(e,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=e.lastRenderedReducer,f!==null)){var y=W.H;W.H=bo;try{var g=e.lastRenderedState,T=f(g,a);if(c.hasEagerState=!0,c.eagerState=T,wl(T,g))return Nc(t,e,c,0),Ie===null&&oh(),!1}catch{}finally{W.H=y}}if(a=Es(t,e,c,u),a!==null)return Zt(a,t,u),_f(a,e,u),!0}return!1}function Nf(t,e,a,u){if(W.T===null&&Dd===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:Xy(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ta(t)){if(e)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else e=Es(t,a,u,2),e!==null&&(au(2,"setOptimistic()",t),Zt(e,t,2))}function ta(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function bn(t,e){Wm=Ab=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function _f(t,e,a){if((a&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,a|=u,e.lanes=a,xt(t,a)}}function Xs(t){if(t!==null&&typeof t!="function"){var e=String(t);OA.has(e)||(OA.add(e),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function Fc(t,e,a,u){var c=t.memoizedState,f=a(u,c);if(t.mode&fl){Me(!0);try{f=a(u,c)}finally{Me(!1)}}f===void 0&&(e=dt(e)||"Component",MA.has(e)||(MA.add(e),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",e))),c=f==null?c:ue({},c,f),t.memoizedState=c,t.lanes===0&&(t.updateQueue.baseState=c)}function zh(t,e,a,u,c,f,y){var g=t.stateNode;if(typeof g.shouldComponentUpdate=="function"){if(a=g.shouldComponentUpdate(u,f,y),t.mode&fl){Me(!0);try{a=g.shouldComponentUpdate(u,f,y)}finally{Me(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",dt(e)||"Component"),a}return e.prototype&&e.prototype.isPureReactComponent?!jc(a,u)||!jc(c,f):!0}function du(t,e,a,u){var c=e.state;typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,u),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,u),e.state!==c&&(t=pt(t)||"Component",TA.has(t)||(TA.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),p1.enqueueReplaceState(e,e.state,null))}function hu(t,e){var a=e;if("ref"in e){a={};for(var u in e)u!=="ref"&&(a[u]=e[u])}if(t=t.defaultProps){a===e&&(a=ue({},a));for(var c in t)a[c]===void 0&&(a[c]=t[c])}return a}function Ch(t){JS(t),console.warn(`%s
|
|
126
|
-
|
|
127
|
-
%s
|
|
128
|
-
`,Im?"An error occurred in the <"+Im+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
129
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Rh(t){var e=Im?"The above error occurred in the <"+Im+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((y1||"Anonymous")+".");if(typeof t=="object"&&t!==null&&typeof t.environmentName=="string"){var u=t.environmentName;t=[`%o
|
|
130
|
-
|
|
131
|
-
%s
|
|
132
|
-
|
|
133
|
-
%s
|
|
134
|
-
`,t,e,a].slice(0),typeof t[0]=="string"?t.splice(0,1,dE+" "+t[0],hE,$b+u+$b,mE):t.splice(0,0,dE,hE,$b+u+$b,mE),t.unshift(console),u=sz.apply(console.error,t),u()}else console.error(`%o
|
|
135
|
-
|
|
136
|
-
%s
|
|
137
|
-
|
|
138
|
-
%s
|
|
139
|
-
`,t,e,a)}function ay(t){JS(t)}function Bf(t,e){try{Im=e.source?pt(e.source):null,y1=null;var a=e.value;if(W.actQueue!==null)W.thrownErrors.push(a);else{var u=t.onUncaughtError;u(a,{componentStack:e.stack})}}catch(c){setTimeout(function(){throw c})}}function ly(t,e,a){try{Im=a.source?pt(a.source):null,y1=pt(e);var u=t.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Oh(t,e,a){return a=Yn(a),a.tag=c1,a.payload={element:null},a.callback=function(){mt(e.source,Bf,t,e)},a}function Uh(t){return t=Yn(t),t.tag=c1,t}function wh(t,e,a,u){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=u.value;t.payload=function(){return c(f)},t.callback=function(){xs(a),mt(u.source,ly,e,a,u)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){xs(a),mt(u.source,ly,e,a,u),typeof c!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this)),V3(this,u),typeof c=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",pt(a)||"Unknown")})}function iy(t,e,a,u,c){if(a.flags|=32768,Mu&&or(t,c),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(e=a.alternate,e!==null&&xi(e,a,c,!0),Se&&(fs=!0),a=Gi.current,a!==null){switch(a.tag){case 31:case 13:return _u===null?lr():a.alternate===null&&Tn===bc&&(Tn=Mb),a.flags&=-257,a.flags|=65536,a.lanes=c,u===bb?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([u]):e.add(u),Ih(t,u,c)),!1;case 22:return a.flags|=65536,u===bb?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([u]):a.add(u)),Ih(t,u,c)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Ih(t,u,c),lr(),!1}if(Se)return fs=!0,e=Gi.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=c,u!==IS&&pf(Va(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),a))):(u!==IS&&pf(Va(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),a)),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,u=Va(u,a),c=Oh(t.stateNode,u,c),Tf(t,c),Tn!==Gr&&(Tn=Ud)),!1;var f=Va(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),a);if(t0===null?t0=[f]:t0.push(f),Tn!==Gr&&(Tn=Ud),e===null)return!0;u=Va(u,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=c&-c,a.lanes|=t,t=Oh(a.stateNode,u,t),Tf(a,t),!1;case 1:if(e=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Jr===null||!Jr.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=Uh(c),wh(c,t,a,u),Tf(a,c),!1}a=a.return}while(a!==null);return!1}function ea(t,e,a,u){e.child=t===null?rA(e,null,a,u):Rd(e,t.child,a,u)}function ev(t,e,a,u,c){a=a.render;var f=e.ref;if("ref"in u){var y={};for(var g in u)g!=="ref"&&(y[g]=u[g])}else y=u;return Ho(e),u=Wp(t,e,a,y,f,c),g=Ns(),t!==null&&!oa?(Df(t,e,c),Oi(t,e,c)):(Se&&g&&rh(e),e.flags|=1,ea(t,e,u,c),e.child)}function uy(t,e,a,u,c){if(t===null){var f=a.type;return typeof f=="function"&&!Hp(f)&&f.defaultProps===void 0&&a.compare===null?(a=jo(f),e.tag=15,e.type=a,Wc(e,f),oy(t,e,a,u,c)):(t=Ds(a.type,null,u,e,e.mode,c),t.ref=e.ref,t.return=e,e.child=t)}if(f=t.child,!Vh(t,c)){var y=f.memoizedProps;if(a=a.compare,a=a!==null?a:jc,a(y,u)&&t.ref===e.ref)return Oi(t,e,c)}return e.flags|=1,t=nu(f,u),t.ref=e.ref,t.return=e,e.child=t}function oy(t,e,a,u,c){if(t!==null){var f=t.memoizedProps;if(jc(f,u)&&t.ref===e.ref&&e.type===t.type)if(oa=!1,e.pendingProps=u=f,Vh(t,c))(t.flags&131072)!==0&&(oa=!0);else return e.lanes=t.lanes,Oi(t,e,c)}return fy(t,e,a,u,c)}function sy(t,e,a,u){var c=u.children,f=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:Rg,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((e.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,t!==null){for(u=e.child=t.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;u=c&~f}else u=0,e.child=null;return cy(t,e,f,a,u)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Lc(e,f!==null?f.cachePool:null),f!==null?vh(e,f):to(e),bh(e);else return u=e.lanes=536870912,cy(t,e,f!==null?f.baseLanes|a:a,a,u)}else f!==null?(Lc(e,f.cachePool),vh(e,f),su(e),e.memoizedState=null):(t!==null&&Lc(e,null),to(e),su(e));return ea(t,e,c,a),e.child}function Qs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:Rg,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function cy(t,e,a,u,c){var f=Pu();return f=f===null?null:{parent:la._currentValue,pool:f},e.memoizedState={baseLanes:a,cachePool:f},t!==null&&Lc(e,null),to(e),bh(e),t!==null&&xi(t,e,u,!0),e.childLanes=c,null}function Vf(t,e){var a=e.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
140
|
-
- <Activity %s>
|
|
141
|
-
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),e=Lf({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ry(t,e,a){return Rd(e,t.child,null,a),t=Vf(e,e.pendingProps),t.flags|=2,Pn(e),e.memoizedState=null,t}function nv(t,e,a){var u=e.pendingProps,c=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Se){if(u.mode==="hidden")return t=Vf(e,u),e.lanes=536870912,Qs(null,t);if(Ci(e),(t=sn)?(a=qe(t,ju),a=a!==null&&a.data===Vd?a:null,a!==null&&(u={dehydrated:a,treeContext:J0(),retryLane:536870912,hydrationErrors:null},e.memoizedState=u,u=qp(a),u.return=e,e.child=u,Ia=e,sn=null)):a=null,a===null)throw za(e,t),Fl(e);return e.lanes=536870912,null}return Vf(e,u)}var f=t.memoizedState;if(f!==null){var y=f.dehydrated;if(Ci(e),c)if(e.flags&256)e.flags&=-257,e=ry(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if($0(),(a&536870912)!==0&&ar(e),oa||xi(t,e,a,!1),c=(a&t.childLanes)!==0,oa||c){if(u=Ie,u!==null&&(y=jt(u,a),y!==0&&y!==f.retryLane))throw f.retryLane=y,Ma(t,y),Zt(u,t,y),g1;lr(),e=ry(t,e,a)}else t=f.treeContext,sn=Cl(y.nextSibling),Ia=e,Se=!0,Br=null,fs=!1,Yi=null,ju=!1,t!==null&&K0(e,t),e=Vf(e,u),e.flags|=4096;return e}return f=t.child,u={mode:u.mode,children:u.children},(a&536870912)!==0&&(a&t.lanes)!==0&&ar(e),t=nu(f,u),t.ref=e.ref,e.child=t,t.return=e,t}function Hf(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==a)&&(e.flags|=4194816)}}function fy(t,e,a,u,c){if(a.prototype&&typeof a.prototype.render=="function"){var f=dt(a)||"Unknown";UA[f]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),UA[f]=!0)}return e.mode&fl&&vo.recordLegacyContextWarning(e,null),t===null&&(Wc(e,e.type),a.contextTypes&&(f=dt(a)||"Unknown",jA[f]||(jA[f]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",f)))),Ho(e),a=Wp(t,e,a,u,void 0,c),u=Ns(),t!==null&&!oa?(Df(t,e,c),Oi(t,e,c)):(Se&&u&&rh(e),e.flags|=1,ea(t,e,a,c),e.child)}function dy(t,e,a,u,c,f){return Ho(e),gc=-1,Kg=t!==null&&t.type!==e.type,e.updateQueue=null,a=Ef(e,u,a,c),Dn(t,e),u=Ns(),t!==null&&!oa?(Df(t,e,f),Oi(t,e,f)):(Se&&u&&rh(e),e.flags|=1,ea(t,e,a,f),e.child)}function Zs(t,e,a,u,c){switch(S(e)){case!1:var f=e.stateNode,y=new e.type(e.memoizedProps,f.context).state;f.updater.enqueueSetState(f,y,null);break;case!0:e.flags|=128,e.flags|=65536,f=Error("Simulated error coming from DevTools");var g=c&-c;if(e.lanes|=g,y=Ie,y===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");g=Uh(g),wh(g,y,e,Va(f,e)),Tf(e,g)}if(Ho(e),e.stateNode===null){if(y=_r,f=a.contextType,"contextType"in a&&f!==null&&(f===void 0||f.$$typeof!==Hi)&&!RA.has(a)&&(RA.add(a),g=f===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof f!="object"?" However, it is set to a "+typeof f+".":f.$$typeof===Sm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",dt(a)||"Component",g)),typeof f=="object"&&f!==null&&(y=Ne(f)),f=new a(u,y),e.mode&fl){Me(!0);try{f=new a(u,y)}finally{Me(!1)}}if(y=e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=p1,e.stateNode=f,f._reactInternals=e,f._reactInternalInstance=SA,typeof a.getDerivedStateFromProps=="function"&&y===null&&(y=dt(a)||"Component",AA.has(y)||(AA.add(y),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",y,f.state===null?"null":"undefined",y))),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"){var T=g=y=null;if(typeof f.componentWillMount=="function"&&f.componentWillMount.__suppressDeprecationWarning!==!0?y="componentWillMount":typeof f.UNSAFE_componentWillMount=="function"&&(y="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps.__suppressDeprecationWarning!==!0?g="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps=="function"&&(g="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate=="function"&&f.componentWillUpdate.__suppressDeprecationWarning!==!0?T="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate=="function"&&(T="UNSAFE_componentWillUpdate"),y!==null||g!==null||T!==null){f=dt(a)||"Component";var x=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";xA.has(f)||(xA.add(f),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
142
|
-
|
|
143
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
144
|
-
|
|
145
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
146
|
-
https://react.dev/link/unsafe-component-lifecycles`,f,x,y!==null?`
|
|
147
|
-
`+y:"",g!==null?`
|
|
148
|
-
`+g:"",T!==null?`
|
|
149
|
-
`+T:""))}}f=e.stateNode,y=dt(a)||"Component",f.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",y):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",y)),!f.getInitialState||f.getInitialState.isReactClassApproved||f.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",y),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",y),f.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",y),a.childContextTypes&&!CA.has(a)&&(CA.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",y)),a.contextTypes&&!zA.has(a)&&(zA.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",y)),typeof f.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",y),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",dt(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",y),typeof f.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",y),typeof f.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",y),typeof f.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",y),g=f.props!==u,f.props!==void 0&&g&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",y),f.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",y,y),typeof f.getSnapshotBeforeUpdate!="function"||typeof f.componentDidUpdate=="function"||EA.has(a)||(EA.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",dt(a))),typeof f.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof f.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",y),(g=f.state)&&(typeof g!="object"||Vn(g))&&console.error("%s.state: must be set to an object or null",y),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",y),f=e.stateNode,f.props=u,f.state=e.memoizedState,f.refs={},ge(e),y=a.contextType,f.context=typeof y=="object"&&y!==null?Ne(y):_r,f.state===u&&(y=dt(a)||"Component",DA.has(y)||(DA.add(y),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",y))),e.mode&fl&&vo.recordLegacyContextWarning(e,f),vo.recordUnsafeLifecycleWarnings(e,f),f.state=e.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Fc(e,a,y,u),f.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",pt(e)||"Component"),p1.enqueueReplaceState(f,f.state,null)),ou(e,u,f,c),Yc(),f.state=e.memoizedState),typeof f.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&go)!==Qt&&(e.flags|=134217728),f=!0}else if(t===null){f=e.stateNode;var V=e.memoizedProps;g=hu(a,V),f.props=g;var L=f.context;T=a.contextType,y=_r,typeof T=="object"&&T!==null&&(y=Ne(T)),x=a.getDerivedStateFromProps,T=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function",V=e.pendingProps!==V,T||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(V||L!==y)&&du(e,f,u,y),Yr=!1;var U=e.memoizedState;f.state=U,ou(e,u,f,c),Yc(),L=e.memoizedState,V||U!==L||Yr?(typeof x=="function"&&(Fc(e,a,x,u),L=e.memoizedState),(g=Yr||zh(e,a,g,u,U,L,y))?(T||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&go)!==Qt&&(e.flags|=134217728)):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&go)!==Qt&&(e.flags|=134217728),e.memoizedProps=u,e.memoizedState=L),f.props=u,f.state=L,f.context=y,f=g):(typeof f.componentDidMount=="function"&&(e.flags|=4194308),(e.mode&go)!==Qt&&(e.flags|=134217728),f=!1)}else{f=e.stateNode,iu(t,e),y=e.memoizedProps,T=hu(a,y),f.props=T,x=e.pendingProps,U=f.context,L=a.contextType,g=_r,typeof L=="object"&&L!==null&&(g=Ne(L)),V=a.getDerivedStateFromProps,(L=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==x||U!==g)&&du(e,f,u,g),Yr=!1,U=e.memoizedState,f.state=U,ou(e,u,f,c),Yc();var J=e.memoizedState;y!==x||U!==J||Yr||t!==null&&t.dependencies!==null&&Vc(t.dependencies)?(typeof V=="function"&&(Fc(e,a,V,u),J=e.memoizedState),(T=Yr||zh(e,a,T,u,U,J,g)||t!==null&&t.dependencies!==null&&Vc(t.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(u,J,g),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(u,J,g)),typeof f.componentDidUpdate=="function"&&(e.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(e.flags|=1024),e.memoizedProps=u,e.memoizedState=J),f.props=u,f.state=J,f.context=g,f=T):(typeof f.componentDidUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(e.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(e.flags|=1024),f=!1)}if(g=f,Hf(t,e),y=(e.flags&128)!==0,g||y){if(g=e.stateNode,hl(e),y&&typeof a.getDerivedStateFromError!="function")a=null,jl=-1;else if(a=F2(g),e.mode&fl){Me(!0);try{F2(g)}finally{Me(!1)}}e.flags|=1,t!==null&&y?(e.child=Rd(e,t.child,null,c),e.child=Rd(e,null,a,c)):ea(t,e,a,c),e.memoizedState=g.state,t=e.child}else t=Oi(t,e,c);return c=e.stateNode,f&&c.props!==u&&(Pm||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pt(e)||"a component"),Pm=!0),t}function hy(t,e,a,u){return Bo(),e.flags|=256,ea(t,e,a,u),e.child}function Wc(t,e){e&&e.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
150
|
-
%s.childContextTypes = ...`,e.displayName||e.name||"Component"),typeof e.getDerivedStateFromProps=="function"&&(t=dt(e)||"Unknown",NA[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),NA[t]=!0)),typeof e.contextType=="object"&&e.contextType!==null&&(e=dt(e)||"Unknown",wA[e]||(console.error("%s: Function components do not support contextType.",e),wA[e]=!0))}function Ic(t){return{baseLanes:t,cachePool:Jp()}}function jh(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ci),t}function Nh(t,e,a){var u,c=e.pendingProps;A(e)&&(e.flags|=128);var f=!1,y=(e.flags&128)!==0;if((u=y)||(u=t!==null&&t.memoizedState===null?!1:(Jn.current&Zg)!==0),u&&(f=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(Se){if(f?Ya(e):su(e),(t=sn)?(a=qe(t,ju),a=a!==null&&a.data!==Vd?a:null,a!==null&&(u={dehydrated:a,treeContext:J0(),retryLane:536870912,hydrationErrors:null},e.memoizedState=u,u=qp(a),u.return=e,e.child=u,Ia=e,sn=null)):a=null,a===null)throw za(e,t),Fl(e);return Jy(a)?e.lanes=32:e.lanes=536870912,null}var g=c.children;if(c=c.fallback,f){su(e);var T=e.mode;return g=Lf({mode:"hidden",children:g},T),c=Ms(c,T,a,null),g.return=e,c.return=e,g.sibling=c,e.child=g,c=e.child,c.memoizedState=Ic(a),c.childLanes=jh(t,u,a),e.memoizedState=v1,Qs(null,c)}return Ya(e),my(e,g)}var x=t.memoizedState;if(x!==null){var V=x.dehydrated;if(V!==null){if(y)e.flags&256?(Ya(e),e.flags&=-257,e=_h(t,e,a)):e.memoizedState!==null?(su(e),e.child=t.child,e.flags|=128,e=null):(su(e),g=c.fallback,T=e.mode,c=Lf({mode:"visible",children:c.children},T),g=Ms(g,T,a,null),g.flags|=2,c.return=e,g.return=e,c.sibling=g,e.child=c,Rd(e,t.child,null,a),c=e.child,c.memoizedState=Ic(a),c.childLanes=jh(t,u,a),e.memoizedState=v1,e=Qs(null,c));else if(Ya(e),$0(),(a&536870912)!==0&&ar(e),Jy(V)){if(u=V.nextSibling&&V.nextSibling.dataset,u){g=u.dgst;var L=u.msg;T=u.stck;var U=u.cstck}f=L,u=g,c=T,V=U,g=f,T=V,g=Error(g||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),g.stack=c||"",g.digest=u,u=T===void 0?null:T,c={value:g,source:null,stack:u},typeof u=="string"&&WS.set(g,c),pf(c),e=_h(t,e,a)}else if(oa||xi(t,e,a,!1),u=(a&t.childLanes)!==0,oa||u){if(u=Ie,u!==null&&(c=jt(u,a),c!==0&&c!==x.retryLane))throw x.retryLane=c,Ma(t,c),Zt(u,t,c),g1;ad(V)||lr(),e=_h(t,e,a)}else ad(V)?(e.flags|=192,e.child=t.child,e=null):(t=x.treeContext,sn=Cl(V.nextSibling),Ia=e,Se=!0,Br=null,fs=!1,Yi=null,ju=!1,t!==null&&K0(e,t),e=my(e,c.children),e.flags|=4096);return e}}return f?(su(e),g=c.fallback,T=e.mode,U=t.child,V=U.sibling,c=nu(U,{mode:"hidden",children:c.children}),c.subtreeFlags=U.subtreeFlags&65011712,V!==null?g=nu(V,g):(g=Ms(g,T,a,null),g.flags|=2),g.return=e,c.return=e,c.sibling=g,e.child=c,Qs(null,c),c=e.child,g=t.child.memoizedState,g===null?g=Ic(a):(T=g.cachePool,T!==null?(U=la._currentValue,T=T.parent!==U?{parent:U,pool:U}:T):T=Jp(),g={baseLanes:g.baseLanes|a,cachePool:T}),c.memoizedState=g,c.childLanes=jh(t,u,a),e.memoizedState=v1,Qs(t.child,c)):(x!==null&&(a&62914560)===a&&(a&t.lanes)!==0&&ar(e),Ya(e),a=t.child,t=a.sibling,a=nu(a,{mode:"visible",children:c.children}),a.return=e,a.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=a,e.memoizedState=null,a)}function my(t,e){return e=Lf({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Lf(t,e){return t=N(22,t,null,e),t.lanes=0,t}function _h(t,e,a){return Rd(e,t.child,null,a),t=my(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function py(t,e,a){t.lanes|=e;var u=t.alternate;u!==null&&(u.lanes|=e),dh(t.return,e,a)}function Bh(t,e,a,u,c,f){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:c,treeForkCount:f}:(y.isBackwards=e,y.rendering=null,y.renderingStartTime=0,y.last=u,y.tail=a,y.tailMode=c,y.treeForkCount=f)}function yy(t,e,a){var u=e.pendingProps,c=u.revealOrder,f=u.tail,y=u.children,g=Jn.current;if((u=(g&Zg)!==0)?(g=g&km|Zg,e.flags|=128):g&=km,Jt(Jn,g,e),g=c??"null",c!=="forwards"&&c!=="unstable_legacy-backwards"&&c!=="together"&&c!=="independent"&&!_A[g])if(_A[g]=!0,c==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(c==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof c=="string")switch(c.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',c,c.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c);g=f??"null",Db[g]||(f==null?(c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&(Db[g]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):f!=="visible"&&f!=="collapsed"&&f!=="hidden"?(Db[g]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',f)):c!=="forwards"&&c!=="backwards"&&c!=="unstable_legacy-backwards"&&(Db[g]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',f)));t:if((c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&y!==void 0&&y!==null&&y!==!1)if(Vn(y)){for(g=0;g<y.length;g++)if(!$e(y[g],g))break t}else if(g=Ct(y),typeof g=="function"){if(g=g.call(y))for(var T=g.next(),x=0;!T.done;T=g.next()){if(!$e(T.value,x))break t;x++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',c);if(ea(t,e,y,a),Se?(_o(),y=Og):y=0,!u&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&py(t,a,e);else if(t.tag===19)py(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(a=e.child,c=null;a!==null;)t=a.alternate,t!==null&&js(t)===null&&(c=a),a=a.sibling;a=c,a===null?(c=e.child,e.child=null):(c=a.sibling,a.sibling=null),Bh(e,!1,c,a,f,y);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=e.child,e.child=null;c!==null;){if(t=c.alternate,t!==null&&js(t)===null){e.child=c;break}t=c.sibling,c.sibling=a,a=c,c=t}Bh(e,!0,a,null,f,y);break;case"together":Bh(e,!1,null,null,void 0,y);break;default:e.memoizedState=null}return e.child}function Oi(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),jl=-1,Qr|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(xi(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error("Resuming work not yet implemented.");if(e.child!==null){for(t=e.child,a=nu(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=nu(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Vh(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Vc(t)))}function av(t,e,a){switch(e.tag){case 3:je(e,e.stateNode.containerInfo),Wl(e,la,t.memoizedState.cache),Bo();break;case 27:case 5:ct(e);break;case 4:je(e,e.stateNode.containerInfo);break;case 10:Wl(e,e.type,e.memoizedProps.value);break;case 12:(a&e.childLanes)!==0&&(e.flags|=4),e.flags|=2048;var u=e.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ci(e),null;break;case 13:if(u=e.memoizedState,u!==null)return u.dehydrated!==null?(Ya(e),e.flags|=128,null):(a&e.child.childLanes)!==0?Nh(t,e,a):(Ya(e),t=Oi(t,e,a),t!==null?t.sibling:null);Ya(e);break;case 19:var c=(t.flags&128)!==0;if(u=(a&e.childLanes)!==0,u||(xi(t,e,a,!1),u=(a&e.childLanes)!==0),c){if(u)return yy(t,e,a);e.flags|=128}if(c=e.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Jt(Jn,Jn.current,e),u)break;return null;case 22:return e.lanes=0,sy(t,e,a,e.pendingProps);case 24:Wl(e,la,t.memoizedState.cache)}return Oi(t,e,a)}function qf(t,e,a){if(e._debugNeedsRemount&&t!==null){a=Ds(e.type,e.key,e.pendingProps,e._debugOwner||null,e.mode,e.lanes),a._debugStack=e._debugStack,a._debugTask=e._debugTask;var u=e.return;if(u===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,e.alternate=null,a.index=e.index,a.sibling=e.sibling,a.return=e.return,a.ref=e.ref,a._debugInfo=e._debugInfo,e===u.child)u.child=a;else{var c=u.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==e;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=a}return e=u.deletions,e===null?(u.deletions=[t],u.flags|=16):e.push(t),a.flags|=2,a}if(t!==null)if(t.memoizedProps!==e.pendingProps||e.type!==t.type)oa=!0;else{if(!Vh(t,a)&&(e.flags&128)===0)return oa=!1,av(t,e,a);oa=(t.flags&131072)!==0}else oa=!1,(u=Se)&&(_o(),u=(e.flags&1048576)!==0),u&&(u=e.index,_o(),Yp(e,Og,u));switch(e.lanes=0,e.tag){case 16:t:if(u=e.pendingProps,t=bl(e.elementType),e.type=t,typeof t=="function")Hp(t)?(u=hu(t,u),e.tag=1,e.type=t=jo(t),e=Zs(null,e,t,u,a)):(e.tag=0,Wc(e,t),e.type=t=jo(t),e=fy(null,e,t,u,a));else{if(t!=null){if(c=t.$$typeof,c===Tr){e.tag=11,e.type=t=sh(t),e=ev(null,e,t,u,a);break t}else if(c===hd){e.tag=14,e=uy(null,e,t,u,a);break t}}throw e="",t!==null&&typeof t=="object"&&t.$$typeof===Ra&&(e=" Did you wrap a component in React.lazy() more than once?"),a=dt(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+e)}return e;case 0:return fy(t,e,e.type,e.pendingProps,a);case 1:return u=e.type,c=hu(u,e.pendingProps),Zs(t,e,u,c,a);case 3:t:{if(je(e,e.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");u=e.pendingProps;var f=e.memoizedState;c=f.element,iu(t,e),ou(e,u,null,a);var y=e.memoizedState;if(u=y.cache,Wl(e,la,u),u!==f.cache&&Fu(e,[la],a,!0),Yc(),u=y.element,f.isDehydrated)if(f={element:u,isDehydrated:!1,cache:y.cache},e.updateQueue.baseState=f,e.memoizedState=f,e.flags&256){e=hy(t,e,u,a);break t}else if(u!==c){c=Va(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),e),pf(c),e=hy(t,e,u,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(sn=Cl(t.firstChild),Ia=e,Se=!0,Br=null,fs=!1,Yi=null,ju=!0,a=rA(e,null,u,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Bo(),u===c){e=Oi(t,e,a);break t}ea(t,e,u,a)}e=e.child}return e;case 26:return Hf(t,e),t===null?(a=Fy(e.type,null,e.pendingProps,null))?e.memoizedState=a:Se||(a=e.type,t=e.pendingProps,u=Je(Rl.current),u=ed(u).createElement(a),u[un]=e,u[Wa]=t,ln(u,a,t),Ke(u),e.stateNode=u):e.memoizedState=Fy(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ct(e),t===null&&Se&&(u=Je(Rl.current),c=K(),u=e.stateNode=ho(e.type,e.pendingProps,u,c,!1),fs||(c=sl(u,e.type,e.pendingProps,c),c!==null&&(zs(e,0).serverProps=c)),Ia=e,ju=!0,c=sn,ls(e.type)?(Y1=c,sn=Cl(u.firstChild)):sn=c),ea(t,e,e.pendingProps.children,a),Hf(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Se&&(f=K(),u=En(e.type,f.ancestorInfo),c=sn,(y=!c)||(y=jv(c,e.type,e.pendingProps,ju),y!==null?(e.stateNode=y,fs||(f=sl(y,e.type,e.pendingProps,f),f!==null&&(zs(e,0).serverProps=f)),Ia=e,sn=Cl(y.firstChild),ju=!1,f=!0):f=!1,y=!f),y&&(u&&za(e,c),Fl(e))),ct(e),c=e.type,f=e.pendingProps,y=t!==null?t.memoizedProps:null,u=f.children,dr(c,f)?u=null:y!==null&&dr(c,y)&&(e.flags|=32),e.memoizedState!==null&&(c=Wp(t,e,xf,null,null,a),c0._currentValue=c),Hf(t,e),ea(t,e,u,a),e.child;case 6:return t===null&&Se&&(a=e.pendingProps,t=K(),u=t.ancestorInfo.current,a=u!=null?yn(a,u.tag,t.ancestorInfo.implicitRootScope):!0,t=sn,(u=!t)||(u=Nv(t,e.pendingProps,ju),u!==null?(e.stateNode=u,Ia=e,sn=null,u=!0):u=!1,u=!u),u&&(a&&za(e,t),Fl(e))),null;case 13:return Nh(t,e,a);case 4:return je(e,e.stateNode.containerInfo),u=e.pendingProps,t===null?e.child=Rd(e,null,u,a):ea(t,e,u,a),e.child;case 11:return ev(t,e,e.type,e.pendingProps,a);case 7:return ea(t,e,e.pendingProps,a),e.child;case 8:return ea(t,e,e.pendingProps.children,a),e.child;case 12:return e.flags|=4,e.flags|=2048,u=e.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,ea(t,e,e.pendingProps.children,a),e.child;case 10:return u=e.type,c=e.pendingProps,f=c.value,"value"in c||BA||(BA=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Wl(e,u,f),ea(t,e,c.children,a),e.child;case 9:return c=e.type._context,u=e.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ho(e),c=Ne(c),u=i1(u,c,void 0),e.flags|=1,ea(t,e,u,a),e.child;case 14:return uy(t,e,e.type,e.pendingProps,a);case 15:return oy(t,e,e.type,e.pendingProps,a);case 19:return yy(t,e,a);case 31:return nv(t,e,a);case 22:return sy(t,e,a,e.pendingProps);case 24:return Ho(e),u=Ne(la),t===null?(c=Pu(),c===null&&(c=Ie,f=hh(),c.pooledCache=f,Rs(f),f!==null&&(c.pooledCacheLanes|=a),c=f),e.memoizedState={parent:u,cache:c},ge(e),Wl(e,la,c)):((t.lanes&a)!==0&&(iu(t,e),ou(e,null,null,a),Yc()),c=t.memoizedState,f=e.memoizedState,c.parent!==u?(c={parent:u,cache:u},e.memoizedState=c,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=c),Wl(e,la,u)):(u=f.cache,Wl(e,la,u),u!==c.cache&&Fu(e,[la],a,!0))),ea(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error("Unknown unit of work tag ("+e.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mu(t){t.flags|=4}function Hh(t,e,a,u,c){if((e=(t.mode&w3)!==Qt)&&(e=!1),e){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(Ny())t.flags|=8192;else throw Cd=bb,o1}else t.flags&=-16777217}function lv(t,e){if(e.type!=="stylesheet"||(e.state.loading&Hu)!==qd)t.flags&=-16777217;else if(t.flags|=16777216,!pe(e))if(Ny())t.flags|=8192;else throw Cd=bb,o1}function Pc(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Mo():536870912,t.lanes|=e,Nd|=e)}function tr(t,e){if(!Se)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function Ye(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,u=0;if(e)if((t.mode&oe)!==Qt){for(var c=t.selfBaseDuration,f=t.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,c+=f.treeBaseDuration,f=f.sibling;t.treeBaseDuration=c}else for(c=t.child;c!==null;)a|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=t,c=c.sibling;else if((t.mode&oe)!==Qt){c=t.actualDuration,f=t.selfBaseDuration;for(var y=t.child;y!==null;)a|=y.lanes|y.childLanes,u|=y.subtreeFlags,u|=y.flags,c+=y.actualDuration,f+=y.treeBaseDuration,y=y.sibling;t.actualDuration=c,t.treeBaseDuration=f}else for(c=t.child;c!==null;)a|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=u,t.childLanes=a,e}function gy(t,e,a){var u=e.pendingProps;switch(fh(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(e),null;case 1:return Ye(e),null;case 3:return a=e.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),e.memoizedState.cache!==u&&(e.flags|=2048),Ei(la,e),q(e),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Cs(e)?(Vo(),mu(e)):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,mf())),Ye(e),null;case 26:var c=e.type,f=e.memoizedState;return t===null?(mu(e),f!==null?(Ye(e),lv(e,f)):(Ye(e),Hh(e,c,null,u,a))):f?f!==t.memoizedState?(mu(e),Ye(e),lv(e,f)):(Ye(e),e.flags&=-16777217):(t=t.memoizedProps,t!==u&&mu(e),Ye(e),Hh(e,c,t,u,a)),null;case 27:if(Mt(e),a=Je(Rl.current),c=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&mu(e);else{if(!u){if(e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ye(e),null}t=K(),Cs(e)?Gp(e):(t=ho(c,u,a,t,!0),e.stateNode=t,mu(e))}return Ye(e),null;case 5:if(Mt(e),c=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&mu(e);else{if(!u){if(e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ye(e),null}var y=K();if(Cs(e))Gp(e);else{switch(f=Je(Rl.current),En(c,y.ancestorInfo),y=y.context,f=ed(f),y){case op:f=f.createElementNS(le,c);break;case Zb:f=f.createElementNS(Pt,c);break;default:switch(c){case"svg":f=f.createElementNS(le,c);break;case"math":f=f.createElementNS(Pt,c);break;case"script":f=f.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof u.is=="string"?f.createElement("select",{is:u.is}):f.createElement("select"),u.multiple?f.multiple=!0:u.size&&(f.size=u.size);break;default:f=typeof u.is=="string"?f.createElement(c,{is:u.is}):f.createElement(c),c.indexOf("-")===-1&&(c!==c.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),Object.prototype.toString.call(f)!=="[object HTMLUnknownElement]"||Ol.call(uE,c)||(uE[c]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",c)))}}f[un]=e,f[Wa]=u;t:for(y=e.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break t;for(;y.sibling===null;){if(y.return===null||y.return===e)break t;y=y.return}y.sibling.return=y.return,y=y.sibling}e.stateNode=f;t:switch(ln(f,c,u),c){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&mu(e)}}return Ye(e),Hh(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==u&&mu(e);else{if(typeof u!="string"&&e.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=Je(Rl.current),a=K(),Cs(e)){if(t=e.stateNode,a=e.memoizedProps,c=!fs,u=null,f=Ia,f!==null)switch(f.tag){case 3:c&&(c=Vv(t,a,u),c!==null&&(zs(e,0).serverProps=c));break;case 27:case 5:u=f.memoizedProps,c&&(c=Vv(t,a,u),c!==null&&(zs(e,0).serverProps=c))}t[un]=e,t=!!(t.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Qy(t.nodeValue,a)),t||Fl(e,!0)}else c=a.ancestorInfo.current,c!=null&&yn(u,c.tag,a.ancestorInfo.implicitRootScope),t=ed(t).createTextNode(u),t[un]=e,e.stateNode=t}return Ye(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(u=Cs(e),a!==null){if(t===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");t[un]=e,Ye(e),(e.mode&oe)!==Qt&&a!==null&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration))}else Vo(),Bo(),(e.flags&128)===0&&(a=e.memoizedState=null),e.flags|=4,Ye(e),(e.mode&oe)!==Qt&&a!==null&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration));t=!1}else a=mf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Pn(e),e):(Pn(e),null);if((e.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ye(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=u,f=Cs(e),c!==null&&c.dehydrated!==null){if(t===null){if(!f)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(f=e.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");f[un]=e,Ye(e),(e.mode&oe)!==Qt&&c!==null&&(c=e.child,c!==null&&(e.treeBaseDuration-=c.treeBaseDuration))}else Vo(),Bo(),(e.flags&128)===0&&(c=e.memoizedState=null),e.flags|=4,Ye(e),(e.mode&oe)!==Qt&&c!==null&&(c=e.child,c!==null&&(e.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=mf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return e.flags&256?(Pn(e),e):(Pn(e),null)}return Pn(e),(e.flags&128)!==0?(e.lanes=a,(e.mode&oe)!==Qt&&Us(e),e):(a=u!==null,t=t!==null&&t.memoizedState!==null,a&&(u=e.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool),f=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(f=u.memoizedState.cachePool.pool),f!==c&&(u.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Pc(e,e.updateQueue),Ye(e),(e.mode&oe)!==Qt&&a&&(t=e.child,t!==null&&(e.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return q(e),t===null&&ns(e.stateNode.containerInfo),Ye(e),null;case 10:return Ei(e.type,e),Ye(e),null;case 19:if(Dt(Jn,e),u=e.memoizedState,u===null)return Ye(e),null;if(c=(e.flags&128)!==0,f=u.rendering,f===null)if(c)tr(u,!1);else{if(Tn!==bc||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(f=js(t),f!==null){for(e.flags|=128,tr(u,!1),t=f.updateQueue,e.updateQueue=t,Pc(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Lp(a,t),a=a.sibling;return Jt(Jn,Jn.current&km|Zg,e),Se&&Ai(e,u.treeForkCount),e.child}t=t.sibling}u.tail!==null&&aa()>wb&&(e.flags|=128,c=!0,tr(u,!1),e.lanes=4194304)}else{if(!c)if(t=js(f),t!==null){if(e.flags|=128,c=!0,t=t.updateQueue,e.updateQueue=t,Pc(e,t),tr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Se)return Ye(e),null}else 2*aa()-u.renderingStartTime>wb&&a!==536870912&&(e.flags|=128,c=!0,tr(u,!1),e.lanes=4194304);u.isBackwards?(f.sibling=e.child,e.child=f):(t=u.last,t!==null?t.sibling=f:e.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=aa(),t.sibling=null,a=Jn.current,a=c?a&km|Zg:a&km,Jt(Jn,a,e),Se&&Ai(e,u.treeForkCount),t):(Ye(e),null);case 22:case 23:return Pn(e),zi(e),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(a&536870912)!==0&&(e.flags&128)===0&&(Ye(e),e.subtreeFlags&6&&(e.flags|=8192)):Ye(e),a=e.updateQueue,a!==null&&Pc(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==a&&(e.flags|=2048),t!==null&&Dt(Md,e),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ei(la,e),Ye(e),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+e.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function iv(t,e){switch(fh(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&oe)!==Qt&&Us(e),e):null;case 3:return Ei(la,e),q(e),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mt(e),null;case 31:if(e.memoizedState!==null){if(Pn(e),e.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&oe)!==Qt&&Us(e),e):null;case 13:if(Pn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&oe)!==Qt&&Us(e),e):null;case 19:return Dt(Jn,e),null;case 4:return q(e),null;case 10:return Ei(e.type,e),null;case 22:case 23:return Pn(e),zi(e),t!==null&&Dt(Md,e),t=e.flags,t&65536?(e.flags=t&-65537|128,(e.mode&oe)!==Qt&&Us(e),e):null;case 24:return Ei(la,e),null;case 25:return null;default:return null}}function vy(t,e){switch(fh(e),e.tag){case 3:Ei(la,e),q(e);break;case 26:case 27:case 5:Mt(e);break;case 4:q(e);break;case 31:e.memoizedState!==null&&Pn(e);break;case 13:Pn(e);break;case 19:Dt(Jn,e);break;case 10:Ei(e.type,e);break;case 22:case 23:Pn(e),zi(e),t!==null&&Dt(Md,e);break;case 24:Ei(la,e)}}function pu(t){return(t.mode&oe)!==Qt}function uv(t,e){pu(t)?(gn(),oo(e,t),La()):oo(e,t)}function Lh(t,e,a){pu(t)?(gn(),Fo(a,t,e),La()):Fo(a,t,e)}function oo(t,e){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&t)===t&&(u=void 0,(t&Nl)!==Tb&&(lp=!0),u=mt(e,H3,a),(t&Nl)!==Tb&&(lp=!1),u!==void 0&&typeof u!="function")){var f=void 0;f=(a.tag&Xi)!==0?"useLayoutEffect":(a.tag&Nl)!==0?"useInsertionEffect":"useEffect";var y=void 0;y=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
|
|
151
|
-
|
|
152
|
-
It looks like you wrote `+f+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
153
|
-
|
|
154
|
-
`+f+`(() => {
|
|
155
|
-
async function fetchData() {
|
|
156
|
-
// You can await here
|
|
157
|
-
const response = await MyAPI.getData(someId);
|
|
158
|
-
// ...
|
|
159
|
-
}
|
|
160
|
-
fetchData();
|
|
161
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
162
|
-
|
|
163
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,mt(e,function(g,T){console.error("%s must not return anything besides a function, which is used for clean-up.%s",g,T)},f,y)}a=a.next}while(a!==c)}}catch(g){ae(e,e.return,g)}}function Fo(t,e,a){try{var u=e.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var f=c.next;u=f;do{if((u.tag&t)===t){var y=u.inst,g=y.destroy;g!==void 0&&(y.destroy=void 0,(t&Nl)!==Tb&&(lp=!0),c=e,mt(c,L3,c,a,g),(t&Nl)!==Tb&&(lp=!1))}u=u.next}while(u!==f)}}catch(T){ae(e,e.return,T)}}function Yf(t,e){pu(t)?(gn(),oo(e,t),La()):oo(e,t)}function qh(t,e,a){pu(t)?(gn(),Fo(a,t,e),La()):Fo(a,t,e)}function by(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||Pm||(a.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",pt(t)||"instance"),a.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",pt(t)||"instance"));try{mt(t,Gc,e,a)}catch(u){ae(t,t.return,u)}}}function Gf(t,e,a){return t.getSnapshotBeforeUpdate(e,a)}function ov(t,e){var a=e.memoizedProps,u=e.memoizedState;e=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||Pm||(e.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",pt(t)||"instance"),e.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",pt(t)||"instance"));try{var c=hu(t.type,a),f=mt(t,Gf,e,c,u);a=VA,f!==void 0||a.has(t.type)||(a.add(t.type),mt(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",pt(t))})),e.__reactInternalSnapshotBeforeUpdate=f}catch(y){ae(t,t.return,y)}}function Yh(t,e,a){a.props=hu(t.type,t.memoizedProps),a.state=t.memoizedState,pu(t)?(gn(),mt(t,nA,t,e,a),La()):mt(t,nA,t,e,a)}function sv(t){var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}if(typeof e=="function")if(pu(t))try{gn(),t.refCleanup=e(a)}finally{La()}else t.refCleanup=e(a);else typeof e=="string"?console.error("String refs are no longer supported."):e.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",pt(t)),e.current=a}}function Js(t,e){try{mt(t,sv,t)}catch(a){ae(t,e,a)}}function ni(t,e){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{if(pu(t))try{gn(),mt(t,u)}finally{La(t)}else mt(t,u)}catch(c){ae(t,e,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{if(pu(t))try{gn(),mt(t,a,null)}finally{La(t)}else mt(t,a,null)}catch(c){ae(t,e,c)}else a.current=null}function Sy(t,e,a,u){var c=t.memoizedProps,f=c.id,y=c.onCommit;c=c.onRender,e=e===null?"mount":"update",pb&&(e="nested-update"),typeof c=="function"&&c(f,e,t.actualDuration,t.treeBaseDuration,t.actualStartTime,a),typeof y=="function"&&y(f,e,u,a)}function cv(t,e,a,u){var c=t.memoizedProps;t=c.id,c=c.onPostCommit,e=e===null?"mount":"update",pb&&(e="nested-update"),typeof c=="function"&&c(t,e,u,a)}function Wo(t){var e=t.type,a=t.memoizedProps,u=t.stateNode;try{mt(t,Av,u,e,a,t)}catch(c){ae(t,t.return,c)}}function Gh(t,e,a){try{mt(t,sm,t.stateNode,t.type,a,e,t)}catch(u){ae(t,t.return,u)}}function Ty(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ls(t.type)||t.tag===4}function Xh(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ty(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ls(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function er(t,e,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?(xv(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e)):(xv(a),e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=$l));else if(u!==4&&(u===27&&ls(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(er(t,e,a),t=t.sibling;t!==null;)er(t,e,a),t=t.sibling}function Xf(t,e,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(u!==4&&(u===27&&ls(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Xf(t,e,a),t=t.sibling;t!==null;)Xf(t,e,a),t=t.sibling}function Ay(t){for(var e,a=t.return;a!==null;){if(Ty(a)){e=a;break}a=a.return}if(e==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(e.tag){case 27:e=e.stateNode,a=Xh(t),Xf(t,a,e);break;case 5:a=e.stateNode,e.flags&32&&(cm(a),e.flags&=-33),e=Xh(t),Xf(t,e,a);break;case 3:case 4:e=e.stateNode.containerInfo,a=Xh(t),er(t,a,e);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Ey(t){var e=t.stateNode,a=t.memoizedProps;try{mt(t,Eu,t.type,a,e,t)}catch(u){ae(t,t.return,u)}}function xy(t,e){return e.tag===31?(e=e.memoizedState,t.memoizedState!==null&&e===null):e.tag===13?(t=t.memoizedState,e=e.memoizedState,t!==null&&t.dehydrated!==null&&(e===null||e.dehydrated===null)):e.tag===3?t.memoizedState.isDehydrated&&(e.flags&256)===0:!1}function CS(t,e){if(t=t.containerInfo,H1=kb,t=lh(t),Up(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break t}var y=0,g=-1,T=-1,x=0,V=0,L=t,U=null;e:for(;;){for(var J;L!==a||c!==0&&L.nodeType!==3||(g=y+c),L!==f||u!==0&&L.nodeType!==3||(T=y+u),L.nodeType===3&&(y+=L.nodeValue.length),(J=L.firstChild)!==null;)U=L,L=J;for(;;){if(L===t)break e;if(U===a&&++x===c&&(g=y),U===f&&++V===u&&(T=y),(J=L.nextSibling)!==null)break;L=U,U=L.parentNode}L=J}a=g===-1||T===-1?null:{start:g,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(L1={focusedElem:t,selectionRange:a},kb=!1,wa=e;wa!==null;)if(e=wa,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,wa=t;else for(;wa!==null;){switch(t=e=wa,a=t.alternate,c=t.flags,t.tag){case 0:if((c&4)!==0&&(t=t.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)c=t[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:(c&1024)!==0&&a!==null&&ov(t,a);break;case 3:if((c&1024)!==0){if(t=t.stateNode.containerInfo,a=t.nodeType,a===9)mr(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(t=e.sibling,t!==null){t.return=e.return,wa=t;break}wa=e.return}}function Qh(t,e,a){var u=nn(),c=Il(),f=gl(),y=Pl(),g=a.flags;switch(a.tag){case 0:case 11:case 15:xl(t,a),g&4&&uv(a,Xi|Bu);break;case 1:if(xl(t,a),g&4)if(t=a.stateNode,e===null)a.type.defaultProps||"ref"in a.memoizedProps||Pm||(t.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",pt(a)||"instance"),t.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",pt(a)||"instance")),pu(a)?(gn(),mt(a,u1,a,t),La()):mt(a,u1,a,t);else{var T=hu(a.type,e.memoizedProps);e=e.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Pm||(t.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",pt(a)||"instance"),t.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",pt(a)||"instance")),pu(a)?(gn(),mt(a,P2,a,t,T,e,t.__reactInternalSnapshotBeforeUpdate),La()):mt(a,P2,a,t,T,e,t.__reactInternalSnapshotBeforeUpdate)}g&64&&by(a),g&512&&Js(a,a.return);break;case 3:if(e=lu(),xl(t,a),g&64&&(g=a.updateQueue,g!==null)){if(T=null,a.child!==null)switch(a.child.tag){case 27:case 5:T=a.child.stateNode;break;case 1:T=a.child.stateNode}try{mt(a,Gc,g,T)}catch(V){ae(a,a.return,V)}}t.effectDuration+=Hc(e);break;case 27:e===null&&g&4&&Ey(a);case 26:case 5:if(xl(t,a),e===null){if(g&4)Wo(a);else if(g&64){t=a.type,e=a.memoizedProps,T=a.stateNode;try{mt(a,Ev,T,t,e,a)}catch(V){ae(a,a.return,V)}}}g&512&&Js(a,a.return);break;case 12:if(g&4){g=lu(),xl(t,a),t=a.stateNode,t.effectDuration+=Ha(g);try{mt(a,Sy,a,e,Vr,t.effectDuration)}catch(V){ae(a,a.return,V)}}else xl(t,a);break;case 31:xl(t,a),g&4&&My(t,a);break;case 13:xl(t,a),g&4&&zy(t,a),g&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(g=co.bind(null,a),_v(t,g))));break;case 22:if(g=a.memoizedState!==null||vc,!g){e=e!==null&&e.memoizedState!==null||sa,T=vc;var x=sa;vc=g,(sa=e)&&!x?(Ui(t,a,(a.subtreeFlags&8772)!==0),(a.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&ih(a,Vt,Yt)):xl(t,a),vc=T,sa=x}break;case 30:break;default:xl(t,a)}(a.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&((Rn||.05<Sn)&&Ti(a,Vt,Yt,Sn,mn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Yt-Vt&&(xy(a.return.alternate,a.return)||kl(a,Vt,Yt,"Mount"))),Wn(u),yl(c),mn=f,Rn=y}function zn(t){var e=t.alternate;e!==null&&(t.alternate=null,zn(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&el(e)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function tn(t,e,a){for(a=a.child;a!==null;)Dy(t,e,a),a=a.sibling}function Dy(t,e,a){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(ic,a)}catch(x){Du||(Du=!0,console.error("React instrumentation encountered an error: %o",x))}var u=nn(),c=Il(),f=gl(),y=Pl();switch(a.tag){case 26:sa||ni(a,e),tn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(t=a.stateNode,t.parentNode.removeChild(t));break;case 27:sa||ni(a,e);var g=ca,T=oi;ls(a.type)&&(ca=a.stateNode,oi=!1),tn(t,e,a),mt(a,mo,a.stateNode),ca=g,oi=T;break;case 5:sa||ni(a,e);case 6:if(g=ca,T=oi,ca=null,tn(t,e,a),ca=g,oi=T,ca!==null)if(oi)try{mt(a,Mv,ca,a.stateNode)}catch(x){ae(a,e,x)}else try{mt(a,Dv,ca,a.stateNode)}catch(x){ae(a,e,x)}break;case 18:ca!==null&&(oi?(t=ca,Ws(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ec(t)):Ws(ca,a.stateNode));break;case 4:g=ca,T=oi,ca=a.stateNode.containerInfo,oi=!0,tn(t,e,a),ca=g,oi=T;break;case 0:case 11:case 14:case 15:Fo(Nl,a,e),sa||Lh(a,e,Xi),tn(t,e,a);break;case 1:sa||(ni(a,e),g=a.stateNode,typeof g.componentWillUnmount=="function"&&Yh(a,e,g)),tn(t,e,a);break;case 21:tn(t,e,a);break;case 22:sa=(g=sa)||a.memoizedState!==null,tn(t,e,a),sa=g;break;default:tn(t,e,a)}(a.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(a,Vt,Yt,Sn,mn),Wn(u),yl(c),mn=f,Rn=y}function My(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{mt(e,rm,t)}catch(a){ae(e,e.return,a)}}}function zy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{mt(e,$y,t)}catch(a){ae(e,e.return,a)}}function rv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new HA),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new HA),e;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function Io(t,e){var a=rv(t);e.forEach(function(u){if(!a.has(u)){if(a.add(u),Mu)if(tp!==null&&ep!==null)or(ep,tp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var c=ks.bind(null,t,u);u.then(c,c)}})}function Qa(t,e){var a=e.deletions;if(a!==null)for(var u=0;u<a.length;u++){var c=t,f=e,y=a[u],g=nn(),T=f;t:for(;T!==null;){switch(T.tag){case 27:if(ls(T.type)){ca=T.stateNode,oi=!1;break t}break;case 5:ca=T.stateNode,oi=!1;break t;case 3:case 4:ca=T.stateNode.containerInfo,oi=!0;break t}T=T.return}if(ca===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Dy(c,f,y),ca=null,oi=!1,(y.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&kl(y,Vt,Yt,"Unmount"),Wn(g),c=y,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Qf(e,t),e=e.sibling}function Qf(t,e){var a=nn(),u=Il(),c=gl(),f=Pl(),y=t.alternate,g=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Qa(e,t),Za(t),g&4&&(Fo(Nl|Bu,t,t.return),oo(Nl|Bu,t),Lh(t,t.return,Xi|Bu));break;case 1:if(Qa(e,t),Za(t),g&512&&(sa||y===null||ni(y,y.return)),g&64&&vc&&(g=t.updateQueue,g!==null&&(y=g.callbacks,y!==null))){var T=g.shared.hiddenCallbacks;g.shared.hiddenCallbacks=T===null?y:T.concat(y)}break;case 26:if(T=So,Qa(e,t),Za(t),g&512&&(sa||y===null||ni(y,y.return)),g&4){var x=y!==null?y.memoizedState:null;if(g=t.memoizedState,y===null)if(g===null)if(t.stateNode===null){t:{g=t.type,y=t.memoizedProps,T=T.ownerDocument||T;e:switch(g){case"title":x=T.getElementsByTagName("title")[0],(!x||x[Rr]||x[un]||x.namespaceURI===le||x.hasAttribute("itemprop"))&&(x=T.createElement(g),T.head.insertBefore(x,T.querySelector("head > title"))),ln(x,g,y),x[un]=t,Ke(x),g=x;break t;case"link":var V=gr("link","href",T).get(g+(y.href||""));if(V){for(var L=0;L<V.length;L++)if(x=V[L],x.getAttribute("href")===(y.href==null||y.href===""?null:y.href)&&x.getAttribute("rel")===(y.rel==null?null:y.rel)&&x.getAttribute("title")===(y.title==null?null:y.title)&&x.getAttribute("crossorigin")===(y.crossOrigin==null?null:y.crossOrigin)){V.splice(L,1);break e}}x=T.createElement(g),ln(x,g,y),T.head.appendChild(x);break;case"meta":if(V=gr("meta","content",T).get(g+(y.content||""))){for(L=0;L<V.length;L++)if(x=V[L],Ee(y.content,"content"),x.getAttribute("content")===(y.content==null?null:""+y.content)&&x.getAttribute("name")===(y.name==null?null:y.name)&&x.getAttribute("property")===(y.property==null?null:y.property)&&x.getAttribute("http-equiv")===(y.httpEquiv==null?null:y.httpEquiv)&&x.getAttribute("charset")===(y.charSet==null?null:y.charSet)){V.splice(L,1);break e}}x=T.createElement(g),ln(x,g,y),T.head.appendChild(x);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+g+'". This is a bug in React.')}x[un]=t,Ke(x),g=x}t.stateNode=g}else Lv(T,t.type,t.stateNode);else t.stateNode=hm(T,g,t.memoizedProps);else x!==g?(x===null?y.stateNode!==null&&(y=y.stateNode,y.parentNode.removeChild(y)):x.count--,g===null?Lv(T,t.type,t.stateNode):hm(T,g,t.memoizedProps)):g===null&&t.stateNode!==null&&Gh(t,t.memoizedProps,y.memoizedProps)}break;case 27:Qa(e,t),Za(t),g&512&&(sa||y===null||ni(y,y.return)),y!==null&&g&4&&Gh(t,t.memoizedProps,y.memoizedProps);break;case 5:if(Qa(e,t),Za(t),g&512&&(sa||y===null||ni(y,y.return)),t.flags&32){T=t.stateNode;try{mt(t,cm,T)}catch(At){ae(t,t.return,At)}}g&4&&t.stateNode!=null&&(T=t.memoizedProps,Gh(t,T,y!==null?y.memoizedProps:T)),g&1024&&(b1=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Qa(e,t),Za(t),g&4){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");g=t.memoizedProps,y=y!==null?y.memoizedProps:g,T=t.stateNode;try{mt(t,RS,T,y,g)}catch(At){ae(t,t.return,At)}}break;case 3:if(T=lu(),Jb=null,x=So,So=fm(e.containerInfo),Qa(e,t),So=x,Za(t),g&4&&y!==null&&y.memoizedState.isDehydrated)try{mt(t,Ky,e.containerInfo)}catch(At){ae(t,t.return,At)}b1&&(b1=!1,fv(t)),e.effectDuration+=Hc(T);break;case 4:g=So,So=fm(t.stateNode.containerInfo),Qa(e,t),Za(t),So=g;break;case 12:g=lu(),Qa(e,t),Za(t),t.stateNode.effectDuration+=Ha(g);break;case 31:Qa(e,t),Za(t),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,Io(t,g)));break;case 13:Qa(e,t),Za(t),t.child.flags&8192&&t.memoizedState!==null!=(y!==null&&y.memoizedState!==null)&&(Ub=aa()),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,Io(t,g)));break;case 22:T=t.memoizedState!==null;var U=y!==null&&y.memoizedState!==null,J=vc,yt=sa;if(vc=J||T,sa=yt||U,Qa(e,t),sa=yt,vc=J,U&&!T&&!J&&!yt&&(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&ih(t,Vt,Yt),Za(t),g&8192)t:for(e=t.stateNode,e._visibility=T?e._visibility&~Rg:e._visibility|Rg,!T||y===null||U||vc||sa||(Po(t),(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&kl(t,Vt,Yt,"Disconnect")),y=null,e=t;;){if(e.tag===5||e.tag===26){if(y===null){U=y=e;try{x=U.stateNode,T?mt(U,Cv,x):mt(U,Uv,U.stateNode,U.memoizedProps)}catch(At){ae(U,U.return,At)}}}else if(e.tag===6){if(y===null){U=e;try{V=U.stateNode,T?mt(U,Rv,V):mt(U,wv,V,U.memoizedProps)}catch(At){ae(U,U.return,At)}}}else if(e.tag===18){if(y===null){U=e;try{L=U.stateNode,T?mt(U,zv,L):mt(U,Ov,U.stateNode)}catch(At){ae(U,U.return,At)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;y===e&&(y=null),e=e.return}y===e&&(y=null),e.sibling.return=e.return,e=e.sibling}g&4&&(g=t.updateQueue,g!==null&&(y=g.retryQueue,y!==null&&(g.retryQueue=null,Io(t,y))));break;case 19:Qa(e,t),Za(t),g&4&&(g=t.updateQueue,g!==null&&(t.updateQueue=null,Io(t,g)));break;case 30:break;case 21:break;default:Qa(e,t),Za(t)}(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&((Rn||.05<Sn)&&Ti(t,Vt,Yt,Sn,mn),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<Yt-Vt&&(xy(t.return.alternate,t.return)||kl(t,Vt,Yt,"Mount"))),Wn(a),yl(u),mn=c,Rn=f}function Za(t){var e=t.flags;if(e&2){try{mt(t,Ay,t)}catch(a){ae(t,t.return,a)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function fv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;fv(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function xl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qh(t,e.alternate,e),e=e.sibling}function Zh(t){var e=nn(),a=Il(),u=gl(),c=Pl();switch(t.tag){case 0:case 11:case 14:case 15:Lh(t,t.return,Xi),Po(t);break;case 1:ni(t,t.return);var f=t.stateNode;typeof f.componentWillUnmount=="function"&&Yh(t,t.return,f),Po(t);break;case 27:mt(t,mo,t.stateNode);case 26:case 5:ni(t,t.return),Po(t);break;case 22:t.memoizedState===null&&Po(t);break;case 30:Po(t);break;default:Po(t)}(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(t,Vt,Yt,Sn,mn),Wn(e),yl(a),mn=u,Rn=c}function Po(t){for(t=t.child;t!==null;)Zh(t),t=t.sibling}function Cy(t,e,a,u){var c=nn(),f=Il(),y=gl(),g=Pl(),T=a.flags;switch(a.tag){case 0:case 11:case 15:Ui(t,a,u),uv(a,Xi);break;case 1:if(Ui(t,a,u),e=a.stateNode,typeof e.componentDidMount=="function"&&mt(a,u1,a,e),e=a.updateQueue,e!==null){t=a.stateNode;try{mt(a,kp,e,t)}catch(x){ae(a,a.return,x)}}u&&T&64&&by(a),Js(a,a.return);break;case 27:Ey(a);case 26:case 5:Ui(t,a,u),u&&e===null&&T&4&&Wo(a),Js(a,a.return);break;case 12:if(u&&T&4){T=lu(),Ui(t,a,u),u=a.stateNode,u.effectDuration+=Ha(T);try{mt(a,Sy,a,e,Vr,u.effectDuration)}catch(x){ae(a,a.return,x)}}else Ui(t,a,u);break;case 31:Ui(t,a,u),u&&T&4&&My(t,a);break;case 13:Ui(t,a,u),u&&T&4&&zy(t,a);break;case 22:a.memoizedState===null&&Ui(t,a,u),Js(a,a.return);break;case 30:break;default:Ui(t,a,u)}(a.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(a,Vt,Yt,Sn,mn),Wn(c),yl(f),mn=y,Rn=g}function Ui(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;)Cy(t,e.alternate,e,a),e=e.sibling}function Zf(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&Rs(t),a!=null&&gf(a))}function Jf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(Rs(e),t!=null&&gf(t))}function Dl(t,e,a,u,c){if(e.subtreeFlags&10256||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child))for(e=e.child;e!==null;){var f=e.sibling;Ry(t,e,a,u,f!==null?f.actualStartTime:c),e=f}}function Ry(t,e,a,u,c){var f=nn(),y=Il(),g=gl(),T=Pl(),x=jr,V=e.flags;switch(e.tag){case 0:case 11:case 15:(e.mode&oe)!==Qt&&0<e.actualStartTime&&(e.flags&1)!==0&&uh(e,e.actualStartTime,c,ba,a),Dl(t,e,a,u,c),V&2048&&Yf(e,_l|Bu);break;case 1:(e.mode&oe)!==Qt&&0<e.actualStartTime&&((e.flags&128)!==0?jp(e,e.actualStartTime,c,[]):(e.flags&1)!==0&&uh(e,e.actualStartTime,c,ba,a)),Dl(t,e,a,u,c);break;case 3:var L=lu(),U=ba;ba=e.alternate!==null&&e.alternate.memoizedState.isDehydrated&&(e.flags&256)===0,Dl(t,e,a,u,c),ba=U,V&2048&&(a=null,e.alternate!==null&&(a=e.alternate.memoizedState.cache),u=e.memoizedState.cache,u!==a&&(Rs(u),a!=null&&gf(a))),t.passiveEffectDuration+=Hc(L);break;case 12:if(V&2048){V=lu(),Dl(t,e,a,u,c),t=e.stateNode,t.passiveEffectDuration+=Ha(V);try{mt(e,cv,e,e.alternate,Vr,t.passiveEffectDuration)}catch(J){ae(e,e.return,J)}}else Dl(t,e,a,u,c);break;case 31:V=ba,L=e.alternate!==null?e.alternate.memoizedState:null,U=e.memoizedState,L!==null&&U===null?(U=e.deletions,U!==null&&0<U.length&&U[0].tag===18?(ba=!1,L=L.hydrationErrors,L!==null&&jp(e,e.actualStartTime,c,L)):ba=!0):ba=!1,Dl(t,e,a,u,c),ba=V;break;case 13:V=ba,L=e.alternate!==null?e.alternate.memoizedState:null,U=e.memoizedState,L===null||L.dehydrated===null||U!==null&&U.dehydrated!==null?ba=!1:(U=e.deletions,U!==null&&0<U.length&&U[0].tag===18?(ba=!1,L=L.hydrationErrors,L!==null&&jp(e,e.actualStartTime,c,L)):ba=!0),Dl(t,e,a,u,c),ba=V;break;case 23:break;case 22:U=e.stateNode,L=e.alternate,e.memoizedState!==null?U._visibility&sc?Dl(t,e,a,u,c):Ks(t,e,a,u,c):U._visibility&sc?Dl(t,e,a,u,c):(U._visibility|=sc,ts(t,e,a,u,(e.subtreeFlags&10256)!==0||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child),c),(e.mode&oe)===Qt||ba||(t=e.actualStartTime,0<=t&&.05<c-t&&ih(e,t,c),0<=Vt&&0<=Yt&&.05<Yt-Vt&&ih(e,Vt,Yt))),V&2048&&Zf(L,e);break;case 24:Dl(t,e,a,u,c),V&2048&&Jf(e.alternate,e);break;default:Dl(t,e,a,u,c)}(e.mode&oe)!==Qt&&((t=!ba&&e.alternate===null&&e.return!==null&&e.return.alternate!==null)&&(a=e.actualStartTime,0<=a&&.05<c-a&&kl(e,a,c,"Mount")),0<=Vt&&0<=Yt&&((Rn||.05<Sn)&&Ti(e,Vt,Yt,Sn,mn),t&&.05<Yt-Vt&&kl(e,Vt,Yt,"Mount"))),Wn(f),yl(y),mn=g,Rn=T,jr=x}function ts(t,e,a,u,c,f){for(c=c&&((e.subtreeFlags&10256)!==0||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child)),e=e.child;e!==null;){var y=e.sibling;Kf(t,e,a,u,c,y!==null?y.actualStartTime:f),e=y}}function Kf(t,e,a,u,c,f){var y=nn(),g=Il(),T=gl(),x=Pl(),V=jr;c&&(e.mode&oe)!==Qt&&0<e.actualStartTime&&(e.flags&1)!==0&&uh(e,e.actualStartTime,f,ba,a);var L=e.flags;switch(e.tag){case 0:case 11:case 15:ts(t,e,a,u,c,f),Yf(e,_l);break;case 23:break;case 22:var U=e.stateNode;e.memoizedState!==null?U._visibility&sc?ts(t,e,a,u,c,f):Ks(t,e,a,u,f):(U._visibility|=sc,ts(t,e,a,u,c,f)),c&&L&2048&&Zf(e.alternate,e);break;case 24:ts(t,e,a,u,c,f),c&&L&2048&&Jf(e.alternate,e);break;default:ts(t,e,a,u,c,f)}(e.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(e,Vt,Yt,Sn,mn),Wn(y),yl(g),mn=T,Rn=x,jr=V}function Ks(t,e,a,u,c){if(e.subtreeFlags&10256||e.actualDuration!==0&&(e.alternate===null||e.alternate.child!==e.child))for(var f=e.child;f!==null;){e=f.sibling;var y=t,g=a,T=u,x=e!==null?e.actualStartTime:c,V=jr;(f.mode&oe)!==Qt&&0<f.actualStartTime&&(f.flags&1)!==0&&uh(f,f.actualStartTime,x,ba,g);var L=f.flags;switch(f.tag){case 22:Ks(y,f,g,T,x),L&2048&&Zf(f.alternate,f);break;case 24:Ks(y,f,g,T,x),L&2048&&Jf(f.alternate,f);break;default:Ks(y,f,g,T,x)}jr=V,f=e}}function $s(t,e,a){if(t.subtreeFlags&kg)for(t=t.child;t!==null;)Jh(t,e,a),t=t.sibling}function Jh(t,e,a){switch(t.tag){case 26:$s(t,e,a),t.flags&kg&&t.memoizedState!==null&&Py(a,So,t.memoizedState,t.memoizedProps);break;case 5:$s(t,e,a);break;case 3:case 4:var u=So;So=fm(t.stateNode.containerInfo),$s(t,e,a),So=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=kg,kg=16777216,$s(t,e,a),kg=u):$s(t,e,a));break;default:$s(t,e,a)}}function Oy(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ml(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var u=e[a],c=nn();wa=u,yu(u,t),(u.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&kl(u,Vt,Yt,"Unmount"),Wn(c)}Oy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Kh(t),t=t.sibling}function Kh(t){var e=nn(),a=Il(),u=gl(),c=Pl();switch(t.tag){case 0:case 11:case 15:Ml(t),t.flags&2048&&qh(t,t.return,_l|Bu);break;case 3:var f=lu();Ml(t),t.stateNode.passiveEffectDuration+=Hc(f);break;case 12:f=lu(),Ml(t),t.stateNode.passiveEffectDuration+=Ha(f);break;case 22:f=t.stateNode,t.memoizedState!==null&&f._visibility&sc&&(t.return===null||t.return.tag!==13)?(f._visibility&=~sc,$h(t),(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&kl(t,Vt,Yt,"Disconnect")):Ml(t);break;default:Ml(t)}(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(t,Vt,Yt,Sn,mn),Wn(e),yl(a),Rn=c,mn=u}function $h(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var u=e[a],c=nn();wa=u,yu(u,t),(u.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&.05<Yt-Vt&&kl(u,Vt,Yt,"Unmount"),Wn(c)}Oy(t)}for(t=t.child;t!==null;)Uy(t),t=t.sibling}function Uy(t){var e=nn(),a=Il(),u=gl(),c=Pl();switch(t.tag){case 0:case 11:case 15:qh(t,t.return,_l),$h(t);break;case 22:var f=t.stateNode;f._visibility&sc&&(f._visibility&=~sc,$h(t));break;default:$h(t)}(t.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(t,Vt,Yt,Sn,mn),Wn(e),yl(a),Rn=c,mn=u}function yu(t,e){for(;wa!==null;){var a=wa,u=a,c=e,f=nn(),y=Il(),g=gl(),T=Pl();switch(u.tag){case 0:case 11:case 15:qh(u,c,_l);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool,c!=null&&Rs(c));break;case 24:gf(u.memoizedState.cache)}if((u.mode&oe)!==Qt&&0<=Vt&&0<=Yt&&(Rn||.05<Sn)&&Ti(u,Vt,Yt,Sn,mn),Wn(f),yl(y),Rn=T,mn=g,u=a.child,u!==null)u.return=a,wa=u;else t:for(a=t;wa!==null;){if(u=wa,f=u.sibling,y=u.return,zn(u),u===a){wa=null;break t}if(f!==null){f.return=y,wa=f;break t}wa=y}}}function wy(){Q3.forEach(function(t){return t()})}function jy(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||W.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Ca(t){if((Ce&Sa)!==ja&&ce!==0)return ce&-ce;var e=W.T;return e!==null?(e._updatedFibers||(e._updatedFibers=new Set),e._updatedFibers.add(t),Xy()):Ll()}function nr(){if(ci===0)if((ce&536870912)===0||Se){var t=yd;yd<<=1,(yd&3932160)===0&&(yd=262144),ci=t}else ci=536870912;return t=Gi.current,t!==null&&(t.flags|=32),ci}function Zt(t,e,a){if(lp&&console.error("useInsertionEffect must not schedule updates."),O1&&(_b=!0),(t===Ie&&(Ze===wd||Ze===jd)||t.cancelPendingCommit!==null)&&(gu(t,0),ai(t,ce,ci,!1)),Hl(t,a),(Ce&Sa)!==ja&&t===Ie){if(xu)switch(e.tag){case 0:case 11:case 15:t=he&&pt(he)||"Unknown",PA.has(t)||(PA.add(t),e=pt(e)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",e,t,t));break;case 1:IA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),IA=!0)}}else Mu&&te(t,e,a),Wf(e),t===Ie&&((Ce&Sa)===ja&&(Zr|=a),Tn===Gr&&ai(t,ce,ci,!1)),ul(t)}function dv(t,e,a){if((Ce&(Sa|Qi))!==ja)throw Error("Should not already be working.");if(ce!==0&&he!==null){var u=he,c=aa();switch(Z2){case Ig:case wd:var f=_g;on&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",f,c,Cu,void 0,"primary-light")):console.timeStamp("Suspended",f,c,Cu,void 0,"primary-light"));break;case jd:f=_g,on&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",f,c,Cu,void 0,"primary-light")):console.timeStamp("Action",f,c,Cu,void 0,"primary-light"));break;default:on&&(u=c-_g,3>u||console.timeStamp("Blocked",_g,c,Cu,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}f=(a=!a&&(e&127)===0&&(e&t.expiredLanes)===0||rn(t,e))?so(t,e):ir(t,e,!0);var y=a;do{if(f===bc){np&&!a&&ai(t,e,0,!1),e=Ze,_g=ia(),Z2=e;break}else{if(u=aa(),c=t.current.alternate,y&&!mv(c)){Si(e),c=Ua,f=u,!on||f<=c||(Hn?Hn.run(console.timeStamp.bind(console,"Teared Render",c,f,De,Te,"error")):console.timeStamp("Teared Render",c,f,De,Te,"error")),es(e,u),f=ir(t,e,!1),y=!1;continue}if(f===Ud){if(y=e,t.errorRecoveryDisabledLanes&y)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){Si(e),Np(Ua,u,e,Hn),es(e,u),e=g;t:{u=t,f=y,y=t0;var T=u.current.memoizedState.isDehydrated;if(T&&(gu(u,g).flags|=256),g=ir(u,g,!1),g!==Ud){if(A1&&!T){u.errorRecoveryDisabledLanes|=f,Zr|=f,f=Gr;break t}u=Bl,Bl=y,u!==null&&(Bl===null?Bl=u:Bl.push.apply(Bl,u))}f=g}if(y=!1,f!==Ud)continue;u=aa()}}if(f===Wg){Si(e),Np(Ua,u,e,Hn),es(e,u),gu(t,0),ai(t,e,0,!0);break}t:{switch(a=t,f){case bc:case Wg:throw Error("Root did not complete. This is a bug in React.");case Gr:if((e&4194048)!==e)break;case zb:Si(e),G0(Ua,u,e,Hn),es(e,u),c=e,(c&127)!==0?db=u:(c&4194048)!==0&&(hb=u),ai(a,e,ci,!Xr);break t;case Ud:Bl=null;break;case Mb:case LA:break;default:throw Error("Unknown root exit status.")}if(W.actQueue!==null)ke(a,c,e,Bl,e0,Ob,ci,Zr,Nd,f,null,null,Ua,u);else{if((e&62914560)===e&&(y=Ub+GA-aa(),10<y)){if(ai(a,e,ci,!Xr),mi(a,0,!0)!==0)break t;To=e,a.timeoutHandle=oE(hv.bind(null,a,c,Bl,e0,Ob,e,ci,Zr,Nd,Xr,f,"Throttled",Ua,u),y);break t}hv(a,c,Bl,e0,Ob,e,ci,Zr,Nd,Xr,f,null,Ua,u)}}}break}while(!0);ul(t)}function hv(t,e,a,u,c,f,y,g,T,x,V,L,U,J){t.timeoutHandle=Ld;var yt=e.subtreeFlags,At=null;if((yt&8192||(yt&16785408)===16785408)&&(At={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$l},Jh(e,f,At),yt=(f&62914560)===f?Ub-aa():(f&4194048)===f?YA-aa():0,yt=mm(At,yt),yt!==null)){To=f,t.cancelPendingCommit=yt(ke.bind(null,t,e,f,a,u,c,y,g,T,V,At,At.waitingForViewTransition?"Waiting for the previous Animation":0<At.count?0<At.imgCount?"Suspended on CSS and Images":"Suspended on CSS":At.imgCount===1?"Suspended on an Image":0<At.imgCount?"Suspended on Images":null,U,J)),ai(t,f,y,!x);return}ke(t,e,f,a,u,c,y,g,T,V,At,L,U,J)}function mv(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var c=a[u],f=c.getSnapshot;c=c.value;try{if(!wl(f(),c))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ai(t,e,a,u){e&=~E1,e&=~Zr,t.suspendedLanes|=e,t.pingedLanes&=~e,u&&(t.warmLanes|=e),u=t.expirationTimes;for(var c=e;0<c;){var f=31-ga(c),y=1<<f;u[f]=-1,c&=~y}a!==0&&Tt(t,a,e)}function zl(){return(Ce&(Sa|Qi))===ja?(bu(0),!1):!0}function kh(){if(he!==null){if(Ze===si)var t=he.return;else t=he,Bc(),qo(t),Km=null,Qg=0,t=he;for(;t!==null;)vy(t.alternate,t),t=t.return;he=null}}function es(t,e){(t&127)!==0&&(Ad=e),(t&4194048)!==0&&(hc=e),(t&62914560)!==0&&(X2=e),(t&2080374784)!==0&&(Q2=e)}function gu(t,e){on&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Te,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Te,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Te,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Te,"primary-light"));var a=Ua;if(Ua=ia(),ce!==0&&0<a){if(Si(ce),Tn===Mb||Tn===Gr)G0(a,Ua,e,Hn);else{var u=Ua,c=Hn;if(on&&!(u<=a)){var f=(e&738197653)===e?"tertiary-dark":"primary-dark",y=(e&536870912)===e?"Prewarm":(e&201326741)===e?"Interrupted Hydration":"Interrupted Render";c?c.run(console.timeStamp.bind(console,y,a,u,De,Te,f)):console.timeStamp(y,a,u,De,Te,f)}}es(ce,Ua)}if(a=Hn,Hn=null,(e&127)!==0){Hn=wg,c=0<=ds&&ds<Ad?Ad:ds,u=0<=Ed&&Ed<Ad?Ad:Ed,f=0<=u?u:0<=c?c:Ua,0<=db?(Si(2),X0(db,f,e,a)):mb&127,a=c;var g=u,T=jg,x=0<Qm,V=Hr===Ug,L=Hr===fb;if(c=Ua,u=wg,f=e1,y=n1,on){if(De="Blocking",0<a?a>c&&(a=c):a=c,0<g?g>a&&(g=a):g=a,T!==null&&a>g){var U=x?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+T,g,a,De,Te,U)):console.timeStamp(x?"Consecutive":"Event: "+T,g,a,De,Te,U)}c>a&&(g=V?"error":(e&738197653)===e?"tertiary-light":"primary-light",V=L?"Promise Resolved":V?"Cascading Update":5<c-a?"Update Blocked":"Update",L=[],y!=null&&L.push(["Component name",y]),f!=null&&L.push(["Method name",f]),a={start:a,end:c,detail:{devtools:{properties:L,track:De,trackGroup:Te,color:g}}},u?u.run(performance.measure.bind(performance,V,a)):performance.measure(V,a))}ds=-1.1,Hr=0,n1=e1=null,db=-1.1,Qm=Ed,Ed=-1.1,Ad=ia()}if((e&4194048)!==0&&(Hn=Ng,c=0<=mc&&mc<hc?hc:mc,a=0<=Nu&&Nu<hc?hc:Nu,u=0<=Lr&&Lr<hc?hc:Lr,f=0<=u?u:0<=a?a:Ua,0<=hb?(Si(256),X0(hb,f,e,Hn)):mb&4194048,L=u,g=xd,T=0<qr,x=a1===fb,f=Ua,u=Ng,y=Y2,V=G2,on&&(De="Transition",0<a?a>f&&(a=f):a=f,0<c?c>a&&(c=a):c=a,0<L?L>c&&(L=c):L=c,c>L&&g!==null&&(U=T?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+g,L,c,De,Te,U)):console.timeStamp(T?"Consecutive":"Event: "+g,L,c,De,Te,U)),a>c&&(u?u.run(console.timeStamp.bind(console,"Action",c,a,De,Te,"primary-dark")):console.timeStamp("Action",c,a,De,Te,"primary-dark")),f>a&&(c=x?"Promise Resolved":5<f-a?"Update Blocked":"Update",L=[],V!=null&&L.push(["Component name",V]),y!=null&&L.push(["Method name",y]),a={start:a,end:f,detail:{devtools:{properties:L,track:De,trackGroup:Te,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,c,a)):performance.measure(c,a))),Nu=mc=-1.1,a1=0,hb=-1.1,qr=Lr,Lr=-1.1,hc=ia()),(e&62914560)!==0&&(mb&62914560)!==0&&(Si(4194304),_p(X2,Ua)),(e&2080374784)!==0&&(mb&2080374784)!==0&&(Si(268435456),_p(Q2,Ua)),a=t.timeoutHandle,a!==Ld&&(t.timeoutHandle=Ld,az(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),To=0,kh(),Ie=t,he=a=nu(t.current,null),ce=e,Ze=si,Zi=null,Xr=!1,np=rn(t,e),A1=!1,Tn=bc,Nd=ci=E1=Zr=Qr=0,Bl=t0=null,Ob=!1,(e&8)!==0&&(e|=e&32),u=t.entangledLanes,u!==0)for(t=t.entanglements,u&=e;0<u;)c=31-ga(u),f=1<<c,e|=t[c],u&=~f;return ms=e,oh(),t=_2(),1e3<t-N2&&(W.recentlyCreatedOwnerStacks=0,N2=t),vo.discardPendingWarnings(),a}function wi(t,e){$t=null,W.H=$g,W.getCurrentStack=null,xu=!1,rl=null,e===Jm||e===vb?(e=ws(),Ze=Ig):e===o1?(e=ws(),Ze=qA):Ze=e===g1?T1:e!==null&&typeof e=="object"&&typeof e.then=="function"?Pg:Cb,Zi=e;var a=he;a===null?(Tn=Wg,Bf(t,Va(e,t.current))):a.mode&oe&&mh(a)}function Ny(){var t=Gi.current;return t===null?!0:(ce&4194048)===ce?_u===null:(ce&62914560)===ce||(ce&536870912)!==0?t===_u:!1}function Fh(){var t=W.H;return W.H=$g,t===null?$g:t}function _y(){var t=W.A;return W.A=X3,t}function ar(t){Hn===null&&(Hn=t._debugTask==null?null:t._debugTask)}function lr(){Tn=Gr,Xr||(ce&4194048)!==ce&&Gi.current!==null||(np=!0),(Qr&134217727)===0&&(Zr&134217727)===0||Ie===null||ai(Ie,ce,ci,!1)}function ir(t,e,a){var u=Ce;Ce|=Sa;var c=Fh(),f=_y();if(Ie!==t||ce!==e){if(Mu){var y=t.memoizedUpdaters;0<y.size&&(or(t,ce),y.clear()),ne(t,e)}e0=null,gu(t,e)}e=!1,y=Tn;t:do try{if(Ze!==si&&he!==null){var g=he,T=Zi;switch(Ze){case T1:kh(),y=zb;break t;case Ig:case wd:case jd:case Pg:Gi.current===null&&(e=!0);var x=Ze;if(Ze=si,Zi=null,ur(t,g,T,x),a&&np){y=bc;break t}break;default:x=Ze,Ze=si,Zi=null,ur(t,g,T,x)}}By(),y=Tn;break}catch(V){wi(t,V)}while(!0);return e&&t.shellSuspendCounter++,Bc(),Ce=u,W.H=c,W.A=f,he===null&&(Ie=null,ce=0,oh()),y}function By(){for(;he!==null;)Wh(he)}function so(t,e){var a=Ce;Ce|=Sa;var u=Fh(),c=_y();if(Ie!==t||ce!==e){if(Mu){var f=t.memoizedUpdaters;0<f.size&&(or(t,ce),f.clear()),ne(t,e)}e0=null,wb=aa()+XA,gu(t,e)}else np=rn(t,e);t:do try{if(Ze!==si&&he!==null)e:switch(e=he,f=Zi,Ze){case Cb:Ze=si,Zi=null,ur(t,e,f,Cb);break;case wd:case jd:if(Kp(f)){Ze=si,Zi=null,Vy(e);break}e=function(){Ze!==wd&&Ze!==jd||Ie!==t||(Ze=Rb),ul(t)},f.then(e,e);break t;case Ig:Ze=Rb;break t;case qA:Ze=S1;break t;case Rb:Kp(f)?(Ze=si,Zi=null,Vy(e)):(Ze=si,Zi=null,ur(t,e,f,Rb));break;case S1:var y=null;switch(he.tag){case 26:y=he.memoizedState;case 5:case 27:var g=he;if(y?pe(y):g.stateNode.complete){Ze=si,Zi=null;var T=g.sibling;if(T!==null)he=T;else{var x=g.return;x!==null?(he=x,$f(x)):he=null}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Ze=si,Zi=null,ur(t,e,f,S1);break;case Pg:Ze=si,Zi=null,ur(t,e,f,Pg);break;case T1:kh(),Tn=zb;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}W.actQueue!==null?By():Bn();break}catch(V){wi(t,V)}while(!0);return Bc(),W.H=u,W.A=c,Ce=a,he!==null?bc:(Ie=null,ce=0,oh(),Tn)}function Bn(){for(;he!==null&&!Dm();)Wh(he)}function Wh(t){var e=t.alternate;(t.mode&oe)!==Qt?(Wu(t),e=mt(t,qf,e,t,ms),mh(t)):e=mt(t,qf,e,t,ms),t.memoizedProps=t.pendingProps,e===null?$f(t):he=e}function Vy(t){var e=mt(t,na,t);t.memoizedProps=t.pendingProps,e===null?$f(t):he=e}function na(t){var e=t.alternate,a=(t.mode&oe)!==Qt;switch(a&&Wu(t),t.tag){case 15:case 0:e=dy(e,t,t.pendingProps,t.type,void 0,ce);break;case 11:e=dy(e,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:qo(t);default:vy(e,t),t=he=Lp(t,ms),e=qf(e,t,ms)}return a&&mh(t),e}function ur(t,e,a,u){Bc(),qo(e),Km=null,Qg=0;var c=e.return;try{if(iy(t,c,e,a,ce)){Tn=Wg,Bf(t,Va(a,t.current)),he=null;return}}catch(f){if(c!==null)throw he=c,f;Tn=Wg,Bf(t,Va(a,t.current)),he=null;return}e.flags&32768?(Se||u===Cb?t=!0:np||(ce&536870912)!==0?t=!1:(Xr=t=!0,(u===wd||u===jd||u===Ig||u===Pg)&&(u=Gi.current,u!==null&&u.tag===13&&(u.flags|=16384))),Hy(e,t)):$f(e)}function $f(t){var e=t;do{if((e.flags&32768)!==0){Hy(e,Xr);return}var a=e.alternate;if(t=e.return,Wu(e),a=mt(e,gy,a,e,ms),(e.mode&oe)!==Qt&&vf(e),a!==null){he=a;return}if(e=e.sibling,e!==null){he=e;return}he=e=t}while(e!==null);Tn===bc&&(Tn=LA)}function Hy(t,e){do{var a=iv(t.alternate,t);if(a!==null){a.flags&=32767,he=a;return}if((t.mode&oe)!==Qt){vf(t),a=t.actualDuration;for(var u=t.child;u!==null;)a+=u.actualDuration,u=u.sibling;t.actualDuration=a}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){he=t;return}he=t=a}while(t!==null);Tn=zb,he=null}function ke(t,e,a,u,c,f,y,g,T,x,V,L,U,J){t.cancelPendingCommit=null;do kf();while(ra!==Kr);if(vo.flushLegacyContextWarning(),vo.flushPendingUnsafeLifecycleWarnings(),(Ce&(Sa|Qi))!==ja)throw Error("Should not already be working.");if(Si(a),x===Ud?Np(U,J,a,Hn):u!==null?xS(U,J,a,u,e!==null&&e.alternate!==null&&e.alternate.memoizedState.isDehydrated&&(e.flags&256)!==0,Hn):ES(U,J,a,Hn),e!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),e===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(f=e.lanes|e.childLanes,f|=FS,bs(t,a,f,y,g,T),t===Ie&&(he=Ie=null,ce=0),ap=e,$r=t,To=a,M1=f,C1=c,kA=u,z1=J,FA=L,Ao=jb,WA=null,e.actualDuration!==0||(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sr(lc,function(){return o0=window.event,Ao===jb&&(Ao=D1),Ff(),null})):(t.callbackNode=null,t.callbackPriority=0),dc=null,Vr=ia(),L!==null&&DS(J,Vr,L,Hn),u=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||u){u=W.T,W.T=null,c=Be.p,Be.p=Zn,y=Ce,Ce|=Qi;try{CS(t,e,a)}finally{Ce=y,Be.p=c,W.T=u}}ra=ZA,Ja(),vu(),Ly()}}function Ja(){if(ra===ZA){ra=Kr;var t=$r,e=ap,a=To,u=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||u){u=W.T,W.T=null;var c=Be.p;Be.p=Zn;var f=Ce;Ce|=Qi;try{tp=a,ep=t,Os(),Qf(e,t),ep=tp=null,a=L1;var y=lh(t.containerInfo),g=a.focusedElem,T=a.selectionRange;if(y!==g&&g&&g.ownerDocument&&H0(g.ownerDocument.documentElement,g)){if(T!==null&&Up(g)){var x=T.start,V=T.end;if(V===void 0&&(V=x),"selectionStart"in g)g.selectionStart=x,g.selectionEnd=Math.min(V,g.value.length);else{var L=g.ownerDocument||document,U=L&&L.defaultView||window;if(U.getSelection){var J=U.getSelection(),yt=g.textContent.length,At=Math.min(T.start,yt),en=T.end===void 0?At:Math.min(T.end,yt);!J.extend&&At>en&&(y=en,en=At,At=y);var Ae=V0(g,At),O=V0(g,en);if(Ae&&O&&(J.rangeCount!==1||J.anchorNode!==Ae.node||J.anchorOffset!==Ae.offset||J.focusNode!==O.node||J.focusOffset!==O.offset)){var w=L.createRange();w.setStart(Ae.node,Ae.offset),J.removeAllRanges(),At>en?(J.addRange(w),J.extend(O.node,O.offset)):(w.setEnd(O.node,O.offset),J.addRange(w))}}}}for(L=[],J=g;J=J.parentNode;)J.nodeType===1&&L.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<L.length;g++){var _=L[g];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}kb=!!H1,L1=H1=null}finally{Ce=f,Be.p=c,W.T=u}}t.current=e,ra=JA}}function vu(){if(ra===JA){ra=Kr;var t=WA;if(t!==null){Vr=ia();var e=fc,a=Vr;!on||a<=e||console.timeStamp(t,e,a,De,Te,"secondary-light")}t=$r,e=ap,a=To;var u=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||u){u=W.T,W.T=null;var c=Be.p;Be.p=Zn;var f=Ce;Ce|=Qi;try{tp=a,ep=t,Os(),Qh(t,e.alternate,e),ep=tp=null}finally{Ce=f,Be.p=c,W.T=u}}t=z1,e=FA,fc=ia(),t=e===null?t:Vr,e=fc,a=Ao===x1,u=Hn,dc!==null?Q0(t,e,dc,!1,u):!on||e<=t||(u?u.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",t,e,De,Te,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",t,e,De,Te,a?"error":"secondary-dark")),ra=KA}}function Ly(){if(ra===$A||ra===KA){if(ra===$A){var t=fc;fc=ia();var e=fc,a=Ao===x1;!on||e<=t||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",t,e,De,Te,a?" error":"secondary-light"),Ao!==x1&&(Ao=QA)}ra=Kr,Mm(),t=$r;var u=ap;e=To,a=kA;var c=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;c?ra=Nb:(ra=Kr,ap=$r=null,qy(t,t.pendingLanes),_d=0,a0=null);var f=t.pendingLanes;if(f===0&&(Jr=null),c||tm(t),f=xe(e),u=u.stateNode,Qn&&typeof Qn.onCommitFiberRoot=="function")try{var y=(u.current.flags&128)===128;switch(f){case Zn:var g=yg;break;case va:g=zm;break;case Oa:g=lc;break;case cs:g=Cm;break;default:g=lc}Qn.onCommitFiberRoot(ic,u,g,y)}catch(L){Du||(Du=!0,console.error("React instrumentation encountered an error: %o",L))}if(Mu&&t.memoizedUpdaters.clear(),wy(),a!==null){y=W.T,g=Be.p,Be.p=Zn,W.T=null;try{var T=t.onRecoverableError;for(u=0;u<a.length;u++){var x=a[u],V=pv(x.stack);mt(x.source,T,x.value,V)}}finally{W.T=y,Be.p=g}}(To&3)!==0&&kf(),ul(t),f=t.pendingLanes,(e&261930)!==0&&(f&42)!==0?(yb=!0,t===R1?n0++:(n0=0,R1=t)):n0=0,c||es(e,fc),bu(0)}}function pv(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),t}function qy(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,gf(e)))}function kf(){return Ja(),vu(),Ly(),Ff()}function Ff(){if(ra!==Nb)return!1;var t=$r,e=M1;M1=0;var a=xe(To),u=Oa>a?Oa:a;a=W.T;var c=Be.p;try{Be.p=u,W.T=null;var f=C1;C1=null,u=$r;var y=To;if(ra=Kr,ap=$r=null,To=0,(Ce&(Sa|Qi))!==ja)throw Error("Cannot flush passive effects while already rendering.");Si(y),O1=!0,_b=!1;var g=0;if(dc=null,g=aa(),Ao===QA)_p(fc,g,B3);else{var T=fc,x=g,V=Ao===D1;!on||x<=T||(Hn?Hn.run(console.timeStamp.bind(console,V?"Waiting for Paint":"Waiting",T,x,De,Te,"secondary-light")):console.timeStamp(V?"Waiting for Paint":"Waiting",T,x,De,Te,"secondary-light"))}T=Ce,Ce|=Qi;var L=u.current;Os(),Kh(L);var U=u.current;L=z1,Os(),Ry(u,U,y,f,L),tm(u),Ce=T;var J=aa();if(U=g,L=Hn,dc!==null?Q0(U,J,dc,!0,L):!on||J<=U||(L?L.run(console.timeStamp.bind(console,"Remaining Effects",U,J,De,Te,"secondary-dark")):console.timeStamp("Remaining Effects",U,J,De,Te,"secondary-dark")),es(y,J),bu(0,!1),_b?u===a0?_d++:(_d=0,a0=u):_d=0,_b=O1=!1,Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(ic,u)}catch(At){Du||(Du=!0,console.error("React instrumentation encountered an error: %o",At))}var yt=u.current.stateNode;return yt.effectDuration=0,yt.passiveEffectDuration=0,!0}finally{Be.p=c,W.T=a,qy(t,e)}}function Ka(t,e,a){e=Va(a,e),F0(e),e=Oh(t.stateNode,e,2),t=uu(t,e,2),t!==null&&(Hl(t,2),ul(t))}function ae(t,e,a){if(lp=!1,t.tag===3)Ka(t,t,a);else{for(;e!==null;){if(e.tag===3){Ka(e,t,a);return}if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Jr===null||!Jr.has(u))){t=Va(a,t),F0(t),a=Uh(2),u=uu(e,a,2),u!==null&&(wh(a,u,e,t),Hl(u,2),ul(u));return}}e=e.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
164
|
-
|
|
165
|
-
Error message:
|
|
166
|
-
|
|
167
|
-
%s`,a)}}function Ih(t,e,a){var u=t.pingCache;if(u===null){u=t.pingCache=new Z3;var c=new Set;u.set(e,c)}else c=u.get(e),c===void 0&&(c=new Set,u.set(e,c));c.has(a)||(A1=!0,c.add(a),u=il.bind(null,t,e,a),Mu&&or(t,a),e.then(u,u))}function il(t,e,a){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,(a&127)!==0?0>ds&&(Ad=ds=ia(),wg=rb("Promise Resolved"),Hr=fb):(a&4194048)!==0&&0>Nu&&(hc=Nu=ia(),Ng=rb("Promise Resolved"),a1=fb),jy()&&W.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
168
|
-
|
|
169
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
170
|
-
|
|
171
|
-
act(() => {
|
|
172
|
-
/* finish loading suspended data */
|
|
173
|
-
});
|
|
174
|
-
/* assert on the output */
|
|
175
|
-
|
|
176
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ie===t&&(ce&a)===a&&(Tn===Gr||Tn===Mb&&(ce&62914560)===ce&&aa()-Ub<GA?(Ce&Sa)===ja&&gu(t,0):E1|=a,Nd===ce&&(Nd=0)),ul(t)}function Yy(t,e){e===0&&(e=Mo()),t=Ma(t,e),t!==null&&(Hl(t,e),ul(t))}function co(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Yy(t,a)}function ks(t,e){var a=0;switch(t.tag){case 31:case 13:var u=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(e),Yy(t,a)}function ji(t,e,a){if((e.subtreeFlags&67117056)!==0)for(e=e.child;e!==null;){var u=t,c=e,f=c.type===Fa;f=a||f,c.tag!==22?c.flags&67108864?f&&mt(c,Ph,u,c):ji(u,c,f):c.memoizedState===null&&(f&&c.flags&8192?mt(c,Ph,u,c):c.subtreeFlags&67108864&&mt(c,ji,u,c,f)),e=e.sibling}}function Ph(t,e){Me(!0);try{Zh(e),Uy(e),Cy(t,e.alternate,e,!1),Kf(t,e,0,null,!1,0)}finally{Me(!1)}}function tm(t){var e=!0;t.current.mode&(fl|go)||(e=!1),ji(t,t.current,e)}function li(t){if((Ce&Sa)===ja){var e=t.tag;if(e===3||e===1||e===0||e===11||e===14||e===15){if(e=pt(t)||"ReactComponent",Bb!==null){if(Bb.has(e))return;Bb.add(e)}else Bb=new Set([e]);mt(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function or(t,e){Mu&&t.memoizedUpdaters.forEach(function(a){te(t,a,e)})}function sr(t,e){var a=W.actQueue;return a!==null?(a.push(e),$3):pg(t,e)}function Wf(t){jy()&&W.actQueue===null&&mt(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
177
|
-
|
|
178
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
179
|
-
|
|
180
|
-
act(() => {
|
|
181
|
-
/* fire events that update state */
|
|
182
|
-
});
|
|
183
|
-
/* assert on the output */
|
|
184
|
-
|
|
185
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,pt(t))})}function ul(t){t!==ip&&t.next===null&&(ip===null?Vb=ip=t:ip=ip.next=t),Hb=!0,W.actQueue!==null?w1||(w1=!0,gv()):U1||(U1=!0,gv())}function bu(t,e){if(!j1&&Hb){j1=!0;do for(var a=!1,u=Vb;u!==null;){if(t!==0){var c=u.pendingLanes;if(c===0)var f=0;else{var y=u.suspendedLanes,g=u.pingedLanes;f=(1<<31-ga(42|t)+1)-1,f&=c&~(y&~g),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,If(u,f))}else f=ce,f=mi(u,u===Ie?f:0,u.cancelPendingCommit!==null||u.timeoutHandle!==Ld),(f&3)===0||rn(u,f)||(a=!0,If(u,f));u=u.next}while(a);j1=!1}}function yv(){o0=window.event,em()}function em(){Hb=w1=U1=!1;var t=0;kr!==0&&Zy()&&(t=kr);for(var e=aa(),a=null,u=Vb;u!==null;){var c=u.next,f=cr(u,e);f===0?(u.next=null,a===null?Vb=c:a.next=c,c===null&&(ip=a)):(a=u,(t!==0||(f&3)!==0)&&(Hb=!0)),u=c}ra!==Kr&&ra!==Nb||bu(t),kr!==0&&(kr=0)}function cr(t,e){for(var a=t.suspendedLanes,u=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var y=31-ga(f),g=1<<y,T=c[y];T===-1?((g&a)===0||(g&u)!==0)&&(c[y]=vs(g,e)):T<=e&&(t.expiredLanes|=g),f&=~g}if(e=Ie,a=ce,a=mi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Ld),u=t.callbackNode,a===0||t===e&&(Ze===wd||Ze===jd)||t.cancelPendingCommit!==null)return u!==null&&nm(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||rn(t,a)){if(e=a&-a,e!==t.callbackPriority||W.actQueue!==null&&u!==N1)nm(u);else return e;switch(xe(a)){case Zn:case va:a=zm;break;case Oa:a=lc;break;case cs:a=Cm;break;default:a=lc}return u=Gy.bind(null,t),W.actQueue!==null?(W.actQueue.push(u),a=N1):a=pg(a,u),t.callbackPriority=e,t.callbackNode=a,e}return u!==null&&nm(u),t.callbackPriority=2,t.callbackNode=null,2}function Gy(t,e){if(yb=pb=!1,o0=window.event,ra!==Kr&&ra!==Nb)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Ao===jb&&(Ao=D1),kf()&&t.callbackNode!==a)return null;var u=ce;return u=mi(t,t===Ie?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Ld),u===0?null:(dv(t,u,e),cr(t,aa()),t.callbackNode!=null&&t.callbackNode===a?Gy.bind(null,t):null)}function If(t,e){if(kf())return null;pb=yb,yb=!1,dv(t,e,!0)}function nm(t){t!==N1&&t!==null&&xm(t)}function gv(){W.actQueue!==null&&W.actQueue.push(function(){return em(),null}),lz(function(){(Ce&(Sa|Qi))!==ja?pg(yg,yv):em()})}function Xy(){if(kr===0){var t=Dd;t===0&&(t=zr,zr<<=1,(zr&261888)===0&&(zr=256)),kr=t}return kr}function Ue(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:(Ee(t,"action"),of(""+t))}function Ge(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function ve(t,e,a,u,c){if(e==="submit"&&a&&a.stateNode===c){var f=Ue((c[Wa]||null).action),y=u.submitter;y&&(e=(e=y[Wa]||null)?Ue(e.formAction):y.getAttribute("formAction"),e!==null&&(f=e,y=null));var g=new ab("action","action",null,u,c);t.push({event:g,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(kr!==0){var T=y?Ge(c,y):new FormData(c),x={pending:!0,data:T,method:c.method,action:f};Object.freeze(x),io(a,x,null,T)}}else typeof f=="function"&&(g.preventDefault(),T=y?Ge(c,y):new FormData(c),x={pending:!0,data:T,method:c.method,action:f},Object.freeze(x),io(a,x,f,T))},currentTarget:c}]})}}function de(t,e,a){t.currentTarget=a;try{e(t)}catch(u){JS(u)}t.currentTarget=null}function Le(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var u=t[a];t:{var c=void 0,f=u.event;if(u=u.listeners,e)for(var y=u.length-1;0<=y;y--){var g=u[y],T=g.instance,x=g.currentTarget;if(g=g.listener,T!==c&&f.isPropagationStopped())break t;T!==null?mt(T,de,f,g,x):de(f,g,x),c=T}else for(y=0;y<u.length;y++){if(g=u[y],T=g.instance,x=g.currentTarget,g=g.listener,T!==c&&f.isPropagationStopped())break t;T!==null?mt(T,de,f,g,x):de(f,g,x),c=T}}}}function Xt(t,e){_1.has(t)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var a=e[uc];a===void 0&&(a=e[uc]=new Set);var u=t+"__bubble";a.has(u)||(am(e,t,2,!1),a.add(u))}function Su(t,e,a){_1.has(t)&&!e&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var u=0;e&&(u|=4),am(a,t,u,e)}function ns(t){if(!t[Lb]){t[Lb]=!0,Iv.forEach(function(a){a!=="selectionchange"&&(_1.has(a)||Su(a,!1,t),Su(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Lb]||(e[Lb]=!0,Su("selectionchange",!1,e))}}function am(t,e,a,u){switch(gm(e)){case Zn:var c=lg;break;case va:c=ya;break;default:c=ig}a=c.bind(null,e,a,t),c=void 0,!BS||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(c=!0),u?c!==void 0?t.addEventListener(e,a,{capture:!0,passive:c}):t.addEventListener(e,a,!0):c!==void 0?t.addEventListener(e,a,{passive:c}):t.addEventListener(e,a,!1)}function Ni(t,e,a,u,c){var f=u;if((e&1)===0&&(e&2)===0&&u!==null)t:for(;;){if(u===null)return;var y=u.tag;if(y===3||y===4){var g=u.stateNode.containerInfo;if(g===c)break;if(y===4)for(y=u.return;y!==null;){var T=y.tag;if((T===3||T===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;g!==null;){if(y=_a(g),y===null)return;if(T=y.tag,T===5||T===6||T===26||T===27){u=f=y;continue t}g=g.parentNode}}u=u.return}th(function(){var x=f,V=vi(a),L=[];t:{var U=j2.get(t);if(U!==void 0){var J=ab,yt=t;switch(t){case"keypress":if(sf(a)===0)break t;case"keydown":case"keyup":J=c3;break;case"focusin":yt="focus",J=qS;break;case"focusout":yt="blur",J=qS;break;case"beforeblur":case"afterblur":J=qS;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=b2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=WM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=d3;break;case R2:case O2:case U2:J=t3;break;case w2:J=m3;break;case"scroll":case"scrollend":J=kM;break;case"wheel":J=y3;break;case"copy":case"cut":case"paste":J=n3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=T2;break;case"toggle":case"beforetoggle":J=v3}var At=(e&4)!==0,en=!At&&(t==="scroll"||t==="scrollend"),Ae=At?U!==null?U+"Capture":null:U;At=[];for(var O=x,w;O!==null;){var _=O;if(w=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||w===null||Ae===null||(_=tu(O,Ae),_!=null&&At.push(Fe(O,_,w))),en)break;O=O.return}0<At.length&&(U=new J(U,yt,null,a,V),L.push({event:U,listeners:At}))}}if((e&7)===0){t:{if(U=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",U&&a!==Tg&&(yt=a.relatedTarget||a.fromElement)&&(_a(yt)||yt[yo]))break t;if((J||U)&&(U=V.window===V?V:(U=V.ownerDocument)?U.defaultView||U.parentWindow:window,J?(yt=a.relatedTarget||a.toElement,J=x,yt=yt?_a(yt):null,yt!==null&&(en=P(yt),At=yt.tag,yt!==en||At!==5&&At!==27&&At!==6)&&(yt=null)):(J=null,yt=x),J!==yt)){if(At=b2,_="onMouseLeave",Ae="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(At=T2,_="onPointerLeave",Ae="onPointerEnter",O="pointer"),en=J==null?U:ml(J),w=yt==null?U:ml(yt),U=new At(_,O+"leave",J,a,V),U.target=en,U.relatedTarget=w,_=null,_a(V)===x&&(At=new At(Ae,O+"enter",yt,a,V),At.target=w,At.relatedTarget=en,_=At),en=_,J&&yt)e:{for(At=Fs,Ae=J,O=yt,w=0,_=Ae;_;_=At(_))w++;_=0;for(var et=O;et;et=At(et))_++;for(;0<w-_;)Ae=At(Ae),w--;for(;0<_-w;)O=At(O),_--;for(;w--;){if(Ae===O||O!==null&&Ae===O.alternate){At=Ae;break e}Ae=At(Ae),O=At(O)}At=null}else At=null;J!==null&&lm(L,U,J,At,!1),yt!==null&&en!==null&&lm(L,en,yt,At,!0)}}t:{if(U=x?ml(x):window,J=U.nodeName&&U.nodeName.toLowerCase(),J==="select"||J==="input"&&U.type==="file")var vt=wo;else if(Cp(U))if(z2)vt=df;else{vt=Rp;var kt=AS}else J=U.nodeName,!J||J.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?x&&Pi(x.elementType)&&(vt=wo):vt=Op;if(vt&&(vt=vt(t,x))){rf(L,vt,a,V);break t}kt&&kt(t,U,x),t==="focusout"&&x&&U.type==="number"&&x.memoizedProps.value!=null&&uf(U,"number",U.value)}switch(kt=x?ml(x):window,t){case"focusin":(Cp(kt)||kt.contentEditable==="true")&&(Bm=kt,GS=x,Cg=null);break;case"focusout":Cg=GS=Bm=null;break;case"mousedown":XS=!0;break;case"contextmenu":case"mouseup":case"dragend":XS=!1,L0(L,a,V);break;case"selectionchange":if(A3)break;case"keydown":case"keyup":L0(L,a,V)}var _t;if(YS)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else _m?Uc(t,a)&&(wt="onCompositionEnd"):t==="keydown"&&a.keyCode===A2&&(wt="onCompositionStart");wt&&(E2&&a.locale!=="ko"&&(_m||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&_m&&(_t=Ss()):(wr=V,VS="value"in wr?wr.value:wr.textContent,_m=!0)),kt=_i(x,wt),0<kt.length&&(wt=new S2(wt,t,null,a,V),L.push({event:wt,listeners:kt}),_t?wt.data=_t:(_t=ku(a),_t!==null&&(wt.data=_t)))),(_t=S3?zp(t,a):eh(t,a))&&(wt=_i(x,"onBeforeInput"),0<wt.length&&(kt=new l3("onBeforeInput","beforeinput",null,a,V),L.push({event:kt,listeners:wt}),kt.data=_t)),ve(L,t,x,a,V)}Le(L,e)})}function Fe(t,e,a){return{instance:t,listener:e,currentTarget:a}}function _i(t,e){for(var a=e+"Capture",u=[];t!==null;){var c=t,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=tu(t,a),c!=null&&u.unshift(Fe(t,c,f)),c=tu(t,e),c!=null&&u.push(Fe(t,c,f))),t.tag===3)return u;t=t.return}return[]}function Fs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function lm(t,e,a,u,c){for(var f=e._reactName,y=[];a!==null&&a!==u;){var g=a,T=g.alternate,x=g.stateNode;if(g=g.tag,T!==null&&T===u)break;g!==5&&g!==26&&g!==27||x===null||(T=x,c?(x=tu(a,f),x!=null&&y.unshift(Fe(a,x,T))):c||(x=tu(a,f),x!=null&&y.push(Fe(a,x,T)))),a=a.return}y.length!==0&&t.push({event:e,listeners:y})}function $a(t,e){N0(t,e),t!=="input"&&t!=="textarea"&&t!=="select"||e==null||e.value!==null||g2||(g2=!0,t==="select"&&e.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));var a={registrationNameDependencies:zu,possibleRegistrationNames:Or};Pi(t)||typeof e.is=="string"||TS(t,e,a),e.contentEditable&&!e.suppressContentEditableWarning&&e.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function dn(t,e,a,u){e!==a&&(a=Bi(a),Bi(e)!==a&&(u[t]=e))}function Pf(t,e,a){e.forEach(function(u){a[ro(u)]=u==="style"?as(t):t.getAttribute(u)})}function hn(t,e){e===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof e)}function im(t,e){return t=t.namespaceURI===Pt||t.namespaceURI===le?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=e,t.innerHTML}function Bi(t){return ha(t)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ln(t)),qn(t)),(typeof t=="string"?t:""+t).replace(k3,`
|
|
186
|
-
`).replace(F3,"")}function Qy(t,e){return e=Bi(e),Bi(t)===e}function _e(t,e,a,u,c,f){switch(a){case"children":typeof u=="string"?(yn(u,e,!1),e==="body"||e==="textarea"&&u===""||Da(t,u)):(typeof u=="number"||typeof u=="bigint")&&(yn(""+u,e,!1),e!=="body"&&Da(t,""+u));break;case"className":Qu(t,"class",u);break;case"tabIndex":Qu(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Qu(t,a,u);break;case"style":xp(t,u,f);break;case"data":if(e!=="object"){Qu(t,"data",u);break}case"src":case"href":if(u===""&&(e!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),t.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}Ee(u,a),u=of(""+u),t.setAttribute(a,u);break;case"action":case"formAction":if(u!=null&&(e==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(c.encType==null&&c.method==null||Gb||(Gb=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),c.target==null||Yb||(Yb=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):e==="input"||e==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):e!=="input"||c.type==="submit"||c.type==="image"||qb?e!=="button"||c.type==null||c.type==="submit"||qb?typeof u=="function"&&(c.name==null||nE||(nE=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),c.formEncType==null&&c.formMethod==null||Gb||(Gb=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),c.formTarget==null||Yb||(Yb=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(qb=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(qb=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){t.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 f=="function"&&(a==="formAction"?(e!=="input"&&_e(t,e,"name",c.name,c,null),_e(t,e,"formEncType",c.formEncType,c,null),_e(t,e,"formMethod",c.formMethod,c,null),_e(t,e,"formTarget",c.formTarget,c,null)):(_e(t,e,"encType",c.encType,c,null),_e(t,e,"method",c.method,c,null),_e(t,e,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}Ee(u,a),u=of(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(typeof u!="function"&&hn(a,u),t.onclick=$l);break;case"onScroll":u!=null&&(typeof u!="function"&&hn(a,u),Xt("scroll",t));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&hn(a,u),Xt("scrollend",t));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=a}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}Ee(u,a),a=of(""+u),t.setAttributeNS(Bd,"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"?(Ee(u,a),t.setAttribute(a,""+u)):t.removeAttribute(a);break;case"inert":u!==""||Xb[a]||(Xb[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":u===!0?t.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(Ee(u,a),t.setAttribute(a,u)):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(Ee(u,a),t.setAttribute(a,u)):t.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(a):(Ee(u,a),t.setAttribute(a,u));break;case"popover":Xt("beforetoggle",t),Xt("toggle",t),Gl(t,"popover",u);break;case"xlinkActuate":wn(t,Bd,"xlink:actuate",u);break;case"xlinkArcrole":wn(t,Bd,"xlink:arcrole",u);break;case"xlinkRole":wn(t,Bd,"xlink:role",u);break;case"xlinkShow":wn(t,Bd,"xlink:show",u);break;case"xlinkTitle":wn(t,Bd,"xlink:title",u);break;case"xlinkType":wn(t,Bd,"xlink:type",u);break;case"xmlBase":wn(t,B1,"xml:base",u);break;case"xmlLang":wn(t,B1,"xml:lang",u);break;case"xmlSpace":wn(t,B1,"xml:space",u);break;case"is":f!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Gl(t,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":aE||u==null||typeof u!="object"||(aE=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=w0(a),Gl(t,a,u)):zu.hasOwnProperty(a)&&u!=null&&typeof u!="function"&&hn(a,u)}}function rr(t,e,a,u,c,f){switch(a){case"style":xp(t,u,f);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=a}}break;case"children":typeof u=="string"?Da(t,u):(typeof u=="number"||typeof u=="bigint")&&Da(t,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&hn(a,u),Xt("scroll",t));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&hn(a,u),Xt("scrollend",t));break;case"onClick":u!=null&&(typeof u!="function"&&hn(a,u),t.onclick=$l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(zu.hasOwnProperty(a))u!=null&&typeof u!="function"&&hn(a,u);else t:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),e=a.slice(2,c?a.length-7:void 0),f=t[Wa]||null,f=f!=null?f[a]:null,typeof f=="function"&&t.removeEventListener(e,f,c),typeof u=="function")){typeof f!="function"&&f!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,u,c);break t}a in t?t[a]=u:u===!0?t.setAttribute(a,""):Gl(t,a,u)}}}function ln(t,e,a){switch($a(e,a),e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",t),Xt("load",t);var u=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var y=a[f];if(y!=null)switch(f){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_e(t,e,f,y,a,null)}}c&&_e(t,e,"srcSet",a.srcSet,a,null),u&&_e(t,e,"src",a.src,a,null);return;case"input":$i("input",a),Xt("invalid",t);var g=f=y=c=null,T=null,x=null;for(u in a)if(a.hasOwnProperty(u)){var V=a[u];if(V!=null)switch(u){case"name":c=V;break;case"type":y=V;break;case"checked":T=V;break;case"defaultChecked":x=V;break;case"value":f=V;break;case"defaultValue":g=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_e(t,e,u,V,a,null)}}ma(t,a),zc(t,f,g,T,x,y,c,!1);return;case"select":$i("select",a),Xt("invalid",t),u=y=f=null;for(c in a)if(a.hasOwnProperty(c)&&(g=a[c],g!=null))switch(c){case"value":f=g;break;case"defaultValue":y=g;break;case"multiple":u=g;default:_e(t,e,c,g,a,null)}Ba(t,a),e=f,a=y,t.multiple=!!u,e!=null?Ql(t,!!u,e,!1):a!=null&&Ql(t,!!u,a,!0);return;case"textarea":$i("textarea",a),Xt("invalid",t),f=c=u=null;for(y in a)if(a.hasOwnProperty(y)&&(g=a[y],g!=null))switch(y){case"value":u=g;break;case"defaultValue":c=g;break;case"children":f=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_e(t,e,y,g,a,null)}Wi(t,a),nl(t,u,c,f);return;case"option":Id(t,a);for(T in a)if(a.hasOwnProperty(T)&&(u=a[T],u!=null))switch(T){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:_e(t,e,T,u,a,null)}return;case"dialog":Xt("beforetoggle",t),Xt("toggle",t),Xt("cancel",t),Xt("close",t);break;case"iframe":case"object":Xt("load",t);break;case"video":case"audio":for(u=0;u<l0.length;u++)Xt(l0[u],t);break;case"image":Xt("error",t),Xt("load",t);break;case"details":Xt("toggle",t);break;case"embed":case"source":case"link":Xt("error",t),Xt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in a)if(a.hasOwnProperty(x)&&(u=a[x],u!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_e(t,e,x,u,a,null)}return;default:if(Pi(e)){for(V in a)a.hasOwnProperty(V)&&(u=a[V],u!==void 0&&rr(t,e,V,u,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(u=a[g],u!=null&&_e(t,e,g,u,a,null))}function Xn(t,e,a,u){switch($a(e,u),e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,y=null,g=null,T=null,x=null,V=null;for(J in a){var L=a[J];if(a.hasOwnProperty(J)&&L!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":T=L;default:u.hasOwnProperty(J)||_e(t,e,J,null,u,L)}}for(var U in u){var J=u[U];if(L=a[U],u.hasOwnProperty(U)&&(J!=null||L!=null))switch(U){case"type":f=J;break;case"name":c=J;break;case"checked":x=J;break;case"defaultChecked":V=J;break;case"value":y=J;break;case"defaultValue":g=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:J!==L&&_e(t,e,U,J,u,L)}}e=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,e||!u||eE||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),eE=!0),!e||u||tE||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),tE=!0),Fi(t,y,g,T,x,V,f,c);return;case"select":J=y=g=U=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":J=T;default:u.hasOwnProperty(f)||_e(t,e,f,null,u,T)}for(c in u)if(f=u[c],T=a[c],u.hasOwnProperty(c)&&(f!=null||T!=null))switch(c){case"value":U=f;break;case"defaultValue":g=f;break;case"multiple":y=f;default:f!==T&&_e(t,e,c,f,u,T)}u=g,e=y,a=J,U!=null?Ql(t,!!e,U,!1):!!a!=!!e&&(u!=null?Ql(t,!!e,u,!0):Ql(t,!!e,e?[]:"",!1));return;case"textarea":J=U=null;for(g in a)if(c=a[g],a.hasOwnProperty(g)&&c!=null&&!u.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:_e(t,e,g,null,u,c)}for(y in u)if(c=u[y],f=a[y],u.hasOwnProperty(y)&&(c!=null||f!=null))switch(y){case"value":U=c;break;case"defaultValue":J=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==f&&_e(t,e,y,c,u,f)}Zl(t,U,J);return;case"option":for(var yt in a)if(U=a[yt],a.hasOwnProperty(yt)&&U!=null&&!u.hasOwnProperty(yt))switch(yt){case"selected":t.selected=!1;break;default:_e(t,e,yt,null,u,U)}for(T in u)if(U=u[T],J=a[T],u.hasOwnProperty(T)&&U!==J&&(U!=null||J!=null))switch(T){case"selected":t.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:_e(t,e,T,U,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 At in a)U=a[At],a.hasOwnProperty(At)&&U!=null&&!u.hasOwnProperty(At)&&_e(t,e,At,null,u,U);for(x in u)if(U=u[x],J=a[x],u.hasOwnProperty(x)&&U!==J&&(U!=null||J!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_e(t,e,x,U,u,J)}return;default:if(Pi(e)){for(var en in a)U=a[en],a.hasOwnProperty(en)&&U!==void 0&&!u.hasOwnProperty(en)&&rr(t,e,en,void 0,u,U);for(V in u)U=u[V],J=a[V],!u.hasOwnProperty(V)||U===J||U===void 0&&J===void 0||rr(t,e,V,U,u,J);return}}for(var Ae in a)U=a[Ae],a.hasOwnProperty(Ae)&&U!=null&&!u.hasOwnProperty(Ae)&&_e(t,e,Ae,null,u,U);for(L in u)U=u[L],J=a[L],!u.hasOwnProperty(L)||U===J||U==null&&J==null||_e(t,e,L,U,u,J)}function ro(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function as(t){var e={};t=t.style;for(var a=0;a<t.length;a++){var u=t[a];e[u]=t.getPropertyValue(u)}return e}function Tu(t,e,a){if(e!=null&&typeof e!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,c=u="",f;for(f in e)if(e.hasOwnProperty(f)){var y=e[f];y!=null&&typeof y!="boolean"&&y!==""&&(f.indexOf("--")===0?(fi(y,f),u+=c+f+":"+(""+y).trim()):typeof y!="number"||y===0||Rt.has(f)?(fi(y,f),u+=c+f.replace(I,"-$1").toLowerCase().replace(zt,"-ms-")+":"+(""+y).trim()):u+=c+f.replace(I,"-$1").toLowerCase().replace(zt,"-ms-")+":"+y+"px",c=";")}u=u||null,e=t.getAttribute("style"),e!==u&&(u=Bi(u),Bi(e)!==u&&(a.style=as(t)))}}function ol(t,e,a,u,c,f){if(c.delete(a),t=t.getAttribute(a),t===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Ee(u,e),t===""+u)return}dn(e,t,u,f)}function um(t,e,a,u,c,f){if(c.delete(a),t=t.getAttribute(a),t===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}dn(e,t,u,f)}function om(t,e,a,u,c,f){if(c.delete(a),t=t.getAttribute(a),t===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(Ee(u,a),t===""+u)return}dn(e,t,u,f)}function fr(t,e,a,u,c,f){if(c.delete(a),t=t.getAttribute(a),t===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(Ee(u,e),t===""+u))return}dn(e,t,u,f)}function td(t,e,a,u,c,f){if(c.delete(a),t=t.getAttribute(a),t===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Ee(u,e),a=of(""+u),t===a)return}dn(e,t,u,f)}function sl(t,e,a,u){for(var c={},f=new Set,y=t.attributes,g=0;g<y.length;g++)switch(y[g].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:f.add(y[g].name)}if(Pi(e)){for(var T in a)if(a.hasOwnProperty(T)){var x=a[T];if(x!=null){if(zu.hasOwnProperty(T))typeof x!="function"&&hn(T,x);else if(a.suppressHydrationWarning!==!0)switch(T){case"children":typeof x!="string"&&typeof x!="number"||dn("children",t.textContent,x,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":y=t.innerHTML,x=x?x.__html:void 0,x!=null&&(x=im(t,x),dn(T,y,x,c));continue;case"style":f.delete(T),Tu(t,x,c);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":f.delete(T.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",T);continue;case"className":f.delete("class"),y=Yl(t,"class",x),dn("className",y,x,c);continue;default:u.context===Sc&&e!=="svg"&&e!=="math"?f.delete(T.toLowerCase()):f.delete(T),y=Yl(t,T,x),dn(T,y,x,c)}}}}else for(x in a)if(a.hasOwnProperty(x)&&(T=a[x],T!=null)){if(zu.hasOwnProperty(x))typeof T!="function"&&hn(x,T);else if(a.suppressHydrationWarning!==!0)switch(x){case"children":typeof T!="string"&&typeof T!="number"||dn("children",t.textContent,T,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":y=t.innerHTML,T=T?T.__html:void 0,T!=null&&(T=im(t,T),y!==T&&(c[x]={__html:y}));continue;case"className":ol(t,x,"class",T,f,c);continue;case"tabIndex":ol(t,x,"tabindex",T,f,c);continue;case"style":f.delete(x),Tu(t,T,c);continue;case"multiple":f.delete(x),dn(x,t.multiple,T,c);continue;case"muted":f.delete(x),dn(x,t.muted,T,c);continue;case"autoFocus":f.delete("autofocus"),dn(x,t.autofocus,T,c);continue;case"data":if(e!=="object"){f.delete(x),y=t.getAttribute("data"),dn(x,y,T,c);continue}case"src":case"href":if(!(T!==""||e==="a"&&x==="href"||e==="object"&&x==="data")){console.error(x==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',x,x);continue}td(t,x,x,T,f,c);continue;case"action":case"formAction":if(y=t.getAttribute(x),typeof T=="function"){f.delete(x.toLowerCase()),x==="formAction"?(f.delete("name"),f.delete("formenctype"),f.delete("formmethod"),f.delete("formtarget")):(f.delete("enctype"),f.delete("method"),f.delete("target"));continue}else if(y===W3){f.delete(x.toLowerCase()),dn(x,"function",T,c);continue}td(t,x,x.toLowerCase(),T,f,c);continue;case"xlinkHref":td(t,x,"xlink:href",T,f,c);continue;case"contentEditable":om(t,x,"contenteditable",T,f,c);continue;case"spellCheck":om(t,x,"spellcheck",T,f,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":om(t,x,x,T,f,c);continue;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":um(t,x,x.toLowerCase(),T,f,c);continue;case"capture":case"download":t:{g=t;var V=y=x,L=c;if(f.delete(V),g=g.getAttribute(V),g===null)switch(typeof T){case"undefined":case"function":case"symbol":break t;default:if(T===!1)break t}else if(T!=null)switch(typeof T){case"function":case"symbol":break;case"boolean":if(T===!0&&g==="")break t;break;default:if(Ee(T,y),g===""+T)break t}dn(y,g,T,L)}continue;case"cols":case"rows":case"size":case"span":t:{if(g=t,V=y=x,L=c,f.delete(V),g=g.getAttribute(V),g===null)switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":break t;default:if(isNaN(T)||1>T)break t}else if(T!=null)switch(typeof T){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(T)||1>T)&&(Ee(T,y),g===""+T))break t}dn(y,g,T,L)}continue;case"rowSpan":fr(t,x,"rowspan",T,f,c);continue;case"start":fr(t,x,x,T,f,c);continue;case"xHeight":ol(t,x,"x-height",T,f,c);continue;case"xlinkActuate":ol(t,x,"xlink:actuate",T,f,c);continue;case"xlinkArcrole":ol(t,x,"xlink:arcrole",T,f,c);continue;case"xlinkRole":ol(t,x,"xlink:role",T,f,c);continue;case"xlinkShow":ol(t,x,"xlink:show",T,f,c);continue;case"xlinkTitle":ol(t,x,"xlink:title",T,f,c);continue;case"xlinkType":ol(t,x,"xlink:type",T,f,c);continue;case"xmlBase":ol(t,x,"xml:base",T,f,c);continue;case"xmlLang":ol(t,x,"xml:lang",T,f,c);continue;case"xmlSpace":ol(t,x,"xml:space",T,f,c);continue;case"inert":T!==""||Xb[x]||(Xb[x]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",x)),um(t,x,x,T,f,c);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){g=w0(x),y=!1,u.context===Sc&&e!=="svg"&&e!=="math"?f.delete(g.toLowerCase()):(V=x.toLowerCase(),V=qi.hasOwnProperty(V)&&qi[V]||null,V!==null&&V!==x&&(y=!0,f.delete(V)),f.delete(g));t:if(V=t,L=g,g=T,yi(L))if(V.hasAttribute(L))V=V.getAttribute(L),Ee(g,L),g=V===""+g?g:V;else{switch(typeof g){case"function":case"symbol":break t;case"boolean":if(V=L.toLowerCase().slice(0,5),V!=="data-"&&V!=="aria-")break t}g=g===void 0?void 0:null}else g=void 0;y||dn(x,g,T,c)}}}return 0<f.size&&a.suppressHydrationWarning!==!0&&Pf(t,f,c),Object.keys(c).length===0?null:c}function vv(t,e){switch(t.length){case 0:return"";case 1:return t[0];case 2:return t[0]+" "+e+" "+t[1];default:return t.slice(0,-1).join(", ")+", "+e+" "+t[t.length-1]}}function ka(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var c=a[u],f=c.transferSize,y=c.initiatorType,g=c.duration;if(f&&g&&ka(y)){for(y=0,g=c.responseEnd,u+=1;u<a.length;u++){var T=a[u],x=T.startTime;if(x>g)break;var V=T.transferSize,L=T.initiatorType;V&&ka(L)&&(T=T.responseEnd,y+=V*(T<g?1:(g-x)/(T-x)))}if(--u,e+=8*(f+y)/(c.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}function ed(t){return t.nodeType===9?t:t.ownerDocument}function Sv(t){switch(t){case le:return op;case Pt:return Zb;default:return Sc}}function fo(t,e){if(t===Sc)switch(e){case"svg":return op;case"math":return Zb;default:return Sc}return t===op&&e==="foreignObject"?Sc:t}function dr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}function Zy(){var t=window.event;return t&&t.type==="popstate"?t===q1?!1:(q1=t,!0):(q1=null,!1)}function Au(){var t=window.event;return t&&t!==o0?t.type:null}function hr(){var t=window.event;return t&&t!==o0?t.timeStamp:-1.1}function Tv(t){setTimeout(function(){throw t})}function Av(t,e,a){switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&t.focus();break;case"img":a.src?t.src=a.src:a.srcSet&&(t.srcset=a.srcSet)}}function Ev(){}function sm(t,e,a,u){Xn(t,e,a,u),t[Wa]=u}function cm(t){Da(t,"")}function RS(t,e,a){t.nodeValue=a}function xv(t){if(!t.__reactWarnedAboutChildrenConflict){var e=t[Wa]||null;if(e!==null){var a=kn(t);a!==null&&(typeof e.children=="string"||typeof e.children=="number"?(t.__reactWarnedAboutChildrenConflict=!0,mt(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):e.dangerouslySetInnerHTML!=null&&(t.__reactWarnedAboutChildrenConflict=!0,mt(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function ls(t){return t==="head"}function Dv(t,e){t.removeChild(e)}function Mv(t,e){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(e)}function Ws(t,e){var a=e,u=0;do{var c=a.nextSibling;if(t.removeChild(a),c&&c.nodeType===8)if(a=c.data,a===u0||a===Qb){if(u===0){t.removeChild(c),ec(e);return}u--}else if(a===i0||a===Fr||a===Hd||a===up||a===Vd)u++;else if(a===P3)mo(t.ownerDocument.documentElement);else if(a===ez){a=t.ownerDocument.head,mo(a);for(var f=a.firstChild;f;){var y=f.nextSibling,g=f.nodeName;f[Rr]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=y}}else a===tz&&mo(t.ownerDocument.body);a=c}while(a);ec(e)}function nd(t,e){var a=t;t=0;do{var u=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a===u0){if(t===0)break;t--}else a!==i0&&a!==Fr&&a!==Hd&&a!==up||t++;a=u}while(a)}function zv(t){nd(t,!0)}function Cv(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Rv(t){t.nodeValue=""}function Ov(t){nd(t,!1)}function Uv(t,e){e=e[nz],e=e!=null&&e.hasOwnProperty("display")?e.display:null,t.style.display=e==null||typeof e=="boolean"?"":(""+e).trim()}function wv(t,e){t.nodeValue=e}function mr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":mr(a),el(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function jv(t,e,a,u){for(;t.nodeType===1;){var c=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Rr])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(f=t.getAttribute("src"),(f!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){Ee(c.name,"name");var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Cl(t.nextSibling),t===null)break}return null}function Nv(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Cl(t.nextSibling),t===null))return null;return t}function qe(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Cl(t.nextSibling),t===null))return null;return t}function ad(t){return t.data===Fr||t.data===Hd}function Jy(t){return t.data===up||t.data===Fr&&t.ownerDocument.readyState!==iE}function _v(t,e){var a=t.ownerDocument;if(t.data===Hd)t._reactRetry=e;else if(t.data!==Fr||a.readyState!==iE)e();else{var u=function(){e(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Cl(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e===i0||e===up||e===Fr||e===Hd||e===Vd||e===V1||e===lE)break;if(e===u0||e===Qb)return null}}return t}function Bv(t){if(t.nodeType===1){for(var e=t.nodeName.toLowerCase(),a={},u=t.attributes,c=0;c<u.length;c++){var f=u[c];a[ro(f.name)]=f.name.toLowerCase()==="style"?as(t):f.value}return{type:e,props:a}}return t.nodeType===8?t.data===Vd?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:t.nodeValue}function Vv(t,e,a){return a===null||a[I3]!==!0?(t.nodeValue===e?t=null:(e=Bi(e),t=Bi(t.nodeValue)===e?null:t.nodeValue),t):null}function pr(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a===u0||a===Qb){if(e===0)return Cl(t.nextSibling);e--}else a!==i0&&a!==up&&a!==Fr&&a!==Hd&&a!==Vd||e++}t=t.nextSibling}return null}function Is(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a===i0||a===up||a===Fr||a===Hd||a===Vd){if(e===0)return t;e--}else a!==u0&&a!==Qb||e++}t=t.previousSibling}return null}function Ky(t){ec(t)}function rm(t){ec(t)}function $y(t){ec(t)}function ho(t,e,a,u,c){switch(c&&En(t,u.ancestorInfo),e=ed(a),t){case"html":if(t=e.documentElement,!t)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"head":if(t=e.head,!t)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"body":if(t=e.body,!t)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return t;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Eu(t,e,a,u){if(!a[yo]&&kn(a)){var c=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",c,c,c)}switch(t){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(c=a.attributes;c.length;)a.removeAttributeNode(c[0]);ln(a,t,e),a[un]=u,a[Wa]=e}function mo(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);el(t)}function fm(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function ky(t,e,a){var u=sp;if(u&&typeof e=="string"&&e){var c=Re(e);c='link[rel="'+t+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),fE.has(c)||(fE.add(c),t={rel:t,crossOrigin:a,href:e},u.querySelector(c)===null&&(e=u.createElement("link"),ln(e,"link",t),Ke(e),u.head.appendChild(e)))}}function Fy(t,e,a,u){var c=(c=Rl.current)?fm(c):null;if(!c)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ps(a.href),e=pl(c).hoistableStyles,u=e.get(a),u||(u={type:"style",instance:null,count:0,state:null},e.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Ps(a.href);var f=pl(c).hoistableStyles,y=f.get(t);if(!y&&(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:qd,preload:null}},f.set(t,y),(f=c.querySelector(id(t)))&&!f._p&&(y.instance=f,y.state.loading=s0|Hu),!Lu.has(t))){var g={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Lu.set(t,g),f||Hv(c,t,g,y.state)}if(e&&u===null)throw a=`
|
|
187
|
-
|
|
188
|
-
- `+ld(e)+`
|
|
189
|
-
+ `+ld(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return y}if(e&&u!==null)throw a=`
|
|
190
|
-
|
|
191
|
-
- `+ld(e)+`
|
|
192
|
-
+ `+ld(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(a=tc(a),e=pl(c).hoistableScripts,u=e.get(a),u||(u={type:"script",instance:null,count:0,state:null},e.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+t+'". this is a bug in React.')}}function ld(t){var e=0,a="<link";return typeof t.rel=="string"?(e++,a+=' rel="'+t.rel+'"'):Ol.call(t,"rel")&&(e++,a+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(e++,a+=' href="'+t.href+'"'):Ol.call(t,"href")&&(e++,a+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(e++,a+=' precedence="'+t.precedence+'"'):Ol.call(t,"precedence")&&(e++,a+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>e&&(a+=" ..."),a+" />"}function Ps(t){return'href="'+Re(t)+'"'}function id(t){return'link[rel="stylesheet"]['+t+"]"}function dm(t){return ue({},t,{"data-precedence":t.precedence,precedence:null})}function Hv(t,e,a,u){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?u.loading=s0:(e=t.createElement("link"),u.preload=e,e.addEventListener("load",function(){return u.loading|=s0}),e.addEventListener("error",function(){return u.loading|=cE}),ln(e,"link",a),Ke(e),t.head.appendChild(e))}function tc(t){return'[src="'+Re(t)+'"]'}function ud(t){return"script[async]"+t}function hm(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var u=t.querySelector('style[data-href~="'+Re(a.href)+'"]');if(u)return e.instance=u,Ke(u),u;var c=ue({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Ke(u),ln(u,"style",c),yr(u,a.precedence,t),e.instance=u;case"stylesheet":c=Ps(a.href);var f=t.querySelector(id(c));if(f)return e.state.loading|=Hu,e.instance=f,Ke(f),f;u=dm(a),(c=Lu.get(c))&&Wy(u,c),f=(t.ownerDocument||t).createElement("link"),Ke(f);var y=f;return y._p=new Promise(function(g,T){y.onload=g,y.onerror=T}),ln(f,"link",u),e.state.loading|=Hu,yr(f,a.precedence,t),e.instance=f;case"script":return f=tc(a.src),(c=t.querySelector(ud(f)))?(e.instance=c,Ke(c),c):(u=a,(c=Lu.get(f))&&(u=ue({},a),Iy(u,c)),t=t.ownerDocument||t,c=t.createElement("script"),Ke(c),ln(c,"link",u),t.head.appendChild(c),e.instance=c);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+e.type+'". this is a bug in React.')}else e.type==="stylesheet"&&(e.state.loading&Hu)===qd&&(u=e.instance,e.state.loading|=Hu,yr(u,a.precedence,t));return e.instance}function yr(t,e,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,f=c,y=0;y<u.length;y++){var g=u[y];if(g.dataset.precedence===e)f=g;else if(f!==c)break}f?f.parentNode.insertBefore(t,f.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Wy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Iy(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}function gr(t,e,a){if(Jb===null){var u=new Map,c=Jb=new Map;c.set(a,u)}else c=Jb,u=c.get(a),u||(u=new Map,c.set(a,u));if(u.has(t))return u;for(u.set(t,null),a=a.getElementsByTagName(t),c=0;c<a.length;c++){var f=a[c];if(!(f[Rr]||f[un]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!==le){var y=f.getAttribute(e)||"";y=t+y;var g=u.get(y);g?g.push(f):u.set(y,[f])}}return u}function Lv(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function qv(t,e,a){var u=!a.ancestorInfo.containerTagInScope;if(a.context===op||e.itemProp!=null)return!u||e.itemProp==null||t!=="meta"&&t!=="title"&&t!=="style"&&t!=="link"&&t!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",t,t),!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError){if(e.rel==="stylesheet"&&typeof e.precedence=="string"){t=e.href;var c=e.onError,f=e.disabled;a=[],e.onLoad&&a.push("`onLoad`"),c&&a.push("`onError`"),f!=null&&a.push("`disabled`"),c=vv(a,"and"),c+=a.length===1?" prop":" props",f=a.length===1?"an "+c:"the "+c,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',t,f,c)}u&&(typeof e.rel!="string"||typeof e.href!="string"||e.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(e.onError||e.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(e.rel){case"stylesheet":return t=e.precedence,e=e.disabled,typeof t!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof t=="string"&&e==null;default:return!0}case"script":if(t=e.async&&typeof e.async!="function"&&typeof e.async!="symbol",!t||e.onLoad||e.onError||!e.src||typeof e.src!="string"){u&&(t?e.onLoad||e.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",t)}return!1}function pe(t){return!(t.type==="stylesheet"&&(t.state.loading&rE)===qd)}function Py(t,e,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&Hu)===qd){if(a.instance===null){var c=Ps(u.href),f=e.querySelector(id(c));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=vr.bind(t),e.then(t,t)),a.state.loading|=Hu,a.instance=f,Ke(f);return}f=e.ownerDocument||e,u=dm(u),(c=Lu.get(c))&&Wy(u,c),f=f.createElement("link"),Ke(f);var y=f;y._p=new Promise(function(g,T){y.onload=g,y.onerror=T}),ln(f,"link",u),a.instance=f}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&rE)===qd&&(t.count++,a=vr.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}function mm(t,e){return t.stylesheets&&t.count===0&&od(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var u=setTimeout(function(){if(t.stylesheets&&od(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f()}},iz+e);0<t.imgBytes&&G1===0&&(G1=125*bv()*oz);var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&od(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f()}},(t.imgBytes>G1?50:uz)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(c)}}:null}function vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)od(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function od(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Kb=new Map,e.forEach(tg,t),Kb=null,vr.call(t))}function tg(t,e){if(!(e.state.loading&Hu)){var a=Kb.get(t);if(a)var u=a.get(X1);else{a=new Map,Kb.set(t,a);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var y=c[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),u=y)}u&&a.set(X1,u)}c=e.instance,y=c.getAttribute("data-precedence"),f=a.get(y)||u,f===u&&a.set(X1,c),a.set(y,c),this.count++,u=vr.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),f?f.parentNode.insertBefore(c,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),e.state.loading|=Hu}}function sd(t,e,a,u,c,f,y,g,T){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ld,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zo(0),this.hiddenUpdates=zo(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],e=0;31>e;e++)t.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function cd(t,e,a,u,c,f,y,g,T,x,V,L){return t=new sd(t,e,a,y,T,x,V,L,g),e=U3,f===!0&&(e|=fl|go),e|=oe,f=N(3,null,null,e),t.current=f,f.stateNode=t,e=hh(),Rs(e),t.pooledCache=e,Rs(e),f.memoizedState={element:u,isDehydrated:a,cache:e},ge(f),t}function Yv(t){return t?(t=_r,t):_r}function pm(t,e,a,u,c,f){if(Qn&&typeof Qn.onScheduleFiberRoot=="function")try{Qn.onScheduleFiberRoot(ic,u,a)}catch(y){Du||(Du=!0,console.error("React instrumentation encountered an error: %o",y))}c=Yv(c),u.context===null?u.context=c:u.pendingContext=c,xu&&rl!==null&&!pE&&(pE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
193
|
-
|
|
194
|
-
Check the render method of %s.`,pt(rl)||"Unknown")),u=Yn(e),u.payload={element:a},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",f),u.callback=f),a=uu(t,u,e),a!==null&&(au(e,"root.render()",null),Zt(a,t,e),ei(a,t,e))}function Gv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function eg(t,e){Gv(t,e),(t=t.alternate)&&Gv(t,e)}function ng(t){if(t.tag===13||t.tag===31){var e=Ma(t,67108864);e!==null&&Zt(e,t,67108864),eg(t,67108864)}}function ag(t){if(t.tag===13||t.tag===31){var e=Ca(t);e=Ht(e);var a=Ma(t,e);a!==null&&Zt(a,t,e),eg(t,e)}}function Xe(){return rl}function lg(t,e,a,u){var c=W.T;W.T=null;var f=Be.p;try{Be.p=Zn,ig(t,e,a,u)}finally{Be.p=f,W.T=c}}function ya(t,e,a,u){var c=W.T;W.T=null;var f=Be.p;try{Be.p=va,ig(t,e,a,u)}finally{Be.p=f,W.T=c}}function ig(t,e,a,u){if(kb){var c=ym(u);if(c===null)Ni(t,e,u,Fb,a),vm(t,u);else if(Xv(c,t,e,a,u))u.stopPropagation();else if(vm(t,u),e&4&&-1<cz.indexOf(t)){for(;c!==null;){var f=kn(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=tl(f.pendingLanes);if(y!==0){var g=f;for(g.pendingLanes|=2,g.entangledLanes|=2;y;){var T=1<<31-ga(y);g.entanglements[1]|=T,y&=~T}ul(f),(Ce&(Sa|Qi))===ja&&(wb=aa()+XA,bu(0))}}break;case 31:case 13:g=Ma(f,2),g!==null&&Zt(g,f,2),zl(),eg(f,2)}if(f=ym(u),f===null&&Ni(t,e,u,Fb,a),f===c)break;c=f}c!==null&&u.stopPropagation()}else Ni(t,e,u,null,a)}}function ym(t){return t=vi(t),ug(t)}function ug(t){if(Fb=null,t=_a(t),t!==null){var e=P(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=ot(e),t!==null)return t;t=null}else if(a===31){if(t=it(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Fb=t,null}function gm(t){switch(t){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 Zn;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 va;case"message":switch(pd()){case yg:return Zn;case zm:return va;case lc:case kv:return Oa;case Cm:return cs;default:return Oa}default:return Oa}}function vm(t,e){switch(t){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Ir=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":r0.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":f0.delete(e.pointerId)}}function is(t,e,a,u,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:e,domEventName:a,eventSystemFlags:u,nativeEvent:f,targetContainers:[c]},e!==null&&(e=kn(e),e!==null&&ng(e)),t):(t.eventSystemFlags|=u,e=t.targetContainers,c!==null&&e.indexOf(c)===-1&&e.push(c),t)}function Xv(t,e,a,u,c){switch(e){case"focusin":return Wr=is(Wr,t,e,a,u,c),!0;case"dragenter":return Ir=is(Ir,t,e,a,u,c),!0;case"mouseover":return Pr=is(Pr,t,e,a,u,c),!0;case"pointerover":var f=c.pointerId;return r0.set(f,is(r0.get(f)||null,t,e,a,u,c)),!0;case"gotpointercapture":return f=c.pointerId,f0.set(f,is(f0.get(f)||null,t,e,a,u,c)),!0}return!1}function og(t){var e=_a(t.target);if(e!==null){var a=P(e);if(a!==null){if(e=a.tag,e===13){if(e=ot(a),e!==null){t.blockedOn=e,Ki(t.priority,function(){ag(a)});return}}else if(e===31){if(e=it(a),e!==null){t.blockedOn=e,Ki(t.priority,function(){ag(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function br(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=ym(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a),c=u;Tg!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Tg=c,a.target.dispatchEvent(u),Tg===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Tg=null}else return e=kn(a),e!==null&&ng(e),t.blockedOn=a,!1;e.shift()}return!0}function bm(t,e,a){br(t)&&a.delete(e)}function OS(){Q1=!1,Wr!==null&&br(Wr)&&(Wr=null),Ir!==null&&br(Ir)&&(Ir=null),Pr!==null&&br(Pr)&&(Pr=null),r0.forEach(bm),f0.forEach(bm)}function rd(t,e){t.blockedOn===e&&(t.blockedOn=null,Q1||(Q1=!0,Cn.unstable_scheduleCallback(Cn.unstable_NormalPriority,OS)))}function Qv(t){Wb!==t&&(Wb=t,Cn.unstable_scheduleCallback(Cn.unstable_NormalPriority,function(){Wb===t&&(Wb=null);for(var e=0;e<t.length;e+=3){var a=t[e],u=t[e+1],c=t[e+2];if(typeof u!="function"){if(ug(u||a)===null)continue;break}var f=kn(a);f!==null&&(t.splice(e,3),e-=3,a={pending:!0,data:c,method:a.method,action:u},Object.freeze(a),io(f,a,u,c))}}))}function ec(t){function e(T){return rd(T,t)}Wr!==null&&rd(Wr,t),Ir!==null&&rd(Ir,t),Pr!==null&&rd(Pr,t),r0.forEach(e),f0.forEach(e);for(var a=0;a<tf.length;a++){var u=tf[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<tf.length&&(a=tf[0],a.blockedOn===null);)og(a),a.blockedOn===null&&tf.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var c=a[u],f=a[u+1],y=c[Wa]||null;if(typeof f=="function")y||Qv(a);else if(y){var g=null;if(f&&f.hasAttribute("formAction")){if(c=f,y=f[Wa]||null)g=y.formAction;else if(ug(c)!==null)continue}else g=y.action;typeof g=="function"?a[u+1]=g:(a.splice(u,3),u-=3),Qv(a)}}}function Zv(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function e(){c!==null&&(c(),c=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),c!==null&&(c(),c=null)}}}function sg(t){this._internalRoot=t}function Vi(t){this._internalRoot=t}function cg(t){t[yo]&&(t._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Cn=GM(),fd=G,US=tD,ue=Object.assign,Jv=Symbol.for("react.element"),ii=Symbol.for("react.transitional.element"),us=Symbol.for("react.portal"),Sr=Symbol.for("react.fragment"),Fa=Symbol.for("react.strict_mode"),dd=Symbol.for("react.profiler"),Sm=Symbol.for("react.consumer"),Hi=Symbol.for("react.context"),Tr=Symbol.for("react.forward_ref"),nc=Symbol.for("react.suspense"),cl=Symbol.for("react.suspense_list"),hd=Symbol.for("react.memo"),Ra=Symbol.for("react.lazy"),Li=Symbol.for("react.activity"),wS=Symbol.for("react.memo_cache_sentinel"),Kv=Symbol.iterator,Ar=Symbol.for("react.client.reference"),Vn=Array.isArray,W=fd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=US.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jS=Object.freeze({pending:!1,data:null,method:null,action:null}),rg=[],fg=[],po=-1,os=Wt(null),Er=Wt(null),Rl=Wt(null),ss=Wt(null),xr=0,$v,ac,Dr,dg,md,Tm,Am;Ot.__reactDisabledLog=!0;var Mr,hg,Em=!1,mg=new(typeof WeakMap=="function"?WeakMap:Map),rl=null,xu=!1,Ol=Object.prototype.hasOwnProperty,pg=Cn.unstable_scheduleCallback,xm=Cn.unstable_cancelCallback,Dm=Cn.unstable_shouldYield,Mm=Cn.unstable_requestPaint,aa=Cn.unstable_now,pd=Cn.unstable_getCurrentPriorityLevel,yg=Cn.unstable_ImmediatePriority,zm=Cn.unstable_UserBlockingPriority,lc=Cn.unstable_NormalPriority,kv=Cn.unstable_LowPriority,Cm=Cn.unstable_IdlePriority,gg=Cn.log,Fv=Cn.unstable_setDisableYieldValue,ic=null,Qn=null,Du=!1,Mu=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ga=Math.clz32?Math.clz32:hi,vg=Math.log,Rm=Math.LN2,zr=256,yd=262144,Cr=4194304,Zn=2,va=8,Oa=32,cs=268435456,ui=Math.random().toString(36).slice(2),un="__reactFiber$"+ui,Wa="__reactProps$"+ui,yo="__reactContainer$"+ui,uc="__reactEvents$"+ui,NS="__reactListeners$"+ui,Wv="__reactHandles$"+ui,gd="__reactResources$"+ui,Rr="__reactMarker$"+ui,Iv=new Set,zu={},Or={},Pv={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Ur=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]*$"),bg={},Om={},Um=/[\n"\\]/g,Sg=!1,tb=!1,vd=!1,n=!1,l=!1,i=!1,s=["value","defaultValue"],d=!1,p=/["'&<>\n\t]|^\s|\s$/,b="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),D="applet caption html table td th marquee object template foreignObject desc title".split(" "),j=D.concat(["button"]),Q="dd dt li option optgroup p rp rt".split(" "),tt={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},at={},Z={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},I=/([A-Z])/g,zt=/^ms-/,qt=/^(?:webkit|moz|o)[A-Z]/,Qe=/^-ms-/,Y=/-(.)/g,H=/;\s*$/,X={},nt={},Nt=!1,ze=!1,Rt=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(" ")),Pt="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",we=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"]]),qi={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},eb={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},wm={},XM=RegExp("^(aria)-[: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]*$"),QM=RegExp("^(aria)[A-Z][: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]*$"),g2=!1,Ul={},v2=/^on./,ZM=/^on[^A-Z]/,JM=RegExp("^(aria)-[: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]*$"),KM=RegExp("^(aria)[A-Z][: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]*$"),$M=/^[\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,Tg=null,jm=null,Nm=null,_S=!1,rs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),BS=!1;if(rs)try{var Ag={};Object.defineProperty(Ag,"passive",{get:function(){BS=!0}}),window.addEventListener("test",Ag,Ag),window.removeEventListener("test",Ag,Ag)}catch{BS=!1}var wr=null,VS=null,nb=null,bd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ab=Fn(bd),Eg=ue({},bd,{view:0,detail:0}),kM=Fn(Eg),HS,LS,xg,lb=ue({},Eg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xg&&(xg&&t.type==="mousemove"?(HS=t.screenX-xg.screenX,LS=t.screenY-xg.screenY):LS=HS=0,xg=t),HS)},movementY:function(t){return"movementY"in t?t.movementY:LS}}),b2=Fn(lb),FM=ue({},lb,{dataTransfer:0}),WM=Fn(FM),IM=ue({},Eg,{relatedTarget:0}),qS=Fn(IM),PM=ue({},bd,{animationName:0,elapsedTime:0,pseudoElement:0}),t3=Fn(PM),e3=ue({},bd,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),n3=Fn(e3),a3=ue({},bd,{data:0}),S2=Fn(a3),l3=S2,i3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u3={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"},o3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},s3=ue({},Eg,{key:function(t){if(t.key){var e=i3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=sf(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?u3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cf,charCode:function(t){return t.type==="keypress"?sf(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?sf(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),c3=Fn(s3),r3=ue({},lb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T2=Fn(r3),f3=ue({},Eg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cf}),d3=Fn(f3),h3=ue({},bd,{propertyName:0,elapsedTime:0,pseudoElement:0}),m3=Fn(h3),p3=ue({},lb,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),y3=Fn(p3),g3=ue({},bd,{newState:0,oldState:0}),v3=Fn(g3),b3=[9,13,27,32],A2=229,YS=rs&&"CompositionEvent"in window,Dg=null;rs&&"documentMode"in document&&(Dg=document.documentMode);var S3=rs&&"TextEvent"in window&&!Dg,E2=rs&&(!YS||Dg&&8<Dg&&11>=Dg),x2=32,D2=String.fromCharCode(x2),M2=!1,_m=!1,T3={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},Mg=null,zg=null,z2=!1;rs&&(z2=nh("input")&&(!document.documentMode||9<document.documentMode));var wl=typeof Object.is=="function"?Object.is:ah,A3=rs&&"documentMode"in document&&11>=document.documentMode,Bm=null,GS=null,Cg=null,XS=!1,Vm={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionrun:Ts("Transition","TransitionRun"),transitionstart:Ts("Transition","TransitionStart"),transitioncancel:Ts("Transition","TransitionCancel"),transitionend:Ts("Transition","TransitionEnd")},QS={},C2={};rs&&(C2=document.createElement("div").style,"AnimationEvent"in window||(delete Vm.animationend.animation,delete Vm.animationiteration.animation,delete Vm.animationstart.animation),"TransitionEvent"in window||delete Vm.transitionend.transition);var R2=As("animationend"),O2=As("animationiteration"),U2=As("animationstart"),E3=As("transitionrun"),x3=As("transitionstart"),D3=As("transitioncancel"),w2=As("transitionend"),j2=new Map,ZS="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(" ");ZS.push("scrollEnd");var N2=0;if(typeof performance=="object"&&typeof performance.now=="function")var M3=performance,_2=function(){return M3.now()};else{var z3=Date;_2=function(){return z3.now()}}var JS=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},C3="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",ib=0,KS=1,$S=2,kS=3,ub="– ",ob="+ ",B2=" ",on=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Cu="Components ⚛",Te="Scheduler ⚛",De="Blocking",jr=!1,oc={color:"primary",properties:null,tooltipText:"",track:Cu},Nr={start:-0,end:-0,detail:{devtools:oc}},R3=["Changed Props",""],V2="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",O3=["Changed Props",V2],Rg=1,sc=2,Ru=[],Hm=0,FS=0,_r={};Object.freeze(_r);var Ou=null,Lm=null,Qt=0,U3=1,oe=2,fl=8,go=16,w3=32,H2=!1;try{var L2=Object.preventExtensions({})}catch{H2=!0}var WS=new WeakMap,qm=[],Ym=0,sb=null,Og=0,Uu=[],wu=0,Sd=null,cc=1,rc="",Ia=null,sn=null,Se=!1,fs=!1,Yi=null,Br=null,ju=!1,IS=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),PS=Wt(null),t1=Wt(null),q2={},cb=null,Gm=null,Xm=!1,j3=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,u){t.push(u)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},N3=Cn.unstable_scheduleCallback,_3=Cn.unstable_NormalPriority,la={$$typeof:Hi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ia=Cn.unstable_now,rb=console.createTask?console.createTask:function(){return null},Ug=1,fb=2,Ua=-0,Vr=-0,fc=-0,dc=null,jl=-1.1,Td=-0,Sn=-0,Vt=-1.1,Yt=-1.1,mn=null,Rn=!1,Ad=-0,ds=-1.1,wg=null,Hr=0,e1=null,n1=null,Ed=-1.1,jg=null,Qm=-1.1,db=-1.1,hc=-0,mc=-1.1,Nu=-1.1,a1=0,Ng=null,Y2=null,G2=null,Lr=-1.1,xd=null,qr=-1.1,hb=-1.1,X2=-0,Q2=-0,mb=0,B3=null,Z2=0,_g=-1.1,pb=!1,yb=!1,Bg=null,l1=0,Dd=0,Zm=null,J2=W.S;W.S=function(t,e){if(YA=aa(),typeof e=="object"&&e!==null&&typeof e.then=="function"){if(0>mc&&0>Nu){mc=ia();var a=hr(),u=Au();(a!==qr||u!==xd)&&(qr=-1.1),Lr=a,xd=u}Iu(t,e)}J2!==null&&J2(t,e)};var Md=Wt(null),vo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Vg=[],Hg=[],Lg=[],qg=[],Yg=[],Gg=[],zd=new Set;vo.recordUnsafeLifecycleWarnings=function(t,e){zd.has(t.type)||(typeof e.componentWillMount=="function"&&e.componentWillMount.__suppressDeprecationWarning!==!0&&Vg.push(t),t.mode&fl&&typeof e.UNSAFE_componentWillMount=="function"&&Hg.push(t),typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Lg.push(t),t.mode&fl&&typeof e.UNSAFE_componentWillReceiveProps=="function"&&qg.push(t),typeof e.componentWillUpdate=="function"&&e.componentWillUpdate.__suppressDeprecationWarning!==!0&&Yg.push(t),t.mode&fl&&typeof e.UNSAFE_componentWillUpdate=="function"&&Gg.push(t))},vo.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Vg.length&&(Vg.forEach(function(g){t.add(pt(g)||"Component"),zd.add(g.type)}),Vg=[]);var e=new Set;0<Hg.length&&(Hg.forEach(function(g){e.add(pt(g)||"Component"),zd.add(g.type)}),Hg=[]);var a=new Set;0<Lg.length&&(Lg.forEach(function(g){a.add(pt(g)||"Component"),zd.add(g.type)}),Lg=[]);var u=new Set;0<qg.length&&(qg.forEach(function(g){u.add(pt(g)||"Component"),zd.add(g.type)}),qg=[]);var c=new Set;0<Yg.length&&(Yg.forEach(function(g){c.add(pt(g)||"Component"),zd.add(g.type)}),Yg=[]);var f=new Set;if(0<Gg.length&&(Gg.forEach(function(g){f.add(pt(g)||"Component"),zd.add(g.type)}),Gg=[]),0<e.size){var y=R(e);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
195
|
-
|
|
196
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
197
|
-
|
|
198
|
-
Please update the following components: %s`,y)}0<u.size&&(y=R(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
-
|
|
200
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
202
|
-
|
|
203
|
-
Please update the following components: %s`,y)),0<f.size&&(y=R(f),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
204
|
-
|
|
205
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
206
|
-
|
|
207
|
-
Please update the following components: %s`,y)),0<t.size&&(y=R(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
-
|
|
209
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
210
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
211
|
-
|
|
212
|
-
Please update the following components: %s`,y)),0<a.size&&(y=R(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
213
|
-
|
|
214
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
215
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
216
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
217
|
-
|
|
218
|
-
Please update the following components: %s`,y)),0<c.size&&(y=R(c),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
219
|
-
|
|
220
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
221
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
222
|
-
|
|
223
|
-
Please update the following components: %s`,y))};var gb=new Map,K2=new Set;vo.recordLegacyContextWarning=function(t,e){for(var a=null,u=t;u!==null;)u.mode&fl&&(a=u),u=u.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!K2.has(t.type)&&(u=gb.get(a),t.type.contextTypes!=null||t.type.childContextTypes!=null||e!==null&&typeof e.getChildContext=="function")&&(u===void 0&&(u=[],gb.set(a,u)),u.push(t))},vo.flushLegacyContextWarning=function(){gb.forEach(function(t){if(t.length!==0){var e=t[0],a=new Set;t.forEach(function(c){a.add(pt(c)||"Component"),K2.add(c.type)});var u=R(a);mt(e,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
224
|
-
|
|
225
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
226
|
-
|
|
227
|
-
Please update the following components: %s
|
|
228
|
-
|
|
229
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},vo.discardPendingWarnings=function(){Vg=[],Hg=[],Lg=[],qg=[],Yg=[],Gg=[],gb=new Map};var $2={react_stack_bottom_frame:function(t,e,a){var u=xu;xu=!0;try{return t(e,a)}finally{xu=u}}},i1=$2.react_stack_bottom_frame.bind($2),k2={react_stack_bottom_frame:function(t){var e=xu;xu=!0;try{return t.render()}finally{xu=e}}},F2=k2.react_stack_bottom_frame.bind(k2),W2={react_stack_bottom_frame:function(t,e){try{e.componentDidMount()}catch(a){ae(t,t.return,a)}}},u1=W2.react_stack_bottom_frame.bind(W2),I2={react_stack_bottom_frame:function(t,e,a,u,c){try{e.componentDidUpdate(a,u,c)}catch(f){ae(t,t.return,f)}}},P2=I2.react_stack_bottom_frame.bind(I2),tA={react_stack_bottom_frame:function(t,e){var a=e.stack;t.componentDidCatch(e.value,{componentStack:a!==null?a:""})}},V3=tA.react_stack_bottom_frame.bind(tA),eA={react_stack_bottom_frame:function(t,e,a){try{a.componentWillUnmount()}catch(u){ae(t,e,u)}}},nA=eA.react_stack_bottom_frame.bind(eA),aA={react_stack_bottom_frame:function(t){var e=t.create;return t=t.inst,e=e(),t.destroy=e}},H3=aA.react_stack_bottom_frame.bind(aA),lA={react_stack_bottom_frame:function(t,e,a){try{a()}catch(u){ae(t,e,u)}}},L3=lA.react_stack_bottom_frame.bind(lA),iA={react_stack_bottom_frame:function(t){var e=t._init;return e(t._payload)}},q3=iA.react_stack_bottom_frame.bind(iA),Jm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),o1=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),vb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),bb={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Cd=null,Xg=!1,Km=null,Qg=0,se=null,s1,uA=s1=!1,oA={},sA={},cA={};C=function(t,e,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var u=pt(t),c=u||"null";if(!oA[c]){oA[c]=!0,a=a._owner,t=t._debugOwner;var f="";t&&typeof t.tag=="number"&&(c=pt(t))&&(f=`
|
|
230
|
-
|
|
231
|
-
Check the render method of \``+c+"`."),f||u&&(f=`
|
|
232
|
-
|
|
233
|
-
Check the top-level render call using <`+u+">.");var y="";a!=null&&t!==a&&(u=null,typeof a.tag=="number"?u=pt(a):typeof a.name=="string"&&(u=a.name),u&&(y=" It was passed a child from "+u+".")),mt(e,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',f,y)})}}};var Rd=In(!0),rA=In(!1),fA=0,dA=1,hA=2,c1=3,Yr=!1,mA=!1,r1=null,f1=!1,$m=Wt(null),Sb=Wt(0),Gi=Wt(null),_u=null,km=1,Zg=2,Jn=Wt(0),Tb=0,Bu=1,Nl=2,Xi=4,_l=8,Fm,pA=new Set,yA=new Set,d1=new Set,gA=new Set,pc=0,$t=null,We=null,ua=null,Ab=!1,Wm=!1,Od=!1,Eb=0,Jg=0,yc=null,Y3=0,G3=25,$=null,Vu=null,gc=-1,Kg=!1,$g={readContext:Ne,use:no,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useLayoutEffect:vn,useInsertionEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useSyncExternalStore:vn,useId:vn,useHostTransitionStatus:vn,useFormState:vn,useActionState:vn,useOptimistic:vn,useMemoCache:vn,useCacheRefresh:vn};$g.useEffectEvent=vn;var h1=null,vA=null,m1=null,bA=null,hs=null,bo=null,xb=null;h1={readContext:function(t){return Ne(t)},use:no,useCallback:function(t,e){return $="useCallback",Kt(),eo(e),xh(t,e)},useContext:function(t){return $="useContext",Kt(),Ne(t)},useEffect:function(t,e){return $="useEffect",Kt(),eo(e),Ls(t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",Kt(),eo(a),ru(t,e,a)},useInsertionEffect:function(t,e){$="useInsertionEffect",Kt(),eo(e),$o(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",Kt(),eo(e),Ga(t,e)},useMemo:function(t,e){$="useMemo",Kt(),eo(e);var a=W.H;W.H=hs;try{return Xa(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",Kt();var u=W.H;W.H=hs;try{return Xc(t,e,a)}finally{W.H=u}},useRef:function(t){return $="useRef",Kt(),Eh(t)},useState:function(t){$="useState",Kt();var e=W.H;W.H=hs;try{return Qo(t)}finally{W.H=e}},useDebugValue:function(){$="useDebugValue",Kt()},useDeferredValue:function(t,e){return $="useDeferredValue",Kt(),$c(t,e)},useTransition:function(){return $="useTransition",Kt(),ko()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",Kt(),Qc(t,e,a)},useId:function(){return $="useId",Kt(),jf()},useFormState:function(t,e){return $="useFormState",Kt(),Af(),Al(t,e)},useActionState:function(t,e){return $="useActionState",Kt(),Al(t,e)},useOptimistic:function(t){return $="useOptimistic",Kt(),Hs(t)},useHostTransitionStatus:uo,useMemoCache:Sl,useCacheRefresh:function(){return $="useCacheRefresh",Kt(),Dh()},useEffectEvent:function(t){return $="useEffectEvent",Kt(),Uf(t)}},vA={readContext:function(t){return Ne(t)},use:no,useCallback:function(t,e){return $="useCallback",ut(),xh(t,e)},useContext:function(t){return $="useContext",ut(),Ne(t)},useEffect:function(t,e){return $="useEffect",ut(),Ls(t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",ut(),ru(t,e,a)},useInsertionEffect:function(t,e){$="useInsertionEffect",ut(),$o(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",ut(),Ga(t,e)},useMemo:function(t,e){$="useMemo",ut();var a=W.H;W.H=hs;try{return Xa(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",ut();var u=W.H;W.H=hs;try{return Xc(t,e,a)}finally{W.H=u}},useRef:function(t){return $="useRef",ut(),Eh(t)},useState:function(t){$="useState",ut();var e=W.H;W.H=hs;try{return Qo(t)}finally{W.H=e}},useDebugValue:function(){$="useDebugValue",ut()},useDeferredValue:function(t,e){return $="useDeferredValue",ut(),$c(t,e)},useTransition:function(){return $="useTransition",ut(),ko()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",ut(),Qc(t,e,a)},useId:function(){return $="useId",ut(),jf()},useActionState:function(t,e){return $="useActionState",ut(),Al(t,e)},useFormState:function(t,e){return $="useFormState",ut(),Af(),Al(t,e)},useOptimistic:function(t){return $="useOptimistic",ut(),Hs(t)},useHostTransitionStatus:uo,useMemoCache:Sl,useCacheRefresh:function(){return $="useCacheRefresh",ut(),Dh()},useEffectEvent:function(t){return $="useEffectEvent",ut(),Uf(t)}},m1={readContext:function(t){return Ne(t)},use:no,useCallback:function(t,e){return $="useCallback",ut(),Ri(t,e)},useContext:function(t){return $="useContext",ut(),Ne(t)},useEffect:function(t,e){$="useEffect",ut(),Gn(2048,_l,t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",ut(),Kc(t,e,a)},useInsertionEffect:function(t,e){return $="useInsertionEffect",ut(),Gn(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",ut(),Gn(4,Xi,t,e)},useMemo:function(t,e){$="useMemo",ut();var a=W.H;W.H=bo;try{return an(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",ut();var u=W.H;W.H=bo;try{return _s(t,e,a)}finally{W.H=u}},useRef:function(){return $="useRef",ut(),Ve().memoizedState},useState:function(){$="useState",ut();var t=W.H;W.H=bo;try{return _s(Tl)}finally{W.H=t}},useDebugValue:function(){$="useDebugValue",ut()},useDeferredValue:function(t,e){return $="useDeferredValue",ut(),fu(t,e)},useTransition:function(){return $="useTransition",ut(),P0()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",ut(),Vs(t,e,a)},useId:function(){return $="useId",ut(),Ve().memoizedState},useFormState:function(t){return $="useFormState",ut(),Af(),Jo(t)},useActionState:function(t){return $="useActionState",ut(),Jo(t)},useOptimistic:function(t,e){return $="useOptimistic",ut(),Cf(t,e)},useHostTransitionStatus:uo,useMemoCache:Sl,useCacheRefresh:function(){return $="useCacheRefresh",ut(),Ve().memoizedState},useEffectEvent:function(t){return $="useEffectEvent",ut(),Jc(t)}},bA={readContext:function(t){return Ne(t)},use:no,useCallback:function(t,e){return $="useCallback",ut(),Ri(t,e)},useContext:function(t){return $="useContext",ut(),Ne(t)},useEffect:function(t,e){$="useEffect",ut(),Gn(2048,_l,t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",ut(),Kc(t,e,a)},useInsertionEffect:function(t,e){return $="useInsertionEffect",ut(),Gn(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",ut(),Gn(4,Xi,t,e)},useMemo:function(t,e){$="useMemo",ut();var a=W.H;W.H=xb;try{return an(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",ut();var u=W.H;W.H=xb;try{return Bs(t,e,a)}finally{W.H=u}},useRef:function(){return $="useRef",ut(),Ve().memoizedState},useState:function(){$="useState",ut();var t=W.H;W.H=xb;try{return Bs(Tl)}finally{W.H=t}},useDebugValue:function(){$="useDebugValue",ut()},useDeferredValue:function(t,e){return $="useDeferredValue",ut(),ee(t,e)},useTransition:function(){return $="useTransition",ut(),fn()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",ut(),Vs(t,e,a)},useId:function(){return $="useId",ut(),Ve().memoizedState},useFormState:function(t){return $="useFormState",ut(),Af(),Ko(t)},useActionState:function(t){return $="useActionState",ut(),Ko(t)},useOptimistic:function(t,e){return $="useOptimistic",ut(),Rf(t,e)},useHostTransitionStatus:uo,useMemoCache:Sl,useCacheRefresh:function(){return $="useCacheRefresh",ut(),Ve().memoizedState},useEffectEvent:function(t){return $="useEffectEvent",ut(),Jc(t)}},hs={readContext:function(t){return M(),Ne(t)},use:function(t){return E(),no(t)},useCallback:function(t,e){return $="useCallback",E(),Kt(),xh(t,e)},useContext:function(t){return $="useContext",E(),Kt(),Ne(t)},useEffect:function(t,e){return $="useEffect",E(),Kt(),Ls(t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",E(),Kt(),ru(t,e,a)},useInsertionEffect:function(t,e){$="useInsertionEffect",E(),Kt(),$o(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",E(),Kt(),Ga(t,e)},useMemo:function(t,e){$="useMemo",E(),Kt();var a=W.H;W.H=hs;try{return Xa(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",E(),Kt();var u=W.H;W.H=hs;try{return Xc(t,e,a)}finally{W.H=u}},useRef:function(t){return $="useRef",E(),Kt(),Eh(t)},useState:function(t){$="useState",E(),Kt();var e=W.H;W.H=hs;try{return Qo(t)}finally{W.H=e}},useDebugValue:function(){$="useDebugValue",E(),Kt()},useDeferredValue:function(t,e){return $="useDeferredValue",E(),Kt(),$c(t,e)},useTransition:function(){return $="useTransition",E(),Kt(),ko()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",E(),Kt(),Qc(t,e,a)},useId:function(){return $="useId",E(),Kt(),jf()},useFormState:function(t,e){return $="useFormState",E(),Kt(),Al(t,e)},useActionState:function(t,e){return $="useActionState",E(),Kt(),Al(t,e)},useOptimistic:function(t){return $="useOptimistic",E(),Kt(),Hs(t)},useMemoCache:function(t){return E(),Sl(t)},useHostTransitionStatus:uo,useCacheRefresh:function(){return $="useCacheRefresh",Kt(),Dh()},useEffectEvent:function(t){return $="useEffectEvent",E(),Kt(),Uf(t)}},bo={readContext:function(t){return M(),Ne(t)},use:function(t){return E(),no(t)},useCallback:function(t,e){return $="useCallback",E(),ut(),Ri(t,e)},useContext:function(t){return $="useContext",E(),ut(),Ne(t)},useEffect:function(t,e){$="useEffect",E(),ut(),Gn(2048,_l,t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",E(),ut(),Kc(t,e,a)},useInsertionEffect:function(t,e){return $="useInsertionEffect",E(),ut(),Gn(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",E(),ut(),Gn(4,Xi,t,e)},useMemo:function(t,e){$="useMemo",E(),ut();var a=W.H;W.H=bo;try{return an(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",E(),ut();var u=W.H;W.H=bo;try{return _s(t,e,a)}finally{W.H=u}},useRef:function(){return $="useRef",E(),ut(),Ve().memoizedState},useState:function(){$="useState",E(),ut();var t=W.H;W.H=bo;try{return _s(Tl)}finally{W.H=t}},useDebugValue:function(){$="useDebugValue",E(),ut()},useDeferredValue:function(t,e){return $="useDeferredValue",E(),ut(),fu(t,e)},useTransition:function(){return $="useTransition",E(),ut(),P0()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",E(),ut(),Vs(t,e,a)},useId:function(){return $="useId",E(),ut(),Ve().memoizedState},useFormState:function(t){return $="useFormState",E(),ut(),Jo(t)},useActionState:function(t){return $="useActionState",E(),ut(),Jo(t)},useOptimistic:function(t,e){return $="useOptimistic",E(),ut(),Cf(t,e)},useMemoCache:function(t){return E(),Sl(t)},useHostTransitionStatus:uo,useCacheRefresh:function(){return $="useCacheRefresh",ut(),Ve().memoizedState},useEffectEvent:function(t){return $="useEffectEvent",E(),ut(),Jc(t)}},xb={readContext:function(t){return M(),Ne(t)},use:function(t){return E(),no(t)},useCallback:function(t,e){return $="useCallback",E(),ut(),Ri(t,e)},useContext:function(t){return $="useContext",E(),ut(),Ne(t)},useEffect:function(t,e){$="useEffect",E(),ut(),Gn(2048,_l,t,e)},useImperativeHandle:function(t,e,a){return $="useImperativeHandle",E(),ut(),Kc(t,e,a)},useInsertionEffect:function(t,e){return $="useInsertionEffect",E(),ut(),Gn(4,Nl,t,e)},useLayoutEffect:function(t,e){return $="useLayoutEffect",E(),ut(),Gn(4,Xi,t,e)},useMemo:function(t,e){$="useMemo",E(),ut();var a=W.H;W.H=bo;try{return an(t,e)}finally{W.H=a}},useReducer:function(t,e,a){$="useReducer",E(),ut();var u=W.H;W.H=bo;try{return Bs(t,e,a)}finally{W.H=u}},useRef:function(){return $="useRef",E(),ut(),Ve().memoizedState},useState:function(){$="useState",E(),ut();var t=W.H;W.H=bo;try{return Bs(Tl)}finally{W.H=t}},useDebugValue:function(){$="useDebugValue",E(),ut()},useDeferredValue:function(t,e){return $="useDeferredValue",E(),ut(),ee(t,e)},useTransition:function(){return $="useTransition",E(),ut(),fn()},useSyncExternalStore:function(t,e,a){return $="useSyncExternalStore",E(),ut(),Vs(t,e,a)},useId:function(){return $="useId",E(),ut(),Ve().memoizedState},useFormState:function(t){return $="useFormState",E(),ut(),Ko(t)},useActionState:function(t){return $="useActionState",E(),ut(),Ko(t)},useOptimistic:function(t,e){return $="useOptimistic",E(),ut(),Rf(t,e)},useMemoCache:function(t){return E(),Sl(t)},useHostTransitionStatus:uo,useCacheRefresh:function(){return $="useCacheRefresh",ut(),Ve().memoizedState},useEffectEvent:function(t){return $="useEffectEvent",E(),ut(),Jc(t)}};var SA={},TA=new Set,AA=new Set,EA=new Set,xA=new Set,DA=new Set,MA=new Set,zA=new Set,CA=new Set,RA=new Set,OA=new Set;Object.freeze(SA);var p1={enqueueSetState:function(t,e,a){t=t._reactInternals;var u=Ca(t),c=Yn(u);c.payload=e,a!=null&&(Xs(a),c.callback=a),e=uu(t,c,u),e!==null&&(au(u,"this.setState()",t),Zt(e,t,u),ei(e,t,u))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var u=Ca(t),c=Yn(u);c.tag=dA,c.payload=e,a!=null&&(Xs(a),c.callback=a),e=uu(t,c,u),e!==null&&(au(u,"this.replaceState()",t),Zt(e,t,u),ei(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ca(t),u=Yn(a);u.tag=hA,e!=null&&(Xs(e),u.callback=e),e=uu(t,u,a),e!==null&&(au(a,"this.forceUpdate()",t),Zt(e,t,a),ei(e,t,a))}},Im=null,y1=null,g1=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),oa=!1,UA={},wA={},jA={},NA={},Pm=!1,_A={},Db={},v1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},BA=!1,VA=null;VA=new Set;var vc=!1,sa=!1,b1=!1,HA=typeof WeakSet=="function"?WeakSet:Set,wa=null,tp=null,ep=null,ca=null,oi=!1,So=null,ba=!1,kg=8192,X3={getCacheForType:function(t){var e=Ne(la),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return Ne(la).controller.signal},getOwner:function(){return rl}};if(typeof Symbol=="function"&&Symbol.for){var Fg=Symbol.for;Fg("selector.component"),Fg("selector.has_pseudo_class"),Fg("selector.role"),Fg("selector.test_id"),Fg("selector.text")}var Q3=[],Z3=typeof WeakMap=="function"?WeakMap:Map,ja=0,Sa=2,Qi=4,bc=0,Wg=1,Ud=2,Mb=3,Gr=4,zb=6,LA=5,Ce=ja,Ie=null,he=null,ce=0,si=0,Cb=1,wd=2,Ig=3,qA=4,S1=5,Pg=6,Rb=7,T1=8,jd=9,Ze=si,Zi=null,Xr=!1,np=!1,A1=!1,ms=0,Tn=bc,Qr=0,Zr=0,E1=0,ci=0,Nd=0,t0=null,Bl=null,Ob=!1,Ub=0,YA=0,GA=300,wb=1/0,XA=500,e0=null,Hn=null,Jr=null,jb=0,x1=1,D1=2,QA=3,Kr=0,ZA=1,JA=2,KA=3,$A=4,Nb=5,ra=0,$r=null,ap=null,To=0,M1=0,z1=-0,C1=null,kA=null,FA=null,Ao=jb,WA=null,J3=50,n0=0,R1=null,O1=!1,_b=!1,K3=50,_d=0,a0=null,lp=!1,Bb=null,IA=!1,PA=new Set,$3={},Vb=null,ip=null,U1=!1,w1=!1,Hb=!1,j1=!1,kr=0,N1={};(function(){for(var t=0;t<ZS.length;t++){var e=ZS[t],a=e.toLowerCase();e=e[0].toUpperCase()+e.slice(1),bi(a,"on"+e)}bi(R2,"onAnimationEnd"),bi(O2,"onAnimationIteration"),bi(U2,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(E3,"onTransitionRun"),bi(x3,"onTransitionStart"),bi(D3,"onTransitionCancel"),bi(w2,"onTransitionEnd")})(),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var l0="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(" "),_1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(l0)),Lb="_reactListening"+Math.random().toString(36).slice(2),tE=!1,eE=!1,qb=!1,nE=!1,Yb=!1,Gb=!1,aE=!1,Xb={},k3=/\r\n?/g,F3=/\u0000|\uFFFD/g,Bd="http://www.w3.org/1999/xlink",B1="http://www.w3.org/XML/1998/namespace",W3="javascript:throw new Error('React form unexpectedly submitted.')",I3="suppressHydrationWarning",Vd="&",Qb="/&",i0="$",u0="/$",Fr="$?",Hd="$~",up="$!",P3="html",tz="body",ez="head",V1="F!",lE="F",iE="loading",nz="style",Sc=0,op=1,Zb=2,H1=null,L1=null,uE={dialog:!0,webview:!0},q1=null,o0=void 0,oE=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,Ld=-1,sE=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof sE<"u"?function(t){return sE.resolve(null).then(t).catch(Tv)}:oE,Y1=null,qd=0,s0=1,cE=2,rE=3,Hu=4,Lu=new Map,fE=new Set,Tc=Be.d;Be.d={f:function(){var t=Tc.f(),e=zl();return t||e},r:function(t){var e=kn(t);e!==null&&e.tag===5&&e.type==="form"?kc(e):Tc.r(t)},D:function(t){Tc.D(t),ky("dns-prefetch",t,null)},C:function(t,e){Tc.C(t,e),ky("preconnect",t,e)},L:function(t,e,a){Tc.L(t,e,a);var u=sp;if(u&&t&&e){var c='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Re(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Re(a.imageSizes)+'"]')):c+='[href="'+Re(t)+'"]';var f=c;switch(e){case"style":f=Ps(t);break;case"script":f=tc(t)}Lu.has(f)||(t=ue({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Lu.set(f,t),u.querySelector(c)!==null||e==="style"&&u.querySelector(id(f))||e==="script"&&u.querySelector(ud(f))||(e=u.createElement("link"),ln(e,"link",t),Ke(e),u.head.appendChild(e)))}},m:function(t,e){Tc.m(t,e);var a=sp;if(a&&t){var u=e&&typeof e.as=="string"?e.as:"script",c='link[rel="modulepreload"][as="'+Re(u)+'"][href="'+Re(t)+'"]',f=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=tc(t)}if(!Lu.has(f)&&(t=ue({rel:"modulepreload",href:t},e),Lu.set(f,t),a.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ud(f)))return}u=a.createElement("link"),ln(u,"link",t),Ke(u),a.head.appendChild(u)}}},X:function(t,e){Tc.X(t,e);var a=sp;if(a&&t){var u=pl(a).hoistableScripts,c=tc(t),f=u.get(c);f||(f=a.querySelector(ud(c)),f||(t=ue({src:t,async:!0},e),(e=Lu.get(c))&&Iy(t,e),f=a.createElement("script"),Ke(f),ln(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},u.set(c,f))}},S:function(t,e,a){Tc.S(t,e,a);var u=sp;if(u&&t){var c=pl(u).hoistableStyles,f=Ps(t);e=e||"default";var y=c.get(f);if(!y){var g={loading:qd,preload:null};if(y=u.querySelector(id(f)))g.loading=s0|Hu;else{t=ue({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Lu.get(f))&&Wy(t,a);var T=y=u.createElement("link");Ke(T),ln(T,"link",t),T._p=new Promise(function(x,V){T.onload=x,T.onerror=V}),T.addEventListener("load",function(){g.loading|=s0}),T.addEventListener("error",function(){g.loading|=cE}),g.loading|=Hu,yr(y,e,u)}y={type:"stylesheet",instance:y,count:1,state:g},c.set(f,y)}}},M:function(t,e){Tc.M(t,e);var a=sp;if(a&&t){var u=pl(a).hoistableScripts,c=tc(t),f=u.get(c);f||(f=a.querySelector(ud(c)),f||(t=ue({src:t,async:!0,type:"module"},e),(e=Lu.get(c))&&Iy(t,e),f=a.createElement("script"),Ke(f),ln(f,"link",t),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},u.set(c,f))}}};var sp=typeof document>"u"?null:document,Jb=null,iz=6e4,uz=800,oz=500,G1=0,X1=null,Kb=null,Yd=jS,c0={$$typeof:Hi,Provider:null,Consumer:null,_currentValue:Yd,_currentValue2:Yd,_threadCount:0},dE="%c%s%c",hE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",mE="",$b=" ",sz=Function.prototype.bind,pE=!1,yE=null,gE=null,vE=null,bE=null,SE=null,TE=null,AE=null,EE=null,xE=null,DE=null;yE=function(t,e,a,u){e=o(t,e),e!==null&&(a=r(e.memoizedState,a,0,u),e.memoizedState=a,e.baseState=a,t.memoizedProps=ue({},t.memoizedProps),a=Ma(t,2),a!==null&&Zt(a,t,2))},gE=function(t,e,a){e=o(t,e),e!==null&&(a=v(e.memoizedState,a,0),e.memoizedState=a,e.baseState=a,t.memoizedProps=ue({},t.memoizedProps),a=Ma(t,2),a!==null&&Zt(a,t,2))},vE=function(t,e,a,u){e=o(t,e),e!==null&&(a=h(e.memoizedState,a,u),e.memoizedState=a,e.baseState=a,t.memoizedProps=ue({},t.memoizedProps),a=Ma(t,2),a!==null&&Zt(a,t,2))},bE=function(t,e,a){t.pendingProps=r(t.memoizedProps,e,0,a),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Ma(t,2),e!==null&&Zt(e,t,2)},SE=function(t,e){t.pendingProps=v(t.memoizedProps,e,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Ma(t,2),e!==null&&Zt(e,t,2)},TE=function(t,e,a){t.pendingProps=h(t.memoizedProps,e,a),t.alternate&&(t.alternate.pendingProps=t.pendingProps),e=Ma(t,2),e!==null&&Zt(e,t,2)},AE=function(t){var e=Ma(t,2);e!==null&&Zt(e,t,2)},EE=function(t){var e=Mo(),a=Ma(t,e);a!==null&&Zt(a,t,e)},xE=function(t){S=t},DE=function(t){A=t};var kb=!0,Fb=null,Q1=!1,Wr=null,Ir=null,Pr=null,r0=new Map,f0=new Map,tf=[],cz="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(" "),Wb=null;if(Vi.prototype.render=sg.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ft(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=t;var u=e.current,c=Ca(u);pm(u,c,a,e,null,null)},Vi.prototype.unmount=sg.prototype.unmount=function(){var t=arguments;if(typeof t[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),t=this._internalRoot,t!==null){this._internalRoot=null;var e=t.containerInfo;(Ce&(Sa|Qi))!==ja&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),pm(t.current,2,null,t,null,null),zl(),e[yo]=null}},Vi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ll();t={blockedOn:null,target:t,priority:e};for(var a=0;a<tf.length&&e!==0&&e<tf[a].priority;a++);tf.splice(a,0,t),a===0&&og(t)}},function(){var t=fd.version;if(t!=="19.2.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
234
|
-
- react: `+(t+`
|
|
235
|
-
- react-dom: 19.2.0
|
|
236
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Be.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=Et(e),t=t!==null?gt(t):null,t=t===null?null:t.stateNode,t},!function(){var t={bundleType:1,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.0"};return t.overrideHookState=yE,t.overrideHookStateDeletePath=gE,t.overrideHookStateRenamePath=vE,t.overrideProps=bE,t.overridePropsDeletePath=SE,t.overridePropsRenamePath=TE,t.scheduleUpdate=AE,t.scheduleRetry=EE,t.setErrorHandler=xE,t.setSuspenseHandler=DE,t.scheduleRefresh=lt,t.scheduleRoot=k,t.setRefreshHandler=st,t.getCurrentFiber=Xe,gs(t)}()&&rs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var ME=window.location.protocol;/^(https?|file):$/.test(ME)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(ME==="file:"?`
|
|
237
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}m0.createRoot=function(t,e){if(!ft(t))throw Error("Target container is not a DOM element.");cg(t);var a=!1,u="",c=Ch,f=Rh,y=ay;return e!=null&&(e.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof e=="object"&&e!==null&&e.$$typeof===ii&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
238
|
-
|
|
239
|
-
let root = createRoot(domContainer);
|
|
240
|
-
root.render(<App />);`),e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(c=e.onUncaughtError),e.onCaughtError!==void 0&&(f=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError)),e=cd(t,1,!1,null,null,a,u,null,c,f,y,Zv),t[yo]=e.current,ns(t),new sg(e)},m0.hydrateRoot=function(t,e,a){if(!ft(t))throw Error("Target container is not a DOM element.");cg(t),e===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,c="",f=Ch,y=Rh,g=ay,T=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),e=cd(t,1,!0,e,a??null,u,c,T,f,y,g,Zv),e.context=Yv(null),a=e.current,u=Ca(a),u=Ht(u),c=Yn(u),c.callback=null,uu(a,c,u),au(u,"hydrateRoot()",null),a=u,e.current.lanes=a,Hl(e,a),ul(e),t[yo]=e.current,ns(t),new Vi(e)},m0.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),m0}var Fx;function M5(){if(Fx)return aS.exports;Fx=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(o(),aS.exports=x5()):aS.exports=D5(),aS.exports}var z5=M5();function C5({citationNumber:o,url:r,allSources:h}){const[m,v]=G.useState(!1),A=M=>{try{return new URL(M).hostname.replace(/^www\./,"")}catch{const z=M.match(/https?:\/\/(?:www\.)?([^\/]+)/);return z?z[1]:M}},S=A(r),E=h||[{number:o,url:r}];return B.jsxs("span",{className:"relative inline-block align-middle",children:[B.jsx("button",{type:"button",className:da("inline-flex items-center justify-center","h-5 px-1.5 rounded-md text-[10px] font-medium","bg-stone-200 dark:bg-stone-700","hover:bg-stone-300 dark:hover:bg-stone-600","text-stone-700 dark:text-stone-300","transition-colors duration-150","cursor-pointer","border border-stone-300 dark:border-stone-600","hover:border-stone-400 dark:hover:border-stone-500"),onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onClick:M=>{M.preventDefault(),window.open(r,"_blank","noopener,noreferrer")},"aria-label":`Citation ${o}: ${r}`,children:S}),m&&B.jsxs("div",{className:da("absolute bottom-full left-0 mb-2 z-50","min-w-[200px] max-w-[300px]","bg-stone-900 dark:bg-stone-800","rounded-lg shadow-xl","border border-stone-700","p-3","animate-in fade-in-0 zoom-in-95 duration-200"),onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[B.jsxs("div",{className:"text-xs font-semibold text-stone-300 mb-2.5",children:["Sources • ",E.length]}),B.jsx("div",{className:"space-y-2",children:E.map(M=>{const z=A(M.url),C=z.includes("youtube.com"),R=z.includes("ted.com"),N=M.number===o;return B.jsxs("a",{href:M.url,target:"_blank",rel:"noopener noreferrer",className:da("flex items-center gap-2 p-2 rounded",N?"bg-stone-700 dark:bg-stone-700":"hover:bg-stone-700 dark:hover:bg-stone-700","transition-colors","group"),onClick:k=>k.stopPropagation(),children:[B.jsx("div",{className:"flex-shrink-0",children:C?B.jsx("div",{className:"w-4 h-4 bg-red-600 rounded flex items-center justify-center",children:B.jsx("svg",{className:"w-3 h-3 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:B.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}):R?B.jsx("div",{className:"w-4 h-4 bg-red-600 rounded-full flex items-center justify-center",children:B.jsx("span",{className:"text-[8px] font-bold text-white",children:"TED"})}):B.jsx("div",{className:"w-4 h-4 bg-stone-600 rounded flex items-center justify-center",children:B.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})})})}),B.jsx("div",{className:"flex-1 min-w-0",children:B.jsx("div",{className:"text-xs text-stone-400 group-hover:text-stone-300 transition-colors",children:z})})]},M.number)})})]})]})}function R5({text:o,className:r,ResponseComponent:h}){const m=G.useRef(null),{processedText:v,citations:A,allSources:S}=G.useMemo(()=>{const E=/(?:^|\n)(?:#+\s*)?(?:References|References:)(?:\*\*)?\s*\n?([\s\S]*?)(?=\n\n|\n#|$)/i,M=o.match(E),z=new Map;if(M&&M[1]){const ot=M[1],it=/\[(\d+)\]\s*(https?:\/\/[^\s\)]+)/g;let St;for(;(St=it.exec(ot))!==null;)if(St[1]&&St[2]){const Et=parseInt(St[1],10);let gt=St[2].replace(/[.,;:!?]+$/,"").replace(/_+$/,"");z.set(Et,gt)}}const C=[];let R=0;const N=/```[\s\S]*?```|`[^`]+`/g;let k;for(;(k=N.exec(o))!==null;){if(k.index>R){const it=o.slice(R,k.index).replace(/_+(?=\s|$)/g,"");it&&C.push({type:"text",content:it,start:R,end:k.index})}C.push({type:"code",content:k[0],start:k.index,end:k.index+k[0].length}),R=k.index+k[0].length}if(R<o.length){const it=o.slice(R).replace(/_+(?=\s|$)/g,"");it&&C.push({type:"text",content:it,start:R,end:o.length})}C.map(ot=>ot.content).join("");const lt=[],ft=C.map(ot=>{if(ot.type==="code")return ot.content;let it=ot.content;it=it.replace(/\[(\d+)\]\((https?:\/\/[^\)]+)\)/g,(Ct,dt,Lt)=>{const pt=parseInt(dt,10),Wt=Lt.replace(/_+$/,"");return lt.push({number:pt,url:Wt}),`<span data-citation="${pt}" data-citation-url="${Wt.replace(/"/g,""")}"></span>`});const St=/\[([^\]]+)\]\([^\)]+\)/g,Et=[];let gt;for(;(gt=St.exec(it))!==null;)Et.push({start:gt.index,end:gt.index+gt[0].length});return it=it.replace(/\[(\d+)\]/g,(Ct,dt,Lt)=>{if(Et.some(Jt=>Lt>=Jt.start&&Lt<Jt.end))return Ct;const Wt=parseInt(dt,10),Dt=z.get(Wt);return Dt?(lt.push({number:Wt,url:Dt}),`<span data-citation="${Wt}" data-citation-url="${Dt.replace(/"/g,""")}"></span>`):Ct}),it}).join(""),P=Array.from(z.entries()).map(([ot,it])=>({number:ot,url:it})).sort((ot,it)=>ot.number-it.number);return{processedText:ft,citations:lt,allSources:P}},[o]);return G.useEffect(()=>{if(!m.current)return;m.current.querySelectorAll("[data-citation]").forEach(M=>{const z=parseInt(M.getAttribute("data-citation")||"0",10),C=M.getAttribute("data-citation-url")||"";if(z&&C){const R=document.createElement("span");R.className="inline-block",M.parentNode?.replaceChild(R,M),z5.createRoot(R).render(B.jsx(C5,{citationNumber:z,url:C,allSources:S}))}})},[v,S]),B.jsx("div",{ref:m,children:B.jsx(h,{className:r,children:v})})}function S0(o){if(typeof o=="string")try{const r=JSON.parse(o);return S0(r)}catch{return o}if(Array.isArray(o))return o.map(S0);if(o&&typeof o=="object"){const r={};for(const[h,m]of Object.entries(o))r[h]=S0(m);return r}return o}function cT(o){if(typeof o=="string"){try{const r=JSON.parse(o);if(r&&typeof r=="object"&&!Array.isArray(r))return S0(r)}catch{}return{}}return o&&typeof o=="object"&&!Array.isArray(o)?S0(o):{}}function O5({theme:o="auto",layout:r="sidebar",model:h="auto",animated:m=!0,title:v="Chat",logo:A=void 0,defaultWidth:S=384,minWidth:E=300,maxWidth:M=800,initiallyExpanded:z=!1,tools:C=[],safeTools:R=[],toolMetadata:N,systemPrompt:k="",tokenEndpoint:lt="/api/arcten/token",apiBaseUrl:st="https://api.arcten.com",user:ft,state:P,onStateChange:ot,allowStateEdits:it=!0}){const[St,Et]=G.useState(null),gt=G.useRef(null),[Ct,dt]=G.useState(null),[Lt,pt]=G.useState(null),Wt=G.useRef(null),Dt=P!==void 0,[Jt,Je]=G.useState({}),je=G.useRef({});Dt&&P?je.current=P:Dt||(je.current=Jt);const[q,K]=G.useState(!1),[ct,Mt]=G.useState(null),Ot=G.useRef(!1),[be,me]=G.useState(z),[Gt,It]=G.useState(S),[Pe,Aa]=G.useState(600),[Ea,Na]=G.useState(!1),[ye,Ji]=G.useState(!1),[mt,hl]=G.useState(!1),[Ln,ha]=G.useState({x:100,y:100}),[qn,Ee]=G.useState(!1),[fi,di]=G.useState({x:0,y:0}),[gs,Me]=G.useState(!1),hi=G.useRef(null),tl=G.useRef(null),[mi,rn]=G.useState(""),[vs,Mo]=G.useState(null),[zo,Hl]=G.useState("Thinking..."),[bs,Tt]=G.useState(new Set),[xt,jt]=G.useState(""),[Ht,te]=G.useState([]),[ne,xe]=G.useState(!1),[Ll,Ki]=G.useState([]),[el,_a]=G.useState(()=>typeof window<"u"?crypto.randomUUID():null),[kn,ml]=G.useState(!1),[pl,Ke]=G.useState(!1),[ql,pi]=G.useState([]),$i=G.useCallback(async(F,rt=3)=>{if(!el||!gt.current)return;const bt=async()=>{const Ut=`${st.replace("/chat","").replace(/\/$/,"")}/convex/api/mutation`,Bt=await fetch(Ut,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${gt.current}`},body:JSON.stringify({path:"conversations:mergeStateByChatId",args:{chatId:el,updates:F},format:"json"})});if(!Bt.ok){if(Bt.status===404){console.warn("[ArctenAgent] Convex API endpoint not available (404), state changes will not be persisted");return}const pn=await Bt.text().catch(()=>"Unknown error");throw new Error(`Failed to sync conversation state: ${Bt.status} ${pn}`)}};for(let ht=0;ht<rt;ht++)try{await bt(),Mt(null);return}catch(Ut){if(ht===rt-1){const pn=Ut instanceof Error?Ut:new Error(String(Ut));throw Mt(pn),console.error("Failed to sync state to Convex after retries:",Ut),pn}await new Promise(pn=>setTimeout(pn,Math.pow(2,ht)*100))}},[el,st,gt]),yi=G.useMemo(()=>function(){return je.current},[]),Yl=G.useMemo(()=>async function(rt){const bt={...je.current,...rt};je.current=bt,Dt||Je(bt),ot&&ot(bt);try{await $i(rt)}catch(ht){throw ht}},[$i,ot,Dt]);G.useEffect(()=>{Dt&&P&&(je.current=P)},[Dt,P]);const Gl=G.useMemo(()=>{const F=[...C,...R,yi];return(!Dt||it)&&F.push(Yl),F},[C,R,yi,Yl,Dt,it]),Qu=G.useMemo(()=>VM(Gl,N),[Gl,N]),wn=G.useMemo(()=>{const F=[{name:"getState",description:"Get the current agent state. Returns IDs, workflow state, checklists, and other persistent data.",jsonSchema:{type:"object",properties:{},required:[]}}];return(!Dt||it)&&F.push({name:"setState",description:"Update the agent state. Store IDs, workflow state, checklists, context, and other data that must persist across conversations. Merges with existing state.",jsonSchema:{type:"object",properties:{updates:{type:"object",description:"Partial state updates to merge with existing state"}},required:["updates"]}}),[...Qu,...F]},[Qu,Dt,it]),xa=G.useMemo(()=>new Set(wn.map(F=>F.name)),[wn]),Zu=G.useMemo(()=>wn.filter(F=>F.name==="getState"?!0:F.name==="setState"?!Dt||it:xa.has(F.name)),[wn,xa,Dt,it]),Co=G.useMemo(()=>{const F=new Map,rt=new Map(Qu.map(bt=>[bt.name,bt]));return F.set("getState",yi),(!Dt||it)&&F.set("setState",Yl),Gl.forEach(bt=>{if(bt===yi||bt===Yl)return;const ht=bt[ps];if(ht){const Bt=rt.get(ht);if(Bt){F.set(Bt.name,bt);return}}const Ut=wn.find(Bt=>Bt.name===bt.name);Ut&&F.set(Ut.name,bt)}),F},[Gl,wn,yi,Yl,Dt,it]),ki=G.useMemo(()=>{const F=new Set;F.add("getState"),F.add("setState");const rt=new Map(wn.map(bt=>[bt.name,bt]));return R.forEach(bt=>{const ht=bt[ps];if(ht&&rt.has(ht))F.add(ht);else{const Ut=wn.find(Bt=>Bt.name===bt.name);Ut&&F.add(Ut.name)}}),F},[R,wn]),Mc=["Thinking...","Pondering...","Contemplating...","Considering...","Analyzing...","Processing...","Reasoning...","Mulling it over...","Computing...","Cooking up a response...","Brewing ideas...","Connecting the dots...","Piecing it together...","Spinning up thoughts...","Loading brain cells...","Sharpening pencils...","Herding ideas...","Warming up neurons...","Stirring the think-pot...","Plotting a plan...","Wiggling the logic wires...","Rolling ideas around...","Charging the brainstorm...","Booting the brain...","Dusting off the cortex...","Running mental diagnostics...","Fetching cleverness...","Whisking up notions...","Tuning the idea radio...","Juggling possibilities...","Breathing in inspiration...","Squeezing the thought sponge...","Tickling the gray matter...","Bubbling up insights...","Spicing the soup of thought...","Lacing up hypotheses...","Winding the idea clock...","Casting the net for clues...","Polishing the crystal ball...","Mapping the maze...","Crunching the brain-biscuits...","Cueing the eureka moment...","Summoning the muse...","Knocking on insight’s door...","Combing the noodle...","Sailing the think-ship...","Scooping brain gelato...","Testing wild hunches...","Tick-tocking the neurons...","Planting idea seeds...","Shaking the thought snow globe...","Unlocking the mental toolbox...","Nudging the puzzle pieces...","Lighting the idea bulb...","Preheating the oven of insight...","Mixing the mental trail mix...","Spooling up reasoning reels...","Skimming the mind-palace index...","Surfing the thought waves...","Kicking the tires on ideas...","Rattling the idea can...","Waving the logic wand..."];G.useEffect(()=>{if(typeof window<"u"){const F=localStorage.getItem("arcten-sidebar-expanded");F&&me(JSON.parse(F));const rt=localStorage.getItem("arcten-sidebar-width");rt&&It(parseInt(rt));const bt=localStorage.getItem("arcten-sidebar-height");bt&&Aa(parseInt(bt));const ht=localStorage.getItem("arcten-sidebar-detached");ht&&Ji(JSON.parse(ht));const Ut=localStorage.getItem("arcten-sidebar-position");if(Ut){const pn=JSON.parse(Ut),re=50,Nn=Math.max(re-S,Math.min(pn.x,window.innerWidth-re)),fe=Math.max(0,Math.min(pn.y,window.innerHeight-re));ha({x:Nn,y:fe})}const Bt=localStorage.getItem("arcten-sidebar-minimized");Bt&&hl(JSON.parse(Bt)),Me(!0)}},[]);const jn=G.useMemo(()=>ft,[ft?.id]);G.useEffect(()=>((async()=>{try{const rt=await fetch(lt,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:jn})});if(!rt.ok)throw new Error("Failed to fetch token");const bt=await rt.json();Et(bt.clientToken),gt.current=bt.clientToken,pt(bt.expiresAt),dt(null)}catch(rt){dt(rt instanceof Error?rt.message:"Failed to fetch token")}})(),()=>{Wt.current&&clearTimeout(Wt.current)}),[lt,jn]),G.useEffect(()=>{if(!Lt)return;Wt.current&&clearTimeout(Wt.current);const F=Math.floor(Date.now()/1e3),rt=Lt-F,ht=Math.max(0,rt-5);return Wt.current=setTimeout(async()=>{try{const Ut=await fetch(lt,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:jn})});if(!Ut.ok)throw new Error("Failed to refresh token");const Bt=await Ut.json();Et(Bt.clientToken),gt.current=Bt.clientToken,pt(Bt.expiresAt),dt(null)}catch(Ut){console.error("Token refresh failed:",Ut),dt(Ut instanceof Error?Ut.message:"Failed to refresh token")}},ht*1e3),()=>{Wt.current&&clearTimeout(Wt.current)}},[Lt,lt,jn]),G.useEffect(()=>{(async()=>{if(Gl.length!==0)try{const rt=Gl.map(ht=>({name:ht.name,code:ht.toString()})),bt=await fetch(`${st}/tools/describe`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tools:rt})});if(bt.ok){const ht=await bt.json();te(ht.tools)}}catch(rt){console.error("Failed to fetch tool descriptions:",rt)}})()},[Gl]),G.useEffect(()=>{Promise.resolve().then(()=>p5).then(F=>{Mo(()=>F.Response)})},[]),G.useEffect(()=>{const F=()=>{jt(window.location.pathname)};F(),window.addEventListener("popstate",F);const rt=setInterval(F,500);return()=>{window.removeEventListener("popstate",F),clearInterval(rt)}},[]);const Re=G.useCallback(async()=>{if(!(!jn?.id||!St)){Ke(!0);try{const rt=await(await fetch(`${st}/conversations`,{headers:{Authorization:`Bearer ${St}`}})).json();Ki(rt.conversations||[])}catch(F){console.error("Failed to fetch conversations:",F)}finally{Ke(!1)}}},[jn?.id,St,st]);G.useEffect(()=>{jn?.id&&St&&Re()},[jn?.id,St,Re]);function ma(F){const rt=Math.floor((Date.now()-F)/1e3);return rt<60?"now":rt<3600?`${Math.floor(rt/60)}m`:rt<86400?`${Math.floor(rt/3600)}h`:`${Math.floor(rt/86400)}d`}function Fi(){const F=crypto.randomUUID();_a(F),Jl([]),pi([]),ml(!1);const rt=Dt?P||{}:{};je.current=rt,Dt||Je(rt),ot&&ot(rt),Ot.current=!1}async function zc(F){if(St)try{await fetch(`${st}/conversations/${F}`,{method:"DELETE",headers:{Authorization:`Bearer ${St}`}}),Ki(Ll.filter(rt=>rt._id!==F)),F===el&&Fi()}catch(rt){console.error("Failed to delete conversation:",rt)}}async function uf(F){_a(F.chatId),ml(!1),Ke(!0);try{const rt=await fetch(`${st}/conversations/${F.chatId}/messages`,{headers:{Authorization:`Bearer ${gt.current}`}});if(!rt.ok)throw new Error(`Failed to fetch messages: ${rt.statusText}`);const ht=(await rt.json()).messages||[];Jl(ht),pi(ht)}catch(rt){console.error("Failed to load conversation messages:",rt);const bt=F.messages||[];Jl(bt),pi(bt)}finally{Ke(!1)}}const Id=async(F,rt={})=>{const bt=rt.headers?new Headers(rt.headers):new Headers;return bt.delete("user-agent"),bt.delete("User-Agent"),fetch(F,{...rt,headers:bt})},{messages:Xl,sendMessage:Ql,status:Ba,error:Wi,stop:Zl,addToolResult:nl,setMessages:Jl}=Wx.useChat({id:el||void 0,transport:new rS.DefaultChatTransport({api:`${st}/chat`,fetch:Id,headers:()=>{const F={};return gt.current&&(F.Authorization=`Bearer ${gt.current}`),F},body:()=>({tools:Zu.map(rt=>({name:rt.name,description:rt.description,inputSchema:rt.jsonSchema})),systemPrompt:k,currentRoute:xt,state:je.current})}),sendAutomaticallyWhen:rS.lastAssistantMessageIsCompleteWithToolCalls});G.useEffect(()=>{const F=Xl[Xl.length-1];if(!F||F.role!=="assistant")return;const rt=F.parts?.filter(bt=>bt.type?.startsWith("tool-")&&bt.state==="input-available"&&typeof bt.toolCallId=="string"&&bt.input!==void 0)||[];for(const bt of rt){const ht=bt,Ut=ht.type?.replace("tool-","")||"",Bt=ht.toolCallId;if(ki.has(Ut)){if(bs.has(Bt))continue;Tt(re=>re.has(Bt)?re:new Set(re).add(Bt)),(async()=>{try{const re=Co.get(Ut);if(!re){console.warn(`[ArctenAgent] Tool ${Ut} not found in toolsMap. Available tools:`,Array.from(Co.keys())),nl({toolCallId:Bt,tool:Ut,output:`Error: Tool ${Ut} not found`}),Tt(yn=>{const Da=new Set(yn);return Da.delete(Bt),Da});return}const Nn=cT(ht.input),fe=Zu.find(yn=>yn.name===Ut);let En;if(fe&&fe.jsonSchema?.properties){const Da=Object.keys(fe.jsonSchema.properties).map(Uo=>Nn[Uo]);console.log(`[ArctenAgent] Executing safe tool ${Ut} with args:`,Da),En=await re(...Da)}else if(Ut==="getState")En=re();else if(Ut==="setState"){const yn=Nn.updates||Nn;En=await re(yn)}else En=await re(...Object.values(Nn));console.log(`[ArctenAgent] Tool ${Ut} completed, result:`,En),nl({toolCallId:Bt,tool:Ut,output:En}),Tt(yn=>{const Da=new Set(yn);return Da.delete(Bt),Da})}catch(re){console.error(`[ArctenAgent] Error executing safe tool ${Ut}:`,re),nl({toolCallId:Bt,tool:Ut,output:`Error: ${re instanceof Error?re.message:String(re)}`}),Tt(Nn=>{const fe=new Set(Nn);return fe.delete(Bt),fe})}})()}}},[Xl,ki,Co,Zu,nl]),G.useEffect(()=>{if(!el||!gt.current)return;(async()=>{K(!0),Mt(null);try{const bt=`${st.replace("/chat","").replace(/\/$/,"")}/convex/api/query`,ht=await fetch(bt,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${gt.current}`},body:JSON.stringify({path:"conversations:getStateByChatId",args:{chatId:el},format:"json"})});if(!ht.ok){if(ht.status===404||ht.status>=500){console.warn(`[ArctenAgent] Convex API endpoint not available (${ht.status}), using empty state`);const fe=Dt?P||{}:{};je.current=fe,Dt||Je(fe),ot&&ot(fe),Ot.current=!0,K(!1);return}const Nn=await ht.text().catch(()=>"Unknown error");throw new Error(`Failed to fetch conversation state: ${ht.status} ${Nn}`)}const Bt=(await ht.json())?.value||{},pn=!Ot.current;let re;pn?(re={...Dt?P||{}:{},...Bt},Ot.current=!0):re=Bt,je.current=re,Dt||Je(re),ot&&ot(re)}catch(rt){rt instanceof TypeError&&rt.message.includes("fetch")?console.warn("[ArctenAgent] Network error fetching state (likely Convex endpoint not available), using fallback state:",rt):console.error("[ArctenAgent] Failed to fetch state:",rt);const ht=rt instanceof Error?rt:new Error(String(rt));if(Mt(ht),!Ot.current){const Ut=Dt?P||{}:{};je.current=Ut,Dt||Je(Ut),ot&&ot(Ut),Ot.current=!0}}finally{K(!1)}})()},[el,st,Dt,P,ot]),G.useEffect(()=>{be&&tl.current&&tl.current.focus()},[be,Xl]);function Oe(){me(!0),localStorage.setItem("arcten-sidebar-expanded","true")}function Ju(){me(!1),localStorage.setItem("arcten-sidebar-expanded","false")}G.useEffect(()=>{},[be]),G.useEffect(()=>{hi.current&&hi.current.scrollIntoView({behavior:"smooth"})},[Xl]),G.useEffect(()=>{function F(rt){rt.key==="Escape"&&(Ba==="streaming"||Ba==="submitted")&&(rt.preventDefault(),Zl())}return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[Ba,Zl]);function Ii(){const F=crypto.randomUUID();_a(F),Jl([]),pi([]),ml(!1)}function gi(F){if(F.preventDefault(),!mi.trim())return;(Ba==="streaming"||Ba==="submitted")&&Zl();const rt=Mc[Math.floor(Math.random()*Mc.length)]||"Thinking...";Hl(rt),Ql({text:mi}),rn("")}function Kl(F){const rt=F.target.value;rn(rt)}G.useEffect(()=>{if(!Ea)return;function F(bt){if(ye){const ht=bt.clientX-Ln.x,Ut=bt.clientY-Ln.y;ht>=E&&ht<=M&&It(ht),Ut>=400&&Ut<=1e3&&Aa(Ut)}else{const ht=window.innerWidth-bt.clientX;ht>=E&&ht<=M&&It(ht)}}function rt(){Na(!1),localStorage.setItem("arcten-sidebar-width",Gt.toString()),localStorage.setItem("arcten-sidebar-height",Pe.toString())}return window.addEventListener("mousemove",F),window.addEventListener("mouseup",rt),()=>{window.removeEventListener("mousemove",F),window.removeEventListener("mouseup",rt)}},[Ea,Gt,Pe,ye,Ln,E,M]);function Cc(F){F.preventDefault(),Na(!0)}function Rc(){Ji(!0),hl(!1),localStorage.setItem("arcten-sidebar-detached","true"),localStorage.setItem("arcten-sidebar-minimized","false")}function Ro(){Ji(!1),hl(!1),localStorage.setItem("arcten-sidebar-detached","false"),localStorage.setItem("arcten-sidebar-minimized","false")}function Ku(){hl(!mt),localStorage.setItem("arcten-sidebar-minimized",JSON.stringify(!mt))}function Oo(F){ye&&(Ee(!0),di({x:F.clientX-Ln.x,y:F.clientY-Ln.y}))}return G.useEffect(()=>{if(!ye)return;function F(){ha(rt=>{const ht=window.innerWidth-50,Ut=window.innerHeight-50,Bt=50-Gt,pn=0,re=Math.max(Bt,Math.min(rt.x,ht)),Nn=Math.max(pn,Math.min(rt.y,Ut));if(re!==rt.x||Nn!==rt.y){const fe={x:re,y:Nn};return localStorage.setItem("arcten-sidebar-position",JSON.stringify(fe)),fe}return rt})}return window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[ye,Gt]),G.useEffect(()=>{if(!qn)return;function F(bt){const ht=bt.clientX-fi.x,Ut=bt.clientY-fi.y,Bt=50,pn=window.innerWidth-Bt,re=window.innerHeight-Bt,Nn=Bt-Gt,fe=0,En=Math.max(Nn,Math.min(ht,pn)),yn=Math.max(fe,Math.min(Ut,re));ha({x:En,y:yn})}function rt(){Ee(!1),localStorage.setItem("arcten-sidebar-position",JSON.stringify(Ln))}return window.addEventListener("mousemove",F),window.addEventListener("mouseup",rt),()=>{window.removeEventListener("mousemove",F),window.removeEventListener("mouseup",rt)}},[qn,fi,Ln,Gt]),gs?Ct?B.jsx("div",{className:"fixed right-0 top-0 h-screen w-96 flex items-center justify-center p-4 bg-stone-50 dark:bg-stone-900 border-l border-border",children:B.jsxs("div",{className:"p-4 bg-destructive/10 text-destructive text-sm rounded-lg",children:["Authentication error: ",Ct]})}):St?B.jsx(RR,{features:i5,children:B.jsx(nS,{id:"arcten-sidebar","data-theme":o,"data-layout":r,"data-model":h,initial:ye?{opacity:0,scale:.95,filter:"blur(4px)"}:!1,animate:ye?{opacity:1,scale:1,filter:"blur(0px)"}:{},transition:{duration:.2,ease:"easeOut"},className:`
|
|
241
|
-
${ye?"fixed z-50 shadow-xl rounded-xl":"h-screen flex-shrink-0 relative rounded-l-2xl"}
|
|
242
|
-
${be?"bg-stone-50 dark:bg-stone-900":"bg-stone-100 dark:bg-stone-800 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors duration-200"}
|
|
243
|
-
${ye?"border border-border":"border-l border-border"}
|
|
244
|
-
${be?"":"w-[30px]"}
|
|
245
|
-
`,style:be?ye?{width:`${Gt}px`,height:mt?"auto":`${Pe}px`,left:`${Ln.x}px`,top:`${Ln.y}px`}:{width:`${Gt}px`}:void 0,onClick:be?void 0:Oe,children:be?B.jsxs(B.Fragment,{children:[!ye&&B.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-blue-500/40 hover:w-1 transition-all group",onMouseDown:Cc,children:B.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-3 -translate-x-1"})}),ye&&B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 cursor-nwse-resize",onMouseDown:F=>{F.preventDefault(),Na(!0)}}),B.jsx("div",{className:"absolute bottom-0 left-4 right-4 h-3 cursor-move hover:bg-blue-500/20 group",onMouseDown:F=>{F.preventDefault(),F.stopPropagation(),Ee(!0),di({x:F.clientX-Ln.x,y:F.clientY-Ln.y})},children:B.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1 rounded-full bg-stone-400/30 group-hover:bg-blue-500/40 transition-colors"})}),B.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-1 cursor-ew-resize hover:bg-blue-500/40",onMouseDown:F=>{F.preventDefault(),Na(!0)}})]}),B.jsxs("div",{className:"flex flex-col h-full",children:[B.jsxs("div",{className:`flex items-center justify-between p-3 border-b border-border ${ye?"cursor-move":""}`,onMouseDown:ye?Oo:void 0,children:[B.jsx("h2",{className:`text-base font-semibold ${ye&&mt?"cursor-pointer":""}`,onClick:ye&&mt?F=>{F.stopPropagation(),Ku()}:void 0,children:v}),B.jsxs("div",{className:"flex items-center gap-1",onClick:F=>F.stopPropagation(),children:[B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx("button",{type:"button",className:da(Jd({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:Ii,"aria-label":"New chat",children:B.jsx(Ta.Plus,{className:"h-4 w-4"})})}),B.jsx(Qd,{children:"Start a new conversation"})]}),B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx("button",{type:"button",className:da(Jd({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:ye?Ro:Rc,"aria-label":ye?"Dock sidebar":"Float sidebar",children:ye?B.jsx(Ta.Dock,{className:"h-4 w-4"}):B.jsx(Ta.PictureInPicture2,{className:"h-4 w-4"})})}),B.jsx(Qd,{children:ye?"Dock to sidebar":"Undock to floating window"})]}),B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx("button",{type:"button",className:da(Jd({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:ye?Ku:Ju,"aria-label":ye?mt?"Maximize":"Minimize":"Close sidebar",children:ye?mt?B.jsx(Ta.Maximize2,{className:"h-4 w-4"}):B.jsx(Ta.Minimize2,{className:"h-4 w-4"}):B.jsx(Ta.X,{className:"h-4 w-4"})})}),B.jsx(Qd,{children:ye?mt?"Maximize window":"Minimize to header":"Close the chat"})]})]})]}),!mt&&B.jsxs(B.Fragment,{children:[ft&&Ll.length>0&&B.jsxs("div",{className:`border-b border-border ${kn?"flex flex-col flex-1":""}`,children:[B.jsxs("div",{className:"flex items-center justify-between px-3 py-1",children:[B.jsx("h3",{className:"text-xs font-semibold text-muted-foreground",children:"Recent chats"}),B.jsx(fS,{variant:"ghost",className:"h-auto px-2 py-1 text-xs text-muted-foreground hover:text-foreground",onClick:()=>{kn||Re(),ml(!kn)},children:kn?"Show less":"View all"})]}),B.jsx("div",{className:`px-2 pb-2 space-y-0.5 ${kn?"flex-1 overflow-y-auto":""}`,children:Ll.slice(0,kn?void 0:3).map(F=>B.jsxs("div",{className:"group relative",children:[B.jsxs("button",{type:"button",className:da(Jd({variant:"ghost"}),"w-full justify-between h-auto py-1 px-3 font-normal"),onClick:()=>uf(F),children:[B.jsx("span",{className:"text-xs truncate",children:F.title}),B.jsx("div",{className:"ml-2 flex items-center",children:B.jsx("span",{className:"text-xs text-muted-foreground group-hover:hidden",children:ma(F.updatedAt)})})]}),B.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hidden group-hover:flex items-center justify-center text-muted-foreground hover:text-foreground rounded-md hover:bg-accent transition-colors",onClick:rt=>{rt.stopPropagation(),zc(F._id)},"aria-label":"Delete conversation",children:B.jsx(Ta.X,{className:"h-3 w-3"})})]},F._id))})]}),B.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[B.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 scroll-smooth",children:Xl.length===0?B.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[A&&B.jsx("div",{className:"mb-6",children:A}),B.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"How can I help you?"}),Ht.length>0&&B.jsx("div",{className:"mt-4 px-4 max-w-md mx-auto",children:B.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[(ne?Ht:Ht.slice(0,10)).map(F=>B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx(Z1,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>{rn(F.sampleUsage),tl.current?.focus()},children:F.friendlyName})}),B.jsx(Qd,{children:B.jsxs("div",{className:"max-w-xs",children:[B.jsx("p",{className:"font-medium",children:F.description}),B.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[B.jsx("span",{className:"font-medium",children:"Example:"}),' "',F.sampleUsage,'"']}),F.paramCount>0&&B.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[B.jsx("span",{className:"font-medium",children:"Parameters:"})," ",F.params.join(", ")]})]})})]},F.name)),Ht.length>10&&!ne&&B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsxs(Z1,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>xe(!0),children:["+",Ht.length-10," more"]})}),B.jsx(Qd,{children:B.jsxs("div",{className:"max-w-xs",children:[B.jsx("p",{className:"font-medium mb-2",children:"Additional tools:"}),B.jsx("div",{className:"space-y-1 max-h-64 overflow-y-auto pr-2",children:Ht.slice(10).map(F=>B.jsxs("div",{children:[B.jsxs("span",{className:"font-medium text-xs",children:[F.friendlyName,":"]}),B.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:F.description})]},F.name))}),B.jsx("p",{className:"text-xs text-muted-foreground mt-2 italic",children:"Click to show all tools"})]})})]}),ne&&Ht.length>10&&B.jsx(Z1,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>xe(!1),children:"Show less"})]})})]}):B.jsxs(B.Fragment,{children:[Xl.map(F=>{const bt=F.parts.filter(ht=>ht.type==="text").map(ht=>ht.text).join("");return B.jsx("div",{className:`${F.role==="user"?"flex justify-end":"w-full"}`,children:B.jsx("div",{className:`${F.role==="user"?"max-w-[85%] text-right":"w-full"}`,children:F.role==="user"?B.jsx(u5,{initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0px)"},transition:{duration:.3,ease:"easeOut"},className:"text-sm whitespace-pre-wrap inline-block bg-stone-100 dark:bg-stone-800 px-3 py-2 rounded-xl",children:bt}):B.jsx("div",{className:"space-y-2",children:F.parts.map((ht,Ut)=>{if(ht.type?.startsWith("tool-")){const Bt=ht.type?.replace("tool-","")||"",pn=Zu.find(fe=>fe.name===Bt),re=ht.state==="input-available",Nn=ht.state==="output-available";if(re&&ki.has(Bt),re){if(ki.has(Bt))return null;const fe=cT(ht.input);return B.jsx(nS,{initial:{opacity:0,y:10,filter:"blur(4px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.3,ease:"easeOut"},children:B.jsx(c5,{toolName:Bt,description:pn?.description||"",args:fe,onApprove:async()=>{if(bs.has(ht.toolCallId))return;Tt(yn=>new Set(yn).add(ht.toolCallId));const En=Co.get(Bt);if(En)try{const yn=await En(...Object.values(fe));nl({toolCallId:ht.toolCallId,tool:Bt,output:yn})}catch(yn){nl({toolCallId:ht.toolCallId,tool:Bt,output:`Error: ${yn}`})}},onDeny:async()=>{bs.has(ht.toolCallId)||(Tt(En=>new Set(En).add(ht.toolCallId)),nl({toolCallId:ht.toolCallId,tool:Bt,output:"User denied tool execution"}))}})},`${ht.toolCallId}-${Ut}`)}else if(Nn){const fe=ht.output==="User denied tool execution",En=cT(ht.input);return B.jsx(r5,{toolName:Bt,args:En,isDenied:fe,isSafe:ki.has(Bt)},`${ht.toolCallId}-${Ut}`)}return null}return ht.type==="text"&&ht.text&&vs?B.jsx(R5,{text:ht.text,className:"text-sm prose prose-sm dark:prose-invert max-w-none",ResponseComponent:vs},`${F.id}-${Ut}`):ht.type==="reasoning"&&ht.text?B.jsxs(LM,{className:"w-full",isStreaming:Ba==="streaming"&&Ut===F.parts.length-1&&F.id===Xl.at(-1)?.id,children:[B.jsx(qM,{}),B.jsx(YM,{children:ht.text})]},`${F.id}-${Ut}`):null})})})},F.id)}),B.jsx("div",{ref:hi})]})}),Wi&&B.jsxs("div",{className:"px-4 py-2 bg-destructive/10 text-destructive text-xs",children:["Error: ",Wi.message]}),B.jsxs("div",{className:"p-4 border-t border-border relative overflow-visible",children:[B.jsx(CR,{mode:"wait",children:(Ba==="streaming"||Ba==="submitted")&&B.jsxs(nS,{initial:{opacity:0,filter:"blur(4px)",y:5},animate:{opacity:1,filter:"blur(0px)",y:0},exit:{opacity:0,filter:"blur(4px)",y:5},transition:{duration:.2,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 -top-6 flex items-center gap-1.5 bg-stone-100 dark:bg-stone-800 px-3 py-1.5 rounded-full shadow-lg border border-border z-50",children:[B.jsx(nS,{className:"w-2 h-2 bg-stone-400 dark:bg-stone-600",animate:{rotate:[0,0,90,90],borderRadius:["50%","30%","30%","50%"],scale:[.75,1,1,.75]},transition:{duration:2,repeat:1/0,ease:"easeInOut",times:[0,.4,.6,1]}}),B.jsx("p",{className:"text-xs text-muted-foreground",children:zo})]})}),B.jsxs("form",{onSubmit:gi,className:"relative",children:[B.jsx(eD,{ref:tl,value:mi,onChange:Kl,placeholder:"Ask anything..",className:"w-full pr-12 resize-none border border-border rounded-xl px-4 py-3",minHeight:24,maxHeight:200,onKeyDown:F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),gi(F))}}),Ba==="streaming"||Ba==="submitted"?B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx("button",{type:"button",className:da(Jd({variant:"ghost",size:"icon"}),"absolute top-1/2 -translate-y-1/2 right-2 h-8 w-8"),onClick:Zl,children:B.jsx(Ta.Square,{className:"h-4 w-4"})})}),B.jsxs(Qd,{children:[B.jsx(RE,{children:"Escape"})," to stop"]})]}):B.jsxs(Gd,{children:[B.jsx(Xd,{asChild:!0,children:B.jsx("button",{type:"submit",className:da(Jd({variant:"ghost",size:"icon"}),"absolute top-1/2 -translate-y-1/2 right-2 h-8 w-8"),disabled:!mi.trim(),children:B.jsx(Ta.ArrowRight,{className:"h-4 w-4"})})}),B.jsxs(Qd,{children:[B.jsx(RE,{children:"Enter"})," to send"]})]})]})]})]}),B.jsxs("a",{href:"https://arcten.com",target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-center gap-1.5 py-3 text-xs text-muted-foreground/40 hover:text-muted-foreground/60 transition-all",children:[B.jsx("span",{className:"whitespace-nowrap",children:"Powered by"}),B.jsx("div",{className:"w-4 h-2 bg-current rounded-t-full flex-shrink-0"}),B.jsx("span",{className:"whitespace-nowrap",children:"Arcten"})]})]})]})]}):B.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-full cursor-pointer",children:[B.jsx(Ta.BotMessageSquare,{className:"h-5 w-5 text-stone-600 dark:text-stone-400"}),B.jsx("span",{className:"text-xs font-medium text-stone-600 dark:text-stone-400 [writing-mode:vertical-lr]",children:"AI agent"})]})})}):B.jsx("div",{className:"fixed right-0 top-0 h-screen w-96 flex items-center justify-center p-4 bg-stone-50 dark:bg-stone-900 border-l border-border",children:B.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"Loading..."})}):null}function T0(o){if(typeof o=="string")try{const r=JSON.parse(o);return T0(r)}catch{return o}if(Array.isArray(o))return o.map(T0);if(o&&typeof o=="object"){const r={};for(const[h,m]of Object.entries(o))r[h]=T0(m);return r}return o}function U5(o){if(typeof o=="string"){try{const r=JSON.parse(o);if(r&&typeof r=="object"&&!Array.isArray(r))return T0(r)}catch{}return{}}return o&&typeof o=="object"&&!Array.isArray(o)?T0(o):{}}function w5({apiBaseUrl:o="https://api.arcten.com",tokenEndpoint:r="/api/arcten/token",clientToken:h,skipTokenFetch:m=!1,user:v,tools:A=[],safeTools:S=[],toolMetadata:E,systemPrompt:M="",initialMessages:z=[],conversationId:C,initialState:R={},onToolCall:N,onFinish:k,ragFilters:lt}={}){const[st,ft]=G.useState(h||null),P=G.useRef(h||null),[ot,it]=G.useState(null),[St,Et]=G.useState(null),gt=G.useRef(null),[Ct,dt]=G.useState([]),[Lt,pt]=G.useState(C||(typeof window<"u"?crypto.randomUUID():null)),[Wt,Dt]=G.useState(!1),[Jt,Je]=G.useState(new Set),[je,q]=G.useState(R),K=G.useRef(R),[ct,Mt]=G.useState(!1),[Ot,be]=G.useState(null),me=G.useRef(!1),Gt=G.useCallback(async(Tt,xt=3)=>{if(!Lt||!P.current)return;const jt=async()=>{const te=`${o.replace("/chat","").replace(/\/$/,"")}/convex/api/mutation`,ne=await fetch(te,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${P.current}`},body:JSON.stringify({path:"conversations:mergeStateByChatId",args:{chatId:Lt,updates:Tt},format:"json"})});if(!ne.ok){if(ne.status===404){console.warn("[useAgent] Convex API endpoint not available (404), state changes will not be persisted");return}const xe=await ne.text().catch(()=>"Unknown error");throw new Error(`Failed to sync conversation state: ${ne.status} ${xe}`)}};for(let Ht=0;Ht<xt;Ht++)try{await jt(),be(null);return}catch(te){if(Ht===xt-1){const xe=te instanceof Error?te:new Error(String(te));throw be(xe),console.error("Failed to sync state to Convex after retries:",te),xe}await new Promise(xe=>setTimeout(xe,Math.pow(2,Ht)*100))}},[Lt,o,P]),It=G.useMemo(()=>function(){return K.current},[]),Pe=G.useMemo(()=>async function(xt){const jt={...K.current,...xt};K.current=jt,q(jt);try{await Gt(xt)}catch(Ht){throw Ht}},[Gt]),Aa=G.useMemo(()=>[...A,...S,It,Pe],[A,S,It,Pe]),Ea=G.useMemo(()=>VM(Aa,E),[Aa,E]),Na=G.useMemo(()=>{const Tt=new Map,xt=new Map(Ea.map(jt=>[jt.name,jt]));return Aa.forEach(jt=>{const Ht=jt[ps];if(Ht){const ne=xt.get(Ht);if(ne){Tt.set(ne.name,jt);return}}const te=Ea.find(ne=>ne.name===jt.name);te&&Tt.set(te.name,jt)}),Tt},[Aa,Ea]),ye=G.useMemo(()=>new Set(Ea.map(Tt=>Tt.name)),[Ea]),Ji=G.useMemo(()=>{const Tt=[{name:"getState",description:"Get the current agent state. Returns IDs, workflow state, checklists, and other persistent data.",jsonSchema:{type:"object",properties:{},required:[]}},{name:"setState",description:"Update the agent state. Store IDs, workflow state, checklists, context, and other data that must persist across conversations. Merges with existing state.",jsonSchema:{type:"object",properties:{updates:{type:"object",description:"Partial state updates to merge with existing state"}},required:["updates"]}}];return[...Ea,...Tt]},[Ea]),mt=G.useMemo(()=>Ji.filter(Tt=>Tt.name==="getState"||Tt.name==="setState"?!0:ye.has(Tt.name)),[Ji,ye]),hl=G.useMemo(()=>{const Tt=new Set;return Tt.add("getState"),Tt.add("setState"),S.forEach(xt=>{for(const[jt,Ht]of Na.entries())if(Ht===xt){Tt.add(jt);break}}),Tt},[S,Na]);G.useEffect(()=>m||h?void 0:((async()=>{try{const xt=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:v})});if(!xt.ok)throw new Error("Failed to fetch token");const jt=await xt.json();ft(jt.clientToken),P.current=jt.clientToken,Et(jt.expiresAt),it(null)}catch(xt){console.error("[useAgent] Token fetch failed:",xt),it(xt instanceof Error?xt.message:"Failed to fetch token")}})(),()=>{gt.current&&clearTimeout(gt.current)}),[r,JSON.stringify(v),m,h]),G.useEffect(()=>{if(!St||m||h)return;gt.current&&clearTimeout(gt.current);const Tt=Math.floor(Date.now()/1e3),xt=St-Tt,Ht=Math.max(0,xt-5);return gt.current=setTimeout(async()=>{try{const te=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:v})});if(!te.ok)throw new Error("Failed to refresh token");const ne=await te.json();ft(ne.clientToken),P.current=ne.clientToken,Et(ne.expiresAt),it(null)}catch(te){console.error("[useAgent] Token refresh failed:",te),it(te instanceof Error?te.message:"Failed to refresh token")}},Ht*1e3),()=>{gt.current&&clearTimeout(gt.current)}},[St,r,JSON.stringify(v),m,h]);const Ln=async(Tt,xt={})=>{const jt=xt.headers?new Headers(xt.headers):new Headers;jt.delete("user-agent"),jt.delete("User-Agent"),console.log("[useAgent] Making request to:",Tt),console.log("[useAgent] Method:",xt.method||"GET"),console.log("[useAgent] Has Authorization header:",jt.has("Authorization")),console.log("[useAgent] Client token available:",!!P.current);try{const Ht=await fetch(Tt,{...xt,headers:jt});if(!Ht.ok){console.error("[useAgent] Request failed:",Ht.status,Ht.statusText);const te=await Ht.text().catch(()=>"Unable to read error response");console.error("[useAgent] Error response:",te)}return Ht}catch(Ht){throw console.error("[useAgent] Fetch error:",Ht),Ht}},ha=`${o}/chat`;console.log("[useAgent] Chat API URL:",ha);const{messages:qn,sendMessage:Ee,status:fi,error:di,stop:gs,addToolResult:Me,setMessages:hi}=Wx.useChat({id:Lt||void 0,messages:z,transport:new rS.DefaultChatTransport({api:ha,fetch:Ln,headers:()=>{const Tt={};return P.current?(Tt.Authorization=`Bearer ${P.current}`,console.log("[useAgent] Adding Authorization header with token")):console.warn("[useAgent] No client token available - request may fail"),Tt},body:()=>{const Tt=mt.map(jt=>({name:jt.name,description:jt.description,inputSchema:jt.jsonSchema})),xt=Tt.filter(jt=>jt.name==="getState"||jt.name==="setState").map(jt=>jt.name);return xt.length>0&&console.log("[useAgent] State tools included in tools list sent to AI SDK:",xt),{tools:Tt,systemPrompt:M,state:K.current,...lt&&{ragFilters:lt}}}}),sendAutomaticallyWhen:rS.lastAssistantMessageIsCompleteWithToolCalls});G.useEffect(()=>{qn.forEach(Tt=>{Tt.role==="assistant"&&Tt.parts.forEach(xt=>{if(!xt.type?.startsWith("tool-")||xt.state!=="input-available")return;const jt=xt.type.replace("tool-",""),Ht=xt.toolCallId;if(Jt.has(Ht))return;Je(ne=>new Set(ne).add(Ht));const te=U5(xt.input);if(hl.has(jt)){const ne=Na.get(jt);ne?(async()=>{try{const xe=mt.find(Ki=>Ki.name===jt);let Ll;if(xe&&xe.jsonSchema?.properties){const el=Object.keys(xe.jsonSchema.properties).map(_a=>te[_a]);Ll=await ne(...el)}else if(jt==="getState")Ll=ne();else if(jt==="setState"){const Ki=te.updates||te;Ll=await ne(Ki)}else Ll=await ne(...Object.values(te));Me({toolCallId:Ht,tool:jt,output:Ll})}catch(xe){console.error(`[useAgent] Error executing tool ${jt}:`,xe),Me({toolCallId:Ht,tool:jt,output:`Error: ${xe}`})}})():console.warn(`[useAgent] Tool ${jt} not found in toolsMap`)}else N&&N({toolCall:{toolCallId:Ht,toolName:jt,args:te}})})})},[qn,hl,Na,N,Me,Jt,Pe,mt]),G.useEffect(()=>{if(fi==="ready"&&qn.length>0&&k){const Tt=qn[qn.length-1];Tt&&Tt.role==="assistant"&&k({message:Tt,messages:qn,isAbort:!1,isDisconnect:!1,isError:!!di})}},[fi,qn,di,k]);async function tl(){if(!(!v?.id||!st)){Dt(!0);try{const xt=await(await fetch(`${o}/conversations`,{headers:{Authorization:`Bearer ${st}`}})).json();dt(xt.conversations||[])}catch(Tt){console.error("Failed to fetch conversations:",Tt)}finally{Dt(!1)}}}G.useEffect(()=>{v?.id&&st&&tl()},[JSON.stringify(v),st,o]),G.useEffect(()=>{if(!Lt||!P.current)return;(async()=>{Mt(!0),be(null);try{const xt=await fetch(`${o.replace("/chat","")}/convex/api/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${P.current}`},body:JSON.stringify({path:"conversations:getStateByChatId",args:{chatId:Lt},format:"json"})});if(!xt.ok){const xe=await xt.text().catch(()=>"Unknown error");throw new Error(`Failed to fetch conversation state: ${xt.status} ${xe}`)}const Ht=(await xt.json())?.value||{},te=!me.current;let ne;te?(ne={...R,...Ht},me.current=!0):ne=Ht,K.current=ne,q(ne)}catch(xt){console.error("Failed to fetch state:",xt);const jt=xt instanceof Error?xt:new Error(String(xt));be(jt),me.current||(K.current=R,q(R),me.current=!0)}finally{Mt(!1)}})()},[Lt,o]);async function mi(Tt){pt(Tt),Dt(!0);try{const xt=await fetch(`${o}/conversations/${Tt}/messages`,{headers:{Authorization:`Bearer ${P.current}`}});if(!xt.ok)throw new Error(`Failed to fetch messages: ${xt.statusText}`);const Ht=(await xt.json()).messages||[];hi(Ht)}catch(xt){console.error("Failed to load conversation messages:",xt)}finally{Dt(!1)}}async function rn(Tt){if(st)try{await fetch(`${o}/conversations/${Tt}`,{method:"DELETE",headers:{Authorization:`Bearer ${st}`}}),dt(Ct.filter(xt=>xt._id!==Tt)),Tt===Lt&&vs()}catch(xt){console.error("Failed to delete conversation:",xt)}}function vs(){const Tt=crypto.randomUUID();pt(Tt),hi([]),Je(new Set),K.current=R,q(R),me.current=!1}function Mo(Tt){Me(Tt)}async function zo(Tt){const xt={...K.current,...Tt};K.current=xt,q(xt);try{await Gt(Tt)}catch(jt){throw jt}}async function Hl(){if(!v?.id||!P.current)throw new Error("User authentication required to share state");const Tt=`shared_${crypto.randomUUID()}`;try{return await fetch(`${o.replace("/chat","")}/convex/api/mutation`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${P.current}`},body:JSON.stringify({path:"sharedStates:create",args:{stateId:Tt,state:K.current,projectId:"default",createdBy:v.id},format:"json"})}),Tt}catch(xt){throw console.error("Failed to share state:",xt),xt}}async function bs(Tt){if(!P.current)throw new Error("Authentication required to import state");try{const xt=await fetch(`${o.replace("/chat","")}/convex/api/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${P.current}`},body:JSON.stringify({path:"sharedStates:getByStateId",args:{stateId:Tt},format:"json"})});if(!xt.ok)throw new Error("Failed to fetch shared state");const Ht=(await xt.json())?.value||{};K.current=Ht,q(Ht)}catch(xt){throw console.error("Failed to import state:",xt),xt}}return{id:Lt,messages:qn,status:fi,error:di,sendMessage:Ee,stop:gs,addToolOutput:Mo,setMessages:hi,conversations:Ct,loadConversation:mi,deleteConversation:rn,startNewConversation:vs,isLoadingConversations:Wt,clientToken:st,tokenError:ot,state:je,setState:zo,shareState:Hl,importState:bs,isStateLoading:ct,stateError:Ot}}exports.verifyToken=Az.verifyToken;exports.ARCTEN_ORIGINAL_NAME=ps;exports.ArctenAgent=O5;exports.preserveToolName=o5;exports.useAgent=w5;
|
|
18
|
+
`);if("functions"in e&&typeof e.functions=="object"){const o=e;n=o.functions,s=o.toolOrder}else n=e,s=void 0;const i=new Set;return t.map(o=>{const r=$h(o,n,i,s);if(!r){const a=o.name,u=o[kt]||a||"unnamed";return typeof process<"u"&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV!=="production")&&typeof console<"u"&&console.warn&&console.warn(`⚠️ [@arcteninc/core] No metadata found for tool "${u}". This tool will be excluded.
|
|
19
|
+
To fix: Run "arcten-extract-types ." and ensure "${u}" is used in ArctenAgent/useAgent.`),null}return i.add(r.meta.name),{name:r.meta.name,description:r.meta.description,jsonSchema:r.meta.parameters}}).filter(o=>o!==null)}function zh({toolName:t,description:e,args:n,onApprove:s,onDeny:i}){const o=Object.keys(n).length>0;return h.jsx("div",{className:"bg-stone-100 dark:bg-stone-800 border border-border rounded-lg px-3 py-2.5 my-1.5",children:h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("div",{className:"flex items-center gap-1.5 mb-1",children:h.jsx("span",{className:"text-sm font-medium text-foreground",children:t})}),o&&h.jsx("div",{className:"space-y-0.5 mb-1.5",children:Object.entries(n).map(([r,a])=>h.jsxs("div",{className:"flex items-start gap-1.5 text-xs",children:[h.jsxs("span",{className:"text-muted-foreground min-w-[60px]",children:[r,":"]}),h.jsx("span",{className:"font-mono text-foreground",children:typeof a=="string"?a:JSON.stringify(a)})]},r))})]}),h.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[h.jsxs(Cn,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs",onClick:s,children:[h.jsx(tt.Check,{className:"h-3 w-3 mr-1"}),"Approve"]}),h.jsx(Cn,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs text-muted-foreground",onClick:i,children:h.jsx(tt.X,{className:"h-3 w-3"})})]})]})})}function Uh({toolName:t,args:e,isDenied:n,isSafe:s}){const[i,o]=m.useState(!1);if(t==="fetchDocContent")return null;const r=["k","maxResults","_organizationId"];t==="searchDocs"&&r.push("filters");const a=Object.fromEntries(Object.entries(e).filter(([u])=>!r.includes(u))),c=Object.keys(a).length>0;return h.jsxs("div",{className:"my-1",children:[h.jsxs("button",{onClick:()=>c&&o(!i),className:`inline-flex items-center gap-1.5 text-xs rounded-md px-2 py-1 transition-colors ${n?"bg-red-100 dark:bg-red-950/30 text-red-700 dark:text-red-400":"bg-green-100 dark:bg-green-950/30 text-green-700 dark:text-green-400"} ${c?"cursor-pointer hover:bg-opacity-80":""}`,children:[c&&h.jsx("span",{className:"transition-transform duration-200",children:i?h.jsx(tt.ChevronDown,{className:"h-3 w-3"}):h.jsx(tt.ChevronRight,{className:"h-3 w-3"})}),n?h.jsx(tt.X,{className:"h-3 w-3"}):s?h.jsx(tt.Zap,{className:"h-3 w-3"}):h.jsx(tt.Check,{className:"h-3 w-3"}),h.jsxs("span",{className:"font-medium",children:[n?"Denied":s?"Auto-executed":"Executed"," ",t]})]}),i&&c&&h.jsx("div",{className:"mt-1 ml-6 p-2 bg-stone-50 dark:bg-stone-900 rounded-md border border-border",children:h.jsx("div",{className:"space-y-0.5",children:Object.entries(a).map(([u,l])=>h.jsxs("div",{className:"flex items-start gap-1.5 text-xs",children:[h.jsxs("span",{className:"text-muted-foreground min-w-[60px]",children:[u,":"]}),h.jsx("span",{className:"font-mono text-foreground",children:typeof l=="string"?l:JSON.stringify(l)})]},u))})})]})}function _h({...t}){return h.jsx(Ms.Root,{"data-slot":"collapsible",...t})}function Wh({...t}){return h.jsx(Ms.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...t})}function Kh({...t}){return h.jsx(Ms.CollapsibleContent,{"data-slot":"collapsible-content",...t})}const Hh=m.lazy(()=>import("streamdown").then(t=>({default:t.Streamdown}))),ui=m.memo(({className:t,...e})=>typeof window>"u"?null:h.jsx(m.Suspense,{fallback:null,children:h.jsx(Hh,{className:et("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",t),...e})}),(t,e)=>t.children===e.children);ui.displayName="Response";const Gh=Object.freeze(Object.defineProperty({__proto__:null,Response:ui},Symbol.toStringTag,{value:"Module"})),Xh=({children:t,as:e="p",className:n,duration:s=2,spread:i=2})=>{const o=Lh.create(e),r=m.useMemo(()=>(t?.length??0)*i,[t,i]);return h.jsx(o,{animate:{backgroundPosition:"0% center"},className:et("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${r}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:s,ease:"linear"},children:t})},qh=m.memo(Xh),Sa=m.createContext(null),Yh=()=>{const t=m.useContext(Sa);if(!t)throw new Error("Reasoning components must be used within Reasoning");return t},Jh=1e3,Zh=1e3,Aa=m.memo(({className:t,isStreaming:e=!1,open:n,defaultOpen:s=!0,onOpenChange:i,duration:o,children:r,...a})=>{const[c,u]=xi.useControllableState({prop:n,defaultProp:s,onChange:i}),[l,d]=xi.useControllableState({prop:o,defaultProp:0}),[f,g]=m.useState(!1),[x,v]=m.useState(null);m.useEffect(()=>{e?x===null&&v(Date.now()):x!==null&&(d(Math.ceil((Date.now()-x)/Zh)),v(null))},[e,x,d]),m.useEffect(()=>{if(s&&!e&&c&&!f){const y=setTimeout(()=>{u(!1),g(!0)},Jh);return()=>clearTimeout(y)}},[e,c,s,u,f]);const A=y=>{u(y)};return h.jsx(Sa.Provider,{value:{isStreaming:e,isOpen:c,setIsOpen:u,duration:l},children:h.jsx(_h,{className:et("not-prose mb-4",t),onOpenChange:A,open:c,...a,children:r})})}),Qh=(t,e)=>t||e===0?h.jsx(qh,{duration:1,children:"Thinking..."}):e===void 0?h.jsx("p",{children:"Thought for a few seconds"}):h.jsxs("p",{children:["Thought for ",e," seconds"]}),Ca=m.memo(({className:t,children:e,...n})=>{const{isStreaming:s,isOpen:i,duration:o}=Yh();return h.jsx(Wh,{className:et("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",t),...n,children:e??h.jsxs(h.Fragment,{children:[h.jsx(tt.BrainIcon,{className:"size-4"}),Qh(s,o),h.jsx(tt.ChevronDownIcon,{className:et("size-4 transition-transform",i?"rotate-180":"rotate-0")})]})})}),Pa=m.memo(({className:t,children:e,...n})=>h.jsx(Kh,{className:et("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",t),...n,children:h.jsx(ui,{className:"grid gap-2",children:e})}));Aa.displayName="Reasoning";Ca.displayName="ReasoningTrigger";Pa.displayName="ReasoningContent";function Ir(t){const e=t.toLowerCase();return e.includes("youtube")?{icon:"▶",color:"#FF0000"}:e.includes("ted")?{icon:"TED",color:"#E62B1E"}:e.includes("github")?{icon:"GitHub",color:"#181717"}:e.includes("twitter")||e.includes("x.com")?{icon:"𝕏",color:"#000000"}:{icon:t.split(".")[0]||t}}function tf({sources:t,citationNumber:e,className:n}){const s=t.find(r=>r.number===e);if(!s)return null;const i=Ir(s.domain),o=t.map(r=>({...r,iconInfo:Ir(r.domain)}));return h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsxs("button",{className:et("inline-flex items-center gap-1 px-1 py-0.5 rounded text-[10px] font-medium","bg-stone-200/60 dark:bg-stone-700/60 text-stone-800 dark:text-stone-200","hover:bg-stone-300/80 dark:hover:bg-stone-600/80","transition-all duration-200","border border-stone-300/60 dark:border-stone-600/60","cursor-pointer hover:scale-105 active:scale-95","leading-tight",n),onClick:r=>{r.preventDefault(),r.stopPropagation(),window.open(s.url,"_blank","noopener,noreferrer")},children:[h.jsx("span",{className:"leading-none",children:i.icon}),h.jsx("span",{className:"leading-none",children:s.domain})]})}),h.jsx(Kt,{side:"top",className:"bg-stone-800 dark:bg-stone-900 border border-stone-700 dark:border-stone-600 p-3 max-w-sm z-50 rounded-lg shadow-lg",children:h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"text-xs font-semibold text-stone-300 dark:text-stone-200 mb-2 pb-2 border-b border-stone-700 dark:border-stone-600",children:["Sources • ",o.length]}),o.map(r=>h.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:et("flex items-center gap-2 p-2 rounded-md hover:bg-stone-700/50 dark:hover:bg-stone-700/50 transition-colors","text-stone-300 dark:text-stone-300 hover:text-white dark:hover:text-white"),onClick:a=>a.stopPropagation(),children:[h.jsx("span",{className:"text-xs font-medium min-w-[24px] flex items-center justify-center",style:r.iconInfo.color?{color:r.iconInfo.color}:void 0,children:r.iconInfo.icon}),h.jsx("span",{className:"text-xs flex-1 truncate",children:r.domain})]},r.number))]})})]})}function ef({text:t,citations:e,citationMap:n,referencesText:s,ResponseComponent:i,className:o}){const r=m.useRef(null),[a,c]=m.useState([]);m.useEffect(()=>{if(!r.current||e.length===0||n.size===0){c([]);return}const l=setTimeout(()=>{const d=r.current;if(!d)return;const f=/\[(\d+)\]/g,g=document.createTreeWalker(d,NodeFilter.SHOW_TEXT,null),x=[];let v;for(;v=g.nextNode();)if(v.nodeType===Node.TEXT_NODE){const y=v,w=y.textContent||"";let b=y.parentElement,k=!1;for(;b&&b!==d;){if(b.tagName==="A"||b.tagName==="CODE"||b.tagName==="PRE"){k=!0;break}b=b.parentElement}if(!k){const j=Array.from(w.matchAll(f)).filter(L=>{const V=parseInt(L[1],10);return n.has(V)});j.length>0&&x.push({node:y,matches:j})}}const A=[];x.forEach(({node:y,matches:w})=>{const b=y.textContent||"",k=document.createDocumentFragment();let M=0;w.forEach(j=>{j.index!==void 0&&j.index>M&&k.appendChild(document.createTextNode(b.slice(M,j.index)));const L=document.createElement("span");L.className="inline-flex items-center citation-button-container";const V=parseInt(j[1],10);L.setAttribute("data-citation",j[1]),k.appendChild(L),A.push({element:L,citationNum:V}),M=(j.index||0)+j[0].length}),M<b.length&&k.appendChild(document.createTextNode(b.slice(M))),y.parentNode&&y.parentNode.replaceChild(k,y)}),c(A)},300);return()=>{clearTimeout(l)}},[t,e,n]);const u=s?h.jsxs("div",{className:"mt-4 pt-4 border-t border-stone-200 dark:border-stone-700",children:[h.jsx("div",{className:"text-xs font-semibold text-stone-600 dark:text-stone-400 mb-2",children:"References"}),h.jsx("div",{className:"text-xs text-stone-600 dark:text-stone-400 space-y-1",children:Array.from(n.entries()).sort(([l],[d])=>l-d).map(([l,d])=>h.jsxs("div",{className:"flex items-start gap-2",children:[h.jsxs("span",{className:"font-medium",children:["[",l,"]"]}),h.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline break-all",children:d})]},l))})]}):null;return h.jsxs("div",{className:o,children:[h.jsx("div",{ref:r,children:h.jsx(i,{children:t})}),a.map(({element:l,citationNum:d},f)=>e.find(x=>x.number===d)?Qa.createPortal(h.jsx(tf,{sources:e.map(x=>({number:x.number,url:x.url,domain:nf(x.url)})),citationNumber:d},`citation-${d}-${f}`),l,`citation-${d}-${f}`):null),u]})}function nf(t){try{return new URL(t).hostname.replace(/^www\./,"")}catch{return t}}function sf(t){let e=t.replace(/_+$/gm,"");const n=/(?:^|\n)(?:#+\s*)?(?:References|References:)(?:\*\*)?\s*\n?([\s\S]*?)(?=\n\n|\n#|$)/i,s=e.match(n),i=new Map,o=[];if(s&&s[1]){const g=s[1],x=/\[(\d+)\]\s*(https?:\/\/[^\s\)]+)/g;let v;for(;(v=x.exec(g))!==null;)if(v[1]&&v[2]){const A=parseInt(v[1],10),y=v[2].replace(/[.,;:!?]+$/,"");i.set(A,y),o.push({number:A,url:y})}}let r,a=e;s&&s[0]&&(r=s[0],a=e.replace(n,""));const c=[];let u=0;const l=/```[\s\S]*?```|`[^`]+`/g;let d;for(;(d=l.exec(a))!==null;)d.index>u&&c.push({type:"text",content:a.slice(u,d.index),start:u,end:d.index}),c.push({type:"code",content:d[0],start:d.index,end:d.index+d[0].length}),u=d.index+d[0].length;return u<a.length&&c.push({type:"text",content:a.slice(u),start:u,end:a.length}),{processedText:c.map(g=>{if(g.type==="code")return g.content;let x=g.content;return x=x.replace(/\[(\d+)\]\((https?:\/\/[^\)]+)\)/g,(A,y,w)=>{const b=parseInt(y,10);return i.has(b)||(i.set(b,w),o.push({number:b,url:w})),`[${b}]`}),x}).join(""),citations:o.sort((g,x)=>g.number-x.number),citationMap:i,referencesText:r}}function Xe(t){if(typeof t=="string")try{const e=JSON.parse(t);return Xe(e)}catch{return t}if(Array.isArray(t))return t.map(Xe);if(t&&typeof t=="object"){const e={};for(const[n,s]of Object.entries(t))e[n]=Xe(s);return e}return t}function ss(t){if(typeof t=="string"){try{const e=JSON.parse(t);if(e&&typeof e=="object"&&!Array.isArray(e))return Xe(e)}catch{}return{}}return t&&typeof t=="object"&&!Array.isArray(t)?Xe(t):{}}function rf({theme:t="auto",layout:e="sidebar",model:n="auto",animated:s=!0,title:i="Chat",logo:o=void 0,defaultWidth:r=384,minWidth:a=300,maxWidth:c=800,initiallyExpanded:u=!1,tools:l=[],safeTools:d=[],toolMetadata:f,systemPrompt:g="",tokenEndpoint:x="/api/arcten/token",apiBaseUrl:v="https://api.arcten.com",user:A,state:y,onStateChange:w,allowStateEdits:b=!0}){const[k,M]=m.useState(null),j=m.useRef(null),[L,V]=m.useState(null),[$,q]=m.useState(null),nt=m.useRef(null),U=y!==void 0,[de,Tt]=m.useState({}),rt=m.useRef({});U&&y?rt.current=y:U||(rt.current=de);const[Bt,B]=m.useState(!1),[ct,lt]=m.useState(null),ut=m.useRef(!1),[dt,Vt]=m.useState(u),[yt,he]=m.useState(r),[Yt,Jt]=m.useState(600),[jt,Nt]=m.useState(!1),[W,fe]=m.useState(!1),[pt,Zt]=m.useState(!1),[gt,me]=m.useState({x:100,y:100}),[St,Re]=m.useState(!1),[Qt,pe]=m.useState({x:0,y:0}),[In,ge]=m.useState(!1),te=m.useRef(null),ye=m.useRef(null),[xe,Ie]=m.useState(""),[Le,Ln]=m.useState(null),[On,Fn]=m.useState("Thinking..."),[Oe,C]=m.useState(new Set),[P,N]=m.useState(""),[O,_]=m.useState([]),[z,st]=m.useState(!1),[Rt,ee]=m.useState([]),[Mt,Fe]=m.useState(()=>typeof window<"u"?crypto.randomUUID():null),[ve,an]=m.useState(!1),[cf,cn]=m.useState(!1),[lf,ln]=m.useState([]),di=m.useCallback(async(p,T=3)=>{if(!Mt||!j.current)return;const E=async()=>{const D=`${v.replace("/chat","").replace(/\/$/,"")}/convex/api/mutation`,R=await fetch(D,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${j.current}`},body:JSON.stringify({path:"conversations:mergeStateByChatId",args:{chatId:Mt,updates:p},format:"json"})});if(!R.ok){if(R.status===404){console.warn("[ArctenAgent] Convex API endpoint not available (404), state changes will not be persisted");return}const J=await R.text().catch(()=>"Unknown error");throw new Error(`Failed to sync conversation state: ${R.status} ${J}`)}};for(let S=0;S<T;S++)try{await E(),lt(null);return}catch(D){if(S===T-1){const J=D instanceof Error?D:new Error(String(D));throw lt(J),console.error("Failed to sync state to Convex after retries:",D),J}await new Promise(J=>setTimeout(J,Math.pow(2,S)*100))}},[Mt,v,j]),Be=m.useMemo(()=>function(){return rt.current},[]),$e=m.useMemo(()=>async function(T){const E={...rt.current,...T};rt.current=E,U||Tt(E),w&&w(E);try{await di(T)}catch(S){throw S}},[di,w,U]);m.useEffect(()=>{U&&y&&(rt.current=y)},[U,y]);const ne=m.useMemo(()=>{const p=[...l,...d,Be];return(!U||b)&&p.push($e),p},[l,d,Be,$e,U,b]),Bn=m.useMemo(()=>Ta(ne,f),[ne,f]),It=m.useMemo(()=>{const p=[{name:"getState",description:"Get the current agent state. Returns IDs, workflow state, checklists, and other persistent data.",jsonSchema:{type:"object",properties:{},required:[]}}];return(!U||b)&&p.push({name:"setState",description:"Update the agent state. Store IDs, workflow state, checklists, context, and other data that must persist across conversations. Merges with existing state.",jsonSchema:{type:"object",properties:{updates:{type:"object",description:"Partial state updates to merge with existing state"}},required:["updates"]}}),[...Bn,...p]},[Bn,U,b]),hi=m.useMemo(()=>new Set(It.map(p=>p.name)),[It]),un=m.useMemo(()=>It.filter(p=>p.name==="getState"?!0:p.name==="setState"?!U||b:hi.has(p.name)),[It,hi,U,b]),dn=m.useMemo(()=>{const p=new Map,T=new Map(Bn.map(E=>[E.name,E]));return p.set("getState",Be),(!U||b)&&p.set("setState",$e),ne.forEach(E=>{if(E===Be||E===$e)return;const S=E[kt];if(S){const R=T.get(S);if(R){p.set(R.name,E);return}}const D=It.find(R=>R.name===E.name);D&&p.set(D.name,E)}),p},[ne,It,Be,$e,U,b]),ze=m.useMemo(()=>{const p=new Set;p.add("getState"),p.add("setState");const T=new Map(It.map(E=>[E.name,E]));return d.forEach(E=>{const S=E[kt];if(S&&T.has(S))p.add(S);else{const D=It.find(R=>R.name===E.name);D&&p.add(D.name)}}),p},[d,It]),fi=["Thinking...","Pondering...","Contemplating...","Considering...","Analyzing...","Processing...","Reasoning...","Mulling it over...","Computing...","Cooking up a response...","Brewing ideas...","Connecting the dots...","Piecing it together...","Spinning up thoughts...","Loading brain cells...","Sharpening pencils...","Herding ideas...","Warming up neurons...","Stirring the think-pot...","Plotting a plan...","Wiggling the logic wires...","Rolling ideas around...","Charging the brainstorm...","Booting the brain...","Dusting off the cortex...","Running mental diagnostics...","Fetching cleverness...","Whisking up notions...","Tuning the idea radio...","Juggling possibilities...","Breathing in inspiration...","Squeezing the thought sponge...","Tickling the gray matter...","Bubbling up insights...","Spicing the soup of thought...","Lacing up hypotheses...","Winding the idea clock...","Casting the net for clues...","Polishing the crystal ball...","Mapping the maze...","Crunching the brain-biscuits...","Cueing the eureka moment...","Summoning the muse...","Knocking on insight’s door...","Combing the noodle...","Sailing the think-ship...","Scooping brain gelato...","Testing wild hunches...","Tick-tocking the neurons...","Planting idea seeds...","Shaking the thought snow globe...","Unlocking the mental toolbox...","Nudging the puzzle pieces...","Lighting the idea bulb...","Preheating the oven of insight...","Mixing the mental trail mix...","Spooling up reasoning reels...","Skimming the mind-palace index...","Surfing the thought waves...","Kicking the tires on ideas...","Rattling the idea can...","Waving the logic wand..."];m.useEffect(()=>{if(typeof window<"u"){const p=localStorage.getItem("arcten-sidebar-expanded");p&&Vt(JSON.parse(p));const T=localStorage.getItem("arcten-sidebar-width");T&&he(parseInt(T));const E=localStorage.getItem("arcten-sidebar-height");E&&Jt(parseInt(E));const S=localStorage.getItem("arcten-sidebar-detached");S&&fe(JSON.parse(S));const D=localStorage.getItem("arcten-sidebar-position");if(D){const J=JSON.parse(D),F=50,Z=Math.max(F-r,Math.min(J.x,window.innerWidth-F)),K=Math.max(0,Math.min(J.y,window.innerHeight-F));me({x:Z,y:K})}const R=localStorage.getItem("arcten-sidebar-minimized");R&&Zt(JSON.parse(R)),ge(!0)}},[]);const $t=m.useMemo(()=>A,[A?.id]);m.useEffect(()=>((async()=>{try{const T=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:$t})});if(!T.ok)throw new Error("Failed to fetch token");const E=await T.json();M(E.clientToken),j.current=E.clientToken,q(E.expiresAt),V(null)}catch(T){V(T instanceof Error?T.message:"Failed to fetch token")}})(),()=>{nt.current&&clearTimeout(nt.current)}),[x,$t]),m.useEffect(()=>{if(!$)return;nt.current&&clearTimeout(nt.current);const p=Math.floor(Date.now()/1e3),T=$-p,S=Math.max(0,T-5);return nt.current=setTimeout(async()=>{try{const D=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:$t})});if(!D.ok)throw new Error("Failed to refresh token");const R=await D.json();M(R.clientToken),j.current=R.clientToken,q(R.expiresAt),V(null)}catch(D){console.error("Token refresh failed:",D),V(D instanceof Error?D.message:"Failed to refresh token")}},S*1e3),()=>{nt.current&&clearTimeout(nt.current)}},[$,x,$t]),m.useEffect(()=>{(async()=>{if(ne.length!==0)try{const T=ne.map(S=>({name:S.name,code:S.toString()})),E=await fetch(`${v}/tools/describe`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tools:T})});if(E.ok){const S=await E.json();_(S.tools)}}catch(T){console.error("Failed to fetch tool descriptions:",T)}})()},[ne]),m.useEffect(()=>{Promise.resolve().then(()=>Gh).then(p=>{Ln(()=>p.Response)})},[]),m.useEffect(()=>{const p=()=>{N(window.location.pathname)};p(),window.addEventListener("popstate",p);const T=setInterval(p,500);return()=>{window.removeEventListener("popstate",p),clearInterval(T)}},[]);const $n=m.useCallback(async()=>{if(!(!$t?.id||!k)){cn(!0);try{const T=await(await fetch(`${v}/conversations`,{headers:{Authorization:`Bearer ${k}`}})).json();ee(T.conversations||[])}catch(p){console.error("Failed to fetch conversations:",p)}finally{cn(!1)}}},[$t?.id,k,v]);m.useEffect(()=>{$t?.id&&k&&$n()},[$t?.id,k,$n]);function ja(p){const T=Math.floor((Date.now()-p)/1e3);return T<60?"now":T<3600?`${Math.floor(T/60)}m`:T<86400?`${Math.floor(T/3600)}h`:`${Math.floor(T/86400)}d`}function Ma(){const p=crypto.randomUUID();Fe(p),fn([]),ln([]),an(!1);const T=U?y||{}:{};rt.current=T,U||Tt(T),w&&w(T),ut.current=!1}async function Ea(p){if(k)try{await fetch(`${v}/conversations/${p}`,{method:"DELETE",headers:{Authorization:`Bearer ${k}`}}),ee(Rt.filter(T=>T._id!==p)),p===Mt&&Ma()}catch(T){console.error("Failed to delete conversation:",T)}}async function ka(p){Fe(p.chatId),an(!1),cn(!0);try{const T=await fetch(`${v}/conversations/${p.chatId}/messages`,{headers:{Authorization:`Bearer ${j.current}`}});if(!T.ok)throw new Error(`Failed to fetch messages: ${T.statusText}`);const S=(await T.json()).messages||[];fn(S),ln(S)}catch(T){console.error("Failed to load conversation messages:",T);const E=p.messages||[];fn(E),ln(E)}finally{cn(!1)}}const Da=async(p,T={})=>{const E=T.headers?new Headers(T.headers):new Headers;return E.delete("user-agent"),E.delete("User-Agent"),fetch(p,{...T,headers:E})},{messages:zt,sendMessage:Va,status:Et,error:mi,stop:hn,addToolResult:se,setMessages:fn}=Lr.useChat({id:Mt||void 0,transport:new An.DefaultChatTransport({api:`${v}/chat`,fetch:Da,headers:()=>{const p={};return j.current&&(p.Authorization=`Bearer ${j.current}`),p},body:()=>({tools:un.map(T=>({name:T.name,description:T.description,inputSchema:T.jsonSchema})),systemPrompt:g,currentRoute:P,state:rt.current})}),sendAutomaticallyWhen:An.lastAssistantMessageIsCompleteWithToolCalls});m.useEffect(()=>{const p=zt[zt.length-1];if(!p||p.role!=="assistant")return;const T=p.parts?.filter(E=>E.type?.startsWith("tool-")&&E.state==="input-available"&&typeof E.toolCallId=="string"&&E.input!==void 0)||[];for(const E of T){const S=E,D=S.type?.replace("tool-","")||"",R=S.toolCallId;if(ze.has(D)){if(Oe.has(R))continue;C(F=>F.has(R)?F:new Set(F).add(R)),(async()=>{try{const F=dn.get(D);if(!F){console.warn(`[ArctenAgent] Tool ${D} not found in toolsMap. Available tools:`,Array.from(dn.keys())),se({toolCallId:R,tool:D,output:`Error: Tool ${D} not found`}),C(ot=>{const Ut=new Set(ot);return Ut.delete(R),Ut});return}const Z=ss(S.input),K=un.find(ot=>ot.name===D);let ht;if(K&&K.jsonSchema?.properties){const Ut=Object.keys(K.jsonSchema.properties).map(za=>Z[za]);console.log(`[ArctenAgent] Executing safe tool ${D} with args:`,Ut),ht=await F(...Ut)}else if(D==="getState")ht=F();else if(D==="setState"){const ot=Z.updates||Z;ht=await F(ot)}else ht=await F(...Object.values(Z));console.log(`[ArctenAgent] Tool ${D} completed, result:`,ht),se({toolCallId:R,tool:D,output:ht}),C(ot=>{const Ut=new Set(ot);return Ut.delete(R),Ut})}catch(F){console.error(`[ArctenAgent] Error executing safe tool ${D}:`,F),se({toolCallId:R,tool:D,output:`Error: ${F instanceof Error?F.message:String(F)}`}),C(Z=>{const K=new Set(Z);return K.delete(R),K})}})()}}},[zt,ze,dn,un,se]),m.useEffect(()=>{if(!Mt||!j.current)return;(async()=>{B(!0),lt(null);try{const E=`${v.replace("/chat","").replace(/\/$/,"")}/convex/api/query`,S=await fetch(E,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${j.current}`},body:JSON.stringify({path:"conversations:getStateByChatId",args:{chatId:Mt},format:"json"})});if(!S.ok){if(S.status===404||S.status>=500){console.warn(`[ArctenAgent] Convex API endpoint not available (${S.status}), using empty state`);const K=U?y||{}:{};rt.current=K,U||Tt(K),w&&w(K),ut.current=!0,B(!1);return}const Z=await S.text().catch(()=>"Unknown error");throw new Error(`Failed to fetch conversation state: ${S.status} ${Z}`)}const R=(await S.json())?.value||{},J=!ut.current;let F;J?(F={...U?y||{}:{},...R},ut.current=!0):F=R,rt.current=F,U||Tt(F),w&&w(F)}catch(T){T instanceof TypeError&&T.message.includes("fetch")?console.warn("[ArctenAgent] Network error fetching state (likely Convex endpoint not available), using fallback state:",T):console.error("[ArctenAgent] Failed to fetch state:",T);const S=T instanceof Error?T:new Error(String(T));if(lt(S),!ut.current){const D=U?y||{}:{};rt.current=D,U||Tt(D),w&&w(D),ut.current=!0}}finally{B(!1)}})()},[Mt,v,U,y,w]),m.useEffect(()=>{dt&&ye.current&&ye.current.focus()},[dt,zt]);function Na(){Vt(!0),localStorage.setItem("arcten-sidebar-expanded","true")}function Ra(){Vt(!1),localStorage.setItem("arcten-sidebar-expanded","false")}m.useEffect(()=>{},[dt]),m.useEffect(()=>{te.current&&te.current.scrollIntoView({behavior:"smooth"})},[zt]),m.useEffect(()=>{function p(T){T.key==="Escape"&&(Et==="streaming"||Et==="submitted")&&(T.preventDefault(),hn())}return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[Et,hn]);function Ia(){const p=crypto.randomUUID();Fe(p),fn([]),ln([]),an(!1)}function pi(p){if(p.preventDefault(),!xe.trim())return;(Et==="streaming"||Et==="submitted")&&hn();const T=fi[Math.floor(Math.random()*fi.length)]||"Thinking...";Fn(T),Va({text:xe}),Ie("")}function La(p){const T=p.target.value;Ie(T)}m.useEffect(()=>{if(!jt)return;function p(E){if(W){const S=E.clientX-gt.x,D=E.clientY-gt.y;S>=a&&S<=c&&he(S),D>=400&&D<=1e3&&Jt(D)}else{const S=window.innerWidth-E.clientX;S>=a&&S<=c&&he(S)}}function T(){Nt(!1),localStorage.setItem("arcten-sidebar-width",yt.toString()),localStorage.setItem("arcten-sidebar-height",Yt.toString())}return window.addEventListener("mousemove",p),window.addEventListener("mouseup",T),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",T)}},[jt,yt,Yt,W,gt,a,c]);function Oa(p){p.preventDefault(),Nt(!0)}function Fa(){fe(!0),Zt(!1),localStorage.setItem("arcten-sidebar-detached","true"),localStorage.setItem("arcten-sidebar-minimized","false")}function Ba(){fe(!1),Zt(!1),localStorage.setItem("arcten-sidebar-detached","false"),localStorage.setItem("arcten-sidebar-minimized","false")}function gi(){Zt(!pt),localStorage.setItem("arcten-sidebar-minimized",JSON.stringify(!pt))}function $a(p){W&&(Re(!0),pe({x:p.clientX-gt.x,y:p.clientY-gt.y}))}return m.useEffect(()=>{if(!W)return;function p(){me(T=>{const S=window.innerWidth-50,D=window.innerHeight-50,R=50-yt,J=0,F=Math.max(R,Math.min(T.x,S)),Z=Math.max(J,Math.min(T.y,D));if(F!==T.x||Z!==T.y){const K={x:F,y:Z};return localStorage.setItem("arcten-sidebar-position",JSON.stringify(K)),K}return T})}return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[W,yt]),m.useEffect(()=>{if(!St)return;function p(E){const S=E.clientX-Qt.x,D=E.clientY-Qt.y,R=50,J=window.innerWidth-R,F=window.innerHeight-R,Z=R-yt,K=0,ht=Math.max(Z,Math.min(S,J)),ot=Math.max(K,Math.min(D,F));me({x:ht,y:ot})}function T(){Re(!1),localStorage.setItem("arcten-sidebar-position",JSON.stringify(gt))}return window.addEventListener("mousemove",p),window.addEventListener("mouseup",T),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",T)}},[St,Qt,gt,yt]),In?L?h.jsx("div",{className:"fixed right-0 top-0 h-screen w-96 flex items-center justify-center p-4 bg-stone-50 dark:bg-stone-900 border-l border-border",children:h.jsxs("div",{className:"p-4 bg-destructive/10 text-destructive text-sm rounded-lg",children:["Authentication error: ",L]})}):k?h.jsx(au,{features:Oh,children:h.jsx(xn,{id:"arcten-sidebar","data-theme":t,"data-layout":e,"data-model":n,initial:W?{opacity:0,scale:.95,filter:"blur(4px)"}:!1,animate:W?{opacity:1,scale:1,filter:"blur(0px)"}:{},transition:{duration:.2,ease:"easeOut"},className:`
|
|
20
|
+
${W?"fixed z-50 shadow-xl rounded-xl":"h-screen flex-shrink-0 relative rounded-l-2xl"}
|
|
21
|
+
${dt?"bg-stone-50 dark:bg-stone-900":"bg-stone-100 dark:bg-stone-800 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors duration-200"}
|
|
22
|
+
${W?"border border-border":"border-l border-border"}
|
|
23
|
+
${dt?"":"w-[30px]"}
|
|
24
|
+
`,style:dt?W?{width:`${yt}px`,height:pt?"auto":`${Yt}px`,left:`${gt.x}px`,top:`${gt.y}px`}:{width:`${yt}px`}:void 0,onClick:dt?void 0:Na,children:dt?h.jsxs(h.Fragment,{children:[!W&&h.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-blue-500/40 hover:w-1 transition-all group",onMouseDown:Oa,children:h.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-3 -translate-x-1"})}),W&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"absolute bottom-0 right-0 w-4 h-4 cursor-nwse-resize",onMouseDown:p=>{p.preventDefault(),Nt(!0)}}),h.jsx("div",{className:"absolute bottom-0 left-4 right-4 h-3 cursor-move hover:bg-blue-500/20 group",onMouseDown:p=>{p.preventDefault(),p.stopPropagation(),Re(!0),pe({x:p.clientX-gt.x,y:p.clientY-gt.y})},children:h.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1 rounded-full bg-stone-400/30 group-hover:bg-blue-500/40 transition-colors"})}),h.jsx("div",{className:"absolute top-0 right-0 bottom-0 w-1 cursor-ew-resize hover:bg-blue-500/40",onMouseDown:p=>{p.preventDefault(),Nt(!0)}})]}),h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsxs("div",{className:`flex items-center justify-between p-3 border-b border-border ${W?"cursor-move":""}`,onMouseDown:W?$a:void 0,children:[h.jsx("h2",{className:`text-base font-semibold ${W&&pt?"cursor-pointer":""}`,onClick:W&&pt?p=>{p.stopPropagation(),gi()}:void 0,children:i}),h.jsxs("div",{className:"flex items-center gap-1",onClick:p=>p.stopPropagation(),children:[h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx("button",{type:"button",className:et(re({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:Ia,"aria-label":"New chat",children:h.jsx(tt.Plus,{className:"h-4 w-4"})})}),h.jsx(Kt,{children:"Start a new conversation"})]}),h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx("button",{type:"button",className:et(re({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:W?Ba:Fa,"aria-label":W?"Dock sidebar":"Float sidebar",children:W?h.jsx(tt.Dock,{className:"h-4 w-4"}):h.jsx(tt.PictureInPicture2,{className:"h-4 w-4"})})}),h.jsx(Kt,{children:W?"Dock to sidebar":"Undock to floating window"})]}),h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx("button",{type:"button",className:et(re({variant:"ghost",size:"icon"}),"h-8 w-8"),onClick:W?gi:Ra,"aria-label":W?pt?"Maximize":"Minimize":"Close sidebar",children:W?pt?h.jsx(tt.Maximize2,{className:"h-4 w-4"}):h.jsx(tt.Minimize2,{className:"h-4 w-4"}):h.jsx(tt.X,{className:"h-4 w-4"})})}),h.jsx(Kt,{children:W?pt?"Maximize window":"Minimize to header":"Close the chat"})]})]})]}),!pt&&h.jsxs(h.Fragment,{children:[A&&Rt.length>0&&h.jsxs("div",{className:`border-b border-border ${ve?"flex flex-col flex-1":""}`,children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-1",children:[h.jsx("h3",{className:"text-xs font-semibold text-muted-foreground",children:"Recent chats"}),h.jsx(Cn,{variant:"ghost",className:"h-auto px-2 py-1 text-xs text-muted-foreground hover:text-foreground",onClick:()=>{ve||$n(),an(!ve)},children:ve?"Show less":"View all"})]}),h.jsx("div",{className:`px-2 pb-2 space-y-0.5 ${ve?"flex-1 overflow-y-auto":""}`,children:Rt.slice(0,ve?void 0:3).map(p=>h.jsxs("div",{className:"group relative",children:[h.jsxs("button",{type:"button",className:et(re({variant:"ghost"}),"w-full justify-between h-auto py-1 px-3 font-normal"),onClick:()=>ka(p),children:[h.jsx("span",{className:"text-xs truncate",children:p.title}),h.jsx("div",{className:"ml-2 flex items-center",children:h.jsx("span",{className:"text-xs text-muted-foreground group-hover:hidden",children:ja(p.updatedAt)})})]}),h.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hidden group-hover:flex items-center justify-center text-muted-foreground hover:text-foreground rounded-md hover:bg-accent transition-colors",onClick:T=>{T.stopPropagation(),Ea(p._id)},"aria-label":"Delete conversation",children:h.jsx(tt.X,{className:"h-3 w-3"})})]},p._id))})]}),h.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden relative",children:[h.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 scroll-smooth",children:zt.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o&&h.jsx("div",{className:"mb-6",children:o}),h.jsx("h3",{className:"text-lg font-semibold text-center mb-2",children:"How can I help you?"}),O.length>0&&h.jsx("div",{className:"mt-4 px-4 max-w-md mx-auto",children:h.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[(z?O:O.slice(0,10)).map(p=>h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx(zn,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>{Ie(p.sampleUsage),ye.current?.focus()},children:p.friendlyName})}),h.jsx(Kt,{children:h.jsxs("div",{className:"max-w-xs",children:[h.jsx("p",{className:"font-medium",children:p.description}),h.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[h.jsx("span",{className:"font-medium",children:"Example:"}),' "',p.sampleUsage,'"']}),p.paramCount>0&&h.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[h.jsx("span",{className:"font-medium",children:"Parameters:"})," ",p.params.join(", ")]})]})})]},p.name)),O.length>10&&!z&&h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsxs(zn,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>st(!0),children:["+",O.length-10," more"]})}),h.jsx(Kt,{children:h.jsxs("div",{className:"max-w-xs",children:[h.jsx("p",{className:"font-medium mb-2",children:"Additional tools:"}),h.jsx("div",{className:"space-y-1 max-h-64 overflow-y-auto pr-2",children:O.slice(10).map(p=>h.jsxs("div",{children:[h.jsxs("span",{className:"font-medium text-xs",children:[p.friendlyName,":"]}),h.jsx("span",{className:"text-xs text-muted-foreground ml-1",children:p.description})]},p.name))}),h.jsx("p",{className:"text-xs text-muted-foreground mt-2 italic",children:"Click to show all tools"})]})})]}),z&&O.length>10&&h.jsx(zn,{variant:"secondary",className:"cursor-pointer text-xs px-2 py-1 hover:bg-stone-200 dark:hover:bg-stone-700 transition-colors",onClick:()=>st(!1),children:"Show less"})]})})]}):h.jsxs(h.Fragment,{children:[zt.map(p=>{const E=p.parts.filter(S=>S.type==="text").map(S=>S.text).join("");return h.jsx("div",{className:`${p.role==="user"?"flex justify-end":"w-full"}`,children:h.jsx("div",{className:`${p.role==="user"?"max-w-[85%] text-right":"w-full"}`,children:p.role==="user"?h.jsx(Fh,{initial:{opacity:0,filter:"blur(4px)"},animate:{opacity:1,filter:"blur(0px)"},transition:{duration:.3,ease:"easeOut"},className:"text-sm whitespace-pre-wrap inline-block bg-stone-100 dark:bg-stone-800 px-3 py-2 rounded-xl",children:E}):h.jsx("div",{className:"space-y-2",children:p.parts.map((S,D)=>{if(S.type?.startsWith("tool-")){const R=S.type?.replace("tool-","")||"",J=un.find(K=>K.name===R),F=S.state==="input-available",Z=S.state==="output-available";if(F&&ze.has(R),F){if(ze.has(R))return null;const K=ss(S.input);return h.jsx(xn,{initial:{opacity:0,y:10,filter:"blur(4px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.3,ease:"easeOut"},children:h.jsx(zh,{toolName:R,description:J?.description||"",args:K,onApprove:async()=>{if(Oe.has(S.toolCallId))return;C(ot=>new Set(ot).add(S.toolCallId));const ht=dn.get(R);if(ht)try{const ot=await ht(...Object.values(K));se({toolCallId:S.toolCallId,tool:R,output:ot})}catch(ot){se({toolCallId:S.toolCallId,tool:R,output:`Error: ${ot}`})}},onDeny:async()=>{Oe.has(S.toolCallId)||(C(ht=>new Set(ht).add(S.toolCallId)),se({toolCallId:S.toolCallId,tool:R,output:"User denied tool execution"}))}})},`${S.toolCallId}-${D}`)}else if(Z){const K=S.output==="User denied tool execution",ht=ss(S.input);return h.jsx(Uh,{toolName:R,args:ht,isDenied:K,isSafe:ze.has(R)},`${S.toolCallId}-${D}`)}return null}if(S.type==="text"&&S.text&&Le){const{processedText:R,citations:J,citationMap:F,referencesText:Z}=sf(S.text);return h.jsx(ef,{text:R,citations:J,citationMap:F,referencesText:Z,ResponseComponent:Le,className:"text-sm prose prose-sm dark:prose-invert max-w-none"},`${p.id}-${D}`)}return S.type==="reasoning"&&S.text?h.jsxs(Aa,{className:"w-full",isStreaming:Et==="streaming"&&D===p.parts.length-1&&p.id===zt.at(-1)?.id,children:[h.jsx(Ca,{}),h.jsx(Pa,{children:S.text})]},`${p.id}-${D}`):null})})})},p.id)}),h.jsx("div",{ref:te})]})}),mi&&h.jsxs("div",{className:"px-4 py-2 bg-destructive/10 text-destructive text-xs",children:["Error: ",mi.message]}),h.jsxs("div",{className:"p-4 border-t border-border relative overflow-visible",children:[h.jsx(ou,{mode:"wait",children:(Et==="streaming"||Et==="submitted")&&h.jsxs(xn,{initial:{opacity:0,filter:"blur(4px)",y:5},animate:{opacity:1,filter:"blur(0px)",y:0},exit:{opacity:0,filter:"blur(4px)",y:5},transition:{duration:.2,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 -top-6 flex items-center gap-1.5 bg-stone-100 dark:bg-stone-800 px-3 py-1.5 rounded-full shadow-lg border border-border z-50",children:[h.jsx(xn,{className:"w-2 h-2 bg-stone-400 dark:bg-stone-600",animate:{rotate:[0,0,90,90],borderRadius:["50%","30%","30%","50%"],scale:[.75,1,1,.75]},transition:{duration:2,repeat:1/0,ease:"easeInOut",times:[0,.4,.6,1]}}),h.jsx("p",{className:"text-xs text-muted-foreground",children:On})]})}),h.jsxs("form",{onSubmit:pi,className:"relative",children:[h.jsx(Br,{ref:ye,value:xe,onChange:La,placeholder:"Ask anything..",className:"w-full pr-12 resize-none border border-border rounded-xl px-4 py-3",minHeight:24,maxHeight:200,onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),pi(p))}}),Et==="streaming"||Et==="submitted"?h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx("button",{type:"button",className:et(re({variant:"ghost",size:"icon"}),"absolute top-1/2 -translate-y-1/2 right-2 h-8 w-8"),onClick:hn,children:h.jsx(tt.Square,{className:"h-4 w-4"})})}),h.jsxs(Kt,{children:[h.jsx(vi,{children:"Escape"})," to stop"]})]}):h.jsxs(_t,{children:[h.jsx(Wt,{asChild:!0,children:h.jsx("button",{type:"submit",className:et(re({variant:"ghost",size:"icon"}),"absolute top-1/2 -translate-y-1/2 right-2 h-8 w-8"),disabled:!xe.trim(),children:h.jsx(tt.ArrowRight,{className:"h-4 w-4"})})}),h.jsxs(Kt,{children:[h.jsx(vi,{children:"Enter"})," to send"]})]})]})]})]}),h.jsxs("a",{href:"https://arcten.com",target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-center gap-1.5 py-3 text-xs text-muted-foreground/40 hover:text-muted-foreground/60 transition-all",children:[h.jsx("span",{className:"whitespace-nowrap",children:"Powered by"}),h.jsx("div",{className:"w-4 h-2 bg-current rounded-t-full flex-shrink-0"}),h.jsx("span",{className:"whitespace-nowrap",children:"Arcten"})]})]})]})]}):h.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-full cursor-pointer",children:[h.jsx(tt.BotMessageSquare,{className:"h-5 w-5 text-stone-600 dark:text-stone-400"}),h.jsx("span",{className:"text-xs font-medium text-stone-600 dark:text-stone-400 [writing-mode:vertical-lr]",children:"AI agent"})]})})}):h.jsx("div",{className:"fixed right-0 top-0 h-screen w-96 flex items-center justify-center p-4 bg-stone-50 dark:bg-stone-900 border-l border-border",children:h.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"Loading..."})}):null}function qe(t){if(typeof t=="string")try{const e=JSON.parse(t);return qe(e)}catch{return t}if(Array.isArray(t))return t.map(qe);if(t&&typeof t=="object"){const e={};for(const[n,s]of Object.entries(t))e[n]=qe(s);return e}return t}function of(t){if(typeof t=="string"){try{const e=JSON.parse(t);if(e&&typeof e=="object"&&!Array.isArray(e))return qe(e)}catch{}return{}}return t&&typeof t=="object"&&!Array.isArray(t)?qe(t):{}}function af({apiBaseUrl:t="https://api.arcten.com",tokenEndpoint:e="/api/arcten/token",clientToken:n,skipTokenFetch:s=!1,user:i,tools:o=[],safeTools:r=[],toolMetadata:a,systemPrompt:c="",initialMessages:u=[],conversationId:l,initialState:d={},onToolCall:f,onFinish:g,ragFilters:x}={}){const[v,A]=m.useState(n||null),y=m.useRef(n||null),[w,b]=m.useState(null),[k,M]=m.useState(null),j=m.useRef(null),[L,V]=m.useState([]),[$,q]=m.useState(l||(typeof window<"u"?crypto.randomUUID():null)),[nt,U]=m.useState(!1),[de,Tt]=m.useState(new Set),[rt,Bt]=m.useState(d),B=m.useRef(d),[ct,lt]=m.useState(!1),[ut,dt]=m.useState(null),Vt=m.useRef(!1),yt=m.useCallback(async(C,P=3)=>{if(!$||!y.current)return;const N=async()=>{const _=`${t.replace("/chat","").replace(/\/$/,"")}/convex/api/mutation`,z=await fetch(_,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y.current}`},body:JSON.stringify({path:"conversations:mergeStateByChatId",args:{chatId:$,updates:C},format:"json"})});if(!z.ok){if(z.status===404){console.warn("[useAgent] Convex API endpoint not available (404), state changes will not be persisted");return}const st=await z.text().catch(()=>"Unknown error");throw new Error(`Failed to sync conversation state: ${z.status} ${st}`)}};for(let O=0;O<P;O++)try{await N(),dt(null);return}catch(_){if(O===P-1){const st=_ instanceof Error?_:new Error(String(_));throw dt(st),console.error("Failed to sync state to Convex after retries:",_),st}await new Promise(st=>setTimeout(st,Math.pow(2,O)*100))}},[$,t,y]),he=m.useMemo(()=>function(){return B.current},[]),Yt=m.useMemo(()=>async function(P){const N={...B.current,...P};B.current=N,Bt(N);try{await yt(P)}catch(O){throw O}},[yt]),Jt=m.useMemo(()=>[...o,...r,he,Yt],[o,r,he,Yt]),jt=m.useMemo(()=>Ta(Jt,a),[Jt,a]),Nt=m.useMemo(()=>{const C=new Map,P=new Map(jt.map(N=>[N.name,N]));return Jt.forEach(N=>{const O=N[kt];if(O){const z=P.get(O);if(z){C.set(z.name,N);return}}const _=jt.find(z=>z.name===N.name);_&&C.set(_.name,N)}),C},[Jt,jt]),W=m.useMemo(()=>new Set(jt.map(C=>C.name)),[jt]),fe=m.useMemo(()=>{const C=[{name:"getState",description:"Get the current agent state. Returns IDs, workflow state, checklists, and other persistent data.",jsonSchema:{type:"object",properties:{},required:[]}},{name:"setState",description:"Update the agent state. Store IDs, workflow state, checklists, context, and other data that must persist across conversations. Merges with existing state.",jsonSchema:{type:"object",properties:{updates:{type:"object",description:"Partial state updates to merge with existing state"}},required:["updates"]}}];return[...jt,...C]},[jt]),pt=m.useMemo(()=>fe.filter(C=>C.name==="getState"||C.name==="setState"?!0:W.has(C.name)),[fe,W]),Zt=m.useMemo(()=>{const C=new Set;return C.add("getState"),C.add("setState"),r.forEach(P=>{for(const[N,O]of Nt.entries())if(O===P){C.add(N);break}}),C},[r,Nt]);m.useEffect(()=>s||n?void 0:((async()=>{try{const P=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:i})});if(!P.ok)throw new Error("Failed to fetch token");const N=await P.json();A(N.clientToken),y.current=N.clientToken,M(N.expiresAt),b(null)}catch(P){console.error("[useAgent] Token fetch failed:",P),b(P instanceof Error?P.message:"Failed to fetch token")}})(),()=>{j.current&&clearTimeout(j.current)}),[e,JSON.stringify(i),s,n]),m.useEffect(()=>{if(!k||s||n)return;j.current&&clearTimeout(j.current);const C=Math.floor(Date.now()/1e3),P=k-C,O=Math.max(0,P-5);return j.current=setTimeout(async()=>{try{const _=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:i})});if(!_.ok)throw new Error("Failed to refresh token");const z=await _.json();A(z.clientToken),y.current=z.clientToken,M(z.expiresAt),b(null)}catch(_){console.error("[useAgent] Token refresh failed:",_),b(_ instanceof Error?_.message:"Failed to refresh token")}},O*1e3),()=>{j.current&&clearTimeout(j.current)}},[k,e,JSON.stringify(i),s,n]);const gt=async(C,P={})=>{const N=P.headers?new Headers(P.headers):new Headers;N.delete("user-agent"),N.delete("User-Agent"),console.log("[useAgent] Making request to:",C),console.log("[useAgent] Method:",P.method||"GET"),console.log("[useAgent] Has Authorization header:",N.has("Authorization")),console.log("[useAgent] Client token available:",!!y.current);try{const O=await fetch(C,{...P,headers:N});if(!O.ok){console.error("[useAgent] Request failed:",O.status,O.statusText);const _=await O.text().catch(()=>"Unable to read error response");console.error("[useAgent] Error response:",_)}return O}catch(O){throw console.error("[useAgent] Fetch error:",O),O}},me=`${t}/chat`;console.log("[useAgent] Chat API URL:",me);const{messages:St,sendMessage:Re,status:Qt,error:pe,stop:In,addToolResult:ge,setMessages:te}=Lr.useChat({id:$||void 0,messages:u,transport:new An.DefaultChatTransport({api:me,fetch:gt,headers:()=>{const C={};return y.current?(C.Authorization=`Bearer ${y.current}`,console.log("[useAgent] Adding Authorization header with token")):console.warn("[useAgent] No client token available - request may fail"),C},body:()=>{const C=pt.map(N=>({name:N.name,description:N.description,inputSchema:N.jsonSchema})),P=C.filter(N=>N.name==="getState"||N.name==="setState").map(N=>N.name);return P.length>0&&console.log("[useAgent] State tools included in tools list sent to AI SDK:",P),{tools:C,systemPrompt:c,state:B.current,...x&&{ragFilters:x}}}}),sendAutomaticallyWhen:An.lastAssistantMessageIsCompleteWithToolCalls});m.useEffect(()=>{St.forEach(C=>{C.role==="assistant"&&C.parts.forEach(P=>{if(!P.type?.startsWith("tool-")||P.state!=="input-available")return;const N=P.type.replace("tool-",""),O=P.toolCallId;if(de.has(O))return;Tt(z=>new Set(z).add(O));const _=of(P.input);if(Zt.has(N)){const z=Nt.get(N);z?(async()=>{try{const st=pt.find(ee=>ee.name===N);let Rt;if(st&&st.jsonSchema?.properties){const Mt=Object.keys(st.jsonSchema.properties).map(Fe=>_[Fe]);Rt=await z(...Mt)}else if(N==="getState")Rt=z();else if(N==="setState"){const ee=_.updates||_;Rt=await z(ee)}else Rt=await z(...Object.values(_));ge({toolCallId:O,tool:N,output:Rt})}catch(st){console.error(`[useAgent] Error executing tool ${N}:`,st),ge({toolCallId:O,tool:N,output:`Error: ${st}`})}})():console.warn(`[useAgent] Tool ${N} not found in toolsMap`)}else f&&f({toolCall:{toolCallId:O,toolName:N,args:_}})})})},[St,Zt,Nt,f,ge,de,Yt,pt]),m.useEffect(()=>{if(Qt==="ready"&&St.length>0&&g){const C=St[St.length-1];C&&C.role==="assistant"&&g({message:C,messages:St,isAbort:!1,isDisconnect:!1,isError:!!pe})}},[Qt,St,pe,g]);async function ye(){if(!(!i?.id||!v)){U(!0);try{const P=await(await fetch(`${t}/conversations`,{headers:{Authorization:`Bearer ${v}`}})).json();V(P.conversations||[])}catch(C){console.error("Failed to fetch conversations:",C)}finally{U(!1)}}}m.useEffect(()=>{i?.id&&v&&ye()},[JSON.stringify(i),v,t]),m.useEffect(()=>{if(!$||!y.current)return;(async()=>{lt(!0),dt(null);try{const P=await fetch(`${t.replace("/chat","")}/convex/api/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y.current}`},body:JSON.stringify({path:"conversations:getStateByChatId",args:{chatId:$},format:"json"})});if(!P.ok){const st=await P.text().catch(()=>"Unknown error");throw new Error(`Failed to fetch conversation state: ${P.status} ${st}`)}const O=(await P.json())?.value||{},_=!Vt.current;let z;_?(z={...d,...O},Vt.current=!0):z=O,B.current=z,Bt(z)}catch(P){console.error("Failed to fetch state:",P);const N=P instanceof Error?P:new Error(String(P));dt(N),Vt.current||(B.current=d,Bt(d),Vt.current=!0)}finally{lt(!1)}})()},[$,t]);async function xe(C){q(C),U(!0);try{const P=await fetch(`${t}/conversations/${C}/messages`,{headers:{Authorization:`Bearer ${y.current}`}});if(!P.ok)throw new Error(`Failed to fetch messages: ${P.statusText}`);const O=(await P.json()).messages||[];te(O)}catch(P){console.error("Failed to load conversation messages:",P)}finally{U(!1)}}async function Ie(C){if(v)try{await fetch(`${t}/conversations/${C}`,{method:"DELETE",headers:{Authorization:`Bearer ${v}`}}),V(L.filter(P=>P._id!==C)),C===$&&Le()}catch(P){console.error("Failed to delete conversation:",P)}}function Le(){const C=crypto.randomUUID();q(C),te([]),Tt(new Set),B.current=d,Bt(d),Vt.current=!1}function Ln(C){ge(C)}async function On(C){const P={...B.current,...C};B.current=P,Bt(P);try{await yt(C)}catch(N){throw N}}async function Fn(){if(!i?.id||!y.current)throw new Error("User authentication required to share state");const C=`shared_${crypto.randomUUID()}`;try{return await fetch(`${t.replace("/chat","")}/convex/api/mutation`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y.current}`},body:JSON.stringify({path:"sharedStates:create",args:{stateId:C,state:B.current,projectId:"default",createdBy:i.id},format:"json"})}),C}catch(P){throw console.error("Failed to share state:",P),P}}async function Oe(C){if(!y.current)throw new Error("Authentication required to import state");try{const P=await fetch(`${t.replace("/chat","")}/convex/api/query`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y.current}`},body:JSON.stringify({path:"sharedStates:getByStateId",args:{stateId:C},format:"json"})});if(!P.ok)throw new Error("Failed to fetch shared state");const O=(await P.json())?.value||{};B.current=O,Bt(O)}catch(P){throw console.error("Failed to import state:",P),P}}return{id:$,messages:St,status:Qt,error:pe,sendMessage:Re,stop:In,addToolOutput:Ln,setMessages:te,conversations:L,loadConversation:xe,deleteConversation:Ie,startNewConversation:Le,isLoadingConversations:nt,clientToken:v,tokenError:w,state:rt,setState:On,shareState:Fn,importState:Oe,isStateLoading:ct,stateError:ut}}exports.verifyToken=tc.verifyToken;exports.ARCTEN_ORIGINAL_NAME=kt;exports.ArctenAgent=rf;exports.preserveToolName=Bh;exports.useAgent=af;
|