ani-web 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +220 -0
- package/client/dist/assets/AnimeInfo-B88ZA3gl.js +1 -0
- package/client/dist/assets/AnimeInfo-R63luGTP.css +1 -0
- package/client/dist/assets/AnimeInfoPage-xGVarrXG.js +2 -0
- package/client/dist/assets/Button-Fq9KaUOg.css +1 -0
- package/client/dist/assets/Button-lkEUHIDS.js +1 -0
- package/client/dist/assets/ErrorMessage-BVWNgHMx.css +1 -0
- package/client/dist/assets/ErrorMessage-BXKDLzn8.js +1 -0
- package/client/dist/assets/Home-O1FbN8t_.js +1 -0
- package/client/dist/assets/Home-r0eYbWNc.css +1 -0
- package/client/dist/assets/Insights-CF4K-oO5.css +1 -0
- package/client/dist/assets/Insights-opcB-aTo.js +1 -0
- package/client/dist/assets/MAL-BGM33N5c.js +1 -0
- package/client/dist/assets/MAL-DeQNXXPx.css +1 -0
- package/client/dist/assets/Player-BarbgKjI.css +1 -0
- package/client/dist/assets/Player-CSyGax33.js +9 -0
- package/client/dist/assets/PlayerSettings-BaCVQyw6.js +1 -0
- package/client/dist/assets/PlayerSettings-l6aLKrHh.css +1 -0
- package/client/dist/assets/QueueRail-Cxn5U8kE.js +1 -0
- package/client/dist/assets/QueueRail-DOM_pWkE.css +1 -0
- package/client/dist/assets/RemoveConfirmationModal-BBiogSdf.css +1 -0
- package/client/dist/assets/RemoveConfirmationModal-DatCZQKq.js +1 -0
- package/client/dist/assets/Search-BzO-aRP7.css +1 -0
- package/client/dist/assets/Search-DJxo3BYH.js +1 -0
- package/client/dist/assets/SearchableSelect-BkCrf6E8.css +1 -0
- package/client/dist/assets/SearchableSelect-BzYsMz8B.js +1 -0
- package/client/dist/assets/Settings-Bv9fX-x3.css +1 -0
- package/client/dist/assets/Settings-C5adinOe.js +1 -0
- package/client/dist/assets/SynopsisText-C3AK-aRc.js +1 -0
- package/client/dist/assets/SynopsisText-DsI3mW5v.css +1 -0
- package/client/dist/assets/ToggleSwitch-BIlQxIjg.css +1 -0
- package/client/dist/assets/ToggleSwitch-CrXim14A.js +1 -0
- package/client/dist/assets/Watchlist-CXw0vbNx.js +1 -0
- package/client/dist/assets/Watchlist-a2RHQogs.css +1 -0
- package/client/dist/assets/hls.light-DcbkToIY.js +27 -0
- package/client/dist/assets/index-BzX_xmnf.css +1 -0
- package/client/dist/assets/index-Ciivz6fh.js +178 -0
- package/client/dist/assets/useAnimeInfoData-Dqthchpa.js +1 -0
- package/client/dist/assets/useIsMobile-BviODivc.js +1 -0
- package/client/dist/assets/vendor-Bc4EraM_.js +3 -0
- package/client/dist/favicon.ico +0 -0
- package/client/dist/index.html +35 -0
- package/client/dist/logo.png +0 -0
- package/client/dist/placeholder.svg +4 -0
- package/client/dist/robots.txt +3 -0
- package/client/package.json +58 -0
- package/orchestrator.js +323 -0
- package/package.json +88 -0
- package/server/.env +1 -0
- package/server/dist/config.js +89 -0
- package/server/dist/constants.json +1359 -0
- package/server/dist/controllers/auth.controller.js +215 -0
- package/server/dist/controllers/data.controller.js +232 -0
- package/server/dist/controllers/insights.controller.js +200 -0
- package/server/dist/controllers/proxy.controller.js +353 -0
- package/server/dist/controllers/settings.controller.js +159 -0
- package/server/dist/controllers/watchlist.controller.js +749 -0
- package/server/dist/db.js +152 -0
- package/server/dist/discord-rpc.js +279 -0
- package/server/dist/github-sync.js +342 -0
- package/server/dist/google.js +310 -0
- package/server/dist/logger.js +21 -0
- package/server/dist/providers/123anime.provider.js +226 -0
- package/server/dist/providers/allanime.provider.js +736 -0
- package/server/dist/providers/animepahe.provider.js +457 -0
- package/server/dist/providers/animeya.provider.js +787 -0
- package/server/dist/providers/megaplay.provider.js +264 -0
- package/server/dist/providers/provider.interface.js +2 -0
- package/server/dist/rclone.js +126 -0
- package/server/dist/repositories/insights.repository.js +42 -0
- package/server/dist/repositories/notifications.repository.js +30 -0
- package/server/dist/repositories/queue.repository.js +38 -0
- package/server/dist/repositories/settings.repository.js +14 -0
- package/server/dist/repositories/shows-meta.repository.js +41 -0
- package/server/dist/repositories/watched-episodes.repository.js +67 -0
- package/server/dist/repositories/watchlist.repository.js +80 -0
- package/server/dist/routes/auth.routes.js +26 -0
- package/server/dist/routes/data.routes.js +42 -0
- package/server/dist/routes/insights.routes.js +12 -0
- package/server/dist/routes/proxy.routes.js +14 -0
- package/server/dist/routes/settings.routes.js +27 -0
- package/server/dist/routes/watchlist.routes.js +46 -0
- package/server/dist/server.js +229 -0
- package/server/dist/sync-config.js +28 -0
- package/server/dist/sync.js +427 -0
- package/server/dist/utils/db-utils.js +15 -0
- package/server/dist/utils/env.utils.js +79 -0
- package/server/dist/utils/machine-id.js +46 -0
- package/server/dist/utils/request-context.js +5 -0
- package/server/package.json +19 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var Se,R,xr,X,zt,kr,Fr,Xe,Le,me,Mr,St,st,it,Tr,Ne={},Qe=[],qn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pe=Array.isArray;function z(e,t){for(var r in t)e[r]=t[r];return e}function Pt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,r){var n,s,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Se.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return ye(e,a,n,s,null)}function ye(e,t,r,n,s){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++xr,__i:-1,__u:0};return s==null&&R.vnode!=null&&R.vnode(i),i}function Wn(){return{current:null}}function U(e){return e.children}function B(e,t){this.props=e,this.context=t}function ue(e,t){if(t==null)return e.__?ue(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ue(e):null}function Kn(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],s=[],i=z({},t);i.__v=t.__v+1,R.vnode&&R.vnode(i),Et(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??ue(t),!!(32&t.__u),s),i.__v=t.__v,i.__.__k[i.__i]=i,Ir(n,i,s),t.__e=t.__=null,i.__e!=r&&$r(i)}}function $r(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),$r(e)}function at(e){(!e.__d&&(e.__d=!0)&&X.push(e)&&!He.__r++||zt!=R.debounceRendering)&&((zt=R.debounceRendering)||kr)(He)}function He(){try{for(var e,t=1;X.length;)X.length>t&&X.sort(Fr),e=X.shift(),t=X.length,Kn(e)}finally{X.length=He.__r=0}}function Lr(e,t,r,n,s,i,a,o,l,c,h){var u,f,p,y,_,d,m,v=n&&n.__k||Qe,g=t.length;for(l=zn(r,t,v,l,g),u=0;u<g;u++)(p=r.__k[u])!=null&&(f=p.__i!=-1&&v[p.__i]||Ne,p.__i=u,d=Et(e,p,f,s,i,a,o,l,c,h),y=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ct(f.ref,null,p),h.push(p.ref,p.__c||y,p)),_==null&&y!=null&&(_=y),(m=!!(4&p.__u))||f.__k===p.__k?(l=Dr(p,l,e,m),m&&f.__e&&(f.__e=null)):typeof p.type=="function"&&d!==void 0?l=d:y&&(l=y.nextSibling),p.__u&=-7);return r.__e=_,l}function zn(e,t,r,n,s){var i,a,o,l,c,h=r.length,u=h,f=0;for(e.__k=new Array(s),i=0;i<s;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[i]=ye(null,a,null,null,null):Pe(a)?a=e.__k[i]=ye(U,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=ye(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+f,a.__=e,a.__b=e.__b+1,o=null,(c=a.__i=Vn(a,r,l,u))!=-1&&(u--,(o=r[c])&&(o.__u|=2)),o==null||o.__v==null?(c==-1&&(s>h?f--:s<h&&f++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,a.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<h;i++)(o=r[i])!=null&&(2&o.__u)==0&&(o.__e==n&&(n=ue(o)),Ar(o,o));return n}function Dr(e,t,r,n){var s,i;if(typeof e.type=="function"){for(s=e.__k,i=0;s&&i<s.length;i++)s[i]&&(s[i].__=e,t=Dr(s[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=ue(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function G(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pe(e)?e.some(function(r){G(r,t)}):t.push(e)),t}function Vn(e,t,r,n){var s,i,a,o=e.key,l=e.type,c=t[r],h=c!=null&&(2&c.__u)==0;if(c===null&&o==null||h&&o==c.key&&l==c.type)return r;if(n>(h?1:0)){for(s=r-1,i=r+1;s>=0||i<t.length;)if((c=t[a=s>=0?s--:i++])!=null&&(2&c.__u)==0&&o==c.key&&l==c.type)return a}return-1}function Vt(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||qn.test(t)?r:r+"px"}function Me(e,t,r,n,s){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Vt(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Vt(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Mr,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[me]=n[me]:(r[me]=St,e.addEventListener(t,i?it:st,i)):e.removeEventListener(t,i?it:st,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Gt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Le]==null)t[Le]=St++;else if(t[Le]<r[me])return;return r(R.event?R.event(t):t)}}}function Et(e,t,r,n,s,i,a,o,l,c){var h,u,f,p,y,_,d,m,v,g,P,S,L,k,O,F=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),i=[o=t.__e=r.__e]),(h=R.__b)&&h(t);e:if(typeof F=="function")try{if(m=t.props,v=F.prototype&&F.prototype.render,g=(h=F.contextType)&&n[h.__c],P=h?g?g.props.value:h.__:n,r.__c?d=(u=t.__c=r.__c).__=u.__E:(v?t.__c=u=new F(m,P):(t.__c=u=new B(m,P),u.constructor=F,u.render=Jn),g&&g.sub(u),u.state||(u.state={}),u.__n=n,f=u.__d=!0,u.__h=[],u._sb=[]),v&&u.__s==null&&(u.__s=u.state),v&&F.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=z({},u.__s)),z(u.__s,F.getDerivedStateFromProps(m,u.__s))),p=u.props,y=u.state,u.__v=t,f)v&&F.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),v&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(v&&F.getDerivedStateFromProps==null&&m!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,P),t.__v==r.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,P)===!1){t.__v!=r.__v&&(u.props=m,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(D){D&&(D.__=t)}),Qe.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,P),v&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,y,_)})}if(u.context=P,u.props=m,u.__P=e,u.__e=!1,S=R.__r,L=0,v)u.state=u.__s,u.__d=!1,S&&S(t),h=u.render(u.props,u.state,u.context),Qe.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,S&&S(t),h=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++L<25);u.state=u.__s,u.getChildContext!=null&&(n=z(z({},n),u.getChildContext())),v&&!f&&u.getSnapshotBeforeUpdate!=null&&(_=u.getSnapshotBeforeUpdate(p,y)),k=h!=null&&h.type===U&&h.key==null?Ur(h.props.children):h,o=Lr(e,Pe(k)?k:[k],t,r,n,s,i,a,o,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),d&&(u.__E=u.__=null)}catch(D){if(t.__v=null,l||i!=null)if(D.then){for(t.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;i[i.indexOf(o)]=null,t.__e=o}else{for(O=i.length;O--;)Pt(i[O]);ot(t)}else t.__e=r.__e,t.__k=r.__k,D.then||ot(t);R.__e(D,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):o=t.__e=Gn(r.__e,t,r,n,s,i,a,l,c);return(h=R.diffed)&&h(t),128&t.__u?void 0:o}function ot(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ot))}function Ir(e,t,r){for(var n=0;n<r.length;n++)Ct(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){R.__e(i,s.__v)}})}function Ur(e){return typeof e!="object"||e==null||e.__b>0?e:Pe(e)?e.map(Ur):z({},e)}function Gn(e,t,r,n,s,i,a,o,l){var c,h,u,f,p,y,_,d=r.props||Ne,m=t.props,v=t.type;if(v=="svg"?s="http://www.w3.org/2000/svg":v=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,i[c]=null;break}}if(e==null){if(v==null)return document.createTextNode(m);e=document.createElementNS(s,v,m.is&&m),o&&(R.__m&&R.__m(t,i),o=!1),i=null}if(v==null)d===m||o&&e.data==m||(e.data=m);else{if(i=i&&Se.call(e.childNodes),!o&&i!=null)for(d={},c=0;c<e.attributes.length;c++)d[(p=e.attributes[c]).name]=p.value;for(c in d)p=d[c],c=="dangerouslySetInnerHTML"?u=p:c=="children"||c in m||c=="value"&&"defaultValue"in m||c=="checked"&&"defaultChecked"in m||Me(e,c,null,p,s);for(c in m)p=m[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?h=p:c=="value"?y=p:c=="checked"?_=p:o&&typeof p!="function"||d[c]===p||Me(e,c,p,d[c],s);if(h)o||u&&(h.__html==u.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(u&&(e.innerHTML=""),Lr(t.type=="template"?e.content:e,Pe(f)?f:[f],t,r,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,a,i?i[0]:r.__k&&ue(r,0),o,l),i!=null)for(c=i.length;c--;)Pt(i[c]);o||(c="value",v=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[c]||v=="progress"&&!y||v=="option"&&y!=d[c])&&Me(e,c,y,d[c],s),c="checked",_!=null&&_!=e[c]&&Me(e,c,_,d[c],s))}return e}function Ct(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(s){R.__e(s,r)}}function Ar(e,t,r){var n,s;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Ct(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){R.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&Ar(n[s],t,r||typeof e.type!="function");r||Pt(e.__e),e.__c=e.__=e.__e=void 0}function Jn(e,t,r){return this.constructor(e,r)}function ve(e,t,r){var n,s,i,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),s=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Et(t,e=(!n&&r||t).__k=b(U,null,[e]),s||Ne,Ne,t.namespaceURI,!n&&r?[r]:s?null:t.firstChild?Se.call(t.childNodes):null,i,!n&&r?r:s?s.__e:t.firstChild,n,a),Ir(i,e,a)}function Nr(e,t){ve(e,t,Nr)}function Yn(e,t,r){var n,s,i,a,o=z({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?s=t[i]:o[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(o.children=arguments.length>3?Se.call(arguments,2):r),ye(e.type,o,n||e.key,s||e.ref,null)}function $(e){function t(r){var n,s;return this.getChildContext||(n=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(a){a.__e=!0,at(a)})},this.sub=function(i){n.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),a&&a.call(i)}}),r.children}return t.__c="__cC"+Tr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Se=Qe.slice,R={__e:function(e,t,r,n){for(var s,i,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),a=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),a=s.__d),a)return s.__E=s}catch(o){e=o}throw e}},xr=0,B.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=z({},this.state),typeof e=="function"&&(e=e(z({},r),this.props)),e&&z(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),at(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),at(this))},B.prototype.render=U,X=[],kr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Fr=function(e,t){return e.__v.__b-t.__v.__b},He.__r=0,Xe=Math.random().toString(8),Le="__d"+Xe,me="__a"+Xe,Mr=/(PointerCapture)$|Capture$/i,St=0,st=Gt(!1),it=Gt(!0),Tr=0;var Xn=0;function Zn(e,t,r,n,s,i){t||(t={});var a,o,l=t;if("ref"in l)for(o in l={},t)o=="ref"?a=t[o]:l[o]=t[o];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Xn,__i:-1,__u:0,__source:s,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(o in a)l[o]===void 0&&(l[o]=a[o]);return R.vnode&&R.vnode(c),c}var ee,E,Ze,Jt,le=0,Qr=[],x=R,Yt=x.__b,Xt=x.__r,Zt=x.diffed,er=x.__c,tr=x.unmount,rr=x.__;function ce(e,t){x.__h&&x.__h(E,e,le||t),le=0;var r=E.__H||(E.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function V(e){return le=1,Ot(qr,e)}function Ot(e,t,r){var n=ce(ee++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):qr(void 0,t),function(o){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,o);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=E,!E.__f)){var s=function(o,l,c){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(f){return f.__c});if(h.every(function(f){return!f.__N}))return!i||i.call(this,o,l,c);var u=n.__c.props!==o;return h.some(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),i&&i.call(this,o,l,c)||u};E.__f=!0;var i=E.shouldComponentUpdate,a=E.componentWillUpdate;E.componentWillUpdate=function(o,l,c){if(this.__e){var h=i;i=void 0,s(o,l,c),i=h}a&&a.call(this,o,l,c)},E.shouldComponentUpdate=s}return n.__N||n.__}function Q(e,t){var r=ce(ee++,3);!x.__s&&xt(r.__H,t)&&(r.__=e,r.u=t,E.__H.__h.push(r))}function ie(e,t){var r=ce(ee++,4);!x.__s&&xt(r.__H,t)&&(r.__=e,r.u=t,E.__h.push(r))}function te(e){return le=5,I(function(){return{current:e}},[])}function Hr(e,t,r){le=6,ie(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function I(e,t){var r=ce(ee++,7);return xt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function H(e,t){return le=8,I(function(){return e},t)}function w(e){var t=E.context[e.__c],r=ce(ee++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(E)),t.props.value):e.__}function jr(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function Br(){var e=ce(ee++,11);if(!e.__){for(var t=E.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function es(){for(var e;e=Qr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(De),t.__h.some(ut),t.__h=[]}catch(r){t.__h=[],x.__e(r,e.__v)}}}x.__b=function(e){E=null,Yt&&Yt(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rr&&rr(e,t)},x.__r=function(e){Xt&&Xt(e),ee=0;var t=(E=e.__c).__H;t&&(Ze===E?(t.__h=[],E.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(De),t.__h.some(ut),t.__h=[],ee=0)),Ze=E},x.diffed=function(e){Zt&&Zt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qr.push(t)!==1&&Jt===x.requestAnimationFrame||((Jt=x.requestAnimationFrame)||ts)(es)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ze=E=null},x.__c=function(e,t){t.some(function(r){try{r.__h.some(De),r.__h=r.__h.filter(function(n){return!n.__||ut(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],x.__e(n,r.__v)}}),er&&er(e,t)},x.unmount=function(e){tr&&tr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{De(n)}catch(s){t=s}}),r.__H=void 0,t&&x.__e(t,r.__v))};var nr=typeof requestAnimationFrame=="function";function ts(e){var t,r=function(){clearTimeout(n),nr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);nr&&(t=requestAnimationFrame(r))}function De(e){var t=E,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),E=t}function ut(e){var t=E;e.__c=e.__(),E=t}function xt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function qr(e,t){return typeof t=="function"?t(e):t}function Wr(e,t){for(var r in t)e[r]=t[r];return e}function lt(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Ee(e,t){var r=t(),n=V({t:{__:r,u:t}}),s=n[0].t,i=n[1];return ie(function(){s.__=r,s.u=t,et(s)&&i({t:s})},[e,r,t]),Q(function(){return et(s)&&i({t:s}),e(function(){et(s)&&i({t:s})})},[e]),r}function et(e){try{return!((t=e.__)===(r=e.u())&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}var t,r}function Ce(e){e()}function Kr(e){return e}function zr(){return[!1,Ce]}var Vr=ie;function ct(e,t){this.props=e,this.context=t}function Gr(e,t){function r(s){var i=this.props.ref;return i!=s.ref&&i&&(typeof i=="function"?i(null):i.current=null),t?!t(this.props,s)||i!=s.ref:lt(this.props,s)}function n(s){return this.shouldComponentUpdate=r,b(e,s)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}(ct.prototype=new B).isPureReactComponent=!0,ct.prototype.shouldComponentUpdate=function(e,t){return lt(this.props,e)||lt(this.state,t)};var sr=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sr&&sr(e)};var rs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ke(e){function t(r){var n=Wr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=rs,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ir=function(e,t){return e==null?null:G(G(e).map(t))},Jr={map:ir,forEach:ir,count:function(e){return e?G(e).length:0},only:function(e){var t=G(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:G},ns=R.__e;R.__e=function(e,t,r,n){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}ns(e,t,r,n)};var ar=R.unmount;function Yr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Wr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Yr(n,t,r)})),e}function Xr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Xr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Ie(){this.__u=0,this.o=null,this.__b=null}function Zr(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ss(e){var t,r,n,s=null;function i(a){if(t||(t=e()).then(function(o){o&&(s=o.default||o),n=!0},function(o){r=o,n=!0}),r)throw r;if(!n)throw t;return s?b(s,a):null}return i.displayName="Lazy",i.__f=!0,i}function _e(){this.i=null,this.l=null}R.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ar&&ar(e)},(Ie.prototype=new B).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var s=Zr(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,s?s(l):l())};r.__R=a;var o=r.__P;r.__P=null;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Xr(c,c.__c.__P,c.__c.__O)}var h;for(n.setState({__a:n.__b=null});h=n.o.pop();)h.__P=o,h.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Ie.prototype.componentWillUnmount=function(){this.o=[]},Ie.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Yr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&b(U,null,e.fallback);return s&&(s.__u&=-33),[b(U,null,t.__a?null:e.children),s]};var or=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function is(e){return this.getChildContext=function(){return e.context},e.children}function as(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){ve(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(s,i){this.childNodes.push(s),t.h.insertBefore(s,i)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),t.h.removeChild(s)}}}ve(b(is,{context:t.context},e.__v),t.v)}function os(e,t){var r=b(as,{__v:e,h:t});return r.containerInfo=t,r}(_e.prototype=new B).__a=function(e){var t=this,r=Zr(t.__v),n=t.l.get(e);return n[0]++,function(s){var i=function(){t.props.revealOrder?(n.push(s),or(t,e,n)):s()};r?r(i):i()}},_e.prototype.render=function(e){this.i=null,this.l=new Map;var t=G(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},_e.prototype.componentDidUpdate=_e.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){or(e,r,t)})};var en=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,us=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ls=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cs=/[A-Z0-9]/g,hs=typeof document<"u",fs=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function tn(e,t,r){return t.__k==null&&(t.textContent=""),ve(e,t),typeof r=="function"&&r(),e?e.__c:null}function rn(e,t,r){return Nr(e,t),typeof r=="function"&&r(),e?e.__c:null}B.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(B.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ur=R.event;R.event=function(e){return ur&&(e=ur(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var kt,ds={configurable:!0,get:function(){return this.class}},lr=R.vnode;R.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,s={},i=n.indexOf("-")==-1;for(var a in r){var o=r[a];if(!(a==="value"&&"defaultValue"in r&&o==null||hs&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":l==="translate"&&o==="no"?o=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||fs(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":ls.test(a)&&(a=l):l=a="oninput":i&&us.test(a)?a=a.replace(cs,"-$&").toLowerCase():o===null&&(o=void 0),l==="oninput"&&s[a=l]&&(a="oninputCapture"),s[a]=o}}n=="select"&&(s.multiple&&Array.isArray(s.value)&&(s.value=G(r.children).forEach(function(c){c.props.selected=s.value.indexOf(c.props.value)!=-1})),s.defaultValue!=null&&(s.value=G(r.children).forEach(function(c){c.props.selected=s.multiple?s.defaultValue.indexOf(c.props.value)!=-1:s.defaultValue==c.props.value}))),r.class&&!r.className?(s.class=r.class,Object.defineProperty(s,"className",ds)):r.className&&(s.class=s.className=r.className),t.props=s})(e),e.$$typeof=en,lr&&lr(e)};var cr=R.__r;R.__r=function(e){cr&&cr(e),kt=e.__c};var hr=R.diffed;R.diffed=function(e){hr&&hr(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),kt=null};var ps={ReactCurrentDispatcher:{current:{readContext:function(e){return kt.__n[e.__c].props.value},useCallback:H,useContext:w,useDebugValue:jr,useDeferredValue:Kr,useEffect:Q,useId:Br,useImperativeHandle:Hr,useInsertionEffect:Vr,useLayoutEffect:ie,useMemo:I,useReducer:Ot,useRef:te,useState:V,useSyncExternalStore:Ee,useTransition:zr}}};function _s(e){return b.bind(null,e)}function Oe(e){return!!e&&e.$$typeof===en}function ms(e){return Oe(e)&&e.type===U}function ys(e){return!!e&&typeof e.displayName=="string"&&e.displayName.indexOf("Memo(")==0}function vs(e){return Oe(e)?Yn.apply(null,arguments):e}function nn(e){return!!e.__k&&(ve(null,e),!0)}function gs(e){return e&&(e.base||e.nodeType===1&&e)||null}var bs=function(e,t){return e(t)},Rs=function(e,t){var r=R.debounceRendering;R.debounceRendering=function(s){return s()};var n=e(t);return R.debounceRendering=r,n},ws=Oe,Ta={useState:V,useId:Br,useReducer:Ot,useEffect:Q,useLayoutEffect:ie,useInsertionEffect:Vr,useTransition:zr,useDeferredValue:Kr,useSyncExternalStore:Ee,startTransition:Ce,useRef:te,useImperativeHandle:Hr,useMemo:I,useCallback:H,useContext:w,useDebugValue:jr,version:"18.3.1",Children:Jr,render:tn,hydrate:rn,unmountComponentAtNode:nn,createPortal:os,createElement:b,createContext:$,createFactory:_s,cloneElement:vs,createRef:Wn,Fragment:U,isValidElement:Oe,isElement:ws,isFragment:ms,isMemo:ys,findDOMNode:gs,Component:B,PureComponent:ct,memo:Gr,forwardRef:Ke,flushSync:Rs,unstable_batchedUpdates:bs,StrictMode:U,Suspense:Ie,SuspenseList:_e,lazy:ss,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ps};function sn(e){return{render:function(t){tn(t,e)},unmount:function(){nn(e)}}}function Ss(e,t){return rn(t,e),sn(e)}const $a={createRoot:sn,hydrateRoot:Ss};var Ft=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,an=/^[\\/]{2}/;function Ps(e,t){return t+e.replace(/\\/g,"/")}var fr="popstate";function dr(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Es(e={}){function t(n,s){let i=s.state?.masked,{pathname:a,search:o,hash:l}=i||n.location;return ht("",{pathname:a,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default",i?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,s){return typeof s=="string"?s:ge(s)}return Os(t,r,null,e)}function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function j(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cs(){return Math.random().toString(36).substring(2,10)}function pr(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ht(e,t,r=null,n,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?he(t):t,state:r,key:t&&t.key||n||Cs(),mask:s}}function ge({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function he(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Os(e,t,r,n={}){let{window:s=document.defaultView,v5Compat:i=!1}=n,a=s.history,o="POP",l=null,c=h();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function h(){return(a.state||{idx:null}).idx}function u(){o="POP";let d=h(),m=d==null?null:d-c;c=d,l&&l({action:o,location:_.location,delta:m})}function f(d,m){o="PUSH";let v=dr(d)?d:ht(_.location,d,m);c=h()+1;let g=pr(v,c),P=_.createHref(v.mask||v);try{a.pushState(g,"",P)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(P)}i&&l&&l({action:o,location:_.location,delta:1})}function p(d,m){o="REPLACE";let v=dr(d)?d:ht(_.location,d,m);c=h();let g=pr(v,c),P=_.createHref(v.mask||v);a.replaceState(g,"",P),i&&l&&l({action:o,location:_.location,delta:0})}function y(d){return xs(s,d)}let _={get action(){return o},get location(){return e(s,a)},listen(d){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(fr,u),l=d,()=>{s.removeEventListener(fr,u),l=null}},createHref(d){return t(s,d)},createURL:y,encodeLocation(d){let m=y(d);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:p,go(d){return a.go(d)}};return _}function xs(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),C(n,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:ge(t);return s=s.replace(/ $/,"%20"),!r&&an.test(s)&&(s=n+s),new URL(s,n)}function on(e,t,r="/"){return ks(e,t,r,!1)}function ks(e,t,r,n,s){let i=typeof t=="string"?he(t):t,a=J(i.pathname||"/",r);if(a==null)return null;let o=Fs(e),l=null,c=Hs(a);for(let h=0;l==null&&h<o.length;++h)l=Qs(o[h],c,n);return l}function Fs(e){let t=un(e);return Ms(t),t}function un(e,t=[],r=[],n="",s=!1){let i=(a,o,l=s,c)=>{let h={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&l)return;C(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let u=q([n,h.relativePath]),f=r.concat(h);a.children&&a.children.length>0&&(C(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),un(a.children,t,f,u,l)),!(a.path==null&&!a.index)&&t.push({path:u,score:As(u,a.index),routesMeta:f.map((p,y)=>{let[_,d]=hn(p.relativePath,p.caseSensitive,y===f.length-1);return{...p,matcher:_,compiledParams:d}})})};return e.forEach((a,o)=>{if(a.path===""||!a.path?.includes("?"))i(a,o);else for(let l of ln(a.path))i(a,o,!0,l)}),t}function ln(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let a=ln(n.join("/")),o=[];return o.push(...a.map(l=>l===""?i:[i,l].join("/"))),s&&o.push(...a),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ms(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ns(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Ts=/^:[\w-]+$/,$s=3,Ls=2,Ds=1,Is=10,Us=-2,_r=e=>e==="*";function As(e,t){let r=e.split("/"),n=r.length;return r.some(_r)&&(n+=Us),t&&(n+=Ls),r.filter(s=>!_r(s)).reduce((s,i)=>s+(Ts.test(i)?$s:i===""?Ds:Is),n)}function Ns(e,t){return e.length===t.length&&e.slice(0,-1).every((n,s)=>n===t[s])?e[e.length-1]-t[t.length-1]:0}function Qs(e,t,r=!1){let{routesMeta:n}=e,s={},i="/",a=[];for(let o=0;o<n.length;++o){let l=n[o],c=o===n.length-1,h=i==="/"?t:t.slice(i.length)||"/",u={path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f=l.matcher&&l.compiledParams?cn(u,h,l.matcher,l.compiledParams):je(u,h),p=l.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=je({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},h)),!f)return null;Object.assign(s,f.params),a.push({params:s,pathname:q([i,f.pathname]),pathnameBase:qs(q([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=q([i,f.pathnameBase]))}return a}function je(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=hn(e.path,e.caseSensitive,e.end);return cn(e,t,r,n)}function cn(e,t,r,n){let s=t.match(r);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:n.reduce((c,{paramName:h,isOptional:u},f)=>{if(h==="*"){let y=o[f]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const p=o[f];return u&&!p?c[h]=void 0:c[h]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function hn(e,t=!1,r=!0){j(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l,c,h)=>{if(n.push({paramName:o,isOptional:l!=null}),l){let u=h.charAt(c+a.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function Hs(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return j(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function J(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function js(e,t="/"){let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?he(e):e,i;return r?(r=fn(r),r.startsWith("/")?i=mr(r.substring(1),"/"):i=mr(r,t)):i=t,{pathname:i,search:Ws(n),hash:Ks(s)}}function mr(e,t){let r=Be(t).split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function tt(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bs(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Mt(e){let t=Bs(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ze(e,t,r,n=!1){let s;typeof e=="string"?s=he(e):(s={...e},C(!s.pathname||!s.pathname.includes("?"),tt("?","pathname","search",s)),C(!s.pathname||!s.pathname.includes("#"),tt("#","pathname","hash",s)),C(!s.search||!s.search.includes("#"),tt("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,o;if(a==null)o=r;else{let u=t.length-1;if(!n&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),u-=1;s.pathname=f.join("/")}o=u>=0?t[u]:"/"}let l=js(s,o),c=a&&a!=="/"&&a.endsWith("/"),h=(i||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||h)&&(l.pathname+="/"),l}var fn=e=>e.replace(/[\\/]{2,}/g,"/"),q=e=>fn(e.join("/")),Be=e=>e.replace(/\/+$/,""),qs=e=>Be(e).replace(/^\/*/,"/"),Ws=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ks=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,zs=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Vs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Gs(e){let t=e.map(r=>r.route.path).filter(Boolean);return q(t)||"/"}var dn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pn(e,t){let r=e;if(typeof r!="string"||!Ft.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,s=!1;if(dn)try{let i=new URL(window.location.href),a=an.test(r)?new URL(Ps(r,i.protocol)):new URL(r),o=J(a.pathname,t);a.origin===i.origin&&o!=null?r=o+a.search+a.hash:s=!0}catch{j(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _n=["POST","PUT","PATCH","DELETE"];new Set(_n);var Js=["GET",..._n];new Set(Js);var Ys=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Xs(e){try{return Ys.includes(new URL(e).protocol)}catch{return!1}}var fe=$(null);fe.displayName="DataRouter";var Ve=$(null);Ve.displayName="DataRouterState";var mn=$(!1);function Zs(){return w(mn)}var yn=$({isTransitioning:!1});yn.displayName="ViewTransition";var ei=$(new Map);ei.displayName="Fetchers";var ti=$(null);ti.displayName="Await";var A=$(null);A.displayName="Navigation";var xe=$(null);xe.displayName="Location";var W=$({outlet:null,matches:[],isDataRoute:!1});W.displayName="Route";var Tt=$(null);Tt.displayName="RouteError";var vn="REACT_ROUTER_ERROR",ri="REDIRECT",ni="ROUTE_ERROR_RESPONSE";function si(e){if(e.startsWith(`${vn}:${ri}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function ii(e){if(e.startsWith(`${vn}:${ni}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new zs(t.status,t.statusText,t.data)}catch{}}function ai(e,{relative:t}={}){C(de(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=w(A),{hash:s,pathname:i,search:a}=ke(e,{relative:t}),o=i;return r!=="/"&&(o=i==="/"?r:q([r,i])),n.createHref({pathname:o,search:a,hash:s})}function de(){return w(xe)!=null}function K(){return C(de(),"useLocation() may be used only in the context of a <Router> component."),w(xe).location}var gn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bn(e){w(A).static||ie(e)}function $t(){let{isDataRoute:e}=w(W);return e?gi():oi()}function oi(){C(de(),"useNavigate() may be used only in the context of a <Router> component.");let e=w(fe),{basename:t,navigator:r}=w(A),{matches:n}=w(W),{pathname:s}=K(),i=JSON.stringify(Mt(n)),a=te(!1);return bn(()=>{a.current=!0}),H((l,c={})=>{if(j(a.current,gn),!a.current)return;if(typeof l=="number"){r.go(l);return}let h=ze(l,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:q([t,h.pathname])),(c.replace?r.replace:r.push)(h,c.state,c)},[t,r,i,s,e])}$(null);function La(){let{matches:e}=w(W);return e[e.length-1]?.params??{}}function ke(e,{relative:t}={}){let{matches:r}=w(W),{pathname:n}=K(),s=JSON.stringify(Mt(r));return I(()=>ze(e,JSON.parse(s),n,t==="path"),[e,s,n,t])}function ui(e,t){return Rn(e,t)}function Rn(e,t,r){C(de(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=w(A),{matches:s}=w(W),i=s[s.length-1],a=i?i.params:{},o=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let d=c&&c.path||"";Sn(o,!c||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${d}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
+
|
|
3
|
+
Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let h=K(),u;if(t){let d=typeof t=="string"?he(t):t;C(l==="/"||d.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${d.pathname}" was given in the \`location\` prop.`),u=d}else u=h;let f=u.pathname||"/",p=f;if(l!=="/"){let d=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(d.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(d=>Object.assign(d,{route:r.manifest[d.route.id]||d.route})):on(e,{pathname:p});j(c||y!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),j(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=di(y&&y.map(d=>Object.assign({},d,{params:Object.assign({},a,d.params),pathname:q([l,n.encodeLocation?n.encodeLocation(d.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?l:q([l,n.encodeLocation?n.encodeLocation(d.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathnameBase])})),s,r);return t&&_?b(xe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...u},navigationType:"POP"}},_):_}function li(){let e=vi(),t=Vs(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b(U,null,b("p",null,"💿 Hey developer 👋"),b("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b("code",{style:i},"ErrorBoundary")," or"," ",b("code",{style:i},"errorElement")," prop on your route.")),b(U,null,b("h2",null,"Unexpected Application Error!"),b("h3",{style:{fontStyle:"italic"}},t),r?b("pre",{style:s},r):null,a)}var ci=b(li,null),wn=class extends B{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=ii(e.digest);r&&(e=r)}let t=e!==void 0?b(W.Provider,{value:this.props.routeContext},b(Tt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b(hi,{error:e},t):t}};wn.contextType=mn;var rt=new WeakMap;function hi({children:e,error:t}){let{basename:r}=w(A);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=si(t.digest);if(n){let s=rt.get(t);if(s)throw s;let i=pn(n.location,r),a=i.absoluteURL||i.to;if(Xs(a))throw new Error("Invalid redirect location");if(dn&&!rt.get(t))if(i.isExternal||n.reloadDocument)window.location.href=a;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw rt.set(t,o),o}return b("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function fi({routeContext:e,match:t,children:r}){let n=w(fe);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),b(W.Provider,{value:e},r)}function di(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,i=n?.errors;if(i!=null){let h=s.findIndex(u=>u.route.id&&i?.[u.route.id]!==void 0);C(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let a=!1,o=-1;if(r&&n){a=n.renderFallback;for(let h=0;h<s.length;h++){let u=s[h];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=h),u.route.id){let{loaderData:f,errors:p}=n,y=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||y){r.isStatic&&(a=!0),o>=0?s=s.slice(0,o+1):s=[s[0]];break}}}}let l=r?.onError,c=n&&l?(h,u)=>{l(h,{location:n.location,params:n.matches?.[0]?.params??{},pattern:Gs(n.matches),errorInfo:u})}:void 0;return s.reduceRight((h,u,f)=>{let p,y=!1,_=null,d=null;n&&(p=i&&u.route.id?i[u.route.id]:void 0,_=u.route.errorElement||ci,a&&(o<0&&f===0?(Sn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,d=null):o===f&&(y=!0,d=u.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),v=()=>{let g;return p?g=_:y?g=d:u.route.Component?g=b(u.route.Component,null):u.route.element?g=u.route.element:g=h,b(fi,{match:u,routeContext:{outlet:h,matches:m,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?b(wn,{location:n.location,revalidation:n.revalidation,component:_,error:p,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):v()},null)}function Lt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pi(e){let t=w(fe);return C(t,Lt(e)),t}function _i(e){let t=w(Ve);return C(t,Lt(e)),t}function mi(e){let t=w(W);return C(t,Lt(e)),t}function Dt(e){let t=mi(e),r=t.matches[t.matches.length-1];return C(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function yi(){return Dt("useRouteId")}function vi(){let e=w(Tt),t=_i("useRouteError"),r=Dt("useRouteError");return e!==void 0?e:t.errors?.[r]}function gi(){let{router:e}=pi("useNavigate"),t=Dt("useNavigate"),r=te(!1);return bn(()=>{r.current=!0}),H(async(s,i={})=>{j(r.current,gn),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var yr={};function Sn(e,t,r){!t&&!yr[e]&&(yr[e]=!0,j(!1,r))}Gr(bi);function bi({routes:e,manifest:t,future:r,state:n,isStatic:s,onError:i}){return Rn(e,void 0,{manifest:t,state:n,isStatic:s,onError:i})}function Da({to:e,replace:t,state:r,relative:n}){C(de(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=w(A);j(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=w(W),{pathname:a}=K(),o=$t(),l=ze(e,Mt(i),a,n==="path"),c=JSON.stringify(l);return Q(()=>{o(JSON.parse(c),{replace:t,state:r,relative:n})},[o,c,n,t,r]),null}function Ri(e){C(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wi({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:s,static:i=!1,useTransitions:a}){C(!de(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=I(()=>({basename:o,navigator:s,static:i,useTransitions:a,future:{}}),[o,s,i,a]);typeof r=="string"&&(r=he(r));let{pathname:c="/",search:h="",hash:u="",state:f=null,key:p="default",mask:y}=r,_=I(()=>{let d=J(c,o);return d==null?null:{location:{pathname:d,search:h,hash:u,state:f,key:p,mask:y},navigationType:n}},[o,c,h,u,f,p,n,y]);return j(_!=null,`<Router basename="${o}"> is not able to match the URL "${c}${h}${u}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:b(A.Provider,{value:l},b(xe.Provider,{children:t,value:_}))}function Ia({children:e,location:t}){return ui(ft(e),t)}function ft(e,t=[]){let r=[];return Jr.forEach(e,(n,s)=>{if(!Oe(n))return;let i=[...t,s];if(n.type===U){r.push.apply(r,ft(n.props.children,i));return}C(n.type===Ri,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),C(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=ft(n.props.children,i)),r.push(a)}),r}var Ue="get",Ae="application/x-www-form-urlencoded";function Ge(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Si(e){return Ge(e)&&e.tagName.toLowerCase()==="button"}function Pi(e){return Ge(e)&&e.tagName.toLowerCase()==="form"}function Ei(e){return Ge(e)&&e.tagName.toLowerCase()==="input"}function Ci(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Oi(e,t){return e.button===0&&(!t||t==="_self")&&!Ci(e)}function dt(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function xi(e,t){let r=dt(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(i=>{r.append(s,i)})}),r}var Te=null;function ki(){if(Te===null)try{new FormData(document.createElement("form"),0),Te=!1}catch{Te=!0}return Te}var Fi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nt(e){return e!=null&&!Fi.has(e)?(j(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ae}"`),null):e}function Mi(e,t){let r,n,s,i,a;if(Pi(e)){let o=e.getAttribute("action");n=o?J(o,t):null,r=e.getAttribute("method")||Ue,s=nt(e.getAttribute("enctype"))||Ae,i=new FormData(e)}else if(Si(e)||Ei(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(n=l?J(l,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||Ue,s=nt(e.getAttribute("formenctype"))||nt(o.getAttribute("enctype"))||Ae,i=new FormData(o,e),!ki()){let{name:c,type:h,value:u}=e;if(h==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,u)}}else{if(Ge(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ue,n=null,s=Ae,a=e}return i&&s==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function It(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t,r,n){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${n}`:s.pathname=`${s.pathname}.${n}`:s.pathname==="/"?s.pathname=`_root.${n}`:t&&J(s.pathname,t)==="/"?s.pathname=`${Be(t)}/_root.${n}`:s.pathname=`${Be(s.pathname)}.${n}`,s}async function Ti(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $i(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Li(e,t,r){let n=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let a=await Ti(i,r);return a.links?a.links():[]}return[]}));return Ai(n.flat(1).filter($i).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function vr(e,t,r,n,s,i){let a=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,o=(l,c)=>r[c].pathname!==l.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==l.params["*"];return i==="assets"?t.filter((l,c)=>a(l,c)||o(l,c)):i==="data"?t.filter((l,c)=>{let h=n.routes[l.route.id];if(!h||!h.hasLoader)return!1;if(a(l,c)||o(l,c))return!0;if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function Di(e,t,{includeHydrateFallback:r}={}){return Ii(e.map(n=>{let s=t.routes[n.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function Ii(e){return[...new Set(e)]}function Ui(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Ai(e,t){let r=new Set;return new Set(t),e.reduce((n,s)=>{let i=JSON.stringify(Ui(s));return r.has(i)||(r.add(i),n.push({key:i,link:s})),n},[])}function Ut(){let e=w(fe);return It(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ni(){let e=w(Ve);return It(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var At=$(void 0);At.displayName="FrameworkContext";function Je(){let e=w(At);return It(e,"You must render this element inside a <HydratedRouter> element"),e}function Qi(e,t){let r=w(At),[n,s]=V(!1),[i,a]=V(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:h,onTouchStart:u}=t,f=te(null);Q(()=>{if(e==="render"&&a(!0),e==="viewport"){let _=m=>{m.forEach(v=>{a(v.isIntersecting)})},d=new IntersectionObserver(_,{threshold:.5});return f.current&&d.observe(f.current),()=>{d.disconnect()}}},[e]),Q(()=>{if(n){let _=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(_)}}},[n]);let p=()=>{s(!0)},y=()=>{s(!1),a(!1)};return r?e!=="intent"?[i,f,{}]:[i,f,{onFocus:pe(o,p),onBlur:pe(l,y),onMouseEnter:pe(c,p),onMouseLeave:pe(h,y),onTouchStart:pe(u,p)}]:[!1,f,{}]}function pe(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Hi({page:e,...t}){let r=Zs(),{nonce:n}=Je(),{router:s}=Ut(),i=I(()=>on(s.routes,e,s.basename),[s.routes,e,s.basename]);return i?(t.nonce==null&&n&&(t={...t,nonce:n}),r?b(Bi,{page:e,matches:i,...t}):b(qi,{page:e,matches:i,...t})):null}function ji(e){let{manifest:t,routeModules:r}=Je(),[n,s]=V([]);return Q(()=>{let i=!1;return Li(e,t,r).then(a=>{i||s(a)}),()=>{i=!0}},[e,t,r]),n}function Bi({page:e,matches:t,...r}){let n=K(),{future:s}=Je(),{basename:i}=Ut(),a=I(()=>{if(e===n.pathname+n.search+n.hash)return[];let o=Pn(e,i,s.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let h of t)typeof h.route.shouldRevalidate=="function"?l=!0:c.push(h.route.id);return l&&c.length>0&&o.searchParams.set("_routes",c.join(",")),[o.pathname+o.search]},[i,s.v8_trailingSlashAwareDataRequests,e,n,t]);return b(U,null,a.map(o=>b("link",{key:o,rel:"prefetch",as:"fetch",href:o,...r})))}function qi({page:e,matches:t,...r}){let n=K(),{future:s,manifest:i,routeModules:a}=Je(),{basename:o}=Ut(),{loaderData:l,matches:c}=Ni(),h=I(()=>vr(e,t,c,i,n,"data"),[e,t,c,i,n]),u=I(()=>vr(e,t,c,i,n,"assets"),[e,t,c,i,n]),f=I(()=>{if(e===n.pathname+n.search+n.hash)return[];let _=new Set,d=!1;if(t.forEach(v=>{let g=i.routes[v.route.id];!g||!g.hasLoader||(!h.some(P=>P.route.id===v.route.id)&&v.route.id in l&&a[v.route.id]?.shouldRevalidate||g.hasClientLoader?d=!0:_.add(v.route.id))}),_.size===0)return[];let m=Pn(e,o,s.v8_trailingSlashAwareDataRequests,"data");return d&&_.size>0&&m.searchParams.set("_routes",t.filter(v=>_.has(v.route.id)).map(v=>v.route.id).join(",")),[m.pathname+m.search]},[o,s.v8_trailingSlashAwareDataRequests,l,n,i,h,t,e,a]),p=I(()=>Di(u,i),[u,i]),y=ji(u);return b(U,null,f.map(_=>b("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),p.map(_=>b("link",{key:_,rel:"modulepreload",href:_,...r})),y.map(({key:_,link:d})=>b("link",{key:_,nonce:r.nonce,...d,crossOrigin:d.crossOrigin??r.crossOrigin})))}function Wi(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Ki=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ki&&(window.__reactRouterVersion="7.18.0")}catch{}function Ua({basename:e,children:t,useTransitions:r,window:n}){let s=te();s.current==null&&(s.current=Es({window:n,v5Compat:!0}));let i=s.current,[a,o]=V({action:i.action,location:i.location}),l=H(c=>{r===!1?o(c):Ce(()=>o(c))},[r]);return ie(()=>i.listen(l),[i,l]),b(wi,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,useTransitions:r})}var En=Ke(function({onClick:t,discover:r="render",prefetch:n="none",relative:s,reloadDocument:i,replace:a,mask:o,state:l,target:c,to:h,preventScrollReset:u,viewTransition:f,defaultShouldRevalidate:p,...y},_){let{basename:d,navigator:m,useTransitions:v}=w(A),g=typeof h=="string"&&Ft.test(h),P=pn(h,d);h=P.to;let S=ai(h,{relative:s}),L=K(),k=null;if(o){let Y=ze(o,[],L.mask?L.mask.pathname:"/",!0);d!=="/"&&(Y.pathname=Y.pathname==="/"?d:q([d,Y.pathname])),k=m.createHref(Y)}let[O,F,D]=Qi(n,y),Fe=Ji(h,{replace:a,mask:o,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:f,defaultShouldRevalidate:p,useTransitions:v});function oe(Y){t&&t(Y),Y.defaultPrevented||Fe(Y)}let re=!(P.isExternal||i),Kt=b("a",{...y,...D,href:(re?k:void 0)||P.absoluteURL||S,onClick:re?oe:t,ref:Wi(_,F),target:c,"data-discover":!g&&r==="render"?"true":void 0});return O&&!g?b(U,null,Kt,b(Hi,{page:S})):Kt});En.displayName="Link";var zi=Ke(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:s=!1,style:i,to:a,viewTransition:o,children:l,...c},h){let u=ke(a,{relative:c.relative}),f=K(),p=w(Ve),{navigator:y,basename:_}=w(A),d=p!=null&&ta(u)&&o===!0,m=y.encodeLocation?y.encodeLocation(u).pathname:u.pathname,v=f.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(v=v.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&_&&(g=J(g,_)||g);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=v===m||!s&&v.startsWith(m)&&v.charAt(P)==="/",L=g!=null&&(g===m||!s&&g.startsWith(m)&&g.charAt(m.length)==="/"),k={isActive:S,isPending:L,isTransitioning:d},O=S?t:void 0,F;typeof n=="function"?F=n(k):F=[n,S?"active":null,L?"pending":null,d?"transitioning":null].filter(Boolean).join(" ");let D=typeof i=="function"?i(k):i;return b(En,{...c,"aria-current":O,className:F,ref:h,style:D,to:a,viewTransition:o},typeof l=="function"?l(k):l)});zi.displayName="NavLink";var Vi=Ke(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:s,state:i,method:a=Ue,action:o,onSubmit:l,relative:c,preventScrollReset:h,viewTransition:u,defaultShouldRevalidate:f,...p},y)=>{let{useTransitions:_}=w(A),d=Zi(),m=ea(o,{relative:c}),v=a.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&Ft.test(o);return b("form",{ref:y,method:v,action:m,onSubmit:n?l:S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let L=S.nativeEvent.submitter,k=L?.getAttribute("formmethod")||a,O=()=>d(L||S.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:s,state:i,relative:c,preventScrollReset:h,viewTransition:u,defaultShouldRevalidate:f});_&&r!==!1?Ce(()=>O()):O()},...p,"data-discover":!g&&e==="render"?"true":void 0})});Vi.displayName="Form";function Gi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cn(e){let t=w(fe);return C(t,Gi(e)),t}function Ji(e,{target:t,replace:r,mask:n,state:s,preventScrollReset:i,relative:a,viewTransition:o,defaultShouldRevalidate:l,useTransitions:c}={}){let h=$t(),u=K(),f=ke(e,{relative:a});return H(p=>{if(Oi(p,t)){p.preventDefault();let y=r!==void 0?r:ge(u)===ge(f),_=()=>h(e,{replace:y,mask:n,state:s,preventScrollReset:i,relative:a,viewTransition:o,defaultShouldRevalidate:l});c?Ce(()=>_()):_()}},[u,h,f,r,n,s,t,e,i,a,o,l,c])}function Aa(e){j(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=te(dt(e)),r=te(!1),n=K(),s=I(()=>xi(n.search,r.current?null:t.current),[n.search]),i=$t(),a=H((o,l)=>{const c=dt(typeof o=="function"?o(new URLSearchParams(s)):o);r.current=!0,i("?"+c,l)},[i,s]);return[s,a]}var Yi=0,Xi=()=>`__${String(++Yi)}__`;function Zi(){let{router:e}=Cn("useSubmit"),{basename:t}=w(A),r=yi(),n=e.fetch,s=e.navigate;return H(async(i,a={})=>{let{action:o,method:l,encType:c,formData:h,body:u}=Mi(i,t);if(a.navigate===!1){let f=a.fetcherKey||Xi();await n(f,r,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:u,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await s(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:u,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,s,t,r])}function ea(e,{relative:t}={}){let{basename:r}=w(A),n=w(W);C(n,"useFormAction must be used inside a RouteContext");let[s]=n.matches.slice(-1),i={...ke(e||".",{relative:t})},a=K();if(e==null){i.search=a.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(h=>h==="")){o.delete("index"),l.filter(u=>u).forEach(u=>o.append("index",u));let h=o.toString();i.search=h?`?${h}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:q([r,i.pathname])),ge(i)}function ta(e,{relative:t}={}){let r=w(yn);C(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Cn("useViewTransitionState"),s=ke(e,{relative:t});if(!r.isTransitioning)return!1;let i=J(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=J(r.nextLocation.pathname,n)||r.nextLocation.pathname;return je(s.pathname,a)!=null||je(s.pathname,i)!=null}function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ae=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ra=class extends ae{#t;#e;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Nt=new ra,na={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},sa=class{#t=na;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},ne=new sa;function ia(e){setTimeout(e,0)}var aa=typeof window>"u"||"Deno"in globalThis;function T(){}function oa(e,t){return typeof e=="function"?e(t):e}function pt(e){return typeof e=="number"&&e>=0&&e!==1/0}function On(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Z(e,t){return typeof e=="function"?e(t):e}function N(e,t){return typeof e=="function"?e(t):e}function gr(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:a,stale:o}=e;if(a){if(n){if(t.queryHash!==Qt(a,t.options))return!1}else if(!be(t.queryKey,a))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||s&&s!==t.state.fetchStatus||i&&!i(t))}function br(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(se(t.options.mutationKey)!==se(i))return!1}else if(!be(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Qt(e,t){return(t?.queryKeyHashFn||se)(e)}function se(e){return JSON.stringify(e,(t,r)=>_t(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function be(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>be(e[r],t[r])):!1}var ua=Object.prototype.hasOwnProperty;function Ht(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Rr(e)&&Rr(t);if(!n&&!(_t(e)&&_t(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),o=a.length,l=n?new Array(o):{};let c=0;for(let h=0;h<o;h++){const u=n?h:a[h],f=e[u],p=t[u];if(f===p){l[u]=f,(n?h<i:ua.call(e,u))&&c++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){l[u]=p;continue}const y=Ht(f,p,r+1);l[u]=y,y===f&&c++}return i===o&&c===i?e:l}function Re(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Rr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _t(e){if(!wr(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!wr(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wr(e){return Object.prototype.toString.call(e)==="[object Object]"}function la(e){return new Promise(t=>{ne.setTimeout(t,e)})}function mt(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Ht(e,t):t}function ca(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function ha(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var jt=Symbol();function xn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bt(e,t){return typeof e=="function"?e(...t):!!e}function fa(e,t,r){let n=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var we=(()=>{let e=()=>aa;return{isServer(){return e()},setIsServer(t){e=t}}})();function yt(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var da=ia;function pa(){let e=[],t=0,r=o=>{o()},n=o=>{o()},s=da;const i=o=>{t?e.push(o):s(()=>{r(o)})},a=()=>{const o=e;e=[],o.length&&s(()=>{n(()=>{o.forEach(l=>{r(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||a()}return l},batchCalls:o=>(...l)=>{i(()=>{o(...l)})},schedule:i,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{s=o}}}var M=pa(),_a=class extends ae{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},qe=new _a;function ma(e){return Math.min(1e3*2**e,3e4)}function kn(e){return(e??"online")==="online"?qe.isOnline():!0}var vt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Fn(e){let t=!1,r=0,n;const s=yt(),i=()=>s.status!=="pending",a=_=>{if(!i()){const d=new vt(_);f(d),e.onCancel?.(d)}},o=()=>{t=!0},l=()=>{t=!1},c=()=>Nt.isFocused()&&(e.networkMode==="always"||qe.isOnline())&&e.canRun(),h=()=>kn(e.networkMode)&&e.canRun(),u=_=>{i()||(n?.(),s.resolve(_))},f=_=>{i()||(n?.(),s.reject(_))},p=()=>new Promise(_=>{n=d=>{(i()||c())&&_(d)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),y=()=>{if(i())return;let _;const d=r===0?e.initialPromise:void 0;try{_=d??e.fn()}catch(m){_=Promise.reject(m)}Promise.resolve(_).then(u).catch(m=>{if(i())return;const v=e.retry??(we.isServer()?0:3),g=e.retryDelay??ma,P=typeof g=="function"?g(r,m):g,S=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,m);if(t||!S){f(m);return}r++,e.onFail?.(r,m),la(P).then(()=>c()?void 0:p()).then(()=>{t?f(m):y()})})};return{promise:s,status:()=>s.status,cancel:a,continue:()=>(n?.(),s),cancelRetry:o,continueRetry:l,canStart:h,start:()=>(h()?y():p().then(y),s)}}var Mn=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pt(this.gcTime)&&(this.#t=ne.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(we.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(ne.clearTimeout(this.#t),this.#t=void 0)}},ya=class extends Mn{#t;#e;#r;#s;#n;#i;#a;constructor(e){super(),this.#a=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Pr(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Pr(this.options);t.data!==void 0&&(this.setState(Sr(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=mt(this.state.data,e,this.options);return this.#u({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#u({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(T).catch(T):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>N(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Z(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!On(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a||this.#o()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(l=>l.options.queryFn);o&&this.setOptions(o.options)}const r=new AbortController,n=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},s=()=>{const o=xn(this.options,t),c=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(h),h})();return this.#a=!1,this.options.persister?this.options.persister(o,c,this):o(c)},a=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return n(o),o})();this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#n=Fn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof vt&&o.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(o,l)=>{this.#u({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#n.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#r.config.onSuccess?.(o,this),this.#r.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof vt){if(o.silent)return this.#n.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#u({type:"error",error:o}),this.#r.config.onError?.(o,this),this.#r.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#u(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Tn(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Sr(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?n:void 0,n;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),M.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Tn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Pr(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ye=class extends ae{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#a=yt(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#s=void 0;#n;#i;#a;#o;#u;#f;#d;#c;#h;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Er(this.#e,this.options)?this.#_():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gt(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gt(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#R(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Re(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&Cr(this.#e,r,this.options,t)&&this.#_(),this.updateResult(),n&&(this.#e!==r||N(this.options.enabled,this.#e)!==N(t.enabled,this.#e)||Z(this.options.staleTime,this.#e)!==Z(t.staleTime,this.#e))&&this.#m();const s=this.#y();n&&(this.#e!==r||N(this.options.enabled,this.#e)!==N(t.enabled,this.#e)||s!==this.#l)&&this.#v(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return ga(this,r)&&(this.#s=r,this.#i=this.options,this.#n=this.#e.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#_({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#_(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(T)),t}#m(){this.#b();const e=Z(this.options.staleTime,this.#e);if(we.isServer()||this.#s.isStale||!pt(e))return;const r=On(this.#s.dataUpdatedAt,e)+1;this.#c=ne.setTimeout(()=>{this.#s.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#R(),this.#l=e,!(we.isServer()||N(this.options.enabled,this.#e)===!1||!pt(this.#l)||this.#l===0)&&(this.#h=ne.setInterval(()=>{(this.options.refetchIntervalInBackground||Nt.isFocused())&&this.#_()},this.#l))}#g(){this.#m(),this.#v(this.#y())}#b(){this.#c!==void 0&&(ne.clearTimeout(this.#c),this.#c=void 0)}#R(){this.#h!==void 0&&(ne.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){const r=this.#e,n=this.options,s=this.#s,i=this.#n,a=this.#i,l=e!==r?e.state:this.#r,{state:c}=e;let h={...c},u=!1,f;if(t._optimisticResults){const O=this.hasListeners(),F=!O&&Er(e,t),D=O&&Cr(e,r,t,n);(F||D)&&(h={...h,...Tn(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:y,status:_}=h;f=h.data;let d=!1;if(t.placeholderData!==void 0&&f===void 0&&_==="pending"){let O;s?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(O=s.data,d=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,O!==void 0&&(_="success",f=mt(s?.data,O,t),u=!0)}if(t.select&&f!==void 0&&!d)if(s&&f===i?.data&&t.select===this.#u)f=this.#f;else try{this.#u=t.select,f=t.select(f),f=mt(s?.data,f,t),this.#f=f,this.#o=null}catch(O){this.#o=O}this.#o&&(p=this.#o,f=this.#f,y=Date.now(),_="error");const m=h.fetchStatus==="fetching",v=_==="pending",g=_==="error",P=v&&m,S=f!==void 0,k={status:_,fetchStatus:h.fetchStatus,isPending:v,isSuccess:_==="success",isError:g,isInitialLoading:P,isLoading:P,data:f,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>l.dataUpdateCount||h.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:g&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:g&&S,isStale:qt(e,t),refetch:this.refetch,promise:this.#a,isEnabled:N(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=k.data!==void 0,F=k.status==="error"&&!O,D=re=>{F?re.reject(k.error):O&&re.resolve(k.data)},Fe=()=>{const re=this.#a=k.promise=yt();D(re)},oe=this.#a;switch(oe.status){case"pending":e.queryHash===r.queryHash&&D(oe);break;case"fulfilled":(F||k.data!==oe.value)&&Fe();break;case"rejected":(!F||k.error!==oe.reason)&&Fe();break}}return k}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#i=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Re(t,e))return;this.#s=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!this.#p.size)return!0;const i=new Set(s??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(a=>{const o=a;return this.#s[o]!==e[o]&&i.has(o)})};this.#S({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#S(e){M.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function va(e,t){return N(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Er(e,t){return va(e,t)||e.state.data!==void 0&>(e,t,t.refetchOnMount)}function gt(e,t,r){if(N(t.enabled,e)!==!1&&Z(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&qt(e,t)}return!1}function Cr(e,t,r,n){return(e!==t||N(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&qt(e,r)}function qt(e,t){return N(t.enabled,e)!==!1&&e.isStaleByTime(Z(t.staleTime,e))}function ga(e,t){return!Re(e.getCurrentResult(),t)}function We(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let h=!1;const u=y=>{fa(y,()=>t.signal,()=>h=!0)},f=xn(t.options,t.fetchOptions),p=async(y,_,d)=>{if(h)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const v=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:_,direction:d?"backward":"forward",meta:t.options.meta};return u(L),L})(),g=await f(v),{maxPages:P}=t.options,S=d?ha:ca;return{pages:S(y.pages,g,P),pageParams:S(y.pageParams,_,P)}};if(s&&i.length){const y=s==="backward",_=y?$n:bt,d={pages:i,pageParams:a},m=_(n,d);o=await p(d,m,y)}else{const y=e??i.length;do{const _=l===0?a[0]??n.initialPageParam:bt(n,o);if(l>0&&_==null)break;o=await p(o,_),l++}while(l<y)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function bt(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function $n(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function ba(e,t){return t?bt(e,t)!=null:!1}function Ra(e,t){return!t||!e.getPreviousPageParam?!1:$n(e,t)!=null}var wa=class extends Ye{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:We()})}getOptimisticResult(e){return e.behavior=We(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:a,isRefetchError:o}=n,l=r.fetchMeta?.fetchMore?.direction,c=a&&l==="forward",h=s&&l==="forward",u=a&&l==="backward",f=s&&l==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ba(t,r.data),hasPreviousPage:Ra(t,r.data),isFetchNextPageError:c,isFetchingNextPage:h,isFetchPreviousPageError:u,isFetchingPreviousPage:f,isRefetchError:o&&!c&&!u,isRefetching:i&&!h&&!f}}},Sa=class extends Mn{#t;#e;#r;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#e=[],this.state=e.state||Ln(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=Fn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,a)=>{this.#n({type:"failed",failureCount:i,error:a})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",s=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:s}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,r);const a=await this.options.onMutate?.(e,r);a!==this.state.context&&this.#n({type:"pending",context:a,variables:e,isPaused:s})}const i=await this.#s.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{await this.#r.config.onError?.(i,e,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onError?.(i,e,this.state.context,r)}catch(a){Promise.reject(a)}try{await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,r)}catch(a){Promise.reject(a)}throw this.#n({type:"error",error:i}),i}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),M.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Ln(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pa=class extends ae{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const n=new Sa({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=$e(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=$e(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=$e(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(s=>s.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=$e(e);return typeof t=="string"?this.#e.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){M.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>br(t,r))}findAll(e={}){return this.getAll().filter(t=>br(e,t))}notify(e){M.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return M.batch(()=>Promise.all(e.map(t=>t.continue().catch(T))))}};function $e(e){return e.options.scope?.id}var Ea=class extends ae{#t;#e=void 0;#r;#s;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Re(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&se(r.mutationKey)!==se(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#i()}mutate(t,r){return this.#s=r,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#n(){const t=this.#r?.state??Ln();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){M.batch(()=>{if(this.#s&&this.hasListeners()){const r=this.#e.variables,n=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#s.onSuccess?.(t.data,r,n,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(t.data,null,r,n,s)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#s.onError?.(t.error,r,n,s)}catch(i){Promise.reject(i)}try{this.#s.onSettled?.(void 0,t.error,r,n,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(r=>{r(this.#e)})})}};function Or(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function Ca(e,t,r){const n=e.slice(0);return n[t]=r,n}var Oa=class extends ae{#t;#e;#r;#s;#n;#i;#a;#o;#u;#f=[];constructor(e,t,r){super(),this.#t=e,this.#s=r,this.#r=[],this.#n=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(e=>{e.subscribe(t=>{this.#l(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#s=t,M.batch(()=>{const r=this.#n,n=this.#h(this.#r);n.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const s=n.map(h=>h.observer),i=s.map(h=>h.getCurrentResult()),a=r.length!==s.length,o=s.some((h,u)=>h!==r[u]),l=a||o,c=l?!0:i.some((h,u)=>{const f=this.#e[u];return!f||!Re(h,f)});!l&&!c||(l&&(this.#f=n,this.#n=s),this.#e=i,this.hasListeners()&&(l&&(Or(r,s).forEach(h=>{h.destroy()}),Or(s,r).forEach(h=>{h.subscribe(u=>{this.#l(h,u)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){const r=this.#h(e),n=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),s=r.map(i=>i.defaultedQueryOptions.queryHash);return[n,i=>this.#c(i??n,t,s),()=>this.#d(n,r)]}#d(e,t){return t.map((r,n)=>{const s=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,i=>{t.forEach(a=>{a.observer.trackProp(i)})})})}#c(e,t,r){if(t){const n=this.#u,s=r!==void 0&&n!==void 0&&(n.length!==r.length||r.some((i,a)=>i!==n[a]));return(!this.#i||this.#e!==this.#o||s||t!==this.#a)&&(this.#a=t,this.#o=this.#e,r!==void 0&&(this.#u=r),this.#i=Ht(this.#i,t(e))),this.#i}return e}#h(e){const t=new Map;this.#n.forEach(n=>{const s=n.options.queryHash;if(!s)return;const i=t.get(s);i?i.push(n):t.set(s,[n])});const r=[];return e.forEach(n=>{const s=this.#t.defaultQueryOptions(n),a=t.get(s.queryHash)?.shift()??new Ye(this.#t,s);r.push({defaultedQueryOptions:s,observer:a})}),r}#l(e,t){const r=this.#n.indexOf(e);r!==-1&&(this.#e=Ca(this.#e,r,t),this.#p())}#p(){if(this.hasListeners()){const e=this.#i,t=this.#d(this.#e,this.#f),r=this.#c(t,this.#s?.combine);e!==r&&M.batch(()=>{this.listeners.forEach(n=>{n(this.#e)})})}}},xa=class extends ae{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const n=t.queryKey,s=t.queryHash??Qt(n,t);let i=this.get(s);return i||(i=new ya({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>gr(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>gr(e,r)):t}notify(e){M.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ha=class{#t;#e;#r;#s;#n;#i;#a;#o;constructor(e={}){this.#t=e.queryCache||new xa,this.#e=e.mutationCache||new Pa,this.#r=e.defaultOptions||{},this.#s=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Nt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=qe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Z(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(n.queryHash)?.state.data,a=oa(t,i);if(a!==void 0)return this.#t.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return M.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;M.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return M.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=M.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(T).catch(T)}invalidateQueries(e,t={}){return M.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=M.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(T)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(T)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(Z(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(T).catch(T)}fetchInfiniteQuery(e){return e.behavior=We(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(T).catch(T)}ensureInfiniteQueryData(e){return e.behavior=We(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qe.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#s.set(se(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(n=>{be(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(se(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{be(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Dn=$(void 0),Wt=e=>{const t=w(Dn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ja=({client:e,children:t})=>(Q(()=>(e.mount(),()=>{e.unmount()}),[e]),Zn(Dn.Provider,{value:e,children:t})),In=$(!1),Un=()=>w(In);In.Provider;function ka(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Fa=$(ka()),An=()=>w(Fa),Nn=(e,t,r)=>{const n=r?.state.error&&typeof e.throwOnError=="function"?Bt(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},Qn=e=>{Q(()=>{e.clearReset()},[e])},Hn=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||Bt(r,[e.error,n])),jn=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ma=(e,t)=>e.isLoading&&e.isFetching&&!t,Rt=(e,t)=>e?.suspense&&t.isPending,wt=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Ba({queries:e,...t},r){const n=Wt(),s=Un(),i=An(),a=I(()=>e.map(_=>{const d=n.defaultQueryOptions(_);return d._optimisticResults=s?"isRestoring":"optimistic",d}),[e,n,s]);a.forEach(_=>{jn(_);const d=n.getQueryCache().get(_.queryHash);Nn(_,i,d)}),Qn(i);const[o]=V(()=>new Oa(n,a,t)),[l,c,h]=o.getOptimisticResult(a,t.combine),u=!s&&t.subscribed!==!1;Ee(H(_=>u?o.subscribe(M.batchCalls(_)):T,[o,u]),()=>o.getCurrentResult()),Q(()=>{o.setQueries(a,t)},[a,t,o]);const p=l.some((_,d)=>Rt(a[d],_))?l.flatMap((_,d)=>{const m=a[d];if(m&&Rt(m,_)){const v=new Ye(n,m);return wt(m,v,i)}return[]}):[];if(p.length>0)throw Promise.all(p);const y=l.find((_,d)=>{const m=a[d];return m&&Hn({result:_,errorResetBoundary:i,throwOnError:m.throwOnError,query:n.getQueryCache().get(m.queryHash),suspense:m.suspense})});if(y?.error)throw y.error;return c(h())}function Bn(e,t,r){const n=Un(),s=An(),i=Wt(),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const o=i.getQueryCache().get(a.queryHash);a._optimisticResults=n?"isRestoring":"optimistic",jn(a),Nn(a,s,o),Qn(s);const l=!i.getQueryCache().get(a.queryHash),[c]=V(()=>new t(i,a)),h=c.getOptimisticResult(a),u=!n&&e.subscribed!==!1;if(Ee(H(f=>{const p=u?c.subscribe(M.batchCalls(f)):T;return c.updateResult(),p},[c,u]),()=>c.getCurrentResult()),Q(()=>{c.setOptions(a)},[a,c]),Rt(a,h))throw wt(a,c,s);if(Hn({result:h,errorResetBoundary:s,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!we.isServer()&&Ma(h,n)&&(l?wt(a,c,s):o?.promise)?.catch(T).finally(()=>{c.updateResult()}),a.notifyOnChangeProps?h:c.trackResult(h)}function qa(e,t){return Bn(e,Ye)}function Wa(e,t){const r=Wt(),[n]=V(()=>new Ea(r,e));Q(()=>{n.setOptions(e)},[n,e]);const s=Ee(H(a=>n.subscribe(M.batchCalls(a)),[n]),()=>n.getCurrentResult()),i=H((a,o)=>{n.mutate(a,o).catch(T)},[n]);if(s.error&&Bt(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function Ka(e,t){return Bn(e,wa)}export{os as $,te as A,Ua as B,B as C,Ke as D,En as L,Gr as N,Ie as P,Ha as Q,Ia as R,U as S,I as T,$ as X,qa as a,Wt as b,Wa as c,V as d,Ka as e,$t as f,Ta as g,zi as h,Na as i,Ri as j,b as k,K as l,La as m,Da as n,$a as o,ja as p,H as q,Ba as r,Aa as s,Ot as t,Zn as u,w as x,Q as y,ss as z};
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.ico?v=2" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="Watch your favorite anime series online. Track your progress, discover new shows, and enjoy seamless streaming."
|
|
10
|
+
/>
|
|
11
|
+
<title>ani-web</title>
|
|
12
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
13
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
14
|
+
<link
|
|
15
|
+
href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap"
|
|
16
|
+
rel="stylesheet"
|
|
17
|
+
/>
|
|
18
|
+
<link rel="preconnect" href="https://lh3.googleusercontent.com" />
|
|
19
|
+
<link rel="preconnect" href="https://wp.youtube-anime.com" />
|
|
20
|
+
<link rel="dns-prefetch" href="https://lh3.googleusercontent.com" />
|
|
21
|
+
<link rel="dns-prefetch" href="https://wp.youtube-anime.com" />
|
|
22
|
+
<style>
|
|
23
|
+
body {
|
|
24
|
+
background-color: #1a1a1a;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
27
|
+
<script type="module" crossorigin src="/assets/index-Ciivz6fh.js"></script>
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-Bc4EraM_.js">
|
|
29
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BzX_xmnf.css">
|
|
30
|
+
</head>
|
|
31
|
+
|
|
32
|
+
<body>
|
|
33
|
+
<div id="root"></div>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="200" height="300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300">
|
|
2
|
+
<rect width="100%" height="100%" fill="#ccc"/>
|
|
3
|
+
<text x="50%" y="50%" font-family="Arial" font-size="20" fill="#666" text-anchor="middle" dominant-baseline="middle">No Image</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ani-web",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "2.0.7",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22.5.0"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "vite",
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"build": "tsc && vite build",
|
|
13
|
+
"lint": "eslint .",
|
|
14
|
+
"preview": "vite preview",
|
|
15
|
+
"start:prod": "vite preview",
|
|
16
|
+
"format": "prettier --write ."
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@preact/preset-vite": "^2.10.5",
|
|
20
|
+
"@tanstack/query-sync-storage-persister": "^5.99.2",
|
|
21
|
+
"@tanstack/react-query": "^5.99.2",
|
|
22
|
+
"@tanstack/react-query-persist-client": "^5.99.2",
|
|
23
|
+
"@types/nprogress": "^0.2.3",
|
|
24
|
+
"@types/uuid": "^10.0.0",
|
|
25
|
+
"hls.js": "^1.6.16",
|
|
26
|
+
"nprogress": "^0.2.0",
|
|
27
|
+
"preact": "^10.29.1",
|
|
28
|
+
"react": "^19.2.5",
|
|
29
|
+
"react-dom": "^19.2.5",
|
|
30
|
+
"react-hot-toast": "^2.6.0",
|
|
31
|
+
"react-icons": "^5.6.0",
|
|
32
|
+
"react-router-dom": "^7.14.1",
|
|
33
|
+
"uuid": "^14.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@eslint/js": "^10.0.1",
|
|
37
|
+
"@types/react": "^19.2.14",
|
|
38
|
+
"@types/react-dom": "^19.2.3",
|
|
39
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
40
|
+
"baseline-browser-mapping": "^2.10.20",
|
|
41
|
+
"eslint": "^10.2.1",
|
|
42
|
+
"eslint-config-prettier": "^10.1.8",
|
|
43
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
44
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
45
|
+
"globals": "^17.5.0",
|
|
46
|
+
"prettier": "^3.8.3",
|
|
47
|
+
"rimraf": "^6.1.3",
|
|
48
|
+
"typescript": "^6.0.3",
|
|
49
|
+
"typescript-eslint": "^8.58.2",
|
|
50
|
+
"vite": "^7.3.1",
|
|
51
|
+
"vite-plugin-compression": "^0.5.1"
|
|
52
|
+
},
|
|
53
|
+
"overrides": {
|
|
54
|
+
"vite": {
|
|
55
|
+
"esbuild": "^0.28.1"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|