@perses-dev/table-plugin 0.13.0-beta.2 → 0.13.0-rc.1

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.
@@ -1 +1 @@
1
- (self.chunk_Table=self.chunk_Table||[]).push([["4320"],{12138(t,r,e){"use strict";e.d(r,{A:()=>m});var o=e(70451),n=e(11750),i=e(81023),a=e(59238),u=e(41953),s=e(24726),l=e(77308),p=e(23434),c=e(26952),d=e(72052),f=e(29009),v=e(46733);function h(t){return(0,v.Ay)("MuiButtonGroup",t)}let b=(0,f.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);var y=e(94580),g=e(30016),x=e(62540);let _=(0,l.A)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:e}=t;return[{[`& .${b.grouped}`]:r.grouped},{[`& .${b.grouped}`]:r[`grouped${(0,s.A)(e.orientation)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,s.A)(e.variant)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,s.A)(e.variant)}${(0,s.A)(e.orientation)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,s.A)(e.variant)}${(0,s.A)(e.color)}`]},{[`& .${b.firstButton}`]:r.firstButton},{[`& .${b.lastButton}`]:r.lastButton},{[`& .${b.middleButton}`]:r.middleButton},r.root,r[e.variant],!0===e.disableElevation&&r.disableElevation,e.fullWidth&&r.fullWidth,"vertical"===e.orientation&&r.vertical]}})((0,p.A)(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${b.lastButton},& .${b.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${b.lastButton},& .${b.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${b.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${b.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter((0,c.A)()).flatMap(([r])=>[{props:{variant:"text",color:r},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:(0,a.X4)(t.palette[r].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${b.lastButton},& .${b.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${b.lastButton},& .${b.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${b.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${b.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter((0,c.A)(["dark"])).map(([r])=>({props:{variant:"contained",color:r},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderColor:(t.vars||t).palette[r].dark}}}))],[`& .${b.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),m=o.forwardRef(function(t,r){let e=(0,d.b)({props:t,name:"MuiButtonGroup"}),{children:a,className:l,color:p="primary",component:c="div",disabled:f=!1,disableElevation:v=!1,disableFocusRipple:b=!1,disableRipple:m=!1,fullWidth:$=!1,orientation:j="horizontal",size:A="medium",variant:B="outlined",...O}=e,w={...e,color:p,component:c,disabled:f,disableElevation:v,disableFocusRipple:b,disableRipple:m,fullWidth:$,orientation:j,size:A,variant:B},C=(t=>{let{classes:r,color:e,disabled:o,disableElevation:n,fullWidth:a,orientation:u,variant:l}=t,p={root:["root",l,u,a&&"fullWidth",n&&"disableElevation",`color${(0,s.A)(e)}`],grouped:["grouped",`grouped${(0,s.A)(u)}`,`grouped${(0,s.A)(l)}`,`grouped${(0,s.A)(l)}${(0,s.A)(u)}`,`grouped${(0,s.A)(l)}${(0,s.A)(e)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,i.A)(p,h,r)})(w),S=o.useMemo(()=>({className:C.grouped,color:p,disabled:f,disableElevation:v,disableFocusRipple:b,disableRipple:m,fullWidth:$,size:A,variant:B}),[p,f,v,b,m,$,A,B,C.grouped]),k=(0,u.A)(a),z=k.length;return(0,x.jsx)(_,{as:c,role:"group",className:(0,n.A)(C.root,l),ref:r,ownerState:w,...O,children:(0,x.jsx)(y.A.Provider,{value:S,children:k.map((t,r)=>{let e,o;return(0,x.jsx)(g.A.Provider,{value:(e=0===r,o=r===z-1,e&&o?"":e?C.firstButton:o?C.lastButton:C.middleButton),children:t},r)})})})})},54381(t,r,e){"use strict";e.d(r,{A:()=>M});var o=e(70451),n=e(11750),i=e(94237),a=e(46733),u=e(81023),s=e(7939),l=e(51327),p=e(26041),c=e(20523),d=e(80787);let f=(t,r,e)=>{let o=t.keys[0];if(Array.isArray(r))r.forEach((r,o)=>{e((r,e)=>{o<=t.keys.length-1&&(0===o?Object.assign(r,e):r[t.up(t.keys[o])]=e)},r)});else if(r&&"object"==typeof r){let n,i;(Object.keys(r).length>t.keys.length?t.keys:(n=t.keys,i=Object.keys(r),n.filter(t=>i.includes(t)))).forEach(n=>{if(t.keys.includes(n)){let i=r[n];void 0!==i&&e((r,e)=>{o===n?Object.assign(r,e):r[t.up(n)]=e},i)}})}else("number"==typeof r||"string"==typeof r)&&e((t,r)=>{Object.assign(t,r)},r)};function v(t){return`--Grid-${t}Spacing`}function h(t){return`--Grid-parent-${t}Spacing`}let b="--Grid-columns",y="--Grid-parent-columns",g=({theme:t,ownerState:r})=>{let e={};return f(t.breakpoints,r.size,(t,r)=>{let o={};"grow"===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${y}) - (var(${y}) - ${r}) * (var(${h("column")}) / var(${y})))`}),t(e,o)}),e},x=({theme:t,ownerState:r})=>{let e={};return f(t.breakpoints,r.offset,(t,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / var(${y}) + var(${h("column")}) * ${r} / var(${y}))`}),t(e,o)}),e},_=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={[b]:12};return f(t.breakpoints,r.columns,(t,r)=>{let o=r??12;t(e,{[b]:o,"> *":{[y]:o}})}),e},m=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.rowSpacing,(r,o)=>{let n="string"==typeof o?o:t.spacing?.(o);r(e,{[v("row")]:n,"> *":{[h("row")]:n}})}),e},$=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.columnSpacing,(r,o)=>{let n="string"==typeof o?o:t.spacing?.(o);r(e,{[v("column")]:n,"> *":{[h("column")]:n}})}),e},j=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.direction,(t,r)=>{t(e,{flexDirection:r})}),e},A=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},gap:`var(${v("row")}) var(${v("column")})`}});var B=e(62540);let O=(0,d.A)(),w=(0,s.A)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>r.root});function C(t){return(0,l.A)({props:t,name:"MuiGrid",defaultTheme:O})}var S=e(77308),k=e(72052),z=e(56599);let M=function(t={}){let{createStyledComponent:r=w,useThemeProps:e=C,useTheme:s=p.A,componentName:l="MuiGrid"}=t;function d(t,r,e=()=>!0){let o={};return null===t||(Array.isArray(t)?t.forEach((t,n)=>{null!==t&&e(t)&&r.keys[n]&&(o[r.keys[n]]=t)}):"object"==typeof t?Object.keys(t).forEach(r=>{let n=t[r];null!=n&&e(n)&&(o[r]=n)}):o[r.keys[0]]=t),o}let f=r(_,$,m,g,j,A,x),v=o.forwardRef(function(t,r){var p;let v,h=s(),b=e(t),y=(0,c.A)(b);p=h.breakpoints,v=[],void 0!==y.item&&(delete y.item,v.push("item")),void 0!==y.zeroMinWidth&&(delete y.zeroMinWidth,v.push("zeroMinWidth")),p.keys.forEach(t=>{void 0!==y[t]&&(v.push(t),delete y[t])});let{className:g,children:x,columns:_=12,container:m=!1,component:$="div",direction:j="row",wrap:A="wrap",size:O={},offset:w={},spacing:C=0,rowSpacing:S=C,columnSpacing:k=C,unstable_level:z=0,...M}=y,R=d(O,h.breakpoints,t=>!1!==t),T=d(w,h.breakpoints),E=t.columns??(z?void 0:_),P=t.spacing??(z?void 0:C),G=t.rowSpacing??t.spacing??(z?void 0:S),L=t.columnSpacing??t.spacing??(z?void 0:k),W={...y,level:z,columns:E,container:m,direction:j,wrap:A,spacing:P,rowSpacing:G,columnSpacing:L,size:R,offset:T},N=((t,r)=>{let e,{container:o,direction:n,spacing:i,wrap:s,size:p}=t,c={root:["root",o&&"container","wrap"!==s&&`wrap-xs-${String(s)}`,...void 0===n?[]:"object"==typeof n?Object.entries(n).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(n)}`],...(e=[],Object.entries(p).forEach(([t,r])=>{!1!==r&&void 0!==r&&e.push(`grid-${t}-${String(r)}`)}),e),...o?((t,r="xs")=>{function e(t){return void 0!==t&&("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t&&t>0)}if(e(t))return[`spacing-${r}-${String(t)}`];if("object"==typeof t&&!Array.isArray(t)){let r=[];return Object.entries(t).forEach(([t,o])=>{e(o)&&r.push(`spacing-${t}-${String(o)}`)}),r}return[]})(i,r.breakpoints.keys[0]):[]]};return(0,u.A)(c,t=>(0,a.Ay)(l,t),{})})(W,h);return(0,B.jsx)(f,{ref:r,as:$,ownerState:W,className:(0,n.A)(N.root,g),...M,children:o.Children.map(x,t=>o.isValidElement(t)&&(0,i.A)(t,["Grid"])&&m&&t.props.container?o.cloneElement(t,{unstable_level:t.props?.unstable_level??z+1}):t)})});return v.muiName="Grid",v}({createStyledComponent:(0,S.A)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:e}=t;return[r.root,e.container&&r.container]}}),componentName:"MuiGrid2",useThemeProps:t=>(0,k.b)({props:t,name:"MuiGrid2"}),useTheme:z.A})},41953(t,r,e){"use strict";e.d(r,{A:()=>n});var o=e(70451);function n(t){return o.Children.toArray(t).filter(t=>o.isValidElement(t))}},9073(t,r,e){var o=e(82316),n=e(76458),i=e(2149),a=e(44297),u=e(33121);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},72707(t,r,e){var o=e(39714),n=e(33812),i=e(14727),a=e(8379),u=e(8291);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},91955(t,r,e){t.exports=e(99138)(e(41433),"Map")},90369(t,r,e){var o=e(72092),n=e(49626),i=e(79925),a=e(26809),u=e(94385);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},86469(t,r,e){var o=e(72707),n=e(71848),i=e(17406),a=e(58569),u=e(43109),s=e(73389);function l(t){var r=this.__data__=new o(t);this.size=r.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=s,t.exports=l},32781(t,r,e){t.exports=e(41433).Symbol},28944(t,r,e){t.exports=e(41433).Uint8Array},96701(t){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},31163(t,r,e){var o=e(36204),n=e(21256),i=e(6397),a=e(30492),u=e(42845),s=e(47995),l=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&n(t),c=!e&&!p&&a(t),d=!e&&!p&&!c&&s(t),f=e||p||c||d,v=f?o(t.length,String):[],h=v.length;for(var b in t)(r||l.call(t,b))&&!(f&&("length"==b||c&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||u(b,h)))&&v.push(b);return v}},61617(t,r,e){var o=e(14772),n=e(39316);t.exports=function(t,r,e){(void 0===e||n(t[r],e))&&(void 0!==e||r in t)||o(t,r,e)}},82863(t,r,e){var o=e(14772),n=e(39316),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var a=t[r];i.call(t,r)&&n(a,e)&&(void 0!==e||r in t)||o(t,r,e)}},58301(t,r,e){var o=e(39316);t.exports=function(t,r){for(var e=t.length;e--;)if(o(t[e][0],r))return e;return -1}},14772(t,r,e){var o=e(18559);t.exports=function(t,r,e){"__proto__"==r&&o?o(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},23508(t,r,e){var o=e(58953),n=Object.create;t.exports=function(){function t(){}return function(r){if(!o(r))return{};if(n)return n(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}()},61469(t,r,e){t.exports=e(15409)()},87148(t,r,e){var o=e(32781),n=e(17903),i=e(71738),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?n(t):i(t)}},79250(t,r,e){var o=e(87148),n=e(22934);t.exports=function(t){return n(t)&&"[object Arguments]"==o(t)}},16567(t,r,e){var o=e(18446),n=e(18092),i=e(58953),a=e(81485),u=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,p=s.hasOwnProperty,c=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||n(t))&&(o(t)?c:u).test(a(t))}},97129(t,r,e){var o=e(87148),n=e(3330),i=e(22934),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&n(t.length)&&!!a[o(t)]}},41491(t,r,e){var o=e(58953),n=e(67499),i=e(68201),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return i(t);var r=n(t),e=[];for(var u in t)"constructor"==u&&(r||!a.call(t,u))||e.push(u);return e}},99702(t,r,e){var o=e(86469),n=e(61617),i=e(61469),a=e(80708),u=e(58953),s=e(15405),l=e(29874);t.exports=function t(r,e,p,c,d){r!==e&&i(e,function(i,s){if(d||(d=new o),u(i))a(r,e,s,p,t,c,d);else{var f=c?c(l(r,s),i,s+"",r,e,d):void 0;void 0===f&&(f=i),n(r,s,f)}},s)}},80708(t,r,e){var o=e(61617),n=e(87030),i=e(76733),a=e(68835),u=e(19181),s=e(21256),l=e(6397),p=e(75569),c=e(30492),d=e(18446),f=e(58953),v=e(54679),h=e(47995),b=e(29874),y=e(47264);t.exports=function(t,r,e,g,x,_,m){var $=b(t,e),j=b(r,e),A=m.get(j);if(A)return void o(t,e,A);var B=_?_($,j,e+"",t,r,m):void 0,O=void 0===B;if(O){var w=l(j),C=!w&&c(j),S=!w&&!C&&h(j);B=j,w||C||S?l($)?B=$:p($)?B=a($):C?(O=!1,B=n(j,!0)):S?(O=!1,B=i(j,!0)):B=[]:v(j)||s(j)?(B=$,s($)?B=y($):(!f($)||d($))&&(B=u(j))):O=!1}O&&(m.set(j,B),x(B,j,g,_,m),m.delete(j)),o(t,e,B)}},71506(t,r,e){var o=e(74796),n=e(25265),i=e(26805);t.exports=function(t,r){return i(n(t,r,o),t+"")}},7310(t,r,e){var o=e(53122),n=e(18559),i=e(74796);t.exports=n?function(t,r){return n(t,"toString",{configurable:!0,enumerable:!1,value:o(r),writable:!0})}:i},36204(t){t.exports=function(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o}},30041(t){t.exports=function(t){return function(r){return t(r)}}},57177(t,r,e){var o=e(28944);t.exports=function(t){var r=new t.constructor(t.byteLength);return new o(r).set(new o(t)),r}},87030(t,r,e){t=e.nmd(t);var o=e(41433),n=r&&!r.nodeType&&r,i=n&&t&&!t.nodeType&&t,a=i&&i.exports===n?o.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,o=u?u(e):new t.constructor(e);return t.copy(o),o}},76733(t,r,e){var o=e(57177);t.exports=function(t,r){var e=r?o(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},68835(t){t.exports=function(t,r){var e=-1,o=t.length;for(r||(r=Array(o));++e<o;)r[e]=t[e];return r}},42083(t,r,e){var o=e(82863),n=e(14772);t.exports=function(t,r,e,i){var a=!e;e||(e={});for(var u=-1,s=r.length;++u<s;){var l=r[u],p=i?i(e[l],t[l],l,e,t):void 0;void 0===p&&(p=t[l]),a?n(e,l,p):o(e,l,p)}return e}},38109(t,r,e){t.exports=e(41433)["__core-js_shared__"]},54171(t,r,e){var o=e(71506),n=e(66220);t.exports=function(t){return o(function(r,e){var o=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&n(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++o<i;){var s=e[o];s&&t(r,s,o,a)}return r})}},15409(t){t.exports=function(t){return function(r,e,o){for(var n=-1,i=Object(r),a=o(r),u=a.length;u--;){var s=a[t?u:++n];if(!1===e(i[s],s,i))break}return r}}},18559(t,r,e){var o=e(99138);t.exports=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},75380(t,r,e){t.exports="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g},15535(t,r,e){var o=e(95662);t.exports=function(t,r){var e=t.__data__;return o(r)?e["string"==typeof r?"string":"hash"]:e.map}},99138(t,r,e){var o=e(16567),n=e(6772);t.exports=function(t,r){var e=n(t,r);return o(e)?e:void 0}},13347(t,r,e){t.exports=e(51019)(Object.getPrototypeOf,Object)},17903(t,r,e){var o=e(32781),n=Object.prototype,i=n.hasOwnProperty,a=n.toString,u=o?o.toStringTag:void 0;t.exports=function(t){var r=i.call(t,u),e=t[u];try{t[u]=void 0;var o=!0}catch(t){}var n=a.call(t);return o&&(r?t[u]=e:delete t[u]),n}},6772(t){t.exports=function(t,r){return null==t?void 0:t[r]}},82316(t,r,e){var o=e(4558);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},76458(t){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=!!r,r}},2149(t,r,e){var o=e(4558),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(o){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return n.call(r,t)?r[t]:void 0}},44297(t,r,e){var o=e(4558),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return o?void 0!==r[t]:n.call(r,t)}},33121(t,r,e){var o=e(4558);t.exports=function(t,r){var e=this.__data__;return this.size+=+!this.has(t),e[t]=o&&void 0===r?"__lodash_hash_undefined__":r,this}},19181(t,r,e){var o=e(23508),n=e(13347),i=e(67499);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:o(n(t))}},42845(t){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},66220(t,r,e){var o=e(39316),n=e(18330),i=e(42845),a=e(58953);t.exports=function(t,r,e){if(!a(e))return!1;var u=typeof r;return("number"==u?!!(n(e)&&i(r,e.length)):"string"==u&&r in e)&&o(e[r],t)}},95662(t){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},18092(t,r,e){var o,n=e(38109),i=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!i&&i in t}},67499(t){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},39714(t){t.exports=function(){this.__data__=[],this.size=0}},33812(t,r,e){var o=e(58301),n=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=o(r,t);return!(e<0)&&(e==r.length-1?r.pop():n.call(r,e,1),--this.size,!0)}},14727(t,r,e){var o=e(58301);t.exports=function(t){var r=this.__data__,e=o(r,t);return e<0?void 0:r[e][1]}},8379(t,r,e){var o=e(58301);t.exports=function(t){return o(this.__data__,t)>-1}},8291(t,r,e){var o=e(58301);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},72092(t,r,e){var o=e(9073),n=e(72707),i=e(91955);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||n),string:new o}}},49626(t,r,e){var o=e(15535);t.exports=function(t){var r=o(this,t).delete(t);return this.size-=!!r,r}},79925(t,r,e){var o=e(15535);t.exports=function(t){return o(this,t).get(t)}},26809(t,r,e){var o=e(15535);t.exports=function(t){return o(this,t).has(t)}},94385(t,r,e){var o=e(15535);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=+(e.size!=n),this}},4558(t,r,e){t.exports=e(99138)(Object,"create")},68201(t){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},23685(t,r,e){t=e.nmd(t);var o=e(75380),n=r&&!r.nodeType&&r,i=n&&t&&!t.nodeType&&t,a=i&&i.exports===n&&o.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},71738(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},51019(t){t.exports=function(t,r){return function(e){return t(r(e))}}},25265(t,r,e){var o=e(96701),n=Math.max;t.exports=function(t,r,e){return r=n(void 0===r?t.length-1:r,0),function(){for(var i=arguments,a=-1,u=n(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=e(s),o(t,this,l)}}},41433(t,r,e){var o=e(75380),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=o||n||Function("return this")()},29874(t){t.exports=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}},26805(t,r,e){var o=e(7310);t.exports=e(23983)(o)},23983(t){var r=Date.now;t.exports=function(t){var e=0,o=0;return function(){var n=r(),i=16-(n-o);if(o=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},71848(t,r,e){var o=e(72707);t.exports=function(){this.__data__=new o,this.size=0}},17406(t){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},58569(t){t.exports=function(t){return this.__data__.get(t)}},43109(t){t.exports=function(t){return this.__data__.has(t)}},73389(t,r,e){var o=e(72707),n=e(91955),i=e(90369);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var a=e.__data__;if(!n||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},81485(t){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},53122(t){t.exports=function(t){return function(){return t}}},39316(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},74796(t){t.exports=function(t){return t}},21256(t,r,e){var o=e(79250),n=e(22934),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable;t.exports=o(function(){return arguments}())?o:function(t){return n(t)&&a.call(t,"callee")&&!u.call(t,"callee")}},6397(t){t.exports=Array.isArray},18330(t,r,e){var o=e(18446),n=e(3330);t.exports=function(t){return null!=t&&n(t.length)&&!o(t)}},75569(t,r,e){var o=e(18330),n=e(22934);t.exports=function(t){return n(t)&&o(t)}},30492(t,r,e){t=e.nmd(t);var o=e(41433),n=e(80659),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?o.Buffer:void 0,s=u?u.isBuffer:void 0;t.exports=s||n},18446(t,r,e){var o=e(87148),n=e(58953);t.exports=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},3330(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},58953(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},22934(t){t.exports=function(t){return null!=t&&"object"==typeof t}},54679(t,r,e){var o=e(87148),n=e(13347),i=e(22934),a=Object.prototype,u=Function.prototype.toString,s=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;var r=n(t);if(null===r)return!0;var e=s.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==l}},47995(t,r,e){var o=e(97129),n=e(30041),i=e(23685),a=i&&i.isTypedArray;t.exports=a?n(a):o},15405(t,r,e){var o=e(31163),n=e(41491),i=e(18330);t.exports=function(t){return i(t)?o(t,!0):n(t)}},25632(t,r,e){var o=e(99702);t.exports=e(54171)(function(t,r,e){o(t,r,e)})},80659(t){t.exports=function(){return!1}},47264(t,r,e){var o=e(42083),n=e(15405);t.exports=function(t){return o(t,n(t))}},78536(t,r,e){"use strict";var o;r.default=void 0,r.default=(0,((o=e(1448))&&o.__esModule?o:{default:o}).default)("M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z","EyeOffOutline")},1355(t,r,e){"use strict";var o;r.default=void 0,r.default=(0,((o=e(1448))&&o.__esModule?o:{default:o}).default)("M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z","EyeOutline")},42524(t,r,e){"use strict";var o;r.default=void 0,r.default=(0,((o=e(1448))&&o.__esModule?o:{default:o}).default)("M19,13H5V11H19V13Z","Minus")}}]);
1
+ (self.chunk_Table=self.chunk_Table||[]).push([["5021"],{12138(t,r,e){"use strict";e.d(r,{A:()=>_});var o=e(70451),n=e(11750),i=e(81023),a=e(59238),s=e(41953),u=e(24726),l=e(77308),p=e(23434),c=e(26952),d=e(72052),f=e(29009),v=e(46733);function h(t){return(0,v.Ay)("MuiButtonGroup",t)}let b=(0,f.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);var y=e(94580),g=e(30016),x=e(62540);let m=(0,l.A)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:e}=t;return[{[`& .${b.grouped}`]:r.grouped},{[`& .${b.grouped}`]:r[`grouped${(0,u.A)(e.orientation)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,u.A)(e.variant)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,u.A)(e.variant)}${(0,u.A)(e.orientation)}`]},{[`& .${b.grouped}`]:r[`grouped${(0,u.A)(e.variant)}${(0,u.A)(e.color)}`]},{[`& .${b.firstButton}`]:r.firstButton},{[`& .${b.lastButton}`]:r.lastButton},{[`& .${b.middleButton}`]:r.middleButton},r.root,r[e.variant],!0===e.disableElevation&&r.disableElevation,e.fullWidth&&r.fullWidth,"vertical"===e.orientation&&r.vertical]}})((0,p.A)(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${b.lastButton},& .${b.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${b.lastButton},& .${b.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${b.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${b.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter((0,c.A)()).flatMap(([r])=>[{props:{variant:"text",color:r},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderColor:t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:(0,a.X4)(t.palette[r].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${b.lastButton},& .${b.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${b.lastButton},& .${b.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${b.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${b.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter((0,c.A)(["dark"])).map(([r])=>({props:{variant:"contained",color:r},style:{[`& .${b.firstButton},& .${b.middleButton}`]:{borderColor:(t.vars||t).palette[r].dark}}}))],[`& .${b.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),_=o.forwardRef(function(t,r){let e=(0,d.b)({props:t,name:"MuiButtonGroup"}),{children:a,className:l,color:p="primary",component:c="div",disabled:f=!1,disableElevation:v=!1,disableFocusRipple:b=!1,disableRipple:_=!1,fullWidth:$=!1,orientation:j="horizontal",size:A="medium",variant:B="outlined",...O}=e,w={...e,color:p,component:c,disabled:f,disableElevation:v,disableFocusRipple:b,disableRipple:_,fullWidth:$,orientation:j,size:A,variant:B},C=(t=>{let{classes:r,color:e,disabled:o,disableElevation:n,fullWidth:a,orientation:s,variant:l}=t,p={root:["root",l,s,a&&"fullWidth",n&&"disableElevation",`color${(0,u.A)(e)}`],grouped:["grouped",`grouped${(0,u.A)(s)}`,`grouped${(0,u.A)(l)}`,`grouped${(0,u.A)(l)}${(0,u.A)(s)}`,`grouped${(0,u.A)(l)}${(0,u.A)(e)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,i.A)(p,h,r)})(w),S=o.useMemo(()=>({className:C.grouped,color:p,disabled:f,disableElevation:v,disableFocusRipple:b,disableRipple:_,fullWidth:$,size:A,variant:B}),[p,f,v,b,_,$,A,B,C.grouped]),k=(0,s.A)(a),z=k.length;return(0,x.jsx)(m,{as:c,role:"group",className:(0,n.A)(C.root,l),ref:r,ownerState:w,...O,children:(0,x.jsx)(y.A.Provider,{value:S,children:k.map((t,r)=>{let e,o;return(0,x.jsx)(g.A.Provider,{value:(e=0===r,o=r===z-1,e&&o?"":e?C.firstButton:o?C.lastButton:C.middleButton),children:t},r)})})})})},54381(t,r,e){"use strict";e.d(r,{A:()=>R});var o=e(70451),n=e(11750),i=e(94237),a=e(46733),s=e(81023),u=e(7939),l=e(51327),p=e(26041),c=e(20523),d=e(80787);let f=(t,r,e)=>{let o=t.keys[0];if(Array.isArray(r))r.forEach((r,o)=>{e((r,e)=>{o<=t.keys.length-1&&(0===o?Object.assign(r,e):r[t.up(t.keys[o])]=e)},r)});else if(r&&"object"==typeof r){let n,i;(Object.keys(r).length>t.keys.length?t.keys:(n=t.keys,i=Object.keys(r),n.filter(t=>i.includes(t)))).forEach(n=>{if(t.keys.includes(n)){let i=r[n];void 0!==i&&e((r,e)=>{o===n?Object.assign(r,e):r[t.up(n)]=e},i)}})}else("number"==typeof r||"string"==typeof r)&&e((t,r)=>{Object.assign(t,r)},r)};function v(t){return`--Grid-${t}Spacing`}function h(t){return`--Grid-parent-${t}Spacing`}let b="--Grid-columns",y="--Grid-parent-columns",g=({theme:t,ownerState:r})=>{let e={};return f(t.breakpoints,r.size,(t,r)=>{let o={};"grow"===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(${y}) - (var(${y}) - ${r}) * (var(${h("column")}) / var(${y})))`}),t(e,o)}),e},x=({theme:t,ownerState:r})=>{let e={};return f(t.breakpoints,r.offset,(t,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / var(${y}) + var(${h("column")}) * ${r} / var(${y}))`}),t(e,o)}),e},m=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={[b]:12};return f(t.breakpoints,r.columns,(t,r)=>{let o=r??12;t(e,{[b]:o,"> *":{[y]:o}})}),e},_=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.rowSpacing,(r,o)=>{let n="string"==typeof o?o:t.spacing?.(o);r(e,{[v("row")]:n,"> *":{[h("row")]:n}})}),e},$=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.columnSpacing,(r,o)=>{let n="string"==typeof o?o:t.spacing?.(o);r(e,{[v("column")]:n,"> *":{[h("column")]:n}})}),e},j=({theme:t,ownerState:r})=>{if(!r.container)return{};let e={};return f(t.breakpoints,r.direction,(t,r)=>{t(e,{flexDirection:r})}),e},A=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},gap:`var(${v("row")}) var(${v("column")})`}});var B=e(62540);let O=(0,d.A)(),w=(0,u.A)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>r.root});function C(t){return(0,l.A)({props:t,name:"MuiGrid",defaultTheme:O})}var S=e(77308),k=e(72052),z=e(56599);let R=function(t={}){let{createStyledComponent:r=w,useThemeProps:e=C,useTheme:u=p.A,componentName:l="MuiGrid"}=t;function d(t,r,e=()=>!0){let o={};return null===t||(Array.isArray(t)?t.forEach((t,n)=>{null!==t&&e(t)&&r.keys[n]&&(o[r.keys[n]]=t)}):"object"==typeof t?Object.keys(t).forEach(r=>{let n=t[r];null!=n&&e(n)&&(o[r]=n)}):o[r.keys[0]]=t),o}let f=r(m,$,_,g,j,A,x),v=o.forwardRef(function(t,r){var p;let v,h=u(),b=e(t),y=(0,c.A)(b);p=h.breakpoints,v=[],void 0!==y.item&&(delete y.item,v.push("item")),void 0!==y.zeroMinWidth&&(delete y.zeroMinWidth,v.push("zeroMinWidth")),p.keys.forEach(t=>{void 0!==y[t]&&(v.push(t),delete y[t])});let{className:g,children:x,columns:m=12,container:_=!1,component:$="div",direction:j="row",wrap:A="wrap",size:O={},offset:w={},spacing:C=0,rowSpacing:S=C,columnSpacing:k=C,unstable_level:z=0,...R}=y,M=d(O,h.breakpoints,t=>!1!==t),T=d(w,h.breakpoints),E=t.columns??(z?void 0:m),P=t.spacing??(z?void 0:C),G=t.rowSpacing??t.spacing??(z?void 0:S),L=t.columnSpacing??t.spacing??(z?void 0:k),W={...y,level:z,columns:E,container:_,direction:j,wrap:A,spacing:P,rowSpacing:G,columnSpacing:L,size:M,offset:T},N=((t,r)=>{let e,{container:o,direction:n,spacing:i,wrap:u,size:p}=t,c={root:["root",o&&"container","wrap"!==u&&`wrap-xs-${String(u)}`,...void 0===n?[]:"object"==typeof n?Object.entries(n).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(n)}`],...(e=[],Object.entries(p).forEach(([t,r])=>{!1!==r&&void 0!==r&&e.push(`grid-${t}-${String(r)}`)}),e),...o?((t,r="xs")=>{function e(t){return void 0!==t&&("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t&&t>0)}if(e(t))return[`spacing-${r}-${String(t)}`];if("object"==typeof t&&!Array.isArray(t)){let r=[];return Object.entries(t).forEach(([t,o])=>{e(o)&&r.push(`spacing-${t}-${String(o)}`)}),r}return[]})(i,r.breakpoints.keys[0]):[]]};return(0,s.A)(c,t=>(0,a.Ay)(l,t),{})})(W,h);return(0,B.jsx)(f,{ref:r,as:$,ownerState:W,className:(0,n.A)(N.root,g),...R,children:o.Children.map(x,t=>o.isValidElement(t)&&(0,i.A)(t,["Grid"])&&_&&t.props.container?o.cloneElement(t,{unstable_level:t.props?.unstable_level??z+1}):t)})});return v.muiName="Grid",v}({createStyledComponent:(0,S.A)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:e}=t;return[r.root,e.container&&r.container]}}),componentName:"MuiGrid2",useThemeProps:t=>(0,k.b)({props:t,name:"MuiGrid2"}),useTheme:z.A})},41953(t,r,e){"use strict";e.d(r,{A:()=>n});var o=e(70451);function n(t){return o.Children.toArray(t).filter(t=>o.isValidElement(t))}},9073(t,r,e){var o=e(82316),n=e(76458),i=e(2149),a=e(44297),s=e(33121);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},72707(t,r,e){var o=e(39714),n=e(33812),i=e(14727),a=e(8379),s=e(8291);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},91955(t,r,e){t.exports=e(99138)(e(41433),"Map")},90369(t,r,e){var o=e(72092),n=e(49626),i=e(79925),a=e(26809),s=e(94385);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},86469(t,r,e){var o=e(72707),n=e(71848),i=e(17406),a=e(58569),s=e(43109),u=e(73389);function l(t){var r=this.__data__=new o(t);this.size=r.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},32781(t,r,e){t.exports=e(41433).Symbol},28944(t,r,e){t.exports=e(41433).Uint8Array},96701(t){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},31163(t,r,e){var o=e(36204),n=e(21256),i=e(6397),a=e(30492),s=e(42845),u=e(47995),l=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),p=!e&&n(t),c=!e&&!p&&a(t),d=!e&&!p&&!c&&u(t),f=e||p||c||d,v=f?o(t.length,String):[],h=v.length;for(var b in t)(r||l.call(t,b))&&!(f&&("length"==b||c&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h)))&&v.push(b);return v}},61617(t,r,e){var o=e(14772),n=e(39316);t.exports=function(t,r,e){(void 0===e||n(t[r],e))&&(void 0!==e||r in t)||o(t,r,e)}},82863(t,r,e){var o=e(14772),n=e(39316),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var a=t[r];i.call(t,r)&&n(a,e)&&(void 0!==e||r in t)||o(t,r,e)}},58301(t,r,e){var o=e(39316);t.exports=function(t,r){for(var e=t.length;e--;)if(o(t[e][0],r))return e;return -1}},14772(t,r,e){var o=e(18559);t.exports=function(t,r,e){"__proto__"==r&&o?o(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},23508(t,r,e){var o=e(58953),n=Object.create;t.exports=function(){function t(){}return function(r){if(!o(r))return{};if(n)return n(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}()},61469(t,r,e){t.exports=e(15409)()},87148(t,r,e){var o=e(32781),n=e(17903),i=e(71738),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?n(t):i(t)}},79250(t,r,e){var o=e(87148),n=e(22934);t.exports=function(t){return n(t)&&"[object Arguments]"==o(t)}},16567(t,r,e){var o=e(18446),n=e(18092),i=e(58953),a=e(81485),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,p=u.hasOwnProperty,c=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||n(t))&&(o(t)?c:s).test(a(t))}},97129(t,r,e){var o=e(87148),n=e(3330),i=e(22934),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&n(t.length)&&!!a[o(t)]}},41491(t,r,e){var o=e(58953),n=e(67499),i=e(68201),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return i(t);var r=n(t),e=[];for(var s in t)"constructor"==s&&(r||!a.call(t,s))||e.push(s);return e}},99702(t,r,e){var o=e(86469),n=e(61617),i=e(61469),a=e(80708),s=e(58953),u=e(15405),l=e(29874);t.exports=function t(r,e,p,c,d){r!==e&&i(e,function(i,u){if(d||(d=new o),s(i))a(r,e,u,p,t,c,d);else{var f=c?c(l(r,u),i,u+"",r,e,d):void 0;void 0===f&&(f=i),n(r,u,f)}},u)}},80708(t,r,e){var o=e(61617),n=e(87030),i=e(76733),a=e(68835),s=e(19181),u=e(21256),l=e(6397),p=e(75569),c=e(30492),d=e(18446),f=e(58953),v=e(54679),h=e(47995),b=e(29874),y=e(47264);t.exports=function(t,r,e,g,x,m,_){var $=b(t,e),j=b(r,e),A=_.get(j);if(A)return void o(t,e,A);var B=m?m($,j,e+"",t,r,_):void 0,O=void 0===B;if(O){var w=l(j),C=!w&&c(j),S=!w&&!C&&h(j);B=j,w||C||S?l($)?B=$:p($)?B=a($):C?(O=!1,B=n(j,!0)):S?(O=!1,B=i(j,!0)):B=[]:v(j)||u(j)?(B=$,u($)?B=y($):(!f($)||d($))&&(B=s(j))):O=!1}O&&(_.set(j,B),x(B,j,g,m,_),_.delete(j)),o(t,e,B)}},71506(t,r,e){var o=e(74796),n=e(25265),i=e(26805);t.exports=function(t,r){return i(n(t,r,o),t+"")}},7310(t,r,e){var o=e(53122),n=e(18559),i=e(74796);t.exports=n?function(t,r){return n(t,"toString",{configurable:!0,enumerable:!1,value:o(r),writable:!0})}:i},36204(t){t.exports=function(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o}},30041(t){t.exports=function(t){return function(r){return t(r)}}},57177(t,r,e){var o=e(28944);t.exports=function(t){var r=new t.constructor(t.byteLength);return new o(r).set(new o(t)),r}},87030(t,r,e){t=e.nmd(t);var o=e(41433),n=r&&!r.nodeType&&r,i=n&&t&&!t.nodeType&&t,a=i&&i.exports===n?o.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,o=s?s(e):new t.constructor(e);return t.copy(o),o}},76733(t,r,e){var o=e(57177);t.exports=function(t,r){var e=r?o(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},68835(t){t.exports=function(t,r){var e=-1,o=t.length;for(r||(r=Array(o));++e<o;)r[e]=t[e];return r}},42083(t,r,e){var o=e(82863),n=e(14772);t.exports=function(t,r,e,i){var a=!e;e||(e={});for(var s=-1,u=r.length;++s<u;){var l=r[s],p=i?i(e[l],t[l],l,e,t):void 0;void 0===p&&(p=t[l]),a?n(e,l,p):o(e,l,p)}return e}},38109(t,r,e){t.exports=e(41433)["__core-js_shared__"]},54171(t,r,e){var o=e(71506),n=e(66220);t.exports=function(t){return o(function(r,e){var o=-1,i=e.length,a=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&n(e[0],e[1],s)&&(a=i<3?void 0:a,i=1),r=Object(r);++o<i;){var u=e[o];u&&t(r,u,o,a)}return r})}},15409(t){t.exports=function(t){return function(r,e,o){for(var n=-1,i=Object(r),a=o(r),s=a.length;s--;){var u=a[t?s:++n];if(!1===e(i[u],u,i))break}return r}}},18559(t,r,e){var o=e(99138);t.exports=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},75380(t,r,e){t.exports="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g},15535(t,r,e){var o=e(95662);t.exports=function(t,r){var e=t.__data__;return o(r)?e["string"==typeof r?"string":"hash"]:e.map}},99138(t,r,e){var o=e(16567),n=e(6772);t.exports=function(t,r){var e=n(t,r);return o(e)?e:void 0}},13347(t,r,e){t.exports=e(51019)(Object.getPrototypeOf,Object)},17903(t,r,e){var o=e(32781),n=Object.prototype,i=n.hasOwnProperty,a=n.toString,s=o?o.toStringTag:void 0;t.exports=function(t){var r=i.call(t,s),e=t[s];try{t[s]=void 0;var o=!0}catch(t){}var n=a.call(t);return o&&(r?t[s]=e:delete t[s]),n}},6772(t){t.exports=function(t,r){return null==t?void 0:t[r]}},82316(t,r,e){var o=e(4558);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},76458(t){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=!!r,r}},2149(t,r,e){var o=e(4558),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(o){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return n.call(r,t)?r[t]:void 0}},44297(t,r,e){var o=e(4558),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return o?void 0!==r[t]:n.call(r,t)}},33121(t,r,e){var o=e(4558);t.exports=function(t,r){var e=this.__data__;return this.size+=+!this.has(t),e[t]=o&&void 0===r?"__lodash_hash_undefined__":r,this}},19181(t,r,e){var o=e(23508),n=e(13347),i=e(67499);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:o(n(t))}},42845(t){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},66220(t,r,e){var o=e(39316),n=e(18330),i=e(42845),a=e(58953);t.exports=function(t,r,e){if(!a(e))return!1;var s=typeof r;return("number"==s?!!(n(e)&&i(r,e.length)):"string"==s&&r in e)&&o(e[r],t)}},95662(t){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},18092(t,r,e){var o,n=e(38109),i=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!i&&i in t}},67499(t){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},39714(t){t.exports=function(){this.__data__=[],this.size=0}},33812(t,r,e){var o=e(58301),n=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=o(r,t);return!(e<0)&&(e==r.length-1?r.pop():n.call(r,e,1),--this.size,!0)}},14727(t,r,e){var o=e(58301);t.exports=function(t){var r=this.__data__,e=o(r,t);return e<0?void 0:r[e][1]}},8379(t,r,e){var o=e(58301);t.exports=function(t){return o(this.__data__,t)>-1}},8291(t,r,e){var o=e(58301);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},72092(t,r,e){var o=e(9073),n=e(72707),i=e(91955);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||n),string:new o}}},49626(t,r,e){var o=e(15535);t.exports=function(t){var r=o(this,t).delete(t);return this.size-=!!r,r}},79925(t,r,e){var o=e(15535);t.exports=function(t){return o(this,t).get(t)}},26809(t,r,e){var o=e(15535);t.exports=function(t){return o(this,t).has(t)}},94385(t,r,e){var o=e(15535);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=+(e.size!=n),this}},4558(t,r,e){t.exports=e(99138)(Object,"create")},68201(t){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},23685(t,r,e){t=e.nmd(t);var o=e(75380),n=r&&!r.nodeType&&r,i=n&&t&&!t.nodeType&&t,a=i&&i.exports===n&&o.process,s=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},71738(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},51019(t){t.exports=function(t,r){return function(e){return t(r(e))}}},25265(t,r,e){var o=e(96701),n=Math.max;t.exports=function(t,r,e){return r=n(void 0===r?t.length-1:r,0),function(){for(var i=arguments,a=-1,s=n(i.length-r,0),u=Array(s);++a<s;)u[a]=i[r+a];a=-1;for(var l=Array(r+1);++a<r;)l[a]=i[a];return l[r]=e(u),o(t,this,l)}}},41433(t,r,e){var o=e(75380),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=o||n||Function("return this")()},29874(t){t.exports=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}},26805(t,r,e){var o=e(7310);t.exports=e(23983)(o)},23983(t){var r=Date.now;t.exports=function(t){var e=0,o=0;return function(){var n=r(),i=16-(n-o);if(o=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},71848(t,r,e){var o=e(72707);t.exports=function(){this.__data__=new o,this.size=0}},17406(t){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},58569(t){t.exports=function(t){return this.__data__.get(t)}},43109(t){t.exports=function(t){return this.__data__.has(t)}},73389(t,r,e){var o=e(72707),n=e(91955),i=e(90369);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var a=e.__data__;if(!n||a.length<199)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(t,r),this.size=e.size,this}},81485(t){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},53122(t){t.exports=function(t){return function(){return t}}},39316(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},74796(t){t.exports=function(t){return t}},21256(t,r,e){var o=e(79250),n=e(22934),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;t.exports=o(function(){return arguments}())?o:function(t){return n(t)&&a.call(t,"callee")&&!s.call(t,"callee")}},6397(t){t.exports=Array.isArray},18330(t,r,e){var o=e(18446),n=e(3330);t.exports=function(t){return null!=t&&n(t.length)&&!o(t)}},75569(t,r,e){var o=e(18330),n=e(22934);t.exports=function(t){return n(t)&&o(t)}},30492(t,r,e){t=e.nmd(t);var o=e(41433),n=e(80659),i=r&&!r.nodeType&&r,a=i&&t&&!t.nodeType&&t,s=a&&a.exports===i?o.Buffer:void 0,u=s?s.isBuffer:void 0;t.exports=u||n},18446(t,r,e){var o=e(87148),n=e(58953);t.exports=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},3330(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},58953(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},22934(t){t.exports=function(t){return null!=t&&"object"==typeof t}},54679(t,r,e){var o=e(87148),n=e(13347),i=e(22934),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;var r=n(t);if(null===r)return!0;var e=u.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}},47995(t,r,e){var o=e(97129),n=e(30041),i=e(23685),a=i&&i.isTypedArray;t.exports=a?n(a):o},15405(t,r,e){var o=e(31163),n=e(41491),i=e(18330);t.exports=function(t){return i(t)?o(t,!0):n(t)}},25632(t,r,e){var o=e(99702);t.exports=e(54171)(function(t,r,e){o(t,r,e)})},80659(t){t.exports=function(){return!1}},47264(t,r,e){var o=e(42083),n=e(15405);t.exports=function(t){return o(t,n(t))}},78536(t,r,e){"use strict";var o;r.default=void 0,r.default=(0,((o=e(1448))&&o.__esModule?o:{default:o}).default)("M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z","EyeOffOutline")},1355(t,r,e){"use strict";var o;r.default=void 0,r.default=(0,((o=e(1448))&&o.__esModule?o:{default:o}).default)("M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z","EyeOutline")}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7862.4f5027fd.js.LICENSE.txt */
2
- "use strict";(self.chunk_Table=self.chunk_Table||[]).push([["7862"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>_,Hydrate:()=>tN,useInfiniteQuery:()=>tV,useIsMutating:()=>t_,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>V,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>N,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>tB,useQuery:()=>tU,onlineManager:()=>U,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tG,useMutation:()=>tW,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},T=["online","offline"],U=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return T.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{T.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||U.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!U.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let B=console,N=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class G{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _ extends G{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||B,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new _({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){N.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){N.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){N.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class W extends G{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||B,this.observers=[],this.state=t.state||J(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function J(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class V extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new W({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){N.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return N.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new V,this.logger=t.logger||B,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=U.subscribe(()=>{U.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return N.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;N.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return N.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(N.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return N.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(N.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){N.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,N.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){N.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:J(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){N.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(N.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tT(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=N.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=N.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=N.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(N.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tU(t,e,s){return tT(y(t,e,s),tt)}function tK(t){return tT({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tT({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function tB(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tN=({children:t,options:e,state:s})=>(tB(s,e),t);function tG(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function t_(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tW(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(N.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tJ)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tJ(){}function tV(t,e,s){return tT(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);
1
+ /*! For license information please see 5481.6496fac9.js.LICENSE.txt */
2
+ "use strict";(self.chunk_Table=self.chunk_Table||[]).push([["5481"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>_,Hydrate:()=>tN,useInfiniteQuery:()=>tV,useIsMutating:()=>t_,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>V,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>N,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>tB,useQuery:()=>tU,onlineManager:()=>U,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tG,useMutation:()=>tW,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},T=["online","offline"],U=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return T.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{T.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||U.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!U.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let B=console,N=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class G{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _ extends G{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||B,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new _({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){N.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){N.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){N.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class W extends G{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||B,this.observers=[],this.state=t.state||J(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function J(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class V extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new W({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){N.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return N.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new V,this.logger=t.logger||B,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=U.subscribe(()=>{U.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return N.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;N.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return N.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(N.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return N.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(N.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){N.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,N.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){N.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:J(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){N.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(N.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tT(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=N.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=N.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=N.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(N.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tU(t,e,s){return tT(y(t,e,s),tt)}function tK(t){return tT({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tT({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function tB(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tN=({children:t,options:e,state:s})=>(tB(s,e),t);function tG(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function t_(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tW(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(N.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tJ)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tJ(){}function tV(t,e,s){return tT(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);