@serifpersia/dango 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +247 -0
- package/client/dist/assets/AnimeInfo-CMxs0nRH.css +1 -0
- package/client/dist/assets/AnimeInfo-DVdaocCl.js +1 -0
- package/client/dist/assets/AnimeInfoPage-Bx5EvGt-.js +2 -0
- package/client/dist/assets/Asmr-C2i9GKD4.css +1 -0
- package/client/dist/assets/Asmr-CIjmFtRH.js +2 -0
- package/client/dist/assets/Asmr.module-DPG2JhDJ.js +1 -0
- package/client/dist/assets/AvSyncCalibrator-CIYcyon5.css +1 -0
- package/client/dist/assets/AvSyncCalibrator-vqErH7Cm.js +10 -0
- package/client/dist/assets/ErrorMessage-BwSjzblw.js +1 -0
- package/client/dist/assets/ErrorMessage-CXoRbrLN.css +1 -0
- package/client/dist/assets/Home-D7YfGBUk.js +1 -0
- package/client/dist/assets/Home-DKCfEiwl.css +1 -0
- package/client/dist/assets/Insights-BljI64Ua.css +1 -0
- package/client/dist/assets/Insights-CLQGrlpX.js +1 -0
- package/client/dist/assets/Manga-DQ9HYnpk.js +1 -0
- package/client/dist/assets/Manga-H8Wb04w3.css +1 -0
- package/client/dist/assets/Map-CXFqXmsZ.css +1 -0
- package/client/dist/assets/Map-L_ryVBTq.js +1 -0
- package/client/dist/assets/Mature-BeWzAJ7B.js +1 -0
- package/client/dist/assets/Mature-DJmUUtlF.css +1 -0
- package/client/dist/assets/Player-CYpd__FP.js +30 -0
- package/client/dist/assets/Player-DreAhybc.css +1 -0
- package/client/dist/assets/PlayerRedirect-fxUAp9JV.js +1 -0
- package/client/dist/assets/PlayerSettings-BcsotxP9.js +1 -0
- package/client/dist/assets/PlayerSettings-Cqua1CDD.css +1 -0
- package/client/dist/assets/QueueRail-B9Pgbqc3.js +1 -0
- package/client/dist/assets/QueueRail-BnaltOP8.css +1 -0
- package/client/dist/assets/Radio-BvdY5twD.js +1 -0
- package/client/dist/assets/Radio-CUuYy3DY.css +1 -0
- package/client/dist/assets/Search-BzO-aRP7.css +1 -0
- package/client/dist/assets/Search-R9YLAXS1.js +1 -0
- package/client/dist/assets/Search.module-D8ZbQAiK.js +1 -0
- package/client/dist/assets/Settings-9kYcXdTR.js +21 -0
- package/client/dist/assets/Settings-DF8JThUL.css +1 -0
- package/client/dist/assets/SkeletonGrid-D5vRvX5q.js +1 -0
- package/client/dist/assets/SkeletonGrid-DEbYtO4H.css +1 -0
- package/client/dist/assets/SynopsisText-BlFw0R-0.js +1 -0
- package/client/dist/assets/SynopsisText-CUgOjOxt.css +1 -0
- package/client/dist/assets/Trackers-DfZlnnVq.js +2 -0
- package/client/dist/assets/Trackers-Dt9lR_uP.css +1 -0
- package/client/dist/assets/Tv-CVKC2YBs.css +1 -0
- package/client/dist/assets/Tv-Db1Wx_b7.js +15 -0
- package/client/dist/assets/Watchlist-B2nkNZqM.css +1 -0
- package/client/dist/assets/Watchlist-a77CYtzu.js +1 -0
- package/client/dist/assets/hls-6Owgw2Aj.js +1 -0
- package/client/dist/assets/hls-BOLXTnjL.js +42 -0
- package/client/dist/assets/index-B6qdXFtl.css +1 -0
- package/client/dist/assets/index-B8TPVaIS.js +30354 -0
- package/client/dist/assets/index-CpjgU8ou.js +178 -0
- package/client/dist/assets/useAnimeInfoData-BOfyi9UJ.js +1 -0
- package/client/dist/assets/useIsMobile-CM15uQn8.css +1 -0
- package/client/dist/assets/useIsMobile-Cb8HcKRj.js +1 -0
- package/client/dist/assets/useMatureConsent-CZMYBVXd.js +1 -0
- package/client/dist/assets/vendor-rLNfZm7Y.js +1 -0
- package/client/dist/av-sync-test.mp4 +0 -0
- package/client/dist/favicon.ico +0 -0
- package/client/dist/index.html +31 -0
- package/client/dist/logo-mochi.png +0 -0
- package/client/dist/logo-sakura.png +0 -0
- package/client/dist/logo.png +0 -0
- package/client/dist/placeholder.svg +4 -0
- package/client/dist/robots.txt +3 -0
- package/orchestrator.js +416 -0
- package/package.json +89 -0
- package/server/dist/app-auth.js +231 -0
- package/server/dist/config.js +133 -0
- package/server/dist/controllers/auth.controller.js +247 -0
- package/server/dist/controllers/data.controller.js +785 -0
- package/server/dist/controllers/insights.controller.js +197 -0
- package/server/dist/controllers/proxy.controller.js +665 -0
- package/server/dist/controllers/settings.controller.js +267 -0
- package/server/dist/controllers/watchlist.controller.js +967 -0
- package/server/dist/db.js +152 -0
- package/server/dist/discord-gateway.js +381 -0
- package/server/dist/discord-rpc.js +424 -0
- package/server/dist/github-sync.js +403 -0
- package/server/dist/google.js +549 -0
- package/server/dist/lib/anilist.js +1519 -0
- package/server/dist/lib/anischedule.js +202 -0
- package/server/dist/lib/ipc.js +32 -0
- package/server/dist/lib/kitsu.js +552 -0
- package/server/dist/lib/mal.js +886 -0
- package/server/dist/lib/migration.js +335 -0
- package/server/dist/lib/temp-ids.js +11 -0
- package/server/dist/lib/tmdb.js +71 -0
- package/server/dist/lib/tracker/anilist-tracker.js +250 -0
- package/server/dist/lib/tracker/sync.service.js +312 -0
- package/server/dist/logger.js +19 -0
- package/server/dist/providers/123anime.provider.js +240 -0
- package/server/dist/providers/anilight.provider.js +366 -0
- package/server/dist/providers/animepahe.provider.js +531 -0
- package/server/dist/providers/animeya.provider.js +746 -0
- package/server/dist/providers/base-provider.js +45 -0
- package/server/dist/providers/hn.provider.js +473 -0
- package/server/dist/providers/ht.provider.js +439 -0
- package/server/dist/providers/jasmr.provider.js +504 -0
- package/server/dist/providers/kaa.provider.js +388 -0
- package/server/dist/providers/manga/manga.types.js +10 -0
- package/server/dist/providers/manga/mangadex.provider.js +227 -0
- package/server/dist/providers/manga/mangapill.provider.js +232 -0
- package/server/dist/providers/megaplay.provider.js +583 -0
- package/server/dist/providers/op.provider.js +440 -0
- package/server/dist/providers/provider.interface.js +2 -0
- package/server/dist/providers/title-matching.js +234 -0
- package/server/dist/providers/wh.provider.js +600 -0
- package/server/dist/rclone.js +126 -0
- package/server/dist/repositories/insights.repository.js +43 -0
- package/server/dist/repositories/mal-cache.repository.js +66 -0
- package/server/dist/repositories/notifications.repository.js +40 -0
- package/server/dist/repositories/queue.repository.js +64 -0
- package/server/dist/repositories/settings.repository.js +15 -0
- package/server/dist/repositories/shows-meta.repository.js +43 -0
- package/server/dist/repositories/temp-show-ids.repository.js +54 -0
- package/server/dist/repositories/watched-episodes.repository.js +54 -0
- package/server/dist/repositories/watchlist.repository.js +74 -0
- package/server/dist/routes/asmr.routes.js +72 -0
- package/server/dist/routes/auth.routes.js +28 -0
- package/server/dist/routes/data.routes.js +50 -0
- package/server/dist/routes/discord-gateway.routes.js +57 -0
- package/server/dist/routes/insights.routes.js +12 -0
- package/server/dist/routes/lan-auth.routes.js +49 -0
- package/server/dist/routes/manga.routes.js +115 -0
- package/server/dist/routes/proxy.routes.js +15 -0
- package/server/dist/routes/radio.routes.js +143 -0
- package/server/dist/routes/settings.routes.js +27 -0
- package/server/dist/routes/tracker.routes.js +143 -0
- package/server/dist/routes/translate.routes.js +90 -0
- package/server/dist/routes/tv.routes.js +843 -0
- package/server/dist/routes/watchlist.routes.js +312 -0
- package/server/dist/server.js +310 -0
- package/server/dist/shipped-defaults.js +8 -0
- package/server/dist/sync-config.js +32 -0
- package/server/dist/sync.js +506 -0
- package/server/dist/utils/cookie.utils.js +17 -0
- package/server/dist/utils/db-utils.js +15 -0
- package/server/dist/utils/env.utils.js +83 -0
- package/server/dist/utils/machine-id.js +46 -0
- package/server/dist/utils/request-context.js +5 -0
- package/server/dist/utils/security.utils.js +99 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Pe,b,Tr,te,Gt,Lr,Mr,Ve,Le,ge,Dr,pt,et,tt,Ir,Ie={},Ue=[],Yn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ee=Array.isArray;function K(e,t){for(var r in t)e[r]=t[r];return e}function _t(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,r){var n,s,i,o={};for(i in t)i=="key"?n=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Pe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return be(e,o,n,s,null)}function be(e,t,r,n,s){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Tr,__i:-1,__u:0};return s==null&&b.vnode!=null&&b.vnode(i),i}function Ur(){return{current:null}}function D(e){return e.children}function H(e,t){this.props=e,this.context=t}function se(e,t){if(t==null)return e.__?se(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"?se(e):null}function Xn(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],s=[],i=K({},t);i.__v=t.__v+1,b.vnode&&b.vnode(i),mt(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r??se(t),!!(32&t.__u),s),i.__v=t.__v,i.__.__k[i.__i]=i,Hr(n,i,s),t.__e=t.__=null,i.__e!=r&&$r(i)}}function $r(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),$r(e)}function rt(e){(!e.__d&&(e.__d=!0)&&te.push(e)&&!$e.__r++||Gt!=b.debounceRendering)&&((Gt=b.debounceRendering)||Lr)($e)}function $e(){try{for(var e,t=1;te.length;)te.length>t&&te.sort(Mr),e=te.shift(),t=te.length,Xn(e)}finally{te.length=$e.__r=0}}function Ar(e,t,r,n,s,i,o,a,u,l,h){var f,c,d,p,m,_,v=n&&n.__k||Ue,y=t.length;for(u=Zn(r,t,v,u,y),f=0;f<y;f++)(d=r.__k[f])!=null&&(c=d.__i!=-1&&v[d.__i]||Ie,d.__i=f,_=mt(e,d,c,s,i,o,a,u,l,h),p=d.__e,d.ref&&c.ref!=d.ref&&(c.ref&&yt(c.ref,null,d),h.push(d.ref,d.__c||p,d)),m==null&&p!=null&&(m=p),4&d.__u?(u=Nr(d,u,e),c.__e&&(c.__e=null)):typeof d.type=="function"&&_!==void 0?u=_:p&&(u=p.nextSibling),d.__u&=-7);return r.__e=m,u}function Zn(e,t,r,n,s){var i,o,a,u,l,h=r.length,f=h,c=0;for(e.__k=new Array(s),i=0;i<s;i++)(o=t[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?o=e.__k[i]=be(null,o,null,null,null):Ee(o)?o=e.__k[i]=be(D,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[i]=be(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[i]=o,u=i+c,o.__=e,o.__b=e.__b+1,a=null,(l=o.__i=es(o,r,u,f))!=-1&&(f--,(a=r[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(s>h?c--:s<h&&c++),typeof o.type!="function"&&(o.__u|=4)):l!=u&&(l==u-1?c--:l==u+1?c++:(l>u?c--:c++,o.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<h;i++)(a=r[i])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=se(a)),Br(a,a));return n}function Nr(e,t,r){var n,s;if(typeof e.type=="function"){for(n=e.__k,s=0;n&&s<n.length;s++)n[s]&&(n[s].__=e,t=Nr(n[s],t,r));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=se(e)),t=r.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function G(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ee(e)?e.some(function(r){G(r,t)}):t.push(e)),t}function es(e,t,r,n){var s,i,o,a=e.key,u=e.type,l=t[r],h=l!=null&&(2&l.__u)==0;if(l===null&&a==null||h&&a==l.key&&u==l.type)return r;if(n>(h?1:0)){for(s=r-1,i=r+1;s>=0||i<t.length;)if((l=t[o=s>=0?s--:i++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return o}return-1}function Jt(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Yn.test(t)?r:r+"px"}function ke(e,t,r,n,s){var i,o;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")i=t!=(t=t.replace(Dr,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[ge]=n[ge]:(r[ge]=pt,e.addEventListener(t,i?tt:et,i)):e.removeEventListener(t,i?tt:et,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Yt(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Le]==null)t[Le]=pt++;else if(t[Le]<r[ge])return;return r(b.event?b.event(t):t)}}}function mt(e,t,r,n,s,i,o,a,u,l){var h,f,c,d,p,m,_,v,y,g,P,R,O,I,$,z,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),i=[a=t.__e=r.__e]),(h=b.__b)&&h(t);e:if(typeof U=="function"){f=o.length;try{if(y=t.props,g=U.prototype&&U.prototype.render,P=(h=U.contextType)&&n[h.__c],R=h?P?P.props.value:h.__:n,r.__c?v=(c=t.__c=r.__c).__=c.__E:(g?t.__c=c=new U(y,R):(t.__c=c=new H(y,R),c.constructor=U,c.render=rs),P&&P.sub(c),c.state||(c.state={}),c.__n=n,d=c.__d=!0,c.__h=[],c._sb=[]),g&&c.__s==null&&(c.__s=c.state),g&&U.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=K({},c.__s)),K(c.__s,U.getDerivedStateFromProps(y,c.__s))),p=c.props,m=c.state,c.__v=t,d)g&&U.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),g&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(g&&U.getDerivedStateFromProps==null&&y!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,R),t.__v==r.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,R)===!1){t.__v!=r.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Z){Z&&(Z.__=t)}),Ue.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&o.push(c),a=se(r);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,R),g&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,m,_)})}if(c.context=R,c.props=y,c.__P=e,c.__e=!1,O=b.__r,I=0,g)c.state=c.__s,c.__d=!1,O&&O(t),h=c.render(c.props,c.state,c.context),Ue.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,O&&O(t),h=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++I<25);c.state=c.__s,c.getChildContext!=null&&(n=K(K({},n),c.getChildContext())),g&&!d&&c.getSnapshotBeforeUpdate!=null&&(_=c.getSnapshotBeforeUpdate(p,m)),$=h!=null&&h.type===D&&h.key==null?jr(h.props.children):h,a=Ar(e,Ee($)?$:[$],t,r,n,s,i,o,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),v&&(c.__E=c.__=null)}catch(Z){if(o.length=f,t.__v=null,u||i!=null){if(Z.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i!=null&&(i[i.indexOf(a)]=null),t.__e=a}else if(i!=null)for(z=i.length;z--;)_t(i[z])}else t.__e=r.__e;t.__k==null&&(t.__k=r.__k||[]),Z.then||Qr(t),b.__e(Z,t,r)}}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=ts(r.__e,t,r,n,s,i,o,u,l);return(h=b.diffed)&&h(t),128&t.__u?void 0:a}function Qr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Qr))}function Hr(e,t,r){for(var n=0;n<r.length;n++)yt(r[n],r[++n],r[++n]);b.__c&&b.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){b.__e(i,s.__v)}})}function jr(e){return typeof e!="object"||e==null||e.__b>0?e:Ee(e)?e.map(jr):e.constructor!==void 0?null:K({},e)}function ts(e,t,r,n,s,i,o,a,u){var l,h,f,c,d,p,m,_=r.props||Ie,v=t.props,y=t.type;if(y=="svg"?s="http://www.w3.org/2000/svg":y=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((d=i[l])&&"setAttribute"in d==!!y&&(y?d.localName==y:d.nodeType==3)){e=d,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(s,y,v.is&&v),a&&(b.__m&&b.__m(t,i),a=!1),i=null}if(y==null)_===v||a&&e.data==v||(e.data=v);else{if(i=y=="textarea"&&v.defaultValue!=null?null:i&&Pe.call(e.childNodes),!a&&i!=null)for(_={},l=0;l<e.attributes.length;l++)_[(d=e.attributes[l]).name]=d.value;for(l in _)d=_[l],l=="dangerouslySetInnerHTML"?f=d:l=="children"||l in v||l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v||ke(e,l,null,d,s);for(l in v)d=v[l],l=="children"?c=d:l=="dangerouslySetInnerHTML"?h=d:l=="value"?p=d:l=="checked"?m=d:a&&typeof d!="function"||_[l]===d||ke(e,l,d,_[l],s);if(h)a||f&&(h.__html==f.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(f&&(e.innerHTML=""),Ar(t.type=="template"?e.content:e,Ee(c)?c:[c],t,r,n,y=="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:r.__k&&se(r,0),a,u),i!=null)for(l=i.length;l--;)_t(i[l]);a&&y!="textarea"||(l="value",y=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[l]||y=="progress"&&!p||y=="option"&&p!=_[l])&&ke(e,l,p,_[l],s),l="checked",m!=null&&m!=e[l]&&ke(e,l,m,_[l],s))}return e}function yt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(s){b.__e(s,r)}}function Br(e,t,r){var n,s;if(b.unmount&&b.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||yt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){b.__e(i,t)}n.base=n.__P=n.__n=null}if(n=e.__k)for(s=0;s<n.length;s++)n[s]&&Br(n[s],t,r||typeof e.type!="function");r||_t(e.__e),e.__c=e.__=e.__e=void 0}function rs(e,t,r){return this.constructor(e,r)}function Se(e,t,r){var n,s,i,o;t==document&&(t=document.documentElement),b.__&&b.__(e,t),s=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],o=[],mt(t,e=(!n&&r||t).__k=w(D,null,[e]),s||Ie,Ie,t.namespaceURI,!n&&r?[r]:s?null:t.firstChild?Pe.call(t.childNodes):null,i,!n&&r?r:s?s.__e:t.firstChild,n,o),Hr(i,e,o),e.props.children=null}function qr(e,t){Se(e,t,qr)}function ns(e,t,r){var n,s,i,o,a=K({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?s=t[i]:a[i]=t[i]===void 0&&o!=null?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Pe.call(arguments,2):r),be(e.type,a,n||e.key,s||e.ref,null)}function T(e){function t(r){var n,s;return this.getChildContext||(n=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(o){o.__e=!0,rt(o)})},this.sub=function(i){n.add(i);var o=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),o&&o.call(i)}}),r.children}return t.__c="__cC"+Ir++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Pe=Ue.slice,b={__e:function(e,t,r,n){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,n||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},Tr=0,H.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=K({},this.state),typeof e=="function"&&(e=e(K({},r),this.props)),e&&K(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),rt(this))},H.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rt(this))},H.prototype.render=D,te=[],Lr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mr=function(e,t){return e.__v.__b-t.__v.__b},$e.__r=0,Ve=Math.random().toString(8),Le="__d"+Ve,ge="__a"+Ve,Dr=/(PointerCapture)$|Capture$/i,pt=0,et=Yt(!1),tt=Yt(!0),Ir=0;var ss=0;function is(e,t,r,n,s,i){t||(t={});var o,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?o=t[a]:u[a]=t[a];var l={type:e,props:u,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ss,__i:-1,__u:0,__source:s,__self:i};if(typeof e=="function"&&(o=e.defaultProps))for(a in o)u[a]===void 0&&(u[a]=o[a]);return b.vnode&&b.vnode(l),l}const vt=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Wr=/^[\\/]{2}/;function os(e,t){return t+e.replace(/\\/g,"/")}const Xt="popstate";function Zt(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function as(e={}){function t(n,s){let i=s.state?.masked,{pathname:o,search:a,hash:u}=i||n.location;return nt("",{pathname:o,search:a,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default",i?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,s){return typeof s=="string"?s:ie(s)}return ls(t,r,null,e)}function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function V(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function us(){return Math.random().toString(36).substring(2,10)}function er(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function nt(e,t,r=null,n,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fe(t):t,state:r,key:t&&t.key||n||us(),mask:s}}function ie({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 fe(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 ls(e,t,r,n={}){let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a="POP",u=null,l=h();l==null&&(l=0,o.replaceState({...o.state,idx:l},""));function h(){return(o.state||{idx:null}).idx}function f(){a="POP";let _=h(),v=_==null?null:_-l;l=_,u&&u({action:a,location:m.location,delta:v})}function c(_,v){a="PUSH";let y=Zt(_)?_:nt(m.location,_,v);l=h()+1;let g=er(y,l),P=m.createHref(y.mask||y);try{o.pushState(g,"",P)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;s.location.assign(P)}i&&u&&u({action:a,location:m.location,delta:1})}function d(_,v){a="REPLACE";let y=Zt(_)?_:nt(m.location,_,v);l=h();let g=er(y,l),P=m.createHref(y.mask||y);o.replaceState(g,"",P),i&&u&&u({action:a,location:m.location,delta:0})}function p(_){return cs(s,_)}let m={get action(){return a},get location(){return e(s,o)},listen(_){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Xt,f),u=_,()=>{s.removeEventListener(Xt,f),u=null}},createHref(_){return t(s,_)},createURL:p,encodeLocation(_){let v=p(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:c,replace:d,go(_){return o.go(_)}};return m}function cs(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),C(n,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:ie(t);return s=s.replace(/ $/,"%20"),!r&&Wr.test(s)&&(s=n+s),new URL(s,n)}var J,E,ze,tr,ce=0,Kr=[],x=b,rr=x.__b,nr=x.__r,sr=x.diffed,ir=x.__c,or=x.unmount,ar=x.__;function ae(e,t){x.__h&&x.__h(E,e,ce||t),ce=0;var r=E.__H||(E.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function A(e){return ce=1,je(Vr,e)}function je(e,t,r){var n=ae(J++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Vr(void 0,t),function(a){var u=n.__N?n.__N[0]:n.__[0],l=n.t(u,a);u!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=E,!E.__f)){var s=function(a,u,l){if(!n.__c.__H)return!0;var h=!1,f=n.__c.props!==a;if(n.__c.__H.__.some(function(d){if(d.__N){h=!0;var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(f=!0)}}),i){var c=i.call(this,a,u,l);return h?c||f:c}return!h||f};E.__f=!0;var i=E.shouldComponentUpdate,o=E.componentWillUpdate;E.componentWillUpdate=function(a,u,l){if(this.__e){var h=i;i=void 0,s(a,u,l),i=h}o&&o.call(this,a,u,l)},E.shouldComponentUpdate=s}return n.__N||n.__}function N(e,t){var r=ae(J++,3);!x.__s&&wt(r.__H,t)&&(r.__=e,r.u=t,E.__H.__h.push(r))}function X(e,t){var r=ae(J++,4);!x.__s&&wt(r.__H,t)&&(r.__=e,r.u=t,E.__h.push(r))}function Y(e){return ce=5,M(function(){return{current:e}},[])}function gt(e,t,r){ce=6,X(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 M(e,t){var r=ae(J++,7);return wt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Q(e,t){return ce=8,M(function(){return e},t)}function S(e){var t=E.context[e.__c],r=ae(J++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(E)),t.props.value):e.__}function bt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function hs(e){var t=ae(J++,10),r=A();return t.__=e,E.componentDidCatch||(E.componentDidCatch=function(n,s){t.__&&t.__(n,s),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Rt(){var e=ae(J++,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 fs(){for(var e;e=Kr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Me),t.__h.some(st),t.__h=[]}catch(r){t.__h=[],x.__e(r,e.__v)}}}x.__b=function(e){E=null,rr&&rr(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ar&&ar(e,t)},x.__r=function(e){nr&&nr(e),J=0;var t=(E=e.__c).__H;t&&(ze===E?(t.__h=[],E.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Me),t.__h.some(st),t.__h=[],J=0)),ze=E},x.diffed=function(e){sr&&sr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Kr.push(t)!==1&&tr===x.requestAnimationFrame||((tr=x.requestAnimationFrame)||ds)(fs)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),ze=E=null},x.__c=function(e,t){t.some(function(r){try{r.__h.some(Me),r.__h=r.__h.filter(function(n){return!n.__||st(n)})}catch(n){t.some(function(s){s.__h&&(s.__h=[])}),t=[],x.__e(n,r.__v)}}),ir&&ir(e,t)},x.unmount=function(e){or&&or(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Me(n)}catch(s){t=s}}),r.__H=void 0,t&&x.__e(t,r.__v))};var ur=typeof requestAnimationFrame=="function";function ds(e){var t,r=function(){clearTimeout(n),ur&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);ur&&(t=requestAnimationFrame(r))}function Me(e){var t=E,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),E=t}function st(e){var t=E;e.__c=e.__(),E=t}function wt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Vr(e,t){return typeof t=="function"?t(e):t}function zr(e,t){for(var r in t)e[r]=t[r];return e}function it(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 de(e,t){var r=t(),n=A({t:{__:r,u:t}}),s=n[0].t,i=n[1];return X(function(){s.__=r,s.u=t,Ge(s)&&i({t:s})},[e,r,t]),N(function(){return Ge(s)&&i({t:s}),e(function(){Ge(s)&&i({t:s})})},[e]),r}function Ge(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 St(e){return e}function Pt(){return[!1,pe]}var Et=X;function Ae(e,t){this.props=e,this.context=t}function Ct(e,t){function r(s){var i=this.props.ref;return i!=s.ref&&i&&(typeof i=="function"?i(null):i.current=null),t?!t(this.props,s)||i!=s.ref:it(this.props,s)}function n(s){return this.shouldComponentUpdate=r,w(e,s)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}(Ae.prototype=new H).isPureReactComponent=!0,Ae.prototype.shouldComponentUpdate=function(e,t){return it(this.props,e)||it(this.state,t)};var lr=b.__b;b.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),lr&&lr(e)};var ps=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ce(e){function t(r){var n=zr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=ps,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var cr=function(e,t){return e==null?null:G(G(e).map(t))},Ot={map:cr,forEach:cr,count:function(e){return e?G(e).length:0},only:function(e){var t=G(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:G},_s=b.__e;b.__e=function(e,t,r,n){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k||[]),s.__c(e,t)}_s(e,t,r,n)};var hr=b.unmount;function Gr(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=zr({},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 Gr(n,t,r)})),e}function Jr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Jr(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 Re(){this.__u=0,this.o=null,this.__b=null}function Yr(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Xr(e){var t,r,n,s=null;function i(o){if(t||(t=e()).then(function(a){a&&(s=a.default||a),n=!0},function(a){r=a,n=!0}),r)throw r;if(!n)throw t;return s?w(s,o):null}return i.displayName="Lazy",i.__f=!0,i}function le(){this.i=null,this.l=null}b.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),hr&&hr(e)},(Re.prototype=new H).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var s=Yr(n.__v),i=!1,o=function(){i||n.__z||(i=!0,r.__R=null,s?s(u):u())};r.__R=o;var a=r.__P;r.__P=null;var u=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Jr(l,l.__c.__P,l.__c.__O)}var h;for(n.setState({__a:n.__b=null});h=n.o.pop();)h.__P=a,h.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},Re.prototype.componentWillUnmount=function(){this.o=[]},Re.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]=Gr(this.__b,r,n.__O=n.__P)}this.__b=null}var s=t.__a&&w(D,null,e.fallback);return s&&(s.__u&=-33),[w(D,null,t.__a?null:e.children),s]};var fr=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 ms(e){return this.getChildContext=function(){return e.context},e.children}function ys(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Se(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(s,i){this.childNodes.push(s),t.h.insertBefore(s,i)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),t.h.removeChild(s)}}}Se(w(ms,{context:t.context},e.__v),t.v)}function Zr(e,t){var r=w(ys,{__v:e,h:t});return r.containerInfo=t,r}(le.prototype=new H).__a=function(e){var t=this,r=Yr(t.__v),n=t.l.get(e);return n[0]++,function(s){var i=function(){t.props.revealOrder?(n.push(s),fr(t,e,n)):s()};r?r(i):i()}},le.prototype.render=function(e){this.i=null,this.l=new Map;var t=G(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},le.prototype.componentDidUpdate=le.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){fr(e,r,t)})};var en=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vs=/^(?: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]/,gs=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bs=/[A-Z0-9]/g,Rs=typeof document<"u",ws=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function tn(e,t,r){return t.__k==null&&(t.textContent=""),Se(e,t),typeof r=="function"&&r(),e?e.__c:null}function rn(e,t,r){return qr(e,t),typeof r=="function"&&r(),e?e.__c:null}H.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(H.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var dr=b.event;b.event=function(e){return dr&&(e=dr(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var xt,Ss={configurable:!0,get:function(){return this.class}},pr=b.vnode;b.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,s={},i=n.indexOf("-")==-1;for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||Rs&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var u=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?o="ondblclick":u!=="onchange"||n!=="input"&&n!=="textarea"||ws(r.type)?u==="onfocus"?o="onfocusin":u==="onblur"?o="onfocusout":gs.test(o)&&(o=u):u=o="oninput":i&&vs.test(o)?o=o.replace(bs,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&s[o=u]&&(o="oninputCapture"),s[o]=a}}n=="select"&&(s.multiple&&Array.isArray(s.value)&&(s.value=G(r.children).forEach(function(l){l.props.selected=s.value.indexOf(l.props.value)!=-1})),s.defaultValue!=null&&(s.value=G(r.children).forEach(function(l){l.props.selected=s.multiple?s.defaultValue.indexOf(l.props.value)!=-1:s.defaultValue==l.props.value}))),r.class&&!r.className?(s.class=r.class,Object.defineProperty(s,"className",Ss)):r.className&&(s.class=s.className=r.className),t.props=s})(e),e.$$typeof=en,pr&&pr(e)};var _r=b.__r;b.__r=function(e){_r&&_r(e),xt=e.__c};var mr=b.diffed;b.diffed=function(e){mr&&mr(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),xt=null};var nn={ReactCurrentDispatcher:{current:{readContext:function(e){return xt.__n[e.__c].props.value},useCallback:Q,useContext:S,useDebugValue:bt,useDeferredValue:St,useEffect:N,useId:Rt,useImperativeHandle:gt,useInsertionEffect:Et,useLayoutEffect:X,useMemo:M,useReducer:je,useRef:Y,useState:A,useSyncExternalStore:de,useTransition:Pt}}},Ps="18.3.1";function sn(e){return w.bind(null,e)}function _e(e){return!!e&&e.$$typeof===en}function on(e){return _e(e)&&e.type===D}function an(e){return!!e&&typeof e.displayName=="string"&&e.displayName.indexOf("Memo(")==0}function un(e){return _e(e)?ns.apply(null,arguments):e}function ln(e){return!!e.__k&&(Se(null,e),!0)}function cn(e){return e&&(e.base||e.nodeType===1&&e)||null}var hn=function(e,t){return e(t)},fn=function(e,t){var r,n=b.debounceRendering;b.debounceRendering=function(i){r=i};try{var s=e(t);return r&&r(),s}finally{b.debounceRendering=n}},dn=_e,Es={useState:A,useId:Rt,useReducer:je,useEffect:N,useLayoutEffect:X,useInsertionEffect:Et,useTransition:Pt,useDeferredValue:St,useSyncExternalStore:de,startTransition:pe,useRef:Y,useImperativeHandle:gt,useMemo:M,useCallback:Q,useContext:S,useDebugValue:bt,version:"18.3.1",Children:Ot,render:tn,hydrate:rn,unmountComponentAtNode:ln,createPortal:Zr,createElement:w,createContext:T,createFactory:sn,cloneElement:un,createRef:Ur,Fragment:D,isValidElement:_e,isElement:dn,isFragment:on,isMemo:an,findDOMNode:cn,Component:H,PureComponent:Ae,memo:Ct,forwardRef:Ce,flushSync:fn,unstable_batchedUpdates:hn,StrictMode:D,Suspense:Re,SuspenseList:le,lazy:Xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nn};function Cs(e){const[,t]=A(e);return[e,t]}function Os(e){if(typeof e?.then=="function")throw e;return e}const $o=Object.freeze(Object.defineProperty({__proto__:null,Children:Ot,Component:H,Fragment:D,PureComponent:Ae,StrictMode:D,Suspense:Re,SuspenseList:le,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nn,cloneElement:un,createContext:T,createElement:w,createFactory:sn,createPortal:Zr,createRef:Ur,default:Es,findDOMNode:cn,flushSync:fn,forwardRef:Ce,hydrate:rn,isElement:dn,isFragment:on,isMemo:an,isValidElement:_e,lazy:Xr,memo:Ct,render:tn,startTransition:pe,unmountComponentAtNode:ln,unstable_batchedUpdates:hn,use:Os,useCallback:Q,useContext:S,useDebugValue:bt,useDeferredValue:St,useEffect:N,useErrorBoundary:hs,useId:Rt,useImperativeHandle:gt,useInsertionEffect:Et,useLayoutEffect:X,useMemo:M,useOptimistic:Cs,useReducer:je,useRef:Y,useState:A,useSyncExternalStore:de,useTransition:Pt,version:Ps},Symbol.toStringTag,{value:"Module"}));function pn(e,t,r="/"){return xs(e,t,r,!1)}function xs(e,t,r,n,s){let i=re((typeof t=="string"?fe(t):t).pathname||"/",r);if(i==null)return null;let o=ks(e),a=null,u=js(i);for(let l=0;a==null&&l<o.length;++l)a=Hs(o[l],u,n);return a}function ks(e){let t=_n(e);return Fs(t),t}function _n(e,t=[],r=[],n="",s=!1){let i=(o,a,u=s,l)=>{let h={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&u)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 f=B([n,h.relativePath]),c=r.concat(h);o.children&&o.children.length>0&&(C(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),_n(o.children,t,c,f,u)),!(o.path==null&&!o.index)&&t.push({path:f,score:Ns(f,o.index),routesMeta:c.map((d,p)=>{let[m,_]=vn(d.relativePath,d.caseSensitive,p===c.length-1);return{...d,matcher:m,compiledParams:_}})})};return e.forEach((o,a)=>{if(o.path===""||!o.path?.includes("?"))i(o,a);else for(let u of mn(o.path))i(o,a,!0,u)}),t}function mn(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=mn(n.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Fs(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qs(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Ts=/^:[\w-]+$/,Ls=/^:[\w-]+/,Ms=3.5,Ds=3,Is=2,Us=1,$s=10,As=-2,yr=e=>e==="*";function Ns(e,t){let r=e.split("/"),n=r.length;return r.some(yr)&&(n+=As),t&&(n+=Is),r.filter(s=>!yr(s)).reduce((s,i)=>s+(Ts.test(i)?Ds:Ls.test(i)?Ms:i===""?Us:$s),n)}function Qs(e,t){return e.length===t.length&&e.slice(0,-1).every((r,n)=>r===t[n])?e[e.length-1]-t[t.length-1]:0}function Hs(e,t,r=!1){let{routesMeta:n}=e,s={},i="/",o=[];for(let a=0;a<n.length;++a){let u=n[a],l=a===n.length-1,h=i==="/"?t:t.slice(i.length)||"/",f={path:u.relativePath,caseSensitive:u.caseSensitive,end:l},c=u.matcher&&u.compiledParams?yn(f,h,u.matcher,u.compiledParams):Ne(f,h),d=u.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=Ne({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},h)),!c)return null;Object.assign(s,c.params),o.push({params:s,pathname:B([i,c.pathname]),pathnameBase:Ws(B([i,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(i=B([i,c.pathnameBase]))}return o}function Ne(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=vn(e.path,e.caseSensitive,e.end);return yn(e,t,r,n)}function yn(e,t,r,n){let s=t.match(r);if(!s)return null;let i=s[0],o=Qe(i,1),a=s.slice(1);return{params:n.reduce((u,{paramName:l,isOptional:h},f)=>{if(l==="*"){let d=a[f]||"";o=Qe(i.slice(0,i.length-d.length),1)}const c=a[f];return h&&!c?u[l]=void 0:u[l]=(c||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function vn(e,t=!1,r=!0){V(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,a,u,l)=>{if(n.push({paramName:o,isOptional:a!=null}),a){let h=l.charAt(u+i.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,"(?:/$1)?");return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function js(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return V(!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 re(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Bs(e,t="/"){let{pathname:r,search:n="",hash:s=""}=typeof e=="string"?fe(e):e,i;return r?(r=gn(r),r.startsWith("/")||r.startsWith("\\")?i=vr(r.substring(1),"/"):i=vr(r,t)):i=t,{pathname:i,search:Ks(n),hash:Vs(s)}}function vr(e,t){let r=Qe(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Je(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 qs(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function kt(e){let t=qs(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Be(e,t,r,n=!1){let s;typeof e=="string"?s=fe(e):(s={...e},C(!s.pathname||!s.pathname.includes("?"),Je("?","pathname","search",s)),C(!s.pathname||!s.pathname.includes("#"),Je("#","pathname","hash",s)),C(!s.search||!s.search.includes("#"),Je("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),f-=1;s.pathname=c.join("/")}a=f>=0?t[f]:"/"}let u=Bs(s,a),l=o&&o!=="/"&&o.endsWith("/"),h=(i||o===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||h)&&(u.pathname+="/"),u}const gn=e=>e.replace(/[\\/]{2,}/g,"/"),B=e=>gn(e.join("/"));function Qe(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}const Ws=e=>Qe(e).replace(/^\/*/,"/"),Ks=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vs=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var zs=class{status;statusText;data;error;internal;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 Gs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Js(e){return B(e.map(t=>t.route.path).filter(Boolean))||"/"}const bn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rn(e,t){let r=e;if(typeof r!="string"||!vt.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,s=!1;if(bn)try{let i=new URL(window.location.href),o=Wr.test(r)?new URL(os(r,i.protocol)):new URL(r),a=re(o.pathname,t);o.origin===i.origin&&a!=null?r=a+o.search+o.hash:s=!0}catch{V(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:s,to:r}}const gr=new URL("http://localhost");function Ft(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),gr)}catch{return gr}}function Ye(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function Ys(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function Tt(e,t,r,n){let s=null;try{s=e==null?null:new URL(e,r)}catch{}let i=new URL(t,r),o=s!=null&&!Ye(s,r),a=!Ye(i,r);if(n==="reject"){if(o||a)throw new Error("External navigation is not allowed")}else if(a&&(s==null||!Ys(e,s)||!Ye(s,i)))throw new Error("External navigation is not allowed")}const wn=["POST","PUT","PATCH","DELETE"];new Set(wn);const Xs=["GET",...wn];new Set(Xs);const Zs=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ei(e){try{return Zs.includes(new URL(e).protocol)}catch{return!1}}const me=T(null);me.displayName="DataRouter";const qe=T(null);qe.displayName="DataRouterState";const Sn=T(!1);function ti(){return S(Sn)}const Pn=T({isTransitioning:!1});Pn.displayName="ViewTransition";const ri=T(new Map);ri.displayName="Fetchers";const ni=T(null);ni.displayName="Await";const j=T(null);j.displayName="Navigation";const Oe=T(null);Oe.displayName="Location";const q=T({outlet:null,matches:[],isDataRoute:!1});q.displayName="Route";const Lt=T(null);Lt.displayName="RouteError";const En="REACT_ROUTER_ERROR",si="REDIRECT",ii="ROUTE_ERROR_RESPONSE";function oi(e){if(e.startsWith(`${En}:${si}:{`))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 ai(e){if(e.startsWith(`${En}:${ii}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new zs(t.status,t.statusText,t.data)}catch{}}function ui(e,{relative:t}={}){C(ye(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=S(j),{hash:s,pathname:i,search:o}=xe(e,{relative:t}),a=i;return r!=="/"&&(a=i==="/"?r:B([r,i])),n.createHref({pathname:a,search:o,hash:s})}function ye(){return S(Oe)!=null}function W(){return C(ye(),"useLocation() may be used only in the context of a <Router> component."),S(Oe).location}const Cn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mt(){let{isDataRoute:e}=S(q);return e?wi():li()}function li(){C(ye(),"useNavigate() may be used only in the context of a <Router> component.");let e=S(me),{basename:t,navigator:r}=S(j),{matches:n}=S(q),{pathname:s}=W(),i=JSON.stringify(kt(n)),o=Y(!1);return X(()=>{o.current=!0}),Q((a,u={})=>{if(V(o.current,Cn),!o.current)return;if(typeof a=="number"){r.go(a);return}let l=Be(a,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(l.pathname=l.pathname==="/"?t:B([t,l.pathname])),Tt(typeof a=="string"?a:ie(a),r.createHref(l),Ft(r),"reject"),(u.replace?r.replace:r.push)(l,u.state,u)},[t,r,i,s,e])}T(null);function Ao(){let{matches:e}=S(q);return e[e.length-1]?.params??{}}function xe(e,{relative:t}={}){let{matches:r}=S(q),{pathname:n}=W(),s=JSON.stringify(kt(r));return M(()=>Be(e,JSON.parse(s),n,t==="path"),[e,s,n,t])}function ci(e,t){return On(e,t)}function On(e,t,r){C(ye(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=S(j),{matches:s}=S(q),i=s[s.length-1],o=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let u=W(),l;if(t){let p=typeof t=="string"?fe(t):t;C(a==="/"||p.pathname?.startsWith(a),`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 "${a}" but pathname "${p.pathname}" was given in the \`location\` prop.`),l=p}else l=u;let h=l.pathname||"/",f=h;if(a!=="/"){let p=a.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let c=r&&r.state.matches.length?r.state.matches.map(p=>Object.assign(p,{route:r.manifest[p.route.id]||p.route})):pn(e,{pathname:f}),d=mi(c&&c.map(p=>Object.assign({},p,{params:Object.assign({},o,p.params),pathname:B([a,n.encodeLocation?n.encodeLocation(p.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?a:B([a,n.encodeLocation?n.encodeLocation(p.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),s,r);return t&&d?w(Oe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...l},navigationType:"POP"}},d):d}function hi(){let e=Ri(),t=Gs(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return w(D,null,w("h2",null,"Unexpected Application Error!"),w("h3",{style:{fontStyle:"italic"}},t),r?w("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)}const fi=w(hi,null);var di=class extends H{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Sn;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=ai(e.digest);r&&(e=r)}let t=e!==void 0?w(q.Provider,{value:this.props.routeContext},w(Lt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w(pi,{error:e},t):t}};const Xe=new WeakMap;function pi({children:e,error:t}){let{basename:r,navigator:n}=S(j);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let s=oi(t.digest);if(s){let i=Xe.get(t);if(i)throw i;let o=Rn(s.location,r),a=o.absoluteURL||o.to;if(Tt(s.location,a,Ft(n),"allow-explicit"),ei(a))throw new Error("Invalid redirect location");if(bn&&!Xe.get(t))if(o.isExternal||s.reloadDocument)window.location.href=a;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:s.replace}));throw Xe.set(t,u),u}return w("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function _i({routeContext:e,match:t,children:r}){let n=S(me);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),w(q.Provider,{value:e},r)}function mi(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,i=n?.errors;if(i!=null){let h=s.findIndex(f=>f.route.id&&i?.[f.route.id]!==void 0);C(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let o=!1,a=-1;if(r&&n){o=n.renderFallback;for(let h=0;h<s.length;h++){let f=s[h];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=h),f.route.id){let{loaderData:c,errors:d}=n,p=f.route.loader&&!c.hasOwnProperty(f.route.id)&&(!d||d[f.route.id]===void 0);if(f.route.lazy||p){r.isStatic&&(o=!0),a>=0?s=s.slice(0,a+1):s=[s[0]];break}}}}let u=r?.onError,l=n&&u?(h,f)=>{u(h,{location:n.location,params:n.matches?.[0]?.params??{},pattern:Js(n.matches),errorInfo:f})}:void 0;return s.reduceRight((h,f,c)=>{let d,p=!1,m=null,_=null;n&&(d=i&&f.route.id?i[f.route.id]:void 0,m=f.route.errorElement||fi,o&&(a<0&&c===0?(Si("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,_=null):a===c&&(p=!0,_=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,c+1)),y=()=>{let g;return d?g=m:p?g=_:f.route.Component?g=w(f.route.Component,null):f.route.element?g=f.route.element:g=h,w(_i,{match:f,routeContext:{outlet:h,matches:v,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||c===0)?w(di,{location:n.location,revalidation:n.revalidation,component:m,error:d,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:l}):y()},null)}function Dt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yi(e){let t=S(me);return C(t,Dt(e)),t}function vi(e){let t=S(qe);return C(t,Dt(e)),t}function gi(e){let t=S(q);return C(t,Dt(e)),t}function It(e){let t=gi(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 bi(){return It("useRouteId")}function Ri(){let e=S(Lt),t=vi("useRouteError"),r=It("useRouteError");return e!==void 0?e:t.errors?.[r]}function wi(){let{router:e}=yi("useNavigate"),t=It("useNavigate"),r=Y(!1);return X(()=>{r.current=!0}),Q(async(n,s={})=>{V(r.current,Cn),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...s}))},[e,t])}const br={};function Si(e,t,r){br[e]||(br[e]=!0,V(!1,r))}Ct(Pi);function Pi({routes:e,manifest:t,future:r,state:n,isStatic:s,onError:i}){return On(e,void 0,{manifest:t,state:n,isStatic:s,onError:i})}function No({to:e,replace:t,state:r,relative:n}){C(ye(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s,navigator:i}=S(j);V(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=S(q),{pathname:a}=W(),u=Mt(),l=Be(e,kt(o),a,n==="path");Tt(typeof e=="string"?e:ie(e),i.createHref(l),Ft(i),"reject");let h=JSON.stringify(l);return N(()=>{u(JSON.parse(h),{replace:t,state:r,relative:n})},[u,h,n,t,r]),null}function Ei(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 Ci({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:s,static:i=!1,useTransitions:o}){C(!ye(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),u=M(()=>({basename:a,navigator:s,static:i,useTransitions:o,future:{}}),[a,s,i,o]);typeof r=="string"&&(r=fe(r));let{pathname:l="/",search:h="",hash:f="",state:c=null,key:d="default",mask:p}=r,m=M(()=>{let _=re(l,a);return _==null?null:{location:{pathname:_,search:h,hash:f,state:c,key:d,mask:p},navigationType:n}},[a,l,h,f,c,d,n,p]);return V(m!=null,`<Router basename="${a}"> is not able to match the URL "${l}${h}${f}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:w(j.Provider,{value:u},w(Oe.Provider,{children:t,value:m}))}function Qo({children:e,location:t}){return ci(ot(e),t)}function ot(e,t=[]){let r=[];return Ot.forEach(e,(n,s)=>{if(!_e(n))return;let i=[...t,s];if(n.type===D){r.push.apply(r,ot(n.props.children,i));return}C(n.type===Ei,`[${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>`);let o=n.props;C(!o.index||!o.children,"An index route cannot have child routes.");let a={id:o.id||i.join("-"),caseSensitive:o.caseSensitive,element:o.element,Component:o.Component,index:o.index,path:o.path,middleware:o.middleware,loader:o.loader,action:o.action,hydrateFallbackElement:o.hydrateFallbackElement,HydrateFallback:o.HydrateFallback,errorElement:o.errorElement,ErrorBoundary:o.ErrorBoundary,shouldRevalidate:o.shouldRevalidate,handle:o.handle,lazy:o.lazy};o.children&&(a.children=ot(o.children,i)),r.push(a)}),r}const De="application/x-www-form-urlencoded";function We(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Oi(e){return We(e)&&e.tagName.toLowerCase()==="button"}function xi(e){return We(e)&&e.tagName.toLowerCase()==="form"}function ki(e){return We(e)&&e.tagName.toLowerCase()==="input"}function Fi(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ti(e,t){return e.button===0&&(!t||t==="_self")&&!Fi(e)}function at(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(s=>[r,s]):[[r,n]])},[]))}function Li(e,t){let r=at(e);return t&&t.forEach((n,s)=>{r.has(s)||t.getAll(s).forEach(i=>{r.append(s,i)})}),r}let Fe=null;function Mi(){if(Fe===null)try{new FormData(document.createElement("form"),0),Fe=!1}catch{Fe=!0}return Fe}const Di=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ze(e){return e!=null&&!Di.has(e)?(V(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${De}"`),null):e}function Ii(e,t){let r,n,s,i,o;if(xi(e)){let a=e.getAttribute("action");n=a?re(a,t):null,r=e.getAttribute("method")||"get",s=Ze(e.getAttribute("enctype"))||De,i=new FormData(e)}else if(Oi(e)||ki(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||a.getAttribute("action");if(n=u?re(u,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||"get",s=Ze(e.getAttribute("formenctype"))||Ze(a.getAttribute("enctype"))||De,i=new FormData(a,e),!Mi()){let{name:l,type:h,value:f}=e;if(h==="image"){let c=l?`${l}.`:"";i.append(`${c}x`,"0"),i.append(`${c}y`,"0")}else l&&i.append(l,f)}}else{if(We(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r="get",n=null,s=De,o=e}return i&&s==="text/plain"&&(o=i,i=void 0),{action:n,method:r.toLowerCase(),encType:s,formData:i,body:o}}function Ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xn(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function Ui(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $i(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ai(e,t,r){return ji((await Promise.all(e.map(async n=>{let s=t.routes[n.route.id];if(s){let i=await Ui(s,r);return i.links?i.links():[]}return[]}))).flat(1).filter($i).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function Rr(e,t,r,n,s,i){let o=(u,l)=>r[l]?u.route.id!==r[l].route.id:!0,a=(u,l)=>r[l].pathname!==u.pathname||r[l].route.path?.endsWith("*")&&r[l].params["*"]!==u.params["*"];return i==="assets"?t.filter((u,l)=>o(u,l)||a(u,l)):i==="data"?t.filter((u,l)=>{let h=n.routes[u.route.id];if(!h||!h.hasLoader)return!1;if(o(u,l)||a(u,l))return!0;if(u.route.shouldRevalidate){let f=u.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Ni(e,t,{includeHydrateFallback:r}={}){return Qi(e.map(n=>{let s=t.routes[n.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function Qi(e){return[...new Set(e)]}function Hi(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function ji(e,t){let r=new Set;return new Set(t),e.reduce((n,s)=>{let i=JSON.stringify(Hi(s));return r.has(i)||(r.add(i),n.push({key:i,link:s})),n},[])}function Bi(){let e=S(me);return Ut(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function qi(){let e=S(qe);return Ut(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}const $t=T(void 0);$t.displayName="FrameworkContext";function At(){let e=S($t);return Ut(e,"You must render this element inside a <HydratedRouter> element"),e}function Wi(e,t){let r=S($t),[n,s]=A(!1),[i,o]=A(!1),{onFocus:a,onBlur:u,onMouseEnter:l,onMouseLeave:h,onTouchStart:f}=t,c=Y(null);N(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=v=>{v.forEach(y=>{o(y.isIntersecting)})},_=new IntersectionObserver(m,{threshold:.5});return c.current&&_.observe(c.current),()=>{_.disconnect()}}},[e]),N(()=>{if(n){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[n]);let d=()=>{s(!0)},p=()=>{s(!1),o(!1)};return r?e!=="intent"?[i,c,{}]:[i,c,{onFocus:ve(a,d),onBlur:ve(u,p),onMouseEnter:ve(l,d),onMouseLeave:ve(h,p),onTouchStart:ve(f,d)}]:[!1,c,{}]}function ve(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ki({page:e,...t}){let r=ti(),{nonce:n}=At(),{router:s}=Bi(),i=M(()=>pn(s.routes,e,s.basename),[s.routes,e,s.basename]);return i?(t.nonce==null&&n&&(t={...t,nonce:n}),r?w(zi,{page:e,matches:i,...t}):w(Gi,{page:e,matches:i,...t})):null}function Vi(e){let{manifest:t,routeModules:r}=At(),[n,s]=A([]);return N(()=>{let i=!1;return Ai(e,t,r).then(o=>{i||s(o)}),()=>{i=!0}},[e,t,r]),n}function zi({page:e,matches:t,...r}){let n=W(),s=M(()=>{if(e===n.pathname+n.search+n.hash)return[];let i=xn(e,"rsc"),o=!1,a=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?o=!0:a.push(u.route.id);return o&&a.length>0&&i.searchParams.set("_routes",a.join(",")),[i.pathname+i.search]},[e,n,t]);return w(D,null,s.map(i=>w("link",{key:i,rel:"prefetch",as:"fetch",href:i,...r})))}function Gi({page:e,matches:t,...r}){let n=W(),{manifest:s,routeModules:i}=At(),{loaderData:o,matches:a}=qi(),u=M(()=>Rr(e,t,a,s,n,"data"),[e,t,a,s,n]),l=M(()=>Rr(e,t,a,s,n,"assets"),[e,t,a,s,n]),h=M(()=>{if(e===n.pathname+n.search+n.hash)return[];let d=new Set,p=!1;if(t.forEach(_=>{let v=s.routes[_.route.id];!v||!v.hasLoader||(!u.some(y=>y.route.id===_.route.id)&&_.route.id in o&&i[_.route.id]?.shouldRevalidate||v.hasClientLoader?p=!0:d.add(_.route.id))}),d.size===0)return[];let m=xn(e,"data");return p&&d.size>0&&m.searchParams.set("_routes",t.filter(_=>d.has(_.route.id)).map(_=>_.route.id).join(",")),[m.pathname+m.search]},[o,n,s,u,t,e,i]),f=M(()=>Ni(l,s),[l,s]),c=Vi(l);return w(D,null,h.map(d=>w("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})),f.map(d=>w("link",{key:d,rel:"modulepreload",href:d,...r})),c.map(({key:d,link:p})=>w("link",{key:d,nonce:r.nonce,...p,crossOrigin:p.crossOrigin??r.crossOrigin})))}function Ji(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}const Yi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Yi&&(window.__reactRouterVersion="8")}catch{}function Ho({basename:e,children:t,useTransitions:r,window:n}){let s=Y(null);s.current==null&&(s.current=as({window:n,v5Compat:!0}));let i=s.current,[o,a]=A({action:i.action,location:i.location}),u=Q(l=>{r===!1?a(l):pe(()=>a(l))},[r]);return X(()=>i.listen(u),[i,u]),w(Ci,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:r})}const kn=Ce(function({onClick:t,discover:r="render",prefetch:n="none",relative:s,reloadDocument:i,replace:o,mask:a,state:u,target:l,to:h,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:d,...p},m){let{basename:_,navigator:v,useTransitions:y}=S(j),g=typeof h=="string"&&vt.test(h),P=Rn(h,_);h=P.to;let R=ui(h,{relative:s}),O=W(),I=null;if(a){let ee=Be(a,[],O.mask?O.mask.pathname:"/",!0);_!=="/"&&(ee.pathname=ee.pathname==="/"?_:B([_,ee.pathname])),I=v.createHref(ee)}let[$,z,U]=Wi(n,p),Z=to(h,{replace:o,mask:a,state:u,target:l,preventScrollReset:f,relative:s,viewTransition:c,defaultShouldRevalidate:d,useTransitions:y});function Jn(ee){t&&t(ee),ee.defaultPrevented||Z(ee)}let Vt=!(P.isExternal||i),zt=w("a",{...p,...U,href:(Vt?I:void 0)||P.absoluteURL||R,onClick:Vt?Jn:t,ref:Ji(m,z),target:l,"data-discover":!g&&r==="render"?"true":void 0});return $&&!g?w(D,null,zt,w(Ki,{page:R})):zt});kn.displayName="Link";const Xi=Ce(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:s=!1,style:i,to:o,viewTransition:a,children:u,...l},h){let f=xe(o,{relative:l.relative}),c=W(),d=S(qe),{navigator:p,basename:m}=S(j),_=d!=null&&oo(f)&&a===!0,v=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,y=c.pathname,g=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;r||(y=y.toLowerCase(),g=g?g.toLowerCase():null,v=v.toLowerCase()),g&&m&&(g=re(g,m)||g);const P=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let R=y===v||!s&&y.startsWith(v)&&y.charAt(P)==="/",O=g!=null&&(g===v||!s&&g.startsWith(v)&&g.charAt(P)==="/"),I={isActive:R,isPending:O,isTransitioning:_},$=R?t:void 0,z;typeof n=="function"?z=n(I):z=[n,R?"active":null,O?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let U=typeof i=="function"?i(I):i;return w(kn,{...l,"aria-current":$,className:z,ref:h,style:U,to:o,viewTransition:a},typeof u=="function"?u(I):u)});Xi.displayName="NavLink";const Zi=Ce(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:s,state:i,method:o="get",action:a,onSubmit:u,relative:l,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:c,...d},p)=>{let{useTransitions:m}=S(j),_=so(),v=io(a,{relative:l}),y=o.toLowerCase()==="get"?"get":"post",g=typeof a=="string"&&vt.test(a);return w("form",{ref:p,method:y,action:v,onSubmit:n?u:R=>{if(u&&u(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,I=O?.getAttribute("formmethod")||o,$=()=>_(O||R.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:s,state:i,relative:l,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:c});m&&r!==!1?pe(()=>$()):$()},...d,"data-discover":!g&&e==="render"?"true":void 0})});Zi.displayName="Form";function eo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fn(e){let t=S(me);return C(t,eo(e)),t}function to(e,{target:t,replace:r,mask:n,state:s,preventScrollReset:i,relative:o,viewTransition:a,defaultShouldRevalidate:u,useTransitions:l}={}){let h=Mt(),f=W(),c=xe(e,{relative:o});return Q(d=>{if(Ti(d,t)){d.preventDefault();let p=r!==void 0?r:ie(f)===ie(c),m=()=>h(e,{replace:p,mask:n,state:s,preventScrollReset:i,relative:o,viewTransition:a,defaultShouldRevalidate:u});l?pe(()=>m()):m()}},[f,h,c,r,n,s,t,e,i,o,a,u,l])}function jo(e){V(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=Y(at(e)),r=Y(!1),n=W(),s=M(()=>Li(n.search,r.current?null:t.current),[n.search]),i=Mt();return[s,Q((o,a)=>{const u=at(typeof o=="function"?o(new URLSearchParams(s)):o);r.current=!0,i("?"+u,a)},[i,s])]}let ro=0,no=()=>`__${String(++ro)}__`;function so(){let{router:e}=Fn("useSubmit"),{basename:t}=S(j),r=bi(),n=e.fetch,s=e.navigate;return Q(async(i,o={})=>{let{action:a,method:u,encType:l,formData:h,body:f}=Ii(i,t);o.navigate===!1?await n(o.fetcherKey||no(),r,o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,relative:o.relative,formData:h,body:f,formMethod:o.method||u,formEncType:o.encType||l,flushSync:o.flushSync}):await s(o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,relative:o.relative,formData:h,body:f,formMethod:o.method||u,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,s,t,r])}function io(e,{relative:t}={}){let{basename:r}=S(j),n=S(q);C(n,"useFormAction must be used inside a RouteContext");let[s]=n.matches.slice(-1),i={...xe(e||".",{relative:t})},o=W();if(e==null){i.search=o.search;let a=new URLSearchParams(i.search),u=a.getAll("index");if(u.some(l=>l==="")){a.delete("index"),u.filter(h=>h).forEach(h=>a.append("index",h));let l=a.toString();i.search=l?`?${l}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:B([r,i.pathname])),ie(i)}function oo(e,{relative:t}={}){let r=S(Pn);C(r!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fn("useViewTransitionState"),s=xe(e,{relative:t});if(!r.isTransitioning)return!1;let i=re(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=re(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ne(s.pathname,o)!=null||Ne(s.pathname,i)!=null}const Tn=T(void 0),Nt=e=>{const t=S(Tn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bo=({client:e,children:t})=>(N(()=>(e.mount(),()=>{e.unmount()}),[e]),is(Tn.Provider,{value:e,children:t})),ao={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var uo=class{#t=ao;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}};const ne=new uo;function lo(e){setTimeout(e,0)}const co=typeof window>"u"||"Deno"in globalThis;function L(){}function ho(e,t){return typeof e=="function"?e(t):e}function Ln(e){return typeof e=="number"&&e>=0&&e!==1/0}function Mn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function k(e,t){return typeof e=="function"?e(t):e}function wr(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==Qt(o,t.options))return!1}else if(!he(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Sr(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(oe(t.options.mutationKey)!==oe(i))return!1}else if(!he(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Qt(e,t){return(t?.queryKeyHashFn||oe)(e)}function oe(e){return JSON.stringify(e,(t,r)=>ut(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function he(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!he(e[n],t[n]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!he(e[n],t[n]))return!1;return!0}return!1}const fo=Object.prototype.hasOwnProperty;function Ht(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Pr(e)&&Pr(t);if(!n&&!(ut(e)&&ut(t)))return t;const s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),o=i.length,a=n?new Array(o):{};let u=0;for(let l=0;l<o;l++){const h=n?l:i[l],f=e[h],c=t[h];if(f===c){a[h]=f,(n?l<s:fo.call(e,h))&&u++;continue}if(f===null||c===null||typeof f!="object"||typeof c!="object"){a[h]=c;continue}const d=Ht(f,c,r+1);a[h]=d,d===f&&u++}return s===o&&u===s?e:a}function we(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 Pr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ut(e){if(!Er(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Er(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Er(e){return Object.prototype.toString.call(e)==="[object Object]"}function po(e){return new Promise(t=>{ne.setTimeout(t,e)})}function lt(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Ht(e,t):t}function _o(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function mo(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}const jt=Symbol();function Dn(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bt(e,t){return typeof e=="function"?e(...t):!!e}function yo(e,t,r){let n=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}let vo=()=>co;const qt=()=>vo();var ue=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(){}},go=class extends ue{#t;#e;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}};const Wt=new go,bo=lo;function Ro(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=bo;const i=a=>{t?e.push(a):s(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(u=>{r(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||o()}return u},batchCalls:a=>(...u)=>{i(()=>{a(...u)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}const F=Ro();var wo=class extends ue{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#t}};const He=new wo;function So(e){return Math.min(1e3*2**e,3e4)}function In(e){return(e??"online")==="online"?He.isOnline():!0}var ct=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Un(e){let t=!1,r=0,n,s="pending",i,o;const a=new Promise((y,g)=>{i=y,o=g});a.catch(L);const u=()=>s!=="pending",l=y=>{if(!u()){const g=new ct(y);m(g),e.onCancel?.(g)}},h=()=>{t=!0},f=()=>{t=!1},c=()=>Wt.isFocused()&&(e.networkMode==="always"||He.isOnline())&&e.canRun(),d=()=>In(e.networkMode)&&e.canRun(),p=y=>{u()||(n?.(),s="resolved",i(y))},m=y=>{u()||(n?.(),s="rejected",o(y))},_=()=>new Promise(y=>{n=g=>{(u()||c())&&y(g)},e.onPause?.()}).then(()=>{n=void 0,u()||e.onContinue?.()}),v=()=>{if(u())return;let y;const g=r===0?e.initialPromise:void 0;try{y=g??e.fn()}catch(P){y=Promise.reject(P)}Promise.resolve(y).then(p).catch(P=>{if(u())return;const R=e.retry??(qt()?0:3),O=e.retryDelay??So,I=typeof O=="function"?O(r,P):O,$=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,P);if(t||!$){m(P);return}r++,e.onFail?.(r,P),po(I).then(()=>c()?void 0:_()).then(()=>{t?m(P):v()})})};return{promise:a,status:()=>s,cancel:l,continue:()=>(n?.(),a),cancelRetry:h,continueRetry:f,canStart:d,start:()=>(d()?v():_().then(v),a)}}var $n=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ln(this.gcTime)&&(this.#t=ne.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qt()?1/0:3e5))}clearGcTimeout(){this.#t!==void 0&&(ne.clearTimeout(this.#t),this.#t=void 0)}};function Po(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},u=0;const l=async()=>{let h=!1;const f=p=>{yo(p,()=>t.signal,()=>h=!0)},c=Dn(t.options,t.fetchOptions),d=async(p,m,_)=>{if(h)return Promise.reject(t.signal.reason);if(m==null&&p.pages.length)return Promise.resolve(p);const y=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:m,direction:_?"backward":"forward",meta:t.options.meta};return f(O),O})(),g=await c(y),{maxPages:P}=t.options,R=_?mo:_o;return{pages:R(p.pages,g,P),pageParams:R(p.pageParams,m,P)}};if(s&&i.length){const p=s==="backward",m=p?An:ht,_={pages:i,pageParams:o};a=await d(_,m(n,_),p)}else{const p=e??i.length;do{const m=u===0?o[0]??n.initialPageParam:ht(n,a);if(u>0&&m==null)break;a=await d(a,m),u++}while(u<p)}return a};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 ht(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 An(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function Eo(e,t){return t?ht(e,t)!=null:!1}function Co(e,t){return!t||!e.getPreviousPageParam?!1:An(e,t)!=null}var Oo=class extends $n{#t;#e;#r;#n;#s;#i;#o;#u;constructor(e){super(),this.#u=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Or(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Or(this.options);t.data!==void 0&&(this.setState(Cr(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=lt(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#a({type:"setState",state:e})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(L).catch(L):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=>k(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>k(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:!Mn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#i&&(this.#u||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(l=>l.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,n=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#u=!0,r.signal)})},s=()=>{const u=Dn(this.options,t),h=(()=>{const f={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#u=!1,this.options.persister?this.options.persister(u,h,this):u(h)},o=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return n(u),u})();(this.#t==="infinite"?Po(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta});const a=this.#i=Un({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:u=>{u instanceof ct&&u.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(u,l)=>{this.#a({type:"failed",failureCount:u,error:l})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const u=await a.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof ct){if(u.silent)return this.#i.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.#i===a&&(this.#i=void 0),this.scheduleGc()}}#a(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,...Nn(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Cr(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?n:void 0,n;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),F.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Nn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:In(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Or(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 Ke=class extends ue{#t;#e=void 0;#r=void 0;#n=void 0;#s;#i;#o;#u;#a;#d;#l;#c;#h;#p=new Set;constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),xr(this.#e,this.options)?this.#f():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ft(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ft(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#R(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof k(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!we(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&kr(this.#e,r,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#e!==r||k(this.options.enabled,this.#e)!==k(t.enabled,this.#e)||k(this.options.staleTime,this.#e)!==k(t.staleTime,this.#e))&&this.#m();const s=this.#y();n&&(this.#e!==r||k(this.options.enabled,this.#e)!==k(t.enabled,this.#e)||s!==this.#h)&&this.#v(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return we(this.getCurrentResult(),r)||(this.#n=r,this.#i=this.options,this.#s=this.#e.state),r}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),Reflect.get(r,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);let n=()=>{},s;const i=new Promise(o=>{s=o,n=this.#t.getQueryCache().subscribe(a=>{a.type==="updated"&&a.query.queryHash===r.queryHash&&r.state.data!==void 0&&(n(),o(this.createResult(r,t)))})});return Promise.race([r.fetch().then(()=>{const o=this.createResult(r,t);return s?.(o),o}).finally(()=>{n()}),i])}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(L)),t}#_(e){return!qt()&&k(this.options.enabled,this.#e)!==!1&&Ln(e)}#m(){this.#b();const e=k(this.options.staleTime,this.#e);if(this.#n.isStale||!this.#_(e))return;const t=Mn(this.#n.dataUpdatedAt,e)+1;this.#l=ne.setTimeout(()=>{this.#n.isStale||this.updateResult()},t)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#R(),this.#h=e,!(this.#h===0||!this.#_(this.#h))&&(this.#c=ne.setInterval(()=>{(this.options.refetchIntervalInBackground||Wt.isFocused())&&this.#f()},this.#h))}#g(){this.#m(),this.#v(this.#y())}#b(){this.#l!==void 0&&(ne.clearTimeout(this.#l),this.#l=void 0)}#R(){this.#c!==void 0&&(ne.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#e,n=this.options,s=this.#n,i=this.#s,o=this.#i,a=e!==r?e.state:this.#r,{state:u}=e;let l={...u},h=!1,f;if(t._optimisticResults){const R=this.hasListeners(),O=!R&&xr(e,t),I=R&&kr(e,r,t,n);(O||I)&&(l={...l,...Nn(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:c,errorUpdatedAt:d,status:p}=l;f=l.data;let m=!1;if(t.placeholderData!==void 0&&f===void 0&&p==="pending"){let R;s?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(R=s.data,m=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,R!==void 0&&(p="success",f=lt(s?.data,R,t),h=!0)}if(t.select&&f!==void 0&&!m)if(s&&f===i?.data&&t.select===this.#u)f=this.#a;else try{this.#u=t.select,f=t.select(f),f=lt(s?.data,f,t),this.#a=f,this.#o=null}catch(R){this.#o=R}else f===void 0&&(this.#o=null);this.#o&&(c=this.#o,f=this.#a,d=Date.now(),p="error",h=!1);const _=l.fetchStatus==="fetching",v=p==="pending",y=p==="error",g=v&&_,P=f!==void 0;return{status:p,fetchStatus:l.fetchStatus,isPending:v,isSuccess:p==="success",isError:y,isInitialLoading:g,isLoading:g,data:f,dataUpdatedAt:l.dataUpdatedAt,error:c,errorUpdatedAt:d,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>a.dataUpdateCount||l.errorUpdateCount>a.errorUpdateCount,isFetching:_,isRefetching:_&&!v,isLoadingError:y&&!P,isPaused:l.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:y&&P,isStale:Kt(e,t),refetch:this.refetch,isEnabled:k(t.enabled,e)!==!1}}updateResult(){const e=this.#n,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#i=this.options,this.#s.data!==void 0&&(this.#d=this.#e),we(t,e))return;this.#n=t;const n=(()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!this.#p.size)return!0;const o=new Set(i??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#n).some(a=>{const u=a;return this.#n[u]!==e[u]&&o.has(u)})})();F.batch(()=>{n&&this.listeners.forEach(s=>{s(this.#n)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}};function xo(e,t){return k(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&k(t.retryOnMount,e)===!1)}function xr(e,t){return xo(e,t)||e.state.data!==void 0&&ft(e,t,t.refetchOnMount)}function ft(e,t,r){if(k(t.enabled,e)!==!1&&k(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Kt(e,t)}return!1}function kr(e,t,r,n){return(e!==t||k(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Kt(e,r)}function Kt(e,t){return k(t.enabled,e)!==!1&&e.isStaleByTime(k(t.staleTime,e))}var ko=class extends Ke{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:o,isRefetchError:a}=n,u=r.fetchMeta?.fetchMore?.direction,l=o&&u==="forward",h=s&&u==="forward",f=o&&u==="backward",c=s&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Eo(t,r.data),hasPreviousPage:Co(t,r.data),isFetchNextPageError:l,isFetchingNextPage:h,isFetchPreviousPageError:f,isFetchingPreviousPage:c,isRefetchError:a&&!l&&!f,isRefetching:i&&!h&&!c}}},Fo=class extends $n{#t;#e;#r;#n;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#e=[],this.state=e.state||Qn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#s({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#n=Un({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#s({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)}),s=this.state.status==="pending",i=!n.canStart();try{if(s)t();else{this.#s({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.#s({type:"pending",context:a,variables:e,isPaused:i})}const o=await n.start();return await this.#r.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#s({type:"success",data:o}),o}catch(o){try{await this.#r.config.onError?.(o,e,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onError?.(o,e,this.state.context,r)}catch(a){Promise.reject(a)}try{await this.#r.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,r)}catch(a){Promise.reject(a)}throw this.#s({type:"error",error:o}),o}finally{this.#n===n&&(this.#n=void 0),this.#r.runNext(this)}}#s(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),F.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Qn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var To=class extends ue{#t;#e;#r;constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}build(e,t,r){const n=new Fo({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=Te(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Te(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Te(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(n=>n.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Te(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){F.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Sr(t,r))}findAll(e={}){return this.getAll().filter(t=>Sr(e,t))}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return F.batch(()=>Promise.all(e.map(t=>t.continue().catch(L))))}};function Te(e){return e.options.scope?.id}var Lo=class extends ue{#t;#e=void 0;#r;#n;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),we(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&oe(r.mutationKey)!==oe(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#r&&(this.#r.addObserver(this),this.#s())}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#s(),this.#i()}mutate(t,r){return this.#n=r,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#s(){const t=this.#r?.state??Qn();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){F.batch(()=>{if(this.#n&&this.hasListeners()){const r=this.#e.variables,n=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,r,n,s)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(t.data,null,r,n,s)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,r,n,s)}catch(i){Promise.reject(i)}try{this.#n.onSettled?.(void 0,t.error,r,n,s)}catch(i){Promise.reject(i)}}}this.listeners.forEach(r=>{r(this.#e)})})}};function Fr(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}var Mo=class extends ue{#t;#e;#r;#n;#s;#i;#o;#u;#a;#d=[];constructor(e,t,r){super(),this.#t=e,this.#n=r,this.#r=[],this.#s=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(e=>{e.subscribe(t=>{this.#f(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,F.batch(()=>{const r=this.#s,n=this.#p(this.#r);n.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const s=n.map(h=>h.observer),i=s.map(h=>h.getCurrentResult()),o=r.length!==s.length,a=s.some((h,f)=>h!==r[f]),u=o||a,l=u?!0:i.some((h,f)=>{const c=this.#e[f];return!c||!we(h,c)});!u&&!l||(u&&(this.#d=n,this.#s=s),this.#e=i,this.hasListeners()&&(u&&(Fr(r,s).forEach(h=>{h.destroy()}),Fr(s,r).forEach(h=>{h.subscribe(f=>{this.#f(h,f)})})),this.#_()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){const r=this.#p(e),n=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),s=r.map(i=>i.defaultedQueryOptions.queryHash);return[n,i=>this.#c(i??n,t,s),()=>this.#l(n,r)]}#l(e,t){const r=new Set;return t.map((n,s)=>{const i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,o=>{r.has(o)||(r.add(o),t.forEach(a=>{a.observer.trackProp(o)}))})})}#c(e,t,r){if(t){const n=this.#a,s=r!==void 0&&n!==void 0&&(n.length!==r.length||r.some((i,o)=>i!==n[o]));return(this.#e!==this.#u||s||t!==this.#o)&&(this.#o=t,this.#u=this.#e,r!==void 0&&(this.#a=r),this.#i=Ht(this.#i,t(e))),this.#i}return e}#h(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#p(e){const t=new Map;this.#s.forEach(n=>{const s=n.options.queryHash;if(!s)return;const i=t.get(s);i?i.push(n):t.set(s,[n])});const r=[];return e.forEach(n=>{const s=this.#t.defaultQueryOptions(n),i=t.get(s.queryHash)?.shift()??new Ke(this.#t,s);r.push({defaultedQueryOptions:s,observer:i})}),r}#f(e,t){const r=this.#s.indexOf(e);r!==-1&&(this.#e=this.#e.slice(),this.#e[r]=t,this.#_())}#_(){if(this.hasListeners()){const e=this.#h(),t=this.#i,r=e?t:this.#c(this.#l(this.#e,this.#d),this.#n?.combine);(e||t!==r)&&F.batch(()=>{this.listeners.forEach(n=>{n(this.#e)})})}}},Do=class extends ue{#t;constructor(e={}){super(),this.config=e,this.#t=new Map}build(e,t,r){const n=t.queryKey,s=t.queryHash??Qt(n,t);let i=this.get(s);return i||(i=new Oo({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){F.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>wr(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>wr(e,r)):t}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){F.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){F.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Wo=class{#t;#e;#r;#n;#s;#i;#o;#u;constructor(e={}){this.#t=e.queryCache||new Do,this.#e=e.mutationCache||new To,this.#r=e.defaultOptions||{},this.#n=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Wt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=He.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#u?.(),this.#u=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(k(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>[t,r.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(n.queryHash)?.state.data,i=ho(t,s);if(i!==void 0)return this.#t.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return F.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;F.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return F.batch(()=>{const n=r.findAll(e),s=new Set(n);return n.forEach(i=>{i.reset()}),this.refetchQueries({type:"active",predicate:i=>s.has(i)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},n=F.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(L).catch(L)}invalidateQueries(e,t={}){return F.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=F.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(L)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(L)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t),n=r.isStaleByTime(k(t.staleTime,r))?await r.fetch(t):r.state.data,s=t.select;return s?s(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(k(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return He.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(oe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{he(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set(oe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(n=>{he(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};const Hn=T(!1),jn=()=>S(Hn);Hn.Provider;function Io(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Uo=T(Io()),Bn=()=>S(Uo),qn=(e,t,r)=>{const n=r?.state.error&&typeof e.throwOnError=="function"?Bt(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||n)&&(t.isReset()||(e.retryOnMount=!1))},Wn=e=>{N(()=>{e.clearReset()},[e])},Kn=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||Bt(r,[e.error,n])),Vn=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},dt=(e,t)=>e?.suspense&&t.isPending,zn=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Ko({queries:e,...t},r){const n=Nt(),s=jn(),i=Bn(),o=t.subscribed!==!1,a=M(()=>e.map(m=>{const _=n.defaultQueryOptions(m);return _._optimisticResults=s?"isRestoring":o?"optimistic":void 0,_}),[e,n,s,o]);a.forEach(m=>{Vn(m);const _=n.getQueryCache().get(m.queryHash);qn(m,i,_)}),Wn(i);const[u]=A(()=>new Mo(n,a,t)),[l,h,f]=u.getOptimisticResult(a,t.combine),c=!s&&o;de(Q(m=>c?u.subscribe(F.batchCalls(m)):L,[u,c]),()=>u.getCurrentResult()),N(()=>{u.setQueries(a,t)},[a,t,u]);const d=l.some((m,_)=>dt(a[_],m))?l.flatMap((m,_)=>{const v=a[_];if(v&&dt(v,m)){const y=new Ke(n,v);return zn(v,y,i)}return[]}):[];if(d.length>0)throw Promise.all(d);const p=l.find((m,_)=>{const v=a[_];return v&&Kn({result:m,errorResetBoundary:i,throwOnError:v.throwOnError,query:n.getQueryCache().get(v.queryHash),suspense:v.suspense})});if(p)throw p.error;return h(f())}function Gn(e,t,r){const n=jn(),s=Bn(),i=Nt(),o=i.defaultQueryOptions(e),a=i.getQueryCache().get(o.queryHash),u=e.subscribed!==!1;o._optimisticResults=n?"isRestoring":u?"optimistic":void 0,Vn(o),qn(o,s,a),Wn(s);const[l]=A(()=>new t(i,o)),h=l.getOptimisticResult(o),f=!n&&u;if(de(Q(c=>{const d=f?l.subscribe(F.batchCalls(c)):L;return l.updateResult(),d},[l,f]),()=>l.getCurrentResult()),N(()=>{l.setOptions(o)},[o,l]),dt(o,h))throw zn(o,l,s);if(Kn({result:h,errorResetBoundary:s,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw h.error;return o.notifyOnChangeProps?h:l.trackResult(h)}function Vo(e,t){return Gn(e,Ke)}function zo(e,t){const r=Nt(),[n]=A(()=>new Lo(r,e));N(()=>{n.setOptions(e)},[n,e]);const s=de(Q(o=>n.subscribe(F.batchCalls(o)),[n]),()=>n.getCurrentResult()),i=Q((...o)=>{n.mutate(o[0],o[1]).catch(L)},[n]);if(s.error&&Bt(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function Go(e,t){return Gn(e,ko)}export{Zr as $,Y as A,Ho as B,H as C,Ce as D,kn as L,Ct as N,Re as P,Wo as Q,Qo as R,D as S,M as T,T as X,X as _,zo as a,Vo as b,Go as c,A as d,is as e,Mt as f,Es as g,N as h,W as i,Xi as j,w as k,Ei as l,No as m,Se as n,Bo as o,Ao as p,Q as q,jo as r,Ko as s,$o as t,Nt as u,fn as v,S as x,je as y,Xr as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/x-icon" 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>dango</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
|
+
<style>
|
|
19
|
+
body {
|
|
20
|
+
background-color: #0c0d12;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-CpjgU8ou.js"></script>
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-rLNfZm7Y.js">
|
|
25
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B6qdXFtl.css">
|
|
26
|
+
</head>
|
|
27
|
+
|
|
28
|
+
<body>
|
|
29
|
+
<div id="root"></div>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
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>
|