Files
dailygrubs_console_build/build/static/js/2754.59d6e37d.chunk.js

1 line
19 KiB
JavaScript

(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[2754],{10658:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",s="minute",a="hour",u="day",o="week",c="month",h="quarter",l="year",f="date",d="Invalid Date",Z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},w={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,c),s=n-r<0,a=e.clone().add(i+(s?-1:1),c);return+(-(i+(n-r)/(s?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:o,d:u,D:f,h:a,m:s,s:r,ms:i,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",b={};b[$]=p;var g="$isDayjsObject",k=function(t){return t instanceof O||!(!t||!t[g])},m=function t(e,n,i){var r;if(!e)return $;if("string"==typeof e){var s=e.toLowerCase();b[s]&&(r=s),n&&(b[s]=n,r=s);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var u=e.name;b[u]=e,r=u}return!i&&r&&($=r),r||!i&&$},M=function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},S=w;S.l=m,S.i=k,S.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function p(t){this.$L=m(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var y=p.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(Z);if(i){var r=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return M(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<M(t)},y.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,i=!!S.u(e)||e,h=S.p(t),d=function(t,e){var r=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(u)},Z=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},v=this.$W,p=this.$M,y=this.$D,w="set"+(this.$u?"UTC":"");switch(h){case l:return i?d(1,0):d(31,11);case c:return i?d(1,p):d(0,p+1);case o:var $=this.$locale().weekStart||0,b=(v<$?v+7:v)-$;return d(i?y-b:y+(6-b),p);case u:case f:return Z(w+"Hours",0);case a:return Z(w+"Minutes",1);case s:return Z(w+"Seconds",2);case r:return Z(w+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,o=S.p(t),h="set"+(this.$u?"UTC":""),d=(n={},n[u]=h+"Date",n[f]=h+"Date",n[c]=h+"Month",n[l]=h+"FullYear",n[a]=h+"Hours",n[s]=h+"Minutes",n[r]=h+"Seconds",n[i]=h+"Milliseconds",n)[o],Z=o===u?this.$D+(e-this.$W):e;if(o===c||o===l){var v=this.clone().set(f,1);v.$d[d](Z),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else d&&this.$d[d](Z);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(i,h){var f,d=this;i=Number(i);var Z=S.p(h),v=function(t){var e=M(d);return S.w(e.date(e.date()+Math.round(t*i)),d)};if(Z===c)return this.set(c,this.$M+i);if(Z===l)return this.set(l,this.$y+i);if(Z===u)return v(1);if(Z===o)return v(7);var p=(f={},f[s]=e,f[a]=n,f[r]=t,f)[Z]||1,y=this.$d.getTime()+i*p;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=S.z(this),s=this.$H,a=this.$m,u=this.$M,o=n.weekdays,c=n.months,h=n.meridiem,l=function(t,n,r,s){return t&&(t[n]||t(e,i))||r[n].slice(0,s)},f=function(t){return S.s(s%12||12,t,"0")},Z=h||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(v,(function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return u+1;case"MM":return S.s(u+1,2,"0");case"MMM":return l(n.monthsShort,u,c,3);case"MMMM":return l(c,u);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return l(n.weekdaysMin,e.$W,o,2);case"ddd":return l(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return S.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return Z(s,a,!0);case"A":return Z(s,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return r}return null}(t)||r.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(i,f,d){var Z,v=this,p=S.p(f),y=M(i),w=(y.utcOffset()-this.utcOffset())*e,$=this-y,b=function(){return S.m(v,y)};switch(p){case l:Z=b()/12;break;case c:Z=b();break;case h:Z=b()/3;break;case o:Z=($-w)/6048e5;break;case u:Z=($-w)/864e5;break;case a:Z=$/n;break;case s:Z=$/e;break;case r:Z=$/t;break;default:Z=$}return d?Z:S.a(Z)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=m(t,e,!0);return i&&(n.$L=i),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},p}(),D=O.prototype;return M.prototype=D,[["$ms",i],["$s",r],["$m",s],["$H",a],["$W",u],["$M",c],["$y",l],["$D",f]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,O,M),t.$i=!0),M},M.locale=m,M.isDayjs=k,M.unix=function(t){return M(1e3*t)},M.en=b[$],M.Ls=b,M.p={},M}()},18948:function(t,e,n){"use strict";n.d(e,{z:function(){return P}});var i,r,s,a,u,o,c,h,l,f,d,Z,v,p,y,w,$,b,g,k,m,M,S,O=n(1413),D=n(36459),R=n(15671),C=n(43144),W=n(97326),_=n(60136),U=n(27277),T=n(40101),L=n(72346),E=n(43889),F=n(86033),A=n(13092),x=n(66587),I=n(28127),H=n(3847),Y=n(27542),j=n(31854),P=(i=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap,u=new WeakMap,o=new WeakMap,c=new WeakMap,h=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap,Z=new WeakMap,v=new WeakMap,p=new WeakMap,y=new WeakSet,w=new WeakSet,$=new WeakSet,b=new WeakSet,g=new WeakSet,k=new WeakSet,m=new WeakSet,M=new WeakSet,S=new WeakSet,function(t){(0,_.Z)(n,t);var e=(0,U.Z)(n);function n(t,O){var D;return(0,R.Z)(this,n),D=e.call(this),(0,T.Z)((0,W.Z)(D),S),(0,T.Z)((0,W.Z)(D),M),(0,T.Z)((0,W.Z)(D),m),(0,T.Z)((0,W.Z)(D),k),(0,T.Z)((0,W.Z)(D),g),(0,T.Z)((0,W.Z)(D),b),(0,T.Z)((0,W.Z)(D),$),(0,T.Z)((0,W.Z)(D),w),(0,T.Z)((0,W.Z)(D),y),(0,L.Z)((0,W.Z)(D),i,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),r,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),s,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),a,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),u,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),o,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),c,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),h,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),l,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),f,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),d,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),Z,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),v,{writable:!0,value:void 0}),(0,L.Z)((0,W.Z)(D),p,{writable:!0,value:new Set}),D.options=O,(0,A.Z)((0,W.Z)(D),i,t),(0,A.Z)((0,W.Z)(D),c,null),D.bindMethods(),D.setOptions(O),D}return(0,C.Z)(n,[{key:"bindMethods",value:function(){this.refetch=this.refetch.bind(this)}},{key:"onSubscribe",value:function(){1===this.listeners.size&&((0,F.Z)(this,r).addObserver(this),X((0,F.Z)(this,r),this.options)?(0,E.Z)(this,y,Q).call(this):this.updateResult(),(0,E.Z)(this,g,B).call(this))}},{key:"onUnsubscribe",value:function(){this.hasListeners()||this.destroy()}},{key:"shouldFetchOnReconnect",value:function(){return tt((0,F.Z)(this,r),this.options,this.options.refetchOnReconnect)}},{key:"shouldFetchOnWindowFocus",value:function(){return tt((0,F.Z)(this,r),this.options,this.options.refetchOnWindowFocus)}},{key:"destroy",value:function(){this.listeners=new Set,(0,E.Z)(this,k,q).call(this),(0,E.Z)(this,m,z).call(this),(0,F.Z)(this,r).removeObserver(this)}},{key:"setOptions",value:function(t,e){var n=this.options,s=(0,F.Z)(this,r);if(this.options=(0,F.Z)(this,i).defaultQueryOptions(t),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");(0,E.Z)(this,M,K).call(this),(0,x.VS)(this.options,n)||(0,F.Z)(this,i).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,F.Z)(this,r),observer:this});var a=this.hasListeners();a&&et((0,F.Z)(this,r),s,this.options,n)&&(0,E.Z)(this,y,Q).call(this),this.updateResult(e),!a||(0,F.Z)(this,r)===s&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||(0,E.Z)(this,w,N).call(this);var u=(0,E.Z)(this,$,J).call(this);!a||(0,F.Z)(this,r)===s&&this.options.enabled===n.enabled&&u===(0,F.Z)(this,v)||(0,E.Z)(this,b,V).call(this,u)}},{key:"getOptimisticResult",value:function(t){var e=(0,F.Z)(this,i).getQueryCache().build((0,F.Z)(this,i),t),n=this.createResult(e,t);return function(t,e){if(!(0,x.VS)(t.getCurrentResult(),e))return!0;return!1}(this,n)&&((0,A.Z)(this,a,n),(0,A.Z)(this,o,this.options),(0,A.Z)(this,u,(0,F.Z)(this,r).state)),n}},{key:"getCurrentResult",value:function(){return(0,F.Z)(this,a)}},{key:"trackResult",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:function(){return(0,F.Z)(e,p).add(i),t[i]}})})),n}},{key:"getCurrentQuery",value:function(){return(0,F.Z)(this,r)}},{key:"refetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},((0,D.Z)(t),t));return this.fetch((0,O.Z)({},e))}},{key:"fetchOptimistic",value:function(t){var e=this,n=(0,F.Z)(this,i).defaultQueryOptions(t),r=(0,F.Z)(this,i).getQueryCache().build((0,F.Z)(this,i),n);return r.isFetchingOptimistic=!0,r.fetch().then((function(){return e.createResult(r,n)}))}},{key:"fetch",value:function(t){var e,n=this;return(0,E.Z)(this,y,Q).call(this,(0,O.Z)((0,O.Z)({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then((function(){return n.updateResult(),(0,F.Z)(n,a)}))}},{key:"createResult",value:function(t,e){var n,i=(0,F.Z)(this,r),d=this.options,Z=(0,F.Z)(this,a),v=(0,F.Z)(this,u),p=(0,F.Z)(this,o),y=t!==i?t.state:(0,F.Z)(this,s),w=t.state,$=w.error,b=w.errorUpdatedAt,g=w.fetchStatus,k=w.status,m=!1;if(e._optimisticResults){var M=this.hasListeners(),S=!M&&X(t,e),O=M&&et(t,i,e,d);(S||O)&&(g=(0,j.Kw)(t.options.networkMode)?"fetching":"paused",w.dataUpdatedAt||(k="pending")),"isRestoring"===e._optimisticResults&&(g="idle")}if(e.select&&"undefined"!==typeof w.data)if(Z&&w.data===(null===v||void 0===v?void 0:v.data)&&e.select===(0,F.Z)(this,h))n=(0,F.Z)(this,l);else try{(0,A.Z)(this,h,e.select),n=e.select(w.data),n=(0,x.oE)(null===Z||void 0===Z?void 0:Z.data,n,e),(0,A.Z)(this,l,n),(0,A.Z)(this,c,null)}catch(T){(0,A.Z)(this,c,T)}else n=w.data;if("undefined"!==typeof e.placeholderData&&"undefined"===typeof n&&"pending"===k){var D,R;if(null!==Z&&void 0!==Z&&Z.isPlaceholderData&&e.placeholderData===(null===p||void 0===p?void 0:p.placeholderData))D=Z.data;else if(D="function"===typeof e.placeholderData?e.placeholderData(null===(R=(0,F.Z)(this,f))||void 0===R?void 0:R.state.data,(0,F.Z)(this,f)):e.placeholderData,e.select&&"undefined"!==typeof D)try{D=e.select(D),(0,A.Z)(this,c,null)}catch(T){(0,A.Z)(this,c,T)}"undefined"!==typeof D&&(k="success",n=(0,x.oE)(null===Z||void 0===Z?void 0:Z.data,D,e),m=!0)}(0,F.Z)(this,c)&&($=(0,F.Z)(this,c),n=(0,F.Z)(this,l),b=Date.now(),k="error");var C="fetching"===g,W="pending"===k,_="error"===k,U=W&&C;return{status:k,fetchStatus:g,isPending:W,isSuccess:"success"===k,isError:_,isInitialLoading:U,isLoading:U,data:n,dataUpdatedAt:w.dataUpdatedAt,error:$,errorUpdatedAt:b,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>y.dataUpdateCount||w.errorUpdateCount>y.errorUpdateCount,isFetching:C,isRefetching:C&&!W,isLoadingError:_&&0===w.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:m,isRefetchError:_&&0!==w.dataUpdatedAt,isStale:nt(t,e),refetch:this.refetch}}},{key:"updateResult",value:function(t){var e=this,n=(0,F.Z)(this,a),i=this.createResult((0,F.Z)(this,r),this.options);if((0,A.Z)(this,u,(0,F.Z)(this,r).state),(0,A.Z)(this,o,this.options),void 0!==(0,F.Z)(this,u).data&&(0,A.Z)(this,f,(0,F.Z)(this,r)),!(0,x.VS)(i,n)){(0,A.Z)(this,a,i);var s={};!1!==(null===t||void 0===t?void 0:t.listeners)&&function(){if(!n)return!0;var t=e.options.notifyOnChangeProps,i="function"===typeof t?t():t;if("all"===i||!i&&!(0,F.Z)(e,p).size)return!0;var r=new Set(null!==i&&void 0!==i?i:(0,F.Z)(e,p));return e.options.throwOnError&&r.add("error"),Object.keys((0,F.Z)(e,a)).some((function(t){var i=t;return(0,F.Z)(e,a)[i]!==n[i]&&r.has(i)}))}()&&(s.listeners=!0),(0,E.Z)(this,S,G).call(this,(0,O.Z)((0,O.Z)({},s),t))}}},{key:"onQueryUpdate",value:function(){this.updateResult(),this.hasListeners()&&(0,E.Z)(this,g,B).call(this)}}]),n}(Y.l));function Q(t){(0,E.Z)(this,M,K).call(this);var e=(0,F.Z)(this,r).fetch(this.options,t);return null!==t&&void 0!==t&&t.throwOnError||(e=e.catch(x.ZT)),e}function N(){var t=this;if((0,E.Z)(this,k,q).call(this),!x.sk&&!(0,F.Z)(this,a).isStale&&(0,x.PN)(this.options.staleTime)){var e=(0,x.Kp)((0,F.Z)(this,a).dataUpdatedAt,this.options.staleTime)+1;(0,A.Z)(this,d,setTimeout((function(){(0,F.Z)(t,a).isStale||t.updateResult()}),e))}}function J(){var t;return null!==(t="function"===typeof this.options.refetchInterval?this.options.refetchInterval((0,F.Z)(this,r)):this.options.refetchInterval)&&void 0!==t&&t}function V(t){var e=this;(0,E.Z)(this,m,z).call(this),(0,A.Z)(this,v,t),!x.sk&&!1!==this.options.enabled&&(0,x.PN)((0,F.Z)(this,v))&&0!==(0,F.Z)(this,v)&&(0,A.Z)(this,Z,setInterval((function(){(e.options.refetchIntervalInBackground||H.j.isFocused())&&(0,E.Z)(e,y,Q).call(e)}),(0,F.Z)(this,v)))}function B(){(0,E.Z)(this,w,N).call(this),(0,E.Z)(this,b,V).call(this,(0,E.Z)(this,$,J).call(this))}function q(){(0,F.Z)(this,d)&&(clearTimeout((0,F.Z)(this,d)),(0,A.Z)(this,d,void 0))}function z(){(0,F.Z)(this,Z)&&(clearInterval((0,F.Z)(this,Z)),(0,A.Z)(this,Z,void 0))}function K(){var t=(0,F.Z)(this,i).getQueryCache().build((0,F.Z)(this,i),this.options);if(t!==(0,F.Z)(this,r)){var e=(0,F.Z)(this,r);(0,A.Z)(this,r,t),(0,A.Z)(this,s,t.state),this.hasListeners()&&(null===e||void 0===e||e.removeObserver(this),t.addObserver(this))}}function G(t){var e=this;I.V.batch((function(){t.listeners&&e.listeners.forEach((function(t){t((0,F.Z)(e,a))})),(0,F.Z)(e,i).getQueryCache().notify({query:(0,F.Z)(e,r),type:"observerResultsUpdated"})}))}function X(t,e){return function(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&tt(t,e,e.refetchOnMount)}function tt(t,e,n){if(!1!==e.enabled){var i="function"===typeof n?n(t):n;return"always"===i||!1!==i&&nt(t,e)}return!1}function et(t,e,n,i){return!1!==n.enabled&&(t!==e||!1===i.enabled)&&(!n.suspense||"error"!==t.state.status)&&nt(t,n)}function nt(t,e){return t.isStaleByTime(e.staleTime)}},70048:function(t,e,n){"use strict";n.d(e,{_:function(){return a}});var i=n(47313);n(46417);function r(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var s=i.createContext(r()),a=function(){return i.useContext(s)}},27958:function(t,e,n){"use strict";n.d(e,{JN:function(){return a},KJ:function(){return u},pf:function(){return s}});var i=n(47313),r=n(24772),s=function(t,e){(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},a=function(t){i.useEffect((function(){t.clearReset()}),[t])},u=function(t){var e=t.result,n=t.errorResetBoundary,i=t.throwOnError,s=t.query;return e.isError&&!n.isReset()&&!e.isFetching&&s&&(0,r.L)(i,[e.error,s])}},36055:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(47313),r=i.createContext(!1),s=function(){return i.useContext(r)};r.Provider},56526:function(t,e,n){"use strict";n.d(e,{Fb:function(){return i},SB:function(){return s},Z$:function(){return r},j8:function(){return a}});var i=function(t){t.suspense&&"number"!==typeof t.staleTime&&(t.staleTime=1e3)},r=function(t,e){return t.isLoading&&t.isFetching&&!e},s=function(t,e){return(null===t||void 0===t?void 0:t.suspense)&&e.isPending},a=function(t,e,n){return e.fetchOptimistic(t).catch((function(){n.clearReset()}))}},51695:function(t,e,n){"use strict";n.d(e,{r:function(){return l}});var i=n(29439),r=n(47313),s=n(28127),a=n(70048),u=n(67109),o=n(36055),c=n(27958),h=n(56526);function l(t,e,n){var l=(0,u.NL)(n),f=(0,o.S)(),d=(0,a._)(),Z=l.defaultQueryOptions(t);Z._optimisticResults=f?"isRestoring":"optimistic",(0,h.Fb)(Z),(0,c.pf)(Z,d),(0,c.JN)(d);var v=r.useState((function(){return new e(l,Z)})),p=(0,i.Z)(v,1)[0],y=p.getOptimisticResult(Z);if(r.useSyncExternalStore(r.useCallback((function(t){var e=f?function(){}:p.subscribe(s.V.batchCalls(t));return p.updateResult(),e}),[p,f]),(function(){return p.getCurrentResult()}),(function(){return p.getCurrentResult()})),r.useEffect((function(){p.setOptions(Z,{listeners:!1})}),[Z,p]),(0,h.SB)(Z,y))throw(0,h.j8)(Z,p,d);if((0,c.KJ)({result:y,errorResetBoundary:d,throwOnError:Z.throwOnError,query:l.getQueryCache().get(Z.queryHash)}))throw y.error;return Z.notifyOnChangeProps?y:p.trackResult(y)}},24772:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(93433);function r(t,e){return"function"===typeof t?t.apply(void 0,(0,i.Z)(e)):!!t}}}]);