PageSourceSearch

https://progress-hub.work180.com/_next/static/chunks/7026-789a53cee3bec49a.js

js work180.com collected 2026-10-03 22:23:39 UTC 165,603 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7026],{60814:function(e,t,r){r.d(t,{y:function(){return c}});var n=r(45692),i=r(52864),o=r(79671),s=r(81549),a=r(85949),l=r(18639),u=r(34629),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,s=this,a=(o=e)&&o instanceof n.Lv||o&&(0,l.m)(o.next)&&(0,l.m)(o.error)&&(0,l.m)(o.complete)&&(0,i.Nn)(o)?e:new n.Hp(e,t,r);return(0,u.x)(function(){var e=s.operator,t=s.source;a.add(e?e.call(a,t):t?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=h(t))(function(t,i){var o=new n.Hp({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?s.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function h(e){var t;return null!==(t=null!=e?e:a.v.Promise)&&void 0!==t?t:Promise}},50298:function(e,t,r){r.d(t,{t:function(){return s}});var n=r(87913),i=r(76129),o=r(23988),s=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.l);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,n.ZT)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},t}(i.x)},76129:function(e,t,r){r.d(t,{x:function(){return u}});var n=r(87913),i=r(60814),o=r(52864),s=(0,r(53375).d)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=r(58251),l=r(34629),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.ZT)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new s},t.prototype.next=function(e){var t=this;(0,l.x)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.XA)(t.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,l.x)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.x)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
1,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?o.Lc:(this.currentObservers=null,i.push(e),new o.w0(function(){t.currentObservers=null,(0,a.P)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new i.y;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(i.y),c=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.ZT)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:o.Lc},t}(u)},45692:function(e,t,r){r.d(t,{Hp:function(){return v},Lv:function(){return d}});var n=r(87913),i=r(18639),o=r(52864),s=r(85949),a=r(41690);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var h=r(67650),f=r(34629),d=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Nn)(t)&&t.add(r)):r.destination=w,r}return(0,n.ZT)(t,e),t.create=function(e,t,r){return new v(e,t,r)},t.prototype.next=function(e){this.isStopped?g(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?g(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?g(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.w0),p=Function.prototype.bind;function y(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),v=function(e){function t(t,r,n){var o,a,l=e.call(this)||this;return(0,i.m)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&s.v.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&y(t.next,a),error:t.error&&y(t.error,a),complete:t.complete&&y(t.complete,a)}):o=t,l.destination=new m(o),l}return(0,n.ZT)(t,e),t}(d);function b(e){s.v.useDeprecatedSynchronousErrorHandling?(0,f.O)(e):(0,a.h)(e)}function g(e,t){var r=s.v.onStoppedNotification;r&&h.z.setTimeout(function(){return r(e,t)})}var w={closed:!0,next:l,error:function(e){throw e},complete:l}},52864:function(e,t,r){r.d(t,{Lc:function(){return l},w0:function(){return a},Nn:function(){return u}});var n=r(87913),i=r(18639),o=(0,r(53375).d)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}),s=r(58251),a=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,s,a,l=this._parentage;if(l){if(this._parentage=null,Array.isArray(l))try{for(var u=(0,n.XA)(l),h=u.next();!h.done;h=u.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this)}var f=this.initialTeardown;
1if((0,i.m)(f))try{f()}catch(e){a=e instanceof o?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=(0,n.XA)(d),y=p.next();!y.done;y=p.next()){var m=y.value;try{c(m)}catch(e){a=null!=a?a:[],e instanceof o?a=(0,n.ev)((0,n.ev)([],(0,n.CR)(a)),(0,n.CR)(e.errors)):a.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}}if(a)throw new o(a)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.P)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,s.P)(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),l=a.EMPTY;function u(e){return e instanceof a||e&&"closed"in e&&(0,i.m)(e.remove)&&(0,i.m)(e.add)&&(0,i.m)(e.unsubscribe)}function c(e){(0,i.m)(e)?e():e.unsubscribe()}},85949:function(e,t,r){r.d(t,{v:function(){return n}});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},43106:function(e,t,r){r.d(t,{E:function(){return n}});var n=new(r(60814)).y(function(e){return e.complete()})},98742:function(e,t,r){r.d(t,{Xf:function(){return y}});var n=r(87913),i=r(17351),o=r(51179),s=r(60814),a=r(68505),l=r(48537),u=r(19110),c=r(4219),h=r(38496),f=r(18639),d=r(41690),p=r(79671);function y(e){if(e instanceof s.y)return e;if(null!=e){if((0,a.c)(e))return new s.y(function(t){var r=e[p.L]();if((0,f.m)(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if((0,i.z)(e))return new s.y(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if((0,o.t)(e))return new s.y(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,d.h)});if((0,l.D)(e))return m(e);if((0,c.T)(e))return new s.y(function(t){var r,i;try{for(var o=(0,n.XA)(e),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}t.complete()});if((0,h.L)(e))return m((0,h.Q)(e))}throw(0,u.z)(e)}function m(e){return new s.y(function(t){(function(e,t){var r,i,o,s;return(0,n.mG)(this,void 0,void 0,function(){var a;return(0,n.Jh)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=(0,n.KL)(e),l.label=1;case 1:return[4,r.next()];case 2:if((i=l.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},2026:function(e,t,r){r.d(t,{x:function(){return i}});var n=r(87913);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,n.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(r(45692).Lv)},82179:function(e,t,r){r.d(t,{U:function(){return o}});var n=r(40937),i=r(2026);function o(e,t){return(0,n.e)(function(r,n){var o=0;r.subscribe((0,i.x)(n,function(r){n.next(e.call(t,r,o++))}))})}},8538:function(e,t,r){r.d(t,{B:function(){return l}});var n=r(87913),i=r(98742),o=r(76129),s=r(45692),a=r(40937);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.x}:t,n=e.resetOnError,l=void 0===n||n,c=e.resetOnComplete,h=void 0===c||c,f=e.resetOnRefCountZero,d=void 0===f||f;return function(e){var t,n,o,c=0,f=!1,p=!1,y=function(){null==n||n.unsubscribe(),n=void 0},m=function(){y(),t=o=void 0,f=p=!1},v=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,a.e)(function(e,a){c++,p||f||y();var b=o=null!=o?o:r();a.add(function(){0!=--c||p||f||(n=u(v,d))}),b.subscribe(a),!t&&c>0&&(t=new s.Hp({next:function(e){return b.next(e)},error:function(e){p=!0,y(),n=u(m,l,e),b.error(e)},complete:function(){f=!0,y(),n=u(m,h),b.complete()}}),(0,i.Xf)(e).subscribe(t))})(e)}}function u(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0===t){e();return}if(!1!==t){var a=new s.Hp({next:function(){a.unsubscribe(),e()}});return(0,i.Xf)(t.apply(void 0,(0,n.ev)([],(0,n.CR)(r)))).subscribe(a)}}},28851:function(e,t,r){r.d(t,{d:function(){return o}});var n=r(50298),i=r(8538);function o(e,t,r){var o,s,a,l,u=!1;return e&&"object"==typeof e?(l=void 0===(o=e.bufferSize)?1/0:o,t=void 0===(s=e.windowTime)?1/0:s,u=void 0!==(a=e.refCount)&&a,r=e.scheduler):l=null!=e?e:1/0,(0,i.B)({connector:function(){return new n.t(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},85592:function(e,t,r){r.d(t,{b:function(){return a}});var n=r(18639),i=r(40937),o=r(2026),s=r(81549);function a(e,t,r){var a=(0,n.m)(e)||t||r?{next:e,error:t,complete:r}:e;return a?(0,i.e)(function(e,t){null===(r=a.subscribe)||void 0===r||r.call(a);var r,n=!0;e.subscribe((0,o.x)(t,function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)},function(){var e;n=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()},function(e){var r;n=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)},function(){var e,t;n&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)}))}):s.y}},23988:function(e,t,r){r.d(t,{l:function(){return n}});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},67650:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(87913),i={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.ev)([e,t],(0,n.CR)(r))):setTimeout.apply(void 0,(0,n.ev)([e,t],(0,n.CR)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},23852:function(e,t,r){r.d(t,{h:function(){return n}});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},79671:function(e,t,r){r.d(t,{L:function(){return n}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},58251:function(e,t,r){r.d(t,{P:function(){return n}});function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},53375:function(e,t,r){r.d(t,{d:function(){return n}});function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},34629:function(e,t,r){r.d(t,{O:function(){return s},x:function(){return o}});var n=r(85949),i=null;function o(e){if(n.v.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else e()}function s(e){n.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},81549:function(e,t,r){r.d(t,{y:function(){return n}});function n(e){return e}},17351:function(e,t,r){r.d(t,{z:function(){return n}});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},48537:function(e,t,r){r.d(t,{D:function(){return i}});var n=r(18639);function i(e){return Symbol.asyncIterator&&(0,n.m)(null==e?void 0:e[Symbol.asyncIterator])}},18639:function(e,t,r){r.d(t,{m:function(){return n}});function n(e){return"function"==typeof e}},68505:function(e,t,r){r.d(t,{c:function(){return o}});var n=r(79671),i=r(18639);function o(e){return(0,i.m)(e[n.L])}},4219:function(e,t,r){r.d(t,{T:function(){return o}});var n=r(23852),i=r(18639);function o(e){return(0,i.m)(null==e?void 0:e[n.h])}},51179:function(e,t,r){r.d(t,{t:function(){return i}});var n=r(18639);function i(e){return(0,n.m)(null==e?void 0:e.then)}},38496:function(e,t,r){r.d(t,{L:function(){return s},Q:function(){return o}});var n=r(87913),i=r(18639);function o(e){return(0,n.FC)(this,arguments,function(){var t,r,i;return(0,n.Jh)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.qq)(t.read())];case 3:if(i=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.qq)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.qq)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function s(e){return(0,i.m)(null==e?void 0:e.getReader)}},72035:function(e,t,r){r.d(t,{K:function(){return i}});var n=r(18639);function i(e){return e&&(0,n.m)(e.schedule)}},40937:function(e,t,r){r.d(t,{e:function(){return i}});var n=r(18639);function i(e){return function(t){if((0,n.m)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},41690:function(e,t,r){r.d(t,{h:function(){return o}});var n=r(85949),i=r(67650);function o(e){i.z.setTimeout(function(){var t=n.v.onUnhandledError;if(t)t(e);else throw e})}},19110:function(e,t,r){r.d(t,{z:function(){return n}});function n(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
1d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},67387:function(e,t,r){r.d(t,{h:function(){return tc}});var n=r(68529),i=r(43904),o=r(15336),s=r(28155),a=r(16214);let l={kind:s.h.FIELD,name:{kind:s.h.NAME,value:"__typename"}},u=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===s.h.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===s.h.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===s.h.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,l]}}}})},{added:e=>e===l});var c=r(8120),h=r(33026),f=r(21126);function d(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}var p=r(14174),y=r(95934),m=r(22443),v=r(12680),b=r(22588),g=r(82179),w=r(85592),k=r(28851),S=r(60814),O=r(81549),E=r(40937),T=r(2026);function x(e,t){return e===t}var _=r(8538),I=r(50298),C=r(87913),N=function(e){function t(t,r){return e.call(this)||this}return(0,C.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(52864).w0),D={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=D.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,C.ev)([e,t],(0,C.CR)(r))):setInterval.apply(void 0,(0,C.ev)([e,t],(0,C.CR)(r)))},clearInterval:function(e){var t=D.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},F=r(58251),A=function(e){function t(t,r){var n=e.call(this,t,r)||this;
1return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,C.ZT)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),D.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&D.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(N),j=r(23988),R=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=j.l.now,e}(),P=new(function(e){function t(t,r){void 0===r&&(r=R.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,C.ZT)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active){r.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(R))(A),M=(r(72035),r(98999)),q=r(50927),V=r(43106),Q=r(9535);function z(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,m._K)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,m.kG)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class L{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t;let r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new b.B(!0);watchFragment(e){let t;let{fragment:r,fragmentName:i,from:o}=e,s=this.getFragmentDoc(r,i),a=(Array.isArray(o)?o:[o]).map(e=>{let t=null==e?e:this.toCacheId(e);if(p.T){let e=i||(0,M.p)(r).name.value;void 0===t&&p.T&&m.kG.warn(113,e)}return t});if(!Array.isArray(o)){let t=this.watchSingleFragment(a[0],s,e);return null===o?t:(0,q.V)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function l(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,n.D)(t,r)||(t=r),t}if(0===a.length)return W;let u=!1,c=a.map(t=>this.watchSingleFragment(t,s,e));return Object.assign((0===c.length?V.E:new S.y(e=>{let t;let{length:r}=c,n=Array(r),i=new Map;c.forEach((e,t)=>{i.has(e)||i.set(e,new Set),i.get(e).add(t)});let o=i.size,s=i.size;i.forEach((r,i)=>{let a=!1,l=i.subscribe({next:o=>{r.forEach(e=>n[e]=o),!a&&(a=!0,s--),s||((t||=new Set(c.filter(e=>e.dirty))).delete(i),t.size||(e.next(n.slice()),t=void 0))},complete:()=>{--o||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,g.U)(l),(0,w.b)({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),(0,k.d)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>u&&t?t:l(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return B;let{optimistic:n=!0,variables:i}=r,o=[t,(0,h.B)({id:e,optimistic:n,variables:i})],s=this.fragmentWatches.lookupArray(o);if(!s.observable){var a,l;
1let c,h=!1;function u(e){let n=e.result;return c&&(0,Q.W)(t,{data:c.data},{data:n},r.variables)||(c={data:n,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}let f=new S.y(r=>{h=!0;let s=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:n,immediate:!0,callback:e=>{f.dirty=!0,this.onAfterBroadcast(()=>{r.next(u(e)),f.dirty=!1})}});return()=>{h=!1,s(),this.fragmentWatches.removeArray(o)}}).pipe((void 0===l&&(l=O.y),a=null!=a?a:x,(0,E.e)(function(e,t){var r,n=!0;e.subscribe((0,T.x)(t,function(e){var i=l(e);(n||!a(r,i))&&(n=!1,r=i,t.next(e))}))})),(0,_.B)({connector:()=>new I.t(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=P),new S.y(function(t){var r=0,n=0;return e.schedule(function(){t.closed||(t.next(n++),t.complete())},r)})}}));s.observable=Object.assign(f,{dirty:!1,getCurrentResult:()=>h&&c?c:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:n,variables:i}))})}return s.observable}getFragmentDoc=(0,i.re)(z,{max:c.Q["cache.fragmentQueryDocuments"]||1e3,cache:v.k,makeCacheKey:function(...e){return i.Px.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...n}){let i=void 0!==n.from?this.toCacheId(n.from):n.id;return this.write(Object.assign(n,{query:this.getFragmentDoc(t,r),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}p.T&&(L.prototype.getMemoryInternals=y.Kb);let G=Object.freeze({data:null,dataState:"complete",complete:!0}),B=Object.assign(new S.y(e=>{e.next(G)}),{dirty:!1,getCurrentResult:()=>G}),U=Object.freeze({data:[],dataState:"complete",complete:!0}),W=Object.assign(new S.y(e=>{e.next(U)}),{getCurrentResult:()=>U});var $=r(11210);let{hasOwnProperty:K}=Object.prototype,J=function(e,t,r){return this.merge(e[r],t[r])},Y=e=>isNaN(+e)?{}:[];class H{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||J}merge(e,t,r={}){let n=r.atPath;if(n?.length){let[i,...o]=n;void 0===e&&(e=Y(i));let s=e[i];void 0===s&&o.length&&(s=Y(o[0]));let a=this.merge(s,t,{...r,atPath:o});return s!==a&&((e=this.shallowCopyForMerge(e))[i]=a),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,$.s)(t)&&(0,$.s)(e))?(Object.keys(t).forEach(r=>{if(K.call(e,r)){let n=e[r];if(t[r]!==n){let i=this.reconciler(e,t,r);i!==n&&((e=this.shallowCopyForMerge(e))[r]=i)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=$.s;pastCopies=new Set;shallowCopyForMerge(e){return(0,$.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function X(e){return{__ref:String(e)}}var Z=r(47464),ee=r(55055),et=r(2592),er=r(90796),en=r(55835),ei=r(84993),eo=r(76019),es=r(38506);let{hasOwnProperty:ea}=Object.prototype;function el({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let eu={dataIdFromObject:el,resultCaching:!0},ec=/^[_a-z][_0-9a-z]*/i;function eh(e){let t=e.match(ec);return t?t[0]:e}function ef(e){return(0,$.s)(e)&&!d(e)&&!(0,et.k)(e)}function ed(e,t){let r=(0,eo.F)((0,es.k)(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}let ep={},ey=()=>ep,em={};class ev{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),ea.call(this.data,e)){let r=this.data[e];if(r&&ea.call(r,t))return r[t]}return"__typename"===t&&ea.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ek?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),ea.call(this.data,e))?this.data[e]:this instanceof ek?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;d(e)&&(e=e.__ref),d(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,m.kG)("string"==typeof r,99);let o=new H({reconciler:eO}).merge(n,i);if(this.data[r]=o,o!==n&&(delete this.refs[r],this.group.caching)){let e={};
1n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==o[t]){e[t]=1;let r=eh(t);r===t||this.policies.hasKeyArgs(o.__typename,r)||(e[r]=1),void 0!==o[t]||this instanceof ek||delete o[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},o=!1,s=!0,a={DELETE:ep,INVALIDATE:em,isReference:d,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||X(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let u=eh(l),c=n[l];if(void 0===c)return;let h="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(h){let t=h===ey?ep:h((0,Z.J)(c),{...a,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===em)this.group.dirty(e,l);else if(t===ep&&(t=void 0),t!==c&&(i[l]=t,o=!0,c=t,p.T)){let e=e=>{if(void 0===this.lookup(e.__ref))return p.T&&m.kG.warn(100,e),!0};if(d(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(d(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){p.T&&m.kG.warn(101,r);break}}}}}void 0!==c&&(s=!1)}),o)return this.merge(e,i),s&&(this instanceof ek?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,o?{[o]:ey}:ey,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(ea.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ek&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{ea.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&ea.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof ek?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{ea.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof ek;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!ea.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{d(e)&&(t[e.__ref]=!0),(0,$.s)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,$.s)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,Z.J)(d(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>d(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return X(e);if(d(e))return e;let[r]=this.policies.identify(e);if(r){let n=X(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class eb{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,i.dP)():null,this.keyMaker=new b.B}depend(e,t){if(this.d){this.d(t+"#"+e);let r=eh(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function eg(e,t){eE(e)&&e.group.depend(t,"__exists")}class ew extends ev{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new eb(t)),r&&this.replace(r)}stump=new eS(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new b.B;getStorage(){return this.storageTrie.lookupArray(arguments)}}ev.Root=ew;class ek extends ev{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new ek(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEac
1h(e=>{let r=this.data[e],i=t.lookup(e);i?r?r!==i&&Object.keys(r).forEach(t=>{(0,n.D)(r[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return ea.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class eS extends ek{constructor(e){super("EntityStore.Stump",e,()=>{},new eb(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function eO(e,t,r){let i=e[r],o=t[r];return(0,n.D)(i,o)?i:o}function eE(e){return!!(e&&e.supportsResultCaching)}var eT=r(82601),ex=r(86301),e_=r(39216);function eI(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>(0,e_.v)(r,e,n,t)),r}return null}let eC=["connection","include","skip","client","rest","export","nonreactive","stream"],eN=h.B,eD=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=eN(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=eN(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===eC.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${eN(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=eN;return eN=e,t}});var eF=r(22817),eA=r(39242);let ej={};function eR(e){let t=JSON.stringify(e);return ej[t]||(ej[t]={})}function eP(e){let t=eR(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=eq(e,e=>{let i=eQ(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&ea.call(t,e[0])&&(i=eQ(t,e,eV)),(0,m.kG)(void 0!==i,102,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function eM(e){let t=eR(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let o=JSON.stringify(eq(e,e=>{let i=e[0],o=i.charAt(0);if("@"===o){if(r&&(0,eA.O)(r.directives)){let t=i.slice(1),o=r.directives.find(e=>e.name.value===t),s=o&&eI(o,n);return s&&eQ(s,e.slice(1))}return}if("$"===o){let t=i.slice(1);if(n&&ea.call(n,t)){let r=e.slice(0);return r[0]=t,eQ(n,r)}return}if(t)return eQ(t,e)}));return(t||"{}"!==o)&&(i+=":"+o),i})}function eq(e,t){let r=new H;return(function e(t){let r=eR(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,o)=>{(0,et.k)(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),(0,et.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function eV(e,t){return e[t]}function eQ(e,t,r){return r=r||eV,function e(t){return(0,$.s)(t)?(0,et.k)(t)?t.map(e):eq(Object.keys(t).sort(),e=>eQ(t,e)):t}(t.reduce(function e(t,n){return(0,et.k)(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let ez=new i.g7,eL=new WeakMap;function eG(e){let t=eL.get(e);return t||eL.set(e,t={vars:new Set,dep:(0,i.dP)()}),t}function eB(e){eG(e).vars.forEach(t=>t.forgetCache(e))}function eU(e){let t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(e=>{eG(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=ez.getValue();e&&(i(e),eG(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),eG(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function eW(e){return void 0!==e.args?e.args:e.field?eI(e.field,e.variables):null}let e$=()=>void 0,eK=(e,t)=>t.fieldName,eJ=(e,t,{mergeObjects:r})=>r(e,t),eY=(e,t)=>t,eH=(e,t,{streamFieldInfo:r,existingData:n})=>{if(!e&&!n)return t;let i=[],o=e??n,s=r?.isLastChunk?t.length:Math.max(o.length,t.length);for(let e=0;e<s;e++)i[e]=void 0===t[e]?o[e]:t[e];return i};class eX{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:el,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r;let n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let o=t&&t.storeObject||e,s={...t,typename:i,storeObject:o,readField:t&&t.readField||((...e)=>{let t=e0(e,o);return n.readField(t,{store:n.cache.data,variables:t.variables})})},a=i&&this.getTypePolicy(i),l=a&&a.keyFn||this.config.dataIdFromObject;return eT.O.withValue(!0,()=>{for(;l;){let t=l({...e,...o},s);if((0,et.k)(t))l=eP(t);else{r=t;break}}}),r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...o}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),ea.call(this.toBeAdded,t)?this.toBeAdded[t].push(o):this.toBeAdded[t]=[o]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:o}=t;function s(e,t){e.merge="function"==typeof t?t:!0===t?eJ:!1===t?eY:e.merge}s(n,t.merge),n.keyFn=!1===i?e$:(0,et.k)(i)?eP(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=o[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?eK:(0,et.k)(e)?eM(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),s(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||eK)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,m.kG)(!n||n===e,103,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(ec);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!ea.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let o=this.getSupertypeSet(t,!0),s=[o],a=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<s.length;++c){let h=s[c];if(h.has(i))return o.has(i)||(u&&p.T&&m.kG.warn(104,t,i),o.add(i)),!0;h.forEach(a),l&&c===s.length-1&&function e(t,r,n){return!!(0,$.s)(r)&&((0,et.k)(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if((0,er.M)(t)&&(0,en.L)(t,n)){let i=(0,ei.u)(t);return ea.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&a(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){let t;let{typename:r,fieldName:n}=e,i=this.getFieldPolicy(r,n),o=i&&i.keyFn;if(o&&r){let i={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=eW(e);for(;o;){let e=o(s,i);if((0,et.k)(e))o=eM(e);else{t=e||n;break}}}if(void 0===t){var s,a;let r,i;t=e.field?(s=e.field,a=e.variables,r=null,s.directives&&(r={},s.directives.forEach(e=>{r[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>(0,e_.v)(r[e.name.value],t,n,a))})),i=null,s.arguments&&s.arguments.length&&(i={},s.arguments.forEach(({name:e,value:t})=>(0,e_.v)(i,e,t,a))),eD(s.name.value,i,r)):eD(n,eW(e))}return!1===t?n:n===eh(t)?t:n+":"+t}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=eh(n),o=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,i),a=s&&s.read;if(a){let i=eZ(this,r,e,t,t.store.getStorage(d(r)?r.__ref:r,n));return ez.withValue(this.cache,a,[o,i])}return o}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:i,merge:o,path:s},a,l){let u=e;if(o===eJ)return e1(a.store)(e,t);if(o===eY)return t;a.overwrite&&(e=void 0);let c=a.extensions?.[ex.AN]?.deref()?.peekArray(s);if(c){let{current:e,previous:r}=c;if(r&&(0,n.D)(r.incoming,t)&&(0,n.D)(r.streamFieldInfo,e))return r.result}let h=o(e,t,function(e,t,r,n,i,o){let s={...eZ(e,t,r,n,i),extensions:n.extensions,existingData:o},a=n.extensions;if(a&&ex.AN in a){let{[ex.AN]:e,...t}=a,n=e?.deref()?.peekArray(r.path);n&&(s.streamFieldInfo=n.current),s.extensions=0===Object.keys(t).length?void 0:t}return s}(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:a.variables,path:s},a,l||{},u));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:h}),h}}function eZ(e,t,r,n,i){let o=e.getStoreFieldName(r),s=eh(o),a=r.variables||n.variables,{toReference:l,canRead:u}=n.store;return{args:eW(r),field:r.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:d,toReference:l,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(e0(r,t,a),n),mergeObjects:e1(n.store)}}function e0(e,t,r){let n;let{0:i,1:o,length:s}=e;return"string"==typeof i?n={fieldName:i,from:s>1?o:t}:(n={...i},ea.call(n,"from")||(n.from=t)),p.T&&void 0===n.from&&p.T&&m.kG.warn(105,(0,eF.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function e1(e){return function(t,r){if((0,et.k)(t)||(0,et.k)(r))throw(0,m._K)(106);
1if((0,$.s)(t)&&(0,$.s)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(d(t)&&ef(r))return e.merge(t.__ref,r),t;if(ef(t)&&d(r))return e.merge(t,r.__ref),r;if(ef(t)&&ef(r))return{...t,...r}}return r}}var e2=r(54868),e8=r(35392),e9=r(31894),e4=r(54789);class e3 extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e3.prototype}missing}function e5(e){return[e.selectionSet,e.objectOrReference,e.context]}class e6{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,i.re)(e=>{let t=e5(e);return this.executeSelectionSet.peek(...t)||(eg(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:c.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:e5,makeCacheKey(e,t,r){if(eE(r.store))return r.store.makeCacheKey(e,d(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,i.re)(e=>(eg(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:c.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(eE(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let o;let s=this.config.cache.policies;n={...(0,e2.O)((0,e8.i)(t)),...n};let a=X(r),l=this.executeSelectionSet({selectionSet:(0,e9.p)(t).selectionSet,objectOrReference:a,enclosingRef:a,context:{store:e,query:t,policies:s,variables:n,varString:(0,h.B)(n),...ed(t,this.config.fragments)}});l.missing&&(o=new e3(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let u=!o,{result:c}=l;return{result:u?c:i?0===Object.keys(c).length?null:c:null,complete:u,missing:o}}isFresh(e,t,r,n){if(eE(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(d(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:o,policies:a,store:l}=n,c=l.getFieldValue(t,"__typename"),h=[],f=new H;function p(e,t){return e.missing&&(i=f.merge(i,{[t]:e.missing})),e.result}"string"!=typeof c||a.rootIdsByTypename[c]||h.push({__typename:c});let y=new Set(e.selections);y.forEach(e=>{if((0,en.L)(e,o)){if((0,er.M)(e)){let o=a.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),s=(0,ei.u)(e);void 0===o?u.added(e)||(i=f.merge(i,{[s]:`Can't find field '${e.name.value}' on ${d(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,et.k)(o)?o.length>0&&(o=p(this.executeSubSelectedArray({field:e,array:o,enclosingRef:r,context:n}),s)):e.selectionSet&&null!=o&&(o=p(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:o,enclosingRef:d(o)?o:r,context:n}),s)),void 0!==o&&h.push({[s]:o})}else{let t=(0,e4.h)(e,n.lookupFragment);if(!t&&e.kind===s.h.FRAGMENT_SPREAD)throw(0,m._K)(107,e.name.value);t&&a.fragmentMatches(t,c)&&t.selectionSet.selections.forEach(y.add,y)}}});let v={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new H;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(h),missing:i},b=(0,Z.J)(v);return b.result&&this.knownResults.set(b.result,e),b}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i;let o=new H;function s(e,t){return e.missing&&(i=o.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||n.store.canRead(e))),{result:t=t.map((t,i)=>null===t?null:(0,et.k)(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:d(t)?t:r,context:n}),i):(p.T&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);
1n.forEach(r=>{(0,$.s)(r)&&((0,m.kG)(!d(r),108,d(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}var e7=r(6823),te=r(62982);let{toString:tt}=Object.prototype;function tr(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class tn{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:i,variables:o,overwrite:s,extensions:a}){let l=(0,e7.$)(t),u=new H,c={store:e,written:{},merge:(e,t)=>u.merge(e,t),variables:o={...(0,e2.O)(l),...o},varString:(0,h.B)(o),...ed(t,this.fragments),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a},f=this.processSelectionSet({result:r||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:c,path:[]});if(!d(f))throw(0,m._K)(109,r);return c.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:i},o)=>{let s=X(o);if(r&&r.map.size){let e=this.applyMerges(r,s,t,c);if(d(e))return;t=e}if(p.T&&!c.overwrite){let e={};i.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)});let o=t=>!0===e[eh(t)],a=e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(t).forEach(e=>{o(e)&&!a(e)&&function(e,t,r,i){let o=e=>{let t=i.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(!s)return;let a=o(t);if(!a||d(s)||(0,n.D)(s,a)||Object.keys(s).every(e=>void 0!==i.getFieldValue(a,e)))return;let l=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),u=eh(r),c=`${l}.${u}`;if(tl.has(c))return;tl.add(c);let h=[];(0,et.k)(s)||(0,et.k)(a)||[s,a].forEach(e=>{let t=i.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),p.T&&m.kG.warn(112,u,l,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",c,Array.isArray(s)?[...s]:{...s},Array.isArray(a)?[...a]:{...a})}(s,t,e,c.store)})}e.merge(o,t)}),e.retain(f.__ref),f}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i,path:o}){let{policies:s}=this.cache,a={},l=e&&s.rootTypenamesById[e]||tu(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof l&&(a.__typename=l);let c=(...e)=>{let t=e0(e,a,n.variables);if(d(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=s.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return s.readField(t,n)},h=new Set;this.flattenFields(r,t,n,l).forEach((e,r)=>{let n=t[(0,ei.u)(r)],f=[...o,r.name.value];if(h.add(r),void 0!==n){let t;let o=s.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),u=to(i,o),h=this.processFieldValue(n,r,r.selectionSet?tr(e,!1,!1):e,u,f);r.selectionSet&&(d(h)||ef(h))&&(t=c("__typename",h));let p=s.getMergeFunction(l,r.name.value,t);p?u.info={field:r,typename:l,merge:p,path:f}:(0,te.F)(["stream"],r)&&Array.isArray(h)&&e.extensions?.[ex.AN]?u.info={field:r,typename:l,merge:eH,path:f}:ta(i,o),a=e.merge(a,{[o]:h})}else!p.T||e.clientOnly||e.deferred||u.added(r)||s.getReadFunction(l,r.name.value)||m.kG.error(110,(0,ei.u)(r),t)});try{let[i,o]=s.identify(t,{typename:l,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:a,readField:c});e=e||i,o&&(a=n.merge(a,o))}catch(t){if(!e)throw t}if("string"==typeof e){let o=X(e),s=n.written[e]||(n.written[e]=[]);if(s.indexOf(r)>=0||(s.push(r),this.reader&&this.reader.isFresh(t,o,r,n)))return o;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,a),l.mergeTree=function e(t,r){if(t===r||!r||ts(r))return t;if(!t||ts(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{o.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(l.mergeTree,i),h.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:a,mergeTree:ts(i)?void 0:i,fieldNodeSet:h}),o}return a}processFieldValue(e,t,r,n,i){return t.selectionSet&&null!==e?(0,et.k)(e)?e.map((e,o)=>{let s=this.processFieldValue(e,t,r,to(n,o),[...i,o]);return ta(n,o),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n,path:i}):p.T?function e(t,r){switch(tt.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);
1return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=tu(t,e,r.fragmentMap)){let i=new Map,{policies:o}=this.cache,a=new b.B(!1);return!function e(l,u){let c=a.lookup(l,u.clientOnly,u.deferred);c.visited||(c.visited=!0,l.selections.forEach(a=>{if(!(0,en.L)(a,r.variables))return;let{clientOnly:l,deferred:c}=u;if(!(l&&c)&&(0,eA.O)(a.directives)&&a.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(l=!0),"defer"===t){let t=eI(e,r.variables);t&&!1===t.if||(c=!0)}}),(0,er.M)(a)){let e=i.get(a);e&&(l=l&&e.clientOnly,c=c&&e.deferred),i.set(a,tr(r,l,c))}else{let i=(0,e4.h)(a,r.lookupFragment);if(!i&&a.kind===s.h.FRAGMENT_SPREAD)throw(0,m._K)(111,a.name.value);i&&o.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,tr(r,l,c))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!d(r)){let o;let s=!(0,et.k)(r)&&(d(t)||ef(t))?t:void 0,a=r;s&&!i&&(i=[d(s)?s.__ref:s]);let l=(e,t)=>(0,et.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(s,t),u=l(a,t);if(void 0===u)return;i&&i.push(t);let c=this.applyMerges(e,r,u,n,i);c!==u&&(o=o||new Map).set(t,c),i&&(0,m.kG)(i.pop()===t)}),o&&(r=(0,et.k)(a)?a.slice(0):{...a},o.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let ti=[];function to({map:e},t){return e.has(t)||e.set(t,ti.pop()||{map:new Map}),e.get(t)}function ts(e){return!e||!(e.info||e.map.size)}function ta({map:e},t){let r=e.get(t);r&&ts(r)&&(ti.push(r),e.delete(t))}let tl=new Set;function tu(e,t,r){let n;for(let r of t.selections)if((0,er.M)(r)){if("__typename"===r.name.value)return e[(0,ei.u)(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=tu(e,(0,e4.h)(t,r).selectionSet,r);if("string"==typeof n)return n}}class tc extends L{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new o.A(u);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=eU;constructor(e={}){super(),this.config=(0,ee.o)(eu,e),this.policies=new eX({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new ev.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new tn(this,this.storeReader=new e6({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,i.re)((e,t)=>this.broadcastWatch(e,t),{max:c.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(eE(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,(0,h.B)({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(ea.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){return this.watches.size||function(e){eG(e).vars.forEach(t=>t.attachCache(e))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&eB(this),this.maybeBroadcastWatch.forget(e)}}gc(e){h.B.reset(),f.S.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(d(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){p.T&&m.kG.warn(e)}}evict(e){if(!e.id){if(ea.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),h.B.reset(),e&&e.discardWatches?(this.watches.forEac
1h(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),eB(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t;let{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:o}=e,s=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},a=new Set;return o&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(a.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,s):!1===n?s(this.data):s(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&a.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=o.call(this,e,t);return!1!==r&&a.delete(e),r}}),a.size&&a.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,r)))&&(r&&(0,n.D)(r.result,i.result)||e.callback(e.lastDiff=i,r))}}p.T&&(tc.prototype.getMemoryInternals=y.q4)},68476:function(e,t,r){r.d(t,{f:function(){return e1}});var n,i,o,s,a=r(40392),l=r(82179),u=r(62982),c=r(22443);class h{isIncrementalResult(e){return!1}prepareRequest(e){return(0,c.kG)(!(0,u.F)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}let f=r(24020).i.execute;var d=r(15336),p=r(14174),y=r(55055);function m(e,t){return(0,y.o)(e,t,t.variables&&{variables:(0,y.o)({...e&&e.variables,...t.variables})})}var v=r(8677),b=r(50927),g=r(16214);function w(e){return(0,g.Vn)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var k=r(95934),S=r(20932),O=r(22588),E=r(28155),T=r(60814),x=r(18639);function _(e,t){var r=(0,x.m)(e)?e:function(){return e},n=function(e){return e.error(r())};return new T.y(t?function(e){return t.schedule(n,0,e)}:n)}var I=r(98742),C=r(40937);function N(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}var D=r(2026);function F(e,t,r){return(void 0===r&&(r=1/0),(0,x.m)(t))?F(function(r,n){return(0,l.U)(function(e,i){return t(r,e,n,i)})((0,I.Xf)(e(r,n)))},r):("number"==typeof t&&(r=t),(0,C.e)(function(t,n){var i,o,s,a,l,u,c,h,f;return i=r,s=[],a=0,l=0,u=!1,c=function(){!u||s.length||a||n.complete()},h=function(e){return a<i?f(e):s.push(e)},f=function(t){a++;var r=!1;(0,I.Xf)(e(t,l++)).subscribe((0,D.x)(n,function(e){o?h(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();f(e)}();c()}catch(e){n.error(e)}}))},t.subscribe((0,D.x)(n,h,function(){u=!0,c()})),function(){}}))}function A(e,t){return void 0===t&&(t=0),(0,C.e)(function(r,n){r.subscribe((0,D.x)(n,function(r){return N(n,e,function(){return n.next(r)},t)},function(){return N(n,e,function(){return n.complete()},t)},function(r){return N(n,e,function(){return n.error(r)},t)}))})}function j(e,t){return void 0===t&&(t=0),(0,C.e)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}var R=r(23852);function P(e,t){if(!e)throw Error("Iterable cannot be null");return new T.y(function(r){N(r,t,function(){var n=e[Symbol.asyncIterator]();N(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var M=r(68505),q=r(51179),V=r(17351),Q=r(4219),z=r(48537),L=r(19110),G=r(38496);function B(e,t){return t?function(e,t){if(null!=e){if((0,M.c)(e))return(0,I.Xf)(e).pipe(j(t),A(t));if((0,V.z)(e))return new T.y(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[
1n++]),r.closed||this.schedule())})});if((0,q.t)(e))return(0,I.Xf)(e).pipe(j(t),A(t));if((0,z.D)(e))return P(e,t);if((0,Q.T)(e))return new T.y(function(r){var n;return N(r,t,function(){n=e[R.h](),N(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,x.m)(null==n?void 0:n.return)&&n.return()}});if((0,G.L)(e))return P((0,G.Q)(e),t)}throw(0,L.z)(e)}(e,t):(0,I.Xf)(e)}var U=(0,r(53375).d)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}),W=r(72035);function $(e){return(0,W.K)(e[e.length-1])?e.pop():void 0}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$(e);return B(e,r)}function J(e){return(0,C.e)(function(t,r){var n,i=null,o=!1;i=t.subscribe((0,D.x)(r,void 0,void 0,function(s){n=(0,I.Xf)(e(s,J(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}function Y(e,t){return(0,C.e)(function(r,n){var i=0;r.subscribe((0,D.x)(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}var H=r(8538),X=r(28851),Z=r(76129),ee=r(43106);(n=o||(o={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var et=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,o=e.kind,s=e.value,a=e.error;if("string"!=typeof o)throw TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,s):"E"===o?null===(n=t.error)||void 0===n||n.call(t,a):null===(i=t.complete)||void 0===i||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,o=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,x.m)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?K(t):"E"===e?_(function(){return r}):"C"===e?ee.E:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}(),er=r(81549);function en(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(void 0===(e=1)&&(e=1/0),F(er.y,e))(B(t,$(t)))}var ei=r(85592),eo=r(33026),es=r(41643),ea=r(99420);let el=new WeakSet;var eu=r(6823),ec=r(76019),eh=r(38506),ef=r(47464),ed=r(84993),ep=r(82601);function ey(e,t,r){return ep.O.withValue(!0,()=>{let n=function e(t,r,n,i,o){let{knownChanged:s}=n,a=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){a[l]=null;continue}let t=e(u,r,n,i,p.T?`${o||""}[${l}]`:void 0);s.has(t)&&s.add(a),a[l]=t}return s.has(a)?a:t}for(let l of r.selections){let r;if(i&&s.add(a),l.kind===E.h.FIELD){let u=(0,ed.u)(l),h=l.selectionSet;if(void 0===(r=a[u]||t[u]))continue;if(h&&null!==r){let a=e(t[u],h,n,i,p.T?`${o||""}.${u}`:void 0);s.has(a)&&(r=a)}p.T||(a[u]=r),p.T&&(i&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(a,u)?.value?Object.defineProperty(a,u,function(e,t,r,n,i){let o=()=>(ep.O.getValue()||(p.T&&c.kG.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),o=()=>t),t);return{get:()=>o(),set(e){o=()=>e},enumerable:!0,configurable:!0}}(u,r,o||"",n.operationName,n.operationType)):(delete a[u],a[u]=r))}if(l.kind===E.h.INLINE_FRAGMENT&&(!l.typeCondition||n.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,n,i,o)),l.kind===E.h.FRAGMENT_SPREAD){let i=l.name.value,s=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,c.kG)(s,39,i);let a=(0,ep.G)(l);"mask"!==a&&(r=e(t,s.selectionSet,n,"migrate"===a,o))}s.has(r)&&s.add(a)}return"__typename"in t&&!("__typename"in a)&&(a.__typename=t.__typename),Object.keys(a).length!==Object.keys(t).length&&s.add(a),s.has(a)?a:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ef.J)(n),n})}var em=r(68529),ev=r(8120),eb=r(21126);function eg(e){return 7===e||8===e}var ew=r(86927);function ek(e){return!!e.errors?.length}function eS(e,t=()=>void 0){return r=>new T.y(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function eO(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var eE=r(59837),eT=r(98999),ex=r(2592),e_=r(39242);function eI(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}var eC=r(54868),eN=r(11210),eD=r(86301),eF=r(11637);(i=s||(s={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",i[i.streaming=9]="streaming";var eA=r(87913),ej=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eA.ZT)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()}
1,enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Z.x),eR=r(9535),eP=r(35392);function eM(e){return e.catch(()=>{}),e}let{assign:eq,hasOwnProperty:eV}=Object,eQ={loading:!0,networkStatus:s.loading,data:void 0,dataState:"empty",partial:!0},ez={loading:!1,networkStatus:s.ready,data:void 0,dataState:"empty",partial:!0};class eL{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:o="standby"===i?n:i}=t;t[eD.pQ]&&((0,c.kG)("standby"===i,80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:o,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let s=(0,eu.$)(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new ej({query:this.query,variables:this.variables,result:eQ,meta:{}});let e=this.subject.pipe((0,ei.b)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),eS(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:o}=n;if(r===eQ&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===o)return;if(1===o)return l();let{previous:s,previousVariables:a}=i;if(s){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,o=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?(0,eR.W)(o,s,r,t):(0,em.D)(s,r))&&(0,em.D)(a,t))return}if(!(3===o&&(!this.options.notifyOnNetworkStatusChange||(0,em.D)(s,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new Z.x,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?s.ready:s.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:s.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:s.loading};case"standby":return ez;default:return eQ}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!eG({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let o={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);
1if((t.hasClientExports||t.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==eQ&&n!==ez)&&((0,em.D)(n.data,e.result)||this.scheduleNotify())}},s=this.cache.watch(o);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===s.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===eQ&&(t=this.getInitialResult()),(0,em.D)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",p.T&&e&&eV.call(e,"variables")){let t=(0,eP.i)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!p.T||c.kG.warn(81,e,t.name?.value||t)}return e&&!(0,em.D)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:s.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,c.kG)("cache-only"!==this.options.fetchPolicy,82,(0,ew.r)(this.query,"(anonymous)"));let o={...(0,y.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let a=!1,l="no-cache"!==this.options.fetchPolicy;l||(0,c.kG)(i,83);let{finalize:u,pushNotification:h}=this.pushOperation(s.fetchMore);h({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:f,operator:d}=eB(),{observable:p}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:s.fetchMore,exposeExtensions:!0}),m=p.pipe(d,Y(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[eD.e4];if(eg(e.value.networkStatus)&&u(),l){let e=this.getCacheDiff();this.cache.batch({update:e=>{i?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>i(e,{fetchMoreResult:t.data,variables:o.variables})):e.writeQuery({query:o.query,variables:o.variables,data:t.data,extensions:r})},onWatchUpdated:(r,n)=>{if(r.watcher===this&&!(0,em.D)(n.result,e.result)){a=!0;let e=this.getCurrentResult();eg(t.networkStatus)||h({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===s.error?s.ready:t.networkStatus,loading:!1,data:n.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=i(e.data,{fetchMoreResult:t.data,variables:o.variables});h({kind:"N",value:{...e,networkStatus:s.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return eM(f.then(e=>eO(this.maskResult(e))).finally(()=>{if(m.unsubscribe(),u(),l&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?h({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:s.ready}}):h({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i){n?n(i):c.kG.error(84,i);return}r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,y.o)(this.options,e||{});eq(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,em.D)(this.variables,e))?eO(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:s.setVariables}):eO(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let o=!1,{observable:a,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{o=!0},fetchQueryOperator:e=>new T.y(r=>{try{return e.subscribe({next(e){o=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{o||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:i}}))}}),observableQuery:this}),{query:u,variables:c}=this,h={abort:()=>{d.unsubscribe()},query:u,variables:c};this.activeOperations.add(h);let f=t==s.refetch||t==s.setVariables,d=(a=a.pipe(n,(0,H.B)())).pipe((0,ei.b)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};f&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(f=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:d,observable:a}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,n=()=>{let{options:e}=this;
1return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(n()){p.T&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(p.T&&c.kG.warn(85,(0,ew.r)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let i=()=>{if(n())return this.cancelPolling();this.pollingInfo&&(!eg(this.networkStatus)||this.options.skipPollAttempt?.()?o():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:s.poll}).then(o,o))},o=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};o()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let n=r===s.refetch||r===s.poll,i=this.variables,o=this.options.fetchPolicy,a=(0,y.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;let l=n?a:eq(this.options,a),u=this.transformDocument(l.query);this.lastQuery=u,e&&"variables"in e&&(l.variables=this.getVariablesWithDefaults(e.variables)),!n&&(this.updatePolling(),e&&e.variables&&!(0,em.D)(e.variables,i)&&"standby"!==l.fetchPolicy&&(l.fetchPolicy===o||"function"==typeof l.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",l),void 0===r&&(r=s.setVariables)));let c=this.networkStatus;r||(r=s.loading,c!==s.loading&&e?.variables&&!(0,em.D)(e.variables,i)&&(r=s.setVariables),"standby"!==l.fetchPolicy||(r=s.ready)),"standby"===l.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:h,operator:f}=eB("standby"===l.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:p,fromLink:m}=this.fetch(l,r,u,f);n||!m&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let v=Object.assign(eM(h.then(e=>eO(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=p.subscribe({}),t=()=>e.unsubscribe();return h.then(t,t),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,em.D)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:s.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(o),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===s.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>eG(e,this)&&void 0!==e.override);return t?.override??e}
1abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?ez:eQ,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=eS(e=>{let t;let{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!eG(e,this))return;let o=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===s.ready&&t.partial&&(!this.options.returnPartialData||o.result.networkStatus===s.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...eG(o,e)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:s.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=eG(o,e)?o.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,a=n?void 0:r.error,l=a?s.error:s.ready;t={...r,error:a,networkStatus:l}}return(0,c.kG)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!eg(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function eG(e,t){return!!(e&&t&&e.query===t.query&&(0,em.D)(e.variables,t.variables))}function eB(e){let t=e,r,n;return{promise:new Promise((e,t)=>{r=e,n=t}),operator:(0,ei.b)({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";n("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let eU={},eW=new WeakMap;function e$(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return eW.set(e,(eW.get(e)+1)%1e15),r.apply(this,arguments)})}let eK=new WeakMap;class eJ{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(eK.get(e)||0)+1;eK.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,eW.has(r)||(eW.set(r,0),e$(r,"evict"),e$(r,"modify"),e$(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===eW.get(this.cache)&&(0,em.D)(t,r.variables)&&(0,em.D)(e.data,r.result.data)&&e.extensions?.[eD.AN]===r.result.extensions?.[eD.AN])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let o={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=0===i,a=s?void 0:this.cache.diff(o),l=this.maybeHandleIncrementalResult(a?.result,e,t);return s||(eY(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:eW.get(this.cache)};else if(a&&a.complete){l={...l,data:a.result};return}let n=e.diff(o);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,o=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(o={...o,errors:[]}),ek(o)&&"none"===t.errorPolicy)return Promise.resolve(o);let s=()=>({...o,dataState:this.hasNext?"streaming":"complete"});if(!i&&eY(o,t.errorPolicy)){n.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:o.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:o,variables:a}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=i(l,{mutationResult:s(),queryName:o&&(0,ew.r)(o)||void 0,queryVariables:a});e&&n.push({result:e,dataId:"ROOT_QUERY",query:o,variables:a})}})}let a=t.refetchQueries;if("function"==typeof a&&(a=a(s())),n.length>0||(a||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(o={...o,data:r.result})}this.hasNext||r(e,o,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:a,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>o)}return Promise.resolve(o)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:eU}):e;return r!==eU&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){c.kG.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(eY(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function eY(e,t="none"){let r=!ek(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eH{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new d.A(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,c._K)(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:o=!1,update:s,onQueryUpdated:a,fetchPolicy:u,errorPolicy:h,keepRootFields:f,context:d}){let y=new eJ(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:m}=this.getDocumentInfo(e);t=this.getVariables(e,t),m&&(p.T&&(0,c.kG)(this.localState,88,(0,ew.r)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:e,variables:t,loading:!0,error:null}),b=r&&y.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:"no-cache"===u?0:2,errorPolicy:h,context:d,updateQueries:n,update:s,keepRootFields:f});return this.broadcastQueries(),new Promise((c,p)=>{let m={};return this.getObservableFromLink(e,{...d,optimisticResponse:b?r:void 0},t,u,{},!1).observable.pipe(eX(),F(r=>{let l={...r};return B(y.markMutationResult(l,{document:e,variables:t,cacheWriteBehavior:"no-cache"===u?0:2,errorPolicy:h,context:d,update:s,updateQueries:n,awaitRefetchQueries:o,refetchQueries:i,removeOptimistic:b?y.id:void 0,onQueryUpdated:a,keepRootFields:f}))})).pipe((0,l.U)(e=>{if(ek(e)&&"none"===h)throw new es.L(eZ(e));return v&&(v.loading=!1,v.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!y.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:u,cause:m})};ek(t)&&(r.error=new es.L(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),c(r)}},error:e=>(v&&(v.loading=!1,v.error=e),b&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),"ignore"===h)?c({data:void 0}):"all"===h?c({data:void 0,error:e}):void p(e)})})}fetchQuery(e,t){return(0,v.A)(e.query,a.ku.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(eS(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return eO(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var o,s=!1;r.subscribe({next:function(e){o=e,s=!0},error:t,complete:function(){s?e(o):i?e(n.defaultValue):t(new U)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new eE.s(ev.Q["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r;let n=(0,eu.$)(e),i={hasClientExports:(0,u.F)(["client","export"],e,!0),hasForcedResolvers:(r=!1,(0,g.Vn)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return g.$_}}}),r),hasNonreactiveDirective:(0,u.F)(["nonreactive"],e),hasIncrementalDirective:(0,u.F)(["defer"],e),nonReactiveQuery:(0,g.Vn)(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:E.h.DIRECTIVE,name:{kind:E.h.NAME,value:"nonreactive"}}
1]}}}),clientQuery:(0,u.F)(["client"],e)?e:null,serverQuery:function(e,t){var r;(0,v.A)(t);let n=eI(""),i=eI(""),o=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!(0,ex.k)(r)){if(r.kind===E.h.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===E.h.FRAGMENT_DEFINITION)return i(r.name.value)}return c.kG.error(14),null},s=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===E.h.OPERATION_DEFINITION&&++s;let a=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),l=e=>(0,e_.O)(e)&&e.map(a).some(e=>e&&e.remove),u=new Map,h=!1,f={enter(e){if(l(e.directives))return h=!0,null}},d=(0,g.Vn)(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let s=o(i);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(l(e.directives))return h=!0,null;let s=o(i);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){u.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===u.get(JSON.stringify(n))?e:s>0&&e.selectionSet.selections.every(e=>e.kind===E.h.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,h=!0,null):void 0},Directive:{leave(e){if(a(e))return h=!0,null}}});if(!h)return t;let p=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),y=new Set;d.definitions.forEach(e=>{e.kind===E.h.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{y.add(e)}):e.kind!==E.h.FRAGMENT_DEFINITION||0!==s||i(e.name.value).removed||y.add(e.name.value)}),y.forEach(e=>{p(i(e)).fragmentSpreads.forEach(e=>{y.add(e)})});let m=e=>!!(!y.has(e)||i(e).removed),b={enter(e){if(m(e.name.value))return null}};return r=(0,g.Vn)(d,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===E.h.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,eu.$)(r)||(0,eT.p)(r),(0,ec.F)((0,eh.k)(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:(0,eC.O)(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,i)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){(0,v.A)(e.query,a.ku.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new eL({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,c._K)(89)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eN.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,eb.S)(this.transform(e));r.set(t,(0,ew.r)(e)),n.set(t,!1)}else(0,eN.s)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=(0,eb.S)(this.transform(r.options.query));if("all"===e){t.add(r);return}let{queryName:o,options:{fetchPolicy:s}}=r;("active"!==e||"standby"!==s)&&("active"===e||o&&n.has(o)||i&&n.has(i))&&(t.add(r),o&&n.set(o,!0),i&&n.set(i,!0))}
1),i.size&&i.forEach(e=>{let r=new eL({queryManager:this,options:{...m(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),p.T&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?p.T&&c.kG.warn(90,e):p.T&&c.kG.warn(91)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i="cache-first",errorPolicy:o="none",context:s={},extensions:u={}}=e;return(0,v.A)(r,a.ku.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),p.T&&(0,c.kG)(!this.getDocumentInfo(r).hasClientExports||this.localState,92,(0,ew.r)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?B(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:s})):K(n)).pipe(F(e=>{let{observable:n,restart:a}=this.getObservableFromLink(r,s,e,i,u),c=new eJ(this);return t=a,n.pipe((0,l.U)(t=>{c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:o,cacheWriteBehavior:"no-cache"===i?0:2});let n={data:t.data??void 0};return ek(t)?n.error=new es.L(t):(0,ea.ls)(t)&&(n.error=t.extensions[ea.YG],delete t.extensions[ea.YG]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===o&&(n.data=void 0),"ignore"===o&&delete n.error,n}),J(e=>"ignore"===o?K({data:void 0}):K({data:void 0,error:e})),Y(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new O.B(!1);getObservableFromLink(e,t,r,n,i,o=t?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:l,clientQuery:u,operationType:h,hasIncrementalDirective:d}=this.getDocumentInfo(e),y=(0,ew.r)(e),m={client:this.client};if(l){let{inFlightLinkObservables:e,link:n}=this;try{let u=this.incrementalHandler.prepareRequest({query:l,variables:r,context:{...this.defaultContext,...t,queryDeduplication:o},extensions:i});function v(e){return new T.y(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return s.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),s.restart=void 0}})}if(t=u.context,o){let t=(0,eb.S)(l),i=(0,eo.B)(r);if(!(s=e.lookup(t,i)).observable){var b;s.observable=f(n,u,m).pipe(v,(b=()=>{e.peek(t,i)===s&&e.remove(t,i)},(0,C.e)(function(e,t){try{e.subscribe(t)}finally{t.add(b)}})),h===a.ku.SUBSCRIPTION?(0,H.B)():(0,X.d)({refCount:!0}))}}else s.observable=f(n,u,m).pipe(v)}catch(e){s.observable=_(()=>e)}}else s.observable=K({data:{}});if(u){let{operation:i}=(0,eu.$)(e);p.T&&(0,c.kG)(this.localState,93,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),(0,c.kG)(!d,94,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),s.observable=s.observable.pipe(F(e=>B(this.localState.execute({client:this.client,document:u,remoteResult:e,context:t,variables:r,fetchPolicy:n}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(J(e=>{var t;throw t=e=(0,ea.Nh)(e),el.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n,exposeExtensions:i}){let o=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,u=this.cache.transformForLink(e.query);return this.getObservableFromLink(u,e.context,e.variables,e.fetchPolicy).observable.pipe((0,l.U)(o=>{let l=t.markQueryResult(o,{...e,document:u,cacheWriteBehavior:r}),c=ek(l);if(c&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),new es.L(eZ(l));let h={data:l.data,...t.hasNext?{loading:!0,networkStatus:s.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:s.ready,partial:!l.data}};return i&&"extensions"in l&&(h[eD.e4]=l.extensions),c&&("none"===a&&(h.data=void 0,h.dataState="empty"),"ignore"!==a&&(h.error=new es.L(eZ(l)),"streaming"!==h.dataState&&(h.networkStatus=s.error))),h}),J(e=>{if(o>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:s.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=s.error),K(r)}))}fetchObservableWithInfo(e,{networkStatus:t=s.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:o,exposeExtensions:a}){let l,u;let h=this.getVariables(r,e.variables),{fetchPolicy:f="cache-first",errorPolicy:d="none",returnPartialData:y=!1,notifyOnNetworkStatusChange:m=!0,context:v={}}=e;this.prioritizeCacheValues&&("network-only"===f||"cache-and-network"===f)&&(f="cache-first");let b=Object.assign({},e,{query:r,variables:h,fetchPolicy:f,errorPolicy:d,returnPartialData:y,notifyOnNetworkStatusChange:m,context:v}),g=new eJ(this,o),w=r=>{b.variables=r;let l="no-cache"===f?0:t===s.refetch&&"merge"!==b.refetchWritePolicy?1:2,u=this.fetchQueryByPolicy(b,{queryInfo:g,cacheWriteBehavior:l,onCacheHit:i,observableQuery:o,exposeExtensions:a});return u.observable=u.observable.pipe(n),"standby"!==b.fetchPolicy&&o?.applyNextFetchPolicy("after-fetch",e),u},k=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{S.next({kind:"E",error:e,source:"network"})});let S=new Z.x;if(this.getDocumentInfo(b.query).hasClientExports)p.T&&(0,c.kG)(this.localState,95,(0,ew.r)(b.query,"(anonymous)")),l=B(this.localState.getExportedVariables({client:this.client,document:b.query,variables:b.variables,context:b.context})).pipe(F(e=>w(e).observable)),u=!0;else{let e=w(b.variables);u=e.fromLink,l=e.observable}return{observable:new T.y(e=>{e.add(k),l.subscribe(e),S.subscribe(e)}).pipe((0,H.B)()),fromLink:u}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,eF.X)("refetchQueries"):void 0,onQueryUpdated:i}){let o=new Map;
1t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();o.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let s=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let a=e.watcher;if(a instanceof eL&&!t.has(a)){if(t.add(a),i){o.delete(a);let e=i(a,r,n);return!0===e&&(e=a.refetch().retain()),!1!==e&&s.set(a,e),e}null!==i&&"cache-only"!==a.options.fetchPolicy&&o.set(a,{oq:a,lastDiff:n,diff:r})}}})}return o.size&&o.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&s.set(e,n)}),n&&this.cache.removeOptimistic(n),s}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(p.T){let r;let{fetchPolicy:n,cause:i={}}=e,o=eu.$(t)?.operation;this.dataMasking&&"no-cache"===n&&(r=!0,(0,g.Vn)(t,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return g.$_}}),!r)&&!this.noCacheWarningsByCause.has(i)&&(this.noCacheWarningsByCause.add(i),p.T&&c.kG.warn(96,(0,ew.r)(t,`Unnamed ${o??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=(0,eu.$)(t);return((0,c.kG)(n,43),null==e)?e:ey(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:(0,ec.F)((0,eh.k)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===E.h.FRAGMENT_DEFINITION);void 0===n&&((0,c.kG)(1===i.length,41,i.length),n=i[0].name.value);let o=i.find(e=>e.name.value===n);return((0,c.kG)(!!o,42,n),null==e||(0,em.D)(e,{}))?e:ey(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:(0,ec.F)((0,eh.k)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:o},{cacheWriteBehavior:a,onCacheHit:u,queryInfo:h,observableQuery:f,exposeExtensions:d}){let y=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),m=(a,l)=>{let h=a.result;if(p.T&&!i&&null!==h){var f;f=a.missing,p.T&&f&&p.T&&c.kG.debug(86,f)}let d=e=>(a.complete||i||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:!eg(l),networkStatus:l,partial:!a.complete});return(a.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(p.T&&(0,c.kG)(this.localState,97,(0,ew.r)(e,"(anonymous)")),u(),B(this.localState.execute({client:this.client,document:e,remoteResult:h?{data:h}:void 0,context:o,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:d(e.data||void 0),source:"cache"})))):K({kind:"N",value:d("none"===n&&l===s.refetch&&a.missing?void 0:h||void 0),source:"cache"})},v=()=>this.getResultsFromLink({query:e,variables:t,context:o,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:a,queryInfo:h,observableQuery:f,exposeExtensions:d}).pipe(eX(),(0,C.e)(function(e,t){e.subscribe((0,D.x)(t,function(e){t.next(et.createNext(e))},function(){t.next(et.createComplete()),t.complete()},function(e){t.next(et.createError(e)),t.complete()}))}),(0,l.U)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=y();if(e.complete)return{fromLink:!1,observable:m(e,s.ready)};if(i)return{fromLink:!0,observable:en(m(e,s.loading),v())};return{fromLink:!0,observable:v()}}case"cache-and-network":{let e=y();if(e.complete||i)return{fromLink:!0,observable:en(m(e,s.loading),v())};return{fromLink:!0,observable:v()}}case"cache-only":return{fromLink:!1,observable:en(m(y(),s.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:v()};case"standby":return{fromLink:!1,observable:ee.E}}}}function eX(){let e=!1;return(0,ei.b)({next(){e=!0},complete(){(0,c.kG)(e,98)}})}function eZ(e){if(e.extensions?.[eD.AN]==null)return e;let{extensions:{[eD.AN]:t,...r},...n}=e;return Object.keys(r).length>0&&(n.extensions=r),n}let e0=!1;class e1{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){p.T&&((0,c.kG)(e.cache,68),(0,c.kG)(e.link,69));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:o=!0,defaultOptions:s,defaultContext:a,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:f,dataMasking:d,link:y,incrementalHandler:m=new h,experiments:v=[]}=e;this.link=y,this.cache=t,this.queryDeduplication=o,this.defaultOptions=s||{},this.devtoolsConfig={...f,enabled:f?.enabled??p.T},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=S.i,this.queryManager=new eH({client:this,defaultOptions:this.defaultOptions,defaultContext:a,documentTransform:r,queryDeduplication:o,ssrMode:n,dataMasking:!!d,clientOptions:e,incrementalHandler:m,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),v.forEach(t=>t.call(this,e))}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!e0&&p.T&&(e0=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e;let t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&p.T&&c.kG.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=m(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=m(this.defaultOptions.query,e)),p.T&&((0,c.kG)("cache-and-network"!==e.fetchPolicy,70),(0,c.kG)("standby"!==e.fetchPolicy,71),(0,c.kG)(e.query,72),(0,c.kG)("Document"===e.query.kind,73),(0,c.kG)(!e.returnPartialData,74),(0,c.kG)(!e.pollInterval,75),(0,c.kG)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){let t=m((0,y.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return p.T&&((0,c.kG)(t.mutation,77),(0,c.kG)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,v.A)(t.mutation,a.ku.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,l.U)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return p.T?(0,b.V)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return f(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{p.T&&c.kG.debug(79,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new d.A(w);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}p.T&&(e1.prototype.getMemoryInternals=k.su)},41643:function(e,t,r){r.d(t,{L:function(){return o}});var n=r(42186);function i(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class o extends Error{static is(e){return(0,n.I)(e,"CombinedGraphQLErrors")}static formatMessage=i;errors;data;extensions;constructor(e,t=e.errors||[]){super(o.formatMessage(t,{result:e,defaultFormatMessage:i})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,n.U)(this),Object.setPrototypeOf(this,o.prototype)}}},1475:function(e,t,r){r.d(t,{b:function(){return o}});var n=r(42186);function i(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class o extends Error{static is(e){return(0,n.I)(e,"CombinedProtocolErrors")}static formatMessage=i;errors;constructor(e){super(o.formatMessage(e,{defaultFormatMessage:i})),this.name="CombinedProtocolErrors",this.errors=e,(0,n.U)(this),Object.setPrototypeOf(this,o.prototype)}}},99420:function(e,t,r){r.d(t,{YG:function(){return s},ls:function(){return a},Nh:function(){return l}});var n=r(1475),i=r(42186);class o extends Error{static is(e){return(0,i.I)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,i.U)(this),Object.setPrototypeOf(this,o.prototype)}}let s=Symbol();function a(e){return"extensions"in e&&n.b.is(e.extensions[s])}function l(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new o(e)}},42186:function(e,t,r){function n(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function i(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.d(t,{I:function(){return n},U:function(){return i}})},24020:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(43106),i=r(86927),o=r(6823),s=r(14174),a=r(22443);class l{static empty(){return new l(()=>n.E)}static from(e){if(0===e.length)return l.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new l((e,t)=>t(e))){return Object.assign(new l((n,i)=>{let o=e(n);return s.T&&"boolean"!=typeof o&&s.T&&a.kG.warn(63,o),o?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,i.r)(e.query),operationType:(0,o.$)(e.query).operation},n={...e.context},s=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(s())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:s}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(s.T&&s.T&&a.kG.warn(64),n.E))}static concat(...e){return l.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(l.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new l((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,a._K)(65)}left;
1right}},50841:function(e,t,r){r.d(t,{s:function(){return a}});var n=r(60814),i=r(41643),o=r(99420),s=r(24020);class a extends s.i{constructor(e){super((t,r)=>new n.y(n=>{let s,a,l;try{s=r(t).subscribe({next:s=>{let u=t.client.queryManager.incrementalHandler,c=u.isIncrementalResult(s)?u.extractErrors(s):s.errors;c?l=e({error:new i.L(s,c),result:s,operation:t,forward:r}):(0,o.ls)(s)&&(l=e({error:s.extensions[o.YG],result:s,operation:t,forward:r})),(a=l?.subscribe(n))||n.next(s)},error:i=>{l=e({operation:t,error:(0,o.Nh)(i),forward:r}),(a=l?.subscribe(n))||n.error(i)},complete:()=>{l||n.complete()}})}catch(i){e({error:(0,o.Nh)(i),operation:t,forward:r}),n.error(i)}return()=>{s&&s.unsubscribe(),a&&a.unsubscribe()}}))}}},87148:function(e,t,r){r.d(t,{u:function(){return D}});var n=r(24020),i=r(55055);class o extends n.i{constructor(e={}){super((t,r)=>{let n=t.client,o=n.queryManager.clientOptions,s=t.getContext();{let{name:r,version:n,transport:a="headers"}=(0,i.o)({},o.clientAwareness,e.clientAwareness,s.clientAwareness);"headers"===a&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,i.o)({},o.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,i.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return r(t)})}}var s=r(60814),a=r(16214),l=r(6823);function u(e,t){return l.$(e)?.operation===t}var c=r(14174),h=r(80594),f=r(22443);let d=e=>{(0,f.kG)(e||"undefined"!=typeof fetch,61)};var p=r(99420),y=r(1475),m=r(42186);class v extends Error{static is(e){return(0,m.I)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,m.U)(this),Object.setPrototypeOf(this,v.prototype)}}class b extends Error{static is(e){return(0,m.I)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,m.U)(this),Object.setPrototypeOf(this,b.prototype)}}var g=r(11210);let{hasOwnProperty:w}=Object.prototype;async function*k(e){let t;let r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),o="\r\n--"+(i?i[1]??i[2]??i[3]??"-":"-"),s="";(0,f.kG)(e.body&&"function"==typeof e.body.getReader,62);let a=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!l;){({value:t,done:l}=await a.read());let e="string"==typeof t?t:r.decode(t),n=s.length-o.length+1,i=(s+=e).indexOf(o,n);for(;i>-1&&!c();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+o.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=s.indexOf(o)}if(c())return}throw Error("premature end of multipart body")}finally{a.cancel()}}async function S(e,t){for await(let r of k(e)){let n=O(e,r);if(0!=Object.keys(n).length){if((0,g.s)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[p.YG]:new y.b(n.errors??[])}),t(e)}else t(n)}}}function O(e,t){if(e.status>=300)throw new v(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}}var E=r(21126);let T={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},x=(e,t)=>t(e),_=(e,t)=>
1e.getContext().uri||("function"==typeof t?t(e):t||"/graphql"),I=(0,h.w)(()=>fetch);function C(){}class N extends n.i{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=x,includeExtensions:o,preserveHeaderCase:l,useGETForQueries:f,includeUnusedVariables:p=!1,...y}=e;c.T&&d(r||I);let m={http:(0,i.o)({includeExtensions:o,preserveHeaderCase:l}),options:y.fetchOptions,credentials:y.credentials,headers:y.headers};super(e=>{let i=_(e,t),o=e.getContext(),l={...o.http};u(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:d}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:o,extensions:s,variables:a,query:l}=e,u={operationName:o,variables:a};return i.includeExtensions&&Object.keys(s||{}).length&&(u.extensions=s),i.includeQuery&&(u.query=t(l,E.S)),{options:n,body:u}}(e,n,T,m,{http:l,options:o.fetchOptions,credentials:o.credentials,headers:o.headers});d.variables&&!p&&(d.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return(0,a.Vn)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(d.variables,e.query));let y=new AbortController,g=()=>{y=void 0};if(c.signal){let e=c.signal,t=()=>{y?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),g=()=>{y?.signal.removeEventListener("abort",g),y=void 0,e.removeEventListener("abort",t),g=C},y.signal.addEventListener("abort",g,{once:!0})}return c.signal=y.signal,f&&!u(e.query,"mutation")&&(c.method="GET"),new s.y(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",o=e,s=e.indexOf("#");-1!==s&&(i=e.substr(s),o=e.substr(0,s));let a=-1===o.indexOf("?")?"?":"&";return{newURI:o+a+r.join("&")+i}}(i,d);if(t)throw t;i=e}else c.body=JSON.stringify(d);let n=r||(0,h.w)(()=>fetch)||I,o=t.next.bind(t);return n(i,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?S(t,o):t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");return r?.includes("application/graphql-response+json")?function(e,t){try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}}(e,t):O(e,t)}(t,r);if(!Array.isArray(n)&&!w.call(n,"data")&&!w.call(n,"errors"))throw new v(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n}).then(o)}).then(()=>{g(),t.complete()}).catch(e=>{g(),t.error(e)}),()=>{y&&y.abort()}})})}}class D extends n.i{constructor(e={}){let{left:t,right:r,request:i}=n.i.from([new o(e),new N(e)]);super(i),Object.assign(this,{left:t,right:r})}}},82601:function(e,t,r){r.d(t,{G:function(){return l},O:function(){return a}});var n=r(28155),i=r(43904),o=r(14174),s=r(22443);let a=new i.g7;function l(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(o.T&&r&&(r.value.kind===n.h.VARIABLE?o.T&&s.kG.warn(44):r.value.kind!==n.h.STRING?o.T&&s.kG.warn(45):"migrate"!==r.value.value&&o.T&&s.kG.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}},8120:function(e,t,r){r.d(t,{Q:function(){return o}});var n=r(88358);let i=Symbol.for("apollo.cacheSize"),o={...n.Z[i]}},14174:function(e,t,r){r.d(t,{T:function(){return n}});let n=!1},15336:function(e,t,r){r.d(t,{A:function(){return c}});var n=r(12680),i=r(22588),o=r(43904),s=r(8677),a=r(22443),l=r(8120);function u(e){return e}class c{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new c(u,{cache:!1})}static split(e,t,r=c.identity()){return Object.assign(new c(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new i.B;this.performWork=(0,o.re)(c.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,a.kG)(Array.isArray(r),20),e.lookupArray(r)},max:l.Q["documentTransform.cache"],cache:n.k})}}performWork(e){return(0,s.A)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new c(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;
1right}},21126:function(e,t,r){let n;function i(e){return 9===e||32===e}r.d(t,{S:function(){return g}});let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(e){return a[e.charCodeAt(0)]}let a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=r(16214);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?f("(\n",c(e.variableDefinitions,"\n"),"\n)"):f("(",c(e.variableDefinitions,", "),")"),r=f("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>f("",i,"\n")+e+": "+t+f(" = ",r)+f(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=f("",e,": ")+t,s=o+f("(",c(r,", "),")");return s.length>80&&(s=o+f("(\n",d(c(r,"\n")),"\n)")),c([s,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",f("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>f("",o,"\n")+`fragment ${e}${f("(",c(r,", "),")")} `+`on ${t} ${f("",c(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=1===n.length,s=n.length>1&&n.slice(1).every(e=>0===e.length||i(e.charCodeAt(0))),a=r.endsWith('\\"""'),l=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=l||u,h=!o||e.length>70||c||s||a,f="",d=o&&i(e.charCodeAt(0));return(h&&!d||s)&&(f+="\n"),f+=r,(h||c)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(o,s)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+c(["schema",c(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(r," & ")),c(n," "),h(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>f("",e,"\n")+t+(p(r)?f("(\n",d(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+": "+n+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>f("",e,"\n")+c([t+": "+r,f("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(r," & ")),c(n," "),h(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>f("",e,"\n")+c(["union",t,c(r," "),f("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>f("",e,"\n")+c(["enum",t,c(r," "),h(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>f("",e,"\n")+c(["input",t,c(r," "),h(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>f("",e,"\n")+"directive @"+t+(p(r)?f("(\n",d(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,f("implements ",c(t," & ")),c(r," "),h(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,f("implements ",c(t," & ")),c(r," "),h(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),f("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),h(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,f(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,f(".",t),f("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,f("(",t,":)")])}};function c(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function h(e){return f("{\n",d(c(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function d(e){return f("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var y=r(14174),m=r(59837),v=r(28818),b=r(8120);let g=Object.assign(e=>{let t=n.get(e);return!t&&(t=(0,l.Vn)(e,u),n.set(e,t)),t},{reset(){n=new m.s(b.Q.print||2e3)}});g.reset(),y.T&&(0,v.zP)("print",()=>n?n.size:0)},59837:function(e,t,r){r.d(t,{L:function(){return l},s:function(){return a}});var n=r(12680),i=r(22395);let o=new WeakSet;function s(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(()=>{e.clean(),o.delete(e)},100)))}let a=function(e,t){let r=new n.k(e,t);return r.set=function(e,t){let r=n.k.prototype.set.call(this,e,t);return s(this),r},r},l=function(e,t){let r=new i.e(e,t);return r.set=function(e,t){let r=i.e.prototype.set.call(this,e,t);return s(this),r},r}},33026:function(e,t,r){let n;r.d(t,{B:function(){return l}});var i=r(14174),o=r(8120),s=r(59837),a=r(28818);let l=Object.assign(function(e){return JSON.stringify(e,u)},{reset(){n=new s.L(o.Q.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(c))return t;let i=JSON.stringify(r),o=n.get(i);if(!o){r.sort();let e=JSON.stringify(r);o=n.get(e)||r,n.set(i,o),n.set(e,o)}let s=Object.create(e);
1return o.forEach(e=>{s[e]=t[e]}),s}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}i.T&&(0,a.zP)("canonicalStringify",()=>n.size),l.reset()},8677:function(e,t,r){r.d(t,{A:function(){return u}});var n=r(16214),i=r(28155),o=r(14174),s=r(22443),a=r(8120),l=r(86927);let u=(0,r(21689).H)((e,t)=>{(0,s.kG)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);o.T&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,s._K)(2,e.kind)}),(0,s.kG)(r.length<=1,3,r.length)),t&&(0,s.kG)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,n.Vn)(e,{Field(t,n,o,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,o=[];for(let e of a)(n=n[e]).kind===i.h.FIELD&&o.push(n.alias?.value||n.name.value);throw o.splice(-1,1,t.name.value),(0,s._K)(5,t.alias.value,o.join("."),r[0].operation,(0,l.r)(e,"(anonymous)"))}}})},{max:a.Q.checkDocument||2e3})},55055:function(e,t,r){r.d(t,{o:function(){return n}});function n(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}},86301:function(e,t,r){r.d(t,{AN:function(){return i},e4:function(){return n},pQ:function(){return o}});let n=Symbol.for("apollo.result.extensions"),i=Symbol.for("apollo.result.streamInfo"),o=Symbol.for("apollo.observableQuery.variablesUnknown")},76019:function(e,t,r){r.d(t,{F:function(){return n}});function n(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}},9535:function(e,t,r){r.d(t,{W:function(){return h}});var n=r(68529),i=r(76019),o=r(38506),s=r(54789),a=r(31894),l=r(90796),u=r(84993),c=r(55835);function h(e,{data:t,...r},{data:h,...d},p){return(0,n.D)(r,d)&&function e(t,r,i,o){if(r===i)return!0;let a=new Set;return t.selections.every(t=>{if(a.has(t)||(a.add(t),!(0,c.L)(t,o.variables)||f(t)))return!0;if((0,l.M)(t)){let s=(0,u.u)(t),a=r&&r[s],l=i&&i[s],c=t.selectionSet;if(!c)return(0,n.D)(a,l);let h=Array.isArray(a),f=Array.isArray(l);if(h!==f)return!1;if(h&&f){let t=a.length;if(l.length!==t)return!1;for(let r=0;r<t;++r)if(!e(c,a[r],l[r],o))return!1;return!0}return e(c,a,l,o)}{let n=(0,s.h)(t,o.fragmentMap);if(n)return!!f(n)||e(n.selectionSet,r,i,o)}})}((0,a.p)(e).selectionSet,t,h,{fragmentMap:(0,i.F)((0,o.k)(e)),variables:p})}function f(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},54868:function(e,t,r){r.d(t,{O:function(){return i}});var n=r(39216);function i(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&(0,n.v)(t,e.variable.name,e.defaultValue)}),t}},98999:function(e,t,r){r.d(t,{p:function(){return i}});var n=r(22443);function i(e){(0,n.kG)("Document"===e.kind,6),(0,n.kG)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,8),t}},38506:function(e,t,r){r.d(t,{k:function(){return n}});function n(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}},54789:function(e,t,r){r.d(t,{h:function(){return i}});var n=r(22443);function i(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let i=t&&t[r];return(0,n.kG)(i,9,r),i||null}default:return null}}},31894:function(e,t,r){r.d(t,{p:function(){return o}});var n=r(22443),i=r(8677);function o(e){let t;for(let r of((0,i.A)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,n._K)(12)}},28818:function(e,t,r){r.d(t,{zP:function(){return i}});let n={};function i(e,t){n[e]=t}},6823:function(e,t,r){r.d(t,{$:function(){return i}});var n=r(8677);function i(e){return(0,n.A)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},86927:function(e,t,r){r.d(t,{r:function(){return n}});function n(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}},35392:function(e,t,r){r.d(t,{i:function(){return o}});var n=r(22443),i=r(6823);function o(e){let t=(0,i.$)(e);return(0,n.kG)(t&&"query"===t.operation,13),t}},88358:function(e,t,r){var n=r(80594);t.Z=(0,n.w)(()=>globalThis)||(0,n.w)(()=>window)||(0,n.w)(()=>self)||(0,n.w)(()=>global)||(0,n.w)(function(){return n.w.constructor("return this")()})},80594:function(e,t,r){r.d(t,{w:function(){return n}});function n(e){try{return e()}catch{}}},62982:function(e,t,r){r.d(t,{F:function(){return i}});var n=r(16214);function i(e,t,r){let i=new Set(e),o=i.size;return(0,n.Vn)(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return n.$_}}),r?!i.size:i.size<o}},95934:function(e,t,r){function n(){throw Error("only supported in development mode")}r.d(t,{Kb:function(){return i},q4:function(){return s},su:function(){return o}});let i=n,o=n,s=n},2592:function(e,t,r){r.d(t,{k:function(){return n}});let n=Array.isArray},90796:function(e,t,r){r.d(t,{M:function(){return n}});function n(e){return"Field"===e.kind}},39242:function(e,t,r){r.d(t,{O:function(){return n}});function n(e){return Array.isArray(e)&&e.length>0}},11210:function(e,t,r){r.d(t,{s:function(){return n}});function n(e){return null!==e&&"object"==typeof e}},11637:function(e,t,r){r.d(t,{X:function(){return i}});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},50927:function(e,t,r){r.d(t,{V:function(){return o}});var n=r(82179),i=r(28851);let o=(0,r(21689).H)(function(e,t,r){return function(e,t){let r,o;function s(e){return e!==r&&(o=t(r=e)),o}return Object.assign(e.pipe((0,n.U)(s),(0,i.d)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>s(e.getCurrentResult())})}(e,r)},{max:1,makeCacheKey:e=>e.slice(0,2)})},47464:function(e,t,r){r.d(t,{J:function(){return o}});var n=r(14174),i=r(11210);function o(e){return n.T&&function(e){let t=new Set([e]);
1t.forEach(e=>{(0,i.s)(e)&&function(e){if(n.T&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.s)(e[r])&&t.add(e[r])})})}(e),e}},21689:function(e,t,r){r.d(t,{H:function(){return o}});var n=r(22588),i=r(59837);function o(e,{max:t,makeCacheKey:r=e=>e}){let o=new n.B(!0),s=new i.s(t);return(...t)=>{let n=o.lookupArray(r(t)),i=s.get(n);if(i){if(i.error)throw i.error;return i.result}let a=s.set(n,{});try{return a.result=e(...t)}catch(e){throw a.error=e,e}}}},84993:function(e,t,r){r.d(t,{u:function(){return n}});function n(e){return e.alias?e.alias.value:e.name.value}},55835:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(22443);function i({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,i=e.name.value;(0,n.kG)(r&&1===r.length,16,i);let o=r[0];(0,n.kG)(o.name&&"if"===o.name.value,17,i);let s=o.value;(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),18,i),t.push({directive:e,ifArgument:o})}),t})(e).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,n.kG)(void 0!==i,15,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}},22817:function(e,t,r){r.d(t,{v:function(){return i}});var n=r(11637);function i(e,t=0){let r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},39216:function(e,t,r){r.d(t,{v:function(){return function e(t,r,o,s){if(o.kind===n.h.INT||o.kind===n.h.FLOAT)t[r.value]=Number(o.value);else if(o.kind===n.h.BOOLEAN||o.kind===n.h.STRING)t[r.value]=o.value;else if(o.kind===n.h.OBJECT){let n={};o.fields.map(t=>e(n,t.name,t.value,s)),t[r.value]=n}else if(o.kind===n.h.VARIABLE){let e=(s||{})[o.name.value];t[r.value]=e}else if(o.kind===n.h.LIST)t[r.value]=o.values.map(t=>{let n={};return e(n,r,t,s),n[r.value]});else if(o.kind===n.h.ENUM)t[r.value]=o.value;else if(o.kind===n.h.NULL)t[r.value]=null;else throw(0,i._K)(19,r.value,o.kind)}}});var n=r(28155),i=r(22443)},22443:function(e,t,r){r.d(t,{_K:function(){return d},kG:function(){return h}});var n=r(14174),i=r(88358),o=r(20932),s=r(22817);let a="Invariant Violation";class l extends Error{constructor(e=a){super(e),this.name=a,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(n.T?"log":"silent");function h(e,...t){if(!e)throw d(...t)}function f(e){return function(t,...r){if(u.indexOf(e)>=c){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=m(e))||(t=v(e,r),r=[])}n(t,...r)}}}function d(e,...t){return new l(m(e,t)||v(e,t))}h.debug=f("debug"),h.log=f("log"),h.warn=f("warn"),h.error=f("error");let p=Symbol.for("ApolloErrorMessageHandler_"+o.i);function y(e){if("string"==typeof e)return e;try{return(0,s.v)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function m(e,t=[]){if(e)return i.Z[p]&&i.Z[p](e,t.map(y))}function v(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,y(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:o.i,message:e,args:t.map(y)}))}`}},20932:function(e,t,r){r.d(t,{i:function(){return n}});let n="4.1.7"},22395:function(e,t,r){function n(){}r.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},12680:function(e,t,r){function n(){}r.d(t,{k:function(){return a}});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
1,o="undefined"!=typeof WeakMap?WeakMap:Map,s="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class a{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},68529:function(e,t,r){r.d(t,{D:function(){return a}});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return function e(t,r){if(t===r)return!0;let s=n.call(t);if(s!==n.call(r))return!1;switch(s){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(h(t,r))return!0;let n=l(t),o=l(r),s=n.length;if(s!==o.length)return!1;for(let e=0;e<s;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<s;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(h(t,r))return!0;let n=t.entries(),i="[object Map]"===s;for(;;){let t=n.next();if(t.done)break;let[o,s]=t.value;if(!r.has(o)||i&&!e(s,r.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function h(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},22588:function(e,t,r){r.d(t,{B:function(){return a}});let n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);!i||(t=i.removeArray(o.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new a(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},40392:function(e,t,r){var n,i;r.d(t,{UG:function(){return a},h8:function(){return o},ku:function(){return n}});let o={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},s=new Set(Object.keys(o));function a(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},28155:function(e,t,r){var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},16214:function(e,t,r){r.d(t,{$_:function(){return o},Vn:function(){return s}});var n=r(40392),i=r(28155);let o=Object.freeze({});function s(e,t,r=n.h8){let s,a,l;let u=new Map;for(let e of Object.values(i.h))u.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let c=Array.isArray(e),h=[e],f=-1,d=[],p=e,y=[],m=[];do{var v,b,g;let e;let i=++f===h.length,w=i&&0!==d.length;if(i){if(a=0===m.length?void 0:y[y.length-1],p=l,l=m.pop(),w){if(c){p=p.slice();let e=0;for(let[t,r]of d){let n=t-e;null===r?(p.splice(n,1),e++):p[n]=r}}else for(let[e,t]of(p={...p},d))p[e]=t}f=s.index,h=s.keys,d=s.edits,c=s.inArray,s=s.prev}else if(l){if(null==(p=l[a=c?f:h[f]]))continue;y.push(a)}if(!Array.isArray(p)){(0,n.UG)(p)||function(e,t){if(!e)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(p,[])}.`);let r=i?null===(v=u.get(p.kind))||void 0===v?void 0:v.leave:null===(b=u.get(p.kind))||void 0===b?void 0:b.enter;if((e=null==r?void 0:r.call(t,p,a,l,y,m))===o)break;if(!1===e){if(!i){y.pop();continue}}
1else if(void 0!==e&&(d.push([a,e]),!i)){if((0,n.UG)(e))p=e;else{y.pop();continue}}}void 0===e&&w&&d.push([a,p]),i?y.pop():(s={inArray:c,index:f,keys:h,edits:d,prev:s},h=(c=Array.isArray(p))?p:null!==(g=r[p.kind])&&void 0!==g?g:[],f=-1,d=[],l&&m.push(l),l=p)}while(void 0!==s);return 0!==d.length?d[d.length-1][1]:e}},82872:function(e,t,r){r.d(t,{o:function(){return i}});class n extends Error{}function i(e,t){let r;if("string"!=typeof e)throw new n("Invalid token specified: must be a string");t||(t={});let i=!0===t.header?0:1,o=e.split(".")[i];if("string"!=typeof o)throw new n(`Invalid token specified: missing part #${i+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new n(`Invalid token specified: invalid base64 for part #${i+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new n(`Invalid token specified: invalid json for part #${i+1} (${e.message})`)}}n.prototype.name="InvalidTokenError"},43904:function(e,t,r){let n;r.d(t,{g7:function(){return f},Px:function(){return R},dP:function(){return j},re:function(){return M}});var i=r(22588),o=r(22395);let s=null,a={},l=1;function u(e){try{return e()}catch(e){}}let c="@wry/context:Slot",h=u(()=>globalThis)||u(()=>global)||Object.create(null),f=h[c]||Array[c]||function(e){try{Object.defineProperty(h,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=s;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===a)break;return e!==s&&(s.slots[this.id]=t),!0}return s&&(s.slots[this.id]=a),!1}getValue(){if(this.hasValue())return s.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=s;s={parent:o,slots:i};try{return t.apply(n,r)}finally{s=o}}static bind(e){let t=s;return function(){let r=s;try{return s=t,e.apply(this,arguments)}finally{s=r}}}static noContext(e,t,r){if(!s)return e.apply(r,t);{let n=s;try{return s=null,e.apply(r,t)}finally{s=n}}}}),{bind:d,noContext:p}=f,y=new f,{hasOwnProperty:m}=Object.prototype,v=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function b(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let g=[];function w(e,t){if(!e)throw Error(t||"assertion failure")}function k(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function S(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class O{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++O.count}peek(){if(1===this.value.length&&!x(this))return E(this),this.value[0]}recompute(e){var t;return w(!this.recomputing,"already recomputing"),E(this),x(this)&&(D(this),y.withValue(this,T,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{b(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,x(this)||(t=this,_(t,C)))),S(this.value)}setDirty(){this.dirty||(this.dirty=!0,_(this,I),b(this))}dispose(){this.setDirty(),D(this),_(this,(e,t)=>{e.setDirty(),F(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=g.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(v(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),g.push(this.deps),this.deps=null)}}function E(e){let t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),x(e)?I(t,e):C(t,e),t}function T(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!k(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function x(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function _(e,t){let r=e.parents.size;if(r){let n=v(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function I(e,t){w(e.childValues.has(t)),w(x(t));let r=!x(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=g.pop()||new Set;e.dirtyChildren.add(t),r&&_(e,I)}function C(e,t){w(e.childValues.has(t)),w(!x(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):k(r,t.value)||e.setDirty(),N(e,t),x(e)||_(e,C)}function N(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(g.length<100&&g.push(r),e.dirtyChildren=null))}function D(e){e.childValues.size>
10&&e.childValues.forEach((t,r)=>{F(e,r)}),e.forgetDeps(),w(null===e.dirtyChildren)}function F(e,t){t.parents.delete(e),e.childValues.delete(t),N(e,t)}O.count=0;let A={setDirty:!0,dispose:!0,forget:!0};function j(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=y.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(b(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&m.call(A,r)?r:"setDirty";v(n).forEach(e=>e[i]()),t.delete(e),b(n)}},n}function R(...e){return(n||(n=new i.B("function"==typeof WeakMap))).lookupArray(e)}let P=new Set;function M(e,{max:t=65536,keyArgs:r,makeCacheKey:n=R,normalizeResult:i,subscribe:s,cache:a=o.e}=Object.create(null)){let l="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=l.get(t);o||(l.set(t,o=new O(e)),o.normalizeResult=i,o.subscribe=s,o.forget=()=>l.delete(t));let a=o.recompute(Array.prototype.slice.call(arguments));return l.set(t,o),P.add(l),y.hasValue()||(P.forEach(e=>e.clean()),P.clear()),a};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function h(e){let t=e&&l.get(e);if(t)return t.peek()}function f(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:s,cache:l}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=h,u.peek=function(){return h(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},87913:function(e,t,r){r.d(t,{CR:function(){return u},FC:function(){return f},Jh:function(){return a},KL:function(){return d},XA:function(){return l},ZT:function(){return i},ev:function(){return c},gn:function(){return o},mG:function(){return s},qq:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
vendor: 1,954 bytes, line 1
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function c(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function f(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof h?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function d(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=l(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.