ani-web 1.5.8

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.

Potentially problematic release.


This version of ani-web might be problematic. Click here for more details.

Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +174 -0
  3. package/client/dist/assets/AnimeInfo-C7DQp7Oo.js +1 -0
  4. package/client/dist/assets/AnimeInfo-Sb3YiXHJ.css +1 -0
  5. package/client/dist/assets/AnimeInfoPage-DJA7AJQ8.js +2 -0
  6. package/client/dist/assets/Button-Fq9KaUOg.css +1 -0
  7. package/client/dist/assets/Button-o0l9V_NG.js +1 -0
  8. package/client/dist/assets/ErrorMessage-Ddf2zmRx.js +1 -0
  9. package/client/dist/assets/ErrorMessage-FOxXyZC9.css +1 -0
  10. package/client/dist/assets/Home-CKHJA97j.css +1 -0
  11. package/client/dist/assets/Home-Dey0azy1.js +1 -0
  12. package/client/dist/assets/Insights-BSRcCkDs.css +1 -0
  13. package/client/dist/assets/Insights-CogjPOd_.js +1 -0
  14. package/client/dist/assets/MAL-CYArH4yf.js +1 -0
  15. package/client/dist/assets/MAL-DeQNXXPx.css +1 -0
  16. package/client/dist/assets/Player-BWFN9gud.js +9 -0
  17. package/client/dist/assets/Player-CBCYW7uG.css +1 -0
  18. package/client/dist/assets/PlayerSettings-BgStUrrP.css +1 -0
  19. package/client/dist/assets/PlayerSettings-rWZuATQf.js +1 -0
  20. package/client/dist/assets/RemoveConfirmationModal-BBiogSdf.css +1 -0
  21. package/client/dist/assets/RemoveConfirmationModal-CLYqyGOv.js +1 -0
  22. package/client/dist/assets/Search-DZAWgKwq.js +1 -0
  23. package/client/dist/assets/Search-lWsVQ0Ke.css +1 -0
  24. package/client/dist/assets/Settings-Bv9fX-x3.css +1 -0
  25. package/client/dist/assets/Settings-DyisJGeD.js +1 -0
  26. package/client/dist/assets/ToggleSwitch-CLnWnAuY.js +1 -0
  27. package/client/dist/assets/ToggleSwitch-DInRb7iM.css +1 -0
  28. package/client/dist/assets/Watchlist-2dVYksxq.css +1 -0
  29. package/client/dist/assets/Watchlist-CuqJISI3.js +1 -0
  30. package/client/dist/assets/hls.light-DcbkToIY.js +27 -0
  31. package/client/dist/assets/index-BK_Zaqaw.css +1 -0
  32. package/client/dist/assets/index-CHVF4D4L.js +178 -0
  33. package/client/dist/assets/useAnimeInfoData-Cr58brCY.js +1 -0
  34. package/client/dist/assets/useIsMobile-gHo4t6g6.js +1 -0
  35. package/client/dist/assets/vendor-DdbgYKo4.js +3 -0
  36. package/client/dist/favicon.ico +0 -0
  37. package/client/dist/index.html +35 -0
  38. package/client/dist/logo.png +0 -0
  39. package/client/dist/placeholder.svg +4 -0
  40. package/client/dist/robots.txt +3 -0
  41. package/client/package.json +54 -0
  42. package/orchestrator.js +302 -0
  43. package/package.json +69 -0
  44. package/server/dist/config.js +86 -0
  45. package/server/dist/constants.json +1359 -0
  46. package/server/dist/controllers/auth.controller.js +213 -0
  47. package/server/dist/controllers/data.controller.js +126 -0
  48. package/server/dist/controllers/insights.controller.js +125 -0
  49. package/server/dist/controllers/proxy.controller.js +235 -0
  50. package/server/dist/controllers/settings.controller.js +147 -0
  51. package/server/dist/controllers/watchlist.controller.js +499 -0
  52. package/server/dist/db.js +231 -0
  53. package/server/dist/github-sync.js +279 -0
  54. package/server/dist/google.js +274 -0
  55. package/server/dist/logger.js +21 -0
  56. package/server/dist/providers/123anime.provider.js +229 -0
  57. package/server/dist/providers/allanime.provider.js +773 -0
  58. package/server/dist/providers/animepahe.provider.js +313 -0
  59. package/server/dist/providers/animeya.provider.js +799 -0
  60. package/server/dist/providers/provider.interface.js +2 -0
  61. package/server/dist/rclone.js +126 -0
  62. package/server/dist/repositories/insights.repository.js +30 -0
  63. package/server/dist/repositories/notifications.repository.js +22 -0
  64. package/server/dist/repositories/settings.repository.js +13 -0
  65. package/server/dist/repositories/shows-meta.repository.js +39 -0
  66. package/server/dist/repositories/watched-episodes.repository.js +60 -0
  67. package/server/dist/repositories/watchlist.repository.js +49 -0
  68. package/server/dist/routes/auth.routes.js +23 -0
  69. package/server/dist/routes/data.routes.js +43 -0
  70. package/server/dist/routes/insights.routes.js +11 -0
  71. package/server/dist/routes/proxy.routes.js +13 -0
  72. package/server/dist/routes/settings.routes.js +26 -0
  73. package/server/dist/routes/watchlist.routes.js +26 -0
  74. package/server/dist/server.js +179 -0
  75. package/server/dist/sync-config.js +28 -0
  76. package/server/dist/sync.js +383 -0
  77. package/server/dist/utils/db-utils.js +36 -0
  78. package/server/dist/utils/env.utils.js +70 -0
  79. package/server/package.json +54 -0
