1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/seed-color-button-BNRVYwyU.js","assets/seed-color-controls-CANSMm4w.js","assets/useControlled-BcuNGrEo.js","assets/resolveAriaLabelledBy-B8PWyL6j.js","assets/useValueChanged-B1VR2sIv.js","assets/useBaseUiId-Bf724d0f.js","assets/useCompositeListItem-COYHrqZ0.js","assets/useLabelableId-BtEgI84R.js","assets/valueToPercent-BBYIR6De.js","assets/stringifyLocale-BMPUsiav.js","assets/composite-BuqxgKOc.js","assets/CSPContext-Dx-6YdlI.js","assets/input-BNAo37Jh.js","assets/popover-ChmCZ_xZ.js","assets/usePopupHandleStore-CoE1IzCz.js","assets/useTriggerFocusGuards-7n5ggDgd.js","assets/useScrollLock-nrm2N-TK.js","assets/safePolygon-DuJ4lO-z.js","assets/useAnchoredPopupScrollLock-Dd9lmBiX.js","assets/ToolbarRootContext-DTpgbUfM.js","assets/site-command-menu-D6xbruFG.js","assets/link-external-36kUZxaq.js","assets/chevron-down-ekHuDubs.js","assets/ComboboxEmpty-BgvMrxNP.js","assets/resolveValueLabel-Bf7XlnPJ.js","assets/getPseudoElementBounds-DTpb1Qem.js","assets/dialog-DCtaGKki.js","assets/DialogRoot-DffBkGDz.js","assets/scroll-area-b6JanAuH.js","assets/scrollEdges-DwOfsv61.js","assets/utils-B8mLPyvw.js","assets/useHotkey-CmtaBBwJ.js","assets/settings-sheet-C9pGFIYY.js","assets/x-BJyhp39I.js","assets/toggle-group-DHNFyi7d.js","assets/isElementDisabled-CwHw_lZC.js","assets/CompositeItem-DOBVnLMG.js","assets/switch-CIhpEuN8.js","assets/motion-features-rnfaEvpH.js","assets/is-ref-object-Awf5oB9u.js","assets/index-Cjzlk8fi.js","assets/use-presence-CQss69u9.js","assets/index-CH5SyBf6.js","assets/chevron-right-YtAFNM4b.js","assets/separator-B_W25hgB.js","assets/Separator-DjI87RmF.js","assets/data-BjWhOroW.js","assets/react-HmhiCluc.js","assets/retro-console-surface-DGDYuGnT.js","assets/projects-CqjkmjgR.js","assets/index-5l63p4wv.js","assets/_slug-C_YuLIum.js"])))=>i.map(i=>d[i]); 2function RC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var OJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mp={exports:{}},vl={};var _w;function OC(){if(_w)return vl;_w=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return vl.Fragment=t,vl.jsx=n,vl.jsxs=n,vl}var Tw;function PC(){return Tw||(Tw=1,mp.exports=OC()),mp.exports}var I=PC(),pp={exports:{}},Ue={};var kw;function zC(){if(kw)return Ue;kw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function v(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function A(L,Q,ee){this.props=L,this.context=Q,this.refs=_,this.updater=ee||S}A.prototype.isReactComponent={},A.prototype.setState=function(L,Q){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,Q,"setState")},A.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function E(){}E.prototype=A.prototype;function C(L,Q,ee){this.props=L,this.context=Q,this.refs=_,this.updater=ee||S}var R=C.prototype=new E;
vendor: 4,444 bytes, line 2
2R.constructor=C,w(R,A.prototype),R.isPureReactComponent=!0;var z=Array.isArray;function P(){}var M={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function D(L,Q,ee){var ue=ee.ref;return{$$typeof:e,type:L,key:Q,ref:ue!==void 0?ue:null,props:ee}}function N(L,Q){return D(L.type,Q,L.props)}function F(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function Y(L){var Q={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(ee){return Q[ee]})}var J=/\/+/g;function fe(L,Q){return typeof L=="object"&&L!==null&&L.key!=null?Y(""+L.key):Q.toString(36)}function se(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(P,P):(L.status="pending",L.then(function(Q){L.status==="pending"&&(L.status="fulfilled",L.value=Q)},function(Q){L.status==="pending"&&(L.status="rejected",L.reason=Q)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function B(L,Q,ee,ue,de){var pe=typeof L;(pe==="undefined"||pe==="boolean")&&(L=null);var Ae=!1;if(L===null)Ae=!0;else switch(pe){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(L.$$typeof){case e:case t:Ae=!0;break;case p:return Ae=L._init,B(Ae(L._payload),Q,ee,ue,de)}}if(Ae)return de=de(L),Ae=ue===""?"."+fe(L,0):ue,z(de)?(ee="",Ae!=null&&(ee=Ae.replace(J,"$&/")+"/"),B(de,Q,ee,"",function(nt){return nt})):de!=null&&(F(de)&&(de=N(de,ee+(de.key==null||L&&L.key===de.key?"":(""+de.key).replace(J,"$&/")+"/")+Ae)),Q.push(de)),1;Ae=0;var Je=ue===""?".":ue+":";if(z(L))for(var be=0;be<L.length;be++)ue=L[be],pe=Je+fe(ue,be),Ae+=B(ue,Q,ee,pe,de);else if(be=v(L),typeof be=="function")for(L=be.call(L),be=0;!(ue=L.next()).done;)ue=ue.value,pe=Je+fe(ue,be++),Ae+=B(ue,Q,ee,pe,de);else if(pe==="object"){if(typeof L.then=="function")return B(se(L),Q,ee,ue,de);throw Q=String(L),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function G(L,Q,ee){if(L==null)return L;var ue=[],de=0;return B(L,ue,"","",function(pe){return Q.call(ee,pe,de++)}),ue}function ae(L){if(L._status===-1){var Q=L._result;Q=Q(),Q.then(function(ee){(L._status===0||L._status===-1)&&(L._status=1,L._result=ee)},function(ee){(L._status===0||L._status===-1)&&(L._status=2,L._result=ee)}),L._status===-1&&(L._status=0,L._result=Q)}if(L._status===1)return L._result.default;throw L._result}var ce=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},V={map:G,forEach:function(L,Q,ee){G(L,function(){Q.apply(this,arguments)},ee)},count:function(L){var Q=0;return G(L,function(){Q++}),Q},toArray:function(L){return G(L,function(Q){return Q})||[]},only:function(L){if(!F(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ue.Activity=y,Ue.Children=V,Ue.Component=A,Ue.Fragment=n,Ue.Profiler=a,Ue.PureComponent=C,Ue.StrictMode=r,Ue.Suspense=h,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(L){return M.H.useMemoCache(L)}},Ue.cache=function(L){return function(){return L.apply(null,arguments)}},Ue.cacheSignal=function(){return null},Ue.cloneElement=function(L,Q,ee){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ue=w({},L.props),de=L.key;if(Q!=null)for(pe in Q.key!==void 0&&(de=""+Q.key),Q)!k.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(ue[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)ue.children=ee;else if(1<pe){for(var Ae=Array(pe),Je=0;Je<pe;Je++)Ae[Je]=arguments[Je+2];ue.children=Ae}return D(L.type,de,ue)},Ue.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Ue.createElement=function(L,Q,ee){var ue,de={},pe=null;if(Q!=null)for(ue in Q.key!==void 0&&(pe=""+Q.key),Q)k.call(Q,ue)&&ue!=="
2key"&&ue!=="__self"&&ue!=="__source"&&(de[ue]=Q[ue]);var Ae=arguments.length-2;if(Ae===1)de.children=ee;else if(1<Ae){for(var Je=Array(Ae),be=0;be<Ae;be++)Je[be]=arguments[be+2];de.children=Je}if(L&&L.defaultProps)for(ue in Ae=L.defaultProps,Ae)de[ue]===void 0&&(de[ue]=Ae[ue]);return D(L,pe,de)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(L){return{$$typeof:f,render:L}},Ue.isValidElement=F,Ue.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:ae}},Ue.memo=function(L,Q){return{$$typeof:d,type:L,compare:Q===void 0?null:Q}},Ue.startTransition=function(L){var Q=M.T,ee={};M.T=ee;try{var ue=L(),de=M.S;de!==null&&de(ee,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(P,ce)}catch(pe){ce(pe)}finally{Q!==null&&ee.types!==null&&(Q.types=ee.types),M.T=Q}},Ue.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ue.use=function(L){return M.H.use(L)},Ue.useActionState=function(L,Q,ee){return M.H.useActionState(L,Q,ee)},Ue.useCallback=function(L,Q){return M.H.useCallback(L,Q)},Ue.useContext=function(L){return M.H.useContext(L)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(L,Q){return M.H.useDeferredValue(L,Q)},Ue.useEffect=function(L,Q){return M.H.useEffect(L,Q)},Ue.useEffectEvent=function(L){return M.H.useEffectEvent(L)},Ue.useId=function(){return M.H.useId()},Ue.useImperativeHandle=function(L,Q,ee){return M.H.useImperativeHandle(L,Q,ee)},Ue.useInsertionEffect=function(L,Q){return M.H.useInsertionEffect(L,Q)},Ue.useLayoutEffect=function(L,Q){return M.H.useLayoutEffect(L,Q)},Ue.useMemo=function(L,Q){return M.H.useMemo(L,Q)},Ue.useOptimistic=function(L,Q){return M.H.useOptimistic(L,Q)},Ue.useReducer=function(L,Q,ee){return M.H.useReducer(L,Q,ee)},Ue.useRef=function(L){return M.H.useRef(L)},Ue.useState=function(L){return M.H.useState(L)},Ue.useSyncExternalStore=function(L,Q,ee){return M.H.useSyncExternalStore(L,Q,ee)},Ue.useTransition=function(){return M.H.useTransition()},Ue.version="19.2.7",Ue}var Ew;function bu(){return Ew||(Ew=1,pp.exports=zC()),pp.exports}var O=bu();const tn=MC(O),DC=RC({__proto__:null,default:tn},[O]);var gp={exports:{}},Sl={},yp={exports:{}},bp={};var Cw;function NC(){return Cw||(Cw=1,(function(e){function t(B,G){var ae=B.length;B.push(G);e:for(;0<ae;){var ce=ae-1>>>1,V=B[ce];if(0<a(V,G))B[ce]=G,B[ae]=V,ae=ce;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var G=B[0],ae=B.pop();if(ae!==G){B[0]=ae;e:for(var ce=0,V=B.length,L=V>>>1;ce<L;){var Q=2*(ce+1)-1,ee=B[Q],ue=Q+1,de=B[ue];if(0>a(ee,ae))ue<V&&0>a(de,ee)?(B[ce]=de,B[ue]=ae,ce=ue):(B[ce]=ee,B[Q]=ae,ce=Q);else if(ue<V&&0>a(de,ae))B[ce]=de,B[ue]=ae,ce=ue;else break e}}return G}function a(B,G){var ae=B.sortIndex-G.sortIndex;
2return ae!==0?ae:B.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var h=[],d=[],p=1,y=null,b=3,v=!1,S=!1,w=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=B)r(d),G.sortIndex=G.expirationTime,t(h,G);else break;G=n(d)}}function z(B){if(w=!1,R(B),!S)if(n(h)!==null)S=!0,P||(P=!0,Y());else{var G=n(d);G!==null&&se(z,G.startTime-B)}}var P=!1,M=-1,k=5,D=-1;function N(){return _?!0:!(e.unstable_now()-D<k)}function F(){if(_=!1,P){var B=e.unstable_now();D=B;var G=!0;try{e:{S=!1,w&&(w=!1,E(M),M=-1),v=!0;var ae=b;try{t:{for(R(B),y=n(h);y!==null&&!(y.expirationTime>B&&N());){var ce=y.callback;if(typeof ce=="function"){y.callback=null,b=y.priorityLevel;var V=ce(y.expirationTime<=B);if(B=e.unstable_now(),typeof V=="function"){y.callback=V,R(B),G=!0;break t}y===n(h)&&r(h),R(B)}else r(h);y=n(h)}if(y!==null)G=!0;else{var L=n(d);L!==null&&se(z,L.startTime-B),G=!1}}break e}finally{y=null,b=ae,v=!1}G=void 0}}finally{G?Y():P=!1}}}var Y;if(typeof C=="function")Y=function(){C(F)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,fe=J.port2;J.port1.onmessage=F,Y=function(){fe.postMessage(null)}}else Y=function(){A(F,0)};function se(B,G){M=A(function(){B(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(B){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var ae=b;b=G;try{return B()}finally{b=ae}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=b;b=B;try{return G()}finally{b=ae}},e.unstable_scheduleCallback=function(B,G,ae){var ce=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ce+ae:ce):ae=ce,B){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=ae+V,B={id:p++,callback:G,priorityLevel:B,startTime:ae,expirationTime:V,sortIndex:-1},ae>ce?(B.sortIndex=ae,t(d,B),n(h)===null&&B===n(d)&&(w?(E(M),M=-1):w=!0,se(z,ae-ce))):(B.sortIndex=V,t(h,B),S||v||(S=!0,P||(P=!0,Y()))),B},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(B){var G=b;return function(){var ae=b;b=G;try{return B.apply(this,arguments)}finally{b=ae}}}})(bp)),bp}var Aw;function LC(){return Aw||(Aw=1,yp.exports=NC()),yp.exports}var vp={exports:{}},Vn={};var Rw;function jC(){if(Rw)return Vn;Rw=1;var e=bu();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(h,d,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:h,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Vn.createPortal=function(h,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(h,d,null,p)},Vn.flushSync=function(h){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,h)return h()}finally{l.T=d,r.p=p,r.d.f()}},Vn.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="str
2ing"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(h,d))},Vn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Vn.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var p=d.as,y=f(p,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:v}):p==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Vn.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=f(d.as,d.crossOrigin);r.d.M(h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(h)},Vn.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,y=f(p,d.crossOrigin);r.d.L(h,p,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Vn.preloadModule=function(h,d){if(typeof h=="string")if(d){var p=f(d.as,d.crossOrigin);r.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(h)},Vn.requestFormReset=function(h){r.d.r(h)},Vn.unstable_batchedUpdates=function(h,d){return h(d)},Vn.useFormState=function(h,d,p){return l.H.useFormState(h,d,p)},Vn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Vn.version="19.2.7",Vn}var Mw;function T4(){if(Mw)return vp.exports;Mw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vp.exports=jC(),vp.exports}var Ow;function BC(){if(Ow)return Sl;Ow=1;var e=LC(),t=bu(),n=T4();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var i=o,c=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(c=i.return),o=i.return;while(o)}return i.tag===3?c:null}function l(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function f(o){if(o.tag===31){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function h(o){if(s(o)!==o)throw Error(r(188))}function d(o){var i=o.alternate;if(!i){if(i=s(o),i===null)throw Error(r(188));return i!==o?null:o}for(var c=o,u=i;;){var m=c.return;if(m===null)break;var g=m.alternate;if(g===null){if(u=m.return,u!==null){c=u;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===c)return h(m),o;if(g===u)return h(m),i;g=g.sibling}throw Error(r(188))}if(c.return!==u.return)c=m,u=g;else{for(var x=!1,T=m.child;T;){if(T===c){x=!0,c=m,u=g;break}if(T===u){x=!0,u=m,c=g;break}T=T.sibling}if(!x){for(T=g.child;T;){if(T===c){x=!0,c=g,u=m;break}if(T===u){x=!0,u=g,c=m;break}T=T.sibling}if(!x)throw Error(r(189))}}if(c.alternate!==u)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:i}function p(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=p(o),i!==null)return i;o=o.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function Y(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var J=Symbol.for("react.client.reference");function fe(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===J?null:o.displayName||o.name||null;
vendor: 15,548 bytes, lines 2-9
2if(typeof o=="string")return o;switch(o){case w:return"Fragment";case A:return"Profiler";case _:return"StrictMode";case z:return"Suspense";case P:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case C:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case R:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return i=o.displayName||null,i!==null?i:fe(o.type)||"Memo";case k:i=o._payload,o=o._init;try{return fe(o(i))}catch{}}return null}var se=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ce=[],V=-1;function L(o){return{current:o}}function Q(o){0>V||(o.current=ce[V],ce[V]=null,V--)}function ee(o,i){V++,ce[V]=o.current,o.current=i}var ue=L(null),de=L(null),pe=L(null),Ae=L(null);function Je(o,i){switch(ee(pe,i),ee(de,o),ee(ue,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?YS(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=YS(i),o=GS(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Q(ue),ee(ue,o)}function be(){Q(ue),Q(de),Q(pe)}function nt(o){o.memoizedState!==null&&ee(Ae,o);var i=ue.current,c=GS(i,o.type);i!==c&&(ee(de,o),ee(ue,c))}function pt(o){de.current===o&&(Q(ue),Q(de)),Ae.current===o&&(Q(Ae),pl._currentValue=ae)}var bt,Ft;function st(o){if(bt===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);bt=i&&i[1]||"",Ft=-1<c.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+bt+o+Ft}var Xt=!1;function rn(o,i){if(!o||Xt)return"";Xt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(W){var K=W}Reflect.construct(o,[],ie)}else{try{ie.call()}catch(W){K=W}o.call(ie.prototype)}}else{try{throw Error()}catch(W){K=W}(ie=o())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(W){if(W&&K&&typeof W.stack=="string")return[W.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),x=g[0],T=g[1];if(x&&T){var j=x.split(` 5`),X=T.split(` 6`);for(m=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;if(u===j.length||m===X.length)for(u=j.length-1,m=X.length-1;1<=u&&0<=m&&j[u]!==X[m];)m--;for(;1<=u&&0<=m;u--,m--)if(j[u]!==X[m]){if(u!==1||m!==1)do if(u--,m--,0>m||j[u]!==X[m]){var te=` 7`+j[u].replace(" at new "," at ");return o.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",o.displayName)),te}while(1<=u&&0<=m);break}}}finally{Xt=!1,Error.prepareStackTrace=c}return(c=o?o.displayName||o.name:"")?st(c):""}function Zn(o,i){switch(o.tag){case 26:case 27:case 5:return st(o.type);case 16:return st("Lazy");case 13:return o.child!==i&&i!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return rn(o.type,!1);case 11:return rn(o.type.render,!1);case 1:return rn(o.type,!0);case 31:return st("Activity");default:return""}}function on(o){try{var i="",c=null;do i+=Zn(o,c),c=o,o=o.return;while(o);return i}catch(u){return` 8Error generating stack: `+u.message+` 9`+u.stack}}var zn=Object.prototype.hasOwnProperty,xn=e.unstable_scheduleCallback,gn=e.unstable_cancelCallback,Kt=e.unstable_shouldYield,Pe=e.unstable_requestPaint,Ne=e.unstable_now,gt=e.unstable_getCurrentPriorityLevel,Ye=e.unstable_ImmediatePriority,vt=e.unstable_UserBlockingPriority,Qe=e.unstable_NormalPriority,ut=e.unstable_LowPriority,no=e.unstable_IdlePriority,Vr=e.log,Hn=e.unstable_setDisableYieldValue,It=null,Jt=null;function _n(o){if(typeof Vr=="function"&&Hn(o),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(It,o)}catch{}}var At=Math.clz32?Math.clz32:tr,ya=Math.log,Yn=Math.LN2;function tr(o){return o>>>=0,o===0?32:31-(ya(o)/Yn|0)|0}var nr=256,Ur=262144,qe=4194304;function Lt(o){var i=o&42;if(i!==0)return i;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function ne(o,i,c){var u=o.pendingLanes;if(u===0)return 0;var m=0,g=o.suspendedLanes,x=o.pingedLanes;o=o.warmLanes;var T=u&134217727;return T!==0?(u=T&~g,u!==0?m=Lt(u):(x&=T,x!==0?m=Lt(x):c||(c=T&~o,c!==0&&(m=Lt(c))))):(T=u&~g,T!==0?m=Lt(T):x!==0?m=Lt(x):c||(c=u&~o,c!==0&&(m=Lt(c)))),m===0?0:i!==0&&i!==m&&(i&g)===0&&(g=m&-m,c=i&-i,g>=c||g===32&&(c&4194048)!==0)?i:m}function he(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function we(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Le(){var o=qe;return qe<<=1,(qe&62914560)===0&&(qe=4194304),o}function Ie(o){for(var i=[],c=0;31>c;c++)i.push(o);return i}function Ve(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function rt(o,i,c,u,m,g){var x=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var T=o.entanglements,j=o.expirationTimes,X=o.hiddenUpdates;for(c=x&~c;0<c;){var te=31-At(c),ie=1<<te;T[te]=0,j[te]=-1;var K=X[te];if(K!==null)for(X[te]=null,te=0;te<K.length;te++){var W=K[te];W!==null&&(W.lane&=-536870913)}c&=~ie}u!==0&&ft(o,u,0),g!==0&&m===0&&o.tag!==0&&(o.suspendedLanes|=g&~(x&~i))}function ft(o,i,c){o.pendingLanes|=i,o.suspendedLanes&=~i;var u=31-At(i);o.entangledLanes|=i,o.entanglements[u]=o.entanglements[u]|1073741824|c&261930}function St(o,i){var c=o.entangledLanes|=i;for(o=o.entanglements;c;){var u=31-At(c),m=1<<u;m&i|o[u]&i&&(o[u]|=i),c&=~m}}function wt(o,i){var c=i&-i;return c=(c&42)!==0?1:Tt(c),(c&(o.suspendedLanes|i))!==0?0:c}function Tt(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function an(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function sn(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:gw(o.type))}function zt(o,i){var c=G.p;try{return G.p=o,i()}finally{G.p=c}}var Dn=Math.random().toString(36).slice(2),xt="__reactFiber$"+Dn,Rt="__reactProps$"+Dn,Gn="__reactContainer$"+Dn,ba="__reactEvents$"+Dn,bi="__reactListeners$"+Dn,va="__reactHandles$"+Dn,ro="__reactResources$"+Dn,rr="__reactMarker$"+Dn;function $r(o){delete o[xt],delete o[Rt],delete o[ba],delete o[bi],delete o[va]}function Qt(o){var i=o[xt];if(i)return i;for(var c=o.parentNode;c;){if(i=c[Gn]||c[xt]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(o=ew(o);o!==null;){if(c=o[xt])return c;o=ew(o)}return i}o=c,c=o.parentNode}return null}function or(o){if(o=o[xt]||o[Gn]){var i=o.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return o}return null}function Zr(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function xo(o){var i=o[ro];return i||(i=o[ro]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Tn(o){o[rr]=!0}var Db=new Set,Nb={};function vi(o,i){ps(o,i),ps(o+"Capture",i)}function ps(o,i){for(Nb[o]=i,o=0;o<i.length;o++)Db.add(i[o])}var SE=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]*$"),Lb={},jb={};function wE(o){return zn.call(jb,o)?!0:zn.call(Lb,o)?!1:SE.test(o)?jb[o]=!0:(Lb[o]=!0,!1)}function Au(o,i,c){if(wE(i))if(c===null)o.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+c)}}function Ru(o,i,c){if(c===null)o.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+c)}}function _o(o,i,c,u){if(u===null)o.removeAttribute(c);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(i,c,""+u)}}function Tr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Bb(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function xE(o,i,c){var u=Object.getOwnPropertyDescriptor(o.constructor.prototype,i);if(!o.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,g=u.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return m.call(this)},set:function(x){c=""+x,g.call(this,x)}}),Object.defineProperty(o,i,{enumerable:u.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function s0(o){if(!o._valueTracker){var i=Bb(o)?"checked":"value";o._valueTracker=xE(o,i,""+o[i])}}function Fb(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var c=i.getValue(),u="";return o&&(u=Bb(o)?o.checked?"true":"false":o.value),o=u,o!==c?(i.setValue(o),!0):!1}function Mu(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var _E=/[\n"\\]/g;function kr(o){return o.replace(_E,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function c0(o,i,c,u,m,g,x,T){o.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?o.type=x:o.removeAttribute("type"),i!=null?x==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+Tr(i)):o.value!==""+Tr(i)&&(o.value=""+Tr(i)):x!=="submit"&&x!=="reset"||o.removeAttribute("value"),i!=null?l0(o,x,Tr(i)):c!=null?l0(o,x,Tr(c)):u!=null&&o.removeAttribute("value"),m==null&&g!=null&&(o.defaultChecked=!!g),m!=null&&(o.checked=m&&typeof m!="function"&&typeof m!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?o.name=""+Tr(T):o.removeAttribute("name")}function Ib(o,i,c,u,m,g,x,T){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(o.type=g),i!=null||c!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){s0(o);return}c=c!=null?""+Tr(c):"",i=i!=null?""+Tr(i):c,T||i===o.value||(o.value=i),o.defaultValue=i}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,o.checked=T?o.checked:!!u,o.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(o.name=x),s0(o)}function l0(o,i,c){i==="number"&&Mu(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function gs(o,i,c,u){if(o=o.options,i){i={};for(var m=0;m<c.length;m++)i["$"+c[m]]=!0;for(c=0;c<o.length;c++)m=i.hasOwnProperty("$"+o[c].value),o[c].selected!==m&&(o[c].selected=m),m&&u&&(o[c].defaultSelected=!0)}else{for(c=""+Tr(c),i=null,m=0;m<o.length;m++){if(o[m].value===c){o[m].selected=!0,u&&(o[m].defaultSelected=!0);return}i!==null||o[m].disabled||(i=o[m])}i!==null&&(i.selected=!0)}}function Hb(o,i,c){if(i!=null&&(i=""+Tr(i),i!==o.value&&(o.value=i),c==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=c!=null?""+Tr(c):""}function Vb(o,i,c,u){if(i==null){if(u!=null){if(c!=null)throw Error(r(92));if(se(u)){if(1<u.length)throw Error(r(93));u=u[0]}c=u}c==null&&(c=""),i=c}c=Tr(i),o.defaultValue=c,u=o.textContent,u===c&&u!==""&&u!==null&&(o.value=u),s0(o)}function ys(o,i){if(i){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=i;return}}o.textContent=i}var TE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ub(o,i,c){var u=i.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?u?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":u?o.setProperty(i,c):typeof c!="number"||c===0||TE.has(i)?i==="float"?o.cssFloat=c:o[i]=(""+c).trim():o[i]=c+"px"}function $b(o,i,c){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,c!=null){for(var u in c)!c.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="");for(var m in i)u=i[m],i.hasOwnProperty(m)&&c[m]!==u&&Ub(o,m,u)}else for(var g in i)i.hasOwnProperty(g)&&Ub(o,g,i[g])}function u0(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),EE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ou(o){return EE.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function To(){}var f0=null;function d0(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var bs=null,vs=null;function Zb(o){var i=or(o);if(i&&(o=i.stateNode)){var c=o[Rt]||null;e:switch(o=i.stateNode,i.type){case"input":if(c0(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),i=c.name,c.type==="radio"&&i!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+kr(""+i)+'"][type="radio"]'),i=0;i<c.length;i++){var u=c[i];if(u!==o&&u.form===o.form){var m=u[Rt]||null;if(!m)throw Error(r(90));c0(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(i=0;i<c.length;i++)u=c[i],u.form===o.form&&Fb(u)}break e;case"textarea":Hb(o,c.value,c.defaultValue);break e;case"select":i=c.value,i!=null&&gs(o,!!c.multiple,i,!1)}}}var h0=!1;function Yb(o,i,c){if(h0)return o(i,c);h0=!0;try{var u=o(i);return u}finally{if(h0=!1,(bs!==null||vs!==null)&&(vf(),bs&&(i=bs,o=vs,vs=bs=null,Zb(i),o)))for(i=0;i<o.length;i++)Zb(o[i])}}function Pc(o,i){var c=o.stateNode;if(c===null)return null;var u=c[Rt]||null;if(u===null)return null;c=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(o=o.type,u=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!u;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,i,typeof c));return c}var ko=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m0=!1;if(ko)try{var zc={};Object.defineProperty(zc,"passive",{get:function(){m0=!0}}),window.addEventListener("test",zc,zc),window.removeEventListener("test",zc,zc)}catch{m0=!1}var Sa=null,p0=null,Pu=null;function Gb(){if(Pu)return Pu;var o,i=p0,c=i.length,u,m="value"in Sa?Sa.value:Sa.textContent,g=m.length;for(o=0;o<c&&i[o]===m[o];o++);var x=c-o;for(u=1;u<=x&&i[c-u]===m[g-u];u++);return Pu=m.slice(o,1<u?1-u:void 0)}function zu(o){var i=o.keyCode;
vendor: 2,821 bytes, line 9
9return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function Du(){return!0}function qb(){return!1}function ar(o){function i(c,u,m,g,x){this._reactName=c,this._targetInst=m,this.type=u,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var T in o)o.hasOwnProperty(T)&&(c=o[T],this[T]=c?c(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Du:qb,this.isPropagationStopped=qb,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Du)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),i}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=ar(Si),Dc=y({},Si,{view:0,detail:0}),CE=ar(Dc),g0,y0,Nc,Lu=y({},Dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:v0,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Nc&&(Nc&&o.type==="mousemove"?(g0=o.screenX-Nc.screenX,y0=o.screenY-Nc.screenY):y0=g0=0,Nc=o),g0)},movementY:function(o){return"movementY"in o?o.movementY:y0}}),Xb=ar(Lu),AE=y({},Lu,{dataTransfer:0}),RE=ar(AE),ME=y({},Dc,{relatedTarget:0}),b0=ar(ME),OE=y({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),PE=ar(OE),zE=y({},Si,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),DE=ar(zE),NE=y({},Si,{data:0}),Kb=ar(NE),LE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jE={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"},BE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FE(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=BE[o])?!!i[o]:!1}function v0(){return FE}var IE=y({},Dc,{key:function(o){if(o.key){var i=LE[o.key]||o.key;if(i!=="Unidentified")return i}
vendor: 117,499 bytes, lines 9-10
9return o.type==="keypress"?(o=zu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?jE[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:v0,charCode:function(o){return o.type==="keypress"?zu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?zu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),HE=ar(IE),VE=y({},Lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jb=ar(VE),UE=y({},Dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:v0}),$E=ar(UE),ZE=y({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),YE=ar(ZE),GE=y({},Lu,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),qE=ar(GE),XE=y({},Si,{newState:0,oldState:0}),KE=ar(XE),JE=[9,13,27,32],S0=ko&&"CompositionEvent"in window,Lc=null;ko&&"documentMode"in document&&(Lc=document.documentMode);var QE=ko&&"TextEvent"in window&&!Lc,Qb=ko&&(!S0||Lc&&8<Lc&&11>=Lc),Wb=" ",ev=!1;function tv(o,i){switch(o){case"keyup":return JE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nv(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ss=!1;function WE(o,i){switch(o){case"compositionend":return nv(i);case"keypress":return i.which!==32?null:(ev=!0,Wb);case"textInput":return o=i.data,o===Wb&&ev?null:o;default:return null}}function e9(o,i){if(Ss)return o==="compositionend"||!S0&&tv(o,i)?(o=Gb(),Pu=p0=Sa=null,Ss=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Qb&&i.locale!=="ko"?null:i.data;default:return null}}var t9={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 rv(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!t9[o.type]:i==="textarea"}function ov(o,i,c,u){bs?vs?vs.push(u):vs=[u]:bs=u,i=Ef(i,"onChange"),0<i.length&&(c=new Nu("onChange","change",null,c,u),o.push({event:c,listeners:i}))}var jc=null,Bc=null;function n9(o){IS(o,0)}function ju(o){var i=Zr(o);if(Fb(i))return o}function av(o,i){if(o==="change")return i}var iv=!1;if(ko){var w0;if(ko){var x0="oninput"in document;if(!x0){var sv=document.createElement("div");sv.setAttribute("oninput","return;"),x0=typeof sv.oninput=="function"}w0=x0}else w0=!1;iv=w0&&(!document.documentMode||9<document.documentMode)}function cv(){jc&&(jc.detachEvent("onpropertychange",lv),Bc=jc=null)}function lv(o){if(o.propertyName==="value"&&ju(Bc)){var i=[];ov(i,Bc,o,d0(o)),Yb(n9,i)}}function r9(o,i,c){o==="focusin"?(cv(),jc=i,Bc=c,jc.attachEvent("onpropertychange",lv)):o==="focusout"&&cv()}function o9(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ju(Bc)}function a9(o,i){if(o==="click")return ju(i)}function i9(o,i){if(o==="input"||o==="change")return ju(i)}function s9(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var gr=typeof Object.is=="function"?Object.is:s9;function Fc(o,i){if(gr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var c=Object.keys(o),u=Object.keys(i);if(c.length!==u.length)return!1;for(u=0;u<c.length;u++){var m=c[u];if(!zn.call(i,m)||!gr(o[m],i[m]))return!1}return!0}function uv(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function fv(o,i){var c=uv(o);o=0;for(var u;c;){if(c.nodeType===3){if(u=o+c.textContent.length,o<=i&&u>=i)return{node:c,offset:i-o};o=u}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=uv(c)}}function dv(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?dv(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function hv(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Mu(o.document);i instanceof o.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)o=i.contentWindow;else break;i=Mu(o.document)}return i}function _0(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var c9=ko&&"documentMode"in document&&11>=document.documentMode,ws=null,T0=null,Ic=null,k0=!1;function mv(o,i,c){var u=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;k0||ws==null||ws!==Mu(u)||(u=ws,"selectionStart"in u&&_0(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ic&&Fc(Ic,u)||(Ic=u,u=Ef(T0,"onSelect"),0<u.length&&(i=new Nu("onSelect","select",null,i,c),o.push({event:i,listeners:u}),i.target=ws)))}function wi(o,i){var c={};return c[o.toLowerCase()]=i.toLowerCase(),c["Webkit"+o]="webkit"+i,c["Moz"+o]="moz"+i,c}var xs={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionrun:wi("Transition","TransitionRun"),transitionstart:wi("Transition","TransitionStart"),transitioncancel:wi("Transition","TransitionCancel"),transitionend:wi("Transition","TransitionEnd")},E0={},pv={};ko&&(pv=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function xi(o){if(E0[o])return E0[o];if(!xs[o])return o;var i=xs[o],c;for(c in i)if(i.hasOwnProperty(c)&&c in pv)return E0[o]=i[c];return o}var gv=xi("animationend"),yv=xi("animationiteration"),bv=xi("animationstart"),l9=xi("transitionrun"),u9=xi("transitionstart"),f9=xi("transitioncancel"),vv=xi("transitionend"),Sv=new Map,C0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");C0.push("scrollEnd");function Yr(o,i){Sv.set(o,i),vi(i,[o])}var Bu=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Er=[],_s=0,A0=0;function Fu(){for(var o=_s,i=A0=_s=0;i<o;){var c=Er[i];Er[i++]=null;var u=Er[i];Er[i++]=null;var m=Er[i];Er[i++]=null;var g=Er[i];if(Er[i++]=null,u!==null&&m!==null){var x=u.pending;x===null?m.next=m:(m.next=x.next,x.next=m),u.pending=m}g!==0&&wv(c,m,g)}}function Iu(o,i,c,u){Er[_s++]=o,Er[_s++]=i,Er[_s++]=c,Er[_s++]=u,A0|=u,o.lanes|=u,o=o.alternate,o!==null&&(o.lanes|=u)}function R0(o,i,c,u){return Iu(o,i,c,u),Hu(o)}function _i(o,i){return Iu(o,null,null,i),Hu(o)}function wv(o,i,c){o.lanes|=c;var u=o.alternate;u!==null&&(u.lanes|=c);for(var m=!1,g=o.return;g!==null;)g.childLanes|=c,u=g.alternate,u!==null&&(u.childLanes|=c),g.tag===22&&(o=g.stateNode,o===null||o._visibility&1||(m=!0)),o=g,g=g.return;return o.tag===3?(g=o.stateNode,m&&i!==null&&(m=31-At(c),o=g.hiddenUpdates,u=o[m],u===null?o[m]=[i]:u.push(i),i.lane=c|536870912),g):null}function Hu(o){if(50<cl)throw cl=0,Bm=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Ts={};function d9(o,i,c,u){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yr(o,i,c,u){return new d9(o,i,c,u)}function M0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Eo(o,i){var c=o.alternate;return c===null?(c=yr(o.tag,i,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=i,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,i=o.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function xv(o,i){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,i=c.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function Vu(o,i,c,u,m,g){var x=0;if(u=o,typeof o=="function")M0(o)&&(x=1);else if(typeof o=="string")x=yC(o,c,ue.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=yr(31,c,i,m),o.elementType=D,o.lanes=g,o;case w:return Ti(c.children,m,g,i);case _:x=8,m|=24;break;case A:return o=yr(12,c,i,m|2),o.elementType=A,o.lanes=g,o;case z:return o=yr(13,c,i,m),o.elementType=z,o.lanes=g,o;case P:return o=yr(19,c,i,m),o.elementType=P,o.lanes=g,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case C:x=10;break e;case E:x=9;break e;case R:x=11;break e;case M:x=14;break e;case k:x=16,u=null;break e}x=29,c=Error(r(130,o===null?"null":typeof o,"")),u=null}return i=yr(x,c,i,m),i.elementType=o,i.type=u,i.lanes=g,i}function Ti(o,i,c,u){return o=yr(7,o,u,i),o.lanes=c,o}function O0(o,i,c){return o=yr(6,o,null,i),o.lanes=c,o}function _v(o){var i=yr(18,null,null,0);return i.stateNode=o,i}function P0(o,i,c){return i=yr(4,o.children!==null?o.children:[],o.key,i),i.lanes=c,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var Tv=new WeakMap;function Cr(o,i){if(typeof o=="object"&&o!==null){var c=Tv.get(o);return c!==void 0?c:(i={value:o,source:i,stack:on(i)},Tv.set(o,i),i)}return{value:o,source:i,stack:on(i)}}var ks=[],Es=0,Uu=null,Hc=0,Ar=[],Rr=0,wa=null,oo=1,ao="";function Co(o,i){ks[Es++]=Hc,ks[Es++]=Uu,Uu=o,Hc=i}function kv(o,i,c){Ar[Rr++]=oo,Ar[Rr++]=ao,Ar[Rr++]=wa,wa=o;var u=oo;o=ao;var m=32-At(u)-1;u&=~(1<<m),c+=1;var g=32-At(i)+m;if(30<g){var x=m-m%5;g=(u&(1<<x)-1).toString(32),u>>=x,m-=x,oo=1<<32-At(i)+m|c<<m|u,ao=g+o}else oo=1<<g|c<<m|u,ao=o}function z0(o){o.return!==null&&(Co(o,1),kv(o,1,0))}function D0(o){for(;o===Uu;)Uu=ks[--Es],ks[Es]=null,Hc=ks[--Es],ks[Es]=null;for(;o===wa;)wa=Ar[--Rr],Ar[Rr]=null,ao=Ar[--Rr],Ar[Rr]=null,oo=Ar[--Rr],Ar[Rr]=null}function Ev(o,i){Ar[Rr++]=oo,Ar[Rr++]=ao,Ar[Rr++]=wa,oo=i.id,ao=i.overflow,wa=o}var Nn=null,jt=null,ct=!1,xa=null,Mr=!1,N0=Error(r(519));function _a(o){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vc(Cr(i,o)),N0}function Cv(o){var i=o.stateNode,c=o.type,u=o.memoizedProps;switch(i[xt]=o,i[Rt]=u,c){case"dialog":tt("cancel",i),tt("close",i);break;case"iframe":case"object":case"embed":tt("load",i);break;case"video":case"audio":for(c=0;c<ul.length;c++)tt(ul[c],i);break;case"source":tt("error",i);break;case"img":case"image":case"link":tt("error",i),tt("load",i);break;case"details":tt("toggle",i);break;case"input":tt("invalid",i),Ib(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":tt("invalid",i);break;case"textarea":tt("invalid",i),Vb(i,u.value,u.defaultValue,u.children)}c=u.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||i.textContent===""+c||u.suppressHydrationWarning===!0||$S(i.textContent,c)?(u.popover!=null&&(tt("beforetoggle",i),tt("toggle",i)),u.onScroll!=null&&tt("scroll",i),u.onScrollEnd!=null&&tt("scrollend",i),u.onClick!=null&&(i.onclick=To),i=!0):i=!1,i||_a(o,!0)}function Av(o){for(Nn=o.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:Mr=!1;return;case 27:case 3:Mr=!0;return;default:Nn=Nn.return}}function Cs(o){if(o!==Nn)return!1;if(!ct)return Av(o),ct=!0,!1;var i=o.tag,c;if((c=i!==3&&i!==27)&&((c=i===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||Wm(o.type,o.memoizedProps)),c=!c),c&&jt&&_a(o),Av(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));jt=WS(o)}else if(i===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));jt=WS(o)}else i===27?(i=jt,ja(o.type)?(o=op,op=null,jt=o):jt=i):jt=Nn?Pr(o.stateNode.nextSibling):null;return!0}function ki(){jt=Nn=null,ct=!1}function L0(){var o=xa;return o!==null&&(lr===null?lr=o:lr.push.apply(lr,o),xa=null),o}function Vc(o){xa===null?xa=[o]:xa.push(o)}var j0=L(null),Ei=null,Ao=null;function Ta(o,i,c){ee(j0,i._currentValue),i._currentValue=c}function Ro(o){o._currentValue=j0.current,Q(j0)}function B0(o,i,c){for(;o!==null;){var u=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),o===c)break;o=o.return}}function F0(o,i,c,u){var m=o.child;for(m!==null&&(m.return=o);m!==null;){var g=m.dependencies;if(g!==null){var x=m.child;g=g.firstContext;e:for(;g!==null;){var T=g;g=m;for(var j=0;j<i.length;j++)if(T.context===i[j]){g.lanes|=c,T=g.alternate,T!==null&&(T.lanes|=c),B0(g.return,c,o),u||(x=null);break e}g=T.next}}else if(m.tag===18){if(x=m.return,x===null)throw Error(r(341));x.lanes|=c,g=x.alternate,g!==null&&(g.lanes|=c),B0(x,c,o),x=null}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===o){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}}function As(o,i,c,u){o=null;for(var m=i,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var x=m.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var T=m.type;gr(m.pendingProps.value,x.value)||(o!==null?o.push(T):o=[T])}}else if(m===Ae.current){if(x=m.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(o!==null?o.push(pl):o=[pl])}m=m.return}o!==null&&F0(i,o,c,u),i.flags|=262144}function $u(o){for(o=o.firstContext;o!==null;){if(!gr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ci(o){Ei=o,Ao=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Ln(o){return Rv(Ei,o)}function Zu(o,i){return Ei===null&&Ci(o),Rv(o,i)}function Rv(o,i){var c=i._currentValue;if(i={context:i,memoizedValue:c,next:null},Ao===null){if(o===null)throw Error(r(308));Ao=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else Ao=Ao.next=i;return c}var h9=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(c,u){o.push(u)}};this.abort=function(){i.aborted=!0,o.forEach(function(c){return c()})}},m9=e.unstable_scheduleCallback,p9=e.unstable_NormalPriority,cn={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function I0(){return{controller:new h9,data:new Map,refCount:0}}function Uc(o){o.refCount--,o.refCount===0&&m9(p9,function(){o.controller.abort()})}var $c=null,H0=0,Rs=0,Ms=null;function g9(o,i){if($c===null){var c=$c=[];H0=0,Rs=$m(),Ms={status:"pending",value:void 0,then:function(u){c.push(u)}}}return H0++,i.then(Mv,Mv),i}function Mv(){if(--H0===0&&$c!==null){Ms!==null&&(Ms.status="fulfilled");var o=$c;$c=null,Rs=0,Ms=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function y9(o,i){var c=[],u={status:"pending",value:null,reason:null,then:function(m){c.push(m)}};return o.then(function(){u.status="fulfilled",u.value=i;for(var m=0;m<c.length;m++)(0,c[m])(i)},function(m){for(u.status="rejected",u.reason=m,m=0;m<c.length;m++)(0,c[m])(void 0)}),u}var Ov=B.S;B.S=function(o,i){mS=Ne(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&g9(o,i),Ov!==null&&Ov(o,i)};var Ai=L(null);function V0(){var o=Ai.current;return o!==null?o:Dt.pooledCache}function Yu(o,i){i===null?ee(Ai,Ai.current):ee(Ai,i.pool)}function Pv(){var o=V0();return o===null?null:{parent:cn._currentValue,pool:o}}var Os=Error(r(460)),U0=Error(r(474)),Gu=Error(r(542)),qu={then:function(){}};function zv(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Dv(o,i,c){switch(c=o[c],c===void 0?o.push(i):c!==i&&(i.then(To,To),i=c),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,Lv(o),o;default:if(typeof i.status=="string")i.then(To,To);else{if(o=Dt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(u){if(i.status==="pending"){var m=i;m.status="fulfilled",m.value=u}},function(u){if(i.status==="pending"){var m=i;m.status="rejected",m.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,Lv(o),o}throw Mi=i,Os}}function Ri(o){try{var i=o._init;return i(o._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Mi=c,Os):c}}var Mi=null;function Nv(){if(Mi===null)throw Error(r(459));var o=Mi;return Mi=null,o}function Lv(o){if(o===Os||o===Gu)throw Error(r(483))}var Ps=null,Zc=0;function Xu(o){var i=Zc;return Zc+=1,Ps===null&&(Ps=[]),Dv(Ps,o,i)}function Yc(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Ku(o,i){throw i.$$typeof===b?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function jv(o){function i($,H){if(o){var q=$.deletions;q===null?($.deletions=[H],$.flags|=16):q.push(H)}}function c($,H){if(!o)return null;for(;H!==null;)i($,H),H=H.sibling;return null}function u($){for(var H=new Map;$!==null;)$.key!==null?H.set($.key,$):H.set($.index,$),$=$.sibling;return H}function m($,H){return $=Eo($,H),$.index=0,$.sibling=null,$}function g($,H,q){return $.index=q,o?(q=$.alternate,q!==null?(q=q.index,q<H?($.flags|=67108866,H):q):($.flags|=67108866,H)):($.flags|=1048576,H)}function x($){return o&&$.alternate===null&&($.flags|=67108866),$}function T($,H,q,re){return H===null||H.tag!==6?(H=O0(q,$.mode,re),H.return=$,H):(H=m(H,q),H.return=$,H)}function j($,H,q,re){var Oe=q.type;return Oe===w?te($,H,q.props.children,re,q.key):H!==null&&(H.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===k&&Ri(Oe)===H.type)?(H=m(H,q.props),Yc(H,q),H.return=$,H):(H=Vu(q.type,q.key,q.props,null,$.mode,re),Yc(H,q),H.return=$,H)}function X($,H,q,re){return H===null||H.tag!==4||H.stateNode.containerInfo!==q.containerInfo||H.stateNode.implementation!==q.implementation?(H=P0(q,$.mode,re),H.return=$,H):(H=m(H,q.children||[]),H.return=$,H)}function te($,H,q,re,Oe){return H===null||H.tag!==7?(H=Ti(q,$.mode,re,Oe),H.return=$,H):(H=m(H,q),H.return=$,H)}function ie($,H,q){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=O0(""+H,$.mode,q),H.return=$,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case v:return q=Vu(H.type,H.key,H.props,null,$.mode,q),Yc(q,H),q.return=$,q;case S:return H=P0(H,$.mode,q),H.return=$,H;case k:return H=Ri(H),ie($,H,q)}if(se(H)||Y(H))return H=Ti(H,$.mode,q,null),H.return=$,H;if(typeof H.then=="function")return ie($,Xu(H),q);if(H.$$typeof===C)return ie($,Zu($,H),q);Ku($,H)}return null}function K($,H,q,re){var Oe=H!==null?H.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Oe!==null?null:T($,H,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case v:return q.key===Oe?j($,H,q,re):null;case S:return q.key===Oe?X($,H,q,re):null;case k:return q=Ri(q),K($,H,q,re)}if(se(q)||Y(q))return Oe!==null?null:te($,H,q,re,null);if(typeof q.then=="function")return K($,H,Xu(q),re);if(q.$$typeof===C)return K($,H,Zu($,q),re);Ku($,q)}return null}function W($,H,q,re,Oe){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return $=$.get(q)||null,T(H,$,""+re,Oe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case v:return $=$.get(re.key===null?q:re.key)||null,j(H,$,re,Oe);case S:return $=$.get(re.key===null?q:re.key)||null,X(H,$,re,Oe);case k:return re=Ri(re),W($,H,q,re,Oe)}if(se(re)||Y(re))return $=$.get(q)||null,te(H,$,re,Oe,null);if(typeof re.then=="function")return W($,H,q,Xu(re),Oe);if(re.$$typeof===C)return W($,H,q,Zu(H,re),Oe);Ku(H,re)}return null}function Ee($,H,q,re){for(var Oe=null,ht=null,Me=H,Ge=H=0,at=null;Me!==null&&Ge<q.length;Ge++){Me.index>Ge?(at=Me,Me=null):at=Me.sibling;var mt=K($,Me,q[Ge],re);if(mt===null){Me===null&&(Me=at);break}o&&Me&&mt.alternate===null&&i($,Me),H=g(mt,H,Ge),ht===null?Oe=mt:ht.sibling=mt,ht=mt,Me=at}if(Ge===q.length)return c($,Me),ct&&Co($,Ge),Oe;if(Me===null){for(;Ge<q.length;Ge++)Me=ie($,q[Ge],re),Me!==null&&(H=g(Me,H,Ge),ht===null?Oe=Me:ht.sibling=Me,ht=Me);return ct&&Co($,Ge),Oe}for(Me=u(Me);Ge<q.length;Ge++)at=W(Me,$,Ge,q[Ge],re),at!==null&&(o&&at.alternate!==null&&Me.delete(at.key===null?Ge:at.key),H=g(at,H,Ge),ht===null?Oe=at:ht.sibling=at,ht=at);return o&&Me.forEach(function(Va){return i($,Va)}),ct&&Co($,Ge),Oe}function De($,H,q,re){if(q==null)throw Error(r(151));for(var Oe=null,ht=null,Me=H,Ge=H=0,at=null,mt=q.next();Me!==null&&!mt.done;Ge++,mt=q.next()){Me.index>Ge?(at=Me,Me=null):at=Me.sibling;var Va=K($,Me,mt.value,re);if(Va===null){Me===null&&(Me=at);break}o&&Me&&Va.alternate===null&&i($,Me),H=g(Va,H,Ge),ht===null?Oe=Va:ht.sibling=Va,ht=Va,Me=at}if(mt.done)return c($,Me),ct&&Co($,Ge),Oe;if(Me===null){for(;!mt.done;Ge++,mt=q.next())mt=ie($,mt.value,re),mt!==null&&(H=g(mt,H,Ge),ht===null?Oe=mt:ht.sibling=mt,ht=mt);return ct&&Co($,Ge),Oe}for(Me=u(Me);!mt.done;Ge++,mt=q.next())mt=W(Me,$,Ge,mt.value,re),mt!==null&&(o&&mt.alternate!==null&&Me.delete(mt.key===null?Ge:mt.key),H=g(mt,H,Ge),ht===null?Oe=mt:ht.sibling=mt,ht=mt);return o&&Me.forEach(function(AC){return i($,AC)}),ct&&Co($,Ge),Oe}function Pt($,H,q,re){if(typeof q=="object"&&q!==null&&q.type===w&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case v:e:{for(var Oe=q.key;H!==null;){if(H.key===Oe){if(Oe=q.type,Oe===w){if(H.tag===7){c($,H.sibling),re=m(H,q.props.children),re.return=$,$=re;break e}}else if(H.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===k&&Ri(Oe)===H.type){c($,H.sibling),re=m(H,q.props),Yc(re,q),re.return=$,$=re;break e}c($,H);break}else i($,H);H=H.sibling}q.type===w?(re=Ti(q.props.children,$.mode,re,q.key),re.return=$,$=re):(re=Vu(q.type,q.key,q.props,null,$.mode,re),Yc(re,q),re.return=$,$=re)}return x($);case S:e:{for(Oe=q.key;H!==null;){if(H.key===Oe)if(H.tag===4&&H.stateNode.containerInfo===q.containerInfo&&H.stateNode.implementation===q.implementation){c($,H.sibling),re=m(H,q.children||[]),re.return=$,$=re;break e}else{c($,H);break}else i($,H);H=H.sibling}re=P0(q,$.mode,re),re.return=$,$=re}return x($);case k:return q=Ri(q),Pt($,H,q,re)}if(se(q))return Ee($,H,q,re);if(Y(q)){if(Oe=Y(q),typeof Oe!="function")throw Error(r(150));return q=Oe.call(q),De($,H,q,re)}if(typeof q.then=="function")return Pt($,H,Xu(q),re);if(q.$$typeof===C)return Pt($,H,Zu($,q),re);Ku($,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,H!==null&&H.tag===6?(c($,H.sibling),re=m(H,q),re.return=$,$=re):(c($,H),re=O0(q,$.mode,re),re.return=$,$=re),x($)):c($,H)}return function($,H,q,re){try{Zc=0;var Oe=Pt($,H,q,re);return Ps=null,Oe}catch(Me){if(Me===Os||Me===Gu)throw Me;var ht=yr(29,Me,null,$.mode);return ht.lanes=re,ht.return=$,ht}}}var Oi=jv(!0),Bv=jv(!1),ka=!1;function $0(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Z0(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ea(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ca(o,i,c){var u=o.updateQueue;if(u===null)return null;if(u=u.shared,(yt&2)!==0){var m=u.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),u.pending=i,i=Hu(o),wv(o,null,c),i}return Iu(o,u,i,c),Hu(o)}function Gc(o,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194048)!==0)){var u=i.lanes;u&=o.pendingLanes,c|=u,i.lanes=c,St(o,c)}}function Y0(o,i){var c=o.updateQueue,u=o.alternate;if(u!==null&&(u=u.updateQueue,c===u)){var m=null,g=null;if(c=c.firstBaseUpdate,c!==null){do{var x={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};g===null?m=g=x:g=g.next=x,c=c.next}while(c!==null);g===null?m=g=i:g=g.next=i}else m=g=i;c={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=i:o.next=i,c.lastBaseUpdate=i}var G0=!1;function qc(){if(G0){var o=Ms;if(o!==null)throw o}}function Xc(o,i,c,u){G0=!1;var m=o.updateQueue;ka=!1;var g=m.firstBaseUpdate,x=m.lastBaseUpdate,T=m.shared.pending;if(T!==null){m.shared.pending=null;var j=T,X=j.next;j.next=null,x===null?g=X:x.next=X,x=j;var te=o.alternate;te!==null&&(te=te.updateQueue,T=te.lastBaseUpdate,T!==x&&(T===null?te.firstBaseUpdate=X:T.next=X,te.lastBaseUpdate=j))}if(g!==null){var ie=m.baseState;x=0,te=X=j=null,T=g;do{var K=T.lane&-536870913,W=K!==T.lane;if(W?(ot&K)===K:(u&K)===K){K!==0&&K===Rs&&(G0=!0),te!==null&&(te=te.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ee=o,De=T;K=i;var Pt=c;switch(De.tag){case 1:if(Ee=De.payload,typeof Ee=="function"){ie=Ee.call(Pt,ie,K);break e}ie=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=De.payload,K=typeof Ee=="function"?Ee.call(Pt,ie,K):Ee,K==null)break e;ie=y({},ie,K);break e;case 2:ka=!0}}K=T.callback,K!==null&&(o.flags|=64,W&&(o.flags|=8192),W=m.callbacks,W===null?m.callbacks=[K]:W.push(K))}else W={lane:K,tag:T.tag,payload:T.payload,callback:T.callback,next:null},te===null?(X=te=W,j=ie):te=te.next=W,x|=K;if(T=T.next,T===null){if(T=m.shared.pending,T===null)break;W=T,T=W.next,W.next=null,m.lastBaseUpdate=W,m.shared.pending=null}}while(!0);te===null&&(j=ie),m.baseState=j,m.firstBaseUpdate=X,m.lastBaseUpdate=te,g===null&&(m.shared.lanes=0),Pa|=x,o.lanes=x,o.memoizedState=ie}}function Fv(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function Iv(o,i){var c=o.callbacks;if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)Fv(c[o],i)}var zs=L(null),Ju=L(0);function Hv(o,i){o=Bo,ee(Ju,o),ee(zs,i),Bo=o|i.baseLanes}function q0(){ee(Ju,Bo),ee(zs,zs.current)}function X0(){Bo=Ju.current,Q(zs),Q(Ju)}var br=L(null),Or=null;function Aa(o){var i=o.alternate;ee(Wt,Wt.current&1),ee(br,o),Or===null&&(i===null||zs.current!==null||i.memoizedState!==null)&&(Or=o)}function K0(o){ee(Wt,Wt.current),ee(br,o),Or===null&&(Or=o)}function Vv(o){o.tag===22?(ee(Wt,Wt.current),ee(br,o),Or===null&&(Or=o)):Ra()}function Ra(){ee(Wt,Wt.current),ee(br,br.current)}function vr(o){Q(br),Or===o&&(Or=null),Q(Wt)}var Wt=L(0);function Qu(o){for(var i=o;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||np(c)||rp(c)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Mo=0,$e=null,Mt=null,ln=null,Wu=!1,Ds=!1,Pi=!1,ef=0,Kc=0,Ns=null,b9=0;function Gt(){throw Error(r(321))}function J0(o,i){if(i===null)return!1;for(var c=0;c<i.length&&c<o.length;c++)if(!gr(o[c],i[c]))return!1;return!0}function Q0(o,i,c,u,m,g){return Mo=g,$e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,B.H=o===null||o.memoizedState===null?k2:hm,Pi=!1,g=c(u,m),Pi=!1,Ds&&(g=$v(i,c,u,m)),Uv(o),g}function Uv(o){B.H=Wc;var i=Mt!==null&&Mt.next!==null;if(Mo=0,ln=Mt=$e=null,Wu=!1,Kc=0,Ns=null,i)throw Error(r(300));o===null||un||(o=o.dependencies,o!==null&&$u(o)&&(un=!0))}function $v(o,i,c,u){$e=o;var m=0;do{if(Ds&&(Ns=null),Kc=0,Ds=!1,25<=m)throw Error(r(301));if(m+=1,ln=Mt=null,o.updateQueue!=null){var g=o.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}B.H=E2,g=i(c,u)}while(Ds);return g}function v9(){var o=B.H,i=o.useState()[0];return i=typeof i.then=="function"?Jc(i):i,o=o.useState()[0],(Mt!==null?Mt.memoizedState:null)!==o&&($e.flags|=1024),i}function W0(){var o=ef!==0;return ef=0,o}function em(o,i,c){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~c}function tm(o){if(Wu){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Wu=!1}Mo=0,ln=Mt=$e=null,Ds=!1,Kc=ef=0,Ns=null}function qn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ln===null?$e.memoizedState=ln=o:ln=ln.next=o,ln}function en(){if(Mt===null){var o=$e.alternate;o=o!==null?o.memoizedState:null}else o=Mt.next;var i=ln===null?$e.memoizedState:ln.next;if(i!==null)ln=i,Mt=o;else{if(o===null)throw $e.alternate===null?Error(r(467)):Error(r(310));Mt=o,o={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},ln===null?$e.memoizedState=ln=o:ln=ln.next=o}return ln}function tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jc(o){var i=Kc;return Kc+=1,Ns===null&&(Ns=[]),o=Dv(Ns,o,i),i=$e,(ln===null?i.memoizedState:ln.next)===null&&(i=i.alternate,B.H=i===null||i.memoizedState===null?k2:hm),o}function nf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Jc(o);if(o.$$typeof===C)return Ln(o)}throw Error(r(438,String(o)))}function nm(o){var i=null,c=$e.updateQueue;if(c!==null&&(i=c.memoCache),i==null){var u=$e.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(m){return m.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),c===null&&(c=tf(),$e.updateQueue=c),c.memoCache=i,c=i.data[i.index],c===void 0)for(c=i.data[i.index]=Array(o),u=0;u<o;u++)c[u]=N;return i.index++,c}function Oo(o,i){return typeof i=="function"?i(o):i}function rf(o){var i=en();return rm(i,Mt,o)}function rm(o,i,c){var u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=c;var m=o.baseQueue,g=u.pending;if(g!==null){if(m!==null){var x=m.next;m.next=g.next,g.next=x}i.baseQueue=m=g,u.pending=null}if(g=o.baseState,m===null)o.memoizedState=g;else{i=m.next;var T=x=null,j=null,X=i,te=!1;do{var ie=X.lane&-536870913;if(ie!==X.lane?(ot&ie)===ie:(Mo&ie)===ie){var K=X.revertLane;if(K===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ie===Rs&&(te=!0);else if((Mo&K)===K){X=X.next,K===Rs&&(te=!0);continue}else ie={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(T=j=ie,x=g):j=j.next=ie,$e.lanes|=K,Pa|=K;ie=X.action,Pi&&c(g,ie),g=X.hasEagerState?X.eagerState:c(g,ie)}else K={lane:ie,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},j===null?(T=j=K,x=g):j=j.next=K,$e.lanes|=ie,Pa|=ie;X=X.next}while(X!==null&&X!==i);if(j===null?x=g:j.next=T,!gr(g,o.memoizedState)&&(un=!0,te&&(c=Ms,c!==null)))throw c;o.memoizedState=g,o.baseState=x,o.baseQueue=j,u.lastRenderedState=g}return m===null&&(u.lanes=0),[o.memoizedState,u.dispatch]}function om(o){var i=en(),c=i.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var u=c.dispatch,m=c.pending,g=i.memoizedState;if(m!==null){c.pending=null;var x=m=m.next;do g=o(g,x.action),x=x.next;while(x!==m);gr(g,i.memoizedState)||(un=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),c.lastRenderedState=g}return[g,u]}function Zv(o,i,c){var u=$e,m=en(),g=ct;if(g){if(c===void 0)throw Error(r(407));c=c()}else c=i();var x=!gr((Mt||m).memoizedState,c);if(x&&(m.memoizedState=c,un=!0),m=m.queue,sm(qv.bind(null,u,m,o),[o]),m.getSnapshot!==i||x||ln!==null&&ln.memoizedState.tag&1){if(u.flags|=2048,Ls(9,{destroy:void 0},Gv.bind(null,u,m,c,i),null),Dt===null)throw Error(r(349));g||(Mo&127)!==0||Yv(u,i,c)}return c}function Yv(o,i,c){o.flags|=16384,o={getSnapshot:i,value:c},i=$e.updateQueue,i===null?(i=tf(),$e.updateQueue=i,i.stores=[o]):(c=i.stores,c===null?i.stores=[o]:c.push(o))}function Gv(o,i,c,u){i.value=c,i.getSnapshot=u,Xv(i)&&Kv(o)}function qv(o,i,c){return c(function(){Xv(i)&&Kv(o)})}function Xv(o){var i=o.getSnapshot;o=o.value;try{var c=i();return!gr(o,c)}catch{return!0}}function Kv(o){var i=_i(o,2);i!==null&&ur(i,o,2)}function am(o){var i=qn();if(typeof o=="function"){var c=o;if(o=c(),Pi){_n(!0);try{c()}finally{_n(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:o},i}function Jv(o,i,c,u){return o.baseState=c,rm(o,Mt,typeof u=="function"?u:Oo)}function S9(o,i,c,u,m){if(sf(o))throw Error(r(485));if(o=i.action,o!==null){var g={payload:m,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};B.T!==null?c(!0):g.isTransition=!1,u(g),c=i.pending,c===null?(g.next=i.pending=g,Qv(i,g)):(g.next=c.next,i.pending=c.next=g)}}function Qv(o,i){var c=i.action,u=i.payload,m=o.state;if(i.isTransition){var g=B.T,x={};B.T=x;try{var T=c(m,u),j=B.S;j!==null&&j(x,T),Wv(o,i,T)}catch(X){im(o,i,X)}finally{g!==null&&x.types!==null&&(g.types=x.types),B.T=g}}else try{g=c(m,u),Wv(o,i,g)}catch(X){im(o,i,X)}}function Wv(o,i,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(u){e2(o,i,u)},function(u){return im(o,i,u)}):e2(o,i,c)}function e2(o,i,c){i.status="fulfilled",i.value=c,t2(i),o.state=c,i=o.pending,i!==null&&(c=i.next,c===i?o.pending=null:(c=c.next,i.next=c,Qv(o,c)))}function im(o,i,c){var u=o.pending;if(o.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=c,t2(i),i=i.next;while(i!==u)}o.action=null}function t2(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function n2(o,i){return i}function r2(o,i){if(ct){var c=Dt.formState;if(c!==null){e:{var u=$e;if(ct){if(jt){t:{for(var m=jt,g=Mr;m.nodeType!==8;){if(!g){m=null;break t}if(m=Pr(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){jt=Pr(m.nextSibling),u=m.data==="F!";break e}}_a(u)}u=!1}u&&(i=c[0])}}return c=qn(),c.memoizedState=c.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n2,lastRenderedState:i},c.queue=u,c=x2.bind(null,$e,u),u.dispatch=c,u=am(!1),g=dm.bind(null,$e,!1,u.queue),u=qn(),m={state:i,dispatch:null,action:o,pending:null},u.queue=m,c=S9.bind(null,$e,m,g,c),m.dispatch=c,u.memoizedState=o,[i,c,!1]}function o2(o){var i=en();return a2(i,Mt,o)}function a2(o,i,c){if(i=rm(o,i,n2)[0],o=rf(Oo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Jc(i)}catch(x){throw x===Os?Gu:x}else u=i;i=en();var m=i.queue,g=m.dispatch;return c!==i.memoizedState&&($e.flags|=2048,Ls(9,{destroy:void 0},w9.bind(null,m,c),null)),[u,g,o]}function w9(o,i){o.action=i}function i2(o){var i=en(),c=Mt;if(c!==null)return a2(i,c,o);en(),i=i.memoizedState,c=en();var u=c.queue.dispatch;return c.memoizedState=o,[i,u,!1]}function Ls(o,i,c,u){return o={tag:o,create:c,deps:u,inst:i,next:null},i=$e.updateQueue,i===null&&(i=tf(),$e.updateQueue=i),c=i.lastEffect,c===null?i.lastEffect=o.next=o:(u=c.next,c.next=o,o.next=u,i.lastEffect=o),o}function s2(){return en().memoizedState}function of(o,i,c,u){var m=qn();$e.flags|=o,m.memoizedState=Ls(1|i,{destroy:void 0},c,u===void 0?null:u)}function af(o,i,c,u){var m=en();u=u===void 0?null:u;var g=m.memoizedState.inst;Mt!==null&&u!==null&&J0(u,Mt.memoizedState.deps)?m.memoizedState=Ls(i,g,c,u):($e.flags|=o,m.memoizedState=Ls(1|i,g,c,u))}function c2(o,i){of(8390656,8,o,i)}function sm(o,i){af(2048,8,o,i)}function x9(o){$e.flags|=4;var i=$e.updateQueue;if(i===null)i=tf(),$e.updateQueue=i,i.events=[o];else{var c=i.events;c===null?i.events=[o]:c.push(o)}}function l2(o){var i=en().memoizedState;return x9({ref:i,nextImpl:o}),function(){if((yt&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function u2(o,i){return af(4,2,o,i)}function f2(o,i){return af(4,4,o,i)}function d2(o,i){if(typeof i=="function"){o=o();var c=i(o);return function(){typeof c=="function"?c():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function h2(o,i,c){c=c!=null?c.concat([o]):null,af(4,4,d2.bind(null,i,o),c)}function cm(){}function m2(o,i){var c=en();i=i===void 0?null:i;var u=c.memoizedState;return i!==null&&J0(i,u[1])?u[0]:(c.memoizedState=[o,i],o)}function p2(o,i){var c=en();i=i===void 0?null:i;var u=c.memoizedState;if(i!==null&&J0(i,u[1]))return u[0];if(u=o(),Pi){_n(!0);try{o()}finally{_n(!1)}}return c.memoizedState=[u,i],u}function lm(o,i,c){return c===void 0||(Mo&1073741824)!==0&&(ot&261930)===0?o.memoizedState=i:(o.memoizedState=c,o=gS(),$e.lanes|=o,Pa|=o,c)}function g2(o,i,c,u){return gr(c,i)?c:zs.current!==null?(o=lm(o,c,u),gr(o,i)||(un=!0),o):(Mo&42)===0||(Mo&1073741824)!==0&&(ot&261930)===0?(un=!0,o.memoizedState=c):(o=gS(),$e.lanes|=o,Pa|=o,i)}function y2(o,i,c,u,m){var g=G.p;G.p=g!==0&&8>g?g:8;var x=B.T,T={};B.T=T,dm(o,!1,i,c);try{var j=m(),X=B.S;if(X!==null&&X(T,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var te=y9(j,u);Qc(o,i,te,xr(o))}else Qc(o,i,u,xr(o))}catch(ie){Qc(o,i,{then:function(){},status:"rejected",reason:ie},xr())}finally{G.p=g,x!==null&&T.types!==null&&(x.types=T.types),B.T=x}}function _9(){}function um(o,i,c,u){if(o.tag!==5)throw Error(r(476));var m=b2(o).queue;y2(o,m,i,ae,c===null?_9:function(){return v2(o),c(u)})}function b2(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:ae},next:null};var c={};return i.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:c},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function v2(o){var i=b2(o);i.next===null&&(i=o.alternate.memoizedState),Qc(o,i.next.queue,{},xr())}function fm(){return Ln(pl)}function S2(){return en().memoizedState}function w2(){return en().memoizedState}function T9(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var c=xr();o=Ea(c);var u=Ca(i,o,c);u!==null&&(ur(u,i,c),Gc(u,i,c)),i={cache:I0()},o.payload=i;return}i=i.return}}function k9(o,i,c){var u=xr();c={lane:u,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},sf(o)?_2(i,c):(c=R0(o,i,c,u),c!==null&&(ur(c,o,u),T2(c,i,u)))}function x2(o,i,c){var u=xr();Qc(o,i,c,u)}function Qc(o,i,c,u){var m={lane:u,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(sf(o))_2(i,m);else{var g=o.alternate;if(o.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var x=i.lastRenderedState,T=g(x,c);if(m.hasEagerState=!0,m.eagerState=T,gr(T,x))return Iu(o,i,m,0),Dt===null&&Fu(),!1}catch{}if(c=R0(o,i,m,u),c!==null)return ur(c,o,u),T2(c,i,u),!0}return!1}function dm(o,i,c,u){if(u={lane:2,revertLane:$m(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},sf(o)){if(i)throw Error(r(479))}else i=R0(o,c,u,2),i!==null&&ur(i,o,2)}function sf(o){var i=o.alternate;return o===$e||i!==null&&i===$e}function _2(o,i){Ds=Wu=!0;var c=o.pending;c===null?i.next=i:(i.next=c.next,c.next=i),o.pending=i}function T2(o,i,c){if((c&4194048)!==0){var u=i.lanes;u&=o.pendingLanes,c|=u,i.lanes=c,St(o,c)}}var Wc={readContext:Ln,use:nf,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Wc.useEffectEvent=Gt;var k2={readContext:Ln,use:nf,useCallback:function(o,i){return qn().memoizedState=[o,i===void 0?null:i],o},useContext:Ln,useEffect:c2,useImperativeHandle:function(o,i,c){c=c!=null?c.concat([o]):null,of(4194308,4,d2.bind(null,i,o),c)},useLayoutEffect:function(o,i){return of(4194308,4,o,i)},useInsertionEffect:function(o,i){of(4,2,o,i)},useMemo:function(o,i){var c=qn();i=i===void 0?null:i;var u=o();if(Pi){_n(!0);try{o()}finally{_n(!1)}}return c.memoizedState=[u,i],u},useReducer:function(o,i,c){var u=qn();if(c!==void 0){var m=c(i);if(Pi){_n(!0);try{c(i)}finally{_n(!1)}}}else m=i;return u.memoizedState=u.baseState=m,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:m},u.queue=o,o=o.dispatch=k9.bind(null,$e,o),[u.memoizedState,o]},useRef:function(o){var i=qn();return o={current:o},i.memoizedState=o},useState:function(o){o=am(o);var i=o.queue,c=x2.bind(null,$e,i);return i.dispatch=c,[o.memoizedState,c]},useDebugValue:cm,useDeferredValue:function(o,i){var c=qn();return lm(c,o,i)},useTransition:function(){var o=am(!1);return o=y2.bind(null,$e,o.queue,!0,!1),qn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,c){var u=$e,m=qn();if(ct){if(c===void 0)throw Error(r(407));c=c()}else{if(c=i(),Dt===null)throw Error(r(349));(ot&127)!==0||Yv(u,i,c)}m.memoizedState=c;var g={value:c,getSnapshot:i};return m.queue=g,c2(qv.bind(null,u,g,o),[o]),u.flags|=2048,Ls(9,{destroy:void 0},Gv.bind(null,u,g,c,i),null),c},useId:function(){var o=qn(),i=Dt.identifierPrefix;if(ct){var c=ao,u=oo;c=(u&~(1<<32-At(u)-1)).toString(32)+c,i="_"+i+"R_"+c,c=ef++,0<c&&(i+="H"+c.toString(32)),i+="_"}else c=b9++,i="_"+i+"r_"+c.toString(32)+"_";return o.memoizedState=i},useHostTransitionStatus:fm,useFormState:r2,useActionState:r2,useOptimistic:function(o){var i=qn();i.memoizedState=i.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=c,i=dm.bind(null,$e,!0,c),c.dispatch=i,[o,i]},useMemoCache:nm,useCacheRefresh:function(){return qn().memoizedState=T9.bind(null,$e)},useEffectEvent:function(o){var i=qn(),c={impl:o};return i.memoizedState=c,function(){if((yt&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},hm={readContext:Ln,use:nf,useCallback:m2,useContext:Ln,useEffect:sm,useImperativeHandle:h2,useInsertionEffect:u2,useLayoutEffect:f2,useMemo:p2,useReducer:rf,useRef:s2,useState:function(){return rf(Oo)},useDebugValue:cm,useDeferredValue:function(o,i){var c=en();return g2(c,Mt.memoizedState,o,i)},useTransition:function(){var o=rf(Oo)[0],i=en().memoizedState;return[typeof o=="boolean"?o:Jc(o),i]},useSyncExternalStore:Zv,useId:S2,useHostTransitionStatus:fm,useFormState:o2,useActionState:o2,useOptimistic:function(o,i){var c=en();return Jv(c,Mt,o,i)},useMemoCache:nm,useCacheRefresh:w2};hm.useEffectEvent=l2;var E2={readContext:Ln,use:nf,useCallback:m2,useContext:Ln,useEffect:sm,useImperativeHandle:h2,useInsertionEffect:u2,useLayoutEffect:f2,useMemo:p2,useReducer:om,useRef:s2,useState:function(){return om(Oo)},useDebugValue:cm,useDeferredValue:function(o,i){var c=en();return Mt===null?lm(c,o,i):g2(c,Mt.memoizedState,o,i)},useTransition:function(){var o=om(Oo)[0],i=en().memoizedState;return[typeof o=="boolean"?o:Jc(o),i]},useSyncExternalStore:Zv,useId:S2,useHostTransitionStatus:fm,useFormState:i2,useActionState:i2,useOptimistic:function(o,i){var c=en();return Mt!==null?Jv(c,Mt,o,i):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:nm,useCacheRefresh:w2};E2.useEffectEvent=l2;function mm(o,i,c,u){i=o.memoizedState,c=c(u,i),c=c==null?i:y({},i,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var pm={enqueueSetState:function(o,i,c){o=o._reactInternals;var u=xr(),m=Ea(u);m.payload=i,c!=null&&(m.callback=c),i=Ca(o,m,u),i!==null&&(ur(i,o,u),Gc(i,o,u))},enqueueReplaceState:function(o,i,c){o=o._reactInternals;var u=xr(),m=Ea(u);m.tag=1,m.payload=i,c!=null&&(m.callback=c),i=Ca(o,m,u),i!==null&&(ur(i,o,u),Gc(i,o,u))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var c=xr(),u=Ea(c);u.tag=2,i!=null&&(u.callback=i),i=Ca(o,u,c),i!==null&&(ur(i,o,c),Gc(i,o,c))}};function C2(o,i,c,u,m,g,x){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(u,g,x):i.prototype&&i.prototype.isPureReactComponent?!Fc(c,u)||!Fc(m,g):!0}function A2(o,i,c,u){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,u),i.state!==o&&pm.enqueueReplaceState(i,i.state,null)}function zi(o,i){var c=i;if("ref"in i){c={};for(var u in i)u!=="ref"&&(c[u]=i[u])}if(o=o.defaultProps){c===i&&(c=y({},c));for(var m in o)c[m]===void 0&&(c[m]=o[m])}return c}function R2(o){Bu(o)}function M2(o){console.error(o)}function O2(o){Bu(o)}function cf(o,i){try{var c=o.onUncaughtError;c(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function P2(o,i,c){try{var u=o.onCaughtError;u(c.value,{componentStack:c.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function gm(o,i,c){return c=Ea(c),c.tag=3,c.payload={element:null},c.callback=function(){cf(o,i)},c}function z2(o){return o=Ea(o),o.tag=3,o}function D2(o,i,c,u){var m=c.type.getDerivedStateFromError;if(typeof m=="function"){var g=u.value;o.payload=function(){return m(g)},o.callback=function(){P2(i,c,u)}}var x=c.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(o.callback=function(){P2(i,c,u),typeof m!="function"&&(za===null?za=new Set([this]):za.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function E9(o,i,c,u,m){if(c.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=c.alternate,i!==null&&As(i,c,m,!0),c=br.current,c!==null){switch(c.tag){case 31:case 13:return Or===null?Sf():c.alternate===null&&qt===0&&(qt=3),c.flags&=-257,c.flags|=65536,c.lanes=m,u===qu?c.flags|=16384:(i=c.updateQueue,i===null?c.updateQueue=new Set([u]):i.add(u),Hm(o,u,m)),!1;case 22:return c.flags|=65536,u===qu?c.flags|=16384:(i=c.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},c.updateQueue=i):(c=i.retryQueue,c===null?i.retryQueue=new Set([u]):c.add(u)),Hm(o,u,m)),!1}throw Error(r(435,c.tag))}return Hm(o,u,m),Sf(),!1}if(ct)return i=br.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=m,u!==N0&&(o=Error(r(422),{cause:u}),Vc(Cr(o,c)))):(u!==N0&&(i=Error(r(423),{cause:u}),Vc(Cr(i,c))),o=o.current.alternate,o.flags|=65536,m&=-m,o.lanes|=m,u=Cr(u,c),m=gm(o.stateNode,u,m),Y0(o,m),qt!==4&&(qt=2)),!1;var g=Error(r(520),{cause:u});if(g=Cr(g,c),sl===null?sl=[g]:sl.push(g),qt!==4&&(qt=2),i===null)return!0;u=Cr(u,c),c=i;do{switch(c.tag){case 3:return c.flags|=65536,o=m&-m,c.lanes|=o,o=gm(c.stateNode,u,o),Y0(c,o),!1;case 1:if(i=c.type,g=c.stateNode,(c.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(za===null||!za.has(g))))return c.flags|=65536,m&=-m,c.lanes|=m,m=z2(m),D2(m,o,c,u),Y0(c,m),!1}c=c.return}while(c!==null);return!1}var ym=Error(r(461)),un=!1;function jn(o,i,c,u){i.child=o===null?Bv(i,null,c,u):Oi(i,o.child,c,u)}function N2(o,i,c,u,m){c=c.render;var g=i.ref;if("ref"in u){var x={};for(var T in u)T!=="ref"&&(x[T]=u[T])}else x=u;return Ci(i),u=Q0(o,i,c,x,g,m),T=W0(),o!==null&&!un?(em(o,i,m),Po(o,i,m)):(ct&&T&&z0(i),i.flags|=1,jn(o,i,u,m),i.child)}function L2(o,i,c,u,m){if(o===null){var g=c.type;return typeof g=="function"&&!M0(g)&&g.defaultProps===void 0&&c.compare===null?(i.tag=15,i.type=g,j2(o,i,g,u,m)):(o=Vu(c.type,null,u,i,i.mode,m),o.ref=i.ref,o.return=i,i.child=o)}if(g=o.child,!km(o,m)){var x=g.memoizedProps;if(c=c.compare,c=c!==null?c:Fc,c(x,u)&&o.ref===i.ref)return Po(o,i,m)}return i.flags|=1,o=Eo(g,u),o.ref=i.ref,o.return=i,i.child=o}function j2(o,i,c,u,m){if(o!==null){var g=o.memoizedProps;if(Fc(g,u)&&o.ref===i.ref)if(un=!1,i.pendingProps=u=g,km(o,m))(o.flags&131072)!==0&&(un=!0);else return i.lanes=o.lanes,Po(o,i,m)}return bm(o,i,c,u,m)}function B2(o,i,c,u){var m=u.children,g=o!==null?o.memoizedState:null;if(o===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|c:c,o!==null){for(u=i.child=o.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~g}else u=0,i.child=null;return F2(o,i,g,c,u)}if((c&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&Yu(i,g!==null?g.cachePool:null),g!==null?Hv(i,g):q0(),Vv(i);else return u=i.lanes=536870912,F2(o,i,g!==null?g.baseLanes|c:c,c,u)}else g!==null?(Yu(i,g.cachePool),Hv(i,g),Ra(),i.memoizedState=null):(o!==null&&Yu(i,null),q0(),Ra());return jn(o,i,m,c),i.child}function el(o,i){return o!==null&&o.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function F2(o,i,c,u,m){var g=V0();return g=g===null?null:{parent:cn._currentValue,pool:g},i.memoizedState={baseLanes:c,cachePool:g},o!==null&&Yu(i,null),q0(),Vv(i),o!==null&&As(o,i,u,!0),i.childLanes=m,null}function lf(o,i){return i=ff({mode:i.mode,children:i.children},o.mode),i.ref=o.ref,o.child=i,i.return=o,i}function I2(o,i,c){return Oi(i,o.child,null,c),o=lf(i,i.pendingProps),o.flags|=2,vr(i),i.memoizedState=null,o}function C9(o,i,c){var u=i.pendingProps,m=(i.flags&128)!==0;if(i.flags&=-129,o===null){if(ct){if(u.mode==="hidden")return o=lf(i,u),i.lanes=536870912,el(null,o);if(K0(i),(o=jt)?(o=QS(o,Mr),o=o!==null&&o.data==="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:wa!==null?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},c=_v(o),c.return=i,i.child=c,Nn=i,jt=null)):o=null,o===null)throw _a(i);return i.lanes=536870912,null}return lf(i,u)}var g=o.memoizedState;if(g!==null){var x=g.dehydrated;if(K0(i),m)if(i.flags&256)i.flags&=-257,i=I2(o,i,c);else if(i.memoizedState!==null)i.child=o.child,i.flags|=128,i=null;else throw Error(r(558));else if(un||As(o,i,c,!1),m=(c&o.childLanes)!==0,un||m){if(u=Dt,u!==null&&(x=wt(u,c),x!==0&&x!==g.retryLane))throw g.retryLane=x,_i(o,x),ur(u,o,x),ym;Sf(),i=I2(o,i,c)}else o=g.treeContext,jt=Pr(x.nextSibling),Nn=i,ct=!0,xa=null,Mr=!1,o!==null&&Ev(i,o),i=lf(i,u),i.flags|=4096;return i}return o=Eo(o.child,{mode:u.mode,children:u.children}),o.ref=i.ref,i.child=o,o.return=i,o}function uf(o,i){var c=i.ref;if(c===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(o===null||o.ref!==c)&&(i.flags|=4194816)}}function bm(o,i,c,u,m){return Ci(i),c=Q0(o,i,c,u,void 0,m),u=W0(),o!==null&&!un?(em(o,i,m),Po(o,i,m)):(ct&&u&&z0(i),i.flags|=1,jn(o,i,c,m),i.child)}function H2(o,i,c,u,m,g){return Ci(i),i.updateQueue=null,c=$v(i,u,c,m),Uv(o),u=W0(),o!==null&&!un?(em(o,i,g),Po(o,i,g)):(ct&&u&&z0(i),i.flags|=1,jn(o,i,c,g),i.child)}function V2(o,i,c,u,m){if(Ci(i),i.stateNode===null){var g=Ts,x=c.contextType;typeof x=="object"&&x!==null&&(g=Ln(x)),g=new c(u,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=pm,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=u,g.state=i.memoizedState,g.refs={},$0(i),x=c.contextType,g.context=typeof x=="object"&&x!==null?Ln(x):Ts,g.state=i.memoizedState,x=c.getDerivedStateFromProps,typeof x=="function"&&(mm(i,c,x,u),g.state=i.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&pm.enqueueReplaceState(g,g.state,null),Xc(i,u,g,m),qc(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(o===null){g=i.stateNode;var T=i.memoizedProps,j=zi(c,T);g.props=j;var X=g.context,te=c.contextType;x=Ts,typeof te=="object"&&te!==null&&(x=Ln(te));var ie=c.getDerivedStateFromProps;te=typeof ie=="function"||typeof g.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,te||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T||X!==x)&&A2(i,g,u,x),ka=!1;var K=i.memoizedState;g.state=K,Xc(i,u,g,m),qc(),X=i.memoizedState,T||K!==X||ka?(typeof ie=="function"&&(mm(i,c,ie,u),X=i.memoizedState),(j=ka||C2(i,c,j,u,K,X,x))?(te||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=X),g.props=u,g.state=X,g.context=x,u=j):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{g=i.stateNode,Z0(o,i),x=i.memoizedProps,te=zi(c,x),g.props=te,ie=i.pendingProps,K=g.context,X=c.contextType,j=Ts,typeof X=="object"&&X!==null&&(j=Ln(X)),T=c.getDerivedStateFromProps,(X=typeof T=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==ie||K!==j)&&A2(i,g,u,j),ka=!1,K=i.memoizedState,g.state=K,Xc(i,u,g,m),qc();var W=i.memoizedState;x!==ie||K!==W||ka||o!==null&&o.dependencies!==null&&$u(o.dependencies)?(typeof T=="function"&&(mm(i,c,T,u),W=i.memoizedState),(te=ka||C2(i,c,te,u,K,W,j)||o!==null&&o.dependencies!==null&&$u(o.dependencies))?(X||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,W,j),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,W,j)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===o.memoizedProps&&K===o.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===o.memoizedProps&&K===o.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=W),g.props=u,g.state=W,g.context=j,u=te):(typeof g.componentDidUpdate!="function"||x===o.memoizedProps&&K===o.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===o.memoizedProps&&K===o.memoizedState||(i.flags|=1024),u=!1)}return g=u,uf(o,i),u=(i.flags&128)!==0,g||u?(g=i.stateNode,c=u&&typeof c.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,o!==null&&u?(i.child=Oi(i,o.child,null,m),i.child=Oi(i,null,c,m)):jn(o,i,c,m),i.memoizedState=g.state,o=i.child):o=Po(o,i,m),o}function U2(o,i,c,u){return ki(),i.flags|=256,jn(o,i,c,u),i.child}var vm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sm(o){return{baseLanes:o,cachePool:Pv()}}function wm(o,i,c){return o=o!==null?o.childLanes&~c:0,i&&(o|=wr),o}function $2(o,i,c){var u=i.pendingProps,m=!1,g=(i.flags&128)!==0,x;if((x=g)||(x=o!==null&&o.memoizedState===null?!1:(Wt.current&2)!==0),x&&(m=!0,i.flags&=-129),x=(i.flags&32)!==0,i.flags&=-33,o===null){if(ct){if(m?Aa(i):Ra(),(o=jt)?(o=QS(o,Mr),o=o!==null&&o.data!=="&"?o:null,o!==null&&(i.memoizedState={dehydrated:o,treeContext:wa!==null?{id:oo,overflow:ao}:null,retryLane:536870912,hydrationErrors:null},c=_v(o),c.return=i,i.child=c,Nn=i,jt=null)):o=null,o===null)throw _a(i);return rp(o)?i.lanes=32:i.lanes=536870912,null}var T=u.children;return u=u.fallback,m?(Ra(),m=i.mode,T=ff({mode:"hidden",children:T},m),u=Ti(u,m,c,null),T.return=i,u.return=i,T.sibling=u,i.child=T,u=i.child,u.memoizedState=Sm(c),u.childLanes=wm(o,x,c),i.memoizedState=vm,el(null,u)):(Aa(i),xm(i,T))}var j=o.memoizedState;if(j!==null&&(T=j.dehydrated,T!==null)){if(g)i.flags&256?(Aa(i),i.flags&=-257,i=_m(o,i,c)):i.memoizedState!==null?(Ra(),i.child=o.child,i.flags|=128,i=null):(Ra(),T=u.fallback,m=i.mode,u=ff({mode:"visible",children:u.children},m),T=Ti(T,m,c,null),T.flags|=2,u.return=i,T.return=i,u.sibling=T,i.child=u,Oi(i,o.child,null,c),u=i.child,u.memoizedState=Sm(c),u.childLanes=wm(o,x,c),i.memoizedState=vm,i=el(null,u));else if(Aa(i),rp(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var X=x.dgst;x=X,u=Error(r(419)),u.stack="",u.digest=x,Vc({value:u,source:null,stack:null}),i=_m(o,i,c)}else if(un||As(o,i,c,!1),x=(c&o.childLanes)!==0,un||x){if(x=Dt,x!==null&&(u=wt(x,c),u!==0&&u!==j.retryLane))throw j.retryLane=u,_i(o,u),ur(x,o,u),ym;np(T)||Sf(),i=_m(o,i,c)}else np(T)?(i.flags|=192,i.child=o.child,i=null):(o=j.treeContext,jt=Pr(T.nextSibling),Nn=i,ct=!0,xa=null,Mr=!1,o!==null&&Ev(i,o),i=xm(i,u.children),i.flags|=4096);return i}return m?(Ra(),T=u.fallback,m=i.mode,j=o.child,X=j.sibling,u=Eo(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,X!==null?T=Eo(X,T):(T=Ti(T,m,c,null),T.flags|=2),T.return=i,u.return=i,u.sibling=T,i.child=u,el(null,u),u=i.child,T=o.child.memoizedState,T===null?T=Sm(c):(m=T.cachePool,m!==null?(j=cn._currentValue,m=m.parent!==j?{parent:j,pool:j}:m):m=Pv(),T={baseLanes:T.baseLanes|c,cachePool:m}),u.memoizedState=T,u.childLanes=wm(o,x,c),i.memoizedState=vm,el(o.child,u)):(Aa(i),c=o.child,o=c.sibling,c=Eo(c,{mode:"visible",children:u.children}),c.return=i,c.sibling=null,o!==null&&(x=i.deletions,x===null?(i.deletions=[o],i.flags|=16):x.push(o)),i.child=c,i.memoizedState=null,c)}function xm(o,i){return i=ff({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function ff(o,i){return o=yr(22,o,null,i),o.lanes=0,o}function _m(o,i,c){return Oi(i,o.child,null,c),o=xm(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function Z2(o,i,c){o.lanes|=i;var u=o.alternate;u!==null&&(u.lanes|=i),B0(o.return,i,c)}function Tm(o,i,c,u,m,g){var x=o.memoizedState;x===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:c,tailMode:m,treeForkCount:g}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=c,x.tailMode=m,x.treeForkCount=g)}function Y2(o,i,c){var u=i.pendingProps,m=u.revealOrder,g=u.tail;u=u.children;var x=Wt.current,T=(x&2)!==0;if(T?(x=x&1|2,i.flags|=128):x&=1,ee(Wt,x),jn(o,i,u,c),u=ct?Hc:0,!T&&o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Z2(o,c,i);else if(o.tag===19)Z2(o,c,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(m){case"forwards":for(c=i.child,m=null;c!==null;)o=c.alternate,o!==null&&Qu(o)===null&&(m=c),c=c.sibling;c=m,c===null?(m=i.child,i.child=null):(m=c.sibling,c.sibling=null),Tm(i,!1,m,c,g,u);break;case"backwards":case"unstable_legacy-backwards":for(c=null,m=i.child,i.child=null;m!==null;){if(o=m.alternate,o!==null&&Qu(o)===null){i.child=m;break}o=m.sibling,m.sibling=c,c=m,m=o}Tm(i,!0,c,null,g,u);break;case"together":Tm(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function Po(o,i,c){if(o!==null&&(i.dependencies=o.dependencies),Pa|=i.lanes,(c&i.childLanes)===0)if(o!==null){if(As(o,i,c,!1),(c&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,c=Eo(o,o.pendingProps),i.child=c,c.return=i;o.sibling!==null;)o=o.sibling,c=c.sibling=Eo(o,o.pendingProps),c.return=i;c.sibling=null}return i.child}function km(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&$u(o)))}function A9(o,i,c){switch(i.tag){case 3:Je(i,i.stateNode.containerInfo),Ta(i,cn,o.memoizedState.cache),ki();break;case 27:case 5:nt(i);break;case 4:Je(i,i.stateNode.containerInfo);break;case 10:Ta(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,K0(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Aa(i),i.flags|=128,null):(c&i.child.childLanes)!==0?$2(o,i,c):(Aa(i),o=Po(o,i,c),o!==null?o.sibling:null);Aa(i);break;case 19:var m=(o.flags&128)!==0;if(u=(c&i.childLanes)!==0,u||(As(o,i,c,!1),u=(c&i.childLanes)!==0),m){if(u)return Y2(o,i,c);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ee(Wt,Wt.current),u)break;return null;case 22:return i.lanes=0,B2(o,i,c,i.pendingProps);case 24:Ta(i,cn,o.memoizedState.cache)}return Po(o,i,c)}function G2(o,i,c){if(o!==null)if(o.memoizedProps!==i.pendingProps)un=!0;else{if(!km(o,c)&&(i.flags&128)===0)return un=!1,A9(o,i,c);un=(o.flags&131072)!==0}else un=!1,ct&&(i.flags&1048576)!==0&&kv(i,Hc,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(o=Ri(i.elementType),i.type=o,typeof o=="function")M0(o)?(u=zi(o,u),i.tag=1,i=V2(null,i,o,u,c)):(i.tag=0,i=bm(null,i,o,u,c));else{if(o!=null){var m=o.$$typeof;if(m===R){i.tag=11,i=N2(null,i,o,u,c);break e}else if(m===M){i.tag=14,i=L2(null,i,o,u,c);break e}}throw i=fe(o)||o,Error(r(306,i,""))}}return i;case 0:return bm(o,i,i.type,i.pendingProps,c);case 1:return u=i.type,m=zi(u,i.pendingProps),V2(o,i,u,m,c);case 3:e:{if(Je(i,i.stateNode.containerInfo),o===null)throw Error(r(387));u=i.pendingProps;var g=i.memoizedState;m=g.element,Z0(o,i),Xc(i,u,null,c);var x=i.memoizedState;if(u=x.cache,Ta(i,cn,u),u!==g.cache&&F0(i,[cn],c,!0),qc(),u=x.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:x.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=U2(o,i,u,c);break e}else if(u!==m){m=Cr(Error(r(424)),i),Vc(m),i=U2(o,i,u,c);break e}else for(o=i.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,jt=Pr(o.firstChild),Nn=i,ct=!0,xa=null,Mr=!0,c=Bv(i,null,u,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(ki(),u===m){i=Po(o,i,c);break e}jn(o,i,u,c)}i=i.child}return i;case 26:return uf(o,i),o===null?(c=ow(i.type,null,i.pendingProps,null))?i.memoizedState=c:ct||(c=i.type,o=i.pendingProps,u=Cf(pe.current).createElement(c),u[xt]=i,u[Rt]=o,Bn(u,c,o),Tn(u),i.stateNode=u):i.memoizedState=ow(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return nt(i),o===null&&ct&&(u=i.stateNode=tw(i.type,i.pendingProps,pe.current),Nn=i,Mr=!0,m=jt,ja(i.type)?(op=m,jt=Pr(u.firstChild)):jt=m),jn(o,i,i.pendingProps.children,c),uf(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&ct&&((m=u=jt)&&(u=oC(u,i.type,i.pendingProps,Mr),u!==null?(i.stateNode=u,Nn=i,jt=Pr(u.firstChild),Mr=!1,m=!0):m=!1),m||_a(i)),nt(i),m=i.type,g=i.pendingProps,x=o!==null?o.memoizedProps:null,u=g.children,Wm(m,g)?u=null:x!==null&&Wm(m,x)&&(i.flags|=32),i.memoizedState!==null&&(m=Q0(o,i,v9,null,null,c),pl._currentValue=m),uf(o,i),jn(o,i,u,c),i.child;case 6:return o===null&&ct&&((o=c=jt)&&(c=aC(c,i.pendingProps,Mr),c!==null?(i.stateNode=c,Nn=i,jt=null,o=!0):o=!1),o||_a(i)),null;case 13:return $2(o,i,c);case 4:return Je(i,i.stateNode.containerInfo),u=i.pendingProps,o===null?i.child=Oi(i,null,u,c):jn(o,i,u,c),i.child;case 11:return N2(o,i,i.type,i.pendingProps,c);case 7:return jn(o,i,i.pendingProps,c),i.child;case 8:return jn(o,i,i.pendingProps.children,c),i.child;case 12:return jn(o,i,i.pendingProps.children,c),i.child;case 10:return u=i.pendingProps,Ta(i,i.type,u.value),jn(o,i,u.children,c),i.child;case 9:return m=i.type._context,u=i.pendingProps.children,Ci(i),m=Ln(m),u=u(m),i.flags|=1,jn(o,i,u,c),i.child;case 14:return L2(o,i,i.type,i.pendingProps,c);case 15:return j2(o,i,i.type,i.pendingProps,c);case 19:return Y2(o,i,c);case 31:return C9(o,i,c);case 22:return B2(o,i,c,i.pendingProps);case 24:return Ci(i),u=Ln(cn),o===null?(m=V0(),m===null&&(m=Dt,g=I0(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=c),m=g),i.memoizedState={parent:u,cache:m},$0(i),Ta(i,cn,m)):((o.lanes&c)!==0&&(Z0(o,i),Xc(i,null,null,c),qc()),m=o.memoizedState,g=i.memoizedState,m.parent!==u?(m={parent:u,cache:u},i.memoizedState=m,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=m),Ta(i,cn,u)):(u=g.cache,Ta(i,cn,u),u!==m.cache&&F0(i,[cn],c,!0))),jn(o,i,i.pendingProps.children,c),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function zo(o){o.flags|=4}function Em(o,i,c,u,m){if((i=(o.mode&32)!==0)&&(i=!1),i){if(o.flags|=16777216,(m&335544128)===m)if(o.stateNode.complete)o.flags|=8192;else if(SS())o.flags|=8192;else throw Mi=qu,U0}else o.flags&=-16777217}function q2(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!lw(i))if(SS())o.flags|=8192;else throw Mi=qu,U0}function df(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?Le():536870912,o.lanes|=i,Is|=i)}function tl(o,i){if(!ct)switch(o.tailMode){case"hidden":i=o.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var u=null;c!==null;)c.alternate!==null&&(u=c),c=c.sibling;u===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:u.sibling=null}}function Bt(o){var i=o.alternate!==null&&o.alternate.child===o.child,c=0,u=0;if(i)for(var m=o.child;m!==null;)c|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=o,m=m.sibling;else for(m=o.child;m!==null;)c|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=o,m=m.sibling;return o.subtreeFlags|=u,o.childLanes=c,i}function R9(o,i,c){var u=i.pendingProps;switch(D0(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(i),null;case 1:return Bt(i),null;case 3:return c=i.stateNode,u=null,o!==null&&(u=o.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Ro(cn),be(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(Cs(i)?zo(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,L0())),Bt(i),null;case 26:var m=i.type,g=i.memoizedState;return o===null?(zo(i),g!==null?(Bt(i),q2(i,g)):(Bt(i),Em(i,m,null,u,c))):g?g!==o.memoizedState?(zo(i),Bt(i),q2(i,g)):(Bt(i),i.flags&=-16777217):(o=o.memoizedProps,o!==u&&zo(i),Bt(i),Em(i,m,o,u,c)),null;case 27:if(pt(i),c=pe.current,m=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&zo(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Bt(i),null}o=ue.current,Cs(i)?Cv(i):(o=tw(m,u,c),i.stateNode=o,zo(i))}return Bt(i),null;case 5:if(pt(i),m=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==u&&zo(i);else{if(!u){if(i.stateNode===null)throw Error(r(166));return Bt(i),null}if(g=ue.current,Cs(i))Cv(i);else{var x=Cf(pe.current);switch(g){case 1:g=x.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=x.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=x.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=x.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=x.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?g.multiple=!0:u.size&&(g.size=u.size);break;default:g=typeof u.is=="string"?x.createElement(m,{is:u.is}):x.createElement(m)}}g[xt]=i,g[Rt]=u;e:for(x=i.child;x!==null;){if(x.tag===5||x.tag===6)g.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===i)break e;for(;x.sibling===null;){if(x.return===null||x.return===i)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}i.stateNode=g;e:switch(Bn(g,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&zo(i)}}return Bt(i),Em(i,i.type,o===null?null:o.memoizedProps,i.pendingProps,c),null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==u&&zo(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(r(166));if(o=pe.current,Cs(i)){if(o=i.stateNode,c=i.memoizedProps,u=null,m=Nn,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}o[xt]=i,o=!!(o.nodeValue===c||u!==null&&u.suppressHydrationWarning===!0||$S(o.nodeValue,c)),o||_a(i,!0)}else o=Cf(o).createTextNode(u),o[xt]=i,i.stateNode=o}return Bt(i),null;case 31:if(c=i.memoizedState,o===null||o.memoizedState!==null){if(u=Cs(i),c!==null){if(o===null){if(!u)throw Error(r(318));if(o=i.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[xt]=i}else ki(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Bt(i),o=!1}else c=L0(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=c),o=!0;if(!o)return i.flags&256?(vr(i),i):(vr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Bt(i),null;case 13:if(u=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(m=Cs(i),u!==null&&u.dehydrated!==null){if(o===null){if(!m)throw Error(r(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[xt]=i}else ki(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Bt(i),m=!1}else m=L0(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),m=!0;if(!m)return i.flags&256?(vr(i),i):(vr(i),null)}return vr(i),(i.flags&128)!==0?(i.lanes=c,i):(c=u!==null,o=o!==null&&o.memoizedState!==null,c&&(u=i.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==m&&(u.flags|=2048)),c!==o&&c&&(i.child.flags|=8192),df(i,i.updateQueue),Bt(i),null);case 4:return be(),o===null&&qm(i.stateNode.containerInfo),Bt(i),null;case 10:return Ro(i.type),Bt(i),null;case 19:if(Q(Wt),u=i.memoizedState,u===null)return Bt(i),null;if(m=(i.flags&128)!==0,g=u.rendering,g===null)if(m)tl(u,!1);else{if(qt!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(g=Qu(o),g!==null){for(i.flags|=128,tl(u,!1),o=g.updateQueue,i.updateQueue=o,df(i,o),i.subtreeFlags=0,o=c,c=i.child;c!==null;)xv(c,o),c=c.sibling;return ee(Wt,Wt.current&1|2),ct&&Co(i,u.treeForkCount),i.child}o=o.sibling}u.tail!==null&&Ne()>yf&&(i.flags|=128,m=!0,tl(u,!1),i.lanes=4194304)}else{if(!m)if(o=Qu(g),o!==null){if(i.flags|=128,m=!0,o=o.updateQueue,i.updateQueue=o,df(i,o),tl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!g.alternate&&!ct)return Bt(i),null}else 2*Ne()-u.renderingStartTime>yf&&c!==536870912&&(i.flags|=128,m=!0,tl(u,!1),i.lanes=4194304);u.isBackwards?(g.sibling=i.child,i.child=g):(o=u.last,o!==null?o.sibling=g:i.child=g,u.last=g)}return u.tail!==null?(o=u.tail,u.rendering=o,u.tail=o.sibling,u.renderingStartTime=Ne(),o.sibling=null,c=Wt.current,ee(Wt,m?c&1|2:c&1),ct&&Co(i,u.treeForkCount),o):(Bt(i),null);case 22:case 23:return vr(i),X0(),u=i.memoizedState!==null,o!==null?o.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(c&536870912)!==0&&(i.flags&128)===0&&(Bt(i),i.subtreeFlags&6&&(i.flags|=8192)):Bt(i),c=i.updateQueue,c!==null&&df(i,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==c&&(i.flags|=2048),o!==null&&Q(Ai),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Ro(cn),Bt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function M9(o,i){switch(D0(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Ro(cn),be(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return pt(i),null;case 31:if(i.memoizedState!==null){if(vr(i),i.alternate===null)throw Error(r(340));ki()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 13:if(vr(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));ki()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return Q(Wt),null;case 4:return be(),null;case 10:return Ro(i.type),null;case 22:case 23:return vr(i),X0(),o!==null&&Q(Ai),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return Ro(cn),null;case 25:return null;default:return null}}function X2(o,i){switch(D0(i),i.tag){case 3:Ro(cn),be();break;case 26:case 27:case 5:pt(i);break;case 4:be();break;case 31:i.memoizedState!==null&&vr(i);break;case 13:vr(i);break;case 19:Q(Wt);break;case 10:Ro(i.type);break;case 22:case 23:vr(i),X0(),o!==null&&Q(Ai);break;case 24:Ro(cn)}}function nl(o,i){try{var c=i.updateQueue,u=c!==null?c.lastEffect:null;if(u!==null){var m=u.next;c=m;do{if((c.tag&o)===o){u=void 0;var g=c.create,x=c.inst;u=g(),x.destroy=u}c=c.next}while(c!==m)}}catch(T){Et(i,i.return,T)}}function Ma(o,i,c){try{var u=i.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var g=m.next;u=g;do{if((u.tag&o)===o){var x=u.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,m=i;var j=c,X=T;try{X()}catch(te){Et(m,j,te)}}}u=u.next}while(u!==g)}}catch(te){Et(i,i.return,te)}}function K2(o){var i=o.updateQueue;if(i!==null){var c=o.stateNode;try{Iv(i,c)}catch(u){Et(o,o.return,u)}}}function J2(o,i,c){c.props=zi(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(u){Et(o,i,u)}}function rl(o,i){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var u=o.stateNode;break;case 30:u=o.stateNode;break;default:u=o.stateNode}typeof c=="function"?o.refCleanup=c(u):c.current=u}}catch(m){Et(o,i,m)}}function io(o,i){var c=o.ref,u=o.refCleanup;if(c!==null)if(typeof u=="function")try{u()}catch(m){Et(o,i,m)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(m){Et(o,i,m)}else c.current=null}function Q2(o){var i=o.type,c=o.memoizedProps,u=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":c.autoFocus&&u.focus();break e;case"img":c.src?u.src=c.src:c.srcSet&&(u.srcset=c.srcSet)}}catch(m){Et(o,o.return,m)}}function Cm(o,i,c){try{var u=o.stateNode;Q9(u,o.type,c,i),u[Rt]=i}catch(m){Et(o,o.return,m)}}function W2(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&ja(o.type)||o.tag===4}function Am(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||W2(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&ja(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Rm(o,i,c){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,i):(i=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,i.appendChild(o),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=To));else if(u!==4&&(u===27&&ja(o.type)&&(c=o.stateNode,i=null),o=o.child,o!==null))for(Rm(o,i,c),o=o.sibling;o!==null;)Rm(o,i,c),o=o.sibling}function hf(o,i,c){var u=o.tag;if(u===5||u===6)o=o.stateNode,i?c.insertBefore(o,i):c.appendChild(o);else if(u!==4&&(u===27&&ja(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(hf(o,i,c),o=o.sibling;o!==null;)hf(o,i,c),o=o.sibling}function eS(o){var i=o.stateNode,c=o.memoizedProps;try{for(var u=o.type,m=i.attributes;m.length;)i.removeAttributeNode(m[0]);Bn(i,u,c),i[xt]=o,i[Rt]=c}catch(g){Et(o,o.return,g)}}var Do=!1,fn=!1,Mm=!1,tS=typeof WeakSet=="function"?WeakSet:Set,kn=null;function O9(o,i){if(o=o.containerInfo,Jm=Df,o=hv(o),_0(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var u=c.getSelection&&c.getSelection();if(u&&u.rangeCount!==0){c=u.anchorNode;var m=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{c.nodeType,g.nodeType}catch{c=null;break e}var x=0,T=-1,j=-1,X=0,te=0,ie=o,K=null;t:for(;;){for(var W;ie!==c||m!==0&&ie.nodeType!==3||(T=x+m),ie!==g||u!==0&&ie.nodeType!==3||(j=x+u),ie.nodeType===3&&(x+=ie.nodeValue.length),(W=ie.firstChild)!==null;)K=ie,ie=W;for(;;){if(ie===o)break t;if(K===c&&++X===m&&(T=x),K===g&&++te===u&&(j=x),(W=ie.nextSibling)!==null)break;ie=K,K=ie.parentNode}ie=W}c=T===-1||j===-1?null:{start:T,end:j}}else c=null}c=c||{start:0,end:0}}else c=null;for(Qm={focusedElem:o,selectionRange:c},Df=!1,kn=i;kn!==null;)if(i=kn,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,kn=o;else for(;kn!==null;){switch(i=kn,g=i.alternate,o=i.flags,i.tag){case 0:if((o&4)!==0&&(o=i.updateQueue,o=o!==null?o.events:null,o!==null))for(c=0;c<o.length;c++)m=o[c],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&g!==null){o=void 0,c=i,m=g.memoizedProps,g=g.memoizedState,u=c.stateNode;try{var Ee=zi(c.type,m);o=u.getSnapshotBeforeUpdate(Ee,g),u.__reactInternalSnapshotBeforeUpdate=o}catch(De){Et(c,c.return,De)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,c=o.nodeType,c===9)tp(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":tp(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,kn=o;break}kn=i.return}}function nS(o,i,c){var u=c.flags;switch(c.tag){case 0:case 11:case 15:Lo(o,c),u&4&&nl(5,c);break;case 1:if(Lo(o,c),u&4)if(o=c.stateNode,i===null)try{o.componentDidMount()}catch(x){Et(c,c.return,x)}else{var m=zi(c.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(m,i,o.__reactInternalSnapshotBeforeUpdate)}catch(x){Et(c,c.return,x)}}u&64&&K2(c),u&512&&rl(c,c.return);break;case 3:if(Lo(o,c),u&64&&(o=c.updateQueue,o!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{Iv(o,i)}catch(x){Et(c,c.return,x)}}break;case 27:i===null&&u&4&&eS(c);case 26:case 5:Lo(o,c),i===null&&u&4&&Q2(c),u&512&&rl(c,c.return);break;case 12:Lo(o,c);break;case 31:Lo(o,c),u&4&&aS(o,c);break;case 13:Lo(o,c),u&4&&iS(o,c),u&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=I9.bind(null,c),iC(o,c))));break;case 22:if(u=c.memoizedState!==null||Do,!u){i=i!==null&&i.memoizedState!==null||fn,m=Do;var g=fn;Do=u,(fn=i)&&!g?jo(o,c,(c.subtreeFlags&8772)!==0):Lo(o,c),Do=m,fn=g}break;case 30:break;default:Lo(o,c)}}function rS(o){var i=o.alternate;i!==null&&(o.alternate=null,rS(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&$r(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ht=null,ir=!1;function No(o,i,c){for(c=c.child;c!==null;)oS(o,i,c),c=c.sibling}function oS(o,i,c){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(It,c)}catch{}switch(c.tag){case 26:fn||io(c,i),No(o,i,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:fn||io(c,i);var u=Ht,m=ir;ja(c.type)&&(Ht=c.stateNode,ir=!1),No(o,i,c),dl(c.stateNode),Ht=u,ir=m;break;case 5:fn||io(c,i);case 6:if(u=Ht,m=ir,Ht=null,No(o,i,c),Ht=u,ir=m,Ht!==null)if(ir)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(c.stateNode)}catch(g){Et(c,i,g)}else try{Ht.removeChild(c.stateNode)}catch(g){Et(c,i,g)}break;case 18:Ht!==null&&(ir?(o=Ht,KS(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),qs(o)):KS(Ht,c.stateNode));break;case 4:u=Ht,m=ir,Ht=c.stateNode.containerInfo,ir=!0,No(o,i,c),Ht=u,ir=m;break;case 0:case 11:case 14:case 15:Ma(2,c,i),fn||Ma(4,c,i),No(o,i,c);break;case 1:fn||(io(c,i),u=c.stateNode,typeof u.componentWillUnmount=="function"&&J2(c,i,u)),No(o,i,c);break;case 21:No(o,i,c);break;case 22:fn=(u=fn)||c.memoizedState!==null,No(o,i,c),fn=u;break;default:No(o,i,c)}}function aS(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{qs(o)}catch(c){Et(i,i.return,c)}}}function iS(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{qs(o)}catch(c){Et(i,i.return,c)}}function P9(o){switch(o.tag){case 31:case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new tS),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new tS),i;default:throw Error(r(435,o.tag))}}function mf(o,i){var c=P9(o);i.forEach(function(u){if(!c.has(u)){c.add(u);var m=H9.bind(null,o,u);u.then(m,m)}})}function sr(o,i){var c=i.deletions;if(c!==null)for(var u=0;u<c.length;u++){var m=c[u],g=o,x=i,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(ja(T.type)){Ht=T.stateNode,ir=!1;break e}break;case 5:Ht=T.stateNode,ir=!1;break e;case 3:case 4:Ht=T.stateNode.containerInfo,ir=!0;break e}T=T.return}if(Ht===null)throw Error(r(160));oS(g,x,m),Ht=null,ir=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)sS(i,o),i=i.sibling}var Gr=null;function sS(o,i){var c=o.alternate,u=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:sr(i,o),cr(o),u&4&&(Ma(3,o,o.return),nl(3,o),Ma(5,o,o.return));break;case 1:sr(i,o),cr(o),u&512&&(fn||c===null||io(c,c.return)),u&64&&Do&&(o=o.updateQueue,o!==null&&(u=o.callbacks,u!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?u:c.concat(u))));break;case 26:var m=Gr;if(sr(i,o),cr(o),u&512&&(fn||c===null||io(c,c.return)),u&4){var g=c!==null?c.memoizedState:null;if(u=o.memoizedState,c===null)if(u===null)if(o.stateNode===null){e:{u=o.type,c=o.memoizedProps,m=m.ownerDocument||m;t:switch(u){case"title":g=m.getElementsByTagName("title")[0],(!g||g[rr]||g[xt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(u),m.head.insertBefore(g,m.querySelector("head > title"))),Bn(g,u,c),g[xt]=o,Tn(g),u=g;break e;case"link":var x=sw("link","href",m).get(u+(c.href||""));if(x){for(var T=0;T<x.length;T++)if(g=x[T],g.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&g.getAttribute("rel")===(c.rel==null?null:c.rel)&&g.getAttribute("title")===(c.title==null?null:c.title)&&g.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){x.splice(T,1);break t}}g=m.createElement(u),Bn(g,u,c),m.head.appendChild(g);break;case"meta":if(x=sw("meta","content",m).get(u+(c.content||""))){for(T=0;T<x.length;T++)if(g=x[T],g.getAttribute("content")===(c.content==null?null:""+c.content)&&g.getAttribute("name")===(c.name==null?null:c.name)&&g.getAttribute("property")===(c.property==null?null:c.property)&&g.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&g.getAttribute("charset")===(c.charSet==null?null:c.charSet)){x.splice(T,1);break t}}g=m.createElement(u),Bn(g,u,c),m.head.appendChild(g);break;default:throw Error(r(468,u))}g[xt]=o,Tn(g),u=g}o.stateNode=u}else cw(m,o.type,o.stateNode);else o.stateNode=iw(m,u,o.memoizedProps);else g!==u?(g===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):g.count--,u===null?cw(m,o.type,o.stateNode):iw(m,u,o.memoizedProps)):u===null&&o.stateNode!==null&&Cm(o,o.memoizedProps,c.memoizedProps)}break;case 27:sr(i,o),cr(o),u&512&&(fn||c===null||io(c,c.return)),c!==null&&u&4&&Cm(o,o.memoizedProps,c.memoizedProps);break;case 5:if(sr(i,o),cr(o),u&512&&(fn||c===null||io(c,c.return)),o.flags&32){m=o.stateNode;try{ys(m,"")}catch(Ee){Et(o,o.return,Ee)}}u&4&&o.stateNode!=null&&(m=o.memoizedProps,Cm(o,m,c!==null?c.memoizedProps:m)),u&1024&&(Mm=!0);break;case 6:if(sr(i,o),cr(o),u&4){if(o.stateNode===null)throw Error(r(162));u=o.memoizedProps,c=o.stateNode;try{c.nodeValue=u}catch(Ee){Et(o,o.return,Ee)}}break;case 3:if(Mf=null,m=Gr,Gr=Af(i.containerInfo),sr(i,o),Gr=m,cr(o),u&4&&c!==null&&c.memoizedState.isDehydrated)try{qs(i.containerInfo)}catch(Ee){Et(o,o.return,Ee)}Mm&&(Mm=!1,cS(o));break;case 4:u=Gr,Gr=Af(o.stateNode.containerInfo),sr(i,o),cr(o),Gr=u;break;case 12:sr(i,o),cr(o);break;case 31:sr(i,o),cr(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,mf(o,u)));break;case 13:sr(i,o),cr(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(gf=Ne()),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,mf(o,u)));break;case 22:m=o.memoizedState!==null;var j=c!==null&&c.memoizedState!==null,X=Do,te=fn;if(Do=X||m,fn=te||j,sr(i,o),fn=te,Do=X,cr(o),u&8192)e:for(i=o.stateNode,i._visibility=m?i._visibility&-2:i._visibility|1,m&&(c===null||j||Do||fn||Di(o)),c=null,i=o;;){if(i.tag===5||i.tag===26){if(c===null){j=c=i;try{if(g=j.stateNode,m)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=j.stateNode;var ie=j.memoizedProps.style,K=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;T.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Ee){Et(j,j.return,Ee)}}}else if(i.tag===6){if(c===null){j=i;try{j.stateNode.nodeValue=m?"":j.memoizedProps}catch(Ee){Et(j,j.return,Ee)}}}else if(i.tag===18){if(c===null){j=i;try{var W=j.stateNode;m?JS(W,!0):JS(j.stateNode,!1)}catch(Ee){Et(j,j.return,Ee)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;c===i&&(c=null),i=i.return}c===i&&(c=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=o.updateQueue,u!==null&&(c=u.retryQueue,c!==null&&(u.retryQueue=null,mf(o,c))));break;case 19:sr(i,o),cr(o),u&4&&(u=o.updateQueue,u!==null&&(o.updateQueue=null,mf(o,u)));break;case 30:break;case 21:break;default:sr(i,o),cr(o)}}function cr(o){var i=o.flags;if(i&2){try{for(var c,u=o.return;u!==null;){if(W2(u)){c=u;break}u=u.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var m=c.stateNode,g=Am(o);hf(o,g,m);break;case 5:var x=c.stateNode;c.flags&32&&(ys(x,""),c.flags&=-33);var T=Am(o);hf(o,T,x);break;case 3:case 4:var j=c.stateNode.containerInfo,X=Am(o);Rm(o,X,j);break;default:throw Error(r(161))}}catch(te){Et(o,o.return,te)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function cS(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;cS(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function Lo(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)nS(o,i.alternate,i),i=i.sibling}function Di(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:Ma(4,i,i.return),Di(i);break;case 1:io(i,i.return);var c=i.stateNode;typeof c.componentWillUnmount=="function"&&J2(i,i.return,c),Di(i);break;case 27:dl(i.stateNode);case 26:case 5:io(i,i.return),Di(i);break;case 22:i.memoizedState===null&&Di(i);break;case 30:Di(i);break;default:Di(i)}o=o.sibling}}function jo(o,i,c){for(c=c&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,m=o,g=i,x=g.flags;switch(g.tag){case 0:case 11:case 15:jo(m,g,c),nl(4,g);break;case 1:if(jo(m,g,c),u=g,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(X){Et(u,u.return,X)}if(u=g,m=u.updateQueue,m!==null){var T=u.stateNode;try{var j=m.shared.hiddenCallbacks;if(j!==null)for(m.shared.hiddenCallbacks=null,m=0;m<j.length;m++)Fv(j[m],T)}catch(X){Et(u,u.return,X)}}c&&x&64&&K2(g),rl(g,g.return);break;case 27:eS(g);case 26:case 5:jo(m,g,c),c&&u===null&&x&4&&Q2(g),rl(g,g.return);break;case 12:jo(m,g,c);break;case 31:jo(m,g,c),c&&x&4&&aS(m,g);break;case 13:jo(m,g,c),c&&x&4&&iS(m,g);break;case 22:g.memoizedState===null&&jo(m,g,c),rl(g,g.return);break;case 30:break;default:jo(m,g,c)}i=i.sibling}}function Om(o,i){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&Uc(c))}function Pm(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Uc(o))}function qr(o,i,c,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)lS(o,i,c,u),i=i.sibling}function lS(o,i,c,u){var m=i.flags;switch(i.tag){case 0:case 11:case 15:qr(o,i,c,u),m&2048&&nl(9,i);break;case 1:qr(o,i,c,u);break;case 3:qr(o,i,c,u),m&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Uc(o)));break;case 12:if(m&2048){qr(o,i,c,u),o=i.stateNode;try{var g=i.memoizedProps,x=g.id,T=g.onPostCommit;typeof T=="function"&&T(x,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(j){Et(i,i.return,j)}}else qr(o,i,c,u);break;case 31:qr(o,i,c,u);break;case 13:qr(o,i,c,u);break;case 23:break;case 22:g=i.stateNode,x=i.alternate,i.memoizedState!==null?g._visibility&2?qr(o,i,c,u):ol(o,i):g._visibility&2?qr(o,i,c,u):(g._visibility|=2,js(o,i,c,u,(i.subtreeFlags&10256)!==0||!1)),m&2048&&Om(x,i);break;case 24:qr(o,i,c,u),m&2048&&Pm(i.alternate,i);break;default:qr(o,i,c,u)}}function js(o,i,c,u,m){for(m=m&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=o,x=i,T=c,j=u,X=x.flags;switch(x.tag){case 0:case 11:case 15:js(g,x,T,j,m),nl(8,x);break;case 23:break;case 22:var te=x.stateNode;x.memoizedState!==null?te._visibility&2?js(g,x,T,j,m):ol(g,x):(te._visibility|=2,js(g,x,T,j,m)),m&&X&2048&&Om(x.alternate,x);break;case 24:js(g,x,T,j,m),m&&X&2048&&Pm(x.alternate,x);break;default:js(g,x,T,j,m)}i=i.sibling}}function ol(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var c=o,u=i,m=u.flags;switch(u.tag){case 22:ol(c,u),m&2048&&Om(u.alternate,u);break;case 24:ol(c,u),m&2048&&Pm(u.alternate,u);break;default:ol(c,u)}i=i.sibling}}var al=8192;function Bs(o,i,c){if(o.subtreeFlags&al)for(o=o.child;o!==null;)uS(o,i,c),o=o.sibling}function uS(o,i,c){switch(o.tag){case 26:Bs(o,i,c),o.flags&al&&o.memoizedState!==null&&bC(c,Gr,o.memoizedState,o.memoizedProps);break;case 5:Bs(o,i,c);break;case 3:case 4:var u=Gr;Gr=Af(o.stateNode.containerInfo),Bs(o,i,c),Gr=u;break;case 22:o.memoizedState===null&&(u=o.alternate,u!==null&&u.memoizedState!==null?(u=al,al=16777216,Bs(o,i,c),al=u):Bs(o,i,c));break;default:Bs(o,i,c)}}function fS(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function il(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var u=i[c];kn=u,hS(u,o)}fS(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)dS(o),o=o.sibling}function dS(o){switch(o.tag){case 0:case 11:case 15:il(o),o.flags&2048&&Ma(9,o,o.return);break;case 3:il(o);break;case 12:il(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,pf(o)):il(o);break;default:il(o)}}function pf(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var u=i[c];kn=u,hS(u,o)}fS(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:Ma(8,i,i.return),pf(i);break;case 22:c=i.stateNode,c._visibility&2&&(c._visibility&=-3,pf(i));break;default:pf(i)}o=o.sibling}}function hS(o,i){for(;kn!==null;){var c=kn;switch(c.tag){case 0:case 11:case 15:Ma(8,c,i);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var u=c.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Uc(c.memoizedState.cache)}if(u=c.child,u!==null)u.return=c,kn=u;else e:for(c=o;kn!==null;){u=kn;var m=u.sibling,g=u.return;if(rS(u),u===c){kn=null;break e}if(m!==null){m.return=g,kn=m;break e}kn=g}}}var z9={getCacheForType:function(o){var i=Ln(cn),c=i.data.get(o);return c===void 0&&(c=o(),i.data.set(o,c)),c},cacheSignal:function(){return Ln(cn).controller.signal}},D9=typeof WeakMap=="function"?WeakMap:Map,yt=0,Dt=null,et=null,ot=0,kt=0,Sr=null,Oa=!1,Fs=!1,zm=!1,Bo=0,qt=0,Pa=0,Ni=0,Dm=0,wr=0,Is=0,sl=null,lr=null,Nm=!1,gf=0,mS=0,yf=1/0,bf=null,za=null,yn=0,Da=null,Hs=null,Fo=0,Lm=0,jm=null,pS=null,cl=0,Bm=null;function xr(){return(yt&2)!==0&&ot!==0?ot&-ot:B.T!==null?$m():sn()}function gS(){if(wr===0)if((ot&536870912)===0||ct){var o=Ur;Ur<<=1,(Ur&3932160)===0&&(Ur=262144),wr=o}else wr=536870912;return o=br.current,o!==null&&(o.flags|=32),wr}function ur(o,i,c){(o===Dt&&(kt===2||kt===9)||o.cancelPendingCommit!==null)&&(Vs(o,0),Na(o,ot,wr,!1)),Ve(o,c),((yt&2)===0||o!==Dt)&&(o===Dt&&((yt&2)===0&&(Ni|=c),qt===4&&Na(o,ot,wr,!1)),so(o))}function yS(o,i,c){if((yt&6)!==0)throw Error(r(327));var u=!c&&(i&127)===0&&(i&o.expiredLanes)===0||he(o,i),m=u?j9(o,i):Im(o,i,!0),g=u;do{if(m===0){Fs&&!u&&Na(o,i,0,!1);break}else{if(c=o.current.alternate,g&&!N9(c)){m=Im(o,i,!1),g=!1;continue}if(m===2){if(g=i,o.errorRecoveryDisabledLanes&g)var x=0;else x=o.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){i=x;e:{var T=o;m=sl;var j=T.current.memoizedState.isDehydrated;if(j&&(Vs(T,x).flags|=256),x=Im(T,x,!1),x!==2){if(zm&&!j){T.errorRecoveryDisabledLanes|=g,Ni|=g,m=4;break e}g=lr,lr=m,g!==null&&(lr===null?lr=g:lr.push.apply(lr,g))}m=x}if(g=!1,m!==2)continue}}if(m===1){Vs(o,0),Na(o,i,0,!0);break}e:{switch(u=o,g=m,g){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Na(u,i,wr,!Oa);break e;case 2:lr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(m=gf+300-Ne(),10<m)){if(Na(u,i,wr,!Oa),ne(u,0,!0)!==0)break e;Fo=i,u.timeoutHandle=qS(bS.bind(null,u,c,lr,bf,Nm,i,wr,Ni,Is,Oa,g,"Throttled",-0,0),m);break e}bS(u,c,lr,bf,Nm,i,wr,Ni,Is,Oa,g,null,-0,0)}}break}while(!0);so(o)}function bS(o,i,c,u,m,g,x,T,j,X,te,ie,K,W){if(o.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:To},uS(i,g,ie);var Ee=(g&62914560)===g?gf-Ne():(g&4194048)===g?mS-Ne():0;if(Ee=vC(ie,Ee),Ee!==null){Fo=g,o.cancelPendingCommit=Ee(ES.bind(null,o,i,g,c,u,m,x,T,j,te,ie,null,K,W)),Na(o,g,x,!X);return}}ES(o,i,g,c,u,m,x,T,j)}function N9(o){for(var i=o;;){var c=i.tag;if((c===0||c===11||c===15)&&i.flags&16384&&(c=i.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var u=0;u<c.length;u++){var m=c[u],g=m.getSnapshot;m=m.value;try{if(!gr(g(),m))return!1}catch{return!1}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Na(o,i,c,u){i&=~Dm,i&=~Ni,o.suspendedLanes|=i,o.pingedLanes&=~i,u&&(o.warmLanes|=i),u=o.expirationTimes;for(var m=i;0<m;){var g=31-At(m),x=1<<g;u[g]=-1,m&=~x}c!==0&&ft(o,c,i)}function vf(){return(yt&6)===0?(ll(0),!1):!0}function Fm(){if(et!==null){if(kt===0)var o=et.return;else o=et,Ao=Ei=null,tm(o),Ps=null,Zc=0,o=et;for(;o!==null;)X2(o.alternate,o),o=o.return;et=null}}function Vs(o,i){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,tC(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),Fo=0,Fm(),Dt=o,et=c=Eo(o.current,null),ot=i,kt=0,Sr=null,Oa=!1,Fs=he(o,i),zm=!1,Is=wr=Dm=Ni=Pa=qt=0,lr=sl=null,Nm=!1,(i&8)!==0&&(i|=i&32);var u=o.entangledLanes;if(u!==0)for(o=o.entanglements,u&=i;0<u;){var m=31-At(u),g=1<<m;i|=o[m],u&=~g}return Bo=i,Fu(),c}function vS(o,i){$e=null,B.H=Wc,i===Os||i===Gu?(i=Nv(),kt=3):i===U0?(i=Nv(),kt=4):kt=i===ym?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Sr=i,et===null&&(qt=1,cf(o,Cr(i,o.current)))}function SS(){var o=br.current;return o===null?!0:(ot&4194048)===ot?Or===null:(ot&62914560)===ot||(ot&536870912)!==0?o===Or:!1}function wS(){var o=B.H;return B.H=Wc,o===null?Wc:o}function xS(){var o=B.A;return B.A=z9,o}function Sf(){qt=4,Oa||(ot&4194048)!==ot&&br.current!==null||(Fs=!0),(Pa&134217727)===0&&(Ni&134217727)===0||Dt===null||Na(Dt,ot,wr,!1)}function Im(o,i,c){var u=yt;yt|=2;var m=wS(),g=xS();(Dt!==o||ot!==i)&&(bf=null,Vs(o,i)),i=!1;var x=qt;e:do try{if(kt!==0&&et!==null){var T=et,j=Sr;switch(kt){case 8:Fm(),x=6;break e;case 3:case 2:case 9:case 6:br.current===null&&(i=!0);var X=kt;if(kt=0,Sr=null,Us(o,T,j,X),c&&Fs){x=0;break e}break;default:X=kt,kt=0,Sr=null,Us(o,T,j,X)}}L9(),x=qt;break}catch(te){vS(o,te)}while(!0);return i&&o.shellSuspendCounter++,Ao=Ei=null,yt=u,B.H=m,B.A=g,et===null&&(Dt=null,ot=0,Fu()),x}function L9(){for(;et!==null;)_S(et)}function j9(o,i){var c=yt;yt|=2;var u=wS(),m=xS();Dt!==o||ot!==i?(bf=null,yf=Ne()+500,Vs(o,i)):Fs=he(o,i);e:do try{if(kt!==0&&et!==null){i=et;var g=Sr;t:switch(kt){case 1:kt=0,Sr=null,Us(o,i,g,1);break;case 2:case 9:if(zv(g)){kt=0,Sr=null,TS(i);break}i=function(){kt!==2&&kt!==9||Dt!==o||(kt=7),so(o)},g.then(i,i);break e;case 3:kt=7;break e;case 4:kt=5;break e;case 7:zv(g)?(kt=0,Sr=null,TS(i)):(kt=0,Sr=null,Us(o,i,g,7));break;case 5:var x=null;switch(et.tag){case 26:x=et.memoizedState;case 5:case 27:var T=et;if(x?lw(x):T.stateNode.complete){kt=0,Sr=null;var j=T.sibling;if(j!==null)et=j;else{var X=T.return;X!==null?(et=X,wf(X)):et=null}break t}}kt=0,Sr=null,Us(o,i,g,5);break;case 6:kt=0,Sr=null,Us(o,i,g,6);break;case 8:Fm(),qt=6;break e;default:throw Error(r(462))}}B9();break}catch(te){vS(o,te)}while(!0);return Ao=Ei=null,B.H=u,B.A=m,yt=c,et!==null?0:(Dt=null,ot=0,Fu(),qt)}function B9(){for(;et!==null&&!Kt();)_S(et)}function _S(o){var i=G2(o.alternate,o,Bo);o.memoizedProps=o.pendingProps,i===null?wf(o):et=i}function TS(o){var i=o,c=i.alternate;switch(i.tag){case 15:case 0:i=H2(c,i,i.pendingProps,i.type,void 0,ot);break;case 11:i=H2(c,i,i.pendingProps,i.type.render,i.ref,ot);break;case 5:tm(i);default:X2(c,i),i=et=xv(i,Bo),i=G2(c,i,Bo)}o.memoizedProps=o.pendingProps,i===null?wf(o):et=i}function Us(o,i,c,u){Ao=Ei=null,tm(i),Ps=null,Zc=0;var m=i.return;try{if(E9(o,m,i,c,ot)){qt=1,cf(o,Cr(c,o.current)),et=null;return}}catch(g){if(m!==null)throw et=m,g;qt=1,cf(o,Cr(c,o.current)),et=null;return}i.flags&32768?(ct||u===1?o=!0:Fs||(ot&536870912)!==0?o=!1:(Oa=o=!0,(u===2||u===9||u===3||u===6)&&(u=br.current,u!==null&&u.tag===13&&(u.flags|=16384))),kS(i,o)):wf(i)}function wf(o){var i=o;do{if((i.flags&32768)!==0){kS(i,Oa);return}o=i.return;var c=R9(i.alternate,i,Bo);if(c!==null){et=c;return}if(i=i.sibling,i!==null){et=i;return}et=i=o}while(i!==null);qt===0&&(qt=5)}function kS(o,i){do{var c=M9(o.alternate,o);if(c!==null){c.flags&=32767,et=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!i&&(o=o.sibling,o!==null)){et=o;return}et=o=c}while(o!==null);qt=6,et=null}function ES(o,i,c,u,m,g,x,T,j){o.cancelPendingCommit=null;do xf();while(yn!==0);if((yt&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(g=i.lanes|i.childLanes,g|=A0,rt(o,c,g,x,T,j),o===Dt&&(et=Dt=null,ot=0),Hs=i,Da=o,Fo=c,Lm=g,jm=m,pS=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,V9(Qe,function(){return OS(),null})):(o.callbackNode=null,o.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,m=G.p,G.p=2,x=yt,yt|=4;try{O9(o,i,c)}finally{yt=x,G.p=m,B.T=u}}yn=1,CS(),AS(),RS()}}function CS(){if(yn===1){yn=0;var o=Da,i=Hs,c=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||c){c=B.T,B.T=null;var u=G.p;G.p=2;var m=yt;yt|=4;try{sS(i,o);var g=Qm,x=hv(o.containerInfo),T=g.focusedElem,j=g.selectionRange;if(x!==T&&T&&T.ownerDocument&&dv(T.ownerDocument.documentElement,T)){if(j!==null&&_0(T)){var X=j.start,te=j.end;if(te===void 0&&(te=X),"selectionStart"in T)T.selectionStart=X,T.selectionEnd=Math.min(te,T.value.length);else{var ie=T.ownerDocument||document,K=ie&&ie.defaultView||window;if(K.getSelection){var W=K.getSelection(),Ee=T.textContent.length,De=Math.min(j.start,Ee),Pt=j.end===void 0?De:Math.min(j.end,Ee);!W.extend&&De>Pt&&(x=Pt,Pt=De,De=x);var $=fv(T,De),H=fv(T,Pt);if($&&H&&(W.rangeCount!==1||W.anchorNode!==$.node||W.anchorOffset!==$.offset||W.focusNode!==H.node||W.focusOffset!==H.offset)){var q=ie.createRange();q.setStart($.node,$.offset),W.removeAllRanges(),De>Pt?(W.addRange(q),W.extend(H.node,H.offset)):(q.setEnd(H.node,H.offset),W.addRange(q))}}}}for(ie=[],W=T;W=W.parentNode;)W.nodeType===1&&ie.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ie.length;T++){var re=ie[T];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Df=!!Jm,Qm=Jm=null}finally{yt=m,G.p=u,B.T=c}}o.current=i,yn=2}}function AS(){if(yn===2){yn=0;var o=Da,i=Hs,c=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||c){c=B.T,B.T=null;var u=G.p;G.p=2;var m=yt;yt|=4;try{nS(o,i.alternate,i)}finally{yt=m,G.p=u,B.T=c}}yn=3}}function RS(){if(yn===4||yn===3){yn=0,Pe();var o=Da,i=Hs,c=Fo,u=pS;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?yn=5:(yn=0,Hs=Da=null,MS(o,o.pendingLanes));var m=o.pendingLanes;if(m===0&&(za=null),an(c),i=i.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(It,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=B.T,m=G.p,G.p=2,B.T=null;try{for(var g=o.onRecoverableError,x=0;x<u.length;x++){var T=u[x];g(T.value,{componentStack:T.stack})}}finally{B.T=i,G.p=m}}(Fo&3)!==0&&xf(),so(o),m=o.pendingLanes,(c&261930)!==0&&(m&42)!==0?o===Bm?cl++:(cl=0,Bm=o):cl=0,ll(0)}}function MS(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,Uc(i)))}function xf(){return CS(),AS(),RS(),OS()}function OS(){if(yn!==5)return!1;var o=Da,i=Lm;Lm=0;var c=an(Fo),u=B.T,m=G.p;try{G.p=32>c?32:c,B.T=null,c=jm,jm=null;var g=Da,x=Fo;if(yn=0,Hs=Da=null,Fo=0,(yt&6)!==0)throw Error(r(331));var T=yt;if(yt|=4,dS(g.current),lS(g,g.current,x,c),yt=T,ll(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(It,g)}catch{}return!0}finally{G.p=m,B.T=u,MS(o,i)}}function PS(o,i,c){i=Cr(c,i),i=gm(o.stateNode,i,2),o=Ca(o,i,2),o!==null&&(Ve(o,2),so(o))}function Et(o,i,c){if(o.tag===3)PS(o,o,c);else for(;i!==null;){if(i.tag===3){PS(i,o,c);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(za===null||!za.has(u))){o=Cr(c,o),c=z2(2),u=Ca(i,c,2),u!==null&&(D2(c,u,i,o),Ve(u,2),so(u));break}}i=i.return}}function Hm(o,i,c){var u=o.pingCache;if(u===null){u=o.pingCache=new D9;var m=new Set;u.set(i,m)}else m=u.get(i),m===void 0&&(m=new Set,u.set(i,m));m.has(c)||(zm=!0,m.add(c),o=F9.bind(null,o,i,c),i.then(o,o))}function F9(o,i,c){var u=o.pingCache;u!==null&&u.delete(i),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,Dt===o&&(ot&c)===c&&(qt===4||qt===3&&(ot&62914560)===ot&&300>Ne()-gf?(yt&2)===0&&Vs(o,0):Dm|=c,Is===ot&&(Is=0)),so(o)}function zS(o,i){i===0&&(i=Le()),o=_i(o,i),o!==null&&(Ve(o,i),so(o))}function I9(o){var i=o.memoizedState,c=0;i!==null&&(c=i.retryLane),zS(o,c)}function H9(o,i){var c=0;switch(o.tag){case 31:case 13:var u=o.stateNode,m=o.memoizedState;m!==null&&(c=m.retryLane);break;case 19:u=o.stateNode;break;case 22:u=o.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(i),zS(o,c)}function V9(o,i){return xn(o,i)}var _f=null,$s=null,Vm=!1,Tf=!1,Um=!1,La=0;function so(o){o!==$s&&o.next===null&&($s===null?_f=$s=o:$s=$s.next=o),Tf=!0,Vm||(Vm=!0,$9())}function ll(o,i){if(!Um&&Tf){Um=!0;do for(var c=!1,u=_f;u!==null;){if(o!==0){var m=u.pendingLanes;if(m===0)var g=0;else{var x=u.suspendedLanes,T=u.pingedLanes;g=(1<<31-At(42|o)+1)-1,g&=m&~(x&~T),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(c=!0,jS(u,g))}else g=ot,g=ne(u,u===Dt?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||he(u,g)||(c=!0,jS(u,g));u=u.next}while(c);Um=!1}}function U9(){DS()}function DS(){Tf=Vm=!1;var o=0;La!==0&&eC()&&(o=La);for(var i=Ne(),c=null,u=_f;u!==null;){var m=u.next,g=NS(u,i);g===0?(u.next=null,c===null?_f=m:c.next=m,m===null&&($s=c)):(c=u,(o!==0||(g&3)!==0)&&(Tf=!0)),u=m}yn!==0&&yn!==5||ll(o),La!==0&&(La=0)}function NS(o,i){for(var c=o.suspendedLanes,u=o.pingedLanes,m=o.expirationTimes,g=o.pendingLanes&-62914561;0<g;){var x=31-At(g),T=1<<x,j=m[x];j===-1?((T&c)===0||(T&u)!==0)&&(m[x]=we(T,i)):j<=i&&(o.expiredLanes|=T),g&=~T}if(i=Dt,c=ot,c=ne(o,o===i?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u=o.callbackNode,c===0||o===i&&(kt===2||kt===9)||o.cancelPendingCommit!==null)return u!==null&&u!==null&&gn(u),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||he(o,c)){if(i=c&-c,i===o.callbackPriority)return i;switch(u!==null&&gn(u),an(c)){case 2:case 8:c=vt;break;case 32:c=Qe;break;case 268435456:c=no;break;default:c=Qe}return u=LS.bind(null,o),c=xn(c,u),o.callbackPriority=i,o.callbackNode=c,i}return u!==null&&u!==null&&gn(u),o.callbackPriority=2,o.callbackNode=null,2}function LS(o,i){if(yn!==0&&yn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(xf()&&o.callbackNode!==c)return null;var u=ot;return u=ne(o,o===Dt?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),u===0?null:(yS(o,u,i),NS(o,Ne()),o.callbackNode!=null&&o.callbackNode===c?LS.bind(null,o):null)}function jS(o,i){if(xf())return null;yS(o,i,!0)}function $9(){nC(function(){(yt&6)!==0?xn(Ye,U9):DS()})}function $m(){if(La===0){var o=Rs;o===0&&(o=nr,nr<<=1,(nr&261888)===0&&(nr=256)),La=o}return La}function BS(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ou(""+o)}function FS(o,i){var c=i.ownerDocument.createElement("input");return c.name=i.name,c.value=i.value,o.id&&c.setAttribute("form",o.id),i.parentNode.insertBefore(c,i),o=new FormData(o),c.parentNode.removeChild(c),o}function Z9(o,i,c,u,m){if(i==="submit"&&c&&c.stateNode===m){var g=BS((m[Rt]||null).action),x=u.submitter;x&&(i=(i=x[Rt]||null)?BS(i.formAction):x.getAttribute("formAction"),i!==null&&(g=i,x=null));var T=new Nu("action","action",null,u,m);o.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(La!==0){var j=x?FS(m,x):new FormData(m);um(c,{pending:!0,data:j,method:m.method,action:g},null,j)}}else typeof g=="function"&&(T.preventDefault(),j=x?FS(m,x):new FormData(m),um(c,{pending:!0,data:j,method:m.method,action:g},g,j))},currentTarget:m}]})}}for(var Zm=0;Zm<C0.length;Zm++){var Ym=C0[Zm],Y9=Ym.toLowerCase(),G9=Ym[0].toUpperCase()+Ym.slice(1);Yr(Y9,"on"+G9)}Yr(gv,"onAnimationEnd"),Yr(yv,"onAnimationIteration"),Yr(bv,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(l9,"onTransitionRun"),Yr(u9,"onTransitionStart"),Yr(f9,"onTransitionCancel"),Yr(vv,"onTransitionEnd"),ps("onMouseEnter",["mouseout","mouseover"]),ps("onMouseLeave",["mouseout","mouseover"]),ps("onPointerEnter",["pointerout","pointerover"]),ps("onPointerLeave",["pointerout","pointerover"]),vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ul="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(" "),q9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ul));function IS(o,i){i=(i&4)!==0;for(var c=0;c<o.length;c++){var u=o[c],m=u.event;u=u.listeners;e:{var g=void 0;if(i)for(var x=u.length-1;0<=x;x--){var T=u[x],j=T.instance,X=T.currentTarget;if(T=T.listener,j!==g&&m.isPropagationStopped())break e;g=T,m.currentTarget=X;try{g(m)}catch(te){Bu(te)}m.currentTarget=null,g=j}else for(x=0;x<u.length;x++){if(T=u[x],j=T.instance,X=T.currentTarget,T=T.listener,j!==g&&m.isPropagationStopped())break e;g=T,m.currentTarget=X;try{g(m)}catch(te){Bu(te)}m.currentTarget=null,g=j}}}}function tt(o,i){var c=i[ba];c===void 0&&(c=i[ba]=new Set);var u=o+"__bubble";c.has(u)||(HS(i,o,2,!1),c.add(u))}function Gm(o,i,c){var u=0;i&&(u|=4),HS(c,o,u,i)}var kf="_reactListening"+Math.random().toString(36).slice(2);function qm(o){if(!o[kf]){o[kf]=!0,Db.forEach(function(c){c!=="selectionchange"&&(q9.has(c)||Gm(c,!1,o),Gm(c,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[kf]||(i[kf]=!0,Gm("selectionchange",!1,i))}}function HS(o,i,c,u){switch(gw(i)){case 2:var m=xC;break;case 8:m=_C;break;default:m=lp}c=m.bind(null,i,c,o),m=void 0,!m0||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),u?m!==void 0?o.addEventListener(i,c,{capture:!0,passive:m}):o.addEventListener(i,c,!0):m!==void 0?o.addEventListener(i,c,{passive:m}):o.addEventListener(i,c,!1)}function Xm(o,i,c,u,m){var g=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var T=u.stateNode.containerInfo;if(T===m)break;if(x===4)for(x=u.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===m)return;x=x.return}for(;T!==null;){if(x=Qt(T),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){u=g=x;continue e}T=T.parentNode}}u=u.return}Yb(function(){var X=g,te=d0(c),ie=[];e:{var K=Sv.get(o);if(K!==void 0){var W=Nu,Ee=o;switch(o){case"keypress":if(zu(c)===0)break e;case"keydown":case"keyup":W=HE;break;case"focusin":Ee="focus",W=b0;break;case"focusout":Ee="blur",W=b0;break;case"beforeblur":case"afterblur":W=b0;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Xb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=RE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=$E;break;case gv:case yv:case bv:W=PE;break;case vv:W=YE;break;case"scroll":case"scrollend":W=CE;break;case"wheel":W=qE;break;case"copy":case"cut":case"paste":W=DE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Jb;break;case"toggle":case"beforetoggle":W=KE}var De=(i&4)!==0,Pt=!De&&(o==="scroll"||o==="scrollend"),$=De?K!==null?K+"Capture":null:K;De=[];for(var H=X,q;H!==null;){var re=H;if(q=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||q===null||$===null||(re=Pc(H,$),re!=null&&De.push(fl(H,re,q))),Pt)break;H=H.return}0<De.length&&(K=new W(K,Ee,null,c,te),ie.push({event:K,listeners:De}))}}if((i&7)===0){e:{if(K=o==="mouseover"||o==="pointerover",W=o==="mouseout"||o==="pointerout",K&&c!==f0&&(Ee=c.relatedTarget||c.fromElement)&&(Qt(Ee)||Ee[Gn]))break e;if((W||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,W?(Ee=c.relatedTarget||c.toElement,W=X,Ee=Ee?Qt(Ee):null,Ee!==null&&(Pt=s(Ee),De=Ee.tag,Ee!==Pt||De!==5&&De!==27&&De!==6)&&(Ee=null)):(W=null,Ee=X),W!==Ee)){if(De=Xb,re="onMouseLeave",$="onMouseEnter",H="mouse",(o==="pointerout"||o==="pointerover")&&(De=Jb,re="onPointerLeave",$="onPointerEnter",H="pointer"),Pt=W==null?K:Zr(W),q=Ee==null?K:Zr(Ee),K=new De(re,H+"leave",W,c,te),K.target=Pt,K.relatedTarget=q,re=null,Qt(te)===X&&(De=new De($,H+"enter",Ee,c,te),De.target=q,De.relatedTarget=Pt,re=De),Pt=re,W&&Ee)t:{for(De=X9,$=W,H=Ee,q=0,re=$;re;re=De(re))q++;re=0;for(var Oe=H;Oe;Oe=De(Oe))re++;for(;0<q-re;)$=De($),q--;for(;0<re-q;)H=De(H),re--;for(;q--;){if($===H||H!==null&&$===H.alternate){De=$;break t}$=De($),H=De(H)}De=null}else De=null;W!==null&&VS(ie,K,W,De,!1),Ee!==null&&Pt!==null&&VS(ie,Pt,Ee,De,!0)}}e:{if(K=X?Zr(X):window,W=K.nodeName&&K.nodeName.toLowerCase(),W==="select"||W==="input"&&K.type==="file")var ht=av;else if(rv(K))if(iv)ht=i9;else{ht=o9;var Me=r9}else W=K.nodeName,!W||W.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?X&&u0(X.elementType)&&(ht=av):ht=a9;if(ht&&(ht=ht(o,X))){ov(ie,ht,c,te);break e}Me&&Me(o,K,X),o==="focusout"&&X&&K.type==="number"&&X.memoizedProps.value!=null&&l0(K,"number",K.value)}switch(Me=X?Zr(X):window,o){case"focusin":(rv(Me)||Me.contentEditable==="true")&&(ws=Me,T0=X,Ic=null);break;case"focusout":Ic=T0=ws=null;break;case"mousedown":k0=!0;break;case"contextmenu":case"mouseup":case"dragend":k0=!1,mv(ie,c,te);break;case"selectionchange":if(c9)break;case"keydown":case"keyup":mv(ie,c,te)}var Ge;if(S0)e:{switch(o){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Ss?tv(o,c)&&(at="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(at="onCompositionStart");at&&(Qb&&c.locale!=="ko"&&(Ss||at!=="onCompositionStart"?at==="onCompositionEnd"&&Ss&&(Ge=Gb()):(Sa=te,p0="value"in Sa?Sa.value:Sa.textContent,Ss=!0)),Me=Ef(X,at),0<Me.length&&(at=new Kb(at,o,null,c,te),ie.push({event:at,listeners:Me}),Ge?at.data=Ge:(Ge=nv(c),Ge!==null&&(at.data=Ge)))),(Ge=QE?WE(o,c):e9(o,c))&&(at=Ef(X,"onBeforeInput"),0<at.length&&(Me=new Kb("onBeforeInput","beforeinput",null,c,te),ie.push({event:Me,listeners:at}),Me.data=Ge)),Z9(ie,o,X,c,te)}IS(ie,i)})}function fl(o,i,c){return{instance:o,listener:i,currentTarget:c}}function Ef(o,i){for(var c=i+"Capture",u=[];o!==null;){var m=o,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=Pc(o,c),m!=null&&u.unshift(fl(o,m,g)),m=Pc(o,i),m!=null&&u.push(fl(o,m,g))),o.tag===3)return u;o=o.return}return[]}function X9(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function VS(o,i,c,u,m){for(var g=i._reactName,x=[];c!==null&&c!==u;){var T=c,j=T.alternate,X=T.stateNode;if(T=T.tag,j!==null&&j===u)break;T!==5&&T!==26&&T!==27||X===null||(j=X,m?(X=Pc(c,g),X!=null&&x.unshift(fl(c,X,j))):m||(X=Pc(c,g),X!=null&&x.push(fl(c,X,j)))),c=c.return}x.length!==0&&o.push({event:i,listeners:x})}var K9=/\r\n?/g,J9=/\u0000|\uFFFD/g;function US(o){return(typeof o=="string"?o:""+o).replace(K9,` 10`).replace(J9,"")}function $S(o,i){return i=US(i),US(o)===i}function Ot(o,i,c,u,m,g){switch(c){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||ys(o,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&ys(o,""+u);break;case"className":Ru(o,"class",u);break;case"tabIndex":Ru(o,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ru(o,c,u);break;case"style":$b(o,u,g);break;case"data":if(i!=="object"){Ru(o,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||c!=="href")){o.removeAttribute(c);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(c);break}u=Ou(""+u),o.setAttribute(c,u);break;case"action":case"formAction":if(typeof u=="function"){o.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(c==="formAction"?(i!=="input"&&Ot(o,i,"name",m.name,m,null),Ot(o,i,"formEncType",m.formEncType,m,null),Ot(o,i,"formMethod",m.formMethod,m,null),Ot(o,i,"formTarget",m.formTarget,m,null)):(Ot(o,i,"encType",m.encType,m,null),Ot(o,i,"method",m.method,m,null),Ot(o,i,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){o.removeAttribute(c);break}u=Ou(""+u),o.setAttribute(c,u);break;case"onClick":u!=null&&(o.onclick=To);break;case"onScroll":u!=null&&tt("scroll",o);break;case"onScrollEnd":u!=null&&tt("scrollend",o);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"multiple":o.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":o.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){o.removeAttribute("xlink:href");break}c=Ou(""+u),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,""+u):o.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":u===!0?o.setAttribute(c,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?o.setAttribute(c,u):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?o.setAttribute(c,u):o.removeAttribute(c);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?o.removeAttribute(c):o.setAttribute(c,u);break;case"popover":tt("beforetoggle",o),tt("toggle",o),Au(o,"popover",u);break;case"xlinkActuate":_o(o,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":_o(o,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":_o(o,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":_o(o,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":_o(o,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":_o(o,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":_o(o,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":_o(o,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":_o(o,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Au(o,"is",u);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=kE.get(c)||c,Au(o,c,u))}}function Km(o,i,c,u,m,g){switch(c){case"style":$b(o,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"children":typeof u=="string"?ys(o,u):(typeof u=="number"||typeof u=="bigint")&&ys(o,""+u);break;case"onScroll":u!=null&&tt("scroll",o);break;case"onScrollEnd":u!=null&&tt("scrollend",o);break;case"onClick":u!=null&&(o.onclick=To);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nb.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(m=c.endsWith("Capture"),i=c.slice(2,m?c.length-7:void 0),g=o[Rt]||null,g=g!=null?g[c]:null,typeof g=="function"&&o.removeEventListener(i,g,m),typeof u=="function")){typeof g!="function"&&g!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(i,u,m);break e}c in o?o[c]=u:u===!0?o.setAttribute(c,""):Au(o,c,u)}}}function Bn(o,i,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",o),tt("load",o);var u=!1,m=!1,g;for(g in c)if(c.hasOwnProperty(g)){var x=c[g];if(x!=null)switch(g){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ot(o,i,g,x,c,null)}}m&&Ot(o,i,"srcSet",c.srcSet,c,null),u&&Ot(o,i,"src",c.src,c,null);return;case"input":tt("invalid",o);var T=g=x=m=null,j=null,X=null;for(u in c)if(c.hasOwnProperty(u)){var te=c[u];if(te!=null)switch(u){case"name":m=te;break;case"type":x=te;break;case"checked":j=te;break;case"defaultChecked":X=te;break;case"value":g=te;break;case"defaultValue":T=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,i));break;default:Ot(o,i,u,te,c,null)}}Ib(o,g,T,j,X,x,m,!1);return;case"select":tt("invalid",o),u=x=g=null;for(m in c)if(c.hasOwnProperty(m)&&(T=c[m],T!=null))switch(m){case"value":g=T;break;case"defaultValue":x=T;break;case"multiple":u=T;default:Ot(o,i,m,T,c,null)}i=g,c=x,o.multiple=!!u,i!=null?gs(o,!!u,i,!1):c!=null&&gs(o,!!u,c,!0);return;case"textarea":tt("invalid",o),g=m=u=null;for(x in c)if(c.hasOwnProperty(x)&&(T=c[x],T!=null))switch(x){case"value":u=T;break;case"defaultValue":m=T;break;case"children":g=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:Ot(o,i,x,T,c,null)}Vb(o,u,m,g);return;case"option":for(j in c)c.hasOwnProperty(j)&&(u=c[j],u!=null)&&(j==="selected"?o.selected=u&&typeof u!="function"&&typeof u!="symbol":Ot(o,i,j,u,c,null));return;case"dialog":tt("beforetoggle",o),tt("toggle",o),tt("cancel",o),tt("close",o);break;case"iframe":case"object":tt("load",o);break;case"video":case"audio":for(u=0;
vendor: 17,310 bytes, line 10
10u<ul.length;u++)tt(ul[u],o);break;case"image":tt("error",o),tt("load",o);break;case"details":tt("toggle",o);break;case"embed":case"source":case"link":tt("error",o),tt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in c)if(c.hasOwnProperty(X)&&(u=c[X],u!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ot(o,i,X,u,c,null)}return;default:if(u0(i)){for(te in c)c.hasOwnProperty(te)&&(u=c[te],u!==void 0&&Km(o,i,te,u,c,void 0));return}}for(T in c)c.hasOwnProperty(T)&&(u=c[T],u!=null&&Ot(o,i,T,u,c,null))}function Q9(o,i,c,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,x=null,T=null,j=null,X=null,te=null;for(W in c){var ie=c[W];if(c.hasOwnProperty(W)&&ie!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":j=ie;default:u.hasOwnProperty(W)||Ot(o,i,W,null,u,ie)}}for(var K in u){var W=u[K];if(ie=c[K],u.hasOwnProperty(K)&&(W!=null||ie!=null))switch(K){case"type":g=W;break;case"name":m=W;break;case"checked":X=W;break;case"defaultChecked":te=W;break;case"value":x=W;break;case"defaultValue":T=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,i));break;default:W!==ie&&Ot(o,i,K,W,u,ie)}}c0(o,x,T,j,X,te,g,m);return;case"select":W=x=T=K=null;for(g in c)if(j=c[g],c.hasOwnProperty(g)&&j!=null)switch(g){case"value":break;case"multiple":W=j;default:u.hasOwnProperty(g)||Ot(o,i,g,null,u,j)}for(m in u)if(g=u[m],j=c[m],u.hasOwnProperty(m)&&(g!=null||j!=null))switch(m){case"value":K=g;break;case"defaultValue":T=g;break;case"multiple":x=g;default:g!==j&&Ot(o,i,m,g,u,j)}i=T,c=x,u=W,K!=null?gs(o,!!c,K,!1):!!u!=!!c&&(i!=null?gs(o,!!c,i,!0):gs(o,!!c,c?[]:"",!1));return;case"textarea":W=K=null;for(T in c)if(m=c[T],c.hasOwnProperty(T)&&m!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ot(o,i,T,null,u,m)}for(x in u)if(m=u[x],g=c[x],u.hasOwnProperty(x)&&(m!=null||g!=null))switch(x){case"value":K=m;break;case"defaultValue":W=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==g&&Ot(o,i,x,m,u,g)}Hb(o,K,W);return;case"option":for(var Ee in c)K=c[Ee],c.hasOwnProperty(Ee)&&K!=null&&!u.hasOwnProperty(Ee)&&(Ee==="selected"?o.selected=!1:Ot(o,i,Ee,null,u,K));for(j in u)K=u[j],W=c[j],u.hasOwnProperty(j)&&K!==W&&(K!=null||W!=null)&&(j==="selected"?o.selected=K&&typeof K!="function"&&typeof K!="symbol":Ot(o,i,j,K,u,W));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in c)K=c[De],c.hasOwnProperty(De)&&K!=null&&!u.hasOwnProperty(De)&&Ot(o,i,De,null,u,K);for(X in u)if(K=u[X],W=c[X],u.hasOwnProperty(X)&&K!==W&&(K!=null||W!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,i));break;default:Ot(o,i,X,K,u,W)}return;default:if(u0(i)){for(var Pt in c)K=c[Pt],c.hasOwnProperty(Pt)&&K!==void 0&&!u.hasOwnProperty(Pt)&&Km(o,i,Pt,void 0,u,K);for(te in u)K=u[te],W=c[te],!u.hasOwnProperty(te)||K===W||K===void 0&&W===void 0||Km(o,i,te,K,u,W);return}}for(var $ in c)K=c[$],c.hasOwnProperty($)&&K!=null&&!u.hasOwnProperty($)&&Ot(o,i,$,null,u,K);for(ie in u)K=u[ie],W=c[ie],!u.hasOwnProperty(ie)||K===W||K==null&&W==null||Ot(o,i,ie,K,u,W)}function ZS(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W9(){if(typeof performance.getEntriesByType=="function"){for(var o=0,i=0,c=performance.getEntriesByType("resource"),u=0;u<c.length;u++){var m=c[u],g=m.transferSize,x=m.initiatorType,T=m.duration;if(g&&T&&ZS(x)){for(x=0,T=m.responseEnd,u+=1;u<c.length;u++){var j=c[u],X=j.startTime;if(X>T)break;var te=j.transferSize,ie=j.initiatorType;te&&ZS(ie)&&(j=j.responseEnd,x+=te*(j<T?1:(T-X)/(j-X)))}if(--u,i+=8*(g+x)/(m.duration/1e3),o++,10<o)break}}if(0<o)return i/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Jm=null,Qm=null;function Cf(o){return o.nodeType===9?o:o.ownerDocument}function YS(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function GS(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function Wm(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ep=null;function eC(){var o=window.event;return o&&o.type==="popstate"?o===ep?!1:(ep=o,!0):(ep=null,!1)}var qS=typeof setTimeout=="function"?setTimeout:void 0,tC=typeof clearTimeout=="function"?clearTimeout:void 0,XS=typeof Promise=="function"?Promise:void 0,nC=typeof queueMicrotask=="function"?queueMicrotask:typeof XS<"u"?function(o){return XS.resolve(null).then(o).catch(rC)}:qS;function rC(o){setTimeout(function(){throw o})}function ja(o){return o==="head"}function KS(o,i){var c=i,u=0;do{var m=c.nextSibling;if(o.removeChild(c),m&&m.nodeType===8)if(c=m.data,c==="/$"||c==="/&"){if(u===0){o.removeChild(m),qs(i);return}u--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")u++;else if(c==="html")dl(o.ownerDocument.documentElement);else if(c==="head"){c=o.ownerDocument.head,dl(c);for(var g=c.firstChild;g;){var x=g.nextSibling,T=g.nodeName;g[rr]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||c.removeChild(g),g=x}}else c==="body"&&dl(o.ownerDocument.body);c=m}while(c);qs(i)}function JS(o,i){var c=o;o=0;do{var u=c.nextSibling;if(c.nodeType===1?i?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(i?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),u&&u.nodeType===8)if(c=u.data,c==="/$"){if(o===0)break;o--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||o++;c=u}while(c)}function tp(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var c=i;switch(i=i.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":tp(c),$r(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function oC(o,i,c,u){for(;o.nodeType===1;){var m=c;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(u){if(!o[rr])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(g=o.getAttribute("rel"),g==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(g!==m.rel||o.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||o.getAttribute("title")!==(m.title==null?null:m.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(g=o.getAttribute("src"),(g!==(m.src==null?null:m.src)||o.getAttribute("type")!==(m.type==null?null:m.type)||o.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&o.getAttribute("name")===g)return o}else return o;if(o=Pr(o.nextSibling),o===null)break}return null}function aC(o,i,c){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=Pr(o.nextSibling),o===null))return null;return o}function QS(o,i){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!i||(o=Pr(o.nextSibling),o===null))return null;return o}function np(o){return o.data==="$?"||o.data==="$~"}function rp(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function iC(o,i){var c=o.ownerDocument;if(o.data==="$~")o._reactRetry=i;else if(o.data!=="$?"||c.readyState!=="loading")i();else{var u=function(){i(),c.removeEventListener("DOMContentLoaded",u)};c.addEventListener("DOMContentLoaded",u),o._reactRetry=u}}function Pr(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return o}var op=null;function WS(o){o=o.nextSibling;for(var i=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"||c==="/&"){if(i===0)return Pr(o.nextSibling);i--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||i++}o=o.nextSibling}return null}function ew(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(i===0)return o;i--}else c!=="/$"&&c!=="/&"||i++}o=o.previousSibling}return null}function tw(o,i,c){switch(i=Cf(c),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function dl(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);$r(o)}var zr=new Map,nw=new Set;function Af(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Io=G.d;G.d={f:sC,r:cC,D:lC,C:uC,L:fC,m:dC,X:mC,S:hC,M:pC};function sC(){var o=Io.f(),i=vf();return o||i}function cC(o){var i=or(o);i!==null&&i.tag===5&&i.type==="form"?v2(i):Io.r(o)}var Zs=typeof document>"u"?null:document;function rw(o,i,c){var u=Zs;if(u&&typeof i=="string"&&i){var m=kr(i);m='link[rel="'+o+'"][href="'+m+'"]',typeof c=="string"&&(m+='[crossorigin="'+c+'"]'),nw.has(m)||(nw.add(m),o={rel:o,crossOrigin:c,href:i},u.querySelector(m)===null&&(i=u.createElement("link"),Bn(i,"link",o),Tn(i),u.head.appendChild(i)))}}function lC(o){Io.D(o),rw("dns-prefetch",o,null)}function uC(o,i){Io.C(o,i),rw("preconnect",o,i)}function fC(o,i,c){Io.L(o,i,c);var u=Zs;if(u&&o&&i){var m='link[rel="preload"][as="'+kr(i)+'"]';i==="image"&&c&&c.imageSrcSet?(m+='[imagesrcset="'+kr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(m+='[imagesizes="'+kr(c.imageSizes)+'"]')):m+='[href="'+kr(o)+'"]';var g=m;switch(i){case"style":g=Ys(o);break;case"script":g=Gs(o)}zr.has(g)||(o=y({rel:"preload",href:i==="image"&&c&&c.imageSrcSet?void 0:o,as:i},c),zr.set(g,o),u.querySelector(m)!==null||i==="style"&&u.querySelector(hl(g))||i==="script"&&u.querySelector(ml(g))||(i=u.createElement("link"),Bn(i,"link",o),Tn(i),u.head.appendChild(i)))}}function dC(o,i){Io.m(o,i);var c=Zs;if(c&&o){var u=i&&typeof i.as=="string"?i.as:"script",m='link[rel="modulepreload"][as="'+kr(u)+'"][href="'+kr(o)+'"]',g=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Gs(o)}if(!zr.has(g)&&(o=y({rel:"modulepreload",href:o},i),zr.set(g,o),c.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(ml(g)))return}u=c.createElement("link"),Bn(u,"link",o),Tn(u),c.head.appendChild(u)}}}function hC(o,i,c){Io.S(o,i,c);var u=Zs;if(u&&o){var m=xo(u).hoistableStyles,g=Ys(o);i=i||"default";var x=m.get(g);if(!x){var T={loading:0,preload:null};if(x=u.querySelector(hl(g)))T.loading=5;else{o=y({rel:"stylesheet",href:o,"data-precedence":i},c),(c=zr.get(g))&&ap(o,c);var j=x=u.createElement("link");Tn(j),Bn(j,"link",o),j._p=new Promise(function(X,te){j.onload=X,j.onerror=te}),j.addEventListener("load",function(){T.loading|=1}),j.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Rf(x,i,u)}x={type:"stylesheet",instance:x,count:1,state:T},m.set(g,x)}}}function mC(o,i){Io.X(o,i);var c=Zs;if(c&&o){var u=xo(c).hoistableScripts,m=Gs(o),g=u.get(m);g||(g=c.querySelector(ml(m)),g||(o=y({src:o,async:!0},i),(i=zr.get(m))&&ip(o,i),g=c.createElement("script"),Tn(g),Bn(g,"link",o),c.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(m,g))}}function pC(o,i){Io.M(o,i);var c=Zs;if(c&&o){var u=xo(c).hoistableScripts,m=Gs(o),g=u.get(m);g||(g=c.querySelector(ml(m)),g||(o=y({src:o,async:!0,type:"module"},i),(i=zr.get(m))&&ip(o,i),g=c.createElement("script"),Tn(g),Bn(g,"link",o),c.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(m,g))}}function ow(o,i,c,u){var m=(m=pe.current)?Af(m):null;if(!m)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(i=Ys(c.href),c=xo(m).hoistableStyles,u=c.get(i),u||(u={type:"style",instance:null,count:0,state:null},c.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=Ys(c.href);var g=xo(m).hoistableStyles,x=g.get(o);if(x||(m=m.ownerDocument||m,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(o,x),(g=m.querySelector(hl(o)))&&!g._p&&(x.instance=g,x.state.loading=5),zr.has(o)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},zr.set(o,c),g||gC(m,o,c,x.state))),i&&u===null)throw Error(r(528,""));return x}if(i&&u!==null)throw Error(r(529,""));return null;case"script":return i=c.async,c=c.src,typeof c=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Gs(c),c=xo(m).hoistableScripts,u=c.get(i),u||(u={type:"script",instance:null,count:0,state:null},c.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Ys(o){return'href="'+kr(o)+'"'}function hl(o){return'link[rel="stylesheet"]['+o+"]"}function aw(o){return y({},o,{"data-precedence":o.precedence,precedence:null})}function gC(o,i,c,u){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=o.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Bn(i,"link",c),Tn(i),o.head.appendChild(i))}function Gs(o){return'[src="'+kr(o)+'"]'}function ml(o){return"script[async]"+o}function iw(o,i,c){if(i.count++,i.instance===null)switch(i.type){case"style":var u=o.querySelector('style[data-href~="'+kr(c.href)+'"]');if(u)return i.instance=u,Tn(u),u;var m=y({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return u=(o.ownerDocument||o).createElement("style"),Tn(u),Bn(u,"style",m),Rf(u,c.precedence,o),i.instance=u;case"stylesheet":m=Ys(c.href);var g=o.querySelector(hl(m));if(g)return i.state.loading|=4,i.instance=g,Tn(g),g;u=aw(c),(m=zr.get(m))&&ap(u,m),g=(o.ownerDocument||o).createElement("link"),Tn(g);var x=g;return x._p=new Promise(function(T,j){x.onload=T,x.onerror=j}),Bn(g,"link",u),i.state.loading|=4,Rf(g,c.precedence,o),i.instance=g;case"script":return g=Gs(c.src),(m=o.querySelector(ml(g)))?(i.instance=m,Tn(m),m):(u=c,(m=zr.get(g))&&(u=y({},c),ip(u,m)),o=o.ownerDocument||o,m=o.createElement("script"),Tn(m),Bn(m,"link",u),o.head.appendChild(m),i.instance=m);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Rf(u,c.precedence,o));return i.instance}function Rf(o,i,c){for(var u=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,g=m,x=0;x<u.length;x++){var T=u[x];if(T.dataset.precedence===i)g=T;else if(g!==m)break}g?g.parentNode.insertBefore(o,g.nextSibling):(i=c.nodeType===9?c.head:c,i.insertBefore(o,i.firstChild))}function ap(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function ip(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Mf=null;function sw(o,i,c){if(Mf===null){var u=new Map,m=Mf=new Map;m.set(c,u)}else m=Mf,u=m.get(c),u||(u=new Map,m.set(c,u));if(u.has(o))return u;for(u.set(o,null),c=c.getElementsByTagName(o),m=0;m<c.length;m++){var g=c[m];if(!(g[rr]||g[xt]||o==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(i)||"";x=o+x;var T=u.get(x);T?T.push(g):u.set(x,[g])}}return u}function cw(o,i,c){o=o.ownerDocument||o,o.head.insertBefore(c,i==="title"?o.querySelector("head > title"):null)}function yC(o,i,c){if(c===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(o=i.disabled,typeof i.precedence=="string"&&o==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function lw(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function bC(o,i,c,u){if(c.type==="stylesheet"&&(typeof u.media!="str
10ing"||matchMedia(u.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var m=Ys(u.href),g=i.querySelector(hl(m));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(o.count++,o=Of.bind(o),i.then(o,o)),c.state.loading|=4,c.instance=g,Tn(g);return}g=i.ownerDocument||i,u=aw(u),(m=zr.get(m))&&ap(u,m),g=g.createElement("link"),Tn(g);var x=g;x._p=new Promise(function(T,j){x.onload=T,x.onerror=j}),Bn(g,"link",u),c.instance=g}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(c,i),(i=c.state.preload)&&(c.state.loading&3)===0&&(o.count++,c=Of.bind(o),i.addEventListener("load",c),i.addEventListener("error",c))}}var sp=0;function vC(o,i){return o.stylesheets&&o.count===0&&zf(o,o.stylesheets),0<o.count||0<o.imgCount?function(c){var u=setTimeout(function(){if(o.stylesheets&&zf(o,o.stylesheets),o.unsuspend){var g=o.unsuspend;o.unsuspend=null,g()}},6e4+i);0<o.imgBytes&&sp===0&&(sp=62500*W9());var m=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&zf(o,o.stylesheets),o.unsuspend)){var g=o.unsuspend;o.unsuspend=null,g()}},(o.imgBytes>sp?50:800)+i);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}function Of(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Pf=null;function zf(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Pf=new Map,i.forEach(SC,o),Pf=null,Of.call(o))}function SC(o,i){if(!(i.state.loading&4)){var c=Pf.get(o);if(c)var u=c.get(null);else{c=new Map,Pf.set(o,c);for(var m=o.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var x=m[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(c.set(x.dataset.precedence,x),u=x)}u&&c.set(null,u)}m=i.instance,x=m.getAttribute("data-precedence"),g=c.get(x)||u,g===u&&c.set(null,m),c.set(x,m),this.count++,u=Of.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),g?g.parentNode.insertBefore(m,g.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(m,o.firstChild)),i.state.loading|=4}}var pl={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function wC(o,i,c,u,m,g,x,T,j){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function uw(o,i,c,u,m,g,x,T,j,X,te,ie){return o=new wC(o,i,c,x,j,X,te,ie,T),i=1,g===!0&&(i|=24),g=yr(3,null,null,i),o.current=g,g.stateNode=o,i=I0(),i.refCount++,o.pooledCache=i,i.refCount++,g.memoizedState={element:u,isDehydrated:c,cache:i},$0(g),o}function fw(o){return o?(o=Ts,o):Ts}function dw(o,i,c,u,m,g){m=fw(m),u.context===null?u.context=m:u.pendingContext=m,u=Ea(i),u.payload={element:c},g=g===void 0?null:g,g!==null&&(u.callback=g),c=Ca(o,u,i),c!==null&&(ur(c,o,i),Gc(c,o,i))}function hw(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<i?c:i}}function cp(o,i){hw(o,i),(o=o.alternate)&&hw(o,i)}function mw(o){if(o.tag===13||o.tag===31){var i=_i(o,67108864);i!==null&&ur(i,o,67108864),cp(o,67108864)}}function pw(o){if(o.tag===13||o.tag===31){var i=xr();i=Tt(i);var c=_i(o,i);c!==null&&ur(c,o,i),cp(o,i)}}var Df=!0;function xC(o,i,c,u){var m=B.T;B.T=null;var g=G.p;try{G.p=2,lp(o,i,c,u)}finally{G.p=g,B.T=m}}function _C(o,i,c,u){var m=B.T;B.T=null;var g=G.p;try{G.p=8,lp(o,i,c,u)}finally{G.p=g,B.T=m}}function lp(o,i,c,u){if(Df){var m=up(u);if(m===null)Xm(o,i,u,Nf,c),yw(o,u);else if(kC(m,o,i,c,u))u.stopPropagation();else if(yw(o,u),i&4&&-1<TC.indexOf(o)){for(;m!==null;){var g=or(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=Lt(g.pendingLanes);if(x!==0){var T=g;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var j=1<<31-At(x);T.entanglements[1]|=j,x&=~j}so(g),(yt&6)===0&&(yf=Ne()+500,ll(0))}}break;case 31:case 13:T=_i(g,2),T!==null&&ur(T,g,2),vf(),cp(g,2)}if(g=up(u),g===null&&Xm(o,i,u,Nf,c),g===m)break;m=g}m!==null&&u.stopPropagation()}else Xm(o,i,u,null,c)}}function up(o){return o=d0(o),fp(o)}var Nf=null;
vendor: 2,255 bytes, line 10
10function fp(o){if(Nf=null,o=Qt(o),o!==null){var i=s(o);if(i===null)o=null;else{var c=i.tag;if(c===13){if(o=l(i),o!==null)return o;o=null}else if(c===31){if(o=f(i),o!==null)return o;o=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nf=o,null}function gw(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gt()){case Ye:return 2;case vt:return 8;case Qe:case ut:return 32;case no:return 268435456;default:return 32}default:return 32}}var dp=!1,Ba=null,Fa=null,Ia=null,gl=new Map,yl=new Map,Ha=[],TC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function yw(o,i){switch(o){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":gl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(i.pointerId)}}
vendor: 4,428 bytes, line 10
10function bl(o,i,c,u,m,g){return o===null||o.nativeEvent!==g?(o={blockedOn:i,domEventName:c,eventSystemFlags:u,nativeEvent:g,targetContainers:[m]},i!==null&&(i=or(i),i!==null&&mw(i)),o):(o.eventSystemFlags|=u,i=o.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),o)}function kC(o,i,c,u,m){switch(i){case"focusin":return Ba=bl(Ba,o,i,c,u,m),!0;case"dragenter":return Fa=bl(Fa,o,i,c,u,m),!0;case"mouseover":return Ia=bl(Ia,o,i,c,u,m),!0;case"pointerover":var g=m.pointerId;return gl.set(g,bl(gl.get(g)||null,o,i,c,u,m)),!0;case"gotpointercapture":return g=m.pointerId,yl.set(g,bl(yl.get(g)||null,o,i,c,u,m)),!0}return!1}function bw(o){var i=Qt(o.target);if(i!==null){var c=s(i);if(c!==null){if(i=c.tag,i===13){if(i=l(c),i!==null){o.blockedOn=i,zt(o.priority,function(){pw(c)});return}}else if(i===31){if(i=f(c),i!==null){o.blockedOn=i,zt(o.priority,function(){pw(c)});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Lf(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var c=up(o.nativeEvent);if(c===null){c=o.nativeEvent;var u=new c.constructor(c.type,c);f0=u,c.target.dispatchEvent(u),f0=null}else return i=or(c),i!==null&&mw(i),o.blockedOn=c,!1;i.shift()}return!0}function vw(o,i,c){Lf(o)&&c.delete(i)}function EC(){dp=!1,Ba!==null&&Lf(Ba)&&(Ba=null),Fa!==null&&Lf(Fa)&&(Fa=null),Ia!==null&&Lf(Ia)&&(Ia=null),gl.forEach(vw),yl.forEach(vw)}function jf(o,i){o.blockedOn===i&&(o.blockedOn=null,dp||(dp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EC)))}var Bf=null;function Sw(o){Bf!==o&&(Bf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bf===o&&(Bf=null);for(var i=0;i<o.length;i+=3){var c=o[i],u=o[i+1],m=o[i+2];if(typeof u!="function"){if(fp(u||c)===null)continue;break}var g=or(c);g!==null&&(o.splice(i,3),i-=3,um(g,{pending:!0,data:m,method:c.method,action:u},u,m))}}))}function qs(o){function i(j){return jf(j,o)}Ba!==null&&jf(Ba,o),Fa!==null&&jf(Fa,o),Ia!==null&&jf(Ia,o),gl.forEach(i),yl.forEach(i);for(var c=0;c<Ha.length;c++){var u=Ha[c];u.blockedOn===o&&(u.blockedOn=null)}for(;0<Ha.length&&(c=Ha[0],c.blockedOn===null);)bw(c),c.blockedOn===null&&Ha.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(u=0;u<c.length;u+=3){var m=c[u],g=c[u+1],x=m[Rt]||null;if(typeof g=="function")x||Sw(c);else if(x){var T=null;if(g&&g.hasAttribute("formAction")){if(m=g,x=g[Rt]||null)T=x.formAction;else if(fp(m)!==null)continue}else T=x.action;typeof T=="function"?c[u+1]=T:(c.splice(u,3),u-=3),Sw(c)}}}function ww(){function o(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(x){return m=x})},focusReset:"manual",scroll:"manual"})}function i(){m!==null&&(m(),m=null),u||setTimeout(c,20)}function c(){if(!u&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(c,100),function(){u=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),m!==null&&(m(),m=null)}}}function hp(o){this._internalRoot=o}Ff.prototype.render=hp.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var c=i.current,u=xr();dw(c,u,o,i,null,null)},Ff.prototype.unmount=hp.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;dw(o.current,2,null,o,null,null),vf(),i[Gn]=null}};function Ff(o){this._internalRoot=o}Ff.prototype.unstable_scheduleHydration=function(o){if(o){var i=sn();o={blockedOn:null,target:o,priority:i};for(var c=0;c<Ha.length&&i!==0&&i<Ha[c].priority;c++);Ha.splice(c,0,o),c===0&&bw(o)}};var xw=t.version;if(xw!=="19.2.7")throw Error(r(527,xw,"19.2.7"));G.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(i),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var CC={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.7"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var If=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!If.isDisabled&&If.supportsFiber)try{It=If.inject(CC),Jt=If}catch{}}return Sl.createRoot=function(o,i){if(!a(o))throw Error(r(299));var c=!1,u="",m=R2,g=M2,x=O2;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError)),i=uw(o,1,!1,null,null,c,u,null,m,g,x,ww),o[Gn]=i.current,qm(o),new hp(i)},Sl.hydrateRoot=function(o,i,c){if(!a(o))throw Error(r(299));var u=!1,m="",g=R2,x=M2,T=O2,j=null;return c!=null&&(c.unstable_strictMode===!0&&(u=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(g=c.onUncaughtError),c.onCaughtError!==void 0&&(x=c.onCaughtError),c.onRecoverableError!==void 0&&(T=c.onRecoverableError),c.formState!==void 0&&(j=c.formState)),i=uw(o,1,!0,i,c??null,u,m,j,g,x,T,ww),i.context=fw(null),c=i.current,u=xr(),u=Tt(u),m=Ea(u),m.callback=null,Ca(c,m,u),c=u,i.current.lanes=c,Ve(i,c),so(i),o[Gn]=i.current,qm(o),new Ff(i)},Sl.version="19.2.7",Sl}var Pw;function FC(){if(Pw)return gp.exports;Pw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),gp.exports=BC(),gp.exports}var IC=FC(),HC="__TSS_CONTEXT",Lg=Symbol.for("TSS_SERVER_FUNCTION"),zw=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),VC="application/x-tss-framed",Ho={JSON:0,CHUNK:1,END:2,ERROR:3},UC=/;\s*v=(\d+)/;function $C(e){const t=e.match(UC);return t?parseInt(t[1],10):void 0}function ZC(e){const t=$C(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var Gy=()=>window.__TSS_START_OPTIONS__;const YC=!1;function Ql(e){return e[e.length-1]}function Wl(e,t){return typeof e=="function"?e(t):e}const k4=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable;function E4(e){for(const t in e)if(k4.call(e,t))return!0;return!1}const qC=()=>Object.create(null),Li=(e,t)=>Ii(e,t,qC);function Ii(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;const a=t,s=Lw(e)&&Lw(a);if(!s&&!(Hd(e)&&Hd(a)))return a;const l=s?e:Dw(e);if(!l)return a;const f=s?a:Dw(a);if(!f)return a;const h=l.length,d=f.length,p=s?new Array(d):n();let y=0;for(let b=0;b<d;b++){const v=s?b:f[b],S=e[v],w=a[v];if(S===w){p[v]=S,(s?b<h:k4.call(e,v))&&y++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){p[v]=w;continue}const _=Ii(S,w,n,r+1);p[v]=_,_===S&&y++}return h===d&&y===h?e:p}function Dw(e){const t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(const r of n){if(!GC.call(e,r))return!1;t.push(r)}return t}function Hd(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function go(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!go(e[r],t[r],n))return!1;return!0}if(Hd(e)&&Hd(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const l in t)if((!r||t[l]!==void 0)&&!go(e[l],t[l],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&a++;let s=0;for(const l in t)if((!r||t[l]!==void 0)&&(s++,s>a||!go(e[l],t[l],n)))return!1;return a===s}return!1}function XC(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}const KC=/[\x00-\x1f\x7f"<>`{}]/g;function JC(e){return e.replace(KC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function jw(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return JC(t)}const QC=["http:","https:","mailto:","tel:"];function eu(e){if(e[0]!=="/"&&e.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}const C4=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function A4(e,t){if(!e)return!1;if(C4.test(e))return!0;const n=eu(e);return n?!t.has(n):!1}const WC={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},eA=/[&><\u2028\u2029]/g;function tA(e){return e.replace(eA,t=>WC[t])}function wl(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){const n=/%25|%5C/gi;let r=0,a;for(t="";(a=n.exec(e))!==null;)t+=jw(e.slice(r,a.index))+a[0],r=n.lastIndex;t+=jw(r?e.slice(r):e)}return t}function nA(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function rA(e,t){if(e===t)return!0;
10if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function tu(){throw new Error("Invariant failed")}function Vd(e){const t=new Map;let n,r;return{get(a){const s=t.get(a);if(s)return s.visited=!0,s.value},set(a,s){const l=t.get(a);if(l){l.value=s;return}if(t.size>=e){let h=n?.next().value;for(;!h||h.visited;)h?h.visited=!1:n=t.values(),h=n.next().value;h===r&&(n=void 0),t.delete(h.key)}const f={key:a,value:s,visited:!1};r=f,t.set(a,f)},clear(){t.clear(),n=void 0,r=void 0}}}const Ja=4,R4=5;function M4(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,s=e.substring(t,a);if(!s||!s.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(s==="$"){const h=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=h,n[4]=h,n[5]=h,n}if(s.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const l=s.indexOf("{");let f;if(l!==-1&&l+1<s.length&&(f=s.indexOf("}",l))!==-1){const h=s.charCodeAt(l+1);if(h===45){if(l+2<s.length&&s.charCodeAt(l+2)===36){const d=l+3,p=f;if(d<p)return n[0]=3,n[1]=t+l,n[2]=t+d,n[3]=t+p,n[4]=t+f+1,n[5]=a,n}}else if(h===36){const d=l+1,p=l+2;return p===f?(n[0]=2,n[1]=t+l,n[2]=t+d,n[3]=t+p,n[4]=t+f+1,n[5]=e.length,n):(n[0]=1,n[1]=t+l,n[2]=t+p,n[3]=t+f,n[4]=t+f+1,n[5]=a,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function Th(e,t,n,r,a,s,l,f){f?.(n);let h=r;{const d=n.fullPath??n.from,p=n.options,y=d.length,b=p?.caseSensitive??e,v=p?.params?.parse??p?.parseParams;for(;h<y;){const w=M4(d,h,t);let _;const A=h,E=w[5];h=E+1,s++;const C=w[0];switch(C){case 0:{const R=d.substring(w[2],w[3]);let z=R,P;b?P=a.static??=new Map:(z=R.toLowerCase(),P=a.staticInsensitive??=new Map);const M=P.get(z);if(M)_=M;
10else{const k=oc(d);k.parent=a,k.depth=s,_=k,P.set(z,k)}break}case 1:case 3:case 2:{let R=d.substring(A,w[1]),z=d.substring(w[4],E);const P=b&&!!(R||z);b||(R=R.toLowerCase(),z=z.toLowerCase());const M=C===1?a.dynamic:C===3?a.optional:a.wildcard,k=C!==2&&!v&&M?.find(D=>!D.parse&&D.caseSensitive===P&&D.prefix===R&&D.suffix===z);if(k)_=k;else{const D=oA(C,d,P,R,z);_=D,D.parent=a,D.depth=s;let N;C===1?N=a.dynamic??=[]:C===3?N=a.optional??=[]:N=a.wildcard??=[],N.push(D),N.length===2&&l?.push(N)}break}}a=_}if(v&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const w=oc(d);w.kind=R4,w.parent=a,s++,w.depth=s,a.pathless??=[],a.pathless.push(w),a=w}const S=(n.path||!n.children)&&!n.isRoot;if(S&&d.endsWith("/")){const w=oc(d);w.kind=Ja,w.parent=a,s++,w.depth=s,a.index=w,a=w}a.parse=v??null,a.priority=p?.params?.priority??0,S&&!a.route&&(a.route=n,a.fullPath=d)}if(n.children)for(const d of n.children)Th(e,t,d,h,a,s,l,f)}function O4(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function oc(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function oA(e,t,n,r,a){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:a}}function aA(e,t){const n=oc("/"),r=new Uint16Array(6),a=[];for(const s of e)Th(!1,r,s,1,n,0,a);for(const s of a)s.sort(O4);t.masksTree=n,t.flatCache=Vd(1e3)}function iA(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const r=qy(e,t.masksTree);return t.flatCache.set(e,r),r}function sA(e,t,n,r,a){e||="/",r||="/";const s=t?`case\0${e}`:e;let l=a.singleCache.get(s);return l||(l=oc("/"),Th(t,new Uint16Array(6),{from:e},1,l,0),a.singleCache.set(s,l)),qy(r,l,n)}function cA(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";let s;try{s=qy(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)s=null;else throw l}return s&&(s.branch=z4(s.route)),t.matchCache.set(r,s),s}function lA(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function uA(e,t=!1,n){const r=oc(e.fullPath),a=new Uint16Array(6),s=[],l={},f={};let h=0;Th(t,a,e,1,r,0,s,d=>{if(n?.(d,h),d.id in l&&tu(),l[d.id]=d,h!==0&&d.path){const p=lA(d.fullPath);(!f[p]||d.fullPath.endsWith("/"))&&(f[p]=d)}h++});for(const d of s)d.sort(O4);return{processedTree:{segmentTree:r,singleCache:Vd(1e3),matchCache:Vd(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:f}}function qy(e,t,n=!1){const r=e.split("/"),a=dA(e,r,t,n);if(!a)return null;const[s]=P4(e,r,a);return{route:a.node.route,rawParams:s}}function P4(e,t,n){const r=fA(n.node);let a=null;const s=Object.create(null);let l=n.extract?.part??0,f=n.extract?.node??0,h=n.extract?.path??0,d=n.extract?.segment??0;for(;f<r.length;l++,f++,h++,d++){const p=r[f];if(p.kind===Ja)break;if(p.kind===R4){d--,l--,h--;continue}const y=t[l],b=h;if(y&&(h+=y.length),p.kind===1){a??=n.node.fullPath.split("/");const v=a[d],S=p.prefix.length;if(v.charCodeAt(S)===123){const w=p.suffix.length,_=v.substring(S+2,v.length-w-1),A=y.substring(S,y.length-w);s[_]=decodeURIComponent(A)}else{const w=v.substring(1);s[w]=decodeURIComponent(y)}}else if(p.kind===3){if(n.skipped&1<<f){l--,h=b-1;continue}a??=n.node.fullPath.split("/");const v=a[d],S=p.prefix.length,w=p.suffix.length,_=v.substring(S+3,v.length-w-1),A=p.suffix||p.prefix?y.substring(S,y.length-w):y;A&&(s[_]=decodeURIComponent(A))}else if(p.kind===2){const v=p,S=e.substring(b+v.prefix.length,e.length-v.suffix.length),w=decodeURIComponent(S);s["*"]=w,s._splat=w;break}}return n.rawParams&&Object.assign(s,n.rawParams),[s,{part:l,node:f,path:h,segment:d}]}function z4(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function fA(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function dA(e,t,n,r){if(e==="/"&&n.index)return{node:n.index,skipped:0};const a=!Ql(t),s=a&&e!=="/",l=t.length-(a?1:0),f=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let h=null,d=null;for(;f.length;){const p=f.pop(),{node:y,index:b,skipped:v,statics:S,dynamics:w,optionals:_}=p;let{extract:A,rawParams:E}=p;if(y.kind===2&&y.route&&!Vf(d,p))continue;if(y.parse){if(!Bw(e,t,p))continue;E=p.rawParams,A=p.extract}
10r&&y.route&&y.kind!==Ja&&Vf(h,p)&&(h=p);const C=b===l;if(C&&(y.route&&(!s||y.kind===Ja||y.kind===2)&&Vf(d,p)&&(d=p),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const R=C?void 0:t[b];let z;if(C&&y.index){const P={node:y.index,index:b,skipped:v,statics:S,dynamics:w,optionals:_,extract:A,rawParams:E};let M=!0;if(y.index.parse&&(Bw(e,t,P)||(M=!1)),M){if(!w&&!_&&!v&&hA(S,l))return P;Vf(d,P)&&(d=P)}}if(y.wildcard)for(let P=y.wildcard.length-1;P>=0;P--){const M=y.wildcard[P],{prefix:k,suffix:D}=M;if(!(k&&(C||!(M.caseSensitive?R:z??=R.toLowerCase()).startsWith(k)))){if(D){if(C)continue;const N=t.slice(b).join("/"),F=N.slice(-D.length);if((M.caseSensitive?F:F.toLowerCase())!==D||N.length-D.length<k.length)continue}f.push({node:M,index:l,skipped:v,statics:S,dynamics:w,optionals:_,extract:A,rawParams:E})}}if(y.optional){const P=v|1<<y.depth+1;for(let M=y.optional.length-1;M>=0;M--){const k=y.optional[M];f.push({node:k,index:b,skipped:P,statics:S,dynamics:w,optionals:_,extract:A,rawParams:E})}if(!C)for(let M=y.optional.length-1;M>=0;M--){const k=y.optional[M],{prefix:D,suffix:N}=k;if(D||N){const F=k.caseSensitive?R:z??=R.toLowerCase();if(D&&!F.startsWith(D)||N&&F.indexOf(N,F.length-N.length)<D.length)continue}f.push({node:k,index:b+1,skipped:v,statics:S,dynamics:w,optionals:_+Hf(l,b),extract:A,rawParams:E})}}if(!C&&y.dynamic&&R)for(let P=y.dynamic.length-1;P>=0;P--){const M=y.dynamic[P],{prefix:k,suffix:D}=M;if(k||D){const N=M.caseSensitive?R:z??=R.toLowerCase();if(k&&!N.startsWith(k)||D&&N.indexOf(D,N.length-D.length)<k.length)continue}f.push({node:M,index:b+1,skipped:v,statics:S,dynamics:w+Hf(l,b),optionals:_,extract:A,rawParams:E})}if(!C&&y.staticInsensitive){const P=y.staticInsensitive.get(z??=R.toLowerCase());P&&f.push({node:P,index:b+1,skipped:v,statics:S+Hf(l,b),dynamics:w,optionals:_,extract:A,rawParams:E})}if(!C&&y.static){const P=y.static.get(R);P&&f.push({node:P,index:b+1,skipped:v,statics:S+Hf(l,b),dynamics:w,optionals:_,extract:A,rawParams:E})}if(y.pathless)for(let P=y.pathless.length-1;P>=0;P--){const M=y.pathless[P];f.push({node:M,index:b,skipped:v,statics:S,dynamics:w,optionals:_,extract:A,rawParams:E})}}if(d)return d;if(r&&h){let p=h.index;for(let b=0;b<h.index;b++)p+=t[b].length;const y=p===e.length?"/":e.slice(p);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(y),h}return null}function Hf(e,t){return 2**(e-t-1)}function hA(e,t){return e===2**(t-1)-1}function Bw(e,t,n){let r,a;try{[r,a]=P4(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=a,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Vf(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ja)>(e.node.kind===Ja)||t.node.kind===Ja==(e.node.kind===Ja)&&t.node.depth>e.node.depth))):!0}function Ad(e){return Rd(e.filter(t=>t!==void 0).join("/"))}function Rd(e){return e.replace(/\/{2,}/g,"/")}function D4(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function qo(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function N4(e){return qo(D4(e))}function Fw(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function mA({base:e,to:t,trailingSlash:n="never",cache:r}){if(t.includes("//")&&(t=Rd(t)),t.startsWith("/"))return t.length===1||n==="preserve"?t:n==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const a=t===".";let s;if(r){s=a?e:e+"\0"+t;const d=r.get(s);if(d)return d}let l;if(a)l=e.split("/");else{for(e.includes("//")&&(e=Rd(e)),l=e.split("/");l.length>1&&Ql(l)==="";)l.pop();const d=t.split("/");for(let p=0,y=d.length;p<y;p++){const b=d[p];b===""?p?p===y-1&&l.push(b):l=[b]:b===".."?l.length>1?l.pop():l=[""]:b==="."||l.push(b)}}l.length>1&&(Ql(l)===""?n==="never"&&l.pop():n==="always"&&l.push(""));const f=l.join("/"),h=(a?Rd(f):f)||"/";return s&&r&&r.set(s,h),h}function pA(e){const t=new Map(e.map(a=>[encodeURIComponent(a),a])),n=Array.from(t.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(n,"g");return a=>a.replace(r,s=>t.get(s)??s)}
10function Sp(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(a=>Hw(a,n)).join("/"):Hw(r,n)}function Iw({path:e,params:t,decoder:n,...r}){let a=!1;const s=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:a};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:a};const l=e.length;let f=0,h,d="";for(;f<l;){const p=f;h=M4(e,p,h);const y=h[5];if(f=y+1,p===y)continue;const b=h[0];if(b===0){d+="/"+e.substring(p,y);continue}if(b===2){const v=t._splat;s._splat=v,s["*"]=v;const S=e.substring(p,h[1]),w=e.substring(h[4],y);if(!v){a=!0,(S||w)&&(d+="/"+S+w);continue}const _=Sp("_splat",t,n);d+="/"+S+_+w;continue}if(b===1){const v=e.substring(h[2],h[3]);!a&&!(v in t)&&(a=!0),s[v]=t[v];const S=e.substring(p,h[1]),w=e.substring(h[4],y),_=Sp(v,t,n)??"undefined";d+="/"+S+_+w;continue}if(b===3){const v=e.substring(h[2],h[3]),S=t[v];if(S==null)continue;s[v]=S;const w=e.substring(p,h[1]),_=e.substring(h[4],y),A=Sp(v,t,n)??"";d+="/"+w+A+_;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:s,interpolatedPath:d||"/",isMissingParams:a}}function Hw(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function kh(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function es(e){return e?.isNotFound===!0}function gA(){try{return sessionStorage}catch{return}}const yA="tsr-scroll-restoration-v1_3",L4=gA();function bA(){try{return JSON.parse(L4?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function vA(){try{L4?.setItem(yA,JSON.stringify(Ws))}catch{}}const Ws=bA(),Vw="data-scroll-restoration-id",SA=e=>e.state.__TSR_key||e.href;function wA(e){const t=e.getAttribute(Vw);if(t)return`[${Vw}="${t}"]`;let n="",r=e,a;for(;a=r.parentNode;){let s=1,l=r;for(;l=l.previousElementSibling;)s++;const f=`${r.localName}:nth-child(${s})`;n=n?`${f} > ${n}`:f,r=a}return n}let Uf=!1;const Md="window";function jg(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function Uw(e){const t=new Set;for(const n of e){if(n===Md)continue;const r=jg(n);r&&t.add(r)}return t}function xA(e,t){const n=e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);const a=e.options.getScrollRestorationKey||SA,s=new Set,l=f=>{const h=Ws[f]||={};for(const d of s)d===document?h[Md]={scrollX,scrollY}:d.isConnected&&(h[wA(d)]={scrollX:d.scrollLeft,scrollY:d.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Uf=!1,history.scrollRestoration="manual",document.addEventListener("scroll",f=>{Uf||s.add(f.target)},!0),e.subscribe("onBeforeLoad",f=>{f.fromLocation&&l(a(f.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{l(a(e.stores.resolvedLocation.get()??e.stores.location.get())),vA()})),!r.reset&&(r.reset=!0,e.subscribe("onRendered",f=>{const h=e.options.scrollRestorationBehavior,d=e.options.scrollToTopSelectors,p=r.next,y=r.hash;let b;if(s.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const v=a(f.toLocation),S=f.fromLocation&&a(f.fromLocation);if(r.restoring&&S&&S!==v){const w=Ws[S];if(w){let _=Ws[v];for(const A in w){if(A===Md){if(p)continue}else{const E=jg(A);if(!E||p&&d&&(b??=Uw(d),b.has(E)))continue}_||(_=Ws[v]={}),_[A]??=w[A]}}}Uf=!0;try{const w=f.toLocation.hash,_=f.toLocation.state.__hashScrollIntoViewOptions??!0;let A=!1;if(p){!w&&d&&(b??=Uw(d));const E=w&&_&&y,C=r.restoring?Ws[v]:void 0;if(C)for(const R in C){const{scrollX:z,scrollY:P}=C[R];if(R===Md){if(E)continue;scrollTo({top:P,left:z,behavior:h}),A=!0}else{const M=jg(R);M&&(M.scrollLeft=z,M.scrollTop=P,b?.delete(M))}}if(!w){const R={top:0,left:0,behavior:h};if(A||scrollTo(R),b)for(const z of b)z.scrollTo(R)}}!A&&w&&_&&document.getElementById(w)?.scrollIntoView(_)}finally{Uf=!1}}))}function j4(e,t=String){let n;for(const r in e){const a=e[r];a!==void 0&&(n||=new URLSearchParams).set(r,t(a))}return n?n.toString():""}function wp(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function _A(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[r,a]of t.entries()){const s=n[r];s==null?n[r]=wp(a):Array.isArray(s)?s.push(wp(a)):n[r]=[s,wp(a)]}return n}const B4=/^(?:\s|["[{\d-]|fa|nu|tr)/,TA=EA(JSON.parse),kA=CA(JSON.stringify,JSON.parse);function EA(e){const t=e===JSON.parse;return n=>{n[0]==="?"&&(n=n.substring(1));const r=_A(n);for(const a in r){const s=r[a];if(typeof s=="string"){if(t&&!B4.test(s))continue;try{r[a]=e(s)}catch{}}}return r}}function CA(e,t){const n=t===JSON.parse;function r(a){if(a&&typeof a=="object")try{return e(a)}catch{}
10else if(t&&typeof a=="string"){if(n&&!B4.test(a))return a;try{return t(a),e(a)}catch{}}return a}return a=>{const s=j4(a,r);return s?`?${s}`:""}}const ac="__root__";function Xy(e){e.statusCode=e.statusCode||e.code||307;const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ky(e){return e instanceof Response&&!!e.options}function F4(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return Xy(e)}function AA(e){return e.replaceAll("\0","/").replaceAll("�","/").replace(/~([~0r])/g,(t,n)=>n==="0"?"\0":n==="r"?"�":n)}function RA(e){return{input:({url:t})=>{for(const n of e)t=Bg(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=I4(e[n],t);return t}}}function MA(e){const t=N4(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),a=`${r}/`;return{input:({url:s})=>{const l=e.caseSensitive?s.pathname:s.pathname.toLowerCase();return l===r?s.pathname="/":l.startsWith(a)&&(s.pathname=s.pathname.slice(n.length)),s},output:({url:s})=>(s.pathname=Ad(["/",t,s.pathname]),s)}}function Bg(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function I4(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function OA(e,t){const{createMutableStore:n,createReadonlyStore:r,batch:a}=t,s=new Map,l=n("idle"),f=n(e),h=n(void 0),d=n([]),p=r(()=>d.get().map(w=>s.get(w).get())),y=r(()=>({status:l.get(),isLoading:l.get()==="pending",matches:p.get(),location:f.get(),resolvedLocation:h.get()}));function b(w){let _=s.get(w);return _||(_=n(void 0),s.set(w,_)),_}const v={status:l,location:f,resolvedLocation:h,ids:d,matches:p,byRoute:s,__store:y,getMatchStore:b,setMatches:S};function S(w){const _=d.get(),A=w.map(E=>E.routeId);a(()=>{rA(_,A)||d.set(A);for(const E of _)A.includes(E)||s.get(E).set(()=>{});for(const E of w){const C=b(E.routeId);C.get()!==E&&C.set(E)}})}return v}var Wa="__TSR_index",$w="popstate",Zw="beforeunload",PA=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Od(e){const t=PA.exec(e);return t?"/"+e.slice(t[0].length):e}function H4(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,t=>` 11\r`.includes(t)?"":encodeURIComponent(t))),Od(e)}function zA(e){let t=e.getLocation();const n=new Set,r=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},a=l=>{e.notifyOnIndexChange??!0?r(l):t=e.getLocation()},s=async({task:l,navigateOpts:f,...h})=>{if(f?.ignoreBlocker??!1){l();return}const d=e.getBlockers?.()??[],p=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&d.length&&p)for(const y of d){const b=Ud(h.path,h.state);if(await y.blockerFn({currentLocation:t,nextLocation:b,action:h.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,h)=>{const d=t.state[Wa];f=Yw(d+1,f),s({task:()=>{e.pushState(l,f),r({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:l,state:f})},replace:(l,f,h)=>{const d=t.state[Wa];f=Yw(d,f),s({task:()=>{e.replaceState(l,f),r({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:l,state:f})},go:(l,f)=>{s({task:()=>{e.go(l,f?.ignoreBlocker??!1),a({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{s({task:()=>{e.back(l?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{s({task:()=>{e.forward(l?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[Wa]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const h=e.getBlockers?.()??[];e.setBlockers?.(h.filter(d=>d!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Yw(e,t){t||(t={});const n=Jy();return{...t,key:n,__TSR_key:n,[Wa]:e}}function DA(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const s=()=>a,l=M=>a=M,f=M=>H4(M),h=(()=>Ud(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const M=Jy();t.history.replaceState({[Wa]:0,key:M,__TSR_key:M},"")}let d=h(),p,y=!1,b=!1,v=!1,S=!1;const w=()=>d;let _;const A=()=>{_&&(P._ignoreSubscribers=!0,(_[2]?t.history.pushState:t.history.replaceState)(_[1],"",_[0]),P._ignoreSubscribers=!1,_=void 0,p=void 0)},E=(M,k,D)=>{const N=!!_;N||(p=d),d=Ud(k,D),_=[d.href,D,_?.[2]||M],N||queueMicrotask(()=>A())},C=M=>{d=h(),P.notify({type:M})},R=async()=>
11{if(S=!1,b){b=!1;return}const M=h(),k=M.state[Wa]-d.state[Wa],D=k===1,N=k===-1,F=!D&&!N||y;y=!1;const Y=F?"GO":N?"BACK":"FORWARD",J=F?{type:"GO",index:k}:{type:N?"BACK":"FORWARD"};if(v)v=!1;else{const fe=s();if(typeof document<"u"&&fe.length){for(const se of fe)if(await se.blockerFn({currentLocation:d,nextLocation:M,action:Y})){b=!0,t.history.go(-k),P.notify(J);return}}}d=h(),P.notify(J)},z=M=>{if(S){S=!1;return}let k=!1;const D=s();if(typeof document<"u"&&D.length)for(const N of D){const F=N.enableBeforeUnload??!0;if(F===!0){k=!0;break}if(typeof F=="function"&&F()===!0){k=!0;break}}if(k)return M.preventDefault(),M.returnValue=""},P=zA({getLocation:w,getLength:()=>t.history.length,pushState:(M,k)=>E(!0,M,k),replaceState:(M,k)=>E(!1,M,k),back:M=>(M&&(v=!0,S=!0),t.history.back()),forward:M=>{M&&(v=!0,S=!0),t.history.forward()},go:(M,k)=>{y=!0,k&&(v=!0,S=!0),t.history.go(M)},createHref:M=>f(M),flush:A,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Zw,z,{capture:!0}),t.removeEventListener($w,R)},onBlocked:()=>{p&&d!==p&&(d=p)},getBlockers:s,setBlockers:l,notifyOnIndexChange:!1});return P._ignoreNextBeforeUnload=M=>{S=!1;try{M=new URL(M,t.document.baseURI).href,S=/^https?:/.test(M)&&(!M.includes("#")||M.split("#")[0]!==t.location.href.split("#")[0])}catch{}},t.addEventListener(Zw,z,{capture:!0}),t.addEventListener($w,R),t.history.pushState=function(...M){const k=n.apply(t.history,M);return P._ignoreSubscribers||C("PUSH"),k},t.history.replaceState=function(...M){const k=r.apply(t.history,M);return P._ignoreSubscribers||C("REPLACE"),k},P}function Ud(e,t){const n=H4(e),r=n.indexOf("#"),a=n.indexOf("?"),s=Jy();return{href:n,pathname:n.substring(0,r>0?a>0?Math.min(r,a):r:a>0?a:n.length),hash:r>-1?n.substring(r):"",search:a>-1?n.slice(a,r===-1?void 0:r):"",state:t||{[Wa]:0,key:s,__TSR_key:s}}}function Jy(){return(Math.random()+1).toString(36).substring(7)}function xp(e,t){return e.protocol!=="http:"&&e.protocol!=="https:"||e.origin!==t||!!e.username||!!e.password}function _p(e){return e.pathname+e.search+e.hash}function Gw(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function NA(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Eh(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function qw({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...a}){return a}function V4(e){return e.findIndex(t=>t.status==="error"||t.status==="notFound"||t._notFound)+1}function LA(e,t,n,r,a,s){r&&(t=t.slice(0,r)),a&&(n=n.slice(0,a));for(const l of t){if(s&&e._tx!==s)return;n.some(f=>f.routeId===l.routeId)||e.routesById[l.routeId].options.onLeave?.(l)}for(const l of n){if(s&&e._tx!==s)return;e.routesById[l.routeId].options[t.some(f=>f.routeId===l.routeId)?"onStay":"onEnter"]?.(l)}}var jA=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async n=>(n(),!1),this.update=n=>{const r=this.options,a=this.basepath??r?.basepath??"/",s=this.basepath===void 0,l=r?.rewrite;if(this.options={...r,...n},this.isServer=this.options.isServer??YC??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=pA(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=DA()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let d;this.resolvePathCache=Vd(1e3),d=this.buildRouteTree(),this.setRoutes(d)}if(!this.stores&&this.latestLocation){const d=this.getStoreConfig(this);this.batch=d.batch,this.stores=OA(this.latestLocation,d),xA(this)}const f=this.options.basepath??"/",h=this.options.rewrite;if(s||a!==f||l!==h){this.basepath=f;const d=[],p=N4(f);p&&p!=="/"&&d.push(MA({basepath:f})),h&&d.push(h),this.rewrite=d.length===0?void 0:d.length===1?d[0]:RA(d),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=uA(this.routeTree,this.options.caseSensitive,(r,a)=>{r.init({originalIndex:a})});return this.options.routeMasks&&aA(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{for(const r of this.subscribers)if(r.eventType===n.type)try{r.fn(n)}catch(a){console.error(a)}},this.parseLocation=(n,r)=>{const a=({pathname:h,search:d,hash:p,href:y,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const A=this.options.parseSearch(d),E=this.options.stringifySearch(A);return{href:h+E+p,publicHref:h+E+p,pathname:wl(h),external:!1,searchStr:E,search:Li(r?.search,A),hash:wl(p.slice(1)),state:Ii(r?.state,b)}}const v=new URL(y,this.origin),S=Bg(this.rewrite,v),w=this.options.parseSearch(S.search),_=this.options.stringifySearch(w);return S.search=_,{href:S.href.replace(S.origin,""),publicHref:y,pathname:wl(Od(S.pathname)),external:!!this.rewrite&&xp(S,this.origin),searchStr:_,search:Li(r?.search,w),hash:wl(S.hash.slice(1)),state:Ii(r?.state,b)}},s=a(n),{__tempLocation:l,__tempKey:f}=s.state;if(l&&(!f||f===this.tempLocationKey)){const h=a(l);return h.state.key=s.state.key,h.state.__TSR_key=s.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:s}}return s},this.resolvePathWithBase=(n,r)=>mA({base:n,to:r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>{const r=Object.create(null),a=cA(qo(n),this.processedTree,!0);return a&&Object.assign(r,a.rawParams),[a?.branch||[this.routesById.__root__],r,a?.route]},this.buildLocation=n=>{const r=(s={})=>
11{if(s.href){const D=Ud(s.href,{});s={...s,to:Bg(this.rewrite,new URL(D.pathname,this.origin)).pathname,search:this.options.parseSearch(D.search),hash:D.hash.slice(1)}}const l=s._fromLocation||this._pendingLocation||this.latestLocation,f=this.matchRoutesLightweight(l),h=s.unsafeRelative==="path"?l.pathname:s.from??f[1],d=f[2],p=f[3],y=this.resolvePathWithBase(h,s.to?`${s.to}`:".");let b=Kw(s.params,p);const v=this.routesByPath[qo(y)];let S;if(v)S=this.getRouteBranch(v);else if(y.includes("$"))S=[];else{const[D,N,F]=this.getMatchedRoutes(y);S=D,this.options.notFoundRoute&&(!F||F.path!=="/"&&N["**"])&&(S=[...S,this.options.notFoundRoute])}if(S.length&&E4(b))for(const D of S){const N=D.options.params?.stringify??D.options.stringifyParams;if(N){b===p&&(b=Object.assign(Object.create(null),b));try{Object.assign(b,N(b))}catch{}}}const w=n.leaveParams?y:wl(Od(Iw({path:y,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath));let _=d;if(n._includeValidateSearch&&this.options.search?.strict){const D={};S.forEach(N=>{if(N.options.validateSearch)try{Object.assign(D,Pd(N.options.validateSearch,{...D,..._}))}catch{}}),_=D}_=FA(_,s,S,n._includeValidateSearch),_=Li(d,_);const A=this.options.stringifySearch(_),E=s.hash===!0?l.hash:s.hash?Wl(s.hash,l.hash):void 0,C=E?`#${E}`:"";let R=s.state===!0?l.state:s.state?Wl(s.state,l.state):{};s.state&&(R=Ii(l.state,R));const z=`${w}${A}${C}`;let P,M,k=!1;if(this.rewrite){const D=new URL(z,this.origin),N=D.origin,F=I4(this.rewrite,D);P=_p(D),xp(F,N)?(M=F.href,k=!0):M=Od(_p(F))}else P=nA(z),M=P;return{publicHref:M,href:P,pathname:w,search:_,searchStr:A,state:R,hash:E??"",external:k,unmaskOnReload:s.unmaskOnReload}},a=r(n);if(n.mask)a.maskedLocation=r({from:n.from,...n.mask});else if(this.options.routeMasks){const s=iA(a.pathname,this.processedTree);if(s){const l=Object.assign(Object.create(null),s.rawParams),{from:f,params:h,...d}=s.route,p=Kw(h,l);a.maskedLocation=r({from:n.from,...d,params:p})}}return a},this.commitLocation=async({viewTransition:n,ignoreBlocker:r,...a})=>{const s=a.maskedLocation??a;if(s.external)return Xw(this,s.publicHref,{replace:a.replace,ignoreBlocker:r});let l;const f=qo(this.latestLocation.href)===qo(a.href)&&go(qw(a.state),qw(this.latestLocation.state)),h=this._commitPromise;let d;const p=new Promise(y=>{d=y});if(p.resolve=()=>{d(),h?.resolve()},this._commitPromise=p,f)this.load();else{let{maskedLocation:y,hashScrollIntoView:b,...v}=a;y&&(v={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=b??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=a.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r}),this.history.subscribers.size||this.load({action:{type:l}})}return this._scroll.next=a.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:s,ignoreBlocker:l,...f}={})=>{const h=this.buildLocation({...f,_includeValidateSearch:!0});this._pendingLocation=h;const d=this.commitLocation({...h,viewTransition:s,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:l});return queueMicrotask(()=>{this._pendingLocation===h&&(this._pendingLocation=void 0)}),d},this.navigate=async({to:n,reloadDocument:r,href:a,publicHref:s,...l})=>{const f=a?eu(a):void 0;if(f||r){if(n!==void 0||!a){const d=this.buildLocation({to:n,...l}),p=d.maskedLocation??d;a??=p.publicHref,s??=p.publicHref}return Xw(this,!f&&s?s:a,l)}return this.buildAndCommitLocation({...l,href:a,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.hash=n.action.type==="PUSH"||n.action.type==="REPLACE"),await GA(this,n)},this.startViewTransition=n=>
11{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const s=this.latestLocation,l=this.stores.resolvedLocation.get(),f=typeof r.types=="function"?r.types(Eh(s,l)):r.types;if(f===!1)return n();a={update:n,types:f}}else a=n;return document.startViewTransition(a).updateCallbackDone}return n()},this.invalidate=n=>{const r=this._committed,a=n?.filter,s=this._preloads,l=new Set([...r,...this._cache.values(),...[...s?.values()??[]].flat(),...this._tx?.[3]??[]].filter(d=>!a||a(d)).map(d=>d.id)),f=[];for(const[d,p]of s??[])p.some(y=>l.has(y.id))&&(s.delete(d),f.push(d));const h=d=>{if(l.has(d.id)){const p=this.routesById[d.routeId],y={...d,invalid:!0,...(n?.forcePending||d.status==="error"||d.status==="notFound")&&Gw(p)?{status:"pending",error:void 0}:void 0};return d._flight=void 0,y}return d};this._committed=r.map(h);for(const[d,p]of this._cache)l.has(d)&&(p.invalid=!0,n?.forcePending&&(p.status="pending"));for(const d of l)this._flights?.delete(d);for(const d of f)d.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const r=n.options;let a=n.headers.get("Location")||r.href;if(!a){const l=this.buildLocation(r);a=(l.maskedLocation??l).publicHref||"/"}let s;if(C4.test(a)||(s=eu(a))&&!this.protocolAllowlist.has(s))throw new Error("Redirect blocked: unsafe protocol");if(s==="http:"||s==="https:"){const l=new URL(a);l.pathname.startsWith("//")?a=l.href:xp(l,this.origin)||(a=_p(l),s=void 0)}return s&&(r.reloadDocument=!0),r.href=a,n.headers.set("Location",a),n},this.clearCache=n=>{const r=this._cache,a=this._preloads,s=n?.filter,l=[],f=[];for(const[d,p]of r)(!s||s(p))&&(f.push(d),l.push(p));const h=[];for(const[d,p]of a??[])(!s||p.some(s))&&(h.push(d),l.push(...p));for(const d of f)r.delete(d);for(const d of h)a.delete(d);for(const d of l){const p=d._flight;d._flight=void 0,p&&!--p[2]&&(this._flights?.get(d.id)===p&&this._flights.delete(d.id),h.push(p[1]))}for(const d of h)d.abort()},this.loadRouteChunk=Wo,this.preloadRoute=n=>qA(this,n),this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(a),l=this.stores.status.get()==="pending";if(r?.pending&&!l)return!1;const f=r?.pending??!l?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),h=sA(s.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,f.pathname,this.processedTree);return!h||n.params&&!go(h.rawParams,n.params,{partial:!0})?!1:r?.includeSearch??!0?go(f.search,s.search,{partial:!0})?h.rawParams:!1:h.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??kA,parseSearch:e.parseSearch??TA,protocolAllowlist:e.protocolAllowlist??QC}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=z4(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){const[n,r,a]=this.getMatchedRoutes(e.pathname);let s=n,l=!1;(a?a.path!=="/"&&r["**"]:qo(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:l=!0);const f=l?IA(this.options.notFoundMode,s):void 0,h=new Array(s.length),d=this._committed,p=(b,v)=>{const S=d[v];return S?.routeId===b.id?S:b===this.options.notFoundRoute?d.find(w=>w.routeId===b.id):void 0};let y;for(let b=0;b<s.length;b++){const v=s[b],S=h[b-1];let w,_,A;{const J=S?.search??e.search,fe=S?._strictSearch??void 0;try{const se=Pd(v.options.validateSearch,{...J})??void 0;w={...J,...se},_={...fe,...se}}catch(se){let B=se;if(se instanceof $d||(B=new $d(se.message,{cause:se})),t?.throwOnError)throw B;w=J,_={},A=B}}let E="",C="";try{E=v.options.loaderDeps?.({search:w})??"",C=E&&JSON.stringify(E)||""}catch(J){if(t?.throwOnError)throw J;A??=J}const{interpolatedPath:R,usedParams:z}=Iw({path:v.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),P=v.id+R+C,M=p(v,b),k=this._cache.get(P)??(M?.id===P?M:void 0);y=k?._strictParams??Object.assign(z,y);let D;if(!k)try{Jw(v,y)}catch(J){if(es(J)||Ky(J)?D=J:D=new BA(J.message,{cause:J}),t?.throwOnError)throw D}const N=M?"stay":"enter";let F;if(k)F={...k,cause:N,search:Li(M?M.search:k.search,w),_strictSearch:_,searchError:A};else{const J=Gw(v)?"pending":"success";F={id:P,ssr:v.options.ssr,index:b,routeId:v.id,params:M?.params??y,_str
11ictParams:y,pathname:R,updatedAt:Date.now(),search:M?Li(M.search,w):w,_strictSearch:_,searchError:A,status:J,isFetching:!1,error:void 0,paramsError:D,context:{},abortController:t?._controller??new AbortController,cause:N,loaderDeps:M?Ii(M.loaderDeps,E):E,invalid:!1,preload:!1,staticData:v.options.staticData||{},fullPath:v.fullPath}}const Y=f===v.id;F._notFound&&!Y&&(F.error=void 0),F._notFound=Y,h[b]=F}for(let b=0;b<h.length;b++){const v=h[b];v.params=v.cause==="stay"?Li(v.params,y):y,t?._controller&&(v.context={})}return h}matchRoutesLightweight(e){const t=Ql(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,a=this.lightweightCache.get(e);if(a&&a[0]===r)return a[1];const[s,l]=this.getMatchedRoutes(e.pathname),f=Ql(s),h={...e.search};for(const b of s)try{Object.assign(h,Pd(b.options.validateSearch,h))}catch{}const d=n&&n.routeId===f.id&&n.pathname===e.pathname;let p;if(d)p=n.params;else{const b=Object.assign(Object.create(null),l);for(const v of s)try{Jw(v,b)}catch{}p=b}const y=[s,f.fullPath,h,p];return this.lightweightCache.set(e,[r,y]),y}};async function Xw(e,t,{replace:n,ignoreBlocker:r}){if(!A4(t,e.protocolAllowlist)){if(!r){const a=e.history._getBlockers();for(const s of a)if(s?.blockerFn&&await s.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?"REPLACE":"PUSH"}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var $d=class extends Error{},BA=class extends Error{};function Pd(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new $d("Async validation not supported");if(n.issues)throw new $d(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function FA(e,t,n,r){const a=[];for(const l of n){const f=l.options;if("search"in f)f.search?.middlewares&&a.push(...f.search.middlewares);else if(f.preSearchFilters||f.postSearchFilters){const d=({search:p,next:y})=>{const b=y(f.preSearchFilters?f.preSearchFilters.reduce((v,S)=>S(v),p):p);return f.postSearchFilters?f.postSearchFilters.reduce((v,S)=>S(v),b):b};a.push(d)}const h=f.validateSearch;if(r&&h){const d=({search:p,next:y,meta:b})=>{const v=y(p);try{const S=Pd(h,v);if(b&&S)for(const w in S)w in v||(b.defaulted||=new Map).set(w,S[w]);return{...v,...S}}catch{}return v};a.push(d)}}const s=(l,f,h)=>{if(l>=a.length){if(!t.search)return{};if(t.search===!0)return f;const p=Wl(t.search,f);return h&&(h.explicit=p),p}const d=(p,y)=>{if(y){const b=h||{};return{search:s(l+1,p,b),meta:b}}return s(l+1,p,h)};return a[l]({search:f,next:d,meta:h})};return s(0,e)}function IA(e,t){if(e!=="root"){let n;for(let r=t.length-1;r>=0;r--){const a=t[r];if(a.options.notFoundComponent)return a.id;n||=a.children&&a.id}if(n)return n}return ac}function Kw(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;const n=Object.assign(Object.create(null),t);return Object.assign(n,Wl(e,n))}function Jw(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Fg(e,t){return e.options[t]?.preload?.()}function HA(e,t){const n=Fg(e,"component");let r=Fg(e,"pendingComponent");return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Wo(e,t,n){const r=()=>t===!1?void 0:t?Fg(e,t):HA(e,n),a=e._lazy;if(a)return a===!0?r():a.then(r);if(!e.lazyFn)return r();const s=e.lazyFn().then(l=>{{const{id:f,...h}=l.options;Object.assign(e.options,h),e._lazy=!0}},l=>{throw e._lazy=void 0,l});return e._lazy=s,s.then(r)}function Qy(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function U4(e){let t=e.length;for(let n=0;n<t;n++){const r=e[n];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(n+1,r._assetEnd));continue}if(r.status!=="success"||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}const yo=0,ea=1,Ch=2,Wn=3,ni=[4];function nu(e){return typeof e[0]=="number"}function aa(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{const a=()=>r(t);t.addEventListener("abort",a,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener("abort",a))})}function Jr(e,t){return e.routesById[t.routeId]}function ru(e,t,n){return Ky(e)?[Wn,e]:es(e)?(e.routeId||=n,[Ch,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{c
11ause:e})),[ea,e]):[yo,e]}function Wy(e,t){let n=ru(t,!0,e.id);if(n[0]!==ea)return n;try{e.options.onError?.(n[1])}catch(r){n=ru(r,!0,e.id)}return n}function Ll(e,t,n,r,a){return a[0].signal.aborted?ni:n1(e,t,n,Wy(n,r),a)}async function VA(e,t,n,r,a,s){const[l,f]=t,h=n[0].signal,d=!!n[3];for(let p=n[6]??0;p<r;p++){const y=f[p],b=Jr(e,y);y.abortController=n[0];const v=f[p-1]?.context??e.options.context??{},S={params:y.params,location:l,navigate:E=>e.navigate({...E,_fromLocation:l}),buildLocation:e.buildLocation,cause:d?"preload":y.cause,abortController:n[0],preload:d,matches:f,routeId:b.id};try{const E=y._ctx||=b.options.context?b.options.context({...S,deps:y.loaderDeps,context:v})||{}:void 0;y.context={...v,...E}}catch(E){return Xo(e,y),[p,Ll(e,t,b,E,n)]}if(h.aborted)return[p,ni];const w=y.paramsError??y.searchError;if(w!==void 0)return Xo(e,y),[p,Ll(e,t,b,w,n)];const _=b.options.beforeLoad;if(!_)continue;const A=y.status;p>=s&&(y.status="pending",n[7]?.());try{ou(e,y,"beforeLoad",n[0]);const E=_({...S,search:y.search,context:y.context,...e.options.additionalContext}),C=await(typeof E?.then=="function"?aa(E,h):E);if(h.aborted)return[p,ni];const R=n1(e,t,b,ru(C,!1,b.id),n);if(R[0]!==yo)return Xo(e,y),[p,R];y.context={...y.context,...C}}catch(E){return Xo(e,y),[p,Ll(e,t,b,E,n)]}finally{y.status=A,ou(e,y,!1,n[0])}}a()}function e1(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){const r=e._tx;if(r&&!r[0].signal.aborted&&!r[3].includes(t)&&r[3].some(a=>a.id===t.id)&&r[3].some(a=>a.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return n[1]}}function Xo(e,t){const n=t._flight;t._flight=void 0,e1(e,t,n)?.abort()}function Un(e,t,n,r){const a=[];for(const s of t)if(!n?.includes(s)){const l=s._flight;if(s._flight=void 0,r&&l?.[2]===1&&e._flights?.get(s.id)===l&&n?.some(f=>f.id===s.id))l[2]=0;else{const f=e1(e,s,l);f&&a.push(f)}}for(const s of a)s.abort()}function t1(e){for(const t of e){const n=t._flight;n&&n[2]++}}function ou(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;const a=e.stores.byRoute.get(t.routeId),s=a?.get();s?.id===t.id&&a.set({...s,isFetching:n})}function $4(e,t,n,r,a,s,l){const f=t[0];return{params:n.params,location:f,navigate:h=>e.navigate({...h,_fromLocation:f}),cause:l?"preload":n.cause,abortController:a,preload:l,deps:n.loaderDeps,parentMatchPromise:s,context:n.context,route:r,...e.options.additionalContext}}async function Qw(e,t,n,r,a,s,l){const f=l[0],h=f.signal;if(h.aborted)return ni;if(!a)return[yo,void 0];let d=n._flight;ou(e,n,"loader",f);try{if(!d){const p=new AbortController;d=[Promise.resolve().then(()=>a($4(e,t,n,r,p,s,!!l[3]))).then(y=>ru(y,!1,r.id),y=>ru(y,!0,r.id)).then(y=>(y[0]!==yo&&e._flights?.get(n.id)===d&&(e._flights.delete(n.id),d[2]||p.abort()),y[0]===ea&&d[2]?Wy(r,y[1]):y)),p,1],(e._flights??=new Map).set(n.id,d)}return n._flight=d,n.abortController=d[1],n1(e,t,r,await aa(d[0],h),l)}catch(p){if(p!==h||!h.aborted)throw p;return Xo(e,n),ni}finally{ou(e,n,!1,f)}}function Ww(e,t,n){t[0]!==Wn&&(e.status="success",e.error=void 0,t[0]===yo?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Z4(e,t,n){const r=e._cache.get(t.id);if(r!==n||e._committed.some(s=>s.id===t.id&&s._flight===t._flight))return;const a={...t,_notFound:void 0,context:{}};a._flight&&a._flight[2]++,e._cache.set(t.id,a),r&&Xo(e,r)}function e5(e,t){return t[0]===ea||t[0]===Ch?{...e,status:t[0]===ea?"error":"notFound",error:t[1],_flight:void 0}:e}function UA(e,t,n,r,a,s,l){const f=t[1][n],h=Jr(e,f),d=!!s[3],p=e._cache.get(f.id);let y,b=!1,v;try{if(f.status==="success"&&(y=h.options.shouldReload,typeof y=="function"&&(y=y($4(e,t,f,h,s[0],a,d))),s[0].signal.aborted&&(v=ni)),!v)if(f.status!=="success")b=!0;else{const Y=d||f.preload?h.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:h.options.staleTime??e.options.defaultStaleTime??0;b=!!(f.invalid||y||y===void 0&&Date.now()-f.updatedAt>=Y&&(s[5]||f.cause==="enter"||s[2].some(J=>J.routeId===f.routeId&&J.id!==f.id)))}}catch(Y){f.invalid=!0,Xo(e,f),v=Ll(e,t,h,Y,s)}const S=h.options.loader,w=typeof S=="function",_=w?S:S?.handler,A=!d||h.options.preload!==!1;let E=A&&S?e._flights?.get(f.id):void 0;E===f._flight||v?E=void 0:E&&!b&&!d&&y===void 0?b=!0:b||(E=void 0);const C=!!(S&&b&&f.status==="success"&&!d&&!s[4]&&((w?void 0:S.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),R=b&&A,z=R&&!C&&(f.status!=="success"||!!S),P=n>=l?s[7]:void 0,M=h.lazyFn&&h._lazy!==!0?P:void 0;
11if(R&&!S&&(f.invalid=!1,f.updatedAt=Date.now()),E&&E[2]++,z){const Y=f._flight;f._flight=E,e1(e,f,Y)?.abort(),n>=l&&(f.status="pending"),P?.()}R||(f.isFetching=!1);const k=!v&&z?Qw(e,t,f,h,_,a,s).then(Y=>(Ww(f,Y,d),Y[0]===yo&&(S&&!s[0].signal.aborted&&Z4(e,f,p),n>=l&&(f.status="pending")),Y)):Promise.resolve(v??[yo,f.loaderData]),D=(async()=>{try{const J=Wo(h,void 0,M);J&&await aa(J,s[0].signal)}catch(J){if(!t[1].some((fe,se)=>se<=n&&(fe.status==="error"||fe.status==="notFound"||fe._notFound)))return[n,Ll(e,t,h,J,s)]}const Y=await k;z&&Y[0]===yo&&f.status==="pending"&&!s[0].signal.aborted&&(f.status="success",P?.())})();if(r.push([n,k,D]),!C)return k.then(Y=>e5(f,Y));const N={...f,status:"pending",preload:!1,_flight:E};f.invalid=!1,f.isFetching="loader";const F=Qw(e,t,N,h,_,a,s).then(Y=>(f.isFetching=!1,Ww(N,Y,!1),Y));return(t[2]??=[]).push([n,F,D,N]),F.then(Y=>e5(N,Y))}async function Ig(e,t,n,r,a=0){const s=n?.[1][1];let l=s?.routeId?t.findIndex(f=>f.routeId===s.routeId):n?.[0]??t.length-1;l<0&&(l=0);for(let f=l;f>=0;f--){const h=Jr(e,t[f]);try{const d=Wo(h,!1);d&&await aa(d,r)}catch(d){if(d===r&&r.aborted)throw d}if(h.options.notFoundComponent)return f}return s?.routeId?l:a}function qi(e,t){t[2]&&(Un(e,t[2].map(n=>n[3])),t[2]=void 0)}async function t5(e,t,n,r){let a;try{await Promise.all(e.map(s=>s[1].then(async l=>{const f=s[0];if(!(r&&f>=await r)){if(l[0]>=Wn)throw[f,l];!a&&l[0]!==yo&&(a=[f,l],await Promise.all((n??[]).map(h=>{if(!(h[0]<=f))return h[1].then(d=>{if(d[0]===Wn)throw[h[0],d]})})))}})))}catch(s){return s}return t??a}function n1(e,t,n,r,a,s){for(;r[0]===Wn;){const l=r[1],f=l.options;try{if((f.href||l.headers.has("Location"))&&(e.resolveRedirect(l),f.reloadDocument)||(f.reloadDocument?a[3]:a[1]>=20))return r;const h=e.buildLocation({...f,_fromLocation:t[0],_includeValidateSearch:!0}),d=h.maskedLocation??h;if(d.external){const p=l.clone();return p.options={...f},p.headers.set("Location",d.publicHref),e.resolveRedirect(p),a[3]?[Wn,p]:[Wn,p,d]}return[Wn,l,h]}catch(h){r=s?[ea,h]:Wy(n,h),s=!0}}return r}async function Y4(e,t,n,r,a,s){const l=t[1];let f=await a,h=!1;const d=l.findIndex(v=>v._notFound),p=v=>v[1][0]===Ch?Ig(e,l,v,r.signal):v[0];let y=d<0?l.length:d;if((f?.[1][0]??0)>=Wn)y=0;else if(f){y=f[2]??=await p(f);for(const v of n){if(v[0]>=y)break;const S=await v[1];if(S[0]!==yo&&S[0]<Wn&&!("loaderData"in l[v[0]])){f=[v[0],S],y=f[2]=await p(f);break}}}for(const v of n){if(v[0]>=y)break;const S=await v[2];if(S){f=S;break}}if((f?.[1][0]??0)>=Wn){const v=f[1];if(v[0]!==Wn||v[1].options.reloadDocument||v[2])return qi(e,t),v;h=!0,f=[0,[ea,new Error("Too many redirects")]]}const b=f?f[2]??await p(f):d;if(b>=0){const v=f?.[1],S=v?.[0],w=l[b],_=v?.[1],A=()=>{v&&(w._notFound=void 0,S===ea?w.status="error":(_.routeId=w.routeId,w.routeId===e.routeTree.id?(w.status="success",w._notFound=!0):w.status="notFound"),w.error=_,w.isFetching=!1)};A(),v||s?.();const E=Jr(e,w);try{await aa(v?Promise.resolve().then(()=>Wo(E,S===ea?"errorComponent":"notFoundComponent")):Promise.all([Wo(E),Wo(E,"notFoundComponent")]),r.signal)}catch(C){if(C===r.signal&&r.signal.aborted)return qi(e,t),ni}v?h&&(r.abort(),await Promise.all([...n.map(C=>C[1]),...n.map(C=>C[2]),...(t[2]??[]).map(C=>C[1])]),qi(e,t),Un(e,l),A()):w.status="success"}return t}async function r1(e,t,n,r=0,a=t[1].length){const s=t[1];for(let l=r;l<a;l++){const f=s[l],h=Jr(e,f).options;if(h.head||h.scripts)try{const d={ssr:e.options.ssr,matches:s,match:f,params:f.params,loaderData:f.loaderData},[p,y]=await aa(Promise.all([h.head?.(d),h.scripts?.(d)]),n);f.meta=p?.meta,f.links=p?.links,f.headScripts=p?.scripts,f.styles=p?.styles,f.scripts=y}catch(d){if(d===n&&n.aborted)break;console.error(d)}if(f.status!=="success"||f._notFound)break}return t}async function G4(e,t,n,r){const a=[t,n],s=r[0].signal;let l;try{const f=e.stores.matches.get();let h=n.findIndex(A=>A._notFound);if(e.options.notFoundMode!=="root"&&h>=0){const A=await Ig(e,n,void 0,s,h);n[h]._notFound=void 0,n[A]._notFound=!0,h=A}let d=h<0?n.length:h+1,p=0;for(;p<d&&p!==h;){const A=n[p],E=r[2][p],C=f[p];if(E?.id!==A.id||E.status!=="success"||A.preload||C?.id!==A.id||C.status!=="success"||(p++,E._notFound||C._notFound))break}const y=[],b=r[6]??0;let v=b?Promise.resolve(n[b-1]):void 0;const S=()=>{for(let A=b;A<d&&!s.aborted;A++)v=UA(e,a,A,y,v,r,p)},w=await VA(e,a,r,d,S,p);if(w){if(r[4]=!0,d=w[0],w[1][0]===Ch){const A=await Ig(e,n,w,s);w[2]=A,d=Math.min(d,A+1)}else w[1][0]>=Wn&&(d=0);S()}if(!s.aborted&&!r[3]){const A=[];for(const[E,C]of e._flights??[])C[2]||(e._flights.delete(E),A.push(C[1]));for(const E of A)E.abort()}const _=Y4(e,a,y,r[0],t5(y,w,a[2]),r[7]);a[2]?.length&&(a[3]=t5(a[2],void 0,void 0,_.then(A=>nu(A)?0:Qy(n).length,()=>0))),l=await _}catch(f){if(qi(e,a),f===s&&s.aborted)return ni;throw f}return nu(l)?l:r1(e,l,s,r[6]===n.length?r[6]:0)}function Hg(e,t){if(e._tx!==t)return;const n=t[3],r=e.stores.matches.get();let a=e._pending;
11for(let s=0;s<n.length;s++){const l=n[s],f=l.status==="success"&&!l._notFound,h=r[s]?.id===l.id&&r[s]?.status==="pending";if(f&&!h)continue;const d=Jr(e,l),p=f||l.invalid?0:d.options.pendingMs??e.options.defaultPendingMs,y=d.options.pendingComponent??e.options.defaultPendingComponent;if(!y||typeof p!="number"||p===1/0){a&&(a[0]=t,a[2]=0,a[4]=!0);return}const b=d.options.pendingMinMs??e.options.defaultPendingMinMs??0;let v=!1;if(a?.[1]===l.id?(v=a[0]!==t,a[0]=t):(clearTimeout(a?.[3]),e._pending=a=void 0),a||(e._pending=a=[t,l.id,h?Date.now()+b:t[4]+p,void 0,h||void 0,y]),a[4]&&!v&&a[5]===y)return;if(a[5]=y,!a[4]){clearTimeout(a[3]);const _=a[2]-Date.now();if(_>0){a[3]=setTimeout(()=>Hg(e,t),_);return}a[2]=0}const S=n.map(_=>({..._,_flight:void 0}));S[s].status="pending";const w=a[4]=e.startTransition(()=>e.stores.setMatches(S),S).then(_=>(_&&e._pending===a&&a[4]===w&&!a[2]&&(a[2]=Date.now()+b),_));return}}function xl(e,t){const n=e._pending;(e._tx===t||!e._tx?.[3].some(r=>r.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function n5(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const r=n[2]-Date.now();if(!n[4]||r<=0||!Qy(t[3]).some(s=>s.id===n[1]))return;let a;try{await aa(new Promise(s=>{a=setTimeout(s,r)}),t[0].signal)}catch{}clearTimeout(a)}function q4(e,t){e._committed=t,e.stores.setMatches(t)}function $A(e,t,n,r){const a=e._committed,s=e._lifecycleEnd,l=e._cache;for(const p of n)p.preload=!1,r&&(p._assetEnd=void 0);const f=Qy(n).length,h=new Map;{const p=Date.now(),y=new Set;for(let b=0;b<n.length;b++){const v=n[b];(b<f||v.status==="success")&&y.add(v.id)}for(const b of[...a,...l.values()]){if(b.status!=="success"||y.has(b.id))continue;const v=Jr(e,b);!v.options.loader||p-b.updatedAt>=(b.preload?v.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:v.options.gcTime??e.options.defaultGcTime??3e5)||h.set(b.id,l.get(b.id)===b?b:{...b,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=h;const d=e._lifecycleEnd=V4(n);q4(e,n),Un(e,[...l.values(),...a].filter(p=>p._flight&&h.get(p.id)!==p),n),LA(e,a,n,s,d,t)}async function $f(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function X4(e,t,n){const r=n[1].options,a=n[2];if(!a)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(a.maskedLocation??a).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});a._redirects=t[1]+1,e._pendingLocation=a;const s=e.commitLocation({...a,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===a&&(e._pendingLocation=void 0)}),s}async function ZA(e,t,n,r,a){const s=n.map(h=>({...h}));t1(s);for(const h of r)Xo(e,s[h[0]]),s[h[0]]=h[3];const l=[t[2],s];let f;try{f=await Y4(e,l,r,t[0],a)}catch(h){throw Un(e,s),h}if(nu(f)){Un(e,s),f[0]===Wn&&e._tx===t&&e._committed===n&&await X4(e,t,f);return}if(await r1(e,f,t[0].signal),e._tx!==t||e._committed!==n){Un(e,s);return}for(const h of s){const d=e._cache.get(h.id);d?._flight&&d._flight===h._flight&&(e._cache.delete(h.id),Xo(e,d))}q4(e,s),Un(e,n,s)}async function YA(e,t,n,r,a,s){const l=await G4(e,t[2],t[3],[t[0],t[1],e._committed,void 0,a,n,s,r]);if(nu(l)){const y=l[0]===Wn&&e._tx===t;if((!y||l[1].options.reloadDocument)&&xl(e,t),Un(e,t[3]),t[3]=[],!y)return;if(e._tx!==t){xl(e,t);return}await X4(e,t,l);return}const f=l[1];if(e._tx===t&&await n5(e,t),e._tx!==t){xl(e,t),Un(e,f),qi(e,l);return}const h=t[2],d=Eh(h,e.stores.resolvedLocation.get()),p=l[2];await e.startViewTransition(async()=>{if(e._tx===t&&await n5(e,t),e._tx!==t){xl(e,t),Un(e,f),qi(e,l);return}const y=()=>{xl(e,t),$A(e,t,f,s),e._tx===t&&(e.emit({type:"onLoad",...d}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...d}))},b=await e.startTransition(y,f);if(e._tx!==t){qi(e,l);return}p?.length&&ZA(e,t,f,p,l[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(h),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...d}),b&&e._tx===t&&e.emit({type:"onRendered",...d})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function GA(e,t){const n=e._tx,r=e.stores.resolvedLocation.get(),a=r??e.stores.location.get(),s=e.latestLocation,l=e._pendingLocation,f=l?.href===s.href?l._redirects??0:0,h=e._handoff,d=h?.[0](),p=new AbortController,y=e._preflight;if(e._preflight=p,d||h?.[1](),y?.abort(),!p.signal.aborted){const R=E
11h(s,r);e.emit({type:"onBeforeNavigate",...R}),p.signal.aborted||e.emit({type:"onBeforeLoad",...R})}if(p.signal.aborted){await $f(e,n);return}const b=a.href===s.href;let v=p;const S=e.matchRoutes(s,{_controller:p});t1(S);const w=d?h[1](S):void 0;if(w?v=d:d?.abort(),p.signal.aborted){Un(e,S),await $f(e,n);return}e._preflight=void 0;let _;const A=()=>YA(e,C,b,()=>Hg(e,C),t?.sync,w),E=t?.sync?new Promise(R=>_=R):Promise.resolve().then(A),C=[v,f,s,S,Date.now(),E.then(()=>$f(e,C))];if(e._tx=C,n){for(const R of e.stores.matches.get()){if(e._tx!==C)break;R.isFetching&&ou(e,R,!1)}n[0].abort(),Un(e,n[3],C[3],!0)}if(e._tx!==C){Un(e,C[3]),C[3]=[],_?.(),await $f(e,C);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(s)}),(w||!e._committed.length&&S[0]?.status!=="success"&&!S.some(R=>R._notFound))&&Hg(e,C),_?.(A()),await C[5]}async function qA(e,t){let n=e.buildLocation(t);for(let r=0;;r++){const a=e._committed,s=new AbortController;let l,f,h;try{try{l=e.matchRoutes(n,{_controller:s}),t1(l),f=(e._preloads??=new Map).set(s,l),h=await G4(e,n,l,[s,r,a,!0])}finally{f&&(f=f.delete(s),Un(e,l)),s.abort()}if(!nu(h))return h[1];if(!f||h.length<3)return;n=h[2]}catch(d){es(d)||console.error(d);return}}}async function XA(e){const t=window.$_TSR,n=e.options.serializationAdapters;n?.length&&(t.t=new Map(n.map(F=>[F.key,F.fromSerializable])),t.buffer.forEach(F=>F())),t.initialized=!0;const r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector('meta[property="csp-nonce"]')?.content};const a=r.matches,s=new AbortController,l=e._preflight;e._preflight=s,l?.abort();const f=()=>e._preflight===s;let h,d,p,y;try{if(await aa(e.options.hydrate?.(r.dehydratedData),s.signal),!f())return;const F=e.history.location;p=F.href,y=F.state,e.updateLatestLocation(),h=e.latestLocation,e.stores.location.set(h),d=e.matchRoutes(h,{_controller:s})}catch(F){if(f()&&(e._preflight=void 0),s.abort(F),F!==s.signal)throw F}if(!f())return;const b=[];let v,S=0;const w=F=>{S=Math.min(S,F+1);const Y=b.splice(F);for(const J of Y)Jr(e,J).options.loader&&(J.status==="success"||!J.invalid&&"loaderData"in J)&&Z4(e,{...J,status:"success",error:void 0,preload:!0},e._cache.get(J.id));Un(e,Y)},_=a.length>d.length?d.findIndex(F=>F._notFound)+1:a.length;let A=!1;for(let F=0;F<_;F++){const Y=d[F],J=a[F];if(typeof J.i!="string"||AA(J.i)!==Y.id){v??=F;break}S=F+1;const fe=Jr(e,Y);if(("l"in J||J.s==="success"&&J.e===void 0&&fe.options.loader)&&(Y.loaderData=J.l),Y.status=J.s,Y.ssr=J.ssr,fe.options.ssr=Y.ssr,Y.updatedAt=J.u,Y.error=J.e,Y._notFound||=J.g,Y.status==="error"||Y.status==="notFound"||Y._notFound){A=!0,b.push(Y),(Y.ssr===!1||Y.ssr==="data-only")&&(v??=F);break}if(Y.status==="pending"){v??=F;break}b.push(Y),Y.ssr==="data-only"&&(v??=F)}!A&&b.length===_&&_<d.length&&(v=_);const E=b.map(async F=>{try{const Y=Jr(e,F);return await(F._notFound?Promise.all([Wo(Y),Wo(Y,"notFoundComponent")]):Wo(Y,F.status==="error"?"errorComponent":F.status==="notFound"?"notFoundComponent":void 0)),!0}catch{return!1}});let C=0;try{for(;C<E.length&&await aa(E[C],s.signal);)C++}catch{return}if(!f())return;C<b.length&&w(C);const R=Math.max(v===b.length?b.length+1:b.length,C<E.length?C:S);for(let F=0;F<R;F++){const Y=d[F],J=Jr(e,Y),fe=d[F-1]?.context??e.options.context??{};let se;if(J.options.context){try{se=Y._ctx=J.options.context({deps:Y.loaderDeps,params:Y.params,context:fe,location:h,navigate:B=>e.navigate({...B,_fromLocation:h}),buildLocation:e.buildLocation,cause:Y.cause,abortController:s,preload:!1,matches:d,routeId:J.id})||{}}catch{if(!f())return;if(Y.status!=="error"&&Y.status!=="notFound"&&!Y._notFound){v=Math.min(v??F,F),w(F);break}}if(!f())return}Y.context={...fe,...se,...b[F]&&a[F].b}}if(await r1(e,[h,d],s.signal,0,S),!f())return;const z=v!==void 0||b.length<_,P=A&&b.length===_?d:b;let M=z?d:P,k;if(z&&v!==void 0){const F=M[v];k=F.ssr==="data-only"&&S>v+1?S:void 0,M=M.slice(),M[v]={...F,status:"pending",ssr:F.ssr==="data-only"?"data-only":!1,_assetEnd:k}}const D=()=>{const F=e.history.location;return z&&!e._tx&&F.href===p&&F.state===y&&e._committed===P&&P.length&&!s.signal.aborted?s:void 0},N=[D,F=>{if(e._handoff!==N)return;e._handoff=void 0;const Y=P.length;if(!F||!D()||P.some((se,B)=>se.id!==F[B]?.id)){s.abort();return}let J=k;if(J!==void 0){for(let se=Y;se<J;se++)if(d[se]?.id!==F[se]?.id){J=se>v+1?se:void 0;break}}const fe=P.map(se=>({...se}));J!==void 0&&(fe[v]._assetEnd=J),Un(e,F.splice(0,Y,...fe));for(let se=Y;se<F.length;se++){const B=F[se],G=d[se];G?.id===B.id&&G._ctx&&(B._ctx=G._ctx),B.abortController=s}return Y}];e._committed=P,e._lifecycleEnd=V4(P),e._handoff=N,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(M),e.stores.status.set("idle"),z||e.stores.resolvedLocation.set(e.stores.location.get())})}const ho=Symbol.for("TSR_DEFERRED_PROMISE");function KA(e,t){const n=e;return n[ho]||(n[ho]={status:"pending"},n.then(r=>{n[ho].status="success",n[ho].data=r}).catch(r=>{n[ho].status="error",n[ho].error={data:NA(r),__isServerError:!0}})),n}const JA="Error preloading route! âï¸";function K4(e,t){if(e)return typeof e=="string"?e:e[t]}function QA(e){return e?.scriptFormat??"module"}function WA(e,t,n){const r=e7(t),a=K4(n,"script")??r.crossOrigin;return{...QA(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:r.href,...a?{crossOrigin:a}:{}}}function e7(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function Zf(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const r of t){const a=JSON.stringify(r);n.has(a)||(n.add(a),e.push(r))}}function t7(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var J4=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=ac:this.parentRoute||tu();let a=r?ac:n?.path;
11a&&a!=="/"&&(a=D4(a));const s=n?.id||a;let l=r?ac:Ad([this.parentRoute.id==="__root__"?"":this.parentRoute.id,s]);a==="__root__"&&(a="/"),l!=="__root__"&&(l=Ad(["/",l]));const f=l==="__root__"?"/":Ad([this.parentRoute.fullPath,a]);this._path=a,this._id=l,this._fullPath=f,this._to=qo(f)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>Xy({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},n7=class{constructor({id:e}){this.notFound=t=>kh({routeId:this.id,...t}),this.redirect=t=>Xy({from:this.id,...t}),this.id=e}},r7=class extends J4{constructor(e){super(e)}};const ia=Symbol.asyncIterator,Q4=Symbol.hasInstance,ic=Symbol.isConcatSpreadable,sa=Symbol.iterator,W4=Symbol.match,e6=Symbol.matchAll,t6=Symbol.replace,n6=Symbol.search,r6=Symbol.species,o6=Symbol.split,a6=Symbol.toPrimitive,sc=Symbol.toStringTag,i6=Symbol.unscopables,s6={[ia]:0,[Q4]:1,[ic]:2,[sa]:3,[W4]:4,[e6]:5,[t6]:6,[n6]:7,[r6]:8,[o6]:9,[a6]:10,[sc]:11,[i6]:12},o7={0:ia,1:Q4,2:ic,3:sa,4:W4,5:e6,6:t6,7:n6,8:r6,9:o6,10:a6,11:sc,12:i6},a7={2:!0,3:!1,1:void 0,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:NaN},i7={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},s7={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function dt(e,t,n,r,a,s,l,f,h,d,p,y){return{t:e,i:t,s:n,c:r,m:a,p:s,e:l,a:f,f:h,b:d,o:p,l:y}}function ci(e){return dt(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}const c6=ci(2),l6=ci(3),c7=ci(1),l7=ci(0),u7=ci(4),f7=ci(5),d7=ci(6),h7=ci(7);function m7(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case` 12`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return}}function li(e){let t="",n=0,r;for(let a=0,s=e.length;a<s;a++)r=m7(e[a]),r&&(t+=e.slice(n,a)+r,n=a+1);return n===0?t=e:t+=e.slice(n),t}function p7(e){switch(e){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return` 13`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return e}}function ui(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,p7)}const g7={parsing:1,serialization:2,deserialization:3};function y7(e){return`Seroval Error (step: ${g7[e]})`}const b7=(e,t)=>y7(e);var u6=class extends Error{constructor(e,t){super(b7(e)),this.cause=t}},r5=class extends u6{constructor(e){super("parsing",e)}},v7=class extends u6{constructor(e){super("deserialization",e)}};function da(e){return`Seroval Error (specific: ${e})`}var is=class extends Error{constructor(e){super(da(1)),this.value=e}},o1=class extends Error{constructor(e){super(da(2))}},S7=class extends Error{constructor(e){super(da(3))}},Ah=class extends Error{constructor(e){super(da(4))}},w7=class extends Error{constructor(e){super(da(5)),this.value=e}},x7=class extends Error{constructor(e){super(da(6))}},_7=class extends Error{constructor(e){super(da(7))}},$n=class extends Error{constructor(e){super(da(8))}},f6=class extends Error{constructor(e){super(da(9))}};const Yf="__SEROVAL_REFS__",d6=new Map,tc=new Map;function h6(e){return d6.has(e)}function T7(e){return tc.has(e)}function k7(e){if(h6(e))return d6.get(e);throw new w7(e)}function E7(e){if(T7(e))return tc.get(e);throw new x7(e)}typeof globalThis<"u"?Object.defineProperty(globalThis,Yf,{value:tc,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Yf,{value:tc,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Yf,{value:tc,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Yf,{value:tc,configurable:!0,writable:!1,enumerable:!1});function a1(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function C7(e){const t=i7[a1(e)];return e.name!==t?{name:e.name}:e.constructor.name!==t?{name:e.constructor.name}:{}}function m6(e,t){let n=C7(e);const r=Object.getOwnPropertyNames(e);for(let a=0,s=r.length,l;a<s;a++)l=r[a],l!=="name"&&l!=="message"&&(l==="stack"?t&4&&(n=n||{},n[l]=e[l]):(n=n||{},n[l]=e[l]));return n}function p6(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:Object.isExtensible(e)?0:1}
13function A7(e){switch(e){case Number.POSITIVE_INFINITY:return f7;case Number.NEGATIVE_INFINITY:return d7}return e!==e?h7:Object.is(e,-0)?u7:dt(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function g6(e){return dt(1,void 0,li(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function R7(e){return dt(3,void 0,""+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function M7(e){return dt(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function O7(e,t){const n=t.valueOf();return dt(5,e,n!==n?"":t.toISOString(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ua(e,t,n){return dt(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function P7(e,t){return dt(6,e,void 0,li(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function z7(e,t){return dt(17,e,s6[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function D7(e,t){return dt(18,e,li(k7(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function N7(e,t,n){return dt(25,e,n,li(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}
13function L7(e,t,n){return dt(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,p6(t),void 0)}function j7(e,t){return dt(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}const i1=1e6;function B7(e,t,n){if(t.length>i1)throw new is(t);return dt(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function F7(e,t,n){if(t.length>i1)throw new is(t);return dt(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function I7(e,t,n){if(t.byteLength>i1)throw new is(t);return dt(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function H7(e,t,n){return dt(13,e,a1(t),void 0,li(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function V7(e,t,n){return dt(14,e,a1(t),void 0,li(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function U7(e,t){return dt(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function $7(e,t){return dt(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Z7(e,t){return dt(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Y7(e,t,n){return dt(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function G7(e,t){return dt(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function q7(e,t){return dt(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function X7(e,t){return dt(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function K7(e,t,n,r){return dt(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var J7=class{constructor(e,t){this.value=e,this.replacement=t}};const s1=()=>{const e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},Q7=()=>{const e=[],t=[];let n=!0,r=!1,a=0;const s={flush(l,f,h){for(h=0;h<a;h++)t[h]&&t[h][f](l)},up(l,f,h,d){for(f=0,h=e.length;f<h;f++)d=e[f],!n&&f===h-1?l[r?"return":"throw"](d):l.next(d)},on(l,f){return n&&(f=a++,t[f]=l),s.up(l),()=>{n&&(t[f]=t[a],t[a--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(l){return s.on(l)},next(l){n&&(e.push(l),s.flush(l,"next"))},throw(l){n&&(e.push(l),s.flush(l,"throw"),n=!1,r=!1,t.length=0)},return(l){n&&(e.push(l),s.flush(l,"return"),n=!1,r=!0,t.length=0)}}},W7=e=>t=>()=>{let n=0;const r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};const a=n++,s=t.v[a];if(a===t.t)throw s;return{done:a===t.d,value:s}}};return r},eR=(e,t)=>n=>()=>{let r=0,a=-1,s=!1;const l=[],f=[],h={finalize(p=0,y=f.length){for(;p<y;p++)f[p].s({done:!0,value:void 0})}};n.on({next(p){const y=f.shift();y&&y.s({done:!1,value:p}),l.push(p)},throw(p){const y=f.shift();y&&y.f(p),h.finalize(),a=l.length,s=!0,l.push(p)},return(p){const y=f.shift();y&&y.s({done:!0,value:p}),h.finalize(),a=l.length,l.push(p)}});const d={[e](){return d},next(){if(a===-1){const b=r++;if(b>=l.length){const v=t();return f.push(v),v.p}return{done:!1,value:l[b]}}if(r>a)return{done:!0,value:void 0};const p=r++,y=l[p];if(p!==a)return{done:!1,value:y};if(s)throw y;return{done:!0,value:y}}};return d},tR=e=>{const t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r.buffer};function y6(e){return"__SEROVAL_SEQUENCE__"in e}function b6(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function nR(e){const t=[];let n=-1,r=-1;const a=e[sa]();for(;;)try{const s=a.next();if(t.push(s.value),s.done){r=t.length-1;break}}catch(s){n=t.length,t.push(s)}return b6(t,n,r)}const rR=W7(sa);function oR(e){return rR(e)}const aR={},iR={},sR={0:{},1:{},2:{},3:{},4:{},5:{}};function v6(e){return"__SEROVAL_STREAM__"in e}function ss(){return Q7()}function cR(e){const t=ss(),n=e[ia]();async function r(){try{const a=await n.next();a.done?t.return(a.value):(t.next(a.value),await r())}catch(a){t.throw(a)}}return r().catch(()=>{}),t}const lR=eR(ia,s1);function uR(e){return lR(e)}async function fR(e){try{return[1,await e]}catch(t){return[0,t]}}function dR(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function zd(e,t){e.marked.add(t)}function hR(e,t){const n=e.refs.size;return e.refs.set(t,n),n}function Rh(e,t){const n=e.refs.get(t);return n!=null?(zd(e,n),{type:1,value:M7(n)}):{type:0,value:hR(e,t)}}function c1(e,t){const n=Rh(e,t);return n.type===1?n:h6(t)?{type:2,value:D7(n.value,t)}:n}function Hi(e,t){const n=c1(e,t);if(n.type!==0)return n.value;if(t in s6)return z7(n.value,t);throw new is(t)}function Mh(e,t){const n=Rh(e,sR[t]);return n.type===1?n.value:dt(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function mR(e){const t=Rh(e,aR);return t.type===1?t.value:dt(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Hi(e,sa),void 0,void 0,void 0)}function pR(e){const t=Rh(e,iR);return t.type===1?t.value:dt(29,t.value,void 0,void 0,void 0,void 0,void 0,[Mh(e,1),Hi(e,ia)],void 0,void 0,void 0,void 0)}function gR(e,t,n,r){return dt(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,p6(t),void 0)}function yR(e,t,n,r){return dt(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,Mh(e,0),void 0,void 0,void 0)}
13function bR(e,t,n){const r=new Uint8Array(n);let a="";for(let s=0,l=r.length;s<l;s++)a+=String.fromCharCode(r[s]);return dt(19,t,li(btoa(a)),void 0,void 0,void 0,void 0,void 0,Mh(e,5),void 0,void 0,void 0)}function vR(e,t){return{base:dR(e,t),child:void 0}}var SR=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Sn(this._p,this.depth,e)}};async function wR(e,t,n){const r=[];for(let a=0,s=n.length;a<s;a++)a in n?r[a]=await Sn(e,t,n[a]):r[a]=0;return r}async function xR(e,t,n,r){return L7(n,r,await wR(e,t,r))}async function l1(e,t,n){const r=Object.entries(n),a=[],s=[];for(let l=0,f=r.length;l<f;l++)a.push(li(r[l][0])),s.push(await Sn(e,t,r[l][1]));return sa in n&&(a.push(Hi(e.base,sa)),s.push($7(mR(e.base),await Sn(e,t,nR(n))))),ia in n&&(a.push(Hi(e.base,ia)),s.push(Z7(pR(e.base),await Sn(e,t,cR(n))))),sc in n&&(a.push(Hi(e.base,sc)),s.push(g6(n[sc]))),ic in n&&(a.push(Hi(e.base,ic)),s.push(n[ic]?c6:l6)),{k:a,v:s}}async function Tp(e,t,n,r,a){return gR(n,r,a,await l1(e,t,r))}async function _R(e,t,n,r){return j7(n,await Sn(e,t,r.valueOf()))}async function TR(e,t,n,r){return B7(n,r,await Sn(e,t,r.buffer))}async function kR(e,t,n,r){return F7(n,r,await Sn(e,t,r.buffer))}async function ER(e,t,n,r){return I7(n,r,await Sn(e,t,r.buffer))}async function o5(e,t,n,r){const a=m6(r,e.base.features);return H7(n,r,a?await l1(e,t,a):void 0)}async function CR(e,t,n,r){const a=m6(r,e.base.features);return V7(n,r,a?await l1(e,t,a):void 0)}async function AR(e,t,n,r){const a=[],s=[];for(const[l,f]of r.entries())a.push(await Sn(e,t,l)),s.push(await Sn(e,t,f));return yR(e.base,n,a,s)}async function RR(e,t,n,r){const a=[];for(const s of r.keys())a.push(await Sn(e,t,s));return U7(n,a)}async function S6(e,t,n,r){const a=e.base.plugins;if(a)for(let s=0,l=a.length;s<l;s++){const f=a[s];if(f.parse.async&&f.test(r))return N7(n,f.tag,await f.parse.async(r,new SR(e,t),{id:n}))}}async function MR(e,t,n,r){const[a,s]=await fR(r);return dt(12,n,a,void 0,void 0,void 0,void 0,void 0,await Sn(e,t,s),void 0,void 0,void 0)}function OR(e,t,n,r,a){const s=[],l=n.on({next:f=>{zd(this.base,t),Sn(this,e,f).then(h=>{s.push(G7(t,h))},h=>{a(h),l()})},throw:f=>{zd(this.base,t),Sn(this,e,f).then(h=>{s.push(q7(t,h)),r(s),l()},h=>{a(h),l()})},return:f=>{zd(this.base,t),Sn(this,e,f).then(h=>{s.push(X7(t,h)),r(s),l()},h=>{a(h),l()})}})}async function PR(e,t,n,r){return Y7(n,Mh(e.base,4),await new Promise(OR.bind(e,t,n,r)))}async function zR(e,t,n,r){const a=[];for(let s=0,l=r.v.length;s<l;s++)a[s]=await Sn(e,t,r.v[s]);return K7(n,a,r.t,r.d)}async function DR(e,t,n,r){if(Array.isArray(r))return xR(e,t,n,r);if(v6(r))return PR(e,t,n,r);if(y6(r))return zR(e,t,n,r);let a=r.constructor;if(a!==void 0&&typeof a!="function"){const f=Object.getPrototypeOf(r);a=f===null?void 0:f.constructor}if(a===J7)return Sn(e,t,r.replacement);const s=await S6(e,t,n,r);if(s)return s;switch(a){case Object:return Tp(e,t,n,r,!1);case void 0:return Tp(e,t,n,r,!0);case Date:return O7(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return o5(e,t,n,r);case Number:case Boolean:case String:case BigInt:return _R(e,t,n,r);case ArrayBuffer:return bR(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return TR(e,t,n,r);case DataView:return ER(e,t,n,r);case Map:return AR(e,t,n,r);case Set:return RR(e,t,n,r)}if(a===Promise||r instanceof Promise)return MR(e,t,n,r);const l=e.base.features;if(l&32&&a===RegExp)return P7(n,r);if(l&16)switch(a){case BigInt64Array:case BigUint64Array:return kR(e,t,n,r)}if(l&1&&typeof AggregateError<"u"&&(a===AggregateError||r instanceof AggregateError))return CR(e,t,n,r);if(l&64&&typeof Temporal<"u")switch(a){case Temporal.Instant:return Ua(n,0,r);case Temporal.Duration:return Ua(n,1,r);case Temporal.PlainDate:return Ua(n,2,r);case Temporal.PlainDateTime:return Ua(n,3,r);case Temporal.PlainMonthDay:return Ua(n,4,r);case Temporal.PlainTime:return Ua(n,5,r);case Temporal.PlainYearMonth:return Ua(n,6,r);case Temporal.ZonedDateTime:return Ua(n,7,r)}if(r instanceof Error)return o5(e,t,n,r);if(sa in r||ia in r)return Tp(e,t,n,r,!!a);throw new is(r)}async function NR(e,t,n){const r=c1(e.base,n);if(r.type!==0)return r.value;const a=await S6(e,t,r.value,n);if(a)return a;throw new is(n)}async function Sn(e,t,n){if(t>=e.base.depthLimit)throw new f6(e.base.depthLimit);switch(typeof n){case"boolean":return n?c6:l6;case"undefined":return c7;case"string":return g6(n);case"number":return A7(n);case"bigint":return R7(n);case"object":if(n){const r=c1(e.base,n);return r.type===0?await DR(e,t+1,r.value,n):r.value}return l7;case"symbol":return Hi(e.base,n);case"function":return NR(e,t,n);default:throw new is(n)}}async function LR(e,t){try{return await Sn(e,0,t)}catch(n){throw n instanceof r5?n:new r5(n)}}function w6(e,t){for(let n=0,r=t.length;n<r;n++){const a=t[n];e.has(a)||(e.add(a),a.extends&&w6(e,a.extends))}}function u1(e){if(e){const t=new Set;return w6(t,e),[...t]}}function jR(e){switch(e){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new _7(e)}}function BR(e){switch(e){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function FR(e){switch(e){case ia:case ic:case sc:case sa:return!0;default:return!1}}const f1=1e6,IR=1e4,HR=2e4;function x6(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}const VR=1e3;function _6(e,t){var n;const r=t.refs||new Map;return"types"in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:(n=t.features)!==null&&n!==void 0?n:127^(t.disabledFeatures||0),depthLimit:t.depthLimit||VR}}function UR(e){return{mode:1,base:_6(1,e),child:void 0,state:{marked:new Set(e.markedRefs)}}}
13function $R(e){return{mode:2,base:_6(2,e),child:void 0}}var ZR=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Nt(this._p,this.depth,e)}};function T6(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new $n({t:4,i:t});if(e.refs.has(t))throw new Error("Conflicted ref id: "+t)}function k6(e){return!!e&&typeof e=="object"&&"then"in e&&typeof e.then=="function"}function YR(e,t,n){return T6(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function GR(e,t,n){return T6(e.base,t),e.base.refs.set(t,n),n}function hn(e,t,n){return e.mode===1?YR(e,t,n):GR(e,t,n)}function Vg(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new $n(e)}function qR(e,t){return hn(e,t.i,E7(ui(t.s)))}function XR(e,t,n){const r=n.a,a=r.length,s=hn(e,n.i,new Array(a));for(let l=0,f;l<a;l++)f=r[l],f&&(s[l]=Nt(e,t,f));return x6(s,n.o),s}function a5(e,t,n){BR(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function KR(e,t,n,r,a){if(typeof r=="string")a5(n,ui(r),Nt(e,t,a));else{const s=Nt(e,t,r);switch(typeof s){case"string":a5(n,s,Nt(e,t,a));break;case"symbol":FR(s)&&(n[s]=Nt(e,t,a));break;default:throw new $n(r)}}}function E6(e,t,n){e.base.refs.types.set(t,n)}function Oh(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new $n(t)}function C6(e,t,n,r){const a=n.k;if(a.length>0)for(let s=0,l=n.v,f=a.length;s<f;s++)KR(e,t,r,a[s],l[s]);return r}function JR(e,t,n){const r=hn(e,n.i,n.t===10?{}:Object.create(null));return C6(e,t,n.p,r),x6(r,n.o),r}function QR(e,t){return hn(e,t.i,new Date(t.s))}function WR(e,t){if(!(e.base.features&64))throw new o1(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new $n(t)}return hn(e,t.i,n)}function eM(e,t){if(e.base.features&32){const n=ui(t.c);if(n.length>HR)throw new $n(t);return hn(e,t.i,new RegExp(n,t.m))}throw new o1(t)}function tM(e,t,n){const r=hn(e,n.i,new Set);for(let a=0,s=n.a,l=s.length;a<l;a++)r.add(Nt(e,t,s[a]));return r}function nM(e,t,n){const r=hn(e,n.i,new Map);for(let a=0,s=n.e.k,l=n.e.v,f=s.length;a<f;a++)r.set(Nt(e,t,s[a]),Nt(e,t,l[a]));return r}function rM(e,t){if(t.s.length>f1)throw new $n(t);return hn(e,t.i,tR(ui(t.s)))}
13function oM(e,t,n){var r;const a=jR(n.c),s=Nt(e,t,n.f);if(!(s instanceof ArrayBuffer))throw new $n(n);const l=(r=n.b)!==null&&r!==void 0?r:0;if(l<0||l>s.byteLength||n.l>f1)throw new $n(n);return hn(e,n.i,new a(s,l,n.l))}function aM(e,t,n){var r;const a=Nt(e,t,n.f);if(!(a instanceof ArrayBuffer))throw new $n(n);const s=(r=n.b)!==null&&r!==void 0?r:0;if(s<0||s>a.byteLength||n.l>f1)throw new $n(n);return hn(e,n.i,new DataView(a,s,n.l))}function A6(e,t,n,r){if(n.p){const a=C6(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(a))}return r}function iM(e,t,n){return A6(e,t,n,hn(e,n.i,new AggregateError([],ui(n.m))))}function sM(e,t,n){const r=Vg(n,s7,n.s);return A6(e,t,n,hn(e,n.i,new r(ui(n.m))))}function cM(e,t,n){const r=s1(),a=hn(e,n.i,r.p),s=Nt(e,t,n.f);if(k6(s))throw new $n(n.f);return n.s?r.s(s):r.f(s),a}function lM(e,t,n){return hn(e,n.i,Object(Nt(e,t,n.f)))}function uM(e,t,n){const r=e.base.plugins;if(r){const a=ui(n.c);for(let s=0,l=r.length;s<l;s++){const f=r[s];if(f.tag===a)return hn(e,n.i,f.deserialize(n.s,new ZR(e,t),{id:n.i}))}}throw new S7(n.c)}function fM(e,t){const n=hn(e,t.i,hn(e,t.s,s1()).p);return E6(e,t.s,22),n}function dM(e,t,n){const r=e.base.refs.get(n.i);if(r){Oh(e,n,n.i,22);const a=Nt(e,t,n.a[1]);if(k6(a))throw new $n(n.a[1]);n.t===23?r.s(a):r.f(a);return}throw new Ah("Promise")}function hM(e,t,n){Nt(e,t,n.a[0]);const r=Nt(e,t,n.a[1]);if(!r||typeof r!="object"||!y6(r))throw new $n(n.a[1]);return oR(r)}function mM(e,t,n){Nt(e,t,n.a[0]);const r=Nt(e,t,n.a[1]);if(!r||typeof r!="object"||!v6(r))throw new $n(n.a[1]);return uR(r)}function pM(e,t,n){const r=hn(e,n.i,ss());E6(e,n.i,31);const a=n.a,s=a.length;if(s)for(let l=0;l<s;l++)Nt(e,t,a[l]);return r}function gM(e,t,n){const r=e.base.refs.get(n.i);if(r){Oh(e,n,n.i,31),r.next(Nt(e,t,n.f));return}throw new Ah("Stream")}function yM(e,t,n){const r=e.base.refs.get(n.i);if(r){Oh(e,n,n.i,31),r.throw(Nt(e,t,n.f));return}throw new Ah("Stream")}function bM(e,t,n){const r=e.base.refs.get(n.i);if(r){Oh(e,n,n.i,31),r.return(Nt(e,t,n.f));return}throw new Ah("Stream")}function vM(e,t,n){Nt(e,t,n.f)}function SM(e,t,n){Nt(e,t,n.a[1])}function wM(e,t,n){const r=hn(e,n.i,b6([],n.s,n.l));for(let a=0,s=n.a.length;a<s;a++)r.v[a]=Nt(e,t,n.a[a]);return r}function Nt(e,t,n){if(t>e.base.depthLimit)throw new f6(e.base.depthLimit);switch(t+=1,n.t){case 2:return Vg(n,a7,n.s);case 0:return Number(n.s);case 1:return ui(String(n.s));case 3:if(String(n.s).length>IR)throw new $n(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return qR(e,n);case 9:return XR(e,t,n);case 10:case 11:return JR(e,t,n);case 5:return QR(e,n);case 6:return eM(e,n);case 7:return tM(e,t,n);case 8:return nM(e,t,n);case 19:return rM(e,n);case 16:case 15:return oM(e,t,n);case 20:return aM(e,t,n);case 14:return iM(e,t,n);case 13:return sM(e,t,n);case 12:return cM(e,t,n);case 17:return Vg(n,o7,n.s);case 21:return lM(e,t,n);case 25:return uM(e,t,n);case 22:return fM(e,n);case 23:case 24:return dM(e,t,n);case 28:return hM(e,t,n);case 30:return mM(e,t,n);case 31:return pM(e,t,n);case 32:return gM(e,t,n);case 33:return yM(e,t,n);case 34:return bM(e,t,n);case 27:return vM(e,t,n);case 29:return SM(e,t,n);case 35:return wM(e,t,n);case 36:return WR(e,n);default:throw new o1(n)}}function R6(e,t){try{return Nt(e,0,t)}catch(n){throw new v7(n)}}function i5(e,t){return R6($R({plugins:u1(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function xM(e,t={}){const n=vR(1,{plugins:u1(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await LR(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function _M(e,t={}){var n;const r=u1(t.plugins),a=t.disabledFeatures||0,s=(n=e.f)!==null&&n!==void 0?n:127;return R6(UR({plugins:r,markedRefs:e.m,features:s&~a,disabledFeatures:a}),e.t)}function TM(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}}}var kM=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Zd=globalThis.Buffer,M6=!!Zd&&typeof Zd.from=="function";function O6(e){if(e.length===0)return"";if(M6)return Zd.from(e).toString("base64");const t=32768,n=[];for(let r=0;r<e.length;r+=t){const a=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,a))}return btoa(n.join(""))}function P6(e){if(e.length===0)return new Uint8Array(0);if(M6){const r=Zd.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const _l=Object.create(null),Tl=Object.create(null),EM=e=>
13new ReadableStream({start(t){e.on({next(n){try{t.enqueue(P6(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),CM=new TextEncoder,AM=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(CM.encode(n)):t.enqueue(P6(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),RM="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",MM="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function s5(e){const t=ss(),n=e.getReader();return(async()=>{try{for(;;){const{done:r,value:a}=await n.read();if(r){t.return(void 0);break}t.next(O6(a))}}catch(r){t.throw(r)}finally{n.releaseLock()}})(),t}function c5(e){const t=ss(),n=e.getReader(),r=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:a,value:s}=await n.read();if(a){try{const l=r.decode();l.length>0&&t.next(l)}catch{}t.return(void 0);break}try{const l=r.decode(s,{stream:!0});l.length>0&&t.next(l)}catch{t.next({$b64:O6(s)})}}}catch(a){t.throw(a)}finally{n.releaseLock()}})(),t}const OM={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===_l},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return RM},deserialize(e,t,n){return _l}},{tag:"tss/RawStreamFactoryText",test(e){return e===Tl},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return MM},deserialize(e,t,n){return Tl}}],test(e){return e instanceof kM},parse:{sync(e,t,n){const r=e.hint==="text"?Tl:_l;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(ss())}},async async(e,t,n){const r=e.hint==="text"?Tl:_l,a=e.hint==="text"?c5(e.stream):s5(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(a)}},stream(e,t,n){const r=e.hint==="text"?Tl:_l,a=e.hint==="text"?c5(e.stream):s5(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(a)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const r=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?AM(r):EM(r)}};function PM(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,r){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const zM={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}},Xa={},z6=e=>new ReadableStream({start(t){e.on({next(n){try{t.enqueue(n)}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),DM={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Xa},parse:{sync(){return Xa},async async(){return await Promise.resolve(Xa)},stream(){return Xa}},serialize(){return z6.toString()},deserialize(){return Xa}};async function D6(e,t){try{const n=await t.read();n.done?(e.return(n.value),t.releaseLock()):(e.next(n.value),await D6(e,t))}catch(n){e.throw(n)}}function NM(e){e.cancel().catch(()=>{}),e.releaseLock()}function l5(e){const t=ss(),n=e.getReader(),r=NM.bind(null,n);return D6(t,n).catch(r),[t,r]}const LM={tag:"seroval/plugins/web/ReadableStream",extends:[DM],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Xa),stream:t.parse(ss())}},async async(e,t){return{factory:await t.parse(Xa),stream:await t.parse(l5(e)[0])}},stream(e,t){const[n,r]=l5(e);return t.addCleanup(r),{factory:t.parse(Xa),stream:t.parse(n)}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){const n=t.deserialize(e.stream);return z6(n)}},jM=[zM,OM,LM];function N6(){return[...Gy()?.serializationAdapters?.map(TM)??[],...jM]}var u5=new TextDecoder,f5=new Uint8Array(0),d5=16*1024*1024,h5=32*1024*1024,m5=1024,p5=1e5;function BM(e){const t=new Map,n=new Map,r=new Set;let a=!1,s=null,l=0,f;const h=new ReadableStream({start(y){f=y},cancel(){a=!0;
13try{s?.cancel()}catch{}t.forEach(y=>{try{y.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),r.clear()}});function d(y){const b=n.get(y);if(b)return b;if(r.has(y))return new ReadableStream({start(S){S.close()}});if(n.size>=m5)throw new Error(`Too many raw streams in framed response (max ${m5})`);const v=new ReadableStream({start(S){t.set(y,S)},cancel(){r.add(y),t.delete(y),n.delete(y)}});return n.set(y,v),v}function p(y){return d(y),t.get(y)}return(async()=>{const y=e.getReader();s=y;const b=[];let v=0,S=0;function w(){b[v++]=f5,v===b.length?(b.length=0,v=0):v>=32&&(b.splice(0,v),v=0)}function _(){if(S<9)return null;const E=b[v];if(E.length>=9)return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0};const C=new Uint8Array(9);let R=0,z=9;for(let P=v;P<b.length&&z>0;P++){const M=b[P],k=Math.min(M.length,z);C.set(M.subarray(0,k),R),R+=k,z-=k}return{type:C[0],streamId:(C[1]<<24|C[2]<<16|C[3]<<8|C[4])>>>0,length:(C[5]<<24|C[6]<<16|C[7]<<8|C[8])>>>0}}function A(E){if(E===0)return f5;const C=b[v];if(C&&C.length>=E){const M=C.subarray(0,E);return C.length===E?w():b[v]=C.subarray(E),S-=E,M}const R=new Uint8Array(E);let z=0,P=E;for(;P>0&&v<b.length;){const M=b[v],k=Math.min(M.length,P);R.set(M.subarray(0,k),z),z+=k,P-=k,k===M.length?w():b[v]=M.subarray(k)}return S-=E,R}try{for(;;){const{done:E,value:C}=await y.read();if(a||E)break;if(C){if(S+C.length>h5)throw new Error(`Framed response buffer exceeded ${h5} bytes`);for(b.push(C),S+=C.length;;){const R=_();if(!R)break;const{type:z,streamId:P,length:M}=R;if(z!==Ho.JSON&&z!==Ho.CHUNK&&z!==Ho.END&&z!==Ho.ERROR)throw new Error(`Unknown frame type: ${z}`);if(z===Ho.JSON){if(P!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(P===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(M>d5)throw new Error(`Frame payload too large: ${M} bytes (max ${d5})`);const k=9+M;if(S<k)break;if(++l>p5)throw new Error(`Too many frames in framed response (max ${p5})`);A(9);const D=A(M);switch(z){case Ho.JSON:try{f.enqueue(u5.decode(D))}catch{}break;case Ho.CHUNK:{const N=p(P);N&&N.enqueue(D);break}case Ho.END:{const N=p(P);if(r.add(P),N){try{N.close()}catch{}t.delete(P)}break}case Ho.ERROR:{const N=p(P);if(r.add(P),N){const F=u5.decode(D);N.error(new Error(F)),t.delete(P)}break}}}}}if(S!==0)throw new Error("Incomplete frame at end of framed response");try{f.close()}catch{}t.forEach(E=>{try{E.close()}catch{}}),t.clear()}catch(E){try{f.error(E)}catch{}t.forEach(C=>{try{C.error(E)}catch{}}),t.clear()}finally{try{y.releaseLock()}catch{}s=null}})(),{getStream:d,chunks:h}}var au=null;async function Ug(e){e.length>0&&await Promise.allSettled(e)}var FM=Object.prototype.hasOwnProperty;function L6(e){for(const t in e)if(FM.call(e,t))return!0;return!1}async function IM(e,t,n){au||(au=N6());const r=t[0],a=r.fetch??n,s=r.data instanceof FormData?"formData":"payload",l=r.headers?new Headers(r.headers):new Headers;if(l.set("x-tsr-serverFn","true"),s==="payload"&&l.set("accept",`${VC}, application/x-ndjson, application/json`),r.method==="GET"){if(s==="formData")throw new Error("FormData is not supported with GET requests");const h=await j6(r);if(h!==void 0){const d=j4({payload:h});e.includes("?")?e+=`&${d}`:e+=`?${d}`}}let f;return r.method==="POST"&&(f=await HM(r),typeof f=="string"&&l.set("content-type","application/json")),await VM(async()=>a(e,{method:r.method,headers:l,signal:r.signal,body:f}))}async function j6(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&L6(e.context)&&(t=!0,n.context=e.context),t)return B6(n)}async function B6(e){return JSON.stringify(await Promise.resolve(xM(e,{plugins:au})))}async function HM(e){if(e.data instanceof FormData){let n;return e.context&&L6(e.context)&&(n=await B6(e.context)),n!==void 0&&e.data.set(HC,n),e.data}const t=await j6(e);if(t)return t}async function VM(e){let t;try{t=await e()}catch(r){if(r instanceof Response)t=r;else throw console.log(r),r}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||tu(),t.headers.get("x-tss-serialized")){let r;if(n.includes("application/x-tss-framed")){if(ZC(n),!t.body)throw new Error("No response body for framed response");
13const{getStream:a,chunks:s}=BM(t.body),l=[PM(a),...au||[]],f=new Map;r=await UM({jsonStream:s,onMessage:h=>i5(h,{refs:f,plugins:l}),onError(h,d){console.error(h,d)}})}else if(n.includes("application/json")){const a=await t.json(),s=[];r=i5(a,{plugins:au}),await Ug(s)}if(r||tu(),r instanceof Error)throw r;return r}if(n.includes("application/json")){const r=await t.json(),a=F4(r);if(a)throw a;if(es(r))throw r;return r}if(!t.ok)throw new Error(await t.text());return t}async function UM({jsonStream:e,onMessage:t,onError:n}){const r=e.getReader(),{value:a,done:s}=await r.read();if(s||!a)throw new Error("Stream ended before first object");const l=JSON.parse(a);let f=!1;const h=(async()=>{try{for(;;){const{value:y,done:b}=await r.read();if(b)break;if(y)try{const v=[];try{t(JSON.parse(y))}finally{}await Ug(v)}catch(v){n?.(`Invalid JSON: ${y}`,v)}}}catch(y){f||n?.("Stream processing error:",y)}})();let d;const p=[];try{d=t(l)}catch(y){throw f=!0,r.cancel().catch(()=>{}),y}return await Ug(p),Promise.resolve(d).catch(()=>{f=!0,r.cancel().catch(()=>{})}),h.finally(()=>{try{r.releaseLock()}catch{}}),d}function d1(e){const t="/_serverFn/"+e;return Object.assign((...a)=>{const s=Gy()?.serverFns?.fetch;return IM(t,a,s??fetch)},{url:t,serverFnMeta:{id:e},[Lg]:!0})}var $M={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(Lg in e)?!1:!!e[Lg],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>d1(e)};function F6(e){if(Array.isArray(e))return e.flatMap(p=>F6(p));if(typeof e!="string")return[];const t=[];let n=0,r,a,s,l,f;const h=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},d=()=>(a=e.charAt(n),a!=="="&&a!==";"&&a!==",");for(;n<e.length;){for(r=n,f=!1;h();)if(a=e.charAt(n),a===","){for(s=n,n+=1,h(),l=n;n<e.length&&d();)n+=1;n<e.length&&e.charAt(n)==="="?(f=!0,n=l,t.push(e.slice(r,s)),r=n):n=s+1}else n+=1;(!f||n>=e.length)&&t.push(e.slice(r))}return t}function ZM(e){return e instanceof Headers?e:Array.isArray(e)?new Headers(e):typeof e=="object"?new Headers(e):null}function YM(...e){return e.reduce((t,n)=>{const r=ZM(n);if(!r)return t;for(const[a,s]of r.entries())a==="set-cookie"?F6(s).forEach(l=>t.append("set-cookie",l)):t.set(a,s);return t},new Headers)}var Yd=O.use,I6=O.useLayoutEffect;function GM(e,t,n){O.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!="function")return()=>t();const r=new IntersectionObserver(a=>{t(a.pop())},{rootMargin:"100px"});return r.observe(e.current),()=>{r.disconnect(),t()}},[t,n,e])}function qM(e){const t=O.useRef(null);return O.useImperativeHandle(e,()=>t.current,[]),t}function XM({promise:e}){if(Yd)return Yd(e);const t=KA(e);if(t[ho].status==="pending")throw t;if(t[ho].status==="error")throw t[ho].error;return t[ho].data}function KM(e){const t=I.jsx(JM,{...e});return e.fallback?I.jsx(O.Suspense,{fallback:e.fallback,children:t}):t}function JM(e){const t=XM(e);return e.children(t)}var h1=class extends O.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?O.createElement(this.props.errorComponent??QM,{error:e[0],reset:this.reset}):this.props.children}};function QM({error:e}){const[t,n]=O.useState(!1);return I.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[I.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),I.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),I.jsx("div",{style:{height:".25rem"}}),t?I.jsx("div",{children:I.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e?.message?I.jsx("code",{children:e.message}):null})}):null]})}function WM({children:e,fallback:t=null}){return I.jsx(tn.Fragment,{children:m1()?e:t})}function m1(){return tn.useSyncExternalStore(eO,()=>!0,()=>!1)}function eO(){return()=>{}}var H6=O.createContext(null);function On(e){return O.useContext(H6)}var Ph=O.createContext(void 0),tO=O.createContext(void 0);function nO({update:e,notify:t,unwatched:n}){return{link:r,unlink:a,propagate:s,checkDirty:l,shallowPropagate:f};function r(d,p,y){const b=p.depsTail;if(b!==void 0&&b.dep===d)return;const v=b!==void 0?b.nextDep:p.deps;if(v!==void 0&&v.dep===d){v.version=y,p.depsTail=v;return}const S=d.subsTail;if(S!==void 0&&S.version===y&&S.sub===p)return;const w=p.depsTail=d.subsTail={version:y,dep:d,sub:p,prevDep:b,nextDep:v,prevSub:S,nextSub:void 0};v!==void 0&&(v.prevDep=w),b!==void 0?b.nextDep=w:p.deps=w,S!==void 0?S.nextSub=w:d.subs=w}function a(d,p=d.sub){const y=d.dep,b=d.prevDep,v=d.nextDep,S=d.nextSub,w=d.prevSub;return v!==void 0?v.prevDep=b:p.depsTail=b,b!==void 0?b.nextDep=v:p.deps=v,S!==void 0?S.prevSub=w:y.subsTail=w,w!==void 0?w.nextSub=S:(y.subs=S)===void 0&&n(y),v}function s(d){let p=d.nextSub,y;e:do{const b=d.sub;let v=b.flags;if(v&60?v&12?v&4?!(v&48)&&h(d,b)?(b.flags=v|40,v&=1):v=0:b.flags=v&-9|32:v=0:b.flags=v|32,v&2&&t(b),v&1){const S=b.subs;if(S!==void 0){const w=(d=S).nextSub;w!==void 0&&(y={value:p,prev:y},p=w);continue}}if((d=p)!==void 0){p=d.nextSub;continue}for(;y!==void 0;)if(d=y.value,y=y.prev,d!==void 0){p=d.nextSub;continue e}break}while(!0)}function l(d,p){let y,b=0,v=!1;e:do{const S=d.dep,w=S.flags;if(p.flags&16)v=!0;else if((w&17)===17){if(e(S)){const _=S.subs;_.nextSub!==void 0&&f(_),v=!0}}else if((w&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(y={value:d,prev:y}),d=S.deps,p=S,++b;continue}if(!v){const _=d.nextDep;if(_!==void 0){d=_;continue}}for(;b--;){const _=p.subs,A=_.nextSub!==void 0;if(A?(d=y.value,y=y.prev):d=_,v){if(e(p)){A&&f(_),p=d.sub;continue}v=!1}else p.flags&=-33;p=d.sub;const E=d.nextDep;if(E!==void 0){d=E;continue e}}return v}while(!0)}function f(d){do{const p=d.sub,y=p.flags;(y&48)===32&&(p.flags=y|16,(y&6)===2&&t(p))}while((d=d.nextSub)!==void 0)}function h(d,p){let y=p.depsTail;for(;y!==void 0;){if(y===d)return!0;y=y.prevDep}return!1}}function rO(e,t,n){const r=typeof e=="object",a=r?e:void 0;return{next:(r?e.next:e)?.bind(a),error:(r?e.error:t)?.bind(a),complete:(r?e.complete:n)?.bind(a)}}const $g=[];let Dd=0;const{link:g5,unlink:oO,propagate:aO,checkDirty:V6,shallowPropagate:y5}=nO({update(e){return e._update()},notify(e){$g[Zg++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Gd(e))}});let Gf=0,Zg=0,fo,Yg=0;function iO(e){try{++Yg,e()}finally{--Yg||U6()}}function Gd(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=oO(n,e)}function U6(){if(!(Yg>0)){for(;Gf<Zg;){const e=$g[Gf];$g[Gf++]=void 0,e.notify()}Gf=0,Zg=0}}function b5(e,t){const n=typeof e=="function",r=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?0:1,get(){return fo!==void 0&&g5(a,fo,Dd),a._snapshot},subscribe(s){const l=rO(s),f={current:!1}
13,h=sO(()=>{a.get(),f.current?l.next?.(a._snapshot):f.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(s){const l=fo,f=t?.compare??Object.is;if(n)fo=a,++Dd,a.depsTail=void 0;else if(s===void 0)return!1;n&&(a.flags=5);try{const h=a._snapshot,d=typeof s=="function"?s(h):s===void 0&&n?r(h):s;return h===void 0||!f(h,d)?(a._snapshot=d,!0):!1}finally{fo=l,n&&(a.flags&=-5),Gd(a)}}};return n?(a.flags=17,a.get=function(){const s=a.flags;if(s&16||s&32&&V6(a.deps,a)){if(a._update()){const l=a.subs;l!==void 0&&y5(l)}}else s&32&&(a.flags=s&-33);return fo!==void 0&&g5(a,fo,Dd),a._snapshot}):a.set=function(s){if(a._update(s)){const l=a.subs;l!==void 0&&(aO(l),y5(l),U6())}},a}function sO(e){const t=()=>{const r=fo;fo=n,++Dd,n.depsTail=void 0,n.flags=6;try{return e()}finally{fo=r,n.flags&=-5,Gd(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){const r=this.flags;r&16||r&32&&V6(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Gd(this)}};return t(),n}var kp={exports:{}},Ep={},Cp={exports:{}},Ap={};var v5;function cO(){if(v5)return Ap;v5=1;var e=bu();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function f(y,b){var v=b(),S=r({inst:{value:v,getSnapshot:b}}),w=S[0].inst,_=S[1];return s(function(){w.value=v,w.getSnapshot=b,h(w)&&_({inst:w})},[y,v,b]),a(function(){return h(w)&&_({inst:w}),y(function(){h(w)&&_({inst:w})})},[y]),l(v),v}function h(y){var b=y.getSnapshot;y=y.value;try{var v=b();return!n(y,v)}catch{return!0}}function d(y,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return Ap.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ap}var S5;function $6(){return S5||(S5=1,Cp.exports=cO()),Cp.exports}var w5;function lO(){if(w5)return Ep;w5=1;var e=bu(),t=$6();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Ep.useSyncExternalStoreWithSelector=function(d,p,y,b,v){var S=s(null);if(S.current===null){var w={hasValue:!1,value:null};S.current=w}else w=S.current;S=f(function(){function A(P){if(!E){if(E=!0,C=P,P=b(P),v!==void 0&&w.hasValue){var M=w.value;if(v(M,P))return R=M}return R=P}if(M=R,r(C,P))return M;var k=b(P);return v!==void 0&&v(M,k)?(C=P,M):(C=P,R=k)}var E=!1,C,R,z=y===void 0?null:y;return[function(){return A(p())},z===null?void 0:function(){return A(z())}]},[p,y,b,v]);var _=a(d,S[0],S[1]);return l(function(){w.hasValue=!0,w.value=_},[_]),h(_),_},Ep}var x5;function uO(){return x5||(x5=1,kp.exports=lO()),kp.exports}var Z6=uO();function fO(e,t){return e===t}function Qr(e,t=r=>r,n){const r=n?.compare??fO,a=O.useCallback(l=>{const{unsubscribe:f}=e.subscribe(l);return f},[e]),s=O.useCallback(()=>e.get(),[e]);return Z6.useSyncExternalStoreWithSelector(a,s,s,t,r)}var _5={};function Y6(e,t){const n=O.useRef();return r=>{const a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ii(n.current,a):a}}function fi(e){const t=On(),n=O.useContext(e.from?tO:Ph),r=e.from??n,a=t.stores.getMatchStore(r),s=Y6(e,t),l=Qr(a,f=>f?s(f):_5);if(l!==_5)return l;(e.shouldThrow??!0)&&tu()}function p1(e){return fi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function g1(e){const{select:t,...n}=e;return fi({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function y1(e){return fi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function b1(e){return fi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function v1(e){const t=On();return O.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function S1(e){return fi({...e,select:t=>e.select?e.select(t.context):t.context})}function Rp(e){const t=O.useRef(e);return go(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function dO(e,t){return e[0]===t[0]&&e[1]===t[1]}function hO(e,t){const n=typeof e=="string"&&eu(e);if(n)return t.has(n)?e:null}function mO(e,t,n,r,a){const s=Fw(e.pathname,r),l=Fw(t.pathname,r);return(n?.exact?s!==l:!(s.startsWith(l)&&(s.length===l.length||s[l.length]==="/")))||(n?.includeSearch??!0)&&!go(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndef
13ined})?!1:n?.includeHash?a&&e.hash===t.hash:!0}function pO(e,t){const n=On(),r=qM(t),{activeProps:a,inactiveProps:s,activeOptions:l,to:f,preload:h,preloadDelay:d,preloadIntentProximity:p,hashScrollIntoView:y,replace:b,startTransition:v,resetScroll:S,viewTransition:w,children:_,target:A,disabled:E,style:C,className:R,onClick:z,onBlur:P,onFocus:M,onMouseEnter:k,onMouseLeave:D,onTouchStart:N,ignoreBlocker:F,params:Y,search:J,hash:fe,state:se,mask:B,reloadDocument:G,unsafeRelative:ae,from:ce,_fromLocation:V,...L}=e,Q=f,ee=m1(),ue=Rp(e.search),de=Rp(e.params),pe=Rp(l),Ae=O.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,ue,de,e.state,e.mask,e.unsafeRelative]),Je=O.useCallback(Ye=>{const vt=hO(Q,n.protocolAllowlist);if(vt!==void 0)return[vt??void 0];const Qe=n.buildLocation({_fromLocation:Ye,...Ae}),ut=SO(Qe,n,E);return[ut,!E&&(!ut||eu(ut))?void 0:mO(Ye,Qe,pe,n.basepath,ee)]},[pe,E,ee,Ae,n,Q]),[be,nt]=Qr(n.stores.location,Je,{compare:dO}),pt=nt===void 0?be:void 0,bt=E||be===void 0,Ft=O.useRef(!1),st=e.reloadDocument||pt||bt?!1:h??n.options.defaultPreload,Xt=d??n.options.defaultPreloadDelay??0,rn=O.useCallback(()=>{n.preloadRoute(Ae).catch(Ye=>{console.warn(Ye),console.warn(JA)})},[n,Ae]),Zn=O.useCallback(Ye=>{if(!Ye){Mp(r);return}if(!(Ye.isIntersecting??st==="intent")){Ye.isIntersecting===!1&&Mp(r);return}if(!Xt){rn();return}jl.has(r)||jl.set(r,setTimeout(()=>{jl.delete(r),rn()},Xt))},[rn,r,st,Xt]);if(GM(r,Zn,st!=="viewport"),O.useEffect(()=>{Ft.current||st==="render"&&(rn(),Ft.current=!0)},[rn,st]),pt)return{...L,ref:r,href:pt,..._&&{children:_},...A&&{target:A},...E&&{disabled:E},...C&&{style:C},...R&&{className:R},...z&&{onClick:z},...P&&{onBlur:P},...M&&{onFocus:M},...k&&{onMouseEnter:k},...D&&{onMouseLeave:D},...N&&{onTouchStart:N}};const on=Wl(nt?a:s,{})??(nt?yO:gO),zn=on.className,xn=R?zn?`${R} ${zn}`:R:zn,gn=on.style,Kt=C&&gn?{...C,...gn}:C||gn,Pe=Ye=>{const vt=Ye.currentTarget.getAttribute("target"),Qe=A!==void 0?A:vt;!bt&&!(Ye.metaKey||Ye.altKey||Ye.ctrlKey||Ye.shiftKey)&&!Ye.defaultPrevented&&(!Qe||Qe==="_self")&&Ye.button===0&&(Ye.preventDefault(),n.navigate({...Ae,replace:b,resetScroll:S,hashScrollIntoView:y,startTransition:v,viewTransition:w,ignoreBlocker:F}))},Ne=()=>{st==="intent"&&rn()},gt=()=>{st==="intent"&&Mp(r)};return{...L,...on,href:be,ref:r,onClick:Xs(z,Pe),onBlur:Xs(P,gt),onFocus:Xs(M,Zn),onMouseEnter:Xs(k,Zn),onMouseLeave:Xs(D,gt),onTouchStart:Xs(N,Ne),disabled:!!bt,target:A,...Kt&&{style:Kt},...xn&&{className:xn},...bt&&bO,...nt&&vO}}var gO={},yO={className:"active"},bO={role:"link","aria-disabled":!0},vO={"data-status":"active","aria-current":"page"},jl=new WeakMap,Mp=e=>{clearTimeout(jl.get(e)),jl.delete(e)},Xs=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function SO(e,t,n){if(n)return;const r=e.maskedLocation??e,a=r.external?r.publicHref:t.history.createHref(r.publicHref)||"/";if(!((r.external||a!==r.publicHref)&&A4(a,t.protocolAllowlist)))return a}function wO(e){return O.forwardRef(function(n,r){return I.jsx(di,{...n,_asChild:e,ref:r})})}var di=O.forwardRef((e,t)=>{const{_asChild:n,...r}=e;let{type:a,...s}=pO(r,t);const l=typeof r.children=="function"?r.children({isActive:s["data-status"]==="active"}):r.children;if(!n){const{disabled:f,...h}=s;s=h}return O.createElement(n||"a",s,l)});function PJ(e){return new xO({id:e})}var xO=class extends n7{constructor({id:e}){super({id:e}),this.useMatch=t=>fi({...t,from:this.id}),this.useRouteContext=t=>S1({...t,from:this.id}),this.useSearch=t=>b1({...t,from:this.id}),this.useParams=t=>y1({...t,from:this.id}),this.useLoaderDeps=t=>g1({...t,from:this.id,strict:!1}),this.useLoaderData=t=>p1({...t,from:this.id,strict:!1}),this.useNavigate=()=>v1({from:On().routesById[this.id].fullPath}),this.notFound=t=>kh({routeId:this.id,...t}),this.Link=tn.forwardRef((t,n)=>{const r=On().routesById[this.id].fullPath;return I.jsx(di,{ref:n,from:r,...t})})}},_O=class extends J4{constructor(t){super(t),this.useMatch=n=>fi({...n,from:this.id}),this.useRouteContext=n=>S1({...n,from:this.id}),this.useSearch=n=>b1({...n,from:this.id}),this.useParams=n=>y1({...n,from:this.id}),this.useLoaderDeps=n=>g1({...n,from:this.id}),this.useLoaderData=n=>p1({...n,from:this.id}),this.useNavigate=()=>v1({from:this.fullPath}),this.Link=tn.forwardRef((n,r)=>I.jsx(di,{ref:r,from:this.fullPath,...n}))}};function TO(e){return new _O(e)}var kO=class extends r7{constructor(e){super(e),this.useMatch=t=>fi({...t,from:this.id}),this.useRouteContext=t=>S1({...t,from:this.id}),this.useSearch=t=>b1({...t,from:this.id}),this.useParams=t=>y1({...t,from:this.id}),this.useLoaderDeps=t=>g1({...t,from:this.id}),this.useLoaderData=t=>p1({...t,from:this.id}),this.useNavigate=()=>v1({from:this.fullPath}
13),this.Link=tn.forwardRef((t,n)=>I.jsx(di,{ref:n,from:this.fullPath,...t}))}};function EO(e){return new kO(e)}function Sc(e){return t=>{const n=TO(t);return n.isRoot=!1,n}}function wc(e,t){let n,r,a;const s=()=>(n||(a=void 0,n=e().then(f=>{n=void 0,l.preload=void 0,r=f[t]}).catch(f=>{n=void 0,a=f})),n),l=function(h){if(a){if(XC(a)&&typeof sessionStorage<"u"){const d=`tanstack_router_reload:${a.message}`;if(!sessionStorage.getItem(d))throw sessionStorage.setItem(d,"1"),window.location.reload(),new Promise(()=>{})}throw a}if(!r)if(Yd)Yd(s());else throw s();return O.createElement(r,h)};return l.preload=s,l}function CO(e){const t=On(),n=`not-found-${Qr(t.stores.location,r=>r.pathname)}-${Qr(t.stores.status)}`;return I.jsx(h1,{getResetKey:()=>n,onCatch:(r,a)=>{if(es(r))e.onCatch?.(r,a);else throw r},errorComponent:({error:r})=>{if(es(r))return e.fallback?.(r);throw r},children:e.children})}function AO(){return I.jsx("p",{children:"Not Found"})}function RO({children:e}){return On(),null}function ec(e){return I.jsx(I.Fragment,{children:e.children})}function G6(e,t,n){return t.options.notFoundComponent?I.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?I.jsx(e.options.defaultNotFoundComponent,{...n}):I.jsx(AO,{})}function zh(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?I.jsx(n,{}):null}var MO=(e,t)=>e[0]===t[0]&&e[1]===t[1],q6=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,X6=O.memo(function({routeId:t}){const n=On();return I.jsx(OO,{router:n,match:Qr(n.stores.getMatchStore(t))})});function OO({router:e,match:t}){const n=e.routesById[t.routeId],r=zh(e,n),a=n.options.errorComponent??e.options.defaultErrorComponent,s=n.options.onCatch??e.options.defaultOnCatch,l=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,f=t.ssr===!1||t.ssr==="data-only",h=q6(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||f))?O.Suspense:ec,d=a?h1:ec,p=l?CO:ec;return I.jsxs(n.isRoot?n.options.shellComponent??ec:ec,{children:[I.jsx(Ph.Provider,{value:t.routeId,children:I.jsx(h,{fallback:r,children:I.jsx(d,{getResetKey:()=>t,errorComponent:a,onCatch:(y,b)=>{if(es(y))throw y.routeId??=t.routeId,y;s?.(y,b)},children:I.jsx(p,{fallback:y=>{if(y.routeId??=t.routeId,y.routeId!==t.routeId)throw y;return O.createElement(l,y)},children:f?I.jsx(WM,{fallback:r,children:I.jsx(T5,{match:t})}):I.jsx(T5,{match:t})})})})}),null]})}var T5=O.memo(function({match:t}){const n=On(),r=t.routeId,a=n.routesById[r],s=O.useMemo(()=>{const f=(a.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:r,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return f?JSON.stringify(f):void 0},[r,t.loaderDeps,t._strictParams,t._strictSearch,a.options.remountDeps,n.options.defaultRemountDeps]),l=O.useMemo(()=>{const f=a.options.component??n.options.defaultComponent;return f?I.jsx(f,{},s):I.jsx(PO,{})},[s,a.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!q6(n,a,t.ssr))return l;if(n._tx)throw n._tx[5];return zh(n,a)}if(t.status==="notFound")return G6(n,a,t.error);if(t.status==="error")throw t.error;return l}),PO=O.memo(function(){const t=On(),n=O.useContext(Ph);let r,a,s;{const f=t.stores.getMatchStore(n);[r,a]=Qr(f,h=>[!!h._notFound,h.error],{compare:MO}),s=Qr(t.stores.ids,h=>h[h.indexOf(n)+1])}if(r)return G6(t,t.routesById[n],a);if(!s)return null;const l=I.jsx(X6,{routeId:s});return n===ac?I.jsx(O.Suspense,{fallback:zh(t),children:l}):l});function K6(e,t){const n=e[1];e.length=0,n?.(t)}function zO({t:e}){const t=On(),n=t._rendered??=[];return t.startTransition=(r,a)=>new Promise(s=>{K6(n,!1),n.push(a,s),e(t),O.startTransition(r)}),I6(()=>{const r=t.history.subscribe(t.load);t.updateLatestLocation();const a=t.latestLocation,s=t.buildLocation({to:a.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(qo(a.publicHref)!==qo(s.publicHref))return t.commitLocation({...s,replace:!0,ignoreBlocker:!0}),r;const l=t.stores.resolvedLocation.get();return l?.href===a.href&&l.state.__TSR_key===a.state.__TSR_key?n.push(t.stores.matches.get(),f=>{f&&t.emit({type:"onRendered",...Eh(l,l)})}):t._tx||t.load({sync:!0}).catch(console.error),r},[t,t.history]),null}function DO(){const e=On(),t=e.routesById[ac],n=zh(e,t),r=e.ssr?ec:O.Suspense,a=I.jsxs(I.Fragment,{children:[I.jsx(zO,{t:O.useState()[1]}),I.jsx(r,{fallback:n,children:I.jsx(NO,{})})]});return e.options.InnerWrap?I.jsx(e.options.InnerWrap,{children:a}):a}function NO(){const e=On(),t=e._rendered,n=Qr(e.stores.matches,l=>t[0]??l),r=n[0],a=r?.routeId;I6(()=>{t[0]===n&&K6(t,!0)},[t,n]);const s=a?I.jsx(X6,{routeId:a}):null;return I.jsx(Ph.Provider,{value:a,children:e.options.disableGlobalCatchBoundary?s:I.jsx(h1,{getResetKey:()=>r,onCatch:void 0,children:s})})}var LO=e=>({createMutableStore:b5,createReadonlyStore:b5,batch:iO}),jO=e=>new BO(e),BO=class extends jA{constructor(e){super(e,LO)}};function FO({router:e,children:t,...n}
13){E4(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=I.jsx(H6.Provider,{value:e,children:t});return e.options.Wrap?I.jsx(e.options.Wrap,{children:r}):r}function IO({router:e,...t}){return I.jsx(FO,{router:e,...t,children:I.jsx(DO,{})})}function w1(e){const t=On({warn:e?.router===void 0}),n=e?.router||t;return Qr(n.stores.__store,Y6(e,n))}function k5(e,t){if(t)for(const[n,r]of Object.entries(t))n!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r=="boolean"?"":String(r))}function J6(e){const{attrs:t,children:n,nonce:r,preventScriptHoist:a}=e,s=O.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case"title":return I.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return I.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return I.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:r,suppressHydrationWarning:!0});case"style":return e.inlineCss,I.jsx("style",{...t,dangerouslySetInnerHTML:s,nonce:r});case"script":return I.jsx(HO,{attrs:t,preventScriptHoist:a,children:n});default:return null}}function HO({attrs:e,children:t,preventScriptHoist:n}){On();const r=m1(),a=O.useMemo(()=>t===void 0?void 0:{__html:t},[t]),s=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(O.useEffect(()=>{if(!s){if(e?.src){const l=document.createElement("a");l.href=e.src;const f=l.href;for(const d of document.scripts)if(d.src===f)return;const h=document.createElement("script");return k5(h,e),document.head.appendChild(h),()=>h.remove()}if(typeof t=="string"){const l=typeof e?.type=="string"?e.type:"text/javascript",f=typeof e?.nonce=="string"?e.nonce:void 0;for(const d of document.scripts){if(d.hasAttribute("src"))continue;const p=d.getAttribute("type")??"text/javascript",y=d.getAttribute("nonce")??void 0;if(d.textContent===t&&p===l&&y===f)return}const h=document.createElement("script");return h.textContent=t,k5(h,e),document.head.appendChild(h),()=>h.remove()}}},[e,t,s]),s&&typeof t=="string")return I.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:a});if(!r){if(e?.src)return I.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return I.jsx("script",{...e,dangerouslySetInnerHTML:a,suppressHydrationWarning:!0})}return null}function VO(e,t,n,r){n=U4(n);const a=n.map(w=>w.meta).filter(w=>w!==void 0),s=[],l={};let f;for(let w=a.length-1;w>=0;w--){const _=a[w];for(let A=_.length-1;A>=0;A--){const E=_[A];if(E)if(E.title)f||(f={tag:"title",children:E.title});else if("script:ld+json"in E)try{const C=JSON.stringify(E["script:ld+json"]);s.push({tag:"script",attrs:{type:"application/ld+json"},children:tA(C)})}catch{}else{const C=E.name??E.property;if(C){if(l[C])continue;l[C]=!0}s.push({tag:"meta",attrs:{...E,nonce:t}})}}}f&&s.push(f),t&&s.push({tag:"meta",attrs:{property:"csp-nonce",content:t}}),s.reverse();const h=n.flatMap(w=>w.links??[]).filter(w=>w!==void 0).map(w=>({tag:"link",attrs:{...w,nonce:t}})),d=e.ssr?.manifest,p=[];d&&(n.forEach(w=>{d.routes[w.routeId]?.css?.forEach(_=>{const A=t7(_);p.push({tag:"link",attrs:{rel:"stylesheet",...A,crossOrigin:K4(r,"stylesheet")??A.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),d.inlineStyle&&p.push({tag:"style",attrs:{...d.inlineStyle.attrs,nonce:t},children:d.inlineStyle.children,inlineCss:!0}));const y=[];d&&n.forEach(w=>{d.routes[w.routeId]?.preloads?.forEach(_=>{y.push({tag:"link",attrs:{...WA(d,_,r),nonce:t}})})});const b=n.flatMap(w=>w.styles??[]).filter(w=>w!==void 0).map(({children:w,..._})=>({tag:"style",attrs:{..._,nonce:t},children:w})),v=n.flatMap(w=>w.headScripts??[]).filter(w=>w!==void 0).map(({children:w,..._})=>({tag:"script",attrs:{..._,nonce:t},children:w})),S=[];return Zf(S,s),S.push(...y),Zf(S,h),S.push(...p),Zf(S,b),Zf(S,v),S}var UO=e=>{const t=On(),n=t.options.ssr?.nonce,r=O.useCallback(a=>VO(t,n,a,e),[e,n,t]);return Qr(t.stores.matches,r,{compare:go})};function $O(e){const t=UO(e.assetCrossOrigin),n=On().options.ssr?.nonce;return I.jsx(I.Fragment,{children:t.map(r=>O.createElement(J6,{...r,key:`tsr-meta-${JSON.stringify(r)}`,nonce:n}))})}var ZO=()=>{const e=On(),t=e.options.ssr?.nonce,n=r=>{r=U4(r);const a=r.flatMap(l=>
13l.scripts??[]).filter(Boolean).map(({children:l,...f})=>({tag:"script",attrs:{...f,suppressHydrationWarning:!0,nonce:t},children:l})),s=e.ssr?.manifest;if(!s)return a;for(const l of r){const f=s.routes[l.routeId]?.scripts;if(f)for(const h of f)a.push({tag:"script",attrs:{...h.attrs,nonce:t},children:h.children,...typeof h.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return a};return YO(e,Qr(e.stores.matches,n,{compare:go}))};function YO(e,t){return I.jsx(I.Fragment,{children:t.map((n,r)=>O.createElement(J6,{...n,key:`tsr-scripts-${n.tag}-${r}`}))})}const GO="modulepreload",qO=function(e){return"/"+e},E5={},eo=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let h=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),f=l?.nonce||l?.getAttribute("nonce");a=h(n.map(d=>{if(d=qO(d),d in E5)return;E5[d]=!0;const p=d.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${y}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":GO,p||(b.as="script"),b.crossOrigin="",b.href=d,f&&b.setAttribute("nonce",f),document.head.appendChild(b),p)return new Promise((v,S)=>{b.addEventListener("load",v),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return a.then(l=>{for(const f of l||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})};function Q6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Q6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function XO(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Q6(e))&&(r&&(r+=" "),r+=t);return r}const KO=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},JO=(e,t)=>({classGroupId:e,validator:t}),W6=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qd="-",C5=[],QO="arbitrary..",WO=e=>{const t=tP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return eP(l);const f=l.split(qd),h=f[0]===""&&f.length>1?1:0;return e_(f,h,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const h=r[l],d=n[l];return h?d?KO(d,h):h:d||C5}return n[l]||C5}}},e_=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],s=n.nextPart.get(a);if(s){const d=e_(e,t+1,s);if(d)return d}const l=n.validators;if(l===null)return;const f=t===0?e.join(qd):e.slice(t).join(qd),h=l.length;for(let d=0;d<h;d++){const p=l[d];if(p.validator(f))return p.classGroupId}},eP=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?QO+r:void 0})(),tP=e=>{const{theme:t,classGroups:n}=e;return nP(n,t)},nP=(e,t)=>{const n=W6();for(const r in e){const a=e[r];x1(a,n,r,t)}return n},x1=(e,t,n,r)=>{const a=e.length;for(let s=0;s<a;s++){const l=e[s];rP(l,t,n,r)}},rP=(e,t,n,r)=>{if(typeof e=="string"){oP(e,t,n);return}if(typeof e=="function"){aP(e,t,n,r);return}iP(e,t,n,r)},oP=(e,t,n)=>{const r=e===""?t:t_(t,e);r.classGroupId=n},aP=(e,t,n,r)=>{if(sP(e)){x1(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(JO(n,e))},iP=(e,t,n,r)=>{const a=Object.entries(e),s=a.length;for(let l=0;l<s;l++){const[f,h]=a[l];x1(h,t_(t,f),n,r)}},t_=(e,t)=>{let n=e;const r=t.split(qd),a=r.length;for(let s=0;s<a;s++){const l=r[s];let f=n.nextPart.get(l);f||(f=W6(),n.nextPart.set(l,f)),n=f}return n},sP=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return a(s,l),l},set(s,l){s in n?n[s]=l:a(s,l)}}},Gg="!",A5=":",lP=[],R5=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),uP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,f=0,h=0,d;const p=a.length;for(let w=0;w<p;w++){const _=a[w];if(l===0&&f===0){if(_===A5){s.push(a.slice(h,w)),h=w+1;continue}if(_==="/"){d=w;continue}}_==="["?l++:_==="]"?l--:_==="("?f++:_===")"&&f--}const y=s.length===0?a:a.slice(h);let b=y,v=!1;y.endsWith(Gg)?(b=y.slice(0,-1),v=!0):y.startsWith(Gg)&&(b=y.slice(1),v=!0);const S=d&&d>h?d-h:void 0;return R5(s,v,b,S)};if(t){const a=t+A5,s=r;r=l=>l.startsWith(a)?s(l.slice(a.length)):R5(lP,!1,l,void 0,!0)}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},fP=e=>{const t=new Map;
13return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let s=0;s<n.length;s++){const l=n[s],f=l[0]==="[",h=t.has(l);f||h?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(l)):a.push(l)}return a.length>0&&(a.sort(),r.push(...a)),r}},dP=e=>({cache:cP(e.cacheSize),parseClassName:uP(e),sortModifiers:fP(e),postfixLookupClassGroupIds:hP(e),...WO(e)}),hP=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},mP=/\s+/,pP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s,postfixLookupClassGroupIds:l}=t,f=[],h=e.trim().split(mP);let d="";for(let p=h.length-1;p>=0;p-=1){const y=h[p],{isExternal:b,modifiers:v,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:_}=n(y);if(b){d=y+(d.length>0?" "+d:d);continue}let A=!!_,E;if(A){const M=w.substring(0,_);E=r(M);const k=E&&l[E]?r(w):void 0;k&&k!==E&&(E=k,A=!1)}else E=r(w);if(!E){if(!A){d=y+(d.length>0?" "+d:d);continue}if(E=r(w),!E){d=y+(d.length>0?" "+d:d);continue}A=!1}const C=v.length===0?"":v.length===1?v[0]:s(v).join(":"),R=S?C+Gg:C,z=R+E;if(f.indexOf(z)>-1)continue;f.push(z);const P=a(E,A);for(let M=0;M<P.length;++M){const k=P[M];f.push(R+k)}d=y+(d.length>0?" "+d:d)}return d},gP=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=n_(n))&&(a&&(a+=" "),a+=r);return a},n_=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=n_(e[r]))&&(n&&(n+=" "),n+=t);return n},yP=(e,...t)=>{let n,r,a,s;const l=h=>{const d=t.reduce((p,y)=>y(p),e());return n=dP(d),r=n.cache.get,a=n.cache.set,s=f,f(h)},f=h=>{const d=r(h);if(d)return d;const p=pP(h,n);return a(h,p),p};return s=l,(...h)=>s(gP(...h))},bP=[],bn=e=>{const t=n=>n[e]||bP;return t.isThemeGetter=!0,t},r_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,o_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,SP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wP=/\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$/,xP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=e=>vP.test(e),Xe=e=>!!e&&!Number.isNaN(Number(e)),co=e=>!!e&&Number.isInteger(Number(e)),Op=e=>e.endsWith("%")&&Xe(e.slice(0,-1)),Vo=e=>SP.test(e),a_=()=>!0,kP=e=>wP.test(e)&&!xP.test(e),_1=()=>!1,EP=e=>_P.test(e),CP=e=>TP.test(e),AP=e=>!xe(e)&&!Te(e),RP=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),MP=e=>hi(e,c_,_1),xe=e=>r_.test(e),ji=e=>hi(e,l_,kP),M5=e=>hi(e,BP,Xe),OP=e=>hi(e,f_,a_),PP=e=>hi(e,u_,_1),O5=e=>hi(e,i_,_1),zP=e=>hi(e,s_,CP),qf=e=>hi(e,d_,EP),Te=e=>o_.test(e),kl=e=>cs(e,l_),DP=e=>cs(e,u_),P5=e=>cs(e,i_),NP=e=>cs(e,c_),LP=e=>cs(e,s_),Xf=e=>cs(e,d_,!0),jP=e=>cs(e,f_,!0),hi=(e,t,n)=>{const r=r_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},cs=(e,t,n=!1)=>{const r=o_.exec(e);return r?r[1]?t(r[1]):n:!1},i_=e=>e==="position"||e==="percentage",s_=e=>e==="image"||e==="url",c_=e=>e==="length"||e==="size"||e==="bg-size",l_=e=>e==="length",BP=e=>e==="number",u_=e=>e==="family-name",f_=e=>e==="number"||e==="weight",d_=e=>e==="shadow",FP=()=>{const e=bn("color"),t=bn("font"),n=bn("text"),r=bn("font-weight"),a=bn("tracking"),s=bn("leading"),l=bn("breakpoint"),f=bn("container"),h=bn("spacing"),d=bn("radius"),p=bn("shadow"),y=bn("inset-shadow"),b=bn("text-shadow"),v=bn("drop-shadow"),S=bn("blur"),w=bn("perspective"),_=bn("aspect"),A=bn("ease"),E=bn("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...R(),Te,xe],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],k=()=>[Te,xe,h],D=()=>[$a,"full","auto",...k()],N=()=>[co,"none","subgrid",Te,xe],F=()=>["auto",{span:["full",co,Te,xe]},co,Te,xe],Y=()=>[co,"auto",Te,xe],J=()=>["auto","min","max","fr",Te,xe],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...k()],G=()=>[$a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],ae=()=>[$a,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ce=()=>[$a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],V=()=>[e,Te,xe],L=()=>[...R(),P5,O5,{position:[Te,xe]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",NP,MP,{size:[Te,xe]}],ue=()=>[Op,kl,ji],de=()=>["","none","full",d,Te,xe],pe=()=>["",Xe,kl,ji],Ae=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[Xe,Op,P5,O5],nt=()=>["","none",S,Te,xe],pt=()=>["none",Xe,Te,xe],bt=()=>["none",Xe,Te,xe],Ft=()=>[Xe,Te,xe],st=()=>[$a,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vo],breakpoint:[Vo],color:[a_],container:[Vo],"drop-shadow":[Vo],ease:["in","out","in-out"],font:[AP],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vo],shadow:[Vo],spacing:["px",Xe],text:[Vo],"text-shadow":[Vo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$a,xe,Te,_]}],container:["container"],"container-type":[{"@container":["","normal","size",Te,xe]}
vendor: 6,137 bytes, line 13
13],"container-named":[RP],columns:[{columns:[Xe,xe,Te,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:z()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[co,"auto",Te,xe]}],basis:[{basis:[$a,"full","auto",f,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Xe,$a,"auto","initial","none",xe]}],grow:[{grow:["",Xe,Te,xe]}],shrink:[{shrink:["",Xe,Te,xe]}],order:[{order:[co,"first","last","none",Te,xe]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[f,"screen",...G()]}],"min-w":[{"min-w":[f,"screen","none",...G()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,kl,ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jP,OP]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Op,xe]}],"font-family":[{font:[DP,PP,t]}],"font-features":[{"font-features":[xe]}],"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:[a,Te,xe]}],"line-clamp":[{"line-clamp":[Xe,"none",Te,M5]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",Te,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Xe,"from-font","auto",Te,ji]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Xe,"auto",Te,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[co,Te,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},co,Te,xe],radial:["",Te,xe],conic:[co,Te,xe]},LP,zP]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ue()}
vendor: 6,399 bytes, line 13
13],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Xe,Te,xe]}],"outline-w":[{outline:["",Xe,kl,ji]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",p,Xf,qf]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,Xf,qf]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Xe,ji]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",b,Xf,qf]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Xe,Te,xe]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Te,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,xe]}],filter:[{filter:["","none",Te,xe]}],blur:[{blur:nt()}],brightness:[{brightness:[Xe,Te,xe]}],contrast:[{contrast:[Xe,Te,xe]}],"drop-shadow":[{"drop-shadow":["","none",v,Xf,qf]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Xe,Te,xe]}],"hue-rotate":[{"hue-rotate":[Xe,Te,xe]}],invert:[{invert:["",Xe,Te,xe]}],saturate:[{saturate:[Xe,Te,xe]}],sepia:[{sepia:["",Xe,Te,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,xe]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[Xe,Te,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Xe,Te,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Xe,Te,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Xe,Te,xe]}],"backdrop-invert":[{"backdrop-invert":["",Xe,Te,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Xe,Te,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Xe,Te,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Xe,Te,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,xe]}],"transition-behavior":[{transition:["normal","discrete"]}
vendor: 6,096 bytes, line 13
13],duration:[{duration:[Xe,"initial",Te,xe]}],ease:[{ease:["linear","initial",A,Te,xe]}],delay:[{delay:[Xe,Te,xe]}],animate:[{animate:["none",E,Te,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Te,xe]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:pt()}],"rotate-x":[{"rotate-x":pt()}],"rotate-y":[{"rotate-y":pt()}],"rotate-z":[{"rotate-z":pt()}],scale:[{scale:bt()}],"scale-x":[{"scale-x":bt()}],"scale-y":[{"scale-y":bt()}],"scale-z":[{"scale-z":bt()}],"scale-3d":["scale-3d"],skew:[{skew:Ft()}],"skew-x":[{"skew-x":Ft()}],"skew-y":[{"skew-y":Ft()}],transform:[{transform:[Te,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],zoom:[{zoom:[co,Te,xe]}],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Te,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":V()}],"scrollbar-track-color":[{"scrollbar-track":V()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Te,xe]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Xe,kl,ji,M5]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},IP=yP(FP);function mc(...e){return IP(XO(e))}
13const DJ={bevel:"[clip-path:polygon(16px_0,100%_0,100%_calc(100%-16px),calc(100%-16px)_100%,0_100%,0_16px)]"};function NJ(e,t="en"){const n=new Date(e);return new Date(n).toLocaleDateString(t==="zh"?"zh-CN":"en-US",{month:"short",day:"2-digit",year:"numeric"}).toUpperCase()}const HP=({className:e})=>I.jsx("svg",{className:mc("fill-current size-4",e),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I.jsx("polygon",{points:"23 9 23 15 22 15 22 17 21 17 21 19 20 19 20 20 19 20 19 21 18 21 18 22 16 22 16 23 15 23 15 18 14 18 14 17 15 17 15 16 17 16 17 15 18 15 18 14 19 14 19 9 18 9 18 6 16 6 16 7 15 7 15 8 14 8 14 7 10 7 10 8 9 8 9 7 8 7 8 6 6 6 6 9 5 9 5 14 6 14 6 15 7 15 7 16 9 16 9 18 7 18 7 17 6 17 6 16 4 16 4 17 5 17 5 19 6 19 6 20 9 20 9 23 8 23 8 22 6 22 6 21 5 21 5 20 4 20 4 19 3 19 3 17 2 17 2 15 1 15 1 9 2 9 2 7 3 7 3 5 4 5 4 4 5 4 5 3 7 3 7 2 9 2 9 1 15 1 15 2 17 2 17 3 19 3 19 4 20 4 20 5 21 5 21 7 22 7 22 9 23 9"})}),VP=".,·~+:;=*!?&#$@%0123456789âââââââââ *",UP="ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼¡ï¼¢ï¼£ï¼¤ï¼¥ï¼¦ï¼§ï¼¨ï¼©ï¼ªï¼«ï¼¬ï¼ï¼®ï¼¯ï¼°ï¼±ï¼²ï¼³ï¼´ï¼µï¼¶ï¼·ï¼¸ï¼¹ï¼ºï¼ï¼ï¼ï¼ï¼
ï¼ï¼ ï¼ï¼ï¼ï¼ï¼å·äºä»ä»åå
Œ
å
§å
«ææ¶æ£®æ·ç¡ç«ç»ç½ç¾çç®ç¿ç®ç¢ä¸¶ä¸·ä¹ç»ä¸¨ä¸©ä¸¬ä¸±ä¸³ä¸µ",$P=/[\u2e80-\u9fff\uf900-\ufaff\u3000-\u303f\uff00-\uffef]/,ZP=3,YP=3,GP=40,qP=5;function XP(e,t={}){const{duration:n=1e3,spread:r=1}=t,a=e.split(""),s=O.useRef([]),l=O.useRef(0),f=O.useRef(!1),h=O.useRef(null),d=O.useRef(null),[p,y]=O.useState(e),[b,v]=O.useState(!1),S=O.useRef(e);S.current!==e&&(S.current=e,b||y(e));const w=O.useCallback(k=>{if(!d.current)return 0;const D=d.current.getBoundingClientRect(),N=k.clientX-D.left;return Math.max(0,Math.min(Math.round(N/D.width*e.length),e.length-1))},[e]),_=O.useCallback((k,D)=>{let N=!1,F=a[k];for(const Y of s.current){const J=D-Y.st,fe=Math.min(J/n,1),se=Math.abs(k-Y.sp),B=Math.max(Y.sp,a.length-Y.sp-1),G=fe*(B+qP)/r;if(se<=G){N=!0;const ae=Math.max(0,G-se);if(ae<=ZP&&ae>0){const ce=$P.test(a[k])?UP:VP;F=ce[(se*YP+Math.floor(J/GP))%ce.length]}}}return{anim:N,char:F}},[a,n,r]),A=O.useCallback(k=>a.map((D,N)=>{if(D===" ")return" ";const F=_(N,k);return F.anim?F.char:D}).join(""),[a,_]),E=O.useCallback(()=>{v(!0);const k=()=>{const D=Date.now();if(s.current=s.current.filter(N=>D-N.st<n),s.current.length===0){y(e),v(!1),h.current=null;return}y(A(D)),h.current=requestAnimationFrame(k)};h.current||(h.current=requestAnimationFrame(k))},[n,e,A]),C=O.useCallback(()=>{s.current.push({sp:l.current,st:Date.now(),id:Math.random()}),E()},[E]),R=O.useCallback(k=>{f.current=!0,l.current=w(k.nativeEvent),C()},[w,C]),z=O.useCallback(k=>{if(!f.current)return;const D=l.current;l.current=w(k.nativeEvent),l.current!==D&&C()},[w,C]),P=O.useCallback(()=>{f.current=!1},[]),M=O.useCallback(()=>{l.current=Math.floor(e.length/2),C()},[e,C]);return O.useEffect(()=>()=>{h.current&&cancelAnimationFrame(h.current)},[]),{ref:d,display:p,animating:b,onEnter:R,onMove:z,onLeave:P,triggerFromCenter:M}}function Xd({children:e,as:t="span",duration:n=1e3,spread:r=1,className:a}){const{ref:s,display:l,animating:f,onEnter:h,onMove:d,onLeave:p}=XP(e,{duration:n,spread:r});return I.jsx(t,{ref:s,onMouseEnter:h,onMouseMove:d,onMouseLeave:p,"aria-label":e,className:mc("relative inline-block whitespace-nowrap",a),style:{userSelect:f?"none":"auto"},children:l})}const Ze={name:"Patrick Xin",description:"Patrick Xin's Blog",url:"https://patrickxin.dev",author:"Patrick Xin",bio:"Building at the intersection of design systems and AI. I write about architecture, the details that make interfaces feel considered, and what I learn shipping in public.",github:"https://github.com/patrick-xin",favicon:"/favicon.ico",keywords:["Patrick Xin","blog","AI","react","Base UI","TanStack Start","Lumi UI","Tailwind CSS","TypeScript"]},T1="en",KP={nav:{home:"Home",blogs:"Blogs",projects:"Projects"},footer:{githubLink:"GitHub link"},settings:{openConfig:"Open system config",openSettings:"Open settings",closeSettings:"Close settings",title:"System Config",description:"User preferences & display settings",audio:"Audio",soundEffects:"Sound Effects",volume:"Volume",toggleSound:"Toggle sound",appearance:"Appearance",theme:"Theme",toggleTheme:"Toggle theme",light:"Light",dark:"Dark",system:"System",accentColor:"Accent Color",language:"Language"},commandMenu:{open:"Open command menu",label:"Command menu",searchPlaceholder:"Search",noResults:"No results found.",links:"Links"},notFound:{message:"The page you are looking for does not exist.",goHome:"Go home"},error:{title:"Something went wrong",fallback:"An unexpected error occurred.",goHome:"Go home"}
13,copy:{copied:"Copied",tooltip:"Copy to clipboard",sr:"Copy"},toast:{close:"Close"},filters:{all:"All",active:"Active",archived:"Archived",new:"New",old:"Old"},postNav:{prev:"Prev",next:"Next"},toc:{title:"Table of Contents",backToTop:"Scroll to top"},localeToggle:{label:"Switch language"},bio:Ze.bio,meta:{homeDescription:Ze.description,postsTitle:`Posts | ${Ze.name}`,postsDescription:`Blog posts by ${Ze.author}`,postFallbackDescription:`A post by ${Ze.author}`,projectsTitle:`Projects | ${Ze.name}`,projectsDescription:`Experiments and side projects by ${Ze.author}`},postsHeading:"Intel Archive",projectsHeading:"Case Files"},JP={nav:{home:"é¦é¡µ",blogs:"å客",projects:"项ç®"},footer:{githubLink:"GitHub 龿¥"},settings:{openConfig:"æå¼ç³»ç»é
ç½®",openSettings:"æå¼è®¾ç½®",closeSettings:"å
³é设置",title:"ç³»ç»é
ç½®",description:"ç¨æ·å好䏿¾ç¤ºè®¾ç½®",audio:"é³é¢",soundEffects:"鳿",volume:"é³é",toggleSound:"忢鳿",appearance:"å¤è§",theme:"主é¢",toggleTheme:"忢䏻é¢",light:"æäº®",dark:"æé»",system:"è·éç³»ç»",accentColor:"主é¢è²",language:"è¯è¨"},commandMenu:{open:"æå¼å½ä»¤èå",label:"å½ä»¤èå",searchPlaceholder:"æç´¢",noResults:"æªæ¾å°ç»æã",links:"龿¥"},notFound:{message:"æ¨è®¿é®ç页é¢ä¸åå¨ã",goHome:"è¿åé¦é¡µ"},error:{title:"åºéäº",fallback:"åçäºæå¤é误ã",goHome:"è¿åé¦é¡µ"},copy:{copied:"å·²å¤å¶",tooltip:"å¤å¶å°åªè´´æ¿",sr:"å¤å¶"},toast:{close:"å
³é"},filters:{all:"å
¨é¨",active:"æ´»è·",archived:"彿¡£",new:"ææ°",old:"ææ©"},postNav:{prev:"ä¸ä¸ç¯",next:"ä¸ä¸ç¯"},toc:{title:"ç®å½",backToTop:"åå°é¡¶é¨"},localeToggle:{label:"忢è¯è¨"},bio:"å¨è®¾è®¡ä¸ AI ç交æ±å¤æå»ºãæåæ¶æã让ç颿¾å¾ç¨å¿çé£äºç»èï¼ä»¥åå
¬å¼æå»ºè¿ç¨ä¸çæ¶è·ã",meta:{homeDescription:`${Ze.author} çå客`,postsTitle:`å客 | ${Ze.name}`,postsDescription:`${Ze.author} çå客æç« `,postFallbackDescription:`${Ze.author} çä¸ç¯æç« `,projectsTitle:`é¡¹ç® | ${Ze.name}`,projectsDescription:`${Ze.author} çå®éªä¸å¯ä¸é¡¹ç®`},postsHeading:"æ¡£æ¡åº",projectsHeading:"æ¡å·"},k1={en:KP,zh:JP};function iu(e){return e==="zh"?"zh":T1}function Dh(e){return k1[e]}const E1=O.createContext({locale:T1,t:k1.en}),QP=/^\/zh(?=\/|$)/;function h_(e){return QP.test(e)?"zh":T1}function WP({children:e}){const t=w1({select:r=>h_(r.location.pathname)}),n=O.useMemo(()=>({locale:t,t:k1[t]}),[t]);return I.jsx(E1.Provider,{value:n,children:e})}function LJ(){return O.useContext(E1)}function vu(){return O.useContext(E1).t}function ez(){const e=vu(),t=new Date().getFullYear(),[n,r]=O.useState(null);return O.useEffect(()=>{const a=()=>r(new Date().toLocaleTimeString("en-GB",{hour12:!1}));a();const s=setInterval(a,1e3);return()=>clearInterval(s)},[]),I.jsxs("footer",{className:"max-w-[calc(var(--content-width)+4rem)] mx-auto relative min-h-(--footer-height) w-full grid grid-cols-[1fr_auto_1fr] items-center pt-24 py-4 px-2 lg:px-0",children:[I.jsxs("span",{className:"justify-self-start text-3xs tracking-widest text-on-surface-variant",children:["© ",t," ",I.jsx(Xd,{children:Ze.author.toUpperCase()})]}),I.jsx(Xd,{className:"text-3xs tracking-widest text-on-surface-variant",children:n??"--:--:--"}),I.jsx("a",{href:Ze.github,target:"_blank",rel:"noopener noreferrer","aria-label":e.footer.githubLink,className:"justify-self-end",children:I.jsx(HP,{className:"text-on-surface-variant"})})]})}const m_=O.createContext({isSoundEnabled:!0,toggleSound:()=>{},setSoundEnabled:e=>{},soundVolume:0,setSoundVolume:e=>{}}),tz=({children:e})=>{const[t,n]=O.useState(()=>{if(typeof window<"u"){const d=localStorage.getItem("soundEnabled");return d!==null?JSON.parse(d):!0}return!0}),[r,a]=O.useState(()=>{if(typeof window<"u"){const d=localStorage.getItem("soundVolume");return d!==null?Number(d):0}return 0});O.useEffect(()=>{typeof window<"u"&&localStorage.setItem("soundEnabled",JSON.stringify(t))},[t]),O.useEffect(()=>{typeof window<"u"&&localStorage.setItem("soundVolume",String(r))},[r]);const s=O.useCallback(()=>{n(d=>!d)},[]),l=O.useCallback(d=>{n(d)},[]),f=O.useCallback(d=>{a(Math.min(100,Math.max(0,d)))},[]),h=O.useMemo(()=>({isSoundEnabled:t,toggleSound:s,setSoundEnabled:l,soundVolume:r,setSoundVolume:f}),[t,r,s,l,f]);return I.jsx(m_.Provider,{value:h,children:e})},nz=()=>
13O.useContext(m_),rz="/assets/click-CC5oMh0k.mp3",oz="/assets/open-ClYwXHF1.mp3";function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(null,arguments)}function az(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iz(e){O.useEffect(e,[])}var sz=["id","volume","playbackRate","soundEnabled","interrupt","onload"];function z5(e,t){var n=t===void 0?{}:t,r=n.volume,a=r===void 0?1:r,s=n.playbackRate,l=s===void 0?1:s,f=n.soundEnabled,h=f===void 0?!0:f,d=n.interrupt,p=d===void 0?!1:d,y=n.onload,b=az(n,sz),v=tn.useRef(null),S=tn.useRef(!1),w=tn.useState(null),_=w[0],A=w[1],E=tn.useState(null),C=E[0],R=E[1],z=function(){typeof y=="function"&&y.call(this),S.current&&A(this.duration()*1e3),R(this)};iz(function(){return eo(()=>import("./howler-C6DtKD59.js").then(N=>N.h),[]).then(function(N){if(!S.current){var F;v.current=(F=N.Howl)!==null&&F!==void 0?F:N.default.Howl,S.current=!0,new v.current(Kd({src:Array.isArray(e)?e:[e],volume:a,rate:l,onload:z},b))}}),function(){S.current=!1}}),tn.useEffect(function(){v.current&&C&&R(new v.current(Kd({src:Array.isArray(e)?e:[e],volume:a,onload:z},b)))},[JSON.stringify(e)]),tn.useEffect(function(){C&&(C.volume(a),b.sprite||C.rate(l))},[C,a,l]);var P=tn.useCallback(function(N){typeof N>"u"&&(N={}),!(!C||!h&&!N.forceSoundEnabled)&&(p&&C.stop(),N.playbackRate&&C.rate(N.playbackRate),C.play(N.id))},[C,h,p]),M=tn.useCallback(function(N){C&&C.stop(N)},[C]),k=tn.useCallback(function(N){C&&C.pause(N)},[C]),D=[P,{sound:C,stop:M,pause:k,duration:_}];return D}const p_=()=>{const{isSoundEnabled:e,soundVolume:t}=nz(),n=t/100,[r,{sound:a}]=z5(rz,{volume:n}),[s,{sound:l}]=z5(oz,{volume:n});return O.useEffect(()=>{a?.volume(n),l?.volume(n)},[n,a,l]),{playCloseSound:()=>{e&&r()},playOpenSound:()=>{e&&s()}}},cz=O.forwardRef(({className:e,textClassName:t,glitchDuration:n,glitchSpread:r,label:a,...s},l)=>I.jsxs("a",{ref:l,...s,className:mc("group inline-flex items-center font-medium text-on-surface transition-colors duration-200 hover:text-primary",e),children:[I.jsx("span",{className:"text-outline-variant mr-1 group-data-[status='active']:text-secondary transition-colors duration-200 group-hover:text-secondary",children:"["}),I.jsx(Xd,{className:t,duration:n,spread:r,children:a}),I.jsx("span",{className:"text-outline-variant ml-1 group-data-[status='active']:text-secondary transition-colors duration-200 group-hover:text-secondary",children:"]"})]})),lz=wO(cz),Pp=e=>{const{playOpenSound:t}=p_();return I.jsx(lz,{preload:"intent",onClick:t,...e})},uz=e=>{const[t,n]=tn.useState(!1);return tn.useEffect(()=>{const r=()=>n(window.scrollY>e);return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}},[e]),t};var fz=Array.isArray,Nh=e=>{if(!e&&e!==0&&e!==0n)return"";if(typeof e=="string")return e;if(typeof e=="number")return e!==e?"":""+e;if(typeof e=="bigint")return""+e;let t="";if(fz(e)){const n=e.length;for(let r=0;r<n;r++){const a=e[r];if(!a&&a!==0&&a!==0n)continue;const s=typeof a=="string"?a:Nh(a);s&&(t&&(t+=" "),t+=s)}return t}if(typeof e=="object")for(const n in e)e[n]&&(t&&(t+=" "),t+=n);return t},dz=/\s+/g,qg=Array.isArray,hz=e=>typeof e!="string"||!e?e:e.replace(dz," ").trim(),mz=e=>{const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0),r=e.charCodeAt(t-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let a=0;a<t;a++){const s=e.charCodeAt(a);if(s>=9&&s<=13||s===160||s===32&&a+1<t&&e.charCodeAt(a+1)===32)return!0}return!1},Bl=(...e)=>{const t=Nh(e);if(t)return mz(t)?hz(t):t},Xg=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Lr=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},g_=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=e,r=t,a=Object.keys(n),s=Object.keys(r);if(a.length!==s.length)return!1;for(let l=0;l<a.length;l++){const f=a[l];if(!s.includes(f)||n[f]!==r[f])return!1}return!0},pz=(e,t)=>
13{const n=e;for(const r in t)if(Object.hasOwn(t,r)){const a=t[r];r in n?n[r]=Bl(n[r],a):n[r]=a}return e},y_=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];qg(r)?y_(r,t):r&&t.push(r)}},Kg=(...e)=>{const t=[];y_(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},C1=(e,t)=>{const n=e,r=t,a={};for(const s in n){const l=n[s];if(s in r){const f=r[s];qg(l)||qg(f)?a[s]=Kg(f,l):typeof l=="object"&&typeof f=="object"&&l&&f?a[s]=C1(l,f):a[s]=f+" "+l}else a[s]=l}for(const s in r)s in n||(a[s]=r[s]);return a},gz={twMerge:!0,twMergeConfig:{}},b_=256,yz=128,ts=Symbol("tv-cache-miss"),bz=e=>e?.class!=null&&e.class!==""||e?.className!=null&&e.className!=="",D5=e=>{if(e===void 0)return"";if(e===null)return"null";if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number")return e===0?"0":String(e);if(typeof e=="bigint")return String(e);const t=Xg(e),n=typeof t;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return String(t);if(n==="object")try{return JSON.str
13ingify(t)}catch{return null}return null},Ks=(e,t)=>{if(t===void 0)return e;if(t===null)return e+"null";const n=typeof t;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return e+String(t);if(Array.isArray(t))return e+t.join("\0");try{return e+JSON.stringify(t)}catch{return e+"?"}},v_=(e,t,n,r)=>{let a="";const s=Object.create(null);for(let f=0;f<e.length;f++){const h=e[f];s[h]=1;let d=t[h];n&&n[h]!==void 0&&(d=n[h]);const p=D5(d);if(p===null)return null;a+=h+":"+p+";"}const l=[];for(const f in t)f==="class"||f==="className"||s[f]||(s[f]=1,l.push(f));if(n)for(const f in n)f==="class"||f==="className"||s[f]||n[f]===void 0||(s[f]=1,l.push(f));l.length>1&&l.sort();for(let f=0;f<l.length;f++){const h=l[f];let d=t[h];n&&n[h]!==void 0&&(d=n[h]);const p=D5(d);if(p===null)return null;a+=h+":"+p+";"}return a},S_=(e,t)=>{let n="";for(let r=0;r<e.length;r++){const{conditionKeys:a,source:s}=e[r];for(let l=0;l<a.length;l++){const f=a[l];n+=f+"=",n=Ks(n,s[f]),n+=","}n+="c=",n=Ks(n,s.class),n+="|cn=",n=Ks(n,s.className),n+=";"}for(let r=0;r<t.length;r++){const{conditionKeys:a,source:s}=t[r];for(let l=0;l<a.length;l++){const f=a[l];n+=f+"=",n=Ks(n,s[f]),n+=","}Array.isArray(s.slots)&&(n+="slots="+s.slots.join(",")+","),n+="c=",n=Ks(n,s.class),n+="|cn=",n=Ks(n,s.className),n+=";"}return n},w_=(e=b_)=>{let t=new Map,n=null;return{get(r){if(t.has(r))return t.get(r);if(n?.has(r)){const a=n.get(r);return t.set(r,a),a}return ts},set(r,a){t.size>=e&&(n=t,t=new Map),t.set(r,a)}}},vz=(e=b_)=>{const t=w_(e);return{get(n){return t.get(n)},set(n,r){t.set(n,r)}}},Sz=(e=yz)=>{let t=new Map,n=null,r=0;return{get(a,s){const l=t.get(a);if(l){const f=l.get(s);if(f!==void 0||l.has(s))return f}if(n){const f=n.get(a);if(f){const h=f.get(s);if(h!==void 0||f.has(s)){let d=t.get(a);return d||(d=new Map,t.set(a,d)),d.has(s)||r++,d.set(s,h),h}}}return ts},set(a,s,l){r>=e&&(n=t,t=new Map,r=0);let f=t.get(a);f||(f=new Map,t.set(a,f)),f.has(s)||r++,f.set(s,l)}}},A1=(e,t)=>{let n=null;return(r,a)=>{if(!bz(a))return r;const s=a.class,l=a.className;if(s!=null&&s!==""&&typeof s!="string"||l!=null&&l!==""&&typeof l!="string")return e(t,r,s,l);n??=Sz();const f=r??"",h=(typeof s=="string"?s:"")+"\0"+(typeof l=="string"?l:""),d=n.get(f,h);if(d!==ts)return d;const p=e(t,r,s,l);return n.set(f,h,p),p}};function wz(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var Jn=wz(),xz=e=>{!Lr(e.twMergeConfig)&&!g_(e.twMergeConfig,Jn.cachedTwMergeConfig)&&(Jn.didTwMergeConfigChange=!0,Jn.cachedTwMergeConfig=e.twMergeConfig)},_z=(e,t)=>{const n=[];for(let r=0;r<t.length;r++){const a=t[r],s=e[a];n.push({key:a,values:s,isEmpty:Lr(s)})}return n},Tz=e=>{if(!Array.isArray(e)||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=[];for(const s in r)s!=="class"&&s!=="className"&&a.push(s);t.push({conditionKeys:a,source:r})}return t},kz=e=>{if(!Array.isArray(e)||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=[];for(const s in r)s!=="slots"&&s!=="class"&&s!=="className"&&a.push(s);t.push({conditionKeys:a,source:r})}return t},Ez=e=>{const t={};for(let n=0;n<e.length;n++){const r=e[n],a=r.source.slots;if(Array.isArray(a))for(let s=0;s<a.length;s++){const l=a[s];t[l]||(t[l]=[]),t[l].push(r)}}return t},Cz=(e,t)=>{const{extend:n=null,slots:r={},variants:a={},compoundVariants:s=[],compoundSlots:l=[],defaultVariants:f={}}=e,h={...gz,...t},d=e.slots!==void 0,p=n?.base?Bl(n.base,e?.base):e?.base,y=n?.variants&&!Lr(n.variants)?C1(a,n.variants):a,b=n?.defaultVariants&&!Lr(n.defaultVariants)?{...n.defaultVariants,...f}:f;xz(h);const v=!n?.slots||Lr(n.slots),S=d?v&&n?.base?Bl(e?.base,n.base):typeof e?.base=="string"||e?.base==null?e.base:Bl(e.base):void 0,w=d?{base:S,...r}:{},_=v?w:pz({...n?.slots},Lr(w)?{base:e?.base}:w),A=!n?.compoundVariants||Lr(n.compoundVariants)?s:Kg(n?.compoundVariants,s),E=!n?.compoundSlots||Lr(n.compoundSlots)?l:Kg(n?.compoundSlots,l),C=Object.keys(y),R=A&&!Array.isArray(A)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof A}`):E&&!Array.isArray(E)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof E}`):null,z=d||!v?"slots":C.length===0?"plain":"variants";return{config:h,extend:n,base:p,variants:y,defaultVariants:b,slots:_,compoundVariants:A,compoundSlots:E,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:R,mode:z,slotKeys:null,variantKeys:C}},x_=e=>(e.compiledVariants!==null||(e.compiledVariants=_z(e.variants,e.variantKeys),e.compiledCompoundVariants=Tz(e.compoundVariants),e.compiledCompoundSlots=kz(e.compoundSlots),e.compiledCompoundSlotsBySlot=Ez(e.compiledCompoundSlots),e.slotKeys=e.slots&&typeof e.slots=="object"?Object.keys(e.slots):[]),e),Jg=[],__=[],Az=[],Rz=[],Mz=[],T_=(e,t,n
13)=>{const r={};for(const a in e)r[a]=e[a];if(t)for(const a in t)t[a]!==void 0&&(r[a]=t[a]);if(n)for(const a in n)n[a]!==void 0&&(r[a]=n[a]);return r},Kf=e=>e==null||e===!1,Oz=(e,t)=>{if(!Array.isArray(e))return e===t||Kf(e)&&Kf(t);for(let n=0;n<e.length;n++){const r=e[n];if(r===t||Kf(r)&&Kf(t))return!0}return!1},k_=(e,t,n,r)=>{if(e.isEmpty)return null;const a=r?.[e.key]??n?.[e.key];if(a===null)return null;const s=Xg(a);if(typeof s=="object")return null;const l=t?.[e.key],f=s??Xg(l);return e.values[f||"false"]},R1=(e,t)=>{const{conditionKeys:n,source:r}=e;for(let a=0;a<n.length;a++){const s=n[a];if(!Oz(r[s],t[s]))return!1}return!0},N5=(e,t,n)=>{typeof n=="string"?t==="base"&&e.push(n):n&&typeof n=="object"&&n[t]&&e.push(n[t])},Pz=(e,t,n)=>{const r=__;r.length=0;for(let a=0;a<e.length;a++){const s=k_(e[a],t,n);s&&r.push(s)}return r},zz=(e,t,n,r,a)=>{const s=__;s.length=0;for(let l=0;l<t.length;l++){const f=k_(t[l],n,r,a),h=e==="base"&&typeof f=="string"?f:f&&f[e];h&&s.push(h)}return s},Dz=(e,t)=>{const n=Az;n.length=0;for(let r=0;r<e.length;r++){const a=e[r];R1(a,t)&&(a.source.class&&n.push(a.source.class),a.source.className&&n.push(a.source.className))}return n},Nz=(e,t,n)=>{const r=Rz;r.length=0;for(let a=0;a<t.length;a++){const s=t[a];R1(s,n)&&(N5(r,e,s.source.class),N5(r,e,s.source.className))}return r},Lz=(e,t)=>{const n=Mz;n.length=0;for(let r=0;r<e.length;r++){const a=e[r];R1(a,t)&&(a.source.class&&n.push(a.source.class),a.source.className&&n.push(a.source.className))}return n},jz=(e,t)=>{const{base:n,config:r}=e;let a=ts;const s=A1(t,r);return(l=>(a===ts&&(a=t(r,n)),s(a,l)))},Bz=(e,t)=>{const{base:n,config:r,defaultVariants:a,deferredError:s,variantKeys:l}=e;let f=e.compiledCompoundVariants,h=e.compiledVariants,d=Jg,p=null;const y=A1(t,r);let b=1;const v=S=>{const w=f.length>0?Dz(f,T_(a,S)):void 0;return t(r,n,Pz(h,a,S),w)};return(S=>{if(s)throw s;(h===null||f===null)&&(x_(e),h=e.compiledVariants,f=e.compiledCompoundVariants,d=e.compiledCompoundSlots??Jg);let w;if(b>0)b--,w=v(S);else{p??=vz();const _=v_(l,a,S);if(_!==null){const A=f.length>0||d.length>0?S_(f,d):"",E=_+"#"+A,C=p.get(E);C!==ts?w=C:(w=v(S),p.set(E,w))}else w=v(S)}return y(w,S)})},Fz=(e,t)=>
13{const{config:n,defaultVariants:r,deferredError:a,slots:s,variantKeys:l}=e;let f=null,h=null,d=null,p=null,y=!1,b=null,v=null,S=1;const w=()=>{if(d!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&x_(e);const A=e.compiledVariants;f=e.compiledCompoundVariants,h=e.compiledCompoundSlots;const E=e.compiledCompoundSlotsBySlot;d=e.slotKeys,y=f.length>0||h.length>0,b=A1(t,n);const C=new Array(d.length);for(let R=0;R<d.length;R++){const z=d[R],P=E[z]??Jg;C[R]=(M,k)=>{const D=y?T_(r,M,k):void 0,N=D?Nz(z,f,D):void 0,F=D?Lz(P,D):void 0;return t(n,s[z],zz(z,A,r,M,k),N,F)}}p=C},_=A=>{const E=d,C=p,R=b,z={};for(let P=0;P<E.length;P++){const M=C[P],k=M(A);z[E[P]]=D=>{if(D==null)return k;let N=!1;for(const F in D)if(!(F==="class"||F==="className")&&D[F]!==void 0){N=!0;break}return R(N?M(A,D):k,D)}}return z};return(A=>{if(a)throw a;if(w(),S>0)return S--,_(A);const E=v_(l,r,A);if(E===null)return _(A);const C=y?S_(f,h):"",R=E+"#"+C;v??=w_();const z=v.get(R);if(z!==ts)return z;const P=_(A);return v.set(R,P),P})},Iz=(e,t)=>{if(e.mode==="plain")return jz(e,t);let n;return(r=>(n??=e.mode==="slots"?Fz(e,t):Bz(e,t),n(r)))},Hz=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},Vz=e=>{const t=(r,a)=>{const s=Cz(r,a),l=Iz(s,e);return Hz(l,s),l};return{tv:t,createTV:r=>(a,s)=>t(a,s?C1(r,s):r)}},Uz=(e,t)=>{const n=e.length,r=t.length,a=new Array(n+r);for(let s=0;s<n;s++)a[s]=e[s];for(let s=0;s<r;s++)a[n+s]=t[s];return a},$z=(e,t)=>({classGroupId:e,validator:t}),E_=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Jd="-",L5=[],Zz="arbitrary..",Yz=e=>{const t=qz(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l[0]==="["&&l[l.length-1]==="]")return Gz(l);const f=l.split(Jd),h=f[0]===""&&f.length>1?1:0;return C_(f,h,t)},getConflictingClassGroupIds:(l,f)=>{if(f){const h=r[l],d=n[l];return h?d?Uz(d,h):h:d||L5}return n[l]||L5}}},C_=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],s=n.nextPart.get(a);if(s){const d=C_(e,t+1,s);if(d)return d}const l=n.validators;if(l===null)return;const f=t===0?e.join(Jd):e.slice(t).join(Jd),h=l.length;for(let d=0;d<h;d++){const p=l[d];if(p.validator(f))return p.classGroupId}},Gz=e=>{const t=e.slice(1,-1),n=t.indexOf(":");if(n===-1)return;const r=t.slice(0,n);return r?Zz+r:void 0},qz=e=>{const{theme:t,classGroups:n}=e;return Xz(n,t)},Xz=(e,t)=>{const n=E_();for(const r in e){const a=e[r];M1(a,n,r,t)}return n},M1=(e,t,n,r)=>{const a=e.length;for(let s=0;s<a;s++){const l=e[s];Kz(l,t,n,r)}},Kz=(e,t,n,r)=>{if(typeof e=="string"){Jz(e,t,n);return}if(typeof e=="function"){Qz(e,t,n,r);return}Wz(e,t,n,r)},Jz=(e,t,n)=>{const r=e===""?t:A_(t,e);r.classGroupId=n},Qz=(e,t,n,r)=>{if(eD(e)){M1(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push($z(n,e))},Wz=(e,t,n,r)=>{const a=Object.entries(e),s=a.length;for(let l=0;l<s;l++){const[f,h]=a[l];M1(h,A_(t,f),n,r)}},A_=(e,t)=>
13{let n=e;const r=t.split(Jd),a=r.length;for(let s=0;s<a;s++){const l=r[s];let f=n.nextPart.get(l);f||(f=E_(),n.nextPart.set(l,f)),n=f}return n},eD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tD="!",nD=58,rD=47,oD=91,aD=93,iD=40,sD=41,j5=33,cD=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),B5=e=>{const t=[];let n=0,r=0,a=0,s;const l=e.length;for(let b=0;b<l;b++){const v=e.charCodeAt(b);if(n===0&&r===0){if(v===nD){t.push(e.slice(a,b)),a=b+1;continue}if(v===rD){s=b;continue}}v===oD?n++:v===aD?n--:v===iD?r++:v===sD&&r--}const f=t.length===0?e:e.slice(a);let h=f,d=!1;const p=f.length-1;f.charCodeAt(p)===j5?(h=f.slice(0,-1),d=!0):f.charCodeAt(0)===j5&&(h=f.slice(1),d=!0);const y=s&&s>a?s-a:void 0;return cD(t,d,h,y)},lD=e=>{const t=new Set(e.orderSensitiveModifiers);return n=>{const r=[];let a=[];for(let s=0;s<n.length;s++){const l=n[s],f=l[0]==="[",h=t.has(l);if(f||h){if(a.length>0){a.sort();for(let d=0;d<a.length;d++)r.push(a[d]);a=[]}r.push(l)}else a.push(l)}if(a.length>0){a.sort();for(let s=0;s<a.length;s++)r.push(a[s])}return r}},zp={isExternal:!0,classId:-1,conflictIds:[]},uD=4096,fD=16384,dD=e=>{const t=lD(e),n=hD(e),{getClassGroupId:r,getConflictingClassGroupIds:a}=Yz(e);let s=Object.create(null),l=Object.create(null),f=0,h=new Int32Array(256),d=0,p=new Uint8Array(64),y=!1;const b=C=>{const R=[],z=C.length;let P=-1;y=!1;for(let M=0;M<z;M++){const k=C.charCodeAt(M);k===32?P!==-1&&(R.push(C.slice(P,M)),P=-1):k>=9&&k<=13?(y=!0,P!==-1&&(R.push(C.slice(P,M)),P=-1)):P===-1&&(P=M)}return P!==-1&&R.push(C.slice(P)),R},v=new Map;let S=0;const w=C=>{let R=v.get(C);if(R===void 0&&(R=S++,v.set(C,R),R>=h.length)){const z=new Int32Array(h.length*2);z.set(h),h=z}return R},_=C=>{const{isExternal:R,modifiers:z,hasImportantModifier:P,baseClassName:M,maybePostfixModifierPosition:k}=B5(C);if(R)return zp;let D=!!k,N;if(D){const se=M.substring(0,k);N=r(se);const B=N&&n[N]?r(M):void 0;B&&B!==N&&(N=B,D=!1)}else N=r(M);if(!N){if(!D||(N=r(M),!N))return zp;D=!1}const F=z.length===0?"":z.length===1?z[0]:t(z).join(":"),Y=P?F+tD:F,J=a(N,D),fe=[];for(let se=0;se<J.length;se++)fe.push(w(Y+J[se]));return{isExternal:!1,classId:w(Y+N),conflictIds:fe}},A=C=>{let R=s[C];return R!==void 0||(R=l[C],R===void 0&&(R=_(C)),s[C]=R,++f>uD&&(f=0,l=s,s=Object.create(null))),R};return{parseClassName:B5,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:a,getClassDescriptor:A,mergeClassList:C=>{const R=b(C),z=R.length;if(z===1)return R[0];S>fD&&(v.clear(),S=0,s=Object.create(null),l=Object.create(null),f=0),d=d+1|0,d===0&&(d=1);const P=d;if(z>p.length){let N=p.length;for(;N<z;)N*=2;p=new Uint8Array(N)}let M=!1,k=0;for(let N=z-1;N>=0;N-=1){const F=R[N];k+=F.length;const Y=A(F);if(Y.isExternal){p[N]=1;continue}const J=Y.classId;if(h[J]===P){p[N]=0,M=!0;continue}h[J]=P;const fe=Y.conflictIds;for(let se=0;se<fe.length;se++)h[fe[se]]=P;p[N]=1}if(!M&&!y&&C.length===k+z-1)return C;let D="";for(let N=0;N<z;N++)p[N]===1&&(D&&(D+=" "),D+=R[N]);return D}}},hD=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},mD=500,F5=e=>{let t,n,r=Object.create(null),a=Object.create(null),s=0;const l=d=>(t=dD(e()),n=t.mergeClassList,h.mergeString=f,f(d)),f=d=>{let p=r[d];return p!==void 0||(p=a[d],p===void 0&&(p=n(d)),r[d]=p,++s>mD&&(s=0,a=r,r=Object.create(null))),p},h=(...d)=>h.mergeString(Nh(d));return h.mergeString=l,h},pD=[],vn=e=>{const t=n=>n[e]||pD;return t.isThemeGetter=!0,t},R_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,yD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bD=/\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$/,vD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,SD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O_=Number,xD=Number.isNaN,_D=Number.isInteger,Za=e=>gD.test(e),Ke=e=>!!e&&!xD(O_(e)),lo=e=>!!e&&_D(O_(e)),Dp=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),Uo=e=>yD.test(e),P_=()=>!0,TD=e=>bD.test(e)&&!vD.test(e),O1=()=>!1,kD=e=>SD.test(e),ED=e=>wD.test(e),CD=e=>!_e(e)&&!ke(e),AD=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),RD=e=>mi(e,N_,O1),_e=e=>R_.test(e),Bi=e=>mi(e,L_,TD),I5=e=>mi(e,jD,Ke),MD=e=>mi(e,B_,P_),OD=e=>mi(e,j_,O1),H5=e=>mi(e,z_,O1),PD=e=>mi(e,D_,ED),Jf=e=>mi(e,F_,kD),ke=e=>M_.test(e),El=e=>ls(e,L_),zD=e=>ls(e,j_),V5=e=>ls(e,z_),DD=e=>ls(e,N_),ND=e=>ls(e,D_),Qf=e=>ls(e,F_,!0),LD=e=>ls(e,B_,!0),mi=(e,t,n)=>{const r=R_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ls=(e,t,n=!1)=>{const r=M_.exec(e);return r?r[1]?t(r[1]):n:!1},z_=e=>e==="position"||e==="percentage",D_=e=>e==="image"||e==="url",N_=e=>e==="length"||e==="size"||e==="bg-size",L_=e=>e==="length",jD=e=>e==="number",j_=e=>e==="family-name",B_=e=>e==="number"||e==="weight",F_=e=>e==="shadow",Np=()=>{const e=vn("color"),t=vn("font"),n=vn("text"),r=vn("font-weight"),a=vn("tracking"),s=vn("leading"),l=vn("breakpoint"),f=vn("container"),h=vn("spacing"),d=vn("radius"),p=vn("shadow"),y=vn("inset-shadow"),b=vn("text-shadow"),v=vn("drop-shadow"),S=vn("blur"),w=vn("perspective"),_=vn("aspect"),A=vn("ease"),E=vn("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...R(),ke,_e],P=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],k=()=>[ke,_e,h],D=()=>[Za,"full","auto",...k()],N=()=>[lo,"none","subgrid",ke,_e],F=()=>["auto",{span:["full",lo,ke,_e]},lo,ke,_e],Y=()=>[lo,"auto",ke,_e],J=()=>["auto","min","max","fr",ke,_e],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...k()],G=()=>[Za,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],ae=()=>[Za,"screen","full","dvw","lvw","svw","min","max","fit",...k()],ce=()=>[Za,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],V=()=>[e,ke,_e],L=()=>[...R(),V5,H5,{position:[ke,_e]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",DD,RD,{size:[ke,_e]}],ue=()=>[Dp,El,Bi],de=()=>["","none","full",d,ke,_e],pe=()=>["",Ke,El,Bi],Ae=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[Ke,Dp,V5,H5],nt=()=>["","none",S,ke,_e],pt=()=>["none",Ke,ke,_e],bt=()=>["none",Ke,ke,_e],Ft=()=>[Ke,ke,_e],st=()=>[Za,"full",...k()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Uo],breakpoint:[Uo],color:[P_],container:[Uo],"drop-shadow":[Uo],ease:["in","out","in-out"],font:[CD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Uo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Uo],shadow:[Uo],spacing:["px",Ke],text:[Uo],"text-shadow":[Uo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Za,_e,ke,_]}],container:["container"],"container-type":[{"@container":["","normal","size",ke,_e]}
vendor: 6,137 bytes, line 13
13],"container-named":[AD],columns:[{columns:[Ke,_e,ke,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:z()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[lo,"auto",ke,_e]}],basis:[{basis:[Za,"full","auto",f,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,Za,"auto","initial","none",_e]}],grow:[{grow:["",Ke,ke,_e]}],shrink:[{shrink:["",Ke,ke,_e]}],order:[{order:[lo,"first","last","none",ke,_e]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[f,"screen",...G()]}],"min-w":[{"min-w":[f,"screen","none",...G()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,El,Bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,LD,MD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dp,_e]}],"font-family":[{font:[zD,OD,t]}],"font-features":[{"font-features":[_e]}],"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:[a,ke,_e]}],"line-clamp":[{"line-clamp":[Ke,"none",ke,I5]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",ke,_e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,_e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",ke,Bi]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Ke,"auto",ke,_e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[lo,ke,_e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},lo,ke,_e],radial:["",ke,_e],conic:[lo,ke,_e]},ND,PD]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ue()}
vendor: 6,904 bytes, line 13
13],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-bs":[{"border-bs":pe()}],"border-w-be":[{"border-be":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,ke,_e]}],"outline-w":[{outline:["",Ke,El,Bi]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",p,Qf,Jf]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,Qf,Jf]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Ke,Bi]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",b,Qf,Jf]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Ke,ke,_e]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[ke,_e]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,_e]}],filter:[{filter:["","none",ke,_e]}],blur:[{blur:nt()}],brightness:[{brightness:[Ke,ke,_e]}],contrast:[{contrast:[Ke,ke,_e]}],"drop-shadow":[{"drop-shadow":["","none",v,Qf,Jf]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Ke,ke,_e]}],"hue-rotate":[{"hue-rotate":[Ke,ke,_e]}],invert:[{invert:["",Ke,ke,_e]}],saturate:[{saturate:[Ke,ke,_e]}],sepia:[{sepia:["",Ke,ke,_e]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,_e]}],"backdrop-blur":[{"backdrop-blur":nt()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,ke,_e]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,ke,_e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,ke,_e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,ke,_e]}],"backdrop-invert":[{"backdrop-invert":["",Ke,ke,_e]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,ke,_e]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,ke,_e]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,ke,_e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,_e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",ke,_e]}],ease:[{ease:["linear","initial",A,ke,_e]}],delay:[{delay:[Ke,ke,_e]}],animate:[{animate:["none",E,ke,_e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ke,_e]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:pt()}],"rotate-x":[{"rotate-x":pt()}],"rotate-y":[{"rotate-y":pt()}],"rotate-z":[{"rotate-z":pt()}],scale:[{scale:bt()}],"scale-x":[{"scale-x":bt()}],"scale-y":[{"scale-y":bt()}],"scale-z":[{"scale-z":bt()}
vendor: 6,134 bytes, line 13
13],"scale-3d":["scale-3d"],skew:[{skew:Ft()}],"skew-x":[{"skew-x":Ft()}],"skew-y":[{"skew-y":Ft()}],transform:[{transform:[ke,_e,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],zoom:[{zoom:[lo,ke,_e]}],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ke,_e]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":V()}],"scrollbar-track-color":[{"scrollbar-track":V()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ke,_e]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Ke,El,Bi,I5]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},BD=(e,{extend:t={},override:n={}})=>(Wf(e.theme,n.theme),Wf(e.classGroups,n.classGroups),Wf(e.conflictingClassGroups,n.conflictingClassGroups),Wf(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Qg(e,"postfixLookupClassGroups",n.postfixLookupClassGroups),Qg(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),ed(e.theme,t.theme),ed(e.classGroups,t.classGroups),ed(e.conflictingClassGroups,t.conflictingClassGroups),ed(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),Wg(e,t,"postfixLookupClassGroups"),Wg(e,t,"orderSensitiveModifiers"),e),Qg=(e,t,n
13)=>{n!==void 0&&(e[t]=n)},Wf=(e,t)=>{if(t)for(const n in t)Qg(e,n,t[n])},ed=(e,t)=>{if(t)for(const n in t)Wg(e,t,n)},Wg=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},I_=e=>F5(e?typeof e=="function"?()=>e(Np()):()=>BD(Np(),e):Np),FD=e=>{if(Lr(e))return;const t=e,n={...t.extend??{}};for(const a of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])t[a]!==void 0&&n[a]===void 0&&(n[a]=t[a]);const r={};if(Object.keys(n).length>0&&(r.extend=n),t.override!=null&&!Lr(t.override)&&(r.override=t.override),!(!r.extend&&!r.override))return r},ID=e=>{const t=FD(e),n=I_(t);return r=>n.mergeString(r)},Nd,H_=()=>(Nd||(Nd=I_()),Nd),HD=()=>((!Jn.cachedTwMerge||Jn.didTwMergeConfigChange)&&(Jn.didTwMergeConfigChange=!1,Jn.cachedTwMerge=ID(Jn.cachedTwMergeConfig)),Jn.cachedTwMerge),VD=e=>{const t=e?.twMergeConfig;!t||Lr(t)||g_(t,Jn.cachedTwMergeConfig)||(Jn.cachedTwMergeConfig=t,Jn.didTwMergeConfigChange=!0)},Qd=e=>Nh(e),UD=(()=>{const e=new Error;return!("line"in e)&&!("lineNumber"in e)})(),$D=64,ZD=500,nc=new Map,P1=new Map,ey=0,YD=()=>{nc=new Map,P1=new Map,ey=0},Fl=e=>{if(e)return e.indexOf(" ")===-1?e:H_().mergeString(e)||void 0},GD=(e,t,n)=>{let r=nc.get(e);r===void 0&&(r=[],nc.set(e,r)),r.length>=$D&&r.shift(),r.push({rest:t,result:n}),++ey>ZD&&(ey=0,P1=nc,nc=new Map)},qD=(e,t,n,r,a)=>{let s=nc.get(e);if(s===void 0&&(s=P1.get(e)),s!==void 0)for(let l=0;l<s.length;l++){const f=s[l],h=f.rest;if(h.length!==n-1)continue;let d=0,p=!0;for(let y=t+1;y<r;y++){const b=a(y);if(b&&b!==h[d++]){p=!1;break}}if(p)return f.result}},XD=(e,t)=>{let n="",r=-1,a=0,s=!0;for(let p=0;p<e;p++){const y=t(p);if(y){if(typeof y!="string"){s=!1;break}r===-1&&(n=y,r=p),a++}}if(!s){const p=new Array(e);for(let y=0;y<e;y++)p[y]=t(y);return Fl(Qd(p))}if(a===0)return;if(a===1)return Fl(n);const l=qD(n,r,a,e,t);if(l!==void 0)return l||void 0;let f=n;const h=[];for(let p=r+1;p<e;p++){const y=t(p);y&&(f+=" "+y,h.push(y))}const d=Fl(f)??"";return GD(n,h,d),d||void 0},KD=Jn.reset.bind(Jn);Jn.reset=()=>{Nd=void 0,YD(),KD()};var JD=(e,t)=>{const n=Qd(e);return!n||!(t?.twMerge??!0)?n||void 0:n.indexOf(" ")===-1?n:(VD(t),(!!(t?.twMergeConfig&&!Lr(t.twMergeConfig))?HD():H_().mergeString)(n)||void 0)},QD=(e,...t)=>JD(t,e),Ka=function(){const t=arguments.length;if(t===0)return;const n=arguments[0];if(t===1){const a=typeof n=="string"?n:Qd([n]);return Fl(a)}if(UD)return XD(t,a=>arguments[a]);const r=new Array(t);for(let a=0;a<t;a++)r[a]=arguments[a];return Fl(Qd(r))},WD=Vz(QD),z1=WD.tv,ha=Bl;const eN=({className:e})=>I.jsx("svg",{viewBox:"0 0 472 748",xmlns:"http://www.w3.org/2000/svg",className:Ka("text-primary size-6",e),"aria-hidden":"true",children:I.jsx("path",{fill:"currentColor",d:"M180 0 3 69v388l179-119 1-143 161 113L0 540v90l178 118V611l293-198 1-209L180 0Z"})});function Lh(){return typeof window<"u"}function mr(e){return D1(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ma(e){var t;return(t=(D1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function D1(e){return Lh()?e instanceof Node||e instanceof Mn(e).Node:!1}function Rn(e){return Lh()?e instanceof Element||e instanceof Mn(e).Element:!1}function Pn(e){return Lh()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function Wd(e){return!Lh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}function jh(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function tN(e){return/^(table|td|th)$/.test(mr(e))}function Bh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const nN=/transform|translate|scale|rotate|perspective|filter/,rN=/paint|layout|strict|content/,Fi=e=>!!e&&e!=="none";let Lp;function N1(e){const t=Rn(e)?pr(e):e;return Fi(t.transform)||Fi(t.translate)||Fi(t.scale)||Fi(t.rotate)||Fi(t.perspective)||!L1()&&(Fi(t.backdropFilter)||Fi(t.filter))||nN.test(t.willChange||"")||rN.test(t.contain||"")}function oN(e){let t=ca(e);for(;
13Pn(t)&&!ns(t);){if(N1(t))return t;if(Bh(t))return null;t=ca(t)}return null}function L1(){return Lp==null&&(Lp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Lp}function ns(e){return/^(html|body|#document)$/.test(mr(e))}function pr(e){return Mn(e).getComputedStyle(e)}function Fh(e){return Rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(mr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||ma(e);return Wd(t)?t.host:t}function V_(e){const t=ca(e);return ns(t)?(e.ownerDocument||e).body:Pn(t)&&jh(t)?t:V_(t)}function su(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=V_(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=Mn(a);if(s){const f=ty(l);return t.concat(l,l.visualViewport||[],jh(a)?a:[],f&&n?su(f):[])}else return t.concat(a,su(a,[],n))}function ty(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const j1={...DC},U5={};function So(e,t){const n=O.useRef(U5);return n.current===U5&&(n.current=e(t)),n}const jp=j1.useInsertionEffect,aN=jp&&jp!==j1.useLayoutEffect?jp:e=>e();function Kn(e){const t=So(iN).current;return t.next=e,aN(t.effect),t.trampoline}function iN(){const e={next:void 0,callback:sN,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function sN(){}const cN=()=>{},nn=typeof document<"u"?O.useLayoutEffect:cN;function ny(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const B1={};function F1(e,t,n,r,a){if(!n&&!r&&!a&&!e)return eh(t);let s=eh(e);return t&&(s=Ml(s,t)),n&&(s=Ml(s,n)),r&&(s=Ml(s,r)),a&&(s=Ml(s,a)),s}function lN(e){if(e.length===0)return B1;if(e.length===1)return eh(e[0]);let t=eh(e[0]);for(let n=1;n<e.length;n+=1)t=Ml(t,e[n]);return t}function eh(e){return I1(e)?{...$_(e,B1)}:uN(e)}function Ml(e,t){return I1(t)?$_(t,e):fN(e,t)}function uN(e){const t={...e};for(const n in t){const r=t[n];U_(n,r)&&(t[n]=Z_(r))}return t}function fN(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=ny(e.style,r);break}case"className":{e[n]=Y_(e.className,r);break}default:U_(n,r)?e[n]=dN(e[n],r):e[n]=r}}return e}function U_(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),a=e.charCodeAt(2);return n===111&&r===110&&a>=65&&a<=90&&(typeof t=="function"||typeof t>"u")}function I1(e){return typeof e=="function"}function $_(e,t){return I1(e)?e(t):e??B1}function dN(e,t){return t?e?(...n)=>{const r=n[0];if(G_(r)){const s=r;th(s);const l=t(...n);return s.baseUIHandlerPrevented||e?.(...n),l}const a=t(...n);return e?.(...n),a}:Z_(t):e}function Z_(e){return e&&((...t)=>{const n=t[0];return G_(n)&&th(n),e(...t)})}function th(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Y_(e,t){return t?e?t+" "+e:t:e}function G_(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function hN(e,t){return function(r,...a){const s=new URL(e);return s.searchParams.set("code",r.toString()),a.forEach(l=>s.searchParams.append("args[]",l)),`${t} error #${r}; visit ${s} for the full message.`}}const Su=hN("https://base-ui.com/production-error","Base UI"),mN=O.createContext(void 0);function pN(e=!1){const t=O.useContext(mN);if(t===void 0&&!e)throw new Error(Su(16));return t}function gN(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:a=0,isNativeButton:s}=e,l=r&&t!==!1,f=r&&t===!1;return{props:O.useMemo(()=>{const d={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(d.tabIndex=a,!s&&n&&(d.tabIndex=t?a:-1)),(s&&(t||l)||!s&&n)&&(d["aria-disabled"]=n),s&&(!t||f)&&(d.disabled=n),d},[r,n,t,l,f,s,a])}}function hr(e){return e?.ownerDocument||document}function Bp(e,t,{detail:n=0}={}){e.dispatchEvent(new(Mn(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function H1(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:a=!0,composite:s}=e,l=O.useRef(null),f=pN(!0),h=s??f!==void 0,{props:d}=gN({focusableWhenDisabled:n,disabled:t,composite:h,tabIndex:r,isNativeButton:a}),p=O.useCallback(()=>{const v=l.current;Fp(v)&&h&&t&&d.disabled===void 0&&v.disabled&&(v.disabled=!1)},[t,d.disabled,h]);nn(p,[p]);const y=O.useCallback((v={})=>{const{onClick:S,onMouseDown:w,onKeyUp:_,onKeyDown:A,onPointerDown:E,...C}=v;return F1({onClick(R){if(t){R.preventDefault();return}S?.(R)},onMouseDown(R){t||w?.(R)}
13,onKeyDown(R){if(t||(th(R),A?.(R),R.baseUIHandlerPrevented))return;const z=R.target===R.currentTarget,P=R.currentTarget,M=Fp(P),k=!a&&yN(P),D=z&&(a?M:!k),N=R.key==="Enter",F=R.key===" ",Y=P.getAttribute("role"),J=Y?.startsWith("menuitem")||Y==="option"||Y==="gridcell";if(z&&h&&F){if(R.defaultPrevented&&J)return;R.preventDefault(),(!a||M)&&(R.preventBaseUIHandler(),Bp(P,R));return}if(!D||a||!F&&!N){z&&k&&F&&R.preventDefault();return}R.defaultPrevented||(R.preventDefault(),N&&(R.preventBaseUIHandler(),Bp(P,R)))},onKeyUp(R){if(!t){if(th(R),_?.(R),R.target===R.currentTarget&&a&&h&&Fp(R.currentTarget)&&R.key===" "){R.preventDefault();return}R.baseUIHandlerPrevented||R.target===R.currentTarget&&!a&&!h&&!R.defaultPrevented&&R.key===" "&&(R.preventBaseUIHandler(),Bp(R.currentTarget,R))}},onPointerDown(R){if(t){R.preventDefault();return}E?.(R)}},a?{type:"button"}:{role:"button"},d,C)},[t,d,h,a]),b=Kn(v=>{l.current=v,p()});return{getButtonProps:y,buttonRef:b}}function Fp(e){return Pn(e)&&e.tagName==="BUTTON"}function yN(e){return Pn(e)&&e.tagName==="A"&&!!e.href}function $5(e,t,n,r){const a=So(q_).current;return vN(a,e,t,n,r)&&X_(a,[e,t,n,r]),a.callback}function bN(e){const t=So(q_).current;return SN(t,e)&&X_(t,e),t.callback}function q_(){return{callback:null,cleanup:null,refs:[]}}function vN(e,t,n,r,a){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==a}function SN(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function X_(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let a=0;a<t.length;a+=1){const s=t[a];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[a]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let a=0;a<t.length;a+=1){const s=t[a];if(s!=null)switch(typeof s){case"function":{const l=r[a];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const wN=parseInt(O.version,10);function V1(e){return wN>=e}function Z5(e){if(!O.isValidElement(e))return null;const t=e,n=t.props;return(V1(19)?n?.ref:t.ref)??null}function K_(){}const xN=Object.freeze([]),po=Object.freeze({});function _N(e,t){const n={};for(const r in e){const a=e[r];if(t?.hasOwnProperty(r)){const s=t[r](a);s!=null&&Object.assign(n,s);continue}a===!0?n[`data-${r.toLowerCase()}`]="":a&&(n[`data-${r.toLowerCase()}`]=a.toString())}return n}function TN(e,t){return typeof e=="function"?e(t):e}function kN(e,t){return typeof e=="function"?e(t):e}function to(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=RN(r));const a=EN(t,n,r);if(n.enabled===!1)return null;const s=n.state??po;return MN(e,r,a,s)}function EN(e,t,n){const{className:r,style:a}=e,{state:s=po,ref:l,props:f,stateAttributesMapping:h,enabled:d=!0}=t,p=d?TN(r,s):void 0,y=d?kN(a,s):void 0,b=d?_N(s,h):po,v=d&&f?CN(f):void 0,S=d?ny(b,v)??{}:po;return typeof document<"u"&&(d?Array.isArray(l)?S.ref=bN([S.ref,Z5(n),...l]):S.ref=$5(S.ref,Z5(n),l):$5(null,null)),d?(p!==void 0&&(S.className=Y_(S.className,p)),y!==void 0&&(S.style=ny(S.style,y)),S):po}function CN(e){return Array.isArray(e)?lN(e):F1(void 0,e)}const AN=Symbol.for("react.lazy");function RN(e){if(e?.$$typeof!==AN)return e;const t=O.Children.toArray(e)[0];return O.isValidElement(t)?t:e}function MN(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const a=F1(n,t.props);return a.ref=n.ref,O.cloneElement(t,a)}if(e&&typeof e=="string")return ON(e,n);throw new Error(Su(8))}function ON(e,t){return e==="button"?O.createElement("button",{type:"button",...t,key:t.key}):e==="img"?O.createElement("img",{alt:"",...t,key:t.key}):O.createElement(e,t)}const PN=O.forwardRef(function(t,n){const{render:r,className:a,disabled:s=!1,focusableWhenDisabled:l=!1,nativeButton:f=!0,style:h,...d}=t,{getButtonProps:p,buttonRef:y}=H1({disabled:s,focusableWhenDisabled:l,native:f});return to("button",t,{state:{disabled:s},ref:[n,y],props:[d,p]})}),J_=ha(["aria-invalid:border aria-invalid:border-error aria-invalid:ring-4 aria-invalid:ring-error/12"]);ha(["aria-invalid:border aria-invalid:border-error/87","data-invalid:border data-invalid:border-error/87"]);const zN=ha(["data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 data-disabled:shadow-none","aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50 aria-disabled:shadow-none"]),td=ha(["focus-visible:outline-none focus-visible:border-primary/87 focus-visible:ring-primary/12 focus-visible:ring-3"]);ha(["focus-visible:outline-none focus-visible:border-primary/87"]);const jJ=ha(["focus-visible:outline-none focus-within:ring-3 focus-within:border-primary/87 focus-within:ring-primary/12",J_]),nd=ha(["focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60"]),DN=ha(["focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary-container"]),NN=ha(["focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-tertiary-container"]),LN=Ka(["focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error/60 dark:focus-visible:outline-error-container/60"]),ry=z1({base:["inline-flex items-center justify-center gap-2 text-sm font-medium rounded-md whitespace-nowrap transition-[border-color,color,background-color,box-shadow,opacity,outline-color] shadow-xl border border-transparent outline-transparent","select-none shrink-0 shadow-none","[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0",zN,J_],variants:{size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",icon:"size-9 [&_svg:not([class*='size-'])]:size-4.5","icon-lg":"size-10 [&_svg:not([class*='size-'])]:size-5","icon-sm":"size-8","icon-xs":"size-6 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-10 px-6 has-[>svg]:px-4 text-base",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5"},variant:{brand:["bg-primary-container text-on-primary-container","hover:bg-[color-mix(in_oklab,var(--color-on-primary-container)_8%,var(--color-primary-container))]","active:bg-[color-mix(in_oklab,var(--color-on-primary-container)_12%,var(--color-primary-container))]",nd],primary:["bg-primary text-on-primary","hover:bg-[color-mix(in_oklab,var(--color-on-primary)_8%,var(--color-primary))]","active:bg-[color-mix(in_oklab,var(--color-on-primary)_12%,var(--color-primary))]",nd],secondary:["bg-secondary-container text-on-secondary-container","hover:bg-[color-mix(in_srgb,var(--color-on-secondary-container)_8%,var(--color-secondary-container))]",DN,"active:bg-[color-mix(in_srgb,var(--color-on-secondary-container)_12%,var(--color-secondary-container))]","data-
13popup-open:bg-[color-mix(in_srgb,var(--color-on-secondary-container)_12%,var(--color-secondary-container))]"],tertiary:["bg-tertiary text-on-tertiary","hover:bg-[color-mix(in_srgb,var(--color-on-tertiary)_8%,var(--color-tertiary))]",NN,"active:bg-[color-mix(in_srgb,var(--color-on-tertiary)_12%,var(--color-tertiary))]"],inverse:["bg-inverse-surface text-inverse-on-surface","hover:bg-[color-mix(in_srgb,var(--color-inverse-on-surface)_8%,var(--color-inverse-surface))]","active:bg-[color-mix(in_srgb,var(--color-inverse-on-surface)_12%,var(--color-inverse-surface))]",nd],danger:["bg-error text-on-error","hover:bg-[color-mix(in_srgb,var(--color-on-error)_8%,var(--color-error))]",LN,"active:bg-[color-mix(in_srgb,var(--color-on-error)_12%,var(--color-error))]"],ghost:["shadow-none hover:bg-primary/8 active:bg-primary/12",td],link:["text-primary shadow-none decoration-primary underline-offset-4 hover:underline aria-invalid:text-error",td],outline:["border-outline-variant shadow-none bg-transparent text-on-surface bg-clip-padding","hover:bg-primary/8","active:bg-primary/12",td],unstyled:["bg-transparent hover:bg-transparent",td],glow:["bg-transparent border border-primary/30 dark:border-primary/15 hover:bg-primary/8 shadow-md shadow-primary/10 dark:shadow-sm",nd]}},defaultVariants:{size:"default",variant:"brand",shape:"default"}}),jN=({className:e,variant:t="brand",size:n,isLoading:r,disabled:a,focusableWhenDisabled:s,...l})=>I.jsx(PN,{className:ry({variant:t,size:n,className:e}),disabled:a||r,focusableWhenDisabled:s||r,...l}),BN=({className:e})=>I.jsx("svg",{className:mc("fill-current size-4",e),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I.jsx("path",{d:"m22,9v-2h-1v-2h-1v-1h-1v-1h-2v-1h-2v-1h-6v1h-2v1h-2v1h-1v1h-1v2h-1v2h-1v7h1v1h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1v-6h-1Zm-1,1v4h-3v-4h3Zm-5-6h1v1h2v2h1v1h-3v-3h-1v-1Zm-2,14v2h-1v1h-2v-1h-1v-2h-1v-2h6v2h-1Zm2-8v4h-8v-4h8Zm-7-4h1v-2h1v-1h2v1h1v2h1v2h-6v-2Zm-5,1h1v-2h2v-1h1v1h-1v3h-3v-1Zm-1,7v-4h3v4h-3Zm2,5v-2h-1v-1h3v3h1v1h-1v-1h-2Zm14-2v2h-2v1h-1v-1h1v-3h3v1h-1Z"})}),Y5=/^\/zh(?=\/|$)/;function FN(){const{pathname:e,searchStr:t}=w1({select:s=>({pathname:s.location.pathname,searchStr:s.location.searchStr})}),n=Y5.test(e),r=n?e.replace(Y5,"")||"/":e;return{isZh:n,href:s=>s==="zh"?`/zh${r==="/"?"":r}${t||""}`:`${r}${t||""}`}}function IN(){const e=vu(),{isZh:t,href:n}=FN(),{playOpenSound:r}=p_();return I.jsxs(jN,{variant:"unstyled",nativeButton:!1,className:"group h-full w-16 font-heading uppercase font-medium hover:bg-primary/8 cursor-pointer shadow-none!","aria-label":e.localeToggle.label,onClick:r,render:I.jsx(di,{to:n(t?"en":"zh")}),children:[I.jsx(BN,{className:"size-3.5 text-on-surface-variant group-hover:text-on-surface"}),I.jsx("span",{className:"font-bold text-on-surface-variant group-hover:text-on-surface",children:I.jsx(Xd,{children:t?"EN":"ä¸"})})]})}const HN=O.lazy(()=>eo(()=>import("./seed-color-button-BNRVYwyU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])).then(e=>({default:e.SeedColorButton}))),VN=O.lazy(()=>eo(()=>import("./site-command-menu-D6xbruFG.js"),__vite__mapDeps([20,21,12,2,7,5,4,22,23,24,3,9,14,16,25,6,26,27,10,28,29,11,30,31])).then(e=>({default:e.SiteCommandMenu}))),UN=O.lazy(()=>eo(()=>import("./settings-sheet-C9pGFIYY.js"),__vite__mapDeps([32,33,2,27,5,10,16,14,4,31,1,3,6,7,8,9,11,12,34,35,19,36,37])).then(e=>({default:e.SettingsSheet}))),Ip=I.jsx("div",{"aria-hidden":"true",className:"h-full w-16"});function $N({className:e}){const t=vu(),n=uz(0);return I.jsx("header",{className:mc("sticky top-0 h-(--header-height) z-100 inset-x-0 bg-surface",e),children:I.jsxs("div",{className:mc("flex items-stretch justify-between flex-1 grow h-full relative max-w-[calc(var(--content-width)+4rem)] mx-auto px-4 lg:px-0"),children:[n&&I.jsx("div",{"aria-hidden":"true",className:"hidden 2xl:block mask-[linear-gradient(to_bottom,black_80%,transparent)] pointer-events-none absolute inset-0 -bottom-6 -z-10 bg-surface"}),I.jsx("nav",{className:"items-center flex-1 flex",children:I.jsxs("ul",{className:"h-full flex items-center gap-2 lg:gap-4 xl:gap-8",children:[I.jsx("li",{className:"h-full",children:I.jsx(di,{className:"h-full flex items-center pr-4",to:"/{-$locale}",params:r=>({locale:r.locale}),children:I.jsx(eN,{})})}),I.jsx("li",{className:"hidden sm:block h-full",children:I.jsx(Pp,{activeProps:{className:"text-primary!"},activeOptions:{exact:!0},className:"h-full justify-center text-sm tracking-wide font-heading",to:"/{-$locale}",params:r=>({locale:r.locale}),label:t.nav.home})}),I.jsx("li",{className:"hidden sm:block h-full",children:I.jsx(Pp,{activeProps:{className:"text-primary!"},className:"h-full justify-center text-sm tracking-wide font-heading",to:"/{-$locale}/post",params:r=>({locale:r.locale}),label:t.nav.blogs})}),I.jsx("li",{className:"hidden sm:block h-full",children:I.jsx(Pp,{activeProps:{className:"text-primary!"},className:"h-full justify-center text-sm tracking-wide font-heading",to:"/{-$locale}/projects",params:r=>({locale:r.locale}),label:t.nav.projects})})]})}),I.jsxs("div",{className:"flex items-center",children:[I.jsxs("div",{className:"hidden lg:flex items-stretch h-full",children:[I.jsx(O.Suspense,{fallback:Ip,children:I.jsx(HN,{})}),I.jsx(IN,{})]}),I.jsx(O.Suspense,{fallback:Ip,children:I.jsx(UN,{})}),I.jsx(O.Suspense,{fallback:Ip,children:I.jsx(VN,{})})]})]})})}function ZN({children:e}){const t=vu();return I.jsx("main",{className:"h-[calc(100vh-12rem)] flex justify-center items-center",children:I.jsxs("div",{className:"space-y-2 p-2 text-center",children:[I.jsx("h1",{className:"text-2xl lg:text-7xl font-extrabold text-error",children:"404"}),e||I.jsx("p",{children:t.notFound.message}),I.jsx(di,{to:"/{-$locale}",params:n=>({locale:n.locale}),className:"text-primary underline",children:t.notFound.goHome})]})})}function YN(e,t){const n=JSON.stringify(e),r=JSON.stringify(t);return`(function(){try{var t=localStorage.getItem(${n});if(t!=='light'&&t!=='dark'&&t!=='system'){t=${r}}var d=matchMedia('(prefers-color-scheme: dark)').matches;var r=t==='system'?(d?'dark':'light'):t;var e=document.documentElement;e.classList.add(r);e.style.colorScheme=r}catch(e){}})();`}const Q_=O.createContext({theme:"system",setTheme:()=>{}});function G5(e){const t=document.documentElement;t.classList.remove("light","dark");const n=e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
13k":"light":e;t.classList.add(n),t.style.colorScheme=n}function GN({children:e,defaultTheme:t="system",storageKey:n="theme"}){const[r,a]=O.useState(t),[s,l]=O.useState(!1);O.useEffect(()=>{const h=localStorage.getItem(n);a(h==="light"||h==="dark"||h==="system"?h:t),l(!0)},[t,n]),O.useEffect(()=>{s&&G5(r)},[r,s]),O.useEffect(()=>{if(!s||r!=="system")return;const h=window.matchMedia("(prefers-color-scheme: dark)"),d=()=>G5("system");return h.addEventListener("change",d),()=>h.removeEventListener("change",d)},[r,s]);const f=h=>{localStorage.setItem(n,h),a(h)};return I.jsxs(Q_,{value:{theme:r,setTheme:f},children:[I.jsx(RO,{children:YN(n,t)}),e]})}function BJ(){const e=O.useContext(Q_);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}function U1(e){O.useEffect(e,xN)}const W_=O.createContext(void 0);function wu(){const e=O.useContext(W_);if(!e)throw new Error(Su(73));return e}var eT=$6();const oy=[];let ay;function qN(){return ay}function XN(e){oy.push(e)}function KN(e){const t=(n,r)=>{const a=So(JN).current;let s;try{ay=a;for(const l of oy)l.before(a);s=e(n,r);for(const l of oy)l.after(a);a.didInitialize=!0}finally{ay=void 0}return s};return t.displayName=e.displayName||e.name,t}function FJ(e){return O.forwardRef(KN(e))}function JN(){return{didInitialize:!1}}const QN=V1(19),WN=QN?tL:nL;function tT(e,t,n,r,a){return WN(e,t,n,r,a)}function eL(e,t,n,r,a){const s=O.useCallback(()=>t(e.getSnapshot(),n,r,a),[e,t,n,r,a]);return eT.useSyncExternalStore(e.subscribe,s,s)}XN({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],a=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,a)||(t=!0,r.value=a)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const a of e.syncHooks)n.add(a.store);const r=[];for(const a of n)r.push(a.subscribe(t));return()=>{for(const a of r)a()}}),eT.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function tL(e,t,n,r,a){const s=qN();if(!s)return eL(e,t,n,r,a);const l=s.syncIndex;s.syncIndex+=1;let f;return s.didInitialize?(f=s.syncHooks[l],(f.store!==e||f.selector!==t||!Object.is(f.a1,n)||!Object.is(f.a2,r)||!Object.is(f.a3,a))&&(f.store!==e&&(s.didChangeStore=!0),f.store=e,f.selector=t,f.a1=n,f.a2=r,f.a3=a,f.value=t(e.getSnapshot(),n,r,a))):(f={store:e,selector:t,a1:n,a2:r,a3:a,value:t(e.getSnapshot(),n,r,a)},s.syncHooks.push(f)),f.value}function nL(e,t,n,r,a){return Z6.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,a))}class rL{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,a){return tT(this,t,n,r,a)}}class nT extends rL{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){O.useDebugValue(t);const r=this;nn(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;nn(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);nn(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){O.useDebugValue(t);const r=this,a=n!==void 0;nn(()=>{a&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,a])}select(t,n,r,a){const s=this.selectors[t];return s(this.state,n,r,a)}useState(t,n,r,a){return O.useDebugValue(t),tT(this,this.selectors[t],n,r,a)}useContextCallback(t,n){O.useDebugValue(t);const r=Kn(n??K_);this.context[t]=r}useStateSetter(t){const n=O.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let a=r(this.state);return n(a,a,this),this.subscribe(s=>{const l=r(s);if(!Object.is(a,l)){const f=a;a=l,n(l,f,this)}})}}var us=T4();function rT(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function Vi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}const rd=null;class oL{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let a=0;a<n.length;a+=1)n[a]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}}let od=new oL;class $1{static create(){return new $1}static request(t){return od.request(t)}static cancel(t){return od.cancel(t)}currentId=rd;request(t){this.cancel(),this.currentId=od.request(()=>{this.currentId=rd,t()})}cancel=()=>{this.currentId!==rd&&(od.cancel(this.currentId),this.currentId=rd)};disposeEffect=()=>this.cancel}function aL(){const e=So($1.create).current;return U1(e.disposeEffect),e}const Cl=0;class cu{static create(){return new cu}currentId=Cl;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Cl,n()},t)}isStarted(){return this.currentId!==Cl}clear=()=>{this.currentId!==Cl&&(clearTimeout(this.currentId),this.currentId=Cl)};disposeEffect=()=>this.clear}function iL(){const e=So(cu.create).current;return U1(e.disposeEffect),e}let q5=0;function oT(e){return q5+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${q5}`}function Hp(e,t){if(typeof e=="string")return{description:e};if(typeof e=="function"){const n=e(t);return typeof n=="string"?{description:n}:n}return e}function sL(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:cL,platform:lL,maxTouchPoints:uL}=sL(),Ih=cL.toLowerCase(),lu=lL.toLowerCase(),aT=/^i(os$|p)/.test(lu)||lu==="macintel"&&uL>1,X5="android",iy=lu===X5||Ih.includes(X5),fL=!aT&&lu.startsWith("mac");lu.startsWith("win");const dL=fL||aT,Z1=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),IJ=!Z1&&Ih.includes("firefox");!Z1&&Ih.includes("chrom");const hL=dL,iT=/jsdom|happydom/.test(Ih);function cc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Wr(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;
13if(n&&Wd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ko(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}const K5="data-base-ui-focusable",sT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Vp="ArrowLeft",Up="ArrowRight",mL="ArrowUp",pL="ArrowDown",cT="data-starting-style",gL="data-ending-style",yL={[cT]:""},bL={[gL]:""},lT={transitionStatus(e){return e==="starting"?yL:e==="ending"?bL:null}},vL="data-open",SL="data-closed",wL="data-anchor-hidden",uT="data-popup-open",xL="data-pressed",_L={[uT]:""},TL={[uT]:"",[xL]:""},kL={[vL]:""},EL={[SL]:""},CL={[wL]:""},HJ={open(e){return e?_L:null}},VJ={open(e){return e?TL:null}},fT={open(e){return e?kL:EL},anchorHidden(e){return e?CL:null}},UJ={...fT,...lT},J5="data-trigger-disabled";function $J(e,t){if(!Rn(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute(J5);for(const[,r]of t.entries())if(Wr(r,n))return!r.hasAttribute(J5);return!1}function ZJ(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function YJ(e){return e.matches("html,body")}function AL(e){return Pn(e)&&e.matches(sT)}function GJ(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${sT}`)!=null}function qJ(e){return e?e.getAttribute("role")==="combobox"&&AL(e):!1}function sy(e){if(!e||iT)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function XJ(e){return e?e.hasAttribute(K5)?e:e.querySelector(`[${K5}]`)||e:null}function $p(e){e.preventDefault(),e.stopPropagation()}function KJ(e){return"nativeEvent"in e}function JJ(e){return e.pointerType===""&&e.isTrusted?!0:iy&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function QJ(e){return iT?!1:!iy&&e.width===0&&e.height===0||iy&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function WJ(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function RL(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const pc=Math.min,ta=Math.max,nh=Math.round,Ui=Math.floor,na=e=>({x:e,y:e}),ML={left:"right",right:"left",bottom:"top",top:"bottom"};function dT(e,t,n){return ta(e,pc(t,n))}function ri(e,t){return typeof e=="function"?e(t):e}function Fr(e){return e.split("-")[0]}function la(e){return e.split("-")[1]}function Y1(e){return e==="x"?"y":"x"}function G1(e){return e==="y"?"height":"width"}function Br(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function q1(e){return Y1(Br(e))}function OL(e,t,n){n===void 0&&(n=!1);const r=la(e),a=q1(e),s=G1(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=rh(l)),[l,rh(l)]}function PL(e){const t=rh(e);return[cy(e),t,cy(t)]}function cy(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Q5=["left","right"],W5=["right","left"],zL=["top","bottom"],DL=["bottom","top"];function NL(e,t,n){switch(e){case"top":case"bottom":return n?t?W5:Q5:t?Q5:W5;case"left":case"right":return t?zL:DL;default:return[]}}function LL(e,t,n,r){const a=la(e);let s=NL(Fr(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(cy)))),s}function rh(e){const t=Fr(e);return ML[t]+e.slice(t.length)}function jL(e){var t,n,r,a;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(a=e.left)!=null?a:0}}function hT(e){return typeof e!="number"?jL(e):{top:e,right:e,bottom:e,left:e}}function oh(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ad(e,t,n){return Math.floor(e/t)!==n}function e3(e,t){return t<0||t>=e.length}function eQ(e,t){return Kr(e.current,{disabledIndices:t})}function tQ(e,t){return Kr(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Kr(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:a=1}={}){let s=t;do s+=n?-a:a;while(s>=0&&s<=e.length-1&&ly(e,s,r));return s}function nQ(e,{event:t,orientation:n,loopFocus:r,onLoop:a,rtl:s,cols:l,disabledIndices:f,minIndex:h,maxIndex:d,prevIndex:p,stopEvent:y=!1}){let b=p,v;if(t.key===mL?v="up":t.key===pL&&(v="down"),v){const S=[],w=[];let _=!1,A=0;{let D=null,N=-1;e.forEach((F,Y)=>{if(F==null)return;A+=1;const J=F.closest('[role="row"]');J&&(_=!0),(J!==D||N===-1)&&(D=J,N+=1,S[N]=[]),S[N].push(Y),w[Y]=N})}let E=!1,C=0;if(_)for(const D of S){const N=D.length;N>C&&(C=N),N!==l&&(E=!0)}const R=E&&A<e.length,z=C||l,P=D=>{if(!E||p===-1)return;const N=w[p];if(N==null)return;const F=S[N].indexOf(p),Y=D==="up"?-1:1;for(let J=N+Y,fe=0;fe<S.length;fe+=1,J+=Y){if(J<0||J>=S.length){if(!r||R)return;if(J=J<0?S.length-1:0,a){const B=Math.min(F,S[J].length-1),G=S[J][B]??S[J][0],ae=a(t,p,G);J=w[ae]??J}}const se=S[J];for(let B=Math.min(F,se.length-1);B>=0;B-=1){const G=se[B];if(!ly(e,G,f))return G}}},M=D=>
13{if(!R||p===-1)return;const N=p%z,F=D==="up"?-z:z,Y=d-d%z,J=Ui(d/z)+1;for(let fe=p-N+F,se=0;se<J;se+=1,fe+=F){if(fe<0||fe>d){if(!r)return;fe=fe<0?Y:0}const B=Math.min(fe+z-1,d);for(let G=Math.min(fe+N,B);G>=fe;G-=1)if(!ly(e,G,f))return G}};y&&$p(t);const k=P(v)??M(v);if(k!==void 0)b=k;else if(p===-1)b=v==="up"?d:h;else if(b=Kr(e,{startingIndex:p,amount:z,decrement:v==="up",disabledIndices:f}),r){if(v==="up"&&(p-z<h||b<0)){const D=p%z,N=d%z,F=d-(N-D);N===D?b=d:b=N>D?F:F-z,a&&(b=a(t,p,b))}v==="down"&&p+z>d&&(b=Kr(e,{startingIndex:p%z-z,amount:z,disabledIndices:f}),a&&(b=a(t,p,b)))}e3(e,b)&&(b=p)}if(n==="both"){const S=Ui(p/l);t.key===(s?Vp:Up)&&(y&&$p(t),p%l!==l-1?(b=Kr(e,{startingIndex:p,disabledIndices:f}),r&&ad(b,l,S)&&(b=Kr(e,{startingIndex:p-p%l-1,disabledIndices:f}),a&&(b=a(t,p,b)))):r&&(b=Kr(e,{startingIndex:p-p%l-1,disabledIndices:f}),a&&(b=a(t,p,b))),ad(b,l,S)&&(b=p)),t.key===(s?Up:Vp)&&(y&&$p(t),p%l!==0?(b=Kr(e,{startingIndex:p,decrement:!0,disabledIndices:f}),r&&ad(b,l,S)&&(b=Kr(e,{startingIndex:p+(l-p%l),decrement:!0,disabledIndices:f}),a&&(b=a(t,p,b)))):r&&(b=Kr(e,{startingIndex:p+(l-p%l),decrement:!0,disabledIndices:f}),a&&(b=a(t,p,b))),ad(b,l,S)&&(b=p));const w=Ui(d/l)===S;e3(e,b)&&(r&&w?(b=t.key===(s?Up:Vp)?d:Kr(e,{startingIndex:p-p%l-1,disabledIndices:f}),a&&(b=a(t,p,b))):b=p)}return b}function ly(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const a=e[t];return a?!mT(a)||a.matches(":disabled")?!0:!n&&(a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true"):!1}function BL(e){return e.visibility==="hidden"||e.visibility==="collapse"}function mT(e,t=e?pr(e):null){return!e||!e.isConnected||!t||BL(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const FL='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function IL(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return Wd(n)?n.host:null}function uy(e){for(const t of Array.from(e.children))if(mr(t)==="summary")return t;return null}function HL(e,t){const n=uy(t);return!!n&&(e===n||Wr(n,e))}function pT(e){const t=e?mr(e):"";return e!=null&&e.matches(FL)&&(t!=="summary"||e.parentElement!=null&&mr(e.parentElement)==="details"&&uy(e.parentElement)===e)&&(t!=="details"||uy(e)==null)&&(t!=="input"||e.type!=="hidden")}function gT(e){if(!pT(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=IL(t)){const n=t!==e,r=mr(t)==="slot";if(t.hasAttribute("inert")||n&&mr(t)==="details"&&!t.open&&!HL(e,t)||t.hasAttribute("hidden")||!r&&!VL(t,n))return!1}return!0}function VL(e,t){const n=pr(e);return t?n.display!=="none":mT(e,n)}function yT(e){const t=e.tabIndex;if(t<0){const n=mr(e);if(n==="details"||n==="audio"||n==="video"||Pn(e)&&e.isContentEditable)return 0}return t}function Zp(e){if(mr(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function UL(e,t){const n=Zp(e);if(!n)return!0;const r=t.find(a=>{const s=Zp(a);return s?.name===n.name&&s.form===n.form&&s.checked});return r?r===n:t.find(a=>{const s=Zp(a);return s?.name===n.name&&s.form===n.form})===n}function bT(e){if(Pn(e)&&mr(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Pn(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function vT(e,t){bT(e).forEach(n=>{pT(n)&&t.push(n),vT(n,t)})}function ST(e,t,n){bT(e).forEach(r=>{Pn(r)&&r.matches(t)&&n.push(r),ST(r,t,n)})}function rQ(e){return gT(e)&&yT(e)>=0}function $L(e){const t=[];return vT(e,t),t.filter(gT)}function X1(e){const t=$L(e);return t.filter(n=>yT(n)>=0&&UL(n,t))}function wT(e,t){const n=X1(e),r=n.length;if(r===0)return;const a=cc(hr(e)),s=n.indexOf(a),l=s===-1?t===1?0:r-1:s+t;return n[l]}function ZL(e){return wT(hr(e).body,1)||e}function YL(e){return wT(hr(e).body,-1)||e}function xT(e,t){if(!e)return null;const n=X1(hr(e).body),r=n.length;if(r===0)return null;const a=n.indexOf(e);if(a===-1)return null;const s=(a+t+r)%r;return n[s]}function oQ(e){return xT(e,1)}function aQ(e){return xT(e,-1)}function Yp(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Wr(n,r)}function GL(e){X1(e).forEach(n=>
13{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function t3(e){const t=[];ST(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Gp(e){const t=new Map;let n=0,r=0;return e.forEach((a,s)=>{const l=a.transitionStatus==="ending";t.set(a.id,{value:a,domIndex:s,visibleIndex:l?-1:n,offsetY:r}),r+=a.height||0,l||(n+=1)}),t}function qp(e,t){let n=0;return e.map(r=>{if(r.transitionStatus==="ending")return r;const a=n>=t;return n+=1,r.limited===a?r:{...r,limited:a}})}const Xr={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement};class qL extends nT{timers=new Map;areTimersPaused=!1;constructor(t){super({...t,toastMetadata:Gp(t.toasts)},{},Xr)}setViewport=t=>{this.set("viewport",t)};syncProviderProps(t,n){const r=this.state.limit!==n;if(this.state.timeout===t&&!r)return;const a={timeout:t,limit:n};if(r){const s=qp(this.state.toasts,n);a.toasts=s,a.toastMetadata=Gp(s)}this.update(a)}disposeEffect=()=>()=>{this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear()};removeToast(t,n=!1){const r=Xr.toastIndex(this.state,t);if(r===-1)return;const a=this.state.toasts[r];n||a?.onRemove?.();const s=[...this.state.toasts];s.splice(r,1),this.setToasts(s)}addToast=t=>{const{timeout:n,limit:r}=this.state,a=t.id||oT("toast");if(t.id){const h=Xr.toast(this.state,t.id);if(h)if(h.transitionStatus==="ending")this.removeToast(t.id,!0);else{const{id:d,transitionStatus:p,...y}=t;return this.updateToastInternal(t.id,y,!0,!0),t.id}}const s={...t,id:a,updateKey:0,transitionStatus:"starting"},l=[s,...this.state.toasts];this.setToasts(qp(l,r));const f=s.timeout??n;return s.type!=="loading"&&f>0&&this.scheduleTimer(a,f,()=>this.closeToast(a)),Xr.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),a};updateToast=(t,n)=>{const r=Xr.toast(this.state,t);!r||r.transitionStatus==="ending"||this.updateToastInternal(t,typeof n=="function"?n(r):n,!1,!0)};updateToastInternal=(t,n,r=!1,a=!1)=>{const{timeout:s,toasts:l}=this.state,f=Xr.toast(this.state,t);if(!f||f.transitionStatus==="ending")return;const h={...f,...n,...a&&{updateKey:f.updateKey+1}};this.setToasts(l.map(_=>_.id===t?h:_));const d=h.timeout??s,p=f.timeout??s,y=Object.hasOwn(n,"timeout"),b=h.transitionStatus!=="ending"&&h.type!=="loading"&&d>0,v=this.timers.has(t),S=p!==d,w=f.type==="loading";if(!b&&v){this.clearTimer(t);return}b&&(!v||S||y||w||r)&&(this.clearTimer(t),this.scheduleTimer(t,d,()=>this.closeToast(t)),Xr.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=t=>{const n=t===void 0,{limit:r,toasts:a}=this.state;let s;if(n)s=a,this.clearTimers();else{const h=Xr.toast(this.state,t);if(!h)return;s=[h],this.clearTimer(t)}const l=a.map(h=>n||h.id===t?{...h,transitionStatus:"ending",height:0}:h),f=qp(l,r);this.setToasts(f,!f.some(h=>
13h.transitionStatus!=="ending")),s.forEach(h=>{h.transitionStatus!=="ending"&&h.onClose?.()}),this.handleFocusManagement(t)};promiseToast=(t,n)=>{const r=Hp(n.loading),a=this.addToast({...r,type:"loading"}),s=t.then(l=>{const f=Hp(n.success,l);return this.updateToast(a,{...f,type:"success",timeout:f.timeout}),l}).catch(l=>{const f=Hp(n.error,l);return this.updateToast(a,{...f,type:"error",timeout:f.timeout}),Promise.reject(l)});return{}.hasOwnProperty.call(n,"setPromise")&&n.setPromise(s),s};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(t=>{t.timeout&&(t.timeout.clear(),t.remaining=Math.max(t.remaining-(Date.now()-t.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((t,n)=>{t.remaining=t.remaining>0?t.remaining:t.delay,t.timeout??=cu.create(),t.timeout.start(t.remaining,()=>{this.handleTimerFired(n),t.callback()}),t.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=t=>{if(t.pointerType!=="touch")return;const n=Ko(t);Wr(this.state.viewport,n)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(t,n,r){const a=Date.now(),l=!Xr.expandedOrOutOfFocus(this.state)?cu.create():void 0;l?.start(n,()=>{this.handleTimerFired(t),r()}),this.timers.set(t,{timeout:l,start:a,delay:n,remaining:n,callback:r})}clearTimers(){this.timers.forEach(t=>{t.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(t){this.timers.get(t)?.timeout?.clear(),this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(t){this.timers.delete(t),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(t,n=t.length===0){const r={toasts:t,toastMetadata:Gp(t)};n&&(r.hovering=!1,r.focused=!1),this.update(r)}handleFocusManagement(t){const n=cc(hr(this.state.viewport));if(!this.state.viewport||!Wr(this.state.viewport,n)||!sy(n))return;if(t===void 0){this.restoreFocusToPrevElement();return}const r=Xr.toasts(this.state),a=Xr.toastIndex(this.state,t),s=(f,h)=>{for(let d=f;d>=0&&d<r.length;d+=h)if(r[d].transitionStatus!=="ending")return r[d];return null},l=s(a+1,1)??s(a-1,-1);l?l.ref?.current?.focus():this.restoreFocusToPrevElement()}}const n3=function(t){const{children:n,timeout:r=5e3,limit:a=3,toastManager:s}=t,l=So(()=>new qL({timeout:r,limit:a,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return U1(l.disposeEffect),O.useEffect(function(){return s?s[" subscribe"](({action:d,options:p})=>{const y=p.id;d==="promise"&&p.promise?l.promiseToast(p.promise,p):d==="update"&&y?l.updateToast(y,p.updates):d==="close"?l.closeToast(y):l.addToast(p)}):void 0},[l,s]),I.jsxs(W_.Provider,{value:l,children:[I.jsx(XL,{store:l,timeout:r,limit:a}),n]})};function XL(e){const{store:t,timeout:n,limit:r}=e;return nn(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}const _T={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},TT={..._T,position:"fixed",top:0,left:0},iQ={..._T,position:"absolute"},fy=O.forwardRef(function(t,n){const[r,a]=O.useState();nn(()=>{hL&&Z1&&a("button")},[]);const s={tabIndex:0,role:r};return I.jsx("span",{...t,ref:n,style:TT,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})}),KL="--toast-frontmost-height",JL=O.forwardRef(function(t,n){const{render:r,className:a,style:s,children:l,...f}=t,h=wu(),d=iL(),p=O.useRef(!1),y=O.useRef(!1),b=O.useRef(!1),v=h.useState("isEmpty"),S=h.useState("toasts"),w=h.useState("focused"),_=h.useState("expanded"),A=h.useState("prevFocusElement"),E=S[0]?.height,C=S.some(ce=>ce.transitionStatus==="ending"),R=S.filter(ce=>ce.priority==="high");O.useEffect(()=>{const ce=h.state.viewport;if(!ce||v)return;const V=Mn(ce),L=hr(ce);function Q(de){de.key==="F6"&&Ko(de)!==ce&&(de.preventDefault(),h.set("prevFocusElement",cc(L)),ce?.focus({preventScroll:!0}),h.pauseTimers(),h.set("focused",!0))}function ee(de){Ko(de)===V&&(h.set("isWindowFocused",!1),h.pauseTimers())}function ue(de){if(de.relatedTarget)return;const pe=Ko(de),Ae=cc(hr(ce));(pe===V||!Wr(ce,pe)||!sy(Ae))&&h.resumeTimers(),d.start(0,()=>h.set("isWindowFocused",!0))}
13return rT(Vi(V,"keydown",Q),Vi(V,"blur",ee,!0),Vi(V,"focus",ue,!0),Vi(L,"pointerdown",h.handleDocumentPointerDown,!0))},[h,d,v]);function z(ce){p.current=!0;const V=ce.relatedTarget===h.state.viewport?S.find(L=>L.transitionStatus!=="ending"&&!L.limited):void 0;V?V.ref?.current?.focus():h.restoreFocusToPrevElement()}function P(ce){ce.key==="Tab"&&ce.shiftKey&&Ko(ce.nativeEvent)===h.state.viewport&&(ce.preventDefault(),h.restoreFocusToPrevElement())}function M(){h.state.toasts.some(V=>V.transitionStatus==="ending")||b.current||!y.current||(h.state.isWindowFocused&&h.resumeTimers(),h.set("hovering",!1),y.current=!1)}O.useEffect(M,[C,h]);function k(){h.pauseTimers(),h.set("hovering",!0),y.current=!1}function D(){h.state.isWindowFocused&&h.resumeTimers()}function N(){y.current=!0,M()}function F(ce){ce.pointerType==="touch"&&(b.current=!0)}function Y(ce){ce.pointerType==="touch"&&(b.current=!1,M())}function J(){if(p.current){p.current=!1;return}w||sy(cc(hr(h.state.viewport)))&&(h.set("focused",!0),h.pauseTimers())}function fe(ce){!w||Wr(h.state.viewport,ce.relatedTarget)||(h.set("focused",!1),D())}const se={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:k,onMouseMove:k,onMouseLeave:N,onFocus:J,onBlur:fe,onKeyDown:P,onClick:J,onPointerDown:F,onPointerUp:Y,onPointerCancel:Y,style:{[KL]:E?`${E}px`:void 0}},B={expanded:_},G=!v&&A&&I.jsx(fy,{onFocus:z}),ae=to("div",t,{ref:[n,h.setViewport],state:B,props:[se,f,{children:I.jsxs(O.Fragment,{children:[G,l,G]})}]});return I.jsxs(O.Fragment,{children:[G,ae,!w&&R.length>0&&I.jsx("div",{style:TT,children:R.map(ce=>I.jsxs("div",{role:"alert","aria-atomic":!0,children:[I.jsx("div",{children:ce.title}),I.jsx("div",{children:ce.description})]},ce.id))})]})});function QL(e){return V1(19)?e:e?"true":void 0}const kT=O.createContext(void 0);function Hh(){const e=O.useContext(kT);if(!e)throw new Error(Su(66));return e}function WL(e){return e==null?e:"current"in e?e.current:e}let id=null;function ej(e){if(!id){const t=[];id=t,queueMicrotask(()=>{id=null,us.flushSync(()=>{for(const n of t)n()})})}id.push(e)}function tj(e,t=!1,n=!1){const r=aL();return Kn((a,s=null)=>{r.cancel();const l=WL(e);if(l==null)return;const f=l,h=()=>{if(!n){us.flushSync(a);return}ej(()=>{s?.aborted||a()})};if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){a();return}function d(){Promise.all(f.getAnimations().map(p=>p.finished)).then(()=>{s?.aborted||h()},()=>{if(s?.aborted)return;if(f.getAnimations().some(y=>y.pending||y.playState!=="finished")){d();return}h()})}if(t){const p=cT;if(!f.hasAttribute(p)){r.request(d);return}const y=new MutationObserver(()=>{f.hasAttribute(p)||(y.disconnect(),d())});y.observe(f,{attributes:!0,attributeFilter:[p]}),s?.addEventListener("abort",()=>y.disconnect(),{once:!0});return}r.request(d)})}function nj(e){const{enabled:t=!0,open:n,ref:r,batch:a=!1,onComplete:s}=e,l=Kn(s),f=tj(r,n,a);O.useEffect(()=>{if(!t)return;const h=new AbortController;return f(l,h.signal),()=>{h.abort()}},[t,n,l,f])}const sQ=500,cQ=500,rj={style:{transition:"none"}},lQ="data-base-ui-click-trigger",oj="data-base-ui-swipe-ignore",aj="data-swipe-ignore",ij=`[${oj}]`,sj=`[${aj}]`,uQ={fallbackAxisSide:"none"},cj={fallbackAxisSide:"end"},lj={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function uj(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function fj(e,t=!1){const{overflowY:n}=pr(e);return n!=="auto"&&n!=="scroll"?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}function dj(e,t=!1){const{overflowX:n}=pr(e);return n!=="auto"&&n!=="scroll"?!1:t?e.clientWidth>0:e.scrollWidth>e.clientWidth}function dy(e,t,n=!1){return t==="vertical"?fj(e,n):dj(e,n)}function hj(e,t,n){let r=e;for(;Pn(r)&&r!==t&&!ns(r);){for(const a of n)if(dy(r,a))return!0;r=ca(r)}return!1}function mj(e,t,n="vertical",r=!1){let a=Pn(e)?e:null;for(;Pn(a)&&a!==t&&!ns(a);){if(dy(a,n,r))return a;a=ca(a)}return dy(t,n,r)?t:null}function pj(e,t,n){return typeof e?.elementFromPoint=="function"?e.elementFromPoint(t,n):null}function ET(e,t){const n=Mn(e).getComputedStyle(e).transform;let r=0,a=0,s=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const f=l[1].split(", ").map(parseFloat);f.length===6?(r=f[4],a=f[5],s=Math.sqrt(f[0]*f[0]+f[1]*f[1])):f.length===16&&(r=f[12],a=f[13],s=f[0])}}return{x:r,y:a,scale:s}}const gj=40,yj=10,bj=1,vj=50,r3=16,Sj=80,wj='button,a,input,select,textarea,label,[role="button"]';function $i(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function sd(e){return Number.isFinite(e)&&e>0?e:null}function o3(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function xj(e){return e%2===1}
13function Xp(e,t,n){const r=e[n];if(typeof r=="function")try{r.call(e,t)}catch(a){if(a&&typeof a=="object"&&"name"in a&&a.name==="NotFoundError")return;throw a}}function fQ(e){const{enabled:t,directions:n,elementRef:r,movementCssVars:a,canStart:s,ignoreSelectorWhenTouch:l=!0,ignoreScrollableAncestors:f=!1,swipeThreshold:h,onDismiss:d,onProgress:p,onCancel:y,onSwipeStart:b,onRelease:v,onSwipingChange:S,trackDrag:w=!0}=e,_=wj,A=n.length===1?n[0]:void 0,E=Math.max(0,typeof h=="number"?h:gj),C=n.includes("left"),R=n.includes("right"),z=n.includes("up"),P=n.includes("down"),M=C||R,k=z||P,D=O.useMemo(()=>{const ne=[];return k&&ne.push("vertical"),M&&ne.push("horizontal"),ne},[M,k]),[N,F]=O.useState(void 0),[Y,J]=O.useState(!1),[fe,se]=O.useState(!1),B=O.useRef({x:0,y:0}),G=O.useRef({x:0,y:0}),ae=O.useRef(null),ce=O.useRef({x:0,y:0,scale:1}),V=O.useRef(void 0),L=O.useRef(0),Q=O.useRef(!1),ee=O.useRef({x:0,y:0}),ue=O.useRef(null),de=O.useRef(!1),pe=O.useRef(!1),Ae=O.useRef(null),Je=O.useRef(!1),be=O.useRef(!1),nt=O.useRef({width:0,height:0}),pt=O.useRef(0),bt=O.useRef(E),Ft=O.useRef(null),st=O.useRef(null),Xt=O.useRef(null),rn=O.useRef({x:0,y:0}),Zn=O.useRef(null),on=O.useRef(!1),zn=O.useRef(null),xn=Kn(ne=>{on.current!==ne&&(on.current=ne,J(ne),S?.(ne))});function gn(ne){if(!ne)return;const he=r.current,we=Ft.current;if(!he||!we)return;const Le=we({element:he,direction:ne});bt.current=Math.max(0,Le)}const Kt=Kn((ne,he)=>{const we=Number.isFinite(ne)?uj(ne,0,1):0,Le=we!==pt.current;let Ie=!1;if(he){const Ve=Zn.current;Ie=!Ve||Ve.deltaX!==he.deltaX||Ve.deltaY!==he.deltaY||Ve.direction!==he.direction}!Le&&!Ie||(pt.current=we,he?Zn.current=he:Le&&(Zn.current=null),p?.(we,he))}),Pe=Kn(ne=>{const he=r.current;if(!w||!he){ne||(zn.current=null);return}const we=he.style,Le=zn.current;ne?(Le||(zn.current=[we.transition,we.transform]),we.transition="none"):Le&&([we.transition,we.transform]=Le,zn.current=null);const Ie=G.current,Ve=ce.current,rt=Ie.x-Ve.x,ft=Ie.y-Ve.y;ne&&(we.transform=o3(Ie,Ve.scale)),we.setProperty(a.x,`${rt}px`),we.setProperty(a.y,`${ft}px`)});function Ne(ne,he){if(he===null)return;const we=Xt.current;if(we&&he>we.time){const Le=Math.max(he-we.time,r3);rn.current={x:(ne.x-we.x)/Le,y:(ne.y-we.y)/Le}}Xt.current={x:ne.x,y:ne.y,time:he}}const gt=O.useCallback(()=>{F(void 0),xn(!1),se(!1),Kt(0),bt.current=E,Ft.current=null,B.current={x:0,y:0},G.current={x:0,y:0},ce.current={x:0,y:0,scale:1},V.current=void 0,L.current=0,Q.current=!1,ee.current={x:0,y:0},ue.current=null,de.current=!1,ae.current=null,pe.current=!1,Ae.current=null,Je.current=!1,be.current=!1,nt.current={width:0,height:0},st.current=null,Xt.current=null,rn.current={x:0,y:0},Zn.current=null,Pe(!1)},[xn,E,Pe,Kt]);function Ye(ne){if("touches"in ne){const he=ne.touches[0];return he?{x:he.clientX,y:he.clientY}:null}return{x:ne.clientX,y:ne.clientY}}function vt(ne){return"touches"in ne?!0:ne.pointerType==="touch"}function Qe(ne,he){const we=r.current?.getRootNode();return pj(we,ne.x,ne.y)??Ko(he)}function ut(ne,he){const we=Le=>{const Ie=mj(ne,he,Le),Ve=hr(Ie);return Ie===Ve.body||Ie===Ve.documentElement?null:Ie};return M&&!k?we("horizontal"):k&&!M?we("vertical"):we("vertical")??we("horizontal")}function no(ne,he,we){Je.current=!1;const Le=vt(ne),Ie=Qe(he,ne.nativeEvent),rt=hr(r.current).body,ft=Le&&rt?ut(Ie,rt):null,St=we?.ignoreScrollableTarget??!1;if(ft&&!St||(Je.current=!!(ft&&St),(Ie?Ie.closest(_):!1)&&(!Le||l)))return!1;const Tt=r.current;if(f&&Tt&&Ie&&D.length>0&&!(we?.ignoreScrollableAncestors??!1)&&hj(Ie,Tt,D))return!1;if(Q.current=!1,V.current=void 0,L.current=0,B.current=he,st.current=sd(ne.timeStamp),ee.current=he,ae.current=he,bt.current=E,Ft.current=typeof h=="function"?h:null,Tt){nt.current={width:Tt.offsetWidth,height:Tt.offsetHeight},gn(A);const an=ET(Tt);ce.current=an,G.current={x:an.x,y:an.y},Ne({x:an.x,y:an.y},st.current),"touches"in ne||Xp(Tt,ne.pointerId,"setPointerCapture")}return b?.(ne.nativeEvent),xn(!0),ue.current=null,de.current=!0,Kt(0),Pe(!0),!0}function Vr(){Hn(),Je.current=!1,ae.current=null}function Hn(){pe.current=!1,Ae.current=null}function It(ne){if(Vr(),!on.current)return;xn(!1),ue.current=null;const he=ce.current;G.current={x:he.x,y:he.y},F(void 0),be.current=!1,Pe(!1);const we=r.current;we&&Xp(we,ne.pointerId,"releasePointerCapture"),Kt(0,{deltaX:0,deltaY:0,direction:void 0}),y?.(ne.nativeEvent)}function Jt(ne,he){const we=rt=>Math.sign(rt)*Math.abs(rt)**.5,Le=(rt,ft,St)=>!ft&&rt<0||!St&&rt>0?we(rt):rt,Ie=M?Le(ne,C,R):we(ne),Ve=k?Le(he,z,P):we(he);return{x:Ie,y:Ve}}function _n(ne,he,we){const Le=(rt,ft,St,wt,Tt)=>rt>0&&ft<=0&&wt||rt<0&&ft>=Math.max(0,St)&&Tt,Ie=Math.abs(he),Ve=Math.abs(we);return k&&we!==0&&(!M||Ve>=Ie)?Le(we,ne.scrollTop,ne.scrollHeight-ne.clientHeight,P,z):M&&he!==0&&(!k||Ie>Ve)?Le(he,ne.scrollLeft,ne.scrollWidth-ne.clientWidth,R,C):null}const At=Kn(ne=>
13{if(!t||ne.defaultPrevented||ne.nativeEvent.defaultPrevented||!("touches"in ne)&&ne.button!==0)return;const he=Ye(ne);!he||(pe.current=!0,Ae.current=he,Je.current=!1,be.current=!("touches"in ne),!(s?s(he,{nativeEvent:ne.nativeEvent,direction:A}):!0))||no(ne,he)&&Hn()});function ya(ne,he,we){if(!t||!on.current)return;const Le=Ko(ne.nativeEvent);if(vt(ne)&&!Je.current){const Qt=ne.currentTarget;if(ut(Le,Qt))return}if("touches"in ne||ne.preventDefault(),de.current&&(de.current=!1,w)){B.current=he;const Qt=sd(ne.timeStamp);Qt!==null&&(st.current=Qt)}const Ie=he.x,Ve=he.y,rt=we.x,ft=we.y;(ft<0&&Ve>ee.current.y||ft>0&&Ve<ee.current.y)&&(ee.current={x:ee.current.x,y:Ve}),(rt<0&&Ie>ee.current.x||rt>0&&Ie<ee.current.x)&&(ee.current={x:Ie,y:ee.current.y});const St=Ie-B.current.x,wt=Ve-B.current.y,Tt=Ve-ee.current.y,an=Ie-ee.current.x;let sn=ue.current;sn===null&&M&&k&&Math.sqrt(St*St+wt*wt)>=bj&&(sn=Math.abs(St)>Math.abs(wt)?"horizontal":"vertical",ue.current=sn);let zt;if(!V.current)sn==="vertical"?wt>0?zt="down":wt<0&&(zt="up"):sn==="horizontal"?St>0?zt="right":St<0&&(zt="left"):Math.abs(St)>=Math.abs(wt)?zt=St>0?"right":"left":zt=wt>0?"down":"up",zt&&(zt==="left"&&C||zt==="right"&&R||zt==="up"&&z||zt==="down"&&P)&&(V.current=zt,L.current=$i(zt,St,wt),F(zt),gn(zt));else{const Qt=V.current,or=$i(Qt,an,Tt);or>bt.current?(Q.current=!1,F(Qt)):!(C&&R)&&!(z&&P)&&L.current-or>=yj&&(Q.current=!0)}const Dn=Jt(St,wt);let xt=ce.current.x,Rt=ce.current.y;sn==="horizontal"?M&&(xt+=Dn.x):(sn==="vertical"||M&&(xt+=Dn.x),k&&(Rt+=Dn.y));const Gn=G.current,ba=xt!==Gn.x||Rt!==Gn.y;G.current={x:xt,y:Rt},ba&&Pe(!0),Ne({x:xt,y:Rt},sd(ne.timeStamp));const bi=xt-ce.current.x,va=Rt-ce.current.y,ro={deltaX:bi,deltaY:va,direction:V.current};let rr=0;const $r=A??V.current;if($r){const Qt=$r==="left"||$r==="right"?nt.current.width:nt.current.height,or=ce.current.scale||1,Zr=$i($r,bi,va);Qt>0&&or>0&&Zr>0&&(rr=Zr/(Qt*or))}Kt(rr,ro)}const Yn=Kn(ne=>{if(!t)return;const he=G.current,we=ce.current,Le=he.x-we.x,Ie=he.y-we.y,Ve={deltaX:Le,deltaY:Ie,direction:V.current};if(!on.current){Vr(),Kt(0,Ve);return}xn(!1),ue.current=null,Vr(),be.current=!1;const rt=r.current;rt&&("touches"in ne||Xp(rt,ne.pointerId,"releasePointerCapture"));
13const ft=Le,St=Ie,wt=st.current,Tt=sd(ne.timeStamp),an=wt!==null&&Tt!==null&&Tt>wt?Tt-wt:0,sn=an>0?Math.max(an,vj):0,zt=sn>0?ft/sn:0,Dn=sn>0?St/sn:0;let xt=rn.current.x,Rt=rn.current.y;const Gn=Xt.current;if(Gn&&Tt!==null&&Tt>=Gn.time){const rr=Tt-Gn.time;if(rr<=Sj){const $r=Math.max(rr,r3),Qt=he.x-Gn.x,or=he.y-Gn.y,Zr=Qt/$r,xo=or/$r;Zr!==0&&(xt=Zr),xo!==0&&(Rt=xo)}else xt=0,Rt=0}const ba=v?.({event:ne.nativeEvent,direction:V.current,deltaX:ft,deltaY:St,velocityX:zt,velocityY:Dn,releaseVelocityX:xt,releaseVelocityY:Rt}),bi=typeof ba=="boolean";if(Q.current&&!bi){G.current={x:we.x,y:we.y},F(void 0),Pe(!1),Kt(0,Ve);return}let va=!1,ro;if(bi)va=ba,ro=V.current??A;else for(const rr of n)if($i(rr,ft,St)>bt.current){va=!0,ro=rr;break}va&&ro?(F(ro),se(!0),Pe(!1),d?.(ne.nativeEvent,{direction:ro})):(G.current={x:we.x,y:we.y},F(void 0),Pe(!1),Kt(0,Ve))}),tr=Kn(ne=>{const he=Ye(ne);if(!he)return;let we=!1;if(!("touches"in ne)){const Ve=xj(ne.buttons);if(Ve&&(be.current=!0),ne.buttons!==0&&!Ve){It(ne);return}if(ne.buttons===0&&be.current){if(!on.current){Yn(ne);return}we=!0}}if(!Y&&pe.current){if(!vt(ne)&&(ne.defaultPrevented||ne.nativeEvent.defaultPrevented)){Vr();return}if(s?s(he,{nativeEvent:ne.nativeEvent,direction:A}):!0){const rt=Ae.current;let ft=!1;if(vt(ne)){const wt=r.current;if(rt&&wt){const Tt=Qe(he,ne.nativeEvent),sn=hr(wt).body,zt=sn?ut(Tt,sn):null;if(zt&&(Wr(wt,zt)||Wr(zt,wt))){const Dn=he.x-rt.x,xt=he.y-rt.y,Rt=_n(zt,Dn,xt);if(Rt===!1)return;Rt===!0&&(ft=!0)}}}no(ne,he,{ignoreScrollableTarget:ft,ignoreScrollableAncestors:ft})&&(rt&&ft?(Hn(),B.current=rt,ee.current=rt,ae.current=rt,de.current=!1):(Hn(),Je.current=!1))}}const Le=ae.current,Ie=Le===null?{x:0,y:0}:{x:he.x-Le.x,y:he.y-Le.y};ae.current=he,ya(ne,he,Ie),we&&!("touches"in ne)&&Yn(ne)}),nr=Kn((ne,he)=>{tr({touches:ne.touches,currentTarget:he,nativeEvent:ne,defaultPrevented:ne.defaultPrevented,timeStamp:ne.timeStamp})}),Ur=O.useCallback(()=>{const ne=on.current,he=G.current,we=ce.current,Le=he.x-we.x,Ie=he.y-we.y;return!ne&&Le===0&&Ie===0&&!fe?{[a.x]:"0px",[a.y]:"0px"}:{transition:ne?"none":void 0,transform:ne?o3(he,we.scale):void 0,[a.x]:`${Le}px`,[a.y]:`${Ie}px`}},[fe,a]),qe=O.useCallback(()=>t?{onPointerDown:At,onPointerMove:tr,onPointerUp:Yn,onPointerCancel:Yn}:{},[t,Yn,tr,At]),Lt=O.useCallback(()=>t?{onTouchStart:At,onTouchMove:tr,onTouchEnd:Yn,onTouchCancel:Yn}:{},[t,Yn,tr,At]);return{swiping:Y,swipeDirection:N,dragDismissed:fe,getPointerProps:qe,getTouchProps:Lt,moveNative:nr,getDragStyles:Ur,reset:gt}}const CT="--toast-index",_j="--toast-offset-y",Tj="--toast-height",kj="--toast-swipe-movement-x",Ej="--toast-swipe-movement-y",Cj="data-swipe-direction",Aj={...lT,swipeDirection(e){return e?{[Cj]:e}:null}},a3=40,Rj=10,i3=.5,Mj=1,Oj=`${ij},${sj}`,AT=O.forwardRef(function(t,n){const{toast:r,render:a,className:s,swipeDirection:l=["down","right"],style:f,...h}=t,d=r.positionerProps?.anchor!==void 0;let p=[];d||(p=Array.isArray(l)?l:[l]);const y=p.length>0,b=wu(),[v,S]=O.useState(void 0),[w,_]=O.useState(!1),[A,E]=O.useState(!1),[C,R]=O.useState({x:0,y:0}),[z,P]=O.useState({x:0,y:0,scale:1}),[M,k]=O.useState(),[D,N]=O.useState(),[F,Y]=O.useState(null),J=O.useRef(null),fe=O.useRef(void 0),se=O.useRef({x:0,y:0}),B=O.useRef({x:0,y:0,scale:1}),G=O.useRef(void 0),ae=O.useRef(0),ce=O.useRef(!1),V=O.useRef({x:0,y:0}),L=O.useRef(!1),Q=O.useRef({x:0,y:0}),ee=O.useRef(null),ue=O.useRef(null),de=b.useState("toastIndex",r.id),pe=b.useState("toastVisibleIndex",r.id),Ae=b.useState("toastOffsetY",r.id),Je=b.useState("focused"),be=b.useState("expanded");nj({open:r.transitionStatus!=="ending",ref:J,onComplete(){r.transitionStatus==="ending"&&b.removeToast(r.id)}});const nt=Kn((Pe=!1)=>{const Ne=J.current;if(!Ne)return;const gt=Ne.style.height;Ne.style.height="auto";const Ye=Ne.offsetHeight;Ne.style.height=gt;function vt(){b.updateToastInternal(r.id,{ref:J,height:Ye,transitionStatus:void 0})}Pe?us.flushSync(vt):vt()});nn(()=>{const Pe=fe.current;r.transitionStatus!=="starting"&&Pe===r.id||(Pe!==void 0&&(S(void 0),P({x:0,y:0,scale:1}),pt({x:0,y:0})),fe.current=r.id,nt())},[nt,r.id,r.transitionStatus]);function pt(Pe){Q.current=Pe,R(Pe)}nn(()=>()=>{ue.current?.abort()},[]);function bt(Pe,Ne){const gt=Qe=>Qe>0?Qe**i3:-(Math.abs(Qe)**i3),Ye=Pe>0&&!p.includes("right")||Pe<0&&!p.includes("left"),vt=Ne>0&&!p.includes("down")||Ne<0&&!p.includes("up");return{x:Ye?gt(Pe):Pe,y:vt?gt(Ne):Ne}}const Ft=Kn(Pe=>{if(Pe.pointerId!==ee.current)return;
13ee.current=null,ue.current?.abort(),ue.current=null,_(!1),E(!1),Y(null);const Ne=B.current;if(Pe.type==="pointercancel"||ce.current){pt({x:Ne.x,y:Ne.y}),S(void 0);return}const gt=Q.current,Ye=gt.x-Ne.x,vt=gt.y-Ne.y;let Qe;for(const ut of p)if($i(ut,Ye,vt)>a3){Qe=ut;break}Qe?(S(Qe),b.closeToast(r.id)):(pt({x:Ne.x,y:Ne.y}),S(void 0))});function st(Pe){if(Pe.button!==0||(Pe.pointerType==="touch"&&b.pauseTimers(),Ko(Pe.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${Oj}`)))return;ce.current=!1,G.current=void 0,ae.current=0,ee.current=Pe.pointerId,se.current={x:Pe.clientX,y:Pe.clientY},V.current=se.current;const Ye=Pe.currentTarget,vt=ET(Ye);B.current=vt,P(vt),pt({x:vt.x,y:vt.y}),b.set("hovering",!0),_(!0),E(!1),Y(null),L.current=!0,ue.current?.abort();const Qe=new AbortController;ue.current=Qe;const ut=hr(Ye);ut.addEventListener("pointerup",Ft,{signal:Qe.signal}),ut.addEventListener("pointercancel",Ft,{signal:Qe.signal}),Ye.setPointerCapture?.(Pe.pointerId)}function Xt(Pe){if(Pe.pointerId!==ee.current)return;Pe.preventDefault(),L.current&&(se.current={x:Pe.clientX,y:Pe.clientY},L.current=!1);const{clientY:Ne,clientX:gt,movementX:Ye,movementY:vt}=Pe;(vt<0&&Ne>V.current.y||vt>0&&Ne<V.current.y)&&(V.current={x:V.current.x,y:Ne}),(Ye<0&>>V.current.x||Ye>0&><V.current.x)&&(V.current={x:gt,y:V.current.y});const Qe=gt-se.current.x,ut=Ne-se.current.y,no=Ne-V.current.y,Vr=gt-V.current.x;let Hn=F;if(!A&&Math.sqrt(Qe*Qe+ut*ut)>=Mj){E(!0);const nr=p.includes("left")||p.includes("right"),Ur=p.includes("up")||p.includes("down");if(nr&&Ur){const qe=Math.abs(Qe),Lt=Math.abs(ut);Hn=qe>Lt?"horizontal":"vertical",Y(Hn)}}let It;if(!G.current)Hn==="vertical"?ut>0?It="down":ut<0&&(It="up"):Hn==="horizontal"?Qe>0?It="right":Qe<0&&(It="left"):Math.abs(Qe)>=Math.abs(ut)?It=Qe>0?"right":"left":It=ut>0?"down":"up",It&&p.includes(It)&&(G.current=It,ae.current=$i(It,Qe,ut),S(It));else{const tr=G.current,nr=$i(tr,Vr,no);nr>a3?(ce.current=!1,S(tr)):!(p.includes("left")&&p.includes("right"))&&!(p.includes("up")&&p.includes("down"))&&ae.current-nr>=Rj&&(ce.current=!0)}const Jt=bt(Qe,ut);let _n=B.current.x,At=B.current.y;const ya=p.includes("left")||p.includes("right"),Yn=p.includes("up")||p.includes("down");Hn!=="vertical"&&ya&&(_n+=Jt.x),Hn!=="horizontal"&&Yn&&(At+=Jt.y),pt({x:_n,y:At})}function rn(Pe){if(Pe.key==="Escape"){if(!J.current||!Wr(J.current,cc(hr(J.current))))return;b.closeToast(r.id)}}O.useEffect(()=>{const Pe=J.current;if(!y||!Pe)return;function Ne(gt){ee.current===null||!Wr(Pe,Ko(gt))||gt.preventDefault()}return Vi(Pe,"touchmove",Ne,{passive:!1})},[y]);function Zn(){const Pe=C.x-z.x,Ne=C.y-z.y;return{transition:w?"none":void 0,transform:w?`translateX(${C.x}px) translateY(${C.y}px) scale(${z.scale})`:void 0,[kj]:`${Pe}px`,[Ej]:`${Ne}px`}}const on=r.priority==="high",zn={role:on?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":M,"aria-describedby":D,"aria-hidden":on&&!Je?!0:void 0,onPointerDown:y?st:void 0,onPointerMove:y?Xt:void 0,onPointerUp:y?Ft:void 0,onPointerCancel:y?Ft:void 0,onKeyDown:rn,inert:QL(r.limited),style:{...Zn(),[CT]:r.transitionStatus==="ending"?de:pe,[_j]:`${Ae}px`,[Tj]:r.height?`${r.height}px`:void 0}},xn=O.useMemo(()=>({toast:r,setTitleId:k,setDescriptionId:N,recalculateHeight:nt,visibleIndex:pe,expanded:be}),[r,k,N,nt,pe,be]),gn={transitionStatus:r.transitionStatus,expanded:be,limited:r.limited||!1,type:r.type,swiping:w,swipeDirection:v},Kt=to("div",t,{ref:[n,J],state:gn,stateAttributesMapping:Aj,props:[zn,h]});return I.jsx(kT.Provider,{value:xn,children:Kt})}),Pj=O.forwardRef(function(t,n){const{render:r,className:a,style:s,...l}=t,{visibleIndex:f,expanded:h,recalculateHeight:d}=Hh(),p=O.useRef(null);nn(()=>{d();const v=p.current;if(!v||typeof ResizeObserver!="function"||typeof MutationObserver!="function")return;const S=new ResizeObserver(()=>d(!0)),w=new MutationObserver(()=>d(!0));return S.observe(v),w.observe(v,{childList:!0,subtree:!0,characterData:!0}),()=>{S.disconnect(),w.disconnect()}},[d]);const y=f>0;return to("div",t,{ref:[n,p],state:{expanded:h,behind:y},props:l})});let s3=0;function zj(e,t="mui"){const[n,r]=O.useState(e),a=e||n;return O.useEffect(()=>{n==null&&(s3+=1,r(`${t}-${s3}`))},[n,t]),a}const c3=j1.useId;function Vh(e,t){if(c3!==void 0){const n=c3();return e??(t?`${t}-${n}`:n)}return zj(e,t)}function RT(e){return e==null||typeof e=="boolean"||e===""?!1:Array.isArray(e)?e.some(RT):!0}function MT(e){return O.isValidElement(e)&&RT(e.props.children)}function OT(e,t,n){const{toast:r,setTitleId:a,setDescriptionId:s}=Hh(),l=n==="title"?a:s,f=t??(n==="title"?r.title:r.description);return{id:Vh(e),children:f,type:r.type,setId:l}}function PT(e,t,n){const r=MT(e);return nn(()=>
13{if(r)return n(t),()=>{n(a=>a===t?void 0:a)}},[r,t,n]),r?e:null}const Dj=O.forwardRef(function(t,n){const{render:r,className:a,style:s,id:l,children:f,...h}=t,{id:d,children:p,type:y,setId:b}=OT(l,f,"description"),S=to("p",t,{ref:n,state:{type:y},props:{...h,id:d,children:p}});return PT(S,d,b)}),Nj=O.forwardRef(function(t,n){const{render:r,className:a,style:s,id:l,children:f,...h}=t,{id:d,children:p,type:y,setId:b}=OT(l,f,"title"),S=to("h2",t,{ref:n,state:{type:y},props:{...h,id:d,children:p}});return PT(S,d,b)}),Lj=O.forwardRef(function(t,n){const{render:r,className:a,style:s,disabled:l,nativeButton:f=!0,...h}=t,d=wu(),{toast:p,expanded:y}=Hh(),[b,v]=O.useState(!1),{getButtonProps:S,buttonRef:w}=H1({disabled:l,native:f}),_={type:p.type};return to("button",t,{ref:[n,w],state:_,props:[{"aria-hidden":!y&&!b,onClick(){d.closeToast(p.id)},onFocus(){v(!0)},onBlur(){v(!1)}},h,S]})}),jj=O.forwardRef(function(t,n){const{render:r,className:a,style:s,disabled:l,nativeButton:f=!0,...h}=t,{toast:d}=Hh(),p=d.actionProps?.children??h.children,{getButtonProps:y,buttonRef:b}=H1({disabled:l,native:f}),v={type:d.type},S=to("button",t,{ref:[n,b],state:v,props:[h,d.actionProps,y,{children:p}]});return MT(S)?S:null}),dQ="none",hQ="trigger-press",mQ="trigger-hover",pQ="trigger-focus",gQ="outside-press",yQ="item-press",bQ="close-press",vQ="clear-press",SQ="track-press",wQ="input-change",xQ="input-clear",_Q="input-press",Bj="focus-out",TQ="escape-key",kQ="close-watcher",EQ="list-navigation",CQ="keyboard",AQ="pointer",RQ="drag",MQ="cancel-open",OQ="sibling-open",PQ="disabled",zQ="imperative-action",DQ="swipe",NQ="window-resize";function Fj(e,t,n,r){let a=!1,s=!1;const l=r??po;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){s=!0},get isCanceled(){return a},get isPropagationAllowed(){return s},trigger:n,...l}}function LQ(e,t,n){const r=n??po;return{reason:e,event:t??new Event("base-ui"),...r}}function Ij(e){return`data-base-ui-${e}`}const zT=O.createContext(null),Hj=()=>O.useContext(zT),Vj=Ij("portal");function DT(e={}){const{ref:t,container:n,componentProps:r=po,elementProps:a}=e,s=Vh(),f=Hj()?.portalNode,[h,d]=O.useState(null),[p,y]=O.useState(null),b=Kn(_=>{_!==null&&y(_)}),v=O.useRef(null);nn(()=>{if(n===null){v.current&&(v.current=null,y(null),d(null));return}const _=(n&&(D1(n)?n:n.current))??f??document.body;if(_==null){v.current&&(v.current=null,y(null),d(null));return}v.current!==_&&(v.current=_,y(null),d(_))},[n,f]);const S=to("div",r,{ref:[t,b],props:[{id:s,[Vj]:""},a]}),w=h&&S?us.createPortal(S,h):null;return{node:p,nodeId:O.isValidElement(S)?S.props.id:void 0,subtree:w}}const jQ=O.forwardRef(function(t,n){const{render:r,className:a,style:s,children:l,container:f,portalOwnerRole:h,...d}=t,{node:p,nodeId:y,subtree:b}=DT({container:f,ref:n,componentProps:t,elementProps:d}),v=O.useRef(null),S=O.useRef(null),w=O.useRef(null),_=O.useRef(null),[A,E]=O.useState(null),C=O.useRef(!1),R=A?.modal,z=A?.open,P=!!A&&!A.modal&&A.open&&!!p;O.useEffect(()=>{if(!p||R)return;function k(D){p&&D.relatedTarget&&Yp(D)&&(D.type==="focusin"?C.current&&(t3(p),C.current=!1):(GL(p),C.current=!0))}return rT(Vi(p,"focusin",k,!0),Vi(p,"focusout",k,!0))},[p,R]),nn(()=>{!p||z!==!0||!C.current||(t3(p),C.current=!1)},[z,p]);const M=O.useMemo(()=>({beforeOutsideRef:v,afterOutsideRef:S,beforeInsideRef:w,afterInsideRef:_,portalNode:p,setFocusManagerState:E}),[p]);return I.jsxs(O.Fragment,{children:[b,I.jsxs(zT.Provider,{value:M,children:[P&&p&&I.jsx(fy,{"data-type":"outside",ref:v,onFocus:k=>{if(Yp(k,p))w.current?.focus();else{const D=A?A.domReference:null;YL(D)?.focus()}}}),P&&p&&I.jsx("span",{role:h,"aria-owns":y,style:lj}),p&&us.createPortal(l,p),P&&p&&I.jsx(fy,{"data-type":"outside",ref:S,onFocus:k=>{if(Yp(k,p))_.current?.focus();else{const D=A?A.domReference:null;ZL(D)?.focus(),A?.closeOnFocusOut&&A?.onOpenChange(!1,Fj(Bj,k.nativeEvent))}}})]})]})}),Uj=O.forwardRef(function(t,n){const{children:r,container:a,className:s,render:l,style:f,...h}=t,{node:d,subtree:p}=DT({container:a,ref:n,componentProps:t,elementProps:h});return!p&&!d?null:I.jsxs(O.Fragment,{children:[p,d&&us.createPortal(r,d)]})}),NT=O.forwardRef(function(t,n){return I.jsx(Uj,{ref:n,...t})});function cd(e){const t=So($j,e).current;return t.next=e,nn(t.effect),t}function $j(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function LT(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class Zj{nodesRef={current:[]};events=LT();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const jT=O.createContext(null),BT=O.createContext(null),K1=()=>O.useContext(jT)?.id||null,FT=e=>{const t=O.useContext(BT);return e??t};function BQ(e){const t=Vh(),n=FT(e),r=K1();return nn(()=>
13{if(!t)return;const a={id:t,parentId:r};return n?.addNode(a),()=>{n?.removeNode(a)}},[n,t,r]),t}function FQ(e){const{children:t,id:n}=e,r=K1();return I.jsx(jT.Provider,{value:O.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function IQ(e){const{children:t,externalTree:n}=e,r=So(()=>n??new Zj).current;return I.jsx(BT.Provider,{value:r,children:t})}function l3(e,t,n){let{reference:r,floating:a}=e;const s=Br(t),l=q1(t),f=G1(l),h=Fr(t),d=s==="y",p=r.x+r.width/2-a.width/2,y=r.y+r.height/2-a.height/2,b=r[f]/2-a[f]/2;let v;switch(h){case"top":v={x:p,y:r.y-a.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y};break;case"left":v={x:r.x-a.width,y};break;default:v={x:r.x,y:r.y}}const S=la(t);return S&&(v[l]+=b*(S==="end"?1:-1)*(n&&d?-1:1)),v}async function Yj(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:l,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:y="floating",altBoundary:b=!1,padding:v=0}=ri(t,e),S=hT(v),_=f[b?y==="floating"?"reference":"floating":y],A=oh(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:d,rootBoundary:p,strategy:h})),E=y==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),R=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},z=oh(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:E,offsetParent:C,strategy:h}):E);return{top:(A.top-z.top+S.top)/R.y,bottom:(z.bottom-A.bottom+S.bottom)/R.y,left:(A.left-z.left+S.left)/R.x,right:(z.right-A.right+S.right)/R.x}}const Gj=50,qj=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:l}=n,f=l.detectOverflow?l:{...l,detectOverflow:Yj},h=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y}=l3(d,r,h),b=r,v=0;const S={};for(let w=0;w<s.length;w++){const _=s[w];if(!_)continue;const{name:A,fn:E}=_,{x:C,y:R,data:z,reset:P}=await E({x:p,y,initialPlacement:r,placement:b,strategy:a,middlewareData:S,rects:d,platform:f,elements:{reference:e,floating:t}});p=C??p,y=R??y,S[A]={...S[A],...z},P&&v<Gj&&(v++,typeof P=="object"&&(P.placement&&(b=P.placement),P.rects&&(d=P.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):P.rects),{x:p,y}=l3(d,b,h)),w=-1)}return{x:p,y,placement:b,strategy:a,middlewareData:S}},Xj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:l,initialPlacement:f,platform:h,elements:d}=t,{mainAxis:p=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,..._}=ri(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const A=Fr(a),E=Br(f),C=Fr(f)===f,R=await(h.isRTL==null?void 0:h.isRTL(d.floating)),z=b||(C||!w?[rh(f)]:PL(f)),P=S!=="none";!b&&P&&z.push(...LL(f,w,S,R));const M=[f,...z],k=await h.detectOverflow(t,_),D=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&D.push(k[A]),y){const fe=OL(a,l,R);D.push(k[fe[0]],k[fe[1]])}if(N=[...N,{placement:a,overflows:D}],!D.every(fe=>fe<=0)){var F,Y;const fe=(((F=s.flip)==null?void 0:F.index)||0)+1,se=M[fe];if(se&&(!(y==="alignment"?E!==Br(se):!1)||N.every(ae=>Br(ae.placement)===E?ae.overflows[0]>0:!0)))return{data:{index:fe,overflows:N},reset:{placement:se}};let B=(Y=N.filter(G=>G.overflows[0]<=0).sort((G,ae)=>G.overflows[1]-ae.overflows[1])[0])==null?void 0:Y.placement;if(!B)switch(v){case"bestFit":{var J;const G=(J=N.filter(ae=>{if(P){const ce=Br(ae.placement);return ce===E||ce==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ce=>ce>0).reduce((ce,V)=>ce+V,0)]).sort((ae,ce)=>ae[1]-ce[1])[0])==null?void 0:J[0];G&&(B=G);break}case"initialPlacement":B=f;break}if(a!==B)return{reset:{placement:B}}}return{}}}},IT=new Set(["left","top"]);async function Kj(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Fr(n),f=la(n),h=Br(n)==="y",d=IT.has(l)?-1:1,p=s&&h?-1:1,y=ri(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}
13:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof S=="number"&&(v=f==="end"?S*-1:S),h?{x:v*p,y:b*d}:{x:b*d,y:v*p}}const Jj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:l,middlewareData:f}=t,h=await Kj(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:a+h.x,y:s+h.y,data:{...h,placement:l}}}}},Qj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:s}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:h={fn:E=>{let{x:C,y:R}=E;return{x:C,y:R}}},...d}=ri(e,t),p={x:n,y:r},y=await s.detectOverflow(t,d),b=Br(a),v=Y1(b);let S=p[v],w=p[b];const _=(E,C)=>dT(C+y[E==="y"?"top":"left"],C,C-y[E==="y"?"bottom":"right"]);l&&(S=_(v,S)),f&&(w=_(b,w));const A=h.fn({...t,[v]:S,[b]:w});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[v]:l,[b]:f}}}}}},Wj=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:a,y:s,placement:l,rects:f,middlewareData:h}=t,{offset:d=0,mainAxis:p=!0,crossAxis:y=!0}=ri(e,t),b={x:a,y:s},v=Br(l),S=Y1(v);let w=b[S],_=b[v];const A=ri(d,t),E=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:(n=A.mainAxis)!=null?n:0,crossAxis:(r=A.crossAxis)!=null?r:0};if(p){const z=S==="y"?"height":"width",P=f.reference[S]-f.floating[z]+E.mainAxis,M=f.reference[S]+f.reference[z]-E.mainAxis;w<P?w=P:w>M&&(w=M)}if(y){var C,R;const z=S==="y"?"width":"height",P=IT.has(Fr(l)),M=f.reference[v]-f.floating[z]+(P&&((C=h.offset)==null?void 0:C[v])||0)+(P?0:E.crossAxis),k=f.reference[v]+f.reference[z]+(P?0:((R=h.offset)==null?void 0:R[v])||0)-(P?E.crossAxis:0);_<M?_=M:_>k&&(_=k)}return{[S]:w,[v]:_}}}},eB=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:s}=t,{apply:l=()=>{},...f}=ri(e,t),h=await a.detectOverflow(t,f),d=Fr(n),p=la(n),y=Br(n)==="y",{width:b,height:v}=r.floating;let S,w;d==="top"||d==="bottom"?(S=d,w=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(w=d,S=p==="end"?"top":"bottom");const _=v-h.top-h.bottom,A=b-h.left-h.right,E=pc(v-h[S],_),C=pc(b-h[w],A),R=t.middlewareData.shift,z=!R;let P=E,M=C;R!=null&&R.enabled.x&&(M=A),R!=null&&R.enabled.y&&(P=_),z&&!p&&(y?M=b-2*ta(h.left,h.right):P=v-2*ta(h.top,h.bottom)),await l({...t,availableWidth:M,availableHeight:P});const k=await a.getDimensions(s.floating);return b!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}};function HT(e){const t=pr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;
13const a=Pn(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,f=nh(n)!==s||nh(r)!==l;return f&&(n=s,r=l),{width:n,height:r,$:f}}function J1(e){return Rn(e)?e:e.contextElement}function lc(e){const t=J1(e);if(!Pn(t))return na(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=HT(t);let l=(s?nh(n.width):n.width)/r,f=(s?nh(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const tB=na(0);function VT(e){const t=Mn(e);return!L1()||!t.visualViewport?tB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nB(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Mn(e)}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=J1(e);let l=na(1);t&&(r?Rn(r)&&(l=lc(r)):l=lc(e));const f=nB(s,n,r)?VT(s):na(0);let h=(a.left+f.x)/l.x,d=(a.top+f.y)/l.y,p=a.width/l.x,y=a.height/l.y;if(s&&r){const b=Mn(s),v=Rn(r)?Mn(r):r;let S=b,w=ty(S);for(;w&&v!==S;){const _=lc(w),A=w.getBoundingClientRect(),E=pr(w),C=A.left+(w.clientLeft+parseFloat(E.paddingLeft))*_.x,R=A.top+(w.clientTop+parseFloat(E.paddingTop))*_.y;h*=_.x,d*=_.y,p*=_.x,y*=_.y,h+=C,d+=R,S=Mn(w),w=ty(S)}}return oh({width:p,height:y,x:h,y:d})}function Uh(e,t){const n=Fh(e).scrollLeft;return t?t.left+n:rs(ma(e)).left+n}function UT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Uh(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function rB(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=ma(r),f=t?Bh(t.floating):!1;if(r===l||f&&s)return n;let h={scrollLeft:0,scrollTop:0},d=na(1);const p=na(0),y=Pn(r);if((y||!s)&&((mr(r)!=="body"||jh(l))&&(h=Fh(r)),y)){const v=rs(r);d=lc(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const b=l&&!y&&!s?UT(l,h):na(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-h.scrollLeft*d.x+p.x+b.x,y:n.y*d.y-h.scrollTop*d.y+p.y+b.y}}function oB(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function aB(e){const t=Fh(e),n=e.ownerDocument.body,r=ta(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=ta(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Uh(e);const l=-t.scrollTop;return pr(n).direction==="rtl"&&(s+=ta(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:s,y:l}}const iB=25;function sB(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",a=Mn(e),s=ma(e),l=a.visualViewport;let f=s.clientWidth,h=s.clientHeight,d=0,p=0;if(l){const b=!L1()||t==="fixed";r?b||(d=-l.offsetLeft,p=-l.offsetTop):(f=l.width,h=l.height,b&&(d=l.offsetLeft,p=l.offsetTop))}if(Uh(s)<=0){const b=s.ownerDocument,v=b.body,S=getComputedStyle(v),w=b.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,_=Math.abs(s.clientWidth-v.clientWidth-w),A=getComputedStyle(s).scrollbarGutter==="stable both-edges"?_/2:_;A<=iB&&(f-=A)}return{width:f,height:h,x:d,y:p}}function cB(e,t){const n=rs(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=lc(e),l=e.clientWidth*s.x,f=e.clientHeight*s.y,h=a*s.x,d=r*s.y;return{width:l,height:f,x:h,y:d}}function u3(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=sB(e,n,t);else if(t==="document")r=aB(ma(e));else if(Rn(t))r=cB(t,n);else{const a=VT(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return oh(r)}function lB(e,t){const n=t.get(e);if(n)return n;let r=su(e,[],!1).filter(f=>Rn(f)&&mr(f)!=="body"),a=null;const s=pr(e).position==="fixed";let l=s?ca(e):e;for(;Rn(l)&&!ns(l);){const f=pr(l),h=N1(l),d=a?a.position:s?"fixed":"";!h&&(d==="fixed"||d==="absolute"&&f.position==="static")?r=r.filter(y=>y!==l):a=f,l=ca(l)}return t.set(e,r),r}function uB(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Bh(t)?[]:lB(t,this._c):[].concat(n),r],f=u3(t,l[0],a);let h=f.top,d=f.right,p=f.bottom,y=f.left;for(let b=1;b<l.length;b++){const v=u3(t,l[b],a);h=ta(v.top,h),d=pc(v.right,d),p=pc(v.bottom,p),y=ta(v.left,y)}return{width:d-y,height:p-h,x:y,y:h}}function fB(e){const{width:t,height:n}=HT(e);return{width:t,height:n}}function dB(e,t,n){const r=Pn(t),a=ma(t),s=n==="fixed",l=rs(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const h=na(0);if((r||!s)&&((mr(t)!=="body"||jh(a))&&(f=Fh(t)),r)){const b=rs(t,!0,s,t);h.x=b.x+t.clientLeft,h.y=b.y+t.clientTop}!r&&a&&(h.x=Uh(a));const d=a&&!r&&!s?UT(a,f):na(0),p=l.left+f.scrollLeft-h.x-d.x,y=l.top+f.scrollTop-h.y-d.y;return{x:p,y,width:l.width,height:l.height}}function Kp(e){return pr(e).position==="static"}function f3(e,t){if(!Pn(e)||pr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ma(e)===n&&(n=n.ownerDocument.body),n}function $T(e,t){const n=Mn(e);if(Bh(e))return n;if(!Pn(e)){let a=ca(e);for(;a&&!ns(a);){if(Rn(a)&&!Kp(a))return a;a=ca(a)}return n}let r=f3(e,t);for(;r&&tN(r)&&Kp(r);)r=f3(r,t);return r&&ns(r)&&Kp(r)&&!N1(r)?n:r||oN(e)||n}const hB=async function(e){const t=this.getOffsetParent||$T,n=this.getDimensions,r=await n(e.floating);return{reference:dB(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mB(e){return pr(e).direction==="rtl"}const pB={convertOffsetParentRelativeRectToViewportRelativeRect:rB,getDocumentElement:ma,getClippingRect:uB,getOffsetParent:$T,getElementRects:hB,getClientRects:oB,getDimensions:fB,get
13Scale:lc,isElement:Rn,isRTL:mB};function ZT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gB(e,t,n){let r=null,a;const s=ma(e);function l(){var p;clearTimeout(a),(p=r)==null||p.disconnect(),r=null}function f(p,y){p===void 0&&(p=!1),y===void 0&&(y=1),l();const b=e.getBoundingClientRect(),{left:v,top:S,width:w,height:_}=b;if(p||t(),!w||!_)return;const A=Ui(S),E=Ui(s.clientWidth-(v+w)),C=Ui(s.clientHeight-(S+_)),R=Ui(v),P={rootMargin:-A+"px "+-E+"px "+-C+"px "+-R+"px",threshold:ta(0,pc(1,y))||1};let M=!0;function k(D){const N=D[0].intersectionRatio;if(!ZT(b,e.getBoundingClientRect()))return f();if(N!==y){if(!M)return f();N?f(!1,N):a=setTimeout(()=>{f(!1,1e-7)},1e3)}M=!1}try{r=new IntersectionObserver(k,{...P,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,P)}r.observe(e)}const h=Mn(e),d=()=>f(n);return h.addEventListener("resize",d),f(!0),()=>{h.removeEventListener("resize",d),l()}}function d3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,d=J1(e),p=a||s?[...d?su(d):[],...t?su(t):[]]:[];p.forEach(A=>{a&&A.addEventListener("scroll",n),s&&A.addEventListener("resize",n)});const y=d&&f?gB(d,n,s):null;let b=-1,v=null;l&&(v=new ResizeObserver(A=>{let[E]=A;E&&E.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),n()}),d&&!h&&v.observe(d),t&&v.observe(t));let S,w=h?rs(e):null;h&&_();function _(){const A=rs(e);w&&!ZT(w,A)&&n(),w=A,S=requestAnimationFrame(_)}return n(),()=>{var A;p.forEach(E=>{a&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),y?.(),(A=v)==null||A.disconnect(),v=null,h&&cancelAnimationFrame(S)}}const yB=Jj,bB=Qj,vB=Xj,SB=eB,wB=Wj,xB=(e,t,n)=>{const r=new Map,a=n??{},s={...pB,...a.platform,_c:r};return qj(e,t,{...a,platform:s})};var _B=typeof document<"u",TB=function(){},Ld=_B?O.useLayoutEffect:TB;function ah(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ah(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!ah(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function YT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function h3(e,t){const n=YT(e);return Math.round(t*n)/n}function Jp(e){const t=O.useRef(e);return Ld(()=>{t.current=e}),t}function kB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:f=!0,whileElementsMounted:h,open:d}=e,[p,y]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,v]=O.useState(r);ah(b,r)||v(r);const[S,w]=O.useState(null),[_,A]=O.useState(null),E=O.useCallback(ae=>{ae!==P.current&&(P.current=ae,w(ae))},[]),C=O.useCallback(ae=>{ae!==M.current&&(M.current=ae,A(ae))},[]),R=s||S,z=l||_,P=O.useRef(null),M=O.useRef(null),k=O.useRef(p),D=h!=null,N=Jp(h),F=Jp(a),Y=Jp(d),J=O.useCallback(()=>{if(!P.current||!M.current)return;const ae={placement:t,strategy:n,middleware:b};F.current&&(ae.platform=F.current),xB(P.current,M.current,ae).then(ce=>{const V={...ce,isPositioned:Y.current!==!1};fe.current&&!ah(k.current,V)&&(k.current=V,us.flushSync(()=>{y(V)}))})},[b,t,n,F,Y]);Ld(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,y(ae=>({...ae,isPositioned:!1})))},[d]);const fe=O.useRef(!1);Ld(()=>(fe.current=!0,()=>{fe.current=!1}),[]),Ld(()=>{if(R&&(P.current=R),z&&(M.current=z),R&&z){if(N.current)return N.current(R,z,J);J()}},[R,z,J,N,D]);const se=O.useMemo(()=>({reference:P,floating:M,setReference:E,setFloating:C}),[E,C]),B=O.useMemo(()=>({reference:R,floating:z}),[R,z]),G=O.useMemo(()=>{const ae={position:n,left:0,top:0};if(!B.floating)return ae;const ce=h3(B.floating,p.x),V=h3(B.floating,p.y);return f?{...ae,transform:"translate("+ce+"px, "+V+"px)",...YT(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ce,top:V}},[n,f,B.floating,p.x,p.y]);return O.useMemo(()=>({...p,update:J,refs:se,elements:B,floatingStyles:G}),[p,J,se,B,G])}const EB=(e,t)=>{const n=yB(e);return{name:n.name,fn:n.fn,options:[e,t]}},CB=(e,t)=>{const n=bB(e);return{name:n.name,fn:n.fn,options:[e,t]}},AB=(e,t)=>({fn:wB(e).fn,options:[e,t]}),RB=(e,t)=>{const n=vB(e);return{name:n.name,fn:n.fn,options:[e,t]}},MB=(e,t)=>{const n=SB(e);return{name:n.name,fn:n.fn,options:[e,t]}},OB={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class PB extends nT{constructor(t){const{syncOnly:n,nested:r,onOpenChange:a,triggerElements:s,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:a,dataRef:{current:{}},events:LT(),nested:r,triggerElements:s},OB),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&RL(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}class zB{constructor(){this.idMap=new Map}add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}function DB(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,a=Vh(),s=K1()!=null,l=So(()=>new PB({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new zB,floatingId:a,syncOnly:!1,nested:s})).current;return nn(()=>{const f={open:t,floatingId:a};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=Rn(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,a,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=s,l}function NB(e){return LB(e,e.rootContext)}function LB(e,t){const{nodeId:n,externalTree:r}=e,a=t.useState("referenceElement"),s=t.useState("floatingElement"),l=t.useState("domReferenceElement"),f=t.useState("open"),h=t.useState("floatingId"),[d,p]=O.useState(null),[y,b]=O.useState(void 0),[v,S]=O.useState(void 0),w=O.useRef(null),_=FT(r),A=O.useMemo(()=>({reference:a,floating:s,domReference:l}),[a,s,l]),E=kB({...e,elements:{...A,...d&&{reference:d}}}),C=Rn(y)?y:null,R=v===void 0?t.state.floatingElement:v;t.useSyncedValue("referenceElement",y??null),t.useSyncedValue("domReferenceElement",y===void 0?l:C),t.useSyncedValue("floatingElement",R);const z=O.useCallback(F=>{const Y=Rn(F)?{getBoundingClientRect:()=>F.getBoundingClientRect(),getClientRects:()=>F.getClientRects(),contextElement:F}:F;p(Y),E.refs.setReference(Y)},[E.refs]),P=O.useCallback(F=>{(Rn(F)||F===null)&&(w.current=F,b(F)),(Rn(E.refs.reference.current)||E.refs.reference.current===null||F!==null&&!Rn(F))&&E.refs.setReference(F)},[E.refs,b]),M=O.useCallback(F=>{S(F),E.refs.setFloating(F)},[E.refs]),k=O.useMemo(()=>({...E.refs,setReference:P,setFloating:M,setPositionReference:z,domReference:w}),[E.refs,P,M,z]),D=O.useMemo(()=>({...E.elements,domReference:l}),[E.elements,l]),N=O.useMemo(()=>({...E,dataRef:t.context.dataRef,open:f,onOpenChange:t.setOpen,events:t.context.events,floatingId:h,refs:k,elements:D,nodeId:n,rootStore:t}),[E,k,D,n,t,f,h]);return nn(()=>{l&&(w.current=l)},[l]),nn(()=>{t.context.dataRef.current.floatingContext=N;const F=_?.nodesRef.current.find(Y=>Y.id===n);F&&(F.context=N)}),O.useMemo(()=>({...E,context:N,refs:k,elements:D,rootStore:t}),[E,k,D,N,t])}const jB=O.createContext(void 0);function BB(){return O.useContext(jB)?.direction??"ltr"}const FB=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:l,elements:f,middlewareData:h}=t,{element:d,padding:p=0,offsetParent:y="real"}=ri(e,t)||{};if(d==null)return{};const b=hT(p),v={x:n,y:r},S=q1(a),w=G1(S),_=await l.getDimensions(d),A=S==="y",E=A?"top":"left",C=A?"bottom":"right",R=A?"clientHeight":"clientWidth",z=s.reference[w]+s.reference[S]-v[S]-s.floating[w],P=v[S]-s.reference[S],M=y==="real"?await l.getOffsetParent?.(d):f.floating;let k=f.floating[R]||s.floating[w];(!k||!await l.isElement?.(M))&&(k=f.floating[R]||s.floating[w]);const D=z/2-P/2,N=k/2-_[w]/2-1,F=Math.min(b[E],N),Y=Math.min(b[C],N),J=F,fe=k-_[w]-Y,se=k/2-_[w]/2+D,B=dT(J,se,fe),G=!h.arrow&&la(a)!=null&&se!==B&&s.reference[w]/2-(se<J?F:Y)-_[w]/2<0,ae=G?se<J?se-J:se-fe:0;return{[S]:v[S]+ae,data:{[S]:B,centerOffset:se-B-ae,...G&&{alignmentOffset:ae}},reset:G}}}),IB=(e,t)=>{const{name:n,fn:r}=FB(e);return{name:n,fn:r,options:[e,t]}},HB={name:"hide",async fn(e){const{width:t,height:n,x:r,y:a}=e.rects.reference,s=t===0&&n===0&&r===0&&a===0,l=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:l.top-n>=0||l.right-t>=0||l.bottom-n>=0||l.left-t>=0||s}}}},VB={sideX:"left",sideY:"top"},UB="--available-width",$B="--available-height",ZB="--anchor-width",YB="--anchor-height",GB="--transform-origin",m3=UB,p3=$B;function GT(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function g3(e,t,n){const{rects:r,placement:a}=e;return{side:GT(t,Fr(a),n),align:la(a)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function qB(e){return XB(e,NB)}function XB(e,t){const{anchor:n,positionMethod:r="absolute",side:a="bottom",sideOffset:s=0,align:l="center",alignOffset:f=0,collisionBoundary:h,collisionPadding:d=5,sticky:p=!1,arrowPadding:y=5,disableAnchorTracking:b=!1,inline:v,keepMounted:S=!1,floatingRootContext:w,mounted:_,collisionAvoidance:A,shift:E,nodeId:C,adaptiveOrigin:R,lazyFlip:z=!1,externalTree:P}=e,[M,k]=O.useState(null);!_&&M!==null&&k(null);const D=A.side||"flip",N=A.align||"flip",F=A.fallbackAxisSide||"end",Y=E?.crossAxis??!1,J=E?.rootBoundary,fe=typeof n=="function"?n:void 0,se=Kn(fe),B=fe?se:n,G=cd(n),ae=cd(_),V=BB()==="rtl",L=M||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":V?"left":"right","inline-start":V?"right":"left"}[a],Q=l==="center"?L:`${L}-${l}`;let ee=d;typeof ee=="number"?ee={top:ee,right:ee,bottom:ee,left:ee}:ee&&(ee={top:ee.top||0,right:ee.right||0,bottom:ee.bottom||0,left:ee.left||0});const ue=1,de=a==="bottom"?ue:0,pe=a==="top"?ue:0,Ae=a==="right"?ue:0,Je=a==="left"?ue:0,be={boundary:h==="clipping-ancestors"?"clippingAncestors":h,padding:ee},nt=O.useRef(null),pt=cd(s),bt=cd(f),Ft=typeof s!="function"?s:0,st=typeof f!="function"?f:0,Xt=[];v&&Xt.push(v),Xt.push(EB(qe=>{const Lt=g3(qe,a,V),ne=typeof pt.current=="function"?pt.current(Lt):pt.current,he=typeof bt.current=="function"?bt.current(Lt):bt.current;return{mainAxis:ne,crossAxis:he,alignmentAxis:he}},[Ft,st,V,a]));const rn=N==="none"&&D!=="shift",Zn=!rn&&(p||Y||D==="shift"),on=D==="none"?null:RB({...be,padding:{top:ee.top+ue+de,right:ee.right+ue+Je,bottom:ee.bottom+ue+pe,left:ee.left+ue+Ae},mainAxis:!Y&&D==="flip",crossAxis:N==="flip"?"alignment":!1,fallbackAxisSideDirection:F}),zn=rn?null:CB({...be,rootBoundary:J,mainAxis:N!=="none",crossAxis:Zn,limiter:p||Y?void 0:AB(qe=>{if(!nt.current)return{};const{width:Lt,height:ne}=nt.current.getBoundingClientRect(),he=Br(Fr(qe.placement)),we=he==="y"?Lt:ne,Le=he==="y"?ee.left+ee.right:ee.top+ee.bottom;return{offset:we/2+Le/2}})},[be,p,Y,J,ee,N]);D==="shift"||N==="shift"||l==="center"?Xt.push(zn,on):Xt.push(on,zn),Xt.push(MB({...be,apply({elements:{floating:qe},availableWidth:Lt,availableHeight:ne,rects:he}){if(!ae.current)return;const we=qe.style;we.setProperty(m3,`${Lt}px`),we.setProperty(p3,`${ne}px`);
13const Le=Mn(qe).devicePixelRatio||1,{x:Ie,y:Ve,width:rt,height:ft}=he.reference,St=(Math.round((Ie+rt)*Le)-Math.round(Ie*Le))/Le,wt=(Math.round((Ve+ft)*Le)-Math.round(Ve*Le))/Le;we.setProperty(ZB,`${St}px`),we.setProperty(YB,`${wt}px`)}}),IB(qe=>({element:nt.current||hr(qe.elements.floating).createElement("div"),padding:nt.current?y:0,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(qe){const{elements:{floating:Lt},middlewareData:ne,placement:he,platform:we,rects:Le,y:Ie}=qe,Ve=Fr(he),rt=la(he),ft=Br(Ve)==="y",St=nt.current,wt=typeof s=="function"?s(g3(qe,a,V)):s;let Tt;if(!St&&rt&&Math.abs(ft?ne.shift?.x||0:ne.shift?.y||0)<=1)Tt=rt==="start"===(ft&&we.isRTL?.(Lt)===!0)?"100%":"0%";else{const sn=ft?ne.arrow?.x||0:ne.arrow?.y||0,zt=ft?St?.clientWidth||0:St?.clientHeight||0;Tt=`${sn+zt/2}px`}let an=Ve==="top"||Ve==="left"?`calc(100% + ${wt}px)`:`${-wt}px`;return Zn&&ft&&Math.abs(ne.shift?.y||0)>wt&&(an=`${Le.reference.y+Le.reference.height/2-Ie}px`),Lt.style.setProperty(GB,ft?`${Tt} ${an}`:`${an} ${Tt}`),{}}},HB,R),nn(()=>{!_&&w&&w.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,w]);const xn=O.useMemo(()=>({ancestorScroll:!b,elementResize:!b&&typeof ResizeObserver<"u",layoutShift:!b&&typeof IntersectionObserver<"u"}),[b]),{refs:gn,elements:Kt,x:Pe,y:Ne,middlewareData:gt,update:Ye,placement:vt,context:Qe,isPositioned:ut,floatingStyles:no}=t({rootContext:w,open:S?_:void 0,placement:Q,middleware:Xt,strategy:r,whileElementsMounted:S?void 0:(...qe)=>d3(...qe,xn),nodeId:C,externalTree:P}),{sideX:Vr,sideY:Hn}=gt.adaptiveOrigin||VB,It=ut?r:"fixed",Jt=O.useMemo(()=>{let qe;return ut?R?qe={position:It,[Vr]:Pe,[Hn]:Ne}:qe={...no,position:It}:qe={position:It,top:0,left:0},qe[m3]="100vw",qe[p3]="100vh",ut||(qe.opacity=0),qe},[R,It,Vr,Pe,Hn,Ne,no,ut]),_n=O.useRef(null);nn(()=>{if(!_)return;
13const qe=G.current,Lt=typeof qe=="function"?qe():qe,he=(y3(Lt)?Lt.current:Lt)||null||null;he!==_n.current&&(gn.setPositionReference(he),_n.current=he)},[_,gn,B,G]),O.useEffect(()=>{if(!_)return;const qe=G.current;typeof qe!="function"&&y3(qe)&&qe.current!==_n.current&&(gn.setPositionReference(qe.current),_n.current=qe.current)},[_,gn,B,G]),O.useEffect(()=>{if(S&&_&&Kt.reference&&Kt.floating)return d3(Kt.reference,Kt.floating,Ye,xn)},[S,_,Kt,Ye,xn]);const At=Fr(vt),ya=GT(a,At,V),Yn=la(vt)||"center",tr=!!gt.hide?.referenceHidden;nn(()=>{z&&_&&ut&&At!==L&&k(At)},[z,_,ut,At,L]);const nr=O.useMemo(()=>({position:"absolute",top:gt.arrow?.y,left:gt.arrow?.x}),[gt.arrow]),Ur=gt.arrow?.centerOffset!==0;return O.useMemo(()=>({positionerStyles:Jt,arrowStyles:nr,arrowRef:nt,arrowUncentered:Ur,side:ya,align:Yn,physicalSide:At,anchorHidden:tr,refs:gn,context:Qe,isPositioned:ut,update:Ye}),[Jt,nr,nt,Ur,ya,Yn,At,tr,gn,Qe,ut,Ye])}function y3(e){return e!=null&&"current"in e}const qT=O.createContext(void 0);function KB(){const e=O.useContext(qT);if(e===void 0)throw new Error(Su(84));return e}function JB(e){return e==="starting"?rj:po}function QB(e,t,{styles:n,transitionStatus:r,props:a,refs:s,hidden:l,inert:f=!1}){const h={...n};return f&&(h.pointerEvents="none"),to("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:l,style:h},JB(r),a],stateAttributesMapping:fT})}const WB=O.forwardRef(function(t,n){const{toast:r,...a}=t,s=wu(),l=r.positionerProps??po,{render:f,className:h,anchor:d=l.anchor,positionMethod:p=l.positionMethod??"absolute",side:y=l.side??"top",align:b=l.align??"center",sideOffset:v=l.sideOffset??0,alignOffset:S=l.alignOffset??0,collisionBoundary:w=l.collisionBoundary??"clipping-ancestors",collisionPadding:_=l.collisionPadding??5,arrowPadding:A=l.arrowPadding??5,sticky:E=l.sticky??!1,disableAnchorTracking:C=l.disableAnchorTracking??!1,collisionAvoidance:R=l.collisionAvoidance??cj,style:z,...P}=a,[M,k]=O.useState(null),D=s.useState("toastIndex",r.id),N=s.useState("toastVisibleIndex",r.id),F=Rn(d)?d:null,Y=DB({open:!0,onOpenChange:K_,elements:{floating:M,reference:F}}),J=qB({anchor:F,positionMethod:p,floatingRootContext:Y,mounted:!0,side:y,sideOffset:v,align:b,alignOffset:S,collisionBoundary:w,collisionPadding:_,sticky:E,arrowPadding:A,disableAnchorTracking:C,keepMounted:!0,collisionAvoidance:R}),fe={side:J.side,align:J.align,anchorHidden:J.anchorHidden},se=QB(t,fe,{styles:{...J.positionerStyles,[CT]:r.transitionStatus==="ending"?D:N},transitionStatus:r.transitionStatus,props:P,refs:[n,k]});return I.jsx(qT.Provider,{value:J,children:se})}),eF=O.forwardRef(function(t,n){const{className:r,render:a,style:s,...l}=t,{arrowRef:f,side:h,align:d,arrowUncentered:p,arrowStyles:y}=KB();return to("div",t,{state:{side:h,align:d,uncentered:p},ref:[n,f],props:[{style:y,"aria-hidden":!0},l]})});function XT(){const e=wu(),t=e.useState("toasts");return O.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function KT(){const e=new Set;function t(n){e.forEach(r=>r(n))}return{" subscribe":function(r){return e.add(r),()=>{e.delete(r)}},add(n){const r=n.id||oT("toast"),a={...n,id:r,transitionStatus:"starting"};return t({action:"add",options:a}),r},close(n){t({action:"close",options:{id:n}})},update(n,r){t({action:"update",options:{id:n,updates:r}})},promise(n,r){let a=n;return t({action:"promise",options:{...r,promise:n,setPromise(s){a=s}}}),a}}}const JT=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const tF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const nF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const b3=e=>{const t=nF(e);return t.charAt(0).toUpperCase()+t.slice(1)};var rF={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"};const oF=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const aF=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...f},h)=>O.createElement("svg",{ref:h,...rF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JT("lucide",a),...!s&&!oF(f)&&{"aria-hidden":"true"},...f},[...l.map(([d,p])=>O.createElement(d,p)),...Array.isArray(s)?s:[s]]));const xc=(e,t)=>{const n=O.forwardRef(({className:r,...a},s)=>O.createElement(aF,{ref:s,iconNode:t,className:JT(`lucide-${tF(b3(e))}`,`lucide-${e}`,r),...a}));return n.displayName=b3(e),n};const iF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],sF=xc("circle-alert",iF);const cF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],lF=xc("circle-check",cF);const uF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fF=xc("info",uF);const dF=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}
13]],hF=xc("loader-circle",dF);const mF=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pF=xc("triangle-alert",mF);const gF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yF=xc("x",gF),bF=z1({slots:{root:"rotate-0",fill:"",borderLight:"",borderDark:""},variants:{variant:{popover:{fill:"fill-surface",borderLight:"fill-outline-variant dark:fill-none",borderDark:"fill-none dark:fill-outline-variant"},tooltip:{fill:"fill-surface",borderLight:"fill-outline-variant dark:fill-none",borderDark:"fill-none dark:fill-outline-variant"},tooltipInverse:{fill:"fill-inverse-surface",borderLight:"fill-none",borderDark:"fill-none"}}},defaultVariants:{variant:"popover"}});function vF({className:e,variant:t,...n}){const{root:r,fill:a,borderLight:s,borderDark:l}=bF({variant:t});return I.jsxs("svg",{"aria-hidden":"true",className:r({class:[e]}),fill:"none",height:"10",viewBox:"0 0 20 10",width:"20",...n,"data-slot":"arrow",children:[I.jsx("path",{className:a(),d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z"}),I.jsx("path",{className:s(),d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z"}),I.jsx("path",{className:l(),d:"M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z"})]})}const Zo=KT(),hy=KT(),SF={default:null,error:sF,info:fF,loading:hF,success:lF,warning:pF},QT=z1({base:"rounded-md shadow-sm transition-all select-none overlay-outline",variants:{type:{default:"bg-surface-container text-on-surface",inverse:"bg-inverse-surface text-inverse-on-surface",error:"bg-error outline-error text-on-error",info:"bg-info text-on-info",loading:"bg-surface text-on-surface",success:"bg-success text-on-success",warning:"bg-warning text-on-warning"}},defaultVariants:{type:"default"}}),Ya=e=>{const{customContent:t,closable:n,data:r,...a}=e||{};return{...a,data:{...r,closable:n,customContent:t}}},HQ={add:e=>Zo.add(Ya(e)),anchor:(e,t)=>{if(!e)return"";const{sideOffset:n,side:r,...a}=t||{},s=Ya(a);return hy.add({...s,positionerProps:{anchor:e,side:r??"bottom",sideOffset:n??8}})},close:e=>{Zo.close(e),hy.close(e)},error:e=>Zo.add({...Ya(e),type:"error"}),info:e=>Zo.add({...Ya(e),type:"info"}),promise:(e,t)=>{const n=r=>typeof r=="string"?{title:r}:Ya(r);return Zo.promise(e,{error:r=>{const a=typeof t.error=="function"?t.error(r):t.error;return n(a)},loading:n(t.loading),success:r=>{const a=typeof t.success=="function"?t.success(r):t.success;return n(a)}})},success:e=>Zo.add({...Ya(e),type:"success"}),update:(e,t)=>Zo.update(e,Ya(t)),warning:e=>Zo.add({...Ya(e),type:"warning"})},WT=({...e})=>I.jsx(JL,{"data-slot":"toast-viewport",...e}),ek=({children:e,...t})=>I.jsx(Pj,{"data-slot":"toast-content",...t,children:e}),tk=({children:e,...t})=>I.jsx(Nj,{className:"text-sm font-semibold","data-slot":"toast-title",...t,children:e}),nk=({children:e,...t})=>I.jsx(Dj,{className:"text-sm","data-slot":"toast-description",...t,children:e}),wF=({children:e,...t})=>I.jsx(Lj,{"aria-label":"Close","data-slot":"toast-close",...t,children:e}),xF=e=>I.jsx(jj,{"data-slot":"toast-action",...e}),_F=e=>I.jsx(eF,{className:"data-[side=bottom]:-top-2 data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-2 data-[side=top]:rotate-180","data-slot":"toast-arrow",...e,children:I.jsx(vF,{})}),TF=({position:e="bottom-right",swipeDirection:t=["down","right"],limit:n=3})=>I.jsxs(I.Fragment,{children:[I.jsx(n3,{limit:n,toastManager:Zo,children:I.jsx(kF,{position:e,swipeDirection:t})}),I.jsx(n3,{toastManager:hy,children:I.jsx(EF,{})})]}),kF=({position:e,swipeDirection:t})=>{const{toasts:n}=XT();return I.jsx(NT,{children:I.jsx(WT,{className:"toast-viewport","data-position":e,children:n.map(r=>{const a=r.type||"default",s=SF[a],l=r.data?.customContent;return I.jsx(AT,{className:Ka("toast-root",!l&&QT({type:a})),"data-position":e,"data-slot":"toast-root",swipeDirection:t,toast:r,children:I.jsx(ek,{className:Ka("overflow-hidden transition-opacity duration-250 select-none","data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100"),children:l?r.data.customContent:I.jsxs("div",{className:"flex items-start gap-3 p-4",children:[s&&I.jsx(s,{className:Ka("size-5 shrink-0 mt-0.5",a==="loading"&&"animate-spin mt-0"),"data-slot":"toast-icon"}),I.jsxs("div",{className:"flex flex-col flex-wrap flex-1 gap-2",children:[I.jsxs("div",{className:"space-y-1",children:[r.title&&I.jsx(tk,{children:r.title}),r.description&&I.jsx(nk,{children:r.description})]}),r.actionProps&&I.jsx(xF,{className:Ka(ry({size:"sm"}),"w-fit"),children:r.actionProps.children}),r.data?.closable&&I.jsx(wF,{className:Ka(ry({size:"icon-sm",variant:"ghost"}),"absolute top-1 right-1 size-6",a==="error"&&"hover:bg-error-container/20!",a==="success"&&"hover:bg-success/20!",a==="warning"&&"hover:bg-warning/20!",a==="info"&&"hover:bg-info/20!"),children:I.jsx(yF,{className:"size-4"})})]})]})})},r.id)})})})},EF=()=>{const{toasts:e}=XT();return I.jsx(NT,{children:I.jsx(WT,{className:"fixed inset-0 pointer-events-none z-100",children:e.map(t=>{const n=t.data?.customContent;return I.jsx(WB,{className:"outline-none","data-slot":"toast-positioner",toast:t,children:I.jsx(AT,{className:Ka(!n&&QT({type:"default"}),"animate-popup"),"data-slot":"toast-root",toast:t,children:n?t.data.customContent:I.jsxs(I.Fragment,{children:[I.jsx(_F,{}),I.jsxs(ek,{className:"flex flex-col py-2 px-3 gap-2 animate-popup rounded-md",children:[t.title&&I.jsx(tk,{children:t.title}),t.description&&I.jsx(nk,{children:t.description})]})]})})},t.id)})})})};function v3(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function my(e,t){const n=Object.create(null);if(e)for(const r of Object.keys(e))v3(r)&&(n[r]=e[r]);if(t&&typeof t=="object")for(const r of Object.keys(t))v3(r)&&(n[r]=t[r]);return n}function rk(e){return Object.create(null)}var ok=()=>{throw new Error("createServerOnlyFn() functions can only be called on the server!")}
13,Il=(e,t)=>{const n=t||e||{};typeof n.method>"u"&&(n.method="GET");const r=l=>Il(void 0,{...n,validator:l,inputValidator:l});return Object.assign(l=>Il(void 0,{...n,...l}),{options:n,middleware:l=>{const f=[...n.middleware||[]];l.map(d=>{zw in d?d.options.middleware&&f.push(...d.options.middleware):f.push(d)});const h=Il(void 0,{...n,middleware:f});return h[zw]=!0,h},validator:r,inputValidator:r,handler:(...l)=>{const[f,h]=l,d={...n,extractedFn:f,serverFn:h},p=[...d.middleware||[],RF(d)];return f.method=n.method,Object.assign(async y=>{const b=await S3(p,"client",{...f,...d,data:y?.data,headers:y?.headers,signal:y?.signal,fetch:y?.fetch,context:rk()}),v=F4(b.error);if(v)throw v;if(b.error)throw b.error;return b.result},{...f,method:n.method,__executeServer:async y=>{const b=ok(),v=b.contextAfterGlobalMiddlewares;return await S3(p,"server",{...f,...y,serverFnMeta:f.serverFnMeta,context:my(y.context,v),request:b.request}).then(S=>({result:S.result,error:S.error,context:S.sendContext}))}})}})};async function S3(e,t,n){let r=CF([...Gy()?.functionMiddleware||[],...e]);if(t==="server"){const s=ok();s?.executedRequestMiddlewares&&(r=r.filter(l=>!s.executedRequestMiddlewares.has(l)))}const a=async s=>{const l=r.shift();if(!l)return s;try{let f="validator"in l.options?l.options.validator:void 0;!f&&"inputValidator"in l.options&&(f=l.options.inputValidator),f&&t==="server"&&(s.data=await AF(f,s.data));let h;if(t==="client"?"client"in l.options&&(h=l.options.client):"server"in l.options&&(h=l.options.server),h){const p=await h({...s,next:async(y={})=>{const b=await a({...s,...y,context:my(s.context,y.context),sendContext:my(s.sendContext,y.sendContext),headers:YM(s.headers,y.headers),_callSiteFetch:s._callSiteFetch,fetch:s._callSiteFetch??y.fetch??s.fetch,result:y.result!==void 0?y.result:y instanceof Response?y:s.result,error:y.error??s.error});if(b.error)throw b.error;return b}});if(Ky(p))return{...s,error:p};if(p instanceof Response)return{...s,result:p};if(!p)throw new Error("User middleware returned undefined. You must call next() or return a result in your middlewares.");return p}return a(s)}catch(f){return{...s,error:f}}};return a({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||rk(),_callSiteFetch:n.fetch})}function CF(e,t=100){const n=new Set,r=[],a=(s,l)=>{if(l>t)throw new Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);s.forEach(f=>{f.options.middleware&&a(f.options.middleware,l+1),n.has(f)||(n.add(f),r.push(f))})};return a(e,0),r}async function AF(e,t){if(e==null)return{};if("~standard"in e){const n=await e["~standard"].validate(t);if(n.issues)throw new Error(JSON.stringify(n.issues,void 0,2));return n.value}if("parse"in e)return e.parse(t);if(typeof e=="function")return e(t);throw new Error("Invalid validator type!")}function RF(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...a})=>{const s={...a,context:n,fetch:r};return t(await e.extractedFn?.(s))},server:async({next:t,...n})=>{const r=await e.serverFn?.(n);return t({...n,result:r})}}}}var Ol=(e,t)=>{const n={type:"request",...t||e},r=a=>Ol({},Object.assign(n,{validator:a,inputValidator:a}));return{options:n,middleware:a=>Ol({},Object.assign(n,{middleware:a}
13)),validator:r,inputValidator:r,client:a=>Ol({},Object.assign(n,{client:a})),server:a=>Ol({},Object.assign(n,{server:a}))}};async function MF(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-1",t);return Array.from(new Uint8Array(n)).map(r=>r.toString(16).padStart(2,"0")).join("")}var OF=async e=>`/__tsr/staticServerFnCache/${await MF(`${e.functionId}__${e.hash}`)}.json`,PF=e=>JSON.stringify(e??"",(n,r)=>r&&typeof r=="object"&&!Array.isArray(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r).replace(/[/\\?%*:|"<>]/g,"-").replace(/\s+/g,"_"),zF=typeof document<"u"?new Map:null,DF=async({data:e,functionId:t})=>{const n=await OF({functionId:t,hash:PF(e)});let r=zF?.get(n);return r=await fetch(n,{method:"GET"}).then(a=>a.json()).then(a=>_M(a,{plugins:N6()})),r},ak=Ol({type:"function"}).client(async e=>{if(typeof document<"u"){const t=await DF({functionId:e.serverFnMeta.id,data:e.data});if(t)return{result:t.result,context:{...e.context,...t.context}}}return e.next()});const NF=Il({method:"GET"}).middleware([ak]).handler(d1("c1167272f16e4206bd4f827edb7b1d81d6875d8bc7f3fdd060101cccc246abdf")),LF=Il({method:"GET"}).middleware([ak]).handler(d1("0216a8ad0ec437cfb64835610098bca60b2c4982eb192d268653822d177bad28"));function fr(e){return e<0?-1:e===0?0:1}function Hl(e,t,n){return(1-n)*e+n*t}function jF(e,t,n){return n<e?e:n>t?t:n}function Zt(e,t,n){return n<e?e:n>t?t:n}function w3(e){return e=e%360,e<0&&(e=e+360),e}function Qn(e){return e=e%360,e<0&&(e=e+360),e}function BF(e,t){return Qn(t-e)<=180?1:-1}function FF(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function py(e,t){const n=e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],r=e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],a=e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2];return[n,r,a]}const ik=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],IF=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],sk=[95.047,100,108.883];function Q1(e,t,n){return(255<<24|(e&255)<<16|(t&255)<<8|n&255)>>>0}function x3(e){const t=Xi(e[0]),n=Xi(e[1]),r=Xi(e[2]);return Q1(t,n,r)}function W1(e){return e>>16&255}function eb(e){return e>>8&255}function tb(e){return e&255}function HF(e,t,n){const r=IF,a=r[0][0]*e+r[0][1]*t+r[0][2]*n,s=r[1][0]*e+r[1][1]*t+r[1][2]*n,l=r[2][0]*e+r[2][1]*t+r[2][2]*n,f=Xi(a),h=Xi(s),d=Xi(l);return Q1(f,h,d)}function VF(e){const t=ra(W1(e)),n=ra(eb(e)),r=ra(tb(e));return py([t,n,r],ik)}function UF(e){const t=ra(W1(e)),n=ra(eb(e)),r=ra(tb(e)),a=ik,s=a[0][0]*t+a[0][1]*n+a[0][2]*r,l=a[1][0]*t+a[1][1]*n+a[1][2]*r,f=a[2][0]*t+a[2][1]*n+a[2][2]*r,h=sk,d=s/h[0],p=l/h[1],y=f/h[2],b=Vl(d),v=Vl(p),S=Vl(y),w=116*v-16,_=500*(b-v),A=200*(v-S);return[w,_,A]}function $F(e){const t=Qa(e),n=Xi(t);return Q1(n,n,n)}function gy(e){const t=VF(e)[1];return 116*Vl(t/100)-16}function Qa(e){return 100*YF((e+16)/116)}function yy(e){return Vl(e/100)*116-16}function ra(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Xi(e){const t=e/100;let n=0;return t<=.0031308?n=t*12.92:n=1.055*Math.pow(t,1/2.4)-.055,jF(0,255,Math.round(n*255))}function ZF(){return sk}function Vl(e){const t=.008856451679035631,n=24389/27;return e>t?Math.pow(e,1/3):(n*e+16)/116}function YF(e){const t=.008856451679035631,n=24389/27,r=e*e*e;return r>t?r:(116*e-16)/n}class Jo{constructor(t,n,r,a,s,l,f,h,d,p){this.n=t,this.aw=n,this.nbb=r,this.ncb=a,this.c=s,this.nc=l,this.rgbD=f,this.fl=h,this.fLRoot=d,this.z=p}static DEFAULT=Jo.make();static make(t=ZF(),n=200/Math.PI*Qa(50)/100,r=50,a=2,s=!1){const l=t,f=l[0]*.401288+l[1]*.650173+l[2]*-.051461,h=l[0]*-.250268+l[1]*1.204414+l[2]*.045854,d=l[0]*-.002079+l[1]*.048952+l[2]*.953127,p=.8+a/10,y=p>=.9?Hl(.59,.69,(p-.9)*10):Hl(.525,.59,(p-.8)*10);let b=s?1:p*(1-1/3.6*Math.exp((-n-42)/92));b=b>1?1:b<0?0:b;const v=p,S=[b*(100/f)+1-b,b*(100/h)+1-b,b*(100/d)+1-b],w=1/(5*n+1),_=w*w*w*w,A=1-_,E=_*n+.1*A*A*Math.cbrt(5*n),C=Qa(r)/t[1],R=1.48+Math.sqrt(C),z=.725/Math.pow(C,.2),P=z,M=[Math.pow(E*S[0]*f/100,.42),Math.pow(E*S[1]*h/100,.42),Math.pow(E*S[2]*d/100,.42)],k=[400*M[0]/(M[0]+27.13),400*M[1]/(M[1]+27.13),400*M[2]/(M[2]+27.13)
13],D=(2*k[0]+k[1]+.05*k[2])*z;return new Jo(C,D,z,P,y,v,S,E,Math.pow(E,.25),R)}}class Cn{constructor(t,n,r,a,s,l,f,h,d){this.hue=t,this.chroma=n,this.j=r,this.q=a,this.m=s,this.s=l,this.jstar=f,this.astar=h,this.bstar=d}distance(t){const n=this.jstar-t.jstar,r=this.astar-t.astar,a=this.bstar-t.bstar,s=Math.sqrt(n*n+r*r+a*a);return 1.41*Math.pow(s,.63)}static fromInt(t){return Cn.fromIntInViewingConditions(t,Jo.DEFAULT)}static fromIntInViewingConditions(t,n){const r=(t&16711680)>>16,a=(t&65280)>>8,s=t&255,l=ra(r),f=ra(a),h=ra(s),d=.41233895*l+.35762064*f+.18051042*h,p=.2126*l+.7152*f+.0722*h,y=.01932141*l+.11916382*f+.95034478*h,b=.401288*d+.650173*p-.051461*y,v=-.250268*d+1.204414*p+.045854*y,S=-.002079*d+.048952*p+.953127*y,w=n.rgbD[0]*b,_=n.rgbD[1]*v,A=n.rgbD[2]*S,E=Math.pow(n.fl*Math.abs(w)/100,.42),C=Math.pow(n.fl*Math.abs(_)/100,.42),R=Math.pow(n.fl*Math.abs(A)/100,.42),z=fr(w)*400*E/(E+27.13),P=fr(_)*400*C/(C+27.13),M=fr(A)*400*R/(R+27.13),k=(11*z+-12*P+M)/11,D=(z+P-2*M)/9,N=(20*z+20*P+21*M)/20,F=(40*z+20*P+M)/20,J=Math.atan2(D,k)*180/Math.PI,fe=Qn(J),se=fe*Math.PI/180,B=F*n.nbb,G=100*Math.pow(B/n.aw,n.c*n.z),ae=4/n.c*Math.sqrt(G/100)*(n.aw+4)*n.fLRoot,ce=fe<20.14?fe+360:fe,V=.25*(Math.cos(ce*Math.PI/180+2)+3.8),Q=5e4/13*V*n.nc*n.ncb*Math.sqrt(k*k+D*D)/(N+.305),ee=Math.pow(Q,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),ue=ee*Math.sqrt(G/100),de=ue*n.fLRoot,pe=50*Math.sqrt(ee*n.c/(n.aw+4)),Ae=(1+100*.007)*G/(1+.007*G),Je=1/.0228*Math.log(1+.0228*de),be=Je*Math.cos(se),nt=Je*Math.sin(se);return new Cn(fe,ue,G,ae,de,pe,Ae,be,nt)}static fromJch(t,n,r){return Cn.fromJchInViewingConditions(t,n,r,Jo.DEFAULT)}static fromJchInViewingConditions(t,n,r,a){const s=4/a.c*Math.sqrt(t/100)*(a.aw+4)*a.fLRoot,l=n*a.fLRoot,f=n/Math.sqrt(t/100),h=50*Math.sqrt(f*a.c/(a.aw+4)),d=r*Math.PI/180,p=(1+100*.007)*t/(1+.007*t),y=1/.0228*Math.log(1+.0228*l),b=y*Math.cos(d),v=y*Math.sin(d);return new Cn(r,n,t,s,l,h,p,b,v)}static fromUcs(t,n,r){return Cn.fromUcsInViewingConditions(t,n,r,Jo.DEFAULT)}static fromUcsInViewingConditions(t,n,r,a){const s=n,l=r,f=Math.sqrt(s*s+l*l),d=(Math.exp(f*.0228)-1)/.0228/a.fLRoot;let p=Math.atan2(l,s)*(180/Math.PI);p<0&&(p+=360);const y=t/(1-(t-100)*.007);return Cn.fromJchInViewingConditions(y,d,p,a)}toInt(){return this.viewed(Jo.DEFAULT)}viewed(t){const n=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(n/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,s=.25*(Math.cos(a+2)+3.8),l=t.aw*Math.pow(this.j/100,1/t.c/t.z),f=s*(5e4/13)*t.nc*t.ncb,h=l/t.nbb,d=Math.sin(a),p=Math.cos(a),y=23*(h+.305)*r/(23*f+11*r*p+108*r*d),b=y*p,v=y*d,S=(460*h+451*b+288*v)/1403,w=(460*h-891*b-261*v)/1403,_=(460*h-220*b-6300*v)/1403,A=Math.max(0,27.13*Math.abs(S)/(400-Math.abs(S))),E=fr(S)*(100/t.fl)*Math.pow(A,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),R=fr(w)*(100/t.fl)*Math.pow(C,1/.42),z=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),P=fr(_)*(100/t.fl)*Math.pow(z,1/.42),M=E/t.rgbD[0],k=R/t.rgbD[1],D=P/t.rgbD[2],N=1.86206786*M-1.01125463*k+.14918677*D,F=.38752654*M+.62144744*k-.00897398*D,Y=-.0158415*M-.03412294*k+1.04996444*D;return HF(N,F,Y)}static fromXyzInViewingConditions(t,n,r,a){const s=.401288*t+.650173*n-.051461*r,l=-.250268*t+1.204414*n+.045854*r,f=-.002079*t+.048952*n+.953127*r,h=a.rgbD[0]*s,d=a.rgbD[1]*l,p=a.rgbD[2]*f,y=Math.pow(a.fl*Math.abs(h)/100,.42),b=Math.pow(a.fl*Math.abs(d)/100,.42),v=Math.pow(a.fl*Math.abs(p)/100,.42),S=fr(h)*400*y/(y+27.13),w=fr(d)*400*b/(b+27.
1313),_=fr(p)*400*v/(v+27.13),A=(11*S+-12*w+_)/11,E=(S+w-2*_)/9,C=(20*S+20*w+21*_)/20,R=(40*S+20*w+_)/20,P=Math.atan2(E,A)*180/Math.PI,M=P<0?P+360:P>=360?P-360:P,k=M*Math.PI/180,D=R*a.nbb,N=100*Math.pow(D/a.aw,a.c*a.z),F=4/a.c*Math.sqrt(N/100)*(a.aw+4)*a.fLRoot,Y=M<20.14?M+360:M,J=1/4*(Math.cos(Y*Math.PI/180+2)+3.8),se=5e4/13*J*a.nc*a.ncb*Math.sqrt(A*A+E*E)/(C+.305),B=Math.pow(se,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),G=B*Math.sqrt(N/100),ae=G*a.fLRoot,ce=50*Math.sqrt(B*a.c/(a.aw+4)),V=(1+100*.007)*N/(1+.007*N),L=Math.log(1+.0228*ae)/.0228,Q=L*Math.cos(k),ee=L*Math.sin(k);return new Cn(M,G,N,F,ae,ce,V,Q,ee)}xyzInViewingConditions(t){const n=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(n/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,s=.25*(Math.cos(a+2)+3.8),l=t.aw*Math.pow(this.j/100,1/t.c/t.z),f=s*(5e4/13)*t.nc*t.ncb,h=l/t.nbb,d=Math.sin(a),p=Math.cos(a),y=23*(h+.305)*r/(23*f+11*r*p+108*r*d),b=y*p,v=y*d,S=(460*h+451*b+288*v)/1403,w=(460*h-891*b-261*v)/1403,_=(460*h-220*b-6300*v)/1403,A=Math.max(0,27.13*Math.abs(S)/(400-Math.abs(S))),E=fr(S)*(100/t.fl)*Math.pow(A,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),R=fr(w)*(100/t.fl)*Math.pow(C,1/.42),z=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),P=fr(_)*(100/t.fl)*Math.pow(z,1/.42),M=E/t.rgbD[0],k=R/t.rgbD[1],D=P/t.rgbD[2],N=1.86206786*M-1.01125463*k+.14918677*D,F=.38752654*M+.62144744*k-.00897398*D,Y=-.0158415*M-.03412294*k+1.04996444*D;return[N,F,Y]}}class Be{static SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];static LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];static Y_FROM_LINRGB=[.2126,.7152,.0722];static CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.42984823
130738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const n=t/100;let r=0;
13return n<=.0031308?r=n*12.92:r=1.055*Math.pow(n,1/2.4)-.055,r*255}static chromaticAdaptation(t){const n=Math.pow(Math.abs(t),.42);return fr(t)*400*n/(n+27.13)}static hueOf(t){const n=py(t,Be.SCALED_DISCOUNT_FROM_LINRGB),r=Be.chromaticAdaptation(n[0]),a=Be.chromaticAdaptation(n[1]),s=Be.chromaticAdaptation(n[2]),l=(11*r+-12*a+s)/11,f=(r+a-2*s)/9;return Math.atan2(f,l)}static areInCyclicOrder(t,n,r){const a=Be.sanitizeRadians(n-t),s=Be.sanitizeRadians(r-t);return a<s}static intercept(t,n,r){return(n-t)/(r-t)}static lerpPoint(t,n,r){return[t[0]+(r[0]-t[0])*n,t[1]+(r[1]-t[1])*n,t[2]+(r[2]-t[2])*n]}static setCoordinate(t,n,r,a){const s=Be.intercept(t[a],n,r[a]);return Be.lerpPoint(t,s,r)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,n){const r=Be.Y_FROM_LINRGB[0],a=Be.Y_FROM_LINRGB[1],s=Be.Y_FROM_LINRGB[2],l=n%4<=1?0:100,f=n%2===0?0:100;if(n<4){const h=l,d=f,p=(t-h*a-d*s)/r;return Be.isBounded(p)?[p,h,d]:[-1,-1,-1]}else if(n<8){const h=l,d=f,p=(t-d*r-h*s)/a;return Be.isBounded(p)?[d,p,h]:[-1,-1,-1]}else{const h=l,d=f,p=(t-h*r-d*a)/s;return Be.isBounded(p)?[h,d,p]:[-1,-1,-1]}}static bisectToSegment(t,n){let r=[-1,-1,-1],a=r,s=0,l=0,f=!1,h=!0;for(let d=0;d<12;d++){const p=Be.nthVertex(t,d);if(p[0]<0)continue;const y=Be.hueOf(p);if(!f){r=p,a=p,s=y,l=y,f=!0;continue}(h||Be.areInCyclicOrder(s,y,l))&&(h=!1,Be.areInCyclicOrder(s,n,y)?(a=p,l=y):(r=p,s=y))}return[r,a]}static midpoint(t,n){return[(t[0]+n[0])/2,(t[1]+n[1])/2,(t[2]+n[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,n){const r=Be.bisectToSegment(t,n);let a=r[0],s=Be.hueOf(a),l=r[1];for(let f=0;f<3;f++)if(a[f]!==l[f]){let h=-1,d=255;a[f]<l[f]?(h=Be.criticalPlaneBelow(Be.trueDelinearized(a[f])),d=Be.criticalPlaneAbove(Be.trueDelinearized(l[f]))):(h=Be.criticalPlaneAbove(Be.trueDelinearized(a[f])),d=Be.criticalPlaneBelow(Be.trueDelinearized(l[f])));for(let p=0;p<8&&!(Math.abs(d-h)<=1);p++){const y=Math.floor((h+d)/2),b=Be.CRITICAL_PLANES[y],v=Be.setCoordinate(a,b,l,f),S=Be.hueOf(v);Be.areInCyclicOrder(s,n,S)?(l=v,d=y):(a=v,s=S,h=y)}}return Be.midpoint(a,l)}static inverseChromaticAdaptation(t){const n=Math.abs(t),r=Math.max(0,27.13*n/(400-n));return fr(t)*Math.pow(r,1/.42)}static findResultByJ(t,n,r){let a=Math.sqrt(r)*11;const s=Jo.DEFAULT,l=1/Math.pow(1.64-Math.pow(.29,s.n),.73),h=.25*(Math.cos(t+2)+3.8)*(5e4/13)*s.nc*s.ncb,d=Math.sin(t),p=Math.cos(t);for(let y=0;y<5;y++){const b=a/100,v=n===0||a===0?0:n/Math.sqrt(b),S=Math.pow(v*l,1/.9),_=s.aw*Math.pow(b,1/s.c/s.z)/s.nbb,A=23*(_+.305)*S/(23*h+11*S*p+108*S*d),E=A*p,C=A*d,R=(460*_+451*E+288*C)/1403,z=(460*_-891*E-261*C)/1403,P=(460*_-220*E-6300*C)/1403,M=Be.inverseChromaticAdaptation(R),k=Be.inverseChromaticAdaptation(z),D=Be.inverseChromaticAdaptation(P),N=py([M,k,D],Be.LINRGB_FROM_SCALED_DISCOUNT);if(N[0]<0||N[1]<0||N[2]<0)return 0;const F=Be.Y_FROM_LINRGB[0],Y=Be.Y_FROM_LINRGB[1],J=Be.Y_FROM_LINRGB[2],fe=F*N[0]+Y*N[1]+J*N[2];if(fe<=0)return 0;if(y===4||Math.abs(fe-r)<.002)return N[0]>100.01||N[1]>100.01||N[2]>100.01?0:x3(N);a=a-(fe-r)*a/(2*fe)}return 0}static solveToInt(t,n,r){if(n<1e-4||r<1e-4||r>99.9999)return $F(r);t=Qn(t);const a=t/180*Math.PI,s=Qa(r),l=Be.findResultByJ(a,n,s);if(l!==0)return l;const f=Be.bisectToLimit(s,a);return x3(f)}static solveToCam(t,n,r){return Cn.fromInt(Be.solveToInt(t,n,r))}}class Se{constructor(t){this.argb=t;const n=Cn.fromInt(t);this.internalHue=n.hue,this.internalChroma=n.chroma,this.internalTone=gy(t),this.argb=t}internalHue;internalChroma;internalTone;static from(t,n,r){return new Se(Be.solveToInt(t,n,r))}static fromInt(t){return new Se(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(Be.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(Be.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(Be.solveToInt(this.internalHue,this.internalChroma,t))}setValue(t,n){this[t]=n}toString(){return`HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}setInternalState(t){const n=Cn.fromInt(t);this.internalHue=n.hue,this.internalChroma=n.chroma,this.internalTone=gy(t),this.argb=t}inViewingConditions(t){const r=Cn.fromInt(this.toInt()).xyzInViewingConditions(t),a=Cn.fromXyzInViewingConditions(r[0],r[1],r[2],Jo.make());return Se.from(a.hue,a.chroma,yy(r[1]))}}class nb{static harmonize(t,n){const r=Se.fromInt(t),a=Se.fromInt(n),s=FF(r.hue,a.hue),l=Math.min(s*.5,15),f=Qn(r.hue+l*BF(r.hue,a.hue));return Se.from(f,r.chroma,r.tone).toInt()}static hctHue(t,n,r){const a=nb.cam16Ucs(t,n,r),s=Cn.fromInt(a),l=Cn.fromInt(t);return Se.from(s.hue,l.chroma,gy(t)).toInt()}static cam16Ucs(t,n,r){const a=Cn.fromInt(t),s=Cn.fromInt(n),l=a.jstar,f=a.astar,h=a.bstar,d=s.jstar,p=s.astar,y=s.bstar,b=l+(d-l)*r,v=f+(p-f)*r,S=h+(y-h)*r;return Cn.fromUcs(b,v,S).toInt()}}class Vt{static ratioOfTones(t,n){return t=Zt(0,100,t),n=Zt(0,100,n),Vt.ratioOfYs(Qa(t),Qa(n))}static ratioOfYs(t,n){const r=t>n?t:n,a=r===n?t:n;return(r+5)/(a+5)}static lighter(t,n){if(t<0||t>100)return-1;const r=Qa(t),a=n*(r+5)-5,s=Vt.ratioOfYs(a,r),l=Math.abs(s-n);if(s<n&&l>.04)return-1;const f=yy(a)+.4;return f<0||f>100?-1:f}static darker(t,n){if(t<0||t>100)return-1;const r=Qa(t),a=(r+5)/n-5,s=Vt.ratioOfYs(r,a),l=Math.abs(s-n);if(s<n&&l>.04)return-1;const f=yy(a)-.4;return f<0||f>100?-1:f}static lighterUnsafe(t,n){const r=Vt.lighter(t,n);return r<0?100:r}
13static darkerUnsafe(t,n){const r=Vt.darker(t,n);return r<0?0:r}}class uu{static isDisliked(t){const n=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,r=Math.round(t.chroma)>16,a=Math.round(t.tone)<65;return n&&r&&a}static fixIfDisliked(t){return uu.isDisliked(t)?Se.from(t.hue,t.chroma,70):t}}function GF(e,t,n){if(e.name!==n.name)throw new Error(`Attempting to extend color ${e.name} with color ${n.name} of different name for spec version ${t}.`);if(e.isBackground!==n.isBackground)throw new Error(`Attempting to extend color ${e.name} as a ${e.isBackground?"background":"foreground"} with color ${n.name} as a ${n.isBackground?"background":"foreground"} for spec version ${t}.`)}function me(e,t,n){return GF(e,t,n),Z.fromPalette({name:e.name,palette:r=>r.specVersion>=t?n.palette(r):e.palette(r),tone:r=>r.specVersion>=t?n.tone(r):e.tone(r),isBackground:e.isBackground,chromaMultiplier:r=>{const a=r.specVersion>=t?n.chromaMultiplier:e.chromaMultiplier;return a!==void 0?a(r):1},background:r=>{const a=r.specVersion>=t?n.background:e.background;return a!==void 0?a(r):void 0},secondBackground:r=>{const a=r.specVersion>=t?n.secondBackground:e.secondBackground;return a!==void 0?a(r):void 0},contrastCurve:r=>{const a=r.specVersion>=t?n.contrastCurve:e.contrastCurve;return a!==void 0?a(r):void 0},toneDeltaPair:r=>{const a=r.specVersion>=t?n.toneDeltaPair:e.toneDeltaPair;return a!==void 0?a(r):void 0}})}class Z{constructor(t,n,r,a,s,l,f,h,d){if(this.name=t,this.palette=n,this.tone=r,this.isBackground=a,this.chromaMultiplier=s,this.background=l,this.secondBackground=f,this.contrastCurve=h,this.toneDeltaPair=d,!l&&f)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!l&&h)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(l&&!h)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}hctCache=new Map;static fromPalette(t){return new Z(t.name??"",t.palette,t.tone??Z.getInitialToneFromBackground(t.background),t.isBackground??!1,t.chromaMultiplier,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}static getInitialToneFromBackground(t){return t===void 0?n=>50:n=>t(n)?t(n).getTone(n):50}clone(){return Z.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear()}getArgb(t){return this.getHct(t).toInt()}getHct(t){const n=this.hctCache.get(t);if(n!=null)return n;const r=_3(t.specVersion).getHct(t,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,r),r}getTone(t){return _3(t.specVersion).getTone(t,this)}static foregroundTone(t,n){const r=Vt.lighterUnsafe(t,n),a=Vt.darkerUnsafe(t,n),s=Vt.ratioOfTones(r,t),l=Vt.ratioOfTones(a,t);if(Z.tonePrefersLightForeground(t)){const h=Math.abs(s-l)<.1&&s<n&&l<n;return s>=n||s>=l||h?r:a}else return l>=n||l>=s?a:r}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return Z.tonePrefersLightForeground(t)&&!Z.toneAllowsLightForeground(t)?49:t}}class qF{getHct(t,n){const r=n.getTone(t);return n.palette(t).getHct(r)}getTone(t,n){const r=t.contrastLevel<0,a=n.toneDeltaPair?n.toneDeltaPair(t):void 0;if(a){const s=a.roleA,l=a.roleB,f=a.delta,h=a.polarity,d=a.stayTogether,p=h==="nearer"||h==="lighter"&&!t.isDark||h==="darker"&&t.isDark,y=p?s:l,b=p?l:s,v=n.name===y.name,S=t.isDark?1:-1;let w=y.tone(t),_=b.tone(t);if(n.background&&y.contrastCurve&&b.contrastCurve){const A=n.background(t),E=y.contrastCurve(t),C=b.contrastCurve(t);if(A&&E&&C){const R=A.getTone(t),z=E.get(t.contrastLevel),P=C.get(t.contrastLevel);Vt.ratioOfTones(R,w)<z&&(w=Z.foregroundTone(R,z)),Vt.ratioOfTones(R,_)<P&&(_=Z.foregroundTone(R,P)),r&&(w=Z.foregroundTone(R,z),_=Z.foregroundTone(R,P))}}return(_-w)*S<f&&(_=Zt(0,100,w+f*S),(_-w)*S>=f||(w=Zt(0,100,_-f*S))),50<=w&&w<60?S>0?(w=60,_=Math.max(_,w+f*S)):(w=49,_=Math.min(_,w+f*S)):50<=_&&_<60&&(d?S>0?(w=60,_=Math.max(_,w+f*S)):(w=49,_=Math.min(_,w+f*S)):S>0?_=60:_=49),v?w:_}else{let s=n.tone(t);if(n.background==null||n.background(t)===void 0||n.contrastCurve==null||n.contrastCurve(t)===void 0)return s;const l=n.background(t).getTone(t),f=n.contrastCurve(t).get(t.contrastLevel);if(Vt.ratioOfTones(l,s)>=f||(s=Z.foregroundTone(l,f)),r&&(s=Z.foregroundTone(l,f)),n.isBackgroun
13d&&50<=s&&s<60&&(Vt.ratioOfTones(49,l)>=f?s=49:s=60),n.secondBackground==null||n.secondBackground(t)===void 0)return s;const[h,d]=[n.background,n.secondBackground],[p,y]=[h(t).getTone(t),d(t).getTone(t)],[b,v]=[Math.max(p,y),Math.min(p,y)];if(Vt.ratioOfTones(b,s)>=f&&Vt.ratioOfTones(v,s)>=f)return s;const S=Vt.lighter(b,f),w=Vt.darker(v,f),_=[];return S!==-1&&_.push(S),w!==-1&&_.push(w),Z.tonePrefersLightForeground(p)||Z.tonePrefersLightForeground(y)?S<0?100:S:_.length===1?_[0]:w<0?0:w}}}class XF{getHct(t,n){const r=n.palette(t),a=n.getTone(t),s=r.hue,l=r.chroma*(n.chromaMultiplier?n.chromaMultiplier(t):1);return Se.from(s,l,a)}getTone(t,n){const r=n.toneDeltaPair?n.toneDeltaPair(t):void 0;if(r){const a=r.roleA,s=r.roleB,l=r.polarity,f=r.constraint,h=l==="darker"||l==="relative_lighter"&&t.isDark||l==="relative_darker"&&!t.isDark?-r.delta:r.delta,d=n.name===a.name,p=d?a:s,y=d?s:a;let b=p.tone(t),v=y.getTone(t);const S=h*(d?1:-1);if(f==="exact"?b=Zt(0,100,v+S):f==="nearer"?S>0?b=Zt(0,100,Zt(v,v+S,b)):b=Zt(0,100,Zt(v+S,v,b)):f==="farther"&&(S>0?b=Zt(v+S,100,b):b=Zt(0,v+S,b)),n.background&&n.contrastCurve){const w=n.background(t),_=n.contrastCurve(t);if(w&&_){const A=w.getTone(t),E=_.get(t.contrastLevel);b=Vt.ratioOfTones(A,b)>=E&&t.contrastLevel>=0?b:Z.foregroundTone(A,E)}}return n.isBackground&&!n.name.endsWith("_fixed_dim")&&(b>=57?b=Zt(65,100,b):b=Zt(0,49,b)),b}else{let a=n.tone(t);if(n.background==null||n.background(t)===void 0||n.contrastCurve==null||n.contrastCurve(t)===void 0)return a;const s=n.background(t).getTone(t),l=n.contrastCurve(t).get(t.contrastLevel);if(a=Vt.ratioOfTones(s,a)>=l&&t.contrastLevel>=0?a:Z.foregroundTone(s,l),n.isBackground&&!n.name.endsWith("_fixed_dim")&&(a>=57?a=Zt(65,100,a):a=Zt(0,49,a)),n.secondBackground==null||n.secondBackground(t)===void 0)return a;const[f,h]=[n.background,n.secondBackground],[d,p]=[f(t).getTone(t),h(t).getTone(t)],[y,b]=[Math.max(d,p),Math.min(d,p)];if(Vt.ratioOfTones(y,a)>=l&&Vt.ratioOfTones(b,a)>=l)return a;const v=Vt.lighter(y,l),S=Vt.darker(b,l),w=[];return v!==-1&&w.push(v),S!==-1&&w.push(S),Z.tonePrefersLightForeground(d)||Z.tonePrefersLightForeground(p)?v<0?100:v:w.length===1?w[0]:S<0?0:S}}}const KF=new qF,JF=new XF;function _3(e){return e==="2021"?KF:JF}class ge{constructor(t,n,r){this.hue=t,this.chroma=n,this.keyColor=r}cache=new Map;static fromInt(t){const n=Se.fromInt(t);return ge.fromHct(n)}static fromHct(t){return new ge(t.hue,t.chroma,t)}static fromHueAndChroma(t,n){const r=new QF(t,n).create();return new ge(t,n,r)}tone(t){let n=this.cache.get(t);return n===void 0&&(t==99&&Se.isYellow(this.hue)?n=this.averageArgb(this.tone(98),this.tone(100)):n=Se.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,n)),n}getHct(t){return Se.fromInt(this.tone(t))}averageArgb(t,n){const r=t>>>16&255,a=t>>>8&255,s=t&255,l=n>>>16&255,f=n>>>8&255,h=n&255,d=Math.round((r+l)/2),p=Math.round((a+f)/2),y=Math.round((s+h)/2);return(255<<24|(d&255)<<16|(p&255)<<8|y&255)>>>0}}class QF{constructor(t,n){this.hue=t,this.requestedChroma=n}chromaCache=new Map;maxChromaValue=200;create(){let a=0,s=100;for(;a<s;){const l=Math.floor((a+s)/2),f=this.maxChroma(l)<this.maxChroma(l+1);if(this.maxChroma(l)>=this.requestedChroma-.01)if(Math.abs(a-50)<Math.abs(s-50))s=l;else{if(a===l)return Se.from(this.hue,this.requestedChroma,a);a=l}else f?a=l+1:s=l}return Se.from(this.hue,this.requestedChroma,a)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);const n=Se.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,n),n}}class uc{constructor(t){this.input=t}hctsByTempCache=[];hctsByHueCache=[];tempsByHctCache=new Map;inputRelativeTemperatureCache=-1;complementCache=null;get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;const t=this.hctsByHue.concat([this.input]),n=this.tempsByHct;return t.sort((r,a)=>n.get(r)-n.get(a)),this.hctsByTempCache=t,t}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(t=5,n=12){const r=Math.round(this.input.hue),a=this.hctsByHue[r];let s=this.relativeTemperature(a);const l=[a];let f=0;for(let S=0;S<360;S++){const w=w3(r+S),_=this.hctsByHue[w],A=this.relativeTemperature(_),E=Math.abs(A-s);s=A,f+=E}let h=1;const d=f/n;let p=0;for(s=this.relativeTemperature(a);l.length<n;){const S=w3(r+h),w=this.hctsByHue[S],_=this.relativeTemperature(w),A=Math.abs(_-s);p+=A;const E=l.length*d;let C=p>=E,R=1;for(;C&&l.length<n;){l.push(w);const z=(l.length+R)*d;C=p>=z,R++}if(s=_,h++,h>360){for(;l.length<n;)l.push(w);break}}const y=[this.input],b=Math.floor((t-1)/2);for(let S=1;S<b+1;S++){let w=0-S;for(;w<0;)w=l.length+w;w>=l.length&&(w=w%l.length),y.splice(0,0,l[w])}const v=t-b-1;for(let S=1;S<v+1;S++){let w=S;for(;w<0;)w=l.length+w;w>=l.length&&(w=w%l.length),y.push(l[w])}return y}get complement(){if(this.complementCache!=null)return this.complementCache;
13const t=this.coldest.hue,n=this.tempsByHct.get(this.coldest),r=this.warmest.hue,s=this.tempsByHct.get(this.warmest)-n,l=uc.isBetween(this.input.hue,t,r),f=l?r:t,h=l?t:r,d=1;let p=1e3,y=this.hctsByHue[Math.round(this.input.hue)];const b=1-this.inputRelativeTemperature;for(let v=0;v<=360;v+=1){const S=Qn(f+d*v);if(!uc.isBetween(S,f,h))continue;const w=this.hctsByHue[Math.round(S)],_=(this.tempsByHct.get(w)-n)/s,A=Math.abs(b-_);A<p&&(p=A,y=w)}return this.complementCache=y,this.complementCache}relativeTemperature(t){const n=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),r=this.tempsByHct.get(t)-this.tempsByHct.get(this.coldest);return n===0?.5:r/n}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;const t=this.hctsByHue.concat([this.input]),n=new Map;for(const r of t)n.set(r,uc.rawTemperature(r));return this.tempsByHctCache=n,n}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;const t=[];for(let n=0;n<=360;n+=1){const r=Se.from(n,this.input.chroma,this.input.tone);t.push(r)}return this.hctsByHueCache=t,this.hctsByHueCache}static isBetween(t,n,r){return n<r?n<=t&&t<=r:n<=t||t<=r}static rawTemperature(t){const n=UF(t.toInt()),r=Qn(Math.atan2(n[2],n[1])*180/Math.PI),a=Math.sqrt(n[1]*n[1]+n[2]*n[2]);return-.5+.02*Math.pow(a,1.07)*Math.cos(Qn(r-50)*Math.PI/180)}}class Ce{constructor(t,n,r,a){this.low=t,this.normal=n,this.medium=r,this.high=a}get(t){return t<=-1?this.low:t<0?Hl(this.low,this.normal,(t- -1)/1):t<.5?Hl(this.normal,this.medium,(t-0)/.5):t<1?Hl(this.medium,this.high,(t-.5)/.5):this.high}}class it{constructor(t,n,r,a,s,l){this.roleA=t,this.roleB=n,this.delta=r,this.polarity=a,this.stayTogether=s,this.constraint=l,this.constraint=l??"exact"}}var U=(e=>(e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD",e[e.CMF=9]="CMF",e))(U||{});function Js(e){return e.variant===U.FIDELITY||e.variant===U.CONTENT}function $t(e){return e.variant===U.MONOCHROME}function WF(e,t,n,r){let a=n,s=Se.from(e,t,n);if(s.chroma<t){let l=s.chroma;for(;s.chroma<t;){a+=r?-1:1;const f=Se.from(e,t,a);if(l>f.chroma||Math.abs(f.chroma-t)<.4)break;const h=Math.abs(f.chroma-t),d=Math.abs(s.chroma-t);h<d&&(s=f),l=Math.max(l,f.chroma)}}return a}class eI{primaryPaletteKeyColor(){return Z.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return Z.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return Z.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone})}
13neutralPaletteKeyColor(){return Z.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return Z.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return Z.fromPalette({name:"error_palette_key_color",palette:t=>t.errorPalette,tone:t=>t.errorPalette.keyColor.tone})}background(){return Z.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0})}onBackground(){return Z.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.background(),contrastCurve:t=>new Ce(3,3,4.5,7)})}surface(){return Z.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0})}surfaceDim(){return Z.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new Ce(87,87,80,75).get(t.contrastLevel),isBackground:!0})}
13surfaceBright(){return Z.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(24,24,29,34).get(t.contrastLevel):98,isBackground:!0})}surfaceContainerLowest(){return Z.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(4,4,2,0).get(t.contrastLevel):100,isBackground:!0})}surfaceContainerLow(){return Z.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(10,10,11,12).get(t.contrastLevel):new Ce(96,96,96,95).get(t.contrastLevel),isBackground:!0})}surfaceContainer(){return Z.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(12,12,16,20).get(t.contrastLevel):new Ce(94,94,92,90).get(t.contrastLevel),isBackground:!0})}surfaceContainerHigh(){return Z.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(17,17,21,25).get(t.contrastLevel):new Ce(92,92,88,85).get(t.contrastLevel),isBackground:!0})}surfaceContainerHighest(){return Z.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new Ce(22,22,26,30).get(t.contrastLevel):new Ce(90,90,84,80).get(t.contrastLevel),isBackground:!0})}onSurface(){return Z.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(4.5,7,11,21)})}surfaceVariant(){return Z.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0})}onSurfaceVariant(){return Z.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(3,4.5,7,11)})}inverseSurface(){return Z.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20,isBackground:!0})}inverseOnSurface(){return Z.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>this.inverseSurface(),contrastCurve:t=>new Ce(4.5,7,11,21)})}outline(){return Z.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1.5,3,4.5,7)})}outlineVariant(){return Z.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5)})}shadow(){return Z.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0})}scrim(){return Z.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0})}surfaceTint(){return Z.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0})}primary(){return Z.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>$t(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(3,4.5,7,7),toneDeltaPair:t=>new it(this.primaryContainer(),this.primary(),10,"nearer",!1)})}primaryDim(){}onPrimary(){return Z.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>$t(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.primary(),contrastCurve:t=>new Ce(4.5,7,11,21)})}primaryContainer(){return Z.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Js(t)?t.sourceColorHct.tone:$t(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.primaryContainer(),this.primary(),10,"nearer",!1)})}onPrimaryContainer(){return Z.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Js(t)?Z.foregroundTone(this.primaryContainer().tone(t),4.5):$t(t)?t.isDark?0:100:t.isDark?90:30,background:t=>this.primaryContainer(),contrastCurve:t=>new Ce(3,4.5,7,11)})}inversePrimary(){return Z.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>this.inverseSurface(),contrastCurve:t=>new Ce(3,4.5,7,7)})}secondary(){return Z.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>
13t.isDark?80:40,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(3,4.5,7,7),toneDeltaPair:t=>new it(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}secondaryDim(){}onSecondary(){return Z.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>$t(t)?t.isDark?10:100:t.isDark?20:100,background:t=>this.secondary(),contrastCurve:t=>new Ce(4.5,7,11,21)})}secondaryContainer(){return Z.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const n=t.isDark?30:90;return $t(t)?t.isDark?30:85:Js(t)?WF(t.secondaryPalette.hue,t.secondaryPalette.chroma,n,!t.isDark):n},isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}onSecondaryContainer(){return Z.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>$t(t)?t.isDark?90:10:Js(t)?Z.foregroundTone(this.secondaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.secondaryContainer(),contrastCurve:t=>new Ce(3,4.5,7,11)})}tertiary(){return Z.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(3,4.5,7,7),toneDeltaPair:t=>new it(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}tertiaryDim(){}onTertiary(){return Z.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.tertiary(),contrastCurve:t=>new Ce(4.5,7,11,21)})}tertiaryContainer(){return Z.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if($t(t))return t.isDark?60:49;if(!Js(t))return t.isDark?30:90;const n=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return uu.fixIfDisliked(n).tone},isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}onTertiaryContainer(){return Z.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?t.isDark?0:100:Js(t)?Z.foregroundTone(this.tertiaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.tertiaryContainer(),contrastCurve:t=>new Ce(3,4.5,7,11)})}error(){return Z.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(3,4.5,7,7),toneDeltaPair:t=>new it(this.errorContainer(),this.error(),10,"nearer",!1)})}errorDim(){}onError(){return Z.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>this.error(),contrastCurve:t=>new Ce(4.5,7,11,21)})}errorContainer(){return Z.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.errorContainer(),this.error(),10,"nearer",!1)})}onErrorContainer(){return Z.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>$t(t)?t.isDark?90:10:t.isDark?90:30,background:t=>this.errorContainer(),contrastCurve:t=>new Ce(3,4.5,7,11)})}primaryFixed(){return Z.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>$t(t)?40:90,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}primaryFixedDim(){return Z.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>$t(t)?30:80,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}onPrimaryFixed(){return Z.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>$t(t)?100:10,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new Ce(4.5,7,11,21)})}onPrimaryFixedVariant(){return Z.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>$t(t)?90:30,background:t=>
13this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new Ce(3,4.5,7,11)})}secondaryFixed(){return Z.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>$t(t)?80:90,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}secondaryFixedDim(){return Z.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>$t(t)?70:80,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}onSecondaryFixed(){return Z.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new Ce(4.5,7,11,21)})}onSecondaryFixedVariant(){return Z.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>$t(t)?25:30,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new Ce(3,4.5,7,11)})}tertiaryFixed(){return Z.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?40:90,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}tertiaryFixedDim(){return Z.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?30:80,isBackground:!0,background:t=>this.highestSurface(t),contrastCurve:t=>new Ce(1,1,3,4.5),toneDeltaPair:t=>new it(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}onTertiaryFixed(){return Z.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?100:10,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new Ce(4.5,7,11,21)})}onTertiaryFixedVariant(){return Z.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>$t(t)?90:30,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new Ce(3,4.5,7,11)})}
13highestSurface(t){return t.isDark?this.surfaceBright():this.surfaceDim()}}function We(e,t=0,n=100,r=1){let a=ck(e.hue,e.chroma*r,100,!0);return Zt(t,n,a)}function Ga(e,t=0,n=100){let r=ck(e.hue,e.chroma,0,!1);return Zt(t,n,r)}function ck(e,t,n,r){let a=n,s=Se.from(e,t,a);for(;s.chroma<t&&!(n<0||n>100);){n+=r?-1:1;const l=Se.from(e,t,n);s.chroma<l.chroma&&(s=l,a=n)}return a}function ze(e){return e===1.5?new Ce(1.5,1.5,3,5.5):e===3?new Ce(3,3,4.5,7):e===4.5?new Ce(4.5,4.5,7,11):e===6?new Ce(6,6,7,11):e===7?new Ce(7,7,11,21):e===9?new Ce(9,9,11,21):e===11?new Ce(11,11,21,21):e===21?new Ce(21,21,21,21):new Ce(e,e,7,21)}class tI extends eI{surface(){const t=Z.fromPalette({name:"surface",palette:n=>n.neutralPalette,tone:n=>(super.surface().tone(n),n.platform==="phone"?n.isDark?4:Se.isYellow(n.neutralPalette.hue)?99:n.variant===U.VIBRANT?97:98:0),isBackground:!0});return me(super.surface(),"2025",t)}surfaceDim(){const t=Z.fromPalette({name:"surface_dim",palette:n=>n.neutralPalette,tone:n=>n.isDark?4:Se.isYellow(n.neutralPalette.hue)?90:n.variant===U.VIBRANT?85:87,isBackground:!0,chromaMultiplier:n=>{if(!n.isDark){if(n.variant===U.NEUTRAL)return 2.5;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?2.7:1.75;if(n.variant===U.VIBRANT)return 1.36}return 1}});return me(super.surfaceDim(),"2025",t)}
13surfaceBright(){const t=Z.fromPalette({name:"surface_bright",palette:n=>n.neutralPalette,tone:n=>n.isDark?18:Se.isYellow(n.neutralPalette.hue)?99:n.variant===U.VIBRANT?97:98,isBackground:!0,chromaMultiplier:n=>{if(n.isDark){if(n.variant===U.NEUTRAL)return 2.5;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?2.7:1.75;if(n.variant===U.VIBRANT)return 1.36}return 1}});return me(super.surfaceBright(),"2025",t)}surfaceContainerLowest(){const t=Z.fromPalette({name:"surface_container_lowest",palette:n=>n.neutralPalette,tone:n=>n.isDark?0:100,isBackground:!0});return me(super.surfaceContainerLowest(),"2025",t)}surfaceContainerLow(){const t=Z.fromPalette({name:"surface_container_low",palette:n=>n.neutralPalette,tone:n=>n.platform==="phone"?n.isDark?6:Se.isYellow(n.neutralPalette.hue)?98:n.variant===U.VIBRANT?95:96:15,isBackground:!0,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 1.3;if(n.variant===U.TONAL_SPOT)return 1.25;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?1.3:1.15;if(n.variant===U.VIBRANT)return 1.08}return 1}});return me(super.surfaceContainerLow(),"2025",t)}surfaceContainer(){const t=Z.fromPalette({name:"surface_container",palette:n=>n.neutralPalette,tone:n=>n.platform==="phone"?n.isDark?9:Se.isYellow(n.neutralPalette.hue)?96:n.variant===U.VIBRANT?92:94:20,isBackground:!0,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 1.6;if(n.variant===U.TONAL_SPOT)return 1.4;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?1.6:1.3;if(n.variant===U.VIBRANT)return 1.15}return 1}});return me(super.surfaceContainer(),"2025",t)}surfaceContainerHigh(){const t=Z.fromPalette({name:"surface_container_high",palette:n=>n.neutralPalette,tone:n=>n.platform==="phone"?n.isDark?12:Se.isYellow(n.neutralPalette.hue)?94:n.variant===U.VIBRANT?90:92:25,isBackground:!0,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 1.9;if(n.variant===U.TONAL_SPOT)return 1.5;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?1.95:1.45;if(n.variant===U.VIBRANT)return 1.22}return 1}});return me(super.surfaceContainerHigh(),"2025",t)}surfaceContainerHighest(){const t=Z.fromPalette({name:"surface_container_highest",palette:n=>n.neutralPalette,tone:n=>n.isDark?15:Se.isYellow(n.neutralPalette.hue)?92:n.variant===U.VIBRANT?88:90,isBackground:!0,chromaMultiplier:n=>n.variant===U.NEUTRAL?2.2:n.variant===U.TONAL_SPOT?1.7:n.variant===U.EXPRESSIVE?Se.isYellow(n.neutralPalette.hue)?2.3:1.6:n.variant===U.VIBRANT?1.29:1});return me(super.surfaceContainerHighest(),"2025",t)}onSurface(){const t=Z.fromPalette({name:"on_surface",palette:n=>n.neutralPalette,tone:n=>n.variant===U.VIBRANT?We(n.neutralPalette,0,100,1.1):Z.getInitialToneFromBackground(r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh())(n),chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 2.2;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?n.isDark?3:2.3:1.6}return 1},background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.isDark&&n.platform==="phone"?ze(11):ze(9)});return me(super.onSurface(),"2025",t)}onSurfaceVariant(){const t=Z.fromPalette({name:"on_surface_variant",palette:n=>n.neutralPalette,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 2.2;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?n.isDark?3:2.3:1.6}return 1},background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?n.isDark?ze(6):ze(4.5):ze(7)});return me(super.onSurfaceVariant(),"2025",t)}outline(){const t=Z.fromPalette({name:"outline",palette:n=>n.neutralPalette,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 2.2;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?n.isDark?3:2.3:1.6}return 1},background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(3):ze(4.5)});return me(super.outline(),"2025",t)}outlineVariant(){const t=Z.fromPalette({name:"outline_variant",palette:n=>n.neutralPalette,chromaMultiplier:n=>{if(n.platform==="phone"){if(n.variant===U.NEUTRAL)return 2.2;if(n.variant===U.TONAL_SPOT)return 1.7;if(n.variant===U.EXPRESSIVE)return Se.isYellow(n.neutralPalette.hue)?n.isDark?3:2.3:1.6}return 1},background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(1.5):ze(3)}
13);return me(super.outlineVariant(),"2025",t)}inverseSurface(){const t=Z.fromPalette({name:"inverse_surface",palette:n=>n.neutralPalette,tone:n=>n.isDark?98:4,isBackground:!0});return me(super.inverseSurface(),"2025",t)}inverseOnSurface(){const t=Z.fromPalette({name:"inverse_on_surface",palette:n=>n.neutralPalette,background:n=>this.inverseSurface(),contrastCurve:n=>ze(7)});return me(super.inverseOnSurface(),"2025",t)}primary(){const t=Z.fromPalette({name:"primary",palette:n=>n.primaryPalette,tone:n=>n.variant===U.NEUTRAL?n.platform==="phone"?n.isDark?80:40:90:n.variant===U.TONAL_SPOT?n.platform==="phone"?n.isDark?80:We(n.primaryPalette):We(n.primaryPalette,0,90):n.variant===U.EXPRESSIVE?n.platform==="phone"?We(n.primaryPalette,0,Se.isYellow(n.primaryPalette.hue)?25:Se.isCyan(n.primaryPalette.hue)?88:98):We(n.primaryPalette):n.platform==="phone"?We(n.primaryPalette,0,Se.isCyan(n.primaryPalette.hue)?88:98):We(n.primaryPalette),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(4.5):ze(7),toneDeltaPair:n=>n.platform==="phone"?new it(this.primaryContainer(),this.primary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.primary(),"2025",t)}primaryDim(){return Z.fromPalette({name:"primary_dim",palette:t=>t.primaryPalette,tone:t=>t.variant===U.NEUTRAL?85:t.variant===U.TONAL_SPOT?We(t.primaryPalette,0,90):We(t.primaryPalette),isBackground:!0,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ze(4.5),toneDeltaPair:t=>new it(this.primaryDim(),this.primary(),5,"darker",!0,"farther")})}onPrimary(){const t=Z.fromPalette({name:"on_primary",palette:n=>n.primaryPalette,background:n=>n.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onPrimary(),"2025",t)}primaryContainer(){const t=Z.fromPalette({name:"primary_container",palette:n=>n.primaryPalette,tone:n=>n.platform==="watch"?30:n.variant===U.NEUTRAL?n.isDark?30:90:n.variant===U.TONAL_SPOT?n.isDark?Ga(n.primaryPalette,35,93):We(n.primaryPalette,0,90):n.variant===U.EXPRESSIVE?n.isDark?We(n.primaryPalette,30,93):We(n.primaryPalette,78,Se.isCyan(n.primaryPalette.hue)?88:90):n.isDark?Ga(n.primaryPalette,66,93):We(n.primaryPalette,66,Se.isCyan(n.primaryPalette.hue)?88:93),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,toneDeltaPair:n=>n.platform==="phone"?void 0:new it(this.primaryContainer(),this.primaryDim(),10,"darker",!0,"farther"),contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.primaryContainer(),"2025",t)}onPrimaryContainer(){const t=Z.fromPalette({name:"on_primary_container",palette:n=>n.primaryPalette,background:n=>this.primaryContainer(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onPrimaryContainer(),"2025",t)}primaryFixed(){const t=Z.fromPalette({name:"primary_fixed",palette:n=>n.primaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.primaryContainer().getTone(r)},isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.primaryFixed(),"2025",t)}primaryFixedDim(){const t=Z.fromPalette({name:"primary_fixed_dim",palette:n=>n.primaryPalette,tone:n=>this.primaryFixed().getTone(n),isBackground:!0,toneDeltaPair:n=>new it(this.primaryFixedDim(),this.primaryFixed(),5,"darker",!0,"exact")});return me(super.primaryFixedDim(),"2025",t)}onPrimaryFixed(){const t=Z.fromPalette({name:"on_primary_fixed",palette:n=>n.primaryPalette,background:n=>this.primaryFixedDim(),contrastCurve:n=>ze(7)});return me(super.onPrimaryFixed(),"2025",t)}onPrimaryFixedVariant(){const t=Z.fromPalette({name:"on_primary_fixed_variant",palette:n=>n.primaryPalette,background:n=>this.primaryFixedDim(),contrastCurve:n=>ze(4.5)});return me(super.onPrimaryFixedVariant(),"2025",t)}inversePrimary(){const t=Z.fromPalette({name:"inverse_primary",palette:n=>n.primaryPalette,tone:n=>We(n.primaryPalette),background:n=>this.inverseSurface(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.inversePrimary(),"2025",t)}secondary(){const t=Z.fromPalette({name:"secondary",palette:n=>n.secondaryPalette,tone:n=>n.platform==="watch"?n.variant===U.NEUTRAL?90:We(n.secondaryPalette,0,90):n.variant===U.NEUTRAL?n.isDark?Ga(n.secondaryPalette,0,98):We(n.secondaryPalette):n.variant===U.VIBRANT?We(n.secondaryPalette,0,n.isDark?90:98):n.isDark?80:We(n.secondaryPalette),isBackgroun
13d:!0,background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(4.5):ze(7),toneDeltaPair:n=>n.platform==="phone"?new it(this.secondaryContainer(),this.secondary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.secondary(),"2025",t)}secondaryDim(){return Z.fromPalette({name:"secondary_dim",palette:t=>t.secondaryPalette,tone:t=>t.variant===U.NEUTRAL?85:We(t.secondaryPalette,0,90),isBackground:!0,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ze(4.5),toneDeltaPair:t=>new it(this.secondaryDim(),this.secondary(),5,"darker",!0,"farther")})}onSecondary(){const t=Z.fromPalette({name:"on_secondary",palette:n=>n.secondaryPalette,background:n=>n.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onSecondary(),"2025",t)}secondaryContainer(){const t=Z.fromPalette({name:"secondary_container",palette:n=>n.secondaryPalette,tone:n=>n.platform==="watch"?30:n.variant===U.VIBRANT?n.isDark?Ga(n.secondaryPalette,30,40):We(n.secondaryPalette,84,90):n.variant===U.EXPRESSIVE?n.isDark?15:We(n.secondaryPalette,90,95):n.isDark?25:90,isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,toneDeltaPair:n=>n.platform==="watch"?new it(this.secondaryContainer(),this.secondaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.secondaryContainer(),"2025",t)}onSecondaryContainer(){const t=Z.fromPalette({name:"on_secondary_container",palette:n=>n.secondaryPalette,background:n=>this.secondaryContainer(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onSecondaryContainer(),"2025",t)}secondaryFixed(){const t=Z.fromPalette({name:"secondary_fixed",palette:n=>n.secondaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.secondaryContainer().getTone(r)},isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.secondaryFixed(),"2025",t)}secondaryFixedDim(){const t=Z.fromPalette({name:"secondary_fixed_dim",palette:n=>n.secondaryPalette,tone:n=>this.secondaryFixed().getTone(n),isBackground:!0,toneDeltaPair:n=>new it(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",!0,"exact")});return me(super.secondaryFixedDim(),"2025",t)}onSecondaryFixed(){const t=Z.fromPalette({name:"on_secondary_fixed",palette:n=>n.secondaryPalette,background:n=>this.secondaryFixedDim(),contrastCurve:n=>ze(7)});return me(super.onSecondaryFixed(),"2025",t)}onSecondaryFixedVariant(){const t=Z.fromPalette({name:"on_secondary_fixed_variant",palette:n=>n.secondaryPalette,background:n=>this.secondaryFixedDim(),contrastCurve:n=>ze(4.5)});return me(super.onSecondaryFixedVariant(),"2025",t)}tertiary(){const t=Z.fromPalette({name:"tertiary",palette:n=>n.tertiaryPalette,tone:n=>n.platform==="watch"?n.variant===U.TONAL_SPOT?We(n.tertiaryPalette,0,90):We(n.tertiaryPalette):n.variant===U.EXPRESSIVE||n.variant===U.VIBRANT?We(n.tertiaryPalette,0,Se.isCyan(n.tertiaryPalette.hue)?88:n.isDark?98:100):n.isDark?We(n.tertiaryPalette,0,98):We(n.tertiaryPalette),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(4.5):ze(7),toneDeltaPair:n=>n.platform==="phone"?new it(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.tertiary(),"2025",t)}tertiaryDim(){return Z.fromPalette({name:"tertiary_dim",palette:t=>t.tertiaryPalette,tone:t=>t.variant===U.TONAL_SPOT?We(t.tertiaryPalette,0,90):We(t.tertiaryPalette),isBackground:!0,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ze(4.5),toneDeltaPair:t=>new it(this.tertiaryDim(),this.tertiary(),5,"darker",!0,"farther")})}onTertiary(){const t=Z.fromPalette({name:"on_tertiary",palette:n=>n.tertiaryPalette,background:n=>n.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});
13return me(super.onTertiary(),"2025",t)}tertiaryContainer(){const t=Z.fromPalette({name:"tertiary_container",palette:n=>n.tertiaryPalette,tone:n=>n.platform==="watch"?n.variant===U.TONAL_SPOT?We(n.tertiaryPalette,0,90):We(n.tertiaryPalette):n.variant===U.NEUTRAL?n.isDark?We(n.tertiaryPalette,0,93):We(n.tertiaryPalette,0,96):n.variant===U.TONAL_SPOT?We(n.tertiaryPalette,0,n.isDark?93:100):n.variant===U.EXPRESSIVE?We(n.tertiaryPalette,75,Se.isCyan(n.tertiaryPalette.hue)?88:n.isDark?93:100):n.isDark?We(n.tertiaryPalette,0,93):We(n.tertiaryPalette,72,100),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,toneDeltaPair:n=>n.platform==="watch"?new it(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.tertiaryContainer(),"2025",t)}onTertiaryContainer(){const t=Z.fromPalette({name:"on_tertiary_container",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryContainer(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onTertiaryContainer(),"2025",t)}tertiaryFixed(){const t=Z.fromPalette({name:"tertiary_fixed",palette:n=>n.tertiaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.tertiaryContainer().getTone(r)},isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.tertiaryFixed(),"2025",t)}tertiaryFixedDim(){const t=Z.fromPalette({name:"tertiary_fixed_dim",palette:n=>n.tertiaryPalette,tone:n=>this.tertiaryFixed().getTone(n),isBackground:!0,toneDeltaPair:n=>new it(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",!0,"exact")});return me(super.tertiaryFixedDim(),"2025",t)}onTertiaryFixed(){const t=Z.fromPalette({name:"on_tertiary_fixed",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryFixedDim(),contrastCurve:n=>ze(7)});return me(super.onTertiaryFixed(),"2025",t)}onTertiaryFixedVariant(){const t=Z.fromPalette({name:"on_tertiary_fixed_variant",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryFixedDim(),contrastCurve:n=>ze(4.5)});return me(super.onTertiaryFixedVariant(),"2025",t)}error(){const t=Z.fromPalette({name:"error",palette:n=>n.errorPalette,tone:n=>n.platform==="phone"?n.isDark?Ga(n.errorPalette,0,98):We(n.errorPalette):Ga(n.errorPalette),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):this.surfaceContainerHigh(),contrastCurve:n=>n.platform==="phone"?ze(4.5):ze(7),toneDeltaPair:n=>n.platform==="phone"?new it(this.errorContainer(),this.error(),5,"relative_lighter",!0,"farther"):void 0});return me(super.error(),"2025",t)}errorDim(){return Z.fromPalette({name:"error_dim",palette:t=>t.errorPalette,tone:t=>Ga(t.errorPalette),isBackground:!0,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ze(4.5),toneDeltaPair:t=>new it(this.errorDim(),this.error(),5,"darker",!0,"farther")})}onError(){const t=Z.fromPalette({name:"on_error",palette:n=>n.errorPalette,background:n=>n.platform==="phone"?this.error():this.errorDim(),contrastCurve:n=>n.platform==="phone"?ze(6):ze(7)});return me(super.onError(),"2025",t)}errorContainer(){const t=Z.fromPalette({name:"error_container",palette:n=>n.errorPalette,tone:n=>n.platform==="watch"?30:n.isDark?Ga(n.errorPalette,30,93):We(n.errorPalette,0,90),isBackground:!0,background:n=>n.platform==="phone"?this.highestSurface(n):void 0,toneDeltaPair:n=>n.platform==="watch"?new it(this.errorContainer(),this.errorDim(),10,"darker",!0,"farther"):void 0,contrastCurve:n=>n.platform==="phone"&&n.contrastLevel>0?ze(1.5):void 0});return me(super.errorContainer(),"2025",t)}onErrorContainer(){const t=Z.fromPalette({name:"on_error_container",palette:n=>n.errorPalette,background:n=>this.errorContainer(),contrastCurve:n=>n.platform==="phone"?ze(4.5):ze(7)});return me(super.onErrorContainer(),"2025",t)}surfaceVariant(){const t=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return me(super.surfaceVariant(),"2025",t)}surfaceTint(){const t=Object.assign(this.primary().clone(),{name:"surface_tint"});return me(super.surfaceTint(),"2025",t)}background(){const t=Object.assign(this.surface().clone(),{name:"background"});return me(super.background(),"2025",t)}
13onBackground(){const t=Object.assign(this.onSurface().clone(),{name:"on_background",tone:n=>n.platform==="watch"?100:this.onSurface().getTone(n)});return me(super.onBackground(),"2025",t)}}function ld(e,t=0,n=100,r=1){let a=lk(e.hue,e.chroma*r,100,!0);return Zt(t,n,a)}function Qp(e,t=0,n=100){let r=lk(e.hue,e.chroma,0,!1);return Zt(t,n,r)}function lk(e,t,n,r){let a=n,s=Se.from(e,t,a);for(;s.chroma<t&&!(n<0||n>100);){n+=r?-1:1;const l=Se.from(e,t,n);s.chroma<l.chroma&&(s=l,a=n)}return a}function lt(e){return e===1.5?new Ce(1.5,1.5,3,5.5):e===3?new Ce(3,3,4.5,7):e===4.5?new Ce(4.5,4.5,7,11):e===6?new Ce(6,6,7,11):e===7?new Ce(7,7,11,21):e===9?new Ce(9,9,11,21):e===11?new Ce(11,11,21,21):e===21?new Ce(21,21,21,21):new Ce(e,e,7,21)}class nI extends tI{surface(){const t=Z.fromPalette({name:"surface",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?4:98:0,isBackground:!0});return me(super.surface(),"2026",t)}surfaceDim(){const t=Z.fromPalette({name:"surface_dim",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?4:87:0,chromaMultiplier:n=>n.variant===U.CMF?n.isDark?1:1.7:0,isBackground:!0});return me(super.surfaceDim(),"2026",t)}
13surfaceBright(){const t=Z.fromPalette({name:"surface_bright",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?18:98:0,chromaMultiplier:n=>n.variant===U.CMF?n.isDark?1.7:1:0,isBackground:!0});return me(super.surfaceBright(),"2026",t)}surfaceContainerLowest(){const t=Z.fromPalette({name:"surface_container_lowest",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?0:100:0,isBackground:!0});return me(super.surfaceContainerLowest(),"2026",t)}surfaceContainerLow(){const t=Z.fromPalette({name:"surface_container_low",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?6:96:0,chromaMultiplier:n=>n.variant===U.CMF?1.25:0,isBackground:!0});return me(super.surfaceContainerLow(),"2026",t)}surfaceContainer(){const t=Z.fromPalette({name:"surface_container",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?9:94:0,chromaMultiplier:n=>n.variant===U.CMF?1.4:0,isBackground:!0});return me(super.surfaceContainer(),"2026",t)}surfaceContainerHigh(){const t=Z.fromPalette({name:"surface_container_high",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?12:92:0,chromaMultiplier:n=>n.variant===U.CMF?1.5:0,isBackground:!0});return me(super.surfaceContainerHigh(),"2026",t)}surfaceContainerHighest(){const t=Z.fromPalette({name:"surface_container_highest",palette:n=>n.neutralPalette,tone:n=>n.variant===U.CMF?n.isDark?15:90:0,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,isBackground:!0});return me(super.surfaceContainerHighest(),"2026",t)}onSurface(){const t=Z.fromPalette({name:"on_surface",palette:n=>n.neutralPalette,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,background:n=>this.highestSurface(n),contrastCurve:n=>n.isDark?lt(11):lt(9)});return me(super.onSurface(),"2026",t)}onSurfaceVariant(){const t=Z.fromPalette({name:"on_surface_variant",palette:n=>n.neutralPalette,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,background:n=>this.highestSurface(n),contrastCurve:n=>n.isDark?lt(6):lt(4.5)});return me(super.onSurfaceVariant(),"2026",t)}outline(){const t=Z.fromPalette({name:"outline",palette:n=>n.neutralPalette,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(3)});return me(super.outline(),"2026",t)}outlineVariant(){const t=Z.fromPalette({name:"outline_variant",palette:n=>n.neutralPalette,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(1.5)});return me(super.outlineVariant(),"2026",t)}inverseSurface(){const t=Z.fromPalette({name:"inverse_surface",palette:n=>n.neutralPalette,tone:n=>n.isDark?98:4,chromaMultiplier:n=>n.variant===U.CMF?1.7:0,isBackground:!0});return me(super.inverseSurface(),"2026",t)}inverseOnSurface(){const t=Z.fromPalette({name:"inverse_on_surface",palette:n=>n.neutralPalette,background:n=>this.inverseSurface(),contrastCurve:n=>lt(7)});return me(super.inverseOnSurface(),"2026",t)}primary(){const t=Z.fromPalette({name:"primary",palette:n=>n.primaryPalette,tone:n=>n.sourceColorHct.chroma<=12?n.isDark?80:40:n.sourceColorHct.tone,isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(4.5),toneDeltaPair:n=>n.platform==="phone"?new it(this.primaryContainer(),this.primary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.primary(),"2026",t)}onPrimary(){const t=Z.fromPalette({name:"on_primary",palette:n=>n.primaryPalette,background:n=>this.primary(),contrastCurve:n=>lt(6)});return me(super.onPrimary(),"2026",t)}primaryContainer(){const t=Z.fromPalette({name:"primary_container",palette:n=>n.primaryPalette,tone:n=>!n.isDark&&n.sourceColorHct.chroma<=12?90:n.sourceColorHct.tone>55?Zt(61,90,n.sourceColorHct.tone):Zt(30,49,n.sourceColorHct.tone),isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.primaryContainer(),"2026",t)}onPrimaryContainer(){const t=Z.fromPalette({name:"on_primary_container",palette:n=>n.primaryPalette,background:n=>this.primaryContainer(),contrastCurve:n=>lt(6)});return me(super.onPrimaryContainer(),"2026",t)}primaryFixed(){const t=Z.fromPalette({name:"primary_fixed",palette:n=>n.primaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.primaryContainer().getTone(r)}
13,isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.primaryFixed(),"2026",t)}primaryFixedDim(){const t=Z.fromPalette({name:"primary_fixed_dim",palette:n=>n.primaryPalette,tone:n=>this.primaryFixed().getTone(n),isBackground:!0,background:n=>this.highestSurface(n),toneDeltaPair:n=>new it(this.primaryFixedDim(),this.primaryFixed(),5,"darker",!0,"exact"),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.primaryFixedDim(),"2026",t)}onPrimaryFixed(){const t=Z.fromPalette({name:"on_primary_fixed",palette:n=>n.primaryPalette,background:n=>this.primaryFixed().getTone(n)>57?this.primaryFixedDim():this.primaryFixed(),contrastCurve:n=>lt(7)});return me(super.onPrimaryFixed(),"2026",t)}onPrimaryFixedVariant(){const t=Z.fromPalette({name:"on_primary_fixed_variant",palette:n=>n.primaryPalette,background:n=>this.primaryFixed().getTone(n)>57?this.primaryFixedDim():this.primaryFixed(),contrastCurve:n=>lt(4.5)});return me(super.onPrimaryFixedVariant(),"2026",t)}inversePrimary(){return super.inversePrimary()}secondary(){const t=Z.fromPalette({name:"secondary",palette:n=>n.secondaryPalette,tone:n=>n.isDark?Qp(n.secondaryPalette):ld(n.secondaryPalette),isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(4.5),toneDeltaPair:n=>n.platform==="phone"?new it(this.secondaryContainer(),this.secondary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.secondary(),"2026",t)}onSecondary(){const t=Z.fromPalette({name:"on_secondary",palette:n=>n.secondaryPalette,background:n=>this.secondary(),contrastCurve:n=>lt(6)});return me(super.onSecondary(),"2026",t)}secondaryContainer(){const t=Z.fromPalette({name:"secondary_container",palette:n=>n.secondaryPalette,tone:n=>n.isDark?Qp(n.secondaryPalette,20,49):ld(n.secondaryPalette,61,90),isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.secondaryContainer(),"2026",t)}onSecondaryContainer(){const t=Z.fromPalette({name:"on_secondary_container",palette:n=>n.secondaryPalette,background:n=>this.secondaryContainer(),contrastCurve:n=>lt(6)});return me(super.onSecondaryContainer(),"2026",t)}secondaryFixed(){const t=Z.fromPalette({name:"secondary_fixed",palette:n=>n.secondaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.secondaryContainer().getTone(r)},isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.secondaryFixed(),"2026",t)}secondaryFixedDim(){const t=Z.fromPalette({name:"secondary_fixed_dim",palette:n=>n.secondaryPalette,tone:n=>this.secondaryFixed().getTone(n),isBackground:!0,background:n=>this.highestSurface(n),toneDeltaPair:n=>new it(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",!0,"exact"),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.secondaryFixedDim(),"2026",t)}onSecondaryFixed(){const t=Z.fromPalette({name:"on_secondary_fixed",palette:n=>n.secondaryPalette,background:n=>this.secondaryFixed().getTone(n)>57?this.secondaryFixedDim():this.secondaryFixed(),contrastCurve:n=>lt(7)});return me(super.onSecondaryFixed(),"2026",t)}onSecondaryFixedVariant(){const t=Z.fromPalette({name:"on_secondary_fixed_variant",palette:n=>n.secondaryPalette,background:n=>this.secondaryFixed().getTone(n)>57?this.secondaryFixedDim():this.secondaryFixed(),contrastCurve:n=>lt(4.5)});return me(super.onSecondaryFixedVariant(),"2026",t)}tertiary(){const t=Z.fromPalette({name:"tertiary",palette:n=>n.tertiaryPalette,tone:n=>n.sourceColorHcts[1]?.tone??n.sourceColorHct.tone,isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(4.5),toneDeltaPair:n=>n.platform==="phone"?new it(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",!0,"farther"):void 0});return me(super.tertiary(),"2026",t)}onTertiary(){const t=Z.fromPalette({name:"on_tertiary",palette:n=>n.tertiaryPalette,background:n=>this.tertiary(),contrastCurve:n=>lt(6)});return me(super.onTertiary(),"2026",t)}tertiaryContainer(){const t=Z.fromPalette({name:"tertiary_container",palette:n=>n.tertiaryPalette,tone:n=>{const r=n.sourceColorHcts[1]??n.sourceColorHct;return r.tone>55?Zt(61,90,r.tone):Zt(20,49,r.tone)}
13,isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.tertiaryContainer(),"2026",t)}onTertiaryContainer(){const t=Z.fromPalette({name:"on_tertiary_container",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryContainer(),contrastCurve:n=>lt(6)});return me(super.onTertiaryContainer(),"2026",t)}tertiaryFixed(){const t=Z.fromPalette({name:"tertiary_fixed",palette:n=>n.tertiaryPalette,tone:n=>{let r=Object.assign({},n,{isDark:!1,contrastLevel:0});return this.tertiaryContainer().getTone(r)},isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.tertiaryFixed(),"2026",t)}tertiaryFixedDim(){const t=Z.fromPalette({name:"tertiary_fixed_dim",palette:n=>n.tertiaryPalette,tone:n=>this.tertiaryFixed().getTone(n),isBackground:!0,background:n=>this.highestSurface(n),toneDeltaPair:n=>new it(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",!0,"exact"),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.tertiaryFixedDim(),"2026",t)}onTertiaryFixed(){const t=Z.fromPalette({name:"on_tertiary_fixed",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryFixed().getTone(n)>57?this.tertiaryFixedDim():this.tertiaryFixed(),contrastCurve:n=>lt(7)});return me(super.onTertiaryFixed(),"2026",t)}onTertiaryFixedVariant(){const t=Z.fromPalette({name:"on_tertiary_fixed_variant",palette:n=>n.tertiaryPalette,background:n=>this.tertiaryFixed().getTone(n)>57?this.tertiaryFixedDim():this.tertiaryFixed(),contrastCurve:n=>lt(4.5)});return me(super.onTertiaryFixedVariant(),"2026",t)}error(){const t=Z.fromPalette({name:"error",palette:n=>n.errorPalette,tone:n=>ld(n.errorPalette),isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>lt(4.5),toneDeltaPair:n=>n.platform==="phone"?new it(this.errorContainer(),this.error(),5,"relative_lighter",!0,"farther"):void 0});return me(super.error(),"2026",t)}onError(){const t=Z.fromPalette({name:"on_error",palette:n=>n.errorPalette,background:n=>this.error(),contrastCurve:n=>lt(6)});return me(super.onError(),"2026",t)}errorContainer(){const t=Z.fromPalette({name:"error_container",palette:n=>n.errorPalette,tone:n=>n.isDark?Qp(n.errorPalette):ld(n.errorPalette),isBackground:!0,background:n=>this.highestSurface(n),contrastCurve:n=>n.contrastLevel>0?lt(1.5):void 0});return me(super.errorContainer(),"2026",t)}onErrorContainer(){const t=Z.fromPalette({name:"on_error_container",palette:n=>n.errorPalette,background:n=>this.errorContainer(),contrastCurve:n=>lt(6)});return me(super.onErrorContainer(),"2026",t)}primaryDim(){const t=Object.assign(this.primary().clone(),{name:"primary_dim"});return me(super.primaryDim(),"2026",t)}secondaryDim(){const t=Object.assign(this.secondary().clone(),{name:"secondary_dim"});return me(super.secondaryDim(),"2026",t)}tertiaryDim(){const t=Object.assign(this.tertiary().clone(),{name:"tertiary_dim"});return me(super.tertiaryDim(),"2026",t)}errorDim(){const t=Object.assign(this.error().clone(),{name:"error_dim"});return me(super.errorDim(),"2026",t)}}class oe{static contentAccentToneDelta=15;static colorSpec=new nI;highestSurface(t){return oe.colorSpec.highestSurface(t)}primaryPaletteKeyColor(){return oe.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return oe.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return oe.colorSpec.tertiaryPaletteKeyColor()}
13neutralPaletteKeyColor(){return oe.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return oe.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return oe.colorSpec.errorPaletteKeyColor()}background(){return oe.colorSpec.background()}onBackground(){return oe.colorSpec.onBackground()}surface(){return oe.colorSpec.surface()}surfaceDim(){return oe.colorSpec.surfaceDim()}surfaceBright(){return oe.colorSpec.surfaceBright()}surfaceContainerLowest(){return oe.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return oe.colorSpec.surfaceContainerLow()}surfaceContainer(){return oe.colorSpec.surfaceContainer()}surfaceContainerHigh(){return oe.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return oe.colorSpec.surfaceContainerHighest()}onSurface(){return oe.colorSpec.onSurface()}surfaceVariant(){return oe.colorSpec.surfaceVariant()}onSurfaceVariant(){return oe.colorSpec.onSurfaceVariant()}outline(){return oe.colorSpec.outline()}outlineVariant(){return oe.colorSpec.outlineVariant()}inverseSurface(){return oe.colorSpec.inverseSurface()}inverseOnSurface(){return oe.colorSpec.inverseOnSurface()}shadow(){return oe.colorSpec.shadow()}scrim(){return oe.colorSpec.scrim()}surfaceTint(){return oe.colorSpec.surfaceTint()}primary(){return oe.colorSpec.primary()}primaryDim(){return oe.colorSpec.primaryDim()}onPrimary(){return oe.colorSpec.onPrimary()}primaryContainer(){return oe.colorSpec.primaryContainer()}onPrimaryContainer(){return oe.colorSpec.onPrimaryContainer()}inversePrimary(){return oe.colorSpec.inversePrimary()}primaryFixed(){return oe.colorSpec.primaryFixed()}primaryFixedDim(){return oe.colorSpec.primaryFixedDim()}onPrimaryFixed(){return oe.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return oe.colorSpec.onPrimaryFixedVariant()}secondary(){return oe.colorSpec.secondary()}secondaryDim(){return oe.colorSpec.secondaryDim()}onSecondary(){return oe.colorSpec.onSecondary()}secondaryContainer(){return oe.colorSpec.secondaryContainer()}onSecondaryContainer(){return oe.colorSpec.onSecondaryContainer()}secondaryFixed(){return oe.colorSpec.secondaryFixed()}secondaryFixedDim(){return oe.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return oe.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return oe.colorSpec.onSecondaryFixedVariant()}tertiary(){return oe.colorSpec.tertiary()}tertiaryDim(){return oe.colorSpec.tertiaryDim()}onTertiary(){return oe.colorSpec.onTertiary()}tertiaryContainer(){return oe.colorSpec.tertiaryContainer()}onTertiaryContainer(){return oe.colorSpec.onTertiaryContainer()}tertiaryFixed(){return oe.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return oe.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return oe.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return oe.colorSpec.onTertiaryFixedVariant()}error(){return oe.colorSpec.error()}errorDim(){return oe.colorSpec.errorDim()}onError(){return oe.colorSpec.onError()}errorContainer(){return oe.colorSpec.errorContainer()}onErrorContainer(){return oe.colorSpec.onErrorContainer()}allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(
13),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(t=>t!==void 0);static highestSurface(t){return oe.colorSpec.highestSurface(t)}static primaryPaletteKeyColor=oe.colorSpec.primaryPaletteKeyColor();static secondaryPaletteKeyColor=oe.colorSpec.secondaryPaletteKeyColor();static tertiaryPaletteKeyColor=oe.colorSpec.tertiaryPaletteKeyColor();
13static neutralPaletteKeyColor=oe.colorSpec.neutralPaletteKeyColor();static neutralVariantPaletteKeyColor=oe.colorSpec.neutralVariantPaletteKeyColor();static background=oe.colorSpec.background();static onBackground=oe.colorSpec.onBackground();static surface=oe.colorSpec.surface();static surfaceDim=oe.colorSpec.surfaceDim();static surfaceBright=oe.colorSpec.surfaceBright();static surfaceContainerLowest=oe.colorSpec.surfaceContainerLowest();static surfaceContainerLow=oe.colorSpec.surfaceContainerLow();static surfaceContainer=oe.colorSpec.surfaceContainer();static surfaceContainerHigh=oe.colorSpec.surfaceContainerHigh();static surfaceContainerHighest=oe.colorSpec.surfaceContainerHighest();static onSurface=oe.colorSpec.onSurface();static surfaceVariant=oe.colorSpec.surfaceVariant();static onSurfaceVariant=oe.colorSpec.onSurfaceVariant();static inverseSurface=oe.colorSpec.inverseSurface();static inverseOnSurface=oe.colorSpec.inverseOnSurface();static outline=oe.colorSpec.outline();static outlineVariant=oe.colorSpec.outlineVariant();static shadow=oe.colorSpec.shadow();static scrim=oe.colorSpec.scrim();static surfaceTint=oe.colorSpec.surfaceTint();static primary=oe.colorSpec.primary();static onPrimary=oe.colorSpec.onPrimary();static primaryContainer=oe.colorSpec.primaryContainer();static onPrimaryContainer=oe.colorSpec.onPrimaryContainer();static inversePrimary=oe.colorSpec.inversePrimary();static secondary=oe.colorSpec.secondary();static onSecondary=oe.colorSpec.onSecondary();static secondaryContainer=oe.colorSpec.secondaryContainer();static onSecondaryContainer=oe.colorSpec.onSecondaryContainer();static tertiary=oe.colorSpec.tertiary();static onTertiary=oe.colorSpec.onTertiary();static tertiaryContainer=oe.colorSpec.tertiaryContainer();static onTertiaryContainer=oe.colorSpec.onTertiaryContainer();static error=oe.colorSpec.error();static onError=oe.colorSpec.onError();static errorContainer=oe.colorSpec.errorContainer();static onErrorContainer=oe.colorSpec.onErrorContainer();static primaryFixed=oe.colorSpec.primaryFixed();static primaryFixedDim=oe.colorSpec.primaryFixedDim();static onPrimaryFixed=oe.colorSpec.onPrimaryFixed();static onPrimaryFixedVariant=oe.colorSpec.onPrimaryFixedVariant();static secondaryFixed=oe.colorSpec.secondaryFixed();static secondaryFixedDim=oe.colorSpec.secondaryFixedDim();static onSecondaryFixed=oe.colorSpec.onSecondaryFixed();static onSecondaryFixedVariant=oe.colorSpec.onSecondaryFixedVariant();static tertiaryFixed=oe.colorSpec.tertiaryFixed();static tertiaryFixedDim=oe.colorSpec.tertiaryFixedDim();static onTertiaryFixed=oe.colorSpec.onTertiaryFixed();static onTertiaryFixedVariant=oe.colorSpec.onTertiaryFixedVariant()}class He{static DEFAULT_SPEC_VERSION="2021";static DEFAULT_PLATFORM="phone";sourceColorHct;sourceColorHcts;sourceColorArgb;variant;contrastLevel;isDark;platform;specVersion;primaryPalette;secondaryPalette;tertiaryPalette;neutralPalette;neutralVariantPalette;errorPalette;colors;static maybeFallbackSpecVersion(t,n){return n===U.CMF?t:n===U.EXPRESSIVE||n===U.VIBRANT||n===U.TONAL_SPOT||n===U.NEUTRAL?t==="2026"?"2025":t:"2021"}constructor(t){if(t.sourceColorHcts){if(t.sourceColorHcts.length===0)throw new Error("sourceColorHcts cannot be empty");this.sourceColorHct=t.sourceColorHcts[0],this.sourceColorHcts=t.sourceColorHcts}else if(t.sourceColorHct)this.sourceColorHct=t.sourceColorHct,this.sourceColorHcts=[t.sourceColorHct];else throw new Error("sourceColorHct or sourceColorHcts required");this.sourceColorArgb=this.sourceColorHct.toInt(),this.variant=t.variant,this.contrastLevel=t.contrastLevel,this.isDark=t.isDark,this.platform=t.platform??"phone",this.specVersion=He.maybeFallbackSpecVersion(t.specVersion??"2021",this.variant),this.primaryPalette=t.primaryPalette??Qs(this.specVersion).getPrimaryPalette(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=t.secondaryPalette??Qs(this.specVersion).getSecondaryPalette(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=t.tertiaryPalette??Qs(this.specVersion).getTertiaryPalette(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=t.neutralPalette??Qs(this.specVersion).getNeutralPalette(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=t.neutralVariantPalette??Qs(this.specVersion).getNeutralVariantPalette
13(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=t.errorPalette??Qs(this.specVersion).getErrorPalette(this.variant,this.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??ge.fromHueAndChroma(25,84),this.colors=new oe}toString(){const t=this.sourceColorHcts.length<=1?"":`sourceColorHctList=[${this.sourceColorHcts.map(n=>n.toString()).join(", ")}], `;return`Scheme: variant=${U[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, `+t+`specVersion=${this.specVersion}`}static getPiecewiseHue(t,n,r){const a=Math.min(n.length-1,r.length),s=t.hue;for(let l=0;l<a;l++)if(s>=n[l]&&s<n[l+1])return Qn(r[l]);return s}static getRotatedHue(t,n,r){let a=He.getPiecewiseHue(t,n,r);return Math.min(n.length-1,r.length)<=0&&(a=0),Qn(t.hue+a)}getArgb(t){return t.getArgb(this)}getHct(t){return t.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}
13get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){const t=this.colors.primaryDim();if(t===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){const t=this.colors.secondaryDim();if(t===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){const t=this.colors.tertiaryDim();if(t===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(t)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){const t=this.colors.errorDim();if(t===void 0)throw new Error("`errorDim` color is undefined prior to 2025
13spec.");return this.getArgb(t)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}}class uk{getPrimaryPalette(t,n,r,a,s){switch(t){case U.CONTENT:case U.FIDELITY:return ge.fromHueAndChroma(n.hue,n.chroma);case U.FRUIT_SALAD:return ge.fromHueAndChroma(Qn(n.hue-50),48);case U.MONOCHROME:return ge.fromHueAndChroma(n.hue,0);case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,12);case U.RAINBOW:return ge.fromHueAndChroma(n.hue,48);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,36);case U.EXPRESSIVE:return ge.fromHueAndChroma(Qn(n.hue+240),40);case U.VIBRANT:return ge.fromHueAndChroma(n.hue,200);default:throw new Error(`Unsupported variant: ${t}`)}}getSecondaryPalette(t,n,r,a,s){switch(t){case U.CONTENT:case U.FIDELITY:return ge.fromHueAndChroma(n.hue,Math.max(n.chroma-32,n.chroma*.5));case U.FRUIT_SALAD:return ge.fromHueAndChroma(Qn(n.hue-50),36);case U.MONOCHROME:return ge.fromHueAndChroma(n.hue,0);case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,8);case U.RAINBOW:return ge.fromHueAndChroma(n.hue,16);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,16);case U.EXPRESSIVE:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case U.VIBRANT:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${t}`)}}getTertiaryPalette(t,n,r,a,s){switch(t){case U.CONTENT:return ge.fromHct(uu.fixIfDisliked(new uc(n).analogous(3,6)[2]));case U.FIDELITY:return ge.fromHct(uu.fixIfDisliked(new uc(n).complement));case U.FRUIT_SALAD:return ge.fromHueAndChroma(n.hue,36);case U.MONOCHROME:return ge.fromHueAndChroma(n.hue,0);case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,16);case U.RAINBOW:case U.TONAL_SPOT:return ge.fromHueAndChroma(Qn(n.hue+60),24);case U.EXPRESSIVE:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case U.VIBRANT:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralPalette(t,n,r,a,s){switch(t){case U.CONTENT:case U.FIDELITY:return ge.fromHueAndChroma(n.hue,n.chroma/8);case U.FRUIT_SALAD:return ge.fromHueAndChroma(n.hue,10);case U.MONOCHROME:return ge.fromHueAndChroma(n.hue,0);case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,2);case U.RAINBOW:return ge.fromHueAndChroma(n.hue,0);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,6);case U.EXPRESSIVE:return ge.fromHueAndChroma(Qn(n.hue+15),8);case U.VIBRANT:return ge.fromHueAndChroma(n.hue,10);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralVariantPalette(t,n,r,a,s){switch(t){case U.CONTENT:return ge.fromHueAndChroma(n.hue,n.chroma/8+4);case U.FIDELITY:return ge.fromHueAndChroma(n.hue,n.chroma/8+4);case U.FRUIT_SALAD:return ge.fromHueAndChroma(n.hue,16);case U.MONOCHROME:return ge.fromHueAndChroma(n.hue,0);case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,2);case U.RAINBOW:return ge.fromHueAndChroma(n.hue,0);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,8);case U.EXPRESSIVE:return ge.fromHueAndChroma(Qn(n.hue+15),12);case U.VIBRANT:return ge.fromHueAndChroma(n.hue,12);default:throw new Error(`Unsupported variant: ${t}`)}}getErrorPalette(t,n,r,a,s){}}class Dr extends uk{getPrimaryPalette(t,n,r,a,s){switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,a==="phone"?Se.isBlue(n.hue)?12:8:Se.isBlue(n.hue)?16:12);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,a==="phone"&&r?26:32);case U.EXPRESSIVE:return ge.fromHueAndChroma(n.hue,a==="phone"?r?36:48:40);case U.VIBRANT:return ge.fromHueAndChroma(n.hue,a==="phone"?74:56);default:return super.getPrimaryPalette(t,n,r,a,s)}}getSecondaryPalette(t,n,r,a,s){switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,a==="phone"?Se.isBlue(n.hue)?6:4:Se.isBlue(n.hue)?10:6);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,16);case U.EXPRESSIVE:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),a==="phone"&&r?16:24);case U.VIBRANT:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,38,105,140,333,360],[-14,10,-14,10,-14]),a==="phone"?56:36);default:return super.getSecondaryPalette(t,n,r,a,s)}}getTertiaryPalette(t,n,r,a,s){switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),a==="phone"?20:36);case U.TONAL_SPOT:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,20,71,161,333,360],[-40,48,-32,40,-32]),a==="phone"?28:32);case U.EXPRESSIVE:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case U.VIBRANT:return ge.fromHueAndChroma(He.getRotatedHue(n,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(t,n,r,a,s)}}static getExpressiveNeutralHue(t){return He.getRotatedHue(t,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(t,n,r){const a=Dr.getExpressiveNeutralHue(t);return r==="phone"?n?Se.isYellow(a)?6:14:18:12}static getVibrantNeutralHue(t){return He.getRotatedHue(t,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(t,n){const r=Dr.getVibrantNeutralHue(t);return n==="phone"||Se.isBlue(r)?28:20}getNeutralPalette(t,n,r,a,s){switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,a==="phone"?1.4:6);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,a==="phone"?5:10);case U.EXPRESSIVE:return ge.fromHueAndChroma(Dr.getExpressiveNeutralHue(n),Dr.getExpressiveNeutralChroma(n,r,a));case U.VIBRANT:return ge.fromHueAndChroma(Dr.getVibrantNeutralHue(n),Dr.getVibrantNeutralChroma(n,a));default:return super.getNeutralPalette(t,n,r,a,s)}}
13getNeutralVariantPalette(t,n,r,a,s){switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(n.hue,(a==="phone"?1.4:6)*2.2);case U.TONAL_SPOT:return ge.fromHueAndChroma(n.hue,(a==="phone"?5:10)*1.7);case U.EXPRESSIVE:const l=Dr.getExpressiveNeutralHue(n),f=Dr.getExpressiveNeutralChroma(n,r,a);return ge.fromHueAndChroma(l,f*(l>=105&&l<125?1.6:2.3));case U.VIBRANT:const h=Dr.getVibrantNeutralHue(n),d=Dr.getVibrantNeutralChroma(n,a);return ge.fromHueAndChroma(h,d*1.29);default:return super.getNeutralVariantPalette(t,n,r,a,s)}}getErrorPalette(t,n,r,a,s){const l=He.getPiecewiseHue(n,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(t){case U.NEUTRAL:return ge.fromHueAndChroma(l,a==="phone"?50:40);case U.TONAL_SPOT:return ge.fromHueAndChroma(l,a==="phone"?60:48);case U.EXPRESSIVE:return ge.fromHueAndChroma(l,a==="phone"?64:48);case U.VIBRANT:return ge.fromHueAndChroma(l,a==="phone"?80:60);default:return super.getErrorPalette(t,n,r,a,s)}}}const rI=new uk,oI=new Dr;function Qs(e){return e==="2025"?oI:rI}class Nr{a1;a2;a3;n1;n2;error;static of(t){return new Nr(t,!1)}static contentOf(t){return new Nr(t,!0)}static fromColors(t){return Nr.createPaletteFromColors(!1,t)}static contentFromColors(t){return Nr.createPaletteFromColors(!0,t)}static createPaletteFromColors(t,n){const r=new Nr(n.primary,t);if(n.secondary){const a=new Nr(n.secondary,t);r.a2=a.a1}if(n.tertiary){const a=new Nr(n.tertiary,t);r.a3=a.a1}if(n.error){const a=new Nr(n.error,t);r.error=a.a1}if(n.neutral){const a=new Nr(n.neutral,t);r.n1=a.n1}if(n.neutralVariant){const a=new Nr(n.neutralVariant,t);r.n2=a.n2}return r}constructor(t,n){const r=Se.fromInt(t),a=r.hue,s=r.chroma;n?(this.a1=ge.fromHueAndChroma(a,s),this.a2=ge.fromHueAndChroma(a,s/3),this.a3=ge.fromHueAndChroma(a+60,s/2),this.n1=ge.fromHueAndChroma(a,Math.min(s/12,4)),this.n2=ge.fromHueAndChroma(a,Math.min(s/6,8))):(this.a1=ge.fromHueAndChroma(a,Math.max(48,s)),this.a2=ge.fromHueAndChroma(a,16),this.a3=ge.fromHueAndChroma(a+60,24),this.n1=ge.fromHueAndChroma(a,4),this.n2=ge.fromHueAndChroma(a,8)),this.error=ge.fromHueAndChroma(25,84)}}class ih extends He{constructor(t,n,r,a="2026",s=He.DEFAULT_PLATFORM){if(a!=="2026")throw new Error("SchemeCmf can only be used with spec version 2026.");const l=Array.isArray(t),f=l?t[0]:t,d=(l?t.slice(1):[])[0]??f,p=ge.fromHueAndChroma(f.hue,f.chroma),y=ge.fromHueAndChroma(f.hue,f.chroma*.5),b=f.toInt()===d.toInt()?ge.fromHueAndChroma(f.hue,f.chroma*.75):ge.fromHueAndChroma(d.hue,d.chroma),v=ge.fromHueAndChroma(f.hue,f.chroma*.2),S=ge.fromHueAndChroma(f.hue,f.chroma*.2),w=ge.fromHueAndChroma(ih.getErrorHue(f.hue,d.hue),Math.max(f.chroma,50));super({sourceColorHcts:l?t:[t],variant:U.CMF,contrastLevel:r,isDark:n,platform:s,specVersion:a,primaryPalette:p,secondaryPalette:y,tertiaryPalette:b,neutralPalette:v,neutralVariantPalette:S,errorPalette:w})}static getErrorHue(t,n){return t<=8?n<=24?28:n<=32?16:20:t<=16?n<=24?32:n<=32?20:24:t<=20?n<=28?32:n<=32?24:28:t<=28?n<=24?32:16:t<=32?n<=20?24:n<=28?16:20:t<=40?n>20&&n<=28?16:24:t<=152?n>24&&n<=36?20:32:t<=272?n>20&&n<=28?16:24:n>12&&n<=28?32:16}}class aI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.CONTENT,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class iI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.EXPRESSIVE,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class sI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.FIDELITY,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class cI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.FRUIT_SALAD,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class lI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.MONOCHROME,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class uI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.NEUTRAL,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class fI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.RAINBOW,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class dI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.TONAL_SPOT,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}class hI extends He{constructor(t,n,r,a=He.DEFAULT_SPEC_VERSION,s=He.DEFAULT_PLATFORM){super({sourceColorHcts:Array.isArray(t)?t:[t],variant:U.VIBRANT,contrastLevel:r,isDark:n,platform:s,specVersion:a})}}function mI(e){const t=W1(e),n=eb(e),r=tb(e),a=[t.toString(16),n.toString(16),r.toString(16)];for(const[s,l]of a.entries())l.length===1&&(a[s]="0"+l);return"#"+a.join("")}function bo(e){e=e.replace("#","");const t=e.length===3,n=e.length===6,r=e.length===8;if(!t&&!n&&!r)throw new Error("unexpected hex "+e);let a=0,s=0,l=0;return t?(a=$o(e.slice(0,1).repeat(2)),s=$o(e.slice(1,2).repeat(2)),l=$o(e.slice(2,3).repeat(2))):n?(a=$o(e.slice(0,2)),s=$o(e.slice(2,4)),l=$o(e.slice(4,6)
13)):r&&(a=$o(e.slice(2,4)),s=$o(e.slice(4,6)),l=$o(e.slice(6,8))),(255<<24|(a&255)<<16|(s&255)<<8|l&255)>>>0}function $o(e){return parseInt(e,16)}function pI(e,t){let n=t.value;const r=n,a=e;t.blend&&(n=nb.harmonize(r,a));const l=Nr.of(n).a1;return{color:t,value:n,light:{color:l.tone(40),onColor:l.tone(100),colorContainer:l.tone(90),onColorContainer:l.tone(10)},dark:{color:l.tone(80),onColor:l.tone(20),colorContainer:l.tone(30),onColorContainer:l.tone(90)}}}const fk=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},gI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},yI=e=>fk(gI[e.toLowerCase()],6),bI=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,vI=e=>{let t;return(t=e.match(bI))?fk(parseInt(t[1],16),t[1].length):void 0},ei="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Ul=`${ei}%`,rb=`(?:${ei}%|${ei})`,SI=`(?:${ei}(deg|grad|rad|turn)|${ei})`,gc="\\s*,\\s*",wI=new RegExp(`^rgba?\\(\\s*${ei}${gc}${ei}${gc}${ei}\\s*(?:,\\s*${rb}\\s*)?\\)$`),xI=new RegExp(`^rgba?\\(\\s*${Ul}${gc}${Ul}${gc}${Ul}\\s*(?:,\\s*${rb}\\s*)?\\)$`),_I=e=>{let t={mode:"rgb"},n;if(n=e.match(wI))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(xI))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]!==void 0?t.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))),t},sh=(e,t)=>e===void 0?void 0:typeof e!="object"?PI(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,ua=(e="rgb")=>t=>(t=sh(t,e))!==void 0?t.mode===e?t:mo[t.mode][e]?mo[t.mode][e](t):e==="rgb"?mo[t.mode].rgb(t):mo.rgb[e](mo[t.mode].rgb(t)):void 0,mo={},dk={},ch=[],hk={},TI=e=>e,_t=e=>(mo[e.mode]={...mo[e.mode],...e.toMode},Object.keys(e.fromMode||{}
13).forEach(t=>{mo[t]||(mo[t]={}),mo[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=TI)}),dk[e.mode]=e,(e.parse||[]).forEach(t=>{kI(t,e.mode)}),ua(e.mode)),yc=e=>dk[e],kI=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");hk[e]=t}else typeof e=="function"&&ch.indexOf(e)<0&&ch.push(e)},by=/[^\x00-\x7F]|[a-zA-Z_]/,EI=/[^\x00-\x7F]|[-\w]/,ye={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let je=0;function ud(e){let t=e[je],n=e[je+1];return t==="-"||t==="+"?/\d/.test(n)||n==="."&&/\d/.test(e[je+2]):t==="."?/\d/.test(n):/\d/.test(t)}function vy(e){if(je>=e.length)return!1;let t=e[je];if(by.test(t))return!0;if(t==="-"){if(e.length-je<2)return!1;let n=e[je+1];return!!(n==="-"||by.test(n))}return!1}const CI={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Al(e){let t="";if((e[je]==="-"||e[je]==="+")&&(t+=e[je++]),t+=fd(e),e[je]==="."&&/\d/.test(e[je+1])&&(t+=e[je++]+fd(e)),(e[je]==="e"||e[je]==="E")&&((e[je+1]==="-"||e[je+1]==="+")&&/\d/.test(e[je+2])?t+=e[je++]+e[je++]+fd(e):/\d/.test(e[je+1])&&(t+=e[je++]+fd(e))),vy(e)){let n=lh(e);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:ye.Hue,value:t*CI[n]}:void 0}return e[je]==="%"?(je++,{type:ye.Percentage,value:+t}):{type:ye.Number,value:+t}}function fd(e){let t="";for(;/\d/.test(e[je]);)t+=e[je++];return t}function lh(e){let t="";for(;je<e.length&&EI.test(e[je]);)t+=e[je++];return t}function AI(e){let t=lh(e);return e[je]==="("?(je++,{type:ye.Function,value:t}):t==="none"?{type:ye.None,value:void 0}:{type:ye.Ident,value:t}}function RI(e=""){let t=e.trim(),n=[],r;for(je=0;je<t.length;){if(r=t[je++],r===` 14`||r===" "||r===" "){for(;je<t.length&&(t[je]===` 15`||t[je]===" "||t[je]===" ");)je++;continue}if(r===",")return;if(r===")"){n.push({type:ye.ParenClose});continue}if(r==="+"){if(je--,ud(t)){n.push(Al(t));continue}return}if(r==="-"){if(je--,ud(t)){n.push(Al(t));continue}if(vy(t)){n.push({type:ye.Ident,value:lh(t)});continue}return}if(r==="."){if(je--,ud(t)){n.push(Al(t));continue}return}if(r==="/"){for(;je<t.length&&(t[je]===` 16`||t[je]===" "||t[je]===" ");)je++;let a;if(ud(t)&&(a=Al(t),a.type!==ye.Hue)){n.push({type:ye.Alpha,value:a});continue}if(vy(t)&&lh(t)==="none"){n.push({type:ye.Alpha,value:{type:ye.None,value:void 0}});continue}return}if(/\d/.test(r)){je--,n.push(Al(t));continue}if(by.test(r)){je--,n.push(AI(t));continue}return}return n}function MI(e){e._i=0;let t=e[e._i++];if(!t||t.type!==ye.Function||t.value!=="color"||(t=e[e._i++],t.type!==ye.Ident))return;const n=hk[t.value];if(!n)return;const r={mode:n},a=mk(e,!1);if(!a)return;const s=yc(n).channels;for(let l=0,f,h;l<s.length;l++)f=a[l],h=s[l],f.type!==ye.None&&(r[h]=f.type===ye.Number?f.value:f.value/100,h==="alpha"&&(r[h]=Math.max(0,Math.min(1,r[h]))));return r}function mk(e,t){const n=[];let r;for(;e._i<e.length;){if(r=e[e._i++],r.type===ye.None||r.type===ye.Number||r.type===ye.Alpha||r.type===ye.Percentage||t&&r.type===ye.Hue){n.push(r);continue}if(r.type===ye.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==ye.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:ye.None,value:void 0}),n.every(a=>a.type!==ye.Alpha)?n:void 0}}function OI(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==ye.Function)return;let r=mk(e,t);if(r)return r.unshift(n.value),r}const PI=e=>{if(typeof e!="string")return;const t=RI(e),n=t?OI(t,!0):void 0;let r,a=0,s=ch.length;for(;a<s;)if((r=ch[a++](e,n))!==void 0)return r;return t?MI(t):void 0};function zI(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;const n={mode:"rgb"},[,r,a,s,l]=t;if(!(r.type===ye.Hue||a.type===ye.Hue||s.type===ye.Hue))return r.type!==ye.None&&(n.r=r.type===ye.Number?r.value/255:r.value/100),a.type!==ye.None&&(n.g=a.type===ye.Number?a.value/255:a.value/100),s.type!==ye.None&&(n.b=s.type===ye.Number?s.value/255:s.value/100),l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const DI=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,NI=(e,t,n)=>e+n*(t-e),LI=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],a=e[n+1];r===void 0&&a===void 0?t.push(void 0):r!==void 0&&a!==void 0?t.push([r,a]):t.push(r!==void 0?[r,r]:[a,a])}return t},jI=e=>t=>{let n=LI(t);return r=>{let a=r*n.length,s=r>=1?n.length-1:Math.max(Math.floor(a),0),l=n[s];return l===void 0?void 0:e(l[0],l[1],a-s)}},ve=jI(NI),wn=e=>{let t=!1,n=e.map(r=>r!==void 0?(t=!0,r):1);return t?n:e},_c={mode:"rgb",channels:["r","g","b","alpha"],parse:[zI,vI,_I,yI,DI,"srgb"],serialize:"srgb",interpolate:{r:ve,g:ve,b:ve,alpha:{use:ve,fixup:wn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Wp=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),T3=e=>{let t=Wp(e.r),n=Wp(e.g),r=Wp(e.b),a={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(a.alpha=e.alpha),a},eg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),k3=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a={mode:"a98",r:eg(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:eg(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:eg(e*.0134442806320312-t*.1183623922310184+1.0151
16749943912058*n)};return r!==void 0&&(a.alpha=r),a},tg=(e=0)=>{const t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},Tc=({r:e,g:t,b:n,alpha:r})=>{let a={mode:"lrgb",r:tg(e),g:tg(t),b:tg(n)};return r!==void 0&&(a.alpha=r),a},fs=e=>{let{r:t,g:n,b:r,alpha:a}=Tc(e),s={mode:"xyz65",x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return a!==void 0&&(s.alpha=a),s},ng=(e=0)=>{const t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},kc=({r:e,g:t,b:n,alpha:r},a="rgb")=>{let s={mode:a,r:ng(e),g:ng(t),b:ng(n)};return r!==void 0&&(s.alpha=r),s},ds=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=kc({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(a.alpha=r),a},BI={..._c,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>k3(fs(e)),xyz65:k3},toMode:{rgb:e=>ds(T3(e)),xyz65:T3}},Fn=e=>(e=e%360)<0?e+360:e,FI=(e,t)=>e.map((n,r,a)=>{if(n===void 0)return n;let s=Fn(n);return r===0||e[r-1]===void 0?s:t(s-Fn(a[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),pa=e=>FI(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),An=[-.14861,1.78277,-.29227,-.90649,1.97294,0],II=Math.PI/180,HI=180/Math.PI;let E3=An[3]*An[4],C3=An[1]*An[4],A3=An[1]*An[2]-An[0]*An[3];const VI=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=(A3*n+e*E3-t*C3)/(A3+E3-C3),s=n-a,l=(An[4]*(t-a)-An[2]*s)/An[3],f={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(s*s+l*l)/(An[4]*a*(1-a))};return f.s&&(f.h=Math.atan2(l,s)*HI-120),r!==void 0&&(f.alpha=r),f},UI=({h:e,s:t,l:n,alpha:r})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*II,n===void 0&&(n=0);let s=t===void 0?0:t*n*(1-n),l=Math.cos(e),f=Math.sin(e);return a.r=n+s*(An[0]*l+An[1]*f),a.g=n+s*(An[2]*l+An[3]*f),a.b=n+s*(An[4]*l+An[5]*f),r!==void 0&&(a.alpha=r),a},$h=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=Fn(e.h),r=Fn(t.h),a=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*a},$I=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=Fn(e.h),r=Fn(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Zh=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=Fn(e.h),r=Fn(t.h),a=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*a},ZI=(e="rgb",t=[1,1,1,0])=>{let n=yc(e),r=n.channels,a=n.difference,s=ua(e);return(l,f)=>{let h=s(l),d=s(f);return Math.sqrt(r.reduce((p,y,b)=>{let v=a[y]?a[y](h,d):h[y]-d[y];return p+(t[b]||0)*Math.pow(isNaN(v)?0:v,2)},0))}},ga=e=>{let t=e.reduce((r,a)=>{if(a!==void 0){let s=a*Math.PI/180;r.sin+=Math.sin(s),r.cos+=Math.cos(s)}return r},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},YI={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:VI},toMode:{rgb:UI},interpolate:{h:{use:ve,fixup:pa},s:ve,l:ve,alpha:{use:ve,fixup:wn}},difference:{h:$h},average:{h:ga}},oi=({l:e,a:t,b:n,alpha:r},a="lch")=>{t===void 0&&(t=0),n===void 0&&(n=0);let s=Math.sqrt(t*t+n*n),l={mode:a,l:e,c:s};return s&&(l.h=Fn(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(l.alpha=r),l},ai=({l:e,c:t,h:n,alpha:r},a="lab")=>{n===void 0&&(n=0);let s={mode:a,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(s.alpha=r),s},pk=Math.pow(29,3)/Math.pow(3,3),gk=Math.pow(6,3)/Math.pow(29,3),dn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},fc={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let rg=e=>Math.pow(e,3)>gk?Math.pow(e,3):(116*e-16)/pk;const yk=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=(e+16)/116,s=t/500+a,l=a-n/200,f={mode:"xyz65",x:rg(s)*fc.X,y:rg(a)*fc.Y,z:rg(l)*fc.Z};return r!==void 0&&(f.alpha=r),f},Yh=e=>ds(yk(e)),og=e=>e>gk?Math.cbrt(e):(pk*e+16)/116,bk=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=og(e/fc.X),s=og(t/fc.Y),l=og(n/fc.Z),f={mode:"lab65",l:116*s-16,a:500*(a-s),b:200*(s-l)};return r!==void 0&&(f.alpha=r),f},Gh=e=>{let t=bk(fs(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},uh=1,vk=1,fu=26/180*Math.PI,fh=Math.cos(fu),dh=Math.sin(fu),Sk=100/Math.log(139/100),Sy=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a={mode:"lab65",l:(Math.exp(e*uh/Sk)-1)/.0039},s=(Math.exp(.0435*t*vk*uh)-1)/.075,l=s*Math.cos(n/180*Math.PI-fu),f=s*Math.sin(n/180*Math.PI-fu);return a.a=l*fh-f/.83*dh,a.b=l*dh+f/.83*fh,r!==void 0&&(a.alpha=r),a},wy=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=t*fh+n*dh,s=.83*(n*fh-t*dh),l=Math.sqrt(a*a+s*s),f={mode:"dlch",l:Sk/uh*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*vk*uh)};return f.c&&(f.h=Fn((Math.atan2(s,a)+fu)/Math.PI*180)),r!==void 0&&(f.alpha=r),f},R3=e=>Sy(oi(e,"dlch")),M3=e=>ai(wy(e),"dlab"),GI={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:R3,rgb:e=>Yh(R3(e))},fromMode:{lab65:M3,rgb:e=>M3(Gh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ve,a:ve,b:ve,alpha:{use:ve,fixup:wn}}}
16,qI={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Sy,dlab:e=>ai(e,"dlab"),rgb:e=>Yh(Sy(e))},fromMode:{lab65:wy,dlab:e=>oi(e,"dlch"),rgb:e=>wy(Gh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ve,c:ve,h:{use:ve,fixup:pa},alpha:{use:ve,fixup:wn}},difference:{h:Zh},average:{h:ga}};function XI({h:e,s:t,i:n,alpha:r}){e=Fn(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:n*(1+t*(3/(2-a)-1)),g:n*(1+t*(3*(1-a)/(2-a)-1)),b:n*(1-t)};break;case 1:s={r:n*(1+t*(3*(1-a)/(2-a)-1)),g:n*(1+t*(3/(2-a)-1)),b:n*(1-t)};break;case 2:s={r:n*(1-t),g:n*(1+t*(3/(2-a)-1)),b:n*(1+t*(3*(1-a)/(2-a)-1))};break;case 3:s={r:n*(1-t),g:n*(1+t*(3*(1-a)/(2-a)-1)),b:n*(1+t*(3/(2-a)-1))};break;case 4:s={r:n*(1+t*(3*(1-a)/(2-a)-1)),g:n*(1-t),b:n*(1+t*(3/(2-a)-1))};break;case 5:s={r:n*(1+t*(3/(2-a)-1)),g:n*(1-t),b:n*(1+t*(3*(1-a)/(2-a)-1))};break;default:s={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function KI({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.max(e,t,n),s=Math.min(e,t,n),l={mode:"hsi",s:e+t+n===0?0:1-3*s/(e+t+n),i:(e+t+n)/3};return a-s!==0&&(l.h=(a===e?(t-n)/(a-s)+(t<n)*6:a===t?(n-e)/(a-s)+2:(e-t)/(a-s)+4)*60),r!==void 0&&(l.alpha=r),l}const JI={mode:"hsi",toMode:{rgb:XI},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:KI},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ve,fixup:pa},s:ve,i:ve,alpha:{use:ve,fixup:wn}},difference:{h:$h},average:{h:ga}};function QI({h:e,s:t,l:n,alpha:r}){e=Fn(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let a=n+t*(n<.5?n:1-n),s=a-(a-n)*2*Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:a,g:s,b:2*n-a};break;case 1:l={r:s,g:a,b:2*n-a};break;case 2:l={r:2*n-a,g:a,b:s};break;case 3:l={r:2*n-a,g:s,b:a};break;case 4:l={r:s,g:2*n-a,b:a};break;case 5:l={r:a,g:2*n-a,b:s};break;default:l={r:2*n-a,g:2*n-a,b:2*n-a}}return l.mode="rgb",r!==void 0&&(l.alpha=r),l}function WI({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.max(e,t,n),s=Math.min(e,t,n),l={mode:"hsl",s:a===s?0:(a-s)/(1-Math.abs(a+s-1)),l:.5*(a+s)};return a-s!==0&&(l.h=(a===e?(t-n)/(a-s)+(t<n)*6:a===t?(n-e)/(a-s)+2:(e-t)/(a-s)+4)*60),r!==void 0&&(l.alpha=r),l}const eH=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},tH=new RegExp(`^hsla?\\(\\s*${SI}${gc}${Ul}${gc}${Ul}\\s*(?:,\\s*${rb}\\s*)?\\)$`),nH=e=>{let t=e.match(tH);if(!t)return;let n={mode:"hsl"};return t[3]!==void 0?n.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(n.h=eH(t[1],t[2])),t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?n.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))),n};function rH(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;const n={mode:"hsl"},[,r,a,s,l]=t;if(r.type!==ye.None){if(r.type===ye.Percentage)return;n.h=r.value}if(a.type!==ye.None){if(a.type===ye.Hue)return;n.s=a.value/100}if(s.type!==ye.None){if(s.type===ye.Hue)return;n.l=s.value/100}return l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const wk={mode:"hsl",toMode:{rgb:QI},fromMode:{rgb:WI},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[rH,nH],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ve,fixup:pa},s:ve,l:ve,alpha:{use:ve,fixup:wn}},difference:{h:$h},average:{h:ga}};function xk({h:e,s:t,v:n,alpha:r}){e=Fn(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:n,g:n*(1-t*a),b:n*(1-t)};break;case 1:s={r:n*(1-t*a),g:n,b:n*(1-t)};break;case 2:s={r:n*(1-t),g:n,b:n*(1-t*a)};break;case 3:s={r:n*(1-t),g:n*(1-t*a),b:n};break;case 4:s={r:n*(1-t*a),g:n*(1-t),b:n};break;case 5:s={r:n,g:n*(1-t),b:n*(1-t*a)};break;default:s={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function _k({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);
16let a=Math.max(e,t,n),s=Math.min(e,t,n),l={mode:"hsv",s:a===0?0:1-s/a,v:a};return a-s!==0&&(l.h=(a===e?(t-n)/(a-s)+(t<n)*6:a===t?(n-e)/(a-s)+2:(e-t)/(a-s)+4)*60),r!==void 0&&(l.alpha=r),l}const Tk={mode:"hsv",toMode:{rgb:xk},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:_k},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ve,fixup:pa},s:ve,v:ve,alpha:{use:ve,fixup:wn}},difference:{h:$h},average:{h:ga}};function oH({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let a=t+n;t/=a,n/=a}return xk({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function aH(e){let t=_k(e);if(t===void 0)return;let n=t.s!==void 0?t.s:0,r=t.v!==void 0?t.v:0,a={mode:"hwb",w:(1-n)*r,b:1-r};return t.h!==void 0&&(a.h=t.h),t.alpha!==void 0&&(a.alpha=t.alpha),a}function iH(e,t){if(!t||t[0]!=="hwb")return;const n={mode:"hwb"},[,r,a,s,l]=t;if(r.type!==ye.None){if(r.type===ye.Percentage)return;n.h=r.value}if(a.type!==ye.None){if(a.type===ye.Hue)return;n.w=a.value/100}if(s.type!==ye.None){if(s.type===ye.Hue)return;n.b=s.value/100}return l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const sH={mode:"hwb",toMode:{rgb:oH},fromMode:{rgb:aH},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[iH],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ve,fixup:pa},w:ve,b:ve,alpha:{use:ve,fixup:wn}},difference:{h:$I},average:{h:ga}},kk=203,qh=.1593017578125,Ek=78.84375,Xh=.8359375,Kh=18.8515625,Jh=18.6875;function ag(e){if(e<0)return 0;const t=Math.pow(e,1/Ek);return 1e4*Math.pow(Math.max(0,t-Xh)/(Kh-Jh*t),1/qh)}function ig(e){if(e<0)return 0;const t=Math.pow(e/1e4,qh);return Math.pow((Xh+Kh*t)/(1+Jh*t),Ek)}const sg=e=>Math.max(e/kk,0),O3=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const a=ag(e+.008609037037932761*t+.11102962500302593*n),s=ag(e-.00860903703793275*t-.11102962500302599*n),l=ag(e+.5600313357106791*t-.32062717498731885*n),f={mode:"xyz65",x:sg(2.070152218389422*a-1.3263473389671556*s+.2066510476294051*l),y:sg(.3647385209748074*a+.680566024947227*s-.0453045459220346*l),z:sg(-.049747207535812*a-.0492609666966138*s+1.1880659249923042*l)};return r!==void 0&&(f.alpha=r),f},cg=(e=0)=>Math.max(e*kk,0),P3=({x:e,y:t,z:n,alpha:r})=>{const a=cg(e),s=cg(t),l=cg(n),f=ig(.3592832590121217*a+.6976051147779502*s-.0358915932320289*l),h=ig(-.1920808463704995*a+1.1004767970374323*s+.0753748658519118*l),d=ig(.0070797844607477*a+.0748396662186366*s+.8433265453898765*l),p=.5*f+.5*h,y=1.61376953125*f-3.323486328125*h+1.709716796875*d,b=4.378173828125*f-4.24560546875*h-.132568359375*d,v={mode:"itp",i:p,t:y,p:b};return r!==void 0&&(v.alpha=r),v},cH={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:O3,rgb:e=>ds(O3(e))},fromMode:{xyz65:P3,rgb:e=>P3(fs(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ve,t:ve,p:ve,alpha:{use:ve,fixup:wn}}},lH=134.03437499999998,uH=16295499532821565e-27,lg=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,qh);return Math.pow((Xh+Kh*t)/(1+Jh*t),lH)},ug=(e=0)=>Math.max(e*203,0),Ck=({x:e,y:t,z:n,alpha:r})=>{e=ug(e),t=ug(t),n=ug(n);let a=1.15*e-.15*n,s=.66*t+.34*e,l=lg(.41478972*a+.579999*s+.014648*n),f=lg(-.20151*a+1.120649*s+.0531008*n),h=lg(-.0166008*a+.2648*s+.6684799*n),d=(l+f)/2,p={mode:"jab",j:.44*d/(1-.56*d)-uH,a:3.524*l-4.066708*f+.542708*h,b:.199076*l+1.096799*f-1.295875*h};return r!==void 0&&(p.alpha=r),p},fH=134.03437499999998,z3=16295499532821565e-27,fg=e=>{if(e<0)return 0;let t=Math.pow(e,1/fH);return 1e4*Math.pow((Xh-t)/(Jh*t-Kh),1/qh)},dg=e=>e/203,Ak=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=(e+z3)/(.44+.56*(e+z3)),s=fg(a+.13860504*t+.058047316*n),l=fg(a-.13860504*t-.058047316*n),f=fg(a-.096019242*t-.8118919*n),h={mode:"xyz65",x:dg(1.661373024652174*s-.914523081304348*l+.23136208173913045*f),y:dg(-.3250758611844533*s+1.571847026732543*l-.21825383453227928*f),z:dg(-.090982811*s-.31272829*l+1.5227666*f)};return r!==void 0&&(h.alpha=r),h},Rk=e=>{let t=Ck(fs(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Mk=e=>ds(Ak(e)),dH={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Rk,xyz65:Ck},toMode:{rgb:Mk,xyz65:Ak},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ve,a:ve,b:ve,alpha:{use:ve,fixup:wn}}},D3=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),s={mode:"jch",j:e,c:a};return a&&(s.h=Fn(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},N3=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let a={mode:"jab",j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a},hH={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:N3,rgb:e=>Mk(N3(e))},fromMode:{rgb:e=>D3(Rk(e)),jab:D3},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ve,fixup:pa},c:ve,j:ve,alpha:{use:ve,fixup:wn}},difference:{h:Zh},average:{h:ga}},Qh=Math.pow(29,3)/Math.pow(3,3),ob=Math.pow(6,3)/Math.pow(29,3);let hg=e=>Math.pow(e,3)>ob?Math.pow(e,3):(116*e-16)/Qh;const ab=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=(e+16)/116,s=t/500+a,l=a-n/200,f={mode:"xyz50",x:hg(s)*dn.X,y:hg(a)*dn.Y,z:hg(l)*dn.Z};return r!==void 0&&(f.alpha=r),f},xu=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=kc({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.9
1616254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(a.alpha=r),a},Ok=e=>xu(ab(e)),_u=e=>{let{r:t,g:n,b:r,alpha:a}=Tc(e),s={mode:"xyz50",x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return a!==void 0&&(s.alpha=a),s},mg=e=>e>ob?Math.cbrt(e):(Qh*e+16)/116,ib=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=mg(e/dn.X),s=mg(t/dn.Y),l=mg(n/dn.Z),f={mode:"lab",l:116*s-16,a:500*(a-s),b:200*(s-l)};return r!==void 0&&(f.alpha=r),f},Pk=e=>{let t=ib(_u(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function mH(e,t){if(!t||t[0]!=="lab")return;const n={mode:"lab"},[,r,a,s,l]=t;if(!(r.type===ye.Hue||a.type===ye.Hue||s.type===ye.Hue))return r.type!==ye.None&&(n.l=Math.min(Math.max(0,r.value),100)),a.type!==ye.None&&(n.a=a.type===ye.Number?a.value:a.value*125/100),s.type!==ye.None&&(n.b=s.type===ye.Number?s.value:s.value*125/100),l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const sb={mode:"lab",toMode:{xyz50:ab,rgb:Ok},fromMode:{xyz50:ib,rgb:Pk},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[mH],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:ve,a:ve,b:ve,alpha:{use:ve,fixup:wn}}},pH={...sb,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:yk,rgb:Yh},fromMode:{xyz65:bk,rgb:Gh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function gH(e,t){if(!t||t[0]!=="lch")return;const n={mode:"lch"},[,r,a,s,l]=t;if(r.type!==ye.None){if(r.type===ye.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(a.type!==ye.None&&(n.c=Math.max(0,a.type===ye.Number?a.value:a.value*150/100)),s.type!==ye.None){if(s.type===ye.Percentage)return;n.h=s.value}return l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const cb={mode:"lch",toMode:{lab:ai,rgb:e=>Ok(ai(e))},fromMode:{rgb:e=>oi(Pk(e)),lab:oi},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[gH],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ve,fixup:pa},c:ve,l:ve,alpha:{use:ve,fixup:wn}},difference:{h:Zh},average:{h:ga}},yH={...cb,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ai(e,"lab65"),rgb:e=>Yh(ai(e,"lab65"))},fromMode:{rgb:e=>oi(Gh(e),"lch65"),lab65:e=>oi(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},zk=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),s={mode:"lchuv",l:e,c:a};return a&&(s.h=Fn(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},Dk=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let a={mode:"luv",l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a},Nk=(e,t,n)=>4*e/(e+15*t+3*n),Lk=(e,t,n)=>9*t/(e+15*t+3*n),bH=Nk(dn.X,dn.Y,dn.Z),vH=Lk(dn.X,dn.Y,dn.Z),SH=e=>e<=ob?Qh*e:116*Math.cbrt(e)-16,xy=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=SH(t/dn.Y),s=Nk(e,t,n),l=Lk(e,t,n);!isFinite(s)||!isFinite(l)?a=s=l=0:(s=13*a*(s-bH),l=13*a*(l-vH));let f={mode:"luv",l:a,u:s,v:l};return r!==void 0&&(f.alpha=r),f},wH=(e,t,n)=>4*e/(e+15*t+3*n),xH=(e,t,n)=>9*t/(e+15*t+3*n),_H=wH(dn.X,dn.Y,dn.Z),TH=xH(dn.X,dn.Y,dn.Z),_y=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let a=t/(13*e)+_H,s=n/(13*e)+TH,l=dn.Y*(e<=8?e/Qh:Math.pow((e+16)/116,3)),f=l*(9*a)/(4*s),h=l*(12-3*a-20*s)/(4*s),d={mode:"xyz50",x:f,y:l,z:h};return r!==void 0&&(d.alpha=r),d},kH=e=>zk(xy(_u(e))),EH=e=>xu(_y(Dk(e))),CH={mode:"lchuv",toMode:{luv:Dk,rgb:EH},fromMode:{rgb:kH,luv:zk},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ve,fixup:pa},c:ve,l:ve,alpha:{use:ve,fixup:wn}},difference:{h:Zh},average:{h:ga}},AH={..._c,mode:"lrgb",toMode:{rgb:kc},fromMode:{rgb:Tc},parse:["srgb-linear"],serialize:"srgb-linear"},RH={mode:"luv",toMode:{xyz50:_y,rgb:e=>xu(_y(e))},fromMode:{xyz50:xy,rgb:e=>xy(_u(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ve,u:ve,v:ve,alpha:{use:ve,fixup:wn}}},jk=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),s=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),l=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),f={mode:"oklab",l:.210454268309314*a+.7936177747023054*s-.0040720430116193*l,a:1.9779985324311684*a-2.42859224204858*s+.450593709617411*l,b:.0259040424655478*a+.7827717124575296*s-.8086757549230774*l};return r!==void 0&&(f.alpha=r),f},Wh=e=>{let t=jk(Tc(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Tu=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.pow(e+.3963377773761749*t+.2158037573099136*n,3),s=Math.pow(e-.1055613458156586*t-.0638541728258133*n,3),l=Math.pow(e-.0894841775298119*t-1.2914855480194092*n,3),f={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*s+.2309699031821044*l,g:-1.2684379732850317*a+2.6097573492876887*s-.3413193760026573*l,b:-.0041960761386756*a-.7034186179359362*s+1.7076146940746117*l};return r!==void 0&&(f.alpha=r),f},e0=e=>kc(Tu(e));function Ty(e){const r=1.170873786407767;return .5*(r*e-.206+Math.sqrt((r*e-.206)*(r*e-.206)+4*.03*r*e))}function hh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function MH(e,t){let n,r,a,s,l,f,h,d;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,a=.59662641,s=.75515197,l=.56771245,f=4.0767416621,h=-3.3077115913,d=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,a=.08285427,s=.1254107,l=.14503204,f=-1.2684380046,h=2.6097574011,d=-.3413193965):(n=1.35733652,r=-.00915799,a=-1.1513021,s=-.50559606,l=.00692167,f=-.0041960863,h=-.7034186147,d=1.707614701);let p=n+r*e+a*t+s*e*e+l*e*t,y=.3963377774*e+.2158037573*t,b=-.1055613458*e-.0638541728*t,v=-.0894841775*e-1.291485548*t;{let S=1+p*y,w=1+p*b,_=1+p*v,A=S*S*S,E=w*w*w,C=_*_*_,R=3*y*S*S,z=3*b*w*w,P=3*v*_*_,M=6*y*y*S,k=6*b*b*w,D=6*v*v*_,N=f*A+h*E+d*C,F=f*R+h*z+d*P,Y=f*M+h*k+d*D;p=p-N*F/(F*F-.5*N*Y)}return p}function lb(e,t){let n=MH(e,t),r=Tu({l:1,a:n*e,b:n*t}),a=Math.cbrt(1/Math.max(r.r,r.g,r.b)),s=a*n;return[a,s]}function OH(e,t,n,r,a,s=null){s||(s=lb(e,t));let l;if((n-a)*s[1]-(s[0]-a)*r<=0)l=s[1]*a/(r*s[0]+s[1]*(a-n));else{l=s[1]*(a-1)/(r*(s[0]-1)+s[1]*(a-n));{let f=n-a,h=r,d=.3963377774*e+.2158037573*t,p=-.1055613458*e-.0638541728*t,y=-.0894841775*e-1.291485548*t,b=f+h*d,v=f+h*p,S=f+h*y;{let w=a*(1-l)+l*n,_=l*r,A=w+_*d,E=w+_*p,C=w+_*y,R=A*A*A,z=E*E*E,P=C*C*C,M=3*b*A*A,k=3*v*E*E,D=3*S*C*C,N=6*b*b*A,F=6*v*v*E,Y=6*S*S*C,J=4.0767416621*R-3.3077115913*z+.2309699292*P-1,fe=4.0767416621*M-3.3077115913*k+.2309699292*D,se=4.0767416621*N-3.3077115913*F+.2309699292*Y,B=fe/(fe*fe-.5*J*se),G=-J*B,ae=-1.2684380046*R+2.6097574011*z-.3413193965*P-1,ce=-1.2684380046*M+2.6097574011*k-.3413193965*D,V=-1.2684380046*N+2.6097574011*F-.3413193965*Y,L=ce/(ce*ce-.5*ae*V),Q=-ae*L,ee=-.0041960863*R-.7034186147*z+1.707614701*P-1,ue=-.0041960863*M-.7034186147*k+1.707614701*D,de=-.0041960863*N-.7034186147*F+1.707614701*Y,pe=ue/(ue*ue-.5*ee*de),Ae=-ee*pe;G=B>=0?G:1e6,Q=L>=0?Q:1e6,Ae=pe>=0?Ae:1e6,l+=Math.min(G,Math.min(Q,Ae))}}}return l}function ub(e,t,n=null){n||(n=lb(e,t));let r=n[0],a=n[1];return[a/r,a/(1-r)]}function Bk(e,t,n){let r=lb(t,n),a=OH(t,n,e,1,e,r),s=ub(t,n,r),l=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),f=.11239642+1/(1.
166132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),h=a/Math.min(e*s[0],(1-e)*s[1]),d=e*l,p=(1-e)*f,y=.9*h*Math.sqrt(Math.sqrt(1/(1/(d*d*d*d)+1/(p*p*p*p))));return d=e*.4,p=(1-e)*.8,[Math.sqrt(1/(1/(d*d)+1/(p*p))),y,a]}function L3(e){const t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,a={mode:"okhsl",l:Ty(t)};e.alpha!==void 0&&(a.alpha=e.alpha);let s=Math.sqrt(n*n+r*r);if(!s)return a.s=0,a;let[l,f,h]=Bk(t,n/s,r/s),d;if(s<f){let p=0,y=.8*l,b=1-y/f;d=(s-p)/(y+b*(s-p))*.8}else{let p=f,y=.2*f*f*1.25*1.25/l,b=1-y/(h-f);d=.8+.2*((s-p)/(y+b*(s-p)))}return d&&(a.s=d,a.h=Fn(Math.atan2(r,n)*180/Math.PI)),a}function j3(e){let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.l!==void 0?e.l:0;const a={mode:"oklab",l:hh(r)};if(e.alpha!==void 0&&(a.alpha=e.alpha),!n||r===1)return a.a=a.b=0,a;let s=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[f,h,d]=Bk(a.l,s,l),p,y,b,v;n<.8?(p=1.25*n,y=0,b=.8*f,v=1-b/h):(p=5*(n-.8),y=h,b=.2*h*h*1.25*1.25/f,v=1-b/(d-h));let S=y+p*b/(1-v*p);return a.a=S*s,a.b=S*l,a}const PH={...wk,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:L3,rgb:e=>L3(Wh(e))},toMode:{oklab:j3,rgb:e=>e0(j3(e))}};function B3(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,a=Math.sqrt(n*n+r*r),s=a?n/a:1,l=a?r/a:1,[f,h]=ub(s,l),d=.5,p=1-d/f,y=h/(a+t*h),b=y*t,v=y*a,S=hh(b),w=v*S/b,_=Tu({l:S,a:s*w,b:l*w}),A=Math.cbrt(1/Math.max(_.r,_.g,_.b,0));t=t/A,a=a/A*Ty(t)/t,t=Ty(t);const E={mode:"okhsv",s:a?(d+h)*v/(h*d+h*p*v):0,v:t?t/b:0};return E.s&&(E.h=Fn(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(E.alpha=e.alpha),E}function F3(e){const t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);const n=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,s=Math.cos(n/180*Math.PI),l=Math.sin(n/180*Math.PI),[f,h]=ub(s,l),d=.5,p=1-d/f,y=1-r*d/(d+h-h*p*r),b=r*h*d/(d+h-h*p*r),v=hh(y),S=b*v/y,w=Tu({l:v,a:s*S,b:l*S}),_=Math.cbrt(1/Math.max(w.r,w.g,w.b,0)),A=hh(a*y),E=b*A/y;return t.l=A*_,t.a=E*s*_,t.b=E*l*_,t}const zH={...Tk,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:B3,rgb:e=>B3(Wh(e))},toMode:{oklab:F3,rgb:e=>e0(F3(e))}};function DH(e,t){if(!t||t[0]!=="oklab")return;const n={mode:"oklab"},[,r,a,s,l]=t;if(!(r.type===ye.Hue||a.type===ye.Hue||s.type===ye.Hue))return r.type!==ye.None&&(n.l=Math.min(Math.max(0,r.type===ye.Number?r.value:r.value/100),1)),a.type!==ye.None&&(n.a=a.type===ye.Number?a.value:a.value*.4/100),s.type!==ye.None&&(n.b=s.type===ye.Number?s.value:s.value*.4/100),l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const NH={...sb,mode:"oklab",toMode:{lrgb:Tu,rgb:e0},fromMode:{lrgb:jk,rgb:Wh},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[DH],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`};function LH(e,t){if(!t||t[0]!=="oklch")return;const n={mode:"oklch"},[,r,a,s,l]=t;if(r.type!==ye.None){if(r.type===ye.Hue)return;n.l=Math.min(Math.max(0,r.type===ye.Number?r.value:r.value/100),1)}if(a.type!==ye.None&&(n.c=Math.max(0,a.type===ye.Number?a.value:a.value*.4/100)),s.type!==ye.None){if(s.type===ye.Percentage)return;n.h=s.value}return l.type!==ye.None&&(n.alpha=Math.min(1,Math.max(0,l.type===ye.Number?l.value:l.value/100))),n}const jH={...cb,mode:"oklch",toMode:{oklab:e=>ai(e,"oklab"),rgb:e=>e0(ai(e,"oklab"))},fromMode:{rgb:e=>oi(Wh(e),"oklch"),oklab:e=>oi(e,"oklch")},parse:[LH],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},I3=e=>{let{r:t,g:n,b:r,alpha:a}=Tc(e),s={mode:"xyz65",x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return a!==void 0&&(s.alpha=a),s},H3=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a=kc({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(a.alpha=r),a},BH={..._c,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>H3(fs(e)),xyz65:H3},toMode:{rgb:e=>ds(I3(e)),xyz65:I3}},pg=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},V3=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a={mode:"prophoto",r:pg(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:pg(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:pg(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(a.alpha=r),a},gg=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},U3=e=>{let t=gg(e.r),n=gg(e.g),r=gg(e.b),a={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(a.alpha=e.alpha),a}
16,FH={..._c,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:V3,rgb:e=>V3(_u(e))},toMode:{xyz50:U3,rgb:e=>xu(U3(e))}},$3=1.09929682680944,IH=.018053968510807,yg=e=>{const t=Math.abs(e);return t>IH?(Math.sign(e)||1)*($3*Math.pow(t,.45)-($3-1)):4.5*e},Z3=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let a={mode:"rec2020",r:yg(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:yg(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:yg(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(a.alpha=r),a},Y3=1.09929682680944,HH=.018053968510807,bg=(e=0)=>{let t=Math.abs(e);return t<HH*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+Y3-1)/Y3,1/.45)},G3=e=>{let t=bg(e.r),n=bg(e.g),r=bg(e.b),a={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(a.alpha=e.alpha),a},VH={..._c,mode:"rec2020",fromMode:{xyz65:Z3,rgb:e=>Z3(fs(e))},toMode:{xyz65:G3,rgb:e=>ds(G3(e))}
16,parse:["rec2020"],serialize:"rec2020"},Ki=.0037930732552754493,Fk=Math.cbrt(Ki),vg=e=>Math.cbrt(e)-Fk,UH=e=>{const{r:t,g:n,b:r,alpha:a}=Tc(e),s=vg(.3*t+.622*n+.078*r+Ki),l=vg(.23*t+.692*n+.078*r+Ki),f=vg(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+Ki),h={mode:"xyb",x:(s-l)/2,y:(s+l)/2,b:f-(s+l)/2};return a!==void 0&&(h.alpha=a),h},Sg=e=>Math.pow(e+Fk,3),$H=({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const a=Sg(e+t)-Ki,s=Sg(t-e)-Ki,l=Sg(n+t)-Ki,f=kc({r:11.031566904639861*a-9.866943908131562*s-.16462299650829934*l,g:-3.2541473810744237*a+4.418770377582723*s-.16462299650829934*l,b:-3.6588512867136815*a+2.7129230459360922*s+1.9459282407775895*l});return r!==void 0&&(f.alpha=r),f},ZH={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:$H},fromMode:{rgb:UH},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ve,y:ve,b:ve,alpha:{use:ve,fixup:wn}}},YH={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:xu,lab:ib},fromMode:{rgb:_u,lab:ab},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ve,y:ve,z:ve,alpha:{use:ve,fixup:wn}}},GH=e=>{let{x:t,y:n,z:r,alpha:a}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let s={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return a!==void 0&&(s.alpha=a),s},qH=e=>{let{x:t,y:n,z:r,alpha:a}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let s={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return a!==void 0&&(s.alpha=a),s},XH={mode:"xyz65",toMode:{rgb:ds,xyz50:GH},fromMode:{rgb:fs,xyz50:qH},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ve,y:ve,z:ve,alpha:{use:ve,fixup:wn}}},KH=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const a={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(a.alpha=r),a},JH=({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const a={mode:"rgb",r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(a.alpha=r),a},QH={mode:"yiq",toMode:{rgb:JH},fromMode:{rgb:KH},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ve,i:ve,q:ve,alpha:{use:ve,fixup:wn}}},WH=e=>{const t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},eV=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function Ik(e="rgb"){const{gamut:t}=yc(e);if(!t)return r=>!0;const n=ua(typeof t=="string"?t:e);return r=>eV(n(r))}function tV(e="rgb"){const{gamut:t}=yc(e);if(!t)return s=>sh(s);const n=typeof t=="string"?t:e,r=ua(n),a=Ik(n);return s=>{const l=sh(s);if(!l)return;const f=r(l);if(a(f))return l;const h=WH(f);return l.mode===h.mode?h:ua(l.mode)(h)}}function nV(e="rgb",t="oklch",n=ZI("oklch"),r=.02){const a=ua(e),s=yc(e);if(!s.gamut)return p=>a(p);const l=Ik(e),f=tV(e),h=ua(t),{ranges:d}=yc(t);if(!d.l||!d.c)throw new Error("LCH-like space expected");return p=>{if(p=sh(p),p===void 0)return;const y={...h(p)};if(y.l===void 0&&(y.l=0),y.c===void 0&&(y.c=0),y.l>=d.l[1]){const _={...s.white,mode:e};return p.alpha!==void 0&&(_.alpha=p.alpha),_}if(y.l<=d.l[0]){const _={...s.black,mode:e};return p.alpha!==void 0&&(_.alpha=p.alpha),_}if(l(y))return a(y);let b=0,v=y.c,S=(d.c[1]-d.c[0])/4e3,w=f(y);for(;v-b>S;)y.c=(b+v)*.5,w=f(y),l(y)||n&&r>0&&n(y,w)<=r?b=y.c:v=y.c;return a(l(y)?y:w)}}function rV(e){let t=ua("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}_t(BI);_t(YI);_t(GI);_t(qI);_t(JI);_t(wk);_t(Tk);_t(sH);_t(cH);_t(dH);_t(hH);_t(sb);_t(pH);_t(cb);_t(yH);_t(CH);_t(AH);_t(RH);_t(PH);_t(zH);_t(NH);_t(jH);_t(BH);_t(FH);_t(VH);_t(_c);_t(ZH);_t(YH);_t(XH);_t(QH);function rc(e){return/^#[0-9a-fA-F]{6}$/.test(e)}const oV=ua("oklch"),aV=nV("rgb","oklch"),iV=4,sV=4,cV=2;function wg(e,t){return Number(e.toFixed(t)).toString()}function t0(e){return{r:e>>16&255,g:e>>8&255,b:e&255}}function lV(e){const{r:t,g:n,b:r}=t0(e);return{mode:"rgb",r:t/255,g:n/255,b:r/255}}function uV(e){const t=oV(lV(e)),n=t.l??0,r=t.c??0;let a=t.h??0;return r<1e-4&&(a=0),`oklch(${wg(n,iV)} ${wg(r,sV)} ${wg(a,cV)})`}const fV=/^oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)$/;function dV(e){const t=fV.exec(e.trim());if(!t)throw new Error(`[color-utils] not a canonical oklch(L C H) string: ${e}`);const n=Number(t[1]),r=Number(t[2]),a=Number(t[3]),s=aV({mode:"oklch",l:n,c:r,h:a}),l=xg(s.r),f=xg(s.g),h=xg(s.b);return(255<<24|(l&255)<<16|(f&255)<<8|h&255)>>>0}function xg(e){return Math.min(255,Math.round((e??0)*255))}function fb(e){return uV(e)}function q3(e){const{r:t,g:n,b:r}=t0(e);return rV({mode:"rgb",r:t/255,g:n/255,b:r/255})}
16function jd(e,t){const n=q3(e),r=q3(t),[a,s]=n>=r?[n,r]:[r,n];return(a+.05)/(s+.05)}const hV=8,mV=98,pV=12,gV=4.5,X3=bo("#ffffff"),K3=bo("#000000");function yV(e,t={}){const n=t.ratio??gV,r=Se.fromInt(e),a=jd(X3,e)>=jd(K3,e),s=a?mV:pV,l=Se.from(r.hue,Math.min(r.chroma,hV),s).toInt();return jd(l,e)>=n?l:a?X3:K3}const Zi=["--color-chart-1","--color-chart-2","--color-chart-3","--color-chart-4","--color-chart-5"],Ec=["--chart-1","--chart-2","--chart-3","--chart-4","--chart-5"],bV=["sequential","categorical"],vV=["chart-1","prominent-edge"],ky=80,SV="chart-1",wV={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Hk(e){return wV}let xV;function _V(e){return xV?.get(e)}let TV;function kV(e){return TV?.get(e)}let EV;function CV(e,t){return EV?.get(e)?.get(t)}function os(e){const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function er(e,t,n,r,a){const s=a&&"input"in a?a.input:n.value,l=a?.expected??e.expects??null,f=a?.received??os(s),h={kind:e.kind,type:e.type,input:s,expected:l,received:f,message:`Invalid ${t}: ${l?`Expected ${l} but r`:"R"}eceived ${f}`,requirement:e.requirement,path:a?.path,issues:a?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},d=e.kind==="schema",p=a?.message??e.message??CV(e.reference,h.lang)??(d?kV(h.lang):null)??r.message??_V(h.lang);p!==void 0&&(h.message=typeof p=="function"?p(h):p),d&&(n.typed=!1),n.issues?n.issues.push(h):n.issues=[h]}const J3=new WeakMap;function Ir(e){let t=J3.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},Hk())}},J3.set(e,t)),t}function AV(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Vk(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function ku(e,t){return{kind:"validation",type:"check",reference:ku,async:!1,expects:null,requirement:e,message:t,"~run"(n,r){return n.typed&&!this.requirement(n.value)&&er(this,"input",n,r),n}}}function du(e,t){return{kind:"validation",type:"max_value",reference:du,async:!1,expects:`<=${e instanceof Date?e.toJSON():os(e)}`,requirement:e,message:t,"~run"(n,r){return n.typed&&!(n.value<=this.requirement)&&er(this,"value",n,r,{received:n.value instanceof Date?n.value.toJSON():os(n.value)}),n}}}function dc(e,t){return{kind:"validation",type:"min_value",reference:dc,async:!1,expects:`>=${e instanceof Date?e.toJSON():os(e)}`,requirement:e,message:t,"~run"(n,r){return n.typed&&!(n.value>=this.requirement)&&er(this,"value",n,r,{received:n.value instanceof Date?n.value.toJSON():os(n.value)}),n}}}function RV(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Uk(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function $k(e,t){return{kind:"schema",type:"array",reference:$k,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return Ir(this)},"~run"(n,r){const a=n.value;if(Array.isArray(a)){n.typed=!0,n.value=[];for(let s=0;s<a.length;s++){const l=a[s],f=this.item["~run"]({value:l},r);if(f.issues){const h={type:"array",origin:"value",input:a,key:s,value:l};for(const d of f.issues)d.path?d.path.unshift(h):d.path=[h],n.issues?.push(d);if(n.issues||(n.issues=f.issues),r.abortEarly){n.typed=!1;break}}f.typed||(n.typed=!1),n.value.push(f.value)}}else er(this,"type",n,r);return n}}}function $l(e){return{kind:"schema",type:"boolean",reference:$l,expects:"boolean",async:!1,message:e,get"~standard"(){return Ir(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:er(this,"type",t,n),t}}}function Zk(e,t){return{kind:"schema",type:"literal",reference:Zk,expects:os(e),async:!1,literal:e,message:t,get"~standard"(){return Ir(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:er(this,"type",n,r),n}}}function Yk(e){return{kind:"schema",type:"null",reference:Yk,expects:"null",async:!1,message:e,get"~standard"(){return Ir(this)},"~run"(t,n){return t.value===null?t.typed=!0:er(this,"type",t,n),t}}
16}function ti(e){return{kind:"schema",type:"number",reference:ti,expects:"number",async:!1,message:e,get"~standard"(){return Ir(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:er(this,"type",t,n),t}}}function jr(e,t){return{kind:"schema",type:"object",reference:jr,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return Ir(this)},"~run"(n,r){const a=n.value;if(a&&typeof a=="object"){n.typed=!0,n.value={};for(const s in this.entries){const l=this.entries[s];if(s in a||(l.type==="exact_optional"||l.type==="optional"||l.type==="nullish")&&l.default!==void 0){const f=s in a?a[s]:Uk(l),h=l["~run"]({value:f},r);if(h.issues){const d={type:"object",origin:"value",input:a,key:s,value:f};for(const p of h.issues)p.path?p.path.unshift(d):p.path=[d],n.issues?.push(p);if(n.issues||(n.issues=h.issues),r.abortEarly){n.typed=!1;break}}h.typed||(n.typed=!1),n.value[s]=h.value}else if(l.fallback!==void 0)n.value[s]=RV(l);else if(l.type!=="exact_optional"&&l.type!=="optional"&&l.type!=="nullish"&&(er(this,"key",n,r,{input
16:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:a,key:s,value:a[s]}]}),r.abortEarly))break}}else er(this,"type",n,r);return n}}}function db(e,t){return{kind:"schema",type:"optional",reference:db,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Ir(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Uk(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function dr(e,t){return{kind:"schema",type:"picklist",reference:dr,expects:Vk(e.map(os),"|"),async:!1,options:e,message:t,get"~standard"(){return Ir(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:er(this,"type",n,r),n}}}function Cc(e,t,n){return{kind:"schema",type:"record",reference:Cc,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return Ir(this)},"~run"(r,a){const s=r.value;if(s&&typeof s=="object"){r.typed=!0,r.value={};for(const l in s)if(AV(s,l)){const f=s[l],h=this.key["~run"]({value:l},a);if(h.issues){const p={type:"object",origin:"key",input:s,key:l,value:f};for(const y of h.issues)y.path=[p],r.issues?.push(y);if(r.issues||(r.issues=h.issues),a.abortEarly){r.typed=!1;break}}const d=this.value["~run"]({value:f},a);if(d.issues){const p={type:"object",origin:"value",input:s,key:l,value:f};for(const y of d.issues)y.path?y.path.unshift(p):y.path=[p],r.issues?.push(y);if(r.issues||(r.issues=d.issues),a.abortEarly){r.typed=!1;break}}(!h.typed||!d.typed)&&(r.typed=!1),h.typed&&(r.value[h.value]=d.value)}}else er(this,"type",r,a);return r}}}function Zl(e){return{kind:"schema",type:"string",reference:Zl,expects:"string",async:!1,message:e,get"~standard"(){return Ir(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:er(this,"type",t,n),t}}}function Q3(e){let t;if(e)for(const n of e)if(t)for(const r of n.issues)t.push(r);else t=n.issues;return t}function Gk(e,t){return{kind:"schema",type:"union",reference:Gk,expects:Vk(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return Ir(this)},"~run"(n,r){let a,s,l;for(const f of this.options){const h=f["~run"]({value:n.value},r);if(h.typed)if(h.issues)s?s.push(h):s=[h];else{a=h;break}else l?l.push(h):l=[h]}if(a)return a;if(s){if(s.length===1)return s[0];er(this,"type",n,r,{issues:Q3(s)}),n.typed=!0}else{if(l?.length===1)return l[0];er(this,"type",n,r,{issues:Q3(l)})}return n}}}function oa(...e){return{...e[0],pipe:e,get"~standard"(){return Ir(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}function MV(e,t,n){const r=e["~run"]({value:t},Hk());return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const OV={name:"cmf",mcuVariant:U.CMF,group:"cmf",build(e,t,n,r){return r===void 0?new ih(e,t,n):new ih([e,r],t,n)}},PV={name:"content",mcuVariant:U.CONTENT,group:"standard",build(e,t,n){return new aI(e,t,n)}},zV={name:"expressive",mcuVariant:U.EXPRESSIVE,group:"expressive",build(e,t,n){return new iI(e,t,n)}},DV={name:"fidelity",mcuVariant:U.FIDELITY,group:"standard",build(e,t,n){return new sI(e,t,n)}},NV={name:"fruitSalad",mcuVariant:U.FRUIT_SALAD,group:"expressive",build(e,t,n){return new cI(e,t,n)}},LV={name:"monochrome",mcuVariant:U.MONOCHROME,group:"subdued",build(e,t,n){return new lI(e,t,n)}},jV={name:"neutral",mcuVariant:U.NEUTRAL,group:"subdued",build(e,t,n){return new uI(e,t,n)}},BV={name:"rainbow",mcuVariant:U.RAINBOW,group:"expressive",build(e,t,n){return new fI(e,t,n)}},FV={name:"tonalSpot",mcuVariant:U.TONAL_SPOT,group:"standard",build(e,t,n){return new dI(e,t,n)}},IV={name:"vibrant",mcuVariant:U.VIBRANT,group:"expressive",build(e,t,n){return new hI(e,t,n)}},qk={cmf:OV,tonalSpot:FV,neutral:jV,fidelity:DV,content:PV,vibrant:IV,expressive:zV,rainbow:BV,fruitSalad:NV,monochrome:LV};function hu(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}let _g;function HV(){return _g||(_g=new Set([...pi.map(e=>e.slice(8)),...ii.map(e=>e.slice(2))])),_g}function Ey(e,t){const n=hu(e.name);return n.length===0?"name must contain at least one alphanumeric character":n.startsWith("on-")?`name cannot produce a slug starting with "on-" (got "${n}")`:n.endsWith("-container")?`name cannot produce a slug ending with "-container" (got "${n}")`:n.endsWith("-foreground")?`name cannot produce a slug ending with "-foreground" (got "${n}")`:n.startsWith("tnx-")?`name cannot use the reserved "tnx-" prefix (got "${n}")`:HV().has(n)?`name "${n}" collides with a reserved md or shadcn token`:t.has(n)?`name "${n}" duplicates an existing custom color`:rc(e.hex)?null:'hex must be a 6-digit "#rrggbb" value'}function hb(e){const t=Se.fromInt(bo(e));return{hue:t.hue,chroma:t.chroma,tone:t.tone}}function VV({hue:e,chroma:t,tone:n}){return mI(Se.from(e,t,n).toInt())}function uo(e){return{...hb(e),exactHex:e}}const Go={default:{description:"Balanced, neutral starting point â calm chrome with no strong opinion",seed:uo("#b8b0a1"),contrastLevel:{light:0,dark:0},variant:"cmf",surfaceAlgo:"desaturate",surfacePaletteName:{light:"zinc",dark:"zinc"},surfaceTintLevel:{light:0,dark:0},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-dim","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-bright","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}},stone:{description:"Near-black monochrome with the faintest warmth â minimal and high-contrast, for portfolios, agencies, and editorial",seed:uo("#161616"),contrastLevel:{light:.25,dark:.25},variant:"cmf",surfaceAlgo:"tint",surfacePaletteName:{light:"mist",dark:"mist"},surfaceTintLevel:{light:.5,dark:.3},surfaceTintTextLevel:{light:.8,dark:.9},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-surface-container-lowest","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-highest","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline-variant","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-highest","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-bright","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline-variant","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary-container","--sidebar-primary-foreground":"--color-on-primary-container","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"}}},lagoon:{description:"Deep blue-green, cool and composed â steady-reading dashboards, fintech, and data tools",seed:uo("#009195"),contrastLevel:{light:0,dark:0},variant:"cmf",surfaceAlgo:"tint",surfacePaletteName:{light:"mist",dark:"mist"},surfaceTintLevel:{light:0,dark:.6},surfaceTintTextLevel:{light:.9,dark:.8},surfaceDesaturateLevel:{light:.3,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-dim","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary-container","--primary-foreground":"--color-on-primary-container","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-bright","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-bright","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}},breeze:{description:"Bright airy azure on clean neutral â fresh and modern, for SaaS and dev tools",seed:uo("#2e5bff"),contrastLevel:{light:0,dark:0},variant:"cmf",surfaceAlgo:"desaturate",surfacePaletteName:{light:"zinc",dark:"zinc"},surfaceTintLevel:{light:0,dark:0},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:.2,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-highest","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-primary"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-bright","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-primary-container"}}},paper:{description:"Warm editorial cream with quiet chrome that lets text lead â blogs, docs, longform reading",seed:uo("#e3bfaa"),contrastLevel:{light:.1,dark:.1},variant:"cmf",surfaceAlgo:"tint",surfacePaletteName:{light:"stone",dark:"stone"},surfaceTintLevel:{light:.4,dark:.3},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-acc
16ent":"--color-surface-container","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"}}},enterprise:{description:"Restrained navy on slate with visible borders â B2B SaaS, fintech, and admin consoles",seed:uo("#3a5a8c"),contrastLevel:{light:.15,dark:.15},variant:"cmf",surfaceAlgo:"desaturate",surfacePaletteName:{light:"slate",dark:"slate"},surfaceTintLevel:{light:0,dark:0},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:.3,dark:.2},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-primary"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-primary"}}},sunset:{description:"Warm coral energy with a second hot accent â consumer, food, events, and lifestyle apps",seed:uo("#f4633a"),contrastLevel:{light:0,dark:0},variant:"tonalSpot",surfaceAlgo:"tint",surfacePaletteName:{light:"taupe",dark:"taupe"},surfaceTintLevel:{light:.4,dark:.2},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-tertiary-container","--secondary-foreground":"--color-on-tertiary-container","--muted":"--color-surface-container","--muted-foreground":"--color-on-surface-variant","--accent":"--color-tertiary-container","--accent-foreground":"--color-on-tertiary-container","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-tertiary-container","--sidebar-accent-foreground":"--color-on-tertiary-container","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-primary"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-tertiary-container","--secondary-foreground":"--color-on-tertiary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-tertiary-container","--accent-foreground":"--color-on-tertiary-container","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-tertiary-container","--sidebar-accent-foreground":"--color-on-tertiary-container","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-primary"}}},sage:{description:"Muted sage held close in value â calm and focused, for wellness, journaling, and mindfulness",seed:uo("#478f5c"),contrastLevel:{light:0,dark:0},variant:"tonalSpot",surfaceAlgo:"desaturate",surfacePaletteName:{light:"olive",dark:"olive"},surfaceTintLevel:{light:0,dark:0},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:.4,dark:.6},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"}}},fire:{description:"Vivid signal red on a warm neutral â bold and high-energy, for commerce, sports, and entertainment",seed:uo("#e60012"),contrastLevel:{light:0,dark:0},variant:"cmf",surfaceAlgo:"tint",surfacePaletteName:{light:"mauve",dark:"mauve"},surfaceTintLevel:{light:.5,dark:.3},surfaceTintTextLevel:{light:0,dark:0},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline-variant","--input":"--color-outline-variant","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline-variant","--sidebar-ring":"--color-outline"}}},electron:{description:"Electric lime-green on cool slate â energetic and technical, for dev tools, gaming, and developer platforms",seed:uo("#457b00"),contrastLevel:{light:0,dark:0},variant:"cmf",surfaceAlgo:"tint",surfacePaletteName:{light:"slate",dark:"slate"},surfaceTintLevel:{light:0,dark:0},surfaceTintTextLevel:{light:.3,dark:.4},surfaceDesaturateLevel:{light:0,dark:0},shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-dim","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-bright","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}}},UV=["--color-surface","--color-surface-dim","--color-surface-bright","--color-surface-container-lowest","--color-surface-container-low","--color-surface-container","--color-surface-container-high","--color-surface-container-highest","--color-on-surface","--color-on-surface-variant","--color-outline","--color-outline-variant"];function $V(e,t){if(t<=0)return e;const n=Se.fromInt(e);return Se.from(n.hue,n.chroma*(1-t),n.tone).toInt()}function ZV(e,t){if(t<=0)return e;const n={...e};for(const r of UV){const a=e[r];a!==void 0&&(n[r]=$V(a,t))}return n}const YV={black:{DEFAULT:"oklch(0 0 0)"},white:{DEFAULT:"oklch(1 0 0)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)
16",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"},slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},taupe:{50:"oklch(0.986 0.002 67.8)",100:"oklch(0.96 0.002 17.2)",200:"oklch(0.922 0.005 34.3)",300:"oklch(0.868 0.007 39.5)",400:"oklch(0.714 0.014 41.2)",500:"oklch(0.547 0.021 43.1)",600:"oklch(0.438 0.017 39.3)",700:"oklch(0.367 0.016 35.7)",800:"oklch(0.268 0.011 36.5)",900:"oklch(0.214 0.009 43.1)",950:"oklch(0.147 0.004 49.3)"},mauve:{50:"oklch(0.985 0 0)",100:"oklch(0.96 0.003 325.6)",200:"oklch(0.922 0.005 325.62)",300:"oklch(0.865 0.012 325.68)",400:"oklch(0.711 0.019 323.02)",500:"oklch(0.542 0.034 322.5)",600:"oklch(0.435 0.029 321.78)",700:"oklch(0.364 0.029 323.89)",800:"oklch(0.263 0.024 320.12)",900:"oklch(0.212 0.019 322.12)",950:"oklch(0.145 0.008 326)"},mist:{50:"oklch(0.987 0.002 197.1)",100:"oklch(0.963 0.002 197.1)",200:"oklch(0.925 0.005 214.3)",300:"oklch(0.872 0.007 219.6)",400:"oklch(0.723 0.014 214.4)",500:"oklch(0.56 0.021 213.5)",600:"oklch(0.45 0.017 213.2)",700:"oklch(0.378 0.015 216)",800:"oklch(0.275 0.011 216.9)",900:"oklch(0.218 0.008 223.9)",950:"oklch(0.148 0.004 228.8)"},olive:{50:"oklch(0.988 0.003 106.5)",100:"oklch(0.966 0.005 106.5)",200:"oklch(0.93 0.007 106.5)",300:"oklch(0.88 0.011 106.6)",400:"oklch(0.737 0.021 106.9)",500:"oklch(0.58 0.031 107.3)",600:"oklch(0.466 0.025 107.3)",700:"oklch(0.394 0.023 107.4)",800:"oklch(0.286 0.016 107.4)",900:"oklch(0.228 0.013 107.4)",950:"oklch(0.153 0.006 107.1)"}},Cy=["slate","gray","zinc","neutral","stone","taupe","mauve","mist","olive"],GV=8,qV=.25,XV=["--color-on-surface","--color-on-surface-variant"],KV=["--color-surface","--color-surface-dim","--color-surface-bright","--color-surface-container-lowest","--color-surface-container-low","--color-surface-container","--color-surface-container-high","--color-surface-container-highest"],JV=["--color-outline","--color-outline-variant"],QV=(()=>{const e={};for(const t of Cy){const n=Object.values(YV[t]).map(r=>{const a=Se.fromInt(dV(r));return{hue:a.hue,chroma:a.chroma,tone:a.tone}});n.sort((r,a)=>r.tone-a.tone),e[t]=n}return e})();function mb(e,t,n){let r=t-e;return r>180&&(r-=360),r<-180&&(r+=360),(e+r*n+360)%360}function Xk(e,t){const n=e[0];if(t<=n.tone)return{hue:n.hue,chroma:n.chroma};const r=e[e.length-1];if(t>=r.tone)return{hue:r.hue,chroma:r.chroma};for(let a=0;a<e.length-1;a++){const s=e[a],l=e[a+1];if(t<=l.tone){const f=(t-s.tone)/(l.tone-s.tone||1);return{hue:mb(s.hue,l.hue,f),chroma:s.chroma+(l.chroma-s.chroma)*f}}}return{hue:r.hue,chroma:r.chroma}}function WV(e,t,n,r){return r<=0?Se.from(t.hue,t.chroma,e).toInt():Se.from(mb(t.hue,n,r),t.chroma+(GV-t.chroma)*r,e).toInt()}function eU(e,t,n,r){const a=Se.fromInt(e).tone,s=Xk(t,a);if(r<=0)return Se.from(s.hue,s.chroma,a).toInt();const l=n.chroma*qV;return Se.from(mb(s.hue,n.hue,r),s.chroma+(l-s.chroma)*r,a).toInt()}function tU(e,t,n,r=0){const a=e["--color-primary"];if(a===void 0)return e;const s=Se.fromInt(a),l=QV[n],f={...e};for(const h of[...KV,...JV]){const d=e[h];if(d===void 0)continue;const p=Se.fromInt(d).tone;f[h]=WV(p,Xk(l,p),s.hue,t)}for(const h of XV){const d=e[h];d!==void 0&&(f[h]=eU(d,l,s,r))}return f}const pb=1,pi=["--color-primary","--color-on-primary","--color-primary-container","--color-on-primary-container","--color-primary-fixed","--color-primary-fixed-dim","--color-on-primary-fixed","--color-on-primary-fixed-variant","--color-primary-dim","--color-secondary","--color-on-secondary","--color-secondary-container","--color-on-secondary-container","--color-secondary-fixed","--color-secondary-fixed-dim","--color-on-secondary-fixed","--color-on-secondary-fixed-variant","--color-secondary-dim","--color-tertiary","--color-on-tertiary","--color-tertiary-container","--color-on-tertiary-container","--color-tertiary-fixed","--color-tertiary-fixed-dim","--color-on-tertiary-fixed","--color-on-tertiary-fixed-variant","--color-tertiary-dim","--color-error","--color-on-error","--color-error-container","--color-on-error-container","--color-error-dim","--color-surface","--color-on-surface","--color-on-surface-variant","--color-surface-dim","--color-surface-bright","--color-surface-container-lowest","--color-surface-container-low","--color-surface-container","--color-surface-container-high","--color-surface-container-highest","--color-surface-tint","--color-inverse-surface","--color-inverse-on-surface","--color-inverse-primary","--color-shadow","--color-scrim","--color-outline","--color-outline-variant"],nU=["--color-primary-fixed","--color-primary-fixed-dim","--color-on-primary-fixed","--color-on-primary-fixed-variant","--color-primary-dim","--color-secondary-fixed","--color-secondary-fixed-dim","--color-on-secondary-fixed","--color-on-secondary-fixed-variant","--color-secondary-dim","--color-tertiary-fixed","--color-tertiary-fixed-dim","--color-on-tertiary-fixed","--color-on-tertiary-fixed-variant","--color-tertiary-dim","--color-error-dim","--color-surface-tint","--color-inverse-surface","--color-inverse-on-surface","--color-inverse-primary","--color-shadow","--color-scrim"],Kk=[0,5,10,15,20,25,30,35,40,50,60,70,80,90,95,98,99,100],n0=[{paletteName:"primary",emissionName:"primary",schemeField:"primaryPalette"},{paletteName:"secondary",emissionName:"secondary",schemeField:"secondaryPalette"},{paletteName:"tertiary",emissionName:"tertiary",schemeField:"tertiaryPalette"},{paletteName:"neutral",emissionName:"neutral",schemeField:"neutralPalette"},{paletteName:"neutralVariant",emissionName:"neutral-variant",schemeField:"neutralVariantPalette"},{paletteName:"error",emissionName:"error",schemeField:"errorPalette"}],rU=n0.map(e=>e.emissionName);rU.flatMap(e=>Kk.map(t=>`--color-${e}-${t}`));const ii=["--background","--foreground","--card","--card-foreground","--popover","--popover-foreground","--primary","--primary-foreground","--secondary","--secondary-foreground","--muted","--muted-foreground","--accent","--accent-foreground","--destructive","--border","--input","--ring","--sidebar","--sidebar-foreground","--sidebar-primary","--sidebar-primary-foreground","--sidebar-accent","--sidebar-accent-foreground","--sidebar-border","--sidebar-ring"],Jk=["--border","--input","--sidebar-border"],oU=n0.map(e=>e.paletteName),aU=["tint","desaturate"],W3="#904477",ex={version:pb,seed:{...hb(W3),exactHex:W3},variant:Go.default.variant,contrastLevel:{light:0,dark:0},seedHexLock:!1,seedTouched:!1,contrastTouched:!1,md3TokenOverrides:{light:{},dark:{}},shadcnRoleBindings:Go.default.shadcnRoleBindings,shadcnRoleOverrides:{light:{},dark:{}},shadcnChartOverrides:{light:{},dark:{}},surfaceAlgo:Go.default.surfaceAlgo,surfacePaletteName:Go.default.surfacePaletteName,surfaceTintLevel:Go.default.surfaceTintLevel,surfaceTintTextLevel:Go.default.surfaceTintTextLevel,surfaceDesaturateLevel:Go.default.surfaceDesaturateLevel,customColors:[],paletteOverrides:{},cmfSecondSourceHex:null,chart:{scheme:"sequential",hueSpread:ky,hueAnchor:SV}},iU=Object.keys(qk),hs=oa(Zl(),ku(rc,"invalid hex")),sU=jr({hue:oa(ti(),dc(0),du(360)),chroma:oa(ti(),dc(0)),tone:oa(ti(),dc(0),du(100)),exactHex:db(hs)}
16),cU=oa(jr({id:Zl(),name:Zl(),description:db(Zl()),hex:hs,blend:$l(),shadcnSource:dr(["color","container"])}),ku(e=>Ey(e,new Set)===null,"invalid custom color entry")),lU=oa($k(cU),ku(e=>{const t=e.map(n=>hu(n.name));return new Set(t).size===t.length},"duplicate custom color slug")),tx=Cc(dr(pi),hs),nx=oa(Cc(dr(ii),dr(pi)),ku(e=>ii.every(t=>t in e),"shadcn bindings missing required role")),uU=Cc(dr(oU),hs),rx=Cc(dr(ii),hs),ox=Cc(dr(Ec),hs),Tg=jr({light:ti(),dark:ti()}),fU=jr({light:dr(Cy),dark:dr(Cy)}),ax=oa(ti(),dc(0),du(1)),dU=jr({light:ax,dark:ax}),hU=jr({version:Zk(pb),seed:sU,variant:dr(iU),contrastLevel:dU,seedHexLock:$l(),seedTouched:$l(),contrastTouched:$l(),md3TokenOverrides:jr({light:tx,dark:tx}),shadcnRoleBindings:jr({light:nx,dark:nx}),shadcnRoleOverrides:jr({light:rx,dark:rx}),shadcnChartOverrides:jr({light:ox,dark:ox}),surfaceAlgo:dr(aU),surfacePaletteName:fU,surfaceTintLevel:Tg,surfaceTintTextLevel:Tg,surfaceDesaturateLevel:Tg,customColors:lU,paletteOverrides:uU,cmfSecondSourceHex:Gk([hs,Yk()]),chart:jr({scheme:dr(bV),hueSpread:oa(ti(),dc(0),du(360)),hueAnchor:dr(vV)})});function mU(e){const t=MV(hU,e);return t.success?{ok:!0,theme:t.output}:{ok:!1}}function Qk(e,t){return e==="tertiary"&&t.variant==="cmf"?"Tertiary is driven by the CMF second-source picker. Change variant to enable this override.":null}function pU(e,t,n){for(const{paletteName:r,schemeField:a}of n0){const s=n.paletteOverrides[r];if(s===void 0||Qk(r,n)!==null)continue;const l=ge.fromInt(bo(s)),f=a;e[f]=l,t[f]=l}}function Wk(e){return e.variant!=="cmf"?"Second source color is only used by the CMF variant.":null}const gU=3,yU=40,bU=60,e8=20;function ix(e,t,n,r,a,s){if(t===1||r===0)return n;const l=e/(t-1);if(a==="chart-1")return n+r*l;const f=s==="light"?1-l:l;return n+r*f}function vU(e,t,n,r,a,s,l,f){const h=w=>{const _=Math.max(r,w),A=Math.min(r,w);for(let E=0;E<l;E++){const C=l===1?_:_-E/(l-1)*(_-A),R=ix(E,l,e.hue,a,s,t),P=(R===e.hue?e:ge.fromHueAndChroma(R,e.chroma)).tone(C);if(!n.every(M=>jd(P,M)>=gU))return!1}return!0},d=t==="light"?SU(h):wU(h),p=Math.max(r,d),y=Math.min(r,d),b=[],v=[],S=[];for(let w=0;w<l;w++){const _=f[w]??null,A=_!==null?_:l===1?p:p-w/(l-1)*(p-y),E=ix(w,l,e.hue,a,s,t);b.push(A),v.push(E);const C=E===e.hue?e:ge.fromHueAndChroma(E,e.chroma);S.push(C.tone(A))}return{argbs:S,samples:b,hues:v,safeEdge:d,prominentEdge:r}}function SU(e){if(!e(0))return 0;if(e(100))return 100;let t=0,n=100;for(let r=0;r<e8;r++){const a=(t+n)/2;e(a)?t=a:n=a}return t}function wU(e){if(!e(100))return 100;if(e(0))return 0;let t=100,n=0;for(let r=0;r<e8;r++){const a=(t+n)/2;e(a)?t=a:n=a}return t}const xU=[0,120,240,60,180],_U=50,TU=45,kU=65,EU=5,CU=270;function sx(e,t,n,r,a){const s={};if(r.scheme==="sequential"){const{argbs:h}=vU(t.primaryPalette,n,a,n==="light"?yU:bU,r.hueSpread,r.hueAnchor,Zi.length,Array(Zi.length).fill(null));return Zi.forEach((d,p)=>{s[d]=h[p]}),s}const l=e.chroma<EU?CU:e.hue,f=n==="dark"?kU:TU;return Zi.forEach((h,d)=>{const p=(l+xU[d])%360;s[h]=Se.from(p,_U,f).toInt()}),s}function cx(e){const t={};return Ec.forEach((n,r)=>{const a=e[Zi[r]];if(a===void 0)throw new Error(`[rebrandChart] missing md chart token at index ${r}`);t[n]=a}),t}function lx(e,t){const n={...e};for(const r of Ec){const a=t[r];a!==void 0&&(n[r]=bo(a))}return n}const AU=new Set(nU);function dd(e,t,n){const r=e();if(r===void 0)throw new Error(`[derive] MCU returned undefined for ${n} â spec stack may have changed`);return r.getArgb(t)}const RU={"--color-primary":(e,t)=>t.primary().getArgb(e),"--color-on-primary":(e,t)=>t.onPrimary().getArgb(e),"--color-primary-container":(e,t)=>t.primaryContainer().getArgb(e),"--color-on-primary-container":(e,t)=>t.onPrimaryContainer().getArgb(e),"--color-primary-fixed":(e,t)=>
16t.primaryFixed().getArgb(e),"--color-primary-fixed-dim":(e,t)=>t.primaryFixedDim().getArgb(e),"--color-on-primary-fixed":(e,t)=>t.onPrimaryFixed().getArgb(e),"--color-on-primary-fixed-variant":(e,t)=>t.onPrimaryFixedVariant().getArgb(e),"--color-primary-dim":(e,t)=>dd(()=>t.primaryDim(),e,"--color-primary-dim"),"--color-secondary":(e,t)=>t.secondary().getArgb(e),"--color-on-secondary":(e,t)=>t.onSecondary().getArgb(e),"--color-secondary-container":(e,t)=>t.secondaryContainer().getArgb(e),"--color-on-secondary-container":(e,t)=>t.onSecondaryContainer().getArgb(e),"--color-secondary-fixed":(e,t)=>t.secondaryFixed().getArgb(e),"--color-secondary-fixed-dim":(e,t)=>t.secondaryFixedDim().getArgb(e),"--color-on-secondary-fixed":(e,t)=>t.onSecondaryFixed().getArgb(e),"--color-on-secondary-fixed-variant":(e,t)=>t.onSecondaryFixedVariant().getArgb(e),"--color-secondary-dim":(e,t)=>dd(()=>t.secondaryDim(),e,"--color-secondary-dim"),"--color-tertiary":(e,t)=>t.tertiary().getArgb(e),"--color-on-tertiary":(e,t)=>t.onTertiary().getArgb(e),"--color-tertiary-container":(e,t)=>t.tertiaryContainer().getArgb(e),"--color-on-tertiary-container":(e,t)=>t.onTertiaryContainer().getArgb(e),"--color-tertiary-fixed":(e,t)=>
16t.tertiaryFixed().getArgb(e),"--color-tertiary-fixed-dim":(e,t)=>t.tertiaryFixedDim().getArgb(e),"--color-on-tertiary-fixed":(e,t)=>t.onTertiaryFixed().getArgb(e),"--color-on-tertiary-fixed-variant":(e,t)=>t.onTertiaryFixedVariant().getArgb(e),"--color-tertiary-dim":(e,t)=>dd(()=>t.tertiaryDim(),e,"--color-tertiary-dim"),"--color-error":(e,t)=>t.error().getArgb(e),"--color-on-error":(e,t)=>t.onError().getArgb(e),"--color-error-container":(e,t)=>t.errorContainer().getArgb(e),"--color-on-error-container":(e,t)=>t.onErrorContainer().getArgb(e),"--color-error-dim":(e,t)=>dd(()=>t.errorDim(),e,"--color-error-dim"),"--color-surface":(e,t)=>t.surface().getArgb(e),"--color-on-surface":(e,t)=>t.onSurface().getArgb(e),"--color-on-surface-variant":(e,t)=>t.onSurfaceVariant().getArgb(e),"--color-surface-dim":(e,t)=>t.surfaceDim().getArgb(e),"--color-surface-bright":(e,t)=>t.surfaceBright().getArgb(e),"--color-surface-container-lowest":(e,t)=>t.surfaceContainerLowest().getArgb(e),"--color-surface-container-low":(e,t)=>t.surfaceContainerLow().getArgb(e),"--color-surface-container":(e,t)=>t.surfaceContainer().getArgb(e),"--color-surface-container-high":(e,t)=>t.surfaceContainerHigh().getArgb(e),"--color-surface-container-highest":(e,t)=>t.surfaceContainerHighest().getArgb(e),"--color-surface-tint":(e,t)=>t.surfaceTint().getArgb(e),"--color-inverse-surface":(e,t)=>t.inverseSurface().getArgb(e),"--color-inverse-on-surface":(e,t)=>t.inverseOnSurface().getArgb(e),"--color-inverse-primary":(e,t)=>t.inversePrimary().getArgb(e),"--color-shadow":(e,t)=>t.shadow().getArgb(e),"--color-scrim":(e,t)=>t.scrim().getArgb(e),"--color-outline":(e,t)=>t.outline().getArgb(e),"--color-outline-variant":(e,t)=>t.outlineVariant().getArgb(e)};function ux(e,t){const n={};for(const r of pi)n[r]=RU[r](e,t);return n}function fx(e,t,n){const r={};for(const a of ii){const s=n[a];if(s!==void 0){r[a]=bo(s);continue}const l=t[a],f=e[l];if(f===void 0)throw new Error(`[bindShadcn] role ${a} bound to missing md token ${l}`);r[a]=f}return r}function MU(e){const t=Se.from(e.seed.hue,e.seed.chroma,e.seed.tone),n=qk[e.variant],r=e.cmfSecondSourceHex!==null&&Wk(e)===null?Se.fromInt(bo(e.cmfSecondSourceHex)):void 0,a=n.build(t,!1,e.contrastLevel.light,r),s=n.build(t,!0,e.contrastLevel.dark,r),l=new oe;pU(a,s,e);const f=gx(ux(a,l),e.md3TokenOverrides.light),h=gx(ux(s,l),e.md3TokenOverrides.dark),d=px(f,"light",e),p=px(h,"dark",e),y=t.toInt(),b=e.customColors.map(D=>({entry:D,slug:hu(D.name),group:pI(y,{value:bo(D.hex),name:D.name,blend:D.blend})})),v=e.seed.exactHex!==void 0?bo(e.seed.exactHex):y,S={"--brand":v,"--brand-foreground":PU(v)},w=hx(b,"light"),_=hx(b,"dark"),A={...d,...w},E={...p,..._},C=dx(A),R=dx(E),z=[C.core["--color-surface"],C.core["--color-surface-container"]],P=[R.core["--color-surface"],R.core["--color-surface-container"]],M=sx(t,a,"light",e.chart,z),k=sx(t,s,"dark",e.chart,P);return{md:{light:C.core,dark:R.core,lightChart:M,darkChart:k,lightExtended:C.extended,darkExtended:R.extended,palette:OU(a)},shadcn:{light:{...fx(A,e.shadcnRoleBindings.light,e.shadcnRoleOverrides.light),...mx(b,w)},dark:{...fx(E,e.shadcnRoleBindings.dark,e.shadcnRoleOverrides.dark),...mx(b,_)},lightChart:lx(cx(M),e.shadcnChartOverrides.light),darkChart:lx(cx(k),e.shadcnChartOverrides.dark),brand:S},warnings:[]}}function dx(e){const t={},n={};for(const[r,a]of Object.entries(e))AU.has(r)?n[r]=a:t[r]=a;return{core:t,extended:n}}function OU(e){const t={};for(const{emissionName:n,schemeField:r}of n0){const a=e[r];for(const s of Kk)t[`--color-${n}-${s}`]=a.tone(s)}return t}function hx(e,t){const n={};for(const{slug:r,group:a}of e){const s=a[t];n[`--color-${r}`]=s.color,n[`--color-on-${r}`]=s.onColor,n[`--color-${r}-container`]=s.colorContainer,n[`--color-on-${r}-container`]=s.onColorContainer}return n}function PU(e){return yV(e,{ratio:4.5})}function mx(e,t){const n={};for(const{entry:r,slug:a}of e){const s=r.shadcnSource==="color"?{color:`--color-${a}`,on:`--color-on-${a}`}:{color:`--color-${a}-container`,on:`--color-on-${a}-container`},l=t[s.color],f=t[s.on];if(l===void 0||f===void 0)throw new Error(`[buildCustomColorsShadcn] missing md token for slug ${a}`);n[`--${a}`]=l,n[`--${a}-foreground`]=f}return n}
16function px(e,t,n){return n.surfaceAlgo==="tint"?tU(e,n.surfaceTintLevel[t],n.surfacePaletteName[t],n.surfaceTintTextLevel[t]):ZV(e,n.surfaceDesaturateLevel[t])}function gx(e,t){const n=Object.keys(t);if(n.length===0)return e;const r={...e};for(const a of n){const s=t[a];s!==void 0&&(r[a]=bo(s))}return r}const zU=6,hd=[];function t8(e,t){const n=e.contrastLevel;for(const s of hd)if(!(s.contrast.light!==n.light||s.contrast.dark!==n.dark)&&(s.source===e||DU(s.source,e)))return s.derived;const a=MU(e);return hd.push({source:e,contrast:n,derived:a}),hd.length>zU&&hd.shift(),a}function DU(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=e,s=t;for(const l of n)if(a[l]!==s[l])return!1;return!0}function NU(e){switch(e){case"single":return{scheme:"sequential",hueSpread:0};case"multi":return{scheme:"sequential",hueSpread:ky};case"polychrome":return{scheme:"categorical",hueSpread:ky}}}const yx="--color-";function n8(e){return e.startsWith(yx)?e.slice(yx.length):e}const LU=new Map([...pi,...Zi].map(e=>[n8(e),e]));pi.map(n8);[...LU.keys(),...ii,...Ec];[...ii,...Ec];[...Zi,...Ec];function jU(e){return e.seed.exactHex??VV(e.seed)}new Set(ii);new Set(pi);new Set(pi);const BU={default:{description:"Balanced defaults â a neutral surface mapping to start from",shadcnRoleBindings:Go.default.shadcnRoleBindings},clean:{description:"Flat surfaces â card, popover, and background share one layer",shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-outline","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}},mixed:{description:"Mode-aware â light and dark route to different layers",shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-bright","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary-container","--primary-foreground":"--color-on-primary-container","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-high","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-primary"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-highest","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-bright","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-primary"}}},layered:{description:"Stacked depth â each surface sits on its own elevation tier",shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-dim","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container-low","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-bright","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-highest","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}},seamless:{description:"Subtle depth â cards lift gently while popovers blend into the page",shadcnRoleBindings:{light:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-dim","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-container-high","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-high","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"},dark:{"--background":"--color-surface","--foreground":"--color-on-surface","--card":"--color-surface-container","--card-foreground":"--color-on-surface","--popover":"--color-surface-container","--popover-foreground":"--color-on-surface","--primary":"--color-primary","--primary-foreground":"--color-on-primary","--secondary":"--color-secondary-container","--secondary-foreground":"--color-on-secondary-container","--muted":"--color-surface-container-highest","--muted-foreground":"--color-on-surface-variant","--accent":"--color-surface-bright","--accent-foreground":"--color-on-surface","--destructive":"--color-error","--border":"--color-outline","--input":"--color-outline","--ring":"--color-primary","--sidebar":"--color-surface-container-low","--sidebar-foreground":"--color-on-surface-variant","--sidebar-primary":"--color-primary","--sidebar-primary-foreground":"--color-on-primary","--sidebar-accent":"--color-surface-container-highest","--sidebar-accent-foreground":"--color-on-surface","--sidebar-border":"--color-outline","--sidebar-ring":"--color-outline"}}}},mh="--color-outline-variant";function r8(e){for(const t of Jk)if(e.light[t]!==mh||e.dark[t]!==mh)return!1;return!0}function o8(e){const t={light:{...e.light},dark:{...e.dark}};for(const n of Jk)t.light[n]=mh,t.dark[n]=mh;return t}function FU(e,t,n={}){const r={light:{...t.shadcnRoleBindings.light},dark:{...t.shadcnRoleBindings.dark}},a={variant:t.variant,surfaceAlgo:t.surfaceAlgo,surfacePaletteName:{...t.surfacePaletteName},surfaceTintLevel:{...t.surfaceTintLevel},surfaceTintTextLevel:{...t.surfaceTintTextLevel},surfaceDesaturateLevel:{...t.surfaceDesaturateLevel},shadcnRoleBindings:r8(e.shadcnRoleBindings)?o8(r):r};return e.seedHexLock||(e.seedTouched?n.seed&&(a.seed={...t.seed},a.seedTouched=!1):a.seed={...t.seed}),e.contrastTouched?n.contrast&&(a.contrastLevel={...t.contrastLevel},a.contrastTouched=!1):a.contrastLevel={...t.contrastLevel},a}const bx=e=>{let t;const n=new Set,r=(d,p)=>{const y=typeof d=="function"?d(t):d;if(!Object.is(y,t)){const b=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({}
16,t,y),n.forEach(v=>v(t,b))}},a=()=>t,f={setState:r,getState:a,getInitialState:()=>h,subscribe:d=>(n.add(d),()=>n.delete(d))},h=t=e(r,a,f);return f},IU=(e=>e?bx(e):bx),HU=e=>e;function VU(e,t=HU){const n=tn.useSyncExternalStore(e.subscribe,tn.useCallback(()=>t(e.getState()),[e,t]),tn.useCallback(()=>t(e.getInitialState()),[e,t]));return tn.useDebugValue(n),n}const vx=e=>{const t=IU(e),n=r=>VU(t,r);return Object.assign(n,t),n},UU=(e=>e?vx(e):vx);function a8(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var s;const l=h=>h===null?null:JSON.parse(h,void 0),f=(s=n.getItem(a))!=null?s:null;return f instanceof Promise?f.then(l):l(f)},setItem:(a,s)=>n.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>n.removeItem(a)}}const Ay=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Ay(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Ay(r)(n)}}}},$U=(e,t)=>(n,r,a)=>{let s={storage:a8(()=>window.localStorage),partialize:_=>_,version:0,merge:(_,A)=>({...A,..._}),...t},l=!1,f=0;const h=new Set,d=new Set;let p=s.storage;if(!p)return e((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(..._)},r,a);const y=()=>{const _=s.partialize({...r()});return p.setItem(s.name,{state:_,version:s.version})},b=a.setState;a.setState=(_,A)=>(b(_,A),y());const v=e((..._)=>(n(..._),y()),r,a);a.getInitialState=()=>v;let S;const w=()=>{var _,A;if(!p)return;const E=++f;l=!1,h.forEach(R=>{var z;return R((z=r())!=null?z:v)});const C=((A=s.onRehydrateStorage)==null?void 0:A.call(s,(_=r())!=null?_:v))||void 0;return Ay(p.getItem.bind(p))(s.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==s.version){if(s.migrate){const z=s.migrate(R.state,R.version);return z instanceof Promise?z.then(P=>[!0,P]):[!0,z]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var z;if(E!==f)return;const[P,M]=R;if(S=s.merge(M,(z=r())!=null?z:v),n(S,!0),P)return y()}).then(()=>{E===f&&(C?.(r(),void 0),S=r(),l=!0,d.forEach(R=>R(S)))}).catch(R=>{E===f&&C?.(void 0,R)})};return a.persist={setOptions:_=>{s={...s,..._},_.storage&&(p=_.storage)},clearStorage:()=>{++f,p?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>w(),hasHydrated:()=>l,onHydrate:_=>(h.add(_),()=>{h.delete(_)}),onFinishHydration:_=>(d.add(_),()=>{d.delete(_)})},s.skipHydration||w(),S||v},ZU=$U;function YU(e){const{storage:t,delayMs:n,attachLifecycleFlush:r=!0}=e;let a=null,s=null;const l=()=>{if(s!==null&&(clearTimeout(s),s=null),a===null)return;const{key:f,value:h}=a;a=null;try{t.setItem(f,h)}catch{}};return r&&typeof window<"u"&&(window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&l()})),{getItem:f=>t.getItem(f),setItem:(f,h)=>{a={key:f,value:h},s!==null&&clearTimeout(s),s=setTimeout(l,n)},removeItem:f=>(a!==null&&a.key===f&&(a=null,s!==null&&(clearTimeout(s),s=null)),t.removeItem(f)),__flush:l}}const GU="tonex-theme-v1",kg=.005,qU=200,Sx=typeof window>"u"?null:YU({storage:localStorage,delayMs:qU});function ph(e){const{_hydrated:t,actions:n,...r}=e;return r}const gh=UU()(ZU(e=>({...ex,_hydrated:!1,actions:{setSeedHex:t=>e(n=>n.seedHexLock?{}:t===jU(n)?{seedTouched:!0}:{seed:{...hb(t),exactHex:t},seedTouched:!0}),setSeedHue:t=>e(n=>n.seedHexLock?{}:Math.abs(t-n.seed.hue)<kg?{seedTouched:!0}:{seed:{hue:t,chroma:n.seed.chroma,tone:n.seed.tone},seedTouched:!0}),setSeedChroma:t=>e(n=>n.seedHexLock?{}:Math.abs(t-n.seed.chroma)<kg?{seedTouched:!0}:{seed:{hue:n.seed.hue,chroma:t,tone:n.seed.tone},seedTouched:!0}),setSeedTone:t=>e(n=>n.seedHexLock?{}:Math.abs(t-n.seed.tone)<kg?{seedTouched:!0}:{seed:{hue:n.seed.hue,chroma:n.seed.chroma,tone:t},seedTouched:!0}),setVariant:t=>e({variant:t}),setContrastLevel:(t,n)=>e(r=>({contrastLevel:{...r.contrastLevel,[t]:Math.max(0,Math.min(1,n))},contrastTouched:!0})),setSeedHexLock:t=>e({seedHexLock:t}),setMd3TokenOverride:(t,n,r)=>e(a=>{const s={...a.md3TokenOverrides[t]};return r===null?delete s[n]:s[n]=r,{md3TokenOverrides:{...a.md3TokenOverrides,[t]:s}}}),setShadcnRoleBinding:(t,n,r)=>e(a=>({shadcnRoleBindings:{...a.shadcnRoleBindings,[t]:{...a.shadcnRoleBindings[t],[n]:r}}})),setShadcnPreset:(t,n)=>e(r=>FU(r,Go[t],n)),setShadcnBindingPreset:t=>e(n=>{const{light:r,dark:a}=BU[t].shadcnRoleBindings,s={light:{...r},dark:{...a}};return{shadcnRoleBindings:r8(n.shadcnRoleBindings)?o8(s):s}}),setShadcnRoleOverride:(t,n,r)=>e(a=>{const s={...a.shadcnRoleOverrides[t]};if(r===null)delete s[n];
16else{if(!rc(r))throw new Error(`[setShadcnRoleOverride] invalid hex "${r}"`);s[n]=r}return{shadcnRoleOverrides:{...a.shadcnRoleOverrides,[t]:s}}}),setShadcnChartOverride:(t,n,r)=>e(a=>{const s={...a.shadcnChartOverrides[t]};if(r===null)delete s[n];else{if(!rc(r))throw new Error(`[setShadcnChartOverride] invalid hex "${r}"`);s[n]=r}return{shadcnChartOverrides:{...a.shadcnChartOverrides,[t]:s}}}),setSurfaceAlgo:t=>e({surfaceAlgo:t}),setSurfacePaletteName:(t,n)=>e(r=>({surfacePaletteName:{...r.surfacePaletteName,[t]:n}})),setSurfaceTintLevel:(t,n)=>e(r=>({surfaceTintLevel:{...r.surfaceTintLevel,[t]:n}})),setSurfaceTintTextLevel:(t,n)=>e(r=>({surfaceTintTextLevel:{...r.surfaceTintTextLevel,[t]:n}})),setSurfaceDesaturateLevel:(t,n)=>e(r=>({surfaceDesaturateLevel:{...r.surfaceDesaturateLevel,[t]:n}})),addCustomColor:t=>e(n=>{const r=new Set(n.customColors.map(s=>hu(s.name))),a=Ey(t,r);if(a!==null)throw new Error(`[addCustomColor] ${a}`);return{customColors:[...n.customColors,t]}}),updateCustomColor:(t,n)=>e(r=>{const a=r.customColors.find(h=>h.id===t);if(a===void 0)throw new Error(`[updateCustomColor] no entry with id ${t}`);const s={...a,...n},l=new Set(r.customColors.filter(h=>h.id!==t).map(h=>hu(h.name))),f=Ey(s,l);if(f!==null)throw new Error(`[updateCustomColor] ${f}`);return{customColors:r.customColors.map(h=>h.id===t?s:h)}}),removeCustomColor:t=>e(n=>({customColors:n.customColors.filter(r=>r.id!==t)})),setPaletteOverride:(t,n)=>e(r=>{if(Qk(t,r)!==null)return{};const a={...r.paletteOverrides};if(n===null)delete a[t];else{if(!rc(n))throw new Error(`[setPaletteOverride] invalid hex "${n}"`);a[t]=n}return{paletteOverrides:a}}),setCmfSecondSourceHex:t=>e(n=>{if(Wk(n)!==null)return{};if(t!==null&&!rc(t))throw new Error(`[setCmfSecondSourceHex] invalid hex "${t}"`);return{cmfSecondSourceHex:t}}),setChartScheme:t=>e(n=>({chart:{...n.chart,scheme:t}})),setChartHueSpread:t=>e(n=>({chart:{...n.chart,hueSpread:t}})),setChartHueAnchor:t=>e(n=>({chart:{...n.chart,hueAnchor:t}})),setHydrated:()=>e({_hydrated:!0}),reset:()=>e({...ex})}}),{name:GU,version:pb,storage:Sx===null?void 0:a8(()=>Sx),partialize:ph,migrate:(e,t)=>
16e,onRehydrateStorage:()=>(e,t)=>{if(e===void 0||t!==void 0)return;mU(ph(e)).ok||e.actions.reset(),e.actions.setHydrated()}})),Yl={function:"primary",keyword:"hue(265)",attribute:"@type",type:"hue(45)",string:"hue(130)",escape:"@string",number:"hue(25)",parameter:"@number",property:"secondary",tag:"@function",operator:"secondary",punctuation:"on-surface-variant",comment:"outline",invalid:"error","markup.heading":"@keyword","markup.bold":"@fg","markup.italic":"@fg","markup.raw":"@string","markup.list":"@string","markup.link":"@function","markup.quote":"@comment","markup.inserted":"@string","markup.deleted":"@invalid","markup.changed":"@number","css.class-selector":"@string","css.property-value":"@string"};function XU(){return Object.values(Yl).some(e=>e.startsWith("hue("))}const wx="on-surface",xx=new WeakMap;function KU(e){const t=xx.get(e);if(t!==void 0)return t;const n={...e,chart:{...e.chart,...NU("polychrome")}};return xx.set(e,n),n}function _x(e,t){const n=new Map;for(const r of[e.md[t],e.md[`${t}Chart`]])for(const[a,s]of Object.entries(r??{}))n.set(a.replace(/^--color-/,"").replace(/^chart(\d)$/,"chart-$1"),s);return n}function md(e){const{r:t,g:n,b:r}=t0(e),a=Math.max(t,n,r),s=Math.min(t,n,r);if(a===s)return null;const l=a-s;return((a===t?(n-r)/l%6:a===n?(r-t)/l+2:(t-n)/l+4)*60+360)%360}function JU(e){const{r:t,g:n,b:r}=t0(e),a=Math.max(t,n,r),s=Math.min(t,n,r);return a===0?0:(a-s)/a}function Eg(e,t){const n=Math.abs(e-t)%360;return Math.min(n,360-n)}function QU(e,t){const n=r=>[...e.keys()].filter(a=>!/^on-|surface|outline/.test(a)&&a!=="error"&&a!=="secondary"&&!/-container|-fixed|-dim/.test(a)&&!t.has(a)&&JU(e.get(a))>=r);return n(.12).length>0?n(.12):n(0)}function WU(e,t){const n=[...new Set(Object.values(Yl).filter(p=>p.startsWith("hue(")).map(p=>Number(p.slice(4,-1))))];if(n.length===0)return new Map;const r=QU(e,t),a=[...t].filter(p=>p!=="error").map(p=>e.get(p)).filter(p=>p!==void 0).map(p=>md(p)).filter(p=>p!==null),s=p=>{const y=md(e.get(p));return y===null||a.every(b=>Eg(y,b)>=30)},l=new Map,f=new Set,h=(p,y)=>{let b=null;for(const v of y){if(f.has(v))continue;const S=md(e.get(v));if(S===null)continue;const w=Eg(p,S);(b===null||w<b.dist)&&(b={name:v,dist:w})}b!==null&&(l.set(p,b.name),f.add(b.name))},d=[];for(const p of n)for(const y of r.filter(s)){const b=md(e.get(y));b!==null&&d.push({target:p,name:y,dist:Eg(p,b)})}d.sort((p,y)=>p.dist-y.dist);for(const p of d)!l.has(p.target)&&!f.has(p.name)&&(l.set(p.target,p.name),f.add(p.name));for(const p of n)l.has(p)||h(p,r);return l}function e$(e){const t=_x(e,"light"),n=_x(e,"dark"),r=new Set(Object.values(Yl).filter(f=>!f.startsWith("hue(")&&!f.startsWith("@"))),a=WU(n,r),s=(f,h=new Set)=>{if(!h.has(f)){if(h.add(f),f.startsWith("@")){const d=f.slice(1);if(d==="fg")return wx;const p=Yl[d];return p===void 0?void 0:s(p,h)}return f.startsWith("hue(")?a.get(Number(f.slice(4,-1)))??"primary":f}},l={light:{},dark:{}};for(const f of["light","dark"]){const h=f==="light"?t:n;l[f].fg=h.get(wx);for(const[d,p]of Object.entries(Yl)){const y=s(p),b=y!==void 0?h.get(y):void 0;b!==void 0&&(l[f][d]=b)}}return l}const Tx="tonex-syntax-tokens",pd=[":root","html.dark"];function t$(){if(typeof window>"u")return()=>{};const{rules:e}=n$();let t="";const n=()=>{const r=gh.getState();if(!r._hydrated)return;const a=ph(r),s=t8(XU()?KU(a):a),l=e$(s),f=JSON.stringify(l);if(f!==t){t=f;for(const h of["light","dark"]){const d=e[h==="light"?":root":"html.dark"];for(const[p,y]of Object.entries(l[h]))d.style.setProperty(`--syntax-${p}`,fb(y))}}};return n(),gh.subscribe(n)}function n$(){const e=document.getElementById(Tx);let t;e instanceof HTMLStyleElement?t=e:(t=document.createElement("style"),t.id=Tx,document.head.appendChild(t));const n={},r=()=>{const a=t.sheet;if(a!==null)for(let s=0;s<a.cssRules.length;s++){const l=a.cssRules[s];l instanceof CSSStyleRule&&pd.includes(l.selectorText)&&(n[l.selectorText]=l)}};r(),pd.every(a=>n[a]!==void 0)||(t.textContent=pd.map(a=>`${a} {}`).join(` 17`),r());for(const a of pd)if(n[a]===void 0)throw new Error(`[applySyntaxDom] failed to scaffold scope rule "${a}"`);return{el:t,rules:n}}const kx="tonex-tokens",i8="tonex-tokens-css",r$="tonex-tokens-boot";let gd;function o$(e,t){gd!==void 0&&clearTimeout(gd),gd=setTimeout(()=>{gd=void 0;try{const n=(r,a)=>`${r}{${Object.entries(a).map(([s,l])=>`${s}:${fb(l)}`).join(";")}}`;localStorage.setItem(i8,n(":root",e)+n("html.dark",t))}catch{}},200)}const yd=[":root","html.dark"];let Cg=!1;function a$(){if(typeof window>"u")return()=>{};const{rules:e}=i$(),t={":root":{},"html.dark":{}},n=()=>{const r=gh.getState();if(r._hydrated){if(!r.seedTouched){if(Cg){bd(e[":root"],t[":root"],{}),bd(e["html.dark"],t["html.dark"],{}),Cg=!1,document.getElementById(r$)?.remove();try{localStorage.removeItem(i8)}catch{}}return}try{const a=t8(ph(r));bd(e[":root"],t[":root"],Ex(a.md.light,a.md.lightExtended,a.md.lightChart)),bd(e["html.dark"],t["html.dark"],Ex(a.md.dark,a.md.darkExtended,a.md.darkChart)),Cg=!0,o$(t[":root"],t["html.dark"])}catch(a){const s=a instanceof Error?a.message:String(a);throw new Error(`[applyDom] deriveTheme failed: ${s}`,{cause:a})}}};return n(),gh.subscribe(n)}function Ex(...e){const t={};for(const n of e)for(const[r,a]of Object.entries(n))t[r.replace(/^--color-/,"--")]=a;return t}function i$(){const e=document.getElementById(kx);let t;e instanceof HTMLStyleElement?t=e:(t=document.createElement("style"),t.id=kx,document.head.appendChild(t));const n={},r=()=>{const s=t.sheet;if(s!==null)for(let l=0;l<s.cssRules.length;l++){const f=s.cssRules[l];f instanceof CSSStyleRule&&yd.includes(f.selectorText)&&(n[f.selectorText]=f)}};if(r(),yd.every(s=>n[s]!==void 0)||(t.textContent=yd.map(s=>`${s} {}`).join(` 18`),r()),t.sheet===null)throw new Error("[applyDom] style element has no CSSStyleSheet â DOM not ready");for(const s of yd)if(n[s]===void 0)throw new Error(`[applyDom] failed to scaffold scope rule "${s}"`);return{el:t,rules:n}}function bd(e,t,n){const r=Object.keys(t).length;for(const a of Object.keys(n)){const s=n[a];s!==void 0&&t[a]!==s&&(e.style.setProperty(a,fb(s)),t[a]=s)}if(!(Object.keys(t).length===r&&r===Object.keys(n).length))for(const a of Object.keys(t))a in n||(e.style.removeProperty(a),delete t[a])}function s$(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function c$(e,t){e.indexOf(t)===-1&&e.push(t)}function l$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const s8=(e,t,n)=>n>t?t:n<e?e:n;let u$=()=>{};const c8={},f$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),d$=e=>/^0[^.\s]+$/u.test(e);function h$(e){let t;return()=>(t===void 0&&(t=e()),t)}const l8=e=>e;class u8{constructor(){this.subscriptions=[]}add(t){return c$(this.subscriptions,t),()=>l$(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const f8=e=>e*1e3,Ag=e=>e/1e3,m$=(e,t)=>t?e*(1e3/t):0,p$=e=>Array.isArray(e)&&typeof e[0]=="number",vd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function g$(e){let t=new Set,n=new Set,r=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function f(d){s.has(d)&&(h.schedule(d),e()),d(l)}const h={schedule:(d,p=!1,y=!1)=>{const v=y&&r?t:n;return p&&s.add(d),v.add(d),d},cancel:d=>
18{n.delete(d),s.delete(d)},process:d=>{if(l=d,r){a=!0;return}r=!0;const p=t;t=n,n=p,t.forEach(f),t.clear(),r=!1,a&&(a=!1,h.process(d))}};return h}const y$=40;function d8(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=vd.reduce((C,R)=>(C[R]=g$(s),C),{}),{setup:f,read:h,resolveKeyframes:d,preUpdate:p,update:y,preRender:b,render:v,postRender:S}=l,w=()=>{const C=c8.useManualTiming,R=C?a.timestamp:performance.now();n=!1,C||(a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,y$),1)),a.timestamp=R,a.isProcessing=!0,f.process(a),h.process(a),d.process(a),p.process(a),y.process(a),b.process(a),v.process(a),S.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(w))},_=()=>{n=!0,r=!0,a.isProcessing||e(w)};return{schedule:vd.reduce((C,R)=>{const z=l[R];return C[R]=(P,M=!1,k=!1)=>(n||_(),z.schedule(P,M,k)),C},{}),cancel:C=>{for(let R=0;R<vd.length;R++)l[vd[R]].cancel(C)},state:a,steps:l}}const{schedule:mu,cancel:Cx,state:Ax,steps:VQ}=d8(typeof requestAnimationFrame<"u"?requestAnimationFrame:l8,!0);let Bd;function b$(){Bd=void 0}const Gl={now:()=>(Bd===void 0&&Gl.set(Ax.isProcessing||c8.useManualTiming?Ax.timestamp:performance.now()),Bd),set:e=>{Bd=e,queueMicrotask(b$)}},Ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pu={...Ac,transform:e=>s8(0,1,e)},Sd={...Ac,default:1},ql=e=>Math.round(e*1e5)/1e5,gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function v$(e){return e==null}const S$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yb=(e,t)=>n=>!!(typeof n=="string"&&S$.test(n)&&n.startsWith(e)||t&&!v$(n)&&Object.prototype.hasOwnProperty.call(n,t)),h8=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,f]=r.match(gb);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:f!==void 0?parseFloat(f):1}},w$=e=>s8(0,255,e),Rg={...Ac,transform:e=>Math.round(w$(e))},Pl={test:yb("rgb","red"),parse:h8("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Rg.transform(e)+", "+Rg.transform(t)+", "+Rg.transform(n)+", "+ql(pu.transform(r))+")"};function x$(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Rx={test:yb("#"),parse:x$,transform:Pl.transform},Eu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Eu("deg"),hc=Eu("%"),Re=Eu("px"),_$=Eu("vh"),T$=Eu("vw"),Mx={...hc,parse:e=>hc.parse(e)/100,transform:e=>hc.transform(e*100)},wd={test:yb("hsl","hue"),parse:h8("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+hc.transform(ql(t))+", "+hc.transform(ql(n))+", "+ql(pu.transform(r))+")"},En={test:e=>Pl.test(e)||Rx.test(e)||wd.test(e),parse:e=>Pl.test(e)?Pl.parse(e):wd.test(e)?wd.parse(e):Rx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pl.transform(e):wd.transform(e),getAnimatableNone:e=>{const t=En.parse(e);return t.alpha=0,En.transform(t)}},k$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function E$(e){return isNaN(e)&&typeof e=="string"&&(e.match(gb)?.length||0)+(e.match(k$)?.length||0)>0}const m8="number",p8="color",C$="var",A$="var(",Ox="${}",R$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bb(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const f=t.replace(R$,h=>(En.test(h)?(r.color.push(s),a.push(p8),n.push(En.parse(h))):h.startsWith(A$)?(r.var.push(s),a.push(C$),n.push(h)):(r.number.push(s),a.push(m8),n.push(parseFloat(h))),++s,Ox)).split(Ox);return{values:n,split:f,indexes:r,types:a}}function M$(e){return bb(e).values}function g8({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;
18s++)if(a+=e[s],r[s]!==void 0){const l=t[s];l===m8?a+=ql(r[s]):l===p8?a+=En.transform(r[s]):a+=r[s]}return a}}function O$(e){return g8(bb(e))}const P$=e=>typeof e=="number"?0:En.test(e)?En.getAnimatableNone(e):e,z$=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:P$(e);function D$(e){const t=bb(e);return g8(t)(t.values.map((r,a)=>z$(r,t.split[a])))}const Ji={test:E$,parse:M$,createTransformer:O$,getAnimatableNone:D$},N$=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},L$=e=>e!==null;function j$(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(L$),f=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!f||r===void 0?s[f]:r}class B${constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}function F$(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Yi=e=>e*180/Math.PI,Ry=e=>{const t=Yi(Math.atan2(e[1],e[0]));return My(t)},I$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ry,rotateZ:Ry,skewX:e=>Yi(Math.atan(e[1])),skewY:e=>Yi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},My=e=>(e=e%360,e<0&&(e+=360),e),Px=Ry,zx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Dx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),H$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zx,scaleY:Dx,scale:e=>(zx(e)+Dx(e))/2,rotateX:e=>My(Yi(Math.atan2(e[6],e[5]))),rotateY:e=>My(Yi(Math.atan2(-e[2],e[0]))),rotateZ:Px,rotate:Px,skewX:e=>Yi(Math.atan(e[4])),skewY:e=>Yi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nx(e){return e.includes("scale")?1:0}function Oy(e,t){if(!e||e==="none")return Nx(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=H$,a=n;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=I$,a=f}if(!a)return Nx(t);const s=r[t],l=a[1].split(",").map(V$);return typeof s=="function"?s(l):l[s]}const UQ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Oy(n,t)};function V$(e){return parseFloat(e.trim())}const y8=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U$=new Set([...y8,"pathRotation"]),$Q=e=>e===Ac||e===Re,$$=new Set(["x","y","z"]),Z$=y8.filter(e=>!$$.has(e));function Y$(e){const t=[];return Z$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Oy(t,"x"),y:(e,{transform:t})=>Oy(t,"y")};yh.translateX=yh.x;yh.translateY=yh.y;const Qi=new Set;let Py=!1,zy=!1,Dy=!1;function b8(){if(zy){const e=Array.from(Qi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=Y$(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zy=!1,Py=!1,Qi.forEach(e=>e.complete(Dy)),Qi.clear()}function v8(){Qi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zy=!0)})}function ZQ(){Dy=!0,v8(),b8(),Dy=!1}class G${constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Qi.add(this),Py||(Py=!0,mu.read(v8),mu.resolveKeyframes(b8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const f=r.readValue(n,l);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}F$(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qi.delete(this)}cancel(){this.state==="scheduled"&&(Qi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const q$=e=>e.startsWith("--");
18function X$(e,t,n){q$(t)?e.style.setProperty(t,n):e.style[t]=n}const K$={};function vb(e,t){const n=h$(e);return()=>K$[t]??n()}const J$=vb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),YQ=vb(()=>window.ViewTimeline!==void 0,"viewTimeline"),S8=vb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Lx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zl([0,.65,.55,1]),circOut:zl([.55,0,1,.45]),backIn:zl([.31,.01,.66,-.59]),backOut:zl([.33,1.53,.69,.99])};function w8(e,t){if(e)return typeof e=="function"?S8()?N$(e,t):"ease-out":p$(e)?zl(e):Array.isArray(e)?e.map(n=>w8(n,t)||Lx.easeOut):Lx[e]}function Q$(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:f="easeOut",times:h}={},d=void 0){const p={[t]:n};h&&(p.offset=h);const y=w8(f,a);Array.isArray(y)&&(p.easing=y);const b={delay:r,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return d&&(b.pseudoElement=d),e.animate(p,b)}function W$(e){return typeof e=="function"&&"applyToOptions"in e}function eZ({type:e,...t}){return W$(e)&&S8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class tZ extends B${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,u$(typeof t.type!="string");const d=eZ(t);this.animation=Q$(n,r,a,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=j$(a,this.options,f,this.speed);this.updateMotionValue&&this.updateMotionValue(p),X$(n,r,p),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ag(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ag(t)}get time(){return Ag(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=f8(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&J$()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),l8):a(this)}}const nZ=new Set(["opacity","clipPath","filter","transform"]),jx=30,rZ=e=>!isNaN(parseFloat(e));class oZ{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Gl.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gl.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rZ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new u8);const r=this.events[t].add(n);return t==="change"?()=>{r(),mu.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gl.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jx);return m$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ny(e,t){return new oZ(e,t)}function aZ(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Bx(e){const t=[{},{}];
18return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function iZ(e,t,n,r){if(typeof t=="function"){const[a,s]=Bx(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=Bx(r);t=t(n!==void 0?n:e.custom,a,s)}return t}const Gi=e=>!!(e&&e.getVelocity),sZ={test:e=>e==="auto",parse:e=>e},x8=e=>t=>t.test(e),_8=[Ac,Re,hc,Yo,T$,_$,sZ],GQ=e=>_8.find(x8(e)),cZ=new Set(["brightness","contrast","saturate","opacity"]);function lZ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gb)||[];if(!r)return e;const a=n.replace(r,"");let s=cZ.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const uZ=/\b([a-z-]*)\(.*?\)/gu,Ly={...Ji,getAnimatableNone:e=>{const t=e.match(uZ);return t?t.map(lZ).join(" "):e}},jy={...Ji,getAnimatableNone:e=>{const t=Ji.parse(e);return Ji.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Fx={...Ac,transform:Math.round},fZ={rotate:Yo,pathRotation:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:Sd,scaleX:Sd,scaleY:Sd,scaleZ:Sd,skew:Yo,skewX:Yo,skewY:Yo,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:pu,originX:Mx,originY:Mx,originZ:Re},dZ={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,top:Re,right:Re,bottom:Re,left:Re,inset:Re,insetBlock:Re,insetBlockStart:Re,insetBlockEnd:Re,insetInline:Re,insetInlineStart:Re,insetInlineEnd:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,paddingBlock:Re,paddingBlockStart:Re,paddingBlockEnd:Re,paddingInline:Re,paddingInlineStart:Re,paddingInlineEnd:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,marginBlock:Re,marginBlockStart:Re,marginBlockEnd:Re,marginInline:Re,marginInlineStart:Re,marginInlineEnd:Re,fontSize:Re,backgroundPositionX:Re,backgroundPositionY:Re,...fZ,zIndex:Fx,fillOpacity:pu,strokeOpacity:pu,numOctaves:Fx},hZ={...dZ,color:En,backgroundColor:En,outlineColor:En,fill:En,stroke:En,borderColor:En,borderTopColor:En,borderRightColor:En,borderBottomColor:En,borderLeftColor:En,filter:Ly,WebkitFilter:Ly,mask:jy,WebkitMask:jy},mZ=e=>hZ[e],pZ=new Set([Ly,jy]);function gZ(e,t){let n=mZ(e);return pZ.has(n)||(n=Ji),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const{schedule:yZ,cancel:qQ}=d8(queueMicrotask,!1),bZ=[..._8,En,Ji],vZ=e=>bZ.find(x8(e)),Ix=()=>({translate:0,scale:1,origin:0,originPoint:0}),XQ=()=>({x:Ix(),y:Ix()}),Hx=()=>({min:0,max:0}),SZ=()=>({x:Hx(),y:Hx()}),wZ=new WeakMap;function xZ(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _Z(e){return typeof e=="string"||Array.isArray(e)}const TZ=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kZ=["initial",...TZ];function T8(e){return xZ(e.animate)||kZ.some(t=>_Z(e[t]))}function EZ(e){return!!(T8(e)||e.variants)}function CZ(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Gi(a))e.addValue(r,a);else if(Gi(s))e.addValue(r,Ny(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,Ny(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const By={current:null},k8={current:!1},AZ=typeof window<"u";function RZ(){if(k8.current=!0,!!AZ)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>By.current=e.matches;e.addEventListener("change",t),t()}else By.current=!1}const Vx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bh={};function E8(e){bh=e}function MZ(){return bh}class KQ{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:l,visualState:f},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=G$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Gl.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,mu.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=f;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=T8(n),this.isVariantNode=EZ(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in b){const S=b[v];d[v]!==void 0&&Gi(S)&&S.set(d[v])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,wZ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
18h((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(k8.current||RZ(),this.shouldReduceMotion=By.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Cx(this.notifyUpdate),Cx(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&nZ.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:f,times:h,ease:d,duration:p}=n.accelerate,y=new tZ({element:this.current,name:t,keyframes:f,times:h,ease:d,duration:f8(p)}),b=l(y);this.valueSubscriptions.set(t,()=>{b(),y.cancel()});return}const r=U$.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&mu.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in bh){const n=bh[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):SZ()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Vx.length;r++){const a=Vx[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=CZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ny(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(f$(r)||d$(r))?r=parseFloat(r):!vZ(r)&&Ji.test(n)&&(r=gZ(t,n)),this.setBaseTarget(t,Gi(r)?r.get():r)),Gi(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=iZ(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Gi(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u8),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){yZ.render(this.render)}}const Ux=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),OZ=O.createContext({strict:!1}),$x={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Zx=!1;function PZ(){if(Zx)return;const e={};for(const t in $x)e[t]={isEnabled:n=>$x[t].some(r=>!!n[r])};E8(e),Zx=!0}function zZ(){return PZ(),MZ()}function Yx(e){const t=zZ();for(const n in e)t[n]={...t[n],...e[n]};E8(t)}function DZ({children:e,features:t,strict:n=!1}){const[,r]=O.useState(!Mg(t)),a=O.useRef(void 0);if(!Mg(t)){const{renderer:s,...l}=t;a.current=s,Yx(l)}return O.useEffect(()=>{Mg(t)&&t().then(({renderer:s,...l})=>{Yx(l),a.current=s,r(!0)})},[]),I.jsx(OZ.Provider,{value:{renderer:a.current,strict:n},children:e})}function Mg(e){return typeof e=="function"}const NZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function vh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||NZ.has(e)}let C8=e=>!vh(e);function A8(e){typeof e=="function"&&(C8=t=>t.startsWith("on")?!vh(t):e(t))}try{A8(require("@emotion/is-prop-valid").default)}catch{}function JQ(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||Gi(e[a])||(C8(a)||n===!0&&vh(a)||!t&&!vh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function LZ({children:e,isValidProp:t,...n}){t&&A8(t);const r=O.useContext(Ux);n={...r,...n},n.transition=aZ(n.transition,r.transition),n.isStatic=s$(()=>n.isStatic);const a=O.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return I.jsx(Ux.Provider,{value:a,children:e})}const jZ="/assets/styles-9jdj6gLi.css",BZ=()=>eo(()=>import("./motion-features-rnfaEvpH.js"),__vite__mapDeps([38,39,40,41])).then(e=>e.default),R8=EO({loader:()=>NF(),head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"theme-color",media:"(prefers-color-scheme: light)",content:"#ffffff"},{name:"theme-color",media:"(prefers-color-scheme: dark)",content:"#0a0a0a"},{title:Ze.name},{name:"description",content:Ze.description},{name:"author",content:Ze.author},{name:"keywords",content:Ze.keywords.join(", ")},{property:"og:type",content:"website"},{property:"og:site_name",content:Ze.name},{property:"og:url",content:Ze.url},{property:"og:title",content:Ze.name},{property:"og:description",content:Ze.description},{property:"og:image",content:`${Ze.url}/og-image.png`},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:Ze.name},{name:"twitter:description",content:Ze.description},{name:"twitter:image",content:`${Ze.url}/og-image.png`}],links:[{rel:"stylesheet",href:jZ},{rel:"icon",href:Ze.favicon},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"canonical",href:Ze.url}]}),notFoundComponent:()=>I.jsx(ZN,{}),errorComponent:FZ,shellComponent:IZ});function FZ({error:e}){const t=vu(),n=e instanceof Error&&e.message?e.message:"";return I.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] space-y-4 p-8",children:[I.jsx("h1",{className:"text-2xl font-bold",children:t.error.title}),I.jsx("p",{className:"text-error",children:n||t.error.fallback}),I.jsx(di,{to:"/{-$locale}",params:r=>({locale:r.locale}),className:"text-primary underline",children:t.error.goHome})]})}function IZ({children:e}){const t=w1({select:n=>h_(n.location.pathname)});return O.useEffect(()=>a$(),[]),O.useEffect(()=>t$(),[]),I.jsxs("html",{lang:t==="zh"?"zh-CN":"en",suppressHydrationWarning:!0,children:[I.jsx("head",{children:I.jsx($O,{})}),I.jsxs("body",{suppressHydrationWarning:!0,children:[I.jsx("script",{dangerouslySetInnerHTML:{__html:'(function(){try{var c=localStorage.getItem("tonex-tokens-css");if(!c)return;var s=document.createElement("style");s.id="tonex-tokens-boot";s.textContent=c;document.head.appendChild(s);}catch(e){}})();'}}),I.jsxs(GN,{children:[I.jsx(DZ,{features:BZ,strict:!0,children:I.jsx(LZ,{reducedMotion:"user",children:I.jsx(WP,{children:I.jsx(tz,{children:I.jsxs("div",{className:"root flex flex-col min-h-dvh",children:[I.jsx($N,{}),I.jsx("div",{className:"flex-1",children:e}),I.jsx(ez,{})]})})})})}),I.jsx(TF,{})]}),I.jsx(ZO,{})]})]})}const HZ=()=>eo(()=>import("./_-_locale_-rPbeGPQH.js"),[]),VZ=Sc()({beforeLoad:({params:e})=>
18{if(e.locale!==void 0&&e.locale!=="zh")throw kh()},component:wc(HZ,"component")}),UZ=()=>eo(()=>import("./index-CH5SyBf6.js"),__vite__mapDeps([42,43,44,45,46,47,39,30,48])),$Z=Sc()({component:wc(UZ,"component"),head:({params:e})=>{const t=Dh(iu(e.locale)).meta;return{meta:[{title:Ze.name},{name:"description",content:t.homeDescription}]}}}),ZZ=()=>eo(()=>import("./projects-CqjkmjgR.js"),__vite__mapDeps([49,43,21,44,45,48])),YZ=Sc()({head:({params:e})=>{const t=Dh(iu(e.locale)).meta;return{meta:[{title:t.projectsTitle},{name:"description",content:t.projectsDescription},{property:"og:title",content:t.projectsTitle},{property:"og:description",content:t.projectsDescription}]}},component:wc(ZZ,"component")}),GZ=()=>eo(()=>import("./privacy-UFE_giyu.js"),[]),qZ=Sc()({component:wc(GZ,"component"),head:()=>({meta:[{title:"Privacy Policy â Docknote"},{name:"description",content:"Docknote privacy policy"}]})});function Fy(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function Gx(e,t="|"){return e.map(n=>N8(n)).join(t)}function Iy(e,t){return typeof t=="bigint"?t.toString():t}class XZ{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function Sb(e){return new XZ(e)}function KZ(e){return e==null}function wb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ms(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function M8(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function fa(e){return M8(e._zod.def)??e._zod.def.shape}function O8(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return ms(this,t,r),r},enumerable:!0,configurable:!0})}function P8(e,t,n){t in e?ms(e,t,n):e[t]=n}function as(e,t,n,r){const a=fa(t);for(const s of n){const l=Object.getOwnPropertyDescriptor(a,s);l.enumerable&&(l.get?O8(e,s,()=>{const f=t._zod.def.shape[s];return r?r(f,s):f}):P8(e,s,r?r(l.value,s):l.value))}}function JZ(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?O8(e,n,()=>t[n]):P8(e,n,r.value))}}function _r(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function QZ(e){return JSON.stringify(e)}function WZ(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const z8="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Sh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const eY=Sb(()=>{if(vo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function gu(e){if(Sh(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Sh(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function D8(e){return gu(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const tY=new Set(["string","number","symbol"]);function r0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gi(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Fe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function N8(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function nY(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const rY={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},oY={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function aY(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s={};return as(s,e,o0(e,t)),gi(e,_r(n,{shape:s,checks:[]}))}function o0(e,t){const n=fa(e),r=[];for(const a of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,a)?.enumerable)throw new Error(`Unrecognized key: "${String(a)}"`);t[a]&&r.push(a)}return r}function iY(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=new Set(o0(e,t)),l={};return as(l,e,Reflect.ownKeys(fa(e)).filter(f=>!s.has(f))),gi(e,_r(n,{shape:l,checks:[]}))}function sY(e,t){if(!gu(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=fa(e);for(const s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(a,s)!==void 0)throw new Error("Cannot over
18write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return gi(e,_r(e._zod.def,{shape:L8(e,t)}))}function L8(e,t){const n={};return as(n,e,Reflect.ownKeys(fa(e))),JZ(n,t),n}function cY(e,t){if(!gu(t))throw new Error("Invalid input to safeExtend: expected a plain object");return gi(e,_r(e._zod.def,{shape:L8(e,t)}))}function lY(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};as(n,e,Reflect.ownKeys(fa(e))),as(n,t,Reflect.ownKeys(fa(t)));const r=_r(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return gi(e,r)}function qx(e,t,n,r="partial"){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const f=n?new Set(o0(t,n)):void 0,h={};return as(h,t,Reflect.ownKeys(fa(t)),e&&((d,p)=>f&&!f.has(p)?d:new e({type:"optional",innerType:d}))),gi(t,_r(t._zod.def,{shape:h,checks:[]}))}function uY(e,t,n){const r=n?new Set(o0(t,n)):void 0,a={};return as(a,t,Reflect.ownKeys(fa(t)),(s,l)=>r&&!r.has(l)?s:new e({type:"nonoptional",innerType:s})),gi(t,_r(t._zod.def,{shape:a}))}function Qo(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fY(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function j8(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Rl(e){return typeof e=="string"?e:e?.message}function Xx(e,t,n){var r;for(let a=t;a<e.length;a++)(r=e[a]).schema??(r.schema=n)}function Rc(e,t,n){var r;const a=e.inst?._zod?.traits;a?.has("$ZodType")&&(a.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,l=e.message?e.message:Rl(e.inst?._zod.def?.error?.(e))??Rl(s?.(e))??Rl(t?.error?.(e))??Rl(n.customError?.(e))??Rl(n.localeError?.(e))??"Invalid input",f={};for(const h of Object.keys(e))h==="inst"||h==="schema"||h==="continue"||h==="input"||h==="__proto__"||(f[h]=e[h]);return f.path??(f.path=[]),f.message=l,t?.reportInput&&(f.input=e.input),f}const dY=/[\uD800-\uDBFF]/;function xb(e){const t=e.length;if(!dY.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function _b(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function hY(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function yu(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function mY(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Kx(e,n,r.value)}for(const n of Object.getOwnPropertySymbols(t))Kx(e,n,t[n])}function si(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function B8(e,t,n){return si(e,t,n,!1)}function pY(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return si(this,n,r(this))},set(a){si(this,n,a)}})}return t}function Kx(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:si(this,t,n.bind(this))},set(r){si(this,t,r)}})}function gY(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Og,qa=!1;const yY={configurable:!0,get(){qa=!0}};function Ct(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Og!==e._zod){Og=void 0;return}Og=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,yY);const a=qa;qa=!1;try{const s=n(this);return qa?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),qa=qa||a,s}catch(s){throw delete this[t],qa=qa||a,s}},set(a){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:a})}})}function bY(e,t,n,r){const a=gY(e,t);a&&Object.defineProperty(a,t,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:r,value:void 0};
18return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:s})}})}const vY="~constantCatch";function SY(e){const t=()=>e;return t[vY]=!0,t}var Jx;const Pg={value:void 0,enumerable:!1};let Qx="captureStackTrace"in Error?Error:null;function wY(e){const t=Qx;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Qx=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function le(e,t,n,r){const a={};function s(b){this.def=b,this.constr=y,this.traits=new Set}s.prototype=a;const l=n,f=l&&new WeakSet;function h(b,v){if(!b._zod){Pg.value=new s(v);try{Object.defineProperty(b,"_zod",Pg)}finally{Pg.value=void 0}}if(b._zod.traits.has(e))return;if(b._zod.traits.add(e),t(b,v),f){const w=Object.getPrototypeOf(b),_=b._zod.constr.prototype;let A=w;for(;A&&A!==_;)A=Object.getPrototypeOf(A);const E=A??w;f.has(E)||(f.add(E),mY(E,l))}const S=y.prototype;for(const w in S)Object.prototype.hasOwnProperty.call(S,w)&&(w in b||(b[w]=S[w].bind(b)))}const d=r?.Parent??Object;class p extends d{}Object.defineProperty(p,"name",{value:e});function y(b){const v=r?.Parent?wY(p):this;h(v,b);const S=v._zod.deferred;if(S){for(const _ of S)_();v._zod.deferred=void 0}const w=globalThis.__zod_globalConfig?.postProcessor;return w&&w(v),v}return Object.defineProperty(y,"init",{value:h}),Object.defineProperty(y,Symbol.hasInstance,{value:b=>r?.Parent&&b instanceof r.Parent?!0:b?._zod?.traits?.has(e)}),Object.defineProperty(y,"name",{value:e}),y}class Wi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class F8 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Jx=globalThis).__zod_globalConfig??(Jx.__zod_globalConfig={});const vo=globalThis.__zod_globalConfig;function yi(e){return e&&Object.assign(vo,e),vo}function xY(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Iy,2)),e.message}function _Y(e){this._zod.message=e}const TY={get:xY,set:_Y,enumerable:!0,configurable:!0},zg={value:void 0,enumerable:!1},Wx=new WeakSet([Object.prototype,Error.prototype]),kY=(e,t)=>{e.name="$ZodError",zg.value=t,Object.defineProperty(e,"issues",zg),zg.value=void 0,Object.defineProperty(e,"message",TY);const n=Object.getPrototypeOf(e);Wx.has(n)||(Wx.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},EY=le("$ZodError",kY);function CY(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function AY(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?CY(n,a.path[0],()=>[]).push(t(a)):r.push(t(a));return{formErrors:r,fieldErrors:n}}function RY(e,t=n=>n.message){const n={_errors:[]},r=(a,s=[])=>{for(const l of a.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(f=>r({issues:f},[...s,...l.path]));else if(l.code==="invalid_key")r({issues:l.issues},[...s,...l.path]);else if(l.code==="invalid_element")r({issues:l.issues},[...s,...l.path]);else{const f=[...s,...l.path];if(f.length===0)n._errors.push(t(l));else{let h=n,d=0;for(;d<f.length;){const p=f[d],y=d===f.length-1;if(p==="_errors"){y&&h._errors.push(t(l)),d++;continue}Object.prototype.hasOwnProperty.call(h,p)||Object.defineProperty(h,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const b=h[p];y&&b._errors.push(t(l)),h=b,d++}}}};return r(e),n}function a0(e,t){return{callee:t?.callee??e,Err:t?.Err}}const Tb=e=>{const t=(n,r,a,s)=>{const l=a?{...a,async:!1}:{async:!1},f=n._zod.run({value:r,issues:[]},l);if(f instanceof Promise)throw new Wi;if(f.issues.length){const h=new(s?.Err??e)(f.issues.map(d=>Rc(d,l,yi())));throw z8(h,s?.callee??t),h}return f.value};return t},kb=e=>{const t=async(n,r,a,s)=>{const l=a?{...a,async:!0}:{async:!0};let f=n._zod.run({value:r,issues:[]},l);if(f instanceof Promise&&(f=await f),f.issues.length){const h=new(s?.Err??e)(f.issues.map(d=>Rc(d,l,yi())));throw z8(h,s?.callee??t),h}return f.value};return t},Eb=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Wi;return s.issues.length?I8(e,s.issues,a):{success:!0,data:s.value}};function I8(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(a=>Rc(a,n,yi()))),t=void 0,n=void 0),r},set error(a){r=a,t=void 0,n=void 0}}}const Cb=e=>async(t,n,r)=>{const a=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?I8(e,s.issues,a):{success:!0,data:s.value}}
18,MY=Symbol.for("zod.compile.invalid"),OY=Symbol.for("zod.compile.fallback"),PY=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==MY)return!0;if(r.definite===!0&&n===void 0)return!1}return zY(e,t,n)});function zY(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=e._zod.bag.fallbackRun;let s;if(a?(r[OY]=!0,s=a({value:t,issues:[]},r)):s=e._zod.run({value:t,issues:[]},r),s instanceof Promise)throw new Wi;return s.issues.length===0}const DY=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let a=e._zod.run({value:t,issues:[]},r);return a instanceof Promise&&(a=await a),a.issues.length===0},NY=e=>{const t=Tb(e),n=(r,a,s,l)=>{const f=s?{...s,direction:"backward"}:{direction:"backward"};return t(r,a,f,a0(n,l))};return n},LY=e=>{const t=Tb(e),n=(r,a,s,l)=>t(r,a,s,a0(n,l));return n},jY=e=>{const t=kb(e),n=async(r,a,s,l)=>{const f=s?{...s,direction:"backward"}:{direction:"backward"};return await t(r,a,f,a0(n,l))};return n},BY=e=>{const t=kb(e),n=async(r,a,s,l)=>await t(r,a,s,a0(n,l));return n},FY=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Eb(e)(t,n,a)},IY=e=>(t,n,r)=>Eb(e)(t,n,r),HY=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return Cb(e)(t,n,a)},VY=e=>async(t,n,r)=>Cb(e)(t,n,r),UY=/^[cC][0-9a-z]{6,}$/,$Y=/^[0-9a-z]+$/,ZY=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,YY=/^[0-9a-vA-V]{20}$/,GY=/^[A-Za-z0-9]{27}$/,qY=/^[a-zA-Z0-9_-]{21}$/;function XY(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const KY=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,JY=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,e4=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,QY=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,WY="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function eG(){return new RegExp(WY,"u")}const tG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,oG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iG=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,sG=/^https?$/,cG=/^\+[1-9]\d{6,14}$/,H8="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function lG(e){return new RegExp(`^${e}$`)}const uG=lG(H8);function Hy(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function fG(e){return new RegExp(`^${Hy(e)}$`)}function dG(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${Hy({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Hy({precision:e.precision})}`:n;return new RegExp(`^${H8}T(?:${r})$`)}const hG=/^[\s\S]{0,}$/,mG=/^(?:true|false)$/i,pG=/^[^A-Z]*$/,gG=/^[^a-z]*$/,wo=le("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ab=e=>{const t=e.value;return!KZ(t)&&t.length!==void 0},yG=le("$ZodCheckMaxLength",(e,t)=>{var n;wo.init(e,t),(n=e._zod.def).when??(n.when=Ab),e._zod.check=r=>{const a=r.value,s=a.length;
18if((typeof a=="string"&&s>t.maximum?xb(a):s)<=t.maximum)return;const f=_b(a);r.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),bG=le("$ZodCheckMinLength",(e,t)=>{var n;wo.init(e,t),(n=e._zod.def).when??(n.when=Ab),e._zod.check=r=>{const a=r.value,s=a.length;if((typeof a=="string"&&s>=t.minimum&&s<t.minimum*2?xb(a):s)>=t.minimum)return;const f=_b(a);r.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),vG=le("$ZodCheckLengthEquals",(e,t)=>{var n;wo.init(e,t),(n=e._zod.def).when??(n.when=Ab),e._zod.check=r=>{const a=r.value,s=a.length,l=typeof a=="string"&&s>=t.length&&s<=t.length*2?xb(a):s;if(l===t.length)return;const f=_b(a),h=l>t.length;r.issues.push({origin:f,...h?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),i0=le("$ZodCheckStringFormat",(e,t)=>{var n,r;wo.init(e,t),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),SG=le("$ZodCheckRegex",(e,t)=>{i0.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),wG=le("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=pG),i0.init(e,t)}),xG=le("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=gG),i0.init(e,t)}),_G=le("$ZodCheckIncludes",(e,t)=>{wo.init(e,t);const n=r0(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),TG=le("$ZodCheckStartsWith",(e,t)=>{wo.init(e,t);const n=new RegExp(`^${r0(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),kG=le("$ZodCheckEndsWith",(e,t)=>{wo.init(e,t);const n=new RegExp(`.*${r0(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),EG=le("$ZodCheckOverwrite",(e,t)=>{wo.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class CG{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 19`).filter(l=>l),a=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(a)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { 20${n.join(` 21`)} 22};`)(...Object.values(this.closed))}}const AG={major:4,minor:6,patch:2},mn=le("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=AG;const r=e._zod.def.checks,a=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const s of a)for(const l of s._zod.onattach)l(e);if(a.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(f,h,d)=>{if(f.memo)return f;let p=Qo(f),y;for(const b of h){if(b._zod.def.when){if(fY(f)||!b._zod.def.when(f))continue}else if(p)continue;const v=f.issues.length,S=b._zod.check(f);if(S instanceof Promise&&d?.async===!1)throw new Wi;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,f.issues.length!==v&&(Xx(f.issues,v,e),p||(p=Qo(f,v)))});else{if(f.issues.length===v)continue;Xx(f.issues,v,e),p||(p=Qo(f,v))}}return y?y.then(()=>f):f},l=(f,h,d)=>
22{if(Qo(f))return f.aborted=!0,f;const p=s(h,a,d);if(p instanceof Promise){if(d.async===!1)throw new Wi;return p.then(y=>e._zod.parse(y,d))}return e._zod.parse(p,d)};e._zod.run=(f,h)=>{if(h.skipChecks)return e._zod.parse(f,h);if(h.direction==="backward"){const p=e._zod.parse({value:f.value,issues:[]},{...h,skipChecks:!0});return p instanceof Promise?p.then(y=>l(y,f,h)):l(p,f,h)}const d=e._zod.parse(f,h);if(d instanceof Promise){if(h.async===!1)throw new Wi;return d.then(p=>s(p,a,h))}return s(d,a,h)}}},{get"~standard"(){return B8(this,"~standard",U8(this))},set"~standard"(e){si(this,"~standard",e)}}),V8=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Rc(n,t,yi()))}:{value:e.value};async function RG(e,t){const n={async:!0};return V8(await e._zod.run({value:t,issues:[]},n),n)}function U8(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return V8(r,n)}catch{}return RG(e,t)},vendor:"zod",version:1}}const Rb=le("$ZodString",(e,t)=>{mn.init(e,t),e._zod.pattern=t.pattern??hG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ut=le("$ZodStringFormat",(e,t)=>{i0.init(e,t),Rb.init(e,t)}),MG=le("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=JY),Ut.init(e,t)}),OG=le("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=e4(r))}else t.pattern??(t.pattern=e4());Ut.init(e,t)}),PG=le("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=QY),Ut.init(e,t)}),$8=1,Z8=2;function zG(e,t){if(!t.normalize&&t.protocol?.source===sG.source&&!/^https?:\/\//i.test(e))return $8;try{return new URL(e)}catch{return Z8}}const DG=/[\t\n\r]/g;function NG(e){return e.replace(DG,"")}function LG(e,t){return t.lastIndex=0,t.test(e.hostname)}function jG(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}const BG=le("$ZodURL",(e,t)=>{Ut.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=zG(r,t);if(a===$8){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(a===Z8){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!LG(a,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!jG(a,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?a.href:NG(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),FG=le("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=eG()),Ut.init(e,t)}),IG=le("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?qY:XY(t.length)),Ut.init(e,t)}),HG=le("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=UY),Ut.init(e,t)}),VG=le("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$Y),Ut.init(e,t)}),UG=le("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ZY),Ut.init(e,t)}),$G=le("$ZodXID",(e,t)=>{t.pattern??(t.pattern=YY),Ut.init(e,t)}),ZG=le("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=GY),Ut.init(e,t)}),YG=le("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=dG(t)),Ut.init(e,t)}),GG=le("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=uG),Ut.init(e,t)}),qG=le("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=fG(t)),Ut.init(e,t)}),XG=le("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=KY),Ut.init(e,t)}),KG=le("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=tG),Ut.init(e,t)}),JG=/^[0-9a-fA-F:.]+$/;function Y8(e){if(!JG.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}const QG=le("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=nG),Ut.init(e,t),e._zod.check=n=>{Y8(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),WG=le("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=rG),Ut.init(e,t)});function eq(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const a=Number(r);return`${a}`!==r||a<0||a>128?!1:Y8(n)}const tq=le("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=oG),Ut.init(e,t),e._zod.check=n=>{eq(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function G8(e){if(e==="")return!0;
22if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const q8=/^[0-9a-zA-Z+/]*={0,2}$/,nq=le("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=q8),Ut.init(e,t),e._zod.check=n=>{G8(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),Mb=/^[A-Za-z0-9_-]*$/;function rq(e){if(!Mb.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return G8(n)}const oq=le("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Mb),Ut.init(e,t),e._zod.check=n=>{rq(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),aq=le("$ZodE164",(e,t)=>{t.pattern??(t.pattern=cG),Ut.init(e,t)});function iq(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const sq=le("$ZodJWT",(e,t)=>{Ut.init(e,t),e._zod.check=n=>{iq(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),cq=le("$ZodBoolean",(e,t)=>{mn.init(e,t),e._zod.pattern=mG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),lq=le("$ZodUnknown",(e,t)=>{mn.init(e,t),e._zod.parse=n=>n}),uq=le("$ZodNever",(e,t)=>{mn.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function t4(e,t,n){e.issues.length&&t.issues.push(...j8(n,e.issues)),t.value[n]=e.value}const fq=le("$ZodArray",(e,t)=>{mn.init(e,t);const n=vo.memoizer;n?.attach(e),e._zod.parse=(r,a)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=n?n.alloc(e,r,Array(s.length),a):Array(s.length);const l=[],f=a?.abortEarly;for(let h=0;h<s.length;h++){const d=s[h],p=t.element._zod.run({value:d,issues:[]},a);if(p instanceof Promise)l.push(p.then(y=>t4(y,r,h)));else if(t4(p,r,h),f&&p.issues.length!==0&&Qo(p))break}return l.length?Promise.all(l).then(()=>r):r}});function wh(e,t,n,r,a,s){const l=n in r,f=s==="optional";if(!(!l&&f&&a==="optional")){if(e.issues.length){if(a!==void 0&&f&&!l)return;t.issues.push(...j8(n,e.issues))}if(!l&&a===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(l||a==="defaulted"&&!f)&&(t.value[n]=void 0):t.value[n]=e.value}}const dq=[];function X8(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:dq,a=r.length?[...t,...r]:t;for(const l of a)if(!e.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(l)}": expected a Zod schema`);const s=nY(e.shape);return{...e,allKeys:a,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(s)}}function K8(e,t,n,r,a,s,l){const f=[],h=a.keySet,d=a.catchall._zod,p=d.def.type,y=d.optin,b=d.optout;let v=0;for(const S in t){if(l&&n.issues.length!==v){if(Qo(n,v))break;v=n.issues.length}if(h.has(S))continue;if(S==="__proto__"){p==="never"&&f.push(S);continue}if(p==="never"){f.push(S);continue}const w=d.run({value:t[S],issues:[]},r);w instanceof Promise?e.push(w.then(_=>wh(_,n,S,t,y,b))):wh(w,n,S,t,y,b)}return f.length&&n.issues.push({code:"unrecognized_keys",keys:f,input:t,inst:s,continue:!0}),e.length?Promise.all(e).then(()=>n):n}const hq=le("$ZodObject",(e,t)=>{mn.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const d=()=>{const p={...r};return Object.defineProperty(t,"shape",{value:p}),d.raw=p,p};d.raw=r,Object.defineProperty(t,"shape",{get:d})}const a=Sb(()=>X8(t));Ct(e,"propValues",d=>{const p=d.def.shape,y={};for(const b in p){const v=p[b]._zod;if(v.values){Object.prototype.hasOwnProperty.call(y,b)||ms(y,b,new Set);for(const S of v.values)y[b].add(S);v.optin!==void 0&&y[b].add(void 0)}}return y});const s=Sh,l=t.catchall;let f;const h=vo.memoizer;h?.attach(e),e._zod.parse=(d,p)=>{f??(f=a.value);const y=d.value;if(!s(y))return d.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),d;d.value=h?h.alloc(e,d,{},p):{};
22const b=[],v=f.shape,S=p?.abortEarly;let w=d.issues.length;for(const _ of f.allKeys){if(S&&d.issues.length!==w){if(Qo(d,w))break;w=d.issues.length}if(_==="__proto__")continue;const A=v[_],E=A._zod.optin,C=A._zod.optout,R=A._zod.run({value:y[_],issues:[]},p);R instanceof Promise?b.push(R.then(z=>wh(z,d,_,y,E,C))):wh(R,d,_,y,E,C)}return l?K8(b,y,d,p,a.value,e,S===!0):b.length?Promise.all(b).then(()=>d):d}}),mq=le("$ZodObjectJIT",(e,t)=>{hq.init(e,t);const n=e._zod.parse,r=Sb(()=>X8(t)),a=vo.memoizer,s=v=>{const S=r.value,w=S.symbolKeys,_=new CG(["payload","ctx"],{shape:v,inst:e,memo:a,syms:w}),A=z=>`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`,E=(z,P)=>` 23 let ${z}_ab = false; 24 for (let i = 0; i < ${z}.issues.length; i++) { 25 const iss = ${z}.issues[i]; 26 iss.path = iss.path ? [${P}, ...iss.path] : [${P}]; 27 payload.issues.push(iss); 28 if (iss.continue !== true) ${z}_ab = true; 29 } 30 if (${z}_ab && ctx && ctx.abortEarly) { 31 payload.value = newResult; 32 return payload; 33 }`;_.write("const input = payload.value;");const C=Object.create(null);let R=0;for(const z of S.allKeys)C[z]=`key_${R++}`;_.write(a?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const z of S.allKeys){if(z==="__proto__")continue;const P=C[z],M=typeof z=="symbol"?`syms[${w.indexOf(z)}]`:QZ(z),k=`${M} in input`,D=v[z],N=D?._zod?.optin,F=N!==void 0,Y=D?._zod?.optout==="optional";if(_.write(`const ${P} = ${A(M)};`),F&&Y){const J=N==="optional"?`${P}_present`:`${P}.value !== undefined || ${P}_present`;_.write(` 34 const ${P}_present = ${k}; 35 if (!${P}.issues.length || ${P}_present) { 36 if (${P}.issues.length) {${E(P,M)} 37 } 38 39 if (${J}) { 40 newResult[${M}] = ${P}.value; 41 } 42 } 43 44 `)}else F?(_.write(` 45 if (${P}.issues.length) {${E(P,M)} 46 } 47 `),N==="defaulted"?_.write(`newResult[${M}] = ${P}.value;`):_.write(` 48 if (${P}.value !== undefined || ${k}) { 49 newResult[${M}] = ${P}.value; 50 } 51 `)):_.write(` 52 const ${P}_present = ${k}; 53 if (${P}.issues.length) {${E(P,M)} 54 } 55 if (!${P}_present && !${P}.issues.length) { 56 payload.issues.push({ 57 code: "invalid_type", 58 expected: "nonoptional", 59 input: undefined, 60 path: [${M}] 61 }); 62 if (ctx && ctx.abortEarly) { 63 payload.value = newResult; 64 return payload; 65 } 66 } 67 68 if (${P}_present) { 69 newResult[${M}] = ${P}.value; 70 } 71 72 `)}return _.write("payload.value = newResult;"),_.write("return payload;"),_.compile()};let l;const f=Sh,h=!vo.jitless,p=h&&eY.value,y=t.catchall;let b;e._zod.parse=(v,S)=>{b??(b=r.value);const w=v.value;return f(w)?h&&p&&S?.async===!1&&S.jitless!==!0?(l||(l=s(t.shape)),v=l(v,S),y?K8([],w,v,S,b,e,S?.abortEarly===!0):v):n(v,S):(v.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),v)}});function n4(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const a=e.filter(s=>!Qo(s));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(l=>Rc(l,r,yi())))}),t)}const pq=le("$ZodUnion",(e,t)=>{mn.init(e,t),Ct(e,"optin",r=>r.def.options.some(a=>a._zod.optin==="defaulted")?"defaulted":r.def.options.some(a=>a._zod.optin!==void 0)?"optional":void 0),Ct(e,"optout",r=>r.def.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Ct(e,"values",r=>{if(r.def.options.every(a=>a._zod.values))return new Set(r.def.options.flatMap(a=>Array.from(a._zod.values)))}),Ct(e,"pattern",r=>{if(r.def.options.every(a=>a._zod.pattern)){const a=r.def.options.map(s=>s._zod.pattern);return new RegExp(`^(${a.map(s=>wb(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,a)=>{if(n)return n(r,a);let s=!1;const l=[];for(const f of t.options){const h=f._zod.run({value:r.value,issues:[]},a);if(h instanceof Promise)l.push(h),s=!0;else{if(h.issues.length===0)return h;l.push(h)}}return s?Promise.all(l).then(f=>n4(f,r,e,a)):n4(l,r,e,a)}}),gq=le("$ZodIntersection",(e,t)=>{mn.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,s=t.left._zod.run({value:a,issues:[]},r),l=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([h,d])=>r4(n,h,d)):r4(n,s,l)}});function Vy(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(gu(e)&&gu(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(const s of r){if(s==="__proto__")continue;const l=Vy(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};a[s]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],l=Vy(a,s);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function r4(e,t,n){const r=new Map;let a;const s=new Map,l=(d,p)=>{let y;if(d.code==="unrecognized_keys"&&!d.path?.length)a??(a=d),y=d.keys;else if(d.code==="invalid_key"&&d.origin==="record"&&d.path?.length===1){const b=String(d.path[0]);s.has(b)||s.set(b,d),y=[b]}else return!1;for(const b of y)r.has(b)||r.set(b,{}),r.get(b)[p]=!0;return!0};for(const d of t.issues)l(d,"l")||e.issues.push(d);for(const d of n.issues)l(d,"r")||e.issues.push(d);const f=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(f.length){const d=a?f.filter(p=>a.keys.includes(p)):[];d.length&&e.issues.push({...a,keys:d});
72for(const p of f)!d.includes(p)&&s.has(p)&&e.issues.push(s.get(p))}const h=Vy(t.value,n.value);if(!h.valid){if(Qo(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(h.mergeErrorPath)}`)}return e.value=h.data,e}const yq=le("$ZodEnum",(e,t)=>{mn.init(e,t);const n=Fy(t.entries),r=new Set(n);e._zod.values=r,Ct(e,"pattern",a=>{const s=Fy(a.def.entries).filter(l=>tY.has(typeof l));return new RegExp(s.length?`^(${s.map(l=>r0(l.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(a,s)=>{const l=a.value;return r.has(l)||a.issues.push({code:"invalid_value",values:n,input:l,inst:e}),a}}),bq=le("$ZodTransform",(e,t)=>{mn.init(e,t),e._zod.optin="optional",vo.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new F8(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(l=>(n.value=l,n));if(a instanceof Promise)throw new Wi;return n.value=a,n}});function o4(e,t){return e.value=t.issues.length?void 0:t.value,e}const J8=le("$ZodOptional",(e,t)=>{mn.init(e,t),Ct(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ct(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Ct(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${wb(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const a=t.innerType._zod.run({value:n.value,issues:[]},r);return a instanceof Promise?a.then(s=>o4(n,s)):o4(n,a)}return t.innerType._zod.run(n,r)}}),vq=le("$ZodExactOptional",(e,t)=>{J8.init(e,t),Ct(e,"values",n=>n.def.innerType._zod.values),Ct(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Sq=le("$ZodNullable",(e,t)=>{mn.init(e,t),Ct(e,"optin",n=>n.def.innerType._zod.optin),Ct(e,"optout",n=>n.def.innerType._zod.optout),Ct(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${wb(r.source)}|null)$`):void 0}),Ct(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),wq=le("$ZodDefault",(e,t)=>{mn.init(e,t),e._zod.optin="defaulted",Ct(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>a4(s,t)):a4(a,t)}});function a4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const xq=le("$ZodPrefault",(e,t)=>{mn.init(e,t),e._zod.optin="defaulted",Ct(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),_q=le("$ZodNonOptional",(e,t)=>{mn.init(e,t),Ct(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>i4(s,e)):i4(a,e)}});function i4(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function s4(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(a=>Rc(a,r,yi()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const Tq=le("$ZodCatch",(e,t)=>{mn.init(e,t),Ct(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ct(e,"optout",n=>n.def.innerType._zod.optout),Ct(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run({value:n.value,issues:[]},r);return a instanceof Promise?a.then(s=>s4(n,s,t,r)):s4(n,a,t,r)}}),kq=le("$ZodPipe",(e,t)=>{mn.init(e,t),Ct(e,"values",n=>n.def.in._zod.values),Ct(e,"optin",n=>n.def.in._zod.optin),Ct(e,"optout",n=>n.def.out._zod.optout),Ct(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(l=>xd(l,t.in,r)):xd(s,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(s=>xd(s,t.out,r)):xd(a,t.out,r)}});
72function xd(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Eq=le("$ZodReadonly",(e,t)=>{mn.init(e,t),Ct(e,"propValues",n=>n.def.innerType._zod.propValues),Ct(e,"values",n=>n.def.innerType._zod.values),Ct(e,"optin",n=>n.def.innerType?._zod?.optin),Ct(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(c4):c4(a)}});function c4(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Cq=le("$ZodCustom",(e,t)=>{wo.init(e,t),mn.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>l4(s,n,r,e));l4(a,n,r,e)}});function l4(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(yu(a))}}class Aq extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const Uy="~memo",u4=[];function Q8(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Dg(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}
72const W8=new WeakMap,Dl=0,Fd=1,Xl=2;function Id(e,t,n){const r=W8.get(e);if(r!==void 0)return r?Xl:Dl;if(t.has(e))return Xl;t.add(e);let a=Dl;const s=p=>{if(a!==Xl&&p?._zod){const y=Id(p,t);y>a&&(a=y)}},l=(p,y)=>{let b=Dl;for(const v of Reflect.ownKeys(p)){const S=Object.getOwnPropertyDescriptor(p,v);if(y&&!S.enumerable)continue;const w=S.get?Fd:S.value?._zod?Id(S.value,t):Dl;w>b&&(b=w)}return b},f=p=>{p>a&&(a=p)},h=e._zod.def;switch(h.type){case"object":{const p=M8(h);f(p?l(p,!0):Fd),s(h.catchall);break}case"properties":f(l(h.shape,!1));break;case"array":s(h.element);break;case"tuple":for(const p of h.items)s(p);s(h.rest);break;case"record":case"map":s(h.keyType),s(h.valueType);break;case"set":s(h.valueType);break;case"union":for(const p of h.options)s(p);break;case"intersection":s(h.left),s(h.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":s(h.innerType);break;case"pipe":s(h.in),s(h.out);break;case"function":s(h.input),s(h.output);break;case"lazy":{const p=h._cachedInner??void 0;f(p?Id(p,t):Fd);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const p in h){const y=Object.getOwnPropertyDescriptor(h,p);if(!y||y.get)continue;const b=y.value;if(!(!b||typeof b!="object")){if(b._zod)s(b);else if(Array.isArray(b))for(const v of b)s(v)}}}return t.delete(e),Rq(e,a)}function Rq(e,t){return t!==Fd&&W8.set(e,t===Xl),t}function Mq(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let _d;const Td=[],Oq={alloc(e,t,n){const r=_d;if(!r)return n;_d=void 0;const a={value:n,issues:null};return r.set(t.value,a),Td.push(a),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(a,s)=>{if(s.direction!=="backward"&&zq(s,a.value))throw new Aq;return n(a,s)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,a,s;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const l=e._zod.parse,f=(h,d)=>{if(n===void 0){const A=Id(e,new Set);if(A===Dl)return e._zod.parse=l,e._zod.run===f&&(e._zod.run=l),l(h,d);A===Xl||r?n=!0:r=!0}const p=h.value;if(!Q8(p))return l(h,d);let y=d[Uy];y||(y={buckets:new WeakMap,backEdges:void 0},d[Uy]=y);let b;a===d?b=s:(b=Mq(y,e),a=d,s=b);const v=b.get(p);if(v)return h.value=v.value,v.issues?v.issues.length&&h.issues.push(...Dg(v.issues)):(h.memo=!0,y.backEdges??(y.backEdges=new WeakSet),y.backEdges.add(v.value)),h;_d=b;const S=Td.length,w=l(h,d);_d=void 0;const _=Td.length>S?Td.pop():void 0;return w instanceof Promise?w.then(A=>(_&&(_.issues=A.issues.length?Dg(A.issues):u4),A)):(_&&(_.issues=w.issues.length?Dg(w.issues):u4),w)};e._zod.parse=f,e._zod.run===l&&(e._zod.run=f)})}};function Pq(){return Oq}function zq(e,t){const n=e[Uy]?.backEdges;return n!==void 0&&Q8(t)&&n.has(t)}const Dq=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(s){return e[s]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function a(s,l){return s==="number"&&typeof l=="number"&&!Number.isFinite(l)?String(l):r[s]??s}return s=>{switch(s.code){case"invalid_type":{const l=a(s.expected),f=hY(s.input),h=a(f,s.input);return`Invalid input: expected ${l}, received ${h}`}
72case"invalid_value":return s.values.length===1?`Invalid input: expected ${N8(s.values[0])}`:`Invalid option: expected one of ${Gx(s.values,"|")}`;case"too_big":{const l=s.exact?"exactly ":s.inclusive?"<=":"<",f=t(s.origin);return f?`Too big: expected ${s.origin??"value"} to have ${l}${s.maximum.toString()} ${f.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${l}${s.maximum.toString()}`}case"too_small":{const l=s.exact?"exactly ":s.inclusive?">=":">",f=t(s.origin);return f?`Too small: expected ${s.origin} to have ${l}${s.minimum.toString()} ${f.unit}`:`Too small: expected ${s.origin} to be ${l}${s.minimum.toString()}`}case"invalid_format":{const l=s;return l.format==="starts_with"?`Invalid string: must start with "${l.prefix}"`:l.format==="ends_with"?`Invalid string: must end with "${l.suffix}"`:l.format==="includes"?`Invalid string: must include "${l.includes}"`:l.format==="regex"?`Invalid string: must match pattern ${l.pattern}`:`Invalid ${n[l.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${Gx(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Invalid discriminator value. Expected ${s.options.map(f=>`'${f}'`).join(" | ")}`:s.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function Nq(){return{localeError:Dq()}}var f4;class Lq{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function jq(){return new Lq}(f4=globalThis).__zod_globalRegistry??(f4.__zod_globalRegistry=jq());const Nl=globalThis.__zod_globalRegistry;function Bq(e,t){return new e({type:"string",...Fe(t)})}function Fq(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Fe(t)})}function Iq(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Fe(t)})}function Hq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Fe(t)})}function Vq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Fe(t)})}function Uq(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Fe(t)})}function $q(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Fe(t)})}function Zq(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Fe(t)})}function Yq(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Fe(t)})}function Gq(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Fe(t)})}function qq(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Fe(t)})}function Xq(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Fe(t)})}function Kq(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Fe(t)})}function Jq(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Fe(t)})}function Qq(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Fe(t)})}function Wq(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Fe(t)})}function eX(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Fe(t)})}function tX(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Fe(t)})}function nX(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Fe(t)})}function rX(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Fe(t)})}function oX(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Fe(t)})}function aX(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Fe(t)})}function iX(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Fe(t)})}function sX(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Fe(t)})}function cX(e,t){return new e({type:"string",format:"date",check:"string_format",...Fe(t)})}function lX(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Fe(t)})}function uX(e,t){return new e({type:"string",format:"duration",check:"string_format",...Fe(t)})}function fX(e,t){return new e({type:"boolean",...Fe(t)})}function dX(e){return new e({type:"unknown"})}function hX(e,t){return new e({type:"never",...Fe(t)})}function eE(e,t){return new yG({check:"max_length",...Fe(t),maximum:e})}function xh(e,t){return new bG({check:"min_length",...Fe(t),minimum:e})}function tE(e,t){return new vG({check:"length_equals",...Fe(t),length:e})}function mX(e,t){return new SG({check:"string_format",format:"regex",...Fe(t),pattern:e})}function pX(e){return new wG({check:"string_format",format:"lowercase",...Fe(e)})}
72function gX(e){return new xG({check:"string_format",format:"uppercase",...Fe(e)})}function yX(e,t){return new _G({check:"string_format",format:"includes",...Fe(t),includes:e})}function bX(e,t){return new TG({check:"string_format",format:"starts_with",...Fe(t),prefix:e})}function vX(e,t){return new kG({check:"string_format",format:"ends_with",...Fe(t),suffix:e})}function Mc(e){return new EG({check:"overwrite",tx:e})}function SX(e){return Mc(t=>t.normalize(e))}function wX(){return Mc(e=>e.trim())}function xX(){return Mc(e=>e.toLowerCase())}function _X(){return Mc(e=>e.toUpperCase())}function TX(){return Mc(e=>WZ(e))}function kX(e,t,n){return new e({type:"array",element:t,...Fe(n)})}function EX(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Fe(n)})}function CX(e,t){const n=AX(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(yu(a,r.value,n._zod.def));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(yu(s))}},e(r.value,r)),t);return n}function AX(e,t){const n=new wo({check:"custom",...Fe(t)});return n._zod.check=e,n}function Kl(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&ms(e,r,n[r]);return e}function nE(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Nl,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Cu(e,t,n,r,a){const s=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:a}):t.unrepresentable;if(s==="any")return!1;if(s===void 0||s==="throw")throw new Error(a);return Object.assign(n,s),!0}function In(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const f=e._zod.toJSONSchema?.();if(f)l.schema=f;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,p);else{const b=l.schema,v=t.processors[a.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);v(e,t,b,p)}const y=e._zod.parent;y&&(l.ref||(l.ref=y),In(y,t,p),t.seen.get(y).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Kl(l.schema,h),t.io==="input"&&Xn(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&"_prefault"in l.schema&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function d4(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function rE(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const l of e.seen.entries()){const f=e.metadataRegistry.get(l[0])?.id;if(f){const h=r.get(f);if(h&&h!==l[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(f,l[0])}}const a=l=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=e.external.registry.get(l[0])?.id,b=e.external.uri??(S=>S);if(y)return{ref:b(y)};const v=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=v,{defId:v,ref:`${b("__shared")}#/${f}/${d4(v)}`}}const h="#",d=`${h}/${f}/`;if(l[1]===n&&!l[1].schema.id)return{ref:h};const p=l[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+d4(p)}},s=l=>{if(l[1].schema.$ref)return;const f=l[1],{ref:h,defId:d}=a(l);f.def={...f.schema},d&&(f.defId=d);const p=f.schema;for(const y in p)delete p[y];p.$ref=h};if(e.cycles==="throw")for(const l of e.seen.entries()){const f=l[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root> 73 74Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const f=l[1];if(t===l[0]){s(l);continue}if(e.external){const d=e.external.registry.get(l[0])?.id;if(t!==l[0]&&d){s(l);continue}}
74if(e.metadataRegistry.get(l[0])?.id){s(l);continue}if(f.cycle){s(l);continue}f.count>1&&e.reused==="ref"&&s(l)}e.external&&(e.sharedDefsExtractedFor=e.external)}function oE(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;oE(r);const a=Object.keys(r);if(a.length!==1||a[0]!=="type")return;const s=r.type;for(const l of Array.isArray(s)?s:[s]){if(typeof l!="string")return;n.includes(l)||n.push(l)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const aE=new Set(["type","properties","required","additionalProperties"]),h4=["oneOf","anyOf"];function m4(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function $y(e){const t=[];for(const s of e){if(typeof s!="object"||s.type!=="object")return null;for(const l in s)if(!aE.has(l))return null;t.push(s)}const n={},r=new Set;for(const s of t){for(const l in s.properties){if(Object.prototype.hasOwnProperty.call(n,l))continue;const f=[];for(const d of t){const p=d.properties?.[l]??m4(d);p!=null&&(f.some(y=>JSON.stringify(y)===JSON.stringify(p))||f.push(p))}const h=f.length===1?f[0]:$y(f)??{allOf:f};ms(n,l,h)}for(const l of s.required??[])r.add(l)}const a={type:"object",properties:n};if(r.size&&(a.required=[...r]),t.every(s=>s.additionalProperties===!1))a.additionalProperties=!1;else{const s=[];for(const l of t){const f=m4(l);f&&!s.some(h=>JSON.stringify(h)===JSON.stringify(f))&&s.push(f)}s.length===1?a.additionalProperties=s[0]:s.length>1&&(a.additionalProperties={allOf:s})}return a}function RX(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const a of aE)if(a in e)return;const n=t.filter(a=>h4.some(s=>Array.isArray(a[s])));let r=null;if(!n.length)r=$y(t);else{const a=n[0],s=h4.find(h=>Array.isArray(a[h]));if(Object.keys(a).length!==1)return;const l=t.filter(h=>h!==a),f=a[s].map(h=>$y([...l,h]));if(f.some(h=>!h))return;r={[s]:f}}r&&(delete e.allOf,Kl(e,r))}function iE(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=f=>{const h=e.seen.get(f);if(h.ref===null)return;const d=h.def??h.schema,p={...d},y=h.ref;if(h.ref=null,y){r(y);const v=e.seen.get(y),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(S)):Kl(d,S),Kl(d,p),f._zod.parent===y)for(const _ in d)_==="$ref"||_==="allOf"||_ in p||delete d[_];if(S.$ref&&v.def)for(const _ in d)_==="$ref"||_==="allOf"||_ in v.def&&JSON.stringify(d[_])===JSON.stringify(v.def[_])&&delete d[_]}const b=f._zod.parent;if(b&&b!==y){r(b);const v=e.seen.get(b);if(v?.schema.$ref&&(d.$ref=v.schema.$ref,v.def))for(const S in d)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(d[S])===JSON.stringify(v.def[S])&&delete d[S]}e.override({zodSchema:f,jsonSchema:d,path:h.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const f of[...e.seen.entries()].reverse())r(f[0]);if(e.target!=="openapi-3.0")for(const f of e.seen.entries())oE(f[1].def??f[1].schema);for(const f of e.deferred)f();if(e.intersections.length){const f=new Map;for(const h of e.seen.values())for(const d of[h.schema,h.def]){const p=d?.allOf;if(!Array.isArray(p))continue;const y=f.get(p);y?y.push(d):f.set(p,[d])}for(const h of e.intersections)for(const d of f.get(h)??[])RX(d)}}const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(t)?.id;if(!f)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(f)}Kl(a,n.defId?n.schema:n.def??n.schema);const s=e.metadataRegistry.get(t)?.id;s!==void 0&&a.id===s&&delete a.id;const l=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const f of e.seen.entries()){const h=f[1];h.def&&h.defId&&(h.def.id===h.defId&&delete h.def.id,ms(l,h.defId,h.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(l).length>
740&&(e.target==="draft-2020-12"?a.$defs=l:a.definitions=l);try{const f=JSON.parse(JSON.stringify(a));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:_h(t,"input",e.processors),output:_h(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Xn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xn(r.element,n);if(r.type==="set")return Xn(r.valueType,n);if(r.type==="lazy")return Xn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return Xn(r.innerType,n);if(r.type==="intersection")return Xn(r.left,n)||Xn(r.right,n);if(r.type==="record"||r.type==="map")return Xn(r.keyType,n)||Xn(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xn(r.in,n)||Xn(r.out,n);if(r.type==="object"){for(const a in r.shape)if(Xn(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(Xn(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(Xn(a,n))return!0;return!!(r.rest&&Xn(r.rest,n))}return!1}const MX=(e,t={})=>n=>{const r=nE({...n,processors:t});return In(e,r),rE(r,e),iE(r,e)},_h=(e,t,n={})=>r=>{const{libraryOptions:a,target:s}=r??{},l=nE({...a??{},target:s,io:t,processors:n});return In(e,l),rE(l,e),iE(l,e)},bc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},vc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},p4=(e,t)=>{bc(e,"minimum",t),vc(e,"maximum",t)},sE=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},cE=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},lE=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},uE=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},g4=(e,t)=>bc(e,"minimum",t.minimum),y4=(e,t)=>vc(e,"maximum",t.maximum),b4=e=>(t,n)=>{uE(t,n.format);const[r,a]=e[n.format];bc(t,"minimum",r),vc(t,"maximum",a)},OX={greater_than:(e,t)=>bc(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>vc(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>sE(e,t.value),number_format:b4(rY),bigint_format:b4(oY),min_length:g4,max_length:y4,length_equals:(e,t)=>p4(e,t.length),min_size:g4,max_size:y4,size_equals:(e,t)=>p4(e,t.size),string_format:(e,t)=>{uE(e,t.format),t.pattern&&cE(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>lE(e,t.mime)};function Jl(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const s of r)OX[s._zod.def.check]?.(t,s._zod.def);const a=e._zod.bag;a.minimum!==void 0&&bc(t,"minimum",a.minimum),a.exclusiveMinimum!==void 0&&bc(t,"exclusiveMinimum",a.exclusiveMinimum),a.maximum!==void 0&&vc(t,"maximum",a.maximum),a.exclusiveMaximum!==void 0&&vc(t,"exclusiveMaximum",a.exclusiveMaximum),a.multipleOf!==void 0&&sE(t,a.multipleOf),a.format!==void 0&&(t.format??(t.format=a.format),a.format.includes("int")&&(t.isInt=!0)),a.mime&&lE(t,a.mime);for(const s of a.patterns??[])cE(t,s);return t}const PX={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zX=new Map([[q8,aG],[Mb,iG]]),DX=e=>zX.get(e)??e,NX=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:s,maximum:l,format:f,patterns:h,contentEncoding:d,laxFormat:p}=Jl(e);if(typeof s=="number"&&(a.minLength=s),typeof l=="number"&&(a.maxLength=l),f&&(a.format=PX[f]??f,a.format===""&&delete a.format,(f==="time"||p)&&delete a.format),d&&(a.contentEncoding=d),h&&h.size>0){const y=[...h].map(DX);y.length===1?a.pattern=y[0].source:y.length>1&&(a.allOf=[...y.map(b=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},LX=(e,t,n,r)=>{n.type="boolean"},jX=(e,t,n,r)=>{n.not={}},BX=(e,t,n,r)=>{},FX=(e,t,n,r)=>{const a=e._zod.def,s=Fy(a.entries);if(s.length===0){n.not={};return}s.every(l=>typeof l=="number")&&(n.type="number"),s.every(l=>typeof l=="string")&&(n.type="string"),n.enum=s},IX=(e,t,n,r)=>{Cu(e,t,n,r,"Custom types cannot be represented in JSON Schema")},HX=(e,t,n,r)=>{Cu(e,t,n,r,"Transforms cannot be represented in JSON Schema")},VX=(e,t,n,r)=>{const a=n,s=e._zod.def,{minimum:l,maximum:f}=Jl(e);typeof l=="number"&&(a.minItems=l),typeof f=="number"&&(a.maxItems=f),a.type="array",a.items=In(s.element,t,{...r,path:[...r.path,"items"]})};function Zy(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Zy(t.out):t.type==="catch"?Zy(t.innerType):e._zod.optin}const UX=(e,t,n,r)=>{const a=n,s=e._zod.def,l=s.shape;if(Object.getOwnPropertySymbols(l).length&&Cu(e,t,a,r,"Symbol keys cannot be represented in JSON Schema"))return;a.type="object",a.properties={};for(const p in l)ms(a.properties,p,In(l[p],t,{...r,path:[...r.path,"properties",p]}));const h=new Set(Object.keys(l)),d=new Set([...h].filter(p=>{const y=s.shape[p];return t.io==="input"?Zy(y)===void 0:y._zod.optout===void 0}));d.size>0&&(a.required=Array.from(d)),s.catchall?._zod.def.type==="never"?a.additionalProperties=!1:s.catchall?s.catchall&&(a.additionalProperties=In(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},$X=(e,t,n,r)=>{const a=e._zod.def,s=a.inclusive===!1,l=a.options.map((f,h)=>In(f,t,{...r,path:[...r.path,s?"oneOf":"anyOf",h]}));s?n.oneOf=l:n.anyOf=l},ZX=(e,t,n,r)=>{const a=e._zod.def,s=In(a.left,t,{...r,path:[...r.path,"allOf",0]}),l=In(a.right,t,{...r,path:[...r.path,"allOf",1]}),f=d=>"allOf"in d&&Object.keys(d).length===1,h=[...f(s)?s.allOf:[s],...f(l)?l.allOf:[l]];n.allOf=h,t.intersections.push(h)},YX=(e,t,n,r)=>{const a=e._zod.def,s=In(a.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=a.innerType,n.nullable=!0):n.anyOf=[s,{t
74ype:"null"}]},GX=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},Ob=Symbol();function fE(e,t,n,r,a){let s=!1;const l=JSON.stringify(e,(f,h)=>typeof h!="bigint"?h:(s=!0,null));return s?(Cu(t,n,r,a,"BigInt defaults cannot be represented in JSON Schema"),Ob):JSON.parse(l)}const qX=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType;const l=fE(a.defaultValue,e,t,n,r);l!==Ob&&(n.default=l)},XX=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);if(s.ref=a.innerType,t.io!=="input")return;const l=fE(a.defaultValue,e,t,n,r);l!==Ob&&(n._prefault=l)},KX=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType;let l;try{l=a.catchValue(void 0)}catch{Cu(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=l},JX=(e,t,n,r)=>{const a=e._zod.def,s=a.in._zod.traits.has("$ZodTransform"),l=t.io==="input"?s?a.out:a.in:a.out;In(l,t,r);const f=t.seen.get(e);f.ref=l},QX=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,n.readOnly=!0},dE=(e,t,n,r)=>{const a=e._zod.def;In(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},v4=new WeakSet([Object.prototype,Error.prototype]);function kd(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const WX=(e,t)=>{EY.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);v4.has(n)||(v4.add(n),kd(n,"format",r=>a=>RY(r,a)),kd(n,"flatten",r=>a=>AY(r,a)),kd(n,"addIssue",r=>a=>{r.issues.push(a),r.message=JSON.stringify(r.issues,Iy,2)}),kd(n,"addIssues",r=>a=>{r.issues.push(...a),r.message=JSON.stringify(r.issues,Iy,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Hr=le("ZodError",WX,void 0,{Parent:Error}),eK=Tb(Hr),tK=kb(Hr),nK=Eb(Hr),rK=Cb(Hr),oK=NY(Hr),aK=LY(Hr),iK=jY(Hr),sK=BY(Hr),cK=FY(Hr),lK=IY(Hr),uK=HY(Hr),fK=VY(Hr);function dK(){vo.localeError||yi(Nq())}function Pb(){vo.memoizer||yi({memoizer:Pq()})}const pn=le("ZodType",(e,t)=>(dK(),mn.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(_r(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return gi(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(cJ(e,t))},superRefine(e,t){return this.check(lJ(e,t))},overwrite(e){return this.check(Mc(e))},optional(){return w4(this)},exactOptional(){return XK(this)},nullable(){return x4(this)},nullish(){return w4(x4(this))},nonoptional(e){return tJ(this,e)},array(){return mE(this)},or(e){return $K([this,e])},and(e){return YK(this,e)},transform(e){return _4(this,qK(e))},default(e){return QK(this,e)},prefault(e){return eJ(this,e)},catch(e){return rJ(this,e)},pipe(e){return _4(this,e)},readonly(){return iJ(this)},describe(e){const t=this.clone();return Nl.add(t,{description:e}),t},meta(...e){if(e.length===0)return Nl.get(this);const t=this.clone();return Nl.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return B8(this,"~standard",{...U8(this),jsonSchema:{input:_h(this,"input"),output:_h(this,"output")}})},set"~standard"(e){si(this,"~standard",e)},parse:function e(t,n){return eK(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await tK(this,t,n,{callee:e})},safeParse(e,t){return nK(this,e,t)},async safeParseAsync(e,t){return rK(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){si(this,"spa",e)},validate(e,t){return PY(this,e,t)},validateAsync(e,t){return DY(this,e,t)},encode:function e(t,n){return oK(this,t,n,{callee:e})},decode:function e(t,n){return aK(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await iK(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await sK(this,t,n,{callee:e})},safeEncode(e,t){return cK(this,e,t)},safeDecode(e,t){return lK(this,e,t)},async safeEncodeAsync(e,t){return uK(this,e,t)},async safeDecodeAsync(e,t){return fK(this,e,t)},toJSONSchema(e){return MX(this,{})(e)},get description(){return Nl.get(this)?.description},get _def(){return this._zod.def}}),hE=le("_ZodString",(e,t)=>{Rb.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>NX(e,n,r)},pY({format:e=>Jl(e).format??null,minLength:e=>Jl(e).minimum??null,maxLength:e=>Jl(e).maximum??null},{regex(...e){return this.check(mX(...e))},includes(...e){return this.check(yX(...e))},startsWith(...e){return this.check(bX(...e))},endsWith(...e){return this.check(vX(...e))},min(...e){return this.check(xh(...e))},max(...e){return this.check(eE(...e))},length(...e){return this.check(tE(...e))},nonempty(...e){return this.check(xh(1,...e))},lowercase(e){return this.check(pX(e))},uppercase(e){return this.check(gX(e))},trim(){return this.check(wX())},normalize(...e){return this.check(SX(...e))},toLowerCase(){return this.check(xX())},toUpperCase(){return this.check(_X())},slugify(){return this.check(TX())}})),hK=le("ZodString",(e,t)=>{Rb.init(e,t),hE.init(e,t)},{email(e){return this.check(Fq(bK,e))},url(e){return this.check(Zq(SK,e))},jwt(e){return this.check(iX(NK,e))},emoji(e){return this.check(Yq(wK,e))},guid(e){return this.check(Iq(vK,e))},uuid(e){return this.check(Hq(Cd,e))},uuidv4(e){return this.check(Vq(Cd,e))},uuidv6(e){return this.check(Uq(Cd,e))},uuidv7(e){return this.check($q(Cd,e))},nanoid(e){return this.check(Gq(xK,e))},cuid(e){return this.check(qq(_K,e))},cuid2(e){return this.check(Xq(TK,e))},ulid(e){return this.check(Kq(kK,e))},base64(e){return this.check(rX(PK,e))},base64url(e){return this.check(oX(zK,e))},xid(e){return this.check(Jq(EK,e))},ksuid(e){return this.check(Qq(CK,e))},ipv4(e){return this.check(Wq(AK,e))},ipv6(e){return this.check(eX(RK,e))},cidrv4(e){return this.check(tX(MK,e))},cidrv6(e){return this.check(nX(OK,e))},e164(e){return this.check(aX(DK,e))},datetime(e){return this.check(sX(mK,e))},date(e){return this.check(cX(pK,e))},time(e){return this.check(lX(gK,e))},duration(e){return this.check(uX(yK,e))}});function Ed(e){return Bq(hK,e)}const Yt=le("ZodStringFormat",(e,t)=>{Ut.init(e,t),hE.init(e,t)}),mK=le("ZodISODateTime",(e,t)=>{YG.init(e,t),Yt.init(e,t)}),pK=le("ZodISODate",(e,t)=>{GG.init(e,t),Yt.init(e,t)}),gK=le("ZodISOTime",(e,t)=>{qG.init(e,t),Yt.init(e,t)}),yK=le("ZodISODuration",(e,t)=>{XG.init(e,t),Yt.init(e,t)}),bK=le("ZodEmail",(e,t)=>{PG.init(e,t),Yt.init(e,t)}),vK=le("ZodGUID",(e,t)=>{MG.init(e,t),Yt.init(e,t)}),Cd=le("ZodUUID",(e,t)=>{OG.init(e,t),Yt.init(e,t)}),SK=le("ZodURL",(e,t)=>{BG.init(e,t),Yt.init(e,t)}),wK=le("ZodEmoji",(e,t)=>{FG.init(e,t),Yt.init(e,t)}),xK=le("ZodNanoID",(e,t)=>{IG.init(e,t),Yt.init(e,t)}),_K=le("ZodCUID",(e,t)=>{HG.init(e,t),Yt.init(e,t)}),TK=le("ZodCUID2",(e,t)=>{VG.init(e,t),Yt.init(e,t)}
74),kK=le("ZodULID",(e,t)=>{UG.init(e,t),Yt.init(e,t)}),EK=le("ZodXID",(e,t)=>{$G.init(e,t),Yt.init(e,t)}),CK=le("ZodKSUID",(e,t)=>{ZG.init(e,t),Yt.init(e,t)}),AK=le("ZodIPv4",(e,t)=>{KG.init(e,t),Yt.init(e,t)}),RK=le("ZodIPv6",(e,t)=>{QG.init(e,t),Yt.init(e,t)}),MK=le("ZodCIDRv4",(e,t)=>{WG.init(e,t),Yt.init(e,t)}),OK=le("ZodCIDRv6",(e,t)=>{tq.init(e,t),Yt.init(e,t)}),PK=le("ZodBase64",(e,t)=>{nq.init(e,t),Yt.init(e,t)}),zK=le("ZodBase64URL",(e,t)=>{oq.init(e,t),Yt.init(e,t)}),DK=le("ZodE164",(e,t)=>{aq.init(e,t),Yt.init(e,t)}),NK=le("ZodJWT",(e,t)=>{sq.init(e,t),Yt.init(e,t)}),LK=le("ZodBoolean",(e,t)=>{cq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>LX(e,n,r)});function jK(e){return fX(LK,e)}const BK=le("ZodUnknown",(e,t)=>{lq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>BX()});function S4(){return dX(BK)}const FK=le("ZodNever",(e,t)=>{uq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>jX(e,n,r)});function IK(e){return hX(FK,e)}const HK=le("ZodArray",(e,t)=>{Pb(),fq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>VX(e,n,r,a),e.element=t.element},{min(e,t){return this.check(xh(e,t))},nonempty(e){return this.check(xh(1,e))},max(e,t){return this.check(eE(e,t))},length(e,t){return this.check(tE(e,t))},unwrap(){return this.element}});function mE(e,t){return kX(HK,e,t)}const VK=le("ZodObject",(e,t)=>{Pb(),mq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>UX(e,n,r,a),bY(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return zb(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(_r(this._zod.def,{catchall:e}))},passthrough(){return this.clone(_r(this._zod.def,{catchall:S4()}))},loose(){return this.clone(_r(this._zod.def,{catchall:S4()}))},strict(){return this.clone(_r(this._zod.def,{catchall:IK()}))},strip(){return this.clone(_r(this._zod.def,{catchall:void 0}))},extend(e){return sY(this,e)},safeExtend(e){return cY(this,e)},merge(e){return lY(this,e)},pick(e){return aY(this,e)},omit(e){return iY(this,e)},partial(...e){return qx(gE,this,e[0])},exactPartial(...e){return qx(yE,this,e[0],"exactPartial")},required(...e){return uY(bE,this,e[0])}});function pE(e,t){const n={type:"object",shape:e??{},...Fe(t)};return new VK(n)}const UK=le("ZodUnion",(e,t)=>{pq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>$X(e,n,r,a),e.options=t.options});function $K(e,t){return new UK({type:"union",options:e,...Fe(t)})}const ZK=le("ZodIntersection",(e,t)=>{gq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>ZX(e,n,r,a)});function YK(e,t){return new ZK({type:"intersection",left:e,right:t})}const Yy=le("ZodEnum",(e,t)=>{yq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(r,a,s)=>FX(e,r,a),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const l of r)if(n.has(l))s[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Yy({...t,checks:[],...Fe(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const l of r)if(n.has(l))delete s[l];else throw new Error(`Key ${l} not found in enum`);return new Yy({...t,checks:[],...Fe(a),entries:s})}});function zb(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Yy({type:"enum",entries:n,...Fe(t)})}const GK=le("ZodTransform",(e,t)=>{Pb(),bq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>HX(e,n,r,a),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new F8(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(yu(s,n.value,t));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),"input"in l||(l.input=n.value),l.inst??(l.inst=e),n.issues.push(yu(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n)):(n.value=a,n)}});function qK(e){return new GK({type:"transform",transform:e})}const gE=le("ZodOptional",(e,t)=>{J8.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dE(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function w4(e){return new gE({type:"optional",innerType:e})}const yE=le("ZodExactOptional",(e,t)=>{vq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dE(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function XK(e){return new yE({type:"optional",innerType:e})}const KK=le("ZodNullable",(e,t)=>{Sq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>YX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function x4(e){return new KK({type:"nullable",innerType:e})}const JK=le("ZodDefault",(e,t)=>{wq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>qX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function QK(e,t){return new JK({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():D8(t)}})}const WK=le("ZodPrefault",(e,t)=>{xq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>XX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function eJ(e,t){return new WK({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():D8(t)}})}const bE=le("ZodNonOptional",(e,t)=>{_q.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>GX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function tJ(e,t){return new bE({type:"nonoptional",innerType:e,...Fe(t)})}const nJ=le("ZodCatch",(e,t)=>{Tq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>KX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function rJ(e,t){return new nJ({type:"catch",innerType:e,catchValue:typeof t=="function"?t:SY(t)})}const oJ=le("ZodPipe",(e,t)=>{kq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>JX(e,n,r,a),e.in=t.in,e.out=t.out});function _4(e,t){return new oJ({type:"pipe",in:e,out:t})}const aJ=le("ZodReadonly",(e,t)=>{Eq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>QX(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function iJ(e){return new aJ({type:"readonly",innerType:e})}const sJ=le("ZodCustom",(e,t)=>{Cq.init(e,t),pn.init(e,t),e._zod.processJSONSchema=(n,r,a)=>IX(e,n,r,a)});function cJ(e,t={}){return EX(sJ,e,t)}function lJ(e,t){return CX(e,t)}const vE=zb(["AI","Web"]),uJ=zb(["newest","oldest"]);pE({title:Ed(),publishedAt:Ed().date(),description:Ed().optional(),category:mE(vE),content:Ed()});const fJ=pE({category:vE.optional().catch(void 0),sort:uJ.optional().catch(void 0),archived:jK().optional().catch(void 0)});var dJ=e=>{const t="input"in e?e.input:"input",n="output"in e?e.output:"output",r="schema"in e?e.schema._input
74:e._input,a="schema"in e?e.schema._output:e._output;return{types:{input:t==="output"?a:r,output:n==="input"?r:a},parse:s=>"schema"in e?e.schema.parse(s):e.parse(s)}};const hJ=()=>eo(()=>import("./index-5l63p4wv.js"),__vite__mapDeps([50,43,30,34,2,6,35,10,19,5,36,46,47,39,48])),mJ=Sc()({validateSearch:dJ(fJ),head:({params:e})=>{const t=Dh(iu(e.locale)).meta;return{meta:[{title:t.postsTitle},{name:"description",content:t.postsDescription},{property:"og:title",content:t.postsTitle},{property:"og:description",content:t.postsDescription}]}},component:wc(hJ,"component")}),pJ=()=>eo(()=>import("./_slug-C_YuLIum.js").then(e=>e.$),__vite__mapDeps([51,14,5,17,48])),gJ=Sc()({component:wc(pJ,"component"),loader:async({params:e})=>{const t=iu(e.locale),n=await LF({data:{slug:e.slug,locale:t}});if(!n)throw kh();return{post:n,locale:t}},head:({loaderData:e,params:t})=>{const n=iu(t.locale),r=Dh(n).meta,a=e?.post,s=a?`${a.title} | ${Ze.name}`:Ze.name,l=a?.description||r.postFallbackDescription,f=n==="zh"?"/zh":"",h=`${Ze.url}${f}/post/${a?.slug}`,d=a?`${Ze.url}${a.locale==="zh"?"/zh":""}/post/${a.slug}`:h,p=a?.hasTranslation?[{rel:"canonical",href:d},{rel:"alternate",hreflang:"en",href:`${Ze.url}/post/${a.slug}`},{rel:"alternate",hreflang:"zh",href:`${Ze.url}/zh/post/${a.slug}`},{rel:"alternate",hreflang:"x-default",href:`${Ze.url}/post/${a.slug}`}]:[{rel:"canonical",href:d}];return{meta:[{title:s},{name:"description",content:l},{property:"og:type",content:"article"},{property:"og:title",content:s},{property:"og:description",content:l},{property:"og:url",content:h},{property:"og:locale",content:n==="zh"?"zh_CN":"en_US"},{property:"og:image",content:`${Ze.url}/og-image.png`},{property:"article:published_time",content:a?.publishedAt},{property:"article:author",content:Ze.author},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:s},{name:"twitter:description",content:l},{name:"twitter:image",content:`${Ze.url}/og-image.png`}],links:p,scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:a?.title,description:l,url:d,inLanguage:n==="zh"?"zh-CN":"en",datePublished:a?.publishedAt,author:{"@type":"Person",name:Ze.author,url:Ze.url}})}]}}}),Oc=VZ.update({id:"/{-$locale}",path:"/{-$locale}",getParentRoute:()=>R8}),yJ=$Z.update({id:"/",path:"/",getParentRoute:()=>Oc}),bJ=YZ.update({id:"/projects",path:"/projects",getParentRoute:()=>Oc}),vJ=qZ.update({id:"/docknote/privacy",path:"/docknote/privacy",getParentRoute:()=>Oc}),SJ=mJ.update({id:"/post/",path:"/post/",getParentRoute:()=>Oc}),wJ=gJ.update({id:"/post/$slug",path:"/post/$slug",getParentRoute:()=>Oc}),xJ={Char123LocaleChar125ProjectsRoute:bJ,Char123LocaleChar125IndexRoute:yJ,Char123LocaleChar125DocknotePrivacyRoute:vJ,Char123LocaleChar125PostSlugRoute:wJ,Char123LocaleChar125PostIndexRoute:SJ},_J=Oc._addFileChildren(xJ),TJ={Char123LocaleChar125Route:_J},kJ=R8._addFileChildren(TJ);function EJ(){return jO({routeTree:kJ,defaultPreload:"intent",scrollRestoration:!0,scrollRestorationBehavior:"instant",defaultViewTransition:!0})}async function CJ(){const e=await EJ();let t;return t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push($M),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:t}),e.stores.ids.get().length||await XA(e),e}var AJ=CJ;function RJ(){return AJ().finally(()=>window.$_TSR?.h())}var Ng;function MJ(){return Ng||(Ng=RJ()),I.jsx(KM,{promise:Ng,children:e=>I.jsx(IO,{router:e})})}O.startTransition(()=>{IC.hydrateRoot(document,I.jsx(O.StrictMode,{children:I.jsx(MJ,{})}))});export{O as $,d$ as A,bb as B,gZ as C,GQ as D,yh as E,$Q as F,Nx as G,UQ as H,SZ as I,mZ as J,G$ as K,_Z as L,c8 as M,tZ as N,kZ as O,xZ as P,TZ as Q,hc as R,Re as S,c$ as T,l$ as U,KQ as V,B$ as W,u8 as X,VQ as Y,yZ as Z,XQ as _,u$ as a,UJ as a$,I as a0,PO as a1,vu as a2,Xd as a3,Ze as a4,p_ as a5,mc as a6,Ka as a7,z1 as a8,jN as a9,hr as aA,$J as aB,pQ as aC,AL as aD,sy as aE,Pn as aF,hQ as aG,TQ as aH,Su as aI,nT as aJ,zB as aK,KN as aL,PQ as aM,zQ as aN,F1 as aO,po as aP,FJ as aQ,cd as aR,to as aS,HJ as aT,J5 as aU,mQ as aV,Uj as aW,cj as aX,qB as aY,QB as aZ,nj as a_,LJ as aa,NJ as ab,di as ac,DJ as ad,v1 as ae,mJ as af,Pp as ag,p1 as ah,PJ as ai,nn as aj,Fj as ak,dQ as al,cu as am,Kn as an,WJ as ao,Mn as ap,Vi as aq,Ko as ar,Wr as as,iL as at,rT as au,fL as av,Z1 as aw,Rn as ax,Ij as ay,cc as az,mu as b,rc as b$,JB as b0,fT as b1,vF as b2,HQ as b3,tn as b4,wO as b5,eo as b6,bu as b7,T4 as b8,PC as b9,mj as bA,ij as bB,FN as bC,nz as bD,z5 as bE,oz as bF,rz as bG,BJ as bH,w1 as bI,$5 as bJ,ly as bK,Kr as bL,e3 as bM,eQ as bN,tQ as bO,xN as bP,BB as bQ,mN as bR,td as bS,wQ as bT,LQ as bU,RQ as bV,SQ as bW,eT as bX,K_ as bY,TT as bZ,ha as b_,gJ as ba,gh as bb,jU as bc,So as bd,U1 as be,FT as bf,K1 as bg,GJ as bh,us as bi,xc as bj,AQ as bk,_Q as bl,H1 as bm,lT as bn,CQ as bo,vQ as bp,yF as bq,uj as br,iy as bs,kQ as bt,aL as bu,fQ as bv,gL as bw,DQ as bx,$i as by,pj as bz,Cx as c,tj as c$,b5 as c0,rO as c1,ZJ as c2,KJ as c3,Wd as c4,ns as c5,ca as c6,YJ as c7,pr as c8,JJ as c9,jQ as cA,QL as c
74B,lQ as cC,iQ as cD,Bp as cE,nd as cF,uQ as cG,nQ as cH,DB as cI,xQ as cJ,yQ as cK,Bj as cL,su as cM,fj as cN,VJ as cO,$p as cP,EQ as cQ,MQ as cR,IJ as cS,aT as cT,J_ as cU,jJ as cV,ry as cW,cQ as cX,IQ as cY,fy as cZ,BQ as c_,gQ as ca,PB as cb,$1 as cc,K5 as cd,Vh as ce,OJ as cf,MC as cg,YQ as ch,J$ as ci,s$ as cj,qQ as ck,uz as cl,Pl as cm,wd as cn,Rx as co,En as cp,DC as cq,Ux as cr,T8 as cs,JQ as ct,EZ as cu,OZ as cv,Yx as cw,zZ as cx,dZ as cy,bQ as cz,s8 as d,FQ as d0,XJ as d1,pB as d2,oh as d3,NQ as d4,OQ as d5,Zj as d6,sQ as d7,pN as d8,Yp as d9,oQ as da,ZL as db,aQ as dc,qJ as dd,QJ as de,Vp as df,Up as dg,mL as dh,pL as di,mT as dj,iT as dk,mr as dl,Hj as dm,WL as dn,YL as dp,X1 as dq,rQ as dr,$L as ds,jh as dt,j$ as e,Ax as f,N$ as g,X$ as h,p$ as i,Ji as j,W$ as k,h$ as l,Ag as m,l8 as n,nZ as o,ZQ as p,U$ as q,aZ as r,f8 as s,Gl as t,f$ as u,m$ as v,iZ as w,y8 as x,Ny as y,Gi as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.