@humbdb/humb 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +18 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-2ERJS5IY.js +83 -0
- package/dist/chunk-2ERJS5IY.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/web/assets/index-CENj019G.js +229 -0
- package/dist/web/assets/index-CENj019G.js.map +1 -0
- package/dist/web/assets/index-DxztNmnp.css +1 -0
- package/dist/web/index.html +58 -0
- package/package.json +59 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
var tf=i=>{throw TypeError(i)};var va=(i,s,l)=>s.has(i)||tf("Cannot "+l);var p=(i,s,l)=>(va(i,s,"read from private field"),l?l.call(i):s.get(i)),V=(i,s,l)=>s.has(i)?tf("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,l),z=(i,s,l,u)=>(va(i,s,"write to private field"),u?u.call(i,l):s.set(i,l),l),ne=(i,s,l)=>(va(i,s,"access private method"),l);var xi=(i,s,l,u)=>({set _(d){z(i,s,d,l)},get _(){return p(i,s,u)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const w of h.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&u(w)}).observe(document,{childList:!0,subtree:!0});function l(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(d){if(d.ep)return;d.ep=!0;const h=l(d);fetch(d.href,h)}})();var xa={exports:{}},Ws={},wa={exports:{}},me={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var nf;function wm(){if(nf)return me;nf=1;var i=Symbol.for("react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),F=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),E=Symbol.iterator;function O(v){return v===null||typeof v!="object"?null:(v=E&&v[E]||v["@@iterator"],typeof v=="function"?v:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,R={};function P(v,j,ae){this.props=v,this.context=j,this.refs=R,this.updater=ae||I}P.prototype.isReactComponent={},P.prototype.setState=function(v,j){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,j,"setState")},P.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function Q(){}Q.prototype=P.prototype;function re(v,j,ae){this.props=v,this.context=j,this.refs=R,this.updater=ae||I}var oe=re.prototype=new Q;oe.constructor=re,U(oe,P.prototype),oe.isPureReactComponent=!0;var D=Array.isArray,ie=Object.prototype.hasOwnProperty,he={current:null},pe={key:!0,ref:!0,__self:!0,__source:!0};function se(v,j,ae){var fe,ue={},ve=null,be=null;if(j!=null)for(fe in j.ref!==void 0&&(be=j.ref),j.key!==void 0&&(ve=""+j.key),j)ie.call(j,fe)&&!pe.hasOwnProperty(fe)&&(ue[fe]=j[fe]);var Ce=arguments.length-2;if(Ce===1)ue.children=ae;else if(1<Ce){for(var Oe=Array(Ce),gt=0;gt<Ce;gt++)Oe[gt]=arguments[gt+2];ue.children=Oe}if(v&&v.defaultProps)for(fe in Ce=v.defaultProps,Ce)ue[fe]===void 0&&(ue[fe]=Ce[fe]);return{$$typeof:i,type:v,key:ve,ref:be,props:ue,_owner:he.current}}function ce(v,j){return{$$typeof:i,type:v.type,key:j,ref:v.ref,props:v.props,_owner:v._owner}}function H(v){return typeof v=="object"&&v!==null&&v.$$typeof===i}function Z(v){var j={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(ae){return j[ae]})}var X=/\/+/g;function ye(v,j){return typeof v=="object"&&v!==null&&v.key!=null?Z(""+v.key):j.toString(36)}function je(v,j,ae,fe,ue){var ve=typeof v;(ve==="undefined"||ve==="boolean")&&(v=null);var be=!1;if(v===null)be=!0;else switch(ve){case"string":case"number":be=!0;break;case"object":switch(v.$$typeof){case i:case s:be=!0}}if(be)return be=v,ue=ue(be),v=fe===""?"."+ye(be,0):fe,D(ue)?(ae="",v!=null&&(ae=v.replace(X,"$&/")+"/"),je(ue,j,ae,"",function(gt){return gt})):ue!=null&&(H(ue)&&(ue=ce(ue,ae+(!ue.key||be&&be.key===ue.key?"":(""+ue.key).replace(X,"$&/")+"/")+v)),j.push(ue)),1;if(be=0,fe=fe===""?".":fe+":",D(v))for(var Ce=0;Ce<v.length;Ce++){ve=v[Ce];var Oe=fe+ye(ve,Ce);be+=je(ve,j,ae,Oe,ue)}else if(Oe=O(v),typeof Oe=="function")for(v=Oe.call(v),Ce=0;!(ve=v.next()).done;)ve=ve.value,Oe=fe+ye(ve,Ce++),be+=je(ve,j,ae,Oe,ue);else if(ve==="object")throw j=String(v),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return be}function Le(v,j,ae){if(v==null)return v;var fe=[],ue=0;return je(v,fe,"","",function(ve){return j.call(ae,ve,ue++)}),fe}function Ue(v){if(v._status===-1){var j=v._result;j=j(),j.then(function(ae){(v._status===0||v._status===-1)&&(v._status=1,v._result=ae)},function(ae){(v._status===0||v._status===-1)&&(v._status=2,v._result=ae)}),v._status===-1&&(v._status=0,v._result=j)}if(v._status===1)return v._result.default;throw v._result}var Ne={current:null},A={transition:null},Y={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:A,ReactCurrentOwner:he};function $(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Le,forEach:function(v,j,ae){Le(v,function(){j.apply(this,arguments)},ae)},count:function(v){var j=0;return Le(v,function(){j++}),j},toArray:function(v){return Le(v,function(j){return j})||[]},only:function(v){if(!H(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},me.Component=P,me.Fragment=l,me.Profiler=d,me.PureComponent=re,me.StrictMode=u,me.Suspense=N,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,me.act=$,me.cloneElement=function(v,j,ae){if(v==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+v+".");var fe=U({},v.props),ue=v.key,ve=v.ref,be=v._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,be=he.current),j.key!==void 0&&(ue=""+j.key),v.type&&v.type.defaultProps)var Ce=v.type.defaultProps;for(Oe in j)ie.call(j,Oe)&&!pe.hasOwnProperty(Oe)&&(fe[Oe]=j[Oe]===void 0&&Ce!==void 0?Ce[Oe]:j[Oe])}var Oe=arguments.length-2;if(Oe===1)fe.children=ae;else if(1<Oe){Ce=Array(Oe);for(var gt=0;gt<Oe;gt++)Ce[gt]=arguments[gt+2];fe.children=Ce}return{$$typeof:i,type:v.type,key:ue,ref:ve,props:fe,_owner:be}},me.createContext=function(v){return v={$$typeof:w,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},v.Provider={$$typeof:h,_context:v},v.Consumer=v},me.createElement=se,me.createFactory=function(v){var j=se.bind(null,v);return j.type=v,j},me.createRef=function(){return{current:null}},me.forwardRef=function(v){return{$$typeof:x,render:v}},me.isValidElement=H,me.lazy=function(v){return{$$typeof:M,_payload:{_status:-1,_result:v},_init:Ue}},me.memo=function(v,j){return{$$typeof:F,type:v,compare:j===void 0?null:j}},me.startTransition=function(v){var j=A.transition;A.transition={};try{v()}finally{A.transition=j}},me.unstable_act=$,me.useCallback=function(v,j){return Ne.current.useCallback(v,j)},me.useContext=function(v){return Ne.current.useContext(v)},me.useDebugValue=function(){},me.useDeferredValue=function(v){return Ne.current.useDeferredValue(v)},me.useEffect=function(v,j){return Ne.current.useEffect(v,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(v,j,ae){return Ne.current.useImperativeHandle(v,j,ae)},me.useInsertionEffect=function(v,j){return Ne.current.useInsertionEffect(v,j)},me.useLayoutEffect=function(v,j){return Ne.current.useLayoutEffect(v,j)},me.useMemo=function(v,j){return Ne.current.useMemo(v,j)},me.useReducer=function(v,j,ae){return Ne.current.useReducer(v,j,ae)},me.useRef=function(v){return Ne.current.useRef(v)},me.useState=function(v){return Ne.current.useState(v)},me.useSyncExternalStore=function(v,j,ae){return Ne.current.useSyncExternalStore(v,j,ae)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var rf;function Ya(){return rf||(rf=1,wa.exports=wm()),wa.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var sf;function km(){if(sf)return Ws;sf=1;var i=Ya(),s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,d=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function w(x,N,F){var M,E={},O=null,I=null;F!==void 0&&(O=""+F),N.key!==void 0&&(O=""+N.key),N.ref!==void 0&&(I=N.ref);for(M in N)u.call(N,M)&&!h.hasOwnProperty(M)&&(E[M]=N[M]);if(x&&x.defaultProps)for(M in N=x.defaultProps,N)E[M]===void 0&&(E[M]=N[M]);return{$$typeof:s,type:x,key:O,ref:I,props:E,_owner:d.current}}return Ws.Fragment=l,Ws.jsx=w,Ws.jsxs=w,Ws}var of;function Sm(){return of||(of=1,xa.exports=km()),xa.exports}var f=Sm(),yr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},or,Ln,Vr,Rf,Cm=(Rf=class extends yr{constructor(){super();V(this,or);V(this,Ln);V(this,Vr);z(this,Vr,s=>{if(typeof window<"u"&&window.addEventListener){const l=()=>s();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}})}onSubscribe(){p(this,Ln)||this.setEventListener(p(this,Vr))}onUnsubscribe(){var s;this.hasListeners()||((s=p(this,Ln))==null||s.call(this),z(this,Ln,void 0))}setEventListener(s){var l;z(this,Vr,s),(l=p(this,Ln))==null||l.call(this),z(this,Ln,s(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(s){p(this,or)!==s&&(z(this,or,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(l=>{l(s)})}isFocused(){var s;return typeof p(this,or)=="boolean"?p(this,or):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},or=new WeakMap,Ln=new WeakMap,Vr=new WeakMap,Rf),Xa=new Cm,Em={setTimeout:(i,s)=>setTimeout(i,s),clearTimeout:i=>clearTimeout(i),setInterval:(i,s)=>setInterval(i,s),clearInterval:i=>clearInterval(i)},zn,Ga,Tf,Nm=(Tf=class{constructor(){V(this,zn,Em);V(this,Ga,!1)}setTimeoutProvider(i){z(this,zn,i)}setTimeout(i,s){return p(this,zn).setTimeout(i,s)}clearTimeout(i){p(this,zn).clearTimeout(i)}setInterval(i,s){return p(this,zn).setInterval(i,s)}clearInterval(i){p(this,zn).clearInterval(i)}},zn=new WeakMap,Ga=new WeakMap,Tf),sr=new Nm;function jm(i){setTimeout(i,0)}var bm=typeof window>"u"||"Deno"in globalThis;function st(){}function _m(i,s){return typeof i=="function"?i(s):i}function ba(i){return typeof i=="number"&&i>=0&&i!==1/0}function $f(i,s){return Math.max(i+(s||0)-Date.now(),0)}function Hn(i,s){return typeof i=="function"?i(s):i}function Et(i,s){return typeof i=="function"?i(s):i}function lf(i,s){const{type:l="all",exact:u,fetchStatus:d,predicate:h,queryKey:w,stale:x}=i;if(w){if(u){if(s.queryHash!==Za(w,s.options))return!1}else if(!Ys(s.queryKey,w))return!1}if(l!=="all"){const N=s.isActive();if(l==="active"&&!N||l==="inactive"&&N)return!1}return!(typeof x=="boolean"&&s.isStale()!==x||d&&d!==s.state.fetchStatus||h&&!h(s))}function af(i,s){const{exact:l,status:u,predicate:d,mutationKey:h}=i;if(h){if(!s.options.mutationKey)return!1;if(l){if(mr(s.options.mutationKey)!==mr(h))return!1}else if(!Ys(s.options.mutationKey,h))return!1}return!(u&&s.state.status!==u||d&&!d(s))}function Za(i,s){return((s==null?void 0:s.queryKeyHashFn)||mr)(i)}function mr(i){return JSON.stringify(i,(s,l)=>_a(l)?Object.keys(l).sort().reduce((u,d)=>(u[d]=l[d],u),{}):l)}function Ys(i,s){return i===s?!0:typeof i!=typeof s?!1:i&&s&&typeof i=="object"&&typeof s=="object"?Object.keys(s).every(l=>Ys(i[l],s[l])):!1}var Pm=Object.prototype.hasOwnProperty;function Ja(i,s,l=0){if(i===s)return i;if(l>500)return s;const u=uf(i)&&uf(s);if(!u&&!(_a(i)&&_a(s)))return s;const h=(u?i:Object.keys(i)).length,w=u?s:Object.keys(s),x=w.length,N=u?new Array(x):{};let F=0;for(let M=0;M<x;M++){const E=u?M:w[M],O=i[E],I=s[E];if(O===I){N[E]=O,(u?M<h:Pm.call(i,E))&&F++;continue}if(O===null||I===null||typeof O!="object"||typeof I!="object"){N[E]=I;continue}const U=Ja(O,I,l+1);N[E]=U,U===O&&F++}return h===x&&F===h?i:N}function Xs(i,s){if(!s||Object.keys(i).length!==Object.keys(s).length)return!1;for(const l in i)if(i[l]!==s[l])return!1;return!0}function uf(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function _a(i){if(!cf(i))return!1;const s=i.constructor;if(s===void 0)return!0;const l=s.prototype;return!(!cf(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function cf(i){return Object.prototype.toString.call(i)==="[object Object]"}function Rm(i){return new Promise(s=>{sr.setTimeout(s,i)})}function Pa(i,s,l){return typeof l.structuralSharing=="function"?l.structuralSharing(i,s):l.structuralSharing!==!1?Ja(i,s):s}function Tm(i,s,l=0){const u=[...i,s];return l&&u.length>l?u.slice(1):u}function Om(i,s,l=0){const u=[s,...i];return l&&u.length>l?u.slice(0,-1):u}var eu=Symbol();function Bf(i,s){return!i.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!i.queryFn||i.queryFn===eu?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function tu(i,s){return typeof i=="function"?i(...s):!!i}function Mm(i,s,l){let u=!1,d;return Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(d??(d=s()),u||(u=!0,d.aborted?l():d.addEventListener("abort",l,{once:!0})),d)}),i}var Zs=(()=>{let i=()=>bm;return{isServer(){return i()},setIsServer(s){i=s}}})();function Ra(){let i,s;const l=new Promise((d,h)=>{i=d,s=h});l.status="pending",l.catch(()=>{});function u(d){Object.assign(l,d),delete l.resolve,delete l.reject}return l.resolve=d=>{u({status:"fulfilled",value:d}),i(d)},l.reject=d=>{u({status:"rejected",reason:d}),s(d)},l}var Lm=jm;function zm(){let i=[],s=0,l=x=>{x()},u=x=>{x()},d=Lm;const h=x=>{s?i.push(x):d(()=>{l(x)})},w=()=>{const x=i;i=[],x.length&&d(()=>{u(()=>{x.forEach(N=>{l(N)})})})};return{batch:x=>{let N;s++;try{N=x()}finally{s--,s||w()}return N},batchCalls:x=>(...N)=>{h(()=>{x(...N)})},schedule:h,setNotifyFunction:x=>{l=x},setBatchNotifyFunction:x=>{u=x},setScheduler:x=>{d=x}}}var Ae=zm(),Wr,Fn,Kr,Of,Fm=(Of=class extends yr{constructor(){super();V(this,Wr,!0);V(this,Fn);V(this,Kr);z(this,Kr,s=>{if(typeof window<"u"&&window.addEventListener){const l=()=>s(!0),u=()=>s(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",u)}}})}onSubscribe(){p(this,Fn)||this.setEventListener(p(this,Kr))}onUnsubscribe(){var s;this.hasListeners()||((s=p(this,Fn))==null||s.call(this),z(this,Fn,void 0))}setEventListener(s){var l;z(this,Kr,s),(l=p(this,Fn))==null||l.call(this),z(this,Fn,s(this.setOnline.bind(this)))}setOnline(s){p(this,Wr)!==s&&(z(this,Wr,s),this.listeners.forEach(u=>{u(s)}))}isOnline(){return p(this,Wr)}},Wr=new WeakMap,Fn=new WeakMap,Kr=new WeakMap,Of),Ci=new Fm;function Im(i){return Math.min(1e3*2**i,3e4)}function Hf(i){return(i??"online")==="online"?Ci.isOnline():!0}var Ta=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function Vf(i){let s=!1,l=0,u;const d=Ra(),h=()=>d.status!=="pending",w=R=>{var P;if(!h()){const Q=new Ta(R);O(Q),(P=i.onCancel)==null||P.call(i,Q)}},x=()=>{s=!0},N=()=>{s=!1},F=()=>Xa.isFocused()&&(i.networkMode==="always"||Ci.isOnline())&&i.canRun(),M=()=>Hf(i.networkMode)&&i.canRun(),E=R=>{h()||(u==null||u(),d.resolve(R))},O=R=>{h()||(u==null||u(),d.reject(R))},I=()=>new Promise(R=>{var P;u=Q=>{(h()||F())&&R(Q)},(P=i.onPause)==null||P.call(i)}).then(()=>{var R;u=void 0,h()||(R=i.onContinue)==null||R.call(i)}),U=()=>{if(h())return;let R;const P=l===0?i.initialPromise:void 0;try{R=P??i.fn()}catch(Q){R=Promise.reject(Q)}Promise.resolve(R).then(E).catch(Q=>{var he;if(h())return;const re=i.retry??(Zs.isServer()?0:3),oe=i.retryDelay??Im,D=typeof oe=="function"?oe(l,Q):oe,ie=re===!0||typeof re=="number"&&l<re||typeof re=="function"&&re(l,Q);if(s||!ie){O(Q);return}l++,(he=i.onFail)==null||he.call(i,l,Q),Rm(D).then(()=>F()?void 0:I()).then(()=>{s?O(Q):U()})})};return{promise:d,status:()=>d.status,cancel:w,continue:()=>(u==null||u(),d),cancelRetry:x,continueRetry:N,canStart:M,start:()=>(M()?U():I().then(U),d)}}var ir,Mf,Wf=(Mf=class{constructor(){V(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ba(this.gcTime)&&z(this,ir,sr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Zs.isServer()?1/0:300*1e3))}clearGcTimeout(){p(this,ir)!==void 0&&(sr.clearTimeout(p(this,ir)),z(this,ir,void 0))}},ir=new WeakMap,Mf);function Dm(i){return{onFetch:(s,l)=>{var M,E,O,I,U;const u=s.options,d=(O=(E=(M=s.fetchOptions)==null?void 0:M.meta)==null?void 0:E.fetchMore)==null?void 0:O.direction,h=((I=s.state.data)==null?void 0:I.pages)||[],w=((U=s.state.data)==null?void 0:U.pageParams)||[];let x={pages:[],pageParams:[]},N=0;const F=async()=>{let R=!1;const P=oe=>{Mm(oe,()=>s.signal,()=>R=!0)},Q=Bf(s.options,s.fetchOptions),re=async(oe,D,ie)=>{if(R)return Promise.reject(s.signal.reason);if(D==null&&oe.pages.length)return Promise.resolve(oe);const pe=(()=>{const Z={client:s.client,queryKey:s.queryKey,pageParam:D,direction:ie?"backward":"forward",meta:s.options.meta};return P(Z),Z})(),se=await Q(pe),{maxPages:ce}=s.options,H=ie?Om:Tm;return{pages:H(oe.pages,se,ce),pageParams:H(oe.pageParams,D,ce)}};if(d&&h.length){const oe=d==="backward",D=oe?Am:df,ie={pages:h,pageParams:w},he=D(u,ie);x=await re(ie,he,oe)}else{const oe=i??h.length;do{const D=N===0?w[0]??u.initialPageParam:df(u,x);if(N>0&&D==null)break;x=await re(x,D),N++}while(N<oe)}return x};s.options.persister?s.fetchFn=()=>{var R,P;return(P=(R=s.options).persister)==null?void 0:P.call(R,F,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},l)}:s.fetchFn=F}}}function df(i,{pages:s,pageParams:l}){const u=s.length-1;return s.length>0?i.getNextPageParam(s[u],s,l[u],l):void 0}function Am(i,{pages:s,pageParams:l}){var u;return s.length>0?(u=i.getPreviousPageParam)==null?void 0:u.call(i,s[0],s,l[0],l):void 0}var qr,lr,Gr,Ot,ar,Ye,Js,ur,Ct,Kf,sn,Lf,Um=(Lf=class extends Wf{constructor(s){super();V(this,Ct);V(this,qr);V(this,lr);V(this,Gr);V(this,Ot);V(this,ar);V(this,Ye);V(this,Js);V(this,ur);z(this,ur,!1),z(this,Js,s.defaultOptions),this.setOptions(s.options),this.observers=[],z(this,ar,s.client),z(this,Ot,p(this,ar).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,z(this,lr,hf(this.options)),this.state=s.state??p(this,lr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(this,qr)}get promise(){var s;return(s=p(this,Ye))==null?void 0:s.promise}setOptions(s){if(this.options={...p(this,Js),...s},s!=null&&s._type&&z(this,qr,s._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=hf(this.options);l.data!==void 0&&(this.setState(ff(l.data,l.dataUpdatedAt)),z(this,lr,l))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Ot).remove(this)}setData(s,l){const u=Pa(this.state.data,s,this.options);return ne(this,Ct,sn).call(this,{data:u,type:"success",dataUpdatedAt:l==null?void 0:l.updatedAt,manual:l==null?void 0:l.manual}),u}setState(s){ne(this,Ct,sn).call(this,{type:"setState",state:s})}cancel(s){var u,d;const l=(u=p(this,Ye))==null?void 0:u.promise;return(d=p(this,Ye))==null||d.cancel(s),l?l.then(st).catch(st):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(this,lr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>Et(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Hn(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!$f(this.state.dataUpdatedAt,s)}onFocus(){var l;const s=this.observers.find(u=>u.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(l=p(this,Ye))==null||l.continue()}onOnline(){var l;const s=this.observers.find(u=>u.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(l=p(this,Ye))==null||l.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),p(this,Ot).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(l=>l!==s),this.observers.length||(p(this,Ye)&&(p(this,ur)||ne(this,Ct,Kf).call(this)?p(this,Ye).cancel({revert:!0}):p(this,Ye).cancelRetry()),this.scheduleGc()),p(this,Ot).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ne(this,Ct,sn).call(this,{type:"invalidate"})}async fetch(s,l){var F,M,E,O,I,U,R,P,Q,re,oe;if(this.state.fetchStatus!=="idle"&&((F=p(this,Ye))==null?void 0:F.status())!=="rejected"){if(this.state.data!==void 0&&(l!=null&&l.cancelRefetch))this.cancel({silent:!0});else if(p(this,Ye))return p(this,Ye).continueRetry(),p(this,Ye).promise}if(s&&this.setOptions(s),!this.options.queryFn){const D=this.observers.find(ie=>ie.options.queryFn);D&&this.setOptions(D.options)}const u=new AbortController,d=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(z(this,ur,!0),u.signal)})},h=()=>{const D=Bf(this.options,l),he=(()=>{const pe={client:p(this,ar),queryKey:this.queryKey,meta:this.meta};return d(pe),pe})();return z(this,ur,!1),this.options.persister?this.options.persister(D,he,this):D(he)},x=(()=>{const D={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:p(this,ar),state:this.state,fetchFn:h};return d(D),D})(),N=p(this,qr)==="infinite"?Dm(this.options.pages):this.options.behavior;N==null||N.onFetch(x,this),z(this,Gr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((M=x.fetchOptions)==null?void 0:M.meta))&&ne(this,Ct,sn).call(this,{type:"fetch",meta:(E=x.fetchOptions)==null?void 0:E.meta}),z(this,Ye,Vf({initialPromise:l==null?void 0:l.initialPromise,fn:x.fetchFn,onCancel:D=>{D instanceof Ta&&D.revert&&this.setState({...p(this,Gr),fetchStatus:"idle"}),u.abort()},onFail:(D,ie)=>{ne(this,Ct,sn).call(this,{type:"failed",failureCount:D,error:ie})},onPause:()=>{ne(this,Ct,sn).call(this,{type:"pause"})},onContinue:()=>{ne(this,Ct,sn).call(this,{type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode,canRun:()=>!0}));try{const D=await p(this,Ye).start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),(I=(O=p(this,Ot).config).onSuccess)==null||I.call(O,D,this),(R=(U=p(this,Ot).config).onSettled)==null||R.call(U,D,this.state.error,this),D}catch(D){if(D instanceof Ta){if(D.silent)return p(this,Ye).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw ne(this,Ct,sn).call(this,{type:"error",error:D}),(Q=(P=p(this,Ot).config).onError)==null||Q.call(P,D,this),(oe=(re=p(this,Ot).config).onSettled)==null||oe.call(re,this.state.data,D,this),D}finally{this.scheduleGc()}}},qr=new WeakMap,lr=new WeakMap,Gr=new WeakMap,Ot=new WeakMap,ar=new WeakMap,Ye=new WeakMap,Js=new WeakMap,ur=new WeakMap,Ct=new WeakSet,Kf=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},sn=function(s){const l=u=>{switch(s.type){case"failed":return{...u,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...qf(u.data,this.options),fetchMeta:s.meta??null};case"success":const d={...u,...ff(s.data,s.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return z(this,Gr,s.manual?d:void 0),d;case"error":const h=s.error;return{...u,error:h,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...s.state}}};this.state=l(this.state),Ae.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),p(this,Ot).notify({query:this,type:"updated",action:s})})},Lf);function qf(i,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Hf(s.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function ff(i,s){return{data:i,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hf(i){const s=typeof i.initialData=="function"?i.initialData():i.initialData,l=s!==void 0,u=l?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:l?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var pt,ge,eo,lt,cr,Yr,on,In,to,Xr,Zr,dr,fr,Dn,Jr,ke,Gs,Oa,Ma,La,za,Fa,Ia,Da,Gf,zf,nu=(zf=class extends yr{constructor(s,l){super();V(this,ke);V(this,pt);V(this,ge);V(this,eo);V(this,lt);V(this,cr);V(this,Yr);V(this,on);V(this,In);V(this,to);V(this,Xr);V(this,Zr);V(this,dr);V(this,fr);V(this,Dn);V(this,Jr,new Set);this.options=l,z(this,pt,s),z(this,In,null),z(this,on,Ra()),this.bindMethods(),this.setOptions(l)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(p(this,ge).addObserver(this),pf(p(this,ge),this.options)?ne(this,ke,Gs).call(this):this.updateResult(),ne(this,ke,za).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Aa(p(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Aa(p(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ne(this,ke,Fa).call(this),ne(this,ke,Ia).call(this),p(this,ge).removeObserver(this)}setOptions(s){const l=this.options,u=p(this,ge);if(this.options=p(this,pt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Et(this.options.enabled,p(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ne(this,ke,Da).call(this),p(this,ge).setOptions(this.options),l._defaulted&&!Xs(this.options,l)&&p(this,pt).getQueryCache().notify({type:"observerOptionsUpdated",query:p(this,ge),observer:this});const d=this.hasListeners();d&&mf(p(this,ge),u,this.options,l)&&ne(this,ke,Gs).call(this),this.updateResult(),d&&(p(this,ge)!==u||Et(this.options.enabled,p(this,ge))!==Et(l.enabled,p(this,ge))||Hn(this.options.staleTime,p(this,ge))!==Hn(l.staleTime,p(this,ge)))&&ne(this,ke,Oa).call(this);const h=ne(this,ke,Ma).call(this);d&&(p(this,ge)!==u||Et(this.options.enabled,p(this,ge))!==Et(l.enabled,p(this,ge))||h!==p(this,Dn))&&ne(this,ke,La).call(this,h)}getOptimisticResult(s){const l=p(this,pt).getQueryCache().build(p(this,pt),s),u=this.createResult(l,s);return $m(this,u)&&(z(this,lt,u),z(this,Yr,this.options),z(this,cr,p(this,ge).state)),u}getCurrentResult(){return p(this,lt)}trackResult(s,l){return new Proxy(s,{get:(u,d)=>(this.trackProp(d),l==null||l(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&p(this,on).status==="pending"&&p(this,on).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,d))})}trackProp(s){p(this,Jr).add(s)}getCurrentQuery(){return p(this,ge)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const l=p(this,pt).defaultQueryOptions(s),u=p(this,pt).getQueryCache().build(p(this,pt),l);return u.fetch().then(()=>this.createResult(u,l))}fetch(s){return ne(this,ke,Gs).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,lt)))}createResult(s,l){var ce;const u=p(this,ge),d=this.options,h=p(this,lt),w=p(this,cr),x=p(this,Yr),F=s!==u?s.state:p(this,eo),{state:M}=s;let E={...M},O=!1,I;if(l._optimisticResults){const H=this.hasListeners(),Z=!H&&pf(s,l),X=H&&mf(s,u,l,d);(Z||X)&&(E={...E,...qf(M.data,s.options)}),l._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:U,errorUpdatedAt:R,status:P}=E;I=E.data;let Q=!1;if(l.placeholderData!==void 0&&I===void 0&&P==="pending"){let H;h!=null&&h.isPlaceholderData&&l.placeholderData===(x==null?void 0:x.placeholderData)?(H=h.data,Q=!0):H=typeof l.placeholderData=="function"?l.placeholderData((ce=p(this,Zr))==null?void 0:ce.state.data,p(this,Zr)):l.placeholderData,H!==void 0&&(P="success",I=Pa(h==null?void 0:h.data,H,l),O=!0)}if(l.select&&I!==void 0&&!Q)if(h&&I===(w==null?void 0:w.data)&&l.select===p(this,to))I=p(this,Xr);else try{z(this,to,l.select),I=l.select(I),I=Pa(h==null?void 0:h.data,I,l),z(this,Xr,I),z(this,In,null)}catch(H){z(this,In,H)}p(this,In)&&(U=p(this,In),I=p(this,Xr),R=Date.now(),P="error");const re=E.fetchStatus==="fetching",oe=P==="pending",D=P==="error",ie=oe&&re,he=I!==void 0,se={status:P,fetchStatus:E.fetchStatus,isPending:oe,isSuccess:P==="success",isError:D,isInitialLoading:ie,isLoading:ie,data:I,dataUpdatedAt:E.dataUpdatedAt,error:U,errorUpdatedAt:R,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:E.dataUpdateCount>F.dataUpdateCount||E.errorUpdateCount>F.errorUpdateCount,isFetching:re,isRefetching:re&&!oe,isLoadingError:D&&!he,isPaused:E.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:D&&he,isStale:ru(s,l),refetch:this.refetch,promise:p(this,on),isEnabled:Et(l.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const H=se.data!==void 0,Z=se.status==="error"&&!H,X=Le=>{Z?Le.reject(se.error):H&&Le.resolve(se.data)},ye=()=>{const Le=z(this,on,se.promise=Ra());X(Le)},je=p(this,on);switch(je.status){case"pending":s.queryHash===u.queryHash&&X(je);break;case"fulfilled":(Z||se.data!==je.value)&&ye();break;case"rejected":(!Z||se.error!==je.reason)&&ye();break}}return se}updateResult(){const s=p(this,lt),l=this.createResult(p(this,ge),this.options);if(z(this,cr,p(this,ge).state),z(this,Yr,this.options),p(this,cr).data!==void 0&&z(this,Zr,p(this,ge)),Xs(l,s))return;z(this,lt,l);const u=()=>{if(!s)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!p(this,Jr).size)return!0;const w=new Set(h??p(this,Jr));return this.options.throwOnError&&w.add("error"),Object.keys(p(this,lt)).some(x=>{const N=x;return p(this,lt)[N]!==s[N]&&w.has(N)})};ne(this,ke,Gf).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ne(this,ke,za).call(this)}},pt=new WeakMap,ge=new WeakMap,eo=new WeakMap,lt=new WeakMap,cr=new WeakMap,Yr=new WeakMap,on=new WeakMap,In=new WeakMap,to=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,dr=new WeakMap,fr=new WeakMap,Dn=new WeakMap,Jr=new WeakMap,ke=new WeakSet,Gs=function(s){ne(this,ke,Da).call(this);let l=p(this,ge).fetch(this.options,s);return s!=null&&s.throwOnError||(l=l.catch(st)),l},Oa=function(){ne(this,ke,Fa).call(this);const s=Hn(this.options.staleTime,p(this,ge));if(Zs.isServer()||p(this,lt).isStale||!ba(s))return;const u=$f(p(this,lt).dataUpdatedAt,s)+1;z(this,dr,sr.setTimeout(()=>{p(this,lt).isStale||this.updateResult()},u))},Ma=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(p(this,ge)):this.options.refetchInterval)??!1},La=function(s){ne(this,ke,Ia).call(this),z(this,Dn,s),!(Zs.isServer()||Et(this.options.enabled,p(this,ge))===!1||!ba(p(this,Dn))||p(this,Dn)===0)&&z(this,fr,sr.setInterval(()=>{(this.options.refetchIntervalInBackground||Xa.isFocused())&&ne(this,ke,Gs).call(this)},p(this,Dn)))},za=function(){ne(this,ke,Oa).call(this),ne(this,ke,La).call(this,ne(this,ke,Ma).call(this))},Fa=function(){p(this,dr)!==void 0&&(sr.clearTimeout(p(this,dr)),z(this,dr,void 0))},Ia=function(){p(this,fr)!==void 0&&(sr.clearInterval(p(this,fr)),z(this,fr,void 0))},Da=function(){const s=p(this,pt).getQueryCache().build(p(this,pt),this.options);if(s===p(this,ge))return;const l=p(this,ge);z(this,ge,s),z(this,eo,s.state),this.hasListeners()&&(l==null||l.removeObserver(this),s.addObserver(this))},Gf=function(s){Ae.batch(()=>{s.listeners&&this.listeners.forEach(l=>{l(p(this,lt))}),p(this,pt).getQueryCache().notify({query:p(this,ge),type:"observerResultsUpdated"})})},zf);function Qm(i,s){return Et(s.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&Et(s.retryOnMount,i)===!1)}function pf(i,s){return Qm(i,s)||i.state.data!==void 0&&Aa(i,s,s.refetchOnMount)}function Aa(i,s,l){if(Et(s.enabled,i)!==!1&&Hn(s.staleTime,i)!=="static"){const u=typeof l=="function"?l(i):l;return u==="always"||u!==!1&&ru(i,s)}return!1}function mf(i,s,l,u){return(i!==s||Et(u.enabled,i)===!1)&&(!l.suspense||i.state.status!=="error")&&ru(i,l)}function ru(i,s){return Et(s.enabled,i)!==!1&&i.isStaleByTime(Hn(s.staleTime,i))}function $m(i,s){return!Xs(i.getCurrentResult(),s)}var no,Wt,rt,hr,Kt,On,Ff,Bm=(Ff=class extends Wf{constructor(s){super();V(this,Kt);V(this,no);V(this,Wt);V(this,rt);V(this,hr);z(this,no,s.client),this.mutationId=s.mutationId,z(this,rt,s.mutationCache),z(this,Wt,[]),this.state=s.state||Yf(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){p(this,Wt).includes(s)||(p(this,Wt).push(s),this.clearGcTimeout(),p(this,rt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){z(this,Wt,p(this,Wt).filter(l=>l!==s)),this.scheduleGc(),p(this,rt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){p(this,Wt).length||(this.state.status==="pending"?this.scheduleGc():p(this,rt).remove(this))}continue(){var s;return((s=p(this,hr))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var w,x,N,F,M,E,O,I,U,R,P,Q,re,oe,D,ie,he,pe;const l=()=>{ne(this,Kt,On).call(this,{type:"continue"})},u={client:p(this,no),meta:this.options.meta,mutationKey:this.options.mutationKey};z(this,hr,Vf({fn:()=>this.options.mutationFn?this.options.mutationFn(s,u):Promise.reject(new Error("No mutationFn found")),onFail:(se,ce)=>{ne(this,Kt,On).call(this,{type:"failed",failureCount:se,error:ce})},onPause:()=>{ne(this,Kt,On).call(this,{type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(this,rt).canRun(this)}));const d=this.state.status==="pending",h=!p(this,hr).canStart();try{if(d)l();else{ne(this,Kt,On).call(this,{type:"pending",variables:s,isPaused:h}),p(this,rt).config.onMutate&&await p(this,rt).config.onMutate(s,this,u);const ce=await((x=(w=this.options).onMutate)==null?void 0:x.call(w,s,u));ce!==this.state.context&&ne(this,Kt,On).call(this,{type:"pending",context:ce,variables:s,isPaused:h})}const se=await p(this,hr).start();return await((F=(N=p(this,rt).config).onSuccess)==null?void 0:F.call(N,se,s,this.state.context,this,u)),await((E=(M=this.options).onSuccess)==null?void 0:E.call(M,se,s,this.state.context,u)),await((I=(O=p(this,rt).config).onSettled)==null?void 0:I.call(O,se,null,this.state.variables,this.state.context,this,u)),await((R=(U=this.options).onSettled)==null?void 0:R.call(U,se,null,s,this.state.context,u)),ne(this,Kt,On).call(this,{type:"success",data:se}),se}catch(se){try{await((Q=(P=p(this,rt).config).onError)==null?void 0:Q.call(P,se,s,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((oe=(re=this.options).onError)==null?void 0:oe.call(re,se,s,this.state.context,u))}catch(ce){Promise.reject(ce)}try{await((ie=(D=p(this,rt).config).onSettled)==null?void 0:ie.call(D,void 0,se,this.state.variables,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((pe=(he=this.options).onSettled)==null?void 0:pe.call(he,void 0,se,s,this.state.context,u))}catch(ce){Promise.reject(ce)}throw ne(this,Kt,On).call(this,{type:"error",error:se}),se}finally{p(this,rt).runNext(this)}}},no=new WeakMap,Wt=new WeakMap,rt=new WeakMap,hr=new WeakMap,Kt=new WeakSet,On=function(s){const l=u=>{switch(s.type){case"failed":return{...u,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...u,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:s.error,failureCount:u.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=l(this.state),Ae.batch(()=>{p(this,Wt).forEach(u=>{u.onMutationUpdate(s)}),p(this,rt).notify({mutation:this,type:"updated",action:s})})},Ff);function Yf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ln,Ut,ro,If,Hm=(If=class extends yr{constructor(s={}){super();V(this,ln);V(this,Ut);V(this,ro);this.config=s,z(this,ln,new Set),z(this,Ut,new Map),z(this,ro,0)}build(s,l,u){const d=new Bm({client:s,mutationCache:this,mutationId:++xi(this,ro)._,options:s.defaultMutationOptions(l),state:u});return this.add(d),d}add(s){p(this,ln).add(s);const l=wi(s);if(typeof l=="string"){const u=p(this,Ut).get(l);u?u.push(s):p(this,Ut).set(l,[s])}this.notify({type:"added",mutation:s})}remove(s){if(p(this,ln).delete(s)){const l=wi(s);if(typeof l=="string"){const u=p(this,Ut).get(l);if(u)if(u.length>1){const d=u.indexOf(s);d!==-1&&u.splice(d,1)}else u[0]===s&&p(this,Ut).delete(l)}}this.notify({type:"removed",mutation:s})}canRun(s){const l=wi(s);if(typeof l=="string"){const u=p(this,Ut).get(l),d=u==null?void 0:u.find(h=>h.state.status==="pending");return!d||d===s}else return!0}runNext(s){var u;const l=wi(s);if(typeof l=="string"){const d=(u=p(this,Ut).get(l))==null?void 0:u.find(h=>h!==s&&h.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ae.batch(()=>{p(this,ln).forEach(s=>{this.notify({type:"removed",mutation:s})}),p(this,ln).clear(),p(this,Ut).clear()})}getAll(){return Array.from(p(this,ln))}find(s){const l={exact:!0,...s};return this.getAll().find(u=>af(l,u))}findAll(s={}){return this.getAll().filter(l=>af(s,l))}notify(s){Ae.batch(()=>{this.listeners.forEach(l=>{l(s)})})}resumePausedMutations(){const s=this.getAll().filter(l=>l.state.isPaused);return Ae.batch(()=>Promise.all(s.map(l=>l.continue().catch(st))))}},ln=new WeakMap,Ut=new WeakMap,ro=new WeakMap,If);function wi(i){var s;return(s=i.options.scope)==null?void 0:s.id}var an,An,mt,un,cn,Si,Ua,Df,Vm=(Df=class extends yr{constructor(l,u){super();V(this,cn);V(this,an);V(this,An);V(this,mt);V(this,un);z(this,an,l),this.setOptions(u),this.bindMethods(),ne(this,cn,Si).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){var d;const u=this.options;this.options=p(this,an).defaultMutationOptions(l),Xs(this.options,u)||p(this,an).getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(this,mt),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&mr(u.mutationKey)!==mr(this.options.mutationKey)?this.reset():((d=p(this,mt))==null?void 0:d.state.status)==="pending"&&p(this,mt).setOptions(this.options)}onUnsubscribe(){var l;this.hasListeners()||(l=p(this,mt))==null||l.removeObserver(this)}onMutationUpdate(l){ne(this,cn,Si).call(this),ne(this,cn,Ua).call(this,l)}getCurrentResult(){return p(this,An)}reset(){var l;(l=p(this,mt))==null||l.removeObserver(this),z(this,mt,void 0),ne(this,cn,Si).call(this),ne(this,cn,Ua).call(this)}mutate(l,u){var d;return z(this,un,u),(d=p(this,mt))==null||d.removeObserver(this),z(this,mt,p(this,an).getMutationCache().build(p(this,an),this.options)),p(this,mt).addObserver(this),p(this,mt).execute(l)}},an=new WeakMap,An=new WeakMap,mt=new WeakMap,un=new WeakMap,cn=new WeakSet,Si=function(){var u;const l=((u=p(this,mt))==null?void 0:u.state)??Yf();z(this,An,{...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset})},Ua=function(l){Ae.batch(()=>{var u,d,h,w,x,N,F,M;if(p(this,un)&&this.hasListeners()){const E=p(this,An).variables,O=p(this,An).context,I={client:p(this,an),meta:this.options.meta,mutationKey:this.options.mutationKey};if((l==null?void 0:l.type)==="success"){try{(d=(u=p(this,un)).onSuccess)==null||d.call(u,l.data,E,O,I)}catch(U){Promise.reject(U)}try{(w=(h=p(this,un)).onSettled)==null||w.call(h,l.data,null,E,O,I)}catch(U){Promise.reject(U)}}else if((l==null?void 0:l.type)==="error"){try{(N=(x=p(this,un)).onError)==null||N.call(x,l.error,E,O,I)}catch(U){Promise.reject(U)}try{(M=(F=p(this,un)).onSettled)==null||M.call(F,void 0,l.error,E,O,I)}catch(U){Promise.reject(U)}}}this.listeners.forEach(E=>{E(p(this,An))})})},Df);function yf(i,s){const l=new Set(s);return i.filter(u=>!l.has(u))}function Wm(i,s,l){const u=i.slice(0);return u[s]=l,u}var es,yt,ts,pr,St,Un,so,oo,io,lo,We,Qa,$a,Xf,Ba,Ha,Va,Af,Km=(Af=class extends yr{constructor(s,l,u){super();V(this,We);V(this,es);V(this,yt);V(this,ts);V(this,pr);V(this,St);V(this,Un);V(this,so);V(this,oo);V(this,io);V(this,lo,[]);z(this,es,s),z(this,pr,u),z(this,ts,[]),z(this,St,[]),z(this,yt,[]),this.setQueries(l)}onSubscribe(){this.listeners.size===1&&p(this,St).forEach(s=>{s.subscribe(l=>{ne(this,We,Ha).call(this,s,l)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,p(this,St).forEach(s=>{s.destroy()})}setQueries(s,l){z(this,ts,s),z(this,pr,l),Ae.batch(()=>{const u=p(this,St),d=ne(this,We,Ba).call(this,p(this,ts));d.forEach(E=>E.observer.setOptions(E.defaultedQueryOptions));const h=d.map(E=>E.observer),w=h.map(E=>E.getCurrentResult()),x=u.length!==h.length,N=h.some((E,O)=>E!==u[O]),F=x||N,M=F?!0:w.some((E,O)=>{const I=p(this,yt)[O];return!I||!Xs(E,I)});!F&&!M||(F&&(z(this,lo,d),z(this,St,h)),z(this,yt,w),this.hasListeners()&&(F&&(yf(u,h).forEach(E=>{E.destroy()}),yf(h,u).forEach(E=>{E.subscribe(O=>{ne(this,We,Ha).call(this,E,O)})})),ne(this,We,Va).call(this)))})}getCurrentResult(){return p(this,yt)}getQueries(){return p(this,St).map(s=>s.getCurrentQuery())}getObservers(){return p(this,St)}getOptimisticResult(s,l){const u=ne(this,We,Ba).call(this,s),d=u.map(w=>w.observer.getOptimisticResult(w.defaultedQueryOptions)),h=u.map(w=>w.defaultedQueryOptions.queryHash);return[d,w=>ne(this,We,$a).call(this,w??d,l,h),()=>ne(this,We,Qa).call(this,d,u)]}},es=new WeakMap,yt=new WeakMap,ts=new WeakMap,pr=new WeakMap,St=new WeakMap,Un=new WeakMap,so=new WeakMap,oo=new WeakMap,io=new WeakMap,lo=new WeakMap,We=new WeakSet,Qa=function(s,l){return l.map((u,d)=>{const h=s[d];return u.defaultedQueryOptions.notifyOnChangeProps?h:u.observer.trackResult(h,w=>{l.forEach(x=>{x.observer.trackProp(w)})})})},$a=function(s,l,u){if(l){const d=p(this,io),h=u!==void 0&&d!==void 0&&(d.length!==u.length||u.some((w,x)=>w!==d[x]));return(!p(this,Un)||p(this,yt)!==p(this,oo)||h||l!==p(this,so))&&(z(this,so,l),z(this,oo,p(this,yt)),u!==void 0&&z(this,io,u),z(this,Un,Ja(p(this,Un),l(s)))),p(this,Un)}return s},Xf=function(){var s;return((s=p(this,pr))==null?void 0:s.combine)!==void 0&&p(this,St).some((l,u)=>{var d;return l.options.suspense&&((d=p(this,yt)[u])==null?void 0:d.data)===void 0})},Ba=function(s){const l=new Map;p(this,St).forEach(d=>{const h=d.options.queryHash;if(!h)return;const w=l.get(h);w?w.push(d):l.set(h,[d])});const u=[];return s.forEach(d=>{var N;const h=p(this,es).defaultQueryOptions(d),x=((N=l.get(h.queryHash))==null?void 0:N.shift())??new nu(p(this,es),h);u.push({defaultedQueryOptions:h,observer:x})}),u},Ha=function(s,l){const u=p(this,St).indexOf(s);u!==-1&&(z(this,yt,Wm(p(this,yt),u,l)),ne(this,We,Va).call(this))},Va=function(){var s;if(this.hasListeners()){const l=ne(this,We,Qa).call(this,p(this,yt),p(this,lo)),u=ne(this,We,Xf).call(this),d=p(this,Un),h=u?d:ne(this,We,$a).call(this,l,(s=p(this,pr))==null?void 0:s.combine);(u||d!==h)&&Ae.batch(()=>{this.listeners.forEach(w=>{w(p(this,yt))})})}},Af),qt,Uf,qm=(Uf=class extends yr{constructor(s={}){super();V(this,qt);this.config=s,z(this,qt,new Map)}build(s,l,u){const d=l.queryKey,h=l.queryHash??Za(d,l);let w=this.get(h);return w||(w=new Um({client:s,queryKey:d,queryHash:h,options:s.defaultQueryOptions(l),state:u,defaultOptions:s.getQueryDefaults(d)}),this.add(w)),w}add(s){p(this,qt).has(s.queryHash)||(p(this,qt).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const l=p(this,qt).get(s.queryHash);l&&(s.destroy(),l===s&&p(this,qt).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Ae.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return p(this,qt).get(s)}getAll(){return[...p(this,qt).values()]}find(s){const l={exact:!0,...s};return this.getAll().find(u=>lf(l,u))}findAll(s={}){const l=this.getAll();return Object.keys(s).length>0?l.filter(u=>lf(s,u)):l}notify(s){Ae.batch(()=>{this.listeners.forEach(l=>{l(s)})})}onFocus(){Ae.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Ae.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},qt=new WeakMap,Uf),De,Qn,$n,ns,rs,Bn,ss,os,Qf,Gm=(Qf=class{constructor(i={}){V(this,De);V(this,Qn);V(this,$n);V(this,ns);V(this,rs);V(this,Bn);V(this,ss);V(this,os);z(this,De,i.queryCache||new qm),z(this,Qn,i.mutationCache||new Hm),z(this,$n,i.defaultOptions||{}),z(this,ns,new Map),z(this,rs,new Map),z(this,Bn,0)}mount(){xi(this,Bn)._++,p(this,Bn)===1&&(z(this,ss,Xa.subscribe(async i=>{i&&(await this.resumePausedMutations(),p(this,De).onFocus())})),z(this,os,Ci.subscribe(async i=>{i&&(await this.resumePausedMutations(),p(this,De).onOnline())})))}unmount(){var i,s;xi(this,Bn)._--,p(this,Bn)===0&&((i=p(this,ss))==null||i.call(this),z(this,ss,void 0),(s=p(this,os))==null||s.call(this),z(this,os,void 0))}isFetching(i){return p(this,De).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return p(this,Qn).findAll({...i,status:"pending"}).length}getQueryData(i){var l;const s=this.defaultQueryOptions({queryKey:i});return(l=p(this,De).get(s.queryHash))==null?void 0:l.state.data}ensureQueryData(i){const s=this.defaultQueryOptions(i),l=p(this,De).build(this,s),u=l.state.data;return u===void 0?this.fetchQuery(i):(i.revalidateIfStale&&l.isStaleByTime(Hn(s.staleTime,l))&&this.prefetchQuery(s),Promise.resolve(u))}getQueriesData(i){return p(this,De).findAll(i).map(({queryKey:s,state:l})=>{const u=l.data;return[s,u]})}setQueryData(i,s,l){const u=this.defaultQueryOptions({queryKey:i}),d=p(this,De).get(u.queryHash),h=d==null?void 0:d.state.data,w=_m(s,h);if(w!==void 0)return p(this,De).build(this,u).setData(w,{...l,manual:!0})}setQueriesData(i,s,l){return Ae.batch(()=>p(this,De).findAll(i).map(({queryKey:u})=>[u,this.setQueryData(u,s,l)]))}getQueryState(i){var l;const s=this.defaultQueryOptions({queryKey:i});return(l=p(this,De).get(s.queryHash))==null?void 0:l.state}removeQueries(i){const s=p(this,De);Ae.batch(()=>{s.findAll(i).forEach(l=>{s.remove(l)})})}resetQueries(i,s){const l=p(this,De);return Ae.batch(()=>(l.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...i},s)))}cancelQueries(i,s={}){const l={revert:!0,...s},u=Ae.batch(()=>p(this,De).findAll(i).map(d=>d.cancel(l)));return Promise.all(u).then(st).catch(st)}invalidateQueries(i,s={}){return Ae.batch(()=>(p(this,De).findAll(i).forEach(l=>{l.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},s)))}refetchQueries(i,s={}){const l={...s,cancelRefetch:s.cancelRefetch??!0},u=Ae.batch(()=>p(this,De).findAll(i).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let h=d.fetch(void 0,l);return l.throwOnError||(h=h.catch(st)),d.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(u).then(st)}fetchQuery(i){const s=this.defaultQueryOptions(i);s.retry===void 0&&(s.retry=!1);const l=p(this,De).build(this,s);return l.isStaleByTime(Hn(s.staleTime,l))?l.fetch(s):Promise.resolve(l.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(st).catch(st)}fetchInfiniteQuery(i){return i._type="infinite",this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(st).catch(st)}ensureInfiniteQueryData(i){return i._type="infinite",this.ensureQueryData(i)}resumePausedMutations(){return Ci.isOnline()?p(this,Qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,De)}getMutationCache(){return p(this,Qn)}getDefaultOptions(){return p(this,$n)}setDefaultOptions(i){z(this,$n,i)}setQueryDefaults(i,s){p(this,ns).set(mr(i),{queryKey:i,defaultOptions:s})}getQueryDefaults(i){const s=[...p(this,ns).values()],l={};return s.forEach(u=>{Ys(i,u.queryKey)&&Object.assign(l,u.defaultOptions)}),l}setMutationDefaults(i,s){p(this,rs).set(mr(i),{mutationKey:i,defaultOptions:s})}getMutationDefaults(i){const s=[...p(this,rs).values()],l={};return s.forEach(u=>{Ys(i,u.mutationKey)&&Object.assign(l,u.defaultOptions)}),l}defaultQueryOptions(i){if(i._defaulted)return i;const s={...p(this,$n).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return s.queryHash||(s.queryHash=Za(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===eu&&(s.enabled=!1),s}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...p(this,$n).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){p(this,De).clear(),p(this,Qn).clear()}},De=new WeakMap,Qn=new WeakMap,$n=new WeakMap,ns=new WeakMap,rs=new WeakMap,Bn=new WeakMap,ss=new WeakMap,os=new WeakMap,Qf),J=Ya(),Zf=J.createContext(void 0),Ei=i=>{const s=J.useContext(Zf);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Ym=({client:i,children:s})=>(J.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),f.jsx(Zf.Provider,{value:i,children:s})),Jf=J.createContext(!1),eh=()=>J.useContext(Jf);Jf.Provider;function Xm(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Zm=J.createContext(Xm()),th=()=>J.useContext(Zm),nh=(i,s,l)=>{const u=l!=null&&l.state.error&&typeof i.throwOnError=="function"?tu(i.throwOnError,[l.state.error,l]):i.throwOnError;(i.suspense||i.experimental_prefetchInRender||u)&&(s.isReset()||(i.retryOnMount=!1))},rh=i=>{J.useEffect(()=>{i.clearReset()},[i])},sh=({result:i,errorResetBoundary:s,throwOnError:l,query:u,suspense:d})=>i.isError&&!s.isReset()&&!i.isFetching&&u&&(d&&i.data===void 0||tu(l,[i.error,u])),oh=i=>{if(i.suspense){const l=d=>d==="static"?d:Math.max(d??1e3,1e3),u=i.staleTime;i.staleTime=typeof u=="function"?(...d)=>l(u(...d)):l(u),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},Jm=(i,s)=>i.isLoading&&i.isFetching&&!s,Wa=(i,s)=>(i==null?void 0:i.suspense)&&s.isPending,Ka=(i,s,l)=>s.fetchOptimistic(i).catch(()=>{l.clearReset()});function ey({queries:i,...s},l){const u=Ei(),d=eh(),h=th(),w=J.useMemo(()=>i.map(R=>{const P=u.defaultQueryOptions(R);return P._optimisticResults=d?"isRestoring":"optimistic",P}),[i,u,d]);w.forEach(R=>{oh(R);const P=u.getQueryCache().get(R.queryHash);nh(R,h,P)}),rh(h);const[x]=J.useState(()=>new Km(u,w,s)),[N,F,M]=x.getOptimisticResult(w,s.combine),E=!d&&s.subscribed!==!1;J.useSyncExternalStore(J.useCallback(R=>E?x.subscribe(Ae.batchCalls(R)):st,[x,E]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),J.useEffect(()=>{x.setQueries(w,s)},[w,s,x]);const I=N.some((R,P)=>Wa(w[P],R))?N.flatMap((R,P)=>{const Q=w[P];if(Q&&Wa(Q,R)){const re=new nu(u,Q);return Ka(Q,re,h)}return[]}):[];if(I.length>0)throw Promise.all(I);const U=N.find((R,P)=>{const Q=w[P];return Q&&sh({result:R,errorResetBoundary:h,throwOnError:Q.throwOnError,query:u.getQueryCache().get(Q.queryHash),suspense:Q.suspense})});if(U!=null&&U.error)throw U.error;return F(M())}function ty(i,s,l){var I,U,R,P;const u=eh(),d=th(),h=Ei(),w=h.defaultQueryOptions(i);(U=(I=h.getDefaultOptions().queries)==null?void 0:I._experimental_beforeQuery)==null||U.call(I,w);const x=h.getQueryCache().get(w.queryHash),N=i.subscribed!==!1;w._optimisticResults=u?"isRestoring":N?"optimistic":void 0,oh(w),nh(w,d,x),rh(d);const F=!h.getQueryCache().get(w.queryHash),[M]=J.useState(()=>new s(h,w)),E=M.getOptimisticResult(w),O=!u&&N;if(J.useSyncExternalStore(J.useCallback(Q=>{const re=O?M.subscribe(Ae.batchCalls(Q)):st;return M.updateResult(),re},[M,O]),()=>M.getCurrentResult(),()=>M.getCurrentResult()),J.useEffect(()=>{M.setOptions(w)},[w,M]),Wa(w,E))throw Ka(w,M,d);if(sh({result:E,errorResetBoundary:d,throwOnError:w.throwOnError,query:x,suspense:w.suspense}))throw E.error;if((P=(R=h.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||P.call(R,w,E),w.experimental_prefetchInRender&&!Zs.isServer()&&Jm(E,u)){const Q=F?Ka(w,M,d):x==null?void 0:x.promise;Q==null||Q.catch(st).finally(()=>{M.updateResult()})}return w.notifyOnChangeProps?E:M.trackResult(E)}function gr(i,s){return ty(i,nu)}function ih(i,s){const l=Ei(),[u]=J.useState(()=>new Vm(l,i));J.useEffect(()=>{u.setOptions(i)},[u,i]);const d=J.useSyncExternalStore(J.useCallback(w=>u.subscribe(Ae.batchCalls(w)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),h=J.useCallback((w,x)=>{u.mutate(w,x).catch(st)},[u]);if(d.error&&tu(u.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}var ki={},ka={exports:{}},ht={},Sa={exports:{}},Ca={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var gf;function ny(){return gf||(gf=1,(function(i){function s(A,Y){var $=A.length;A.push(Y);e:for(;0<$;){var v=$-1>>>1,j=A[v];if(0<d(j,Y))A[v]=Y,A[$]=j,$=v;else break e}}function l(A){return A.length===0?null:A[0]}function u(A){if(A.length===0)return null;var Y=A[0],$=A.pop();if($!==Y){A[0]=$;e:for(var v=0,j=A.length,ae=j>>>1;v<ae;){var fe=2*(v+1)-1,ue=A[fe],ve=fe+1,be=A[ve];if(0>d(ue,$))ve<j&&0>d(be,ue)?(A[v]=be,A[ve]=$,v=ve):(A[v]=ue,A[fe]=$,v=fe);else if(ve<j&&0>d(be,$))A[v]=be,A[ve]=$,v=ve;else break e}}return Y}function d(A,Y){var $=A.sortIndex-Y.sortIndex;return $!==0?$:A.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var w=Date,x=w.now();i.unstable_now=function(){return w.now()-x}}var N=[],F=[],M=1,E=null,O=3,I=!1,U=!1,R=!1,P=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,re=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(A){for(var Y=l(F);Y!==null;){if(Y.callback===null)u(F);else if(Y.startTime<=A)u(F),Y.sortIndex=Y.expirationTime,s(N,Y);else break;Y=l(F)}}function D(A){if(R=!1,oe(A),!U)if(l(N)!==null)U=!0,Ue(ie);else{var Y=l(F);Y!==null&&Ne(D,Y.startTime-A)}}function ie(A,Y){U=!1,R&&(R=!1,Q(se),se=-1),I=!0;var $=O;try{for(oe(Y),E=l(N);E!==null&&(!(E.expirationTime>Y)||A&&!Z());){var v=E.callback;if(typeof v=="function"){E.callback=null,O=E.priorityLevel;var j=v(E.expirationTime<=Y);Y=i.unstable_now(),typeof j=="function"?E.callback=j:E===l(N)&&u(N),oe(Y)}else u(N);E=l(N)}if(E!==null)var ae=!0;else{var fe=l(F);fe!==null&&Ne(D,fe.startTime-Y),ae=!1}return ae}finally{E=null,O=$,I=!1}}var he=!1,pe=null,se=-1,ce=5,H=-1;function Z(){return!(i.unstable_now()-H<ce)}function X(){if(pe!==null){var A=i.unstable_now();H=A;var Y=!0;try{Y=pe(!0,A)}finally{Y?ye():(he=!1,pe=null)}}else he=!1}var ye;if(typeof re=="function")ye=function(){re(X)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Le=je.port2;je.port1.onmessage=X,ye=function(){Le.postMessage(null)}}else ye=function(){P(X,0)};function Ue(A){pe=A,he||(he=!0,ye())}function Ne(A,Y){se=P(function(){A(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(A){A.callback=null},i.unstable_continueExecution=function(){U||I||(U=!0,Ue(ie))},i.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<A?Math.floor(1e3/A):5},i.unstable_getCurrentPriorityLevel=function(){return O},i.unstable_getFirstCallbackNode=function(){return l(N)},i.unstable_next=function(A){switch(O){case 1:case 2:case 3:var Y=3;break;default:Y=O}var $=O;O=Y;try{return A()}finally{O=$}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(A,Y){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var $=O;O=A;try{return Y()}finally{O=$}},i.unstable_scheduleCallback=function(A,Y,$){var v=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?v+$:v):$=v,A){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=$+j,A={id:M++,callback:Y,priorityLevel:A,startTime:$,expirationTime:j,sortIndex:-1},$>v?(A.sortIndex=$,s(F,A),l(N)===null&&A===l(F)&&(R?(Q(se),se=-1):R=!0,Ne(D,$-v))):(A.sortIndex=j,s(N,A),U||I||(U=!0,Ue(ie))),A},i.unstable_shouldYield=Z,i.unstable_wrapCallback=function(A){var Y=O;return function(){var $=O;O=Y;try{return A.apply(this,arguments)}finally{O=$}}}})(Ca)),Ca}var vf;function ry(){return vf||(vf=1,Sa.exports=ny()),Sa.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var xf;function sy(){if(xf)return ht;xf=1;var i=Ya(),s=ry();function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var u=new Set,d={};function h(e,t){w(e,t),w(e+"Capture",t)}function w(e,t){for(d[e]=t,e=0;e<t.length;e++)u.add(t[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N=Object.prototype.hasOwnProperty,F=/^[: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]*$/,M={},E={};function O(e){return N.call(E,e)?!0:N.call(M,e)?!1:F.test(e)?E[e]=!0:(M[e]=!0,!1)}function I(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U(e,t,n,r){if(t===null||typeof t>"u"||I(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,n,r,o,a,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=c}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new R(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q=/[\-:]([a-z])/g;function re(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q,re);P[t]=new R(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q,re);P[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q,re);P[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function oe(e,t,n,r){var o=P.hasOwnProperty(t)?P[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(U(t,n,o,r)&&(n=null),r||o===null?O(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var D=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ie=Symbol.for("react.element"),he=Symbol.for("react.portal"),pe=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),Z=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Le=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),A=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var $=Object.assign,v;function j(e){if(v===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);v=t&&t[1]||""}return`
|
|
34
|
+
`+v+e}var ae=!1;function fe(e,t){if(!e||ae)return"";ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(C){var r=C}Reflect.construct(e,[],t)}else{try{t.call()}catch(C){r=C}e.call(t.prototype)}else{try{throw Error()}catch(C){r=C}e()}}catch(C){if(C&&r&&typeof C.stack=="string"){for(var o=C.stack.split(`
|
|
35
|
+
`),a=r.stack.split(`
|
|
36
|
+
`),c=o.length-1,m=a.length-1;1<=c&&0<=m&&o[c]!==a[m];)m--;for(;1<=c&&0<=m;c--,m--)if(o[c]!==a[m]){if(c!==1||m!==1)do if(c--,m--,0>m||o[c]!==a[m]){var y=`
|
|
37
|
+
`+o[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=c&&0<=m);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function ue(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pe:return"Fragment";case he:return"Portal";case ce:return"Profiler";case se:return"StrictMode";case ye:return"Suspense";case je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z:return(e.displayName||"Context")+".Consumer";case H:return(e._context.displayName||"Context")+".Provider";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Le:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function be(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===se?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gt(e){var t=Oe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(c){r=""+c,a.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){e._valueTracker||(e._valueTracker=gt(e))}function lu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function uo(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}}function Ni(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ce(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uu(e,t){t=t.checked,t!=null&&oe(e,"checked",t,!1)}function ji(e,t){uu(e,t);var n=Ce(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bi(e,t.type,n):t.hasOwnProperty("defaultValue")&&bi(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bi(e,t,n){(t!=="number"||uo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ls=Array.isArray;function vr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ce(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _i(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(l(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function du(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(l(92));if(ls(n)){if(1<n.length)throw Error(l(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ce(n)}}function fu(e,t){var n=Ce(t.value),r=Ce(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var co,mu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(co=co||document.createElement("div"),co.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=co.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var us={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Eh=["Webkit","ms","Moz","O"];Object.keys(us).forEach(function(e){Eh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),us[t]=us[e]})});function yu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||us.hasOwnProperty(e)&&us[e]?(""+t).trim():t+"px"}function gu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=yu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nh=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ri(e,t){if(t){if(Nh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function Ti(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Oi=null;function Mi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Li=null,xr=null,wr=null;function vu(e){if(e=Ts(e)){if(typeof Li!="function")throw Error(l(280));var t=e.stateNode;t&&(t=Lo(t),Li(e.stateNode,e.type,t))}}function xu(e){xr?wr?wr.push(e):wr=[e]:xr=e}function wu(){if(xr){var e=xr,t=wr;if(wr=xr=null,vu(e),t)for(e=0;e<t.length;e++)vu(t[e])}}function ku(e,t){return e(t)}function Su(){}var zi=!1;function Cu(e,t,n){if(zi)return e(t,n);zi=!0;try{return ku(e,t,n)}finally{zi=!1,(xr!==null||wr!==null)&&(Su(),wu())}}function cs(e,t){var n=e.stateNode;if(n===null)return null;var r=Lo(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Fi=!1;if(x)try{var ds={};Object.defineProperty(ds,"passive",{get:function(){Fi=!0}}),window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{Fi=!1}function jh(e,t,n,r,o,a,c,m,y){var C=Array.prototype.slice.call(arguments,3);try{t.apply(n,C)}catch(_){this.onError(_)}}var fs=!1,fo=null,ho=!1,Ii=null,bh={onError:function(e){fs=!0,fo=e}};function _h(e,t,n,r,o,a,c,m,y){fs=!1,fo=null,jh.apply(bh,arguments)}function Ph(e,t,n,r,o,a,c,m,y){if(_h.apply(this,arguments),fs){if(fs){var C=fo;fs=!1,fo=null}else throw Error(l(198));ho||(ho=!0,Ii=C)}}function Vn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Eu(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 Nu(e){if(Vn(e)!==e)throw Error(l(188))}function Rh(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Nu(o),e;if(a===r)return Nu(o),t;a=a.sibling}throw Error(l(188))}if(n.return!==r.return)n=o,r=a;else{for(var c=!1,m=o.child;m;){if(m===n){c=!0,n=o,r=a;break}if(m===r){c=!0,r=o,n=a;break}m=m.sibling}if(!c){for(m=a.child;m;){if(m===n){c=!0,n=a,r=o;break}if(m===r){c=!0,r=a,n=o;break}m=m.sibling}if(!c)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function ju(e){return e=Rh(e),e!==null?bu(e):null}function bu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bu(e);if(t!==null)return t;e=e.sibling}return null}var _u=s.unstable_scheduleCallback,Pu=s.unstable_cancelCallback,Th=s.unstable_shouldYield,Oh=s.unstable_requestPaint,Qe=s.unstable_now,Mh=s.unstable_getCurrentPriorityLevel,Di=s.unstable_ImmediatePriority,Ru=s.unstable_UserBlockingPriority,po=s.unstable_NormalPriority,Lh=s.unstable_LowPriority,Tu=s.unstable_IdlePriority,mo=null,Qt=null;function zh(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(mo,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:Dh,Fh=Math.log,Ih=Math.LN2;function Dh(e){return e>>>=0,e===0?32:31-(Fh(e)/Ih|0)|0}var yo=64,go=4194304;function hs(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,c=n&268435455;if(c!==0){var m=c&~o;m!==0?r=hs(m):(a&=c,a!==0&&(r=hs(a)))}else c=n&~o,c!==0?r=hs(c):a!==0&&(r=hs(a));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),o=1<<n,r|=e[n],t&=~o;return r}function Ah(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var c=31-Mt(a),m=1<<c,y=o[c];y===-1?((m&n)===0||(m&r)!==0)&&(o[c]=Ah(m,t)):y<=t&&(e.expiredLanes|=m),a&=~m}}function Ai(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ou(){var e=yo;return yo<<=1,(yo&4194240)===0&&(yo=64),e}function Ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ps(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Qh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Mt(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function Qi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ee=0;function Mu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Lu,$i,zu,Fu,Iu,Bi=!1,xo=[],dn=null,fn=null,hn=null,ms=new Map,ys=new Map,pn=[],$h="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 submit".split(" ");function Du(e,t){switch(e){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ys.delete(t.pointerId)}}function gs(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Ts(t),t!==null&&$i(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Bh(e,t,n,r,o){switch(t){case"focusin":return dn=gs(dn,e,t,n,r,o),!0;case"dragenter":return fn=gs(fn,e,t,n,r,o),!0;case"mouseover":return hn=gs(hn,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ms.set(a,gs(ms.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,ys.set(a,gs(ys.get(a)||null,e,t,n,r,o)),!0}return!1}function Au(e){var t=Wn(e.target);if(t!==null){var n=Vn(t);if(n!==null){if(t=n.tag,t===13){if(t=Eu(n),t!==null){e.blockedOn=t,Iu(e.priority,function(){zu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oi=r,n.target.dispatchEvent(r),Oi=null}else return t=Ts(n),t!==null&&$i(t),e.blockedOn=n,!1;t.shift()}return!0}function Uu(e,t,n){wo(e)&&n.delete(t)}function Hh(){Bi=!1,dn!==null&&wo(dn)&&(dn=null),fn!==null&&wo(fn)&&(fn=null),hn!==null&&wo(hn)&&(hn=null),ms.forEach(Uu),ys.forEach(Uu)}function vs(e,t){e.blockedOn===t&&(e.blockedOn=null,Bi||(Bi=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Hh)))}function xs(e){function t(o){return vs(o,e)}if(0<xo.length){vs(xo[0],e);for(var n=1;n<xo.length;n++){var r=xo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(dn!==null&&vs(dn,e),fn!==null&&vs(fn,e),hn!==null&&vs(hn,e),ms.forEach(t),ys.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)Au(n),n.blockedOn===null&&pn.shift()}var kr=D.ReactCurrentBatchConfig,ko=!0;function Vh(e,t,n,r){var o=Ee,a=kr.transition;kr.transition=null;try{Ee=1,Hi(e,t,n,r)}finally{Ee=o,kr.transition=a}}function Wh(e,t,n,r){var o=Ee,a=kr.transition;kr.transition=null;try{Ee=4,Hi(e,t,n,r)}finally{Ee=o,kr.transition=a}}function Hi(e,t,n,r){if(ko){var o=Vi(e,t,n,r);if(o===null)al(e,t,r,So,n),Du(e,r);else if(Bh(o,e,t,n,r))r.stopPropagation();else if(Du(e,r),t&4&&-1<$h.indexOf(e)){for(;o!==null;){var a=Ts(o);if(a!==null&&Lu(a),a=Vi(e,t,n,r),a===null&&al(e,t,r,So,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else al(e,t,r,null,n)}}var So=null;function Vi(e,t,n,r){if(So=null,e=Mi(r),e=Wn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Eu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return So=e,null}function Qu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Mh()){case Di:return 1;case Ru:return 4;case po:case Lh:return 16;case Tu:return 536870912;default:return 16}default:return 16}}var mn=null,Wi=null,Co=null;function $u(){if(Co)return Co;var e,t=Wi,n=t.length,r,o="value"in mn?mn.value:mn.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var c=n-e;for(r=1;r<=c&&t[n-r]===o[a-r];r++);return Co=o.slice(e,1<r?1-r:void 0)}function Eo(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 No(){return!0}function Bu(){return!1}function vt(e){function t(n,r,o,a,c){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=c,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(a):a[m]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?No:Bu,this.isPropagationStopped=Bu,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),t}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=vt(Sr),ws=$({},Sr,{view:0,detail:0}),Kh=vt(ws),qi,Gi,ks,jo=$({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,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!==ks&&(ks&&e.type==="mousemove"?(qi=e.screenX-ks.screenX,Gi=e.screenY-ks.screenY):Gi=qi=0,ks=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Gi}}),Hu=vt(jo),qh=$({},jo,{dataTransfer:0}),Gh=vt(qh),Yh=$({},ws,{relatedTarget:0}),Yi=vt(Yh),Xh=$({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),Zh=vt(Xh),Jh=$({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ep=vt(Jh),tp=$({},Sr,{data:0}),Vu=vt(tp),np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rp={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"},sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function op(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sp[e])?!!t[e]:!1}function Xi(){return op}var ip=$({},ws,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lp=vt(ip),ap=$({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wu=vt(ap),up=$({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),cp=vt(up),dp=$({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),fp=vt(dp),hp=$({},jo,{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}),pp=vt(hp),mp=[9,13,27,32],Zi=x&&"CompositionEvent"in window,Ss=null;x&&"documentMode"in document&&(Ss=document.documentMode);var yp=x&&"TextEvent"in window&&!Ss,Ku=x&&(!Zi||Ss&&8<Ss&&11>=Ss),qu=" ",Gu=!1;function Yu(e,t){switch(e){case"keyup":return mp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cr=!1;function gp(e,t){switch(e){case"compositionend":return Xu(t);case"keypress":return t.which!==32?null:(Gu=!0,qu);case"textInput":return e=t.data,e===qu&&Gu?null:e;default:return null}}function vp(e,t){if(Cr)return e==="compositionend"||!Zi&&Yu(e,t)?(e=$u(),Co=Wi=mn=null,Cr=!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 Ku&&t.locale!=="ko"?null:t.data;default:return null}}var xp={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 Zu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xp[e.type]:t==="textarea"}function Ju(e,t,n,r){xu(r),t=To(t,"onChange"),0<t.length&&(n=new Ki("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Cs=null,Es=null;function wp(e){gc(e,0)}function bo(e){var t=_r(e);if(lu(t))return e}function kp(e,t){if(e==="change")return t}var ec=!1;if(x){var Ji;if(x){var el="oninput"in document;if(!el){var tc=document.createElement("div");tc.setAttribute("oninput","return;"),el=typeof tc.oninput=="function"}Ji=el}else Ji=!1;ec=Ji&&(!document.documentMode||9<document.documentMode)}function nc(){Cs&&(Cs.detachEvent("onpropertychange",rc),Es=Cs=null)}function rc(e){if(e.propertyName==="value"&&bo(Es)){var t=[];Ju(t,Es,e,Mi(e)),Cu(wp,t)}}function Sp(e,t,n){e==="focusin"?(nc(),Cs=t,Es=n,Cs.attachEvent("onpropertychange",rc)):e==="focusout"&&nc()}function Cp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bo(Es)}function Ep(e,t){if(e==="click")return bo(t)}function Np(e,t){if(e==="input"||e==="change")return bo(t)}function jp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:jp;function Ns(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!N.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function sc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oc(e,t){var n=sc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sc(n)}}function ic(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ic(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lc(){for(var e=window,t=uo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function tl(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")}function bp(e){var t=lc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ic(n.ownerDocument.documentElement,n)){if(r!==null&&tl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=oc(n,a);var c=oc(n,r);o&&c&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _p=x&&"documentMode"in document&&11>=document.documentMode,Er=null,nl=null,js=null,rl=!1;function ac(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rl||Er==null||Er!==uo(r)||(r=Er,"selectionStart"in r&&tl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Ns(js,r)||(js=r,r=To(nl,"onSelect"),0<r.length&&(t=new Ki("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function _o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nr={animationend:_o("Animation","AnimationEnd"),animationiteration:_o("Animation","AnimationIteration"),animationstart:_o("Animation","AnimationStart"),transitionend:_o("Transition","TransitionEnd")},sl={},uc={};x&&(uc=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Po(e){if(sl[e])return sl[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uc)return sl[e]=t[n];return e}var cc=Po("animationend"),dc=Po("animationiteration"),fc=Po("animationstart"),hc=Po("transitionend"),pc=new Map,mc="abort auxClick 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(" ");function yn(e,t){pc.set(e,t),h(t,[e])}for(var ol=0;ol<mc.length;ol++){var il=mc[ol],Pp=il.toLowerCase(),Rp=il[0].toUpperCase()+il.slice(1);yn(Pp,"on"+Rp)}yn(cc,"onAnimationEnd"),yn(dc,"onAnimationIteration"),yn(fc,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(hc,"onTransitionEnd"),w("onMouseEnter",["mouseout","mouseover"]),w("onMouseLeave",["mouseout","mouseover"]),w("onPointerEnter",["pointerout","pointerover"]),w("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),Tp=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function yc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ph(r,t,void 0,e),e.currentTarget=null}function gc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var c=r.length-1;0<=c;c--){var m=r[c],y=m.instance,C=m.currentTarget;if(m=m.listener,y!==a&&o.isPropagationStopped())break e;yc(o,m,C),a=y}else for(c=0;c<r.length;c++){if(m=r[c],y=m.instance,C=m.currentTarget,m=m.listener,y!==a&&o.isPropagationStopped())break e;yc(o,m,C),a=y}}}if(ho)throw e=Ii,ho=!1,Ii=null,e}function Pe(e,t){var n=t[pl];n===void 0&&(n=t[pl]=new Set);var r=e+"__bubble";n.has(r)||(vc(t,e,2,!1),n.add(r))}function ll(e,t,n){var r=0;t&&(r|=4),vc(n,e,r,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function _s(e){if(!e[Ro]){e[Ro]=!0,u.forEach(function(n){n!=="selectionchange"&&(Tp.has(n)||ll(n,!1,e),ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,ll("selectionchange",!1,t))}}function vc(e,t,n,r){switch(Qu(t)){case 1:var o=Vh;break;case 4:o=Wh;break;default:o=Hi}n=o.bind(null,t,n,e),o=void 0,!Fi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function al(e,t,n,r,o){var a=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var c=r.tag;if(c===3||c===4){var m=r.stateNode.containerInfo;if(m===o||m.nodeType===8&&m.parentNode===o)break;if(c===4)for(c=r.return;c!==null;){var y=c.tag;if((y===3||y===4)&&(y=c.stateNode.containerInfo,y===o||y.nodeType===8&&y.parentNode===o))return;c=c.return}for(;m!==null;){if(c=Wn(m),c===null)return;if(y=c.tag,y===5||y===6){r=a=c;continue e}m=m.parentNode}}r=r.return}Cu(function(){var C=a,_=Mi(n),T=[];e:{var b=pc.get(e);if(b!==void 0){var B=Ki,K=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":B=lp;break;case"focusin":K="focus",B=Yi;break;case"focusout":K="blur",B=Yi;break;case"beforeblur":case"afterblur":B=Yi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Gh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=cp;break;case cc:case dc:case fc:B=Zh;break;case hc:B=fp;break;case"scroll":B=Kh;break;case"wheel":B=pp;break;case"copy":case"cut":case"paste":B=ep;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Wu}var q=(t&4)!==0,$e=!q&&e==="scroll",k=q?b!==null?b+"Capture":null:b;q=[];for(var g=C,S;g!==null;){S=g;var L=S.stateNode;if(S.tag===5&&L!==null&&(S=L,k!==null&&(L=cs(g,k),L!=null&&q.push(Ps(g,L,S)))),$e)break;g=g.return}0<q.length&&(b=new B(b,K,null,n,_),T.push({event:b,listeners:q}))}}if((t&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",b&&n!==Oi&&(K=n.relatedTarget||n.fromElement)&&(Wn(K)||K[Gt]))break e;if((B||b)&&(b=_.window===_?_:(b=_.ownerDocument)?b.defaultView||b.parentWindow:window,B?(K=n.relatedTarget||n.toElement,B=C,K=K?Wn(K):null,K!==null&&($e=Vn(K),K!==$e||K.tag!==5&&K.tag!==6)&&(K=null)):(B=null,K=C),B!==K)){if(q=Hu,L="onMouseLeave",k="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(q=Wu,L="onPointerLeave",k="onPointerEnter",g="pointer"),$e=B==null?b:_r(B),S=K==null?b:_r(K),b=new q(L,g+"leave",B,n,_),b.target=$e,b.relatedTarget=S,L=null,Wn(_)===C&&(q=new q(k,g+"enter",K,n,_),q.target=S,q.relatedTarget=$e,L=q),$e=L,B&&K)t:{for(q=B,k=K,g=0,S=q;S;S=jr(S))g++;for(S=0,L=k;L;L=jr(L))S++;for(;0<g-S;)q=jr(q),g--;for(;0<S-g;)k=jr(k),S--;for(;g--;){if(q===k||k!==null&&q===k.alternate)break t;q=jr(q),k=jr(k)}q=null}else q=null;B!==null&&xc(T,b,B,q,!1),K!==null&&$e!==null&&xc(T,$e,K,q,!0)}}e:{if(b=C?_r(C):window,B=b.nodeName&&b.nodeName.toLowerCase(),B==="select"||B==="input"&&b.type==="file")var G=kp;else if(Zu(b))if(ec)G=Np;else{G=Cp;var ee=Sp}else(B=b.nodeName)&&B.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")&&(G=Ep);if(G&&(G=G(e,C))){Ju(T,G,n,_);break e}ee&&ee(e,b,C),e==="focusout"&&(ee=b._wrapperState)&&ee.controlled&&b.type==="number"&&bi(b,"number",b.value)}switch(ee=C?_r(C):window,e){case"focusin":(Zu(ee)||ee.contentEditable==="true")&&(Er=ee,nl=C,js=null);break;case"focusout":js=nl=Er=null;break;case"mousedown":rl=!0;break;case"contextmenu":case"mouseup":case"dragend":rl=!1,ac(T,n,_);break;case"selectionchange":if(_p)break;case"keydown":case"keyup":ac(T,n,_)}var te;if(Zi)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Cr?Yu(e,n)&&(le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(le="onCompositionStart");le&&(Ku&&n.locale!=="ko"&&(Cr||le!=="onCompositionStart"?le==="onCompositionEnd"&&Cr&&(te=$u()):(mn=_,Wi="value"in mn?mn.value:mn.textContent,Cr=!0)),ee=To(C,le),0<ee.length&&(le=new Vu(le,e,null,n,_),T.push({event:le,listeners:ee}),te?le.data=te:(te=Xu(n),te!==null&&(le.data=te)))),(te=yp?gp(e,n):vp(e,n))&&(C=To(C,"onBeforeInput"),0<C.length&&(_=new Vu("onBeforeInput","beforeinput",null,n,_),T.push({event:_,listeners:C}),_.data=te))}gc(T,t)})}function Ps(e,t,n){return{instance:e,listener:t,currentTarget:n}}function To(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=cs(e,n),a!=null&&r.unshift(Ps(e,a,o)),a=cs(e,t),a!=null&&r.push(Ps(e,a,o))),e=e.return}return r}function jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xc(e,t,n,r,o){for(var a=t._reactName,c=[];n!==null&&n!==r;){var m=n,y=m.alternate,C=m.stateNode;if(y!==null&&y===r)break;m.tag===5&&C!==null&&(m=C,o?(y=cs(n,a),y!=null&&c.unshift(Ps(n,y,m))):o||(y=cs(n,a),y!=null&&c.push(Ps(n,y,m)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var Op=/\r\n?/g,Mp=/\u0000|\uFFFD/g;function wc(e){return(typeof e=="string"?e:""+e).replace(Op,`
|
|
38
|
+
`).replace(Mp,"")}function Oo(e,t,n){if(t=wc(t),wc(e)!==t&&n)throw Error(l(425))}function Mo(){}var ul=null,cl=null;function dl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fl=typeof setTimeout=="function"?setTimeout:void 0,Lp=typeof clearTimeout=="function"?clearTimeout:void 0,kc=typeof Promise=="function"?Promise:void 0,zp=typeof queueMicrotask=="function"?queueMicrotask:typeof kc<"u"?function(e){return kc.resolve(null).then(e).catch(Fp)}:fl;function Fp(e){setTimeout(function(){throw e})}function hl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);xs(t)}function gn(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==="$?")break;if(t==="/$")return null}}return e}function Sc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var br=Math.random().toString(36).slice(2),$t="__reactFiber$"+br,Rs="__reactProps$"+br,Gt="__reactContainer$"+br,pl="__reactEvents$"+br,Ip="__reactListeners$"+br,Dp="__reactHandles$"+br;function Wn(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gt]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sc(e);e!==null;){if(n=e[$t])return n;e=Sc(e)}return t}e=n,n=e.parentNode}return null}function Ts(e){return e=e[$t]||e[Gt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _r(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(l(33))}function Lo(e){return e[Rs]||null}var ml=[],Pr=-1;function vn(e){return{current:e}}function Re(e){0>Pr||(e.current=ml[Pr],ml[Pr]=null,Pr--)}function _e(e,t){Pr++,ml[Pr]=e.current,e.current=t}var xn={},Je=vn(xn),at=vn(!1),Kn=xn;function Rr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function zo(){Re(at),Re(Je)}function Cc(e,t,n){if(Je.current!==xn)throw Error(l(168));_e(Je,t),_e(at,n)}function Ec(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(l(108,be(e)||"Unknown",o));return $({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Kn=Je.current,_e(Je,e),_e(at,at.current),!0}function Nc(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=Ec(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,Re(at),Re(Je),_e(Je,e)):Re(at),_e(at,n)}var Yt=null,Io=!1,yl=!1;function jc(e){Yt===null?Yt=[e]:Yt.push(e)}function Ap(e){Io=!0,jc(e)}function wn(){if(!yl&&Yt!==null){yl=!0;var e=0,t=Ee;try{var n=Yt;for(Ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,Io=!1}catch(o){throw Yt!==null&&(Yt=Yt.slice(e+1)),_u(Di,wn),o}finally{Ee=t,yl=!1}}return null}var Tr=[],Or=0,Do=null,Ao=0,jt=[],bt=0,qn=null,Xt=1,Zt="";function Gn(e,t){Tr[Or++]=Ao,Tr[Or++]=Do,Do=e,Ao=t}function bc(e,t,n){jt[bt++]=Xt,jt[bt++]=Zt,jt[bt++]=qn,qn=e;var r=Xt;e=Zt;var o=32-Mt(r)-1;r&=~(1<<o),n+=1;var a=32-Mt(t)+o;if(30<a){var c=o-o%5;a=(r&(1<<c)-1).toString(32),r>>=c,o-=c,Xt=1<<32-Mt(t)+o|n<<o|r,Zt=a+e}else Xt=1<<a|n<<o|r,Zt=e}function gl(e){e.return!==null&&(Gn(e,1),bc(e,1,0))}function vl(e){for(;e===Do;)Do=Tr[--Or],Tr[Or]=null,Ao=Tr[--Or],Tr[Or]=null;for(;e===qn;)qn=jt[--bt],jt[bt]=null,Zt=jt[--bt],jt[bt]=null,Xt=jt[--bt],jt[bt]=null}var xt=null,wt=null,Me=!1,zt=null;function _c(e,t){var n=Tt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Pc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,wt=gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qn!==null?{id:Xt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,wt=null,!0):!1;default:return!1}}function xl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Me){var t=wt;if(t){var n=t;if(!Pc(e,t)){if(xl(e))throw Error(l(418));t=gn(n.nextSibling);var r=xt;t&&Pc(e,t)?_c(r,n):(e.flags=e.flags&-4097|2,Me=!1,xt=e)}}else{if(xl(e))throw Error(l(418));e.flags=e.flags&-4097|2,Me=!1,xt=e}}}function Rc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function Uo(e){if(e!==xt)return!1;if(!Me)return Rc(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dl(e.type,e.memoizedProps)),t&&(t=wt)){if(xl(e))throw Tc(),Error(l(418));for(;t;)_c(e,t),t=gn(t.nextSibling)}if(Rc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=xt?gn(e.stateNode.nextSibling):null;return!0}function Tc(){for(var e=wt;e;)e=gn(e.nextSibling)}function Mr(){wt=xt=null,Me=!1}function kl(e){zt===null?zt=[e]:zt.push(e)}var Up=D.ReactCurrentBatchConfig;function Os(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(l(309));var r=n.stateNode}if(!r)throw Error(l(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(c){var m=o.refs;c===null?delete m[a]:m[a]=c},t._stringRef=a,t)}if(typeof e!="string")throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function Qo(e,t){throw e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Oc(e){var t=e._init;return t(e._payload)}function Mc(e){function t(k,g){if(e){var S=k.deletions;S===null?(k.deletions=[g],k.flags|=16):S.push(g)}}function n(k,g){if(!e)return null;for(;g!==null;)t(k,g),g=g.sibling;return null}function r(k,g){for(k=new Map;g!==null;)g.key!==null?k.set(g.key,g):k.set(g.index,g),g=g.sibling;return k}function o(k,g){return k=_n(k,g),k.index=0,k.sibling=null,k}function a(k,g,S){return k.index=S,e?(S=k.alternate,S!==null?(S=S.index,S<g?(k.flags|=2,g):S):(k.flags|=2,g)):(k.flags|=1048576,g)}function c(k){return e&&k.alternate===null&&(k.flags|=2),k}function m(k,g,S,L){return g===null||g.tag!==6?(g=fa(S,k.mode,L),g.return=k,g):(g=o(g,S),g.return=k,g)}function y(k,g,S,L){var G=S.type;return G===pe?_(k,g,S.props.children,L,S.key):g!==null&&(g.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Ue&&Oc(G)===g.type)?(L=o(g,S.props),L.ref=Os(k,g,S),L.return=k,L):(L=di(S.type,S.key,S.props,null,k.mode,L),L.ref=Os(k,g,S),L.return=k,L)}function C(k,g,S,L){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=ha(S,k.mode,L),g.return=k,g):(g=o(g,S.children||[]),g.return=k,g)}function _(k,g,S,L,G){return g===null||g.tag!==7?(g=rr(S,k.mode,L,G),g.return=k,g):(g=o(g,S),g.return=k,g)}function T(k,g,S){if(typeof g=="string"&&g!==""||typeof g=="number")return g=fa(""+g,k.mode,S),g.return=k,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ie:return S=di(g.type,g.key,g.props,null,k.mode,S),S.ref=Os(k,null,g),S.return=k,S;case he:return g=ha(g,k.mode,S),g.return=k,g;case Ue:var L=g._init;return T(k,L(g._payload),S)}if(ls(g)||Y(g))return g=rr(g,k.mode,S,null),g.return=k,g;Qo(k,g)}return null}function b(k,g,S,L){var G=g!==null?g.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return G!==null?null:m(k,g,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ie:return S.key===G?y(k,g,S,L):null;case he:return S.key===G?C(k,g,S,L):null;case Ue:return G=S._init,b(k,g,G(S._payload),L)}if(ls(S)||Y(S))return G!==null?null:_(k,g,S,L,null);Qo(k,S)}return null}function B(k,g,S,L,G){if(typeof L=="string"&&L!==""||typeof L=="number")return k=k.get(S)||null,m(g,k,""+L,G);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case ie:return k=k.get(L.key===null?S:L.key)||null,y(g,k,L,G);case he:return k=k.get(L.key===null?S:L.key)||null,C(g,k,L,G);case Ue:var ee=L._init;return B(k,g,S,ee(L._payload),G)}if(ls(L)||Y(L))return k=k.get(S)||null,_(g,k,L,G,null);Qo(g,L)}return null}function K(k,g,S,L){for(var G=null,ee=null,te=g,le=g=0,Ge=null;te!==null&&le<S.length;le++){te.index>le?(Ge=te,te=null):Ge=te.sibling;var we=b(k,te,S[le],L);if(we===null){te===null&&(te=Ge);break}e&&te&&we.alternate===null&&t(k,te),g=a(we,g,le),ee===null?G=we:ee.sibling=we,ee=we,te=Ge}if(le===S.length)return n(k,te),Me&&Gn(k,le),G;if(te===null){for(;le<S.length;le++)te=T(k,S[le],L),te!==null&&(g=a(te,g,le),ee===null?G=te:ee.sibling=te,ee=te);return Me&&Gn(k,le),G}for(te=r(k,te);le<S.length;le++)Ge=B(te,k,le,S[le],L),Ge!==null&&(e&&Ge.alternate!==null&&te.delete(Ge.key===null?le:Ge.key),g=a(Ge,g,le),ee===null?G=Ge:ee.sibling=Ge,ee=Ge);return e&&te.forEach(function(Pn){return t(k,Pn)}),Me&&Gn(k,le),G}function q(k,g,S,L){var G=Y(S);if(typeof G!="function")throw Error(l(150));if(S=G.call(S),S==null)throw Error(l(151));for(var ee=G=null,te=g,le=g=0,Ge=null,we=S.next();te!==null&&!we.done;le++,we=S.next()){te.index>le?(Ge=te,te=null):Ge=te.sibling;var Pn=b(k,te,we.value,L);if(Pn===null){te===null&&(te=Ge);break}e&&te&&Pn.alternate===null&&t(k,te),g=a(Pn,g,le),ee===null?G=Pn:ee.sibling=Pn,ee=Pn,te=Ge}if(we.done)return n(k,te),Me&&Gn(k,le),G;if(te===null){for(;!we.done;le++,we=S.next())we=T(k,we.value,L),we!==null&&(g=a(we,g,le),ee===null?G=we:ee.sibling=we,ee=we);return Me&&Gn(k,le),G}for(te=r(k,te);!we.done;le++,we=S.next())we=B(te,k,le,we.value,L),we!==null&&(e&&we.alternate!==null&&te.delete(we.key===null?le:we.key),g=a(we,g,le),ee===null?G=we:ee.sibling=we,ee=we);return e&&te.forEach(function(xm){return t(k,xm)}),Me&&Gn(k,le),G}function $e(k,g,S,L){if(typeof S=="object"&&S!==null&&S.type===pe&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ie:e:{for(var G=S.key,ee=g;ee!==null;){if(ee.key===G){if(G=S.type,G===pe){if(ee.tag===7){n(k,ee.sibling),g=o(ee,S.props.children),g.return=k,k=g;break e}}else if(ee.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Ue&&Oc(G)===ee.type){n(k,ee.sibling),g=o(ee,S.props),g.ref=Os(k,ee,S),g.return=k,k=g;break e}n(k,ee);break}else t(k,ee);ee=ee.sibling}S.type===pe?(g=rr(S.props.children,k.mode,L,S.key),g.return=k,k=g):(L=di(S.type,S.key,S.props,null,k.mode,L),L.ref=Os(k,g,S),L.return=k,k=L)}return c(k);case he:e:{for(ee=S.key;g!==null;){if(g.key===ee)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(k,g.sibling),g=o(g,S.children||[]),g.return=k,k=g;break e}else{n(k,g);break}else t(k,g);g=g.sibling}g=ha(S,k.mode,L),g.return=k,k=g}return c(k);case Ue:return ee=S._init,$e(k,g,ee(S._payload),L)}if(ls(S))return K(k,g,S,L);if(Y(S))return q(k,g,S,L);Qo(k,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(k,g.sibling),g=o(g,S),g.return=k,k=g):(n(k,g),g=fa(S,k.mode,L),g.return=k,k=g),c(k)):n(k,g)}return $e}var Lr=Mc(!0),Lc=Mc(!1),$o=vn(null),Bo=null,zr=null,Sl=null;function Cl(){Sl=zr=Bo=null}function El(e){var t=$o.current;Re($o),e._currentValue=t}function Nl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fr(e,t){Bo=e,Sl=zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ct=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:t,next:null},zr===null){if(Bo===null)throw Error(l(308));zr=e,Bo.dependencies={lanes:0,firstContext:e}}else zr=zr.next=e;return t}var Yn=null;function jl(e){Yn===null?Yn=[e]:Yn.push(e)}function zc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,jl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var kn=!1;function bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(xe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Jt(e,n)}return o=r.interleaved,o===null?(t.next=t,jl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jt(e,n)}function Ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qi(e,n)}}function Ic(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=c:a=a.next=c,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var o=e.updateQueue;kn=!1;var a=o.firstBaseUpdate,c=o.lastBaseUpdate,m=o.shared.pending;if(m!==null){o.shared.pending=null;var y=m,C=y.next;y.next=null,c===null?a=C:c.next=C,c=y;var _=e.alternate;_!==null&&(_=_.updateQueue,m=_.lastBaseUpdate,m!==c&&(m===null?_.firstBaseUpdate=C:m.next=C,_.lastBaseUpdate=y))}if(a!==null){var T=o.baseState;c=0,_=C=y=null,m=a;do{var b=m.lane,B=m.eventTime;if((r&b)===b){_!==null&&(_=_.next={eventTime:B,lane:0,tag:m.tag,payload:m.payload,callback:m.callback,next:null});e:{var K=e,q=m;switch(b=t,B=n,q.tag){case 1:if(K=q.payload,typeof K=="function"){T=K.call(B,T,b);break e}T=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=q.payload,b=typeof K=="function"?K.call(B,T,b):K,b==null)break e;T=$({},T,b);break e;case 2:kn=!0}}m.callback!==null&&m.lane!==0&&(e.flags|=64,b=o.effects,b===null?o.effects=[m]:b.push(m))}else B={eventTime:B,lane:b,tag:m.tag,payload:m.payload,callback:m.callback,next:null},_===null?(C=_=B,y=T):_=_.next=B,c|=b;if(m=m.next,m===null){if(m=o.shared.pending,m===null)break;b=m,m=b.next,b.next=null,o.lastBaseUpdate=b,o.shared.pending=null}}while(!0);if(_===null&&(y=T),o.baseState=y,o.firstBaseUpdate=C,o.lastBaseUpdate=_,t=o.shared.interleaved,t!==null){o=t;do c|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Jn|=c,e.lanes=c,e.memoizedState=T}}function Dc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(l(191,o));o.call(r)}}}var Ms={},Bt=vn(Ms),Ls=vn(Ms),zs=vn(Ms);function Xn(e){if(e===Ms)throw Error(l(174));return e}function _l(e,t){switch(_e(zs,t),_e(Ls,e),_e(Bt,Ms),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pi(t,e)}Re(Bt),_e(Bt,t)}function Ir(){Re(Bt),Re(Ls),Re(zs)}function Ac(e){Xn(zs.current);var t=Xn(Bt.current),n=Pi(t,e.type);t!==n&&(_e(Ls,e),_e(Bt,n))}function Pl(e){Ls.current===e&&(Re(Bt),Re(Ls))}var ze=vn(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Rl=[];function Tl(){for(var e=0;e<Rl.length;e++)Rl[e]._workInProgressVersionPrimary=null;Rl.length=0}var Ko=D.ReactCurrentDispatcher,Ol=D.ReactCurrentBatchConfig,Zn=0,Fe=null,He=null,Ke=null,qo=!1,Fs=!1,Is=0,Qp=0;function et(){throw Error(l(321))}function Ml(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function Ll(e,t,n,r,o,a){if(Zn=a,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=e===null||e.memoizedState===null?Vp:Wp,e=n(r,o),Fs){a=0;do{if(Fs=!1,Is=0,25<=a)throw Error(l(301));a+=1,Ke=He=null,t.updateQueue=null,Ko.current=Kp,e=n(r,o)}while(Fs)}if(Ko.current=Xo,t=He!==null&&He.next!==null,Zn=0,Ke=He=Fe=null,qo=!1,t)throw Error(l(300));return e}function zl(){var e=Is!==0;return Is=0,e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Fe.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Pt(){if(He===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Ke===null?Fe.memoizedState:Ke.next;if(t!==null)Ke=t,He=e;else{if(e===null)throw Error(l(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ke===null?Fe.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Ds(e,t){return typeof t=="function"?t(e):t}function Fl(e){var t=Pt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var r=He,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var c=o.next;o.next=a.next,a.next=c}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var m=c=null,y=null,C=a;do{var _=C.lane;if((Zn&_)===_)y!==null&&(y=y.next={lane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),r=C.hasEagerState?C.eagerState:e(r,C.action);else{var T={lane:_,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null};y===null?(m=y=T,c=r):y=y.next=T,Fe.lanes|=_,Jn|=_}C=C.next}while(C!==null&&C!==a);y===null?c=r:y.next=m,Lt(r,t.memoizedState)||(ct=!0),t.memoizedState=r,t.baseState=c,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,Fe.lanes|=a,Jn|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Il(e){var t=Pt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var c=o=o.next;do a=e(a,c.action),c=c.next;while(c!==o);Lt(a,t.memoizedState)||(ct=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Uc(){}function Qc(e,t){var n=Fe,r=Pt(),o=t(),a=!Lt(r.memoizedState,o);if(a&&(r.memoizedState=o,ct=!0),r=r.queue,Dl(Hc.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,As(9,Bc.bind(null,n,r,o,t),void 0,null),qe===null)throw Error(l(349));(Zn&30)!==0||$c(n,t,o)}return o}function $c(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bc(e,t,n,r){t.value=n,t.getSnapshot=r,Vc(t)&&Wc(e)}function Hc(e,t,n){return n(function(){Vc(t)&&Wc(e)})}function Vc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function Wc(e){var t=Jt(e,1);t!==null&&At(t,e,1,-1)}function Kc(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:e},t.queue=e,e=e.dispatch=Hp.bind(null,Fe,e),[t.memoizedState,e]}function As(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qc(){return Pt().memoizedState}function Go(e,t,n,r){var o=Ht();Fe.flags|=e,o.memoizedState=As(1|t,n,void 0,r===void 0?null:r)}function Yo(e,t,n,r){var o=Pt();r=r===void 0?null:r;var a=void 0;if(He!==null){var c=He.memoizedState;if(a=c.destroy,r!==null&&Ml(r,c.deps)){o.memoizedState=As(t,n,a,r);return}}Fe.flags|=e,o.memoizedState=As(1|t,n,a,r)}function Gc(e,t){return Go(8390656,8,e,t)}function Dl(e,t){return Yo(2048,8,e,t)}function Yc(e,t){return Yo(4,2,e,t)}function Xc(e,t){return Yo(4,4,e,t)}function Zc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jc(e,t,n){return n=n!=null?n.concat([e]):null,Yo(4,4,Zc.bind(null,t,e),n)}function Al(){}function ed(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ml(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function td(e,t){var n=Pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ml(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nd(e,t,n){return(Zn&21)===0?(e.baseState&&(e.baseState=!1,ct=!0),e.memoizedState=n):(Lt(n,t)||(n=Ou(),Fe.lanes|=n,Jn|=n,e.baseState=!0),t)}function $p(e,t){var n=Ee;Ee=n!==0&&4>n?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{Ee=n,Ol.transition=r}}function rd(){return Pt().memoizedState}function Bp(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))od(t,n);else if(n=zc(e,t,n,r),n!==null){var o=it();At(n,e,r,o),id(n,t,r)}}function Hp(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))od(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var c=t.lastRenderedState,m=a(c,n);if(o.hasEagerState=!0,o.eagerState=m,Lt(m,c)){var y=t.interleaved;y===null?(o.next=o,jl(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}n=zc(e,t,o,r),n!==null&&(o=it(),At(n,e,r,o),id(n,t,r))}}function sd(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function od(e,t){Fs=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function id(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qi(e,n)}}var Xo={readContext:_t,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},Vp={readContext:_t,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Go(4194308,4,Zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bp.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Kc,useDebugValue:Al,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Kc(!1),t=e[0];return e=$p.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=Ht();if(Me){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),qe===null)throw Error(l(349));(Zn&30)!==0||$c(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Gc(Hc.bind(null,r,a,e),[e]),r.flags|=2048,As(9,Bc.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ht(),t=qe.identifierPrefix;if(Me){var n=Zt,r=Xt;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Is++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Wp={readContext:_t,useCallback:ed,useContext:_t,useEffect:Dl,useImperativeHandle:Jc,useInsertionEffect:Yc,useLayoutEffect:Xc,useMemo:td,useReducer:Fl,useRef:qc,useState:function(){return Fl(Ds)},useDebugValue:Al,useDeferredValue:function(e){var t=Pt();return nd(t,He.memoizedState,e)},useTransition:function(){var e=Fl(Ds)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Uc,useSyncExternalStore:Qc,useId:rd,unstable_isNewReconciler:!1},Kp={readContext:_t,useCallback:ed,useContext:_t,useEffect:Dl,useImperativeHandle:Jc,useInsertionEffect:Yc,useLayoutEffect:Xc,useMemo:td,useReducer:Il,useRef:qc,useState:function(){return Il(Ds)},useDebugValue:Al,useDeferredValue:function(e){var t=Pt();return He===null?t.memoizedState=e:nd(t,He.memoizedState,e)},useTransition:function(){var e=Il(Ds)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Uc,useSyncExternalStore:Qc,useId:rd,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=$({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ul(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zo={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=jn(e),a=en(r,o);a.payload=t,n!=null&&(a.callback=n),t=Sn(e,a,o),t!==null&&(At(t,e,o,r),Ho(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=jn(e),a=en(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Sn(e,a,o),t!==null&&(At(t,e,o,r),Ho(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=jn(e),o=en(n,r);o.tag=2,t!=null&&(o.callback=t),t=Sn(e,o,r),t!==null&&(At(t,e,r,n),Ho(t,e,r))}};function ld(e,t,n,r,o,a,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,c):t.prototype&&t.prototype.isPureReactComponent?!Ns(n,r)||!Ns(o,a):!0}function ad(e,t,n){var r=!1,o=xn,a=t.contextType;return typeof a=="object"&&a!==null?a=_t(a):(o=ut(t)?Kn:Je.current,r=t.contextTypes,a=(r=r!=null)?Rr(e,o):xn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ud(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zo.enqueueReplaceState(t,t.state,null)}function Ql(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},bl(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=_t(a):(a=ut(t)?Kn:Je.current,o.context=Rr(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Ul(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Zo.enqueueReplaceState(o,o.state,null),Vo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Dr(e,t){try{var n="",r=t;do n+=ue(r),r=r.return;while(r);var o=n}catch(a){o=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function $l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qp=typeof WeakMap=="function"?WeakMap:Map;function cd(e,t,n){n=en(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oi||(oi=!0,sa=r),Bl(e,t)},n}function dd(e,t,n){n=en(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bl(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Bl(e,t),typeof r!="function"&&(En===null?En=new Set([this]):En.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}function fd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qp;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=am.bind(null,e,t,n),t.then(e,e))}function hd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pd(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=en(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Gp=D.ReactCurrentOwner,ct=!1;function ot(e,t,n,r){t.child=e===null?Lc(t,null,n,r):Lr(t,e.child,n,r)}function md(e,t,n,r,o){n=n.render;var a=t.ref;return Fr(t,o),r=Ll(e,t,n,r,a,o),n=zl(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(Me&&n&&gl(t),t.flags|=1,ot(e,t,r,o),t.child)}function yd(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!da(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,gd(e,t,a,r,o)):(e=di(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&o)===0){var c=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ns,n(c,r)&&e.ref===t.ref)return tn(e,t,o)}return t.flags|=1,e=_n(a,r),e.ref=t.ref,e.return=t,t.child=e}function gd(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(Ns(a,r)&&e.ref===t.ref)if(ct=!1,t.pendingProps=r=a,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,tn(e,t,o)}return Hl(e,t,n,r,o)}function vd(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Ur,kt),kt|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(Ur,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,_e(Ur,kt),kt|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,_e(Ur,kt),kt|=r;return ot(e,t,o,n),t.child}function xd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hl(e,t,n,r,o){var a=ut(n)?Kn:Je.current;return a=Rr(t,a),Fr(t,o),n=Ll(e,t,n,r,a,o),r=zl(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,tn(e,t,o)):(Me&&r&&gl(t),t.flags|=1,ot(e,t,n,o),t.child)}function wd(e,t,n,r,o){if(ut(n)){var a=!0;Fo(t)}else a=!1;if(Fr(t,o),t.stateNode===null)ei(e,t),ad(t,n,r),Ql(t,n,r,o),r=!0;else if(e===null){var c=t.stateNode,m=t.memoizedProps;c.props=m;var y=c.context,C=n.contextType;typeof C=="object"&&C!==null?C=_t(C):(C=ut(n)?Kn:Je.current,C=Rr(t,C));var _=n.getDerivedStateFromProps,T=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function";T||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==r||y!==C)&&ud(t,c,r,C),kn=!1;var b=t.memoizedState;c.state=b,Vo(t,r,c,o),y=t.memoizedState,m!==r||b!==y||at.current||kn?(typeof _=="function"&&(Ul(t,n,_,r),y=t.memoizedState),(m=kn||ld(t,n,m,r,b,y,C))?(T||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=y),c.props=r,c.state=y,c.context=C,r=m):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Fc(e,t),m=t.memoizedProps,C=t.type===t.elementType?m:Ft(t.type,m),c.props=C,T=t.pendingProps,b=c.context,y=n.contextType,typeof y=="object"&&y!==null?y=_t(y):(y=ut(n)?Kn:Je.current,y=Rr(t,y));var B=n.getDerivedStateFromProps;(_=typeof B=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==T||b!==y)&&ud(t,c,r,y),kn=!1,b=t.memoizedState,c.state=b,Vo(t,r,c,o);var K=t.memoizedState;m!==T||b!==K||at.current||kn?(typeof B=="function"&&(Ul(t,n,B,r),K=t.memoizedState),(C=kn||ld(t,n,C,r,b,K,y)||!1)?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,K,y),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,K,y)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=K),c.props=r,c.state=K,c.context=y,r=C):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),r=!1)}return Vl(e,t,n,r,a,o)}function Vl(e,t,n,r,o,a){xd(e,t);var c=(t.flags&128)!==0;if(!r&&!c)return o&&Nc(t,n,!1),tn(e,t,a);r=t.stateNode,Gp.current=t;var m=c&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&c?(t.child=Lr(t,e.child,null,a),t.child=Lr(t,null,m,a)):ot(e,t,m,a),t.memoizedState=r.state,o&&Nc(t,n,!0),t.child}function kd(e){var t=e.stateNode;t.pendingContext?Cc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cc(e,t.context,!1),_l(e,t.containerInfo)}function Sd(e,t,n,r,o){return Mr(),kl(o),t.flags|=256,ot(e,t,n,r),t.child}var Wl={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cd(e,t,n){var r=t.pendingProps,o=ze.current,a=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(o&2)!==0),m?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),_e(ze,o&1),e===null)return wl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,a?(r=t.mode,a=t.child,c={mode:"hidden",children:c},(r&1)===0&&a!==null?(a.childLanes=0,a.pendingProps=c):a=fi(c,r,0,null),e=rr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Kl(n),t.memoizedState=Wl,e):ql(t,c));if(o=e.memoizedState,o!==null&&(m=o.dehydrated,m!==null))return Yp(e,t,c,r,m,o,n);if(a){a=r.fallback,c=t.mode,o=e.child,m=o.sibling;var y={mode:"hidden",children:r.children};return(c&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=_n(o,y),r.subtreeFlags=o.subtreeFlags&14680064),m!==null?a=_n(m,a):(a=rr(a,c,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,c=e.child.memoizedState,c=c===null?Kl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},a.memoizedState=c,a.childLanes=e.childLanes&~n,t.memoizedState=Wl,r}return a=e.child,e=a.sibling,r=_n(a,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ql(e,t){return t=fi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Jo(e,t,n,r){return r!==null&&kl(r),Lr(t,e.child,null,n),e=ql(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yp(e,t,n,r,o,a,c){if(n)return t.flags&256?(t.flags&=-257,r=$l(Error(l(422))),Jo(e,t,c,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=fi({mode:"visible",children:r.children},o,0,null),a=rr(a,o,c,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,(t.mode&1)!==0&&Lr(t,e.child,null,c),t.child.memoizedState=Kl(c),t.memoizedState=Wl,a);if((t.mode&1)===0)return Jo(e,t,c,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var m=r.dgst;return r=m,a=Error(l(419)),r=$l(a,r,void 0),Jo(e,t,c,r)}if(m=(c&e.childLanes)!==0,ct||m){if(r=qe,r!==null){switch(c&-c){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|c))!==0?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Jt(e,o),At(r,e,o,-1))}return ca(),r=$l(Error(l(421))),Jo(e,t,c,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=um.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,wt=gn(o.nextSibling),xt=t,Me=!0,zt=null,e!==null&&(jt[bt++]=Xt,jt[bt++]=Zt,jt[bt++]=qn,Xt=e.id,Zt=e.overflow,qn=t),t=ql(t,r.children),t.flags|=4096,t)}function Ed(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nl(e.return,t,n)}function Gl(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Nd(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ot(e,t,r.children,n),r=ze.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ed(e,n,t);else if(e.tag===19)Ed(e,n,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}r&=1}if(_e(ze,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Gl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Wo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Gl(t,!0,n,null,a);break;case"together":Gl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ei(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xp(e,t,n){switch(t.tag){case 3:kd(t),Mr();break;case 5:Ac(t);break;case 1:ut(t.type)&&Fo(t);break;case 4:_l(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_e($o,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(ze,ze.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Cd(e,t,n):(_e(ze,ze.current&1),e=tn(e,t,n),e!==null?e.sibling:null);_e(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Nd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_e(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,vd(e,t,n)}return tn(e,t,n)}var jd,Yl,bd,_d;jd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Yl=function(){},bd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xn(Bt.current);var a=null;switch(n){case"input":o=Ni(e,o),r=Ni(e,r),a=[];break;case"select":o=$({},o,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":o=_i(e,o),r=_i(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mo)}Ri(n,r);var c;n=null;for(C in o)if(!r.hasOwnProperty(C)&&o.hasOwnProperty(C)&&o[C]!=null)if(C==="style"){var m=o[C];for(c in m)m.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else C!=="dangerouslySetInnerHTML"&&C!=="children"&&C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(d.hasOwnProperty(C)?a||(a=[]):(a=a||[]).push(C,null));for(C in r){var y=r[C];if(m=o!=null?o[C]:void 0,r.hasOwnProperty(C)&&y!==m&&(y!=null||m!=null))if(C==="style")if(m){for(c in m)!m.hasOwnProperty(c)||y&&y.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in y)y.hasOwnProperty(c)&&m[c]!==y[c]&&(n||(n={}),n[c]=y[c])}else n||(a||(a=[]),a.push(C,n)),n=y;else C==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,m=m?m.__html:void 0,y!=null&&m!==y&&(a=a||[]).push(C,y)):C==="children"?typeof y!="string"&&typeof y!="number"||(a=a||[]).push(C,""+y):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&(d.hasOwnProperty(C)?(y!=null&&C==="onScroll"&&Pe("scroll",e),a||m===y||(a=[])):(a=a||[]).push(C,y))}n&&(a=a||[]).push("style",n);var C=a;(t.updateQueue=C)&&(t.flags|=4)}},_d=function(e,t,n,r){n!==r&&(t.flags|=4)};function Us(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zp(e,t,n){var r=t.pendingProps;switch(vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return ut(t.type)&&zo(),tt(t),null;case 3:return r=t.stateNode,Ir(),Re(at),Re(Je),Tl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Uo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zt!==null&&(la(zt),zt=null))),Yl(e,t),tt(t),null;case 5:Pl(t);var o=Xn(zs.current);if(n=t.type,e!==null&&t.stateNode!=null)bd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(l(166));return tt(t),null}if(e=Xn(Bt.current),Uo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[$t]=t,r[Rs]=a,e=(t.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(o=0;o<bs.length;o++)Pe(bs[o],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":au(r,a),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Pe("invalid",r);break;case"textarea":du(r,a),Pe("invalid",r)}Ri(n,a),o=null;for(var c in a)if(a.hasOwnProperty(c)){var m=a[c];c==="children"?typeof m=="string"?r.textContent!==m&&(a.suppressHydrationWarning!==!0&&Oo(r.textContent,m,e),o=["children",m]):typeof m=="number"&&r.textContent!==""+m&&(a.suppressHydrationWarning!==!0&&Oo(r.textContent,m,e),o=["children",""+m]):d.hasOwnProperty(c)&&m!=null&&c==="onScroll"&&Pe("scroll",r)}switch(n){case"input":ao(r),cu(r,a,!0);break;case"textarea":ao(r),hu(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Mo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[$t]=t,e[Rs]=r,jd(e,t,!1,!1),t.stateNode=e;e:{switch(c=Ti(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),o=r;break;case"iframe":case"object":case"embed":Pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<bs.length;o++)Pe(bs[o],e);o=r;break;case"source":Pe("error",e),o=r;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),o=r;break;case"details":Pe("toggle",e),o=r;break;case"input":au(e,r),o=Ni(e,r),Pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$({},r,{value:void 0}),Pe("invalid",e);break;case"textarea":du(e,r),o=_i(e,r),Pe("invalid",e);break;default:o=r}Ri(n,o),m=o;for(a in m)if(m.hasOwnProperty(a)){var y=m[a];a==="style"?gu(e,y):a==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&mu(e,y)):a==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&as(e,y):typeof y=="number"&&as(e,""+y):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(d.hasOwnProperty(a)?y!=null&&a==="onScroll"&&Pe("scroll",e):y!=null&&oe(e,a,y,c))}switch(n){case"input":ao(e),cu(e,r,!1);break;case"textarea":ao(e),hu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ce(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?vr(e,!!r.multiple,a,!1):r.defaultValue!=null&&vr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Mo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)_d(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(n=Xn(zs.current),Xn(Bt.current),Uo(t)){if(r=t.stateNode,n=t.memoizedProps,r[$t]=t,(a=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:Oo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oo(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$t]=t,t.stateNode=r}return tt(t),null;case 13:if(Re(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&wt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Tc(),Mr(),t.flags|=98560,a=!1;else if(a=Uo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(l(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(l(317));a[$t]=t}else Mr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),a=!1}else zt!==null&&(la(zt),zt=null),a=!0;if(!a)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ze.current&1)!==0?Ve===0&&(Ve=3):ca())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return Ir(),Yl(e,t),e===null&&_s(t.stateNode.containerInfo),tt(t),null;case 10:return El(t.type._context),tt(t),null;case 17:return ut(t.type)&&zo(),tt(t),null;case 19:if(Re(ze),a=t.memoizedState,a===null)return tt(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)Us(a,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Wo(e),c!==null){for(t.flags|=128,Us(a,!1),r=c.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,c=a.alternate,c===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(ze,ze.current&1|2),t.child}e=e.sibling}a.tail!==null&&Qe()>Qr&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Us(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Me)return tt(t),null}else 2*Qe()-a.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(n=a.last,n!==null?n.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ze.current,_e(ze,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return ua(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kt&1073741824)!==0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}function Jp(e,t){switch(vl(t),t.tag){case 1:return ut(t.type)&&zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ir(),Re(at),Re(Je),Tl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Pl(t),null;case 13:if(Re(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(ze),null;case 4:return Ir(),null;case 10:return El(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var ti=!1,nt=!1,em=typeof WeakSet=="function"?WeakSet:Set,W=null;function Ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Xl(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var Pd=!1;function tm(e,t){if(ul=ko,e=lc(),tl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var c=0,m=-1,y=-1,C=0,_=0,T=e,b=null;t:for(;;){for(var B;T!==n||o!==0&&T.nodeType!==3||(m=c+o),T!==a||r!==0&&T.nodeType!==3||(y=c+r),T.nodeType===3&&(c+=T.nodeValue.length),(B=T.firstChild)!==null;)b=T,T=B;for(;;){if(T===e)break t;if(b===n&&++C===o&&(m=c),b===a&&++_===r&&(y=c),(B=T.nextSibling)!==null)break;T=b,b=T.parentNode}T=B}n=m===-1||y===-1?null:{start:m,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(cl={focusedElem:e,selectionRange:n},ko=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var q=K.memoizedProps,$e=K.memoizedState,k=t.stateNode,g=k.getSnapshotBeforeUpdate(t.elementType===t.type?q:Ft(t.type,q),$e);k.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(L){Ie(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return K=Pd,Pd=!1,K}function Qs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Xl(t,n,a)}o=o.next}while(o!==r)}}function ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rd(e){var t=e.alternate;t!==null&&(e.alternate=null,Rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Rs],delete t[pl],delete t[Ip],delete t[Dp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Td(e){return e.tag===5||e.tag===3||e.tag===4}function Od(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Td(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.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 Jl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mo));else if(r!==4&&(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}function ea(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ea(e,t,n),e=e.sibling;e!==null;)ea(e,t,n),e=e.sibling}var Xe=null,It=!1;function Cn(e,t,n){for(n=n.child;n!==null;)Md(e,t,n),n=n.sibling}function Md(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(mo,n)}catch{}switch(n.tag){case 5:nt||Ar(n,t);case 6:var r=Xe,o=It;Xe=null,Cn(e,t,n),Xe=r,It=o,Xe!==null&&(It?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(It?(e=Xe,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),xs(e)):hl(Xe,n.stateNode));break;case 4:r=Xe,o=It,Xe=n.stateNode.containerInfo,It=!0,Cn(e,t,n),Xe=r,It=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,c=a.destroy;a=a.tag,c!==void 0&&((a&2)!==0||(a&4)!==0)&&Xl(n,t,c),o=o.next}while(o!==r)}Cn(e,t,n);break;case 1:if(!nt&&(Ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(m){Ie(n,t,m)}Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Cn(e,t,n),nt=r):Cn(e,t,n);break;default:Cn(e,t,n)}}function Ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new em),t.forEach(function(r){var o=cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,c=t,m=c;e:for(;m!==null;){switch(m.tag){case 5:Xe=m.stateNode,It=!1;break e;case 3:Xe=m.stateNode.containerInfo,It=!0;break e;case 4:Xe=m.stateNode.containerInfo,It=!0;break e}m=m.return}if(Xe===null)throw Error(l(160));Md(a,c,o),Xe=null,It=!1;var y=o.alternate;y!==null&&(y.return=null),o.return=null}catch(C){Ie(o,t,C)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zd(t,e),t=t.sibling}function zd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Vt(e),r&4){try{Qs(3,e,e.return),ni(3,e)}catch(q){Ie(e,e.return,q)}try{Qs(5,e,e.return)}catch(q){Ie(e,e.return,q)}}break;case 1:Dt(t,e),Vt(e),r&512&&n!==null&&Ar(n,n.return);break;case 5:if(Dt(t,e),Vt(e),r&512&&n!==null&&Ar(n,n.return),e.flags&32){var o=e.stateNode;try{as(o,"")}catch(q){Ie(e,e.return,q)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,c=n!==null?n.memoizedProps:a,m=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{m==="input"&&a.type==="radio"&&a.name!=null&&uu(o,a),Ti(m,c);var C=Ti(m,a);for(c=0;c<y.length;c+=2){var _=y[c],T=y[c+1];_==="style"?gu(o,T):_==="dangerouslySetInnerHTML"?mu(o,T):_==="children"?as(o,T):oe(o,_,T,C)}switch(m){case"input":ji(o,a);break;case"textarea":fu(o,a);break;case"select":var b=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var B=a.value;B!=null?vr(o,!!a.multiple,B,!1):b!==!!a.multiple&&(a.defaultValue!=null?vr(o,!!a.multiple,a.defaultValue,!0):vr(o,!!a.multiple,a.multiple?[]:"",!1))}o[Rs]=a}catch(q){Ie(e,e.return,q)}}break;case 6:if(Dt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(l(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(q){Ie(e,e.return,q)}}break;case 3:if(Dt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xs(t.containerInfo)}catch(q){Ie(e,e.return,q)}break;case 4:Dt(t,e),Vt(e);break;case 13:Dt(t,e),Vt(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(ra=Qe())),r&4&&Ld(e);break;case 22:if(_=n!==null&&n.memoizedState!==null,e.mode&1?(nt=(C=nt)||_,Dt(t,e),nt=C):Dt(t,e),Vt(e),r&8192){if(C=e.memoizedState!==null,(e.stateNode.isHidden=C)&&!_&&(e.mode&1)!==0)for(W=e,_=e.child;_!==null;){for(T=W=_;W!==null;){switch(b=W,B=b.child,b.tag){case 0:case 11:case 14:case 15:Qs(4,b,b.return);break;case 1:Ar(b,b.return);var K=b.stateNode;if(typeof K.componentWillUnmount=="function"){r=b,n=b.return;try{t=r,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(q){Ie(r,n,q)}}break;case 5:Ar(b,b.return);break;case 22:if(b.memoizedState!==null){Dd(T);continue}}B!==null?(B.return=b,W=B):Dd(T)}_=_.sibling}e:for(_=null,T=e;;){if(T.tag===5){if(_===null){_=T;try{o=T.stateNode,C?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(m=T.stateNode,y=T.memoizedProps.style,c=y!=null&&y.hasOwnProperty("display")?y.display:null,m.style.display=yu("display",c))}catch(q){Ie(e,e.return,q)}}}else if(T.tag===6){if(_===null)try{T.stateNode.nodeValue=C?"":T.memoizedProps}catch(q){Ie(e,e.return,q)}}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;_===T&&(_=null),T=T.return}_===T&&(_=null),T.sibling.return=T.return,T=T.sibling}}break;case 19:Dt(t,e),Vt(e),r&4&&Ld(e);break;case 21:break;default:Dt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Td(n)){var r=n;break e}n=n.return}throw Error(l(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(as(o,""),r.flags&=-33);var a=Od(e);ea(e,a,o);break;case 3:case 4:var c=r.stateNode.containerInfo,m=Od(e);Jl(e,m,c);break;default:throw Error(l(161))}}catch(y){Ie(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nm(e,t,n){W=e,Fd(e)}function Fd(e,t,n){for(var r=(e.mode&1)!==0;W!==null;){var o=W,a=o.child;if(o.tag===22&&r){var c=o.memoizedState!==null||ti;if(!c){var m=o.alternate,y=m!==null&&m.memoizedState!==null||nt;m=ti;var C=nt;if(ti=c,(nt=y)&&!C)for(W=o;W!==null;)c=W,y=c.child,c.tag===22&&c.memoizedState!==null?Ad(o):y!==null?(y.return=c,W=y):Ad(o);for(;a!==null;)W=a,Fd(a),a=a.sibling;W=o,ti=m,nt=C}Id(e)}else(o.subtreeFlags&8772)!==0&&a!==null?(a.return=o,W=a):Id(e)}}function Id(e){for(;W!==null;){var t=W;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:nt||ni(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Dc(t,a,r);break;case 3:var c=t.updateQueue;if(c!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Dc(t,c,n)}break;case 5:var m=t.stateNode;if(n===null&&t.flags&4){n=m;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var C=t.alternate;if(C!==null){var _=C.memoizedState;if(_!==null){var T=_.dehydrated;T!==null&&xs(T)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(l(163))}nt||t.flags&512&&Zl(t)}catch(b){Ie(t,t.return,b)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function Dd(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function Ad(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ni(4,t)}catch(y){Ie(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(y){Ie(t,o,y)}}var a=t.return;try{Zl(t)}catch(y){Ie(t,a,y)}break;case 5:var c=t.return;try{Zl(t)}catch(y){Ie(t,c,y)}}}catch(y){Ie(t,t.return,y)}if(t===e){W=null;break}var m=t.sibling;if(m!==null){m.return=t.return,W=m;break}W=t.return}}var rm=Math.ceil,ri=D.ReactCurrentDispatcher,ta=D.ReactCurrentOwner,Rt=D.ReactCurrentBatchConfig,xe=0,qe=null,Be=null,Ze=0,kt=0,Ur=vn(0),Ve=0,$s=null,Jn=0,si=0,na=0,Bs=null,dt=null,ra=0,Qr=1/0,nn=null,oi=!1,sa=null,En=null,ii=!1,Nn=null,li=0,Hs=0,oa=null,ai=-1,ui=0;function it(){return(xe&6)!==0?Qe():ai!==-1?ai:ai=Qe()}function jn(e){return(e.mode&1)===0?1:(xe&2)!==0&&Ze!==0?Ze&-Ze:Up.transition!==null?(ui===0&&(ui=Ou()),ui):(e=Ee,e!==0||(e=window.event,e=e===void 0?16:Qu(e.type)),e)}function At(e,t,n,r){if(50<Hs)throw Hs=0,oa=null,Error(l(185));ps(e,n,r),((xe&2)===0||e!==qe)&&(e===qe&&((xe&2)===0&&(si|=n),Ve===4&&bn(e,Ze)),ft(e,r),n===1&&xe===0&&(t.mode&1)===0&&(Qr=Qe()+500,Io&&wn()))}function ft(e,t){var n=e.callbackNode;Uh(e,t);var r=vo(e,e===qe?Ze:0);if(r===0)n!==null&&Pu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pu(n),t===1)e.tag===0?Ap(Qd.bind(null,e)):jc(Qd.bind(null,e)),zp(function(){(xe&6)===0&&wn()}),n=null;else{switch(Mu(r)){case 1:n=Di;break;case 4:n=Ru;break;case 16:n=po;break;case 536870912:n=Tu;break;default:n=po}n=Gd(n,Ud.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ud(e,t){if(ai=-1,ui=0,(xe&6)!==0)throw Error(l(327));var n=e.callbackNode;if($r()&&e.callbackNode!==n)return null;var r=vo(e,e===qe?Ze:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=ci(e,r);else{t=r;var o=xe;xe|=2;var a=Bd();(qe!==e||Ze!==t)&&(nn=null,Qr=Qe()+500,tr(e,t));do try{im();break}catch(m){$d(e,m)}while(!0);Cl(),ri.current=a,xe=o,Be!==null?t=0:(qe=null,Ze=0,t=Ve)}if(t!==0){if(t===2&&(o=Ai(e),o!==0&&(r=o,t=ia(e,o))),t===1)throw n=$s,tr(e,0),bn(e,r),ft(e,Qe()),n;if(t===6)bn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!sm(o)&&(t=ci(e,r),t===2&&(a=Ai(e),a!==0&&(r=a,t=ia(e,a))),t===1))throw n=$s,tr(e,0),bn(e,r),ft(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(l(345));case 2:nr(e,dt,nn);break;case 3:if(bn(e,r),(r&130023424)===r&&(t=ra+500-Qe(),10<t)){if(vo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=fl(nr.bind(null,e,dt,nn),t);break}nr(e,dt,nn);break;case 4:if(bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var c=31-Mt(r);a=1<<c,c=t[c],c>o&&(o=c),r&=~a}if(r=o,r=Qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rm(r/1960))-r,10<r){e.timeoutHandle=fl(nr.bind(null,e,dt,nn),r);break}nr(e,dt,nn);break;case 5:nr(e,dt,nn);break;default:throw Error(l(329))}}}return ft(e,Qe()),e.callbackNode===n?Ud.bind(null,e):null}function ia(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(tr(e,t).flags|=256),e=ci(e,t),e!==2&&(t=dt,dt=n,t!==null&&la(t)),e}function la(e){dt===null?dt=e:dt.push.apply(dt,e)}function sm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Lt(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 bn(e,t){for(t&=~na,t&=~si,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Qd(e){if((xe&6)!==0)throw Error(l(327));$r();var t=vo(e,0);if((t&1)===0)return ft(e,Qe()),null;var n=ci(e,t);if(e.tag!==0&&n===2){var r=Ai(e);r!==0&&(t=r,n=ia(e,r))}if(n===1)throw n=$s,tr(e,0),bn(e,t),ft(e,Qe()),n;if(n===6)throw Error(l(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,dt,nn),ft(e,Qe()),null}function aa(e,t){var n=xe;xe|=1;try{return e(t)}finally{xe=n,xe===0&&(Qr=Qe()+500,Io&&wn())}}function er(e){Nn!==null&&Nn.tag===0&&(xe&6)===0&&$r();var t=xe;xe|=1;var n=Rt.transition,r=Ee;try{if(Rt.transition=null,Ee=1,e)return e()}finally{Ee=r,Rt.transition=n,xe=t,(xe&6)===0&&wn()}}function ua(){kt=Ur.current,Re(Ur)}function tr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Lp(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(vl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&zo();break;case 3:Ir(),Re(at),Re(Je),Tl();break;case 5:Pl(r);break;case 4:Ir();break;case 13:Re(ze);break;case 19:Re(ze);break;case 10:El(r.type._context);break;case 22:case 23:ua()}n=n.return}if(qe=e,Be=e=_n(e.current,null),Ze=kt=t,Ve=0,$s=null,na=si=Jn=0,dt=Bs=null,Yn!==null){for(t=0;t<Yn.length;t++)if(n=Yn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var c=a.next;a.next=o,r.next=c}n.pending=r}Yn=null}return e}function $d(e,t){do{var n=Be;try{if(Cl(),Ko.current=Xo,qo){for(var r=Fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}qo=!1}if(Zn=0,Ke=He=Fe=null,Fs=!1,Is=0,ta.current=null,n===null||n.return===null){Ve=1,$s=t,Be=null;break}e:{var a=e,c=n.return,m=n,y=t;if(t=Ze,m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=y,_=m,T=_.tag;if((_.mode&1)===0&&(T===0||T===11||T===15)){var b=_.alternate;b?(_.updateQueue=b.updateQueue,_.memoizedState=b.memoizedState,_.lanes=b.lanes):(_.updateQueue=null,_.memoizedState=null)}var B=hd(c);if(B!==null){B.flags&=-257,pd(B,c,m,a,t),B.mode&1&&fd(a,C,t),t=B,y=C;var K=t.updateQueue;if(K===null){var q=new Set;q.add(y),t.updateQueue=q}else K.add(y);break e}else{if((t&1)===0){fd(a,C,t),ca();break e}y=Error(l(426))}}else if(Me&&m.mode&1){var $e=hd(c);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),pd($e,c,m,a,t),kl(Dr(y,m));break e}}a=y=Dr(y,m),Ve!==4&&(Ve=2),Bs===null?Bs=[a]:Bs.push(a),a=c;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var k=cd(a,y,t);Ic(a,k);break e;case 1:m=y;var g=a.type,S=a.stateNode;if((a.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(En===null||!En.has(S)))){a.flags|=65536,t&=-t,a.lanes|=t;var L=dd(a,m,t);Ic(a,L);break e}}a=a.return}while(a!==null)}Vd(n)}catch(G){t=G,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(!0)}function Bd(){var e=ri.current;return ri.current=Xo,e===null?Xo:e}function ca(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),qe===null||(Jn&268435455)===0&&(si&268435455)===0||bn(qe,Ze)}function ci(e,t){var n=xe;xe|=2;var r=Bd();(qe!==e||Ze!==t)&&(nn=null,tr(e,t));do try{om();break}catch(o){$d(e,o)}while(!0);if(Cl(),xe=n,ri.current=r,Be!==null)throw Error(l(261));return qe=null,Ze=0,Ve}function om(){for(;Be!==null;)Hd(Be)}function im(){for(;Be!==null&&!Th();)Hd(Be)}function Hd(e){var t=qd(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Vd(e):Be=t,ta.current=null}function Vd(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Zp(n,t,kt),n!==null){Be=n;return}}else{if(n=Jp(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Be=null;return}}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);Ve===0&&(Ve=5)}function nr(e,t,n){var r=Ee,o=Rt.transition;try{Rt.transition=null,Ee=1,lm(e,t,n,r)}finally{Rt.transition=o,Ee=r}return null}function lm(e,t,n,r){do $r();while(Nn!==null);if((xe&6)!==0)throw Error(l(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Qh(e,a),e===qe&&(Be=qe=null,Ze=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||ii||(ii=!0,Gd(po,function(){return $r(),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a){a=Rt.transition,Rt.transition=null;var c=Ee;Ee=1;var m=xe;xe|=4,ta.current=null,tm(e,n),zd(n,e),bp(cl),ko=!!ul,cl=ul=null,e.current=n,nm(n),Oh(),xe=m,Ee=c,Rt.transition=a}else e.current=n;if(ii&&(ii=!1,Nn=e,li=o),a=e.pendingLanes,a===0&&(En=null),zh(n.stateNode),ft(e,Qe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(oi)throw oi=!1,e=sa,sa=null,e;return(li&1)!==0&&e.tag!==0&&$r(),a=e.pendingLanes,(a&1)!==0?e===oa?Hs++:(Hs=0,oa=e):Hs=0,wn(),null}function $r(){if(Nn!==null){var e=Mu(li),t=Rt.transition,n=Ee;try{if(Rt.transition=null,Ee=16>e?16:e,Nn===null)var r=!1;else{if(e=Nn,Nn=null,li=0,(xe&6)!==0)throw Error(l(331));var o=xe;for(xe|=4,W=e.current;W!==null;){var a=W,c=a.child;if((W.flags&16)!==0){var m=a.deletions;if(m!==null){for(var y=0;y<m.length;y++){var C=m[y];for(W=C;W!==null;){var _=W;switch(_.tag){case 0:case 11:case 15:Qs(8,_,a)}var T=_.child;if(T!==null)T.return=_,W=T;else for(;W!==null;){_=W;var b=_.sibling,B=_.return;if(Rd(_),_===C){W=null;break}if(b!==null){b.return=B,W=b;break}W=B}}}var K=a.alternate;if(K!==null){var q=K.child;if(q!==null){K.child=null;do{var $e=q.sibling;q.sibling=null,q=$e}while(q!==null)}}W=a}}if((a.subtreeFlags&2064)!==0&&c!==null)c.return=a,W=c;else e:for(;W!==null;){if(a=W,(a.flags&2048)!==0)switch(a.tag){case 0:case 11:case 15:Qs(9,a,a.return)}var k=a.sibling;if(k!==null){k.return=a.return,W=k;break e}W=a.return}}var g=e.current;for(W=g;W!==null;){c=W;var S=c.child;if((c.subtreeFlags&2064)!==0&&S!==null)S.return=c,W=S;else e:for(c=g;W!==null;){if(m=W,(m.flags&2048)!==0)try{switch(m.tag){case 0:case 11:case 15:ni(9,m)}}catch(G){Ie(m,m.return,G)}if(m===c){W=null;break e}var L=m.sibling;if(L!==null){L.return=m.return,W=L;break e}W=m.return}}if(xe=o,wn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(mo,e)}catch{}r=!0}return r}finally{Ee=n,Rt.transition=t}}return!1}function Wd(e,t,n){t=Dr(n,t),t=cd(e,t,1),e=Sn(e,t,1),t=it(),e!==null&&(ps(e,1,t),ft(e,t))}function Ie(e,t,n){if(e.tag===3)Wd(e,e,n);else for(;t!==null;){if(t.tag===3){Wd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(En===null||!En.has(r))){e=Dr(n,e),e=dd(t,e,1),t=Sn(t,e,1),e=it(),t!==null&&(ps(t,1,e),ft(t,e));break}}t=t.return}}function am(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,qe===e&&(Ze&n)===n&&(Ve===4||Ve===3&&(Ze&130023424)===Ze&&500>Qe()-ra?tr(e,0):na|=n),ft(e,t)}function Kd(e,t){t===0&&((e.mode&1)===0?t=1:(t=go,go<<=1,(go&130023424)===0&&(go=4194304)));var n=it();e=Jt(e,t),e!==null&&(ps(e,t,n),ft(e,n))}function um(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kd(e,n)}function cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}r!==null&&r.delete(t),Kd(e,n)}var qd;qd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)ct=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ct=!1,Xp(e,t,n);ct=(e.flags&131072)!==0}else ct=!1,Me&&(t.flags&1048576)!==0&&bc(t,Ao,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ei(e,t),e=t.pendingProps;var o=Rr(t,Je.current);Fr(t,n),o=Ll(null,t,r,e,o,n);var a=zl();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(a=!0,Fo(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bl(t),o.updater=Zo,t.stateNode=o,o._reactInternals=t,Ql(t,r,e,n),t=Vl(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&gl(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ei(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=fm(r),e=Ft(r,e),o){case 0:t=Hl(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=md(null,t,r,e,n);break e;case 14:t=yd(null,t,r,Ft(r.type,e),n);break e}throw Error(l(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Hl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),wd(e,t,r,o,n);case 3:e:{if(kd(t),e===null)throw Error(l(387));r=t.pendingProps,a=t.memoizedState,o=a.element,Fc(e,t),Vo(t,r,null,n);var c=t.memoizedState;if(r=c.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Dr(Error(l(423)),t),t=Sd(e,t,r,n,o);break e}else if(r!==o){o=Dr(Error(l(424)),t),t=Sd(e,t,r,n,o);break e}else for(wt=gn(t.stateNode.containerInfo.firstChild),xt=t,Me=!0,zt=null,n=Lc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mr(),r===o){t=tn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&wl(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,c=o.children,dl(r,o)?c=null:a!==null&&dl(r,a)&&(t.flags|=32),xd(e,t),ot(e,t,c,n),t.child;case 6:return e===null&&wl(t),null;case 13:return Cd(e,t,n);case 4:return _l(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Lr(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),md(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,c=o.value,_e($o,r._currentValue),r._currentValue=c,a!==null)if(Lt(a.value,c)){if(a.children===o.children&&!at.current){t=tn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var m=a.dependencies;if(m!==null){c=a.child;for(var y=m.firstContext;y!==null;){if(y.context===r){if(a.tag===1){y=en(-1,n&-n),y.tag=2;var C=a.updateQueue;if(C!==null){C=C.shared;var _=C.pending;_===null?y.next=y:(y.next=_.next,_.next=y),C.pending=y}}a.lanes|=n,y=a.alternate,y!==null&&(y.lanes|=n),Nl(a.return,n,t),m.lanes|=n;break}y=y.next}}else if(a.tag===10)c=a.type===t.type?null:a.child;else if(a.tag===18){if(c=a.return,c===null)throw Error(l(341));c.lanes|=n,m=c.alternate,m!==null&&(m.lanes|=n),Nl(c,n,t),c=a.sibling}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fr(t,n),o=_t(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),yd(e,t,r,o,n);case 15:return gd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),ei(e,t),t.tag=1,ut(r)?(e=!0,Fo(t)):e=!1,Fr(t,n),ad(t,r,o),Ql(t,r,o,n),Vl(null,t,r,!0,e,n);case 19:return Nd(e,t,n);case 22:return vd(e,t,n)}throw Error(l(156,t.tag))};function Gd(e,t){return _u(e,t)}function dm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,r){return new dm(e,t,n,r)}function da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fm(e){if(typeof e=="function")return da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X)return 11;if(e===Le)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function di(e,t,n,r,o,a){var c=2;if(r=e,typeof e=="function")da(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case pe:return rr(n.children,o,a,t);case se:c=8,o|=8;break;case ce:return e=Tt(12,n,t,o|2),e.elementType=ce,e.lanes=a,e;case ye:return e=Tt(13,n,t,o),e.elementType=ye,e.lanes=a,e;case je:return e=Tt(19,n,t,o),e.elementType=je,e.lanes=a,e;case Ne:return fi(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:c=10;break e;case Z:c=9;break e;case X:c=11;break e;case Le:c=14;break e;case Ue:c=16,r=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Tt(c,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function rr(e,t,n,r){return e=Tt(7,e,r,t),e.lanes=n,e}function fi(e,t,n,r){return e=Tt(22,e,r,t),e.elementType=Ne,e.lanes=n,e.stateNode={isHidden:!1},e}function fa(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function ha(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hm(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ui(0),this.expirationTimes=Ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pa(e,t,n,r,o,a,c,m,y){return e=new hm(e,t,n,m,y),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Tt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bl(a),e}function pm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:he,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Yd(e){if(!e)return xn;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(l(171))}if(e.tag===1){var n=e.type;if(ut(n))return Ec(e,n,t)}return t}function Xd(e,t,n,r,o,a,c,m,y){return e=pa(n,r,!0,e,o,a,c,m,y),e.context=Yd(null),n=e.current,r=it(),o=jn(n),a=en(r,o),a.callback=t??null,Sn(n,a,o),e.current.lanes=o,ps(e,o,r),ft(e,r),e}function hi(e,t,n,r){var o=t.current,a=it(),c=jn(o);return n=Yd(n),t.context===null?t.context=n:t.pendingContext=n,t=en(a,c),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sn(o,t,c),e!==null&&(At(e,o,c,a),Ho(e,o,c)),c}function pi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ma(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function mm(){return null}var Jd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ya(e){this._internalRoot=e}mi.prototype.render=ya.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));hi(e,t,null,null)},mi.prototype.unmount=ya.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;er(function(){hi(null,e,null,null)}),t[Gt]=null}};function mi(e){this._internalRoot=e}mi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&Au(e)}};function ga(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ef(){}function ym(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var C=pi(c);a.call(C)}}var c=Xd(t,r,e,0,null,!1,!1,"",ef);return e._reactRootContainer=c,e[Gt]=c.current,_s(e.nodeType===8?e.parentNode:e),er(),c}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var m=r;r=function(){var C=pi(y);m.call(C)}}var y=pa(e,0,!1,null,null,!1,!1,"",ef);return e._reactRootContainer=y,e[Gt]=y.current,_s(e.nodeType===8?e.parentNode:e),er(function(){hi(t,y,n,r)}),y}function gi(e,t,n,r,o){var a=n._reactRootContainer;if(a){var c=a;if(typeof o=="function"){var m=o;o=function(){var y=pi(c);m.call(y)}}hi(t,c,e,o)}else c=ym(n,t,e,o,r);return pi(c)}Lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hs(t.pendingLanes);n!==0&&(Qi(t,n|1),ft(t,Qe()),(xe&6)===0&&(Qr=Qe()+500,wn()))}break;case 13:er(function(){var r=Jt(e,1);if(r!==null){var o=it();At(r,e,1,o)}}),ma(e,1)}},$i=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=it();At(t,e,134217728,n)}ma(e,134217728)}},zu=function(e){if(e.tag===13){var t=jn(e),n=Jt(e,t);if(n!==null){var r=it();At(n,e,t,r)}ma(e,t)}},Fu=function(){return Ee},Iu=function(e,t){var n=Ee;try{return Ee=e,t()}finally{Ee=n}},Li=function(e,t,n){switch(t){case"input":if(ji(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Lo(r);if(!o)throw Error(l(90));lu(r),ji(r,o)}}}break;case"textarea":fu(e,n);break;case"select":t=n.value,t!=null&&vr(e,!!n.multiple,t,!1)}},ku=aa,Su=er;var gm={usingClientEntryPoint:!1,Events:[Ts,_r,Lo,xu,wu,aa]},Vs={findFiberByHostInstance:Wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vm={bundleType:Vs.bundleType,version:Vs.version,rendererPackageName:Vs.rendererPackageName,rendererConfig:Vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ju(e),e===null?null:e.stateNode},findFiberByHostInstance:Vs.findFiberByHostInstance||mm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vi.isDisabled&&vi.supportsFiber)try{mo=vi.inject(vm),Qt=vi}catch{}}return ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gm,ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ga(t))throw Error(l(200));return pm(e,t,null,n)},ht.createRoot=function(e,t){if(!ga(e))throw Error(l(299));var n=!1,r="",o=Jd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=pa(e,1,!1,null,null,n,!1,r,o),e[Gt]=t.current,_s(e.nodeType===8?e.parentNode:e),new ya(t)},ht.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=ju(t),e=e===null?null:e.stateNode,e},ht.flushSync=function(e){return er(e)},ht.hydrate=function(e,t,n){if(!yi(t))throw Error(l(200));return gi(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!ga(e))throw Error(l(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",c=Jd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),t=Xd(t,null,e,1,n??null,o,!1,a,c),e[Gt]=t.current,_s(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new mi(t)},ht.render=function(e,t,n){if(!yi(t))throw Error(l(200));return gi(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!yi(e))throw Error(l(40));return e._reactRootContainer?(er(function(){gi(null,null,e,!1,function(){e._reactRootContainer=null,e[Gt]=null})}),!0):!1},ht.unstable_batchedUpdates=aa,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yi(n))throw Error(l(200));if(e==null||e._reactInternals===void 0)throw Error(l(38));return gi(e,t,n,!1,r)},ht.version="18.3.1-next-f1338f8080-20240426",ht}var wf;function oy(){if(wf)return ka.exports;wf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),ka.exports=sy(),ka.exports}var kf;function iy(){if(kf)return ki;kf=1;var i=oy();return ki.createRoot=i.createRoot,ki.hydrateRoot=i.hydrateRoot,ki}var ly=iy();/**
|
|
41
|
+
* @license lucide-react v1.23.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const lh=(...i)=>i.filter((s,l,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===l).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v1.23.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const ay=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
51
|
+
* @license lucide-react v1.23.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const uy=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,u)=>u?u.toUpperCase():l.toLowerCase());/**
|
|
56
|
+
* @license lucide-react v1.23.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const Sf=i=>{const s=uy(i);return s.charAt(0).toUpperCase()+s.slice(1)};/**
|
|
61
|
+
* @license lucide-react v1.23.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var Ea={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
66
|
+
* @license lucide-react v1.23.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const cy=i=>{for(const s in i)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},dy=J.createContext({}),fy=()=>J.useContext(dy),hy=J.forwardRef(({color:i,size:s,strokeWidth:l,absoluteStrokeWidth:u,className:d="",children:h,iconNode:w,...x},N)=>{const{size:F=24,strokeWidth:M=2,absoluteStrokeWidth:E=!1,color:O="currentColor",className:I=""}=fy()??{},U=u??E?Number(l??M)*24/Number(s??F):l??M;return J.createElement("svg",{ref:N,...Ea,width:s??F??Ea.width,height:s??F??Ea.height,stroke:i??O,strokeWidth:U,className:lh("lucide",I,d),...!h&&!cy(x)&&{"aria-hidden":"true"},...x},[...w.map(([R,P])=>J.createElement(R,P)),...Array.isArray(h)?h:[h]])});/**
|
|
71
|
+
* @license lucide-react v1.23.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Se=(i,s)=>{const l=J.forwardRef(({className:u,...d},h)=>J.createElement(hy,{ref:h,iconNode:s,className:lh(`lucide-${ay(Sf(i))}`,`lucide-${i}`,u),...d}));return l.displayName=Sf(i),l};/**
|
|
76
|
+
* @license lucide-react v1.23.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const py=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],my=Se("arrow-up-down",py);/**
|
|
81
|
+
* @license lucide-react v1.23.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const yy=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],gy=Se("calendar",yy);/**
|
|
86
|
+
* @license lucide-react v1.23.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const vy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xy=Se("chevron-left",vy);/**
|
|
91
|
+
* @license lucide-react v1.23.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const wy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ah=Se("chevron-right",wy);/**
|
|
96
|
+
* @license lucide-react v1.23.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const ky=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sy=Se("circle",ky);/**
|
|
101
|
+
* @license lucide-react v1.23.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Cy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ey=Se("clock",Cy);/**
|
|
106
|
+
* @license lucide-react v1.23.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Ny=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],jy=Se("copy",Ny);/**
|
|
111
|
+
* @license lucide-react v1.23.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const by=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],_y=Se("download",by);/**
|
|
116
|
+
* @license lucide-react v1.23.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const Py=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],uh=Se("file-code-corner",Py);/**
|
|
121
|
+
* @license lucide-react v1.23.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Ry=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Ty=Se("file",Ry);/**
|
|
126
|
+
* @license lucide-react v1.23.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Oy=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],su=Se("folder-open",Oy);/**
|
|
131
|
+
* @license lucide-react v1.23.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const My=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Cf=Se("hash",My);/**
|
|
136
|
+
* @license lucide-react v1.23.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Ly=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],zy=Se("link",Ly);/**
|
|
141
|
+
* @license lucide-react v1.23.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Fy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Iy=Se("loader-circle",Fy);/**
|
|
146
|
+
* @license lucide-react v1.23.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const Dy=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ay=Se("menu",Dy);/**
|
|
151
|
+
* @license lucide-react v1.23.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Uy=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Qy=Se("moon",Uy);/**
|
|
156
|
+
* @license lucide-react v1.23.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const $y=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],By=Se("network",$y);/**
|
|
161
|
+
* @license lucide-react v1.23.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Hy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Vy=Se("panel-left-close",Hy);/**
|
|
166
|
+
* @license lucide-react v1.23.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Wy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Ky=Se("panel-left-open",Wy);/**
|
|
171
|
+
* @license lucide-react v1.23.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const qy=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Gy=Se("play",qy);/**
|
|
176
|
+
* @license lucide-react v1.23.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const Yy=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ch=Se("refresh-cw",Yy);/**
|
|
181
|
+
* @license lucide-react v1.23.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Xy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Zy=Se("search",Xy);/**
|
|
186
|
+
* @license lucide-react v1.23.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const Jy=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],eg=Se("settings",Jy);/**
|
|
191
|
+
* @license lucide-react v1.23.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const tg=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ng=Se("sun",tg);/**
|
|
196
|
+
* @license lucide-react v1.23.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const rg=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],ou=Se("table-2",rg);/**
|
|
201
|
+
* @license lucide-react v1.23.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const sg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],og=Se("terminal",sg);/**
|
|
206
|
+
* @license lucide-react v1.23.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const ig=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],lg=Se("toggle-left",ig);/**
|
|
211
|
+
* @license lucide-react v1.23.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const ag=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ug=Se("trash-2",ag);/**
|
|
216
|
+
* @license lucide-react v1.23.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const cg=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],dg=Se("type",cg);/**
|
|
221
|
+
* @license lucide-react v1.23.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const fg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hg=Se("x",fg);function dh(i){var s,l,u="";if(typeof i=="string"||typeof i=="number")u+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(s=0;s<d;s++)i[s]&&(l=dh(i[s]))&&(u&&(u+=" "),u+=l)}else for(l in i)i[l]&&(u&&(u+=" "),u+=l);return u}function pg(){for(var i,s,l=0,u="",d=arguments.length;l<d;l++)(i=arguments[l])&&(s=dh(i))&&(u&&(u+=" "),u+=s);return u}const iu="-",mg=i=>{const s=gg(i),{conflictingClassGroups:l,conflictingClassGroupModifiers:u}=i;return{getClassGroupId:w=>{const x=w.split(iu);return x[0]===""&&x.length!==1&&x.shift(),fh(x,s)||yg(w)},getConflictingClassGroupIds:(w,x)=>{const N=l[w]||[];return x&&u[w]?[...N,...u[w]]:N}}},fh=(i,s)=>{var w;if(i.length===0)return s.classGroupId;const l=i[0],u=s.nextPart.get(l),d=u?fh(i.slice(1),u):void 0;if(d)return d;if(s.validators.length===0)return;const h=i.join(iu);return(w=s.validators.find(({validator:x})=>x(h)))==null?void 0:w.classGroupId},Ef=/^\[(.+)\]$/,yg=i=>{if(Ef.test(i)){const s=Ef.exec(i)[1],l=s==null?void 0:s.substring(0,s.indexOf(":"));if(l)return"arbitrary.."+l}},gg=i=>{const{theme:s,prefix:l}=i,u={nextPart:new Map,validators:[]};return xg(Object.entries(i.classGroups),l).forEach(([h,w])=>{qa(w,u,h,s)}),u},qa=(i,s,l,u)=>{i.forEach(d=>{if(typeof d=="string"){const h=d===""?s:Nf(s,d);h.classGroupId=l;return}if(typeof d=="function"){if(vg(d)){qa(d(u),s,l,u);return}s.validators.push({validator:d,classGroupId:l});return}Object.entries(d).forEach(([h,w])=>{qa(w,Nf(s,h),l,u)})})},Nf=(i,s)=>{let l=i;return s.split(iu).forEach(u=>{l.nextPart.has(u)||l.nextPart.set(u,{nextPart:new Map,validators:[]}),l=l.nextPart.get(u)}),l},vg=i=>i.isThemeGetter,xg=(i,s)=>s?i.map(([l,u])=>{const d=u.map(h=>typeof h=="string"?s+h:typeof h=="object"?Object.fromEntries(Object.entries(h).map(([w,x])=>[s+w,x])):h);return[l,d]}):i,wg=i=>{if(i<1)return{get:()=>{},set:()=>{}};let s=0,l=new Map,u=new Map;const d=(h,w)=>{l.set(h,w),s++,s>i&&(s=0,u=l,l=new Map)};return{get(h){let w=l.get(h);if(w!==void 0)return w;if((w=u.get(h))!==void 0)return d(h,w),w},set(h,w){l.has(h)?l.set(h,w):d(h,w)}}},hh="!",kg=i=>{const{separator:s,experimentalParseClassName:l}=i,u=s.length===1,d=s[0],h=s.length,w=x=>{const N=[];let F=0,M=0,E;for(let P=0;P<x.length;P++){let Q=x[P];if(F===0){if(Q===d&&(u||x.slice(P,P+h)===s)){N.push(x.slice(M,P)),M=P+h;continue}if(Q==="/"){E=P;continue}}Q==="["?F++:Q==="]"&&F--}const O=N.length===0?x:x.substring(M),I=O.startsWith(hh),U=I?O.substring(1):O,R=E&&E>M?E-M:void 0;return{modifiers:N,hasImportantModifier:I,baseClassName:U,maybePostfixModifierPosition:R}};return l?x=>l({className:x,parseClassName:w}):w},Sg=i=>{if(i.length<=1)return i;const s=[];let l=[];return i.forEach(u=>{u[0]==="["?(s.push(...l.sort(),u),l=[]):l.push(u)}),s.push(...l.sort()),s},Cg=i=>({cache:wg(i.cacheSize),parseClassName:kg(i),...mg(i)}),Eg=/\s+/,Ng=(i,s)=>{const{parseClassName:l,getClassGroupId:u,getConflictingClassGroupIds:d}=s,h=[],w=i.trim().split(Eg);let x="";for(let N=w.length-1;N>=0;N-=1){const F=w[N],{modifiers:M,hasImportantModifier:E,baseClassName:O,maybePostfixModifierPosition:I}=l(F);let U=!!I,R=u(U?O.substring(0,I):O);if(!R){if(!U){x=F+(x.length>0?" "+x:x);continue}if(R=u(O),!R){x=F+(x.length>0?" "+x:x);continue}U=!1}const P=Sg(M).join(":"),Q=E?P+hh:P,re=Q+R;if(h.includes(re))continue;h.push(re);const oe=d(R,U);for(let D=0;D<oe.length;++D){const ie=oe[D];h.push(Q+ie)}x=F+(x.length>0?" "+x:x)}return x};function jg(){let i=0,s,l,u="";for(;i<arguments.length;)(s=arguments[i++])&&(l=ph(s))&&(u&&(u+=" "),u+=l);return u}const ph=i=>{if(typeof i=="string")return i;let s,l="";for(let u=0;u<i.length;u++)i[u]&&(s=ph(i[u]))&&(l&&(l+=" "),l+=s);return l};function bg(i,...s){let l,u,d,h=w;function w(N){const F=s.reduce((M,E)=>E(M),i());return l=Cg(F),u=l.cache.get,d=l.cache.set,h=x,x(N)}function x(N){const F=u(N);if(F)return F;const M=Ng(N,l);return d(N,M),M}return function(){return h(jg.apply(null,arguments))}}const Te=i=>{const s=l=>l[i]||[];return s.isThemeGetter=!0,s},mh=/^\[(?:([a-z-]+):)?(.+)\]$/i,_g=/^\d+\/\d+$/,Pg=new Set(["px","full","screen"]),Rg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Og=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=i=>Hr(i)||Pg.has(i)||_g.test(i),Rn=i=>is(i,"length",$g),Hr=i=>!!i&&!Number.isNaN(Number(i)),Na=i=>is(i,"number",Hr),Ks=i=>!!i&&Number.isInteger(Number(i)),zg=i=>i.endsWith("%")&&Hr(i.slice(0,-1)),de=i=>mh.test(i),Tn=i=>Rg.test(i),Fg=new Set(["length","size","percentage"]),Ig=i=>is(i,Fg,yh),Dg=i=>is(i,"position",yh),Ag=new Set(["image","url"]),Ug=i=>is(i,Ag,Hg),Qg=i=>is(i,"",Bg),qs=()=>!0,is=(i,s,l)=>{const u=mh.exec(i);return u?u[1]?typeof s=="string"?u[1]===s:s.has(u[1]):l(u[2]):!1},$g=i=>Tg.test(i)&&!Og.test(i),yh=()=>!1,Bg=i=>Mg.test(i),Hg=i=>Lg.test(i),Vg=()=>{const i=Te("colors"),s=Te("spacing"),l=Te("blur"),u=Te("brightness"),d=Te("borderColor"),h=Te("borderRadius"),w=Te("borderSpacing"),x=Te("borderWidth"),N=Te("contrast"),F=Te("grayscale"),M=Te("hueRotate"),E=Te("invert"),O=Te("gap"),I=Te("gradientColorStops"),U=Te("gradientColorStopPositions"),R=Te("inset"),P=Te("margin"),Q=Te("opacity"),re=Te("padding"),oe=Te("saturate"),D=Te("scale"),ie=Te("sepia"),he=Te("skew"),pe=Te("space"),se=Te("translate"),ce=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",de,s],X=()=>[de,s],ye=()=>["",rn,Rn],je=()=>["auto",Hr,de],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ue=()=>["solid","dashed","dotted","double","none"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",de],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[Hr,de];return{cacheSize:500,separator:":",theme:{colors:[qs],spacing:[rn,Rn],blur:["none","",Tn,de],brightness:v(),borderColor:[i],borderRadius:["none","","full",Tn,de],borderSpacing:X(),borderWidth:ye(),contrast:v(),grayscale:Y(),hueRotate:v(),invert:Y(),gap:X(),gradientColorStops:[i],gradientColorStopPositions:[zg,Rn],inset:Z(),margin:Z(),opacity:v(),padding:X(),saturate:v(),scale:v(),sepia:Y(),skew:v(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Le(),de]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ks,de]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",Ks,de]}],"grid-cols":[{"grid-cols":[qs]}],"col-start-end":[{col:["auto",{span:["full",Ks,de]},de]}],"col-start":[{"col-start":je()}],"col-end":[{"col-end":je()}],"grid-rows":[{"grid-rows":[qs]}],"row-start-end":[{row:["auto",{span:[Ks,de]},de]}],"row-start":[{"row-start":je()}],"row-end":[{"row-end":je()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[O]}],"gap-x":[{"gap-x":[O]}],"gap-y":[{"gap-y":[O]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[re]}],px:[{px:[re]}],py:[{py:[re]}],ps:[{ps:[re]}],pe:[{pe:[re]}],pt:[{pt:[re]}],pr:[{pr:[re]}],pb:[{pb:[re]}],pl:[{pl:[re]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,s]}],"min-w":[{"min-w":[de,s,"min","max","fit"]}],"max-w":[{"max-w":[de,s,"none","full","min","max","fit","prose",{screen:[Tn]},Tn]}],h:[{h:[de,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,s,"auto","min","max","fit"]}],"font-size":[{text:["base",Tn,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Na]}],"font-family":[{font:[qs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",Hr,Na]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rn,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[Q]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ue(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rn,Rn]}],"underline-offset":[{"underline-offset":["auto",rn,de]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Q]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),Dg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ig]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ug]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[U]}],"gradient-via-pos":[{via:[U]}],"gradient-to-pos":[{to:[U]}],"gradient-from":[{from:[I]}],"gradient-via":[{via:[I]}],"gradient-to":[{to:[I]}],rounded:[{rounded:[h]}],"rounded-s":[{"rounded-s":[h]}],"rounded-e":[{"rounded-e":[h]}],"rounded-t":[{"rounded-t":[h]}],"rounded-r":[{"rounded-r":[h]}],"rounded-b":[{"rounded-b":[h]}],"rounded-l":[{"rounded-l":[h]}],"rounded-ss":[{"rounded-ss":[h]}],"rounded-se":[{"rounded-se":[h]}],"rounded-ee":[{"rounded-ee":[h]}],"rounded-es":[{"rounded-es":[h]}],"rounded-tl":[{"rounded-tl":[h]}],"rounded-tr":[{"rounded-tr":[h]}],"rounded-br":[{"rounded-br":[h]}],"rounded-bl":[{"rounded-bl":[h]}],"border-w":[{border:[x]}],"border-w-x":[{"border-x":[x]}],"border-w-y":[{"border-y":[x]}],"border-w-s":[{"border-s":[x]}],"border-w-e":[{"border-e":[x]}],"border-w-t":[{"border-t":[x]}],"border-w-r":[{"border-r":[x]}],"border-w-b":[{"border-b":[x]}],"border-w-l":[{"border-l":[x]}],"border-opacity":[{"border-opacity":[Q]}],"border-style":[{border:[...Ue(),"hidden"]}],"divide-x":[{"divide-x":[x]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[x]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Q]}],"divide-style":[{divide:Ue()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...Ue()]}],"outline-offset":[{"outline-offset":[rn,de]}],"outline-w":[{outline:[rn,Rn]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[Q]}],"ring-offset-w":[{"ring-offset":[rn,Rn]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Tn,Qg]}],"shadow-color":[{shadow:[qs]}],opacity:[{opacity:[Q]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ne()}],filter:[{filter:["","none"]}],blur:[{blur:[l]}],brightness:[{brightness:[u]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",Tn,de]}],grayscale:[{grayscale:[F]}],"hue-rotate":[{"hue-rotate":[M]}],invert:[{invert:[E]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[l]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[Q]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[w]}],"border-spacing-x":[{"border-spacing-x":[w]}],"border-spacing-y":[{"border-spacing-y":[w]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Ks,de]}],"translate-x":[{"translate-x":[se]}],"translate-y":[{"translate-y":[se]}],"skew-x":[{"skew-x":[he]}],"skew-y":[{"skew-y":[he]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[rn,Rn,Na]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Wg=bg(Vg);var jf={info:void 0,warn:"var(--c-amber)",error:"var(--c-red)"};function Kg(i){return new Date(i).toLocaleTimeString("en-US",{hour12:!1})}function qg({events:i,onClear:s}){return f.jsxs("div",{"data-testid":"console-log",className:"flex h-full flex-col overflow-hidden rounded-[3px] border border-border",children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-2",children:[f.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground",children:"Console"}),f.jsxs("button",{type:"button",onClick:s,className:"ml-auto flex items-center gap-1 rounded-[3px] px-2 py-1 text-[11px] text-muted-foreground hover:bg-accent",children:[f.jsx(ug,{className:"h-2.5 w-2.5"}),"Clear"]})]}),f.jsxs("div",{className:"flex-1 space-y-0.5 overflow-auto p-3",children:[i.length===0?f.jsx("p",{className:"font-mono text-[11px] text-muted-foreground/50",children:"No events yet."}):i.map(l=>f.jsxs("div",{className:"flex items-start gap-3 py-0.5 font-mono text-[11px]",children:[f.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground/30",children:Kg(l.timestamp)}),f.jsx("span",{className:"w-9 shrink-0 text-right text-[10px]",style:{color:jf[l.level]},children:l.level==="info"?f.jsx("span",{className:"text-muted-foreground/40",children:l.level}):l.level}),f.jsx("span",{className:l.level==="info"?"text-foreground/65":"",style:{color:jf[l.level]},children:l.message})]},l.id)),f.jsxs("div",{className:"flex items-center gap-1.5 pt-2",children:[f.jsx("span",{className:"font-mono text-[11px]",style:{color:"var(--c-green)"},children:"❯"}),f.jsx("span",{className:"animate-pulse font-mono text-[11px] text-muted-foreground/25",children:"█"})]})]})]})}function Nt(...i){return Wg(pg(i))}function Mn({className:i}){return f.jsx(Iy,{className:Nt("h-3 w-3 animate-spin text-muted-foreground",i),"aria-hidden":"true"})}function gh({node:i,depth:s,selectedPath:l,onSelectFile:u}){var x;const[d,h]=J.useState(s<1),w=i.type==="file"&&i.path===l;return f.jsxs("div",{children:[f.jsxs("div",{role:i.type==="file"?"button":void 0,"aria-pressed":i.type==="file"?w:void 0,className:Nt("mx-1 flex cursor-pointer select-none items-center gap-1.5 rounded-[2px] py-[3px] pr-2 hover:bg-sidebar-accent",w&&"bg-primary/10"),style:{paddingLeft:`${8+s*14}px`},onClick:()=>{i.type==="directory"?h(N=>!N):u(i.path)},children:[i.type==="directory"?f.jsx("svg",{viewBox:"0 0 24 24",className:Nt("h-2.5 w-2.5 shrink-0 text-muted-foreground/60 transition-transform",d&&"rotate-90"),fill:"none",stroke:"currentColor",strokeWidth:2,children:f.jsx("path",{d:"m9 18 6-6-6-6",strokeLinecap:"round",strokeLinejoin:"round"})}):f.jsx("span",{className:"w-2.5 shrink-0"}),i.type==="directory"?f.jsx(su,{className:"h-3 w-3 shrink-0",style:{color:"var(--c-amber)"}}):f.jsx(Ty,{className:"h-3 w-3 shrink-0",style:{color:"var(--c-blue)"}}),f.jsx("span",{className:Nt("truncate font-mono text-[11px] text-foreground/70",w?"text-foreground":"hover:text-foreground"),children:i.name})]}),i.type==="directory"&&d&&f.jsx("div",{children:(x=i.children)==null?void 0:x.map(N=>f.jsx(gh,{node:N,depth:s+1,selectedPath:l,onSelectFile:u},N.path))})]})}function Gg({tree:i,selectedPath:s,onSelectFile:l,content:u,isContentLoading:d,contentError:h}){const w=(u==null?void 0:u.split(`
|
|
226
|
+
`))??[];return f.jsxs("div",{"data-testid":"files-browser",className:"flex h-full overflow-hidden rounded-[3px] border border-border",children:[f.jsx("nav",{className:"w-48 shrink-0 overflow-y-auto border-r border-border bg-sidebar py-1",children:i.map(x=>f.jsx(gh,{node:x,depth:0,selectedPath:s,onSelectFile:l},x.path))}),f.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border bg-card px-3 py-2",children:[f.jsx(uh,{className:"h-3 w-3 shrink-0",style:{color:"var(--c-blue)"}}),f.jsx("span",{className:"truncate font-mono text-[11px] text-foreground",children:s??"Select a file"})]}),d?f.jsxs("p",{className:"flex items-center gap-1.5 p-3 text-[13px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading file..."]}):h?f.jsx("p",{className:"p-3 text-[13px] text-muted-foreground",children:h}):u===void 0?f.jsx("p",{className:"p-3 font-mono text-[11px] text-muted-foreground",children:"No file selected."}):f.jsxs("div",{className:"flex flex-1 overflow-auto",children:[f.jsx("div",{"aria-hidden":"true",className:"shrink-0 select-none border-r border-border bg-background pr-3 pt-3 text-right font-mono text-[11px] text-muted-foreground/30",style:{minWidth:"44px"},children:w.map((x,N)=>f.jsx("div",{style:{lineHeight:"20px"},children:N+1},N))}),f.jsx("pre",{className:"flex-1 whitespace-pre p-3 font-mono text-[12px] leading-5 text-foreground/80",children:u})]})]})]})}function Yg(i){const s=i.toLowerCase();return s.startsWith("int")||s.startsWith("numeric")||s.startsWith("decimal")||s.startsWith("float")||s.startsWith("double")||s.startsWith("real")||s.startsWith("serial")?"numeric":s.startsWith("bool")?"boolean":s.startsWith("timestamp")||s.startsWith("date")||s.startsWith("time")?"datetime":s.startsWith("char")||s.startsWith("varchar")||s.startsWith("text")||s.startsWith("uuid")||s.startsWith("json")?"text":"other"}function vh({dataType:i}){switch(Yg(i)){case"numeric":return f.jsx(Cf,{className:"h-2.5 w-2.5 shrink-0",style:{color:"var(--c-amber)"}});case"text":return f.jsx(dg,{className:"h-2.5 w-2.5 shrink-0",style:{color:"var(--c-blue)"}});case"boolean":return f.jsx(lg,{className:"h-2.5 w-2.5 shrink-0",style:{color:"var(--c-green)"}});case"datetime":return f.jsx(gy,{className:"h-2.5 w-2.5 shrink-0",style:{color:"var(--c-purple)"}});default:return f.jsx(Cf,{className:"h-2.5 w-2.5 shrink-0 text-muted-foreground"})}}function Xg({table:i}){return f.jsxs("div",{"data-testid":"table-detail",className:"max-w-xl overflow-hidden rounded-[3px] border border-border",children:[f.jsxs("div",{className:"flex items-center gap-2 border-b border-border bg-card px-3 py-2",children:[f.jsx(ou,{className:"h-3 w-3 shrink-0",style:{color:"var(--c-blue)"}}),f.jsx("span",{className:"font-mono text-[12px] font-medium text-foreground",children:i.name}),i.rowCount!==void 0&&f.jsxs("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground",children:["~",i.rowCount.toLocaleString()," row",i.rowCount===1?"":"s"]})]}),f.jsx("div",{className:"bg-background",children:i.columns.map((s,l)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 font-mono text-[11px] hover:bg-accent/50"+(l!==0?" border-t border-border-subtle":""),children:[f.jsx(vh,{dataType:s.dataType}),f.jsx("span",{className:s.isPrimaryKey||s.isForeignKey?"":"text-foreground/80",style:{color:s.isPrimaryKey?"var(--c-amber)":s.isForeignKey?"var(--c-blue)":void 0},children:s.name}),s.isPrimaryKey&&f.jsx("span",{className:"rounded-[2px] border px-1 text-[8px]",style:{color:"var(--c-amber)",borderColor:"color-mix(in srgb, var(--c-amber) 30%, transparent)"},children:"PK"}),s.isForeignKey&&f.jsxs("span",{className:"flex items-center gap-0.5 rounded-[2px] border px-1 text-[8px]",style:{color:"var(--c-blue)",borderColor:"color-mix(in srgb, var(--c-blue) 30%, transparent)"},children:[f.jsx(zy,{className:"h-2 w-2"}),"FK"]}),f.jsx("span",{className:"ml-auto text-[9px] text-muted-foreground/40",children:s.dataType}),s.nullable&&f.jsx("span",{className:"text-[9px] text-muted-foreground/30",children:"null"})]},s.name))}),i.indexes&&i.indexes.length>0&&f.jsx("div",{className:"border-t border-border bg-card px-3 py-2",children:f.jsx("ul",{className:"space-y-0.5 font-mono text-[10px] text-muted-foreground",children:i.indexes.map(s=>f.jsxs("li",{children:[s.name," (",s.columns.join(", "),")",s.primary?" · primary key":s.unique?" · unique":""]},s.name))})})]})}function Zg({tables:i}){return f.jsx("div",{"data-testid":"schema-grid",className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))"},children:i.map(s=>f.jsx(Xg,{table:s},`${s.schema}.${s.name}`))})}var bf={connected:"var(--c-green)",disconnected:"var(--c-red)",unconfigured:"rgb(var(--muted-foreground))"};function Jg(i,s){return{id:"connection",name:i??"not connected",type:"connection",children:s.map(l=>({id:`schema:${l.name}`,name:l.name,type:"schema",children:l.tables.map(u=>({id:`table:${l.name}:${u}`,name:u,type:"table",schema:l.name}))}))}}function xh(i,s,l=[]){const u=new Set,d=[...l,i.id];if(i.name.toLowerCase().includes(s.toLowerCase()))for(const h of d)u.add(h);for(const h of i.children??[])for(const w of xh(h,s,d))u.add(w);return u}function ev(i,s){if(!s)return i;const l=i.toLowerCase().indexOf(s.toLowerCase());return l===-1?i:f.jsxs(f.Fragment,{children:[i.slice(0,l),f.jsx("mark",{className:"rounded-[1px] bg-[color-mix(in_srgb,var(--c-blue)_25%,transparent)] text-[var(--c-blue)]",children:i.slice(l,l+s.length)}),i.slice(l+s.length)]})}function wh({node:i,depth:s,query:l,matchIds:u,selected:d,onSelect:h,status:w}){var I;const[x,N]=J.useState(s<2),F=l.length>0&&u.has(i.id),M=l.length>0?F:x;if(l.length>0&&!u.has(i.id))return null;const E=!!(i.children&&i.children.length>0),O=i.type==="table"&&(d==null?void 0:d.schema)===i.schema&&(d==null?void 0:d.table)===i.name;return f.jsxs("div",{children:[f.jsxs("div",{role:i.type==="table"?"button":void 0,"aria-pressed":i.type==="table"?O:void 0,className:Nt("mx-1 flex cursor-pointer select-none items-center gap-1.5 rounded-[2px] py-[3px] pr-2 hover:bg-sidebar-accent",O&&"bg-primary/10"),style:{paddingLeft:`${8+s*14}px`},onClick:()=>{E&&N(U=>!U),i.type==="table"&&i.schema&&h(i.schema,i.name)},children:[E?f.jsx("svg",{viewBox:"0 0 24 24",className:Nt("h-2.5 w-2.5 shrink-0 text-muted-foreground/60 transition-transform",M&&"rotate-90"),fill:"none",stroke:"currentColor",strokeWidth:2,children:f.jsx("path",{d:"m9 18 6-6-6-6",strokeLinecap:"round",strokeLinejoin:"round"})}):f.jsx("span",{className:"w-2.5 shrink-0"}),i.type==="connection"&&f.jsx(Sy,{className:"h-1.5 w-1.5 shrink-0",fill:bf[w],style:{color:bf[w]}}),i.type==="schema"&&f.jsx(su,{className:"h-3 w-3 shrink-0",style:{color:"var(--c-amber)"}}),i.type==="table"&&f.jsx(ou,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),f.jsx("span",{className:Nt("truncate font-mono text-[11px] text-foreground/70",O?"text-foreground":"hover:text-foreground"),children:ev(i.name,l)})]}),E&&M&&f.jsx("div",{children:(I=i.children)==null?void 0:I.map(U=>f.jsx(wh,{node:U,depth:s+1,query:l,matchIds:u,selected:d,onSelect:h,status:w},U.id))})]})}function tv({target:i,status:s,schemas:l,selected:u,onSelect:d}){const[h,w]=J.useState(""),x=J.useMemo(()=>Jg(i,l),[i,l]),N=J.useMemo(()=>h.trim().length>1?xh(x,h.trim()):new Set,[x,h]),F=h.trim();return f.jsxs("div",{"data-testid":"schema-tree",className:"flex h-full flex-col",children:[f.jsx("div",{className:"shrink-0 border-b border-border px-2 py-2",children:f.jsxs("div",{className:"flex items-center gap-1.5 rounded-[3px] border border-border bg-background px-2 py-1.5",children:[f.jsxs("svg",{viewBox:"0 0 24 24",className:"h-2.5 w-2.5 shrink-0 text-muted-foreground/50",fill:"none",stroke:"currentColor",strokeWidth:2,children:[f.jsx("circle",{cx:"11",cy:"11",r:"8"}),f.jsx("path",{d:"m21 21-4.35-4.35",strokeLinecap:"round",strokeLinejoin:"round"})]}),f.jsx("input",{type:"text",value:h,onChange:M=>w(M.target.value),placeholder:"Search tables, schemas...","aria-label":"Search tables",className:"w-full min-w-0 bg-transparent font-mono text-[11px] text-foreground outline-none placeholder:text-muted-foreground/40"})]})}),f.jsx("nav",{className:"flex-1 overflow-y-auto py-1",children:F.length>1&&N.size===0?f.jsx("div",{className:"px-3 py-4 text-center font-mono text-[11px] text-muted-foreground/40",children:"no results"}):f.jsx(wh,{node:x,depth:0,query:F.length>1?F:"",matchIds:N,selected:u,onSelect:d,status:s})})]})}function nv({target:i,status:s,schemas:l,selected:u,onSelect:d,isLoading:h,isError:w,onRetry:x,open:N,onOpenChange:F}){return f.jsxs(f.Fragment,{children:[N&&f.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>F(!1),"aria-hidden":"true"}),f.jsx("aside",{className:Nt("fixed inset-y-0 left-0 z-50 flex w-64 flex-col border-r border-sidebar-border bg-sidebar transition-transform duration-150","md:static md:z-auto md:translate-x-0 md:transition-none",N?"translate-x-0":"-translate-x-full",!N&&"md:w-8"),children:N?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-2",children:[f.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground/60",children:"Explorer"}),f.jsx("button",{type:"button","aria-label":"Collapse sidebar",onClick:()=>F(!1),className:"ml-auto rounded p-0.5 text-muted-foreground hover:bg-sidebar-accent hover:text-foreground",children:f.jsx(Vy,{className:"h-3 w-3"})})]}),f.jsx("div",{className:"min-h-0 flex-1",children:h?f.jsxs("p",{className:"flex items-center gap-1.5 px-3 py-2 font-mono text-[11px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading schemas..."]}):w?f.jsxs("div",{className:"px-3 py-2 font-mono text-[11px] text-muted-foreground",children:["Failed to load schemas."," ",f.jsx("button",{type:"button",onClick:x,className:"text-primary underline",children:"Retry"})]}):f.jsx(tv,{target:i,status:s,schemas:l,selected:u,onSelect:(M,E)=>{d(M,E),window.innerWidth<768&&F(!1)}})})]}):f.jsx("div",{className:"hidden flex-col items-center gap-2 px-1.5 py-2 md:flex",children:f.jsx("button",{type:"button","aria-label":"Expand sidebar",onClick:()=>F(!0),className:"rounded-md p-1 text-muted-foreground hover:bg-sidebar-accent hover:text-foreground",children:f.jsx(Ky,{className:"h-3.5 w-3.5"})})})})]})}var rv={connected:"connected",disconnected:"disconnected",unconfigured:"no database"},sv={connected:"var(--c-green)",disconnected:"var(--c-red)",unconfigured:"rgb(var(--muted-foreground))"};function ja(){return f.jsx("span",{className:"text-border",children:"·"})}function ov({status:i,engine:s,engineVersion:l,schema:u,lastQueryMs:d}){const h=l??s;return f.jsxs("footer",{className:"flex h-6 shrink-0 items-center justify-between gap-3 border-t border-border bg-sidebar px-3 sm:px-4 font-mono text-[10px]",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-3 text-muted-foreground/60",children:[f.jsx("span",{style:{color:sv[i]},children:rv[i]}),h&&f.jsxs(f.Fragment,{children:[f.jsx(ja,{}),f.jsx("span",{className:"hidden sm:inline",children:h})]}),u&&f.jsxs(f.Fragment,{children:[f.jsx(ja,{}),f.jsx("span",{className:"hidden truncate sm:inline",children:u})]})]}),f.jsxs("div",{className:"hidden shrink-0 items-center gap-3 text-muted-foreground/40 sm:flex",children:[f.jsx("span",{children:"UTF-8"}),d!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx(ja,{}),f.jsxs("span",{className:"flex items-center gap-1",children:[f.jsx(Ey,{className:"h-2.5 w-2.5"}),d,"ms"]})]})]})]})}var iv=[{id:"sql-editor",label:"SQL Editor",icon:uh},{id:"tables",label:"Tables",icon:ou},{id:"schema",label:"Schema",icon:By},{id:"files",label:"Files",icon:su},{id:"console",label:"Console",icon:og}];function lv({active:i,onChange:s}){return f.jsx("div",{role:"tablist",className:"flex shrink-0 items-end gap-0.5 overflow-x-auto overflow-y-hidden border-b border-border bg-card px-2 pt-1",children:iv.map(({id:l,label:u,icon:d})=>{const h=l===i;return f.jsxs("button",{type:"button",role:"tab","aria-selected":h,onClick:()=>s(l),className:Nt("flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-t-[3px] px-3 py-1.5 text-[11px] font-medium transition-colors",h?"-mb-px border border-border border-b-background bg-background text-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[f.jsx(d,{className:"h-3 w-3"}),u]},l)})})}var av={connected:"bg-[var(--c-green)]",disconnected:"bg-[var(--c-red)]",unconfigured:"bg-muted-foreground"},_f={connected:"Connected",disconnected:"Disconnected",unconfigured:"No database"};function uv(i){const s=i.lastIndexOf("/");return s===-1?{name:i}:{prefix:i.slice(0,s),name:i.slice(s+1)}}function cv({status:i,target:s,theme:l,onToggleTheme:u,onRefresh:d,isRefreshing:h,onToggleSidebar:w}){const x=s?uv(s):null;return f.jsxs("header",{className:"flex h-9 shrink-0 items-center border-b border-border bg-card px-3 sm:px-4",children:[f.jsx("button",{type:"button",onClick:w,"aria-label":"Toggle sidebar",className:"mr-2 rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground md:hidden",children:f.jsx(Ay,{className:"h-4 w-4"})}),f.jsx("h1",{className:"m-0 mr-4 shrink-0 font-mono text-[13px] font-semibold tracking-tight text-foreground",children:"Humb"}),f.jsx("div",{className:"mr-4 hidden h-3.5 w-px shrink-0 bg-border sm:block"}),f.jsx("div",{className:"flex min-w-0 items-center gap-0 truncate font-mono text-[11px]",children:x?f.jsxs(f.Fragment,{children:[x.prefix&&f.jsx("span",{className:"hidden truncate text-muted-foreground/60 sm:inline",children:x.prefix}),x.prefix&&f.jsx(ah,{className:"mx-1 hidden h-3 w-3 shrink-0 text-border sm:inline"}),f.jsx("span",{className:"truncate font-medium text-foreground/80",children:x.name})]}):f.jsx("span",{className:"text-muted-foreground/60",children:"not connected"})}),f.jsxs("span",{"data-testid":"status-badge","data-status":i,title:_f[i],className:"ml-3 flex shrink-0 items-center gap-1.5",children:[f.jsx("span",{className:Nt("h-1.5 w-1.5 rounded-full",av[i])}),f.jsx("span",{"data-testid":"connection-summary",className:"font-mono text-[11px] text-muted-foreground",children:_f[i]})]}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-0.5",children:[f.jsx("button",{type:"button",onClick:u,title:l==="dark"?"Switch to light":"Switch to dark","aria-label":"Toggle theme",className:"rounded-md p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground",children:l==="dark"?f.jsx(ng,{className:"h-3.5 w-3.5"}):f.jsx(Qy,{className:"h-3.5 w-3.5"})}),f.jsx("button",{type:"button",onClick:d,disabled:h,"aria-label":"Refresh",className:"rounded-md p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground disabled:opacity-50",children:f.jsx(ch,{className:Nt("h-3.5 w-3.5",h&&"animate-spin")})}),f.jsx("button",{type:"button","aria-label":"Settings",disabled:!0,className:"cursor-not-allowed rounded-md p-1.5 text-muted-foreground opacity-50",children:f.jsx(eg,{className:"h-3.5 w-3.5"})})]})]})}function Br(i){return i==null?"":typeof i=="string"?i:JSON.stringify(i)}function Pf(i,s){const l=d=>{const h=Br(d);return/[",\n]/.test(h)?`"${h.replace(/"/g,'""')}"`:h},u=[i.map(l).join(",")];for(const d of s)u.push(i.map(h=>l(d[h])).join(","));return u.join(`
|
|
227
|
+
`)}function dv(i,s){const l=new Blob([s],{type:"text/csv;charset=utf-8"}),u=URL.createObjectURL(l),d=document.createElement("a");d.href=u,d.download=i,d.click(),URL.revokeObjectURL(u)}function fv({rowPage:i,columns:s=[],tableName:l,approxRowCount:u,page:d,canGoPrevious:h,canGoNext:w,onPrevious:x,onNext:N,onRefresh:F}){const[M,E]=J.useState(""),[O,I]=J.useState(null),[U,R]=J.useState(null),[P,Q]=J.useState(new Set),re=J.useMemo(()=>new Map(s.map(H=>[H.name,H])),[s]),oe=J.useMemo(()=>i.rows.map((H,Z)=>({row:H,index:Z})),[i.rows]),D=J.useMemo(()=>{const H=M.trim().toLowerCase();return H?oe.filter(({row:Z})=>Object.values(Z).some(X=>Br(X).toLowerCase().includes(H))):oe},[oe,M]),ie=J.useMemo(()=>{if(!O||!U)return D;const H=[...D];return H.sort((Z,X)=>{const ye=Br(Z.row[O]),je=Br(X.row[O]),Le=ye<je?-1:ye>je?1:0;return U==="asc"?Le:-Le}),H},[D,O,U]);function he(H){O!==H?(I(H),R("asc")):U==="asc"?R("desc"):(I(null),R(null))}function pe(H){Q(Z=>{const X=new Set(Z);return X.has(H)?X.delete(H):X.add(H),X})}async function se(){const H=ie.filter(({index:Z})=>P.has(Z)).map(({row:Z})=>Z);await navigator.clipboard.writeText(Pf(i.columns,H))}function ce(){dv(`${l??"rows"}.csv`,Pf(i.columns,ie.map(({row:H})=>H)))}return f.jsxs("div",{className:"flex h-full flex-col",children:[f.jsxs("div",{className:"flex shrink-0 flex-wrap items-center gap-2 border-b border-border px-3 py-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5 rounded-[3px] bg-accent px-2 py-1 font-mono text-[11px] text-muted-foreground",children:[f.jsx(Zy,{className:"h-2.5 w-2.5"}),f.jsx("input",{value:M,onChange:H=>E(H.target.value),placeholder:"Filter this page...","aria-label":"Filter this page",title:"Filters only the rows currently loaded on this page, not the whole table",className:"w-28 min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground sm:w-36"}),M&&f.jsx("button",{type:"button",onClick:()=>E(""),"aria-label":"Clear filter",children:f.jsx(hg,{className:"h-2.5 w-2.5"})})]}),f.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[P.size>0&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"font-mono text-[10px]",style:{color:"var(--c-blue)"},children:[P.size," selected"]}),f.jsxs("button",{type:"button",onClick:()=>void se(),className:"flex items-center gap-1 rounded-[3px] px-2 py-1 text-[11px] text-muted-foreground hover:bg-accent hover:text-foreground",children:[f.jsx(jy,{className:"h-3 w-3"})," Copy as CSV"]})]}),f.jsx("button",{type:"button",onClick:ce,"aria-label":"Export this page as CSV",title:"Exports the rows currently loaded on this page, not the whole table",className:"rounded-[3px] p-1 text-muted-foreground hover:bg-accent hover:text-foreground",children:f.jsx(_y,{className:"h-3 w-3"})}),F&&f.jsx("button",{type:"button",onClick:F,"aria-label":"Refresh rows",className:"rounded-[3px] p-1 text-muted-foreground hover:bg-accent hover:text-foreground",children:f.jsx(ch,{className:"h-3 w-3"})})]})]}),s.length>0&&f.jsxs("div",{className:"flex shrink-0 overflow-x-auto overflow-y-hidden border-b border-border bg-card",children:[f.jsx("div",{className:"w-8 shrink-0 border-r border-border"}),f.jsx("div",{className:"w-8 shrink-0 border-r border-border"}),i.columns.map(H=>{const Z=re.get(H);return f.jsxs("div",{className:"flex min-w-[120px] shrink-0 items-center gap-1 whitespace-nowrap border-r border-border px-3 py-1 font-mono text-[9px] text-muted-foreground",children:[Z&&f.jsx(vh,{dataType:Z.dataType}),f.jsx("span",{children:(Z==null?void 0:Z.dataType)??"unknown"}),(Z==null?void 0:Z.isPrimaryKey)&&f.jsx("span",{className:"ml-1 font-bold",style:{color:"var(--c-amber)"},children:"PK"})]},H)})]}),i.rows.length===0?f.jsx("div",{"data-testid":"rows-table",className:"flex-1 p-3",children:f.jsx("p",{className:"font-mono text-[11px] text-muted-foreground",children:"No rows in this table."})}):f.jsx("div",{"data-testid":"rows-table",className:"flex-1 overflow-auto",children:f.jsxs("table",{className:"w-full border-collapse font-mono text-[11px]",children:[f.jsx("thead",{className:"sticky top-0 z-10 bg-card",children:f.jsxs("tr",{children:[f.jsx("th",{className:"w-8 border-b border-r border-border px-2 py-2"}),f.jsx("th",{className:"w-8 border-b border-r border-border px-2 py-2 text-right font-normal text-muted-foreground/40",children:"#"}),i.columns.map(H=>f.jsx("th",{onClick:()=>he(H),className:"group cursor-pointer whitespace-nowrap border-b border-r border-border px-3 py-2 text-left font-medium text-muted-foreground hover:text-foreground",children:f.jsxs("div",{className:"flex items-center gap-1.5",children:[H,f.jsx(my,{className:Nt("h-2.5 w-2.5 transition-opacity",O===H?"text-primary opacity-100":"opacity-0 group-hover:opacity-40")})]})},H))]})}),f.jsx("tbody",{children:ie.map(({row:H,index:Z},X)=>f.jsxs("tr",{onClick:()=>pe(Z),className:Nt("cursor-pointer border-b border-border-subtle hover:bg-accent/40",P.has(Z)&&"bg-primary/5"),children:[f.jsx("td",{className:"w-8 border-r border-border-subtle px-2 py-1.5 text-center",children:f.jsx("input",{type:"checkbox",checked:P.has(Z),onChange:()=>pe(Z),onClick:ye=>ye.stopPropagation(),className:"h-3 w-3 accent-primary","aria-label":`Select row ${X+1}`})}),f.jsx("td",{className:"w-8 border-r border-border-subtle px-2 py-1.5 text-right text-muted-foreground/30",children:X+1}),i.columns.map(ye=>f.jsx("td",{className:"whitespace-nowrap border-r border-border-subtle px-3 py-1.5 text-foreground/80",children:H[ye]===null||H[ye]===void 0?f.jsx("span",{className:"italic text-muted-foreground/30",children:"null"}):Br(H[ye])},ye))]},Z))})]})}),f.jsxs("div",{className:"flex shrink-0 items-center justify-between border-t border-border bg-card px-3 py-1.5",children:[f.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground",children:[ie.length.toLocaleString()," of"," ",u!==void 0?`~${u.toLocaleString()}`:ie.length.toLocaleString()," ","rows",l&&f.jsxs(f.Fragment,{children:[" · ",l]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{type:"button",disabled:!h,onClick:x,"aria-label":"Previous page",className:"rounded-[2px] p-0.5 text-muted-foreground hover:bg-accent disabled:opacity-30",children:f.jsx(xy,{className:"h-3.5 w-3.5"})}),f.jsxs("span",{className:"px-1 font-mono text-[10px] text-muted-foreground",children:["Page ",d+1]}),f.jsx("button",{type:"button",disabled:!w,onClick:N,"aria-label":"Next page",className:"rounded-[2px] p-0.5 text-muted-foreground hover:bg-accent disabled:opacity-30",children:f.jsx(ah,{className:"h-3.5 w-3.5"})})]})]})]})}function hv({sql:i,onSqlChange:s,onRun:l,isRunning:u,result:d,error:h}){const w=!u&&i.trim().length>0,x=i.split(`
|
|
228
|
+
`).length,N=J.useRef(null);function F(E){(E.ctrlKey||E.metaKey)&&E.key==="Enter"&&(E.preventDefault(),w&&l())}function M(E){N.current&&(N.current.scrollTop=E.currentTarget.scrollTop)}return f.jsxs("div",{"data-testid":"query-runner",className:"flex h-full flex-col overflow-hidden rounded-[3px] border border-border",children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-2",children:[f.jsxs("button",{type:"button",onClick:l,disabled:!w,className:"flex items-center gap-1.5 rounded-[3px] bg-primary px-3 py-1 text-[11px] font-medium text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-50",children:[u?f.jsx(Mn,{className:"h-2.5 w-2.5 text-primary-foreground"}):f.jsx(Gy,{className:"h-2.5 w-2.5"}),u?"Running...":"Run"]}),f.jsx("span",{className:"hidden font-mono text-[10px] text-muted-foreground sm:inline",children:"⌘ Enter"}),f.jsxs("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground",children:[x," line",x===1?"":"s"]})]}),f.jsxs("div",{className:"flex min-h-[8rem] flex-1 overflow-hidden",children:[f.jsx("div",{ref:N,"aria-hidden":"true",className:"shrink-0 select-none overflow-hidden border-r border-border bg-background pr-3 pt-3 text-right font-mono text-[11px] text-muted-foreground/30",style:{minWidth:"44px"},children:Array.from({length:x},(E,O)=>f.jsx("div",{style:{lineHeight:"20px"},children:O+1},O))}),f.jsx("textarea",{value:i,onChange:E=>s(E.target.value),onKeyDown:F,onScroll:M,placeholder:"SELECT * FROM my_table LIMIT 10",spellCheck:!1,className:"flex-1 resize-none overflow-auto bg-background p-3 font-mono text-[12px] leading-5 text-foreground outline-none",style:{caretColor:"var(--c-blue)"}})]}),h&&f.jsx("p",{"data-testid":"query-error",className:"border-t border-border px-3 py-2 font-mono text-[11px]",style:{color:"var(--c-red)"},children:h}),d&&!h&&f.jsx("div",{"data-testid":"query-result",className:"max-h-64 shrink-0 overflow-auto border-t border-border",children:d.rows.length===0?f.jsx("p",{className:"p-3 font-mono text-[11px] text-muted-foreground",children:"Query returned no rows."}):f.jsxs("table",{className:"w-full border-collapse font-mono text-[11px]",children:[f.jsx("thead",{className:"sticky top-0 bg-card",children:f.jsx("tr",{children:d.columns.map(E=>f.jsx("th",{className:"whitespace-nowrap border-b border-r border-border px-3 py-1.5 text-left font-medium text-muted-foreground",children:E},E))})}),f.jsx("tbody",{children:d.rows.map((E,O)=>f.jsx("tr",{className:"border-b border-border-subtle",children:d.columns.map(I=>f.jsx("td",{className:"whitespace-nowrap border-r border-border-subtle px-3 py-1.5 text-foreground/80",children:Br(E[I])},I))},O))})]})})]})}async function kh(i,s){const l=await fetch(`/api/tables/${encodeURIComponent(i)}/${encodeURIComponent(s)}`);if(!l.ok)throw new Error(`Failed to load table ${i}.${s} (status ${l.status})`);return await l.json()}function pv(i){const s=(i??[]).flatMap(u=>u.tables.map(d=>({schema:u.name,table:d}))),l=ey({queries:s.map(({schema:u,table:d})=>({queryKey:["table",u,d],queryFn:()=>kh(u,d),retry:!1}))});return{tables:l.map(u=>u.data).filter(u=>!!u),isLoading:l.some(u=>u.isLoading),isError:l.some(u=>u.isError),refetch:()=>l.forEach(u=>void u.refetch())}}async function mv(){const i=await fetch("/api/console");if(!i.ok)throw new Error(`Failed to load console events (status ${i.status})`);return await i.json()}async function yv(){const i=await fetch("/api/console",{method:"DELETE"});if(!i.ok)throw new Error(`Failed to clear console events (status ${i.status})`);return await i.json()}const Sh=["console"];function gv(i){return gr({queryKey:Sh,queryFn:mv,enabled:i.enabled,refetchInterval:i.enabled?3e3:!1,retry:!1})}function vv(){const i=Ei();return ih({mutationFn:yv,onSuccess:s=>{i.setQueryData(Sh,s)}})}async function xv(){const i=await fetch("/api/files");if(!i.ok)throw new Error(`Failed to load files (status ${i.status})`);return await i.json()}async function wv(i){const s=await fetch(`/api/files/content?path=${encodeURIComponent(i)}`);if(!s.ok)throw new Error(`Failed to load file ${i} (status ${s.status})`);return await s.json()}function kv(i){return gr({queryKey:["files"],queryFn:xv,enabled:i.enabled,retry:!1})}function Sv(i){return gr({queryKey:["file-content",i],queryFn:()=>wv(i),enabled:!!i,retry:!1})}async function Cv(){const i=await fetch("/api/health");if(!i.ok)throw new Error(`Health check failed with status ${i.status}`);return await i.json()}function Ev(){return gr({queryKey:["health"],queryFn:Cv,retry:!1})}async function Nv(){const i=await fetch("/api/overview");if(!i.ok)throw new Error(`Failed to load overview (status ${i.status})`);return await i.json()}function jv(i){return gr({queryKey:["overview"],queryFn:Nv,enabled:i.enabled,retry:!1})}async function bv(i,s,l,u){const d=new URLSearchParams({page:String(l),pageSize:String(u)}),h=await fetch(`/api/tables/${encodeURIComponent(i)}/${encodeURIComponent(s)}/rows?${d}`);if(!h.ok)throw new Error(`Failed to load rows for ${i}.${s} (status ${h.status})`);return await h.json()}const _v=25;function Pv(i,s,l){return gr({queryKey:["rows",i,s,l],queryFn:()=>bv(i,s,l,_v),enabled:!!(i&&s),retry:!1,placeholderData:(u,d)=>{const h=d==null?void 0:d.queryKey;return(h==null?void 0:h[1])===i&&(h==null?void 0:h[2])===s?u:void 0}})}async function Rv(i){const s=await fetch("/api/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sql:i})});if(!s.ok){const l=await s.json().catch(()=>{});throw new Error((l==null?void 0:l.error)??`Query failed (status ${s.status}).`)}return await s.json()}function Tv(){return ih({mutationFn:Rv})}function Ov(i,s){return gr({queryKey:["table",i,s],queryFn:()=>kh(i,s),enabled:!!(i&&s),retry:!1})}const Mv="humb-theme";function Lv(){return document.documentElement.classList.contains("dark")?"dark":"light"}function zv(){const[i,s]=J.useState(Lv),l=J.useCallback(()=>{s(u=>{const d=u==="dark"?"light":"dark";return document.documentElement.classList.toggle("dark",d==="dark"),localStorage.setItem(Mv,d),d})},[]);return{theme:i,toggleTheme:l}}function Fv(){var Ne,A,Y,$,v,j,ae,fe;const{data:i,isLoading:s,isError:l,refetch:u}=Ev(),d=l?"disconnected":(i==null?void 0:i.database)??"unconfigured",[h,w]=J.useState(),[x,N]=J.useState(0),[F,M]=J.useState(""),[E,O]=J.useState("sql-editor"),[I,U]=J.useState(()=>window.innerWidth>=768),[R,P]=J.useState(),[Q,re]=J.useState(),{theme:oe,toggleTheme:D}=zv(),ie=jv({enabled:d==="connected"}),he=Ov(h==null?void 0:h.schema,h==null?void 0:h.table),pe=Pv(h==null?void 0:h.schema,h==null?void 0:h.table,x),se=pv((Ne=ie.data)==null?void 0:Ne.schemas),ce=kv({enabled:d==="connected"}),H=Sv(Q),Z=gv({enabled:d==="connected"}),X=vv(),ye=Tv();function je(ue,ve){w({schema:ue,table:ve}),N(0),O("tables")}function Le(){u(),d==="connected"&&(ie.refetch(),ce.refetch(),Z.refetch())}function Ue(){const ue=performance.now();ye.mutate(F,{onSuccess:()=>P(Math.round(performance.now()-ue))})}return f.jsxs("div",{className:"flex h-screen flex-col bg-background text-foreground",children:[f.jsx(cv,{status:d,target:(i==null?void 0:i.target)??null,theme:oe,onToggleTheme:D,onRefresh:Le,isRefreshing:s,onToggleSidebar:()=>U(ue=>!ue)}),f.jsxs("div",{className:"flex min-h-0 flex-1",children:[f.jsx(nv,{target:(i==null?void 0:i.target)??null,status:d,schemas:((A=ie.data)==null?void 0:A.schemas)??[],selected:h,onSelect:je,isLoading:d==="connected"&&ie.isLoading,isError:ie.isError,onRetry:()=>ie.refetch(),open:I,onOpenChange:U}),f.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[f.jsx(lv,{active:E,onChange:O}),f.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-3 sm:p-4",children:d!=="connected"?f.jsx("p",{className:"flex items-center gap-1.5 text-[13px] text-muted-foreground",children:s?f.jsxs(f.Fragment,{children:[f.jsx(Mn,{})," Checking connection..."]}):"No database is connected yet. Launch Humb with a Postgres or SQLite target to get started."}):E==="sql-editor"?f.jsx(hv,{sql:F,onSqlChange:M,onRun:Ue,isRunning:ye.isPending,result:ye.data,error:ye.error instanceof Error?ye.error.message:void 0}):E==="tables"?h?pe.isLoading?f.jsxs("p",{className:"flex items-center gap-1.5 text-[13px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading rows..."]}):pe.isError?f.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Failed to load rows."," ",f.jsx("button",{type:"button",onClick:()=>pe.refetch(),className:"text-primary underline",children:"Retry"})]}):pe.data?f.jsx(fv,{rowPage:pe.data,columns:(Y=he.data)==null?void 0:Y.columns,tableName:h.table,approxRowCount:($=he.data)==null?void 0:$.rowCount,page:x,canGoPrevious:x>0,canGoNext:pe.data.rows.length===pe.data.pageSize,onPrevious:()=>N(ue=>Math.max(0,ue-1)),onNext:()=>N(ue=>ue+1),onRefresh:()=>pe.refetch()}):null:f.jsx("p",{className:"text-[13px] text-muted-foreground",children:"Select a table from the sidebar."}):E==="schema"?se.isLoading?f.jsxs("p",{className:"flex items-center gap-1.5 text-[13px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading tables..."]}):se.isError?f.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Failed to load one or more tables."," ",f.jsx("button",{type:"button",onClick:()=>se.refetch(),className:"text-primary underline",children:"Retry"})]}):se.tables.length===0?f.jsx("p",{className:"text-[13px] text-muted-foreground",children:"No tables found."}):f.jsx(Zg,{tables:se.tables}):E==="files"?ce.isLoading?f.jsxs("p",{className:"flex items-center gap-1.5 text-[13px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading files..."]}):ce.isError?f.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Failed to load files."," ",f.jsx("button",{type:"button",onClick:()=>ce.refetch(),className:"text-primary underline",children:"Retry"})]}):(v=ce.data)!=null&&v.enabled?ce.data.tree.length===0?f.jsx("p",{className:"text-[13px] text-muted-foreground",children:"No .sql files found under the configured files directory."}):f.jsx(Gg,{tree:ce.data.tree,selectedPath:Q,onSelectFile:re,content:(j=H.data)==null?void 0:j.content,isContentLoading:H.isLoading,contentError:H.isError?"Failed to load file.":void 0}):f.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["File browsing is disabled. Launch Humb with"," ",f.jsx("code",{className:"font-mono",children:"--files-dir <dir>"})," to browse and preview"," ",f.jsx("code",{className:"font-mono",children:".sql"})," files."]}):E==="console"?Z.isLoading?f.jsxs("p",{className:"flex items-center gap-1.5 text-[13px] text-muted-foreground",children:[f.jsx(Mn,{})," Loading console..."]}):Z.isError?f.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Failed to load console events."," ",f.jsx("button",{type:"button",onClick:()=>Z.refetch(),className:"text-primary underline",children:"Retry"})]}):f.jsx(qg,{events:((ae=Z.data)==null?void 0:ae.events)??[],onClear:()=>X.mutate()}):null})]})]}),f.jsx(ov,{status:d,engine:(fe=ie.data)==null?void 0:fe.engine,engineVersion:i==null?void 0:i.engineVersion,schema:h==null?void 0:h.schema,lastQueryMs:R})]})}const Iv=new Gm,Ch=document.getElementById("root");if(!Ch)throw new Error("Root element #root not found");ly.createRoot(Ch).render(f.jsx(J.StrictMode,{children:f.jsx(Ym,{client:Iv,children:f.jsx(Fv,{})})}));
|
|
229
|
+
//# sourceMappingURL=index-CENj019G.js.map
|