diff --git "a/assets/index-DZirUwi4.js" "b/assets/index-DZirUwi4.js" new file mode 100644--- /dev/null +++ "b/assets/index-DZirUwi4.js" @@ -0,0 +1,79 @@ +(function(){const $=document.createElement("link").relList;if($&&$.supports&&$.supports("modulepreload"))return;for(const Y of document.querySelectorAll('link[rel="modulepreload"]'))m(Y);new MutationObserver(Y=>{for(const J of Y)if(J.type==="childList")for(const al of J.addedNodes)al.tagName==="LINK"&&al.rel==="modulepreload"&&m(al)}).observe(document,{childList:!0,subtree:!0});function B(Y){const J={};return Y.integrity&&(J.integrity=Y.integrity),Y.referrerPolicy&&(J.referrerPolicy=Y.referrerPolicy),Y.crossOrigin==="use-credentials"?J.credentials="include":Y.crossOrigin==="anonymous"?J.credentials="omit":J.credentials="same-origin",J}function m(Y){if(Y.ep)return;Y.ep=!0;const J=B(Y);fetch(Y.href,J)}})();var Wc={exports:{}},Te={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var B0;function gr(){if(B0)return Te;B0=1;var z=Symbol.for("react.transitional.element"),$=Symbol.for("react.fragment");function B(m,Y,J){var al=null;if(J!==void 0&&(al=""+J),Y.key!==void 0&&(al=""+Y.key),"key"in Y){J={};for(var ol in Y)ol!=="key"&&(J[ol]=Y[ol])}else J=Y;return Y=J.ref,{$$typeof:z,type:m,key:al,ref:Y!==void 0?Y:null,props:J}}return Te.Fragment=$,Te.jsx=B,Te.jsxs=B,Te}var G0;function Sr(){return G0||(G0=1,Wc.exports=gr()),Wc.exports}var R=Sr(),$c={exports:{}},X={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var X0;function br(){if(X0)return X;X0=1;var z=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),al=Symbol.for("react.context"),ol=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),fl=Symbol.iterator;function cl(s){return s===null||typeof s!="object"?null:(s=fl&&s[fl]||s["@@iterator"],typeof s=="function"?s:null)}var rl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bl=Object.assign,Z={};function V(s,T,q){this.props=s,this.context=T,this.refs=Z,this.updater=q||rl}V.prototype.isReactComponent={},V.prototype.setState=function(s,T){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,T,"setState")},V.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function El(){}El.prototype=V.prototype;function Tl(s,T,q){this.props=s,this.context=T,this.refs=Z,this.updater=q||rl}var Ml=Tl.prototype=new El;Ml.constructor=Tl,Bl(Ml,V.prototype),Ml.isPureReactComponent=!0;var wt=Array.isArray,ll={H:null,A:null,T:null,S:null},Kl=Object.prototype.hasOwnProperty;function Wt(s,T,q,H,_,k){return q=k.ref,{$$typeof:z,type:s,key:T,ref:q!==void 0?q:null,props:k}}function $t(s,T){return Wt(s.type,T,void 0,void 0,void 0,s.props)}function p(s){return typeof s=="object"&&s!==null&&s.$$typeof===z}function tl(s){var T={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(q){return T[q]})}var at=/\/+/g;function Ut(s,T){return typeof s=="object"&&s!==null&&s.key!=null?tl(""+s.key):T.toString(36)}function Et(){}function Rt(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(Et,Et):(s.status="pending",s.then(function(T){s.status==="pending"&&(s.status="fulfilled",s.value=T)},function(T){s.status==="pending"&&(s.status="rejected",s.reason=T)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Jl(s,T,q,H,_){var k=typeof s;(k==="undefined"||k==="boolean")&&(s=null);var Q=!1;if(s===null)Q=!0;else switch(k){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(s.$$typeof){case z:case $:Q=!0;break;case w:return Q=s._init,Jl(Q(s._payload),T,q,H,_)}}if(Q)return _=_(s),Q=H===""?"."+Ut(s,0):H,wt(_)?(q="",Q!=null&&(q=Q.replace(at,"$&/")+"/"),Jl(_,T,q,"",function(Al){return Al})):_!=null&&(p(_)&&(_=$t(_,q+(_.key==null||s&&s.key===_.key?"":(""+_.key).replace(at,"$&/")+"/")+Q)),T.push(_)),1;Q=0;var Cl=H===""?".":H+":";if(wt(s))for(var ul=0;ul>>1,s=A[sl];if(0>>1;slY(H,j))_Y(k,H)?(A[sl]=k,A[_]=j,sl=_):(A[sl]=H,A[q]=j,sl=q);else if(_Y(k,j))A[sl]=k,A[_]=j,sl=_;else break l}}return G}function Y(A,G){var j=A.sortIndex-G.sortIndex;return j!==0?j:A.id-G.id}if(z.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var J=performance;z.unstable_now=function(){return J.now()}}else{var al=Date,ol=al.now();z.unstable_now=function(){return al.now()-ol}}var O=[],b=[],w=1,fl=null,cl=3,rl=!1,Bl=!1,Z=!1,V=typeof setTimeout=="function"?setTimeout:null,El=typeof clearTimeout=="function"?clearTimeout:null,Tl=typeof setImmediate<"u"?setImmediate:null;function Ml(A){for(var G=B(b);G!==null;){if(G.callback===null)m(b);else if(G.startTime<=A)m(b),G.sortIndex=G.expirationTime,$(O,G);else break;G=B(b)}}function wt(A){if(Z=!1,Ml(A),!Bl)if(B(O)!==null)Bl=!0,Rt();else{var G=B(b);G!==null&&Jl(wt,G.startTime-A)}}var ll=!1,Kl=-1,Wt=5,$t=-1;function p(){return!(z.unstable_now()-$tA&&p());){var sl=fl.callback;if(typeof sl=="function"){fl.callback=null,cl=fl.priorityLevel;var s=sl(fl.expirationTime<=A);if(A=z.unstable_now(),typeof s=="function"){fl.callback=s,Ml(A),G=!0;break t}fl===B(O)&&m(O),Ml(A)}else m(O);fl=B(O)}if(fl!==null)G=!0;else{var T=B(b);T!==null&&Jl(wt,T.startTime-A),G=!1}}break l}finally{fl=null,cl=j,rl=!1}G=void 0}}finally{G?at():ll=!1}}}var at;if(typeof Tl=="function")at=function(){Tl(tl)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,Et=Ut.port2;Ut.port1.onmessage=tl,at=function(){Et.postMessage(null)}}else at=function(){V(tl,0)};function Rt(){ll||(ll=!0,at())}function Jl(A,G){Kl=V(function(){A(z.unstable_now())},G)}z.unstable_IdlePriority=5,z.unstable_ImmediatePriority=1,z.unstable_LowPriority=4,z.unstable_NormalPriority=3,z.unstable_Profiling=null,z.unstable_UserBlockingPriority=2,z.unstable_cancelCallback=function(A){A.callback=null},z.unstable_continueExecution=function(){Bl||rl||(Bl=!0,Rt())},z.unstable_forceFrameRate=function(A){0>A||125sl?(A.sortIndex=j,$(b,A),B(O)===null&&A===B(b)&&(Z?(El(Kl),Kl=-1):Z=!0,Jl(wt,j-sl))):(A.sortIndex=s,$(O,A),Bl||rl||(Bl=!0,Rt())),A},z.unstable_shouldYield=p,z.unstable_wrapCallback=function(A){var G=cl;return function(){var j=cl;cl=G;try{return A.apply(this,arguments)}finally{cl=j}}}}(Pc)),Pc}var Z0;function Tr(){return Z0||(Z0=1,Fc.exports=Er()),Fc.exports}var Ic={exports:{}},Ql={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var V0;function zr(){if(V0)return Ql;V0=1;var z=li();function $(O){var b="https://react.dev/errors/"+O;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z)}catch($){console.error($)}}return z(),Ic.exports=zr(),Ic.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var K0;function Or(){if(K0)return ze;K0=1;var z=Tr(),$=li(),B=Ar();function m(l){var t="https://react.dev/errors/"+l;if(1)":-1e||i[a]!==h[e]){var g=` +`+i[a].replace(" at new "," at ");return l.displayName&&g.includes("")&&(g=g.replace("",l.displayName)),g}while(1<=a&&0<=e);break}}}finally{Rt=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?Et(u):""}function A(l){switch(l.tag){case 26:case 27:case 5:return Et(l.type);case 16:return Et("Lazy");case 13:return Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return l=Jl(l.type,!1),l;case 11:return l=Jl(l.type.render,!1),l;case 1:return l=Jl(l.type,!0),l;default:return""}}function G(l){try{var t="";do t+=A(l),l=l.return;while(l);return t}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}function j(l){var t=l,u=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,t.flags&4098&&(u=t.return),l=t.return;while(l)}return t.tag===3?u:null}function sl(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function s(l){if(j(l)!==l)throw Error(m(188))}function T(l){var t=l.alternate;if(!t){if(t=j(l),t===null)throw Error(m(188));return t!==l?null:l}for(var u=l,a=t;;){var e=u.return;if(e===null)break;var n=e.alternate;if(n===null){if(a=e.return,a!==null){u=a;continue}break}if(e.child===n.child){for(n=e.child;n;){if(n===u)return s(e),l;if(n===a)return s(e),t;n=n.sibling}throw Error(m(188))}if(u.return!==a.return)u=e,a=n;else{for(var f=!1,c=e.child;c;){if(c===u){f=!0,u=e,a=n;break}if(c===a){f=!0,a=e,u=n;break}c=c.sibling}if(!f){for(c=n.child;c;){if(c===u){f=!0,u=n,a=e;break}if(c===a){f=!0,a=n,u=e;break}c=c.sibling}if(!f)throw Error(m(189))}}if(u.alternate!==a)throw Error(m(190))}if(u.tag!==3)throw Error(m(188));return u.stateNode.current===u?l:t}function q(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=q(l),t!==null)return t;l=l.sibling}return null}var H=Array.isArray,_=B.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},Q=[],Cl=-1;function ul(l){return{current:l}}function Al(l){0>Cl||(l.current=Q[Cl],Q[Cl]=null,Cl--)}function yl(l,t){Cl++,Q[Cl]=l.current,l.current=t}var Tt=ul(null),Oa=ul(null),kt=ul(null),Ae=ul(null);function Oe(l,t){switch(yl(kt,t),yl(Oa,l),yl(Tt,null),l=t.nodeType,l){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?y0(t):0;break;default:if(l=l===8?t.parentNode:t,t=l.tagName,l=l.namespaceURI)l=y0(l),t=r0(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Al(Tt),yl(Tt,t)}function Zu(){Al(Tt),Al(Oa),Al(kt)}function Gn(l){l.memoizedState!==null&&yl(Ae,l);var t=Tt.current,u=r0(t,l.type);t!==u&&(yl(Oa,l),yl(Tt,u))}function _e(l){Oa.current===l&&(Al(Tt),Al(Oa)),Ae.current===l&&(Al(Ae),oe._currentValue=k)}var Xn=Object.prototype.hasOwnProperty,Qn=z.unstable_scheduleCallback,Cn=z.unstable_cancelCallback,$0=z.unstable_shouldYield,k0=z.unstable_requestPaint,zt=z.unstable_now,F0=z.unstable_getCurrentPriorityLevel,ti=z.unstable_ImmediatePriority,ui=z.unstable_UserBlockingPriority,De=z.unstable_NormalPriority,P0=z.unstable_LowPriority,ai=z.unstable_IdlePriority,I0=z.log,lh=z.unstable_setDisableYieldValue,_a=null,kl=null;function th(l){if(kl&&typeof kl.onCommitFiberRoot=="function")try{kl.onCommitFiberRoot(_a,l,void 0,(l.current.flags&128)===128)}catch{}}function Ft(l){if(typeof I0=="function"&&lh(l),kl&&typeof kl.setStrictMode=="function")try{kl.setStrictMode(_a,l)}catch{}}var Fl=Math.clz32?Math.clz32:eh,uh=Math.log,ah=Math.LN2;function eh(l){return l>>>=0,l===0?32:31-(uh(l)/ah|0)|0}var Me=128,Ue=4194304;function Eu(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Re(l,t){var u=l.pendingLanes;if(u===0)return 0;var a=0,e=l.suspendedLanes,n=l.pingedLanes,f=l.warmLanes;l=l.finishedLanes!==0;var c=u&134217727;return c!==0?(u=c&~e,u!==0?a=Eu(u):(n&=c,n!==0?a=Eu(n):l||(f=c&~f,f!==0&&(a=Eu(f))))):(c=u&~e,c!==0?a=Eu(c):n!==0?a=Eu(n):l||(f=u&~f,f!==0&&(a=Eu(f)))),a===0?0:t!==0&&t!==a&&!(t&e)&&(e=a&-a,f=t&-t,e>=f||e===32&&(f&4194176)!==0)?t:a}function Da(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function nh(l,t){switch(l){case 1:case 2:case 4:case 8:return t+250;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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ei(){var l=Me;return Me<<=1,!(Me&4194176)&&(Me=128),l}function ni(){var l=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),l}function Zn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function Ma(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function fh(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,h=l.hiddenUpdates;for(u=f&~u;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ri={},vi={};function hh(l){return Xn.call(vi,l)?!0:Xn.call(ri,l)?!1:dh.test(l)?vi[l]=!0:(ri[l]=!0,!1)}function He(l,t,u){if(hh(t))if(u===null)l.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+u)}}function Ne(l,t,u){if(u===null)l.removeAttribute(t);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+u)}}function Nt(l,t,u,a){if(a===null)l.removeAttribute(u);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(u);return}l.setAttributeNS(t,u,""+a)}}function et(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function mi(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yh(l){var t=mi(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function pe(l){l._valueTracker||(l._valueTracker=yh(l))}function oi(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=mi(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function qe(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var rh=/[\n"\\]/g;function nt(l){return l.replace(rh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Kn(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+et(t)):l.value!==""+et(t)&&(l.value=""+et(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?Jn(l,f,et(t)):u!=null?Jn(l,f,et(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+et(c):l.removeAttribute("name")}function gi(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+et(u):"",t=t!=null?""+et(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function Jn(l,t,u){t==="number"&&qe(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function wu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e=ja),Hi=" ",Ni=!1;function pi(l,t){switch(l){case"keyup":return Ch.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qi(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Fu=!1;function Vh(l,t){switch(l){case"compositionend":return qi(t);case"keypress":return t.which!==32?null:(Ni=!0,Hi);case"textInput":return l=t.data,l===Hi&&Ni?null:l;default:return null}}function Lh(l,t){if(Fu)return l==="compositionend"||!af&&pi(l,t)?(l=Oi(),Ye=Pn=It=null,Fu=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=Ci(u)}}function Vi(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?Vi(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function Li(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=qe(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=qe(l.document)}return t}function ff(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}function Ph(l,t){var u=Li(t);t=l.focusedElem;var a=l.selectionRange;if(u!==t&&t&&t.ownerDocument&&Vi(t.ownerDocument.documentElement,t)){if(a!==null&&ff(t)){if(l=a.start,u=a.end,u===void 0&&(u=l),"selectionStart"in t)t.selectionStart=l,t.selectionEnd=Math.min(u,t.value.length);else if(u=(l=t.ownerDocument||document)&&l.defaultView||window,u.getSelection){u=u.getSelection();var e=t.textContent.length,n=Math.min(a.start,e);a=a.end===void 0?n:Math.min(a.end,e),!u.extend&&n>a&&(e=a,a=n,n=e),e=Zi(t,n);var f=Zi(t,a);e&&f&&(u.rangeCount!==1||u.anchorNode!==e.node||u.anchorOffset!==e.offset||u.focusNode!==f.node||u.focusOffset!==f.offset)&&(l=l.createRange(),l.setStart(e.node,e.offset),u.removeAllRanges(),n>a?(u.addRange(l),u.extend(f.node,f.offset)):(l.setEnd(f.node,f.offset),u.addRange(l)))}}for(l=[],u=t;u=u.parentNode;)u.nodeType===1&&l.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Pu=null,cf=null,Ga=null,sf=!1;function Ki(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;sf||Pu==null||Pu!==qe(a)||(a=Pu,"selectionStart"in a&&ff(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ga&&Ba(Ga,a)||(Ga=a,a=An(cf,"onSelect"),0>=f,e-=f,pt=1<<32-Fl(t)+e|u<N?(ql=U,U=null):ql=U.sibling;var I=v(y,U,r[N],S);if(I===null){U===null&&(U=ql);break}l&&U&&I.alternate===null&&t(y,U),d=n(I,d,N),L===null?D=I:L.sibling=I,L=I,U=ql}if(N===r.length)return u(y,U),P&&Mu(y,N),D;if(U===null){for(;NN?(ql=U,U=null):ql=U.sibling;var bu=v(y,U,I.value,S);if(bu===null){U===null&&(U=ql);break}l&&U&&bu.alternate===null&&t(y,U),d=n(bu,d,N),L===null?D=bu:L.sibling=bu,L=bu,U=ql}if(I.done)return u(y,U),P&&Mu(y,N),D;if(U===null){for(;!I.done;N++,I=r.next())I=E(y,I.value,S),I!==null&&(d=n(I,d,N),L===null?D=I:L.sibling=I,L=I);return P&&Mu(y,N),D}for(U=a(U);!I.done;N++,I=r.next())I=o(U,y,N,I.value,S),I!==null&&(l&&I.alternate!==null&&U.delete(I.key===null?N:I.key),d=n(I,d,N),L===null?D=I:L.sibling=I,L=I);return l&&U.forEach(function(or){return t(y,or)}),P&&Mu(y,N),D}function bl(y,d,r,S){if(typeof r=="object"&&r!==null&&r.type===O&&r.key===null&&(r=r.props.children),typeof r=="object"&&r!==null){switch(r.$$typeof){case al:l:{for(var D=r.key;d!==null;){if(d.key===D){if(D=r.type,D===O){if(d.tag===7){u(y,d.sibling),S=e(d,r.props.children),S.return=y,y=S;break l}}else if(d.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Tl&&is(D)===d.type){u(y,d.sibling),S=e(d,r.props),Ka(S,r),S.return=y,y=S;break l}u(y,d);break}else t(y,d);d=d.sibling}r.type===O?(S=Gu(r.props.children,y.mode,S,r.key),S.return=y,y=S):(S=rn(r.type,r.key,r.props,null,y.mode,S),Ka(S,r),S.return=y,y=S)}return f(y);case ol:l:{for(D=r.key;d!==null;){if(d.key===D)if(d.tag===4&&d.stateNode.containerInfo===r.containerInfo&&d.stateNode.implementation===r.implementation){u(y,d.sibling),S=e(d,r.children||[]),S.return=y,y=S;break l}else{u(y,d);break}else t(y,d);d=d.sibling}S=hc(r,y.mode,S),S.return=y,y=S}return f(y);case Tl:return D=r._init,r=D(r._payload),bl(y,d,r,S)}if(H(r))return M(y,d,r,S);if(Kl(r)){if(D=Kl(r),typeof D!="function")throw Error(m(150));return r=D.call(r),x(y,d,r,S)}if(typeof r.then=="function")return bl(y,d,we(r),S);if(r.$$typeof===rl)return bl(y,d,dn(y,r),S);We(y,r)}return typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint"?(r=""+r,d!==null&&d.tag===6?(u(y,d.sibling),S=e(d,r),S.return=y,y=S):(u(y,d),S=dc(r,y.mode,S),S.return=y,y=S),f(y)):u(y,d)}return function(y,d,r,S){try{La=0;var D=bl(y,d,r,S);return ea=null,D}catch(U){if(U===Za)throw U;var L=rt(29,U,null,y.mode);return L.lanes=S,L.return=y,L}finally{}}}var Ru=ss(!0),ds=ss(!1),na=ul(null),$e=ul(0);function hs(l,t){l=Lt,yl($e,l),yl(na,t),Lt=l|t.baseLanes}function gf(){yl($e,Lt),yl(na,na.current)}function Sf(){Lt=$e.current,Al(na),Al($e)}var dt=ul(null),Ot=null;function tu(l){var t=l.alternate;yl(Ul,Ul.current&1),yl(dt,l),Ot===null&&(t===null||na.current!==null||t.memoizedState!==null)&&(Ot=l)}function ys(l){if(l.tag===22){if(yl(Ul,Ul.current),yl(dt,l),Ot===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Ot=l)}}else uu()}function uu(){yl(Ul,Ul.current),yl(dt,dt.current)}function jt(l){Al(dt),Ot===l&&(Ot=null),Al(Ul)}var Ul=ul(0);function ke(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ay=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(u,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(u){return u()})}},ey=z.unstable_scheduleCallback,ny=z.unstable_NormalPriority,Rl={$$typeof:rl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bf(){return{controller:new ay,data:new Map,refCount:0}}function Ja(l){l.refCount--,l.refCount===0&&ey(ny,function(){l.controller.abort()})}var wa=null,Ef=0,fa=0,ca=null;function fy(l,t){if(wa===null){var u=wa=[];Ef=0,fa=Dc(),ca={status:"pending",value:void 0,then:function(a){u.push(a)}}}return Ef++,t.then(rs,rs),t}function rs(){if(--Ef===0&&wa!==null){ca!==null&&(ca.status="fulfilled");var l=wa;wa=null,fa=0,ca=null;for(var t=0;tn?n:8;var f=p.T,c={};p.T=c,Bf(l,!1,t,u);try{var i=e(),h=p.S;if(h!==null&&h(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var g=cy(i,a);ka(l,t,g,ut(l))}else ka(l,t,a,ut(l))}catch(E){ka(l,t,{then:function(){},status:"rejected",reason:E},ut())}finally{_.p=n,p.T=f}}function yy(){}function Yf(l,t,u,a){if(l.tag!==5)throw Error(m(476));var e=Ls(l).queue;Vs(l,e,t,k,u===null?yy:function(){return Ks(l),u(a)})}function Ls(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:k},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Ks(l){var t=Ls(l).next.queue;ka(l,t,{},ut())}function xf(){return Xl(oe)}function Js(){return _l().memoizedState}function ws(){return _l().memoizedState}function ry(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=ut();l=cu(u);var a=iu(t,l,u);a!==null&&(Vl(a,t,u),Ia(a,t,u)),t={cache:bf()},l.payload=t;return}t=t.return}}function vy(l,t,u){var a=ut();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},nn(l)?$s(t,u):(u=yf(l,t,u,a),u!==null&&(Vl(u,l,a),ks(u,t,a)))}function Ws(l,t,u){var a=ut();ka(l,t,u,a)}function ka(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(nn(l))$s(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,Pl(c,f))return Ze(l,t,e,0),dl===null&&Ce(),!1}catch{}finally{}if(u=yf(l,t,e,a),u!==null)return Vl(u,l,a),ks(u,t,a),!0}return!1}function Bf(l,t,u,a){if(a={lane:2,revertLane:Dc(),action:a,hasEagerState:!1,eagerState:null,next:null},nn(l)){if(t)throw Error(m(479))}else t=yf(l,u,a,2),t!==null&&Vl(t,l,2)}function nn(l){var t=l.alternate;return l===C||t!==null&&t===C}function $s(l,t){ia=Pe=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function ks(l,t,u){if(u&4194176){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,ci(l,u)}}var _t={readContext:Xl,use:tn,useCallback:zl,useContext:zl,useEffect:zl,useImperativeHandle:zl,useLayoutEffect:zl,useInsertionEffect:zl,useMemo:zl,useReducer:zl,useRef:zl,useState:zl,useDebugValue:zl,useDeferredValue:zl,useTransition:zl,useSyncExternalStore:zl,useId:zl};_t.useCacheRefresh=zl,_t.useMemoCache=zl,_t.useHostTransitionStatus=zl,_t.useFormState=zl,_t.useActionState=zl,_t.useOptimistic=zl;var pu={readContext:Xl,use:tn,useCallback:function(l,t){return $l().memoizedState=[l,t===void 0?null:t],l},useContext:Xl,useEffect:Ys,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,an(4194308,4,Gs.bind(null,t,l),u)},useLayoutEffect:function(l,t){return an(4194308,4,l,t)},useInsertionEffect:function(l,t){an(4,2,l,t)},useMemo:function(l,t){var u=$l();t=t===void 0?null:t;var a=l();if(Nu){Ft(!0);try{l()}finally{Ft(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=$l();if(u!==void 0){var e=u(t);if(Nu){Ft(!0);try{u(t)}finally{Ft(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=vy.bind(null,C,l),[a.memoizedState,l]},useRef:function(l){var t=$l();return l={current:l},t.memoizedState=l},useState:function(l){l=Hf(l);var t=l.queue,u=Ws.bind(null,C,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:qf,useDeferredValue:function(l,t){var u=$l();return jf(u,l,t)},useTransition:function(){var l=Hf(!1);return l=Vs.bind(null,C,l.queue,!0,!1),$l().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=C,e=$l();if(P){if(u===void 0)throw Error(m(407));u=u()}else{if(u=t(),dl===null)throw Error(m(349));F&60||bs(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,Ys(Ts.bind(null,a,n,l),[l]),a.flags|=2048,da(9,Es.bind(null,a,n,u,t),{destroy:void 0},null),u},useId:function(){var l=$l(),t=dl.identifierPrefix;if(P){var u=qt,a=pt;u=(a&~(1<<32-Fl(a)-1)).toString(32)+u,t=":"+t+"R"+u,u=Ie++,0 title"))),xl(n,a,u),n[Gl]=l,Hl(n),a=n;break l;case"link":var f=A0("link","href",e).get(a+(u.href||""));if(f){for(var c=0;c<\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?e.createElement("select",{is:a.is}):e.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?e.createElement(u,{is:a.is}):e.createElement(u)}}l[Gl]=t,l[wl]=a;l:for(e=t.child;e!==null;){if(e.tag===5||e.tag===6)l.appendChild(e.stateNode);else if(e.tag!==4&&e.tag!==27&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break l;for(;e.sibling===null;){if(e.return===null||e.return===t)break l;e=e.return}e.sibling.return=e.return,e=e.sibling}t.stateNode=l;l:switch(xl(l,u,a),u){case"button":case"input":case"select":case"textarea":l=!!a.autoFocus;break l;case"img":l=!0;break l;default:l=!1}l&&Zt(t)}}return vl(t),t.flags&=-16777217,null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&Zt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(m(166));if(l=kt.current,Xa(t)){if(l=t.stateNode,u=t.memoizedProps,a=null,e=Zl,e!==null)switch(e.tag){case 27:case 5:a=e.memoizedProps}l[Gl]=t,l=!!(l.nodeValue===u||a!==null&&a.suppressHydrationWarning===!0||h0(l.nodeValue,u)),l||Uu(t)}else l=_n(l).createTextNode(a),l[Gl]=t,t.stateNode=l}return vl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(e=Xa(t),a!==null&&a.dehydrated!==null){if(l===null){if(!e)throw Error(m(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));e[Gl]=t}else Qa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else gt!==null&&(bc(gt),gt=null),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null)}if(jt(t),t.flags&128)return t.lanes=u,t;if(u=a!==null,l=l!==null&&l.memoizedState!==null,u){a=t.child,e=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(e=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==e&&(a.flags|=2048)}return u!==l&&u&&(t.child.flags|=8192),vn(t,t.updateQueue),vl(t),null;case 4:return Zu(),l===null&&Hc(t.stateNode.containerInfo),vl(t),null;case 10:return Gt(t.type),vl(t),null;case 19:if(Al(Ul),e=t.memoizedState,e===null)return vl(t),null;if(a=(t.flags&128)!==0,n=e.rendering,n===null)if(a)fe(e,!1);else{if(Sl!==0||l!==null&&l.flags&128)for(l=t.child;l!==null;){if(n=ke(l),n!==null){for(t.flags|=128,fe(e,!1),l=n.updateQueue,t.updateQueue=l,vn(t,l),t.subtreeFlags=0,l=u,u=t.child;u!==null;)Xd(u,l),u=u.sibling;return yl(Ul,Ul.current&1|2),t.child}l=l.sibling}e.tail!==null&&zt()>mn&&(t.flags|=128,a=!0,fe(e,!1),t.lanes=4194304)}else{if(!a)if(l=ke(n),l!==null){if(t.flags|=128,a=!0,l=l.updateQueue,t.updateQueue=l,vn(t,l),fe(e,!0),e.tail===null&&e.tailMode==="hidden"&&!n.alternate&&!P)return vl(t),null}else 2*zt()-e.renderingStartTime>mn&&u!==536870912&&(t.flags|=128,a=!0,fe(e,!1),t.lanes=4194304);e.isBackwards?(n.sibling=t.child,t.child=n):(l=e.last,l!==null?l.sibling=n:t.child=n,e.last=n)}return e.tail!==null?(t=e.tail,e.rendering=t,e.tail=t.sibling,e.renderingStartTime=zt(),t.sibling=null,l=Ul.current,yl(Ul,a?l&1|2:l&1),t):(vl(t),null);case 22:case 23:return jt(t),Sf(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?u&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),u=t.updateQueue,u!==null&&vn(t,u.retryQueue),u=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==u&&(t.flags|=2048),l!==null&&Al(Hu),null;case 24:return u=null,l!==null&&(u=l.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Gt(Rl),vl(t),null;case 25:return null}throw Error(m(156,t.tag))}function Ty(l,t){switch(vf(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Gt(Rl),Zu(),l=t.flags,l&65536&&!(l&128)?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 13:if(jt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(m(340));Qa()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return Al(Ul),null;case 4:return Zu(),null;case 10:return Gt(t.type),null;case 22:case 23:return jt(t),Sf(),l!==null&&Al(Hu),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Gt(Rl),null;case 25:return null;default:return null}}function Zd(l,t){switch(vf(t),t.tag){case 3:Gt(Rl),Zu();break;case 26:case 27:case 5:_e(t);break;case 4:Zu();break;case 13:jt(t);break;case 19:Al(Ul);break;case 10:Gt(t.type);break;case 22:case 23:jt(t),Sf(),l!==null&&Al(Hu);break;case 24:Gt(Rl)}}var zy={getCacheForType:function(l){var t=Xl(Rl),u=t.data.get(l);return u===void 0&&(u=l(),t.data.set(l,u)),u}},Ay=typeof WeakMap=="function"?WeakMap:Map,ml=0,dl=null,K=null,F=0,hl=0,tt=null,Vt=!1,va=!1,yc=!1,Lt=0,Sl=0,ru=0,Xu=0,rc=0,vt=0,ma=0,ce=null,Dt=null,vc=!1,mc=0,mn=1/0,on=null,vu=null,gn=!1,Qu=null,ie=0,oc=0,gc=null,se=0,Sc=null;function ut(){if(ml&2&&F!==0)return F&-F;if(p.T!==null){var l=fa;return l!==0?l:Dc()}return si()}function Vd(){vt===0&&(vt=!(F&536870912)||P?ei():536870912);var l=dt.current;return l!==null&&(l.flags|=32),vt}function Vl(l,t,u){(l===dl&&hl===2||l.cancelPendingCommit!==null)&&(oa(l,0),Kt(l,F,vt,!1)),Ma(l,u),(!(ml&2)||l!==dl)&&(l===dl&&(!(ml&2)&&(Xu|=u),Sl===4&&Kt(l,F,vt,!1)),Mt(l))}function Ld(l,t,u){if(ml&6)throw Error(m(327));var a=!u&&(t&60)===0&&(t&l.expiredLanes)===0||Da(l,t),e=a?Dy(l,t):zc(l,t,!0),n=a;do{if(e===0){va&&!a&&Kt(l,t,0,!1);break}else if(e===6)Kt(l,t,0,!Vt);else{if(u=l.current.alternate,n&&!Oy(u)){e=zc(l,t,!1),n=!1;continue}if(e===2){if(n=t,l.errorRecoveryDisabledLanes&n)var f=0;else f=l.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;l:{var c=l;e=ce;var i=c.current.memoizedState.isDehydrated;if(i&&(oa(c,f).flags|=256),f=zc(c,f,!1),f!==2){if(yc&&!i){c.errorRecoveryDisabledLanes|=n,Xu|=n,e=4;break l}n=Dt,Dt=e,n!==null&&bc(n)}e=f}if(n=!1,e!==2)continue}}if(e===1){oa(l,0),Kt(l,t,0,!0);break}l:{switch(a=l,e){case 0:case 1:throw Error(m(345));case 4:if((t&4194176)===t){Kt(a,t,vt,!Vt);break l}break;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(m(329))}if(a.finishedWork=u,a.finishedLanes=t,(t&62914560)===t&&(n=mc+300-zt(),10u?32:u,p.T=null,Qu===null)var n=!1;else{u=gc,gc=null;var f=Qu,c=ie;if(Qu=null,ie=0,ml&6)throw Error(m(331));var i=ml;if(ml|=4,Bd(f.current),jd(f,f.current,c,u),ml=i,de(0,!1),kl&&typeof kl.onPostCommitFiberRoot=="function")try{kl.onPostCommitFiberRoot(_a,f)}catch{}n=!0}return n}finally{_.p=e,p.T=a,Id(l,t)}}return!1}function l0(l,t,u){t=ct(u,t),t=Qf(l.stateNode,t,2),l=iu(l,t,2),l!==null&&(Ma(l,2),Mt(l))}function il(l,t,u){if(l.tag===3)l0(l,l,u);else for(;t!==null;){if(t.tag===3){l0(t,l,u);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vu===null||!vu.has(a))){l=ct(u,l),u=ad(2),a=iu(t,u,2),a!==null&&(ed(u,a,t,l),Ma(a,2),Mt(a));break}}t=t.return}}function Ac(l,t,u){var a=l.pingCache;if(a===null){a=l.pingCache=new Ay;var e=new Set;a.set(t,e)}else e=a.get(t),e===void 0&&(e=new Set,a.set(t,e));e.has(u)||(yc=!0,e.add(u),l=Ry.bind(null,l,t,u),t.then(l,l))}function Ry(l,t,u){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&u,l.warmLanes&=~u,dl===l&&(F&u)===u&&(Sl===4||Sl===3&&(F&62914560)===F&&300>zt()-mc?!(ml&2)&&oa(l,0):rc|=u,ma===F&&(ma=0)),Mt(l)}function t0(l,t){t===0&&(t=ni()),l=lu(l,t),l!==null&&(Ma(l,t),Mt(l))}function Hy(l){var t=l.memoizedState,u=0;t!==null&&(u=t.retryLane),t0(l,u)}function Ny(l,t){var u=0;switch(l.tag){case 13:var a=l.stateNode,e=l.memoizedState;e!==null&&(u=e.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(m(314))}a!==null&&a.delete(t),t0(l,u)}function py(l,t){return Qn(l,t)}var En=null,ba=null,Oc=!1,Tn=!1,_c=!1,Cu=0;function Mt(l){l!==ba&&l.next===null&&(ba===null?En=ba=l:ba=ba.next=l),Tn=!0,Oc||(Oc=!0,jy(qy))}function de(l,t){if(!_c&&Tn){_c=!0;do for(var u=!1,a=En;a!==null;){if(l!==0){var e=a.pendingLanes;if(e===0)var n=0;else{var f=a.suspendedLanes,c=a.pingedLanes;n=(1<<31-Fl(42|l)+1)-1,n&=e&~(f&~c),n=n&201326677?n&201326677|1:n?n|2:0}n!==0&&(u=!0,e0(a,n))}else n=F,n=Re(a,a===dl?n:0),!(n&3)||Da(a,n)||(u=!0,e0(a,n));a=a.next}while(u);_c=!1}}function qy(){Tn=Oc=!1;var l=0;Cu!==0&&(Zy()&&(l=Cu),Cu=0);for(var t=zt(),u=null,a=En;a!==null;){var e=a.next,n=u0(a,t);n===0?(a.next=null,u===null?En=e:u.next=e,e===null&&(ba=u)):(u=a,(l!==0||n&3)&&(Tn=!0)),a=e}de(l)}function u0(l,t){for(var u=l.suspendedLanes,a=l.pingedLanes,e=l.expirationTimes,n=l.pendingLanes&-62914561;0"u"?null:document;function b0(l,t,u){var a=Ta;if(a&&typeof t=="string"&&t){var e=nt(t);e='link[rel="'+l+'"][href="'+e+'"]',typeof u=="string"&&(e+='[crossorigin="'+u+'"]'),S0.has(e)||(S0.add(e),l={rel:l,crossOrigin:u,href:t},a.querySelector(e)===null&&(t=a.createElement("link"),xl(t,"link",l),Hl(t),a.head.appendChild(t)))}}function ky(l){Jt.D(l),b0("dns-prefetch",l,null)}function Fy(l,t){Jt.C(l,t),b0("preconnect",l,t)}function Py(l,t,u){Jt.L(l,t,u);var a=Ta;if(a&&l&&t){var e='link[rel="preload"][as="'+nt(t)+'"]';t==="image"&&u&&u.imageSrcSet?(e+='[imagesrcset="'+nt(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(e+='[imagesizes="'+nt(u.imageSizes)+'"]')):e+='[href="'+nt(l)+'"]';var n=e;switch(t){case"style":n=za(l);break;case"script":n=Aa(l)}mt.has(n)||(l=tl({rel:"preload",href:t==="image"&&u&&u.imageSrcSet?void 0:l,as:t},u),mt.set(n,l),a.querySelector(e)!==null||t==="style"&&a.querySelector(re(n))||t==="script"&&a.querySelector(ve(n))||(t=a.createElement("link"),xl(t,"link",l),Hl(t),a.head.appendChild(t)))}}function Iy(l,t){Jt.m(l,t);var u=Ta;if(u&&l){var a=t&&typeof t.as=="string"?t.as:"script",e='link[rel="modulepreload"][as="'+nt(a)+'"][href="'+nt(l)+'"]',n=e;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Aa(l)}if(!mt.has(n)&&(l=tl({rel:"modulepreload",href:l},t),mt.set(n,l),u.querySelector(e)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ve(n)))return}a=u.createElement("link"),xl(a,"link",l),Hl(a),u.head.appendChild(a)}}}function lr(l,t,u){Jt.S(l,t,u);var a=Ta;if(a&&l){var e=Ku(a).hoistableStyles,n=za(l);t=t||"default";var f=e.get(n);if(!f){var c={loading:0,preload:null};if(f=a.querySelector(re(n)))c.loading=5;else{l=tl({rel:"stylesheet",href:l,"data-precedence":t},u),(u=mt.get(n))&&Xc(l,u);var i=f=a.createElement("link");Hl(i),xl(i,"link",l),i._p=new Promise(function(h,g){i.onload=h,i.onerror=g}),i.addEventListener("load",function(){c.loading|=1}),i.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Mn(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:c},e.set(n,f)}}}function tr(l,t){Jt.X(l,t);var u=Ta;if(u&&l){var a=Ku(u).hoistableScripts,e=Aa(l),n=a.get(e);n||(n=u.querySelector(ve(e)),n||(l=tl({src:l,async:!0},t),(t=mt.get(e))&&Qc(l,t),n=u.createElement("script"),Hl(n),xl(n,"link",l),u.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(e,n))}}function ur(l,t){Jt.M(l,t);var u=Ta;if(u&&l){var a=Ku(u).hoistableScripts,e=Aa(l),n=a.get(e);n||(n=u.querySelector(ve(e)),n||(l=tl({src:l,async:!0,type:"module"},t),(t=mt.get(e))&&Qc(l,t),n=u.createElement("script"),Hl(n),xl(n,"link",l),u.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(e,n))}}function E0(l,t,u,a){var e=(e=kt.current)?Dn(e):null;if(!e)throw Error(m(446));switch(l){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(t=za(u.href),u=Ku(e).hoistableStyles,a=u.get(t),a||(a={type:"style",instance:null,count:0,state:null},u.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){l=za(u.href);var n=Ku(e).hoistableStyles,f=n.get(l);if(f||(e=e.ownerDocument||e,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,f),(n=e.querySelector(re(l)))&&!n._p&&(f.instance=n,f.state.loading=5),mt.has(l)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},mt.set(l,u),n||ar(e,l,u,f.state))),t&&a===null)throw Error(m(528,""));return f}if(t&&a!==null)throw Error(m(529,""));return null;case"script":return t=u.async,u=u.src,typeof u=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Aa(u),u=Ku(e).hoistableScripts,a=u.get(t),a||(a={type:"script",instance:null,count:0,state:null},u.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,l))}}function za(l){return'href="'+nt(l)+'"'}function re(l){return'link[rel="stylesheet"]['+l+"]"}function T0(l){return tl({},l,{"data-precedence":l.precedence,precedence:null})}function ar(l,t,u,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),xl(t,"link",u),Hl(t),l.head.appendChild(t))}function Aa(l){return'[src="'+nt(l)+'"]'}function ve(l){return"script[async]"+l}function z0(l,t,u){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+nt(u.href)+'"]');if(a)return t.instance=a,Hl(a),a;var e=tl({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Hl(a),xl(a,"style",e),Mn(a,u.precedence,l),t.instance=a;case"stylesheet":e=za(u.href);var n=l.querySelector(re(e));if(n)return t.state.loading|=4,t.instance=n,Hl(n),n;a=T0(u),(e=mt.get(e))&&Xc(a,e),n=(l.ownerDocument||l).createElement("link"),Hl(n);var f=n;return f._p=new Promise(function(c,i){f.onload=c,f.onerror=i}),xl(n,"link",a),t.state.loading|=4,Mn(n,u.precedence,l),t.instance=n;case"script":return n=Aa(u.src),(e=l.querySelector(ve(n)))?(t.instance=e,Hl(e),e):(a=u,(e=mt.get(n))&&(a=tl({},u),Qc(a,e)),l=l.ownerDocument||l,e=l.createElement("script"),Hl(e),xl(e,"link",a),l.head.appendChild(e),t.instance=e);case"void":return null;default:throw Error(m(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Mn(a,u.precedence,l));return t.instance}function Mn(l,t,u){for(var a=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),e=a.length?a[a.length-1]:null,n=e,f=0;f title"):null)}function er(l,t,u){if(u===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _0(l){return!(l.type==="stylesheet"&&!(l.state.loading&3))}var me=null;function nr(){}function fr(l,t,u){if(me===null)throw Error(m(475));var a=me;if(t.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var e=za(u.href),n=l.querySelector(re(e));if(n){l=n._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=Rn.bind(a),l.then(a,a)),t.state.loading|=4,t.instance=n,Hl(n);return}n=l.ownerDocument||l,u=T0(u),(e=mt.get(e))&&Xc(u,e),n=n.createElement("link"),Hl(n);var f=n;f._p=new Promise(function(c,i){f.onload=c,f.onerror=i}),xl(n,"link",u),t.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,l),(l=t.state.preload)&&!(t.state.loading&3)&&(a.count++,t=Rn.bind(a),l.addEventListener("load",t),l.addEventListener("error",t))}}function cr(){if(me===null)throw Error(m(475));var l=me;return l.stylesheets&&l.count===0&&Cc(l,l.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z)}catch($){console.error($)}}return z(),kc.exports=Or(),kc.exports}var Dr=_r();/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mr=z=>z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w0=(...z)=>z.filter(($,B,m)=>!!$&&$.trim()!==""&&m.indexOf($)===B).join(" ").trim();/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Ur={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"};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rr=Ll.forwardRef(({color:z="currentColor",size:$=24,strokeWidth:B=2,absoluteStrokeWidth:m,className:Y="",children:J,iconNode:al,...ol},O)=>Ll.createElement("svg",{ref:O,...Ur,width:$,height:$,stroke:z,strokeWidth:m?Number(B)*24/Number($):B,className:w0("lucide",Y),...ol},[...al.map(([b,w])=>Ll.createElement(b,w)),...Array.isArray(J)?J:[J]]));/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W0=(z,$)=>{const B=Ll.forwardRef(({className:m,...Y},J)=>Ll.createElement(Rr,{ref:J,iconNode:$,className:w0(`lucide-${Mr(z)}`,m),...Y}));return B.displayName=`${z}`,B};/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nr=W0("ChevronDown",Hr);/** + * @license lucide-react v0.475.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],qr=W0("ChevronUp",pr);function jr(){const[z,$]=Ll.useState({}),[B,m]=Ll.useState(!1),[Y,J]=Ll.useState("PipelineTestSuite"),[al,ol]=Ll.useState("wasm"),O=Ll.useRef(null),b=Ll.useRef({});Ll.useEffect(()=>{if(!O.current)return O.current=new Worker(new URL("/assets/worker-xodV2IhG.js",import.meta.url),{type:"module"}),O.current.onmessage=Z=>{const V=Z.data;if(V.status==="update"){const{name:El,result:Tl}=V;$(Ml=>({...Ml,[El]:Tl}))}else V.status==="complete"&&m(!1)},()=>{O.current.terminate(),O.current=null}},[]);const w=Z=>{var V;(V=b.current[Z])==null||V.scrollIntoView({behavior:"smooth"})},fl=Z=>{rl(V=>({...V,[Z]:!V[Z]}))},[cl,rl]=Ll.useState({});Ll.useEffect(()=>{rl(Z=>{const V={...Z};return Object.keys(z).forEach(El=>{V[El]===void 0&&(V[El]=!0)}),V})},[z]);const Bl=()=>{$({}),m(!0),O.current.postMessage({command:"start",suite:Y,device:al})};return R.jsx("div",{className:"bg-gradient-to-br from-gray-100 to-gray-200 min-h-screen",children:R.jsxs("div",{className:"container mx-auto p-6",children:[R.jsx("h1",{className:"text-4xl font-bold mb-8 text-center text-gray-800",children:"Transformers.js Benchmarking"}),R.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6 mb-8",children:[R.jsx("h2",{className:"text-2xl font-semibold mb-4 text-gray-800",children:"Settings"}),R.jsxs("div",{className:"grid md:grid-cols-3 gap-4 items-end",children:[R.jsxs("div",{children:[R.jsx("label",{htmlFor:"suite-select",className:"block text-sm font-medium text-gray-700 mb-1",children:"Test Suite"}),R.jsxs("select",{id:"suite-select",value:Y,onChange:Z=>J(Z.target.value),disabled:B,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm p-2",children:[R.jsx("option",{value:"PipelineTestSuite",children:"PipelineTestSuite"}),R.jsx("option",{value:"ModelTestSuite",children:"ModelTestSuite"})]})]}),R.jsxs("div",{children:[R.jsx("label",{htmlFor:"device-select",className:"block text-sm font-medium text-gray-700 mb-1",children:"Device"}),R.jsxs("select",{id:"device-select",value:al,onChange:Z=>ol(Z.target.value),disabled:B,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm p-2",children:[R.jsx("option",{value:"wasm",children:"wasm"}),R.jsx("option",{value:"webgpu",children:"webgpu"})]})]}),R.jsx("div",{children:R.jsx("button",{onClick:Bl,disabled:B,className:"w-full py-2 px-4 bg-blue-600 text-white rounded-md shadow hover:bg-blue-700 disabled:opacity-50",children:B?"Running...":"Run Benchmark"})})]})]}),R.jsx("div",{className:"mb-8 overflow-x-auto",children:R.jsxs("table",{className:"min-w-full bg-white shadow-md rounded-lg overflow-hidden",children:[R.jsx("thead",{className:"bg-gray-200",children:R.jsxs("tr",{children:[R.jsx("th",{className:"px-4 py-2 text-left text-gray-700",children:"Task"}),R.jsx("th",{className:"px-4 py-2 text-left text-gray-700",children:"Average Duration (ms)"})]})}),R.jsx("tbody",{children:Object.entries(z).map(([Z,V])=>{if("error"in V)return R.jsxs("tr",{className:"hover:bg-gray-100 cursor-pointer bg-red-100",children:[R.jsx("td",{className:"px-4 py-2 border-t border-gray-300",children:Z}),R.jsxs("td",{className:"px-4 py-2 border-t border-gray-300",children:["Error: ",V.error]})]},Z);console.log(V);const El=Object.values(V.stats).reduce((Tl,Ml)=>Tl+Ml.mean,0)/Object.values(V.stats).length;return R.jsxs("tr",{className:"hover:bg-gray-100 cursor-pointer",onClick:()=>w(Z),children:[R.jsx("td",{className:"px-4 py-2 border-t border-gray-300",children:Z}),R.jsx("td",{className:"px-4 py-2 border-t border-gray-300",children:El.toFixed(2)})]},Z)})})]})}),R.jsx("div",{className:"space-y-6",children:Object.entries(z).map(([Z,V])=>!("error"in V)&&R.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden transition-all duration-300 ease-in-out",ref:El=>b.current[Z]=El,children:[R.jsxs("div",{className:"bg-blue-600 text-white p-4 cursor-pointer flex justify-between items-center",onClick:()=>fl(Z),children:[R.jsx("h2",{className:"text-2xl font-semibold",children:Z}),cl[Z]?R.jsx(qr,{size:24}):R.jsx(Nr,{size:24})]}),cl[Z]&&R.jsxs("div",{className:"p-6 space-y-6",children:[R.jsxs("div",{className:"grid grid-cols-2 gap-4 text-md",children:[R.jsxs("div",{className:"bg-green-50 p-2 rounded",children:[R.jsx("p",{className:"font-semibold text-green-800",children:"Setup time"}),R.jsxs("p",{className:"text-green-900",children:[V.setupTime.toFixed(2)," ms"]})]}),R.jsxs("div",{className:"bg-red-50 p-2 rounded",children:[R.jsx("p",{className:"font-semibold text-red-800",children:"Dispose time"}),R.jsxs("p",{className:"text-red-900",children:[V.disposeTime.toFixed(2)," ms"]})]})]}),R.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg shadow-inner",children:[R.jsx("h3",{className:"text-2xl font-semibold mb-4 text-gray-800",children:"Stats (ms)"}),Object.entries(V.stats).map(([El,Tl])=>R.jsxs("div",{className:"mb-6 last:mb-0",children:[R.jsx("h4",{className:"text-xl font-medium mb-3 text-gray-700",children:El}),R.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-5 gap-4",children:["mean","median","min","max","stdDev"].map(Ml=>R.jsxs("div",{className:"bg-white p-3 rounded-lg shadow",children:[R.jsx("p",{className:"text-sm font-medium text-gray-600 capitalize",children:Ml}),R.jsx("p",{className:"text-lg font-bold text-gray-900",children:Tl[Ml].toFixed(2)})]},Ml))})]},El))]})]})]},Z))})]})})}Dr.createRoot(document.getElementById("root")).render(R.jsx(Ll.StrictMode,{children:R.jsx(jr,{})}));