@@ -0,0 +1,3 @@
1
+ var Re,w,Rr,X,Qt,Sr,Pr,Je,$e,me,Er,gt,rt,nt,Cr,Ue={},Ne=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Se=Array.isArray;function z(e,t){for(var r in t)e[r]=t[r];return e}function bt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function b(e,t,r){var n,i,s,a={};for(s in t)s=="key"?n=t[s]:s=="ref"?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?Re.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)a[s]===void 0&&(a[s]=e.defaultProps[s]);return ye(e,a,n,i,null)}function ye(e,t,r,n,i){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Rr,__i:-1,__u:0};return i==null&&w.vnode!=null&&w.vnode(s),s}function Ln(){return{current:null}}function I(e){return e.children}function Q(e,t){this.props=e,this.context=t}function oe(e,t){if(t==null)return e.__?oe(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"?oe(e):null}function Dn(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],i=[],s=z({},t);s.__v=t.__v+1,w.vnode&&w.vnode(s),wt(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??oe(t),!!(32&t.__u),i),s.__v=t.__v,s.__.__k[s.__i]=s,Fr(n,s,i),t.__e=t.__=null,s.__e!=r&&Or(s)}}function Or(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}),Or(e)}function it(e){(!e.__d&&(e.__d=!0)&&X.push(e)&&!Ae.__r++||Qt!=w.debounceRendering)&&((Qt=w.debounceRendering)||Sr)(Ae)}function Ae(){try{for(var e,t=1;X.length;)X.length>t&&X.sort(Pr),e=X.shift(),t=X.length,Dn(e)}finally{X.length=Ae.__r=0}}function xr(e,t,r,n,i,s,a,o,c,l,h){var u,f,p,m,_,d,y,v=n&&n.__k||Ne,g=t.length;for(c=In(r,t,v,c,g),u=0;u<g;u++)(p=r.__k[u])!=null&&(f=p.__i!=-1&&v[p.__i]||Ue,p.__i=u,d=wt(e,p,f,i,s,a,o,c,l,h),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Rt(f.ref,null,p),h.push(p.ref,p.__c||m,p)),_==null&&m!=null&&(_=m),(y=!!(4&p.__u))||f.__k===p.__k?(c=kr(p,c,e,y),y&&f.__e&&(f.__e=null)):typeof p.type=="function"&&d!==void 0?c=d:m&&(c=m.nextSibling),p.__u&=-7);return r.__e=_,c}function In(e,t,r,n,i){var s,a,o,c,l,h=r.length,u=h,f=0;for(e.__k=new Array(i),s=0;s<i;s++)(a=t[s])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[s]=ye(null,a,null,null,null):Se(a)?a=e.__k[s]=ye(I,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[s]=ye(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[s]=a,c=s+f,a.__=e,a.__b=e.__b+1,o=null,(l=a.__i=Un(a,r,c,u))!=-1&&(u--,(o=r[l])&&(o.__u|=2)),o==null||o.__v==null?(l==-1&&(i>h?f--:i<h&&f++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,a.__u|=4))):e.__k[s]=null;if(u)for(s=0;s<h;s++)(o=r[s])!=null&&(2&o.__u)==0&&(o.__e==n&&(n=oe(o)),$r(o,o));return n}function kr(e,t,r,n){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=kr(i[s],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=oe(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function V(e,t){return t=t||[],e==null||typeof e=="boolean"||(Se(e)?e.some(function(r){V(r,t)}):t.push(e)),t}function Un(e,t,r,n){var i,s,a,o=e.key,c=e.type,l=t[r],h=l!=null&&(2&l.__u)==0;if(l===null&&o==null||h&&o==l.key&&c==l.type)return r;if(n>(h?1:0)){for(i=r-1,s=r+1;i>=0||s<t.length;)if((l=t[a=i>=0?i--:s++])!=null&&(2&l.__u)==0&&o==l.key&&c==l.type)return a}return-1}function jt(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function ke(e,t,r,n,i){var s,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||jt(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||jt(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Er,"$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+s]=r,r?n?r[me]=n[me]:(r[me]=gt,e.addEventListener(t,s?nt:rt,s)):e.removeEventListener(t,s?nt:rt,s);else{if(i=="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 Bt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[$e]==null)t[$e]=gt++;else if(t[$e]<r[me])return;return r(w.event?w.event(t):t)}}}function wt(e,t,r,n,i,s,a,o,c,l){var h,u,f,p,m,_,d,y,v,g,P,S,M,k,O,F=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),s=[o=t.__e=r.__e]),(h=w.__b)&&h(t);e:if(typeof F=="function")try{if(y=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(y,P):(t.__c=u=new Q(y,P),u.constructor=F,u.render=An),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(y,u.__s))),p=u.props,m=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&&y!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,P),t.__v==r.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,P)===!1){t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(L){L&&(L.__=t)}),Ne.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,P),v&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,_)})}if(u.context=P,u.props=y,u.__P=e,u.__e=!1,S=w.__r,M=0,v)u.state=u.__s,u.__d=!1,S&&S(t),h=u.render(u.props,u.state,u.context),Ne.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&&++M<25);u.state=u.__s,u.getChildContext!=null&&(n=z(z({},n),u.getChildContext())),v&&!f&&u.getSnapshotBeforeUpdate!=null&&(_=u.getSnapshotBeforeUpdate(p,m)),k=h!=null&&h.type===I&&h.key==null?Tr(h.props.children):h,o=xr(e,Se(k)?k:[k],t,r,n,i,s,a,o,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),d&&(u.__E=u.__=null)}catch(L){if(t.__v=null,c||s!=null)if(L.then){for(t.__u|=c?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;s[s.indexOf(o)]=null,t.__e=o}else{for(O=s.length;O--;)bt(s[O]);st(t)}else t.__e=r.__e,t.__k=r.__k,L.then||st(t);w.__e(L,t,r)}else s==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):o=t.__e=Nn(r.__e,t,r,n,i,s,a,c,l);return(h=w.diffed)&&h(t),128&t.__u?void 0:o}function st(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(st))}function Fr(e,t,r){for(var n=0;n<r.length;n++)Rt(r[n],r[++n],r[++n]);w.__c&&w.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){w.__e(s,i.__v)}})}function Tr(e){return typeof e!="object"||e==null||e.__b>0?e:Se(e)?e.map(Tr):z({},e)}function Nn(e,t,r,n,i,s,a,o,c){var l,h,u,f,p,m,_,d=r.props||Ue,y=t.props,v=t.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((p=s[l])&&"setAttribute"in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,s[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(y);e=document.createElementNS(i,v,y.is&&y),o&&(w.__m&&w.__m(t,s),o=!1),s=null}if(v==null)d===y||o&&e.data==y||(e.data=y);else{if(s=s&&Re.call(e.childNodes),!o&&s!=null)for(d={},l=0;l<e.attributes.length;l++)d[(p=e.attributes[l]).name]=p.value;for(l in d)p=d[l],l=="dangerouslySetInnerHTML"?u=p:l=="children"||l in y||l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y||ke(e,l,null,p,i);for(l in y)p=y[l],l=="children"?f=p:l=="dangerouslySetInnerHTML"?h=p:l=="value"?m=p:l=="checked"?_=p:o&&typeof p!="function"||d[l]===p||ke(e,l,p,d[l],i);if(h)o||u&&(h.__html==u.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(u&&(e.innerHTML=""),xr(t.type=="template"?e.content:e,Se(f)?f:[f],t,r,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,a,s?s[0]:r.__k&&oe(r,0),o,c),s!=null)for(l=s.length;l--;)bt(s[l]);o||(l="value",v=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[l]||v=="progress"&&!m||v=="option"&&m!=d[l])&&ke(e,l,m,d[l],i),l="checked",_!=null&&_!=e[l]&&ke(e,l,_,d[l],i))}return e}function Rt(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(i){w.__e(i,r)}}function $r(e,t,r){var n,i;if(w.unmount&&w.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Rt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(s){w.__e(s,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&$r(n[i],t,r||typeof e.type!="function");r||bt(e.__e),e.__c=e.__=e.__e=void 0}function An(e,t,r){return this.constructor(e,r)}function ve(e,t,r){var n,i,s,a;t==document&&(t=document.documentElement),w.__&&w.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,s=[],a=[],wt(t,e=(!n&&r||t).__k=b(I,null,[e]),i||Ue,Ue,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Re.call(t.childNodes):null,s,!n&&r?r:i?i.__e:t.firstChild,n,a),Fr(s,e,a)}function Mr(e,t){ve(e,t,Mr)}function Hn(e,t,r){var n,i,s,a,o=z({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)s=="key"?n=t[s]:s=="ref"?i=t[s]:o[s]=t[s]===void 0&&a!=null?a[s]:t[s];return arguments.length>2&&(o.children=arguments.length>3?Re.call(arguments,2):r),ye(e.type,o,n||e.key,i||e.ref,null)}function $(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&n.forEach(function(a){a.__e=!0,it(a)})},this.sub=function(s){n.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){n&&n.delete(s),a&&a.call(s)}}),r.children}return t.__c="__cC"+Cr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Re=Ne.slice,w={__e:function(e,t,r,n){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(o){e=o}throw e}},Rr=0,Q.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),it(this))},Q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),it(this))},Q.prototype.render=I,X=[],Sr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Pr=function(e,t){return e.__v.__b-t.__v.__b},Ae.__r=0,Je=Math.random().toString(8),$e="__d"+Je,me="__a"+Je,Er=/(PointerCapture)$|Capture$/i,gt=0,rt=Bt(!1),nt=Bt(!0),Cr=0;var Qn=0;function jn(e,t,r,n,i,s){t||(t={});var a,o,c=t;if("ref"in c)for(o in c={},t)o=="ref"?a=t[o]:c[o]=t[o];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Qn,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(a=e.defaultProps))for(o in a)c[o]===void 0&&(c[o]=a[o]);return w.vnode&&w.vnode(l),l}var ee,E,Ye,Wt,ue=0,Lr=[],x=w,qt=x.__b,Kt=x.__r,zt=x.diffed,Vt=x.__c,Gt=x.unmount,Jt=x.__;function le(e,t){x.__h&&x.__h(E,e,ue||t),ue=0;var r=E.__H||(E.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function G(e){return ue=1,St(Nr,e)}function St(e,t,r){var n=le(ee++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Nr(void 0,t),function(o){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,o);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=E,!E.__f)){var i=function(o,c,l){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!s||s.call(this,o,c,l);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)}}),s&&s.call(this,o,c,l)||u};E.__f=!0;var s=E.shouldComponentUpdate,a=E.componentWillUpdate;E.componentWillUpdate=function(o,c,l){if(this.__e){var h=s;s=void 0,i(o,c,l),s=h}a&&a.call(this,o,c,l)},E.shouldComponentUpdate=i}return n.__N||n.__}function B(e,t){var r=le(ee++,3);!x.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,E.__H.__h.push(r))}function se(e,t){var r=le(ee++,4);!x.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,E.__h.push(r))}function te(e){return ue=5,U(function(){return{current:e}},[])}function Dr(e,t,r){ue=6,se(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 U(e,t){var r=le(ee++,7);return Pt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function W(e,t){return ue=8,U(function(){return e},t)}function R(e){var t=E.context[e.__c],r=le(ee++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(E)),t.props.value):e.__}function Ir(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function Ur(){var e=le(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 Bn(){for(var e;e=Lr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Me),t.__h.some(at),t.__h=[]}catch(r){t.__h=[],x.__e(r,e.__v)}}}x.__b=function(e){E=null,qt&&qt(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jt&&Jt(e,t)},x.__r=function(e){Kt&&Kt(e),ee=0;var t=(E=e.__c).__H;t&&(Ye===E?(t.__h=[],E.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Me),t.__h.some(at),t.__h=[],ee=0)),Ye=E},x.diffed=function(e){zt&&zt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lr.push(t)!==1&&Wt===x.requestAnimationFrame||((Wt=x.requestAnimationFrame)||Wn)(Bn)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ye=E=null},x.__c=function(e,t){t.some(function(r){try{r.__h.some(Me),r.__h=r.__h.filter(function(n){return!n.__||at(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],x.__e(n,r.__v)}}),Vt&&Vt(e,t)},x.unmount=function(e){Gt&&Gt(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Me(n)}catch(i){t=i}}),r.__H=void 0,t&&x.__e(t,r.__v))};var Yt=typeof requestAnimationFrame=="function";function Wn(e){var t,r=function(){clearTimeout(n),Yt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Yt&&(t=requestAnimationFrame(r))}function Me(e){var t=E,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),E=t}function at(e){var t=E;e.__c=e.__(),E=t}function Pt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Nr(e,t){return typeof t=="function"?t(e):t}function Ar(e,t){for(var r in t)e[r]=t[r];return e}function ot(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 qe(e,t){var r=t(),n=G({t:{__:r,u:t}}),i=n[0].t,s=n[1];return se(function(){i.__=r,i.u=t,Xe(i)&&s({t:i})},[e,r,t]),B(function(){return Xe(i)&&s({t:i}),e(function(){Xe(i)&&s({t:i})})},[e]),r}function Xe(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 Pe(e){e()}function Hr(e){return e}function Qr(){return[!1,Pe]}var jr=se;function ut(e,t){this.props=e,this.context=t}function Br(e,t){function r(i){var s=this.props.ref;return s!=i.ref&&s&&(typeof s=="function"?s(null):s.current=null),t?!t(this.props,i)||s!=i.ref:ot(this.props,i)}function n(i){return this.shouldComponentUpdate=r,b(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}(ut.prototype=new Q).isPureReactComponent=!0,ut.prototype.shouldComponentUpdate=function(e,t){return ot(this.props,e)||ot(this.state,t)};var Xt=w.__b;w.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xt&&Xt(e)};var qn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ke(e){function t(r){var n=Ar({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=qn,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Zt=function(e,t){return e==null?null:V(V(e).map(t))},Wr={map:Zt,forEach:Zt,count:function(e){return e?V(e).length:0},only:function(e){var t=V(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:V},Kn=w.__e;w.__e=function(e,t,r,n){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Kn(e,t,r,n)};var er=w.unmount;function qr(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=Ar({},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 qr(n,t,r)})),e}function Kr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Kr(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 Le(){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 zn(e){var t,r,n,i=null;function s(a){if(t||(t=e()).then(function(o){o&&(i=o.default||o),n=!0},function(o){r=o,n=!0}),r)throw r;if(!n)throw t;return i?b(i,a):null}return s.displayName="Lazy",s.__f=!0,s}function _e(){this.i=null,this.l=null}w.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),er&&er(e)},(Le.prototype=new Q).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=zr(n.__v),s=!1,a=function(){s||n.__z||(s=!0,r.__R=null,i?i(c):c())};r.__R=a;var o=r.__P;r.__P=null;var c=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Kr(l,l.__c.__P,l.__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)},Le.prototype.componentWillUnmount=function(){this.o=[]},Le.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]=qr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&b(I,null,e.fallback);return i&&(i.__u&=-33),[b(I,null,t.__a?null:e.children),i]};var tr=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 Vn(e){return this.getChildContext=function(){return e.context},e.children}function Gn(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(i,s){this.childNodes.push(i),t.h.insertBefore(i,s)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}ve(b(Vn,{context:t.context},e.__v),t.v)}function Jn(e,t){var r=b(Gn,{__v:e,h:t});return r.containerInfo=t,r}(_e.prototype=new Q).__a=function(e){var t=this,r=zr(t.__v),n=t.l.get(e);return n[0]++,function(i){var s=function(){t.props.revealOrder?(n.push(i),tr(t,e,n)):i()};r?r(s):s()}},_e.prototype.render=function(e){this.i=null,this.l=new Map;var t=V(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){tr(e,r,t)})};var Vr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yn=/^(?: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]/,Xn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zn=/[A-Z0-9]/g,ei=typeof document<"u",ti=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gr(e,t,r){return t.__k==null&&(t.textContent=""),ve(e,t),typeof r=="function"&&r(),e?e.__c:null}function Jr(e,t,r){return Mr(e,t),typeof r=="function"&&r(),e?e.__c:null}Q.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Q.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var rr=w.event;w.event=function(e){return rr&&(e=rr(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Et,ri={configurable:!0,get:function(){return this.class}},nr=w.vnode;w.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,i={},s=n.indexOf("-")==-1;for(var a in r){var o=r[a];if(!(a==="value"&&"defaultValue"in r&&o==null||ei&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":c==="translate"&&o==="no"?o=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||ti(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Xn.test(a)&&(a=c):c=a="oninput":s&&Yn.test(a)?a=a.replace(Zn,"-$&").toLowerCase():o===null&&(o=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=o}}n=="select"&&(i.multiple&&Array.isArray(i.value)&&(i.value=V(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),i.defaultValue!=null&&(i.value=V(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value}))),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",ri)):r.className&&(i.class=i.className=r.className),t.props=i})(e),e.$$typeof=Vr,nr&&nr(e)};var ir=w.__r;w.__r=function(e){ir&&ir(e),Et=e.__c};var sr=w.diffed;w.diffed=function(e){sr&&sr(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),Et=null};var ni={ReactCurrentDispatcher:{current:{readContext:function(e){return Et.__n[e.__c].props.value},useCallback:W,useContext:R,useDebugValue:Ir,useDeferredValue:Hr,useEffect:B,useId:Ur,useImperativeHandle:Dr,useInsertionEffect:jr,useLayoutEffect:se,useMemo:U,useReducer:St,useRef:te,useState:G,useSyncExternalStore:qe,useTransition:Qr}}};function ii(e){return b.bind(null,e)}function Ee(e){return!!e&&e.$$typeof===Vr}function si(e){return Ee(e)&&e.type===I}function ai(e){return!!e&&typeof e.displayName=="string"&&e.displayName.indexOf("Memo(")==0}function oi(e){return Ee(e)?Hn.apply(null,arguments):e}function Yr(e){return!!e.__k&&(ve(null,e),!0)}function ui(e){return e&&(e.base||e.nodeType===1&&e)||null}var li=function(e,t){return e(t)},ci=function(e,t){var r=w.debounceRendering;w.debounceRendering=function(i){return i()};var n=e(t);return w.debounceRendering=r,n},hi=Ee,Pa={useState:G,useId:Ur,useReducer:St,useEffect:B,useLayoutEffect:se,useInsertionEffect:jr,useTransition:Qr,useDeferredValue:Hr,useSyncExternalStore:qe,startTransition:Pe,useRef:te,useImperativeHandle:Dr,useMemo:U,useCallback:W,useContext:R,useDebugValue:Ir,version:"18.3.1",Children:Wr,render:Gr,hydrate:Jr,unmountComponentAtNode:Yr,createPortal:Jn,createElement:b,createContext:$,createFactory:ii,cloneElement:oi,createRef:Ln,Fragment:I,isValidElement:Ee,isElement:hi,isFragment:si,isMemo:ai,findDOMNode:ui,Component:Q,PureComponent:ut,memo:Br,forwardRef:Ke,flushSync:ci,unstable_batchedUpdates:li,StrictMode:I,Suspense:Le,SuspenseList:_e,lazy:zn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ni};function Xr(e){return{render:function(t){Gr(t,e)},unmount:function(){Yr(e)}}}function fi(e,t){return Jr(t,e),Xr(e)}const Ea={createRoot:Xr,hydrateRoot:fi};var ar="popstate";function or(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function di(e={}){function t(n,i){let s=i.state?.masked,{pathname:a,search:o,hash:c}=s||n.location;return lt("",{pathname:a,search:o,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default",s?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,i){return typeof i=="string"?i:ge(i)}return _i(t,r,null,e)}function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function H(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pi(){return Math.random().toString(36).substring(2,10)}function ur(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function lt(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ce(t):t,state:r,key:t&&t.key||n||pi(),unstable_mask:i}}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 ce(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 _i(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o="POP",c=null,l=h();l==null&&(l=0,a.replaceState({...a.state,idx:l},""));function h(){return(a.state||{idx:null}).idx}function u(){o="POP";let d=h(),y=d==null?null:d-l;l=d,c&&c({action:o,location:_.location,delta:y})}function f(d,y){o="PUSH";let v=or(d)?d:lt(_.location,d,y);l=h()+1;let g=ur(v,l),P=_.createHref(v.unstable_mask||v);try{a.pushState(g,"",P)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(P)}s&&c&&c({action:o,location:_.location,delta:1})}function p(d,y){o="REPLACE";let v=or(d)?d:lt(_.location,d,y);l=h();let g=ur(v,l),P=_.createHref(v.unstable_mask||v);a.replaceState(g,"",P),s&&c&&c({action:o,location:_.location,delta:0})}function m(d){return mi(d)}let _={get action(){return o},get location(){return e(i,a)},listen(d){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(ar,u),c=d,()=>{i.removeEventListener(ar,u),c=null}},createHref(d){return t(i,d)},createURL:m,encodeLocation(d){let y=m(d);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(d){return a.go(d)}};return _}function mi(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),C(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:ge(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function Zr(e,t,r="/"){return yi(e,t,r,!1)}function yi(e,t,r,n){let i=typeof t=="string"?ce(t):t,s=J(i.pathname||"/",r);if(s==null)return null;let a=en(e);vi(a);let o=null;for(let c=0;o==null&&c<a.length;++c){let l=ki(s);o=Oi(a[c],l,n)}return o}function en(e,t=[],r=[],n="",i=!1){let s=(a,o,c=i,l)=>{let h={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&c)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=j([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}".`),en(a.children,t,f,u,c)),!(a.path==null&&!a.index)&&t.push({path:u,score:Ei(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{if(a.path===""||!a.path?.includes("?"))s(a,o);else for(let c of tn(a.path))s(a,o,!0,c)}),t}function tn(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=tn(n.join("/")),o=[];return o.push(...a.map(c=>c===""?s:[s,c].join("/"))),i&&o.push(...a),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function vi(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ci(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var gi=/^:[\w-]+$/,bi=3,wi=2,Ri=1,Si=10,Pi=-2,lr=e=>e==="*";function Ei(e,t){let r=e.split("/"),n=r.length;return r.some(lr)&&(n+=Pi),t&&(n+=wi),r.filter(i=>!lr(i)).reduce((i,s)=>i+(gi.test(s)?bi:s===""?Ri:Si),n)}function Ci(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Oi(e,t,r=!1){let{routesMeta:n}=e,i={},s="/",a=[];for(let o=0;o<n.length;++o){let c=n[o],l=o===n.length-1,h=s==="/"?t:t.slice(s.length)||"/",u=He({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},h),f=c.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=He({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:j([s,u.pathname]),pathnameBase:Mi(j([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=j([s,u.pathnameBase]))}return a}function He(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=xi(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((l,{paramName:h,isOptional:u},f)=>{if(h==="*"){let m=o[f]||"";a=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const p=o[f];return u&&!p?l[h]=void 0:l[h]=(p||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:a,pattern:e}}function xi(e,t=!1,r=!0){H(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,c,l,h)=>{if(n.push({paramName:o,isOptional:c!=null}),c){let u=h.charAt(l+a.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function ki(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return H(!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)||"/"}var Fi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ti(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ce(e):e,s;return r?(r=rn(r),r.startsWith("/")?s=cr(r.substring(1),"/"):s=cr(r,t)):s=t,{pathname:s,search:Li(n),hash:Di(i)}}function cr(e,t){let r=Qe(t).split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Ze(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 $i(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Ct(e){let t=$i(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ze(e,t,r,n=!1){let i;typeof e=="string"?i=ce(e):(i={...e},C(!i.pathname||!i.pathname.includes("?"),Ze("?","pathname","search",i)),C(!i.pathname||!i.pathname.includes("#"),Ze("#","pathname","hash",i)),C(!i.search||!i.search.includes("#"),Ze("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.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;i.pathname=f.join("/")}o=u>=0?t[u]:"/"}let c=Ti(i,o),l=a&&a!=="/"&&a.endsWith("/"),h=(s||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}var rn=e=>e.replace(/\/\/+/g,"/"),j=e=>rn(e.join("/")),Qe=e=>e.replace(/\/+$/,""),Mi=e=>Qe(e).replace(/^\/*/,"/"),Li=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Di=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ii=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 Ui(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ni(e){let t=e.map(r=>r.route.path).filter(Boolean);return j(t)||"/"}var nn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sn(e,t){let r=e;if(typeof r!="string"||!Fi.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(nn)try{let s=new URL(window.location.href),a=r.startsWith("//")?new URL(s.protocol+r):new URL(r),o=J(a.pathname,t);a.origin===s.origin&&o!=null?r=o+a.search+a.hash:i=!0}catch{H(!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:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var an=["POST","PUT","PATCH","DELETE"];new Set(an);var Ai=["GET",...an];new Set(Ai);var he=$(null);he.displayName="DataRouter";var Ve=$(null);Ve.displayName="DataRouterState";var on=$(!1);function Hi(){return R(on)}var un=$({isTransitioning:!1});un.displayName="ViewTransition";var Qi=$(new Map);Qi.displayName="Fetchers";var ji=$(null);ji.displayName="Await";var N=$(null);N.displayName="Navigation";var Ce=$(null);Ce.displayName="Location";var q=$({outlet:null,matches:[],isDataRoute:!1});q.displayName="Route";var Ot=$(null);Ot.displayName="RouteError";var ln="REACT_ROUTER_ERROR",Bi="REDIRECT",Wi="ROUTE_ERROR_RESPONSE";function qi(e){if(e.startsWith(`${ln}:${Bi}:{`))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 Ki(e){if(e.startsWith(`${ln}:${Wi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ii(t.status,t.statusText,t.data)}catch{}}function zi(e,{relative:t}={}){C(fe(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=R(N),{hash:i,pathname:s,search:a}=Oe(e,{relative:t}),o=s;return r!=="/"&&(o=s==="/"?r:j([r,s])),n.createHref({pathname:o,search:a,hash:i})}function fe(){return R(Ce)!=null}function K(){return C(fe(),"useLocation() may be used only in the context of a <Router> component."),R(Ce).location}var cn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hn(e){R(N).static||se(e)}function xt(){let{isDataRoute:e}=R(q);return e?as():Vi()}function Vi(){C(fe(),"useNavigate() may be used only in the context of a <Router> component.");let e=R(he),{basename:t,navigator:r}=R(N),{matches:n}=R(q),{pathname:i}=K(),s=JSON.stringify(Ct(n)),a=te(!1);return hn(()=>{a.current=!0}),W((c,l={})=>{if(H(a.current,cn),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=ze(c,JSON.parse(s),i,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:j([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,s,i,e])}$(null);function Ca(){let{matches:e}=R(q),t=e[e.length-1];return t?t.params:{}}function Oe(e,{relative:t}={}){let{matches:r}=R(q),{pathname:n}=K(),i=JSON.stringify(Ct(r));return U(()=>ze(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function Gi(e,t){return fn(e,t)}function fn(e,t,r){C(fe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=R(N),{matches:i}=R(q),s=i[i.length-1],a=s?s.params:{},o=s?s.pathname:"/",c=s?s.pathnameBase:"/",l=s&&s.route;{let d=l&&l.path||"";pn(o,!l||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"?ce(t):t;C(c==="/"||d.pathname?.startsWith(c),`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 "${c}" but pathname "${d.pathname}" was given in the \`location\` prop.`),u=d}else u=h;let f=u.pathname||"/",p=f;if(c!=="/"){let d=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(d.length).join("/")}let m=Zr(e,{pathname:p});H(l||m!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),H(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.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 _=es(m&&m.map(d=>Object.assign({},d,{params:Object.assign({},a,d.params),pathname:j([c,n.encodeLocation?n.encodeLocation(d.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?c:j([c,n.encodeLocation?n.encodeLocation(d.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathnameBase])})),i,r);return t&&_?b(Ce.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},_):_}function Ji(){let e=ss(),t=Ui(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)",i={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b(I,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:s},"ErrorBoundary")," or"," ",b("code",{style:s},"errorElement")," prop on your route.")),b(I,null,b("h2",null,"Unexpected Application Error!"),b("h3",{style:{fontStyle:"italic"}},t),r?b("pre",{style:i},r):null,a)}var Yi=b(Ji,null),dn=class extends Q{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=Ki(e.digest);r&&(e=r)}let t=e!==void 0?b(q.Provider,{value:this.props.routeContext},b(Ot.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b(Xi,{error:e},t):t}};dn.contextType=on;var et=new WeakMap;function Xi({children:e,error:t}){let{basename:r}=R(N);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=qi(t.digest);if(n){let i=et.get(t);if(i)throw i;let s=sn(n.location,r);if(nn&&!et.get(t))if(s.isExternal||n.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:n.replace}));throw et.set(t,a),a}return b("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function Zi({routeContext:e,match:t,children:r}){let n=R(he);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),b(q.Provider,{value:e},r)}function es(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 i=e,s=n?.errors;if(s!=null){let h=i.findIndex(u=>u.route.id&&s?.[u.route.id]!==void 0);C(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let a=!1,o=-1;if(r&&n){a=n.renderFallback;for(let h=0;h<i.length;h++){let u=i[h];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=h),u.route.id){let{loaderData:f,errors:p}=n,m=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||m){r.isStatic&&(a=!0),o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}}let c=r?.onError,l=n&&c?(h,u)=>{c(h,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Ni(n.matches),errorInfo:u})}:void 0;return i.reduceRight((h,u,f)=>{let p,m=!1,_=null,d=null;n&&(p=s&&u.route.id?s[u.route.id]:void 0,_=u.route.errorElement||Yi,a&&(o<0&&f===0?(pn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,d=null):o===f&&(m=!0,d=u.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,f+1)),v=()=>{let g;return p?g=_:m?g=d:u.route.Component?g=b(u.route.Component,null):u.route.element?g=u.route.element:g=h,b(Zi,{match:u,routeContext:{outlet:h,matches:y,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?b(dn,{location:n.location,revalidation:n.revalidation,component:_,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:l}):v()},null)}function kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ts(e){let t=R(he);return C(t,kt(e)),t}function rs(e){let t=R(Ve);return C(t,kt(e)),t}function ns(e){let t=R(q);return C(t,kt(e)),t}function Ft(e){let t=ns(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 is(){return Ft("useRouteId")}function ss(){let e=R(Ot),t=rs("useRouteError"),r=Ft("useRouteError");return e!==void 0?e:t.errors?.[r]}function as(){let{router:e}=ts("useNavigate"),t=Ft("useNavigate"),r=te(!1);return hn(()=>{r.current=!0}),W(async(i,s={})=>{H(r.current,cn),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var hr={};function pn(e,t,r){!t&&!hr[e]&&(hr[e]=!0,H(!1,r))}Br(os);function os({routes:e,future:t,state:r,isStatic:n,onError:i}){return fn(e,void 0,{state:r,isStatic:n,onError:i})}function Oa({to:e,replace:t,state:r,relative:n}){C(fe(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=R(N);H(!i,"<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:s}=R(q),{pathname:a}=K(),o=xt(),c=ze(e,Ct(s),a,n==="path"),l=JSON.stringify(c);return B(()=>{o(JSON.parse(l),{replace:t,state:r,relative:n})},[o,l,n,t,r]),null}function us(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 ls({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:s=!1,unstable_useTransitions:a}){C(!fe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=U(()=>({basename:o,navigator:i,static:s,unstable_useTransitions:a,future:{}}),[o,i,s,a]);typeof r=="string"&&(r=ce(r));let{pathname:l="/",search:h="",hash:u="",state:f=null,key:p="default",unstable_mask:m}=r,_=U(()=>{let d=J(l,o);return d==null?null:{location:{pathname:d,search:h,hash:u,state:f,key:p,unstable_mask:m},navigationType:n}},[o,l,h,u,f,p,n,m]);return H(_!=null,`<Router basename="${o}"> is not able to match the URL "${l}${h}${u}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:b(N.Provider,{value:c},b(Ce.Provider,{children:t,value:_}))}function xa({children:e,location:t}){return Gi(ct(e),t)}function ct(e,t=[]){let r=[];return Wr.forEach(e,(n,i)=>{if(!Ee(n))return;let s=[...t,i];if(n.type===I){r.push.apply(r,ct(n.props.children,s));return}C(n.type===us,`[${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||s.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=ct(n.props.children,s)),r.push(a)}),r}var De="get",Ie="application/x-www-form-urlencoded";function Ge(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function cs(e){return Ge(e)&&e.tagName.toLowerCase()==="button"}function hs(e){return Ge(e)&&e.tagName.toLowerCase()==="form"}function fs(e){return Ge(e)&&e.tagName.toLowerCase()==="input"}function ds(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ps(e,t){return e.button===0&&(!t||t==="_self")&&!ds(e)}function ht(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(i=>[r,i]):[[r,n]])},[]))}function _s(e,t){let r=ht(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(s=>{r.append(i,s)})}),r}var Fe=null;function ms(){if(Fe===null)try{new FormData(document.createElement("form"),0),Fe=!1}catch{Fe=!0}return Fe}var ys=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tt(e){return e!=null&&!ys.has(e)?(H(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ie}"`),null):e}function vs(e,t){let r,n,i,s,a;if(hs(e)){let o=e.getAttribute("action");n=o?J(o,t):null,r=e.getAttribute("method")||De,i=tt(e.getAttribute("enctype"))||Ie,s=new FormData(e)}else if(cs(e)||fs(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 c=e.getAttribute("formaction")||o.getAttribute("action");if(n=c?J(c,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||De,i=tt(e.getAttribute("formenctype"))||tt(o.getAttribute("enctype"))||Ie,s=new FormData(o,e),!ms()){let{name:l,type:h,value:u}=e;if(h==="image"){let f=l?`${l}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else l&&s.append(l,u)}}else{if(Ge(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=De,n=null,i=Ie,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _n(e,t,r,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:i.pathname==="/"?i.pathname=`_root.${n}`:t&&J(i.pathname,t)==="/"?i.pathname=`${Qe(t)}/_root.${n}`:i.pathname=`${Qe(i.pathname)}.${n}`,i}async function gs(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 bs(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 ws(e,t,r){let n=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let a=await gs(s,r);return a.links?a.links():[]}return[]}));return Es(n.flat(1).filter(bs).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function fr(e,t,r,n,i,s){let a=(c,l)=>r[l]?c.route.id!==r[l].route.id:!0,o=(c,l)=>r[l].pathname!==c.pathname||r[l].route.path?.endsWith("*")&&r[l].params["*"]!==c.params["*"];return s==="assets"?t.filter((c,l)=>a(c,l)||o(c,l)):s==="data"?t.filter((c,l)=>{let h=n.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(a(c,l)||o(c,l))return!0;if(c.route.shouldRevalidate){let u=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function Rs(e,t,{includeHydrateFallback:r}={}){return Ss(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function Ss(e){return[...new Set(e)]}function Ps(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Es(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let s=JSON.stringify(Ps(i));return r.has(s)||(r.add(s),n.push({key:s,link:i})),n},[])}function $t(){let e=R(he);return Tt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Cs(){let e=R(Ve);return Tt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Mt=$(void 0);Mt.displayName="FrameworkContext";function Lt(){let e=R(Mt);return Tt(e,"You must render this element inside a <HydratedRouter> element"),e}function Os(e,t){let r=R(Mt),[n,i]=G(!1),[s,a]=G(!1),{onFocus:o,onBlur:c,onMouseEnter:l,onMouseLeave:h,onTouchStart:u}=t,f=te(null);B(()=>{if(e==="render"&&a(!0),e==="viewport"){let _=y=>{y.forEach(v=>{a(v.isIntersecting)})},d=new IntersectionObserver(_,{threshold:.5});return f.current&&d.observe(f.current),()=>{d.disconnect()}}},[e]),B(()=>{if(n){let _=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(_)}}},[n]);let p=()=>{i(!0)},m=()=>{i(!1),a(!1)};return r?e!=="intent"?[s,f,{}]:[s,f,{onFocus:pe(o,p),onBlur:pe(c,m),onMouseEnter:pe(l,p),onMouseLeave:pe(h,m),onTouchStart:pe(u,p)}]:[!1,f,{}]}function pe(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function xs({page:e,...t}){let r=Hi(),{router:n}=$t(),i=U(()=>Zr(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?r?b(Fs,{page:e,matches:i,...t}):b(Ts,{page:e,matches:i,...t}):null}function ks(e){let{manifest:t,routeModules:r}=Lt(),[n,i]=G([]);return B(()=>{let s=!1;return ws(e,t,r).then(a=>{s||i(a)}),()=>{s=!0}},[e,t,r]),n}function Fs({page:e,matches:t,...r}){let n=K(),{future:i}=Lt(),{basename:s}=$t(),a=U(()=>{if(e===n.pathname+n.search+n.hash)return[];let o=_n(e,s,i.unstable_trailingSlashAwareDataRequests,"rsc"),c=!1,l=[];for(let h of t)typeof h.route.shouldRevalidate=="function"?c=!0:l.push(h.route.id);return c&&l.length>0&&o.searchParams.set("_routes",l.join(",")),[o.pathname+o.search]},[s,i.unstable_trailingSlashAwareDataRequests,e,n,t]);return b(I,null,a.map(o=>b("link",{key:o,rel:"prefetch",as:"fetch",href:o,...r})))}function Ts({page:e,matches:t,...r}){let n=K(),{future:i,manifest:s,routeModules:a}=Lt(),{basename:o}=$t(),{loaderData:c,matches:l}=Cs(),h=U(()=>fr(e,t,l,s,n,"data"),[e,t,l,s,n]),u=U(()=>fr(e,t,l,s,n,"assets"),[e,t,l,s,n]),f=U(()=>{if(e===n.pathname+n.search+n.hash)return[];let _=new Set,d=!1;if(t.forEach(v=>{let g=s.routes[v.route.id];!g||!g.hasLoader||(!h.some(P=>P.route.id===v.route.id)&&v.route.id in c&&a[v.route.id]?.shouldRevalidate||g.hasClientLoader?d=!0:_.add(v.route.id))}),_.size===0)return[];let y=_n(e,o,i.unstable_trailingSlashAwareDataRequests,"data");return d&&_.size>0&&y.searchParams.set("_routes",t.filter(v=>_.has(v.route.id)).map(v=>v.route.id).join(",")),[y.pathname+y.search]},[o,i.unstable_trailingSlashAwareDataRequests,c,n,s,h,t,e,a]),p=U(()=>Rs(u,s),[u,s]),m=ks(u);return b(I,null,f.map(_=>b("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),p.map(_=>b("link",{key:_,rel:"modulepreload",href:_,...r})),m.map(({key:_,link:d})=>b("link",{key:_,nonce:r.nonce,...d,crossOrigin:d.crossOrigin??r.crossOrigin})))}function $s(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Ms=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ms&&(window.__reactRouterVersion="7.14.1")}catch{}function ka({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=te();i.current==null&&(i.current=di({window:n,v5Compat:!0}));let s=i.current,[a,o]=G({action:s.action,location:s.location}),c=W(l=>{r===!1?o(l):Pe(()=>o(l))},[r]);return se(()=>s.listen(c),[s,c]),b(ls,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,unstable_useTransitions:r})}var mn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yn=Ke(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:s,replace:a,unstable_mask:o,state:c,target:l,to:h,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},_){let{basename:d,navigator:y,unstable_useTransitions:v}=R(N),g=typeof h=="string"&&mn.test(h),P=sn(h,d);h=P.to;let S=zi(h,{relative:i}),M=K(),k=null;if(o){let Y=ze(o,[],M.unstable_mask?M.unstable_mask.pathname:"/",!0);d!=="/"&&(Y.pathname=Y.pathname==="/"?d:j([d,Y.pathname])),k=y.createHref(Y)}let[O,F,L]=Os(n,m),xe=Us(h,{replace:a,unstable_mask:o,state:c,target:l,preventScrollReset:u,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function ae(Y){t&&t(Y),Y.defaultPrevented||xe(Y)}let re=!(P.isExternal||s),Ht=b("a",{...m,...L,href:(re?k:void 0)||P.absoluteURL||S,onClick:re?ae:t,ref:$s(_,F),target:l,"data-discover":!g&&r==="render"?"true":void 0});return O&&!g?b(I,null,Ht,b(xs,{page:S})):Ht});yn.displayName="Link";var Ls=Ke(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:s,to:a,viewTransition:o,children:c,...l},h){let u=Oe(a,{relative:l.relative}),f=K(),p=R(Ve),{navigator:m,basename:_}=R(N),d=p!=null&&js(u)&&o===!0,y=m.encodeLocation?m.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,y=y.toLowerCase()),g&&_&&(g=J(g,_)||g);const P=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=v===y||!i&&v.startsWith(y)&&v.charAt(P)==="/",M=g!=null&&(g===y||!i&&g.startsWith(y)&&g.charAt(y.length)==="/"),k={isActive:S,isPending:M,isTransitioning:d},O=S?t:void 0,F;typeof n=="function"?F=n(k):F=[n,S?"active":null,M?"pending":null,d?"transitioning":null].filter(Boolean).join(" ");let L=typeof s=="function"?s(k):s;return b(yn,{...l,"aria-current":O,className:F,ref:h,style:L,to:a,viewTransition:o},typeof c=="function"?c(k):c)});Ls.displayName="NavLink";var Ds=Ke(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:s,method:a=De,action:o,onSubmit:c,relative:l,preventScrollReset:h,viewTransition:u,unstable_defaultShouldRevalidate:f,...p},m)=>{let{unstable_useTransitions:_}=R(N),d=Hs(),y=Qs(o,{relative:l}),v=a.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&mn.test(o);return b("form",{ref:m,method:v,action:y,onSubmit:n?c:S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let M=S.nativeEvent.submitter,k=M?.getAttribute("formmethod")||a,O=()=>d(M||S.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:i,state:s,relative:l,preventScrollReset:h,viewTransition:u,unstable_defaultShouldRevalidate:f});_&&r!==!1?Pe(()=>O()):O()},...p,"data-discover":!g&&e==="render"?"true":void 0})});Ds.displayName="Form";function Is(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vn(e){let t=R(he);return C(t,Is(e)),t}function Us(e,{target:t,replace:r,unstable_mask:n,state:i,preventScrollReset:s,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let h=xt(),u=K(),f=Oe(e,{relative:a});return W(p=>{if(ps(p,t)){p.preventDefault();let m=r!==void 0?r:ge(u)===ge(f),_=()=>h(e,{replace:m,unstable_mask:n,state:i,preventScrollReset:s,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:c});l?Pe(()=>_()):_()}},[u,h,f,r,n,i,t,e,s,a,o,c,l])}function Fa(e){H(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(ht(e)),r=te(!1),n=K(),i=U(()=>_s(n.search,r.current?null:t.current),[n.search]),s=xt(),a=W((o,c)=>{const l=ht(typeof o=="function"?o(new URLSearchParams(i)):o);r.current=!0,s("?"+l,c)},[s,i]);return[i,a]}var Ns=0,As=()=>`__${String(++Ns)}__`;function Hs(){let{router:e}=vn("useSubmit"),{basename:t}=R(N),r=is(),n=e.fetch,i=e.navigate;return W(async(s,a={})=>{let{action:o,method:c,encType:l,formData:h,body:u}=vs(s,t);if(a.navigate===!1){let f=a.fetcherKey||As();await n(f,r,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:u,formMethod:a.method||c,formEncType:a.encType||l,flushSync:a.flushSync})}else await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:h,body:u,formMethod:a.method||c,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,i,t,r])}function Qs(e,{relative:t}={}){let{basename:r}=R(N),n=R(q);C(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),s={...Oe(e||".",{relative:t})},a=K();if(e==null){s.search=a.search;let o=new URLSearchParams(s.search),c=o.getAll("index");if(c.some(h=>h==="")){o.delete("index"),c.filter(u=>u).forEach(u=>o.append("index",u));let h=o.toString();s.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:j([r,s.pathname])),ge(s)}function js(e,{relative:t}={}){let r=R(un);C(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=vn("useViewTransitionState"),i=Oe(e,{relative:t});if(!r.isTransitioning)return!1;let s=J(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=J(r.nextLocation.pathname,n)||r.nextLocation.pathname;return He(i.pathname,a)!=null||He(i.pathname,s)!=null}function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var de=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(){}},Bs=class extends de{#e;#t;#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.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Dt=new Bs,Ws={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},qs=class{#e=Ws;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ne=new qs;function Ks(e){setTimeout(e,0)}var zs=typeof window>"u"||"Deno"in globalThis;function D(){}function Vs(e,t){return typeof e=="function"?e(t):e}function ft(e){return typeof e=="number"&&e>=0&&e!==1/0}function gn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Z(e,t){return typeof e=="function"?e(t):e}function A(e,t){return typeof e=="function"?e(t):e}function dr(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(n){if(t.queryHash!==It(a,t.options))return!1}else if(!be(t.queryKey,a))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||s&&!s(t))}function pr(e,t){const{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(ie(t.options.mutationKey)!==ie(s))return!1}else if(!be(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function It(e,t){return(t?.queryKeyHashFn||ie)(e)}function ie(e){return JSON.stringify(e,(t,r)=>dt(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],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 Gs=Object.prototype.hasOwnProperty;function bn(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=_r(e)&&_r(t);if(!n&&!(dt(e)&&dt(t)))return t;const s=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),o=a.length,c=n?new Array(o):{};let l=0;for(let h=0;h<o;h++){const u=n?h:a[h],f=e[u],p=t[u];if(f===p){c[u]=f,(n?h<s:Gs.call(e,u))&&l++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){c[u]=p;continue}const m=bn(f,p,r+1);c[u]=m,m===f&&l++}return s===o&&l===s?e:c}function je(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 _r(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dt(e){if(!mr(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!mr(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mr(e){return Object.prototype.toString.call(e)==="[object Object]"}function Js(e){return new Promise(t=>{ne.setTimeout(t,e)})}function pt(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?bn(e,t):t}function Ys(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Xs(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ut=Symbol();function wn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ut?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Nt(e,t){return typeof e=="function"?e(...t):!!e}function Zs(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var we=(()=>{let e=()=>zs;return{isServer(){return e()},setIsServer(t){e=t}}})();function _t(){let e,t;const r=new Promise((i,s)=>{e=i,t=s});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var ea=Ks;function ta(){let e=[],t=0,r=o=>{o()},n=o=>{o()},i=ea;const s=o=>{t?e.push(o):i(()=>{r(o)})},a=()=>{const o=e;e=[],o.length&&i(()=>{n(()=>{o.forEach(c=>{r(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||a()}return c},batchCalls:o=>(...c)=>{s(()=>{o(...c)})},schedule:s,setNotifyFunction:o=>{r=o},setBatchNotifyFunction:o=>{n=o},setScheduler:o=>{i=o}}}var T=ta(),ra=class extends de{#e=!0;#t;#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.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},Be=new ra;function na(e){return Math.min(1e3*2**e,3e4)}function Rn(e){return(e??"online")==="online"?Be.isOnline():!0}var mt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Sn(e){let t=!1,r=0,n;const i=_t(),s=()=>i.status!=="pending",a=_=>{if(!s()){const d=new mt(_);f(d),e.onCancel?.(d)}},o=()=>{t=!0},c=()=>{t=!1},l=()=>Dt.isFocused()&&(e.networkMode==="always"||Be.isOnline())&&e.canRun(),h=()=>Rn(e.networkMode)&&e.canRun(),u=_=>{s()||(n?.(),i.resolve(_))},f=_=>{s()||(n?.(),i.reject(_))},p=()=>new Promise(_=>{n=d=>{(s()||l())&&_(d)},e.onPause?.()}).then(()=>{n=void 0,s()||e.onContinue?.()}),m=()=>{if(s())return;let _;const d=r===0?e.initialPromise:void 0;try{_=d??e.fn()}catch(y){_=Promise.reject(y)}Promise.resolve(_).then(u).catch(y=>{if(s())return;const v=e.retry??(we.isServer()?0:3),g=e.retryDelay??na,P=typeof g=="function"?g(r,y):g,S=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,y);if(t||!S){f(y);return}r++,e.onFail?.(r,y),Js(P).then(()=>l()?void 0:p()).then(()=>{t?f(y):m()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(n?.(),i),cancelRetry:o,continueRetry:c,canStart:h,start:()=>(h()?m():p().then(m),i)}}var Pn=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ft(this.gcTime)&&(this.#e=ne.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(we.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ne.clearTimeout(this.#e),this.#e=void 0)}},ia=class extends Pn{#e;#t;#r;#i;#n;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=vr(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=vr(this.options);t.data!==void 0&&(this.setState(yr(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=pt(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(D).catch(D):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>A(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ut||!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:!gn(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(c=>c.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)})},i=()=>{const o=wn(this.options,t),l=(()=>{const h={client:this.#i,queryKey:this.queryKey,meta:this.meta};return n(h),h})();return this.#a=!1,this.options.persister?this.options.persister(o,l,this):o(l)},a=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return n(o),o})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#n=Sn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof mt&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(o,c)=>{this.#u({type:"failed",failureCount:o,error:c})},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 mt){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,...En(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...yr(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const i=e.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),T.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function En(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Rn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vr(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 Cn=class extends de{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#a=_t(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#i=void 0;#n;#s;#a;#o;#u;#d;#p;#c;#h;#l;#_=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gr(this.#t,this.options)?this.#f():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yt(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yt(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof A(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#t.setOptions(this.options),t._defaulted&&!je(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&br(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#t!==r||A(this.options.enabled,this.#t)!==A(t.enabled,this.#t)||Z(this.options.staleTime,this.#t)!==Z(t.staleTime,this.#t))&&this.#m();const i=this.#y();n&&(this.#t!==r||A(this.options.enabled,this.#t)!==A(t.enabled,this.#t)||i!==this.#l)&&this.#v(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return aa(this,r)&&(this.#i=r,this.#s=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#i}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.#_.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(e){this.#R();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(D)),t}#m(){this.#b();const e=Z(this.options.staleTime,this.#t);if(we.isServer()||this.#i.isStale||!ft(e))return;const r=gn(this.#i.dataUpdatedAt,e)+1;this.#c=ne.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(we.isServer()||A(this.options.enabled,this.#t)===!1||!ft(this.#l)||this.#l===0)&&(this.#h=ne.setInterval(()=>{(this.options.refetchIntervalInBackground||Dt.isFocused())&&this.#f()},this.#l))}#g(){this.#m(),this.#v(this.#y())}#b(){this.#c!==void 0&&(ne.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#h!==void 0&&(ne.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){const r=this.#t,n=this.options,i=this.#i,s=this.#n,a=this.#s,c=e!==r?e.state:this.#r,{state:l}=e;let h={...l},u=!1,f;if(t._optimisticResults){const O=this.hasListeners(),F=!O&&gr(e,t),L=O&&br(e,r,t,n);(F||L)&&(h={...h,...En(l.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:_}=h;f=h.data;let d=!1;if(t.placeholderData!==void 0&&f===void 0&&_==="pending"){let O;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(O=i.data,d=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,O!==void 0&&(_="success",f=pt(i?.data,O,t),u=!0)}if(t.select&&f!==void 0&&!d)if(i&&f===s?.data&&t.select===this.#u)f=this.#d;else try{this.#u=t.select,f=t.select(f),f=pt(i?.data,f,t),this.#d=f,this.#o=null}catch(O){this.#o=O}this.#o&&(p=this.#o,f=this.#d,m=Date.now(),_="error");const y=h.fetchStatus==="fetching",v=_==="pending",g=_==="error",P=v&&y,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:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:g&&!S,isPaused:h.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:g&&S,isStale:At(e,t),refetch:this.refetch,promise:this.#a,isEnabled:A(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=k.data!==void 0,F=k.status==="error"&&!O,L=re=>{F?re.reject(k.error):O&&re.resolve(k.data)},xe=()=>{const re=this.#a=k.promise=_t();L(re)},ae=this.#a;switch(ae.status){case"pending":e.queryHash===r.queryHash&&L(ae);break;case"fulfilled":(F||k.data!==ae.value)&&xe();break;case"rejected":(!F||k.error!==ae.reason)&&xe();break}}return k}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#p=this.#t),je(t,e))return;this.#i=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#_.size)return!0;const s=new Set(i??this.#_);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(a=>{const o=a;return this.#i[o]!==e[o]&&s.has(o)})};this.#S({listeners:r()})}#R(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#S(e){T.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function sa(e,t){return A(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gr(e,t){return sa(e,t)||e.state.data!==void 0&&yt(e,t,t.refetchOnMount)}function yt(e,t,r){if(A(t.enabled,e)!==!1&&Z(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&At(e,t)}return!1}function br(e,t,r,n){return(e!==t||A(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&At(e,r)}function At(e,t){return A(t.enabled,e)!==!1&&e.isStaleByTime(Z(t.staleTime,e))}function aa(e,t){return!je(e.getCurrentResult(),t)}function We(e){return{onFetch:(t,r)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},c=0;const l=async()=>{let h=!1;const u=m=>{Zs(m,()=>t.signal,()=>h=!0)},f=wn(t.options,t.fetchOptions),p=async(m,_,d)=>{if(h)return Promise.reject();if(_==null&&m.pages.length)return Promise.resolve(m);const v=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:_,direction:d?"backward":"forward",meta:t.options.meta};return u(M),M})(),g=await f(v),{maxPages:P}=t.options,S=d?Xs:Ys;return{pages:S(m.pages,g,P),pageParams:S(m.pageParams,_,P)}};if(i&&s.length){const m=i==="backward",_=m?On:vt,d={pages:s,pageParams:a},y=_(n,d);o=await p(d,y,m)}else{const m=e??s.length;do{const _=c===0?a[0]??n.initialPageParam:vt(n,o);if(c>0&&_==null)break;o=await p(o,_),c++}while(c<m)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function vt(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 On(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function oa(e,t){return t?vt(e,t)!=null:!1}function ua(e,t){return!t||!e.getPreviousPageParam?!1:On(e,t)!=null}var la=class extends Cn{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:i,isRefetching:s,isError:a,isRefetchError:o}=n,c=r.fetchMeta?.fetchMore?.direction,l=a&&c==="forward",h=i&&c==="forward",u=a&&c==="backward",f=i&&c==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:oa(t,r.data),hasPreviousPage:ua(t,r.data),isFetchNextPageError:l,isFetchingNextPage:h,isFetchPreviousPageError:u,isFetchingPreviousPage:f,isRefetchError:o&&!l&&!u,isRefetching:s&&!h&&!f}}},ca=class extends Pn{#e;#t;#r;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||xn(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Sn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(s,a)=>{this.#n({type:"failed",failureCount:s,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",i=!this.#i.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:i}),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:i})}const s=await this.#i.start();return await this.#r.config.onSuccess?.(s,e,this.state.context,this,r),await this.options.onSuccess?.(s,e,this.state.context,r),await this.#r.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,e,this.state.context,r),this.#n({type:"success",data:s}),s}catch(s){try{await this.#r.config.onError?.(s,e,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onError?.(s,e,this.state.context,r)}catch(a){Promise.reject(a)}try{await this.#r.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,r)}catch(a){Promise.reject(a)}throw this.#n({type:"error",error:s}),s}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),T.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function xn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ha=class extends de{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new ca({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=Te(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Te(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Te(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(i=>i.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Te(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){T.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>pr(t,r))}findAll(e={}){return this.getAll().filter(t=>pr(e,t))}notify(e){T.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return T.batch(()=>Promise.all(e.map(t=>t.continue().catch(D))))}};function Te(e){return e.options.scope?.id}var fa=class extends de{#e;#t=void 0;#r;#i;constructor(t,r){super(),this.#e=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.#e.defaultMutationOptions(t),je(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&ie(r.mutationKey)!==ie(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.#s(t)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(t,r){return this.#i=r,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(t)}#n(){const t=this.#r?.state??xn();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){T.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,r,n,i)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(t.data,null,r,n,i)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,r,n,i)}catch(s){Promise.reject(s)}try{this.#i.onSettled?.(void 0,t.error,r,n,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(r=>{r(this.#t)})})}},da=class extends de{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,i=t.queryHash??It(n,t);let s=this.get(i);return s||(s=new ia({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){T.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>dr(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>dr(e,r)):t}notify(e){T.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){T.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){T.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ma=class{#e;#t;#r;#i;#n;#s;#a;#o;constructor(e={}){this.#e=e.queryCache||new da,this.#t=e.mutationCache||new ha,this.#r=e.defaultOptions||{},this.#i=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Dt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Be.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.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.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(n.queryHash)?.state.data,a=Vs(t,s);if(a!==void 0)return this.#e.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return T.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;T.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return T.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=T.batch(()=>this.#e.findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(D).catch(D)}invalidateQueries(e,t={}){return T.batch(()=>(this.#e.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=T.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(D)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(D)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.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(D).catch(D)}fetchInfiniteQuery(e){return e.behavior=We(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(D).catch(D)}ensureInfiniteQueryData(e){return e.behavior=We(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Be.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#i.set(ie(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(n=>{be(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(ie(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=It(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===Ut&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},kn=$(void 0),Fn=e=>{const t=R(kn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},La=({client:e,children:t})=>(B(()=>(e.mount(),()=>{e.unmount()}),[e]),jn(kn.Provider,{value:e,children:t})),Tn=$(!1),pa=()=>R(Tn);Tn.Provider;function _a(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ma=$(_a()),ya=()=>R(ma),va=(e,t,r)=>{const n=r?.state.error&&typeof e.throwOnError=="function"?Nt(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},ga=e=>{B(()=>{e.clearReset()},[e])},ba=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||Nt(r,[e.error,n])),wa=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ra=(e,t)=>e.isLoading&&e.isFetching&&!t,Sa=(e,t)=>e?.suspense&&t.isPending,wr=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function $n(e,t,r){const n=pa(),i=ya(),s=Fn(),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const o=s.getQueryCache().get(a.queryHash);a._optimisticResults=n?"isRestoring":"optimistic",wa(a),va(a,i,o),ga(i);const c=!s.getQueryCache().get(a.queryHash),[l]=G(()=>new t(s,a)),h=l.getOptimisticResult(a),u=!n&&e.subscribed!==!1;if(qe(W(f=>{const p=u?l.subscribe(T.batchCalls(f)):D;return l.updateResult(),p},[l,u]),()=>l.getCurrentResult()),B(()=>{l.setOptions(a)},[a,l]),Sa(a,h))throw wr(a,l,i);if(ba({result:h,errorResetBoundary:i,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw h.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!we.isServer()&&Ra(h,n)&&(c?wr(a,l,i):o?.promise)?.catch(D).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?h:l.trackResult(h)}function Da(e,t){return $n(e,Cn)}function Ia(e,t){const r=Fn(),[n]=G(()=>new fa(r,e));B(()=>{n.setOptions(e)},[n,e]);const i=qe(W(a=>n.subscribe(T.batchCalls(a)),[n]),()=>n.getCurrentResult()),s=W((a,o)=>{n.mutate(a,o).catch(D)},[n]);if(i.error&&Nt(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function Ua(e,t){return $n(e,la)}export{Jn as $,te as A,ka as B,Q as C,Ke as D,yn as L,Br as N,Le as P,Ma as Q,xa as R,I as S,U as T,$ as X,Da as a,Fn as b,Ia as c,G as d,Ua as e,xt as f,Pa as g,Ta as h,us as i,Ca as j,b as k,Oa as l,Ea as m,La as n,Fa as o,St as p,W as q,jn as u,R as x,B as y,zn 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-CHVF4D4L.js"></script>
28
+ <link rel="modulepreload" crossorigin href="/assets/vendor-DdbgYKo4.js">
29
+ <link rel="stylesheet" crossorigin href="/assets/index-BK_Zaqaw.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,3 @@
1
+ User-agent: *
2
+ Allow: /
3
+ Disallow: /api/
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "ani-web",
3
+ "private": true,
4
+ "version": "1.5.8",
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
+ "lighthouse": "lighthouse http://localhost:4173 --view",
17
+ "format": "prettier --write ."
18
+ },
19
+ "dependencies": {
20
+ "@preact/preset-vite": "^2.10.5",
21
+ "@tanstack/query-sync-storage-persister": "^5.99.2",
22
+ "@tanstack/react-query": "^5.99.2",
23
+ "@tanstack/react-query-persist-client": "^5.99.2",
24
+ "@types/nprogress": "^0.2.3",
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
+ },
34
+ "devDependencies": {
35
+ "@eslint/js": "^10.0.1",
36
+ "@types/react": "^19.2.14",
37
+ "@types/react-dom": "^19.2.3",
38
+ "@vitejs/plugin-react": "^5.0.0",
39
+ "baseline-browser-mapping": "^2.10.20",
40
+ "concurrently": "^9.2.1",
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
+ "lighthouse": "^13.1.0",
47
+ "prettier": "^3.8.3",
48
+ "rimraf": "^6.1.3",
49
+ "typescript": "^6.0.3",
50
+ "typescript-eslint": "^8.58.2",
51
+ "vite": "^7.3.1",
52
+ "vite-plugin-compression": "^0.5.1"
53
+ }
54
+ }