@vizzly-testing/cli 0.20.1-beta.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +16 -18
  2. package/dist/cli.js +177 -2
  3. package/dist/client/index.js +144 -77
  4. package/dist/commands/doctor.js +118 -33
  5. package/dist/commands/finalize.js +8 -3
  6. package/dist/commands/init.js +13 -18
  7. package/dist/commands/login.js +42 -49
  8. package/dist/commands/logout.js +13 -5
  9. package/dist/commands/project.js +95 -67
  10. package/dist/commands/run.js +32 -6
  11. package/dist/commands/status.js +81 -50
  12. package/dist/commands/tdd-daemon.js +61 -32
  13. package/dist/commands/tdd.js +14 -26
  14. package/dist/commands/upload.js +18 -9
  15. package/dist/commands/whoami.js +40 -38
  16. package/dist/reporter/reporter-bundle.css +1 -1
  17. package/dist/reporter/reporter-bundle.iife.js +204 -22
  18. package/dist/server/handlers/tdd-handler.js +113 -7
  19. package/dist/server/http-server.js +9 -3
  20. package/dist/server/routers/baseline.js +58 -0
  21. package/dist/server/routers/dashboard.js +10 -6
  22. package/dist/server/routers/screenshot.js +32 -0
  23. package/dist/server-manager/core.js +5 -2
  24. package/dist/server-manager/operations.js +2 -1
  25. package/dist/services/config-service.js +306 -0
  26. package/dist/tdd/tdd-service.js +190 -126
  27. package/dist/types/client.d.ts +25 -2
  28. package/dist/utils/colors.js +187 -39
  29. package/dist/utils/config-loader.js +3 -6
  30. package/dist/utils/context.js +228 -0
  31. package/dist/utils/output.js +449 -14
  32. package/docs/api-reference.md +173 -8
  33. package/docs/tui-elements.md +560 -0
  34. package/package.json +13 -7
  35. package/dist/report-generator/core.js +0 -315
  36. package/dist/report-generator/index.js +0 -8
  37. package/dist/report-generator/operations.js +0 -196
  38. package/dist/services/static-report-generator.js +0 -65
@@ -1,34 +1,216 @@
1
- (function(){"use strict";function Z0(n,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const h in o)if(h!=="default"&&!(h in n)){const v=Object.getOwnPropertyDescriptor(o,h);v&&Object.defineProperty(n,h,v.get?v:{enumerable:!0,get:()=>o[h]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Dc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qs={exports:{}},ln={};var _c;function X0(){if(_c)return ln;_c=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,h,v){var g=null;if(v!==void 0&&(g=""+v),h.key!==void 0&&(g=""+h.key),"key"in h){v={};for(var y in h)y!=="key"&&(v[y]=h[y])}else v=h;return h=v.ref,{$$typeof:n,type:o,key:g,ref:h!==void 0?h:null,props:v}}return ln.Fragment=u,ln.jsx=c,ln.jsxs=c,ln}var Uc;function K0(){return Uc||(Uc=1,Qs.exports=X0()),Qs.exports}var r=K0(),hl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},J0={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},$0=class{#e=J0;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},qa=new $0;function F0(n){setTimeout(n,0)}var Qa=typeof window>"u"||"Deno"in globalThis;function lt(){}function W0(n,u){return typeof n=="function"?n(u):n}function ks(n){return typeof n=="number"&&n>=0&&n!==1/0}function Lc(n,u){return Math.max(n+(u||0)-Date.now(),0)}function oa(n,u){return typeof n=="function"?n(u):n}function Et(n,u){return typeof n=="function"?n(u):n}function Bc(n,u){const{type:c="all",exact:o,fetchStatus:h,predicate:v,queryKey:g,stale:y}=n;if(g){if(o){if(u.queryHash!==Ys(g,u.options))return!1}else if(!nn(u.queryKey,g))return!1}if(c!=="all"){const b=u.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||h&&h!==u.state.fetchStatus||v&&!v(u))}function Hc(n,u){const{exact:c,status:o,predicate:h,mutationKey:v}=n;if(v){if(!u.options.mutationKey)return!1;if(c){if(ka(u.options.mutationKey)!==ka(v))return!1}else if(!nn(u.options.mutationKey,v))return!1}return!(o&&u.state.status!==o||h&&!h(u))}function Ys(n,u){return(u?.queryKeyHashFn||ka)(n)}function ka(n){return JSON.stringify(n,(u,c)=>Gs(c)?Object.keys(c).sort().reduce((o,h)=>(o[h]=c[h],o),{}):c)}function nn(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>nn(n[c],u[c])):!1}var I0=Object.prototype.hasOwnProperty;function qc(n,u){if(n===u)return n;const c=Qc(n)&&Qc(u);if(!c&&!(Gs(n)&&Gs(u)))return u;const h=(c?n:Object.keys(n)).length,v=c?u:Object.keys(u),g=v.length,y=c?new Array(g):{};let b=0;for(let p=0;p<g;p++){const N=c?p:v[p],z=n[N],L=u[N];if(z===L){y[N]=z,(c?p<h:I0.call(n,N))&&b++;continue}if(z===null||L===null||typeof z!="object"||typeof L!="object"){y[N]=L;continue}const V=qc(z,L);y[N]=V,V===z&&b++}return h===g&&b===h?n:y}function ui(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const c in n)if(n[c]!==u[c])return!1;return!0}function Qc(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Gs(n){if(!kc(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!kc(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function kc(n){return Object.prototype.toString.call(n)==="[object Object]"}function P0(n){return new Promise(u=>{qa.setTimeout(u,n)})}function Vs(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?qc(n,u):u}function em(n,u,c=0){const o=[...n,u];return c&&o.length>c?o.slice(1):o}function tm(n,u,c=0){const o=[u,...n];return c&&o.length>c?o.slice(0,-1):o}var Zs=Symbol();function Yc(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Zs?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Gc(n,u){return typeof n=="function"?n(...u):!!n}var am=class extends hl{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!Qa&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Xs=new am;function Ks(){let n,u;const c=new Promise((h,v)=>{n=h,u=v});c.status="pending",c.catch(()=>{});function o(h){Object.assign(c,h),delete c.resolve,delete c.reject}return c.resolve=h=>{o({status:"fulfilled",value:h}),n(h)},c.reject=h=>{o({status:"rejected",reason:h}),u(h)},c}var lm=F0;function nm(){let n=[],u=0,c=y=>{y()},o=y=>{y()},h=lm;const v=y=>{u?n.push(y):h(()=>{c(y)})},g=()=>{const y=n;n=[],y.length&&h(()=>{o(()=>{y.forEach(b=>{c(b)})})})};return{batch:y=>{let b;u++;try{b=y()}finally{u--,u||g()}return b},batchCalls:y=>(...b)=>{v(()=>{y(...b)})},schedule:v,setNotifyFunction:y=>{c=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{h=y}}}var Ye=nm(),im=class extends hl{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!Qa&&window.addEventListener){const u=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},ri=new im;function sm(n){return Math.min(1e3*2**n,3e4)}function Vc(n){return(n??"online")==="online"?ri.isOnline():!0}var Js=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Zc(n){let u=!1,c=0,o;const h=Ks(),v=()=>h.status!=="pending",g=M=>{if(!v()){const q=new Js(M);L(q),n.onCancel?.(q)}},y=()=>{u=!0},b=()=>{u=!1},p=()=>Xs.isFocused()&&(n.networkMode==="always"||ri.isOnline())&&n.canRun(),N=()=>Vc(n.networkMode)&&n.canRun(),z=M=>{v()||(o?.(),h.resolve(M))},L=M=>{v()||(o?.(),h.reject(M))},V=()=>new Promise(M=>{o=q=>{(v()||p())&&M(q)},n.onPause?.()}).then(()=>{o=void 0,v()||n.onContinue?.()}),B=()=>{if(v())return;let M;const q=c===0?n.initialPromise:void 0;try{M=q??n.fn()}catch(H){M=Promise.reject(H)}Promise.resolve(M).then(z).catch(H=>{if(v())return;const $=n.retry??(Qa?0:3),k=n.retryDelay??sm,ne=typeof k=="function"?k(c,H):k,xe=$===!0||typeof $=="number"&&c<$||typeof $=="function"&&$(c,H);if(u||!xe){L(H);return}c++,n.onFail?.(c,H),P0(ne).then(()=>p()?void 0:V()).then(()=>{u?L(H):B()})})};return{promise:h,status:()=>h.status,cancel:g,continue:()=>(o?.(),h),cancelRetry:y,continueRetry:b,canStart:N,start:()=>(N()?B():V().then(B),h)}}var Xc=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ks(this.gcTime)&&(this.#e=qa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Qa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(qa.clearTimeout(this.#e),this.#e=void 0)}},um=class extends Xc{#e;#t;#a;#n;#l;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=$c(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=$c(this.options);u.data!==void 0&&(this.setState(Jc(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,u){const c=Vs(this.state.data,n,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),c}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#l?.promise;return this.#l?.cancel(n),u?u.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Et(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>oa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Lc(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const c=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,c.signal)})},h=()=>{const y=Yc(this.options,u),p=(()=>{const N={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(N),N})();return this.#u=!1,this.options.persister?this.options.persister(y,p,this):y(p)},g=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:h};return o(y),y})();this.options.behavior?.onFetch(g,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==g.fetchOptions?.meta)&&this.#i({type:"fetch",meta:g.fetchOptions?.meta}),this.#l=Zc({initialPromise:u?.initialPromise,fn:g.fetchFn,onCancel:y=>{y instanceof Js&&y.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(y,b)=>{this.#i({type:"failed",failureCount:y,error:b})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0});try{const y=await this.#l.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Js){if(y.silent)return this.#l.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(n){const u=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Kc(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...Jc(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const h=n.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=u(this.state),Ye.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Kc(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vc(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Jc(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $c(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var rm=class extends hl{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Ks(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#s;#u;#i;#g;#d;#h;#c;#o;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Fc(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $s(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $s(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Et(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),u._defaulted&&!ui(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&Wc(this.#t,c,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||oa(this.options.staleTime,this.#t)!==oa(u.staleTime,this.#t))&&this.#v();const h=this.#y();o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||h!==this.#r)&&this.#p(h)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(u,n);return om(this,c)&&(this.#n=c,this.#s=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,u){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,u);return c.fetch().then(()=>this.createResult(c,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#S();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(lt)),u}#v(){this.#x();const n=oa(this.options.staleTime,this.#t);if(Qa||this.#n.isStale||!ks(n))return;const c=Lc(this.#n.dataUpdatedAt,n)+1;this.#c=qa.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#p(n){this.#j(),this.#r=n,!(Qa||Et(this.options.enabled,this.#t)===!1||!ks(this.#r)||this.#r===0)&&(this.#o=qa.setInterval(()=>{(this.options.refetchIntervalInBackground||Xs.isFocused())&&this.#f()},this.#r))}#b(){this.#v(),this.#p(this.#y())}#x(){this.#c&&(qa.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(qa.clearInterval(this.#o),this.#o=void 0)}createResult(n,u){const c=this.#t,o=this.options,h=this.#n,v=this.#l,g=this.#s,b=n!==c?n.state:this.#a,{state:p}=n;let N={...p},z=!1,L;if(u._optimisticResults){const ee=this.hasListeners(),ve=!ee&&Fc(n,u),Me=ee&&Wc(n,c,u,o);(ve||Me)&&(N={...N,...Kc(p.data,n.options)}),u._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:V,errorUpdatedAt:B,status:M}=N;L=N.data;let q=!1;if(u.placeholderData!==void 0&&L===void 0&&M==="pending"){let ee;h?.isPlaceholderData&&u.placeholderData===g?.placeholderData?(ee=h.data,q=!0):ee=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ee!==void 0&&(M="success",L=Vs(h?.data,ee,u),z=!0)}if(u.select&&L!==void 0&&!q)if(h&&L===v?.data&&u.select===this.#g)L=this.#d;else try{this.#g=u.select,L=u.select(L),L=Vs(h?.data,L,u),this.#d=L,this.#i=null}catch(ee){this.#i=ee}this.#i&&(V=this.#i,L=this.#d,B=Date.now(),M="error");const H=N.fetchStatus==="fetching",$=M==="pending",k=M==="error",ne=$&&H,xe=L!==void 0,K={status:M,fetchStatus:N.fetchStatus,isPending:$,isSuccess:M==="success",isError:k,isInitialLoading:ne,isLoading:ne,data:L,dataUpdatedAt:N.dataUpdatedAt,error:V,errorUpdatedAt:B,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>b.dataUpdateCount||N.errorUpdateCount>b.errorUpdateCount,isFetching:H,isRefetching:H&&!$,isLoadingError:k&&!xe,isPaused:N.fetchStatus==="paused",isPlaceholderData:z,isRefetchError:k&&xe,isStale:Fs(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Et(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=de=>{K.status==="error"?de.reject(K.error):K.data!==void 0&&de.resolve(K.data)},ve=()=>{const de=this.#u=K.promise=Ks();ee(de)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===c.queryHash&&ee(Me);break;case"fulfilled":(K.status==="error"||K.data!==Me.value)&&ve();break;case"rejected":(K.status!=="error"||K.error!==Me.reason)&&ve();break}}return K}updateResult(){const n=this.#n,u=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#s=this.options,this.#l.data!==void 0&&(this.#h=this.#t),ui(u,n))return;this.#n=u;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!this.#m.size)return!0;const v=new Set(h??this.#m);return this.options.throwOnError&&v.add("error"),Object.keys(this.#n).some(g=>{const y=g;return this.#n[y]!==n[y]&&v.has(y)})};this.#w({listeners:c()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ye.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cm(n,u){return Et(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function Fc(n,u){return cm(n,u)||n.state.data!==void 0&&$s(n,u,u.refetchOnMount)}function $s(n,u,c){if(Et(u.enabled,n)!==!1&&oa(u.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&Fs(n,u)}return!1}function Wc(n,u,c,o){return(n!==u||Et(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&Fs(n,c)}function Fs(n,u){return Et(u.enabled,n)!==!1&&n.isStaleByTime(oa(u.staleTime,n))}function om(n,u){return!ui(n.getCurrentResult(),u)}function Ic(n){return{onFetch:(u,c)=>{const o=u.options,h=u.fetchOptions?.meta?.fetchMore?.direction,v=u.state.data?.pages||[],g=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},b=0;const p=async()=>{let N=!1;const z=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(u.signal.aborted?N=!0:u.signal.addEventListener("abort",()=>{N=!0}),u.signal)})},L=Yc(u.options,u.fetchOptions),V=async(B,M,q)=>{if(N)return Promise.reject();if(M==null&&B.pages.length)return Promise.resolve(B);const $=(()=>{const fe={client:u.client,queryKey:u.queryKey,pageParam:M,direction:q?"backward":"forward",meta:u.options.meta};return z(fe),fe})(),k=await L($),{maxPages:ne}=u.options,xe=q?tm:em;return{pages:xe(B.pages,k,ne),pageParams:xe(B.pageParams,M,ne)}};if(h&&v.length){const B=h==="backward",M=B?fm:Pc,q={pages:v,pageParams:g},H=M(o,q);y=await V(q,H,B)}else{const B=n??v.length;do{const M=b===0?g[0]??o.initialPageParam:Pc(o,y);if(b>0&&M==null)break;y=await V(y,M),b++}while(b<B)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(p,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c):u.fetchFn=p}}}function Pc(n,{pages:u,pageParams:c}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,c[o],c):void 0}function fm(n,{pages:u,pageParams:c}){return u.length>0?n.getPreviousPageParam?.(u[0],u,c[0],c):void 0}var dm=class extends Xc{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||eo(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Zc({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(v,g)=>{this.#l({type:"failed",failureCount:v,error:g})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",h=!this.#n.canStart();try{if(o)u();else{this.#l({type:"pending",variables:n,isPaused:h}),await this.#a.config.onMutate?.(n,this,c);const g=await this.options.onMutate?.(n,c);g!==this.state.context&&this.#l({type:"pending",context:g,variables:n,isPaused:h})}const v=await this.#n.start();return await this.#a.config.onSuccess?.(v,n,this.state.context,this,c),await this.options.onSuccess?.(v,n,this.state.context,c),await this.#a.config.onSettled?.(v,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(v,null,n,this.state.context,c),this.#l({type:"success",data:v}),v}catch(v){try{throw await this.#a.config.onError?.(v,n,this.state.context,this,c),await this.options.onError?.(v,n,this.state.context,c),await this.#a.config.onSettled?.(void 0,v,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,v,n,this.state.context,c),v}finally{this.#l({type:"error",error:v})}}finally{this.#a.runNext(this)}}#l(n){const u=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Ye.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function eo(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hm=class extends hl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,u,c){const o=new dm({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(u),state:c});return this.add(o),o}add(n){this.#e.add(n);const u=ci(n);if(typeof u=="string"){const c=this.#t.get(u);c?c.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=ci(n);if(typeof u=="string"){const c=this.#t.get(u);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=ci(n);if(typeof u=="string"){const o=this.#t.get(u)?.find(h=>h.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=ci(n);return typeof u=="string"?this.#t.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ye.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Hc(u,c))}findAll(n={}){return this.getAll().filter(u=>Hc(n,u))}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ye.batch(()=>Promise.all(n.map(u=>u.continue().catch(lt))))}};function ci(n){return n.options.scope?.id}var mm=class extends hl{#e;#t=void 0;#a;#n;constructor(n,u){super(),this.#e=n,this.setOptions(u),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const u=this.options;this.options=this.#e.defaultMutationOptions(n),ui(this.options,u)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),u?.mutationKey&&this.options.mutationKey&&ka(u.mutationKey)!==ka(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#s()}mutate(n,u){return this.#n=u,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??eo();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Ye.batch(()=>{if(this.#n&&this.hasListeners()){const u=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,u,c,o),this.#n.onSettled?.(n.data,null,u,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,u,c,o),this.#n.onSettled?.(void 0,n.error,u,c,o))}this.listeners.forEach(u=>{u(this.#t)})})}},gm=class extends hl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,c){const o=u.queryKey,h=u.queryHash??Ys(o,u);let v=this.get(h);return v||(v=new um({client:n,queryKey:o,queryHash:h,options:n.defaultQueryOptions(u),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(v)),v}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ye.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Bc(u,c))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(c=>Bc(n,c)):u}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},vm=class{#e;#t;#a;#n;#l;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new gm,this.#t=n.mutationCache||new hm,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Xs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ri.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=this.#e.build(this,u),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(oa(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:c})=>{const o=c.data;return[u,o]})}setQueryData(n,u,c){const o=this.defaultQueryOptions({queryKey:n}),v=this.#e.get(o.queryHash)?.state.data,g=W0(u,v);if(g!==void 0)return this.#e.build(this,o).setData(g,{...c,manual:!0})}setQueriesData(n,u,c){return Ye.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,c)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Ye.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=this.#e;return Ye.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},o=Ye.batch(()=>this.#e.findAll(n).map(h=>h.cancel(c)));return Promise.all(o).then(lt).catch(lt)}invalidateQueries(n,u={}){return Ye.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},o=Ye.batch(()=>this.#e.findAll(n).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let v=h.fetch(void 0,c);return c.throwOnError||(v=v.catch(lt)),h.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(o).then(lt)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=this.#e.build(this,u);return c.isStaleByTime(oa(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(lt).catch(lt)}fetchInfiniteQuery(n){return n.behavior=Ic(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(lt).catch(lt)}ensureInfiniteQueryData(n){return n.behavior=Ic(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ri.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,u){this.#n.set(ka(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#n.values()],c={};return u.forEach(o=>{nn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,u){this.#l.set(ka(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#l.values()],c={};return u.forEach(o=>{nn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Ys(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Zs&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ws={exports:{}},P={};var to;function ym(){if(to)return P;to=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.iterator;function V(S){return S===null||typeof S!="object"?null:(S=L&&S[L]||S["@@iterator"],typeof S=="function"?S:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function H(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||B}H.prototype.isReactComponent={},H.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,U,"setState")},H.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=H.prototype;function k(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||B}var ne=k.prototype=new $;ne.constructor=k,M(ne,H.prototype),ne.isPureReactComponent=!0;var xe=Array.isArray;function fe(){}var K={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ve(S,U,Y){var Z=Y.ref;return{$$typeof:n,type:S,key:U,ref:Z!==void 0?Z:null,props:Y}}function Me(S,U){return ve(S.type,U,S.props)}function de(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function J(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return U[Y]})}var he=/\/+/g;function Ge(S,U){return typeof S=="object"&&S!==null&&S.key!=null?J(""+S.key):U.toString(36)}function Ke(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(fe,fe):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,Y,Z,te){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(ie){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case N:return be=S._init,T(be(S._payload),U,Y,Z,te)}}if(be)return te=te(S),be=Z===""?"."+Ge(S,0):Z,xe(te)?(Y="",be!=null&&(Y=be.replace(he,"$&/")+"/"),T(te,U,Y,"",function(mn){return mn})):te!=null&&(de(te)&&(te=Me(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(he,"$&/")+"/")+be)),U.push(te)),1;be=0;var it=Z===""?".":Z+":";if(xe(S))for(var Ue=0;Ue<S.length;Ue++)Z=S[Ue],ie=it+Ge(Z,Ue),be+=T(Z,U,Y,ie,te);else if(Ue=V(S),typeof Ue=="function")for(S=Ue.call(S),Ue=0;!(Z=S.next()).done;)Z=Z.value,ie=it+Ge(Z,Ue++),be+=T(Z,U,Y,ie,te);else if(ie==="object"){if(typeof S.then=="function")return T(Ke(S),U,Y,Z,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(S,U,Y){if(S==null)return S;var Z=[],te=0;return T(S,Z,"","",function(ie){return U.call(Y,ie,te++)}),Z}function W(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var pe=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ce={map:Q,forEach:function(S,U,Y){Q(S,function(){U.apply(this,arguments)},Y)},count:function(S){var U=0;return Q(S,function(){U++}),U},toArray:function(S){return Q(S,function(U){return U})||[]},only:function(S){if(!de(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return P.Activity=z,P.Children=Ce,P.Component=H,P.Fragment=c,P.Profiler=h,P.PureComponent=k,P.StrictMode=o,P.Suspense=b,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,P.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},P.cache=function(S){return function(){return S.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(S,U,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=M({},S.props),te=S.key;if(U!=null)for(ie in U.key!==void 0&&(te=""+U.key),U)!ee.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(Z[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)Z.children=Y;else if(1<ie){for(var be=Array(ie),it=0;it<ie;it++)be[it]=arguments[it+2];Z.children=be}return ve(S.type,te,Z)},P.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:v,_context:S},S},P.createElement=function(S,U,Y){var Z,te={},ie=null;if(U!=null)for(Z in U.key!==void 0&&(ie=""+U.key),U)ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=U[Z]);var be=arguments.length-2;if(be===1)te.children=Y;else if(1<be){for(var it=Array(be),Ue=0;Ue<be;Ue++)it[Ue]=arguments[Ue+2];te.children=it}if(S&&S.defaultProps)for(Z in be=S.defaultProps,be)te[Z]===void 0&&(te[Z]=be[Z]);return ve(S,ie,te)},P.createRef=function(){return{current:null}},P.forwardRef=function(S){return{$$typeof:y,render:S}},P.isValidElement=de,P.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:W}},P.memo=function(S,U){return{$$typeof:p,type:S,compare:U===void 0?null:U}},P.startTransition=function(S){var U=K.T,Y={};K.T=Y;try{var Z=S(),te=K.S;te!==null&&te(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(fe,pe)}catch(ie){pe(ie)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),K.T=U}},P.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},P.use=function(S){return K.H.use(S)},P.useActionState=function(S,U,Y){return K.H.useActionState(S,U,Y)},P.useCallback=function(S,U){return K.H.useCallback(S,U)},P.useContext=function(S){return K.H.useContext(S)},P.useDebugValue=function(){},P.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},P.useEffect=function(S,U){return K.H.useEffect(S,U)},P.useEffectEvent=function(S){return K.H.useEffectEvent(S)},P.useId=function(){return K.H.useId()},P.useImperativeHandle=function(S,U,Y){return K.H.useImperativeHandle(S,U,Y)},P.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},P.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},P.useMemo=function(S,U){return K.H.useMemo(S,U)},P.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},P.useReducer=function(S,U,Y){return K.H.useReducer(S,U,Y)},P.useRef=function(S){return K.H.useRef(S)},P.useState=function(S){return K.H.useState(S)},P.useSyncExternalStore=function(S,U,Y){return K.H.useSyncExternalStore(S,U,Y)},P.useTransition=function(){return K.H.useTransition()},P.version="19.2.1",P}var ao;function oi(){return ao||(ao=1,Ws.exports=ym()),Ws.exports}var m=oi();const pm=Z0({__proto__:null,default:Dc(m)},[m]);var lo=m.createContext(void 0),Lt=n=>{const u=m.useContext(lo);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},bm=({client:n,children:u})=>(m.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(lo.Provider,{value:n,children:u})),no=m.createContext(!1),xm=()=>m.useContext(no);no.Provider;function jm(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Sm=m.createContext(jm()),wm=()=>m.useContext(Sm),Nm=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},Em=n=>{m.useEffect(()=>{n.clearReset()},[n])},Cm=({result:n,errorResetBoundary:u,throwOnError:c,query:o,suspense:h})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(h&&n.data===void 0||Gc(c,[n.error,o])),Am=n=>{if(n.suspense){const c=h=>h==="static"?h:Math.max(h??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...h)=>c(o(...h)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},zm=(n,u)=>n.isLoading&&n.isFetching&&!u,Om=(n,u)=>n?.suspense&&u.isPending,io=(n,u,c)=>u.fetchOptimistic(n).catch(()=>{c.clearReset()});function Tm(n,u,c){const o=xm(),h=wm(),v=Lt(),g=v.defaultQueryOptions(n);v.getDefaultOptions().queries?._experimental_beforeQuery?.(g),g._optimisticResults=o?"isRestoring":"optimistic",Am(g),Nm(g,h),Em(h);const y=!v.getQueryCache().get(g.queryHash),[b]=m.useState(()=>new u(v,g)),p=b.getOptimisticResult(g),N=!o&&n.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(z=>{const L=N?b.subscribe(Ye.batchCalls(z)):lt;return b.updateResult(),L},[b,N]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),m.useEffect(()=>{b.setOptions(g)},[g,b]),Om(g,p))throw io(g,b,h);if(Cm({result:p,errorResetBoundary:h,throwOnError:g.throwOnError,query:v.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw p.error;return v.getDefaultOptions().queries?._experimental_afterQuery?.(g,p),g.experimental_prefetchInRender&&!Qa&&zm(p,o)&&(y?io(g,b,h):v.getQueryCache().get(g.queryHash)?.promise)?.catch(lt).finally(()=>{b.updateResult()}),g.notifyOnChangeProps?p:b.trackResult(p)}function ml(n,u){return Tm(n,rm)}function Qt(n,u){const c=Lt(),[o]=m.useState(()=>new mm(c,n));m.useEffect(()=>{o.setOptions(n)},[o,n]);const h=m.useSyncExternalStore(m.useCallback(g=>o.subscribe(Ye.batchCalls(g)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),v=m.useCallback((g,y)=>{o.mutate(g,y).catch(lt)},[o]);if(h.error&&Gc(o.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:v,mutateAsync:h.mutate}}var Is={exports:{}},sn={},Ps={exports:{}},eu={};var so;function Mm(){return so||(so=1,function(n){function u(T,Q){var W=T.length;T.push(Q);e:for(;0<W;){var pe=W-1>>>1,Ce=T[pe];if(0<h(Ce,Q))T[pe]=Q,T[W]=Ce,W=pe;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var Q=T[0],W=T.pop();if(W!==Q){T[0]=W;e:for(var pe=0,Ce=T.length,S=Ce>>>1;pe<S;){var U=2*(pe+1)-1,Y=T[U],Z=U+1,te=T[Z];if(0>h(Y,W))Z<Ce&&0>h(te,Y)?(T[pe]=te,T[Z]=W,pe=Z):(T[pe]=Y,T[U]=W,pe=U);else if(Z<Ce&&0>h(te,W))T[pe]=te,T[Z]=W,pe=Z;else break e}}return Q}function h(T,Q){var W=T.sortIndex-Q.sortIndex;return W!==0?W:T.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;n.unstable_now=function(){return v.now()}}else{var g=Date,y=g.now();n.unstable_now=function(){return g.now()-y}}var b=[],p=[],N=1,z=null,L=3,V=!1,B=!1,M=!1,q=!1,H=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var Q=c(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=T)o(p),Q.sortIndex=Q.expirationTime,u(b,Q);else break;Q=c(p)}}function xe(T){if(M=!1,ne(T),!B)if(c(b)!==null)B=!0,fe||(fe=!0,J());else{var Q=c(p);Q!==null&&Ke(xe,Q.startTime-T)}}var fe=!1,K=-1,ee=5,ve=-1;function Me(){return q?!0:!(n.unstable_now()-ve<ee)}function de(){if(q=!1,fe){var T=n.unstable_now();ve=T;var Q=!0;try{e:{B=!1,M&&(M=!1,$(K),K=-1),V=!0;var W=L;try{t:{for(ne(T),z=c(b);z!==null&&!(z.expirationTime>T&&Me());){var pe=z.callback;if(typeof pe=="function"){z.callback=null,L=z.priorityLevel;var Ce=pe(z.expirationTime<=T);if(T=n.unstable_now(),typeof Ce=="function"){z.callback=Ce,ne(T),Q=!0;break t}z===c(b)&&o(b),ne(T)}else o(b);z=c(b)}if(z!==null)Q=!0;else{var S=c(p);S!==null&&Ke(xe,S.startTime-T),Q=!1}}break e}finally{z=null,L=W,V=!1}Q=void 0}}finally{Q?J():fe=!1}}}var J;if(typeof k=="function")J=function(){k(de)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Ge=he.port2;he.port1.onmessage=de,J=function(){Ge.postMessage(null)}}else J=function(){H(de,0)};function Ke(T,Q){K=H(function(){T(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return L},n.unstable_next=function(T){switch(L){case 1:case 2:case 3:var Q=3;break;default:Q=L}var W=L;L=Q;try{return T()}finally{L=W}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(T,Q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var W=L;L=T;try{return Q()}finally{L=W}},n.unstable_scheduleCallback=function(T,Q,W){var pe=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,T){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=W+Ce,T={id:N++,callback:Q,priorityLevel:T,startTime:W,expirationTime:Ce,sortIndex:-1},W>pe?(T.sortIndex=W,u(p,T),c(b)===null&&T===c(p)&&(M?($(K),K=-1):M=!0,Ke(xe,W-pe))):(T.sortIndex=Ce,u(b,T),B||V||(B=!0,fe||(fe=!0,J()))),T},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(T){var Q=L;return function(){var W=L;L=Q;try{return T.apply(this,arguments)}finally{L=W}}}}(eu)),eu}var uo;function Rm(){return uo||(uo=1,Ps.exports=Mm()),Ps.exports}var tu={exports:{}},tt={};var ro;function Dm(){if(ro)return tt;ro=1;var n=oi();function u(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(b,p,N){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:z==null?null:""+z,children:b,containerInfo:p,implementation:N}}var g=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(b,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return v(b,p,null,N)},tt.flushSync=function(b){var p=g.T,N=o.p;try{if(g.T=null,o.p=2,b)return b()}finally{g.T=p,o.p=N,o.d.f()}},tt.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(b,p))},tt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},tt.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var N=p.as,z=y(N,p.crossOrigin),L=typeof p.integrity=="string"?p.integrity:void 0,V=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:z,integrity:L,fetchPriority:V}):N==="script"&&o.d.X(b,{crossOrigin:z,integrity:L,fetchPriority:V,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=y(p.as,p.crossOrigin);o.d.M(b,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(b)},tt.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,z=y(N,p.crossOrigin);o.d.L(b,N,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(b,p){if(typeof b=="string")if(p){var N=y(p.as,p.crossOrigin);o.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(b)},tt.requestFormReset=function(b){o.d.r(b)},tt.unstable_batchedUpdates=function(b,p){return b(p)},tt.useFormState=function(b,p,N){return g.H.useFormState(b,p,N)},tt.useFormStatus=function(){return g.H.useHostTransitionStatus()},tt.version="19.2.1",tt}var co;function oo(){if(co)return tu.exports;co=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),tu.exports=Dm(),tu.exports}var fo;function _m(){if(fo)return sn;fo=1;var n=Rm(),u=oi(),c=oo();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(v(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return b(i),e;if(s===l)return b(i),t;s=s.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=s;else{for(var f=!1,d=i.child;d;){if(d===a){f=!0,a=i,l=s;break}if(d===l){f=!0,l=i,a=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===a){f=!0,a=s,l=i;break}if(d===l){f=!0,l=s,a=i;break}d=d.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,L=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case H:return"Profiler";case q:return"StrictMode";case xe:return"Suspense";case fe:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case k:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Ke=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pe=[],Ce=-1;function S(e){return{current:e}}function U(e){0>Ce||(e.current=pe[Ce],pe[Ce]=null,Ce--)}function Y(e,t){Ce++,pe[Ce]=e.current,e.current=t}var Z=S(null),te=S(null),ie=S(null),be=S(null);function it(e,t){switch(Y(ie,t),Y(te,e),Y(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?m0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=m0(t),e=g0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),Y(Z,e)}function Ue(){U(Z),U(te),U(ie)}function mn(e){e.memoizedState!==null&&Y(be,e);var t=Z.current,a=g0(t,e.type);t!==a&&(Y(te,e),Y(Z,a))}function Si(e){te.current===e&&(U(Z),U(te)),be.current===e&&(U(be),li._currentValue=W)}var gu,Go;function Ja(e){if(gu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||"",Go=-1<a.stack.indexOf(`
1
+ (function(){"use strict";function Dm(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function eo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ur={exports:{}},xn={};var to;function _m(){if(to)return xn;to=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var x in d)x!=="key"&&(m[x]=d[x])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return xn.Fragment=s,xn.jsx=c,xn.jsxs=c,xn}var ao;function Lm(){return ao||(ao=1,ur.exports=_m()),ur.exports}var r=Lm(),El=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Um={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},km=class{#e=Um;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},Ja=new km;function Bm(n){setTimeout(n,0)}var Fa=typeof window>"u"||"Deno"in globalThis;function ft(){}function Hm(n,s){return typeof n=="function"?n(s):n}function cr(n){return typeof n=="number"&&n>=0&&n!==1/0}function lo(n,s){return Math.max(n+(s||0)-Date.now(),0)}function ja(n,s){return typeof n=="function"?n(s):n}function Dt(n,s){return typeof n=="function"?n(s):n}function no(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:x}=n;if(v){if(o){if(s.queryHash!==or(v,s.options))return!1}else if(!bn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof x=="boolean"&&s.isStale()!==x||d&&d!==s.state.fetchStatus||m&&!m(s))}function so(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(Wa(s.options.mutationKey)!==Wa(m))return!1}else if(!bn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function or(n,s){return(s?.queryKeyHashFn||Wa)(n)}function Wa(n){return JSON.stringify(n,(s,c)=>fr(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function bn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>bn(n[c],s[c])):!1}var qm=Object.prototype.hasOwnProperty;function io(n,s){if(n===s)return n;const c=ro(n)&&ro(s);if(!c&&!(fr(n)&&fr(s)))return s;const d=(c?n:Object.keys(n)).length,m=c?s:Object.keys(s),v=m.length,x=c?new Array(v):{};let b=0;for(let g=0;g<v;g++){const y=c?g:m[g],N=n[y],C=s[y];if(N===C){x[y]=N,(c?g<d:qm.call(n,y))&&b++;continue}if(N===null||C===null||typeof N!="object"||typeof C!="object"){x[y]=C;continue}const B=io(N,C);x[y]=B,B===N&&b++}return d===v&&b===d?n:x}function Ss(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function ro(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function fr(n){if(!uo(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!uo(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function uo(n){return Object.prototype.toString.call(n)==="[object Object]"}function Qm(n){return new Promise(s=>{Ja.setTimeout(s,n)})}function dr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?io(n,s):s}function Vm(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Ym(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var hr=Symbol();function co(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===hr?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function oo(n,s){return typeof n=="function"?n(...s):!!n}var Gm=class extends El{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},mr=new Gm;function vr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var Zm=Bm;function Xm(){let n=[],s=0,c=x=>{x()},o=x=>{x()},d=Zm;const m=x=>{s?n.push(x):d(()=>{c(x)})},v=()=>{const x=n;n=[],x.length&&d(()=>{o(()=>{x.forEach(b=>{c(b)})})})};return{batch:x=>{let b;s++;try{b=x()}finally{s--,s||v()}return b},batchCalls:x=>(...b)=>{m(()=>{x(...b)})},schedule:m,setNotifyFunction:x=>{c=x},setBatchNotifyFunction:x=>{o=x},setScheduler:x=>{d=x}}}var Pe=Xm(),Km=class extends El{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Ns=new Km;function $m(n){return Math.min(1e3*2**n,3e4)}function fo(n){return(n??"online")==="online"?Ns.isOnline():!0}var pr=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function ho(n){let s=!1,c=0,o;const d=vr(),m=()=>d.status!=="pending",v=_=>{if(!m()){const Q=new pr(_);C(Q),n.onCancel?.(Q)}},x=()=>{s=!0},b=()=>{s=!1},g=()=>mr.isFocused()&&(n.networkMode==="always"||Ns.isOnline())&&n.canRun(),y=()=>fo(n.networkMode)&&n.canRun(),N=_=>{m()||(o?.(),d.resolve(_))},C=_=>{m()||(o?.(),d.reject(_))},B=()=>new Promise(_=>{o=Q=>{(m()||g())&&_(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),O=()=>{if(m())return;let _;const Q=c===0?n.initialPromise:void 0;try{_=Q??n.fn()}catch(H){_=Promise.reject(H)}Promise.resolve(_).then(N).catch(H=>{if(m())return;const F=n.retry??(Fa?0:3),X=n.retryDelay??$m,I=typeof X=="function"?X(c,H):X,ve=F===!0||typeof F=="number"&&c<F||typeof F=="function"&&F(c,H);if(s||!ve){C(H);return}c++,n.onFail?.(c,H),Qm(I).then(()=>g()?void 0:B()).then(()=>{s?C(H):O()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:x,continueRetry:b,canStart:y,start:()=>(y()?O():B().then(O),d)}}var mo=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cr(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Fa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ja.clearTimeout(this.#e),this.#e=void 0)}},Jm=class extends mo{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=go(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=go(this.options);s.data!==void 0&&(this.setState(po(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=dr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ja(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!lo(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const x=this.observers.find(b=>b.options.queryFn);x&&this.setOptions(x.options)}const c=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const x=co(this.options,s),g=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(x,g,this):x(g)},v=(()=>{const x={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(x),x})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=ho({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:x=>{x instanceof pr&&x.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(x,b)=>{this.#s({type:"failed",failureCount:x,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const x=await this.#l.start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),this.#a.config.onSuccess?.(x,this),this.#a.config.onSettled?.(x,this.state.error,this),x}catch(x){if(x instanceof pr){if(x.silent)return this.#l.promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw this.#s({type:"error",error:x}),this.#a.config.onError?.(x,this),this.#a.config.onSettled?.(this.state.data,x,this),x}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...vo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...po(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Pe.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function vo(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fo(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function po(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function go(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Fm=class extends El{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=vr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gr(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gr(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),s._defaulted&&!Ss(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&bo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||ja(this.options.staleTime,this.#t)!==ja(s.staleTime,this.#t))&&this.#p();const d=this.#g();o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||d!==this.#u)&&this.#x(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return Im(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#w();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ft)),s}#p(){this.#y();const n=ja(this.options.staleTime,this.#t);if(Fa||this.#n.isStale||!cr(n))return;const c=lo(this.#n.dataUpdatedAt,n)+1;this.#c=Ja.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(n){this.#j(),this.#u=n,!(Fa||Dt(this.options.enabled,this.#t)===!1||!cr(this.#u)||this.#u===0)&&(this.#o=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||mr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#x(this.#g())}#y(){this.#c&&(Ja.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Ja.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:g}=n;let y={...g},N=!1,C;if(s._optimisticResults){const ee=this.hasListeners(),ge=!ee&&xo(n,s),Te=ee&&bo(n,c,s,o);(ge||Te)&&(y={...y,...vo(g.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:B,errorUpdatedAt:O,status:_}=y;C=y.data;let Q=!1;if(s.placeholderData!==void 0&&C===void 0&&_==="pending"){let ee;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(ee=d.data,Q=!0):ee=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,ee!==void 0&&(_="success",C=dr(d?.data,ee,s),N=!0)}if(s.select&&C!==void 0&&!Q)if(d&&C===m?.data&&s.select===this.#v)C=this.#d;else try{this.#v=s.select,C=s.select(C),C=dr(d?.data,C,s),this.#d=C,this.#s=null}catch(ee){this.#s=ee}this.#s&&(B=this.#s,C=this.#d,O=Date.now(),_="error");const H=y.fetchStatus==="fetching",F=_==="pending",X=_==="error",I=F&&H,ve=C!==void 0,V={status:_,fetchStatus:y.fetchStatus,isPending:F,isSuccess:_==="success",isError:X,isInitialLoading:I,isLoading:I,data:C,dataUpdatedAt:y.dataUpdatedAt,error:B,errorUpdatedAt:O,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:H,isRefetching:H&&!F,isLoadingError:X&&!ve,isPaused:y.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:X&&ve,isStale:xr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:Dt(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=Ne=>{V.status==="error"?Ne.reject(V.error):V.data!==void 0&&Ne.resolve(V.data)},ge=()=>{const Ne=this.#r=V.promise=vr();ee(Ne)},Te=this.#r;switch(Te.status){case"pending":n.queryHash===c.queryHash&&ee(Te);break;case"fulfilled":(V.status==="error"||V.data!==Te.value)&&ge();break;case"rejected":(V.status!=="error"||V.error!==Te.reason)&&ge();break}}return V}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Ss(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const x=v;return this.#n[x]!==n[x]&&m.has(x)})};this.#S({listeners:c()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Pe.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Wm(n,s){return Dt(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function xo(n,s){return Wm(n,s)||n.state.data!==void 0&&gr(n,s,s.refetchOnMount)}function gr(n,s,c){if(Dt(s.enabled,n)!==!1&&ja(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&xr(n,s)}return!1}function bo(n,s,c,o){return(n!==s||Dt(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&xr(n,c)}function xr(n,s){return Dt(s.enabled,n)!==!1&&n.isStaleByTime(ja(s.staleTime,n))}function Im(n,s){return!Ss(n.getCurrentResult(),s)}function yo(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let x={pages:[],pageParams:[]},b=0;const g=async()=>{let y=!1;const N=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(s.signal.aborted?y=!0:s.signal.addEventListener("abort",()=>{y=!0}),s.signal)})},C=co(s.options,s.fetchOptions),B=async(O,_,Q)=>{if(y)return Promise.reject();if(_==null&&O.pages.length)return Promise.resolve(O);const F=(()=>{const de={client:s.client,queryKey:s.queryKey,pageParam:_,direction:Q?"backward":"forward",meta:s.options.meta};return N(de),de})(),X=await C(F),{maxPages:I}=s.options,ve=Q?Ym:Vm;return{pages:ve(O.pages,X,I),pageParams:ve(O.pageParams,_,I)}};if(d&&m.length){const O=d==="backward",_=O?Pm:jo,Q={pages:m,pageParams:v},H=_(o,Q);x=await B(Q,H,O)}else{const O=n??m.length;do{const _=b===0?v[0]??o.initialPageParam:jo(o,x);if(b>0&&_==null)break;x=await B(x,_),b++}while(b<O)}return x};s.options.persister?s.fetchFn=()=>s.options.persister?.(g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=g}}}function jo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function Pm(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var ev=class extends mo{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||wo(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=ho({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),await this.#a.config.onMutate?.(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{throw await this.#a.config.onError?.(m,n,this.state.context,this,c),await this.options.onError?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,m,n,this.state.context,c),m}finally{this.#l({type:"error",error:m})}}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Pe.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function wo(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tv=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new ev({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=Es(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=Es(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=Es(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pe.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>so(s,c))}findAll(n={}){return this.getAll().filter(s=>so(n,s))}notify(n){Pe.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Pe.batch(()=>Promise.all(n.map(s=>s.continue().catch(ft))))}};function Es(n){return n.options.scope?.id}var av=class extends El{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Ss(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Wa(s.mutationKey)!==Wa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??wo();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Pe.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,s,c,o),this.#n.onSettled?.(n.data,null,s,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,s,c,o),this.#n.onSettled?.(void 0,n.error,s,c,o))}this.listeners.forEach(s=>{s(this.#t)})})}},lv=class extends El{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??or(o,s);let m=this.get(d);return m||(m=new Jm({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Pe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>no(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>no(n,c)):s}notify(n){Pe.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Pe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Pe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},nv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new lv,this.#t=n.mutationCache||new tv,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=mr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ns.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ja(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=Hm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Pe.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Pe.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Pe.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Pe.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ft).catch(ft)}invalidateQueries(n,s={}){return Pe.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Pe.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ft)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(ja(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ft).catch(ft)}fetchInfiniteQuery(n){return n.behavior=yo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ft).catch(ft)}ensureInfiniteQueryData(n){return n.behavior=yo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ns.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(Wa(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{bn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(Wa(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{bn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=or(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===hr&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},br={exports:{}},ae={};var So;function sv(){if(So)return ae;So=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),C=Symbol.iterator;function B(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,Q={};function H(S,k,Y){this.props=S,this.context=k,this.refs=Q,this.updater=Y||O}H.prototype.isReactComponent={},H.prototype.setState=function(S,k){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,k,"setState")},H.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=H.prototype;function X(S,k,Y){this.props=S,this.context=k,this.refs=Q,this.updater=Y||O}var I=X.prototype=new F;I.constructor=X,_(I,H.prototype),I.isPureReactComponent=!0;var ve=Array.isArray;function de(){}var V={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ge(S,k,Y){var $=Y.ref;return{$$typeof:n,type:S,key:k,ref:$!==void 0?$:null,props:Y}}function Te(S,k){return ge(S.type,k,S.props)}function Ne(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function De(S){var k={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return k[Y]})}var pe=/\/+/g;function we(S,k){return typeof S=="object"&&S!==null&&S.key!=null?De(""+S.key):k.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(k){S.status==="pending"&&(S.status="fulfilled",S.value=k)},function(k){S.status==="pending"&&(S.status="rejected",S.reason=k)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,k,Y,$,te){var le=typeof S;(le==="undefined"||le==="boolean")&&(S=null);var ie=!1;if(S===null)ie=!0;else switch(le){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(S.$$typeof){case n:case s:ie=!0;break;case y:return ie=S._init,R(ie(S._payload),k,Y,$,te)}}if(ie)return te=te(S),ie=$===""?"."+we(S,0):$,ve(te)?(Y="",ie!=null&&(Y=ie.replace(pe,"$&/")+"/"),R(te,k,Y,"",function(G){return G})):te!=null&&(Ne(te)&&(te=Te(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(pe,"$&/")+"/")+ie)),k.push(te)),1;ie=0;var at=$===""?".":$+":";if(ve(S))for(var Se=0;Se<S.length;Se++)$=S[Se],le=at+we($,Se),ie+=R($,k,Y,le,te);else if(Se=B(S),typeof Se=="function")for(S=Se.call(S),Se=0;!($=S.next()).done;)$=$.value,le=at+we($,Se++),ie+=R($,k,Y,le,te);else if(le==="object"){if(typeof S.then=="function")return R(_e(S),k,Y,$,te);throw k=String(S),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ie}function q(S,k,Y){if(S==null)return S;var $=[],te=0;return R(S,$,"","",function(le){return k.call(Y,le,te++)}),$}function Z(S){if(S._status===-1){var k=S._result;k=k(),k.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=k)}if(S._status===1)return S._result.default;throw S._result}var re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},xe={map:q,forEach:function(S,k,Y){q(S,function(){k.apply(this,arguments)},Y)},count:function(S){var k=0;return q(S,function(){k++}),k},toArray:function(S){return q(S,function(k){return k})||[]},only:function(S){if(!Ne(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=N,ae.Children=xe,ae.Component=H,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=X,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return V.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,k,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=_({},S.props),te=S.key;if(k!=null)for(le in k.key!==void 0&&(te=""+k.key),k)!ee.call(k,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&k.ref===void 0||($[le]=k[le]);var le=arguments.length-2;if(le===1)$.children=Y;else if(1<le){for(var ie=Array(le),at=0;at<le;at++)ie[at]=arguments[at+2];$.children=ie}return ge(S.type,te,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,k,Y){var $,te={},le=null;if(k!=null)for($ in k.key!==void 0&&(le=""+k.key),k)ee.call(k,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(te[$]=k[$]);var ie=arguments.length-2;if(ie===1)te.children=Y;else if(1<ie){for(var at=Array(ie),Se=0;Se<ie;Se++)at[Se]=arguments[Se+2];te.children=at}if(S&&S.defaultProps)for($ in ie=S.defaultProps,ie)te[$]===void 0&&(te[$]=ie[$]);return ge(S,le,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:x,render:S}},ae.isValidElement=Ne,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:Z}},ae.memo=function(S,k){return{$$typeof:g,type:S,compare:k===void 0?null:k}},ae.startTransition=function(S){var k=V.T,Y={};V.T=Y;try{var $=S(),te=V.S;te!==null&&te(Y,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(de,re)}catch(le){re(le)}finally{k!==null&&Y.types!==null&&(k.types=Y.types),V.T=k}},ae.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ae.use=function(S){return V.H.use(S)},ae.useActionState=function(S,k,Y){return V.H.useActionState(S,k,Y)},ae.useCallback=function(S,k){return V.H.useCallback(S,k)},ae.useContext=function(S){return V.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,k){return V.H.useDeferredValue(S,k)},ae.useEffect=function(S,k){return V.H.useEffect(S,k)},ae.useEffectEvent=function(S){return V.H.useEffectEvent(S)},ae.useId=function(){return V.H.useId()},ae.useImperativeHandle=function(S,k,Y){return V.H.useImperativeHandle(S,k,Y)},ae.useInsertionEffect=function(S,k){return V.H.useInsertionEffect(S,k)},ae.useLayoutEffect=function(S,k){return V.H.useLayoutEffect(S,k)},ae.useMemo=function(S,k){return V.H.useMemo(S,k)},ae.useOptimistic=function(S,k){return V.H.useOptimistic(S,k)},ae.useReducer=function(S,k,Y){return V.H.useReducer(S,k,Y)},ae.useRef=function(S){return V.H.useRef(S)},ae.useState=function(S){return V.H.useState(S)},ae.useSyncExternalStore=function(S,k,Y){return V.H.useSyncExternalStore(S,k,Y)},ae.useTransition=function(){return V.H.useTransition()},ae.version="19.2.3",ae}var No;function Cs(){return No||(No=1,br.exports=sv()),br.exports}var h=Cs();const Ia=eo(h),iv=Dm({__proto__:null,default:Ia},[h]);var Eo=h.createContext(void 0),wt=n=>{const s=h.useContext(Eo);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},rv=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(Eo.Provider,{value:n,children:s})),Co=h.createContext(!1),uv=()=>h.useContext(Co);Co.Provider;function cv(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var ov=h.createContext(cv()),fv=()=>h.useContext(ov),dv=(n,s)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(s.isReset()||(n.retryOnMount=!1))},hv=n=>{h.useEffect(()=>{n.clearReset()},[n])},mv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||oo(c,[n.error,o])),vv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},pv=(n,s)=>n.isLoading&&n.isFetching&&!s,gv=(n,s)=>n?.suspense&&s.isPending,Ao=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function xv(n,s,c){const o=uv(),d=fv(),m=wt(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v),v._optimisticResults=o?"isRestoring":"optimistic",vv(v),dv(v,d),hv(d);const x=!m.getQueryCache().get(v.queryHash),[b]=h.useState(()=>new s(m,v)),g=b.getOptimisticResult(v),y=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(N=>{const C=y?b.subscribe(Pe.batchCalls(N)):ft;return b.updateResult(),C},[b,y]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),h.useEffect(()=>{b.setOptions(v)},[v,b]),gv(v,g))throw Ao(v,b,d);if(mv({result:g,errorResetBoundary:d,throwOnError:v.throwOnError,query:m.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw g.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,g),v.experimental_prefetchInRender&&!Fa&&pv(g,o)&&(x?Ao(v,b,d):m.getQueryCache().get(v.queryHash)?.promise)?.catch(ft).finally(()=>{b.updateResult()}),v.notifyOnChangeProps?g:b.trackResult(g)}function Cl(n,s){return xv(n,Fm)}function Gt(n,s){const c=wt(),[o]=h.useState(()=>new av(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Pe.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,x)=>{o.mutate(v,x).catch(ft)},[o]);if(d.error&&oo(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var yr={exports:{}},yn={},jr={exports:{}},wr={};var Mo;function bv(){return Mo||(Mo=1,(function(n){function s(R,q){var Z=R.length;R.push(q);e:for(;0<Z;){var re=Z-1>>>1,xe=R[re];if(0<d(xe,q))R[re]=q,R[Z]=xe,Z=re;else break e}}function c(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var q=R[0],Z=R.pop();if(Z!==q){R[0]=Z;e:for(var re=0,xe=R.length,S=xe>>>1;re<S;){var k=2*(re+1)-1,Y=R[k],$=k+1,te=R[$];if(0>d(Y,Z))$<xe&&0>d(te,Y)?(R[re]=te,R[$]=Z,re=$):(R[re]=Y,R[k]=Z,re=k);else if($<xe&&0>d(te,Z))R[re]=te,R[$]=Z,re=$;else break e}}return q}function d(R,q){var Z=R.sortIndex-q.sortIndex;return Z!==0?Z:R.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,x=v.now();n.unstable_now=function(){return v.now()-x}}var b=[],g=[],y=1,N=null,C=3,B=!1,O=!1,_=!1,Q=!1,H=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function I(R){for(var q=c(g);q!==null;){if(q.callback===null)o(g);else if(q.startTime<=R)o(g),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(g)}}function ve(R){if(_=!1,I(R),!O)if(c(b)!==null)O=!0,de||(de=!0,De());else{var q=c(g);q!==null&&_e(ve,q.startTime-R)}}var de=!1,V=-1,ee=5,ge=-1;function Te(){return Q?!0:!(n.unstable_now()-ge<ee)}function Ne(){if(Q=!1,de){var R=n.unstable_now();ge=R;var q=!0;try{e:{O=!1,_&&(_=!1,F(V),V=-1),B=!0;var Z=C;try{t:{for(I(R),N=c(b);N!==null&&!(N.expirationTime>R&&Te());){var re=N.callback;if(typeof re=="function"){N.callback=null,C=N.priorityLevel;var xe=re(N.expirationTime<=R);if(R=n.unstable_now(),typeof xe=="function"){N.callback=xe,I(R),q=!0;break t}N===c(b)&&o(b),I(R)}else o(b);N=c(b)}if(N!==null)q=!0;else{var S=c(g);S!==null&&_e(ve,S.startTime-R),q=!1}}break e}finally{N=null,C=Z,B=!1}q=void 0}}finally{q?De():de=!1}}}var De;if(typeof X=="function")De=function(){X(Ne)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,we=pe.port2;pe.port1.onmessage=Ne,De=function(){we.postMessage(null)}}else De=function(){H(Ne,0)};function _e(R,q){V=H(function(){R(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(R){switch(C){case 1:case 2:case 3:var q=3;break;default:q=C}var Z=C;C=q;try{return R()}finally{C=Z}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(R,q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=C;C=R;try{return q()}finally{C=Z}},n.unstable_scheduleCallback=function(R,q,Z){var re=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?re+Z:re):Z=re,R){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=Z+xe,R={id:y++,callback:q,priorityLevel:R,startTime:Z,expirationTime:xe,sortIndex:-1},Z>re?(R.sortIndex=Z,s(g,R),c(b)===null&&R===c(g)&&(_?(F(V),V=-1):_=!0,_e(ve,Z-re))):(R.sortIndex=xe,s(b,R),O||B||(O=!0,de||(de=!0,De()))),R},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(R){var q=C;return function(){var Z=C;C=q;try{return R.apply(this,arguments)}finally{C=Z}}}})(wr)),wr}var Oo;function yv(){return Oo||(Oo=1,jr.exports=bv()),jr.exports}var Sr={exports:{}},ot={};var zo;function jv(){if(zo)return ot;zo=1;var n=Cs();function s(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,g,y){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:N==null?null:""+N,children:b,containerInfo:g,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ot.createPortal=function(b,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return m(b,g,null,y)},ot.flushSync=function(b){var g=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=g,o.p=y,o.d.f()}},ot.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},ot.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ot.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var y=g.as,N=x(y,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:N,integrity:C,fetchPriority:B}):y==="script"&&o.d.X(b,{crossOrigin:N,integrity:C,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ot.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=x(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(b)},ot.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,N=x(y,g.crossOrigin);o.d.L(b,y,{crossOrigin:N,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ot.preloadModule=function(b,g){if(typeof b=="string")if(g){var y=x(g.as,g.crossOrigin);o.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(b)},ot.requestFormReset=function(b){o.d.r(b)},ot.unstable_batchedUpdates=function(b,g){return b(g)},ot.useFormState=function(b,g,y){return v.H.useFormState(b,g,y)},ot.useFormStatus=function(){return v.H.useHostTransitionStatus()},ot.version="19.2.3",ot}var To;function Ro(){if(To)return Sr.exports;To=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Sr.exports=jv(),Sr.exports}var Do;function wv(){if(Do)return yn;Do=1;var n=yv(),s=Cs(),c=Ro();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=u;else{for(var f=!1,p=i.child;p;){if(p===a){f=!0,a=i,l=u;break}if(p===l){f=!0,l=i,a=u;break}p=p.sibling}if(!f){for(p=u.child;p;){if(p===a){f=!0,a=u,l=i;break}if(p===l){f=!0,l=u,a=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,C=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),X=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=Ne&&e[Ne]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case H:return"Profiler";case Q:return"StrictMode";case ve:return"Suspense";case de:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case X:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var _e=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},re=[],xe=-1;function S(e){return{current:e}}function k(e){0>xe||(e.current=re[xe],re[xe]=null,xe--)}function Y(e,t){xe++,re[xe]=e.current,e.current=t}var $=S(null),te=S(null),le=S(null),ie=S(null);function at(e,t){switch(Y(le,t),Y(te,e),Y($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k($),Y($,e)}function Se(){k($),k(te),k(le)}function G(e){e.memoizedState!==null&&Y(ie,e);var t=$.current,a=lm(t,e.type);t!==a&&(Y(te,e),Y($,a))}function Ae(e){te.current===e&&(k($),k(te)),ie.current===e&&(k(ie),bs._currentValue=Z)}var $e,sl;function il(e){if($e===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",sl=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+gu+e+Go}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){var A=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){A=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){A=O}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(O){if(O&&A&&typeof O.stack=="string")return[O.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),f=s[0],d=s[1];if(f&&d){var x=f.split(`
4
- `),C=d.split(`
5
- `);for(i=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(l===x.length||i===C.length)for(l=x.length-1,i=C.length-1;1<=l&&0<=i&&x[l]!==C[i];)i--;for(;1<=l&&0<=i;l--,i--)if(x[l]!==C[i]){if(l!==1||i!==1)do if(l--,i--,0>i||x[l]!==C[i]){var R=`
6
- `+x[l].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=l&&0<=i);break}}}finally{vu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ja(a):""}function j1(e,t){switch(e.tag){case 26:case 27:case 5:return Ja(e.type);case 16:return Ja("Lazy");case 13:return e.child!==t&&t!==null?Ja("Suspense Fallback"):Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 15:return yu(e.type,!1);case 11:return yu(e.type.render,!1);case 1:return yu(e.type,!0);case 31:return Ja("Activity");default:return""}}function Vo(e){try{var t="",a=null;do t+=j1(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
3
+ `+$e+e+sl}var kr=!1;function Br(e,t){if(!e||kr)return"";kr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){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(T){var z=T}Reflect.construct(e,[],U)}else{try{U.call()}catch(T){z=T}e.call(U.prototype)}}else{try{throw Error()}catch(T){z=T}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(T){if(T&&z&&typeof T.stack=="string")return[T.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],p=u[1];if(f&&p){var j=f.split(`
4
+ `),M=p.split(`
5
+ `);for(i=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;if(l===j.length||i===M.length)for(l=j.length-1,i=M.length-1;1<=l&&0<=i&&j[l]!==M[i];)i--;for(;1<=l&&0<=i;l--,i--)if(j[l]!==M[i]){if(l!==1||i!==1)do if(l--,i--,0>i||j[l]!==M[i]){var D=`
6
+ `+j[l].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=l&&0<=i);break}}}finally{kr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?il(a):""}function Jg(e,t){switch(e.tag){case 26:case 27:case 5:return il(e.type);case 16:return il("Lazy");case 13:return e.child!==t&&t!==null?il("Suspense Fallback"):il("Suspense");case 19:return il("SuspenseList");case 0:case 15:return Br(e.type,!1);case 11:return Br(e.type.render,!1);case 1:return Br(e.type,!0);case 31:return il("Activity");default:return""}}function Df(e){try{var t="",a=null;do t+=Jg(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var pu=Object.prototype.hasOwnProperty,bu=n.unstable_scheduleCallback,xu=n.unstable_cancelCallback,S1=n.unstable_shouldYield,w1=n.unstable_requestPaint,gt=n.unstable_now,N1=n.unstable_getCurrentPriorityLevel,Zo=n.unstable_ImmediatePriority,Xo=n.unstable_UserBlockingPriority,wi=n.unstable_NormalPriority,E1=n.unstable_LowPriority,Ko=n.unstable_IdlePriority,C1=n.log,A1=n.unstable_setDisableYieldValue,gn=null,vt=null;function ma(e){if(typeof C1=="function"&&A1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:T1,z1=Math.log,O1=Math.LN2;function T1(e){return e>>>=0,e===0?32:31-(z1(e)/O1|0)|0}var Ni=256,Ei=262144,Ci=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ai(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~s,l!==0?i=$a(l):(f&=d,f!==0?i=$a(f):a||(a=d&~e,a!==0&&(i=$a(a))))):(d=l&~s,d!==0?i=$a(d):f!==0?i=$a(f):a||(a=l&~e,a!==0&&(i=$a(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function M1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Jo(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function R1(e,t,a,l,i,s){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(a=f&~a;0<a;){var R=31-yt(a),_=1<<R;d[R]=0,x[R]=-1;var A=C[R];if(A!==null)for(C[R]=null,R=0;R<A.length;R++){var O=A[R];O!==null&&(O.lane&=-536870913)}a&=~_}l!==0&&$o(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function $o(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Fo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Wo(e,t){var a=t&-t;return a=(a&42)!==0?1:Su(a),(a&(e.suspendedLanes|t))!==0?0:a}function Su(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Io(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:H0(e.type))}function Po(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var ga=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ga,rt="__reactProps$"+ga,bl="__reactContainer$"+ga,Nu="__reactEvents$"+ga,D1="__reactListeners$"+ga,_1="__reactHandles$"+ga,ef="__reactResources$"+ga,pn="__reactMarker$"+ga;function Eu(e){delete e[Fe],delete e[rt],delete e[Nu],delete e[D1],delete e[_1]}function xl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bl]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=S0(e);e!==null;){if(a=e[Fe])return a;e=S0(e)}return t}e=a,a=e.parentNode}return null}function jl(e){if(e=e[Fe]||e[bl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sl(e){var t=e[ef];return t||(t=e[ef]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[pn]=!0}var tf=new Set,af={};function Fa(e,t){wl(e,t),wl(e+"Capture",t)}function wl(e,t){for(af[e]=t,e=0;e<t.length;e++)tf.add(t[e])}var U1=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]*$"),lf={},nf={};function L1(e){return pu.call(nf,e)?!0:pu.call(lf,e)?!1:U1.test(e)?nf[e]=!0:(lf[e]=!0,!1)}function zi(e,t,a){if(L1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Oi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Xt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B1(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=sf(e)?"checked":"value";e._valueTracker=B1(e,t,""+e[t])}}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=sf(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var H1=/[\n"\\]/g;function At(e){return e.replace(H1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Au(e,t,a,l,i,s,f,d){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?zu(e,f,Ct(t)):a!=null?zu(e,f,Ct(a)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function rf(e,t,a,l,i,s,f,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Cu(e);return}a=a!=null?""+Ct(a):"",t=t!=null?""+Ct(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Cu(e)}function zu(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Nl(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ct(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cf(e,t,a){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ct(a):""}function of(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(Ke(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ct(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Cu(e)}function El(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var q1=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 ff(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||q1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function df(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&ff(e,i,l)}else for(var s in t)t.hasOwnProperty(s)&&ff(e,s,t[s])}function Ou(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Q1=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"]]),k1=/^[\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 Mi(e){return k1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var Tu=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cl=null,Al=null;function hf(e){var t=jl(e);if(t&&(e=t.stateNode)){var a=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Au(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[rt]||null;if(!i)throw Error(o(90));Au(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&uf(l)}break e;case"textarea":cf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Nl(e,!!a.multiple,t,!1)}}}var Ru=!1;function mf(e,t,a){if(Ru)return e(t,a);Ru=!0;try{var l=e(t);return l}finally{if(Ru=!1,(Cl!==null||Al!==null)&&(ps(),Cl&&(t=Cl,e=Al,Al=Cl=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function xn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[rt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Jt)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Du=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Du=!1}var va=null,_u=null,Ri=null;function gf(){if(Ri)return Ri;var e,t=_u,a=t.length,l,i="value"in va?va.value:va.textContent,s=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[s-l];l++);return Ri=i.slice(e,1<l?1-l:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function vf(){return!1}function ct(e){function t(a,l,i,s,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:vf,this.isPropagationStopped=vf,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=ct(Wa),Sn=z({},Wa,{view:0,detail:0}),Y1=ct(Sn),Uu,Lu,wn,Li=z({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wn&&(wn&&e.type==="mousemove"?(Uu=e.screenX-wn.screenX,Lu=e.screenY-wn.screenY):Lu=Uu=0,wn=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),yf=ct(Li),G1=z({},Li,{dataTransfer:0}),V1=ct(G1),Z1=z({},Sn,{relatedTarget:0}),Bu=ct(Z1),X1=z({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),K1=ct(X1),J1=z({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$1=ct(J1),F1=z({},Wa,{data:0}),pf=ct(F1),W1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I1={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"},P1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P1[e])?!!t[e]:!1}function Hu(){return ey}var ty=z({},Sn,{key:function(e){if(e.key){var t=W1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?I1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hu,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ay=ct(ty),ly=z({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=ct(ly),ny=z({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hu}),iy=ct(ny),sy=z({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),uy=ct(sy),ry=z({},Li,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cy=ct(ry),oy=z({},Wa,{newState:0,oldState:0}),fy=ct(oy),dy=[9,13,27,32],qu=Jt&&"CompositionEvent"in window,Nn=null;Jt&&"documentMode"in document&&(Nn=document.documentMode);var hy=Jt&&"TextEvent"in window&&!Nn,xf=Jt&&(!qu||Nn&&8<Nn&&11>=Nn),jf=" ",Sf=!1;function wf(e,t){switch(e){case"keyup":return dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zl=!1;function my(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(Sf=!0,jf);case"textInput":return e=t.data,e===jf&&Sf?null:e;default:return null}}function gy(e,t){if(zl)return e==="compositionend"||!qu&&wf(e,t)?(e=gf(),Ri=_u=va=null,zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xf&&t.locale!=="ko"?null:t.data;default:return null}}var vy={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 Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vy[e.type]:t==="textarea"}function Cf(e,t,a,l){Cl?Al?Al.push(l):Al=[l]:Cl=l,t=Es(t,"onChange"),0<t.length&&(a=new Ui("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var En=null,Cn=null;function yy(e){r0(e,0)}function Bi(e){var t=bn(e);if(uf(t))return e}function Af(e,t){if(e==="change")return t}var zf=!1;if(Jt){var Qu;if(Jt){var ku="oninput"in document;if(!ku){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),ku=typeof Of.oninput=="function"}Qu=ku}else Qu=!1;zf=Qu&&(!document.documentMode||9<document.documentMode)}function Tf(){En&&(En.detachEvent("onpropertychange",Mf),Cn=En=null)}function Mf(e){if(e.propertyName==="value"&&Bi(Cn)){var t=[];Cf(t,Cn,e,Mu(e)),mf(yy,t)}}function py(e,t,a){e==="focusin"?(Tf(),En=t,Cn=a,En.attachEvent("onpropertychange",Mf)):e==="focusout"&&Tf()}function by(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Cn)}function xy(e,t){if(e==="click")return Bi(t)}function jy(e,t){if(e==="input"||e==="change")return Bi(t)}function Sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Sy;function An(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!pu.call(t,i)||!pt(e[i],t[i]))return!1}return!0}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Df(e,t){var a=Rf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rf(a)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wy=Jt&&"documentMode"in document&&11>=document.documentMode,Ol=null,Gu=null,zn=null,Vu=!1;function Lf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vu||Ol==null||Ol!==Ti(l)||(l=Ol,"selectionStart"in l&&Yu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),zn&&An(zn,l)||(zn=l,l=Es(Gu,"onSelect"),0<l.length&&(t=new Ui("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Ol)))}function Ia(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Tl={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},Zu={},Bf={};Jt&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function Pa(e){if(Zu[e])return Zu[e];if(!Tl[e])return e;var t=Tl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Bf)return Zu[e]=t[a];return e}var Hf=Pa("animationend"),qf=Pa("animationiteration"),Qf=Pa("animationstart"),Ny=Pa("transitionrun"),Ey=Pa("transitionstart"),Cy=Pa("transitioncancel"),kf=Pa("transitionend"),Yf=new Map,Xu="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(" ");Xu.push("scrollEnd");function Bt(e,t){Yf.set(e,t),Fa(t,[e])}var Hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},zt=[],Ml=0,Ku=0;function qi(){for(var e=Ml,t=Ku=Ml=0;t<e;){var a=zt[t];zt[t++]=null;var l=zt[t];zt[t++]=null;var i=zt[t];zt[t++]=null;var s=zt[t];if(zt[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}s!==0&&Gf(a,i,s)}}function Qi(e,t,a,l){zt[Ml++]=e,zt[Ml++]=t,zt[Ml++]=a,zt[Ml++]=l,Ku|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ju(e,t,a,l){return Qi(e,t,a,l),ki(e)}function el(e,t){return Qi(e,null,null,t),ki(e)}function Gf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-yt(a),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),s):null}function ki(e){if(50<Fn)throw Fn=0,lc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Rl={};function Ay(e,t,a,l){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new Ay(e,t,a,l)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Vf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yi(e,t,a,l,i,s){var f=0;if(l=e,typeof e=="function")$u(e)&&(f=1);else if(typeof e=="string")f=Rp(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=bt(31,a,t,i),e.elementType=ve,e.lanes=s,e;case M:return tl(a.children,i,s,t);case q:f=8,i|=24;break;case H:return e=bt(12,a,t,i|2),e.elementType=H,e.lanes=s,e;case xe:return e=bt(13,a,t,i),e.elementType=xe,e.lanes=s,e;case fe:return e=bt(19,a,t,i),e.elementType=fe,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:f=10;break e;case $:f=9;break e;case ne:f=11;break e;case K:f=14;break e;case ee:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=bt(f,a,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function tl(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function Fu(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Zf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Wu(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var a=Xf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Vo(t)},Xf.set(e,t),t)}return{value:e,source:t,stack:Vo(t)}}var Dl=[],_l=0,Gi=null,On=0,Tt=[],Mt=0,ya=null,Yt=1,Gt="";function Ft(e,t){Dl[_l++]=On,Dl[_l++]=Gi,Gi=e,On=t}function Kf(e,t,a){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=ya,ya=e;var l=Yt;e=Gt;var i=32-yt(l)-1;l&=~(1<<i),a+=1;var s=32-yt(t)+i;if(30<s){var f=i-i%5;s=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Yt=1<<32-yt(t)+i|a<<i|l,Gt=s+e}else Yt=1<<s|a<<i|l,Gt=e}function Iu(e){e.return!==null&&(Ft(e,1),Kf(e,1,0))}function Pu(e){for(;e===Gi;)Gi=Dl[--_l],Dl[_l]=null,On=Dl[--_l],Dl[_l]=null;for(;e===ya;)ya=Tt[--Mt],Tt[Mt]=null,Gt=Tt[--Mt],Tt[Mt]=null,Yt=Tt[--Mt],Tt[Mt]=null}function Jf(e,t){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=ya,Yt=t.id,Gt=t.overflow,ya=e}var We=null,ze=null,oe=!1,pa=null,Rt=!1,er=Error(o(519));function ba(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tn(Ot(t,e)),er}function $f(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[rt]=l,a){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),rf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),of(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||d0(t.textContent,a)?(l.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),l.onScroll!=null&&ue("scroll",t),l.onScrollEnd!=null&&ue("scrollend",t),l.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||ba(e,!0)}function Ff(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:We=We.return}}function Ul(e){if(e!==We)return!1;if(!oe)return Ff(e),oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||pc(e.type,e.memoizedProps)),a=!a),a&&ze&&ba(e),Ff(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=j0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=j0(e)}else t===27?(t=ze,Da(e.type)?(e=wc,wc=null,ze=e):ze=t):ze=We?_t(e.stateNode.nextSibling):null;return!0}function al(){ze=We=null,oe=!1}function tr(){var e=pa;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),pa=null),e}function Tn(e){pa===null?pa=[e]:pa.push(e)}var ar=S(null),ll=null,Wt=null;function xa(e,t,a){Y(ar,t._currentValue),t._currentValue=a}function It(e){e._currentValue=ar.current,U(ar)}function lr(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function nr(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var x=0;x<t.length;x++)if(d.context===t[x]){s.lanes|=a,d=s.alternate,d!==null&&(d.lanes|=a),lr(s.return,a,e),l||(f=null);break e}s=d.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,s=f.alternate,s!==null&&(s.lanes|=a),lr(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Ll(e,t,a,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var d=i.type;pt(i.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}i=i.return}e!==null&&nr(t,e,a,l),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nl(e){ll=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Wf(ll,e)}function Zi(e,t){return ll===null&&nl(e),Wf(e,t)}function Wf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return a}var zy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Oy=n.unstable_scheduleCallback,Ty=n.unstable_NormalPriority,He={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ir(){return{controller:new zy,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&Oy(Ty,function(){e.controller.abort()})}var Rn=null,sr=0,Bl=0,Hl=null;function My(e,t){if(Rn===null){var a=Rn=[];sr=0,Bl=cc(),Hl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return sr++,t.then(If,If),t}function If(){if(--sr===0&&Rn!==null){Hl!==null&&(Hl.status="fulfilled");var e=Rn;Rn=null,Bl=0,Hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ry(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Pf=T.S;T.S=function(e,t){Lh=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&My(e,t),Pf!==null&&Pf(e,t)};var il=S(null);function ur(){var e=il.current;return e!==null?e:Ae.pooledCache}function Xi(e,t){t===null?Y(il,il.current):Y(il,t.pool)}function ed(){var e=ur();return e===null?null:{parent:He._currentValue,pool:e}}var ql=Error(o(460)),rr=Error(o(474)),Ki=Error(o(542)),Ji={then:function(){}};function td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ad(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Kt,Kt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e}throw ul=t,ql}}function sl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ul=a,ql):a}}var ul=null;function ld(){if(ul===null)throw Error(o(459));var e=ul;return ul=null,e}function nd(e){if(e===ql||e===Ki)throw Error(o(483))}var Ql=null,Dn=0;function $i(e){var t=Dn;return Dn+=1,Ql===null&&(Ql=[]),ad(Ql,e,t)}function _n(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function a(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function l(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=$t(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,j,E,D){return j===null||j.tag!==6?(j=Fu(E,w.mode,D),j.return=w,j):(j=i(j,E),j.return=w,j)}function x(w,j,E,D){var F=E.type;return F===M?R(w,j,E.props.children,D,E.key):j!==null&&(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sl(F)===j.type)?(j=i(j,E.props),_n(j,E),j.return=w,j):(j=Yi(E.type,E.key,E.props,null,w.mode,D),_n(j,E),j.return=w,j)}function C(w,j,E,D){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Wu(E,w.mode,D),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function R(w,j,E,D,F){return j===null||j.tag!==7?(j=tl(E,w.mode,D,F),j.return=w,j):(j=i(j,E),j.return=w,j)}function _(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Fu(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case V:return E=Yi(j.type,j.key,j.props,null,w.mode,E),_n(E,j),E.return=w,E;case B:return j=Wu(j,w.mode,E),j.return=w,j;case ee:return j=sl(j),_(w,j,E)}if(Ke(j)||J(j))return j=tl(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return _(w,$i(j),E);if(j.$$typeof===k)return _(w,Zi(w,j),E);Fi(w,j)}return null}function A(w,j,E,D){var F=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:d(w,j,""+E,D);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return E.key===F?x(w,j,E,D):null;case B:return E.key===F?C(w,j,E,D):null;case ee:return E=sl(E),A(w,j,E,D)}if(Ke(E)||J(E))return F!==null?null:R(w,j,E,D,null);if(typeof E.then=="function")return A(w,j,$i(E),D);if(E.$$typeof===k)return A(w,j,Zi(w,E),D);Fi(w,E)}return null}function O(w,j,E,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return w=w.get(E)||null,d(j,w,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return w=w.get(D.key===null?E:D.key)||null,x(j,w,D,F);case B:return w=w.get(D.key===null?E:D.key)||null,C(j,w,D,F);case ee:return D=sl(D),O(w,j,E,D,F)}if(Ke(D)||J(D))return w=w.get(E)||null,R(j,w,D,F,null);if(typeof D.then=="function")return O(w,j,E,$i(D),F);if(D.$$typeof===k)return O(w,j,E,Zi(j,D),F);Fi(j,D)}return null}function G(w,j,E,D){for(var F=null,me=null,X=j,le=j=0,ce=null;X!==null&&le<E.length;le++){X.index>le?(ce=X,X=null):ce=X.sibling;var ge=A(w,X,E[le],D);if(ge===null){X===null&&(X=ce);break}e&&X&&ge.alternate===null&&t(w,X),j=s(ge,j,le),me===null?F=ge:me.sibling=ge,me=ge,X=ce}if(le===E.length)return a(w,X),oe&&Ft(w,le),F;if(X===null){for(;le<E.length;le++)X=_(w,E[le],D),X!==null&&(j=s(X,j,le),me===null?F=X:me.sibling=X,me=X);return oe&&Ft(w,le),F}for(X=l(X);le<E.length;le++)ce=O(X,w,le,E[le],D),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?le:ce.key),j=s(ce,j,le),me===null?F=ce:me.sibling=ce,me=ce);return e&&X.forEach(function(Ha){return t(w,Ha)}),oe&&Ft(w,le),F}function I(w,j,E,D){if(E==null)throw Error(o(151));for(var F=null,me=null,X=j,le=j=0,ce=null,ge=E.next();X!==null&&!ge.done;le++,ge=E.next()){X.index>le?(ce=X,X=null):ce=X.sibling;var Ha=A(w,X,ge.value,D);if(Ha===null){X===null&&(X=ce);break}e&&X&&Ha.alternate===null&&t(w,X),j=s(Ha,j,le),me===null?F=Ha:me.sibling=Ha,me=Ha,X=ce}if(ge.done)return a(w,X),oe&&Ft(w,le),F;if(X===null){for(;!ge.done;le++,ge=E.next())ge=_(w,ge.value,D),ge!==null&&(j=s(ge,j,le),me===null?F=ge:me.sibling=ge,me=ge);return oe&&Ft(w,le),F}for(X=l(X);!ge.done;le++,ge=E.next())ge=O(X,w,le,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?le:ge.key),j=s(ge,j,le),me===null?F=ge:me.sibling=ge,me=ge);return e&&X.forEach(function(Gp){return t(w,Gp)}),oe&&Ft(w,le),F}function Ee(w,j,E,D){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case V:e:{for(var F=E.key;j!==null;){if(j.key===F){if(F=E.type,F===M){if(j.tag===7){a(w,j.sibling),D=i(j,E.props.children),D.return=w,w=D;break e}}else if(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sl(F)===j.type){a(w,j.sibling),D=i(j,E.props),_n(D,E),D.return=w,w=D;break e}a(w,j);break}else t(w,j);j=j.sibling}E.type===M?(D=tl(E.props.children,w.mode,D,E.key),D.return=w,w=D):(D=Yi(E.type,E.key,E.props,null,w.mode,D),_n(D,E),D.return=w,w=D)}return f(w);case B:e:{for(F=E.key;j!==null;){if(j.key===F)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){a(w,j.sibling),D=i(j,E.children||[]),D.return=w,w=D;break e}else{a(w,j);break}else t(w,j);j=j.sibling}D=Wu(E,w.mode,D),D.return=w,w=D}return f(w);case ee:return E=sl(E),Ee(w,j,E,D)}if(Ke(E))return G(w,j,E,D);if(J(E)){if(F=J(E),typeof F!="function")throw Error(o(150));return E=F.call(E),I(w,j,E,D)}if(typeof E.then=="function")return Ee(w,j,$i(E),D);if(E.$$typeof===k)return Ee(w,j,Zi(w,E),D);Fi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(a(w,j.sibling),D=i(j,E),D.return=w,w=D):(a(w,j),D=Fu(E,w.mode,D),D.return=w,w=D),f(w)):a(w,j)}return function(w,j,E,D){try{Dn=0;var F=Ee(w,j,E,D);return Ql=null,F}catch(X){if(X===ql||X===Ki)throw X;var me=bt(29,X,null,w.mode);return me.lanes=D,me.return=w,me}finally{}}}var rl=id(!0),sd=id(!1),ja=!1;function cr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function or(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ye&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ki(e),Gf(e,null,a),t}return Qi(e,l,t,a),ki(e)}function Un(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Fo(e,a)}}function fr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var dr=!1;function Ln(){if(dr){var e=Hl;if(e!==null)throw e}}function Bn(e,t,a,l){dr=!1;var i=e.updateQueue;ja=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var x=d,C=x.next;x.next=null,f===null?s=C:f.next=C,f=x;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==f&&(d===null?R.firstBaseUpdate=C:d.next=C,R.lastBaseUpdate=x))}if(s!==null){var _=i.baseState;f=0,R=C=x=null,d=s;do{var A=d.lane&-536870913,O=A!==d.lane;if(O?(re&A)===A:(l&A)===A){A!==0&&A===Bl&&(dr=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var G=e,I=d;A=t;var Ee=a;switch(I.tag){case 1:if(G=I.payload,typeof G=="function"){_=G.call(Ee,_,A);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=I.payload,A=typeof G=="function"?G.call(Ee,_,A):G,A==null)break e;_=z({},_,A);break e;case 2:ja=!0}}A=d.callback,A!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[A]:O.push(A))}else O={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(C=R=O,x=_):R=R.next=O,f|=A;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);R===null&&(x=_),i.baseState=x,i.firstBaseUpdate=C,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),za|=f,e.lanes=f,e.memoizedState=_}}function ud(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function rd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ud(a[e],t)}var kl=S(null),Wi=S(0);function cd(e,t){e=ua,Y(Wi,e),Y(kl,t),ua=e|t.baseLanes}function hr(){Y(Wi,ua),Y(kl,kl.current)}function mr(){ua=Wi.current,U(kl),U(Wi)}var xt=S(null),Dt=null;function Na(e){var t=e.alternate;Y(Le,Le.current&1),Y(xt,e),Dt===null&&(t===null||kl.current!==null||t.memoizedState!==null)&&(Dt=e)}function gr(e){Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)}function od(e){e.tag===22?(Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)):Ea()}function Ea(){Y(Le,Le.current),Y(xt,xt.current)}function jt(e){U(xt),Dt===e&&(Dt=null),U(Le)}var Le=S(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||jc(a)||Sc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pt=0,ae=null,we=null,qe=null,Pi=!1,Yl=!1,cl=!1,es=0,Hn=0,Gl=null,Dy=0;function De(){throw Error(o(321))}function vr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!pt(e[a],t[a]))return!1;return!0}function yr(e,t,a,l,i,s){return Pt=s,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Kd:Rr,cl=!1,s=a(l,i),cl=!1,Yl&&(s=dd(t,a,l,i)),fd(e),s}function fd(e){T.H=kn;var t=we!==null&&we.next!==null;if(Pt=0,qe=we=ae=null,Pi=!1,Hn=0,Gl=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&Vi(e)&&(Qe=!0))}function dd(e,t,a,l){ae=e;var i=0;do{if(Yl&&(Gl=null),Hn=0,Yl=!1,25<=i)throw Error(o(301));if(i+=1,qe=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}T.H=Jd,s=t(a,l)}while(Yl);return s}function _y(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?qn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ae.flags|=1024),t}function pr(){var e=es!==0;return es=0,e}function br(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function xr(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Pt=0,qe=we=ae=null,Yl=!1,Hn=es=0,Gl=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?ae.memoizedState=qe=e:qe=qe.next=e,qe}function Be(){if(we===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=qe===null?ae.memoizedState:qe.next;if(t!==null)qe=t,we=e;else{if(e===null)throw ae.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},qe===null?ae.memoizedState=qe=e:qe=qe.next=e}return qe}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qn(e){var t=Hn;return Hn+=1,Gl===null&&(Gl=[]),e=ad(Gl,e,t),t=ae,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Kd:Rr),e}function as(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qn(e);if(e.$$typeof===k)return Ie(e)}throw Error(o(438,String(e)))}function jr(e){var t=null,a=ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ts(),ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Me;return t.index++,a}function ea(e,t){return typeof t=="function"?t(e):t}function ls(e){var t=Be();return Sr(t,we,e)}function Sr(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=f=null,x=null,C=t,R=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(re&_)===_:(Pt&_)===_){var A=C.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Bl&&(R=!0);else if((Pt&A)===A){C=C.next,A===Bl&&(R=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(d=x=_,f=s):x=x.next=_,ae.lanes|=A,za|=A;_=C.action,cl&&a(s,_),s=C.hasEagerState?C.eagerState:a(s,_)}else A={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(d=x=A,f=s):x=x.next=A,ae.lanes|=_,za|=_;C=C.next}while(C!==null&&C!==t);if(x===null?f=s:x.next=d,!pt(s,e.memoizedState)&&(Qe=!0,R&&(a=Hl,a!==null)))throw a;e.memoizedState=s,e.baseState=f,e.baseQueue=x,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function wr(e){var t=Be(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,s=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);pt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function hd(e,t,a){var l=ae,i=Be(),s=oe;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!pt((we||i).memoizedState,a);if(f&&(i.memoizedState=a,Qe=!0),i=i.queue,Cr(vd.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||qe!==null&&qe.memoizedState.tag&1){if(l.flags|=2048,Vl(9,{destroy:void 0},gd.bind(null,l,i,a,t),null),Ae===null)throw Error(o(349));s||(Pt&127)!==0||md(l,t,a)}return a}function md(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ae.updateQueue,t===null?(t=ts(),ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gd(e,t,a,l){t.value=a,t.getSnapshot=l,yd(t)&&pd(e)}function vd(e,t,a){return a(function(){yd(t)&&pd(e)})}function yd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!pt(e,a)}catch{return!0}}function pd(e){var t=el(e,2);t!==null&&mt(t,e,2)}function Nr(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),cl){ma(!0);try{a()}finally{ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function bd(e,t,a,l){return e.baseState=a,Sr(e,we,typeof l=="function"?l:ea)}function Uy(e,t,a,l,i){if(ss(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};T.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,xd(t,s)):(s.next=a.next,t.pending=a.next=s)}}function xd(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=T.T,f={};T.T=f;try{var d=a(i,l),x=T.S;x!==null&&x(f,d),jd(e,t,d)}catch(C){Er(e,t,C)}finally{s!==null&&f.types!==null&&(s.types=f.types),T.T=s}}else try{s=a(i,l),jd(e,t,s)}catch(C){Er(e,t,C)}}function jd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Sd(e,t,l)},function(l){return Er(e,t,l)}):Sd(e,t,a)}function Sd(e,t,a){t.status="fulfilled",t.value=a,wd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,xd(e,a)))}function Er(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,wd(t),t=t.next;while(t!==l)}e.action=null}function wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nd(e,t){return t}function Ed(e,t){if(oe){var a=Ae.formState;if(a!==null){e:{var l=ae;if(oe){if(ze){t:{for(var i=ze,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){ze=_t(i.nextSibling),l=i.data==="F!";break e}}ba(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:t},a.queue=l,a=Vd.bind(null,ae,l),l.dispatch=a,l=Nr(!1),s=Mr.bind(null,ae,!1,l.queue),l=st(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Uy.bind(null,ae,i,s,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function Cd(e){var t=Be();return Ad(t,we,e)}function Ad(e,t,a){if(t=Sr(e,t,Nd)[0],e=ls(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=qn(t)}catch(f){throw f===ql?Ki:f}else l=t;t=Be();var i=t.queue,s=i.dispatch;return a!==t.memoizedState&&(ae.flags|=2048,Vl(9,{destroy:void 0},Ly.bind(null,i,a),null)),[l,s,e]}function Ly(e,t){e.action=t}function zd(e){var t=Be(),a=we;if(a!==null)return Ad(t,a,e);Be(),t=t.memoizedState,a=Be();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ae.updateQueue,t===null&&(t=ts(),ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Od(){return Be().memoizedState}function ns(e,t,a,l){var i=st();ae.flags|=e,i.memoizedState=Vl(1|t,{destroy:void 0},a,l===void 0?null:l)}function is(e,t,a,l){var i=Be();l=l===void 0?null:l;var s=i.memoizedState.inst;we!==null&&l!==null&&vr(l,we.memoizedState.deps)?i.memoizedState=Vl(t,s,a,l):(ae.flags|=e,i.memoizedState=Vl(1|t,s,a,l))}function Td(e,t){ns(8390656,8,e,t)}function Cr(e,t){is(2048,8,e,t)}function By(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=ts(),ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Md(e){var t=Be().memoizedState;return By({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Rd(e,t){return is(4,2,e,t)}function Dd(e,t){return is(4,4,e,t)}function _d(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ud(e,t,a){a=a!=null?a.concat([e]):null,is(4,4,_d.bind(null,t,e),a)}function Ar(){}function Ld(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&vr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Bd(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&vr(t,l[1]))return l[0];if(l=e(),cl){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l}function zr(e,t,a){return a===void 0||(Pt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Hh(),ae.lanes|=e,za|=e,a)}function Hd(e,t,a,l){return pt(a,t)?a:kl.current!==null?(e=zr(e,a,l),pt(e,t)||(Qe=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(re&261930)===0?(Qe=!0,e.memoizedState=a):(e=Hh(),ae.lanes|=e,za|=e,t)}function qd(e,t,a,l,i){var s=Q.p;Q.p=s!==0&&8>s?s:8;var f=T.T,d={};T.T=d,Mr(e,!1,t,a);try{var x=i(),C=T.S;if(C!==null&&C(d,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var R=Ry(x,l);Qn(e,t,R,Nt(e))}else Qn(e,t,l,Nt(e))}catch(_){Qn(e,t,{then:function(){},status:"rejected",reason:_},Nt())}finally{Q.p=s,f!==null&&d.types!==null&&(f.types=d.types),T.T=f}}function Hy(){}function Or(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=Qd(e).queue;qd(e,i,t,W,a===null?Hy:function(){return kd(e),a(l)})}function Qd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Qd(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Nt())}function Tr(){return Ie(li)}function Yd(){return Be().memoizedState}function Gd(){return Be().memoizedState}function qy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Sa(a);var l=wa(t,e,a);l!==null&&(mt(l,t,a),Un(l,t,a)),t={cache:ir()},e.payload=t;return}t=t.return}}function Qy(e,t,a){var l=Nt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(e)?Zd(t,a):(a=Ju(e,t,a,l),a!==null&&(mt(a,e,l),Xd(a,t,l)))}function Vd(e,t,a){var l=Nt();Qn(e,t,a,l)}function Qn(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ss(e))Zd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,d=s(f,a);if(i.hasEagerState=!0,i.eagerState=d,pt(d,f))return Qi(e,t,i,0),Ae===null&&qi(),!1}catch{}finally{}if(a=Ju(e,t,i,l),a!==null)return mt(a,e,l),Xd(a,t,l),!0}return!1}function Mr(e,t,a,l){if(l={lane:2,revertLane:cc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ss(e)){if(t)throw Error(o(479))}else t=Ju(e,a,l,2),t!==null&&mt(t,e,2)}function ss(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Zd(e,t){Yl=Pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Fo(e,a)}}var kn={readContext:Ie,use:as,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};kn.useEffectEvent=De;var Kd={readContext:Ie,use:as,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Td,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ns(4194308,4,_d.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(cl){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var i=a(t);if(cl){ma(!0);try{a(t)}finally{ma(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Qy.bind(null,ae,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Nr(e);var t=e.queue,a=Vd.bind(null,ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ar,useDeferredValue:function(e,t){var a=st();return zr(a,e,t)},useTransition:function(){var e=Nr(!1);return e=qd.bind(null,ae,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ae,i=st();if(oe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ae===null)throw Error(o(349));(re&127)!==0||md(l,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,Td(vd.bind(null,l,s,e),[e]),l.flags|=2048,Vl(9,{destroy:void 0},gd.bind(null,l,s,a,t),null),a},useId:function(){var e=st(),t=Ae.identifierPrefix;if(oe){var a=Gt,l=Yt;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=es++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Dy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tr,useFormState:Ed,useActionState:Ed,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Mr.bind(null,ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:jr,useCacheRefresh:function(){return st().memoizedState=qy.bind(null,ae)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((ye&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Rr={readContext:Ie,use:as,useCallback:Ld,useContext:Ie,useEffect:Cr,useImperativeHandle:Ud,useInsertionEffect:Rd,useLayoutEffect:Dd,useMemo:Bd,useReducer:ls,useRef:Od,useState:function(){return ls(ea)},useDebugValue:Ar,useDeferredValue:function(e,t){var a=Be();return Hd(a,we.memoizedState,e,t)},useTransition:function(){var e=ls(ea)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:qn(e),t]},useSyncExternalStore:hd,useId:Yd,useHostTransitionStatus:Tr,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,t){var a=Be();return bd(a,we,e,t)},useMemoCache:jr,useCacheRefresh:Gd};Rr.useEffectEvent=Md;var Jd={readContext:Ie,use:as,useCallback:Ld,useContext:Ie,useEffect:Cr,useImperativeHandle:Ud,useInsertionEffect:Rd,useLayoutEffect:Dd,useMemo:Bd,useReducer:wr,useRef:Od,useState:function(){return wr(ea)},useDebugValue:Ar,useDeferredValue:function(e,t){var a=Be();return we===null?zr(a,e,t):Hd(a,we.memoizedState,e,t)},useTransition:function(){var e=wr(ea)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:qn(e),t]},useSyncExternalStore:hd,useId:Yd,useHostTransitionStatus:Tr,useFormState:zd,useActionState:zd,useOptimistic:function(e,t){var a=Be();return we!==null?bd(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:jr,useCacheRefresh:Gd};Jd.useEffectEvent=Md;function Dr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _r={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Nt(),i=Sa(l);i.payload=t,a!=null&&(i.callback=a),t=wa(e,i,l),t!==null&&(mt(t,e,l),Un(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Nt(),i=Sa(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=wa(e,i,l),t!==null&&(mt(t,e,l),Un(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),l=Sa(a);l.tag=2,t!=null&&(l.callback=t),t=wa(e,l,a),t!==null&&(mt(t,e,a),Un(t,e,a))}};function $d(e,t,a,l,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,f):t.prototype&&t.prototype.isPureReactComponent?!An(a,l)||!An(i,s):!0}function Fd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&_r.enqueueReplaceState(t,t.state,null)}function ol(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Wd(e){Hi(e)}function Id(e){console.error(e)}function Pd(e){Hi(e)}function us(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function eh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ur(e,t,a){return a=Sa(a),a.tag=3,a.payload={element:null},a.callback=function(){us(e,t)},a}function th(e){return e=Sa(e),e.tag=3,e}function ah(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){eh(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){eh(t,a,l),typeof i!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function ky(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ll(t,a,i,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return Dt===null?bs():a.alternate===null&&_e===0&&(_e=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===Ji?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),sc(e,l,i)),!1;case 22:return a.flags|=65536,l===Ji?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),sc(e,l,i)),!1}throw Error(o(435,a.tag))}return sc(e,l,i),bs(),!1}if(oe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==er&&(e=Error(o(422),{cause:l}),Tn(Ot(e,a)))):(l!==er&&(t=Error(o(423),{cause:l}),Tn(Ot(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Ot(l,a),i=Ur(e.stateNode,l,i),fr(e,i),_e!==4&&(_e=2)),!1;var s=Error(o(520),{cause:l});if(s=Ot(s,a),$n===null?$n=[s]:$n.push(s),_e!==4&&(_e=2),t===null)return!0;l=Ot(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ur(a.stateNode,l,e),fr(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Oa===null||!Oa.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=th(i),ah(i,e,a,l),fr(a,i),!1}a=a.return}while(a!==null);return!1}var Lr=Error(o(461)),Qe=!1;function Pe(e,t,a,l){t.child=e===null?sd(t,null,a,l):rl(t,e.child,a,l)}function lh(e,t,a,l,i){a=a.render;var s=t.ref;if("ref"in l){var f={};for(var d in l)d!=="ref"&&(f[d]=l[d])}else f=l;return nl(t),l=yr(e,t,a,f,s,i),d=pr(),e!==null&&!Qe?(br(e,t,i),ta(e,t,i)):(oe&&d&&Iu(t),t.flags|=1,Pe(e,t,l,i),t.child)}function nh(e,t,a,l,i){if(e===null){var s=a.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,ih(e,t,s,l,i)):(e=Yi(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vr(e,i)){var f=s.memoizedProps;if(a=a.compare,a=a!==null?a:An,a(f,l)&&e.ref===t.ref)return ta(e,t,i)}return t.flags|=1,e=$t(s,l),e.ref=t.ref,e.return=t,t.child=e}function ih(e,t,a,l,i){if(e!==null){var s=e.memoizedProps;if(An(s,l)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=l=s,Vr(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ta(e,t,i)}return Br(e,t,a,l,i)}function sh(e,t,a,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return uh(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,s!==null?s.cachePool:null),s!==null?cd(t,s):hr(),od(t);else return l=t.lanes=536870912,uh(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Xi(t,s.cachePool),cd(t,s),Ea(),t.memoizedState=null):(e!==null&&Xi(t,null),hr(),Ea());return Pe(e,t,i,a),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uh(e,t,a,l,i){var s=ur();return s=s===null?null:{parent:He._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Xi(t,null),hr(),od(t),e!==null&&Ll(e,t,l,!0),t.childLanes=i,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rh(e,t,a){return rl(t,e.child,null,a),e=rs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Yy(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(l.mode==="hidden")return e=rs(t,l),t.lanes=536870912,Yn(null,e);if(gr(t),(e=ze)?(e=x0(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=Zf(e),a.return=t,t.child=a,We=t,ze=null)):e=null,e===null)throw ba(t);return t.lanes=536870912,null}return rs(t,l)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(gr(t),i)if(t.flags&256)t.flags&=-257,t=rh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||Ll(e,t,a,!1),i=(a&e.childLanes)!==0,Qe||i){if(l=Ae,l!==null&&(f=Wo(l,a),f!==0&&f!==s.retryLane))throw s.retryLane=f,el(e,f),mt(l,e,f),Lr;bs(),t=rh(e,t,a)}else e=s.treeContext,ze=_t(f.nextSibling),We=t,oe=!0,pa=null,Rt=!1,e!==null&&Jf(t,e),t=rs(t,l),t.flags|=4096;return t}return e=$t(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Br(e,t,a,l,i){return nl(t),a=yr(e,t,a,l,void 0,i),l=pr(),e!==null&&!Qe?(br(e,t,i),ta(e,t,i)):(oe&&l&&Iu(t),t.flags|=1,Pe(e,t,a,i),t.child)}function ch(e,t,a,l,i,s){return nl(t),t.updateQueue=null,a=dd(t,l,a,i),fd(e),l=pr(),e!==null&&!Qe?(br(e,t,s),ta(e,t,s)):(oe&&l&&Iu(t),t.flags|=1,Pe(e,t,a,s),t.child)}function oh(e,t,a,l,i){if(nl(t),t.stateNode===null){var s=Rl,f=a.contextType;typeof f=="object"&&f!==null&&(s=Ie(f)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_r,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},cr(t),f=a.contextType,s.context=typeof f=="object"&&f!==null?Ie(f):Rl,s.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Dr(t,a,f,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&_r.enqueueReplaceState(s,s.state,null),Bn(t,l,s,i),Ln(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,x=ol(a,d);s.props=x;var C=s.context,R=a.contextType;f=Rl,typeof R=="object"&&R!==null&&(f=Ie(R));var _=a.getDerivedStateFromProps;R=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==f)&&Fd(t,s,l,f),ja=!1;var A=t.memoizedState;s.state=A,Bn(t,l,s,i),Ln(),C=t.memoizedState,d||A!==C||ja?(typeof _=="function"&&(Dr(t,a,_,l),C=t.memoizedState),(x=ja||$d(t,a,x,l,A,C,f))?(R||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=C),s.props=l,s.state=C,s.context=f,l=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,or(e,t),f=t.memoizedProps,R=ol(a,f),s.props=R,_=t.pendingProps,A=s.context,C=a.contextType,x=Rl,typeof C=="object"&&C!==null&&(x=Ie(C)),d=a.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==_||A!==x)&&Fd(t,s,l,x),ja=!1,A=t.memoizedState,s.state=A,Bn(t,l,s,i),Ln();var O=t.memoizedState;f!==_||A!==O||ja||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof d=="function"&&(Dr(t,a,d,l),O=t.memoizedState),(R=ja||$d(t,a,R,l,A,O,x)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,O,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,O,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),s.props=l,s.state=O,s.context=x,l=R):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,cs(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=rl(t,e.child,null,i),t.child=rl(t,null,a,i)):Pe(e,t,a,i),t.memoizedState=s.state,e=t.child):e=ta(e,t,i),e}function fh(e,t,a,l){return al(),t.flags|=256,Pe(e,t,a,l),t.child}var Hr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qr(e){return{baseLanes:e,cachePool:ed()}}function Qr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=wt),e}function dh(e,t,a){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(i?Na(t):Ea(),(e=ze)?(e=x0(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=Zf(e),a.return=t,t.child=a,We=t,ze=null)):e=null,e===null)throw ba(t);return Sc(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,i?(Ea(),i=t.mode,d=os({mode:"hidden",children:d},i),l=tl(l,i,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=qr(a),l.childLanes=Qr(e,f,a),t.memoizedState=Hr,Yn(null,l)):(Na(t),kr(t,d))}var x=e.memoizedState;if(x!==null&&(d=x.dehydrated,d!==null)){if(s)t.flags&256?(Na(t),t.flags&=-257,t=Yr(e,t,a)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),d=l.fallback,i=t.mode,l=os({mode:"visible",children:l.children},i),d=tl(d,i,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,rl(t,e.child,null,a),l=t.child,l.memoizedState=qr(a),l.childLanes=Qr(e,f,a),t.memoizedState=Hr,t=Yn(null,l));else if(Na(t),Sc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var C=f.dgst;f=C,l=Error(o(419)),l.stack="",l.digest=f,Tn({value:l,source:null,stack:null}),t=Yr(e,t,a)}else if(Qe||Ll(e,t,a,!1),f=(a&e.childLanes)!==0,Qe||f){if(f=Ae,f!==null&&(l=Wo(f,a),l!==0&&l!==x.retryLane))throw x.retryLane=l,el(e,l),mt(f,e,l),Lr;jc(d)||bs(),t=Yr(e,t,a)}else jc(d)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,ze=_t(d.nextSibling),We=t,oe=!0,pa=null,Rt=!1,e!==null&&Jf(t,e),t=kr(t,l.children),t.flags|=4096);return t}return i?(Ea(),d=l.fallback,i=t.mode,x=e.child,C=x.sibling,l=$t(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,C!==null?d=$t(C,d):(d=tl(d,i,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Yn(null,l),l=t.child,d=e.child.memoizedState,d===null?d=qr(a):(i=d.cachePool,i!==null?(x=He._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=ed(),d={baseLanes:d.baseLanes|a,cachePool:i}),l.memoizedState=d,l.childLanes=Qr(e,f,a),t.memoizedState=Hr,Yn(e.child,l)):(Na(t),a=e.child,e=a.sibling,a=$t(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function kr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,a){return rl(t,e.child,null,a),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),lr(e.return,t,a)}function Gr(e,t,a,l,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=s)}function mh(e,t,a){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var f=Le.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(Le,f),Pe(e,t,l,a),l=oe?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hh(e,a,t);else if(e.tag===19)hh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Ii(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Gr(t,!1,i,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ii(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Gr(t,!0,a,null,s,l);break;case"together":Gr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ta(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ll(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=$t(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$t(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function Gy(e,t,a){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),xa(t,He,e.memoizedState.cache),al();break;case 27:case 5:mn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?dh(e,t,a):(Na(t),e=ta(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ll(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return mh(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Le,Le.current),l)break;return null;case 22:return t.lanes=0,sh(e,t,a,t.pendingProps);case 24:xa(t,He,e.memoizedState.cache)}return ta(e,t,a)}function gh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Vr(e,a)&&(t.flags&128)===0)return Qe=!1,Gy(e,t,a);Qe=(e.flags&131072)!==0}else Qe=!1,oe&&(t.flags&1048576)!==0&&Kf(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=sl(t.elementType),t.type=e,typeof e=="function")$u(e)?(l=ol(e,l),t.tag=1,t=oh(null,t,e,l,a)):(t.tag=0,t=Br(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===ne){t.tag=11,t=lh(null,t,e,l,a);break e}else if(i===K){t.tag=14,t=nh(null,t,e,l,a);break e}}throw t=Ge(e)||e,Error(o(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=ol(l,t.pendingProps),oh(e,t,l,i,a);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,or(e,t),Bn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,xa(t,He,l),l!==s.cache&&nr(t,[He],a,!0),Ln(),l=f.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=fh(e,t,l,a);break e}else if(l!==i){i=Ot(Error(o(424)),t),Tn(i),t=fh(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=_t(e.firstChild),We=t,oe=!0,pa=null,Rt=!0,a=sd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(al(),l===i){t=ta(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return cs(e,t),e===null?(a=C0(t.type,null,t.pendingProps,null))?t.memoizedState=a:oe||(a=t.type,e=t.pendingProps,l=Cs(ie.current).createElement(a),l[Fe]=t,l[rt]=e,et(l,a,e),Je(l),t.stateNode=l):t.memoizedState=C0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&oe&&(l=t.stateNode=w0(t.type,t.pendingProps,ie.current),We=t,Rt=!0,i=ze,Da(t.type)?(wc=i,ze=_t(l.firstChild)):ze=i),Pe(e,t,t.pendingProps.children,a),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((i=l=ze)&&(l=bp(l,t.type,t.pendingProps,Rt),l!==null?(t.stateNode=l,We=t,ze=_t(l.firstChild),Rt=!1,i=!0):i=!1),i||ba(t)),mn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,l=s.children,pc(i,s)?l=null:f!==null&&pc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=yr(e,t,_y,null,null,a),li._currentValue=i),cs(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&oe&&((e=a=ze)&&(a=xp(a,t.pendingProps,Rt),a!==null?(t.stateNode=a,We=t,ze=null,e=!0):e=!1),e||ba(t)),null;case 13:return dh(e,t,a);case 4:return it(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=rl(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return lh(e,t,t.type,t.pendingProps,a);case 7:return Pe(e,t,t.pendingProps,a),t.child;case 8:return Pe(e,t,t.pendingProps.children,a),t.child;case 12:return Pe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,xa(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,nl(t),i=Ie(i),l=l(i),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return nh(e,t,t.type,t.pendingProps,a);case 15:return ih(e,t,t.type,t.pendingProps,a);case 19:return mh(e,t,a);case 31:return Yy(e,t,a);case 22:return sh(e,t,a,t.pendingProps);case 24:return nl(t),l=Ie(He),e===null?(i=ur(),i===null&&(i=Ae,s=ir(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),t.memoizedState={parent:l,cache:i},cr(t),xa(t,He,i)):((e.lanes&a)!==0&&(or(e,t),Bn(t,null,null,a),Ln()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xa(t,He,l)):(l=s.cache,xa(t,He,l),l!==i.cache&&nr(t,[He],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function aa(e){e.flags|=4}function Zr(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Yh())e.flags|=8192;else throw ul=Ji,rr}else e.flags&=-16777217}function vh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!M0(t))if(Yh())e.flags|=8192;else throw ul=Ji,rr}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jo():536870912,e.lanes|=t,Jl|=t)}function Gn(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Vy(e,t,a){var l=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(He),Ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ul(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tr())),Oe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(aa(t),s!==null?(Oe(t),vh(t,s)):(Oe(t),Zr(t,i,null,l,a))):s?s!==e.memoizedState?(aa(t),Oe(t),vh(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&aa(t),Oe(t),Zr(t,i,e,l,a)),null;case 27:if(Si(t),a=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=Z.current,Ul(t)?$f(t):(e=w0(i,l,a),t.stateNode=e,aa(t))}return Oe(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(s=Z.current,Ul(t))$f(t);else{var f=Cs(ie.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}s[Fe]=t,s[rt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(et(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&aa(t)}}return Oe(t),Zr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&aa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ul(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=We,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||d0(e.nodeValue,a)),e||ba(t,!0)}else e=Cs(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ul(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ul(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Fe]=t}else al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else i=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),fs(t,t.updateQueue),Oe(t),null);case 4:return Ue(),e===null&&hc(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(U(Le),l=t.memoizedState,l===null)return Oe(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)Gn(l,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Gn(l,!1),e=s.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Vf(a,e),a=a.sibling;return Y(Le,Le.current&1|2),oe&&Ft(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&gt()>vs&&(t.flags|=128,i=!0,Gn(l,!1),t.lanes=4194304)}else{if(!i)if(e=Ii(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Gn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!oe)return Oe(t),null}else 2*gt()-l.renderingStartTime>vs&&a!==536870912&&(t.flags|=128,i=!0,Gn(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=gt(),e.sibling=null,a=Le.current,Y(Le,i?a&1|2:a&1),oe&&Ft(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),mr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&fs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(il),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(He),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Zy(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(He),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Le),null;case 4:return Ue(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),mr(),e!==null&&U(il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(He),null;case 25:return null;default:return null}}function yh(e,t){switch(Pu(t),t.tag){case 3:It(He),Ue();break;case 26:case 27:case 5:Si(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Le);break;case 10:It(t.type);break;case 22:case 23:jt(t),mr(),e!==null&&U(il);break;case 24:It(He)}}function Vn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var s=a.create,f=a.inst;l=s(),f.destroy=l}a=a.next}while(a!==i)}}catch(d){Se(t,t.return,d)}}function Ca(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var f=l.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,i=t;var x=a,C=d;try{C()}catch(R){Se(i,x,R)}}}l=l.next}while(l!==s)}}catch(R){Se(t,t.return,R)}}function ph(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{rd(t,a)}catch(l){Se(e,e.return,l)}}}function bh(e,t,a){a.props=ol(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Se(e,t,l)}}function Zn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Se(e,t,i)}}function Vt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Se(e,t,i)}else a.current=null}function xh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Se(e,e.return,i)}}function Xr(e,t,a){try{var l=e.stateNode;hp(l,e.type,a,t),l[rt]=t}catch(i){Se(e,e.return,i)}}function jh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function Kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Da(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Kt));else if(l!==4&&(l===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Jr(e,t,a),e=e.sibling;e!==null;)Jr(e,t,a),e=e.sibling}function ds(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ds(e,t,a),e=e.sibling;e!==null;)ds(e,t,a),e=e.sibling}function Sh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);et(t,l,a),t[Fe]=e,t[rt]=a}catch(s){Se(e,e.return,s)}}var la=!1,ke=!1,$r=!1,wh=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Xy(e,t){if(e=e.containerInfo,vc=Ds,e=Uf(e),Yu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var f=0,d=-1,x=-1,C=0,R=0,_=e,A=null;t:for(;;){for(var O;_!==a||i!==0&&_.nodeType!==3||(d=f+i),_!==s||l!==0&&_.nodeType!==3||(x=f+l),_.nodeType===3&&(f+=_.nodeValue.length),(O=_.firstChild)!==null;)A=_,_=O;for(;;){if(_===e)break t;if(A===a&&++C===i&&(d=f),A===s&&++R===l&&(x=f),(O=_.nextSibling)!==null)break;_=A,A=_.parentNode}_=O}a=d===-1||x===-1?null:{start:d,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(yc={focusedElem:e,selectionRange:a},Ds=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,i=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var G=ol(a.type,i);e=l.getSnapshotBeforeUpdate(G,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(I){Se(a,a.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)xc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function Nh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),l&4&&Vn(5,a);break;case 1:if(ia(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Se(a,a.return,f)}else{var i=ol(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Se(a,a.return,f)}}l&64&&ph(a),l&512&&Zn(a,a.return);break;case 3:if(ia(e,a),l&64&&(e=a.updateQueue,e!==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{rd(e,t)}catch(f){Se(a,a.return,f)}}break;case 27:t===null&&l&4&&Sh(a);case 26:case 5:ia(e,a),t===null&&l&4&&xh(a),l&512&&Zn(a,a.return);break;case 12:ia(e,a);break;case 31:ia(e,a),l&4&&Ah(e,a);break;case 13:ia(e,a),l&4&&zh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=tp.bind(null,a),jp(e,a))));break;case 22:if(l=a.memoizedState!==null||la,!l){t=t!==null&&t.memoizedState!==null||ke,i=la;var s=ke;la=l,(ke=t)&&!s?sa(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),la=i,ke=s}break;case 30:break;default:ia(e,a)}}function Eh(e){var t=e.alternate;t!==null&&(e.alternate=null,Eh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Re=null,ot=!1;function na(e,t,a){for(a=a.child;a!==null;)Ch(e,t,a),a=a.sibling}function Ch(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gn,a)}catch{}switch(a.tag){case 26:ke||Vt(a,t),na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ke||Vt(a,t);var l=Re,i=ot;Da(a.type)&&(Re=a.stateNode,ot=!1),na(e,t,a),ei(a.stateNode),Re=l,ot=i;break;case 5:ke||Vt(a,t);case 6:if(l=Re,i=ot,Re=null,na(e,t,a),Re=l,ot=i,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(a.stateNode)}catch(s){Se(a,t,s)}else try{Re.removeChild(a.stateNode)}catch(s){Se(a,t,s)}break;case 18:Re!==null&&(ot?(e=Re,p0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),an(e)):p0(Re,a.stateNode));break;case 4:l=Re,i=ot,Re=a.stateNode.containerInfo,ot=!0,na(e,t,a),Re=l,ot=i;break;case 0:case 11:case 14:case 15:Ca(2,a,t),ke||Ca(4,a,t),na(e,t,a);break;case 1:ke||(Vt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&bh(a,t,l)),na(e,t,a);break;case 21:na(e,t,a);break;case 22:ke=(l=ke)||a.memoizedState!==null,na(e,t,a),ke=l;break;default:na(e,t,a)}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{an(e)}catch(a){Se(t,t.return,a)}}}function zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{an(e)}catch(a){Se(t,t.return,a)}}function Ky(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wh),t;default:throw Error(o(435,e.tag))}}function hs(e,t){var a=Ky(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=ap.bind(null,e,l);l.then(i,i)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],s=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Da(d.type)){Re=d.stateNode,ot=!1;break e}break;case 5:Re=d.stateNode,ot=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Ch(s,f,i),Re=null,ot=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Oh(t,e),t=t.sibling}var Ht=null;function Oh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(Ca(3,e,e.return),Vn(3,e),Ca(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&(ke||a===null||Vt(a,a.return)),l&64&&la&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Ht;if(ft(t,e),dt(e),l&512&&(ke||a===null||Vt(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[pn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),et(s,l,a),s[Fe]=e,Je(s),l=s;break e;case"link":var f=O0("link","href",i).get(l+(a.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(d,1);break t}}s=i.createElement(l),et(s,l,a),i.head.appendChild(s);break;case"meta":if(f=O0("meta","content",i).get(l+(a.content||""))){for(d=0;d<f.length;d++)if(s=f[d],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(d,1);break t}}s=i.createElement(l),et(s,l,a),i.head.appendChild(s);break;default:throw Error(o(468,l))}s[Fe]=e,Je(s),l=s}e.stateNode=l}else T0(i,e.type,e.stateNode);else e.stateNode=z0(i,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?T0(i,e.type,e.stateNode):z0(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Xr(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&(ke||a===null||Vt(a,a.return)),a!==null&&l&4&&Xr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&(ke||a===null||Vt(a,a.return)),e.flags&32){i=e.stateNode;try{El(i,"")}catch(G){Se(e,e.return,G)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Xr(e,i,a!==null?a.memoizedProps:i)),l&1024&&($r=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(G){Se(e,e.return,G)}}break;case 3:if(Os=null,i=Ht,Ht=As(t.containerInfo),ft(t,e),Ht=i,dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{an(t.containerInfo)}catch(G){Se(e,e.return,G)}$r&&($r=!1,Th(e));break;case 4:l=Ht,Ht=As(e.stateNode.containerInfo),ft(t,e),dt(e),Ht=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,hs(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(gs=gt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,hs(e,l)));break;case 22:i=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,C=la,R=ke;if(la=C||i,ke=R||x,ft(t,e),ke=R,la=C,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||x||la||ke||fl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(s=x.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=x.stateNode;var _=x.memoizedProps.style,A=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(G){Se(x,x.return,G)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(G){Se(x,x.return,G)}}}else if(t.tag===18){if(a===null){x=t;try{var O=x.stateNode;i?b0(O,!0):b0(x.stateNode,!1)}catch(G){Se(x,x.return,G)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,hs(e,a))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,hs(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(jh(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,s=Kr(e);ds(e,s,i);break;case 5:var f=a.stateNode;a.flags&32&&(El(f,""),a.flags&=-33);var d=Kr(e);ds(e,d,f);break;case 3:case 4:var x=a.stateNode.containerInfo,C=Kr(e);Jr(e,C,x);break;default:throw Error(o(161))}}catch(R){Se(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nh(e,t.alternate,t),t=t.sibling}function fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ca(4,t,t.return),fl(t);break;case 1:Vt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&bh(t,t.return,a),fl(t);break;case 27:ei(t.stateNode);case 26:case 5:Vt(t,t.return),fl(t);break;case 22:t.memoizedState===null&&fl(t);break;case 30:fl(t);break;default:fl(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:sa(i,s,a),Vn(4,s);break;case 1:if(sa(i,s,a),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Se(l,l.return,C)}if(l=s,i=l.updateQueue,i!==null){var d=l.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)ud(x[i],d)}catch(C){Se(l,l.return,C)}}a&&f&64&&ph(s),Zn(s,s.return);break;case 27:Sh(s);case 26:case 5:sa(i,s,a),a&&l===null&&f&4&&xh(s),Zn(s,s.return);break;case 12:sa(i,s,a);break;case 31:sa(i,s,a),a&&f&4&&Ah(i,s);break;case 13:sa(i,s,a),a&&f&4&&zh(i,s);break;case 22:s.memoizedState===null&&sa(i,s,a),Zn(s,s.return);break;case 30:break;default:sa(i,s,a)}t=t.sibling}}function Fr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Mn(a))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mh(e,t,a,l),t=t.sibling}function Mh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,a,l),i&2048&&Vn(9,t);break;case 1:qt(e,t,a,l);break;case 3:qt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(i&2048){qt(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Se(t,t.return,x)}}else qt(e,t,a,l);break;case 31:qt(e,t,a,l);break;case 13:qt(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?qt(e,t,a,l):Xn(e,t):s._visibility&2?qt(e,t,a,l):(s._visibility|=2,Zl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Fr(f,t);break;case 24:qt(e,t,a,l),i&2048&&Wr(t.alternate,t);break;default:qt(e,t,a,l)}}function Zl(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,d=a,x=l,C=f.flags;switch(f.tag){case 0:case 11:case 15:Zl(s,f,d,x,i),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Zl(s,f,d,x,i):Xn(s,f):(R._visibility|=2,Zl(s,f,d,x,i)),i&&C&2048&&Fr(f.alternate,f);break;case 24:Zl(s,f,d,x,i),i&&C&2048&&Wr(f.alternate,f);break;default:Zl(s,f,d,x,i)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:Xn(a,l),i&2048&&Fr(l.alternate,l);break;case 24:Xn(a,l),i&2048&&Wr(l.alternate,l);break;default:Xn(a,l)}t=t.sibling}}var Kn=8192;function Xl(e,t,a){if(e.subtreeFlags&Kn)for(e=e.child;e!==null;)Rh(e,t,a),e=e.sibling}function Rh(e,t,a){switch(e.tag){case 26:Xl(e,t,a),e.flags&Kn&&e.memoizedState!==null&&Dp(a,Ht,e.memoizedState,e.memoizedProps);break;case 5:Xl(e,t,a);break;case 3:case 4:var l=Ht;Ht=As(e.stateNode.containerInfo),Xl(e,t,a),Ht=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Kn,Kn=16777216,Xl(e,t,a),Kn=l):Xl(e,t,a));break;default:Xl(e,t,a)}}function Dh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Uh(l,e)}Dh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_h(e),e=e.sibling}function _h(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Ca(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):Jn(e);break;default:Jn(e)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Uh(l,e)}Dh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ca(8,t,t.return),ms(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function Uh(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ca(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Mn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var i=l.sibling,s=l.return;if(Eh(l),l===a){$e=null;break e}if(i!==null){i.return=s,$e=i;break e}$e=s}}}var Jy={getCacheForType:function(e){var t=Ie(He),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(He).controller.signal}},$y=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ae=null,se=null,re=0,je=0,St=null,Aa=!1,Kl=!1,Ir=!1,ua=0,_e=0,za=0,dl=0,Pr=0,wt=0,Jl=0,$n=null,ht=null,ec=!1,gs=0,Lh=0,vs=1/0,ys=null,Oa=null,Ve=0,Ta=null,$l=null,ra=0,tc=0,ac=null,Bh=null,Fn=0,lc=null;function Nt(){return(ye&2)!==0&&re!==0?re&-re:T.T!==null?cc():Io()}function Hh(){if(wt===0)if((re&536870912)===0||oe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function mt(e,t,a){(e===Ae&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Fl(e,0),Ma(e,re,wt,!1)),yn(e,a),((ye&2)===0||e!==Ae)&&(e===Ae&&((ye&2)===0&&(dl|=a),_e===4&&Ma(e,re,wt,!1)),Zt(e))}function qh(e,t,a){if((ye&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),i=l?Iy(e,t):ic(e,t,!0),s=l;do{if(i===0){Kl&&!l&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Fy(a)){i=ic(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;i=$n;var x=d.current.memoizedState.isDehydrated;if(x&&(Fl(d,f).flags|=256),f=ic(d,f,!1),f!==2){if(Ir&&!x){d.errorRecoveryDisabledLanes|=s,dl|=s,i=4;break e}s=ht,ht=i,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fl(e,0),Ma(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ma(l,t,wt,!Aa);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=gs+300-gt(),10<i)){if(Ma(l,t,wt,!Aa),Ai(l,0,!0)!==0)break e;ra=t,l.timeoutHandle=v0(Qh.bind(null,l,a,ht,ys,ec,t,wt,dl,Jl,Aa,s,"Throttled",-0,0),i);break e}Qh(l,a,ht,ys,ec,t,wt,dl,Jl,Aa,s,null,-0,0)}}break}while(!0);Zt(e)}function Qh(e,t,a,l,i,s,f,d,x,C,R,_,A,O){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Rh(t,s,_);var G=(s&62914560)===s?gs-gt():(s&4194048)===s?Lh-gt():0;if(G=_p(_,G),G!==null){ra=s,e.cancelPendingCommit=G(Jh.bind(null,e,t,s,a,l,i,f,d,x,R,_,null,A,O)),Ma(e,s,f,!C);return}}Jh(e,t,s,a,l,i,f,d,x)}function Fy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],s=i.getSnapshot;i=i.value;try{if(!pt(s(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ma(e,t,a,l){t&=~Pr,t&=~dl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-yt(i),f=1<<s;l[s]=-1,i&=~f}a!==0&&$o(e,a,t)}function ps(){return(ye&6)===0?(Wn(0),!1):!0}function nc(){if(se!==null){if(je===0)var e=se.return;else e=se,Wt=ll=null,xr(e),Ql=null,Dn=0,e=se;for(;e!==null;)yh(e.alternate,e),e=e.return;se=null}}function Fl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,vp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ra=0,nc(),Ae=e,se=a=$t(e.current,null),re=t,je=0,St=null,Aa=!1,Kl=vn(e,t),Ir=!1,Jl=wt=Pr=dl=za=_e=0,ht=$n=null,ec=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-yt(l),s=1<<i;t|=e[i],l&=~s}return ua=t,qi(),a}function kh(e,t){ae=null,T.H=kn,t===ql||t===Ki?(t=ld(),je=3):t===rr?(t=ld(),je=4):je=t===Lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,se===null&&(_e=1,us(e,Ot(t,e.current)))}function Yh(){var e=xt.current;return e===null?!0:(re&4194048)===re?Dt===null:(re&62914560)===re||(re&536870912)!==0?e===Dt:!1}function Gh(){var e=T.H;return T.H=kn,e===null?kn:e}function Vh(){var e=T.A;return T.A=Jy,e}function bs(){_e=4,Aa||(re&4194048)!==re&&xt.current!==null||(Kl=!0),(za&134217727)===0&&(dl&134217727)===0||Ae===null||Ma(Ae,re,wt,!1)}function ic(e,t,a){var l=ye;ye|=2;var i=Gh(),s=Vh();(Ae!==e||re!==t)&&(ys=null,Fl(e,t)),t=!1;var f=_e;e:do try{if(je!==0&&se!==null){var d=se,x=St;switch(je){case 8:nc(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=je;if(je=0,St=null,Wl(e,d,x,C),a&&Kl){f=0;break e}break;default:C=je,je=0,St=null,Wl(e,d,x,C)}}Wy(),f=_e;break}catch(R){kh(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=ll=null,ye=l,T.H=i,T.A=s,se===null&&(Ae=null,re=0,qi()),f}function Wy(){for(;se!==null;)Zh(se)}function Iy(e,t){var a=ye;ye|=2;var l=Gh(),i=Vh();Ae!==e||re!==t?(ys=null,vs=gt()+500,Fl(e,t)):Kl=vn(e,t);e:do try{if(je!==0&&se!==null){t=se;var s=St;t:switch(je){case 1:je=0,St=null,Wl(e,t,s,1);break;case 2:case 9:if(td(s)){je=0,St=null,Xh(t);break}t=function(){je!==2&&je!==9||Ae!==e||(je=7),Zt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:td(s)?(je=0,St=null,Xh(t)):(je=0,St=null,Wl(e,t,s,7));break;case 5:var f=null;switch(se.tag){case 26:f=se.memoizedState;case 5:case 27:var d=se;if(f?M0(f):d.stateNode.complete){je=0,St=null;var x=d.sibling;if(x!==null)se=x;else{var C=d.return;C!==null?(se=C,xs(C)):se=null}break t}}je=0,St=null,Wl(e,t,s,5);break;case 6:je=0,St=null,Wl(e,t,s,6);break;case 8:nc(),_e=6;break e;default:throw Error(o(462))}}Py();break}catch(R){kh(e,R)}while(!0);return Wt=ll=null,T.H=l,T.A=i,ye=a,se!==null?0:(Ae=null,re=0,qi(),_e)}function Py(){for(;se!==null&&!S1();)Zh(se)}function Zh(e){var t=gh(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ch(a,t,t.pendingProps,t.type,void 0,re);break;case 11:t=ch(a,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:xr(t);default:yh(a,t),t=se=Vf(t,ua),t=gh(a,t,ua)}e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Wl(e,t,a,l){Wt=ll=null,xr(t),Ql=null,Dn=0;var i=t.return;try{if(ky(e,i,t,a,re)){_e=1,us(e,Ot(a,e.current)),se=null;return}}catch(s){if(i!==null)throw se=i,s;_e=1,us(e,Ot(a,e.current)),se=null;return}t.flags&32768?(oe||l===1?e=!0:Kl||(re&536870912)!==0?e=!1:(Aa=e=!0,(l===2||l===9||l===3||l===6)&&(l=xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kh(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Kh(t,Aa);return}e=t.return;var a=Vy(t.alternate,t,ua);if(a!==null){se=a;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);_e===0&&(_e=5)}function Kh(e,t){do{var a=Zy(e.alternate,e);if(a!==null){a.flags&=32767,se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=a}while(e!==null);_e=6,se=null}function Jh(e,t,a,l,i,s,f,d,x){e.cancelPendingCommit=null;do js();while(Ve!==0);if((ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Ku,R1(e,a,s,f,d,x),e===Ae&&(se=Ae=null,re=0),$l=t,Ta=e,ra=a,tc=s,ac=i,Bh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lp(wi,function(){return Ph(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,i=Q.p,Q.p=2,f=ye,ye|=4;try{Xy(e,t,a)}finally{ye=f,Q.p=i,T.T=l}}Ve=1,$h(),Fh(),Wh()}}function $h(){if(Ve===1){Ve=0;var e=Ta,t=$l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=Q.p;Q.p=2;var i=ye;ye|=4;try{Oh(t,e);var s=yc,f=Uf(e.containerInfo),d=s.focusedElem,x=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&_f(d.ownerDocument.documentElement,d)){if(x!==null&&Yu(d)){var C=x.start,R=x.end;if(R===void 0&&(R=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(R,d.value.length);else{var _=d.ownerDocument||document,A=_&&_.defaultView||window;if(A.getSelection){var O=A.getSelection(),G=d.textContent.length,I=Math.min(x.start,G),Ee=x.end===void 0?I:Math.min(x.end,G);!O.extend&&I>Ee&&(f=Ee,Ee=I,I=f);var w=Df(d,I),j=Df(d,Ee);if(w&&j&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var E=_.createRange();E.setStart(w.node,w.offset),O.removeAllRanges(),I>Ee?(O.addRange(E),O.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),O.addRange(E))}}}}for(_=[],O=d;O=O.parentNode;)O.nodeType===1&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var D=_[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ds=!!vc,yc=vc=null}finally{ye=i,Q.p=l,T.T=a}}e.current=t,Ve=2}}function Fh(){if(Ve===2){Ve=0;var e=Ta,t=$l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=Q.p;Q.p=2;var i=ye;ye|=4;try{Nh(e,t.alternate,t)}finally{ye=i,Q.p=l,T.T=a}}Ve=3}}function Wh(){if(Ve===4||Ve===3){Ve=0,w1();var e=Ta,t=$l,a=ra,l=Bh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,$l=Ta=null,Ih(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Oa=null),wu(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=T.T,i=Q.p,Q.p=2,T.T=null;try{for(var s=e.onRecoverableError,f=0;f<l.length;f++){var d=l[f];s(d.value,{componentStack:d.stack})}}finally{T.T=t,Q.p=i}}(ra&3)!==0&&js(),Zt(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===lc?Fn++:(Fn=0,lc=e):Fn=0,Wn(0)}}function Ih(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function js(){return $h(),Fh(),Wh(),Ph()}function Ph(){if(Ve!==5)return!1;var e=Ta,t=tc;tc=0;var a=wu(ra),l=T.T,i=Q.p;try{Q.p=32>a?32:a,T.T=null,a=ac,ac=null;var s=Ta,f=ra;if(Ve=0,$l=Ta=null,ra=0,(ye&6)!==0)throw Error(o(331));var d=ye;if(ye|=4,_h(s.current),Mh(s,s.current,f,a),ye=d,Wn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(gn,s)}catch{}return!0}finally{Q.p=i,T.T=l,Ih(e,t)}}function e0(e,t,a){t=Ot(a,t),t=Ur(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(yn(e,2),Zt(e))}function Se(e,t,a){if(e.tag===3)e0(e,e,a);else for(;t!==null;){if(t.tag===3){e0(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Oa===null||!Oa.has(l))){e=Ot(a,e),a=th(2),l=wa(t,a,2),l!==null&&(ah(a,l,t,e),yn(l,2),Zt(l));break}}t=t.return}}function sc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new $y;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(Ir=!0,i.add(a),e=ep.bind(null,e,t,a),t.then(e,e))}function ep(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ae===e&&(re&a)===a&&(_e===4||_e===3&&(re&62914560)===re&&300>gt()-gs?(ye&2)===0&&Fl(e,0):Pr|=a,Jl===re&&(Jl=0)),Zt(e)}function t0(e,t){t===0&&(t=Jo()),e=el(e,t),e!==null&&(yn(e,t),Zt(e))}function tp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),t0(e,a)}function ap(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),t0(e,a)}function lp(e,t){return bu(e,t)}var Ss=null,Il=null,uc=!1,ws=!1,rc=!1,Ra=0;function Zt(e){e!==Il&&e.next===null&&(Il===null?Ss=Il=e:Il=Il.next=e),ws=!0,uc||(uc=!0,ip())}function Wn(e,t){if(!rc&&ws){rc=!0;do for(var a=!1,l=Ss;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var f=l.suspendedLanes,d=l.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=i&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,i0(l,s))}else s=re,s=Ai(l,l===Ae?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||vn(l,s)||(a=!0,i0(l,s));l=l.next}while(a);rc=!1}}function np(){a0()}function a0(){ws=uc=!1;var e=0;Ra!==0&&gp()&&(e=Ra);for(var t=gt(),a=null,l=Ss;l!==null;){var i=l.next,s=l0(l,t);s===0?(l.next=null,a===null?Ss=i:a.next=i,i===null&&(Il=a)):(a=l,(e!==0||(s&3)!==0)&&(ws=!0)),l=i}Ve!==0&&Ve!==5||Wn(e),Ra!==0&&(Ra=0)}function l0(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-yt(s),d=1<<f,x=i[f];x===-1?((d&a)===0||(d&l)!==0)&&(i[f]=M1(d,t)):x<=t&&(e.expiredLanes|=d),s&=~d}if(t=Ae,a=re,a=Ai(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||vn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&xu(l),wu(a)){case 2:case 8:a=Xo;break;case 32:a=wi;break;case 268435456:a=Ko;break;default:a=wi}return l=n0.bind(null,e),a=bu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&xu(l),e.callbackPriority=2,e.callbackNode=null,2}function n0(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(js()&&e.callbackNode!==a)return null;var l=re;return l=Ai(e,e===Ae?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(qh(e,l,t),l0(e,gt()),e.callbackNode!=null&&e.callbackNode===a?n0.bind(null,e):null)}function i0(e,t){if(js())return null;qh(e,t,!0)}function ip(){yp(function(){(ye&6)!==0?bu(Zo,np):a0()})}function cc(){if(Ra===0){var e=Bl;e===0&&(e=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Ra=e}return Ra}function s0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function u0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function sp(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var s=s0((i[rt]||null).action),f=l.submitter;f&&(t=(t=f[rt]||null)?s0(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var d=new Ui("action","action",null,l,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ra!==0){var x=f?u0(i,f):new FormData(i);Or(a,{pending:!0,data:x,method:i.method,action:s},null,x)}}else typeof s=="function"&&(d.preventDefault(),x=f?u0(i,f):new FormData(i),Or(a,{pending:!0,data:x,method:i.method,action:s},s,x))},currentTarget:i}]})}}for(var oc=0;oc<Xu.length;oc++){var fc=Xu[oc],up=fc.toLowerCase(),rp=fc[0].toUpperCase()+fc.slice(1);Bt(up,"on"+rp)}Bt(Hf,"onAnimationEnd"),Bt(qf,"onAnimationIteration"),Bt(Qf,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Ny,"onTransitionRun"),Bt(Ey,"onTransitionStart"),Bt(Cy,"onTransitionCancel"),Bt(kf,"onTransitionEnd"),wl("onMouseEnter",["mouseout","mouseover"]),wl("onMouseLeave",["mouseout","mouseover"]),wl("onPointerEnter",["pointerout","pointerover"]),wl("onPointerLeave",["pointerout","pointerover"]),Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),cp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function r0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var f=l.length-1;0<=f;f--){var d=l[f],x=d.instance,C=d.currentTarget;if(d=d.listener,x!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){Hi(R)}i.currentTarget=null,s=x}else for(f=0;f<l.length;f++){if(d=l[f],x=d.instance,C=d.currentTarget,d=d.listener,x!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){Hi(R)}i.currentTarget=null,s=x}}}}function ue(e,t){var a=t[Nu];a===void 0&&(a=t[Nu]=new Set);var l=e+"__bubble";a.has(l)||(c0(t,e,2,!1),a.add(l))}function dc(e,t,a){var l=0;t&&(l|=4),c0(a,e,l,t)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Ns]){e[Ns]=!0,tf.forEach(function(a){a!=="selectionchange"&&(cp.has(a)||dc(a,!1,e),dc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ns]||(t[Ns]=!0,dc("selectionchange",!1,t))}}function c0(e,t,a,l){switch(H0(t)){case 2:var i=Bp;break;case 8:i=Hp;break;default:i=zc}a=i.bind(null,t,a,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function mc(e,t,a,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var d=l.stateNode.containerInfo;if(d===i)break;if(f===4)for(f=l.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;d!==null;){if(f=xl(d),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){l=s=f;continue e}d=d.parentNode}}l=l.return}mf(function(){var C=s,R=Mu(a),_=[];e:{var A=Yf.get(e);if(A!==void 0){var O=Ui,G=e;switch(e){case"keypress":if(Di(a)===0)break e;case"keydown":case"keyup":O=ay;break;case"focusin":G="focus",O=Bu;break;case"focusout":G="blur",O=Bu;break;case"beforeblur":case"afterblur":O=Bu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=V1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=iy;break;case Hf:case qf:case Qf:O=K1;break;case kf:O=uy;break;case"scroll":case"scrollend":O=Y1;break;case"wheel":O=cy;break;case"copy":case"cut":case"paste":O=$1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=bf;break;case"toggle":case"beforetoggle":O=fy}var I=(t&4)!==0,Ee=!I&&(e==="scroll"||e==="scrollend"),w=I?A!==null?A+"Capture":null:A;I=[];for(var j=C,E;j!==null;){var D=j;if(E=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||E===null||w===null||(D=xn(j,w),D!=null&&I.push(Pn(j,D,E))),Ee)break;j=j.return}0<I.length&&(A=new O(A,G,null,a,R),_.push({event:A,listeners:I}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",A&&a!==Tu&&(G=a.relatedTarget||a.fromElement)&&(xl(G)||G[bl]))break e;if((O||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,O?(G=a.relatedTarget||a.toElement,O=C,G=G?xl(G):null,G!==null&&(Ee=v(G),I=G.tag,G!==Ee||I!==5&&I!==27&&I!==6)&&(G=null)):(O=null,G=C),O!==G)){if(I=yf,D="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(I=bf,D="onPointerLeave",w="onPointerEnter",j="pointer"),Ee=O==null?A:bn(O),E=G==null?A:bn(G),A=new I(D,j+"leave",O,a,R),A.target=Ee,A.relatedTarget=E,D=null,xl(R)===C&&(I=new I(w,j+"enter",G,a,R),I.target=E,I.relatedTarget=Ee,D=I),Ee=D,O&&G)t:{for(I=op,w=O,j=G,E=0,D=w;D;D=I(D))E++;D=0;for(var F=j;F;F=I(F))D++;for(;0<E-D;)w=I(w),E--;for(;0<D-E;)j=I(j),D--;for(;E--;){if(w===j||j!==null&&w===j.alternate){I=w;break t}w=I(w),j=I(j)}I=null}else I=null;O!==null&&o0(_,A,O,I,!1),G!==null&&Ee!==null&&o0(_,Ee,G,I,!0)}}e:{if(A=C?bn(C):window,O=A.nodeName&&A.nodeName.toLowerCase(),O==="select"||O==="input"&&A.type==="file")var me=Af;else if(Ef(A))if(zf)me=jy;else{me=by;var X=py}else O=A.nodeName,!O||O.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?C&&Ou(C.elementType)&&(me=Af):me=xy;if(me&&(me=me(e,C))){Cf(_,me,a,R);break e}X&&X(e,A,C),e==="focusout"&&C&&A.type==="number"&&C.memoizedProps.value!=null&&zu(A,"number",A.value)}switch(X=C?bn(C):window,e){case"focusin":(Ef(X)||X.contentEditable==="true")&&(Ol=X,Gu=C,zn=null);break;case"focusout":zn=Gu=Ol=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Lf(_,a,R);break;case"selectionchange":if(wy)break;case"keydown":case"keyup":Lf(_,a,R)}var le;if(qu)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else zl?wf(e,a)&&(ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ce="onCompositionStart");ce&&(xf&&a.locale!=="ko"&&(zl||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&zl&&(le=gf()):(va=R,_u="value"in va?va.value:va.textContent,zl=!0)),X=Es(C,ce),0<X.length&&(ce=new pf(ce,e,null,a,R),_.push({event:ce,listeners:X}),le?ce.data=le:(le=Nf(a),le!==null&&(ce.data=le)))),(le=hy?my(e,a):gy(e,a))&&(ce=Es(C,"onBeforeInput"),0<ce.length&&(X=new pf("onBeforeInput","beforeinput",null,a,R),_.push({event:X,listeners:ce}),X.data=le)),sp(_,e,C,a,R)}r0(_,t)})}function Pn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Es(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=xn(e,a),i!=null&&l.unshift(Pn(e,i,s)),i=xn(e,t),i!=null&&l.push(Pn(e,i,s))),e.tag===3)return l;e=e.return}return[]}function op(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function o0(e,t,a,l,i){for(var s=t._reactName,f=[];a!==null&&a!==l;){var d=a,x=d.alternate,C=d.stateNode;if(d=d.tag,x!==null&&x===l)break;d!==5&&d!==26&&d!==27||C===null||(x=C,i?(C=xn(a,s),C!=null&&f.unshift(Pn(a,C,x))):i||(C=xn(a,s),C!=null&&f.push(Pn(a,C,x)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var fp=/\r\n?/g,dp=/\u0000|\uFFFD/g;function f0(e){return(typeof e=="string"?e:""+e).replace(fp,`
9
- `).replace(dp,"")}function d0(e,t){return t=f0(t),f0(e)===t}function Ne(e,t,a,l,i,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||El(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&El(e,""+l);break;case"className":Oi(e,"class",l);break;case"tabIndex":Oi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,a,l);break;case"style":df(e,l,s);break;case"data":if(t!=="object"){Oi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Mi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.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 s=="function"&&(a==="formAction"?(t!=="input"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Mi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Kt);break;case"onScroll":l!=null&&ue("scroll",e);break;case"onScrollEnd":l!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Mi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ue("beforetoggle",e),ue("toggle",e),zi(e,"popover",l);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":zi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Q1.get(a)||a,zi(e,a,l))}}function gc(e,t,a,l,i,s){switch(a){case"style":df(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?El(e,l):(typeof l=="number"||typeof l=="bigint")&&El(e,""+l);break;case"onScroll":l!=null&&ue("scroll",e);break;case"onScrollEnd":l!=null&&ue("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!af.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),s=e[rt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):zi(e,a,l)}}}function et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var l=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var f=a[s];if(f!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,s,f,a,null)}}i&&Ne(e,t,"srcSet",a.srcSet,a,null),l&&Ne(e,t,"src",a.src,a,null);return;case"input":ue("invalid",e);var d=s=f=i=null,x=null,C=null;for(l in a)if(a.hasOwnProperty(l)){var R=a[l];if(R!=null)switch(l){case"name":i=R;break;case"type":f=R;break;case"checked":x=R;break;case"defaultChecked":C=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ne(e,t,l,R,a,null)}}rf(e,s,d,x,C,f,i,!1);return;case"select":ue("invalid",e),l=f=s=null;for(i in a)if(a.hasOwnProperty(i)&&(d=a[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":l=d;default:Ne(e,t,i,d,a,null)}t=s,a=f,e.multiple=!!l,t!=null?Nl(e,!!l,t,!1):a!=null&&Nl(e,!!l,a,!0);return;case"textarea":ue("invalid",e),s=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(d=a[f],d!=null))switch(f){case"value":l=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Ne(e,t,f,d,a,null)}of(e,l,i,s);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(l=a[x],l!=null))switch(x){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ne(e,t,x,l,a,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in a)if(a.hasOwnProperty(C)&&(l=a[C],l!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,C,l,a,null)}return;default:if(Ou(t)){for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!==void 0&&gc(e,t,R,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&Ne(e,t,d,l,a,null))}function hp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,f=null,d=null,x=null,C=null,R=null;for(O in a){var _=a[O];if(a.hasOwnProperty(O)&&_!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":x=_;default:l.hasOwnProperty(O)||Ne(e,t,O,null,l,_)}}for(var A in l){var O=l[A];if(_=a[A],l.hasOwnProperty(A)&&(O!=null||_!=null))switch(A){case"type":s=O;break;case"name":i=O;break;case"checked":C=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==_&&Ne(e,t,A,O,l,_)}}Au(e,f,d,x,C,R,s,i);return;case"select":O=f=d=A=null;for(s in a)if(x=a[s],a.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":O=x;default:l.hasOwnProperty(s)||Ne(e,t,s,null,l,x)}for(i in l)if(s=l[i],x=a[i],l.hasOwnProperty(i)&&(s!=null||x!=null))switch(i){case"value":A=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==x&&Ne(e,t,i,s,l,x)}t=d,a=f,l=O,A!=null?Nl(e,!!a,A,!1):!!l!=!!a&&(t!=null?Nl(e,!!a,t,!0):Nl(e,!!a,a?[]:"",!1));return;case"textarea":O=A=null;for(d in a)if(i=a[d],a.hasOwnProperty(d)&&i!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ne(e,t,d,null,l,i)}for(f in l)if(i=l[f],s=a[f],l.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":A=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ne(e,t,f,i,l,s)}cf(e,A,O);return;case"option":for(var G in a)if(A=a[G],a.hasOwnProperty(G)&&A!=null&&!l.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Ne(e,t,G,null,l,A)}for(x in l)if(A=l[x],O=a[x],l.hasOwnProperty(x)&&A!==O&&(A!=null||O!=null))switch(x){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ne(e,t,x,A,l,O)}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 I in a)A=a[I],a.hasOwnProperty(I)&&A!=null&&!l.hasOwnProperty(I)&&Ne(e,t,I,null,l,A);for(C in l)if(A=l[C],O=a[C],l.hasOwnProperty(C)&&A!==O&&(A!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:Ne(e,t,C,A,l,O)}return;default:if(Ou(t)){for(var Ee in a)A=a[Ee],a.hasOwnProperty(Ee)&&A!==void 0&&!l.hasOwnProperty(Ee)&&gc(e,t,Ee,void 0,l,A);for(R in l)A=l[R],O=a[R],!l.hasOwnProperty(R)||A===O||A===void 0&&O===void 0||gc(e,t,R,A,l,O);return}}for(var w in a)A=a[w],a.hasOwnProperty(w)&&A!=null&&!l.hasOwnProperty(w)&&Ne(e,t,w,null,l,A);for(_ in l)A=l[_],O=a[_],!l.hasOwnProperty(_)||A===O||A==null&&O==null||Ne(e,t,_,A,l,O)}function h0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],s=i.transferSize,f=i.initiatorType,d=i.duration;if(s&&d&&h0(f)){for(f=0,d=i.responseEnd,l+=1;l<a.length;l++){var x=a[l],C=x.startTime;if(C>d)break;var R=x.transferSize,_=x.initiatorType;R&&h0(_)&&(x=x.responseEnd,f+=R*(x<d?1:(d-C)/(x-C)))}if(--l,t+=8*(s+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vc=null,yc=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function m0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bc=null;function gp(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var v0=typeof setTimeout=="function"?setTimeout:void 0,vp=typeof clearTimeout=="function"?clearTimeout:void 0,y0=typeof Promise=="function"?Promise:void 0,yp=typeof queueMicrotask=="function"?queueMicrotask:typeof y0<"u"?function(e){return y0.resolve(null).then(e).catch(pp)}:v0;function pp(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function p0(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),an(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ei(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ei(a);for(var s=a.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=f}}else a==="body"&&ei(e.ownerDocument.body);a=i}while(a);an(t)}function b0(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function xc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":xc(a),Eu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function bp(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[pn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function xp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=_t(e.nextSibling),e===null))return null;return e}function x0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function _t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wc=null;function j0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return _t(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function S0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function w0(e,t,a){switch(t=Cs(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Ut=new Map,N0=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ca=Q.d;Q.d={f:Sp,r:wp,D:Np,C:Ep,L:Cp,m:Ap,X:Op,S:zp,M:Tp};function Sp(){var e=ca.f(),t=ps();return e||t}function wp(e){var t=jl(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):ca.r(e)}var Pl=typeof document>"u"?null:document;function E0(e,t,a){var l=Pl;if(l&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),N0.has(i)||(N0.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function Np(e){ca.D(e),E0("dns-prefetch",e,null)}function Ep(e,t){ca.C(e,t),E0("preconnect",e,t)}function Cp(e,t,a){ca.L(e,t,a);var l=Pl;if(l&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+At(a.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var s=i;switch(t){case"style":s=en(e);break;case"script":s=tn(e)}Ut.has(s)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ut.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(ti(s))||t==="script"&&l.querySelector(ai(s))||(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function Ap(e,t){ca.m(e,t);var a=Pl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(l)+'"][href="'+At(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tn(e)}if(!Ut.has(s)&&(e=z({rel:"modulepreload",href:e},t),Ut.set(s,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ai(s)))return}l=a.createElement("link"),et(l,"link",e),Je(l),a.head.appendChild(l)}}}function zp(e,t,a){ca.S(e,t,a);var l=Pl;if(l&&e){var i=Sl(l).hoistableStyles,s=en(e);t=t||"default";var f=i.get(s);if(!f){var d={loading:0,preload:null};if(f=l.querySelector(ti(s)))d.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ut.get(s))&&Nc(e,a);var x=f=l.createElement("link");Je(x),et(x,"link",e),x._p=new Promise(function(C,R){x.onload=C,x.onerror=R}),x.addEventListener("load",function(){d.loading|=1}),x.addEventListener("error",function(){d.loading|=2}),d.loading|=4,zs(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:d},i.set(s,f)}}}function Op(e,t){ca.X(e,t);var a=Pl;if(a&&e){var l=Sl(a).hoistableScripts,i=tn(e),s=l.get(i);s||(s=a.querySelector(ai(i)),s||(e=z({src:e,async:!0},t),(t=Ut.get(i))&&Ec(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Tp(e,t){ca.M(e,t);var a=Pl;if(a&&e){var l=Sl(a).hoistableScripts,i=tn(e),s=l.get(i);s||(s=a.querySelector(ai(i)),s||(e=z({src:e,async:!0,type:"module"},t),(t=Ut.get(i))&&Ec(e,t),s=a.createElement("script"),Je(s),et(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function C0(e,t,a,l){var i=(i=ie.current)?As(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=en(a.href),a=Sl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=en(a.href);var s=Sl(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ti(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Ut.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ut.set(e,a),s||Mp(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(a),a=Sl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function en(e){return'href="'+At(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function A0(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Mp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),et(t,"link",a),Je(t),e.head.appendChild(t))}function tn(e){return'[src="'+At(e)+'"]'}function ai(e){return"script[async]"+e}function z0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var i=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),et(l,"style",i),zs(l,a.precedence,e),t.instance=l;case"stylesheet":i=en(a.href);var s=e.querySelector(ti(i));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;l=A0(a),(i=Ut.get(i))&&Nc(l,i),s=(e.ownerDocument||e).createElement("link"),Je(s);var f=s;return f._p=new Promise(function(d,x){f.onload=d,f.onerror=x}),et(s,"link",l),t.state.loading|=4,zs(s,a.precedence,e),t.instance=s;case"script":return s=tn(a.src),(i=e.querySelector(ai(s)))?(t.instance=i,Je(i),i):(l=a,(i=Ut.get(s))&&(l=z({},a),Ec(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),et(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,zs(l,a.precedence,e));return t.instance}function zs(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,f=0;f<l.length;f++){var d=l[f];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function O0(e,t,a){if(Os===null){var l=new Map,i=Os=new Map;i.set(a,l)}else i=Os,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var s=a[i];if(!(s[pn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var d=l.get(f);d?d.push(s):l.set(f,[s])}}return l}function T0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Rp(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function M0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=en(l.href),s=t.querySelector(ti(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Je(s);return}s=t.ownerDocument||t,l=A0(l),(i=Ut.get(i))&&Nc(l,i),s=s.createElement("link"),Je(s);var f=s;f._p=new Promise(function(d,x){f.onload=d,f.onerror=x}),et(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ts.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Cc=0;function _p(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,t.forEach(Up,e),Ms=null,Ts.call(e))}function Up(e,t){if(!(t.state.loading&4)){var a=Ms.get(e);if(a)var l=a.get(null);else{a=new Map,Ms.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),s=a.get(f)||l,s===l&&a.set(null,i),a.set(f,i),this.count++,l=Ts.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var li={$$typeof:k,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Lp(e,t,a,l,i,s,f,d,x){this.tag=1,this.containerInfo=e,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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function R0(e,t,a,l,i,s,f,d,x,C,R,_){return e=new Lp(e,t,a,f,x,C,R,_,d),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=ir(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},cr(s),e}function D0(e){return e?(e=Rl,e):Rl}function _0(e,t,a,l,i,s){i=D0(i),l.context===null?l.context=i:l.pendingContext=i,l=Sa(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=wa(e,l,t),a!==null&&(mt(a,e,t),Un(a,e,t))}function U0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ac(e,t){U0(e,t),(e=e.alternate)&&U0(e,t)}function L0(e){if(e.tag===13||e.tag===31){var t=el(e,67108864);t!==null&&mt(t,e,67108864),Ac(e,67108864)}}function B0(e){if(e.tag===13||e.tag===31){var t=Nt();t=Su(t);var a=el(e,t);a!==null&&mt(a,e,t),Ac(e,t)}}var Ds=!0;function Bp(e,t,a,l){var i=T.T;T.T=null;var s=Q.p;try{Q.p=2,zc(e,t,a,l)}finally{Q.p=s,T.T=i}}function Hp(e,t,a,l){var i=T.T;T.T=null;var s=Q.p;try{Q.p=8,zc(e,t,a,l)}finally{Q.p=s,T.T=i}}function zc(e,t,a,l){if(Ds){var i=Oc(l);if(i===null)mc(e,t,l,_s,a),q0(e,l);else if(Qp(i,e,t,a,l))l.stopPropagation();else if(q0(e,l),t&4&&-1<qp.indexOf(e)){for(;i!==null;){var s=jl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=$a(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var x=1<<31-yt(f);d.entanglements[1]|=x,f&=~x}Zt(s),(ye&6)===0&&(vs=gt()+500,Wn(0))}}break;case 31:case 13:d=el(s,2),d!==null&&mt(d,s,2),ps(),Ac(s,2)}if(s=Oc(l),s===null&&mc(e,t,l,_s,a),s===i)break;i=s}i!==null&&l.stopPropagation()}else mc(e,t,l,null,a)}}function Oc(e){return e=Mu(e),Tc(e)}var _s=null;function Tc(e){if(_s=null,e=xl(e),e!==null){var t=v(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=g(t),e!==null)return e;e=null}else if(a===31){if(e=y(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function H0(e){switch(e){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(N1()){case Zo:return 2;case Xo:return 8;case wi:case E1:return 32;case Ko:return 268435456;default:return 32}default:return 32}}var Mc=!1,_a=null,Ua=null,La=null,ni=new Map,ii=new Map,Ba=[],qp="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 q0(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":La=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,a,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=jl(t),t!==null&&L0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Qp(e,t,a,l,i){switch(t){case"focusin":return _a=si(_a,e,t,a,l,i),!0;case"dragenter":return Ua=si(Ua,e,t,a,l,i),!0;case"mouseover":return La=si(La,e,t,a,l,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,si(ni.get(s)||null,e,t,a,l,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,si(ii.get(s)||null,e,t,a,l,i)),!0}return!1}function Q0(e){var t=xl(e.target);if(t!==null){var a=v(t);if(a!==null){if(t=a.tag,t===13){if(t=g(a),t!==null){e.blockedOn=t,Po(e.priority,function(){B0(a)});return}}else if(t===31){if(t=y(a),t!==null){e.blockedOn=t,Po(e.priority,function(){B0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Oc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Tu=l,a.target.dispatchEvent(l),Tu=null}else return t=jl(a),t!==null&&L0(t),e.blockedOn=a,!1;t.shift()}return!0}function k0(e,t,a){Us(e)&&a.delete(t)}function kp(){Mc=!1,_a!==null&&Us(_a)&&(_a=null),Ua!==null&&Us(Ua)&&(Ua=null),La!==null&&Us(La)&&(La=null),ni.forEach(k0),ii.forEach(k0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kp)))}var Bs=null;function Y0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Tc(l||a)===null)continue;break}var s=jl(a);s!==null&&(e.splice(t,3),t-=3,Or(s,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function an(e){function t(x){return Ls(x,e)}_a!==null&&Ls(_a,e),Ua!==null&&Ls(Ua,e),La!==null&&Ls(La,e),ni.forEach(t),ii.forEach(t);for(var a=0;a<Ba.length;a++){var l=Ba[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Q0(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],s=a[l+1],f=i[rt]||null;if(typeof s=="function")f||Y0(a);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[rt]||null)d=f.formAction;else if(Tc(i)!==null)continue}else d=f.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),Y0(a)}}}function G0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Rc(e){this._internalRoot=e}Hs.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Nt();_0(a,l,e,t,null,null)},Hs.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_0(e.current,2,null,e,null,null),ps(),t[bl]=null}};function Hs(e){this._internalRoot=e}Hs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Io();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Q0(e)}};var V0=u.version;if(V0!=="19.2.1")throw Error(o(527,V0,"19.2.1"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Yp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qs.isDisabled&&qs.supportsFiber)try{gn=qs.inject(Yp),vt=qs}catch{}}return sn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var a=!1,l="",i=Wd,s=Id,f=Pd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=R0(e,1,!1,null,null,a,l,null,i,s,f,G0),e[bl]=t.current,hc(e),new Rc(t)},sn.hydrateRoot=function(e,t,a){if(!h(e))throw Error(o(299));var l=!1,i="",s=Wd,f=Id,d=Pd,x=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=R0(e,1,!0,t,a??null,l,i,x,s,f,d,G0),t.context=D0(null),a=t.current,l=Nt(),l=Su(l),i=Sa(l),i.callback=null,wa(a,i,l),a=l,t.current.lanes=a,yn(t,a),Zt(t),e[bl]=t.current,hc(e),new Hs(t)},sn.version="19.2.1",sn}var ho;function Um(){if(ho)return Is.exports;ho=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Is.exports=_m(),Is.exports}var Lm=Um();const Bm=Dc(Lm);function Hm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const qm=m.forwardRef(Hm);function Qm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const km=m.forwardRef(Qm);function Ym({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const Gm=m.forwardRef(Ym);function Vm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const fa=m.forwardRef(Vm);function Zm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const mo=m.forwardRef(Zm);function Xm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const Km=m.forwardRef(Xm);function Jm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const $m=m.forwardRef(Jm);function Fm({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Wm=m.forwardRef(Fm);function Im({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Pm=m.forwardRef(Im);function eg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const tg=m.forwardRef(eg);function ag({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const lg=m.forwardRef(ag);function ng({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ya=m.forwardRef(ng);function ig({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const go=m.forwardRef(ig);function sg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const au=m.forwardRef(sg);function ug({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const rg=m.forwardRef(ug);function cg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const lu=m.forwardRef(cg);function og({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const fi=m.forwardRef(og);function fg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const dg=m.forwardRef(fg);function hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const nu=m.forwardRef(hg);function mg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const gg=m.forwardRef(mg);function vg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const da=m.forwardRef(vg);function yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const un=m.forwardRef(yg);function pg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const bg=m.forwardRef(pg);function xg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const jg=m.forwardRef(xg);function Sg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const wg=m.forwardRef(Sg);function Ng({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Eg=m.forwardRef(Ng);function Cg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ag=m.forwardRef(Cg);function zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const iu=m.forwardRef(zg);function Og({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const vo=m.forwardRef(Og);function Tg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Mg=m.forwardRef(Tg);function Rg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Dg=m.forwardRef(Rg);function _g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const su=m.forwardRef(_g);function Ug({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const yo=m.forwardRef(Ug);function Lg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const uu=m.forwardRef(Lg);function Bg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const di=m.forwardRef(Bg);function Hg(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,h,v,g=[],y="",b=n.split("/");for(b[0]||b.shift();h=b.shift();)c=h[0],c==="*"?(g.push(c),y+=h[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=h.indexOf("?",1),v=h.indexOf(".",1),g.push(h.substring(1,~o?o:~v?v:h.length)),y+=~o&&!~v?"(?:/([^/]+?))?":"/([^/]+?)",~v&&(y+=(~o?"?":"")+"\\"+h.substring(v))):y+="/"+h;return{keys:g,pattern:new RegExp("^"+y+(u?"(?=$|/)":"/?$"),"i")}}var ru={exports:{}},cu={};var po;function qg(){if(po)return cu;po=1;var n=oi();function u(z,L){return z===L&&(z!==0||1/z===1/L)||z!==z&&L!==L}var c=typeof Object.is=="function"?Object.is:u,o=n.useState,h=n.useEffect,v=n.useLayoutEffect,g=n.useDebugValue;function y(z,L){var V=L(),B=o({inst:{value:V,getSnapshot:L}}),M=B[0].inst,q=B[1];return v(function(){M.value=V,M.getSnapshot=L,b(M)&&q({inst:M})},[z,V,L]),h(function(){return b(M)&&q({inst:M}),z(function(){b(M)&&q({inst:M})})},[z]),g(V),V}function b(z){var L=z.getSnapshot;z=z.value;try{var V=L();return!c(z,V)}catch{return!0}}function p(z,L){return L()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return cu.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:N,cu}var bo;function Qg(){return bo||(bo=1,ru.exports=qg()),ru.exports}var kg=Qg();const Yg=pm.useInsertionEffect,Gg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vg=Yg||Gg,xo=n=>{const u=m.useRef([n,(...c)=>u[0](...c)]).current;return Vg(()=>{u[0]=n}),u[1]},Zg="popstate",ou="pushState",fu="replaceState",jo=[Zg,ou,fu,"hashchange"],Xg=n=>{for(const u of jo)addEventListener(u,n);return()=>{for(const u of jo)removeEventListener(u,n)}},So=(n,u)=>kg.useSyncExternalStore(Xg,n,u),wo=()=>location.search,Kg=({ssrSearch:n}={})=>So(wo,n!=null?()=>n:wo),No=()=>location.pathname,Jg=({ssrPath:n}={})=>So(No,n!=null?()=>n:No),$g=(n,{replace:u=!1,state:c=null}={})=>history[u?fu:ou](c,"",n),Fg=(n={})=>[Jg(n),$g],Eo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Eo]>"u"){for(const n of[ou,fu]){const u=history[n];history[n]=function(){const c=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Eo,{value:!0})}const Wg=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",Co=(n="")=>n==="/"?"":n,Ig=(n,u)=>n[0]==="~"?n.slice(1):Co(u)+n,Pg=(n="",u)=>Wg(Ao(Co(n)),Ao(u)),Ao=n=>{try{return decodeURI(n)}catch{return n}},zo={hook:Fg,searchHook:Kg,parser:Hg,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},Oo=m.createContext(zo),gl=()=>m.useContext(Oo),To={},Mo=m.createContext(To),ev=()=>m.useContext(Mo),hi=n=>{const[u,c]=n.hook(n);return[Pg(n.base,u),xo((o,h)=>c(Ig(o,n.base),h))]},mi=()=>hi(gl()),du=(n,u,c,o)=>{const{pattern:h,keys:v}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),g=h.exec(c)||[],[y,...b]=g;return y!==void 0?[!0,(()=>{const p=v!==!1?Object.fromEntries(v.map((z,L)=>[z,b[L]])):g.groups;let N={...b};return p&&Object.assign(N,p),N})(),...o?[y]:[]]:[!1,null]},tv=n=>du(gl().parser,n,mi()[0]),av=({children:n,...u})=>{const c=gl(),o=u.hook?zo:c;let h=o;const[v,g=u.ssrSearch??""]=u.ssrPath?.split("?")??[];v&&(u.ssrSearch=g,u.ssrPath=v),u.hrefs=u.hrefs??u.hook?.hrefs,u.searchHook=u.searchHook??u.hook?.searchHook;let y=m.useRef({}),b=y.current,p=b;for(let N in o){const z=N==="base"?o[N]+(u[N]??""):u[N]??o[N];b===p&&z!==p[N]&&(y.current=p={...p}),p[N]=z,(z!==o[N]||z!==h[N])&&(h=p)}return m.createElement(Oo.Provider,{value:h,children:n})},Ro=({children:n,component:u},c)=>u?m.createElement(u,{params:c}):typeof n=="function"?n(c):n,lv=n=>{let u=m.useRef(To);const c=u.current;return u.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,h])=>h!==c[o])?n:c},vl=({path:n,nest:u,match:c,...o})=>{const h=gl(),[v]=hi(h),[g,y,b]=c??du(h.parser,n,v,u),p=lv({...ev(),...y});if(!g)return null;const N=b?m.createElement(av,{base:b},Ro(o,p)):Ro(o,p);return m.createElement(Mo.Provider,{value:p,children:N})};m.forwardRef((n,u)=>{const c=gl(),[o,h]=hi(c),{to:v="",href:g=v,onClick:y,asChild:b,children:p,className:N,replace:z,state:L,...V}=n,B=xo(q=>{q.ctrlKey||q.metaKey||q.altKey||q.shiftKey||q.button!==0||(y?.(q),q.defaultPrevented||(q.preventDefault(),h(g,n)))}),M=c.hrefs(g[0]==="~"?g.slice(1):c.base+g,c);return b&&m.isValidElement(p)?m.cloneElement(p,{onClick:B,href:M}):m.createElement("a",{...V,onClick:B,href:M,className:N?.call?N(o===g):N,children:p,ref:u})});const Do=n=>Array.isArray(n)?n.flatMap(u=>Do(u&&u.type===m.Fragment?u.props.children:u)):[n],_o=({children:n,location:u})=>{const c=gl(),[o]=hi(c);for(const h of Do(n)){let v=0;if(m.isValidElement(h)&&(v=du(c.parser,h.props.path,u||o,h.props.nest))[0])return m.cloneElement(h,{match:v})}return null};async function Ze(n,u={}){const c=await fetch(n,{...u,headers:{"Content-Type":"application/json",...u.headers}}),o=await c.json();if(!c.ok){const h=new Error(o.error||"Request failed");throw h.status=c.status,h.data=o,h}return o}const rn={async getReportData(){return Ze("/api/report-data")},async getStatus(){return Ze("/api/status")},async acceptBaseline(n){return Ze("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Ze("/api/baseline/accept-all",{method:"POST"})},async resetBaselines(){return Ze("/api/baseline/reset",{method:"POST"})},async downloadBaselines(n,u,c){return Ze("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:u,projectSlug:c})})}},Uo={async get(){return Ze("/api/config")},async updateProject(n){return Ze("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},gi={async getStatus(){return Ze("/api/auth/status")},async initiateLogin(){return Ze("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Ze("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Ze("/api/auth/logout",{method:"POST"})}},vi={async list(){return Ze("/api/projects")},async listMappings(){return Ze("/api/projects/mappings")},async createMapping(n){return Ze("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Ze(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){const u=new URLSearchParams;n.limit&&u.append("limit",String(n.limit)),n.branch&&u.append("branch",n.branch);const c=u.toString();return Ze(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,u,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const h=o.toString(),v=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(u)}/builds${h?`?${h}`:""}`;return Ze(v)}},Te={auth:["auth"],authStatus:()=>[...Te.auth,"status"],config:["config"],projectConfig:()=>[...Te.config,"project"],globalConfig:()=>[...Te.config,"global"],tdd:["tdd"],reportData:()=>[...Te.tdd,"report"],status:()=>[...Te.tdd,"status"],cloud:["cloud"],projects:()=>[...Te.cloud,"projects"],builds:(n,u)=>[...Te.cloud,"builds",n,u]};function cn(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}function nv(){return typeof window<"u"&&window.VIZZLY_REPORTER_DATA?window.VIZZLY_REPORTER_DATA:null}function yi(n={}){const u=nv(),c=cn();return ml({queryKey:Te.reportData(),queryFn:async()=>c&&u?u:rn.getReportData(),initialData:u||void 0,refetchInterval:c?!1:n.polling!==!1?2e3:!1,refetchOnWindowFocus:!c,...n})}function iv(){const n=Lt();return Qt({mutationFn:u=>{if(cn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return rn.acceptBaseline(u)},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function Lo(){const n=Lt();return Qt({mutationFn:()=>{if(cn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return rn.acceptAllBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function sv(){const n=Lt();return Qt({mutationFn:()=>{if(cn())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");return rn.resetBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function uv(){return Qt({mutationFn:async n=>{if(cn())throw new Error("Cannot reject baselines in static report mode. Use the live dev server.");return{success:!0,id:n}}})}const rv={success:{icon:Ya,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400",textColor:"text-emerald-300"},warning:{icon:da,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400",textColor:"text-amber-300"},danger:{icon:uu,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400",textColor:"text-red-300"},info:{icon:jg,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400",textColor:"text-blue-300"}};function hu({variant:n="info",title:u,children:c,icon:o,dismissible:h=!1,onDismiss:v,className:g=""}){const y=rv[n],b=o||y.icon;return r.jsx("div",{className:`rounded-xl border ${y.bg} ${y.border} p-4 ${g}`,role:"alert",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx("div",{className:`flex-shrink-0 ${y.iconColor}`,children:r.jsx(b,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[u&&r.jsx("h3",{className:`text-sm font-medium ${y.textColor}`,children:u}),c&&r.jsx("div",{className:`text-sm ${u?"mt-1":""} text-slate-400`,children:c})]}),h&&v&&r.jsx("button",{type:"button",onClick:v,className:"flex-shrink-0 text-slate-500 hover:text-slate-300 transition-colors",children:r.jsx(di,{className:"w-5 h-5"})})]})})}function on({children:n,variant:u="default",size:c="sm",dot:o=!1,pulseDot:h=!1,className:v="",...g}){const y={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},p={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},N=["inline-flex items-center gap-1.5 font-medium rounded-full border",y[u],p[c],v].filter(Boolean).join(" ");return r.jsxs("span",{className:N,...g,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[h&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[u]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[u]}`})]}),n]})}function Xe({children:n,variant:u="primary",size:c="md",disabled:o=!1,loading:h=!1,icon:v,iconPosition:g="left",fullWidth:y=!1,className:b="",...p}){const N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",z={primary:"bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},L={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},V=[N,z[u],L[c],y?"w-full":"",o||h?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" ");return r.jsxs("button",{className:V,disabled:o||h,...p,children:[h&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v&&g==="left"&&!h&&r.jsx(v,{className:"w-4 h-4"}),n,v&&g==="right"&&!h&&r.jsx(v,{className:"w-4 h-4"})]})}function at({children:n,variant:u,hover:c=!0,className:o="",...h}){const g=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",u?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[u]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:g,...h,children:n})}function Ga({icon:n,title:u,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:h,className:v=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${v}`,children:r.jsxs("div",{className:`flex items-center ${h?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),h&&r.jsx("div",{className:"flex items-center gap-2",children:h})]})})}function nt({children:n,className:u="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${u}`,children:n})}function cv({children:n,className:u=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${u}`,children:n})}function yl({icon:n,title:u,description:c,action:o,className:h=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-6 text-center ${h}`,children:[n&&r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-6",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),u&&r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}let ov=0;function pi({label:n,hint:u,error:c,icon:o,size:h="md",className:v="",id:g,...y}){const b=g||`input-${++ov}`,N=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[h],o?"pl-10":"",y.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{htmlFor:b,className:"block text-sm font-medium text-slate-300",children:[n,y.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{id:b,className:N,...y})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}let fv=0;function dv({label:n,hint:u,error:c,options:o=[],placeholder:h="Select an option",size:v="md",className:g="",id:y,...b}){const p=y||`select-${++fv}`,z=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[v],b.disabled?"opacity-50 cursor-not-allowed":"",g].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{htmlFor:p,className:"block text-sm font-medium text-slate-300",children:[n,b.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{id:p,className:z,...b,children:[h&&r.jsx("option",{value:"",disabled:!0,children:h}),o.map(L=>r.jsx("option",{value:L.value,children:L.label},L.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function hv({label:n,description:u,checked:c,onChange:o,disabled:h=!1,size:v="md",className:g="",...y}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"peer-checked:translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"peer-checked:translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"peer-checked:translate-x-7"}},{track:p,thumb:N,translate:z}=b[v];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${h?"opacity-50 cursor-not-allowed":""} ${g}`,children:[r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),u&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:h,className:"sr-only peer",...y}),r.jsx("div",{className:`${p} rounded-full bg-slate-700 transition-colors peer-checked:bg-amber-500 peer-focus-visible:ring-2 peer-focus-visible:ring-amber-500/50 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-slate-900`}),r.jsx("div",{className:`absolute left-1 top-1 ${N} rounded-full bg-white shadow-sm transition-transform ${z}`})]})]})}function mv({value:n=0,label:u,size:c=120,strokeWidth:o=8,className:h=""}){const[v,g]=m.useState(0);m.useEffect(()=>{if(typeof window>"u")return;const z=v,L=Math.min(100,Math.max(0,n)),V=1e3,B=window.performance.now();function M(q){const H=q-B,$=Math.min(H/V,1),k=1-(1-$)**3,ne=z+(L-z)*k;g(Math.round(ne)),$<1&&window.requestAnimationFrame(M)}window.requestAnimationFrame(M)},[n,v]);const y=(c-o)/2,b=y*2*Math.PI,p=b-v/100*b,N=v>=80?"health-ring__progress--success":v>=50?"health-ring__progress--warning":"health-ring__progress--danger";return r.jsxs("div",{className:`health-ring ${h}`,style:{width:c,height:c,"--ring-size":`${c}px`,"--ring-stroke":`${o}px`},children:[r.jsxs("svg",{className:"health-ring__svg",viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[r.jsx("circle",{className:"health-ring__track",cx:c/2,cy:c/2,r:y}),r.jsx("circle",{className:`health-ring__progress ${N}`,cx:c/2,cy:c/2,r:y,strokeDasharray:b,strokeDashoffset:p})]}),r.jsxs("div",{className:"health-ring__value",children:[r.jsxs("span",{className:"health-ring__percentage",children:[v,"%"]}),u&&r.jsx("span",{className:"health-ring__label",children:u})]})]})}oo();function ut({variant:n="text",className:u="",count:c=1}){const o={text:"h-4 w-full",heading:"h-6 w-3/5",avatar:"w-10 h-10 rounded-full",button:"h-9 w-24 rounded-lg",badge:"h-5 w-16 rounded-full",card:"h-32 w-full rounded-xl"},h=Array.from({length:c},(v,g)=>g);return r.jsx(r.Fragment,{children:h.map(v=>r.jsx("div",{className:`skeleton ${o[n]} ${u}`},`skeleton-${n}-${v}`))})}function Va({className:n=""}){return r.jsxs("div",{className:`vz-card vz-card--no-hover p-6 space-y-4 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(ut,{variant:"heading"}),r.jsx(ut,{variant:"text",className:"w-2/3"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text",className:"w-4/5"})]})]})}function fn({size:n="md",className:u=""}){const c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${u}`,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function gv({tabs:n=[],activeTab:u,onChange:c,variant:o="default",className:h=""}){const g={default:{container:"border-b border-slate-700/50",tab:"px-4 py-3 text-sm font-medium transition-colors relative",active:"text-amber-400",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"},pills:{container:"bg-slate-800/50 p-1 rounded-lg inline-flex gap-1",tab:"px-4 py-2 text-sm font-medium rounded-md transition-all",active:"bg-amber-500 text-slate-900",inactive:"text-slate-400 hover:text-white hover:bg-white/5",indicator:""},underline:{container:"flex gap-6",tab:"pb-3 text-sm font-medium transition-colors relative",active:"text-white",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"}}[o];return r.jsx("div",{className:`${g.container} ${h}`,children:n.map(y=>{const b=u===y.key;return r.jsxs("button",{type:"button",onClick:()=>c?.(y.key),className:`${g.tab} ${b?g.active:g.inactive}`,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[y.icon&&r.jsx(y.icon,{className:"w-4 h-4"}),y.label,y.count!==void 0&&r.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${b?o==="pills"?"bg-slate-900/20 text-slate-900":"bg-amber-500/20 text-amber-400":"bg-slate-700 text-slate-400"}`,children:y.count})]}),b&&g.indicator&&r.jsx("div",{className:g.indicator})]},y.key)})})}const Bo=[{key:"comparisons",label:"Comparisons",icon:iu},{key:"stats",label:"Stats",icon:lg},{key:"builds",label:"Builds",icon:dg},{key:"projects",label:"Projects",icon:un},{key:"settings",label:"Settings",icon:nu}];function vv({currentView:n,onNavigate:u,loading:c}){const[o,h]=m.useState(!1),v=g=>{u?.(g),h(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>v("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),u&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Bo.map(g=>{const y=n===g.key;return r.jsxs("button",{type:"button",onClick:()=>v(g.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${y?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-4 h-4"}),g.label]},g.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(fn,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),u&&r.jsx("button",{type:"button",onClick:()=>h(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(di,{className:"w-6 h-6"}):r.jsx($m,{className:"w-6 h-6"})})]})]}),u&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Bo.map(g=>{const y=n===g.key;return r.jsxs("button",{type:"button",onClick:()=>v(g.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${y?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-5 h-5"}),g.label]},g.key)})})})]})})}function dn({children:n,currentView:u,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(vv,{currentView:u,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function Ho(){return ml({queryKey:Te.authStatus(),queryFn:gi.getStatus,staleTime:30*1e3})}function yv(){return Qt({mutationFn:gi.initiateLogin})}function pv(){const n=Lt();return Qt({mutationFn:u=>gi.pollAuthorization(u),onSuccess:u=>{u.status==="complete"&&(n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud}))}})}function bv(){const n=Lt();return Qt({mutationFn:gi.logout,onSuccess:()=>{n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud})}})}function xv(n={}){return ml({queryKey:Te.projects(),queryFn:vi.list,staleTime:60*1e3,...n})}function jv(n,u,c={}){return ml({queryKey:Te.builds(n,u),queryFn:()=>vi.getBuilds(n,u,{limit:20}),enabled:!!(n&&u),staleTime:30*1e3,...c})}function Sv(){const n=Lt();return Qt({mutationFn:({buildId:u,organizationSlug:c,projectSlug:o})=>rn.downloadBaselines(u,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function wv(n={}){return ml({queryKey:[...Te.projects(),"mappings"],queryFn:vi.listMappings,staleTime:60*1e3,...n})}function Nv(){const n=Lt();return Qt({mutationFn:u=>vi.deleteMapping(u),onSuccess:()=>{n.invalidateQueries({queryKey:Te.projects()})}})}const qo=m.createContext(null);function Ev({children:n}){const[u,c]=m.useState([]),o=m.useCallback((g,y="success",b={})=>{const p=Date.now();c(z=>[...z,{id:p,message:g,type:y,...b}]);const N=b.duration!==void 0?b.duration:b.actions?null:5e3;return N&&setTimeout(()=>{c(z=>z.filter(L=>L.id!==p))},N),p},[]),h=m.useCallback(g=>{c(y=>y.filter(b=>b.id!==g))},[]),v=m.useCallback((g,y)=>new Promise(b=>{const p=Date.now();c(N=>[...N,{id:p,message:g,title:y,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(z=>z.filter(L=>L.id!==p)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(z=>z.filter(L=>L.id!==p)),b(!0)}}]}])}),[]);return r.jsxs(qo.Provider,{value:{addToast:o,removeToast:h,confirm:v},children:[n,r.jsx(Cv,{toasts:u,onRemove:h})]})}function Za(){const n=m.useContext(qo);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function Cv({toasts:n,onRemove:u}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(Av,{toast:c,onRemove:u},c.id))})}function Av({toast:n,onRemove:u}){const c=n.type==="success"?Ya:n.type==="confirm"?da:uu,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",h=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",v=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":v?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${h} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(g=>r.jsx("button",{type:"button",onClick:g.onClick,"data-testid":v?`confirm-${g.label.toLowerCase()}`:void 0,className:g.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:g.label},g.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>u(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(di,{className:"w-5 h-5"})})]})})}function zv({status:n}){const u={passed:{variant:"success",icon:Ya},completed:{variant:"success",icon:Ya},failed:{variant:"danger",icon:uu},pending:{variant:"warning",icon:fi},processing:{variant:"info",icon:fa}},c=u[n]||u.pending;return r.jsx(on,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function Ov(n){const u=Math.floor((Date.now()-n)/1e3);return u<60?"just now":u<3600?`${Math.floor(u/60)}m ago`:u<86400?`${Math.floor(u/3600)}h ago`:u<604800?`${Math.floor(u/86400)}d ago`:n.toLocaleDateString()}function Tv({build:n,project:u,onDownload:c,downloading:o}){const h=new Date(n.createdAt||n.created_at),v=Ov(h);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(zv,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:v}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(n,u),loading:o,icon:km,title:"Download baselines from this build"})]})}function Mv({project:n,onExpand:u,expanded:c,onDownload:o,downloadingBuildId:h}){const{data:v,isLoading:g}=jv(c?n.organizationSlug:null,c?n.slug:null),y=v?.builds||[];return r.jsxs(at,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>u(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(un,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[g&&r.jsx(fn,{size:"sm",className:"text-amber-400"}),c?r.jsx(au,{className:"w-5 h-5 text-slate-400"}):r.jsx(lu,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(nt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:g?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(fn,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):y&&y.length>0?r.jsx("div",{className:"space-y-3",children:y.map((b,p)=>r.jsx(Tv,{build:b,project:n,onDownload:o,downloading:h===b.id},b.id||p))}):r.jsx(yl,{icon:fi,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function Rv({org:n,expandedProjects:u,onExpand:c,onDownload:o,downloadingBuildId:h}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Pm,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(on,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(v=>{const g=`${v.organizationSlug}/${v.slug}`;return r.jsx(Mv,{project:v,expanded:u[g],onExpand:c,onDownload:o,downloadingBuildId:h},g)})})]})}function Dv({onLogin:n}){return r.jsx(at,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(su,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Xe,{variant:"primary",onClick:n,icon:mo,children:"Sign In"})]})})}function _v(){const[n,u]=m.useState({}),[c,o]=m.useState(null),{addToast:h}=Za(),{data:v,isLoading:g}=Ho(),{data:y,isLoading:b,refetch:p}=xv(),N=Sv(),z=v?.authenticated,L=m.useMemo(()=>{const q=y?.projects||[],H={};for(const $ of q){const k=$.organizationSlug||"unknown";H[k]||(H[k]={slug:k,name:$.organizationName||k,projects:[]}),H[k].projects.push($)}return Object.values(H)},[y?.projects]),V=m.useCallback((q,H)=>{const $=`${q}/${H}`;u(k=>({...k,[$]:!k[$]}))},[]),B=m.useCallback((q,H)=>{o(q.id),N.mutate({buildId:q.id,organizationSlug:H?.organizationSlug,projectSlug:H?.slug},{onSuccess:()=>{h(`Baselines downloaded from "${q.name||q.id}"`,"success"),o(null)},onError:$=>{h(`Failed to download baselines: ${$.message}`,"error"),o(null)}})},[N,h]),M=m.useCallback(()=>{window.location.href="/projects"},[]);return b||g?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-40 mb-2"}),r.jsx(ut,{variant:"text",className:"w-72"})]}),r.jsx(ut,{variant:"button"})]}),r.jsx(Va,{}),r.jsx(Va,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Xe,{variant:"secondary",onClick:()=>p(),icon:fa,children:"Refresh"})]}),z?L.length===0?r.jsx(at,{hover:!1,children:r.jsx(nt,{children:r.jsx(yl,{icon:un,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Xe,{variant:"secondary",icon:lu,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:L.map(q=>r.jsx(Rv,{org:q,expandedProjects:n,onExpand:V,onDownload:B,downloadingBuildId:c},q.slug))}):r.jsx(Dv,{onLogin:M})]})}const hn={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},kt={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},ha={PRIORITY:"priority",NAME:"name",TIME:"time"},Xa={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function Uv({children:n,containerClassName:u="",onClick:c,style:o={},...h}){const g=`relative inline-block ${u}`;return c?r.jsx("button",{type:"button",className:`${g} border-none bg-transparent p-0 text-left`,style:o,onClick:c,...h,children:n}):r.jsx("div",{className:g,style:o,...h,children:n})}function bi({children:n,containerClassName:u="",interactive:c=!1,onClick:o,style:h={}}){const v=c?"cursor-pointer":"";return r.jsx(Uv,{containerClassName:`${u} ${v}`,onClick:o,style:h,children:n})}function Lv({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,style:b={},loading:p="lazy",...N}){const z={absolute:"absolute block",relative:"block"},L=o==="absolute"&&!h.includes("top-")&&!h.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",V=`${z[o]} ${L} ${h}`.trim();if(y?.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(da,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});const{screenshot:B,zoom:M,...q}=N;return r.jsx("img",{src:u,alt:c,className:V,style:b,loading:p,decoding:"async",onError:()=>v?.(n),onLoad:()=>g?.(n),...q})}function Ka({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:b=!0,loading:p="lazy",...N}){return y?.has(n)&&!b?null:r.jsx(Lv,{imageKey:n,url:u,alt:c,position:o,className:h,onError:v,onLoad:g,imageErrors:y,loading:p,...N})}function Bv({baselineImageUrl:n,currentImageUrl:u,sliderPosition:c=50,onSliderChange:o,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y=new Set}){return r.jsxs(bi,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Ka,{imageKey:`baseline-${h?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(Ka,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:v,onLoad:g,imageErrors:y,screenshot:h})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"}}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:b=>o(parseInt(b.target.value,10)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function Hv({baselineImageUrl:n,currentImageUrl:u,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y,onDiffToggle:b}){const p=()=>{c&&b&&b()};return n?r.jsxs(bi,{interactive:!!c,onClick:p,children:[r.jsx(Ka,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),o&&c&&r.jsx(Ka,{imageKey:`diff-${h?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:!1,screenshot:h}),o&&c&&y?.has(`diff-${h?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})}),c&&r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[o?"Diff On":"Diff Off"," (click to toggle)"]})]}):r.jsx(bi,{interactive:!!c,onClick:p,children:r.jsx(Ka,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h})})}function qv({baselineImageUrl:n,currentImageUrl:u,screenshot:c,onImageError:o,onImageLoad:h,imageErrors:v=new Set}){const[g,y]=m.useState(!0),b=()=>{y(p=>!p)};return r.jsxs(bi,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:g?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Ka,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:g?"relative":"absolute",className:`${g?"":"top-0 left-0"} ${g?"":"hidden"}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c}),r.jsx(Ka,{imageKey:`current-${c?.id||"unknown"}`,url:u,alt:"Current",position:g?"absolute":"relative",className:`${g?"top-0 left-0":""} ${g?"hidden":""}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c})]})]})}function Qv({comparison:n,viewMode:u="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:h,onDiffToggle:v,disableLoadingOverlay:g=!1,zoom:y="fit",className:b=""}){const[p,N]=m.useState(new Set),[z,L]=m.useState(new Map),[V,B]=m.useState(1),[M,q]=m.useState({width:0,height:0}),H=m.useRef(null),$=m.useRef(null);m.useEffect(()=>{const ee=()=>{const de=H.current,J=de?.querySelector("img");if(!de||!J||!J.naturalWidth)return;q({width:J.naturalWidth,height:J.naturalHeight});const he=de.getBoundingClientRect(),Ge=40,Ke=he.width-Ge,T=he.height-Ge,Q=Ke/J.naturalWidth,W=T/J.naturalHeight,pe=Math.min(Q,W,1);B(pe)};ee();const ve=new window.ResizeObserver(ee);H.current&&ve.observe(H.current);const Me=H.current?.querySelectorAll("img")||[];for(let de of Me)de.addEventListener("load",ee);return()=>{ve.disconnect();for(let de of Me)de.removeEventListener("load",ee)}},[]);const k=m.useMemo(()=>{const ee=y==="fit",ve=ee?V:typeof y=="number"?y:1,Me=!ee&&ve>V;return{isFit:ee,scale:ve,allowsOverflow:Me,containerClass:Me?"overflow-auto":"overflow-hidden"}},[y,V]),ne=m.useCallback(ee=>{N(ve=>new Set([...ve,ee]))},[]),xe=m.useCallback(ee=>{L(ve=>new Map(ve).set(ee,"loaded"))},[]),fe=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},K=m.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:H,className:`bg-gray-800 relative h-full ${k.containerClass}`,style:{backgroundImage:`
8
+ `+l.stack}}var Hr=Object.prototype.hasOwnProperty,qr=n.unstable_scheduleCallback,Qr=n.unstable_cancelCallback,Fg=n.unstable_shouldYield,Wg=n.unstable_requestPaint,St=n.unstable_now,Ig=n.unstable_getCurrentPriorityLevel,_f=n.unstable_ImmediatePriority,Lf=n.unstable_UserBlockingPriority,Zs=n.unstable_NormalPriority,Pg=n.unstable_LowPriority,Uf=n.unstable_IdlePriority,ex=n.log,tx=n.unstable_setDisableYieldValue,Tn=null,Nt=null;function Na(e){if(typeof ex=="function"&&tx(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Tn,e)}catch{}}var Et=Math.clz32?Math.clz32:nx,ax=Math.log,lx=Math.LN2;function nx(e){return e>>>=0,e===0?32:31-(ax(e)/lx|0)|0}var Xs=256,Ks=262144,$s=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Js(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?i=rl(l):(f&=p,f!==0?i=rl(f):a||(a=p&~e,a!==0&&(i=rl(a))))):(p=l&~u,p!==0?i=rl(p):f!==0?i=rl(f):a||(a=l&~e,a!==0&&(i=rl(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function Rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 kf(){var e=$s;return $s<<=1,($s&62914560)===0&&($s=4194304),e}function Vr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Dn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ix(e,t,a,l,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,j=e.expirationTimes,M=e.hiddenUpdates;for(a=f&~a;0<a;){var D=31-Et(a),U=1<<D;p[D]=0,j[D]=-1;var z=M[D];if(z!==null)for(M[D]=null,D=0;D<z.length;D++){var T=z[D];T!==null&&(T.lane&=-536870913)}a&=~U}l!==0&&Bf(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Bf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Hf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function qf(e,t){var a=t&-t;return a=(a&42)!==0?1:Yr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Yr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Gr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function Vf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Ea=Math.random().toString(36).slice(2),st="__reactFiber$"+Ea,vt="__reactProps$"+Ea,Dl="__reactContainer$"+Ea,Zr="__reactEvents$"+Ea,rx="__reactListeners$"+Ea,ux="__reactHandles$"+Ea,Yf="__reactResources$"+Ea,_n="__reactMarker$"+Ea;function Xr(e){delete e[st],delete e[vt],delete e[Zr],delete e[rx],delete e[ux]}function _l(e){var t=e[st];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Dl]||a[st]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[st])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function Ll(e){if(e=e[st]||e[Dl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ln(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ul(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[_n]=!0}var Gf=new Set,Zf={};function ul(e,t){kl(e,t),kl(e+"Capture",t)}function kl(e,t){for(Zf[e]=t,e=0;e<t.length;e++)Gf.add(t[e])}var cx=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]*$"),Xf={},Kf={};function ox(e){return Hr.call(Kf,e)?!0:Hr.call(Xf,e)?!1:cx.test(e)?Kf[e]=!0:(Xf[e]=!0,!1)}function Fs(e,t,a){if(ox(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ws(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fx(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kr(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=fx(e,t,""+e[t])}}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=$f(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Is(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dx=/[\n"\\]/g;function Lt(e){return e.replace(dx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $r(e,t,a,l,i,u,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Jr(e,f,_t(t)):a!=null?Jr(e,f,_t(a)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+_t(p):e.removeAttribute("name")}function Ff(e,t,a,l,i,u,f,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Kr(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Kr(e)}function Jr(e,t,a){t==="number"&&Is(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Bl(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+_t(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wf(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function If(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(_e(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Kr(e)}function Hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var hx=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 Pf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||hx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ed(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&Pf(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&Pf(e,u,t[u])}function Fr(e){if(e.indexOf("-")===-1)return!1;switch(e){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 mx=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"]]),vx=/^[\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 Ps(e){return vx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Wr=null;function Ir(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Ql=null;function td(e){var t=Ll(e);if(t&&(e=t.stateNode)){var a=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if($r(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[vt]||null;if(!i)throw Error(o(90));$r(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Jf(l)}break e;case"textarea":Wf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Bl(e,!!a.multiple,t,!1)}}}var Pr=!1;function ad(e,t,a){if(Pr)return e(t,a);Pr=!0;try{var l=e(t);return l}finally{if(Pr=!1,(ql!==null||Ql!==null)&&(qi(),ql&&(t=ql,e=Ql,Ql=ql=null,td(t),e)))for(t=0;t<e.length;t++)td(e[t])}}function Un(e,t){var a=e.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(sa)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){eu=!0}}),window.addEventListener("test",kn,kn),window.removeEventListener("test",kn,kn)}catch{eu=!1}var Ca=null,tu=null,ei=null;function ld(){if(ei)return ei;var e,t=tu,a=t.length,l,i="value"in Ca?Ca.value:Ca.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[u-l];l++);return ei=i.slice(e,1<l?1-l:void 0)}function ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ai(){return!0}function nd(){return!1}function pt(e){function t(a,l,i,u,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ai:nd,this.isPropagationStopped=nd,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ai)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ai)},persist:function(){},isPersistent:ai}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=pt(cl),Bn=N({},cl,{view:0,detail:0}),px=pt(Bn),au,lu,Hn,ni=N({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:su,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hn&&(Hn&&e.type==="mousemove"?(au=e.screenX-Hn.screenX,lu=e.screenY-Hn.screenY):lu=au=0,Hn=e),au)},movementY:function(e){return"movementY"in e?e.movementY:lu}}),sd=pt(ni),gx=N({},ni,{dataTransfer:0}),xx=pt(gx),bx=N({},Bn,{relatedTarget:0}),nu=pt(bx),yx=N({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),jx=pt(yx),wx=N({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sx=pt(wx),Nx=N({},cl,{data:0}),id=pt(Nx),Ex={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cx={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"},Ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ax[e])?!!t[e]:!1}function su(){return Mx}var Ox=N({},Bn,{key:function(e){if(e.key){var t=Ex[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:su,charCode:function(e){return e.type==="keypress"?ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zx=pt(Ox),Tx=N({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=pt(Tx),Rx=N({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:su}),Dx=pt(Rx),_x=N({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lx=pt(_x),Ux=N({},ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kx=pt(Ux),Bx=N({},cl,{newState:0,oldState:0}),Hx=pt(Bx),qx=[9,13,27,32],iu=sa&&"CompositionEvent"in window,qn=null;sa&&"documentMode"in document&&(qn=document.documentMode);var Qx=sa&&"TextEvent"in window&&!qn,ud=sa&&(!iu||qn&&8<qn&&11>=qn),cd=" ",od=!1;function fd(e,t){switch(e){case"keyup":return qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function Vx(e,t){switch(e){case"compositionend":return dd(t);case"keypress":return t.which!==32?null:(od=!0,cd);case"textInput":return e=t.data,e===cd&&od?null:e;default:return null}}function Yx(e,t){if(Vl)return e==="compositionend"||!iu&&fd(e,t)?(e=ld(),ei=tu=Ca=null,Vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ud&&t.locale!=="ko"?null:t.data;default:return null}}var Gx={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gx[e.type]:t==="textarea"}function md(e,t,a,l){ql?Ql?Ql.push(l):Ql=[l]:ql=l,t=Ki(t,"onChange"),0<t.length&&(a=new li("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Qn=null,Vn=null;function Zx(e){Fh(e,0)}function si(e){var t=Ln(e);if(Jf(t))return e}function vd(e,t){if(e==="change")return t}var pd=!1;if(sa){var ru;if(sa){var uu="oninput"in document;if(!uu){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),uu=typeof gd.oninput=="function"}ru=uu}else ru=!1;pd=ru&&(!document.documentMode||9<document.documentMode)}function xd(){Qn&&(Qn.detachEvent("onpropertychange",bd),Vn=Qn=null)}function bd(e){if(e.propertyName==="value"&&si(Vn)){var t=[];md(t,Vn,e,Ir(e)),ad(Zx,t)}}function Xx(e,t,a){e==="focusin"?(xd(),Qn=t,Vn=a,Qn.attachEvent("onpropertychange",bd)):e==="focusout"&&xd()}function Kx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(Vn)}function $x(e,t){if(e==="click")return si(t)}function Jx(e,t){if(e==="input"||e==="change")return si(t)}function Fx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Fx;function Yn(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Hr.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jd(e,t){var a=yd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=yd(a)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Is(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Is(e.document)}return t}function cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wx=sa&&"documentMode"in document&&11>=document.documentMode,Yl=null,ou=null,Gn=null,fu=!1;function Nd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fu||Yl==null||Yl!==Is(l)||(l=Yl,"selectionStart"in l&&cu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gn&&Yn(Gn,l)||(Gn=l,l=Ki(ou,"onSelect"),0<l.length&&(t=new li("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Yl)))}function ol(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Gl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},du={},Ed={};sa&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function fl(e){if(du[e])return du[e];if(!Gl[e])return e;var t=Gl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ed)return du[e]=t[a];return e}var Cd=fl("animationend"),Ad=fl("animationiteration"),Md=fl("animationstart"),Ix=fl("transitionrun"),Px=fl("transitionstart"),eb=fl("transitioncancel"),Od=fl("transitionend"),zd=new Map,hu="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(" ");hu.push("scrollEnd");function Zt(e,t){zd.set(e,t),ul(t,[e])}var ii=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Zl=0,mu=0;function ri(){for(var e=Zl,t=mu=Zl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}u!==0&&Td(a,i,u)}}function ui(e,t,a,l){Ut[Zl++]=e,Ut[Zl++]=t,Ut[Zl++]=a,Ut[Zl++]=l,mu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function vu(e,t,a,l){return ui(e,t,a,l),ci(e)}function dl(e,t){return ui(e,null,null,t),ci(e)}function Td(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Et(a),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),u):null}function ci(e){if(50<ds)throw ds=0,Nc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xl={};function tb(e,t,a,l){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new tb(e,t,a,l)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Rd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,a,l,i,u){var f=0;if(l=e,typeof e=="function")pu(e)&&(f=1);else if(typeof e=="string")f=i2(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=At(31,a,t,i),e.elementType=ge,e.lanes=u,e;case _:return hl(a.children,i,u,t);case Q:f=8,i|=24;break;case H:return e=At(12,a,t,i|2),e.elementType=H,e.lanes=u,e;case ve:return e=At(13,a,t,i),e.elementType=ve,e.lanes=u,e;case de:return e=At(19,a,t,i),e.elementType=de,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case F:f=9;break e;case I:f=11;break e;case V:f=14;break e;case ee:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(f,a,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function hl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function gu(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function Dd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function xu(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _d=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var a=_d.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Df(t)},_d.set(e,t),t)}return{value:e,source:t,stack:Df(t)}}var Kl=[],$l=0,fi=null,Zn=0,Bt=[],Ht=0,Aa=null,Ft=1,Wt="";function ra(e,t){Kl[$l++]=Zn,Kl[$l++]=fi,fi=e,Zn=t}function Ld(e,t,a){Bt[Ht++]=Ft,Bt[Ht++]=Wt,Bt[Ht++]=Aa,Aa=e;var l=Ft;e=Wt;var i=32-Et(l)-1;l&=~(1<<i),a+=1;var u=32-Et(t)+i;if(30<u){var f=i-i%5;u=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Ft=1<<32-Et(t)+i|a<<i|l,Wt=u+e}else Ft=1<<u|a<<i|l,Wt=e}function bu(e){e.return!==null&&(ra(e,1),Ld(e,1,0))}function yu(e){for(;e===fi;)fi=Kl[--$l],Kl[$l]=null,Zn=Kl[--$l],Kl[$l]=null;for(;e===Aa;)Aa=Bt[--Ht],Bt[Ht]=null,Wt=Bt[--Ht],Bt[Ht]=null,Ft=Bt[--Ht],Bt[Ht]=null}function Ud(e,t){Bt[Ht++]=Ft,Bt[Ht++]=Wt,Bt[Ht++]=Aa,Ft=t.id,Wt=t.overflow,Aa=e}var it=null,Le=null,he=!1,Ma=null,qt=!1,ju=Error(o(519));function Oa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xn(kt(t,e)),ju}function kd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[st]=e,t[vt]=l,a){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(a=0;a<ms.length;a++)ce(ms[a],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Ff(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),If(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||em(t.textContent,a)?(l.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),l.onScroll!=null&&ce("scroll",t),l.onScrollEnd!=null&&ce("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Oa(e,!0)}function Bd(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:it=it.return}}function Jl(e){if(e!==it)return!1;if(!he)return Bd(e),he=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Hc(e.type,e.memoizedProps)),a=!a),a&&Le&&Oa(e),Bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=cm(e)}else t===27?(t=Le,Ya(e.type)?(e=Gc,Gc=null,Le=e):Le=t):Le=it?Vt(e.stateNode.nextSibling):null;return!0}function ml(){Le=it=null,he=!1}function wu(){var e=Ma;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Ma=null),e}function Xn(e){Ma===null?Ma=[e]:Ma.push(e)}var Su=S(null),vl=null,ua=null;function za(e,t,a){Y(Su,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=Su.current,k(Su)}function Nu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Eu(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=i;for(var j=0;j<t.length;j++)if(p.context===t[j]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),Nu(u.return,a,e),l||(f=null);break e}u=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),Nu(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Fl(e,t,a,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;Ct(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===ie.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(bs):e=[bs])}i=i.return}e!==null&&Eu(t,e,a,l),t.flags|=262144}function di(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){vl=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Hd(vl,e)}function hi(e,t){return vl===null&&pl(e),Hd(e,t)}function Hd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ua===null){if(e===null)throw Error(o(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return a}var ab=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},lb=n.unstable_scheduleCallback,nb=n.unstable_NormalPriority,Je={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new ab,data:new Map,refCount:0}}function Kn(e){e.refCount--,e.refCount===0&&lb(nb,function(){e.controller.abort()})}var $n=null,Au=0,Wl=0,Il=null;function sb(e,t){if($n===null){var a=$n=[];Au=0,Wl=zc(),Il={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Au++,t.then(qd,qd),t}function qd(){if(--Au===0&&$n!==null){Il!==null&&(Il.status="fulfilled");var e=$n;$n=null,Wl=0,Il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ib(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Qd=R.S;R.S=function(e,t){Nh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sb(e,t),Qd!==null&&Qd(e,t)};var gl=S(null);function Mu(){var e=gl.current;return e!==null?e:Re.pooledCache}function mi(e,t){t===null?Y(gl,gl.current):Y(gl,t.pool)}function Vd(){var e=Mu();return e===null?null:{parent:Je._currentValue,pool:e}}var Pl=Error(o(460)),Ou=Error(o(474)),vi=Error(o(542)),pi={then:function(){}};function Yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw bl=t,Pl}}function xl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,Pl):a}}var bl=null;function Zd(){if(bl===null)throw Error(o(459));var e=bl;return bl=null,e}function Xd(e){if(e===Pl||e===vi)throw Error(o(483))}var en=null,Jn=0;function gi(e){var t=Jn;return Jn+=1,en===null&&(en=[]),Gd(en,e,t)}function Fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(E,w){if(e){var A=E.deletions;A===null?(E.deletions=[w],E.flags|=16):A.push(w)}}function a(E,w){if(!e)return null;for(;w!==null;)t(E,w),w=w.sibling;return null}function l(E){for(var w=new Map;E!==null;)E.key!==null?w.set(E.key,E):w.set(E.index,E),E=E.sibling;return w}function i(E,w){return E=ia(E,w),E.index=0,E.sibling=null,E}function u(E,w,A){return E.index=A,e?(A=E.alternate,A!==null?(A=A.index,A<w?(E.flags|=67108866,w):A):(E.flags|=67108866,w)):(E.flags|=1048576,w)}function f(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function p(E,w,A,L){return w===null||w.tag!==6?(w=gu(A,E.mode,L),w.return=E,w):(w=i(w,A),w.return=E,w)}function j(E,w,A,L){var W=A.type;return W===_?D(E,w,A.props.children,L,A.key):w!==null&&(w.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ee&&xl(W)===w.type)?(w=i(w,A.props),Fn(w,A),w.return=E,w):(w=oi(A.type,A.key,A.props,null,E.mode,L),Fn(w,A),w.return=E,w)}function M(E,w,A,L){return w===null||w.tag!==4||w.stateNode.containerInfo!==A.containerInfo||w.stateNode.implementation!==A.implementation?(w=xu(A,E.mode,L),w.return=E,w):(w=i(w,A.children||[]),w.return=E,w)}function D(E,w,A,L,W){return w===null||w.tag!==7?(w=hl(A,E.mode,L,W),w.return=E,w):(w=i(w,A),w.return=E,w)}function U(E,w,A){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=gu(""+w,E.mode,A),w.return=E,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case B:return A=oi(w.type,w.key,w.props,null,E.mode,A),Fn(A,w),A.return=E,A;case O:return w=xu(w,E.mode,A),w.return=E,w;case ee:return w=xl(w),U(E,w,A)}if(_e(w)||De(w))return w=hl(w,E.mode,A,null),w.return=E,w;if(typeof w.then=="function")return U(E,gi(w),A);if(w.$$typeof===X)return U(E,hi(E,w),A);xi(E,w)}return null}function z(E,w,A,L){var W=w!==null?w.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return W!==null?null:p(E,w,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case B:return A.key===W?j(E,w,A,L):null;case O:return A.key===W?M(E,w,A,L):null;case ee:return A=xl(A),z(E,w,A,L)}if(_e(A)||De(A))return W!==null?null:D(E,w,A,L,null);if(typeof A.then=="function")return z(E,w,gi(A),L);if(A.$$typeof===X)return z(E,w,hi(E,A),L);xi(E,A)}return null}function T(E,w,A,L,W){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return E=E.get(A)||null,p(w,E,""+L,W);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case B:return E=E.get(L.key===null?A:L.key)||null,j(w,E,L,W);case O:return E=E.get(L.key===null?A:L.key)||null,M(w,E,L,W);case ee:return L=xl(L),T(E,w,A,L,W)}if(_e(L)||De(L))return E=E.get(A)||null,D(w,E,L,W,null);if(typeof L.then=="function")return T(E,w,A,gi(L),W);if(L.$$typeof===X)return T(E,w,A,hi(w,L),W);xi(w,L)}return null}function K(E,w,A,L){for(var W=null,be=null,J=w,se=w=0,fe=null;J!==null&&se<A.length;se++){J.index>se?(fe=J,J=null):fe=J.sibling;var ye=z(E,J,A[se],L);if(ye===null){J===null&&(J=fe);break}e&&J&&ye.alternate===null&&t(E,J),w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye,J=fe}if(se===A.length)return a(E,J),he&&ra(E,se),W;if(J===null){for(;se<A.length;se++)J=U(E,A[se],L),J!==null&&(w=u(J,w,se),be===null?W=J:be.sibling=J,be=J);return he&&ra(E,se),W}for(J=l(J);se<A.length;se++)fe=T(J,E,se,A[se],L),fe!==null&&(e&&fe.alternate!==null&&J.delete(fe.key===null?se:fe.key),w=u(fe,w,se),be===null?W=fe:be.sibling=fe,be=fe);return e&&J.forEach(function($a){return t(E,$a)}),he&&ra(E,se),W}function P(E,w,A,L){if(A==null)throw Error(o(151));for(var W=null,be=null,J=w,se=w=0,fe=null,ye=A.next();J!==null&&!ye.done;se++,ye=A.next()){J.index>se?(fe=J,J=null):fe=J.sibling;var $a=z(E,J,ye.value,L);if($a===null){J===null&&(J=fe);break}e&&J&&$a.alternate===null&&t(E,J),w=u($a,w,se),be===null?W=$a:be.sibling=$a,be=$a,J=fe}if(ye.done)return a(E,J),he&&ra(E,se),W;if(J===null){for(;!ye.done;se++,ye=A.next())ye=U(E,ye.value,L),ye!==null&&(w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye);return he&&ra(E,se),W}for(J=l(J);!ye.done;se++,ye=A.next())ye=T(J,E,se,ye.value,L),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?se:ye.key),w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye);return e&&J.forEach(function(g2){return t(E,g2)}),he&&ra(E,se),W}function ze(E,w,A,L){if(typeof A=="object"&&A!==null&&A.type===_&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case B:e:{for(var W=A.key;w!==null;){if(w.key===W){if(W=A.type,W===_){if(w.tag===7){a(E,w.sibling),L=i(w,A.props.children),L.return=E,E=L;break e}}else if(w.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ee&&xl(W)===w.type){a(E,w.sibling),L=i(w,A.props),Fn(L,A),L.return=E,E=L;break e}a(E,w);break}else t(E,w);w=w.sibling}A.type===_?(L=hl(A.props.children,E.mode,L,A.key),L.return=E,E=L):(L=oi(A.type,A.key,A.props,null,E.mode,L),Fn(L,A),L.return=E,E=L)}return f(E);case O:e:{for(W=A.key;w!==null;){if(w.key===W)if(w.tag===4&&w.stateNode.containerInfo===A.containerInfo&&w.stateNode.implementation===A.implementation){a(E,w.sibling),L=i(w,A.children||[]),L.return=E,E=L;break e}else{a(E,w);break}else t(E,w);w=w.sibling}L=xu(A,E.mode,L),L.return=E,E=L}return f(E);case ee:return A=xl(A),ze(E,w,A,L)}if(_e(A))return K(E,w,A,L);if(De(A)){if(W=De(A),typeof W!="function")throw Error(o(150));return A=W.call(A),P(E,w,A,L)}if(typeof A.then=="function")return ze(E,w,gi(A),L);if(A.$$typeof===X)return ze(E,w,hi(E,A),L);xi(E,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,w!==null&&w.tag===6?(a(E,w.sibling),L=i(w,A),L.return=E,E=L):(a(E,w),L=gu(A,E.mode,L),L.return=E,E=L),f(E)):a(E,w)}return function(E,w,A,L){try{Jn=0;var W=ze(E,w,A,L);return en=null,W}catch(J){if(J===Pl||J===vi)throw J;var be=At(29,J,null,E.mode);return be.lanes=L,be.return=E,be}}}var yl=Kd(!0),$d=Kd(!1),Ta=!1;function zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ci(e),Td(e,null,a),t}return ui(e,l,t,a),ci(e)}function Wn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Hf(e,a)}}function Ru(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Du=!1;function In(){if(Du){var e=Il;if(e!==null)throw e}}function Pn(e,t,a,l){Du=!1;var i=e.updateQueue;Ta=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var j=p,M=j.next;j.next=null,f===null?u=M:f.next=M,f=j;var D=e.alternate;D!==null&&(D=D.updateQueue,p=D.lastBaseUpdate,p!==f&&(p===null?D.firstBaseUpdate=M:p.next=M,D.lastBaseUpdate=j))}if(u!==null){var U=i.baseState;f=0,D=M=j=null,p=u;do{var z=p.lane&-536870913,T=z!==p.lane;if(T?(oe&z)===z:(l&z)===z){z!==0&&z===Wl&&(Du=!0),D!==null&&(D=D.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var K=e,P=p;z=t;var ze=a;switch(P.tag){case 1:if(K=P.payload,typeof K=="function"){U=K.call(ze,U,z);break e}U=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=P.payload,z=typeof K=="function"?K.call(ze,U,z):K,z==null)break e;U=N({},U,z);break e;case 2:Ta=!0}}z=p.callback,z!==null&&(e.flags|=64,T&&(e.flags|=8192),T=i.callbacks,T===null?i.callbacks=[z]:T.push(z))}else T={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},D===null?(M=D=T,j=U):D=D.next=T,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;T=p,p=T.next,T.next=null,i.lastBaseUpdate=T,i.shared.pending=null}}while(!0);D===null&&(j=U),i.baseState=j,i.firstBaseUpdate=M,i.lastBaseUpdate=D,u===null&&(i.shared.lanes=0),Ba|=f,e.lanes=f,e.memoizedState=U}}function Jd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Fd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jd(a[e],t)}var tn=S(null),bi=S(0);function Wd(e,t){e=xa,Y(bi,e),Y(tn,t),xa=e|t.baseLanes}function _u(){Y(bi,xa),Y(tn,tn.current)}function Lu(){xa=bi.current,k(tn),k(bi)}var Mt=S(null),Qt=null;function _a(e){var t=e.alternate;Y(Ge,Ge.current&1),Y(Mt,e),Qt===null&&(t===null||tn.current!==null||t.memoizedState!==null)&&(Qt=e)}function Uu(e){Y(Ge,Ge.current),Y(Mt,e),Qt===null&&(Qt=e)}function Id(e){e.tag===22?(Y(Ge,Ge.current),Y(Mt,e),Qt===null&&(Qt=e)):La()}function La(){Y(Ge,Ge.current),Y(Mt,Mt.current)}function Ot(e){k(Mt),Qt===e&&(Qt=null),k(Ge)}var Ge=S(0);function yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vc(a)||Yc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oa=0,ne=null,Me=null,Fe=null,ji=!1,an=!1,jl=!1,wi=0,es=0,ln=null,rb=0;function Qe(){throw Error(o(321))}function ku(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function Bu(e,t,a,l,i,u){return oa=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?L0:Pu,jl=!1,u=a(l,i),jl=!1,an&&(u=e0(t,a,l,i)),Pd(e),u}function Pd(e){R.H=ls;var t=Me!==null&&Me.next!==null;if(oa=0,Fe=Me=ne=null,ji=!1,es=0,ln=null,t)throw Error(o(300));e===null||We||(e=e.dependencies,e!==null&&di(e)&&(We=!0))}function e0(e,t,a,l){ne=e;var i=0;do{if(an&&(ln=null),es=0,an=!1,25<=i)throw Error(o(301));if(i+=1,Fe=Me=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=U0,u=t(a,l)}while(an);return u}function ub(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?ts(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function Hu(){var e=wi!==0;return wi=0,e}function qu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Qu(e){if(ji){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ji=!1}oa=0,Fe=Me=ne=null,an=!1,es=wi=0,ln=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ne.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Ze(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Fe===null?ne.memoizedState:Fe.next;if(t!==null)Fe=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(o(467)):Error(o(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Fe===null?ne.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ts(e){var t=es;return es+=1,ln===null&&(ln=[]),e=Gd(ln,e,t),t=ne,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?L0:Pu),e}function Ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ts(e);if(e.$$typeof===X)return rt(e)}throw Error(o(438,String(e)))}function Vu(e){var t=null,a=ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ne.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Si(),ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Te;return t.index++,a}function fa(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=Ze();return Yu(t,Me,e)}function Yu(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var p=f=null,j=null,M=t,D=!1;do{var U=M.lane&-536870913;if(U!==M.lane?(oe&U)===U:(oa&U)===U){var z=M.revertLane;if(z===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),U===Wl&&(D=!0);else if((oa&z)===z){M=M.next,z===Wl&&(D=!0);continue}else U={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},j===null?(p=j=U,f=u):j=j.next=U,ne.lanes|=z,Ba|=z;U=M.action,jl&&a(u,U),u=M.hasEagerState?M.eagerState:a(u,U)}else z={lane:U,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},j===null?(p=j=z,f=u):j=j.next=z,ne.lanes|=U,Ba|=U;M=M.next}while(M!==null&&M!==t);if(j===null?f=u:j.next=p,!Ct(u,e.memoizedState)&&(We=!0,D&&(a=Il,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=j,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Gu(e){var t=Ze(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Ct(u,t.memoizedState)||(We=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function t0(e,t,a){var l=ne,i=Ze(),u=he;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!Ct((Me||i).memoizedState,a);if(f&&(i.memoizedState=a,We=!0),i=i.queue,Ku(n0.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,nn(9,{destroy:void 0},l0.bind(null,l,i,a,t),null),Re===null)throw Error(o(349));u||(oa&127)!==0||a0(l,t,a)}return a}function a0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ne.updateQueue,t===null?(t=Si(),ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function l0(e,t,a,l){t.value=a,t.getSnapshot=l,s0(t)&&i0(e)}function n0(e,t,a){return a(function(){s0(t)&&i0(e)})}function s0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function i0(e){var t=dl(e,2);t!==null&&jt(t,e,2)}function Zu(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),jl){Na(!0);try{a()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function r0(e,t,a,l){return e.baseState=a,Yu(e,Me,typeof l=="function"?l:fa)}function cb(e,t,a,l,i){if(Mi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,u0(t,u)):(u.next=a.next,t.pending=a.next=u)}}function u0(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=R.T,f={};R.T=f;try{var p=a(i,l),j=R.S;j!==null&&j(f,p),c0(e,t,p)}catch(M){Xu(e,t,M)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=a(i,l),c0(e,t,u)}catch(M){Xu(e,t,M)}}function c0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){o0(e,t,l)},function(l){return Xu(e,t,l)}):o0(e,t,a)}function o0(e,t,a){t.status="fulfilled",t.value=a,f0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,u0(e,a)))}function Xu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,f0(t),t=t.next;while(t!==l)}e.action=null}function f0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function d0(e,t){return t}function h0(e,t){if(he){var a=Re.formState;if(a!==null){e:{var l=ne;if(he){if(Le){t:{for(var i=Le,u=qt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Le=Vt(i.nextSibling),l=i.data==="F!";break e}}Oa(l)}l=!1}l&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d0,lastRenderedState:t},a.queue=l,a=R0.bind(null,ne,l),l.dispatch=a,l=Zu(!1),u=Iu.bind(null,ne,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=cb.bind(null,ne,i,u,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function m0(e){var t=Ze();return v0(t,Me,e)}function v0(e,t,a){if(t=Yu(e,t,d0)[0],e=Ei(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ts(t)}catch(f){throw f===Pl?vi:f}else l=t;t=Ze();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(ne.flags|=2048,nn(9,{destroy:void 0},ob.bind(null,i,a),null)),[l,u,e]}function ob(e,t){e.action=t}function p0(e){var t=Ze(),a=Me;if(a!==null)return v0(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function nn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Si(),ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function g0(){return Ze().memoizedState}function Ci(e,t,a,l){var i=mt();ne.flags|=e,i.memoizedState=nn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ai(e,t,a,l){var i=Ze();l=l===void 0?null:l;var u=i.memoizedState.inst;Me!==null&&l!==null&&ku(l,Me.memoizedState.deps)?i.memoizedState=nn(t,u,a,l):(ne.flags|=e,i.memoizedState=nn(1|t,u,a,l))}function x0(e,t){Ci(8390656,8,e,t)}function Ku(e,t){Ai(2048,8,e,t)}function fb(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Si(),ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function b0(e){var t=Ze().memoizedState;return fb({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function y0(e,t){return Ai(4,2,e,t)}function j0(e,t){return Ai(4,4,e,t)}function w0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function S0(e,t,a){a=a!=null?a.concat([e]):null,Ai(4,4,w0.bind(null,t,e),a)}function $u(){}function N0(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&ku(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function E0(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&ku(t,l[1]))return l[0];if(l=e(),jl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l}function Ju(e,t,a){return a===void 0||(oa&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ch(),ne.lanes|=e,Ba|=e,a)}function C0(e,t,a,l){return Ct(a,t)?a:tn.current!==null?(e=Ju(e,a,l),Ct(e,t)||(We=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(oe&261930)===0?(We=!0,e.memoizedState=a):(e=Ch(),ne.lanes|=e,Ba|=e,t)}function A0(e,t,a,l,i){var u=q.p;q.p=u!==0&&8>u?u:8;var f=R.T,p={};R.T=p,Iu(e,!1,t,a);try{var j=i(),M=R.S;if(M!==null&&M(p,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var D=ib(j,l);as(e,t,D,Rt(e))}else as(e,t,l,Rt(e))}catch(U){as(e,t,{then:function(){},status:"rejected",reason:U},Rt())}finally{q.p=u,f!==null&&p.types!==null&&(f.types=p.types),R.T=f}}function db(){}function Fu(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=M0(e).queue;A0(e,i,t,Z,a===null?db:function(){return O0(e),a(l)})}function M0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function O0(e){var t=M0(e);t.next===null&&(t=e.alternate.memoizedState),as(e,t.next.queue,{},Rt())}function Wu(){return rt(bs)}function z0(){return Ze().memoizedState}function T0(){return Ze().memoizedState}function hb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var l=Da(t,e,a);l!==null&&(jt(l,t,a),Wn(l,t,a)),t={cache:Cu()},e.payload=t;return}t=t.return}}function mb(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)?D0(t,a):(a=vu(e,t,a,l),a!==null&&(jt(a,e,l),_0(a,t,l)))}function R0(e,t,a){var l=Rt();as(e,t,a,l)}function as(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))D0(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,p=u(f,a);if(i.hasEagerState=!0,i.eagerState=p,Ct(p,f))return ui(e,t,i,0),Re===null&&ri(),!1}catch{}if(a=vu(e,t,i,l),a!==null)return jt(a,e,l),_0(a,t,l),!0}return!1}function Iu(e,t,a,l){if(l={lane:2,revertLane:zc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(o(479))}else t=vu(e,a,l,2),t!==null&&jt(t,e,2)}function Mi(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function D0(e,t){an=ji=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function _0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Hf(e,a)}}var ls={readContext:rt,use:Ni,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ls.useEffectEvent=Qe;var L0={readContext:rt,use:Ni,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:x0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ci(4194308,4,w0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(jl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var i=a(t);if(jl){Na(!0);try{a(t)}finally{Na(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=mb.bind(null,ne,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zu(e);var t=e.queue,a=R0.bind(null,ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:$u,useDeferredValue:function(e,t){var a=mt();return Ju(a,e,t)},useTransition:function(){var e=Zu(!1);return e=A0.bind(null,ne,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ne,i=mt();if(he){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Re===null)throw Error(o(349));(oe&127)!==0||a0(l,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,x0(n0.bind(null,l,u,e),[e]),l.flags|=2048,nn(9,{destroy:void 0},l0.bind(null,l,u,a,t),null),a},useId:function(){var e=mt(),t=Re.identifierPrefix;if(he){var a=Wt,l=Ft;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=wi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=rb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wu,useFormState:h0,useActionState:h0,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Iu.bind(null,ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vu,useCacheRefresh:function(){return mt().memoizedState=hb.bind(null,ne)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Pu={readContext:rt,use:Ni,useCallback:N0,useContext:rt,useEffect:Ku,useImperativeHandle:S0,useInsertionEffect:y0,useLayoutEffect:j0,useMemo:E0,useReducer:Ei,useRef:g0,useState:function(){return Ei(fa)},useDebugValue:$u,useDeferredValue:function(e,t){var a=Ze();return C0(a,Me.memoizedState,e,t)},useTransition:function(){var e=Ei(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:t0,useId:z0,useHostTransitionStatus:Wu,useFormState:m0,useActionState:m0,useOptimistic:function(e,t){var a=Ze();return r0(a,Me,e,t)},useMemoCache:Vu,useCacheRefresh:T0};Pu.useEffectEvent=b0;var U0={readContext:rt,use:Ni,useCallback:N0,useContext:rt,useEffect:Ku,useImperativeHandle:S0,useInsertionEffect:y0,useLayoutEffect:j0,useMemo:E0,useReducer:Gu,useRef:g0,useState:function(){return Gu(fa)},useDebugValue:$u,useDeferredValue:function(e,t){var a=Ze();return Me===null?Ju(a,e,t):C0(a,Me.memoizedState,e,t)},useTransition:function(){var e=Gu(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:ts(e),t]},useSyncExternalStore:t0,useId:z0,useHostTransitionStatus:Wu,useFormState:p0,useActionState:p0,useOptimistic:function(e,t){var a=Ze();return Me!==null?r0(a,Me,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vu,useCacheRefresh:T0};U0.useEffectEvent=b0;function ec(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:N({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var tc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ra(l);i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,l),t!==null&&(jt(t,e,l),Wn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ra(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,l),t!==null&&(jt(t,e,l),Wn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=Da(e,l,a),t!==null&&(jt(t,e,a),Wn(t,e,a))}};function k0(e,t,a,l,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,f):t.prototype&&t.prototype.isPureReactComponent?!Yn(a,l)||!Yn(i,u):!0}function B0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&tc.enqueueReplaceState(t,t.state,null)}function wl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=N({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function H0(e){ii(e)}function q0(e){console.error(e)}function Q0(e){ii(e)}function Oi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function V0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ac(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){Oi(e,t)},a}function Y0(e){return e=Ra(e),e.tag=3,e}function G0(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){V0(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){V0(t,a,l),typeof i!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function vb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Fl(t,a,i,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Qt===null?Qi():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===pi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Ac(e,l,i)),!1;case 22:return a.flags|=65536,l===pi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Ac(e,l,i)),!1}throw Error(o(435,a.tag))}return Ac(e,l,i),Qi(),!1}if(he)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==ju&&(e=Error(o(422),{cause:l}),Xn(kt(e,a)))):(l!==ju&&(t=Error(o(423),{cause:l}),Xn(kt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=kt(l,a),i=ac(e.stateNode,l,i),Ru(e,i),Ve!==4&&(Ve=2)),!1;var u=Error(o(520),{cause:l});if(u=kt(u,a),fs===null?fs=[u]:fs.push(u),Ve!==4&&(Ve=2),t===null)return!0;l=kt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=ac(a.stateNode,l,e),Ru(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ha===null||!Ha.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Y0(i),G0(i,e,a,l),Ru(a,i),!1}a=a.return}while(a!==null);return!1}var lc=Error(o(461)),We=!1;function ut(e,t,a,l){t.child=e===null?$d(t,null,a,l):yl(t,e.child,a,l)}function Z0(e,t,a,l,i){a=a.render;var u=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return pl(t),l=Bu(e,t,a,f,u,i),p=Hu(),e!==null&&!We?(qu(e,t,i),da(e,t,i)):(he&&p&&bu(t),t.flags|=1,ut(e,t,l,i),t.child)}function X0(e,t,a,l,i){if(e===null){var u=a.type;return typeof u=="function"&&!pu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,K0(e,t,u,l,i)):(e=oi(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!fc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:Yn,a(f,l)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,e=ia(u,l),e.ref=t.ref,e.return=t,t.child=e}function K0(e,t,a,l,i){if(e!==null){var u=e.memoizedProps;if(Yn(u,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=u,fc(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,da(e,t,i)}return nc(e,t,a,l,i)}function $0(e,t,a,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return J0(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mi(t,u!==null?u.cachePool:null),u!==null?Wd(t,u):_u(),Id(t);else return l=t.lanes=536870912,J0(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(mi(t,u.cachePool),Wd(t,u),La(),t.memoizedState=null):(e!==null&&mi(t,null),_u(),La());return ut(e,t,i,a),t.child}function ns(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function J0(e,t,a,l,i){var u=Mu();return u=u===null?null:{parent:Je._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&mi(t,null),_u(),Id(t),e!==null&&Fl(e,t,l,!0),t.childLanes=i,null}function zi(e,t){return t=Ri({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function F0(e,t,a){return yl(t,e.child,null,a),e=zi(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function pb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(he){if(l.mode==="hidden")return e=zi(t,l),t.lanes=536870912,ns(null,e);if(Uu(t),(e=Le)?(e=um(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=Dd(e),a.return=t,t.child=a,it=t,Le=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return zi(t,l)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Uu(t),i)if(t.flags&256)t.flags&=-257,t=F0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(We||Fl(e,t,a,!1),i=(a&e.childLanes)!==0,We||i){if(l=Re,l!==null&&(f=qf(l,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,dl(e,f),jt(l,e,f),lc;Qi(),t=F0(e,t,a)}else e=u.treeContext,Le=Vt(f.nextSibling),it=t,he=!0,Ma=null,qt=!1,e!==null&&Ud(t,e),t=zi(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ti(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function nc(e,t,a,l,i){return pl(t),a=Bu(e,t,a,l,void 0,i),l=Hu(),e!==null&&!We?(qu(e,t,i),da(e,t,i)):(he&&l&&bu(t),t.flags|=1,ut(e,t,a,i),t.child)}function W0(e,t,a,l,i,u){return pl(t),t.updateQueue=null,a=e0(t,l,a,i),Pd(e),l=Hu(),e!==null&&!We?(qu(e,t,u),da(e,t,u)):(he&&l&&bu(t),t.flags|=1,ut(e,t,a,u),t.child)}function I0(e,t,a,l,i){if(pl(t),t.stateNode===null){var u=Xl,f=a.contextType;typeof f=="object"&&f!==null&&(u=rt(f)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=tc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},zu(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?rt(f):Xl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ec(t,a,f,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&tc.enqueueReplaceState(u,u.state,null),Pn(t,l,u,i),In(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,j=wl(a,p);u.props=j;var M=u.context,D=a.contextType;f=Xl,typeof D=="object"&&D!==null&&(f=rt(D));var U=a.getDerivedStateFromProps;D=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||M!==f)&&B0(t,u,l,f),Ta=!1;var z=t.memoizedState;u.state=z,Pn(t,l,u,i),In(),M=t.memoizedState,p||z!==M||Ta?(typeof U=="function"&&(ec(t,a,U,l),M=t.memoizedState),(j=Ta||k0(t,a,j,l,z,M,f))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),u.props=l,u.state=M,u.context=f,l=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Tu(e,t),f=t.memoizedProps,D=wl(a,f),u.props=D,U=t.pendingProps,z=u.context,M=a.contextType,j=Xl,typeof M=="object"&&M!==null&&(j=rt(M)),p=a.getDerivedStateFromProps,(M=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==U||z!==j)&&B0(t,u,l,j),Ta=!1,z=t.memoizedState,u.state=z,Pn(t,l,u,i),In();var T=t.memoizedState;f!==U||z!==T||Ta||e!==null&&e.dependencies!==null&&di(e.dependencies)?(typeof p=="function"&&(ec(t,a,p,l),T=t.memoizedState),(D=Ta||k0(t,a,D,l,z,T,j)||e!==null&&e.dependencies!==null&&di(e.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,T,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,T,j)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),u.props=l,u.state=T,u.context=j,l=D):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Ti(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=yl(t,e.child,null,i),t.child=yl(t,null,a,i)):ut(e,t,a,i),t.memoizedState=u.state,e=t.child):e=da(e,t,i),e}function P0(e,t,a,l){return ml(),t.flags|=256,ut(e,t,a,l),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:Vd()}}function rc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function eh(e,t,a){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(he){if(i?_a(t):La(),(e=Le)?(e=um(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=Dd(e),a.return=t,t.child=a,it=t,Le=null)):e=null,e===null)throw Oa(t);return Yc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,i?(La(),i=t.mode,p=Ri({mode:"hidden",children:p},i),l=hl(l,i,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=ic(a),l.childLanes=rc(e,f,a),t.memoizedState=sc,ns(null,l)):(_a(t),uc(t,p))}var j=e.memoizedState;if(j!==null&&(p=j.dehydrated,p!==null)){if(u)t.flags&256?(_a(t),t.flags&=-257,t=cc(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),p=l.fallback,i=t.mode,l=Ri({mode:"visible",children:l.children},i),p=hl(p,i,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,yl(t,e.child,null,a),l=t.child,l.memoizedState=ic(a),l.childLanes=rc(e,f,a),t.memoizedState=sc,t=ns(null,l));else if(_a(t),Yc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var M=f.dgst;f=M,l=Error(o(419)),l.stack="",l.digest=f,Xn({value:l,source:null,stack:null}),t=cc(e,t,a)}else if(We||Fl(e,t,a,!1),f=(a&e.childLanes)!==0,We||f){if(f=Re,f!==null&&(l=qf(f,a),l!==0&&l!==j.retryLane))throw j.retryLane=l,dl(e,l),jt(f,e,l),lc;Vc(p)||Qi(),t=cc(e,t,a)}else Vc(p)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Le=Vt(p.nextSibling),it=t,he=!0,Ma=null,qt=!1,e!==null&&Ud(t,e),t=uc(t,l.children),t.flags|=4096);return t}return i?(La(),p=l.fallback,i=t.mode,j=e.child,M=j.sibling,l=ia(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,M!==null?p=ia(M,p):(p=hl(p,i,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,ns(null,l),l=t.child,p=e.child.memoizedState,p===null?p=ic(a):(i=p.cachePool,i!==null?(j=Je._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=Vd(),p={baseLanes:p.baseLanes|a,cachePool:i}),l.memoizedState=p,l.childLanes=rc(e,f,a),t.memoizedState=sc,ns(e.child,l)):(_a(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function uc(e,t){return t=Ri({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ri(e,t){return e=At(22,e,null,t),e.lanes=0,e}function cc(e,t,a){return yl(t,e.child,null,a),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function th(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Nu(e.return,t,a)}function oc(e,t,a,l,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function ah(e,t,a){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var f=Ge.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,Y(Ge,f),ut(e,t,l,a),l=he?Zn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&th(e,a,t);else if(e.tag===19)th(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&yi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),oc(t,!1,i,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}oc(t,!0,a,null,u,l);break;case"together":oc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function da(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Fl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&di(e)))}function gb(e,t,a){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),za(t,Je,e.memoizedState.cache),ml();break;case 27:case 5:G(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(_a(t),t.flags|=128,null):(a&t.child.childLanes)!==0?eh(e,t,a):(_a(t),e=da(e,t,a),e!==null?e.sibling:null);_a(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Fl(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return ah(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,$0(e,t,a,t.pendingProps);case 24:za(t,Je,e.memoizedState.cache)}return da(e,t,a)}function lh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!fc(e,a)&&(t.flags&128)===0)return We=!1,gb(e,t,a);We=(e.flags&131072)!==0}else We=!1,he&&(t.flags&1048576)!==0&&Ld(t,Zn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")pu(e)?(l=wl(e,l),t.tag=1,t=I0(null,t,e,l,a)):(t.tag=0,t=nc(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===I){t.tag=11,t=Z0(null,t,e,l,a);break e}else if(i===V){t.tag=14,t=X0(null,t,e,l,a);break e}}throw t=we(e)||e,Error(o(306,t,""))}}return t;case 0:return nc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=wl(l,t.pendingProps),I0(e,t,l,i,a);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Tu(e,t),Pn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,za(t,Je,l),l!==u.cache&&Eu(t,[Je],a,!0),In(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=P0(e,t,l,a);break e}else if(l!==i){i=kt(Error(o(424)),t),Xn(i),t=P0(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Vt(e.firstChild),it=t,he=!0,Ma=null,qt=!0,a=$d(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ml(),l===i){t=da(e,t,a);break e}ut(e,t,l,a)}t=t.child}return t;case 26:return Ti(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:he||(a=t.type,e=t.pendingProps,l=$i(le.current).createElement(a),l[st]=t,l[vt]=e,ct(l,a,e),lt(l),t.stateNode=l):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),e===null&&he&&(l=t.stateNode=fm(t.type,t.pendingProps,le.current),it=t,qt=!0,i=Le,Ya(t.type)?(Gc=i,Le=Vt(l.firstChild)):Le=i),ut(e,t,t.pendingProps.children,a),Ti(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&he&&((i=l=Le)&&(l=Kb(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,it=t,Le=Vt(l.firstChild),qt=!1,i=!0):i=!1),i||Oa(t)),G(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,l=u.children,Hc(i,u)?l=null:f!==null&&Hc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Bu(e,t,ub,null,null,a),bs._currentValue=i),Ti(e,t),ut(e,t,l,a),t.child;case 6:return e===null&&he&&((e=a=Le)&&(a=$b(a,t.pendingProps,qt),a!==null?(t.stateNode=a,it=t,Le=null,e=!0):e=!1),e||Oa(t)),null;case 13:return eh(e,t,a);case 4:return at(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=yl(t,null,l,a):ut(e,t,l,a),t.child;case 11:return Z0(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,za(t,t.type,l.value),ut(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,pl(t),i=rt(i),l=l(i),t.flags|=1,ut(e,t,l,a),t.child;case 14:return X0(e,t,t.type,t.pendingProps,a);case 15:return K0(e,t,t.type,t.pendingProps,a);case 19:return ah(e,t,a);case 31:return pb(e,t,a);case 22:return $0(e,t,a,t.pendingProps);case 24:return pl(t),l=rt(Je),e===null?(i=Mu(),i===null&&(i=Re,u=Cu(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:l,cache:i},zu(t),za(t,Je,i)):((e.lanes&a)!==0&&(Tu(e,t),Pn(t,null,null,a),In()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),za(t,Je,l)):(l=u.cache,za(t,Je,l),l!==i.cache&&Eu(t,[Je],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ha(e){e.flags|=4}function dc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(zh())e.flags|=8192;else throw bl=pi,Ou}else e.flags&=-16777217}function nh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(zh())e.flags|=8192;else throw bl=pi,Ou}function Di(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kf():536870912,e.lanes|=t,cn|=t)}function ss(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function xb(e,t,a){var l=t.pendingProps;switch(yu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(Je),Se(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Jl(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wu())),Ue(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ha(t),u!==null?(Ue(t),nh(t,u)):(Ue(t),dc(t,i,null,l,a))):u?u!==e.memoizedState?(ha(t),Ue(t),nh(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Ue(t),dc(t,i,e,l,a)),null;case 27:if(Ae(t),a=le.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}e=$.current,Jl(t)?kd(t):(e=fm(i,l,a),t.stateNode=e,ha(t))}return Ue(t),null;case 5:if(Ae(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}if(u=$.current,Jl(t))kd(t);else{var f=$i(le.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}u[st]=t,u[vt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(ct(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Ue(t),dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=le.current,Jl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=it,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||em(e.nodeValue,a)),e||Oa(t,!0)}else e=$i(e).createTextNode(l),e[st]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Jl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[st]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[st]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else i=wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Di(t,t.updateQueue),Ue(t),null);case 4:return Se(),e===null&&_c(t.stateNode.containerInfo),Ue(t),null;case 10:return ca(t.type),Ue(t),null;case 19:if(k(Ge),l=t.memoizedState,l===null)return Ue(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)ss(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yi(e),u!==null){for(t.flags|=128,ss(l,!1),e=u.updateQueue,t.updateQueue=e,Di(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Rd(a,e),a=a.sibling;return Y(Ge,Ge.current&1|2),he&&ra(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Bi&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304)}else{if(!i)if(e=yi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Di(t,e),ss(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!he)return Ue(t),null}else 2*St()-l.renderingStartTime>Bi&&a!==536870912&&(t.flags|=128,i=!0,ss(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,a=Ge.current,Y(Ge,i?a&1|2:a&1),he&&ra(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Ot(t),Lu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&Di(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&k(gl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Je),Ue(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function bb(e,t){switch(yu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Je),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Ge),null;case 4:return Se(),null;case 10:return ca(t.type),null;case 22:case 23:return Ot(t),Lu(),e!==null&&k(gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Je),null;case 25:return null;default:return null}}function sh(e,t){switch(yu(t),t.tag){case 3:ca(Je),Se();break;case 26:case 27:case 5:Ae(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:k(Ge);break;case 10:ca(t.type);break;case 22:case 23:Ot(t),Lu(),e!==null&&k(gl);break;case 24:ca(Je)}}function is(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var u=a.create,f=a.inst;l=u(),f.destroy=l}a=a.next}while(a!==i)}}catch(p){Ce(t,t.return,p)}}function Ua(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var j=a,M=p;try{M()}catch(D){Ce(i,j,D)}}}l=l.next}while(l!==u)}}catch(D){Ce(t,t.return,D)}}function ih(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Fd(t,a)}catch(l){Ce(e,e.return,l)}}}function rh(e,t,a){a.props=wl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function rs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function It(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function uh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function hc(e,t,a){try{var l=e.stateNode;Qb(l,e.type,a,t),l[vt]=t}catch(i){Ce(e,e.return,i)}}function ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ch(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ya(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(vc(e,t,a),e=e.sibling;e!==null;)vc(e,t,a),e=e.sibling}function _i(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(_i(e,t,a),e=e.sibling;e!==null;)_i(e,t,a),e=e.sibling}function oh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ct(t,l,a),t[st]=e,t[vt]=a}catch(u){Ce(e,e.return,u)}}var ma=!1,Ie=!1,pc=!1,fh=typeof WeakSet=="function"?WeakSet:Set,nt=null;function yb(e,t){if(e=e.containerInfo,kc=tr,e=Sd(e),cu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,p=-1,j=-1,M=0,D=0,U=e,z=null;t:for(;;){for(var T;U!==a||i!==0&&U.nodeType!==3||(p=f+i),U!==u||l!==0&&U.nodeType!==3||(j=f+l),U.nodeType===3&&(f+=U.nodeValue.length),(T=U.firstChild)!==null;)z=U,U=T;for(;;){if(U===e)break t;if(z===a&&++M===i&&(p=f),z===u&&++D===l&&(j=f),(T=U.nextSibling)!==null)break;U=z,z=U.parentNode}U=T}a=p===-1||j===-1?null:{start:p,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bc={focusedElem:e,selectionRange:a},tr=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var K=wl(a.type,i);e=l.getSnapshotBeforeUpdate(K,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ce(a,a.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Qc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function dh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&is(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(a,a.return,f)}else{var i=wl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(a,a.return,f)}}l&64&&ih(a),l&512&&rs(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==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{Fd(e,t)}catch(f){Ce(a,a.return,f)}}break;case 27:t===null&&l&4&&oh(a);case 26:case 5:pa(e,a),t===null&&l&4&&uh(a),l&512&&rs(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&vh(e,a);break;case 13:pa(e,a),l&4&&ph(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ob.bind(null,a),Jb(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||Ie,i=ma;var u=Ie;ma=l,(Ie=t)&&!u?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=i,Ie=u}break;case 30:break;default:pa(e,a)}}function hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,gt=!1;function va(e,t,a){for(a=a.child;a!==null;)mh(e,t,a),a=a.sibling}function mh(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Tn,a)}catch{}switch(a.tag){case 26:Ie||It(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ie||It(a,t);var l=ke,i=gt;Ya(a.type)&&(ke=a.stateNode,gt=!1),va(e,t,a),ps(a.stateNode),ke=l,gt=i;break;case 5:Ie||It(a,t);case 6:if(l=ke,i=gt,ke=null,va(e,t,a),ke=l,gt=i,ke!==null)if(gt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(a.stateNode)}catch(u){Ce(a,t,u)}else try{ke.removeChild(a.stateNode)}catch(u){Ce(a,t,u)}break;case 18:ke!==null&&(gt?(e=ke,im(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),gn(e)):im(ke,a.stateNode));break;case 4:l=ke,i=gt,ke=a.stateNode.containerInfo,gt=!0,va(e,t,a),ke=l,gt=i;break;case 0:case 11:case 14:case 15:Ua(2,a,t),Ie||Ua(4,a,t),va(e,t,a);break;case 1:Ie||(It(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&rh(a,t,l)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:Ie=(l=Ie)||a.memoizedState!==null,va(e,t,a),Ie=l;break;default:va(e,t,a)}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gn(e)}catch(a){Ce(t,t.return,a)}}}function ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gn(e)}catch(a){Ce(t,t.return,a)}}function jb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(o(435,e.tag))}}function Li(e,t){var a=jb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=zb.bind(null,e,l);l.then(i,i)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],u=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(Ya(p.type)){ke=p.stateNode,gt=!1;break e}break;case 5:ke=p.stateNode,gt=!1;break e;case 3:case 4:ke=p.stateNode.containerInfo,gt=!0;break e}p=p.return}if(ke===null)throw Error(o(160));mh(u,f,i),ke=null,gt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gh(t,e),t=t.sibling}var Xt=null;function gh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),bt(e),l&4&&(Ua(3,e,e.return),is(3,e),Ua(5,e,e.return));break;case 1:xt(t,e),bt(e),l&512&&(Ie||a===null||It(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Xt;if(xt(t,e),bt(e),l&512&&(Ie||a===null||It(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[_n]||u[st]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),ct(u,l,a),u[st]=e,lt(u),l=u;break e;case"link":var f=gm("link","href",i).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(u=f[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(p,1);break t}}u=i.createElement(l),ct(u,l,a),i.head.appendChild(u);break;case"meta":if(f=gm("meta","content",i).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(u=f[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(p,1);break t}}u=i.createElement(l),ct(u,l,a),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[st]=e,lt(u),l=u}e.stateNode=l}else xm(i,e.type,e.stateNode);else e.stateNode=pm(i,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?xm(i,e.type,e.stateNode):pm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&hc(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),bt(e),l&512&&(Ie||a===null||It(a,a.return)),a!==null&&l&4&&hc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),bt(e),l&512&&(Ie||a===null||It(a,a.return)),e.flags&32){i=e.stateNode;try{Hl(i,"")}catch(K){Ce(e,e.return,K)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,hc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(pc=!0);break;case 6:if(xt(t,e),bt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(K){Ce(e,e.return,K)}}break;case 3:if(Wi=null,i=Xt,Xt=Ji(t.containerInfo),xt(t,e),Xt=i,bt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{gn(t.containerInfo)}catch(K){Ce(e,e.return,K)}pc&&(pc=!1,xh(e));break;case 4:l=Xt,Xt=Ji(e.stateNode.containerInfo),xt(t,e),bt(e),Xt=l;break;case 12:xt(t,e),bt(e);break;case 31:xt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Li(e,l)));break;case 13:xt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ki=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Li(e,l)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,M=ma,D=Ie;if(ma=M||i,Ie=D||j,xt(t,e),Ie=D,ma=M,bt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ma||Ie||Sl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(u=j.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=j.stateNode;var U=j.memoizedProps.style,z=U!=null&&U.hasOwnProperty("display")?U.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(K){Ce(j,j.return,K)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(K){Ce(j,j.return,K)}}}else if(t.tag===18){if(a===null){j=t;try{var T=j.stateNode;i?rm(T,!0):rm(j.stateNode,!1)}catch(K){Ce(j,j.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Li(e,a))));break;case 19:xt(t,e),bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Li(e,l)));break;case 30:break;case 21:break;default:xt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ch(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=mc(e);_i(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(Hl(f,""),a.flags&=-33);var p=mc(e);_i(e,p,f);break;case 3:case 4:var j=a.stateNode.containerInfo,M=mc(e);vc(e,M,j);break;default:throw Error(o(161))}}catch(D){Ce(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dh(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),Sl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&rh(t,t.return,a),Sl(t);break;case 27:ps(t.stateNode);case 26:case 5:It(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:ga(i,u,a),is(4,u);break;case 1:if(ga(i,u,a),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Ce(l,l.return,M)}if(l=u,i=l.updateQueue,i!==null){var p=l.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)Jd(j[i],p)}catch(M){Ce(l,l.return,M)}}a&&f&64&&ih(u),rs(u,u.return);break;case 27:oh(u);case 26:case 5:ga(i,u,a),a&&l===null&&f&4&&uh(u),rs(u,u.return);break;case 12:ga(i,u,a);break;case 31:ga(i,u,a),a&&f&4&&vh(i,u);break;case 13:ga(i,u,a),a&&f&4&&ph(i,u);break;case 22:u.memoizedState===null&&ga(i,u,a),rs(u,u.return);break;case 30:break;default:ga(i,u,a)}t=t.sibling}}function gc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Kn(a))}function xc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e))}function Kt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bh(e,t,a,l),t=t.sibling}function bh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,l),i&2048&&is(9,t);break;case 1:Kt(e,t,a,l);break;case 3:Kt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e)));break;case 12:if(i&2048){Kt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,p=u.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ce(t,t.return,j)}}else Kt(e,t,a,l);break;case 31:Kt(e,t,a,l);break;case 13:Kt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?Kt(e,t,a,l):us(e,t):u._visibility&2?Kt(e,t,a,l):(u._visibility|=2,sn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&gc(f,t);break;case 24:Kt(e,t,a,l),i&2048&&xc(t.alternate,t);break;default:Kt(e,t,a,l)}}function sn(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,p=a,j=l,M=f.flags;switch(f.tag){case 0:case 11:case 15:sn(u,f,p,j,i),is(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?sn(u,f,p,j,i):us(u,f):(D._visibility|=2,sn(u,f,p,j,i)),i&&M&2048&&gc(f.alternate,f);break;case 24:sn(u,f,p,j,i),i&&M&2048&&xc(f.alternate,f);break;default:sn(u,f,p,j,i)}t=t.sibling}}function us(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:us(a,l),i&2048&&gc(l.alternate,l);break;case 24:us(a,l),i&2048&&xc(l.alternate,l);break;default:us(a,l)}t=t.sibling}}var cs=8192;function rn(e,t,a){if(e.subtreeFlags&cs)for(e=e.child;e!==null;)yh(e,t,a),e=e.sibling}function yh(e,t,a){switch(e.tag){case 26:rn(e,t,a),e.flags&cs&&e.memoizedState!==null&&r2(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:rn(e,t,a);break;case 3:case 4:var l=Xt;Xt=Ji(e.stateNode.containerInfo),rn(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=cs,cs=16777216,rn(e,t,a),cs=l):rn(e,t,a));break;default:rn(e,t,a)}}function jh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function os(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];nt=l,Sh(l,e)}jh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:os(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:os(e);break;case 12:os(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ui(e)):os(e);break;default:os(e)}}function Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];nt=l,Sh(l,e)}jh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),Ui(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ui(t));break;default:Ui(t)}e=e.sibling}}function Sh(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:Ua(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Kn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,nt=l;else e:for(a=e;nt!==null;){l=nt;var i=l.sibling,u=l.return;if(hh(l),l===a){nt=null;break e}if(i!==null){i.return=u,nt=i;break e}nt=u}}}var wb={getCacheForType:function(e){var t=rt(Je),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt(Je).controller.signal}},Sb=typeof WeakMap=="function"?WeakMap:Map,je=0,Re=null,ue=null,oe=0,Ee=0,zt=null,ka=!1,un=!1,bc=!1,xa=0,Ve=0,Ba=0,Nl=0,yc=0,Tt=0,cn=0,fs=null,yt=null,jc=!1,ki=0,Nh=0,Bi=1/0,Hi=null,Ha=null,tt=0,qa=null,on=null,ba=0,wc=0,Sc=null,Eh=null,ds=0,Nc=null;function Rt(){return(je&2)!==0&&oe!==0?oe&-oe:R.T!==null?zc():Qf()}function Ch(){if(Tt===0)if((oe&536870912)===0||he){var e=Ks;Ks<<=1,(Ks&3932160)===0&&(Ks=262144),Tt=e}else Tt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Tt}function jt(e,t,a){(e===Re&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(fn(e,0),Qa(e,oe,Tt,!1)),Dn(e,a),((je&2)===0||e!==Re)&&(e===Re&&((je&2)===0&&(Nl|=a),Ve===4&&Qa(e,oe,Tt,!1)),Pt(e))}function Ah(e,t,a){if((je&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Rn(e,t),i=l?Cb(e,t):Cc(e,t,!0),u=l;do{if(i===0){un&&!l&&Qa(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Nb(a)){i=Cc(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=fs;var j=p.current.memoizedState.isDehydrated;if(j&&(fn(p,f).flags|=256),f=Cc(p,f,!1),f!==2){if(bc&&!j){p.errorRecoveryDisabledLanes|=u,Nl|=u,i=4;break e}u=yt,yt=i,u!==null&&(yt===null?yt=u:yt.push.apply(yt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){fn(e,0),Qa(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Qa(l,t,Tt,!ka);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=ki+300-St(),10<i)){if(Qa(l,t,Tt,!ka),Js(l,0,!0)!==0)break e;ba=t,l.timeoutHandle=nm(Mh.bind(null,l,a,yt,Hi,jc,t,Tt,Nl,cn,ka,u,"Throttled",-0,0),i);break e}Mh(l,a,yt,Hi,jc,t,Tt,Nl,cn,ka,u,null,-0,0)}}break}while(!0);Pt(e)}function Mh(e,t,a,l,i,u,f,p,j,M,D,U,z,T){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},yh(t,u,U);var K=(u&62914560)===u?ki-St():(u&4194048)===u?Nh-St():0;if(K=u2(U,K),K!==null){ba=u,e.cancelPendingCommit=K(Uh.bind(null,e,t,u,a,l,i,f,p,j,D,U,null,z,T)),Qa(e,u,f,!M);return}}Uh(e,t,u,a,l,i,f,p,j)}function Nb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],u=i.getSnapshot;i=i.value;try{if(!Ct(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qa(e,t,a,l){t&=~yc,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Et(i),f=1<<u;l[u]=-1,i&=~f}a!==0&&Bf(e,a,t)}function qi(){return(je&6)===0?(hs(0),!1):!0}function Ec(){if(ue!==null){if(Ee===0)var e=ue.return;else e=ue,ua=vl=null,Qu(e),en=null,Jn=0,e=ue;for(;e!==null;)sh(e.alternate,e),e=e.return;ue=null}}function fn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Gb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ba=0,Ec(),Re=e,ue=a=ia(e.current,null),oe=t,Ee=0,zt=null,ka=!1,un=Rn(e,t),bc=!1,cn=Tt=yc=Nl=Ba=Ve=0,yt=fs=null,jc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Et(l),u=1<<i;t|=e[i],l&=~u}return xa=t,ri(),a}function Oh(e,t){ne=null,R.H=ls,t===Pl||t===vi?(t=Zd(),Ee=3):t===Ou?(t=Zd(),Ee=4):Ee=t===lc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ue===null&&(Ve=1,Oi(e,kt(t,e.current)))}function zh(){var e=Mt.current;return e===null?!0:(oe&4194048)===oe?Qt===null:(oe&62914560)===oe||(oe&536870912)!==0?e===Qt:!1}function Th(){var e=R.H;return R.H=ls,e===null?ls:e}function Rh(){var e=R.A;return R.A=wb,e}function Qi(){Ve=4,ka||(oe&4194048)!==oe&&Mt.current!==null||(un=!0),(Ba&134217727)===0&&(Nl&134217727)===0||Re===null||Qa(Re,oe,Tt,!1)}function Cc(e,t,a){var l=je;je|=2;var i=Th(),u=Rh();(Re!==e||oe!==t)&&(Hi=null,fn(e,t)),t=!1;var f=Ve;e:do try{if(Ee!==0&&ue!==null){var p=ue,j=zt;switch(Ee){case 8:Ec(),f=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var M=Ee;if(Ee=0,zt=null,dn(e,p,j,M),a&&un){f=0;break e}break;default:M=Ee,Ee=0,zt=null,dn(e,p,j,M)}}Eb(),f=Ve;break}catch(D){Oh(e,D)}while(!0);return t&&e.shellSuspendCounter++,ua=vl=null,je=l,R.H=i,R.A=u,ue===null&&(Re=null,oe=0,ri()),f}function Eb(){for(;ue!==null;)Dh(ue)}function Cb(e,t){var a=je;je|=2;var l=Th(),i=Rh();Re!==e||oe!==t?(Hi=null,Bi=St()+500,fn(e,t)):un=Rn(e,t);e:do try{if(Ee!==0&&ue!==null){t=ue;var u=zt;t:switch(Ee){case 1:Ee=0,zt=null,dn(e,t,u,1);break;case 2:case 9:if(Yd(u)){Ee=0,zt=null,_h(t);break}t=function(){Ee!==2&&Ee!==9||Re!==e||(Ee=7),Pt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Yd(u)?(Ee=0,zt=null,_h(t)):(Ee=0,zt=null,dn(e,t,u,7));break;case 5:var f=null;switch(ue.tag){case 26:f=ue.memoizedState;case 5:case 27:var p=ue;if(f?bm(f):p.stateNode.complete){Ee=0,zt=null;var j=p.sibling;if(j!==null)ue=j;else{var M=p.return;M!==null?(ue=M,Vi(M)):ue=null}break t}}Ee=0,zt=null,dn(e,t,u,5);break;case 6:Ee=0,zt=null,dn(e,t,u,6);break;case 8:Ec(),Ve=6;break e;default:throw Error(o(462))}}Ab();break}catch(D){Oh(e,D)}while(!0);return ua=vl=null,R.H=l,R.A=i,je=a,ue!==null?0:(Re=null,oe=0,ri(),Ve)}function Ab(){for(;ue!==null&&!Fg();)Dh(ue)}function Dh(e){var t=lh(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?Vi(e):ue=t}function _h(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=W0(a,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=W0(a,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Qu(t);default:sh(a,t),t=ue=Rd(t,xa),t=lh(a,t,xa)}e.memoizedProps=e.pendingProps,t===null?Vi(e):ue=t}function dn(e,t,a,l){ua=vl=null,Qu(t),en=null,Jn=0;var i=t.return;try{if(vb(e,i,t,a,oe)){Ve=1,Oi(e,kt(a,e.current)),ue=null;return}}catch(u){if(i!==null)throw ue=i,u;Ve=1,Oi(e,kt(a,e.current)),ue=null;return}t.flags&32768?(he||l===1?e=!0:un||(oe&536870912)!==0?e=!1:(ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=Mt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lh(t,e)):Vi(t)}function Vi(e){var t=e;do{if((t.flags&32768)!==0){Lh(t,ka);return}e=t.return;var a=xb(t.alternate,t,xa);if(a!==null){ue=a;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Ve===0&&(Ve=5)}function Lh(e,t){do{var a=bb(e.alternate,e);if(a!==null){a.flags&=32767,ue=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=a}while(e!==null);Ve=6,ue=null}function Uh(e,t,a,l,i,u,f,p,j){e.cancelPendingCommit=null;do Yi();while(tt!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=mu,ix(e,a,u,f,p,j),e===Re&&(ue=Re=null,oe=0),on=t,qa=e,ba=a,wc=u,Sc=i,Eh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tb(Zs,function(){return Qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,i=q.p,q.p=2,f=je,je|=4;try{yb(e,t,a)}finally{je=f,q.p=i,R.T=l}}tt=1,kh(),Bh(),Hh()}}function kh(){if(tt===1){tt=0;var e=qa,t=on,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=je;je|=4;try{gh(t,e);var u=Bc,f=Sd(e.containerInfo),p=u.focusedElem,j=u.selectionRange;if(f!==p&&p&&p.ownerDocument&&wd(p.ownerDocument.documentElement,p)){if(j!==null&&cu(p)){var M=j.start,D=j.end;if(D===void 0&&(D=M),"selectionStart"in p)p.selectionStart=M,p.selectionEnd=Math.min(D,p.value.length);else{var U=p.ownerDocument||document,z=U&&U.defaultView||window;if(z.getSelection){var T=z.getSelection(),K=p.textContent.length,P=Math.min(j.start,K),ze=j.end===void 0?P:Math.min(j.end,K);!T.extend&&P>ze&&(f=ze,ze=P,P=f);var E=jd(p,P),w=jd(p,ze);if(E&&w&&(T.rangeCount!==1||T.anchorNode!==E.node||T.anchorOffset!==E.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)){var A=U.createRange();A.setStart(E.node,E.offset),T.removeAllRanges(),P>ze?(T.addRange(A),T.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),T.addRange(A))}}}}for(U=[],T=p;T=T.parentNode;)T.nodeType===1&&U.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<U.length;p++){var L=U[p];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}tr=!!kc,Bc=kc=null}finally{je=i,q.p=l,R.T=a}}e.current=t,tt=2}}function Bh(){if(tt===2){tt=0;var e=qa,t=on,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=je;je|=4;try{dh(e,t.alternate,t)}finally{je=i,q.p=l,R.T=a}}tt=3}}function Hh(){if(tt===4||tt===3){tt=0,Wg();var e=qa,t=on,a=ba,l=Eh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,on=qa=null,qh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ha=null),Gr(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Tn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,i=q.p,q.p=2,R.T=null;try{for(var u=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];u(p.value,{componentStack:p.stack})}}finally{R.T=t,q.p=i}}(ba&3)!==0&&Yi(),Pt(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Nc?ds++:(ds=0,Nc=e):ds=0,hs(0)}}function qh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kn(t)))}function Yi(){return kh(),Bh(),Hh(),Qh()}function Qh(){if(tt!==5)return!1;var e=qa,t=wc;wc=0;var a=Gr(ba),l=R.T,i=q.p;try{q.p=32>a?32:a,R.T=null,a=Sc,Sc=null;var u=qa,f=ba;if(tt=0,on=qa=null,ba=0,(je&6)!==0)throw Error(o(331));var p=je;if(je|=4,wh(u.current),bh(u,u.current,f,a),je=p,hs(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Tn,u)}catch{}return!0}finally{q.p=i,R.T=l,qh(e,t)}}function Vh(e,t,a){t=kt(a,t),t=ac(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(Dn(e,2),Pt(e))}function Ce(e,t,a){if(e.tag===3)Vh(e,e,a);else for(;t!==null;){if(t.tag===3){Vh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=kt(a,e),a=Y0(2),l=Da(t,a,2),l!==null&&(G0(a,l,t,e),Dn(l,2),Pt(l));break}}t=t.return}}function Ac(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Sb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(bc=!0,i.add(a),e=Mb.bind(null,e,t,a),t.then(e,e))}function Mb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Re===e&&(oe&a)===a&&(Ve===4||Ve===3&&(oe&62914560)===oe&&300>St()-ki?(je&2)===0&&fn(e,0):yc|=a,cn===oe&&(cn=0)),Pt(e)}function Yh(e,t){t===0&&(t=kf()),e=dl(e,t),e!==null&&(Dn(e,t),Pt(e))}function Ob(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yh(e,a)}function zb(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Yh(e,a)}function Tb(e,t){return qr(e,t)}var Gi=null,hn=null,Mc=!1,Zi=!1,Oc=!1,Va=0;function Pt(e){e!==hn&&e.next===null&&(hn===null?Gi=hn=e:hn=hn.next=e),Zi=!0,Mc||(Mc=!0,Db())}function hs(e,t){if(!Oc&&Zi){Oc=!0;do for(var a=!1,l=Gi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var f=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-Et(42|e)+1)-1,u&=i&~(f&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Kh(l,u))}else u=oe,u=Js(l,l===Re?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Rn(l,u)||(a=!0,Kh(l,u));l=l.next}while(a);Oc=!1}}function Rb(){Gh()}function Gh(){Zi=Mc=!1;var e=0;Va!==0&&Yb()&&(e=Va);for(var t=St(),a=null,l=Gi;l!==null;){var i=l.next,u=Zh(l,t);u===0?(l.next=null,a===null?Gi=i:a.next=i,i===null&&(hn=a)):(a=l,(e!==0||(u&3)!==0)&&(Zi=!0)),l=i}tt!==0&&tt!==5||hs(e),Va!==0&&(Va=0)}function Zh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Et(u),p=1<<f,j=i[f];j===-1?((p&a)===0||(p&l)!==0)&&(i[f]=sx(p,t)):j<=t&&(e.expiredLanes|=p),u&=~p}if(t=Re,a=oe,a=Js(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Qr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Rn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Qr(l),Gr(a)){case 2:case 8:a=Lf;break;case 32:a=Zs;break;case 268435456:a=Uf;break;default:a=Zs}return l=Xh.bind(null,e),a=qr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Qr(l),e.callbackPriority=2,e.callbackNode=null,2}function Xh(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Yi()&&e.callbackNode!==a)return null;var l=oe;return l=Js(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ah(e,l,t),Zh(e,St()),e.callbackNode!=null&&e.callbackNode===a?Xh.bind(null,e):null)}function Kh(e,t){if(Yi())return null;Ah(e,t,!0)}function Db(){Zb(function(){(je&6)!==0?qr(_f,Rb):Gh()})}function zc(){if(Va===0){var e=Wl;e===0&&(e=Xs,Xs<<=1,(Xs&261888)===0&&(Xs=256)),Va=e}return Va}function $h(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ps(""+e)}function Jh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function _b(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var u=$h((i[vt]||null).action),f=l.submitter;f&&(t=(t=f[vt]||null)?$h(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var p=new li("action","action",null,l,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Va!==0){var j=f?Jh(i,f):new FormData(i);Fu(a,{pending:!0,data:j,method:i.method,action:u},null,j)}}else typeof u=="function"&&(p.preventDefault(),j=f?Jh(i,f):new FormData(i),Fu(a,{pending:!0,data:j,method:i.method,action:u},u,j))},currentTarget:i}]})}}for(var Tc=0;Tc<hu.length;Tc++){var Rc=hu[Tc],Lb=Rc.toLowerCase(),Ub=Rc[0].toUpperCase()+Rc.slice(1);Zt(Lb,"on"+Ub)}Zt(Cd,"onAnimationEnd"),Zt(Ad,"onAnimationIteration"),Zt(Md,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Ix,"onTransitionRun"),Zt(Px,"onTransitionStart"),Zt(eb,"onTransitionCancel"),Zt(Od,"onTransitionEnd"),kl("onMouseEnter",["mouseout","mouseover"]),kl("onMouseLeave",["mouseout","mouseover"]),kl("onPointerEnter",["pointerout","pointerover"]),kl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),kb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function Fh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],j=p.instance,M=p.currentTarget;if(p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=M;try{u(i)}catch(D){ii(D)}i.currentTarget=null,u=j}else for(f=0;f<l.length;f++){if(p=l[f],j=p.instance,M=p.currentTarget,p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=M;try{u(i)}catch(D){ii(D)}i.currentTarget=null,u=j}}}}function ce(e,t){var a=t[Zr];a===void 0&&(a=t[Zr]=new Set);var l=e+"__bubble";a.has(l)||(Wh(t,e,2,!1),a.add(l))}function Dc(e,t,a){var l=0;t&&(l|=4),Wh(a,e,l,t)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function _c(e){if(!e[Xi]){e[Xi]=!0,Gf.forEach(function(a){a!=="selectionchange"&&(kb.has(a)||Dc(a,!1,e),Dc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xi]||(t[Xi]=!0,Dc("selectionchange",!1,t))}}function Wh(e,t,a,l){switch(Cm(t)){case 2:var i=f2;break;case 8:i=d2;break;default:i=Jc}a=i.bind(null,t,a,e),i=void 0,!eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Lc(e,t,a,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=l.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=_l(p),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){l=u=f;continue e}p=p.parentNode}}l=l.return}ad(function(){var M=u,D=Ir(a),U=[];e:{var z=zd.get(e);if(z!==void 0){var T=li,K=e;switch(e){case"keypress":if(ti(a)===0)break e;case"keydown":case"keyup":T=zx;break;case"focusin":K="focus",T=nu;break;case"focusout":K="blur",T=nu;break;case"beforeblur":case"afterblur":T=nu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=xx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Dx;break;case Cd:case Ad:case Md:T=jx;break;case Od:T=Lx;break;case"scroll":case"scrollend":T=px;break;case"wheel":T=kx;break;case"copy":case"cut":case"paste":T=Sx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=rd;break;case"toggle":case"beforetoggle":T=Hx}var P=(t&4)!==0,ze=!P&&(e==="scroll"||e==="scrollend"),E=P?z!==null?z+"Capture":null:z;P=[];for(var w=M,A;w!==null;){var L=w;if(A=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||A===null||E===null||(L=Un(w,E),L!=null&&P.push(vs(w,L,A))),ze)break;w=w.return}0<P.length&&(z=new T(z,K,null,a,D),U.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",z&&a!==Wr&&(K=a.relatedTarget||a.fromElement)&&(_l(K)||K[Dl]))break e;if((T||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,T?(K=a.relatedTarget||a.toElement,T=M,K=K?_l(K):null,K!==null&&(ze=m(K),P=K.tag,K!==ze||P!==5&&P!==27&&P!==6)&&(K=null)):(T=null,K=M),T!==K)){if(P=sd,L="onMouseLeave",E="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(P=rd,L="onPointerLeave",E="onPointerEnter",w="pointer"),ze=T==null?z:Ln(T),A=K==null?z:Ln(K),z=new P(L,w+"leave",T,a,D),z.target=ze,z.relatedTarget=A,L=null,_l(D)===M&&(P=new P(E,w+"enter",K,a,D),P.target=A,P.relatedTarget=ze,L=P),ze=L,T&&K)t:{for(P=Bb,E=T,w=K,A=0,L=E;L;L=P(L))A++;L=0;for(var W=w;W;W=P(W))L++;for(;0<A-L;)E=P(E),A--;for(;0<L-A;)w=P(w),L--;for(;A--;){if(E===w||w!==null&&E===w.alternate){P=E;break t}E=P(E),w=P(w)}P=null}else P=null;T!==null&&Ih(U,z,T,P,!1),K!==null&&ze!==null&&Ih(U,ze,K,P,!0)}}e:{if(z=M?Ln(M):window,T=z.nodeName&&z.nodeName.toLowerCase(),T==="select"||T==="input"&&z.type==="file")var be=vd;else if(hd(z))if(pd)be=Jx;else{be=Kx;var J=Xx}else T=z.nodeName,!T||T.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&Fr(M.elementType)&&(be=vd):be=$x;if(be&&(be=be(e,M))){md(U,be,a,D);break e}J&&J(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&Jr(z,"number",z.value)}switch(J=M?Ln(M):window,e){case"focusin":(hd(J)||J.contentEditable==="true")&&(Yl=J,ou=M,Gn=null);break;case"focusout":Gn=ou=Yl=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Nd(U,a,D);break;case"selectionchange":if(Wx)break;case"keydown":case"keyup":Nd(U,a,D)}var se;if(iu)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else Vl?fd(e,a)&&(fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(fe="onCompositionStart");fe&&(ud&&a.locale!=="ko"&&(Vl||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&Vl&&(se=ld()):(Ca=D,tu="value"in Ca?Ca.value:Ca.textContent,Vl=!0)),J=Ki(M,fe),0<J.length&&(fe=new id(fe,e,null,a,D),U.push({event:fe,listeners:J}),se?fe.data=se:(se=dd(a),se!==null&&(fe.data=se)))),(se=Qx?Vx(e,a):Yx(e,a))&&(fe=Ki(M,"onBeforeInput"),0<fe.length&&(J=new id("onBeforeInput","beforeinput",null,a,D),U.push({event:J,listeners:fe}),J.data=se)),_b(U,e,M,a,D)}Fh(U,t)})}function vs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ki(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Un(e,a),i!=null&&l.unshift(vs(e,i,u)),i=Un(e,t),i!=null&&l.push(vs(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Bb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ih(e,t,a,l,i){for(var u=t._reactName,f=[];a!==null&&a!==l;){var p=a,j=p.alternate,M=p.stateNode;if(p=p.tag,j!==null&&j===l)break;p!==5&&p!==26&&p!==27||M===null||(j=M,i?(M=Un(a,u),M!=null&&f.unshift(vs(a,M,j))):i||(M=Un(a,u),M!=null&&f.push(vs(a,M,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Hb=/\r\n?/g,qb=/\u0000|\uFFFD/g;function Ph(e){return(typeof e=="string"?e:""+e).replace(Hb,`
9
+ `).replace(qb,"")}function em(e,t){return t=Ph(t),Ph(e)===t}function Oe(e,t,a,l,i,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Hl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Hl(e,""+l);break;case"className":Ws(e,"class",l);break;case"tabIndex":Ws(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ws(e,a,l);break;case"style":ed(e,l,u);break;case"data":if(t!=="object"){Ws(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ps(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.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 u=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ps(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&ce("scroll",e);break;case"onScrollEnd":l!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ps(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Fs(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=mx.get(a)||a,Fs(e,a,l))}}function Uc(e,t,a,l,i,u){switch(a){case"style":ed(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Hl(e,l):(typeof l=="number"||typeof l=="bigint")&&Hl(e,""+l);break;case"onScroll":l!=null&&ce("scroll",e);break;case"onScrollEnd":l!=null&&ce("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[vt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Fs(e,a,l)}}}function ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var l=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,u,f,a,null)}}i&&Oe(e,t,"srcSet",a.srcSet,a,null),l&&Oe(e,t,"src",a.src,a,null);return;case"input":ce("invalid",e);var p=u=f=i=null,j=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var D=a[l];if(D!=null)switch(l){case"name":i=D;break;case"type":f=D;break;case"checked":j=D;break;case"defaultChecked":M=D;break;case"value":u=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:Oe(e,t,l,D,a,null)}}Ff(e,u,p,j,M,f,i,!1);return;case"select":ce("invalid",e),l=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(p=a[i],p!=null))switch(i){case"value":u=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Oe(e,t,i,p,a,null)}t=u,a=f,e.multiple=!!l,t!=null?Bl(e,!!l,t,!1):a!=null&&Bl(e,!!l,a,!0);return;case"textarea":ce("invalid",e),u=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":i=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Oe(e,t,f,p,a,null)}If(e,l,i,u);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,j,l,a,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(l=0;l<ms.length;l++)ce(ms[l],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,M,l,a,null)}return;default:if(Fr(t)){for(D in a)a.hasOwnProperty(D)&&(l=a[D],l!==void 0&&Uc(e,t,D,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Oe(e,t,p,l,a,null))}function Qb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,p=null,j=null,M=null,D=null;for(T in a){var U=a[T];if(a.hasOwnProperty(T)&&U!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":j=U;default:l.hasOwnProperty(T)||Oe(e,t,T,null,l,U)}}for(var z in l){var T=l[z];if(U=a[z],l.hasOwnProperty(z)&&(T!=null||U!=null))switch(z){case"type":u=T;break;case"name":i=T;break;case"checked":M=T;break;case"defaultChecked":D=T;break;case"value":f=T;break;case"defaultValue":p=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==U&&Oe(e,t,z,T,l,U)}}$r(e,f,p,j,M,D,u,i);return;case"select":T=f=p=z=null;for(u in a)if(j=a[u],a.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":T=j;default:l.hasOwnProperty(u)||Oe(e,t,u,null,l,j)}for(i in l)if(u=l[i],j=a[i],l.hasOwnProperty(i)&&(u!=null||j!=null))switch(i){case"value":z=u;break;case"defaultValue":p=u;break;case"multiple":f=u;default:u!==j&&Oe(e,t,i,u,l,j)}t=p,a=f,l=T,z!=null?Bl(e,!!a,z,!1):!!l!=!!a&&(t!=null?Bl(e,!!a,t,!0):Bl(e,!!a,a?[]:"",!1));return;case"textarea":T=z=null;for(p in a)if(i=a[p],a.hasOwnProperty(p)&&i!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Oe(e,t,p,null,l,i)}for(f in l)if(i=l[f],u=a[f],l.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":z=i;break;case"defaultValue":T=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Oe(e,t,f,i,l,u)}Wf(e,z,T);return;case"option":for(var K in a)if(z=a[K],a.hasOwnProperty(K)&&z!=null&&!l.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:Oe(e,t,K,null,l,z)}for(j in l)if(z=l[j],T=a[j],l.hasOwnProperty(j)&&z!==T&&(z!=null||T!=null))switch(j){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,j,z,l,T)}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 P in a)z=a[P],a.hasOwnProperty(P)&&z!=null&&!l.hasOwnProperty(P)&&Oe(e,t,P,null,l,z);for(M in l)if(z=l[M],T=a[M],l.hasOwnProperty(M)&&z!==T&&(z!=null||T!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,M,z,l,T)}return;default:if(Fr(t)){for(var ze in a)z=a[ze],a.hasOwnProperty(ze)&&z!==void 0&&!l.hasOwnProperty(ze)&&Uc(e,t,ze,void 0,l,z);for(D in l)z=l[D],T=a[D],!l.hasOwnProperty(D)||z===T||z===void 0&&T===void 0||Uc(e,t,D,z,l,T);return}}for(var E in a)z=a[E],a.hasOwnProperty(E)&&z!=null&&!l.hasOwnProperty(E)&&Oe(e,t,E,null,l,z);for(U in l)z=l[U],T=a[U],!l.hasOwnProperty(U)||z===T||z==null&&T==null||Oe(e,t,U,z,l,T)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],u=i.transferSize,f=i.initiatorType,p=i.duration;if(u&&p&&tm(f)){for(f=0,p=i.responseEnd,l+=1;l<a.length;l++){var j=a[l],M=j.startTime;if(M>p)break;var D=j.transferSize,U=j.initiatorType;D&&tm(U)&&(j=j.responseEnd,f+=D*(j<p?1:(p-M)/(j-M)))}if(--l,t+=8*(u+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var kc=null,Bc=null;function $i(e){return e.nodeType===9?e:e.ownerDocument}function am(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Hc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qc=null;function Yb(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var nm=typeof setTimeout=="function"?setTimeout:void 0,Gb=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,Zb=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Xb)}:nm;function Xb(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function im(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),gn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ps(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ps(a);for(var u=a.firstChild;u;){var f=u.nextSibling,p=u.nodeName;u[_n]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&ps(e.ownerDocument.body);a=i}while(a);gn(t)}function rm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Qc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Qc(a),Xr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Kb(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[_n])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function $b(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Vt(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function Yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gc=null;function cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Vt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=$i(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xr(e)}var Yt=new Map,dm=new Set;function Ji(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=q.d;q.d={f:Fb,r:Wb,D:Ib,C:Pb,L:e2,m:t2,X:l2,S:a2,M:n2};function Fb(){var e=ya.f(),t=qi();return e||t}function Wb(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?O0(t):ya.r(e)}var mn=typeof document>"u"?null:document;function hm(e,t,a){var l=mn;if(l&&typeof t=="string"&&t){var i=Lt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),dm.has(i)||(dm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ct(t,"link",e),lt(t),l.head.appendChild(t)))}}function Ib(e){ya.D(e),hm("dns-prefetch",e,null)}function Pb(e,t){ya.C(e,t),hm("preconnect",e,t)}function e2(e,t,a){ya.L(e,t,a);var l=mn;if(l&&e&&t){var i='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Lt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Lt(a.imageSizes)+'"]')):i+='[href="'+Lt(e)+'"]';var u=i;switch(t){case"style":u=vn(e);break;case"script":u=pn(e)}Yt.has(u)||(e=N({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(gs(u))||t==="script"&&l.querySelector(xs(u))||(t=l.createElement("link"),ct(t,"link",e),lt(t),l.head.appendChild(t)))}}function t2(e,t){ya.m(e,t);var a=mn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Lt(l)+'"][href="'+Lt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=pn(e)}if(!Yt.has(u)&&(e=N({rel:"modulepreload",href:e},t),Yt.set(u,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xs(u)))return}l=a.createElement("link"),ct(l,"link",e),lt(l),a.head.appendChild(l)}}}function a2(e,t,a){ya.S(e,t,a);var l=mn;if(l&&e){var i=Ul(l).hoistableStyles,u=vn(e);t=t||"default";var f=i.get(u);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(gs(u)))p.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(u))&&Zc(e,a);var j=f=l.createElement("link");lt(j),ct(j,"link",e),j._p=new Promise(function(M,D){j.onload=M,j.onerror=D}),j.addEventListener("load",function(){p.loading|=1}),j.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Fi(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(u,f)}}}function l2(e,t){ya.X(e,t);var a=mn;if(a&&e){var l=Ul(a).hoistableScripts,i=pn(e),u=l.get(i);u||(u=a.querySelector(xs(i)),u||(e=N({src:e,async:!0},t),(t=Yt.get(i))&&Xc(e,t),u=a.createElement("script"),lt(u),ct(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function n2(e,t){ya.M(e,t);var a=mn;if(a&&e){var l=Ul(a).hoistableScripts,i=pn(e),u=l.get(i);u||(u=a.querySelector(xs(i)),u||(e=N({src:e,async:!0,type:"module"},t),(t=Yt.get(i))&&Xc(e,t),u=a.createElement("script"),lt(u),ct(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function mm(e,t,a,l){var i=(i=le.current)?Ji(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=vn(a.href),a=Ul(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=vn(a.href);var u=Ul(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(gs(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),u||s2(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pn(a),a=Ul(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function vn(e){return'href="'+Lt(e)+'"'}function gs(e){return'link[rel="stylesheet"]['+e+"]"}function vm(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function s2(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ct(t,"link",a),lt(t),e.head.appendChild(t))}function pn(e){return'[src="'+Lt(e)+'"]'}function xs(e){return"script[async]"+e}function pm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Lt(a.href)+'"]');if(l)return t.instance=l,lt(l),l;var i=N({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ct(l,"style",i),Fi(l,a.precedence,e),t.instance=l;case"stylesheet":i=vn(a.href);var u=e.querySelector(gs(i));if(u)return t.state.loading|=4,t.instance=u,lt(u),u;l=vm(a),(i=Yt.get(i))&&Zc(l,i),u=(e.ownerDocument||e).createElement("link"),lt(u);var f=u;return f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ct(u,"link",l),t.state.loading|=4,Fi(u,a.precedence,e),t.instance=u;case"script":return u=pn(a.src),(i=e.querySelector(xs(u)))?(t.instance=i,lt(i),i):(l=a,(i=Yt.get(u))&&(l=N({},a),Xc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ct(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Fi(l,a.precedence,e));return t.instance}function Fi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)u=p;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wi=null;function gm(e,t,a){if(Wi===null){var l=new Map,i=Wi=new Map;i.set(a,l)}else i=Wi,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[_n]||u[st]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(u):l.set(f,[u])}}return l}function xm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function i2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function r2(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=vn(l.href),u=t.querySelector(gs(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,lt(u);return}u=t.ownerDocument||t,l=vm(l),(i=Yt.get(i))&&Zc(l,i),u=u.createElement("link"),lt(u);var f=u;f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ct(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ii.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Kc=0;function u2(e,t){return e.stylesheets&&e.count===0&&er(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&er(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Kc===0&&(Kc=62500*Vb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&er(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Kc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)er(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pi=null;function er(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pi=new Map,t.forEach(c2,e),Pi=null,Ii.call(e))}function c2(e,t){if(!(t.state.loading&4)){var a=Pi.get(e);if(a)var l=a.get(null);else{a=new Map,Pi.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||l,u===l&&a.set(null,i),a.set(f,i),this.count++,l=Ii.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var bs={$$typeof:X,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function o2(e,t,a,l,i,u,f,p,j){this.tag=1,this.containerInfo=e,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=Vr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vr(0),this.hiddenUpdates=Vr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function ym(e,t,a,l,i,u,f,p,j,M,D,U){return e=new o2(e,t,a,f,j,M,D,U,p),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=Cu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},zu(u),e}function jm(e){return e?(e=Xl,e):Xl}function wm(e,t,a,l,i,u){i=jm(i),l.context===null?l.context=i:l.pendingContext=i,l=Ra(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Da(e,l,t),a!==null&&(jt(a,e,t),Wn(a,e,t))}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function $c(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=dl(e,67108864);t!==null&&jt(t,e,67108864),$c(e,67108864)}}function Em(e){if(e.tag===13||e.tag===31){var t=Rt();t=Yr(t);var a=dl(e,t);a!==null&&jt(a,e,t),$c(e,t)}}var tr=!0;function f2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=2,Jc(e,t,a,l)}finally{q.p=u,R.T=i}}function d2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=8,Jc(e,t,a,l)}finally{q.p=u,R.T=i}}function Jc(e,t,a,l){if(tr){var i=Fc(l);if(i===null)Lc(e,t,l,ar,a),Am(e,l);else if(m2(i,e,t,a,l))l.stopPropagation();else if(Am(e,l),t&4&&-1<h2.indexOf(e)){for(;i!==null;){var u=Ll(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=rl(u.pendingLanes);if(f!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var j=1<<31-Et(f);p.entanglements[1]|=j,f&=~j}Pt(u),(je&6)===0&&(Bi=St()+500,hs(0))}}break;case 31:case 13:p=dl(u,2),p!==null&&jt(p,u,2),qi(),$c(u,2)}if(u=Fc(l),u===null&&Lc(e,t,l,ar,a),u===i)break;i=u}i!==null&&l.stopPropagation()}else Lc(e,t,l,null,a)}}function Fc(e){return e=Ir(e),Wc(e)}var ar=null;function Wc(e){if(ar=null,e=_l(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ar=e,null}function Cm(e){switch(e){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(Ig()){case _f:return 2;case Lf:return 8;case Zs:case Pg:return 32;case Uf:return 268435456;default:return 32}default:return 32}}var Ic=!1,Ga=null,Za=null,Xa=null,ys=new Map,js=new Map,Ka=[],h2="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 Am(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":js.delete(t.pointerId)}}function ws(e,t,a,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Ll(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function m2(e,t,a,l,i){switch(t){case"focusin":return Ga=ws(Ga,e,t,a,l,i),!0;case"dragenter":return Za=ws(Za,e,t,a,l,i),!0;case"mouseover":return Xa=ws(Xa,e,t,a,l,i),!0;case"pointerover":var u=i.pointerId;return ys.set(u,ws(ys.get(u)||null,e,t,a,l,i)),!0;case"gotpointercapture":return u=i.pointerId,js.set(u,ws(js.get(u)||null,e,t,a,l,i)),!0}return!1}function Mm(e){var t=_l(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Vf(e.priority,function(){Em(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,Vf(e.priority,function(){Em(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Fc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Wr=l,a.target.dispatchEvent(l),Wr=null}else return t=Ll(a),t!==null&&Nm(t),e.blockedOn=a,!1;t.shift()}return!0}function Om(e,t,a){lr(e)&&a.delete(t)}function v2(){Ic=!1,Ga!==null&&lr(Ga)&&(Ga=null),Za!==null&&lr(Za)&&(Za=null),Xa!==null&&lr(Xa)&&(Xa=null),ys.forEach(Om),js.forEach(Om)}function nr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,v2)))}var sr=null;function zm(e){sr!==e&&(sr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){sr===e&&(sr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Wc(l||a)===null)continue;break}var u=Ll(a);u!==null&&(e.splice(t,3),t-=3,Fu(u,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function gn(e){function t(j){return nr(j,e)}Ga!==null&&nr(Ga,e),Za!==null&&nr(Za,e),Xa!==null&&nr(Xa,e),ys.forEach(t),js.forEach(t);for(var a=0;a<Ka.length;a++){var l=Ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ka.length&&(a=Ka[0],a.blockedOn===null);)Mm(a),a.blockedOn===null&&Ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],u=a[l+1],f=i[vt]||null;if(typeof u=="function")f||zm(a);else if(f){var p=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[vt]||null)p=f.formAction;else if(Wc(i)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),zm(a)}}}function Tm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Pc(e){this._internalRoot=e}ir.prototype.render=Pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Rt();wm(a,l,e,t,null,null)},ir.prototype.unmount=Pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wm(e.current,2,null,e,null,null),qi(),t[Dl]=null}};function ir(e){this._internalRoot=e}ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ka.length&&t!==0&&t<Ka[a].priority;a++);Ka.splice(a,0,e),a===0&&Mm(e)}};var Rm=s.version;if(Rm!=="19.2.3")throw Error(o(527,Rm,"19.2.3"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var p2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rr.isDisabled&&rr.supportsFiber)try{Tn=rr.inject(p2),Nt=rr}catch{}}return yn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var a=!1,l="",i=H0,u=q0,f=Q0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=ym(e,1,!1,null,null,a,l,null,i,u,f,Tm),e[Dl]=t.current,_c(e),new Pc(t)},yn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(o(299));var l=!1,i="",u=H0,f=q0,p=Q0,j=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=ym(e,1,!0,t,a??null,l,i,j,u,f,p,Tm),t.context=jm(null),a=t.current,l=Rt(),l=Yr(l),i=Ra(l),i.callback=null,Da(a,i,l),a=l,t.current.lanes=a,Dn(t,a),Pt(t),e[Dl]=t.current,_c(e),new ir(t)},yn.version="19.2.3",yn}var _o;function Sv(){if(_o)return yr.exports;_o=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),yr.exports=wv(),yr.exports}var Nv=Sv();const Ev=eo(Nv);function Cv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const Av=h.forwardRef(Cv);function Mv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Ov=h.forwardRef(Mv);function zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const Tv=h.forwardRef(zv);function Rv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Pa=h.forwardRef(Rv);function Dv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Lo=h.forwardRef(Dv);function _v({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Lv=h.forwardRef(_v);function Uv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const Uo=h.forwardRef(Uv);function kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const Bv=h.forwardRef(kv);function Hv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const qv=h.forwardRef(Hv);function Qv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Vv=h.forwardRef(Qv);function Yv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Gv=h.forwardRef(Yv);function Zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Xv=h.forwardRef(Zv);function Kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const $v=h.forwardRef(Kv);function Jv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Fv=h.forwardRef(Jv);function Wv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const el=h.forwardRef(Wv);function Iv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const As=h.forwardRef(Iv);function Pv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const jn=h.forwardRef(Pv);function ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const tp=h.forwardRef(ep);function ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Al=h.forwardRef(ap);function lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const np=h.forwardRef(lp);function sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ms=h.forwardRef(sp);function ip({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const rp=h.forwardRef(ip);function up({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cp=h.forwardRef(up);function op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const wn=h.forwardRef(op);function fp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))}const ko=h.forwardRef(fp);function dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const Os=h.forwardRef(dp);function hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Nr=h.forwardRef(hp);function mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const vp=h.forwardRef(mp);function pp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const ea=h.forwardRef(pp);function gp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const xp=h.forwardRef(gp);function bp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const Sn=h.forwardRef(bp);function yp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const jp=h.forwardRef(yp);function wp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const Bo=h.forwardRef(wp);function Sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Er=h.forwardRef(Sp);function Np({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Ho=h.forwardRef(Np);function Ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const qo=h.forwardRef(Ep);function Cp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Qo=h.forwardRef(Cp);function Ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Mp=h.forwardRef(Ap);function Op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const zp=h.forwardRef(Op);function Tp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Cr=h.forwardRef(Tp);function Rp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Vo=h.forwardRef(Rp);function Dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const _p=h.forwardRef(Dp);function Lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const Up=h.forwardRef(Lp);function kp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const Bp=h.forwardRef(kp);function Hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const qp=h.forwardRef(Hp);function Qp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Ar=h.forwardRef(Qp);function Vp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const Yp=h.forwardRef(Vp);function Gp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Nn=h.forwardRef(Gp);function Zp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const ta=h.forwardRef(Zp);function Xp(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,d,m,v=[],x="",b=n.split("/");for(b[0]||b.shift();d=b.shift();)c=d[0],c==="*"?(v.push(c),x+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=d.indexOf("?",1),m=d.indexOf(".",1),v.push(d.substring(1,~o?o:~m?m:d.length)),x+=~o&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(x+=(~o?"?":"")+"\\"+d.substring(m))):x+="/"+d;return{keys:v,pattern:new RegExp("^"+x+(s?"(?=$|/)":"/?$"),"i")}}var Mr={exports:{}},Or={};var Yo;function Kp(){if(Yo)return Or;Yo=1;var n=Cs();function s(N,C){return N===C&&(N!==0||1/N===1/C)||N!==N&&C!==C}var c=typeof Object.is=="function"?Object.is:s,o=n.useState,d=n.useEffect,m=n.useLayoutEffect,v=n.useDebugValue;function x(N,C){var B=C(),O=o({inst:{value:B,getSnapshot:C}}),_=O[0].inst,Q=O[1];return m(function(){_.value=B,_.getSnapshot=C,b(_)&&Q({inst:_})},[N,B,C]),d(function(){return b(_)&&Q({inst:_}),N(function(){b(_)&&Q({inst:_})})},[N]),v(B),B}function b(N){var C=N.getSnapshot;N=N.value;try{var B=C();return!c(N,B)}catch{return!0}}function g(N,C){return C()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:x;return Or.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Or}var Go;function $p(){return Go||(Go=1,Mr.exports=Kp()),Mr.exports}var Jp=$p();const Fp=iv.useInsertionEffect,Wp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,Ip=Fp||Wp,Zo=n=>{const s=h.useRef([n,(...c)=>s[0](...c)]).current;return Ip(()=>{s[0]=n}),s[1]},Pp="popstate",zr="pushState",Tr="replaceState",Xo=[Pp,zr,Tr,"hashchange"],e1=n=>{for(const s of Xo)addEventListener(s,n);return()=>{for(const s of Xo)removeEventListener(s,n)}},Ko=(n,s)=>Jp.useSyncExternalStore(e1,n,s),$o=()=>location.search,t1=({ssrSearch:n}={})=>Ko($o,n!=null?()=>n:$o),Jo=()=>location.pathname,a1=({ssrPath:n}={})=>Ko(Jo,n!=null?()=>n:Jo),l1=(n,{replace:s=!1,state:c=null}={})=>history[s?Tr:zr](c,"",n),n1=(n={})=>[a1(n),l1],Fo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Fo]>"u"){for(const n of[zr,Tr]){const s=history[n];history[n]=function(){const c=s.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Fo,{value:!0})}const s1=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",Wo=(n="")=>n==="/"?"":n,i1=(n,s)=>n[0]==="~"?n.slice(1):Wo(s)+n,r1=(n="",s)=>s1(Io(Wo(n)),Io(s)),Io=n=>{try{return decodeURI(n)}catch{return n}},Po={hook:n1,searchHook:t1,parser:Xp,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},ef=h.createContext(Po),Ml=()=>h.useContext(ef),tf={},af=h.createContext(tf),u1=()=>h.useContext(af),zs=n=>{const[s,c]=n.hook(n);return[r1(n.base,s),Zo((o,d)=>c(i1(o,n.base),d))]},Ts=()=>zs(Ml()),Rr=(n,s,c,o)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",o),v=d.exec(c)||[],[x,...b]=v;return x!==void 0?[!0,(()=>{const g=m!==!1?Object.fromEntries(m.map((N,C)=>[N,b[C]])):v.groups;let y={...b};return g&&Object.assign(y,g),y})(),...o?[x]:[]]:[!1,null]},c1=n=>Rr(Ml().parser,n,Ts()[0]),o1=({children:n,...s})=>{const c=Ml(),o=s.hook?Po:c;let d=o;const[m,v=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=v,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let x=h.useRef({}),b=x.current,g=b;for(let y in o){const N=y==="base"?o[y]+(s[y]??""):s[y]??o[y];b===g&&N!==g[y]&&(x.current=g={...g}),g[y]=N,(N!==o[y]||N!==d[y])&&(d=g)}return h.createElement(ef.Provider,{value:d,children:n})},lf=({children:n,component:s},c)=>s?h.createElement(s,{params:c}):typeof n=="function"?n(c):n,f1=n=>{let s=h.useRef(tf);const c=s.current;return s.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,d])=>d!==c[o])?n:c},Ol=({path:n,nest:s,match:c,...o})=>{const d=Ml(),[m]=zs(d),[v,x,b]=c??Rr(d.parser,n,m,s),g=f1({...u1(),...x});if(!v)return null;const y=b?h.createElement(o1,{base:b},lf(o,g)):lf(o,g);return h.createElement(af.Provider,{value:g,children:y})};h.forwardRef((n,s)=>{const c=Ml(),[o,d]=zs(c),{to:m="",href:v=m,onClick:x,asChild:b,children:g,className:y,replace:N,state:C,...B}=n,O=Zo(Q=>{Q.ctrlKey||Q.metaKey||Q.altKey||Q.shiftKey||Q.button!==0||(x?.(Q),Q.defaultPrevented||(Q.preventDefault(),d(v,n)))}),_=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return b&&h.isValidElement(g)?h.cloneElement(g,{onClick:O,href:_}):h.createElement("a",{...B,onClick:O,href:_,className:y?.call?y(o===v):y,children:g,ref:s})});const nf=n=>Array.isArray(n)?n.flatMap(s=>nf(s&&s.type===h.Fragment?s.props.children:s)):[n],sf=({children:n,location:s})=>{const c=Ml(),[o]=zs(c);for(const d of nf(n)){let m=0;if(h.isValidElement(d)&&(m=Rr(c.parser,d.props.path,s||o,d.props.nest))[0])return h.cloneElement(d,{match:m})}return null};async function Xe(n,s={}){const c=await fetch(n,{...s,headers:{"Content-Type":"application/json",...s.headers}}),o=await c.json();if(!c.ok){const d=new Error(o.error||"Request failed");throw d.status=c.status,d.data=o,d}return o}const tl={async getReportData(){return Xe("/api/report-data")},async getStatus(){return Xe("/api/status")},async acceptBaseline(n){return Xe("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Xe("/api/baseline/accept-all",{method:"POST"})},async rejectBaseline(n){return Xe("/api/baseline/reject",{method:"POST",body:JSON.stringify({id:n})})},async resetBaselines(){return Xe("/api/baseline/reset",{method:"POST"})},async deleteComparison(n){return Xe("/api/baseline/delete",{method:"POST",body:JSON.stringify({id:n})})},async downloadBaselines(n,s,c){return Xe("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:s,projectSlug:c})})}},rf={async get(){return Xe("/api/config")},async updateProject(n){return Xe("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},Rs={async getStatus(){return Xe("/api/auth/status")},async initiateLogin(){return Xe("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Xe("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Xe("/api/auth/logout",{method:"POST"})}},Ds={async list(){return Xe("/api/projects")},async listMappings(){return Xe("/api/projects/mappings")},async createMapping(n){return Xe("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Xe(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){const s=new URLSearchParams;n.limit&&s.append("limit",String(n.limit)),n.branch&&s.append("branch",n.branch);const c=s.toString();return Xe(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,s,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const d=o.toString(),m=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(s)}/builds${d?`?${d}`:""}`;return Xe(m)}},me={auth:["auth"],authStatus:()=>[...me.auth,"status"],config:["config"],projectConfig:()=>[...me.config,"project"],globalConfig:()=>[...me.config,"global"],tdd:["tdd"],reportData:()=>[...me.tdd,"report"],status:()=>[...me.tdd,"status"],cloud:["cloud"],projects:()=>[...me.cloud,"projects"],builds:(n,s)=>[...me.cloud,"builds",n,s]};function _s(n={}){return Cl({queryKey:me.reportData(),queryFn:tl.getReportData,refetchInterval:n.polling!==!1?2e3:!1,...n})}function uf(){const n=wt();return Gt({mutationFn:s=>tl.acceptBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:me.reportData()});const c=n.getQueryData(me.reportData());return n.setQueryData(me.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"accepted"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(me.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function cf(){const n=wt();return Gt({mutationFn:()=>tl.acceptAllBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function d1(){const n=wt();return Gt({mutationFn:()=>tl.resetBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function of(){const n=wt();return Gt({mutationFn:s=>tl.rejectBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:me.reportData()});const c=n.getQueryData(me.reportData());return n.setQueryData(me.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"rejected"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(me.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function h1(){const n=wt();return Gt({mutationFn:s=>tl.deleteComparison(s),onSuccess:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function m1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const v1=h.forwardRef(m1);function ff({variant:n="info",title:s,children:c,dismissible:o=!1,onDismiss:d,icon:m,className:v="",...x}){const b={success:{container:"bg-emerald-500/10 border-emerald-500/20",icon:"text-emerald-400",title:"text-emerald-300",text:"text-emerald-200/80",DefaultIcon:el},warning:{container:"bg-amber-500/10 border-amber-500/20",icon:"text-amber-400",title:"text-amber-300",text:"text-amber-200/80",DefaultIcon:ea},danger:{container:"bg-red-500/10 border-red-500/20",icon:"text-red-400",title:"text-red-300",text:"text-red-200/80",DefaultIcon:Nn},info:{container:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",title:"text-blue-300",text:"text-blue-200/80",DefaultIcon:Er}},{container:g,icon:y,title:N,text:C,DefaultIcon:B}=b[n],O=m||B;return r.jsxs("div",{className:`flex gap-3 p-4 rounded-lg border ${g} ${v}`,...x,children:[r.jsx("div",{className:`flex-shrink-0 ${y}`,children:r.jsx(O,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:`text-sm font-medium ${N}`,children:s}),c&&r.jsx("div",{className:`text-sm ${C} ${s?"mt-1":""}`,children:c})]}),o&&r.jsx("button",{onClick:d,className:`flex-shrink-0 ${y} hover:opacity-70 transition-opacity`,children:r.jsx(ta,{className:"w-5 h-5"})})]})}function df({variant:n="approve",isActive:s=!1,onClick:c,disabled:o=!1,loading:d=!1,compact:m=!1,showLabel:v=!0,className:x="",testId:b}){const g={approve:{label:"Approve",icon:As,activeClasses:"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20",inactiveClasses:"text-slate-400 hover:text-emerald-400 hover:bg-emerald-500/10",dotColor:"bg-emerald-500"},reject:{label:"Reject",icon:ta,activeClasses:"bg-red-500 text-white shadow-lg shadow-red-500/20",inactiveClasses:"text-slate-400 hover:text-red-400 hover:bg-red-500/10",dotColor:"bg-red-500"}}[n],y=g.icon;let N=b||`btn-${n}`;return m?r.jsx("button",{onClick:c,disabled:o||d,className:`
10
+ flex items-center justify-center
11
+ p-2 sm:px-3 sm:py-1.5
12
+ rounded-lg text-sm font-medium
13
+ transition-all duration-150
14
+ disabled:opacity-50 disabled:cursor-not-allowed
15
+ ${s?g.activeClasses:g.inactiveClasses}
16
+ ${x}
17
+ `,title:g.label,"aria-label":g.label,"aria-pressed":s,"data-testid":N,"data-active":s,children:d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsxs(r.Fragment,{children:[r.jsx(y,{className:"w-4 h-4 sm:mr-1.5"}),r.jsx("span",{className:"hidden sm:inline",children:g.label})]})}):r.jsxs("button",{onClick:c,disabled:o||d,className:`
18
+ flex items-center gap-2
19
+ px-3 sm:px-4 py-2
20
+ rounded-lg text-sm font-semibold
21
+ transition-all duration-150
22
+ disabled:opacity-50 disabled:cursor-not-allowed
23
+ ${s?g.activeClasses:g.inactiveClasses}
24
+ ${x}
25
+ `,"aria-pressed":s,"data-testid":N,"data-active":s,children:[d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx("span",{className:`w-2 h-2 rounded-full ${s?"bg-white":g.dotColor}`}),v&&r.jsx("span",{children:g.label})]})}function p1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,compact:m=!1,className:v=""}){const x=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`flex items-center gap-1 ${v}`,children:[c&&r.jsx(df,{variant:"reject",isActive:b,onClick:c,disabled:o,loading:d&&b,compact:m}),s&&r.jsx(df,{variant:"approve",isActive:x,onClick:s,disabled:o,loading:d&&x,compact:m})]})}function g1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,className:m="",testIdPrefix:v="mobile"}){const x=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`
26
+ flex items-stretch gap-2
27
+ px-3 py-2.5
28
+ ${m}
29
+ `,children:[c&&r.jsxs("button",{onClick:c,disabled:o||d,"data-testid":`${v}-btn-reject`,"data-active":b,className:`
30
+ flex-1
31
+ flex items-center justify-center gap-2
32
+ py-3 px-4
33
+ rounded-xl text-sm font-semibold
34
+ transition-all duration-150 active:scale-[0.98]
35
+ disabled:opacity-50 disabled:cursor-not-allowed
36
+ ${b?"bg-red-500 text-white shadow-md shadow-red-500/25 ring-1 ring-red-400/30":"bg-slate-800/80 text-slate-300 hover:bg-slate-700/80 active:bg-red-500/20 active:text-red-400"}
37
+ `,children:[r.jsx(ta,{className:"w-5 h-5"}),r.jsx("span",{children:"Reject"})]}),s&&r.jsxs("button",{onClick:s,disabled:o||d,"data-testid":`${v}-btn-approve`,"data-active":x,className:`
38
+ flex-1
39
+ flex items-center justify-center gap-2
40
+ py-3 px-4
41
+ rounded-xl text-sm font-semibold
42
+ transition-all duration-150 active:scale-[0.98]
43
+ disabled:opacity-50 disabled:cursor-not-allowed
44
+ ${x?"bg-emerald-500 text-white shadow-md shadow-emerald-500/25 ring-1 ring-emerald-400/30":"bg-slate-800/80 text-slate-300 hover:bg-slate-700/80 active:bg-emerald-500/20 active:text-emerald-400"}
45
+ `,children:[r.jsx(As,{className:"w-5 h-5"}),r.jsx("span",{children:"Approve"})]})]})}function dt({children:n,variant:s="default",size:c="sm",dot:o=!1,pulseDot:d=!1,className:m="",...v}){const x={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},g={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},y=["inline-flex items-center gap-1.5 font-medium rounded-full border",x[s],g[c],m].filter(Boolean).join(" ");return r.jsxs("span",{className:y,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[d&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[s]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[s]}`})]}),n]})}const et="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/75.0.1";function x1(n){switch(n){case"chrome":return`${et}/chrome/chrome.svg`;case"firefox":return`${et}/firefox/firefox.svg`;case"safari":return`${et}/safari/safari.svg`;case"safari-ios":case"safari_ios":case"ios":case"mobile safari":return`${et}/safari-ios/safari-ios.svg`;case"edge":return`${et}/edge/edge.svg`;case"opera":return`${et}/opera/opera.svg`;case"brave":return`${et}/brave/brave.svg`;case"vivaldi":return`${et}/vivaldi/vivaldi.svg`;case"chromium":return`${et}/chromium/chromium.svg`;case"webkit":return`${et}/webkit/webkit.svg`;case"samsung":case"samsung internet":case"samsung-internet":return`${et}/samsung-internet/samsung-internet.svg`;case"chrome-android":case"chrome_android":case"android chrome":return`${et}/chrome/chrome.svg`;case"firefox-android":case"firefox_android":case"android firefox":return`${et}/firefox/firefox.svg`;case"android":case"android browser":return`${et}/android/android.svg`;case"ie":case"internet explorer":return`${et}/archive/internet-explorer_9-11/internet-explorer_9-11.svg`;case"tor":return`${et}/tor/tor.svg`;case"duckduckgo":return`${et}/duckduckgo/duckduckgo.svg`;case"yandex":return`${et}/yandex/yandex.svg`;case"uc":case"uc browser":return`${et}/uc/uc.svg`;default:return null}}function En({browser:n,className:s="w-4 h-4",fallbackClassName:c=""}){if(!n)return null;const o=n.toLowerCase(),d=x1(o);return d?r.jsx("img",{src:d,alt:`${n} browser`,className:s,title:n,onError:m=>{m.target.style.display="none",m.target.nextSibling?.style.removeProperty("display")}}):r.jsxs(r.Fragment,{children:[r.jsx("img",{style:{display:"none"},alt:""}),r.jsx(Bo,{className:`${s} ${c}`,title:n||"Unknown browser"})]})}function Ke({children:n,variant:s="primary",size:c="md",disabled:o=!1,loading:d=!1,icon:m,iconPosition:v="left",fullWidth:x=!1,className:b="",as:g="button",...y}){const N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",C={primary:"vz-btn--primary bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"vz-btn--secondary bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"vz-btn--ghost bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"vz-btn--danger bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"vz-btn--warning bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"vz-btn--success bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},B={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},O=[N,C[s],B[c],x?"w-full":"",o||d?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" "),_=g==="button"?{disabled:o||d,...y}:y;return r.jsxs(g,{className:O,..._,children:[d&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m&&v==="left"&&!d&&r.jsx(m,{className:"w-4 h-4"}),n,m&&v==="right"&&!d&&r.jsx(m,{className:"w-4 h-4"})]})}function He({children:n,variant:s,hover:c=!1,className:o="",...d}){const v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",s?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[s]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...d,children:n})}function Ls({icon:n,title:s,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:d,className:m=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${m}`,children:r.jsxs("div",{className:`flex items-center ${d?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),d&&r.jsx("div",{className:"flex items-center gap-2",children:d})]})})}function Ye({children:n,className:s="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${s}`,children:n})}function b1({children:n,className:s=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${s}`,children:n})}Ro();function zl({icon:n=xp,title:s="No data",description:c,action:o,className:d=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-4 text-center ${d}`,children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-4",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),r.jsx("h3",{className:"text-lg font-medium text-white mb-1",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}const hf={amber:{active:"bg-amber-500/20 text-amber-300 border-amber-500/40",inactive:"text-amber-400/70 border-transparent hover:border-amber-500/30 hover:bg-amber-500/10"},cyan:{active:"bg-cyan-500/20 text-cyan-300 border-cyan-500/40",inactive:"text-cyan-400/70 border-transparent hover:border-cyan-500/30 hover:bg-cyan-500/10"},blue:{active:"bg-blue-500/20 text-blue-300 border-blue-500/40",inactive:"text-blue-400/70 border-transparent hover:border-blue-500/30 hover:bg-blue-500/10"},green:{active:"bg-green-500/20 text-green-300 border-green-500/40",inactive:"text-green-400/70 border-transparent hover:border-green-500/30 hover:bg-green-500/10"},emerald:{active:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40",inactive:"text-emerald-400/70 border-transparent hover:border-emerald-500/30 hover:bg-emerald-500/10"},red:{active:"bg-red-500/20 text-red-300 border-red-500/40",inactive:"text-red-400/70 border-transparent hover:border-red-500/30 hover:bg-red-500/10"},orange:{active:"bg-orange-500/20 text-orange-300 border-orange-500/40",inactive:"text-orange-400/70 border-transparent hover:border-orange-500/30 hover:bg-orange-500/10"},purple:{active:"bg-purple-500/20 text-purple-300 border-purple-500/40",inactive:"text-purple-400/70 border-transparent hover:border-purple-500/30 hover:bg-purple-500/10"},gray:{active:"bg-gray-500/20 text-gray-300 border-gray-500/40",inactive:"text-gray-400/70 border-transparent hover:border-gray-500/30 hover:bg-gray-500/10"}};function wa({label:n,count:s=0,color:c="gray",active:o=!1,disabled:d=!1,onClick:m,icon:v,className:x="",testId:b}){const g=hf[c]||hf.gray,y=o?g.active:g.inactive;return r.jsxs("button",{onClick:m,disabled:d||s===0,"data-testid":b,className:`
46
+ inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-xs font-medium
47
+ border transition-all duration-150
48
+ ${y}
49
+ ${d||s===0?"opacity-30 cursor-not-allowed":"cursor-pointer"}
50
+ ${x}
51
+ `,children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n}),r.jsx("span",{className:`
52
+ px-1 py-0.5 rounded text-[10px] font-semibold min-w-[18px] text-center
53
+ ${o?"bg-white/10":"bg-gray-700/50"}
54
+ `,children:s})]})}function Us({label:n,hint:s,error:c,icon:o,size:d="md",className:m="",value:v,...x}){const g=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[d],o?"pl-10":"",x.disabled?"opacity-50 cursor-not-allowed":"",m].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,x.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:g,value:v??"",...x})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function y1({label:n,hint:s,error:c,options:o=[],placeholder:d="Select an option",size:m="md",className:v="",...x}){const g=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[m],x.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,x.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:g,...x,children:[r.jsx("option",{value:"",disabled:!0,children:d}),o.map(y=>r.jsx("option",{value:y.value,children:y.label},y.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function j1({label:n,description:s,checked:c,onChange:o,disabled:d=!1,size:m="md",className:v="",...x}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"translate-x-7"}},{track:g,thumb:y,translate:N}=b[m];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${d?"opacity-50 cursor-not-allowed":""} ${v}`,children:[(n||s)&&r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:d,className:"sr-only",...x}),r.jsx("div",{className:`${g} rounded-full transition-colors ${c?"bg-amber-500":"bg-slate-700"}`}),r.jsx("div",{className:`absolute left-1 top-1 ${y} rounded-full bg-white shadow-sm transition-transform ${c?N:""}`})]})]})}function w1({value:n=0,label:s="",size:c=120,strokeWidth:o=8,animated:d=!0,showValue:m=!0,className:v=""}){const[x,b]=h.useState(d?0:n);h.useEffect(()=>{if(!d){b(n);return}const O=0,_=n,Q=1e3;let H=null;const F=X=>{H||(H=X);const I=Math.min((X-H)/Q,1),ve=1-(1-I)**3;b(Math.round(O+(_-O)*ve)),I<1&&requestAnimationFrame(F)};requestAnimationFrame(F)},[n,d]);const g=(c-o)/2,y=g*2*Math.PI,N=y-x/100*y,B=n>=80?"#10b981":n>=50?"#f59e0b":"#ef4444";return r.jsxs("div",{className:`relative ${v}`,style:{width:c,height:c},children:[r.jsxs("svg",{className:"transform -rotate-90",width:c,height:c,viewBox:`0 0 ${c} ${c}`,children:[r.jsx("defs",{children:r.jsxs("filter",{id:`glow-${c}`,x:"-50%",y:"-50%",width:"200%",height:"200%",children:[r.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),r.jsx("circle",{cx:c/2,cy:c/2,r:g,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o}),r.jsx("circle",{cx:c/2,cy:c/2,r:g,fill:"none",stroke:B,strokeWidth:o,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:N,filter:`url(#glow-${c})`,style:{transition:d?"stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1)":"none"}})]}),m&&r.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[r.jsxs("span",{className:"font-mono font-semibold text-white",style:{fontSize:c*.22},children:[x,"%"]}),s&&r.jsx("span",{className:"text-slate-500 uppercase tracking-wider font-medium",style:{fontSize:c*.08},children:s})]})]})}function S1({children:n,containerClassName:s="",onClick:c,style:o={},...d}){let v=`relative inline-block ${s}`;return r.jsx("div",{className:v,style:o,onClick:c,...d,children:n})}function ks({children:n,containerClassName:s="",interactive:c=!1,onClick:o,style:d={}}){let m=c?"cursor-pointer":"";return r.jsx(S1,{containerClassName:`${s} ${m}`,onClick:o,style:d,children:n})}function N1({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,onLoad:v,imageErrors:x,style:b={},loading:g="lazy",...y}){let N={absolute:"absolute block",relative:"block"},C=o==="absolute"&&!d.includes("top-")&&!d.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",B=`${N[o]} ${C} ${d}`.trim();if(x&&x.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(ea,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:O,zoom:_,...Q}=y;return r.jsx("img",{src:s,alt:c,className:B,style:b,loading:g,decoding:"async",onError:()=>m&&m(n),onLoad:()=>v&&v(n),...Q})}function al({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,imageErrors:v,showErrorPlaceholder:x=!0,loading:b="lazy",...g}){return v&&v.has(n)&&!x?null:r.jsx(N1,{imageKey:n,url:s,alt:c,position:o,className:d,onError:m,imageErrors:v,loading:b,...g})}function E1({baselineImageUrl:n,currentImageUrl:s,sliderPosition:c=50,onSliderChange:o,screenshot:d,onImageError:m,onImageLoad:v}){return r.jsxs(ks,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(al,{imageKey:`baseline-${d?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:new Set,screenshot:d}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(al,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:m,onLoad:v,imageErrors:new Set,screenshot:d})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"},children:r.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-4 h-4 bg-amber-500 rounded-full shadow-lg border-2 border-white"})}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:x=>o(parseInt(x.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function C1({baselineImageUrl:n,currentImageUrl:s,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:d,onImageError:m,onImageLoad:v,imageErrors:x,onDiffToggle:b}){let g=()=>{c&&b&&b()};return n?r.jsxs(ks,{interactive:!0,onClick:g,children:[r.jsx(al,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:x,screenshot:d}),o&&c&&r.jsx(al,{imageKey:`diff-${d?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:m,onLoad:v,imageErrors:x,showErrorPlaceholder:!1,screenshot:d}),o&&c&&x?.has(`diff-${d?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})})]}):r.jsx(ks,{interactive:!0,onClick:g,children:r.jsx(al,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:x,screenshot:d})})}function A1({baselineImageUrl:n,currentImageUrl:s,screenshot:c,onImageError:o,onImageLoad:d,imageErrors:m=new Set}){let[v,x]=h.useState(!0),b=()=>{x(g=>!g)};return r.jsxs(ks,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(al,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`${v?"":"top-0 left-0"} ${v?"":"hidden"}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c}),r.jsx(al,{imageKey:`current-${c?.id||"unknown"}`,url:s,alt:"Current",position:v?"absolute":"relative",className:`${v?"top-0 left-0":""} ${v?"hidden":""}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c})]})]})}const mf=[{value:"fit",label:"Fit",icon:Uo},{value:.25,label:"25%"},{value:.5,label:"50%"},{value:.75,label:"75%"},{value:1,label:"100%"},{value:1.5,label:"150%"},{value:2,label:"200%"}];function M1(n="fit"){const[s,c]=h.useState(n),o=h.useCallback(d=>{c(d)},[]);return{zoom:s,setZoom:o,isActualSize:s===1,isFitToScreen:s==="fit",zoomPercent:s==="fit"?null:Math.round(s*100)}}function O1({zoom:n,onZoomChange:s,minZoom:c=.1,maxZoom:o=3,variant:d="default",enableKeyboardShortcuts:m=!0,className:v=""}){const[x,b]=h.useState(!1),g=h.useCallback(()=>{if(n==="fit")s(.75);else{const O=Math.min(o,n+.25);s(O)}},[n,o,s]),y=h.useCallback(()=>{if(n==="fit")s(.5);else{const O=Math.max(c,n-.25);s(O)}},[n,c,s]),N=h.useCallback(()=>{s("fit"),b(!1)},[s]),C=h.useCallback(()=>{s(1),b(!1)},[s]);h.useEffect(()=>{if(!m)return;const O=_=>{_.target.tagName==="INPUT"||_.target.tagName==="TEXTAREA"||(_.key==="="||_.key==="+"?(_.preventDefault(),g()):_.key==="-"?(_.preventDefault(),y()):_.key==="0"?(_.preventDefault(),C()):_.key==="9"&&(_.preventDefault(),N()))};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[m,g,y,C,N]);const B=n==="fit"?"Fit":`${Math.round(n*100)}%`;return d==="mobile"?r.jsxs("div",{className:`flex flex-col gap-2 ${v}`,children:[r.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1",children:mf.map(O=>r.jsxs("button",{onClick:()=>s(O.value),className:`shrink-0 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${n===O.value?"bg-blue-600 text-white":"bg-slate-800/60 text-slate-400 border border-slate-700/50"}`,children:[O.icon&&r.jsx(O.icon,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:O.label})]},O.value))}),r.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/60 rounded-lg p-1 border border-slate-700/50",children:[r.jsxs("button",{onClick:y,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(qo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom Out"})]}),r.jsx("div",{className:"px-3 py-2 min-w-[60px] text-center text-sm font-medium text-slate-200 bg-slate-900/50 rounded-lg",children:B}),r.jsxs("button",{onClick:g,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Qo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom In"})]})]})]}):r.jsxs("div",{className:`relative flex items-center gap-1.5 ${v}`,children:[r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:y,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom out (−)",children:r.jsx(qo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>b(!x),className:"px-2 py-2 min-w-[44px] text-xs font-medium text-slate-300 hover:text-white hover:bg-slate-700/50 rounded-md transition-all tabular-nums",title:"Click for zoom presets",children:B}),r.jsx("button",{onClick:g,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom in (+)",children:r.jsx(Qo,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:N,className:`p-2 rounded-md transition-all ${n==="fit"?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Fit to screen (9)",children:r.jsx(Uo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:C,className:`px-2 py-2 rounded-md transition-all text-xs font-medium ${n===1?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Actual size (0)",children:"1:1"})]}),x&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute top-full left-0 mt-1.5 z-50 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden min-w-[100px]",children:mf.map(O=>r.jsxs("button",{onClick:()=>{s(O.value),b(!1)},className:`w-full px-3 py-2 text-left text-sm flex items-center gap-2 transition-all ${n===O.value?"bg-blue-600 text-white font-medium":"text-slate-300 hover:bg-slate-700/50 hover:text-white"}`,children:[O.icon&&r.jsx(O.icon,{className:"w-4 h-4"}),r.jsx("span",{children:O.label})]},O.value))})]})]})}const Cn=new Set;function z1(n){return Cn.size===0&&document.addEventListener("keydown",vf),Cn.add(n),()=>{Cn.delete(n),Cn.size===0&&document.removeEventListener("keydown",vf)}}function vf(n){if(n.key==="Escape"){const s=Array.from(Cn),c=s[s.length-1];c?.()}}const pf={"w-64":{mobile:"w-64",desktop:"sm:w-64"},"w-72":{mobile:"w-72",desktop:"sm:w-72"},"w-80":{mobile:"w-80",desktop:"sm:w-80"},"w-96":{mobile:"w-96",desktop:"sm:w-96"}},gf={bottom:"inset-x-0 bottom-0 rounded-t-xl",left:"inset-y-0 left-0 w-[85vw] max-w-xs",right:"inset-y-0 right-0 w-[85vw] max-w-xs"},xf={bottom:"border-t",left:"border-r",right:"border-l"},bf={bottom:"animate-in slide-in-from-bottom duration-200",left:"animate-in slide-in-from-left duration-200",right:"animate-in slide-in-from-right duration-200"};function Dr({isOpen:n,onClose:s,position:c="left",desktopPosition:o="left",width:d="w-72",mobileHeight:m="70vh",expandedHeight:v="90vh",showBackdrop:x=!0,alwaysVisibleOnDesktop:b=!0,children:g,className:y="",testId:N}){const C=h.useRef(null),B=pf[d]||pf["w-72"],[O,_]=h.useState(!1);h.useEffect(()=>{n||_(!1)},[n]);const Q=h.useCallback(()=>{_(I=>!I)},[]),H=O?v:m;h.useEffect(()=>{if(!(!n||!s))return z1(s)},[n,s]);const F=h.useCallback(I=>{I.target===I.currentTarget&&s?.()},[s]),X=o==="left"?"sm:border-r":"sm:border-l";return o==="none"?n?r.jsxs(r.Fragment,{children:[x&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 animate-in fade-in duration-150",onClick:F,"aria-hidden":"true"}),r.jsx("aside",{ref:C,"data-testid":N,"data-expanded":O,className:`
55
+ fixed z-50
56
+ ${gf[c]}
57
+ ${c==="bottom"?"mobile-drawer-height":"h-full"}
58
+ bg-slate-900 ${xf[c]} border-slate-800/60
59
+ flex flex-col overflow-hidden
60
+ shadow-2xl shadow-black/50
61
+ ${bf[c]}
62
+ transition-[height] duration-200 ease-out
63
+ ${y}
64
+ `,style:c==="bottom"?{"--mobile-height":H}:void 0,role:"dialog","aria-modal":"true",children:Ia.Children.map(g,I=>Ia.isValidElement(I)?Ia.cloneElement(I,{isExpanded:O,onToggleExpand:Q}):I)})]}):null:r.jsxs(r.Fragment,{children:[x&&n&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 sm:hidden animate-in fade-in duration-150",onClick:F,"aria-hidden":"true"}),r.jsx("aside",{ref:C,"data-testid":N,"data-expanded":O,"data-open":n,className:`
65
+ ${n?"flex":"hidden"} ${b?"sm:flex":""}
66
+
67
+ fixed z-50 sm:relative sm:z-auto
68
+ ${gf[c]} sm:inset-auto
69
+ ${c==="bottom"?"mobile-drawer-height":"h-full"}
70
+ ${c==="bottom"?B.desktop:d}
71
+
72
+ bg-slate-900
73
+ ${xf[c]} sm:border-t-0 sm:border-b-0 ${X}
74
+ border-slate-800/60 sm:border-slate-800/50
75
+ sm:rounded-none
76
+
77
+ flex-col overflow-hidden
78
+ shadow-2xl shadow-black/50 sm:shadow-none
79
+ transition-[height] duration-200 ease-out
80
+
81
+ ${n?bf[c]:""} sm:animate-none
82
+ ${y}
83
+ `,style:c==="bottom"?{"--mobile-height":H}:void 0,role:n?"dialog":void 0,"aria-modal":n?"true":void 0,children:Ia.Children.map(g,I=>Ia.isValidElement(I)?Ia.cloneElement(I,{isExpanded:O,onToggleExpand:Q}):I)})]})}function _r({title:n,subtitle:s,onClose:c,children:o,className:d="",isExpanded:m,onToggleExpand:v}){return r.jsxs("div",{className:`flex-shrink-0 px-4 py-3 border-b border-slate-800/50 ${d}`,children:[v&&r.jsx("button",{type:"button",onClick:v,className:"sm:hidden w-full flex justify-center py-1 mb-1 -mt-1 active:scale-95 transition-transform","aria-label":m?"Collapse drawer":"Expand drawer",children:r.jsx("div",{className:"w-10 h-1 rounded-full bg-slate-600 hover:bg-slate-500 transition-colors"})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[n&&r.jsx("h2",{className:"text-sm font-semibold text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),c&&r.jsx("button",{type:"button",onClick:c,className:"p-1.5 text-slate-500 hover:text-white rounded-lg hover:bg-slate-800 transition-colors",title:"Close","aria-label":"Close",children:r.jsx(ta,{className:"w-4 h-4"})})]}),o]})}function Lr({children:n,className:s=""}){return r.jsx("div",{className:`
84
+ flex-1 overflow-y-auto
85
+ scrollbar-thin scrollbar-thumb-slate-700 scrollbar-track-transparent
86
+ ${s}
87
+ `,children:n})}function T1({children:n,className:s=""}){return r.jsx("div",{className:`
88
+ flex-shrink-0
89
+ px-4 py-2
90
+ border-t border-slate-800/50
91
+ safe-area-pb
92
+ ${s}
93
+ `,children:n})}function R1({children:n,className:s=""}){return r.jsx("div",{className:`
94
+ flex-shrink-0
95
+ px-3 py-2
96
+ border-b border-slate-800/30
97
+ flex items-center gap-1
98
+ ${s}
99
+ `,children:n})}function D1({isActive:n,onClick:s,children:c,className:o=""}){return r.jsx("button",{type:"button",onClick:s,className:`
100
+ px-2.5 py-1.5 rounded-md text-xs font-medium whitespace-nowrap
101
+ transition-all active:scale-[0.98]
102
+ ${n?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 active:bg-slate-800/80"}
103
+ ${o}
104
+ `,children:c})}function _1({onClick:n,className:s=""}){return r.jsx("button",{type:"button",onClick:n,className:`
105
+ p-2 text-slate-400 hover:text-white
106
+ hover:bg-slate-800 rounded-lg
107
+ transition-colors
108
+ ${s}
109
+ `,title:"Close (Esc)","aria-label":"Close",children:r.jsx(ta,{className:"w-5 h-5"})})}function L1({title:n,icon:s,children:c,defaultExpanded:o=!0,badge:d}){const[m,v]=h.useState(o);return r.jsxs("div",{className:"border-b border-slate-800/50 last:border-b-0",children:[r.jsxs("button",{onClick:()=>v(!m),className:"w-full px-4 py-3 flex items-center gap-2 text-left hover:bg-slate-800/30 transition-colors",children:[m?r.jsx(jn,{className:"w-3.5 h-3.5 text-slate-500"}):r.jsx(Al,{className:"w-3.5 h-3.5 text-slate-500"}),s&&r.jsx(s,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider flex-1",children:n}),d&&r.jsx("span",{className:"text-[10px] font-medium text-slate-500 bg-slate-800 px-1.5 py-0.5 rounded",children:d})]}),r.jsx("div",{className:`
110
+ overflow-hidden transition-all duration-200
111
+ ${m?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}
112
+ `,children:r.jsx("div",{className:"px-4 pb-3 space-y-2",children:c})})]})}function U1({label:n,value:s,mono:c=!1,copyable:o=!1,href:d,badge:m,icon:v}){const[x,b]=h.useState(!1),g=h.useCallback(async C=>{C.preventDefault(),C.stopPropagation(),await navigator.clipboard.writeText(String(s)),b(!0)},[s]),y=h.useCallback(()=>{x&&b(!1)},[x]);if(s==null||s==="")return null;let N=r.jsx("span",{className:`
113
+ text-slate-200 truncate
114
+ ${c?"font-mono text-xs":"text-sm"}
115
+ `,children:s});return d&&(N=r.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:`
116
+ text-blue-400 hover:text-blue-300 truncate inline-flex items-center gap-1
117
+ ${c?"font-mono text-xs":"text-sm"}
118
+ `,children:[s,r.jsx(Lv,{className:"w-3 h-3 flex-shrink-0"})]})),r.jsxs("div",{className:"flex items-center justify-between gap-3 py-1 group",onMouseLeave:y,children:[r.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs flex-shrink-0",children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n})]}),r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m&&r.jsx("span",{className:`
119
+ text-[10px] font-medium px-1.5 py-0.5 rounded-full border
120
+ ${m.variant==="success"?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":""}
121
+ ${m.variant==="warning"?"bg-amber-500/10 text-amber-400 border-amber-500/20":""}
122
+ ${m.variant==="danger"?"bg-red-500/10 text-red-400 border-red-500/20":""}
123
+ ${m.variant==="info"?"bg-blue-500/10 text-blue-400 border-blue-500/20":""}
124
+ ${!m.variant||m.variant==="default"?"bg-slate-500/10 text-slate-400 border-slate-500/20":""}
125
+ `,children:m.label}),N,o&&r.jsx("button",{onClick:g,className:`
126
+ p-1 rounded transition-colors flex-shrink-0
127
+ ${x?"text-emerald-400 bg-emerald-500/10":"text-slate-600 hover:text-slate-400 opacity-0 group-hover:opacity-100"}
128
+ `,title:x?"Copied!":`Copy ${n}`,children:x?r.jsx(v1,{className:"w-3 h-3"}):r.jsx(np,{className:"w-3 h-3"})})]})]})}function k1({label:n,icon:s,onClick:c,href:o,variant:d="default"}){const m={default:"text-slate-400 hover:text-white hover:bg-slate-800/50",primary:"text-blue-400 hover:text-blue-300 hover:bg-blue-500/10",danger:"text-red-400 hover:text-red-300 hover:bg-red-500/10"},v=o?"a":"button",x=o?{href:o,target:"_blank",rel:"noopener noreferrer"}:{onClick:c};return r.jsxs(v,{...x,className:`
129
+ flex items-center gap-2 w-full px-3 py-2 rounded-lg text-sm
130
+ transition-colors ${m[d]}
131
+ `,children:[s&&r.jsx(s,{className:"w-4 h-4 flex-shrink-0"}),r.jsx("span",{children:n})]})}function ht({isOpen:n,onClose:s,title:c="Inspector",subtitle:o,children:d,className:m="",showHeader:v=!0,testId:x="inspector-panel"}){return r.jsxs(Dr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"right",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,className:m,testId:x,children:[v&&r.jsx(_r,{title:c,subtitle:o,onClose:s}),r.jsx(Lr,{children:d})]})}ht.Section=L1,ht.Row=U1,ht.Action=k1;function B1(n){const s=n.analysis_metadata||{},c=s.cluster_analysis||{},o=n.diffClusters||[],d=n.diff_percentage??n.diffPercentage,m=d!=null?`${Number(d).toFixed(1)}%`:null,v=c.clusterCount??(o.length||null),x=n.approval_status==="auto_approved",b=s.auto_approval_reason;if(x&&b)return{label:"Auto-approved",detail:m,color:"text-purple-400/80"};const g=c.classification;if(g){const y=v?`${v} regions`:m;switch(g){case"dynamic_content":return{label:"Dynamic content",detail:y,color:"text-purple-400/80"};case"major_structural":return{label:"Major structural",detail:y,color:"text-red-400/80"};case"major":return{label:"Major changes",detail:y,color:"text-orange-400/80"};case"moderate":return{label:"Moderate changes",detail:y,color:"text-amber-400/80"};case"minor":return{label:"Minor changes",detail:y,color:"text-amber-400/80"}}}if(v>0)return{label:v===1?"1 region":`${v} regions`,detail:m,color:"text-amber-400/80"};if(d!=null){const y=Number(d);let N,C;return y<1?(N="Tiny change",C="text-slate-400/80"):y<5?(N="Small change",C="text-amber-400/80"):y<15?(N="Moderate change",C="text-amber-400/80"):y<30?(N="Significant change",C="text-orange-400/80"):(N="Large change",C="text-red-400/80"),{label:N,detail:m,color:C}}return null}function H1({item:n,isActive:s,thumbnailUrl:c,onClick:o}){const[d,m]=h.useState(!1),v=n.result==="changed"||n.status==="failed",x=n.result==="new"||n.status==="new"||n.status==="baseline-created",b=n.approval_status==="approved"||n.approval_status==="auto_approved",g=n.approval_status==="rejected",y=n.is_flaky,N=(v||x)&&!b&&!g,C=v?B1(n):null,B=()=>s?g?"bg-red-500/15 ring-1 ring-red-500/40":b?"bg-emerald-500/15 ring-1 ring-emerald-500/40":y?"bg-purple-500/15 ring-1 ring-purple-500/40":"bg-amber-500/15 ring-1 ring-amber-500/40":"hover:bg-slate-800/60 active:bg-slate-800/80",O=()=>g?"bg-red-500":b?"bg-emerald-500":y?"bg-purple-500":"bg-amber-500",_=()=>s?g?"text-red-300 font-medium":b?"text-emerald-300 font-medium":y?"text-purple-300 font-medium":"text-amber-300 font-medium":"text-slate-300";return r.jsxs("button",{type:"button",onClick:o,className:`
132
+ group relative w-full flex items-center gap-3 px-3 py-2.5 rounded-lg
133
+ text-left transition-all active:scale-[0.99]
134
+ ${B()}
135
+ ${N?"opacity-100":"opacity-60 hover:opacity-100"}
136
+ `,children:[r.jsxs("div",{className:"relative w-10 h-14 flex-shrink-0 rounded-md overflow-hidden bg-slate-800/80",children:[c&&r.jsx("img",{src:c,alt:n.name,className:`w-full h-full object-cover object-top transition-opacity ${d?"opacity-100":"opacity-0"}`,loading:"lazy",onLoad:()=>m(!0)}),!d&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-slate-600 text-sm font-medium",children:(n.name||"?").charAt(0).toUpperCase()}),v&&r.jsx("div",{className:"absolute top-0.5 right-0.5",children:r.jsx("span",{className:`w-2 h-2 rounded-full block ${b?"bg-emerald-500":g?"bg-red-500":"bg-amber-500 animate-pulse"}`})}),x&&!v&&r.jsx("div",{className:"absolute bottom-0.5 left-0.5 px-1 py-0.5 bg-blue-500 rounded text-[8px] font-bold text-white",children:"NEW"})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:`text-sm truncate ${_()}`,children:n.name||"Unnamed"}),C&&r.jsxs("p",{className:`text-[10px] mt-0.5 ${C.color}`,children:[C.label,C.detail&&r.jsxs("span",{className:"text-slate-500 ml-1",children:["· ",C.detail]})]})]}),s&&r.jsx("div",{className:`absolute left-0 top-3 bottom-3 w-0.5 rounded-full ${O()}`})]})}const yf=h.createContext(null);function q1({children:n,defaultActive:s=!1}){const[c,o]=h.useState(s),d=h.useCallback(()=>o(!0),[]),m=h.useCallback(()=>o(!1),[]),v=h.useCallback(()=>o(b=>!b),[]);h.useEffect(()=>{const b=g=>{g.target.tagName==="INPUT"||g.target.tagName==="TEXTAREA"||g.key===" "&&(g.preventDefault(),v())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[v]);const x={isActive:c,enter:d,exit:m,toggle:v};return r.jsx(yf.Provider,{value:x,children:n})}function jf(){const n=h.useContext(yf);if(!n)throw new Error("useReviewMode must be used within a ReviewModeProvider");return n}function Q1(n,s={}){const{isActive:c}=jf(),{enabled:o=!0}=s;h.useEffect(()=>{if(!c||!o)return;const d=m=>{if(m.target.tagName==="INPUT"||m.target.tagName==="TEXTAREA"||m.metaKey||m.ctrlKey||m.altKey)return;const v=m.key.toLowerCase(),x=n[v];x&&(m.preventDefault(),x(m))};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,o,n])}function Tl(n){if(!n||typeof n!="object")return{};const s={browser:null,device:null,viewport:null,viewportWidth:null,viewportHeight:null};if(s.browser=n.browser||n.metadata?.browser||n.metadata?.properties?.browser||null,s.device=n.metadata?.device||n.device||null,n.viewport_width&&n.viewport_height)s.viewportWidth=n.viewport_width,s.viewportHeight=n.viewport_height,s.viewport=`${n.viewport_width}x${n.viewport_height}`;else if(n.width&&n.height)s.viewportWidth=n.width,s.viewportHeight=n.height,s.viewport=`${n.width}x${n.height}`;else if(n.metadata?.viewport){s.viewport=n.metadata.viewport;const c=n.metadata.viewport.split("x");if(c.length===2){const[o,d]=c.map(Number);!isNaN(o)&&!isNaN(d)&&(s.viewportWidth=o,s.viewportHeight=d)}}return n.metadata&&typeof n.metadata=="object"&&(Object.entries(n.metadata).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight","properties"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)}),n.metadata.properties&&typeof n.metadata.properties=="object"&&Object.entries(n.metadata.properties).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)})),s}function V1({value:n,onChange:s,placeholder:c="Search...",className:o="",autoFocus:d=!1}){return r.jsxs("div",{className:`relative flex-1 ${o}`,children:[r.jsx(Mp,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),r.jsx("input",{type:"text",value:n,onChange:m=>s(m.target.value),placeholder:c,autoFocus:d,className:"w-full pl-9 pr-8 py-2 bg-gray-900/50 border border-gray-700/50 rounded-lg text-sm text-white placeholder-gray-500 focus:outline-none focus:border-gray-600 focus:ring-1 focus:ring-gray-600/50 transition-colors"}),n&&r.jsx("button",{onClick:()=>s(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:r.jsx(ta,{className:"w-4 h-4"})})]})}function Be({variant:n="text",width:s,height:c,className:o="",count:d=1}){const m="animate-pulse bg-gradient-to-r from-slate-800 via-slate-700 to-slate-800 bg-[length:200%_100%] rounded",v={text:"h-4 rounded",heading:"h-8 rounded",avatar:"rounded-full",card:"rounded-xl",button:"h-10 rounded-lg",badge:"h-6 w-16 rounded-full"},b={text:{width:"100%",height:"16px"},heading:{width:"60%",height:"32px"},avatar:{width:"40px",height:"40px"},card:{width:"100%",height:"200px"},button:{width:"100px",height:"40px"},badge:{width:"64px",height:"24px"}}[n],g=Array.from({length:d},(y,N)=>r.jsx("div",{className:`${m} ${v[n]} ${o}`,style:{width:s||b.width,height:c||b.height,animation:"shimmer 1.5s infinite"}},N));return d===1?g[0]:r.jsx("div",{className:"space-y-2",children:g})}function Rl({className:n=""}){return r.jsxs("div",{className:`bg-white/[0.03] border border-slate-700/50 rounded-xl p-6 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(Be,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(Be,{variant:"text",width:"40%"}),r.jsx(Be,{variant:"text",width:"60%",height:"12px"})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(Be,{variant:"text"}),r.jsx(Be,{variant:"text"}),r.jsx(Be,{variant:"text",width:"80%"})]})]})}function An({size:n="md",className:s=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${s}`,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}const Y1=["viewport","browser"],Sa={viewport:{label:"Size",getValue:n=>{const s=n.viewport_width||n.width,c=n.viewport_height||n.height;return s&&c?`${s}x${c}`:null},formatValue:n=>n?.replace("x","×"),sortValues:(n,s)=>{const[c]=(n||"0x0").split("x").map(Number),[o]=(s||"0x0").split("x").map(Number);return o-c},renderIcon:(n,s="w-3.5 h-3.5")=>{const c=parseInt(n?.split("x")[0],10)||0;return c<=480?r.jsx(Os,{className:s}):c<=1024?r.jsx(Nr,{className:s}):r.jsx(wn,{className:s})},isMono:!0},browser:{label:"Browser",getValue:n=>Tl(n).browser||n.browser||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(En,{browser:n,className:s})},theme:{label:"Theme",getValue:n=>Tl(n).theme||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>n==="light"?-1:s==="light"?1:(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>n?.toLowerCase()==="dark"?r.jsx(zp,{className:s}):r.jsx(Up,{className:s})},locale:{label:"Locale",getValue:n=>Tl(n).locale||null,formatValue:n=>n?.toUpperCase(),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Bo,{className:s})},device:{label:"Device",getValue:n=>Tl(n).device||null,formatValue:n=>n,sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Os,{className:s})}};function $t(n,s){const c=Sa[s];return c?c.getValue(n):Tl(n)[s]||n[s]||null}function Bs(n,s,c=!1,o=14){const d=Sa[n];let m;return d?.formatValue?m=d.formatValue(s):s==null?m="none":typeof s=="boolean"||typeof s=="number"?m=String(s):typeof s=="object"?m=JSON.stringify(s):m=s,m&&m.length>o&&(m=m.slice(0,o-1)+"…"),c&&!d?`${Hs(n).toLowerCase()}: ${m}`:m}function wf(n,s){const c=Sa[n];return c?.sortValues?[...s].sort(c.sortValues):s}function Hs(n){return Sa[n]?.label||n.charAt(0).toUpperCase()+n.slice(1)}function Mn(n,s,c="w-4 h-4"){const o=Sa[n];return o?.renderIcon?o.renderIcon(s,c):r.jsx(Bp,{className:c})}function G1(n,s=[]){const c=h.useMemo(()=>{const d=[...Y1];s.forEach(x=>{d.includes(x)||d.push(x)}),Object.keys(Sa).forEach(x=>{if(d.includes(x))return;n.some(g=>$t(g,x)!=null)&&d.push(x)});const v=["browser","viewport","viewportWidth","viewportHeight","device","url","selector","width","height"];return n.forEach(x=>{const b=Tl(x);Object.keys(b).forEach(g=>{!d.includes(g)&&!v.includes(g)&&b[g]!=null&&typeof b[g]!="object"&&d.push(g)})}),d},[s,n]),o=h.useMemo(()=>{if(!n||n.length===0)return{};const d={};return c.forEach(m=>{const v=new Set;n.forEach(x=>{const b=$t(x,m);b!=null&&v.add(b)}),v.size>=1&&(d[m]={values:Array.from(v),hasMultiple:v.size>1})}),d},[n,c]);return{effectiveDimensions:c,dimensionAnalysis:o}}function Sf(n,s,c,o,d){let m=null,v=-1;return n.forEach(x=>{if($t(x,s)!==c)return;let b=0;d.forEach(g=>{if(g===s)return;const y=o?$t(o,g):null,N=$t(x,g);y===N&&b++}),b>v&&(v=b,m=x)}),m||(m=n.find(x=>$t(x,s)===c)),m}function Z1({dimension:n,currentValue:s,allValues:c,onSelect:o,isLast:d}){const[m,v]=h.useState(!1),x=h.useRef(null),b=h.useRef(null),g=Sa[n],y=c.length>1,N=Bs(n,s,!0);h.useEffect(()=>{if(!m)return;function B(O){x.current&&!x.current.contains(O.target)&&b.current&&!b.current.contains(O.target)&&v(!1)}return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[m]),h.useEffect(()=>{if(!m)return;function B(O){O.key==="Escape"&&v(!1)}return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[m]);const C=h.useCallback(B=>{o(n,B),v(!1)},[n,o]);return r.jsxs("div",{className:"relative flex items-center flex-shrink-0",ref:x,children:[r.jsxs("button",{onClick:()=>y&&v(!m),disabled:!y,className:`
137
+ group flex items-center gap-1.5 px-2 py-1 rounded-md
138
+ text-sm transition-all duration-150 whitespace-nowrap
139
+ ${y?"hover:bg-slate-700/60 cursor-pointer":"cursor-default opacity-75"}
140
+ ${m?"bg-slate-700/60 ring-1 ring-slate-600/50":""}
141
+ `,"aria-expanded":m,"aria-haspopup":y?"listbox":void 0,children:[r.jsx("span",{className:`transition-colors ${m?"text-amber-400":"text-slate-400 group-hover:text-slate-300"}`,children:Mn(n,s,"w-4 h-4")}),r.jsx("span",{className:`transition-colors ${m?"text-white":"text-slate-200 group-hover:text-white"} ${g?.isMono?"font-mono text-xs":"text-sm"}`,children:N||"Unknown"}),y&&r.jsx(jn,{className:`w-3 h-3 transition-all duration-150 ${m?"text-amber-400 rotate-180":"text-slate-500 group-hover:text-slate-400"}`})]}),!d&&r.jsx("span",{className:"mx-0.5 text-slate-600 select-none opacity-40",children:"/"}),m&&y&&r.jsxs("div",{ref:b,className:"absolute top-full left-0 mt-1.5 z-50 min-w-[160px] max-h-[280px] overflow-y-auto bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-lg shadow-xl shadow-black/40 py-1 animate-in fade-in slide-in-from-top-2 duration-150",role:"listbox","aria-label":`Select ${Hs(n)}`,children:[r.jsx("div",{className:"px-3 py-2 border-b border-slate-700/40",children:r.jsx("span",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wider",children:Hs(n)})}),wf(n,c).map(B=>{const O=B===s,_=Bs(n,B);return r.jsxs("button",{onClick:()=>C(B),className:`w-full flex items-center gap-2.5 px-3 py-2 text-left transition-all duration-100 ${O?"bg-amber-500/15 text-amber-400":"text-slate-300 hover:bg-slate-700/60 hover:text-white"}`,role:"option","aria-selected":O,children:[r.jsx("span",{className:O?"text-amber-400":"text-slate-500",children:Mn(n,B,"w-4 h-4")}),r.jsx("span",{className:`flex-1 ${g?.isMono?"font-mono text-xs":"text-sm"}`,children:_}),O&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 shadow-sm shadow-amber-500/50"})]},B)})]})]})}function X1({isOpen:n,onClose:s,variants:c,currentVariant:o,dimensionAnalysis:d,effectiveDimensions:m,onVariantSelect:v}){const x=h.useCallback((C,B)=>{const O=Sf(c,C,B,o,m);O&&v&&(v(O),s())},[c,o,m,v,s]),b=Object.keys(d),g=b.filter(C=>d[C].hasMultiple),y=b.filter(C=>!d[C].hasMultiple),N=[...g,...y];return r.jsxs(Dr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"none",mobileHeight:"30vh",expandedHeight:"80vh",children:[r.jsx(_r,{title:"Select Variant",onClose:s}),r.jsx(Lr,{className:"px-3 py-3",children:r.jsx("div",{className:"space-y-5",children:N.map(C=>{const{values:B,hasMultiple:O}=d[C],_=o?$t(o,C):B[0],Q=Hs(C);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider",children:Q}),!O&&r.jsx("span",{className:"text-[10px] text-slate-600",children:"(fixed)"})]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:wf(C,B).map(H=>{const F=_===H;return r.jsxs("button",{type:"button",disabled:!O,onClick:()=>O&&x(C,H),className:`
142
+ flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm transition-all
143
+ ${O?"active:scale-[0.98]":"opacity-60 cursor-default"}
144
+ ${F?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":O?"bg-slate-800/60 text-slate-300 hover:bg-slate-700/60 active:bg-slate-700/80":"bg-slate-800/40 text-slate-400"}
145
+ `,children:[Mn(C,H,"w-4 h-4"),r.jsx("span",{className:Sa[C]?.isMono?"font-mono text-xs":"",children:Bs(C,H)})]},H)})})]},C)})})})]})}function K1({variants:n=[],currentVariantId:s,onVariantSelect:c,baselineSignatureProperties:o=[],className:d=""}){const[m,v]=h.useState(!1),{effectiveDimensions:x,dimensionAnalysis:b}=G1(n,o),g=h.useMemo(()=>n.find(H=>H.id===s),[n,s]),y=h.useCallback((H,F)=>{const X=Sf(n,H,F,g,x);X&&c&&c(X)},[n,g,x,c]),N=Object.keys(b);if(n.length===0||N.length===0)return null;const C=N.filter(H=>b[H].hasMultiple),B=N.filter(H=>!b[H].hasMultiple),O=[...C,...B],_=g?$t(g,"viewport"):null,Q=g?$t(g,"browser"):null;return r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>v(!0),className:`
146
+ sm:hidden flex items-center gap-2 px-3 py-1.5
147
+ bg-slate-800/50 rounded-lg border border-slate-700/40
148
+ text-sm text-slate-200 hover:bg-slate-700/50 active:bg-slate-700/70 transition-colors
149
+ ${d}
150
+ `,children:[Mn("viewport",_,"w-4 h-4 text-slate-400"),r.jsx("span",{className:"font-mono text-xs truncate max-w-[100px]",children:Bs("viewport",_)}),Q&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-slate-600",children:"/"}),Mn("browser",Q,"w-4 h-4 text-slate-400")]}),r.jsx(Al,{className:"w-3 h-3 text-slate-500 ml-auto"})]}),r.jsx("div",{className:`
151
+ hidden sm:flex items-center flex-wrap gap-1
152
+ bg-slate-800/50 rounded-lg px-1.5 py-1
153
+ border border-slate-700/40
154
+ ${d}
155
+ `,children:O.map((H,F)=>{const{values:X}=b[H],I=g?$t(g,H):X[0];return r.jsx(Z1,{dimension:H,currentValue:I,allValues:X,onSelect:y,isLast:F===O.length-1},H)})}),r.jsx(X1,{isOpen:m,onClose:()=>v(!1),variants:n,currentVariant:g,dimensionAnalysis:b,effectiveDimensions:x,onVariantSelect:c})]})}const $1=[{value:"overlay",label:"Overlay",shortLabel:"Over",icon:_p,description:"Show diff overlay on image"},{value:"toggle",label:"Toggle",shortLabel:"Toggle",icon:Bv,description:"Toggle between baseline and current"},{value:"onion-skin",label:"Slide",shortLabel:"Slide",icon:Yp,description:"Slide to compare baseline and current"}];function J1({value:n="overlay",onChange:s,disabled:c=!1,compact:o=!1,showLabels:d=!0,className:m=""}){return r.jsx("div",{className:`
156
+ inline-flex items-center
157
+ bg-slate-800/60 rounded-lg p-0.5
158
+ ${m}
159
+ `,role:"radiogroup","aria-label":"View mode",children:$1.map(v=>{const x=n===v.value,b=v.icon;return r.jsx("button",{onClick:()=>s?.(v.value),disabled:c,className:`
160
+ flex items-center justify-center gap-1.5
161
+ ${o?"p-2":"px-2 sm:px-3 py-1.5"}
162
+ rounded-md text-xs font-medium
163
+ transition-all duration-150
164
+ disabled:opacity-50 disabled:cursor-not-allowed
165
+ ${x?"bg-amber-500 text-slate-900 shadow-sm":"text-slate-400 hover:text-white hover:bg-slate-700/50"}
166
+ `,role:"radio","aria-checked":x,title:v.description,children:o?r.jsx(b,{className:"w-4 h-4"}):r.jsxs(r.Fragment,{children:[r.jsx(b,{className:"w-4 h-4 hidden sm:block"}),r.jsx("span",{className:d?"":"sr-only",children:o?v.shortLabel:v.label})]})},v.value)})})}const Nf=[{key:"comparisons",label:"Comparisons",icon:Cr},{key:"stats",label:"Stats",icon:Fv},{key:"builds",label:"Builds",icon:rp},{key:"projects",label:"Projects",icon:Sn},{key:"settings",label:"Settings",icon:cp}];function F1({currentView:n,onNavigate:s,loading:c}){const[o,d]=h.useState(!1),m=v=>{s?.(v),d(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>m("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),s&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Nf.map(v=>{const x=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${x?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(An,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),s&&r.jsx("button",{type:"button",onClick:()=>d(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(ta,{className:"w-6 h-6"}):r.jsx(Vv,{className:"w-6 h-6"})})]})]}),s&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Nf.map(v=>{const x=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${x?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function On({children:n,currentView:s,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(F1,{currentView:s,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function Ef(){return Cl({queryKey:me.authStatus(),queryFn:Rs.getStatus,staleTime:30*1e3})}function W1(){return Gt({mutationFn:Rs.initiateLogin})}function I1(){const n=wt();return Gt({mutationFn:s=>Rs.pollAuthorization(s),onSuccess:s=>{s.status==="complete"&&(n.invalidateQueries({queryKey:me.auth}),n.invalidateQueries({queryKey:me.cloud}))}})}function P1(){const n=wt();return Gt({mutationFn:Rs.logout,onSuccess:()=>{n.invalidateQueries({queryKey:me.auth}),n.invalidateQueries({queryKey:me.cloud})}})}function eg(n={}){return Cl({queryKey:me.projects(),queryFn:Ds.list,staleTime:60*1e3,...n})}function tg(n,s,c={}){return Cl({queryKey:me.builds(n,s),queryFn:()=>Ds.getBuilds(n,s,{limit:20}),enabled:!!(n&&s),staleTime:30*1e3,...c})}function ag(){const n=wt();return Gt({mutationFn:({buildId:s,organizationSlug:c,projectSlug:o})=>tl.downloadBaselines(s,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:me.tdd})}})}function lg(n={}){return Cl({queryKey:[...me.projects(),"mappings"],queryFn:Ds.listMappings,staleTime:60*1e3,...n})}function ng(){const n=wt();return Gt({mutationFn:s=>Ds.deleteMapping(s),onSuccess:()=>{n.invalidateQueries({queryKey:me.projects()})}})}const Cf=h.createContext(null);function sg({children:n}){const[s,c]=h.useState([]),o=h.useCallback((v,x="success",b={})=>{const g=Date.now();c(N=>[...N,{id:g,message:v,type:x,...b}]);const y=b.duration!==void 0?b.duration:b.actions?null:5e3;return y&&setTimeout(()=>{c(N=>N.filter(C=>C.id!==g))},y),g},[]),d=h.useCallback(v=>{c(x=>x.filter(b=>b.id!==v))},[]),m=h.useCallback((v,x)=>new Promise(b=>{const g=Date.now();c(y=>[...y,{id:g,message:v,title:x,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(N=>N.filter(C=>C.id!==g)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(N=>N.filter(C=>C.id!==g)),b(!0)}}]}])}),[]);return r.jsxs(Cf.Provider,{value:{addToast:o,removeToast:d,confirm:m},children:[n,r.jsx(ig,{toasts:s,onRemove:d})]})}function ll(){const n=h.useContext(Cf);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function ig({toasts:n,onRemove:s}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(rg,{toast:c,onRemove:s},c.id))})}function rg({toast:n,onRemove:s}){const c=n.type==="success"?el:n.type==="confirm"?ea:Nn,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",d=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",m=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":m?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${d} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(v=>r.jsx("button",{type:"button",onClick:v.onClick,"data-testid":m?`confirm-${v.label.toLowerCase()}`:void 0,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},v.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>s(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(ta,{className:"w-5 h-5"})})]})})}function ug({status:n}){const s={passed:{variant:"success",icon:el},completed:{variant:"success",icon:el},failed:{variant:"danger",icon:Nn},pending:{variant:"warning",icon:Ms},processing:{variant:"info",icon:Pa}},c=s[n]||s.pending;return r.jsx(dt,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function cg(n){const s=Math.floor((Date.now()-n)/1e3);return s<60?"just now":s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:s<604800?`${Math.floor(s/86400)}d ago`:n.toLocaleDateString()}function og({build:n,project:s,onDownload:c,downloading:o}){const d=new Date(n.createdAt||n.created_at),m=cg(d);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(ug,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:m}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(n,s),loading:o,icon:Ov,title:"Download baselines from this build"})]})}function fg({project:n,onExpand:s,expanded:c,onDownload:o,downloadingBuildId:d}){const{data:m,isLoading:v}=tg(c?n.organizationSlug:null,c?n.slug:null),x=m?.builds||[];return r.jsxs(He,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>s(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(Sn,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(An,{size:"sm",className:"text-amber-400"}),c?r.jsx(jn,{className:"w-5 h-5 text-slate-400"}):r.jsx(Al,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(Ye,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(An,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):x&&x.length>0?r.jsx("div",{className:"space-y-3",children:x.map((b,g)=>r.jsx(og,{build:b,project:n,onDownload:o,downloading:d===b.id},b.id||g))}):r.jsx(zl,{icon:Ms,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function dg({org:n,expandedProjects:s,onExpand:c,onDownload:o,downloadingBuildId:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Xv,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(dt,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(m=>{const v=`${m.organizationSlug}/${m.slug}`;return r.jsx(fg,{project:m,expanded:s[v],onExpand:c,onDownload:o,downloadingBuildId:d},v)})})]})}function hg({onLogin:n}){return r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(Ar,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Ke,{variant:"primary",onClick:n,icon:Lo,children:"Sign In"})]})})}function mg(){const[n,s]=h.useState({}),[c,o]=h.useState(null),{addToast:d}=ll(),{data:m,isLoading:v}=Ef(),{data:x,isLoading:b,refetch:g}=eg(),y=ag(),N=m?.authenticated,C=h.useMemo(()=>{const Q=x?.projects||[],H={};for(const F of Q){const X=F.organizationSlug||"unknown";H[X]||(H[X]={slug:X,name:F.organizationName||X,projects:[]}),H[X].projects.push(F)}return Object.values(H)},[x?.projects]),B=h.useCallback((Q,H)=>{const F=`${Q}/${H}`;s(X=>({...X,[F]:!X[F]}))},[]),O=h.useCallback((Q,H)=>{o(Q.id),y.mutate({buildId:Q.id,organizationSlug:H?.organizationSlug,projectSlug:H?.slug},{onSuccess:()=>{d(`Baselines downloaded from "${Q.name||Q.id}"`,"success"),o(null)},onError:F=>{d(`Failed to download baselines: ${F.message}`,"error"),o(null)}})},[y,d]),_=h.useCallback(()=>{window.location.href="/projects"},[]);return b||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-40 mb-2"}),r.jsx(Be,{variant:"text",className:"w-72"})]}),r.jsx(Be,{variant:"button"})]}),r.jsx(Rl,{}),r.jsx(Rl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Ke,{variant:"secondary",onClick:()=>g(),icon:Pa,children:"Refresh"})]}),N?C.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(zl,{icon:Sn,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Ke,{variant:"secondary",icon:Al,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:C.map(Q=>r.jsx(dg,{org:Q,expandedProjects:n,onExpand:B,onDownload:O,downloadingBuildId:c},Q.slug))}):r.jsx(hg,{onLogin:_})]})}const aa={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},qe={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},zn={PRIORITY:"priority",NAME:"name",TIME:"time"},nl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function vg({comparison:n,viewMode:s="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:d,onDiffToggle:m,disableLoadingOverlay:v=!1,zoom:x="fit",className:b=""}){const[g,y]=h.useState(new Set),[N,C]=h.useState(new Map),[B,O]=h.useState(1),[_,Q]=h.useState({width:0,height:0}),H=h.useRef(null),F=h.useRef(null);h.useEffect(()=>{const ee=()=>{const Ne=H.current,De=Ne?.querySelector("img");if(!Ne||!De||!De.naturalWidth)return;Q({width:De.naturalWidth,height:De.naturalHeight});const pe=Ne.getBoundingClientRect(),we=40,_e=pe.width-we,R=pe.height-we,q=_e/De.naturalWidth,Z=R/De.naturalHeight,re=Math.min(q,Z,1);O(re)};ee();const ge=new window.ResizeObserver(ee);H.current&&ge.observe(H.current);const Te=H.current?.querySelectorAll("img")||[];for(let Ne of Te)Ne.addEventListener("load",ee);return()=>{ge.disconnect();for(let Ne of Te)Ne.removeEventListener("load",ee)}},[]);const X=h.useMemo(()=>{const ee=x==="fit",ge=ee?B:typeof x=="number"?x:1,Te=!ee&&ge>B;return{isFit:ee,scale:ge,allowsOverflow:Te,containerClass:Te?"overflow-auto":"overflow-hidden"}},[x,B]),I=h.useCallback(ee=>{y(ge=>new Set([...ge,ee]))},[]),ve=h.useCallback(ee=>{C(ge=>new Map(ge).set(ee,"loaded"))},[]),de=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},V=h.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:H,className:`bg-gray-800 relative h-full ${X.containerClass}`,style:{backgroundImage:`
10
167
  linear-gradient(45deg, #1f2937 25%, transparent 25%),
11
168
  linear-gradient(-45deg, #1f2937 25%, transparent 25%),
12
169
  linear-gradient(45deg, transparent 75%, #1f2937 75%),
13
170
  linear-gradient(-45deg, transparent 75%, #1f2937 75%)
14
- `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>xe(`current-${K?.id}`),onError:()=>ne(`current-${K?.id}`)})})}),!g&&n&&!z.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(da,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:H,className:`bg-gray-800 relative unified-screenshot-container h-full ${k.containerClass}`,style:{backgroundImage:`
171
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${X.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...X.allowsOverflow?{minWidth:_.width*X.scale+40,minHeight:_.height*X.scale+40,padding:"20px"}:{zoom:X.scale,padding:"20px"}},children:r.jsx("div",{ref:F,className:"relative inline-block",style:X.allowsOverflow?{transform:`scale(${X.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>ve(`current-${V?.id}`),onError:()=>I(`current-${V?.id}`)})})}),!v&&n&&!N.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&g.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(ea,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:H,className:`bg-gray-800 relative unified-screenshot-container h-full ${X.containerClass}`,style:{backgroundImage:`
15
172
  linear-gradient(45deg, #1f2937 25%, transparent 25%),
16
173
  linear-gradient(-45deg, #1f2937 25%, transparent 25%),
17
174
  linear-gradient(45deg, transparent 75%, #1f2937 75%),
18
175
  linear-gradient(-45deg, transparent 75%, #1f2937 75%)
19
- `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:u==="toggle"&&fe.baseline?r.jsx(qv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):u==="onion-skin"&&fe.baseline?r.jsx(Bv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,sliderPosition:o,onSliderChange:h,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):r.jsx(Hv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,diffImageUrl:fe.diff,showDiffOverlay:c,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p,onDiffToggle:v})})}),!g&&!z.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(da,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function pl(n){return n?.id||n?.signature||n?.name}function kv({zoom:n,onZoomChange:u}){const c=m.useCallback(()=>{u(n==="fit"?.75:Math.min(3,n+.25))},[n,u]),o=m.useCallback(()=>{u(n==="fit"?.5:Math.max(.1,n-.25))},[n,u]),h=m.useCallback(()=>{u("fit")},[u]),v=m.useCallback(()=>{u(1)},[u]),g=n==="fit"?"Fit":`${Math.round(n*100)}%`;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center bg-gray-800/90 backdrop-blur-md rounded-lg border border-gray-600/40 shadow-lg",children:[r.jsx("button",{type:"button",onClick:o,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-l-lg transition-colors",title:"Zoom out (−)",children:r.jsx(wg,{className:"w-4 h-4"})}),r.jsx("div",{className:"px-3 py-1.5 min-w-[60px] text-center text-sm font-medium text-gray-200",children:g}),r.jsx("button",{type:"button",onClick:c,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-r-lg transition-colors",title:"Zoom in (+)",children:r.jsx(Eg,{className:"w-4 h-4"})})]}),r.jsx("button",{type:"button",onClick:h,className:`p-2 rounded-lg transition-colors ${n==="fit"?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Fit to screen",children:r.jsx(Km,{className:"w-4 h-4"})}),r.jsx("button",{type:"button",onClick:v,className:`p-2 rounded-lg transition-colors ${n===1?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Actual size",children:r.jsx("span",{className:"text-xs font-bold w-4 h-4 flex items-center justify-center",children:"1:1"})})]})}function Yv({comparison:n,isActive:u,onClick:c,index:o}){const h=n.current||n.baseline,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created";return r.jsxs("button",{type:"button",onClick:c,className:`relative flex-shrink-0 group transition-all duration-200 ${u?"ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-900 rounded-lg scale-110":"hover:ring-2 hover:ring-gray-500 hover:ring-offset-2 hover:ring-offset-gray-900 rounded-lg opacity-60 hover:opacity-100"}`,title:n.name||`Screenshot ${o+1}`,children:[r.jsxs("div",{className:"relative w-14 h-20 bg-gray-800 rounded-lg overflow-hidden",children:[h?r.jsx("img",{src:h,alt:n.name||"Thumbnail",className:"absolute inset-0 w-full h-full object-cover object-top",loading:"lazy"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-700 flex items-center justify-center",children:r.jsx("span",{className:"text-lg font-medium text-gray-500",children:n.name?n.name.charAt(0).toUpperCase():"?"})}),g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-blue-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"NEW"}),v&&!g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-amber-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"DIFF"})]}),r.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-gray-800 border border-gray-700 text-xs text-gray-200 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-20 shadow-lg",children:n.name||`Screenshot ${o+1}`})]})}function Gv({comparison:n,comparisons:u=[],onClose:c,onAccept:o,onReject:h,onNavigate:v,userAction:g}){const[y,b]=m.useState(hn.OVERLAY),[p,N]=m.useState(!1),[z,L]=m.useState("fit"),[V,B]=m.useState(!0),[M,q]=m.useState(50),H=m.useRef(null),$=m.useMemo(()=>{const J={failed:0,new:1,"baseline-created":1,passed:2};return[...u].sort((he,Ge)=>{const Ke=he.initialStatus||he.status,T=Ge.initialStatus||Ge.status,Q=J[Ke]??3,W=J[T]??3;return Q-W})},[u]),k=m.useMemo(()=>{const J=pl(n);return $.findIndex((he,Ge)=>pl(he)===J)},[n,$]),ne=m.useMemo(()=>({prev:k>0,next:k<$.length-1}),[k,$.length]),xe=m.useCallback(()=>{ne.prev&&$[k-1]&&v($[k-1])},[ne.prev,$,k,v]),fe=m.useCallback(()=>{ne.next&&$[k+1]&&v($[k+1])},[ne.next,$,k,v]);if(m.useEffect(()=>{if(H.current&&k>=0){const J=H.current,he=J.children;if(he[k]){const Ge=he[k],Ke=J.getBoundingClientRect(),T=Ge.getBoundingClientRect();(T.left<Ke.left||T.right>Ke.right)&&Ge.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}},[k]),m.useEffect(()=>{const J=he=>{if(!(he.target.tagName==="INPUT"||he.target.tagName==="TEXTAREA"))switch(he.key){case"ArrowLeft":he.preventDefault(),ne.prev&&xe();break;case"ArrowRight":he.preventDefault(),ne.next&&fe();break;case"Escape":he.preventDefault(),c();break}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[ne,xe,fe,c]),!n)return r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})});const K=n.status==="failed"||n.status==="passed",ee=g==="accepted"||n.status==="passed"&&g!=="rejected",ve=g==="rejected",Me=[{value:hn.OVERLAY,label:"Overlay"},{value:hn.TOGGLE,label:"Toggle"},{value:hn.ONION,label:"Slide"}],de=[];return n.properties?.browser&&de.push({key:"Browser",value:n.properties.browser}),n.properties?.viewport_width&&n.properties?.viewport_height&&de.push({key:"Viewport",value:`${n.properties.viewport_width}×${n.properties.viewport_height}`}),n.properties?.device&&de.push({key:"Device",value:n.properties.device}),r.jsxs("div",{className:"fixed inset-0 bg-gray-900 z-50 flex flex-col","data-testid":"fullscreen-viewer",children:[r.jsxs("div",{className:"flex-shrink-0 bg-gray-900/95 backdrop-blur-md border-b border-gray-800/50 z-30",children:[r.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{type:"button",onClick:c,className:"p-1.5 text-gray-400 hover:text-white rounded-lg hover:bg-gray-700/60 transition-colors",title:"Back (Esc)",children:r.jsx(di,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{type:"button",onClick:xe,disabled:!ne.prev,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Previous (←)",children:r.jsx(rg,{className:"w-4 h-4"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-medium tabular-nums min-w-[3rem] text-center",children:[k+1,"/",$.length]}),r.jsx("button",{type:"button",onClick:fe,disabled:!ne.next,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Next (→)",children:r.jsx(lu,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"h-5 w-px bg-gray-700/50"}),r.jsx("h1",{className:"text-sm font-medium text-gray-200 truncate max-w-[300px]",children:n.name||n.originalName||"Unknown"}),de.length>0&&r.jsxs("button",{type:"button",onClick:()=>N(!p),className:"flex items-center gap-1 px-2 py-1 text-xs text-gray-500 hover:text-gray-300 transition-colors",children:[r.jsxs("span",{children:[de.length," props"]}),r.jsx(au,{className:`w-3 h-3 transition-transform ${p?"rotate-180":""}`})]})]}),K&&r.jsxs("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:[r.jsxs("button",{type:"button",onClick:()=>h(pl(n)),"data-testid":"btn-reject",className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ve?"bg-red-600 text-white":"text-red-400 hover:text-red-300 hover:bg-red-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Reject"]}),r.jsxs("button",{type:"button",onClick:()=>o(pl(n)),"data-testid":"btn-approve",className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ee?"bg-green-600 text-white":"text-green-400 hover:text-green-300 hover:bg-green-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Approve"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(kv,{zoom:z,onZoomChange:L}),r.jsx("div",{className:"hidden sm:flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:Me.map(J=>r.jsx("button",{type:"button",onClick:()=>n.diff&&b(J.value),disabled:!n.diff,className:`px-2.5 py-1 text-xs font-medium rounded-md transition-all ${n.diff?y===J.value?"bg-blue-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/60":"text-gray-600 cursor-not-allowed"}`,children:J.label},J.value))})]})]}),p&&de.length>0&&r.jsx("div",{className:"px-4 py-2 border-t border-gray-800/50 bg-gray-900/50",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:de.map(J=>r.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-800/60 text-xs rounded-md",children:[r.jsxs("span",{className:"text-gray-500",children:[J.key,":"]}),r.jsx("span",{className:"ml-1 text-gray-300",children:J.value})]},J.key))})})]}),r.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:r.jsx(Qv,{comparison:n,viewMode:y===hn.ONION?"onion-skin":y,showDiffOverlay:V,onDiffToggle:()=>B(J=>!J),onionSkinPosition:M,onOnionSkinChange:q,zoom:z,disableLoadingOverlay:!0,className:"w-full h-full"},pl(n))}),r.jsx("div",{className:"flex-shrink-0 bg-gray-900 border-t border-gray-800/50",children:r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"text-sm text-gray-500 flex-shrink-0",children:[k+1," of ",$.length]}),r.jsx("div",{ref:H,className:"flex-1 flex items-center gap-2 overflow-x-auto scrollbar-hide py-1",children:$.map((J,he)=>r.jsx(Yv,{comparison:J,index:he,isActive:he===k,onClick:()=>v(J)},pl(J)))}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 text-xs text-gray-500 flex-shrink-0",children:[r.jsxs("span",{children:["Use"," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"←"})," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"→"})," ","to navigate"]}),r.jsx(au,{className:"w-4 h-4 rotate-[-90deg]"})]})]})})})]})}function Vv(){const[,n]=mi(),[,u]=tv("/comparison/:id"),[c,o]=m.useState({}),{data:h}=yi(),v=iv(),g=uv(),y=m.useMemo(()=>h?.comparisons||[],[h?.comparisons]),b=m.useMemo(()=>{const B=u?.id?decodeURIComponent(u.id):null;return!B||y.length===0?null:y.find(M=>M.id===B||M.signature===B||M.name===B)},[u,y]),p=m.useCallback(B=>{const M=B.id||B.signature||B.name;M&&n(`/comparison/${encodeURIComponent(M)}`)},[n]),N=m.useCallback(()=>{n("/")},[n]),z=m.useMemo(()=>b?b.id||b.signature||b.name:null,[b]),L=m.useCallback(B=>{o(M=>({...M,[B]:"accepting"})),v.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[v]),V=m.useCallback(B=>{o(M=>({...M,[B]:"rejecting"})),g.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[g]);return b?r.jsx(Gv,{comparison:b,comparisons:y,onClose:N,onAccept:L,onReject:V,onNavigate:p,userAction:c[z]}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",u?.id||"none"]}),r.jsx("button",{type:"button",onClick:N,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Zv(n,u){return[...n].sort((c,o)=>{if(u==="priority"){const h={[Xa.FAILED]:3,[Xa.NEW]:2,[Xa.PASSED]:1},v=c.initialStatus||c.status,g=o.initialStatus||o.status,y=h[v]||0,b=h[g]||0;return y!==b?b-y:(o.diffPercentage||0)-(c.diffPercentage||0)}return u==="name"?(c.name||"").localeCompare(o.name||""):u==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function Xv(n,u){return u==="failed"?n.filter(c=>c.status===Xa.FAILED):u==="passed"?n.filter(c=>c.status===Xa.PASSED):u==="new"?n.filter(c=>c.status===Xa.NEW||c.status===Xa.BASELINE_CREATED):n}const Kv=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||kt.ALL,sortBy:n.get("sort")||ha.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function Jv(n=[]){const u=Kv(),[c,o]=m.useState(u.filter),[h,v]=m.useState(u.sortBy),[g,y]=m.useState(u.searchQuery),[b,p]=m.useState(u.selectedBrowser),[N,z]=m.useState(u.selectedViewport);m.useEffect(()=>{const B=new URLSearchParams;c!==kt.ALL&&B.set("filter",c),h!==ha.PRIORITY&&B.set("sort",h),g&&B.set("search",g),b!=="all"&&B.set("browser",b),N!=="all"&&B.set("viewport",N);const M=B.toString()?`?${B.toString()}`:window.location.pathname;window.history.replaceState({},"",M)},[c,h,g,b,N]);const L=m.useMemo(()=>{const B=new Set,M=new Set;return n.forEach(q=>{if(q.properties?.browser&&B.add(q.properties.browser),q.properties?.viewport_width&&q.properties?.viewport_height){const H=`${q.properties.viewport_width}x${q.properties.viewport_height}`;M.add(H)}else if(q.properties?.viewport){const H=`${q.properties.viewport.width}x${q.properties.viewport.height}`;M.add(H)}}),{browsers:Array.from(B).sort(),viewports:Array.from(M).sort()}},[n]);return{filteredComparisons:m.useMemo(()=>{let B=Xv(n,c);if(g.trim()){const M=g.toLowerCase();B=B.filter(q=>q.name.toLowerCase().includes(M)||q.originalName?.toLowerCase().includes(M))}return b!=="all"&&(B=B.filter(M=>M.properties?.browser===b)),N!=="all"&&(B=B.filter(M=>{let q=null;return M.properties?.viewport_width&&M.properties?.viewport_height?q=`${M.properties.viewport_width}x${M.properties.viewport_height}`:M.properties?.viewport&&(q=`${M.properties.viewport.width}x${M.properties.viewport.height}`),q===N})),Zv(B,h)},[n,c,h,g,b,N]),filter:c,setFilter:o,sortBy:h,setSortBy:v,searchQuery:g,setSearchQuery:y,selectedBrowser:b,setSelectedBrowser:p,selectedViewport:N,setSelectedViewport:z,availableFilters:L,counts:{all:n.length,failed:n.filter(B=>B.status==="failed").length,passed:n.filter(B=>B.status==="passed").length,new:n.filter(B=>B.status==="new").length}}}function $v(n){const[u,c]=m.useState("loading");return m.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),u}function Fv({src:n,alt:u,className:c,style:o,onClick:h}){const v=$v(n);if(v==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(iu,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",u.toLowerCase()," available"]})]})});if(v==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(fa,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",u.toLowerCase(),"..."]})]})});if(v==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(da,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",u.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let g=null;return h&&(g=y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),h(y))}),r.jsx("img",{src:n,alt:u,className:c,style:o,onClick:h,onKeyDown:g,role:h?"button":void 0,tabIndex:h?0:void 0})}function Wv(n){return n.id||n.signature||n.name}function Iv({status:n}){const u={failed:"bg-red-500",passed:"bg-emerald-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return r.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${u[n]||"bg-slate-500"}`})}function Pv({userAction:n}){return n==="accepted"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/20 text-emerald-400",children:[r.jsx(Ya,{className:"w-3 h-3"}),"Accepted"]}):n==="rejected"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/20 text-amber-400",children:[r.jsx(gg,{className:"w-3 h-3"}),"Rejected"]}):null}function e1(n){return n.properties?.viewport_width&&n.properties?.viewport_height?`${n.properties.viewport_width}×${n.properties.viewport_height}`:n.properties?.viewport?`${n.properties.viewport.width}×${n.properties.viewport.height}`:null}function t1({comparison:n,onClick:u,userAction:c}){const o=e1(n),h=n.properties?.browser,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created",y=n.current||n.baseline,b=`comparison-card-${n.id||n.name||"unknown"}`;return r.jsxs("button",{type:"button",onClick:()=>u(n),"data-testid":b,className:`
20
- w-full flex items-center gap-3 md:gap-4 p-3 md:p-4
21
- bg-white/5 hover:bg-white/10 active:bg-white/15
22
- border rounded-lg transition-all duration-150
23
- touch-manipulation text-left
24
- ${v?"border-red-500/40 hover:border-red-500/60":"border-slate-700/50 hover:border-slate-600"}
25
- `,children:[r.jsxs("div",{className:`
26
- relative w-16 h-12 md:w-20 md:h-14 rounded-md overflow-hidden flex-shrink-0 bg-slate-800
27
- ${v?"ring-2 ring-red-500/50":g?"ring-2 ring-blue-500/50":""}
28
- `,children:[y?r.jsx(Fv,{src:y,alt:n.name||"Screenshot",className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"})}),g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:r.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),r.jsx(Iv,{status:n.status})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-slate-400",children:[h&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:h}),o&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:o}),n.diffPercentage>0&&r.jsxs("span",{className:"text-red-400",children:[n.diffPercentage.toFixed(2),"% diff"]})]})]}),r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Pv,{userAction:c})}),r.jsx("div",{className:"flex-shrink-0 text-slate-500",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function a1({comparisons:n,onSelectComparison:u,loadingStates:c={}}){return!n||n.length===0?r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"}):r.jsx("div",{className:"space-y-2",children:n.map(o=>{const h=Wv(o);return r.jsx(t1,{comparison:{...o,id:h},onClick:u,userAction:c[h]},h)})})}function l1({filter:n,setFilter:u,sortBy:c,setSortBy:o,searchQuery:h,setSearchQuery:v,selectedBrowser:g,setSelectedBrowser:y,selectedViewport:b,setSelectedViewport:p,availableFilters:N,counts:z,onRefresh:L,loading:V}){const[B,M]=m.useState(!1),q=N.browsers.length>1||N.viewports.length>1;return r.jsxs("div",{className:"space-y-3 md:space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(Ag,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),r.jsx("input",{type:"text",placeholder:"Search screenshots...",value:h,onChange:H=>v(H.target.value),"data-testid":"search-input",className:"w-full bg-slate-800 border border-slate-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-slate-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),q&&r.jsx("button",{type:"button",onClick:()=>M(!B),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-slate-700 p-3 rounded-lg transition-colors touch-manipulation ${B?"text-amber-400 border-amber-500":"text-slate-300 hover:text-white"}`,title:"Filters",children:r.jsx(qm,{className:"w-5 h-5"})}),r.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[r.jsxs("select",{value:c,onChange:H=>o(H.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:ha.PRIORITY,children:"Priority"}),r.jsx("option",{value:ha.NAME,children:"Name"}),r.jsx("option",{value:ha.TIME,children:"Time"})]}),r.jsx("button",{type:"button",onClick:L,disabled:V,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(fa,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsx("button",{type:"button",onClick:L,disabled:V,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:r.jsx(fa,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[r.jsx("span",{className:"hidden md:inline text-sm text-slate-400 mr-1 flex-shrink-0",children:"Status:"}),r.jsxs("button",{type:"button",onClick:()=>u(kt.ALL),"data-testid":"filter-status-all",className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.ALL?"bg-amber-500 text-slate-900 shadow-lg shadow-amber-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["All ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.all,")"]})]}),r.jsxs("button",{type:"button",onClick:()=>u(kt.FAILED),"data-testid":"filter-status-failed",className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Failed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.failed,")"]})]}),r.jsxs("button",{type:"button",onClick:()=>u(kt.NEW),"data-testid":"filter-status-new",className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["New ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.new,")"]})]}),r.jsxs("button",{type:"button",onClick:()=>u(kt.PASSED),"data-testid":"filter-status-passed",className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.PASSED?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Passed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.passed,")"]})]}),N.browsers.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Browser:"}),r.jsxs("select",{value:g,onChange:H=>y(H.target.value),"data-testid":"filter-browser",className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(H=>r.jsx("option",{value:H,children:H},H))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Viewport:"}),r.jsxs("select",{value:b,onChange:H=>p(H.target.value),"data-testid":"filter-viewport",className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(H=>r.jsx("option",{value:H,children:H},H))]})]})]}),B&&q&&r.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-slate-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by:"}),r.jsxs("select",{value:c,onChange:H=>o(H.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:ha.PRIORITY,children:"Priority"}),r.jsx("option",{value:ha.NAME,children:"Name"}),r.jsx("option",{value:ha.TIME,children:"Time"})]})]}),N.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser:"}),r.jsxs("select",{value:g,onChange:H=>y(H.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(H=>r.jsx("option",{value:H,children:H},H))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport:"}),r.jsxs("select",{value:b,onChange:H=>p(H.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(H=>r.jsx("option",{value:H,children:H},H))]})]})]})]})}function n1(){const[,n]=mi(),{addToast:u,confirm:c}=Za(),{data:o,isLoading:h,refetch:v}=yi(),g=Lo(),{filteredComparisons:y,filter:b,setFilter:p,sortBy:N,setSortBy:z,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:H,availableFilters:$,counts:k}=Jv(o?.comparisons),ne=m.useCallback(J=>{const he=J.id||J.signature||J.name;he&&n(`/comparison/${encodeURIComponent(he)}`)},[n]),xe=m.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&g.mutate(void 0,{onSuccess:()=>{u("All baselines accepted successfully","success")},onError:he=>{console.error("Failed to accept all baselines:",he),u("Failed to accept all baselines. Please try again.","error")}})},[g,u,c]),fe=!o?.comparisons||o.comparisons.length===0,K=b!=="all"||L.trim()||B!=="all"||q!=="all",ee=o?.comparisons?.some(J=>J.status==="failed"||J.status==="new"),ve=o?.comparisons?.filter(J=>J.status==="failed").length||0,Me=o?.comparisons?.filter(J=>J.status==="new").length||0,de=ve+Me;return fe?r.jsx(yl,{icon:tg,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(l1,{filter:b,setFilter:p,sortBy:N,setSortBy:z,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:H,availableFilters:$,counts:k,onRefresh:v,loading:h}),ee&&r.jsx(hu,{variant:"success",title:i1(ve,Me),children:r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 mt-3",children:[r.jsx("p",{className:"text-sm text-slate-400 flex-1",children:ve>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"}),r.jsxs(Xe,{variant:"success",onClick:xe,loading:g.isPending,icon:Ya,className:"w-full sm:w-auto","data-testid":"btn-accept-all",children:["Accept All (",de,")"]})]})}),y.length===0?r.jsx(at,{hover:!1,children:r.jsx(nt,{className:"py-12",children:r.jsx(yl,{icon:bg,title:"No matches",description:"No comparisons match your current filters.",action:K&&r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>{p("all"),V(""),M("all"),H("all")},children:"Clear all filters"})})})}):r.jsx(a1,{comparisons:y,onSelectComparison:ne,loadingStates:{}})]})}function i1(n,u){return n>0&&u>0?`${n} Failed, ${u} New`:n>0?`${n} Visual Difference${n!==1?"s":""}`:`${u} New Baseline${u!==1?"s":""}`}function s1({onComplete:n}){const[u,c]=m.useState(null),[o,h]=m.useState(null),v=yv(),g=pv(),{addToast:y}=Za();m.useEffect(()=>{async function p(){try{const N=await v.mutateAsync();c(N)}catch(N){h(N.message),y(`Failed to start login: ${N.message}`,"error")}}p()},[y,v.mutateAsync]);async function b(){if(u?.deviceCode){h(null);try{const p=await g.mutateAsync(u.deviceCode);p.status==="complete"?(y("Login successful!","success"),n?.()):p.status==="pending"?y("Still waiting for authorization...","info"):h("Unexpected response from server")}catch(p){h(p.message),y(`Check failed: ${p.message}`,"error")}}}return o?r.jsx(hu,{variant:"danger",title:"Login Error",children:o}):u?r.jsx(at,{hover:!1,children:r.jsxs(nt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:u.verificationUriComplete||u.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:u.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Xe,{variant:"secondary",onClick:b,loading:g.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function u1(){const[n,u]=m.useState(!1),c=Lt(),{data:o,isLoading:h}=Ho(),v=bv(),{addToast:g}=Za(),y=o?.user,b=o?.authenticated,p=m.useCallback(async()=>{try{await v.mutateAsync(),g("Logged out successfully","success")}catch(z){g(`Logout failed: ${z.message}`,"error")}},[v,g]),N=m.useCallback(()=>{u(!1),c.invalidateQueries({queryKey:Te.auth})},[c]);return h?r.jsx(Va,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>u(!1),children:"← Back"}),r.jsx(s1,{onComplete:N})]}):b?r.jsx(at,{hover:!1,children:r.jsx(nt,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(su,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:y?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:y?.email}),y?.organizationName&&r.jsx(on,{variant:"default",className:"mt-2",children:y.organizationName})]})]}),r.jsx(Xe,{variant:"ghost",onClick:p,loading:v.isPending,icon:Gm,children:"Sign Out"})]})})}):r.jsx(at,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(su,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Xe,{variant:"primary",onClick:()=>u(!0),icon:mo,children:"Sign In"})]})})}function r1({mappings:n,onDelete:u,deleting:c}){const{addToast:o,confirm:h}=Za(),v=m.useCallback(async g=>{if(await h(`Remove project mapping for ${g}?`,"This will not delete any files, only the project association."))try{await u(g),o("Mapping removed successfully","success")}catch(b){o(`Failed to remove mapping: ${b.message}`,"error")}},[u,o,h]);return n.length===0?r.jsx(yl,{icon:un,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map(g=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:g.directory}),r.jsx("td",{className:"text-white",children:g.projectName||g.projectSlug}),r.jsx("td",{children:g.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>v(g.directory),disabled:c,icon:Dg,className:"!p-2"})})]},g.directory))})]})})}function c1(){const{data:n,isLoading:u,refetch:c}=wv(),o=Nv(),h=n?.mappings||[],v=m.useCallback(async g=>{await o.mutateAsync(g)},[o]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Va,{})}),r.jsx(Va,{})]}),r.jsx(Va,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(u1,{})}),r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{title:"Quick Stats"}),r.jsx(nt,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:h.length})]})})]})]}),r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{icon:un,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(),icon:fa,children:"Refresh"})}),r.jsx(nt,{padding:"p-0",children:r.jsx(r1,{mappings:h,onDelete:v,deleting:o.isPending})})]})]})}function o1(n={}){return ml({queryKey:Te.config,queryFn:Uo.get,...n})}function f1(){const n=Lt();return Qt({mutationFn:Uo.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:Te.config})}})}function Qo(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function mu({source:n}){const u={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(on,{variant:u[n]||"default",size:"sm",children:c[n]||n})}function d1({config:n,sources:u,onSave:c,isSaving:o}){const h=Qo(n),[v,g]=m.useState(h),[y,b]=m.useState(!1),[p,N]=m.useState("general"),z=m.useCallback((M,q)=>{g(H=>({...H,[M]:q})),b(!0)},[]),L=m.useCallback(()=>{g(Qo(n)),b(!1)},[n]),V=m.useCallback(()=>{const M={comparison:{threshold:v.threshold},server:{port:v.port,timeout:v.timeout},build:{name:v.buildName,environment:v.environment},tdd:{openReport:v.openReport}};c(M,()=>b(!1))},[v,c]),B=[{key:"general",label:"General",icon:nu},{key:"server",label:"Server",icon:vo},{key:"build",label:"Build",icon:yo}];return r.jsxs("div",{className:"space-y-6",children:[r.jsx(gv,{tabs:B,activeTab:p,onChange:N,variant:"default"}),p==="general"&&r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{icon:nu,title:"General Settings",description:"Configure visual comparison and TDD behavior",iconColor:"bg-amber-500/10 text-amber-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Visual Comparison Threshold",type:"number",value:v.threshold,onChange:M=>z("threshold",parseFloat(M.target.value)),hint:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",step:"0.01",min:"0",max:"1"}),r.jsx(hv,{label:"Auto-open Report",description:"Automatically open the dashboard in your browser when starting TDD mode",checked:v.openReport,onChange:M=>z("openReport",M.target.checked)}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.comparison||"default"})]})]})]}),p==="server"&&r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{icon:vo,title:"Server Settings",description:"Local screenshot server configuration",iconColor:"bg-blue-500/10 text-blue-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Server Port",type:"number",value:v.port,onChange:M=>z("port",parseInt(M.target.value,10)),hint:"Port for the local screenshot server"}),r.jsx(pi,{label:"Server Timeout",type:"number",value:v.timeout,onChange:M=>z("timeout",parseInt(M.target.value,10)),hint:"Request timeout in milliseconds"}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.server||"default"})]})]})]}),p==="build"&&r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{icon:yo,title:"Build Settings",description:"Configure build naming and environment",iconColor:"bg-purple-500/10 text-purple-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Build Name Template",type:"text",value:v.buildName,onChange:M=>z("buildName",M.target.value),hint:"Template for build names (use {timestamp} for current time)"}),r.jsx(dv,{label:"Environment",value:v.environment,onChange:M=>z("environment",M.target.value),hint:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.build||"default"})]})]})]}),y&&r.jsx("div",{className:"fixed bottom-6 right-6 left-6 md:left-auto md:w-auto",children:r.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl p-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-slate-400 hidden md:inline",children:"Unsaved changes"}),r.jsxs("div",{className:"flex gap-3 flex-1 md:flex-initial",children:[r.jsx(Xe,{variant:"ghost",onClick:L,disabled:o,className:"flex-1 md:flex-initial",children:"Reset"}),r.jsx(Xe,{variant:"primary",onClick:V,loading:o,icon:Ya,className:"flex-1 md:flex-initial",children:"Save Changes"})]})]})})]})}function h1(){const{data:n,isLoading:u,error:c,refetch:o}=o1(),h=f1(),{addToast:v}=Za(),g=m.useCallback((y,b)=>{h.mutate(y,{onSuccess:()=>{b(),v("Settings saved successfully!","success")},onError:p=>{v(`Failed to save settings: ${p.message}`,"error")}})},[h,v]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsx(ut,{variant:"text",className:"w-96 h-10"}),r.jsx(Va,{})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(hu,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6 pb-24",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(d1,{config:n?.config,sources:n?.sources,onSave:g,isSaving:h.isPending},JSON.stringify(n?.config))]})}function xi({icon:n,label:u,value:c,subvalue:o,variant:h,iconColor:v}){return r.jsx(at,{variant:h,hover:!1,children:r.jsx(nt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:u}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${v}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function m1(){const{addToast:n,confirm:u}=Za(),{data:c,isLoading:o,refetch:h}=yi(),v=Lo(),g=sv(),y=c?.comparisons,b=c?.baseline,p=y?.length||0,N=y?.filter(H=>H.status==="passed").length||0,z=y?.filter(H=>H.status==="failed").length||0,L=y?.filter(H=>H.status==="new").length||0,V=p>0?Math.round(N/p*100):0,B=y?.some(H=>H.status==="failed"||H.status==="new"),M=m.useCallback(async()=>{await u("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:$=>{console.error("Failed to accept all baselines:",$),n("Failed to accept all baselines. Please try again.","error")}})},[v,n,u]),q=m.useCallback(async()=>{await u("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&g.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:$=>{console.error("Failed to reset baselines:",$),n("Failed to reset baselines. Please try again.","error")}})},[g,n,u]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(at,{hover:!1,children:r.jsxs(nt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(mv,{value:V,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[N," of ",p," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(xi,{icon:iu,label:"Total Screenshots",value:p,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(xi,{icon:go,label:"Passed",value:N,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(xi,{icon:da,label:"Failed",value:z,variant:z>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(xi,{icon:Mg,label:"New",value:L,variant:L>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{icon:fi,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:L>0&&r.jsxs(on,{variant:"warning",dot:!0,children:[L," new without baseline"]})}),r.jsx(nt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(at,{hover:!1,children:[r.jsx(Ga,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(cv,{className:"flex flex-wrap gap-3",children:[r.jsx(Xe,{variant:"success",onClick:M,loading:v.isPending,disabled:!B||o,icon:go,children:B?"Accept All Changes":"No Changes to Accept"}),r.jsx(Xe,{variant:"secondary",onClick:q,loading:g.isPending,disabled:o,icon:fa,children:"Reset Baselines"}),r.jsx(Xe,{variant:"ghost",onClick:()=>h(),loading:o,icon:fa,className:"ml-auto",children:"Refresh"})]})]})]})}function g1(n,u){const c=[];if(u==="shell")return n.split(`
29
- `).forEach((g,y)=>{const b=n.split(`
30
- `).slice(0,y).join(`
31
- `).length+(y>0?1:0);g.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+g.length}):(g.trim().startsWith("npm")||g.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+g.length})}),c;const o=[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}];for(let{type:g,regex:y}of o){let b=y.exec(n);for(;b!==null;)c.push({type:g,start:b.index,end:b.index+b[0].length}),b=y.exec(n)}c.sort((g,y)=>g.start-y.start);const h=[];let v=0;return c.forEach(g=>{g.start>=v&&(h.push(g),v=g.end)}),h}function v1({code:n,language:u="javascript"}){const c=m.useRef(null),o=u==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return m.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;const h=c.current.firstChild;if(!h||h.nodeType!==window.Node.TEXT_NODE)return;const g=g1(n,o?"shell":u).map(p=>{const N=new window.Range;return N.setStart(h,p.start),N.setEnd(h,p.end),{type:p.type,range:N}}),y=new Map;g.forEach(({type:p,range:N})=>{y.has(p)||y.set(p,[]),y.get(p).push(N)});const b=new Map;for(const[p,N]of y){const z=new window.Highlight(...N);b.set(p,z),window.CSS.highlights.set(`code-${p}`,z)}return()=>{for(const[p]of b)window.CSS.highlights.delete(`code-${p}`)}},[n,u,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}const ko=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
176
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${X.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...X.allowsOverflow?{minWidth:_.width*X.scale+40,minHeight:_.height*X.scale+40,padding:"20px"}:{zoom:X.scale,padding:"20px"}},children:r.jsx("div",{ref:F,className:"relative inline-block",style:X.allowsOverflow?{transform:`scale(${X.scale})`,transformOrigin:"top center"}:{},children:s==="toggle"&&de.baseline?r.jsx(A1,{baselineImageUrl:de.baseline,currentImageUrl:de.current,screenshot:V,onImageError:I,onImageLoad:ve,imageErrors:g}):s==="onion-skin"&&de.baseline?r.jsx(E1,{baselineImageUrl:de.baseline,currentImageUrl:de.current,sliderPosition:o,onSliderChange:d,screenshot:V,onImageError:I,onImageLoad:ve,imageErrors:g}):r.jsx(C1,{baselineImageUrl:de.baseline,currentImageUrl:de.current,diffImageUrl:de.diff,showDiffOverlay:c,screenshot:V,onImageError:I,onImageLoad:ve,imageErrors:g,onDiffToggle:m})})}),!v&&!N.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),g.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(ea,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function Jt(n){return n?.id||n?.signature||n?.name}function Af(n){switch(n){case"failed":return"changed";case"new":case"baseline-created":return"new";case"passed":return"unchanged";default:return n}}function pg(n){return r.jsx(q1,{children:r.jsx(gg,{...n})})}function gg({comparison:n,comparisons:s=[],onClose:c,onAccept:o,onReject:d,onDelete:m,onNavigate:v}){let[x,b]=h.useState(aa.OVERLAY),[g,y]=h.useState(!0),[N,C]=h.useState(50),[B,O]=h.useState(!0),[_,Q]=h.useState(!1),[H,F]=h.useState("needs-review"),[X,I]=h.useState(!0),{zoom:ve,setZoom:de}=M1("fit"),{isActive:V}=jf(),ee=h.useRef(null),ge=h.useCallback(()=>{Q(G=>!G)},[]),Te=h.useMemo(()=>s.map(G=>({...G,name:G.name||G.originalName||"Unknown",result:Af(G.status),status:G.status,approval_status:G.userAction==="accepted"?"approved":G.userAction==="rejected"?"rejected":G.status==="passed"?"approved":"pending",diff_percentage:G.diffPercentage??G.diff_percentage,diffClusters:G.diffClusters||[],viewport_width:G.properties?.viewport_width??G.viewport_width,viewport_height:G.properties?.viewport_height??G.viewport_height,browser:G.properties?.browser??G.browser})),[s]),Ne=h.useMemo(()=>{if(!n)return null;let G=n.name||n.originalName,Ae=Te.filter($e=>($e.name||$e.originalName)===G);return{name:G,comparisons:Ae}},[n,Te]),De=h.useCallback(G=>{G&&v&&v(G)},[v]),pe=h.useMemo(()=>{let G={all:()=>!0,"needs-review":$e=>($e.result==="changed"||$e.result==="new")&&$e.approval_status!=="approved"&&$e.approval_status!=="rejected",changes:$e=>$e.result==="changed",new:$e=>$e.result==="new"},Ae=G[H]||G.all;return Te.filter(Ae)},[Te,H]),we=h.useMemo(()=>{if(!n)return-1;let G=Jt(n);return pe.findIndex(Ae=>Jt(Ae)===G)},[pe,n]),_e=h.useMemo(()=>({prev:we>0,next:we<pe.length-1&&we!==-1}),[we,pe.length]),R=h.useCallback(()=>{if(_e.prev){let G=pe[we-1];v(G)}},[_e.prev,pe,we,v]),q=h.useCallback(()=>{if(_e.next){let G=pe[we+1];v(G)}},[_e.next,pe,we,v]),Z=h.useCallback(()=>we<pe.length-1?pe[we+1]:we>0?pe[we-1]:null,[we,pe]),re=h.useCallback(()=>{if(!o||!n)return;let G=H==="needs-review"?Z():null;o(Jt(n)),G?v(G):H==="needs-review"&&pe.length<=1&&c()},[o,n,H,Z,pe.length,v,c]),xe=h.useCallback(()=>{if(!d||!n)return;let G=H==="needs-review"?Z():null;d(Jt(n)),G?v(G):H==="needs-review"&&pe.length<=1&&c()},[d,n,H,Z,pe.length,v,c]),S=h.useCallback(()=>{!m||!n||m(Jt(n))},[m,n]),k=h.useCallback(()=>{b(G=>G===aa.OVERLAY?aa.TOGGLE:aa.OVERLAY)},[]),Y=h.useCallback(()=>{x===aa.TOGGLE?I(G=>!G):y(G=>!G)},[x]),$=h.useMemo(()=>({a:o?re:void 0,r:d?xe:void 0,d:Y,t:k,1:()=>b(aa.OVERLAY),2:()=>b(aa.TOGGLE),3:()=>b(aa.ONION)}),[re,xe,o,d,k,Y]);if(Q1($),h.useEffect(()=>{let G=Ae=>{if(!(Ae.target.tagName==="INPUT"||Ae.target.tagName==="TEXTAREA"))switch(Ae.key){case"ArrowUp":case"ArrowLeft":Ae.preventDefault(),_e.prev&&R();break;case"ArrowDown":case"ArrowRight":Ae.preventDefault(),_e.next&&q();break;case"Escape":Ae.preventDefault(),c();break;case"i":!Ae.metaKey&&!Ae.ctrlKey&&(Ae.preventDefault(),ge());break}};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[_e,R,q,c,ge]),h.useEffect(()=>{let G=ee.current;if(!G)return;let Ae=G.closest(".overflow-y-auto");if(!Ae)return;let $e=G.getBoundingClientRect(),sl=Ae.getBoundingClientRect();$e.top<sl.top?Ae.scrollBy({top:$e.top-sl.top-8,behavior:"smooth"}):$e.bottom>sl.bottom&&Ae.scrollBy({top:$e.bottom-sl.bottom+8,behavior:"smooth"})},[]),!n)return r.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-slate-400",children:[r.jsx("div",{className:"text-lg mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300",children:"Return to list"})]})});let te=Af(n.status),le=n.userAction==="accepted"?"approved":n.userAction==="rejected"?"rejected":n.status==="passed"?"approved":"pending",ie={new:{variant:"info",label:"New"},changed:{variant:"warning",label:"Changed"},unchanged:{variant:"default",label:"Unchanged"}}[te],at=n.status==="new"||n.status==="baseline-created",Se=n.properties||{};return r.jsxs("div",{className:"h-screen bg-slate-950 flex flex-col overflow-hidden","data-testid":"fullscreen-viewer",children:[r.jsxs("header",{className:"flex-shrink-0 bg-slate-900 border-b border-slate-800/60 z-30",children:[r.jsxs("div",{className:"px-2 sm:px-4 py-2 flex items-center gap-1 sm:gap-3",children:[r.jsx(_1,{onClick:c}),r.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[r.jsx("h1",{className:"text-sm font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),ie&&r.jsx(dt,{variant:ie.variant,size:"sm",className:"hidden xs:flex",children:ie.label}),V&&r.jsx(dt,{variant:"warning",size:"sm",dot:!0,pulseDot:!0,className:"hidden sm:flex",children:"Review Mode"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("button",{type:"button",onClick:R,disabled:!_e.prev,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Previous",children:r.jsx(tp,{className:"w-5 h-5"})}),r.jsxs("span",{className:"hidden sm:block text-xs text-slate-500 font-medium tabular-nums px-1 min-w-[3rem] text-center",children:[we+1,"/",pe.length]}),r.jsx("button",{type:"button",onClick:q,disabled:!_e.next,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Next",children:r.jsx(Al,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"hidden sm:block h-5 w-px bg-slate-700/60"}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[at&&m?r.jsx("button",{type:"button",onClick:S,className:"px-3 py-1.5 text-xs font-medium text-red-400 hover:text-red-300 hover:bg-red-600/20 rounded-md transition-colors","data-testid":"btn-delete",children:"Delete"}):null,r.jsx(p1,{status:le,onApprove:o?re:null,onReject:d?xe:null,compact:!0})]}),r.jsxs("div",{className:"hidden sm:flex items-center",children:[r.jsx("button",{type:"button",onClick:()=>O(!B),className:`flex items-center justify-center p-2 rounded-md transition-colors ${B?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Queue","aria-label":"Toggle queue","data-testid":"toggle-queue-btn",children:r.jsx(Ho,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:ge,className:`p-2 rounded-md transition-colors ${_?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Details (I)","aria-label":"Screenshot details","data-testid":"toggle-inspector-btn",children:r.jsx(Er,{className:"w-5 h-5 pointer-events-none"})})]})]}),r.jsxs("div",{className:"px-2 sm:px-4 py-1.5 sm:py-2 border-t border-slate-800/40 flex items-center gap-2 sm:gap-3",children:[Ne&&Ne.comparisons.length>0&&r.jsx(K1,{variants:Ne.comparisons,currentVariantId:Jt(n),onVariantSelect:De}),r.jsx("div",{className:"flex-1"}),n.diff&&r.jsx(J1,{value:x,onChange:b,compact:!0,className:"hidden sm:flex"}),r.jsx(O1,{zoom:ve,onZoomChange:de})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[r.jsxs(Dr,{isOpen:B,onClose:()=>O(!1),position:"bottom",desktopPosition:"left",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,testId:"queue-drawer",children:[r.jsx(_r,{title:"Queue",subtitle:`${pe.length} of ${Te.length} items`,onClose:()=>O(!1)}),r.jsx(R1,{children:[{id:"needs-review",label:"To Review"},{id:"changes",label:"Changes"},{id:"new",label:"New"},{id:"all",label:"All"}].map(G=>r.jsx(D1,{isActive:H===G.id,onClick:()=>F(G.id),children:G.label},G.id))}),r.jsxs(Lr,{className:"px-2 py-2 space-y-1",children:[pe.map(G=>{let Ae=Jt(G)===Jt(n);return r.jsx("div",{ref:Ae?ee:null,children:r.jsx(H1,{item:G,isActive:Ae,thumbnailUrl:G.current||G.baseline,onClick:()=>v(G)})},Jt(G))}),pe.length===0&&r.jsx("div",{className:"text-center py-8 text-slate-600 text-xs",children:H==="needs-review"?"All screenshots reviewed!":"No items match this filter"})]}),r.jsxs(T1,{className:"hidden sm:flex flex-col items-center gap-1.5",children:[r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-slate-400",children:"↑↓"})," navigate"," · ",r.jsx("span",{className:"text-slate-400",children:"Space"})," ",V?"exit":"review mode"]}),V&&r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-emerald-500 font-medium",children:"A"})," approve"," · ",r.jsx("span",{className:"text-red-500 font-medium",children:"R"})," reject"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"D"})," diff"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"T"})," view"]})]})]}),r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:r.jsx(vg,{comparison:n,viewMode:x===aa.ONION?"onion-skin":x,showDiffOverlay:g,onDiffToggle:()=>y(G=>!G),onionSkinPosition:N,onOnionSkinChange:C,zoom:ve,disableLoadingOverlay:!0,className:"w-full h-full"},Jt(n))}),r.jsxs(ht,{isOpen:_,onClose:()=>Q(!1),title:"Screenshot Details",subtitle:n.name||n.originalName,className:"order-last",children:[r.jsx(ht.Section,{title:"Status",icon:ko,children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[ie&&r.jsx(dt,{variant:ie.variant,size:"sm",children:ie.label}),r.jsx(dt,{variant:le==="approved"?"success":le==="rejected"?"danger":"default",size:"sm",children:le})]})}),r.jsxs(ht.Section,{title:"Screenshot",icon:wn,children:[Se.browser&&r.jsx(ht.Row,{label:"Browser",value:Se.browser,icon:()=>r.jsx(En,{browser:Se.browser,className:"w-3.5 h-3.5"})}),r.jsx(ht.Row,{label:"Viewport",value:Se.viewport_width&&Se.viewport_height?`${Se.viewport_width} × ${Se.viewport_height}`:null,mono:!0}),r.jsx(ht.Row,{label:"Device",value:Se.device})]}),te==="changed"&&n.diffPercentage!=null&&r.jsxs(ht.Section,{title:"Diff Analysis",icon:vp,children:[r.jsx(ht.Row,{label:"Changed",value:`${Number(n.diffPercentage).toFixed(3)}%`,mono:!0}),n.diffPixels!=null&&r.jsx(ht.Row,{label:"Pixels",value:n.diffPixels.toLocaleString(),mono:!0}),n.threshold!=null&&r.jsx(ht.Row,{label:"Threshold",value:Number(n.threshold).toFixed(2),mono:!0})]}),r.jsx(ht.Section,{title:"Identifier",icon:ko,children:r.jsx(ht.Row,{label:"Signature",value:n.signature||n.id,mono:!0,copyable:!0})})]})]}),r.jsxs("div",{className:"sm:hidden flex-shrink-0 bg-slate-900/98 backdrop-blur-sm border-t border-slate-700/50 safe-area-pb",children:[r.jsx(g1,{status:le,onApprove:o?re:null,onReject:d?xe:null}),r.jsxs("div",{className:"px-3 py-2 flex items-center gap-1 border-t border-slate-800/40",children:[r.jsx("button",{type:"button",onClick:()=>O(!B),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${B?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Queue","data-testid":"mobile-toggle-queue-btn",children:r.jsx(Ho,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:ge,className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${_?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Screenshot details","data-testid":"mobile-toggle-inspector-btn",children:r.jsx(Er,{className:"w-5 h-5 pointer-events-none"})}),at&&m&&r.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center p-2.5 rounded-lg text-red-400 hover:text-red-300 hover:bg-red-600/20 active:bg-red-600/30 transition-colors","aria-label":"Delete","data-testid":"mobile-delete-btn",children:r.jsx("span",{className:"text-xs font-medium",children:"Delete"})}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs text-slate-500 tabular-nums",children:[we+1," / ",pe.length]}),ie&&r.jsx(dt,{variant:ie.variant,size:"sm",children:ie.label})]})]})]})]})}function xg(){const[,n]=Ts(),[,s]=c1("/comparison/:id"),{data:c}=_s(),o=uf(),d=of(),m=h1(),v=h.useMemo(()=>c?.comparisons||[],[c?.comparisons]),x=h.useMemo(()=>{const B=s?.id?decodeURIComponent(s.id):null;return!B||v.length===0?null:v.find(O=>O.id===B||O.signature===B||O.name===B)},[s,v]),b=h.useCallback(B=>{const O=B.id||B.signature||B.name;O&&n(`/comparison/${encodeURIComponent(O)}`)},[n]),g=h.useCallback(()=>{n("/")},[n]),y=h.useCallback(B=>{o.mutate(B)},[o]),N=h.useCallback(B=>{d.mutate(B)},[d]),C=h.useCallback(B=>{m.mutate(B,{onSuccess:()=>{n("/")}})},[m,n]);return x?r.jsx(pg,{comparison:x,comparisons:v,onClose:g,onAccept:y,onReject:N,onDelete:C,onNavigate:b}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",s?.id||"none"]}),r.jsx("button",{type:"button",onClick:g,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function bg(n,s){return[...n].sort((c,o)=>{if(s==="priority"){const d={[nl.FAILED]:3,[nl.NEW]:2,[nl.PASSED]:1},m=c.initialStatus||c.status,v=o.initialStatus||o.status,x=d[m]||0,b=d[v]||0;return x!==b?b-x:(o.diffPercentage||0)-(c.diffPercentage||0)}return s==="name"?(c.name||"").localeCompare(o.name||""):s==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function yg(n,s){return s==="failed"?n.filter(c=>c.status===nl.FAILED):s==="passed"?n.filter(c=>c.status===nl.PASSED):s==="new"?n.filter(c=>c.status===nl.NEW||c.status===nl.BASELINE_CREATED):n}const jg=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||qe.ALL,sortBy:n.get("sort")||zn.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function wg(n=[]){const s=jg(),[c,o]=h.useState(s.filter),[d,m]=h.useState(s.sortBy),[v,x]=h.useState(s.searchQuery),[b,g]=h.useState(s.selectedBrowser),[y,N]=h.useState(s.selectedViewport);h.useEffect(()=>{const O=new URLSearchParams;c!==qe.ALL&&O.set("filter",c),d!==zn.PRIORITY&&O.set("sort",d),v&&O.set("search",v),b!=="all"&&O.set("browser",b),y!=="all"&&O.set("viewport",y);const _=O.toString()?`?${O.toString()}`:window.location.pathname;window.history.replaceState({},"",_)},[c,d,v,b,y]);const C=h.useMemo(()=>{const O=new Set,_=new Set;return n.forEach(Q=>{if(Q.properties?.browser&&O.add(Q.properties.browser),Q.properties?.viewport_width&&Q.properties?.viewport_height){const H=`${Q.properties.viewport_width}x${Q.properties.viewport_height}`;_.add(H)}else if(Q.properties?.viewport){const H=`${Q.properties.viewport.width}x${Q.properties.viewport.height}`;_.add(H)}}),{browsers:Array.from(O).sort(),viewports:Array.from(_).sort()}},[n]);return{filteredComparisons:h.useMemo(()=>{let O=yg(n,c);if(v.trim()){const _=v.toLowerCase();O=O.filter(Q=>Q.name.toLowerCase().includes(_)||Q.originalName?.toLowerCase().includes(_))}return b!=="all"&&(O=O.filter(_=>_.properties?.browser===b)),y!=="all"&&(O=O.filter(_=>{let Q=null;return _.properties?.viewport_width&&_.properties?.viewport_height?Q=`${_.properties.viewport_width}x${_.properties.viewport_height}`:_.properties?.viewport&&(Q=`${_.properties.viewport.width}x${_.properties.viewport.height}`),Q===y})),bg(O,d)},[n,c,d,v,b,y]),filter:c,setFilter:o,sortBy:d,setSortBy:m,searchQuery:v,setSearchQuery:x,selectedBrowser:b,setSelectedBrowser:g,selectedViewport:y,setSelectedViewport:N,availableFilters:C,counts:{all:n.length,failed:n.filter(O=>O.status==="failed").length,passed:n.filter(O=>O.status==="passed").length,new:n.filter(O=>O.status==="new").length,rejected:n.filter(O=>O.status==="rejected").length}}}function Sg(n){const[s,c]=h.useState("loading");return h.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),s}function Ng({src:n,alt:s,className:c,style:o,onClick:d}){const m=Sg(n);if(m==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Cr,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",s.toLowerCase()," available"]})]})});if(m==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Pa,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",s.toLowerCase(),"..."]})]})});if(m==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(ea,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",s.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let v=null;return d&&(v=x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),d(x))}),r.jsx("img",{src:n,alt:s,className:c,style:o,onClick:d,onKeyDown:v,role:d?"button":void 0,tabIndex:d?0:void 0})}function Eg(n){let s=new Map;for(let c of n){let o=c.name||c.originalName||"Unknown";s.has(o)||s.set(o,{name:o,comparisons:[],browsers:new Set,viewports:[],hasChanges:!1,hasNew:!1,allPassed:!0,maxDiff:0,failedCount:0,newCount:0,passedCount:0,acceptedCount:0,rejectedCount:0});let d=s.get(o);d.comparisons.push(c),c.properties?.browser&&d.browsers.add(c.properties.browser),c.properties?.viewport_width&&c.properties?.viewport_height&&d.viewports.push({width:c.properties.viewport_width,height:c.properties.viewport_height,id:c.id,status:c.status}),c.status==="failed"?(d.hasChanges=!0,d.allPassed=!1,d.failedCount++,d.maxDiff=Math.max(d.maxDiff,c.diffPercentage||0)):c.status==="new"||c.status==="baseline-created"?(d.hasNew=!0,d.allPassed=!1,d.newCount++):c.status==="passed"&&d.passedCount++,c.userAction==="accepted"?d.acceptedCount++:c.userAction==="rejected"&&d.rejectedCount++}return Array.from(s.values()).map(c=>({...c,browsers:Array.from(c.browsers),viewports:c.viewports.sort((o,d)=>d.width*d.height-o.width*o.height),primary:c.comparisons[0]})).sort((c,o)=>c.hasChanges&&!o.hasChanges?-1:!c.hasChanges&&o.hasChanges?1:c.hasNew&&!o.hasNew?-1:!c.hasNew&&o.hasNew?1:c.maxDiff!==o.maxDiff?o.maxDiff-c.maxDiff:c.name.localeCompare(o.name))}function Mf({width:n,className:s="w-3.5 h-3.5"}){return n<=480?r.jsx(Os,{className:s}):n<=1024?r.jsx(Nr,{className:s}):r.jsx(wn,{className:s})}function Cg({group:n}){return n.acceptedCount===n.comparisons.length?r.jsxs(dt,{variant:"success",size:"sm",children:[r.jsx(el,{className:"w-3 h-3 mr-1"}),"Accepted"]}):n.rejectedCount>0?r.jsxs(dt,{variant:"warning",size:"sm",children:[r.jsx(Nn,{className:"w-3 h-3 mr-1"}),"Rejected"]}):n.hasChanges?r.jsxs(dt,{variant:"danger",size:"sm",children:[n.failedCount," changed"]}):n.hasNew?r.jsxs(dt,{variant:"info",size:"sm",children:[n.newCount," new"]}):r.jsx(dt,{variant:"success",size:"sm",children:"Passed"})}function Ag({group:n,maxVisible:s=4}){let c=n.comparisons.length;if(c<=1){let m=n.viewports[0],v=n.browsers[0];return r.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[m&&r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(Mf,{width:m.width,className:"w-3 h-3"}),m.width,"×",m.height]}),v&&r.jsx("span",{children:v})]})}let o=n.viewports.slice(0,s),d=c-s;return r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.map((m,v)=>r.jsxs("span",{className:`
177
+ inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium
178
+ ${m.status==="failed"?"bg-red-500/20 text-red-400 border border-red-500/30":m.status==="new"||m.status==="baseline-created"?"bg-blue-500/20 text-blue-400 border border-blue-500/30":"bg-slate-700/50 text-slate-400 border border-slate-600/30"}
179
+ `,children:[r.jsx(Mf,{width:m.width,className:"w-2.5 h-2.5"}),m.width]},v)),d>0&&r.jsxs("span",{className:"text-[10px] text-slate-500",children:["+",d," more"]}),n.browsers.length>0&&r.jsxs("span",{className:"text-[10px] text-slate-500 ml-1",children:["· ",n.browsers.join(", ")]})]})}function Mg({group:n,onSelect:s,onAcceptGroup:c,onRejectGroup:o,isAccepting:d}){let{primary:m,hasChanges:v,hasNew:x,maxDiff:b}=n,g=v||x,y=m.current||m.baseline,N=`screenshot-group-${(m.id||m.signature||n.name).replace(/[^a-zA-Z0-9-]/g,"-")}`,C=v?"border-red-500/40 hover:border-red-500/60":x?"border-blue-500/40 hover:border-blue-500/60":"border-slate-700/50 hover:border-slate-600";return r.jsxs("div",{"data-testid":N,className:`
180
+ group flex items-center gap-3 p-3
181
+ bg-slate-800/30 hover:bg-slate-800/50
182
+ border rounded-lg transition-all
183
+ ${C}
184
+ `,children:[r.jsxs("button",{type:"button",onClick:()=>s(m),className:"relative w-16 h-11 rounded-md overflow-hidden flex-shrink-0 bg-slate-900 hover:ring-2 hover:ring-amber-500/50 transition-all",children:[y?r.jsx(Ng,{src:y,alt:n.name,className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx(wn,{className:"w-5 h-5"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"})}),!v&&x&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/10"}),n.comparisons.length>1&&r.jsx("div",{className:"absolute bottom-0.5 right-0.5 px-1 py-0.5 text-[9px] font-bold bg-slate-900/90 text-slate-300 rounded",children:n.comparisons.length})]}),r.jsxs("button",{type:"button",onClick:()=>s(m),className:"flex-1 min-w-0 text-left",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-sm font-medium text-white truncate",children:n.name}),b>0&&r.jsxs("span",{className:"text-xs font-mono text-red-400",children:[b.toFixed(1),"%"]})]}),r.jsx("div",{className:"mt-1",children:r.jsx(Ag,{group:n})})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsx(Cg,{group:n}),g&&r.jsxs("div",{className:`flex items-center gap-1 ${n.acceptedCount===0?"opacity-100":"opacity-0 group-hover:opacity-100"} transition-opacity`,children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:B=>{B.stopPropagation(),c(n)},disabled:d,className:"!p-1.5 text-emerald-400 hover:bg-emerald-500/20",title:`Accept ${n.comparisons.length>1?`all ${n.comparisons.length} variants`:""}`,children:r.jsx(el,{className:"w-4 h-4"})}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:B=>{B.stopPropagation(),o(n)},disabled:d,className:"!p-1.5 text-red-400 hover:bg-red-500/20",title:"Reject",children:r.jsx(Nn,{className:"w-4 h-4"})})]}),r.jsx(Al,{className:"w-4 h-4 text-slate-500 group-hover:text-slate-300 transition-colors"})]})]})}function Og({comparisons:n,onSelectComparison:s,onAcceptComparison:c,onRejectComparison:o,loadingStates:d={}}){let m=h.useMemo(()=>!n||n.length===0?[]:Eg(n),[n]);if(m.length===0)return r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"});let v=g=>{if(c)for(let y of g.comparisons)c(y.id||y.signature||y.name)},x=g=>{if(o)for(let y of g.comparisons)o(y.id||y.signature||y.name)},b=Object.values(d).some(g=>g==="accepting");return r.jsx("div",{className:"space-y-2",children:m.map(g=>r.jsx(Mg,{group:g,onSelect:s,onAcceptGroup:v,onRejectGroup:x,isAccepting:b},g.name))})}function Ur(n){return n<=480?Os:n<=1024?Nr:wn}function qs({value:n,onChange:s,options:c,placeholder:o,renderOption:d,renderValue:m,testId:v}){let[x,b]=h.useState(!1),g=h.useRef(null),y=h.useCallback(C=>{s(C),b(!1)},[s]),N=h.useCallback(C=>{g.current?.contains(C.relatedTarget)||b(!1)},[]);return r.jsxs("div",{className:"relative",ref:g,onBlur:N,children:[r.jsxs("button",{type:"button",onClick:()=>b(!x),"data-testid":v,className:`
185
+ inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
186
+ bg-transparent border transition-all
187
+ ${x?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
188
+ `,children:[m?m(n):r.jsx("span",{className:"text-slate-300",children:n==="all"?o:n}),r.jsx(jn,{className:`w-3.5 h-3.5 text-slate-500 transition-transform ${x?"rotate-180":""}`})]}),x&&r.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[160px] bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsxs("div",{className:"py-1 max-h-60 overflow-y-auto",children:[r.jsxs("button",{type:"button",onClick:()=>y("all"),className:`
189
+ w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors
190
+ ${n==="all"?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:bg-slate-700/50"}
191
+ `,children:[r.jsx("span",{className:"w-4 h-4"}),r.jsx("span",{children:o})]}),c.map(C=>r.jsx("button",{type:"button",onClick:()=>y(C),className:`
192
+ w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors
193
+ ${n===C?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:bg-slate-700/50"}
194
+ `,children:d(C)},C))]})})]})}function Of({value:n,onChange:s}){let[c,o]=h.useState(!1),d=h.useRef(null),m=[{value:zn.PRIORITY,label:"Priority",description:"Failed first"},{value:zn.NAME,label:"Name",description:"A to Z"},{value:zn.TIME,label:"Time",description:"Recent first"}],v=m.find(x=>x.value===n)||m[0];return r.jsxs("div",{className:"relative",ref:d,children:[r.jsxs("button",{type:"button",onClick:()=>o(!c),className:`
195
+ inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
196
+ bg-transparent border transition-all
197
+ ${c?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
198
+ `,children:[r.jsx(qv,{className:"w-3.5 h-3.5 text-slate-500"}),r.jsx("span",{className:"text-slate-300",children:v.label}),r.jsx(jn,{className:`w-3 h-3 text-slate-500 transition-transform ${c?"rotate-180":""}`})]}),c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),r.jsx("div",{className:"absolute top-full right-0 mt-1 z-50 w-48 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsx("div",{className:"py-1",children:m.map(x=>r.jsxs("button",{type:"button",onClick:()=>{s(x.value),o(!1)},className:`
199
+ w-full flex flex-col items-start px-3 py-2 text-left transition-colors
200
+ ${n===x.value?"bg-amber-500/10":"hover:bg-slate-700/50"}
201
+ `,children:[r.jsx("span",{className:n===x.value?"text-amber-400 font-medium":"text-slate-300",children:x.label}),r.jsx("span",{className:"text-xs text-slate-500",children:x.description})]},x.value))})})]})]})}function Qs({label:n,icon:s,onRemove:c}){return r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-amber-500/10 border border-amber-500/20 rounded-md text-xs text-amber-400",children:[s&&r.jsx(s,{className:"w-3 h-3"}),r.jsx("span",{children:n}),r.jsx("button",{type:"button",onClick:c,className:"ml-0.5 hover:text-amber-200 transition-colors",children:r.jsx(ta,{className:"w-3 h-3"})})]})}function zg({filter:n,setFilter:s,sortBy:c,setSortBy:o,searchQuery:d,setSearchQuery:m,selectedBrowser:v,setSelectedBrowser:x,selectedViewport:b,setSelectedViewport:g,availableFilters:y,counts:N,onRefresh:C,loading:B}){let[O,_]=h.useState(!1),Q=y.browsers.length>1||y.viewports.length>1,H=h.useMemo(()=>{let V=0;return n!==qe.ALL&&V++,v!=="all"&&V++,b!=="all"&&V++,d.trim()&&V++,V},[n,v,b,d]),F=h.useCallback(()=>{s(qe.ALL),x("all"),g("all"),m("")},[s,x,g,m]),X=h.useCallback(V=>r.jsxs(r.Fragment,{children:[r.jsx(En,{browser:V,className:"w-4 h-4"}),r.jsx("span",{className:"capitalize",children:V})]}),[]),I=h.useCallback(V=>V==="all"?r.jsx("span",{className:"text-slate-400",children:"All browsers"}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(En,{browser:V,className:"w-4 h-4"}),r.jsx("span",{className:"text-slate-300 capitalize",children:V})]}),[]),ve=h.useCallback(V=>{let ee=Ur(parseInt(V.split("×")[0],10));return r.jsxs(r.Fragment,{children:[r.jsx(ee,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"font-mono text-xs",children:V})]})},[]),de=h.useCallback(V=>{if(V==="all")return r.jsx("span",{className:"text-slate-400",children:"All viewports"});let ee=Ur(parseInt(V.split("×")[0],10));return r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(ee,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-slate-300 font-mono text-xs",children:V})]})},[]);return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-col gap-3 p-3 bg-slate-800/30 border border-slate-700/40 rounded-xl",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"flex-1",children:r.jsx(V1,{value:d,onChange:m,placeholder:"Search screenshots...",className:"w-full"})}),Q&&r.jsxs("button",{type:"button",onClick:()=>_(!O),className:`
202
+ relative md:hidden inline-flex items-center justify-center w-8 h-8 rounded-md transition-all
203
+ ${O||H>0?"bg-amber-500/20 text-amber-400 border border-amber-500/30":"text-slate-400 border border-slate-700/50 hover:border-slate-600"}
204
+ `,children:[r.jsx(Av,{className:"w-4 h-4"}),H>0&&r.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-amber-500 text-slate-900 text-[10px] font-bold rounded-full flex items-center justify-center",children:H})]}),r.jsx("div",{className:"hidden md:block",children:r.jsx(Of,{value:c,onChange:o})}),r.jsx("button",{type:"button",onClick:C,disabled:B,className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-slate-700/50 text-slate-400 hover:text-white hover:border-slate-600 transition-all disabled:opacity-50",title:"Refresh",children:r.jsx(Pa,{className:`w-4 h-4 ${B?"animate-spin":""}`})})]}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(wa,{label:"All",count:N.all,color:"gray",active:n===qe.ALL,onClick:()=>s(qe.ALL),testId:"filter-status-all"}),r.jsx(wa,{label:"Failed",count:N.failed,color:"red",active:n===qe.FAILED,onClick:()=>s(qe.FAILED),testId:"filter-status-failed"}),r.jsx(wa,{label:"New",count:N.new,color:"blue",active:n===qe.NEW,onClick:()=>s(qe.NEW),testId:"filter-status-new"}),r.jsx(wa,{label:"Passed",count:N.passed,color:"emerald",active:n===qe.PASSED,onClick:()=>s(qe.PASSED),testId:"filter-status-passed"})]}),Q&&r.jsx("div",{className:"w-px h-6 bg-slate-700/50"}),y.browsers.length>1&&r.jsx(qs,{value:v,onChange:x,options:y.browsers,placeholder:"All browsers",renderOption:X,renderValue:I,testId:"filter-browser"}),y.viewports.length>1&&r.jsx(qs,{value:b,onChange:g,options:y.viewports,placeholder:"All viewports",renderOption:ve,renderValue:de,testId:"filter-viewport"})]}),r.jsxs("div",{className:"md:hidden flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1 scrollbar-hide",children:[r.jsx(wa,{label:"All",count:N.all,color:"gray",active:n===qe.ALL,onClick:()=>s(qe.ALL),testId:"mobile-filter-status-all"}),r.jsx(wa,{label:"Failed",count:N.failed,color:"red",active:n===qe.FAILED,onClick:()=>s(qe.FAILED),testId:"mobile-filter-status-failed"}),r.jsx(wa,{label:"New",count:N.new,color:"blue",active:n===qe.NEW,onClick:()=>s(qe.NEW),testId:"mobile-filter-status-new"}),r.jsx(wa,{label:"Passed",count:N.passed,color:"emerald",active:n===qe.PASSED,onClick:()=>s(qe.PASSED),testId:"mobile-filter-status-passed"})]}),O&&Q&&r.jsxs("div",{className:"md:hidden space-y-3 pt-2 border-t border-slate-700/30",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by"}),r.jsx(Of,{value:c,onChange:o})]}),y.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser"}),r.jsx(qs,{value:v,onChange:x,options:y.browsers,placeholder:"All browsers",renderOption:X,renderValue:I,testId:"filter-browser-mobile"})]}),y.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport"}),r.jsx(qs,{value:b,onChange:g,options:y.viewports,placeholder:"All viewports",renderOption:ve,renderValue:de,testId:"filter-viewport-mobile"})]})]})]}),H>0&&r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{className:"text-xs text-slate-500",children:"Filters:"}),n!==qe.ALL&&r.jsx(Qs,{label:n.charAt(0).toUpperCase()+n.slice(1),onRemove:()=>s(qe.ALL)}),v!=="all"&&r.jsx(Qs,{label:v,icon:()=>r.jsx(En,{browser:v,className:"w-3 h-3"}),onRemove:()=>x("all")}),b!=="all"&&r.jsx(Qs,{label:b,icon:Ur(parseInt(b.split("×")[0],10)),onRemove:()=>g("all")}),d.trim()&&r.jsx(Qs,{label:`"${d}"`,onRemove:()=>m("")}),r.jsx("button",{type:"button",onClick:F,className:"text-xs text-slate-500 hover:text-slate-300 transition-colors ml-2",children:"Clear all"})]})]})}function Tg({failedCount:n,newCount:s,onAcceptAll:c,isLoading:o}){let d=n+s,m=n>0;return r.jsxs("div",{className:`
205
+ relative overflow-hidden rounded-xl border
206
+ ${m?"bg-gradient-to-r from-red-500/10 via-red-500/5 to-transparent border-red-500/20":"bg-gradient-to-r from-emerald-500/10 via-emerald-500/5 to-transparent border-emerald-500/20"}
207
+ `,children:[r.jsx("div",{className:"absolute inset-0 opacity-5",children:r.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0)",backgroundSize:"24px 24px"}})}),r.jsxs("div",{className:"relative flex items-center gap-4 p-4",children:[r.jsx("div",{className:`
208
+ flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center
209
+ ${m?"bg-red-500/20 text-red-400":"bg-emerald-500/20 text-emerald-400"}
210
+ `,children:m?r.jsx(ea,{className:"w-5 h-5"}):r.jsx(Vo,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-red-500/20 text-red-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),n," changed"]}),s>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-blue-500/20 text-blue-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),s," new"]})]}),r.jsx("p",{className:"text-sm text-slate-400 mt-1",children:m?"Review visual differences and accept to update baselines":"New screenshots ready to be saved as baselines"})]}),r.jsxs(Ke,{variant:"success",onClick:c,loading:o,icon:el,className:"flex-shrink-0","data-testid":"btn-accept-all",children:["Accept All (",d,")"]})]})]})}function Rg(){let[,n]=Ts(),{addToast:s,confirm:c}=ll(),[o,d]=h.useState({}),{data:m,isLoading:v,refetch:x}=_s(),b=cf(),g=uf(),y=of(),{filteredComparisons:N,filter:C,setFilter:B,sortBy:O,setSortBy:_,searchQuery:Q,setSearchQuery:H,selectedBrowser:F,setSelectedBrowser:X,selectedViewport:I,setSelectedViewport:ve,availableFilters:de,counts:V}=wg(m?.comparisons),ee=h.useCallback(q=>{let Z=q.id||q.signature||q.name;Z&&n(`/comparison/${encodeURIComponent(Z)}`)},[n]),ge=h.useCallback(q=>{d(Z=>({...Z,[q]:"accepting"})),g.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"accepted"}))},onError:Z=>{d(re=>({...re,[q]:void 0})),s(`Failed to accept: ${Z.message}`,"error")}})},[g,s]),Te=h.useCallback(q=>{d(Z=>({...Z,[q]:"rejecting"})),y.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"rejected"}))},onError:Z=>{d(re=>({...re,[q]:void 0})),s(`Failed to reject: ${Z.message}`,"error")}})},[y,s]),Ne=h.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&b.mutate(void 0,{onSuccess:()=>{s("All baselines accepted successfully","success")},onError:Z=>{console.error("Failed to accept all baselines:",Z),s("Failed to accept all baselines. Please try again.","error")}})},[b,s,c]),De=!m?.comparisons||m.comparisons.length===0,pe=C!=="all"||Q.trim()||F!=="all"||I!=="all",we=m?.comparisons?.some(q=>q.status==="failed"||q.status==="new"),_e=m?.comparisons?.filter(q=>q.status==="failed").length||0,R=m?.comparisons?.filter(q=>q.status==="new").length||0;return De?r.jsx(zl,{icon:$v,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(zg,{filter:C,setFilter:B,sortBy:O,setSortBy:_,searchQuery:Q,setSearchQuery:H,selectedBrowser:F,setSelectedBrowser:X,selectedViewport:I,setSelectedViewport:ve,availableFilters:de,counts:V,onRefresh:x,loading:v}),we&&r.jsx(Tg,{failedCount:_e,newCount:R,onAcceptAll:Ne,isLoading:b.isPending}),N.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{className:"py-12",children:r.jsx(zl,{icon:jp,title:"No matches",description:"No comparisons match your current filters.",action:pe&&r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>{B("all"),H(""),X("all"),ve("all")},children:"Clear all filters"})})})}):r.jsx(Og,{comparisons:N,onSelectComparison:ee,onAcceptComparison:ge,onRejectComparison:Te,loadingStates:o})]})}function Dg({onComplete:n}){const[s,c]=h.useState(null),[o,d]=h.useState(null),m=W1(),v=I1(),{addToast:x}=ll();h.useEffect(()=>{async function g(){try{const y=await m.mutateAsync();c(y)}catch(y){d(y.message),x(`Failed to start login: ${y.message}`,"error")}}g()},[x,m.mutateAsync]);async function b(){if(s?.deviceCode){d(null);try{const g=await v.mutateAsync(s.deviceCode);g.status==="complete"?(x("Login successful!","success"),n?.()):g.status==="pending"?x("Still waiting for authorization...","info"):d("Unexpected response from server")}catch(g){d(g.message),x(`Check failed: ${g.message}`,"error")}}}return o?r.jsx(ff,{variant:"danger",title:"Login Error",children:o}):s?r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:s.verificationUriComplete||s.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:s.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Ke,{variant:"secondary",onClick:b,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function _g(){const[n,s]=h.useState(!1),c=wt(),{data:o,isLoading:d}=Ef(),m=P1(),{addToast:v}=ll(),x=o?.user,b=o?.authenticated,g=h.useCallback(async()=>{try{await m.mutateAsync(),v("Logged out successfully","success")}catch(N){v(`Logout failed: ${N.message}`,"error")}},[m,v]),y=h.useCallback(()=>{s(!1),c.invalidateQueries({queryKey:me.auth})},[c]);return d?r.jsx(Rl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:"← Back"}),r.jsx(Dg,{onComplete:y})]}):b?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(Ar,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:x?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:x?.email}),x?.organizationName&&r.jsx(dt,{variant:"default",className:"mt-2",children:x.organizationName})]})]}),r.jsx(Ke,{variant:"ghost",onClick:g,loading:m.isPending,icon:Tv,children:"Sign Out"})]})})}):r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(Ar,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Ke,{variant:"primary",onClick:()=>s(!0),icon:Lo,children:"Sign In"})]})})}function Lg({mappings:n,onDelete:s,deleting:c}){const{addToast:o,confirm:d}=ll(),m=h.useCallback(async v=>{if(await d(`Remove project mapping for ${v}?`,"This will not delete any files, only the project association."))try{await s(v),o("Mapping removed successfully","success")}catch(b){o(`Failed to remove mapping: ${b.message}`,"error")}},[s,o,d]);return n.length===0?r.jsx(zl,{icon:Sn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map(v=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:v.directory}),r.jsx("td",{className:"text-white",children:v.projectName||v.projectSlug}),r.jsx("td",{children:v.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>m(v.directory),disabled:c,icon:qp,className:"!p-2"})})]},v.directory))})]})})}function Ug(){const{data:n,isLoading:s,refetch:c}=lg(),o=ng(),d=n?.mappings||[],m=h.useCallback(async v=>{await o.mutateAsync(v)},[o]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Rl,{})}),r.jsx(Rl,{})]}),r.jsx(Rl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(_g,{})}),r.jsxs(He,{hover:!1,children:[r.jsx(Ls,{title:"Quick Stats"}),r.jsx(Ye,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:d.length})]})})]})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Ls,{icon:Sn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(),icon:Pa,children:"Refresh"})}),r.jsx(Ye,{padding:"p-0",children:r.jsx(Lg,{mappings:d,onDelete:m,deleting:o.isPending})})]})]})}function kg(n={}){return Cl({queryKey:me.config,queryFn:rf.get,...n})}function Bg(){const n=wt();return Gt({mutationFn:rf.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:me.config})}})}function zf(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function Hg({source:n}){let s={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(dt,{variant:s[n]||"default",size:"sm",children:c[n]||n})}function Vs({title:n,source:s,description:c,children:o}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wide",children:n}),r.jsx(Hg,{source:s||"default"})]}),c&&r.jsx("p",{className:"text-sm text-slate-400",children:c}),r.jsx("div",{className:"space-y-4",children:o})]})}function qg({config:n,sources:s,onSave:c,isSaving:o}){let d=zf(n),[m,v]=h.useState(d),[x,b]=h.useState(!1),g=h.useCallback((C,B)=>{v(O=>({...O,[C]:B})),b(!0)},[]),y=h.useCallback(()=>{v(zf(n)),b(!1)},[n]),N=h.useCallback(()=>{let C={comparison:{threshold:m.threshold},server:{port:m.port,timeout:m.timeout},build:{name:m.buildName,environment:m.environment},tdd:{openReport:m.openReport}};c(C,()=>b(!1))},[m,c]);return r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Vs,{title:"Comparison",source:s?.comparison,description:"Configure how screenshots are compared",children:r.jsx(Us,{label:"Threshold",type:"number",value:m.threshold,onChange:C=>g("threshold",parseFloat(C.target.value)),hint:"CIEDE2000 Delta E. 0 = exact, 2 = recommended",step:"0.1",min:"0"})})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Vs,{title:"Server",source:s?.server,description:"Local screenshot server configuration",children:[r.jsx(Us,{label:"Port",type:"number",value:m.port,onChange:C=>g("port",parseInt(C.target.value,10)),hint:"Default: 47392"}),r.jsx(Us,{label:"Timeout",type:"number",value:m.timeout,onChange:C=>g("timeout",parseInt(C.target.value,10)),hint:"Request timeout in milliseconds"})]})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Vs,{title:"Build",source:s?.build,description:"Build naming and environment",children:[r.jsx(Us,{label:"Name Template",type:"text",value:m.buildName,onChange:C=>g("buildName",C.target.value),hint:"Use {timestamp} for current time"}),r.jsx(y1,{label:"Environment",value:m.environment,onChange:C=>g("environment",C.target.value),options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]})]})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Vs,{title:"TDD Mode",source:s?.tdd,description:"Development workflow preferences",children:r.jsx(j1,{label:"Auto-open Report",description:"Open dashboard in browser when starting TDD mode",checked:m.openReport,onChange:C=>g("openReport",C.target.checked)})})})})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm text-slate-400",children:x?r.jsx("span",{className:"text-amber-400",children:"You have unsaved changes"}):r.jsx("span",{children:"Settings saved to project config"})}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ke,{variant:"ghost",onClick:y,disabled:!x||o,children:"Reset"}),r.jsx(Ke,{variant:"primary",onClick:N,loading:o,disabled:!x,children:"Save Changes"})]})]})})})]})}function Qg(){let{data:n,isLoading:s,error:c,refetch:o}=kg(),d=Bg(),{addToast:m}=ll(),v=h.useCallback((x,b)=>{d.mutate(x,{onSuccess:()=>{b(),m("Settings saved successfully!","success")},onError:g=>{m(`Failed to save settings: ${g.message}`,"error")}})},[d,m]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-20"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-16"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]})]})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(ff,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(qg,{config:n?.config,sources:n?.sources,onSave:v,isSaving:d.isPending},JSON.stringify(n?.config))]})}function Ys({icon:n,label:s,value:c,subvalue:o,variant:d,iconColor:m}){return r.jsx(He,{variant:d,hover:!1,children:r.jsx(Ye,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:s}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${m}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function Vg(){const{addToast:n,confirm:s}=ll(),{data:c,isLoading:o,refetch:d}=_s(),m=cf(),v=d1(),x=c?.comparisons,b=c?.baseline,g=x?.length||0,y=x?.filter(H=>H.status==="passed").length||0,N=x?.filter(H=>H.status==="failed").length||0,C=x?.filter(H=>H.status==="new").length||0,B=g>0?Math.round(y/g*100):0,O=x?.some(H=>H.status==="failed"||H.status==="new"),_=h.useCallback(async()=>{await s("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&m.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:F=>{console.error("Failed to accept all baselines:",F),n("Failed to accept all baselines. Please try again.","error")}})},[m,n,s]),Q=h.useCallback(async()=>{await s("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:F=>{console.error("Failed to reset baselines:",F),n("Failed to reset baselines. Please try again.","error")}})},[v,n,s]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(w1,{value:B,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[y," of ",g," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(Ys,{icon:Cr,label:"Total Screenshots",value:g,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(Ys,{icon:As,label:"Passed",value:y,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(Ys,{icon:ea,label:"Failed",value:N,variant:N>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(Ys,{icon:Vo,label:"New",value:C,variant:C>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(He,{hover:!1,children:[r.jsx(Ls,{icon:Ms,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:C>0&&r.jsxs(dt,{variant:"warning",dot:!0,children:[C," new without baseline"]})}),r.jsx(Ye,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Ls,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(b1,{className:"flex flex-wrap gap-3",children:[r.jsx(Ke,{variant:"success",onClick:_,loading:m.isPending,disabled:!O||o,icon:As,children:O?"Accept All Changes":"No Changes to Accept"}),r.jsx(Ke,{variant:"secondary",onClick:Q,loading:v.isPending,disabled:o,icon:Pa,children:"Reset Baselines"}),r.jsx(Ke,{variant:"ghost",onClick:()=>d(),loading:o,icon:Pa,className:"ml-auto",children:"Refresh"})]})]})]})}function Yg(n,s){const c=[];if(s==="shell")return n.split(`
211
+ `).forEach((v,x)=>{const b=n.split(`
212
+ `).slice(0,x).join(`
213
+ `).length+(x>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+v.length})}),c;const o=[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}];for(let{type:v,regex:x}of o){let b=x.exec(n);for(;b!==null;)c.push({type:v,start:b.index,end:b.index+b[0].length}),b=x.exec(n)}c.sort((v,x)=>v.start-x.start);const d=[];let m=0;return c.forEach(v=>{v.start>=m&&(d.push(v),m=v.end)}),d}function Gg({code:n,language:s="javascript"}){const c=h.useRef(null),o=s==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return h.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;const d=c.current.firstChild;if(!d||d.nodeType!==window.Node.TEXT_NODE)return;const v=Yg(n,o?"shell":s).map(g=>{const y=new window.Range;return y.setStart(d,g.start),y.setEnd(d,g.end),{type:g.type,range:y}}),x=new Map;v.forEach(({type:g,range:y})=>{x.has(g)||x.set(g,[]),x.get(g).push(y)});const b=new Map;for(const[g,y]of x){const N=new window.Highlight(...y);b.set(g,N),window.CSS.highlights.set(`code-${g}`,N)}return()=>{for(const[g]of b)window.CSS.highlights.delete(`code-${g}`)}},[n,s,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}const Tf=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
32
214
 
33
215
  test('homepage', async ({ page }) => {
34
216
  await page.goto('/');
@@ -77,4 +259,4 @@ class VisualTests: XCTestCase {
77
259
  # Just run the CLI against your Storybook build:
78
260
 
79
261
  npm run build-storybook
80
- npx vizzly storybook ./storybook-static`}];function ji(){const[n,u]=m.useState("playwright"),c=ko.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(fi,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:ko.map(o=>r.jsx("button",{type:"button",onClick:()=>u(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(v1,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Wm,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function y1(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function p1({error:n,onRetry:u}){return r.jsx(yl,{icon:da,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{type:"button",onClick:u,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function b1(){const[n,u]=mi(),{data:c,isLoading:o,error:h,refetch:v}=yi(),g=n.startsWith("/comparison/"),y=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",b=N=>{u(N==="stats"?"/stats":N==="settings"?"/settings":N==="projects"?"/projects":N==="builds"?"/builds":"/")},p=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(y1,{})}):h&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(p1,{error:h.message,onRetry:v})}):!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(ji,{})}):g?c?r.jsx(_o,{children:r.jsx(vl,{path:"/comparison/:id",children:r.jsx(Vv,{})})}):r.jsx(dn,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(ji,{})}):r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsxs(_o,{children:[r.jsx(vl,{path:"/stats",children:c?r.jsx(m1,{}):r.jsx(ji,{})}),r.jsx(vl,{path:"/settings",children:r.jsx(h1,{})}),r.jsx(vl,{path:"/projects",children:r.jsx(c1,{})}),r.jsx(vl,{path:"/builds",children:r.jsx(_v,{})}),r.jsx(vl,{path:"/",children:c?r.jsx(n1,{}):r.jsx(ji,{})})]})})}const x1=new vm({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}}),Yo=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n));const u=window.VIZZLY_REPORTER_DATA||null;Bm.createRoot(n).render(r.jsx(m.StrictMode,{children:r.jsx(bm,{client:x1,children:r.jsx(Ev,{children:r.jsx(b1,{initialData:u})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Yo):Yo()})();
262
+ npx vizzly storybook ./storybook-static`}];function Gs(){const[n,s]=h.useState("playwright"),c=Tf.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(Ms,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:Tf.map(o=>r.jsx("button",{type:"button",onClick:()=>s(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(Gg,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Gv,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function Zg(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(An,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function Xg({error:n,onRetry:s}){return r.jsx(zl,{icon:ea,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function Kg(){const[n,s]=Ts(),{data:c,isLoading:o,error:d,refetch:m}=_s(),v=n.startsWith("/comparison/"),x=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",b=y=>{s(y==="stats"?"/stats":y==="settings"?"/settings":y==="projects"?"/projects":y==="builds"?"/builds":"/")},g=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!g?r.jsx(On,{currentView:x,onNavigate:b,loading:o,children:r.jsx(Zg,{})}):d&&!c&&!g?r.jsx(On,{currentView:x,onNavigate:b,loading:o,children:r.jsx(Xg,{error:d.message,onRetry:m})}):!c&&!g?r.jsx(On,{currentView:x,onNavigate:b,loading:o,children:r.jsx(Gs,{})}):v?c?r.jsx(sf,{children:r.jsx(Ol,{path:"/comparison/:id",children:r.jsx(xg,{})})}):r.jsx(On,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(Gs,{})}):r.jsx(On,{currentView:x,onNavigate:b,loading:o,children:r.jsxs(sf,{children:[r.jsx(Ol,{path:"/stats",children:c?r.jsx(Vg,{}):r.jsx(Gs,{})}),r.jsx(Ol,{path:"/settings",children:r.jsx(Qg,{})}),r.jsx(Ol,{path:"/projects",children:r.jsx(Ug,{})}),r.jsx(Ol,{path:"/builds",children:r.jsx(mg,{})}),r.jsx(Ol,{path:"/",children:c?r.jsx(Rg,{}):r.jsx(Gs,{})})]})})}const $g=new nv({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}}),Rf=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n));const s=window.VIZZLY_REPORTER_DATA||null;Ev.createRoot(n).render(r.jsx(h.StrictMode,{children:r.jsx(rv,{client:$g,children:r.jsx(sg,{children:r.jsx(Kg,{initialData:s})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rf):Rf()})();